asheeui 0.6.15 → 1.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 (389) hide show
  1. package/dist/AsheeUIProvider.d.ts.map +1 -1
  2. package/dist/AsheeUIProvider.js +29 -24
  3. package/dist/components/accordion/Accordion.d.ts.map +1 -1
  4. package/dist/components/accordion/Accordion.js +81 -173
  5. package/dist/components/accordion/accordion-config.js +12 -13
  6. package/dist/components/accordion/accordion-styles.js +21 -24
  7. package/dist/components/alert/Alert.d.ts +88 -0
  8. package/dist/components/alert/Alert.d.ts.map +1 -0
  9. package/dist/components/alert/Alert.js +61 -0
  10. package/dist/components/alert/alert-config.d.ts +56 -0
  11. package/dist/components/alert/alert-config.d.ts.map +1 -0
  12. package/dist/components/alert/alert-config.js +14 -0
  13. package/dist/components/alert/alert-styles.d.ts +32 -0
  14. package/dist/components/alert/alert-styles.d.ts.map +1 -0
  15. package/dist/components/alert/alert-styles.js +20 -0
  16. package/dist/components/alert/index.d.ts +3 -0
  17. package/dist/components/alert/index.d.ts.map +1 -0
  18. package/dist/components/alert/index.js +3 -0
  19. package/dist/components/autocomplete/Autocomplete.d.ts +6 -6
  20. package/dist/components/autocomplete/Autocomplete.d.ts.map +1 -1
  21. package/dist/components/autocomplete/Autocomplete.js +114 -136
  22. package/dist/components/autocomplete/autocomplete-config.d.ts +1 -1
  23. package/dist/components/autocomplete/autocomplete-config.d.ts.map +1 -1
  24. package/dist/components/autocomplete/autocomplete-config.js +7 -12
  25. package/dist/components/avatar/Avatar.d.ts +87 -0
  26. package/dist/components/avatar/Avatar.d.ts.map +1 -0
  27. package/dist/components/avatar/Avatar.js +43 -0
  28. package/dist/components/avatar/avatar-config.d.ts +48 -0
  29. package/dist/components/avatar/avatar-config.d.ts.map +1 -0
  30. package/dist/components/avatar/avatar-config.js +14 -0
  31. package/dist/components/avatar/avatar-styles.d.ts +21 -0
  32. package/dist/components/avatar/avatar-styles.d.ts.map +1 -0
  33. package/dist/components/avatar/avatar-styles.js +13 -0
  34. package/dist/components/avatar/avatar.helpers.d.ts +19 -0
  35. package/dist/components/avatar/avatar.helpers.d.ts.map +1 -0
  36. package/dist/components/avatar/avatar.helpers.js +11 -0
  37. package/dist/components/avatar/index.d.ts +3 -0
  38. package/dist/components/avatar/index.d.ts.map +1 -0
  39. package/dist/components/avatar/index.js +4 -0
  40. package/dist/components/badge/Badge.d.ts +69 -0
  41. package/dist/components/badge/Badge.d.ts.map +1 -0
  42. package/dist/components/badge/Badge.js +39 -0
  43. package/dist/components/badge/badge-config.d.ts +63 -0
  44. package/dist/components/badge/badge-config.d.ts.map +1 -0
  45. package/dist/components/badge/badge-config.js +15 -0
  46. package/dist/components/badge/badge-styles.d.ts +27 -0
  47. package/dist/components/badge/badge-styles.d.ts.map +1 -0
  48. package/dist/components/badge/badge-styles.js +25 -0
  49. package/dist/components/badge/index.d.ts +3 -0
  50. package/dist/components/badge/index.d.ts.map +1 -0
  51. package/dist/components/badge/index.js +3 -0
  52. package/dist/components/breadcrumb/Breadcrumb.d.ts +106 -0
  53. package/dist/components/breadcrumb/Breadcrumb.d.ts.map +1 -0
  54. package/dist/components/breadcrumb/Breadcrumb.js +52 -0
  55. package/dist/components/breadcrumb/breadcrumb-config.d.ts +41 -0
  56. package/dist/components/breadcrumb/breadcrumb-config.d.ts.map +1 -0
  57. package/dist/components/breadcrumb/breadcrumb-config.js +10 -0
  58. package/dist/components/breadcrumb/breadcrumb-styles.d.ts +28 -0
  59. package/dist/components/breadcrumb/breadcrumb-styles.d.ts.map +1 -0
  60. package/dist/components/breadcrumb/breadcrumb-styles.js +17 -0
  61. package/dist/components/breadcrumb/index.d.ts +3 -0
  62. package/dist/components/breadcrumb/index.d.ts.map +1 -0
  63. package/dist/components/breadcrumb/index.js +3 -0
  64. package/dist/components/button/Button.d.ts +29 -1
  65. package/dist/components/button/Button.d.ts.map +1 -1
  66. package/dist/components/button/Button.js +50 -108
  67. package/dist/components/button/button-config.js +16 -17
  68. package/dist/components/button/button-styles.js +10 -11
  69. package/dist/components/{date-picker/DatePicker.d.ts → calendar/Calendar.d.ts} +22 -22
  70. package/dist/components/calendar/Calendar.d.ts.map +1 -0
  71. package/dist/components/calendar/Calendar.js +123 -0
  72. package/dist/components/{date-picker/Calendar.d.ts → calendar/DateGrid.d.ts} +7 -7
  73. package/dist/components/calendar/DateGrid.d.ts.map +1 -0
  74. package/dist/components/calendar/DateGrid.js +194 -0
  75. package/dist/components/calendar/TimeSpinner.d.ts.map +1 -0
  76. package/dist/components/calendar/TimeSpinner.js +60 -0
  77. package/dist/components/{date-picker/date-picker-config.d.ts → calendar/calendar-config.d.ts} +17 -17
  78. package/dist/components/calendar/calendar-config.d.ts.map +1 -0
  79. package/dist/components/calendar/calendar-config.js +15 -0
  80. package/dist/components/{date-picker/date-picker-styles.d.ts → calendar/calendar-styles.d.ts} +1 -1
  81. package/dist/components/calendar/calendar-styles.d.ts.map +1 -0
  82. package/dist/components/calendar/calendar-styles.js +46 -0
  83. package/dist/components/{date-picker/date-picker.helpers.d.ts → calendar/calendar.helpers.d.ts} +9 -9
  84. package/dist/components/calendar/calendar.helpers.d.ts.map +1 -0
  85. package/dist/components/calendar/calendar.helpers.js +82 -0
  86. package/dist/components/calendar/index.d.ts +3 -0
  87. package/dist/components/calendar/index.d.ts.map +1 -0
  88. package/dist/components/calendar/index.js +6 -0
  89. package/dist/components/card/Card.d.ts +36 -16
  90. package/dist/components/card/Card.d.ts.map +1 -1
  91. package/dist/components/card/Card.js +115 -205
  92. package/dist/components/card/card-config.js +24 -21
  93. package/dist/components/card/card-styles.js +19 -22
  94. package/dist/components/carousel/Carousel.d.ts.map +1 -1
  95. package/dist/components/carousel/Carousel.js +125 -248
  96. package/dist/components/carousel/carousel-config.js +24 -25
  97. package/dist/components/carousel/carousel-styles.d.ts +1 -20
  98. package/dist/components/carousel/carousel-styles.d.ts.map +1 -1
  99. package/dist/components/carousel/carousel-styles.js +14 -16
  100. package/dist/components/chip/Chip.js +84 -191
  101. package/dist/components/chip/chip-config.js +13 -14
  102. package/dist/components/chip/chip-styles.js +22 -26
  103. package/dist/components/drawer/Drawer.d.ts +33 -11
  104. package/dist/components/drawer/Drawer.d.ts.map +1 -1
  105. package/dist/components/drawer/Drawer.js +70 -131
  106. package/dist/components/drawer/drawer-config.js +14 -15
  107. package/dist/components/drawer/drawer-styles.js +38 -42
  108. package/dist/components/{select/Select.d.ts → dropmenu/Dropmenu.d.ts} +22 -21
  109. package/dist/components/dropmenu/Dropmenu.d.ts.map +1 -0
  110. package/dist/components/dropmenu/Dropmenu.js +102 -0
  111. package/dist/components/{select/select-config.d.ts → dropmenu/dropmenu-config.d.ts} +8 -8
  112. package/dist/components/dropmenu/dropmenu-config.d.ts.map +1 -0
  113. package/dist/components/dropmenu/dropmenu-config.js +9 -0
  114. package/dist/components/{select/select-styles.d.ts → dropmenu/dropmenu-styles.d.ts} +1 -1
  115. package/dist/components/dropmenu/dropmenu-styles.d.ts.map +1 -0
  116. package/dist/components/dropmenu/dropmenu-styles.js +6 -0
  117. package/dist/components/dropmenu/index.d.ts +3 -0
  118. package/dist/components/dropmenu/index.d.ts.map +1 -0
  119. package/dist/components/dropmenu/index.js +3 -0
  120. package/dist/components/field/FieldShell.d.ts +13 -1
  121. package/dist/components/field/FieldShell.d.ts.map +1 -1
  122. package/dist/components/field/FieldShell.js +50 -56
  123. package/dist/components/field/field-config.js +17 -18
  124. package/dist/components/field/field-styles.js +8 -8
  125. package/dist/components/form/Form.d.ts +109 -0
  126. package/dist/components/form/Form.d.ts.map +1 -0
  127. package/dist/components/form/Form.js +42 -0
  128. package/dist/components/form/form-config.d.ts +57 -0
  129. package/dist/components/form/form-config.d.ts.map +1 -0
  130. package/dist/components/form/form-config.js +12 -0
  131. package/dist/components/form/form-styles.d.ts +27 -0
  132. package/dist/components/form/form-styles.d.ts.map +1 -0
  133. package/dist/components/form/form-styles.js +5 -0
  134. package/dist/components/form/index.d.ts +3 -0
  135. package/dist/components/form/index.d.ts.map +1 -0
  136. package/dist/components/form/index.js +3 -0
  137. package/dist/components/image/Image.d.ts +8 -9
  138. package/dist/components/image/Image.d.ts.map +1 -1
  139. package/dist/components/image/Image.js +65 -132
  140. package/dist/components/image/image-config.js +17 -18
  141. package/dist/components/image/image-styles.js +14 -15
  142. package/dist/components/input/Input.js +65 -150
  143. package/dist/components/input/PasswordInput.js +30 -49
  144. package/dist/components/input/input-config.js +7 -7
  145. package/dist/components/input/input-styles.js +9 -10
  146. package/dist/components/keyboard/KeyboardContext.js +10 -11
  147. package/dist/components/keyboard/KeyboardProvider.js +100 -181
  148. package/dist/components/keyboard/OnScreenKeyboard.d.ts.map +1 -1
  149. package/dist/components/keyboard/OnScreenKeyboard.js +159 -166
  150. package/dist/components/keyboard/keyboard-config.js +59 -57
  151. package/dist/components/keyboard/keyboard-styles.js +10 -11
  152. package/dist/components/keyboard/use-keyboard-field.js +29 -21
  153. package/dist/components/link/Link.d.ts +12 -10
  154. package/dist/components/link/Link.d.ts.map +1 -1
  155. package/dist/components/link/Link.js +47 -137
  156. package/dist/components/link/link-config.js +14 -15
  157. package/dist/components/link/link-styles.js +25 -29
  158. package/dist/components/marquee/Marquee.d.ts.map +1 -1
  159. package/dist/components/marquee/Marquee.js +58 -144
  160. package/dist/components/marquee/marquee-config.js +18 -19
  161. package/dist/components/marquee/marquee-styles.js +13 -15
  162. package/dist/components/{select-menu/SelectMenu.d.ts → menu/Menu.d.ts} +52 -19
  163. package/dist/components/menu/Menu.d.ts.map +1 -0
  164. package/dist/components/menu/Menu.js +161 -0
  165. package/dist/components/menu/index.d.ts +5 -0
  166. package/dist/components/menu/index.d.ts.map +1 -0
  167. package/dist/components/menu/index.js +4 -0
  168. package/dist/components/{select-menu/select-menu-config.d.ts → menu/menu-config.d.ts} +5 -5
  169. package/dist/components/menu/menu-config.d.ts.map +1 -0
  170. package/dist/components/menu/menu-config.js +14 -0
  171. package/dist/components/menu/menu-navigation.d.ts +38 -0
  172. package/dist/components/menu/menu-navigation.d.ts.map +1 -0
  173. package/dist/components/menu/menu-navigation.js +20 -0
  174. package/dist/components/{select-menu/use-select-floating.d.ts → menu/use-menu-floating.d.ts} +20 -10
  175. package/dist/components/menu/use-menu-floating.d.ts.map +1 -0
  176. package/dist/components/menu/use-menu-floating.js +43 -0
  177. package/dist/components/modal/Modal.d.ts +32 -11
  178. package/dist/components/modal/Modal.d.ts.map +1 -1
  179. package/dist/components/modal/Modal.js +74 -137
  180. package/dist/components/modal/modal-config.js +15 -16
  181. package/dist/components/modal/modal-styles.js +13 -14
  182. package/dist/components/multi-select/MultiSelect.d.ts +29 -12
  183. package/dist/components/multi-select/MultiSelect.d.ts.map +1 -1
  184. package/dist/components/multi-select/MultiSelect.js +162 -283
  185. package/dist/components/multi-select/multi-select-config.d.ts +24 -19
  186. package/dist/components/multi-select/multi-select-config.d.ts.map +1 -1
  187. package/dist/components/multi-select/multi-select-config.js +18 -21
  188. package/dist/components/multi-select/multi-select-styles.js +17 -20
  189. package/dist/components/pagination/Pagination.d.ts +91 -0
  190. package/dist/components/pagination/Pagination.d.ts.map +1 -0
  191. package/dist/components/pagination/Pagination.js +66 -0
  192. package/dist/components/pagination/index.d.ts +3 -0
  193. package/dist/components/pagination/index.d.ts.map +1 -0
  194. package/dist/components/pagination/index.js +4 -0
  195. package/dist/components/pagination/pagination-config.d.ts +66 -0
  196. package/dist/components/pagination/pagination-config.d.ts.map +1 -0
  197. package/dist/components/pagination/pagination-config.js +19 -0
  198. package/dist/components/pagination/pagination-styles.d.ts +19 -0
  199. package/dist/components/pagination/pagination-styles.d.ts.map +1 -0
  200. package/dist/components/pagination/pagination-styles.js +5 -0
  201. package/dist/components/pagination/pagination.helpers.d.ts +26 -0
  202. package/dist/components/pagination/pagination.helpers.d.ts.map +1 -0
  203. package/dist/components/pagination/pagination.helpers.js +12 -0
  204. package/dist/components/radio/Radio.d.ts +53 -107
  205. package/dist/components/radio/Radio.d.ts.map +1 -1
  206. package/dist/components/radio/Radio.js +56 -79
  207. package/dist/components/radio/RadioGroup.d.ts +107 -53
  208. package/dist/components/radio/RadioGroup.d.ts.map +1 -1
  209. package/dist/components/radio/RadioGroup.js +51 -155
  210. package/dist/components/radio/index.d.ts +0 -1
  211. package/dist/components/radio/index.d.ts.map +1 -1
  212. package/dist/components/radio/radio-config.js +15 -16
  213. package/dist/components/radio/radio-context.js +6 -6
  214. package/dist/components/radio/radio-styles.js +55 -60
  215. package/dist/components/resizable-screen/ResizableScreen.d.ts +4 -4
  216. package/dist/components/resizable-screen/ResizableScreen.js +87 -177
  217. package/dist/components/resizable-screen/resizable-screen-config.js +16 -17
  218. package/dist/components/scrollbar/index.js +1 -0
  219. package/dist/components/scrollbar/scrollbar-config.js +13 -0
  220. package/dist/components/sidebar/Sidebar.d.ts +43 -22
  221. package/dist/components/sidebar/Sidebar.d.ts.map +1 -1
  222. package/dist/components/sidebar/Sidebar.js +148 -331
  223. package/dist/components/sidebar/sidebar-config.d.ts +98 -31
  224. package/dist/components/sidebar/sidebar-config.d.ts.map +1 -1
  225. package/dist/components/sidebar/sidebar-config.js +47 -33
  226. package/dist/components/sidebar/sidebar-styles.js +27 -32
  227. package/dist/components/skeleton/Skeleton.d.ts +65 -0
  228. package/dist/components/skeleton/Skeleton.d.ts.map +1 -0
  229. package/dist/components/skeleton/Skeleton.js +29 -0
  230. package/dist/components/skeleton/index.d.ts +3 -0
  231. package/dist/components/skeleton/index.d.ts.map +1 -0
  232. package/dist/components/skeleton/index.js +3 -0
  233. package/dist/components/skeleton/skeleton-config.d.ts +40 -0
  234. package/dist/components/skeleton/skeleton-config.d.ts.map +1 -0
  235. package/dist/components/skeleton/skeleton-config.js +13 -0
  236. package/dist/components/skeleton/skeleton-styles.d.ts +19 -0
  237. package/dist/components/skeleton/skeleton-styles.d.ts.map +1 -0
  238. package/dist/components/skeleton/skeleton-styles.js +5 -0
  239. package/dist/components/spinner/spinner-config.js +12 -13
  240. package/dist/components/spinner/spinner-styles.js +13 -14
  241. package/dist/components/spinner/spinner.js +39 -82
  242. package/dist/components/switch/Switch.d.ts.map +1 -1
  243. package/dist/components/switch/Switch.js +64 -154
  244. package/dist/components/switch/switch-config.js +11 -12
  245. package/dist/components/switch/switch-styles.js +14 -16
  246. package/dist/components/table/Table.js +64 -186
  247. package/dist/components/table/table-config.js +17 -18
  248. package/dist/components/table/table-styles.js +48 -52
  249. package/dist/components/tabs/Tabs.d.ts +16 -8
  250. package/dist/components/tabs/Tabs.d.ts.map +1 -1
  251. package/dist/components/tabs/Tabs.js +93 -208
  252. package/dist/components/tabs/tabs-config.d.ts +42 -20
  253. package/dist/components/tabs/tabs-config.d.ts.map +1 -1
  254. package/dist/components/tabs/tabs-config.js +26 -18
  255. package/dist/components/tabs/tabs-styles.js +15 -17
  256. package/dist/components/textarea/Textarea.d.ts +10 -10
  257. package/dist/components/textarea/Textarea.js +52 -138
  258. package/dist/components/textarea/textarea-config.d.ts +2 -2
  259. package/dist/components/textarea/textarea-config.js +10 -11
  260. package/dist/components/textarea/textarea-styles.js +9 -10
  261. package/dist/components/toast/ToastContext.js +22 -26
  262. package/dist/components/toast/ToastItem.d.ts.map +1 -1
  263. package/dist/components/toast/ToastItem.js +83 -144
  264. package/dist/components/toast/ToastProvider.d.ts.map +1 -1
  265. package/dist/components/toast/ToastProvider.js +128 -190
  266. package/dist/components/toast/toast-config.js +23 -24
  267. package/dist/components/toast/toast-styles.js +50 -55
  268. package/dist/components/toast/use-pausable-timeout.js +17 -13
  269. package/dist/components/tooltip/Tooltip.d.ts +5 -0
  270. package/dist/components/tooltip/Tooltip.d.ts.map +1 -1
  271. package/dist/components/tooltip/Tooltip.js +68 -158
  272. package/dist/components/tooltip/tooltip-config.d.ts +25 -0
  273. package/dist/components/tooltip/tooltip-config.d.ts.map +1 -1
  274. package/dist/components/tooltip/tooltip-config.js +26 -22
  275. package/dist/components/tooltip/tooltip-styles.js +15 -17
  276. package/dist/components/typography/Typography.d.ts +60 -0
  277. package/dist/components/typography/Typography.d.ts.map +1 -0
  278. package/dist/components/typography/Typography.js +28 -0
  279. package/dist/components/typography/index.d.ts +3 -0
  280. package/dist/components/typography/index.d.ts.map +1 -0
  281. package/dist/components/typography/index.js +3 -0
  282. package/dist/components/typography/typography-config.d.ts +54 -0
  283. package/dist/components/typography/typography-config.d.ts.map +1 -0
  284. package/dist/components/typography/typography-config.js +12 -0
  285. package/dist/components/typography/typography-styles.d.ts +21 -0
  286. package/dist/components/typography/typography-styles.d.ts.map +1 -0
  287. package/dist/components/typography/typography-styles.js +19 -0
  288. package/dist/config/default-config.d.ts.map +1 -1
  289. package/dist/config/default-config.js +11 -34
  290. package/dist/config/index.js +1 -0
  291. package/dist/config/resolve-color.js +23 -23
  292. package/dist/config/resolve-config.d.ts.map +1 -1
  293. package/dist/config/resolve-config.js +14 -12
  294. package/dist/config/validate-config.d.ts +34 -0
  295. package/dist/config/validate-config.d.ts.map +1 -0
  296. package/dist/config/validate-config.js +190 -0
  297. package/dist/icons/ArrowLeftIcon.js +16 -19
  298. package/dist/icons/CalendarIcon.js +43 -24
  299. package/dist/icons/CheckIcon.js +16 -19
  300. package/dist/icons/ChevronDownIcon.js +15 -21
  301. package/dist/icons/ChevronLeftIcon.js +16 -19
  302. package/dist/icons/ChevronRightIcon.js +16 -19
  303. package/dist/icons/ChevronUpIcon.js +16 -19
  304. package/dist/icons/ClearIcon.js +26 -22
  305. package/dist/icons/ClockIcon.js +20 -22
  306. package/dist/icons/CloseIcon.js +26 -22
  307. package/dist/icons/ErrorIcon.js +16 -19
  308. package/dist/icons/ExternalLinkIcon.js +25 -23
  309. package/dist/icons/EyeIcon.js +20 -22
  310. package/dist/icons/EyeOffIcon.js +21 -22
  311. package/dist/icons/InfoIcon.js +16 -19
  312. package/dist/icons/SearchIcon.js +25 -22
  313. package/dist/icons/WarningIcon.js +16 -19
  314. package/dist/index.d.ts +15 -17
  315. package/dist/index.d.ts.map +1 -1
  316. package/dist/index.js +79 -163
  317. package/dist/libs/context.js +10 -13
  318. package/dist/libs/index.js +4 -0
  319. package/dist/libs/registry.js +10 -12
  320. package/dist/libs/use-body-scroll-lock.d.ts +21 -0
  321. package/dist/libs/use-body-scroll-lock.d.ts.map +1 -0
  322. package/dist/libs/use-body-scroll-lock.js +27 -0
  323. package/dist/libs/use-dialog-overlay.d.ts +21 -0
  324. package/dist/libs/use-dialog-overlay.d.ts.map +1 -0
  325. package/dist/libs/use-dialog-overlay.js +21 -0
  326. package/dist/libs/use-floating-z-index.d.ts +32 -0
  327. package/dist/libs/use-floating-z-index.d.ts.map +1 -0
  328. package/dist/libs/use-floating-z-index.js +16 -0
  329. package/dist/libs/use-isomorphic-layout-effect.js +5 -5
  330. package/dist/libs/use-prefers-reduced-motion.d.ts +23 -0
  331. package/dist/libs/use-prefers-reduced-motion.d.ts.map +1 -0
  332. package/dist/libs/use-prefers-reduced-motion.js +19 -0
  333. package/dist/scripts/AsheeThemeScript.js +70 -44
  334. package/dist/shared/index.d.ts +1 -0
  335. package/dist/shared/index.d.ts.map +1 -1
  336. package/dist/shared/radius.d.ts.map +1 -1
  337. package/dist/shared/radius.js +12 -13
  338. package/dist/shared/typography.d.ts +81 -0
  339. package/dist/shared/typography.d.ts.map +1 -0
  340. package/dist/shared/typography.js +137 -0
  341. package/dist/shared/variant.js +46 -134
  342. package/dist/theme/color.js +28 -28
  343. package/dist/theme/controller.d.ts.map +1 -1
  344. package/dist/theme/controller.js +65 -178
  345. package/dist/theme/useTheme.js +13 -44
  346. package/dist/utils/cn.js +7 -7
  347. package/dist/utils/index.d.ts +1 -0
  348. package/dist/utils/index.d.ts.map +1 -1
  349. package/dist/utils/index.js +1 -0
  350. package/dist/utils/merge-object.js +13 -14
  351. package/dist/utils/resolve-token.js +11 -14
  352. package/dist/utils/stacking.d.ts +76 -0
  353. package/dist/utils/stacking.d.ts.map +1 -0
  354. package/dist/utils/stacking.js +34 -0
  355. package/package.json +22 -14
  356. package/dist/components/date-picker/Calendar.d.ts.map +0 -1
  357. package/dist/components/date-picker/Calendar.js +0 -224
  358. package/dist/components/date-picker/DatePicker.d.ts.map +0 -1
  359. package/dist/components/date-picker/DatePicker.js +0 -221
  360. package/dist/components/date-picker/TimeSpinner.d.ts.map +0 -1
  361. package/dist/components/date-picker/TimeSpinner.js +0 -84
  362. package/dist/components/date-picker/date-picker-config.d.ts.map +0 -1
  363. package/dist/components/date-picker/date-picker-config.js +0 -16
  364. package/dist/components/date-picker/date-picker-styles.d.ts.map +0 -1
  365. package/dist/components/date-picker/date-picker-styles.js +0 -47
  366. package/dist/components/date-picker/date-picker.helpers.d.ts.map +0 -1
  367. package/dist/components/date-picker/date-picker.helpers.js +0 -110
  368. package/dist/components/date-picker/index.d.ts +0 -3
  369. package/dist/components/date-picker/index.d.ts.map +0 -1
  370. package/dist/components/date-picker/index.js +0 -6
  371. package/dist/components/select/Select.d.ts.map +0 -1
  372. package/dist/components/select/Select.js +0 -196
  373. package/dist/components/select/index.d.ts +0 -3
  374. package/dist/components/select/index.d.ts.map +0 -1
  375. package/dist/components/select/index.js +0 -3
  376. package/dist/components/select/select-config.d.ts.map +0 -1
  377. package/dist/components/select/select-config.js +0 -10
  378. package/dist/components/select/select-styles.d.ts.map +0 -1
  379. package/dist/components/select/select-styles.js +0 -6
  380. package/dist/components/select-menu/SelectMenu.d.ts.map +0 -1
  381. package/dist/components/select-menu/SelectMenu.js +0 -198
  382. package/dist/components/select-menu/index.d.ts +0 -4
  383. package/dist/components/select-menu/index.d.ts.map +0 -1
  384. package/dist/components/select-menu/index.js +0 -3
  385. package/dist/components/select-menu/select-menu-config.d.ts.map +0 -1
  386. package/dist/components/select-menu/select-menu-config.js +0 -14
  387. package/dist/components/select-menu/use-select-floating.d.ts.map +0 -1
  388. package/dist/components/select-menu/use-select-floating.js +0 -50
  389. /package/dist/components/{date-picker → calendar}/TimeSpinner.d.ts +0 -0
