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,57 @@
1
+ import * as tailwind_variants0 from "tailwind-variants";
2
+ import { VariantProps } from "tailwind-variants";
3
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
4
+ import { ComponentProps } from "react";
5
+
6
+ //#region src/components/rating/rating-star.d.ts
7
+ declare const ratingStarVariants: tailwind_variants0.TVReturnType<{
8
+ size: {
9
+ sm: string[];
10
+ md: string[];
11
+ lg: string[];
12
+ };
13
+ editable: {
14
+ true: string[];
15
+ false: string[];
16
+ };
17
+ }, undefined, string[], {
18
+ size: {
19
+ sm: string[];
20
+ md: string[];
21
+ lg: string[];
22
+ };
23
+ editable: {
24
+ true: string[];
25
+ false: string[];
26
+ };
27
+ }, undefined, tailwind_variants0.TVReturnType<{
28
+ size: {
29
+ sm: string[];
30
+ md: string[];
31
+ lg: string[];
32
+ };
33
+ editable: {
34
+ true: string[];
35
+ false: string[];
36
+ };
37
+ }, undefined, string[], unknown, unknown, undefined>>;
38
+ type RatingStarVariants = VariantProps<typeof ratingStarVariants>;
39
+ type RatingStarProps = RatingStarVariants & ComponentProps<"button"> & {
40
+ filled?: boolean;
41
+ halfFilled?: boolean;
42
+ active?: boolean;
43
+ starClassName?: string;
44
+ };
45
+ declare const RatingStar: ({
46
+ className,
47
+ size,
48
+ filled,
49
+ halfFilled,
50
+ active,
51
+ editable,
52
+ starClassName,
53
+ onClick,
54
+ ...props
55
+ }: RatingStarProps) => react_jsx_runtime0.JSX.Element;
56
+ //#endregion
57
+ export { RatingStarProps as n, RatingStar as t };
@@ -0,0 +1,110 @@
1
+ import { cn, tv } from "tailwind-variants";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { StarIcon } from "@hugeicons/core-free-icons";
4
+ import { HugeiconsIcon } from "@hugeicons/react";
5
+
6
+ //#region src/components/rating/rating-star.tsx
7
+ const ratingStarVariants = tv({
8
+ base: [
9
+ "relative inline-flex shrink-0",
10
+ "cursor-pointer",
11
+ "transition-colors duration-150"
12
+ ],
13
+ variants: {
14
+ size: {
15
+ sm: ["size-3.5"],
16
+ md: ["size-4"],
17
+ lg: ["size-5"]
18
+ },
19
+ editable: {
20
+ true: ["hover:scale-110"],
21
+ false: ["cursor-default"]
22
+ }
23
+ },
24
+ defaultVariants: {
25
+ size: "md",
26
+ editable: false
27
+ }
28
+ });
29
+ const ratingStarFilledVariants = tv({
30
+ base: ["absolute inset-0", "fill-yellow-500 text-yellow-500"],
31
+ variants: { visible: {
32
+ true: ["opacity-100"],
33
+ false: ["opacity-0"]
34
+ } },
35
+ defaultVariants: { visible: true }
36
+ });
37
+ const ratingStarHalfVariants = tv({
38
+ base: ["absolute inset-0 overflow-hidden", "fill-yellow-500 text-yellow-500"],
39
+ variants: { visible: {
40
+ true: ["opacity-100"],
41
+ false: ["opacity-0"]
42
+ } },
43
+ defaultVariants: { visible: true }
44
+ });
45
+ const ratingStarOutlineVariants = tv({
46
+ base: ["relative", "text-muted-foreground"],
47
+ variants: { active: {
48
+ true: ["opacity-30"],
49
+ false: ["opacity-100"]
50
+ } },
51
+ defaultVariants: { active: false }
52
+ });
53
+ const RatingStar = ({ className, size, filled = false, halfFilled = false, active = false, editable = false, starClassName, onClick, ...props }) => {
54
+ const getStarSize = () => {
55
+ if (size === "sm") return 14;
56
+ if (size === "lg") return 20;
57
+ return 16;
58
+ };
59
+ const getAriaLabel = () => {
60
+ if (filled) return "Filled star";
61
+ if (halfFilled) return "Half-filled star";
62
+ return "Empty star";
63
+ };
64
+ const starSize = getStarSize();
65
+ return /* @__PURE__ */ jsxs("button", {
66
+ "aria-label": getAriaLabel(),
67
+ className: cn(ratingStarVariants({
68
+ size,
69
+ editable
70
+ }), className),
71
+ disabled: !editable,
72
+ onClick,
73
+ type: "button",
74
+ ...props,
75
+ children: [
76
+ /* @__PURE__ */ jsx("span", {
77
+ className: cn(ratingStarFilledVariants({ visible: filled }), starClassName),
78
+ children: /* @__PURE__ */ jsx(HugeiconsIcon, {
79
+ className: "fill-yellow-500 text-yellow-500",
80
+ icon: StarIcon,
81
+ size: starSize,
82
+ strokeWidth: 1.5
83
+ })
84
+ }),
85
+ halfFilled && /* @__PURE__ */ jsx("span", {
86
+ className: cn(ratingStarHalfVariants({ visible: true }), starClassName),
87
+ children: /* @__PURE__ */ jsx("div", {
88
+ className: "w-1/2 overflow-hidden",
89
+ children: /* @__PURE__ */ jsx(HugeiconsIcon, {
90
+ className: "fill-yellow-500 text-yellow-500",
91
+ icon: StarIcon,
92
+ size: starSize,
93
+ strokeWidth: 1.5
94
+ })
95
+ })
96
+ }),
97
+ /* @__PURE__ */ jsx("span", {
98
+ className: cn(ratingStarOutlineVariants({ active }), starClassName),
99
+ children: /* @__PURE__ */ jsx(HugeiconsIcon, {
100
+ icon: StarIcon,
101
+ size: starSize,
102
+ strokeWidth: 1.5
103
+ })
104
+ })
105
+ ]
106
+ });
107
+ };
108
+
109
+ //#endregion
110
+ export { RatingStar as t };
@@ -0,0 +1,19 @@
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import { ComponentProps } from "react";
3
+ import { Panel, Separator } from "react-resizable-panels";
4
+
5
+ //#region src/components/resizable/resizable-handle.d.ts
6
+ declare const ResizableHandle: ({
7
+ withHandle,
8
+ className,
9
+ ...props
10
+ }: ComponentProps<typeof Separator> & {
11
+ withHandle?: boolean;
12
+ }) => react_jsx_runtime0.JSX.Element;
13
+ //#endregion
14
+ //#region src/components/resizable/resizable-panel.d.ts
15
+ declare const ResizablePanel: ({
16
+ ...props
17
+ }: ComponentProps<typeof Panel>) => react_jsx_runtime0.JSX.Element;
18
+ //#endregion
19
+ export { ResizableHandle as n, ResizablePanel as t };
@@ -0,0 +1,21 @@
1
+ import { cn } from "tailwind-variants";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { Panel, Separator } from "react-resizable-panels";
4
+
5
+ //#region src/components/resizable/resizable-handle.tsx
6
+ const ResizableHandle = ({ withHandle, className, ...props }) => /* @__PURE__ */ jsx(Separator, {
7
+ className: cn("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-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90", className),
8
+ "data-slot": "resizable-handle",
9
+ ...props,
10
+ children: withHandle && /* @__PURE__ */ jsx("div", { className: "z-10 flex h-6 w-1 shrink-0 rounded-lg bg-border" })
11
+ });
12
+
13
+ //#endregion
14
+ //#region src/components/resizable/resizable-panel.tsx
15
+ const ResizablePanel = ({ ...props }) => /* @__PURE__ */ jsx(Panel, {
16
+ "data-slot": "resizable-panel",
17
+ ...props
18
+ });
19
+
20
+ //#endregion
21
+ export { ResizableHandle as n, ResizablePanel as t };
@@ -0,0 +1,19 @@
1
+ import { cn } from "tailwind-variants";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { ScrollArea } from "@base-ui/react/scroll-area";
4
+
5
+ //#region src/components/scroll-area/scroll-bar.tsx
6
+ const ScrollBar = ({ className, orientation = "vertical", ...props }) => /* @__PURE__ */ jsx(ScrollArea.Scrollbar, {
7
+ className: cn("flex touch-none select-none p-px transition-colors data-horizontal:h-2.5 data-vertical:h-full data-vertical:w-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:border-l data-vertical:border-l-transparent", className),
8
+ "data-orientation": orientation,
9
+ "data-slot": "scroll-area-scrollbar",
10
+ orientation,
11
+ ...props,
12
+ children: /* @__PURE__ */ jsx(ScrollArea.Thumb, {
13
+ className: "relative flex-1 rounded-full bg-border",
14
+ "data-slot": "scroll-area-thumb"
15
+ })
16
+ });
17
+
18
+ //#endregion
19
+ export { ScrollBar as t };
@@ -0,0 +1,11 @@
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import { ScrollArea } from "@base-ui/react/scroll-area";
3
+
4
+ //#region src/components/scroll-area/scroll-bar.d.ts
5
+ declare const ScrollBar: ({
6
+ className,
7
+ orientation,
8
+ ...props
9
+ }: ScrollArea.Scrollbar.Props) => react_jsx_runtime0.JSX.Element;
10
+ //#endregion
11
+ export { ScrollBar as t };
@@ -0,0 +1,117 @@
1
+ import { cn } from "tailwind-variants";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { ArrowDown01Icon, ArrowUp01Icon, Tick02Icon, UnfoldMoreIcon } from "@hugeicons/core-free-icons";
4
+ import { HugeiconsIcon } from "@hugeicons/react";
5
+ import { Select } from "@base-ui/react/select";
6
+
7
+ //#region src/components/select/select-scroll-down-button.tsx
8
+ const SelectScrollDownButton = ({ className, ...props }) => /* @__PURE__ */ jsx(Select.ScrollDownArrow, {
9
+ className: cn("bottom-0 z-10 flex w-full cursor-pointer items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", className),
10
+ "data-slot": "select-scroll-down-button",
11
+ ...props,
12
+ children: /* @__PURE__ */ jsx(HugeiconsIcon, {
13
+ icon: ArrowDown01Icon,
14
+ strokeWidth: 2
15
+ })
16
+ });
17
+
18
+ //#endregion
19
+ //#region src/components/select/select-scroll-up-button.tsx
20
+ const SelectScrollUpButton = ({ className, ...props }) => /* @__PURE__ */ jsx(Select.ScrollUpArrow, {
21
+ className: cn("top-0 z-10 flex w-full cursor-pointer items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", className),
22
+ "data-slot": "select-scroll-up-button",
23
+ ...props,
24
+ children: /* @__PURE__ */ jsx(HugeiconsIcon, {
25
+ icon: ArrowUp01Icon,
26
+ strokeWidth: 2
27
+ })
28
+ });
29
+
30
+ //#endregion
31
+ //#region src/components/select/select-content.tsx
32
+ const SelectContent = ({ className, children, side = "bottom", sideOffset = 4, align = "center", alignOffset = 0, alignItemWithTrigger = true, ...props }) => /* @__PURE__ */ jsx(Select.Portal, { children: /* @__PURE__ */ jsx(Select.Positioner, {
33
+ align,
34
+ alignItemWithTrigger,
35
+ alignOffset,
36
+ className: "isolate z-50",
37
+ side,
38
+ sideOffset,
39
+ children: /* @__PURE__ */ jsxs(Select.Popup, {
40
+ className: cn("data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-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 relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-y-auto overflow-x-hidden rounded-md bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-closed:animate-out data-open:animate-in", className),
41
+ "data-slot": "select-content",
42
+ ...props,
43
+ children: [
44
+ /* @__PURE__ */ jsx(SelectScrollUpButton, {}),
45
+ /* @__PURE__ */ jsx(Select.List, { children }),
46
+ /* @__PURE__ */ jsx(SelectScrollDownButton, {})
47
+ ]
48
+ })
49
+ }) });
50
+
51
+ //#endregion
52
+ //#region src/components/select/select-group.tsx
53
+ const SelectGroup = ({ className, ...props }) => /* @__PURE__ */ jsx(Select.Group, {
54
+ className: cn("scroll-my-1 p-1", className),
55
+ "data-slot": "select-group",
56
+ ...props
57
+ });
58
+
59
+ //#endregion
60
+ //#region src/components/select/select-item.tsx
61
+ const SelectItem = ({ className, children, ...props }) => /* @__PURE__ */ jsxs(Select.Item, {
62
+ className: cn("relative flex w-full cursor-pointer select-none items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", className),
63
+ "data-slot": "select-item",
64
+ ...props,
65
+ children: [/* @__PURE__ */ jsx(Select.ItemText, {
66
+ className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap",
67
+ children
68
+ }), /* @__PURE__ */ jsx(Select.ItemIndicator, {
69
+ render: /* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
70
+ children: /* @__PURE__ */ jsx(HugeiconsIcon, {
71
+ className: "pointer-events-none",
72
+ icon: Tick02Icon,
73
+ strokeWidth: 2
74
+ })
75
+ })]
76
+ });
77
+
78
+ //#endregion
79
+ //#region src/components/select/select-label.tsx
80
+ const SelectLabel = ({ className, ...props }) => /* @__PURE__ */ jsx(Select.GroupLabel, {
81
+ className: cn("px-1.5 py-1 text-muted-foreground text-xs", className),
82
+ "data-slot": "select-label",
83
+ ...props
84
+ });
85
+
86
+ //#endregion
87
+ //#region src/components/select/select-separator.tsx
88
+ const SelectSeparator = ({ className, ...props }) => /* @__PURE__ */ jsx(Select.Separator, {
89
+ className: cn("pointer-events-none -mx-1 my-1 h-px bg-border", className),
90
+ "data-slot": "select-separator",
91
+ ...props
92
+ });
93
+
94
+ //#endregion
95
+ //#region src/components/select/select-trigger.tsx
96
+ const SelectTrigger = ({ className, size = "default", children, ...props }) => /* @__PURE__ */ jsxs(Select.Trigger, {
97
+ className: cn("flex w-fit cursor-pointer select-none items-center justify-between gap-1.5 whitespace-nowrap rounded-md border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm outline-none transition-colors focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-[3px] aria-invalid:ring-destructive/20 data-[size=default]:h-9 data-[size=sm]:h-8 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[placeholder]:text-muted-foreground *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 dark:hover:bg-input/50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", className),
98
+ "data-size": size,
99
+ "data-slot": "select-trigger",
100
+ ...props,
101
+ children: [children, /* @__PURE__ */ jsx(Select.Icon, { render: /* @__PURE__ */ jsx(HugeiconsIcon, {
102
+ className: "pointer-events-none size-4 text-muted-foreground",
103
+ icon: UnfoldMoreIcon,
104
+ strokeWidth: 2
105
+ }) })]
106
+ });
107
+
108
+ //#endregion
109
+ //#region src/components/select/select-value.tsx
110
+ const SelectValue = ({ className, ...props }) => /* @__PURE__ */ jsx(Select.Value, {
111
+ className: cn("flex flex-1 text-left", className),
112
+ "data-slot": "select-value",
113
+ ...props
114
+ });
115
+
116
+ //#endregion
117
+ export { SelectItem as a, SelectScrollUpButton as c, SelectLabel as i, SelectScrollDownButton as l, SelectTrigger as n, SelectGroup as o, SelectSeparator as r, SelectContent as s, SelectValue as t };
@@ -0,0 +1,70 @@
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import { ComponentProps } from "react";
3
+ import { Select } from "@base-ui/react/select";
4
+
5
+ //#region src/components/select/select-content.d.ts
6
+ declare const SelectContent: ({
7
+ className,
8
+ children,
9
+ side,
10
+ sideOffset,
11
+ align,
12
+ alignOffset,
13
+ alignItemWithTrigger,
14
+ ...props
15
+ }: Select.Popup.Props & Pick<Select.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset" | "alignItemWithTrigger">) => react_jsx_runtime0.JSX.Element;
16
+ //#endregion
17
+ //#region src/components/select/select-group.d.ts
18
+ declare const SelectGroup: ({
19
+ className,
20
+ ...props
21
+ }: Select.Group.Props) => react_jsx_runtime0.JSX.Element;
22
+ //#endregion
23
+ //#region src/components/select/select-item.d.ts
24
+ declare const SelectItem: ({
25
+ className,
26
+ children,
27
+ ...props
28
+ }: Select.Item.Props) => react_jsx_runtime0.JSX.Element;
29
+ //#endregion
30
+ //#region src/components/select/select-label.d.ts
31
+ declare const SelectLabel: ({
32
+ className,
33
+ ...props
34
+ }: Select.GroupLabel.Props) => react_jsx_runtime0.JSX.Element;
35
+ //#endregion
36
+ //#region src/components/select/select-scroll-down-button.d.ts
37
+ declare const SelectScrollDownButton: ({
38
+ className,
39
+ ...props
40
+ }: ComponentProps<typeof Select.ScrollDownArrow>) => react_jsx_runtime0.JSX.Element;
41
+ //#endregion
42
+ //#region src/components/select/select-scroll-up-button.d.ts
43
+ declare const SelectScrollUpButton: ({
44
+ className,
45
+ ...props
46
+ }: ComponentProps<typeof Select.ScrollUpArrow>) => react_jsx_runtime0.JSX.Element;
47
+ //#endregion
48
+ //#region src/components/select/select-separator.d.ts
49
+ declare const SelectSeparator: ({
50
+ className,
51
+ ...props
52
+ }: Select.Separator.Props) => react_jsx_runtime0.JSX.Element;
53
+ //#endregion
54
+ //#region src/components/select/select-trigger.d.ts
55
+ declare const SelectTrigger: ({
56
+ className,
57
+ size,
58
+ children,
59
+ ...props
60
+ }: Select.Trigger.Props & {
61
+ size?: "sm" | "default";
62
+ }) => react_jsx_runtime0.JSX.Element;
63
+ //#endregion
64
+ //#region src/components/select/select-value.d.ts
65
+ declare const SelectValue: ({
66
+ className,
67
+ ...props
68
+ }: Select.Value.Props) => react_jsx_runtime0.JSX.Element;
69
+ //#endregion
70
+ export { SelectScrollDownButton as a, SelectGroup as c, SelectScrollUpButton as i, SelectContent as l, SelectTrigger as n, SelectLabel as o, SelectSeparator as r, SelectItem as s, SelectValue as t };
@@ -0,0 +1,64 @@
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import { ComponentProps } from "react";
3
+ import { Dialog } from "@base-ui/react/dialog";
4
+
5
+ //#region src/components/sheet/sheet-close.d.ts
6
+ declare const SheetClose: ({
7
+ className,
8
+ ...props
9
+ }: Dialog.Close.Props) => react_jsx_runtime0.JSX.Element;
10
+ //#endregion
11
+ //#region src/components/sheet/sheet-content.d.ts
12
+ declare const SheetContent: ({
13
+ className,
14
+ children,
15
+ side,
16
+ showCloseButton,
17
+ ...props
18
+ }: Dialog.Popup.Props & {
19
+ side?: "top" | "right" | "bottom" | "left";
20
+ showCloseButton?: boolean;
21
+ }) => react_jsx_runtime0.JSX.Element;
22
+ //#endregion
23
+ //#region src/components/sheet/sheet-description.d.ts
24
+ declare const SheetDescription: ({
25
+ className,
26
+ ...props
27
+ }: Dialog.Description.Props) => react_jsx_runtime0.JSX.Element;
28
+ //#endregion
29
+ //#region src/components/sheet/sheet-footer.d.ts
30
+ declare const SheetFooter: ({
31
+ className,
32
+ ...props
33
+ }: ComponentProps<"div">) => react_jsx_runtime0.JSX.Element;
34
+ //#endregion
35
+ //#region src/components/sheet/sheet-header.d.ts
36
+ declare const SheetHeader: ({
37
+ className,
38
+ ...props
39
+ }: ComponentProps<"div">) => react_jsx_runtime0.JSX.Element;
40
+ //#endregion
41
+ //#region src/components/sheet/sheet-overlay.d.ts
42
+ declare const SheetOverlay: ({
43
+ className,
44
+ ...props
45
+ }: Dialog.Backdrop.Props) => react_jsx_runtime0.JSX.Element;
46
+ //#endregion
47
+ //#region src/components/sheet/sheet-portal.d.ts
48
+ declare const SheetPortal: ({
49
+ ...props
50
+ }: Dialog.Portal.Props) => react_jsx_runtime0.JSX.Element;
51
+ //#endregion
52
+ //#region src/components/sheet/sheet-title.d.ts
53
+ declare const SheetTitle: ({
54
+ className,
55
+ ...props
56
+ }: Dialog.Title.Props) => react_jsx_runtime0.JSX.Element;
57
+ //#endregion
58
+ //#region src/components/sheet/sheet-trigger.d.ts
59
+ declare const SheetTrigger: ({
60
+ className,
61
+ ...props
62
+ }: Dialog.Trigger.Props) => react_jsx_runtime0.JSX.Element;
63
+ //#endregion
64
+ export { SheetHeader as a, SheetContent as c, SheetOverlay as i, SheetClose as l, SheetTitle as n, SheetFooter as o, SheetPortal as r, SheetDescription as s, SheetTrigger as t };
@@ -0,0 +1,95 @@
1
+ import { Button } from "./ui/button.js";
2
+ import { cn } from "tailwind-variants";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { Cancel01Icon } from "@hugeicons/core-free-icons";
5
+ import { HugeiconsIcon } from "@hugeicons/react";
6
+ import { Dialog } from "@base-ui/react/dialog";
7
+
8
+ //#region src/components/sheet/sheet-close.tsx
9
+ const SheetClose = ({ className, ...props }) => /* @__PURE__ */ jsx(Dialog.Close, {
10
+ className: cn("cursor-pointer", className),
11
+ "data-slot": "sheet-close",
12
+ ...props
13
+ });
14
+
15
+ //#endregion
16
+ //#region src/components/sheet/sheet-overlay.tsx
17
+ const SheetOverlay = ({ className, ...props }) => /* @__PURE__ */ jsx(Dialog.Backdrop, {
18
+ className: cn("data-closed:fade-out-0 data-open:fade-in-0 fixed inset-0 z-50 bg-black/10 duration-100 data-closed:animate-out data-open:animate-in data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs", className),
19
+ "data-slot": "sheet-overlay",
20
+ ...props
21
+ });
22
+
23
+ //#endregion
24
+ //#region src/components/sheet/sheet-portal.tsx
25
+ const SheetPortal = ({ ...props }) => /* @__PURE__ */ jsx(Dialog.Portal, {
26
+ "data-slot": "sheet-portal",
27
+ ...props
28
+ });
29
+
30
+ //#endregion
31
+ //#region src/components/sheet/sheet-content.tsx
32
+ const SheetContent = ({ className, children, side = "right", showCloseButton = true, ...props }) => /* @__PURE__ */ jsxs(SheetPortal, { children: [/* @__PURE__ */ jsx(SheetOverlay, {}), /* @__PURE__ */ jsxs(Dialog.Popup, {
33
+ className: cn("data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 fixed z-50 flex flex-col gap-4 bg-background bg-clip-padding text-sm shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=top]:inset-x-0 data-[side=left]:inset-y-0 data-[side=right]:inset-y-0 data-[side=top]:top-0 data-[side=right]:right-0 data-[side=bottom]:bottom-0 data-[side=left]:left-0 data-[side=bottom]:h-auto data-[side=left]:h-full data-[side=right]:h-full data-[side=top]:h-auto data-[side=left]:w-3/4 data-[side=right]:w-3/4 data-closed:animate-out data-open:animate-in data-[side=bottom]:border-t data-[side=left]:border-r data-[side=top]:border-b data-[side=right]:border-l data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm", className),
34
+ "data-side": side,
35
+ "data-slot": "sheet-content",
36
+ ...props,
37
+ children: [children, showCloseButton && /* @__PURE__ */ jsxs(SheetClose, {
38
+ "data-slot": "sheet-close",
39
+ render: /* @__PURE__ */ jsx(Button, {
40
+ className: "absolute top-4 right-4",
41
+ size: "icon-sm",
42
+ variant: "ghost"
43
+ }),
44
+ children: [/* @__PURE__ */ jsx(HugeiconsIcon, {
45
+ icon: Cancel01Icon,
46
+ strokeWidth: 2
47
+ }), /* @__PURE__ */ jsx("span", {
48
+ className: "sr-only",
49
+ children: "Close"
50
+ })]
51
+ })]
52
+ })] });
53
+
54
+ //#endregion
55
+ //#region src/components/sheet/sheet-description.tsx
56
+ const SheetDescription = ({ className, ...props }) => /* @__PURE__ */ jsx(Dialog.Description, {
57
+ className: cn("text-muted-foreground text-sm", className),
58
+ "data-slot": "sheet-description",
59
+ ...props
60
+ });
61
+
62
+ //#endregion
63
+ //#region src/components/sheet/sheet-footer.tsx
64
+ const SheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
65
+ className: cn("mt-auto flex flex-col gap-2 p-4", className),
66
+ "data-slot": "sheet-footer",
67
+ ...props
68
+ });
69
+
70
+ //#endregion
71
+ //#region src/components/sheet/sheet-header.tsx
72
+ const SheetHeader = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
73
+ className: cn("flex flex-col gap-0.5 p-4", className),
74
+ "data-slot": "sheet-header",
75
+ ...props
76
+ });
77
+
78
+ //#endregion
79
+ //#region src/components/sheet/sheet-title.tsx
80
+ const SheetTitle = ({ className, ...props }) => /* @__PURE__ */ jsx(Dialog.Title, {
81
+ className: cn("font-medium text-base text-foreground", className),
82
+ "data-slot": "sheet-title",
83
+ ...props
84
+ });
85
+
86
+ //#endregion
87
+ //#region src/components/sheet/sheet-trigger.tsx
88
+ const SheetTrigger = ({ className, ...props }) => /* @__PURE__ */ jsx(Dialog.Trigger, {
89
+ className: cn("cursor-pointer", className),
90
+ "data-slot": "sheet-trigger",
91
+ ...props
92
+ });
93
+
94
+ //#endregion
95
+ export { SheetDescription as a, SheetOverlay as c, SheetFooter as i, SheetClose as l, SheetTitle as n, SheetContent as o, SheetHeader as r, SheetPortal as s, SheetTrigger as t };