@cascivo/react 0.8.0 → 0.10.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 (287) hide show
  1. package/README.md +24 -11
  2. package/dist/combobox/combobox.js +73 -73
  3. package/dist/command-menu/command-menu.js +2 -2
  4. package/dist/date-picker/date-picker.js +95 -95
  5. package/dist/field/field.js +24 -15
  6. package/dist/filter/filter.js +12 -12
  7. package/dist/index.d.ts +74 -8
  8. package/dist/index.js +2 -0
  9. package/dist/node/accordion/accordion.js +95 -0
  10. package/dist/node/accordion/accordion.module.js +13 -0
  11. package/dist/node/action-sheet/action-sheet.js +91 -0
  12. package/dist/node/action-sheet/action-sheet.module.js +14 -0
  13. package/dist/node/alert/alert.js +55 -0
  14. package/dist/node/alert/alert.module.js +13 -0
  15. package/dist/node/alert-dialog/alert-dialog.js +68 -0
  16. package/dist/node/alert-dialog/alert-dialog.module.js +13 -0
  17. package/dist/node/app-shell/app-shell.js +80 -0
  18. package/dist/node/app-shell/app-shell.module.js +14 -0
  19. package/dist/node/aspect-ratio/aspect-ratio.js +22 -0
  20. package/dist/node/aspect-ratio/aspect-ratio.module.js +8 -0
  21. package/dist/node/avatar/avatar.js +57 -0
  22. package/dist/node/avatar/avatar.module.js +10 -0
  23. package/dist/node/avatar-group/avatar-group.js +26 -0
  24. package/dist/node/avatar-group/avatar-group.module.js +8 -0
  25. package/dist/node/badge/badge.js +17 -0
  26. package/dist/node/badge/badge.module.js +5 -0
  27. package/dist/node/blockquote/blockquote.js +18 -0
  28. package/dist/node/blockquote/blockquote.module.js +8 -0
  29. package/dist/node/bottom-sheet/bottom-sheet.js +111 -0
  30. package/dist/node/bottom-sheet/bottom-sheet.module.js +16 -0
  31. package/dist/node/breadcrumb/breadcrumb.js +28 -0
  32. package/dist/node/breadcrumb/breadcrumb.module.js +5 -0
  33. package/dist/node/button/button.js +31 -0
  34. package/dist/node/button/button.module.js +5 -0
  35. package/dist/node/button-group/button-group.js +39 -0
  36. package/dist/node/button-group/button-group.module.js +5 -0
  37. package/dist/node/calendar/calendar.js +195 -0
  38. package/dist/node/calendar/calendar.module.js +16 -0
  39. package/dist/node/card/card.js +45 -0
  40. package/dist/node/card/card.module.js +11 -0
  41. package/dist/node/carousel/carousel.js +138 -0
  42. package/dist/node/carousel/carousel.module.js +15 -0
  43. package/dist/node/chat-bubble/chat-bubble.js +33 -0
  44. package/dist/node/chat-bubble/chat-bubble.module.js +13 -0
  45. package/dist/node/checkbox/checkbox.js +38 -0
  46. package/dist/node/checkbox/checkbox.module.js +10 -0
  47. package/dist/node/checkbox-card/checkbox-card.js +48 -0
  48. package/dist/node/checkbox-card/checkbox-card.module.js +13 -0
  49. package/dist/node/code/code.js +16 -0
  50. package/dist/node/code/code.module.js +5 -0
  51. package/dist/node/code-snippet/code-snippet.js +116 -0
  52. package/dist/node/code-snippet/code-snippet.module.js +19 -0
  53. package/dist/node/code-snippet/highlight.js +69 -0
  54. package/dist/node/collapsible/collapsible.js +42 -0
  55. package/dist/node/collapsible/collapsible.module.js +10 -0
  56. package/dist/node/color-picker/color-picker.js +268 -0
  57. package/dist/node/color-picker/color-picker.module.js +20 -0
  58. package/dist/node/combobox/combobox.js +164 -0
  59. package/dist/node/combobox/combobox.module.js +21 -0
  60. package/dist/node/command-menu/command-menu.js +425 -0
  61. package/dist/node/command-menu/command-menu.module.js +36 -0
  62. package/dist/node/comparison/comparison.js +69 -0
  63. package/dist/node/comparison/comparison.module.js +11 -0
  64. package/dist/node/contained-list/contained-list.js +41 -0
  65. package/dist/node/contained-list/contained-list.module.js +13 -0
  66. package/dist/node/context-menu/context-menu.js +89 -0
  67. package/dist/node/context-menu/context-menu.module.js +9 -0
  68. package/dist/node/copy-button/copy-button.js +58 -0
  69. package/dist/node/copy-button/copy-button.module.js +8 -0
  70. package/dist/node/data-list/data-list.js +27 -0
  71. package/dist/node/data-list/data-list.module.js +10 -0
  72. package/dist/node/data-table/data-table.js +370 -0
  73. package/dist/node/data-table/data-table.module.js +35 -0
  74. package/dist/node/date-picker/date-picker.js +218 -0
  75. package/dist/node/date-picker/date-picker.module.js +25 -0
  76. package/dist/node/date-range-picker/date-range-picker.js +196 -0
  77. package/dist/node/date-range-picker/date-range-picker.module.js +20 -0
  78. package/dist/node/dock/dock.js +34 -0
  79. package/dist/node/dock/dock.module.js +10 -0
  80. package/dist/node/drawer/drawer.js +95 -0
  81. package/dist/node/drawer/drawer.module.js +15 -0
  82. package/dist/node/dropdown/dropdown.js +109 -0
  83. package/dist/node/dropdown/dropdown.module.js +11 -0
  84. package/dist/node/editable/editable.js +67 -0
  85. package/dist/node/editable/editable.module.js +13 -0
  86. package/dist/node/empty-state/empty-state.js +34 -0
  87. package/dist/node/empty-state/empty-state.module.js +11 -0
  88. package/dist/node/fab/fab.js +93 -0
  89. package/dist/node/fab/fab.module.js +14 -0
  90. package/dist/node/field/field.js +48 -0
  91. package/dist/node/field/field.module.js +9 -0
  92. package/dist/node/file-uploader/file-uploader.js +122 -0
  93. package/dist/node/file-uploader/file-uploader.module.js +20 -0
  94. package/dist/node/filter/filter.js +34 -0
  95. package/dist/node/filter/filter.module.js +8 -0
  96. package/dist/node/form/form.js +95 -0
  97. package/dist/node/form/form.module.js +5 -0
  98. package/dist/node/header/header.js +44 -0
  99. package/dist/node/header/header.module.js +13 -0
  100. package/dist/node/header-panel/header-panel.js +74 -0
  101. package/dist/node/header-panel/header-panel.module.js +11 -0
  102. package/dist/node/heading/heading.js +24 -0
  103. package/dist/node/heading/heading.module.js +5 -0
  104. package/dist/node/hover-card/hover-card.js +84 -0
  105. package/dist/node/hover-card/hover-card.module.js +8 -0
  106. package/dist/node/icon-button/icon-button.js +21 -0
  107. package/dist/node/icon-button/icon-button.module.js +5 -0
  108. package/dist/node/image/image.js +64 -0
  109. package/dist/node/image/image.module.js +11 -0
  110. package/dist/node/index.js +2 -0
  111. package/dist/node/indicator/indicator.js +18 -0
  112. package/dist/node/indicator/indicator.module.js +8 -0
  113. package/dist/node/inline-loading/inline-loading.js +76 -0
  114. package/dist/node/inline-loading/inline-loading.module.js +11 -0
  115. package/dist/node/input/input.js +54 -0
  116. package/dist/node/input/input.module.js +11 -0
  117. package/dist/node/input-group/input-group.js +41 -0
  118. package/dist/node/input-group/input-group.module.js +11 -0
  119. package/dist/node/item/item.js +52 -0
  120. package/dist/node/item/item.module.js +12 -0
  121. package/dist/node/join/join.js +14 -0
  122. package/dist/node/join/join.module.js +5 -0
  123. package/dist/node/kbd/kbd.js +16 -0
  124. package/dist/node/kbd/kbd.module.js +5 -0
  125. package/dist/node/label/label.js +25 -0
  126. package/dist/node/label/label.module.js +9 -0
  127. package/dist/node/layouts/src/auto-grid/auto-grid.js +19 -0
  128. package/dist/node/layouts/src/auto-grid/auto-grid.module.js +6 -0
  129. package/dist/node/layouts/src/center/center.js +18 -0
  130. package/dist/node/layouts/src/center/center.module.js +5 -0
  131. package/dist/node/layouts/src/columns/columns.js +23 -0
  132. package/dist/node/layouts/src/columns/columns.module.js +8 -0
  133. package/dist/node/layouts/src/flex/flex.js +22 -0
  134. package/dist/node/layouts/src/flex/flex.module.js +5 -0
  135. package/dist/node/layouts/src/grid/grid.js +57 -0
  136. package/dist/node/layouts/src/grid/grid.module.js +9 -0
  137. package/dist/node/layouts/src/spacer/spacer.js +19 -0
  138. package/dist/node/layouts/src/spacer/spacer.module.js +5 -0
  139. package/dist/node/link/link.js +22 -0
  140. package/dist/node/link/link.module.js +5 -0
  141. package/dist/node/list/list.js +23 -0
  142. package/dist/node/list/list.module.js +8 -0
  143. package/dist/node/log-viewer/log-viewer.js +184 -0
  144. package/dist/node/log-viewer/log-viewer.module.js +18 -0
  145. package/dist/node/menu/menu.js +121 -0
  146. package/dist/node/menu/menu.module.js +10 -0
  147. package/dist/node/menu-button/menu-button.js +92 -0
  148. package/dist/node/menu-button/menu-button.module.js +10 -0
  149. package/dist/node/menubar/menubar.js +103 -0
  150. package/dist/node/menubar/menubar.module.js +10 -0
  151. package/dist/node/modal/modal.js +70 -0
  152. package/dist/node/modal/modal.module.js +13 -0
  153. package/dist/node/multi-select/multi-select.js +106 -0
  154. package/dist/node/multi-select/multi-select.module.js +17 -0
  155. package/dist/node/native-select/native-select.js +37 -0
  156. package/dist/node/native-select/native-select.module.js +9 -0
  157. package/dist/node/navigation-menu/navigation-menu.js +99 -0
  158. package/dist/node/navigation-menu/navigation-menu.module.js +12 -0
  159. package/dist/node/notification/notification.js +134 -0
  160. package/dist/node/notification/notification.module.js +13 -0
  161. package/dist/node/number-input/number-input.js +145 -0
  162. package/dist/node/number-input/number-input.module.js +14 -0
  163. package/dist/node/otp-input/otp-input.js +70 -0
  164. package/dist/node/otp-input/otp-input.module.js +8 -0
  165. package/dist/node/overflow-menu/overflow-menu.js +65 -0
  166. package/dist/node/overflow-menu/overflow-menu.module.js +9 -0
  167. package/dist/node/pagination/pagination.js +92 -0
  168. package/dist/node/pagination/pagination.module.js +13 -0
  169. package/dist/node/password-input/password-input.js +80 -0
  170. package/dist/node/password-input/password-input.module.js +13 -0
  171. package/dist/node/popover/popover.js +49 -0
  172. package/dist/node/popover/popover.module.js +8 -0
  173. package/dist/node/popover/use-popover.js +57 -0
  174. package/dist/node/progress/progress.js +17 -0
  175. package/dist/node/progress/progress.module.js +8 -0
  176. package/dist/node/progress-bar/progress-bar.js +44 -0
  177. package/dist/node/progress-bar/progress-bar.module.js +13 -0
  178. package/dist/node/progress-circle/progress-circle.js +48 -0
  179. package/dist/node/progress-circle/progress-circle.module.js +11 -0
  180. package/dist/node/progress-indicator/progress-indicator.js +36 -0
  181. package/dist/node/progress-indicator/progress-indicator.module.js +12 -0
  182. package/dist/node/prose/prose.js +15 -0
  183. package/dist/node/prose/prose.module.js +5 -0
  184. package/dist/node/pull-to-refresh/pull-to-refresh.js +82 -0
  185. package/dist/node/pull-to-refresh/pull-to-refresh.module.js +11 -0
  186. package/dist/node/qr-code/encode.js +585 -0
  187. package/dist/node/qr-code/qr-code.js +41 -0
  188. package/dist/node/qr-code/qr-code.module.js +8 -0
  189. package/dist/node/radial-progress/radial-progress.js +28 -0
  190. package/dist/node/radial-progress/radial-progress.module.js +8 -0
  191. package/dist/node/radio/radio.js +49 -0
  192. package/dist/node/radio/radio.module.js +11 -0
  193. package/dist/node/radio-card/radio-card.js +63 -0
  194. package/dist/node/radio-card/radio-card.module.js +13 -0
  195. package/dist/node/rating-group/rating-group.js +37 -0
  196. package/dist/node/rating-group/rating-group.module.js +8 -0
  197. package/dist/node/react/src/index.js +138 -0
  198. package/dist/node/react/src/theme.js +54 -0
  199. package/dist/node/relative-time/relative-time.js +66 -0
  200. package/dist/node/relative-time/relative-time.module.js +5 -0
  201. package/dist/node/resizable/resizable.js +80 -0
  202. package/dist/node/resizable/resizable.module.js +10 -0
  203. package/dist/node/scroll-area/scroll-area.js +38 -0
  204. package/dist/node/scroll-area/scroll-area.module.js +5 -0
  205. package/dist/node/search/search.js +94 -0
  206. package/dist/node/search/search.module.js +11 -0
  207. package/dist/node/segmented-control/segmented-control.js +43 -0
  208. package/dist/node/segmented-control/segmented-control.module.js +8 -0
  209. package/dist/node/select/select.js +71 -0
  210. package/dist/node/select/select.module.js +13 -0
  211. package/dist/node/separator/separator.js +21 -0
  212. package/dist/node/separator/separator.module.js +5 -0
  213. package/dist/node/sheet/sheet.js +50 -0
  214. package/dist/node/sheet/sheet.module.js +11 -0
  215. package/dist/node/shell-header/shell-header.js +166 -0
  216. package/dist/node/shell-header/shell-header.module.js +25 -0
  217. package/dist/node/side-nav/side-nav.js +333 -0
  218. package/dist/node/side-nav/side-nav.module.js +33 -0
  219. package/dist/node/skeleton/skeleton.js +25 -0
  220. package/dist/node/skeleton/skeleton.module.js +9 -0
  221. package/dist/node/skip-nav/skip-nav.js +27 -0
  222. package/dist/node/skip-nav/skip-nav.module.js +5 -0
  223. package/dist/node/slider/slider.js +29 -0
  224. package/dist/node/slider/slider.module.js +9 -0
  225. package/dist/node/spinner/spinner.js +18 -0
  226. package/dist/node/spinner/spinner.module.js +8 -0
  227. package/dist/node/stack/stack.js +19 -0
  228. package/dist/node/stack/stack.module.js +8 -0
  229. package/dist/node/stat/stat.js +41 -0
  230. package/dist/node/stat/stat.module.js +13 -0
  231. package/dist/node/status/status.js +20 -0
  232. package/dist/node/status/status.module.js +9 -0
  233. package/dist/node/steps/steps.js +35 -0
  234. package/dist/node/steps/steps.module.js +10 -0
  235. package/dist/node/storage/src/drivers.js +36 -0
  236. package/dist/node/storage/src/persisted-signal.js +43 -0
  237. package/dist/node/structured-list/structured-list.js +101 -0
  238. package/dist/node/structured-list/structured-list.module.js +14 -0
  239. package/dist/node/swap/swap.js +36 -0
  240. package/dist/node/swap/swap.module.js +9 -0
  241. package/dist/node/swipe-item/swipe-item.js +62 -0
  242. package/dist/node/swipe-item/swipe-item.module.js +14 -0
  243. package/dist/node/switcher/switcher.js +32 -0
  244. package/dist/node/switcher/switcher.module.js +10 -0
  245. package/dist/node/tabs/tabs.js +95 -0
  246. package/dist/node/tabs/tabs.module.js +10 -0
  247. package/dist/node/tag/tag.js +26 -0
  248. package/dist/node/tag/tag.module.js +8 -0
  249. package/dist/node/tags-input/tags-input.js +64 -0
  250. package/dist/node/tags-input/tags-input.module.js +10 -0
  251. package/dist/node/text/text.js +18 -0
  252. package/dist/node/text/text.module.js +5 -0
  253. package/dist/node/textarea/textarea.js +56 -0
  254. package/dist/node/textarea/textarea.module.js +11 -0
  255. package/dist/node/tile/tile.js +39 -0
  256. package/dist/node/tile/tile.module.js +9 -0
  257. package/dist/node/time-picker/time-picker.js +62 -0
  258. package/dist/node/time-picker/time-picker.module.js +11 -0
  259. package/dist/node/timeline/timeline.js +41 -0
  260. package/dist/node/timeline/timeline.module.js +13 -0
  261. package/dist/node/toast/toast.js +85 -0
  262. package/dist/node/toast/toast.module.js +13 -0
  263. package/dist/node/toc/toc.js +42 -0
  264. package/dist/node/toc/toc.module.js +5 -0
  265. package/dist/node/toc/use-toc-from-region.js +18 -0
  266. package/dist/node/toggle/toggle.js +39 -0
  267. package/dist/node/toggle/toggle.module.js +10 -0
  268. package/dist/node/toggle-group/toggle-group.js +55 -0
  269. package/dist/node/toggle-group/toggle-group.module.js +8 -0
  270. package/dist/node/toggletip/toggletip.js +49 -0
  271. package/dist/node/toggletip/toggletip.module.js +9 -0
  272. package/dist/node/tooltip/tooltip.js +58 -0
  273. package/dist/node/tooltip/tooltip.module.js +8 -0
  274. package/dist/node/tree-view/tree-view.js +201 -0
  275. package/dist/node/tree-view/tree-view.module.js +15 -0
  276. package/dist/node/user/user.js +37 -0
  277. package/dist/node/user/user.module.js +11 -0
  278. package/dist/node/visually-hidden/visually-hidden.js +15 -0
  279. package/dist/node/visually-hidden/visually-hidden.module.js +5 -0
  280. package/dist/number-input/number-input.js +41 -41
  281. package/dist/react/src/theme.js +42 -31
  282. package/dist/search/search.js +35 -35
  283. package/dist/swap/swap.js +12 -12
  284. package/dist/time-picker/time-picker.js +24 -24
  285. package/dist/toggle/toggle.js +12 -12
  286. package/package.json +7 -6
  287. package/readme.body.md +24 -11