package/dist/index.js CHANGED
@@ -1,165 +1,81 @@
1
1
  "use client";
2
+ import "./components/scrollbar/scrollbar-config.js";
3
+ import { THEME_STORAGE_KEY as e, themeController as t } from "./theme/controller.js";
4
+ import { useTheme as n } from "./theme/useTheme.js";
2
5
  import { AsheeUIProvider as r } from "./AsheeUIProvider.js";
3
- import { THEME_STORAGE_KEY as f, themeController as C } from "./theme/controller.js";
4
- import { useTheme as A } from "./theme/useTheme.js";
5
- import { Accordion as m } from "./components/accordion/Accordion.js";
6
- import { Autocomplete as L } from "./components/autocomplete/Autocomplete.js";
7
- import { Button as _ } from "./components/button/Button.js";
8
- import { Card as l } from "./components/card/Card.js";
9
- import { Carousel as u } from "./components/carousel/Carousel.js";
10
- import { Chip as I } from "./components/chip/Chip.js";
11
- import { DatePicker as K } from "./components/date-picker/DatePicker.js";
12
- import { Drawer as T } from "./components/drawer/Drawer.js";
13
- import { FALLBACK_ACCORDION_CONFIG as G, defaultAccordionConfig as g } from "./components/accordion/accordion-config.js";
14
- import { FALLBACK_AUTOCOMPLETE_CONFIG as S, defaultAutocompleteConfig as s } from "./components/autocomplete/autocomplete-config.js";
15
- import { FALLBACK_BUTTON_CONFIG as c, defaultButtonConfig as b } from "./components/button/button-config.js";
16
- import { FALLBACK_CARD_CONFIG as M, defaultCardConfig as P } from "./components/card/card-config.js";
17
- import { FALLBACK_CAROUSEL_CONFIG as h, defaultCarouselConfig as U } from "./components/carousel/carousel-config.js";
18
- import { FALLBACK_CHIP_CONFIG as k, defaultChipConfig as v } from "./components/chip/chip-config.js";
19
- import { FALLBACK_DATE_PICKER_CONFIG as q, defaultDatePickerConfig as z } from "./components/date-picker/date-picker-config.js";
20
- import { FALLBACK_DRAWER_CONFIG as Y, defaultDrawerConfig as Q } from "./components/drawer/drawer-config.js";
21
- import { FALLBACK_FIELD_CONFIG as Z, defaultFieldConfig as j } from "./components/field/field-config.js";
22
- import { FALLBACK_IMAGE_CONFIG as V, defaultImageConfig as $ } from "./components/image/image-config.js";
23
- import { FALLBACK_KEYBOARD_CONFIG as eo, defaultKeyDisplay as ro, defaultKeyboardConfig as to, defaultKeyboardLayouts as fo } from "./components/keyboard/keyboard-config.js";
24
- import { FALLBACK_LINK_CONFIG as po, defaultLinkConfig as Ao } from "./components/link/link-config.js";
25
- import { FALLBACK_MARQUEE_CONFIG as mo, defaultMarqueeConfig as xo } from "./components/marquee/marquee-config.js";
26
- import { FALLBACK_MODAL_CONFIG as io, defaultModalConfig as _o } from "./components/modal/modal-config.js";
27
- import { FALLBACK_MULTI_SELECT_CONFIG as Fo, defaultMultiSelectConfig as uo } from "./components/multi-select/multi-select-config.js";
28
- import { FALLBACK_RADIO_CONFIG as Io, defaultRadioConfig as Oo } from "./components/radio/radio-config.js";
29
- import { FALLBACK_RESIZABLE_SCREEN_CONFIG as Bo, defaultResizableScreenConfig as To } from "./components/resizable-screen/resizable-screen-config.js";
30
- import { FALLBACK_SELECT_CONFIG as Go, defaultSelectConfig as go } from "./components/select/select-config.js";
31
- import { FALLBACK_SIDEBAR_CONFIG as So, defaultSidebarConfig as so } from "./components/sidebar/sidebar-config.js";
32
- import { FALLBACK_SPINNER_CONFIG as co, defaultSpinnerConfig as bo } from "./components/spinner/spinner-config.js";
33
- import { FALLBACK_SWITCH_CONFIG as Mo, defaultSwitchConfig as Po } from "./components/switch/switch-config.js";
34
- import { FALLBACK_TABLE_CONFIG as ho, defaultTableConfig as Uo } from "./components/table/table-config.js";
35
- import { FALLBACK_TABS_CONFIG as ko, defaultTabsConfig as vo } from "./components/tabs/tabs-config.js";
36
- import { FALLBACK_TEXTAREA_CONFIG as qo, defaultTextAreaConfig as zo } from "./components/textarea/textarea-config.js";
37
- import { FALLBACK_TOAST_CONFIG as Yo, defaultToastConfig as Qo } from "./components/toast/toast-config.js";
38
- import { FALLBACK_TOOLTIP_CONFIG as Zo, defaultTooltipConfig as jo } from "./components/tooltip/tooltip-config.js";
39
- import { FieldShell as Vo } from "./components/field/FieldShell.js";
40
- import { Image as oe } from "./components/image/Image.js";
41
- import { Input as re } from "./components/input/Input.js";
42
- import { KeyboardContext as fe, useKeyboard as Ce } from "./components/keyboard/KeyboardContext.js";
43
- import { KeyboardProvider as Ae } from "./components/keyboard/KeyboardProvider.js";
44
- import { Link as me } from "./components/link/Link.js";
45
- import { Marquee as Le } from "./components/marquee/Marquee.js";
46
- import { Modal as _e } from "./components/modal/Modal.js";
47
- import { MultiSelect as le } from "./components/multi-select/MultiSelect.js";
48
- import { OnScreenKeyboard as ue } from "./components/keyboard/OnScreenKeyboard.js";
49
- import { PasswordInput as Ie } from "./components/input/PasswordInput.js";
50
- import { Radio as Ke } from "./components/radio/RadioGroup.js";
51
- import { RadioContext as Te, useRadioGroupContext as Ne } from "./components/radio/radio-context.js";
52
- import { RadioGroup as ge } from "./components/radio/Radio.js";
53
- import { ResizableScreen as Se } from "./components/resizable-screen/ResizableScreen.js";
54
- import { Select as Re } from "./components/select/Select.js";
55
- import { Sidebar as be } from "./components/sidebar/Sidebar.js";
56
- import { Spinner as Me } from "./components/spinner/spinner.js";
57
- import { Switch as ye } from "./components/switch/Switch.js";
58
- import { Table as Ue } from "./components/table/Table.js";
59
- import { Tabs as ke } from "./components/tabs/Tabs.js";
60
- import { TextArea as He } from "./components/textarea/Textarea.js";
61
- import { ToastContext as ze, useToast as We } from "./components/toast/ToastContext.js";
62
- import { ToastItem as Qe } from "./components/toast/ToastItem.js";
63
- import { ToastProvider as Ze } from "./components/toast/ToastProvider.js";
64
- import { Tooltip as Je } from "./components/tooltip/Tooltip.js";
65
- import { defaultInputConfig as $e } from "./components/input/input-config.js";
66
- import { useKeyboardField as er } from "./components/keyboard/use-keyboard-field.js";
67
- export {
68
- m as Accordion,
69
- r as AsheeUIProvider,
70
- L as Autocomplete,
71
- _ as Button,
72
- l as Card,
73
- u as Carousel,
74
- I as Chip,
75
- K as DatePicker,
76
- T as Drawer,
77
- G as FALLBACK_ACCORDION_CONFIG,
78
- S as FALLBACK_AUTOCOMPLETE_CONFIG,
79
- c as FALLBACK_BUTTON_CONFIG,
80
- M as FALLBACK_CARD_CONFIG,
81
- h as FALLBACK_CAROUSEL_CONFIG,
82
- k as FALLBACK_CHIP_CONFIG,
83
- q as FALLBACK_DATE_PICKER_CONFIG,
84
- Y as FALLBACK_DRAWER_CONFIG,
85
- Z as FALLBACK_FIELD_CONFIG,
86
- V as FALLBACK_IMAGE_CONFIG,
87
- eo as FALLBACK_KEYBOARD_CONFIG,
88
- po as FALLBACK_LINK_CONFIG,
89
- mo as FALLBACK_MARQUEE_CONFIG,
90
- io as FALLBACK_MODAL_CONFIG,
91
- Fo as FALLBACK_MULTI_SELECT_CONFIG,
92
- Io as FALLBACK_RADIO_CONFIG,
93
- Bo as FALLBACK_RESIZABLE_SCREEN_CONFIG,
94
- Go as FALLBACK_SELECT_CONFIG,
95
- So as FALLBACK_SIDEBAR_CONFIG,
96
- co as FALLBACK_SPINNER_CONFIG,
97
- Mo as FALLBACK_SWITCH_CONFIG,
98
- ho as FALLBACK_TABLE_CONFIG,
99
- ko as FALLBACK_TABS_CONFIG,
100
- qo as FALLBACK_TEXTAREA_CONFIG,
101
- Yo as FALLBACK_TOAST_CONFIG,
102
- Zo as FALLBACK_TOOLTIP_CONFIG,
103
- Vo as FieldShell,
104
- oe as Image,
105
- re as Input,
106
- fe as KeyboardContext,
107
- Ae as KeyboardProvider,
108
- me as Link,
109
- Le as Marquee,
110
- _e as Modal,
111
- le as MultiSelect,
112
- ue as OnScreenKeyboard,
113
- Ie as PasswordInput,
114
- Ke as Radio,
115
- Te as RadioContext,
116
- ge as RadioGroup,
117
- Se as ResizableScreen,
118
- Re as Select,
119
- be as Sidebar,
120
- Me as Spinner,
121
- ye as Switch,
122
- f as THEME_STORAGE_KEY,
123
- Ue as Table,
124
- ke as Tabs,
125
- He as TextArea,
126
- ze as ToastContext,
127
- Qe as ToastItem,
128
- Ze as ToastProvider,
129
- Je as Tooltip,
130
- g as defaultAccordionConfig,
131
- s as defaultAutocompleteConfig,
132
- b as defaultButtonConfig,
133
- P as defaultCardConfig,
134
- U as defaultCarouselConfig,
135
- v as defaultChipConfig,
136
- z as defaultDatePickerConfig,
137
- Q as defaultDrawerConfig,
138
- j as defaultFieldConfig,
139
- $ as defaultImageConfig,
140
- $e as defaultInputConfig,
141
- ro as defaultKeyDisplay,
142
- to as defaultKeyboardConfig,
143
- fo as defaultKeyboardLayouts,
144
- Ao as defaultLinkConfig,
145
- xo as defaultMarqueeConfig,
146
- _o as defaultModalConfig,
147
- uo as defaultMultiSelectConfig,
148
- Oo as defaultRadioConfig,
149
- To as defaultResizableScreenConfig,
150
- go as defaultSelectConfig,
151
- so as defaultSidebarConfig,
152
- bo as defaultSpinnerConfig,
153
- Po as defaultSwitchConfig,
154
- Uo as defaultTableConfig,
155
- vo as defaultTabsConfig,
156
- zo as defaultTextAreaConfig,
157
- Qo as defaultToastConfig,
158
- jo as defaultTooltipConfig,
159
- C as themeController,
160
- Ce as useKeyboard,
161
- er as useKeyboardField,
162
- Ne as useRadioGroupContext,
163
- A as useTheme,
164
- We as useToast
165
- };
6
+ import { FALLBACK_ACCORDION_CONFIG as i, defaultAccordionConfig as a } from "./components/accordion/accordion-config.js";
7
+ import { Accordion as o } from "./components/accordion/Accordion.js";
8
+ import { FALLBACK_ALERT_CONFIG as s, defaultAlertConfig as c } from "./components/alert/alert-config.js";
9
+ import { Alert as l } from "./components/alert/Alert.js";
10
+ import { FALLBACK_SPINNER_CONFIG as u, defaultSpinnerConfig as d } from "./components/spinner/spinner-config.js";
11
+ import { Spinner as f } from "./components/spinner/spinner.js";
12
+ import { KeyboardContext as p, useKeyboard as m } from "./components/keyboard/KeyboardContext.js";
13
+ import { FALLBACK_KEYBOARD_CONFIG as h, defaultKeyDisplay as g, defaultKeyboardConfig as _, defaultKeyboardLayouts as v } from "./components/keyboard/keyboard-config.js";
14
+ import { FALLBACK_BUTTON_CONFIG as y, defaultButtonConfig as b } from "./components/button/button-config.js";
15
+ import { Button as x } from "./components/button/Button.js";
16
+ import { OnScreenKeyboard as S } from "./components/keyboard/OnScreenKeyboard.js";
17
+ import { KeyboardProvider as C } from "./components/keyboard/KeyboardProvider.js";
18
+ import { useKeyboardField as w } from "./components/keyboard/use-keyboard-field.js";
19
+ import { Input as T } from "./components/input/Input.js";
20
+ import { defaultInputConfig as E } from "./components/input/input-config.js";
21
+ import { PasswordInput as D } from "./components/input/PasswordInput.js";
22
+ import { FALLBACK_AUTOCOMPLETE_CONFIG as O, defaultAutocompleteConfig as k } from "./components/autocomplete/autocomplete-config.js";
23
+ import { Autocomplete as A } from "./components/autocomplete/Autocomplete.js";
24
+ import { FALLBACK_IMAGE_CONFIG as j, defaultImageConfig as M } from "./components/image/image-config.js";
25
+ import { Image as N } from "./components/image/Image.js";
26
+ import { FALLBACK_AVATAR_CONFIG as P, defaultAvatarConfig as F } from "./components/avatar/avatar-config.js";
27
+ import { Avatar as I } from "./components/avatar/Avatar.js";
28
+ import { FALLBACK_BADGE_CONFIG as L, defaultBadgeConfig as R } from "./components/badge/badge-config.js";
29
+ import { Badge as z } from "./components/badge/Badge.js";
30
+ import { FALLBACK_LINK_CONFIG as B, defaultLinkConfig as V } from "./components/link/link-config.js";
31
+ import { Link as H } from "./components/link/Link.js";
32
+ import { FALLBACK_BREADCRUMB_CONFIG as U, defaultBreadcrumbConfig as W } from "./components/breadcrumb/breadcrumb-config.js";
33
+ import { Breadcrumb as G } from "./components/breadcrumb/Breadcrumb.js";
34
+ import { FALLBACK_CARD_CONFIG as K, defaultCardConfig as q } from "./components/card/card-config.js";
35
+ import { Card as J } from "./components/card/Card.js";
36
+ import { FALLBACK_CAROUSEL_CONFIG as Y, defaultCarouselConfig as X } from "./components/carousel/carousel-config.js";
37
+ import { Carousel as Z } from "./components/carousel/Carousel.js";
38
+ import { FALLBACK_CHIP_CONFIG as Q, defaultChipConfig as $ } from "./components/chip/chip-config.js";
39
+ import { Chip as ee } from "./components/chip/Chip.js";
40
+ import { FALLBACK_DATE_PICKER_CONFIG as te, defaultCalendarConfig as ne } from "./components/calendar/calendar-config.js";
41
+ import { Calendar as re } from "./components/calendar/Calendar.js";
42
+ import { FALLBACK_DRAWER_CONFIG as ie, defaultDrawerConfig as ae } from "./components/drawer/drawer-config.js";
43
+ import { Drawer as oe } from "./components/drawer/Drawer.js";
44
+ import { FALLBACK_SELECT_CONFIG as se, defaultDropmenuConfig as ce } from "./components/dropmenu/dropmenu-config.js";
45
+ import { Dropmenu as le } from "./components/dropmenu/Dropmenu.js";
46
+ import { FALLBACK_FORM_CONFIG as ue, defaultFormConfig as de } from "./components/form/form-config.js";
47
+ import { Form as fe } from "./components/form/Form.js";
48
+ import { FALLBACK_MARQUEE_CONFIG as pe, defaultMarqueeConfig as me } from "./components/marquee/marquee-config.js";
49
+ import { Marquee as he } from "./components/marquee/Marquee.js";
50
+ import { FALLBACK_MODAL_CONFIG as ge, defaultModalConfig as _e } from "./components/modal/modal-config.js";
51
+ import { Modal as ve } from "./components/modal/Modal.js";
52
+ import { FALLBACK_MULTI_SELECT_CONFIG as ye, defaultMultiSelectConfig as be } from "./components/multi-select/multi-select-config.js";
53
+ import { MultiSelect as xe } from "./components/multi-select/MultiSelect.js";
54
+ import { FALLBACK_PAGINATION_CONFIG as Se, defaultPaginationConfig as Ce } from "./components/pagination/pagination-config.js";
55
+ import { Pagination as we } from "./components/pagination/Pagination.js";
56
+ import { FALLBACK_RADIO_CONFIG as Te, defaultRadioConfig as Ee } from "./components/radio/radio-config.js";
57
+ import { Radio as De } from "./components/radio/Radio.js";
58
+ import { RadioGroup as Oe } from "./components/radio/RadioGroup.js";
59
+ import { FALLBACK_RESIZABLE_SCREEN_CONFIG as ke, defaultResizableScreenConfig as Ae } from "./components/resizable-screen/resizable-screen-config.js";
60
+ import { ResizableScreen as je } from "./components/resizable-screen/ResizableScreen.js";
61
+ import { FALLBACK_TOOLTIP_CONFIG as Me, defaultTooltipConfig as Ne } from "./components/tooltip/tooltip-config.js";
62
+ import { Tooltip as Pe } from "./components/tooltip/Tooltip.js";
63
+ import { FALLBACK_SIDEBAR_CONFIG as Fe, defaultSidebarConfig as Ie } from "./components/sidebar/sidebar-config.js";
64
+ import { Sidebar as Le } from "./components/sidebar/Sidebar.js";
65
+ import { FALLBACK_SKELETON_CONFIG as Re, defaultSkeletonConfig as ze } from "./components/skeleton/skeleton-config.js";
66
+ import { Skeleton as Be } from "./components/skeleton/Skeleton.js";
67
+ import { FALLBACK_SWITCH_CONFIG as Ve, defaultSwitchConfig as He } from "./components/switch/switch-config.js";
68
+ import { Switch as Ue } from "./components/switch/Switch.js";
69
+ import { FALLBACK_TABLE_CONFIG as We, defaultTableConfig as Ge } from "./components/table/table-config.js";
70
+ import { Table as Ke } from "./components/table/Table.js";
71
+ import { FALLBACK_TABS_CONFIG as qe, defaultTabsConfig as Je } from "./components/tabs/tabs-config.js";
72
+ import { Tabs as Ye } from "./components/tabs/Tabs.js";
73
+ import { FALLBACK_TEXTAREA_CONFIG as Xe, defaultTextAreaConfig as Ze } from "./components/textarea/textarea-config.js";
74
+ import { Textarea as Qe } from "./components/textarea/Textarea.js";
75
+ import { ToastContext as $e, useToast as et } from "./components/toast/ToastContext.js";
76
+ import { FALLBACK_TOAST_CONFIG as tt, defaultToastConfig as nt } from "./components/toast/toast-config.js";
77
+ import { ToastItem as rt } from "./components/toast/ToastItem.js";
78
+ import { ToastProvider as it } from "./components/toast/ToastProvider.js";
79
+ import { FALLBACK_TYPOGRAPHY_CONFIG as at, defaultTypographyConfig as ot } from "./components/typography/typography-config.js";
80
+ import { Typography as st } from "./components/typography/Typography.js";
81
+ export { o as Accordion, l as Alert, r as AsheeUIProvider, A as Autocomplete, I as Avatar, z as Badge, G as Breadcrumb, x as Button, re as Calendar, J as Card, Z as Carousel, ee as Chip, oe as Drawer, le as Dropmenu, i as FALLBACK_ACCORDION_CONFIG, s as FALLBACK_ALERT_CONFIG, O as FALLBACK_AUTOCOMPLETE_CONFIG, P as FALLBACK_AVATAR_CONFIG, L as FALLBACK_BADGE_CONFIG, U as FALLBACK_BREADCRUMB_CONFIG, y as FALLBACK_BUTTON_CONFIG, K as FALLBACK_CARD_CONFIG, Y as FALLBACK_CAROUSEL_CONFIG, Q as FALLBACK_CHIP_CONFIG, te as FALLBACK_DATE_PICKER_CONFIG, ie as FALLBACK_DRAWER_CONFIG, ue as FALLBACK_FORM_CONFIG, j as FALLBACK_IMAGE_CONFIG, h as FALLBACK_KEYBOARD_CONFIG, B as FALLBACK_LINK_CONFIG, pe as FALLBACK_MARQUEE_CONFIG, ge as FALLBACK_MODAL_CONFIG, ye as FALLBACK_MULTI_SELECT_CONFIG, Se as FALLBACK_PAGINATION_CONFIG, Te as FALLBACK_RADIO_CONFIG, ke as FALLBACK_RESIZABLE_SCREEN_CONFIG, se as FALLBACK_SELECT_CONFIG, Fe as FALLBACK_SIDEBAR_CONFIG, Re as FALLBACK_SKELETON_CONFIG, u as FALLBACK_SPINNER_CONFIG, Ve as FALLBACK_SWITCH_CONFIG, We as FALLBACK_TABLE_CONFIG, qe as FALLBACK_TABS_CONFIG, Xe as FALLBACK_TEXTAREA_CONFIG, tt as FALLBACK_TOAST_CONFIG, Me as FALLBACK_TOOLTIP_CONFIG, at as FALLBACK_TYPOGRAPHY_CONFIG, fe as Form, N as Image, T as Input, p as KeyboardContext, C as KeyboardProvider, H as Link, he as Marquee, ve as Modal, xe as MultiSelect, S as OnScreenKeyboard, we as Pagination, D as PasswordInput, De as Radio, Oe as RadioGroup, je as ResizableScreen, Le as Sidebar, Be as Skeleton, f as Spinner, Ue as Switch, e as THEME_STORAGE_KEY, Ke as Table, Ye as Tabs, Qe as Textarea, $e as ToastContext, rt as ToastItem, it as ToastProvider, Pe as Tooltip, st as Typography, a as defaultAccordionConfig, c as defaultAlertConfig, k as defaultAutocompleteConfig, F as defaultAvatarConfig, R as defaultBadgeConfig, W as defaultBreadcrumbConfig, b as defaultButtonConfig, ne as defaultCalendarConfig, q as defaultCardConfig, X as defaultCarouselConfig, $ as defaultChipConfig, ae as defaultDrawerConfig, ce as defaultDropmenuConfig, de as defaultFormConfig, M as defaultImageConfig, E as defaultInputConfig, g as defaultKeyDisplay, _ as defaultKeyboardConfig, v as defaultKeyboardLayouts, V as defaultLinkConfig, me as defaultMarqueeConfig, _e as defaultModalConfig, be as defaultMultiSelectConfig, Ce as defaultPaginationConfig, Ee as defaultRadioConfig, Ae as defaultResizableScreenConfig, Ie as defaultSidebarConfig, ze as defaultSkeletonConfig, d as defaultSpinnerConfig, He as defaultSwitchConfig, Ge as defaultTableConfig, Je as defaultTabsConfig, Ze as defaultTextAreaConfig, nt as defaultToastConfig, Ne as defaultTooltipConfig, ot as defaultTypographyConfig, t as themeController, m as useKeyboard, w as useKeyboardField, n as useTheme, et as useToast };
@@ -1,15 +1,12 @@
1
1
  "use client";
