@ziioapp/ui 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (244) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +47 -0
  3. package/THIRD_PARTY_NOTICES.md +3 -0
  4. package/dist/base.css +2 -0
  5. package/dist/hooks/use-mobile.d.ts +1 -0
  6. package/dist/hooks/use-mobile.js +15 -0
  7. package/dist/lib/official-themes.d.ts +76 -0
  8. package/dist/lib/official-themes.js +102 -0
  9. package/dist/lib/utils.d.ts +2 -0
  10. package/dist/lib/utils.js +5 -0
  11. package/dist/registry/registry.json +427 -0
  12. package/dist/registry/ziio-ui.json +421 -0
  13. package/dist/shadcn/components/accordion.d.ts +6 -0
  14. package/dist/shadcn/components/accordion.js +18 -0
  15. package/dist/shadcn/components/alert-dialog.d.ts +18 -0
  16. package/dist/shadcn/components/alert-dialog.js +44 -0
  17. package/dist/shadcn/components/alert.d.ts +10 -0
  18. package/dist/shadcn/components/alert.js +29 -0
  19. package/dist/shadcn/components/aspect-ratio.d.ts +4 -0
  20. package/dist/shadcn/components/aspect-ratio.js +9 -0
  21. package/dist/shadcn/components/attachment.d.ts +23 -0
  22. package/dist/shadcn/components/attachment.js +70 -0
  23. package/dist/shadcn/components/avatar.d.ts +11 -0
  24. package/dist/shadcn/components/avatar.js +25 -0
  25. package/dist/shadcn/components/badge.d.ts +7 -0
  26. package/dist/shadcn/components/badge.js +34 -0
  27. package/dist/shadcn/components/breadcrumb.d.ts +10 -0
  28. package/dist/shadcn/components/breadcrumb.js +38 -0
  29. package/dist/shadcn/components/bubble.d.ts +16 -0
  30. package/dist/shadcn/components/bubble.js +61 -0
  31. package/dist/shadcn/components/button-group.d.ts +10 -0
  32. package/dist/shadcn/components/button-group.js +37 -0
  33. package/dist/shadcn/components/button.d.ts +8 -0
  34. package/dist/shadcn/components/button.js +35 -0
  35. package/dist/shadcn/components/calendar.d.ts +10 -0
  36. package/dist/shadcn/components/calendar.js +77 -0
  37. package/dist/shadcn/components/card.d.ts +11 -0
  38. package/dist/shadcn/components/card.js +26 -0
  39. package/dist/shadcn/components/carousel.d.ts +28 -0
  40. package/dist/shadcn/components/carousel.js +92 -0
  41. package/dist/shadcn/components/chart.d.ts +44 -0
  42. package/dist/shadcn/components/chart.js +133 -0
  43. package/dist/shadcn/components/checkbox.d.ts +3 -0
  44. package/dist/shadcn/components/checkbox.js +10 -0
  45. package/dist/shadcn/components/collapsible.d.ts +5 -0
  46. package/dist/shadcn/components/collapsible.js +14 -0
  47. package/dist/shadcn/components/combobox.d.ts +24 -0
  48. package/dist/shadcn/components/combobox.js +59 -0
  49. package/dist/shadcn/components/command.d.ts +19 -0
  50. package/dist/shadcn/components/command.js +37 -0
  51. package/dist/shadcn/components/context-menu.d.ts +29 -0
  52. package/dist/shadcn/components/context-menu.js +53 -0
  53. package/dist/shadcn/components/dialog.d.ts +17 -0
  54. package/dist/shadcn/components/dialog.js +39 -0
  55. package/dist/shadcn/components/direction.d.ts +1 -0
  56. package/dist/shadcn/components/direction.js +3 -0
  57. package/dist/shadcn/components/drawer.d.ts +16 -0
  58. package/dist/shadcn/components/drawer.js +76 -0
  59. package/dist/shadcn/components/dropdown-menu.d.ts +29 -0
  60. package/dist/shadcn/components/dropdown-menu.js +53 -0
  61. package/dist/shadcn/components/empty.d.ts +11 -0
  62. package/dist/shadcn/components/empty.js +34 -0
  63. package/dist/shadcn/components/field.d.ts +24 -0
  64. package/dist/shadcn/components/field.js +69 -0
  65. package/dist/shadcn/components/hover-card.d.ts +5 -0
  66. package/dist/shadcn/components/hover-card.js +15 -0
  67. package/dist/shadcn/components/input-group.d.ts +18 -0
  68. package/dist/shadcn/components/input-group.js +59 -0
  69. package/dist/shadcn/components/input-otp.d.ts +11 -0
  70. package/dist/shadcn/components/input-otp.js +22 -0
  71. package/dist/shadcn/components/input.d.ts +3 -0
  72. package/dist/shadcn/components/input.js +9 -0
  73. package/dist/shadcn/components/item.d.ts +22 -0
  74. package/dist/shadcn/components/item.js +80 -0
  75. package/dist/shadcn/components/kbd.d.ts +3 -0
  76. package/dist/shadcn/components/kbd.js +10 -0
  77. package/dist/shadcn/components/label.d.ts +3 -0
  78. package/dist/shadcn/components/label.js +9 -0
  79. package/dist/shadcn/components/marker.d.ts +10 -0
  80. package/dist/shadcn/components/marker.js +36 -0
  81. package/dist/shadcn/components/menubar.d.ts +29 -0
  82. package/dist/shadcn/components/menubar.js +58 -0
  83. package/dist/shadcn/components/message-scroller.d.ts +10 -0
  84. package/dist/shadcn/components/message-scroller.js +27 -0
  85. package/dist/shadcn/components/message.d.ts +10 -0
  86. package/dist/shadcn/components/message.js +23 -0
  87. package/dist/shadcn/components/native-select.d.ts +8 -0
  88. package/dist/shadcn/components/native-select.js +15 -0
  89. package/dist/shadcn/components/navigation-menu.d.ts +11 -0
  90. package/dist/shadcn/components/navigation-menu.js +32 -0
  91. package/dist/shadcn/components/pagination.d.ts +17 -0
  92. package/dist/shadcn/components/pagination.js +28 -0
  93. package/dist/shadcn/components/popover.d.ts +9 -0
  94. package/dist/shadcn/components/popover.js +25 -0
  95. package/dist/shadcn/components/progress.d.ts +7 -0
  96. package/dist/shadcn/components/progress.js +21 -0
  97. package/dist/shadcn/components/questionnaire.d.ts +19 -0
  98. package/dist/shadcn/components/questionnaire.js +54 -0
  99. package/dist/shadcn/components/radio-group.d.ts +5 -0
  100. package/dist/shadcn/components/radio-group.js +13 -0
  101. package/dist/shadcn/components/resizable.d.ts +7 -0
  102. package/dist/shadcn/components/resizable.js +15 -0
  103. package/dist/shadcn/components/scroll-area.d.ts +4 -0
  104. package/dist/shadcn/components/scroll-area.js +12 -0
  105. package/dist/shadcn/components/select.d.ts +15 -0
  106. package/dist/shadcn/components/select.js +36 -0
  107. package/dist/shadcn/components/separator.d.ts +3 -0
  108. package/dist/shadcn/components/separator.js +9 -0
  109. package/dist/shadcn/components/sheet.d.ts +14 -0
  110. package/dist/shadcn/components/sheet.js +39 -0
  111. package/dist/shadcn/components/sidebar.d.ts +63 -0
  112. package/dist/shadcn/components/sidebar.js +257 -0
  113. package/dist/shadcn/components/skeleton.d.ts +2 -0
  114. package/dist/shadcn/components/skeleton.js +7 -0
  115. package/dist/shadcn/components/slider.d.ts +3 -0
  116. package/dist/shadcn/components/slider.js +13 -0
  117. package/dist/shadcn/components/sonner.d.ts +3 -0
  118. package/dist/shadcn/components/sonner.js +26 -0
  119. package/dist/shadcn/components/spinner.d.ts +2 -0
  120. package/dist/shadcn/components/spinner.js +8 -0
  121. package/dist/shadcn/components/switch.d.ts +5 -0
  122. package/dist/shadcn/components/switch.js +9 -0
  123. package/dist/shadcn/components/table.d.ts +10 -0
  124. package/dist/shadcn/components/table.js +30 -0
  125. package/dist/shadcn/components/tabs.d.ts +10 -0
  126. package/dist/shadcn/components/tabs.js +30 -0
  127. package/dist/shadcn/components/textarea.d.ts +3 -0
  128. package/dist/shadcn/components/textarea.js +8 -0
  129. package/dist/shadcn/components/toast.d.ts +15 -0
  130. package/dist/shadcn/components/toast.js +68 -0
  131. package/dist/shadcn/components/toggle-group.d.ts +10 -0
  132. package/dist/shadcn/components/toggle-group.js +26 -0
  133. package/dist/shadcn/components/toggle.d.ts +8 -0
  134. package/dist/shadcn/components/toggle.js +27 -0
  135. package/dist/shadcn/components/tooltip.d.ts +6 -0
  136. package/dist/shadcn/components/tooltip.js +18 -0
  137. package/dist/shadcn/hooks/use-mobile.d.ts +1 -0
  138. package/dist/shadcn/hooks/use-mobile.js +16 -0
  139. package/dist/size-report.json +80 -0
  140. package/dist/styles/app-loading.css +40 -0
  141. package/dist/styles/bases/base-mauve.css +71 -0
  142. package/dist/styles/bases/base-mist.css +71 -0
  143. package/dist/styles/bases/base-neutral.css +71 -0
  144. package/dist/styles/bases/base-olive.css +71 -0
  145. package/dist/styles/bases/base-stone.css +71 -0
  146. package/dist/styles/bases/base-taupe.css +71 -0
  147. package/dist/styles/bases/base-zinc.css +71 -0
  148. package/dist/styles/chart.css +18 -0
  149. package/dist/styles/charts/chart-amber.css +18 -0
  150. package/dist/styles/charts/chart-blue.css +18 -0
  151. package/dist/styles/charts/chart-rose.css +18 -0
  152. package/dist/styles/charts/chart-teal.css +18 -0
  153. package/dist/styles/compiled/luma.css +2 -0
  154. package/dist/styles/compiled/lyra.css +2 -0
  155. package/dist/styles/compiled/maia.css +2 -0
  156. package/dist/styles/compiled/mira.css +2 -0
  157. package/dist/styles/compiled/nova.css +2 -0
  158. package/dist/styles/compiled/rhea.css +2 -0
  159. package/dist/styles/compiled/sera.css +2 -0
  160. package/dist/styles/compiled/vega.css +2 -0
  161. package/dist/styles/index.css +52 -0
  162. package/dist/styles/official/bases/base-mauve.css +67 -0
  163. package/dist/styles/official/bases/base-mist.css +67 -0
  164. package/dist/styles/official/bases/base-neutral.css +67 -0
  165. package/dist/styles/official/bases/base-olive.css +67 -0
  166. package/dist/styles/official/bases/base-stone.css +67 -0
  167. package/dist/styles/official/bases/base-taupe.css +67 -0
  168. package/dist/styles/official/bases/base-zinc.css +67 -0
  169. package/dist/styles/official/charts/chart-amber.css +14 -0
  170. package/dist/styles/official/charts/chart-blue.css +14 -0
  171. package/dist/styles/official/charts/chart-cyan.css +14 -0
  172. package/dist/styles/official/charts/chart-emerald.css +14 -0
  173. package/dist/styles/official/charts/chart-fuchsia.css +14 -0
  174. package/dist/styles/official/charts/chart-green.css +14 -0
  175. package/dist/styles/official/charts/chart-indigo.css +14 -0
  176. package/dist/styles/official/charts/chart-lime.css +14 -0
  177. package/dist/styles/official/charts/chart-mauve.css +14 -0
  178. package/dist/styles/official/charts/chart-mist.css +14 -0
  179. package/dist/styles/official/charts/chart-neutral.css +14 -0
  180. package/dist/styles/official/charts/chart-olive.css +14 -0
  181. package/dist/styles/official/charts/chart-orange.css +14 -0
  182. package/dist/styles/official/charts/chart-pink.css +14 -0
  183. package/dist/styles/official/charts/chart-purple.css +14 -0
  184. package/dist/styles/official/charts/chart-red.css +14 -0
  185. package/dist/styles/official/charts/chart-rose.css +14 -0
  186. package/dist/styles/official/charts/chart-sky.css +14 -0
  187. package/dist/styles/official/charts/chart-stone.css +14 -0
  188. package/dist/styles/official/charts/chart-taupe.css +14 -0
  189. package/dist/styles/official/charts/chart-teal.css +14 -0
  190. package/dist/styles/official/charts/chart-violet.css +14 -0
  191. package/dist/styles/official/charts/chart-yellow.css +14 -0
  192. package/dist/styles/official/charts/chart-zinc.css +14 -0
  193. package/dist/styles/official/themes/theme-amber.css +26 -0
  194. package/dist/styles/official/themes/theme-blue.css +26 -0
  195. package/dist/styles/official/themes/theme-cyan.css +26 -0
  196. package/dist/styles/official/themes/theme-emerald.css +26 -0
  197. package/dist/styles/official/themes/theme-fuchsia.css +26 -0
  198. package/dist/styles/official/themes/theme-green.css +26 -0
  199. package/dist/styles/official/themes/theme-indigo.css +26 -0
  200. package/dist/styles/official/themes/theme-lime.css +26 -0
  201. package/dist/styles/official/themes/theme-mauve.css +67 -0
  202. package/dist/styles/official/themes/theme-mist.css +67 -0
  203. package/dist/styles/official/themes/theme-neutral.css +67 -0
  204. package/dist/styles/official/themes/theme-olive.css +67 -0
  205. package/dist/styles/official/themes/theme-orange.css +26 -0
  206. package/dist/styles/official/themes/theme-pink.css +26 -0
  207. package/dist/styles/official/themes/theme-purple.css +26 -0
  208. package/dist/styles/official/themes/theme-red.css +26 -0
  209. package/dist/styles/official/themes/theme-rose.css +27 -0
  210. package/dist/styles/official/themes/theme-sky.css +26 -0
  211. package/dist/styles/official/themes/theme-stone.css +67 -0
  212. package/dist/styles/official/themes/theme-taupe.css +67 -0
  213. package/dist/styles/official/themes/theme-teal.css +26 -0
  214. package/dist/styles/official/themes/theme-violet.css +26 -0
  215. package/dist/styles/official/themes/theme-yellow.css +26 -0
  216. package/dist/styles/official/themes/theme-zinc.css +67 -0
  217. package/dist/styles/runtime.css +6 -0
  218. package/dist/styles/shadcn-utilities.css +629 -0
  219. package/dist/styles/shadcn.css +169 -0
  220. package/dist/styles/source.css +1 -0
  221. package/dist/styles/styles/all.css +8 -0
  222. package/dist/styles/styles/style-luma.css +1744 -0
  223. package/dist/styles/styles/style-lyra.css +1723 -0
  224. package/dist/styles/styles/style-maia.css +1745 -0
  225. package/dist/styles/styles/style-mira.css +1750 -0
  226. package/dist/styles/styles/style-nova.css +1748 -0
  227. package/dist/styles/styles/style-rhea.css +1744 -0
  228. package/dist/styles/styles/style-sera.css +1735 -0
  229. package/dist/styles/styles/style-vega.css +1748 -0
  230. package/dist/styles/theme-base.css +102 -0
  231. package/dist/styles/themes/theme-atmosphere-coffee.css +72 -0
  232. package/dist/styles/themes/theme-atmosphere-halloween.css +72 -0
  233. package/dist/styles/themes/theme-atmosphere-literary.css +72 -0
  234. package/dist/styles/themes/theme-atmosphere-sakura.css +72 -0
  235. package/dist/styles/themes/theme-blue.css +20 -0
  236. package/dist/styles/themes/theme-indigo.css +20 -0
  237. package/dist/styles/themes/theme-morandi-dust.css +72 -0
  238. package/dist/styles/themes/theme-morandi-fog.css +72 -0
  239. package/dist/styles/themes/theme-morandi-sage.css +72 -0
  240. package/dist/styles/themes/theme-rose.css +20 -0
  241. package/dist/styles.css +2 -0
  242. package/package.json +108 -0
  243. package/upstream/components.json +870 -0
  244. package/upstream/lock.json +101 -0
