@brightlocal/ui-components 0.3.1 → 0.4.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 (110) hide show
  1. package/dist/accordion.cjs +1 -1
  2. package/dist/accordion.js +1 -1
  3. package/dist/alert.d.ts +2 -2
  4. package/dist/alert.js +3 -3
  5. package/dist/blocks/data-table.cjs +1 -1
  6. package/dist/blocks/data-table.js +30 -30
  7. package/dist/blocks/sidebar.cjs +1 -1
  8. package/dist/blocks/sidebar.d.ts +2 -2
  9. package/dist/blocks/sidebar.d.ts.map +1 -1
  10. package/dist/blocks/sidebar.js +4 -4
  11. package/dist/breadcrumb.cjs +1 -1
  12. package/dist/breadcrumb.js +12 -12
  13. package/dist/button.d.ts +1 -1
  14. package/dist/calendar.cjs +1 -1
  15. package/dist/calendar.d.ts.map +1 -1
  16. package/dist/calendar.js +6 -3
  17. package/dist/card.cjs +1 -1
  18. package/dist/card.d.ts +5 -0
  19. package/dist/card.d.ts.map +1 -1
  20. package/dist/card.js +49 -36
  21. package/dist/carousel.js +3 -3
  22. package/dist/centred-layout.cjs +1 -1
  23. package/dist/centred-layout.d.ts +4 -9
  24. package/dist/centred-layout.d.ts.map +1 -1
  25. package/dist/centred-layout.js +33 -48
  26. package/dist/checkbox.cjs +1 -1
  27. package/dist/checkbox.js +8 -8
  28. package/dist/combobox.cjs +1 -1
  29. package/dist/combobox.d.ts +12 -7
  30. package/dist/combobox.d.ts.map +1 -1
  31. package/dist/combobox.js +117 -104
  32. package/dist/command.cjs +1 -1
  33. package/dist/command.js +3 -3
  34. package/dist/context-menu.cjs +1 -1
  35. package/dist/context-menu.js +3 -3
  36. package/dist/date-picker.js +4 -4
  37. package/dist/dropdown-menu.cjs +1 -1
  38. package/dist/dropdown-menu.js +10 -10
  39. package/dist/field.cjs +1 -1
  40. package/dist/field.d.ts +103 -10
  41. package/dist/field.d.ts.map +1 -1
  42. package/dist/field.js +113 -60
  43. package/dist/header.d.ts.map +1 -1
  44. package/dist/header.js +4 -1
  45. package/dist/index.cjs +1 -1
  46. package/dist/index.js +351 -349
  47. package/dist/input-chip.cjs +1 -1
  48. package/dist/input-chip.js +1 -1
  49. package/dist/input-group.d.ts +1 -1
  50. package/dist/input-otp.js +3 -3
  51. package/dist/input-password.cjs +1 -1
  52. package/dist/input-password.js +63 -63
  53. package/dist/label.cjs +1 -1
  54. package/dist/label.js +1 -1
  55. package/dist/link.cjs +1 -1
  56. package/dist/link.d.ts +5 -0
  57. package/dist/link.d.ts.map +1 -1
  58. package/dist/link.js +26 -25
  59. package/dist/logo.cjs +1 -1
  60. package/dist/logo.d.ts.map +1 -1
  61. package/dist/logo.js +17 -16
  62. package/dist/menubar.cjs +1 -1
  63. package/dist/menubar.js +3 -3
  64. package/dist/navigation-menu.cjs +1 -1
  65. package/dist/navigation-menu.d.ts.map +1 -1
  66. package/dist/navigation-menu.js +2 -1
  67. package/dist/pagination.cjs +1 -1
  68. package/dist/pagination.d.ts +1 -1
  69. package/dist/pagination.js +17 -17
  70. package/dist/radio-group.d.ts +2 -2
  71. package/dist/rating.cjs +1 -1
  72. package/dist/rating.js +8 -8
  73. package/dist/resizable.cjs +1 -1
  74. package/dist/resizable.d.ts +1 -1
  75. package/dist/resizable.js +1 -1
  76. package/dist/select.cjs +1 -1
  77. package/dist/select.d.ts +19 -14
  78. package/dist/select.d.ts.map +1 -1
  79. package/dist/select.js +108 -139
  80. package/dist/sheet.d.ts +1 -1
  81. package/dist/sonner.cjs +1 -1
  82. package/dist/sonner.d.ts.map +1 -1
  83. package/dist/sonner.js +10 -9
  84. package/dist/switch.d.ts +1 -1
  85. package/package.json +9 -9
  86. package/src/blocks/data-table.tsx +5 -5
  87. package/src/blocks/sidebar.tsx +3 -2
  88. package/src/components/accordion.tsx +1 -1
  89. package/src/components/breadcrumb.tsx +1 -1
  90. package/src/components/calendar.tsx +6 -3
  91. package/src/components/card.tsx +24 -1
  92. package/src/components/centred-layout.tsx +8 -31
  93. package/src/components/checkbox.tsx +2 -2
  94. package/src/components/combobox.tsx +21 -5
  95. package/src/components/command.tsx +3 -3
  96. package/src/components/context-menu.tsx +3 -3
  97. package/src/components/dropdown-menu.tsx +4 -4
  98. package/src/components/field.tsx +187 -20
  99. package/src/components/header.tsx +4 -1
  100. package/src/components/input-password.tsx +4 -4
  101. package/src/components/label.tsx +1 -1
  102. package/src/components/link.tsx +8 -2
  103. package/src/components/logo.tsx +10 -9
  104. package/src/components/menubar.tsx +3 -3
  105. package/src/components/navigation-menu.tsx +2 -1
  106. package/src/components/pagination.tsx +3 -3
  107. package/src/components/rating.tsx +2 -2
  108. package/src/components/resizable.tsx +1 -1
  109. package/src/components/select.tsx +26 -90
  110. package/src/components/sonner.tsx +6 -5
package/dist/combobox.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { jsx as n, jsxs as I, Fragment as j } from "react/jsx-runtime";
2
2
  import * as t from "react";
3
- import { ChevronsUpDownIcon as z, CheckIcon as P, LoaderIcon as M } from "@brightlocal/icons";
4
- import { cva as G } from "class-variance-authority";
5
- import { cn as w } from "@brightlocal/ui-components/lib/utils";
6
- import { Popover as U, PopoverTrigger as _, PopoverContent as $ } from "@brightlocal/ui-components/popover";
7
- import { Command as F, CommandInput as O, CommandList as D, CommandEmpty as H, CommandGroup as V, CommandItem as q, CommandSeparator as A } from "@brightlocal/ui-components/command";
3
+ import { CheckIcon as z, ChevronsUpDownIcon as P } from "@brightlocal/icons";
4
+ import { cva as M } from "class-variance-authority";
5
+ import { cn as f } from "@brightlocal/ui-components/lib/utils";
6
+ import { Popover as _, PopoverContent as G, PopoverTrigger as U } from "@brightlocal/ui-components/popover";
7
+ import { Command as $, CommandEmpty as F, CommandGroup as O, CommandInput as D, CommandItem as H, CommandList as V, CommandSeparator as q } from "@brightlocal/ui-components/command";
8
8
  const E = t.createContext(null);
