@adamosuiteservices/ui 2.18.6 → 2.19.1

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 (194) hide show
  1. package/README.md +1 -1
  2. package/dist/accordion-rounded.cjs +8 -8
  3. package/dist/accordion-rounded.js +12 -12
  4. package/dist/accordion.cjs +1 -1
  5. package/dist/accordion.js +1 -1
  6. package/dist/alert.cjs +32 -23
  7. package/dist/alert.js +53 -43
  8. package/dist/amount-input.cjs +8 -0
  9. package/dist/amount-input.js +191 -0
  10. package/dist/avatar.cjs +7 -7
  11. package/dist/avatar.js +18 -18
  12. package/dist/badge.cjs +24 -28
  13. package/dist/badge.js +45 -42
  14. package/dist/breadcrumb.cjs +3 -4
  15. package/dist/breadcrumb.js +17 -18
  16. package/dist/button-CPm4-98H.cjs +87 -0
  17. package/dist/button-D4ddrxyp.js +156 -0
  18. package/dist/button-group.cjs +1 -1
  19. package/dist/button-group.js +1 -1
  20. package/dist/button.cjs +1 -1
  21. package/dist/button.js +1 -1
  22. package/dist/{calendar-Dorq3-wv.cjs → calendar-DXq90PYV.cjs} +20 -22
  23. package/dist/{calendar-xBaFu2sB.js → calendar-DgfO9zab.js} +239 -240
  24. package/dist/calendar.cjs +1 -1
  25. package/dist/calendar.js +1 -1
  26. package/dist/card.cjs +3 -3
  27. package/dist/card.js +4 -4
  28. package/dist/checkbox-CIzBdqN7.cjs +24 -0
  29. package/dist/{checkbox-DL_jFvgl.js → checkbox-DPlUjwLi.js} +54 -52
  30. package/dist/checkbox.cjs +1 -1
  31. package/dist/checkbox.js +1 -1
  32. package/dist/colors.css +1 -1
  33. package/dist/combobox-DG9u4g84.js +692 -0
  34. package/dist/combobox-DylTjGrw.cjs +57 -0
  35. package/dist/combobox.cjs +1 -1
  36. package/dist/combobox.js +1 -1
  37. package/dist/components/layout/sidebar/sidebar.d.ts +2 -1
  38. package/dist/components/layout/toaster/toaster.d.ts +1 -1
  39. package/dist/components/ui/alert/alert.d.ts +1 -1
  40. package/dist/components/ui/amount-input/amount-input.d.ts +32 -0
  41. package/dist/components/ui/amount-input/index.d.ts +1 -0
  42. package/dist/components/ui/badge/badge.d.ts +3 -2
  43. package/dist/components/ui/calendar/calendar.d.ts +1 -1
  44. package/dist/components/ui/combobox/combobox.d.ts +3 -1
  45. package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +3 -1
  46. package/dist/components/ui/selectable-card/index.d.ts +1 -0
  47. package/dist/components/ui/selectable-card/selectable-card.d.ts +22 -0
  48. package/dist/components/ui/timeline/index.d.ts +1 -0
  49. package/dist/components/ui/timeline/timeline.d.ts +30 -0
  50. package/dist/components/ui/typography/typography.d.ts +1 -1
  51. package/dist/context-menu.cjs +18 -19
  52. package/dist/context-menu.js +37 -38
  53. package/dist/date-picker-selector.cjs +1 -1
  54. package/dist/date-picker-selector.js +3 -3
  55. package/dist/dialog.cjs +7 -9
  56. package/dist/dialog.js +36 -38
  57. package/dist/dropdown-menu.cjs +57 -36
  58. package/dist/dropdown-menu.js +206 -173
  59. package/dist/field.cjs +12 -7
  60. package/dist/field.js +51 -45
  61. package/dist/file-upload-v2.cjs +11 -5
  62. package/dist/file-upload-v2.js +75 -60
  63. package/dist/file-upload.cjs +11 -5
  64. package/dist/file-upload.js +118 -110
  65. package/dist/full-screen-loader.cjs +1 -1
  66. package/dist/full-screen-loader.js +1 -1
  67. package/dist/{icon-B7joBr0A.cjs → icon-C5Q2b1Am.cjs} +1 -1
  68. package/dist/{icon-BFQz1tQC.js → icon-t4jt1Z2h.js} +1 -1
  69. package/dist/icon.cjs +1 -1
  70. package/dist/icon.js +1 -1
  71. package/dist/index-BBT2EGq8.js +18 -0
  72. package/dist/index-DCsgSkBj.cjs +1 -0
  73. package/dist/input-8sEO5zwD.js +44 -0
  74. package/dist/input-AONeSXcs.cjs +22 -0
  75. package/dist/input-group-BLffLxyg.cjs +86 -0
  76. package/dist/input-group-DmevJAqa.js +240 -0
  77. package/dist/input-group.cjs +1 -84
  78. package/dist/input-group.js +7 -234
  79. package/dist/input-otp.cjs +5 -7
  80. package/dist/input-otp.js +58 -60
  81. package/dist/input.cjs +1 -1
  82. package/dist/input.js +1 -1
  83. package/dist/kbd.cjs +6 -7
  84. package/dist/kbd.js +14 -15
  85. package/dist/{label-DqfX9cHc.cjs → label-B7Z1D5-Q.cjs} +5 -4
  86. package/dist/{label-C6zVnc3d.js → label-_BWRIH7C.js} +14 -13
  87. package/dist/label.cjs +1 -1
  88. package/dist/label.js +1 -1
  89. package/dist/pagination.cjs +5 -5
  90. package/dist/pagination.js +18 -18
  91. package/dist/radio-group.cjs +12 -9
  92. package/dist/radio-group.js +66 -63
  93. package/dist/select.cjs +18 -16
  94. package/dist/select.js +18 -16
  95. package/dist/selectable-card.cjs +29 -0
  96. package/dist/selectable-card.js +129 -0
  97. package/dist/separator-DXdc7LcC.cjs +7 -0
  98. package/dist/{separator-CsaqP20m.js → separator-DZfXXbNt.js} +1 -1
  99. package/dist/separator.cjs +1 -1
  100. package/dist/separator.js +1 -1
  101. package/dist/{sheet-Cnq7TCzu.cjs → sheet-Cp6JGhWC.cjs} +10 -10
  102. package/dist/{sheet-C9vce0ut.js → sheet-hWerE8S1.js} +9 -6
  103. package/dist/sheet.cjs +1 -1
  104. package/dist/sheet.js +1 -1
  105. package/dist/sidebar.cjs +10 -10
  106. package/dist/sidebar.js +83 -92
  107. package/dist/slider.cjs +1 -1
  108. package/dist/slider.js +1 -1
  109. package/dist/{spinner-C7q7NthY.cjs → spinner-DUZ2vcus.cjs} +1 -1
  110. package/dist/{spinner-DQ5JLL3U.js → spinner-_-J3zJ_g.js} +1 -1
  111. package/dist/spinner.cjs +1 -1
  112. package/dist/spinner.js +1 -1
  113. package/dist/styles.css +1 -1
  114. package/dist/switch.cjs +2 -4
  115. package/dist/switch.js +71 -73
  116. package/dist/table.cjs +14 -14
  117. package/dist/table.js +12 -12
  118. package/dist/tabs-underline.cjs +11 -15
  119. package/dist/tabs-underline.js +20 -24
  120. package/dist/tabs.cjs +10 -14
  121. package/dist/tabs.js +20 -24
  122. package/dist/tailwind-colors.css +1 -1
  123. package/dist/tailwind-theme.css +1 -1
  124. package/dist/textarea-BSooGyp-.cjs +18 -0
  125. package/dist/textarea-D_sj6ivo.js +39 -0
  126. package/dist/textarea.cjs +1 -1
  127. package/dist/textarea.js +1 -1
  128. package/dist/themes.css +1 -1
  129. package/dist/timeline.cjs +4 -0
  130. package/dist/timeline.js +189 -0
  131. package/dist/toaster.cjs +5 -4
  132. package/dist/toaster.js +33 -32
  133. package/dist/toggle.cjs +4 -4
  134. package/dist/toggle.js +17 -17
  135. package/dist/tooltip.cjs +5 -6
  136. package/dist/tooltip.js +4 -5
  137. package/docs/components/layout/sidebar.md +81 -53
  138. package/docs/components/layout/toaster.md +35 -55
  139. package/docs/components/ui/accordion-rounded.md +12 -11
  140. package/docs/components/ui/alert.md +66 -36
  141. package/docs/components/ui/amount-input.md +229 -0
  142. package/docs/components/ui/avatar.md +28 -32
  143. package/docs/components/ui/badge.md +85 -32
  144. package/docs/components/ui/breadcrumb.md +5 -7
  145. package/docs/components/ui/button-group.md +16 -16
  146. package/docs/components/ui/button.md +23 -36
  147. package/docs/components/ui/calendar.md +54 -27
  148. package/docs/components/ui/card.md +5 -4
  149. package/docs/components/ui/checkbox.md +3 -3
  150. package/docs/components/ui/combobox.md +35 -1
  151. package/docs/components/ui/command.md +7 -7
  152. package/docs/components/ui/context-menu.md +14 -15
  153. package/docs/components/ui/date-picker-selector.md +31 -31
  154. package/docs/components/ui/dialog.md +47 -49
  155. package/docs/components/ui/dropdown-menu.md +34 -37
  156. package/docs/components/ui/field.md +25 -31
  157. package/docs/components/ui/file-upload-v2.md +11 -0
  158. package/docs/components/ui/file-upload.md +105 -108
  159. package/docs/components/ui/hover-card.md +28 -6
  160. package/docs/components/ui/icon.md +10 -9
  161. package/docs/components/ui/input-group.md +9 -9
  162. package/docs/components/ui/input.md +30 -33
  163. package/docs/components/ui/kbd.md +10 -9
  164. package/docs/components/ui/label.md +6 -6
  165. package/docs/components/ui/pagination.md +3 -3
  166. package/docs/components/ui/popover.md +1 -0
  167. package/docs/components/ui/progress.md +3 -3
  168. package/docs/components/ui/radio-group.md +18 -6
  169. package/docs/components/ui/scroll-area.md +4 -4
  170. package/docs/components/ui/select.md +14 -12
  171. package/docs/components/ui/selectable-card.md +204 -0
  172. package/docs/components/ui/separator.md +4 -4
  173. package/docs/components/ui/sheet.md +21 -3
  174. package/docs/components/ui/slider.md +3 -3
  175. package/docs/components/ui/switch.md +7 -7
  176. package/docs/components/ui/table.md +7 -4
  177. package/docs/components/ui/tabs-underline.md +36 -36
  178. package/docs/components/ui/tabs.md +6 -4
  179. package/docs/components/ui/textarea.md +6 -4
  180. package/docs/components/ui/timeline.md +214 -0
  181. package/docs/components/ui/toggle.md +1 -1
  182. package/docs/components/ui/tooltip.md +3 -3
  183. package/llm.txt +7 -4
  184. package/package.json +13 -1
  185. package/dist/button-BnUlAtuD.js +0 -132
  186. package/dist/button-CFJs0esR.cjs +0 -63
  187. package/dist/checkbox-3RIZX2HF.cjs +0 -22
  188. package/dist/combobox-MkeJiTXj.js +0 -637
  189. package/dist/combobox-jJRxvUsB.cjs +0 -40
  190. package/dist/input-BCiOr4Fy.js +0 -44
  191. package/dist/input-Bz5k4w94.cjs +0 -22
  192. package/dist/separator-CCGaTo09.cjs +0 -7
  193. package/dist/textarea-BRCnIxdB.js +0 -33
  194. package/dist/textarea-DkFUS_oS.cjs +0 -14
