@brightlocal/ui-components 3.1.0 → 3.2.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 (176) hide show
  1. package/README.md +6 -1
  2. package/component-meta.json +663 -38
  3. package/deprecations.json +1 -1
  4. package/dist/alert-dialog.cjs +1 -1
  5. package/dist/alert-dialog.d.ts +32 -3
  6. package/dist/alert-dialog.d.ts.map +1 -1
  7. package/dist/alert-dialog.js +61 -58
  8. package/dist/alert.cjs +1 -1
  9. package/dist/alert.d.ts.map +1 -1
  10. package/dist/alert.js +58 -57
  11. package/dist/badge.cjs +1 -1
  12. package/dist/badge.d.ts +9 -0
  13. package/dist/badge.d.ts.map +1 -1
  14. package/dist/badge.js +50 -30
  15. package/dist/banner.cjs +1 -0
  16. package/dist/banner.d.ts +81 -0
  17. package/dist/banner.d.ts.map +1 -0
  18. package/dist/banner.js +176 -0
  19. package/dist/blocks/empty-state.cjs +1 -1
  20. package/dist/blocks/empty-state.d.ts +4 -3
  21. package/dist/blocks/empty-state.d.ts.map +1 -1
  22. package/dist/blocks/empty-state.js +21 -20
  23. package/dist/blocks/progress-state.d.ts +2 -2
  24. package/dist/blocks/sidebar.cjs +1 -1
  25. package/dist/blocks/sidebar.d.ts +17 -0
  26. package/dist/blocks/sidebar.d.ts.map +1 -1
  27. package/dist/blocks/sidebar.js +8 -2
  28. package/dist/brand-illustration-motif.d.ts +1 -1
  29. package/dist/card.cjs +1 -1
  30. package/dist/card.d.ts +86 -6
  31. package/dist/card.d.ts.map +1 -1
  32. package/dist/card.js +185 -96
  33. package/dist/chart.cjs +3 -3
  34. package/dist/chart.d.ts +231 -13
  35. package/dist/chart.d.ts.map +1 -1
  36. package/dist/chart.js +466 -306
  37. package/dist/checkbox.cjs +1 -1
  38. package/dist/checkbox.d.ts +1 -1
  39. package/dist/checkbox.d.ts.map +1 -1
  40. package/dist/checkbox.js +2 -1
  41. package/dist/combobox.cjs +1 -1
  42. package/dist/combobox.js +2 -2
  43. package/dist/command.cjs +1 -1
  44. package/dist/command.js +1 -1
  45. package/dist/data-table.cjs +1 -1
  46. package/dist/data-table.d.ts +169 -22
  47. package/dist/data-table.d.ts.map +1 -1
  48. package/dist/data-table.js +695 -561
  49. package/dist/grid.d.ts +24 -1
  50. package/dist/grid.d.ts.map +1 -1
  51. package/dist/hooks/use-breakpoint.cjs +1 -1
  52. package/dist/hooks/use-breakpoint.d.ts +1 -1
  53. package/dist/hooks/use-breakpoint.d.ts.map +1 -1
  54. package/dist/hooks/use-breakpoint.js +1 -0
  55. package/dist/index.cjs +1 -1
  56. package/dist/index.d.ts +5 -0
  57. package/dist/index.d.ts.map +1 -1
  58. package/dist/index.js +593 -561
  59. package/dist/info-tooltip.cjs +1 -0
  60. package/dist/info-tooltip.d.ts +39 -0
  61. package/dist/info-tooltip.d.ts.map +1 -0
  62. package/dist/info-tooltip.js +41 -0
  63. package/dist/input-chip.cjs +1 -1
  64. package/dist/input-chip.js +1 -1
  65. package/dist/input-group.cjs +1 -1
  66. package/dist/input-group.d.ts +33 -2
  67. package/dist/input-group.d.ts.map +1 -1
  68. package/dist/input-group.js +167 -54
  69. package/dist/input-otp.cjs +1 -1
  70. package/dist/input-otp.js +9 -9
  71. package/dist/input-password.cjs +1 -1
  72. package/dist/input-password.d.ts +28 -6
  73. package/dist/input-password.d.ts.map +1 -1
  74. package/dist/input-password.js +5 -5
  75. package/dist/input.cjs +1 -1
  76. package/dist/input.js +10 -10
  77. package/dist/lib/block-illustration.cjs +1 -1
  78. package/dist/lib/block-illustration.d.ts +4 -1
  79. package/dist/lib/block-illustration.d.ts.map +1 -1
  80. package/dist/lib/block-illustration.js +12 -11
  81. package/dist/lib/utils.cjs +1 -1
  82. package/dist/lib/utils.d.ts.map +1 -1
  83. package/dist/lib/utils.js +4 -3
  84. package/dist/list.cjs +1 -1
  85. package/dist/list.js +1 -1
  86. package/dist/multi-select-filter.cjs +1 -0
  87. package/dist/multi-select-filter.d.ts +178 -0
  88. package/dist/multi-select-filter.d.ts.map +1 -0
  89. package/dist/multi-select-filter.js +463 -0
  90. package/dist/progress.cjs +1 -1
  91. package/dist/progress.d.ts +123 -16
  92. package/dist/progress.d.ts.map +1 -1
  93. package/dist/progress.js +89 -75
  94. package/dist/rating.cjs +1 -1
  95. package/dist/rating.js +18 -18
  96. package/dist/relative-date.cjs +1 -0
  97. package/dist/relative-date.d.ts +65 -0
  98. package/dist/relative-date.d.ts.map +1 -0
  99. package/dist/relative-date.js +128 -0
  100. package/dist/select.cjs +2 -2
  101. package/dist/select.d.ts +11 -1
  102. package/dist/select.d.ts.map +1 -1
  103. package/dist/select.js +97 -81
  104. package/dist/sheet.cjs +1 -1
  105. package/dist/sheet.d.ts +78 -2
  106. package/dist/sheet.d.ts.map +1 -1
  107. package/dist/sheet.js +192 -85
  108. package/dist/single-select-filter.cjs +1 -0
  109. package/dist/single-select-filter.d.ts +81 -0
  110. package/dist/single-select-filter.d.ts.map +1 -0
  111. package/dist/single-select-filter.js +226 -0
  112. package/dist/sonner.cjs +1 -1
  113. package/dist/sonner.d.ts.map +1 -1
  114. package/dist/sonner.js +22 -22
  115. package/dist/split-layout.cjs +1 -1
  116. package/dist/split-layout.d.ts +1 -1
  117. package/dist/split-layout.js +13 -13
  118. package/dist/table.cjs +1 -1
  119. package/dist/table.d.ts +45 -4
  120. package/dist/table.d.ts.map +1 -1
  121. package/dist/table.js +90 -73
  122. package/dist/tabs.cjs +1 -1
  123. package/dist/tabs.d.ts +12 -1
  124. package/dist/tabs.d.ts.map +1 -1
  125. package/dist/tabs.js +148 -126
  126. package/dist/textarea.cjs +1 -1
  127. package/dist/textarea.js +1 -1
  128. package/dist/tooltip.cjs +1 -1
  129. package/dist/tooltip.d.ts +38 -36
  130. package/dist/tooltip.d.ts.map +1 -1
  131. package/dist/tooltip.js +262 -73
  132. package/dist/typography-text.d.ts +1 -2
  133. package/dist/typography-text.d.ts.map +1 -1
  134. package/dist/typography.d.ts +1 -1
  135. package/package.json +5 -6
  136. package/src/blocks/empty-state.tsx +8 -3
  137. package/src/blocks/progress-state.tsx +2 -2
  138. package/src/blocks/sidebar.tsx +26 -2
  139. package/src/components/alert-dialog.tsx +50 -5
  140. package/src/components/alert.tsx +16 -8
  141. package/src/components/badge.tsx +40 -3
  142. package/src/components/banner.tsx +288 -0
  143. package/src/components/brand-illustration-motif.tsx +1 -1
  144. package/src/components/card.tsx +211 -24
  145. package/src/components/chart.tsx +523 -35
  146. package/src/components/checkbox.tsx +1 -1
  147. package/src/components/combobox.tsx +2 -2
  148. package/src/components/command.tsx +1 -1
  149. package/src/components/data-table.tsx +778 -195
  150. package/src/components/grid.tsx +32 -1
  151. package/src/components/info-tooltip.tsx +94 -0
  152. package/src/components/input-chip.tsx +1 -1
  153. package/src/components/input-group.tsx +246 -11
  154. package/src/components/input-otp.tsx +1 -1
  155. package/src/components/input-password.tsx +33 -11
  156. package/src/components/input.tsx +1 -1
  157. package/src/components/list.tsx +1 -1
  158. package/src/components/multi-select-filter.tsx +912 -0
  159. package/src/components/progress.tsx +190 -31
  160. package/src/components/rating.tsx +1 -1
  161. package/src/components/relative-date.tsx +230 -0
  162. package/src/components/select.tsx +35 -5
  163. package/src/components/sheet.tsx +240 -4
  164. package/src/components/single-select-filter.tsx +443 -0
  165. package/src/components/sonner.tsx +16 -5
  166. package/src/components/split-layout.tsx +2 -2
  167. package/src/components/table.tsx +71 -11
  168. package/src/components/tabs.tsx +93 -46
  169. package/src/components/textarea.tsx +1 -1
  170. package/src/components/tooltip.tsx +440 -68
  171. package/src/components/typography-text.tsx +1 -2
  172. package/src/components/typography.tsx +1 -1
  173. package/src/hooks/use-breakpoint.ts +2 -1
  174. package/src/index.ts +5 -0
  175. package/src/lib/block-illustration.tsx +5 -1
  176. package/src/lib/utils.ts +1 -0
