asheeui 0.6.2 → 0.6.5

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 (281) hide show
  1. package/dist/AsheeUIProvider.d.ts +34 -0
  2. package/dist/AsheeUIProvider.d.ts.map +1 -1
  3. package/dist/components/accordion/Accordion.d.ts +55 -44
  4. package/dist/components/accordion/Accordion.d.ts.map +1 -1
  5. package/dist/components/accordion/Accordion.js +27 -27
  6. package/dist/components/accordion/accordion-config.d.ts +41 -12
  7. package/dist/components/accordion/accordion-config.d.ts.map +1 -1
  8. package/dist/components/accordion/accordion-styles.d.ts +20 -0
  9. package/dist/components/accordion/accordion-styles.d.ts.map +1 -1
  10. package/dist/components/accordion/accordion-styles.js +1 -1
  11. package/dist/components/autocomplete/Autocomplete.d.ts +59 -39
  12. package/dist/components/autocomplete/Autocomplete.d.ts.map +1 -1
  13. package/dist/components/autocomplete/Autocomplete.js +98 -91
  14. package/dist/components/autocomplete/autocomplete-config.d.ts +9 -62
  15. package/dist/components/autocomplete/autocomplete-config.d.ts.map +1 -1
  16. package/dist/components/autocomplete/autocomplete-config.js +6 -21
  17. package/dist/components/button/Button.d.ts +50 -51
  18. package/dist/components/button/Button.d.ts.map +1 -1
  19. package/dist/components/button/Button.js +19 -19
  20. package/dist/components/button/button-config.d.ts +23 -15
  21. package/dist/components/button/button-config.d.ts.map +1 -1
  22. package/dist/components/button/button-styles.d.ts +11 -1
  23. package/dist/components/button/button-styles.d.ts.map +1 -1
  24. package/dist/components/card/Card.d.ts +85 -43
  25. package/dist/components/card/Card.d.ts.map +1 -1
  26. package/dist/components/card/Card.js +49 -49
  27. package/dist/components/card/card-config.d.ts +35 -18
  28. package/dist/components/card/card-config.d.ts.map +1 -1
  29. package/dist/components/card/card-config.js +0 -2
  30. package/dist/components/card/card-styles.d.ts +17 -1
  31. package/dist/components/card/card-styles.d.ts.map +1 -1
  32. package/dist/components/carousel/Carousel.d.ts +107 -12
  33. package/dist/components/carousel/Carousel.d.ts.map +1 -1
  34. package/dist/components/carousel/Carousel.js +63 -64
  35. package/dist/components/carousel/carousel-config.d.ts +94 -7
  36. package/dist/components/carousel/carousel-config.d.ts.map +1 -1
  37. package/dist/components/carousel/carousel-config.js +6 -4
  38. package/dist/components/carousel/carousel-styles.d.ts +32 -1
  39. package/dist/components/carousel/carousel-styles.d.ts.map +1 -1
  40. package/dist/components/chip/Chip.d.ts +55 -34
  41. package/dist/components/chip/Chip.d.ts.map +1 -1
  42. package/dist/components/chip/Chip.js +71 -72
  43. package/dist/components/chip/chip-config.d.ts +29 -15
  44. package/dist/components/chip/chip-config.d.ts.map +1 -1
  45. package/dist/components/chip/chip-config.js +5 -6
  46. package/dist/components/chip/chip-styles.d.ts +21 -1
  47. package/dist/components/chip/chip-styles.d.ts.map +1 -1
  48. package/dist/components/date-picker/DatePicker.d.ts +166 -2
  49. package/dist/components/date-picker/DatePicker.d.ts.map +1 -1
  50. package/dist/components/date-picker/DatePicker.js +110 -99
  51. package/dist/components/date-picker/date-picker-config.d.ts +31 -0
  52. package/dist/components/date-picker/date-picker-config.d.ts.map +1 -1
  53. package/dist/components/date-picker/date-picker-config.js +8 -16
  54. package/dist/components/date-picker/date-picker-styles.d.ts +21 -1
  55. package/dist/components/date-picker/date-picker-styles.d.ts.map +1 -1
  56. package/dist/components/date-picker/date-picker-styles.js +7 -11
  57. package/dist/components/drawer/Drawer.d.ts +97 -7
  58. package/dist/components/drawer/Drawer.d.ts.map +1 -1
  59. package/dist/components/drawer/Drawer.js +9 -9
  60. package/dist/components/drawer/drawer-config.d.ts +54 -1
  61. package/dist/components/drawer/drawer-config.d.ts.map +1 -1
  62. package/dist/components/drawer/drawer-styles.d.ts +21 -0
  63. package/dist/components/drawer/drawer-styles.d.ts.map +1 -1
  64. package/dist/components/field/FieldShell.d.ts +86 -0
  65. package/dist/components/field/FieldShell.d.ts.map +1 -1
  66. package/dist/components/field/field-config.d.ts +66 -3
  67. package/dist/components/field/field-config.d.ts.map +1 -1
  68. package/dist/components/field/field-config.js +2 -1
  69. package/dist/components/field/field-styles.d.ts +22 -0
  70. package/dist/components/field/field-styles.d.ts.map +1 -1
  71. package/dist/components/field/field-styles.js +10 -0
  72. package/dist/components/field/index.js +1 -0
  73. package/dist/components/image/Image.d.ts +35 -28
  74. package/dist/components/image/Image.d.ts.map +1 -1
  75. package/dist/components/image/Image.js +7 -7
  76. package/dist/components/image/image-config.d.ts +25 -7
  77. package/dist/components/image/image-config.d.ts.map +1 -1
  78. package/dist/components/image/image-styles.d.ts +9 -0
  79. package/dist/components/image/image-styles.d.ts.map +1 -1
  80. package/dist/components/input/Input.d.ts +117 -10
  81. package/dist/components/input/Input.d.ts.map +1 -1
  82. package/dist/components/input/Input.js +20 -20
  83. package/dist/components/input/PasswordInput.d.ts +48 -0
  84. package/dist/components/input/PasswordInput.d.ts.map +1 -1
  85. package/dist/components/input/input-config.d.ts +10 -1
  86. package/dist/components/input/input-config.d.ts.map +1 -1
  87. package/dist/components/input/input-config.js +5 -8
  88. package/dist/components/input/input-styles.d.ts +10 -0
  89. package/dist/components/input/input-styles.d.ts.map +1 -1
  90. package/dist/components/input/input-styles.js +5 -9
  91. package/dist/components/keyboard/OnScreenKeyboard.d.ts +58 -8
  92. package/dist/components/keyboard/OnScreenKeyboard.d.ts.map +1 -1
  93. package/dist/components/keyboard/OnScreenKeyboard.js +49 -48
  94. package/dist/components/keyboard/index.js +1 -1
  95. package/dist/components/keyboard/keyboard-config.d.ts +88 -3
  96. package/dist/components/keyboard/keyboard-config.d.ts.map +1 -1
  97. package/dist/components/keyboard/{default-keyboard-config.js → keyboard-config.js} +7 -1
  98. package/dist/components/keyboard/keyboard-context.d.ts +103 -13
  99. package/dist/components/keyboard/keyboard-context.d.ts.map +1 -1
  100. package/dist/components/keyboard/keyboard-context.js +66 -68
  101. package/dist/components/keyboard/use-keyboard-field.d.ts +37 -0
  102. package/dist/components/keyboard/use-keyboard-field.d.ts.map +1 -1
  103. package/dist/components/link/Link.d.ts +118 -9
  104. package/dist/components/link/Link.d.ts.map +1 -1
  105. package/dist/components/link/Link.js +29 -30
  106. package/dist/components/link/link-config.d.ts +58 -5
  107. package/dist/components/link/link-config.d.ts.map +1 -1
  108. package/dist/components/link/link-styles.d.ts +24 -4
  109. package/dist/components/link/link-styles.d.ts.map +1 -1
  110. package/dist/components/marquee/Marquee.d.ts +77 -8
  111. package/dist/components/marquee/Marquee.d.ts.map +1 -1
  112. package/dist/components/marquee/Marquee.js +5 -5
  113. package/dist/components/marquee/marquee-config.d.ts +74 -0
  114. package/dist/components/marquee/marquee-config.d.ts.map +1 -1
  115. package/dist/components/marquee/marquee-styles.d.ts +12 -0
  116. package/dist/components/marquee/marquee-styles.d.ts.map +1 -1
  117. package/dist/components/modal/Modal.d.ts +113 -25
  118. package/dist/components/modal/Modal.d.ts.map +1 -1
  119. package/dist/components/modal/Modal.js +75 -82
  120. package/dist/components/modal/modal-config.d.ts +59 -1
  121. package/dist/components/modal/modal-config.d.ts.map +1 -1
  122. package/dist/components/modal/modal-styles.d.ts +8 -1
  123. package/dist/components/modal/modal-styles.d.ts.map +1 -1
  124. package/dist/components/modal/modal-styles.js +4 -11
  125. package/dist/components/multi-select/MultiSelect.d.ts +152 -23
  126. package/dist/components/multi-select/MultiSelect.d.ts.map +1 -1
  127. package/dist/components/multi-select/MultiSelect.js +195 -217
  128. package/dist/components/multi-select/multi-select-config.d.ts +61 -23
  129. package/dist/components/multi-select/multi-select-config.d.ts.map +1 -1
  130. package/dist/components/multi-select/multi-select-config.js +16 -25
  131. package/dist/components/multi-select/multi-select-styles.d.ts +17 -0
  132. package/dist/components/multi-select/multi-select-styles.d.ts.map +1 -1
  133. package/dist/components/multi-select/multi-select-styles.js +9 -13
  134. package/dist/components/radio/Radio.d.ts +137 -13
  135. package/dist/components/radio/Radio.d.ts.map +1 -1
  136. package/dist/components/radio/Radio.js +66 -141
  137. package/dist/components/radio/RadioGroup.d.ts +88 -23
  138. package/dist/components/radio/RadioGroup.d.ts.map +1 -1
  139. package/dist/components/radio/RadioGroup.js +141 -66
  140. package/dist/components/radio/radio-config.d.ts +36 -11
  141. package/dist/components/radio/radio-config.d.ts.map +1 -1
  142. package/dist/components/radio/radio-config.js +9 -11
  143. package/dist/components/radio/radio-context.d.ts +44 -1
  144. package/dist/components/radio/radio-context.d.ts.map +1 -1
  145. package/dist/components/radio/radio-styles.d.ts +24 -1
  146. package/dist/components/radio/radio-styles.d.ts.map +1 -1
  147. package/dist/components/resizable-screen/ResizableScreen.d.ts +79 -32
  148. package/dist/components/resizable-screen/ResizableScreen.d.ts.map +1 -1
  149. package/dist/components/resizable-screen/ResizableScreen.js +77 -72
  150. package/dist/components/resizable-screen/resizable-screen-config.d.ts +62 -0
  151. package/dist/components/resizable-screen/resizable-screen-config.d.ts.map +1 -1
  152. package/dist/components/scrollbar/scrollbar-config.d.ts +44 -9
  153. package/dist/components/scrollbar/scrollbar-config.d.ts.map +1 -1
  154. package/dist/components/select/Select.d.ts +157 -17
  155. package/dist/components/select/Select.d.ts.map +1 -1
  156. package/dist/components/select/Select.js +141 -152
  157. package/dist/components/select/select-config.d.ts +26 -19
  158. package/dist/components/select/select-config.d.ts.map +1 -1
  159. package/dist/components/select/select-config.js +5 -21
  160. package/dist/components/select/select-styles.d.ts +10 -0
  161. package/dist/components/select/select-styles.d.ts.map +1 -1
  162. package/dist/components/select/select-styles.js +5 -9
  163. package/dist/components/select-menu/SelectMenu.d.ts +125 -8
  164. package/dist/components/select-menu/SelectMenu.d.ts.map +1 -1
  165. package/dist/components/select-menu/SelectMenu.js +107 -79
  166. package/dist/components/select-menu/index.d.ts +2 -0
  167. package/dist/components/select-menu/index.d.ts.map +1 -1
  168. package/dist/components/select-menu/index.js +1 -0
  169. package/dist/components/select-menu/select-menu-config.d.ts +82 -0
  170. package/dist/components/select-menu/select-menu-config.d.ts.map +1 -0
  171. package/dist/components/select-menu/select-menu-config.js +12 -0
  172. package/dist/components/sidebar/Sidebar.d.ts +151 -51
  173. package/dist/components/sidebar/Sidebar.d.ts.map +1 -1
  174. package/dist/components/sidebar/Sidebar.js +211 -232
  175. package/dist/components/sidebar/sidebar-config.d.ts +140 -21
  176. package/dist/components/sidebar/sidebar-config.d.ts.map +1 -1
  177. package/dist/components/sidebar/sidebar-config.js +9 -12
  178. package/dist/components/sidebar/sidebar-styles.d.ts +24 -0
  179. package/dist/components/sidebar/sidebar-styles.d.ts.map +1 -1
  180. package/dist/components/spinner/spinner-config.d.ts +15 -9
  181. package/dist/components/spinner/spinner-config.d.ts.map +1 -1
  182. package/dist/components/spinner/spinner-styles.d.ts +10 -3
  183. package/dist/components/spinner/spinner-styles.d.ts.map +1 -1
  184. package/dist/components/spinner/spinner.d.ts +27 -20
  185. package/dist/components/spinner/spinner.d.ts.map +1 -1
  186. package/dist/components/spinner/spinner.js +18 -18
  187. package/dist/components/switch/Switch.d.ts +109 -9
  188. package/dist/components/switch/Switch.d.ts.map +1 -1
  189. package/dist/components/switch/Switch.js +19 -19
  190. package/dist/components/switch/switch-config.d.ts +20 -6
  191. package/dist/components/switch/switch-config.d.ts.map +1 -1
  192. package/dist/components/switch/switch-config.js +8 -16
  193. package/dist/components/switch/switch-styles.d.ts +17 -0
  194. package/dist/components/switch/switch-styles.d.ts.map +1 -1
  195. package/dist/components/table/Table.d.ts +101 -28
  196. package/dist/components/table/Table.d.ts.map +1 -1
  197. package/dist/components/table/Table.js +56 -56
  198. package/dist/components/table/table-config.d.ts +75 -8
  199. package/dist/components/table/table-config.d.ts.map +1 -1
  200. package/dist/components/table/table-styles.d.ts +25 -6
  201. package/dist/components/table/table-styles.d.ts.map +1 -1
  202. package/dist/components/tabs/Tabs.d.ts +84 -31
  203. package/dist/components/tabs/Tabs.d.ts.map +1 -1
  204. package/dist/components/tabs/Tabs.js +44 -44
  205. package/dist/components/tabs/tabs-config.d.ts +102 -9
  206. package/dist/components/tabs/tabs-config.d.ts.map +1 -1
  207. package/dist/components/tabs/tabs-styles.d.ts +16 -4
  208. package/dist/components/tabs/tabs-styles.d.ts.map +1 -1
  209. package/dist/components/textarea/Textarea.d.ts +105 -11
  210. package/dist/components/textarea/Textarea.d.ts.map +1 -1
  211. package/dist/components/textarea/Textarea.js +27 -24
  212. package/dist/components/textarea/textarea-config.d.ts +21 -0
  213. package/dist/components/textarea/textarea-config.d.ts.map +1 -1
  214. package/dist/components/textarea/textarea-config.js +8 -16
  215. package/dist/components/textarea/textarea-styles.d.ts +9 -0
  216. package/dist/components/textarea/textarea-styles.d.ts.map +1 -1
  217. package/dist/components/textarea/textarea-styles.js +5 -9
  218. package/dist/components/toast/ToastItem.d.ts +58 -4
  219. package/dist/components/toast/ToastItem.d.ts.map +1 -1
  220. package/dist/components/toast/ToastItem.js +18 -18
  221. package/dist/components/toast/toast-config.d.ts +104 -6
  222. package/dist/components/toast/toast-config.d.ts.map +1 -1
  223. package/dist/components/toast/toast-context.d.ts +123 -11
  224. package/dist/components/toast/toast-context.d.ts.map +1 -1
  225. package/dist/components/toast/toast-context.js +19 -19
  226. package/dist/components/toast/toast-styles.d.ts +27 -5
  227. package/dist/components/toast/toast-styles.d.ts.map +1 -1
  228. package/dist/components/toast/use-pausable-timeout.d.ts +29 -0
  229. package/dist/components/toast/use-pausable-timeout.d.ts.map +1 -1
  230. package/dist/components/tooltip/Tooltip.d.ts +76 -16
  231. package/dist/components/tooltip/Tooltip.d.ts.map +1 -1
  232. package/dist/components/tooltip/Tooltip.js +25 -25
  233. package/dist/components/tooltip/tooltip-config.d.ts +73 -3
  234. package/dist/components/tooltip/tooltip-config.d.ts.map +1 -1
  235. package/dist/components/tooltip/tooltip-styles.d.ts +12 -0
  236. package/dist/components/tooltip/tooltip-styles.d.ts.map +1 -1
  237. package/dist/config/config.d.ts +50 -2
  238. package/dist/config/config.d.ts.map +1 -1
  239. package/dist/config/default-config.d.ts +5 -0
  240. package/dist/config/default-config.d.ts.map +1 -1
  241. package/dist/config/default-config.js +23 -0
  242. package/dist/config/define-config.d.ts +23 -0
  243. package/dist/config/define-config.d.ts.map +1 -1
  244. package/dist/config/resolve-color.d.ts +25 -0
  245. package/dist/config/resolve-color.d.ts.map +1 -1
  246. package/dist/config/resolve-config.d.ts +23 -0
  247. package/dist/config/resolve-config.d.ts.map +1 -1
  248. package/dist/index.css +43 -7
  249. package/dist/index.d.ts +30 -2
  250. package/dist/index.d.ts.map +1 -1
  251. package/dist/index.js +120 -115
  252. package/dist/libs/context.d.ts +50 -1
  253. package/dist/libs/context.d.ts.map +1 -1
  254. package/dist/libs/registry.d.ts +61 -5
  255. package/dist/libs/registry.d.ts.map +1 -1
  256. package/dist/libs/use-isomorphic-layout-effect.d.ts +18 -0
  257. package/dist/libs/use-isomorphic-layout-effect.d.ts.map +1 -1
  258. package/dist/shared/index.d.ts +3 -0
  259. package/dist/shared/index.d.ts.map +1 -0
  260. package/dist/shared/radius.d.ts +37 -1
  261. package/dist/shared/radius.d.ts.map +1 -1
  262. package/dist/shared/variant.d.ts +31 -0
  263. package/dist/shared/variant.d.ts.map +1 -1
  264. package/dist/shared/variant.js +132 -45
  265. package/dist/theme/color.d.ts +89 -1
  266. package/dist/theme/color.d.ts.map +1 -1
  267. package/dist/theme/controller.d.ts +121 -0
  268. package/dist/theme/controller.d.ts.map +1 -1
  269. package/dist/theme/controller.js +84 -0
  270. package/dist/theme/useTheme.d.ts +68 -0
  271. package/dist/theme/useTheme.d.ts.map +1 -1
  272. package/dist/theme/useTheme.js +23 -0
  273. package/dist/utils/index.d.ts +0 -7
  274. package/dist/utils/index.d.ts.map +1 -1
  275. package/dist/utils/resolve-token.d.ts +101 -0
  276. package/dist/utils/resolve-token.d.ts.map +1 -1
  277. package/package.json +1 -1
  278. package/dist/components/keyboard/default-keyboard-config.d.ts +0 -10
  279. package/dist/components/keyboard/default-keyboard-config.d.ts.map +0 -1
  280. package/dist/shared/size.d.ts +0 -2
  281. package/dist/shared/size.d.ts.map +0 -1
