@cascivo/react 0.14.0 → 0.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (540) hide show
  1. package/README.md +8 -3
  2. package/dist/accordion/accordion.css +1 -1
  3. package/dist/accordion/accordion.js +81 -65
  4. package/dist/accordion/accordion.module.js +6 -9
  5. package/dist/action-sheet/action-sheet.js +11 -11
  6. package/dist/action-sheet/action-sheet.module.js +0 -2
  7. package/dist/alert/alert.module.js +0 -2
  8. package/dist/alert-dialog/alert-dialog.css +1 -1
  9. package/dist/alert-dialog/alert-dialog.js +6 -6
  10. package/dist/alert-dialog/alert-dialog.module.js +7 -9
  11. package/dist/app-shell/app-shell.js +10 -10
  12. package/dist/app-shell/app-shell.module.js +0 -2
  13. package/dist/aspect-ratio/aspect-ratio.js +1 -3
  14. package/dist/aspect-ratio/aspect-ratio.module.js +0 -2
  15. package/dist/avatar/avatar.module.js +0 -2
  16. package/dist/avatar-group/avatar-group.js +1 -3
  17. package/dist/avatar-group/avatar-group.module.js +0 -2
  18. package/dist/badge/badge.js +2 -4
  19. package/dist/badge/badge.module.js +0 -2
  20. package/dist/blockquote/blockquote.js +1 -3
  21. package/dist/blockquote/blockquote.module.js +0 -2
  22. package/dist/bottom-sheet/bottom-sheet.js +12 -12
  23. package/dist/bottom-sheet/bottom-sheet.module.js +0 -2
  24. package/dist/breadcrumb/breadcrumb.module.js +0 -2
  25. package/dist/button/button.js +1 -3
  26. package/dist/button/button.module.js +0 -2
  27. package/dist/button-group/button-group.js +6 -6
  28. package/dist/button-group/button-group.module.js +0 -2
  29. package/dist/calendar/calendar.module.js +0 -2
  30. package/dist/card/card.js +1 -3
  31. package/dist/card/card.module.js +0 -2
  32. package/dist/carousel/carousel.js +9 -9
  33. package/dist/carousel/carousel.module.js +0 -2
  34. package/dist/chat-bubble/chat-bubble.js +0 -2
  35. package/dist/chat-bubble/chat-bubble.module.js +0 -2
  36. package/dist/checkbox/checkbox.js +10 -10
  37. package/dist/checkbox/checkbox.module.js +0 -2
  38. package/dist/checkbox-card/checkbox-card.js +5 -5
  39. package/dist/checkbox-card/checkbox-card.module.js +0 -2
  40. package/dist/code/code.js +1 -3
  41. package/dist/code/code.module.js +0 -2
  42. package/dist/code-snippet/code-snippet.module.js +0 -2
  43. package/dist/code-snippet/highlight.js +0 -2
  44. package/dist/collapsible/collapsible.css +1 -1
  45. package/dist/collapsible/collapsible.js +36 -31
  46. package/dist/collapsible/collapsible.module.js +3 -6
  47. package/dist/color-picker/color-picker.js +7 -7
  48. package/dist/color-picker/color-picker.module.js +0 -2
  49. package/dist/combobox/combobox.css +1 -1
  50. package/dist/combobox/combobox.js +11 -11
  51. package/dist/combobox/combobox.module.js +15 -17
  52. package/dist/command-menu/command-menu.js +113 -113
  53. package/dist/command-menu/command-menu.module.js +0 -2
  54. package/dist/comparison/comparison.js +5 -5
  55. package/dist/comparison/comparison.module.js +0 -2
  56. package/dist/contained-list/contained-list.module.js +0 -2
  57. package/dist/context-menu/context-menu.js +42 -38
  58. package/dist/context-menu/context-menu.module.js +0 -2
  59. package/dist/copy-button/copy-button.js +7 -7
  60. package/dist/copy-button/copy-button.module.js +0 -2
  61. package/dist/data-list/data-list.js +1 -3
  62. package/dist/data-list/data-list.module.js +0 -2
  63. package/dist/data-table/data-table.css +1 -1
  64. package/dist/data-table/data-table.js +164 -164
  65. package/dist/data-table/data-table.module.js +29 -31
  66. package/dist/date-picker/date-picker.css +1 -1
  67. package/dist/date-picker/date-picker.js +24 -24
  68. package/dist/date-picker/date-picker.module.js +19 -21
  69. package/dist/date-range-picker/date-range-picker.js +30 -30
  70. package/dist/date-range-picker/date-range-picker.module.js +0 -2
  71. package/dist/dock/dock.module.js +0 -2
  72. package/dist/drawer/drawer.js +11 -11
  73. package/dist/drawer/drawer.module.js +0 -2
  74. package/dist/dropdown/dropdown.js +14 -14
  75. package/dist/dropdown/dropdown.module.js +0 -2
  76. package/dist/editable/editable.css +1 -1
  77. package/dist/editable/editable.js +8 -8
  78. package/dist/editable/editable.module.js +7 -9
  79. package/dist/empty-state/empty-state.js +1 -3
  80. package/dist/empty-state/empty-state.module.js +0 -2
  81. package/dist/fab/fab.js +12 -12
  82. package/dist/fab/fab.module.js +0 -2
  83. package/dist/field/field.js +1 -3
  84. package/dist/field/field.module.js +0 -2
  85. package/dist/file-uploader/file-uploader.css +1 -1
  86. package/dist/file-uploader/file-uploader.js +5 -5
  87. package/dist/file-uploader/file-uploader.module.js +14 -16
  88. package/dist/filter/filter.module.js +0 -2
  89. package/dist/form/form.module.js +0 -2
  90. package/dist/header/header.module.js +0 -2
  91. package/dist/header-panel/header-panel.js +8 -8
  92. package/dist/header-panel/header-panel.module.js +0 -2
  93. package/dist/heading/heading.js +1 -3
  94. package/dist/heading/heading.module.js +0 -2
  95. package/dist/hover-card/hover-card.js +18 -18
  96. package/dist/hover-card/hover-card.module.js +0 -2
  97. package/dist/icon-button/icon-button.js +1 -3
  98. package/dist/icon-button/icon-button.module.js +0 -2
  99. package/dist/image/image.module.js +0 -2
  100. package/dist/index.d.ts +353 -163
  101. package/dist/index.js +0 -1
  102. package/dist/indicator/indicator.js +0 -2
  103. package/dist/indicator/indicator.module.js +0 -2
  104. package/dist/infinite-scroll/infinite-scroll.css +1 -0
  105. package/dist/infinite-scroll/infinite-scroll.js +49 -0
  106. package/dist/infinite-scroll/infinite-scroll.module.js +8 -0
  107. package/dist/inline-loading/inline-loading.js +1 -3
  108. package/dist/inline-loading/inline-loading.module.js +0 -2
  109. package/dist/input/input.js +11 -11
  110. package/dist/input/input.module.js +0 -2
  111. package/dist/input-group/input-group.js +1 -3
  112. package/dist/input-group/input-group.module.js +0 -2
  113. package/dist/item/item.js +1 -3
  114. package/dist/item/item.module.js +0 -2
  115. package/dist/join/join.js +0 -2
  116. package/dist/join/join.module.js +0 -2
  117. package/dist/kbd/kbd.js +1 -3
  118. package/dist/kbd/kbd.module.js +0 -2
  119. package/dist/label/label.js +1 -3
  120. package/dist/label/label.module.js +0 -2
  121. package/dist/large-title-header/large-title-header.css +1 -0
  122. package/dist/large-title-header/large-title-header.js +38 -0
  123. package/dist/large-title-header/large-title-header.module.js +13 -0
  124. package/dist/layouts/src/auto-grid/auto-grid.js +1 -3
  125. package/dist/layouts/src/auto-grid/auto-grid.module.js +0 -2
  126. package/dist/layouts/src/center/center.js +1 -3
  127. package/dist/layouts/src/center/center.module.js +0 -2
  128. package/dist/layouts/src/columns/columns.js +1 -3
  129. package/dist/layouts/src/columns/columns.module.js +0 -2
  130. package/dist/layouts/src/flex/flex.js +1 -3
  131. package/dist/layouts/src/flex/flex.module.js +0 -2
  132. package/dist/layouts/src/grid/grid.js +1 -3
  133. package/dist/layouts/src/grid/grid.module.js +0 -2
  134. package/dist/layouts/src/page-header/page-header.css +1 -1
  135. package/dist/layouts/src/page-header/page-header.js +1 -3
  136. package/dist/layouts/src/page-header/page-header.module.js +6 -8
  137. package/dist/layouts/src/spacer/spacer.js +1 -3
  138. package/dist/layouts/src/spacer/spacer.module.js +0 -2
  139. package/dist/link/link.css +1 -1
  140. package/dist/link/link.js +1 -3
  141. package/dist/link/link.module.js +1 -3
  142. package/dist/list/list.js +1 -3
  143. package/dist/list/list.module.js +0 -2
  144. package/dist/log-viewer/log-viewer.js +15 -15
  145. package/dist/log-viewer/log-viewer.module.js +0 -2
  146. package/dist/menu/menu.js +52 -47
  147. package/dist/menu/menu.module.js +0 -2
  148. package/dist/menu-button/menu-button.js +8 -8
  149. package/dist/menu-button/menu-button.module.js +0 -2
  150. package/dist/menubar/menubar.js +24 -24
  151. package/dist/menubar/menubar.module.js +0 -2
  152. package/dist/modal/modal.js +9 -9
  153. package/dist/modal/modal.module.js +0 -2
  154. package/dist/multi-select/multi-select.css +1 -1
  155. package/dist/multi-select/multi-select.js +8 -8
  156. package/dist/multi-select/multi-select.module.js +11 -13
  157. package/dist/native-select/native-select.js +1 -3
  158. package/dist/native-select/native-select.module.js +0 -2
  159. package/dist/navigation-menu/navigation-menu.js +26 -26
  160. package/dist/navigation-menu/navigation-menu.module.js +0 -2
  161. package/dist/node/accordion/accordion.js +81 -65
  162. package/dist/node/accordion/accordion.module.js +6 -9
  163. package/dist/node/action-sheet/action-sheet.js +11 -11
  164. package/dist/node/action-sheet/action-sheet.module.js +0 -2
  165. package/dist/node/alert/alert.module.js +0 -2
  166. package/dist/node/alert-dialog/alert-dialog.js +6 -6
  167. package/dist/node/alert-dialog/alert-dialog.module.js +7 -9
  168. package/dist/node/app-shell/app-shell.js +10 -10
  169. package/dist/node/app-shell/app-shell.module.js +0 -2
  170. package/dist/node/aspect-ratio/aspect-ratio.js +1 -3
  171. package/dist/node/aspect-ratio/aspect-ratio.module.js +0 -2
  172. package/dist/node/avatar/avatar.module.js +0 -2
  173. package/dist/node/avatar-group/avatar-group.js +1 -3
  174. package/dist/node/avatar-group/avatar-group.module.js +0 -2
  175. package/dist/node/badge/badge.js +2 -4
  176. package/dist/node/badge/badge.module.js +0 -2
  177. package/dist/node/blockquote/blockquote.js +1 -3
  178. package/dist/node/blockquote/blockquote.module.js +0 -2
  179. package/dist/node/bottom-sheet/bottom-sheet.js +12 -12
  180. package/dist/node/bottom-sheet/bottom-sheet.module.js +0 -2
  181. package/dist/node/breadcrumb/breadcrumb.module.js +0 -2
  182. package/dist/node/button/button.js +1 -3
  183. package/dist/node/button/button.module.js +0 -2
  184. package/dist/node/button-group/button-group.js +6 -6
  185. package/dist/node/button-group/button-group.module.js +0 -2
  186. package/dist/node/calendar/calendar.module.js +0 -2
  187. package/dist/node/card/card.js +1 -3
  188. package/dist/node/card/card.module.js +0 -2
  189. package/dist/node/carousel/carousel.js +9 -9
  190. package/dist/node/carousel/carousel.module.js +0 -2
  191. package/dist/node/chat-bubble/chat-bubble.js +0 -2
  192. package/dist/node/chat-bubble/chat-bubble.module.js +0 -2
  193. package/dist/node/checkbox/checkbox.js +10 -10
  194. package/dist/node/checkbox/checkbox.module.js +0 -2
  195. package/dist/node/checkbox-card/checkbox-card.js +5 -5
  196. package/dist/node/checkbox-card/checkbox-card.module.js +0 -2
  197. package/dist/node/code/code.js +1 -3
  198. package/dist/node/code/code.module.js +0 -2
  199. package/dist/node/code-snippet/code-snippet.module.js +0 -2
  200. package/dist/node/code-snippet/highlight.js +0 -2
  201. package/dist/node/collapsible/collapsible.js +36 -31
  202. package/dist/node/collapsible/collapsible.module.js +3 -6
  203. package/dist/node/color-picker/color-picker.js +7 -7
  204. package/dist/node/color-picker/color-picker.module.js +0 -2
  205. package/dist/node/combobox/combobox.js +11 -11
  206. package/dist/node/combobox/combobox.module.js +15 -17
  207. package/dist/node/command-menu/command-menu.js +113 -113
  208. package/dist/node/command-menu/command-menu.module.js +0 -2
  209. package/dist/node/comparison/comparison.js +5 -5
  210. package/dist/node/comparison/comparison.module.js +0 -2
  211. package/dist/node/contained-list/contained-list.module.js +0 -2
  212. package/dist/node/context-menu/context-menu.js +42 -38
  213. package/dist/node/context-menu/context-menu.module.js +0 -2
  214. package/dist/node/copy-button/copy-button.js +7 -7
  215. package/dist/node/copy-button/copy-button.module.js +0 -2
  216. package/dist/node/data-list/data-list.js +1 -3
  217. package/dist/node/data-list/data-list.module.js +0 -2
  218. package/dist/node/data-table/data-table.js +164 -164
  219. package/dist/node/data-table/data-table.module.js +29 -31
  220. package/dist/node/date-picker/date-picker.js +24 -24
  221. package/dist/node/date-picker/date-picker.module.js +19 -21
  222. package/dist/node/date-range-picker/date-range-picker.js +30 -30
  223. package/dist/node/date-range-picker/date-range-picker.module.js +0 -2
  224. package/dist/node/dock/dock.module.js +0 -2
  225. package/dist/node/drawer/drawer.js +11 -11
  226. package/dist/node/drawer/drawer.module.js +0 -2
  227. package/dist/node/dropdown/dropdown.js +14 -14
  228. package/dist/node/dropdown/dropdown.module.js +0 -2
  229. package/dist/node/editable/editable.js +8 -8
  230. package/dist/node/editable/editable.module.js +7 -9
  231. package/dist/node/empty-state/empty-state.js +1 -3
  232. package/dist/node/empty-state/empty-state.module.js +0 -2
  233. package/dist/node/fab/fab.js +12 -12
  234. package/dist/node/fab/fab.module.js +0 -2
  235. package/dist/node/field/field.js +1 -3
  236. package/dist/node/field/field.module.js +0 -2
  237. package/dist/node/file-uploader/file-uploader.js +5 -5
  238. package/dist/node/file-uploader/file-uploader.module.js +14 -16
  239. package/dist/node/filter/filter.module.js +0 -2
  240. package/dist/node/form/form.module.js +0 -2
  241. package/dist/node/header/header.module.js +0 -2
  242. package/dist/node/header-panel/header-panel.js +8 -8
  243. package/dist/node/header-panel/header-panel.module.js +0 -2
  244. package/dist/node/heading/heading.js +1 -3
  245. package/dist/node/heading/heading.module.js +0 -2
  246. package/dist/node/hover-card/hover-card.js +18 -18
  247. package/dist/node/hover-card/hover-card.module.js +0 -2
  248. package/dist/node/icon-button/icon-button.js +1 -3
  249. package/dist/node/icon-button/icon-button.module.js +0 -2
  250. package/dist/node/image/image.module.js +0 -2
  251. package/dist/node/index.js +0 -1
  252. package/dist/node/indicator/indicator.js +0 -2
  253. package/dist/node/indicator/indicator.module.js +0 -2
  254. package/dist/node/infinite-scroll/infinite-scroll.js +49 -0
  255. package/dist/node/infinite-scroll/infinite-scroll.module.js +7 -0
  256. package/dist/node/inline-loading/inline-loading.js +1 -3
  257. package/dist/node/inline-loading/inline-loading.module.js +0 -2
  258. package/dist/node/input/input.js +11 -11
  259. package/dist/node/input/input.module.js +0 -2
  260. package/dist/node/input-group/input-group.js +1 -3
  261. package/dist/node/input-group/input-group.module.js +0 -2
  262. package/dist/node/item/item.js +1 -3
  263. package/dist/node/item/item.module.js +0 -2
  264. package/dist/node/join/join.js +0 -2
  265. package/dist/node/join/join.module.js +0 -2
  266. package/dist/node/kbd/kbd.js +1 -3
  267. package/dist/node/kbd/kbd.module.js +0 -2
  268. package/dist/node/label/label.js +1 -3
  269. package/dist/node/label/label.module.js +0 -2
  270. package/dist/node/large-title-header/large-title-header.js +38 -0
  271. package/dist/node/large-title-header/large-title-header.module.js +12 -0
  272. package/dist/node/layouts/src/auto-grid/auto-grid.js +1 -3
  273. package/dist/node/layouts/src/auto-grid/auto-grid.module.js +0 -2
  274. package/dist/node/layouts/src/center/center.js +1 -3
  275. package/dist/node/layouts/src/center/center.module.js +0 -2
  276. package/dist/node/layouts/src/columns/columns.js +1 -3
  277. package/dist/node/layouts/src/columns/columns.module.js +0 -2
  278. package/dist/node/layouts/src/flex/flex.js +1 -3
  279. package/dist/node/layouts/src/flex/flex.module.js +0 -2
  280. package/dist/node/layouts/src/grid/grid.js +1 -3
  281. package/dist/node/layouts/src/grid/grid.module.js +0 -2
  282. package/dist/node/layouts/src/page-header/page-header.js +1 -3
  283. package/dist/node/layouts/src/page-header/page-header.module.js +6 -8
  284. package/dist/node/layouts/src/spacer/spacer.js +1 -3
  285. package/dist/node/layouts/src/spacer/spacer.module.js +0 -2
  286. package/dist/node/link/link.js +1 -3
  287. package/dist/node/link/link.module.js +1 -3
  288. package/dist/node/list/list.js +1 -3
  289. package/dist/node/list/list.module.js +0 -2
  290. package/dist/node/log-viewer/log-viewer.js +15 -15
  291. package/dist/node/log-viewer/log-viewer.module.js +0 -2
  292. package/dist/node/menu/menu.js +52 -47
  293. package/dist/node/menu/menu.module.js +0 -2
  294. package/dist/node/menu-button/menu-button.js +8 -8
  295. package/dist/node/menu-button/menu-button.module.js +0 -2
  296. package/dist/node/menubar/menubar.js +24 -24
  297. package/dist/node/menubar/menubar.module.js +0 -2
  298. package/dist/node/modal/modal.js +9 -9
  299. package/dist/node/modal/modal.module.js +0 -2
  300. package/dist/node/multi-select/multi-select.js +8 -8
  301. package/dist/node/multi-select/multi-select.module.js +11 -13
  302. package/dist/node/native-select/native-select.js +1 -3
  303. package/dist/node/native-select/native-select.module.js +0 -2
  304. package/dist/node/navigation-menu/navigation-menu.js +26 -26
  305. package/dist/node/navigation-menu/navigation-menu.module.js +0 -2
  306. package/dist/node/notification/notification.js +6 -6
  307. package/dist/node/notification/notification.module.js +0 -2
  308. package/dist/node/number-input/number-input.js +7 -7
  309. package/dist/node/number-input/number-input.module.js +0 -2
  310. package/dist/node/otp-input/otp-input.js +5 -5
  311. package/dist/node/otp-input/otp-input.module.js +0 -2
  312. package/dist/node/overflow-menu/overflow-menu.module.js +0 -2
  313. package/dist/node/pagination/pagination.module.js +0 -2
  314. package/dist/node/password-input/password-input.js +8 -8
  315. package/dist/node/password-input/password-input.module.js +0 -2
  316. package/dist/node/popover/popover.js +12 -12
  317. package/dist/node/popover/popover.module.js +0 -2
  318. package/dist/node/popover/use-popover.js +8 -10
  319. package/dist/node/progress/progress.js +0 -2
  320. package/dist/node/progress/progress.module.js +0 -2
  321. package/dist/node/progress-bar/progress-bar.js +1 -3
  322. package/dist/node/progress-bar/progress-bar.module.js +0 -2
  323. package/dist/node/progress-circle/progress-circle.js +1 -3
  324. package/dist/node/progress-circle/progress-circle.module.js +0 -2
  325. package/dist/node/progress-indicator/progress-indicator.js +1 -3
  326. package/dist/node/progress-indicator/progress-indicator.module.js +0 -2
  327. package/dist/node/prose/prose.js +1 -3
  328. package/dist/node/prose/prose.module.js +0 -2
  329. package/dist/node/pull-to-refresh/pull-to-refresh.js +8 -8
  330. package/dist/node/pull-to-refresh/pull-to-refresh.module.js +0 -2
  331. package/dist/node/qr-code/encode.js +0 -2
  332. package/dist/node/qr-code/qr-code.module.js +0 -2
  333. package/dist/node/radial-progress/radial-progress.js +9 -10
  334. package/dist/node/radial-progress/radial-progress.module.js +0 -2
  335. package/dist/node/radio/radio.js +1 -3
  336. package/dist/node/radio/radio.module.js +0 -2
  337. package/dist/node/radio-card/radio-card.js +8 -8
  338. package/dist/node/radio-card/radio-card.module.js +0 -2
  339. package/dist/node/rating-group/rating-group.module.js +0 -2
  340. package/dist/node/react/src/index.js +27 -25
  341. package/dist/node/relative-time/relative-time.module.js +0 -2
  342. package/dist/node/reorder-list/reorder-list.js +143 -0
  343. package/dist/node/reorder-list/reorder-list.module.js +11 -0
  344. package/dist/node/resizable/resizable.js +7 -7
  345. package/dist/node/resizable/resizable.module.js +0 -2
  346. package/dist/node/scroll-area/scroll-area.js +6 -6
  347. package/dist/node/scroll-area/scroll-area.module.js +0 -2
  348. package/dist/node/search/search.js +9 -9
  349. package/dist/node/search/search.module.js +0 -2
  350. package/dist/node/segmented-control/segmented-control.module.js +0 -2
  351. package/dist/node/select/select.js +11 -11
  352. package/dist/node/select/select.module.js +0 -2
  353. package/dist/node/separator/separator.js +1 -3
  354. package/dist/node/separator/separator.module.js +0 -2
  355. package/dist/node/sheet/sheet.js +4 -4
  356. package/dist/node/sheet/sheet.module.js +0 -2
  357. package/dist/node/shell-header/shell-header.module.js +0 -2
  358. package/dist/node/side-nav/side-nav.js +37 -37
  359. package/dist/node/side-nav/side-nav.module.js +0 -2
  360. package/dist/node/skeleton/skeleton.js +1 -3
  361. package/dist/node/skeleton/skeleton.module.js +0 -2
  362. package/dist/node/skip-nav/skip-nav.js +7 -6
  363. package/dist/node/skip-nav/skip-nav.module.js +0 -2
  364. package/dist/node/slider/slider.js +1 -3
  365. package/dist/node/slider/slider.module.js +0 -2
  366. package/dist/node/spinner/spinner.module.js +0 -2
  367. package/dist/node/stack/stack.js +0 -2
  368. package/dist/node/stack/stack.module.js +0 -2
  369. package/dist/node/stat/stat.js +22 -23
  370. package/dist/node/stat/stat.module.js +7 -9
  371. package/dist/node/status/status.js +1 -3
  372. package/dist/node/status/status.module.js +0 -2
  373. package/dist/node/steps/steps.module.js +0 -2
  374. package/dist/node/structured-list/structured-list.js +10 -10
  375. package/dist/node/structured-list/structured-list.module.js +0 -2
  376. package/dist/node/swap/swap.js +10 -11
  377. package/dist/node/swap/swap.module.js +0 -2
  378. package/dist/node/swipe-item/swipe-item.module.js +0 -2
  379. package/dist/node/switcher/switcher.module.js +0 -2
  380. package/dist/node/tabs/tabs.js +51 -51
  381. package/dist/node/tabs/tabs.module.js +0 -2
  382. package/dist/node/tag/tag.module.js +2 -4
  383. package/dist/node/tags-input/tags-input.js +6 -6
  384. package/dist/node/tags-input/tags-input.module.js +4 -6
  385. package/dist/node/text/text.js +1 -3
  386. package/dist/node/text/text.module.js +0 -2
  387. package/dist/node/textarea/textarea.js +11 -11
  388. package/dist/node/textarea/textarea.module.js +0 -2
  389. package/dist/node/tile/tile.module.js +0 -2
  390. package/dist/node/time-picker/time-picker.js +9 -9
  391. package/dist/node/time-picker/time-picker.module.js +5 -7
  392. package/dist/node/timeline/timeline.js +32 -31
  393. package/dist/node/timeline/timeline.module.js +7 -9
  394. package/dist/node/toast/toast.js +15 -15
  395. package/dist/node/toast/toast.module.js +0 -2
  396. package/dist/node/toc/toc.js +7 -7
  397. package/dist/node/toc/toc.module.js +0 -2
  398. package/dist/node/toggle/toggle.js +7 -7
  399. package/dist/node/toggle/toggle.module.js +0 -2
  400. package/dist/node/toggle-group/toggle-group.js +25 -25
  401. package/dist/node/toggle-group/toggle-group.module.js +0 -2
  402. package/dist/node/toggletip/toggletip.js +7 -7
  403. package/dist/node/toggletip/toggletip.module.js +0 -2
  404. package/dist/node/tooltip/tooltip.js +9 -9
  405. package/dist/node/tooltip/tooltip.module.js +0 -2
  406. package/dist/node/tree-view/tree-view.js +47 -47
  407. package/dist/node/tree-view/tree-view.module.js +0 -2
  408. package/dist/node/user/user.js +1 -3
  409. package/dist/node/user/user.module.js +0 -2
  410. package/dist/node/virtual-list/virtual-list.js +40 -0
  411. package/dist/node/virtual-list/virtual-list.module.js +7 -0
  412. package/dist/node/visually-hidden/visually-hidden.js +1 -3
  413. package/dist/node/wheel-picker/wheel-picker.js +84 -0
  414. package/dist/node/wheel-picker/wheel-picker.module.js +8 -0
  415. package/dist/notification/notification.js +6 -6
  416. package/dist/notification/notification.module.js +0 -2
  417. package/dist/number-input/number-input.js +7 -7
  418. package/dist/number-input/number-input.module.js +0 -2
  419. package/dist/otp-input/otp-input.js +5 -5
  420. package/dist/otp-input/otp-input.module.js +0 -2
  421. package/dist/overflow-menu/overflow-menu.module.js +0 -2
  422. package/dist/pagination/pagination.module.js +0 -2
  423. package/dist/password-input/password-input.js +8 -8
  424. package/dist/password-input/password-input.module.js +0 -2
  425. package/dist/popover/popover.js +12 -12
  426. package/dist/popover/popover.module.js +0 -2
  427. package/dist/popover/use-popover.js +8 -10
  428. package/dist/progress/progress.js +0 -2
  429. package/dist/progress/progress.module.js +0 -2
  430. package/dist/progress-bar/progress-bar.js +1 -3
  431. package/dist/progress-bar/progress-bar.module.js +0 -2
  432. package/dist/progress-circle/progress-circle.js +1 -3
  433. package/dist/progress-circle/progress-circle.module.js +0 -2
  434. package/dist/progress-indicator/progress-indicator.js +1 -3
  435. package/dist/progress-indicator/progress-indicator.module.js +0 -2
  436. package/dist/prose/prose.js +1 -3
  437. package/dist/prose/prose.module.js +0 -2
  438. package/dist/pull-to-refresh/pull-to-refresh.js +8 -8
  439. package/dist/pull-to-refresh/pull-to-refresh.module.js +0 -2
  440. package/dist/qr-code/encode.js +0 -2
  441. package/dist/qr-code/qr-code.module.js +0 -2
  442. package/dist/radial-progress/radial-progress.js +9 -10
  443. package/dist/radial-progress/radial-progress.module.js +0 -2
  444. package/dist/radio/radio.js +1 -3
  445. package/dist/radio/radio.module.js +0 -2
  446. package/dist/radio-card/radio-card.js +8 -8
  447. package/dist/radio-card/radio-card.module.js +0 -2
  448. package/dist/rating-group/rating-group.module.js +0 -2
  449. package/dist/react/src/index.js +27 -25
  450. package/dist/relative-time/relative-time.module.js +0 -2
  451. package/dist/reorder-list/reorder-list.css +1 -0
  452. package/dist/reorder-list/reorder-list.js +143 -0
  453. package/dist/reorder-list/reorder-list.module.js +12 -0
  454. package/dist/resizable/resizable.js +7 -7
  455. package/dist/resizable/resizable.module.js +0 -2
  456. package/dist/scroll-area/scroll-area.js +6 -6
  457. package/dist/scroll-area/scroll-area.module.js +0 -2
  458. package/dist/search/search.js +9 -9
  459. package/dist/search/search.module.js +0 -2
  460. package/dist/segmented-control/segmented-control.module.js +0 -2
  461. package/dist/select/select.js +11 -11
  462. package/dist/select/select.module.js +0 -2
  463. package/dist/separator/separator.js +1 -3
  464. package/dist/separator/separator.module.js +0 -2
  465. package/dist/sheet/sheet.js +4 -4
  466. package/dist/sheet/sheet.module.js +0 -2
  467. package/dist/shell-header/shell-header.module.js +0 -2
  468. package/dist/side-nav/side-nav.js +37 -37
  469. package/dist/side-nav/side-nav.module.js +0 -2
  470. package/dist/skeleton/skeleton.js +1 -3
  471. package/dist/skeleton/skeleton.module.js +0 -2
  472. package/dist/skip-nav/skip-nav.js +7 -6
  473. package/dist/skip-nav/skip-nav.module.js +0 -2
  474. package/dist/slider/slider.js +1 -3
  475. package/dist/slider/slider.module.js +0 -2
  476. package/dist/spinner/spinner.module.js +0 -2
  477. package/dist/stack/stack.js +0 -2
  478. package/dist/stack/stack.module.js +0 -2
  479. package/dist/stat/stat.css +1 -1
  480. package/dist/stat/stat.js +22 -23
  481. package/dist/stat/stat.module.js +7 -9
  482. package/dist/status/status.js +1 -3
  483. package/dist/status/status.module.js +0 -2
  484. package/dist/steps/steps.module.js +0 -2
  485. package/dist/structured-list/structured-list.js +10 -10
  486. package/dist/structured-list/structured-list.module.js +0 -2
  487. package/dist/styles.css +55 -18
  488. package/dist/swap/swap.js +10 -11
  489. package/dist/swap/swap.module.js +0 -2
  490. package/dist/swipe-item/swipe-item.module.js +0 -2
  491. package/dist/switcher/switcher.module.js +0 -2
  492. package/dist/tabs/tabs.js +51 -51
  493. package/dist/tabs/tabs.module.js +0 -2
  494. package/dist/tag/tag.css +1 -1
  495. package/dist/tag/tag.module.js +2 -4
  496. package/dist/tags-input/tags-input.css +1 -1
  497. package/dist/tags-input/tags-input.js +6 -6
  498. package/dist/tags-input/tags-input.module.js +4 -6
  499. package/dist/text/text.js +1 -3
  500. package/dist/text/text.module.js +0 -2
  501. package/dist/textarea/textarea.js +11 -11
  502. package/dist/textarea/textarea.module.js +0 -2
  503. package/dist/tile/tile.module.js +0 -2
  504. package/dist/time-picker/time-picker.css +1 -1
  505. package/dist/time-picker/time-picker.js +9 -9
  506. package/dist/time-picker/time-picker.module.js +5 -7
  507. package/dist/timeline/timeline.css +1 -1
  508. package/dist/timeline/timeline.js +32 -31
  509. package/dist/timeline/timeline.module.js +7 -9
  510. package/dist/toast/toast.js +15 -15
  511. package/dist/toast/toast.module.js +0 -2
  512. package/dist/toc/toc.js +7 -7
  513. package/dist/toc/toc.module.js +0 -2
  514. package/dist/toggle/toggle.js +7 -7
  515. package/dist/toggle/toggle.module.js +0 -2
  516. package/dist/toggle-group/toggle-group.js +25 -25
  517. package/dist/toggle-group/toggle-group.module.js +0 -2
  518. package/dist/toggletip/toggletip.js +7 -7
  519. package/dist/toggletip/toggletip.module.js +0 -2
  520. package/dist/tooltip/tooltip.js +9 -9
  521. package/dist/tooltip/tooltip.module.js +0 -2
  522. package/dist/tree-view/tree-view.js +47 -47
  523. package/dist/tree-view/tree-view.module.js +0 -2
  524. package/dist/user/user.js +1 -3
  525. package/dist/user/user.module.js +0 -2
  526. package/dist/virtual-list/virtual-list.css +1 -0
  527. package/dist/virtual-list/virtual-list.js +40 -0
  528. package/dist/virtual-list/virtual-list.module.js +8 -0
  529. package/dist/visually-hidden/visually-hidden.js +1 -3
  530. package/dist/wheel-picker/wheel-picker.css +1 -0
  531. package/dist/wheel-picker/wheel-picker.js +84 -0
  532. package/dist/wheel-picker/wheel-picker.module.js +9 -0
  533. package/package.json +4 -4
  534. package/readme.body.md +8 -3
  535. package/dist/node/react/src/theme.js +0 -78
  536. package/dist/node/storage/src/drivers.js +0 -36
  537. package/dist/node/storage/src/persisted-signal.js +0 -43
  538. package/dist/react/src/theme.js +0 -78
  539. package/dist/storage/src/drivers.js +0 -36
  540. package/dist/storage/src/persisted-signal.js +0 -43
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
 