2
- import { useContext as o, createContext as t } from "react";
3
- const n = t(null);
4
- function i() {
5
- const e = o(n);
6
- if (!e)
7
- throw new Error(
8
- "useAsheeConfig must be used within an AsheeUIProvider - wrap your app root with <AsheeUIProvider>."
9
- );
10
- return e;
2
+ "use client";
3
+ import { createContext as e, useContext as t } from "react";
4
+ //#region src/libs/context.tsx
5
+ var n = e(null);
6
+ function r() {
7
+ let e = t(n);
8
+ if (!e) throw Error("useAsheeConfig must be used within an AsheeUIProvider - wrap your app root with <AsheeUIProvider>.");
9
+ return e;
11
10
  }
12
- export {
13
- n as AsheeConfigContext,
14
- i as useAsheeConfig
15
- };
11
+ //#endregion
12
+ export { n as AsheeConfigContext, r as useAsheeConfig };
@@ -1,3 +1,7 @@
1
1
  export * from "./context.js";
2
2
  export * from "./registry.js";
3
+ export * from "./use-body-scroll-lock.js";
4
+ export * from "./use-dialog-overlay.js";
5
+ export * from "./use-floating-z-index.js";
3
6
  export * from "./use-isomorphic-layout-effect.js";
7
+ export * from "./use-prefers-reduced-motion.js";
@@ -1,15 +1,13 @@
1
1
  "use client";
2
- const n = /* @__PURE__ */ new Map();
3
- function s(e, t) {
4
- n.set(e, t);
2
+ //#region src/libs/registry.ts
3
+ var e = /* @__PURE__ */ new Map();
4
+ function t(t, n) {
5
+ e.set(t, n);
5
6
  }
6
- function r() {
7
- const e = {};
8
- for (const [t, o] of n.entries())
9
- e[t] = o;
10
- return e;
7
+ function n() {
8
+ let t = {};
9
+ for (let [n, r] of e.entries()) t[n] = r;
10
+ return t;
11
11
  }
12
- export {
13
- r as getAllComponentDefaults,
14
- s as registerComponentDefaults
15
- };
12
+ //#endregion
13
+ export { n as getAllComponentDefaults, t as registerComponentDefaults };
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Body scroll lock for overlay components.
3
+ *
4
+ * Overlays that cover the page (modal dialogs, drawers, dropdown menus) stop
5
+ * the page behind them from scrolling. The lock is reference counted, so
6
+ * overlays that are open at the same time share one lock: the body styles
7
+ * captured when the first overlay opens are restored only after the last one
8
+ * closes. An overlay therefore never captures the styles of an already locked
9
+ * body, and never restores them while another overlay is still open.
10
+ */
11
+ /**
12
+ * Locks body scroll while `active` is true.
13
+ *
14
+ * The lock is shared by every caller: it applies on the first overlay that
15
+ * becomes active and is released when the last one stops being active. The
16
+ * lock is applied from an effect, so server rendering is unaffected.
17
+ *
18
+ * @param active - Whether the calling overlay currently covers the page.
19
+ */
20
+ export declare function useBodyScrollLock(active: boolean): void;
21
+ //# sourceMappingURL=use-body-scroll-lock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-body-scroll-lock.d.ts","sourceRoot":"","sources":["../../src/libs/use-body-scroll-lock.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAsDH;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAevD"}
@@ -0,0 +1,27 @@
1
+ "use client";
2
+ "use client";
3
+ import { useEffect as e } from "react";
4
+ //#region src/libs/use-body-scroll-lock.ts
5
+ var t = 0, n = null;
6
+ function r() {
7
+ let e = window.scrollY, { style: t } = document.body, n = {
8
+ position: t.position,
9
+ top: t.top,
10
+ left: t.left,
11
+ right: t.right,
12
+ width: t.width,
13
+ overflow: t.overflow
14
+ };
15
+ return t.position = "fixed", t.top = `-${e}px`, t.left = "0", t.right = "0", t.width = "100%", t.overflow = "hidden", () => {
16
+ t.position = n.position, t.top = n.top, t.left = n.left, t.right = n.right, t.width = n.width, t.overflow = n.overflow, window.scrollTo(0, e);
17
+ };
18
+ }
19
+ function i(i) {
20
+ e(() => {
21
+ if (!(!i || typeof document > "u" || !document.body)) return t === 0 && (n = r()), t += 1, () => {
22
+ --t, t === 0 && (n?.(), n = null);
23
+ };
24
+ }, [i]);
25
+ }
26
+ //#endregion
27
+ export { i as useBodyScrollLock };
@@ -0,0 +1,21 @@
1
+ import { FloatingRootContext } from '@floating-ui/react';
2
+ import { RefCallback } from 'react';
3
+ /** The focus wiring a dialog overlay needs. */
4
+ export interface DialogOverlayWiring {
5
+ /** Context consumed by `FloatingFocusManager`. */
6
+ context: FloatingRootContext;
7
+ /** Registers the dialog element as the focus scope root. */
8
+ setDialogRef: RefCallback<HTMLElement>;
9
+ }
10
+ /**
11
+ * Wires a dialog overlay to the shared focus management.
12
+ *
13
+ * The dialog element is held in state rather than a ref so that the root
14
+ * context exposes it on the render after it mounts: the focus manager ignores a
15
+ * context whose floating element is still unknown.
16
+ *
17
+ * @param isOpen - Whether the dialog is open.
18
+ * @returns The focus context and the dialog ref setter.
19
+ */
20
+ export declare function useDialogOverlay(isOpen: boolean): DialogOverlayWiring;
21
+ //# sourceMappingURL=use-dialog-overlay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-dialog-overlay.d.ts","sourceRoot":"","sources":["../../src/libs/use-dialog-overlay.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,KAAK,WAAW,EAAyB,MAAM,OAAO,CAAC;AAEhE,+CAA+C;AAC/C,MAAM,WAAW,mBAAmB;IAClC,kDAAkD;IAClD,OAAO,EAAE,mBAAmB,CAAC;IAC7B,4DAA4D;IAC5D,YAAY,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;CACxC;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,OAAO,GAAG,mBAAmB,CAerE"}
@@ -0,0 +1,21 @@
1
+ "use client";
2
+ "use client";
3
+ import { useCallback as e, useState as t } from "react";
4
+ import { useFloatingRootContext as n } from "@floating-ui/react";
5
+ //#region src/libs/use-dialog-overlay.ts
6
+ function r(r) {
7
+ let [i, a] = t(null), o = e(() => {}, []);
8
+ return {
9
+ context: n({
10
+ open: r,
11
+ onOpenChange: o,
12
+ elements: {
13
+ reference: null,
14
+ floating: i
15
+ }
16
+ }),
17
+ setDialogRef: a
18
+ };
19
+ }
20
+ //#endregion
21
+ export { r as useDialogOverlay };
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Floating z-index hook for AsheeUI.
3
+ * This file provides a hook that derives a portaled floating element's
4
+ * `z-index` from its trigger's stacking context, so anchored popups layer
5
+ * correctly against both AsheeUI components and arbitrary client components.
6
+ */
7
+ /**
8
+ * Derives the `z-index` a portaled floating element should use so it renders
9
+ * above its trigger's stacking context without outranking unrelated app
10
+ * chrome such as a custom navbar.
11
+ *
12
+ * The base value is measured in a layout effect, so the corrected z-index is
13
+ * applied before the browser paints and the floating element never flashes at
14
+ * the wrong layer.
15
+ *
16
+ * @param reference - Ref to the trigger element. Floating UI virtual elements
17
+ * are ignored, since they have no DOM ancestors to inspect.
18
+ * @param isOpen - Whether the floating element is open.
19
+ * @param layerDelta - The component's layer delta from `ASHEE_LAYER`.
20
+ * @returns The derived `z-index` for the floating element.
21
+ *
22
+ * @example
23
+ * ```tsx
24
+ * const zIndex = useFloatingZIndex(refs.reference, isOpen, ASHEE_LAYER.tooltip);
25
+ * ```
26
+ *
27
+ * @see resolveBaseZIndex - The underlying stacking-context resolution.
28
+ */
29
+ export declare function useFloatingZIndex(reference: {
30
+ readonly current: unknown;
31
+ }, isOpen: boolean, layerDelta: number): number;
32
+ //# sourceMappingURL=use-floating-z-index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-floating-z-index.d.ts","sourceRoot":"","sources":["../../src/libs/use-floating-z-index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE;IAAE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;CAAE,EACxC,MAAM,EAAE,OAAO,EACf,UAAU,EAAE,MAAM,GACjB,MAAM,CAcR"}
@@ -0,0 +1,16 @@
1
+ "use client";
2
+ "use client";
3
+ import { resolveBaseZIndex as e } from "../utils/stacking.js";
4
+ import { useIsomorphicLayoutEffect as t } from "./use-isomorphic-layout-effect.js";
5
+ import { useState as n } from "react";
6
+ //#region src/libs/use-floating-z-index.ts
7
+ function r(r, i, a) {
8
+ let [o, s] = n(0);
9
+ return t(() => {
10
+ if (!i) return;
11
+ let t = r.current;
12
+ s(e(t instanceof Element ? t : null));
13
+ }, [i, r]), o + a;
14
+ }
15
+ //#endregion
16
+ export { r as useFloatingZIndex };
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { useLayoutEffect as e, useEffect as o } from "react";
3
- const f = typeof window < "u" ? e : o;
4
- export {
5
- f as useIsomorphicLayoutEffect
6
- };
2
+ import { useEffect as e, useLayoutEffect as t } from "react";
3
+ //#region src/libs/use-isomorphic-layout-effect.ts
4
+ var n = typeof window < "u" ? t : e;
5
+ //#endregion
6
+ export { n as useIsomorphicLayoutEffect };
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Reduced-motion preference for AsheeUI.
3
+ *
4
+ * Continuous or automatic motion (a marquee loop, carousel autoplay and
5
+ * transitions) must yield to the operating system's reduced-motion preference.
6
+ * Components read the preference through this hook instead of each
7
+ * one querying the media query themselves, so the behaviour is defined once and
8
+ * is observable in a test.
9
+ */
10
+ /** Media query that reports the user's reduced-motion preference. */
11
+ export declare const REDUCED_MOTION_QUERY = "(prefers-reduced-motion: reduce)";
12
+ /**
13
+ * Reports whether the user asked for reduced motion.
14
+ *
15
+ * The preference is read after mount, so server rendering always produces the
16
+ * motion-safe markup and hydration never mismatches. Without a `matchMedia`
17
+ * implementation the preference is reported as `false`, which keeps the
18
+ * component's own behaviour unchanged.
19
+ *
20
+ * @returns `true` while the user prefers reduced motion.
21
+ */
22
+ export declare function usePrefersReducedMotion(): boolean;
23
+ //# sourceMappingURL=use-prefers-reduced-motion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-prefers-reduced-motion.d.ts","sourceRoot":"","sources":["../../src/libs/use-prefers-reduced-motion.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,qEAAqE;AACrE,eAAO,MAAM,oBAAoB,qCAAqC,CAAC;AAEvE;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,IAAI,OAAO,CAoBjD"}
@@ -0,0 +1,19 @@
1
+ "use client";
2
+ "use client";
3
+ import { useEffect as e, useState as t } from "react";
4
+ //#region src/libs/use-prefers-reduced-motion.ts
5
+ var n = "(prefers-reduced-motion: reduce)";
6
+ function r() {
7
+ let [r, i] = t(!1);
8
+ return e(() => {
9
+ if (typeof window > "u" || !window.matchMedia) return;
10
+ let e = window.matchMedia(n);
11
+ i(e.matches);
12
+ let t = (e) => {
13
+ i(e.matches);
14
+ };
15
+ return e.addEventListener("change", t), () => e.removeEventListener("change", t);
16
+ }, []), r;
17
+ }
18
+ //#endregion
19
+ export { n as REDUCED_MOTION_QUERY, r as usePrefersReducedMotion };