package/dist/index.js CHANGED
@@ -1,157 +1,162 @@
1
1
  "use client";
2
2
  import { AsheeUIProvider as r } from "./AsheeUIProvider.js";
3
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 x } from "./components/accordion/Accordion.js";
4
+ import { useTheme as p } from "./theme/useTheme.js";
5
+ import { Accordion as m } from "./components/accordion/Accordion.js";
6
6
  import { Autocomplete as L } from "./components/autocomplete/Autocomplete.js";
7
7
  import { Button as _ } from "./components/button/Button.js";
8
8
  import { Card as l } from "./components/card/Card.js";
9
- import { Carousel as n } from "./components/carousel/Carousel.js";
9
+ import { Carousel as u } from "./components/carousel/Carousel.js";
10
10
  import { Chip as I } from "./components/chip/Chip.js";
11
11
  import { DatePicker as K } from "./components/date-picker/DatePicker.js";
12
- import { Drawer as T } from "./components/drawer/Drawer.js";
12
+ import { Drawer as N } from "./components/drawer/Drawer.js";
13
13
  import { FALLBACK_ACCORDION_CONFIG as G, defaultAccordionConfig as g } from "./components/accordion/accordion-config.js";
14
14
  import { FALLBACK_AUTOCOMPLETE_CONFIG as S, defaultAutocompleteConfig as R } from "./components/autocomplete/autocomplete-config.js";