@@ -0,0 +1,77 @@
1
+ // Generated from locked shadcn upstream; edit scripts/sync-upstream.mjs, not this file.
2
+ "use client";
3
+ import { jsx as _jsx } from "react/jsx-runtime";
4
+ import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
5
+ import * as React from "react";
6
+ import { cn } from "@ziioapp/ui/lib/utils";
7
+ import { DayPicker, getDefaultClassNames, } from "react-day-picker";
8
+ import { Button, buttonVariants } from "@ziioapp/ui/components/button";
9
+ function Calendar({ className, classNames, showOutsideDays = true, captionLayout = "label", buttonVariant = "ghost", locale, formatters, components, ...props }) {
10
+ const defaultClassNames = getDefaultClassNames();
11
+ return (_jsx(DayPicker, { showOutsideDays: showOutsideDays, className: cn("cn-calendar group/calendar bg-background in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent", String.raw `rtl:**:[.rdp-button\_next>svg]:rotate-180`, String.raw `rtl:**:[.rdp-button\_previous>svg]:rotate-180`, className), captionLayout: captionLayout, locale: locale, formatters: {
12
+ formatMonthDropdown: (date) => date.toLocaleString(locale?.code, { month: "short" }),
13
+ ...formatters,
14
+ }, classNames: {
15
+ root: cn("w-fit", defaultClassNames.root),
16
+ months: cn("relative flex flex-col gap-4 md:flex-row", defaultClassNames.months),
17
+ month: cn("flex w-full flex-col gap-4", defaultClassNames.month),
18
+ nav: cn("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1", defaultClassNames.nav),
19
+ button_previous: cn(buttonVariants({ variant: buttonVariant }), "size-(--cell-size) p-0 select-none aria-disabled:opacity-50", defaultClassNames.button_previous),
20
+ button_next: cn(buttonVariants({ variant: buttonVariant }), "size-(--cell-size) p-0 select-none aria-disabled:opacity-50", defaultClassNames.button_next),
21
+ month_caption: cn("flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)", defaultClassNames.month_caption),
22
+ dropdowns: cn("flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium", defaultClassNames.dropdowns),
23
+ dropdown_root: cn("cn-calendar-dropdown-root relative rounded-(--cell-radius)", defaultClassNames.dropdown_root),
24
+ dropdown: cn("absolute inset-0 bg-popover opacity-0", defaultClassNames.dropdown),
25
+ caption_label: cn("font-medium select-none", captionLayout === "label"
26
+ ? "cn-calendar-caption text-sm"
27
+ : "cn-calendar-caption-label flex items-center gap-1 rounded-(--cell-radius) text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground", defaultClassNames.caption_label),
28
+ month_grid: cn("w-full border-collapse", defaultClassNames.month_grid),
29
+ weekdays: cn("flex", defaultClassNames.weekdays),
30
+ weekday: cn("flex-1 rounded-(--cell-radius) text-[0.8rem] font-normal text-muted-foreground select-none", defaultClassNames.weekday),
31
+ week: cn("mt-2 flex w-full", defaultClassNames.week),
32
+ week_number_header: cn("w-(--cell-size) select-none", defaultClassNames.week_number_header),
33
+ week_number: cn("text-[0.8rem] text-muted-foreground select-none", defaultClassNames.week_number),
34
+ day: cn("group/day relative aspect-square h-full w-full rounded-(--cell-radius) p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-r-(--cell-radius)", props.showWeekNumber
35
+ ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-(--cell-radius)"
36
+ : "[&:first-child[data-selected=true]_button]:rounded-l-(--cell-radius)", defaultClassNames.day),
37
+ range_start: cn("relative isolate z-0 rounded-l-(--cell-radius) bg-muted after:absolute after:inset-y-0 after:right-0 after:w-4 after:bg-muted", defaultClassNames.range_start),
38
+ range_middle: cn("rounded-none", defaultClassNames.range_middle),
39
+ range_end: cn("relative isolate z-0 rounded-r-(--cell-radius) bg-muted after:absolute after:inset-y-0 after:left-0 after:w-4 after:bg-muted", defaultClassNames.range_end),
40
+ today: cn("rounded-(--cell-radius) bg-muted text-foreground data-[selected=true]:rounded-none", defaultClassNames.today),
41
+ outside: cn("text-muted-foreground aria-selected:text-muted-foreground", defaultClassNames.outside),
42
+ disabled: cn("text-muted-foreground opacity-50", defaultClassNames.disabled),
43
+ hidden: cn("invisible", defaultClassNames.hidden),
44
+ ...classNames,
45
+ }, components: {
46
+ Root: ({ className, rootRef, ...props }) => {
47
+ return (_jsx("div", { "data-slot": "calendar", ref: rootRef, className: cn(className), ...props }));
48
+ },
49
+ Chevron: ({ className, orientation, ...props }) => {
50
+ if (orientation === "left") {
51
+ return (_jsx(ChevronLeftIcon, { className: cn("cn-rtl-flip size-4", className), ...props }));
52
+ }
53
+ if (orientation === "right") {
54
+ return (_jsx(ChevronRightIcon, { className: cn("cn-rtl-flip size-4", className), ...props }));
55
+ }
56
+ return (_jsx(ChevronDownIcon, { className: cn("size-4", className), ...props }));
57
+ },
58
+ DayButton: ({ ...props }) => (_jsx(CalendarDayButton, { locale: locale, ...props })),
59
+ WeekNumber: ({ children, ...props }) => {
60
+ return (_jsx("td", { ...props, children: _jsx("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children: children }) }));
61
+ },
62
+ ...components,
63
+ }, ...props }));
64
+ }
65
+ function CalendarDayButton({ className, day, modifiers, locale, ...props }) {
66
+ const defaultClassNames = getDefaultClassNames();
67
+ const ref = React.useRef(null);
68
+ React.useEffect(() => {
69
+ if (modifiers.focused)
70
+ ref.current?.focus();
71
+ }, [modifiers.focused]);
72
+ return (_jsx(Button, { variant: "ghost", size: "icon", "data-day": day.date.toLocaleDateString(locale?.code), "data-selected-single": modifiers.selected &&
73
+ !modifiers.range_start &&
74
+ !modifiers.range_end &&
75
+ !modifiers.range_middle, "data-range-start": modifiers.range_start, "data-range-end": modifiers.range_end, "data-range-middle": modifiers.range_middle, className: cn("cn-calendar-day-button relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 border-0 leading-none font-normal 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 data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-r-(--cell-radius) data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-muted data-[range-middle=true]:text-foreground data-[range-start=true]:rounded-(--cell-radius) data-[range-start=true]:rounded-l-(--cell-radius) data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:text-foreground [&>span]:text-xs [&>span]:opacity-70", defaultClassNames.day, className), ...props }));
76
+ }
77
+ export { Calendar, CalendarDayButton };
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ declare function Card({ className, size, ...props }: React.ComponentProps<"div"> & {
3
+ size?: "default" | "sm";
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
6
+ declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
7
+ declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
8
+ declare function CardAction({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
9
+ declare function CardContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
10
+ declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
11
+ export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
@@ -0,0 +1,26 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ // Generated from locked shadcn upstream; edit scripts/sync-upstream.mjs, not this file.
3
+ import * as React from "react";
4
+ import { cn } from "@ziioapp/ui/lib/utils";
5
+ function Card({ className, size = "default", ...props }) {
6
+ return (_jsx("div", { "data-slot": "card", "data-size": size, className: cn("cn-card group/card flex flex-col", className), ...props }));
7
+ }
8
+ function CardHeader({ className, ...props }) {
9
+ return (_jsx("div", { "data-slot": "card-header", className: cn("cn-card-header group/card-header @container/card-header grid auto-rows-min items-start has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]", className), ...props }));
10
+ }
11
+ function CardTitle({ className, ...props }) {
12
+ return (_jsx("div", { "data-slot": "card-title", className: cn("cn-card-title cn-font-heading", className), ...props }));
13
+ }
14
+ function CardDescription({ className, ...props }) {
15
+ return (_jsx("div", { "data-slot": "card-description", className: cn("cn-card-description", className), ...props }));
16
+ }
17
+ function CardAction({ className, ...props }) {
18
+ return (_jsx("div", { "data-slot": "card-action", className: cn("cn-card-action col-start-2 row-span-2 row-start-1 self-start justify-self-end", className), ...props }));
19
+ }
20
+ function CardContent({ className, ...props }) {
21
+ return (_jsx("div", { "data-slot": "card-content", className: cn("cn-card-content", className), ...props }));
22
+ }
23
+ function CardFooter({ className, ...props }) {
24
+ return (_jsx("div", { "data-slot": "card-footer", className: cn("cn-card-footer flex items-center", className), ...props }));
25
+ }
26
+ export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
@@ -0,0 +1,28 @@
1
+ import * as React from "react";
2
+ import useEmblaCarousel, { type UseEmblaCarouselType } from "embla-carousel-react";
3
+ import { Button } from "@ziioapp/ui/components/button";
4
+ type CarouselApi = UseEmblaCarouselType[1];
5
+ type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
6
+ type CarouselOptions = UseCarouselParameters[0];
7
+ type CarouselPlugin = UseCarouselParameters[1];
8
+ type CarouselProps = {
9
+ opts?: CarouselOptions;
10
+ plugins?: CarouselPlugin;
11
+ orientation?: "horizontal" | "vertical";
12
+ setApi?: (api: CarouselApi) => void;
13
+ };
14
+ type CarouselContextProps = {
15
+ carouselRef: ReturnType<typeof useEmblaCarousel>[0];
16
+ api: ReturnType<typeof useEmblaCarousel>[1];
17
+ scrollPrev: () => void;
18
+ scrollNext: () => void;
19
+ canScrollPrev: boolean;
20
+ canScrollNext: boolean;
21
+ } & CarouselProps;
22
+ declare function useCarousel(): CarouselContextProps;
23
+ declare function Carousel({ orientation, opts, setApi, plugins, className, children, ...props }: React.ComponentProps<"div"> & CarouselProps): import("react/jsx-runtime").JSX.Element;
24
+ declare function CarouselContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
25
+ declare function CarouselItem({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
26
+ declare function CarouselPrevious({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
27
+ declare function CarouselNext({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
28
+ export { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, useCarousel, };
@@ -0,0 +1,92 @@
1
+ // Generated from locked shadcn upstream; edit scripts/sync-upstream.mjs, not this file.
2
+ "use client";
3
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
+ import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
5
+ import * as React from "react";
6
+ import { cn } from "@ziioapp/ui/lib/utils";
7
+ import useEmblaCarousel, {} from "embla-carousel-react";
8
+ import { Button } from "@ziioapp/ui/components/button";
9
+ const CarouselContext = React.createContext(null);
10
+ function useCarousel() {
11
+ const context = React.useContext(CarouselContext);
12
+ if (!context) {
13
+ throw new Error("useCarousel must be used within a <Carousel />");
14
+ }
15
+ return context;
16
+ }
17
+ function Carousel({ orientation = "horizontal", opts, setApi, plugins, className, children, ...props }) {
18
+ const [carouselRef, api] = useEmblaCarousel({
19
+ ...opts,
20
+ axis: orientation === "horizontal" ? "x" : "y",
21
+ }, plugins);
22
+ const [canScrollPrev, setCanScrollPrev] = React.useState(false);
23
+ const [canScrollNext, setCanScrollNext] = React.useState(false);
24
+ const onSelect = React.useCallback((api) => {
25
+ if (!api)
26
+ return;
27
+ setCanScrollPrev(api.canScrollPrev());
28
+ setCanScrollNext(api.canScrollNext());
29
+ }, []);
30
+ const scrollPrev = React.useCallback(() => {
31
+ api?.scrollPrev();
32
+ }, [api]);
33
+ const scrollNext = React.useCallback(() => {
34
+ api?.scrollNext();
35
+ }, [api]);
36
+ const handleKeyDown = React.useCallback((event) => {
37
+ if (event.key === "ArrowLeft") {
38
+ event.preventDefault();
39
+ scrollPrev();
40
+ }
41
+ else if (event.key === "ArrowRight") {
42
+ event.preventDefault();
43
+ scrollNext();
44
+ }
45
+ }, [scrollPrev, scrollNext]);
46
+ React.useEffect(() => {
47
+ if (!api || !setApi)
48
+ return;
49
+ setApi(api);
50
+ }, [api, setApi]);
51
+ React.useEffect(() => {
52
+ if (!api)
53
+ return;
54
+ onSelect(api);
55
+ api.on("reInit", onSelect);
56
+ api.on("select", onSelect);
57
+ return () => {
58
+ api?.off("select", onSelect);
59
+ };
60
+ }, [api, onSelect]);
61
+ return (_jsx(CarouselContext.Provider, { value: {
62
+ carouselRef,
63
+ api: api,
64
+ opts,
65
+ orientation: orientation || (opts?.axis === "y" ? "vertical" : "horizontal"),
66
+ scrollPrev,
67
+ scrollNext,
68
+ canScrollPrev,
69
+ canScrollNext,
70
+ }, children: _jsx("div", { onKeyDownCapture: handleKeyDown, className: cn("relative", className), role: "region", "aria-roledescription": "carousel", "data-slot": "carousel", ...props, children: children }) }));
71
+ }
72
+ function CarouselContent({ className, ...props }) {
73
+ const { carouselRef, orientation } = useCarousel();
74
+ return (_jsx("div", { ref: carouselRef, className: "overflow-hidden", "data-slot": "carousel-content", children: _jsx("div", { className: cn("flex", orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col", className), ...props }) }));
75
+ }
76
+ function CarouselItem({ className, ...props }) {
77
+ const { orientation } = useCarousel();
78
+ return (_jsx("div", { role: "group", "aria-roledescription": "slide", "data-slot": "carousel-item", className: cn("min-w-0 shrink-0 grow-0 basis-full", orientation === "horizontal" ? "pl-4" : "pt-4", className), ...props }));
79
+ }
80
+ function CarouselPrevious({ className, variant = "outline", size = "icon-sm", ...props }) {
81
+ const { orientation, scrollPrev, canScrollPrev } = useCarousel();
82
+ return (_jsxs(Button, { "data-slot": "carousel-previous", variant: variant, size: size, className: cn("cn-carousel-previous absolute touch-manipulation", orientation === "horizontal"
83
+ ? "inset-y-0 -left-12 my-auto"
84
+ : "-top-12 left-1/2 -translate-x-1/2 rotate-90", className), disabled: !canScrollPrev, onClick: scrollPrev, ...props, children: [_jsx(ChevronLeftIcon, { className: "cn-rtl-flip" }), _jsx("span", { className: "sr-only", children: "Previous slide" })] }));
85
+ }
86
+ function CarouselNext({ className, variant = "outline", size = "icon-sm", ...props }) {
87
+ const { orientation, scrollNext, canScrollNext } = useCarousel();
88
+ return (_jsxs(Button, { "data-slot": "carousel-next", variant: variant, size: size, className: cn("cn-carousel-next absolute touch-manipulation", orientation === "horizontal"
89
+ ? "inset-y-0 -right-12 my-auto"
90
+ : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90", className), disabled: !canScrollNext, onClick: scrollNext, ...props, children: [_jsx(ChevronRightIcon, { className: "cn-rtl-flip" }), _jsx("span", { className: "sr-only", children: "Next slide" })] }));
91
+ }
92
+ export { Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, useCarousel, };
@@ -0,0 +1,44 @@
1
+ import * as React from "react";
2
+ import * as RechartsPrimitive from "recharts";
3
+ import type { TooltipValueType } from "recharts";
4
+ declare const THEMES: {
5
+ readonly light: "";
6
+ readonly dark: ".dark";
7
+ };
8
+ type TooltipNameType = number | string;
9
+ export type ChartConfig = Record<string, {
10
+ label?: React.ReactNode;
11
+ icon?: React.ComponentType;
12
+ } & ({
13
+ color?: string;
14
+ theme?: never;
15
+ } | {
16
+ color?: never;
17
+ theme: Record<keyof typeof THEMES, string>;
18
+ })>;
19
+ declare function ChartContainer({ id, className, children, config, initialDimension, ...props }: React.ComponentProps<"div"> & {
20
+ config: ChartConfig;
21
+ children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
22
+ initialDimension?: {
23
+ width: number;
24
+ height: number;
25
+ };
26
+ }): import("react/jsx-runtime").JSX.Element;
27
+ declare const ChartStyle: ({ id, config }: {
28
+ id: string;
29
+ config: ChartConfig;
30
+ }) => import("react/jsx-runtime").JSX.Element | null;
31
+ declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
32
+ declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: React.ComponentProps<typeof RechartsPrimitive.Tooltip> & React.ComponentProps<"div"> & {
33
+ hideLabel?: boolean;
34
+ hideIndicator?: boolean;
35
+ indicator?: "line" | "dot" | "dashed";
36
+ nameKey?: string;
37
+ labelKey?: string;
38
+ } & Omit<RechartsPrimitive.DefaultTooltipContentProps<TooltipValueType, TooltipNameType>, "accessibilityLayer">): import("react/jsx-runtime").JSX.Element | null;
39
+ declare const ChartLegend: React.MemoExoticComponent<(outsideProps: RechartsPrimitive.LegendProps) => React.ReactPortal | null>;
40
+ declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: React.ComponentProps<"div"> & {
41
+ hideIcon?: boolean;
42
+ nameKey?: string;
43
+ } & RechartsPrimitive.DefaultLegendContentProps): import("react/jsx-runtime").JSX.Element | null;
44
+ export { ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, ChartLegendContent, ChartStyle, };
@@ -0,0 +1,133 @@
1
+ // Generated from locked shadcn upstream; edit scripts/sync-upstream.mjs, not this file.
2
+ "use client";
3
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
4
+ import * as React from "react";
5
+ import { cn } from "@ziioapp/ui/lib/utils";
6
+ import * as RechartsPrimitive from "recharts";
7
+ // Format: { THEME_NAME: CSS_SELECTOR }
8
+ const THEMES = { light: "", dark: ".dark" };
9
+ const INITIAL_DIMENSION = { width: 320, height: 200 };
10
+ const ChartContext = React.createContext(null);
11
+ function useChart() {
12
+ const context = React.useContext(ChartContext);
13
+ if (!context) {
14
+ throw new Error("useChart must be used within a <ChartContainer />");
15
+ }
16
+ return context;
17
+ }
18
+ function ChartContainer({ id, className, children, config, initialDimension = INITIAL_DIMENSION, ...props }) {
19
+ const uniqueId = React.useId();
20
+ const chartId = `chart-${id ?? uniqueId.replace(/:/g, "")}`;
21
+ return (_jsx(ChartContext.Provider, { value: { config }, children: _jsxs("div", { "data-slot": "chart", "data-chart": chartId, className: cn("cn-chart flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", className), ...props, children: [_jsx(ChartStyle, { id: chartId, config: config }), _jsx(RechartsPrimitive.ResponsiveContainer, { initialDimension: initialDimension, children: children })] }) }));
22
+ }
23
+ const ChartStyle = ({ id, config }) => {
24
+ const colorConfig = Object.entries(config).filter(([, config]) => config.theme ?? config.color);
25
+ if (!colorConfig.length) {
26
+ return null;
27
+ }
28
+ return (_jsx("style", { dangerouslySetInnerHTML: {
29
+ __html: Object.entries(THEMES)
30
+ .map(([theme, prefix]) => `
31
+ ${prefix} [data-chart=${id}] {
32
+ ${colorConfig
33
+ .map(([key, itemConfig]) => {
34
+ const color = itemConfig.theme?.[theme] ??
35
+ itemConfig.color;
36
+ return color ? ` --color-${key}: ${color};` : null;
37
+ })
38
+ .join("\n")}
39
+ }
40
+ `)
41
+ .join("\n"),
42
+ } }));
43
+ };
44
+ const ChartTooltip = RechartsPrimitive.Tooltip;
45
+ function ChartTooltipContent({ active, payload, className, indicator = "dot", hideLabel = false, hideIndicator = false, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }) {
46
+ const { config } = useChart();
47
+ const tooltipLabel = React.useMemo(() => {
48
+ if (hideLabel || !payload?.length) {
49
+ return null;
50
+ }
51
+ const [item] = payload;
52
+ const key = `${labelKey ?? item?.dataKey ?? item?.name ?? "value"}`;
53
+ const itemConfig = getPayloadConfigFromPayload(config, item, key);
54
+ const value = !labelKey && typeof label === "string"
55
+ ? (config[label]?.label ?? label)
56
+ : itemConfig?.label;
57
+ if (labelFormatter) {
58
+ return (_jsx("div", { className: cn("font-medium", labelClassName), children: labelFormatter(value, payload) }));
59
+ }
60
+ if (!value) {
61
+ return null;
62
+ }
63
+ return _jsx("div", { className: cn("font-medium", labelClassName), children: value });
64
+ }, [
65
+ label,
66
+ labelFormatter,
67
+ payload,
68
+ hideLabel,
69
+ labelClassName,
70
+ config,
71
+ labelKey,
72
+ ]);
73
+ if (!active || !payload?.length) {
74
+ return null;
75
+ }
76
+ const nestLabel = payload.length === 1 && indicator !== "dot";
77
+ return (_jsxs("div", { className: cn("cn-chart-tooltip grid min-w-32 items-start", className), children: [!nestLabel ? tooltipLabel : null, _jsx("div", { className: "grid gap-1.5", children: payload
78
+ .filter((item) => item.type !== "none")
79
+ .map((item, index) => {
80
+ const key = `${nameKey ?? item.name ?? item.dataKey ?? "value"}`;
81
+ const itemConfig = getPayloadConfigFromPayload(config, item, key);
82
+ const indicatorColor = color ?? item.payload?.fill ?? item.color;
83
+ return (_jsx("div", { 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"), children: formatter && item?.value !== undefined && item.name ? (formatter(item.value, item.name, item, index, item.payload)) : (_jsxs(_Fragment, { children: [itemConfig?.icon ? (_jsx(itemConfig.icon, {})) : (!hideIndicator && (_jsx("div", { className: cn("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)", {
84
+ "h-2.5 w-2.5": indicator === "dot",
85
+ "w-1": indicator === "line",
86
+ "w-0 border-[1.5px] border-dashed bg-transparent": indicator === "dashed",
87
+ "my-0.5": nestLabel && indicator === "dashed",
88
+ }), style: {
89
+ "--color-bg": indicatorColor,
90
+ "--color-border": indicatorColor,
91
+ } }))), _jsxs("div", { className: cn("flex flex-1 justify-between leading-none", nestLabel ? "items-end" : "items-center"), children: [_jsxs("div", { className: "grid gap-1.5", children: [nestLabel ? tooltipLabel : null, _jsx("span", { className: "text-muted-foreground", children: itemConfig?.label ?? item.name })] }), item.value != null && (_jsx("span", { className: "font-mono font-medium text-foreground tabular-nums", children: typeof item.value === "number"
92
+ ? item.value.toLocaleString()
93
+ : String(item.value) }))] })] })) }, index));
94
+ }) })] }));
95
+ }
96
+ const ChartLegend = RechartsPrimitive.Legend;
97
+ function ChartLegendContent({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey, }) {
98
+ const { config } = useChart();
99
+ if (!payload?.length) {
100
+ return null;
101
+ }
102
+ return (_jsx("div", { className: cn("flex items-center justify-center gap-4", verticalAlign === "top" ? "pb-3" : "pt-3", className), children: payload
103
+ .filter((item) => item.type !== "none")
104
+ .map((item, index) => {
105
+ const key = `${nameKey ?? item.dataKey ?? "value"}`;
106
+ const itemConfig = getPayloadConfigFromPayload(config, item, key);
107
+ return (_jsxs("div", { className: cn("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"), children: [itemConfig?.icon && !hideIcon ? (_jsx(itemConfig.icon, {})) : (_jsx("div", { className: "h-2 w-2 shrink-0 rounded-[2px]", style: {
108
+ backgroundColor: item.color,
109
+ } })), itemConfig?.label] }, index));
110
+ }) }));
111
+ }
112
+ function getPayloadConfigFromPayload(config, payload, key) {
113
+ if (typeof payload !== "object" || payload === null) {
114
+ return undefined;
115
+ }
116
+ const payloadPayload = "payload" in payload &&
117
+ typeof payload.payload === "object" &&
118
+ payload.payload !== null
119
+ ? payload.payload
120
+ : undefined;
121
+ let configLabelKey = key;
122
+ if (key in payload &&
123
+ typeof payload[key] === "string") {
124
+ configLabelKey = payload[key];
125
+ }
126
+ else if (payloadPayload &&
127
+ key in payloadPayload &&
128
+ typeof payloadPayload[key] === "string") {
129
+ configLabelKey = payloadPayload[key];
130
+ }
131
+ return configLabelKey in config ? config[configLabelKey] : config[key];
132
+ }
133
+ export { ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, ChartLegendContent, ChartStyle, };
@@ -0,0 +1,3 @@
1
+ import { Checkbox as CheckboxPrimitive } from "@base-ui/react/checkbox";
2
+ declare function Checkbox({ className, ...props }: CheckboxPrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
3
+ export { Checkbox };
@@ -0,0 +1,10 @@
1
+ // Generated from locked shadcn upstream; edit scripts/sync-upstream.mjs, not this file.
2
+ "use client";
3
+ import { jsx as _jsx } from "react/jsx-runtime";
4
+ import { CheckIcon } from "lucide-react";
5
+ import { Checkbox as CheckboxPrimitive } from "@base-ui/react/checkbox";
6
+ import { cn } from "@ziioapp/ui/lib/utils";
7
+ function Checkbox({ className, ...props }) {
8
+ return (_jsx(CheckboxPrimitive.Root, { "data-slot": "checkbox", className: cn("cn-checkbox peer relative shrink-0 outline-none after:absolute after:-inset-x-3 after:-inset-y-2 disabled:cursor-not-allowed disabled:opacity-50", className), ...props, children: _jsx(CheckboxPrimitive.Indicator, { "data-slot": "checkbox-indicator", className: "cn-checkbox-indicator grid place-content-center text-current transition-none", children: _jsx(CheckIcon, {}) }) }));
9
+ }
10
+ export { Checkbox };
@@ -0,0 +1,5 @@
1
+ import { Collapsible as CollapsiblePrimitive } from "@base-ui/react/collapsible";
2
+ declare function Collapsible({ ...props }: CollapsiblePrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
3
+ declare function CollapsibleTrigger({ ...props }: CollapsiblePrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
4
+ declare function CollapsibleContent({ ...props }: CollapsiblePrimitive.Panel.Props): import("react/jsx-runtime").JSX.Element;
5
+ export { Collapsible, CollapsibleTrigger, CollapsibleContent };
@@ -0,0 +1,14 @@
1
+ // Generated from locked shadcn upstream; edit scripts/sync-upstream.mjs, not this file.
2
+ "use client";
3
+ import { jsx as _jsx } from "react/jsx-runtime";
4
+ import { Collapsible as CollapsiblePrimitive } from "@base-ui/react/collapsible";
5
+ function Collapsible({ ...props }) {
6
+ return _jsx(CollapsiblePrimitive.Root, { "data-slot": "collapsible", ...props });
7
+ }
8
+ function CollapsibleTrigger({ ...props }) {
9
+ return (_jsx(CollapsiblePrimitive.Trigger, { "data-slot": "collapsible-trigger", ...props }));
10
+ }
11
+ function CollapsibleContent({ ...props }) {
12
+ return (_jsx(CollapsiblePrimitive.Panel, { "data-slot": "collapsible-content", ...props }));
13
+ }
14
+ export { Collapsible, CollapsibleTrigger, CollapsibleContent };
@@ -0,0 +1,24 @@
1
+ import * as React from "react";
2
+ import { Combobox as ComboboxPrimitive } from "@base-ui/react";
3
+ declare const Combobox: typeof ComboboxPrimitive.Root;
4
+ declare function ComboboxValue({ ...props }: ComboboxPrimitive.Value.Props): import("react/jsx-runtime").JSX.Element;
5
+ declare function ComboboxTrigger({ className, children, ...props }: ComboboxPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
6
+ declare function ComboboxInput({ className, children, disabled, showTrigger, showClear, ...props }: ComboboxPrimitive.Input.Props & {
7
+ showTrigger?: boolean;
8
+ showClear?: boolean;
9
+ }): import("react/jsx-runtime").JSX.Element;
10
+ declare function ComboboxContent({ className, side, sideOffset, align, alignOffset, anchor, ...props }: ComboboxPrimitive.Popup.Props & Pick<ComboboxPrimitive.Positioner.Props, "side" | "align" | "sideOffset" | "alignOffset" | "anchor">): import("react/jsx-runtime").JSX.Element;
11
+ declare function ComboboxList({ className, ...props }: ComboboxPrimitive.List.Props): import("react/jsx-runtime").JSX.Element;
12
+ declare function ComboboxItem({ className, children, ...props }: ComboboxPrimitive.Item.Props): import("react/jsx-runtime").JSX.Element;
13
+ declare function ComboboxGroup({ className, ...props }: ComboboxPrimitive.Group.Props): import("react/jsx-runtime").JSX.Element;
14
+ declare function ComboboxLabel({ className, ...props }: ComboboxPrimitive.GroupLabel.Props): import("react/jsx-runtime").JSX.Element;
15
+ declare function ComboboxCollection({ ...props }: ComboboxPrimitive.Collection.Props): import("react/jsx-runtime").JSX.Element;
16
+ declare function ComboboxEmpty({ className, ...props }: ComboboxPrimitive.Empty.Props): import("react/jsx-runtime").JSX.Element;
17
+ declare function ComboboxSeparator({ className, ...props }: ComboboxPrimitive.Separator.Props): import("react/jsx-runtime").JSX.Element;
18
+ declare function ComboboxChips({ className, ...props }: React.ComponentPropsWithRef<typeof ComboboxPrimitive.Chips> & ComboboxPrimitive.Chips.Props): import("react/jsx-runtime").JSX.Element;
19
+ declare function ComboboxChip({ className, children, showRemove, ...props }: ComboboxPrimitive.Chip.Props & {
20
+ showRemove?: boolean;
21
+ }): import("react/jsx-runtime").JSX.Element;
22
+ declare function ComboboxChipsInput({ className, ...props }: ComboboxPrimitive.Input.Props): import("react/jsx-runtime").JSX.Element;
23
+ declare function useComboboxAnchor(): React.RefObject<HTMLDivElement | null>;
24
+ export { Combobox, ComboboxInput, ComboboxContent, ComboboxList, ComboboxItem, ComboboxGroup, ComboboxLabel, ComboboxCollection, ComboboxEmpty, ComboboxSeparator, ComboboxChips, ComboboxChip, ComboboxChipsInput, ComboboxTrigger, ComboboxValue, useComboboxAnchor, };
@@ -0,0 +1,59 @@
1
+ // Generated from locked shadcn upstream; edit scripts/sync-upstream.mjs, not this file.
2
+ "use client";
3
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
+ import { CheckIcon, ChevronDownIcon, XIcon } from "lucide-react";
5
+ import * as React from "react";
6
+ import { Combobox as ComboboxPrimitive } from "@base-ui/react";
7
+ import { cn } from "@ziioapp/ui/lib/utils";
8
+ import { Button } from "@ziioapp/ui/components/button";
9
+ import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, } from "@ziioapp/ui/components/input-group";
10
+ const Combobox = ComboboxPrimitive.Root;
11
+ function ComboboxValue({ ...props }) {
12
+ return _jsx(ComboboxPrimitive.Value, { "data-slot": "combobox-value", ...props });
13
+ }
14
+ function ComboboxTrigger({ className, children, ...props }) {
15
+ return (_jsxs(ComboboxPrimitive.Trigger, { "data-slot": "combobox-trigger", className: cn("cn-combobox-trigger", className), ...props, children: [children, _jsx(ChevronDownIcon, { className: "cn-combobox-trigger-icon pointer-events-none" })] }));
16
+ }
17
+ function ComboboxClear({ className, ...props }) {
18
+ return (_jsx(ComboboxPrimitive.Clear, { "data-slot": "combobox-clear", render: _jsx(InputGroupButton, { variant: "ghost", size: "icon-xs" }), className: cn("cn-combobox-clear", className), ...props, children: _jsx(XIcon, { className: "cn-combobox-clear-icon pointer-events-none" }) }));
19
+ }
20
+ function ComboboxInput({ className, children, disabled = false, showTrigger = true, showClear = false, ...props }) {
21
+ return (_jsxs(InputGroup, { className: cn("cn-combobox-input w-auto", className), children: [_jsx(ComboboxPrimitive.Input, { render: _jsx(InputGroupInput, { disabled: disabled }), ...props }), _jsxs(InputGroupAddon, { align: "inline-end", children: [showTrigger && (_jsx(InputGroupButton, { size: "icon-xs", variant: "ghost", render: _jsx(ComboboxTrigger, {}), "data-slot": "input-group-button", className: "group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent", disabled: disabled })), showClear && _jsx(ComboboxClear, { disabled: disabled })] }), children] }));
22
+ }
23
+ function ComboboxContent({ className, side = "bottom", sideOffset = 6, align = "start", alignOffset = 0, anchor, ...props }) {
24
+ return (_jsx(ComboboxPrimitive.Portal, { children: _jsx(ComboboxPrimitive.Positioner, { side: side, sideOffset: sideOffset, align: align, alignOffset: alignOffset, anchor: anchor, className: "isolate z-50", children: _jsx(ComboboxPrimitive.Popup, { "data-slot": "combobox-content", "data-chips": !!anchor, className: cn("cn-combobox-content cn-combobox-content-logical cn-menu-target group/combobox-content relative max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-[calc(var(--anchor-width)+--spacing(7))] origin-(--transform-origin) data-[chips=true]:min-w-(--anchor-width)", className), ...props }) }) }));
25
+ }
26
+ function ComboboxList({ className, ...props }) {
27
+ return (_jsx(ComboboxPrimitive.List, { "data-slot": "combobox-list", className: cn("cn-combobox-list overflow-y-auto overscroll-contain", className), ...props }));
28
+ }
29
+ function ComboboxItem({ className, children, ...props }) {
30
+ return (_jsxs(ComboboxPrimitive.Item, { "data-slot": "combobox-item", className: cn("cn-combobox-item relative flex w-full cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", className), ...props, children: [children, _jsx(ComboboxPrimitive.ItemIndicator, { render: _jsx("span", { className: "cn-combobox-item-indicator" }), children: _jsx(CheckIcon, { className: "cn-combobox-item-indicator-icon pointer-events-none" }) })] }));
31
+ }
32
+ function ComboboxGroup({ className, ...props }) {
33
+ return (_jsx(ComboboxPrimitive.Group, { "data-slot": "combobox-group", className: cn("cn-combobox-group", className), ...props }));
34
+ }
35
+ function ComboboxLabel({ className, ...props }) {
36
+ return (_jsx(ComboboxPrimitive.GroupLabel, { "data-slot": "combobox-label", className: cn("cn-combobox-label", className), ...props }));
37
+ }
38
+ function ComboboxCollection({ ...props }) {
39
+ return (_jsx(ComboboxPrimitive.Collection, { "data-slot": "combobox-collection", ...props }));
40
+ }
41
+ function ComboboxEmpty({ className, ...props }) {
42
+ return (_jsx(ComboboxPrimitive.Empty, { "data-slot": "combobox-empty", className: cn("cn-combobox-empty", className), ...props }));
43
+ }
44
+ function ComboboxSeparator({ className, ...props }) {
45
+ return (_jsx(ComboboxPrimitive.Separator, { "data-slot": "combobox-separator", className: cn("cn-combobox-separator", className), ...props }));
46
+ }
47
+ function ComboboxChips({ className, ...props }) {
48
+ return (_jsx(ComboboxPrimitive.Chips, { "data-slot": "combobox-chips", className: cn("cn-combobox-chips", className), ...props }));
49
+ }
50
+ function ComboboxChip({ className, children, showRemove = true, ...props }) {
51
+ return (_jsxs(ComboboxPrimitive.Chip, { "data-slot": "combobox-chip", className: cn("cn-combobox-chip has-disabled:pointer-events-none has-disabled:cursor-not-allowed has-disabled:opacity-50", className), ...props, children: [children, showRemove && (_jsx(ComboboxPrimitive.ChipRemove, { render: _jsx(Button, { variant: "ghost", size: "icon-xs" }), className: "cn-combobox-chip-remove", "data-slot": "combobox-chip-remove", children: _jsx(XIcon, { className: "cn-combobox-chip-indicator-icon pointer-events-none" }) }))] }));
52
+ }
53
+ function ComboboxChipsInput({ className, ...props }) {
54
+ return (_jsx(ComboboxPrimitive.Input, { "data-slot": "combobox-chip-input", className: cn("cn-combobox-chip-input min-w-16 flex-1 outline-none", className), ...props }));
55
+ }
56
+ function useComboboxAnchor() {
57
+ return React.useRef(null);
58
+ }
59
+ export { Combobox, ComboboxInput, ComboboxContent, ComboboxList, ComboboxItem, ComboboxGroup, ComboboxLabel, ComboboxCollection, ComboboxEmpty, ComboboxSeparator, ComboboxChips, ComboboxChip, ComboboxChipsInput, ComboboxTrigger, ComboboxValue, useComboboxAnchor, };
@@ -0,0 +1,19 @@
1
+ import * as React from "react";
2
+ import { Command as CommandPrimitive } from "cmdk";
3
+ import { Dialog } from "@ziioapp/ui/components/dialog";
4
+ declare function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>): import("react/jsx-runtime").JSX.Element;
5
+ declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: Omit<React.ComponentProps<typeof Dialog>, "children"> & {
6
+ title?: string;
7
+ description?: string;
8
+ className?: string;
9
+ showCloseButton?: boolean;
10
+ children: React.ReactNode;
11
+ }): import("react/jsx-runtime").JSX.Element;
12
+ declare function CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>): import("react/jsx-runtime").JSX.Element;
13
+ declare function CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>): import("react/jsx-runtime").JSX.Element;
14
+ declare function CommandEmpty({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>): import("react/jsx-runtime").JSX.Element;
15
+ declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
16
+ declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
17
+ declare function CommandItem({ className, children, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
18
+ declare function CommandShortcut({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
19
+ export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
@@ -0,0 +1,37 @@
1
+ // Generated from locked shadcn upstream; edit scripts/sync-upstream.mjs, not this file.
2
+ "use client";
3
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
+ import { CheckIcon, SearchIcon } from "lucide-react";
5
+ import * as React from "react";
6
+ import { Command as CommandPrimitive } from "cmdk";
7
+ import { cn } from "@ziioapp/ui/lib/utils";
8
+ import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, } from "@ziioapp/ui/components/dialog";
9
+ import { InputGroup, InputGroupAddon, } from "@ziioapp/ui/components/input-group";
10
+ function Command({ className, ...props }) {
11
+ return (_jsx(CommandPrimitive, { "data-slot": "command", className: cn("cn-command flex size-full flex-col overflow-hidden", className), ...props }));
12
+ }
13
+ function CommandDialog({ title = "Command Palette", description = "Search for a command to run...", children, className, showCloseButton = false, ...props }) {
14
+ return (_jsxs(Dialog, { ...props, children: [_jsxs(DialogHeader, { className: "sr-only", children: [_jsx(DialogTitle, { children: title }), _jsx(DialogDescription, { children: description })] }), _jsx(DialogContent, { className: cn("cn-command-dialog top-1/3 translate-y-0 overflow-hidden p-0", className), showCloseButton: showCloseButton, children: children })] }));
15
+ }
16
+ function CommandInput({ className, ...props }) {
17
+ return (_jsx("div", { "data-slot": "command-input-wrapper", className: "cn-command-input-wrapper", children: _jsxs(InputGroup, { className: "cn-command-input-group", children: [_jsx(CommandPrimitive.Input, { "data-slot": "command-input", className: cn("cn-command-input outline-hidden disabled:cursor-not-allowed disabled:opacity-50", className), ...props }), _jsx(InputGroupAddon, { children: _jsx(SearchIcon, { className: "cn-command-input-icon" }) })] }) }));
18
+ }
19
+ function CommandList({ className, ...props }) {
20
+ return (_jsx(CommandPrimitive.List, { "data-slot": "command-list", className: cn("cn-command-list overflow-x-hidden overflow-y-auto", className), ...props }));
21
+ }
22
+ function CommandEmpty({ className, ...props }) {
23
+ return (_jsx(CommandPrimitive.Empty, { "data-slot": "command-empty", className: cn("cn-command-empty", className), ...props }));
24
+ }
25
+ function CommandGroup({ className, ...props }) {
26
+ return (_jsx(CommandPrimitive.Group, { "data-slot": "command-group", className: cn("cn-command-group", className), ...props }));
27
+ }
28
+ function CommandSeparator({ className, ...props }) {
29
+ return (_jsx(CommandPrimitive.Separator, { "data-slot": "command-separator", className: cn("cn-command-separator", className), ...props }));
30
+ }
31
+ function CommandItem({ className, children, ...props }) {
32
+ return (_jsxs(CommandPrimitive.Item, { "data-slot": "command-item", className: cn("cn-command-item group/command-item data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", className), ...props, children: [children, _jsx(CheckIcon, { className: "cn-command-item-indicator ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100" })] }));
33
+ }
34
+ function CommandShortcut({ className, ...props }) {
35
+ return (_jsx("span", { "data-slot": "command-shortcut", className: cn("cn-command-shortcut", className), ...props }));
36
+ }
37
+ export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };