@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,200 @@
|
|
|
1
|
+
import { jsx as t, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { cn as a } from "../../../../lib/utils.js";
|
|
3
|
+
import { Check as i, Circle as u, ChevronRight as c } from "lucide-react";
|
|
4
|
+
import { DropdownMenu as n } from "radix-ui";
|
|
5
|
+
function g({ ...e }) {
|
|
6
|
+
return /* @__PURE__ */ t(n.Root, { "data-slot": "dropdown-menu", ...e });
|
|
7
|
+
}
|
|
8
|
+
function b({ ...e }) {
|
|
9
|
+
return /* @__PURE__ */ t(n.Portal, { "data-slot": "dropdown-menu-portal", ...e });
|
|
10
|
+
}
|
|
11
|
+
function w({ ...e }) {
|
|
12
|
+
return /* @__PURE__ */ t(n.Trigger, { className: "select-none", "data-slot": "dropdown-menu-trigger", ...e });
|
|
13
|
+
}
|
|
14
|
+
function x({
|
|
15
|
+
className: e,
|
|
16
|
+
inset: o,
|
|
17
|
+
children: r,
|
|
18
|
+
...d
|
|
19
|
+
}) {
|
|
20
|
+
return /* @__PURE__ */ s(
|
|
21
|
+
n.SubTrigger,
|
|
22
|
+
{
|
|
23
|
+
"data-slot": "dropdown-menu-sub-trigger",
|
|
24
|
+
className: a(
|
|
25
|
+
"flex cursor-default gap-2 select-none items-center rounded-md px-2 py-1.5 text-sm outline-hidden",
|
|
26
|
+
"focus:bg-accent focus:text-foreground",
|
|
27
|
+
"data-[state=open]:bg-accent data-[state=open]:text-foreground",
|
|
28
|
+
"data-[here=true]:bg-accent data-[here=true]:text-foreground",
|
|
29
|
+
"[&>svg]:pointer-events-none [&_svg:not([role=img]):not([class*=text-])]:opacity-60 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
30
|
+
o && "ps-8",
|
|
31
|
+
e
|
|
32
|
+
),
|
|
33
|
+
...d,
|
|
34
|
+
children: [
|
|
35
|
+
r,
|
|
36
|
+
/* @__PURE__ */ t(c, { "data-slot": "dropdown-menu-sub-trigger-indicator", className: "ms-auto size-3.5! rtl:rotate-180" })
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
function h({
|
|
42
|
+
className: e,
|
|
43
|
+
...o
|
|
44
|
+
}) {
|
|
45
|
+
return /* @__PURE__ */ t(
|
|
46
|
+
n.SubContent,
|
|
47
|
+
{
|
|
48
|
+
"data-slot": "dropdown-menu-sub-content",
|
|
49
|
+
className: a(
|
|
50
|
+
"space-y-0.5 z-50 min-w-[8rem] overflow-hidden shadow-md shadow-black/5 rounded-md border border-border bg-popover text-popover-foreground p-2 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",
|
|
51
|
+
e
|
|
52
|
+
),
|
|
53
|
+
...o
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
function v({
|
|
58
|
+
className: e,
|
|
59
|
+
sideOffset: o = 4,
|
|
60
|
+
...r
|
|
61
|
+
}) {
|
|
62
|
+
return /* @__PURE__ */ t(n.Portal, { children: /* @__PURE__ */ t(
|
|
63
|
+
n.Content,
|
|
64
|
+
{
|
|
65
|
+
"data-slot": "dropdown-menu-content",
|
|
66
|
+
sideOffset: o,
|
|
67
|
+
className: a(
|
|
68
|
+
"space-y-0.5 z-50 min-w-[8rem] overflow-hidden rounded-md border border-border bg-popover p-2 text-popover-foreground shadow-md shadow-black/5 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",
|
|
69
|
+
e
|
|
70
|
+
),
|
|
71
|
+
...r
|
|
72
|
+
}
|
|
73
|
+
) });
|
|
74
|
+
}
|
|
75
|
+
function y({ ...e }) {
|
|
76
|
+
return /* @__PURE__ */ t(n.Group, { "data-slot": "dropdown-menu-group", ...e });
|
|
77
|
+
}
|
|
78
|
+
function D({
|
|
79
|
+
className: e,
|
|
80
|
+
inset: o,
|
|
81
|
+
variant: r,
|
|
82
|
+
...d
|
|
83
|
+
}) {
|
|
84
|
+
return /* @__PURE__ */ t(
|
|
85
|
+
n.Item,
|
|
86
|
+
{
|
|
87
|
+
"data-slot": "dropdown-menu-item",
|
|
88
|
+
className: a(
|
|
89
|
+
"text-foreground relative flex cursor-default select-none items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-hidden transition-colors data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([role=img]):not([class*=text-])]:opacity-60 [&_svg:not([class*=size-])]:size-4 [&_svg]:shrink-0",
|
|
90
|
+
"focus:bg-accent focus:text-foreground",
|
|
91
|
+
"data-[active=true]:bg-accent data-[active=true]:text-accent-foreground",
|
|
92
|
+
o && "ps-8",
|
|
93
|
+
r === "destructive" && "text-destructive hover:text-destructive focus:text-destructive hover:bg-destructive/5 focus:bg-destructive/5 data-[active=true]:bg-destructive/5",
|
|
94
|
+
e
|
|
95
|
+
),
|
|
96
|
+
...d
|
|
97
|
+
}
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
function M({
|
|
101
|
+
className: e,
|
|
102
|
+
children: o,
|
|
103
|
+
checked: r,
|
|
104
|
+
...d
|
|
105
|
+
}) {
|
|
106
|
+
return /* @__PURE__ */ s(
|
|
107
|
+
n.CheckboxItem,
|
|
108
|
+
{
|
|
109
|
+
"data-slot": "dropdown-menu-checkbox-item",
|
|
110
|
+
className: a(
|
|
111
|
+
"relative flex cursor-default select-none items-center rounded-md py-1.5 ps-8 pe-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
112
|
+
e
|
|
113
|
+
),
|
|
114
|
+
checked: r,
|
|
115
|
+
...d,
|
|
116
|
+
children: [
|
|
117
|
+
/* @__PURE__ */ t("span", { className: "absolute start-2 flex h-3.5 w-3.5 items-center text-muted-foreground justify-center", children: /* @__PURE__ */ t(n.ItemIndicator, { children: /* @__PURE__ */ t(i, { className: "h-4 w-4 text-primary" }) }) }),
|
|
118
|
+
o
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
function N({
|
|
124
|
+
className: e,
|
|
125
|
+
children: o,
|
|
126
|
+
...r
|
|
127
|
+
}) {
|
|
128
|
+
return /* @__PURE__ */ s(
|
|
129
|
+
n.RadioItem,
|
|
130
|
+
{
|
|
131
|
+
"data-slot": "dropdown-menu-radio-item",
|
|
132
|
+
className: a(
|
|
133
|
+
"relative flex cursor-default select-none items-center rounded-md py-1.5 ps-6 pe-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
134
|
+
e
|
|
135
|
+
),
|
|
136
|
+
...r,
|
|
137
|
+
children: [
|
|
138
|
+
/* @__PURE__ */ t("span", { className: "absolute start-1.5 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ t(n.ItemIndicator, { children: /* @__PURE__ */ t(u, { className: "h-1.5 w-1.5 fill-primary stroke-primary" }) }) }),
|
|
139
|
+
o
|
|
140
|
+
]
|
|
141
|
+
}
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
function k({
|
|
145
|
+
className: e,
|
|
146
|
+
inset: o,
|
|
147
|
+
...r
|
|
148
|
+
}) {
|
|
149
|
+
return /* @__PURE__ */ t(
|
|
150
|
+
n.Label,
|
|
151
|
+
{
|
|
152
|
+
"data-slot": "dropdown-menu-label",
|
|
153
|
+
className: a("px-2 py-1.5 text-xs text-muted-foreground font-medium", o && "ps-8", e),
|
|
154
|
+
...r
|
|
155
|
+
}
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
function z({ ...e }) {
|
|
159
|
+
return /* @__PURE__ */ t(n.RadioGroup, { "data-slot": "dropdown-menu-radio-group", ...e });
|
|
160
|
+
}
|
|
161
|
+
function I({ className: e, ...o }) {
|
|
162
|
+
return /* @__PURE__ */ t(
|
|
163
|
+
n.Separator,
|
|
164
|
+
{
|
|
165
|
+
"data-slot": "dropdown-menu-separator",
|
|
166
|
+
className: a("-mx-2 my-1.5 h-px bg-muted", e),
|
|
167
|
+
...o
|
|
168
|
+
}
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
function C({ className: e, ...o }) {
|
|
172
|
+
return /* @__PURE__ */ t(
|
|
173
|
+
"span",
|
|
174
|
+
{
|
|
175
|
+
"data-slot": "dropdown-menu-shortcut",
|
|
176
|
+
className: a("ms-auto text-xs tracking-widest opacity-60", e),
|
|
177
|
+
...o
|
|
178
|
+
}
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
function S({ ...e }) {
|
|
182
|
+
return /* @__PURE__ */ t(n.Sub, { "data-slot": "dropdown-menu-sub", ...e });
|
|
183
|
+
}
|
|
184
|
+
export {
|
|
185
|
+
g as DropdownMenu,
|
|
186
|
+
M as DropdownMenuCheckboxItem,
|
|
187
|
+
v as DropdownMenuContent,
|
|
188
|
+
y as DropdownMenuGroup,
|
|
189
|
+
D as DropdownMenuItem,
|
|
190
|
+
k as DropdownMenuLabel,
|
|
191
|
+
b as DropdownMenuPortal,
|
|
192
|
+
z as DropdownMenuRadioGroup,
|
|
193
|
+
N as DropdownMenuRadioItem,
|
|
194
|
+
I as DropdownMenuSeparator,
|
|
195
|
+
C as DropdownMenuShortcut,
|
|
196
|
+
S as DropdownMenuSub,
|
|
197
|
+
h as DropdownMenuSubContent,
|
|
198
|
+
x as DropdownMenuSubTrigger,
|
|
199
|
+
w as DropdownMenuTrigger
|
|
200
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { HoverCard as HoverCardPrimitive } from 'radix-ui';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare function HoverCard({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function HoverCardTrigger({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function HoverCardContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof HoverCardPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export { HoverCard, HoverCardContent, HoverCardTrigger };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { cn as n } from "../../../../lib/utils.js";
|
|
3
|
+
import { HoverCard as e } from "radix-ui";
|
|
4
|
+
function l({ ...t }) {
|
|
5
|
+
return /* @__PURE__ */ o(e.Root, { "data-slot": "hover-card", ...t });
|
|
6
|
+
}
|
|
7
|
+
function c({ ...t }) {
|
|
8
|
+
return /* @__PURE__ */ o(e.Trigger, { "data-slot": "hover-card-trigger", ...t });
|
|
9
|
+
}
|
|
10
|
+
function f({
|
|
11
|
+
className: t,
|
|
12
|
+
align: r = "center",
|
|
13
|
+
sideOffset: a = 4,
|
|
14
|
+
...d
|
|
15
|
+
}) {
|
|
16
|
+
return /* @__PURE__ */ o(e.Portal, { children: /* @__PURE__ */ o(
|
|
17
|
+
e.Content,
|
|
18
|
+
{
|
|
19
|
+
"data-slot": "hover-card-content",
|
|
20
|
+
align: r,
|
|
21
|
+
sideOffset: a,
|
|
22
|
+
className: n(
|
|
23
|
+
"z-50 w-64 rounded-md border border-border bg-popover p-4 text-popover-foreground shadow-md shadow-black/5 outline-hidden 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",
|
|
24
|
+
t
|
|
25
|
+
),
|
|
26
|
+
...d
|
|
27
|
+
}
|
|
28
|
+
) });
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
l as HoverCard,
|
|
32
|
+
f as HoverCardContent,
|
|
33
|
+
c as HoverCardTrigger
|
|
34
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Popover as PopoverPrimitive } from 'radix-ui';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export { Popover, PopoverContent, PopoverTrigger };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { cn as n } from "../../../../lib/utils.js";
|
|
3
|
+
import { Popover as e } from "radix-ui";
|
|
4
|
+
function m({ ...o }) {
|
|
5
|
+
return /* @__PURE__ */ t(e.Root, { "data-slot": "popover", ...o });
|
|
6
|
+
}
|
|
7
|
+
function l({ ...o }) {
|
|
8
|
+
return /* @__PURE__ */ t(e.Trigger, { "data-slot": "popover-trigger", ...o });
|
|
9
|
+
}
|
|
10
|
+
function f({
|
|
11
|
+
className: o,
|
|
12
|
+
align: r = "center",
|
|
13
|
+
sideOffset: a = 4,
|
|
14
|
+
...d
|
|
15
|
+
}) {
|
|
16
|
+
return /* @__PURE__ */ t(e.Portal, { children: /* @__PURE__ */ t(
|
|
17
|
+
e.Content,
|
|
18
|
+
{
|
|
19
|
+
"data-slot": "popover-content",
|
|
20
|
+
align: r,
|
|
21
|
+
sideOffset: a,
|
|
22
|
+
className: n(
|
|
23
|
+
"z-50 w-72 rounded-md border border-border bg-popover p-4 text-popover-foreground shadow-md shadow-black/5 outline-hidden 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",
|
|
24
|
+
o
|
|
25
|
+
),
|
|
26
|
+
...d
|
|
27
|
+
}
|
|
28
|
+
) });
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
m as Popover,
|
|
32
|
+
f as PopoverContent,
|
|
33
|
+
l as PopoverTrigger
|
|
34
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { Dialog as SheetPrimitive } from 'radix-ui';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
declare function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function SheetTrigger({ ...props }: React.ComponentProps<typeof SheetPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function SheetClose({ ...props }: React.ComponentProps<typeof SheetPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function SheetPortal({ ...props }: React.ComponentProps<typeof SheetPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function SheetOverlay({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare const sheetVariants: (props?: ({
|
|
10
|
+
side?: "left" | "right" | "bottom" | "top" | null | undefined;
|
|
11
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
12
|
+
interface SheetContentProps extends React.ComponentProps<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
13
|
+
overlay?: boolean;
|
|
14
|
+
close?: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare function SheetContent({ side, overlay, close, className, children, ...props }: React.ComponentProps<typeof SheetPrimitive.Content> & SheetContentProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare function SheetHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function SheetBody({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare function SheetFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export { Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, };
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { jsx as a, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import { cn as s } from "../../../../lib/utils.js";
|
|
3
|
+
import { cva as c } from "class-variance-authority";
|
|
4
|
+
import { X as f } from "lucide-react";
|
|
5
|
+
import { Dialog as o } from "radix-ui";
|
|
6
|
+
function v({ ...t }) {
|
|
7
|
+
return /* @__PURE__ */ a(o.Root, { "data-slot": "sheet", ...t });
|
|
8
|
+
}
|
|
9
|
+
function S({ ...t }) {
|
|
10
|
+
return /* @__PURE__ */ a(o.Trigger, { "data-slot": "sheet-trigger", ...t });
|
|
11
|
+
}
|
|
12
|
+
function N({ ...t }) {
|
|
13
|
+
return /* @__PURE__ */ a(o.Close, { "data-slot": "sheet-close", ...t });
|
|
14
|
+
}
|
|
15
|
+
function u({ ...t }) {
|
|
16
|
+
return /* @__PURE__ */ a(o.Portal, { "data-slot": "sheet-portal", ...t });
|
|
17
|
+
}
|
|
18
|
+
function m({ className: t, ...e }) {
|
|
19
|
+
return /* @__PURE__ */ a(
|
|
20
|
+
o.Overlay,
|
|
21
|
+
{
|
|
22
|
+
"data-slot": "sheet-overlay",
|
|
23
|
+
className: s(
|
|
24
|
+
"fixed inset-0 z-50 bg-black/30 [backdrop-filter:blur(4px)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
25
|
+
t
|
|
26
|
+
),
|
|
27
|
+
...e
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
const h = c(
|
|
32
|
+
"flex flex-col items-strech fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-400",
|
|
33
|
+
{
|
|
34
|
+
variants: {
|
|
35
|
+
side: {
|
|
36
|
+
top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
|
|
37
|
+
bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
|
|
38
|
+
left: "inset-y-0 start-0 h-full w-3/4 border-e data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm rtl:data-[state=closed]:slide-out-to-right rtl:data-[state=open]:slide-in-from-right",
|
|
39
|
+
right: "inset-y-0 end-0 h-full w-3/4 border-s data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm rtl:data-[state=closed]:slide-out-to-left rtl:data-[state=open]:slide-in-from-left"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
defaultVariants: {
|
|
43
|
+
side: "right"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
function w({
|
|
48
|
+
side: t = "right",
|
|
49
|
+
overlay: e = !0,
|
|
50
|
+
close: n = !0,
|
|
51
|
+
className: i,
|
|
52
|
+
children: d,
|
|
53
|
+
...l
|
|
54
|
+
}) {
|
|
55
|
+
return /* @__PURE__ */ r(u, { children: [
|
|
56
|
+
e && /* @__PURE__ */ a(m, {}),
|
|
57
|
+
/* @__PURE__ */ r(o.Content, { className: s(h({ side: t }), i), ...l, children: [
|
|
58
|
+
d,
|
|
59
|
+
n && /* @__PURE__ */ r(
|
|
60
|
+
o.Close,
|
|
61
|
+
{
|
|
62
|
+
"data-slot": "sheet-close",
|
|
63
|
+
className: "cursor-pointer absolute end-5 top-4 rounded-sm opacity-60 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",
|
|
64
|
+
children: [
|
|
65
|
+
/* @__PURE__ */ a(f, { className: "h-4 w-4" }),
|
|
66
|
+
/* @__PURE__ */ a("span", { className: "sr-only", children: "Close" })
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
)
|
|
70
|
+
] })
|
|
71
|
+
] });
|
|
72
|
+
}
|
|
73
|
+
function C({ className: t, ...e }) {
|
|
74
|
+
return /* @__PURE__ */ a(
|
|
75
|
+
"div",
|
|
76
|
+
{
|
|
77
|
+
"data-slot": "sheet-header",
|
|
78
|
+
className: s("flex flex-col space-y-1 text-center sm:text-start", t),
|
|
79
|
+
...e
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
function k({ className: t, ...e }) {
|
|
84
|
+
return /* @__PURE__ */ a("div", { "data-slot": "sheet-body", className: s("py-2.5", t), ...e });
|
|
85
|
+
}
|
|
86
|
+
function T({ className: t, ...e }) {
|
|
87
|
+
return /* @__PURE__ */ a(
|
|
88
|
+
"div",
|
|
89
|
+
{
|
|
90
|
+
"data-slot": "sheet-footer",
|
|
91
|
+
className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", t),
|
|
92
|
+
...e
|
|
93
|
+
}
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
function j({ className: t, ...e }) {
|
|
97
|
+
return /* @__PURE__ */ a(
|
|
98
|
+
o.Title,
|
|
99
|
+
{
|
|
100
|
+
"data-slot": "sheet-title",
|
|
101
|
+
className: s("text-base font-semibold text-foreground", t),
|
|
102
|
+
...e
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
function D({ className: t, ...e }) {
|
|
107
|
+
return /* @__PURE__ */ a(
|
|
108
|
+
o.Description,
|
|
109
|
+
{
|
|
110
|
+
"data-slot": "sheet-description",
|
|
111
|
+
className: s("text-sm text-muted-foreground", t),
|
|
112
|
+
...e
|
|
113
|
+
}
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
export {
|
|
117
|
+
v as Sheet,
|
|
118
|
+
k as SheetBody,
|
|
119
|
+
N as SheetClose,
|
|
120
|
+
w as SheetContent,
|
|
121
|
+
D as SheetDescription,
|
|
122
|
+
T as SheetFooter,
|
|
123
|
+
C as SheetHeader,
|
|
124
|
+
m as SheetOverlay,
|
|
125
|
+
u as SheetPortal,
|
|
126
|
+
j as SheetTitle,
|
|
127
|
+
S as SheetTrigger
|
|
128
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Toaster as r } from "sonner";
|
|
3
|
+
const s = ({ ...t }) => /* @__PURE__ */ o(
|
|
4
|
+
r,
|
|
5
|
+
{
|
|
6
|
+
theme: "light",
|
|
7
|
+
className: "group toaster [&_[data-type=success]>[data-icon]]:text-success [&_[data-type=success]_[data-title]]:text-success [&_[data-type=info]_[data-title]]:text-info [&_[data-type=error]>[data-icon]]:text-destructive [&_[data-type=error]_[data-title]]:text-destructive",
|
|
8
|
+
toastOptions: {
|
|
9
|
+
classNames: {
|
|
10
|
+
toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground! group-[.toaster]:border-border group-[.toaster]:shadow-lg has-[[role=alert]]:border-0! has-[[role=alert]]:shadow-none! has-[[role=alert]]:bg-transparent!",
|
|
11
|
+
description: "group-[.toast]:text-muted-foreground",
|
|
12
|
+
actionButton: "group-[.toast]:rounded-md! group-[.toast]:bg-primary group-[.toast]:text-primary-foreground!",
|
|
13
|
+
cancelButton: "group-[.toast]:rounded-md! group-[.toast]:bg-secondary group-[.toast]:text-secondary-foreground!"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
...t
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
export {
|
|
20
|
+
s as Toaster
|
|
21
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type TitleHelpProps = React.ComponentProps<'span'> & {
|
|
3
|
+
help?: React.ReactNode;
|
|
4
|
+
contentClassName?: string;
|
|
5
|
+
triggerClassName?: string;
|
|
6
|
+
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
7
|
+
iconLabel?: string;
|
|
8
|
+
};
|
|
9
|
+
declare function TitleHelp({ children, help, className, contentClassName, triggerClassName, side, iconLabel, ...props }: TitleHelpProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { TitleHelp };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import { cn as t } from "../../../../lib/utils.js";
|
|
3
|
+
import { CircleHelp as d } from "lucide-react";
|
|
4
|
+
import { Tooltip as p, TooltipTrigger as u, TooltipContent as f } from "../tooltip/tooltip.js";
|
|
5
|
+
function v({
|
|
6
|
+
children: i,
|
|
7
|
+
help: l,
|
|
8
|
+
className: r,
|
|
9
|
+
contentClassName: a,
|
|
10
|
+
triggerClassName: s,
|
|
11
|
+
side: c = "top",
|
|
12
|
+
iconLabel: m = "查看说明",
|
|
13
|
+
...n
|
|
14
|
+
}) {
|
|
15
|
+
return l ? /* @__PURE__ */ o("span", { "data-slot": "title-help", className: t("inline-flex min-w-0 items-center gap-1.5", r), ...n, children: [
|
|
16
|
+
/* @__PURE__ */ e("span", { "data-slot": "title-help-label", className: "min-w-0", children: i }),
|
|
17
|
+
/* @__PURE__ */ o(p, { children: [
|
|
18
|
+
/* @__PURE__ */ e(u, { asChild: !0, children: /* @__PURE__ */ e(
|
|
19
|
+
"button",
|
|
20
|
+
{
|
|
21
|
+
type: "button",
|
|
22
|
+
"aria-label": m,
|
|
23
|
+
className: t(
|
|
24
|
+
"inline-flex size-5 shrink-0 items-center justify-center rounded-full text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/30",
|
|
25
|
+
s
|
|
26
|
+
),
|
|
27
|
+
children: /* @__PURE__ */ e(d, { className: "size-3.5", "aria-hidden": "true" })
|
|
28
|
+
}
|
|
29
|
+
) }),
|
|
30
|
+
/* @__PURE__ */ e(
|
|
31
|
+
f,
|
|
32
|
+
{
|
|
33
|
+
side: c,
|
|
34
|
+
variant: "light",
|
|
35
|
+
className: t("max-w-72 text-pretty leading-relaxed", a),
|
|
36
|
+
children: l
|
|
37
|
+
}
|
|
38
|
+
)
|
|
39
|
+
] })
|
|
40
|
+
] }) : /* @__PURE__ */ e("span", { "data-slot": "title-help", className: r, ...n, children: i });
|
|
41
|
+
}
|
|
42
|
+
export {
|
|
43
|
+
v as TitleHelp
|
|
44
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { Tooltip as TooltipPrimitive } from 'radix-ui';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare const tooltipVariants: (props?: ({
|
|
8
|
+
variant?: "light" | "inverse" | null | undefined;
|
|
9
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
|
+
declare function TooltipContent({ className, sideOffset, variant, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content> & VariantProps<typeof tooltipVariants>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { cn as d } from "../../../../lib/utils.js";
|
|
3
|
+
import { cva as n } from "class-variance-authority";
|
|
4
|
+
import { Tooltip as i } from "radix-ui";
|
|
5
|
+
function l({ delayDuration: t = 0, ...r }) {
|
|
6
|
+
return /* @__PURE__ */ o(i.Provider, { "data-slot": "tooltip-provider", delayDuration: t, ...r });
|
|
7
|
+
}
|
|
8
|
+
function u({ ...t }) {
|
|
9
|
+
return /* @__PURE__ */ o(l, { children: /* @__PURE__ */ o(i.Root, { "data-slot": "tooltip", ...t }) });
|
|
10
|
+
}
|
|
11
|
+
function g({ ...t }) {
|
|
12
|
+
return /* @__PURE__ */ o(i.Trigger, { "data-slot": "tooltip-trigger", ...t });
|
|
13
|
+
}
|
|
14
|
+
const s = n(
|
|
15
|
+
"z-50 overflow-hidden rounded-md px-3 py-1.5 text-xs animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",
|
|
16
|
+
{
|
|
17
|
+
variants: {
|
|
18
|
+
variant: {
|
|
19
|
+
light: "border border-border bg-background text-foreground shadow-md shadow-black/5",
|
|
20
|
+
inverse: "bg-zinc-950 text-white shadow-md shadow-black/5"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: {
|
|
24
|
+
variant: "inverse"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
function h({
|
|
29
|
+
className: t,
|
|
30
|
+
sideOffset: r = 4,
|
|
31
|
+
variant: a,
|
|
32
|
+
...e
|
|
33
|
+
}) {
|
|
34
|
+
return /* @__PURE__ */ o(i.Portal, { children: /* @__PURE__ */ o(
|
|
35
|
+
i.Content,
|
|
36
|
+
{
|
|
37
|
+
"data-slot": "tooltip-content",
|
|
38
|
+
sideOffset: r,
|
|
39
|
+
className: d(s({ variant: a }), t),
|
|
40
|
+
...e
|
|
41
|
+
}
|
|
42
|
+
) });
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
u as Tooltip,
|
|
46
|
+
h as TooltipContent,
|
|
47
|
+
l as TooltipProvider,
|
|
48
|
+
g as TooltipTrigger
|
|
49
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { LucideIcon } from 'lucide-react';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
declare const buttonVariants: (props?: ({
|
|
5
|
+
variant?: "dashed" | "primary" | "mono" | "destructive" | "secondary" | "outline" | "ghost" | "dim" | "foreground" | "inverse" | null | undefined;
|
|
6
|
+
appearance?: "default" | "ghost" | null | undefined;
|
|
7
|
+
underline?: "dashed" | "solid" | null | undefined;
|
|
8
|
+
underlined?: "dashed" | "solid" | null | undefined;
|
|
9
|
+
size?: "icon" | "sm" | "md" | "lg" | null | undefined;
|
|
10
|
+
autoHeight?: boolean | null | undefined;
|
|
11
|
+
shape?: "default" | "circle" | null | undefined;
|
|
12
|
+
mode?: "default" | "link" | "icon" | "input" | null | undefined;
|
|
13
|
+
placeholder?: boolean | null | undefined;
|
|
14
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
15
|
+
declare function Button({ className, selected, variant, shape, appearance, mode, size, autoHeight, underlined, underline, asChild, placeholder, ...props }: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
16
|
+
selected?: boolean;
|
|
17
|
+
asChild?: boolean;
|
|
18
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
interface ButtonArrowProps extends React.SVGProps<SVGSVGElement> {
|
|
20
|
+
icon?: LucideIcon;
|
|
21
|
+
}
|
|
22
|
+
declare function ButtonArrow({ icon: Icon, className, ...props }: ButtonArrowProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export { Button, ButtonArrow, buttonVariants };
|