Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
68 changes: 68 additions & 0 deletions .changeset/popular-students-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---
"@heroui/use-aria-accordion-item": patch
"@heroui/use-aria-modal-overlay": patch
"@heroui/use-aria-multiselect": patch
"@heroui/react-rsc-utils": patch
"@heroui/scroll-shadow": patch
"@heroui/use-aria-accordion": patch
"@heroui/autocomplete": patch
"@heroui/number-input": patch
"@heroui/breadcrumbs": patch
"@heroui/date-picker": patch
"@heroui/framer-utils": patch
"@heroui/shared-icons": patch
"@heroui/date-input": patch
"@heroui/pagination": patch
"@heroui/use-aria-button": patch
"@heroui/react-utils": patch
"@heroui/accordion": patch
"@heroui/input-otp": patch
"@heroui/use-real-shape": patch
"@heroui/aria-utils": patch
"@heroui/test-utils": patch
"@heroui/calendar": patch
"@heroui/checkbox": patch
"@heroui/dropdown": patch
"@heroui/progress": patch
"@heroui/skeleton": patch
"@heroui/use-aria-link": patch
"@heroui/use-ref-state": patch
"@heroui/divider": patch
"@heroui/listbox": patch
"@heroui/popover": patch
"@heroui/snippet": patch
"@heroui/spinner": patch
"@heroui/tooltip": patch
"@heroui/avatar": patch
"@heroui/button": patch
"@heroui/drawer": patch
"@heroui/navbar": patch
"@heroui/ripple": patch
"@heroui/select": patch
"@heroui/slider": patch
"@heroui/spacer": patch
"@heroui/switch": patch
"@heroui/alert": patch
"@heroui/badge": patch
"@heroui/image": patch
"@heroui/input": patch
"@heroui/modal": patch
"@heroui/radio": patch
"@heroui/table": patch
"@heroui/toast": patch
"@heroui/card": patch
"@heroui/chip": patch
"@heroui/code": patch
"@heroui/form": patch
"@heroui/link": patch
"@heroui/menu": patch
"@heroui/tabs": patch
"@heroui/user": patch
"@heroui/system-rsc": patch
"@heroui/use-theme": patch
"@heroui/kbd": patch
"@heroui/system": patch
"@heroui/theme": patch
---

consistent type imports
5 changes: 5 additions & 0 deletions .changeset/silver-dancers-joke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@heroui/system": patch
---

remove unncessary dependencies
44 changes: 44 additions & 0 deletions .changeset/spicy-dodos-fetch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
"@heroui/accordion": patch
"@heroui/autocomplete": patch
"@heroui/breadcrumbs": patch
"@heroui/button": patch
"@heroui/calendar": patch
"@heroui/card": patch
"@heroui/checkbox": patch
"@heroui/chip": patch
"@heroui/date-picker": patch
"@heroui/divider": patch
"@heroui/drawer": patch
"@heroui/form": patch
"@heroui/kbd": patch
"@heroui/link": patch
"@heroui/listbox": patch
"@heroui/menu": patch
"@heroui/modal": patch
"@heroui/number-input": patch
"@heroui/popover": patch
"@heroui/progress": patch
"@heroui/radio": patch
"@heroui/ripple": patch
"@heroui/select": patch
"@heroui/skeleton": patch
"@heroui/slider": patch
"@heroui/snippet": patch
"@heroui/spinner": patch
"@heroui/switch": patch
"@heroui/tabs": patch
"@heroui/toast": patch
"@heroui/tooltip": patch
"@heroui/system": patch
"@heroui/use-aria-accordion": patch
"@heroui/use-aria-button": patch
"@heroui/use-aria-link": patch
"@heroui/use-aria-modal-overlay": patch
"@heroui/use-aria-multiselect": patch
"@heroui/use-intersection-observer": patch
"@heroui/aria-utils": patch
"@heroui/framer-utils": patch
---

remove unused dependencies
2 changes: 1 addition & 1 deletion apps/docs/app/blog/[slug]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type {Metadata} from "next";
import type {Route} from "@/libs/docs/page";

import {notFound} from "next/navigation";
import {allBlogPosts} from "contentlayer2/generated";
Expand All @@ -10,7 +11,6 @@ import {Balancer} from "react-wrap-balancer";
import {__DEV__, __PREVIEW__} from "@/utils";
import {MDXContent} from "@/components/mdx-content";
import {siteConfig} from "@/config/site";
import {Route} from "@/libs/docs/page";
import {ChevronRightLinearIcon} from "@/components/icons";
import {CarbonAd} from "@/components/ads/carbon-ad";

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/app/docs/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type {Metadata} from "next";
import type {Route} from "@/libs/docs/page";

