mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
refactor: optimization (#5362)
* chore(deps): bump RA versions * chore(deps): bump RA versions * chore(deps): bump RA versions * chore: changeset * chore(deps): remove unnecessary dependencies * fix(calendar): typing issue * refactor(system): remove unused SupportedCalendars * refactor(system): move I18nProviderProps to type * refactor: use `spectrumCalendarProps<DateValue>["createCalendar"]` * feat: add consistent-type-imports * fix: eslint * chore: add changeset * refactor: remove unused deps
This commit is contained in:
parent
ad807bec7e
commit
0d217e466f
68
.changeset/popular-students-divide.md
Normal file
68
.changeset/popular-students-divide.md
Normal file
@ -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
.changeset/silver-dancers-joke.md
Normal file
5
.changeset/silver-dancers-joke.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@heroui/system": patch
|
||||
---
|
||||
|
||||
remove unncessary dependencies
|
||||
44
.changeset/spicy-dodos-fetch.md
Normal file
44
.changeset/spicy-dodos-fetch.md
Normal file
@ -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
|
||||
@ -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";
|
||||
@ -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";
|
||||
|
||||
|
||||
@ -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";
|
||||
@ -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";
|
||||
|
||||
@ -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 = [
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import type {ModalProps} from "@heroui/react";
|
||||
|
||||
import {
|
||||
Modal,
|
||||
ModalContent,
|
||||
@ -10,7 +12,6 @@ import {
|
||||
useDisclosure,
|
||||
RadioGroup,
|
||||
Radio,
|
||||
ModalProps,
|
||||
} from "@heroui/react";
|
||||
import {useState} from "react";
|
||||
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import type {Selection, ChipProps, SortDescriptor} from "@heroui/react";
|
||||
|
||||
import {
|
||||
Table,
|
||||
TableHeader,
|
||||
@ -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";
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import type {Selection, ChipProps, SortDescriptor} from "@heroui/react";
|
||||
|
||||
import {
|
||||
Table,
|
||||
TableHeader,
|
||||
@ -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";
|
||||
|
||||
@ -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";
|
||||
|
||||
|
||||
@ -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";
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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";
|
||||
|
||||
@ -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";
|
||||
|
||||
@ -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";
|
||||
|
||||
@ -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";
|
||||
|
||||
|
||||
@ -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";
|
||||
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
"use client";
|
||||
|
||||
import {FC, useState} from "react";
|
||||
import type {FC} from "react";
|
||||
|
||||
import {useState} from "react";
|
||||
import {
|
||||
Modal,
|
||||
Button,
|
||||
|
||||
@ -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";
|
||||
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -1,5 +1,9 @@
|
||||
"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";
|
||||
@ -7,11 +11,10 @@ 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";
|
||||
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
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";
|
||||
@ -5,10 +8,9 @@ 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";
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
import {FileCode} from "./types";
|
||||
import type {FileCode} from "./types";
|
||||
import type {SandpackProps} from "@/components/sandpack";
|
||||
|
||||
import {scope} from "./react-live-demo";
|
||||
import {transformCode, joinCode, getFileName} from "./utils";
|
||||
|
||||
import {SandpackProps} from "@/components/sandpack";
|
||||
|
||||
export interface UseCodeDemoProps extends SandpackProps {
|
||||
code?: string;
|
||||
}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {FileCode} from "./types";
|
||||
import type {FileCode} from "./types";
|
||||
|
||||
const importRegex = /^(import\s+(?!type\s+\{)[\s\S]*?;)/gm;
|
||||
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
import {Button, ButtonProps, Code, Link, Tooltip} from "@heroui/react";
|
||||
import {ReactNode} from "react";
|
||||
import type {ButtonProps} from "@heroui/react";
|
||||
import type {ReactNode} from "react";
|
||||
|
||||
import {Button, Code, Link, Tooltip} from "@heroui/react";
|
||||
import Balancer from "react-wrap-balancer";
|
||||
import {usePostHog} from "posthog-js/react";
|
||||
|
||||
|
||||
@ -1,7 +1,9 @@
|
||||
"use client";
|
||||
|
||||
import type {Key} from "react";
|
||||
|
||||
import {Tabs, Tab, Snippet, Code} from "@heroui/react";
|
||||
import {Key, useState} from "react";
|
||||
import {useState} from "react";
|
||||
|
||||
import Codeblock from "./codeblock";
|
||||
import {Blockquote} from "./blockquote";
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import type {Route} from "@/libs/docs/page";
|
||||
|
||||
import * as React from "react";
|
||||
import {Link} from "@heroui/react";
|
||||
import {usePostHog} from "posthog-js/react";
|
||||
@ -8,7 +10,6 @@ import {ChevronIcon} from "@heroui/shared-icons";
|
||||
|
||||
import manifest from "@/config/routes.json";
|
||||
import {removeFromLast} from "@/utils";
|
||||
import {Route} from "@/libs/docs/page";
|
||||
import {useDocsRoute} from "@/hooks/use-docs-route";
|
||||
|
||||
export interface FooterNavProps {
|
||||
|
||||
@ -1,22 +1,27 @@
|
||||
"use client";
|
||||
|
||||
import {FC, useEffect, useState, useRef, useMemo, useLayoutEffect} from "react";
|
||||
import type {FC} from "react";
|
||||
import type {
|
||||
CollectionBase,
|
||||
Expandable,
|
||||
MultipleSelection,
|
||||
Node,
|
||||
ItemProps,
|
||||
} from "@react-types/shared";
|
||||
import type {TreeState} from "@react-stately/tree";
|
||||
import type {SpacerProps} from "@heroui/react";
|
||||
import type {Route} from "@/libs/docs/page";
|
||||
|
||||
import {useEffect, useState, useRef, useMemo, useLayoutEffect} from "react";
|
||||
import {usePostHog} from "posthog-js/react";
|
||||
import {ChevronIcon} from "@heroui/shared-icons";
|
||||
import {CollectionBase, Expandable, MultipleSelection, Node, ItemProps} from "@react-types/shared";
|
||||
import {BaseItem} from "@heroui/aria-utils";
|
||||
import {useFocusRing} from "@react-aria/focus";
|
||||
import {TreeState, useTreeState} from "@react-stately/tree";
|
||||
import {useTreeState} from "@react-stately/tree";
|
||||
import {useSelectableCollection} from "@react-aria/selection";
|
||||
import {usePress} from "@react-aria/interactions";
|
||||
import {clsx, dataAttr, debounce, isEmpty} from "@heroui/shared-utils";
|
||||
import {
|
||||
SpacerProps,
|
||||
Spacer,
|
||||
Link as HeroUILink,
|
||||
Chip,
|
||||
dataFocusVisibleClasses,
|
||||
} from "@heroui/react";
|
||||
import {Spacer, Link as HeroUILink, Chip, dataFocusVisibleClasses} from "@heroui/react";
|
||||
import Link from "next/link";
|
||||
import {usePathname, useRouter} from "next/navigation";
|
||||
|
||||
@ -24,7 +29,6 @@ import {ScrollArea} from "../scroll-area";
|
||||
|
||||
import {getRoutePaths} from "./utils";
|
||||
|
||||
import {Route} from "@/libs/docs/page";
|
||||
import {TreeKeyboardDelegate} from "@/utils/tree-keyboard-delegate";
|
||||
import emitter from "@/libs/emitter";
|
||||
|
||||
|
||||
@ -1,6 +1,9 @@
|
||||
"use client";
|
||||
|
||||
import {FC, useRef, useEffect, useState} from "react";
|
||||
import type {FC} from "react";
|
||||
import type {Heading} from "@/libs/docs/utils";
|
||||
|
||||
import {useRef, useEffect, useState} from "react";
|
||||
import {clsx} from "@heroui/shared-utils";
|
||||
import {Divider, Spacer} from "@heroui/react";
|
||||
import {ChevronCircleTopLinearIcon} from "@heroui/shared-icons";
|
||||
@ -8,7 +11,6 @@ import scrollIntoView from "scroll-into-view-if-needed";
|
||||
|
||||
import {HeroUIProCallout} from "./heroui-pro-callout";
|
||||
|
||||
import {Heading} from "@/libs/docs/utils";
|
||||
import {useScrollSpy} from "@/hooks/use-scroll-spy";
|
||||
import {useScrollPosition} from "@/hooks/use-scroll-position";
|
||||
import emitter from "@/libs/emitter";
|
||||
|
||||
@ -1,5 +1,8 @@
|
||||
import {ReactNode, forwardRef} from "react";
|
||||
import {tv, VariantProps} from "tailwind-variants";
|
||||
import type {ReactNode} from "react";
|
||||
import type {VariantProps} from "tailwind-variants";
|
||||
|
||||
import {forwardRef} from "react";
|
||||
import {tv} from "tailwind-variants";
|
||||
|
||||
const styles = tv({
|
||||
base: "flex relative w-full h-auto",
|
||||
|
||||
@ -1,7 +1,8 @@
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
import React from "react";
|
||||
import {cn} from "@heroui/theme";
|
||||
|
||||
import {IconSvgProps} from "@/types";
|
||||
import {dataAttr} from "@/utils";
|
||||
export interface LogoProps extends IconSvgProps {
|
||||
auto?: boolean;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const CLIBoldIcon = ({...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const DocumentCodeBoldIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const EyeBoldIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const FatrowsBoldIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const HashBoldIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const HeartBoldIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const InfoBoldIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const KeyboardOpenBoldIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const KeyboardBoldIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const MoreSquareBoldIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const MouseCircleBoldIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const NextBoldIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const PauseCircleBoldIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const PauseBoldIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const PlayBoldIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const PreviousBoldIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const RepeatOneBoldIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const ShuffleBoldIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const SquaresBoldIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const BugIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const CircleInfo = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const CropMinimalistic = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const DevicesIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const Filters = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const FlashIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const GamingConsoleIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const HeartFilledIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const CheckLinearIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const ChevronRightLinearIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const CLILinearIcon = ({...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const CodeDocumentLinearIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const CopyLinearIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const CubesLinearIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const HashLinearIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const HeartLinearIcon = ({
|
||||
size = 24,
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const HtmlLogoLinearIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const LinkCircleLinearIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const LinkSquaredLinearIcon = ({
|
||||
size = 24,
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const LinkLinearIcon = ({
|
||||
size = 24,
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const MaximizeLinearIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const MouseCircleLinearIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const NoteLinearIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const PaperclipLinearIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const PlusLinearIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const RotateLeftLinearIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const RotateRightLinearIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const SearchLinearIcon = ({
|
||||
size = 24,
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const ServerLinearIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const SimpleGridIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const TagUserLinearIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const MagicIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const MirrorLeft = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const MoonFilledIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const MoonIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const PaletteRound = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const PaletteIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const RadialBlur = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const Scaling = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import React from "react";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
import {IconSvgProps} from "@/types";
|
||||
import React from "react";
|
||||
|
||||
const OpenCollectiveIcon: React.FC<IconSvgProps> = ({size = 24, width, height, ...props}) => {
|
||||
return (
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const RelumeLogo = ({width = 152, height = 56, ...props}: IconSvgProps) => (
|
||||
<svg fill="none" height={height} width={width} xmlns="http://www.w3.org/2000/svg" {...props}>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const StarIcon = ({size = 24, width, height, fill = "none", ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const SunFilledIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const TextSquare = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const TickBoldIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const KeyboardTwoToneIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IconSvgProps} from "@/types";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
export const VerticalDotsIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
|
||||
<svg
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import * as React from "react";
|
||||
import type {IconSvgProps} from "@/types";
|
||||
|
||||
import {IconSvgProps} from "@/types";
|
||||
import * as React from "react";
|
||||
|
||||
export const LooperBg: React.FC<IconSvgProps> = ({width = 1440, height = 1343, ...props}) => (
|
||||
<svg
|
||||
|
||||
@ -1,4 +1,6 @@
|
||||
import {tv, VariantProps} from "tailwind-variants";
|
||||
import type {VariantProps} from "tailwind-variants";
|
||||
|
||||
import {tv} from "tailwind-variants";
|
||||
|
||||
export const shopCartStyles = tv({
|
||||
slots: {
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user