@demokit-ui/demokit 0.1.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/README.md +128 -0
- package/dist/app/background-decor.d.ts +1 -0
- package/dist/app/background-decor.js +38 -0
- package/dist/app/container.d.ts +12 -0
- package/dist/app/container.js +29 -0
- package/dist/app/demo1-shell.d.ts +43 -0
- package/dist/app/demo1-shell.js +616 -0
- package/dist/app/tweak-panel.d.ts +22 -0
- package/dist/app/tweak-panel.js +182 -0
- package/dist/components/apexcharts.css +101 -0
- package/dist/components/scrollable.css +120 -0
- package/dist/config/settings.config.d.ts +2 -0
- package/dist/config/settings.config.js +33 -0
- package/dist/config/types.d.ts +50 -0
- package/dist/config.reui.css +337 -0
- package/dist/demos/demo1.css +176 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +484 -0
- package/dist/kit/components/chart/chart/chart.d.ts +57 -0
- package/dist/kit/components/chart/chart/chart.js +206 -0
- package/dist/kit/components/composite/action-bar/action-bar.d.ts +10 -0
- package/dist/kit/components/composite/action-bar/action-bar.js +38 -0
- package/dist/kit/components/composite/action-card/action-card.d.ts +13 -0
- package/dist/kit/components/composite/action-card/action-card.js +35 -0
- package/dist/kit/components/composite/activity-feed/activity-feed.d.ts +17 -0
- package/dist/kit/components/composite/activity-feed/activity-feed.js +26 -0
- package/dist/kit/components/composite/alert-card/alert-card.d.ts +10 -0
- package/dist/kit/components/composite/alert-card/alert-card.js +37 -0
- package/dist/kit/components/composite/approval-flow/approval-flow.d.ts +51 -0
- package/dist/kit/components/composite/approval-flow/approval-flow.js +185 -0
- package/dist/kit/components/composite/auth-shell/auth-shell.d.ts +10 -0
- package/dist/kit/components/composite/auth-shell/auth-shell.js +32 -0
- package/dist/kit/components/composite/board-toolbar/board-toolbar.d.ts +12 -0
- package/dist/kit/components/composite/board-toolbar/board-toolbar.js +44 -0
- package/dist/kit/components/composite/chart-card/chart-card.d.ts +14 -0
- package/dist/kit/components/composite/chart-card/chart-card.js +64 -0
- package/dist/kit/components/composite/chart-toolbar/chart-toolbar.d.ts +17 -0
- package/dist/kit/components/composite/chart-toolbar/chart-toolbar.js +48 -0
- package/dist/kit/components/composite/data-section/data-section.d.ts +17 -0
- package/dist/kit/components/composite/data-section/data-section.js +73 -0
- package/dist/kit/components/composite/description-grid/description-grid.d.ts +12 -0
- package/dist/kit/components/composite/description-grid/description-grid.js +36 -0
- package/dist/kit/components/composite/detail-header/detail-header.d.ts +19 -0
- package/dist/kit/components/composite/detail-header/detail-header.js +43 -0
- package/dist/kit/components/composite/filter-panel/filter-panel.d.ts +18 -0
- package/dist/kit/components/composite/filter-panel/filter-panel.js +86 -0
- package/dist/kit/components/composite/filter-toolbar/filter-toolbar.d.ts +14 -0
- package/dist/kit/components/composite/filter-toolbar/filter-toolbar.js +59 -0
- package/dist/kit/components/composite/forgot-password-form/forgot-password-form.d.ts +9 -0
- package/dist/kit/components/composite/forgot-password-form/forgot-password-form.js +34 -0
- package/dist/kit/components/composite/form-section/form-section.d.ts +9 -0
- package/dist/kit/components/composite/form-section/form-section.js +16 -0
- package/dist/kit/components/composite/kanban-board/kanban-board.d.ts +50 -0
- package/dist/kit/components/composite/kanban-board/kanban-board.js +55 -0
- package/dist/kit/components/composite/login-card/login-card.d.ts +33 -0
- package/dist/kit/components/composite/login-card/login-card.js +138 -0
- package/dist/kit/components/composite/message-list-card/message-list-card.d.ts +20 -0
- package/dist/kit/components/composite/message-list-card/message-list-card.js +83 -0
- package/dist/kit/components/composite/metric-card/metric-card.d.ts +18 -0
- package/dist/kit/components/composite/metric-card/metric-card.js +37 -0
- package/dist/kit/components/composite/milestone-card/milestone-card.d.ts +12 -0
- package/dist/kit/components/composite/milestone-card/milestone-card.js +33 -0
- package/dist/kit/components/composite/oauth-login-buttons/oauth-login-buttons.d.ts +14 -0
- package/dist/kit/components/composite/oauth-login-buttons/oauth-login-buttons.js +32 -0
- package/dist/kit/components/composite/page-header/page-header.d.ts +12 -0
- package/dist/kit/components/composite/page-header/page-header.js +66 -0
- package/dist/kit/components/composite/profile-card/profile-card.d.ts +16 -0
- package/dist/kit/components/composite/profile-card/profile-card.js +28 -0
- package/dist/kit/components/composite/progress-card/progress-card.d.ts +16 -0
- package/dist/kit/components/composite/progress-card/progress-card.js +23 -0
- package/dist/kit/components/composite/project-card/project-card.d.ts +17 -0
- package/dist/kit/components/composite/project-card/project-card.js +46 -0
- package/dist/kit/components/composite/shortcut-card/shortcut-card.d.ts +13 -0
- package/dist/kit/components/composite/shortcut-card/shortcut-card.js +35 -0
- package/dist/kit/components/composite/sprint-summary/sprint-summary.d.ts +15 -0
- package/dist/kit/components/composite/sprint-summary/sprint-summary.js +43 -0
- package/dist/kit/components/composite/state-panel/state-panel.d.ts +12 -0
- package/dist/kit/components/composite/state-panel/state-panel.js +79 -0
- package/dist/kit/components/composite/summary-card/summary-card.d.ts +15 -0
- package/dist/kit/components/composite/summary-card/summary-card.js +25 -0
- package/dist/kit/components/composite/task-card/task-card.d.ts +14 -0
- package/dist/kit/components/composite/task-card/task-card.js +49 -0
- package/dist/kit/components/composite/timeline/timeline.d.ts +46 -0
- package/dist/kit/components/composite/timeline/timeline.js +176 -0
- package/dist/kit/components/composite/todo-card/todo-card.d.ts +26 -0
- package/dist/kit/components/composite/todo-card/todo-card.js +101 -0
- package/dist/kit/components/data-display/avatar/avatar.d.ts +12 -0
- package/dist/kit/components/data-display/avatar/avatar.js +61 -0
- package/dist/kit/components/data-display/avatar-group/avatar-group.d.ts +22 -0
- package/dist/kit/components/data-display/avatar-group/avatar-group.js +184 -0
- package/dist/kit/components/data-display/badge/badge.d.ts +29 -0
- package/dist/kit/components/data-display/badge/badge.js +203 -0
- package/dist/kit/components/data-display/card/card.d.ts +15 -0
- package/dist/kit/components/data-display/card/card.js +119 -0
- package/dist/kit/components/data-display/data-grid/data-grid-column-filter.d.ts +15 -0
- package/dist/kit/components/data-display/data-grid/data-grid-column-filter.js +74 -0
- package/dist/kit/components/data-display/data-grid/data-grid-column-header.d.ts +12 -0
- package/dist/kit/components/data-display/data-grid/data-grid-column-header.js +171 -0
- package/dist/kit/components/data-display/data-grid/data-grid-column-visibility.d.ts +7 -0
- package/dist/kit/components/data-display/data-grid/data-grid-column-visibility.js +24 -0
- package/dist/kit/components/data-display/data-grid/data-grid-pagination.d.ts +15 -0
- package/dist/kit/components/data-display/data-grid/data-grid-pagination.js +132 -0
- package/dist/kit/components/data-display/data-grid/data-grid-table-dnd-rows.d.ts +9 -0
- package/dist/kit/components/data-display/data-grid/data-grid-table-dnd-rows.js +61 -0
- package/dist/kit/components/data-display/data-grid/data-grid-table-dnd.d.ts +5 -0
- package/dist/kit/components/data-display/data-grid/data-grid-table-dnd.js +86 -0
- package/dist/kit/components/data-display/data-grid/data-grid-table.d.ts +59 -0
- package/dist/kit/components/data-display/data-grid/data-grid-table.js +356 -0
- package/dist/kit/components/data-display/data-grid/data-grid.d.ts +87 -0
- package/dist/kit/components/data-display/data-grid/data-grid.js +87 -0
- package/dist/kit/components/data-display/kbd/kbd.d.ts +8 -0
- package/dist/kit/components/data-display/kbd/kbd.js +27 -0
- package/dist/kit/components/data-display/money-amount/money-amount.d.ts +27 -0
- package/dist/kit/components/data-display/money-amount/money-amount.js +91 -0
- package/dist/kit/components/data-display/progress/progress.d.ts +6 -0
- package/dist/kit/components/data-display/progress/progress.js +29 -0
- package/dist/kit/components/data-display/skeleton/skeleton.d.ts +3 -0
- package/dist/kit/components/data-display/skeleton/skeleton.js +8 -0
- package/dist/kit/components/data-display/sliding-number/sliding-number.d.ts +7 -0
- package/dist/kit/components/data-display/sliding-number/sliding-number.js +41 -0
- package/dist/kit/components/data-display/stepper/stepper.d.ts +61 -0
- package/dist/kit/components/data-display/stepper/stepper.js +230 -0
- package/dist/kit/components/data-display/table/table.d.ts +28 -0
- package/dist/kit/components/data-display/table/table.js +156 -0
- package/dist/kit/components/decorative/aurora-background/aurora-background.d.ts +7 -0
- package/dist/kit/components/decorative/aurora-background/aurora-background.js +60 -0
- package/dist/kit/components/decorative/grid-background/grid-background.d.ts +22 -0
- package/dist/kit/components/decorative/grid-background/grid-background.js +46 -0
- package/dist/kit/components/decorative/shimmering-text/shimmering-text.d.ts +29 -0
- package/dist/kit/components/decorative/shimmering-text/shimmering-text.js +64 -0
- package/dist/kit/components/decorative/text-reveal/text-reveal.d.ts +17 -0
- package/dist/kit/components/decorative/text-reveal/text-reveal.js +277 -0
- package/dist/kit/components/feedback/alert/alert.d.ts +21 -0
- package/dist/kit/components/feedback/alert/alert.js +236 -0
- package/dist/kit/components/feedback/alert-dialog/alert-dialog.d.ts +16 -0
- package/dist/kit/components/feedback/alert-dialog/alert-dialog.js +117 -0
- package/dist/kit/components/feedback/context-menu/context-menu.d.ts +24 -0
- package/dist/kit/components/feedback/context-menu/context-menu.js +183 -0
- package/dist/kit/components/feedback/dialog/dialog.d.ts +22 -0
- package/dist/kit/components/feedback/dialog/dialog.js +120 -0
- package/dist/kit/components/feedback/drawer/drawer.d.ts +13 -0
- package/dist/kit/components/feedback/drawer/drawer.js +76 -0
- package/dist/kit/components/feedback/dropdown-menu/dropdown-menu.d.ts +25 -0
- package/dist/kit/components/feedback/dropdown-menu/dropdown-menu.js +200 -0
- package/dist/kit/components/feedback/hover-card/hover-card.d.ts +6 -0
- package/dist/kit/components/feedback/hover-card/hover-card.js +34 -0
- package/dist/kit/components/feedback/popover/popover.d.ts +6 -0
- package/dist/kit/components/feedback/popover/popover.js +34 -0
- package/dist/kit/components/feedback/sheet/sheet.d.ts +22 -0
- package/dist/kit/components/feedback/sheet/sheet.js +128 -0
- package/dist/kit/components/feedback/sonner/sonner.d.ts +5 -0
- package/dist/kit/components/feedback/sonner/sonner.js +21 -0
- package/dist/kit/components/feedback/title-help/title-help.d.ts +10 -0
- package/dist/kit/components/feedback/title-help/title-help.js +44 -0
- package/dist/kit/components/feedback/tooltip/tooltip.d.ts +11 -0
- package/dist/kit/components/feedback/tooltip/tooltip.js +49 -0
- package/dist/kit/components/form/button/button.d.ts +23 -0
- package/dist/kit/components/form/button/button.js +380 -0
- package/dist/kit/components/form/calendar/calendar.d.ts +4 -0
- package/dist/kit/components/form/calendar/calendar.js +47 -0
- package/dist/kit/components/form/checkbox/checkbox.d.ts +8 -0
- package/dist/kit/components/form/checkbox/checkbox.js +39 -0
- package/dist/kit/components/form/command/command.d.ts +21 -0
- package/dist/kit/components/form/command/command.js +116 -0
- package/dist/kit/components/form/datefield/datefield.d.ts +14 -0
- package/dist/kit/components/form/datefield/datefield.js +74 -0
- package/dist/kit/components/form/file-upload/file-upload.d.ts +56 -0
- package/dist/kit/components/form/file-upload/file-upload.js +338 -0
- package/dist/kit/components/form/form/form.d.ts +24 -0
- package/dist/kit/components/form/form/form.js +86 -0
- package/dist/kit/components/form/input/input.d.ts +22 -0
- package/dist/kit/components/form/input/input.js +182 -0
- package/dist/kit/components/form/label/label.d.ts +8 -0
- package/dist/kit/components/form/label/label.js +28 -0
- package/dist/kit/components/form/radio-group/radio-group.d.ts +13 -0
- package/dist/kit/components/form/radio-group/radio-group.js +79 -0
- package/dist/kit/components/form/select/select.d.ts +25 -0
- package/dist/kit/components/form/select/select.js +194 -0
- package/dist/kit/components/form/slider/slider.d.ts +5 -0
- package/dist/kit/components/form/slider/slider.js +34 -0
- package/dist/kit/components/form/switch/switch.d.ts +20 -0
- package/dist/kit/components/form/switch/switch.js +158 -0
- package/dist/kit/components/form/textarea/textarea.d.ts +7 -0
- package/dist/kit/components/form/textarea/textarea.js +34 -0
- package/dist/kit/components/form/toggle/toggle.d.ts +9 -0
- package/dist/kit/components/form/toggle/toggle.js +36 -0
- package/dist/kit/components/form/toggle-group/toggle-group.d.ts +7 -0
- package/dist/kit/components/form/toggle-group/toggle-group.js +62 -0
- package/dist/kit/components/index.d.ts +108 -0
- package/dist/kit/components/layout/accordion/accordion.d.ts +13 -0
- package/dist/kit/components/layout/accordion/accordion.js +124 -0
- package/dist/kit/components/layout/aspect-ratio/aspect-ratio.d.ts +4 -0
- package/dist/kit/components/layout/aspect-ratio/aspect-ratio.js +8 -0
- package/dist/kit/components/layout/collapsible/collapsible.d.ts +6 -0
- package/dist/kit/components/layout/collapsible/collapsible.js +32 -0
- package/dist/kit/components/layout/resizable/resizable.d.ts +24 -0
- package/dist/kit/components/layout/resizable/resizable.js +32 -0
- package/dist/kit/components/layout/scroll-area/scroll-area.d.ts +8 -0
- package/dist/kit/components/layout/scroll-area/scroll-area.js +48 -0
- package/dist/kit/components/layout/separator/separator.d.ts +4 -0
- package/dist/kit/components/layout/separator/separator.js +23 -0
- package/dist/kit/components/navigation/accordion-menu/accordion-menu.d.ts +51 -0
- package/dist/kit/components/navigation/accordion-menu/accordion-menu.js +290 -0
- package/dist/kit/components/navigation/breadcrumb/breadcrumb.d.ts +13 -0
- package/dist/kit/components/navigation/breadcrumb/breadcrumb.js +76 -0
- package/dist/kit/components/navigation/menubar/menubar.d.ts +25 -0
- package/dist/kit/components/navigation/menubar/menubar.js +218 -0
- package/dist/kit/components/navigation/navigation-menu/navigation-menu.d.ts +14 -0
- package/dist/kit/components/navigation/navigation-menu/navigation-menu.js +137 -0
- package/dist/kit/components/navigation/pagination/pagination.d.ts +6 -0
- package/dist/kit/components/navigation/pagination/pagination.js +38 -0
- package/dist/kit/components/navigation/scrollspy/scrollspy.d.ts +14 -0
- package/dist/kit/components/navigation/scrollspy/scrollspy.js +84 -0
- package/dist/kit/components/navigation/tabs/tabs.d.ts +16 -0
- package/dist/kit/components/navigation/tabs/tabs.js +172 -0
- package/dist/kit/themes/theme-toggle.d.ts +1 -0
- package/dist/kit/themes/theme-toggle.js +56 -0
- package/dist/kit/tokens/chart-palette.d.ts +1 -0
- package/dist/kit/tokens/chart-palette.js +12 -0
- package/dist/lib/utils.d.ts +8 -0
- package/dist/lib/utils.js +8 -0
- package/dist/providers/demokit-provider.d.ts +4 -0
- package/dist/providers/demokit-provider.js +9 -0
- package/dist/providers/settings-provider.d.ts +15 -0
- package/dist/providers/settings-provider.js +78 -0
- package/dist/providers/theme-provider.d.ts +4 -0
- package/dist/providers/theme-provider.js +9 -0
- package/dist/providers/tooltips-provider.d.ts +4 -0
- package/dist/providers/tooltips-provider.js +8 -0
- package/dist/styles.css +237 -0
- package/package.json +72 -0
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import * as l from "react";
|
|
3
|
+
import { cn as s } from "../../../../lib/utils.js";
|
|
4
|
+
import { cva as c } from "class-variance-authority";
|
|
5
|
+
import { Switch as o } from "radix-ui";
|
|
6
|
+
const d = l.createContext({
|
|
7
|
+
permanent: !1
|
|
8
|
+
}), u = () => {
|
|
9
|
+
const t = l.useContext(d);
|
|
10
|
+
if (!t)
|
|
11
|
+
throw new Error("SwitchIndicator must be used within a Switch component");
|
|
12
|
+
return t;
|
|
13
|
+
}, p = c(
|
|
14
|
+
`
|
|
15
|
+
relative peer inline-flex shrink-0 cursor-pointer items-center rounded-full transition-colors
|
|
16
|
+
focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background
|
|
17
|
+
disabled:cursor-not-allowed disabled:opacity-50 data-[state=unchecked]:bg-input
|
|
18
|
+
aria-invalid:border aria-invalid:border-destructive/60 aria-invalid:ring-destructive/10
|
|
19
|
+
[[data-invalid=true]_&]:border [[data-invalid=true]_&]:border-destructive/60 [[data-invalid=true]_&]:ring-destructive/10
|
|
20
|
+
`,
|
|
21
|
+
{
|
|
22
|
+
variants: {
|
|
23
|
+
shape: {
|
|
24
|
+
pill: "rounded-full",
|
|
25
|
+
square: "rounded-md"
|
|
26
|
+
},
|
|
27
|
+
size: {
|
|
28
|
+
sm: "h-5 w-8",
|
|
29
|
+
md: "h-6 w-10",
|
|
30
|
+
lg: "h-8 w-14",
|
|
31
|
+
xl: "h-9 w-16"
|
|
32
|
+
},
|
|
33
|
+
permanent: {
|
|
34
|
+
true: "bg-input",
|
|
35
|
+
false: "data-[state=checked]:bg-primary"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
defaultVariants: {
|
|
39
|
+
shape: "pill",
|
|
40
|
+
permanent: !1,
|
|
41
|
+
size: "md"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
), f = c(
|
|
45
|
+
"pointer-events-none block bg-white w-1/2 h-[calc(100%-4px)] shadow-lg ring-0 transition-transform start-0 data-[state=unchecked]:translate-x-[2px] data-[state=checked]:translate-x-[calc(100%-2px)] rtl:data-[state=unchecked]:-translate-x-[2px] rtl:data-[state=checked]:-translate-x-[calc(100%-2px)]",
|
|
46
|
+
{
|
|
47
|
+
variants: {
|
|
48
|
+
shape: {
|
|
49
|
+
pill: "rounded-full",
|
|
50
|
+
square: "rounded-md"
|
|
51
|
+
},
|
|
52
|
+
size: {
|
|
53
|
+
xs: "",
|
|
54
|
+
sm: "",
|
|
55
|
+
md: "",
|
|
56
|
+
lg: "",
|
|
57
|
+
xl: ""
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
compoundVariants: [
|
|
61
|
+
{
|
|
62
|
+
shape: "square",
|
|
63
|
+
size: "xs",
|
|
64
|
+
className: "rounded-sm"
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
defaultVariants: {
|
|
68
|
+
shape: "pill",
|
|
69
|
+
size: "md"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
), h = c(
|
|
73
|
+
"text-sm font-medium absolute mx-[2px] top-1/2 w-1/2 -translate-y-1/2 flex pointer-events-none items-center justify-center text-center transition-transform duration-300 [transition-timing-function:cubic-bezier(0.16,1,0.3,1)]",
|
|
74
|
+
{
|
|
75
|
+
variants: {
|
|
76
|
+
state: {
|
|
77
|
+
on: "start-0",
|
|
78
|
+
off: "end-0"
|
|
79
|
+
},
|
|
80
|
+
permanent: {
|
|
81
|
+
true: "",
|
|
82
|
+
false: ""
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
compoundVariants: [
|
|
86
|
+
{
|
|
87
|
+
state: "on",
|
|
88
|
+
permanent: !1,
|
|
89
|
+
className: "text-primary-foreground peer-data-[state=unchecked]:invisible peer-data-[state=unchecked]:translate-x-full rtl:peer-data-[state=unchecked]:-translate-x-full"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
state: "off",
|
|
93
|
+
permanent: !1,
|
|
94
|
+
className: "peer-data-[state=checked]:invisible -translate-x-full rtl:translate-x-full peer-data-[state=unchecked]:translate-x-0"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
state: "on",
|
|
98
|
+
permanent: !0,
|
|
99
|
+
className: "start-0"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
state: "off",
|
|
103
|
+
permanent: !0,
|
|
104
|
+
className: "end-0"
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
defaultVariants: {
|
|
108
|
+
state: "off",
|
|
109
|
+
permanent: !1
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
);
|
|
113
|
+
function k({
|
|
114
|
+
className: t,
|
|
115
|
+
children: a,
|
|
116
|
+
permanent: e = !1,
|
|
117
|
+
...n
|
|
118
|
+
}) {
|
|
119
|
+
return /* @__PURE__ */ r(d.Provider, { value: { permanent: e }, children: /* @__PURE__ */ r("div", { "data-slot": "switch-wrapper", className: s("relative inline-flex items-center", t), ...n, children: a }) });
|
|
120
|
+
}
|
|
121
|
+
function N({
|
|
122
|
+
className: t,
|
|
123
|
+
thumbClassName: a = "",
|
|
124
|
+
shape: e,
|
|
125
|
+
size: n,
|
|
126
|
+
...i
|
|
127
|
+
}) {
|
|
128
|
+
const m = u()?.permanent ?? !1;
|
|
129
|
+
return /* @__PURE__ */ r(
|
|
130
|
+
o.Root,
|
|
131
|
+
{
|
|
132
|
+
"data-slot": "switch",
|
|
133
|
+
className: s(p({ shape: e, size: n, permanent: m }), t),
|
|
134
|
+
...i,
|
|
135
|
+
children: /* @__PURE__ */ r(o.Thumb, { className: s(f({ shape: e, size: n }), a) })
|
|
136
|
+
}
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
function S({
|
|
140
|
+
className: t,
|
|
141
|
+
state: a,
|
|
142
|
+
...e
|
|
143
|
+
}) {
|
|
144
|
+
const i = u()?.permanent ?? !1;
|
|
145
|
+
return /* @__PURE__ */ r(
|
|
146
|
+
"span",
|
|
147
|
+
{
|
|
148
|
+
"data-slot": "switch-indicator",
|
|
149
|
+
className: s(h({ state: a, permanent: i }), t),
|
|
150
|
+
...e
|
|
151
|
+
}
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
export {
|
|
155
|
+
N as Switch,
|
|
156
|
+
S as SwitchIndicator,
|
|
157
|
+
k as SwitchWrapper
|
|
158
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const textareaVariants: (props?: ({
|
|
4
|
+
variant?: "sm" | "md" | "lg" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
declare function Textarea({ className, variant, ...props }: React.ComponentProps<'textarea'> & VariantProps<typeof textareaVariants>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Textarea, textareaVariants };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { cn as o } from "../../../../lib/utils.js";
|
|
3
|
+
import { cva as i } from "class-variance-authority";
|
|
4
|
+
const d = i(
|
|
5
|
+
`
|
|
6
|
+
w-full bg-background border border-input bg-background text-foreground shadow-xs shadow-black/5 transition-[color,box-shadow]
|
|
7
|
+
text-foreground placeholder:text-muted-foreground/80 focus-visible:border-ring focus-visible:outline-none focus-visible:ring-[3px]
|
|
8
|
+
focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 [&[readonly]]:opacity-70 aria-invalid:border-destructive
|
|
9
|
+
aria-invalid:border-destructive/60 aria-invalid:ring-destructive/10
|
|
10
|
+
`,
|
|
11
|
+
{
|
|
12
|
+
variants: {
|
|
13
|
+
variant: {
|
|
14
|
+
sm: "px-2.5 py-2.5 text-xs rounded-md",
|
|
15
|
+
md: "px-3 py-3 text-[0.8125rem] leading-(--text-sm--line-height) rounded-md",
|
|
16
|
+
lg: "px-4 py-4 text-sm rounded-md"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
defaultVariants: {
|
|
20
|
+
variant: "md"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
function u({
|
|
25
|
+
className: r,
|
|
26
|
+
variant: e,
|
|
27
|
+
...t
|
|
28
|
+
}) {
|
|
29
|
+
return /* @__PURE__ */ a("textarea", { "data-slot": "textarea", className: o(d({ variant: e }), r), ...t });
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
u as Textarea,
|
|
33
|
+
d as textareaVariants
|
|
34
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { Toggle as TogglePrimitive } from 'radix-ui';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
declare const toggleVariants: (props?: ({
|
|
5
|
+
variant?: "default" | "outline" | null | undefined;
|
|
6
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
+
declare function Toggle({ className, variant, size, ...props }: React.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { Toggle, toggleVariants };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { cn as i } from "../../../../lib/utils.js";
|
|
3
|
+
import { cva as s } from "class-variance-authority";
|
|
4
|
+
import { Toggle as a } from "radix-ui";
|
|
5
|
+
const d = s(
|
|
6
|
+
"inline-flex items-center justify-center rounded-md shrink-0 font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
7
|
+
{
|
|
8
|
+
variants: {
|
|
9
|
+
variant: {
|
|
10
|
+
default: "bg-transparent",
|
|
11
|
+
outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"
|
|
12
|
+
},
|
|
13
|
+
size: {
|
|
14
|
+
lg: "h-10 min-w-10 rounded-md px-2.5 text-sm gap-1.5 [&_svg]:size-4",
|
|
15
|
+
md: "h-8.5 min-w-8.5 rounded-md px-2 text-[0.8125rem] leading-(--text-sm--line-height) gap-1 [&_svg]:size-4",
|
|
16
|
+
sm: "h-7 min-w-7 rounded-md px-1.25 text-xs gap-1 [&_svg]:size-3.5"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
defaultVariants: {
|
|
20
|
+
variant: "default",
|
|
21
|
+
size: "md"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
function c({
|
|
26
|
+
className: e,
|
|
27
|
+
variant: t,
|
|
28
|
+
size: n,
|
|
29
|
+
...o
|
|
30
|
+
}) {
|
|
31
|
+
return /* @__PURE__ */ r(a.Root, { "data-slot": "toggle", className: i(d({ variant: t, size: n, className: e })), ...o });
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
c as Toggle,
|
|
35
|
+
d as toggleVariants
|
|
36
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { toggleVariants } from '../toggle/toggle';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import { ToggleGroup as ToggleGroupPrimitive } from 'radix-ui';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
declare function ToggleGroup({ className, variant, size, children, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function ToggleGroupItem({ className, children, variant, size, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { ToggleGroup, ToggleGroupItem };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import * as d from "react";
|
|
3
|
+
import { cn as s } from "../../../../lib/utils.js";
|
|
4
|
+
import { toggleVariants as g } from "../toggle/toggle.js";
|
|
5
|
+
import { ToggleGroup as u } from "radix-ui";
|
|
6
|
+
const l = d.createContext({
|
|
7
|
+
size: "md",
|
|
8
|
+
variant: "default"
|
|
9
|
+
});
|
|
10
|
+
function f({
|
|
11
|
+
className: r,
|
|
12
|
+
variant: a,
|
|
13
|
+
size: t,
|
|
14
|
+
children: o,
|
|
15
|
+
...n
|
|
16
|
+
}) {
|
|
17
|
+
return /* @__PURE__ */ i(
|
|
18
|
+
u.Root,
|
|
19
|
+
{
|
|
20
|
+
"data-slot": "toggle-group",
|
|
21
|
+
"data-variant": a,
|
|
22
|
+
"data-size": t,
|
|
23
|
+
className: s(
|
|
24
|
+
"group/toggle-group flex items-center rounded-md gap-1 data-[variant=outline]:gap-0 data-[variant=outline]:shadow-xs",
|
|
25
|
+
r
|
|
26
|
+
),
|
|
27
|
+
...n,
|
|
28
|
+
children: /* @__PURE__ */ i(l.Provider, { value: { variant: a, size: t }, children: o })
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
function x({
|
|
33
|
+
className: r,
|
|
34
|
+
children: a,
|
|
35
|
+
variant: t,
|
|
36
|
+
size: o,
|
|
37
|
+
...n
|
|
38
|
+
}) {
|
|
39
|
+
const e = d.useContext(l);
|
|
40
|
+
return /* @__PURE__ */ i(
|
|
41
|
+
u.Item,
|
|
42
|
+
{
|
|
43
|
+
"data-slot": "toggle-group-item",
|
|
44
|
+
"data-variant": e.variant || t,
|
|
45
|
+
"data-size": e.size || o,
|
|
46
|
+
className: s(
|
|
47
|
+
g({
|
|
48
|
+
variant: e.variant || t,
|
|
49
|
+
size: e.size || o
|
|
50
|
+
}),
|
|
51
|
+
"shrink-0 shadow-none data-[variant=outline]:rounded-none data-[variant=outline]:first:rounded-s-md data-[variant=outline]:last:rounded-e-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-s-0 data-[variant=outline]:first:border-s",
|
|
52
|
+
r
|
|
53
|
+
),
|
|
54
|
+
...n,
|
|
55
|
+
children: a
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
export {
|
|
60
|
+
f as ToggleGroup,
|
|
61
|
+
x as ToggleGroupItem
|
|
62
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DemoKit component barrel — single entry point for all UI primitives.
|
|
3
|
+
*
|
|
4
|
+
* Usage: import { Card, Button, Table } from '@/kit/components';
|
|
5
|
+
*
|
|
6
|
+
* Organization on disk (for browsing / docs):
|
|
7
|
+
* data-display | form | navigation | feedback | layout | chart | decorative | composite
|
|
8
|
+
*
|
|
9
|
+
* If you're searching for a component, check AGENTS.md.
|
|
10
|
+
*/
|
|
11
|
+
export * from './data-display/card/card';
|
|
12
|
+
export * from './data-display/table/table';
|
|
13
|
+
export * from './data-display/money-amount/money-amount';
|
|
14
|
+
export * from './data-display/data-grid/data-grid';
|
|
15
|
+
export * from './data-display/data-grid/data-grid-table';
|
|
16
|
+
export * from './data-display/data-grid/data-grid-table-dnd';
|
|
17
|
+
export * from './data-display/data-grid/data-grid-table-dnd-rows';
|
|
18
|
+
export * from './data-display/data-grid/data-grid-column-filter';
|
|
19
|
+
export * from './data-display/data-grid/data-grid-column-header';
|
|
20
|
+
export * from './data-display/data-grid/data-grid-column-visibility';
|
|
21
|
+
export * from './data-display/data-grid/data-grid-pagination';
|
|
22
|
+
export * from './data-display/badge/badge';
|
|
23
|
+
export * from './data-display/avatar/avatar';
|
|
24
|
+
export * from './data-display/avatar-group/avatar-group';
|
|
25
|
+
export * from './data-display/progress/progress';
|
|
26
|
+
export * from './data-display/skeleton/skeleton';
|
|
27
|
+
export * from './data-display/sliding-number/sliding-number';
|
|
28
|
+
export * from './data-display/stepper/stepper';
|
|
29
|
+
export * from './data-display/kbd/kbd';
|
|
30
|
+
export * from './form/button/button';
|
|
31
|
+
export * from './form/input/input';
|
|
32
|
+
export * from './form/textarea/textarea';
|
|
33
|
+
export * from './form/select/select';
|
|
34
|
+
export * from './form/checkbox/checkbox';
|
|
35
|
+
export * from './form/radio-group/radio-group';
|
|
36
|
+
export * from './form/switch/switch';
|
|
37
|
+
export * from './form/toggle/toggle';
|
|
38
|
+
export * from './form/toggle-group/toggle-group';
|
|
39
|
+
export * from './form/slider/slider';
|
|
40
|
+
export * from './form/file-upload/file-upload';
|
|
41
|
+
export * from './form/datefield/datefield';
|
|
42
|
+
export * from './form/calendar/calendar';
|
|
43
|
+
export * from './form/label/label';
|
|
44
|
+
export * from './form/form/form';
|
|
45
|
+
export * from './form/command/command';
|
|
46
|
+
export * from './navigation/tabs/tabs';
|
|
47
|
+
export * from './navigation/breadcrumb/breadcrumb';
|
|
48
|
+
export * from './navigation/menubar/menubar';
|
|
49
|
+
export * from './navigation/navigation-menu/navigation-menu';
|
|
50
|
+
export * from './navigation/pagination/pagination';
|
|
51
|
+
export * from './navigation/accordion-menu/accordion-menu';
|
|
52
|
+
export * from './navigation/scrollspy/scrollspy';
|
|
53
|
+
export * from './feedback/alert/alert';
|
|
54
|
+
export * from './feedback/alert-dialog/alert-dialog';
|
|
55
|
+
export * from './feedback/dialog/dialog';
|
|
56
|
+
export * from './feedback/drawer/drawer';
|
|
57
|
+
export * from './feedback/sheet/sheet';
|
|
58
|
+
export * from './feedback/sonner/sonner';
|
|
59
|
+
export * from './feedback/tooltip/tooltip';
|
|
60
|
+
export * from './feedback/title-help/title-help';
|
|
61
|
+
export * from './feedback/popover/popover';
|
|
62
|
+
export * from './feedback/hover-card/hover-card';
|
|
63
|
+
export * from './feedback/context-menu/context-menu';
|
|
64
|
+
export * from './feedback/dropdown-menu/dropdown-menu';
|
|
65
|
+
export * from './layout/accordion/accordion';
|
|
66
|
+
export * from './layout/aspect-ratio/aspect-ratio';
|
|
67
|
+
export * from './layout/collapsible/collapsible';
|
|
68
|
+
export * from './layout/resizable/resizable';
|
|
69
|
+
export * from './layout/scroll-area/scroll-area';
|
|
70
|
+
export * from './layout/separator/separator';
|
|
71
|
+
export * from './chart/chart/chart';
|
|
72
|
+
export * from './decorative/aurora-background/aurora-background';
|
|
73
|
+
export * from './decorative/grid-background/grid-background';
|
|
74
|
+
export * from './decorative/shimmering-text/shimmering-text';
|
|
75
|
+
export * from './decorative/text-reveal/text-reveal';
|
|
76
|
+
export * from './composite/page-header/page-header';
|
|
77
|
+
export * from './composite/filter-toolbar/filter-toolbar';
|
|
78
|
+
export * from './composite/filter-panel/filter-panel';
|
|
79
|
+
export * from './composite/data-section/data-section';
|
|
80
|
+
export * from './composite/description-grid/description-grid';
|
|
81
|
+
export * from './composite/form-section/form-section';
|
|
82
|
+
export * from './composite/metric-card/metric-card';
|
|
83
|
+
export * from './composite/shortcut-card/shortcut-card';
|
|
84
|
+
export * from './composite/chart-card/chart-card';
|
|
85
|
+
export * from './composite/todo-card/todo-card';
|
|
86
|
+
export * from './composite/message-list-card/message-list-card';
|
|
87
|
+
export * from './composite/progress-card/progress-card';
|
|
88
|
+
export * from './composite/action-card/action-card';
|
|
89
|
+
export * from './composite/alert-card/alert-card';
|
|
90
|
+
export * from './composite/summary-card/summary-card';
|
|
91
|
+
export * from './composite/profile-card/profile-card';
|
|
92
|
+
export * from './composite/timeline/timeline';
|
|
93
|
+
export * from './composite/approval-flow/approval-flow';
|
|
94
|
+
export * from './composite/auth-shell/auth-shell';
|
|
95
|
+
export * from './composite/login-card/login-card';
|
|
96
|
+
export * from './composite/kanban-board/kanban-board';
|
|
97
|
+
export * from './composite/action-bar/action-bar';
|
|
98
|
+
export * from './composite/detail-header/detail-header';
|
|
99
|
+
export * from './composite/state-panel/state-panel';
|
|
100
|
+
export * from './composite/chart-toolbar/chart-toolbar';
|
|
101
|
+
export * from './composite/activity-feed/activity-feed';
|
|
102
|
+
export * from './composite/project-card/project-card';
|
|
103
|
+
export * from './composite/task-card/task-card';
|
|
104
|
+
export * from './composite/milestone-card/milestone-card';
|
|
105
|
+
export * from './composite/sprint-summary/sprint-summary';
|
|
106
|
+
export * from './composite/board-toolbar/board-toolbar';
|
|
107
|
+
export * from './composite/oauth-login-buttons/oauth-login-buttons';
|
|
108
|
+
export * from './composite/forgot-password-form/forgot-password-form';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { Accordion as AccordionPrimitive } from 'radix-ui';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
declare const accordionRootVariants: (props?: ({
|
|
5
|
+
variant?: "default" | "solid" | "outline" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
declare function Accordion(props: React.ComponentProps<typeof AccordionPrimitive.Root> & VariantProps<typeof accordionRootVariants> & {
|
|
8
|
+
indicator?: 'arrow' | 'plus';
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function AccordionItem(props: React.ComponentProps<typeof AccordionPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function AccordionTrigger(props: React.ComponentProps<typeof AccordionPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function AccordionContent(props: React.ComponentProps<typeof AccordionPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { jsx as r, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import * as d from "react";
|
|
3
|
+
import { cn as s } from "../../../../lib/utils.js";
|
|
4
|
+
import { cva as l } from "class-variance-authority";
|
|
5
|
+
import { Plus as f, ChevronDown as v } from "lucide-react";
|
|
6
|
+
import { Accordion as c } from "radix-ui";
|
|
7
|
+
const p = l("", {
|
|
8
|
+
variants: {
|
|
9
|
+
variant: {
|
|
10
|
+
default: "",
|
|
11
|
+
outline: "space-y-2",
|
|
12
|
+
solid: "space-y-2"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
defaultVariants: {
|
|
16
|
+
variant: "default"
|
|
17
|
+
}
|
|
18
|
+
}), h = l("", {
|
|
19
|
+
variants: {
|
|
20
|
+
variant: {
|
|
21
|
+
default: "border-b border-border",
|
|
22
|
+
outline: "border border-border rounded-lg px-4",
|
|
23
|
+
solid: "rounded-lg bg-accent/70 px-4"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
defaultVariants: {
|
|
27
|
+
variant: "default"
|
|
28
|
+
}
|
|
29
|
+
}), g = l(
|
|
30
|
+
"flex flex-1 items-center justify-between py-4 gap-2.5 text-foreground font-medium transition-all [&[data-state=open]>svg]:rotate-180 cursor-pointer",
|
|
31
|
+
{
|
|
32
|
+
variants: {
|
|
33
|
+
variant: {
|
|
34
|
+
default: "",
|
|
35
|
+
outline: "",
|
|
36
|
+
solid: ""
|
|
37
|
+
},
|
|
38
|
+
indicator: {
|
|
39
|
+
arrow: "",
|
|
40
|
+
plus: "[&>svg>path:last-child]:origin-center [&>svg>path:last-child]:transition-all [&>svg>path:last-child]:duration-200 [&[data-state=open]>svg>path:last-child]:rotate-90 [&[data-state=open]>svg>path:last-child]:opacity-0 [&[data-state=open]>svg]:rotate-180",
|
|
41
|
+
none: ""
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
defaultVariants: {
|
|
45
|
+
variant: "default",
|
|
46
|
+
indicator: "arrow"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
), x = l(
|
|
50
|
+
"overflow-hidden text-sm text-accent-foreground transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
51
|
+
{
|
|
52
|
+
variants: {
|
|
53
|
+
variant: {
|
|
54
|
+
default: "",
|
|
55
|
+
outline: "",
|
|
56
|
+
solid: ""
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
defaultVariants: {
|
|
60
|
+
variant: "default"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
), u = d.createContext({
|
|
64
|
+
variant: "default",
|
|
65
|
+
indicator: "arrow"
|
|
66
|
+
});
|
|
67
|
+
function A(o) {
|
|
68
|
+
const { className: t, variant: a = "default", indicator: n = "arrow", children: e, ...i } = o;
|
|
69
|
+
return /* @__PURE__ */ r(u.Provider, { value: { variant: a || "default", indicator: n }, children: /* @__PURE__ */ r(
|
|
70
|
+
c.Root,
|
|
71
|
+
{
|
|
72
|
+
"data-slot": "accordion",
|
|
73
|
+
className: s(p({ variant: a }), t),
|
|
74
|
+
...i,
|
|
75
|
+
children: e
|
|
76
|
+
}
|
|
77
|
+
) });
|
|
78
|
+
}
|
|
79
|
+
function y(o) {
|
|
80
|
+
const { className: t, children: a, ...n } = o, { variant: e } = d.useContext(u);
|
|
81
|
+
return /* @__PURE__ */ r(
|
|
82
|
+
c.Item,
|
|
83
|
+
{
|
|
84
|
+
"data-slot": "accordion-item",
|
|
85
|
+
className: s(h({ variant: e }), t),
|
|
86
|
+
...n,
|
|
87
|
+
children: a
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
function k(o) {
|
|
92
|
+
const { className: t, children: a, ...n } = o, { variant: e, indicator: i } = d.useContext(u);
|
|
93
|
+
return /* @__PURE__ */ r(c.Header, { className: "flex", children: /* @__PURE__ */ m(
|
|
94
|
+
c.Trigger,
|
|
95
|
+
{
|
|
96
|
+
"data-slot": "accordion-trigger",
|
|
97
|
+
className: s(g({ variant: e, indicator: i }), t),
|
|
98
|
+
...n,
|
|
99
|
+
children: [
|
|
100
|
+
a,
|
|
101
|
+
i === "plus" && /* @__PURE__ */ r(f, { className: "size-4 shrink-0 transition-transform duration-200", strokeWidth: 1 }),
|
|
102
|
+
i === "arrow" && /* @__PURE__ */ r(v, { className: "size-4 shrink-0 transition-transform duration-200", strokeWidth: 1 })
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
) });
|
|
106
|
+
}
|
|
107
|
+
function j(o) {
|
|
108
|
+
const { className: t, children: a, ...n } = o, { variant: e } = d.useContext(u);
|
|
109
|
+
return /* @__PURE__ */ r(
|
|
110
|
+
c.Content,
|
|
111
|
+
{
|
|
112
|
+
"data-slot": "accordion-content",
|
|
113
|
+
className: s(x({ variant: e }), t),
|
|
114
|
+
...n,
|
|
115
|
+
children: /* @__PURE__ */ r("div", { className: s("pb-5 pt-0", t), children: a })
|
|
116
|
+
}
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
export {
|
|
120
|
+
A as Accordion,
|
|
121
|
+
j as AccordionContent,
|
|
122
|
+
y as AccordionItem,
|
|
123
|
+
k as AccordionTrigger
|
|
124
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Collapsible as CollapsiblePrimitive } from 'radix-ui';
|
|
3
|
+
declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function CollapsibleContent({ className, children, ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { cn as i } from "../../../../lib/utils.js";
|
|
3
|
+
import { Collapsible as t } from "radix-ui";
|
|
4
|
+
function p({ ...l }) {
|
|
5
|
+
return /* @__PURE__ */ o(t.Root, { "data-slot": "collapsible", ...l });
|
|
6
|
+
}
|
|
7
|
+
function b({ ...l }) {
|
|
8
|
+
return /* @__PURE__ */ o(t.CollapsibleTrigger, { "data-slot": "collapsible-trigger", ...l });
|
|
9
|
+
}
|
|
10
|
+
function c({
|
|
11
|
+
className: l,
|
|
12
|
+
children: a,
|
|
13
|
+
...e
|
|
14
|
+
}) {
|
|
15
|
+
return /* @__PURE__ */ o(
|
|
16
|
+
t.CollapsibleContent,
|
|
17
|
+
{
|
|
18
|
+
"data-slot": "collapsible-content",
|
|
19
|
+
className: i(
|
|
20
|
+
"overflow-hidden transition-all data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down",
|
|
21
|
+
l
|
|
22
|
+
),
|
|
23
|
+
...e,
|
|
24
|
+
children: a
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
p as Collapsible,
|
|
30
|
+
c as CollapsibleContent,
|
|
31
|
+
b as CollapsibleTrigger
|
|
32
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
3
|
+
declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare const ResizablePanel: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLHeadingElement | HTMLTableCellElement | HTMLButtonElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableRowElement | HTMLTableCaptionElement | HTMLFormElement | HTMLSpanElement | HTMLParagraphElement | HTMLObjectElement | HTMLSlotElement | HTMLStyleElement | HTMLTitleElement | HTMLLinkElement | HTMLMapElement | HTMLDialogElement | HTMLImageElement | HTMLOptionElement | HTMLMeterElement | HTMLTextAreaElement | HTMLProgressElement | HTMLEmbedElement | HTMLPreElement | HTMLAnchorElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDListElement | HTMLFieldSetElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLInputElement | HTMLLabelElement | HTMLLegendElement | HTMLLIElement | HTMLMetaElement | HTMLOListElement | HTMLOptGroupElement | HTMLOutputElement | HTMLScriptElement | HTMLSelectElement | HTMLSourceElement | HTMLTemplateElement | HTMLTimeElement | HTMLTrackElement | HTMLUListElement | HTMLVideoElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
|
|
5
|
+
className?: string;
|
|
6
|
+
collapsedSize?: number | undefined;
|
|
7
|
+
collapsible?: boolean | undefined;
|
|
8
|
+
defaultSize?: number | undefined;
|
|
9
|
+
id?: string;
|
|
10
|
+
maxSize?: number | undefined;
|
|
11
|
+
minSize?: number | undefined;
|
|
12
|
+
onCollapse?: ResizablePrimitive.PanelOnCollapse;
|
|
13
|
+
onExpand?: ResizablePrimitive.PanelOnExpand;
|
|
14
|
+
onResize?: ResizablePrimitive.PanelOnResize;
|
|
15
|
+
order?: number;
|
|
16
|
+
style?: object;
|
|
17
|
+
tagName?: keyof HTMLElementTagNameMap | undefined;
|
|
18
|
+
} & {
|
|
19
|
+
children?: import('react').ReactNode | undefined;
|
|
20
|
+
} & React.RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
|
|
21
|
+
declare const ResizableHandle: ({ withHandle, className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
22
|
+
withHandle?: boolean;
|
|
23
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
|