@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.
Files changed (231) hide show
  1. package/README.md +128 -0
  2. package/dist/app/background-decor.d.ts +1 -0
  3. package/dist/app/background-decor.js +38 -0
  4. package/dist/app/container.d.ts +12 -0
  5. package/dist/app/container.js +29 -0
  6. package/dist/app/demo1-shell.d.ts +43 -0
  7. package/dist/app/demo1-shell.js +616 -0
  8. package/dist/app/tweak-panel.d.ts +22 -0
  9. package/dist/app/tweak-panel.js +182 -0
  10. package/dist/components/apexcharts.css +101 -0
  11. package/dist/components/scrollable.css +120 -0
  12. package/dist/config/settings.config.d.ts +2 -0
  13. package/dist/config/settings.config.js +33 -0
  14. package/dist/config/types.d.ts +50 -0
  15. package/dist/config.reui.css +337 -0
  16. package/dist/demos/demo1.css +176 -0
  17. package/dist/index.d.ts +14 -0
  18. package/dist/index.js +484 -0
  19. package/dist/kit/components/chart/chart/chart.d.ts +57 -0
  20. package/dist/kit/components/chart/chart/chart.js +206 -0
  21. package/dist/kit/components/composite/action-bar/action-bar.d.ts +10 -0
  22. package/dist/kit/components/composite/action-bar/action-bar.js +38 -0
  23. package/dist/kit/components/composite/action-card/action-card.d.ts +13 -0
  24. package/dist/kit/components/composite/action-card/action-card.js +35 -0
  25. package/dist/kit/components/composite/activity-feed/activity-feed.d.ts +17 -0
  26. package/dist/kit/components/composite/activity-feed/activity-feed.js +26 -0
  27. package/dist/kit/components/composite/alert-card/alert-card.d.ts +10 -0
  28. package/dist/kit/components/composite/alert-card/alert-card.js +37 -0
  29. package/dist/kit/components/composite/approval-flow/approval-flow.d.ts +51 -0
  30. package/dist/kit/components/composite/approval-flow/approval-flow.js +185 -0
  31. package/dist/kit/components/composite/auth-shell/auth-shell.d.ts +10 -0
  32. package/dist/kit/components/composite/auth-shell/auth-shell.js +32 -0
  33. package/dist/kit/components/composite/board-toolbar/board-toolbar.d.ts +12 -0
  34. package/dist/kit/components/composite/board-toolbar/board-toolbar.js +44 -0
  35. package/dist/kit/components/composite/chart-card/chart-card.d.ts +14 -0
  36. package/dist/kit/components/composite/chart-card/chart-card.js +64 -0
  37. package/dist/kit/components/composite/chart-toolbar/chart-toolbar.d.ts +17 -0
  38. package/dist/kit/components/composite/chart-toolbar/chart-toolbar.js +48 -0
  39. package/dist/kit/components/composite/data-section/data-section.d.ts +17 -0
  40. package/dist/kit/components/composite/data-section/data-section.js +73 -0
  41. package/dist/kit/components/composite/description-grid/description-grid.d.ts +12 -0
  42. package/dist/kit/components/composite/description-grid/description-grid.js +36 -0
  43. package/dist/kit/components/composite/detail-header/detail-header.d.ts +19 -0
  44. package/dist/kit/components/composite/detail-header/detail-header.js +43 -0
  45. package/dist/kit/components/composite/filter-panel/filter-panel.d.ts +18 -0
  46. package/dist/kit/components/composite/filter-panel/filter-panel.js +86 -0
  47. package/dist/kit/components/composite/filter-toolbar/filter-toolbar.d.ts +14 -0
  48. package/dist/kit/components/composite/filter-toolbar/filter-toolbar.js +59 -0
  49. package/dist/kit/components/composite/forgot-password-form/forgot-password-form.d.ts +9 -0
  50. package/dist/kit/components/composite/forgot-password-form/forgot-password-form.js +34 -0
  51. package/dist/kit/components/composite/form-section/form-section.d.ts +9 -0
  52. package/dist/kit/components/composite/form-section/form-section.js +16 -0
  53. package/dist/kit/components/composite/kanban-board/kanban-board.d.ts +50 -0
  54. package/dist/kit/components/composite/kanban-board/kanban-board.js +55 -0
  55. package/dist/kit/components/composite/login-card/login-card.d.ts +33 -0
  56. package/dist/kit/components/composite/login-card/login-card.js +138 -0
  57. package/dist/kit/components/composite/message-list-card/message-list-card.d.ts +20 -0
  58. package/dist/kit/components/composite/message-list-card/message-list-card.js +83 -0
  59. package/dist/kit/components/composite/metric-card/metric-card.d.ts +18 -0
  60. package/dist/kit/components/composite/metric-card/metric-card.js +37 -0
  61. package/dist/kit/components/composite/milestone-card/milestone-card.d.ts +12 -0
  62. package/dist/kit/components/composite/milestone-card/milestone-card.js +33 -0
  63. package/dist/kit/components/composite/oauth-login-buttons/oauth-login-buttons.d.ts +14 -0
  64. package/dist/kit/components/composite/oauth-login-buttons/oauth-login-buttons.js +32 -0
  65. package/dist/kit/components/composite/page-header/page-header.d.ts +12 -0
  66. package/dist/kit/components/composite/page-header/page-header.js +66 -0
  67. package/dist/kit/components/composite/profile-card/profile-card.d.ts +16 -0
  68. package/dist/kit/components/composite/profile-card/profile-card.js +28 -0
  69. package/dist/kit/components/composite/progress-card/progress-card.d.ts +16 -0
  70. package/dist/kit/components/composite/progress-card/progress-card.js +23 -0
  71. package/dist/kit/components/composite/project-card/project-card.d.ts +17 -0
  72. package/dist/kit/components/composite/project-card/project-card.js +46 -0
  73. package/dist/kit/components/composite/shortcut-card/shortcut-card.d.ts +13 -0
  74. package/dist/kit/components/composite/shortcut-card/shortcut-card.js +35 -0
  75. package/dist/kit/components/composite/sprint-summary/sprint-summary.d.ts +15 -0
  76. package/dist/kit/components/composite/sprint-summary/sprint-summary.js +43 -0
  77. package/dist/kit/components/composite/state-panel/state-panel.d.ts +12 -0
  78. package/dist/kit/components/composite/state-panel/state-panel.js +79 -0
  79. package/dist/kit/components/composite/summary-card/summary-card.d.ts +15 -0
  80. package/dist/kit/components/composite/summary-card/summary-card.js +25 -0
  81. package/dist/kit/components/composite/task-card/task-card.d.ts +14 -0
  82. package/dist/kit/components/composite/task-card/task-card.js +49 -0
  83. package/dist/kit/components/composite/timeline/timeline.d.ts +46 -0
  84. package/dist/kit/components/composite/timeline/timeline.js +176 -0
  85. package/dist/kit/components/composite/todo-card/todo-card.d.ts +26 -0
  86. package/dist/kit/components/composite/todo-card/todo-card.js +101 -0
  87. package/dist/kit/components/data-display/avatar/avatar.d.ts +12 -0
  88. package/dist/kit/components/data-display/avatar/avatar.js +61 -0
  89. package/dist/kit/components/data-display/avatar-group/avatar-group.d.ts +22 -0
  90. package/dist/kit/components/data-display/avatar-group/avatar-group.js +184 -0
  91. package/dist/kit/components/data-display/badge/badge.d.ts +29 -0
  92. package/dist/kit/components/data-display/badge/badge.js +203 -0
  93. package/dist/kit/components/data-display/card/card.d.ts +15 -0
  94. package/dist/kit/components/data-display/card/card.js +119 -0
  95. package/dist/kit/components/data-display/data-grid/data-grid-column-filter.d.ts +15 -0
  96. package/dist/kit/components/data-display/data-grid/data-grid-column-filter.js +74 -0
  97. package/dist/kit/components/data-display/data-grid/data-grid-column-header.d.ts +12 -0
  98. package/dist/kit/components/data-display/data-grid/data-grid-column-header.js +171 -0
  99. package/dist/kit/components/data-display/data-grid/data-grid-column-visibility.d.ts +7 -0
  100. package/dist/kit/components/data-display/data-grid/data-grid-column-visibility.js +24 -0
  101. package/dist/kit/components/data-display/data-grid/data-grid-pagination.d.ts +15 -0
  102. package/dist/kit/components/data-display/data-grid/data-grid-pagination.js +132 -0
  103. package/dist/kit/components/data-display/data-grid/data-grid-table-dnd-rows.d.ts +9 -0
  104. package/dist/kit/components/data-display/data-grid/data-grid-table-dnd-rows.js +61 -0
  105. package/dist/kit/components/data-display/data-grid/data-grid-table-dnd.d.ts +5 -0
  106. package/dist/kit/components/data-display/data-grid/data-grid-table-dnd.js +86 -0
  107. package/dist/kit/components/data-display/data-grid/data-grid-table.d.ts +59 -0
  108. package/dist/kit/components/data-display/data-grid/data-grid-table.js +356 -0
  109. package/dist/kit/components/data-display/data-grid/data-grid.d.ts +87 -0
  110. package/dist/kit/components/data-display/data-grid/data-grid.js +87 -0
  111. package/dist/kit/components/data-display/kbd/kbd.d.ts +8 -0
  112. package/dist/kit/components/data-display/kbd/kbd.js +27 -0
  113. package/dist/kit/components/data-display/money-amount/money-amount.d.ts +27 -0
  114. package/dist/kit/components/data-display/money-amount/money-amount.js +91 -0
  115. package/dist/kit/components/data-display/progress/progress.d.ts +6 -0
  116. package/dist/kit/components/data-display/progress/progress.js +29 -0
  117. package/dist/kit/components/data-display/skeleton/skeleton.d.ts +3 -0
  118. package/dist/kit/components/data-display/skeleton/skeleton.js +8 -0
  119. package/dist/kit/components/data-display/sliding-number/sliding-number.d.ts +7 -0
  120. package/dist/kit/components/data-display/sliding-number/sliding-number.js +41 -0
  121. package/dist/kit/components/data-display/stepper/stepper.d.ts +61 -0
  122. package/dist/kit/components/data-display/stepper/stepper.js +230 -0
  123. package/dist/kit/components/data-display/table/table.d.ts +28 -0
  124. package/dist/kit/components/data-display/table/table.js +156 -0
  125. package/dist/kit/components/decorative/aurora-background/aurora-background.d.ts +7 -0
  126. package/dist/kit/components/decorative/aurora-background/aurora-background.js +60 -0
  127. package/dist/kit/components/decorative/grid-background/grid-background.d.ts +22 -0
  128. package/dist/kit/components/decorative/grid-background/grid-background.js +46 -0
  129. package/dist/kit/components/decorative/shimmering-text/shimmering-text.d.ts +29 -0
  130. package/dist/kit/components/decorative/shimmering-text/shimmering-text.js +64 -0
  131. package/dist/kit/components/decorative/text-reveal/text-reveal.d.ts +17 -0
  132. package/dist/kit/components/decorative/text-reveal/text-reveal.js +277 -0
  133. package/dist/kit/components/feedback/alert/alert.d.ts +21 -0
  134. package/dist/kit/components/feedback/alert/alert.js +236 -0
  135. package/dist/kit/components/feedback/alert-dialog/alert-dialog.d.ts +16 -0
  136. package/dist/kit/components/feedback/alert-dialog/alert-dialog.js +117 -0
  137. package/dist/kit/components/feedback/context-menu/context-menu.d.ts +24 -0
  138. package/dist/kit/components/feedback/context-menu/context-menu.js +183 -0
  139. package/dist/kit/components/feedback/dialog/dialog.d.ts +22 -0
  140. package/dist/kit/components/feedback/dialog/dialog.js +120 -0
  141. package/dist/kit/components/feedback/drawer/drawer.d.ts +13 -0
  142. package/dist/kit/components/feedback/drawer/drawer.js +76 -0
  143. package/dist/kit/components/feedback/dropdown-menu/dropdown-menu.d.ts +25 -0
  144. package/dist/kit/components/feedback/dropdown-menu/dropdown-menu.js +200 -0
  145. package/dist/kit/components/feedback/hover-card/hover-card.d.ts +6 -0
  146. package/dist/kit/components/feedback/hover-card/hover-card.js +34 -0
  147. package/dist/kit/components/feedback/popover/popover.d.ts +6 -0
  148. package/dist/kit/components/feedback/popover/popover.js +34 -0
  149. package/dist/kit/components/feedback/sheet/sheet.d.ts +22 -0
  150. package/dist/kit/components/feedback/sheet/sheet.js +128 -0
  151. package/dist/kit/components/feedback/sonner/sonner.d.ts +5 -0
  152. package/dist/kit/components/feedback/sonner/sonner.js +21 -0
  153. package/dist/kit/components/feedback/title-help/title-help.d.ts +10 -0
  154. package/dist/kit/components/feedback/title-help/title-help.js +44 -0
  155. package/dist/kit/components/feedback/tooltip/tooltip.d.ts +11 -0
  156. package/dist/kit/components/feedback/tooltip/tooltip.js +49 -0
  157. package/dist/kit/components/form/button/button.d.ts +23 -0
  158. package/dist/kit/components/form/button/button.js +380 -0
  159. package/dist/kit/components/form/calendar/calendar.d.ts +4 -0
  160. package/dist/kit/components/form/calendar/calendar.js +47 -0
  161. package/dist/kit/components/form/checkbox/checkbox.d.ts +8 -0
  162. package/dist/kit/components/form/checkbox/checkbox.js +39 -0
  163. package/dist/kit/components/form/command/command.d.ts +21 -0
  164. package/dist/kit/components/form/command/command.js +116 -0
  165. package/dist/kit/components/form/datefield/datefield.d.ts +14 -0
  166. package/dist/kit/components/form/datefield/datefield.js +74 -0
  167. package/dist/kit/components/form/file-upload/file-upload.d.ts +56 -0
  168. package/dist/kit/components/form/file-upload/file-upload.js +338 -0
  169. package/dist/kit/components/form/form/form.d.ts +24 -0
  170. package/dist/kit/components/form/form/form.js +86 -0
  171. package/dist/kit/components/form/input/input.d.ts +22 -0
  172. package/dist/kit/components/form/input/input.js +182 -0
  173. package/dist/kit/components/form/label/label.d.ts +8 -0
  174. package/dist/kit/components/form/label/label.js +28 -0
  175. package/dist/kit/components/form/radio-group/radio-group.d.ts +13 -0
  176. package/dist/kit/components/form/radio-group/radio-group.js +79 -0
  177. package/dist/kit/components/form/select/select.d.ts +25 -0
  178. package/dist/kit/components/form/select/select.js +194 -0
  179. package/dist/kit/components/form/slider/slider.d.ts +5 -0
  180. package/dist/kit/components/form/slider/slider.js +34 -0
  181. package/dist/kit/components/form/switch/switch.d.ts +20 -0
  182. package/dist/kit/components/form/switch/switch.js +158 -0
  183. package/dist/kit/components/form/textarea/textarea.d.ts +7 -0
  184. package/dist/kit/components/form/textarea/textarea.js +34 -0
  185. package/dist/kit/components/form/toggle/toggle.d.ts +9 -0
  186. package/dist/kit/components/form/toggle/toggle.js +36 -0
  187. package/dist/kit/components/form/toggle-group/toggle-group.d.ts +7 -0
  188. package/dist/kit/components/form/toggle-group/toggle-group.js +62 -0
  189. package/dist/kit/components/index.d.ts +108 -0
  190. package/dist/kit/components/layout/accordion/accordion.d.ts +13 -0
  191. package/dist/kit/components/layout/accordion/accordion.js +124 -0
  192. package/dist/kit/components/layout/aspect-ratio/aspect-ratio.d.ts +4 -0
  193. package/dist/kit/components/layout/aspect-ratio/aspect-ratio.js +8 -0
  194. package/dist/kit/components/layout/collapsible/collapsible.d.ts +6 -0
  195. package/dist/kit/components/layout/collapsible/collapsible.js +32 -0
  196. package/dist/kit/components/layout/resizable/resizable.d.ts +24 -0
  197. package/dist/kit/components/layout/resizable/resizable.js +32 -0
  198. package/dist/kit/components/layout/scroll-area/scroll-area.d.ts +8 -0
  199. package/dist/kit/components/layout/scroll-area/scroll-area.js +48 -0
  200. package/dist/kit/components/layout/separator/separator.d.ts +4 -0
  201. package/dist/kit/components/layout/separator/separator.js +23 -0
  202. package/dist/kit/components/navigation/accordion-menu/accordion-menu.d.ts +51 -0
  203. package/dist/kit/components/navigation/accordion-menu/accordion-menu.js +290 -0
  204. package/dist/kit/components/navigation/breadcrumb/breadcrumb.d.ts +13 -0
  205. package/dist/kit/components/navigation/breadcrumb/breadcrumb.js +76 -0
  206. package/dist/kit/components/navigation/menubar/menubar.d.ts +25 -0
  207. package/dist/kit/components/navigation/menubar/menubar.js +218 -0
  208. package/dist/kit/components/navigation/navigation-menu/navigation-menu.d.ts +14 -0
  209. package/dist/kit/components/navigation/navigation-menu/navigation-menu.js +137 -0
  210. package/dist/kit/components/navigation/pagination/pagination.d.ts +6 -0
  211. package/dist/kit/components/navigation/pagination/pagination.js +38 -0
  212. package/dist/kit/components/navigation/scrollspy/scrollspy.d.ts +14 -0
  213. package/dist/kit/components/navigation/scrollspy/scrollspy.js +84 -0
  214. package/dist/kit/components/navigation/tabs/tabs.d.ts +16 -0
  215. package/dist/kit/components/navigation/tabs/tabs.js +172 -0
  216. package/dist/kit/themes/theme-toggle.d.ts +1 -0
  217. package/dist/kit/themes/theme-toggle.js +56 -0
  218. package/dist/kit/tokens/chart-palette.d.ts +1 -0
  219. package/dist/kit/tokens/chart-palette.js +12 -0
  220. package/dist/lib/utils.d.ts +8 -0
  221. package/dist/lib/utils.js +8 -0
  222. package/dist/providers/demokit-provider.d.ts +4 -0
  223. package/dist/providers/demokit-provider.js +9 -0
  224. package/dist/providers/settings-provider.d.ts +15 -0
  225. package/dist/providers/settings-provider.js +78 -0
  226. package/dist/providers/theme-provider.d.ts +4 -0
  227. package/dist/providers/theme-provider.js +9 -0
  228. package/dist/providers/tooltips-provider.d.ts +4 -0
  229. package/dist/providers/tooltips-provider.js +8 -0
  230. package/dist/styles.css +237 -0
  231. package/package.json +72 -0