15
15
  import { FALLBACK_BUTTON_CONFIG as c, defaultButtonConfig as b } from "./components/button/button-config.js";
16
16
  import { FALLBACK_CARD_CONFIG as M, defaultCardConfig as P } from "./components/card/card-config.js";
17
- import { FALLBACK_CAROUSEL_CONFIG as U, defaultCarouselConfig as w } from "./components/carousel/carousel-config.js";
17
+ import { FALLBACK_CAROUSEL_CONFIG as h, defaultCarouselConfig as U } from "./components/carousel/carousel-config.js";
18
18
  import { FALLBACK_CHIP_CONFIG as k, defaultChipConfig as v } from "./components/chip/chip-config.js";
19
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 Q, defaultDrawerConfig as X } from "./components/drawer/drawer-config.js";
20
+ import { FALLBACK_DRAWER_CONFIG as Y, defaultDrawerConfig as Q } from "./components/drawer/drawer-config.js";
21
21
  import { FALLBACK_FIELD_CONFIG as Z, defaultFieldConfig as j } from "./components/field/field-config.js";
22
22
  import { FALLBACK_IMAGE_CONFIG as V, defaultImageConfig as $ } from "./components/image/image-config.js";
23
- import { FALLBACK_LINK_CONFIG as eo, defaultLinkConfig as ro } from "./components/link/link-config.js";
24
- import { FALLBACK_MARQUEE_CONFIG as fo, defaultMarqueeConfig as Co } from "./components/marquee/marquee-config.js";
25
- import { FALLBACK_MODAL_CONFIG as Ao, defaultModalConfig as mo } from "./components/modal/modal-config.js";
26
- import { FALLBACK_MULTI_SELECT_CONFIG as ao, defaultMultiSelectConfig as Lo } from "./components/multi-select/multi-select-config.js";
27
- import { FALLBACK_RADIO_CONFIG as _o, defaultRadioConfig as Fo } from "./components/radio/radio-config.js";
28
- import { FALLBACK_RESIZABLE_SCREEN_CONFIG as no, defaultResizableScreenConfig as uo } from "./components/resizable-screen/resizable-screen-config.js";
29
- import { FALLBACK_SELECT_CONFIG as Oo, defaultSelectConfig as Ko } from "./components/select/select-config.js";
30
- import { FALLBACK_SIDEBAR_CONFIG as To, defaultSidebarConfig as No } from "./components/sidebar/sidebar-config.js";
31
- import { FALLBACK_SPINNER_CONFIG as go, defaultSpinnerConfig as Eo } from "./components/spinner/spinner-config.js";
32
- import { FALLBACK_SWITCH_CONFIG as Ro, defaultSwitchConfig as so } from "./components/switch/switch-config.js";
33
- import { FALLBACK_TABLE_CONFIG as bo, defaultTableConfig as Do } from "./components/table/table-config.js";
34
- import { FALLBACK_TABS_CONFIG as Po, defaultTabsConfig as ho } from "./components/tabs/tabs-config.js";
35
- import { FALLBACK_TEXTAREA_CONFIG as wo, defaultTextAreaConfig as yo } from "./components/textarea/textarea-config.js";
36
- import { FALLBACK_TOAST_CONFIG as vo, defaultToastConfig as Ho } from "./components/toast/toast-config.js";
37
- import { FALLBACK_TOOLTIP_CONFIG as zo, defaultTooltipConfig as Wo } from "./components/tooltip/tooltip-config.js";
38
- import { FieldShell as Xo } from "./components/field/FieldShell.js";
39
- import { Image as Zo } from "./components/image/Image.js";
40
- import { Input as Jo } from "./components/input/Input.js";
41
- import { KeyboardContext as $o, KeyboardProvider as oe, useKeyboard as ee } from "./components/keyboard/keyboard-context.js";
42
- import { Link as te } from "./components/link/Link.js";
43
- import { Marquee as Ce } from "./components/marquee/Marquee.js";
44
- import { Modal as Ae } from "./components/modal/Modal.js";
45
- import { MultiSelect as xe } from "./components/multi-select/MultiSelect.js";
46
- import { OnScreenKeyboard as Le } from "./components/keyboard/OnScreenKeyboard.js";
47
- import { PasswordInput as _e } from "./components/input/PasswordInput.js";
48
- import { Radio as le } from "./components/radio/Radio.js";
49
- import { RadioContext as ne, useRadioGroupContext as ue } from "./components/radio/radio-context.js";
50
- import { RadioGroup as Oe } from "./components/radio/RadioGroup.js";
51
- import { ResizableScreen as Be } from "./components/resizable-screen/ResizableScreen.js";
52
- import { Select as Ne } from "./components/select/Select.js";
53
- import { Sidebar as ge } from "./components/sidebar/Sidebar.js";
54
- import { Spinner as Se } from "./components/spinner/spinner.js";
55
- import { Switch as se } from "./components/switch/Switch.js";
56
- import { Table as be } from "./components/table/Table.js";
57
- import { Tabs as Me } from "./components/tabs/Tabs.js";
58
- import { TextArea as he } from "./components/textarea/Textarea.js";
59
- import { ToastItem as we } from "./components/toast/ToastItem.js";
60
- import { ToastProvider as ke, useToast as ve } from "./components/toast/toast-context.js";
61
- import { Tooltip as qe } from "./components/tooltip/Tooltip.js";
62
- import { defaultInputConfig as We } from "./components/input/input-config.js";
63
- import { useKeyboardField as Xe } from "./components/keyboard/use-keyboard-field.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 Ao, defaultLinkConfig as po } 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 No } 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 Ro } 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, KeyboardProvider as Ce, useKeyboard as Ae } from "./components/keyboard/keyboard-context.js";
43
+ import { Link as ae } from "./components/link/Link.js";
44
+ import { Marquee as xe } from "./components/marquee/Marquee.js";
45
+ import { Modal as ie } from "./components/modal/Modal.js";
46
+ import { MultiSelect as de } from "./components/multi-select/MultiSelect.js";
47
+ import { OnScreenKeyboard as Fe } from "./components/keyboard/OnScreenKeyboard.js";
48
+ import { PasswordInput as ne } from "./components/input/PasswordInput.js";
49
+ import { Radio as Oe } from "./components/radio/RadioGroup.js";
50
+ import { RadioContext as Be, useRadioGroupContext as Ne } from "./components/radio/radio-context.js";
51
+ import { RadioGroup as Ge } from "./components/radio/Radio.js";
52
+ import { ResizableScreen as Ee } from "./components/resizable-screen/ResizableScreen.js";
53
+ import { Select as Re } from "./components/select/Select.js";
54
+ import { Sidebar as ce } from "./components/sidebar/Sidebar.js";
55
+ import { Spinner as De } from "./components/spinner/spinner.js";
56
+ import { Switch as Pe } from "./components/switch/Switch.js";
57
+ import { Table as he } from "./components/table/Table.js";
58
+ import { Tabs as we } from "./components/tabs/Tabs.js";
59
+ import { TextArea as ve } from "./components/textarea/Textarea.js";
60
+ import { ToastItem as qe } from "./components/toast/ToastItem.js";
61
+ import { ToastProvider as We, useToast as Ye } from "./components/toast/toast-context.js";
62
+ import { Tooltip as Xe } from "./components/tooltip/Tooltip.js";
63
+ import { defaultInputConfig as je } from "./components/input/input-config.js";
64
+ import { useKeyboardField as Ve } from "./components/keyboard/use-keyboard-field.js";
64
65
  export {
65
- x as Accordion,
66
+ m as Accordion,
66
67
  r as AsheeUIProvider,
67
68
  L as Autocomplete,
68
69
  _ as Button,
69
70
  l as Card,
70
- n as Carousel,
71
+ u as Carousel,
71
72
  I as Chip,
72
73
  K as DatePicker,
73
- T as Drawer,
74
+ N as Drawer,
74
75
  G as FALLBACK_ACCORDION_CONFIG,
75
76
  S as FALLBACK_AUTOCOMPLETE_CONFIG,
76
77
  c as FALLBACK_BUTTON_CONFIG,
77
78
  M as FALLBACK_CARD_CONFIG,
78
- U as FALLBACK_CAROUSEL_CONFIG,
79
+ h as FALLBACK_CAROUSEL_CONFIG,
79
80
  k as FALLBACK_CHIP_CONFIG,
80
81
  q as FALLBACK_DATE_PICKER_CONFIG,
81
- Q as FALLBACK_DRAWER_CONFIG,
82
+ Y as FALLBACK_DRAWER_CONFIG,
82
83
  Z as FALLBACK_FIELD_CONFIG,
83
84
  V as FALLBACK_IMAGE_CONFIG,
84
- eo as FALLBACK_LINK_CONFIG,
85
- fo as FALLBACK_MARQUEE_CONFIG,
86
- Ao as FALLBACK_MODAL_CONFIG,
87
- ao as FALLBACK_MULTI_SELECT_CONFIG,
88
- _o as FALLBACK_RADIO_CONFIG,
89
- no as FALLBACK_RESIZABLE_SCREEN_CONFIG,
90
- Oo as FALLBACK_SELECT_CONFIG,
91
- To as FALLBACK_SIDEBAR_CONFIG,
92
- go as FALLBACK_SPINNER_CONFIG,
93
- Ro as FALLBACK_SWITCH_CONFIG,
94
- bo as FALLBACK_TABLE_CONFIG,
95
- Po as FALLBACK_TABS_CONFIG,
96
- wo as FALLBACK_TEXTAREA_CONFIG,
97
- vo as FALLBACK_TOAST_CONFIG,
98
- zo as FALLBACK_TOOLTIP_CONFIG,
99
- Xo as FieldShell,
100
- Zo as Image,
101
- Jo as Input,
102
- $o as KeyboardContext,
103
- oe as KeyboardProvider,
104
- te as Link,
105
- Ce as Marquee,
106
- Ae as Modal,
107
- xe as MultiSelect,
108
- Le as OnScreenKeyboard,
109
- _e as PasswordInput,
110
- le as Radio,
111
- ne as RadioContext,
112
- Oe as RadioGroup,
113
- Be as ResizableScreen,
114
- Ne as Select,
115
- ge as Sidebar,
116
- Se as Spinner,
117
- se as Switch,
85
+ eo as FALLBACK_KEYBOARD_CONFIG,
86
+ Ao as FALLBACK_LINK_CONFIG,
87
+ mo as FALLBACK_MARQUEE_CONFIG,
88
+ io as FALLBACK_MODAL_CONFIG,
89
+ Fo as FALLBACK_MULTI_SELECT_CONFIG,
90
+ Io as FALLBACK_RADIO_CONFIG,
91
+ Bo as FALLBACK_RESIZABLE_SCREEN_CONFIG,
92
+ Go as FALLBACK_SELECT_CONFIG,
93
+ So as FALLBACK_SIDEBAR_CONFIG,
94
+ co as FALLBACK_SPINNER_CONFIG,
95
+ Mo as FALLBACK_SWITCH_CONFIG,
96
+ ho as FALLBACK_TABLE_CONFIG,
97
+ ko as FALLBACK_TABS_CONFIG,
98
+ qo as FALLBACK_TEXTAREA_CONFIG,
99
+ Yo as FALLBACK_TOAST_CONFIG,
100
+ Zo as FALLBACK_TOOLTIP_CONFIG,
101
+ Vo as FieldShell,
102
+ oe as Image,
103
+ re as Input,
104
+ fe as KeyboardContext,
105
+ Ce as KeyboardProvider,
106
+ ae as Link,
107
+ xe as Marquee,
108
+ ie as Modal,
109
+ de as MultiSelect,
110
+ Fe as OnScreenKeyboard,
111
+ ne as PasswordInput,
112
+ Oe as Radio,
113
+ Be as RadioContext,
114
+ Ge as RadioGroup,
115
+ Ee as ResizableScreen,
116
+ Re as Select,
117
+ ce as Sidebar,
118
+ De as Spinner,
119
+ Pe as Switch,
118
120
  f as THEME_STORAGE_KEY,
119
- be as Table,
120
- Me as Tabs,
121
- he as TextArea,
122
- we as ToastItem,
123
- ke as ToastProvider,
124
- qe as Tooltip,
121
+ he as Table,
122
+ we as Tabs,
123
+ ve as TextArea,
124
+ qe as ToastItem,
125
+ We as ToastProvider,
126
+ Xe as Tooltip,
125
127
  g as defaultAccordionConfig,
126
128
  R as defaultAutocompleteConfig,
127
129
  b as defaultButtonConfig,
128
130
  P as defaultCardConfig,
129
- w as defaultCarouselConfig,
131
+ U as defaultCarouselConfig,
130
132
  v as defaultChipConfig,
131
133
  z as defaultDatePickerConfig,
132
- X as defaultDrawerConfig,
134
+ Q as defaultDrawerConfig,
133
135
  j as defaultFieldConfig,
134
136
  $ as defaultImageConfig,
135
- We as defaultInputConfig,
136
- ro as defaultLinkConfig,
137
- Co as defaultMarqueeConfig,
138
- mo as defaultModalConfig,
139
- Lo as defaultMultiSelectConfig,
140
- Fo as defaultRadioConfig,
141
- uo as defaultResizableScreenConfig,
142
- Ko as defaultSelectConfig,
143
- No as defaultSidebarConfig,
144
- Eo as defaultSpinnerConfig,
145
- so as defaultSwitchConfig,
146
- Do as defaultTableConfig,
147
- ho as defaultTabsConfig,
148
- yo as defaultTextAreaConfig,
149
- Ho as defaultToastConfig,
150
- Wo as defaultTooltipConfig,
137
+ je as defaultInputConfig,
138
+ ro as defaultKeyDisplay,
139
+ to as defaultKeyboardConfig,
140
+ fo as defaultKeyboardLayouts,
141
+ po as defaultLinkConfig,
142
+ xo as defaultMarqueeConfig,
143
+ _o as defaultModalConfig,
144
+ uo as defaultMultiSelectConfig,
145
+ Oo as defaultRadioConfig,
146
+ No as defaultResizableScreenConfig,
147
+ go as defaultSelectConfig,
148
+ Ro as defaultSidebarConfig,
149
+ bo as defaultSpinnerConfig,
150
+ Po as defaultSwitchConfig,
151
+ Uo as defaultTableConfig,
152
+ vo as defaultTabsConfig,
153
+ zo as defaultTextAreaConfig,
154
+ Qo as defaultToastConfig,
155
+ jo as defaultTooltipConfig,
151
156
  C as themeController,
152
- ee as useKeyboard,
153
- Xe as useKeyboardField,
154
- ue as useRadioGroupContext,
155
- A as useTheme,
156
- ve as useToast
157
+ Ae as useKeyboard,
158
+ Ve as useKeyboardField,
159
+ Ne as useRadioGroupContext,
160
+ p as useTheme,
161
+ Ye as useToast
157
162
  };
