asheeui 0.6.2 → 0.6.3

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
@@ -1,89 +1,87 @@
1
1
  "use client";
2
- import { jsx as J } from "react/jsx-runtime";
3
- import { createContext as N, useMemo as F, useState as x, useRef as Q, useCallback as k, useContext as U } from "react";
4
- import { useAsheeConfig as V } from "../../libs/context.js";
5
- import { defaultKeyboardConfig as e } from "./default-keyboard-config.js";
6
- const G = N(null);
7
- function _({
8
- children: l,
9
- config: t,
10
- layouts: I,
11
- display: T,
12
- defaultLayout: m,
13
- heightClass: S,
14
- autoShiftBack: w,
15
- closeDelay: A = 120,
16
- variant: B,
17
- color: E,
18
- radius: L
2
+ import { jsx as y } from "react/jsx-runtime";
3
+ import { createContext as z, useMemo as j, useState as i, useRef as F, useCallback as p, useContext as G } from "react";
4
+ import { useAsheeConfig as H } from "../../libs/context.js";
5
+ import { defaultKeyboardConfig as n } from "./keyboard-config.js";
6
+ const q = z(null);
7
+ function V({
8
+ children: r,
9
+ layouts: f,
10
+ display: v,
11
+ defaultLayout: d,
12
+ heightClass: m,
13
+ autoShiftBack: x,
14
+ closeDelay: I = 120,
15
+ variant: T,
16
+ color: k,
17
+ radius: w
19
18
  }) {
20
- var z;
21
- const a = V(), u = (z = a == null ? void 0 : a.components) == null ? void 0 : z.keyboard, P = F(
19
+ var R;
20
+ const s = H(), t = (R = s == null ? void 0 : s.components) == null ? void 0 : R.keyboard, A = j(
22
21
  () => ({
23
- layouts: I ?? (t == null ? void 0 : t.layouts) ?? (u == null ? void 0 : u.layouts) ?? e.layouts,
24
- display: T ?? (t == null ? void 0 : t.display) ?? (u == null ? void 0 : u.display) ?? e.display,
25
- defaultLayout: m ?? (t == null ? void 0 : t.defaultLayout) ?? (u == null ? void 0 : u.defaultLayout) ?? e.defaultLayout,
26
- heightClass: S ?? (t == null ? void 0 : t.heightClass) ?? (u == null ? void 0 : u.heightClass) ?? e.heightClass,
27
- autoShiftBack: w ?? (t == null ? void 0 : t.autoShiftBack) ?? (u == null ? void 0 : u.autoShiftBack) ?? e.autoShiftBack,
28
- variant: B ?? (t == null ? void 0 : t.variant) ?? (u == null ? void 0 : u.variant),
29
- color: E ?? (t == null ? void 0 : t.color) ?? (u == null ? void 0 : u.color),
30
- radius: L ?? (t == null ? void 0 : t.radius) ?? (u == null ? void 0 : u.radius)
22
+ layouts: f ?? (t == null ? void 0 : t.layouts) ?? n.layouts,
23
+ display: v ?? (t == null ? void 0 : t.display) ?? n.display,
24
+ defaultLayout: d ?? (t == null ? void 0 : t.defaultLayout) ?? n.defaultLayout,
25
+ heightClass: m,
26
+ autoShiftBack: x ?? (t == null ? void 0 : t.autoShiftBack) ?? n.autoShiftBack,
27
+ variant: T ?? (t == null ? void 0 : t.variant),
28
+ color: k ?? (t == null ? void 0 : t.color),
29
+ radius: w ?? (t == null ? void 0 : t.radius)
31
30
  }),
32
31
  [
33
- I,
32
+ f,
34
33
  t,
35
- u,
36
- T,
34
+ v,
35
+ d,
37
36
  m,
38
- S,
39
- w,
40
- B,
41
- E,
42
- L
37
+ x,
38
+ T,
39
+ k,
40
+ w
43
41
  ]
44
- ), [O, r] = x(!1), [R, v] = x(null), [j, d] = x(
42
+ ), [E, c] = i(!1), [P, l] = i(null), [S, o] = i(
45
43
  null
46
- ), s = Q(null), q = k((n, c) => {
47
- s.current && (clearTimeout(s.current), s.current = null), v(n), d(c), r(!0);
48
- }, []), y = k(
49
- (n) => {
50
- s.current && clearTimeout(s.current), s.current = setTimeout(() => {
51
- v((c) => (c === n && (r(!1), d(null)), c)), s.current = null;
52
- }, A);
44
+ ), u = F(null), B = p((a, e) => {
45
+ u.current && (clearTimeout(u.current), u.current = null), l(a), o(e), c(!0);
46
+ }, []), L = p(
47
+ (a) => {
48
+ u.current && clearTimeout(u.current), u.current = setTimeout(() => {
49
+ l((e) => (e === a && (c(!1), o(null)), e)), u.current = null;
50
+ }, I);
53
51
  },
54
- [A]
55
- ), M = k(() => {
56
- s.current && (clearTimeout(s.current), s.current = null), r(!1), d(null), v(null);
57
- }, []), H = F(
52
+ [I]
53
+ ), O = p(() => {
54
+ u.current && (clearTimeout(u.current), u.current = null), c(!1), o(null), l(null);
55
+ }, []), M = j(
58
56
  () => ({
59
- isOpen: O,
60
- activeInputId: R,
61
- activeElement: j,
62
- config: P,
63
- openKeyboard: q,
64
- requestClose: y,
65
- forceClose: M
57
+ isOpen: E,
58
+ activeInputId: P,
59
+ activeElement: S,
60
+ config: A,
61
+ openKeyboard: B,
62
+ requestClose: L,
63
+ forceClose: O
66
64
  }),
67
65
  [
68
- O,
69
- R,
70
- j,
66
+ E,
71
67
  P,
72
- q,
73
- y,
74
- M
68
+ S,
69
+ A,
70
+ B,
71
+ L,
72
+ O
75
73
  ]
76
74
  );
77
- return /* @__PURE__ */ J(G.Provider, { value: H, children: l });
75
+ return /* @__PURE__ */ y(q.Provider, { value: M, children: r });
78
76
  }
79
- function $() {
80
- const l = U(G);
81
- if (!l)
77
+ function W() {
78
+ const r = G(q);
79
+ if (!r)
82
80
  throw new Error("useKeyboard must be used within a <KeyboardProvider>");
83
- return l;
81
+ return r;
84
82
  }
85
83
  export {
86
- G as KeyboardContext,
87
- _ as KeyboardProvider,
88
- $ as useKeyboard
84
+ q as KeyboardContext,
85
+ V as KeyboardProvider,
86
+ W as useKeyboard
89
87
  };
@@ -1,5 +1,42 @@
1
1
  import { RefObject } from 'react';
2
2
  import { KeyboardElement } from './keyboard-context';
3
+ /**
4
+ * Hook that connects a form input to the virtual keyboard system.
5
+ *
6
+ * useKeyboardField returns focus and blur handlers that should be passed
7
+ * to an input element. When the input is focused, the keyboard opens.
8
+ * When blurred, the keyboard closes after a configurable delay.
9
+ *
10
+ * @param id - The unique ID of the input element.
11
+ * @param ref - Optional ref to the input element.
12
+ * @param enabled - Whether the keyboard should be enabled for this field.
13
+ * Defaults to false (opt-in behavior).
14
+ * @returns An object containing handleFocus, handleBlur, and hasProvider.
15
+ *
16
+ * @example
17
+ * ```tsx
18
+ * import { useKeyboardField } from "asheeui";
19
+ *
20
+ * function MyInput() {
21
+ * const { handleFocus, handleBlur } = useKeyboardField(
22
+ * "my-input",
23
+ * inputRef,
24
+ * true
25
+ * );
26
+ *
27
+ * return (
28
+ * <input
29
+ * ref={inputRef}
30
+ * onFocus={handleFocus}
31
+ * onBlur={handleBlur}
32
+ * />
33
+ * );
34
+ * }
35
+ * ```
36
+ *
37
+ * @see KeyboardProvider - The provider that enables the keyboard.
38
+ * @see OnScreenKeyboard - The keyboard UI component.
39
+ */
3
40
  export declare function useKeyboardField(id: string, ref?: RefObject<KeyboardElement | null>, enabled?: boolean): {
4
41
  handleFocus: (e?: React.FocusEvent<KeyboardElement>) => void;
5
42
  handleBlur: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"use-keyboard-field.d.ts","sourceRoot":"","sources":["../../../src/components/keyboard/use-keyboard-field.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAA2B,MAAM,OAAO,CAAC;AAChE,OAAO,EAAmB,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE3E,wBAAgB,gBAAgB,CAC9B,EAAE,EAAE,MAAM,EACV,GAAG,CAAC,EAAE,SAAS,CAAC,eAAe,GAAG,IAAI,CAAC,EACvC,OAAO,GAAE,OAAe;sBAKjB,KAAK,CAAC,UAAU,CAAC,eAAe,CAAC;;;EAoBzC"}
1
+ {"version":3,"file":"use-keyboard-field.d.ts","sourceRoot":"","sources":["../../../src/components/keyboard/use-keyboard-field.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,SAAS,EAA2B,MAAM,OAAO,CAAC;AAChE,OAAO,EAAmB,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE3E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,gBAAgB,CAC9B,EAAE,EAAE,MAAM,EACV,GAAG,CAAC,EAAE,SAAS,CAAC,eAAe,GAAG,IAAI,CAAC,EACvC,OAAO,GAAE,OAAe;sBAKjB,KAAK,CAAC,UAAU,CAAC,eAAe,CAAC;;;EAoBzC"}
@@ -1,21 +1,130 @@
1
1
  import { AnchorHTMLAttributes, ElementType, ReactNode } from 'react';
2
- import { Color } from '../../shared/variant';
3
- import { LinkSizeKey, LinkUnderline, LinkVariant } from './link-config';
4
- export interface LinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "size"> {
2
+ import { LinkConfig } from './link-config';
3
+ type BaseLinkProps = LinkConfig & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "size">;
4
+ /**
5
+ * Configuration options for the Link component.
6
+ */
7
+ export interface LinkProps extends BaseLinkProps {
8
+ /**
9
+ * The destination URL of the link.
10
+ */
5
11
  href?: string;
6
- variant?: LinkVariant;
7
- color?: Color;
8
- size?: LinkSizeKey;
9
- underline?: LinkUnderline;
12
+ /**
13
+ * Whether the link points to an external resource.
14
+ * When true, adds an external link icon and appropriate rel attributes.
15
+ */
10
16
  isExternal?: boolean;
17
+ /**
18
+ * Whether the link is in a disabled state.
19
+ * Disabled links cannot be clicked and appear dimmed.
20
+ *
21
+ * @default false
22
+ */
11
23
  disabled?: boolean;
24
+ /**
25
+ * Icon rendered before the link text.
26
+ */
12
27
  startIcon?: ReactNode;
28
+ /**
29
+ * Icon rendered after the link text.
30
+ * If not provided and isExternal is true, an ExternalLinkIcon is shown.
31
+ */
13
32
  endIcon?: ReactNode;
33
+ /**
34
+ * The link text content.
35
+ */
14
36
  children?: ReactNode;
15
- /** Custom link component to use instead of the native <a> tag. */
37
+ /**
38
+ * Custom link component to use instead of the native <a> tag.
39
+ * Useful for framework routing components like Next.js Link or TanStack Router Link.
40
+ */
16
41
  linkComponent?: ElementType;
17
- /** Additional props to pass to the custom link component (e.g., { prefetch: true }). */
42
+ /**
43
+ * Additional props to pass to the custom link component (e.g., { prefetch: true }).
44
+ * These take precedence over the component's own props.
45
+ */
18
46
  linkProps?: Record<string, unknown>;
19
47
  }
48
+ /**
49
+ * A navigational link with support for variants, colors, sizes, and
50
+ * custom routing components.
51
+ *
52
+ * Link renders an anchor element with consistent styling and behavior.
53
+ * It supports multiple visual variants, theme colors, size scales,
54
+ * underline behaviors, and external link handling. The component can
55
+ * also accept custom link components for framework-specific routing.
56
+ *
57
+ * Visual tokens resolve through the standard AsheeUI cascade: prop,
58
+ * component config, global theme defaults, and the built-in fallback.
59
+ *
60
+ * The component automatically handles accessibility attributes including
61
+ * aria-disabled for disabled links, and appropriate target/rel attributes
62
+ * for external links.
63
+ *
64
+ * @param props - Link configuration options and native anchor props.
65
+ * @param props.href - The destination URL.
66
+ * @param props.variant - Visual style variant. Defaults to "default".
67
+ * @param props.color - Theme accent color. Defaults to "primary".
68
+ * @param props.size - Font size scale. Defaults to "md".
69
+ * @param props.underline - Underline behavior. Defaults to "hover".
70
+ * @param props.isExternal - Whether the link is external. Defaults to false.
71
+ * @param props.disabled - Whether the link is disabled. Defaults to false.
72
+ * @param props.startIcon - Icon rendered before the link text.
73
+ * @param props.endIcon - Icon rendered after the link text.
74
+ * @param props.children - The link text content.
75
+ * @param props.linkComponent - Custom link component for framework routing.
76
+ * @param props.linkProps - Additional props for the custom link component.
77
+ * @param props.className - Extra CSS classes for the link.
78
+ * @param props.target - Native target attribute.
79
+ * @param props.rel - Native rel attribute.
80
+ *
81
+ * @example
82
+ * ```tsx
83
+ * import { Link } from "asheeui";
84
+ *
85
+ * export function Example() {
86
+ * return (
87
+ * <Link
88
+ * href="/about"
89
+ * color="primary"
90
+ * underline="hover"
91
+ * >
92
+ * About Us
93
+ * </Link>
94
+ * );
95
+ * }
96
+ * ```
97
+ *
98
+ * @example
99
+ * ```tsx
100
+ * // With Next.js Link
101
+ * import NextLink from "next/link";
102
+ *
103
+ * <Link
104
+ * href="/blog/post-1"
105
+ * linkComponent={NextLink}
106
+ * linkProps={{ prefetch: true }}
107
+ * isExternal={false}
108
+ * >
109
+ * Read Post
110
+ * </Link>
111
+ * ```
112
+ *
113
+ * @example
114
+ * ```tsx
115
+ * // External link with icon
116
+ * <Link
117
+ * href="https://example.com"
118
+ * isExternal
119
+ * color="secondary"
120
+ * >
121
+ * Visit Example
122
+ * </Link>
123
+ * ```
124
+ *
125
+ * @see LinkConfig - The configuration type for component defaults.
126
+ * @see useAsheeConfig - Hook for accessing the global configuration.
127
+ */
20
128
  export declare const Link: import('react').ForwardRefExoticComponent<LinkProps & import('react').RefAttributes<HTMLAnchorElement>>;
129
+ export {};
21
130
  //# sourceMappingURL=Link.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../src/components/link/Link.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,WAAW,EAEhB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAGlD,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,WAAW,EACjB,MAAM,eAAe,CAAC;AASvB,MAAM,WAAW,SACf,SAAQ,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC7D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;IAGrB,kEAAkE;IAClE,aAAa,CAAC,EAAE,WAAW,CAAC;IAC5B,wFAAwF;IACxF,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACrC;AAED,eAAO,MAAM,IAAI,yGAsLhB,CAAC"}
1
+ {"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../src/components/link/Link.tsx"],"names":[],"mappings":"AAUA,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,WAAW,EAEhB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAMf,OAAO,EAEL,KAAK,UAAU,EAGhB,MAAM,eAAe,CAAC;AASvB,KAAK,aAAa,GAAG,UAAU,GAC7B,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,SAAU,SAAQ,aAAa;IAC9C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;;OAGG;IACH,aAAa,CAAC,EAAE,WAAW,CAAC;IAE5B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACrC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+EG;AACH,eAAO,MAAM,IAAI,yGAqLhB,CAAC"}
@@ -3,10 +3,10 @@ import { jsxs as T, jsx as c } from "react/jsx-runtime";
3
3
  import { forwardRef as q } from "react";
4
4
  import { ExternalLinkIcon as H } from "../../icons/ExternalLinkIcon.js";
5
5
  import { useAsheeConfig as J } from "../../libs/context.js";
6
- import { resolveCascade as t, resolveClassKey as s } from "../../utils/resolve-token.js";
6
+ import { resolveCascade as i, resolveClassKey as n } from "../../utils/resolve-token.js";
7
7
  import { FALLBACK_LINK_CONFIG as r } from "./link-config.js";
8
8
  import { LINK_VARIANT_CLASS as k, LINK_COLOR_CLASS as M, LINK_SIZE_CLASS as Q, LINK_ICON_SIZE_CLASS as W, LINK_UNDERLINE_CLASS as X } from "./link-styles.js";
9
- import { cn as n } from "../../utils/cn.js";
9
+ import { cn as s } from "../../utils/cn.js";
10
10
  const Y = q(
11
11
  ({
12
12
  href: _,
@@ -18,75 +18,74 @@ const Y = q(
18
18
  disabled: o = !1,
19
19
  startIcon: m,
20
20
  endIcon: d,
21
- children: K,
22
- className: C,
23
- style: E,
24
- target: y,
21
+ children: C,
22
+ className: K,
23
+ style: y,
24
+ target: E,
25
25
  rel: z,
26
- onClick: l,
26
+ onClick: t,
27
27
  linkComponent: b,
28
28
  linkProps: j,
29
29
  ...O
30
30
  }, P) => {
31
- var N;
32
- const p = J(), e = (N = p.components) == null ? void 0 : N.link, L = t(
31
+ var f;
32
+ const p = J(), e = (f = p.components) == null ? void 0 : f.link, L = i(
33
33
  I,
34
34
  e == null ? void 0 : e.size,
35
35
  void 0,
36
36
  r.size
37
- ), u = t(
37
+ ), u = i(
38
38
  S,
39
39
  e == null ? void 0 : e.variant,
40
40
  void 0,
41
41
  r.variant
42
- ), R = t(
42
+ ), R = i(
43
43
  A,
44
44
  e == null ? void 0 : e.color,
45
45
  p.defaultColor,
46
46
  r.color
47
- ), w = t(
47
+ ), w = i(
48
48
  x,
49
49
  e == null ? void 0 : e.underline,
50
50
  void 0,
51
51
  r.underline
52
- ), i = h ?? (e == null ? void 0 : e.isExternal) ?? r.isExternal, D = u === "muted" ? k.muted : n(
53
- s(
52
+ ), l = h ?? (e == null ? void 0 : e.isExternal) ?? r.isExternal, D = u === "muted" ? k.muted : s(
53
+ n(
54
54
  R,
55
55
  M,
56
56
  r.color
57
57
  ),
58
- s(
58
+ n(
59
59
  u,
60
60
  k,
61
61
  r.variant
62
62
  )
63
- ), F = s(
63
+ ), F = n(
64
64
  L,
65
65
  Q,
66
66
  r.size
67
- ), a = s(
67
+ ), a = n(
68
68
  L,
69
69
  W,
70
70
  r.size
71
- ), U = s(
71
+ ), U = n(
72
72
  w,
73
73
  X,
74
74
  r.underline
75
- ), v = y ?? (i ? "_blank" : void 0), V = z ?? (i || v === "_blank" ? "noopener noreferrer" : void 0), Z = (f) => {
75
+ ), v = E ?? (l ? "_blank" : void 0), V = z ?? (l || v === "_blank" ? "noopener noreferrer" : void 0), Z = (N) => {
76
76
  if (o) {
77
- f.preventDefault();
77
+ N.preventDefault();
78
78
  return;
79
79
  }
80
- l == null || l(f);
81
- }, B = n(
80
+ t == null || t(N);
81
+ }, B = s(
82
82
  "inline-flex items-center transition-colors duration-200 outline-none select-none shrink-0",
83
83
  "focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 rounded-xs",
84
84
  F,
85
85
  D,
86
86
  U,
87
87
  o && "opacity-50 pointer-events-none cursor-not-allowed",
88
- e == null ? void 0 : e.className,
89
- C
88
+ K
90
89
  ), G = {
91
90
  ...{
92
91
  href: o ? void 0 : _,
@@ -95,7 +94,7 @@ const Y = q(
95
94
  "aria-disabled": o,
96
95
  onClick: Z,
97
96
  className: B,
98
- style: E,
97
+ style: y,
99
98
  ref: P,
100
99
  // forward ref to the custom component if it accepts it
101
100
  ...O
@@ -107,27 +106,27 @@ const Y = q(
107
106
  m && /* @__PURE__ */ c(
108
107
  "span",
109
108
  {
110
- className: n(
109
+ className: s(
111
110
  "inline-flex items-center justify-center shrink-0",
112
111
  a
113
112
  ),
114
113
  children: m
115
114
  }
116
115
  ),
117
- K,
116
+ C,
118
117
  d ? /* @__PURE__ */ c(
119
118
  "span",
120
119
  {
121
- className: n(
120
+ className: s(
122
121
  "inline-flex items-center justify-center shrink-0",
123
122
  a
124
123
  ),
125
124
  children: d
126
125
  }
127
- ) : i && /* @__PURE__ */ c(
126
+ ) : l && /* @__PURE__ */ c(
128
127
  H,
129
128
  {
130
- className: n("inline-block shrink-0", a)
129
+ className: s("inline-block shrink-0", a)
131
130
  }
132
131
  )
133
132
  ] });
@@ -1,17 +1,70 @@
1
- import { Size } from '../../shared/size';
2
- import { Color } from '../../shared/variant';
3
- export type LinkSizeKey = Size;
1
+ import { Color, Size } from '../../shared';
2
+ /**
3
+ * Visual style variant of the link.
4
+ * - `default`: Standard link with color accent.
5
+ * - `muted`: Subtle, lower-contrast link.
6
+ * - `subtle`: Very low emphasis link with reduced opacity.
7
+ */
4
8
  export type LinkVariant = "default" | "muted" | "subtle";
9
+ /**
10
+ * Underline behavior of the link.
11
+ * - `always`: Always show underline.
12
+ * - `hover`: Show underline only on hover.
13
+ * - `never`: Never show underline.
14
+ */
5
15
  export type LinkUnderline = "always" | "hover" | "never";
16
+ /**
17
+ * Theme configuration options for the Link component.
18
+ *
19
+ * Set under `components.link` in the AsheeUI config. Values feed the
20
+ * component-level fallback tier of the theme cascade.
21
+ */
6
22
  export interface LinkConfig {
23
+ /**
24
+ * Visual style variant.
25
+ * Controls the emphasis level of the link.
26
+ *
27
+ * @default "default"
28
+ */
7
29
  variant?: LinkVariant;
30
+ /**
31
+ * Theme accent color.
32
+ * Controls the color of the link text.
33
+ *
34
+ * @default "primary"
35
+ */
8
36
  color?: Color;
9
- size?: LinkSizeKey;
37
+ /**
38
+ * Font size scale.
39
+ * Controls the text size and spacing.
40
+ *
41
+ * @default "md"
42
+ */
43
+ size?: Size;
44
+ /**
45
+ * Underline behavior.
46
+ * Controls when the underline is visible.
47
+ *
48
+ * @default "hover"
49
+ */
10
50
  underline?: LinkUnderline;
51
+ /**
52
+ * Whether the link points to an external resource.
53
+ * When true, adds an external link icon and appropriate rel attributes.
54
+ *
55
+ * @default false
56
+ */
11
57
  isExternal?: boolean;
12
- className?: string;
13
58
  }
59
+ /**
60
+ * Default config values registered for the Link component.
61
+ */
14
62
  export declare const defaultLinkConfig: LinkConfig;
63
+ /**
64
+ * Hard fallback values used when no config tier provides a value.
65
+ * These values are used when instance props, component config,
66
+ * and global defaults are all undefined.
67
+ */
15
68
  export declare const FALLBACK_LINK_CONFIG: {
16
69
  readonly size: "md";
17
70
  readonly variant: "default";
@@ -1 +1 @@
1
- {"version":3,"file":"link-config.d.ts","sourceRoot":"","sources":["../../../src/components/link/link-config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC;AAC/B,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;AACzD,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;AAEzD,MAAM,WAAW,UAAU;IACzB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,iBAAiB,EAAE,UAI/B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;CAMvB,CAAC;AAEX,OAAO,QAAQ,qBAAqB,CAAC;IACnC,UAAU,2BAA2B;QACnC,IAAI,EAAE,UAAU,CAAC;KAClB;CACF"}
1
+ {"version":3,"file":"link-config.d.ts","sourceRoot":"","sources":["../../../src/components/link/link-config.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEhD;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEzD;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;AAEzD;;;;;GAKG;AACH,MAAM,WAAW,UAAU;IACzB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IAEd;;;;;OAKG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;IAEZ;;;;;OAKG;IACH,SAAS,CAAC,EAAE,aAAa,CAAC;IAE1B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,UAI/B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;;;;;CAMvB,CAAC;AAEX,OAAO,QAAQ,qBAAqB,CAAC;IACnC,UAAU,2BAA2B;QACnC,IAAI,EAAE,UAAU,CAAC;KAClB;CACF"}
@@ -1,8 +1,28 @@
1
- import { Color } from '../../shared/variant';
2
- import { LinkSizeKey, LinkUnderline, LinkVariant } from './link-config';
3
- export declare const LINK_SIZE_CLASS: Record<LinkSizeKey, string>;
4
- export declare const LINK_ICON_SIZE_CLASS: Record<LinkSizeKey, string>;
1
+ import { Color, Size } from '../../shared';
2
+ import { LinkUnderline, LinkVariant } from './link-config';
3
+ /**
4
+ * CSS classes for link font size.
5
+ * Maps size keys to Tailwind classes for text size and gap spacing.
6
+ */
7
+ export declare const LINK_SIZE_CLASS: Record<Size, string>;
8
+ /**
9
+ * CSS classes for link icon size.
10
+ * Maps size keys to Tailwind classes for icon dimensions.
11
+ */
12
+ export declare const LINK_ICON_SIZE_CLASS: Record<Size, string>;
13
+ /**
14
+ * CSS classes for link colors.
15
+ * Maps color keys to Tailwind text color and hover state classes.
16
+ */
5
17
  export declare const LINK_COLOR_CLASS: Record<Color | string, string>;
18
+ /**
19
+ * CSS classes for link variants.
20
+ * Controls the emphasis and opacity of the link.
21
+ */
6
22
  export declare const LINK_VARIANT_CLASS: Record<LinkVariant, string>;
23
+ /**
24
+ * CSS classes for link underline behavior.
25
+ * Controls when and how the underline is displayed.
26
+ */
7
27
  export declare const LINK_UNDERLINE_CLASS: Record<LinkUnderline, string>;
8
28
  //# sourceMappingURL=link-styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"link-styles.d.ts","sourceRoot":"","sources":["../../../src/components/link/link-styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE7E,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAIvD,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAI5D,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,KAAK,GAAG,MAAM,EAAE,MAAM,CAQ3D,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAI1D,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAI9D,CAAC"}
1
+ {"version":3,"file":"link-styles.d.ts","sourceRoot":"","sources":["../../../src/components/link/link-styles.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,CAIhD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,CAIrD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,KAAK,GAAG,MAAM,EAAE,MAAM,CAQ3D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAI1D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAI9D,CAAC"}