@exegia/corpora-ui 3.1.0 → 4.0.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 (340) hide show
  1. package/dist-lib/autocomplete-DzjspdKa.js +151 -0
  2. package/dist-lib/base-CiR7nLAD.js +37 -0
  3. package/dist-lib/breadcrumb-DtFOhTfs.js +83 -0
  4. package/dist-lib/{button-CIRkQXA6.js → button-DDBbG_zF.js} +34 -43
  5. package/dist-lib/button.js +1 -1
  6. package/dist-lib/calendar-Dyut8HPa.js +62 -0
  7. package/dist-lib/checkbox-group-B0BPFc-K.js +12 -0
  8. package/dist-lib/combobox-BwfmU1S_.js +267 -0
  9. package/dist-lib/components/blocks/sidebar-primitives/content.d.ts +2 -0
  10. package/dist-lib/components/blocks/sidebar-primitives/context.d.ts +2 -0
  11. package/dist-lib/components/blocks/sidebar-primitives/footer.d.ts +2 -0
  12. package/dist-lib/components/blocks/sidebar-primitives/group-action.d.ts +3 -0
  13. package/dist-lib/components/blocks/sidebar-primitives/group-content.d.ts +2 -0
  14. package/dist-lib/components/blocks/sidebar-primitives/group-label.d.ts +3 -0
  15. package/dist-lib/components/blocks/sidebar-primitives/group.d.ts +2 -0
  16. package/dist-lib/components/blocks/sidebar-primitives/header.d.ts +2 -0
  17. package/dist-lib/components/blocks/sidebar-primitives/index.d.ts +26 -0
  18. package/dist-lib/components/blocks/sidebar-primitives/input.d.ts +3 -0
  19. package/dist-lib/components/blocks/sidebar-primitives/inset.d.ts +2 -0
  20. package/dist-lib/components/blocks/sidebar-primitives/menu-action.d.ts +5 -0
  21. package/dist-lib/components/blocks/sidebar-primitives/menu-badge.d.ts +2 -0
  22. package/dist-lib/components/blocks/sidebar-primitives/menu-button.d.ts +9 -0
  23. package/dist-lib/components/blocks/sidebar-primitives/menu-item.d.ts +2 -0
  24. package/dist-lib/components/blocks/sidebar-primitives/menu-skeleton.d.ts +4 -0
  25. package/dist-lib/components/blocks/sidebar-primitives/menu-sub-button.d.ts +6 -0
  26. package/dist-lib/components/blocks/sidebar-primitives/menu-sub-item.d.ts +2 -0
  27. package/dist-lib/components/blocks/sidebar-primitives/menu-sub.d.ts +2 -0
  28. package/dist-lib/components/blocks/sidebar-primitives/menu.d.ts +2 -0
  29. package/dist-lib/components/blocks/sidebar-primitives/provider.d.ts +3 -0
  30. package/dist-lib/components/blocks/sidebar-primitives/rail.d.ts +2 -0
  31. package/dist-lib/components/blocks/sidebar-primitives/separator.d.ts +3 -0
  32. package/dist-lib/components/blocks/sidebar-primitives/sidebar-atom.d.ts +32 -0
  33. package/dist-lib/components/blocks/sidebar-primitives/sidebar.d.ts +6 -0
  34. package/dist-lib/components/blocks/sidebar-primitives/trigger.d.ts +3 -0
  35. package/dist-lib/components/blocks/sidebar-primitives/types.d.ts +26 -0
  36. package/dist-lib/components/blocks/sidebar-primitives/use-mobile.d.ts +1 -0
  37. package/dist-lib/components/blocks/sidebar-primitives/use-sidebar.d.ts +4 -0
  38. package/dist-lib/components/blocks/sidebar-primitives/utils.d.ts +10 -0
  39. package/dist-lib/components/ui/alert.d.ts +1 -1
  40. package/dist-lib/components/ui/badge.d.ts +2 -2
  41. package/dist-lib/components/ui/breadcrumb/base.d.ts +2 -0
  42. package/dist-lib/components/ui/breadcrumb/ellipsis.d.ts +2 -0
  43. package/dist-lib/components/ui/breadcrumb/index.d.ts +7 -0
  44. package/dist-lib/components/ui/breadcrumb/item.d.ts +2 -0
  45. package/dist-lib/components/ui/breadcrumb/link.d.ts +3 -0
  46. package/dist-lib/components/ui/breadcrumb/list.d.ts +2 -0
  47. package/dist-lib/components/ui/breadcrumb/page.d.ts +2 -0
  48. package/dist-lib/components/ui/breadcrumb/separator.d.ts +2 -0
  49. package/dist-lib/components/ui/button.d.ts +2 -2
  50. package/dist-lib/components/ui/calendar/base.d.ts +3 -0
  51. package/dist-lib/components/ui/calendar/index.d.ts +1 -0
  52. package/dist-lib/components/ui/calendar/utils.d.ts +1 -0
  53. package/dist-lib/components/ui/checkbox-group/base.d.ts +3 -0
  54. package/dist-lib/components/ui/checkbox-group/index.d.ts +2 -0
  55. package/dist-lib/components/ui/combobox/chip-remove.d.ts +3 -0
  56. package/dist-lib/components/ui/combobox/chip.d.ts +5 -0
  57. package/dist-lib/components/ui/combobox/chips-input.d.ts +6 -0
  58. package/dist-lib/components/ui/combobox/chips.d.ts +5 -0
  59. package/dist-lib/components/ui/combobox/clear.d.ts +3 -0
  60. package/dist-lib/components/ui/combobox/collection.d.ts +3 -0
  61. package/dist-lib/components/ui/combobox/context.d.ts +5 -0
  62. package/dist-lib/components/ui/combobox/empty.d.ts +3 -0
  63. package/dist-lib/components/ui/combobox/group-label.d.ts +3 -0
  64. package/dist-lib/components/ui/combobox/group.d.ts +3 -0
  65. package/dist-lib/components/ui/combobox/index.d.ts +22 -0
  66. package/dist-lib/components/ui/combobox/input.d.ts +11 -0
  67. package/dist-lib/components/ui/combobox/item.d.ts +3 -0
  68. package/dist-lib/components/ui/combobox/list.d.ts +3 -0
  69. package/dist-lib/components/ui/combobox/popup.d.ts +10 -0
  70. package/dist-lib/components/ui/combobox/root.d.ts +3 -0
  71. package/dist-lib/components/ui/combobox/row.d.ts +3 -0
  72. package/dist-lib/components/ui/combobox/separator.d.ts +3 -0
  73. package/dist-lib/components/ui/combobox/status.d.ts +3 -0
  74. package/dist-lib/components/ui/combobox/trigger.d.ts +3 -0
  75. package/dist-lib/components/ui/combobox/utils.d.ts +2 -0
  76. package/dist-lib/components/ui/combobox/value.d.ts +3 -0
  77. package/dist-lib/components/ui/dialog/backdrop.d.ts +3 -0
  78. package/dist-lib/components/ui/dialog/close.d.ts +3 -0
  79. package/dist-lib/components/ui/dialog/description.d.ts +3 -0
  80. package/dist-lib/components/ui/dialog/footer.d.ts +5 -0
  81. package/dist-lib/components/ui/dialog/header.d.ts +3 -0
  82. package/dist-lib/components/ui/dialog/index.d.ts +16 -0
  83. package/dist-lib/components/ui/dialog/panel.d.ts +5 -0
  84. package/dist-lib/components/ui/dialog/popup.d.ts +8 -0
  85. package/dist-lib/components/ui/dialog/title.d.ts +3 -0
  86. package/dist-lib/components/ui/dialog/trigger.d.ts +3 -0
  87. package/dist-lib/components/ui/dialog/utils.d.ts +4 -0
  88. package/dist-lib/components/ui/dialog/viewport.d.ts +3 -0
  89. package/dist-lib/components/ui/drawer/backdrop.d.ts +3 -0
  90. package/dist-lib/components/ui/drawer/bar.d.ts +6 -0
  91. package/dist-lib/components/ui/drawer/close.d.ts +3 -0
  92. package/dist-lib/components/ui/drawer/content.d.ts +3 -0
  93. package/dist-lib/components/ui/drawer/context.d.ts +5 -0
  94. package/dist-lib/components/ui/drawer/description.d.ts +3 -0
  95. package/dist-lib/components/ui/drawer/footer.d.ts +6 -0
  96. package/dist-lib/components/ui/drawer/header.d.ts +5 -0
  97. package/dist-lib/components/ui/drawer/index.d.ts +26 -0
  98. package/dist-lib/components/ui/drawer/menu-checkbox-item.d.ts +6 -0
  99. package/dist-lib/components/ui/drawer/menu-group-label.d.ts +3 -0
  100. package/dist-lib/components/ui/drawer/menu-group.d.ts +3 -0
  101. package/dist-lib/components/ui/drawer/menu-item.d.ts +5 -0
  102. package/dist-lib/components/ui/drawer/menu-radio-group.d.ts +3 -0
  103. package/dist-lib/components/ui/drawer/menu-radio-item.d.ts +6 -0
  104. package/dist-lib/components/ui/drawer/menu-separator.d.ts +3 -0
  105. package/dist-lib/components/ui/drawer/menu-trigger.d.ts +3 -0
  106. package/dist-lib/components/ui/drawer/menu.d.ts +3 -0
  107. package/dist-lib/components/ui/drawer/panel.d.ts +7 -0
  108. package/dist-lib/components/ui/drawer/popup.d.ts +10 -0
  109. package/dist-lib/components/ui/drawer/portal.d.ts +3 -0
  110. package/dist-lib/components/ui/drawer/root.d.ts +6 -0
  111. package/dist-lib/components/ui/drawer/swipe-area.d.ts +6 -0
  112. package/dist-lib/components/ui/drawer/title.d.ts +3 -0
  113. package/dist-lib/components/ui/drawer/trigger.d.ts +3 -0
  114. package/dist-lib/components/ui/drawer/types.d.ts +1 -0
  115. package/dist-lib/components/ui/drawer/utils.d.ts +4 -0
  116. package/dist-lib/components/ui/drawer/viewport.d.ts +7 -0
  117. package/dist-lib/components/ui/empty/base.d.ts +2 -0
  118. package/dist-lib/components/ui/empty/content.d.ts +2 -0
  119. package/dist-lib/components/ui/empty/description.d.ts +2 -0
  120. package/dist-lib/components/ui/empty/header.d.ts +2 -0
  121. package/dist-lib/components/ui/empty/index.d.ts +6 -0
  122. package/dist-lib/components/ui/empty/media.d.ts +4 -0
  123. package/dist-lib/components/ui/empty/title.d.ts +2 -0
  124. package/dist-lib/components/ui/empty/utils.d.ts +3 -0
  125. package/dist-lib/components/ui/fieldset/base.d.ts +3 -0
  126. package/dist-lib/components/ui/fieldset/index.d.ts +3 -0
  127. package/dist-lib/components/ui/fieldset/legend.d.ts +3 -0
  128. package/dist-lib/components/ui/form/base.d.ts +3 -0
  129. package/dist-lib/components/ui/form/index.d.ts +2 -0
  130. package/dist-lib/components/ui/meter/base.d.ts +3 -0
  131. package/dist-lib/components/ui/meter/index.d.ts +6 -0
  132. package/dist-lib/components/ui/meter/indicator.d.ts +3 -0
  133. package/dist-lib/components/ui/meter/label.d.ts +3 -0
  134. package/dist-lib/components/ui/meter/track.d.ts +3 -0
  135. package/dist-lib/components/ui/meter/value.d.ts +3 -0
  136. package/dist-lib/components/ui/number-field/base.d.ts +5 -0
  137. package/dist-lib/components/ui/number-field/context.d.ts +4 -0
  138. package/dist-lib/components/ui/number-field/cursor-grow-icon.d.ts +2 -0
  139. package/dist-lib/components/ui/number-field/decrement.d.ts +3 -0
  140. package/dist-lib/components/ui/number-field/group.d.ts +3 -0
  141. package/dist-lib/components/ui/number-field/increment.d.ts +3 -0
  142. package/dist-lib/components/ui/number-field/index.d.ts +9 -0
  143. package/dist-lib/components/ui/number-field/input.d.ts +3 -0
  144. package/dist-lib/components/ui/number-field/scrub-area.d.ts +5 -0
  145. package/dist-lib/components/ui/pagination/base.d.ts +2 -0
  146. package/dist-lib/components/ui/pagination/content.d.ts +2 -0
  147. package/dist-lib/components/ui/pagination/ellipsis.d.ts +2 -0
  148. package/dist-lib/components/ui/pagination/index.d.ts +8 -0
  149. package/dist-lib/components/ui/pagination/item.d.ts +2 -0
  150. package/dist-lib/components/ui/pagination/link.d.ts +3 -0
  151. package/dist-lib/components/ui/pagination/next.d.ts +3 -0
  152. package/dist-lib/components/ui/pagination/previous.d.ts +3 -0
  153. package/dist-lib/components/ui/pagination/types.d.ts +7 -0
  154. package/dist-lib/components/ui/preview-card.d.ts +2 -1
  155. package/dist-lib/components/ui/progress/base.d.ts +3 -0
  156. package/dist-lib/components/ui/progress/index.d.ts +6 -0
  157. package/dist-lib/components/ui/progress/indicator.d.ts +3 -0
  158. package/dist-lib/components/ui/progress/label.d.ts +3 -0
  159. package/dist-lib/components/ui/progress/track.d.ts +3 -0
  160. package/dist-lib/components/ui/progress/value.d.ts +3 -0
  161. package/dist-lib/components/ui/radio-group/base.d.ts +3 -0
  162. package/dist-lib/components/ui/radio-group/index.d.ts +5 -0
  163. package/dist-lib/components/ui/radio-group/radio.d.ts +3 -0
  164. package/dist-lib/components/ui/sheet-parts/backdrop.d.ts +2 -0
  165. package/dist-lib/components/ui/sheet-parts/overlay.d.ts +2 -0
  166. package/dist-lib/components/ui/sheet-parts/panel.d.ts +5 -0
  167. package/dist-lib/components/ui/sheet-parts/popup.d.ts +10 -0
  168. package/dist-lib/components/ui/sheet-parts/portal.d.ts +2 -0
  169. package/dist-lib/components/ui/sheet-parts/viewport.d.ts +6 -0
  170. package/dist-lib/components/ui/sheet.d.ts +19 -9
  171. package/dist-lib/components/ui/slider/base.d.ts +3 -0
  172. package/dist-lib/components/ui/slider/index.d.ts +3 -0
  173. package/dist-lib/components/ui/slider/value.d.ts +3 -0
  174. package/dist-lib/components/ui/table/base.d.ts +3 -0
  175. package/dist-lib/components/ui/table/body.d.ts +2 -0
  176. package/dist-lib/components/ui/table/caption.d.ts +2 -0
  177. package/dist-lib/components/ui/table/cell.d.ts +2 -0
  178. package/dist-lib/components/ui/table/footer.d.ts +2 -0
  179. package/dist-lib/components/ui/table/head.d.ts +2 -0
  180. package/dist-lib/components/ui/table/header.d.ts +2 -0
  181. package/dist-lib/components/ui/table/index.d.ts +10 -0
  182. package/dist-lib/components/ui/table/row.d.ts +2 -0
  183. package/dist-lib/components/ui/table/types.d.ts +7 -0
  184. package/dist-lib/components/ui/toggle/base.d.ts +5 -0
  185. package/dist-lib/components/ui/toggle/index.d.ts +3 -0
  186. package/dist-lib/components/ui/toggle/utils.d.ts +4 -0
  187. package/dist-lib/components/ui/toggle-group/base.d.ts +5 -0
  188. package/dist-lib/components/ui/toggle-group/context.d.ts +4 -0
  189. package/dist-lib/components/ui/toggle-group/index.d.ts +5 -0
  190. package/dist-lib/components/ui/toggle-group/item.d.ts +5 -0
  191. package/dist-lib/components/ui/toggle-group/separator.d.ts +5 -0
  192. package/dist-lib/dialog-BF9rLVsx.js +135 -0
  193. package/dist-lib/drawer-DuQtc_IN.js +350 -0
  194. package/dist-lib/empty-CUO4MoHd.js +87 -0
  195. package/dist-lib/{exegia-provider-DNTuLljX.js → exegia-provider-CDYMDsSW.js} +33 -31
  196. package/dist-lib/fieldset-C3YDowBt.js +22 -0
  197. package/dist-lib/form-DdxBnCxo.js +12 -0
  198. package/dist-lib/index.css +1 -1
  199. package/dist-lib/index.d.ts +1 -0
  200. package/dist-lib/index.js +6401 -7684
  201. package/dist-lib/{liquid-glass-BihU6nMl.js → liquid-glass-BrmOha12.js} +11 -11
  202. package/dist-lib/meter-B5i2cf7m.js +49 -0
  203. package/dist-lib/modal-BSBLNZfo.js +24 -0
  204. package/dist-lib/number-field-D5p-WTn_.js +97 -0
  205. package/dist-lib/overlays.js +5 -3
  206. package/dist-lib/pagination-CPOVfufE.js +94 -0
  207. package/dist-lib/{modal-DLaOK-s1.js → popover-BKYgU_p3.js} +22 -42
  208. package/dist-lib/portal-context-oIZFl3NP.js +9 -0
  209. package/dist-lib/progress-ByAk9CV5.js +50 -0
  210. package/dist-lib/radio-group-CMwDkKFE.js +27 -0
  211. package/dist-lib/{scaffold-Qv4hs5Pf.js → scaffold-DjS8eLk9.js} +198 -198
  212. package/dist-lib/scaffold.js +1 -1
  213. package/dist-lib/scroll-area-BNcHlmRX.js +39 -0
  214. package/dist-lib/separator-D7T-98IV.js +14 -0
  215. package/dist-lib/sheet-BAYosIsg.js +148 -0
  216. package/dist-lib/sheet-D4fmEZW5.js +22 -0
  217. package/dist-lib/{shell-BQ9cjIEu.js → shell-WTIa9_ul.js} +170 -170
  218. package/dist-lib/shell.js +1 -1
  219. package/dist-lib/sidebar-1j5RYZ2t.js +529 -0
  220. package/dist-lib/skeleton-CwqQoMiY.js +12 -0
  221. package/dist-lib/slider-_1H30BMt.js +48 -0
  222. package/dist-lib/spinner-cwaneGYM.js +14 -0
  223. package/dist-lib/state.js +1 -1
  224. package/dist-lib/table-D43_yedE.js +87 -0
  225. package/dist-lib/tabs-CwWnKxRI.js +66 -0
  226. package/dist-lib/textarea-CxycYTkF.js +27 -0
  227. package/dist-lib/{toast-CataVXHN.js → toast-BLwJEhKU.js} +63 -105
  228. package/dist-lib/toggle-group-BzDvDKL0.js +55 -0
  229. package/dist-lib/tooltip-aPB3pyrl.js +39 -0
  230. package/dist-lib/ui/accordion.d.ts +1 -0
  231. package/dist-lib/ui/accordion.js +45 -0
  232. package/dist-lib/ui/alert-dialog.d.ts +1 -0
  233. package/dist-lib/ui/alert-dialog.js +74 -0
  234. package/dist-lib/ui/alert.d.ts +1 -0
  235. package/dist-lib/ui/alert.js +45 -0
  236. package/dist-lib/ui/autocomplete.d.ts +1 -0
  237. package/dist-lib/ui/autocomplete.js +2 -0
  238. package/dist-lib/ui/avatar.d.ts +2 -0
  239. package/dist-lib/ui/avatar.js +50 -0
  240. package/dist-lib/ui/badge.d.ts +2 -0
  241. package/dist-lib/ui/badge.js +72 -0
  242. package/dist-lib/ui/breadcrumb.d.ts +1 -0
  243. package/dist-lib/ui/breadcrumb.js +2 -0
  244. package/dist-lib/ui/button.d.ts +2 -0
  245. package/dist-lib/ui/button.js +2 -0
  246. package/dist-lib/ui/calendar.d.ts +1 -0
  247. package/dist-lib/ui/calendar.js +2 -0
  248. package/dist-lib/ui/card.d.ts +1 -0
  249. package/dist-lib/ui/card.js +2 -0
  250. package/dist-lib/ui/checkbox-group.d.ts +1 -0
  251. package/dist-lib/ui/checkbox-group.js +2 -0
  252. package/dist-lib/ui/checkbox.d.ts +1 -0
  253. package/dist-lib/ui/checkbox.js +51 -0
  254. package/dist-lib/ui/collapsible.d.ts +1 -0
  255. package/dist-lib/ui/collapsible.js +26 -0
  256. package/dist-lib/ui/combobox.d.ts +1 -0
  257. package/dist-lib/ui/combobox.js +2 -0
  258. package/dist-lib/ui/command.d.ts +1 -0
  259. package/dist-lib/ui/command.js +125 -0
  260. package/dist-lib/ui/context-menu.d.ts +1 -0
  261. package/dist-lib/ui/context-menu.js +178 -0
  262. package/dist-lib/ui/dialog.d.ts +1 -0
  263. package/dist-lib/ui/dialog.js +2 -0
  264. package/dist-lib/ui/drawer.d.ts +1 -0
  265. package/dist-lib/ui/drawer.js +2 -0
  266. package/dist-lib/ui/empty.d.ts +1 -0
  267. package/dist-lib/ui/empty.js +2 -0
  268. package/dist-lib/ui/field.d.ts +1 -0
  269. package/dist-lib/ui/field.js +42 -0
  270. package/dist-lib/ui/fieldset.d.ts +1 -0
  271. package/dist-lib/ui/fieldset.js +2 -0
  272. package/dist-lib/ui/form.d.ts +1 -0
  273. package/dist-lib/ui/form.js +2 -0
  274. package/dist-lib/ui/frame.d.ts +1 -0
  275. package/dist-lib/ui/frame.js +47 -0
  276. package/dist-lib/ui/group.d.ts +1 -0
  277. package/dist-lib/ui/group.js +44 -0
  278. package/dist-lib/ui/index.d.ts +55 -0
  279. package/dist-lib/ui/index.js +497 -0
  280. package/dist-lib/ui/input-group.d.ts +1 -0
  281. package/dist-lib/ui/input-group.js +59 -0
  282. package/dist-lib/ui/input.d.ts +2 -0
  283. package/dist-lib/ui/input.js +2 -0
  284. package/dist-lib/ui/kbd.d.ts +1 -0
  285. package/dist-lib/ui/kbd.js +19 -0
  286. package/dist-lib/ui/label.d.ts +1 -0
  287. package/dist-lib/ui/label.js +2 -0
  288. package/dist-lib/ui/menu.d.ts +1 -0
  289. package/dist-lib/ui/menu.js +178 -0
  290. package/dist-lib/ui/meter.d.ts +1 -0
  291. package/dist-lib/ui/meter.js +2 -0
  292. package/dist-lib/ui/number-field.d.ts +1 -0
  293. package/dist-lib/ui/number-field.js +2 -0
  294. package/dist-lib/ui/otp-field.d.ts +1 -0
  295. package/dist-lib/ui/otp-field.js +36 -0
  296. package/dist-lib/ui/pagination.d.ts +1 -0
  297. package/dist-lib/ui/pagination.js +2 -0
  298. package/dist-lib/ui/popover.d.ts +1 -0
  299. package/dist-lib/ui/popover.js +2 -0
  300. package/dist-lib/ui/preview-card.d.ts +1 -0
  301. package/dist-lib/ui/preview-card.js +35 -0
  302. package/dist-lib/ui/progress.d.ts +1 -0
  303. package/dist-lib/ui/progress.js +2 -0
  304. package/dist-lib/ui/radio-group.d.ts +1 -0
  305. package/dist-lib/ui/radio-group.js +2 -0
  306. package/dist-lib/ui/scroll-area.d.ts +1 -0
  307. package/dist-lib/ui/scroll-area.js +2 -0
  308. package/dist-lib/ui/select.d.ts +2 -0
  309. package/dist-lib/ui/select.js +145 -0
  310. package/dist-lib/ui/separator.d.ts +2 -0
  311. package/dist-lib/ui/separator.js +3 -0
  312. package/dist-lib/ui/sheet.d.ts +1 -0
  313. package/dist-lib/ui/sheet.js +3 -0
  314. package/dist-lib/ui/sidebar.d.ts +1 -0
  315. package/dist-lib/ui/sidebar.js +2 -0
  316. package/dist-lib/ui/skeleton.d.ts +1 -0
  317. package/dist-lib/ui/skeleton.js +2 -0
  318. package/dist-lib/ui/slider.d.ts +1 -0
  319. package/dist-lib/ui/slider.js +2 -0
  320. package/dist-lib/ui/spinner.d.ts +1 -0
  321. package/dist-lib/ui/spinner.js +2 -0
  322. package/dist-lib/ui/switch.d.ts +1 -0
  323. package/dist-lib/ui/switch.js +17 -0
  324. package/dist-lib/ui/table.d.ts +1 -0
  325. package/dist-lib/ui/table.js +2 -0
  326. package/dist-lib/ui/tabs.d.ts +1 -0
  327. package/dist-lib/ui/tabs.js +2 -0
  328. package/dist-lib/ui/textarea.d.ts +2 -0
  329. package/dist-lib/ui/textarea.js +2 -0
  330. package/dist-lib/ui/toast.d.ts +1 -0
  331. package/dist-lib/ui/toast.js +2 -0
  332. package/dist-lib/ui/toggle-group.d.ts +1 -0
  333. package/dist-lib/ui/toggle-group.js +2 -0
  334. package/dist-lib/ui/toggle.d.ts +1 -0
  335. package/dist-lib/ui/toggle.js +3 -0
  336. package/dist-lib/ui/toolbar.d.ts +1 -0
  337. package/dist-lib/ui/toolbar.js +48 -0
  338. package/dist-lib/ui/tooltip.d.ts +1 -0
  339. package/dist-lib/ui/tooltip.js +2 -0
  340. package/package.json +222 -1