@@ -1,6 +1,55 @@
1
1
  import { Config } from '../config/config';
2
+ /**
3
+ * React context for the AsheeUI configuration.
4
+ * Holds the global Config object that provides theme settings,
5
+ * component defaults, and other library-wide configuration.
6
+ * This context is populated by the AsheeUIProvider component.
7
+ */
2
8
  export declare const AsheeConfigContext: import('react').Context<Config | null>;
9
+ /**
10
+ * Hook that returns the AsheeUI configuration from context.
11
+ * Must be used within a component tree wrapped by AsheeUIProvider.
12
+ * Throws an error if used outside of the provider.
13
+ *
14
+ * @returns The current AsheeUI Config object.
15
+ *
16
+ * @throws {Error} When used outside of an AsheeUIProvider.
17
+ *
18
+ * @example
19
+ * ```tsx
20
+ * function MyComponent() {
21
+ * const config = useAsheeConfig();
22
+ * const theme = config.theme;
23
+ * // Use the configuration...
24
+ * }
25
+ * ```
26
+ *
27
+ * @example
28
+ * ```tsx
29
+ * // Wrapping the app root
30
+ * function App() {
31
+ * return (
32
+ * <AsheeUIProvider config={myConfig}>
33
+ * <MyComponent />
34
+ * </AsheeUIProvider>
35
+ * );
36
+ * }
37
+ * ```
38
+ */
3
39
  export declare function useAsheeConfig(): Config;
