@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,380 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { cva as f } from "class-variance-authority";
|
|
3
|
+
import { ChevronDown as h } from "lucide-react";
|
|
4
|
+
import { Slot as x } from "radix-ui";
|
|
5
|
+
import { cn as s } from "../../../../lib/utils.js";
|
|
6
|
+
const b = f(
|
|
7
|
+
"cursor-pointer group whitespace-nowrap focus-visible:outline-hidden inline-flex items-center justify-center has-data-[arrow=true]:justify-between whitespace-nowrap text-sm font-medium ring-offset-background transition-[color,box-shadow] disabled:pointer-events-none disabled:opacity-60 [&_svg]:shrink-0",
|
|
8
|
+
{
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
primary: "bg-primary text-primary-foreground hover:bg-primary/90 data-[state=open]:bg-primary/90",
|
|
12
|
+
mono: "bg-zinc-950 text-white hover:bg-zinc-950/90 data-[state=open]:bg-zinc-950/90",
|
|
13
|
+
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90 data-[state=open]:bg-destructive/90",
|
|
14
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/90 data-[state=open]:bg-secondary/90",
|
|
15
|
+
outline: "bg-background text-accent-foreground border border-input hover:bg-accent data-[state=open]:bg-accent",
|
|
16
|
+
dashed: "text-accent-foreground border border-input border-dashed bg-background hover:bg-accent hover:text-accent-foreground data-[state=open]:text-accent-foreground",
|
|
17
|
+
ghost: "text-accent-foreground hover:bg-accent hover:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
|
|
18
|
+
dim: "text-muted-foreground hover:text-foreground data-[state=open]:text-foreground",
|
|
19
|
+
foreground: "",
|
|
20
|
+
inverse: ""
|
|
21
|
+
},
|
|
22
|
+
appearance: {
|
|
23
|
+
default: "",
|
|
24
|
+
ghost: ""
|
|
25
|
+
},
|
|
26
|
+
underline: {
|
|
27
|
+
solid: "",
|
|
28
|
+
dashed: ""
|
|
29
|
+
},
|
|
30
|
+
underlined: {
|
|
31
|
+
solid: "",
|
|
32
|
+
dashed: ""
|
|
33
|
+
},
|
|
34
|
+
size: {
|
|
35
|
+
lg: "h-10 rounded-[var(--dk-radius-control)] px-4 text-sm gap-1.5 [&_svg:not([class*=size-])]:size-4",
|
|
36
|
+
md: "h-8.5 rounded-[var(--dk-radius-control)] px-3 gap-1.5 text-[0.8125rem] leading-(--text-sm--line-height) [&_svg:not([class*=size-])]:size-4",
|
|
37
|
+
sm: "h-7 rounded-[var(--dk-radius-control)] px-2.5 gap-1.25 text-xs [&_svg:not([class*=size-])]:size-3.5",
|
|
38
|
+
icon: "size-8.5 rounded-[var(--dk-radius-control)] [&_svg:not([class*=size-])]:size-4 shrink-0"
|
|
39
|
+
},
|
|
40
|
+
autoHeight: {
|
|
41
|
+
true: "",
|
|
42
|
+
false: ""
|
|
43
|
+
},
|
|
44
|
+
shape: {
|
|
45
|
+
default: "",
|
|
46
|
+
circle: "rounded-full"
|
|
47
|
+
},
|
|
48
|
+
mode: {
|
|
49
|
+
default: "focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
50
|
+
icon: "focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
51
|
+
link: "text-primary h-auto p-0 bg-transparent rounded-none hover:bg-transparent data-[state=open]:bg-transparent",
|
|
52
|
+
input: `
|
|
53
|
+
justify-start font-normal hover:bg-background [&_svg]:transition-colors [&_svg]:hover:text-foreground data-[state=open]:bg-background
|
|
54
|
+
focus-visible:border-ring focus-visible:outline-hidden focus-visible:ring-[3px] focus-visible:ring-ring/30
|
|
55
|
+
[[data-state=open]>&]:border-ring [[data-state=open]>&]:outline-hidden [[data-state=open]>&]:ring-[3px]
|
|
56
|
+
[[data-state=open]>&]:ring-ring/30
|
|
57
|
+
aria-invalid:border-destructive/60 aria-invalid:ring-destructive/10
|
|
58
|
+
in-data-[invalid=true]:border-destructive/60 in-data-[invalid=true]:ring-destructive/10
|
|
59
|
+
`
|
|
60
|
+
},
|
|
61
|
+
placeholder: {
|
|
62
|
+
true: "text-muted-foreground",
|
|
63
|
+
false: ""
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
compoundVariants: [
|
|
67
|
+
// Icons opacity for default mode
|
|
68
|
+
{
|
|
69
|
+
variant: "ghost",
|
|
70
|
+
mode: "default",
|
|
71
|
+
className: "[&_svg:not([role=img]):not([class*=text-]):not([class*=opacity-])]:opacity-60"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
variant: "outline",
|
|
75
|
+
mode: "default",
|
|
76
|
+
className: "[&_svg:not([role=img]):not([class*=text-]):not([class*=opacity-])]:opacity-60"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
variant: "dashed",
|
|
80
|
+
mode: "default",
|
|
81
|
+
className: "[&_svg:not([role=img]):not([class*=text-]):not([class*=opacity-])]:opacity-60"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
variant: "secondary",
|
|
85
|
+
mode: "default",
|
|
86
|
+
className: "[&_svg:not([role=img]):not([class*=text-]):not([class*=opacity-])]:opacity-60"
|
|
87
|
+
},
|
|
88
|
+
// Icons opacity for default mode
|
|
89
|
+
{
|
|
90
|
+
variant: "outline",
|
|
91
|
+
mode: "input",
|
|
92
|
+
className: "[&_svg:not([role=img]):not([class*=text-]):not([class*=opacity-])]:opacity-60"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
variant: "outline",
|
|
96
|
+
mode: "icon",
|
|
97
|
+
className: "[&_svg:not([role=img]):not([class*=text-]):not([class*=opacity-])]:opacity-60"
|
|
98
|
+
},
|
|
99
|
+
// Auto height
|
|
100
|
+
{
|
|
101
|
+
size: "md",
|
|
102
|
+
autoHeight: !0,
|
|
103
|
+
className: "h-auto min-h-8.5"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
size: "sm",
|
|
107
|
+
autoHeight: !0,
|
|
108
|
+
className: "h-auto min-h-7"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
size: "lg",
|
|
112
|
+
autoHeight: !0,
|
|
113
|
+
className: "h-auto min-h-10"
|
|
114
|
+
},
|
|
115
|
+
// Shadow support
|
|
116
|
+
{
|
|
117
|
+
variant: "primary",
|
|
118
|
+
mode: "default",
|
|
119
|
+
appearance: "default",
|
|
120
|
+
className: "shadow-xs shadow-black/5"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
variant: "mono",
|
|
124
|
+
mode: "default",
|
|
125
|
+
appearance: "default",
|
|
126
|
+
className: "shadow-xs shadow-black/5"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
variant: "secondary",
|
|
130
|
+
mode: "default",
|
|
131
|
+
appearance: "default",
|
|
132
|
+
className: "shadow-xs shadow-black/5"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
variant: "outline",
|
|
136
|
+
mode: "default",
|
|
137
|
+
appearance: "default",
|
|
138
|
+
className: "shadow-xs shadow-black/5"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
variant: "dashed",
|
|
142
|
+
mode: "default",
|
|
143
|
+
appearance: "default",
|
|
144
|
+
className: "shadow-xs shadow-black/5"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
variant: "destructive",
|
|
148
|
+
mode: "default",
|
|
149
|
+
appearance: "default",
|
|
150
|
+
className: "shadow-xs shadow-black/5"
|
|
151
|
+
},
|
|
152
|
+
// Shadow support
|
|
153
|
+
{
|
|
154
|
+
variant: "primary",
|
|
155
|
+
mode: "icon",
|
|
156
|
+
appearance: "default",
|
|
157
|
+
className: "shadow-xs shadow-black/5"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
variant: "mono",
|
|
161
|
+
mode: "icon",
|
|
162
|
+
appearance: "default",
|
|
163
|
+
className: "shadow-xs shadow-black/5"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
variant: "secondary",
|
|
167
|
+
mode: "icon",
|
|
168
|
+
appearance: "default",
|
|
169
|
+
className: "shadow-xs shadow-black/5"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
variant: "outline",
|
|
173
|
+
mode: "icon",
|
|
174
|
+
appearance: "default",
|
|
175
|
+
className: "shadow-xs shadow-black/5"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
variant: "dashed",
|
|
179
|
+
mode: "icon",
|
|
180
|
+
appearance: "default",
|
|
181
|
+
className: "shadow-xs shadow-black/5"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
variant: "destructive",
|
|
185
|
+
mode: "icon",
|
|
186
|
+
appearance: "default",
|
|
187
|
+
className: "shadow-xs shadow-black/5"
|
|
188
|
+
},
|
|
189
|
+
// Link
|
|
190
|
+
{
|
|
191
|
+
variant: "primary",
|
|
192
|
+
mode: "link",
|
|
193
|
+
underline: "solid",
|
|
194
|
+
className: "font-medium text-primary hover:text-primary/90 [&_svg:not([role=img]):not([class*=text-])]:opacity-60 hover:underline hover:underline-offset-4 hover:decoration-solid"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
variant: "primary",
|
|
198
|
+
mode: "link",
|
|
199
|
+
underline: "dashed",
|
|
200
|
+
className: "font-medium text-primary hover:text-primary/90 [&_svg:not([role=img]):not([class*=text-])]:opacity-60 hover:underline hover:underline-offset-4 hover:decoration-dashed decoration-1"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
variant: "primary",
|
|
204
|
+
mode: "link",
|
|
205
|
+
underlined: "solid",
|
|
206
|
+
className: "font-medium text-primary hover:text-primary/90 [&_svg:not([role=img]):not([class*=text-])]:opacity-60 underline underline-offset-4 decoration-solid"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
variant: "primary",
|
|
210
|
+
mode: "link",
|
|
211
|
+
underlined: "dashed",
|
|
212
|
+
className: "font-medium text-primary hover:text-primary/90 [&_svg]:opacity-60 underline underline-offset-4 decoration-dashed decoration-1"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
variant: "inverse",
|
|
216
|
+
mode: "link",
|
|
217
|
+
underline: "solid",
|
|
218
|
+
className: "font-medium text-inherit [&_svg:not([role=img]):not([class*=text-])]:opacity-60 hover:underline hover:underline-offset-4 hover:decoration-solid"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
variant: "inverse",
|
|
222
|
+
mode: "link",
|
|
223
|
+
underline: "dashed",
|
|
224
|
+
className: "font-medium text-inherit [&_svg:not([role=img]):not([class*=text-])]:opacity-60 hover:underline hover:underline-offset-4 hover:decoration-dashed decoration-1"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
variant: "inverse",
|
|
228
|
+
mode: "link",
|
|
229
|
+
underlined: "solid",
|
|
230
|
+
className: "font-medium text-inherit [&_svg:not([role=img]):not([class*=text-])]:opacity-60 underline underline-offset-4 decoration-solid"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
variant: "inverse",
|
|
234
|
+
mode: "link",
|
|
235
|
+
underlined: "dashed",
|
|
236
|
+
className: "font-medium text-inherit [&_svg:not([role=img]):not([class*=text-])]:opacity-60 underline underline-offset-4 decoration-dashed decoration-1"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
variant: "foreground",
|
|
240
|
+
mode: "link",
|
|
241
|
+
underline: "solid",
|
|
242
|
+
className: "font-medium text-foreground [&_svg:not([role=img]):not([class*=text-])]:opacity-60 hover:underline hover:underline-offset-4 hover:decoration-solid"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
variant: "foreground",
|
|
246
|
+
mode: "link",
|
|
247
|
+
underline: "dashed",
|
|
248
|
+
className: "font-medium text-foreground [&_svg:not([role=img]):not([class*=text-])]:opacity-60 hover:underline hover:underline-offset-4 hover:decoration-dashed decoration-1"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
variant: "foreground",
|
|
252
|
+
mode: "link",
|
|
253
|
+
underlined: "solid",
|
|
254
|
+
className: "font-medium text-foreground [&_svg:not([role=img]):not([class*=text-])]:opacity-60 underline underline-offset-4 decoration-solid"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
variant: "foreground",
|
|
258
|
+
mode: "link",
|
|
259
|
+
underlined: "dashed",
|
|
260
|
+
className: "font-medium text-foreground [&_svg:not([role=img]):not([class*=text-])]:opacity-60 underline underline-offset-4 decoration-dashed decoration-1"
|
|
261
|
+
},
|
|
262
|
+
// Ghost
|
|
263
|
+
{
|
|
264
|
+
variant: "primary",
|
|
265
|
+
appearance: "ghost",
|
|
266
|
+
className: "bg-transparent text-primary/90 hover:bg-primary/5 data-[state=open]:bg-primary/5"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
variant: "destructive",
|
|
270
|
+
appearance: "ghost",
|
|
271
|
+
className: "bg-transparent text-destructive/90 hover:bg-destructive/5 data-[state=open]:bg-destructive/5"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
variant: "ghost",
|
|
275
|
+
mode: "icon",
|
|
276
|
+
className: "text-muted-foreground"
|
|
277
|
+
},
|
|
278
|
+
// Size
|
|
279
|
+
{
|
|
280
|
+
size: "sm",
|
|
281
|
+
mode: "icon",
|
|
282
|
+
className: "w-7 h-7 p-0 [[&_svg:not([class*=size-])]:size-3.5"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
size: "md",
|
|
286
|
+
mode: "icon",
|
|
287
|
+
className: "w-8.5 h-8.5 p-0 [&_svg:not([class*=size-])]:size-4"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
size: "icon",
|
|
291
|
+
className: "w-8.5 h-8.5 p-0 [&_svg:not([class*=size-])]:size-4"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
size: "lg",
|
|
295
|
+
mode: "icon",
|
|
296
|
+
className: "w-10 h-10 p-0 [&_svg:not([class*=size-])]:size-4"
|
|
297
|
+
},
|
|
298
|
+
// Input mode
|
|
299
|
+
{
|
|
300
|
+
mode: "input",
|
|
301
|
+
placeholder: !0,
|
|
302
|
+
variant: "outline",
|
|
303
|
+
className: "font-normal text-muted-foreground"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
mode: "input",
|
|
307
|
+
variant: "outline",
|
|
308
|
+
size: "sm",
|
|
309
|
+
className: "gap-1.25"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
mode: "input",
|
|
313
|
+
variant: "outline",
|
|
314
|
+
size: "md",
|
|
315
|
+
className: "gap-1.5"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
mode: "input",
|
|
319
|
+
variant: "outline",
|
|
320
|
+
size: "lg",
|
|
321
|
+
className: "gap-1.5"
|
|
322
|
+
}
|
|
323
|
+
],
|
|
324
|
+
defaultVariants: {
|
|
325
|
+
variant: "primary",
|
|
326
|
+
mode: "default",
|
|
327
|
+
size: "md",
|
|
328
|
+
shape: "default",
|
|
329
|
+
appearance: "default"
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
);
|
|
333
|
+
function _({
|
|
334
|
+
className: e,
|
|
335
|
+
selected: a,
|
|
336
|
+
variant: t,
|
|
337
|
+
shape: i,
|
|
338
|
+
appearance: d,
|
|
339
|
+
mode: l,
|
|
340
|
+
size: c,
|
|
341
|
+
autoHeight: u,
|
|
342
|
+
underlined: m,
|
|
343
|
+
underline: g,
|
|
344
|
+
asChild: o = !1,
|
|
345
|
+
placeholder: v = !1,
|
|
346
|
+
...n
|
|
347
|
+
}) {
|
|
348
|
+
const p = o ? x.Slot : "button";
|
|
349
|
+
return /* @__PURE__ */ r(
|
|
350
|
+
p,
|
|
351
|
+
{
|
|
352
|
+
"data-slot": "button",
|
|
353
|
+
className: s(
|
|
354
|
+
b({
|
|
355
|
+
variant: t,
|
|
356
|
+
size: c,
|
|
357
|
+
shape: i,
|
|
358
|
+
appearance: d,
|
|
359
|
+
mode: l,
|
|
360
|
+
autoHeight: u,
|
|
361
|
+
placeholder: v,
|
|
362
|
+
underlined: m,
|
|
363
|
+
underline: g,
|
|
364
|
+
className: e
|
|
365
|
+
}),
|
|
366
|
+
o && n.disabled && "pointer-events-none opacity-50"
|
|
367
|
+
),
|
|
368
|
+
...a && { "data-state": "open" },
|
|
369
|
+
...n
|
|
370
|
+
}
|
|
371
|
+
);
|
|
372
|
+
}
|
|
373
|
+
function j({ icon: e = h, className: a, ...t }) {
|
|
374
|
+
return /* @__PURE__ */ r(e, { "data-slot": "button-arrow", className: s("ms-auto -me-1", a), ...t });
|
|
375
|
+
}
|
|
376
|
+
export {
|
|
377
|
+
_ as Button,
|
|
378
|
+
j as ButtonArrow,
|
|
379
|
+
b as buttonVariants
|
|
380
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { cn as t } from "../../../../lib/utils.js";
|
|
3
|
+
import { buttonVariants as r } from "../button/button.js";
|
|
4
|
+
import { ChevronLeft as s, ChevronRight as u } from "lucide-react";
|
|
5
|
+
import { DayPicker as g } from "react-day-picker";
|
|
6
|
+
function x({ className: o, classNames: a, showOutsideDays: n = !0, ...d }) {
|
|
7
|
+
return /* @__PURE__ */ e(
|
|
8
|
+
g,
|
|
9
|
+
{
|
|
10
|
+
showOutsideDays: n,
|
|
11
|
+
className: t("p-3", o),
|
|
12
|
+
classNames: {
|
|
13
|
+
months: "relative flex flex-col sm:flex-row gap-4",
|
|
14
|
+
month: "w-full",
|
|
15
|
+
month_caption: "relative mx-10 mb-1 flex h-8 items-center justify-center z-20",
|
|
16
|
+
caption_label: "text-sm font-medium",
|
|
17
|
+
nav: "absolute top-0 flex w-full justify-between z-10",
|
|
18
|
+
button_previous: t(
|
|
19
|
+
r({ variant: "ghost" }),
|
|
20
|
+
"size-8 text-muted-foreground/80 hover:text-foreground p-0"
|
|
21
|
+
),
|
|
22
|
+
button_next: t(
|
|
23
|
+
r({ variant: "ghost" }),
|
|
24
|
+
"size-8 text-muted-foreground/80 hover:text-foreground p-0"
|
|
25
|
+
),
|
|
26
|
+
weekday: "size-8 p-0 text-xs font-medium text-muted-foreground/80",
|
|
27
|
+
day_button: "cursor-pointer relative flex size-8 items-center justify-center whitespace-nowrap rounded-md p-0 text-foreground transition-200 group-[[data-selected]:not(.range-middle)]:[transition-property:color,background-color,border-radius,box-shadow] group-[[data-selected]:not(.range-middle)]:duration-150 group-data-disabled:pointer-events-none focus-visible:z-10 hover:not-in-data-selected:bg-accent group-data-selected:bg-primary hover:not-in-data-selected:text-foreground group-data-selected:text-primary-foreground group-data-disabled:text-foreground/30 group-data-disabled:line-through group-data-outside:text-foreground/30 group-data-selected:group-data-outside:text-primary-foreground outline-none focus-visible:ring-ring/50 focus-visible:ring-[3px] group-[.range-start:not(.range-end)]:rounded-e-none group-[.range-end:not(.range-start)]:rounded-s-none group-[.range-middle]:rounded-none group-[.range-middle]:group-data-selected:bg-accent group-[.range-middle]:group-data-selected:text-foreground",
|
|
28
|
+
day: "group size-8 px-0 py-px text-sm",
|
|
29
|
+
range_start: "range-start",
|
|
30
|
+
range_end: "range-end",
|
|
31
|
+
range_middle: "range-middle",
|
|
32
|
+
today: "*:after:pointer-events-none *:after:absolute *:after:bottom-1 *:after:start-1/2 *:after:z-10 *:after:size-[3px] *:after:-translate-x-1/2 rtl:*:after:translate-x-1/2 *:after:rounded-full *:after:bg-primary [&[data-selected]:not(.range-middle)>*]:after:bg-background [&[data-disabled]>*]:after:bg-foreground/30 *:after:transition-colors",
|
|
33
|
+
outside: "text-muted-foreground data-selected:bg-accent/50 data-selected:text-muted-foreground",
|
|
34
|
+
hidden: "invisible",
|
|
35
|
+
week_number: "size-8 p-0 text-xs font-medium text-muted-foreground/80",
|
|
36
|
+
...a
|
|
37
|
+
},
|
|
38
|
+
components: {
|
|
39
|
+
Chevron: (i) => i.orientation === "left" ? /* @__PURE__ */ e(s, { className: "h-4 w-4 rtl:rotate-180" }) : /* @__PURE__ */ e(u, { className: "h-4 w-4 rtl:rotate-180" })
|
|
40
|
+
},
|
|
41
|
+
...d
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
export {
|
|
46
|
+
x as Calendar
|
|
47
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { Checkbox as CheckboxPrimitive } from 'radix-ui';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
declare const checkboxVariants: (props?: ({
|
|
5
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
declare function Checkbox({ className, size, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root> & VariantProps<typeof checkboxVariants>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { Checkbox };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx as e, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import { cn as r } from "../../../../lib/utils.js";
|
|
3
|
+
import { cva as o } from "class-variance-authority";
|
|
4
|
+
import { Check as n, Minus as c } from "lucide-react";
|
|
5
|
+
import { Checkbox as t } from "radix-ui";
|
|
6
|
+
const m = o(
|
|
7
|
+
`
|
|
8
|
+
group peer bg-background shrink-0 rounded-md border border-input ring-offset-background focus-visible:outline-none
|
|
9
|
+
focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50
|
|
10
|
+
aria-invalid:border-destructive/60 aria-invalid:ring-destructive/10
|
|
11
|
+
[[data-invalid=true]_&]:border-destructive/60 [[data-invalid=true]_&]:ring-destructive/10,
|
|
12
|
+
data-[state=checked]:bg-primary data-[state=checked]:border-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:bg-primary data-[state=indeterminate]:border-primary data-[state=indeterminate]:text-primary-foreground
|
|
13
|
+
`,
|
|
14
|
+
{
|
|
15
|
+
variants: {
|
|
16
|
+
size: {
|
|
17
|
+
sm: "size-4.5 [&_svg]:size-3",
|
|
18
|
+
md: "size-5 [&_svg]:size-3.5",
|
|
19
|
+
lg: "size-5.5 [&_svg]:size-4"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
defaultVariants: {
|
|
23
|
+
size: "md"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
function p({
|
|
28
|
+
className: i,
|
|
29
|
+
size: a,
|
|
30
|
+
...s
|
|
31
|
+
}) {
|
|
32
|
+
return /* @__PURE__ */ e(t.Root, { "data-slot": "checkbox", className: r(m({ size: a }), i), ...s, children: /* @__PURE__ */ d(t.Indicator, { className: r("flex items-center justify-center text-current"), children: [
|
|
33
|
+
/* @__PURE__ */ e(n, { className: "group-data-[state=indeterminate]:hidden" }),
|
|
34
|
+
/* @__PURE__ */ e(c, { className: "hidden group-data-[state=indeterminate]:block" })
|
|
35
|
+
] }) });
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
p as Checkbox
|
|
39
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { DialogProps } from '@radix-ui/react-dialog';
|
|
3
|
+
import { Command as CommandPrimitive } from 'cmdk';
|
|
4
|
+
import { LucideIcon } from 'lucide-react';
|
|
5
|
+
declare function Command({ className, ...props }: React.ComponentPropsWithoutRef<typeof CommandPrimitive>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
type CommandDialogProps = DialogProps & {
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const CommandDialog: ({ children, className, ...props }: CommandDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function CommandInput({ className, ...props }: React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function CommandList({ className, ...props }: React.ComponentPropsWithoutRef<typeof CommandPrimitive.List>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function CommandEmpty({ ...props }: React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function CommandGroup({ className, ...props }: React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function CommandSeparator({ className, ...props }: React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function CommandItem({ className, ...props }: React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare const CommandShortcut: ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
interface ButtonArrowProps extends React.SVGProps<SVGSVGElement> {
|
|
18
|
+
icon?: LucideIcon;
|
|
19
|
+
}
|
|
20
|
+
declare function CommandCheck({ icon: Icon, className, ...props }: ButtonArrowProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export { Command, CommandCheck, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, };
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { jsx as o, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { cn as d } from "../../../../lib/utils.js";
|
|
3
|
+
import { Dialog as n, DialogContent as s, DialogTitle as c } from "../../feedback/dialog/dialog.js";
|
|
4
|
+
import { Command as r } from "cmdk";
|
|
5
|
+
import { Check as i, Search as u } from "lucide-react";
|
|
6
|
+
function p({ className: e, ...t }) {
|
|
7
|
+
return /* @__PURE__ */ o(
|
|
8
|
+
r,
|
|
9
|
+
{
|
|
10
|
+
className: d(
|
|
11
|
+
"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
|
|
12
|
+
e
|
|
13
|
+
),
|
|
14
|
+
...t
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
const k = ({ children: e, className: t, ...a }) => /* @__PURE__ */ o(n, { ...a, children: /* @__PURE__ */ m(s, { className: d("overflow-hidden p-0 shadow-lg", t), children: [
|
|
19
|
+
/* @__PURE__ */ o(c, { className: "hidden" }),
|
|
20
|
+
/* @__PURE__ */ o(p, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: e })
|
|
21
|
+
] }) });
|
|
22
|
+
function _({ className: e, ...t }) {
|
|
23
|
+
return /* @__PURE__ */ m("div", { className: "flex items-center border-border border-b px-3", "cmdk-input-wrapper": "", "data-slot": "command-input", children: [
|
|
24
|
+
/* @__PURE__ */ o(u, { className: "me-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
25
|
+
/* @__PURE__ */ o(
|
|
26
|
+
r.Input,
|
|
27
|
+
{
|
|
28
|
+
className: d(
|
|
29
|
+
"flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-hidden text-foreground placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
30
|
+
e
|
|
31
|
+
),
|
|
32
|
+
...t
|
|
33
|
+
}
|
|
34
|
+
)
|
|
35
|
+
] });
|
|
36
|
+
}
|
|
37
|
+
function v({ className: e, ...t }) {
|
|
38
|
+
return /* @__PURE__ */ o(
|
|
39
|
+
r.List,
|
|
40
|
+
{
|
|
41
|
+
"data-slot": "command-list",
|
|
42
|
+
className: d("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
|
|
43
|
+
...t
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
function w({ ...e }) {
|
|
48
|
+
return /* @__PURE__ */ o(r.Empty, { "data-slot": "command-empty", className: "py-6 text-center text-sm", ...e });
|
|
49
|
+
}
|
|
50
|
+
function C({ className: e, ...t }) {
|
|
51
|
+
return /* @__PURE__ */ o(
|
|
52
|
+
r.Group,
|
|
53
|
+
{
|
|
54
|
+
"data-slot": "command-group",
|
|
55
|
+
className: d(
|
|
56
|
+
"overflow-hidden p-1.5 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
|
|
57
|
+
e
|
|
58
|
+
),
|
|
59
|
+
...t
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
function N({ className: e, ...t }) {
|
|
64
|
+
return /* @__PURE__ */ o(
|
|
65
|
+
r.Separator,
|
|
66
|
+
{
|
|
67
|
+
"data-slot": "command-separator",
|
|
68
|
+
className: d("-mx-1.5 h-px bg-border", e),
|
|
69
|
+
...t
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
function b({ className: e, ...t }) {
|
|
74
|
+
return /* @__PURE__ */ o(
|
|
75
|
+
r.Item,
|
|
76
|
+
{
|
|
77
|
+
"data-slot": "command-item",
|
|
78
|
+
className: d(
|
|
79
|
+
"relative flex text-foreground cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
80
|
+
e
|
|
81
|
+
),
|
|
82
|
+
...t
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
const y = ({ className: e, ...t }) => /* @__PURE__ */ o(
|
|
87
|
+
"span",
|
|
88
|
+
{
|
|
89
|
+
"data-slot": "command-shortcut",
|
|
90
|
+
className: d("ms-auto text-xs tracking-widest text-muted-foreground", e),
|
|
91
|
+
...t
|
|
92
|
+
}
|
|
93
|
+
);
|
|
94
|
+
function D({ icon: e = i, className: t, ...a }) {
|
|
95
|
+
return /* @__PURE__ */ o(
|
|
96
|
+
e,
|
|
97
|
+
{
|
|
98
|
+
"data-slot": "command-check",
|
|
99
|
+
"data-check": "true",
|
|
100
|
+
className: d("size-4 ms-auto text-primary", t),
|
|
101
|
+
...a
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
export {
|
|
106
|
+
p as Command,
|
|
107
|
+
D as CommandCheck,
|
|
108
|
+
k as CommandDialog,
|
|
109
|
+
w as CommandEmpty,
|
|
110
|
+
C as CommandGroup,
|
|
111
|
+
_ as CommandInput,
|
|
112
|
+
b as CommandItem,
|
|
113
|
+
v as CommandList,
|
|
114
|
+
N as CommandSeparator,
|
|
115
|
+
y as CommandShortcut
|
|
116
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { inputVariants } from '../input/input';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import { DateFieldProps, DateInputProps as DateInputPropsRa, DateSegmentProps, DateValue as DateValueRa, TimeFieldProps, TimeValue as TimeValueRa } from 'react-aria-components';
|
|
4
|
+
declare function DateField<T extends DateValueRa>({ className, children, ...props }: DateFieldProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function TimeField<T extends TimeValueRa>({ className, children, ...props }: TimeFieldProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function DateSegment({ className, ...props }: DateSegmentProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare const dateInputStyles = "\n relative inline-flex items-center overflow-hidden whitespace-nowrap\n data-focus-within:ring-ring/30 data-focus-within:border-ring data-focus-within:outline-none data-focus-within:ring-[3px] \n data-focus-within:has-aria-invalid:ring-destructive/20 data-focus-within:has-aria-invalid:border-destructive\n";
|
|
8
|
+
interface DateInputProps extends DateInputPropsRa, VariantProps<typeof inputVariants> {
|
|
9
|
+
className?: string;
|
|
10
|
+
variant?: VariantProps<typeof inputVariants>['variant'];
|
|
11
|
+
}
|
|
12
|
+
declare function DateInput({ className, variant, ...props }: Omit<DateInputProps, 'children'>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export { DateField, DateInput, DateSegment, TimeField, dateInputStyles };
|
|
14
|
+
export type { DateInputProps };
|