@vvedantb/ui 0.53.0 → 0.54.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.
@@ -6,6 +6,7 @@ import { CountPop } from "./count-pop.js";
6
6
  import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "./dropdown-menu.js";
7
7
  import { Separator } from "./separator.js";
8
8
  import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./tooltip.js";
9
+ import { useUiConfig } from "./ui-config.js";
9
10
  import { IconDots, IconX } from "@tabler/icons-react";
10
11
 
11
12
  /**
@@ -13,82 +14,222 @@ import { IconDots, IconX } from "@tabler/icons-react";
13
14
  * handler it should run, so confirm dialogs, Alt-to-skip and any per-surface
14
15
  * bookkeeping stay with the caller that owns that state.
15
16
  */
17
+
18
+ /**
19
+ * How a bar button shows its label:
20
+ * - `"inline"` (default): icon and label; the label hides below `sm`
21
+ * (HeroUI "responsive labels").
22
+ * - `"tooltip"`: icon-only at every width; the label shows in a tooltip.
23
+ */
16
24
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
25
+ const barButtonToneClass = action => action.destructive ? "text-destructive hover:bg-destructive/10 hover:text-destructive" : "text-muted-foreground hover:bg-surface-secondary hover:text-foreground";
26
+
27
+ /**
28
+ * An icon-only button with its label in a tooltip. The tooltip trigger is a
29
+ * wrapper span, so the tooltip still shows while the button is disabled (a
30
+ * disabled button gets no pointer events).
31
+ */
32
+ function TooltipBarButton(t0) {
33
+ const $ = _c(21);
34
+ const {
35
+ action,
36
+ disabled
37
+ } = t0;
38
+ const Icon = action.icon;
39
+ const t1 = action.label;
40
+ const t2 = action.onClick;
41
+ let t3;
42
+ if ($[0] !== action) {
43
+ t3 = barButtonToneClass(action);
44
+ $[0] = action;
45
+ $[1] = t3;
46
+ } else {
47
+ t3 = $[1];
48
+ }
49
+ const t4 = `motion-press relative inline-flex size-9 items-center justify-center rounded-lg active:scale-[0.96] disabled:pointer-events-none disabled:opacity-30 ${t3}`;
50
+ let t5;
51
+ if ($[2] !== Icon) {
52
+ t5 = /*#__PURE__*/_jsx(Icon, {
53
+ size: 17
54
+ });
55
+ $[2] = Icon;
56
+ $[3] = t5;
57
+ } else {
58
+ t5 = $[3];
59
+ }
60
+ let t6;
61
+ if ($[4] !== action.showSkipHint) {
62
+ t6 = action.showSkipHint ? /*#__PURE__*/_jsx(ConfirmSkipHint, {
63
+ className: "absolute -right-1 -top-1"
64
+ }) : null;
65
+ $[4] = action.showSkipHint;
66
+ $[5] = t6;
67
+ } else {
68
+ t6 = $[5];
69
+ }
70
+ let t7;
71
+ if ($[6] !== action.label || $[7] !== action.onClick || $[8] !== disabled || $[9] !== t4 || $[10] !== t5 || $[11] !== t6) {
72
+ t7 = /*#__PURE__*/_jsx(TooltipTrigger, {
73
+ asChild: true,
74
+ children: /*#__PURE__*/_jsx("span", {
75
+ className: "inline-flex shrink-0",
76
+ children: /*#__PURE__*/_jsxs("button", {
77
+ type: "button",
78
+ "aria-label": t1,
79
+ onClick: t2,
80
+ disabled: disabled,
81
+ className: t4,
82
+ children: [t5, t6]
83
+ })
84
+ })
85
+ });
86
+ $[6] = action.label;
87
+ $[7] = action.onClick;
88
+ $[8] = disabled;
89
+ $[9] = t4;
90
+ $[10] = t5;
91
+ $[11] = t6;
92
+ $[12] = t7;
93
+ } else {
94
+ t7 = $[12];
95
+ }
96
+ let t8;
97
+ if ($[13] !== action.label || $[14] !== action.showSkipHint) {
98
+ t8 = action.showSkipHint ? skipConfirmTitle(action.label) : action.label;
99
+ $[13] = action.label;
100
+ $[14] = action.showSkipHint;
101
+ $[15] = t8;
102
+ } else {
103
+ t8 = $[15];
104
+ }
105
+ let t9;
106
+ if ($[16] !== t8) {
107
+ t9 = /*#__PURE__*/_jsx(TooltipContent, {
108
+ side: "top",
109
+ className: "text-xs",
110
+ sideOffset: 8,
111
+ children: t8
112
+ });
113
+ $[16] = t8;
114
+ $[17] = t9;
115
+ } else {
116
+ t9 = $[17];
117
+ }
118
+ let t10;
119
+ if ($[18] !== t7 || $[19] !== t9) {
120
+ t10 = /*#__PURE__*/_jsxs(Tooltip, {
121
+ children: [t7, t9]
122
+ });
123
+ $[18] = t7;
124
+ $[19] = t9;
125
+ $[20] = t10;
126
+ } else {
127
+ t10 = $[20];
128
+ }
129
+ return t10;
130
+ }
131
+
17
132
  /**
18
133
  * A single labelled button inside the action bar. The label collapses to
19
134
  * icon-only below the `sm` breakpoint (HeroUI "responsive labels" pattern).
20
135
  */