4
- /** Alias for {@link useAsheeConfig}, exported from the `asheeui` root. */
40
+ /**
41
+ * Alias for {@link useAsheeConfig}, exported from the `asheeui` root.
42
+ * Provides a shorter name for convenience when importing from the main package.
43
+ *
44
+ * @example
45
+ * ```tsx
46
+ * import { useAshee } from 'asheeui';
47
+ *
48
+ * function MyComponent() {
49
+ * const config = useAshee();
50
+ * // Same as useAsheeConfig()
51
+ * }
52
+ * ```
53
+ */
5
54
  export declare const useAshee: typeof useAsheeConfig;
6
55
  //# sourceMappingURL=context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/libs/context.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE/C,eAAO,MAAM,kBAAkB,wCAAqC,CAAC;AAErE,wBAAgB,cAAc,IAAI,MAAM,CAQvC;AAED,0EAA0E;AAC1E,eAAO,MAAM,QAAQ,uBAAiB,CAAC"}
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/libs/context.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,wCAAqC,CAAC;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAQvC;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,QAAQ,uBAAiB,CAAC"}
@@ -1,14 +1,70 @@
1
1
  /**
2
- * Component config type registry.
3
- *
4
- * Each component config module augments ComponentTypeConfigRegistry with its
5
- * own keyed entry (see src/components/*-config.ts) and registers its
6
- * defaults via registerComponentDefaults from src/libs/registry.
2
+ * Component configuration registry for AsheeUI.
3
+ * This file provides the central registry system for component-level default
4
+ * configurations. Components can register their default props here, which can
5
+ * then be overridden by theme-level defaults or instance-level props.
6
+ * The registry uses a map-based approach with TypeScript type augmentation
7
+ * to provide type safety for component-specific configurations.
7
8
  */
