@xerobi/ui 0.0.0-stage → 0.1.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 (770) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/LICENSE +21 -0
  3. package/README.md +164 -2
  4. package/dist/blocks/data-table/grid/data-grid.d.ts +6 -0
  5. package/dist/blocks/data-table/grid/data-grid.js +147 -0
  6. package/dist/blocks/data-table/grid/index.d.ts +2 -0
  7. package/dist/blocks/data-table/grid/index.js +1 -0
  8. package/dist/blocks/data-table/grid/types.d.ts +47 -0
  9. package/dist/blocks/data-table/grid/types.js +1 -0
  10. package/dist/blocks/data-table/index.d.ts +3 -0
  11. package/dist/blocks/data-table/index.js +3 -0
  12. package/dist/blocks/data-table/table/index.d.ts +7 -0
  13. package/dist/blocks/data-table/table/index.js +7 -0
  14. package/dist/blocks/data-table/table/table-empty-rows.d.ts +5 -0
  15. package/dist/blocks/data-table/table/table-empty-rows.js +8 -0
  16. package/dist/blocks/data-table/table/table-head-custom.d.ts +18 -0
  17. package/dist/blocks/data-table/table/table-head-custom.js +13 -0
  18. package/dist/blocks/data-table/table/table-no-data.d.ts +7 -0
  19. package/dist/blocks/data-table/table/table-no-data.js +8 -0
  20. package/dist/blocks/data-table/table/table-pagination-custom.d.ts +16 -0
  21. package/dist/blocks/data-table/table/table-pagination-custom.js +13 -0
  22. package/dist/blocks/data-table/table/table-selected-action.d.ts +11 -0
  23. package/dist/blocks/data-table/table/table-selected-action.js +9 -0
  24. package/dist/blocks/data-table/table/table-skeleton.d.ts +5 -0
  25. package/dist/blocks/data-table/table/table-skeleton.js +7 -0
  26. package/dist/blocks/data-table/table/utils.d.ts +1 -0
  27. package/dist/blocks/data-table/table/utils.js +3 -0
  28. package/dist/blocks/data-table/tanstack.d.ts +2 -0
  29. package/dist/blocks/data-table/tanstack.js +1 -0
  30. package/dist/blocks/filters-result/filters-block.d.ts +7 -0
  31. package/dist/blocks/filters-result/filters-block.js +8 -0
  32. package/dist/blocks/filters-result/filters-result.d.ts +16 -0
  33. package/dist/blocks/filters-result/filters-result.js +10 -0
  34. package/dist/blocks/filters-result/index.d.ts +2 -0
  35. package/dist/blocks/filters-result/index.js +2 -0
  36. package/dist/blocks/form/field-autocomplete.d.ts +18 -0
  37. package/dist/blocks/form/field-autocomplete.js +27 -0
  38. package/dist/blocks/form/field-checkbox.d.ts +25 -0
  39. package/dist/blocks/form/field-checkbox.js +23 -0
  40. package/dist/blocks/form/field-code.d.ts +8 -0
  41. package/dist/blocks/form/field-code.js +8 -0
  42. package/dist/blocks/form/field-controller.d.ts +23 -0
  43. package/dist/blocks/form/field-controller.js +32 -0
  44. package/dist/blocks/form/field-country-select.d.ts +5 -0
  45. package/dist/blocks/form/field-country-select.js +9 -0
  46. package/dist/blocks/form/field-date-picker.d.ts +14 -0
  47. package/dist/blocks/form/field-date-picker.js +40 -0
  48. package/dist/blocks/form/field-editor.d.ts +5 -0
  49. package/dist/blocks/form/field-editor.js +7 -0
  50. package/dist/blocks/form/field-number-input.d.ts +5 -0
  51. package/dist/blocks/form/field-number-input.js +7 -0
  52. package/dist/blocks/form/field-phone.d.ts +5 -0
  53. package/dist/blocks/form/field-phone.js +7 -0
  54. package/dist/blocks/form/field-radio-group.d.ts +12 -0
  55. package/dist/blocks/form/field-radio-group.js +15 -0
  56. package/dist/blocks/form/field-rating.d.ts +6 -0
  57. package/dist/blocks/form/field-rating.js +8 -0
  58. package/dist/blocks/form/field-select.d.ts +21 -0
  59. package/dist/blocks/form/field-select.js +24 -0
  60. package/dist/blocks/form/field-slider.d.ts +6 -0
  61. package/dist/blocks/form/field-slider.js +8 -0
  62. package/dist/blocks/form/field-switch.d.ts +25 -0
  63. package/dist/blocks/form/field-switch.js +23 -0
  64. package/dist/blocks/form/field-text.d.ts +8 -0
  65. package/dist/blocks/form/field-text.js +28 -0
  66. package/dist/blocks/form/field-upload.d.ts +7 -0
  67. package/dist/blocks/form/field-upload.js +17 -0
  68. package/dist/blocks/form/fields.d.ts +38 -0
  69. package/dist/blocks/form/fields.js +39 -0
  70. package/dist/blocks/form/form-context.d.ts +13 -0
  71. package/dist/blocks/form/form-context.js +18 -0
  72. package/dist/blocks/form/form-provider.d.ts +6 -0
  73. package/dist/blocks/form/form-provider.js +10 -0
  74. package/dist/blocks/form/help-text.d.ts +6 -0
  75. package/dist/blocks/form/help-text.js +8 -0
  76. package/dist/blocks/form/index.d.ts +23 -0
  77. package/dist/blocks/form/index.js +22 -0
  78. package/dist/blocks/form/schema-helper.d.ts +38 -0
  79. package/dist/blocks/form/schema-helper.js +80 -0
  80. package/dist/blocks/index.d.ts +9 -0
  81. package/dist/blocks/index.js +9 -0
  82. package/dist/blocks/mega-menu/classes.d.ts +31 -0
  83. package/dist/blocks/mega-menu/classes.js +12 -0
  84. package/dist/blocks/mega-menu/components.d.ts +37 -0
  85. package/dist/blocks/mega-menu/components.js +78 -0
  86. package/dist/blocks/mega-menu/horizontal.d.ts +2 -0
  87. package/dist/blocks/mega-menu/horizontal.js +9 -0
  88. package/dist/blocks/mega-menu/index.d.ts +5 -0
  89. package/dist/blocks/mega-menu/index.js +4 -0
  90. package/dist/blocks/mega-menu/mega-nav-list.d.ts +7 -0
  91. package/dist/blocks/mega-menu/mega-nav-list.js +25 -0
  92. package/dist/blocks/mega-menu/mobile.d.ts +16 -0
  93. package/dist/blocks/mega-menu/mobile.js +27 -0
  94. package/dist/blocks/mega-menu/types.d.ts +65 -0
  95. package/dist/blocks/mega-menu/types.js +1 -0
  96. package/dist/blocks/mega-menu/vertical.d.ts +2 -0
  97. package/dist/blocks/mega-menu/vertical.js +9 -0
  98. package/dist/blocks/nav-basic/classes.d.ts +26 -0
  99. package/dist/blocks/nav-basic/classes.js +7 -0
  100. package/dist/blocks/nav-basic/desktop.d.ts +2 -0
  101. package/dist/blocks/nav-basic/desktop.js +26 -0
  102. package/dist/blocks/nav-basic/index.d.ts +4 -0
  103. package/dist/blocks/nav-basic/index.js +3 -0
  104. package/dist/blocks/nav-basic/mobile.d.ts +2 -0
  105. package/dist/blocks/nav-basic/mobile.js +20 -0
  106. package/dist/blocks/nav-basic/types.d.ts +14 -0
  107. package/dist/blocks/nav-basic/types.js +1 -0
  108. package/dist/blocks/nav-core/elements.d.ts +32 -0
  109. package/dist/blocks/nav-core/elements.js +37 -0
  110. package/dist/blocks/nav-core/index.d.ts +6 -0
  111. package/dist/blocks/nav-core/index.js +6 -0
  112. package/dist/blocks/nav-core/link.d.ts +12 -0
  113. package/dist/blocks/nav-core/link.js +16 -0
  114. package/dist/blocks/nav-core/nav-dropdown.d.ts +19 -0
  115. package/dist/blocks/nav-core/nav-dropdown.js +9 -0
  116. package/dist/blocks/nav-core/nav-item.d.ts +13 -0
  117. package/dist/blocks/nav-core/nav-item.js +36 -0
  118. package/dist/blocks/nav-core/types.d.ts +38 -0
  119. package/dist/blocks/nav-core/types.js +1 -0
  120. package/dist/blocks/nav-core/utils.d.ts +4 -0
  121. package/dist/blocks/nav-core/utils.js +17 -0
  122. package/dist/blocks/nav-section/classes.d.ts +27 -0
  123. package/dist/blocks/nav-section/classes.js +8 -0
  124. package/dist/blocks/nav-section/horizontal.d.ts +2 -0
  125. package/dist/blocks/nav-section/horizontal.js +12 -0
  126. package/dist/blocks/nav-section/hover-list.d.ts +13 -0
  127. package/dist/blocks/nav-section/hover-list.js +27 -0
  128. package/dist/blocks/nav-section/index.d.ts +5 -0
  129. package/dist/blocks/nav-section/index.js +4 -0
  130. package/dist/blocks/nav-section/mini.d.ts +2 -0
  131. package/dist/blocks/nav-section/mini.js +12 -0
  132. package/dist/blocks/nav-section/types.d.ts +20 -0
  133. package/dist/blocks/nav-section/types.js +1 -0
  134. package/dist/blocks/nav-section/vertical.d.ts +2 -0
  135. package/dist/blocks/nav-section/vertical.js +28 -0
  136. package/dist/blocks/settings/index.d.ts +5 -0
  137. package/dist/blocks/settings/index.js +4 -0
  138. package/dist/blocks/settings/settings-button.d.ts +1 -0
  139. package/dist/blocks/settings/settings-button.js +9 -0
  140. package/dist/blocks/settings/settings-config.d.ts +5 -0
  141. package/dist/blocks/settings/settings-config.js +14 -0
  142. package/dist/blocks/settings/settings-context.d.ts +7 -0
  143. package/dist/blocks/settings/settings-context.js +51 -0
  144. package/dist/blocks/settings/settings-drawer.d.ts +2 -0
  145. package/dist/blocks/settings/settings-drawer.js +61 -0
  146. package/dist/blocks/settings/types.d.ts +34 -0
  147. package/dist/blocks/settings/types.js +1 -0
  148. package/dist/blocks/sidebar/index.d.ts +1 -0
  149. package/dist/blocks/sidebar/index.js +1 -0
  150. package/dist/blocks/sidebar/sidebar.d.ts +63 -0
  151. package/dist/blocks/sidebar/sidebar.js +256 -0
  152. package/dist/components/accordion/accordion.d.ts +6 -0
  153. package/dist/components/accordion/accordion.js +18 -0
  154. package/dist/components/accordion/index.d.ts +1 -0
  155. package/dist/components/accordion/index.js +1 -0
  156. package/dist/components/alert/alert.d.ts +10 -0
  157. package/dist/components/alert/alert.js +33 -0
  158. package/dist/components/alert/index.d.ts +1 -0
  159. package/dist/components/alert/index.js +1 -0
  160. package/dist/components/alert-dialog/alert-dialog.d.ts +18 -0
  161. package/dist/components/alert-dialog/alert-dialog.js +42 -0
  162. package/dist/components/alert-dialog/index.d.ts +1 -0
  163. package/dist/components/alert-dialog/index.js +1 -0
  164. package/dist/components/animate/animate-border.d.ts +31 -0
  165. package/dist/components/animate/animate-border.js +77 -0
  166. package/dist/components/animate/animate-count-up.d.ts +12 -0
  167. package/dist/components/animate/animate-count-up.js +33 -0
  168. package/dist/components/animate/animate-logo.d.ts +10 -0
  169. package/dist/components/animate/animate-logo.js +20 -0
  170. package/dist/components/animate/animate-text.d.ts +19 -0
  171. package/dist/components/animate/animate-text.js +44 -0
  172. package/dist/components/animate/features.d.ts +2 -0
  173. package/dist/components/animate/features.js +2 -0
  174. package/dist/components/animate/index.d.ts +9 -0
  175. package/dist/components/animate/index.js +9 -0
  176. package/dist/components/animate/motion-container.d.ts +8 -0
  177. package/dist/components/animate/motion-container.js +7 -0
  178. package/dist/components/animate/motion-lazy.d.ts +4 -0
  179. package/dist/components/animate/motion-lazy.js +7 -0
  180. package/dist/components/animate/motion-viewport.d.ts +7 -0
  181. package/dist/components/animate/motion-viewport.js +24 -0
  182. package/dist/components/animate/scroll-progress/index.d.ts +2 -0
  183. package/dist/components/animate/scroll-progress/index.js +2 -0
  184. package/dist/components/animate/scroll-progress/scroll-progress.d.ts +22 -0
  185. package/dist/components/animate/scroll-progress/scroll-progress.js +37 -0
  186. package/dist/components/animate/scroll-progress/use-scroll-progress.d.ts +10 -0
  187. package/dist/components/animate/scroll-progress/use-scroll-progress.js +9 -0
  188. package/dist/components/animate/variants/actions.d.ts +9 -0
  189. package/dist/components/animate/variants/actions.js +17 -0
  190. package/dist/components/animate/variants/background.d.ts +6 -0
  191. package/dist/components/animate/variants/background.js +110 -0
  192. package/dist/components/animate/variants/bounce.d.ts +8 -0
  193. package/dist/components/animate/variants/bounce.js +92 -0
  194. package/dist/components/animate/variants/container.d.ts +7 -0
  195. package/dist/components/animate/variants/container.js +16 -0
  196. package/dist/components/animate/variants/fade.d.ts +9 -0
  197. package/dist/components/animate/variants/fade.js +77 -0
  198. package/dist/components/animate/variants/flip.d.ts +9 -0
  199. package/dist/components/animate/variants/flip.js +28 -0
  200. package/dist/components/animate/variants/index.d.ts +12 -0
  201. package/dist/components/animate/variants/index.js +12 -0
  202. package/dist/components/animate/variants/path.d.ts +2 -0
  203. package/dist/components/animate/variants/path.js +12 -0
  204. package/dist/components/animate/variants/rotate.d.ts +9 -0
  205. package/dist/components/animate/variants/rotate.js +20 -0
  206. package/dist/components/animate/variants/scale.d.ts +8 -0
  207. package/dist/components/animate/variants/scale.js +37 -0
  208. package/dist/components/animate/variants/slide.d.ts +9 -0
  209. package/dist/components/animate/variants/slide.js +51 -0
  210. package/dist/components/animate/variants/transition.d.ts +3 -0
  211. package/dist/components/animate/variants/transition.js +10 -0
  212. package/dist/components/animate/variants/zoom.d.ts +9 -0
  213. package/dist/components/animate/variants/zoom.js +120 -0
  214. package/dist/components/aspect-ratio/aspect-ratio.d.ts +4 -0
  215. package/dist/components/aspect-ratio/aspect-ratio.js +9 -0
  216. package/dist/components/aspect-ratio/index.d.ts +1 -0
  217. package/dist/components/aspect-ratio/index.js +1 -0
  218. package/dist/components/avatar/avatar.d.ts +11 -0
  219. package/dist/components/avatar/avatar.js +23 -0
  220. package/dist/components/avatar/index.d.ts +1 -0
  221. package/dist/components/avatar/index.js +1 -0
  222. package/dist/components/badge/badge.d.ts +15 -0
  223. package/dist/components/badge/badge.js +79 -0
  224. package/dist/components/badge/index.d.ts +1 -0
  225. package/dist/components/badge/index.js +1 -0
  226. package/dist/components/breadcrumb/breadcrumb.d.ts +10 -0
  227. package/dist/components/breadcrumb/breadcrumb.js +37 -0
  228. package/dist/components/breadcrumb/index.d.ts +1 -0
  229. package/dist/components/breadcrumb/index.js +1 -0
  230. package/dist/components/button/button.d.ts +20 -0
  231. package/dist/components/button/button.js +120 -0
  232. package/dist/components/button/index.d.ts +1 -0
  233. package/dist/components/button/index.js +1 -0
  234. package/dist/components/button-group/button-group.d.ts +10 -0
  235. package/dist/components/button-group/button-group.js +37 -0
  236. package/dist/components/button-group/index.d.ts +1 -0
  237. package/dist/components/button-group/index.js +1 -0
  238. package/dist/components/calendar/calendar.d.ts +10 -0
  239. package/dist/components/calendar/calendar.js +76 -0
  240. package/dist/components/calendar/index.d.ts +1 -0
  241. package/dist/components/calendar/index.js +1 -0
  242. package/dist/components/card/card.d.ts +11 -0
  243. package/dist/components/card/card.js +25 -0
  244. package/dist/components/card/index.d.ts +1 -0
  245. package/dist/components/card/index.js +1 -0
  246. package/dist/components/carousel/breakpoints.d.ts +7 -0
  247. package/dist/components/carousel/breakpoints.js +7 -0
  248. package/dist/components/carousel/carousel.d.ts +2 -0
  249. package/dist/components/carousel/carousel.js +13 -0
  250. package/dist/components/carousel/classes.d.ts +31 -0
  251. package/dist/components/carousel/classes.js +32 -0
  252. package/dist/components/carousel/components/arrow-button.d.ts +2 -0
  253. package/dist/components/carousel/components/arrow-button.js +10 -0
  254. package/dist/components/carousel/components/carousel-arrow-buttons.d.ts +4 -0
  255. package/dist/components/carousel/components/carousel-arrow-buttons.js +15 -0
  256. package/dist/components/carousel/components/carousel-dot-buttons.d.ts +2 -0
  257. package/dist/components/carousel/components/carousel-dot-buttons.js +19 -0
  258. package/dist/components/carousel/components/carousel-progress-bar.d.ts +2 -0
  259. package/dist/components/carousel/components/carousel-progress-bar.js +9 -0
  260. package/dist/components/carousel/components/carousel-slide.d.ts +2 -0
  261. package/dist/components/carousel/components/carousel-slide.js +16 -0
  262. package/dist/components/carousel/components/carousel-thumb.d.ts +2 -0
  263. package/dist/components/carousel/components/carousel-thumb.js +7 -0
  264. package/dist/components/carousel/components/carousel-thumbs.d.ts +2 -0
  265. package/dist/components/carousel/components/carousel-thumbs.js +15 -0
  266. package/dist/components/carousel/components/index.d.ts +7 -0
  267. package/dist/components/carousel/components/index.js +7 -0
  268. package/dist/components/carousel/hooks/index.d.ts +7 -0
  269. package/dist/components/carousel/hooks/index.js +7 -0
  270. package/dist/components/carousel/hooks/use-carousel-arrows.d.ts +3 -0
  271. package/dist/components/carousel/hooks/use-carousel-arrows.js +33 -0
  272. package/dist/components/carousel/hooks/use-carousel-auto-play.d.ts +3 -0
  273. package/dist/components/carousel/hooks/use-carousel-auto-play.js +31 -0
  274. package/dist/components/carousel/hooks/use-carousel-auto-scroll.d.ts +3 -0
  275. package/dist/components/carousel/hooks/use-carousel-auto-scroll.js +31 -0
  276. package/dist/components/carousel/hooks/use-carousel-dots.d.ts +3 -0
  277. package/dist/components/carousel/hooks/use-carousel-dots.js +34 -0
  278. package/dist/components/carousel/hooks/use-carousel-parallax.d.ts +3 -0
  279. package/dist/components/carousel/hooks/use-carousel-parallax.js +62 -0
  280. package/dist/components/carousel/hooks/use-carousel-progress.d.ts +3 -0
  281. package/dist/components/carousel/hooks/use-carousel-progress.js +17 -0
  282. package/dist/components/carousel/hooks/use-carousel.d.ts +3 -0
  283. package/dist/components/carousel/hooks/use-carousel.js +56 -0
  284. package/dist/components/carousel/hooks/use-thumbs.d.ts +3 -0
  285. package/dist/components/carousel/hooks/use-thumbs.js +35 -0
  286. package/dist/components/carousel/hooks/use-viewport-width.d.ts +1 -0
  287. package/dist/components/carousel/hooks/use-viewport-width.js +9 -0
  288. package/dist/components/carousel/index.d.ts +6 -0
  289. package/dist/components/carousel/index.js +5 -0
  290. package/dist/components/carousel/types.d.ts +104 -0
  291. package/dist/components/carousel/types.js +1 -0
  292. package/dist/components/carousel/utils.d.ts +5 -0
  293. package/dist/components/carousel/utils.js +30 -0
  294. package/dist/components/chart/chart.d.ts +2 -0
  295. package/dist/components/chart/chart.js +14 -0
  296. package/dist/components/chart/classes.d.ts +15 -0
  297. package/dist/components/chart/classes.js +16 -0
  298. package/dist/components/chart/components/chart-legends.d.ts +16 -0
  299. package/dist/components/chart/components/chart-legends.js +7 -0
  300. package/dist/components/chart/components/chart-loading.d.ts +3 -0
  301. package/dist/components/chart/components/chart-loading.js +9 -0
  302. package/dist/components/chart/components/chart-select.d.ts +6 -0
  303. package/dist/components/chart/components/chart-select.js +14 -0
  304. package/dist/components/chart/components/index.d.ts +3 -0
  305. package/dist/components/chart/components/index.js +3 -0
  306. package/dist/components/chart/index.d.ts +5 -0
  307. package/dist/components/chart/index.js +4 -0
  308. package/dist/components/chart/types.d.ts +7 -0
  309. package/dist/components/chart/types.js +1 -0
  310. package/dist/components/chart/use-chart.d.ts +6 -0
  311. package/dist/components/chart/use-chart.js +129 -0
  312. package/dist/components/checkbox/checkbox.d.ts +7 -0
  313. package/dist/components/checkbox/checkbox.js +18 -0
  314. package/dist/components/checkbox/index.d.ts +1 -0
  315. package/dist/components/checkbox/index.js +1 -0
  316. package/dist/components/chip/chip.d.ts +23 -0
  317. package/dist/components/chip/chip.js +74 -0
  318. package/dist/components/chip/index.d.ts +1 -0
  319. package/dist/components/chip/index.js +1 -0
  320. package/dist/components/collapsible/collapsible.d.ts +5 -0
  321. package/dist/components/collapsible/collapsible.js +13 -0
  322. package/dist/components/collapsible/index.d.ts +1 -0
  323. package/dist/components/collapsible/index.js +1 -0
  324. package/dist/components/color-utils/classes.d.ts +13 -0
  325. package/dist/components/color-utils/classes.js +14 -0
  326. package/dist/components/color-utils/color-picker.d.ts +16 -0
  327. package/dist/components/color-utils/color-picker.js +40 -0
  328. package/dist/components/color-utils/color-preview.d.ts +12 -0
  329. package/dist/components/color-utils/color-preview.js +15 -0
  330. package/dist/components/color-utils/index.d.ts +3 -0
  331. package/dist/components/color-utils/index.js +3 -0
  332. package/dist/components/combobox/combobox.d.ts +24 -0
  333. package/dist/components/combobox/combobox.js +58 -0
  334. package/dist/components/combobox/index.d.ts +1 -0
  335. package/dist/components/combobox/index.js +1 -0
  336. package/dist/components/command/command.d.ts +19 -0
  337. package/dist/components/command/command.js +35 -0
  338. package/dist/components/command/index.d.ts +1 -0
  339. package/dist/components/command/index.js +1 -0
  340. package/dist/components/context-menu/context-menu.d.ts +29 -0
  341. package/dist/components/context-menu/context-menu.js +51 -0
  342. package/dist/components/context-menu/index.d.ts +1 -0
  343. package/dist/components/context-menu/index.js +1 -0
  344. package/dist/components/country-select/countries.d.ts +6 -0
  345. package/dist/components/country-select/countries.js +250 -0
  346. package/dist/components/country-select/country-select.d.ts +16 -0
  347. package/dist/components/country-select/country-select.js +37 -0
  348. package/dist/components/country-select/index.d.ts +3 -0
  349. package/dist/components/country-select/index.js +2 -0
  350. package/dist/components/custom-breadcrumbs/back-link.d.ts +7 -0
  351. package/dist/components/custom-breadcrumbs/back-link.js +12 -0
  352. package/dist/components/custom-breadcrumbs/breadcrumb-link.d.ts +11 -0
  353. package/dist/components/custom-breadcrumbs/breadcrumb-link.js +10 -0
  354. package/dist/components/custom-breadcrumbs/custom-breadcrumbs.d.ts +25 -0
  355. package/dist/components/custom-breadcrumbs/custom-breadcrumbs.js +13 -0
  356. package/dist/components/custom-breadcrumbs/index.d.ts +5 -0
  357. package/dist/components/custom-breadcrumbs/index.js +4 -0
  358. package/dist/components/custom-breadcrumbs/link.d.ts +4 -0
  359. package/dist/components/custom-breadcrumbs/link.js +6 -0
  360. package/dist/components/custom-breadcrumbs/more-links.d.ts +5 -0
  361. package/dist/components/custom-breadcrumbs/more-links.js +6 -0
  362. package/dist/components/custom-date-range-picker/custom-date-range-picker.d.ts +16 -0
  363. package/dist/components/custom-date-range-picker/custom-date-range-picker.js +31 -0
  364. package/dist/components/custom-date-range-picker/index.d.ts +2 -0
  365. package/dist/components/custom-date-range-picker/index.js +2 -0
  366. package/dist/components/custom-date-range-picker/use-date-range-picker.d.ts +18 -0
  367. package/dist/components/custom-date-range-picker/use-date-range-picker.js +33 -0
  368. package/dist/components/custom-dialog/confirm-dialog.d.ts +11 -0
  369. package/dist/components/custom-dialog/confirm-dialog.js +7 -0
  370. package/dist/components/custom-dialog/index.d.ts +1 -0
  371. package/dist/components/custom-dialog/index.js +1 -0
  372. package/dist/components/custom-popover/arrow.d.ts +10 -0
  373. package/dist/components/custom-popover/arrow.js +52 -0
  374. package/dist/components/custom-popover/custom-popover.d.ts +10 -0
  375. package/dist/components/custom-popover/custom-popover.js +25 -0
  376. package/dist/components/custom-popover/index.d.ts +2 -0
  377. package/dist/components/custom-popover/index.js +1 -0
  378. package/dist/components/custom-popover/placement.d.ts +8 -0
  379. package/dist/components/custom-popover/placement.js +11 -0
  380. package/dist/components/custom-popover/types.d.ts +20 -0
  381. package/dist/components/custom-popover/types.js +2 -0
  382. package/dist/components/custom-tabs/custom-tabs.d.ts +8 -0
  383. package/dist/components/custom-tabs/custom-tabs.js +11 -0
  384. package/dist/components/custom-tabs/index.d.ts +1 -0
  385. package/dist/components/custom-tabs/index.js +1 -0
  386. package/dist/components/dialog/dialog.d.ts +18 -0
  387. package/dist/components/dialog/dialog.js +40 -0
  388. package/dist/components/dialog/index.d.ts +1 -0
  389. package/dist/components/dialog/index.js +1 -0
  390. package/dist/components/direction/direction.d.ts +1 -0
  391. package/dist/components/direction/direction.js +2 -0
  392. package/dist/components/direction/index.d.ts +1 -0
  393. package/dist/components/direction/index.js +1 -0
  394. package/dist/components/drawer/drawer.d.ts +16 -0
  395. package/dist/components/drawer/drawer.js +75 -0
  396. package/dist/components/drawer/index.d.ts +1 -0
  397. package/dist/components/drawer/index.js +1 -0
  398. package/dist/components/dropdown-menu/dropdown-menu.d.ts +29 -0
  399. package/dist/components/dropdown-menu/dropdown-menu.js +51 -0
  400. package/dist/components/dropdown-menu/index.d.ts +1 -0
  401. package/dist/components/dropdown-menu/index.js +1 -0
  402. package/dist/components/editor/classes.d.ts +43 -0
  403. package/dist/components/editor/classes.js +44 -0
  404. package/dist/components/editor/components/code-highlight-block.d.ts +2 -0
  405. package/dist/components/editor/components/code-highlight-block.js +7 -0
  406. package/dist/components/editor/components/heading-block.d.ts +3 -0
  407. package/dist/components/editor/components/heading-block.js +22 -0
  408. package/dist/components/editor/components/image-block.d.ts +2 -0
  409. package/dist/components/editor/components/image-block.js +13 -0
  410. package/dist/components/editor/components/link-block.d.ts +2 -0
  411. package/dist/components/editor/components/link-block.js +16 -0
  412. package/dist/components/editor/components/toolbar-item.d.ts +6 -0
  413. package/dist/components/editor/components/toolbar-item.js +10 -0
  414. package/dist/components/editor/components/url-popover.d.ts +7 -0
  415. package/dist/components/editor/components/url-popover.js +19 -0
  416. package/dist/components/editor/editor.d.ts +13 -0
  417. package/dist/components/editor/editor.js +90 -0
  418. package/dist/components/editor/icons.d.ts +27 -0
  419. package/dist/components/editor/icons.js +26 -0
  420. package/dist/components/editor/index.d.ts +3 -0
  421. package/dist/components/editor/index.js +2 -0
  422. package/dist/components/editor/toolbar.d.ts +2 -0
  423. package/dist/components/editor/toolbar.js +20 -0
  424. package/dist/components/editor/types.d.ts +26 -0
  425. package/dist/components/editor/types.js +1 -0
  426. package/dist/components/empty-content/default-image.d.ts +2 -0
  427. package/dist/components/empty-content/default-image.js +2 -0
  428. package/dist/components/empty-content/empty-content.d.ts +15 -0
  429. package/dist/components/empty-content/empty-content.js +7 -0
  430. package/dist/components/empty-content/index.d.ts +2 -0
  431. package/dist/components/empty-content/index.js +2 -0
  432. package/dist/components/file-thumbnail/action-buttons.d.ts +2 -0
  433. package/dist/components/file-thumbnail/action-buttons.js +10 -0
  434. package/dist/components/file-thumbnail/classes.d.ts +7 -0
  435. package/dist/components/file-thumbnail/classes.js +8 -0
  436. package/dist/components/file-thumbnail/file-thumbnail.d.ts +2 -0
  437. package/dist/components/file-thumbnail/file-thumbnail.js +22 -0
  438. package/dist/components/file-thumbnail/icons.d.ts +2 -0
  439. package/dist/components/file-thumbnail/icons.js +39 -0
  440. package/dist/components/file-thumbnail/index.d.ts +6 -0
  441. package/dist/components/file-thumbnail/index.js +5 -0
  442. package/dist/components/file-thumbnail/types.d.ts +18 -0
  443. package/dist/components/file-thumbnail/types.js +1 -0
  444. package/dist/components/file-thumbnail/utils.d.ts +21 -0
  445. package/dist/components/file-thumbnail/utils.js +50 -0
  446. package/dist/components/flag-icon/classes.d.ts +4 -0
  447. package/dist/components/flag-icon/classes.js +5 -0
  448. package/dist/components/flag-icon/flag-icon.d.ts +8 -0
  449. package/dist/components/flag-icon/flag-icon.js +12 -0
  450. package/dist/components/flag-icon/index.d.ts +2 -0
  451. package/dist/components/flag-icon/index.js +2 -0
  452. package/dist/components/form-label/form-label.d.ts +3 -0
  453. package/dist/components/form-label/form-label.js +7 -0
  454. package/dist/components/form-label/index.d.ts +1 -0
  455. package/dist/components/form-label/index.js +1 -0
  456. package/dist/components/hover-card/hover-card.d.ts +5 -0
  457. package/dist/components/hover-card/hover-card.js +14 -0
  458. package/dist/components/hover-card/index.d.ts +1 -0
  459. package/dist/components/hover-card/index.js +1 -0
  460. package/dist/components/image/classes.d.ts +9 -0
  461. package/dist/components/image/classes.js +8 -0
  462. package/dist/components/image/image.d.ts +28 -0
  463. package/dist/components/image/image.js +58 -0
  464. package/dist/components/image/index.d.ts +2 -0
  465. package/dist/components/image/index.js +2 -0
  466. package/dist/components/image/placeholder.d.ts +1 -0
  467. package/dist/components/image/placeholder.js +1 -0
  468. package/dist/components/index.d.ts +84 -0
  469. package/dist/components/index.js +84 -0
  470. package/dist/components/input/index.d.ts +1 -0
  471. package/dist/components/input/index.js +1 -0
  472. package/dist/components/input/input.d.ts +3 -0
  473. package/dist/components/input/input.js +8 -0
  474. package/dist/components/input-group/index.d.ts +1 -0
  475. package/dist/components/input-group/index.js +1 -0
  476. package/dist/components/input-group/input-group.d.ts +18 -0
  477. package/dist/components/input-group/input-group.js +57 -0
  478. package/dist/components/input-otp/index.d.ts +1 -0
  479. package/dist/components/input-otp/index.js +1 -0
  480. package/dist/components/input-otp/input-otp.d.ts +11 -0
  481. package/dist/components/input-otp/input-otp.js +21 -0
  482. package/dist/components/item/index.d.ts +1 -0
  483. package/dist/components/item/index.js +1 -0
  484. package/dist/components/item/item.d.ts +22 -0
  485. package/dist/components/item/item.js +79 -0
  486. package/dist/components/kbd/index.d.ts +1 -0
  487. package/dist/components/kbd/index.js +1 -0
  488. package/dist/components/kbd/kbd.d.ts +3 -0
  489. package/dist/components/kbd/kbd.js +10 -0
  490. package/dist/components/label/classes.d.ts +4 -0
  491. package/dist/components/label/classes.js +5 -0
  492. package/dist/components/label/index.d.ts +2 -0
  493. package/dist/components/label/index.js +2 -0
  494. package/dist/components/label/label.d.ts +13 -0
  495. package/dist/components/label/label.js +10 -0
  496. package/dist/components/lightbox/classes.d.ts +3 -0
  497. package/dist/components/lightbox/classes.js +4 -0
  498. package/dist/components/lightbox/index.d.ts +4 -0
  499. package/dist/components/lightbox/index.js +3 -0
  500. package/dist/components/lightbox/lightbox.d.ts +2 -0
  501. package/dist/components/lightbox/lightbox.js +40 -0
  502. package/dist/components/lightbox/types.d.ts +11 -0
  503. package/dist/components/lightbox/types.js +1 -0
  504. package/dist/components/lightbox/use-light-box.d.ts +9 -0
  505. package/dist/components/lightbox/use-light-box.js +21 -0
  506. package/dist/components/lightbox/utils.d.ts +3 -0
  507. package/dist/components/lightbox/utils.js +22 -0
  508. package/dist/components/loading-screen/index.d.ts +2 -0
  509. package/dist/components/loading-screen/index.js +2 -0
  510. package/dist/components/loading-screen/loading-screen.d.ts +6 -0
  511. package/dist/components/loading-screen/loading-screen.js +8 -0
  512. package/dist/components/loading-screen/splash-screen.d.ts +7 -0
  513. package/dist/components/loading-screen/splash-screen.js +9 -0
  514. package/dist/components/logo/classes.d.ts +3 -0
  515. package/dist/components/logo/classes.js +4 -0
  516. package/dist/components/logo/index.d.ts +2 -0
  517. package/dist/components/logo/index.js +2 -0
  518. package/dist/components/logo/logo.d.ts +14 -0
  519. package/dist/components/logo/logo.js +22 -0
  520. package/dist/components/map/index.d.ts +4 -0
  521. package/dist/components/map/index.js +4 -0
  522. package/dist/components/map/map-controls.d.ts +14 -0
  523. package/dist/components/map/map-controls.js +6 -0
  524. package/dist/components/map/map-marker.d.ts +2 -0
  525. package/dist/components/map/map-marker.js +10 -0
  526. package/dist/components/map/map-popup.d.ts +3 -0
  527. package/dist/components/map/map-popup.js +6 -0
  528. package/dist/components/map/map.d.ts +5 -0
  529. package/dist/components/map/map.js +13 -0
  530. package/dist/components/markdown/classes.d.ts +10 -0
  531. package/dist/components/markdown/classes.js +11 -0
  532. package/dist/components/markdown/html-tags.d.ts +4 -0
  533. package/dist/components/markdown/html-tags.js +171 -0
  534. package/dist/components/markdown/html-to-markdown.d.ts +2 -0
  535. package/dist/components/markdown/html-to-markdown.js +28 -0
  536. package/dist/components/markdown/index.d.ts +4 -0
  537. package/dist/components/markdown/index.js +3 -0
  538. package/dist/components/markdown/markdown.d.ts +2 -0
  539. package/dist/components/markdown/markdown.js +35 -0
  540. package/dist/components/markdown/types.d.ts +8 -0
  541. package/dist/components/markdown/types.js +1 -0
  542. package/dist/components/menubar/index.d.ts +1 -0
  543. package/dist/components/menubar/index.js +1 -0
  544. package/dist/components/menubar/menubar.d.ts +29 -0
  545. package/dist/components/menubar/menubar.js +56 -0
  546. package/dist/components/native-select/index.d.ts +1 -0
  547. package/dist/components/native-select/index.js +1 -0
  548. package/dist/components/native-select/native-select.d.ts +8 -0
  549. package/dist/components/native-select/native-select.js +14 -0
  550. package/dist/components/navigation-menu/index.d.ts +1 -0
  551. package/dist/components/navigation-menu/index.js +1 -0
  552. package/dist/components/navigation-menu/navigation-menu.d.ts +11 -0
  553. package/dist/components/navigation-menu/navigation-menu.js +32 -0
  554. package/dist/components/number-input/index.d.ts +1 -0
  555. package/dist/components/number-input/index.js +1 -0
  556. package/dist/components/number-input/number-input.d.ts +29 -0
  557. package/dist/components/number-input/number-input.js +34 -0
  558. package/dist/components/organizational-chart/index.d.ts +2 -0
  559. package/dist/components/organizational-chart/index.js +1 -0
  560. package/dist/components/organizational-chart/organizational-chart.d.ts +2 -0
  561. package/dist/components/organizational-chart/organizational-chart.js +21 -0
  562. package/dist/components/organizational-chart/types.d.ts +15 -0
  563. package/dist/components/organizational-chart/types.js +1 -0
  564. package/dist/components/pagination/index.d.ts +1 -0
  565. package/dist/components/pagination/index.js +1 -0
  566. package/dist/components/pagination/pagination.d.ts +17 -0
  567. package/dist/components/pagination/pagination.js +27 -0
  568. package/dist/components/phone-input/index.d.ts +2 -0
  569. package/dist/components/phone-input/index.js +1 -0
  570. package/dist/components/phone-input/list-popover.d.ts +2 -0
  571. package/dist/components/phone-input/list-popover.js +33 -0
  572. package/dist/components/phone-input/phone-input.d.ts +2 -0
  573. package/dist/components/phone-input/phone-input.js +34 -0
  574. package/dist/components/phone-input/types.d.ts +28 -0
  575. package/dist/components/phone-input/types.js +1 -0
  576. package/dist/components/popover/index.d.ts +1 -0
  577. package/dist/components/popover/index.js +1 -0
  578. package/dist/components/popover/popover.d.ts +9 -0
  579. package/dist/components/popover/popover.js +23 -0
  580. package/dist/components/progress/index.d.ts +1 -0
  581. package/dist/components/progress/index.js +1 -0
  582. package/dist/components/progress/progress.d.ts +7 -0
  583. package/dist/components/progress/progress.js +20 -0
  584. package/dist/components/progress-bar/index.d.ts +1 -0
  585. package/dist/components/progress-bar/index.js +1 -0
  586. package/dist/components/progress-bar/progress-bar.d.ts +20 -0
  587. package/dist/components/progress-bar/progress-bar.js +51 -0
  588. package/dist/components/radio-group/index.d.ts +1 -0
  589. package/dist/components/radio-group/index.js +1 -0
  590. package/dist/components/radio-group/radio-group.d.ts +5 -0
  591. package/dist/components/radio-group/radio-group.js +12 -0
  592. package/dist/components/rating/index.d.ts +1 -0
  593. package/dist/components/rating/index.js +1 -0
  594. package/dist/components/rating/rating.d.ts +13 -0
  595. package/dist/components/rating/rating.js +25 -0
  596. package/dist/components/resizable/index.d.ts +1 -0
  597. package/dist/components/resizable/index.js +1 -0
  598. package/dist/components/resizable/resizable.d.ts +7 -0
  599. package/dist/components/resizable/resizable.js +14 -0
  600. package/dist/components/ripple/index.d.ts +1 -0
  601. package/dist/components/ripple/index.js +1 -0
  602. package/dist/components/ripple/ripple.d.ts +13 -0
  603. package/dist/components/ripple/ripple.js +113 -0
  604. package/dist/components/scroll-area/index.d.ts +1 -0
  605. package/dist/components/scroll-area/index.js +1 -0
  606. package/dist/components/scroll-area/scroll-area.d.ts +5 -0
  607. package/dist/components/scroll-area/scroll-area.js +11 -0
  608. package/dist/components/scrollbar/classes.d.ts +3 -0
  609. package/dist/components/scrollbar/classes.js +4 -0
  610. package/dist/components/scrollbar/index.d.ts +2 -0
  611. package/dist/components/scrollbar/index.js +2 -0
  612. package/dist/components/scrollbar/scrollbar.d.ts +12 -0
  613. package/dist/components/scrollbar/scrollbar.js +9 -0
  614. package/dist/components/search-not-found/index.d.ts +1 -0
  615. package/dist/components/search-not-found/index.js +1 -0
  616. package/dist/components/search-not-found/search-not-found.d.ts +16 -0
  617. package/dist/components/search-not-found/search-not-found.js +16 -0
  618. package/dist/components/select/index.d.ts +1 -0
  619. package/dist/components/select/index.js +1 -0
  620. package/dist/components/select/select.d.ts +15 -0
  621. package/dist/components/select/select.js +34 -0
  622. package/dist/components/separator/index.d.ts +1 -0
  623. package/dist/components/separator/index.js +1 -0
  624. package/dist/components/separator/separator.d.ts +3 -0
  625. package/dist/components/separator/separator.js +8 -0
  626. package/dist/components/sheet/index.d.ts +1 -0
  627. package/dist/components/sheet/index.js +1 -0
  628. package/dist/components/sheet/sheet.d.ts +14 -0
  629. package/dist/components/sheet/sheet.js +37 -0
  630. package/dist/components/skeleton/index.d.ts +1 -0
  631. package/dist/components/skeleton/index.js +1 -0
  632. package/dist/components/skeleton/skeleton.d.ts +2 -0
  633. package/dist/components/skeleton/skeleton.js +7 -0
  634. package/dist/components/slider/index.d.ts +1 -0
  635. package/dist/components/slider/index.js +1 -0
  636. package/dist/components/slider/slider.d.ts +3 -0
  637. package/dist/components/slider/slider.js +13 -0
  638. package/dist/components/snackbar/classes.d.ts +18 -0
  639. package/dist/components/snackbar/classes.js +19 -0
  640. package/dist/components/snackbar/index.d.ts +3 -0
  641. package/dist/components/snackbar/index.js +3 -0
  642. package/dist/components/snackbar/snackbar.d.ts +8 -0
  643. package/dist/components/snackbar/snackbar.js +39 -0
  644. package/dist/components/spinner/index.d.ts +1 -0
  645. package/dist/components/spinner/index.js +1 -0
  646. package/dist/components/spinner/spinner.d.ts +2 -0
  647. package/dist/components/spinner/spinner.js +8 -0
  648. package/dist/components/svg-color/classes.d.ts +3 -0
  649. package/dist/components/svg-color/classes.js +4 -0
  650. package/dist/components/svg-color/index.d.ts +2 -0
  651. package/dist/components/svg-color/index.js +2 -0
  652. package/dist/components/svg-color/svg-color.d.ts +7 -0
  653. package/dist/components/svg-color/svg-color.js +12 -0
  654. package/dist/components/switch/index.d.ts +1 -0
  655. package/dist/components/switch/index.js +1 -0
  656. package/dist/components/switch/switch.d.ts +8 -0
  657. package/dist/components/switch/switch.js +17 -0
  658. package/dist/components/table/index.d.ts +1 -0
  659. package/dist/components/table/index.js +1 -0
  660. package/dist/components/table/table.d.ts +10 -0
  661. package/dist/components/table/table.js +28 -0
  662. package/dist/components/tabs/index.d.ts +1 -0
  663. package/dist/components/tabs/index.js +1 -0
  664. package/dist/components/tabs/tabs.d.ts +10 -0
  665. package/dist/components/tabs/tabs.js +31 -0
  666. package/dist/components/textarea/index.d.ts +1 -0
  667. package/dist/components/textarea/index.js +1 -0
  668. package/dist/components/textarea/textarea.d.ts +3 -0
  669. package/dist/components/textarea/textarea.js +7 -0
  670. package/dist/components/theme-provider/index.d.ts +1 -0
  671. package/dist/components/theme-provider/index.js +1 -0
  672. package/dist/components/theme-provider/theme-provider.d.ts +31 -0
  673. package/dist/components/theme-provider/theme-provider.js +92 -0
  674. package/dist/components/toggle/index.d.ts +1 -0
  675. package/dist/components/toggle/index.js +1 -0
  676. package/dist/components/toggle/toggle.d.ts +8 -0
  677. package/dist/components/toggle/toggle.js +27 -0
  678. package/dist/components/toggle-group/index.d.ts +1 -0
  679. package/dist/components/toggle-group/index.js +1 -0
  680. package/dist/components/toggle-group/toggle-group.d.ts +11 -0
  681. package/dist/components/toggle-group/toggle-group.js +24 -0
  682. package/dist/components/tooltip/index.d.ts +1 -0
  683. package/dist/components/tooltip/index.js +1 -0
  684. package/dist/components/tooltip/tooltip.d.ts +6 -0
  685. package/dist/components/tooltip/tooltip.js +17 -0
  686. package/dist/components/upload/classes.d.ts +8 -0
  687. package/dist/components/upload/classes.js +9 -0
  688. package/dist/components/upload/components/placeholder.d.ts +9 -0
  689. package/dist/components/upload/components/placeholder.js +21 -0
  690. package/dist/components/upload/components/preview-multi-file.d.ts +2 -0
  691. package/dist/components/upload/components/preview-multi-file.js +19 -0
  692. package/dist/components/upload/components/preview-single-file.d.ts +3 -0
  693. package/dist/components/upload/components/preview-single-file.js +19 -0
  694. package/dist/components/upload/components/rejection-files.d.ts +6 -0
  695. package/dist/components/upload/components/rejection-files.js +12 -0
  696. package/dist/components/upload/components/upload-illustration.d.ts +3 -0
  697. package/dist/components/upload/components/upload-illustration.js +5 -0
  698. package/dist/components/upload/index.d.ts +9 -0
  699. package/dist/components/upload/index.js +8 -0
  700. package/dist/components/upload/types.d.ts +35 -0
  701. package/dist/components/upload/types.js +1 -0
  702. package/dist/components/upload/upload-avatar.d.ts +2 -0
  703. package/dist/components/upload/upload-avatar.js +32 -0
  704. package/dist/components/upload/upload-box.d.ts +2 -0
  705. package/dist/components/upload/upload-box.js +14 -0
  706. package/dist/components/upload/upload.d.ts +2 -0
  707. package/dist/components/upload/upload.js +23 -0
  708. package/dist/components/walktour/index.d.ts +4 -0
  709. package/dist/components/walktour/index.js +3 -0
  710. package/dist/components/walktour/types.d.ts +27 -0
  711. package/dist/components/walktour/types.js +1 -0
  712. package/dist/components/walktour/use-walktour.d.ts +2 -0
  713. package/dist/components/walktour/use-walktour.js +11 -0
  714. package/dist/components/walktour/walktour-tooltip.d.ts +2 -0
  715. package/dist/components/walktour/walktour-tooltip.js +15 -0
  716. package/dist/components/walktour/walktour.d.ts +2 -0
  717. package/dist/components/walktour/walktour.js +30 -0
  718. package/dist/hooks/index.d.ts +7 -0
  719. package/dist/hooks/index.js +7 -0
  720. package/dist/hooks/use-boolean.d.ts +9 -0
  721. package/dist/hooks/use-boolean.js +9 -0
  722. package/dist/hooks/use-client-rect.d.ts +6 -0
  723. package/dist/hooks/use-client-rect.js +18 -0
  724. package/dist/hooks/use-is-client.d.ts +2 -0
  725. package/dist/hooks/use-is-client.js +7 -0
  726. package/dist/hooks/use-local-storage.d.ts +10 -0
  727. package/dist/hooks/use-local-storage.js +39 -0
  728. package/dist/hooks/use-mobile.d.ts +1 -0
  729. package/dist/hooks/use-mobile.js +16 -0
  730. package/dist/hooks/use-popover-hover.d.ts +25 -0
  731. package/dist/hooks/use-popover-hover.js +33 -0
  732. package/dist/hooks/use-popover.d.ts +10 -0
  733. package/dist/hooks/use-popover.js +9 -0
  734. package/dist/index.d.ts +11 -0
  735. package/dist/index.js +11 -0
  736. package/dist/lib/brand.d.ts +14 -0
  737. package/dist/lib/brand.js +31 -0
  738. package/dist/lib/create-classes.d.ts +1 -0
  739. package/dist/lib/create-classes.js +4 -0
  740. package/dist/lib/date.d.ts +10 -0
  741. package/dist/lib/date.js +32 -0
  742. package/dist/lib/format.d.ts +2 -0
  743. package/dist/lib/format.js +10 -0
  744. package/dist/lib/link.d.ts +5 -0
  745. package/dist/lib/link.js +5 -0
  746. package/dist/lib/path.d.ts +6 -0
  747. package/dist/lib/path.js +24 -0
  748. package/dist/lib/theme-script.d.ts +11 -0
  749. package/dist/lib/theme-script.js +8 -0
  750. package/dist/lib/utils.d.ts +1 -0
  751. package/dist/lib/utils.js +1 -0
  752. package/dist/styles/chart.css +56 -0
  753. package/dist/styles/components.css +30 -0
  754. package/dist/styles/editor.css +199 -0
  755. package/dist/styles/globals.css +184 -0
  756. package/dist/styles/lightbox.css +42 -0
  757. package/dist/styles/map.css +62 -0
  758. package/dist/styles/markdown.css +177 -0
  759. package/dist/styles/nav.css +513 -0
  760. package/dist/styles/org-chart.css +82 -0
  761. package/dist/styles/scrollbar.css +9 -0
  762. package/dist/styles/settings.css +7 -0
  763. package/dist/styles/snackbar.css +68 -0
  764. package/dist/styles/theme.css +52 -0
  765. package/dist/styles/variants.css +84 -0
  766. package/docs/compliance-report.md +104 -0
  767. package/docs/frameworks.md +63 -0
  768. package/docs/publishing.md +23 -0
  769. package/docs/theming.md +40 -0
  770. package/package.json +518 -4
