@adamosuiteservices/ui 2.18.6 → 2.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) 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/alert.cjs +32 -23
  5. package/dist/alert.js +53 -43
  6. package/dist/amount-input.cjs +8 -0
  7. package/dist/amount-input.js +191 -0
  8. package/dist/avatar.cjs +7 -7
  9. package/dist/avatar.js +18 -18
  10. package/dist/badge.cjs +24 -28
  11. package/dist/badge.js +45 -42
  12. package/dist/breadcrumb.cjs +2 -3
  13. package/dist/breadcrumb.js +16 -17
  14. package/dist/button-CXFZVTXF.cjs +87 -0
  15. package/dist/button-dT8nqgU3.js +156 -0
  16. package/dist/button-group.cjs +1 -1
  17. package/dist/button-group.js +1 -1
  18. package/dist/button.cjs +1 -1
  19. package/dist/button.js +1 -1
  20. package/dist/{calendar-xBaFu2sB.js → calendar-6NvJv-sP.js} +238 -239
  21. package/dist/{calendar-Dorq3-wv.cjs → calendar-B8S5a0TG.cjs} +20 -22
  22. package/dist/calendar.cjs +1 -1
  23. package/dist/calendar.js +1 -1
  24. package/dist/card.cjs +3 -3
  25. package/dist/card.js +4 -4
  26. package/dist/checkbox-BBlvCoB1.cjs +24 -0
  27. package/dist/{checkbox-DL_jFvgl.js → checkbox-BuzBXARX.js} +54 -52
  28. package/dist/checkbox.cjs +1 -1
  29. package/dist/checkbox.js +1 -1
  30. package/dist/colors.css +1 -1
  31. package/dist/combobox-B002BLsg.js +692 -0
  32. package/dist/combobox-B2BkUl7v.cjs +57 -0
  33. package/dist/combobox.cjs +1 -1
  34. package/dist/combobox.js +1 -1
  35. package/dist/components/layout/sidebar/sidebar.d.ts +2 -1
  36. package/dist/components/layout/toaster/toaster.d.ts +1 -1
  37. package/dist/components/ui/alert/alert.d.ts +1 -1
  38. package/dist/components/ui/amount-input/amount-input.d.ts +32 -0
  39. package/dist/components/ui/amount-input/index.d.ts +1 -0
  40. package/dist/components/ui/badge/badge.d.ts +3 -2
  41. package/dist/components/ui/calendar/calendar.d.ts +1 -1
  42. package/dist/components/ui/combobox/combobox.d.ts +3 -1
  43. package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +3 -1
  44. package/dist/components/ui/selectable-card/index.d.ts +1 -0
  45. package/dist/components/ui/selectable-card/selectable-card.d.ts +22 -0
  46. package/dist/components/ui/timeline/index.d.ts +1 -0
  47. package/dist/components/ui/timeline/timeline.d.ts +30 -0
  48. package/dist/components/ui/typography/typography.d.ts +1 -1
  49. package/dist/context-menu.cjs +18 -19
  50. package/dist/context-menu.js +36 -37
  51. package/dist/date-picker-selector.cjs +1 -1
  52. package/dist/date-picker-selector.js +3 -3
  53. package/dist/dialog.cjs +7 -9
  54. package/dist/dialog.js +36 -38
  55. package/dist/dropdown-menu.cjs +57 -36
  56. package/dist/dropdown-menu.js +205 -172
  57. package/dist/field.cjs +12 -7
  58. package/dist/field.js +51 -45
  59. package/dist/file-upload-v2.cjs +11 -5
  60. package/dist/file-upload-v2.js +74 -59
  61. package/dist/file-upload.cjs +11 -5
  62. package/dist/file-upload.js +117 -109
  63. package/dist/index-BBT2EGq8.js +18 -0
  64. package/dist/index-DCsgSkBj.cjs +1 -0
  65. package/dist/input-8sEO5zwD.js +44 -0
  66. package/dist/input-AONeSXcs.cjs +22 -0
  67. package/dist/input-group-13VFVAxD.cjs +86 -0
  68. package/dist/input-group-D4S18xiq.js +240 -0
  69. package/dist/input-group.cjs +1 -84
  70. package/dist/input-group.js +7 -234
  71. package/dist/input-otp.cjs +5 -7
  72. package/dist/input-otp.js +58 -60
  73. package/dist/input.cjs +1 -1
  74. package/dist/input.js +1 -1
  75. package/dist/kbd.cjs +6 -7
  76. package/dist/kbd.js +14 -15
  77. package/dist/{label-DqfX9cHc.cjs → label-B7Z1D5-Q.cjs} +5 -4
  78. package/dist/{label-C6zVnc3d.js → label-_BWRIH7C.js} +14 -13
  79. package/dist/label.cjs +1 -1
  80. package/dist/label.js +1 -1
  81. package/dist/pagination.cjs +5 -5
  82. package/dist/pagination.js +18 -18
  83. package/dist/radio-group.cjs +12 -9
  84. package/dist/radio-group.js +65 -62
  85. package/dist/select.cjs +18 -16
  86. package/dist/select.js +17 -15
  87. package/dist/selectable-card.cjs +29 -0
  88. package/dist/selectable-card.js +129 -0
  89. package/dist/separator-DXdc7LcC.cjs +7 -0
  90. package/dist/{separator-CsaqP20m.js → separator-DZfXXbNt.js} +1 -1
  91. package/dist/separator.cjs +1 -1
  92. package/dist/separator.js +1 -1
  93. package/dist/{sheet-C9vce0ut.js → sheet-DNwg4a6M.js} +8 -5
  94. package/dist/{sheet-Cnq7TCzu.cjs → sheet-va7o2x0w.cjs} +10 -10
  95. package/dist/sheet.cjs +1 -1
  96. package/dist/sheet.js +1 -1
  97. package/dist/sidebar.cjs +10 -10
  98. package/dist/sidebar.js +83 -92
  99. package/dist/slider.cjs +1 -1
  100. package/dist/slider.js +1 -1
  101. package/dist/styles.css +1 -1
  102. package/dist/switch.cjs +2 -4
  103. package/dist/switch.js +71 -73
  104. package/dist/table.cjs +14 -14
  105. package/dist/table.js +12 -12
  106. package/dist/tabs-underline.cjs +11 -15
  107. package/dist/tabs-underline.js +20 -24
  108. package/dist/tabs.cjs +10 -14
  109. package/dist/tabs.js +20 -24
  110. package/dist/tailwind-colors.css +1 -1
  111. package/dist/tailwind-theme.css +1 -1
  112. package/dist/textarea-BSooGyp-.cjs +18 -0
  113. package/dist/textarea-D_sj6ivo.js +39 -0
  114. package/dist/textarea.cjs +1 -1
  115. package/dist/textarea.js +1 -1
  116. package/dist/themes.css +1 -1
  117. package/dist/timeline.cjs +4 -0
  118. package/dist/timeline.js +189 -0
  119. package/dist/toaster.cjs +5 -4
  120. package/dist/toaster.js +33 -32
  121. package/dist/toggle.cjs +4 -4
  122. package/dist/toggle.js +17 -17
  123. package/dist/tooltip.cjs +5 -6
  124. package/dist/tooltip.js +4 -5
  125. package/docs/components/layout/sidebar.md +81 -53
  126. package/docs/components/layout/toaster.md +35 -55
  127. package/docs/components/ui/accordion-rounded.md +12 -11
  128. package/docs/components/ui/alert.md +66 -36
  129. package/docs/components/ui/amount-input.md +229 -0
  130. package/docs/components/ui/avatar.md +28 -32
  131. package/docs/components/ui/badge.md +85 -32
  132. package/docs/components/ui/breadcrumb.md +5 -7
  133. package/docs/components/ui/button-group.md +16 -16
  134. package/docs/components/ui/button.md +23 -36
  135. package/docs/components/ui/calendar.md +54 -27
  136. package/docs/components/ui/card.md +5 -4
  137. package/docs/components/ui/checkbox.md +3 -3
  138. package/docs/components/ui/combobox.md +35 -1
  139. package/docs/components/ui/command.md +7 -7
  140. package/docs/components/ui/context-menu.md +14 -15
  141. package/docs/components/ui/date-picker-selector.md +31 -31
  142. package/docs/components/ui/dialog.md +47 -49
  143. package/docs/components/ui/dropdown-menu.md +34 -37
  144. package/docs/components/ui/field.md +25 -31
  145. package/docs/components/ui/file-upload-v2.md +11 -0
  146. package/docs/components/ui/file-upload.md +105 -108
  147. package/docs/components/ui/hover-card.md +28 -6
  148. package/docs/components/ui/icon.md +10 -9
  149. package/docs/components/ui/input-group.md +9 -9
  150. package/docs/components/ui/input.md +30 -33
  151. package/docs/components/ui/kbd.md +10 -9
  152. package/docs/components/ui/label.md +6 -6
  153. package/docs/components/ui/pagination.md +3 -3
  154. package/docs/components/ui/popover.md +1 -0
  155. package/docs/components/ui/progress.md +3 -3
  156. package/docs/components/ui/radio-group.md +18 -6
  157. package/docs/components/ui/scroll-area.md +4 -4
  158. package/docs/components/ui/select.md +14 -12
  159. package/docs/components/ui/selectable-card.md +204 -0
  160. package/docs/components/ui/separator.md +4 -4
  161. package/docs/components/ui/sheet.md +21 -3
  162. package/docs/components/ui/slider.md +3 -3
  163. package/docs/components/ui/switch.md +7 -7
  164. package/docs/components/ui/table.md +7 -4
  165. package/docs/components/ui/tabs-underline.md +36 -36
  166. package/docs/components/ui/tabs.md +6 -4
  167. package/docs/components/ui/textarea.md +6 -4
  168. package/docs/components/ui/timeline.md +214 -0
  169. package/docs/components/ui/toggle.md +1 -1
  170. package/docs/components/ui/tooltip.md +3 -3
  171. package/llm.txt +7 -4
  172. package/package.json +13 -1
  173. package/dist/button-BnUlAtuD.js +0 -132
  174. package/dist/button-CFJs0esR.cjs +0 -63
  175. package/dist/checkbox-3RIZX2HF.cjs +0 -22
  176. package/dist/combobox-MkeJiTXj.js +0 -637
  177. package/dist/combobox-jJRxvUsB.cjs +0 -40
  178. package/dist/input-BCiOr4Fy.js +0 -44
  179. package/dist/input-Bz5k4w94.cjs +0 -22
  180. package/dist/separator-CCGaTo09.cjs +0 -7
  181. package/dist/textarea-BRCnIxdB.js +0 -33
  182. package/dist/textarea-DkFUS_oS.cjs +0 -14