8
9
  export interface ComponentTypeConfigRegistry {
9
10
  }
11
+ /**
12
+ * The complete registry of component configurations.
13
+ * This type is augmented by individual component config modules
14
+ * (see src/components/*-config.ts) to include their specific config types.
15
+ */
10
16
  export type ComponentConfigRegistry = ComponentTypeConfigRegistry;
17
+ /**
18
+ * Registers default configuration for a component.
19
+ * This is typically called from component config modules during initialization.
20
+ * The registered defaults are used as fallback values when component-level
21
+ * props are not provided.
22
+ *
23
+ * @param name - The component identifier (e.g., "Button", "Input").
24
+ * @param config - The default configuration object for the component.
25
+ *
26
+ * @example
27
+ * ```tsx
28
+ * registerComponentDefaults('Button', {
29
+ * variant: 'solid',
30
+ * color: 'primary',
31
+ * size: 'md',
32
+ * radius: 'lg'
33
+ * });
34
+ * ```
35
+ *
36
+ * @see ComponentConfigRegistry - The augmented type that provides type safety.
37
+ */
11
38
  export declare function registerComponentDefaults<K extends keyof ComponentConfigRegistry>(name: K, config: ComponentConfigRegistry[K]): void;
39
+ /**
40
+ * Retrieves the default configuration for a component.
41
+ * Returns undefined if no defaults have been registered for the component.
42
+ *
43
+ * @param name - The component identifier (e.g., "Button", "Input").
44
+ * @returns The default configuration object for the component, or undefined.
45
+ *
46
+ * @example
47
+ * ```tsx
48
+ * const defaults = getComponentDefaults('Button');
49
+ * if (defaults) {
50
+ * // Use default values as fallbacks
51
+ * const variant = props.variant ?? defaults.variant;
52
+ * }
53
+ * ```
54
+ */
12
55
  export declare function getComponentDefaults<K extends keyof ComponentConfigRegistry>(name: K): ComponentConfigRegistry[K] | undefined;