import {notFound} from "next/navigation";
import {allDocs} from "contentlayer2/generated";
Expand All @@ -7,7 +8,6 @@ import {Link, ToastProvider} from "@heroui/react";
import {MDXContent} from "@/components/mdx-content";
import {siteConfig} from "@/config/site";
import {DocsPager, DocsToc} from "@/components/docs";
import {Route} from "@/libs/docs/page";
import {GITHUB_URL, REPO_NAME} from "@/libs/github/constants";
import {CONTENT_PATH, TAG} from "@/libs/docs/config";
import {getHeadings} from "@/libs/docs/utils";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
"use client";

import type {MenuTriggerAction} from "@heroui/react";

import * as React from "react";
import {Autocomplete, AutocompleteItem, MenuTriggerAction} from "@heroui/react";
import {Autocomplete, AutocompleteItem} from "@heroui/react";
import {useFilter} from "@react-aria/i18n";

const animals = [
Expand Down
3 changes: 2 additions & 1 deletion apps/docs/app/examples/modal/placement/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"use client";

import type {ModalProps} from "@heroui/react";

import {
Modal,
ModalContent,
Expand All @@ -10,7 +12,6 @@ import {
useDisclosure,
RadioGroup,
Radio,
ModalProps,
} from "@heroui/react";
import {useState} from "react";

Expand Down
5 changes: 2 additions & 3 deletions apps/docs/app/examples/table/custom-styles/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"use client";

import type {Selection, ChipProps, SortDescriptor} from "@heroui/react";

import {
Table,
TableHeader,
Expand All @@ -13,12 +15,9 @@ import {
Dropdown,
DropdownMenu,
DropdownItem,
Selection,
Chip,
User,
ChipProps,
Pagination,
SortDescriptor,
} from "@heroui/react";
import {ChevronDownIcon, SearchIcon} from "@heroui/shared-icons";
import {useCallback, useMemo, useState} from "react";
Expand Down
5 changes: 2 additions & 3 deletions apps/docs/app/examples/table/use-case/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"use client";

import type {Selection, ChipProps, SortDescriptor} from "@heroui/react";

import {
Table,
TableHeader,
Expand All @@ -13,12 +15,9 @@ import {
Dropdown,
DropdownMenu,
DropdownItem,
Selection,
Chip,
User,
ChipProps,
Pagination,
SortDescriptor,
} from "@heroui/react";
import {ChevronDownIcon, SearchIcon} from "@heroui/shared-icons";
import {useCallback, useMemo, useState} from "react";
Expand Down
3 changes: 2 additions & 1 deletion apps/docs/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import "@/styles/globals.css";
import "@/styles/sandpack.css";
import {Metadata, Viewport} from "next";
import type {Metadata, Viewport} from "next";

import {clsx} from "@heroui/shared-utils";
import {Analytics} from "@vercel/analytics/next";

Expand Down
3 changes: 2 additions & 1 deletion apps/docs/app/providers.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
"use client";

import type {ThemeProviderProps} from "next-themes";

import * as React from "react";
import {HeroUIProvider} from "@heroui/react";
import {ThemeProvider as NextThemesProvider} from "next-themes";
import {ThemeProviderProps} from "next-themes";
import {useRouter} from "next/navigation";
import {useEffect} from "react";
import posthog from "posthog-js";
Expand Down
3 changes: 2 additions & 1 deletion apps/docs/components/bg-grid-container.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {ReactNode, FC} from "react";
import type {ReactNode, FC} from "react";

import {clsx} from "@heroui/shared-utils";
export interface BgGridContainerProps {
showGradient?: boolean;
Expand Down
3 changes: 2 additions & 1 deletion apps/docs/components/blog-post.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"use client";

import {BlogPost} from "contentlayer2/generated";
import type {BlogPost} from "contentlayer2/generated";

import {Card, CardFooter, CardBody, CardHeader, Link, Avatar, Image} from "@heroui/react";
import Balancer from "react-wrap-balancer";
import {format, parseISO} from "date-fns";
Expand Down
4 changes: 3 additions & 1 deletion apps/docs/components/blog/video-in-view.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
"use client";

import type {FC} from "react";

import {useInView} from "framer-motion";
import {useRef, FC, useEffect, useState, useCallback} from "react";
import {useRef, useEffect, useState, useCallback} from "react";
import {Button, cn, Spinner, Tooltip} from "@heroui/react";

import {PlayBoldIcon, PauseBoldIcon} from "@/components/icons";
Expand Down
7 changes: 5 additions & 2 deletions apps/docs/components/cmdk.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
/* eslint-disable jsx-a11y/no-autofocus */
"use client";

import type {FC} from "react";
import type {ButtonProps} from "@heroui/react";

import {Command} from "cmdk";
import {useEffect, useState, FC, useMemo, useCallback, useRef} from "react";
import {useEffect, useState, useMemo, useCallback, useRef} from "react";
import {matchSorter} from "match-sorter";
import {Button, ButtonProps, Kbd, Modal, ModalContent} from "@heroui/react";
import {Button, Kbd, Modal, ModalContent} from "@heroui/react";
import {CloseIcon} from "@heroui/shared-icons";
import {tv} from "tailwind-variants";
import {usePathname, useRouter} from "next/navigation";
Expand Down
4 changes: 3 additions & 1 deletion apps/docs/components/code-window/code-window.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
"use client";
// Inspired by https://github.dev/modulz/stitches-site code demo
import type {CodeBlockProps} from "./code-block";

import React from "react";
import rangeParser from "parse-numeric-range";

import CodeBlock, {CodeBlockProps} from "./code-block";
import CodeBlock from "./code-block";

import {CopyButton} from "@/components";

Expand Down
3 changes: 2 additions & 1 deletion apps/docs/components/copy-button.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {ButtonProps} from "@heroui/react";
import type {ButtonProps} from "@heroui/react";

import {useClipboard} from "@heroui/use-clipboard";
import {memo} from "react";

Expand Down
4 changes: 3 additions & 1 deletion apps/docs/components/demo-code-modal.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"use client";

import {FC, useState} from "react";
import type {FC} from "react";

import {useState} from "react";
import {
Modal,
Button,
Expand Down
7 changes: 5 additions & 2 deletions apps/docs/components/demos/music-player.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
"use client";

import {Card, CardBody, Button, Image, Slider, CardProps} from "@heroui/react";
import {useState, FC} from "react";
import type {CardProps} from "@heroui/react";
import type {FC} from "react";

import {Card, CardBody, Button, Image, Slider} from "@heroui/react";
import {useState} from "react";
import {clsx} from "@heroui/shared-utils";
import NextImage from "next/image";

Expand Down
12 changes: 4 additions & 8 deletions apps/docs/components/demos/speed-progress.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import {
tv,
VariantProps,
CircularProgress,
CircularProgressProps,
circularProgress,
} from "@heroui/react";
import {FC} from "react";
import type {VariantProps, CircularProgressProps} from "@heroui/react";
import type {FC} from "react";

import {tv, CircularProgress, circularProgress} from "@heroui/react";

const speedProgress = tv({
extend: circularProgress,
Expand Down
6 changes: 4 additions & 2 deletions apps/docs/components/docs/components/blockquote.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
"use client";

import {FC} from "react";
import {tv, VariantProps} from "tailwind-variants";
import type {FC} from "react";
import type {VariantProps} from "tailwind-variants";

import {tv} from "tailwind-variants";

const blockquoteStyles = tv({
base: "border px-4 bg-default-50 my-6 py-3 rounded-xl [&>p]:m-0",
Expand Down
9 changes: 6 additions & 3 deletions apps/docs/components/docs/components/code-demo/code-demo.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
"use client";

import type {UseCodeDemoProps} from "./use-code-demo";
import type {WindowResizerProps} from "./window-resizer";
import type {GradientBoxProps} from "@/components/gradient-box";

import React, {useCallback, useMemo, useRef, useState} from "react";
import dynamic from "next/dynamic";
import {addToast, Button, Skeleton, Spinner, Tab, Tabs} from "@heroui/react";
import {useInView} from "framer-motion";
import {usePostHog} from "posthog-js/react";
import {usePathname} from "next/navigation";

import {useCodeDemo, UseCodeDemoProps} from "./use-code-demo";
import WindowResizer, {WindowResizerProps} from "./window-resizer";
import {useCodeDemo} from "./use-code-demo";
import WindowResizer from "./window-resizer";
import {parseDependencies} from "./parse-dependencies";

import {GradientBoxProps} from "@/components/gradient-box";
import {SmallLogo} from "@/components/heroui-logo";
import {openInChat} from "@/actions/open-in-chat";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import type {SandpackFiles} from "@codesandbox/sandpack-react/types";
import type {GradientBoxProps} from "@/components/gradient-box";

import React from "react";
import {LivePreview, LiveProvider, LiveError} from "react-live";
import {clsx} from "@heroui/shared-utils";
import * as HeroUI from "@heroui/react";
import * as intlDateUtils from "@internationalized/date";
import * as reactAriaI18n from "@react-aria/i18n";
import * as reactHookFormBase from "react-hook-form";
import {SandpackFiles} from "@codesandbox/sandpack-react/types";

import {BgGridContainer} from "@/components/bg-grid-container";
import {GradientBox, GradientBoxProps} from "@/components/gradient-box";
import {GradientBox} from "@/components/gradient-box";
import {CopyButton} from "@/components/copy-button";
import {StackblitzButton} from "@/components/stackblitz-button";
import {PreviewButton} from "@/components/preview-button";
Expand Down
Loading