@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,182 @@
|
|
|
1
|
+
import { jsx as o, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { cn as d } from "../../../../lib/utils.js";
|
|
3
|
+
import { cva as s } from "class-variance-authority";
|
|
4
|
+
import { CalendarDays as u } from "lucide-react";
|
|
5
|
+
const i = s(
|
|
6
|
+
`
|
|
7
|
+
flex w-full bg-background border border-input shadow-xs shadow-black/5 transition-[color,box-shadow] text-foreground placeholder:text-muted-foreground/80
|
|
8
|
+
focus-visible:ring-ring/30 focus-visible:border-ring focus-visible:outline-none focus-visible:ring-[3px]
|
|
9
|
+
disabled:cursor-not-allowed disabled:opacity-60
|
|
10
|
+
[&[readonly]]:bg-muted/80 [&[readonly]]:cursor-not-allowed
|
|
11
|
+
file:h-full [&[type=file]]:py-0 file:border-solid file:border-input file:bg-transparent
|
|
12
|
+
file:font-medium file:not-italic file:text-foreground file:p-0 file:border-0 file:border-e
|
|
13
|
+
aria-invalid:border-destructive/60 aria-invalid:ring-destructive/10
|
|
14
|
+
`,
|
|
15
|
+
{
|
|
16
|
+
variants: {
|
|
17
|
+
variant: {
|
|
18
|
+
lg: "h-10 px-4 text-sm rounded-md file:pe-4 file:me-4",
|
|
19
|
+
md: "h-8.5 px-3 text-[0.8125rem] leading-(--text-sm--line-height) rounded-md file:pe-3 file:me-3",
|
|
20
|
+
sm: "h-7 px-2.5 text-xs rounded-md file:pe-2.5 file:me-2.5"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: {
|
|
24
|
+
variant: "md"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
), p = s(
|
|
28
|
+
"flex items-center shrink-0 justify-center bg-muted border border-input shadow-xs shadow-[rgba(0,0,0,0.05)] text-secondary-foreground [&_svg]:text-secondary-foreground/60",
|
|
29
|
+
{
|
|
30
|
+
variants: {
|
|
31
|
+
variant: {
|
|
32
|
+
sm: "rounded-md h-7 min-w-7 text-xs px-2.5 [&_svg:not([class*=size-])]:size-3.5",
|
|
33
|
+
md: "rounded-md h-8.5 min-w-8.5 px-3 text-[0.8125rem] leading-(--text-sm--line-height) [&_svg:not([class*=size-])]:size-4.5",
|
|
34
|
+
lg: "rounded-md h-10 min-w-10 px-4 text-sm [&_svg:not([class*=size-])]:size-4.5"
|
|
35
|
+
},
|
|
36
|
+
mode: {
|
|
37
|
+
default: "",
|
|
38
|
+
icon: "px-0 justify-center"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
defaultVariants: {
|
|
42
|
+
variant: "md",
|
|
43
|
+
mode: "default"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
), f = s(
|
|
47
|
+
`
|
|
48
|
+
flex items-stretch
|
|
49
|
+
[&_[data-slot=input]]:grow
|
|
50
|
+
[&_[data-slot=input-addon]:has(+[data-slot=input])]:rounded-e-none [&_[data-slot=input-addon]:has(+[data-slot=input])]:border-e-0
|
|
51
|
+
[&_[data-slot=input-addon]:has(+[data-slot=datefield])]:rounded-e-none [&_[data-slot=input-addon]:has(+[data-slot=datefield])]:border-e-0
|
|
52
|
+
[&_[data-slot=input]+[data-slot=input-addon]]:rounded-s-none [&_[data-slot=input]+[data-slot=input-addon]]:border-s-0
|
|
53
|
+
[&_[data-slot=input-addon]:has(+[data-slot=button])]:rounded-e-none
|
|
54
|
+
[&_[data-slot=input]+[data-slot=button]]:rounded-s-none
|
|
55
|
+
[&_[data-slot=button]+[data-slot=input]]:rounded-s-none
|
|
56
|
+
[&_[data-slot=input-addon]+[data-slot=input]]:rounded-s-none
|
|
57
|
+
[&_[data-slot=input-addon]+[data-slot=datefield]]:[&_[data-slot=input]]:rounded-s-none
|
|
58
|
+
[&_[data-slot=datefield]:has(+[data-slot=input-addon])]:[&_[data-slot=input]]:rounded-e-none
|
|
59
|
+
[&_[data-slot=input]:has(+[data-slot=button])]:rounded-e-none
|
|
60
|
+
[&_[data-slot=input]:has(+[data-slot=input-addon])]:rounded-e-none
|
|
61
|
+
[&_[data-slot=datefield]]:grow
|
|
62
|
+
[&_[data-slot=datefield]+[data-slot=input-addon]]:rounded-s-none [&_[data-slot=datefield]+[data-slot=input-addon]]:border-s-0
|
|
63
|
+
`,
|
|
64
|
+
{
|
|
65
|
+
variants: {},
|
|
66
|
+
defaultVariants: {}
|
|
67
|
+
}
|
|
68
|
+
), c = s(
|
|
69
|
+
`
|
|
70
|
+
flex items-center gap-1.5
|
|
71
|
+
has-[:focus-visible]:ring-ring/30
|
|
72
|
+
has-[:focus-visible]:border-ring
|
|
73
|
+
has-[:focus-visible]:outline-none
|
|
74
|
+
has-[:focus-visible]:ring-[3px]
|
|
75
|
+
|
|
76
|
+
[&_[data-slot=datefield]]:grow
|
|
77
|
+
[&_[data-slot=input]]:data-focus-within:ring-transparent
|
|
78
|
+
[&_[data-slot=input]]:data-focus-within:ring-0
|
|
79
|
+
[&_[data-slot=input]]:data-focus-within:border-0
|
|
80
|
+
[&_[data-slot=input]]:flex
|
|
81
|
+
[&_[data-slot=input]]:w-full
|
|
82
|
+
[&_[data-slot=input]]:outline-none
|
|
83
|
+
[&_[data-slot=input]]:transition-colors
|
|
84
|
+
[&_[data-slot=input]]:text-foreground
|
|
85
|
+
[&_[data-slot=input]]:placeholder:text-muted-foreground
|
|
86
|
+
[&_[data-slot=input]]:border-0
|
|
87
|
+
[&_[data-slot=input]]:bg-transparent
|
|
88
|
+
[&_[data-slot=input]]:p-0
|
|
89
|
+
[&_[data-slot=input]]:shadow-none
|
|
90
|
+
[&_[data-slot=input]]:focus-visible:ring-0
|
|
91
|
+
[&_[data-slot=input]]:h-auto
|
|
92
|
+
[&_[data-slot=input]]:disabled:cursor-not-allowed
|
|
93
|
+
[&_[data-slot=input]]:disabled:opacity-50
|
|
94
|
+
|
|
95
|
+
[&_svg]:text-muted-foreground
|
|
96
|
+
`,
|
|
97
|
+
{
|
|
98
|
+
variants: {
|
|
99
|
+
variant: {
|
|
100
|
+
sm: "gap-1.25 [&_svg:not([class*=size-])]:size-3.5",
|
|
101
|
+
md: "gap-1.5 [&_svg:not([class*=size-])]:size-4",
|
|
102
|
+
lg: "gap-1.5 [&_svg:not([class*=size-])]:size-4"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
defaultVariants: {
|
|
106
|
+
variant: "md"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
);
|
|
110
|
+
function m({
|
|
111
|
+
className: a,
|
|
112
|
+
type: t,
|
|
113
|
+
variant: e,
|
|
114
|
+
...n
|
|
115
|
+
}) {
|
|
116
|
+
return /* @__PURE__ */ o("input", { "data-slot": "input", type: t, className: d(i({ variant: e }), a), ...n });
|
|
117
|
+
}
|
|
118
|
+
function x({
|
|
119
|
+
className: a,
|
|
120
|
+
variant: t,
|
|
121
|
+
mode: e,
|
|
122
|
+
...n
|
|
123
|
+
}) {
|
|
124
|
+
return /* @__PURE__ */ o("div", { "data-slot": "input-addon", className: d(p({ variant: t, mode: e }), a), ...n });
|
|
125
|
+
}
|
|
126
|
+
function v({ className: a, ...t }) {
|
|
127
|
+
return /* @__PURE__ */ o("div", { "data-slot": "input-group", className: d(f(), a), ...t });
|
|
128
|
+
}
|
|
129
|
+
function w({
|
|
130
|
+
className: a,
|
|
131
|
+
variant: t,
|
|
132
|
+
...e
|
|
133
|
+
}) {
|
|
134
|
+
return /* @__PURE__ */ o(
|
|
135
|
+
"div",
|
|
136
|
+
{
|
|
137
|
+
"data-slot": "input-wrapper",
|
|
138
|
+
className: d(i({ variant: t }), c({ variant: t }), a),
|
|
139
|
+
...e
|
|
140
|
+
}
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
function z({
|
|
144
|
+
className: a,
|
|
145
|
+
wrapperClassName: t,
|
|
146
|
+
iconClassName: e,
|
|
147
|
+
variant: n,
|
|
148
|
+
...r
|
|
149
|
+
}) {
|
|
150
|
+
return /* @__PURE__ */ l("span", { "data-slot": "native-date-input", className: d("relative block w-full", t), children: [
|
|
151
|
+
/* @__PURE__ */ o(
|
|
152
|
+
m,
|
|
153
|
+
{
|
|
154
|
+
type: "date",
|
|
155
|
+
variant: n,
|
|
156
|
+
className: d("demokit-native-date-input pe-10", a),
|
|
157
|
+
...r
|
|
158
|
+
}
|
|
159
|
+
),
|
|
160
|
+
/* @__PURE__ */ o(
|
|
161
|
+
u,
|
|
162
|
+
{
|
|
163
|
+
"aria-hidden": "true",
|
|
164
|
+
className: d(
|
|
165
|
+
"pointer-events-none absolute end-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground",
|
|
166
|
+
n === "sm" && "end-2.5 size-3.5",
|
|
167
|
+
n === "lg" && "end-4 size-4.5",
|
|
168
|
+
e
|
|
169
|
+
)
|
|
170
|
+
}
|
|
171
|
+
)
|
|
172
|
+
] });
|
|
173
|
+
}
|
|
174
|
+
export {
|
|
175
|
+
m as Input,
|
|
176
|
+
x as InputAddon,
|
|
177
|
+
v as InputGroup,
|
|
178
|
+
w as InputWrapper,
|
|
179
|
+
z as NativeDateInput,
|
|
180
|
+
p as inputAddonVariants,
|
|
181
|
+
i as inputVariants
|
|
182
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { Label as LabelPrimitive } from 'radix-ui';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
declare const labelVariants: (props?: ({
|
|
5
|
+
variant?: "primary" | "secondary" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
declare function Label({ className, variant, ...props }: React.ComponentProps<typeof LabelPrimitive.Root> & VariantProps<typeof labelVariants>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { Label };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { cn as e } from "../../../../lib/utils.js";
|
|
3
|
+
import { cva as n } from "class-variance-authority";
|
|
4
|
+
import { Label as i } from "radix-ui";
|
|
5
|
+
const l = n(
|
|
6
|
+
"text-sm leading-none text-foreground peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
7
|
+
{
|
|
8
|
+
variants: {
|
|
9
|
+
variant: {
|
|
10
|
+
primary: "font-medium",
|
|
11
|
+
secondary: "font-normal"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
defaultVariants: {
|
|
15
|
+
variant: "primary"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
function f({
|
|
20
|
+
className: a,
|
|
21
|
+
variant: r,
|
|
22
|
+
...o
|
|
23
|
+
}) {
|
|
24
|
+
return /* @__PURE__ */ t(i.Root, { "data-slot": "label", className: e(l({ variant: r }), a), ...o });
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
f as Label
|
|
28
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { RadioGroup as RadioGroupPrimitive } from 'radix-ui';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
declare const radioGroupVariants: (props?: ({
|
|
5
|
+
variant?: "primary" | "mono" | null | undefined;
|
|
6
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
+
declare function RadioGroup({ className, variant, size, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Root> & VariantProps<typeof radioGroupVariants>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare const radioItemVariants: (props?: ({
|
|
10
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
11
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
12
|
+
declare function RadioGroupItem({ className, size, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item> & VariantProps<typeof radioItemVariants>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export { RadioGroup, RadioGroupItem };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import { cn as d } from "../../../../lib/utils.js";
|
|
4
|
+
import { cva as n } from "class-variance-authority";
|
|
5
|
+
import { Circle as m } from "lucide-react";
|
|
6
|
+
import { RadioGroup as o } from "radix-ui";
|
|
7
|
+
const l = n("grid gap-2.5", {
|
|
8
|
+
variants: {
|
|
9
|
+
variant: {
|
|
10
|
+
primary: "",
|
|
11
|
+
mono: ""
|
|
12
|
+
},
|
|
13
|
+
size: {
|
|
14
|
+
sm: "",
|
|
15
|
+
md: "",
|
|
16
|
+
lg: ""
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
defaultVariants: {
|
|
20
|
+
variant: "primary",
|
|
21
|
+
size: "md"
|
|
22
|
+
}
|
|
23
|
+
}), c = s.createContext({ variant: "primary", size: "md" });
|
|
24
|
+
function x({
|
|
25
|
+
className: t,
|
|
26
|
+
variant: e,
|
|
27
|
+
size: i,
|
|
28
|
+
...a
|
|
29
|
+
}) {
|
|
30
|
+
return /* @__PURE__ */ r(c.Provider, { value: { variant: e ?? "primary", size: i ?? "md" }, children: /* @__PURE__ */ r(
|
|
31
|
+
o.Root,
|
|
32
|
+
{
|
|
33
|
+
"data-slot": "radio-group",
|
|
34
|
+
className: d(l({ variant: e, size: i }), t),
|
|
35
|
+
...a
|
|
36
|
+
}
|
|
37
|
+
) });
|
|
38
|
+
}
|
|
39
|
+
const p = n(
|
|
40
|
+
`
|
|
41
|
+
peer aspect-square rounded-full border outline-hidden ring-offset-background focus:outline-none focus-visible:ring-2
|
|
42
|
+
focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50
|
|
43
|
+
aria-invalid:border-destructive/60 aria-invalid:ring-destructive/10
|
|
44
|
+
[[data-invalid=true]_&]:border-destructive/60 [[data-invalid=true]_&]:ring-destructive/10
|
|
45
|
+
border-input text-primary data-[state=checked]:bg-primary data-[state=checked]:border-primary data-[state=checked]:text-primary-foreground
|
|
46
|
+
`,
|
|
47
|
+
{
|
|
48
|
+
variants: {
|
|
49
|
+
size: {
|
|
50
|
+
sm: "size-4.5 [&_svg]:size-2",
|
|
51
|
+
md: "size-5 [&_svg]:size-2.5",
|
|
52
|
+
lg: "size-5.5 [&_svg]:size-3"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
defaultVariants: {
|
|
56
|
+
size: "md"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
function y({
|
|
61
|
+
className: t,
|
|
62
|
+
size: e,
|
|
63
|
+
...i
|
|
64
|
+
}) {
|
|
65
|
+
const { size: a } = s.useContext(c), u = e ?? a;
|
|
66
|
+
return /* @__PURE__ */ r(
|
|
67
|
+
o.Item,
|
|
68
|
+
{
|
|
69
|
+
"data-slot": "radio-group-item",
|
|
70
|
+
className: d(p({ size: u }), t),
|
|
71
|
+
...i,
|
|
72
|
+
children: /* @__PURE__ */ r(o.Indicator, { "data-slot": "radio-group-indicator", className: "flex items-center justify-center", children: /* @__PURE__ */ r(m, { className: "fill-current text-current" }) })
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
export {
|
|
77
|
+
x as RadioGroup,
|
|
78
|
+
y as RadioGroupItem
|
|
79
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import { Select as SelectPrimitive } from 'radix-ui';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
declare const Select: ({ indicatorPosition, indicatorVisibility, indicator, ...props }: {
|
|
6
|
+
indicatorPosition?: "left" | "right";
|
|
7
|
+
indicatorVisibility?: boolean;
|
|
8
|
+
indicator?: ReactNode;
|
|
9
|
+
} & React.ComponentProps<typeof SelectPrimitive.Root>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function SelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare const selectTriggerVariants: (props?: ({
|
|
13
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
14
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
15
|
+
export interface SelectTriggerProps extends React.ComponentProps<typeof SelectPrimitive.Trigger>, VariantProps<typeof selectTriggerVariants> {
|
|
16
|
+
}
|
|
17
|
+
declare function SelectTrigger({ className, children, size, ...props }: SelectTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare function SelectContent({ className, children, position, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
declare function SelectIndicator({ children, className, ...props }: React.ComponentProps<typeof SelectPrimitive.ItemIndicator>): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export { Select, SelectContent, SelectGroup, SelectIndicator, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import * as d from "react";
|
|
3
|
+
import { isValidElement as p } from "react";
|
|
4
|
+
import { cn as i } from "../../../../lib/utils.js";
|
|
5
|
+
import { cva as f } from "class-variance-authority";
|
|
6
|
+
import { Check as h, ChevronDown as u, ChevronUp as g } from "lucide-react";
|
|
7
|
+
import { Select as r } from "radix-ui";
|
|
8
|
+
const c = d.createContext({ indicatorPosition: "left", indicator: null, indicatorVisibility: !0 }), V = ({
|
|
9
|
+
indicatorPosition: t = "left",
|
|
10
|
+
indicatorVisibility: a = !0,
|
|
11
|
+
indicator: o,
|
|
12
|
+
...n
|
|
13
|
+
}) => /* @__PURE__ */ e(c.Provider, { value: { indicatorPosition: t, indicatorVisibility: a, indicator: o }, children: /* @__PURE__ */ e(r.Root, { ...n }) });
|
|
14
|
+
function j({ ...t }) {
|
|
15
|
+
return /* @__PURE__ */ e(r.Group, { "data-slot": "select-group", ...t });
|
|
16
|
+
}
|
|
17
|
+
function z({ ...t }) {
|
|
18
|
+
return /* @__PURE__ */ e(r.Value, { "data-slot": "select-value", ...t });
|
|
19
|
+
}
|
|
20
|
+
const x = f(
|
|
21
|
+
`
|
|
22
|
+
flex bg-background w-full items-center justify-between outline-none border border-input shadow-xs shadow-black/5 transition-shadow
|
|
23
|
+
text-foreground data-placeholder:text-muted-foreground focus-visible:border-ring focus-visible:outline-none focus-visible:ring-[3px]
|
|
24
|
+
focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1
|
|
25
|
+
aria-invalid:border-destructive/60 aria-invalid:ring-destructive/10
|
|
26
|
+
[[data-invalid=true]_&]:border-destructive/60 [[data-invalid=true]_&]:ring-destructive/10
|
|
27
|
+
`,
|
|
28
|
+
{
|
|
29
|
+
variants: {
|
|
30
|
+
size: {
|
|
31
|
+
sm: "h-7 px-2.5 text-xs gap-1 rounded-md",
|
|
32
|
+
md: "h-8.5 px-3 text-[0.8125rem] leading-(--text-sm--line-height) gap-1 rounded-md",
|
|
33
|
+
lg: "h-10 px-4 text-sm gap-1.5 rounded-md"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
defaultVariants: {
|
|
37
|
+
size: "md"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
function P({ className: t, children: a, size: o, ...n }) {
|
|
42
|
+
return /* @__PURE__ */ l(
|
|
43
|
+
r.Trigger,
|
|
44
|
+
{
|
|
45
|
+
"data-slot": "select-trigger",
|
|
46
|
+
className: i(x({ size: o }), t),
|
|
47
|
+
...n,
|
|
48
|
+
children: [
|
|
49
|
+
a,
|
|
50
|
+
/* @__PURE__ */ e(r.Icon, { asChild: !0, children: /* @__PURE__ */ e(u, { className: "h-4 w-4 opacity-60 -me-0.5" }) })
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
function b({ className: t, ...a }) {
|
|
56
|
+
return /* @__PURE__ */ e(
|
|
57
|
+
r.ScrollUpButton,
|
|
58
|
+
{
|
|
59
|
+
"data-slot": "select-scroll-up-button",
|
|
60
|
+
className: i("flex cursor-default items-center justify-center py-1", t),
|
|
61
|
+
...a,
|
|
62
|
+
children: /* @__PURE__ */ e(g, { className: "h-4 w-4" })
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
function v({
|
|
67
|
+
className: t,
|
|
68
|
+
...a
|
|
69
|
+
}) {
|
|
70
|
+
return /* @__PURE__ */ e(
|
|
71
|
+
r.ScrollDownButton,
|
|
72
|
+
{
|
|
73
|
+
"data-slot": "select-scroll-down-button",
|
|
74
|
+
className: i("flex cursor-default items-center justify-center py-1", t),
|
|
75
|
+
...a,
|
|
76
|
+
children: /* @__PURE__ */ e(u, { className: "h-4 w-4" })
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
function k({
|
|
81
|
+
className: t,
|
|
82
|
+
children: a,
|
|
83
|
+
position: o = "popper",
|
|
84
|
+
...n
|
|
85
|
+
}) {
|
|
86
|
+
return /* @__PURE__ */ e(r.Portal, { children: /* @__PURE__ */ l(
|
|
87
|
+
r.Content,
|
|
88
|
+
{
|
|
89
|
+
"data-slot": "select-content",
|
|
90
|
+
className: i(
|
|
91
|
+
"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-border bg-popover shadow-md shadow-black/5 text-secondary-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
92
|
+
o === "popper" && "data-[side=bottom]:translate-y-1.5 data-[side=left]:-translate-x-1.5 data-[side=right]:translate-x-1.5 data-[side=top]:-translate-y-1.5",
|
|
93
|
+
t
|
|
94
|
+
),
|
|
95
|
+
position: o,
|
|
96
|
+
...n,
|
|
97
|
+
children: [
|
|
98
|
+
/* @__PURE__ */ e(b, {}),
|
|
99
|
+
/* @__PURE__ */ e(
|
|
100
|
+
r.Viewport,
|
|
101
|
+
{
|
|
102
|
+
className: i(
|
|
103
|
+
"p-1.5",
|
|
104
|
+
o === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
105
|
+
),
|
|
106
|
+
children: a
|
|
107
|
+
}
|
|
108
|
+
),
|
|
109
|
+
/* @__PURE__ */ e(v, {})
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
) });
|
|
113
|
+
}
|
|
114
|
+
function B({ className: t, ...a }) {
|
|
115
|
+
return /* @__PURE__ */ e(
|
|
116
|
+
r.Label,
|
|
117
|
+
{
|
|
118
|
+
"data-slot": "select-label",
|
|
119
|
+
className: i("py-1.5 ps-8 pe-2 text-xs text-muted-foreground font-medium", t),
|
|
120
|
+
...a
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
function T({ className: t, children: a, ...o }) {
|
|
125
|
+
const { indicatorPosition: n, indicatorVisibility: m, indicator: s } = d.useContext(c);
|
|
126
|
+
return /* @__PURE__ */ l(
|
|
127
|
+
r.Item,
|
|
128
|
+
{
|
|
129
|
+
"data-slot": "select-item",
|
|
130
|
+
className: i(
|
|
131
|
+
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 text-sm outline-hidden text-foreground hover:bg-accent focus:bg-accent data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
132
|
+
n === "left" ? "ps-8 pe-2" : "pe-8 ps-2",
|
|
133
|
+
t
|
|
134
|
+
),
|
|
135
|
+
...o,
|
|
136
|
+
children: [
|
|
137
|
+
m && (s && p(s) ? s : /* @__PURE__ */ e(
|
|
138
|
+
"span",
|
|
139
|
+
{
|
|
140
|
+
className: i(
|
|
141
|
+
"absolute flex h-3.5 w-3.5 items-center justify-center",
|
|
142
|
+
n === "left" ? "start-2" : "end-2"
|
|
143
|
+
),
|
|
144
|
+
children: /* @__PURE__ */ e(r.ItemIndicator, { children: /* @__PURE__ */ e(h, { className: "h-4 w-4 text-primary" }) })
|
|
145
|
+
}
|
|
146
|
+
)),
|
|
147
|
+
/* @__PURE__ */ e(r.ItemText, { children: a })
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
function D({
|
|
153
|
+
children: t,
|
|
154
|
+
className: a,
|
|
155
|
+
...o
|
|
156
|
+
}) {
|
|
157
|
+
const { indicatorPosition: n } = d.useContext(c);
|
|
158
|
+
return /* @__PURE__ */ e(
|
|
159
|
+
"span",
|
|
160
|
+
{
|
|
161
|
+
"data-slot": "select-indicator",
|
|
162
|
+
className: i(
|
|
163
|
+
"absolute flex top-1/2 -translate-y-1/2 items-center justify-center",
|
|
164
|
+
n === "left" ? "start-2" : "end-2",
|
|
165
|
+
a
|
|
166
|
+
),
|
|
167
|
+
...o,
|
|
168
|
+
children: /* @__PURE__ */ e(r.ItemIndicator, { children: t })
|
|
169
|
+
}
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
function U({ className: t, ...a }) {
|
|
173
|
+
return /* @__PURE__ */ e(
|
|
174
|
+
r.Separator,
|
|
175
|
+
{
|
|
176
|
+
"data-slot": "select-separator",
|
|
177
|
+
className: i("-mx-1.5 my-1.5 h-px bg-border", t),
|
|
178
|
+
...a
|
|
179
|
+
}
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
export {
|
|
183
|
+
V as Select,
|
|
184
|
+
k as SelectContent,
|
|
185
|
+
j as SelectGroup,
|
|
186
|
+
D as SelectIndicator,
|
|
187
|
+
T as SelectItem,
|
|
188
|
+
B as SelectLabel,
|
|
189
|
+
v as SelectScrollDownButton,
|
|
190
|
+
b as SelectScrollUpButton,
|
|
191
|
+
U as SelectSeparator,
|
|
192
|
+
P as SelectTrigger,
|
|
193
|
+
z as SelectValue
|
|
194
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Slider as SliderPrimitive } from 'radix-ui';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare function Slider({ className, children, ...props }: React.ComponentProps<typeof SliderPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function SliderThumb({ className, ...props }: React.ComponentProps<typeof SliderPrimitive.Thumb>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export { Slider, SliderThumb };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsxs as t, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { cn as n } from "../../../../lib/utils.js";
|
|
3
|
+
import { Slider as e } from "radix-ui";
|
|
4
|
+
function u({ className: r, children: o, ...i }) {
|
|
5
|
+
return /* @__PURE__ */ t(
|
|
6
|
+
e.Root,
|
|
7
|
+
{
|
|
8
|
+
"data-slot": "slider",
|
|
9
|
+
className: n("relative flex h-4 w-full touch-none select-none items-center", r),
|
|
10
|
+
...i,
|
|
11
|
+
children: [
|
|
12
|
+
/* @__PURE__ */ l(e.Track, { className: "relative h-1.5 w-full overflow-hidden rounded-full bg-accent", children: /* @__PURE__ */ l(e.Range, { className: "absolute h-full bg-primary" }) }),
|
|
13
|
+
o
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
function c({ className: r, ...o }) {
|
|
19
|
+
return /* @__PURE__ */ l(
|
|
20
|
+
e.Thumb,
|
|
21
|
+
{
|
|
22
|
+
"data-slot": "slider-thumb",
|
|
23
|
+
className: n(
|
|
24
|
+
"box-content block size-4 shrink-0 cursor-pointer rounded-full border-[2px] border-primary bg-primary-foreground shadow-xs shadow-black/5 outline-hidden focus:outline-hidden",
|
|
25
|
+
r
|
|
26
|
+
),
|
|
27
|
+
...o
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
u as Slider,
|
|
33
|
+
c as SliderThumb
|
|
34
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { Switch as SwitchPrimitive } from 'radix-ui';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
declare const switchVariants: (props?: ({
|
|
5
|
+
shape?: "square" | "pill" | null | undefined;
|
|
6
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
7
|
+
permanent?: boolean | null | undefined;
|
|
8
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
|
+
declare const switchIndicatorVariants: (props?: ({
|
|
10
|
+
state?: "off" | "on" | null | undefined;
|
|
11
|
+
permanent?: boolean | null | undefined;
|
|
12
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
13
|
+
declare function SwitchWrapper({ className, children, permanent, ...props }: React.HTMLAttributes<HTMLDivElement> & {
|
|
14
|
+
permanent?: boolean;
|
|
15
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function Switch({ className, thumbClassName, shape, size, ...props }: React.ComponentProps<typeof SwitchPrimitive.Root> & VariantProps<typeof switchVariants> & {
|
|
17
|
+
thumbClassName?: string;
|
|
18
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare function SwitchIndicator({ className, state, ...props }: React.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof switchIndicatorVariants>): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export { Switch, SwitchIndicator, SwitchWrapper };
|