@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
@@ -0,0 +1,350 @@
1
+ import { t as e } from "./utils-BO0qfoA6.js";
2
+ import { t } from "./scroll-area-BNcHlmRX.js";
3
+ import { t as n } from "./button-DDBbG_zF.js";
4
+ import { n as r } from "./portal-context-oIZFl3NP.js";
5
+ import { ChevronRightIcon as i, XIcon as a } from "lucide-react";
6
+ import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
7
+ import { createContext as l, useContext as u } from "react";
8
+ import { mergeProps as d } from "@base-ui/react/merge-props";
9
+ import { useRender as f } from "@base-ui/react/use-render";
10
+ import { Checkbox as p } from "@base-ui/react/checkbox";
11
+ import { Drawer as m, Drawer as h } from "@base-ui/react/drawer";
12
+ import { RadioGroup as g } from "@base-ui/react/radio-group";
13
+ import { Radio as _ } from "@base-ui/react/radio";
14
+ //#region src/components/ui/drawer/context.ts
15
+ var v = l({ position: "bottom" }), y = {
16
+ bottom: "down",
17
+ left: "left",
18
+ right: "right",
19
+ top: "up"
20
+ }, b = m.createHandle;
21
+ //#endregion
22
+ //#region src/components/ui/drawer/root.tsx
23
+ function x({ swipeDirection: e, position: t = "bottom", ...n }) {
24
+ return /* @__PURE__ */ s(v.Provider, {
25
+ value: { position: t },
26
+ children: /* @__PURE__ */ s(m.Root, {
27
+ swipeDirection: e ?? y[t],
28
+ ...n
29
+ })
30
+ });
31
+ }
32
+ //#endregion
33
+ //#region src/components/ui/drawer/portal.tsx
34
+ function S(e) {
35
+ let t = r(e.container);
36
+ return /* @__PURE__ */ s(m.Portal, {
37
+ ...e,
38
+ container: t
39
+ });
40
+ }
41
+ //#endregion
42
+ //#region src/components/ui/drawer/trigger.tsx
43
+ function C(e) {
44
+ return /* @__PURE__ */ s(m.Trigger, {
45
+ "data-slot": "drawer-trigger",
46
+ ...e
47
+ });
48
+ }
49
+ //#endregion
50
+ //#region src/components/ui/drawer/close.tsx
51
+ function w(e) {
52
+ return /* @__PURE__ */ s(m.Close, {
53
+ "data-slot": "drawer-close",
54
+ ...e
55
+ });
56
+ }
57
+ //#endregion
58
+ //#region src/components/ui/drawer/swipe-area.tsx
59
+ function T({ className: t, position: n, ...r }) {
60
+ let { position: i } = u(v), a = n ?? i;
61
+ return /* @__PURE__ */ s(m.SwipeArea, {
62
+ className: e("fixed z-50 touch-none", a === "bottom" && "inset-x-0 bottom-0 h-8", a === "top" && "inset-x-0 top-0 h-8", a === "left" && "inset-y-0 left-0 w-8", a === "right" && "inset-y-0 right-0 w-8", t),
63
+ "data-slot": "drawer-swipe-area",
64
+ ...r
65
+ });
66
+ }
67
+ //#endregion
68
+ //#region src/components/ui/drawer/backdrop.tsx
69
+ function E({ className: t, ...n }) {
70
+ return /* @__PURE__ */ s(m.Backdrop, {
71
+ className: e("fixed inset-0 z-50 bg-black/32 opacity-[calc(1-var(--drawer-swipe-progress))] backdrop-blur-sm transition-opacity duration-450 ease-[cubic-bezier(0.32,0.72,0,1)] data-ending-style:opacity-0 data-starting-style:opacity-0 data-ending-style:duration-[calc(var(--drawer-swipe-strength)*400ms)] data-swiping:duration-0 supports-[-webkit-touch-callout:none]:absolute", t),
72
+ "data-slot": "drawer-backdrop",
73
+ ...n
74
+ });
75
+ }
76
+ //#endregion
77
+ //#region src/components/ui/drawer/viewport.tsx
78
+ function D({ className: t, position: n, variant: r = "default", ...i }) {
79
+ return /* @__PURE__ */ s(m.Viewport, {
80
+ className: e("fixed inset-0 z-50 [--bleed:--spacing(12)] [--inset:--spacing(0)]", "touch-none", n === "bottom" && "grid grid-rows-[1fr_auto] pt-12", n === "top" && "grid grid-rows-[auto_1fr] pb-12", n === "left" && "flex justify-start", n === "right" && "flex justify-end", r === "inset" && "px-(--inset) sm:[--inset:--spacing(4)]", r === "inset" && n !== "bottom" && "pt-(--inset)", r === "inset" && n !== "top" && "pb-(--inset)", t),
81
+ "data-slot": "drawer-viewport",
82
+ ...i
83
+ });
84
+ }
85
+ //#endregion
86
+ //#region src/components/ui/drawer/bar.tsx
87
+ function O({ className: t, position: n, render: r, ...i }) {
88
+ let { position: a } = u(v), o = n ?? a, s = {
89
+ "aria-hidden": !0,
90
+ className: e("absolute flex touch-none items-center justify-center p-3 before:rounded-full before:bg-input", o === "left" || o === "right" ? "inset-y-0 before:h-12 before:w-1" : "inset-x-0 before:h-1 before:w-12", o === "top" && "bottom-0", o === "bottom" && "top-0", o === "left" && "right-0", o === "right" && "left-0", t),
91
+ "data-slot": "drawer-bar"
92
+ };
93
+ return f({
94
+ defaultTagName: "div",
95
+ props: d(s, i),
96
+ render: r
97
+ });
98
+ }
99
+ //#endregion
100
+ //#region src/components/ui/drawer/popup.tsx
101
+ function k({ className: t, children: r, showCloseButton: i = !1, position: o, variant: l = "default", showBar: d = !1, portalProps: f, ...p }) {
102
+ let { position: h } = u(v), g = o ?? h;
103
+ return /* @__PURE__ */ c(S, {
104
+ ...f,
105
+ children: [/* @__PURE__ */ s(E, {}), /* @__PURE__ */ s(D, {
106
+ position: g,
107
+ variant: l,
108
+ children: /* @__PURE__ */ c(m.Popup, {
109
+ className: e("relative flex max-h-full min-h-0 w-full min-w-0 flex-col bg-popover not-dark:bg-clip-padding text-popover-foreground shadow-lg/5 outline-none transition-[transform,box-shadow,height,background-color] duration-450 ease-[cubic-bezier(0.32,0.72,0,1)] will-change-transform [--peek:calc(--spacing(6)-1px)] [--scale-base:calc(max(0,1-(var(--nested-drawers)*var(--stack-step))))] [--scale:clamp(0,calc(var(--scale-base)+(var(--stack-step)*var(--stack-progress))),1)] [--shrink:calc(1-var(--scale))] [--stack-peek-offset:max(0px,calc((var(--nested-drawers)-var(--stack-progress))*var(--peek)))] [--stack-progress:clamp(0,var(--drawer-swipe-progress),1)] [--stack-step:0.05] before:pointer-events-none before:absolute before:inset-0 before:shadow-[0_1px_--theme(--color-black/4%)] after:pointer-events-none after:absolute after:bg-popover data-swiping:select-none data-nested-drawer-open:overflow-hidden data-nested-drawer-open:bg-[color-mix(in_srgb,var(--popover),var(--color-black)_calc(2%*(var(--nested-drawers)-var(--stack-progress))))] data-ending-style:shadow-transparent data-starting-style:shadow-transparent data-ending-style:duration-[calc(var(--drawer-swipe-strength)*400ms)] dark:data-nested-drawer-open:bg-[color-mix(in_srgb,var(--popover),var(--color-black)_calc(6%*(var(--nested-drawers)-var(--stack-progress))))] dark:before:shadow-[0_-1px_--theme(--color-white/6%)]", "touch-none", g === "bottom" && "transform-[translateY(calc(var(--drawer-snap-point-offset)+var(--drawer-swipe-movement-y)))] data-ending-style:transform-[translateY(calc(100%+env(safe-area-inset-bottom,0px)+var(--inset)))] data-starting-style:transform-[translateY(calc(100%+env(safe-area-inset-bottom,0px)+var(--inset)))] row-start-2 -mb-[max(0px,calc(var(--drawer-snap-point-offset,0px)+clamp(0,1,var(--drawer-snap-point-offset,0px)/1px)*var(--drawer-swipe-movement-y,0px)))] border-t pb-[max(0px,calc(env(safe-area-inset-bottom,0px)+var(--drawer-snap-point-offset,0px)+clamp(0,1,var(--drawer-snap-point-offset,0px)/1px)*var(--drawer-swipe-movement-y,0px)))] not-data-starting-style:not-data-ending-style:transition-[transform,box-shadow,height,background-color,margin,padding] after:inset-x-0 after:top-full after:h-(--bleed) has-data-[slot=drawer-bar]:pt-2 data-ending-style:mb-0 data-starting-style:mb-0 data-ending-style:pb-0 data-starting-style:pb-0", g === "top" && "data-starting-style:transform-[translateY(calc(-100%-var(--inset)))] data-ending-style:transform-[translateY(calc(-100%-var(--inset)))] transform-[translateY(var(--drawer-swipe-movement-y))] border-b after:inset-x-0 after:bottom-full after:h-(--bleed) has-data-[slot=drawer-bar]:pb-2", g === "left" && "data-starting-style:transform-[translateX(calc(-100%-var(--inset)))] data-ending-style:transform-[translateX(calc(-100%-var(--inset)))] transform-[translateX(var(--drawer-swipe-movement-x))] w-[calc(100%-(--spacing(12)))] max-w-md border-e after:inset-y-0 after:end-full after:w-(--bleed) has-data-[slot=drawer-bar]:pe-2", g === "right" && "transform-[translateX(var(--drawer-swipe-movement-x))] data-ending-style:transform-[translateX(calc(100%+var(--inset)))] data-starting-style:transform-[translateX(calc(100%+var(--inset)))] col-start-2 w-[calc(100%-(--spacing(12)))] max-w-md border-s after:inset-y-0 after:start-full after:w-(--bleed) has-data-[slot=drawer-bar]:ps-2", l !== "straight" && e(g === "bottom" && "rounded-t-2xl", g === "top" && "rounded-b-2xl **:data-[slot=drawer-footer]:rounded-b-[calc(var(--radius-2xl)-1px)]", g === "left" && "rounded-e-2xl **:data-[slot=drawer-footer]:rounded-ee-[calc(var(--radius-2xl)-1px)]", g === "right" && "rounded-s-2xl **:data-[slot=drawer-footer]:rounded-es-[calc(var(--radius-2xl)-1px)]"), l === "default" && e(g === "bottom" && "before:rounded-t-[calc(var(--radius-2xl)-1px)]", g === "top" && "before:rounded-b-[calc(var(--radius-2xl)-1px)]", g === "left" && "before:rounded-e-[calc(var(--radius-2xl)-1px)]", g === "right" && "before:rounded-s-[calc(var(--radius-2xl)-1px)]"), l === "inset" && "before:hidden sm:rounded-2xl sm:border sm:after:bg-transparent sm:before:rounded-[calc(var(--radius-2xl)-1px)] sm:**:data-[slot=drawer-footer]:rounded-b-[calc(var(--radius-2xl)-1px)]", l === "straight" && "[--stack-step:0]", (g === "bottom" || g === "top") && "h-(--drawer-height,auto) [--height:max(0px,calc(var(--drawer-frontmost-height,var(--drawer-height))))] data-nested-drawer-open:h-(--height)", g === "bottom" && "data-nested-drawer-open:transform-[translateY(calc(var(--drawer-swipe-movement-y)-var(--stack-peek-offset)-(var(--shrink)*var(--height))))_scale(var(--scale))] origin-[50%_calc(100%-var(--inset))]", g === "top" && "data-nested-drawer-open:transform-[translateY(calc(var(--drawer-swipe-movement-y)+var(--stack-peek-offset)+(var(--shrink)*var(--height))))_scale(var(--scale))] origin-[50%_var(--inset)]", g === "left" && "data-nested-drawer-open:transform-[translateX(calc(var(--drawer-swipe-movement-x)+var(--stack-peek-offset)))_scale(var(--scale))] origin-right", g === "right" && "data-nested-drawer-open:transform-[translateX(calc(var(--drawer-swipe-movement-x)-var(--stack-peek-offset)))_scale(var(--scale))] origin-left", t),
110
+ "data-slot": "drawer-popup",
111
+ ...p,
112
+ children: [
113
+ r,
114
+ i && /* @__PURE__ */ s(m.Close, {
115
+ "aria-label": "Close",
116
+ className: "absolute end-2 top-2",
117
+ render: /* @__PURE__ */ s(n, {
118
+ size: "icon",
119
+ variant: "ghost"
120
+ }),
121
+ children: /* @__PURE__ */ s(a, {})
122
+ }),
123
+ d && /* @__PURE__ */ s(O, {})
124
+ ]
125
+ })
126
+ })]
127
+ });
128
+ }
129
+ //#endregion
130
+ //#region src/components/ui/drawer/content.tsx
131
+ var A = m.Content;
132
+ //#endregion
133
+ //#region src/components/ui/drawer/header.tsx
134
+ function j({ className: t, allowSelection: n = !1, render: r, ...i }) {
135
+ let a = {
136
+ className: e("flex flex-col gap-2 p-6 in-[[data-slot=drawer-popup]:has([data-slot=drawer-panel])]:pb-3 max-sm:pb-4", !n && "cursor-default", t),
137
+ "data-slot": "drawer-header"
138
+ };
139
+ return f({
140
+ defaultTagName: "div",
141
+ props: d(a, i),
142
+ render: n ? /* @__PURE__ */ s(A, { render: r }) : r
143
+ });
144
+ }
145
+ //#endregion
146
+ //#region src/components/ui/drawer/footer.tsx
147
+ function M({ className: t, variant: n = "default", allowSelection: r = !0, render: i, ...a }) {
148
+ let o = {
149
+ className: e("flex flex-col-reverse gap-2 px-6 pb-(--safe-area-inset-bottom,0px) sm:flex-row sm:justify-end", !r && "cursor-default", n === "default" && "border-t bg-muted/72 pt-4 pb-[calc(env(safe-area-inset-bottom,0px)+--spacing(4))]", n === "bare" && "in-[[data-slot=drawer-popup]:has([data-slot=drawer-panel])]:pt-3 pt-4 pb-[calc(env(safe-area-inset-bottom,0px)+--spacing(6))]", t),
150
+ "data-slot": "drawer-footer"
151
+ };
152
+ return f({
153
+ defaultTagName: "div",
154
+ props: d(o, a),
155
+ render: r ? /* @__PURE__ */ s(A, { render: i }) : i
156
+ });
157
+ }
158
+ //#endregion
159
+ //#region src/components/ui/drawer/title.tsx
160
+ function N({ className: t, ...n }) {
161
+ return /* @__PURE__ */ s(m.Title, {
162
+ className: e("font-heading font-semibold text-xl leading-none", t),
163
+ "data-slot": "drawer-title",
164
+ ...n
165
+ });
166
+ }
167
+ //#endregion
168
+ //#region src/components/ui/drawer/description.tsx
169
+ function P({ className: t, ...n }) {
170
+ return /* @__PURE__ */ s(m.Description, {
171
+ className: e("text-muted-foreground text-sm", t),
172
+ "data-slot": "drawer-description",
173
+ ...n
174
+ });
175
+ }
176
+ //#endregion
177
+ //#region src/components/ui/drawer/panel.tsx
178
+ function F({ className: n, scrollFade: r = !0, scrollable: i = !0, allowSelection: a = !0, render: o, ...c }) {
179
+ let l = {
180
+ className: e("p-6 in-[[data-slot=drawer-popup]:has([data-slot=drawer-header])]:pt-1 in-[[data-slot=drawer-popup]:has([data-slot=drawer-footer]:not(.border-t))]:pb-1", !a && "cursor-default", n),
181
+ "data-slot": "drawer-panel"
182
+ }, u = f({
183
+ defaultTagName: "div",
184
+ props: d(l, c),
185
+ render: a ? /* @__PURE__ */ s(A, { render: o }) : o
186
+ });
187
+ return i ? /* @__PURE__ */ s(t, {
188
+ className: "touch-auto",
189
+ scrollFade: r,
190
+ children: u
191
+ }) : u;
192
+ }
193
+ //#endregion
194
+ //#region src/components/ui/drawer/menu.tsx
195
+ function I({ className: t, render: n, ...r }) {
196
+ let i = {
197
+ className: e("-m-2 flex flex-col", t),
198
+ "data-slot": "drawer-menu"
199
+ };
200
+ return f({
201
+ defaultTagName: "nav",
202
+ props: d(i, r),
203
+ render: n
204
+ });
205
+ }
206
+ //#endregion
207
+ //#region src/components/ui/drawer/menu-item.tsx
208
+ function L({ className: t, variant: n = "default", render: r, disabled: i, ...a }) {
209
+ let o = {
210
+ className: e("flex min-h-9 w-full cursor-default select-none items-center gap-2 rounded-sm px-2 py-1 text-base text-foreground outline-none hover:bg-accent hover:text-accent-foreground disabled:pointer-events-none disabled:opacity-64 data-[variant=destructive]:text-destructive-foreground sm:min-h-8 sm:text-sm [&>svg:not([class*='opacity-'])]:opacity-80 [&>svg:not([class*='size-'])]:size-4.5 sm:[&>svg:not([class*='size-'])]:size-4 [&>svg]:pointer-events-none [&>svg]:-mx-0.5 [&>svg]:shrink-0", t),
211
+ "data-slot": "drawer-menu-item",
212
+ "data-variant": n,
213
+ disabled: i,
214
+ type: "button"
215
+ };
216
+ return f({
217
+ defaultTagName: "button",
218
+ props: d(o, a),
219
+ render: r
220
+ });
221
+ }
222
+ //#endregion
223
+ //#region src/components/ui/drawer/menu-separator.tsx
224
+ function R({ className: t, render: n, ...r }) {
225
+ let i = {
226
+ className: e("mx-2 my-1 h-px bg-border", t),
227
+ "data-slot": "drawer-menu-separator"
228
+ };
229
+ return f({
230
+ defaultTagName: "div",
231
+ props: d(i, r),
232
+ render: n
233
+ });
234
+ }
235
+ //#endregion
236
+ //#region src/components/ui/drawer/menu-group.tsx
237
+ function z({ className: t, render: n, ...r }) {
238
+ let i = {
239
+ className: e("flex flex-col", t),
240
+ "data-slot": "drawer-menu-group"
241
+ };
242
+ return f({
243
+ defaultTagName: "div",
244
+ props: d(i, r),
245
+ render: n
246
+ });
247
+ }
248
+ //#endregion
249
+ //#region src/components/ui/drawer/menu-group-label.tsx
250
+ function B({ className: t, render: n, ...r }) {
251
+ let i = {
252
+ className: e("px-2 py-1.5 font-medium text-muted-foreground text-xs", t),
253
+ "data-slot": "drawer-menu-group-label"
254
+ };
255
+ return f({
256
+ defaultTagName: "div",
257
+ props: d(i, r),
258
+ render: n
259
+ });
260
+ }
261
+ //#endregion
262
+ //#region src/components/ui/drawer/menu-trigger.tsx
263
+ function V({ className: t, children: n, ...r }) {
264
+ return /* @__PURE__ */ c(C, {
265
+ className: e("flex min-h-9 w-full cursor-default select-none items-center gap-2 rounded-sm px-2 py-1 text-base text-foreground outline-none hover:bg-accent hover:text-accent-foreground sm:min-h-8 sm:text-sm [&_svg:not(:last-child)]:-mx-0.5 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", t),
266
+ "data-slot": "drawer-menu-trigger",
267
+ ...r,
268
+ children: [n, /* @__PURE__ */ s(i, { className: "ms-auto -me-0.5 opacity-80" })]
269
+ });
270
+ }
271
+ //#endregion
272
+ //#region src/components/ui/drawer/menu-checkbox-item.tsx
273
+ function H({ className: t, children: n, checked: r, defaultChecked: i, onCheckedChange: a, variant: l = "default", disabled: u, render: d, ...f }) {
274
+ return /* @__PURE__ */ s(p.Root, {
275
+ checked: r,
276
+ className: e("grid min-h-9 w-full cursor-default select-none items-center gap-2 rounded-sm px-2 py-1 text-base text-foreground outline-none hover:bg-accent hover:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-64 sm:min-h-8 sm:text-sm [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:-mx-0.5 [&_svg]:shrink-0", l === "switch" ? "grid-cols-[1fr_auto] gap-4 pe-1.5" : "grid-cols-[1rem_1fr] pe-4", t),
277
+ "data-slot": "drawer-menu-checkbox-item",
278
+ defaultChecked: i,
279
+ disabled: u,
280
+ onCheckedChange: a,
281
+ render: d,
282
+ ...f,
283
+ children: l === "switch" ? /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s("span", {
284
+ className: "col-start-1",
285
+ children: n
286
+ }), /* @__PURE__ */ s(p.Indicator, {
287
+ className: "inset-shadow-[0_1px_--theme(--color-black/4%)] col-start-2 inline-flex h-[calc(var(--thumb-size)+2px)] w-[calc(var(--thumb-size)*2-2px)] shrink-0 items-center rounded-full p-px outline-none transition-[background-color,box-shadow] duration-200 [--thumb-size:--spacing(4)] focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background data-checked:bg-primary data-unchecked:bg-input data-disabled:opacity-64 sm:[--thumb-size:--spacing(3)]",
288
+ keepMounted: !0,
289
+ children: /* @__PURE__ */ s("span", { className: "pointer-events-none block aspect-square h-full in-[[data-slot=drawer-menu-checkbox-item][data-checked]]:origin-[var(--thumb-size)_50%] origin-left in-[[data-slot=drawer-menu-checkbox-item][data-checked]]:translate-x-[calc(var(--thumb-size)-4px)] in-[[data-slot=drawer-menu-checkbox-item]:active]:not-data-disabled:scale-x-110 in-[[data-slot=drawer-menu-checkbox-item]:active]:rounded-[var(--thumb-size)/calc(var(--thumb-size)*1.10)] rounded-(--thumb-size) bg-background shadow-sm/5 will-change-transform [transition:translate_.15s,border-radius_.15s,scale_.1s_.1s,transform-origin_.15s]" })
290
+ })] }) : /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(p.Indicator, {
291
+ className: "col-start-1",
292
+ children: /* @__PURE__ */ s("svg", {
293
+ fill: "none",
294
+ height: "24",
295
+ stroke: "currentColor",
296
+ strokeLinecap: "round",
297
+ strokeLinejoin: "round",
298
+ strokeWidth: "2",
299
+ viewBox: "0 0 24 24",
300
+ width: "24",
301
+ xmlns: "http://www.w3.org/2000/svg",
302
+ children: /* @__PURE__ */ s("path", { d: "M5.252 12.7 10.2 18.63 18.748 5.37" })
303
+ })
304
+ }), /* @__PURE__ */ s("span", {
305
+ className: "col-start-2",
306
+ children: n
307
+ })] })
308
+ });
309
+ }
310
+ //#endregion
311
+ //#region src/components/ui/drawer/menu-radio-group.tsx
312
+ function U({ className: t, ...n }) {
313
+ return /* @__PURE__ */ s(g, {
314
+ className: e("flex flex-col", t),
315
+ "data-slot": "drawer-menu-radio-group",
316
+ ...n
317
+ });
318
+ }
319
+ //#endregion
320
+ //#region src/components/ui/drawer/menu-radio-item.tsx
321
+ function W({ className: t, children: n, value: r, disabled: i, render: a, ...o }) {
322
+ return /* @__PURE__ */ c(_.Root, {
323
+ className: e("grid min-h-9 w-full cursor-default select-none items-center gap-2 rounded-sm px-2 py-1 text-base text-foreground outline-none hover:bg-accent hover:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-64 sm:min-h-8 sm:text-sm [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:-mx-0.5 [&_svg]:shrink-0", "grid-cols-[1rem_1fr] items-center pe-4", t),
324
+ "data-slot": "drawer-menu-radio-item",
325
+ disabled: i,
326
+ render: a,
327
+ value: r,
328
+ ...o,
329
+ children: [/* @__PURE__ */ s(_.Indicator, {
330
+ className: "col-start-1",
331
+ children: /* @__PURE__ */ s("svg", {
332
+ fill: "none",
333
+ height: "24",
334
+ stroke: "currentColor",
335
+ strokeLinecap: "round",
336
+ strokeLinejoin: "round",
337
+ strokeWidth: "2",
338
+ viewBox: "0 0 24 24",
339
+ width: "24",
340
+ xmlns: "http://www.w3.org/2000/svg",
341
+ children: /* @__PURE__ */ s("path", { d: "M5.252 12.7 10.2 18.63 18.748 5.37" })
342
+ })
343
+ }), /* @__PURE__ */ s("span", {
344
+ className: "col-start-2",
345
+ children: n
346
+ })]
347
+ });
348
+ }
349
+ //#endregion
350
+ export { C, b as E, w as S, x as T, k as _, V as a, E as b, R as c, F as d, P as f, A as g, j as h, H as i, L as l, M as m, W as n, B as o, N as p, U as r, z as s, h as t, I as u, O as v, S as w, T as x, D as y };
@@ -0,0 +1,87 @@
1
+ import { t as e } from "./utils-BO0qfoA6.js";
2
+ import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
3
+ import { cva as i } from "class-variance-authority";
4
+ //#region src/components/ui/empty/base.tsx
5
+ function a({ className: t, ...r }) {
6
+ return /* @__PURE__ */ n("div", {
7
+ className: e("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 text-balance px-6 py-12 text-center md:py-20", t),
8
+ "data-slot": "empty",
9
+ ...r
10
+ });
11
+ }
12
+ //#endregion
13
+ //#region src/components/ui/empty/header.tsx
14
+ function o({ className: t, ...r }) {
15
+ return /* @__PURE__ */ n("div", {
16
+ className: e("flex max-w-sm flex-col items-center text-center", t),
17
+ "data-slot": "empty-header",
18
+ ...r
19
+ });
20
+ }
21
+ //#endregion
22
+ //#region src/components/ui/empty/utils.ts
23
+ var s = i("flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0", {
24
+ defaultVariants: { variant: "default" },
25
+ variants: { variant: {
26
+ default: "bg-transparent",
27
+ icon: "relative flex size-9 shrink-0 items-center justify-center rounded-md border bg-card not-dark:bg-clip-padding text-foreground shadow-sm/5 before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-md)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] dark:before:shadow-[0_-1px_--theme(--color-white/6%)] [&_svg:not([class*='size-'])]:size-4.5"
28
+ } }
29
+ });
30
+ //#endregion
31
+ //#region src/components/ui/empty/media.tsx
32
+ function c({ className: i, variant: a = "default", ...o }) {
33
+ return /* @__PURE__ */ r("div", {
34
+ className: e("relative mb-6", i),
35
+ "data-slot": "empty-media",
36
+ "data-variant": a,
37
+ ...o,
38
+ children: [a === "icon" && /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n("div", {
39
+ "aria-hidden": "true",
40
+ className: e(s({
41
+ className: i,
42
+ variant: a
43
+ }), "pointer-events-none absolute bottom-px origin-bottom-left -translate-x-0.5 -rotate-10 scale-84 shadow-none")
44
+ }), /* @__PURE__ */ n("div", {
45
+ "aria-hidden": "true",
46
+ className: e(s({
47
+ className: i,
48
+ variant: a
49
+ }), "pointer-events-none absolute bottom-px origin-bottom-right translate-x-0.5 rotate-10 scale-84 shadow-none")
50
+ })] }), /* @__PURE__ */ n("div", {
51
+ className: e(s({
52
+ className: i,
53
+ variant: a
54
+ })),
55
+ ...o
56
+ })]
57
+ });
58
+ }
59
+ //#endregion
60
+ //#region src/components/ui/empty/title.tsx
61
+ function l({ className: t, ...r }) {
62
+ return /* @__PURE__ */ n("div", {
63
+ className: e("font-heading font-semibold text-xl", t),
64
+ "data-slot": "empty-title",
65
+ ...r
66
+ });
67
+ }
68
+ //#endregion
69
+ //#region src/components/ui/empty/description.tsx
70
+ function u({ className: t, ...r }) {
71
+ return /* @__PURE__ */ n("div", {
72
+ className: e("text-muted-foreground text-sm [&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4 [[data-slot=empty-title]+&]:mt-1", t),
73
+ "data-slot": "empty-description",
74
+ ...r
75
+ });
76
+ }
77
+ //#endregion
78
+ //#region src/components/ui/empty/content.tsx
79
+ function d({ className: t, ...r }) {
80
+ return /* @__PURE__ */ n("div", {
81
+ className: e("flex w-full min-w-0 max-w-sm flex-col items-center gap-4 text-balance text-sm", t),
82
+ "data-slot": "empty-content",
83
+ ...r
84
+ });
85
+ }
86
+ //#endregion
87
+ export { o as a, c as i, u as n, a as o, l as r, d as t };
@@ -1,13 +1,15 @@
1
- import { d as e, p as t, r as n } from "./toast-CataVXHN.js";
2
- import * as r from "react";
3
- import { Provider as i, createStore as a, useStore as o } from "jotai";
4
- import { jsx as s } from "react/jsx-runtime";
1
+ import { t as e } from "./portal-context-oIZFl3NP.js";
2
+ import { a as t } from "./tooltip-aPB3pyrl.js";
3
+ import { r as n } from "./toast-BLwJEhKU.js";
4
+ import { jsx as r } from "react/jsx-runtime";
5
+ import * as i from "react";
6
+ import { Provider as a, createStore as o, useStore as s } from "jotai";
5
7
  //#region src/components/theme-provider.tsx
