kuzenbo 0.0.1

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 (256) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +185 -0
  3. package/dist/accordion-trigger-D5XnBMS6.d.ts +24 -0
  4. package/dist/accordion-trigger-TjAe8JHy.js +53 -0
  5. package/dist/alert-dialog-trigger-BV0BsaVU.d.ts +638 -0
  6. package/dist/alert-dialog-trigger-D5BRoizR.js +98 -0
  7. package/dist/alert-title-CISzcj0X.js +28 -0
  8. package/dist/alert-title-CVC9G-Xf.d.ts +22 -0
  9. package/dist/announcement-title-CCZuGB1O.d.ts +18 -0
  10. package/dist/announcement-title-CIwzt9Wl.js +18 -0
  11. package/dist/autocomplete-value-BhyszIrf.d.ts +111 -0
  12. package/dist/autocomplete-value-DNJ3sAIH.js +141 -0
  13. package/dist/avatar-image-BKgKyzVw.d.ts +35 -0
  14. package/dist/avatar-image-Bw3G-Bl6.js +45 -0
  15. package/dist/breadcrumb-separator-D66-B1DA.d.ts +44 -0
  16. package/dist/breadcrumb-separator-Do-19Uow.js +74 -0
  17. package/dist/button-group-text-D98w78rH.js +25 -0
  18. package/dist/calendar-week-number-6AXvZ4Ij.js +72 -0
  19. package/dist/calendar-week-number-in2gpvA_.d.ts +36 -0
  20. package/dist/card-title-CbRPAh3M.js +52 -0
  21. package/dist/card-title-DSDluDoy.d.ts +40 -0
  22. package/dist/carousel-previous-B_jysGv_.js +89 -0
  23. package/dist/chart-tooltip-content-h5oLtil-.js +144 -0
  24. package/dist/collapsible-trigger-DcQWODN-.js +20 -0
  25. package/dist/collapsible-trigger-aZF7_mPR.d.ts +15 -0
  26. package/dist/command-shortcut-DoWM7Mnm.js +97 -0
  27. package/dist/context-menu-trigger-CYBhdcpg.js +147 -0
  28. package/dist/context-menu-trigger-Du2vcTco.d.ts +103 -0
  29. package/dist/dialog-trigger-CR23tYql.js +97 -0
  30. package/dist/dialog-trigger-xeE4e96-.d.ts +74 -0
  31. package/dist/drawer-trigger-7jI4Zmqs.js +79 -0
  32. package/dist/drawer-trigger-H_Wv5R00.d.ts +67 -0
  33. package/dist/dropdown-menu-trigger-CFdruqOk.d.ts +108 -0
  34. package/dist/dropdown-menu-trigger-IKeAoU_a.js +152 -0
  35. package/dist/dropzone-context-BRX1K7nw.d.ts +45 -0
  36. package/dist/dropzone-status-CW-3AXuh.js +33 -0
  37. package/dist/emoji-picker-skin-tone-selector-Cmv-1vDO.js +117 -0
  38. package/dist/emoji-picker-skin-tone-selector-yMYxt4oJ.d.ts +67 -0
  39. package/dist/empty-title-CH3DhcfT.d.ts +53 -0
  40. package/dist/empty-title-CHNBH7WJ.js +53 -0
  41. package/dist/form-field-title-CNrq8v88.js +101 -0
  42. package/dist/hooks/use-isomorphic-effect.d.ts +7 -0
  43. package/dist/hooks/use-isomorphic-effect.js +7 -0
  44. package/dist/hooks/use-mobile.d.ts +4 -0
  45. package/dist/hooks/use-mobile.js +20 -0
  46. package/dist/hover-card-trigger-B9jf3FEB.js +31 -0
  47. package/dist/hover-card-trigger-BqVoZ7h4.d.ts +20 -0
  48. package/dist/index.d.ts +122 -0
  49. package/dist/index.js +130 -0
  50. package/dist/input-group-textarea-voYOV11-.js +79 -0
  51. package/dist/input-otp-slot-DWbXhUmU.js +45 -0
  52. package/dist/input-otp-slot-eVdOjx8C.d.ts +24 -0
  53. package/dist/item-title-BYrYJZpa.js +89 -0
  54. package/dist/kbd-group-CT-Xtgug.js +12 -0
  55. package/dist/kbd-group-D3yVrb2D.d.ts +10 -0
  56. package/dist/marquee-item-BGJ5NSiz.js +29 -0
  57. package/dist/marquee-item-DD6JuLJ4.d.ts +32 -0
  58. package/dist/menubar-trigger-BLg3XdRv.d.ts +104 -0
  59. package/dist/menubar-trigger-aKMWAxdz.js +146 -0
  60. package/dist/meter-value-BmxUICOA.js +37 -0
  61. package/dist/meter-value-DYkZLCtx.d.ts +30 -0
  62. package/dist/navigation-menu-trigger-Bf60DnIz.d.ts +53 -0
  63. package/dist/navigation-menu-trigger-D80wiliM.js +82 -0
  64. package/dist/number-field-scrub-area-CXSyafBE.js +80 -0
  65. package/dist/optional-portal-C7TpYnOc.js +15 -0
  66. package/dist/pagination-previous-DPZrRgiD.js +88 -0
  67. package/dist/pagination-previous-qJeZZTou.d.ts +45 -0
  68. package/dist/pill-status-CD9XXuE7.js +74 -0
  69. package/dist/pill-status-rg-3AMSI.d.ts +77 -0
  70. package/dist/popover-trigger-B9PVErig.d.ts +39 -0
  71. package/dist/popover-trigger-C8dP_u7N.js +52 -0
  72. package/dist/progress-value-CFlgP0nv.d.ts +28 -0
  73. package/dist/progress-value-CfCodKnX.js +37 -0
  74. package/dist/radio-group-item-09fw05Va.d.ts +10 -0
  75. package/dist/radio-group-item-CQjCazjw.js +24 -0
  76. package/dist/rating-star-6ov3lbpn.d.ts +57 -0
  77. package/dist/rating-star-BuLQfAnZ.js +110 -0
  78. package/dist/resizable-panel-B4lAr8Vb.d.ts +19 -0
  79. package/dist/resizable-panel-BO97wcPj.js +21 -0
  80. package/dist/scroll-bar-BQzpb5hF.js +19 -0
  81. package/dist/scroll-bar-vYvxEOph.d.ts +11 -0
  82. package/dist/select-value-BUnWentK.js +117 -0
  83. package/dist/select-value-DG31IHy3.d.ts +70 -0
  84. package/dist/sheet-trigger-CLgKANrf.d.ts +64 -0
  85. package/dist/sheet-trigger-CUU7xwUn.js +95 -0
  86. package/dist/sidebar-trigger-BCjVuIqi.js +366 -0
  87. package/dist/styles.css +145 -0
  88. package/dist/table-row-BxhKJPfE.d.ts +46 -0
  89. package/dist/table-row-D63xalkM.js +60 -0
  90. package/dist/tabs-trigger-B2mBxFgq.js +38 -0
  91. package/dist/tabs-trigger-BGo2XGvh.d.ts +41 -0
  92. package/dist/timeline-title-BH8JxX2n.js +389 -0
  93. package/dist/toggle-group-item-Bz_ohmnY.d.ts +53 -0
  94. package/dist/toggle-group-item-aggwtgam.js +34 -0
  95. package/dist/toolbar-separator-7CgKz2aX.d.ts +40 -0
  96. package/dist/toolbar-separator-Bre5OtBI.js +41 -0
  97. package/dist/tooltip-trigger-CrAGfaqr.d.ts +27 -0
  98. package/dist/tooltip-trigger-Z-aPDRog.js +37 -0
  99. package/dist/ui/accordion.d.ts +27 -0
  100. package/dist/ui/accordion.js +17 -0
  101. package/dist/ui/affix.d.ts +49 -0
  102. package/dist/ui/affix.js +57 -0
  103. package/dist/ui/alert-dialog.d.ts +123 -0
  104. package/dist/ui/alert-dialog.js +23 -0
  105. package/dist/ui/alert.d.ts +58 -0
  106. package/dist/ui/alert.js +59 -0
  107. package/dist/ui/announcement.d.ts +27 -0
  108. package/dist/ui/announcement.js +16 -0
  109. package/dist/ui/aspect-ratio.d.ts +13 -0
  110. package/dist/ui/aspect-ratio.js +13 -0
  111. package/dist/ui/autocomplete.d.ts +67 -0
  112. package/dist/ui/autocomplete.js +30 -0
  113. package/dist/ui/avatar.d.ts +37 -0
  114. package/dist/ui/avatar.js +22 -0
  115. package/dist/ui/badge.d.ts +54 -0
  116. package/dist/ui/badge.js +33 -0
  117. package/dist/ui/breadcrumb.d.ts +41 -0
  118. package/dist/ui/breadcrumb.js +20 -0
  119. package/dist/ui/button-group.d.ts +94 -0
  120. package/dist/ui/button-group.js +24 -0
  121. package/dist/ui/button.d.ts +91 -0
  122. package/dist/ui/button.js +64 -0
  123. package/dist/ui/calendar.d.ts +52 -0
  124. package/dist/ui/calendar.js +64 -0
  125. package/dist/ui/card.d.ts +40 -0
  126. package/dist/ui/card.js +20 -0
  127. package/dist/ui/carousel.d.ts +100 -0
  128. package/dist/ui/carousel.js +76 -0
  129. package/dist/ui/chart.d.ts +61 -0
  130. package/dist/ui/chart.js +34 -0
  131. package/dist/ui/checkbox-group.d.ts +12 -0
  132. package/dist/ui/checkbox-group.js +13 -0
  133. package/dist/ui/checkbox.d.ts +12 -0
  134. package/dist/ui/checkbox.js +27 -0
  135. package/dist/ui/collapsible.d.ts +19 -0
  136. package/dist/ui/collapsible.js +16 -0
  137. package/dist/ui/combobox.d.ts +95 -0
  138. package/dist/ui/combobox.js +31 -0
  139. package/dist/ui/command.d.ts +146 -0
  140. package/dist/ui/command.js +24 -0
  141. package/dist/ui/context-menu.d.ts +83 -0
  142. package/dist/ui/context-menu.js +26 -0
  143. package/dist/ui/country-flag.d.ts +18 -0
  144. package/dist/ui/country-flag.js +36 -0
  145. package/dist/ui/dialog.d.ts +53 -0
  146. package/dist/ui/dialog.js +23 -0
  147. package/dist/ui/drawer.d.ts +52 -0
  148. package/dist/ui/drawer.js +24 -0
  149. package/dist/ui/dropdown-menu.d.ts +88 -0
  150. package/dist/ui/dropdown-menu.js +26 -0
  151. package/dist/ui/dropzone.d.ts +233 -0
  152. package/dist/ui/dropzone.js +180 -0
  153. package/dist/ui/emoji-picker.d.ts +46 -0
  154. package/dist/ui/emoji-picker.js +23 -0
  155. package/dist/ui/empty.d.ts +50 -0
  156. package/dist/ui/empty.js +18 -0
  157. package/dist/ui/form-field.d.ts +134 -0
  158. package/dist/ui/form-field.js +33 -0
  159. package/dist/ui/google-logo.d.ts +13 -0
  160. package/dist/ui/google-logo.js +36 -0
  161. package/dist/ui/hover-card.d.ts +24 -0
  162. package/dist/ui/hover-card.js +16 -0
  163. package/dist/ui/input-group.d.ts +141 -0
  164. package/dist/ui/input-group.js +21 -0
  165. package/dist/ui/input-otp.d.ts +31 -0
  166. package/dist/ui/input-otp.js +19 -0
  167. package/dist/ui/input.d.ts +12 -0
  168. package/dist/ui/input.js +14 -0
  169. package/dist/ui/item.d.ts +158 -0
  170. package/dist/ui/item.js +50 -0
  171. package/dist/ui/kbd.d.ts +18 -0
  172. package/dist/ui/kbd.js +14 -0
  173. package/dist/ui/label.d.ts +12 -0
  174. package/dist/ui/label.js +15 -0
  175. package/dist/ui/marquee.d.ts +30 -0
  176. package/dist/ui/marquee.js +17 -0
  177. package/dist/ui/menubar.d.ts +228 -0
  178. package/dist/ui/menubar.js +29 -0
  179. package/dist/ui/meter.d.ts +29 -0
  180. package/dist/ui/meter.js +19 -0
  181. package/dist/ui/navigation-menu.d.ts +12 -0
  182. package/dist/ui/navigation-menu.js +15 -0
  183. package/dist/ui/number-field.d.ts +41 -0
  184. package/dist/ui/number-field.js +33 -0
  185. package/dist/ui/pagination.d.ts +38 -0
  186. package/dist/ui/pagination.js +20 -0
  187. package/dist/ui/pill.d.ts +49 -0
  188. package/dist/ui/pill.js +21 -0
  189. package/dist/ui/popover.d.ts +37 -0
  190. package/dist/ui/popover.js +19 -0
  191. package/dist/ui/portal.d.ts +29 -0
  192. package/dist/ui/portal.js +52 -0
  193. package/dist/ui/progress.d.ts +31 -0
  194. package/dist/ui/progress.js +22 -0
  195. package/dist/ui/qr-code.d.ts +20 -0
  196. package/dist/ui/qr-code.js +78 -0
  197. package/dist/ui/radio-group.d.ts +18 -0
  198. package/dist/ui/radio-group.js +15 -0
  199. package/dist/ui/rating.d.ts +80 -0
  200. package/dist/ui/rating.js +59 -0
  201. package/dist/ui/resizable.d.ts +25 -0
  202. package/dist/ui/resizable.js +18 -0
  203. package/dist/ui/scroll-area.d.ts +19 -0
  204. package/dist/ui/scroll-area.js +24 -0
  205. package/dist/ui/select.d.ts +65 -0
  206. package/dist/ui/select.js +23 -0
  207. package/dist/ui/separator.d.ts +12 -0
  208. package/dist/ui/separator.js +14 -0
  209. package/dist/ui/sheet.d.ts +54 -0
  210. package/dist/ui/sheet.js +23 -0
  211. package/dist/ui/sidebar.d.ts +247 -0
  212. package/dist/ui/sidebar.js +83 -0
  213. package/dist/ui/skeleton.d.ts +11 -0
  214. package/dist/ui/skeleton.js +12 -0
  215. package/dist/ui/slider.d.ts +15 -0
  216. package/dist/ui/slider.js +47 -0
  217. package/dist/ui/spacer.d.ts +18 -0
  218. package/dist/ui/spacer.js +25 -0
  219. package/dist/ui/spinner.d.ts +12 -0
  220. package/dist/ui/spinner.js +17 -0
  221. package/dist/ui/surface.d.ts +41 -0
  222. package/dist/ui/surface.js +31 -0
  223. package/dist/ui/switch.d.ts +14 -0
  224. package/dist/ui/switch.js +20 -0
  225. package/dist/ui/table.d.ts +41 -0
  226. package/dist/ui/table.js +34 -0
  227. package/dist/ui/tabs.d.ts +43 -0
  228. package/dist/ui/tabs.js +20 -0
  229. package/dist/ui/textarea.d.ts +13 -0
  230. package/dist/ui/textarea.js +14 -0
  231. package/dist/ui/theme-icon.d.ts +77 -0
  232. package/dist/ui/theme-icon.js +56 -0
  233. package/dist/ui/timeline.d.ts +96 -0
  234. package/dist/ui/timeline.js +88 -0
  235. package/dist/ui/toast.d.ts +50 -0
  236. package/dist/ui/toast.js +23 -0
  237. package/dist/ui/toggle-group.d.ts +31 -0
  238. package/dist/ui/toggle-group.js +31 -0
  239. package/dist/ui/toggle.d.ts +46 -0
  240. package/dist/ui/toggle.js +34 -0
  241. package/dist/ui/toolbar.d.ts +33 -0
  242. package/dist/ui/toolbar.js +19 -0
  243. package/dist/ui/tooltip.d.ts +29 -0
  244. package/dist/ui/tooltip.js +17 -0
  245. package/dist/ui/video-player.d.ts +48 -0
  246. package/dist/ui/video-player.js +37 -0
  247. package/dist/use-chart-BRpzPrMJ.d.ts +77 -0
  248. package/dist/use-combobox-anchor-2KUf_cBk.js +198 -0
  249. package/dist/use-combobox-anchor-ByuqnpKH.d.ts +120 -0
  250. package/dist/use-number-field-Dzl9JLNK.d.ts +55 -0
  251. package/dist/use-timeline-BRlmxoQ7.d.ts +81 -0
  252. package/dist/use-toast-BGG4leSx.d.ts +118 -0
  253. package/dist/use-toast-DjRKuQG6.js +129 -0
  254. package/dist/video-player-volume-range-D971L6mz.d.ts +65 -0
  255. package/dist/video-player-volume-range-V7x0b1-r.js +66 -0
  256. package/package.json +128 -0