@@ -0,0 +1,84 @@
1
+ "use client";
2
+
3
+ import { usePopover as e } from "../popover/use-popover.js";
4
+ import t from "./hover-card.module.js";
5
+ import { useSignalEffect as n, useSignals as r } from "@cascivo/core";
6
+ import { jsx as i } from "react/jsx-runtime";
7
+ import { createContext as a, useRef as o } from "react";
8
+ //#region ../components/src/hover-card/hover-card.tsx
9
+ var s = a(null);
10
+ function c({ children: t, openDelay: r = 300, closeDelay: a = 100 }) {
11
+ let c = e(), l = o(void 0), u = o(void 0), d = o(r);
12
+ d.current = r;
13
+ let f = o(a);
14
+ f.current = a;
15
+ let p = {
16
+ ...c,
17
+ open: () => {
18
+ clearTimeout(u.current), l.current = setTimeout(() => {
19
+ c.isOpen.value = !0;
20
+ }, d.current);
21
+ },
22
+ close: () => {
23
+ clearTimeout(l.current), u.current = setTimeout(() => {
24
+ c.isOpen.value = !1;
25
+ }, f.current);
26
+ }
27
+ };
28
+ return n(() => () => {
29
+ clearTimeout(l.current), clearTimeout(u.current);
30
+ }), /* @__PURE__ */ i(s.Provider, {
31
+ value: p,
32
+ children: t
33
+ });
34
+ }
35
+ function l({ ctx: e, children: n }) {
36
+ r();
37
+ let { triggerRef: a, anchorName: o, open: s, close: c } = e;
38
+ return /* @__PURE__ */ i("span", {
39
+ ref: a,
40
+ style: { anchorName: o },
41
+ onMouseEnter: s,
42
+ onMouseLeave: c,
43
+ onFocus: s,
44
+ onBlur: c,
45
+ className: t.trigger,
46
+ children: n
47
+ });
48
+ }
49
+ function u({ children: e }) {
50
+ return /* @__PURE__ */ i(s.Consumer, { children: (t) => {
51
+ if (!t) throw Error("HoverCardTrigger must be inside <HoverCard>");
52
+ return /* @__PURE__ */ i(l, {
53
+ ctx: t,
54
+ children: e
55
+ });
56
+ } });
57
+ }
58
+ function d({ ctx: e, children: n, className: a }) {
59
+ r();
60
+ let { popoverRef: o, anchorName: s, isOpen: c, open: l, close: u } = e;
61
+ return /* @__PURE__ */ i("div", {
62
+ ref: o,
63
+ popover: "auto",
64
+ role: "complementary",
65
+ "data-state": c.value ? "open" : "closed",
66
+ style: { positionAnchor: s },
67
+ onMouseEnter: l,
68
+ onMouseLeave: u,
69
+ className: [t.content, a].filter(Boolean).join(" "),
70
+ children: n
71
+ });
72
+ }
73
+ function f({ children: e, className: t }) {
74
+ return /* @__PURE__ */ i(s.Consumer, { children: (n) => {
75
+ if (!n) throw Error("HoverCardContent must be inside <HoverCard>");
76
+ return /* @__PURE__ */ i(d, {
77
+ ctx: n,
78
+ ...t !== void 0 && { className: t },
79
+ children: e
80
+ });
81
+ } });
82
+ }
83
+ //#endregion
84
+ export { c as HoverCard, f as HoverCardContent, u as HoverCardTrigger };
@@ -0,0 +1,8 @@
1
+ "use client";
2
+
3
+ var e = {
4
+ trigger: "_trigger_p0sib_2",
5
+ content: "_content_p0sib_7"
6
+ };
7
+ //#endregion
8
+ export { e as default };
@@ -0,0 +1,21 @@
1
+ "use client";
2
+
3
+ import e from "./icon-button.module.js";
4
+ import { Slot as t, cn as n } from "@cascivo/core";
5
+ import { jsx as r } from "react/jsx-runtime";
6
+ import { forwardRef as i } from "react";
7
+ //#region ../components/src/icon-button/icon-button.tsx
8
+ var a = i(function({ label: i, icon: a, size: o = "md", variant: s = "ghost", asChild: c = !1, className: l, children: u, ...d }, f) {
9
+ return /* @__PURE__ */ r(c ? t : "button", {
10
+ type: c ? void 0 : "button",
11
+ "aria-label": i,
12
+ "data-size": o,
13
+ "data-variant": s,
14
+ className: n(e.iconButton, l),
15
+ ref: f,
16
+ ...d,
17
+ children: u ?? a
18
+ });
19
+ });
20
+ //#endregion
21
+ export { a as IconButton };
@@ -0,0 +1,5 @@
1
+ "use client";
2
+
3
+ var e = { iconButton: "_iconButton_13zh2_2" };
4
+ //#endregion
5
+ export { e as default };
@@ -0,0 +1,64 @@
1
+ "use client";
2
+
3
+ import e from "./image.module.js";
4
+ import { cn as t, createMachine as n, useMachine as r, useSignals as i } from "@cascivo/core";
5
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
6
+ //#region ../components/src/image/image.tsx
7
+ var s = n({
8
+ initial: "loading",
9
+ states: {
10
+ loading: { on: {
11
+ LOADED: "loaded",
12
+ ERROR: "error"
13
+ } },
14
+ loaded: {},
15
+ error: {}
16
+ }
17
+ });
18
+ function c({ src: n, alt: c = "", fallbackSrc: l, width: u, height: d, radius: f = "md", zoom: p = !1, removeWrapper: m = !1, isBlurred: h = !1, className: g, style: _, ...v }) {
19
+ i();
20
+ let [y, b] = r(s), x = y.value === "error", S = x && !l, C = x && l ? l : n, w = {
21
+ ...u !== void 0 && { inlineSize: u },
22
+ ...d !== void 0 && { blockSize: d }
23
+ };
24
+ return m ? /* @__PURE__ */ a("img", {
25
+ className: t(e.image, g),
26
+ src: C,
27
+ alt: c,
28
+ onLoad: () => b("LOADED"),
29
+ onError: () => b("ERROR"),
30
+ style: {
31
+ ...w,
32
+ ..._
33
+ },
34
+ ...v
35
+ }) : /* @__PURE__ */ o("span", {
36
+ "data-state": y.value,
37
+ "data-radius": f,
38
+ "data-zoom": p || void 0,
39
+ "data-blurred": h || void 0,
40
+ className: t(e.wrapper, g),
41
+ style: {
42
+ ...w,
43
+ ..._
44
+ },
45
+ role: S ? "img" : void 0,
46
+ "aria-label": S ? c : void 0,
47
+ children: [y.value === "loading" && /* @__PURE__ */ a("span", {
48
+ className: e.placeholder,
49
+ "aria-hidden": "true"
50
+ }), S ? /* @__PURE__ */ a("span", {
51
+ className: e.fallback,
52
+ "aria-hidden": "true"
53
+ }) : /* @__PURE__ */ a("img", {
54
+ className: e.image,
55
+ src: C,
56
+ alt: c,
57
+ onLoad: () => b("LOADED"),
58
+ onError: () => b("ERROR"),
59
+ ...v
60
+ })]
61
+ });
62
+ }
63
+ //#endregion
64
+ export { c as Image };
@@ -0,0 +1,11 @@
1
+ "use client";
2
+
3
+ var e = {
4
+ wrapper: "_wrapper_1cf1d_2",
5
+ image: "_image_1cf1d_28",
6
+ placeholder: "_placeholder_1cf1d_47",
7
+ "cascade-image-shimmer": "_cascade-image-shimmer_1cf1d_1",
8
+ fallback: "_fallback_1cf1d_66"
9
+ };
10
+ //#endregion
11
+ export { e as default };
@@ -0,0 +1,2 @@
1
+ 'use client';
2
+ export * from './react/src/index.js';
@@ -0,0 +1,18 @@
1
+ "use client";
2
+
3
+ import e from "./indicator.module.js";
4
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
5
+ //#region ../components/src/indicator/indicator.tsx
6
+ function r({ children: r, overlay: i, placement: a = "top-end", className: o }) {
7
+ return /* @__PURE__ */ n("div", {
8
+ className: [e.indicator, o].filter(Boolean).join(" "),
9
+ "data-placement": a,
10
+ children: [r, /* @__PURE__ */ t("div", {
11
+ className: e.overlay,
12
+ "aria-hidden": !0,
13
+ children: i
14
+ })]
15
+ });
16
+ }
17
+ //#endregion
18
+ export { r as Indicator };
@@ -0,0 +1,8 @@
1
+ "use client";
2
+
3
+ var e = {
4
+ indicator: "_indicator_12iz3_2",
5
+ overlay: "_overlay_12iz3_7"
6
+ };
7
+ //#endregion
8
+ export { e as default };
@@ -0,0 +1,76 @@
1
+ "use client";
2
+
3
+ import { Spinner as e } from "../spinner/spinner.js";
4
+ import t from "./inline-loading.module.js";
5
+ import { cn as n } from "@cascivo/core";
6
+ import { builtin as r, t as i } from "@cascivo/i18n";
7
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
8
+ //#region ../components/src/inline-loading/inline-loading.tsx
9
+ function s(e, t) {
10
+ switch (e) {
11
+ case "active": return t?.active ?? i(r.inlineLoading.active);
12
+ case "finished": return t?.finished ?? i(r.inlineLoading.finished);
13
+ case "error": return t?.error ?? i(r.inlineLoading.error);
14
+ default: return "";
15
+ }
16
+ }
17
+ function c({ status: n }) {
18
+ return n === "active" ? /* @__PURE__ */ a(e, {
19
+ size: "sm",
20
+ className: t.spinner
21
+ }) : n === "finished" ? /* @__PURE__ */ a("svg", {
22
+ className: t.icon,
23
+ viewBox: "0 0 16 16",
24
+ width: "16",
25
+ height: "16",
26
+ fill: "none",
27
+ "aria-hidden": "true",
28
+ children: /* @__PURE__ */ a("path", {
29
+ d: "M3.5 8.5l3 3 6-7",
30
+ stroke: "currentColor",
31
+ strokeWidth: "1.75",
32
+ strokeLinecap: "round",
33
+ strokeLinejoin: "round"
34
+ })
35
+ }) : n === "error" ? /* @__PURE__ */ o("svg", {
36
+ className: t.icon,
37
+ viewBox: "0 0 16 16",
38
+ width: "16",
39
+ height: "16",
40
+ fill: "none",
41
+ "aria-hidden": "true",
42
+ children: [/* @__PURE__ */ a("path", {
43
+ d: "M8 4.5v4M8 11h.01",
44
+ stroke: "currentColor",
45
+ strokeWidth: "1.75",
46
+ strokeLinecap: "round",
47
+ strokeLinejoin: "round"
48
+ }), /* @__PURE__ */ a("circle", {
49
+ cx: "8",
50
+ cy: "8",
51
+ r: "6.25",
52
+ stroke: "currentColor",
53
+ strokeWidth: "1.5"
54
+ })]
55
+ }) : null;
56
+ }
57
+ function l({ status: e, label: r, labels: i, className: l, ...u }) {
58
+ let d = r ?? s(e, i);
59
+ return /* @__PURE__ */ o("div", {
60
+ role: "status",
61
+ "aria-live": "polite",
62
+ "data-status": e,
63
+ className: n(t["inline-loading"], l),
64
+ ...u,
65
+ children: [/* @__PURE__ */ a("span", {
66
+ className: t.indicator,
67
+ "aria-hidden": "true",
68
+ children: /* @__PURE__ */ a(c, { status: e })
69
+ }), d && /* @__PURE__ */ a("span", {
70
+ className: t.label,
71
+ children: d
72
+ })]
73
+ });
74
+ }
75
+ //#endregion
76
+ export { l as InlineLoading };
@@ -0,0 +1,11 @@
1
+ "use client";
2
+
3
+ var e = {
4
+ "inline-loading": "_inline-loading_h27o5_2",
5
+ indicator: "_indicator_h27o5_20",
6
+ spinner: "_spinner_h27o5_29",
7
+ icon: "_icon_h27o5_33",
8
+ label: "_label_h27o5_46"
9
+ };
10
+ //#endregion
11
+ export { e as default };
@@ -0,0 +1,54 @@
1
+ "use client";
2
+
3
+ import e from "./input.module.js";
4
+ import { cn as t, createMachine as n, useMachine as r } from "@cascivo/core";
5
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
+ //#region ../components/src/input/input.tsx
7
+ var o = n({
8
+ initial: "idle",
9
+ states: {
10
+ idle: { on: { FOCUS: "focused" } },
11
+ focused: { on: { BLUR: "idle" } }
12
+ }
13
+ });
14
+ function s({ label: n, hint: s, error: c, size: l = "md", className: u, id: d, onFocus: f, onBlur: p, ...m }) {
15
+ let [h, g] = r(o), _ = d ?? (n ? `cascade-input-${n.toLowerCase().replace(/\s+/g, "-")}` : void 0);
16
+ return /* @__PURE__ */ a("div", {
17
+ className: t(e.wrapper, u),
18
+ "data-state": c ? "error" : h.value,
19
+ "data-size": l,
20
+ children: [
21
+ n && /* @__PURE__ */ i("label", {
22
+ className: e.label,
23
+ htmlFor: _,
24
+ children: n
25
+ }),
26
+ /* @__PURE__ */ i("input", {
27
+ id: _,
28
+ className: e.input,
29
+ "aria-invalid": c ? !0 : void 0,
30
+ "aria-describedby": c ? `${_}-error` : s ? `${_}-hint` : void 0,
31
+ onFocus: (e) => {
32
+ g("FOCUS"), f?.(e);
33
+ },
34
+ onBlur: (e) => {
35
+ g("BLUR"), p?.(e);
36
+ },
37
+ ...m
38
+ }),
39
+ c && /* @__PURE__ */ i("span", {
40
+ id: `${_}-error`,
41
+ className: e.error,
42
+ role: "alert",
43
+ children: c
44
+ }),
45
+ !c && s && /* @__PURE__ */ i("span", {
46
+ id: `${_}-hint`,
47
+ className: e.hint,
48
+ children: s
49
+ })
50
+ ]
51
+ });
52
+ }
53
+ //#endregion
54
+ export { s as Input };
@@ -0,0 +1,11 @@
1
+ "use client";
2
+
3
+ var e = {
4
+ wrapper: "_wrapper_ao79u_2",
5
+ label: "_label_ao79u_26",
6
+ input: "_input_ao79u_34",
7
+ error: "_error_ao79u_77",
8
+ hint: "_hint_ao79u_84"
9
+ };
10
+ //#endregion
11
+ export { e as default };
@@ -0,0 +1,41 @@
1
+ "use client";
2
+
3
+ import e from "./input-group.module.js";
4
+ import { cn as t } from "@cascivo/core";
5
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
6
+ //#region ../components/src/input-group/input-group.tsx
7
+ function i({ align: r = "inline-start", children: i, className: a, ...o }) {
8
+ return /* @__PURE__ */ n("span", {
9
+ className: t(e["inline-addon"], a),
10
+ "data-align": r,
11
+ "aria-hidden": "true",
12
+ ...o,
13
+ children: i
14
+ });
15
+ }
16
+ function a({ prefix: i, suffix: a, children: o, className: s, ...c }) {
17
+ return /* @__PURE__ */ r("div", {
18
+ className: t(e["input-group"], s),
19
+ "data-has-prefix": i ? "" : void 0,
20
+ "data-has-suffix": a ? "" : void 0,
21
+ ...c,
22
+ children: [
23
+ i && /* @__PURE__ */ n("span", {
24
+ className: e.addon,
25
+ "data-position": "prefix",
26
+ children: i
27
+ }),
28
+ /* @__PURE__ */ n("span", {
29
+ className: e["input-wrap"],
30
+ children: o
31
+ }),
32
+ a && /* @__PURE__ */ n("span", {
33
+ className: e.addon,
34
+ "data-position": "suffix",
35
+ children: a
36
+ })
37
+ ]
38
+ });
39
+ }
40
+ //#endregion
41
+ export { a as InputGroup, i as InputGroupAddon };
@@ -0,0 +1,11 @@
1
+ "use client";
2
+
3
+ var e = {
4
+ "input-group": "_input-group_n9tv2_2",
5
+ "input-wrap": "_input-wrap_n9tv2_8",
6
+ addon: "_addon_n9tv2_18",
7
+ "inline-addon": "_inline-addon_n9tv2_55",
8
+ "button-group": "_button-group_n9tv2_101"
9
+ };
10
+ //#endregion
11
+ export { e as default };
@@ -0,0 +1,52 @@
1
+ "use client";
2
+
3
+ import e from "./item.module.js";
4
+ import { Slot as t, cn as n } from "@cascivo/core";
5
+ import { jsx as r } from "react/jsx-runtime";
6
+ //#region ../components/src/item/item.tsx
7
+ function i({ asChild: i = !1, variant: a = "default", size: o = "md", className: s, children: c, ...l }) {
8
+ return /* @__PURE__ */ r(i ? t : "div", {
9
+ "data-variant": a,
10
+ "data-size": o,
11
+ className: n(e.item, s),
12
+ ...l,
13
+ children: c
14
+ });
15
+ }
16
+ function a({ className: t, children: i, ...a }) {
17
+ return /* @__PURE__ */ r("div", {
18
+ className: n(e.media, t),
19
+ ...a,
20
+ children: i
21
+ });
22
+ }
23
+ function o({ className: t, children: i, ...a }) {
24
+ return /* @__PURE__ */ r("div", {
25
+ className: n(e.content, t),
26
+ ...a,
27
+ children: i
28
+ });
29
+ }
30
+ function s({ className: t, children: i, ...a }) {
31
+ return /* @__PURE__ */ r("div", {
32
+ className: n(e.title, t),
33
+ ...a,
34
+ children: i
35
+ });
36
+ }
37
+ function c({ className: t, children: i, ...a }) {
38
+ return /* @__PURE__ */ r("p", {
39
+ className: n(e.description, t),
40
+ ...a,
41
+ children: i
42
+ });
43
+ }
44
+ function l({ className: t, children: i, ...a }) {
45
+ return /* @__PURE__ */ r("div", {
46
+ className: n(e.actions, t),
47
+ ...a,
48
+ children: i
49
+ });
50
+ }
51
+ //#endregion
52
+ export { i as Item, l as ItemActions, o as ItemContent, c as ItemDescription, a as ItemMedia, s as ItemTitle };
@@ -0,0 +1,12 @@
1
+ "use client";
2
+
3
+ var e = {
4
+ item: "_item_1uxrt_2",
5
+ media: "_media_1uxrt_30",
6
+ content: "_content_1uxrt_38",
7
+ title: "_title_1uxrt_45",
8
+ description: "_description_1uxrt_51",
9
+ actions: "_actions_1uxrt_58"
10
+ };
11
+ //#endregion
12
+ export { e as default };
@@ -0,0 +1,14 @@
1
+ "use client";
2
+
3
+ import e from "./join.module.js";
4
+ import { jsx as t } from "react/jsx-runtime";
5
+ //#region ../components/src/join/join.tsx
6
+ function n({ children: n, orientation: r = "horizontal", className: i }) {
7
+ return /* @__PURE__ */ t("div", {
8
+ className: [e.join, i].filter(Boolean).join(" "),
9
+ "data-orientation": r,
10
+ children: n
11
+ });
12
+ }
13
+ //#endregion
14
+ export { n as Join };
@@ -0,0 +1,5 @@
1
+ "use client";
2
+
3
+ var e = { join: "_join_qgqwu_2" };
4
+ //#endregion
5
+ export { e as default };
@@ -0,0 +1,16 @@
1
+ "use client";
2
+
3
+ import e from "./kbd.module.js";
4
+ import { cn as t } from "@cascivo/core";
5
+ import { jsx as n } from "react/jsx-runtime";
6
+ //#region ../components/src/kbd/kbd.tsx
7
+ function r({ size: r = "md", className: i, children: a, ...o }) {
8
+ return /* @__PURE__ */ n("kbd", {
9
+ "data-size": r,
10
+ className: t(e.kbd, i),
11
+ ...o,
12
+ children: a
13
+ });
14
+ }
15
+ //#endregion
16
+ export { r as Kbd };
@@ -0,0 +1,5 @@
1
+ "use client";
2
+
3
+ var e = { kbd: "_kbd_fz6em_2" };
4
+ //#endregion
5
+ export { e as default };
@@ -0,0 +1,25 @@
1
+ "use client";
2
+
3
+ import e from "./label.module.js";
4
+ import { Slot as t, cn as n } from "@cascivo/core";
5
+ import { builtin as r, t as i } from "@cascivo/i18n";
6
+ import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
7
+ //#region ../components/src/label/label.tsx
8
+ function c({ asChild: c = !1, required: l = !1, disabled: u = !1, className: d, children: f, labels: p, ...m }) {
9
+ let h = c ? t : "label", g = p?.required ?? i(r.label.required), _ = l ? /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o("span", {
10
+ className: e.marker,
11
+ "aria-hidden": "true",
12
+ children: "*"
13
+ }), /* @__PURE__ */ o("span", {
14
+ className: e.srOnly,
15
+ children: g
16
+ })] }) : null;
17
+ return /* @__PURE__ */ o(h, {
18
+ "data-disabled": u ? "" : void 0,
19
+ className: n(e.label, d),
20
+ ...m,
21
+ children: _ ? /* @__PURE__ */ s(a, { children: [f, _] }) : f
22
+ });
23
+ }
24
+ //#endregion
25
+ export { c as Label };
@@ -0,0 +1,9 @@
1
+ "use client";
2
+
3
+ var e = {
4
+ label: "_label_qztdi_2",
5
+ marker: "_marker_qztdi_18",
6
+ srOnly: "_srOnly_qztdi_23"
7
+ };
8
+ //#endregion
9
+ export { e as default };
@@ -0,0 +1,19 @@
1
+ "use client";
2
+
3
+ import e from "./auto-grid.module.js";
4
+ import { cn as t } from "@cascivo/core";
5
+ import { jsx as n } from "react/jsx-runtime";
6
+ //#region ../layouts/src/auto-grid/auto-grid.tsx
7
+ function r({ min: r = "16rem", gap: i = 4, className: a, style: o, ...s }) {
8
+ return /* @__PURE__ */ n("div", {
9
+ className: t(e["auto-grid"], a),
10
+ style: {
11
+ "--_min": r,
12
+ "--_gap": `var(--cascivo-space-${i})`,
13
+ ...o
14
+ },
15
+ ...s
16
+ });
17
+ }
18
+ //#endregion
19
+ export { r as AutoGrid };
@@ -0,0 +1,6 @@
1
+ "use client";
2
+
3
+ //#region ../layouts/src/auto-grid/auto-grid.module.css
4
+ var e = { "auto-grid": "_auto-grid_v8cqo_2" };
5
+ //#endregion
6
+ export { e as default };
@@ -0,0 +1,18 @@
1
+ "use client";
2
+
3
+ import e from "./center.module.js";
4
+ import { cn as t } from "@cascivo/core";
5
+ import { jsx as n } from "react/jsx-runtime";
6
+ //#region ../layouts/src/center/center.tsx
7
+ function r({ maxWidth: r = "48rem", className: i, style: a, ...o }) {
8
+ return /* @__PURE__ */ n("div", {
9
+ className: t(e.center, i),
10
+ style: {
11
+ "--_center-max": r,
12
+ ...a
13
+ },
14
+ ...o
15
+ });
16
+ }
17
+ //#endregion
18
+ export { r as Center };
@@ -0,0 +1,5 @@
1
+ "use client";
2
+
3
+ var e = { center: "_center_1euo8_2" };
4
+ //#endregion
5
+ export { e as default };
@@ -0,0 +1,23 @@
1
+ "use client";
2
+
3
+ import e from "./columns.module.js";
4
+ import { cn as t } from "@cascivo/core";
5
+ import { jsx as n } from "react/jsx-runtime";
6
+ //#region ../layouts/src/columns/columns.tsx
7
+ function r({ count: r = 2, gap: i = 4, className: a, style: o, children: s, ...c }) {
8
+ return /* @__PURE__ */ n("div", {
9
+ className: t(e["columns-container"], a),
10
+ style: {
11
+ "--_cols": String(r),
12
+ "--_gap": `var(--cascivo-space-${i})`,
13
+ ...o
14
+ },
15
+ ...c,
16
+ children: /* @__PURE__ */ n("div", {
17
+ className: e.columns,
18
+ children: s
19
+ })
20
+ });
21
+ }
22
+ //#endregion
23
+ export { r as Columns };