3
3
  import e from "./date-picker.module.js";
4
- import { batch as t, cn as n, createMachine as r, useMachine as i, useSignal as a, useSignalEffect as o, useSignals as s } from "@cascivo/core";
5
- import { useId as c, useRef as ee } from "react";
4
+ import { useId as t, useRef as n } from "react";
5
+ import { batch as r, cn as i, createMachine as a, useMachine as o, useSignal as s, useSignalEffect as c, useSignals as ee } from "@cascivo/core";
6
6
  import { builtin as l, currentLocale as te, t as u } from "@cascivo/i18n";
7
7
  import { jsx as d, jsxs as f } from "react/jsx-runtime";
8
8
  //#region ../components/src/date-picker/date-picker.tsx
9
- var p = r({
9
+ var p = a({
10
10
  initial: "closed",
11
11
  states: {
12
12
  closed: { on: { OPEN: "open" } },
@@ -39,12 +39,12 @@ function _(e) {
39
39
  let [t, n, r] = e.split("-").map(Number);
40
40
  return new Date(Date.UTC(t, n - 1, r));
41
41
  }
42
- function v({ value: r, defaultValue: v, onValueChange: y, onChange: b, min: x, max: S, clearable: C = !1, label: w, hint: T, error: E, size: D = "md", disabled: O = !1, labels: k, className: re, id: A }) {
43
- s();
44
- let [j, M] = i(p), N = c(), P = A ?? `cascade-date-picker-${N}`, F = `${N}-grid`, I = te(), ie = k?.placeholder ?? u(l.datePicker.placeholder), ae = k?.previousMonth ?? u(l.datePicker.previousMonth), L = k?.nextMonth ?? u(l.datePicker.nextMonth), R = k?.clear ?? u(l.datePicker.clear), z = /* @__PURE__ */ new Date(), B = g(z), V = a(r ?? v);
45
- r !== void 0 && (V.value = r);
46
- let H = a(V.value ? _(V.value).getUTCFullYear() : z.getUTCFullYear()), U = a(V.value ? _(V.value).getUTCMonth() : z.getUTCMonth()), W = a(V.value), G = ee(null);
47
- o(() => {
42
+ function v({ value: a, defaultValue: v, onValueChange: y, onChange: b, min: x, max: S, clearable: C = !1, label: w, hint: T, error: E, size: D = "md", disabled: O = !1, labels: k, className: re, id: A }) {
43
+ ee();
44
+ let [j, M] = o(p), N = t(), P = A ?? `cascade-date-picker-${N}`, F = `${N}-grid`, I = te(), ie = k?.placeholder ?? u(l.datePicker.placeholder), ae = k?.previousMonth ?? u(l.datePicker.previousMonth), L = k?.nextMonth ?? u(l.datePicker.nextMonth), R = k?.clear ?? u(l.datePicker.clear), z = /* @__PURE__ */ new Date(), B = g(z), V = s(a ?? v);
45
+ a !== void 0 && (V.value = a);
46
+ let H = s(V.value ? _(V.value).getUTCFullYear() : z.getUTCFullYear()), U = s(V.value ? _(V.value).getUTCMonth() : z.getUTCMonth()), W = s(V.value), G = n(null);
47
+ c(() => {
48
48
  if (j.value !== "open") return;
49
49
  let e = (e) => {
50
50
  G.current && !G.current.contains(e.target) && M("CLOSE");
@@ -54,15 +54,15 @@ function v({ value: r, defaultValue: v, onValueChange: y, onChange: b, min: x, m
54
54
  let K = () => {
55
55
  O || M("OPEN");
56
56
  }, q = () => M("CLOSE"), J = y ?? b, Y = (e) => {
57
- x && e < x || S && e > S || (r === void 0 && (V.value = e), J?.(e), q());
57
+ x && e < x || S && e > S || (a === void 0 && (V.value = e), J?.(e), q());
58
58
  }, oe = (e) => {
59
- e.stopPropagation(), r === void 0 && (V.value = void 0), J?.(void 0);
59
+ e.stopPropagation(), a === void 0 && (V.value = void 0), J?.(void 0);
60
60
  }, se = () => {
61
- U.value === 0 ? t(() => {
61
+ U.value === 0 ? r(() => {
62
62
  H.value--, U.value = 11;
63
63
  }) : U.value--;
64
64
  }, ce = () => {
65
- U.value === 11 ? t(() => {
65
+ U.value === 11 ? r(() => {
66
66
  H.value++, U.value = 0;
67
67
  }) : U.value++;
68
68
  }, X = ne(I), Z = m(H.value, U.value, X), le = new Intl.DateTimeFormat(I, { weekday: "short" }), ue = Array.from({ length: 7 }, (e, t) => {
@@ -72,15 +72,15 @@ function v({ value: r, defaultValue: v, onValueChange: y, onChange: b, min: x, m
72
72
  month: "long",
73
73
  year: "numeric"
74
74
  }).format(new Date(Date.UTC(H.value, U.value, 1))), de = (e) => {
75
- let n = W.value;
76
- if (!n) return;
77
- let r = _(n), i;
78
- if (e.key === "ArrowRight") i = new Date(Date.UTC(r.getUTCFullYear(), r.getUTCMonth(), r.getUTCDate() + 1));
79
- else if (e.key === "ArrowLeft") i = new Date(Date.UTC(r.getUTCFullYear(), r.getUTCMonth(), r.getUTCDate() - 1));
80
- else if (e.key === "ArrowDown") i = new Date(Date.UTC(r.getUTCFullYear(), r.getUTCMonth(), r.getUTCDate() + 7));
81
- else if (e.key === "ArrowUp") i = new Date(Date.UTC(r.getUTCFullYear(), r.getUTCMonth(), r.getUTCDate() - 7));
75
+ let t = W.value;
76
+ if (!t) return;
77
+ let n = _(t), i;
78
+ if (e.key === "ArrowRight") i = new Date(Date.UTC(n.getUTCFullYear(), n.getUTCMonth(), n.getUTCDate() + 1));
79
+ else if (e.key === "ArrowLeft") i = new Date(Date.UTC(n.getUTCFullYear(), n.getUTCMonth(), n.getUTCDate() - 1));
80
+ else if (e.key === "ArrowDown") i = new Date(Date.UTC(n.getUTCFullYear(), n.getUTCMonth(), n.getUTCDate() + 7));
81
+ else if (e.key === "ArrowUp") i = new Date(Date.UTC(n.getUTCFullYear(), n.getUTCMonth(), n.getUTCDate() - 7));
82
82
  else if (e.key === "Enter" || e.key === " ") {
83
- e.preventDefault(), Y(n);
83
+ e.preventDefault(), Y(t);
84
84
  return;
85
85
  } else if (e.key === "Escape") {
86
86
  q();
@@ -89,14 +89,14 @@ function v({ value: r, defaultValue: v, onValueChange: y, onChange: b, min: x, m
89
89
  if (e.preventDefault(), i) {
90
90
  let e = g(i);
91
91
  if (x && e < x || S && e > S) return;
92
- W.value = e, t(() => {
92
+ W.value = e, r(() => {
93
93
  H.value = i.getUTCFullYear(), U.value = i.getUTCMonth();
94
94
  });
95
95
  }
96
96
  }, $ = V.value ? h(_(V.value), I) : "";
97
97
  return /* @__PURE__ */ f("div", {
98
98
  ref: G,
99
- className: n(e.wrapper, re),
99
+ className: i(e.wrapper, re),
100
100
  "data-state": E ? "error" : j.value,
101
101
  "data-size": D,
102
102
  children: [
@@ -120,7 +120,7 @@ function v({ value: r, defaultValue: v, onValueChange: y, onChange: b, min: x, m
120
120
  disabled: O,
121
121
  onClick: j.value === "open" ? q : K,
122
122
  children: [/* @__PURE__ */ d("span", {
123
- className: n(e.value, $ ? void 0 : e.placeholder),
123
+ className: i(e.value, $ ? void 0 : e.placeholder),
124
124
  children: $ || ie
125
125
  }), /* @__PURE__ */ d("span", {
126
126
  className: e.icon,
@@ -1,25 +1,23 @@
1
- "use client";
2
-
3
1
  var e = {
4
- wrapper: "_wrapper_1hgll_2",
5
- label: "_label_1hgll_31",
6
- field: "_field_1hgll_38",
7
- trigger: "_trigger_1hgll_44",
8
- value: "_value_1hgll_82",
9
- placeholder: "_placeholder_1hgll_88",
10
- icon: "_icon_1hgll_91",
11
- clear: "_clear_1hgll_96",
12
- calendar: "_calendar_1hgll_121",
13
- header: "_header_1hgll_153",
14
- monthLabel: "_monthLabel_1hgll_160",
15
- navButton: "_navButton_1hgll_166",
16
- grid: "_grid_1hgll_188",
17
- weekday: "_weekday_1hgll_193",
18
- cell: "_cell_1hgll_202",
19
- empty: "_empty_1hgll_206",
20
- day: "_day_1hgll_210",
21
- error: "_error_1hgll_245",
22
- hint: "_hint_1hgll_249"
2
+ wrapper: "_wrapper_g43fz_2",
3
+ label: "_label_g43fz_31",
4
+ field: "_field_g43fz_38",
5
+ trigger: "_trigger_g43fz_44",
6
+ value: "_value_g43fz_82",
7
+ placeholder: "_placeholder_g43fz_88",
8
+ icon: "_icon_g43fz_91",
9
+ clear: "_clear_g43fz_96",
10
+ calendar: "_calendar_g43fz_121",
11
+ header: "_header_g43fz_153",
12
+ monthLabel: "_monthLabel_g43fz_160",
13
+ navButton: "_navButton_g43fz_166",
14
+ grid: "_grid_g43fz_188",
15
+ weekday: "_weekday_g43fz_193",
16
+ cell: "_cell_g43fz_202",
17
+ empty: "_empty_g43fz_206",
18
+ day: "_day_g43fz_210",
19
+ error: "_error_g43fz_245",
20
+ hint: "_hint_g43fz_249"
23
21
  };
24
22
  //#endregion
25
23
  export { e as default };
@@ -2,8 +2,8 @@
2
2
 
3
3
  import { Calendar as e } from "../calendar/calendar.js";
4
4
  import t from "./date-range-picker.module.js";
5
- import { batch as n, cn as r, useControllableSignal as ee, useSignal as i, useSignalEffect as a, useSignals as o } from "@cascivo/core";
6
- import { useRef as s } from "react";
5
+ import { useRef as n } from "react";
6
+ import { batch as r, cn as i, useControllableSignal as a, useSignal as o, useSignalEffect as s, useSignals as ee } from "@cascivo/core";
7
7
  import { builtin as c, currentLocale as l, t as u } from "@cascivo/i18n";
8
8
  import { jsx as d, jsxs as f } from "react/jsx-runtime";
9
9
  //#region ../components/src/date-range-picker/date-range-picker.tsx
@@ -20,16 +20,16 @@ function h(e, t, n) {
20
20
  month: r.getUTCMonth()
21
21
  };
22
22
  }
23
- function g({ value: g, defaultValue: _, onValueChange: te, min: v, max: y, disabled: b, presets: x, locale: S, placeholder: C, size: w = "md", labels: T, className: ne }) {
24
- o();
25
- let E = S ?? l(), re = C ?? u(c.dateRangePicker.placeholder), D = T?.apply ?? u(c.dateRangePicker.apply), O = T?.clear ?? u(c.dateRangePicker.clear), k = T?.previousMonth ?? u(c.calendar.previousMonth), A = T?.nextMonth ?? u(c.calendar.nextMonth), [j, M] = ee({
23
+ function g({ value: g, defaultValue: _, onValueChange: v, min: y, max: b, disabled: x, presets: S, locale: C, placeholder: w, size: T = "md", labels: E, className: D }) {
24
+ ee();
25
+ let O = C ?? l(), te = w ?? u(c.dateRangePicker.placeholder), ne = E?.apply ?? u(c.dateRangePicker.apply), re = E?.clear ?? u(c.dateRangePicker.clear), k = E?.previousMonth ?? u(c.calendar.previousMonth), A = E?.nextMonth ?? u(c.calendar.nextMonth), [j, M] = a({
26
26
  value: g === void 0 ? void 0 : g,
27
27
  defaultValue: _ ?? null,
28
28
  onChange: (e) => {
29
- e && te?.(e);
29
+ e && v?.(e);
30
30
  }
31
- }), N = i(!1), P = i(null), F = i(null), I = j.value?.start ?? _?.start ?? /* @__PURE__ */ new Date(), L = i(I.getUTCFullYear()), R = i(I.getUTCMonth()), z = s(null);
32
- a(() => {
31
+ }), N = o(!1), P = o(null), F = o(null), I = j.value?.start ?? _?.start ?? /* @__PURE__ */ new Date(), L = o(I.getUTCFullYear()), R = o(I.getUTCMonth()), z = n(null);
32
+ s(() => {
33
33
  if (!N.value) return;
34
34
  let e = (e) => {
35
35
  z.current && !z.current.contains(e.target) && (N.value = !1);
@@ -42,7 +42,7 @@ function g({ value: g, defaultValue: _, onValueChange: te, min: v, max: y, disab
42
42
  N.value = !1;
43
43
  }, H = (e) => {
44
44
  let t = h(L.value, R.value, e);
45
- n(() => {
45
+ r(() => {
46
46
  L.value = t.year, R.value = t.month;
47
47
  });
48
48
  }, U = (e) => {
@@ -52,43 +52,43 @@ function g({ value: g, defaultValue: _, onValueChange: te, min: v, max: y, disab
52
52
  return;
53
53
  }
54
54
  if (m(t, e)) {
55
- n(() => {
55
+ r(() => {
56
56
  P.value = null, F.value = null;
57
57
  }), M(null);
58
58
  return;
59
59
  }
60
- let r = p(t) <= p(e) ? {
60
+ let n = p(t) <= p(e) ? {
61
61
  start: t,
62
62
  end: e
63
63
  } : {
64
64
  start: e,
65
65
  end: t
66
66
  };
67
- n(() => {
67
+ r(() => {
68
68
  P.value = null, F.value = null;
69
- }), M(r);
69
+ }), M(n);
70
70
  }, W = (e) => {
71
- n(() => {
71
+ r(() => {
72
72
  P.value = null, F.value = null, L.value = e.range.start.getUTCFullYear(), R.value = e.range.start.getUTCMonth();
73
73
  }), M(e.range);
74
74
  }, G = () => {
75
- n(() => {
75
+ r(() => {
76
76
  P.value = null, F.value = null;
77
77
  }), M(null);
78
78
  }, K = P.value ?? j.value?.start ?? null, q = P.value ? F.value ?? null : j.value?.end ?? null, J = K && q ? Math.min(p(K), p(q)) : null, Y = K && q ? Math.max(p(K), p(q)) : null, ie = (e) => {
79
79
  if (J === null || Y === null) return !1;
80
80
  let t = p(e);
81
81
  return t > J && t < Y;
82
- }, ae = (e) => m(e, K) || J !== null && p(e) === J, oe = (e) => m(e, q) || Y !== null && p(e) === Y, X = new Intl.DateTimeFormat(E, {
82
+ }, ae = (e) => m(e, K) || J !== null && p(e) === J, oe = (e) => m(e, q) || Y !== null && p(e) === Y, X = new Intl.DateTimeFormat(O, {
83
83
  year: "numeric",
84
84
  month: "short",
85
85
  day: "numeric"
86
86
  }), Z = j.value ? `${X.format(j.value.start)} → ${X.format(j.value.end)}` : "", Q = h(L.value, R.value, 1), $ = {
87
- locale: E,
88
- size: w,
89
- ...v === void 0 ? {} : { min: v },
90
- ...y === void 0 ? {} : { max: y },
91
- ...b === void 0 ? {} : { disabled: b },
87
+ locale: O,
88
+ size: T,
89
+ ...y === void 0 ? {} : { min: y },
90
+ ...b === void 0 ? {} : { max: b },
91
+ ...x === void 0 ? {} : { disabled: x },
92
92
  hideNav: !0,
93
93
  isInRange: ie,
94
94
  isRangeStart: ae,
@@ -104,8 +104,8 @@ function g({ value: g, defaultValue: _, onValueChange: te, min: v, max: y, disab
104
104
  };
105
105
  return /* @__PURE__ */ f("div", {
106
106
  ref: z,
107
- className: r(t.wrapper, ne),
108
- "data-size": w,
107
+ className: i(t.wrapper, D),
108
+ "data-size": T,
109
109
  onKeyDown: (e) => {
110
110
  e.key === "Escape" && N.value && (e.stopPropagation(), V());
111
111
  },
@@ -114,12 +114,12 @@ function g({ value: g, defaultValue: _, onValueChange: te, min: v, max: y, disab
114
114
  role: "combobox",
115
115
  "aria-expanded": N.value,
116
116
  "aria-haspopup": "dialog",
117
- "aria-label": T?.label ?? u(c.dateRangePicker.label),
117
+ "aria-label": E?.label ?? u(c.dateRangePicker.label),
118
118
  className: t.trigger,
119
119
  onClick: N.value ? V : B,
120
120
  children: [/* @__PURE__ */ d("span", {
121
- className: r(t.value, Z ? void 0 : t.placeholder),
122
- children: Z || re
121
+ className: i(t.value, Z ? void 0 : t.placeholder),
122
+ children: Z || te
123
123
  }), /* @__PURE__ */ d("span", {
124
124
  className: t.icon,
125
125
  "aria-hidden": "true",
@@ -130,9 +130,9 @@ function g({ value: g, defaultValue: _, onValueChange: te, min: v, max: y, disab
130
130
  className: t.panel,
131
131
  "data-state": N.value ? "open" : "closed",
132
132
  children: [
133
- x && x.length > 0 && /* @__PURE__ */ d("div", {
133
+ S && S.length > 0 && /* @__PURE__ */ d("div", {
134
134
  className: t.presets,
135
- children: x.map((e) => /* @__PURE__ */ d("button", {
135
+ children: S.map((e) => /* @__PURE__ */ d("button", {
136
136
  type: "button",
137
137
  className: t.preset,
138
138
  onClick: () => W(e),
@@ -180,12 +180,12 @@ function g({ value: g, defaultValue: _, onValueChange: te, min: v, max: y, disab
180
180
  type: "button",
181
181
  className: t.clearBtn,
182
182
  onClick: G,
183
- children: O
183
+ children: re
184
184
  }), /* @__PURE__ */ d("button", {
185
185
  type: "button",
186
186
  className: t.applyBtn,
187
187
  onClick: V,
188
- children: D
188
+ children: ne
189
189
  })]
190
190
  })
191
191
  ]
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
1
  var e = {
4
2
  wrapper: "_wrapper_k1szr_2",
5
3
  trigger: "_trigger_k1szr_25",
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
1
  var e = {
4
2
  dock: "_dock_cqgv4_2",
5
3
  item: "_item_cqgv4_20",
@@ -1,42 +1,42 @@
1
1
  "use client";
2
2
 
3
3
  import e from "./drawer.module.js";
4
- import { DismissableLayer as t, FocusScope as n, Portal as r, Presence as i, cn as a, useControllableSignal as o, useDraggable as s, useScrollLock as c, useSignals as l } from "@cascivo/core";
5
- import { useId as u } from "react";
4
+ import { useId as t } from "react";
5
+ import { DismissableLayer as n, FocusScope as r, Portal as i, Presence as a, cn as o, useControllableSignal as s, useDraggable as c, useScrollLock as l, useSignals as u } from "@cascivo/core";
6
6
  import { builtin as d, t as f } from "@cascivo/i18n";
7
7
  import { jsx as p, jsxs as m } from "react/jsx-runtime";
8
8
  //#region ../components/src/drawer/drawer.tsx
9
9
  var h = 80;
10
10
  function g({ open: g, defaultOpen: _, onOpenChange: v, side: y = "end", size: b, title: x, description: S, children: C, labels: w, className: T, swipeToDismiss: E = !1 }) {
11
- l();
12
- let [D, O] = o({
11
+ u();
12
+ let [D, O] = s({
13
13
  value: g,
14
14
  defaultValue: _ ?? !1,
15
15
  onChange: v
16
16
  });
17
- c(D);
18
- let k = y === "top" || y === "bottom" ? "y" : "x", { handleRef: A, offset: j, isDragging: M, reset: N } = s({
17
+ l(D);
18
+ let k = y === "top" || y === "bottom" ? "y" : "x", { handleRef: A, offset: j, isDragging: M, reset: N } = c({
19
19
  isDisabled: !E,
20
20
  axis: k,
21
21
  onDragEnd: (e) => {
22
22
  let t = k === "y" ? e.y : e.x, n = y === "end" && t > h || y === "start" && t < -80 || y === "bottom" && t > h || y === "top" && t < -80;
23
23
  N(), n && O(!1);
24
24
  }
25
- }), P = u(), F = u(), I = w?.close ?? f(d.drawer.close), L = {
25
+ }), P = t(), F = t(), I = w?.close ?? f(d.drawer.close), L = {
26
26
  ...b ? { "--_drawer-size": b } : {},
27
27
  ...E ? {
28
28
  "--_drawer-drag-x": `${j.value.x}px`,
29
29
  "--_drawer-drag-y": `${j.value.y}px`
30
30
  } : {}
31
31
  };
32
- return /* @__PURE__ */ p(r, { children: /* @__PURE__ */ p(i, {
32
+ return /* @__PURE__ */ p(i, { children: /* @__PURE__ */ p(a, {
33
33
  present: D,
34
34
  children: /* @__PURE__ */ p("div", {
35
35
  className: e.overlay,
36
36
  "data-side": y,
37
- children: /* @__PURE__ */ p(t, {
37
+ children: /* @__PURE__ */ p(n, {
38
38
  onDismiss: () => O(!1),
39
- children: /* @__PURE__ */ p(n, {
39
+ children: /* @__PURE__ */ p(r, {
40
40
  trapped: !0,
41
41
  restoreFocus: !0,
42
42
  autoFocus: !0,
@@ -47,7 +47,7 @@ function g({ open: g, defaultOpen: _, onOpenChange: v, side: y = "end", size: b,
47
47
  "aria-describedby": S ? F : void 0,
48
48
  "data-side": y,
49
49
  "data-dragging": E && M.value ? "" : void 0,
50
- className: a(e.panel, T),
50
+ className: o(e.panel, T),
51
51
  style: L,
52
52
  children: [(x || S) && /* @__PURE__ */ m("div", {
53
53
  className: e.header,
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
1
  var e = {
4
2
  overlay: "_overlay_1q94b_2",
5
3
  panel: "_panel_1q94b_39",
@@ -1,33 +1,33 @@
1
1
  "use client";
2
2
 
3
3
  import e from "./dropdown.module.js";
4
- import { composeRefs as t, createMachine as n, focusElement as r, useEffectPropSignal as i, useMachine as a, useSignal as o, useSignalEffect as s, useSignals as c } from "@cascivo/core";
5
- import { cloneElement as l, useRef as u } from "react";
4
+ import { cloneElement as t, useRef as n } from "react";
5
+ import { composeRefs as r, createMachine as i, focusElement as a, useEffectPropSignal as o, useMachine as s, useSignal as c, useSignalEffect as l, useSignals as u } from "@cascivo/core";
6
6
  import { jsx as d, jsxs as f } from "react/jsx-runtime";
7
7
  //#region ../components/src/dropdown/dropdown.tsx
8
- var p = n({
8
+ var p = i({
9
9
  initial: "closed",
10
10
  states: {
11
11
  closed: { on: { OPEN: "open" } },
12
12
  open: { on: { CLOSE: "closed" } }
13
13
  }
14
14
  });
15
- function m({ trigger: n, items: m, onSelect: h, placement: g = "bottom-start", open: _, onOpenChange: v }) {
16
- c();
17
- let [y, b] = a(p), x = u(null), S = u(null), C = u(null), w = u([]), T = o(-1), E = _ !== void 0, D = E ? _ : y.value === "open", O = i(D), k = m.map((e, t) => ({
15
+ function m({ trigger: i, items: m, onSelect: h, placement: g = "bottom-start", open: _, onOpenChange: v }) {
16
+ u();
17
+ let [y, b] = s(p), x = n(null), S = n(null), C = n(null), w = n([]), T = c(-1), E = _ !== void 0, D = E ? _ : y.value === "open", O = o(D), k = m.map((e, t) => ({
18
18
  item: e,
19
19
  index: t
20
20
  })).filter(({ item: e }) => !e.separator && !e.disabled).map(({ index: e }) => e), A = (e) => {
21
21
  E || b(e ? "OPEN" : "CLOSE"), v?.(e);
22
22
  };
23
- s(() => {
23
+ l(() => {
24
24
  let e = T.value;
25
25
  O.value && e >= 0 && w.current[e]?.focus();
26
- }), s(() => {
26
+ }), l(() => {
27
27
  O.value ? T.value = k[0] ?? -1 : T.value = -1;
28
- }), s(() => {
28
+ }), l(() => {
29
29
  O.value ? C.current?.showPopover() : C.current?.hidePopover();
30
- }), s(() => {
30
+ }), l(() => {
31
31
  let e = C.current;
32
32
  if (!e) return;
33
33
  let t = (e) => {
@@ -37,7 +37,7 @@ function m({ trigger: n, items: m, onSelect: h, placement: g = "bottom-start", o
37
37
  });
38
38
  let j = (e) => {
39
39
  let t = m[e];
40
- !t || t.separator || t.disabled || (h?.(t.value), A(!1), r(S.current));
40
+ !t || t.separator || t.disabled || (h?.(t.value), A(!1), a(S.current));
41
41
  }, M = (e) => {
42
42
  k.length !== 0 && (T.value = k[(k.indexOf(T.value) + e + k.length) % k.length] ?? -1);
43
43
  }, N = (e) => {
@@ -55,15 +55,15 @@ function m({ trigger: n, items: m, onSelect: h, placement: g = "bottom-start", o
55
55
  e.preventDefault(), T.value = k[k.length - 1] ?? -1;
56
56
  break;
57
57
  case "Escape":
58
- e.preventDefault(), A(!1), r(S.current);
58
+ e.preventDefault(), A(!1), a(S.current);
59
59
  break;
60
60
  case "Enter":
61
61
  case " ":
62
62
  e.preventDefault(), j(T.value);
63
63
  break;
64
64
  }
65
- }, P = n, F = l(P, {
66
- ref: t(S, P.props.ref),
65
+ }, P = i, F = t(P, {
66
+ ref: r(S, P.props.ref),
67
67
  onClick: (e) => {
68
68
  P.props.onClick?.(e), A(!D);
69
69
  },
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
1
  var e = {
4
2
  root: "_root_3wuq6_2",
5
3
  menu: "_menu_3wuq6_7",
@@ -1,16 +1,16 @@
1
1
  "use client";
2
2
 
3
3
  import e from "./editable.module.js";
4
- import { cn as t, useSignal as n, useSignalEffect as r, useSignals as i } from "@cascivo/core";
5
- import { useRef as a } from "react";
4
+ import { useRef as t } from "react";
5
+ import { cn as n, useSignal as r, useSignalEffect as i, useSignals as a } from "@cascivo/core";
6
6
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
7
7
  //#region ../components/src/editable/editable.tsx
8
8
  function c({ value: c, onValueChange: l, placeholder: u, disabled: d = !1, submitOnBlur: f = !0, onCancel: p, className: m, ...h }) {
9
- i();
10
- let g = n(!1), _ = n(c), v = a(null), y = a(p);
9
+ a();
10
+ let g = r(!1), _ = r(c), v = t(null), y = t(p);
11
11
  y.current = p;
12
- let b = a(l);
13
- b.current = l, g.value || (_.value = c), r(() => {
12
+ let b = t(l);
13
+ b.current = l, g.value || (_.value = c), i(() => {
14
14
  if (g.value) {
15
15
  let e = v.current;
16
16
  e && (e.focus(), e.select());
@@ -23,7 +23,7 @@ function c({ value: c, onValueChange: l, placeholder: u, disabled: d = !1, submi
23
23
  _.value = c, g.value = !1, y.current?.();
24
24
  }
25
25
  return g.value ? /* @__PURE__ */ o("div", {
26
- className: t(e.wrapper, e.editing, m),
26
+ className: n(e.wrapper, e.editing, m),
27
27
  ...h,
28
28
  children: /* @__PURE__ */ o("input", {
29
29
  ref: v,
@@ -40,7 +40,7 @@ function c({ value: c, onValueChange: l, placeholder: u, disabled: d = !1, submi
40
40
  }
41
41
  })
42
42
  }) : /* @__PURE__ */ o("div", {
43
- className: t(e.wrapper, m),
43
+ className: n(e.wrapper, m),
44
44
  "data-disabled": d ? "" : void 0,
45
45
  ...h,
46
46
  children: /* @__PURE__ */ s("button", {
@@ -1,13 +1,11 @@
1
- "use client";
2
-
3
1
  var e = {
4
- wrapper: "_wrapper_5e6r0_2",
5
- preview: "_preview_5e6r0_8",
6
- "preview-text": "_preview-text_5e6r0_42",
7
- placeholder: "_placeholder_5e6r0_46",
8
- "edit-icon": "_edit-icon_5e6r0_50",
9
- editing: "_editing_5e6r0_69",
10
- input: "_input_5e6r0_70"
2
+ wrapper: "_wrapper_17cwn_2",
3
+ preview: "_preview_17cwn_8",
4
+ "preview-text": "_preview-text_17cwn_42",
5
+ placeholder: "_placeholder_17cwn_46",
6
+ "edit-icon": "_edit-icon_17cwn_50",
7
+ editing: "_editing_17cwn_69",
8
+ input: "_input_17cwn_70"
11
9
  };
12
10
  //#endregion
13
11
  export { e as default };
@@ -1,7 +1,5 @@
1
- "use client";
2
-
3
1
  import e from "./empty-state.module.js";
4
- import { cn as t } from "@cascivo/core";
2
+ import { cn as t } from "@cascivo/core/pure";
5
3
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
6
4
  //#region ../components/src/empty-state/empty-state.tsx
7
5
  function i({ icon: i, title: a, description: o, action: s, size: c = "md", className: l, ...u }) {
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
1
  var e = {
4
2
  "empty-state": "_empty-state_1wem6_2",
5
3
  icon: "_icon_1wem6_18",
@@ -1,23 +1,23 @@
1
1
  "use client";
2
2
 
3
3
  import e from "./fab.module.js";
4
- import { DismissableLayer as t, Presence as n, cn as r, focusElement as i, useControllableSignal as a, useRovingFocus as o, useSignalEffect as s, useSignals as c } from "@cascivo/core";
5
- import { useId as l, useRef as u } from "react";
4
+ import { useId as t, useRef as n } from "react";
5
+ import { DismissableLayer as r, Presence as i, cn as a, focusElement as o, useControllableSignal as s, useRovingFocus as c, useSignalEffect as l, useSignals as u } from "@cascivo/core";
6
6
  import { jsx as d, jsxs as f } from "react/jsx-runtime";
7
7
  //#region ../components/src/fab/fab.tsx
8
8
  function p({ children: p, label: m, onClick: h, actions: g, position: _ = "bottom-end", open: v, defaultOpen: y, onOpenChange: b, className: x }) {
9
- c();
10
- let S = g != null && g.length > 0, [C, w] = a({
9
+ u();
10
+ let S = g != null && g.length > 0, [C, w] = s({
11
11
  value: v,
12
12
  defaultValue: y ?? !1,
13
13
  onChange: b
14
- }), T = o({
14
+ }), T = c({
15
15
  orientation: "vertical",
16
16
  loop: !0
17
- }), E = u(null), D = u(null), O = l(), k = u(!1);
18
- s(() => {
17
+ }), E = n(null), D = n(null), O = t(), k = n(!1);
18
+ l(() => {
19
19
  let e = S && C.value;
20
- e && !k.current ? D.current?.querySelector("[role=\"menuitem\"]:not([aria-disabled=\"true\"])")?.focus() : !e && k.current && i(E.current), k.current = e;
20
+ e && !k.current ? D.current?.querySelector("[role=\"menuitem\"]:not([aria-disabled=\"true\"])")?.focus() : !e && k.current && o(E.current), k.current = e;
21
21
  });
22
22
  let A = (e) => {
23
23
  e.disabled || (e.onSelect(), w(!1));
@@ -39,14 +39,14 @@ function p({ children: p, label: m, onClick: h, actions: g, position: _ = "botto
39
39
  children: p
40
40
  })
41
41
  });
42
- return S ? /* @__PURE__ */ d(t, {
42
+ return S ? /* @__PURE__ */ d(r, {
43
43
  onDismiss: () => w(!1),
44
44
  escapeDismisses: C.value,
45
45
  disableOutsidePointer: !C.value,
46
46
  children: /* @__PURE__ */ f("div", {
47
- className: r(e.root, x),
47
+ className: a(e.root, x),
48
48
  "data-position": _,
49
- children: [/* @__PURE__ */ d(n, {
49
+ children: [/* @__PURE__ */ d(i, {
50
50
  present: C,
51
51
  children: /* @__PURE__ */ d("menu", {
52
52
  ref: D,
@@ -84,7 +84,7 @@ function p({ children: p, label: m, onClick: h, actions: g, position: _ = "botto
84
84
  }), j]
85
85
  })
86
86
  }) : /* @__PURE__ */ d("div", {
87
- className: r(e.root, x),
87
+ className: a(e.root, x),
88
88
  "data-position": _,
89
89
  children: j
90
90
  });
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
1
  var e = {
4
2
  root: "_root_142gl_2",
5
3
  fab: "_fab_142gl_21",
@@ -1,8 +1,6 @@
1
- "use client";
2
-
3
1
  import { Label as e } from "../label/label.js";
4
2
  import t from "./field.module.js";
5
- import { cn as n, useId as r } from "@cascivo/core";
3
+ import { cn as n, useId as r } from "@cascivo/core/pure";
6
4
  import { Children as i, cloneElement as a, isValidElement as o } from "react";
7
5
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
8
6
  //#region ../components/src/field/field.tsx
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
1
  var e = {
4
2
  field: "_field_ws86v_2",
5
3
  description: "_description_ws86v_12",