@actioneer/ads 0.7.0 → 1.0.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/DESIGN.md +597 -0
- package/components/ai-elements/agent-trace.js +1 -1
- package/components/alert.js +3 -3
- package/components/answer.js +2 -2
- package/components/assistant-ui/action-bar.js +1 -1
- package/components/assistant-ui/attachment.js +12 -12
- package/components/assistant-ui/badge.js +18 -18
- package/components/assistant-ui/composer-harness.js +5 -4
- package/components/assistant-ui/composer-trigger-popover.js +9 -9
- package/components/assistant-ui/composer.js +32 -32
- package/components/assistant-ui/directive-text.js +5 -5
- package/components/assistant-ui/image.js +61 -61
- package/components/assistant-ui/markdown-text.js +7 -7
- package/components/assistant-ui/message-timing.js +1 -1
- package/components/assistant-ui/selection-toolbar.js +7 -7
- package/components/assistant-ui/sources.js +1 -1
- package/components/avatar.d.ts +1 -1
- package/components/avatar.js +35 -35
- package/components/body-page-header.d.ts +1 -1
- package/components/body-page-header.js +1 -1
- package/components/chart.js +1 -1
- package/components/chip.js +8 -8
- package/components/divider.js +25 -25
- package/components/drawer.d.ts +2 -14
- package/components/drawer.js +103 -109
- package/components/field.js +9 -9
- package/components/index.d.ts +1 -0
- package/components/index.js +466 -465
- package/components/infinite-canvas.js +1 -1
- package/components/input.js +21 -19
- package/components/modal.js +26 -26
- package/components/page-body.js +6 -6
- package/components/page-header.js +1 -1
- package/components/pagination.js +1 -1
- package/components/pixel-blast-svg.js +71 -73
- package/components/search-disclosure.d.ts +18 -0
- package/components/search-disclosure.js +106 -0
- package/components/sidebar.js +60 -53
- package/components/table.d.ts +1 -1
- package/components/table.js +73 -74
- package/components/tabs.js +68 -59
- package/components/tree.js +17 -17
- package/components/typography.d.ts +1 -1
- package/components/typography.js +1 -1
- package/components/ui/button.d.ts +1 -1
- package/components/ui/button.js +4 -4
- package/components/ui/dialog.js +23 -23
- package/components/viz-charts.js +36 -36
- package/demo/components/add-to-artifact.js +3 -2
- package/lib/cn.js +7 -7
- package/lib/icons.d.ts +4 -0
- package/lib/icons.js +105 -104
- package/llms.txt +52 -49
- package/manifest.json +258 -235
- package/package.json +2 -1
- package/styles.css +171 -153
- package/theme.css +162 -140
package/components/divider.js
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import * as
|
|
2
|
+
import { jsx as a, jsxs as u } from "react/jsx-runtime";
|
|
3
|
+
import * as b from "react";
|
|
4
4
|
import { cn as e } from "../lib/cn.js";
|
|
5
|
-
const p = "linear-gradient(to right,
|
|
5
|
+
const p = "linear-gradient(to right, var(--color-wg12), transparent)", g = "linear-gradient(to bottom, var(--color-wg12), transparent)", v = b.forwardRef(
|
|
6
6
|
({
|
|
7
|
-
className:
|
|
7
|
+
className: o,
|
|
8
8
|
orientation: m = "horizontal",
|
|
9
|
-
variant:
|
|
9
|
+
variant: x = "primary",
|
|
10
10
|
fade: c = !1,
|
|
11
11
|
label: d,
|
|
12
|
-
style:
|
|
12
|
+
style: n,
|
|
13
13
|
...i
|
|
14
14
|
}, s) => {
|
|
15
|
-
const
|
|
16
|
-
WebkitMaskImage:
|
|
17
|
-
maskImage:
|
|
15
|
+
const f = x === "secondary", r = m === "vertical", t = f ? r ? "w-px [background-image:linear-gradient(to_bottom,var(--color-border)_50%,transparent_50%)] [background-size:1px_12px] [background-repeat:repeat-y]" : "h-px [background-image:linear-gradient(to_right,var(--color-border)_50%,transparent_50%)] [background-size:12px_1px] [background-repeat:repeat-x]" : r ? "w-px bg-border" : "h-px bg-border", l = c ? {
|
|
16
|
+
WebkitMaskImage: r ? g : p,
|
|
17
|
+
maskImage: r ? g : p
|
|
18
18
|
} : void 0;
|
|
19
|
-
return
|
|
19
|
+
return r ? /* @__PURE__ */ a(
|
|
20
20
|
"div",
|
|
21
21
|
{
|
|
22
22
|
ref: s,
|
|
23
23
|
role: "separator",
|
|
24
24
|
"aria-orientation": "vertical",
|
|
25
|
-
className: e("h-full self-stretch", t,
|
|
26
|
-
style: { ...l, ...
|
|
25
|
+
className: e("h-full self-stretch", t, o),
|
|
26
|
+
style: { ...l, ...n },
|
|
27
27
|
...i
|
|
28
28
|
}
|
|
29
|
-
) : d != null ? /* @__PURE__ */
|
|
29
|
+
) : d != null ? /* @__PURE__ */ u(
|
|
30
30
|
"div",
|
|
31
31
|
{
|
|
32
32
|
ref: s,
|
|
33
33
|
role: "separator",
|
|
34
34
|
"aria-orientation": "horizontal",
|
|
35
|
-
className: e("flex items-center gap-3 w-full",
|
|
36
|
-
style:
|
|
35
|
+
className: e("flex items-center gap-3 w-full", o),
|
|
36
|
+
style: n,
|
|
37
37
|
...i,
|
|
38
38
|
children: [
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
/* @__PURE__ */
|
|
41
|
-
/* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ a("span", { className: e("flex-1", t), style: l }),
|
|
40
|
+
/* @__PURE__ */ a("span", { className: "text-xs text-muted-foreground whitespace-nowrap", children: d }),
|
|
41
|
+
/* @__PURE__ */ a(
|
|
42
42
|
"span",
|
|
43
43
|
{
|
|
44
44
|
className: e("flex-1", t),
|
|
45
45
|
style: c ? {
|
|
46
|
-
WebkitMaskImage: "linear-gradient(to left,
|
|
47
|
-
maskImage: "linear-gradient(to left,
|
|
46
|
+
WebkitMaskImage: "linear-gradient(to left, var(--color-wg12), transparent)",
|
|
47
|
+
maskImage: "linear-gradient(to left, var(--color-wg12), transparent)"
|
|
48
48
|
} : void 0
|
|
49
49
|
}
|
|
50
50
|
)
|
|
51
51
|
]
|
|
52
52
|
}
|
|
53
|
-
) : /* @__PURE__ */
|
|
53
|
+
) : /* @__PURE__ */ a(
|
|
54
54
|
"div",
|
|
55
55
|
{
|
|
56
56
|
ref: s,
|
|
57
57
|
role: "separator",
|
|
58
58
|
"aria-orientation": "horizontal",
|
|
59
|
-
className: e("w-full", t,
|
|
60
|
-
style: { ...l, ...
|
|
59
|
+
className: e("w-full", t, o),
|
|
60
|
+
style: { ...l, ...n },
|
|
61
61
|
...i
|
|
62
62
|
}
|
|
63
63
|
);
|
|
64
64
|
}
|
|
65
65
|
);
|
|
66
|
-
|
|
66
|
+
v.displayName = "Divider";
|
|
67
67
|
export {
|
|
68
|
-
|
|
68
|
+
v as Divider
|
|
69
69
|
};
|
package/components/drawer.d.ts
CHANGED
|
@@ -4,12 +4,9 @@ declare const panelVariants: (props?: ({
|
|
|
4
4
|
side?: "bottom" | "left" | "right" | null | undefined;
|
|
5
5
|
size?: "xl" | "sm" | "md" | "lg" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
-
export type DrawerAppearance = "flat" | "floating";
|
|
8
7
|
export interface DrawerProps extends VariantProps<typeof panelVariants> {
|
|
9
8
|
open: boolean;
|
|
10
9
|
onOpenChange: (open: boolean) => void;
|
|
11
|
-
/** Flat joins a canvas layout; floating adds an NG3 stroke and shadow 400. */
|
|
12
|
-
appearance?: DrawerAppearance;
|
|
13
10
|
/** Whether Escape and the built-in close button can dismiss the drawer. */
|
|
14
11
|
dismissible?: boolean;
|
|
15
12
|
/** Accessible label for the drawer landmark. */
|
|
@@ -60,18 +57,9 @@ export declare function ModalDrawer({ open, onOpenChange, side: sideProp, size,
|
|
|
60
57
|
*
|
|
61
58
|
* This mirrors the shell's main + chat layout — white panels on the canvas.
|
|
62
59
|
* If the panel doesn't read, fix the ground; never add a border or shadow to
|
|
63
|
-
* force it (that fights principle 1).
|
|
64
|
-
* intentionally inset and should read as an elevated utility panel.
|
|
60
|
+
* force it (that fights principle 1).
|
|
65
61
|
*/
|
|
66
|
-
export declare function Drawer({ open, onOpenChange,
|
|
67
|
-
export type FloatingDrawerProps = Omit<DrawerProps, "appearance">;
|
|
68
|
-
/**
|
|
69
|
-
* FloatingDrawer — an inset utility drawer with a card surface, NG3 stroke,
|
|
70
|
-
* and shadow 400. It keeps the Drawer interaction and motion model while
|
|
71
|
-
* providing the elevated treatment used for chat history, section trees, and
|
|
72
|
-
* property inspectors.
|
|
73
|
-
*/
|
|
74
|
-
export declare function FloatingDrawer(props: FloatingDrawerProps): React.JSX.Element;
|
|
62
|
+
export declare function Drawer({ open, onOpenChange, dismissible, side: sideProp, size, containerClassName, className, children, "aria-label": ariaLabel, }: DrawerProps): React.JSX.Element;
|
|
75
63
|
/** @deprecated Alias for `Drawer` — the canonical drawer is now the inline
|
|
76
64
|
* variant. Kept for any code still importing `InlineDrawer`. */
|
|
77
65
|
export declare const InlineDrawer: typeof Drawer;
|
package/components/drawer.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as i, jsxs as y } from "react/jsx-runtime";
|
|
3
|
-
import * as
|
|
4
|
-
import { createPortal as
|
|
5
|
-
import { MotionConfig as z, AnimatePresence as
|
|
6
|
-
import { Close as
|
|
7
|
-
import { cva as
|
|
3
|
+
import * as a from "react";
|
|
4
|
+
import { createPortal as E } from "react-dom";
|
|
5
|
+
import { MotionConfig as z, AnimatePresence as N, motion as w } from "motion/react";
|
|
6
|
+
import { Close as R } from "../lib/icons.js";
|
|
7
|
+
import { cva as j } from "class-variance-authority";
|
|
8
8
|
import { cn as n } from "../lib/cn.js";
|
|
9
|
-
import { springSheet as l, drawerOffset as
|
|
10
|
-
const
|
|
9
|
+
import { springSheet as l, drawerOffset as h, drawerBackdropVariants as F } from "../lib/motion.js";
|
|
10
|
+
const k = j(
|
|
11
11
|
[
|
|
12
12
|
"relative flex flex-col",
|
|
13
13
|
"bg-elevated text-foreground",
|
|
@@ -43,25 +43,25 @@ const N = F(
|
|
|
43
43
|
],
|
|
44
44
|
defaultVariants: { side: "right", size: "md" }
|
|
45
45
|
}
|
|
46
|
-
),
|
|
46
|
+
), A = {
|
|
47
47
|
right: "justify-end items-stretch",
|
|
48
48
|
left: "justify-start items-stretch",
|
|
49
49
|
bottom: "justify-center items-end"
|
|
50
|
-
},
|
|
50
|
+
}, B = {
|
|
51
51
|
sm: "25%",
|
|
52
52
|
md: "33.333333%",
|
|
53
53
|
lg: "50%",
|
|
54
54
|
xl: "66.666667%"
|
|
55
55
|
};
|
|
56
|
-
function
|
|
57
|
-
onClick:
|
|
58
|
-
className:
|
|
56
|
+
function D({
|
|
57
|
+
onClick: t,
|
|
58
|
+
className: e
|
|
59
59
|
}) {
|
|
60
60
|
return /* @__PURE__ */ i(
|
|
61
61
|
"button",
|
|
62
62
|
{
|
|
63
63
|
type: "button",
|
|
64
|
-
onClick:
|
|
64
|
+
onClick: t,
|
|
65
65
|
"aria-label": "Close",
|
|
66
66
|
className: n(
|
|
67
67
|
"absolute inline-flex size-8 items-center justify-center",
|
|
@@ -70,75 +70,75 @@ function k({
|
|
|
70
70
|
"active:scale-[0.97] motion-reduce:active:scale-100",
|
|
71
71
|
"outline-none focus-visible:ring-3 focus-visible:ring-ring",
|
|
72
72
|
"[&_svg]:size-4 [&_svg]:shrink-0",
|
|
73
|
-
|
|
73
|
+
e
|
|
74
74
|
),
|
|
75
|
-
children: /* @__PURE__ */ i(
|
|
75
|
+
children: /* @__PURE__ */ i(R, { "aria-hidden": !0 })
|
|
76
76
|
}
|
|
77
77
|
);
|
|
78
78
|
}
|
|
79
79
|
function G({
|
|
80
|
-
open:
|
|
81
|
-
onOpenChange:
|
|
82
|
-
side:
|
|
83
|
-
size:
|
|
84
|
-
className:
|
|
85
|
-
children:
|
|
86
|
-
"aria-label":
|
|
80
|
+
open: t,
|
|
81
|
+
onOpenChange: e,
|
|
82
|
+
side: r,
|
|
83
|
+
size: v,
|
|
84
|
+
className: c,
|
|
85
|
+
children: x,
|
|
86
|
+
"aria-label": g
|
|
87
87
|
}) {
|
|
88
|
-
const d =
|
|
89
|
-
return
|
|
90
|
-
if (!
|
|
91
|
-
|
|
92
|
-
const
|
|
88
|
+
const d = r ?? "right", m = a.useRef(null), s = a.useRef(null);
|
|
89
|
+
return a.useEffect(() => {
|
|
90
|
+
if (!t) return;
|
|
91
|
+
s.current = document.activeElement;
|
|
92
|
+
const p = document.body.style.overflow;
|
|
93
93
|
document.body.style.overflow = "hidden";
|
|
94
|
-
const
|
|
95
|
-
|
|
94
|
+
const f = (o) => {
|
|
95
|
+
o.key === "Escape" && (o.stopPropagation(), e(!1));
|
|
96
96
|
};
|
|
97
|
-
document.addEventListener("keydown",
|
|
98
|
-
const
|
|
99
|
-
var
|
|
100
|
-
(
|
|
97
|
+
document.addEventListener("keydown", f);
|
|
98
|
+
const u = requestAnimationFrame(() => {
|
|
99
|
+
var o;
|
|
100
|
+
(o = m.current) == null || o.focus();
|
|
101
101
|
});
|
|
102
102
|
return () => {
|
|
103
|
-
var
|
|
104
|
-
document.removeEventListener("keydown",
|
|
103
|
+
var o, b;
|
|
104
|
+
document.removeEventListener("keydown", f), document.body.style.overflow = p, cancelAnimationFrame(u), (b = (o = s.current) == null ? void 0 : o.focus) == null || b.call(o);
|
|
105
105
|
};
|
|
106
|
-
}, [
|
|
107
|
-
/* @__PURE__ */ i(z, { reducedMotion: "user", children: /* @__PURE__ */ i(
|
|
106
|
+
}, [t, e]), E(
|
|
107
|
+
/* @__PURE__ */ i(z, { reducedMotion: "user", children: /* @__PURE__ */ i(N, { children: t && /* @__PURE__ */ y("div", { className: n("fixed inset-0 z-50 flex", A[d]), children: [
|
|
108
108
|
/* @__PURE__ */ i(
|
|
109
|
-
|
|
109
|
+
w.div,
|
|
110
110
|
{
|
|
111
|
-
variants:
|
|
111
|
+
variants: F,
|
|
112
112
|
initial: "hidden",
|
|
113
113
|
animate: "visible",
|
|
114
114
|
exit: "hidden",
|
|
115
115
|
className: "absolute inset-0 bg-overlay",
|
|
116
|
-
onClick: () =>
|
|
116
|
+
onClick: () => e(!1),
|
|
117
117
|
"aria-hidden": !0
|
|
118
118
|
},
|
|
119
119
|
"backdrop"
|
|
120
120
|
),
|
|
121
121
|
/* @__PURE__ */ y(
|
|
122
|
-
|
|
122
|
+
w.div,
|
|
123
123
|
{
|
|
124
|
-
ref:
|
|
125
|
-
initial:
|
|
124
|
+
ref: m,
|
|
125
|
+
initial: h[d],
|
|
126
126
|
animate: { transform: "translate3d(0, 0, 0)", opacity: 1, transition: l },
|
|
127
|
-
exit: { ...
|
|
127
|
+
exit: { ...h[d], pointerEvents: "none", transition: l },
|
|
128
128
|
role: "dialog",
|
|
129
129
|
"aria-modal": "true",
|
|
130
|
-
"aria-label":
|
|
130
|
+
"aria-label": g,
|
|
131
131
|
tabIndex: -1,
|
|
132
|
-
className: n(
|
|
132
|
+
className: n(k({ side: d, size: v }), "relative outline-none", c),
|
|
133
133
|
children: [
|
|
134
134
|
/* @__PURE__ */ i(
|
|
135
|
-
|
|
135
|
+
D,
|
|
136
136
|
{
|
|
137
|
-
onClick: () =>
|
|
137
|
+
onClick: () => e(!1),
|
|
138
138
|
className: "right-4 top-4"
|
|
139
139
|
}
|
|
140
140
|
),
|
|
141
|
-
|
|
141
|
+
x
|
|
142
142
|
]
|
|
143
143
|
},
|
|
144
144
|
"panel"
|
|
@@ -147,61 +147,59 @@ function G({
|
|
|
147
147
|
document.body
|
|
148
148
|
);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
151
|
-
open:
|
|
152
|
-
onOpenChange:
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
"aria-label": u
|
|
150
|
+
function L({
|
|
151
|
+
open: t,
|
|
152
|
+
onOpenChange: e,
|
|
153
|
+
dismissible: r = !0,
|
|
154
|
+
side: v,
|
|
155
|
+
size: c,
|
|
156
|
+
containerClassName: x,
|
|
157
|
+
className: g,
|
|
158
|
+
children: d,
|
|
159
|
+
"aria-label": m
|
|
161
160
|
}) {
|
|
162
|
-
const
|
|
163
|
-
return
|
|
164
|
-
if (!
|
|
165
|
-
const
|
|
166
|
-
|
|
161
|
+
const s = v ?? "right", p = c ?? "md", f = a.useRef(null);
|
|
162
|
+
return a.useEffect(() => {
|
|
163
|
+
if (!t || !r) return;
|
|
164
|
+
const u = (o) => {
|
|
165
|
+
o.key === "Escape" && e(!1);
|
|
167
166
|
};
|
|
168
|
-
return document.addEventListener("keydown",
|
|
169
|
-
}, [
|
|
170
|
-
|
|
167
|
+
return document.addEventListener("keydown", u), () => document.removeEventListener("keydown", u);
|
|
168
|
+
}, [t, e, r]), /* @__PURE__ */ i(z, { reducedMotion: "user", children: /* @__PURE__ */ i(N, { initial: !1, children: t && /* @__PURE__ */ i(
|
|
169
|
+
w.div,
|
|
171
170
|
{
|
|
172
|
-
initial:
|
|
173
|
-
animate:
|
|
174
|
-
exit:
|
|
171
|
+
initial: s === "bottom" ? { height: "0%" } : { width: 0 },
|
|
172
|
+
animate: s === "bottom" ? { height: B[p], transition: l } : { width: "auto", transition: l },
|
|
173
|
+
exit: s === "bottom" ? { height: "0%", pointerEvents: "none", transition: l } : { width: 0, pointerEvents: "none", transition: l },
|
|
175
174
|
className: n(
|
|
176
175
|
"shrink-0 overflow-hidden",
|
|
177
|
-
|
|
178
|
-
|
|
176
|
+
s === "bottom" ? "w-full" : "h-full",
|
|
177
|
+
x
|
|
179
178
|
),
|
|
180
179
|
children: /* @__PURE__ */ y(
|
|
181
|
-
|
|
180
|
+
w.aside,
|
|
182
181
|
{
|
|
183
|
-
ref:
|
|
184
|
-
initial:
|
|
182
|
+
ref: f,
|
|
183
|
+
initial: h[s],
|
|
185
184
|
animate: { transform: "translate3d(0, 0, 0)", opacity: 1, transition: l },
|
|
186
|
-
exit: { ...
|
|
185
|
+
exit: { ...h[s], pointerEvents: "none", transition: l },
|
|
187
186
|
role: "complementary",
|
|
188
|
-
"aria-label":
|
|
187
|
+
"aria-label": m,
|
|
189
188
|
className: n(
|
|
190
|
-
|
|
191
|
-
"relative shrink-0 overflow-hidden rounded-lg bg-card outline-none",
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
d
|
|
189
|
+
k({ side: s, size: c }),
|
|
190
|
+
"relative shrink-0 overflow-hidden rounded-lg border-0 bg-card shadow-none outline-none",
|
|
191
|
+
s === "bottom" && "h-full",
|
|
192
|
+
g
|
|
195
193
|
),
|
|
196
194
|
children: [
|
|
197
|
-
|
|
198
|
-
|
|
195
|
+
r && /* @__PURE__ */ i(
|
|
196
|
+
D,
|
|
199
197
|
{
|
|
200
|
-
onClick: () =>
|
|
198
|
+
onClick: () => e(!1),
|
|
201
199
|
className: "right-2 top-1"
|
|
202
200
|
}
|
|
203
201
|
),
|
|
204
|
-
|
|
202
|
+
d
|
|
205
203
|
]
|
|
206
204
|
}
|
|
207
205
|
)
|
|
@@ -209,56 +207,52 @@ function E({
|
|
|
209
207
|
"inline-drawer-slot"
|
|
210
208
|
) }) });
|
|
211
209
|
}
|
|
212
|
-
|
|
213
|
-
return /* @__PURE__ */ i(E, { ...e, appearance: "floating" });
|
|
214
|
-
}
|
|
215
|
-
const Q = E, M = s.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ i(
|
|
210
|
+
const J = L, M = a.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
|
|
216
211
|
"div",
|
|
217
212
|
{
|
|
218
|
-
ref:
|
|
219
|
-
className: n("flex flex-col gap-1 px-6 py-4 pr-14",
|
|
220
|
-
...
|
|
213
|
+
ref: r,
|
|
214
|
+
className: n("flex flex-col gap-1 px-6 py-4 pr-14", t),
|
|
215
|
+
...e
|
|
221
216
|
}
|
|
222
217
|
));
|
|
223
218
|
M.displayName = "DrawerHeader";
|
|
224
|
-
const V =
|
|
219
|
+
const V = a.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
|
|
225
220
|
"h2",
|
|
226
221
|
{
|
|
227
|
-
ref:
|
|
228
|
-
className: n("text-lg font-medium text-foreground",
|
|
229
|
-
...
|
|
222
|
+
ref: r,
|
|
223
|
+
className: n("text-lg font-medium text-foreground", t),
|
|
224
|
+
...e
|
|
230
225
|
}
|
|
231
226
|
));
|
|
232
227
|
V.displayName = "DrawerTitle";
|
|
233
|
-
const I =
|
|
228
|
+
const I = a.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
|
|
234
229
|
"div",
|
|
235
230
|
{
|
|
236
|
-
ref:
|
|
231
|
+
ref: r,
|
|
237
232
|
tabIndex: 0,
|
|
238
|
-
className: n("flex-1 overflow-y-auto px-6 py-4 text-xs text-foreground",
|
|
239
|
-
...
|
|
233
|
+
className: n("flex-1 overflow-y-auto px-6 py-4 text-xs text-foreground", t),
|
|
234
|
+
...e
|
|
240
235
|
}
|
|
241
236
|
));
|
|
242
237
|
I.displayName = "DrawerBody";
|
|
243
|
-
const P =
|
|
238
|
+
const P = a.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
|
|
244
239
|
"div",
|
|
245
240
|
{
|
|
246
|
-
ref:
|
|
241
|
+
ref: r,
|
|
247
242
|
className: n(
|
|
248
243
|
"flex items-center justify-end gap-2 px-6 py-4",
|
|
249
|
-
|
|
244
|
+
t
|
|
250
245
|
),
|
|
251
|
-
...
|
|
246
|
+
...e
|
|
252
247
|
}
|
|
253
248
|
));
|
|
254
249
|
P.displayName = "DrawerFooter";
|
|
255
250
|
export {
|
|
256
|
-
|
|
251
|
+
L as Drawer,
|
|
257
252
|
I as DrawerBody,
|
|
258
253
|
P as DrawerFooter,
|
|
259
254
|
M as DrawerHeader,
|
|
260
255
|
V as DrawerTitle,
|
|
261
|
-
J as
|
|
262
|
-
Q as InlineDrawer,
|
|
256
|
+
J as InlineDrawer,
|
|
263
257
|
G as ModalDrawer
|
|
264
258
|
};
|
package/components/field.js
CHANGED
|
@@ -7,8 +7,8 @@ const L = i(
|
|
|
7
7
|
// Border WIDTH only — no border-color utility. ads-interactive owns the
|
|
8
8
|
// color (rest = --glow-border-rest below); a `border-input` utility here
|
|
9
9
|
// would out-cascade the shared hover/focus rules.
|
|
10
|
-
"flex w-full rounded-md border bg-elevated text-on-white-
|
|
11
|
-
"px-3 text-m font-medium
|
|
10
|
+
"flex w-full rounded-md border bg-elevated text-on-white-secondary",
|
|
11
|
+
"px-3 text-m font-medium focus:text-on-white-primary",
|
|
12
12
|
"placeholder:text-on-white-tertiary hover:placeholder:text-on-white-secondary focus:placeholder:text-transparent",
|
|
13
13
|
"outline-none",
|
|
14
14
|
// Text/placeholder color changes are intentionally immediate. Interpolating
|
|
@@ -41,7 +41,7 @@ const L = i(
|
|
|
41
41
|
}
|
|
42
42
|
));
|
|
43
43
|
w.displayName = "Label";
|
|
44
|
-
const
|
|
44
|
+
const y = a.forwardRef(({ className: r, ...e }, o) => /* @__PURE__ */ l(
|
|
45
45
|
"p",
|
|
46
46
|
{
|
|
47
47
|
ref: o,
|
|
@@ -49,8 +49,8 @@ const h = a.forwardRef(({ className: r, ...e }, o) => /* @__PURE__ */ l(
|
|
|
49
49
|
...e
|
|
50
50
|
}
|
|
51
51
|
));
|
|
52
|
-
|
|
53
|
-
const
|
|
52
|
+
y.displayName = "FieldDescription";
|
|
53
|
+
const h = a.forwardRef(
|
|
54
54
|
({ className: r, children: e, ...o }, t) => e ? /* @__PURE__ */ l(
|
|
55
55
|
"p",
|
|
56
56
|
{
|
|
@@ -61,7 +61,7 @@ const y = a.forwardRef(
|
|
|
61
61
|
}
|
|
62
62
|
) : null
|
|
63
63
|
);
|
|
64
|
-
|
|
64
|
+
h.displayName = "FieldError";
|
|
65
65
|
const D = a.forwardRef(
|
|
66
66
|
({ className: r, label: e, description: o, error: t, required: d, htmlFor: g, errorId: s, descriptionId: c, children: n, ...N }, F) => {
|
|
67
67
|
const m = a.useId(), p = s ?? `${m}-error`, f = c ?? `${m}-description`, u = t ? p : o ? f : void 0, E = s == null && c == null;
|
|
@@ -76,15 +76,15 @@ const D = a.forwardRef(
|
|
|
76
76
|
return /* @__PURE__ */ v("div", { ref: F, className: i("flex flex-col gap-1.5", r), ...N, children: [
|
|
77
77
|
e && /* @__PURE__ */ l(w, { htmlFor: g, required: d, children: e }),
|
|
78
78
|
x,
|
|
79
|
-
t ? /* @__PURE__ */ l(
|
|
79
|
+
t ? /* @__PURE__ */ l(h, { id: p, children: t }) : o ? /* @__PURE__ */ l(y, { id: f, children: o }) : null
|
|
80
80
|
] });
|
|
81
81
|
}
|
|
82
82
|
);
|
|
83
83
|
D.displayName = "Field";
|
|
84
84
|
export {
|
|
85
85
|
D as Field,
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
y as FieldDescription,
|
|
87
|
+
h as FieldError,
|
|
88
88
|
w as Label,
|
|
89
89
|
L as inputBaseClass
|
|
90
90
|
};
|
package/components/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export * from './resizable-panel';
|
|
|
20
20
|
export * from './audio-waveform';
|
|
21
21
|
export * from './tooltip';
|
|
22
22
|
export * from './input';
|
|
23
|
+
export * from './search-disclosure';
|
|
23
24
|
export * from './input-field';
|
|
24
25
|
export * from './textarea';
|
|
25
26
|
export * from './checkbox';
|