9
9
  function y() {
10
10
  const o = t.useContext(E);
@@ -12,58 +12,58 @@ function y() {
12
12
  throw new Error("Combobox components must be used within a <Combobox>");
13
13
  return o;
14
14
  }
15
- function io({
15
+ function so({
16
16
  value: o,
17
17
  onValueChange: e,
18
18
  open: a,
19
19
  onOpenChange: r,
20
20
  shouldFilter: s = !0,
21
- disabled: i = !1,
22
- children: d
21
+ disabled: d = !1,
22
+ children: i
23
23
  }) {
24
- const [f, m] = t.useState(""), [b, x] = t.useState(!1), [u, l] = t.useState(
24
+ const [x, c] = t.useState(""), [l, g] = t.useState(!1), [u, b] = t.useState(
25
25
  () => /* @__PURE__ */ new Map()
26
- ), g = o !== void 0, p = a !== void 0, C = g ? o : f, v = p ? a : b, h = t.useCallback(
27
- (c) => {
28
- p || x(c), r?.(c);
26
+ ), C = o !== void 0, p = a !== void 0, v = C ? o : x, h = p ? a : l, w = t.useCallback(
27
+ (m) => {
28
+ p || g(m), r?.(m);
29
29
  },
30
30
  [p, r]
31
31
  ), N = t.useCallback(
32
- (c) => {
33
- g || m(c), e?.(c);
32
+ (m) => {
33
+ C || c(m), e?.(m);
34
34
  },
35
- [g, e]
36
- ), R = t.useCallback((c, S) => {
37
- l((k) => {
38
- if (k.get(c) === S) return k;
35
+ [C, e]
36
+ ), R = t.useCallback((m, S) => {
37
+ b((k) => {
38
+ if (k.get(m) === S) return k;
39
39
  const L = new Map(k);
40
- return L.set(c, S), L;
40
+ return L.set(m, S), L;
41
41
  });
42
42
  }, []), T = t.useMemo(
43
43
  () => ({
44
- open: v,
45
- setOpen: h,
46
- value: C,
44
+ open: h,
45
+ setOpen: w,
46
+ value: v,
47
47
  onValueChange: N,
48
48
  shouldFilter: s,
49
- disabled: i,
49
+ disabled: d,
50
50
  itemLabels: u,
51
51
  registerItem: R
52
52
  }),
53
53
  [
54
- v,
55
54
  h,
56
- C,
55
+ w,
56
+ v,
57
57
  N,
58
58
  s,
59
- i,
59
+ d,
60
60
  u,
61
61
  R
62
62
  ]
63
63
  );
64
- return /* @__PURE__ */ n(E.Provider, { value: T, children: /* @__PURE__ */ n(U, { open: v, onOpenChange: h, children: d }) });
64
+ return /* @__PURE__ */ n(E.Provider, { value: T, children: /* @__PURE__ */ n(_, { open: h, onOpenChange: w, children: i }) });
65
65
  }
66
- const B = G(
66
+ const A = M(
67
67
  [
68
68
  // Base layout
69
69
  "relative flex w-full items-center justify-between gap-2",
@@ -102,42 +102,43 @@ const B = G(
102
102
  variant: "default"
103
103
  }
104
104
  }
105
- ), J = t.forwardRef(
105
+ ), B = t.forwardRef(
106
106
  ({
107
107
  className: o,
108
108
  variant: e,
109
109
  dataHook: a,
110
110
  trackingEl: r,
111
111
  trackingLabel: s,
112
- children: i,
113
- ...d
114
- }, f) => {
115
- const { open: m, disabled: b, value: x } = y(), u = t.useId(), l = !x;
116
- return /* @__PURE__ */ n(_, { asChild: !0, children: /* @__PURE__ */ I(
112
+ children: d,
113
+ ...i
114
+ }, x) => {
115
+ const { open: c, disabled: l, value: g } = y(), u = t.useId(), b = !g;
116
+ return /* @__PURE__ */ n(U, { asChild: !0, children: /* @__PURE__ */ I(
117
117
  "button",
118
118
  {
119
- ref: f,
120
- "aria-controls": m ? u : void 0,
121
- "aria-expanded": m,
119
+ ref: x,
120
+ "aria-controls": c ? u : void 0,
121
+ "aria-expanded": c,
122
122
  "aria-haspopup": "listbox",
123
- className: w(B({ variant: e }), o),
123
+ className: f(A({ variant: e }), o),
124
124
  "data-hook": a,
125
- "data-placeholder": l,
125
+ "data-placeholder": b,
126
126
  "data-slot": "combobox-trigger",
127
- "data-state": m ? "open" : "closed",
127
+ "data-state": c ? "open" : "closed",
128
128
  "data-tracking-el": r || "combobox-trigger",
129
129
  "data-tracking-label": s,
130
- disabled: b || d.disabled,
130
+ disabled: l || i.disabled,
131
131
  role: "combobox",
132
132
  type: "button",
133
- ...d,
133
+ ...i,
134
134
  children: [
135
- i,
135
+ d,
136
136
  /* @__PURE__ */ n(
137
- z,
137
+ P,
138
138
  {
139
139
  "aria-hidden": "true",
140
- className: "text-muted-foreground ml-auto size-4 shrink-0"
140
+ className: "text-muted-foreground ml-auto shrink-0",
141
+ size: 16
141
142
  }
142
143
  )
143
144
  ]
@@ -145,13 +146,13 @@ const B = G(
145
146
  ) });
146
147
  }
147
148
  );
148
- J.displayName = "ComboboxTrigger";
149
- function co({ placeholder: o, className: e }) {
149
+ B.displayName = "ComboboxTrigger";
150
+ function io({ placeholder: o, className: e }) {
150
151
  const { value: a, itemLabels: r } = y(), s = a ? r.get(a) || a : o;
151
152
  return /* @__PURE__ */ n(
152
153
  "span",
153
154
  {
154
- className: w(
155
+ className: f(
155
156
  "text-foreground overflow-hidden text-sm leading-normal font-medium text-ellipsis whitespace-nowrap",
156
157
  e
157
158
  ),
@@ -164,37 +165,42 @@ function mo({
164
165
  dataHook: o,
165
166
  className: e,
166
167
  children: a,
167
- align: r = "start"
168
+ align: r = "start",
169
+ hideList: s = !1
168
170
  }) {
169
- const { shouldFilter: s } = y();
171
+ const { shouldFilter: d } = y();
170
172
  return /* @__PURE__ */ n(
171
- $,
173
+ G,
172
174
  {
173
175
  align: r,
174
- className: w("w-[var(--radix-popover-trigger-width)] p-0", e),
176
+ className: f("w-[var(--radix-popover-trigger-width)] p-0", e),
175
177
  "data-slot": "combobox-popover",
178
+ side: "bottom",
176
179
  children: /* @__PURE__ */ n(
177
- F,
180
+ $,
178
181
  {
179
- className: "border-0 shadow-none",
182
+ className: f(
183
+ "border-0 shadow-none",
184
+ s && "[&_[data-slot='command-input-wrapper']]:border-b-0"
185
+ ),
180
186
  "data-slot": "combobox-command",
181
187
  dataHook: o || "combobox-command",
182
- shouldFilter: s,
188
+ shouldFilter: d,
183
189
  children: a
184
190
  }
185
191
  )
186
192
  }
187
193
  );
188
194
  }
189
- const K = t.forwardRef((o, e) => /* @__PURE__ */ n(O, { ref: e, "data-slot": "combobox-input", ...o }));
190
- K.displayName = "ComboboxInput";
191
- const Q = t.forwardRef((o, e) => /* @__PURE__ */ n(D, { ref: e, "data-slot": "combobox-list", ...o }));
192
- Q.displayName = "ComboboxList";
193
- const W = t.forwardRef((o, e) => /* @__PURE__ */ n(H, { ref: e, "data-slot": "combobox-empty", ...o }));
194
- W.displayName = "ComboboxEmpty";
195
- const X = t.forwardRef((o, e) => /* @__PURE__ */ n(V, { ref: e, "data-slot": "combobox-group", ...o }));
196
- X.displayName = "ComboboxGroup";
197
- function Y(o, e, a) {
195
+ const J = t.forwardRef((o, e) => /* @__PURE__ */ n(D, { ref: e, "data-slot": "combobox-input", ...o }));
196
+ J.displayName = "ComboboxInput";
197
+ const K = t.forwardRef((o, e) => /* @__PURE__ */ n(V, { ref: e, "data-slot": "combobox-list", ...o }));
198
+ K.displayName = "ComboboxList";
199
+ const Q = t.forwardRef((o, e) => /* @__PURE__ */ n(F, { ref: e, "data-slot": "combobox-empty", ...o }));
200
+ Q.displayName = "ComboboxEmpty";
201
+ const W = t.forwardRef((o, e) => /* @__PURE__ */ n(O, { ref: e, "data-slot": "combobox-group", ...o }));
202
+ W.displayName = "ComboboxGroup";
203
+ function X(o, e, a) {
198
204
  if (!e || !e.trim())
199
205
  return o;
200
206
  const r = new RegExp(
@@ -202,50 +208,51 @@ function Y(o, e, a) {
202
208
  "gi"
203
209
  ), s = o.split(r);
204
210
  return /* @__PURE__ */ n("span", { children: s.map(
205
- (i, d) => d % 2 === 1 ? /* @__PURE__ */ n("span", { className: a, children: i }, d) : /* @__PURE__ */ n(t.Fragment, { children: i }, d)
211
+ (d, i) => i % 2 === 1 ? /* @__PURE__ */ n("span", { className: a, children: d }, i) : /* @__PURE__ */ n(t.Fragment, { children: d }, i)
206
212
  ) });
207
213
  }
208
- const Z = t.forwardRef(
214
+ const Y = t.forwardRef(
209
215
  ({
210
216
  value: o,
211
217
  label: e,
212
218
  dataHook: a,
213
219
  children: r,
214
220
  className: s,
215
- highlight: i,
216
- highlightClassName: d,
217
- ...f
218
- }, m) => {
219
- const { value: b, onValueChange: x, setOpen: u, registerItem: l } = y(), g = b === o, p = t.useMemo(() => e || (typeof r == "string" ? r : typeof r == "number" ? String(r) : o), [e, r, o]), C = t.useRef(l);
221
+ highlight: d,
222
+ highlightClassName: i,
223
+ ...x
224
+ }, c) => {
225
+ const { value: l, onValueChange: g, setOpen: u, registerItem: b } = y(), C = l === o, p = t.useMemo(() => e || (typeof r == "string" ? r : typeof r == "number" ? String(r) : o), [e, r, o]), v = t.useRef(b);
220
226
  t.useEffect(() => {
221
- C.current = l;
222
- }, [l]), t.useEffect(() => {
223
- C.current(o, p);
227
+ v.current = b;
228
+ }, [b]), t.useEffect(() => {
229
+ v.current(o, p);
224
230
  }, [o, p]);
225
- const v = () => {
226
- x(o === b ? "" : o), u(!1);
227
- }, h = () => i && typeof r == "string" ? Y(
231
+ const h = () => {
232
+ g(o === l ? "" : o), u(!1);
233
+ }, w = () => d && typeof r == "string" ? X(
228
234
  r,
229
- i,
230
- d || "text-sm leading-normal font-semibold"
235
+ d,
236
+ i || "text-sm leading-normal font-semibold"
231
237
  ) : r;
232
238
  return /* @__PURE__ */ I(
233
- q,
239
+ H,
234
240
  {
235
- ref: m,
236
- className: w("justify-between", s),
241
+ ref: c,
242
+ className: f("justify-between", s),
237
243
  "data-slot": "combobox-item",
238
244
  dataHook: a,
239
245
  value: o,
240
- onSelect: v,
241
- ...f,
246
+ onSelect: h,
247
+ ...x,
242
248
  children: [
243
- h(),
244
- g && /* @__PURE__ */ n(
245
- P,
249
+ w(),
250
+ C && /* @__PURE__ */ n(
251
+ z,
246
252
  {
247
253
  "aria-hidden": "true",
248
- className: "text-muted-foreground size-4 shrink-0"
254
+ className: "text-muted-foreground shrink-0",
255
+ size: 16
249
256
  }
250
257
  )
251
258
  ]
@@ -253,35 +260,41 @@ const Z = t.forwardRef(
253
260
  );
254
261
  }
255
262
  );
256
- Z.displayName = "ComboboxItem";
257
- const oo = t.forwardRef((o, e) => /* @__PURE__ */ n(A, { ref: e, "data-slot": "combobox-separator", ...o }));
258
- oo.displayName = "ComboboxSeparator";
259
- function lo({ className: o, children: e }) {
263
+ Y.displayName = "ComboboxItem";
264
+ const Z = t.forwardRef((o, e) => /* @__PURE__ */ n(q, { ref: e, "data-slot": "combobox-separator", ...o }));
265
+ Z.displayName = "ComboboxSeparator";
266
+ function co({ className: o, children: e }) {
260
267
  return /* @__PURE__ */ n(
261
268
  "div",
262
269
  {
263
- className: w(
270
+ className: f(
264
271
  "text-muted-foreground flex items-center justify-center gap-2 py-6 text-sm",
265
272
  o
266
273
  ),
267
274
  "data-slot": "combobox-loading",
268
275
  children: e || /* @__PURE__ */ I(j, { children: [
269
- /* @__PURE__ */ n(M, { "aria-hidden": "true", className: "size-4 animate-spin" }),
276
+ /* @__PURE__ */ n(
277
+ "div",
278
+ {
279
+ "aria-hidden": "true",
280
+ className: "size-4 animate-spin rounded-full border-2 border-current border-t-transparent [animation-duration:0.6s]"
281
+ }
282
+ ),
270
283
  "Loading..."
271
284
  ] })
272
285
  }
273
286
  );
274
287
  }
275
288
  export {
276
- io as Combobox,
289
+ so as Combobox,
277
290
  mo as ComboboxContent,
278
- W as ComboboxEmpty,
279
- X as ComboboxGroup,
280
- K as ComboboxInput,
281
- Z as ComboboxItem,
282
- Q as ComboboxList,
283
- lo as ComboboxLoading,
284
- oo as ComboboxSeparator,
285
- J as ComboboxTrigger,
286
- co as ComboboxValue
291
+ Q as ComboboxEmpty,
292
+ W as ComboboxGroup,
293
+ J as ComboboxInput,
294
+ Y as ComboboxItem,
295
+ K as ComboboxList,
296
+ co as ComboboxLoading,
297
+ Z as ComboboxSeparator,
298
+ B as ComboboxTrigger,
299
+ io as ComboboxValue
287
300
  };
package/dist/command.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),z=require("react"),m=require("cmdk"),f=require("@brightlocal/icons"),O=require("@brightlocal/ui-components/button"),c=require("@brightlocal/ui-components/lib/utils");function E(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const o=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,o.get?o:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const d=E(z),C=d.forwardRef(({className:e,dataHook:t,trackingEl:a,trackingLabel:o,...r},s)=>n.jsx(m.Command,{ref:s,className:c.cn("bg-popover text-popover-foreground flex w-full flex-col overflow-hidden rounded-lg border shadow-md",e),"data-hook":t,"data-slot":"command","data-tracking-el":a,"data-tracking-label":o,...r}));C.displayName="Command";const b=d.forwardRef(({className:e,dataHook:t,trackingEl:a,trackingLabel:o,value:r,onValueChange:s,onClear:l,...i},S)=>{const u=d.useRef(null),[I,g]=d.useState("");d.useImperativeHandle(S,()=>u.current,[]);const p=r!==void 0,x=p?r:I,R=String(x).length>0,_=h=>{p||g(h),s?.(h)},q=()=>{p||g(""),s?.(""),l?.(),u.current?.focus()};return n.jsxs("div",{className:"border-base-border flex h-12 items-center gap-2 self-stretch border-b px-3","data-hook":t,"data-slot":"command-input-wrapper",children:[n.jsx(f.SearchIcon,{className:"size-4 shrink-0 opacity-50"}),n.jsx(m.Command.Input,{ref:u,className:c.cn("placeholder:text-muted-foreground flex w-full bg-transparent text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),"data-slot":"command-input","data-tracking-el":a,"data-tracking-label":o,value:x,onValueChange:_,...i}),R&&n.jsx(O.Button,{"aria-label":"Clear search",className:"text-muted-foreground hover:text-foreground",dataHook:"command-input-clear",variant:"ghost",onClick:q,children:n.jsx(f.XIcon,{className:"size-4"})})]})});b.displayName="CommandInput";const k=d.forwardRef(({className:e,dataHook:t,...a},o)=>n.jsx(m.Command.List,{ref:o,className:c.cn("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),"data-hook":t,"data-slot":"command-list",...a}));k.displayName="CommandList";const y=d.forwardRef(({dataHook:e,...t},a)=>n.jsx(m.Command.Empty,{ref:a,className:"py-6 text-center text-sm","data-hook":e,"data-slot":"command-empty",...t}));y.displayName="CommandEmpty";const v=d.forwardRef(({className:e,dataHook:t,...a},o)=>n.jsx(m.Command.Group,{ref:o,className:c.cn("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden px-2 py-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),"data-hook":t,"data-slot":"command-group",...a}));v.displayName="CommandGroup";const N=d.forwardRef(({className:e,dataHook:t,...a},o)=>n.jsx(m.Command.Separator,{ref:o,className:c.cn("bg-border -mx-1 h-px",e),"data-hook":t,"data-slot":"command-separator",...a}));N.displayName="CommandSeparator";const j=d.forwardRef(({className:e,dataHook:t,trackingEl:a,trackingLabel:o,selected:r,children:s,...l},i)=>n.jsxs(m.Command.Item,{ref:i,className:c.cn("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground data-[disabled=true]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-3 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),"data-hook":t,"data-selected-item":r||void 0,"data-slot":"command-item","data-tracking-el":a,"data-tracking-label":o,...l,children:[s,r&&n.jsx(f.CheckIcon,{className:"text-foreground ml-auto size-4"})]}));j.displayName="CommandItem";const w=d.forwardRef(({className:e,dataHook:t,trackingEl:a,trackingLabel:o,...r},s)=>n.jsx("span",{ref:s,className:c.cn("text-muted-foreground ml-auto text-xs tracking-widest",e),"data-hook":t,"data-slot":"command-shortcut","data-tracking-el":a,"data-tracking-label":o,...r}));w.displayName="CommandShortcut";exports.Command=C;exports.CommandEmpty=y;exports.CommandGroup=v;exports.CommandInput=b;exports.CommandItem=j;exports.CommandList=k;exports.CommandSeparator=N;exports.CommandShortcut=w;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),z=require("react"),m=require("cmdk"),f=require("@brightlocal/icons"),O=require("@brightlocal/ui-components/button"),c=require("@brightlocal/ui-components/lib/utils");function E(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const o=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,o.get?o:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const d=E(z),C=d.forwardRef(({className:e,dataHook:t,trackingEl:a,trackingLabel:o,...r},s)=>n.jsx(m.Command,{ref:s,className:c.cn("bg-popover text-popover-foreground flex w-full flex-col overflow-hidden rounded-lg border shadow-md",e),"data-hook":t,"data-slot":"command","data-tracking-el":a,"data-tracking-label":o,...r}));C.displayName="Command";const b=d.forwardRef(({className:e,dataHook:t,trackingEl:a,trackingLabel:o,value:r,onValueChange:s,onClear:l,...i},S)=>{const u=d.useRef(null),[I,g]=d.useState("");d.useImperativeHandle(S,()=>u.current,[]);const p=r!==void 0,x=p?r:I,R=String(x).length>0,_=h=>{p||g(h),s?.(h)},q=()=>{p||g(""),s?.(""),l?.(),u.current?.focus()};return n.jsxs("div",{className:"border-base-border flex h-12 items-center gap-2 self-stretch border-b px-3","data-hook":t,"data-slot":"command-input-wrapper",children:[n.jsx(f.SearchIcon,{className:"shrink-0 opacity-50",size:16}),n.jsx(m.Command.Input,{ref:u,className:c.cn("placeholder:text-muted-foreground flex w-full bg-transparent text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),"data-slot":"command-input","data-tracking-el":a,"data-tracking-label":o,value:x,onValueChange:_,...i}),R&&n.jsx(O.Button,{"aria-label":"Clear search",className:"text-muted-foreground hover:text-foreground",dataHook:"command-input-clear",variant:"ghost",onClick:q,children:n.jsx(f.XIcon,{size:16})})]})});b.displayName="CommandInput";const k=d.forwardRef(({className:e,dataHook:t,...a},o)=>n.jsx(m.Command.List,{ref:o,className:c.cn("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),"data-hook":t,"data-slot":"command-list",...a}));k.displayName="CommandList";const y=d.forwardRef(({dataHook:e,...t},a)=>n.jsx(m.Command.Empty,{ref:a,className:"py-6 text-center text-sm","data-hook":e,"data-slot":"command-empty",...t}));y.displayName="CommandEmpty";const v=d.forwardRef(({className:e,dataHook:t,...a},o)=>n.jsx(m.Command.Group,{ref:o,className:c.cn("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden px-2 py-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),"data-hook":t,"data-slot":"command-group",...a}));v.displayName="CommandGroup";const N=d.forwardRef(({className:e,dataHook:t,...a},o)=>n.jsx(m.Command.Separator,{ref:o,className:c.cn("bg-border -mx-1 h-px",e),"data-hook":t,"data-slot":"command-separator",...a}));N.displayName="CommandSeparator";const j=d.forwardRef(({className:e,dataHook:t,trackingEl:a,trackingLabel:o,selected:r,children:s,...l},i)=>n.jsxs(m.Command.Item,{ref:i,className:c.cn("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground data-[disabled=true]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-3 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),"data-hook":t,"data-selected-item":r||void 0,"data-slot":"command-item","data-tracking-el":a,"data-tracking-label":o,...l,children:[s,r&&n.jsx(f.CheckIcon,{className:"text-foreground ml-auto",size:16})]}));j.displayName="CommandItem";const w=d.forwardRef(({className:e,dataHook:t,trackingEl:a,trackingLabel:o,...r},s)=>n.jsx("span",{ref:s,className:c.cn("text-muted-foreground ml-auto text-xs tracking-widest",e),"data-hook":t,"data-slot":"command-shortcut","data-tracking-el":a,"data-tracking-label":o,...r}));w.displayName="CommandShortcut";exports.Command=C;exports.CommandEmpty=y;exports.CommandGroup=v;exports.CommandInput=b;exports.CommandItem=j;exports.CommandList=k;exports.CommandSeparator=N;exports.CommandShortcut=w;
package/dist/command.js CHANGED
@@ -45,7 +45,7 @@ const S = r.forwardRef(
45
45
  "data-hook": e,
46
46
  "data-slot": "command-input-wrapper",
47
47
  children: [
48
- /* @__PURE__ */ d(N, { className: "size-4 shrink-0 opacity-50" }),
48
+ /* @__PURE__ */ d(N, { className: "shrink-0 opacity-50", size: 16 }),
49
49
  /* @__PURE__ */ d(
50
50
  s.Input,
51
51
  {
@@ -70,7 +70,7 @@ const S = r.forwardRef(
70
70
  dataHook: "command-input-clear",
71
71
  variant: "ghost",
72
72
  onClick: y,
73
- children: /* @__PURE__ */ d(w, { className: "size-4" })
73
+ children: /* @__PURE__ */ d(w, { size: 16 })
74
74
  }
75
75
  )
76
76
  ]
@@ -154,7 +154,7 @@ const j = r.forwardRef(
154
154
  ...c,
155
155
  children: [
156
156
  m,
157
- n && /* @__PURE__ */ d(I, { className: "text-foreground ml-auto size-4" })
157
+ n && /* @__PURE__ */ d(I, { className: "text-foreground ml-auto", size: 16 })
158
158
  ]
159
159
  }
160
160
  )
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),I=require("react"),z=require("@radix-ui/react-context-menu"),m=require("@brightlocal/icons"),d=require("@brightlocal/ui-components/lib/utils");function x(e){const n=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(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const s=x(I),a=x(z);function p({...e}){return o.jsx(a.Root,{"data-slot":"context-menu",...e})}p.displayName="ContextMenu";const f=s.forwardRef(({dataHook:e,...n},t)=>o.jsx(a.Trigger,{ref:t,"data-hook":e,"data-slot":"context-menu-trigger",...n}));f.displayName="ContextMenuTrigger";function b({...e}){return o.jsx(a.Group,{"data-slot":"context-menu-group",...e})}b.displayName="ContextMenuGroup";function g({...e}){return o.jsx(a.Portal,{"data-slot":"context-menu-portal",...e})}g.displayName="ContextMenuPortal";function C({...e}){return o.jsx(a.Sub,{"data-slot":"context-menu-sub",...e})}C.displayName="ContextMenuSub";function M({...e}){return o.jsx(a.RadioGroup,{"data-slot":"context-menu-radio-group",...e})}M.displayName="ContextMenuRadioGroup";const h=s.forwardRef(({className:e,inset:n,children:t,dataHook:r,trackingEl:u,trackingLabel:i,...c},l)=>o.jsxs(a.SubTrigger,{ref:l,className:d.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none",n&&"pl-8",e),"data-hook":r,"data-slot":"context-menu-sub-trigger","data-tracking-el":u,"data-tracking-label":i,...c,children:[t,o.jsx(m.ChevronRight,{className:"ml-auto size-4"})]}));h.displayName="ContextMenuSubTrigger";const j=s.forwardRef(({className:e,...n},t)=>o.jsx(a.SubContent,{ref:t,className:d.cn("border-border bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md",e),"data-slot":"context-menu-sub-content",...n}));j.displayName="ContextMenuSubContent";const y=s.forwardRef(({className:e,...n},t)=>o.jsx(a.Portal,{children:o.jsx(a.Content,{ref:t,className:d.cn("border-border bg-popover text-popover-foreground animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md",e),"data-slot":"context-menu-content",...n})}));y.displayName="ContextMenuContent";const N=s.forwardRef(({className:e,inset:n,dataHook:t,trackingEl:r,trackingLabel:u,...i},c)=>o.jsx(a.Item,{ref:c,className:d.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n&&"pl-8",e),"data-hook":t,"data-slot":"context-menu-item","data-tracking-el":r,"data-tracking-label":u,...i}));N.displayName="ContextMenuItem";const R=s.forwardRef(({className:e,children:n,checked:t,dataHook:r,trackingEl:u,trackingLabel:i,...c},l)=>o.jsxs(a.CheckboxItem,{ref:l,checked:t,className:d.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),"data-hook":r,"data-slot":"context-menu-checkbox-item","data-tracking-el":u,"data-tracking-label":i,...c,children:[o.jsx("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:o.jsx(a.ItemIndicator,{children:o.jsx(m.Check,{className:"size-4"})})}),n]}));R.displayName="ContextMenuCheckboxItem";const S=s.forwardRef(({className:e,children:n,dataHook:t,trackingEl:r,trackingLabel:u,...i},c)=>o.jsxs(a.RadioItem,{ref:c,className:d.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),"data-hook":t,"data-slot":"context-menu-radio-item","data-tracking-el":r,"data-tracking-label":u,...i,children:[o.jsx("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:o.jsx(a.ItemIndicator,{children:o.jsx(m.Circle,{className:"size-2 fill-current"})})}),n]}));S.displayName="ContextMenuRadioItem";const k=s.forwardRef(({className:e,inset:n,...t},r)=>o.jsx(a.Label,{ref:r,className:d.cn("text-foreground px-2 py-1.5 text-sm font-semibold",n&&"pl-8",e),"data-slot":"context-menu-label",...t}));k.displayName="ContextMenuLabel";const w=s.forwardRef(({className:e,...n},t)=>o.jsx(a.Separator,{ref:t,className:d.cn("bg-border -mx-1 my-1 h-px",e),"data-slot":"context-menu-separator",...n}));w.displayName="ContextMenuSeparator";const v=s.forwardRef(({className:e,...n},t)=>o.jsx("span",{ref:t,className:d.cn("text-muted-foreground ml-auto text-xs tracking-widest",e),"data-slot":"context-menu-shortcut",...n}));v.displayName="ContextMenuShortcut";exports.ContextMenu=p;exports.ContextMenuCheckboxItem=R;exports.ContextMenuContent=y;exports.ContextMenuGroup=b;exports.ContextMenuItem=N;exports.ContextMenuLabel=k;exports.ContextMenuPortal=g;exports.ContextMenuRadioGroup=M;exports.ContextMenuRadioItem=S;exports.ContextMenuSeparator=w;exports.ContextMenuShortcut=v;exports.ContextMenuSub=C;exports.ContextMenuSubContent=j;exports.ContextMenuSubTrigger=h;exports.ContextMenuTrigger=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),I=require("react"),z=require("@radix-ui/react-context-menu"),m=require("@brightlocal/icons"),d=require("@brightlocal/ui-components/lib/utils");function x(e){const n=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(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const s=x(I),a=x(z);function p({...e}){return o.jsx(a.Root,{"data-slot":"context-menu",...e})}p.displayName="ContextMenu";const f=s.forwardRef(({dataHook:e,...n},t)=>o.jsx(a.Trigger,{ref:t,"data-hook":e,"data-slot":"context-menu-trigger",...n}));f.displayName="ContextMenuTrigger";function b({...e}){return o.jsx(a.Group,{"data-slot":"context-menu-group",...e})}b.displayName="ContextMenuGroup";function g({...e}){return o.jsx(a.Portal,{"data-slot":"context-menu-portal",...e})}g.displayName="ContextMenuPortal";function C({...e}){return o.jsx(a.Sub,{"data-slot":"context-menu-sub",...e})}C.displayName="ContextMenuSub";function M({...e}){return o.jsx(a.RadioGroup,{"data-slot":"context-menu-radio-group",...e})}M.displayName="ContextMenuRadioGroup";const h=s.forwardRef(({className:e,inset:n,children:t,dataHook:r,trackingEl:u,trackingLabel:i,...c},l)=>o.jsxs(a.SubTrigger,{ref:l,className:d.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none",n&&"pl-8",e),"data-hook":r,"data-slot":"context-menu-sub-trigger","data-tracking-el":u,"data-tracking-label":i,...c,children:[t,o.jsx(m.ChevronRight,{className:"ml-auto",size:16})]}));h.displayName="ContextMenuSubTrigger";const j=s.forwardRef(({className:e,...n},t)=>o.jsx(a.SubContent,{ref:t,className:d.cn("border-border bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md",e),"data-slot":"context-menu-sub-content",...n}));j.displayName="ContextMenuSubContent";const y=s.forwardRef(({className:e,...n},t)=>o.jsx(a.Portal,{children:o.jsx(a.Content,{ref:t,className:d.cn("border-border bg-popover text-popover-foreground animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md",e),"data-slot":"context-menu-content",...n})}));y.displayName="ContextMenuContent";const N=s.forwardRef(({className:e,inset:n,dataHook:t,trackingEl:r,trackingLabel:u,...i},c)=>o.jsx(a.Item,{ref:c,className:d.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n&&"pl-8",e),"data-hook":t,"data-slot":"context-menu-item","data-tracking-el":r,"data-tracking-label":u,...i}));N.displayName="ContextMenuItem";const R=s.forwardRef(({className:e,children:n,checked:t,dataHook:r,trackingEl:u,trackingLabel:i,...c},l)=>o.jsxs(a.CheckboxItem,{ref:l,checked:t,className:d.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),"data-hook":r,"data-slot":"context-menu-checkbox-item","data-tracking-el":u,"data-tracking-label":i,...c,children:[o.jsx("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:o.jsx(a.ItemIndicator,{children:o.jsx(m.Check,{size:16})})}),n]}));R.displayName="ContextMenuCheckboxItem";const S=s.forwardRef(({className:e,children:n,dataHook:t,trackingEl:r,trackingLabel:u,...i},c)=>o.jsxs(a.RadioItem,{ref:c,className:d.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),"data-hook":t,"data-slot":"context-menu-radio-item","data-tracking-el":r,"data-tracking-label":u,...i,children:[o.jsx("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:o.jsx(a.ItemIndicator,{children:o.jsx(m.Circle,{className:"fill-current",size:8})})}),n]}));S.displayName="ContextMenuRadioItem";const k=s.forwardRef(({className:e,inset:n,...t},r)=>o.jsx(a.Label,{ref:r,className:d.cn("text-foreground px-2 py-1.5 text-sm font-semibold",n&&"pl-8",e),"data-slot":"context-menu-label",...t}));k.displayName="ContextMenuLabel";const w=s.forwardRef(({className:e,...n},t)=>o.jsx(a.Separator,{ref:t,className:d.cn("bg-border -mx-1 my-1 h-px",e),"data-slot":"context-menu-separator",...n}));w.displayName="ContextMenuSeparator";const v=s.forwardRef(({className:e,...n},t)=>o.jsx("span",{ref:t,className:d.cn("text-muted-foreground ml-auto text-xs tracking-widest",e),"data-slot":"context-menu-shortcut",...n}));v.displayName="ContextMenuShortcut";exports.ContextMenu=p;exports.ContextMenuCheckboxItem=R;exports.ContextMenuContent=y;exports.ContextMenuGroup=b;exports.ContextMenuItem=N;exports.ContextMenuLabel=k;exports.ContextMenuPortal=g;exports.ContextMenuRadioGroup=M;exports.ContextMenuRadioItem=S;exports.ContextMenuSeparator=w;exports.ContextMenuShortcut=v;exports.ContextMenuSub=C;exports.ContextMenuSubContent=j;exports.ContextMenuSubTrigger=h;exports.ContextMenuTrigger=f;
@@ -64,7 +64,7 @@ const y = r.forwardRef(
64
64
  ...c,
65
65
  children: [
66
66
  o,
67
- /* @__PURE__ */ t(x, { className: "ml-auto size-4" })
67
+ /* @__PURE__ */ t(x, { className: "ml-auto", size: 16 })
68
68
  ]
69
69
  }
70
70
  )
@@ -139,7 +139,7 @@ const v = r.forwardRef(
139
139
  "data-tracking-label": l,
140
140
  ...c,
141
141
  children: [
142
- /* @__PURE__ */ t("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(n.ItemIndicator, { children: /* @__PURE__ */ t(p, { className: "size-4" }) }) }),
142
+ /* @__PURE__ */ t("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(n.ItemIndicator, { children: /* @__PURE__ */ t(p, { size: 16 }) }) }),
143
143
  a
144
144
  ]
145
145
  }
@@ -161,7 +161,7 @@ const S = r.forwardRef(
161
161
  "data-tracking-label": i,
162
162
  ...l,
163
163
  children: [
164
- /* @__PURE__ */ t("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(n.ItemIndicator, { children: /* @__PURE__ */ t(f, { className: "size-2 fill-current" }) }) }),
164
+ /* @__PURE__ */ t("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(n.ItemIndicator, { children: /* @__PURE__ */ t(f, { className: "fill-current", size: 8 }) }) }),
165
165
  a
166
166
  ]
167
167
  }
@@ -5,7 +5,7 @@ import { Calendar as V } from "@brightlocal/icons";
5
5
  import { cn as p } from "@brightlocal/ui-components/lib/utils";
6
6
  import { inputVariants as R } from "./input.js";
7
7
  import { Calendar as S } from "@brightlocal/ui-components/calendar";
8
- import { Popover as H, PopoverTrigger as E, PopoverContent as M } from "@brightlocal/ui-components/popover";
8
+ import { PopoverContent as H, Popover as E, PopoverTrigger as M } from "@brightlocal/ui-components/popover";
9
9
  import { Select as I, SelectTrigger as L, SelectValue as j, SelectContent as O, SelectItem as _ } from "@brightlocal/ui-components/select";
10
10
  const x = f.createContext(
11
11
  null
@@ -72,12 +72,12 @@ function A({
72
72
  l
73
73
  ]
74
74
  );
75
- return /* @__PURE__ */ n(x.Provider, { value: T, children: /* @__PURE__ */ n(H, { open: b, onOpenChange: C, children: e }) });
75
+ return /* @__PURE__ */ n(x.Provider, { value: T, children: /* @__PURE__ */ n(E, { open: b, onOpenChange: C, children: e }) });
76
76
  }
77
77
  A.displayName = "DatePickerRoot";
78
78
  const F = f.forwardRef(({ className: e, children: c, id: r, ...l }, a) => {
79
79
  const { mode: d, date: u, dateRange: o, dateFormat: s, placeholder: t, disabled: i, dataHook: m } = k(), D = d === "single" ? u ? P(u, s) : null : o?.from ? o.to ? `${P(o.from, s)} - ${P(o.to, s)}` : P(o.from, s) : null, g = D !== null;
80
- return /* @__PURE__ */ n(E, { asChild: !0, children: /* @__PURE__ */ v(
80
+ return /* @__PURE__ */ n(M, { asChild: !0, children: /* @__PURE__ */ v(
81
81
  "button",
82
82
  {
83
83
  ref: a,
@@ -114,7 +114,7 @@ F.displayName = "DatePickerTrigger";
114
114
  const U = f.forwardRef(({ className: e, children: c, ...r }, l) => {
115
115
  const { dataHook: a } = k();
116
116
  return /* @__PURE__ */ n(
117
- M,
117
+ H,
118
118
  {
119
119
  ref: l,
120
120
  align: "start",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),T=require("react"),P=require("@radix-ui/react-dropdown-menu"),p=require("@brightlocal/icons"),l=require("@brightlocal/ui-components/lib/utils");function m(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const u=m(T),r=m(P);function g({...e}){return o.jsx(r.Root,{...e})}g.displayName="DropdownMenu";function f({...e}){return o.jsx(r.Portal,{...e})}f.displayName="DropdownMenuPortal";const w=u.forwardRef(({className:e,dataHook:t,trackingEl:n,trackingLabel:a,...s},d)=>o.jsx(r.Trigger,{ref:d,className:e,"data-hook":t,"data-slot":"dropdown-menu-trigger","data-tracking-el":n,"data-tracking-label":a,...s}));w.displayName="DropdownMenuTrigger";const x=u.forwardRef(({className:e,sideOffset:t=4,align:n="start",dataHook:a,trackingEl:s,trackingLabel:d,...i},c)=>o.jsx(r.Portal,{children:o.jsx(r.Content,{ref:c,align:n,className:l.cn(["bg-popover text-popover-foreground","z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem]","origin-(--radix-dropdown-menu-content-transform-origin)","overflow-x-hidden overflow-y-auto","rounded-md border p-1 shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2","data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2","data-[side=top]:slide-in-from-bottom-2"],e),"data-hook":a,"data-slot":"dropdown-menu-content","data-tracking-el":s,"data-tracking-label":d,sideOffset:t,...i})}));x.displayName="DropdownMenuContent";function b({...e}){return o.jsx(r.Group,{...e})}b.displayName="DropdownMenuGroup";const h=u.forwardRef(({className:e,inset:t,dataHook:n,trackingEl:a,trackingLabel:s,...d},i)=>o.jsx(r.Item,{ref:i,className:l.cn(["relative flex cursor-default items-center gap-2 self-stretch select-none","rounded-sm px-2 py-1.5 text-sm leading-normal outline-hidden","[&>span]:overflow-hidden [&>span]:text-ellipsis [&>span]:whitespace-nowrap","focus:bg-accent focus:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","data-[inset]:pl-8","[&_svg]:pointer-events-none [&_svg]:shrink-0","[&_svg:not([class*='size-'])]:size-4","[&_svg:not([class*='text-'])]:text-muted-foreground"],e),"data-hook":n,"data-inset":t,"data-slot":"dropdown-menu-item","data-tracking-el":a,"data-tracking-label":s,...d}));h.displayName="DropdownMenuItem";const v=u.forwardRef(({className:e,children:t,checked:n,dataHook:a,trackingEl:s,trackingLabel:d,...i},c)=>o.jsxs(r.CheckboxItem,{ref:c,checked:n,className:l.cn(["relative flex cursor-default items-center gap-2 select-none","rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden","focus:bg-accent focus:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","[&_svg]:pointer-events-none [&_svg]:shrink-0","[&_svg:not([class*='size-'])]:size-4"],e),"data-hook":a,"data-slot":"dropdown-menu-checkbox-item","data-tracking-el":s,"data-tracking-label":d,...i,children:[o.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:o.jsx(r.ItemIndicator,{children:o.jsx(p.Check,{className:"size-4"})})}),t]}));v.displayName="DropdownMenuCheckboxItem";function D({...e}){return o.jsx(r.RadioGroup,{...e})}D.displayName="DropdownMenuRadioGroup";const M=u.forwardRef(({className:e,children:t,dataHook:n,trackingEl:a,trackingLabel:s,...d},i)=>o.jsxs(r.RadioItem,{ref:i,className:l.cn(["relative flex cursor-default items-center gap-2 select-none","rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden","focus:bg-accent focus:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","[&_svg]:pointer-events-none [&_svg]:shrink-0","[&_svg:not([class*='size-'])]:size-4"],e),"data-hook":n,"data-slot":"dropdown-menu-radio-item","data-tracking-el":a,"data-tracking-label":s,...d,children:[o.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:o.jsx(r.ItemIndicator,{children:o.jsx(p.Circle,{className:"size-2 fill-current"})})}),t]}));M.displayName="DropdownMenuRadioItem";const y=u.forwardRef(({className:e,inset:t,...n},a)=>o.jsx(r.Label,{ref:a,className:l.cn(["px-2 py-1.5 text-sm leading-normal font-semibold","data-[inset]:pl-8"],e),"data-inset":t,"data-slot":"dropdown-menu-label",...n}));y.displayName="DropdownMenuLabel";const j=u.forwardRef(({className:e,...t},n)=>o.jsx(r.Separator,{ref:n,className:l.cn(["bg-border -mx-1 my-1 h-px"],e),"data-slot":"dropdown-menu-separator",...t}));j.displayName="DropdownMenuSeparator";function N({className:e,...t}){return o.jsx("span",{className:l.cn(["text-popover-foreground ml-auto text-xs leading-normal opacity-60"],e),"data-slot":"dropdown-menu-shortcut",...t})}N.displayName="DropdownMenuShortcut";function k({...e}){return o.jsx(r.Sub,{...e})}k.displayName="DropdownMenuSub";const R=u.forwardRef(({className:e,inset:t,children:n,dataHook:a,trackingEl:s,trackingLabel:d,...i},c)=>o.jsxs(r.SubTrigger,{ref:c,className:l.cn(["flex cursor-default items-center gap-2 select-none","rounded-sm px-2 py-1.5 text-sm outline-hidden","focus:bg-accent focus:text-accent-foreground","data-[state=open]:bg-accent data-[state=open]:text-accent-foreground","data-[inset]:pl-8","[&_svg]:pointer-events-none [&_svg]:shrink-0","[&_svg:not([class*='size-'])]:size-4"],e),"data-hook":a,"data-inset":t,"data-slot":"dropdown-menu-sub-trigger","data-tracking-el":s,"data-tracking-label":d,...i,children:[n,o.jsx(p.ChevronRight,{className:"ml-auto size-4"})]}));R.displayName="DropdownMenuSubTrigger";const S=u.forwardRef(({className:e,...t},n)=>o.jsx(r.SubContent,{ref:n,className:l.cn(["bg-popover text-popover-foreground","z-50 min-w-[8rem]","origin-(--radix-dropdown-menu-content-transform-origin)","overflow-hidden rounded-md border p-1 shadow-lg","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2","data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2","data-[side=top]:slide-in-from-bottom-2"],e),"data-slot":"dropdown-menu-sub-content",...t}));S.displayName="DropdownMenuSubContent";const z=u.forwardRef(({className:e,dataHook:t,trackingEl:n,trackingLabel:a,avatar:s,title:d,description:i,disabled:c,ariaLabel:_,...C},I)=>o.jsxs(r.Trigger,{ref:I,"aria-label":_??d,className:l.cn(["flex items-center gap-2 rounded-lg border px-3 py-2","bg-popover shadow-sm","outline-none","hover:bg-accent","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","disabled:pointer-events-none disabled:opacity-50"],e),"data-hook":t,"data-slot":"dropdown-menu-trigger-avatar","data-tracking-el":n,"data-tracking-label":a,disabled:c,...C,children:[s,o.jsxs("div",{className:"flex min-w-0 flex-1 flex-col items-start",children:[o.jsx("span",{className:"w-full overflow-hidden text-sm leading-normal font-semibold text-ellipsis whitespace-nowrap",children:d}),i&&o.jsx("span",{className:"text-muted-foreground w-full overflow-hidden text-xs leading-normal text-ellipsis whitespace-nowrap",children:i})]}),o.jsx(p.ChevronsUpDown,{className:"text-muted-foreground size-4 opacity-50"})]}));z.displayName="DropdownMenuTriggerAvatar";exports.DropdownMenu=g;exports.DropdownMenuCheckboxItem=v;exports.DropdownMenuContent=x;exports.DropdownMenuGroup=b;exports.DropdownMenuItem=h;exports.DropdownMenuLabel=y;exports.DropdownMenuPortal=f;exports.DropdownMenuRadioGroup=D;exports.DropdownMenuRadioItem=M;exports.DropdownMenuSeparator=j;exports.DropdownMenuShortcut=N;exports.DropdownMenuSub=k;exports.DropdownMenuSubContent=S;exports.DropdownMenuSubTrigger=R;exports.DropdownMenuTrigger=w;exports.DropdownMenuTriggerAvatar=z;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),T=require("react"),P=require("@radix-ui/react-dropdown-menu"),p=require("@brightlocal/icons"),l=require("@brightlocal/ui-components/lib/utils");function m(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const u=m(T),r=m(P);function g({...e}){return o.jsx(r.Root,{...e})}g.displayName="DropdownMenu";function f({...e}){return o.jsx(r.Portal,{...e})}f.displayName="DropdownMenuPortal";const w=u.forwardRef(({className:e,dataHook:t,trackingEl:n,trackingLabel:a,...s},d)=>o.jsx(r.Trigger,{ref:d,className:e,"data-hook":t,"data-slot":"dropdown-menu-trigger","data-tracking-el":n,"data-tracking-label":a,...s}));w.displayName="DropdownMenuTrigger";const x=u.forwardRef(({className:e,sideOffset:t=4,align:n="start",dataHook:a,trackingEl:s,trackingLabel:d,...i},c)=>o.jsx(r.Portal,{children:o.jsx(r.Content,{ref:c,align:n,className:l.cn(["bg-popover text-popover-foreground","z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem]","origin-(--radix-dropdown-menu-content-transform-origin)","overflow-x-hidden overflow-y-auto","rounded-md border p-1 shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2","data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2","data-[side=top]:slide-in-from-bottom-2"],e),"data-hook":a,"data-slot":"dropdown-menu-content","data-tracking-el":s,"data-tracking-label":d,sideOffset:t,...i})}));x.displayName="DropdownMenuContent";function b({...e}){return o.jsx(r.Group,{...e})}b.displayName="DropdownMenuGroup";const h=u.forwardRef(({className:e,inset:t,dataHook:n,trackingEl:a,trackingLabel:s,...d},i)=>o.jsx(r.Item,{ref:i,className:l.cn(["relative flex cursor-default items-center gap-2 self-stretch select-none","rounded-sm px-2 py-1.5 text-sm leading-normal outline-hidden","[&>span]:overflow-hidden [&>span]:text-ellipsis [&>span]:whitespace-nowrap","focus:bg-accent focus:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","data-[inset]:pl-8","[&_svg]:pointer-events-none [&_svg]:shrink-0","[&_svg:not([class*='size-'])]:size-4","[&_svg:not([class*='text-'])]:text-muted-foreground"],e),"data-hook":n,"data-inset":t,"data-slot":"dropdown-menu-item","data-tracking-el":a,"data-tracking-label":s,...d}));h.displayName="DropdownMenuItem";const v=u.forwardRef(({className:e,children:t,checked:n,dataHook:a,trackingEl:s,trackingLabel:d,...i},c)=>o.jsxs(r.CheckboxItem,{ref:c,checked:n,className:l.cn(["relative flex cursor-default items-center gap-2 select-none","rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden","focus:bg-accent focus:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","[&_svg]:pointer-events-none [&_svg]:shrink-0","[&_svg:not([class*='size-'])]:size-4"],e),"data-hook":a,"data-slot":"dropdown-menu-checkbox-item","data-tracking-el":s,"data-tracking-label":d,...i,children:[o.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:o.jsx(r.ItemIndicator,{children:o.jsx(p.Check,{size:16})})}),t]}));v.displayName="DropdownMenuCheckboxItem";function D({...e}){return o.jsx(r.RadioGroup,{...e})}D.displayName="DropdownMenuRadioGroup";const M=u.forwardRef(({className:e,children:t,dataHook:n,trackingEl:a,trackingLabel:s,...d},i)=>o.jsxs(r.RadioItem,{ref:i,className:l.cn(["relative flex cursor-default items-center gap-2 select-none","rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden","focus:bg-accent focus:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","[&_svg]:pointer-events-none [&_svg]:shrink-0","[&_svg:not([class*='size-'])]:size-4"],e),"data-hook":n,"data-slot":"dropdown-menu-radio-item","data-tracking-el":a,"data-tracking-label":s,...d,children:[o.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:o.jsx(r.ItemIndicator,{children:o.jsx(p.Circle,{className:"fill-current",size:8})})}),t]}));M.displayName="DropdownMenuRadioItem";const y=u.forwardRef(({className:e,inset:t,...n},a)=>o.jsx(r.Label,{ref:a,className:l.cn(["px-2 py-1.5 text-sm leading-normal font-semibold","data-[inset]:pl-8"],e),"data-inset":t,"data-slot":"dropdown-menu-label",...n}));y.displayName="DropdownMenuLabel";const j=u.forwardRef(({className:e,...t},n)=>o.jsx(r.Separator,{ref:n,className:l.cn(["bg-border -mx-1 my-1 h-px"],e),"data-slot":"dropdown-menu-separator",...t}));j.displayName="DropdownMenuSeparator";function N({className:e,...t}){return o.jsx("span",{className:l.cn(["text-popover-foreground ml-auto text-xs leading-normal opacity-60"],e),"data-slot":"dropdown-menu-shortcut",...t})}N.displayName="DropdownMenuShortcut";function k({...e}){return o.jsx(r.Sub,{...e})}k.displayName="DropdownMenuSub";const R=u.forwardRef(({className:e,inset:t,children:n,dataHook:a,trackingEl:s,trackingLabel:d,...i},c)=>o.jsxs(r.SubTrigger,{ref:c,className:l.cn(["flex cursor-default items-center gap-2 select-none","rounded-sm px-2 py-1.5 text-sm outline-hidden","focus:bg-accent focus:text-accent-foreground","data-[state=open]:bg-accent data-[state=open]:text-accent-foreground","data-[inset]:pl-8","[&_svg]:pointer-events-none [&_svg]:shrink-0","[&_svg:not([class*='size-'])]:size-4"],e),"data-hook":a,"data-inset":t,"data-slot":"dropdown-menu-sub-trigger","data-tracking-el":s,"data-tracking-label":d,...i,children:[n,o.jsx(p.ChevronRight,{className:"ml-auto",size:16})]}));R.displayName="DropdownMenuSubTrigger";const S=u.forwardRef(({className:e,...t},n)=>o.jsx(r.SubContent,{ref:n,className:l.cn(["bg-popover text-popover-foreground","z-50 min-w-[8rem]","origin-(--radix-dropdown-menu-content-transform-origin)","overflow-hidden rounded-md border p-1 shadow-lg","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2","data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2","data-[side=top]:slide-in-from-bottom-2"],e),"data-slot":"dropdown-menu-sub-content",...t}));S.displayName="DropdownMenuSubContent";const z=u.forwardRef(({className:e,dataHook:t,trackingEl:n,trackingLabel:a,avatar:s,title:d,description:i,disabled:c,ariaLabel:_,...C},I)=>o.jsxs(r.Trigger,{ref:I,"aria-label":_??d,className:l.cn(["flex items-center gap-2 rounded-lg border px-3 py-2","bg-popover shadow-sm","outline-none","hover:bg-accent","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","disabled:pointer-events-none disabled:opacity-50"],e),"data-hook":t,"data-slot":"dropdown-menu-trigger-avatar","data-tracking-el":n,"data-tracking-label":a,disabled:c,...C,children:[s,o.jsxs("div",{className:"flex min-w-0 flex-1 flex-col items-start",children:[o.jsx("span",{className:"w-full overflow-hidden text-sm leading-normal font-semibold text-ellipsis whitespace-nowrap",children:d}),i&&o.jsx("span",{className:"text-muted-foreground w-full overflow-hidden text-xs leading-normal text-ellipsis whitespace-nowrap",children:i})]}),o.jsx(p.ChevronsUpDown,{className:"text-muted-foreground opacity-50",size:16})]}));z.displayName="DropdownMenuTriggerAvatar";exports.DropdownMenu=g;exports.DropdownMenuCheckboxItem=v;exports.DropdownMenuContent=x;exports.DropdownMenuGroup=b;exports.DropdownMenuItem=h;exports.DropdownMenuLabel=y;exports.DropdownMenuPortal=f;exports.DropdownMenuRadioGroup=D;exports.DropdownMenuRadioItem=M;exports.DropdownMenuSeparator=j;exports.DropdownMenuShortcut=N;exports.DropdownMenuSub=k;exports.DropdownMenuSubContent=S;exports.DropdownMenuSubTrigger=R;exports.DropdownMenuTrigger=w;exports.DropdownMenuTriggerAvatar=z;
@@ -9,13 +9,13 @@ function v({
9
9
  return /* @__PURE__ */ t(n.Root, { ...e });
10
10
  }
11
11
  v.displayName = "DropdownMenu";
12
- function N({
12
+ function D({
13
13
  ...e
14
14
  }) {
15
15
  return /* @__PURE__ */ t(n.Portal, { ...e });
16
16
  }
17
- N.displayName = "DropdownMenuPortal";
18
- const D = l.forwardRef(({ className: e, dataHook: o, trackingEl: a, trackingLabel: r, ...s }, d) => /* @__PURE__ */ t(
17
+ D.displayName = "DropdownMenuPortal";
18
+ const N = l.forwardRef(({ className: e, dataHook: o, trackingEl: a, trackingLabel: r, ...s }, d) => /* @__PURE__ */ t(
19
19
  n.Trigger,
20
20
  {
21
21
  ref: d,
@@ -27,7 +27,7 @@ const D = l.forwardRef(({ className: e, dataHook: o, trackingEl: a, trackingLabe
27
27
  ...s
28
28
  }
29
29
  ));
30
- D.displayName = "DropdownMenuTrigger";
30
+ N.displayName = "DropdownMenuTrigger";
31
31
  const M = l.forwardRef(
32
32
  ({
33
33
  className: e,
@@ -140,7 +140,7 @@ const z = l.forwardRef(
140
140
  "data-tracking-label": d,
141
141
  ...i,
142
142
  children: [
143
- /* @__PURE__ */ t("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(n.ItemIndicator, { children: /* @__PURE__ */ t(w, { className: "size-4" }) }) }),
143
+ /* @__PURE__ */ t("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(n.ItemIndicator, { children: /* @__PURE__ */ t(w, { size: 16 }) }) }),
144
144
  o
145
145
  ]
146
146
  }
@@ -176,7 +176,7 @@ const S = l.forwardRef(
176
176
  "data-tracking-label": s,
177
177
  ...d,
178
178
  children: [
179
- /* @__PURE__ */ t("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(n.ItemIndicator, { children: /* @__PURE__ */ t(b, { className: "size-2 fill-current" }) }) }),
179
+ /* @__PURE__ */ t("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(n.ItemIndicator, { children: /* @__PURE__ */ t(b, { className: "fill-current", size: 8 }) }) }),
180
180
  o
181
181
  ]
182
182
  }
@@ -267,7 +267,7 @@ const G = l.forwardRef(
267
267
  ...i,
268
268
  children: [
269
269
  a,
270
- /* @__PURE__ */ t(h, { className: "ml-auto size-4" })
270
+ /* @__PURE__ */ t(h, { className: "ml-auto", size: 16 })
271
271
  ]
272
272
  }
273
273
  )
@@ -339,7 +339,7 @@ const j = l.forwardRef(
339
339
  /* @__PURE__ */ t("span", { className: "w-full overflow-hidden text-sm leading-normal font-semibold text-ellipsis whitespace-nowrap", children: d }),
340
340
  i && /* @__PURE__ */ t("span", { className: "text-muted-foreground w-full overflow-hidden text-xs leading-normal text-ellipsis whitespace-nowrap", children: i })
341
341
  ] }),
342
- /* @__PURE__ */ t(x, { className: "text-muted-foreground size-4 opacity-50" })
342
+ /* @__PURE__ */ t(x, { className: "text-muted-foreground opacity-50", size: 16 })
343
343
  ]
344
344
  }
345
345
  )
@@ -352,7 +352,7 @@ export {
352
352
  y as DropdownMenuGroup,
353
353
  k as DropdownMenuItem,
354
354
  C as DropdownMenuLabel,
355
- N as DropdownMenuPortal,
355
+ D as DropdownMenuPortal,
356
356
  R as DropdownMenuRadioGroup,
357
357
  S as DropdownMenuRadioItem,
358
358
  I as DropdownMenuSeparator,
@@ -360,6 +360,6 @@ export {
360
360
  T as DropdownMenuSub,
361
361
  P as DropdownMenuSubContent,
362
362
  G as DropdownMenuSubTrigger,
363
- D as DropdownMenuTrigger,
363
+ N as DropdownMenuTrigger,
364
364
  j as DropdownMenuTriggerAvatar
365
365
  };