@@ -1,23 +1,23 @@
1
1
  import { t as e } from "./utils-BO0qfoA6.js";
2
- import { a as t, g as n, n as r } from "./ease-C9At8rnB.js";
3
- import { t as i } from "./button-CIRkQXA6.js";
2
+ import { t } from "./button-DDBbG_zF.js";
3
+ import { a as n, g as r, n as i } from "./ease-C9At8rnB.js";
4
4
  import { PanelLeft as a, PanelRight as o } from "lucide-react";
5
- import * as s from "react";
6
- import { createContext as c, forwardRef as l, useCallback as u, useContext as d, useEffect as f, useId as p, useMemo as m, useRef as h, useState as g, useSyncExternalStore as _ } from "react";
7
- import { atom as v, useAtomValueRawSync as y, useSetAtom as b } from "jotai";
8
- import { motion as x, useIsomorphicLayoutEffect as S, useReducedMotion as C } from "motion/react";
9
- import { jsx as w, jsxs as T } from "react/jsx-runtime";
5
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
6
+ import * as l from "react";
7
+ import { createContext as u, forwardRef as d, useCallback as f, useContext as p, useEffect as m, useId as h, useMemo as g, useRef as _, useState as v, useSyncExternalStore as y } from "react";
8
+ import { atom as b, useAtomValueRawSync as x, useSetAtom as S } from "jotai";
9
+ import { motion as C, useIsomorphicLayoutEffect as w, useReducedMotion as T } from "motion/react";
10
10
  //#region src/components/blocks/shell/shell-panel-atom.ts
