@mbao01/common 0.5.2 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/components/Alert/constants.d.ts +1 -1
- package/dist/types/components/AlertDialog/AlertDialog.d.ts +7 -5
- package/dist/types/components/Anchor/{constant.d.ts → constants.d.ts} +1 -1
- package/dist/types/components/Anchor/types.d.ts +1 -1
- package/dist/types/components/AspectRatio/AspectRatio.d.ts +6 -0
- package/dist/types/components/AspectRatio/constants.d.ts +3 -0
- package/dist/types/components/AspectRatio/index.d.ts +2 -0
- package/dist/types/components/AspectRatio/types.d.ts +5 -0
- package/dist/types/components/Avatar/constants.d.ts +6 -6
- package/dist/types/components/Badge/constants.d.ts +1 -1
- package/dist/types/components/Banner/Banner.d.ts +11 -0
- package/dist/types/components/Banner/constants.d.ts +4 -0
- package/dist/types/components/Banner/index.d.ts +2 -0
- package/dist/types/components/Banner/types.d.ts +9 -0
- package/dist/types/components/Blockquote/Blockquote.d.ts +6 -0
- package/dist/types/components/Blockquote/constants.d.ts +3 -0
- package/dist/types/components/Blockquote/index.d.ts +2 -0
- package/dist/types/components/Blockquote/types.d.ts +5 -0
- package/dist/types/components/Box/Box.d.ts +6 -0
- package/dist/types/components/Box/constants.d.ts +5 -0
- package/dist/types/components/Box/index.d.ts +2 -0
- package/dist/types/components/Box/types.d.ts +3 -0
- package/dist/types/components/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/types/components/Breadcrumb/types.d.ts +1 -1
- package/dist/types/components/Button/Button.d.ts +3 -2
- package/dist/types/components/Button/constants.d.ts +2 -1
- package/dist/types/components/Carousel/Carousel.d.ts +6 -4
- package/dist/types/components/Center/Center.d.ts +5 -0
- package/dist/types/components/Center/constants.d.ts +4 -0
- package/dist/types/components/Center/index.d.ts +2 -0
- package/dist/types/components/Center/types.d.ts +3 -0
- package/dist/types/components/Chart/constants.d.ts +2 -2
- package/dist/types/components/Code/Code.d.ts +8 -0
- package/dist/types/components/Code/constants.d.ts +4 -0
- package/dist/types/components/Code/helper.d.ts +2 -0
- package/dist/types/components/Code/index.d.ts +2 -0
- package/dist/types/components/Code/types.d.ts +6 -0
- package/dist/types/components/Combobox/Combobox.d.ts +1 -1
- package/dist/types/components/Combobox/types.d.ts +1 -0
- package/dist/types/components/Container/Container.d.ts +6 -0
- package/dist/types/components/Container/constants.d.ts +5 -0
- package/dist/types/components/Container/index.d.ts +2 -0
- package/dist/types/components/Container/types.d.ts +3 -0
- package/dist/types/components/DatetimePicker/DatetimeGrid.d.ts +2 -2
- package/dist/types/components/DatetimePicker/DatetimePicker.d.ts +2 -2
- package/dist/types/components/DatetimePicker/constants.d.ts +1 -1
- package/dist/types/components/Dialog/Dialog.d.ts +1 -1
- package/dist/types/components/Dialog/constants.d.ts +1 -1
- package/dist/types/components/Dock/constants.d.ts +2 -2
- package/dist/types/components/Empty/Empty.d.ts +8 -0
- package/dist/types/components/Empty/constants.d.ts +6 -0
- package/dist/types/components/Empty/index.d.ts +2 -0
- package/dist/types/components/Empty/types.d.ts +3 -0
- package/dist/types/components/Flex/Flex.d.ts +8 -0
- package/dist/types/components/Flex/constants.d.ts +7 -0
- package/dist/types/components/Flex/index.d.ts +2 -0
- package/dist/types/components/Flex/types.d.ts +3 -0
- package/dist/types/components/Footer/Footer.d.ts +6 -0
- package/dist/types/components/Footer/constants.d.ts +4 -0
- package/dist/types/components/Footer/index.d.ts +2 -0
- package/dist/types/components/Footer/types.d.ts +4 -0
- package/dist/types/components/Form/DatetimeInput/DatetimeInput.d.ts +3 -3
- package/dist/types/components/Form/Input/Input.d.ts +4 -4
- package/dist/types/components/Form/Input/constants.d.ts +2 -2
- package/dist/types/components/Form/NativeSelect/NativeSelect.d.ts +8 -0
- package/dist/types/components/Form/NativeSelect/constants.d.ts +7 -0
- package/dist/types/components/Form/NativeSelect/index.d.ts +2 -0
- package/dist/types/components/Form/NativeSelect/types.d.ts +3 -0
- package/dist/types/components/Form/Radio/Radio.d.ts +1 -1
- package/dist/types/components/Form/Range/Range.d.ts +1 -1
- package/dist/types/components/Form/Select/Select.d.ts +4 -4
- package/dist/types/components/Form/Select/constants.d.ts +2 -2
- package/dist/types/components/Form/Switch/Switch.d.ts +1 -1
- package/dist/types/components/Form/TagsInput/TagsInput.d.ts +2 -2
- package/dist/types/components/Form/TextField/TextField.d.ts +4 -4
- package/dist/types/components/Form/Textarea/Textarea.d.ts +3 -3
- package/dist/types/components/Form/Textarea/constants.d.ts +1 -1
- package/dist/types/components/Form/components/Field/Field.d.ts +8 -0
- package/dist/types/components/Form/components/Field/FieldContext.d.ts +2 -0
- package/dist/types/components/Form/components/Field/constants.d.ts +6 -0
- package/dist/types/components/Form/components/Field/hooks/index.d.ts +1 -0
- package/dist/types/components/Form/components/Field/hooks/useField/index.d.ts +1 -0
- package/dist/types/components/Form/components/Field/hooks/useField/useField.d.ts +1 -0
- package/dist/types/components/Form/components/Field/index.d.ts +2 -0
- package/dist/types/components/Form/components/Field/types.d.ts +12 -0
- package/dist/types/components/Form/index.d.ts +2 -0
- package/dist/types/components/Grid/Grid.d.ts +11 -0
- package/dist/types/components/Grid/constants.d.ts +10 -0
- package/dist/types/components/Grid/index.d.ts +2 -0
- package/dist/types/components/Grid/types.d.ts +4 -0
- package/dist/types/components/Header/Header.d.ts +7 -0
- package/dist/types/components/Header/constants.d.ts +3 -0
- package/dist/types/components/Header/index.d.ts +2 -0
- package/dist/types/components/Header/types.d.ts +3 -0
- package/dist/types/components/Heading/Heading.d.ts +7 -0
- package/dist/types/components/Heading/constants.d.ts +4 -0
- package/dist/types/components/Heading/index.d.ts +2 -0
- package/dist/types/components/Heading/types.d.ts +7 -0
- package/dist/types/components/Image/Image.d.ts +7 -0
- package/dist/types/components/Image/constants.d.ts +4 -0
- package/dist/types/components/Image/index.d.ts +2 -0
- package/dist/types/components/Image/types.d.ts +5 -0
- package/dist/types/components/Kbd/constants.d.ts +1 -1
- package/dist/types/components/List/constants.d.ts +1 -1
- package/dist/types/components/Loading/Loading.d.ts +1 -1
- package/dist/types/components/Loading/constants.d.ts +2 -2
- package/dist/types/components/Menu/ContextMenu/ContextMenu.d.ts +4 -4
- package/dist/types/components/Menu/DropdownMenu/DropdownMenu.d.ts +4 -4
- package/dist/types/components/Menu/Menubar/Menubar.d.ts +5 -5
- package/dist/types/components/Menu/Menubar/constants.d.ts +5 -5
- package/dist/types/components/Menu/NavigationMenu/NavigationMenu.d.ts +1 -1
- package/dist/types/components/Menu/NavigationMenu/constants.d.ts +1 -1
- package/dist/types/components/Panel/Panel.d.ts +11 -0
- package/dist/types/components/Panel/constants.d.ts +7 -0
- package/dist/types/components/Panel/index.d.ts +2 -0
- package/dist/types/components/Panel/types.d.ts +8 -0
- package/dist/types/components/Paragraph/Paragraph.d.ts +3 -0
- package/dist/types/components/Paragraph/constants.d.ts +3 -0
- package/dist/types/components/Paragraph/index.d.ts +2 -0
- package/dist/types/components/Paragraph/types.d.ts +5 -0
- package/dist/types/components/Progress/Progress.d.ts +1 -1
- package/dist/types/components/Progress/constants.d.ts +2 -2
- package/dist/types/components/Resizable/Resizable.d.ts +1 -1
- package/dist/types/components/ScrollArea/ScrollArea.d.ts +1 -1
- package/dist/types/components/ScrollArea/constants.d.ts +1 -1
- package/dist/types/components/Sheet/Sheet.d.ts +12 -0
- package/dist/types/components/Sheet/constants.d.ts +7 -0
- package/dist/types/components/Sheet/index.d.ts +2 -0
- package/dist/types/components/Sheet/types.d.ts +5 -0
- package/dist/types/components/Sidebar/Sidebar.d.ts +8 -7
- package/dist/types/components/Sidebar/SidebarMenu.d.ts +3 -2
- package/dist/types/components/Sidebar/constants.d.ts +5 -4
- package/dist/types/components/Sidebar/types.d.ts +1 -1
- package/dist/types/components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/types/components/Skeleton/constants.d.ts +3 -3
- package/dist/types/components/Sonner/constants.d.ts +2 -2
- package/dist/types/components/Spacer/Spacer.d.ts +5 -0
- package/dist/types/components/Spacer/constants.d.ts +4 -0
- package/dist/types/components/Spacer/index.d.ts +2 -0
- package/dist/types/components/Spacer/types.d.ts +3 -0
- package/dist/types/components/Spinner/Spinner.d.ts +5 -0
- package/dist/types/components/Spinner/constants.d.ts +4 -0
- package/dist/types/components/Spinner/index.d.ts +2 -0
- package/dist/types/components/Spinner/types.d.ts +3 -0
- package/dist/types/components/Status/constants.d.ts +1 -1
- package/dist/types/components/Stepper/Stepper.d.ts +9 -0
- package/dist/types/components/Stepper/constants.d.ts +6 -0
- package/dist/types/components/Stepper/index.d.ts +2 -0
- package/dist/types/components/Stepper/types.d.ts +6 -0
- package/dist/types/components/Text/constants.d.ts +1 -1
- package/dist/types/components/Timeline/Timeline.d.ts +5 -5
- package/dist/types/components/Timeline/constants.d.ts +5 -5
- package/dist/types/components/Toggle/Toggle.d.ts +5 -3
- package/dist/types/components/Toggle/constants.d.ts +2 -1
- package/dist/types/components/ToggleGroup/ToggleGroup.d.ts +5 -3
- package/dist/types/index.d.ts +24 -0
- package/dist/types/utilities/createVariants/createVariants.d.ts +2 -0
- package/dist/types/utilities/createVariants/index.d.ts +1 -0
- package/dist/types/utilities/createVariants/type.d.ts +10 -0
- package/dist/types/utilities/index.d.ts +1 -0
- package/package.json +41 -41
- package/src/components/Alert/constants.ts +3 -2
- package/src/components/Anchor/Anchor.tsx +1 -1
- package/src/components/Anchor/{constant.ts → constants.ts} +4 -4
- package/src/components/Anchor/types.ts +1 -1
- package/src/components/AspectRatio/AspectRatio.tsx +23 -0
- package/src/components/AspectRatio/constants.ts +17 -0
- package/src/components/AspectRatio/index.ts +2 -0
- package/src/components/AspectRatio/types.ts +7 -0
- package/src/components/Avatar/constants.ts +17 -22
- package/src/components/Badge/constants.ts +3 -2
- package/src/components/Banner/Banner.tsx +36 -0
- package/src/components/Banner/constants.ts +18 -0
- package/src/components/Banner/index.ts +2 -0
- package/src/components/Banner/types.ts +11 -0
- package/src/components/Blockquote/Blockquote.tsx +21 -0
- package/src/components/Blockquote/constants.ts +22 -0
- package/src/components/Blockquote/index.ts +2 -0
- package/src/components/Blockquote/types.ts +7 -0
- package/src/components/Box/Box.tsx +20 -0
- package/src/components/Box/constants.ts +34 -0
- package/src/components/Box/index.ts +2 -0
- package/src/components/Box/types.ts +4 -0
- package/src/components/Breadcrumb/types.ts +1 -1
- package/src/components/Button/Button.tsx +3 -4
- package/src/components/Button/constants.ts +6 -3
- package/src/components/Card/constants.ts +3 -2
- package/src/components/Carousel/constants.ts +9 -8
- package/src/components/Center/Center.tsx +16 -0
- package/src/components/Center/constants.ts +20 -0
- package/src/components/Center/index.ts +2 -0
- package/src/components/Center/types.ts +5 -0
- package/src/components/Chart/constants.ts +9 -8
- package/src/components/Code/Code.tsx +51 -0
- package/src/components/Code/constants.ts +28 -0
- package/src/components/Code/helper.ts +10 -0
- package/src/components/Code/index.ts +2 -0
- package/src/components/Code/types.ts +8 -0
- package/src/components/Combobox/Combobox.tsx +2 -3
- package/src/components/Combobox/types.ts +1 -0
- package/src/components/Container/Container.tsx +20 -0
- package/src/components/Container/constants.ts +31 -0
- package/src/components/Container/index.ts +2 -0
- package/src/components/Container/types.ts +5 -0
- package/src/components/DatetimePicker/constants.ts +5 -4
- package/src/components/Dialog/Dialog.tsx +3 -3
- package/src/components/Dialog/constants.ts +5 -4
- package/src/components/Dock/constants.ts +14 -13
- package/src/components/DragAndDrop/Draggable/constants.ts +5 -4
- package/src/components/DragAndDrop/Droppable/constants.ts +3 -2
- package/src/components/DragAndDrop/Sortable/constants.ts +3 -2
- package/src/components/Empty/Empty.tsx +66 -0
- package/src/components/Empty/constants.ts +30 -0
- package/src/components/Empty/index.ts +2 -0
- package/src/components/Empty/types.ts +5 -0
- package/src/components/Flex/Flex.tsx +20 -0
- package/src/components/Flex/constants.ts +51 -0
- package/src/components/Flex/index.ts +2 -0
- package/src/components/Flex/types.ts +4 -0
- package/src/components/Footer/Footer.tsx +26 -0
- package/src/components/Footer/constants.ts +12 -0
- package/src/components/Footer/index.ts +2 -0
- package/src/components/Footer/types.ts +6 -0
- package/src/components/Form/Checkbox/constants.ts +5 -4
- package/src/components/Form/DatetimeInput/constants.ts +9 -8
- package/src/components/Form/Input/constants.ts +7 -6
- package/src/components/Form/MultiSelect/constants.ts +10 -9
- package/src/components/Form/NativeSelect/NativeSelect.tsx +23 -0
- package/src/components/Form/NativeSelect/constants.ts +39 -0
- package/src/components/Form/NativeSelect/index.ts +2 -0
- package/src/components/Form/NativeSelect/types.ts +5 -0
- package/src/components/Form/Radio/constants.ts +3 -2
- package/src/components/Form/Range/constants.ts +3 -2
- package/src/components/Form/Select/constants.ts +14 -13
- package/src/components/Form/Slider/constants.ts +9 -8
- package/src/components/Form/Switch/constants.ts +3 -2
- package/src/components/Form/TagsInput/TagsInput.tsx +1 -1
- package/src/components/Form/TagsInput/constants.ts +7 -6
- package/src/components/Form/Textarea/constants.ts +3 -2
- package/src/components/Form/Validator/constants.ts +3 -2
- package/src/components/Form/components/Field/Field.tsx +81 -0
- package/src/components/Form/components/Field/FieldContext.tsx +4 -0
- package/src/components/Form/components/Field/constants.ts +20 -0
- package/src/components/Form/components/Field/hooks/index.ts +1 -0
- package/src/components/Form/components/Field/hooks/useField/index.ts +1 -0
- package/src/components/Form/components/Field/hooks/useField/useField.ts +10 -0
- package/src/components/Form/components/Field/index.ts +2 -0
- package/src/components/Form/components/Field/types.ts +19 -0
- package/src/components/Form/index.ts +2 -0
- package/src/components/Grid/Grid.tsx +32 -0
- package/src/components/Grid/constants.ts +84 -0
- package/src/components/Grid/index.ts +2 -0
- package/src/components/Grid/types.ts +7 -0
- package/src/components/Header/Header.tsx +49 -0
- package/src/components/Header/constants.ts +18 -0
- package/src/components/Header/index.ts +2 -0
- package/src/components/Header/types.ts +4 -0
- package/src/components/Heading/Heading.tsx +23 -0
- package/src/components/Heading/constants.ts +25 -0
- package/src/components/Heading/index.ts +2 -0
- package/src/components/Heading/types.ts +10 -0
- package/src/components/Image/Image.tsx +30 -0
- package/src/components/Image/constants.ts +25 -0
- package/src/components/Image/index.ts +2 -0
- package/src/components/Image/types.ts +7 -0
- package/src/components/Kbd/constants.ts +3 -2
- package/src/components/List/constants.ts +3 -2
- package/src/components/Loading/Loading.tsx +2 -4
- package/src/components/Loading/constants.ts +5 -4
- package/src/components/Menu/Menubar/constants.ts +16 -14
- package/src/components/Menu/NavigationMenu/constants.ts +5 -3
- package/src/components/Panel/Panel.tsx +58 -0
- package/src/components/Panel/constants.ts +31 -0
- package/src/components/Panel/index.ts +2 -0
- package/src/components/Panel/types.ts +11 -0
- package/src/components/Paragraph/Paragraph.tsx +17 -0
- package/src/components/Paragraph/constants.ts +18 -0
- package/src/components/Paragraph/index.ts +2 -0
- package/src/components/Paragraph/types.ts +8 -0
- package/src/components/Progress/constants.ts +9 -10
- package/src/components/Resizable/constants.ts +3 -2
- package/src/components/ScrollArea/constants.ts +6 -5
- package/src/components/Separator/constants.ts +3 -2
- package/src/components/Sheet/Sheet.tsx +126 -0
- package/src/components/Sheet/constants.ts +45 -0
- package/src/components/Sheet/index.ts +9 -0
- package/src/components/Sheet/types.ts +7 -0
- package/src/components/Sidebar/Sidebar.tsx +5 -5
- package/src/components/Sidebar/SidebarMenu.tsx +3 -3
- package/src/components/Sidebar/constants.ts +32 -25
- package/src/components/Sidebar/types.ts +1 -1
- package/src/components/Skeleton/Skeleton.tsx +2 -2
- package/src/components/Skeleton/constants.ts +4 -3
- package/src/components/Sonner/Toaster.tsx +1 -1
- package/src/components/Sonner/constants.ts +6 -5
- package/src/components/Sonner/helpers.ts +1 -1
- package/src/components/Spacer/Spacer.tsx +19 -0
- package/src/components/Spacer/constants.ts +55 -0
- package/src/components/Spacer/index.ts +2 -0
- package/src/components/Spacer/types.ts +5 -0
- package/src/components/Spinner/Spinner.tsx +24 -0
- package/src/components/Spinner/constants.ts +29 -0
- package/src/components/Spinner/index.ts +2 -0
- package/src/components/Spinner/types.ts +5 -0
- package/src/components/Stack/constants.ts +3 -2
- package/src/components/Stat/constants.ts +5 -4
- package/src/components/Status/constants.ts +3 -2
- package/src/components/Stepper/Stepper.tsx +30 -0
- package/src/components/Stepper/constants.ts +29 -0
- package/src/components/Stepper/index.ts +2 -0
- package/src/components/Stepper/types.ts +10 -0
- package/src/components/Table/constants.ts +3 -2
- package/src/components/Text/constants.ts +4 -7
- package/src/components/Timeline/Timeline.example.tsx +1 -1
- package/src/components/Timeline/constants.ts +19 -22
- package/src/components/Toggle/Toggle.tsx +3 -3
- package/src/components/Toggle/constants.ts +6 -3
- package/src/components/ToggleGroup/ToggleGroup.tsx +4 -2
- package/src/components/Tooltip/constants.ts +5 -4
- package/src/index.ts +27 -0
- package/src/utilities/createVariants/createVariants.ts +5 -0
- package/src/utilities/createVariants/index.ts +1 -0
- package/src/utilities/createVariants/type.ts +29 -0
- package/src/utilities/index.ts +1 -0
- package/vitest-setup.ts +4 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { VariantProps } from '../../libs';
|
|
3
|
+
import { Text } from '../Text';
|
|
4
|
+
import { getParagraphClasses } from './constants';
|
|
5
|
+
export type ParagraphProps = React.HTMLAttributes<HTMLParagraphElement> & VariantProps<typeof getParagraphClasses> & Omit<ComponentProps<typeof Text>, "as">;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
3
3
|
export declare const Progress: React.ForwardRefExoticComponent<Omit<Omit<ProgressPrimitive.ProgressProps & React.RefAttributes<HTMLDivElement>, "ref">, "asChild"> & {
|
|
4
|
-
variant?: "accent" | "error" | "
|
|
4
|
+
variant?: "accent" | "default" | "error" | "ghost" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
5
5
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const getProgressClasses: (props?: ({
|
|
2
|
-
variant?: "accent" | "error" | "
|
|
2
|
+
variant?: "accent" | "default" | "error" | "ghost" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
|
|
3
3
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
4
4
|
export declare const getProgressIndicatorClasses: (props?: ({
|
|
5
|
-
variant?: "accent" | "error" | "
|
|
5
|
+
variant?: "accent" | "default" | "error" | "ghost" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -2,7 +2,7 @@ import { ResizableHandleProps, ResizableProps } from './types';
|
|
|
2
2
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
3
3
|
declare const Resizable: {
|
|
4
4
|
({ className, ...props }: ResizableProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
Panel: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLElement | HTMLAnchorElement | HTMLSpanElement | HTMLButtonElement | HTMLUListElement | HTMLLIElement | HTMLOListElement | HTMLObjectElement | HTMLLinkElement | HTMLSlotElement | HTMLStyleElement | HTMLTitleElement | HTMLMapElement | HTMLDialogElement | HTMLFormElement | HTMLImageElement | HTMLOptionElement | HTMLTableElement | HTMLTimeElement |
|
|
5
|
+
Panel: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLElement | HTMLAnchorElement | HTMLSpanElement | HTMLButtonElement | HTMLUListElement | HTMLLIElement | HTMLOListElement | HTMLObjectElement | HTMLLinkElement | HTMLSlotElement | HTMLStyleElement | HTMLTitleElement | HTMLMapElement | HTMLDialogElement | HTMLFormElement | HTMLImageElement | HTMLOptionElement | HTMLTableElement | HTMLTimeElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDivElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHeadingElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLInputElement | HTMLLabelElement | HTMLLegendElement | HTMLMetaElement | HTMLMeterElement | HTMLOptGroupElement | HTMLOutputElement | HTMLParagraphElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSourceElement | HTMLTemplateElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTextAreaElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
|
|
6
6
|
className?: string;
|
|
7
7
|
collapsedSize?: number | undefined;
|
|
8
8
|
collapsible?: boolean | undefined;
|
|
@@ -5,6 +5,6 @@ declare const ScrollArea: {
|
|
|
5
5
|
displayName: string | undefined;
|
|
6
6
|
};
|
|
7
7
|
declare const Scrollbar: import('react').ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
8
|
-
variant?: "accent" | "
|
|
8
|
+
variant?: "accent" | "default" | "error" | "ghost" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
9
9
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
10
10
|
export { ScrollArea, Scrollbar };
|
|
@@ -3,6 +3,6 @@ export declare const getScrollAreaScrollbarClasses: (props?: ({
|
|
|
3
3
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
4
4
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
5
|
export declare const getScrollAreaThumbClasses: (props?: ({
|
|
6
|
-
variant?: "accent" | "
|
|
6
|
+
variant?: "accent" | "default" | "error" | "ghost" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
8
|
export declare const getScrollAreaViewportClasses: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const Sheet: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
open?: boolean | undefined;
|
|
4
|
+
side?: "top" | "right" | "bottom" | "left" | undefined;
|
|
5
|
+
} & {
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export declare const SheetHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export declare const SheetTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
10
|
+
export declare const SheetDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
11
|
+
export declare const SheetContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export declare const SheetFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const getSheetClasses: (props?: ({
|
|
2
|
+
side?: "top" | "right" | "bottom" | "left" | null | undefined;
|
|
3
|
+
open?: boolean | null | undefined;
|
|
4
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
|
+
export declare const getSheetOverlayClasses: (props?: ({
|
|
6
|
+
open?: boolean | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -2,16 +2,16 @@ import { HTMLAttributes } from 'react';
|
|
|
2
2
|
import { SeparatorProps } from '../Separator/types';
|
|
3
3
|
import { SidebarProps } from './types';
|
|
4
4
|
declare const Sidebar: {
|
|
5
|
-
({ side,
|
|
5
|
+
({ side, type, collapsible, className, children, ...props }: SidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
displayName: string;
|
|
7
7
|
Content: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
8
8
|
Footer: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
9
9
|
Header: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
10
|
-
Input: import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "
|
|
11
|
-
variant?: "accent" | "default" | "error" | "info" | "primary" | "secondary" | "success" | "warning" |
|
|
12
|
-
type?: string | number | undefined;
|
|
13
|
-
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
10
|
+
Input: import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "size" | "ref"> & Omit<{
|
|
11
|
+
variant?: "accent" | "default" | "error" | "ghost" | "info" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
14
12
|
outline?: boolean | undefined;
|
|
13
|
+
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
14
|
+
type?: string | number | undefined;
|
|
15
15
|
wide?: boolean | undefined;
|
|
16
16
|
readOnly?: boolean | undefined;
|
|
17
17
|
}, "type"> & {
|
|
@@ -31,9 +31,10 @@ declare const Sidebar: {
|
|
|
31
31
|
displayName: string;
|
|
32
32
|
};
|
|
33
33
|
Trigger: import('react').ForwardRefExoticComponent<import('react').ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
link?: boolean | undefined;
|
|
35
|
+
variant?: "accent" | "default" | "error" | "ghost" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
36
36
|
outline?: boolean | undefined;
|
|
37
|
+
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
37
38
|
rounded?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
38
39
|
wide?: boolean | undefined;
|
|
39
40
|
isLoading?: boolean | undefined;
|
|
@@ -8,8 +8,9 @@ declare const SidebarMenu: {
|
|
|
8
8
|
isActive: boolean;
|
|
9
9
|
tooltip: string | import('../Tooltip/types').TooltipContentProps;
|
|
10
10
|
}> & {
|
|
11
|
-
variant?: "default" |
|
|
12
|
-
|
|
11
|
+
variant?: "default" | undefined;
|
|
12
|
+
outline?: boolean | undefined;
|
|
13
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
13
14
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
14
15
|
Action: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLButtonElement> & Partial<{
|
|
15
16
|
asChild: boolean;
|
|
@@ -13,10 +13,10 @@ export declare const getSidebarMobileClasses: (props?: ({
|
|
|
13
13
|
export declare const getSidebarOuterClasses: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
14
14
|
export declare const getSidebarInnerClasses: (props?: ({
|
|
15
15
|
side?: "right" | "left" | null | undefined;
|
|
16
|
-
|
|
16
|
+
type?: "inset" | "floating" | "sidebar" | null | undefined;
|
|
17
17
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
18
18
|
export declare const getSidebarGapClasses: (props?: ({
|
|
19
|
-
|
|
19
|
+
type?: "inset" | "floating" | "sidebar" | null | undefined;
|
|
20
20
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
21
21
|
export declare const getSidebarTriggerClasses: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
22
22
|
export declare const getSidebarRailClasses: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
@@ -34,8 +34,9 @@ export declare const getSidebarGroupContentClasses: (props?: import('class-varia
|
|
|
34
34
|
export declare const getSidebarMenuClasses: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
35
35
|
export declare const getSidebarMenuItemClasses: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
36
36
|
export declare const getSidebarMenuButtonClasses: (props?: ({
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
outline?: boolean | null | undefined;
|
|
38
|
+
variant?: "default" | null | undefined;
|
|
39
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
39
40
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
40
41
|
export declare const getSidebarMenuActionClasses: (props?: ({
|
|
41
42
|
showOnHover?: boolean | null | undefined;
|
|
@@ -14,7 +14,7 @@ export type SidebarContextProps = {
|
|
|
14
14
|
};
|
|
15
15
|
export type SidebarProps = HTMLAttributes<HTMLDivElement> & Partial<{
|
|
16
16
|
side: "left" | "right";
|
|
17
|
-
|
|
17
|
+
type: "sidebar" | "floating" | "inset";
|
|
18
18
|
collapsible: "offcanvas" | "icon" | "none";
|
|
19
19
|
}>;
|
|
20
20
|
export type SidebarProviderProps = HTMLAttributes<HTMLDivElement> & {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SkeletonProps } from './types';
|
|
2
|
-
export declare const Skeleton: ({ round, width, height,
|
|
2
|
+
export declare const Skeleton: ({ round, width, height, animate, className, ...props }: SkeletonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const getSkeletonClasses: (props?: ({
|
|
2
|
-
|
|
3
|
-
width?: 4 | 8 | 2 | 12 | 16 | 24 | 32 | 48 | 64 |
|
|
4
|
-
height?: 4 | 8 | 2 | 12 | 16 | 24 | 32 | 48 | 64 |
|
|
2
|
+
animate?: "pulse" | null | undefined;
|
|
3
|
+
width?: 4 | 8 | 2 | 12 | 16 | "full" | 24 | 32 | 48 | 64 | null | undefined;
|
|
4
|
+
height?: 4 | 8 | 2 | 12 | 16 | "full" | 24 | 32 | 48 | 64 | null | undefined;
|
|
5
5
|
round?: boolean | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const getToastClasses: (props?: ({
|
|
2
|
-
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" |
|
|
2
|
+
variant?: "accent" | "default" | "error" | "ghost" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
|
|
3
3
|
outline?: boolean | null | undefined;
|
|
4
4
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
5
|
export declare const getToastButtonClasses: (props?: ({
|
|
6
|
-
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" |
|
|
6
|
+
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
|
|
7
7
|
outline?: boolean | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const Spacer: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
3
|
+
axis?: "horizontal" | "vertical" | undefined;
|
|
4
|
+
gap?: 1 | 4 | 3 | 8 | 2 | 5 | 6 | 10 | 12 | 16 | 20 | 24 | undefined;
|
|
5
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const Spinner: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
variant?: "accent" | "default" | "error" | "ghost" | "info" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
4
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
5
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const getSpinnerClasses: (props?: ({
|
|
2
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
3
|
+
variant?: "accent" | "default" | "error" | "ghost" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
|
|
4
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const getStatusClasses: (props?: ({
|
|
2
|
-
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" |
|
|
2
|
+
variant?: "accent" | "default" | "error" | "ghost" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
|
|
3
3
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
4
4
|
animate?: "ping" | "bounce" | "pulse" | "spin" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const Stepper: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLUListElement> & {
|
|
3
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
4
|
+
} & React.RefAttributes<HTMLUListElement>>;
|
|
5
|
+
export declare const Step: React.ForwardRefExoticComponent<React.LiHTMLAttributes<HTMLLIElement> & {
|
|
6
|
+
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
7
|
+
} & {
|
|
8
|
+
active?: boolean;
|
|
9
|
+
} & React.RefAttributes<HTMLLIElement>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const getStepperClasses: (props?: ({
|
|
2
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
3
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
4
|
+
export declare const getStepClasses: (props?: ({
|
|
5
|
+
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { VariantProps } from '../../libs';
|
|
2
|
+
import { getStepClasses, getStepperClasses } from './constants';
|
|
3
|
+
export type StepperProps = React.HTMLAttributes<HTMLUListElement> & VariantProps<typeof getStepperClasses>;
|
|
4
|
+
export type StepProps = React.LiHTMLAttributes<HTMLLIElement> & VariantProps<typeof getStepClasses> & {
|
|
5
|
+
active?: boolean;
|
|
6
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const getTextClasses: (props?: ({
|
|
2
2
|
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
|
|
3
|
-
size?: "xs" | "sm" | "
|
|
3
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
4
4
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -5,7 +5,7 @@ declare const Timeline: {
|
|
|
5
5
|
Dot: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
6
6
|
icon?: React.ReactNode;
|
|
7
7
|
} & Omit<{
|
|
8
|
-
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" |
|
|
8
|
+
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
9
9
|
fill?: boolean | undefined;
|
|
10
10
|
status?: "default" | "success" | "active" | "failed" | "custom" | undefined;
|
|
11
11
|
border?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | "content" | undefined;
|
|
@@ -13,18 +13,18 @@ declare const Timeline: {
|
|
|
13
13
|
status?: Exclude<"default" | "success" | "active" | "failed" | "custom" | undefined, "custom">;
|
|
14
14
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
15
15
|
Item: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLLIElement> & {
|
|
16
|
-
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" |
|
|
16
|
+
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
17
17
|
} & import('react').RefAttributes<HTMLLIElement>>;
|
|
18
18
|
Content: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
19
19
|
side?: "right" | "left" | undefined;
|
|
20
20
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
21
21
|
Heading: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & {
|
|
22
|
-
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" |
|
|
23
|
-
size?: "xs" | "sm" | "
|
|
22
|
+
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
23
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
24
24
|
side?: "right" | "left" | undefined;
|
|
25
25
|
} & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
26
26
|
Line: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLHRElement> & {
|
|
27
|
-
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" |
|
|
27
|
+
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
28
28
|
} & import('react').RefAttributes<HTMLHRElement>>;
|
|
29
29
|
};
|
|
30
30
|
export { Timeline };
|
|
@@ -2,22 +2,22 @@ export declare const getTimelineClasses: (props?: ({
|
|
|
2
2
|
positions?: "center" | "right" | "left" | null | undefined;
|
|
3
3
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
4
4
|
export declare const getTimelineItemClasses: (props?: ({
|
|
5
|
-
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" |
|
|
5
|
+
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export declare const getTimelineDotClasses: (props?: ({
|
|
8
8
|
status?: "default" | "success" | "active" | "failed" | "custom" | null | undefined;
|
|
9
9
|
border?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | "content" | null | undefined;
|
|
10
10
|
fill?: boolean | null | undefined;
|
|
11
|
-
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" |
|
|
11
|
+
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
|
|
12
12
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
13
13
|
export declare const getTimelineContentClasses: (props?: ({
|
|
14
14
|
side?: "right" | "left" | null | undefined;
|
|
15
15
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
16
16
|
export declare const getTimelineHeadingClasses: (props?: ({
|
|
17
17
|
side?: "right" | "left" | null | undefined;
|
|
18
|
-
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" |
|
|
19
|
-
size?: "xs" | "sm" | "
|
|
18
|
+
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
|
|
19
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
20
20
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
21
21
|
export declare const getTimelineLineClasses: (props?: ({
|
|
22
|
-
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" |
|
|
22
|
+
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
|
|
23
23
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
3
3
|
declare const Toggle: React.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & Omit<{
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
link?: boolean | undefined;
|
|
5
|
+
variant?: "accent" | "default" | "error" | "ghost" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
6
6
|
outline?: boolean | undefined;
|
|
7
|
+
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
7
8
|
rounded?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
8
9
|
wide?: boolean | undefined;
|
|
9
10
|
isLoading?: boolean | undefined;
|
|
10
11
|
disabled?: boolean | undefined;
|
|
11
12
|
}, "variant" | "isLoading"> & {
|
|
12
|
-
|
|
13
|
+
link?: boolean | undefined;
|
|
14
|
+
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
13
15
|
outline?: boolean | undefined;
|
|
14
16
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
15
17
|
export { Toggle };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const getToggleClasses: (props?: ({
|
|
2
|
-
|
|
2
|
+
link?: boolean | null | undefined;
|
|
3
|
+
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
|
|
3
4
|
outline?: boolean | null | undefined;
|
|
4
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -3,15 +3,17 @@ import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
|
3
3
|
declare const ToggleGroup: {
|
|
4
4
|
({ className, variant, children, ...props }: ToggleGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
Item: import('react').ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & import('react').RefAttributes<HTMLButtonElement>, "ref"> & Omit<{
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
link?: boolean | undefined;
|
|
7
|
+
variant?: "accent" | "default" | "error" | "ghost" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
8
8
|
outline?: boolean | undefined;
|
|
9
|
+
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
9
10
|
rounded?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
10
11
|
wide?: boolean | undefined;
|
|
11
12
|
isLoading?: boolean | undefined;
|
|
12
13
|
disabled?: boolean | undefined;
|
|
13
14
|
}, "variant" | "isLoading"> & {
|
|
14
|
-
|
|
15
|
+
link?: boolean | undefined;
|
|
16
|
+
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
15
17
|
outline?: boolean | undefined;
|
|
16
18
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
17
19
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7,6 +7,22 @@ export * from './components/Pagination';
|
|
|
7
7
|
export * from './components/ThemeSwitch';
|
|
8
8
|
export * from './components/Toggle';
|
|
9
9
|
export * from './components/ToggleGroup';
|
|
10
|
+
/** layout */
|
|
11
|
+
export * from './components/Box';
|
|
12
|
+
export * from './components/Center';
|
|
13
|
+
export * from './components/Container';
|
|
14
|
+
export * from './components/Flex';
|
|
15
|
+
export * from './components/Grid';
|
|
16
|
+
export * from './components/Spacer';
|
|
17
|
+
/** typography */
|
|
18
|
+
export * from './components/Blockquote';
|
|
19
|
+
export * from './components/Code';
|
|
20
|
+
export * from './components/Heading';
|
|
21
|
+
export * from './components/Paragraph';
|
|
22
|
+
/** utility & atoms */
|
|
23
|
+
export * from './components/AspectRatio';
|
|
24
|
+
export * from './components/Image';
|
|
25
|
+
export * from './components/Spinner';
|
|
10
26
|
/** data display */
|
|
11
27
|
export * from './components/Accordion';
|
|
12
28
|
export * from './components/Alert';
|
|
@@ -53,4 +69,12 @@ export * from './components/Popover';
|
|
|
53
69
|
export * from './components/Slot';
|
|
54
70
|
export * from './components/Widget';
|
|
55
71
|
/** molecules */
|
|
72
|
+
export * from './components/Banner';
|
|
73
|
+
export * from './components/Empty';
|
|
56
74
|
export * from './components/Sidebar';
|
|
75
|
+
export * from './components/Stepper';
|
|
76
|
+
/** organisms */
|
|
77
|
+
export * from './components/Footer';
|
|
78
|
+
export * from './components/Header';
|
|
79
|
+
export * from './components/Panel';
|
|
80
|
+
export * from './components/Sheet';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createVariants } from './createVariants';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type ValidateKeys<V, Allowed extends string> = keyof V extends Allowed ? V : {
|
|
2
|
+
[K in keyof V]: K extends Allowed ? V[K] : never;
|
|
3
|
+
};
|
|
4
|
+
type VariantConstraint<T, K extends keyof T, Allowed extends string> = T extends Record<K, infer V> ? V extends Partial<Record<Allowed, unknown>> ? ValidateKeys<V, Allowed> : Partial<Record<Allowed, unknown>> : Partial<Record<Allowed, unknown>>;
|
|
5
|
+
export type CreateVariantsArgs<T extends Record<string, unknown>> = {
|
|
6
|
+
variant?: VariantConstraint<T, "variant", "accent" | "default" | "error" | "ghost" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning">;
|
|
7
|
+
outline?: VariantConstraint<T, "outline", "true" | "false">;
|
|
8
|
+
size?: VariantConstraint<T, "size", "xs" | "sm" | "md" | "lg" | "xl">;
|
|
9
|
+
} & Omit<T, "variant" | "outline" | "size">;
|
|
10
|
+
export {};
|