21
136
  function BarButton(t0) {
22
- const $ = _c(18);
137
+ const $ = _c(23);
23
138
  const {
24
139
  action,
25
- disabled
140
+ disabled,
141
+ labels
26
142
  } = t0;
143
+ if (labels === "tooltip") {
144
+ let t1;
145
+ if ($[0] !== action || $[1] !== disabled) {
146
+ t1 = /*#__PURE__*/_jsx(TooltipBarButton, {
147
+ action: action,
148
+ disabled: disabled
149
+ });
150
+ $[0] = action;
151
+ $[1] = disabled;
152
+ $[2] = t1;
153
+ } else {
154
+ t1 = $[2];
155
+ }
156
+ return t1;
157
+ }
27
158
  const Icon = action.icon;
28
- let t1;
29
- if ($[0] !== action.label || $[1] !== action.showSkipHint) {
30
- t1 = action.showSkipHint ? skipConfirmTitle(action.label) : action.label;
31
- $[0] = action.label;
32
- $[1] = action.showSkipHint;
33
- $[2] = t1;
159
+ const t1 = action.label;
160
+ let t2;
161
+ if ($[3] !== action.label || $[4] !== action.showSkipHint) {
162
+ t2 = action.showSkipHint ? skipConfirmTitle(action.label) : action.label;
163
+ $[3] = action.label;
164
+ $[4] = action.showSkipHint;
165
+ $[5] = t2;
34
166
  } else {
35
- t1 = $[2];
167
+ t2 = $[5];
36
168
  }
37
- const t2 = `motion-press inline-flex h-9 shrink-0 items-center gap-1.5 rounded-lg px-2.5 text-sm font-medium active:scale-[0.96] disabled:pointer-events-none disabled:opacity-30 ${action.destructive ? "text-destructive hover:bg-destructive/10 hover:text-destructive" : "text-muted-foreground hover:bg-surface-secondary hover:text-foreground"}`;
38
- let t3;
39
- if ($[3] !== Icon) {
40
- t3 = /*#__PURE__*/_jsx(Icon, {
169
+ const t3 = action.onClick;
170
+ let t4;
171
+ if ($[6] !== action) {
172
+ t4 = barButtonToneClass(action);
173
+ $[6] = action;
174
+ $[7] = t4;
175
+ } else {
176
+ t4 = $[7];
177
+ }
178
+ const t5 = `motion-press inline-flex h-9 shrink-0 items-center gap-1.5 rounded-lg px-2.5 text-sm font-medium active:scale-[0.96] disabled:pointer-events-none disabled:opacity-30 ${t4}`;
179
+ let t6;
180
+ if ($[8] !== Icon) {
181
+ t6 = /*#__PURE__*/_jsx(Icon, {
41
182
  size: 17
42
183
  });
43
- $[3] = Icon;
44
- $[4] = t3;
184
+ $[8] = Icon;
185
+ $[9] = t6;
45
186
  } else {
46
- t3 = $[4];
187
+ t6 = $[9];
47
188
  }
48
- const t4 = action.shortLabel ?? action.label;
49
- let t5;
50
- if ($[5] !== t4) {
51
- t5 = /*#__PURE__*/_jsx("span", {
189
+ const t7 = action.shortLabel ?? action.label;
190
+ let t8;
191
+ if ($[10] !== t7) {
192
+ t8 = /*#__PURE__*/_jsx("span", {
52
193
  className: "hidden sm:inline",
53
- children: t4
194
+ children: t7
54
195
  });
55
- $[5] = t4;
56
- $[6] = t5;
196
+ $[10] = t7;
197
+ $[11] = t8;
57
198
  } else {
58
- t5 = $[6];
199
+ t8 = $[11];
59
200
  }
60
- let t6;
61
- if ($[7] !== action.showSkipHint) {
62
- t6 = action.showSkipHint ? /*#__PURE__*/_jsx(ConfirmSkipHint, {}) : null;
63
- $[7] = action.showSkipHint;
64
- $[8] = t6;
201
+ let t9;
202
+ if ($[12] !== action.showSkipHint) {
203
+ t9 = action.showSkipHint ? /*#__PURE__*/_jsx(ConfirmSkipHint, {}) : null;
204
+ $[12] = action.showSkipHint;
205
+ $[13] = t9;
65
206
  } else {
66
- t6 = $[8];
207
+ t9 = $[13];
67
208
  }
68
- let t7;
69
- if ($[9] !== action.label || $[10] !== action.onClick || $[11] !== disabled || $[12] !== t1 || $[13] !== t2 || $[14] !== t3 || $[15] !== t5 || $[16] !== t6) {
70
- t7 = /*#__PURE__*/_jsxs("button", {
209
+ let t10;
210
+ if ($[14] !== action.label || $[15] !== action.onClick || $[16] !== disabled || $[17] !== t2 || $[18] !== t5 || $[19] !== t6 || $[20] !== t8 || $[21] !== t9) {
211
+ t10 = /*#__PURE__*/_jsxs("button", {
71
212
  type: "button",
72
- "aria-label": action.label,
73
- title: t1,
74
- onClick: action.onClick,
213
+ "aria-label": t1,
214
+ title: t2,
215
+ onClick: t3,
75
216
  disabled: disabled,
76
- className: t2,
77
- children: [t3, t5, t6]
217
+ className: t5,
218
+ children: [t6, t8, t9]
78
219
  });
79
- $[9] = action.label;
80
- $[10] = action.onClick;
81
- $[11] = disabled;
82
- $[12] = t1;
83
- $[13] = t2;
84
- $[14] = t3;
85
- $[15] = t5;
86
- $[16] = t6;
87
- $[17] = t7;
220
+ $[14] = action.label;
221
+ $[15] = action.onClick;
222
+ $[16] = disabled;
223
+ $[17] = t2;
224
+ $[18] = t5;
225
+ $[19] = t6;
226
+ $[20] = t8;
227
+ $[21] = t9;
228
+ $[22] = t10;
88
229
  } else {
89
- t7 = $[17];
230
+ t10 = $[22];
90
231
  }
91
- return t7;
232
+ return t10;
92
233
  }
93
234
 
94
235
  /**
@@ -98,7 +239,7 @@ function BarButton(t0) {
98
239
  * the destructive slot on the right. Behaviour arrives as `onClick` per action.
99
240
  */
100
241
  export function BulkActionBar(t0) {
101
- const $ = _c(15);
242
+ const $ = _c(16);
102
243
  const {
103
244
  isSelecting,
104
245
  selectedCount,
@@ -109,12 +250,15 @@ export function BulkActionBar(t0) {
109
250
  primaryActions,
110
251
  moreActions,
111
252
  destructiveAction,
112
- barKey
253
+ barKey,
254
+ labels: labelsProp
113
255
  } = t0;
256
+ const configLabels = useUiConfig("BulkActionBar")?.labels;
257
+ const labels = labelsProp ?? configLabels ?? "inline";
114
258
  const hasSelection = selectedCount > 0;
115
259
  const allSelected = totalCount > 0 && selectedCount >= totalCount;
116
260
  let t1;
117
- if ($[0] !== allSelected || $[1] !== barKey || $[2] !== destructiveAction || $[3] !== hasSelection || $[4] !== isSelecting || $[5] !== moreActions || $[6] !== onClearSelection || $[7] !== onExitSelect || $[8] !== onSelectAll || $[9] !== primaryActions || $[10] !== selectedCount || $[11] !== totalCount) {
261
+ if ($[0] !== allSelected || $[1] !== barKey || $[2] !== destructiveAction || $[3] !== hasSelection || $[4] !== isSelecting || $[5] !== labels || $[6] !== moreActions || $[7] !== onClearSelection || $[8] !== onExitSelect || $[9] !== onSelectAll || $[10] !== primaryActions || $[11] !== selectedCount || $[12] !== totalCount) {
118
262
  t1 = isSelecting && /*#__PURE__*/_jsx(m.div, {
119
263
  className: "absolute inset-x-0 bottom-3 z-20 flex justify-center px-4 pb-[env(safe-area-inset-bottom)]",
120
264
  initial: {
@@ -151,6 +295,7 @@ export function BulkActionBar(t0) {
151
295
  orientation: "vertical",
152
296
  className: "mx-1.5 h-5 shrink-0 bg-border"
153
297
  }), primaryActions.map(action => /*#__PURE__*/_jsx(BarButton, {
298
+ labels: labels,
154
299
  action: action,
155
300
  disabled: !hasSelection
156
301
  }, action.key)), moreActions && moreActions.length > 0 && /*#__PURE__*/_jsxs(DropdownMenu, {
@@ -185,6 +330,7 @@ export function BulkActionBar(t0) {
185
330
  orientation: "vertical",
186
331
  className: "mx-1.5 h-5 shrink-0 bg-border"
187
332
  }), /*#__PURE__*/_jsx(BarButton, {
333
+ labels: labels,
188
334
  action: destructiveAction,
189
335
  disabled: !hasSelection
190
336
  })]
@@ -218,27 +364,28 @@ export function BulkActionBar(t0) {
218
364
  $[2] = destructiveAction;
219
365
  $[3] = hasSelection;
220
366
  $[4] = isSelecting;
221
- $[5] = moreActions;
222
- $[6] = onClearSelection;
223
- $[7] = onExitSelect;
224
- $[8] = onSelectAll;
225
- $[9] = primaryActions;
226
- $[10] = selectedCount;
227
- $[11] = totalCount;
228
- $[12] = t1;
367
+ $[5] = labels;
368
+ $[6] = moreActions;
369
+ $[7] = onClearSelection;
370
+ $[8] = onExitSelect;
371
+ $[9] = onSelectAll;
372
+ $[10] = primaryActions;
373
+ $[11] = selectedCount;
374
+ $[12] = totalCount;
375
+ $[13] = t1;
229
376
  } else {
230
- t1 = $[12];
377
+ t1 = $[13];
231
378
  }
232
379
  let t2;
233
- if ($[13] !== t1) {
380
+ if ($[14] !== t1) {
234
381
  t2 = /*#__PURE__*/_jsx(AnimatePresence, {
235
382
  initial: false,
236
383
  children: t1
237
384
  });
238
- $[13] = t1;
239
- $[14] = t2;
385
+ $[14] = t1;
386
+ $[15] = t2;
240
387
  } else {
241
- t2 = $[14];
388
+ t2 = $[15];
242
389
  }
243
390
  return t2;
244
391
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vvedantb/ui",
3
- "version": "0.53.0",
3
+ "version": "0.54.0",
4
4
  "license": "MIT",
5
5
  "description": "Shared React 19 UI for web apps: one main JavaScript entry (primitives, shell pieces, app helpers including the Convex and Clerk provider, VITE env parsing and ensure-user, artifact viewers over the @vvedantb/server artifacts core, native tokens), third-party brand logos (also @vvedantb/ui/logos), motion-driven animated SVG icons (@vvedantb/ui/icons/animated), a client entry without @vvedantb/server, convex or Clerk for Chrome extensions, design-token CSS, shared Tailwind v4 CSS, a Tailwind preset and packaged Instrument Sans fonts.",
6
6
  "type": "module",
package/src/client.ts CHANGED
@@ -38,7 +38,7 @@ export { RollingNumber } from "./ui/rolling-number";
38
38
  export { ConfettiBurst } from "./ui/confetti-burst";
39
39
  export { SendQueueIcon } from "./ui/send-queue-icon";
40
40
  export { BulkActionBar } from "./ui/bulk-action-bar";
41
- export type { BulkActionBarProps, BulkBarAction } from "./ui/bulk-action-bar";
41
+ export type { BulkActionBarConfig, BulkActionBarProps, BulkBarAction, BulkBarLabels } from "./ui/bulk-action-bar";
42
42
  export { CopyLinkMenuItem } from "./ui/copy-link-menu-item";
43
43
  export { ToggleSearch } from "./ui/toggle-search";
44
44
  export type { ToggleSearchProps, ToggleSearchVariant } from "./ui/toggle-search";
package/src/index.ts CHANGED
@@ -34,7 +34,7 @@ export { RollingNumber } from "./ui/rolling-number";
34
34
  export { ConfettiBurst } from "./ui/confetti-burst";
35
35
  export { SendQueueIcon } from "./ui/send-queue-icon";
36
36
  export { BulkActionBar } from "./ui/bulk-action-bar";
37
- export type { BulkActionBarProps, BulkBarAction } from "./ui/bulk-action-bar";
37
+ export type { BulkActionBarConfig, BulkActionBarProps, BulkBarAction, BulkBarLabels } from "./ui/bulk-action-bar";
38
38
  export { CopyLinkMenuItem } from "./ui/copy-link-menu-item";
39
39
  export { ToggleSearch } from "./ui/toggle-search";
40
40
  export type { ToggleSearchProps, ToggleSearchVariant } from "./ui/toggle-search";
@@ -10,6 +10,7 @@ import {
10
10
  } from "./dropdown-menu";
11
11
  import { Separator } from "./separator";
12
12
  import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./tooltip";
13
+ import { useUiConfig } from "./ui-config";
13
14
  import { IconDots, IconX } from "@tabler/icons-react";
14
15
  import type { ComponentType } from "react";
15
16
 
@@ -22,7 +23,7 @@ export interface BulkBarAction {
22
23
  key: string;
23
24
  /** Full label used in the More menu and for accessibility. */
24
25
  label: string;
25
- /** Shorter label shown inline in the bar (defaults to `label`). */
26
+ /** Shorter label shown inline in the bar (defaults to `label`). Unused with `labels="tooltip"`. */
26
27
  shortLabel?: string;
27
28
  icon: ComponentType<{ size: number; className?: string }>;
28
29
  destructive?: boolean;
@@ -31,6 +32,19 @@ export interface BulkBarAction {
31
32
  onClick: () => void;
32
33
  }
33
34
 
35
+ /**
36
+ * How a bar button shows its label:
37
+ * - `"inline"` (default): icon and label; the label hides below `sm`
38
+ * (HeroUI "responsive labels").
39
+ * - `"tooltip"`: icon-only at every width; the label shows in a tooltip.
40
+ */
41
+ export type BulkBarLabels = "inline" | "tooltip";
42
+
43
+ export interface BulkActionBarConfig {
44
+ /** Default `labels` for every bar in the app. A `labels` prop wins. */
45
+ labels?: BulkBarLabels;
46
+ }
47
+
34
48
  export interface BulkActionBarProps {
35
49
  isSelecting: boolean;
36
50
  selectedCount: number;
@@ -43,6 +57,51 @@ export interface BulkActionBarProps {
43
57
  destructiveAction?: BulkBarAction;
44
58
  /** Motion key for the presence animation, e.g. "quick-tasks-bulk-bar". */
45
59
  barKey: string;
60
+ /** Label style for the action buttons (see `BulkBarLabels`). */
61
+ labels?: BulkBarLabels;
62
+ }
63
+
64
+ const barButtonToneClass = (action: BulkBarAction) =>
65
+ action.destructive
66
+ ? "text-destructive hover:bg-destructive/10 hover:text-destructive"
67
+ : "text-muted-foreground hover:bg-surface-secondary hover:text-foreground";
68
+
69
+ /**
70
+ * An icon-only button with its label in a tooltip. The tooltip trigger is a
71
+ * wrapper span, so the tooltip still shows while the button is disabled (a
72
+ * disabled button gets no pointer events).
73
+ */
74
+ function TooltipBarButton({
75
+ action,
76
+ disabled,
77
+ }: {
78
+ action: BulkBarAction;
79
+ disabled: boolean;
80
+ }) {
81
+ const Icon = action.icon;
82
+ return (
83
+ <Tooltip>
84
+ <TooltipTrigger asChild>
85
+ <span className="inline-flex shrink-0">
86
+ <button
87
+ type="button"
88
+ aria-label={action.label}
89
+ onClick={action.onClick}
90
+ disabled={disabled}
91
+ className={`motion-press relative inline-flex size-9 items-center justify-center rounded-lg active:scale-[0.96] disabled:pointer-events-none disabled:opacity-30 ${barButtonToneClass(action)}`}
92
+ >
93
+ <Icon size={17} />
94
+ {action.showSkipHint ? (
95
+ <ConfirmSkipHint className="absolute -right-1 -top-1" />
96
+ ) : null}
97
+ </button>
98
+ </span>
99
+ </TooltipTrigger>
100
+ <TooltipContent side="top" className="text-xs" sideOffset={8}>
101
+ {action.showSkipHint ? skipConfirmTitle(action.label) : action.label}
102
+ </TooltipContent>
103
+ </Tooltip>
104
+ );
46
105
  }
47
106
 
48
107
  /**
@@ -52,10 +111,15 @@ export interface BulkActionBarProps {
52
111
  function BarButton({
53
112
  action,
54
113
  disabled,
114
+ labels,
55
115
  }: {
56
116
  action: BulkBarAction;
57
117
  disabled: boolean;
118
+ labels: BulkBarLabels;
58
119
  }) {
120
+ if (labels === "tooltip") {
121
+ return <TooltipBarButton action={action} disabled={disabled} />;
122
+ }
59
123
  const Icon = action.icon;
60
124
  return (
61
125
  <button
@@ -69,11 +133,7 @@ function BarButton({
69
133
  // `motion-press`, not `transition-colors`: the destructive Delete takes
70
134
  // this same branch, so the highest-consequence control in the bar was the
71
135
  // one with no acknowledgement at all before its confirm dialog appeared.
72
- className={`motion-press inline-flex h-9 shrink-0 items-center gap-1.5 rounded-lg px-2.5 text-sm font-medium active:scale-[0.96] disabled:pointer-events-none disabled:opacity-30 ${
73
- action.destructive
74
- ? "text-destructive hover:bg-destructive/10 hover:text-destructive"
75
- : "text-muted-foreground hover:bg-surface-secondary hover:text-foreground"
76
- }`}
136
+ className={`motion-press inline-flex h-9 shrink-0 items-center gap-1.5 rounded-lg px-2.5 text-sm font-medium active:scale-[0.96] disabled:pointer-events-none disabled:opacity-30 ${barButtonToneClass(action)}`}
77
137
  >
78
138
  <Icon size={17} />
79
139
  <span className="hidden sm:inline">
@@ -101,7 +161,10 @@ export function BulkActionBar({
101
161
  moreActions,
102
162
  destructiveAction,
103
163
  barKey,
164
+ labels: labelsProp,
104
165
  }: BulkActionBarProps) {
166
+ const configLabels = useUiConfig("BulkActionBar")?.labels;
167
+ const labels = labelsProp ?? configLabels ?? "inline";
105
168
  const hasSelection = selectedCount > 0;
106
169
  const allSelected = totalCount > 0 && selectedCount >= totalCount;
107
170
 
@@ -150,6 +213,7 @@ export function BulkActionBar({
150
213
  {/* Content: primary actions + More dropdown */}
151
214
  {primaryActions.map((action) => (
152
215
  <BarButton
216
+ labels={labels}
153
217
  key={action.key}
154
218
  action={action}
155
219
  disabled={!hasSelection}
@@ -193,6 +257,7 @@ export function BulkActionBar({
193
257
  className="mx-1.5 h-5 shrink-0 bg-border"
194
258
  />
195
259
  <BarButton
260
+ labels={labels}
196
261
  action={destructiveAction}
197
262
  disabled={!hasSelection}
198
263
  />
@@ -2,6 +2,7 @@ import * as React from "react";
2
2
  import type { ClassValue } from "clsx";
3
3
  import { cn } from "../utils/cn";
4
4
  import type { AccordionConfig } from "./accordion";
5
+ import type { BulkActionBarConfig } from "./bulk-action-bar";
5
6
  import type { ActivityQuestionCardConfig } from "../ai-elements/activity-question";
6
7
  import type { ActivityTasksConfig } from "../ai-elements/activity-shared";
7
8
  import type { ArtifactConfig } from "../ai-elements/artifact";
@@ -82,6 +83,7 @@ export interface UiConfig {
82
83
  Artifact?: ArtifactConfig;
83
84
  Attachments?: AttachmentsConfig;
84
85
  Badge?: BadgeConfig;
86
+ BulkActionBar?: BulkActionBarConfig;
85
87
  Button?: ButtonConfig;
86
88
  ButtonGroup?: ButtonGroupConfig;
87
89
  Calendar?: CalendarConfig;