package/dist/input-otp.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { j as I } from "./jsx-runtime-BzflLqGi.js";
2
2
  import { c as K } from "./index-CRiPKpXj.js";
3
- import * as r from "react";
3
+ import * as a from "react";
4
4
  import { forwardRef as ge, createElement as ne } from "react";
5
5
  var De = Object.defineProperty, We = Object.defineProperties, Be = Object.getOwnPropertyDescriptors, J = Object.getOwnPropertySymbols, be = Object.prototype.hasOwnProperty, we = Object.prototype.propertyIsEnumerable, ve = (e, t, n) => t in e ? De(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ie = (e, t) => {
6
6
  for (var n in t || (t = {})) be.call(t, n) && ve(e, n, t[n]);
@@ -17,20 +17,20 @@ function Ne(e) {
17
17
  return [t, n, l];
18
18
  }
19
19
  function Fe(e) {
20
- let t = r.useRef();
21
- return r.useEffect(() => {
20
+ let t = a.useRef();
21
+ return a.useEffect(() => {
22
22
  t.current = e;
23
23
  }), t.current;
24
24
  }
25
25
  var He = 18, xe = 40, $e = `${xe}px`, Ge = ["[data-lastpass-icon-root]", "com-1password-button", "[data-dashlanecreated]", '[style$="2147483647 !important;"]'].join(",");
26
26
  function ze({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFocused: l }) {
27
- let [m, i] = r.useState(!1), [y, x] = r.useState(!1), [P, R] = r.useState(!1), A = r.useMemo(() => n === "none" ? !1 : (n === "increase-width" || n === "experimental-no-flickering") && m && y, [m, y, n]), _ = r.useCallback(() => {
27
+ let [m, i] = a.useState(!1), [y, x] = a.useState(!1), [P, R] = a.useState(!1), A = a.useMemo(() => n === "none" ? !1 : (n === "increase-width" || n === "experimental-no-flickering") && m && y, [m, y, n]), _ = a.useCallback(() => {
28
28
  let v = e.current, k = t.current;
29
29
  if (!v || !k || P || n === "none") return;
30
30
  let b = v, E = b.getBoundingClientRect().left + b.offsetWidth, L = b.getBoundingClientRect().top + b.offsetHeight / 2, s = E - He, H = L;
31
31
  document.querySelectorAll(Ge).length === 0 && document.elementFromPoint(s, H) === v || (i(!0), R(!0));
32
32
  }, [e, t, P, n]);
33
- return r.useEffect(() => {
33
+ return a.useEffect(() => {
34
34
  let v = e.current;
35
35
  if (!v || n === "none") return;
36
36
  function k() {
@@ -42,7 +42,7 @@ function ze({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFo
42
42
  return () => {
43
43
  clearInterval(b);
44
44
  };
45
- }, [e, n]), r.useEffect(() => {
45
+ }, [e, n]), a.useEffect(() => {
46
46
  let v = l || document.activeElement === t.current;
47
47
  if (n === "none" || !v) return;
48
48
  let k = setTimeout(_, 0), b = setTimeout(_, 2e3), E = setTimeout(_, 5e3), L = setTimeout(() => {
@@ -53,21 +53,21 @@ function ze({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFo
53
53
  };
54
54
  }, [t, l, n, _]), { hasPWMBadge: m, willPushPWMBadge: A, PWM_BADGE_SPACE_WIDTH: $e };
55
55
  }
56
- var Ce = r.createContext({}), ye = r.forwardRef((e, t) => {
57
- var n = e, { value: l, onChange: m, maxLength: i, textAlign: y = "left", pattern: x, placeholder: P, inputMode: R = "numeric", onComplete: A, pushPasswordManagerStrategy: _ = "increase-width", pasteTransformer: v, containerClassName: k, noScriptCSSFallback: b = Ve, render: E, children: L } = n, s = Le(n, ["value", "onChange", "maxLength", "textAlign", "pattern", "placeholder", "inputMode", "onComplete", "pushPasswordManagerStrategy", "pasteTransformer", "containerClassName", "noScriptCSSFallback", "render", "children"]), H, ae, re, oe, le;
58
- let [Se, Pe] = r.useState(typeof s.defaultValue == "string" ? s.defaultValue : ""), c = l ?? Se, T = Fe(c), $ = r.useCallback((a) => {
59
- m?.(a), Pe(a);
60
- }, [m]), C = r.useMemo(() => x ? typeof x == "string" ? new RegExp(x) : x : null, [x]), d = r.useRef(null), Q = r.useRef(null), X = r.useRef({ value: c, onChange: $, isIOS: typeof window < "u" && ((ae = (H = window?.CSS) == null ? void 0 : H.supports) == null ? void 0 : ae.call(H, "-webkit-touch-callout", "none")) }), q = r.useRef({ prev: [(re = d.current) == null ? void 0 : re.selectionStart, (oe = d.current) == null ? void 0 : oe.selectionEnd, (le = d.current) == null ? void 0 : le.selectionDirection] });
61
- r.useImperativeHandle(t, () => d.current, []), r.useEffect(() => {
62
- let a = d.current, o = Q.current;
63
- if (!a || !o) return;
64
- X.current.value !== a.value && X.current.onChange(a.value), q.current.prev = [a.selectionStart, a.selectionEnd, a.selectionDirection];
56
+ var Ce = a.createContext({}), ye = a.forwardRef((e, t) => {
57
+ var n = e, { value: l, onChange: m, maxLength: i, textAlign: y = "left", pattern: x, placeholder: P, inputMode: R = "numeric", onComplete: A, pushPasswordManagerStrategy: _ = "increase-width", pasteTransformer: v, containerClassName: k, noScriptCSSFallback: b = Ve, render: E, children: L } = n, s = Le(n, ["value", "onChange", "maxLength", "textAlign", "pattern", "placeholder", "inputMode", "onComplete", "pushPasswordManagerStrategy", "pasteTransformer", "containerClassName", "noScriptCSSFallback", "render", "children"]), H, re, ae, oe, le;
58
+ let [Se, Pe] = a.useState(typeof s.defaultValue == "string" ? s.defaultValue : ""), c = l ?? Se, T = Fe(c), $ = a.useCallback((r) => {
59
+ m?.(r), Pe(r);
60
+ }, [m]), C = a.useMemo(() => x ? typeof x == "string" ? new RegExp(x) : x : null, [x]), d = a.useRef(null), Q = a.useRef(null), X = a.useRef({ value: c, onChange: $, isIOS: typeof window < "u" && ((re = (H = window?.CSS) == null ? void 0 : H.supports) == null ? void 0 : re.call(H, "-webkit-touch-callout", "none")) }), q = a.useRef({ prev: [(ae = d.current) == null ? void 0 : ae.selectionStart, (oe = d.current) == null ? void 0 : oe.selectionEnd, (le = d.current) == null ? void 0 : le.selectionDirection] });
61
+ a.useImperativeHandle(t, () => d.current, []), a.useEffect(() => {
62
+ let r = d.current, o = Q.current;
63
+ if (!r || !o) return;
64
+ X.current.value !== r.value && X.current.onChange(r.value), q.current.prev = [r.selectionStart, r.selectionEnd, r.selectionDirection];
65
65
  function p() {
66
- if (document.activeElement !== a) {
66
+ if (document.activeElement !== r) {
67
67
  z(null), V(null);
68
68
  return;
69
69
  }
70
- let u = a.selectionStart, f = a.selectionEnd, U = a.selectionDirection, w = a.maxLength, D = a.value, S = q.current.prev, M = -1, j = -1, W;
70
+ let u = r.selectionStart, f = r.selectionEnd, U = r.selectionDirection, w = r.maxLength, D = r.value, S = q.current.prev, M = -1, j = -1, W;
71
71
  if (D.length !== 0 && u !== null && f !== null) {
72
72
  let Ae = u === f, Te = u === D.length && D.length < w;
73
73
  if (Ae && !Te) {
@@ -89,7 +89,7 @@ var Ce = r.createContext({}), ye = r.forwardRef((e, t) => {
89
89
  let me = M !== -1 ? M : u, fe = j !== -1 ? j : f, Re = W ?? U;
90
90
  z(me), V(fe), q.current.prev = [me, fe, Re];
91
91
  }
92
- if (document.addEventListener("selectionchange", p, { capture: !0 }), p(), document.activeElement === a && Y(!0), !document.getElementById("input-otp-style")) {
92
+ if (document.addEventListener("selectionchange", p, { capture: !0 }), p(), document.activeElement === r && Y(!0), !document.getElementById("input-otp-style")) {
93
93
  let u = document.createElement("style");
94
94
  if (u.id = "input-otp-style", document.head.appendChild(u), u.sheet) {
95
95
  let f = "background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";
@@ -97,71 +97,71 @@ var Ce = r.createContext({}), ye = r.forwardRef((e, t) => {
97
97
  }
98
98
  }
99
99
  let h = () => {
100
- o && o.style.setProperty("--root-height", `${a.clientHeight}px`);
100
+ o && o.style.setProperty("--root-height", `${r.clientHeight}px`);
101
101
  };
102
102
  h();
103
103
  let g = new ResizeObserver(h);
104
- return g.observe(a), () => {
104
+ return g.observe(r), () => {
105
105
  document.removeEventListener("selectionchange", p, { capture: !0 }), g.disconnect();
106
106
  };
107
107
  }, []);
108
- let [ie, ue] = r.useState(!1), [G, Y] = r.useState(!1), [O, z] = r.useState(null), [N, V] = r.useState(null);
109
- r.useEffect(() => {
108
+ let [ie, ue] = a.useState(!1), [G, Y] = a.useState(!1), [O, z] = a.useState(null), [N, V] = a.useState(null);
109
+ a.useEffect(() => {
110
110
  Ne(() => {
111
- var a, o, p, h;
112
- (a = d.current) == null || a.dispatchEvent(new Event("input"));
111
+ var r, o, p, h;
112
+ (r = d.current) == null || r.dispatchEvent(new Event("input"));
113
113
  let g = (o = d.current) == null ? void 0 : o.selectionStart, u = (p = d.current) == null ? void 0 : p.selectionEnd, f = (h = d.current) == null ? void 0 : h.selectionDirection;
114
114
  g !== null && u !== null && (z(g), V(u), q.current.prev = [g, u, f]);
115
115
  });
116
- }, [c, G]), r.useEffect(() => {
116
+ }, [c, G]), a.useEffect(() => {
117
117
  T !== void 0 && c !== T && T.length < i && c.length === i && A?.(c);
118
118
  }, [i, A, T, c]);
119
- let F = ze({ containerRef: Q, inputRef: d, pushPasswordManagerStrategy: _, isFocused: G }), se = r.useCallback((a) => {
120
- let o = a.currentTarget.value.slice(0, i);
119
+ let F = ze({ containerRef: Q, inputRef: d, pushPasswordManagerStrategy: _, isFocused: G }), se = a.useCallback((r) => {
120
+ let o = r.currentTarget.value.slice(0, i);
121
121
  if (o.length > 0 && C && !C.test(o)) {
122
- a.preventDefault();
122
+ r.preventDefault();
123
123
  return;
124
124
  }
125
125
  typeof T == "string" && o.length < T.length && document.dispatchEvent(new Event("selectionchange")), $(o);
126
- }, [i, $, T, C]), ce = r.useCallback(() => {
127
- var a;
126
+ }, [i, $, T, C]), ce = a.useCallback(() => {
127
+ var r;
128
128
  if (d.current) {
129
129
  let o = Math.min(d.current.value.length, i - 1), p = d.current.value.length;
130
- (a = d.current) == null || a.setSelectionRange(o, p), z(o), V(p);
130
+ (r = d.current) == null || r.setSelectionRange(o, p), z(o), V(p);
131
131
  }
132
132
  Y(!0);
133
- }, [i]), de = r.useCallback((a) => {
133
+ }, [i]), de = a.useCallback((r) => {
134
134
  var o, p;
135
135
  let h = d.current;
136
- if (!v && (!X.current.isIOS || !a.clipboardData || !h)) return;
137
- let g = a.clipboardData.getData("text/plain"), u = v ? v(g) : g;
138
- a.preventDefault();
136
+ if (!v && (!X.current.isIOS || !r.clipboardData || !h)) return;
137
+ let g = r.clipboardData.getData("text/plain"), u = v ? v(g) : g;
138
+ r.preventDefault();
139
139
  let f = (o = d.current) == null ? void 0 : o.selectionStart, U = (p = d.current) == null ? void 0 : p.selectionEnd, w = (f !== U ? c.slice(0, f) + u + c.slice(U) : c.slice(0, f) + u + c.slice(f)).slice(0, i);
140
140
  if (w.length > 0 && C && !C.test(w)) return;
141
141
  h.value = w, $(w);
142
142
  let D = Math.min(w.length, i - 1), S = w.length;
143
143
  h.setSelectionRange(D, S), z(D), V(S);
144
- }, [i, $, C, c]), ke = r.useMemo(() => ({ position: "relative", cursor: s.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [s.disabled]), pe = r.useMemo(() => ({ position: "absolute", inset: 0, width: F.willPushPWMBadge ? `calc(100% + ${F.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: F.willPushPWMBadge ? `inset(0 ${F.PWM_BADGE_SPACE_WIDTH} 0 0)` : void 0, height: "100%", display: "flex", textAlign: y, opacity: "1", color: "transparent", pointerEvents: "all", background: "transparent", caretColor: "transparent", border: "0 solid transparent", outline: "0 solid transparent", boxShadow: "none", lineHeight: "1", letterSpacing: "-.5em", fontSize: "var(--root-height)", fontFamily: "monospace", fontVariantNumeric: "tabular-nums" }), [F.PWM_BADGE_SPACE_WIDTH, F.willPushPWMBadge, y]), Me = r.useMemo(() => r.createElement("input", _e(Ie({ autoComplete: s.autoComplete || "one-time-code" }, s), { "data-input-otp": !0, "data-input-otp-placeholder-shown": c.length === 0 || void 0, "data-input-otp-mss": O, "data-input-otp-mse": N, inputMode: R, pattern: C?.source, "aria-placeholder": P, style: pe, maxLength: i, value: c, ref: d, onPaste: (a) => {
144
+ }, [i, $, C, c]), ke = a.useMemo(() => ({ position: "relative", cursor: s.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [s.disabled]), pe = a.useMemo(() => ({ position: "absolute", inset: 0, width: F.willPushPWMBadge ? `calc(100% + ${F.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: F.willPushPWMBadge ? `inset(0 ${F.PWM_BADGE_SPACE_WIDTH} 0 0)` : void 0, height: "100%", display: "flex", textAlign: y, opacity: "1", color: "transparent", pointerEvents: "all", background: "transparent", caretColor: "transparent", border: "0 solid transparent", outline: "0 solid transparent", boxShadow: "none", lineHeight: "1", letterSpacing: "-.5em", fontSize: "var(--root-height)", fontFamily: "monospace", fontVariantNumeric: "tabular-nums" }), [F.PWM_BADGE_SPACE_WIDTH, F.willPushPWMBadge, y]), Me = a.useMemo(() => a.createElement("input", _e(Ie({ autoComplete: s.autoComplete || "one-time-code" }, s), { "data-input-otp": !0, "data-input-otp-placeholder-shown": c.length === 0 || void 0, "data-input-otp-mss": O, "data-input-otp-mse": N, inputMode: R, pattern: C?.source, "aria-placeholder": P, style: pe, maxLength: i, value: c, ref: d, onPaste: (r) => {
145
145
  var o;
146
- de(a), (o = s.onPaste) == null || o.call(s, a);
147
- }, onChange: se, onMouseOver: (a) => {
146
+ de(r), (o = s.onPaste) == null || o.call(s, r);
147
+ }, onChange: se, onMouseOver: (r) => {
148
148
  var o;
149
- ue(!0), (o = s.onMouseOver) == null || o.call(s, a);
150
- }, onMouseLeave: (a) => {
149
+ ue(!0), (o = s.onMouseOver) == null || o.call(s, r);
150
+ }, onMouseLeave: (r) => {
151
151
  var o;
152
- ue(!1), (o = s.onMouseLeave) == null || o.call(s, a);
153
- }, onFocus: (a) => {
152
+ ue(!1), (o = s.onMouseLeave) == null || o.call(s, r);
153
+ }, onFocus: (r) => {
154
154
  var o;
155
- ce(), (o = s.onFocus) == null || o.call(s, a);
156
- }, onBlur: (a) => {
155
+ ce(), (o = s.onFocus) == null || o.call(s, r);
156
+ }, onBlur: (r) => {
157
157
  var o;
158
- Y(!1), (o = s.onBlur) == null || o.call(s, a);
159
- } })), [se, ce, de, R, pe, i, N, O, s, C?.source, c]), ee = r.useMemo(() => ({ slots: Array.from({ length: i }).map((a, o) => {
158
+ Y(!1), (o = s.onBlur) == null || o.call(s, r);
159
+ } })), [se, ce, de, R, pe, i, N, O, s, C?.source, c]), ee = a.useMemo(() => ({ slots: Array.from({ length: i }).map((r, o) => {
160
160
  var p;
161
161
  let h = G && O !== null && N !== null && (O === N && o === O || o >= O && o < N), g = c[o] !== void 0 ? c[o] : null, u = c[0] !== void 0 ? null : (p = P?.[o]) != null ? p : null;
162
162
  return { char: g, placeholderChar: u, isActive: h, hasFakeCaret: h && g === null };
163
- }), isFocused: G, isHovering: !s.disabled && ie }), [G, ie, i, N, O, s.disabled, c]), je = r.useMemo(() => E ? E(ee) : r.createElement(Ce.Provider, { value: ee }, L), [L, ee, E]);
164
- return r.createElement(r.Fragment, null, b !== null && r.createElement("noscript", null, r.createElement("style", null, b)), r.createElement("div", { ref: Q, "data-input-otp-container": !0, style: ke, className: k }, je, r.createElement("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" } }, Me)));
163
+ }), isFocused: G, isHovering: !s.disabled && ie }), [G, ie, i, N, O, s.disabled, c]), je = a.useMemo(() => E ? E(ee) : a.createElement(Ce.Provider, { value: ee }, L), [L, ee, E]);
164
+ return a.createElement(a.Fragment, null, b !== null && a.createElement("noscript", null, a.createElement("style", null, b)), a.createElement("div", { ref: Q, "data-input-otp-container": !0, style: ke, className: k }, je, a.createElement("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" } }, Me)));
165
165
  });
166
166
  ye.displayName = "Input";
167
167
  function Z(e, t) {
@@ -288,7 +288,7 @@ const Qe = (e, t) => {
288
288
  * See the LICENSE file in the root directory of this source tree.
289
289
  */
290
290
  const Xe = [["path", { d: "M5 12h14", key: "1ays0h" }]], Ye = Qe("minus", Xe);
291
- function at({
291
+ function rt({
292
292
  className: e,
293
293
  containerClassName: t,
294
294
  ...n
@@ -309,7 +309,7 @@ function at({
309
309
  }
310
310
  );
311
311
  }
312
- function rt({ className: e, ...t }) {
312
+ function at({ className: e, ...t }) {
313
313
  return /* @__PURE__ */ I.jsx(
314
314
  "div",
315
315
  {
@@ -324,7 +324,7 @@ function ot({
324
324
  className: t,
325
325
  ...n
326
326
  }) {
327
- const l = r.useContext(Ce), { char: m, hasFakeCaret: i, isActive: y } = l?.slots[e] ?? {};
327
+ const l = a.useContext(Ce), { char: m, hasFakeCaret: i, isActive: y } = l?.slots[e] ?? {};
328
328
  return /* @__PURE__ */ I.jsxs(
329
329
  "div",
330
330
  {
@@ -334,17 +334,15 @@ function ot({
334
334
  `
335
335
  adm:relative adm:flex adm:h-10 adm:w-10 adm:items-center
336
336
  adm:justify-center adm:border-y adm:border-r adm:border-input
337
- adm:text-base adm:shadow-xs adm:transition-all adm:outline-none
337
+ adm:bg-background adm:text-sm adm:text-input-foreground adm:shadow-xs
338
+ adm:transition-[color,box-shadow] adm:outline-none
338
339
  adm:first:rounded-l-md adm:first:border-l
339
340
  adm:last:rounded-r-md
340
341
  adm:aria-invalid:border-destructive
341
- adm:data-[active=true]:z-10 adm:data-[active=true]:border-ring
342
- adm:data-[active=true]:ring-[3px] adm:data-[active=true]:ring-ring/50
342
+ adm:data-[active=true]:z-10 adm:data-[active=true]:border-primary-300
343
+ adm:data-[active=true]:ring-4 adm:data-[active=true]:ring-primary/10
343
344
  adm:data-[active=true]:aria-invalid:border-destructive
344
- adm:data-[active=true]:aria-invalid:ring-destructive/20
345
- adm:md:text-sm
346
- adm:dark:bg-input/30
347
- adm:dark:data-[active=true]:aria-invalid:ring-destructive/40
345
+ adm:data-[active=true]:aria-invalid:ring-destructive/10
348
346
  `,
349
347
  t
350
348
  ),
@@ -377,8 +375,8 @@ function lt({ ...e }) {
377
375
  return /* @__PURE__ */ I.jsx("div", { "data-slot": "input-otp-separator", role: "separator", ...e, children: /* @__PURE__ */ I.jsx(Ye, {}) });
378
376
  }
379
377
  export {
380
- at as InputOTP,
381
- rt as InputOTPGroup,
378
+ rt as InputOTP,
379
+ at as InputOTPGroup,
382
380
  lt as InputOTPSeparator,
383
381
  ot as InputOTPSlot
384
382
  };
package/dist/input.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./input-Bz5k4w94.cjs");exports.Input=t.Input;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./input-AONeSXcs.cjs");exports.Input=t.Input;
package/dist/input.js CHANGED
@@ -1,4 +1,4 @@
1
- import { I as r } from "./input-BCiOr4Fy.js";
1
+ import { I as r } from "./input-8sEO5zwD.js";
2
2
  export {
3
3
  r as Input
4
4
  };
package/dist/kbd.cjs CHANGED
@@ -1,10 +1,9 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-BB_1_6y_.cjs"),d=require("./index-DoxiiusW.cjs");function n({className:t,...e}){return a.jsxRuntimeExports.jsx("kbd",{"data-slot":"kbd",className:d.cn(`
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-BB_1_6y_.cjs"),n=require("./index-DoxiiusW.cjs");function d({className:t,...e}){return a.jsxRuntimeExports.jsx("kbd",{"data-slot":"kbd",className:n.cn(`
2
2
  adm:pointer-events-none adm:inline-flex adm:h-5 adm:w-fit adm:min-w-5
3
3
  adm:items-center adm:justify-center adm:gap-1 adm:rounded-sm
4
- adm:bg-muted adm:px-1 adm:font-sans adm:text-xs adm:font-medium
5
- adm:text-muted-foreground adm:select-none
4
+ adm:bg-accent adm:px-1 adm:font-sans adm:text-xs adm:font-medium
5
+ adm:text-accent-foreground adm:select-none
6
6
  `,"adm:[&_svg:not([class*=size-])]:size-3","adm:[&_[data-slot=icon]:not([class*=text-])]:text-sm",`
7
- adm:[[data-slot=tooltip-content]_&]:bg-background/20
8
- adm:[[data-slot=tooltip-content]_&]:text-background
9
- adm:dark:[[data-slot=tooltip-content]_&]:bg-background/10
10
- `,t),...e})}function o({className:t,...e}){return a.jsxRuntimeExports.jsx("kbd",{"data-slot":"kbd-group",className:d.cn("adm:inline-flex adm:items-center adm:gap-1",t),...e})}exports.Kbd=n;exports.KbdGroup=o;
7
+ adm:in-data-[slot=tooltip-content]:bg-neutrals-0/20
8
+ adm:in-data-[slot=tooltip-content]:text-neutrals-0
9
+ `,t),...e})}function s({className:t,...e}){return a.jsxRuntimeExports.jsx("kbd",{"data-slot":"kbd-group",className:n.cn("adm:inline-flex adm:items-center adm:gap-1",t),...e})}exports.Kbd=d;exports.KbdGroup=s;
package/dist/kbd.js CHANGED
@@ -1,24 +1,23 @@
1
1
  "use client";
2
- import { j as d } from "./jsx-runtime-BzflLqGi.js";
3
- import { c as e } from "./index-CRiPKpXj.js";
4
- function o({ className: t, ...a }) {
5
- return /* @__PURE__ */ d.jsx(
2
+ import { j as e } from "./jsx-runtime-BzflLqGi.js";
3
+ import { c as n } from "./index-CRiPKpXj.js";
4
+ function s({ className: t, ...a }) {
5
+ return /* @__PURE__ */ e.jsx(
6
6
  "kbd",
7
7
  {
8
8
  "data-slot": "kbd",
9
- className: e(
9
+ className: n(
10
10
  `
11
11
  adm:pointer-events-none adm:inline-flex adm:h-5 adm:w-fit adm:min-w-5
12
12
  adm:items-center adm:justify-center adm:gap-1 adm:rounded-sm
13
- adm:bg-muted adm:px-1 adm:font-sans adm:text-xs adm:font-medium
14
- adm:text-muted-foreground adm:select-none
13
+ adm:bg-accent adm:px-1 adm:font-sans adm:text-xs adm:font-medium
14
+ adm:text-accent-foreground adm:select-none
15
15
  `,
16
16
  "adm:[&_svg:not([class*=size-])]:size-3",
17
17
  "adm:[&_[data-slot=icon]:not([class*=text-])]:text-sm",
18
18
  `
19
- adm:[[data-slot=tooltip-content]_&]:bg-background/20
20
- adm:[[data-slot=tooltip-content]_&]:text-background
21
- adm:dark:[[data-slot=tooltip-content]_&]:bg-background/10
19
+ adm:in-data-[slot=tooltip-content]:bg-neutrals-0/20
20
+ adm:in-data-[slot=tooltip-content]:text-neutrals-0
22
21
  `,
23
22
  t
24
23
  ),
@@ -26,17 +25,17 @@ function o({ className: t, ...a }) {
26
25
  }
27
26
  );
28
27
  }
29
- function s({ className: t, ...a }) {
30
- return /* @__PURE__ */ d.jsx(
28
+ function o({ className: t, ...a }) {
29
+ return /* @__PURE__ */ e.jsx(
31
30
  "kbd",
32
31
  {
33
32
  "data-slot": "kbd-group",
34
- className: e("adm:inline-flex adm:items-center adm:gap-1", t),
33
+ className: n("adm:inline-flex adm:items-center adm:gap-1", t),
35
34
  ...a
36
35
  }
37
36
  );
38
37
  }
39
38
  export {
40
- o as Kbd,
41
- s as KbdGroup
39
+ s as Kbd,
40
+ o as KbdGroup
42
41
  };
@@ -1,7 +1,8 @@
1
- "use client";"use strict";const n=require("./jsx-runtime-BB_1_6y_.cjs"),d=require("react"),s=require("./index-CocSS1YK.cjs"),i=require("./index-DoxiiusW.cjs");function u(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const l=u(d);var c="Label",o=l.forwardRef((e,a)=>n.jsxRuntimeExports.jsx(s.Primitive.label,{...e,ref:a,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));o.displayName=c;var m=o;function f({className:e,...a}){return n.jsxRuntimeExports.jsx(m,{"data-slot":"label",className:i.cn(`
1
+ "use client";"use strict";const n=require("./jsx-runtime-BB_1_6y_.cjs"),d=require("react"),s=require("./index-CocSS1YK.cjs"),l=require("./index-DoxiiusW.cjs");function i(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const u=i(d);var c="Label",o=u.forwardRef((e,a)=>n.jsxRuntimeExports.jsx(s.Primitive.label,{...e,ref:a,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));o.displayName=c;var m=o;function f({className:e,...a}){return n.jsxRuntimeExports.jsx(m,{"data-slot":"label",className:l.cn(`
2
2
  adm:flex adm:items-center adm:gap-2 adm:text-xs adm:leading-none
3
- adm:font-medium adm:text-muted-foreground adm:select-none
3
+ adm:font-normal adm:text-foreground adm:select-none
4
4
  adm:group-data-[disabled=true]:pointer-events-none
5
- adm:group-data-[disabled=true]:opacity-50
6
- adm:peer-disabled:cursor-not-allowed adm:peer-disabled:opacity-50
5
+ adm:group-data-[disabled=true]:text-disabled-foreground
6
+ adm:peer-disabled:cursor-not-allowed
7
+ adm:peer-disabled:text-disabled-foreground
7
8
  `,e),...a})}exports.Label=f;
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { j as r } from "./jsx-runtime-BzflLqGi.js";
3
3
  import * as d from "react";
4
- import { P as m } from "./index-BMWt1NBG.js";
5
- import { c as s } from "./index-CRiPKpXj.js";
6
- var n = "Label", o = d.forwardRef((a, t) => /* @__PURE__ */ r.jsx(
7
- m.label,
4
+ import { P as s } from "./index-BMWt1NBG.js";
5
+ import { c as n } from "./index-CRiPKpXj.js";
6
+ var l = "Label", o = d.forwardRef((a, t) => /* @__PURE__ */ r.jsx(
7
+ s.label,
8
8
  {
9
9
  ...a,
10
10
  ref: t,
@@ -13,23 +13,24 @@ var n = "Label", o = d.forwardRef((a, t) => /* @__PURE__ */ r.jsx(
13
13
  }
14
14
  }
15
15
  ));
16
- o.displayName = n;
17
- var i = o;
18
- function c({
16
+ o.displayName = l;
17
+ var m = o;
18
+ function b({
19
19
  className: a,
20
20
  ...t
21
21
  }) {
22
22
  return /* @__PURE__ */ r.jsx(
23
- i,
23
+ m,
24
24
  {
25
25
  "data-slot": "label",
26
- className: s(
26
+ className: n(
27
27
  `
28
28
  adm:flex adm:items-center adm:gap-2 adm:text-xs adm:leading-none
29
- adm:font-medium adm:text-muted-foreground adm:select-none
29
+ adm:font-normal adm:text-foreground adm:select-none
30
30
  adm:group-data-[disabled=true]:pointer-events-none
31
- adm:group-data-[disabled=true]:opacity-50
32
- adm:peer-disabled:cursor-not-allowed adm:peer-disabled:opacity-50
31
+ adm:group-data-[disabled=true]:text-disabled-foreground
32
+ adm:peer-disabled:cursor-not-allowed
33
+ adm:peer-disabled:text-disabled-foreground
33
34
  `,
34
35
  a
35
36
  ),
@@ -38,5 +39,5 @@ function c({
38
39
  );
39
40
  }
40
41
  export {
41
- c as L
42
+ b as L
42
43
  };
package/dist/label.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./label-DqfX9cHc.cjs");exports.Label=e.Label;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./label-B7Z1D5-Q.cjs");exports.Label=e.Label;
package/dist/label.js CHANGED
@@ -1,4 +1,4 @@
1
- import { L as o } from "./label-C6zVnc3d.js";
1
+ import { L as o } from "./label-_BWRIH7C.js";
2
2
  export {
3
3
  o as Label
4
4
  };
@@ -1,13 +1,13 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./jsx-runtime-BB_1_6y_.cjs"),m=require("./button-CFJs0esR.cjs"),s=require("./icon-B7joBr0A.cjs"),i=require("./index-DoxiiusW.cjs");require("react");function l({className:a,...n}){return t.jsxRuntimeExports.jsx("nav",{role:"navigation","aria-label":"pagination","data-slot":"pagination",className:i.cn("adm:mx-auto adm:flex adm:w-full adm:justify-center",a),...n})}function u({className:a,...n}){return t.jsxRuntimeExports.jsx("ul",{"data-slot":"pagination-content",className:i.cn("adm:flex adm:flex-row adm:items-center adm:gap-1",a),...n})}function x({...a}){return t.jsxRuntimeExports.jsx("li",{"data-slot":"pagination-item",...a})}function o({className:a,isActive:n,size:e="icon",...r}){return t.jsxRuntimeExports.jsx("a",{"aria-current":n?"page":void 0,"data-slot":"pagination-link","data-active":n,className:i.cn(m.buttonVariants({variant:"ghost-neutral",size:e}),{"adm:bg-input/50":n},a),...r})}function c({className:a,children:n,...e}){return t.jsxRuntimeExports.jsxs(o,{"aria-label":"Go to previous page",size:"default",className:i.cn(`
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./jsx-runtime-BB_1_6y_.cjs"),m=require("./button-CPm4-98H.cjs"),s=require("./icon-C5Q2b1Am.cjs"),e=require("./index-DoxiiusW.cjs");require("react");function l({className:a,...n}){return t.jsxRuntimeExports.jsx("nav",{role:"navigation","aria-label":"pagination","data-slot":"pagination",className:e.cn("adm:mx-auto adm:flex adm:w-full adm:justify-center",a),...n})}function c({className:a,...n}){return t.jsxRuntimeExports.jsx("ul",{"data-slot":"pagination-content",className:e.cn("adm:flex adm:flex-row adm:items-center adm:gap-1",a),...n})}function x({...a}){return t.jsxRuntimeExports.jsx("li",{"data-slot":"pagination-item",...a})}function o({className:a,isActive:n,size:i="icon",...r}){return t.jsxRuntimeExports.jsx("a",{"aria-current":n?"page":void 0,"data-slot":"pagination-link","data-active":n,className:e.cn(m.buttonVariants({variant:"link-neutral",size:i}),{"adm:bg-accent":n},a),...r})}function u({className:a,children:n,...i}){return t.jsxRuntimeExports.jsxs(o,{"aria-label":"Go to previous page",size:"default",className:e.cn(`
2
2
  adm:gap-1 adm:px-2.5
3
3
  adm:sm:pl-2.5
4
- `,a),...e,children:[t.jsxRuntimeExports.jsx(s.Icon,{symbol:"chevron_left",className:"adm:text-lg"}),t.jsxRuntimeExports.jsx("span",{className:`
4
+ `,a),...i,children:[t.jsxRuntimeExports.jsx(s.Icon,{symbol:"chevron_left",className:"adm:text-lg"}),t.jsxRuntimeExports.jsx("span",{className:`
5
5
  adm:hidden
6
6
  adm:sm:block
7
- `,children:n??"Previous"})]})}function d({className:a,children:n,...e}){return t.jsxRuntimeExports.jsxs(o,{"aria-label":"Go to next page",size:"default",className:i.cn(`
7
+ `,children:n??"Previous"})]})}function d({className:a,children:n,...i}){return t.jsxRuntimeExports.jsxs(o,{"aria-label":"Go to next page",size:"default",className:e.cn(`
8
8
  adm:gap-1 adm:px-2.5
9
9
  adm:sm:pr-2.5
10
- `,a),...e,children:[t.jsxRuntimeExports.jsx("span",{className:`
10
+ `,a),...i,children:[t.jsxRuntimeExports.jsx("span",{className:`
11
11
  adm:hidden
12
12
  adm:sm:block
13
- `,children:n??"Next"}),t.jsxRuntimeExports.jsx(s.Icon,{symbol:"chevron_right",className:"adm:text-lg"})]})}function p({className:a,...n}){return t.jsxRuntimeExports.jsxs("span",{"aria-hidden":!0,"data-slot":"pagination-ellipsis",className:i.cn("adm:flex adm:size-9 adm:items-center adm:justify-center",a),...n,children:[t.jsxRuntimeExports.jsx(s.Icon,{symbol:"more_horiz",className:"adm:text-lg"}),t.jsxRuntimeExports.jsx("span",{className:"adm:sr-only",children:"More pages"})]})}exports.Pagination=l;exports.PaginationContent=u;exports.PaginationEllipsis=p;exports.PaginationItem=x;exports.PaginationLink=o;exports.PaginationNext=d;exports.PaginationPrevious=c;
13
+ `,children:n??"Next"}),t.jsxRuntimeExports.jsx(s.Icon,{symbol:"chevron_right",className:"adm:text-lg"})]})}function p({className:a,...n}){return t.jsxRuntimeExports.jsxs("span",{"aria-hidden":!0,"data-slot":"pagination-ellipsis",className:e.cn("adm:flex adm:size-9 adm:items-center adm:justify-center",a),...n,children:[t.jsxRuntimeExports.jsx(s.Icon,{symbol:"more_horiz",className:"adm:text-lg"}),t.jsxRuntimeExports.jsx("span",{className:"adm:sr-only",children:"More pages"})]})}exports.Pagination=l;exports.PaginationContent=c;exports.PaginationEllipsis=p;exports.PaginationItem=x;exports.PaginationLink=o;exports.PaginationNext=d;exports.PaginationPrevious=u;
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { j as t } from "./jsx-runtime-BzflLqGi.js";
3
- import { b as r } from "./button-BnUlAtuD.js";
4
- import { I as i } from "./icon-BFQz1tQC.js";
3
+ import { b as l } from "./button-D4ddrxyp.js";
4
+ import { I as s } from "./icon-t4jt1Z2h.js";
5
5
  import { c as e } from "./index-CRiPKpXj.js";
6
6
  import "react";
7
7
  function x({ className: a, ...n }) {
@@ -35,7 +35,7 @@ function f({ ...a }) {
35
35
  function o({
36
36
  className: a,
37
37
  isActive: n,
38
- size: s = "icon",
38
+ size: i = "icon",
39
39
  ...m
40
40
  }) {
41
41
  return /* @__PURE__ */ t.jsx(
@@ -45,11 +45,11 @@ function o({
45
45
  "data-slot": "pagination-link",
46
46
  "data-active": n,
47
47
  className: e(
48
- r({
49
- variant: "ghost-neutral",
50
- size: s
48
+ l({
49
+ variant: "link-neutral",
50
+ size: i
51
51
  }),
52
- { "adm:bg-input/50": n },
52
+ { "adm:bg-accent": n },
53
53
  a
54
54
  ),
55
55
  ...m
@@ -59,7 +59,7 @@ function o({
59
59
  function j({
60
60
  className: a,
61
61
  children: n,
62
- ...s
62
+ ...i
63
63
  }) {
64
64
  return /* @__PURE__ */ t.jsxs(
65
65
  o,
@@ -70,9 +70,9 @@ function j({
70
70
  adm:gap-1 adm:px-2.5
71
71
  adm:sm:pl-2.5
72
72
  `, a),
73
- ...s,
73
+ ...i,
74
74
  children: [
75
- /* @__PURE__ */ t.jsx(i, { symbol: "chevron_left", className: "adm:text-lg" }),
75
+ /* @__PURE__ */ t.jsx(s, { symbol: "chevron_left", className: "adm:text-lg" }),
76
76
  /* @__PURE__ */ t.jsx(
77
77
  "span",
78
78
  {
@@ -87,10 +87,10 @@ function j({
87
87
  }
88
88
  );
89
89
  }
90
- function h({
90
+ function N({
91
91
  className: a,
92
92
  children: n,
93
- ...s
93
+ ...i
94
94
  }) {
95
95
  return /* @__PURE__ */ t.jsxs(
96
96
  o,
@@ -101,7 +101,7 @@ function h({
101
101
  adm:gap-1 adm:px-2.5
102
102
  adm:sm:pr-2.5
103
103
  `, a),
104
- ...s,
104
+ ...i,
105
105
  children: [
106
106
  /* @__PURE__ */ t.jsx(
107
107
  "span",
@@ -113,12 +113,12 @@ function h({
113
113
  children: n ?? "Next"
114
114
  }
115
115
  ),
116
- /* @__PURE__ */ t.jsx(i, { symbol: "chevron_right", className: "adm:text-lg" })
116
+ /* @__PURE__ */ t.jsx(s, { symbol: "chevron_right", className: "adm:text-lg" })
117
117
  ]
118
118
  }
119
119
  );
120
120
  }
121
- function N({
121
+ function h({
122
122
  className: a,
123
123
  ...n
124
124
  }) {
@@ -130,7 +130,7 @@ function N({
130
130
  className: e("adm:flex adm:size-9 adm:items-center adm:justify-center", a),
131
131
  ...n,
132
132
  children: [
133
- /* @__PURE__ */ t.jsx(i, { symbol: "more_horiz", className: "adm:text-lg" }),
133
+ /* @__PURE__ */ t.jsx(s, { symbol: "more_horiz", className: "adm:text-lg" }),
134
134
  /* @__PURE__ */ t.jsx("span", { className: "adm:sr-only", children: "More pages" })
135
135
  ]
136
136
  }
@@ -139,9 +139,9 @@ function N({
139
139
  export {
140
140
  x as Pagination,
141
141
  g as PaginationContent,
142
- N as PaginationEllipsis,
142
+ h as PaginationEllipsis,
143
143
  f as PaginationItem,
144
144
  o as PaginationLink,
145
- h as PaginationNext,
145
+ N as PaginationNext,
146
146
  j as PaginationPrevious
147
147
  };
@@ -1,14 +1,17 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-BB_1_6y_.cjs"),F=require("react"),j=require("./index-BWaO7kQK.cjs"),h=require("./index-_XxjJPRD.cjs"),P=require("./index-cwZN7ZY3.cjs"),E=require("./index-CocSS1YK.cjs"),g=require("./index-CC6DBo2g.cjs"),L=require("./index-Da298sEl.cjs"),T=require("./index-bSPhqlcX.cjs"),B=require("./index-DYxWvftI.cjs"),K=require("./index-DE3jjVoC.cjs"),U=require("./icon-B7joBr0A.cjs"),w=require("./index-DoxiiusW.cjs");function V(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return r.default=e,Object.freeze(r)}const d=V(F);var C="Radio",[z,I]=P.createContextScope(C),[H,W]=z(C),_=d.forwardRef((e,r)=>{const{__scopeRadio:o,name:n,checked:t=!1,required:i,disabled:s,value:p="on",onCheck:m,form:f,...R}=e,[l,x]=d.useState(null),c=h.useComposedRefs(r,b=>x(b)),u=d.useRef(!1),v=l?f||!!l.closest("form"):!0;return a.jsxRuntimeExports.jsxs(H,{scope:o,checked:t,disabled:s,children:[a.jsxRuntimeExports.jsx(E.Primitive.button,{type:"button",role:"radio","aria-checked":t,"data-state":N(t),"data-disabled":s?"":void 0,disabled:s,value:p,...R,ref:c,onClick:j.composeEventHandlers(e.onClick,b=>{t||m?.(),v&&(u.current=b.isPropagationStopped(),u.current||b.stopPropagation())})}),v&&a.jsxRuntimeExports.jsx(G,{control:l,bubbles:!u.current,name:n,value:p,checked:t,required:i,disabled:s,form:f,style:{transform:"translateX(-100%)"}})]})});_.displayName=C;var k="RadioIndicator",S=d.forwardRef((e,r)=>{const{__scopeRadio:o,forceMount:n,...t}=e,i=W(k,o);return a.jsxRuntimeExports.jsx(K.Presence,{present:n||i.checked,children:a.jsxRuntimeExports.jsx(E.Primitive.span,{"data-state":N(i.checked),"data-disabled":i.disabled?"":void 0,...t,ref:r})})});S.displayName=k;var X="RadioBubbleInput",G=d.forwardRef(({__scopeRadio:e,control:r,checked:o,bubbles:n=!0,...t},i)=>{const s=d.useRef(null),p=h.useComposedRefs(s,i),m=B.usePrevious(o),f=T.useSize(r);return d.useEffect(()=>{const R=s.current;if(!R)return;const l=window.HTMLInputElement.prototype,c=Object.getOwnPropertyDescriptor(l,"checked").set;if(m!==o&&c){const u=new Event("click",{bubbles:n});c.call(R,o),R.dispatchEvent(u)}},[m,o,n]),a.jsxRuntimeExports.jsx(E.Primitive.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...t,tabIndex:-1,ref:p,style:{...t.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});G.displayName=X;function N(e){return e?"checked":"unchecked"}var Y=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],y="RadioGroup",[J]=P.createContextScope(y,[g.createRovingFocusGroupScope,I]),q=g.createRovingFocusGroupScope(),A=I(),[Q,Z]=J(y),O=d.forwardRef((e,r)=>{const{__scopeRadioGroup:o,name:n,defaultValue:t,value:i,required:s=!1,disabled:p=!1,orientation:m,dir:f,loop:R=!0,onValueChange:l,...x}=e,c=q(o),u=L.useDirection(f),[v,b]=j.useControllableState({prop:i,defaultProp:t??null,onChange:l,caller:y});return a.jsxRuntimeExports.jsx(Q,{scope:o,name:n,required:s,disabled:p,value:v,onValueChange:b,children:a.jsxRuntimeExports.jsx(g.Root,{asChild:!0,...c,orientation:m,dir:u,loop:R,children:a.jsxRuntimeExports.jsx(E.Primitive.div,{role:"radiogroup","aria-required":s,"aria-orientation":m,"data-disabled":p?"":void 0,dir:u,...x,ref:r})})})});O.displayName=y;var D="RadioGroupItem",M=d.forwardRef((e,r)=>{const{__scopeRadioGroup:o,disabled:n,...t}=e,i=Z(D,o),s=i.disabled||n,p=q(o),m=A(o),f=d.useRef(null),R=h.useComposedRefs(r,f),l=i.value===t.value,x=d.useRef(!1);return d.useEffect(()=>{const c=v=>{Y.includes(v.key)&&(x.current=!0)},u=()=>x.current=!1;return document.addEventListener("keydown",c),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",c),document.removeEventListener("keyup",u)}},[]),a.jsxRuntimeExports.jsx(g.Item,{asChild:!0,...p,focusable:!s,active:l,children:a.jsxRuntimeExports.jsx(_,{disabled:s,required:i.required,checked:l,...m,...t,name:i.name,ref:R,onCheck:()=>i.onValueChange(t.value),onKeyDown:j.composeEventHandlers(c=>{c.key==="Enter"&&c.preventDefault()}),onFocus:j.composeEventHandlers(t.onFocus,()=>{x.current&&f.current?.click()})})})});M.displayName=D;var ee="RadioGroupIndicator",$=d.forwardRef((e,r)=>{const{__scopeRadioGroup:o,...n}=e,t=A(o);return a.jsxRuntimeExports.jsx(S,{...t,...n,ref:r})});$.displayName=ee;var oe=O,re=M,te=$;function ae({className:e,...r}){return a.jsxRuntimeExports.jsx(oe,{"data-slot":"radio-group",className:w.cn("adm:grid adm:gap-3",e),...r})}function ne({className:e,...r}){return a.jsxRuntimeExports.jsx(re,{"data-slot":"radio-group-item",className:w.cn(`
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-BB_1_6y_.cjs"),F=require("react"),j=require("./index-BWaO7kQK.cjs"),h=require("./index-_XxjJPRD.cjs"),P=require("./index-cwZN7ZY3.cjs"),E=require("./index-CocSS1YK.cjs"),g=require("./index-CC6DBo2g.cjs"),L=require("./index-Da298sEl.cjs"),T=require("./index-bSPhqlcX.cjs"),B=require("./index-DYxWvftI.cjs"),K=require("./index-DE3jjVoC.cjs"),U=require("./icon-C5Q2b1Am.cjs"),I=require("./index-DoxiiusW.cjs");function V(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,i.get?i:{enumerable:!0,get:()=>e[o]})}}return r.default=e,Object.freeze(r)}const d=V(F);var C="Radio",[z,_]=P.createContextScope(C),[H,W]=z(C),k=d.forwardRef((e,r)=>{const{__scopeRadio:o,name:i,checked:t=!1,required:n,disabled:s,value:p="on",onCheck:m,form:f,...R}=e,[l,x]=d.useState(null),c=h.useComposedRefs(r,b=>x(b)),u=d.useRef(!1),v=l?f||!!l.closest("form"):!0;return a.jsxRuntimeExports.jsxs(H,{scope:o,checked:t,disabled:s,children:[a.jsxRuntimeExports.jsx(E.Primitive.button,{type:"button",role:"radio","aria-checked":t,"data-state":N(t),"data-disabled":s?"":void 0,disabled:s,value:p,...R,ref:c,onClick:j.composeEventHandlers(e.onClick,b=>{t||m?.(),v&&(u.current=b.isPropagationStopped(),u.current||b.stopPropagation())})}),v&&a.jsxRuntimeExports.jsx(G,{control:l,bubbles:!u.current,name:i,value:p,checked:t,required:n,disabled:s,form:f,style:{transform:"translateX(-100%)"}})]})});k.displayName=C;var w="RadioIndicator",S=d.forwardRef((e,r)=>{const{__scopeRadio:o,forceMount:i,...t}=e,n=W(w,o);return a.jsxRuntimeExports.jsx(K.Presence,{present:i||n.checked,children:a.jsxRuntimeExports.jsx(E.Primitive.span,{"data-state":N(n.checked),"data-disabled":n.disabled?"":void 0,...t,ref:r})})});S.displayName=w;var X="RadioBubbleInput",G=d.forwardRef(({__scopeRadio:e,control:r,checked:o,bubbles:i=!0,...t},n)=>{const s=d.useRef(null),p=h.useComposedRefs(s,n),m=B.usePrevious(o),f=T.useSize(r);return d.useEffect(()=>{const R=s.current;if(!R)return;const l=window.HTMLInputElement.prototype,c=Object.getOwnPropertyDescriptor(l,"checked").set;if(m!==o&&c){const u=new Event("click",{bubbles:i});c.call(R,o),R.dispatchEvent(u)}},[m,o,i]),a.jsxRuntimeExports.jsx(E.Primitive.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...t,tabIndex:-1,ref:p,style:{...t.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});G.displayName=X;function N(e){return e?"checked":"unchecked"}var Y=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],y="RadioGroup",[J]=P.createContextScope(y,[g.createRovingFocusGroupScope,_]),q=g.createRovingFocusGroupScope(),A=_(),[Q,Z]=J(y),O=d.forwardRef((e,r)=>{const{__scopeRadioGroup:o,name:i,defaultValue:t,value:n,required:s=!1,disabled:p=!1,orientation:m,dir:f,loop:R=!0,onValueChange:l,...x}=e,c=q(o),u=L.useDirection(f),[v,b]=j.useControllableState({prop:n,defaultProp:t??null,onChange:l,caller:y});return a.jsxRuntimeExports.jsx(Q,{scope:o,name:i,required:s,disabled:p,value:v,onValueChange:b,children:a.jsxRuntimeExports.jsx(g.Root,{asChild:!0,...c,orientation:m,dir:u,loop:R,children:a.jsxRuntimeExports.jsx(E.Primitive.div,{role:"radiogroup","aria-required":s,"aria-orientation":m,"data-disabled":p?"":void 0,dir:u,...x,ref:r})})})});O.displayName=y;var D="RadioGroupItem",M=d.forwardRef((e,r)=>{const{__scopeRadioGroup:o,disabled:i,...t}=e,n=Z(D,o),s=n.disabled||i,p=q(o),m=A(o),f=d.useRef(null),R=h.useComposedRefs(r,f),l=n.value===t.value,x=d.useRef(!1);return d.useEffect(()=>{const c=v=>{Y.includes(v.key)&&(x.current=!0)},u=()=>x.current=!1;return document.addEventListener("keydown",c),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",c),document.removeEventListener("keyup",u)}},[]),a.jsxRuntimeExports.jsx(g.Item,{asChild:!0,...p,focusable:!s,active:l,children:a.jsxRuntimeExports.jsx(k,{disabled:s,required:n.required,checked:l,...m,...t,name:n.name,ref:R,onCheck:()=>n.onValueChange(t.value),onKeyDown:j.composeEventHandlers(c=>{c.key==="Enter"&&c.preventDefault()}),onFocus:j.composeEventHandlers(t.onFocus,()=>{x.current&&f.current?.click()})})})});M.displayName=D;var ee="RadioGroupIndicator",$=d.forwardRef((e,r)=>{const{__scopeRadioGroup:o,...i}=e,t=A(o);return a.jsxRuntimeExports.jsx(S,{...t,...i,ref:r})});$.displayName=ee;var oe=O,re=M,te=$;function ae({className:e,...r}){return a.jsxRuntimeExports.jsx(oe,{"data-slot":"radio-group",className:I.cn("adm:grid adm:gap-3",e),...r})}function ie({className:e,...r}){return a.jsxRuntimeExports.jsx(re,{"data-slot":"radio-group-item",className:I.cn(`
2
2
  adm:aspect-square adm:size-5 adm:shrink-0 adm:rounded-full adm:border
3
- adm:border-input adm:text-primary adm:shadow-xs
3
+ adm:border-medium-border adm:bg-background adm:text-primary
4
4
  adm:transition-[color,box-shadow] adm:outline-none
5
- adm:focus-visible:border-ring adm:focus-visible:ring-[3px]
6
- adm:focus-visible:ring-ring/50
7
- adm:disabled:cursor-not-allowed adm:disabled:opacity-50
5
+ adm:hover:bg-muted
6
+ adm:focus-visible:border-primary adm:focus-visible:ring-4
7
+ adm:focus-visible:ring-primary/10
8
+ adm:disabled:cursor-not-allowed adm:disabled:border-medium-border
9
+ adm:disabled:bg-accent adm:disabled:opacity-100
8
10
  adm:aria-invalid:border-destructive
9
- adm:aria-invalid:ring-destructive/20
10
- adm:dark:bg-input/30 adm:dark:aria-invalid:ring-destructive/40
11
+ adm:focus-visible:aria-invalid:ring-4
12
+ adm:focus-visible:aria-invalid:ring-destructive/10
13
+ adm:data-[state=checked]:border-primary
11
14
  `,e),...r,children:a.jsxRuntimeExports.jsx(te,{"data-slot":"radio-group-indicator",className:"adm:relative adm:flex adm:items-center adm:justify-center",children:a.jsxRuntimeExports.jsx(U.Icon,{symbol:"circle",fill:1,className:`
12
15
  adm:absolute adm:top-1/2 adm:left-1/2 adm:-translate-x-1/2
13
- adm:-translate-y-1/2 adm:text-sm adm:text-primary
14
- `})})})}exports.RadioGroup=ae;exports.RadioGroupItem=ne;
16
+ adm:-translate-y-1/2 adm:text-[10px] adm:text-primary
17
+ `})})})}exports.RadioGroup=ae;exports.RadioGroupItem=ie;