@cascivo/react 0.14.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (513) hide show
  1. package/README.md +2 -2
  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 +1 -3
  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 +6 -6
  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 +120 -24
  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/inline-loading/inline-loading.js +1 -3
  105. package/dist/inline-loading/inline-loading.module.js +0 -2
  106. package/dist/input/input.js +11 -11
  107. package/dist/input/input.module.js +0 -2
  108. package/dist/input-group/input-group.js +1 -3
  109. package/dist/input-group/input-group.module.js +0 -2
  110. package/dist/item/item.js +1 -3
  111. package/dist/item/item.module.js +0 -2
  112. package/dist/join/join.js +0 -2
  113. package/dist/join/join.module.js +0 -2
  114. package/dist/kbd/kbd.js +1 -3
  115. package/dist/kbd/kbd.module.js +0 -2
  116. package/dist/label/label.js +1 -3
  117. package/dist/label/label.module.js +0 -2
  118. package/dist/layouts/src/auto-grid/auto-grid.js +1 -3
  119. package/dist/layouts/src/auto-grid/auto-grid.module.js +0 -2
  120. package/dist/layouts/src/center/center.js +1 -3
  121. package/dist/layouts/src/center/center.module.js +0 -2
  122. package/dist/layouts/src/columns/columns.js +1 -3
  123. package/dist/layouts/src/columns/columns.module.js +0 -2
  124. package/dist/layouts/src/flex/flex.js +1 -3
  125. package/dist/layouts/src/flex/flex.module.js +0 -2
  126. package/dist/layouts/src/grid/grid.js +1 -3
  127. package/dist/layouts/src/grid/grid.module.js +0 -2
  128. package/dist/layouts/src/page-header/page-header.css +1 -1
  129. package/dist/layouts/src/page-header/page-header.js +1 -3
  130. package/dist/layouts/src/page-header/page-header.module.js +6 -8
  131. package/dist/layouts/src/spacer/spacer.js +1 -3
  132. package/dist/layouts/src/spacer/spacer.module.js +0 -2
  133. package/dist/link/link.js +1 -3
  134. package/dist/link/link.module.js +0 -2
  135. package/dist/list/list.js +1 -3
  136. package/dist/list/list.module.js +0 -2
  137. package/dist/log-viewer/log-viewer.js +15 -15
  138. package/dist/log-viewer/log-viewer.module.js +0 -2
  139. package/dist/menu/menu.js +22 -21
  140. package/dist/menu/menu.module.js +0 -2
  141. package/dist/menu-button/menu-button.js +8 -8
  142. package/dist/menu-button/menu-button.module.js +0 -2
  143. package/dist/menubar/menubar.js +24 -24
  144. package/dist/menubar/menubar.module.js +0 -2
  145. package/dist/modal/modal.js +9 -9
  146. package/dist/modal/modal.module.js +0 -2
  147. package/dist/multi-select/multi-select.css +1 -1
  148. package/dist/multi-select/multi-select.js +8 -8
  149. package/dist/multi-select/multi-select.module.js +11 -13
  150. package/dist/native-select/native-select.js +1 -3
  151. package/dist/native-select/native-select.module.js +0 -2
  152. package/dist/navigation-menu/navigation-menu.js +26 -26
  153. package/dist/navigation-menu/navigation-menu.module.js +0 -2
  154. package/dist/node/accordion/accordion.js +81 -65
  155. package/dist/node/accordion/accordion.module.js +6 -9
  156. package/dist/node/action-sheet/action-sheet.js +11 -11
  157. package/dist/node/action-sheet/action-sheet.module.js +0 -2
  158. package/dist/node/alert/alert.module.js +0 -2
  159. package/dist/node/alert-dialog/alert-dialog.js +6 -6
  160. package/dist/node/alert-dialog/alert-dialog.module.js +7 -9
  161. package/dist/node/app-shell/app-shell.js +10 -10
  162. package/dist/node/app-shell/app-shell.module.js +0 -2
  163. package/dist/node/aspect-ratio/aspect-ratio.js +1 -3
  164. package/dist/node/aspect-ratio/aspect-ratio.module.js +0 -2
  165. package/dist/node/avatar/avatar.module.js +0 -2
  166. package/dist/node/avatar-group/avatar-group.js +1 -3
  167. package/dist/node/avatar-group/avatar-group.module.js +0 -2
  168. package/dist/node/badge/badge.js +1 -3
  169. package/dist/node/badge/badge.module.js +0 -2
  170. package/dist/node/blockquote/blockquote.js +1 -3
  171. package/dist/node/blockquote/blockquote.module.js +0 -2
  172. package/dist/node/bottom-sheet/bottom-sheet.js +12 -12
  173. package/dist/node/bottom-sheet/bottom-sheet.module.js +0 -2
  174. package/dist/node/breadcrumb/breadcrumb.module.js +0 -2
  175. package/dist/node/button/button.js +1 -3
  176. package/dist/node/button/button.module.js +0 -2
  177. package/dist/node/button-group/button-group.js +6 -6
  178. package/dist/node/button-group/button-group.module.js +0 -2
  179. package/dist/node/calendar/calendar.module.js +0 -2
  180. package/dist/node/card/card.js +1 -3
  181. package/dist/node/card/card.module.js +0 -2
  182. package/dist/node/carousel/carousel.js +9 -9
  183. package/dist/node/carousel/carousel.module.js +0 -2
  184. package/dist/node/chat-bubble/chat-bubble.js +0 -2
  185. package/dist/node/chat-bubble/chat-bubble.module.js +0 -2
  186. package/dist/node/checkbox/checkbox.js +10 -10
  187. package/dist/node/checkbox/checkbox.module.js +0 -2
  188. package/dist/node/checkbox-card/checkbox-card.js +5 -5
  189. package/dist/node/checkbox-card/checkbox-card.module.js +0 -2
  190. package/dist/node/code/code.js +1 -3
  191. package/dist/node/code/code.module.js +0 -2
  192. package/dist/node/code-snippet/code-snippet.module.js +0 -2
  193. package/dist/node/code-snippet/highlight.js +0 -2
  194. package/dist/node/collapsible/collapsible.js +36 -31
  195. package/dist/node/collapsible/collapsible.module.js +3 -6
  196. package/dist/node/color-picker/color-picker.js +7 -7
  197. package/dist/node/color-picker/color-picker.module.js +0 -2
  198. package/dist/node/combobox/combobox.js +11 -11
  199. package/dist/node/combobox/combobox.module.js +15 -17
  200. package/dist/node/command-menu/command-menu.js +113 -113
  201. package/dist/node/command-menu/command-menu.module.js +0 -2
  202. package/dist/node/comparison/comparison.js +5 -5
  203. package/dist/node/comparison/comparison.module.js +0 -2
  204. package/dist/node/contained-list/contained-list.module.js +0 -2
  205. package/dist/node/context-menu/context-menu.js +6 -6
  206. package/dist/node/context-menu/context-menu.module.js +0 -2
  207. package/dist/node/copy-button/copy-button.js +7 -7
  208. package/dist/node/copy-button/copy-button.module.js +0 -2
  209. package/dist/node/data-list/data-list.js +1 -3
  210. package/dist/node/data-list/data-list.module.js +0 -2
  211. package/dist/node/data-table/data-table.js +164 -164
  212. package/dist/node/data-table/data-table.module.js +29 -31
  213. package/dist/node/date-picker/date-picker.js +24 -24
  214. package/dist/node/date-picker/date-picker.module.js +19 -21
  215. package/dist/node/date-range-picker/date-range-picker.js +30 -30
  216. package/dist/node/date-range-picker/date-range-picker.module.js +0 -2
  217. package/dist/node/dock/dock.module.js +0 -2
  218. package/dist/node/drawer/drawer.js +11 -11
  219. package/dist/node/drawer/drawer.module.js +0 -2
  220. package/dist/node/dropdown/dropdown.js +14 -14
  221. package/dist/node/dropdown/dropdown.module.js +0 -2
  222. package/dist/node/editable/editable.js +8 -8
  223. package/dist/node/editable/editable.module.js +7 -9
  224. package/dist/node/empty-state/empty-state.js +1 -3
  225. package/dist/node/empty-state/empty-state.module.js +0 -2
  226. package/dist/node/fab/fab.js +12 -12
  227. package/dist/node/fab/fab.module.js +0 -2
  228. package/dist/node/field/field.js +1 -3
  229. package/dist/node/field/field.module.js +0 -2
  230. package/dist/node/file-uploader/file-uploader.js +5 -5
  231. package/dist/node/file-uploader/file-uploader.module.js +14 -16
  232. package/dist/node/filter/filter.module.js +0 -2
  233. package/dist/node/form/form.module.js +0 -2
  234. package/dist/node/header/header.module.js +0 -2
  235. package/dist/node/header-panel/header-panel.js +8 -8
  236. package/dist/node/header-panel/header-panel.module.js +0 -2
  237. package/dist/node/heading/heading.js +1 -3
  238. package/dist/node/heading/heading.module.js +0 -2
  239. package/dist/node/hover-card/hover-card.js +18 -18
  240. package/dist/node/hover-card/hover-card.module.js +0 -2
  241. package/dist/node/icon-button/icon-button.js +1 -3
  242. package/dist/node/icon-button/icon-button.module.js +0 -2
  243. package/dist/node/image/image.module.js +0 -2
  244. package/dist/node/index.js +0 -1
  245. package/dist/node/indicator/indicator.js +0 -2
  246. package/dist/node/indicator/indicator.module.js +0 -2
  247. package/dist/node/inline-loading/inline-loading.js +1 -3
  248. package/dist/node/inline-loading/inline-loading.module.js +0 -2
  249. package/dist/node/input/input.js +11 -11
  250. package/dist/node/input/input.module.js +0 -2
  251. package/dist/node/input-group/input-group.js +1 -3
  252. package/dist/node/input-group/input-group.module.js +0 -2
  253. package/dist/node/item/item.js +1 -3
  254. package/dist/node/item/item.module.js +0 -2
  255. package/dist/node/join/join.js +0 -2
  256. package/dist/node/join/join.module.js +0 -2
  257. package/dist/node/kbd/kbd.js +1 -3
  258. package/dist/node/kbd/kbd.module.js +0 -2
  259. package/dist/node/label/label.js +1 -3
  260. package/dist/node/label/label.module.js +0 -2
  261. package/dist/node/layouts/src/auto-grid/auto-grid.js +1 -3
  262. package/dist/node/layouts/src/auto-grid/auto-grid.module.js +0 -2
  263. package/dist/node/layouts/src/center/center.js +1 -3
  264. package/dist/node/layouts/src/center/center.module.js +0 -2
  265. package/dist/node/layouts/src/columns/columns.js +1 -3
  266. package/dist/node/layouts/src/columns/columns.module.js +0 -2
  267. package/dist/node/layouts/src/flex/flex.js +1 -3
  268. package/dist/node/layouts/src/flex/flex.module.js +0 -2
  269. package/dist/node/layouts/src/grid/grid.js +1 -3
  270. package/dist/node/layouts/src/grid/grid.module.js +0 -2
  271. package/dist/node/layouts/src/page-header/page-header.js +1 -3
  272. package/dist/node/layouts/src/page-header/page-header.module.js +6 -8
  273. package/dist/node/layouts/src/spacer/spacer.js +1 -3
  274. package/dist/node/layouts/src/spacer/spacer.module.js +0 -2
  275. package/dist/node/link/link.js +1 -3
  276. package/dist/node/link/link.module.js +0 -2
  277. package/dist/node/list/list.js +1 -3
  278. package/dist/node/list/list.module.js +0 -2
  279. package/dist/node/log-viewer/log-viewer.js +15 -15
  280. package/dist/node/log-viewer/log-viewer.module.js +0 -2
  281. package/dist/node/menu/menu.js +22 -21
  282. package/dist/node/menu/menu.module.js +0 -2
  283. package/dist/node/menu-button/menu-button.js +8 -8
  284. package/dist/node/menu-button/menu-button.module.js +0 -2
  285. package/dist/node/menubar/menubar.js +24 -24
  286. package/dist/node/menubar/menubar.module.js +0 -2
  287. package/dist/node/modal/modal.js +9 -9
  288. package/dist/node/modal/modal.module.js +0 -2
  289. package/dist/node/multi-select/multi-select.js +8 -8
  290. package/dist/node/multi-select/multi-select.module.js +11 -13
  291. package/dist/node/native-select/native-select.js +1 -3
  292. package/dist/node/native-select/native-select.module.js +0 -2
  293. package/dist/node/navigation-menu/navigation-menu.js +26 -26
  294. package/dist/node/navigation-menu/navigation-menu.module.js +0 -2
  295. package/dist/node/notification/notification.js +6 -6
  296. package/dist/node/notification/notification.module.js +0 -2
  297. package/dist/node/number-input/number-input.js +7 -7
  298. package/dist/node/number-input/number-input.module.js +0 -2
  299. package/dist/node/otp-input/otp-input.js +5 -5
  300. package/dist/node/otp-input/otp-input.module.js +0 -2
  301. package/dist/node/overflow-menu/overflow-menu.module.js +0 -2
  302. package/dist/node/pagination/pagination.module.js +0 -2
  303. package/dist/node/password-input/password-input.js +8 -8
  304. package/dist/node/password-input/password-input.module.js +0 -2
  305. package/dist/node/popover/popover.js +12 -12
  306. package/dist/node/popover/popover.module.js +0 -2
  307. package/dist/node/popover/use-popover.js +8 -10
  308. package/dist/node/progress/progress.js +0 -2
  309. package/dist/node/progress/progress.module.js +0 -2
  310. package/dist/node/progress-bar/progress-bar.js +1 -3
  311. package/dist/node/progress-bar/progress-bar.module.js +0 -2
  312. package/dist/node/progress-circle/progress-circle.js +1 -3
  313. package/dist/node/progress-circle/progress-circle.module.js +0 -2
  314. package/dist/node/progress-indicator/progress-indicator.js +1 -3
  315. package/dist/node/progress-indicator/progress-indicator.module.js +0 -2
  316. package/dist/node/prose/prose.js +1 -3
  317. package/dist/node/prose/prose.module.js +0 -2
  318. package/dist/node/pull-to-refresh/pull-to-refresh.js +8 -8
  319. package/dist/node/pull-to-refresh/pull-to-refresh.module.js +0 -2
  320. package/dist/node/qr-code/encode.js +0 -2
  321. package/dist/node/qr-code/qr-code.module.js +0 -2
  322. package/dist/node/radial-progress/radial-progress.js +9 -10
  323. package/dist/node/radial-progress/radial-progress.module.js +0 -2
  324. package/dist/node/radio/radio.js +1 -3
  325. package/dist/node/radio/radio.module.js +0 -2
  326. package/dist/node/radio-card/radio-card.js +8 -8
  327. package/dist/node/radio-card/radio-card.module.js +0 -2
  328. package/dist/node/rating-group/rating-group.module.js +0 -2
  329. package/dist/node/react/src/index.js +0 -2
  330. package/dist/node/react/src/theme.js +10 -10
  331. package/dist/node/relative-time/relative-time.module.js +0 -2
  332. package/dist/node/resizable/resizable.js +7 -7
  333. package/dist/node/resizable/resizable.module.js +0 -2
  334. package/dist/node/scroll-area/scroll-area.js +6 -6
  335. package/dist/node/scroll-area/scroll-area.module.js +0 -2
  336. package/dist/node/search/search.js +9 -9
  337. package/dist/node/search/search.module.js +0 -2
  338. package/dist/node/segmented-control/segmented-control.module.js +0 -2
  339. package/dist/node/select/select.js +11 -11
  340. package/dist/node/select/select.module.js +0 -2
  341. package/dist/node/separator/separator.js +1 -3
  342. package/dist/node/separator/separator.module.js +0 -2
  343. package/dist/node/sheet/sheet.js +4 -4
  344. package/dist/node/sheet/sheet.module.js +0 -2
  345. package/dist/node/shell-header/shell-header.module.js +0 -2
  346. package/dist/node/side-nav/side-nav.js +37 -37
  347. package/dist/node/side-nav/side-nav.module.js +0 -2
  348. package/dist/node/skeleton/skeleton.js +1 -3
  349. package/dist/node/skeleton/skeleton.module.js +0 -2
  350. package/dist/node/skip-nav/skip-nav.js +6 -6
  351. package/dist/node/skip-nav/skip-nav.module.js +0 -2
  352. package/dist/node/slider/slider.js +1 -3
  353. package/dist/node/slider/slider.module.js +0 -2
  354. package/dist/node/spinner/spinner.module.js +0 -2
  355. package/dist/node/stack/stack.js +0 -2
  356. package/dist/node/stack/stack.module.js +0 -2
  357. package/dist/node/stat/stat.js +22 -23
  358. package/dist/node/stat/stat.module.js +7 -9
  359. package/dist/node/status/status.js +1 -3
  360. package/dist/node/status/status.module.js +0 -2
  361. package/dist/node/steps/steps.module.js +0 -2
  362. package/dist/node/storage/src/drivers.js +0 -2
  363. package/dist/node/storage/src/persisted-signal.js +0 -2
  364. package/dist/node/structured-list/structured-list.js +10 -10
  365. package/dist/node/structured-list/structured-list.module.js +0 -2
  366. package/dist/node/swap/swap.js +10 -11
  367. package/dist/node/swap/swap.module.js +0 -2
  368. package/dist/node/swipe-item/swipe-item.module.js +0 -2
  369. package/dist/node/switcher/switcher.module.js +0 -2
  370. package/dist/node/tabs/tabs.js +38 -38
  371. package/dist/node/tabs/tabs.module.js +0 -2
  372. package/dist/node/tag/tag.module.js +0 -2
  373. package/dist/node/tags-input/tags-input.js +6 -6
  374. package/dist/node/tags-input/tags-input.module.js +4 -6
  375. package/dist/node/text/text.js +1 -3
  376. package/dist/node/text/text.module.js +0 -2
  377. package/dist/node/textarea/textarea.js +11 -11
  378. package/dist/node/textarea/textarea.module.js +0 -2
  379. package/dist/node/tile/tile.module.js +0 -2
  380. package/dist/node/time-picker/time-picker.js +9 -9
  381. package/dist/node/time-picker/time-picker.module.js +5 -7
  382. package/dist/node/timeline/timeline.js +32 -31
  383. package/dist/node/timeline/timeline.module.js +7 -9
  384. package/dist/node/toast/toast.js +15 -15
  385. package/dist/node/toast/toast.module.js +0 -2
  386. package/dist/node/toc/toc.js +7 -7
  387. package/dist/node/toc/toc.module.js +0 -2
  388. package/dist/node/toggle/toggle.js +7 -7
  389. package/dist/node/toggle/toggle.module.js +0 -2
  390. package/dist/node/toggle-group/toggle-group.js +25 -25
  391. package/dist/node/toggle-group/toggle-group.module.js +0 -2
  392. package/dist/node/toggletip/toggletip.js +7 -7
  393. package/dist/node/toggletip/toggletip.module.js +0 -2
  394. package/dist/node/tooltip/tooltip.js +9 -9
  395. package/dist/node/tooltip/tooltip.module.js +0 -2
  396. package/dist/node/tree-view/tree-view.js +47 -47
  397. package/dist/node/tree-view/tree-view.module.js +0 -2
  398. package/dist/node/user/user.js +1 -3
  399. package/dist/node/user/user.module.js +0 -2
  400. package/dist/node/visually-hidden/visually-hidden.js +1 -3
  401. package/dist/notification/notification.js +6 -6
  402. package/dist/notification/notification.module.js +0 -2
  403. package/dist/number-input/number-input.js +7 -7
  404. package/dist/number-input/number-input.module.js +0 -2
  405. package/dist/otp-input/otp-input.js +5 -5
  406. package/dist/otp-input/otp-input.module.js +0 -2
  407. package/dist/overflow-menu/overflow-menu.module.js +0 -2
  408. package/dist/pagination/pagination.module.js +0 -2
  409. package/dist/password-input/password-input.js +8 -8
  410. package/dist/password-input/password-input.module.js +0 -2
  411. package/dist/popover/popover.js +12 -12
  412. package/dist/popover/popover.module.js +0 -2
  413. package/dist/popover/use-popover.js +8 -10
  414. package/dist/progress/progress.js +0 -2
  415. package/dist/progress/progress.module.js +0 -2
  416. package/dist/progress-bar/progress-bar.js +1 -3
  417. package/dist/progress-bar/progress-bar.module.js +0 -2
  418. package/dist/progress-circle/progress-circle.js +1 -3
  419. package/dist/progress-circle/progress-circle.module.js +0 -2
  420. package/dist/progress-indicator/progress-indicator.js +1 -3
  421. package/dist/progress-indicator/progress-indicator.module.js +0 -2
  422. package/dist/prose/prose.js +1 -3
  423. package/dist/prose/prose.module.js +0 -2
  424. package/dist/pull-to-refresh/pull-to-refresh.js +8 -8
  425. package/dist/pull-to-refresh/pull-to-refresh.module.js +0 -2
  426. package/dist/qr-code/encode.js +0 -2
  427. package/dist/qr-code/qr-code.module.js +0 -2
  428. package/dist/radial-progress/radial-progress.js +9 -10
  429. package/dist/radial-progress/radial-progress.module.js +0 -2
  430. package/dist/radio/radio.js +1 -3
  431. package/dist/radio/radio.module.js +0 -2
  432. package/dist/radio-card/radio-card.js +8 -8
  433. package/dist/radio-card/radio-card.module.js +0 -2
  434. package/dist/rating-group/rating-group.module.js +0 -2
  435. package/dist/react/src/index.js +0 -2
  436. package/dist/react/src/theme.js +10 -10
  437. package/dist/relative-time/relative-time.module.js +0 -2
  438. package/dist/resizable/resizable.js +7 -7
  439. package/dist/resizable/resizable.module.js +0 -2
  440. package/dist/scroll-area/scroll-area.js +6 -6
  441. package/dist/scroll-area/scroll-area.module.js +0 -2
  442. package/dist/search/search.js +9 -9
  443. package/dist/search/search.module.js +0 -2
  444. package/dist/segmented-control/segmented-control.module.js +0 -2
  445. package/dist/select/select.js +11 -11
  446. package/dist/select/select.module.js +0 -2
  447. package/dist/separator/separator.js +1 -3
  448. package/dist/separator/separator.module.js +0 -2
  449. package/dist/sheet/sheet.js +4 -4
  450. package/dist/sheet/sheet.module.js +0 -2
  451. package/dist/shell-header/shell-header.module.js +0 -2
  452. package/dist/side-nav/side-nav.js +37 -37
  453. package/dist/side-nav/side-nav.module.js +0 -2
  454. package/dist/skeleton/skeleton.js +1 -3
  455. package/dist/skeleton/skeleton.module.js +0 -2
  456. package/dist/skip-nav/skip-nav.js +6 -6
  457. package/dist/skip-nav/skip-nav.module.js +0 -2
  458. package/dist/slider/slider.js +1 -3
  459. package/dist/slider/slider.module.js +0 -2
  460. package/dist/spinner/spinner.module.js +0 -2
  461. package/dist/stack/stack.js +0 -2
  462. package/dist/stack/stack.module.js +0 -2
  463. package/dist/stat/stat.css +1 -1
  464. package/dist/stat/stat.js +22 -23
  465. package/dist/stat/stat.module.js +7 -9
  466. package/dist/status/status.js +1 -3
  467. package/dist/status/status.module.js +0 -2
  468. package/dist/steps/steps.module.js +0 -2
  469. package/dist/storage/src/drivers.js +0 -2
  470. package/dist/storage/src/persisted-signal.js +0 -2
  471. package/dist/structured-list/structured-list.js +10 -10
  472. package/dist/structured-list/structured-list.module.js +0 -2
  473. package/dist/styles.css +14 -14
  474. package/dist/swap/swap.js +10 -11
  475. package/dist/swap/swap.module.js +0 -2
  476. package/dist/swipe-item/swipe-item.module.js +0 -2
  477. package/dist/switcher/switcher.module.js +0 -2
  478. package/dist/tabs/tabs.js +38 -38
  479. package/dist/tabs/tabs.module.js +0 -2
  480. package/dist/tag/tag.module.js +0 -2
  481. package/dist/tags-input/tags-input.css +1 -1
  482. package/dist/tags-input/tags-input.js +6 -6
  483. package/dist/tags-input/tags-input.module.js +4 -6
  484. package/dist/text/text.js +1 -3
  485. package/dist/text/text.module.js +0 -2
  486. package/dist/textarea/textarea.js +11 -11
  487. package/dist/textarea/textarea.module.js +0 -2
  488. package/dist/tile/tile.module.js +0 -2
  489. package/dist/time-picker/time-picker.css +1 -1
  490. package/dist/time-picker/time-picker.js +9 -9
  491. package/dist/time-picker/time-picker.module.js +5 -7
  492. package/dist/timeline/timeline.css +1 -1
  493. package/dist/timeline/timeline.js +32 -31
  494. package/dist/timeline/timeline.module.js +7 -9
  495. package/dist/toast/toast.js +15 -15
  496. package/dist/toast/toast.module.js +0 -2
  497. package/dist/toc/toc.js +7 -7
  498. package/dist/toc/toc.module.js +0 -2
  499. package/dist/toggle/toggle.js +7 -7
  500. package/dist/toggle/toggle.module.js +0 -2
  501. package/dist/toggle-group/toggle-group.js +25 -25
  502. package/dist/toggle-group/toggle-group.module.js +0 -2
  503. package/dist/toggletip/toggletip.js +7 -7
  504. package/dist/toggletip/toggletip.module.js +0 -2
  505. package/dist/tooltip/tooltip.js +9 -9
  506. package/dist/tooltip/tooltip.module.js +0 -2
  507. package/dist/tree-view/tree-view.js +47 -47
  508. package/dist/tree-view/tree-view.module.js +0 -2
  509. package/dist/user/user.js +1 -3
  510. package/dist/user/user.module.js +0 -2
  511. package/dist/visually-hidden/visually-hidden.js +1 -3
  512. package/package.json +4 -4
  513. package/readme.body.md +2 -2
