@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 "./toast.module.js";
4
- import { createMachine as t, signal as n, useMachine as r, useSignalEffect as i, useSignals as a } from "@cascivo/core";
5
- import { useRef as o } from "react";
4
+ import { useRef as t } from "react";
5
+ import { createMachine as n, signal as r, useMachine as i, useSignalEffect as a, useSignals as o } from "@cascivo/core";
6
6
  import { builtin as s, t as c } from "@cascivo/i18n";
7
7
  import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
8
8
  //#region ../components/src/toast/toast.tsx
9
- var f = 5e3, p = 160, m = 0, h = n([]);
9
+ var f = 5e3, p = 160, m = 0, h = r([]);
10
10
  function g(e) {
11
11
  h.value = [...h.value, {
12
12
  id: m++,
@@ -17,7 +17,7 @@ function _(e) {
17
17
  h.value = h.value.filter((t) => t.id !== e);
18
18
  }
19
19
  function v({ children: t }) {
20
- a();
20
+ o();
21
21
  let n = h.value.slice(-3);
22
22
  return /* @__PURE__ */ d(l, { children: [t, /* @__PURE__ */ u("div", {
23
23
  className: e.viewport,
@@ -29,19 +29,19 @@ function v({ children: t }) {
29
29
  }, e.id))
30
30
  })] });
31
31
  }
32
- var y = t({
32
+ var y = n({
33
33
  initial: "visible",
34
34
  states: {
35
35
  visible: { on: { DISMISS: "dismissing" } },
36
36
  dismissing: { on: { END: "gone" } }
37
37
  }
38
38
  });
39
- function b({ toast: t, onDismiss: n }) {
40
- a();
41
- let [l, m] = r(y), h = o(n);
42
- h.current = n;
43
- let g = t.duration ?? f, _ = t.variant === "destructive";
44
- return i(() => {
39
+ function b({ toast: n, onDismiss: r }) {
40
+ o();
41
+ let [l, m] = i(y), h = t(r);
42
+ h.current = r;
43
+ let g = n.duration ?? f, _ = n.variant === "destructive";
44
+ return a(() => {
45
45
  let e = l.value;
46
46
  if (e === "visible") {
47
47
  let e = setTimeout(() => m("DISMISS"), g);
@@ -54,17 +54,17 @@ function b({ toast: t, onDismiss: n }) {
54
54
  }), /* @__PURE__ */ d("div", {
55
55
  role: _ ? "alert" : "status",
56
56
  "aria-live": _ ? "assertive" : "polite",
57
- "data-variant": t.variant ?? "default",
57
+ "data-variant": n.variant ?? "default",
58
58
  "data-state": l.value,
59
59
  className: e.toast,
60
60
  children: [/* @__PURE__ */ d("div", {
61
61
  className: e.body,
62
62
  children: [/* @__PURE__ */ u("div", {
63
63
  className: e.title,
64
- children: t.title
65
- }), t.description && /* @__PURE__ */ u("div", {
64
+ children: n.title
65
+ }), n.description && /* @__PURE__ */ u("div", {
66
66
  className: e.description,
67
- children: t.description
67
+ children: n.description
68
68
  })]
69
69
  }), /* @__PURE__ */ u("button", {
70
70
  type: "button",
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
1
  import './toast.css';
4
2
  var e = {
5
3
  viewport: "_viewport_cshyp_2",
package/dist/toc/toc.js CHANGED
@@ -1,17 +1,17 @@
1
1
  "use client";
2
2
 
3
3
  import e from "./toc.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 { builtin as o, t as s } from "@cascivo/i18n";
7
7
  import { jsx as c } from "react/jsx-runtime";
8
8
  //#region ../components/src/toc/toc.tsx
9
9
  function l({ items: l, activeId: u, onActiveChange: d, labels: f, className: p }) {
10
- i();
11
- let m = u !== void 0, h = n(u ?? l[0]?.id ?? "");
10
+ a();
11
+ let m = u !== void 0, h = r(u ?? l[0]?.id ?? "");
12
12
  m && (h.value = u);
13
- let g = a(d);
14
- return g.current = d, r(() => {
13
+ let g = t(d);
14
+ return g.current = d, i(() => {
15
15
  if (m || typeof document > "u" || typeof IntersectionObserver > "u") return;
16
16
  let e = l.map((e) => document.getElementById(e.id)).filter((e) => e !== null);
17
17
  if (e.length === 0) return;
@@ -27,7 +27,7 @@ function l({ items: l, activeId: u, onActiveChange: d, labels: f, className: p }
27
27
  return () => n.disconnect();
28
28
  }), /* @__PURE__ */ c("nav", {
29
29
  "aria-label": f?.nav ?? s(o.toc.nav),
30
- className: t(e.toc, p),
30
+ className: n(e.toc, p),
31
31
  children: /* @__PURE__ */ c("ol", { children: l.map((e) => /* @__PURE__ */ c("li", {
32
32
  style: { "--toc-level": e.level ?? 2 },
33
33
  children: /* @__PURE__ */ c("a", {
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
1
  import './toc.css';
4
2
  var e = { toc: "_toc_1w9fk_2" };
5
3
  //#endregion
@@ -1,19 +1,19 @@
1
1
  "use client";
2
2
 
3
3
  import e from "./toggle.module.js";
4
- import { cn as t, createMachine as n, useMachine as r, useSignals as i } from "@cascivo/core";
5
- import { forwardRef as a } from "react";
4
+ import { forwardRef as t } from "react";
5
+ import { cn as n, createMachine as r, useMachine 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/toggle/toggle.tsx
8
- var c = a(function({ checked: a, defaultChecked: c = !1, onValueChange: l, onChange: u, label: d, size: f = "md", className: p, disabled: m, ...h }, g) {
9
- i();
10
- let [_, v] = r(n({
8
+ var c = t(function({ checked: t, defaultChecked: c = !1, onValueChange: l, onChange: u, label: d, size: f = "md", className: p, disabled: m, ...h }, g) {
9
+ a();
10
+ let [_, v] = i(r({
11
11
  initial: c ? "on" : "off",
12
12
  states: {
13
13
  off: { on: { TOGGLE: "on" } },
14
14
  on: { on: { TOGGLE: "off" } }
15
15
  }
16
- })), y = a !== void 0, b = y ? a : _.value === "on";
16
+ })), y = t !== void 0, b = y ? t : _.value === "on";
17
17
  return /* @__PURE__ */ s("button", {
18
18
  type: "button",
19
19
  role: "switch",
@@ -21,7 +21,7 @@ var c = a(function({ checked: a, defaultChecked: c = !1, onValueChange: l, onCha
21
21
  "data-state": b ? "on" : "off",
22
22
  "data-size": f,
23
23
  disabled: m,
24
- className: t(e.toggle, p),
24
+ className: n(e.toggle, p),
25
25
  onClick: () => {
26
26
  y || v("TOGGLE"), (l ?? u)?.(!b);
27
27
  },
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
1
  import './toggle.css';
4
2
  var e = {
5
3
  toggle: "_toggle_1vvuo_2",
@@ -1,53 +1,53 @@
1
1
  "use client";
2
2
 
3
3
  import e from "./toggle-group.module.js";
4
- import { cn as t, useControllableSignal as n, useRovingFocus as r, useSignals as i } from "@cascivo/core";
5
- import { forwardRef as a } from "react";
4
+ import { forwardRef as t } from "react";
5
+ import { cn as n, useControllableSignal as r, useRovingFocus 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/toggle-group/toggle-group.tsx
8
8
  function c(e, t) {
9
9
  return Array.isArray(e) ? e.includes(t) : e === t;
10
10
  }
11
- var l = a(function({ type: a, value: l, defaultValue: u, onValueChange: d, items: f, orientation: p = "horizontal", size: m = "md", disabled: h = !1, className: g, ..._ }, v) {
12
- i();
13
- let [y, b] = n({
11
+ var l = t(function({ type: t, value: l, defaultValue: u, onValueChange: d, items: f, orientation: p = "horizontal", size: m = "md", disabled: h = !1, className: g, ..._ }, v) {
12
+ a();
13
+ let [y, b] = r({
14
14
  value: l,
15
- defaultValue: u ?? (a === "multiple" ? [] : ""),
15
+ defaultValue: u ?? (t === "multiple" ? [] : ""),
16
16
  onChange: d
17
- }), x = r({
17
+ }), x = i({
18
18
  orientation: p,
19
19
  loop: !0
20
20
  }), S = (e) => {
21
- let t = y.value;
22
- if (a === "multiple") {
23
- let n = Array.isArray(t) ? t : [];
24
- b(n.includes(e) ? n.filter((t) => t !== e) : [...n, e]);
25
- } else b(t === e ? "" : e);
21
+ let n = y.value;
22
+ if (t === "multiple") {
23
+ let t = Array.isArray(n) ? n : [];
24
+ b(t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
25
+ } else b(n === e ? "" : e);
26
26
  };
27
27
  return /* @__PURE__ */ o("div", {
28
- role: a === "single" ? "radiogroup" : "group",
28
+ role: t === "single" ? "radiogroup" : "group",
29
29
  "data-orientation": p,
30
30
  "data-size": m,
31
- className: t(e.toggleGroup, g),
31
+ className: n(e.toggleGroup, g),
32
32
  ref: v,
33
33
  ..._,
34
- children: f.map((t, n) => {
35
- let r = c(y.value, t.value), i = h || t.disabled, { ref: l, ...u } = x.getItemProps(n);
34
+ children: f.map((n, r) => {
35
+ let i = c(y.value, n.value), a = h || n.disabled, { ref: l, ...u } = x.getItemProps(r);
36
36
  return /* @__PURE__ */ s("button", {
37
37
  type: "button",
38
- ...a === "single" ? {
38
+ ...t === "single" ? {
39
39
  role: "radio",
40
- "aria-checked": r
41
- } : { "aria-pressed": r },
40
+ "aria-checked": i
41
+ } : { "aria-pressed": i },
42
42
  ...u,
43
43
  ref: l,
44
- "data-state": r ? "on" : "off",
45
- disabled: i,
46
- "aria-label": t.icon && !t.label ? t.value : void 0,
44
+ "data-state": i ? "on" : "off",
45
+ disabled: a,
46
+ "aria-label": n.icon && !n.label ? n.value : void 0,
47
47
  className: e.item,
48
- onClick: () => S(t.value),
49
- children: [t.icon, t.label && /* @__PURE__ */ o("span", { children: t.label })]
50
- }, t.value);
48
+ onClick: () => S(n.value),
49
+ children: [n.icon, n.label && /* @__PURE__ */ o("span", { children: n.label })]
50
+ }, n.value);
51
51
  })
52
52
  });
53
53
  });
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
1
  import './toggle-group.css';
4
2
  var e = {
5
3
  toggleGroup: "_toggleGroup_s4o5x_2",
@@ -1,25 +1,25 @@
1
1
  "use client";
2
2
 
3
3
  import e from "./toggletip.module.js";
4
- import { DismissableLayer as t, cn as n, useAnchorPosition as r, useControllableSignal as i, useSignals as a } from "@cascivo/core";
5
- import { useId as o, useRef as s } from "react";
4
+ import { useId as t, useRef as n } from "react";
5
+ import { DismissableLayer as r, cn as i, useAnchorPosition as a, useControllableSignal as o, useSignals as s } from "@cascivo/core";
6
6
  import { builtin as c, t as l } from "@cascivo/i18n";
7
7
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
8
8
  //#region ../components/src/toggletip/toggletip.tsx
9
9
  function f({ trigger: f, children: p, placement: m = "top", defaultOpen: h = !1, open: g, onOpenChange: _, labels: v, className: y }) {
10
- a();
11
- let [b, x] = i({
10
+ s();
11
+ let [b, x] = o({
12
12
  ...g !== void 0 && { value: g },
13
13
  defaultValue: h,
14
14
  ..._ && { onChange: _ }
15
- }), S = s(null), C = s(null), w = o(), { anchorStyle: T, floatingStyle: E } = r({
15
+ }), S = n(null), C = n(null), w = t(), { anchorStyle: T, floatingStyle: E } = a({
16
16
  anchorRef: S,
17
17
  floatingRef: C,
18
18
  placement: m,
19
19
  enabled: b
20
20
  });
21
21
  return /* @__PURE__ */ d("span", {
22
- className: n(e.root, y),
22
+ className: i(e.root, y),
23
23
  children: [/* @__PURE__ */ u("button", {
24
24
  ref: S,
25
25
  type: "button",
@@ -30,7 +30,7 @@ function f({ trigger: f, children: p, placement: m = "top", defaultOpen: h = !1,
30
30
  style: T,
31
31
  onClick: () => x(!b.value),
32
32
  children: f
33
- }), b.value ? /* @__PURE__ */ u(t, {
33
+ }), b.value ? /* @__PURE__ */ u(r, {
34
34
  onDismiss: () => x(!1),
35
35
  children: /* @__PURE__ */ u("div", {
36
36
  ref: C,
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
1
  import './toggletip.css';
4
2
  var e = {
5
3
  root: "_root_1t09l_2",
@@ -1,25 +1,25 @@
1
1
  "use client";
2
2
 
3
3
  import e from "./tooltip.module.js";
4
- import { createMachine as t, useId as n, useMachine as r, useSignalEffect as i, useSignals as a } from "@cascivo/core";
5
- import { cloneElement as o, useRef as s } from "react";
4
+ import { cloneElement as t, useRef as n } from "react";
5
+ import { createMachine as r, useId as i, useMachine as a, useSignalEffect as o, useSignals as s } from "@cascivo/core";
6
6
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
7
7
  //#region ../components/src/tooltip/tooltip.tsx
8
- var u = t({
8
+ var u = r({
9
9
  initial: "hidden",
10
10
  states: {
11
11
  hidden: { on: { SHOW: "visible" } },
12
12
  visible: { on: { HIDE: "hidden" } }
13
13
  }
14
14
  });
15
- function d({ content: t, placement: d = "top", children: f, delay: p = 200 }) {
16
- a();
17
- let [m, h] = r(u), g = n("cascivo-tooltip"), _ = n("cascivo-anchor"), v = s(void 0), y = s(null), b = m.value === "visible", x = () => {
15
+ function d({ content: r, placement: d = "top", children: f, delay: p = 200 }) {
16
+ s();
17
+ let [m, h] = a(u), g = i("cascivo-tooltip"), _ = i("cascivo-anchor"), v = n(void 0), y = n(null), b = m.value === "visible", x = () => {
18
18
  clearTimeout(v.current), v.current = setTimeout(() => h("SHOW"), p);
19
19
  }, S = () => {
20
20
  clearTimeout(v.current), h("HIDE");
21
21
  };
22
- i(() => () => clearTimeout(v.current)), i(() => {
22
+ o(() => () => clearTimeout(v.current)), o(() => {
23
23
  m.value === "visible" ? y.current?.showPopover() : y.current?.hidePopover();
24
24
  });
25
25
  let C = f, w = C.props, T = {
@@ -41,7 +41,7 @@ function d({ content: t, placement: d = "top", children: f, delay: p = 200 }) {
41
41
  };
42
42
  return /* @__PURE__ */ l("span", {
43
43
  className: e.root,
44
- children: [o(C, T), /* @__PURE__ */ c("span", {
44
+ children: [t(C, T), /* @__PURE__ */ c("span", {
45
45
  ref: y,
46
46
  popover: "manual",
47
47
  role: "tooltip",
@@ -50,7 +50,7 @@ function d({ content: t, placement: d = "top", children: f, delay: p = 200 }) {
50
50
  "data-state": b ? "visible" : "hidden",
51
51
  "data-anchor": `--tooltip-${_}`,
52
52
  className: e.tooltip,
53
- children: t
53
+ children: r
54
54
  })]
55
55
  });
56
56
  }
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
1
  import './tooltip.css';
4
2
  var e = {
5
3
  root: "_root_1t9q1_2",
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
 
3
3
  import e from "./tree-view.module.js";
4
- import { cn as t, useControllableSignal as n, useSignal 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, useControllableSignal as r, useSignal as i, useSignals as a } from "@cascivo/core";
6
6
  import { builtin as o, t as s } from "@cascivo/i18n";
7
7
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
8
8
  //#region ../components/src/tree-view/tree-view.tsx
@@ -24,88 +24,88 @@ function u(e, t) {
24
24
  function d(e) {
25
25
  return e === void 0 ? [] : Array.isArray(e) ? e : e === "" ? [] : [e];
26
26
  }
27
- function f({ items: o, selectionMode: s = "single", selected: l, defaultSelected: f, onSelectChange: h, expanded: g, defaultExpanded: _, onExpandedChange: v, className: y, "aria-label": b }) {
28
- i();
29
- let [x, S] = n({
27
+ function f({ items: o, selectionMode: s = "single", selected: l, defaultSelected: f, onSelectChange: h, expanded: g, defaultExpanded: _, onExpandedChange: v, className: y, "aria-label": b, ariaLabel: x }) {
28
+ a();
29
+ let [S, C] = r({
30
30
  value: g,
31
31
  defaultValue: _ ?? [],
32
32
  onChange: v
33
- }), [C, w] = n({
33
+ }), [w, T] = r({
34
34
  value: l,
35
35
  defaultValue: f ?? (s === "multi" ? [] : ""),
36
36
  onChange: h
37
- }), T = r(null), E = a(/* @__PURE__ */ new Map()), D = new Set(x.value), O = u(o, D), k = new Map(O.map((e, t) => [e.id, t])), A = d(C.value), j = new Set(A), M = T.value ?? A[0] ?? O[0]?.id ?? null, N = (e) => S([...e]), P = (e) => {
38
- if (D.has(e)) return;
39
- let t = new Set(D);
40
- t.add(e), N(t);
41
- }, F = (e) => {
42
- if (!D.has(e)) return;
43
- let t = new Set(D);
44
- t.delete(e), N(t);
37
+ }), E = i(null), D = t(/* @__PURE__ */ new Map()), O = new Set(S.value), k = u(o, O), A = new Map(k.map((e, t) => [e.id, t])), j = d(w.value), M = new Set(j), N = E.value ?? j[0] ?? k[0]?.id ?? null, P = (e) => C([...e]), F = (e) => {
38
+ if (O.has(e)) return;
39
+ let t = new Set(O);
40
+ t.add(e), P(t);
45
41
  }, I = (e) => {
46
- T.value = e, E.current.get(e)?.focus();
42
+ if (!O.has(e)) return;
43
+ let t = new Set(O);
44
+ t.delete(e), P(t);
47
45
  }, L = (e) => {
46
+ E.value = e, D.current.get(e)?.focus();
47
+ }, R = (e) => {
48
48
  if (s === "multi") {
49
- let t = new Set(j);
50
- t.has(e) ? t.delete(e) : t.add(e), w([...t]);
51
- } else w(e);
52
- }, R = a({
49
+ let t = new Set(M);
50
+ t.has(e) ? t.delete(e) : t.add(e), T([...t]);
51
+ } else T(e);
52
+ }, z = t({
53
53
  buffer: "",
54
54
  at: 0
55
- }), z = (e, t) => {
56
- let n = k.get(t.id);
55
+ }), B = (e, t) => {
56
+ let n = A.get(t.id);
57
57
  if (n === void 0) return;
58
- let { hasChildren: r, level: i, parentId: a, expanded: s } = O[n];
58
+ let { hasChildren: r, level: i, parentId: a, expanded: s } = k[n];
59
59
  switch (e.key) {
60
60
  case "ArrowDown": {
61
61
  e.preventDefault();
62
- let t = O[n + 1];
63
- t && I(t.id);
62
+ let t = k[n + 1];
63
+ t && L(t.id);
64
64
  break;
65
65
  }
66
66
  case "ArrowUp": {
67
67
  e.preventDefault();
68
- let t = O[n - 1];
69
- t && I(t.id);
68
+ let t = k[n - 1];
69
+ t && L(t.id);
70
70
  break;
71
71
  }
72
72
  case "ArrowRight":
73
- if (e.preventDefault(), r && !s) P(t.id);
73
+ if (e.preventDefault(), r && !s) F(t.id);
74
74
  else if (r && s) {
75
- let e = O[n + 1];
76
- e && e.level > i && I(e.id);
75
+ let e = k[n + 1];
76
+ e && e.level > i && L(e.id);
77
77
  }
78
78
  break;
79
79
  case "ArrowLeft":
80
- e.preventDefault(), r && s ? F(t.id) : a && I(a);
80
+ e.preventDefault(), r && s ? I(t.id) : a && L(a);
81
81
  break;
82
82
  case "Home":
83
- e.preventDefault(), O[0] && I(O[0].id);
83
+ e.preventDefault(), k[0] && L(k[0].id);
84
84
  break;
85
85
  case "End": {
86
86
  e.preventDefault();
87
- let t = O[O.length - 1];
88
- t && I(t.id);
87
+ let t = k[k.length - 1];
88
+ t && L(t.id);
89
89
  break;
90
90
  }
91
91
  case "Enter":
92
92
  case " ":
93
- e.preventDefault(), L(t.id);
93
+ e.preventDefault(), R(t.id);
94
94
  break;
95
95
  default:
96
96
  if (e.key.length === 1 && !e.metaKey && !e.ctrlKey && !e.altKey) {
97
- let t = R.current, r = Date.now();
97
+ let t = z.current, r = Date.now();
98
98
  t.buffer = r - t.at > 500 ? e.key : t.buffer + e.key, t.at = r;
99
- let i = t.buffer.toLowerCase(), a = (e) => typeof e.label == "string" && e.label.toLowerCase().startsWith(i), s = p(o, D), c = [...O.slice(n + 1), ...O.slice(0, n + 1)].find((e) => {
99
+ let i = t.buffer.toLowerCase(), a = (e) => typeof e.label == "string" && e.label.toLowerCase().startsWith(i), s = p(o, O), c = [...k.slice(n + 1), ...k.slice(0, n + 1)].find((e) => {
100
100
  let t = s.get(e.id);
101
101
  return t ? a(t) : !1;
102
102
  });
103
- c && I(c.id);
103
+ c && L(c.id);
104
104
  }
105
105
  break;
106
106
  }
107
- }, B = (e, t, n, r) => {
108
- let i = !!e.children && e.children.length > 0, a = D.has(e.id), o = j.has(e.id), s = M === e.id, l = e.children?.length ?? 0;
107
+ }, V = (e, t, n, r) => {
108
+ let i = !!e.children && e.children.length > 0, a = O.has(e.id), o = M.has(e.id), s = N === e.id, l = e.children?.length ?? 0;
109
109
  return /* @__PURE__ */ c(m, {
110
110
  node: e,
111
111
  level: t,
@@ -115,20 +115,20 @@ function f({ items: o, selectionMode: s = "single", selected: l, defaultSelected
115
115
  isExpanded: a,
116
116
  isSelected: o,
117
117
  isTabbable: s,
118
- itemRefs: E,
119
- onFocusNode: () => T.value = e.id,
120
- onKeyDown: (t) => z(t, e),
118
+ itemRefs: D,
119
+ onFocusNode: () => E.value = e.id,
120
+ onKeyDown: (t) => B(t, e),
121
121
  onActivate: () => {
122
- I(e.id), i && (a ? F : P)(e.id), L(e.id);
122
+ L(e.id), i && (a ? I : F)(e.id), R(e.id);
123
123
  },
124
- children: i && e.children.map((e, n) => B(e, t + 1, n + 1, l))
124
+ children: i && e.children.map((e, n) => V(e, t + 1, n + 1, l))
125
125
  }, e.id);
126
126
  };
127
127
  return /* @__PURE__ */ c("ul", {
128
128
  role: "tree",
129
- "aria-label": b,
130
- className: t(e.tree, y),
131
- children: o.map((e, t) => B(e, 1, t + 1, o.length))
129
+ "aria-label": x ?? b,
130
+ className: n(e.tree, y),
131
+ children: o.map((e, t) => V(e, 1, t + 1, o.length))
132
132
  });
133
133
  }
134
134
  function p(e, t) {
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
1
  import './tree-view.css';
4
2
  var e = {
5
3
  tree: "_tree_ufkml_2",
package/dist/user/user.js CHANGED
@@ -1,8 +1,6 @@
1
- "use client";
2
-
3
1
  import { Avatar as e } from "../avatar/avatar.js";
4
2
  import t from "./user.module.js";
5
- import { cn as n } from "@cascivo/core";
3
+ import { cn as n } from "@cascivo/core/pure";
6
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
7
5
  //#region ../components/src/user/user.tsx
8
6
  function a({ name: a, description: o, avatarProps: s, className: c, children: l, ...u }) {
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
1
  import './user.css';
4
2
  var e = {
5
3
  user: "_user_uuj1b_2",
@@ -0,0 +1 @@
1
+ @layer cascivo.component{._viewport_1wmsq_2{overscroll-behavior:contain;position:relative;overflow-y:auto}._viewport_1wmsq_2:focus-visible{outline:2px solid var(--cascivo-color-accent);outline-offset:-2px}._canvas_1wmsq_14{inline-size:100%;position:relative}._row_1wmsq_19{will-change:transform;align-items:center;display:flex;position:absolute;inset-block-start:0;inset-inline:0}}
@@ -0,0 +1,40 @@
1
+ "use client";
2
+
3
+ import e from "./virtual-list.module.js";
4
+ import { cn as t, useSignal as n, useSignals as r } from "@cascivo/core";
5
+ import { jsx as i } from "react/jsx-runtime";
6
+ //#region ../components/src/virtual-list/virtual-list.tsx
7
+ function a({ items: a, itemHeight: o, height: s, renderItem: c, overscan: l = 3, ariaLabel: u, className: d }) {
8
+ r();
9
+ let f = n(0), p = Math.ceil(s / o), m = Math.floor(f.value / o), h = Math.max(0, m - l), g = Math.min(a.length, m + p + l), _ = a.slice(h, g), v = (e) => {
10
+ f.value = e.currentTarget.scrollTop;
11
+ }, y = { blockSize: `${s}px` };
12
+ return /* @__PURE__ */ i("div", {
13
+ className: t(e.viewport, d),
14
+ style: y,
15
+ onScroll: v,
16
+ role: "list",
17
+ "aria-label": u,
18
+ tabIndex: 0,
19
+ children: /* @__PURE__ */ i("div", {
20
+ className: e.canvas,
21
+ style: { blockSize: `${a.length * o}px` },
22
+ children: _.map((t, n) => {
23
+ let r = h + n;
24
+ return /* @__PURE__ */ i("div", {
25
+ role: "listitem",
26
+ "aria-setsize": a.length,
27
+ "aria-posinset": r + 1,
28
+ className: e.row,
29
+ style: {
30
+ blockSize: `${o}px`,
31
+ transform: `translateY(${r * o}px)`
32
+ },
33
+ children: c(t, r)
34
+ }, r);
35
+ })
36
+ })
37
+ });
38
+ }
39
+ //#endregion
40
+ export { a as VirtualList };
@@ -0,0 +1,8 @@
1
+ import './virtual-list.css';
2
+ var e = {
3
+ viewport: "_viewport_1wmsq_2",
4
+ canvas: "_canvas_1wmsq_14",
5
+ row: "_row_1wmsq_19"
6
+ };
7
+ //#endregion
8
+ export { e as default };
@@ -1,4 +1,2 @@
1
- "use client";
2
-
3
- import "@cascivo/core";
1
+ import "@cascivo/core/pure";
4
2
  import "react/jsx-runtime";
@@ -0,0 +1 @@
1
+ @layer cascivo.component{._root_11q00_2{inline-size:fit-content;position:relative}._column_11q00_7{block-size:var(--_column-height);scroll-snap-type:y mandatory;scrollbar-width:none;padding-block:var(--_pad);overflow-y:auto;-webkit-mask-image:linear-gradient(#0000 0%,#000 25% 75%,#0000 100%);mask-image:linear-gradient(#0000 0%,#000 25% 75%,#0000 100%)}._column_11q00_7::-webkit-scrollbar{display:none}._column_11q00_7:focus-visible{outline:var(--cascivo-ring-width) solid var(--cascivo-ring-color);outline-offset:2px;border-radius:var(--cascivo-radius-md)}._option_11q00_29{block-size:var(--_item-height);scroll-snap-align:center;padding-inline:var(--cascivo-space-4);color:var(--cascivo-color-text-muted);font-size:var(--cascivo-text-ui);white-space:nowrap;-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;display:flex}._option_11q00_29[aria-selected=true]{color:var(--cascivo-color-foreground);font-weight:var(--cascivo-font-semibold)}._band_11q00_48{block-size:var(--_item-height);border-block:1px solid var(--cascivo-border-subtle);pointer-events:none;position:absolute;inset-block-start:50%;inset-inline:0;translate:0 -50%}@media (prefers-reduced-motion:no-preference){._column_11q00_7{scroll-behavior:smooth}}}