6
8
  var c = "(prefers-color-scheme: dark)", l = [
7
9
  "dark",
8
10
  "light",
9
11
  "system"
10
- ], u = r.createContext(void 0);
12
+ ], u = i.createContext(void 0);
11
13
  function d(e) {
12
14
  return e !== null && l.includes(e);
13
15
  }
@@ -27,25 +29,25 @@ function p() {
27
29
  function m(e) {
28
30
  return e instanceof HTMLElement && !!(e.isContentEditable || e.closest("input, textarea, select, [contenteditable='true']"));
29
31
  }
30
- function h({ children: e, defaultTheme: t = "system", storageKey: n = "theme", disableTransitionOnChange: i = !0, ...a }) {
31
- let [o, l] = r.useState(() => {
32
+ function h({ children: e, defaultTheme: t = "system", storageKey: n = "theme", disableTransitionOnChange: a = !0, ...o }) {
33
+ let [s, l] = i.useState(() => {
32
34
  let e = localStorage.getItem(n);
33
35
  return d(e) ? e : t;
34
- }), h = r.useCallback((e) => {
36
+ }), h = i.useCallback((e) => {
35
37
  localStorage.setItem(n, e), l(e);
36
- }, [n]), g = r.useCallback((e) => {
37
- let t = document.documentElement, n = e === "system" ? f() : e, r = i ? p() : null;
38
+ }, [n]), g = i.useCallback((e) => {
39
+ let t = document.documentElement, n = e === "system" ? f() : e, r = a ? p() : null;
38
40
  t.classList.remove("light", "dark"), t.classList.add(n), r && r();
39
- }, [i]);
40
- r.useEffect(() => {
41
- if (g(o), o !== "system") return;
41
+ }, [a]);
42
+ i.useEffect(() => {
43
+ if (g(s), s !== "system") return;
42
44
  let e = window.matchMedia(c), t = () => {
43
45
  g("system");
44
46
  };
45
47
  return e.addEventListener("change", t), () => {
46
48
  e.removeEventListener("change", t);
47
49
  };
48
- }, [o, g]), r.useEffect(() => {
50
+ }, [s, g]), i.useEffect(() => {
49
51
  let e = (e) => {
50
52
  e.repeat || e.metaKey || e.ctrlKey || e.altKey || m(e.target) || e.key.toLowerCase() === "d" && l((e) => {
51
53
  let t = e === "dark" ? "light" : e === "light" ? "dark" : f() === "dark" ? "light" : "dark";
@@ -55,7 +57,7 @@ function h({ children: e, defaultTheme: t = "system", storageKey: n = "theme", d
55
57
  return window.addEventListener("keydown", e), () => {
56
58
  window.removeEventListener("keydown", e);
57
59
  };
58
- }, [n]), r.useEffect(() => {
60
+ }, [n]), i.useEffect(() => {
59
61
  let e = (e) => {
60
62
  if (e.storageArea === localStorage && e.key === n) {
61
63
  if (d(e.newValue)) {
@@ -69,12 +71,12 @@ function h({ children: e, defaultTheme: t = "system", storageKey: n = "theme", d
69
71
  window.removeEventListener("storage", e);
70
72
  };
71
73
  }, [t, n]);
72
- let _ = r.useMemo(() => ({
73
- theme: o,
74
+ let _ = i.useMemo(() => ({
75
+ theme: s,
74
76
  setTheme: h
75
- }), [o, h]);
76
- return /* @__PURE__ */ s(u.Provider, {
77
- ...a,
77
+ }), [s, h]);
78
+ return /* @__PURE__ */ r(u.Provider, {
79
+ ...o,
78
80
  value: _,
79
81
  children: e
80
82
  });
@@ -94,31 +96,31 @@ function _(e = g) {
94
96
  }
95
97
  //#endregion
96
98
  //#region src/lib/state/store.ts
97
- var v = a();
99
+ var v = o();
98
100
  //#endregion
99
101
  //#region src/lib/state/exegia-provider.tsx
100
- function y({ children: a, store: o, portalContainer: c, toast: l, tooltip: u, sound: d = !1, theme: f }) {
101
- r.useEffect(() => {
102
+ function y({ children: o, store: s, portalContainer: c, toast: l, tooltip: u, sound: d = !1, theme: f }) {
103
+ i.useEffect(() => {
102
104
  if (d) return _();
103
105
  }, [d]);
104
- let p = /* @__PURE__ */ s(t.Provider, {
106
+ let p = /* @__PURE__ */ r(e.Provider, {
105
107
  value: c,
106
- children: /* @__PURE__ */ s(e, {
108
+ children: /* @__PURE__ */ r(t, {
107
109
  ...u,
108
- children: /* @__PURE__ */ s(n, {
110
+ children: /* @__PURE__ */ r(n, {
109
111
  ...l,
110
- children: a
112
+ children: o
111
113
  })
112
114
  })
113
115
  });
114
- return /* @__PURE__ */ s(i, {
115
- store: o ?? v,
116
- children: f ? /* @__PURE__ */ s(h, {
116
+ return /* @__PURE__ */ r(a, {
117
+ store: s ?? v,
118
+ children: f ? /* @__PURE__ */ r(h, {
117
119
  ...f,
118
120
  children: p
119
121
  }) : p
120
122
  });
121
123
  }
122
- var b = o;
124
+ var b = s;
123
125
  //#endregion
124
126
  export { g as i, b as n, v as r, y as t };
@@ -0,0 +1,22 @@
1
+ import { t as e } from "./utils-BO0qfoA6.js";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ import { Fieldset as n, Fieldset as r } from "@base-ui/react/fieldset";
4
+ //#region src/components/ui/fieldset/base.tsx
5
+ function i({ className: e, ...r }) {
6
+ return /* @__PURE__ */ t(n.Root, {
7
+ className: e,
8
+ "data-slot": "fieldset",
9
+ ...r
10
+ });
11
+ }
12
+ //#endregion
13
+ //#region src/components/ui/fieldset/legend.tsx
14
+ function a({ className: r, ...i }) {
15
+ return /* @__PURE__ */ t(n.Legend, {
16
+ className: e("font-semibold text-foreground", r),
17
+ "data-slot": "fieldset-legend",
18
+ ...i
19
+ });
20
+ }
21
+ //#endregion
22
+ export { a as n, i as r, r as t };
@@ -0,0 +1,12 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { Form as t, Form as n } from "@base-ui/react/form";
3
+ //#region src/components/ui/form/base.tsx
4
+ function r({ className: n, ...r }) {
5
+ return /* @__PURE__ */ e(t, {
6
+ className: n,
7
+ "data-slot": "form",
8
+ ...r
9
+ });
10
+ }
11
+ //#endregion
12
+ export { r as n, n as t };