@actioneer/ads 0.5.9 → 0.7.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.
- package/components/ai-elements/agent-trace.d.ts +2 -2
- package/components/ai-elements/agent-trace.js +163 -104
- package/components/ai-elements/chain-of-thought.d.ts +2 -2
- package/components/ai-elements/chain-of-thought.js +1 -1
- package/components/ai-elements/index.d.ts +0 -5
- package/components/ai-elements/inline-citation.js +1 -1
- package/components/alert.d.ts +6 -6
- package/components/alert.js +89 -53
- package/components/answer-sources.d.ts +2 -6
- package/components/answer-sources.js +58 -60
- package/components/answer.d.ts +5 -0
- package/components/answer.js +311 -271
- package/components/assistant-ui/composer-harness.js +11 -14
- package/components/assistant-ui/composer.d.ts +3 -1
- package/components/assistant-ui/composer.js +148 -144
- package/components/assistant-ui/index.d.ts +0 -3
- package/components/assistant-ui/thread-context.d.ts +3 -1
- package/components/assistant-ui/thread.js +50 -42
- package/components/avatar.js +42 -42
- package/components/badge.d.ts +5 -6
- package/components/badge.js +13 -76
- package/components/body-page-header.d.ts +15 -0
- package/components/body-page-header.js +24 -0
- package/components/brand-loader.d.ts +0 -3
- package/components/brand-loader.js +10 -32
- package/components/breadcrumbs.d.ts +1 -8
- package/components/breadcrumbs.js +65 -78
- package/components/button.d.ts +1 -1
- package/components/button.js +55 -49
- package/components/card.js +19 -18
- package/components/chart.js +526 -503
- package/components/chip.d.ts +13 -1
- package/components/chip.js +93 -80
- package/components/collection-header.d.ts +17 -0
- package/components/collection-header.js +31 -0
- package/components/connector-card.d.ts +6 -6
- package/components/connector-card.js +31 -32
- package/components/date-range-picker.d.ts +26 -0
- package/components/date-range-picker.js +223 -0
- package/components/drawer.d.ts +19 -3
- package/components/drawer.js +143 -116
- package/components/dropdown.d.ts +1 -2
- package/components/dropdown.js +88 -89
- package/components/field.js +39 -34
- package/components/file-dropzone.js +1 -1
- package/components/index.d.ts +5 -4
- package/components/index.js +501 -546
- package/components/infinite-canvas.js +24 -24
- package/components/input-field.d.ts +18 -3
- package/components/input-field.js +88 -72
- package/components/input.js +16 -15
- package/components/modal.d.ts +31 -3
- package/components/modal.js +243 -169
- package/components/number-field.js +45 -42
- package/components/page-body.d.ts +12 -0
- package/components/page-body.js +18 -0
- package/components/pagination.js +36 -36
- package/components/panel.js +31 -28
- package/components/select.d.ts +21 -0
- package/components/select.js +189 -148
- package/components/setting-row.d.ts +6 -5
- package/components/setting-row.js +33 -32
- package/components/sidebar.d.ts +2 -0
- package/components/sidebar.js +165 -155
- package/components/skeleton.js +8 -7
- package/components/slider.js +1 -1
- package/components/surface-loader.d.ts +11 -0
- package/components/surface-loader.js +35 -0
- package/components/table.d.ts +16 -10
- package/components/table.js +426 -410
- package/components/tabs.d.ts +2 -0
- package/components/tabs.js +159 -294
- package/components/textarea.js +9 -9
- package/components/toast.d.ts +1 -1
- package/components/toast.js +181 -118
- package/components/tree.d.ts +5 -1
- package/components/tree.js +96 -63
- package/components/typography.d.ts +4 -4
- package/components/typography.js +13 -13
- package/components/ui/button.d.ts +1 -1
- package/components/ui/dialog.js +33 -33
- package/components/viz-charts.js +186 -183
- package/demo/components/add-to-artifact.js +8 -10
- package/fonts.css +2 -0
- package/lib/cn.js +11 -4
- package/lib/icons.d.ts +4 -0
- package/lib/icons.js +107 -106
- package/lib/interactive.d.ts +1 -1
- package/llms.txt +115 -152
- package/manifest.json +13730 -1084
- package/package.json +4 -2
- package/styles.css +365 -225
- package/theme.css +315 -176
- package/components/agent-icon.d.ts +0 -76
- package/components/agent-icon.js +0 -265
- package/components/ai-elements/queue.d.ts +0 -60
- package/components/ai-elements/queue.js +0 -193
- package/components/ai-elements/speech-input.d.ts +0 -16
- package/components/ai-elements/speech-input.js +0 -151
- package/components/ai-elements/task-progress.d.ts +0 -41
- package/components/ai-elements/task-progress.js +0 -224
- package/components/ai-elements/task.d.ts +0 -39
- package/components/ai-elements/task.js +0 -105
- package/components/ai-elements/voice.d.ts +0 -90
- package/components/ai-elements/voice.js +0 -496
- package/components/assistant-ui/follow-up-suggestions.d.ts +0 -11
- package/components/assistant-ui/follow-up-suggestions.js +0 -72
- package/components/assistant-ui/suggestions.d.ts +0 -7
- package/components/assistant-ui/suggestions.js +0 -19
- package/components/assistant-ui/voice.d.ts +0 -18
- package/components/link.d.ts +0 -14
- package/components/link.js +0 -72
- package/components/navbar.d.ts +0 -15
- package/components/navbar.js +0 -68
- package/components/pixel-icon.d.ts +0 -37
- package/components/pixel-icon.js +0 -859
package/components/tabs.d.ts
CHANGED
|
@@ -6,8 +6,10 @@ export interface TabsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
6
6
|
value?: string;
|
|
7
7
|
defaultValue?: string;
|
|
8
8
|
onValueChange?: (value: string) => void;
|
|
9
|
+
/** @deprecated Tabs now use one primary underline style. */
|
|
9
10
|
variant?: Variant;
|
|
10
11
|
orientation?: Orientation;
|
|
12
|
+
/** @deprecated Tabs use one fixed 32px control height. */
|
|
11
13
|
size?: Size;
|
|
12
14
|
}
|
|
13
15
|
export declare const Tabs: React.ForwardRefExoticComponent<TabsProps & React.RefAttributes<HTMLDivElement>>;
|
package/components/tabs.js
CHANGED
|
@@ -1,404 +1,269 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as m, jsxs as E } from "react/jsx-runtime";
|
|
3
3
|
import * as r from "react";
|
|
4
|
-
import { MotionConfig as
|
|
5
|
-
import { cva as
|
|
6
|
-
import { cn as
|
|
7
|
-
import { springControl as
|
|
8
|
-
const
|
|
9
|
-
function
|
|
10
|
-
const e = r.useContext(
|
|
4
|
+
import { MotionConfig as $, motion as M } from "motion/react";
|
|
5
|
+
import { cva as L } from "class-variance-authority";
|
|
6
|
+
import { cn as p } from "../lib/cn.js";
|
|
7
|
+
import { springControl as U } from "../lib/motion.js";
|
|
8
|
+
const N = (o, e, t) => `${o}-${e}-${encodeURIComponent(t).replaceAll("%", "_")}`, P = r.createContext(null);
|
|
9
|
+
function z(o) {
|
|
10
|
+
const e = r.useContext(P);
|
|
11
11
|
if (!e)
|
|
12
|
-
throw new Error(`<${
|
|
12
|
+
throw new Error(`<${o}> must be used within <Tabs>`);
|
|
13
13
|
return e;
|
|
14
14
|
}
|
|
15
|
-
const
|
|
15
|
+
const _ = r.forwardRef(
|
|
16
16
|
({
|
|
17
|
-
className:
|
|
17
|
+
className: o,
|
|
18
18
|
value: e,
|
|
19
|
-
defaultValue:
|
|
20
|
-
onValueChange:
|
|
21
|
-
variant:
|
|
22
|
-
orientation:
|
|
23
|
-
size:
|
|
19
|
+
defaultValue: t,
|
|
20
|
+
onValueChange: a,
|
|
21
|
+
variant: g,
|
|
22
|
+
orientation: d = "horizontal",
|
|
23
|
+
size: b,
|
|
24
24
|
children: R,
|
|
25
25
|
...A
|
|
26
|
-
},
|
|
27
|
-
const
|
|
28
|
-
(
|
|
29
|
-
|
|
26
|
+
}, S) => {
|
|
27
|
+
const x = e !== void 0, [y, v] = r.useState(t), T = r.useId().replaceAll(":", ""), c = r.useId(), w = r.useRef([]), h = r.useRef(/* @__PURE__ */ new Set()), f = x ? e : y, I = r.useCallback(
|
|
28
|
+
(l) => {
|
|
29
|
+
x || v(l), a == null || a(l);
|
|
30
30
|
},
|
|
31
|
-
[
|
|
32
|
-
),
|
|
33
|
-
|
|
34
|
-
}, []),
|
|
31
|
+
[x, a]
|
|
32
|
+
), i = r.useCallback((l) => {
|
|
33
|
+
w.current.includes(l) || w.current.push(l);
|
|
34
|
+
}, []), s = r.useMemo(
|
|
35
35
|
() => ({
|
|
36
|
-
value:
|
|
37
|
-
setValue:
|
|
38
|
-
baseId:
|
|
39
|
-
registerTab:
|
|
40
|
-
tabs:
|
|
41
|
-
disabled:
|
|
42
|
-
thumbId:
|
|
43
|
-
|
|
44
|
-
orientation: l,
|
|
45
|
-
size: u
|
|
36
|
+
value: f,
|
|
37
|
+
setValue: I,
|
|
38
|
+
baseId: T,
|
|
39
|
+
registerTab: i,
|
|
40
|
+
tabs: w,
|
|
41
|
+
disabled: h,
|
|
42
|
+
thumbId: c,
|
|
43
|
+
orientation: d
|
|
46
44
|
}),
|
|
47
45
|
[
|
|
48
|
-
|
|
46
|
+
f,
|
|
47
|
+
I,
|
|
49
48
|
T,
|
|
50
|
-
|
|
49
|
+
i,
|
|
51
50
|
c,
|
|
52
|
-
d
|
|
53
|
-
o,
|
|
54
|
-
l,
|
|
55
|
-
u
|
|
51
|
+
d
|
|
56
52
|
]
|
|
57
53
|
);
|
|
58
|
-
return /* @__PURE__ */
|
|
54
|
+
return /* @__PURE__ */ m(P.Provider, { value: s, children: /* @__PURE__ */ m(
|
|
59
55
|
"div",
|
|
60
56
|
{
|
|
61
|
-
ref:
|
|
62
|
-
"data-orientation":
|
|
63
|
-
"data-variant":
|
|
64
|
-
className:
|
|
65
|
-
"flex gap-4",
|
|
66
|
-
|
|
67
|
-
|
|
57
|
+
ref: S,
|
|
58
|
+
"data-orientation": d,
|
|
59
|
+
"data-variant": "primary",
|
|
60
|
+
className: p(
|
|
61
|
+
"flex w-full gap-4",
|
|
62
|
+
d === "horizontal" ? "flex-col" : "flex-row",
|
|
63
|
+
o
|
|
68
64
|
),
|
|
69
65
|
...A,
|
|
70
|
-
children: /* @__PURE__ */
|
|
66
|
+
children: /* @__PURE__ */ m($, { reducedMotion: "user", children: R })
|
|
71
67
|
}
|
|
72
68
|
) });
|
|
73
69
|
}
|
|
74
70
|
);
|
|
75
|
-
|
|
76
|
-
const
|
|
71
|
+
_.displayName = "Tabs";
|
|
72
|
+
const C = L("inline-flex gap-0 text-m", {
|
|
77
73
|
variants: {
|
|
78
|
-
variant: {
|
|
79
|
-
primary: "bg-surface p-1 gap-1",
|
|
80
|
-
secondary: "gap-0",
|
|
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
|
-
pill: "gap-1.5 flex-wrap"
|
|
84
|
-
},
|
|
85
74
|
orientation: {
|
|
86
|
-
horizontal: "self-start flex-row items-center",
|
|
87
|
-
vertical: "flex-col items-stretch"
|
|
88
|
-
},
|
|
89
|
-
size: {
|
|
90
|
-
sm: "text-xs",
|
|
91
|
-
md: "text-xs",
|
|
92
|
-
lg: "text-base"
|
|
75
|
+
horizontal: "w-full self-start flex-row items-center gap-6 overflow-x-auto border-b border-border",
|
|
76
|
+
vertical: "flex-col items-stretch border-r border-border"
|
|
93
77
|
}
|
|
94
78
|
},
|
|
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" },
|
|
100
|
-
// Secondary variant uses a subtle rail (border) on the opposite edge of
|
|
101
|
-
// the active indicator. Kept intentionally hairline — surfaces avoid
|
|
102
|
-
// strokes, but a tab rail is a control edge, not a surface.
|
|
103
|
-
{
|
|
104
|
-
variant: "secondary",
|
|
105
|
-
orientation: "horizontal",
|
|
106
|
-
className: "border-b border-border"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
variant: "secondary",
|
|
110
|
-
orientation: "vertical",
|
|
111
|
-
className: "border-r border-border"
|
|
112
|
-
}
|
|
113
|
-
],
|
|
114
79
|
defaultVariants: {
|
|
115
|
-
|
|
116
|
-
orientation: "horizontal",
|
|
117
|
-
size: "md"
|
|
80
|
+
orientation: "horizontal"
|
|
118
81
|
}
|
|
119
|
-
}),
|
|
120
|
-
({ className:
|
|
121
|
-
const {
|
|
122
|
-
return /* @__PURE__ */
|
|
82
|
+
}), B = r.forwardRef(
|
|
83
|
+
({ className: o, ...e }, t) => {
|
|
84
|
+
const { orientation: a } = z("TabList");
|
|
85
|
+
return /* @__PURE__ */ m(
|
|
123
86
|
"div",
|
|
124
87
|
{
|
|
125
|
-
ref:
|
|
88
|
+
ref: t,
|
|
126
89
|
role: "tablist",
|
|
127
|
-
"aria-orientation":
|
|
128
|
-
"data-orientation":
|
|
129
|
-
"data-variant":
|
|
130
|
-
className:
|
|
90
|
+
"aria-orientation": a,
|
|
91
|
+
"data-orientation": a,
|
|
92
|
+
"data-variant": "primary",
|
|
93
|
+
className: p(C({ orientation: a }), o),
|
|
131
94
|
...e
|
|
132
95
|
}
|
|
133
96
|
);
|
|
134
97
|
}
|
|
135
98
|
);
|
|
136
|
-
|
|
137
|
-
const
|
|
138
|
-
|
|
139
|
-
"relative inline-flex items-center whitespace-nowrap font-
|
|
99
|
+
B.displayName = "TabList";
|
|
100
|
+
const H = L(
|
|
101
|
+
p(
|
|
102
|
+
"relative inline-flex items-center whitespace-nowrap font-medium select-none",
|
|
140
103
|
"transition-colors duration-150 cursor-pointer",
|
|
141
104
|
"outline-none focus-visible:ring-3 focus-visible:ring-ring",
|
|
142
105
|
"disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed"
|
|
143
106
|
),
|
|
144
107
|
{
|
|
145
108
|
variants: {
|
|
146
|
-
variant: {
|
|
147
|
-
primary: "justify-center rounded-md",
|
|
148
|
-
secondary: "",
|
|
149
|
-
pill: "justify-center"
|
|
150
|
-
},
|
|
151
109
|
orientation: {
|
|
152
|
-
horizontal: "",
|
|
153
|
-
vertical: ""
|
|
154
|
-
},
|
|
155
|
-
size: {
|
|
156
|
-
sm: "",
|
|
157
|
-
md: "",
|
|
158
|
-
lg: ""
|
|
110
|
+
horizontal: "h-8 flex-none justify-center -mb-px",
|
|
111
|
+
vertical: "h-8 justify-start px-3 pr-4 -mr-px"
|
|
159
112
|
},
|
|
160
113
|
selected: {
|
|
161
|
-
true: "text-
|
|
114
|
+
true: "text-action-primary-text",
|
|
162
115
|
false: "text-muted-foreground hover:text-foreground"
|
|
163
116
|
}
|
|
164
117
|
},
|
|
165
|
-
compoundVariants: [
|
|
166
|
-
// Sizing — differs per variant (primary is filled, secondary is
|
|
167
|
-
// flush-underline).
|
|
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" },
|
|
176
|
-
{ variant: "pill", selected: !0, className: "bg-foreground text-background" },
|
|
177
|
-
{
|
|
178
|
-
variant: "pill",
|
|
179
|
-
selected: !1,
|
|
180
|
-
className: "bg-muted text-muted-foreground hover:bg-accent hover:text-foreground"
|
|
181
|
-
},
|
|
182
|
-
// Secondary horizontal: -1px sits over the rail so the sliding
|
|
183
|
-
// indicator overlaps it cleanly.
|
|
184
|
-
{
|
|
185
|
-
variant: "secondary",
|
|
186
|
-
orientation: "horizontal",
|
|
187
|
-
size: "sm",
|
|
188
|
-
className: "px-2.5 pb-1.5 -mb-px justify-center"
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
variant: "secondary",
|
|
192
|
-
orientation: "horizontal",
|
|
193
|
-
size: "md",
|
|
194
|
-
className: "px-3 pb-2 -mb-px justify-center"
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
variant: "secondary",
|
|
198
|
-
orientation: "horizontal",
|
|
199
|
-
size: "lg",
|
|
200
|
-
className: "px-4 pb-2.5 -mb-px justify-center"
|
|
201
|
-
},
|
|
202
|
-
// Secondary vertical: left-aligned, sits over the right-side rail.
|
|
203
|
-
{
|
|
204
|
-
variant: "secondary",
|
|
205
|
-
orientation: "vertical",
|
|
206
|
-
size: "sm",
|
|
207
|
-
className: "px-2.5 py-1 pr-3 -mr-px justify-start"
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
variant: "secondary",
|
|
211
|
-
orientation: "vertical",
|
|
212
|
-
size: "md",
|
|
213
|
-
className: "px-3 py-1.5 pr-4 -mr-px justify-start"
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
variant: "secondary",
|
|
217
|
-
orientation: "vertical",
|
|
218
|
-
size: "lg",
|
|
219
|
-
className: "px-4 py-2 pr-5 -mr-px justify-start"
|
|
220
|
-
}
|
|
221
|
-
],
|
|
222
118
|
defaultVariants: {
|
|
223
|
-
variant: "primary",
|
|
224
119
|
orientation: "horizontal",
|
|
225
|
-
size: "md",
|
|
226
120
|
selected: !1
|
|
227
121
|
}
|
|
228
122
|
}
|
|
229
|
-
),
|
|
230
|
-
({ className:
|
|
123
|
+
), O = r.forwardRef(
|
|
124
|
+
({ className: o, value: e, isDisabled: t, count: a, children: g, onClick: d, onKeyDown: b, ...R }, A) => {
|
|
231
125
|
const {
|
|
232
|
-
value:
|
|
233
|
-
setValue:
|
|
234
|
-
baseId:
|
|
235
|
-
registerTab:
|
|
236
|
-
tabs:
|
|
237
|
-
disabled:
|
|
238
|
-
thumbId:
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
size: T
|
|
242
|
-
} = j("Tab"), c = k === e;
|
|
126
|
+
value: S,
|
|
127
|
+
setValue: x,
|
|
128
|
+
baseId: y,
|
|
129
|
+
registerTab: v,
|
|
130
|
+
tabs: T,
|
|
131
|
+
disabled: c,
|
|
132
|
+
thumbId: w,
|
|
133
|
+
orientation: h
|
|
134
|
+
} = z("Tab"), f = S === e;
|
|
243
135
|
r.useEffect(() => {
|
|
244
|
-
|
|
245
|
-
}, [
|
|
246
|
-
|
|
247
|
-
}, [
|
|
248
|
-
const
|
|
249
|
-
if (
|
|
250
|
-
const
|
|
251
|
-
if (
|
|
252
|
-
const
|
|
136
|
+
v(e);
|
|
137
|
+
}, [v, e]), r.useEffect(() => {
|
|
138
|
+
t ? c.current.add(e) : c.current.delete(e);
|
|
139
|
+
}, [c, t, e]);
|
|
140
|
+
const I = (i) => {
|
|
141
|
+
if (b == null || b(i), i.defaultPrevented) return;
|
|
142
|
+
const s = T.current, l = s.indexOf(e);
|
|
143
|
+
if (l === -1) return;
|
|
144
|
+
const V = h === "vertical" ? ["ArrowDown"] : ["ArrowRight", "ArrowDown"], j = h === "vertical" ? ["ArrowUp"] : ["ArrowLeft", "ArrowUp"];
|
|
253
145
|
let n = null;
|
|
254
|
-
if (
|
|
255
|
-
n =
|
|
146
|
+
if (V.includes(i.key)) {
|
|
147
|
+
n = l;
|
|
256
148
|
do
|
|
257
|
-
n = (n + 1) %
|
|
258
|
-
while (
|
|
259
|
-
} else if (
|
|
260
|
-
n =
|
|
149
|
+
n = (n + 1) % s.length;
|
|
150
|
+
while (c.current.has(s[n]) && n !== l);
|
|
151
|
+
} else if (j.includes(i.key)) {
|
|
152
|
+
n = l;
|
|
261
153
|
do
|
|
262
|
-
n = (n - 1 +
|
|
263
|
-
while (
|
|
264
|
-
} else if (
|
|
265
|
-
n =
|
|
266
|
-
else if (
|
|
267
|
-
for (let
|
|
268
|
-
if (!
|
|
269
|
-
n =
|
|
154
|
+
n = (n - 1 + s.length) % s.length;
|
|
155
|
+
while (c.current.has(s[n]) && n !== l);
|
|
156
|
+
} else if (i.key === "Home")
|
|
157
|
+
n = s.findIndex((u) => !c.current.has(u));
|
|
158
|
+
else if (i.key === "End") {
|
|
159
|
+
for (let u = s.length - 1; u >= 0; u--)
|
|
160
|
+
if (!c.current.has(s[u])) {
|
|
161
|
+
n = u;
|
|
270
162
|
break;
|
|
271
163
|
}
|
|
272
164
|
}
|
|
273
165
|
if (n !== null && n !== -1) {
|
|
274
|
-
|
|
275
|
-
const
|
|
276
|
-
|
|
277
|
-
const
|
|
278
|
-
|
|
166
|
+
i.preventDefault();
|
|
167
|
+
const u = s[n];
|
|
168
|
+
x(u);
|
|
169
|
+
const k = document.getElementById(N(y, "tab", u));
|
|
170
|
+
k == null || k.focus();
|
|
279
171
|
}
|
|
280
172
|
};
|
|
281
|
-
return /* @__PURE__ */
|
|
173
|
+
return /* @__PURE__ */ E(
|
|
282
174
|
"button",
|
|
283
175
|
{
|
|
284
176
|
ref: A,
|
|
285
177
|
type: "button",
|
|
286
178
|
role: "tab",
|
|
287
|
-
id:
|
|
288
|
-
"aria-selected":
|
|
289
|
-
"aria-disabled":
|
|
290
|
-
disabled:
|
|
291
|
-
"data-selected":
|
|
292
|
-
"data-disabled":
|
|
293
|
-
tabIndex:
|
|
294
|
-
className:
|
|
295
|
-
|
|
296
|
-
|
|
179
|
+
id: N(y, "tab", e),
|
|
180
|
+
"aria-selected": f,
|
|
181
|
+
"aria-disabled": t || void 0,
|
|
182
|
+
disabled: t,
|
|
183
|
+
"data-selected": f || void 0,
|
|
184
|
+
"data-disabled": t || void 0,
|
|
185
|
+
tabIndex: f && !t ? 0 : -1,
|
|
186
|
+
className: p(
|
|
187
|
+
H({ orientation: h, selected: f }),
|
|
188
|
+
o
|
|
297
189
|
),
|
|
298
|
-
onClick: (
|
|
299
|
-
|
|
190
|
+
onClick: (i) => {
|
|
191
|
+
d == null || d(i), t || x(e);
|
|
300
192
|
},
|
|
301
|
-
onKeyDown:
|
|
193
|
+
onKeyDown: I,
|
|
302
194
|
...R,
|
|
303
195
|
children: [
|
|
304
|
-
|
|
305
|
-
|
|
196
|
+
f && /* @__PURE__ */ m(
|
|
197
|
+
M.span,
|
|
306
198
|
{
|
|
307
|
-
layoutId:
|
|
199
|
+
layoutId: w,
|
|
308
200
|
"aria-hidden": !0,
|
|
309
|
-
transition:
|
|
310
|
-
className:
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
c && v === "secondary" && /* @__PURE__ */ f(
|
|
314
|
-
P.span,
|
|
315
|
-
{
|
|
316
|
-
layoutId: y,
|
|
317
|
-
"aria-hidden": !0,
|
|
318
|
-
transition: S,
|
|
319
|
-
className: b(
|
|
320
|
-
"absolute bg-brand",
|
|
321
|
-
x === "horizontal" ? "left-0 right-0 bottom-0 h-0.5" : "top-0 bottom-0 right-0 w-0.5"
|
|
201
|
+
transition: U,
|
|
202
|
+
className: p(
|
|
203
|
+
"absolute bg-action-primary",
|
|
204
|
+
h === "horizontal" ? "left-0 right-0 bottom-0 h-0.5" : "top-0 bottom-0 right-0 w-0.5"
|
|
322
205
|
)
|
|
323
206
|
}
|
|
324
207
|
),
|
|
325
|
-
/* @__PURE__ */
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
"
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
"tabular-nums",
|
|
332
|
-
c && v === "pill" ? "text-background/70" : "text-secondary"
|
|
333
|
-
),
|
|
334
|
-
children: [
|
|
335
|
-
"· ",
|
|
336
|
-
i
|
|
337
|
-
]
|
|
338
|
-
}
|
|
339
|
-
)
|
|
208
|
+
/* @__PURE__ */ E("span", { className: "relative inline-flex items-center gap-1", children: [
|
|
209
|
+
g,
|
|
210
|
+
a != null && /* @__PURE__ */ E("span", { className: "tabular-nums text-muted-foreground", children: [
|
|
211
|
+
"· ",
|
|
212
|
+
a
|
|
213
|
+
] })
|
|
340
214
|
] })
|
|
341
215
|
]
|
|
342
216
|
}
|
|
343
217
|
);
|
|
344
218
|
}
|
|
345
219
|
);
|
|
346
|
-
|
|
347
|
-
const
|
|
348
|
-
({ className:
|
|
349
|
-
const { orientation:
|
|
350
|
-
return
|
|
351
|
-
"span",
|
|
352
|
-
{
|
|
353
|
-
ref: a,
|
|
354
|
-
"aria-hidden": !0,
|
|
355
|
-
role: "separator",
|
|
356
|
-
className: b("shrink-0", s),
|
|
357
|
-
...e
|
|
358
|
-
}
|
|
359
|
-
) : /* @__PURE__ */ f(
|
|
220
|
+
O.displayName = "Tab";
|
|
221
|
+
const q = r.forwardRef(
|
|
222
|
+
({ className: o, ...e }, t) => {
|
|
223
|
+
const { orientation: a } = z("TabSeparator");
|
|
224
|
+
return /* @__PURE__ */ m(
|
|
360
225
|
"span",
|
|
361
226
|
{
|
|
362
|
-
ref:
|
|
227
|
+
ref: t,
|
|
363
228
|
"aria-hidden": !0,
|
|
364
229
|
role: "separator",
|
|
365
|
-
className:
|
|
230
|
+
className: p(
|
|
366
231
|
"shrink-0 bg-border",
|
|
367
|
-
|
|
368
|
-
|
|
232
|
+
a === "horizontal" ? "mx-1 h-4 w-px" : "my-1 h-px w-full",
|
|
233
|
+
o
|
|
369
234
|
),
|
|
370
235
|
...e
|
|
371
236
|
}
|
|
372
237
|
);
|
|
373
238
|
}
|
|
374
239
|
);
|
|
375
|
-
|
|
376
|
-
const
|
|
377
|
-
({ className:
|
|
378
|
-
const { value:
|
|
379
|
-
return
|
|
240
|
+
q.displayName = "TabSeparator";
|
|
241
|
+
const F = r.forwardRef(
|
|
242
|
+
({ className: o, value: e, children: t, ...a }, g) => {
|
|
243
|
+
const { value: d, baseId: b } = z("TabPanel");
|
|
244
|
+
return d !== e ? null : /* @__PURE__ */ m(
|
|
380
245
|
"div",
|
|
381
246
|
{
|
|
382
|
-
ref:
|
|
247
|
+
ref: g,
|
|
383
248
|
role: "tabpanel",
|
|
384
|
-
id:
|
|
385
|
-
"aria-labelledby":
|
|
249
|
+
id: N(b, "panel", e),
|
|
250
|
+
"aria-labelledby": N(b, "tab", e),
|
|
386
251
|
tabIndex: 0,
|
|
387
|
-
className:
|
|
252
|
+
className: p(
|
|
388
253
|
"flex-1 outline-none focus-visible:ring-3 focus-visible:ring-ring rounded-sm",
|
|
389
|
-
|
|
254
|
+
o
|
|
390
255
|
),
|
|
391
|
-
...
|
|
392
|
-
children:
|
|
256
|
+
...a,
|
|
257
|
+
children: t
|
|
393
258
|
}
|
|
394
259
|
);
|
|
395
260
|
}
|
|
396
261
|
);
|
|
397
|
-
|
|
262
|
+
F.displayName = "TabPanel";
|
|
398
263
|
export {
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
264
|
+
O as Tab,
|
|
265
|
+
B as TabList,
|
|
266
|
+
F as TabPanel,
|
|
267
|
+
q as TabSeparator,
|
|
268
|
+
_ as Tabs
|
|
404
269
|
};
|
package/components/textarea.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as i } from "react/jsx-runtime";
|
|
3
3
|
import * as o from "react";
|
|
4
|
-
import { cn as
|
|
5
|
-
import { inputBaseClass as
|
|
4
|
+
import { cn as m } from "../lib/cn.js";
|
|
5
|
+
import { inputBaseClass as s } from "./field.js";
|
|
6
6
|
const n = o.forwardRef(
|
|
7
|
-
({ className:
|
|
7
|
+
({ className: r, isInvalid: a, ...e }, t) => /* @__PURE__ */ i(
|
|
8
8
|
"textarea",
|
|
9
9
|
{
|
|
10
10
|
ref: t,
|
|
11
|
-
"aria-invalid":
|
|
12
|
-
className:
|
|
13
|
-
|
|
11
|
+
"aria-invalid": a || void 0,
|
|
12
|
+
className: m(
|
|
13
|
+
s,
|
|
14
14
|
// Multi-line controls use the 4px surface radius.
|
|
15
|
-
"min-h-20 resize-y rounded-lg py-2
|
|
16
|
-
|
|
15
|
+
"min-h-20 resize-y rounded-lg py-2",
|
|
16
|
+
r
|
|
17
17
|
),
|
|
18
|
-
...
|
|
18
|
+
...e
|
|
19
19
|
}
|
|
20
20
|
)
|
|
21
21
|
);
|
package/components/toast.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export interface ToastOptions {
|
|
|
35
35
|
indicator?: React.ReactNode;
|
|
36
36
|
/** Trailing action button. */
|
|
37
37
|
actionProps?: ToastActionProps;
|
|
38
|
-
/** Auto-dismiss after N ms. 0 = persistent. Default 5000 (0 when loading). */
|
|
38
|
+
/** Auto-dismiss after N ms. Timed toasts show a countdown that pauses on hover. 0 = persistent. Default 5000 (0 when loading). */
|
|
39
39
|
timeout?: number;
|
|
40
40
|
/** Legacy alias for `timeout`. */
|
|
41
41
|
duration?: number;
|