@@ -0,0 +1,463 @@
1
+ import { jsxs as l, jsx as t, Fragment as we } from "react/jsx-runtime";
2
+ import * as i from "react";
3
+ import { cva as Se } from "class-variance-authority";
4
+ import { ChevronDown as Ne, SearchX as ae, Check as $e } from "@brightlocal/icons";
5
+ import { Button as le } from "@brightlocal/ui-components/button";
6
+ import { Checkbox as se, checkboxVariants as ye } from "@brightlocal/ui-components/checkbox";
7
+ import { Command as Oe, CommandInput as _e, CommandList as De, CommandEmpty as Fe, CommandGroup as ie, CommandItem as G } from "@brightlocal/ui-components/command";
8
+ import { Drawer as ze, DrawerTrigger as Me, DrawerContent as je, DrawerHeader as Ae, DrawerTitle as Re, DrawerDescription as Te, DrawerBody as ce, DrawerFooter as Ve, DrawerClose as Le } from "@brightlocal/ui-components/drawer";
9
+ import { useIsBelowBreakpoint as Be } from "@brightlocal/ui-components/hooks/use-breakpoint";
10
+ import { Input as Ee } from "@brightlocal/ui-components/input";
11
+ import { Label as oe } from "@brightlocal/ui-components/label";
12
+ import { cn as M } from "@brightlocal/ui-components/lib/utils";
13
+ import { Popover as Pe, PopoverTrigger as Ie, PopoverContent as Ue } from "@brightlocal/ui-components/popover";
14
+ import { emptyChipStyles as Qe } from "./lib/empty-chip.js";
15
+ const We = Se(
16
+ [
17
+ // Base layout
18
+ "relative inline-flex items-center justify-between gap-2 py-2",
19
+ // Base appearance — the Figma Select's surface: background (input/30 in
20
+ // dark) fill and the input border
21
+ "border border-input rounded-sm outline-none transition-[border-color,box-shadow,background-color] duration-fast ease-out",
22
+ "bg-background dark:bg-input/30",
23
+ "text-foreground",
24
+ // Focus state (keyboard navigation only — not on click)
25
+ "focus-visible:outline-none focus-visible:border-ring focus-visible:bg-background",
26
+ "focus-visible:shadow-default",
27
+ // Open state — the surface this trigger owns is showing
28
+ "data-[state=open]:border-ring",
29
+ // Disabled state
30
+ "disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
31
+ // Icon styles (chevron and leading icons)
32
+ "[&_svg]:pointer-events-none [&_svg]:shrink-0"
33
+ ],
34
+ {
35
+ variants: {
36
+ size: {
37
+ /* A filter trigger is a field-like control holding a value, so it
38
+ wears the field's type role, exactly like SelectTrigger (DS-992):
39
+ 14px/20 on desktop, 16px/24 on touch devices so it never differs
40
+ from the Select beside it in a toolbar. */
41
+ default: "h-9 px-3 text-field",
42
+ /* The DS Button's `sm` height (h-8) with text-label (14px everywhere),
43
+ so the same trigger sits in a phone card header without the desktop
44
+ height or the touch bump crowding the row. Icons stay 16px unless
45
+ the consumer's glyph sizes itself. */
46
+ sm: "h-8 px-2.5 text-label [&_svg:not([class*='size-'])]:size-4"
47
+ }
48
+ },
49
+ defaultVariants: {
50
+ size: "default"
51
+ }
52
+ }
53
+ );
54
+ function qe({
55
+ value: d,
56
+ defaultValue: r,
57
+ onValueChange: h,
58
+ open: c,
59
+ onOpenChange: j,
60
+ options: g,
61
+ collapseFullSelection: A
62
+ }) {
63
+ const [R, T] = i.useState(r), S = d !== void 0, u = S ? d : R, N = i.useMemo(() => new Set(u), [u]), [o, m] = i.useState(!1), $ = c !== void 0, f = $ ? c : o, [k, V] = i.useState(/* @__PURE__ */ new Set()), y = i.useRef(f);
64
+ i.useEffect(() => {
65
+ f && !y.current && V(new Set(u)), y.current = f;
66
+ }, [f, u]);
67
+ const p = (s) => {
68
+ S || T(s), h?.(s);
69
+ }, L = (s) => {
70
+ if (N.has(s)) {
71
+ p(u.filter((v) => v !== s));
72
+ return;
73
+ }
74
+ const _ = [...u, s];
75
+ if (A) {
76
+ const v = g.filter(
77
+ (b) => !b.disabled && b.count !== 0
78
+ ), B = new Set(_);
79
+ if (v.length > 0 && v.every((b) => B.has(b.value))) {
80
+ p([]);
81
+ return;
82
+ }
83
+ }
84
+ p(_);
85
+ }, w = (s) => {
86
+ $ || m(s), j?.(s);
87
+ }, O = i.useMemo(
88
+ () => [
89
+ ...g.filter((s) => k.has(s.value)),
90
+ ...g.filter((s) => !k.has(s.value))
91
+ ],
92
+ [g, k]
93
+ );
94
+ return {
95
+ clear: () => p([]),
96
+ onOpenChange: w,
97
+ open: f,
98
+ orderedOptions: O,
99
+ selectedSet: N,
100
+ toggleOption: L,
101
+ value: u
102
+ };
103
+ }
104
+ function de({ checked: d }) {
105
+ return /* @__PURE__ */ t(
106
+ "span",
107
+ {
108
+ "aria-hidden": "true",
109
+ className: M(
110
+ ye(),
111
+ "mt-0 flex items-center justify-center self-center"
112
+ ),
113
+ "data-state": d ? "checked" : "unchecked",
114
+ children: d ? /* @__PURE__ */ t($e, {}) : null
115
+ }
116
+ );
117
+ }
118
+ function X({ count: d }) {
119
+ return /* @__PURE__ */ t("span", { className: "text-muted-foreground text-label-sm ml-auto tabular-nums", children: d });
120
+ }
121
+ const Ge = "__all__", Xe = "__clear__", Je = i.forwardRef(
122
+ ({
123
+ className: d,
124
+ dataHook: r,
125
+ label: h,
126
+ options: c,
127
+ value: j,
128
+ defaultValue: g = [],
129
+ onValueChange: A,
130
+ open: R,
131
+ onOpenChange: T,
132
+ size: S = "default",
133
+ icon: u,
134
+ maxVisibleLabels: N = 1,
135
+ allLabel: o,
136
+ allIcon: m,
137
+ allCount: $,
138
+ searchThreshold: f = 10,
139
+ searchable: k,
140
+ collapseFullSelection: V = !0,
141
+ disabled: y = !1,
142
+ clearLabel: p,
143
+ summaryLabel: L,
144
+ searchPlaceholder: w,
145
+ emptyLabel: O,
146
+ emptyDescription: s,
147
+ clearSearchAriaLabel: _,
148
+ presentation: v = "menu",
149
+ doneLabel: B,
150
+ drawerDescription: b,
151
+ trackingEl: ue,
152
+ trackingLabel: he,
153
+ "aria-label": me,
154
+ ...fe
155
+ }, pe) => {
156
+ const a = qe({
157
+ collapseFullSelection: V,
158
+ defaultValue: g,
159
+ onOpenChange: T,
160
+ onValueChange: A,
161
+ open: R,
162
+ options: c,
163
+ value: j
164
+ }), ve = Be("md"), ge = v === "drawer" || v === "auto" && ve, J = i.useId(), [K, E] = i.useState(""), P = K.trim().toLowerCase(), C = P.length > 0, I = C ? a.orderedOptions.filter(
165
+ (e) => e.label.toLowerCase().includes(P) || e.value.toLowerCase().includes(P)
166
+ ) : a.orderedOptions, Y = i.useRef(null), U = k ?? c.length > f, be = new Map(
167
+ c.map((e) => [e.value, e.label])
168
+ ), D = a.value.flatMap((e) => {
169
+ const n = be.get(e);
170
+ return n === void 0 ? [] : [n];
171
+ }), x = D.length, Q = a.value.length === 0, F = $ ?? (c.length > 0 && c.every((e) => e.count !== void 0) ? c.reduce((e, n) => e + (n.count ?? 0), 0) : void 0), W = Math.max(1, N);
172
+ let z, Z = !1;
173
+ if (x === 0)
174
+ z = o ?? h, Z = o === void 0;
175
+ else if (x <= W)
176
+ z = D.join(", ");
177
+ else {
178
+ const e = {
179
+ "{count}": String(x),
180
+ "{labels}": D.slice(0, W).join(", "),
181
+ "{rest}": String(x - W)
182
+ };
183
+ z = (L ?? "{labels} +{rest}").replace(
184
+ /\{(count|labels|rest)\}/g,
185
+ (n) => e[n] ?? n
186
+ );
187
+ }
188
+ const Ce = x > 0 ? `${h}: ${D.join(", ")}` : o !== void 0 ? `${h}: ${o}` : h, xe = a.value.map((e) => c.find((n) => n.value === e)).find((e) => e !== void 0), H = u ?? (x > 0 ? xe?.icon : m) ?? void 0, ee = (e) => {
189
+ e || E(""), a.onOpenChange(e);
190
+ }, te = /* @__PURE__ */ l(
191
+ "button",
192
+ {
193
+ ref: pe,
194
+ "aria-label": me ?? Ce,
195
+ className: M(We({ size: S }), d),
196
+ "data-hook": r,
197
+ "data-slot": "multi-select-filter",
198
+ "data-tracking-el": ue ?? "multi-select-filter",
199
+ "data-tracking-label": he,
200
+ disabled: y,
201
+ type: "button",
202
+ ...fe,
203
+ children: [
204
+ H ? /* @__PURE__ */ t(
205
+ "span",
206
+ {
207
+ "aria-hidden": "true",
208
+ className: "flex shrink-0 items-center",
209
+ "data-hook": `${r}-icon`,
210
+ children: H
211
+ }
212
+ ) : null,
213
+ /* @__PURE__ */ t(
214
+ "span",
215
+ {
216
+ className: M(Z && "text-muted-foreground"),
217
+ "data-hook": `${r}-summary`,
218
+ children: z
219
+ }
220
+ ),
221
+ /* @__PURE__ */ t(Ne, { "aria-hidden": "true", className: "text-muted-foreground" })
222
+ ]
223
+ }
224
+ );
225
+ if (ge) {
226
+ const e = `${J}-all`;
227
+ return /* @__PURE__ */ l(ze, { open: a.open, onOpenChange: ee, children: [
228
+ /* @__PURE__ */ t(Me, { asChild: !0, children: te }),
229
+ /* @__PURE__ */ l(je, { dataHook: `${r}-drawer`, children: [
230
+ /* @__PURE__ */ l(Ae, { children: [
231
+ /* @__PURE__ */ t(Re, { children: h }),
232
+ /* @__PURE__ */ t(Te, { className: "sr-only", children: b ?? "Picks apply as you make them." })
233
+ ] }),
234
+ U ? /* @__PURE__ */ t(ce, { className: "shrink-0 pb-4", children: /* @__PURE__ */ t(
235
+ Ee,
236
+ {
237
+ "aria-label": w ?? "Search options...",
238
+ dataHook: `${r}-search`,
239
+ placeholder: w ?? "Search options...",
240
+ type: "search",
241
+ value: K,
242
+ onChange: (n) => E(n.target.value)
243
+ }
244
+ ) }) : null,
245
+ /* @__PURE__ */ l(ce, { className: "flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto pt-1 pb-2", children: [
246
+ C && I.length === 0 ? (
247
+ /* The compact no-match form of Patterns → Empty States: the
248
+ muted chip, the message line, one quiet hint — the same
249
+ form CommandEmpty draws in the menu. */
250
+ /* @__PURE__ */ l(
251
+ "div",
252
+ {
253
+ className: "text-body-sm flex flex-col items-center gap-1 py-6 text-center",
254
+ "data-hook": `${r}-empty`,
255
+ children: [
256
+ /* @__PURE__ */ t(
257
+ "span",
258
+ {
259
+ "aria-hidden": "true",
260
+ className: M(Qe(), "mb-1"),
261
+ children: /* @__PURE__ */ t(ae, {})
262
+ }
263
+ ),
264
+ /* @__PURE__ */ t("p", { children: O ?? "No options found." }),
265
+ /* @__PURE__ */ t("p", { className: "text-muted-foreground", children: s ?? "Try another search." })
266
+ ]
267
+ }
268
+ )
269
+ ) : /* @__PURE__ */ l(we, { children: [
270
+ o !== void 0 && !C ? /* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
271
+ /* @__PURE__ */ t(
272
+ se,
273
+ {
274
+ checked: Q,
275
+ dataHook: `${r}-option-all`,
276
+ id: e,
277
+ onCheckedChange: a.clear
278
+ }
279
+ ),
280
+ /* @__PURE__ */ l(oe, { className: "flex-1 gap-2", htmlFor: e, children: [
281
+ m ? /* @__PURE__ */ t(
282
+ "span",
283
+ {
284
+ "aria-hidden": "true",
285
+ className: "flex shrink-0 items-center [&_svg]:size-4",
286
+ children: m
287
+ }
288
+ ) : null,
289
+ o
290
+ ] }),
291
+ F !== void 0 ? /* @__PURE__ */ t(X, { count: F }) : null
292
+ ] }) : null,
293
+ /* @__PURE__ */ t("div", { className: "grid grid-cols-2 gap-x-4 gap-y-3", children: I.map((n, q) => {
294
+ const ne = a.selectedSet.has(n.value), ke = n.disabled || n.count === 0 && !ne, re = `${J}-${q}`;
295
+ return /* @__PURE__ */ l(
296
+ "div",
297
+ {
298
+ className: "flex items-center gap-2",
299
+ children: [
300
+ /* @__PURE__ */ t(
301
+ se,
302
+ {
303
+ checked: ne,
304
+ dataHook: `${r}-option-${n.value}`,
305
+ disabled: ke,
306
+ id: re,
307
+ onCheckedChange: () => a.toggleOption(n.value)
308
+ }
309
+ ),
310
+ /* @__PURE__ */ l(oe, { className: "flex-1 gap-2", htmlFor: re, children: [
311
+ n.icon ? /* @__PURE__ */ t(
312
+ "span",
313
+ {
314
+ "aria-hidden": "true",
315
+ className: "flex shrink-0 items-center [&_svg]:size-4",
316
+ "data-hook": `${r}-option-${n.value}-icon`,
317
+ children: n.icon
318
+ }
319
+ ) : null,
320
+ n.label
321
+ ] })
322
+ ]
323
+ },
324
+ n.value
325
+ );
326
+ }) })
327
+ ] }),
328
+ a.value.length > 0 && !C ? /* @__PURE__ */ t(
329
+ le,
330
+ {
331
+ dataHook: `${r}-clear`,
332
+ variant: "ghost",
333
+ onClick: a.clear,
334
+ children: p ?? "Clear filters"
335
+ }
336
+ ) : null
337
+ ] }),
338
+ /* @__PURE__ */ t(Ve, { children: /* @__PURE__ */ t(Le, { asChild: !0, children: /* @__PURE__ */ t(le, { dataHook: `${r}-done`, children: B ?? "Done" }) }) })
339
+ ] })
340
+ ] });
341
+ }
342
+ return /* @__PURE__ */ l(Pe, { open: a.open, onOpenChange: ee, children: [
343
+ /* @__PURE__ */ t(Ie, { asChild: !0, children: te }),
344
+ /* @__PURE__ */ t(
345
+ Ue,
346
+ {
347
+ align: "start",
348
+ "aria-label": h,
349
+ className: "w-max max-w-80 min-w-60 p-0",
350
+ dataHook: `${r}-popover`,
351
+ onOpenAutoFocus: (e) => {
352
+ U || (e.preventDefault(), Y.current?.focus());
353
+ },
354
+ children: /* @__PURE__ */ l(
355
+ Oe,
356
+ {
357
+ ref: Y,
358
+ dataHook: `${r}-command`,
359
+ shouldFilter: !1,
360
+ children: [
361
+ U ? (
362
+ /* Autofocused on open — the person came to type, not scroll;
363
+ focus moves into a menu they deliberately opened. */
364
+ /* @__PURE__ */ t(
365
+ _e,
366
+ {
367
+ autoFocus: !0,
368
+ clearSearchAriaLabel: _ ?? "Clear search",
369
+ dataHook: `${r}-search`,
370
+ placeholder: w ?? "Search options...",
371
+ onValueChange: E
372
+ }
373
+ )
374
+ ) : null,
375
+ /* @__PURE__ */ l(De, { "aria-multiselectable": "true", children: [
376
+ /* @__PURE__ */ t(
377
+ Fe,
378
+ {
379
+ description: s ?? "Try another search.",
380
+ icon: /* @__PURE__ */ t(ae, {}),
381
+ children: O ?? "No options found."
382
+ }
383
+ ),
384
+ /* @__PURE__ */ l(ie, { children: [
385
+ o !== void 0 && !C ? /* @__PURE__ */ l(
386
+ G,
387
+ {
388
+ "aria-checked": Q,
389
+ dataHook: `${r}-option-all`,
390
+ value: Ge,
391
+ onSelect: a.clear,
392
+ children: [
393
+ /* @__PURE__ */ t(de, { checked: Q }),
394
+ m ? /* @__PURE__ */ t(
395
+ "span",
396
+ {
397
+ "aria-hidden": "true",
398
+ className: "flex shrink-0 items-center [&_svg]:size-4",
399
+ children: m
400
+ }
401
+ ) : null,
402
+ o,
403
+ F !== void 0 ? /* @__PURE__ */ t(X, { count: F }) : null
404
+ ]
405
+ }
406
+ ) : null,
407
+ I.map((e) => {
408
+ const n = a.selectedSet.has(e.value), q = e.disabled || e.count === 0 && !n;
409
+ return /* @__PURE__ */ l(
410
+ G,
411
+ {
412
+ "aria-checked": n,
413
+ dataHook: `${r}-option-${e.value}`,
414
+ disabled: q,
415
+ value: e.value,
416
+ onSelect: () => a.toggleOption(e.value),
417
+ children: [
418
+ /* @__PURE__ */ t(de, { checked: n }),
419
+ e.icon ? /* @__PURE__ */ t(
420
+ "span",
421
+ {
422
+ "aria-hidden": "true",
423
+ className: "flex shrink-0 items-center [&_svg]:size-4",
424
+ "data-hook": `${r}-option-${e.value}-icon`,
425
+ children: e.icon
426
+ }
427
+ ) : null,
428
+ e.label,
429
+ e.count !== void 0 ? /* @__PURE__ */ t(X, { count: e.count }) : null
430
+ ]
431
+ },
432
+ e.value
433
+ );
434
+ })
435
+ ] }),
436
+ a.value.length > 0 && !C ? (
437
+ /* A bordered group, not CommandSeparator — role="separator"
438
+ is not a permitted child of the cmdk listbox. */
439
+ /* @__PURE__ */ t(ie, { className: "border-border border-t", children: /* @__PURE__ */ t(
440
+ G,
441
+ {
442
+ className: "justify-center",
443
+ dataHook: `${r}-clear`,
444
+ value: Xe,
445
+ onSelect: a.clear,
446
+ children: p ?? "Clear filters"
447
+ }
448
+ ) })
449
+ ) : null
450
+ ] })
451
+ ]
452
+ }
453
+ )
454
+ }
455
+ )
456
+ ] });
457
+ }
458
+ );
459
+ Je.displayName = "MultiSelectFilter";
460
+ export {
461
+ Je as MultiSelectFilter,
462
+ We as multiSelectFilterTriggerVariants
463
+ };
package/dist/progress.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),T=require("react"),I=require("@radix-ui/react-progress"),D=require("framer-motion"),n=require("@brightlocal/ui-components/lib/utils"),z=require("@brightlocal/ui-components/hooks/use-prefers-reduced-motion"),A=require("./lib/motion.cjs");function R(r){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const e in r)if(e!=="default"){const a=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(t,e,a.get?a:{enumerable:!0,get:()=>r[e]})}}return t.default=r,Object.freeze(t)}const w=R(T),x=R(I),y={sm:{text:"text-body-sm",bar:"h-2"},md:{text:"text-body",bar:"h-3"}},P={green:{track:"bg-brand-primary-foreground/20",indicator:"bg-green-400"},red:{track:"bg-brand-red/20",indicator:"bg-brand-red"},orange:{track:"bg-brand-orange/20",indicator:"bg-brand-orange"},yellow:{track:"bg-brand-yellow/20",indicator:"bg-brand-yellow"}},B="40%";function j(r,t,e){if(r==null)return"–";if(e==="%")return`${t>0?Math.min(100,Math.max(0,Math.round(r/t*100))):0}%`;const a=e?` ${e}`:"";return t>0?`${r} / ${t}${a}`:`${r}${a}`}const k=w.forwardRef(({className:r,value:t,max:e=100,dataHook:a,trackingEl:d,trackingLabel:v,ariaLabel:S="Progress",label:g,labelWidth:u=B,color:M="green",size:N="sm",showValue:i=!1,unit:b="%",indicatorClassName:_,disabled:f,...L},O)=>{const m=w.useId(),o=!!g,$=z.usePrefersReducedMotion(),p=P[M]??P.green,c=y[N]??y.sm,l=u==="auto",q=o||i,E=e>0?Math.min(100,Math.max(0,(t??0)/e*100)):0,h=s.jsx(x.Root,{ref:O,"aria-label":o?void 0:S,"aria-labelledby":o?m:void 0,className:n.cn("relative w-full overflow-hidden rounded-full",q&&"min-w-0 flex-1",c.bar,p.track,!o&&!i&&f&&"opacity-50",r),"data-hook":a,"data-slot":"progress","data-tracking-el":d,"data-tracking-label":v,max:e,value:t??0,...L,children:s.jsx(x.Indicator,{asChild:!0,children:s.jsx(D.motion.div,{animate:{transform:`translateX(-${100-E}%)`},className:n.cn("h-full w-full flex-1",p.indicator,_),"data-slot":"progress-indicator",initial:!1,transition:$?{duration:0}:A.SPRING_GENTLE})})});return!o&&!i?h:s.jsxs("div",{className:n.cn("flex w-full items-center gap-2",f&&"opacity-50"),"data-slot":"progress-wrapper",children:[o&&s.jsx("span",{className:n.cn("text-foreground shrink-0 break-words",l&&"max-w-2/5",c.text),"data-label-width":l?"auto":void 0,"data-slot":"progress-label",id:m,style:l?void 0:{width:u},children:g}),h,i&&s.jsxs("span",{className:n.cn("text-muted-foreground grid min-w-10 shrink-0 text-right tabular-nums",c.text),"data-slot":"progress-value",children:[s.jsx("span",{"aria-hidden":"true",className:"invisible col-start-1 row-start-1","data-slot":"progress-value-sizer",children:j(e,e,b)}),s.jsx("span",{className:"col-start-1 row-start-1","data-slot":"progress-value-text",children:j(t,e,b)})]})]})});k.displayName="Progress";exports.Progress=k;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),G=require("react"),H=require("@radix-ui/react-progress"),V=require("framer-motion"),i=require("@brightlocal/ui-components/lib/utils"),Y=require("@brightlocal/ui-components/hooks/use-prefers-reduced-motion"),F=require("./lib/motion.cjs");function N(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const a=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,a.get?a:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const j=N(G),P=N(H),R={sm:{text:"text-body-sm",bar:"h-2"},md:{text:"text-body",bar:"h-3"}},k={green:{track:"bg-brand-primary-foreground/20",indicator:"bg-green-400"},red:{track:"bg-brand-red/20",indicator:"bg-brand-red"},orange:{track:"bg-brand-orange/20",indicator:"bg-brand-orange"},yellow:{track:"bg-brand-yellow/20",indicator:"bg-brand-yellow"}},U="40%";function X(t,r,e){if(t==null)return"–";if(e==="%")return`${r>0?Math.min(100,Math.max(0,Math.round(t/r*100))):0}%`;const a=e?` ${e}`:"";return r>0?`${t} / ${r}${a}`:`${t}${a}`}const S=j.forwardRef(({className:t,value:r,max:e=100,dataHook:a,trackingEl:g,trackingLabel:M,ariaLabel:T="Progress",label:n,labelWidth:f=U,color:_="green",size:L="sm",showValue:c=!1,unit:O="%",valueFormatter:$,indicatorClassName:q,disabled:b,...E},I)=>{const m=j.useId(),o=n!=null&&n!=="",p=typeof n=="string"||typeof n=="number",h=o&&p,l=$??((A,C)=>X(A,C,O)),x=l(r,e),z=Y.usePrefersReducedMotion(),y=k[_]??k.green,d=R[L]??R.sm,u=f==="auto",D=o||c,w=Math.min(e,Math.max(0,r??0)),B=e>0?w/e*100:0,v=s.jsx(P.Root,{ref:I,"aria-label":h?void 0:T,"aria-labelledby":h?m:void 0,className:i.cn("relative w-full overflow-hidden rounded-full",D&&"min-w-0 flex-1",d.bar,y.track,!o&&!c&&b&&"opacity-50",t),"data-hook":a,"data-slot":"progress","data-tracking-el":g,"data-tracking-label":M,getValueLabel:()=>x,max:e,value:w,...E,children:s.jsx(P.Indicator,{asChild:!0,children:s.jsx(V.motion.div,{animate:{transform:`translateX(-${100-B}%)`},className:i.cn("h-full w-full flex-1",y.indicator,q),"data-slot":"progress-indicator",initial:!1,transition:z?{duration:0}:F.SPRING_GENTLE})})});return!o&&!c?v:s.jsxs("div",{className:i.cn("flex w-full items-center gap-2",b&&"opacity-50"),"data-slot":"progress-wrapper",children:[o&&s.jsx("div",{className:i.cn("text-foreground shrink-0 break-words",u&&"max-w-2/5",!p&&"flex items-center",d.text),"data-label-width":u?"auto":void 0,"data-slot":"progress-label",id:m,style:u?void 0:{width:f},children:n}),v,c&&s.jsxs("span",{className:i.cn("text-muted-foreground grid min-w-10 shrink-0 text-right tabular-nums",d.text),"data-slot":"progress-value",children:[s.jsx("span",{"aria-hidden":"true",className:"invisible col-start-1 row-start-1","data-slot":"progress-value-sizer",children:l(e,e)}),s.jsx("span",{"aria-hidden":"true",className:"invisible col-start-1 row-start-1","data-slot":"progress-value-sizer-min",children:l(0,e)}),s.jsx("span",{className:"col-start-1 row-start-1","data-slot":"progress-value-text",children:x})]})]})});S.displayName="Progress";exports.Progress=S;
@@ -20,32 +20,52 @@ type ProgressSize = "sm" | "md";
20
20
  */
21
21
  type ProgressLabelWidth = "auto" | "20%" | "30%" | "40%" | "50%";
22
22
  /**
23
- * Props for the Progress component.
23
+ * Formats the value shown beside the bar — and, through Radix's
24
+ * `getValueLabel`, the `aria-valuetext` screen readers announce — from the raw
25
+ * `value` and `max`. Receives `null` / `undefined` when the row has no value
26
+ * yet, so it picks its own placeholder (the built-in forms use `–`).
27
+ * @param value - Current value, or none.
28
+ * @param max - Maximum value (denominator).
29
+ * @example (value) => value?.toLocaleString() ?? "–"
24
30
  */
25
- interface ProgressProps extends React.ComponentProps<typeof ProgressPrimitive.Root> {
31
+ type ProgressValueFormatter = (value: number | null | undefined, max: number) => string;
32
+ /**
33
+ * A `label` that is rendered but cannot name the bar — an element such as a
34
+ * `Rating` or an icon (wrap several in a fragment). Always paired with
35
+ * `ariaLabel`. Text and numbers are not node labels: they name the bar
36
+ * themselves.
37
+ */
38
+ type ProgressNodeLabel = React.ReactElement;
39
+ /**
40
+ * Props shared by every Progress, whatever its label is.
41
+ */
42
+ interface ProgressBaseProps extends React.ComponentProps<typeof ProgressPrimitive.Root> {
26
43
  /**
27
44
  * Required data-hook attribute for testing and component identification
28
45
  */
29
46
  dataHook: string;
30
47
  /**
31
- * Optional tracking element identifier for analytics
48
+ * Current value, measured against `max`. Drives the fill, the value column
49
+ * and `aria-valuenow`; out-of-range values are clamped to `0–max` for the
50
+ * bar while the column prints the raw figure. Omit it (or pass `null`) for a
51
+ * placeholder row — the bar stays empty and the column shows `–`.
32
52
  */
33
- trackingEl?: string;
53
+ value?: number | null;
34
54
  /**
35
- * Optional tracking label for analytics
55
+ * Maximum value — the denominator for the fill and the displayed value. For
56
+ * a set of rows that share one scale (a review breakdown), pass the same
57
+ * `max` to every row.
58
+ * @default 100
36
59
  */
37
- trackingLabel?: string;
60
+ max?: number;
38
61
  /**
39
- * Accessible label for the progress bar for screen readers
40
- * @default "Progress"
62
+ * Optional tracking element identifier for analytics
41
63
  */
42
- ariaLabel?: string;
64
+ trackingEl?: string;
43
65
  /**
44
- * Optional visible label text displayed to the left of the progress bar.
45
- * Rendered inside a fixed-width column (see `labelWidth`); longer labels
46
- * wrap onto further lines while the bar and value stay in their columns.
66
+ * Optional tracking label for analytics
47
67
  */
48
- label?: string;
68
+ trackingLabel?: string;
49
69
  /**
50
70
  * Width of the label column: `"20%"` … `"50%"` of the row in 10% steps, or
51
71
  * `"auto"`. Every row that uses the same percentage starts its bar at the
@@ -79,6 +99,21 @@ interface ProgressProps extends React.ComponentProps<typeof ProgressPrimitive.Ro
79
99
  * @default "%"
80
100
  */
81
101
  unit?: string;
102
+ /**
103
+ * Replaces the built-in `unit` forms with your own text for the value column,
104
+ * e.g. a raw count (`1,234`) or a remaining amount (`15 min left`). The same
105
+ * text is announced as the bar's `aria-valuetext` (unless you pass Radix's
106
+ * own `getValueLabel`). The column is sized to the wider of
107
+ * `valueFormatter(0, max)` and `valueFormatter(max, max)` so rows still end
108
+ * at the same x-position — the formatter's widest output must be at one of
109
+ * the two extremes, which holds for counts, percentages and remaining
110
+ * amounts. Pair
111
+ * it with a `value` / `max` that describe the real measurement — a count out
112
+ * of the largest count — rather than a precomputed percentage, so
113
+ * `aria-valuenow` stays honest.
114
+ * @example (value) => value?.toLocaleString() ?? "–"
115
+ */
116
+ valueFormatter?: ProgressValueFormatter;
82
117
  /**
83
118
  * Custom class name for the indicator (progress fill)
84
119
  * Use this to customize the color, e.g., "bg-chart-red"
@@ -90,6 +125,76 @@ interface ProgressProps extends React.ComponentProps<typeof ProgressPrimitive.Ro
90
125
  */
91
126
  disabled?: boolean;
92
127
  }
128
+ /**
129
+ * The label column and the bar's accessible name, as a pair.
130
+ *
131
+ * A text `label` names the bar by itself (`aria-labelledby` points at it). Any
132
+ * other node — a Rating, an icon — is visible but cannot name anything, so it
133
+ * must come with an explicit `ariaLabel`; the union makes TypeScript insist on
134
+ * that pairing instead of letting a bar ship with an empty accessible name.
135
+ */
136
+ /**
137
+ * Text label: names the bar on its own, so `ariaLabel` is optional.
138
+ */
139
+ interface ProgressTextLabelProps {
140
+ /**
141
+ * Optional visible label text displayed to the left of the progress bar.
142
+ * Rendered inside a fixed-width column (see `labelWidth`); longer labels
143
+ * wrap onto further lines while the bar and value stay in their columns.
144
+ */
145
+ label?: string | number;
146
+ /**
147
+ * Accessible label for the progress bar for screen readers. Only used when
148
+ * there is no visible text `label`.
149
+ * @default "Progress"
150
+ */
151
+ ariaLabel?: string;
152
+ }
153
+ /**
154
+ * Element label: cannot name the bar, so `ariaLabel` is required.
155
+ */
156
+ interface ProgressNodeLabelProps {
157
+ /**
158
+ * Visible label rendered as an element — a `Rating`, an icon — in the same
159
+ * fixed-width column a text label uses (see `labelWidth`), vertically
160
+ * centred against the bar. Mark decorative icons `aria-hidden`.
161
+ */
162
+ label: ProgressNodeLabel;
163
+ /**
164
+ * Accessible name for the bar — required with a node label, because the
165
+ * node cannot name it: `aria-labelledby` would resolve to nothing.
166
+ * @example "4 star reviews"
167
+ */
168
+ ariaLabel: string;
169
+ }
170
+ /**
171
+ * What the component's JSX signature accepts: the label pair is a union, so an
172
+ * element `label` cannot be passed without its `ariaLabel`. Use this type when
173
+ * a wrapper should carry the same guarantee; `Omit`/`Pick` over the union would
174
+ * collapse it.
175
+ */
176
+ type ProgressStrictProps = ProgressBaseProps & (ProgressTextLabelProps | ProgressNodeLabelProps);
177
+ /**
178
+ * Props for the Progress component — the extendable, loose form (`interface X
179
+ * extends ProgressProps` keeps working). `label` is text, a number or an
180
+ * element; the element ⇒ `ariaLabel` pairing is enforced where it matters, on
181
+ * the component's own signature (`ProgressStrictProps`), so a value typed as
182
+ * `ProgressProps` with an element label must be narrowed before it is spread
183
+ * into `<Progress>`.
184
+ */
185
+ interface ProgressProps extends ProgressBaseProps {
186
+ /**
187
+ * Visible label: text (wraps inside the label column), a number, or an
188
+ * element such as a `Rating` or an icon — an element requires `ariaLabel`.
189
+ */
190
+ label?: string | number | ProgressNodeLabel;
191
+ /**
192
+ * Accessible label for the progress bar. Optional with a text label (the
193
+ * text names the bar); required with an element label.
194
+ * @default "Progress"
195
+ */
196
+ ariaLabel?: string;
197
+ }
93
198
  /**
94
199
  * Progress component for displaying loading states and task completion.
95
200
  * Built on Radix UI Progress primitive with Framer Motion animation.
@@ -98,9 +203,11 @@ interface ProgressProps extends React.ComponentProps<typeof ProgressPrimitive.Ro
98
203
  * a fixed-width label column, the bar filling the remaining space, and a
99
204
  * right-aligned value column sized to the widest value it can show — so rows
100
205
  * stacked in a card share the same bar start position and width, even when
101
- * a label wraps onto two lines.
206
+ * a label wraps onto two lines. The label may be text or any node (a Rating,
207
+ * an icon — then `ariaLabel` is required), and `valueFormatter` replaces the
208
+ * built-in percentage / fraction forms with any text.
102
209
  */
103
- declare const Progress: React.ForwardRefExoticComponent<Omit<ProgressProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
210
+ declare const Progress: React.ForwardRefExoticComponent<(Omit<ProgressBaseProps & ProgressTextLabelProps, "ref"> | Omit<ProgressBaseProps & ProgressNodeLabelProps, "ref">) & React.RefAttributes<HTMLDivElement>>;
104
211
  export { Progress };
105
- export type { ProgressProps, ProgressColor, ProgressSize, ProgressLabelWidth };
212
+ export type { ProgressProps, ProgressStrictProps, ProgressBaseProps, ProgressColor, ProgressSize, ProgressLabelWidth, ProgressValueFormatter, ProgressNodeLabel, };
106
213
  //# sourceMappingURL=progress.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../src/components/progress.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAO9D;;;;;;GAMG;AACH,KAAK,aAAa,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE3D;;;;GAIG;AACH,KAAK,YAAY,GAAG,IAAI,GAAG,IAAI,CAAC;AA6ChC;;;GAGG;AACH,KAAK,kBAAkB,GAAG,MAAM,GAAG,KAAK,GAAG,K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