@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,218 @@
1
+ import { jsx as a, jsxs as d } from "react/jsx-runtime";
2
+ import { cn as r } from "../../../../lib/utils.js";
3
+ import { Check as i, Circle as c, ChevronRight as l } from "lucide-react";
4
+ import { Menubar as n } from "radix-ui";
5
+ function g({ ...e }) {
6
+ return /* @__PURE__ */ a(n.Menu, { "data-slot": "menubar-menu", ...e });
7
+ }
8
+ function x({ ...e }) {
9
+ return /* @__PURE__ */ a(n.Group, { "data-slot": "menubar-group", ...e });
10
+ }
11
+ function h({ ...e }) {
12
+ return /* @__PURE__ */ a(n.Portal, { "data-slot": "menubar-portal", ...e });
13
+ }
14
+ function v({ ...e }) {
15
+ return /* @__PURE__ */ a(n.RadioGroup, { "data-slot": "menubar-radio-group", ...e });
16
+ }
17
+ function M({ className: e, ...t }) {
18
+ return /* @__PURE__ */ a(
19
+ n.Root,
20
+ {
21
+ "data-slot": "menubar",
22
+ className: r("flex h-10 items-center space-x-1 rounded-md border bg-background p-1", e),
23
+ ...t
24
+ }
25
+ );
26
+ }
27
+ function y({ className: e, ...t }) {
28
+ return /* @__PURE__ */ a(
29
+ n.Trigger,
30
+ {
31
+ "data-slot": "menubar-trigger",
32
+ className: r(
33
+ "flex cursor-pointer select-none items-center rounded-md px-3 py-1.5 text-sm font-medium outline-hidden",
34
+ "focus:bg-accent focus:text-accent-foreground",
35
+ "data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
36
+ "[&>svg]:pointer-events-none [&_svg:not([role=img]):not([class*=text-])]:opacity-60 [&_svg:not([class*=size-])]:size-4 [&>svg]:shrink-0",
37
+ "data-[here=true]:bg-accent",
38
+ e
39
+ ),
40
+ ...t
41
+ }
42
+ );
43
+ }
44
+ function N({
45
+ className: e,
46
+ inset: t,
47
+ children: o,
48
+ ...s
49
+ }) {
50
+ return /* @__PURE__ */ d(
51
+ n.SubTrigger,
52
+ {
53
+ "data-slot": "menubar-sub-tirgger",
54
+ className: r(
55
+ "flex cursor-pointer select-none items-center rounded-md px-2 py-1.5 text-sm outline-hidden",
56
+ "focus:bg-accent focus:text-accent-foreground",
57
+ "data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
58
+ "[&>svg]:pointer-events-none [&_svg:not([role=img]):not([class*=text-])]:opacity-60 [&_svg:not([class*=size-])]:size-4 [&>svg]:shrink-0",
59
+ "data-[here=true]:bg-accent data-[here=true]:text-accent-foreground",
60
+ t && "ps-8",
61
+ e
62
+ ),
63
+ ...s,
64
+ children: [
65
+ o,
66
+ /* @__PURE__ */ a(l, { className: "ms-auto size-3.5!" })
67
+ ]
68
+ }
69
+ );
70
+ }
71
+ function w({ className: e, ...t }) {
72
+ return /* @__PURE__ */ a(
73
+ n.SubContent,
74
+ {
75
+ "data-slot": "menubar-sub-content",
76
+ className: r(
77
+ "space-y-0.5 z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-2 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
78
+ e
79
+ ),
80
+ ...t
81
+ }
82
+ );
83
+ }
84
+ function z({
85
+ className: e,
86
+ align: t = "start",
87
+ alignOffset: o = -4,
88
+ sideOffset: s = 8,
89
+ ...u
90
+ }) {
91
+ return /* @__PURE__ */ a(n.Portal, { children: /* @__PURE__ */ a(
92
+ n.Content,
93
+ {
94
+ "data-slot": "menubar-content",
95
+ align: t,
96
+ alignOffset: o,
97
+ sideOffset: s,
98
+ className: r(
99
+ "space-y-0.5 z-50 min-w-[12rem] overflow-hidden rounded-md border border-border bg-popover p-2 text-popover-foreground shadow-md shadow-black/5 transition-shadow data-[state=open]:animate-in 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",
100
+ e
101
+ ),
102
+ ...u
103
+ }
104
+ ) });
105
+ }
106
+ function I({
107
+ className: e,
108
+ inset: t,
109
+ ...o
110
+ }) {
111
+ return /* @__PURE__ */ a(
112
+ n.Item,
113
+ {
114
+ "data-slot": "menubar-item",
115
+ className: r(
116
+ "relative flex cursor-default select-none items-center rounded-md px-2 py-1.5 text-sm outline-hidden data-disabled:pointer-events-none data-disabled:opacity-50",
117
+ "focus:bg-accent focus:text-accent-foreground",
118
+ "data-[active=true]:bg-accent data-[active=true]:text-accent-foreground",
119
+ t && "ps-8",
120
+ e
121
+ ),
122
+ ...o
123
+ }
124
+ );
125
+ }
126
+ function k({
127
+ className: e,
128
+ children: t,
129
+ checked: o,
130
+ ...s
131
+ }) {
132
+ return /* @__PURE__ */ d(
133
+ n.CheckboxItem,
134
+ {
135
+ "data-slot": "menubar-checkbox-item",
136
+ className: r(
137
+ "relative flex cursor-default select-none items-center rounded-md py-1.5 ps-8 pe-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",
138
+ e
139
+ ),
140
+ checked: o,
141
+ ...s,
142
+ children: [
143
+ /* @__PURE__ */ a("span", { className: "absolute start-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a(n.ItemIndicator, { children: /* @__PURE__ */ a(i, { className: "h-4 w-4 text-primary" }) }) }),
144
+ t
145
+ ]
146
+ }
147
+ );
148
+ }
149
+ function C({ className: e, children: t, ...o }) {
150
+ return /* @__PURE__ */ d(
151
+ n.RadioItem,
152
+ {
153
+ "data-slot": "menubar-radio-item",
154
+ className: r(
155
+ "relative flex cursor-default select-none items-center rounded-md py-1.5 ps-8 pe-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",
156
+ e
157
+ ),
158
+ ...o,
159
+ children: [
160
+ /* @__PURE__ */ a("span", { className: "absolute start-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a(n.ItemIndicator, { children: /* @__PURE__ */ a(c, { className: "h-2 w-2 fill-current" }) }) }),
161
+ t
162
+ ]
163
+ }
164
+ );
165
+ }
166
+ function S({
167
+ className: e,
168
+ inset: t,
169
+ ...o
170
+ }) {
171
+ return /* @__PURE__ */ a(
172
+ n.Label,
173
+ {
174
+ "data-slot": "menubar-label",
175
+ className: r("px-2 py-1.5 text-sm font-semibold", t && "ps-8", e),
176
+ ...o
177
+ }
178
+ );
179
+ }
180
+ function R({ className: e, ...t }) {
181
+ return /* @__PURE__ */ a(
182
+ n.Separator,
183
+ {
184
+ "data-slot": "menubar-separator",
185
+ className: r("-mx-2 my-1.5 h-px bg-muted", e),
186
+ ...t
187
+ }
188
+ );
189
+ }
190
+ function j({ ...e }) {
191
+ return /* @__PURE__ */ a(n.Sub, { "data-slot": "menubar-sub", ...e });
192
+ }
193
+ const G = ({ className: e, ...t }) => /* @__PURE__ */ a(
194
+ "span",
195
+ {
196
+ "data-slot": "menubar-shortcut",
197
+ className: r("ml-auto text-xs tracking-widest text-muted-foreground", e),
198
+ ...t
199
+ }
200
+ );
201
+ export {
202
+ M as Menubar,
203
+ k as MenubarCheckboxItem,
204
+ z as MenubarContent,
205
+ x as MenubarGroup,
206
+ I as MenubarItem,
207
+ S as MenubarLabel,
208
+ g as MenubarMenu,
209
+ h as MenubarPortal,
210
+ v as MenubarRadioGroup,
211
+ C as MenubarRadioItem,
212
+ R as MenubarSeparator,
213
+ G as MenubarShortcut,
214
+ j as MenubarSub,
215
+ w as MenubarSubContent,
216
+ N as MenubarSubTrigger,
217
+ y as MenubarTrigger
218
+ };
@@ -0,0 +1,14 @@
1
+ import { NavigationMenu as NavigationMenuPrimitive } from 'radix-ui';
2
+ import * as React from 'react';
3
+ declare function NavigationMenu({ className, children, viewport, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Root> & {
4
+ viewport?: boolean;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ declare function NavigationMenuList({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.List>): import("react/jsx-runtime").JSX.Element;
7
+ declare function NavigationMenuItem({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
8
+ declare const navigationMenuTriggerStyle: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
9
+ declare function NavigationMenuTrigger({ className, children, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
10
+ declare function NavigationMenuContent({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
11
+ declare function NavigationMenuViewport({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Viewport>): import("react/jsx-runtime").JSX.Element;
12
+ declare function NavigationMenuLink({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Link>): import("react/jsx-runtime").JSX.Element;
13
+ declare function NavigationMenuIndicator({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Indicator>): import("react/jsx-runtime").JSX.Element;
14
+ export { NavigationMenu, NavigationMenuList, NavigationMenuItem, NavigationMenuContent, NavigationMenuTrigger, NavigationMenuLink, NavigationMenuIndicator, NavigationMenuViewport, navigationMenuTriggerStyle, };
@@ -0,0 +1,137 @@
1
+ import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
+ import { cn as o } from "../../../../lib/utils.js";
3
+ import { cva as u } from "class-variance-authority";
4
+ import { ChevronDownIcon as s } from "lucide-react";
5
+ import { NavigationMenu as n } from "radix-ui";
6
+ function w({
7
+ className: t,
8
+ children: a,
9
+ viewport: i = !0,
10
+ ...d
11
+ }) {
12
+ return /* @__PURE__ */ r(
13
+ n.Root,
14
+ {
15
+ "data-slot": "navigation-menu",
16
+ "data-viewport": i,
17
+ className: o("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", t),
18
+ ...d,
19
+ children: [
20
+ a,
21
+ i && /* @__PURE__ */ e(g, {})
22
+ ]
23
+ }
24
+ );
25
+ }
26
+ function x({ className: t, ...a }) {
27
+ return /* @__PURE__ */ e(
28
+ n.List,
29
+ {
30
+ "data-slot": "navigation-menu-list",
31
+ className: o("group flex flex-1 list-none items-center justify-center gap-1", t),
32
+ ...a
33
+ }
34
+ );
35
+ }
36
+ function b({ className: t, ...a }) {
37
+ return /* @__PURE__ */ e(n.Item, { "data-slot": "navigation-menu-item", className: o("relative", t), ...a });
38
+ }
39
+ const l = u(
40
+ "cursor-pointer group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[active=true]:bg-accent/50 data-[state=open]:bg-accent/50 data-[active=true]:text-accent-foreground ring-ring/10 outline-ring/50 transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1"
41
+ );
42
+ function h({
43
+ className: t,
44
+ children: a,
45
+ ...i
46
+ }) {
47
+ return /* @__PURE__ */ r(
48
+ n.Trigger,
49
+ {
50
+ "data-slot": "navigation-menu-trigger",
51
+ className: o(l(), "group", t),
52
+ ...i,
53
+ children: [
54
+ a,
55
+ " ",
56
+ /* @__PURE__ */ e(
57
+ s,
58
+ {
59
+ className: "relative top-[1px] ms-1 size-3.5 opacity-60 transition duration-300 group-data-[state=open]:rotate-180",
60
+ "aria-hidden": "true"
61
+ }
62
+ )
63
+ ]
64
+ }
65
+ );
66
+ }
67
+ function N({ className: t, ...a }) {
68
+ return /* @__PURE__ */ e(
69
+ n.Content,
70
+ {
71
+ "data-slot": "navigation-menu-content",
72
+ className: o(
73
+ "data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52! data-[motion=from-start]:slide-in-from-left-52! data-[motion=to-end]:slide-out-to-right-52! data-[motion=to-start]:slide-out-to-left-52! top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto",
74
+ "group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",
75
+ t
76
+ ),
77
+ ...a
78
+ }
79
+ );
80
+ }
81
+ function g({
82
+ className: t,
83
+ ...a
84
+ }) {
85
+ return /* @__PURE__ */ e("div", { className: o("absolute top-full left-0 isolate z-50 flex justify-center"), children: /* @__PURE__ */ e(
86
+ n.Viewport,
87
+ {
88
+ "data-slot": "navigation-menu-viewport",
89
+ className: o(
90
+ "shadow-md shadow-black/5 rounded-md border border-border bg-popover text-popover-foreground p-1.5 origin-top-center data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden md:w-[var(--radix-navigation-menu-viewport-width)]",
91
+ t
92
+ ),
93
+ ...a
94
+ }
95
+ ) });
96
+ }
97
+ function M({ className: t, ...a }) {
98
+ return /* @__PURE__ */ e(
99
+ n.Link,
100
+ {
101
+ "data-slot": "navigation-menu-link",
102
+ className: o(
103
+ "hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground ring-ring/10 outline-ring/50 flex flex-col gap-1 rounded-md p-2 text-sm transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1",
104
+ t
105
+ ),
106
+ ...a
107
+ }
108
+ );
109
+ }
110
+ function y({
111
+ className: t,
112
+ ...a
113
+ }) {
114
+ return /* @__PURE__ */ e(
115
+ n.Indicator,
116
+ {
117
+ "data-slot": "navigation-menu-indicator",
118
+ className: o(
119
+ "data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",
120
+ t
121
+ ),
122
+ ...a,
123
+ children: /* @__PURE__ */ e("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-ts-md shadow-md" })
124
+ }
125
+ );
126
+ }
127
+ export {
128
+ w as NavigationMenu,
129
+ N as NavigationMenuContent,
130
+ y as NavigationMenuIndicator,
131
+ b as NavigationMenuItem,
132
+ M as NavigationMenuLink,
133
+ x as NavigationMenuList,
134
+ h as NavigationMenuTrigger,
135
+ g as NavigationMenuViewport,
136
+ l as navigationMenuTriggerStyle
137
+ };
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ declare const Pagination: ({ className, ...props }: React.ComponentProps<"nav">) => import("react/jsx-runtime").JSX.Element;
3
+ declare function PaginationContent({ className, ...props }: React.ComponentProps<'ul'>): import("react/jsx-runtime").JSX.Element;
4
+ declare function PaginationItem({ className, ...props }: React.ComponentProps<'li'>): import("react/jsx-runtime").JSX.Element;
5
+ declare const PaginationEllipsis: ({ className, ...props }: React.ComponentProps<"span">) => import("react/jsx-runtime").JSX.Element;
6
+ export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem };
@@ -0,0 +1,38 @@
1
+ import { jsx as t, jsxs as e } from "react/jsx-runtime";
2
+ import { cn as i } from "../../../../lib/utils.js";
3
+ import { MoreHorizontal as o } from "lucide-react";
4
+ const c = ({ className: a, ...n }) => /* @__PURE__ */ t(
5
+ "nav",
6
+ {
7
+ "data-slot": "pagination",
8
+ role: "navigation",
9
+ "aria-label": "pagination",
10
+ className: i("mx-auto flex w-full justify-center", a),
11
+ ...n
12
+ }
13
+ );
14
+ function m({ className: a, ...n }) {
15
+ return /* @__PURE__ */ t("ul", { "data-slot": "pagination-content", className: i("flex flex-row items-center gap-1", a), ...n });
16
+ }
17
+ function p({ className: a, ...n }) {
18
+ return /* @__PURE__ */ t("li", { "data-slot": "pagination-item", className: i("", a), ...n });
19
+ }
20
+ const f = ({ className: a, ...n }) => /* @__PURE__ */ e(
21
+ "span",
22
+ {
23
+ "data-slot": "pagination-ellipsis",
24
+ "aria-hidden": !0,
25
+ className: i("flex h-9 w-9 items-center justify-center", a),
26
+ ...n,
27
+ children: [
28
+ /* @__PURE__ */ t(o, { className: "h-4 w-4" }),
29
+ /* @__PURE__ */ t("span", { className: "sr-only", children: "More pages" })
30
+ ]
31
+ }
32
+ );
33
+ export {
34
+ c as Pagination,
35
+ m as PaginationContent,
36
+ f as PaginationEllipsis,
37
+ p as PaginationItem
38
+ };
@@ -0,0 +1,14 @@
1
+ import { ReactNode, RefObject } from 'react';
2
+ type ScrollspyProps = {
3
+ children: ReactNode;
4
+ targetRef?: RefObject<HTMLElement | HTMLDivElement | Document | null | undefined>;
5
+ onUpdate?: (id: string) => void;
6
+ offset?: number;
7
+ smooth?: boolean;
8
+ className?: string;
9
+ dataAttribute?: string;
10
+ history?: boolean;
11
+ throttleTime?: number;
12
+ };
13
+ export declare function Scrollspy({ children, targetRef, onUpdate, className, offset, smooth, dataAttribute, history, }: ScrollspyProps): import("react/jsx-runtime").JSX.Element;
14
+ export {};
@@ -0,0 +1,84 @@
1
+ import { jsx as q } from "react/jsx-runtime";
2
+ import { useRef as $, useCallback as w, useEffect as A } from "react";
3
+ function D({
4
+ children: L,
5
+ targetRef: r,
6
+ onUpdate: E,
7
+ className: O,
8
+ offset: f = 0,
9
+ smooth: g = !0,
10
+ dataAttribute: n = "scrollspy",
11
+ history: y = !0
12
+ }) {
13
+ const a = $(null), c = $(null), S = $(null), d = w(
14
+ (e, t = !1) => {
15
+ e && (c.current?.forEach((o) => {
16
+ o.getAttribute(`data-${n}-anchor`) === e ? o.setAttribute("data-active", "true") : o.removeAttribute("data-active");
17
+ }), E && E(e), y && (t || S.current !== e) && window.history.replaceState({}, "", `#${e}`), S.current = e);
18
+ },
19
+ [c, n, y, E]
20
+ ), m = w(() => {
21
+ if (!c.current || c.current.length === 0) return;
22
+ const e = r?.current === document ? window : r?.current, t = e === window ? window.scrollY || document.documentElement.scrollTop : e.scrollTop;
23
+ let o = 0, i = 1 / 0;
24
+ if (c.current.forEach((l, s) => {
25
+ const x = l.getAttribute(`data-${n}-anchor`), v = document.getElementById(x);
26
+ if (!v) return;
27
+ let T = f;
28
+ const I = l.getAttribute(`data-${n}-offset`);
29
+ I && (T = parseInt(I, 10));
30
+ const k = Math.abs(v.offsetTop - T - t);
31
+ v.offsetTop - T <= t && k < i && (i = k, o = s);
32
+ }), e) {
33
+ const l = e === window ? document.documentElement.scrollHeight : e.scrollHeight, s = e === window ? window.innerHeight : e.clientHeight;
34
+ t + s >= l - 2 && (o = c.current.length - 1);
35
+ }
36
+ const p = c.current[o]?.getAttribute(`data-${n}-anchor`) || null;
37
+ d(p), c.current.forEach((l, s) => {
38
+ s !== o && l.removeAttribute("data-active");
39
+ });
40
+ }, [c, r, n, f, d]), u = w(
41
+ (e) => (t) => {
42
+ t && t.preventDefault();
43
+ const o = e.getAttribute(`data-${n}-anchor`)?.replace("#", "") || null;
44
+ if (!o) return;
45
+ const i = document.getElementById(o);
46
+ if (!i) return;
47
+ const h = r?.current === document ? window : r?.current;
48
+ let p = f;
49
+ const l = e.getAttribute(`data-${n}-offset`);
50
+ l && (p = parseInt(l, 10));
51
+ const s = i.offsetTop - p;
52
+ h && "scrollTo" in h && h.scrollTo({
53
+ top: s,
54
+ left: 0,
55
+ behavior: g ? "smooth" : "auto"
56
+ }), d(o, !0);
57
+ },
58
+ [n, f, g, r, d]
59
+ ), H = w(() => {
60
+ const e = CSS.escape(window.location.hash.replace("#", ""));
61
+ if (e) {
62
+ const t = document.querySelector(`[data-${n}-anchor="${e}"]`);
63
+ t && u(t)();
64
+ }
65
+ }, [n, u]);
66
+ return A(() => {
67
+ a.current && (c.current = Array.from(a.current.querySelectorAll(`[data-${n}-anchor]`))), c.current?.forEach((t) => {
68
+ t.addEventListener("click", u(t));
69
+ });
70
+ const e = r?.current === document ? window : r?.current;
71
+ return e?.addEventListener("scroll", m), setTimeout(() => {
72
+ H(), setTimeout(() => {
73
+ m();
74
+ }, 100);
75
+ }, 100), () => {
76
+ e?.removeEventListener("scroll", m), c.current?.forEach((t) => {
77
+ t.removeEventListener("click", u(t));
78
+ });
79
+ };
80
+ }, [r, a, m, n, u, H]), /* @__PURE__ */ q("div", { "data-slot": "scrollspy", className: O, ref: a, children: L });
81
+ }
82
+ export {
83
+ D as Scrollspy
84
+ };
@@ -0,0 +1,16 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { Tabs as TabsPrimitive } from 'radix-ui';
3
+ import * as React from 'react';
4
+ declare const tabsListVariants: (props?: ({
5
+ variant?: "default" | "button" | "line" | null | undefined;
6
+ shape?: "default" | "pill" | null | undefined;
7
+ size?: "sm" | "md" | "lg" | "xs" | null | undefined;
8
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
9
+ declare const tabsContentVariants: (props?: ({
10
+ variant?: "default" | null | undefined;
11
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
12
+ declare function Tabs({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
13
+ declare function TabsList({ className, variant, shape, size, ...props }: React.ComponentProps<typeof TabsPrimitive.List> & VariantProps<typeof tabsListVariants>): import("react/jsx-runtime").JSX.Element;
14
+ declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
15
+ declare function TabsContent({ className, variant, ...props }: React.ComponentProps<typeof TabsPrimitive.Content> & VariantProps<typeof tabsContentVariants>): import("react/jsx-runtime").JSX.Element;
16
+ export { Tabs, TabsContent, TabsList, TabsTrigger };