@@ -0,0 +1,25 @@
1
+ import { Separator } from "./ui/separator.js";
2
+ import { cn } from "tailwind-variants";
3
+ import { jsx } from "react/jsx-runtime";
4
+ import { mergeProps } from "@base-ui/react/merge-props";
5
+ import { useRender } from "@base-ui/react/use-render";
6
+
7
+ //#region src/components/button-group/button-group-separator.tsx
8
+ const ButtonGroupSeparator = ({ className, orientation = "vertical", ...props }) => /* @__PURE__ */ jsx(Separator, {
9
+ className: cn("relative self-stretch bg-input data-[orientation=horizontal]:mx-px data-[orientation=vertical]:my-px data-[orientation=vertical]:h-auto data-[orientation=horizontal]:w-auto", className),
10
+ "data-slot": "button-group-separator",
11
+ orientation,
12
+ ...props
13
+ });
14
+
15
+ //#endregion
16
+ //#region src/components/button-group/button-group-text.tsx
17
+ const ButtonGroupText = ({ className, render, ...props }) => useRender({
18
+ defaultTagName: "div",
19
+ props: mergeProps({ className: cn("flex items-center gap-2 rounded-lg border bg-muted px-2.5 font-medium text-sm [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none", className) }, props),
20
+ render,
21
+ state: { slot: "button-group-text" }
22
+ });
23
+
24
+ //#endregion
25
+ export { ButtonGroupSeparator as n, ButtonGroupText as t };
@@ -0,0 +1,72 @@
1
+ import { Button } from "./ui/button.js";
2
+ import { cn } from "tailwind-variants";
3
+ import { jsx } from "react/jsx-runtime";
4
+ import { ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon } from "@hugeicons/core-free-icons";
5
+ import { HugeiconsIcon } from "@hugeicons/react";
6
+ import { useEffect, useRef } from "react";
7
+ import { getDefaultClassNames } from "react-day-picker";
8
+
9
+ //#region src/components/calendar/calendar-chevron.tsx
10
+ const CalendarChevron = ({ className, orientation, ...props }) => {
11
+ if (orientation === "left") return /* @__PURE__ */ jsx(HugeiconsIcon, {
12
+ className: cn("size-4", className),
13
+ icon: ArrowLeftIcon,
14
+ strokeWidth: 2,
15
+ ...props
16
+ });
17
+ if (orientation === "right") return /* @__PURE__ */ jsx(HugeiconsIcon, {
18
+ className: cn("size-4", className),
19
+ icon: ArrowRightIcon,
20
+ strokeWidth: 2,
21
+ ...props
22
+ });
23
+ return /* @__PURE__ */ jsx(HugeiconsIcon, {
24
+ className: cn("size-4", className),
25
+ icon: ArrowDownIcon,
26
+ strokeWidth: 2,
27
+ ...props
28
+ });
29
+ };
30
+
31
+ //#endregion
32
+ //#region src/components/calendar/calendar-day-button.tsx
33
+ const CalendarDayButton = ({ className, day, modifiers, ...props }) => {
34
+ const defaultClassNames = getDefaultClassNames();
35
+ const ref = useRef(null);
36
+ useEffect(() => {
37
+ if (modifiers.focused) ref.current?.focus();
38
+ }, [modifiers.focused]);
39
+ return /* @__PURE__ */ jsx(Button, {
40
+ className: cn("relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 border-0 font-normal leading-none data-[range-end=true]:rounded-(--cell-radius) data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-r-(--cell-radius) data-[range-start=true]:rounded-l-(--cell-radius) data-[range-end=true]:bg-primary data-[range-middle=true]:bg-muted data-[range-start=true]:bg-primary data-[selected-single=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:text-foreground data-[range-start=true]:text-primary-foreground data-[selected-single=true]:text-primary-foreground group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50 dark:hover:text-foreground [&>span]:text-xs [&>span]:opacity-70", defaultClassNames.day, className),
41
+ "data-day": day.date.toLocaleDateString(),
42
+ "data-range-end": modifiers.range_end,
43
+ "data-range-middle": modifiers.range_middle,
44
+ "data-range-start": modifiers.range_start,
45
+ "data-selected-single": modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle,
46
+ size: "icon",
47
+ variant: "ghost",
48
+ ...props
49
+ });
50
+ };
51
+
52
+ //#endregion
53
+ //#region src/components/calendar/calendar-root.tsx
54
+ const CalendarRoot = ({ className, rootRef, ...props }) => /* @__PURE__ */ jsx("div", {
55
+ className: cn(className),
56
+ "data-slot": "calendar",
57
+ ref: rootRef,
58
+ ...props
59
+ });
60
+
61
+ //#endregion
62
+ //#region src/components/calendar/calendar-week-number.tsx
63
+ const CalendarWeekNumber = ({ children, ...props }) => /* @__PURE__ */ jsx("td", {
64
+ ...props,
65
+ children: /* @__PURE__ */ jsx("div", {
66
+ className: "flex size-(--cell-size) items-center justify-center text-center",
67
+ children
68
+ })
69
+ });
70
+
71
+ //#endregion
72
+ export { CalendarChevron as i, CalendarRoot as n, CalendarDayButton as r, CalendarWeekNumber as t };
@@ -0,0 +1,36 @@
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import { ComponentProps } from "react";
3
+ import { Chevron, DayButton, RootProps } from "react-day-picker";
4
+
5
+ //#region src/components/calendar/calendar-chevron.d.ts
6
+ type CalendarChevronProps = ComponentProps<typeof Chevron>;
7
+ declare const CalendarChevron: ({
8
+ className,
9
+ orientation,
10
+ ...props
11
+ }: CalendarChevronProps) => react_jsx_runtime0.JSX.Element;
12
+ //#endregion
13
+ //#region src/components/calendar/calendar-day-button.d.ts
14
+ declare const CalendarDayButton: ({
15
+ className,
16
+ day,
17
+ modifiers,
18
+ ...props
19
+ }: ComponentProps<typeof DayButton>) => react_jsx_runtime0.JSX.Element;
20
+ //#endregion
21
+ //#region src/components/calendar/calendar-root.d.ts
22
+ type CalendarRootProps = RootProps;
23
+ declare const CalendarRoot: ({
24
+ className,
25
+ rootRef,
26
+ ...props
27
+ }: CalendarRootProps) => react_jsx_runtime0.JSX.Element;
28
+ //#endregion
29
+ //#region src/components/calendar/calendar-week-number.d.ts
30
+ type CalendarWeekNumberProps = ComponentProps<"td">;
31
+ declare const CalendarWeekNumber: ({
32
+ children,
33
+ ...props
34
+ }: CalendarWeekNumberProps) => react_jsx_runtime0.JSX.Element;
35
+ //#endregion
36
+ export { CalendarChevron as i, CalendarRoot as n, CalendarDayButton as r, CalendarWeekNumber as t };
@@ -0,0 +1,52 @@
1
+ import { cn } from "tailwind-variants";
2
+ import { jsx } from "react/jsx-runtime";
3
+
4
+ //#region src/components/card/card-action.tsx
5
+ const CardAction = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
6
+ className: cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end", className),
7
+ "data-slot": "card-action",
8
+ ...props
9
+ });
10
+
11
+ //#endregion
12
+ //#region src/components/card/card-content.tsx
13
+ const CardContent = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
14
+ className: cn("px-6 group-data-[size=sm]/card:px-4", className),
15
+ "data-slot": "card-content",
16
+ ...props
17
+ });
18
+
19
+ //#endregion
20
+ //#region src/components/card/card-description.tsx
21
+ const CardDescription = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
22
+ className: cn("text-muted-foreground text-sm", className),
23
+ "data-slot": "card-description",
24
+ ...props
25
+ });
26
+
27
+ //#endregion
28
+ //#region src/components/card/card-footer.tsx
29
+ const CardFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
30
+ className: cn("flex items-center rounded-b-xl px-5 pb-5 group-data-[size=sm]/card:px-3 group-data-[size=sm]/card:pb-3 [.border-t]:pt-5 group-data-[size=sm]/card:[.border-t]:pt-3", className),
31
+ "data-slot": "card-footer",
32
+ ...props
33
+ });
34
+
35
+ //#endregion
36
+ //#region src/components/card/card-header.tsx
37
+ const CardHeader = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
38
+ className: cn("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-5 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] group-data-[size=sm]/card:px-3 [.border-b]:pb-5 group-data-[size=sm]/card:[.border-b]:pb-3", className),
39
+ "data-slot": "card-header",
40
+ ...props
41
+ });
42
+
43
+ //#endregion
44
+ //#region src/components/card/card-title.tsx
45
+ const CardTitle = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
46
+ className: cn("font-medium text-base leading-snug group-data-[size=sm]/card:text-sm", className),
47
+ "data-slot": "card-title",
48
+ ...props
49
+ });
50
+
51
+ //#endregion
52
+ export { CardContent as a, CardDescription as i, CardHeader as n, CardAction as o, CardFooter as r, CardTitle as t };
@@ -0,0 +1,40 @@
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import { ComponentProps } from "react";
3
+
4
+ //#region src/components/card/card-action.d.ts
5
+ declare const CardAction: ({
6
+ className,
7
+ ...props
8
+ }: ComponentProps<"div">) => react_jsx_runtime0.JSX.Element;
9
+ //#endregion
10
+ //#region src/components/card/card-content.d.ts
11
+ declare const CardContent: ({
12
+ className,
13
+ ...props
14
+ }: ComponentProps<"div">) => react_jsx_runtime0.JSX.Element;
15
+ //#endregion
16
+ //#region src/components/card/card-description.d.ts
17
+ declare const CardDescription: ({
18
+ className,
19
+ ...props
20
+ }: ComponentProps<"div">) => react_jsx_runtime0.JSX.Element;
21
+ //#endregion
22
+ //#region src/components/card/card-footer.d.ts
23
+ declare const CardFooter: ({
24
+ className,
25
+ ...props
26
+ }: ComponentProps<"div">) => react_jsx_runtime0.JSX.Element;
27
+ //#endregion
28
+ //#region src/components/card/card-header.d.ts
29
+ declare const CardHeader: ({
30
+ className,
31
+ ...props
32
+ }: ComponentProps<"div">) => react_jsx_runtime0.JSX.Element;
33
+ //#endregion
34
+ //#region src/components/card/card-title.d.ts
35
+ declare const CardTitle: ({
36
+ className,
37
+ ...props
38
+ }: ComponentProps<"div">) => react_jsx_runtime0.JSX.Element;
39
+ //#endregion
40
+ export { CardContent as a, CardDescription as i, CardHeader as n, CardAction as o, CardFooter as r, CardTitle as t };
@@ -0,0 +1,89 @@
1
+ import { Button } from "./ui/button.js";
2
+ import { cn } from "tailwind-variants";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { ArrowLeft01Icon, ArrowRight01Icon } from "@hugeicons/core-free-icons";
5
+ import { HugeiconsIcon } from "@hugeicons/react";
6
+ import { createContext, useContext } from "react";
7
+
8
+ //#region src/components/carousel/use-carousel.tsx
9
+ const CarouselContext = createContext(null);
10
+ const useCarousel = () => {
11
+ const context = useContext(CarouselContext);
12
+ if (!context) throw new Error("useCarousel must be used within a <Carousel />");
13
+ return context;
14
+ };
15
+
16
+ //#endregion
17
+ //#region src/components/carousel/carousel-content.tsx
18
+ const CarouselContent = ({ className, ...props }) => {
19
+ const { carouselRef, orientation } = useCarousel();
20
+ return /* @__PURE__ */ jsx("div", {
21
+ className: "overflow-hidden",
22
+ "data-slot": "carousel-content",
23
+ ref: carouselRef,
24
+ children: /* @__PURE__ */ jsx("div", {
25
+ className: cn("flex", orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col", className),
26
+ ...props
27
+ })
28
+ });
29
+ };
30
+
31
+ //#endregion
32
+ //#region src/components/carousel/carousel-item.tsx
33
+ const CarouselItem = ({ className, ...props }) => {
34
+ const { orientation } = useCarousel();
35
+ return /* @__PURE__ */ jsx("div", {
36
+ "aria-roledescription": "slide",
37
+ className: cn("min-w-0 shrink-0 grow-0 basis-full", orientation === "horizontal" ? "pl-4" : "pt-4", className),
38
+ "data-slot": "carousel-item",
39
+ role: "group",
40
+ ...props
41
+ });
42
+ };
43
+
44
+ //#endregion
45
+ //#region src/components/carousel/carousel-next.tsx
46
+ const CarouselNext = ({ className, variant = "outline", size = "icon-sm", ...props }) => {
47
+ const { orientation, scrollNext, canScrollNext } = useCarousel();
48
+ return /* @__PURE__ */ jsxs(Button, {
49
+ className: cn("absolute touch-manipulation rounded-full", orientation === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90", className),
50
+ "data-slot": "carousel-next",
51
+ disabled: !canScrollNext,
52
+ onClick: scrollNext,
53
+ size,
54
+ variant,
55
+ ...props,
56
+ children: [/* @__PURE__ */ jsx(HugeiconsIcon, {
57
+ icon: ArrowRight01Icon,
58
+ strokeWidth: 2
59
+ }), /* @__PURE__ */ jsx("span", {
60
+ className: "sr-only",
61
+ children: "Next slide"
62
+ })]
63
+ });
64
+ };
65
+
66
+ //#endregion
67
+ //#region src/components/carousel/carousel-previous.tsx
68
+ const CarouselPrevious = ({ className, variant = "outline", size = "icon-sm", ...props }) => {
69
+ const { orientation, scrollPrev, canScrollPrev } = useCarousel();
70
+ return /* @__PURE__ */ jsxs(Button, {
71
+ className: cn("absolute touch-manipulation rounded-full", orientation === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90", className),
72
+ "data-slot": "carousel-previous",
73
+ disabled: !canScrollPrev,
74
+ onClick: scrollPrev,
75
+ size,
76
+ variant,
77
+ ...props,
78
+ children: [/* @__PURE__ */ jsx(HugeiconsIcon, {
79
+ icon: ArrowLeft01Icon,
80
+ strokeWidth: 2
81
+ }), /* @__PURE__ */ jsx("span", {
82
+ className: "sr-only",
83
+ children: "Previous slide"
84
+ })]
85
+ });
86
+ };
87
+
88
+ //#endregion
89
+ export { CarouselContext as a, CarouselContent as i, CarouselNext as n, useCarousel as o, CarouselItem as r, CarouselPrevious as t };
@@ -0,0 +1,144 @@
1
+ import { cn } from "tailwind-variants";
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
+ import { createContext, useContext, useMemo } from "react";
4
+ import { Legend, Tooltip } from "recharts";
5
+
6
+ //#region src/components/chart/chart-legend.tsx
7
+ const ChartLegend = Legend;
8
+
9
+ //#endregion
10
+ //#region src/components/chart/chart-utils.tsx
11
+ const getPayloadConfigFromPayload = (config, payload, key) => {
12
+ if (typeof payload !== "object" || payload === null) return;
13
+ const payloadPayload = "payload" in payload && typeof payload.payload === "object" && payload.payload !== null ? payload.payload : void 0;
14
+ let configLabelKey = key;
15
+ if (key in payload && typeof payload[key] === "string") configLabelKey = payload[key];
16
+ else if (payloadPayload && key in payloadPayload && typeof payloadPayload[key] === "string") configLabelKey = payloadPayload[key];
17
+ return configLabelKey in config ? config[configLabelKey] : config[key];
18
+ };
19
+
20
+ //#endregion
21
+ //#region src/components/chart/use-chart.tsx
22
+ const ChartContext = createContext(null);
23
+ const useChart = () => {
24
+ const context = useContext(ChartContext);
25
+ if (!context) throw new Error("useChart must be used within a <ChartContainer />");
26
+ return context;
27
+ };
28
+
29
+ //#endregion
30
+ //#region src/components/chart/chart-legend-content.tsx
31
+ const ChartLegendContent = ({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }) => {
32
+ const { config } = useChart();
33
+ if (!payload?.length) return null;
34
+ return /* @__PURE__ */ jsx("div", {
35
+ className: cn("flex items-center justify-center gap-4", verticalAlign === "top" ? "pb-3" : "pt-3", className),
36
+ children: payload.filter((item) => item.type !== "none").map((item) => {
37
+ const itemConfig = getPayloadConfigFromPayload(config, item, `${nameKey || item.dataKey || "value"}`);
38
+ return /* @__PURE__ */ jsxs("div", {
39
+ className: cn("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),
40
+ children: [itemConfig?.icon && !hideIcon ? /* @__PURE__ */ jsx(itemConfig.icon, {}) : /* @__PURE__ */ jsx("div", {
41
+ className: "h-2 w-2 shrink-0 rounded-[2px]",
42
+ style: { backgroundColor: item.color }
43
+ }), itemConfig?.label]
44
+ }, item.value);
45
+ })
46
+ });
47
+ };
48
+
49
+ //#endregion
50
+ //#region src/components/chart/chart-types.tsx
51
+ const THEMES = {
52
+ light: "",
53
+ dark: ".dark"
54
+ };
55
+
56
+ //#endregion
57
+ //#region src/components/chart/chart-style.tsx
58
+ const ChartStyle = ({ id, config }) => {
59
+ const colorConfig = Object.entries(config).filter(([, itemConfig]) => itemConfig.theme || itemConfig.color);
60
+ if (!colorConfig.length) return null;
61
+ return /* @__PURE__ */ jsx("style", { dangerouslySetInnerHTML: { __html: Object.entries(THEMES).map(([theme, prefix]) => `
62
+ ${prefix} [data-chart=${id}] {
63
+ ${colorConfig.map(([key, itemConfig]) => {
64
+ const color = itemConfig.theme?.[theme] || itemConfig.color;
65
+ return color ? ` --color-${key}: ${color};` : null;
66
+ }).join("\n")}
67
+ }
68
+ `).join("\n") } });
69
+ };
70
+
71
+ //#endregion
72
+ //#region src/components/chart/chart-tooltip.tsx
73
+ const ChartTooltip = Tooltip;
74
+
75
+ //#endregion
76
+ //#region src/components/chart/chart-tooltip-content.tsx
77
+ const ChartTooltipContent = ({ active, payload, className, indicator = "dot", hideLabel = false, hideIndicator = false, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey }) => {
78
+ const { config } = useChart();
79
+ const tooltipLabel = useMemo(() => {
80
+ if (hideLabel || !payload?.length) return null;
81
+ const [item] = payload;
82
+ const itemConfig = getPayloadConfigFromPayload(config, item, `${labelKey || item?.dataKey || item?.name || "value"}`);
83
+ const value = !labelKey && typeof label === "string" ? config[label]?.label || label : itemConfig?.label;
84
+ if (labelFormatter) return /* @__PURE__ */ jsx("div", {
85
+ className: cn("font-medium", labelClassName),
86
+ children: labelFormatter(value, payload)
87
+ });
88
+ if (!value) return null;
89
+ return /* @__PURE__ */ jsx("div", {
90
+ className: cn("font-medium", labelClassName),
91
+ children: value
92
+ });
93
+ }, [
94
+ label,
95
+ labelFormatter,
96
+ payload,
97
+ hideLabel,
98
+ labelClassName,
99
+ config,
100
+ labelKey
101
+ ]);
102
+ if (!(active && payload?.length)) return null;
103
+ const nestLabel = payload.length === 1 && indicator !== "dot";
104
+ return /* @__PURE__ */ jsxs("div", {
105
+ className: cn("grid min-w-32 items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl", className),
106
+ children: [nestLabel ? null : tooltipLabel, /* @__PURE__ */ jsx("div", {
107
+ className: "grid gap-1.5",
108
+ children: payload.filter((item) => item.type !== "none").map((item, idx) => {
109
+ const itemConfig = getPayloadConfigFromPayload(config, item, `${nameKey || item.name || item.dataKey || "value"}`);
110
+ const indicatorColor = color || item.payload.fill || item.color;
111
+ return /* @__PURE__ */ jsx("div", {
112
+ className: cn("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground", indicator === "dot" && "items-center"),
113
+ children: formatter && item?.value !== void 0 && item.name ? formatter(item.value, item.name, item, idx, item.payload) : /* @__PURE__ */ jsxs(Fragment, { children: [itemConfig?.icon ? /* @__PURE__ */ jsx(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ jsx("div", {
114
+ className: cn("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)", {
115
+ "h-2.5 w-2.5": indicator === "dot",
116
+ "w-1": indicator === "line",
117
+ "w-0 border-[1.5px] border-dashed bg-transparent": indicator === "dashed",
118
+ "my-0.5": nestLabel && indicator === "dashed"
119
+ }),
120
+ style: {
121
+ "--color-bg": indicatorColor,
122
+ "--color-border": indicatorColor
123
+ }
124
+ }), /* @__PURE__ */ jsxs("div", {
125
+ className: cn("flex flex-1 justify-between leading-none", nestLabel ? "items-end" : "items-center"),
126
+ children: [/* @__PURE__ */ jsxs("div", {
127
+ className: "grid gap-1.5",
128
+ children: [nestLabel ? tooltipLabel : null, /* @__PURE__ */ jsx("span", {
129
+ className: "text-muted-foreground",
130
+ children: itemConfig?.label || item.name
131
+ })]
132
+ }), item.value && /* @__PURE__ */ jsx("span", {
133
+ className: "font-medium font-mono text-foreground tabular-nums",
134
+ children: item.value.toLocaleString()
135
+ })]
136
+ })] })
137
+ }, item.dataKey);
138
+ })
139
+ })]
140
+ });
141
+ };
142
+
143
+ //#endregion
144
+ export { ChartContext as a, ChartLegendContent as i, ChartTooltip as n, useChart as o, ChartStyle as r, ChartLegend as s, ChartTooltipContent as t };
@@ -0,0 +1,20 @@
1
+ import { cn } from "tailwind-variants";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { Collapsible } from "@base-ui/react/collapsible";
4
+
5
+ //#region src/components/collapsible/collapsible-content.tsx
6
+ const CollapsibleContent = ({ ...props }) => /* @__PURE__ */ jsx(Collapsible.Panel, {
7
+ "data-slot": "collapsible-content",
8
+ ...props
9
+ });
10
+
11
+ //#endregion
12
+ //#region src/components/collapsible/collapsible-trigger.tsx
13
+ const CollapsibleTrigger = ({ className, ...props }) => /* @__PURE__ */ jsx(Collapsible.Trigger, {
14
+ className: cn("cursor-pointer", className),
15
+ "data-slot": "collapsible-trigger",
16
+ ...props
17
+ });
18
+
19
+ //#endregion
20
+ export { CollapsibleContent as n, CollapsibleTrigger as t };
@@ -0,0 +1,15 @@
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import { Collapsible } from "@base-ui/react/collapsible";
3
+
4
+ //#region src/components/collapsible/collapsible-content.d.ts
5
+ declare const CollapsibleContent: ({
6
+ ...props
7
+ }: Collapsible.Panel.Props) => react_jsx_runtime0.JSX.Element;
8
+ //#endregion
9
+ //#region src/components/collapsible/collapsible-trigger.d.ts
10
+ declare const CollapsibleTrigger: ({
11
+ className,
12
+ ...props
13
+ }: Collapsible.Trigger.Props) => react_jsx_runtime0.JSX.Element;
14
+ //#endregion
15
+ export { CollapsibleContent as n, CollapsibleTrigger as t };
@@ -0,0 +1,97 @@
1
+ import { a as InputGroupAddon } from "./input-group-textarea-voYOV11-.js";
2
+ import { InputGroup } from "./ui/input-group.js";
3
+ import { a as DialogDescription, n as DialogTitle, o as DialogContent, r as DialogHeader } from "./dialog-trigger-CR23tYql.js";
4
+ import { Dialog } from "./ui/dialog.js";
5
+ import { cn } from "tailwind-variants";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ import { SearchIcon, Tick02Icon } from "@hugeicons/core-free-icons";
8
+ import { HugeiconsIcon } from "@hugeicons/react";
9
+ import { Command } from "cmdk";
10
+
11
+ //#region src/components/command/command-dialog.tsx
12
+ const CommandDialog = ({ title = "Command Palette", description = "Search for a command to run...", children, className, showCloseButton = false, ...props }) => /* @__PURE__ */ jsxs(Dialog, {
13
+ ...props,
14
+ children: [/* @__PURE__ */ jsxs(DialogHeader, {
15
+ className: "sr-only",
16
+ children: [/* @__PURE__ */ jsx(DialogTitle, { children: title }), /* @__PURE__ */ jsx(DialogDescription, { children: description })]
17
+ }), /* @__PURE__ */ jsx(DialogContent, {
18
+ className: cn("overflow-hidden rounded-xl! p-0", className),
19
+ showCloseButton,
20
+ children
21
+ })]
22
+ });
23
+
24
+ //#endregion
25
+ //#region src/components/command/command-empty.tsx
26
+ const CommandEmpty = ({ className, ...props }) => /* @__PURE__ */ jsx(Command.Empty, {
27
+ className: cn("py-6 text-center text-sm", className),
28
+ "data-slot": "command-empty",
29
+ ...props
30
+ });
31
+
32
+ //#endregion
33
+ //#region src/components/command/command-group.tsx
34
+ const CommandGroup = ({ className, ...props }) => /* @__PURE__ */ jsx(Command.Group, {
35
+ className: cn("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:text-xs", className),
36
+ "data-slot": "command-group",
37
+ ...props
38
+ });
39
+
40
+ //#endregion
41
+ //#region src/components/command/command-input.tsx
42
+ const CommandInput = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
43
+ className: "p-1 pb-0",
44
+ "data-slot": "command-input-wrapper",
45
+ children: /* @__PURE__ */ jsxs(InputGroup, {
46
+ className: "h-8! rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!",
47
+ children: [/* @__PURE__ */ jsx(Command.Input, {
48
+ className: cn("w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", className),
49
+ "data-slot": "command-input",
50
+ ...props
51
+ }), /* @__PURE__ */ jsx(InputGroupAddon, { children: /* @__PURE__ */ jsx(HugeiconsIcon, {
52
+ className: "size-4 shrink-0 opacity-50",
53
+ icon: SearchIcon,
54
+ strokeWidth: 2
55
+ }) })]
56
+ })
57
+ });
58
+
59
+ //#endregion
60
+ //#region src/components/command/command-item.tsx
61
+ const CommandItem = ({ className, children, ...props }) => /* @__PURE__ */ jsxs(Command.Item, {
62
+ className: cn("group/command-item relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[disabled=true]:cursor-not-allowed data-selected:bg-muted data-selected:text-foreground data-[disabled=true]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 [[data-slot=dialog-content]_&]:rounded-lg! data-selected:*:[svg]:text-foreground", className),
63
+ "data-slot": "command-item",
64
+ ...props,
65
+ children: [children, /* @__PURE__ */ jsx(HugeiconsIcon, {
66
+ className: "ml-auto opacity-0 group-has-[[data-slot=command-shortcut]]/command-item:hidden group-data-[checked=true]/command-item:opacity-100",
67
+ icon: Tick02Icon,
68
+ strokeWidth: 2
69
+ })]
70
+ });
71
+
72
+ //#endregion
73
+ //#region src/components/command/command-list.tsx
74
+ const CommandList = ({ className, ...props }) => /* @__PURE__ */ jsx(Command.List, {
75
+ className: cn("no-scrollbar max-h-72 scroll-py-1 overflow-y-auto overflow-x-hidden outline-none", className),
76
+ "data-slot": "command-list",
77
+ ...props
78
+ });
79
+
80
+ //#endregion
81
+ //#region src/components/command/command-separator.tsx
82
+ const CommandSeparator = ({ className, ...props }) => /* @__PURE__ */ jsx(Command.Separator, {
83
+ className: cn("-mx-1 h-px bg-border", className),
84
+ "data-slot": "command-separator",
85
+ ...props
86
+ });
87
+
88
+ //#endregion
89
+ //#region src/components/command/command-shortcut.tsx
90
+ const CommandShortcut = ({ className, ...props }) => /* @__PURE__ */ jsx("span", {
91
+ className: cn("ml-auto text-muted-foreground text-xs tracking-widest group-data-selected/command-item:text-foreground", className),
92
+ "data-slot": "command-shortcut",
93
+ ...props
94
+ });
95
+
96
+ //#endregion
97
+ export { CommandInput as a, CommandDialog as c, CommandItem as i, CommandSeparator as n, CommandGroup as o, CommandList as r, CommandEmpty as s, CommandShortcut as t };