@ghostly-solutions/ui 0.3.1 → 0.3.3
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/chunk-rbysacxc.js +12 -0
- package/dist/components/accordion/accordion.d.ts +2 -2
- package/dist/components/alert/alert.d.ts +1 -1
- package/dist/components/alert-dialog/alert-dialog.d.ts +1 -1
- package/dist/components/avatar/avatar.d.ts +1 -1
- package/dist/components/badge/badge.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb.d.ts +3 -3
- package/dist/components/button/button.d.ts +3 -3
- package/dist/components/calendar/calendar.d.ts +8 -8
- package/dist/components/checkbox/checkbox.d.ts +1 -1
- package/dist/components/code-block/code-block.d.ts +8 -8
- package/dist/components/command/command.d.ts +1 -1
- package/dist/components/context-menu/context-menu.d.ts +5 -5
- package/dist/components/dialog/dialog.d.ts +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +5 -5
- package/dist/components/empty-state/empty-state.d.ts +4 -4
- package/dist/components/error-boundary/error-boundary.d.ts +7 -7
- package/dist/components/file-upload/file-upload.d.ts +5 -5
- package/dist/components/form-field/form-field.d.ts +1 -1
- package/dist/components/hover-card/hover-card.d.ts +1 -1
- package/dist/components/kbd/kbd.d.ts +1 -1
- package/dist/components/label/label.d.ts +1 -1
- package/dist/components/loader/index.d.ts +2 -0
- package/dist/components/loader/index.d.ts.map +1 -0
- package/dist/components/loader/loader.d.ts +5 -0
- package/dist/components/loader/loader.d.ts.map +1 -0
- package/dist/components/multiselect/multiselect.d.ts +1 -1
- package/dist/components/navbar/navbar.d.ts +10 -10
- package/dist/components/navigation-menu/navigation-menu.d.ts +2 -2
- package/dist/components/otp-input/otp-input.d.ts +6 -6
- package/dist/components/pagination/pagination.d.ts +2 -2
- package/dist/components/popover/popover.d.ts +1 -1
- package/dist/components/progress/progress.d.ts +1 -1
- package/dist/components/radio/radio.d.ts +1 -1
- package/dist/components/segmented-control/segmented-control.d.ts +3 -3
- package/dist/components/sidebar/sidebar.d.ts +12 -12
- package/dist/components/skeleton/skeleton.d.ts +3 -3
- package/dist/components/slider/slider.d.ts +1 -1
- package/dist/components/spotlight/spotlight.d.ts +1 -1
- package/dist/components/stat-card/stat-card.d.ts +1 -1
- package/dist/components/stepper/stepper.d.ts +4 -4
- package/dist/components/switch/switch.d.ts +1 -1
- package/dist/components/table/table.d.ts +3 -3
- package/dist/components/tabs/tabs.d.ts +2 -2
- package/dist/components/textarea/textarea.d.ts +1 -1
- package/dist/components/timeline/timeline.d.ts +7 -7
- package/dist/components/toast/toast.d.ts +2 -2
- package/dist/components/toggle/toggle.d.ts +1 -1
- package/dist/components/toolbar/toolbar.d.ts +2 -2
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/dist/components/ui-provider/index.d.ts +2 -0
- package/dist/components/ui-provider/index.d.ts.map +1 -0
- package/dist/components/ui-provider/ui-provider.d.ts +13 -0
- package/dist/components/ui-provider/ui-provider.d.ts.map +1 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/lib/density.d.ts +6 -8
- package/dist/lib/density.d.ts.map +1 -1
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/theme/constants.d.ts +17 -0
- package/dist/lib/theme/constants.d.ts.map +1 -0
- package/dist/lib/theme/core.d.ts +94 -0
- package/dist/lib/theme/core.d.ts.map +1 -0
- package/dist/lib/theme/index.d.ts +5 -0
- package/dist/lib/theme/index.d.ts.map +1 -0
- package/dist/lib/theme/provider.d.ts +43 -0
- package/dist/lib/theme/provider.d.ts.map +1 -0
- package/dist/lib/theme/system.d.ts +82 -0
- package/dist/lib/theme/system.d.ts.map +1 -0
- package/dist/server.d.ts +1 -2
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +1 -1
- package/dist/styles/index.css +1 -1
- package/package.json +1 -1
- package/dist/chunk-rd0k3j0c.js +0 -2
- package/dist/lib/theme-constants.d.ts +0 -13
- package/dist/lib/theme-constants.d.ts.map +0 -1
- package/dist/lib/theme-script.d.ts +0 -12
- package/dist/lib/theme-script.d.ts.map +0 -1
- package/dist/lib/theme.d.ts +0 -26
- package/dist/lib/theme.d.ts.map +0 -1
|
@@ -7,7 +7,7 @@ declare const PopoverSize: {
|
|
|
7
7
|
};
|
|
8
8
|
type PopoverSizeValue = (typeof PopoverSize)[keyof typeof PopoverSize];
|
|
9
9
|
declare const popoverContentVariants: (props?: ({
|
|
10
|
-
size?: "
|
|
10
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
11
11
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
12
12
|
declare const Popover: import("react").FC<PopoverPrimitive.PopoverProps>;
|
|
13
13
|
declare const PopoverTrigger: import("react").ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -15,7 +15,7 @@ declare const Variant: {
|
|
|
15
15
|
type SizeValue = (typeof Size)[keyof typeof Size];
|
|
16
16
|
type VariantValue = (typeof Variant)[keyof typeof Variant];
|
|
17
17
|
declare const progressVariants: (props?: ({
|
|
18
|
-
size?: "
|
|
18
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
19
19
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
20
20
|
declare const progressIndicatorVariants: (props?: ({
|
|
21
21
|
variant?: "default" | "success" | "warning" | "error" | null | undefined;
|
|
@@ -15,7 +15,7 @@ declare const RadioStatus: {
|
|
|
15
15
|
};
|
|
16
16
|
declare const radioGroupVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
17
17
|
declare const radioItemVariants: (props?: ({
|
|
18
|
-
size?: "
|
|
18
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
19
19
|
status?: "default" | "success" | "error" | null | undefined;
|
|
20
20
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
21
21
|
interface RadioGroupProps extends Omit<ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>, "asChild"> {
|
|
@@ -6,14 +6,14 @@ declare const Size: {
|
|
|
6
6
|
};
|
|
7
7
|
type SizeValue = (typeof Size)[keyof typeof Size];
|
|
8
8
|
declare const segmentedControlVariants: (props?: ({
|
|
9
|
-
size?: "
|
|
9
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
10
10
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
11
|
declare const segmentedControlItemVariants: (props?: ({
|
|
12
|
-
size?: "
|
|
12
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
13
13
|
active?: boolean | null | undefined;
|
|
14
14
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
15
15
|
declare const segmentedControlLabelVariants: (props?: ({
|
|
16
|
-
size?: "
|
|
16
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
17
17
|
active?: boolean | null | undefined;
|
|
18
18
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
19
19
|
interface SegmentedControlProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultValue" | "onChange"> {
|
|
@@ -30,28 +30,28 @@ declare const sidebarVariants: (props?: ({
|
|
|
30
30
|
collapsed?: boolean | null | undefined;
|
|
31
31
|
side?: "right" | "left" | null | undefined;
|
|
32
32
|
floating?: boolean | null | undefined;
|
|
33
|
-
size?: "
|
|
33
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
34
34
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
35
35
|
declare const sidebarHeaderVariants: (props?: ({
|
|
36
36
|
collapsed?: boolean | null | undefined;
|
|
37
|
-
size?: "
|
|
37
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
38
38
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
39
39
|
declare const sidebarContentVariants: (props?: ({
|
|
40
|
-
size?: "
|
|
40
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
41
41
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
42
42
|
declare const sidebarFooterVariants: (props?: ({
|
|
43
43
|
collapsed?: boolean | null | undefined;
|
|
44
|
-
size?: "
|
|
44
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
45
45
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
46
46
|
declare const sidebarGroupVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
47
47
|
declare const sidebarGroupLabelVariants: (props?: ({
|
|
48
48
|
collapsed?: boolean | null | undefined;
|
|
49
|
-
size?: "
|
|
49
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
50
50
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
51
51
|
declare const sidebarGroupTriggerVariants: (props?: ({
|
|
52
52
|
collapsed?: boolean | null | undefined;
|
|
53
53
|
open?: boolean | null | undefined;
|
|
54
|
-
size?: "
|
|
54
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
55
55
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
56
56
|
declare const sidebarGroupChevronVariants: (props?: ({
|
|
57
57
|
open?: boolean | null | undefined;
|
|
@@ -63,24 +63,24 @@ declare const sidebarItemVariants: (props?: ({
|
|
|
63
63
|
active?: boolean | null | undefined;
|
|
64
64
|
collapsed?: boolean | null | undefined;
|
|
65
65
|
disabled?: boolean | null | undefined;
|
|
66
|
-
inset?: "
|
|
67
|
-
size?: "
|
|
66
|
+
inset?: "sm" | "md" | "none" | null | undefined;
|
|
67
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
68
68
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
69
69
|
declare const sidebarItemIconVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
70
70
|
declare const sidebarItemLabelVariants: (props?: ({
|
|
71
71
|
collapsed?: boolean | null | undefined;
|
|
72
|
-
size?: "
|
|
72
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
73
73
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
74
74
|
declare const sidebarItemBadgeVariants: (props?: ({
|
|
75
75
|
collapsed?: boolean | null | undefined;
|
|
76
|
-
size?: "
|
|
76
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
77
77
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
78
78
|
declare const sidebarCollapseTriggerVariants: (props?: ({
|
|
79
|
-
size?: "
|
|
79
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
80
80
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
81
81
|
declare const sidebarRailVariants: (props?: ({
|
|
82
82
|
side?: "right" | "left" | null | undefined;
|
|
83
|
-
size?: "
|
|
83
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
84
84
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
85
85
|
declare const sidebarDividerVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
86
86
|
interface SidebarProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -7,13 +7,13 @@ declare const SkeletonSize: {
|
|
|
7
7
|
type SkeletonSizeValue = (typeof SkeletonSize)[keyof typeof SkeletonSize];
|
|
8
8
|
declare const skeletonVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
9
9
|
declare const skeletonTextVariants: (props?: ({
|
|
10
|
-
size?: "
|
|
10
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
11
11
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
12
12
|
declare const skeletonAvatarVariants: (props?: ({
|
|
13
|
-
size?: "
|
|
13
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
14
14
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
15
15
|
declare const skeletonButtonVariants: (props?: ({
|
|
16
|
-
size?: "
|
|
16
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
17
17
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
18
18
|
interface SkeletonProps extends HTMLAttributes<HTMLDivElement> {
|
|
19
19
|
circle?: boolean;
|
|
@@ -7,7 +7,7 @@ declare const Size: {
|
|
|
7
7
|
};
|
|
8
8
|
type SizeValue = (typeof Size)[keyof typeof Size];
|
|
9
9
|
declare const sliderVariants: (props?: ({
|
|
10
|
-
size?: "
|
|
10
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
11
11
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
12
12
|
declare const sliderTrackVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
13
13
|
declare const sliderRangeVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
@@ -16,7 +16,7 @@ declare const spotlightOverlayVariants: (props?: ({
|
|
|
16
16
|
state?: "open" | "closing" | null | undefined;
|
|
17
17
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
18
18
|
declare const spotlightPanelVariants: (props?: ({
|
|
19
|
-
size?: "
|
|
19
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
20
20
|
state?: "open" | "closing" | null | undefined;
|
|
21
21
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
22
22
|
declare const spotlightHeaderVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
@@ -12,7 +12,7 @@ declare const Trend: {
|
|
|
12
12
|
type SizeValue = (typeof Size)[keyof typeof Size];
|
|
13
13
|
type TrendValue = (typeof Trend)[keyof typeof Trend];
|
|
14
14
|
declare const statCardVariants: (props?: ({
|
|
15
|
-
size?: "
|
|
15
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
16
16
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
17
17
|
interface StatCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
18
18
|
size?: SizeValue;
|
|
@@ -7,13 +7,13 @@ declare const stepVariants: (props?: ({
|
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
declare const stepIndicatorVariants: (props?: ({
|
|
9
9
|
status?: "current" | "incomplete" | "complete" | null | undefined;
|
|
10
|
-
size?: "
|
|
10
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
11
11
|
animated?: boolean | null | undefined;
|
|
12
12
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
13
13
|
declare const stepConnectorVariants: (props?: ({
|
|
14
14
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
15
15
|
status?: "incomplete" | "complete" | null | undefined;
|
|
16
|
-
size?: "
|
|
16
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
17
17
|
animated?: boolean | null | undefined;
|
|
18
18
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
19
19
|
declare const stepContentVariants: (props?: ({
|
|
@@ -21,10 +21,10 @@ declare const stepContentVariants: (props?: ({
|
|
|
21
21
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
22
22
|
declare const stepTitleVariants: (props?: ({
|
|
23
23
|
status?: "current" | "incomplete" | "complete" | null | undefined;
|
|
24
|
-
size?: "
|
|
24
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
25
25
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
26
26
|
declare const stepDescriptionVariants: (props?: ({
|
|
27
|
-
size?: "
|
|
27
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
28
28
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
29
29
|
declare const Orientation: {
|
|
30
30
|
readonly horizontal: "horizontal";
|
|
@@ -14,7 +14,7 @@ declare const SwitchStatus: {
|
|
|
14
14
|
readonly success: "success";
|
|
15
15
|
};
|
|
16
16
|
declare const switchVariants: (props?: ({
|
|
17
|
-
size?: "
|
|
17
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
18
18
|
status?: "default" | "success" | "error" | null | undefined;
|
|
19
19
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
20
20
|
interface SwitchProps extends Omit<ComponentPropsWithoutRef<typeof SwitchPrimitive.Root>, "asChild"> {
|
|
@@ -7,17 +7,17 @@ declare const TableSize: {
|
|
|
7
7
|
type TableSizeValue = (typeof TableSize)[keyof typeof TableSize];
|
|
8
8
|
declare const tableContainerVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
9
9
|
declare const tableVariants: (props?: ({
|
|
10
|
-
size?: "
|
|
10
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
11
11
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
12
12
|
declare const tableHeaderVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
13
13
|
declare const tableBodyVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
14
14
|
declare const tableFooterVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
15
15
|
declare const tableRowVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
16
16
|
declare const tableHeadVariants: (props?: ({
|
|
17
|
-
size?: "
|
|
17
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
18
18
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
19
19
|
declare const tableCellVariants: (props?: ({
|
|
20
|
-
size?: "
|
|
20
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
21
21
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
22
22
|
declare const tableCaptionVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
23
23
|
interface TableProps extends HTMLAttributes<HTMLTableElement> {
|
|
@@ -8,10 +8,10 @@ declare const Size: {
|
|
|
8
8
|
};
|
|
9
9
|
type SizeValue = (typeof Size)[keyof typeof Size];
|
|
10
10
|
declare const tabsListVariants: (props?: ({
|
|
11
|
-
size?: "
|
|
11
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
12
12
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
13
13
|
declare const tabsTriggerVariants: (props?: ({
|
|
14
|
-
size?: "
|
|
14
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
15
15
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
16
16
|
declare const tabsContentVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
17
17
|
declare const Tabs: import("react").ForwardRefExoticComponent<TabsPrimitive.TabsProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -14,7 +14,7 @@ type TextareaStatusValue = (typeof TextareaStatus)[keyof typeof TextareaStatus];
|
|
|
14
14
|
type TextareaSizeValue = (typeof TextareaSize)[keyof typeof TextareaSize];
|
|
15
15
|
declare const textareaVariants: (props?: ({
|
|
16
16
|
status?: "default" | "success" | "error" | null | undefined;
|
|
17
|
-
size?: "
|
|
17
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
18
18
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
19
19
|
interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "size"> {
|
|
20
20
|
status?: TextareaStatusValue;
|
|
@@ -5,25 +5,25 @@ declare const timelineItemVariants: (props?: ({
|
|
|
5
5
|
animated?: boolean | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
declare const timelineConnectorVariants: (props?: ({
|
|
8
|
-
variant?: "default" | "
|
|
9
|
-
size?: "
|
|
8
|
+
variant?: "default" | "primary" | "success" | "warning" | "error" | "info" | null | undefined;
|
|
9
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
10
10
|
animated?: boolean | null | undefined;
|
|
11
11
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
12
12
|
declare const timelineDotVariants: (props?: ({
|
|
13
|
-
variant?: "default" | "
|
|
14
|
-
size?: "
|
|
13
|
+
variant?: "default" | "primary" | "success" | "warning" | "error" | "info" | null | undefined;
|
|
14
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
15
15
|
pulse?: boolean | null | undefined;
|
|
16
16
|
animated?: boolean | null | undefined;
|
|
17
17
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
18
18
|
declare const timelineContentVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
19
19
|
declare const timelineTitleVariants: (props?: ({
|
|
20
|
-
size?: "
|
|
20
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
21
21
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
22
22
|
declare const timelineDescriptionVariants: (props?: ({
|
|
23
|
-
size?: "
|
|
23
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
24
24
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
25
25
|
declare const timelineTimeVariants: (props?: ({
|
|
26
|
-
size?: "
|
|
26
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
27
27
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
28
28
|
declare const Variant: {
|
|
29
29
|
readonly default: "default";
|
|
@@ -14,10 +14,10 @@ declare const ToastSize: {
|
|
|
14
14
|
type ToastSizeValue = (typeof ToastSize)[keyof typeof ToastSize];
|
|
15
15
|
declare const toastVariants: (props?: ({
|
|
16
16
|
variant?: "default" | "success" | "warning" | "error" | "info" | null | undefined;
|
|
17
|
-
size?: "
|
|
17
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
18
18
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
19
19
|
declare const toastActionVariants: (props?: ({
|
|
20
|
-
size?: "
|
|
20
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
21
21
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
22
22
|
export { toastVariants, toastActionVariants, ToastSize, type VariantValue as ToastVariantValue, type ToastSizeValue, };
|
|
23
23
|
//# sourceMappingURL=toast.d.ts.map
|
|
@@ -13,7 +13,7 @@ type VariantValue = (typeof Variant)[keyof typeof Variant];
|
|
|
13
13
|
type SizeValue = (typeof Size)[keyof typeof Size];
|
|
14
14
|
declare const toggleVariants: (props?: ({
|
|
15
15
|
variant?: "default" | "outline" | null | undefined;
|
|
16
|
-
size?: "
|
|
16
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
17
17
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
18
18
|
interface ToggleProps extends ComponentPropsWithoutRef<typeof TogglePrimitive.Root> {
|
|
19
19
|
variant?: VariantValue;
|
|
@@ -6,14 +6,14 @@ declare const Size: {
|
|
|
6
6
|
};
|
|
7
7
|
type SizeValue = (typeof Size)[keyof typeof Size];
|
|
8
8
|
declare const toolbarVariants: (props?: ({
|
|
9
|
-
size?: "
|
|
9
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
10
10
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
11
|
interface ToolbarProps extends HTMLAttributes<HTMLDivElement> {
|
|
12
12
|
size?: SizeValue;
|
|
13
13
|
}
|
|
14
14
|
declare const Toolbar: import("react").ForwardRefExoticComponent<ToolbarProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
15
|
declare const toolbarGroupVariants: (props?: ({
|
|
16
|
-
size?: "
|
|
16
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
17
17
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
18
18
|
interface ToolbarGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
19
19
|
size?: SizeValue;
|
|
@@ -16,7 +16,7 @@ declare const TooltipSize: {
|
|
|
16
16
|
};
|
|
17
17
|
type TooltipSizeValue = (typeof TooltipSize)[keyof typeof TooltipSize];
|
|
18
18
|
declare const tooltipContentVariants: (props?: ({
|
|
19
|
-
size?: "
|
|
19
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
20
20
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
21
21
|
declare const TooltipContent: import("react").ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
22
22
|
size?: TooltipSizeValue;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ui-provider/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type DensityValue } from "@/lib/density";
|
|
3
|
+
import { type ThemeProviderProps } from "@/lib/theme";
|
|
4
|
+
interface UIProviderProps extends Omit<ThemeProviderProps, "children"> {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
density?: DensityValue;
|
|
7
|
+
}
|
|
8
|
+
declare function UIProvider({ children, density, defaultTheme, defaultColorScheme, ...themeProps }: UIProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare namespace UIProvider {
|
|
10
|
+
var displayName: string;
|
|
11
|
+
}
|
|
12
|
+
export { UIProvider, type UIProviderProps };
|
|
13
|
+
//# sourceMappingURL=ui-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-provider.d.ts","sourceRoot":"","sources":["../../../src/components/ui-provider/ui-provider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAoC,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AACpF,OAAO,EAA8B,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAElF,UAAU,eAAgB,SAAQ,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC;IACrE,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,YAAY,CAAC;CACvB;AAED,iBAAS,UAAU,CAAC,EACnB,QAAQ,EACR,OAAyB,EACzB,YAAkC,EAClC,kBAAuC,EACvC,GAAG,UAAU,EACb,EAAE,eAAe,2CAUjB;kBAhBQ,UAAU;;;AAoBnB,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export * from "./components/hover-card";
|
|
|
26
26
|
export * from "./components/input";
|
|
27
27
|
export * from "./components/kbd";
|
|
28
28
|
export * from "./components/label";
|
|
29
|
+
export * from "./components/loader";
|
|
29
30
|
export * from "./components/multiselect";
|
|
30
31
|
export * from "./components/navigation-menu";
|
|
31
32
|
export * from "./components/otp-input";
|
|
@@ -56,13 +57,14 @@ export * from "./components/toggle";
|
|
|
56
57
|
export * from "./components/toggle-group";
|
|
57
58
|
export * from "./components/toolbar";
|
|
58
59
|
export * from "./components/tooltip";
|
|
60
|
+
export * from "./components/ui-provider";
|
|
59
61
|
export { useControllableState } from "./hooks/use-controllable-state";
|
|
60
62
|
export { type UseHotkeyOptions, useHotkey } from "./hooks/use-hotkey";
|
|
61
63
|
export { detectPlatform, type PlatformInfo, type PlatformOS, usePlatform, } from "./hooks/use-platform";
|
|
62
64
|
export { type ClassValue, cn } from "./lib/cn";
|
|
63
65
|
export { composeRefs, createContext, createOptionalContext, useComposedRefs } from "./lib/compose";
|
|
64
|
-
export {
|
|
66
|
+
export { DENSITY_DEFAULT, DensityProvider, type DensityProviderProps, type DensityValue, useDensity, useDensitySize, } from "./lib/density";
|
|
65
67
|
export { formatHotkey, formatHotkeyTokens, type HotkeyDefinition, matchHotkey, parseHotkey, } from "./lib/hotkey";
|
|
66
|
-
export { ColorScheme, type ColorSchemeValue, type ResolvedColorScheme, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, useTheme, } from "./lib/theme";
|
|
68
|
+
export { ColorScheme, type ColorSchemeValue, type CreateThemeCssOptions, type CreateThemesCssOptions, createThemeContract, createThemeCss, createThemeRegistry, createThemeSetCookieHeader, createThemeSystem, createThemesCss, DARK_CLASS, defineThemes, getSystemColorScheme, getThemeRootProps, normalizeThemeState, parseThemeState, type ResolvedColorScheme, type ResolvedThemeState, type ResolvedThemeStateFor, type ResolveThemeStateOptions, readThemeStateFromBrowserStorage, readThemeStateFromCookieHeader, resolveThemeState, STORAGE_DENSITY_KEY, STORAGE_PREFIX, STORAGE_THEME_STATE_KEY, STORAGE_VERSION, serializeThemeState, THEME_ATTR, THEME_COLOR_SCHEME_ATTR, THEME_COOKIE_NAME, type ThemeContextValue, type ThemeContextValueFor, type ThemeContract, type ThemeContractOptions, type CreateThemeSystemOptions, type ThemeCookieOptions, type ThemeCookieSameSite, type ThemeCssDefinition, type ThemeCssTextDefinition, ThemeProvider, type ThemeProviderProps, type ThemeRegistry, type ThemeRegistryDefinition, type ThemeRegistryInput, type ThemeRegistryOptions, ThemeRegistryProvider, type ThemeRegistryProviderProps, type ThemeRegistryRecord, type ThemeRegistryRecordValue, type ThemeRootProps, type ThemeState, type ThemeStateFor, type ThemeStateChangeMeta, type ThemeStateChangeReason, type ThemeStateReader, type ThemeStateUpdateFor, type ThemeStateWriter, type ThemeStorageMode, type ThemeStorageOptions, ThemeStyles, type ThemeStylesProps, type ThemeSystem, type ThemeSystemProviderProps, type ThemeSystemStylesProps, type ThemeTokenDefinition, type ThemeTokenMap, type ThemeTokenValue, useTheme, writeThemeStateToBrowserStorage, } from "./lib/theme";
|
|
67
69
|
export type { Align, BaseProps, ControlSize, ControlStatus, ControlVariant, DisableableProps, EmphasisLevel, LoadableProps, MotionLevel, Orientation, PolymorphicComponentProps, PolymorphicComponentPropsWithRef, Side, Size, SlotProps, Status, SurfaceStyle, Variant, } from "./lib/types";
|
|
68
70
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCA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