56
+ /**
57
+ * Retrieves all registered component defaults.
58
+ * Returns a partial registry object containing all defaults that have
59
+ * been registered across all components.
60
+ *
61
+ * @returns A partial registry containing all component defaults.
62
+ *
63
+ * @example
64
+ * ```tsx
65
+ * const allDefaults = getAllComponentDefaults();
66
+ * // Returns: { Button: { variant: 'solid', ... }, Input: { size: 'md', ... } }
67
+ * ```
68
+ */
13
69
  export declare function getAllComponentDefaults(): Partial<ComponentConfigRegistry>;
14
70
  //# sourceMappingURL=registry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/libs/registry.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,MAAM,WAAW,2BAA2B;CAAG;AAE/C,MAAM,MAAM,uBAAuB,GAAG,2BAA2B,CAAC;AAIlE,wBAAgB,yBAAyB,CACvC,CAAC,SAAS,MAAM,uBAAuB,EACvC,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,uBAAuB,CAAC,CAAC,CAAC,QAE5C;AAED,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,MAAM,uBAAuB,EAC1E,IAAI,EAAE,CAAC,GACN,uBAAuB,CAAC,CAAC,CAAC,GAAG,SAAS,CAIxC;AAED,wBAAgB,uBAAuB,IAAI,OAAO,CAAC,uBAAuB,CAAC,CAM1E"}
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/libs/registry.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,MAAM,WAAW,2BAA2B;CAAG;AAE/C;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAAG,2BAA2B,CAAC;AAQlE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,yBAAyB,CACvC,CAAC,SAAS,MAAM,uBAAuB,EACvC,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,uBAAuB,CAAC,CAAC,CAAC,QAE5C;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,MAAM,uBAAuB,EAC1E,IAAI,EAAE,CAAC,GACN,uBAAuB,CAAC,CAAC,CAAC,GAAG,SAAS,CAIxC;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,uBAAuB,IAAI,OAAO,CAAC,uBAAuB,CAAC,CAM1E"}
@@ -1,3 +1,21 @@
1
1
  import { useLayoutEffect } from 'react';
