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,81 @@
1
+ import "tailwind-variants";
2
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
3
+ import { useRender } from "@base-ui/react/use-render";
4
+ import * as react from "react";
5
+ import { ComponentProps, ReactNode } from "react";
6
+
7
+ //#region src/components/timeline/timeline-connector.d.ts
8
+ interface TimelineConnectorProps extends useRender.ComponentProps<"div"> {
9
+ forceMount?: boolean;
10
+ }
11
+ declare const TimelineConnector: ({
12
+ className,
13
+ render,
14
+ forceMount,
15
+ ...props
16
+ }: TimelineConnectorProps) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
17
+ //#endregion
18
+ //#region src/components/timeline/timeline-content.d.ts
19
+ type TimelineContentProps = useRender.ComponentProps<"div">;
20
+ declare const TimelineContent: ({
21
+ className,
22
+ render,
23
+ ...props
24
+ }: TimelineContentProps) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
25
+ //#endregion
26
+ //#region src/components/timeline/timeline-description.d.ts
27
+ type TimelineDescriptionProps = useRender.ComponentProps<"div">;
28
+ declare const TimelineDescription: ({
29
+ className,
30
+ render,
31
+ ...props
32
+ }: TimelineDescriptionProps) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
33
+ //#endregion
34
+ //#region src/components/timeline/timeline-dot.d.ts
35
+ type TimelineDotProps = useRender.ComponentProps<"div">;
36
+ declare const TimelineDot: ({
37
+ className,
38
+ render,
39
+ ...props
40
+ }: TimelineDotProps) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
41
+ //#endregion
42
+ //#region src/components/timeline/timeline-header.d.ts
43
+ type TimelineHeaderProps = useRender.ComponentProps<"div">;
44
+ declare const TimelineHeader: ({
45
+ className,
46
+ render,
47
+ ...props
48
+ }: TimelineHeaderProps) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
49
+ //#endregion
50
+ //#region src/components/timeline/timeline-item.d.ts
51
+ interface TimelineItemProps extends ComponentProps<"li"> {
52
+ index: number;
53
+ children?: ReactNode;
54
+ }
55
+ declare const TimelineItem: ({
56
+ index,
57
+ className,
58
+ children,
59
+ ...props
60
+ }: TimelineItemProps) => react_jsx_runtime0.JSX.Element;
61
+ //#endregion
62
+ //#region src/components/timeline/timeline-time.d.ts
63
+ type TimelineTimeProps = useRender.ComponentProps<"time"> & Pick<ComponentProps<"time">, "dateTime">;
64
+ declare const TimelineTime: ({
65
+ className,
66
+ render,
67
+ ...props
68
+ }: TimelineTimeProps) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
69
+ //#endregion
70
+ //#region src/components/timeline/timeline-title.d.ts
71
+ type TimelineTitleProps = useRender.ComponentProps<"div">;
72
+ declare const TimelineTitle: ({
73
+ className,
74
+ render,
75
+ ...props
76
+ }: TimelineTitleProps) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
77
+ //#endregion
78
+ //#region src/components/timeline/use-timeline.d.ts
79
+ type Direction = "ltr" | "rtl";
80
+ //#endregion
81
+ export { TimelineConnectorProps as _, TimelineTimeProps as a, TimelineHeader as c, TimelineDotProps as d, TimelineDescription as f, TimelineConnector as g, TimelineContentProps as h, TimelineTime as i, TimelineHeaderProps as l, TimelineContent as m, TimelineTitle as n, TimelineItem as o, TimelineDescriptionProps as p, TimelineTitleProps as r, TimelineItemProps as s, Direction as t, TimelineDot as u };
@@ -0,0 +1,118 @@
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import { ComponentProps, ReactNode } from "react";
3
+ import { Toast } from "@base-ui/react/toast";
4
+
5
+ //#region src/components/toast/toast-action.d.ts
6
+ type ToastActionProps = ComponentProps<typeof Toast.Action>;
7
+ declare const ToastAction: ({
8
+ className,
9
+ ...props
10
+ }: ToastActionProps) => react_jsx_runtime0.JSX.Element;
11
+ //#endregion
12
+ //#region src/components/toast/toast-close.d.ts
13
+ type ToastCloseProps = ComponentProps<typeof Toast.Close>;
14
+ declare const ToastClose: ({
15
+ className,
16
+ children,
17
+ ...props
18
+ }: ToastCloseProps) => react_jsx_runtime0.JSX.Element;
19
+ //#endregion
20
+ //#region src/components/toast/toast-content.d.ts
21
+ type ToastContentProps = ComponentProps<typeof Toast.Content>;
22
+ declare const ToastContent: ({
23
+ className,
24
+ ...props
25
+ }: ToastContentProps) => react_jsx_runtime0.JSX.Element;
26
+ //#endregion
27
+ //#region src/components/toast/toast-description.d.ts
28
+ type ToastDescriptionProps = ComponentProps<typeof Toast.Description>;
29
+ declare const ToastDescription: ({
30
+ className,
31
+ ...props
32
+ }: ToastDescriptionProps) => react_jsx_runtime0.JSX.Element;
33
+ //#endregion
34
+ //#region src/components/toast/toast-portal.d.ts
35
+ type ToastPortalProps = ComponentProps<typeof Toast.Portal>;
36
+ declare const ToastPortal: (props: ToastPortalProps) => react_jsx_runtime0.JSX.Element;
37
+ //#endregion
38
+ //#region src/components/toast/toast-root.d.ts
39
+ type ToastRootProps = ComponentProps<typeof Toast.Root>;
40
+ declare const ToastRoot: ({
41
+ className,
42
+ ...props
43
+ }: ToastRootProps) => react_jsx_runtime0.JSX.Element;
44
+ //#endregion
45
+ //#region src/components/toast/toast-title.d.ts
46
+ type ToastTitleProps = ComponentProps<typeof Toast.Title>;
47
+ declare const ToastTitle: ({
48
+ className,
49
+ ...props
50
+ }: ToastTitleProps) => react_jsx_runtime0.JSX.Element;
51
+ //#endregion
52
+ //#region src/components/toast/toast-viewport.d.ts
53
+ type ToastViewportProps = ComponentProps<typeof Toast.Viewport>;
54
+ declare const ToastViewport: ({
55
+ className,
56
+ ...props
57
+ }: ToastViewportProps) => react_jsx_runtime0.JSX.Element;
58
+ //#endregion
59
+ //#region src/components/toast/toast-provider.d.ts
60
+ declare const ToastProvider: ({
61
+ children
62
+ }: {
63
+ children: ReactNode;
64
+ }) => react_jsx_runtime0.JSX.Element;
65
+ //#endregion
66
+ //#region src/components/toast/use-toast.d.ts
67
+ type ToastManager = ReturnType<typeof Toast.useToastManager>;
68
+ type AddOptions = Parameters<ToastManager["add"]>[0];
69
+ type UpdateOptions = Parameters<ToastManager["update"]>[1];
70
+ type PromiseOptions = Parameters<ToastManager["promise"]>[1];
71
+ type ToastOptions = Omit<AddOptions, "type"> & {
72
+ type?: AddOptions["type"] | "success" | "error" | "info" | "warning";
73
+ };
74
+ interface UseToastReturn {
75
+ /**
76
+ * Add a toast with custom options
77
+ */
78
+ add: (options: ToastOptions) => string;
79
+ /**
80
+ * Show a success toast
81
+ */
82
+ success: (options: Omit<ToastOptions, "type">) => string;
83
+ /**
84
+ * Show an error toast
85
+ */
86
+ error: (options: Omit<ToastOptions, "type">) => string;
87
+ /**
88
+ * Show an info toast
89
+ */
90
+ info: (options: Omit<ToastOptions, "type">) => string;
91
+ /**
92
+ * Show a warning toast
93
+ */
94
+ warning: (options: Omit<ToastOptions, "type">) => string;
95
+ /**
96
+ * Show a loading toast
97
+ */
98
+ loading: (options: Omit<ToastOptions, "type">) => string;
99
+ /**
100
+ * Create a promise toast with loading, success, and error states
101
+ */
102
+ promise: <Value>(promise: Promise<Value>, options: PromiseOptions) => Promise<Value>;
103
+ /**
104
+ * Update an existing toast
105
+ */
106
+ update: (toastId: string, options: UpdateOptions) => void;
107
+ /**
108
+ * Close a toast
109
+ */
110
+ close: (toastId: string) => void;
111
+ /**
112
+ * Get all active toasts
113
+ */
114
+ readonly toasts: ToastManager["toasts"];
115
+ }
116
+ declare const useToast: () => UseToastReturn;
117
+ //#endregion
118
+ export { ToastAction as _, ToastTitle as a, ToastRootProps as c, ToastDescription as d, ToastDescriptionProps as f, ToastCloseProps as g, ToastClose as h, ToastViewportProps as i, ToastPortal as l, ToastContentProps as m, ToastProvider as n, ToastTitleProps as o, ToastContent as p, ToastViewport as r, ToastRoot as s, useToast as t, ToastPortalProps as u, ToastActionProps as v };
@@ -0,0 +1,129 @@
1
+ import { cn } from "tailwind-variants";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { Cancel01Icon } from "@hugeicons/core-free-icons";
4
+ import { HugeiconsIcon } from "@hugeicons/react";
5
+ import { Toast } from "@base-ui/react/toast";
6
+
7
+ //#region src/components/toast/toast-action.tsx
8
+ const ToastAction = ({ className, ...props }) => /* @__PURE__ */ jsx(Toast.Action, {
9
+ className: cn(className),
10
+ "data-slot": "toast-action",
11
+ ...props
12
+ });
13
+
14
+ //#endregion
15
+ //#region src/components/toast/toast-close.tsx
16
+ const ToastClose = ({ className, children, ...props }) => /* @__PURE__ */ jsx(Toast.Close, {
17
+ className: cn("absolute top-2 right-2 flex h-5 w-5 items-center justify-center rounded border-none bg-transparent text-muted-foreground hover:bg-accent hover:text-accent-foreground", className),
18
+ "data-slot": "toast-close",
19
+ ...props,
20
+ children: children ?? /* @__PURE__ */ jsx(HugeiconsIcon, {
21
+ color: "currentColor",
22
+ icon: Cancel01Icon,
23
+ size: 16,
24
+ strokeWidth: 1.5
25
+ })
26
+ });
27
+
28
+ //#endregion
29
+ //#region src/components/toast/toast-content.tsx
30
+ const ToastContent = ({ className, ...props }) => /* @__PURE__ */ jsx(Toast.Content, {
31
+ className: cn("overflow-hidden transition-opacity duration-250 data-behind:pointer-events-none data-expanded:pointer-events-auto data-behind:opacity-0 data-expanded:opacity-100", className),
32
+ "data-slot": "toast-content",
33
+ ...props
34
+ });
35
+
36
+ //#endregion
37
+ //#region src/components/toast/toast-description.tsx
38
+ const ToastDescription = ({ className, ...props }) => /* @__PURE__ */ jsx(Toast.Description, {
39
+ className: cn("text-muted-foreground text-sm leading-5", className),
40
+ "data-slot": "toast-description",
41
+ ...props
42
+ });
43
+
44
+ //#endregion
45
+ //#region src/components/toast/toast-portal.tsx
46
+ const ToastPortal = (props) => /* @__PURE__ */ jsx(Toast.Portal, {
47
+ "data-slot": "toast-portal",
48
+ ...props
49
+ });
50
+
51
+ //#endregion
52
+ //#region src/components/toast/toast-root.tsx
53
+ const ToastRoot = ({ className, ...props }) => /* @__PURE__ */ jsx(Toast.Root, {
54
+ className: cn("absolute right-0 bottom-0 left-auto z-[calc(1000-var(--toast-index))] mr-0 h-[var(--height)] w-full origin-bottom select-none rounded-lg border border-border bg-popover bg-clip-padding p-4 text-popover-foreground shadow-lg [--gap:0.75rem] [--height:var(--toast-frontmost-height,var(--toast-height))] [--offset-y:calc(var(--toast-offset-y)*-1+calc(var(--toast-index)*var(--gap)*-1)+var(--toast-swipe-movement-y))] [--peek:0.75rem] [--scale:calc(max(0,1-(var(--toast-index)*0.1)))] [--shrink:calc(1-var(--scale))] [transform:translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)-(var(--toast-index)*var(--peek))-(var(--shrink)*var(--height))))_scale(var(--scale))] [transition:transform_0.5s_cubic-bezier(0.22,1,0.36,1),opacity_0.5s,height_0.15s] after:absolute after:top-full after:left-0 after:h-[calc(var(--gap)+1px)] after:w-full after:content-[''] data-[expanded]:h-[var(--toast-height)] data-[ending-style]:opacity-0 data-[limited]:opacity-0 data-[ending-style]:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)+150%))] data-[ending-style]:data-[swipe-direction=left]:[transform:translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))] data-[ending-style]:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))] data-[ending-style]:data-[swipe-direction=up]:[transform:translateY(calc(var(--toast-swipe-movement-y)-150%))] data-[expanded]:[transform:translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--offset-y)))] data-[expanded]:data-[ending-style]:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)+150%))] data-[expanded]:data-[ending-style]:data-[swipe-direction=left]:[transform:translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))] data-[expanded]:data-[ending-style]:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))] data-[expanded]:data-[ending-style]:data-[swipe-direction=up]:[transform:translateY(calc(var(--toast-swipe-movement-y)-150%))] data-[starting-style]:[transform:translateY(150%)] [&[data-ending-style]:not([data-limited]):not([data-swipe-direction])]:[transform:translateY(150%)]", className),
55
+ "data-slot": "toast-root",
56
+ ...props
57
+ });
58
+
59
+ //#endregion
60
+ //#region src/components/toast/toast-title.tsx
61
+ const ToastTitle = ({ className, ...props }) => /* @__PURE__ */ jsx(Toast.Title, {
62
+ className: cn("font-medium text-sm leading-5", className),
63
+ "data-slot": "toast-title",
64
+ ...props
65
+ });
66
+
67
+ //#endregion
68
+ //#region src/components/toast/toast-viewport.tsx
69
+ const ToastViewport = ({ className, ...props }) => /* @__PURE__ */ jsx(Toast.Viewport, {
70
+ className: cn("fixed top-auto right-4 bottom-4 z-[100] mx-auto flex w-[250px] sm:right-8 sm:bottom-8 sm:w-[300px]", className),
71
+ "data-slot": "toast-viewport",
72
+ ...props
73
+ });
74
+
75
+ //#endregion
76
+ //#region src/components/toast/toast-provider.tsx
77
+ const ToastProvider = ({ children }) => /* @__PURE__ */ jsxs(Toast.Provider, {
78
+ "data-slot": "toast",
79
+ children: [children, /* @__PURE__ */ jsx(ToastPortal, { children: /* @__PURE__ */ jsx(ToastViewport, { children: /* @__PURE__ */ jsx(ToastList, {}) }) })]
80
+ });
81
+ const ToastList = () => {
82
+ const { toasts } = Toast.useToastManager();
83
+ return toasts.map((toast) => /* @__PURE__ */ jsx(ToastRoot, {
84
+ toast,
85
+ children: /* @__PURE__ */ jsxs(ToastContent, { children: [
86
+ /* @__PURE__ */ jsx(ToastTitle, {}),
87
+ /* @__PURE__ */ jsx(ToastDescription, {}),
88
+ /* @__PURE__ */ jsx(ToastClose, {})
89
+ ] })
90
+ }, toast.id));
91
+ };
92
+
93
+ //#endregion
94
+ //#region src/components/toast/use-toast.ts
95
+ const useToast = () => {
96
+ const toastManager = Toast.useToastManager();
97
+ return {
98
+ add: (options) => toastManager.add(options),
99
+ success: (options) => toastManager.add({
100
+ ...options,
101
+ type: "success"
102
+ }),
103
+ error: (options) => toastManager.add({
104
+ ...options,
105
+ type: "error"
106
+ }),
107
+ info: (options) => toastManager.add({
108
+ ...options,
109
+ type: "info"
110
+ }),
111
+ warning: (options) => toastManager.add({
112
+ ...options,
113
+ type: "warning"
114
+ }),
115
+ loading: (options) => toastManager.add({
116
+ ...options,
117
+ type: "loading"
118
+ }),
119
+ promise: (promise, options) => toastManager.promise(promise, options),
120
+ update: (toastId, options) => toastManager.update(toastId, options),
121
+ close: (toastId) => toastManager.close(toastId),
122
+ get toasts() {
123
+ return toastManager.toasts;
124
+ }
125
+ };
126
+ };
127
+
128
+ //#endregion
129
+ export { ToastRoot as a, ToastContent as c, ToastTitle as i, ToastClose as l, ToastProvider as n, ToastPortal as o, ToastViewport as r, ToastDescription as s, useToast as t, ToastAction as u };
@@ -0,0 +1,65 @@
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import { ComponentProps } from "react";
3
+ import { MediaControlBar, MediaMuteButton, MediaPlayButton, MediaSeekBackwardButton, MediaSeekForwardButton, MediaTimeDisplay, MediaTimeRange, MediaVolumeRange } from "media-chrome/react";
4
+
5
+ //#region src/components/video-player/video-player-content.d.ts
6
+ type VideoPlayerContentProps = ComponentProps<"video">;
7
+ declare const VideoPlayerContent: ({
8
+ className,
9
+ ...props
10
+ }: VideoPlayerContentProps) => react_jsx_runtime0.JSX.Element;
11
+ //#endregion
12
+ //#region src/components/video-player/video-player-control-bar.d.ts
13
+ type VideoPlayerControlBarProps = ComponentProps<typeof MediaControlBar>;
14
+ declare const VideoPlayerControlBar: (props: VideoPlayerControlBarProps) => react_jsx_runtime0.JSX.Element;
15
+ //#endregion
16
+ //#region src/components/video-player/video-player-mute-button.d.ts
17
+ type VideoPlayerMuteButtonProps = ComponentProps<typeof MediaMuteButton>;
18
+ declare const VideoPlayerMuteButton: ({
19
+ className,
20
+ ...props
21
+ }: VideoPlayerMuteButtonProps) => react_jsx_runtime0.JSX.Element;
22
+ //#endregion
23
+ //#region src/components/video-player/video-player-play-button.d.ts
24
+ type VideoPlayerPlayButtonProps = ComponentProps<typeof MediaPlayButton>;
25
+ declare const VideoPlayerPlayButton: ({
26
+ className,
27
+ ...props
28
+ }: VideoPlayerPlayButtonProps) => react_jsx_runtime0.JSX.Element;
29
+ //#endregion
30
+ //#region src/components/video-player/video-player-seek-backward-button.d.ts
31
+ type VideoPlayerSeekBackwardButtonProps = ComponentProps<typeof MediaSeekBackwardButton>;
32
+ declare const VideoPlayerSeekBackwardButton: ({
33
+ className,
34
+ ...props
35
+ }: VideoPlayerSeekBackwardButtonProps) => react_jsx_runtime0.JSX.Element;
36
+ //#endregion
37
+ //#region src/components/video-player/video-player-seek-forward-button.d.ts
38
+ type VideoPlayerSeekForwardButtonProps = ComponentProps<typeof MediaSeekForwardButton>;
39
+ declare const VideoPlayerSeekForwardButton: ({
40
+ className,
41
+ ...props
42
+ }: VideoPlayerSeekForwardButtonProps) => react_jsx_runtime0.JSX.Element;
43
+ //#endregion
44
+ //#region src/components/video-player/video-player-time-display.d.ts
45
+ type VideoPlayerTimeDisplayProps = ComponentProps<typeof MediaTimeDisplay>;
46
+ declare const VideoPlayerTimeDisplay: ({
47
+ className,
48
+ ...props
49
+ }: VideoPlayerTimeDisplayProps) => react_jsx_runtime0.JSX.Element;
50
+ //#endregion
51
+ //#region src/components/video-player/video-player-time-range.d.ts
52
+ type VideoPlayerTimeRangeProps = ComponentProps<typeof MediaTimeRange>;
53
+ declare const VideoPlayerTimeRange: ({
54
+ className,
55
+ ...props
56
+ }: VideoPlayerTimeRangeProps) => react_jsx_runtime0.JSX.Element;
57
+ //#endregion
58
+ //#region src/components/video-player/video-player-volume-range.d.ts
59
+ type VideoPlayerVolumeRangeProps = ComponentProps<typeof MediaVolumeRange>;
60
+ declare const VideoPlayerVolumeRange: ({
61
+ className,
62
+ ...props
63
+ }: VideoPlayerVolumeRangeProps) => react_jsx_runtime0.JSX.Element;
64
+ //#endregion
65
+ export { VideoPlayerContent as _, VideoPlayerTimeDisplay as a, VideoPlayerSeekForwardButtonProps as c, VideoPlayerPlayButton as d, VideoPlayerPlayButtonProps as f, VideoPlayerControlBarProps as g, VideoPlayerControlBar as h, VideoPlayerTimeRangeProps as i, VideoPlayerSeekBackwardButton as l, VideoPlayerMuteButtonProps as m, VideoPlayerVolumeRangeProps as n, VideoPlayerTimeDisplayProps as o, VideoPlayerMuteButton as p, VideoPlayerTimeRange as r, VideoPlayerSeekForwardButton as s, VideoPlayerVolumeRange as t, VideoPlayerSeekBackwardButtonProps as u, VideoPlayerContentProps as v };
@@ -0,0 +1,66 @@
1
+ import { cn } from "tailwind-variants";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { MediaControlBar, MediaMuteButton, MediaPlayButton, MediaSeekBackwardButton, MediaSeekForwardButton, MediaTimeDisplay, MediaTimeRange, MediaVolumeRange } from "media-chrome/react";
4
+
5
+ //#region src/components/video-player/video-player-content.tsx
6
+ const VideoPlayerContent = ({ className, ...props }) => /* @__PURE__ */ jsx("video", {
7
+ className: cn("mt-0 mb-0", className),
8
+ ...props,
9
+ children: /* @__PURE__ */ jsx("track", { kind: "captions" })
10
+ });
11
+
12
+ //#endregion
13
+ //#region src/components/video-player/video-player-control-bar.tsx
14
+ const VideoPlayerControlBar = (props) => /* @__PURE__ */ jsx(MediaControlBar, { ...props });
15
+
16
+ //#endregion
17
+ //#region src/components/video-player/video-player-mute-button.tsx
18
+ const VideoPlayerMuteButton = ({ className, ...props }) => /* @__PURE__ */ jsx(MediaMuteButton, {
19
+ className: cn("cursor-pointer p-2.5", className),
20
+ ...props
21
+ });
22
+
23
+ //#endregion
24
+ //#region src/components/video-player/video-player-play-button.tsx
25
+ const VideoPlayerPlayButton = ({ className, ...props }) => /* @__PURE__ */ jsx(MediaPlayButton, {
26
+ className: cn("cursor-pointer p-2.5", className),
27
+ ...props
28
+ });
29
+
30
+ //#endregion
31
+ //#region src/components/video-player/video-player-seek-backward-button.tsx
32
+ const VideoPlayerSeekBackwardButton = ({ className, ...props }) => /* @__PURE__ */ jsx(MediaSeekBackwardButton, {
33
+ className: cn("cursor-pointer p-2.5", className),
34
+ ...props
35
+ });
36
+
37
+ //#endregion
38
+ //#region src/components/video-player/video-player-seek-forward-button.tsx
39
+ const VideoPlayerSeekForwardButton = ({ className, ...props }) => /* @__PURE__ */ jsx(MediaSeekForwardButton, {
40
+ className: cn("cursor-pointer p-2.5", className),
41
+ ...props
42
+ });
43
+
44
+ //#endregion
45
+ //#region src/components/video-player/video-player-time-display.tsx
46
+ const VideoPlayerTimeDisplay = ({ className, ...props }) => /* @__PURE__ */ jsx(MediaTimeDisplay, {
47
+ className: cn("p-2.5", className),
48
+ ...props
49
+ });
50
+
51
+ //#endregion
52
+ //#region src/components/video-player/video-player-time-range.tsx
53
+ const VideoPlayerTimeRange = ({ className, ...props }) => /* @__PURE__ */ jsx(MediaTimeRange, {
54
+ className: cn("p-2.5", className),
55
+ ...props
56
+ });
57
+
58
+ //#endregion
59
+ //#region src/components/video-player/video-player-volume-range.tsx
60
+ const VideoPlayerVolumeRange = ({ className, ...props }) => /* @__PURE__ */ jsx(MediaVolumeRange, {
61
+ className: cn("p-2.5", className),
62
+ ...props
63
+ });
64
+
65
+ //#endregion
66
+ export { VideoPlayerSeekBackwardButton as a, VideoPlayerControlBar as c, VideoPlayerSeekForwardButton as i, VideoPlayerContent as l, VideoPlayerTimeRange as n, VideoPlayerPlayButton as o, VideoPlayerTimeDisplay as r, VideoPlayerMuteButton as s, VideoPlayerVolumeRange as t };
package/package.json ADDED
@@ -0,0 +1,128 @@
1
+ {
2
+ "name": "kuzenbo",
3
+ "version": "0.0.1",
4
+ "description": "React UI components, hooks, and utilities library.",
5
+ "keywords": [
6
+ "react",
7
+ "react-components",
8
+ "react-hooks",
9
+ "react-library",
10
+ "typescript",
11
+ "ui-components",
12
+ "utilities"
13
+ ],
14
+ "homepage": "https://github.com/DobroslavRadosavljevic/kuzenbo#readme",
15
+ "bugs": {
16
+ "url": "https://github.com/DobroslavRadosavljevic/kuzenbo/issues"
17
+ },
18
+ "license": "MIT",
19
+ "author": "Dobroslav Radosavljevic <dobroslav.radosavljevic@gmail.com>",
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "https://github.com/DobroslavRadosavljevic/kuzenbo"
23
+ },
24
+ "files": [
25
+ "dist"
26
+ ],
27
+ "type": "module",
28
+ "sideEffects": [
29
+ "*.css"
30
+ ],
31
+ "main": "./dist/index.js",
32
+ "types": "./dist/index.d.ts",
33
+ "exports": {
34
+ ".": {
35
+ "types": "./dist/index.d.ts",
36
+ "default": "./dist/index.js"
37
+ },
38
+ "./*": {
39
+ "types": "./dist/*.d.ts",
40
+ "default": "./dist/*.js"
41
+ },
42
+ "./styles.css": "./dist/styles.css",
43
+ "./package.json": "./package.json"
44
+ },
45
+ "scripts": {
46
+ "build": "tsdown && cp src/styles.css dist/styles.css",
47
+ "dev": "tsdown --watch",
48
+ "test": "bun test",
49
+ "lint": "bun ultracite check",
50
+ "format": "bun ultracite fix",
51
+ "typecheck": "tsc --noEmit",
52
+ "prepare": "husky",
53
+ "prepublishOnly": "bun run build",
54
+ "bump": "bumpp --changelog",
55
+ "storybook": "storybook dev -p 6006",
56
+ "build-storybook": "storybook build"
57
+ },
58
+ "dependencies": {
59
+ "@base-ui/react": "^1.1.0",
60
+ "@hugeicons/core-free-icons": "^3.1.1",
61
+ "@hugeicons/react": "^1.1.5",
62
+ "tailwind-variants": "^3.2.2"
63
+ },
64
+ "devDependencies": {
65
+ "@commitlint/cli": "^20.4.1",
66
+ "@commitlint/config-conventional": "^20.4.1",
67
+ "@happy-dom/global-registrator": "^20.5.0",
68
+ "@storybook/addon-a11y": "^10.2.7",
69
+ "@storybook/addon-themes": "^10.2.7",
70
+ "@storybook/react-vite": "^10.2.7",
71
+ "@tailwindcss/postcss": "^4.1.18",
72
+ "@testing-library/jest-dom": "^6.9.1",
73
+ "@testing-library/react": "^16.3.2",
74
+ "@testing-library/user-event": "^14.6.1",
75
+ "@total-typescript/ts-reset": "^0.6.1",
76
+ "@types/bun": "^1.3.8",
77
+ "@types/culori": "^4.0.1",
78
+ "@types/qrcode": "^1.5.6",
79
+ "@types/react": "^19.2.13",
80
+ "@types/react-dom": "^19.2.3",
81
+ "bumpp": "^10.4.1",
82
+ "husky": "^9.1.7",
83
+ "lint-staged": "^16.2.7",
84
+ "motion": "^12.33.0",
85
+ "oxfmt": "^0.28.0",
86
+ "oxlint": "^1.43.0",
87
+ "react": "^19.2.4",
88
+ "react-dom": "^19.2.4",
89
+ "storybook": "^10.2.7",
90
+ "tailwind-merge": "^3.4.0",
91
+ "tailwindcss": "^4.1.18",
92
+ "tsdown": "^0.20.3",
93
+ "typescript": "^5.9.3",
94
+ "ultracite": "7.1.5"
95
+ },
96
+ "peerDependencies": {
97
+ "cmdk": "^1.1.1",
98
+ "country-flag-icons": "^1.6.12",
99
+ "culori": "^4.0.2",
100
+ "embla-carousel": "^8.6.0",
101
+ "embla-carousel-react": "^8.6.0",
102
+ "frimousse": "^0.3.0",
103
+ "input-otp": "^1.4.2",
104
+ "media-chrome": "^4.17.2",
105
+ "qrcode": "^1.5.4",
106
+ "react": "^18.0.0 || ^19.0.0",
107
+ "react-day-picker": "^9.13.0",
108
+ "react-dom": "^18.0.0 || ^19.0.0",
109
+ "react-dropzone": "^14.4.0",
110
+ "react-fast-marquee": "^1.6.5",
111
+ "react-resizable-panels": "^4.6.1",
112
+ "react-textarea-autosize": "^8.5.9",
113
+ "recharts": "^2.11.0",
114
+ "vaul": "^1.1.2"
115
+ },
116
+ "lint-staged": {
117
+ "*.{ts,tsx,js,jsx,mjs,cjs}": [
118
+ "bun run format"
119
+ ],
120
+ "*.{json,md,yml,yaml}": [
121
+ "bun run format"
122
+ ]
123
+ },
124
+ "engines": {
125
+ "bun": ">=1.3.6",
126
+ "node": ">=22"
127
+ }
128
+ }