@actioneer/ads 0.5.7 → 0.5.8
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.
- package/bin/ads-init.mjs +6 -0
- package/components/accordion.js +50 -48
- package/components/agent-icon.d.ts +12 -0
- package/components/agent-icon.js +133 -120
- package/components/ai-elements/chain-of-thought.d.ts +1 -1
- package/components/ai-elements/chain-of-thought.js +108 -108
- package/components/ai-elements/chart.js +16 -14
- package/components/ai-elements/inline-citation.js +41 -41
- package/components/ai-elements/message.js +4 -4
- package/components/ai-elements/queue.js +7 -7
- package/components/ai-elements/research-activity.js +114 -114
- package/components/ai-elements/shimmer.d.ts +2 -2
- package/components/ai-elements/speech-input.js +28 -28
- package/components/ai-elements/task-progress.js +26 -16
- package/components/ai-elements/task.js +17 -17
- package/components/ai-elements/tool.js +6 -6
- package/components/ai-elements/transcript.js +6 -5
- package/components/ai-elements/voice.js +1 -1
- package/components/alert.js +10 -10
- package/components/answer-sources.js +1 -1
- package/components/answer.js +115 -114
- package/components/assistant-ui/action-bar.js +94 -48
- package/components/assistant-ui/attachment.js +103 -75
- package/components/assistant-ui/badge.d.ts +1 -1
- package/components/assistant-ui/badge.js +17 -17
- package/components/assistant-ui/chain-of-thought.d.ts +1 -1
- package/components/assistant-ui/composer-add-context.js +9 -9
- package/components/assistant-ui/composer-deep-research.js +5 -5
- package/components/assistant-ui/composer-harness.js +11 -9
- package/components/assistant-ui/composer-trigger-popover.js +45 -34
- package/components/assistant-ui/composer.js +59 -59
- package/components/assistant-ui/error.js +14 -14
- package/components/assistant-ui/file.d.ts +1 -1
- package/components/assistant-ui/image.d.ts +1 -1
- package/components/assistant-ui/image.js +113 -103
- package/components/assistant-ui/markdown-text.js +18 -18
- package/components/assistant-ui/message.js +46 -45
- package/components/assistant-ui/quote.js +1 -1
- package/components/assistant-ui/reasoning.d.ts +1 -1
- package/components/assistant-ui/reasoning.js +66 -77
- package/components/assistant-ui/suggestions.js +4 -4
- package/components/assistant-ui/thread.js +22 -22
- package/components/assistant-ui/tool-fallback.js +60 -63
- package/components/assistant-ui/tool-group.d.ts +1 -1
- package/components/assistant-ui/tool-group.js +36 -42
- package/components/audio-waveform.js +25 -24
- package/components/autocomplete.d.ts +1 -0
- package/components/autocomplete.js +45 -43
- package/components/avatar.js +24 -24
- package/components/badge.d.ts +1 -1
- package/components/breadcrumbs.js +2 -2
- package/components/button.d.ts +2 -2
- package/components/button.js +22 -20
- package/components/card.js +8 -8
- package/components/carousel.js +105 -104
- package/components/chart.js +9 -7
- package/components/checkbox.js +74 -38
- package/components/chip.d.ts +1 -1
- package/components/code-block.js +3 -3
- package/components/collapsible.js +67 -23
- package/components/connector-card.js +6 -6
- package/components/drawer.d.ts +15 -10
- package/components/drawer.js +78 -77
- package/components/dropdown.d.ts +2 -0
- package/components/dropdown.js +88 -79
- package/components/empty-state.d.ts +1 -1
- package/components/empty-state.js +7 -7
- package/components/field.d.ts +4 -0
- package/components/field.js +45 -34
- package/components/file-dropzone.js +12 -12
- package/components/index.d.ts +3 -0
- package/components/index.js +584 -558
- package/components/input-field.js +51 -46
- package/components/input.js +20 -20
- package/components/link.js +9 -9
- package/components/modal.js +105 -73
- package/components/navbar.d.ts +1 -1
- package/components/navbar.js +1 -1
- package/components/number-field.js +38 -29
- package/components/page-header.js +12 -12
- package/components/pagination.js +19 -19
- package/components/panel.js +2 -2
- package/components/pixel-blast-svg.js +3 -3
- package/components/pixel-icon.js +0 -1
- package/components/popover.d.ts +1 -1
- package/components/popover.js +66 -64
- package/components/progress-circle.js +36 -32
- package/components/progress.js +28 -24
- package/components/radio.js +59 -49
- package/components/resizable-panel.js +1 -1
- package/components/reveal.d.ts +2 -2
- package/components/ripple.d.ts +3 -3
- package/components/scroll-area.js +17 -16
- package/components/segmented.js +26 -26
- package/components/select.d.ts +2 -0
- package/components/select.js +61 -57
- package/components/setting-row.js +45 -42
- package/components/sidebar.js +131 -127
- package/components/skeleton.js +5 -5
- package/components/spinner.d.ts +13 -4
- package/components/spinner.js +42 -42
- package/components/stepper.js +21 -21
- package/components/switch.js +41 -39
- package/components/table.d.ts +9 -0
- package/components/table.js +370 -247
- package/components/tabs.js +149 -137
- package/components/toast.js +66 -66
- package/components/tooltip.js +2 -2
- package/components/tree.js +62 -51
- package/components/typography.d.ts +2 -1
- package/components/typography.js +33 -32
- package/components/ui/button.d.ts +2 -2
- package/components/ui/button.js +19 -19
- package/components/ui/collapsible.d.ts +1 -5
- package/components/ui/dialog.d.ts +3 -3
- package/components/ui/dialog.js +95 -58
- package/components/ui/tooltip.d.ts +2 -2
- package/components/ui/tooltip.js +67 -33
- package/components/viz-charts.js +95 -95
- package/demo/components/add-to-artifact.js +341 -0
- package/demo/lib/artifact-library.js +134 -0
- package/fonts/aribau-grotesk-medium.woff2 +0 -0
- package/fonts/aribau-grotesk-regular.woff2 +0 -0
- package/fonts.css +11 -11
- package/hooks/agents-ui/use-agent-audio-visualizer-aura.js +17 -16
- package/hooks/agents-ui/use-agent-audio-visualizer-wave.js +21 -20
- package/lib/icons.d.ts +4 -0
- package/lib/icons.js +103 -102
- package/lib/motion.d.ts +42 -39
- package/lib/motion.js +112 -52
- package/lib/spinner-mark.d.ts +9 -0
- package/lib/spinner-mark.js +98 -0
- package/llms.txt +52 -18
- package/manifest.json +240 -31
- package/package.json +1 -1
- package/styles.css +143 -124
- package/theme.css +90 -93
- package/components/ui/collapsible.js +0 -35
- package/fonts/aribau-grotesk-500.otf +0 -0
- package/fonts/aribau-grotesk-600.woff2 +0 -0
package/components/tabs.js
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as f, jsxs as
|
|
3
|
-
import * as
|
|
4
|
-
import { MotionConfig as
|
|
5
|
-
import { cva as
|
|
2
|
+
import { jsx as f, jsxs as L } from "react/jsx-runtime";
|
|
3
|
+
import * as r from "react";
|
|
4
|
+
import { MotionConfig as B, motion as P } from "motion/react";
|
|
5
|
+
import { cva as $ } from "class-variance-authority";
|
|
6
6
|
import { cn as b } from "../lib/cn.js";
|
|
7
|
-
import {
|
|
8
|
-
const
|
|
9
|
-
function
|
|
10
|
-
const e =
|
|
7
|
+
import { springControl as S } from "../lib/motion.js";
|
|
8
|
+
const I = (s, e, a) => `${s}-${e}-${encodeURIComponent(a).replaceAll("%", "_")}`, M = r.createContext(null);
|
|
9
|
+
function j(s) {
|
|
10
|
+
const e = r.useContext(M);
|
|
11
11
|
if (!e)
|
|
12
|
-
throw new Error(`<${
|
|
12
|
+
throw new Error(`<${s}> must be used within <Tabs>`);
|
|
13
13
|
return e;
|
|
14
14
|
}
|
|
15
|
-
const
|
|
15
|
+
const H = r.forwardRef(
|
|
16
16
|
({
|
|
17
|
-
className:
|
|
17
|
+
className: s,
|
|
18
18
|
value: e,
|
|
19
19
|
defaultValue: a,
|
|
20
|
-
onValueChange:
|
|
21
|
-
variant:
|
|
20
|
+
onValueChange: i,
|
|
21
|
+
variant: o = "primary",
|
|
22
22
|
orientation: l = "horizontal",
|
|
23
|
-
size:
|
|
24
|
-
children:
|
|
25
|
-
...
|
|
26
|
-
},
|
|
27
|
-
const h = e !== void 0, [
|
|
28
|
-
(
|
|
29
|
-
h || z(
|
|
23
|
+
size: u = "md",
|
|
24
|
+
children: R,
|
|
25
|
+
...A
|
|
26
|
+
}, k) => {
|
|
27
|
+
const h = e !== void 0, [N, z] = r.useState(a), w = r.useId().replaceAll(":", ""), d = r.useId(), y = r.useRef([]), v = r.useRef(/* @__PURE__ */ new Set()), x = h ? e : N, T = r.useCallback(
|
|
28
|
+
(t) => {
|
|
29
|
+
h || z(t), i == null || i(t);
|
|
30
30
|
},
|
|
31
|
-
[h,
|
|
32
|
-
), c =
|
|
33
|
-
y.current.includes(
|
|
34
|
-
}, []),
|
|
31
|
+
[h, i]
|
|
32
|
+
), c = r.useCallback((t) => {
|
|
33
|
+
y.current.includes(t) || y.current.push(t);
|
|
34
|
+
}, []), V = r.useMemo(
|
|
35
35
|
() => ({
|
|
36
36
|
value: x,
|
|
37
37
|
setValue: T,
|
|
38
38
|
baseId: w,
|
|
39
39
|
registerTab: c,
|
|
40
40
|
tabs: y,
|
|
41
|
-
disabled:
|
|
41
|
+
disabled: v,
|
|
42
42
|
thumbId: d,
|
|
43
|
-
variant:
|
|
43
|
+
variant: o,
|
|
44
44
|
orientation: l,
|
|
45
|
-
size:
|
|
45
|
+
size: u
|
|
46
46
|
}),
|
|
47
47
|
[
|
|
48
48
|
x,
|
|
@@ -50,36 +50,36 @@ const B = t.forwardRef(
|
|
|
50
50
|
w,
|
|
51
51
|
c,
|
|
52
52
|
d,
|
|
53
|
-
|
|
53
|
+
o,
|
|
54
54
|
l,
|
|
55
|
-
|
|
55
|
+
u
|
|
56
56
|
]
|
|
57
57
|
);
|
|
58
|
-
return /* @__PURE__ */ f(
|
|
58
|
+
return /* @__PURE__ */ f(M.Provider, { value: V, children: /* @__PURE__ */ f(
|
|
59
59
|
"div",
|
|
60
60
|
{
|
|
61
|
-
ref:
|
|
61
|
+
ref: k,
|
|
62
62
|
"data-orientation": l,
|
|
63
|
-
"data-variant":
|
|
63
|
+
"data-variant": o,
|
|
64
64
|
className: b(
|
|
65
65
|
"flex gap-4",
|
|
66
66
|
l === "horizontal" ? "flex-col" : "flex-row",
|
|
67
|
-
|
|
67
|
+
s
|
|
68
68
|
),
|
|
69
|
-
...
|
|
70
|
-
children: /* @__PURE__ */ f(
|
|
69
|
+
...A,
|
|
70
|
+
children: /* @__PURE__ */ f(B, { reducedMotion: "user", children: R })
|
|
71
71
|
}
|
|
72
72
|
) });
|
|
73
73
|
}
|
|
74
74
|
);
|
|
75
|
-
|
|
76
|
-
const
|
|
75
|
+
H.displayName = "Tabs";
|
|
76
|
+
const O = $("inline-flex", {
|
|
77
77
|
variants: {
|
|
78
78
|
variant: {
|
|
79
|
-
primary: "bg-surface p-1
|
|
79
|
+
primary: "bg-surface p-1 gap-1",
|
|
80
80
|
secondary: "gap-0",
|
|
81
|
-
//
|
|
82
|
-
//
|
|
81
|
+
// Legacy `pill` API: separate compact filter tabs with a gap and no
|
|
82
|
+
// track (each tab can carry a `· N` count via Tab's `count`).
|
|
83
83
|
pill: "gap-1.5 flex-wrap"
|
|
84
84
|
},
|
|
85
85
|
orientation: {
|
|
@@ -93,6 +93,10 @@ const H = L("inline-flex", {
|
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
compoundVariants: [
|
|
96
|
+
// Track radius follows control size: compact = 4px, standard = 8px.
|
|
97
|
+
{ variant: "primary", size: "sm", className: "rounded-sm" },
|
|
98
|
+
{ variant: "primary", size: "md", className: "rounded-md" },
|
|
99
|
+
{ variant: "primary", size: "lg", className: "rounded-md" },
|
|
96
100
|
// Secondary variant uses a subtle rail (border) on the opposite edge of
|
|
97
101
|
// the active indicator. Kept intentionally hairline — surfaces avoid
|
|
98
102
|
// strokes, but a tab rail is a control edge, not a surface.
|
|
@@ -112,28 +116,28 @@ const H = L("inline-flex", {
|
|
|
112
116
|
orientation: "horizontal",
|
|
113
117
|
size: "md"
|
|
114
118
|
}
|
|
115
|
-
}), _ =
|
|
116
|
-
({ className:
|
|
117
|
-
const { variant:
|
|
119
|
+
}), _ = r.forwardRef(
|
|
120
|
+
({ className: s, ...e }, a) => {
|
|
121
|
+
const { variant: i, orientation: o, size: l } = j("TabList");
|
|
118
122
|
return /* @__PURE__ */ f(
|
|
119
123
|
"div",
|
|
120
124
|
{
|
|
121
125
|
ref: a,
|
|
122
126
|
role: "tablist",
|
|
123
|
-
"aria-orientation":
|
|
124
|
-
"data-orientation":
|
|
125
|
-
"data-variant":
|
|
126
|
-
className: b(
|
|
127
|
+
"aria-orientation": o,
|
|
128
|
+
"data-orientation": o,
|
|
129
|
+
"data-variant": i,
|
|
130
|
+
className: b(O({ variant: i, orientation: o, size: l }), s),
|
|
127
131
|
...e
|
|
128
132
|
}
|
|
129
133
|
);
|
|
130
134
|
}
|
|
131
135
|
);
|
|
132
136
|
_.displayName = "TabList";
|
|
133
|
-
const q =
|
|
137
|
+
const q = $(
|
|
134
138
|
b(
|
|
135
139
|
"relative inline-flex items-center whitespace-nowrap font-normal select-none",
|
|
136
|
-
"transition-colors duration-
|
|
140
|
+
"transition-colors duration-150 cursor-pointer",
|
|
137
141
|
"outline-none focus-visible:ring-3 focus-visible:ring-ring",
|
|
138
142
|
"disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed"
|
|
139
143
|
),
|
|
@@ -142,7 +146,7 @@ const q = L(
|
|
|
142
146
|
variant: {
|
|
143
147
|
primary: "justify-center rounded-md",
|
|
144
148
|
secondary: "",
|
|
145
|
-
pill: "justify-center
|
|
149
|
+
pill: "justify-center"
|
|
146
150
|
},
|
|
147
151
|
orientation: {
|
|
148
152
|
horizontal: "",
|
|
@@ -161,19 +165,19 @@ const q = L(
|
|
|
161
165
|
compoundVariants: [
|
|
162
166
|
// Sizing — differs per variant (primary is filled, secondary is
|
|
163
167
|
// flush-underline).
|
|
164
|
-
{ variant: "primary", size: "sm", className: "h-6 px-2.5" },
|
|
165
|
-
{ variant: "primary", size: "md", className: "h-8 px-3" },
|
|
166
|
-
{ variant: "primary", size: "lg", className: "h-9 px-4" },
|
|
167
|
-
//
|
|
168
|
-
//
|
|
169
|
-
{ variant: "pill", size: "sm", className: "h-6 px-2.5 gap-1" },
|
|
170
|
-
{ variant: "pill", size: "md", className: "h-7 px-3 gap-1" },
|
|
171
|
-
{ variant: "pill", size: "lg", className: "h-8 px-3.5 gap-1.5" },
|
|
168
|
+
{ variant: "primary", size: "sm", className: "h-6 rounded-sm px-2.5" },
|
|
169
|
+
{ variant: "primary", size: "md", className: "h-8 rounded-md px-3" },
|
|
170
|
+
{ variant: "primary", size: "lg", className: "h-9 rounded-md px-4" },
|
|
171
|
+
// Legacy `pill` API — visually these are separate compact filter tabs,
|
|
172
|
+
// with the same size-based 4px / 8px radii as every other control.
|
|
173
|
+
{ variant: "pill", size: "sm", className: "h-6 rounded-sm px-2.5 gap-1" },
|
|
174
|
+
{ variant: "pill", size: "md", className: "h-7 rounded-md px-3 gap-1" },
|
|
175
|
+
{ variant: "pill", size: "lg", className: "h-8 rounded-md px-3.5 gap-1.5" },
|
|
172
176
|
{ variant: "pill", selected: !0, className: "bg-foreground text-background" },
|
|
173
177
|
{
|
|
174
178
|
variant: "pill",
|
|
175
179
|
selected: !1,
|
|
176
|
-
className: "bg-muted text-muted-foreground hover:bg-
|
|
180
|
+
className: "bg-muted text-muted-foreground hover:bg-accent hover:text-foreground"
|
|
177
181
|
},
|
|
178
182
|
// Secondary horizontal: -1px sits over the rail so the sliding
|
|
179
183
|
// indicator overlaps it cleanly.
|
|
@@ -222,126 +226,134 @@ const q = L(
|
|
|
222
226
|
selected: !1
|
|
223
227
|
}
|
|
224
228
|
}
|
|
225
|
-
),
|
|
226
|
-
({ className:
|
|
229
|
+
), F = r.forwardRef(
|
|
230
|
+
({ className: s, value: e, isDisabled: a, count: i, children: o, onClick: l, onKeyDown: u, ...R }, A) => {
|
|
227
231
|
const {
|
|
228
|
-
value:
|
|
232
|
+
value: k,
|
|
229
233
|
setValue: h,
|
|
230
|
-
baseId:
|
|
234
|
+
baseId: N,
|
|
231
235
|
registerTab: z,
|
|
232
236
|
tabs: w,
|
|
233
237
|
disabled: d,
|
|
234
238
|
thumbId: y,
|
|
235
|
-
variant:
|
|
239
|
+
variant: v,
|
|
236
240
|
orientation: x,
|
|
237
241
|
size: T
|
|
238
|
-
} =
|
|
239
|
-
|
|
242
|
+
} = j("Tab"), c = k === e;
|
|
243
|
+
r.useEffect(() => {
|
|
240
244
|
z(e);
|
|
241
|
-
}, [z, e]),
|
|
245
|
+
}, [z, e]), r.useEffect(() => {
|
|
242
246
|
a ? d.current.add(e) : d.current.delete(e);
|
|
243
247
|
}, [d, a, e]);
|
|
244
|
-
const
|
|
245
|
-
if (
|
|
246
|
-
const
|
|
247
|
-
if (
|
|
248
|
-
const
|
|
249
|
-
let
|
|
250
|
-
if (
|
|
251
|
-
|
|
248
|
+
const V = (t) => {
|
|
249
|
+
if (u == null || u(t), t.defaultPrevented) return;
|
|
250
|
+
const m = w.current, g = m.indexOf(e);
|
|
251
|
+
if (g === -1) return;
|
|
252
|
+
const U = x === "vertical" ? ["ArrowDown"] : ["ArrowRight", "ArrowDown"], C = x === "vertical" ? ["ArrowUp"] : ["ArrowLeft", "ArrowUp"];
|
|
253
|
+
let n = null;
|
|
254
|
+
if (U.includes(t.key)) {
|
|
255
|
+
n = g;
|
|
252
256
|
do
|
|
253
|
-
|
|
254
|
-
while (d.current.has(
|
|
255
|
-
} else if (
|
|
256
|
-
|
|
257
|
+
n = (n + 1) % m.length;
|
|
258
|
+
while (d.current.has(m[n]) && n !== g);
|
|
259
|
+
} else if (C.includes(t.key)) {
|
|
260
|
+
n = g;
|
|
257
261
|
do
|
|
258
|
-
|
|
259
|
-
while (d.current.has(
|
|
260
|
-
} else if (
|
|
261
|
-
|
|
262
|
-
else if (
|
|
263
|
-
for (let p =
|
|
264
|
-
if (!d.current.has(
|
|
265
|
-
|
|
262
|
+
n = (n - 1 + m.length) % m.length;
|
|
263
|
+
while (d.current.has(m[n]) && n !== g);
|
|
264
|
+
} else if (t.key === "Home")
|
|
265
|
+
n = m.findIndex((p) => !d.current.has(p));
|
|
266
|
+
else if (t.key === "End") {
|
|
267
|
+
for (let p = m.length - 1; p >= 0; p--)
|
|
268
|
+
if (!d.current.has(m[p])) {
|
|
269
|
+
n = p;
|
|
266
270
|
break;
|
|
267
271
|
}
|
|
268
272
|
}
|
|
269
|
-
if (
|
|
270
|
-
|
|
271
|
-
const p =
|
|
273
|
+
if (n !== null && n !== -1) {
|
|
274
|
+
t.preventDefault();
|
|
275
|
+
const p = m[n];
|
|
272
276
|
h(p);
|
|
273
|
-
const
|
|
274
|
-
|
|
277
|
+
const E = document.getElementById(I(N, "tab", p));
|
|
278
|
+
E == null || E.focus();
|
|
275
279
|
}
|
|
276
280
|
};
|
|
277
|
-
return /* @__PURE__ */
|
|
281
|
+
return /* @__PURE__ */ L(
|
|
278
282
|
"button",
|
|
279
283
|
{
|
|
280
|
-
ref:
|
|
284
|
+
ref: A,
|
|
281
285
|
type: "button",
|
|
282
286
|
role: "tab",
|
|
283
|
-
id:
|
|
287
|
+
id: I(N, "tab", e),
|
|
284
288
|
"aria-selected": c,
|
|
285
|
-
"aria-controls": `${v}-panel-${e}`,
|
|
286
289
|
"aria-disabled": a || void 0,
|
|
287
290
|
disabled: a,
|
|
288
291
|
"data-selected": c || void 0,
|
|
289
292
|
"data-disabled": a || void 0,
|
|
290
293
|
tabIndex: c && !a ? 0 : -1,
|
|
291
294
|
className: b(
|
|
292
|
-
q({ variant:
|
|
293
|
-
|
|
295
|
+
q({ variant: v, orientation: x, size: T, selected: c }),
|
|
296
|
+
s
|
|
294
297
|
),
|
|
295
|
-
onClick: (
|
|
296
|
-
l == null || l(
|
|
298
|
+
onClick: (t) => {
|
|
299
|
+
l == null || l(t), a || h(e);
|
|
297
300
|
},
|
|
298
|
-
onKeyDown:
|
|
299
|
-
|
|
301
|
+
onKeyDown: V,
|
|
302
|
+
...R,
|
|
300
303
|
children: [
|
|
301
|
-
c &&
|
|
302
|
-
|
|
304
|
+
c && v === "primary" && /* @__PURE__ */ f(
|
|
305
|
+
P.span,
|
|
303
306
|
{
|
|
304
307
|
layoutId: y,
|
|
305
308
|
"aria-hidden": !0,
|
|
306
|
-
transition:
|
|
307
|
-
className: "absolute inset-0 rounded-
|
|
309
|
+
transition: S,
|
|
310
|
+
className: "absolute inset-0 rounded-[inherit] bg-elevated shadow-elevation"
|
|
308
311
|
}
|
|
309
312
|
),
|
|
310
|
-
c &&
|
|
311
|
-
|
|
313
|
+
c && v === "secondary" && /* @__PURE__ */ f(
|
|
314
|
+
P.span,
|
|
312
315
|
{
|
|
313
316
|
layoutId: y,
|
|
314
317
|
"aria-hidden": !0,
|
|
315
|
-
transition:
|
|
318
|
+
transition: S,
|
|
316
319
|
className: b(
|
|
317
320
|
"absolute bg-brand",
|
|
318
321
|
x === "horizontal" ? "left-0 right-0 bottom-0 h-0.5" : "top-0 bottom-0 right-0 w-0.5"
|
|
319
322
|
)
|
|
320
323
|
}
|
|
321
324
|
),
|
|
322
|
-
/* @__PURE__ */
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
"
|
|
326
|
-
|
|
327
|
-
|
|
325
|
+
/* @__PURE__ */ L("span", { className: "relative inline-flex items-center gap-1", children: [
|
|
326
|
+
o,
|
|
327
|
+
i != null && /* @__PURE__ */ L(
|
|
328
|
+
"span",
|
|
329
|
+
{
|
|
330
|
+
className: b(
|
|
331
|
+
"tabular-nums",
|
|
332
|
+
c && v === "pill" ? "text-background/70" : "text-secondary"
|
|
333
|
+
),
|
|
334
|
+
children: [
|
|
335
|
+
"· ",
|
|
336
|
+
i
|
|
337
|
+
]
|
|
338
|
+
}
|
|
339
|
+
)
|
|
328
340
|
] })
|
|
329
341
|
]
|
|
330
342
|
}
|
|
331
343
|
);
|
|
332
344
|
}
|
|
333
345
|
);
|
|
334
|
-
|
|
335
|
-
const
|
|
336
|
-
({ className:
|
|
337
|
-
const { orientation:
|
|
338
|
-
return
|
|
346
|
+
F.displayName = "Tab";
|
|
347
|
+
const G = r.forwardRef(
|
|
348
|
+
({ className: s, ...e }, a) => {
|
|
349
|
+
const { orientation: i, variant: o } = j("TabSeparator");
|
|
350
|
+
return o === "primary" ? /* @__PURE__ */ f(
|
|
339
351
|
"span",
|
|
340
352
|
{
|
|
341
353
|
ref: a,
|
|
342
354
|
"aria-hidden": !0,
|
|
343
355
|
role: "separator",
|
|
344
|
-
className: b("shrink-0",
|
|
356
|
+
className: b("shrink-0", s),
|
|
345
357
|
...e
|
|
346
358
|
}
|
|
347
359
|
) : /* @__PURE__ */ f(
|
|
@@ -352,41 +364,41 @@ const F = t.forwardRef(
|
|
|
352
364
|
role: "separator",
|
|
353
365
|
className: b(
|
|
354
366
|
"shrink-0 bg-border",
|
|
355
|
-
|
|
356
|
-
|
|
367
|
+
i === "horizontal" ? "mx-1 h-4 w-px" : "my-1 h-px w-full",
|
|
368
|
+
s
|
|
357
369
|
),
|
|
358
370
|
...e
|
|
359
371
|
}
|
|
360
372
|
);
|
|
361
373
|
}
|
|
362
374
|
);
|
|
363
|
-
|
|
364
|
-
const
|
|
365
|
-
({ className:
|
|
366
|
-
const { value: l, baseId:
|
|
375
|
+
G.displayName = "TabSeparator";
|
|
376
|
+
const J = r.forwardRef(
|
|
377
|
+
({ className: s, value: e, children: a, ...i }, o) => {
|
|
378
|
+
const { value: l, baseId: u } = j("TabPanel");
|
|
367
379
|
return l !== e ? null : /* @__PURE__ */ f(
|
|
368
380
|
"div",
|
|
369
381
|
{
|
|
370
|
-
ref:
|
|
382
|
+
ref: o,
|
|
371
383
|
role: "tabpanel",
|
|
372
|
-
id:
|
|
373
|
-
"aria-labelledby":
|
|
384
|
+
id: I(u, "panel", e),
|
|
385
|
+
"aria-labelledby": I(u, "tab", e),
|
|
374
386
|
tabIndex: 0,
|
|
375
387
|
className: b(
|
|
376
388
|
"flex-1 outline-none focus-visible:ring-3 focus-visible:ring-ring rounded-sm",
|
|
377
|
-
|
|
389
|
+
s
|
|
378
390
|
),
|
|
379
|
-
...
|
|
391
|
+
...i,
|
|
380
392
|
children: a
|
|
381
393
|
}
|
|
382
394
|
);
|
|
383
395
|
}
|
|
384
396
|
);
|
|
385
|
-
|
|
397
|
+
J.displayName = "TabPanel";
|
|
386
398
|
export {
|
|
387
|
-
|
|
399
|
+
F as Tab,
|
|
388
400
|
_ as TabList,
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
401
|
+
J as TabPanel,
|
|
402
|
+
G as TabSeparator,
|
|
403
|
+
H as Tabs
|
|
392
404
|
};
|