@@ -1,52 +1,52 @@
1
1
  "use client";
2
2
  import { j as n } from "./jsx-runtime-BzflLqGi.js";
3
3
  import * as i from "react";
4
- import { u as b, c as w } from "./index-C0UREtMP.js";
4
+ import { u as h, c as v } from "./index-C0UREtMP.js";
5
5
  import { c as U } from "./index-DLcqcWxM.js";
6
6
  import { c as B } from "./index-FxyLF8MY.js";
7
7
  import { P as F } from "./index-BMWt1NBG.js";
8
- import { c as M, R as H, P as W, A as X, C as q, G as J, L as Q, I as V, a as Y, b as Z, h as ee, d as oe, S as ae, e as ne, g as te, f as re, i as de } from "./index-wujanfX3.js";
9
- import { u as h } from "./index-Cv867SGx.js";
8
+ import { c as M, R as H, P as W, A as X, C as q, G as J, L as Q, I as V, a as Y, b as Z, h as ee, d as ae, S as oe, e as te, g as ne, f as re, i as de } from "./index-wujanfX3.js";
9
+ import { u as b } from "./index-Cv867SGx.js";
10
10
  import { I as x } from "./icon-BFQz1tQC.js";
11
- import { c as p } from "./index-CRiPKpXj.js";
12
- var v = "DropdownMenu", [se] = B(
13
- v,
11
+ import { c as u } from "./index-CRiPKpXj.js";
12
+ var g = "DropdownMenu", [se] = B(
13
+ g,
14
14
  [M]
15
- ), m = M(), [ie, D] = se(v), _ = (e) => {
15
+ ), m = M(), [ie, D] = se(g), _ = (e) => {
16
16
  const {
17
- __scopeDropdownMenu: o,
18
- children: a,
17
+ __scopeDropdownMenu: a,
18
+ children: o,
19
19
  dir: t,
20
20
  open: r,
21
21
  defaultOpen: s,
22
- onOpenChange: u,
22
+ onOpenChange: p,
23
23
  modal: d = !0
24
- } = e, c = m(o), g = i.useRef(null), [l, f] = b({
24
+ } = e, c = m(a), w = i.useRef(null), [l, f] = h({
25
25
  prop: r,
26
26
  defaultProp: s ?? !1,
27
- onChange: u,
28
- caller: v
27
+ onChange: p,
28
+ caller: g
29
29
  });
30
30
  return /* @__PURE__ */ n.jsx(
31
31
  ie,
32
32
  {
33
- scope: o,
34
- triggerId: h(),
35
- triggerRef: g,
36
- contentId: h(),
33
+ scope: a,
34
+ triggerId: b(),
35
+ triggerRef: w,
36
+ contentId: b(),
37
37
  open: l,
38
38
  onOpenChange: f,
39
39
  onOpenToggle: i.useCallback(() => f((K) => !K), [f]),
40
40
  modal: d,
41
- children: /* @__PURE__ */ n.jsx(H, { ...c, open: l, onOpenChange: f, dir: t, modal: d, children: a })
41
+ children: /* @__PURE__ */ n.jsx(H, { ...c, open: l, onOpenChange: f, dir: t, modal: d, children: o })
42
42
  }
43
43
  );
44
44
  };
45
- _.displayName = v;
46
- var R = "DropdownMenuTrigger", N = i.forwardRef(
47
- (e, o) => {
48
- const { __scopeDropdownMenu: a, disabled: t = !1, ...r } = e, s = D(R, a), u = m(a);
49
- return /* @__PURE__ */ n.jsx(X, { asChild: !0, ...u, children: /* @__PURE__ */ n.jsx(
45
+ _.displayName = g;
46
+ var N = "DropdownMenuTrigger", R = i.forwardRef(
47
+ (e, a) => {
48
+ const { __scopeDropdownMenu: o, disabled: t = !1, ...r } = e, s = D(N, o), p = m(o);
49
+ return /* @__PURE__ */ n.jsx(X, { asChild: !0, ...p, children: /* @__PURE__ */ n.jsx(
50
50
  F.button,
51
51
  {
52
52
  type: "button",
@@ -58,26 +58,26 @@ var R = "DropdownMenuTrigger", N = i.forwardRef(
58
58
  "data-disabled": t ? "" : void 0,
59
59
  disabled: t,
60
60
  ...r,
61
- ref: U(o, s.triggerRef),
62
- onPointerDown: w(e.onPointerDown, (d) => {
61
+ ref: U(a, s.triggerRef),
62
+ onPointerDown: v(e.onPointerDown, (d) => {
63
63
  !t && d.button === 0 && d.ctrlKey === !1 && (s.onOpenToggle(), s.open || d.preventDefault());
64
64
  }),
65
- onKeyDown: w(e.onKeyDown, (d) => {
65
+ onKeyDown: v(e.onKeyDown, (d) => {
66
66
  t || (["Enter", " "].includes(d.key) && s.onOpenToggle(), d.key === "ArrowDown" && s.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(d.key) && d.preventDefault());
67
67
  })
68
68
  }
69
69
  ) });
70
70
  }
71
71
  );
72
- N.displayName = R;
72
+ R.displayName = N;
73
73
  var me = "DropdownMenuPortal", I = (e) => {
74
- const { __scopeDropdownMenu: o, ...a } = e, t = m(o);
75
- return /* @__PURE__ */ n.jsx(W, { ...t, ...a });
74
+ const { __scopeDropdownMenu: a, ...o } = e, t = m(a);
75
+ return /* @__PURE__ */ n.jsx(W, { ...t, ...o });
76
76
  };
77
77
  I.displayName = me;
78
78
  var j = "DropdownMenuContent", S = i.forwardRef(
79
- (e, o) => {
80
- const { __scopeDropdownMenu: a, ...t } = e, r = D(j, a), s = m(a), u = i.useRef(!1);
79
+ (e, a) => {
80
+ const { __scopeDropdownMenu: o, ...t } = e, r = D(j, o), s = m(o), p = i.useRef(!1);
81
81
  return /* @__PURE__ */ n.jsx(
82
82
  q,
83
83
  {
@@ -85,13 +85,13 @@ var j = "DropdownMenuContent", S = i.forwardRef(
85
85
  "aria-labelledby": r.triggerId,
86
86
  ...s,
87
87
  ...t,
88
- ref: o,
89
- onCloseAutoFocus: w(e.onCloseAutoFocus, (d) => {
90
- u.current || r.triggerRef.current?.focus(), u.current = !1, d.preventDefault();
88
+ ref: a,
89
+ onCloseAutoFocus: v(e.onCloseAutoFocus, (d) => {
90
+ p.current || r.triggerRef.current?.focus(), p.current = !1, d.preventDefault();
91
91
  }),
92
- onInteractOutside: w(e.onInteractOutside, (d) => {
93
- const c = d.detail.originalEvent, g = c.button === 0 && c.ctrlKey === !0, l = c.button === 2 || g;
94
- (!r.modal || l) && (u.current = !0);
92
+ onInteractOutside: v(e.onInteractOutside, (d) => {
93
+ const c = d.detail.originalEvent, w = c.button === 0 && c.ctrlKey === !0, l = c.button === 2 || w;
94
+ (!r.modal || l) && (p.current = !0);
95
95
  }),
96
96
  style: {
97
97
  ...e.style,
@@ -106,80 +106,80 @@ var j = "DropdownMenuContent", S = i.forwardRef(
106
106
  }
107
107
  );
108
108
  S.displayName = j;
109
- var ue = "DropdownMenuGroup", C = i.forwardRef(
110
- (e, o) => {
111
- const { __scopeDropdownMenu: a, ...t } = e, r = m(a);
112
- return /* @__PURE__ */ n.jsx(J, { ...r, ...t, ref: o });
109
+ var ue = "DropdownMenuGroup", y = i.forwardRef(
110
+ (e, a) => {
111
+ const { __scopeDropdownMenu: o, ...t } = e, r = m(o);
112
+ return /* @__PURE__ */ n.jsx(J, { ...r, ...t, ref: a });
113
113
  }
114
114
  );
115
- C.displayName = ue;
116
- var pe = "DropdownMenuLabel", y = i.forwardRef(
117
- (e, o) => {
118
- const { __scopeDropdownMenu: a, ...t } = e, r = m(a);
119
- return /* @__PURE__ */ n.jsx(Q, { ...r, ...t, ref: o });
115
+ y.displayName = ue;
116
+ var pe = "DropdownMenuLabel", C = i.forwardRef(
117
+ (e, a) => {
118
+ const { __scopeDropdownMenu: o, ...t } = e, r = m(o);
119
+ return /* @__PURE__ */ n.jsx(Q, { ...r, ...t, ref: a });
120
120
  }
121
121
  );
122
- y.displayName = pe;
122
+ C.displayName = pe;
123
123
  var ce = "DropdownMenuItem", P = i.forwardRef(
124
- (e, o) => {
125
- const { __scopeDropdownMenu: a, ...t } = e, r = m(a);
126
- return /* @__PURE__ */ n.jsx(V, { ...r, ...t, ref: o });
124
+ (e, a) => {
125
+ const { __scopeDropdownMenu: o, ...t } = e, r = m(o);
126
+ return /* @__PURE__ */ n.jsx(V, { ...r, ...t, ref: a });
127
127
  }
128
128
  );
129
129
  P.displayName = ce;
130
- var le = "DropdownMenuCheckboxItem", A = i.forwardRef((e, o) => {
131
- const { __scopeDropdownMenu: a, ...t } = e, r = m(a);
132
- return /* @__PURE__ */ n.jsx(Y, { ...r, ...t, ref: o });
130
+ var le = "DropdownMenuCheckboxItem", A = i.forwardRef((e, a) => {
131
+ const { __scopeDropdownMenu: o, ...t } = e, r = m(o);
132
+ return /* @__PURE__ */ n.jsx(Y, { ...r, ...t, ref: a });
133
133
  });
134
134
  A.displayName = le;
135
- var fe = "DropdownMenuRadioGroup", E = i.forwardRef((e, o) => {
136
- const { __scopeDropdownMenu: a, ...t } = e, r = m(a);
137
- return /* @__PURE__ */ n.jsx(ee, { ...r, ...t, ref: o });
135
+ var fe = "DropdownMenuRadioGroup", E = i.forwardRef((e, a) => {
136
+ const { __scopeDropdownMenu: o, ...t } = e, r = m(o);
137
+ return /* @__PURE__ */ n.jsx(ee, { ...r, ...t, ref: a });
138
138
  });
139
139
  E.displayName = fe;
140
- var we = "DropdownMenuRadioItem", O = i.forwardRef((e, o) => {
141
- const { __scopeDropdownMenu: a, ...t } = e, r = m(a);
142
- return /* @__PURE__ */ n.jsx(oe, { ...r, ...t, ref: o });
140
+ var ve = "DropdownMenuRadioItem", O = i.forwardRef((e, a) => {
141
+ const { __scopeDropdownMenu: o, ...t } = e, r = m(o);
142
+ return /* @__PURE__ */ n.jsx(ae, { ...r, ...t, ref: a });
143
143
  });
144
- O.displayName = we;
145
- var ve = "DropdownMenuItemIndicator", k = i.forwardRef((e, o) => {
146
- const { __scopeDropdownMenu: a, ...t } = e, r = m(a);
147
- return /* @__PURE__ */ n.jsx(Z, { ...r, ...t, ref: o });
144
+ O.displayName = ve;
145
+ var ge = "DropdownMenuItemIndicator", k = i.forwardRef((e, a) => {
146
+ const { __scopeDropdownMenu: o, ...t } = e, r = m(o);
147
+ return /* @__PURE__ */ n.jsx(Z, { ...r, ...t, ref: a });
148
148
  });
149
- k.displayName = ve;
150
- var ge = "DropdownMenuSeparator", T = i.forwardRef((e, o) => {
151
- const { __scopeDropdownMenu: a, ...t } = e, r = m(a);
152
- return /* @__PURE__ */ n.jsx(ae, { ...r, ...t, ref: o });
149
+ k.displayName = ge;
150
+ var we = "DropdownMenuSeparator", T = i.forwardRef((e, a) => {
151
+ const { __scopeDropdownMenu: o, ...t } = e, r = m(o);
152
+ return /* @__PURE__ */ n.jsx(oe, { ...r, ...t, ref: a });
153
153
  });
154
- T.displayName = ge;
155
- var xe = "DropdownMenuArrow", he = i.forwardRef(
156
- (e, o) => {
157
- const { __scopeDropdownMenu: a, ...t } = e, r = m(a);
158
- return /* @__PURE__ */ n.jsx(de, { ...r, ...t, ref: o });
154
+ T.displayName = we;
155
+ var xe = "DropdownMenuArrow", be = i.forwardRef(
156
+ (e, a) => {
157
+ const { __scopeDropdownMenu: o, ...t } = e, r = m(o);
158
+ return /* @__PURE__ */ n.jsx(de, { ...r, ...t, ref: a });
159
159
  }
160
160
  );
161
- he.displayName = xe;
162
- var be = (e) => {
163
- const { __scopeDropdownMenu: o, children: a, open: t, onOpenChange: r, defaultOpen: s } = e, u = m(o), [d, c] = b({
161
+ be.displayName = xe;
162
+ var he = (e) => {
163
+ const { __scopeDropdownMenu: a, children: o, open: t, onOpenChange: r, defaultOpen: s } = e, p = m(a), [d, c] = h({
164
164
  prop: t,
165
165
  defaultProp: s ?? !1,
166
166
  onChange: r,
167
167
  caller: "DropdownMenuSub"
168
168
  });
169
- return /* @__PURE__ */ n.jsx(ne, { ...u, open: d, onOpenChange: c, children: a });
170
- }, Me = "DropdownMenuSubTrigger", G = i.forwardRef((e, o) => {
171
- const { __scopeDropdownMenu: a, ...t } = e, r = m(a);
172
- return /* @__PURE__ */ n.jsx(te, { ...r, ...t, ref: o });
169
+ return /* @__PURE__ */ n.jsx(te, { ...p, open: d, onOpenChange: c, children: o });
170
+ }, Me = "DropdownMenuSubTrigger", z = i.forwardRef((e, a) => {
171
+ const { __scopeDropdownMenu: o, ...t } = e, r = m(o);
172
+ return /* @__PURE__ */ n.jsx(ne, { ...r, ...t, ref: a });
173
173
  });
174
- G.displayName = Me;
175
- var De = "DropdownMenuSubContent", $ = i.forwardRef((e, o) => {
176
- const { __scopeDropdownMenu: a, ...t } = e, r = m(a);
174
+ z.displayName = Me;
175
+ var De = "DropdownMenuSubContent", G = i.forwardRef((e, a) => {
176
+ const { __scopeDropdownMenu: o, ...t } = e, r = m(o);
177
177
  return /* @__PURE__ */ n.jsx(
178
178
  re,
179
179
  {
180
180
  ...r,
181
181
  ...t,
182
- ref: o,
182
+ ref: a,
183
183
  style: {
184
184
  ...e.style,
185
185
  "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
@@ -191,8 +191,8 @@ var De = "DropdownMenuSubContent", $ = i.forwardRef((e, o) => {
191
191
  }
192
192
  );
193
193
  });
194
- $.displayName = De;
195
- var _e = _, Re = N, L = I, Ne = S, Ie = C, je = y, Se = P, Ce = A, ye = E, Pe = O, z = k, Ae = T, Ee = be, Oe = G, ke = $;
194
+ G.displayName = De;
195
+ var _e = _, Ne = R, $ = I, Re = S, Ie = y, je = C, Se = P, ye = A, Ce = E, Pe = O, L = k, Ae = T, Ee = he, Oe = z, ke = G;
196
196
  function He({
197
197
  ...e
198
198
  }) {
@@ -201,30 +201,60 @@ function He({
201
201
  function We({
202
202
  ...e
203
203
  }) {
204
- return /* @__PURE__ */ n.jsx(L, { "data-slot": "dropdown-menu-portal", ...e });
204
+ return /* @__PURE__ */ n.jsx($, { "data-slot": "dropdown-menu-portal", ...e });
205
205
  }
206
206
  function Xe({
207
- ...e
207
+ className: e,
208
+ size: a = "default",
209
+ children: o,
210
+ ...t
208
211
  }) {
209
212
  return /* @__PURE__ */ n.jsx(
210
- Re,
213
+ Ne,
211
214
  {
212
215
  "data-slot": "dropdown-menu-trigger",
213
- ...e
216
+ "data-size": a,
217
+ className: u(
218
+ `
219
+ adm:flex adm:w-fit adm:items-center adm:justify-between adm:gap-2
220
+ adm:rounded-md adm:border adm:border-input adm:bg-background adm:px-3
221
+ adm:text-sm adm:whitespace-nowrap adm:text-foreground
222
+ adm:transition-[color,box-shadow] adm:outline-none
223
+ adm:hover:bg-muted
224
+ adm:focus-visible:border-primary-300 adm:focus-visible:ring-4
225
+ adm:focus-visible:ring-primary/10
226
+ adm:active:bg-muted
227
+ adm:disabled:pointer-events-none adm:disabled:bg-input-disabled
228
+ adm:disabled:text-input-foreground-disabled adm:disabled:opacity-100
229
+ adm:aria-invalid:border-destructive
230
+ adm:aria-invalid:focus-visible:ring-4
231
+ adm:aria-invalid:focus-visible:ring-destructive/10
232
+ adm:data-[size=default]:h-10
233
+ adm:data-[size=sm]:h-9
234
+ adm:**:data-[slot=icon]:pointer-events-none
235
+ adm:**:data-[slot=icon]:shrink-0
236
+ adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
237
+ adm:[&_svg:not([class*=size-])]:size-4
238
+ adm:[&_svg:not([class*=text-])]:text-muted-foreground
239
+ `,
240
+ e
241
+ ),
242
+ ...t,
243
+ children: o
214
244
  }
215
245
  );
216
246
  }
217
247
  function qe({
218
248
  className: e,
219
- sideOffset: o = 4,
220
- ...a
249
+ sideOffset: a = 4,
250
+ ...o
221
251
  }) {
222
- return /* @__PURE__ */ n.jsx(L, { children: /* @__PURE__ */ n.jsx(
223
- Ne,
252
+ return /* @__PURE__ */ n.jsx($, { children: /* @__PURE__ */ n.jsx(
253
+ Re,
224
254
  {
225
255
  "data-slot": "dropdown-menu-content",
226
- sideOffset: o,
227
- className: p(
256
+ sideOffset: a,
257
+ className: u(
228
258
  `
229
259
  adm:z-50 adm:max-h-(--radix-dropdown-menu-content-available-height)
230
260
  adm:min-w-[8rem]
@@ -243,7 +273,7 @@ function qe({
243
273
  `,
244
274
  e
245
275
  ),
246
- ...a
276
+ ...o
247
277
  }
248
278
  ) });
249
279
  }
@@ -254,23 +284,22 @@ function Je({
254
284
  }
255
285
  function Qe({
256
286
  className: e,
257
- inset: o,
258
- variant: a = "default",
287
+ inset: a,
288
+ variant: o = "default",
259
289
  ...t
260
290
  }) {
261
291
  return /* @__PURE__ */ n.jsx(
262
292
  Se,
263
293
  {
264
294
  "data-slot": "dropdown-menu-item",
265
- "data-inset": o,
266
- "data-variant": a,
267
- className: p(
295
+ "data-inset": a,
296
+ "data-variant": o,
297
+ className: u(
268
298
  `
269
- adm:relative adm:flex adm:h-10 adm:cursor-default adm:items-center
270
- adm:gap-2 adm:px-3 adm:text-sm adm:outline-hidden adm:select-none
271
- adm:first:rounded-t-sm
272
- adm:last:rounded-b-sm
273
- adm:focus:bg-accent adm:focus:text-accent-foreground
299
+ adm:relative adm:flex adm:h-11 adm:w-full adm:cursor-default
300
+ adm:items-center adm:gap-3 adm:pr-10 adm:pl-4 adm:text-sm
301
+ adm:outline-hidden adm:select-none
302
+ adm:focus:bg-muted adm:focus:text-foreground
274
303
  adm:data-disabled:pointer-events-none adm:data-disabled:opacity-50
275
304
  adm:data-inset:pl-8
276
305
  adm:**:data-[slot=icon]:pointer-events-none
@@ -280,6 +309,8 @@ function Qe({
280
309
  adm:data-[variant=destructive]:focus:text-destructive
281
310
  adm:dark:data-[variant=destructive]:focus:bg-destructive/20
282
311
  adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
312
+ adm:[&_svg:not([class*=size-])]:size-4
313
+ adm:[&_svg:not([class*=text-])]:text-muted-foreground
283
314
  adm:data-[variant=destructive]:*:[data-slot=icon]:text-destructive!
284
315
  adm:data-[variant=destructive]:*:[svg]:text-destructive!
285
316
  `,
@@ -291,30 +322,30 @@ function Qe({
291
322
  }
292
323
  function Ve({
293
324
  className: e,
294
- children: o,
295
- checked: a,
325
+ children: a,
326
+ checked: o,
296
327
  ...t
297
328
  }) {
298
329
  return /* @__PURE__ */ n.jsxs(
299
- Ce,
330
+ ye,
300
331
  {
301
332
  "data-slot": "dropdown-menu-checkbox-item",
302
- className: p(
333
+ className: u(
303
334
  `
304
- adm:relative adm:flex adm:h-10 adm:cursor-default adm:items-center
305
- adm:gap-2 adm:pr-10 adm:pl-8 adm:text-sm adm:outline-hidden
306
- adm:select-none
307
- adm:first:rounded-t-sm
308
- adm:last:rounded-b-sm
309
- adm:focus:bg-accent adm:focus:text-accent-foreground
335
+ adm:relative adm:flex adm:h-11 adm:w-full adm:cursor-default
336
+ adm:items-center adm:gap-3 adm:pr-10 adm:pl-8 adm:text-sm
337
+ adm:outline-hidden adm:select-none
338
+ adm:focus:bg-muted adm:focus:text-foreground
310
339
  adm:data-disabled:pointer-events-none adm:data-disabled:opacity-50
311
340
  adm:**:data-[slot=icon]:pointer-events-none
312
341
  adm:**:data-[slot=icon]:shrink-0
313
342
  adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
343
+ adm:[&_svg:not([class*=size-])]:size-4
344
+ adm:[&_svg:not([class*=text-])]:text-muted-foreground
314
345
  `,
315
346
  e
316
347
  ),
317
- checked: a,
348
+ checked: o,
318
349
  ...t,
319
350
  children: [
320
351
  /* @__PURE__ */ n.jsx(
@@ -324,10 +355,10 @@ function Ve({
324
355
  adm:pointer-events-none adm:absolute adm:left-2 adm:flex adm:size-3.5
325
356
  adm:items-center adm:justify-center
326
357
  `,
327
- children: /* @__PURE__ */ n.jsx(z, { children: /* @__PURE__ */ n.jsx(x, { symbol: "check" }) })
358
+ children: /* @__PURE__ */ n.jsx(L, { children: /* @__PURE__ */ n.jsx(x, { symbol: "check", className: "adm:text-xl adm:text-success" }) })
328
359
  }
329
360
  ),
330
- o
361
+ a
331
362
  ]
332
363
  }
333
364
  );
@@ -336,7 +367,7 @@ function Ye({
336
367
  ...e
337
368
  }) {
338
369
  return /* @__PURE__ */ n.jsx(
339
- ye,
370
+ Ce,
340
371
  {
341
372
  "data-slot": "dropdown-menu-radio-group",
342
373
  ...e
@@ -345,29 +376,29 @@ function Ye({
345
376
  }
346
377
  function Ze({
347
378
  className: e,
348
- children: o,
349
- ...a
379
+ children: a,
380
+ ...o
350
381
  }) {
351
382
  return /* @__PURE__ */ n.jsxs(
352
383
  Pe,
353
384
  {
354
385
  "data-slot": "dropdown-menu-radio-item",
355
- className: p(
386
+ className: u(
356
387
  `
357
- adm:relative adm:flex adm:h-10 adm:cursor-default adm:items-center
358
- adm:gap-2 adm:pr-10 adm:pl-8 adm:text-sm adm:outline-hidden
359
- adm:select-none
360
- adm:first:rounded-t-sm
361
- adm:last:rounded-b-sm
362
- adm:focus:bg-accent adm:focus:text-accent-foreground
388
+ adm:relative adm:flex adm:h-11 adm:w-full adm:cursor-default
389
+ adm:items-center adm:gap-3 adm:pr-10 adm:pl-8 adm:text-sm
390
+ adm:outline-hidden adm:select-none
391
+ adm:focus:bg-muted adm:focus:text-foreground
363
392
  adm:data-disabled:pointer-events-none adm:data-disabled:opacity-50
364
393
  adm:**:data-[slot=icon]:pointer-events-none
365
394
  adm:**:data-[slot=icon]:shrink-0
366
395
  adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
396
+ adm:[&_svg:not([class*=size-])]:size-4
397
+ adm:[&_svg:not([class*=text-])]:text-muted-foreground
367
398
  `,
368
399
  e
369
400
  ),
370
- ...a,
401
+ ...o,
371
402
  children: [
372
403
  /* @__PURE__ */ n.jsx(
373
404
  "span",
@@ -376,114 +407,116 @@ function Ze({
376
407
  adm:pointer-events-none adm:absolute adm:left-2 adm:flex adm:size-3.5
377
408
  adm:items-center adm:justify-center
378
409
  `,
379
- children: /* @__PURE__ */ n.jsx(z, { children: /* @__PURE__ */ n.jsx(x, { symbol: "circle", fill: 1, className: "adm:text-xs" }) })
410
+ children: /* @__PURE__ */ n.jsx(L, { children: /* @__PURE__ */ n.jsx(x, { symbol: "circle", fill: 1, className: "adm:text-xs" }) })
380
411
  }
381
412
  ),
382
- o
413
+ a
383
414
  ]
384
415
  }
385
416
  );
386
417
  }
387
- function eo({
418
+ function ea({
388
419
  className: e,
389
- inset: o,
390
- ...a
420
+ inset: a,
421
+ ...o
391
422
  }) {
392
423
  return /* @__PURE__ */ n.jsx(
393
424
  je,
394
425
  {
395
426
  "data-slot": "dropdown-menu-label",
396
- "data-inset": o,
397
- className: p(
427
+ "data-inset": a,
428
+ className: u(
398
429
  `
399
- adm:flex adm:h-10 adm:items-center adm:px-3 adm:text-sm
400
- adm:font-medium
430
+ adm:px-2 adm:py-1.5 adm:text-xs adm:text-muted-foreground
401
431
  adm:data-inset:pl-8
402
432
  `,
403
433
  e
404
434
  ),
405
- ...a
435
+ ...o
406
436
  }
407
437
  );
408
438
  }
409
- function oo({
439
+ function aa({
410
440
  className: e,
411
- ...o
441
+ ...a
412
442
  }) {
413
443
  return /* @__PURE__ */ n.jsx(
414
444
  Ae,
415
445
  {
416
446
  "data-slot": "dropdown-menu-separator",
417
- className: p("adm:h-px adm:bg-border", e),
418
- ...o
447
+ className: u(
448
+ "adm:pointer-events-none adm:-mx-1 adm:my-1 adm:h-px adm:bg-border",
449
+ e
450
+ ),
451
+ ...a
419
452
  }
420
453
  );
421
454
  }
422
- function ao({
455
+ function oa({
423
456
  className: e,
424
- ...o
457
+ ...a
425
458
  }) {
426
459
  return /* @__PURE__ */ n.jsx(
427
460
  "span",
428
461
  {
429
462
  "data-slot": "dropdown-menu-shortcut",
430
- className: p(
463
+ className: u(
431
464
  "adm:ml-auto adm:text-xs adm:tracking-widest adm:text-muted-foreground",
432
465
  e
433
466
  ),
434
- ...o
467
+ ...a
435
468
  }
436
469
  );
437
470
  }
438
- function no({
471
+ function ta({
439
472
  ...e
440
473
  }) {
441
474
  return /* @__PURE__ */ n.jsx(Ee, { "data-slot": "dropdown-menu-sub", ...e });
442
475
  }
443
- function to({
476
+ function na({
444
477
  className: e,
445
- inset: o,
446
- children: a,
478
+ inset: a,
479
+ children: o,
447
480
  ...t
448
481
  }) {
449
482
  return /* @__PURE__ */ n.jsxs(
450
483
  Oe,
451
484
  {
452
485
  "data-slot": "dropdown-menu-sub-trigger",
453
- "data-inset": o,
454
- className: p(
486
+ "data-inset": a,
487
+ className: u(
455
488
  `
456
- adm:flex adm:h-10 adm:cursor-default adm:items-center adm:gap-2
457
- adm:px-3 adm:text-sm adm:outline-hidden adm:select-none
458
- adm:first:rounded-t-sm
459
- adm:last:rounded-b-sm
460
- adm:focus:bg-accent adm:focus:text-accent-foreground
489
+ adm:flex adm:h-11 adm:w-full adm:cursor-default adm:items-center
490
+ adm:gap-3 adm:pr-10 adm:pl-4 adm:text-sm adm:outline-hidden
491
+ adm:select-none
492
+ adm:focus:bg-muted adm:focus:text-foreground
461
493
  adm:data-inset:pl-8
462
494
  adm:**:data-[slot=icon]:pointer-events-none
463
495
  adm:**:data-[slot=icon]:shrink-0
464
- adm:data-[state=open]:bg-accent
465
- adm:data-[state=open]:text-accent-foreground
496
+ adm:data-[state=open]:bg-muted adm:data-[state=open]:text-foreground
466
497
  adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
498
+ adm:[&_svg:not([class*=size-])]:size-4
499
+ adm:[&_svg:not([class*=text-])]:text-muted-foreground
467
500
  `,
468
501
  e
469
502
  ),
470
503
  ...t,
471
504
  children: [
472
- a,
505
+ o,
473
506
  /* @__PURE__ */ n.jsx(x, { symbol: "chevron_right", className: "adm:ml-auto adm:shrink-0" })
474
507
  ]
475
508
  }
476
509
  );
477
510
  }
478
- function ro({
511
+ function ra({
479
512
  className: e,
480
- ...o
513
+ ...a
481
514
  }) {
482
515
  return /* @__PURE__ */ n.jsx(
483
516
  ke,
484
517
  {
485
518
  "data-slot": "dropdown-menu-sub-content",
486
- className: p(
519
+ className: u(
487
520
  `
488
521
  adm:z-50 adm:min-w-[8rem]
489
522
  adm:origin-(--radix-dropdown-menu-content-transform-origin)
@@ -500,7 +533,7 @@ function ro({
500
533
  `,
501
534
  e
502
535
  ),
503
- ...o
536
+ ...a
504
537
  }
505
538
  );
506
539
  }
@@ -510,14 +543,14 @@ export {
510
543
  qe as DropdownMenuContent,
511
544
  Je as DropdownMenuGroup,
512
545
  Qe as DropdownMenuItem,
513
- eo as DropdownMenuLabel,
546
+ ea as DropdownMenuLabel,
514
547
  We as DropdownMenuPortal,
515
548
  Ye as DropdownMenuRadioGroup,
516
549
  Ze as DropdownMenuRadioItem,
517
- oo as DropdownMenuSeparator,
518
- ao as DropdownMenuShortcut,
519
- no as DropdownMenuSub,
520
- ro as DropdownMenuSubContent,
521
- to as DropdownMenuSubTrigger,
550
+ aa as DropdownMenuSeparator,
551
+ oa as DropdownMenuShortcut,
552
+ ta as DropdownMenuSub,
553
+ ra as DropdownMenuSubContent,
554
+ na as DropdownMenuSubTrigger,
522
555
  Xe as DropdownMenuTrigger
523
556
  };