2
+ /**
3
+ * A hook that resolves to useLayoutEffect in browser environments
4
+ * and useEffect in server environments.
5
+ * This is useful for effects that need to measure or manipulate the DOM
6
+ * but must also work during server-side rendering.
7
+ *
8
+ * @example
9
+ * ```tsx
10
+ * useIsomorphicLayoutEffect(() => {
11
+ * // This will run synchronously in the browser but safely on the server
12
+ * const element = ref.current;
13
+ * if (element) {
14
+ * const height = element.offsetHeight;
15
+ * // Do something with the measurement
16
+ * }
17
+ * }, [ref]);
18
+ * ```
19
+ */
2
20
  export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
3
21
  //# sourceMappingURL=use-isomorphic-layout-effect.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-isomorphic-layout-effect.d.ts","sourceRoot":"","sources":["../../src/libs/use-isomorphic-layout-effect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,eAAe,EAAE,MAAM,OAAO,CAAC;AAEnD,eAAO,MAAM,yBAAyB,wBACuB,CAAC"}
1
+ {"version":3,"file":"use-isomorphic-layout-effect.d.ts","sourceRoot":"","sources":["../../src/libs/use-isomorphic-layout-effect.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAa,eAAe,EAAE,MAAM,OAAO,CAAC;AAEnD;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,yBAAyB,wBACuB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './radius';
2
+ export * from './variant';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
@@ -1,5 +1,41 @@
1
- import { Variant } from './variant';
1
+ import { Variant } from '.';
2
+ /**
3
+ * The available size options for components like Button, Input, and Spinner.
4
+ * "sm" is small, "md" is medium (default), and "lg" is large.
5
+ */
6
+ export type Size = "sm" | "md" | "lg";
7
+ /**
8
+ * The available radius options for components.
9
+ * These control the border-radius of elements, with "none" being square
10
+ * corners and "full" creating circular or pill shapes.
11
+ */
2
12
  export type Radius = "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full";
13
+ /**
14
+ * CSS class mapping for radius values.
15
+ * Each radius option maps to the corresponding Tailwind rounded class.
16
+ */
3
17
  export declare const RADIUS_CLASS: Record<Radius, string>;
18
+ /**
19
+ * Determines the appropriate radius to apply based on the component variant.
20
+ * For underlined variants, the radius is forced to "none" because underlined
21
+ * elements should not have rounded corners. For all other variants, the
22
+ * provided radius is returned unchanged.
23
+ *
24
+ * @param variant - The component variant to check.
25
+ * @param radius - The preferred radius value.
26
+ * @returns The resolved radius, which will be "none" for underlined variants.
27
+ *
28
+ * @example
29
+ * ```tsx
30
+ * const radius = UnderlineRadius('underlined', 'lg');
31
+ * // Returns "none" because underlined variants should not have rounded corners
32
+ * ```
33
+ *
34
+ * @example
35
+ * ```tsx
36
+ * const radius = UnderlineRadius('solid', 'lg');
37
+ * // Returns "lg" because solid variants can use the preferred radius
38
+ * ```
39
+ */
4
40
  export declare const UnderlineRadius: (variant: Variant, radius: Radius) => Radius;
5
41
  //# sourceMappingURL=radius.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"radius.d.ts","sourceRoot":"","sources":["../../src/shared/radius.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,MAAM,MAAM,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAExE,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAQ/C,CAAC;AAEF,eAAO,MAAM,eAAe,YAAa,OAAO,UAAU,MAAM,KAAG,MAKlE,CAAC"}
1
+ {"version":3,"file":"radius.d.ts","sourceRoot":"","sources":["../../src/shared/radius.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC;AAEjC;;;GAGG;AACH,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEtC;;;;GAIG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAQ/C,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,eAAe,YAAa,OAAO,UAAU,MAAM,KAAG,MAKlE,CAAC"}
@@ -1,4 +1,35 @@
1
+ /**
2
+ * Variant style definitions for AsheeUI components.
3
+ * This file contains the complete style mappings for different button variants
4
+ * (solid, ghost, bordered, faded, underlined) and colors. It provides the
5
+ * resolveVariantClass function that components use to apply the correct
6
+ * visual styles based on their variant and color props.
7
+ */
8
+ /**
9
+ * The available visual styles for components like Button.
10
+ * Each variant represents a distinct visual treatment with different
11
+ * background, border, and hover behaviors.
12
+ */
1
13
  export type Variant = "solid" | "ghost" | "bordered" | "faded" | "underlined";
14
+ /**
15
+ * The available color options for themed components.
16
+ * "none" represents a neutral or default color treatment.
17
+ */
2
18
  export type Color = "none" | "primary" | "secondary" | "danger" | "warning" | "success";
19
+ /**
20
+ * Resolves the CSS class for a given variant and color combination.
21
+ * Returns the appropriate Tailwind classes for the component's visual style.
22
+ * If the combination is not found, falls back to bordered variant with secondary color.
23
+ *
24
+ * @param variant - The visual style variant to apply.
25
+ * @param color - The color theme to apply.
26
+ * @returns The CSS class string for the specified variant and color.
27
+ *
28
+ * @example
29
+ * ```tsx
30
+ * const className = resolveVariantClass('solid', 'primary');
31
+ * // Returns classes for a solid primary button
32
+ * ```
33
+ */
3
34
  export declare function resolveVariantClass(variant: Variant, color: Color): string;
4
35
  //# sourceMappingURL=variant.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"variant.d.ts","sourceRoot":"","sources":["../../src/shared/variant.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,GAAG,OAAO,GAAG,YAAY,CAAC;AAC9E,MAAM,MAAM,KAAK,GACb,MAAM,GACN,SAAS,GACT,WAAW,GACX,QAAQ,GACR,SAAS,GACT,SAAS,CAAC;AA0Dd,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM,CAE1E"}
1
+ {"version":3,"file":"variant.d.ts","sourceRoot":"","sources":["../../src/shared/variant.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,GAAG,OAAO,GAAG,YAAY,CAAC;AAE9E;;;GAGG;AACH,MAAM,MAAM,KAAK,GACb,MAAM,GACN,SAAS,GACT,WAAW,GACX,QAAQ,GACR,SAAS,GACT,SAAS,CAAC;AAwLd;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM,CAE1E"}