@@ -0,0 +1,32 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { cn as i } from "../../../../lib/utils.js";
3
+ import { GripVertical as n } from "lucide-react";
4
+ import * as t from "react-resizable-panels";
5
+ const d = ({ className: a, ...r }) => /* @__PURE__ */ e(
6
+ t.PanelGroup,
7
+ {
8
+ "data-slot": "resizable-panel-group",
9
+ className: i("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", a),
10
+ ...r
11
+ }
12
+ ), f = t.Panel, p = ({
13
+ withHandle: a,
14
+ className: r,
15
+ ...l
16
+ }) => /* @__PURE__ */ e(
17
+ t.PanelResizeHandle,
18
+ {
19
+ "data-slot": "resizable-handle",
20
+ className: i(
21
+ "relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",
22
+ r
23
+ ),
24
+ ...l,
25
+ children: a && /* @__PURE__ */ e("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ e(n, { className: "h-2.5 w-2.5" }) })
26
+ }
27
+ );
28
+ export {
29
+ p as ResizableHandle,
30
+ f as ResizablePanel,
31
+ d as ResizablePanelGroup
32
+ };
@@ -0,0 +1,8 @@
1
+ import { ScrollArea as ScrollAreaPrimitive } from 'radix-ui';
2
+ import * as React from 'react';
3
+ declare function ScrollArea({ className, viewportClassName, children, viewportRef, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.Root> & {
4
+ viewportRef?: React.Ref<HTMLDivElement>;
5
+ viewportClassName?: string;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): import("react/jsx-runtime").JSX.Element;
8
+ export { ScrollArea, ScrollBar };
@@ -0,0 +1,48 @@
1
+ import { jsxs as n, jsx as l } from "react/jsx-runtime";
2
+ import { cn as t } from "../../../../lib/utils.js";
3
+ import { ScrollArea as e } from "radix-ui";
4
+ function m({
5
+ className: o,
6
+ viewportClassName: r,
7
+ children: a,
8
+ viewportRef: c,
9
+ ...s
10
+ }) {
11
+ return /* @__PURE__ */ n(e.Root, { "data-slot": "scroll-area", className: t("relative overflow-hidden", o), ...s, children: [
12
+ /* @__PURE__ */ l(
13
+ e.Viewport,
14
+ {
15
+ ref: c,
16
+ className: t("h-full w-full rounded-[inherit]", r),
17
+ children: a
18
+ }
19
+ ),
20
+ /* @__PURE__ */ l(d, {}),
21
+ /* @__PURE__ */ l(e.Corner, {})
22
+ ] });
23
+ }
24
+ function d({
25
+ className: o,
26
+ orientation: r = "vertical",
27
+ ...a
28
+ }) {
29
+ return /* @__PURE__ */ l(
30
+ e.ScrollAreaScrollbar,
31
+ {
32
+ "data-slot": "scroll-area-scrollbar",
33
+ orientation: r,
34
+ className: t(
35
+ "flex touch-none select-none transition-colors",
36
+ r === "vertical" && "h-full w-2 border-l border-l-transparent p-[1px]",
37
+ r === "horizontal" && "h-2 flex-col border-t border-t-transparent p-[1px]",
38
+ o
39
+ ),
40
+ ...a,
41
+ children: /* @__PURE__ */ l(e.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
42
+ }
43
+ );
44
+ }
45
+ export {
46
+ m as ScrollArea,
47
+ d as ScrollBar
48
+ };
@@ -0,0 +1,4 @@
1
+ import { Separator as SeparatorPrimitive } from 'radix-ui';
2
+ import * as React from 'react';
3
+ declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ export { Separator };
@@ -0,0 +1,23 @@
1
+ import { jsx as p } from "react/jsx-runtime";
2
+ import { cn as e } from "../../../../lib/utils.js";
3
+ import { Separator as l } from "radix-ui";
4
+ function h({
5
+ className: o,
6
+ orientation: r = "horizontal",
7
+ decorative: a = !0,
8
+ ...t
9
+ }) {
10
+ return /* @__PURE__ */ p(
11
+ l.Root,
12
+ {
13
+ "data-slot": "separator",
14
+ decorative: a,
15
+ orientation: r,
16
+ className: e("shrink-0 bg-border", r === "horizontal" ? "h-px w-full" : "h-full w-px", o),
17
+ ...t
18
+ }
19
+ );
20
+ }
21
+ export {
22
+ h as Separator
23
+ };
@@ -0,0 +1,51 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { Accordion as AccordionPrimitive } from 'radix-ui';
3
+ import * as React from 'react';
4
+ interface AccordionMenuClassNames {
5
+ root?: string;
6
+ group?: string;
7
+ label?: string;
8
+ separator?: string;
9
+ item?: string;
10
+ sub?: string;
11
+ subTrigger?: string;
12
+ subContent?: string;
13
+ subWrapper?: string;
14
+ indicator?: string;
15
+ }
16
+ interface AccordionMenuProps {
17
+ selectedValue?: string;
18
+ matchPath?: (href: string) => boolean;
19
+ classNames?: AccordionMenuClassNames;
20
+ onItemClick?: (value: string, event: React.MouseEvent) => void;
21
+ }
22
+ declare function AccordionMenu({ className, matchPath, classNames, children, selectedValue, onItemClick, ...props }: React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root> & AccordionMenuProps): import("react/jsx-runtime").JSX.Element;
23
+ type AccordionMenuGroupProps = React.ComponentPropsWithoutRef<'div'>;
24
+ declare function AccordionMenuGroup({ children, className, ...props }: AccordionMenuGroupProps): import("react/jsx-runtime").JSX.Element;
25
+ type AccordionMenuLabelProps = React.ComponentPropsWithoutRef<'div'>;
26
+ declare function AccordionMenuLabel({ children, className, ...props }: AccordionMenuLabelProps): import("react/jsx-runtime").JSX.Element;
27
+ type AccordionMenuSeparatorProps = React.ComponentPropsWithoutRef<'div'>;
28
+ declare function AccordionMenuSeparator({ className, ...props }: AccordionMenuSeparatorProps): import("react/jsx-runtime").JSX.Element;
29
+ declare const itemVariants: (props?: ({
30
+ variant?: "default" | "destructive" | null | undefined;
31
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
32
+ declare function AccordionMenuItem({ className, children, variant, asChild, onClick, ...props }: React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item> & VariantProps<typeof itemVariants> & {
33
+ onClick?: React.MouseEventHandler<HTMLElement>;
34
+ }): import("react/jsx-runtime").JSX.Element;
35
+ declare function AccordionMenuSub({ className, children, ...props }: React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
36
+ declare function AccordionMenuSubTrigger({ className, children, }: React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
37
+ type AccordionMenuSubContentProps = ((React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content> & {
38
+ type: 'single';
39
+ collapsible: boolean;
40
+ defaultValue?: string;
41
+ }) | (React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content> & {
42
+ type: 'multiple';
43
+ collapsible?: boolean;
44
+ defaultValue?: string | string[];
45
+ })) & {
46
+ parentValue: string;
47
+ };
48
+ declare function AccordionMenuSubContent({ className, children, type, collapsible, defaultValue, parentValue, ...props }: AccordionMenuSubContentProps): import("react/jsx-runtime").JSX.Element;
49
+ type AccordionMenuIndicatorProps = React.ComponentPropsWithoutRef<'span'>;
50
+ declare function AccordionMenuIndicator({ className, ...props }: AccordionMenuIndicatorProps): import("react/jsx-runtime").JSX.Element;
51
+ export { AccordionMenu, AccordionMenuGroup, AccordionMenuIndicator, AccordionMenuItem, AccordionMenuLabel, AccordionMenuSeparator, AccordionMenuSub, AccordionMenuSubContent, AccordionMenuSubTrigger, type AccordionMenuClassNames, };
@@ -0,0 +1,290 @@
1
+ import { jsx as a, jsxs as z, Fragment as E } from "react/jsx-runtime";
2
+ import * as s from "react";
3
+ import { cva as R } from "class-variance-authority";
4
+ import { ChevronDown as T } from "lucide-react";
5
+ import { Accordion as d } from "radix-ui";
6
+ import { cn as l } from "../../../../lib/utils.js";
7
+ const f = s.createContext({
8
+ matchPath: () => !1,
9
+ selectedValue: "",
10
+ setSelectedValue: () => {
11
+ },
12
+ nestedStates: {},
13
+ setNestedStates: () => {
14
+ }
15
+ });
16
+ function K({
17
+ className: n,
18
+ matchPath: t = () => !1,
19
+ classNames: o,
20
+ children: c,
21
+ selectedValue: i,
22
+ onItemClick: u,
23
+ ...m
24
+ }) {
25
+ const [h, x] = s.useState(i);
26
+ s.useEffect(() => {
27
+ x(i);
28
+ }, [i]);
29
+ const g = s.useMemo(() => {
30
+ const b = (C, M = []) => {
31
+ let w = [];
32
+ return s.Children.forEach(C, (_) => {
33
+ if (s.isValidElement(_)) {
34
+ const { value: N, children: V } = _.props, k = N ? [...M, N] : M;
35
+ if (N && (N === i || t(N)))
36
+ w = k;
37
+ else if (V) {
38
+ const I = b(V, k);
39
+ I.length > 0 && (w = I);
40
+ }
41
+ }
42
+ }), w;
43
+ }, p = b(c), y = p.length > 1 ? p.slice(0, p.length - 1) : p, A = {};
44
+ if (y.length > 0)
45
+ if (m.type === "multiple")
46
+ A.root = y;
47
+ else {
48
+ A.root = y[0];
49
+ for (let C = 0; C < y.length - 1; C++)
50
+ A[y[C]] = y[C + 1];
51
+ }
52
+ return A;
53
+ }, [c, t, i, m.type]), [e, r] = s.useState(g), v = Array.isArray(e.root) ? e.root : typeof e.root == "string" ? [e.root] : [], S = e.root ?? "";
54
+ return /* @__PURE__ */ a(
55
+ f.Provider,
56
+ {
57
+ value: {
58
+ matchPath: t,
59
+ selectedValue: h,
60
+ setSelectedValue: x,
61
+ classNames: o,
62
+ onItemClick: u,
63
+ nestedStates: e,
64
+ setNestedStates: r
65
+ },
66
+ children: m.type === "single" ? /* @__PURE__ */ a(
67
+ d.Root,
68
+ {
69
+ "data-slot": "accordion-menu",
70
+ value: S,
71
+ className: l("w-full", o?.root, n),
72
+ onValueChange: (b) => r((p) => ({ ...p, root: b })),
73
+ ...m,
74
+ role: "menu",
75
+ children: c
76
+ }
77
+ ) : /* @__PURE__ */ a(
78
+ d.Root,
79
+ {
80
+ "data-slot": "accordion-menu",
81
+ value: v,
82
+ className: l("w-full", o?.root, n),
83
+ onValueChange: (b) => r((p) => ({ ...p, root: b })),
84
+ ...m,
85
+ role: "menu",
86
+ children: c
87
+ }
88
+ )
89
+ }
90
+ );
91
+ }
92
+ function L({ children: n, className: t, ...o }) {
93
+ const { classNames: c } = s.useContext(f);
94
+ return /* @__PURE__ */ a(
95
+ "div",
96
+ {
97
+ "data-slot": "accordion-menu-group",
98
+ role: "group",
99
+ className: l("space-y-0.5", c?.group, t),
100
+ ...o,
101
+ children: n
102
+ }
103
+ );
104
+ }
105
+ function P({ children: n, className: t, ...o }) {
106
+ const { classNames: c } = s.useContext(f);
107
+ return /* @__PURE__ */ a(
108
+ "div",
109
+ {
110
+ "data-slot": "accordion-menu-label",
111
+ role: "presentation",
112
+ className: l("px-2 py-1.5 text-xs font-medium text-muted-foreground", c?.label, t),
113
+ ...o,
114
+ children: n
115
+ }
116
+ );
117
+ }
118
+ function q({ className: n, ...t }) {
119
+ const { classNames: o } = s.useContext(f);
120
+ return /* @__PURE__ */ a(
121
+ "div",
122
+ {
123
+ "data-slot": "accordion-menu-separator",
124
+ role: "separator",
125
+ className: l("my-1 h-px bg-border", o?.separator, n),
126
+ ...t
127
+ }
128
+ );
129
+ }
130
+ const D = R(
131
+ "relative cursor-pointer select-none flex w-full text-start items-center text-foreground rounded-lg gap-2 px-2 py-1.5 text-sm outline-hidden transition-colors hover:bg-accent hover:text-accent-foreground data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground disabled:opacity-50 disabled:bg-transparent focus-visible:bg-accent focus-visible:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:opacity-60 [&_svg:not([class*=size-])]:size-4 [&_svg]:shrink-0 [&_a]:flex [&>a]:w-full [&>a]:items-center [&>a]:gap-2",
132
+ {
133
+ variants: {
134
+ variant: {
135
+ default: "",
136
+ destructive: "text-destructive hover:text-destructive focus:text-destructive hover:bg-destructive/5 focus:bg-destructive/5 data-[active=true]:bg-destructive/5"
137
+ }
138
+ },
139
+ defaultVariants: {
140
+ variant: "default"
141
+ }
142
+ }
143
+ );
144
+ function B({
145
+ className: n,
146
+ children: t,
147
+ variant: o,
148
+ asChild: c,
149
+ onClick: i,
150
+ ...u
151
+ }) {
152
+ const { classNames: m, selectedValue: h, matchPath: x, onItemClick: g } = s.useContext(f);
153
+ return /* @__PURE__ */ a(d.Item, { className: "flex", ...u, children: /* @__PURE__ */ a(d.Header, { className: "flex w-full", children: /* @__PURE__ */ a(
154
+ d.Trigger,
155
+ {
156
+ asChild: c,
157
+ "data-slot": "accordion-menu-item",
158
+ className: l(D({ variant: o }), m?.item, n),
159
+ onClick: (e) => {
160
+ g && g(u.value, e), i && i(e), e.preventDefault();
161
+ },
162
+ onKeyDown: (e) => {
163
+ if (e.key === "Enter") {
164
+ e.preventDefault();
165
+ const v = e.currentTarget.firstElementChild;
166
+ v && v.click();
167
+ }
168
+ },
169
+ "data-selected": x(u.value) || h === u.value ? "true" : void 0,
170
+ children: t
171
+ }
172
+ ) }) });
173
+ }
174
+ function J({
175
+ className: n,
176
+ children: t,
177
+ ...o
178
+ }) {
179
+ const { classNames: c } = s.useContext(f);
180
+ return /* @__PURE__ */ a(d.Item, { "data-slot": "accordion-menu-sub", className: l(c?.sub, n), ...o, children: t });
181
+ }
182
+ function O({
183
+ className: n,
184
+ children: t
185
+ }) {
186
+ const { classNames: o } = s.useContext(f);
187
+ return /* @__PURE__ */ a(d.Header, { className: "flex", children: /* @__PURE__ */ a(
188
+ d.Trigger,
189
+ {
190
+ "data-slot": "accordion-menu-sub-trigger",
191
+ className: l(
192
+ "w-full relative flex items-center cursor-pointer select-none text-start rounded-lg gap-2 px-2 py-1.5 text-sm outline-hidden text-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([role=img]):not([class*=text-])]:opacity-60 [&_svg:not([class*=size-])]:size-4 [&_svg]:shrink-0",
193
+ o?.subTrigger,
194
+ n
195
+ ),
196
+ children: /* @__PURE__ */ z(E, { children: [
197
+ t,
198
+ /* @__PURE__ */ a(
199
+ T,
200
+ {
201
+ "data-slot": "accordion-menu-sub-indicator",
202
+ className: l(
203
+ "ms-auto size-3.5! shrink-0 text-muted-foreground transition-transform duration-200 [[data-state=open]>&]:-rotate-180"
204
+ )
205
+ }
206
+ )
207
+ ] })
208
+ }
209
+ ) });
210
+ }
211
+ function Q({
212
+ className: n,
213
+ children: t,
214
+ type: o,
215
+ collapsible: c,
216
+ defaultValue: i,
217
+ parentValue: u,
218
+ ...m
219
+ }) {
220
+ const { nestedStates: h, setNestedStates: x, classNames: g } = s.useContext(f);
221
+ let e;
222
+ if (o === "multiple") {
223
+ const r = h[u];
224
+ Array.isArray(r) ? e = r : typeof r == "string" ? e = [r] : i ? e = Array.isArray(i) ? i : [i] : e = [];
225
+ } else
226
+ e = h[u] ?? i ?? "";
227
+ return /* @__PURE__ */ a(
228
+ d.Content,
229
+ {
230
+ "data-slot": "accordion-menu-sub-content",
231
+ className: l(
232
+ "ps-5",
233
+ "overflow-hidden transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
234
+ g?.subContent,
235
+ n
236
+ ),
237
+ ...m,
238
+ children: o === "multiple" ? /* @__PURE__ */ a(
239
+ d.Root,
240
+ {
241
+ className: l("w-full py-0.5", g?.subWrapper),
242
+ type: "multiple",
243
+ value: e,
244
+ role: "menu",
245
+ "data-slot": "accordion-menu-sub-wrapper",
246
+ onValueChange: (r) => {
247
+ const v = Array.isArray(r) ? r : [r];
248
+ x((S) => ({ ...S, [u]: v }));
249
+ },
250
+ children: t
251
+ }
252
+ ) : /* @__PURE__ */ a(
253
+ d.Root,
254
+ {
255
+ className: l("w-full py-0.5", g?.subWrapper),
256
+ type: "single",
257
+ collapsible: c,
258
+ value: e,
259
+ role: "menu",
260
+ "data-slot": "accordion-menu-sub-wrapper",
261
+ onValueChange: (r) => x((v) => ({ ...v, [u]: r })),
262
+ children: t
263
+ }
264
+ )
265
+ }
266
+ );
267
+ }
268
+ function U({ className: n, ...t }) {
269
+ const { classNames: o } = s.useContext(f);
270
+ return /* @__PURE__ */ a(
271
+ "span",
272
+ {
273
+ "aria-hidden": "true",
274
+ "data-slot": "accordion-menu-indicator",
275
+ className: l("ms-auto flex items-center font-medium", o?.indicator, n),
276
+ ...t
277
+ }
278
+ );
279
+ }
280
+ export {
281
+ K as AccordionMenu,
282
+ L as AccordionMenuGroup,
283
+ U as AccordionMenuIndicator,
284
+ B as AccordionMenuItem,
285
+ P as AccordionMenuLabel,
286
+ q as AccordionMenuSeparator,
287
+ J as AccordionMenuSub,
288
+ Q as AccordionMenuSubContent,
289
+ O as AccordionMenuSubTrigger
290
+ };
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ declare function Breadcrumb({ ...props }: React.ComponentProps<'nav'> & {
3
+ separator?: React.ReactNode;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ declare function BreadcrumbList({ className, ...props }: React.ComponentProps<'ol'>): import("react/jsx-runtime").JSX.Element;
6
+ declare function BreadcrumbItem({ className, ...props }: React.ComponentProps<'li'>): import("react/jsx-runtime").JSX.Element;
7
+ declare function BreadcrumbLink({ asChild, className, ...props }: React.ComponentProps<'a'> & {
8
+ asChild?: boolean;
9
+ }): import("react/jsx-runtime").JSX.Element;
10
+ declare function BreadcrumbPage({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
11
+ declare const BreadcrumbSeparator: ({ children, className, ...props }: React.ComponentProps<"li">) => import("react/jsx-runtime").JSX.Element;
12
+ declare const BreadcrumbEllipsis: ({ className, ...props }: React.ComponentProps<"span">) => import("react/jsx-runtime").JSX.Element;
13
+ export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, };
@@ -0,0 +1,76 @@
1
+ import { jsx as a, jsxs as n } from "react/jsx-runtime";
2
+ import { cn as t } from "../../../../lib/utils.js";
3
+ import { MoreHorizontal as l, ChevronRight as i } from "lucide-react";
4
+ import { Slot as c } from "radix-ui";
5
+ function p({
6
+ ...r
7
+ }) {
8
+ return /* @__PURE__ */ a("nav", { "data-slot": "breadcrumb", "aria-label": "breadcrumb", ...r });
9
+ }
10
+ function f({ className: r, ...e }) {
11
+ return /* @__PURE__ */ a(
12
+ "ol",
13
+ {
14
+ "data-slot": "breadcrumb-list",
15
+ className: t("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground", r),
16
+ ...e
17
+ }
18
+ );
19
+ }
20
+ function g({ className: r, ...e }) {
21
+ return /* @__PURE__ */ a("li", { "data-slot": "breadcrumb-item", className: t("inline-flex items-center gap-1.5", r), ...e });
22
+ }
23
+ function h({
24
+ asChild: r,
25
+ className: e,
26
+ ...o
27
+ }) {
28
+ const s = r ? c.Slot : "a";
29
+ return /* @__PURE__ */ a(s, { "data-slot": "breadcrumb-link", className: t("transition-colors hover:text-foreground", e), ...o });
30
+ }
31
+ function x({ className: r, ...e }) {
32
+ return /* @__PURE__ */ a(
33
+ "span",
34
+ {
35
+ "data-slot": "breadcrumb-page",
36
+ role: "link",
37
+ "aria-disabled": "true",
38
+ "aria-current": "page",
39
+ className: t("font-normal text-foreground", r),
40
+ ...e
41
+ }
42
+ );
43
+ }
44
+ const N = ({ children: r, className: e, ...o }) => /* @__PURE__ */ a(
45
+ "li",
46
+ {
47
+ "data-slot": "breadcrumb-separator",
48
+ role: "presentation",
49
+ "aria-hidden": "true",
50
+ className: t("[&>svg]:w-3.5 [&>svg]:h-3.5", e),
51
+ ...o,
52
+ children: r ?? /* @__PURE__ */ a(i, { className: "rtl:rotate-180" })
53
+ }
54
+ ), B = ({ className: r, ...e }) => /* @__PURE__ */ n(
55
+ "span",
56
+ {
57
+ "data-slot": "breadcrumb-ellipsis",
58
+ role: "presentation",
59
+ "aria-hidden": "true",
60
+ className: t("flex h-9 w-9 items-center justify-center", r),
61
+ ...e,
62
+ children: [
63
+ /* @__PURE__ */ a(l, { className: "h-4 w-4" }),
64
+ /* @__PURE__ */ a("span", { className: "sr-only", children: "More" })
65
+ ]
66
+ }
67
+ );
68
+ export {
69
+ p as Breadcrumb,
70
+ B as BreadcrumbEllipsis,
71
+ g as BreadcrumbItem,
72
+ h as BreadcrumbLink,
73
+ f as BreadcrumbList,
74
+ x as BreadcrumbPage,
75
+ N as BreadcrumbSeparator
76
+ };
@@ -0,0 +1,25 @@
1
+ import { Menubar as MenubarPrimitive } from 'radix-ui';
2
+ import * as React from 'react';
3
+ declare function MenubarMenu({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Menu>): import("react/jsx-runtime").JSX.Element;
4
+ declare function MenubarGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
5
+ declare function MenubarPortal({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
6
+ declare function MenubarRadioGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.RadioGroup>): import("react/jsx-runtime").JSX.Element;
7
+ declare function Menubar({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
8
+ declare function MenubarTrigger({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
9
+ declare function MenubarSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof MenubarPrimitive.SubTrigger> & {
10
+ inset?: boolean;
11
+ }): import("react/jsx-runtime").JSX.Element;
12
+ declare function MenubarSubContent({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.SubContent>): import("react/jsx-runtime").JSX.Element;
13
+ declare function MenubarContent({ className, align, alignOffset, sideOffset, ...props }: React.ComponentProps<typeof MenubarPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
14
+ declare function MenubarItem({ className, inset, ...props }: React.ComponentProps<typeof MenubarPrimitive.Item> & {
15
+ inset?: boolean;
16
+ }): import("react/jsx-runtime").JSX.Element;
17
+ declare function MenubarCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof MenubarPrimitive.CheckboxItem>): import("react/jsx-runtime").JSX.Element;
18
+ declare function MenubarRadioItem({ className, children, ...props }: React.ComponentProps<typeof MenubarPrimitive.RadioItem>): import("react/jsx-runtime").JSX.Element;
19
+ declare function MenubarLabel({ className, inset, ...props }: React.ComponentProps<typeof MenubarPrimitive.Label> & {
20
+ inset?: boolean;
21
+ }): import("react/jsx-runtime").JSX.Element;
22
+ declare function MenubarSeparator({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
23
+ declare function MenubarSub({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
24
+ declare const MenubarShortcut: ({ className, ...props }: React.ComponentProps<"span">) => import("react/jsx-runtime").JSX.Element;
25
+ export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, };