@@ -3,12 +3,12 @@
3
3
  import { Spinner as e } from "../spinner/spinner.js";
4
4
  import { Kbd as t } from "../kbd/kbd.js";
5
5
  import n from "./command-menu.module.js";
6
- import { batch as r, cn as i, focusElement as a, useEffectPropSignal as o, useSignal as s, useSignalEffect as c, useSignals as ee } from "@cascivo/core";
7
- import { useId as te, useRef as l } from "react";
8
- import { builtin as u, t as d } from "@cascivo/i18n";
9
- import { jsx as f, jsxs as p } from "react/jsx-runtime";
6
+ import { useId as r, useRef as i } from "react";
7
+ import { batch as a, cn as o, focusElement as s, useEffectPropSignal as c, useSignal as l, useSignalEffect as u, useSignals as ee } from "@cascivo/core";
8
+ import { builtin as d, t as f } from "@cascivo/i18n";
9
+ import { jsx as p, jsxs as m } from "react/jsx-runtime";
10
10
  //#region ../components/src/command-menu/command-menu.tsx
11
- function m(e, t) {
11
+ function h(e, t) {
12
12
  if (e.length === 0) return {
13
13
  score: 1,
14
14
  indices: []
@@ -25,21 +25,21 @@ function m(e, t) {
25
25
  indices: s
26
26
  } : null;
27
27
  }
28
- function h(e, t) {
29
- return m(e, t)?.score ?? 0;
30
- }
31
28
  function g(e, t) {
32
- let n = h(e, t.label);
29
+ return h(e, t)?.score ?? 0;
30
+ }
31
+ function _(e, t) {
32
+ let n = g(e, t.label);
33
33
  for (let r of t.keywords ?? []) {
34
- let t = h(e, r);
34
+ let t = g(e, r);
35
35
  t > n && (n = t);
36
36
  }
37
37
  return n;
38
38
  }
39
- function _(e, t) {
39
+ function v(e, t) {
40
40
  if (t.length === 0) return e;
41
41
  let r = new Set(t), i = [], a = "", o = r.has(0), s = (e) => {
42
- a !== "" && (i.push(o ? /* @__PURE__ */ f("mark", {
42
+ a !== "" && (i.push(o ? /* @__PURE__ */ p("mark", {
43
43
  className: n.match,
44
44
  children: a
45
45
  }, e) : a), a = "");
@@ -50,7 +50,7 @@ function _(e, t) {
50
50
  }
51
51
  return s(e.length), i;
52
52
  }
53
- function v(e, t) {
53
+ function y(e, t) {
54
54
  for (let n of t) {
55
55
  let t = n.prefix;
56
56
  if (t) {
@@ -66,41 +66,41 @@ function v(e, t) {
66
66
  }
67
67
  return null;
68
68
  }
69
- function y({ open: h, onOpenChange: y, groups: ne, placeholder: re, emptyLabel: ie, hotkey: b = !0, label: x, loading: S = !1, onQueryChange: C, scopes: w = [], className: ae }) {
69
+ function b({ open: g, onOpenChange: b, groups: te, placeholder: ne, emptyLabel: re, hotkey: x = !0, label: S, loading: C = !1, onQueryChange: w, scopes: T = [], className: ie }) {
70
70
  ee();
71
- let T = x ?? d(u.commandMenu.label), E = ie ?? d(u.commandMenu.empty), D = te(), O = `${D}-listbox`, k = l(null), A = l(null), j = l([]), M = l(y);
72
- M.current = y;
73
- let N = l(C);
74
- N.current = C;
75
- let P = o(h), oe = o(b), F = s(""), I = s(0), L = s([]), R = s(null), z = L.value.at(-1)?.groups ?? ne, B = re ?? L.value.at(-1)?.placeholder ?? d(u.commandMenu.placeholder), V = w.find((e) => e.id === R.value) ?? null, H = z.filter((e) => !R.value || !e.scope || e.scope === R.value).map((e) => ({
71
+ let E = S ?? f(d.commandMenu.label), ae = re ?? f(d.commandMenu.empty), D = r(), O = `${D}-listbox`, k = i(null), A = i(null), j = i([]), M = i(b);
72
+ M.current = b;
73
+ let N = i(w);
74
+ N.current = w;
75
+ let P = c(g), F = c(x), I = l(""), L = l(0), R = l([]), z = l(null), B = R.value.at(-1)?.groups ?? te, oe = ne ?? R.value.at(-1)?.placeholder ?? f(d.commandMenu.placeholder), V = T.find((e) => e.id === z.value) ?? null, H = B.filter((e) => !z.value || !e.scope || e.scope === z.value).map((e) => ({
76
76
  heading: e.heading,
77
77
  items: e.items.map((e) => ({
78
78
  item: e,
79
- score: g(F.value, e)
79
+ score: _(I.value, e)
80
80
  })).filter(({ score: e }) => e > 0).sort((e, t) => t.score - e.score).map(({ item: e }) => ({
81
81
  item: e,
82
- indices: m(F.value, e.label)?.indices ?? []
82
+ indices: h(I.value, e.label)?.indices ?? []
83
83
  }))
84
- })).filter((e) => e.items.length > 0), U = H.flatMap((e) => e.items.map((e) => e.item)), W = U.flatMap((e, t) => e.disabled ? [] : [t]), G = W.includes(I.value) ? I.value : W[0] ?? -1, K = (e) => `${D}-option-${e}`;
85
- c(() => {
84
+ })).filter((e) => e.items.length > 0), U = H.flatMap((e) => e.items.map((e) => e.item)), W = U.flatMap((e, t) => e.disabled ? [] : [t]), G = W.includes(L.value) ? L.value : W[0] ?? -1, K = (e) => `${D}-option-${e}`;
85
+ u(() => {
86
86
  let e = k.current;
87
- e && (P.value ? e.open || (r(() => {
88
- F.value = "", I.value = 0, L.value = [], R.value = null;
89
- }), typeof e.showModal == "function" && e.showModal(), a(A.current)) : e.open && (L.value = [], e.close()));
90
- }), c(() => {
87
+ e && (P.value ? e.open || (a(() => {
88
+ I.value = "", L.value = 0, R.value = [], z.value = null;
89
+ }), typeof e.showModal == "function" && e.showModal(), s(A.current)) : e.open && (R.value = [], e.close()));
90
+ }), u(() => {
91
91
  let e = k.current;
92
92
  if (!e) return;
93
93
  let t = () => M.current(!1);
94
94
  return e.addEventListener("close", t), () => e.removeEventListener("close", t);
95
- }), c(() => {
96
- if (!oe.value) return;
95
+ }), u(() => {
96
+ if (!F.value) return;
97
97
  let e = (e) => {
98
98
  (e.metaKey || e.ctrlKey) && e.key.toLowerCase() === "k" && (e.preventDefault(), M.current(!P.value));
99
99
  };
100
100
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
101
101
  });
102
102
  let q = (e) => {
103
- I.value = e;
103
+ L.value = e;
104
104
  let t = j.current[e];
105
105
  t && typeof t.scrollIntoView == "function" && t.scrollIntoView({ block: "nearest" });
106
106
  }, J = (e) => {
@@ -108,13 +108,13 @@ function y({ open: h, onOpenChange: y, groups: ne, placeholder: re, emptyLabel:
108
108
  let t = W[(W.indexOf(G) + e + W.length) % W.length];
109
109
  t !== void 0 && q(t);
110
110
  }, Y = (e) => {
111
- e.onSelect(), y(!1);
111
+ e.onSelect(), b(!1);
112
112
  }, X = (e, t) => {
113
113
  if (!(!e || e.disabled)) {
114
114
  if (e.page) {
115
115
  if (t === "secondary") return;
116
- r(() => {
117
- L.value = [...L.value, e.page], F.value = "", I.value = 0;
116
+ a(() => {
117
+ R.value = [...R.value, e.page], I.value = "", L.value = 0;
118
118
  });
119
119
  return;
120
120
  }
@@ -123,21 +123,21 @@ function y({ open: h, onOpenChange: y, groups: ne, placeholder: re, emptyLabel:
123
123
  n && Y(n);
124
124
  return;
125
125
  }
126
- t !== "secondary" && (e.onSelect?.(), y(!1));
126
+ t !== "secondary" && (e.onSelect?.(), b(!1));
127
127
  }
128
128
  }, se = (e) => {
129
- if (w.length === 0) return;
130
- let t = [null, ...w.map((e) => e.id)], n = t[(t.indexOf(R.value) + e + t.length) % t.length];
131
- r(() => {
132
- R.value = n ?? null, I.value = 0;
129
+ if (T.length === 0) return;
130
+ let t = [null, ...T.map((e) => e.id)], n = t[(t.indexOf(z.value) + e + t.length) % t.length];
131
+ a(() => {
132
+ z.value = n ?? null, L.value = 0;
133
133
  });
134
134
  }, Z = () => {
135
- r(() => {
136
- R.value = null, I.value = 0;
137
- }), a(A.current);
135
+ a(() => {
136
+ z.value = null, L.value = 0;
137
+ }), s(A.current);
138
138
  }, Q = () => {
139
- r(() => {
140
- L.value = L.value.slice(0, -1), F.value = "", I.value = 0;
139
+ a(() => {
140
+ R.value = R.value.slice(0, -1), I.value = "", L.value = 0;
141
141
  });
142
142
  }, ce = (e) => {
143
143
  switch (e.key) {
@@ -148,7 +148,7 @@ function y({ open: h, onOpenChange: y, groups: ne, placeholder: re, emptyLabel:
148
148
  e.preventDefault(), J(-1);
149
149
  break;
150
150
  case "Tab":
151
- w.length > 0 && (e.preventDefault(), se(e.shiftKey ? -1 : 1));
151
+ T.length > 0 && (e.preventDefault(), se(e.shiftKey ? -1 : 1));
152
152
  break;
153
153
  case "Home":
154
154
  e.preventDefault(), W[0] !== void 0 && q(W[0]);
@@ -163,27 +163,27 @@ function y({ open: h, onOpenChange: y, groups: ne, placeholder: re, emptyLabel:
163
163
  e.preventDefault(), G >= 0 && X(U[G], e.metaKey || e.ctrlKey ? "secondary" : "primary");
164
164
  break;
165
165
  case "Backspace":
166
- F.value === "" && (L.value.length > 0 ? (e.preventDefault(), Q()) : R.value && (e.preventDefault(), Z()));
166
+ I.value === "" && (R.value.length > 0 ? (e.preventDefault(), Q()) : z.value && (e.preventDefault(), Z()));
167
167
  break;
168
168
  }
169
169
  }, le = (e) => {
170
- e.key === "Escape" && (e.preventDefault(), L.value.length > 0 ? Q() : k.current?.close());
170
+ e.key === "Escape" && (e.preventDefault(), R.value.length > 0 ? Q() : k.current?.close());
171
171
  }, ue = (e) => {
172
172
  e.target === k.current && k.current?.close();
173
173
  }, $ = -1;
174
- return /* @__PURE__ */ f("dialog", {
174
+ return /* @__PURE__ */ p("dialog", {
175
175
  ref: k,
176
- "aria-label": T,
177
- className: i(n.dialog, ae),
176
+ "aria-label": E,
177
+ className: o(n.dialog, ie),
178
178
  onClick: ue,
179
179
  onKeyDown: le,
180
- children: /* @__PURE__ */ p("div", {
180
+ children: /* @__PURE__ */ m("div", {
181
181
  className: n.panel,
182
182
  children: [
183
- /* @__PURE__ */ p("div", {
183
+ /* @__PURE__ */ m("div", {
184
184
  className: n.search,
185
185
  children: [
186
- /* @__PURE__ */ p("svg", {
186
+ /* @__PURE__ */ m("svg", {
187
187
  className: n.searchIcon,
188
188
  "aria-hidden": "true",
189
189
  viewBox: "0 0 16 16",
@@ -193,30 +193,30 @@ function y({ open: h, onOpenChange: y, groups: ne, placeholder: re, emptyLabel:
193
193
  stroke: "currentColor",
194
194
  strokeWidth: "1.5",
195
195
  strokeLinecap: "round",
196
- children: [/* @__PURE__ */ f("circle", {
196
+ children: [/* @__PURE__ */ p("circle", {
197
197
  cx: "7",
198
198
  cy: "7",
199
199
  r: "4.5"
200
- }), /* @__PURE__ */ f("line", {
200
+ }), /* @__PURE__ */ p("line", {
201
201
  x1: "10.5",
202
202
  y1: "10.5",
203
203
  x2: "14",
204
204
  y2: "14"
205
205
  })]
206
206
  }),
207
- V && /* @__PURE__ */ p("span", {
207
+ V && /* @__PURE__ */ m("span", {
208
208
  className: n.scopeChip,
209
- children: [V.label, /* @__PURE__ */ f("button", {
209
+ children: [V.label, /* @__PURE__ */ p("button", {
210
210
  type: "button",
211
211
  className: n.scopeClear,
212
- "aria-label": d(u.commandMenu.clearScope),
212
+ "aria-label": f(d.commandMenu.clearScope),
213
213
  onClick: Z,
214
- children: /* @__PURE__ */ f("svg", {
214
+ children: /* @__PURE__ */ p("svg", {
215
215
  viewBox: "0 0 16 16",
216
216
  width: "12",
217
217
  height: "12",
218
218
  "aria-hidden": "true",
219
- children: /* @__PURE__ */ f("path", {
219
+ children: /* @__PURE__ */ p("path", {
220
220
  d: "M4 4l8 8M12 4l-8 8",
221
221
  fill: "none",
222
222
  stroke: "currentColor",
@@ -226,7 +226,7 @@ function y({ open: h, onOpenChange: y, groups: ne, placeholder: re, emptyLabel:
226
226
  })
227
227
  })]
228
228
  }),
229
- /* @__PURE__ */ f("input", {
229
+ /* @__PURE__ */ p("input", {
230
230
  ref: A,
231
231
  type: "text",
232
232
  role: "combobox",
@@ -234,67 +234,67 @@ function y({ open: h, onOpenChange: y, groups: ne, placeholder: re, emptyLabel:
234
234
  "aria-controls": O,
235
235
  "aria-activedescendant": G >= 0 ? K(G) : void 0,
236
236
  "aria-autocomplete": "list",
237
- "aria-label": T,
237
+ "aria-label": E,
238
238
  autoComplete: "off",
239
239
  spellCheck: !1,
240
240
  className: n.input,
241
- placeholder: B,
242
- value: F.value,
241
+ placeholder: oe,
242
+ value: I.value,
243
243
  onChange: (e) => {
244
244
  let t = e.target.value;
245
- if (!R.value && w.length > 0) {
246
- let e = v(t, w);
247
- e && (R.value = e.scope.id, t = e.rest);
245
+ if (!z.value && T.length > 0) {
246
+ let e = y(t, T);
247
+ e && (z.value = e.scope.id, t = e.rest);
248
248
  }
249
- F.value = t, I.value = 0, N.current?.(t);
249
+ I.value = t, L.value = 0, N.current?.(t);
250
250
  },
251
251
  onKeyDown: ce
252
252
  })
253
253
  ]
254
254
  }),
255
- w.length > 0 && /* @__PURE__ */ p("div", {
255
+ T.length > 0 && /* @__PURE__ */ m("div", {
256
256
  className: n.scopes,
257
- children: [/* @__PURE__ */ f("span", {
257
+ children: [/* @__PURE__ */ p("span", {
258
258
  className: n.scopesLabel,
259
- children: d(u.commandMenu.scopeLabel)
260
- }), w.map((e) => /* @__PURE__ */ p("button", {
259
+ children: f(d.commandMenu.scopeLabel)
260
+ }), T.map((e) => /* @__PURE__ */ m("button", {
261
261
  type: "button",
262
262
  className: n.scopePill,
263
- "data-active": e.id === R.value || void 0,
263
+ "data-active": e.id === z.value || void 0,
264
264
  onClick: () => {
265
- r(() => {
266
- R.value = R.value === e.id ? null : e.id, I.value = 0;
267
- }), a(A.current);
265
+ a(() => {
266
+ z.value = z.value === e.id ? null : e.id, L.value = 0;
267
+ }), s(A.current);
268
268
  },
269
- children: [e.prefix && /* @__PURE__ */ f("span", {
269
+ children: [e.prefix && /* @__PURE__ */ p("span", {
270
270
  className: n.scopePrefix,
271
271
  children: e.prefix
272
272
  }), e.label]
273
273
  }, e.id))]
274
274
  }),
275
- /* @__PURE__ */ p("div", {
275
+ /* @__PURE__ */ m("div", {
276
276
  className: n.list,
277
- children: [/* @__PURE__ */ f("div", {
277
+ children: [/* @__PURE__ */ p("div", {
278
278
  role: "listbox",
279
279
  id: O,
280
- "aria-label": x,
280
+ "aria-label": S,
281
281
  tabIndex: 0,
282
- children: H.map((e, r) => /* @__PURE__ */ p("div", {
282
+ children: H.map((e, r) => /* @__PURE__ */ m("div", {
283
283
  role: "group",
284
284
  "aria-label": e.heading,
285
285
  className: n.group,
286
- children: [e.heading && /* @__PURE__ */ p("div", {
286
+ children: [e.heading && /* @__PURE__ */ m("div", {
287
287
  className: n.heading,
288
288
  "aria-hidden": "true",
289
- children: [/* @__PURE__ */ f("span", { children: e.heading }), F.value !== "" && /* @__PURE__ */ f("span", {
289
+ children: [/* @__PURE__ */ p("span", { children: e.heading }), I.value !== "" && /* @__PURE__ */ p("span", {
290
290
  className: n.count,
291
- children: d(u.commandMenu.matches, { count: e.items.length })
291
+ children: f(d.commandMenu.matches, { count: e.items.length })
292
292
  })]
293
293
  }), e.items.map((e) => {
294
294
  let { item: r, indices: i } = e;
295
295
  $++;
296
296
  let a = $;
297
- return /* @__PURE__ */ p("div", {
297
+ return /* @__PURE__ */ m("div", {
298
298
  ref: (e) => {
299
299
  j.current[a] = e;
300
300
  },
@@ -306,54 +306,54 @@ function y({ open: h, onOpenChange: y, groups: ne, placeholder: re, emptyLabel:
306
306
  "data-disabled": r.disabled || void 0,
307
307
  className: n.option,
308
308
  onMouseEnter: () => {
309
- r.disabled || (I.value = a);
309
+ r.disabled || (L.value = a);
310
310
  },
311
311
  onClick: () => X(r, "primary"),
312
312
  children: [
313
- r.icon && /* @__PURE__ */ f("span", {
313
+ r.icon && /* @__PURE__ */ p("span", {
314
314
  className: n.icon,
315
315
  "aria-hidden": "true",
316
316
  children: r.icon
317
317
  }),
318
- /* @__PURE__ */ p("span", {
318
+ /* @__PURE__ */ m("span", {
319
319
  className: n.text,
320
- children: [/* @__PURE__ */ f("span", {
320
+ children: [/* @__PURE__ */ p("span", {
321
321
  className: n.label,
322
- children: _(r.label, i)
323
- }), r.description && /* @__PURE__ */ f("span", {
322
+ children: v(r.label, i)
323
+ }), r.description && /* @__PURE__ */ p("span", {
324
324
  className: n.description,
325
325
  children: r.description
326
326
  })]
327
327
  }),
328
- r.status && /* @__PURE__ */ p("span", {
328
+ r.status && /* @__PURE__ */ m("span", {
329
329
  className: n.status,
330
330
  "data-tone": r.status.tone ?? "neutral",
331
- children: [/* @__PURE__ */ f("span", {
331
+ children: [/* @__PURE__ */ p("span", {
332
332
  className: n.statusDot,
333
333
  "aria-hidden": "true"
334
334
  }), r.status.label]
335
335
  }),
336
- r.actions && r.actions.length > 0 && /* @__PURE__ */ f("span", {
336
+ r.actions && r.actions.length > 0 && /* @__PURE__ */ p("span", {
337
337
  className: n.actions,
338
- children: r.actions.map((e) => /* @__PURE__ */ p("span", {
338
+ children: r.actions.map((e) => /* @__PURE__ */ m("span", {
339
339
  className: n.action,
340
340
  onClick: (t) => {
341
341
  t.stopPropagation(), Y(e);
342
342
  },
343
- children: [e.label, e.shortcut && /* @__PURE__ */ f("span", {
343
+ children: [e.label, e.shortcut && /* @__PURE__ */ p("span", {
344
344
  className: n.actionKeys,
345
345
  "aria-hidden": "true",
346
- children: e.shortcut.map((e, n) => /* @__PURE__ */ f(t, {
346
+ children: e.shortcut.map((e, n) => /* @__PURE__ */ p(t, {
347
347
  size: "sm",
348
348
  children: e
349
349
  }, n))
350
350
  })]
351
351
  }, e.id))
352
352
  }),
353
- r.shortcut && /* @__PURE__ */ f("span", {
353
+ r.shortcut && /* @__PURE__ */ p("span", {
354
354
  className: n.shortcut,
355
355
  "aria-hidden": "true",
356
- children: r.shortcut.map((e, n) => /* @__PURE__ */ f(t, {
356
+ children: r.shortcut.map((e, n) => /* @__PURE__ */ p(t, {
357
357
  size: "sm",
358
358
  children: e
359
359
  }, n))
@@ -362,51 +362,51 @@ function y({ open: h, onOpenChange: y, groups: ne, placeholder: re, emptyLabel:
362
362
  }, r.id);
363
363
  })]
364
364
  }, e.heading ?? `group-${r}`))
365
- }), U.length === 0 && (S ? /* @__PURE__ */ p("div", {
365
+ }), U.length === 0 && (C ? /* @__PURE__ */ m("div", {
366
366
  role: "status",
367
367
  className: n.empty,
368
- children: [/* @__PURE__ */ f(e, { size: "sm" }), d(u.commandMenu.loading)]
369
- }) : /* @__PURE__ */ f("div", {
368
+ children: [/* @__PURE__ */ p(e, { size: "sm" }), f(d.commandMenu.loading)]
369
+ }) : /* @__PURE__ */ p("div", {
370
370
  role: "status",
371
371
  className: n.empty,
372
- children: E
372
+ children: ae
373
373
  }))]
374
374
  }),
375
- /* @__PURE__ */ p("div", {
375
+ /* @__PURE__ */ m("div", {
376
376
  className: n.footer,
377
377
  "aria-hidden": "true",
378
378
  children: [
379
- /* @__PURE__ */ p("span", {
379
+ /* @__PURE__ */ m("span", {
380
380
  className: n.hint,
381
381
  children: [
382
- /* @__PURE__ */ f(t, {
382
+ /* @__PURE__ */ p(t, {
383
383
  size: "sm",
384
384
  children: "↑"
385
385
  }),
386
- /* @__PURE__ */ f(t, {
386
+ /* @__PURE__ */ p(t, {
387
387
  size: "sm",
388
388
  children: "↓"
389
389
  }),
390
390
  " navigate"
391
391
  ]
392
392
  }),
393
- /* @__PURE__ */ p("span", {
393
+ /* @__PURE__ */ m("span", {
394
394
  className: n.hint,
395
- children: [/* @__PURE__ */ f(t, {
395
+ children: [/* @__PURE__ */ p(t, {
396
396
  size: "sm",
397
397
  children: "↵"
398
398
  }), " open"]
399
399
  }),
400
- w.length > 0 && /* @__PURE__ */ p("span", {
400
+ T.length > 0 && /* @__PURE__ */ m("span", {
401
401
  className: n.hint,
402
- children: [/* @__PURE__ */ f(t, {
402
+ children: [/* @__PURE__ */ p(t, {
403
403
  size: "sm",
404
404
  children: "Tab"
405
405
  }), " scope"]
406
406
  }),
407
- /* @__PURE__ */ p("span", {
407
+ /* @__PURE__ */ m("span", {
408
408
  className: n.hint,
409
- children: [/* @__PURE__ */ f(t, {
409
+ children: [/* @__PURE__ */ p(t, {
410
410
  size: "sm",
411
411
  children: "esc"
412
412
  }), " close"]
@@ -418,4 +418,4 @@ function y({ open: h, onOpenChange: y, groups: ne, placeholder: re, emptyLabel:
418
418
  });
419
419
  }
420
420
  //#endregion
421
- export { y as CommandMenu, m as fuzzyMatch, h as fuzzyScore };
421
+ export { b as CommandMenu, h as fuzzyMatch, g as fuzzyScore };
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
1
  var e = {
4
2
  dialog: "_dialog_1dfrg_2",
5
3
  panel: "_panel_1dfrg_62",
@@ -1,15 +1,15 @@
1
1
  "use client";
2
2
 
3
3
  import e from "./comparison.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/comparison/comparison.tsx
9
9
  var u = (e) => Math.min(100, Math.max(0, e));
10
10
  function d({ after: d, before: f, position: p, defaultPosition: m = 50, onPositionChange: h, orientation: g = "horizontal", keyboardStep: _ = 5, label: v, className: y, ...b }) {
11
- i();
12
- let x = a(null), S = r(!1), [C, w] = n({
11
+ a();
12
+ let x = t(null), S = i(!1), [C, w] = r({
13
13
  value: p,
14
14
  defaultValue: m,
15
15
  onChange: h
@@ -26,7 +26,7 @@ function d({ after: d, before: f, position: p, defaultPosition: m = 50, onPositi
26
26
  ref: x,
27
27
  "data-orientation": g,
28
28
  "data-dragging": S.value || void 0,
29
- className: t(e.comparison, y),
29
+ className: n(e.comparison, y),
30
30
  style: { "--position": `${T}%` },
31
31
  onPointerDown: (e) => {
32
32
  S.value = !0, e.currentTarget.setPointerCapture?.(e.pointerId), E(e);
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
1
  var e = {
4
2
  comparison: "_comparison_zo41p_2",
5
3
  item: "_item_zo41p_11",
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
1
  var e = {
4
2
  root: "_root_u2rtc_2",
5
3
  header: "_header_u2rtc_11",
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
 
3
3
  import e from "./context-menu.module.js";
4
- import { useSignal as t, useSignalEffect as n, useSignals as r } from "@cascivo/core";
5
- import { useRef as i } from "react";
4
+ import { useRef as t } from "react";
5
+ import { useSignal as n, useSignalEffect as r, useSignals as i } from "@cascivo/core";
6
6
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
7
7
  //#region ../components/src/context-menu/context-menu.tsx
8
8
  function s({ children: s }) {
9
- r();
10
- let c = i(null), l = i(null), u = t(!1), d = () => {
9
+ i();
10
+ let c = t(null), l = t(null), u = n(!1), d = () => {
11
11
  let e = c.current;
12
12
  return e ? Array.from(e.querySelectorAll("[role=\"menuitem\"]:not([aria-disabled=\"true\"])")) : [];
13
13
  }, f = (e) => {
@@ -29,7 +29,7 @@ function s({ children: s }) {
29
29
  break;
30
30
  }
31
31
  };
32
- n(() => {
32
+ r(() => {
33
33
  let e = c.current;
34
34
  if (e) if (u.value) {
35
35
  try {
@@ -39,7 +39,7 @@ function s({ children: s }) {
39
39
  } else try {
40
40
  e.hidePopover();
41
41
  } catch {}
42
- }), n(() => {
42
+ }), r(() => {
43
43
  let e = c.current;
44
44
  if (!e) return;
45
45
  let t = (e) => {
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
1
  var e = {
4
2
  wrapper: "_wrapper_dfne7_2",
5
3
  menu: "_menu_dfne7_6",
@@ -1,22 +1,22 @@
1
1
  "use client";
2
2
 
3
3
  import e from "./copy-button.module.js";
4
- import { cn as t, useSignal as n, useSignals as r } from "@cascivo/core";
5
- import { forwardRef as i } from "react";
4
+ import { forwardRef as t } from "react";
5
+ import { cn as n, useSignal as r, useSignals as i } from "@cascivo/core";
6
6
  import { builtin as a, t as o } from "@cascivo/i18n";
7
7
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
8
8
  //#region ../components/src/copy-button/copy-button.tsx
9
- var l = i(function({ value: i, size: l = "md", labels: u, className: d, ...f }, p) {
10
- r();
11
- let m = n(!1), h = u?.copy ?? o(a.copyButton.copy), g = u?.copied ?? o(a.copyButton.copied);
9
+ var l = t(function({ value: t, size: l = "md", labels: u, className: d, ...f }, p) {
10
+ i();
11
+ let m = r(!1), h = u?.copy ?? o(a.copyButton.copy), g = u?.copied ?? o(a.copyButton.copied);
12
12
  return /* @__PURE__ */ s("button", {
13
13
  type: "button",
14
14
  "aria-label": m.value ? g : h,
15
15
  "data-state": m.value ? "copied" : "idle",
16
16
  "data-size": l,
17
- className: t(e.copyButton, d),
17
+ className: n(e.copyButton, d),
18
18
  onClick: () => {
19
- navigator.clipboard.writeText(i), m.value = !0, setTimeout(() => {
19
+ navigator.clipboard.writeText(t), m.value = !0, setTimeout(() => {
20
20
  m.value = !1;
21
21
  }, 2e3);
22
22
  },
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
1
  var e = {
4
2
  copyButton: "_copyButton_w0pqt_2",
5
3
  icon: "_icon_w0pqt_45"
@@ -1,7 +1,5 @@
1
- "use client";
2
-
3
1
  import e from "./data-list.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/data-list/data-list.tsx
7
5
  function i({ items: i, orientation: a = "horizontal", dividers: o = !1, size: s = "md", className: c, ...l }) {
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
1
  var e = {
4
2
  list: "_list_prsqy_2",
5
3
  row: "_row_prsqy_21",