@@ -0,0 +1,18 @@
1
+ import { type DateValue } from "../../lib/date.js";
2
+ export type UseDateRangePickerReturn = {
3
+ startDate: DateValue;
4
+ endDate: DateValue;
5
+ onChangeStartDate: (newValue: DateValue) => void;
6
+ onChangeEndDate: (newValue: DateValue) => void;
7
+ open: boolean;
8
+ onOpen: () => void;
9
+ onClose: () => void;
10
+ onReset: () => void;
11
+ selected: boolean;
12
+ error: boolean;
13
+ label: string;
14
+ shortLabel: string;
15
+ setStartDate: React.Dispatch<React.SetStateAction<DateValue>>;
16
+ setEndDate: React.Dispatch<React.SetStateAction<DateValue>>;
17
+ };
18
+ export declare function useDateRangePicker(start: DateValue, end: DateValue): UseDateRangePickerReturn;
@@ -0,0 +1,33 @@
1
+ "use client";
2
+ import { useState, useCallback } from "react";
3
+ import { fIsAfter, fDateRangeShortLabel } from "../../lib/date.js";
4
+ export function useDateRangePicker(start, end) {
5
+ const [open, setOpen] = useState(false);
6
+ const [endDate, setEndDate] = useState(end);
7
+ const [startDate, setStartDate] = useState(start);
8
+ const error = fIsAfter(startDate, endDate);
9
+ const onOpen = useCallback(() => setOpen(true), []);
10
+ const onClose = useCallback(() => setOpen(false), []);
11
+ const onChangeStartDate = useCallback((value) => setStartDate(value), []);
12
+ const onChangeEndDate = useCallback((value) => setEndDate(value), []);
13
+ const onReset = useCallback(() => {
14
+ setStartDate(null);
15
+ setEndDate(null);
16
+ }, []);
17
+ return {
18
+ startDate,
19
+ endDate,
20
+ onChangeStartDate,
21
+ onChangeEndDate,
22
+ open,
23
+ onOpen,
24
+ onClose,
25
+ onReset,
26
+ error,
27
+ selected: !!startDate && !!endDate,
28
+ label: fDateRangeShortLabel(startDate, endDate, true),
29
+ shortLabel: fDateRangeShortLabel(startDate, endDate),
30
+ setStartDate,
31
+ setEndDate,
32
+ };
33
+ }
@@ -0,0 +1,11 @@
1
+ import type * as React from "react";
2
+ export type ConfirmDialogProps = {
3
+ open: boolean;
4
+ onClose: () => void;
5
+ title: React.ReactNode;
6
+ /** Primary action, usually a `<Button color="error">`. Rendered before Cancel. */
7
+ action: React.ReactNode;
8
+ content?: React.ReactNode;
9
+ cancelLabel?: React.ReactNode;
10
+ };
11
+ export declare function ConfirmDialog({ open, title, action, content, onClose, cancelLabel }: ConfirmDialogProps): React.JSX.Element;
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { Button } from "../button/index.js";
4
+ import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from "../dialog/index.js";
5
+ export function ConfirmDialog({ open, title, action, content, onClose, cancelLabel = "Cancel" }) {
6
+ return (_jsx(Dialog, { open: open, onOpenChange: (next) => !next && onClose(), children: _jsxs(DialogContent, { className: "sm:max-w-sm", children: [_jsxs(DialogHeader, { children: [_jsx(DialogTitle, { children: title }), content ? _jsx(DialogDescription, { render: _jsx("div", {}), children: content }) : null] }), _jsxs(DialogFooter, { children: [action, _jsx(Button, { variant: "outline", color: "inherit", onClick: onClose, children: cancelLabel })] })] }) }));
7
+ }
@@ -0,0 +1 @@
1
+ export * from "./confirm-dialog.js";
@@ -0,0 +1 @@
1
+ export * from "./confirm-dialog.js";
@@ -0,0 +1,10 @@
1
+ import type * as React from "react";
2
+ import type { PopoverArrowPlacement } from "./types.js";
3
+ type Props = {
4
+ size: number;
5
+ offset: number;
6
+ placement: PopoverArrowPlacement;
7
+ className?: string;
8
+ };
9
+ export declare function PopoverArrowShape({ size, offset, placement, className }: Props): React.JSX.Element;
10
+ export {};
@@ -0,0 +1,52 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { cn } from "cn";
4
+ const tint = (color) => `linear-gradient(45deg, color-mix(in oklab, var(--${color}-main) 10%, transparent), color-mix(in oklab, var(--${color}-main) 10%, transparent))`;
5
+ /* Cyan tint sits on the popup's top-right corner and red on the bottom-left, so the arrow picks up the same wash. */
6
+ const tinted = {
7
+ "top-right": "info",
8
+ "right-top": "info",
9
+ "right-center": "info",
10
+ "bottom-left": "error",
11
+ "left-center": "error",
12
+ "left-bottom": "error",
13
+ };
14
+ export function PopoverArrowShape({ size, offset, placement, className }) {
15
+ const [edge, pos] = placement.split("-");
16
+ const style = {
17
+ width: size,
18
+ height: size,
19
+ borderBottomLeftRadius: size / 4,
20
+ clipPath: "polygon(0% 0%, 100% 100%, 0% 100%)",
21
+ };
22
+ if (edge === "top")
23
+ Object.assign(style, { top: 0, rotate: "135deg", translate: "0 -50%" });
24
+ if (edge === "bottom")
25
+ Object.assign(style, { bottom: 0, rotate: "-45deg", translate: "0 50%" });
26
+ if (edge === "left")
27
+ Object.assign(style, { insetInlineStart: 0, rotate: "45deg", translate: "-50% 0" });
28
+ if (edge === "right")
29
+ Object.assign(style, { insetInlineEnd: 0, rotate: "-135deg", translate: "50% 0" });
30
+ if (edge === "top" || edge === "bottom") {
31
+ if (pos === "center")
32
+ Object.assign(style, { left: 0, right: 0, margin: "auto" });
33
+ else
34
+ style[pos === "left" ? "insetInlineStart" : "insetInlineEnd"] = offset;
35
+ }
36
+ else {
37
+ if (pos === "center")
38
+ Object.assign(style, { top: 0, bottom: 0, margin: "auto" });
39
+ else
40
+ style[pos === "top" ? "top" : "bottom"] = offset;
41
+ }
42
+ const wash = tinted[placement];
43
+ if (wash) {
44
+ Object.assign(style, {
45
+ backgroundImage: tint(wash),
46
+ backgroundRepeat: "no-repeat",
47
+ backgroundSize: `${size * 3}px ${size * 3}px`,
48
+ backgroundPosition: wash === "info" ? "top right" : "bottom left",
49
+ });
50
+ }
51
+ return (_jsx("span", { "aria-hidden": true, className: cn("absolute border border-grey-500/12 bg-card dark:border-black/12", className), style: style }));
52
+ }
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ import type { CustomPopoverProps } from "./types.js";
3
+ /**
4
+ * Popover anchored to an element, with an arrow that points at it. Pair with `usePopover()`:
5
+ *
6
+ * const popover = usePopover()
7
+ * <button onClick={popover.onOpen} />
8
+ * <CustomPopover open={popover.open} anchorEl={popover.anchorEl} onClose={popover.onClose} />
9
+ */
10
+ export declare function CustomPopover({ open, onClose, children, anchorEl, className, slotProps }: CustomPopoverProps): React.JSX.Element;
@@ -0,0 +1,25 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { Popover as PopoverPrimitive } from "@base-ui/react/popover";
4
+ import { cn } from "cn";
5
+ import { PopoverArrowShape } from "./arrow.js";
6
+ import { getPlacement } from "./placement.js";
7
+ /**
8
+ * Popover anchored to an element, with an arrow that points at it. Pair with `usePopover()`:
9
+ *
10
+ * const popover = usePopover()
11
+ * <button onClick={popover.onOpen} />
12
+ * <CustomPopover open={popover.open} anchorEl={popover.anchorEl} onClose={popover.onClose} />
13
+ */
14
+ export function CustomPopover({ open, onClose, children, anchorEl, className, slotProps }) {
15
+ const arrow = slotProps?.arrow;
16
+ const size = arrow?.size ?? 14;
17
+ const offset = arrow?.offset ?? 17;
18
+ const placement = arrow?.placement ?? "top-right";
19
+ const { side, align } = getPlacement(placement);
20
+ const { className: paperClassName, ...paperProps } = slotProps?.paper ?? {};
21
+ return (_jsx(PopoverPrimitive.Root, { open: !!open, onOpenChange: (next) => {
22
+ if (!next)
23
+ onClose?.();
24
+ }, children: _jsx(PopoverPrimitive.Portal, { children: _jsx(PopoverPrimitive.Positioner, { anchor: anchorEl ?? null, side: side, align: align, sideOffset: size - 2, className: "isolate z-modal", children: _jsxs(PopoverPrimitive.Popup, { ...paperProps, className: cn("xui-paper xui-paper-dropdown relative min-w-35 origin-(--transform-origin) text-body2 outline-hidden", "[&_[role=menuitem]]:gap-4 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", paperClassName, className), children: [arrow?.hide ? null : (_jsx(PopoverArrowShape, { size: size, offset: offset, placement: placement, className: arrow?.className })), children] }) }) }) }));
25
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./custom-popover.js";
2
+ export type * from "./types.js";
@@ -0,0 +1 @@
1
+ export * from "./custom-popover.js";
@@ -0,0 +1,8 @@
1
+ import type { PopoverArrowPlacement } from "./types.js";
2
+ type Side = "top" | "bottom" | "left" | "right";
3
+ type Align = "start" | "center" | "end";
4
+ export declare function getPlacement(arrow?: PopoverArrowPlacement): {
5
+ side: Side;
6
+ align: Align;
7
+ };
8
+ export {};
@@ -0,0 +1,11 @@
1
+ /*
2
+ * The arrow placement names where the arrow sits on the popup: "top-right" means the arrow is on
3
+ * the popup's top edge, towards the right, so the popup opens below the anchor and is right aligned.
4
+ */
5
+ export function getPlacement(arrow = "top-right") {
6
+ const [edge, pos] = arrow.split("-");
7
+ const side = { top: "bottom", bottom: "top", left: "right", right: "left" }[edge];
8
+ const vertical = edge === "left" || edge === "right";
9
+ const align = pos === "center" ? "center" : vertical ? (pos === "top" ? "start" : "end") : pos === "left" ? "start" : "end";
10
+ return { side, align };
11
+ }
@@ -0,0 +1,20 @@
1
+ export type PopoverArrowPlacement = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right" | "left-top" | "left-center" | "left-bottom" | "right-top" | "right-center" | "right-bottom";
2
+ export type PopoverArrow = {
3
+ hide?: boolean;
4
+ size?: number;
5
+ offset?: number;
6
+ placement?: PopoverArrowPlacement;
7
+ className?: string;
8
+ };
9
+ export type CustomPopoverProps = {
10
+ open?: boolean;
11
+ onClose?: () => void;
12
+ /** Element the popover points at (from `usePopover().anchorEl`). */
13
+ anchorEl?: Element | null;
14
+ children?: React.ReactNode;
15
+ className?: string;
16
+ slotProps?: {
17
+ arrow?: PopoverArrow;
18
+ paper?: React.ComponentProps<"div">;
19
+ };
20
+ };
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ export {};
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
3
+ export type CustomTabsProps = TabsPrimitive.List.Props;
4
+ /**
5
+ * Segmented tab list: a neutral track with a white raised pill under the selected tab.
6
+ * Use inside `<Tabs>`, with the regular `<TabsTrigger>` for each tab.
7
+ */
8
+ export declare function CustomTabs({ className, children, ...props }: CustomTabsProps): React.JSX.Element;
@@ -0,0 +1,11 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
4
+ import { cn } from "cn";
5
+ /**
6
+ * Segmented tab list: a neutral track with a white raised pill under the selected tab.
7
+ * Use inside `<Tabs>`, with the regular `<TabsTrigger>` for each tab.
8
+ */
9
+ export function CustomTabs({ className, children, ...props }) {
10
+ return (_jsxs(TabsPrimitive.List, { "data-slot": "custom-tabs", className: cn("relative inline-flex min-h-[38px] shrink-0 items-center overflow-x-auto rounded-md bg-neutral p-2", "[&_[data-slot=tabs-trigger]]:z-local [&_[data-slot=tabs-trigger]]:min-h-0 [&_[data-slot=tabs-trigger]]:px-4 [&_[data-slot=tabs-trigger]]:py-2", "[&_[data-slot=tabs-trigger]]:after:hidden", className), ...props, children: [children, _jsx(TabsPrimitive.Indicator, { className: "absolute top-1/2 left-0 z-0 h-(--active-tab-height) w-(--active-tab-width) translate-x-(--active-tab-left) -translate-y-1/2 rounded-md bg-white shadow-z1 transition-[translate,width] duration-200 dark:bg-grey-900" })] }));
11
+ }
@@ -0,0 +1 @@
1
+ export * from "./custom-tabs.js";
@@ -0,0 +1 @@
1
+ export * from "./custom-tabs.js";
@@ -0,0 +1,18 @@
1
+ import type * as React from "react";
2
+ import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
3
+ declare function Dialog({ ...props }: DialogPrimitive.Root.Props): React.JSX.Element;
4
+ declare function DialogTrigger({ ...props }: DialogPrimitive.Trigger.Props): React.JSX.Element;
5
+ declare function DialogPortal({ ...props }: DialogPrimitive.Portal.Props): React.JSX.Element;
6
+ declare function DialogClose({ ...props }: DialogPrimitive.Close.Props): React.JSX.Element;
7
+ declare function DialogOverlay({ className, ...props }: DialogPrimitive.Backdrop.Props): React.JSX.Element;
8
+ declare function DialogContent({ className, children, showCloseButton, ...props }: DialogPrimitive.Popup.Props & {
9
+ showCloseButton?: boolean;
10
+ }): React.JSX.Element;
11
+ declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
12
+ declare function DialogFooter({ className, showCloseButton, children, ...props }: React.ComponentProps<"div"> & {
13
+ showCloseButton?: boolean;
14
+ }): React.JSX.Element;
15
+ declare function DialogBody({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
16
+ declare function DialogTitle({ className, ...props }: DialogPrimitive.Title.Props): React.JSX.Element;
17
+ declare function DialogDescription({ className, ...props }: DialogPrimitive.Description.Props): React.JSX.Element;
18
+ export { Dialog, DialogClose, DialogBody, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
@@ -0,0 +1,40 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
4
+ import { cn } from "cn";
5
+ import { Button } from "../button/index.js";
6
+ import { XIcon } from "lucide-react";
7
+ function Dialog({ ...props }) {
8
+ return _jsx(DialogPrimitive.Root, { "data-slot": "dialog", ...props });
9
+ }
10
+ function DialogTrigger({ ...props }) {
11
+ return _jsx(DialogPrimitive.Trigger, { "data-slot": "dialog-trigger", ...props });
12
+ }
13
+ function DialogPortal({ ...props }) {
14
+ return _jsx(DialogPrimitive.Portal, { "data-slot": "dialog-portal", ...props });
15
+ }
16
+ function DialogClose({ ...props }) {
17
+ return _jsx(DialogPrimitive.Close, { "data-slot": "dialog-close", ...props });
18
+ }
19
+ function DialogOverlay({ className, ...props }) {
20
+ return (_jsx(DialogPrimitive.Backdrop, { "data-slot": "dialog-overlay", className: cn("fixed inset-0 isolate z-modal bg-grey-800/48 duration-150 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0", className), ...props }));
21
+ }
22
+ function DialogContent({ className, children, showCloseButton = true, ...props }) {
23
+ return (_jsxs(DialogPortal, { children: [_jsx(DialogOverlay, {}), _jsxs(DialogPrimitive.Popup, { "data-slot": "dialog-content", className: cn("fixed top-1/2 left-1/2 z-modal grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-0 rounded-2xl bg-popover p-0 text-body2 text-popover-foreground shadow-dialog duration-150 outline-none sm:max-w-[600px] data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className), ...props, children: [children, showCloseButton && (_jsxs(DialogPrimitive.Close, { "data-slot": "dialog-close", render: _jsx(Button, { variant: "ghost", className: "absolute top-4 right-4", size: "icon-sm" }), children: [_jsx(XIcon, {}), _jsx("span", { className: "sr-only", children: "Close" })] }))] })] }));
24
+ }
25
+ function DialogHeader({ className, ...props }) {
26
+ return (_jsx("div", { "data-slot": "dialog-header", className: cn("flex flex-col gap-1 p-6", className), ...props }));
27
+ }
28
+ function DialogFooter({ className, showCloseButton = false, children, ...props }) {
29
+ return (_jsxs("div", { "data-slot": "dialog-footer", className: cn("flex flex-col-reverse gap-3 p-6 sm:flex-row sm:justify-end", className), ...props, children: [children, showCloseButton && (_jsx(DialogPrimitive.Close, { render: _jsx(Button, { variant: "outline" }), children: "Close" }))] }));
30
+ }
31
+ function DialogBody({ className, ...props }) {
32
+ return (_jsx("div", { "data-slot": "dialog-body", className: cn("px-6", className), ...props }));
33
+ }
34
+ function DialogTitle({ className, ...props }) {
35
+ return (_jsx(DialogPrimitive.Title, { "data-slot": "dialog-title", className: cn("text-h6 text-foreground", className), ...props }));
36
+ }
37
+ function DialogDescription({ className, ...props }) {
38
+ return (_jsx(DialogPrimitive.Description, { "data-slot": "dialog-description", className: cn("text-body2 text-text-secondary *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", className), ...props }));
39
+ }
40
+ export { Dialog, DialogClose, DialogBody, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
@@ -0,0 +1 @@
1
+ export * from "./dialog.js";
@@ -0,0 +1 @@
1
+ export * from "./dialog.js";
@@ -0,0 +1 @@
1
+ export { DirectionProvider, useDirection, } from "@base-ui/react/direction-provider";
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ export { DirectionProvider, useDirection, } from "@base-ui/react/direction-provider";
@@ -0,0 +1 @@
1
+ export * from "./direction.js";
@@ -0,0 +1 @@
1
+ export * from "./direction.js";
@@ -0,0 +1,16 @@
1
+ import * as React from "react";
2
+ import { Drawer as DrawerPrimitive } from "@base-ui/react/drawer";
3
+ declare function Drawer({ modal, showSwipeHandle, snapPoints, swipeDirection, ...props }: DrawerPrimitive.Root.Props & {
4
+ showSwipeHandle?: boolean;
5
+ }): React.JSX.Element;
6
+ declare function DrawerTrigger({ ...props }: DrawerPrimitive.Trigger.Props): React.JSX.Element;
7
+ declare function DrawerPortal({ ...props }: DrawerPrimitive.Portal.Props): React.JSX.Element;
8
+ declare function DrawerClose({ ...props }: DrawerPrimitive.Close.Props): React.JSX.Element;
9
+ declare function DrawerOverlay({ className, ...props }: DrawerPrimitive.Backdrop.Props): React.JSX.Element;
10
+ declare function DrawerSwipeHandle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
11
+ declare function DrawerContent({ className, children, ...props }: DrawerPrimitive.Popup.Props): React.JSX.Element;
12
+ declare function DrawerHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
13
+ declare function DrawerFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
14
+ declare function DrawerTitle({ className, ...props }: DrawerPrimitive.Title.Props): React.JSX.Element;
15
+ declare function DrawerDescription({ className, ...props }: DrawerPrimitive.Description.Props): React.JSX.Element;
16
+ export { Drawer, DrawerPortal, DrawerOverlay, DrawerSwipeHandle, DrawerTrigger, DrawerClose, DrawerContent, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription, };
@@ -0,0 +1,75 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import { Drawer as DrawerPrimitive } from "@base-ui/react/drawer";
5
+ import { cn } from "cn";
6
+ const DrawerContext = /* @__PURE__ */ React.createContext(null);
7
+ function useDrawer() {
8
+ const context = React.useContext(DrawerContext);
9
+ if (!context) {
10
+ throw new Error("useDrawer must be used within a Drawer.");
11
+ }
12
+ return context;
13
+ }
14
+ function Drawer({ modal = true, showSwipeHandle = false, snapPoints, swipeDirection = "down", ...props }) {
15
+ const hasSnapPoints = snapPoints != null && snapPoints.length > 0;
16
+ const contextValue = React.useMemo(() => ({ hasSnapPoints, modal, showSwipeHandle, swipeDirection }), [hasSnapPoints, modal, showSwipeHandle, swipeDirection]);
17
+ return (_jsx(DrawerContext.Provider, { value: contextValue, children: _jsx(DrawerPrimitive.Root, { "data-slot": "drawer", modal: modal, snapPoints: snapPoints, swipeDirection: swipeDirection, ...props }) }));
18
+ }
19
+ function DrawerTrigger({ ...props }) {
20
+ return _jsx(DrawerPrimitive.Trigger, { "data-slot": "drawer-trigger", ...props });
21
+ }
22
+ function DrawerPortal({ ...props }) {
23
+ return _jsx(DrawerPrimitive.Portal, { "data-slot": "drawer-portal", ...props });
24
+ }
25
+ function DrawerClose({ ...props }) {
26
+ return _jsx(DrawerPrimitive.Close, { "data-slot": "drawer-close", ...props });
27
+ }
28
+ function DrawerOverlay({ className, ...props }) {
29
+ return (_jsx(DrawerPrimitive.Backdrop, { "data-slot": "drawer-overlay", className: cn("fixed inset-0 z-modal min-h-dvh bg-grey-800/48 opacity-[max(var(--drawer-overlay-min-opacity,0),calc(1-var(--drawer-swipe-progress)))] transition-opacity duration-450 ease-[cubic-bezier(0.32,0.72,0,1)] select-none data-ending-style:pointer-events-none data-ending-style:opacity-0 data-ending-style:duration-[calc(var(--drawer-swipe-strength)*400ms)] data-snap-points:[--drawer-overlay-min-opacity:0.5] data-starting-style:opacity-0 data-swiping:duration-0 supports-[-webkit-touch-callout:none]:absolute", className), ...props }));
30
+ }
31
+ function DrawerSwipeHandle({ className, ...props }) {
32
+ return (_jsx("div", { "data-slot": "drawer-swipe-handle", "aria-hidden": "true", className: cn("relative z-local flex shrink-0 cursor-grab transition-opacity duration-200 group-data-nested-drawer-open/drawer-popup:opacity-0 group-data-nested-drawer-swiping/drawer-popup:opacity-100 group-data-[swipe-axis=x]/drawer-popup:h-full group-data-[swipe-axis=x]/drawer-popup:w-3 group-data-[swipe-axis=x]/drawer-popup:items-center group-data-[swipe-axis=y]/drawer-popup:h-3 group-data-[swipe-axis=y]/drawer-popup:w-full group-data-[swipe-axis=y]/drawer-popup:justify-center group-data-[swipe-direction=down]/drawer-popup:items-end group-data-[swipe-direction=left]/drawer-popup:order-last group-data-[swipe-direction=left]/drawer-popup:justify-start group-data-[swipe-direction=right]/drawer-popup:justify-end group-data-[swipe-direction=up]/drawer-popup:order-last group-data-[swipe-direction=up]/drawer-popup:items-start after:block after:shrink-0 after:rounded-full after:bg-grey-500/32 group-data-[swipe-axis=x]/drawer-popup:after:h-24 group-data-[swipe-axis=x]/drawer-popup:after:w-1 group-data-[swipe-axis=y]/drawer-popup:after:h-1 group-data-[swipe-axis=y]/drawer-popup:after:w-24 active:cursor-grabbing", className), ...props }));
33
+ }
34
+ function DrawerContent({ className, children, ...props }) {
35
+ const { hasSnapPoints, modal, showSwipeHandle, swipeDirection } = useDrawer();
36
+ const swipeAxis = swipeDirection === "down" || swipeDirection === "up" ? "y" : "x";
37
+ return (_jsxs(DrawerPortal, { "data-slot": "drawer-portal", children: [modal === true && (_jsx(DrawerOverlay, { "data-snap-points": hasSnapPoints ? "" : undefined })), _jsx(DrawerPrimitive.Viewport, { "data-slot": "drawer-viewport", "data-modal": modal, className: "pointer-events-none fixed inset-0 z-modal select-none data-[modal=true]:pointer-events-auto", children: _jsxs(DrawerPrimitive.Popup, { "data-slot": "drawer-popup", "data-swipe-axis": swipeAxis, "data-snap-points": hasSnapPoints ? "" : undefined, className: cn(
38
+ // Base.
39
+ "xui-paper group/drawer-popup pointer-events-auto fixed z-modal m-(--drawer-inset,0px) flex h-(--drawer-content-height) max-h-(--drawer-content-max-height,none) min-h-0 w-(--drawer-content-width,auto) transform-[translate3d(var(--translate-x,0px),var(--translate-y,0px),0)_scale(var(--stack-scale))] flex-col text-body2 text-popover-foreground transition-[transform,height,opacity,filter] duration-450 ease-[cubic-bezier(0.22,1,0.36,1)] will-change-transform outline-none select-none [interpolate-size:allow-keywords] data-[swipe-direction=down]:rounded-t-2xl data-[swipe-direction=left]:rounded-r-2xl data-[swipe-direction=left]:shadow-[40px_40px_80px_-8px_rgb(var(--shadow-tint)/0.24)] data-[swipe-direction=right]:rounded-l-2xl data-[swipe-direction=right]:shadow-[-40px_40px_80px_-8px_rgb(var(--shadow-tint)/0.24)] data-[swipe-direction=up]:rounded-b-2xl",
40
+ // Nested.
41
+ "data-nested-drawer-open:overflow-hidden data-nested-drawer-open:brightness-95",
42
+ // Bleed.
43
+ "after:pointer-events-none after:absolute after:bg-(--drawer-bleed-background,var(--color-popover)) data-[swipe-axis=x]:after:inset-y-0 data-[swipe-axis=x]:after:w-(--bleed) data-[swipe-axis=y]:after:inset-x-0 data-[swipe-axis=y]:after:h-(--bleed) data-[swipe-direction=down]:after:top-full data-[swipe-direction=left]:after:right-full data-[swipe-direction=right]:after:left-full data-[swipe-direction=up]:after:bottom-full",
44
+ // Sizing.
45
+ "[--drawer-content-height:var(--drawer-height,auto)] data-[swipe-axis=x]:[--drawer-content-width:75%] data-[swipe-axis=y]:[--drawer-content-max-height:calc(100dvh-6rem)] data-[swipe-axis=y]:data-snap-points:[--drawer-content-height:100dvh] data-[swipe-axis=x]:sm:[--drawer-content-width:24rem]",
46
+ // Stack.
47
+ "[--bleed:3rem] [--peek:1rem] [--stack-height:var(--drawer-frontmost-height,var(--drawer-height,0px))] [--stack-peek-offset:max(0px,calc((var(--nested-drawers)-var(--stack-progress))*var(--peek)))] [--stack-progress:clamp(0,var(--drawer-swipe-progress),1)] [--stack-scale-base:max(0,calc(1-(var(--nested-drawers)*var(--stack-step))))] [--stack-scale:clamp(0,calc(var(--stack-scale-base)+(var(--stack-step)*var(--stack-progress))),1)] [--stack-shrink:calc(1-var(--stack-scale))] [--stack-step:0.05]",
48
+ // Transitions.
49
+ "data-ending-style:transform-(--closed-transform) data-ending-style:opacity-[0.9999] data-ending-style:duration-[calc(var(--drawer-swipe-strength)*400ms)] data-nested-drawer-swiping:duration-0 data-ending-style:data-nested-drawer-swiping:duration-[calc(var(--drawer-swipe-strength)*400ms)] data-starting-style:transform-(--closed-transform) data-swiping:duration-0 data-ending-style:data-swiping:duration-[calc(var(--drawer-swipe-strength)*400ms)]",
50
+ // Axis: y.
51
+ "data-[swipe-axis=y]:inset-x-0 data-[swipe-axis=y]:data-nested-drawer-open:h-(--stack-height)",
52
+ // Axis: x.
53
+ "data-[swipe-axis=x]:inset-y-0 data-[swipe-axis=x]:flex-row",
54
+ // Direction: down.
55
+ "data-[swipe-direction=down]:bottom-0 data-[swipe-direction=down]:origin-bottom data-[swipe-direction=down]:[--closed-transform:translate3d(0,calc(100%+var(--drawer-inset,0px)+2px),0)] data-[swipe-direction=down]:[--translate-y:calc(var(--drawer-snap-point-offset,0px)+var(--drawer-swipe-movement-y)-var(--stack-peek-offset)-(var(--stack-shrink)*var(--stack-height)))]",
56
+ // Direction: up.
57
+ "data-[swipe-direction=up]:top-0 data-[swipe-direction=up]:origin-top data-[swipe-direction=up]:[--closed-transform:translate3d(0,calc(-100%-var(--drawer-inset,0px)-2px),0)] data-[swipe-direction=up]:[--translate-y:calc(var(--drawer-snap-point-offset,0px)+var(--drawer-swipe-movement-y)+var(--stack-peek-offset)+(var(--stack-shrink)*var(--stack-height)))]",
58
+ // Direction: left.
59
+ "data-[swipe-direction=left]:left-0 data-[swipe-direction=left]:origin-left data-[swipe-direction=left]:[--closed-transform:translate3d(calc(-100%-var(--drawer-inset,0px)-2px),0,0)] data-[swipe-direction=left]:[--translate-x:calc(var(--drawer-swipe-movement-x)+var(--stack-peek-offset)+(var(--stack-shrink)*100%))]",
60
+ // Direction: right.
61
+ "data-[swipe-direction=right]:right-0 data-[swipe-direction=right]:origin-right data-[swipe-direction=right]:[--closed-transform:translate3d(calc(100%+var(--drawer-inset,0px)+2px),0,0)] data-[swipe-direction=right]:[--translate-x:calc(var(--drawer-swipe-movement-x)-var(--stack-peek-offset)-(var(--stack-shrink)*100%))]", className), ...props, children: [showSwipeHandle && _jsx(DrawerSwipeHandle, {}), _jsx(DrawerPrimitive.Content, { "data-slot": "drawer-content", className: cn("flex min-h-0 flex-1 flex-col overflow-hidden overscroll-contain rounded-[inherit] transition-opacity duration-300 ease-[cubic-bezier(0.45,1.005,0,1.005)] select-text group-data-nested-drawer-open/drawer-popup:opacity-0 group-data-nested-drawer-swiping/drawer-popup:opacity-100 group-data-swiping/drawer-popup:select-none"), children: children })] }) })] }));
62
+ }
63
+ function DrawerHeader({ className, ...props }) {
64
+ return (_jsx("div", { "data-slot": "drawer-header", className: cn("flex shrink-0 flex-col gap-0.5 p-6 pb-0 group-data-[swipe-axis=y]/drawer-popup:text-center md:gap-0.5 md:text-left", className), ...props }));
65
+ }
66
+ function DrawerFooter({ className, ...props }) {
67
+ return (_jsx("div", { "data-slot": "drawer-footer", className: cn("mt-auto flex shrink-0 flex-col gap-3 p-6 pt-0", className), ...props }));
68
+ }
69
+ function DrawerTitle({ className, ...props }) {
70
+ return (_jsx(DrawerPrimitive.Title, { "data-slot": "drawer-title", className: cn("text-h6 text-foreground", className), ...props }));
71
+ }
72
+ function DrawerDescription({ className, ...props }) {
73
+ return (_jsx(DrawerPrimitive.Description, { "data-slot": "drawer-description", className: cn("text-body2 text-balance text-text-secondary", className), ...props }));
74
+ }
75
+ export { Drawer, DrawerPortal, DrawerOverlay, DrawerSwipeHandle, DrawerTrigger, DrawerClose, DrawerContent, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription, };
@@ -0,0 +1 @@
1
+ export * from "./drawer.js";
@@ -0,0 +1 @@
1
+ export * from "./drawer.js";
@@ -0,0 +1,29 @@
1
+ import type * as React from "react";
2
+ import { Menu as MenuPrimitive } from "@base-ui/react/menu";
3
+ declare function DropdownMenu({ ...props }: MenuPrimitive.Root.Props): React.JSX.Element;
4
+ declare function DropdownMenuPortal({ ...props }: MenuPrimitive.Portal.Props): React.JSX.Element;
5
+ declare function DropdownMenuTrigger({ ...props }: MenuPrimitive.Trigger.Props): React.JSX.Element;
6
+ declare function DropdownMenuContent({ align, alignOffset, side, sideOffset, className, ...props }: MenuPrimitive.Popup.Props & Pick<MenuPrimitive.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): React.JSX.Element;
7
+ declare function DropdownMenuGroup({ ...props }: MenuPrimitive.Group.Props): React.JSX.Element;
8
+ declare function DropdownMenuLabel({ className, inset, ...props }: MenuPrimitive.GroupLabel.Props & {
9
+ inset?: boolean;
10
+ }): React.JSX.Element;
11
+ declare function DropdownMenuItem({ className, inset, variant, ...props }: MenuPrimitive.Item.Props & {
12
+ inset?: boolean;
13
+ variant?: "default" | "destructive";
14
+ }): React.JSX.Element;
15
+ declare function DropdownMenuSub({ ...props }: MenuPrimitive.SubmenuRoot.Props): React.JSX.Element;
16
+ declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: MenuPrimitive.SubmenuTrigger.Props & {
17
+ inset?: boolean;
18
+ }): React.JSX.Element;
19
+ declare function DropdownMenuSubContent({ align, alignOffset, side, sideOffset, className, ...props }: React.ComponentProps<typeof DropdownMenuContent>): React.JSX.Element;
20
+ declare function DropdownMenuCheckboxItem({ className, children, checked, inset, ...props }: MenuPrimitive.CheckboxItem.Props & {
21
+ inset?: boolean;
22
+ }): React.JSX.Element;
23
+ declare function DropdownMenuRadioGroup({ ...props }: MenuPrimitive.RadioGroup.Props): React.JSX.Element;
24
+ declare function DropdownMenuRadioItem({ className, children, inset, ...props }: MenuPrimitive.RadioItem.Props & {
25
+ inset?: boolean;
26
+ }): React.JSX.Element;
27
+ declare function DropdownMenuSeparator({ className, ...props }: MenuPrimitive.Separator.Props): React.JSX.Element;
28
+ declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
29
+ export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, };
@@ -0,0 +1,51 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { Menu as MenuPrimitive } from "@base-ui/react/menu";
4
+ import { cn } from "cn";
5
+ import { ChevronRightIcon, CheckIcon } from "lucide-react";
6
+ function DropdownMenu({ ...props }) {
7
+ return _jsx(MenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
8
+ }
9
+ function DropdownMenuPortal({ ...props }) {
10
+ return _jsx(MenuPrimitive.Portal, { "data-slot": "dropdown-menu-portal", ...props });
11
+ }
12
+ function DropdownMenuTrigger({ ...props }) {
13
+ return _jsx(MenuPrimitive.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
14
+ }
15
+ function DropdownMenuContent({ align = "start", alignOffset = 0, side = "bottom", sideOffset = 4, className, ...props }) {
16
+ return (_jsx(MenuPrimitive.Portal, { children: _jsx(MenuPrimitive.Positioner, { className: "isolate z-modal outline-none", align: align, alignOffset: alignOffset, side: side, sideOffset: sideOffset, children: _jsx(MenuPrimitive.Popup, { "data-slot": "dropdown-menu-content", className: cn("z-modal max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto xui-paper xui-paper-dropdown text-popover-foreground duration-150 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:overflow-hidden data-closed:fade-out-0 data-closed:zoom-out-95", className), ...props }) }) }));
17
+ }
18
+ function DropdownMenuGroup({ ...props }) {
19
+ return _jsx(MenuPrimitive.Group, { "data-slot": "dropdown-menu-group", ...props });
20
+ }
21
+ function DropdownMenuLabel({ className, inset, ...props }) {
22
+ return (_jsx(MenuPrimitive.GroupLabel, { "data-slot": "dropdown-menu-label", "data-inset": inset, className: cn("px-2 py-1.5 text-caption font-semibold text-text-secondary data-inset:pl-8", className), ...props }));
23
+ }
24
+ function DropdownMenuItem({ className, inset, variant = "default", ...props }) {
25
+ return (_jsx(MenuPrimitive.Item, { "data-slot": "dropdown-menu-item", "data-inset": inset, "data-variant": variant, className: cn("group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-sm px-2 py-1.5 text-body2 not-last:mb-1 outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive", className), ...props }));
26
+ }
27
+ function DropdownMenuSub({ ...props }) {
28
+ return _jsx(MenuPrimitive.SubmenuRoot, { "data-slot": "dropdown-menu-sub", ...props });
29
+ }
30
+ function DropdownMenuSubTrigger({ className, inset, children, ...props }) {
31
+ return (_jsxs(MenuPrimitive.SubmenuTrigger, { "data-slot": "dropdown-menu-sub-trigger", "data-inset": inset, className: cn("flex cursor-default items-center gap-1.5 rounded-sm px-2 py-1.5 text-body2 not-last:mb-1 outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-8 data-popup-open:bg-accent data-popup-open:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className), ...props, children: [children, _jsx(ChevronRightIcon, { className: "ml-auto" })] }));
32
+ }
33
+ function DropdownMenuSubContent({ align = "start", alignOffset = -3, side = "right", sideOffset = 0, className, ...props }) {
34
+ return (_jsx(DropdownMenuContent, { "data-slot": "dropdown-menu-sub-content", className: cn("w-auto min-w-[96px] xui-paper xui-paper-dropdown text-popover-foreground duration-150 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className), align: align, alignOffset: alignOffset, side: side, sideOffset: sideOffset, ...props }));
35
+ }
36
+ function DropdownMenuCheckboxItem({ className, children, checked, inset, ...props }) {
37
+ return (_jsxs(MenuPrimitive.CheckboxItem, { "data-slot": "dropdown-menu-checkbox-item", "data-inset": inset, className: cn("relative flex cursor-default items-center gap-1.5 rounded-sm py-1.5 pr-8 pl-2 text-body2 not-last:mb-1 outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-8 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className), checked: checked, ...props, children: [_jsx("span", { className: "pointer-events-none absolute right-2 flex items-center justify-center", "data-slot": "dropdown-menu-checkbox-item-indicator", children: _jsx(MenuPrimitive.CheckboxItemIndicator, { children: _jsx(CheckIcon, {}) }) }), children] }));
38
+ }
39
+ function DropdownMenuRadioGroup({ ...props }) {
40
+ return (_jsx(MenuPrimitive.RadioGroup, { "data-slot": "dropdown-menu-radio-group", ...props }));
41
+ }
42
+ function DropdownMenuRadioItem({ className, children, inset, ...props }) {
43
+ return (_jsxs(MenuPrimitive.RadioItem, { "data-slot": "dropdown-menu-radio-item", "data-inset": inset, className: cn("relative flex cursor-default items-center gap-1.5 rounded-sm py-1.5 pr-8 pl-2 text-body2 not-last:mb-1 outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-8 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className), ...props, children: [_jsx("span", { className: "pointer-events-none absolute right-2 flex items-center justify-center", "data-slot": "dropdown-menu-radio-item-indicator", children: _jsx(MenuPrimitive.RadioItemIndicator, { children: _jsx(CheckIcon, {}) }) }), children] }));
44
+ }
45
+ function DropdownMenuSeparator({ className, ...props }) {
46
+ return (_jsx(MenuPrimitive.Separator, { "data-slot": "dropdown-menu-separator", className: cn("-mx-1 my-1 h-px bg-divider", className), ...props }));
47
+ }
48
+ function DropdownMenuShortcut({ className, ...props }) {
49
+ return (_jsx("span", { "data-slot": "dropdown-menu-shortcut", className: cn("ml-auto text-caption tracking-widest text-text-secondary group-focus/dropdown-menu-item:text-accent-foreground", className), ...props }));
50
+ }
51
+ export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, };
@@ -0,0 +1 @@
1
+ export * from "./dropdown-menu.js";
@@ -0,0 +1 @@
1
+ export * from "./dropdown-menu.js";
@@ -0,0 +1,43 @@
1
+ export declare const editorClasses: {
2
+ root: string;
3
+ toolbar: {
4
+ hr: string;
5
+ root: string;
6
+ bold: string;
7
+ code: string;
8
+ undo: string;
9
+ redo: string;
10
+ link: string;
11
+ clear: string;
12
+ image: string;
13
+ italic: string;
14
+ strike: string;
15
+ underline: string;
16
+ hardbreak: string;
17
+ unsetlink: string;
18
+ codeBlock: string;
19
+ alignLeft: string;
20
+ fullscreen: string;
21
+ blockquote: string;
22
+ bulletList: string;
23
+ alignRight: string;
24
+ orderedList: string;
25
+ alignCenter: string;
26
+ alignJustify: string;
27
+ };
28
+ content: {
29
+ hr: string;
30
+ root: string;
31
+ link: string;
32
+ image: string;
33
+ codeInline: string;
34
+ heading: string;
35
+ listItem: string;
36
+ codeBlock: string;
37
+ blockquote: string;
38
+ langSelect: string;
39
+ placeholder: string;
40
+ bulletList: string;
41
+ orderedList: string;
42
+ };
43
+ };