@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const getInputClasses: (props?: ({
|
|
2
|
-
variant?: "accent" | "default" | "error" | "info" | "primary" | "secondary" | "success" | "warning" |
|
|
2
|
+
variant?: "accent" | "default" | "error" | "ghost" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
|
|
3
3
|
outline?: boolean | null | undefined;
|
|
4
4
|
wide?: boolean | null | undefined;
|
|
5
5
|
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
@@ -11,7 +11,7 @@ export declare const getInputLabelClasses: (props?: ({
|
|
|
11
11
|
floating?: boolean | null | undefined;
|
|
12
12
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
13
13
|
export declare const getInputCommonClasses: (props?: ({
|
|
14
|
-
variant?: "accent" | "default" | "error" | "info" | "primary" | "secondary" | "success" | "warning" |
|
|
14
|
+
variant?: "accent" | "default" | "error" | "ghost" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
|
|
15
15
|
outline?: boolean | null | undefined;
|
|
16
16
|
disabled?: boolean | null | undefined;
|
|
17
17
|
wide?: boolean | null | undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const NativeSelect: React.ForwardRefExoticComponent<Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "size"> & {
|
|
3
|
+
variant?: "accent" | "default" | "error" | "ghost" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
4
|
+
outline?: boolean | undefined;
|
|
5
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
6
|
+
wide?: boolean | undefined;
|
|
7
|
+
nativeOptions?: boolean | undefined;
|
|
8
|
+
} & React.RefAttributes<HTMLSelectElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const getNativeSelectClasses: (props?: ({
|
|
2
|
+
nativeOptions?: boolean | null | undefined;
|
|
3
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
4
|
+
wide?: boolean | null | undefined;
|
|
5
|
+
outline?: boolean | null | undefined;
|
|
6
|
+
variant?: "accent" | "default" | "error" | "ghost" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const Radio: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
2
|
+
declare const Radio: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type" | "ref"> & {
|
|
3
3
|
variant?: "accent" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
4
4
|
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
5
5
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const Range: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
2
|
+
declare const Range: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type" | "ref"> & {
|
|
3
3
|
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
4
4
|
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
5
5
|
wide?: boolean | undefined;
|
|
@@ -5,9 +5,9 @@ declare const Select: {
|
|
|
5
5
|
Group: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
6
|
Value: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
7
7
|
Trigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
8
|
-
variant?: "accent" | "default" | "error" | "info" | "primary" | "secondary" | "success" | "warning" |
|
|
9
|
-
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
8
|
+
variant?: "accent" | "default" | "error" | "ghost" | "info" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
10
9
|
outline?: boolean | undefined;
|
|
10
|
+
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
11
11
|
wide?: boolean | undefined;
|
|
12
12
|
} & {
|
|
13
13
|
label?: React.ReactNode;
|
|
@@ -18,9 +18,9 @@ declare const Select: {
|
|
|
18
18
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
19
19
|
Label: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
20
|
Item: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
21
|
-
variant?: "accent" | "default" | "error" | "info" | "primary" | "secondary" | "success" | "warning" |
|
|
22
|
-
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
21
|
+
variant?: "accent" | "default" | "error" | "ghost" | "info" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
23
22
|
outline?: boolean | undefined;
|
|
23
|
+
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
24
24
|
wide?: boolean | undefined;
|
|
25
25
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
26
26
|
Icon: React.ForwardRefExoticComponent<SelectPrimitive.SelectIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare const getSelectTriggerClasses: (props?: ({
|
|
2
|
-
variant?: "accent" | "default" | "error" | "info" | "primary" | "secondary" | "success" | "warning" |
|
|
2
|
+
variant?: "accent" | "default" | "error" | "ghost" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
|
|
3
3
|
wide?: boolean | null | undefined;
|
|
4
4
|
outline?: boolean | null | undefined;
|
|
5
5
|
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export declare const getSelectItemClasses: (props?: ({
|
|
8
|
-
variant?: "accent" | "default" | "error" | "info" | "primary" | "secondary" | "success" | "warning" |
|
|
8
|
+
variant?: "accent" | "default" | "error" | "ghost" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
|
|
9
9
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
10
|
export declare const getSelectLabelClasses: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
11
11
|
export declare const getSelectValueClasses: (props?: ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const Switch: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
2
|
+
declare const Switch: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type" | "ref"> & {
|
|
3
3
|
variant?: "accent" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
4
4
|
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
5
5
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -7,9 +7,9 @@ export declare const TagsInput: import('react').ForwardRefExoticComponent<import
|
|
|
7
7
|
} & {
|
|
8
8
|
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
9
9
|
} & {
|
|
10
|
-
variant?: "accent" | "default" | "error" | "info" | "primary" | "secondary" | "success" | "warning" |
|
|
11
|
-
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
10
|
+
variant?: "accent" | "default" | "error" | "ghost" | "info" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
12
11
|
outline?: boolean | undefined;
|
|
12
|
+
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
13
13
|
wide?: boolean | undefined;
|
|
14
14
|
disabled?: boolean | undefined;
|
|
15
15
|
readOnly?: boolean | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
export declare const TextField: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
3
|
-
variant?: "accent" | "default" | "error" | "info" | "primary" | "secondary" | "success" | "warning" |
|
|
4
|
-
type?: string | number | undefined;
|
|
5
|
-
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
2
|
+
export declare const TextField: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "ref"> & Omit<{
|
|
3
|
+
variant?: "accent" | "default" | "error" | "ghost" | "info" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
6
4
|
outline?: boolean | undefined;
|
|
5
|
+
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
6
|
+
type?: string | number | undefined;
|
|
7
7
|
wide?: boolean | undefined;
|
|
8
8
|
readOnly?: boolean | undefined;
|
|
9
9
|
}, "type"> & {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const Textarea: React.ForwardRefExoticComponent<Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "
|
|
3
|
-
variant?: "accent" | "default" | "error" | "info" | "primary" | "secondary" | "success" | "warning" |
|
|
4
|
-
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
2
|
+
declare const Textarea: React.ForwardRefExoticComponent<Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "size" | "ref"> & {
|
|
3
|
+
variant?: "accent" | "default" | "error" | "ghost" | "info" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
5
4
|
outline?: boolean | undefined;
|
|
5
|
+
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
6
6
|
wide?: boolean | undefined;
|
|
7
7
|
} & {
|
|
8
8
|
label?: React.ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const getTextareaClasses: (props?: ({
|
|
2
|
-
variant?: "accent" | "default" | "error" | "info" | "primary" | "secondary" | "success" | "warning" |
|
|
2
|
+
variant?: "accent" | "default" | "error" | "ghost" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
|
|
3
3
|
outline?: boolean | null | undefined;
|
|
4
4
|
wide?: boolean | null | undefined;
|
|
5
5
|
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { FieldDescriptionProps, FieldErrorProps } from './types';
|
|
3
|
+
export declare const Field: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {} & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export declare const FieldLabel: React.ForwardRefExoticComponent<React.LabelHTMLAttributes<HTMLLabelElement> & {
|
|
5
|
+
required?: boolean | undefined;
|
|
6
|
+
} & React.RefAttributes<HTMLLabelElement>>;
|
|
7
|
+
export declare const FieldDescription: React.ForwardRefExoticComponent<FieldDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
8
|
+
export declare const FieldError: React.ForwardRefExoticComponent<FieldErrorProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const getFieldClasses: (props?: ({} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
2
|
+
export declare const getFieldLabelClasses: (props?: ({
|
|
3
|
+
required?: boolean | null | undefined;
|
|
4
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
|
+
export declare const getFieldDescriptionClasses: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
6
|
+
export declare const getFieldErrorClasses: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useField } from './useField';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useField } from './useField';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useField: () => import('../../types').FieldContextValue;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { VariantProps } from '../../../../libs';
|
|
2
|
+
import { getFieldClasses, getFieldLabelClasses } from './constants';
|
|
3
|
+
export type FieldProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof getFieldClasses>;
|
|
4
|
+
export type FieldLabelProps = React.LabelHTMLAttributes<HTMLLabelElement> & VariantProps<typeof getFieldLabelClasses>;
|
|
5
|
+
export type FieldDescriptionProps = React.HTMLAttributes<HTMLParagraphElement>;
|
|
6
|
+
export type FieldErrorProps = React.HTMLAttributes<HTMLParagraphElement>;
|
|
7
|
+
export type FieldContextValue = {
|
|
8
|
+
id: string;
|
|
9
|
+
inputId: string;
|
|
10
|
+
descriptionId: string;
|
|
11
|
+
errorId: string;
|
|
12
|
+
};
|
|
@@ -6,6 +6,7 @@ export { Phone } from './Phone';
|
|
|
6
6
|
export { Radio } from './Radio';
|
|
7
7
|
export { Range } from './Range';
|
|
8
8
|
export { Select } from './Select';
|
|
9
|
+
export { NativeSelect } from './NativeSelect';
|
|
9
10
|
export { Slider } from './Slider';
|
|
10
11
|
export { Switch } from './Switch';
|
|
11
12
|
export { Checkbox, CheckboxControlled } from './Checkbox';
|
|
@@ -14,4 +15,5 @@ export { Textarea } from './Textarea';
|
|
|
14
15
|
export { TextField } from './TextField';
|
|
15
16
|
export { Validator } from './Validator';
|
|
16
17
|
export { Label } from './components/Label';
|
|
18
|
+
export { Field, FieldLabel, FieldDescription, FieldError } from './components/Field';
|
|
17
19
|
export { Fieldset } from './components/Fieldset';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const Grid: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
gap?: 0 | 1 | 4 | 3 | 8 | 2 | 5 | 6 | 10 | 12 | 16 | undefined;
|
|
4
|
+
columns?: 1 | 4 | 3 | 8 | 2 | 5 | 6 | 10 | 12 | 7 | 9 | 11 | undefined;
|
|
5
|
+
rows?: 1 | 4 | 3 | 8 | 2 | 5 | 6 | 10 | 12 | 7 | 9 | 11 | undefined;
|
|
6
|
+
flow?: "row" | "col" | "dense" | "row-dense" | "col-dense" | undefined;
|
|
7
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export declare const GridItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
9
|
+
colSpan?: 1 | 4 | 3 | 8 | 2 | 5 | 6 | 10 | 12 | 7 | 9 | 11 | "full" | undefined;
|
|
10
|
+
rowSpan?: 1 | 4 | 3 | 2 | 5 | 6 | "full" | undefined;
|
|
11
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const getGridClasses: (props?: ({
|
|
2
|
+
columns?: 1 | 4 | 3 | 8 | 2 | 5 | 6 | 10 | 12 | 7 | 9 | 11 | null | undefined;
|
|
3
|
+
rows?: 1 | 4 | 3 | 8 | 2 | 5 | 6 | 10 | 12 | 7 | 9 | 11 | null | undefined;
|
|
4
|
+
gap?: 0 | 1 | 4 | 3 | 8 | 2 | 5 | 6 | 10 | 12 | 16 | null | undefined;
|
|
5
|
+
flow?: "row" | "col" | "dense" | "row-dense" | "col-dense" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
export declare const getGridItemClasses: (props?: ({
|
|
8
|
+
colSpan?: 1 | 4 | 3 | 8 | 2 | 5 | 6 | 10 | 12 | 7 | 9 | 11 | "full" | null | undefined;
|
|
9
|
+
rowSpan?: 1 | 4 | 3 | 2 | 5 | 6 | "full" | null | undefined;
|
|
10
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { VariantProps } from '../../libs';
|
|
2
|
+
import { getGridClasses, getGridItemClasses } from './constants';
|
|
3
|
+
export type GridProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof getGridClasses>;
|
|
4
|
+
export type GridItemProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof getGridItemClasses>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const Header: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
|
|
3
|
+
position?: "fixed" | "sticky" | "static" | undefined;
|
|
4
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
5
|
+
export declare const HeaderStart: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export declare const HeaderCenter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export declare const HeaderEnd: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const Heading: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & {
|
|
3
|
+
level?: 1 | 4 | 3 | 2 | 5 | 6 | undefined;
|
|
4
|
+
weight?: "bold" | "normal" | "medium" | "semibold" | "extrabold" | undefined;
|
|
5
|
+
} & {
|
|
6
|
+
as?: ("h1" | "h2" | "h3" | "h4" | "h5" | "h6") | undefined;
|
|
7
|
+
} & React.RefAttributes<HTMLHeadingElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { VariantProps } from '../../libs';
|
|
2
|
+
import { getHeadingClasses } from './constants';
|
|
3
|
+
type HeadingElement = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
4
|
+
export type HeadingProps<T extends HeadingElement = HeadingElement> = React.HTMLAttributes<HTMLHeadingElement> & VariantProps<typeof getHeadingClasses> & {
|
|
5
|
+
as?: T;
|
|
6
|
+
};
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const Image: React.ForwardRefExoticComponent<React.ImgHTMLAttributes<HTMLImageElement> & {
|
|
3
|
+
radius?: "sm" | "md" | "lg" | "none" | "full" | undefined;
|
|
4
|
+
fit?: "fill" | "none" | "contain" | "cover" | "scale-down" | undefined;
|
|
5
|
+
} & {
|
|
6
|
+
fallbackSrc?: string;
|
|
7
|
+
} & React.RefAttributes<HTMLImageElement>>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const getImageClasses: (props?: ({
|
|
2
|
+
fit?: "fill" | "none" | "contain" | "cover" | "scale-down" | null | undefined;
|
|
3
|
+
radius?: "sm" | "md" | "lg" | "none" | "full" | null | undefined;
|
|
4
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const getKbdClasses: (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
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const getListClasses: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
2
2
|
export declare const getListItemClasses: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
3
3
|
export declare const getListColumnClasses: (props?: ({
|
|
4
|
-
flex?: "
|
|
4
|
+
flex?: "wrap" | "grow" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { LoadingProps } from './types';
|
|
2
|
-
export declare const Loading: ({ size,
|
|
2
|
+
export declare const Loading: ({ size, variant, type, className, ...props }: LoadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const getLoadingClasses: (props?: ({
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type?: "spinner" | "dots" | "ring" | "ball" | "bars" | "infinity" | null | undefined;
|
|
3
|
+
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
|
|
4
4
|
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -9,14 +9,14 @@ declare const ContextMenu: {
|
|
|
9
9
|
RadioGroup: import('react').ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuRadioGroupProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
10
10
|
Content: import('react').ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {} & import('react').RefAttributes<HTMLDivElement>>;
|
|
11
11
|
Item: import('react').ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuItemProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
12
|
-
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" |
|
|
12
|
+
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
13
13
|
inset?: boolean | undefined;
|
|
14
14
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
15
15
|
CheckboxItem: import('react').ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuCheckboxItemProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
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<HTMLDivElement>>;
|
|
18
18
|
RadioItem: import('react').ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuRadioItemProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
19
|
-
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" |
|
|
19
|
+
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
20
20
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
21
21
|
Label: import('react').ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuLabelProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
22
22
|
inset?: boolean | undefined;
|
|
@@ -28,7 +28,7 @@ declare const ContextMenu: {
|
|
|
28
28
|
};
|
|
29
29
|
SubContent: import('react').ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {} & import('react').RefAttributes<HTMLDivElement>>;
|
|
30
30
|
SubTrigger: import('react').ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubTriggerProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
31
|
-
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" |
|
|
31
|
+
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
32
32
|
inset?: boolean | undefined;
|
|
33
33
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
34
34
|
};
|
|
@@ -5,14 +5,14 @@ declare const DropdownMenu: {
|
|
|
5
5
|
Trigger: import('react').ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
6
6
|
Content: import('react').ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {} & import('react').RefAttributes<HTMLDivElement>>;
|
|
7
7
|
Item: import('react').ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
8
|
-
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" |
|
|
8
|
+
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
9
9
|
inset?: boolean | undefined;
|
|
10
10
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
11
11
|
CheckboxItem: import('react').ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
12
|
-
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" |
|
|
12
|
+
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
13
13
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
14
14
|
RadioItem: import('react').ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
15
|
-
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" |
|
|
15
|
+
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
16
16
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
17
17
|
Label: import('react').ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
18
18
|
inset?: boolean | undefined;
|
|
@@ -27,7 +27,7 @@ declare const DropdownMenu: {
|
|
|
27
27
|
Sub: import('react').FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
28
28
|
SubContent: import('react').ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {} & import('react').RefAttributes<HTMLDivElement>>;
|
|
29
29
|
SubTrigger: import('react').ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
30
|
-
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" |
|
|
30
|
+
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
31
31
|
inset?: boolean | undefined;
|
|
32
32
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
33
33
|
RadioGroup: import('react').ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -12,11 +12,11 @@ declare const Menubar: {
|
|
|
12
12
|
Sub: import('react').FC<MenubarPrimitive.MenubarSubProps>;
|
|
13
13
|
RadioGroup: import('react').ForwardRefExoticComponent<MenubarPrimitive.MenubarRadioGroupProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
14
14
|
Trigger: import('react').ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarTriggerProps & import('react').RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
15
|
-
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" |
|
|
15
|
+
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
16
16
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
17
17
|
Content: import('react').ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {} & import('react').RefAttributes<HTMLDivElement>>;
|
|
18
18
|
Item: import('react').ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarItemProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
19
|
-
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" |
|
|
19
|
+
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
20
20
|
inset?: boolean | undefined;
|
|
21
21
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
22
22
|
Separator: import('react').ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSeparatorProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -24,14 +24,14 @@ declare const Menubar: {
|
|
|
24
24
|
inset?: boolean | undefined;
|
|
25
25
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
26
26
|
CheckboxItem: import('react').ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarCheckboxItemProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
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<HTMLDivElement>>;
|
|
29
29
|
RadioItem: import('react').ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarRadioItemProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
30
|
-
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" |
|
|
30
|
+
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
31
31
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
32
32
|
SubContent: import('react').ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {} & import('react').RefAttributes<HTMLDivElement>>;
|
|
33
33
|
SubTrigger: import('react').ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubTriggerProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
34
|
-
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" |
|
|
34
|
+
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
35
35
|
inset?: boolean | undefined;
|
|
36
36
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
37
37
|
Shortcut: {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
export declare const getMenubarClasses: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
2
2
|
export declare const getMenubarTriggerClasses: (props?: ({
|
|
3
|
-
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" |
|
|
3
|
+
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
|
|
4
4
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
5
|
export declare const getMenubarSubTriggerClasses: (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
|
inset?: boolean | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
9
|
export declare const getMenubarContentClasses: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
10
10
|
export declare const getMenubarSubContentClasses: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
11
11
|
export declare const getMenubarItemClasses: (props?: ({
|
|
12
|
-
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" |
|
|
12
|
+
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
|
|
13
13
|
inset?: boolean | null | undefined;
|
|
14
14
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
15
15
|
export declare const getMenubarCheckboxItemClasses: (props?: ({
|
|
16
|
-
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" |
|
|
16
|
+
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
|
|
17
17
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
18
18
|
export declare const getMenubarRadioItemClasses: (props?: ({
|
|
19
|
-
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" |
|
|
19
|
+
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
|
|
20
20
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
21
21
|
export declare const getMenubarLabelClasses: (props?: ({
|
|
22
22
|
inset?: boolean | null | undefined;
|
|
@@ -7,7 +7,7 @@ declare const NavigationMenu: {
|
|
|
7
7
|
Item: import('react').ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & import('react').RefAttributes<HTMLLIElement>>;
|
|
8
8
|
Content: import('react').ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {} & import('react').RefAttributes<HTMLDivElement>>;
|
|
9
9
|
Trigger: import('react').ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & import('react').RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
10
|
-
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" |
|
|
10
|
+
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
11
11
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
12
12
|
Link: import('react').ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
13
13
|
Indicator: import('react').ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuIndicatorProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const getNavigationMenuClasses: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
2
2
|
export declare const getNavigationMenuListClasses: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
3
3
|
export declare const getNavigationMenuTriggerClasses: (props?: ({
|
|
4
|
-
variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" |
|
|
4
|
+
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
export declare const getNavigationMenuContentClasses: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
7
7
|
export declare const getNavigationMenuViewportClasses: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PanelContentProps, PanelFooterProps, PanelHeaderProps } from './types';
|
|
3
|
+
export declare const Panel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
4
|
+
width?: "sm" | "md" | "lg" | undefined;
|
|
5
|
+
collapsed?: boolean | undefined;
|
|
6
|
+
} & {
|
|
7
|
+
onToggle?: () => void;
|
|
8
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export declare const PanelHeader: React.ForwardRefExoticComponent<PanelHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export declare const PanelContent: React.ForwardRefExoticComponent<PanelContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export declare const PanelFooter: React.ForwardRefExoticComponent<PanelFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const getPanelClasses: (props?: ({
|
|
2
|
+
width?: "sm" | "md" | "lg" | null | undefined;
|
|
3
|
+
collapsed?: boolean | null | undefined;
|
|
4
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
|
+
export declare const getPanelHeaderClasses: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
6
|
+
export declare const getPanelContentClasses: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
7
|
+
export declare const getPanelFooterClasses: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VariantProps } from '../../libs';
|
|
2
|
+
import { getPanelClasses } from './constants';
|
|
3
|
+
export type PanelProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof getPanelClasses> & {
|
|
4
|
+
onToggle?: () => void;
|
|
5
|
+
};
|
|
6
|
+
export type PanelHeaderProps = React.HTMLAttributes<HTMLDivElement>;
|
|
7
|
+
export type PanelContentProps = React.HTMLAttributes<HTMLDivElement>;
|
|
8
|
+
export type PanelFooterProps = React.HTMLAttributes<HTMLDivElement>;
|