11
11
  function E() {
12
- let e = v(null), t = v(null, (t, n, r) => {
12
+ let e = b(null), t = b(null, (t, n, r) => {
13
13
  Number.isFinite(r) && n(e, Math.max(180, Math.min(480, r)));
14
- }), n = v({
14
+ }), n = b({
15
15
  left: !0,
16
16
  right: !1
17
- }), r = v({
17
+ }), r = b({
18
18
  left: !1,
19
19
  right: !1
20
- }), i = v({}), a = v(null), o = v(!1), s = v(null, (e, t, r, i) => {
20
+ }), i = b({}), a = b(null), o = b(!1), s = b(null, (e, t, r, i) => {
21
21
  let o = e(a);
22
22
  o ? o.setOpen(r, i) : t(n, {
23
23
  ...e(n),
@@ -32,15 +32,15 @@ function E() {
32
32
  components: i,
33
33
  handlers: a,
34
34
  setOpen: s,
35
- setOpenMobile: v(null, (e, t, n, i) => {
35
+ setOpenMobile: b(null, (e, t, n, i) => {
36
36
  let o = e(a);
37
37
  o ? o.setOpenMobile(n, i) : t(r, {
38
38
  ...e(r),
39
39
  [i]: n
40
40
  });
41
41
  }),
42
- toggle: v(null, (e, t, r) => t(s, !e(n)[r], r)),
43
- seed: v(null, (e, t, i, a) => {
42
+ toggle: b(null, (e, t, r) => t(s, !e(n)[r], r)),
43
+ seed: b(null, (e, t, i, a) => {
44
44
  e(o) || (t(o, !0), t(n, {
45
45
  ...e(n),
46
46
  ...i
@@ -114,19 +114,19 @@ function I(e) {
114
114
  }
115
115
  function L(e, t) {
116
116
  return I((n) => {
117
- let r = v(t);
117
+ let r = b(t);
118
118
  return r.debugLabel = `shell-fit/${n}/${e}`, r;
119
119
  });
120
120
  }
121
121
  function R(e, t) {
122
122
  return I((n) => {
123
- let r = v((e) => t(e, n));
123
+ let r = b((e) => t(e, n));
124
124
  return r.debugLabel = `shell-fit/${n}/${e}`, r;
125
125
  });
126
126
  }
127
127
  function z(e, t) {
128
128
  return I((n) => {
129
- let r = v(null, (e, r, ...i) => t(e, r, n, ...i));
129
+ let r = b(null, (e, r, ...i) => t(e, r, n, ...i));
130
130
  return r.debugLabel = `shell-fit/${n}/${e}`, r;
131
131
  });
132
132
  }
@@ -169,26 +169,26 @@ var ae = "bezel-lit-t-2 bezel-lit-blur-2 bezel-lit/57 bezel-dim-b-2 bezel-dim-bl
169
169
  }, ce = {
170
170
  duration: .2,
171
171
  delay: .08,
172
- ease: t
172
+ ease: n
173
173
  }, le = {
174
174
  duration: .12,
175
- ease: t
175
+ ease: n
176
176
  }, ue = {
177
177
  duration: .36,
178
- ease: r
178
+ ease: i
179
179
  }, de = {
180
180
  duration: .16,
181
- ease: t
181
+ ease: n
182
182
  }, fe = {
183
183
  duration: .18,
184
- ease: t
184
+ ease: n
185
185
  }, pe = {
186
186
  closed: {
187
187
  opacity: 0,
188
188
  clipPath: "inset(0 0 100% 0 round 8px)",
189
189
  transition: {
190
190
  duration: .14,
191
- ease: t,
191
+ ease: n,
192
192
  staggerChildren: .025,
193
193
  staggerDirection: -1
194
194
  }
@@ -199,7 +199,7 @@ var ae = "bezel-lit-t-2 bezel-lit-blur-2 bezel-lit/57 bezel-dim-b-2 bezel-dim-bl
199
199
  transition: {
200
200
  duration: .2,
201
201
  delayChildren: .035,
202
- ease: t,
202
+ ease: n,
203
203
  staggerChildren: .045
204
204
  }
205
205
  }
@@ -239,9 +239,9 @@ function $(e, t) {
239
239
  let r = n.getBoundingClientRect().width;
240
240
  return n.remove(), r;
241
241
  }
242
- var be = c(null), xe = c(null);
242
+ var be = u(null), xe = u(null);
243
243
  function Se() {
244
- let e = d(be);
244
+ let e = p(be);
245
245
  if (!e) throw Error("useAnimatedSidebar must be used inside AnimatedPanelProvider.");
246
246
  return e;
247
247
  }
@@ -256,67 +256,67 @@ function Te() {
256
256
  return !1;
257
257
  }
258
258
  function Ee() {
259
- return _(Ce, we, Te);
259
+ return y(Ce, we, Te);
260
260
  }
261
261
  function De() {
262
- let e = d(xe);
262
+ let e = p(xe);
263
263
  if (!e) throw Error("Animated Sidebar parts must be used inside AnimatedPanel.");
264
264
  return e;
265
265
  }
266
266
  //#endregion
267
267
  //#region src/components/blocks/shell/animated-panel.tsx
268
- function Oe({ side: t = "left", variant: r = "sidebar", collapsible: i = "icon", ariaLabel: a = "Sidebar", children: o, className: s, panelClassName: c, style: l, ref: d, ...f }) {
269
- let p = Se(), m = b(O(p.fit.shellId).resizeSidebar), { bounds: h, panelWidth: g, resizePanel: _ } = p.fit, v = p.fit.sidebar, y = p.open[t], S = t === "left" && v ? v.mode !== "expanded" : i !== "none" && !y, C = t === "left" && v ? v.mode === "hidden" : S && i === "offcanvas", E = t !== "right" || p.fit.fits, D = t === "right" ? g ?? 320 : v?.width ?? (S ? 56 : 256), { panelRef: k, gripRef: A } = n({
268
+ function Oe({ side: t = "left", variant: n = "sidebar", collapsible: i = "icon", ariaLabel: a = "Sidebar", children: o, className: l, panelClassName: u, style: d, ref: p, ...m }) {
269
+ let h = Se(), g = S(O(h.fit.shellId).resizeSidebar), { bounds: _, panelWidth: v, resizePanel: y } = h.fit, b = h.fit.sidebar, x = h.open[t], w = t === "left" && b ? b.mode !== "expanded" : i !== "none" && !x, T = t === "left" && b ? b.mode === "hidden" : w && i === "offcanvas", E = t !== "right" || h.fit.fits, D = t === "right" ? v ?? 320 : b?.width ?? (w ? 56 : 256), { panelRef: k, gripRef: A } = r({
270
270
  size: D,
271
- defaultSize: t === "right" ? p.fit.defaultPanelWidth ?? (h.min || 320) : 256,
272
- minSize: t === "right" ? h.min || 320 : S ? D : v?.minWidth ?? 180,
273
- maxSize: t === "right" ? h.max || 640 : S ? D : v?.maxWidth ?? 480,
274
- collapsed: C,
271
+ defaultSize: t === "right" ? h.fit.defaultPanelWidth ?? (_.min || 320) : 256,
272
+ minSize: t === "right" ? _.min || 320 : w ? D : b?.minWidth ?? 180,
273
+ maxSize: t === "right" ? _.max || 640 : w ? D : b?.maxWidth ?? 480,
274
+ collapsed: T,
275
275
  enabled: E,
276
276
  overshoot: !1,
277
- transition: p.reduce ? { duration: 0 } : se,
278
- onSizeChange: (e) => t === "right" ? _(Number(e)) : m(Number(e)),
279
- onCollapsedChange: i === "none" ? void 0 : (e) => p.setOpen(!e, t)
280
- }), j = u((e) => {
281
- k.current = e, typeof d == "function" ? d(e) : d && (d.current = e);
282
- }, [k, d]);
283
- return t === "right" && !p.fit.fits ? null : /* @__PURE__ */ T(x.aside, {
284
- ...f,
277
+ transition: h.reduce ? { duration: 0 } : se,
278
+ onSizeChange: (e) => t === "right" ? y(Number(e)) : g(Number(e)),
279
+ onCollapsedChange: i === "none" ? void 0 : (e) => h.setOpen(!e, t)
280
+ }), j = f((e) => {
281
+ k.current = e, typeof p == "function" ? p(e) : p && (p.current = e);
282
+ }, [k, p]);
283
+ return t === "right" && !h.fit.fits ? null : /* @__PURE__ */ c(C.aside, {
284
+ ...m,
285
285
  ref: j,
286
286
  initial: !1,
287
287
  "aria-label": a,
288
- "aria-hidden": C || void 0,
289
- inert: C || void 0,
288
+ "aria-hidden": T || void 0,
289
+ inert: T || void 0,
290
290
  "data-slot": "sidebar",
291
- "data-state": S ? "collapsed" : "expanded",
291
+ "data-state": w ? "collapsed" : "expanded",
292
292
  "data-collapsible": i,
293
- "data-variant": r,
293
+ "data-variant": n,
294
294
  "data-side": t,
295
- animate: { ...t === "right" ? { marginLeft: C ? "-0.5rem" : "0rem" } : { marginRight: C ? "-0.5rem" : "0rem" } },
296
- transition: p.reduce ? { duration: 0 } : se,
295
+ animate: { ...t === "right" ? { marginLeft: T ? "-0.5rem" : "0rem" } : { marginRight: T ? "-0.5rem" : "0rem" } },
296
+ transition: h.reduce ? { duration: 0 } : se,
297
297
  style: {
298
- ...l,
298
+ ...d,
299
299
  flexShrink: 0
300
300
  },
301
- className: e("group/sidebar relative h-full shrink-0 will-change-[width]", "peer flex!", t === "right" && "order-last", s),
302
- children: [i !== "none" && /* @__PURE__ */ w("div", {
301
+ className: e("group/sidebar relative h-full shrink-0 will-change-[width]", "peer flex!", t === "right" && "order-last", l),
302
+ children: [i !== "none" && /* @__PURE__ */ s("div", {
303
303
  ref: A,
304
304
  role: "separator",
305
305
  "aria-label": `Resize ${a}`,
306
306
  "aria-orientation": "vertical",
307
- tabIndex: S ? -1 : 0,
308
- "aria-hidden": S || void 0,
309
- className: e("inset-y-0 w-2 hover:bg-amber-300/20 data-resizing:bg-amber-300/20 absolute z-10 cursor-col-resize touch-none focus-visible:outline-2 focus-visible:outline-ring", S && "pointer-events-none", t === "right" ? "-left-2" : "-right-2")
310
- }), /* @__PURE__ */ w("div", {
307
+ tabIndex: w ? -1 : 0,
308
+ "aria-hidden": w || void 0,
309
+ className: e("inset-y-0 w-2 hover:bg-amber-300/20 data-resizing:bg-amber-300/20 absolute z-10 cursor-col-resize touch-none focus-visible:outline-2 focus-visible:outline-ring", w && "pointer-events-none", t === "right" ? "-left-2" : "-right-2")
310
+ }), /* @__PURE__ */ s("div", {
311
311
  className: "contents",
312
- children: /* @__PURE__ */ w(x.div, {
312
+ children: /* @__PURE__ */ s(C.div, {
313
313
  initial: !1,
314
- animate: { opacity: +!C },
315
- transition: p.reduce ? de : ue,
316
- className: e("top-0 sticky flex w-full flex-col overflow-hidden", t === "right" && "ml-auto", r === "floating" && "mx-2 mt-2 h-[calc(100%-0.5rem)]", r === "inset" && "mt-2 h-[calc(100%-0.5rem)]", c),
317
- children: /* @__PURE__ */ w(xe.Provider, {
314
+ animate: { opacity: +!T },
315
+ transition: h.reduce ? de : ue,
316
+ className: e("top-0 sticky flex w-full flex-col overflow-hidden", t === "right" && "ml-auto", n === "floating" && "mx-2 mt-2 h-[calc(100%-0.5rem)]", n === "inset" && "mt-2 h-[calc(100%-0.5rem)]", u),
317
+ children: /* @__PURE__ */ s(xe.Provider, {
318
318
  value: {
319
- collapsed: S,
319
+ collapsed: w,
320
320
  collapsible: i,
321
321
  side: t
322
322
  },
@@ -351,19 +351,19 @@ function ke(e, t) {
351
351
  };
352
352
  }
353
353
  function Ae({ shellId: e, hostRef: t, railOpen: n, defaultPanelWidth: r, onUnfit: i }) {
354
- let a = p(), o = e ?? a, s = y(O(o).railWidth), [c] = g(() => ({ panelWidth: r ?? null })), l = b(Z(o)), u = b(ie(o)), d = b(Y(o)), _ = b(X(o));
355
- S(() => {
354
+ let a = h(), o = e ?? a, s = x(O(o).railWidth), [c] = v(() => ({ panelWidth: r ?? null })), l = S(Z(o)), u = S(ie(o)), d = S(Y(o)), f = S(X(o));
355
+ w(() => {
356
356
  l(c);
357
357
  }, [l, c]);
358
- let v = h(i);
359
- S(() => {
360
- v.current = i;
361
- }), S(() => {
358
+ let p = _(i);
359
+ w(() => {
360
+ p.current = i;
361
+ }), w(() => {
362
362
  let e = t.current;
363
363
  if (!e) return;
364
364
  let r = () => {
365
365
  let t = ke(e, n);
366
- u(t), M(t) || v.current?.();
366
+ u(t), M(t) || p.current?.();
367
367
  };
368
368
  r();
369
369
  let i = new ResizeObserver(r);
@@ -375,54 +375,54 @@ function Ae({ shellId: e, hostRef: t, railOpen: n, defaultPanelWidth: r, onUnfit
375
375
  n,
376
376
  s,
377
377
  u
378
- ]), f(() => {
378
+ ]), m(() => {
379
379
  if (e === void 0) return () => Q(o);
380
380
  }, [o, e]);
381
- let x = y(J(o));
382
- return m(() => ({
381
+ let y = x(J(o));
382
+ return g(() => ({
383
383
  shellId: o,
384
- ...x,
384
+ ...y,
385
385
  defaultPanelWidth: c.panelWidth,
386
386
  resizePanel: d,
387
- resetPanelWidth: _
387
+ resetPanelWidth: f
388
388
  }), [
389
389
  o,
390
- x,
390
+ y,
391
391
  c.panelWidth,
392
392
  d,
393
- _
393
+ f
394
394
  ]);
395
395
  }
396
396
  //#endregion
397
397
  //#region src/components/blocks/shell/animated-panel-provider.tsx
398
- function je({ children: t, shellId: n, defaultPanelWidth: r, open: i, defaultOpen: a, onOpenChange: o, openMobile: s, defaultOpenMobile: c, onOpenMobileChange: l, onNarrowChange: d, panelComponents: g, className: _, style: v, ...x }) {
399
- let T = p(), E = n ?? T;
400
- f(() => {
398
+ function je({ children: t, shellId: n, defaultPanelWidth: r, open: i, defaultOpen: a, onOpenChange: o, openMobile: c, defaultOpenMobile: l, onOpenMobileChange: u, onNarrowChange: d, panelComponents: p, className: v, style: y, ...b }) {
399
+ let C = h(), E = n ?? C;
400
+ m(() => {
401
401
  if (n === void 0) return () => Q(E);
402
402
  }, [E, n]);
403
- let D = O(E), k = y(D.railWidth), A = y(D.open), j = y(D.mobile), M = b(D.open), N = b(D.mobile), P = b(D.seed), F = b(D.handlers);
404
- f(() => {
405
- P(a, c);
403
+ let D = O(E), k = x(D.railWidth), A = x(D.open), j = x(D.mobile), M = S(D.open), N = S(D.mobile), P = S(D.seed), F = S(D.handlers);
404
+ m(() => {
405
+ P(a, l);
406
406
  }, [
407
407
  P,
408
408
  a,
409
- c
409
+ l
410
410
  ]);
411
- let ee = Ee(), te = C() ?? !1, ne = h(null), re = h(null), I = h(null), L = h(!0), R = h(!0), z = i?.left, B = i?.right, V = s?.left, H = s?.right, U = m(() => ({
411
+ let ee = Ee(), te = T() ?? !1, ne = _(null), re = _(null), I = _(null), L = _(!0), R = _(!0), z = i?.left, B = i?.right, V = c?.left, H = c?.right, U = g(() => ({
412
412
  left: z ?? A.left,
413
413
  right: B ?? A.right
414
414
  }), [
415
415
  z,
416
416
  B,
417
417
  A
418
- ]), W = m(() => ({
418
+ ]), W = g(() => ({
419
419
  left: V ?? j.left,
420
420
  right: H ?? j.right
421
421
  }), [
422
422
  V,
423
423
  H,
424
424
  j
425
- ]), G = u((e, t) => {
425
+ ]), G = f((e, t) => {
426
426
  (!e || t !== "right" || L.current) && (!e || t !== "left" || R.current) && ((t === "left" ? z : B) === void 0 && M((n) => n[t] === e ? n : {
427
427
  ...n,
428
428
  [t]: e
@@ -432,25 +432,25 @@ function je({ children: t, shellId: n, defaultPanelWidth: r, open: i, defaultOpe
432
432
  B,
433
433
  o,
434
434
  M
435
- ]), K = u((e, t) => {
435
+ ]), K = f((e, t) => {
436
436
  (!e || t !== "right" || L.current) && (!e || t !== "left" || R.current) && ((t === "left" ? V : H) === void 0 && N((n) => n[t] === e ? n : {
437
437
  ...n,
438
438
  [t]: e
439
- }), l?.(e, t));
439
+ }), u?.(e, t));
440
440
  }, [
441
441
  V,
442
442
  H,
443
- l,
443
+ u,
444
444
  N
445
445
  ]);
446
- f(() => (F({
446
+ m(() => (F({
447
447
  setOpen: G,
448
448
  setOpenMobile: K
449
449
  }), () => F(null)), [
450
450
  F,
451
451
  G,
452
452
  K
453
- ]), f(() => {
453
+ ]), m(() => {
454
454
  (z !== void 0 || B !== void 0) && M((e) => ({
455
455
  ...e,
456
456
  ...i
@@ -460,55 +460,55 @@ function je({ children: t, shellId: n, defaultPanelWidth: r, open: i, defaultOpe
460
460
  B,
461
461
  i,
462
462
  M
463
- ]), f(() => {
463
+ ]), m(() => {
464
464
  (V !== void 0 || H !== void 0) && N((e) => ({
465
465
  ...e,
466
- ...s
466
+ ...c
467
467
  }));
468
468
  }, [
469
469
  V,
470
470
  H,
471
- s,
471
+ c,
472
472
  N
473
473
  ]);
474
- let q = u((e) => {
474
+ let q = f((e) => {
475
475
  (e !== "left" || R.current) && G(!U[e], e);
476
- }, [U, G]), J = m(() => ({
476
+ }, [U, G]), J = g(() => ({
477
477
  left: ne,
478
478
  right: re
479
- }), []), ie = h(() => {});
480
- S(() => {
479
+ }), []), ie = _(() => {});
480
+ w(() => {
481
481
  ie.current = () => {
482
482
  U.right && G(!1, "right"), W.right && K(!1, "right");
483
483
  };
484
484
  });
485
- let Y = u(() => ie.current(), []), X = Ae({
485
+ let Y = f(() => ie.current(), []), X = Ae({
486
486
  shellId: E,
487
487
  hostRef: I,
488
488
  railOpen: U.left,
489
489
  defaultPanelWidth: r,
490
490
  onUnfit: Y
491
491
  }), Z = !X.fits;
492
- S(() => {
492
+ w(() => {
493
493
  L.current = X.fits, R.current = X.sidebar?.canExpand ?? !0;
494
494
  });
495
- let ae = h(d);
496
- f(() => {
495
+ let ae = _(d);
496
+ m(() => {
497
497
  ae.current = d;
498
498
  });
499
- let oe = h(!1);
500
- return f(() => {
499
+ let oe = _(!1);
500
+ return m(() => {
501
501
  oe.current !== Z && (oe.current = Z, ae.current?.(Z));
502
- }, [Z]), f(() => {
502
+ }, [Z]), m(() => {
503
503
  let e = (e) => {
504
504
  e.key.toLowerCase() === "b" && (e.metaKey || e.ctrlKey) && (e.preventDefault(), q("left"));
505
505
  };
506
506
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
507
- }, [q]), /* @__PURE__ */ w(be.Provider, {
507
+ }, [q]), /* @__PURE__ */ s(be.Provider, {
508
508
  value: {
509
509
  isMobile: ee,
510
510
  fit: X,
511
- layoutId: `${T}-active`,
511
+ layoutId: `${C}-active`,
512
512
  open: U,
513
513
  openMobile: W,
514
514
  reduce: te,
@@ -517,8 +517,8 @@ function je({ children: t, shellId: n, defaultPanelWidth: r, open: i, defaultOpe
517
517
  toggleSidebar: q,
518
518
  triggerRefs: J
519
519
  },
520
- children: /* @__PURE__ */ w("div", {
521
- ...x,
520
+ children: /* @__PURE__ */ s("div", {
521
+ ...b,
522
522
  ref: I,
523
523
  "data-slot": "sidebar-wrapper",
524
524
  "data-narrow": Z ? "" : void 0,
@@ -527,38 +527,38 @@ function je({ children: t, shellId: n, defaultPanelWidth: r, open: i, defaultOpe
527
527
  "data-state-right": U.right ? "expanded" : "collapsed",
528
528
  style: {
529
529
  ...ve,
530
- ...v,
530
+ ...y,
531
531
  ...k !== null && { "--sidebar-width": `${k}px` }
532
532
  },
533
- className: e("group/sidebar-wrapper min-w-0 gap-x-2 flex w-full overflow-hidden", _),
533
+ className: e("group/sidebar-wrapper min-w-0 gap-x-2 flex w-full overflow-hidden", v),
534
534
  children: t
535
535
  })
536
536
  });
537
537
  }
538
538
  //#endregion
539
539
  //#region src/components/blocks/shell/animated-panel-trigger.tsx
540
- var Me = l(function({ onClick: e, side: t = "left", type: n = "button", ...r }, a) {
541
- let o = Se(), s = t === "left" && o.fit.sidebar ? o.fit.sidebar.mode === "expanded" : o.open[t], c = o.triggerRefs[t];
542
- return t === "right" && !o.fit.fits ? null : /* @__PURE__ */ w(i, {
543
- ...r,
540
+ var Me = d(function({ onClick: e, side: n = "left", type: r = "button", ...i }, a) {
541
+ let o = Se(), c = n === "left" && o.fit.sidebar ? o.fit.sidebar.mode === "expanded" : o.open[n], l = o.triggerRefs[n];
542
+ return n === "right" && !o.fit.fits ? null : /* @__PURE__ */ s(t, {
543
+ ...i,
544
544
  ref: (e) => {
545
- c.current = e, typeof a == "function" ? a(e) : a && (a.current = e);
545
+ l.current = e, typeof a == "function" ? a(e) : a && (a.current = e);
546
546
  },
547
- disabled: r.disabled || t === "left" && o.fit.sidebar?.canExpand === !1,
548
- type: n,
547
+ disabled: i.disabled || n === "left" && o.fit.sidebar?.canExpand === !1,
548
+ type: r,
549
549
  variant: "ghost",
550
550
  size: "icon-xl",
551
- "aria-label": r["aria-label"] ?? "Toggle sidebar",
552
- "aria-expanded": s,
551
+ "aria-label": i["aria-label"] ?? "Toggle sidebar",
552
+ "aria-expanded": c,
553
553
  "data-slot": "sidebar-trigger",
554
- "data-side": t,
555
- "data-state": s ? "expanded" : "collapsed",
556
- onClick: (n) => {
557
- e?.(n), !n.defaultPrevented && o.toggleSidebar(t);
554
+ "data-side": n,
555
+ "data-state": c ? "expanded" : "collapsed",
556
+ onClick: (t) => {
557
+ e?.(t), !t.defaultPrevented && o.toggleSidebar(n);
558
558
  }
559
559
  });
560
- }), Ne = l(function({ className: t, ...n }, r) {
561
- return /* @__PURE__ */ w(x.main, {
560
+ }), Ne = d(function({ className: t, ...n }, r) {
561
+ return /* @__PURE__ */ s(C.main, {
562
562
  ...n,
563
563
  ref: r,
564
564
  "data-slot": "sidebar-inset",
@@ -568,38 +568,38 @@ var Me = l(function({ onClick: e, side: t = "left", type: n = "button", ...r },
568
568
  });
569
569
  //#endregion
570
570
  //#region src/components/blocks/shell/shell-layout.tsx
571
- function Pe({ children: t, variant: n = "desktop", panels: r, className: i, header: c, trailing: l, defaultOpen: u, panelComponents: d, ...f }) {
572
- let p = s.useId(), m = f.shellId ?? p;
573
- s.useEffect(() => {
574
- if (f.shellId === void 0) return () => Q(m);
575
- }, [m, f.shellId]);
576
- let h = y(O(m).components), g = h.left ?? d?.left ?? r?.left?.component, _ = h.right ?? d?.right ?? r?.right?.component, v = {
571
+ function Pe({ children: t, variant: n = "desktop", panels: r, className: i, header: u, trailing: d, defaultOpen: f, panelComponents: p, ...m }) {
572
+ let h = l.useId(), g = m.shellId ?? h;
573
+ l.useEffect(() => {
574
+ if (m.shellId === void 0) return () => Q(g);
575
+ }, [g, m.shellId]);
576
+ let _ = x(O(g).components), v = _.left ?? p?.left ?? r?.left?.component, y = _.right ?? p?.right ?? r?.right?.component, b = {
577
577
  ...r?.left && { left: r.left.defaultOpen ?? !0 },
578
578
  ...r?.right && { right: r.right.defaultOpen ?? !1 },
579
- ...u
579
+ ...f
580
580
  };
581
- return /* @__PURE__ */ T(je, {
582
- ...f,
583
- shellId: m,
584
- defaultOpen: v,
581
+ return /* @__PURE__ */ c(je, {
582
+ ...m,
583
+ shellId: g,
584
+ defaultOpen: b,
585
585
  className: e("min-h-0 px-2 pb-2 relative h-full", n === "web" && "pt-2", i, "bg-linear-to-tr/increasing from-neutral-200 via-neutral-100 to-stone-200 dark:from-neutral-900 dark:via-neutral-950 dark:to-stone-950"),
586
586
  style: { paddingTop: n === "desktop" ? 48 : 0 },
587
587
  children: [
588
- g && /* @__PURE__ */ w(Oe, {
588
+ v && /* @__PURE__ */ s(Oe, {
589
589
  ariaLabel: "Primary navigation",
590
590
  collapsible: "icon",
591
591
  role: "navigation",
592
592
  variant: "inset",
593
- children: g
593
+ children: v
594
594
  }),
595
- /* @__PURE__ */ T(Ne, { children: [/* @__PURE__ */ T("header", {
595
+ /* @__PURE__ */ c(Ne, { children: [/* @__PURE__ */ c("header", {
596
596
  className: "h-12 gap-2 px-2 flex flex-row! items-center justify-between border-b",
597
597
  children: [
598
- g && /* @__PURE__ */ w("div", {
598
+ v && /* @__PURE__ */ s("div", {
599
599
  className: "min-w-0 gap-2 flex shrink-0 items-center justify-start",
600
- children: /* @__PURE__ */ w(Me, {
600
+ children: /* @__PURE__ */ s(Me, {
601
601
  side: "left",
602
- children: /* @__PURE__ */ w("span", {
602
+ children: /* @__PURE__ */ s("span", {
603
603
  className: "motion-press",
604
604
  role: "img",
605
605
  "aria-label": "PanelLeft",
@@ -611,23 +611,23 @@ function Pe({ children: t, variant: n = "desktop", panels: r, className: i, head
611
611
  animationDelay: "0ms",
612
612
  color: "currentColor"
613
613
  },
614
- children: /* @__PURE__ */ w(a, {
614
+ children: /* @__PURE__ */ s(a, {
615
615
  size: 24,
616
616
  "aria-hidden": "true"
617
617
  })
618
618
  })
619
619
  })
620
620
  }),
621
- c && /* @__PURE__ */ w("div", {
621
+ u && /* @__PURE__ */ s("div", {
622
622
  className: "min-w-0 flex flex-1 items-center",
623
- children: c
623
+ children: u
624
624
  }),
625
- (l || _) && /* @__PURE__ */ T("div", {
625
+ (d || y) && /* @__PURE__ */ c("div", {
626
626
  className: "gap-2 ml-auto flex shrink-0 items-center justify-end",
627
- children: [l, _ && /* @__PURE__ */ w(Me, {
627
+ children: [d, y && /* @__PURE__ */ s(Me, {
628
628
  "aria-label": "Toggle panel",
629
629
  side: "right",
630
- children: /* @__PURE__ */ w("span", {
630
+ children: /* @__PURE__ */ s("span", {
631
631
  className: "opacity-70",
632
632
  role: "img",
633
633
  "aria-label": "PanelRight",
@@ -637,7 +637,7 @@ function Pe({ children: t, variant: n = "desktop", panels: r, className: i, head
637
637
  justifyContent: "center",
638
638
  color: "currentColor"
639
639
  },
640
- children: /* @__PURE__ */ w(o, {
640
+ children: /* @__PURE__ */ s(o, {
641
641
  size: 24,
642
642
  "aria-hidden": "true"
643
643
  })
@@ -645,18 +645,18 @@ function Pe({ children: t, variant: n = "desktop", panels: r, className: i, head
645
645
  })]
646
646
  })
647
647
  ]
648
- }), /* @__PURE__ */ w("div", {
648
+ }), /* @__PURE__ */ s("div", {
649
649
  className: "min-h-24 flex-1 overflow-auto",
650
650
  children: t
651
651
  })] }),
652
- _ && /* @__PURE__ */ w(Oe, {
652
+ y && /* @__PURE__ */ s(Oe, {
653
653
  ariaLabel: r?.right?.name ?? "Secondary panel",
654
654
  className: e("bg-neutral-50 dark:border-neutral-800 dark:bg-neutral-900", "rounded-md", "bezel-lit-t-2 bezel-lit-blur-2 bezel-lit/57 bezel-dim-b-2 bezel-dim-blur-3 bezel-dim/11 dark:bezel-lit-blur-3 dark:bezel-lit/14 dark:bezel-dim/78"),
655
655
  collapsible: "offcanvas",
656
656
  role: "complementary",
657
657
  side: "right",
658
658
  variant: "inset",
659
- children: _
659
+ children: y
660
660
  })
661
661
  ]
662
662
  });
@@ -664,56 +664,56 @@ function Pe({ children: t, variant: n = "desktop", panels: r, className: i, head
664
664
  //#endregion
665
665
  //#region src/components/blocks/shell/use-shell-panels.ts
666
666
  function Fe({ shellId: e, defaultOpen: t, defaultOpenMobile: n, defaultPanelWidth: r, onPanelChange: i } = {}) {
667
- let a = p(), o = e ?? a;
668
- f(() => {
667
+ let a = h(), o = e ?? a;
668
+ m(() => {
669
669
  if (e === void 0) return () => Q(o);
670
670
  }, [o, e]);
671
- let s = O(o), c = y(s.railWidth), l = b(s.resizeSidebar), d = y(s.open), h = y(s.mobile), g = b(s.setOpen), _ = b(s.setOpenMobile), v = b(s.toggle), x = y(s.components), S = b(s.components), C = !y(G(o)), { sidebar: w } = y(J(o));
671
+ let s = O(o), c = x(s.railWidth), l = S(s.resizeSidebar), u = x(s.open), d = x(s.mobile), p = S(s.setOpen), _ = S(s.setOpenMobile), v = S(s.toggle), y = x(s.components), b = S(s.components), C = !x(G(o)), { sidebar: w } = x(J(o));
672
672
  return {
673
673
  shellId: o,
674
674
  sidebar: w,
675
675
  sidebarWidth: c,
676
676
  resizeSidebar: l,
677
677
  isNarrow: C,
678
- panelWidth: y(q(o)),
679
- resizePanel: b(Y(o)),
680
- open: d,
681
- openMobile: h,
682
- setOpen: g,
678
+ panelWidth: x(q(o)),
679
+ resizePanel: S(Y(o)),
680
+ open: u,
681
+ openMobile: d,
682
+ setOpen: p,
683
683
  setOpenMobile: _,
684
684
  toggle: v,
685
- openPanel: u((e, t) => {
686
- t !== void 0 && S((n) => n[e] === t ? n : {
685
+ openPanel: f((e, t) => {
686
+ t !== void 0 && b((n) => n[e] === t ? n : {
687
687
  ...n,
688
688
  [e]: t
689
- }), g(!0, e);
690
- }, [g, S]),
691
- providerProps: m(() => ({
689
+ }), p(!0, e);
690
+ }, [p, b]),
691
+ providerProps: g(() => ({
692
692
  shellId: o,
693
693
  defaultPanelWidth: r,
694
694
  defaultOpen: t,
695
695
  defaultOpenMobile: n,
696
696
  onOpenChange: i,
697
697
  onOpenMobileChange: i,
698
- panelComponents: x
698
+ panelComponents: y
699
699
  }), [
700
700
  o,
701
701
  r,
702
702
  t,
703
703
  n,
704
704
  i,
705
- x
705
+ y
706
706
  ])
707
707
  };
708
708
  }
709
709
  //#endregion
710
710
  //#region src/components/blocks/shell/use-shell-fit-state.ts
711
711
  function Ie(e) {
712
- return y(J(e));
712
+ return x(J(e));
713
713
  }
714
714
  function Le(e) {
715
- let t = b(Y(e)), n = b(X(e));
716
- return m(() => ({
715
+ let t = S(Y(e)), n = S(X(e));
716
+ return g(() => ({
717
717
  resizePanel: t,
718
718
  resetPanelWidth: n
719
719
  }), [t, n]);