@actioneer/ads 0.6.0 → 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 +15 -20
- 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 +0 -7
- package/components/breadcrumbs.js +54 -71
- package/components/button.d.ts +1 -1
- package/components/button.js +55 -49
- package/components/chart.js +298 -296
- 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 +2 -1
- package/components/date-range-picker.js +158 -122
- package/components/drawer.d.ts +19 -3
- package/components/drawer.js +109 -100
- 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 +4 -4
- package/components/index.js +499 -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/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 +54 -49
- 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/demo/components/add-to-artifact.js +6 -10
- 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 +95 -152
- package/manifest.json +1628 -2729
- package/package.json +1 -2
- package/styles.css +347 -223
- package/theme.css +303 -177
- 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
|
@@ -1,176 +1,212 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import * as
|
|
4
|
-
import { parseDate as
|
|
5
|
-
import { DateRangePicker as
|
|
6
|
-
import { Calendar as
|
|
7
|
-
import { cn as
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
import { jsx as t, jsxs as d } from "react/jsx-runtime";
|
|
3
|
+
import * as c from "react";
|
|
4
|
+
import { parseDate as p } from "@internationalized/date";
|
|
5
|
+
import { I18nProvider as L, DateRangePicker as A, Label as I, Group as J, DateInput as g, DateSegment as v, Button as m, Text as N, Popover as O, Dialog as E, RangeCalendar as T, Heading as Y, CalendarGrid as F, CalendarGridHeader as _, CalendarHeaderCell as $, CalendarGridBody as q, CalendarCell as K } from "react-aria-components";
|
|
6
|
+
import { Calendar as Q, ChevronLeft as U, ChevronRight as W } from "../lib/icons.js";
|
|
7
|
+
import { cn as o } from "../lib/cn.js";
|
|
8
|
+
import { interactive as X } from "../lib/interactive.js";
|
|
9
|
+
function w(e) {
|
|
10
|
+
if (!(e != null && e.start) || !e.end) return null;
|
|
10
11
|
try {
|
|
11
12
|
return {
|
|
12
|
-
start:
|
|
13
|
-
end:
|
|
13
|
+
start: p(e.start),
|
|
14
|
+
end: p(e.end)
|
|
14
15
|
};
|
|
15
16
|
} catch {
|
|
16
17
|
return null;
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
|
-
function
|
|
20
|
-
if (
|
|
20
|
+
function D(e) {
|
|
21
|
+
if (e)
|
|
21
22
|
try {
|
|
22
|
-
return
|
|
23
|
+
return p(e);
|
|
23
24
|
} catch {
|
|
24
25
|
return;
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
|
-
function
|
|
28
|
-
return
|
|
29
|
-
start:
|
|
30
|
-
end:
|
|
28
|
+
function Z(e) {
|
|
29
|
+
return e ? {
|
|
30
|
+
start: e.start.toString(),
|
|
31
|
+
end: e.end.toString()
|
|
31
32
|
} : null;
|
|
32
33
|
}
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
34
|
+
const ee = [
|
|
35
|
+
"Jan",
|
|
36
|
+
"Feb",
|
|
37
|
+
"Mar",
|
|
38
|
+
"Apr",
|
|
39
|
+
"May",
|
|
40
|
+
"Jun",
|
|
41
|
+
"Jul",
|
|
42
|
+
"Aug",
|
|
43
|
+
"Sep",
|
|
44
|
+
"Oct",
|
|
45
|
+
"Nov",
|
|
46
|
+
"Dec"
|
|
47
|
+
];
|
|
48
|
+
function S(e) {
|
|
49
|
+
return e.type === "literal" ? " " : e.value == null ? e.type === "day" ? "DD" : e.type === "month" ? "MMM" : e.type === "year" ? "YY" : e.text : e.type === "day" ? String(e.value).padStart(2, "0") : e.type === "month" ? ee[e.value - 1] ?? e.text : e.type === "year" ? String(e.value).slice(-2) : e.text;
|
|
50
|
+
}
|
|
51
|
+
function se({
|
|
52
|
+
value: e,
|
|
53
|
+
defaultValue: f,
|
|
54
|
+
onChange: u,
|
|
55
|
+
label: x,
|
|
56
|
+
description: h,
|
|
57
|
+
errorMessage: n,
|
|
58
|
+
disabled: z,
|
|
59
|
+
minValue: k,
|
|
60
|
+
maxValue: B,
|
|
61
|
+
className: C,
|
|
62
|
+
"aria-label": R
|
|
56
63
|
}) {
|
|
57
|
-
const
|
|
58
|
-
() =>
|
|
59
|
-
[
|
|
64
|
+
const l = c.useMemo(() => w(e), [e]), b = c.useMemo(
|
|
65
|
+
() => w(f),
|
|
66
|
+
[f]
|
|
67
|
+
), [j, y] = c.useState(
|
|
68
|
+
!!(l ?? b)
|
|
60
69
|
);
|
|
61
|
-
|
|
62
|
-
|
|
70
|
+
c.useEffect(() => {
|
|
71
|
+
e !== void 0 && y(!!l);
|
|
72
|
+
}, [l, e]);
|
|
73
|
+
const V = (r) => {
|
|
74
|
+
const a = Z(r);
|
|
75
|
+
y(!!a), u == null || u(a);
|
|
76
|
+
};
|
|
77
|
+
return /* @__PURE__ */ t(L, { locale: "en-GB", children: /* @__PURE__ */ d(
|
|
78
|
+
A,
|
|
63
79
|
{
|
|
64
|
-
"aria-label":
|
|
65
|
-
className:
|
|
66
|
-
value:
|
|
67
|
-
defaultValue:
|
|
68
|
-
isDisabled:
|
|
69
|
-
minValue:
|
|
70
|
-
maxValue:
|
|
71
|
-
isInvalid: !!
|
|
72
|
-
onChange:
|
|
80
|
+
"aria-label": R,
|
|
81
|
+
className: o("flex w-full flex-col gap-1.5", C),
|
|
82
|
+
value: e === void 0 ? void 0 : l,
|
|
83
|
+
defaultValue: b ?? void 0,
|
|
84
|
+
isDisabled: z,
|
|
85
|
+
minValue: D(k),
|
|
86
|
+
maxValue: D(B),
|
|
87
|
+
isInvalid: !!n,
|
|
88
|
+
onChange: V,
|
|
73
89
|
children: [
|
|
74
|
-
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
-
|
|
90
|
+
x && /* @__PURE__ */ t(I, { className: "text-m font-medium text-foreground", children: x }),
|
|
91
|
+
/* @__PURE__ */ d(
|
|
92
|
+
J,
|
|
77
93
|
{
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
|
|
94
|
+
"aria-invalid": n ? !0 : void 0,
|
|
95
|
+
"data-value-set": j || void 0,
|
|
96
|
+
className: o(
|
|
97
|
+
"group/field flex h-8 w-full items-center rounded-md border bg-elevated px-3 text-m font-medium text-on-white-tertiary outline-none",
|
|
98
|
+
"hover:text-on-white-secondary focus-within:text-on-white-primary",
|
|
99
|
+
"transition-[border-color,box-shadow]",
|
|
100
|
+
X({
|
|
101
|
+
on: "within",
|
|
102
|
+
color: "brand",
|
|
103
|
+
intensity: "medium",
|
|
104
|
+
animate: !0
|
|
105
|
+
}),
|
|
106
|
+
"[--glow-border-rest:var(--input)]",
|
|
107
|
+
"[--glow-border-active:var(--field-focus)]",
|
|
108
|
+
"[--glow-inset:var(--inner-glow-field)]",
|
|
109
|
+
"data-[value-set]:text-on-white-primary!",
|
|
110
|
+
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50"
|
|
84
111
|
),
|
|
85
112
|
children: [
|
|
86
|
-
/* @__PURE__ */
|
|
87
|
-
|
|
113
|
+
/* @__PURE__ */ t(g, { slot: "start", className: "flex shrink-0 items-center", children: (r) => /* @__PURE__ */ t(
|
|
114
|
+
v,
|
|
88
115
|
{
|
|
89
|
-
segment:
|
|
90
|
-
className: ({ isFocused:
|
|
91
|
-
"
|
|
92
|
-
|
|
93
|
-
i && "
|
|
94
|
-
|
|
116
|
+
segment: r,
|
|
117
|
+
className: ({ isFocused: a, isPlaceholder: i, type: s }) => o(
|
|
118
|
+
"tabular-nums outline-none",
|
|
119
|
+
s !== "literal" && "-mx-0.5 cursor-text rounded-xs px-0.5 transition-colors duration-150 hover:bg-action-primary-soft hover:text-action-primary-text",
|
|
120
|
+
i && "text-muted-foreground",
|
|
121
|
+
a && "bg-action-primary-soft text-action-primary-text"
|
|
122
|
+
),
|
|
123
|
+
children: S(r)
|
|
95
124
|
}
|
|
96
125
|
) }),
|
|
97
|
-
/* @__PURE__ */
|
|
98
|
-
/* @__PURE__ */
|
|
99
|
-
|
|
126
|
+
/* @__PURE__ */ t("span", { "aria-hidden": "true", className: "shrink-0", children: " - " }),
|
|
127
|
+
/* @__PURE__ */ t(g, { slot: "end", className: "flex shrink-0 items-center", children: (r) => /* @__PURE__ */ t(
|
|
128
|
+
v,
|
|
100
129
|
{
|
|
101
|
-
segment:
|
|
102
|
-
className: ({ isFocused:
|
|
103
|
-
"
|
|
104
|
-
|
|
105
|
-
i && "
|
|
106
|
-
|
|
130
|
+
segment: r,
|
|
131
|
+
className: ({ isFocused: a, isPlaceholder: i, type: s }) => o(
|
|
132
|
+
"tabular-nums outline-none",
|
|
133
|
+
s !== "literal" && "-mx-0.5 cursor-text rounded-xs px-0.5 transition-colors duration-150 hover:bg-action-primary-soft hover:text-action-primary-text",
|
|
134
|
+
i && "text-muted-foreground",
|
|
135
|
+
a && "bg-action-primary-soft text-action-primary-text"
|
|
136
|
+
),
|
|
137
|
+
children: S(r)
|
|
107
138
|
}
|
|
108
139
|
) }),
|
|
109
|
-
/* @__PURE__ */
|
|
110
|
-
|
|
140
|
+
/* @__PURE__ */ t(
|
|
141
|
+
m,
|
|
111
142
|
{
|
|
112
143
|
"aria-label": "Open calendar",
|
|
113
|
-
className:
|
|
114
|
-
"ml-auto inline-flex shrink-0 items-center justify-center border border-transparent text-muted-foreground outline-none
|
|
115
|
-
"
|
|
116
|
-
|
|
144
|
+
className: o(
|
|
145
|
+
"ml-auto inline-flex shrink-0 cursor-pointer items-center justify-center border border-transparent text-muted-foreground outline-none",
|
|
146
|
+
"transition-[background,color,transform] duration-150 ease-out",
|
|
147
|
+
"group-hover/field:text-foreground group-focus-within/field:text-g12!",
|
|
148
|
+
"hover:bg-action-primary-soft hover:text-action-primary-text!",
|
|
149
|
+
"data-[pressed]:scale-[0.97] data-[pressed]:bg-action-primary-soft data-[pressed]:text-action-primary-text!",
|
|
150
|
+
"motion-reduce:data-[pressed]:scale-100",
|
|
151
|
+
"size-7 rounded-sm"
|
|
117
152
|
),
|
|
118
|
-
children: /* @__PURE__ */
|
|
153
|
+
children: /* @__PURE__ */ t(Q, { className: "size-4" })
|
|
119
154
|
}
|
|
120
155
|
)
|
|
121
156
|
]
|
|
122
157
|
}
|
|
123
158
|
),
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
/* @__PURE__ */
|
|
159
|
+
h && !n && /* @__PURE__ */ t(N, { slot: "description", className: "text-m font-normal text-muted-foreground", children: h }),
|
|
160
|
+
n && /* @__PURE__ */ t(N, { slot: "errorMessage", className: "text-m font-normal text-danger", children: n }),
|
|
161
|
+
/* @__PURE__ */ t(
|
|
127
162
|
O,
|
|
128
163
|
{
|
|
129
164
|
placement: "bottom end",
|
|
130
165
|
offset: 6,
|
|
131
|
-
className: "z-50 w-72 rounded-md border border-
|
|
132
|
-
children: /* @__PURE__ */
|
|
133
|
-
/* @__PURE__ */
|
|
134
|
-
/* @__PURE__ */
|
|
135
|
-
|
|
166
|
+
className: "z-50 w-72 rounded-md border border-input bg-popover p-3 text-popover-foreground shadow-elevation outline-none entering:animate-in entering:fade-in entering:zoom-in-95 exiting:animate-out exiting:fade-out exiting:zoom-out-95",
|
|
167
|
+
children: /* @__PURE__ */ t(E, { className: "outline-none", children: /* @__PURE__ */ d(T, { className: "w-full", visibleDuration: { months: 1 }, children: [
|
|
168
|
+
/* @__PURE__ */ d("header", { className: "mb-3 flex items-center justify-between gap-2", children: [
|
|
169
|
+
/* @__PURE__ */ t(
|
|
170
|
+
m,
|
|
136
171
|
{
|
|
137
172
|
slot: "previous",
|
|
138
|
-
className: "inline-flex size-8 items-center justify-center rounded-sm border border-input bg-
|
|
139
|
-
children: /* @__PURE__ */
|
|
173
|
+
className: "inline-flex size-8 cursor-pointer items-center justify-center rounded-sm border border-input bg-elevated text-foreground outline-none transition-[background,border,color,transform] duration-150 ease-out hover:border-action-primary hover:bg-action-primary-soft hover:text-action-primary-text data-[pressed]:scale-[0.97] data-[pressed]:border-action-primary data-[pressed]:bg-action-primary-soft data-[pressed]:text-action-primary-text focus-visible:ring-3 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-40 motion-reduce:data-[pressed]:scale-100",
|
|
174
|
+
children: /* @__PURE__ */ t(U, { className: "size-4" })
|
|
140
175
|
}
|
|
141
176
|
),
|
|
142
|
-
/* @__PURE__ */
|
|
143
|
-
/* @__PURE__ */
|
|
144
|
-
|
|
177
|
+
/* @__PURE__ */ t(Y, { className: "text-sm font-semibold" }),
|
|
178
|
+
/* @__PURE__ */ t(
|
|
179
|
+
m,
|
|
145
180
|
{
|
|
146
181
|
slot: "next",
|
|
147
|
-
className: "inline-flex size-8 items-center justify-center rounded-sm border border-input bg-
|
|
148
|
-
children: /* @__PURE__ */
|
|
182
|
+
className: "inline-flex size-8 cursor-pointer items-center justify-center rounded-sm border border-input bg-elevated text-foreground outline-none transition-[background,border,color,transform] duration-150 ease-out hover:border-action-primary hover:bg-action-primary-soft hover:text-action-primary-text data-[pressed]:scale-[0.97] data-[pressed]:border-action-primary data-[pressed]:bg-action-primary-soft data-[pressed]:text-action-primary-text focus-visible:ring-3 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-40 motion-reduce:data-[pressed]:scale-100",
|
|
183
|
+
children: /* @__PURE__ */ t(W, { className: "size-4" })
|
|
149
184
|
}
|
|
150
185
|
)
|
|
151
186
|
] }),
|
|
152
|
-
/* @__PURE__ */
|
|
153
|
-
/* @__PURE__ */
|
|
154
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ d(F, { weekdayStyle: "short", className: "w-full border-separate border-spacing-0.5", children: [
|
|
188
|
+
/* @__PURE__ */ t(_, { children: (r) => /* @__PURE__ */ t($, { className: "h-7 text-center text-xs font-medium text-muted-foreground", children: r }) }),
|
|
189
|
+
/* @__PURE__ */ t(q, { children: (r) => /* @__PURE__ */ t(
|
|
155
190
|
K,
|
|
156
191
|
{
|
|
157
|
-
date:
|
|
192
|
+
date: r,
|
|
158
193
|
className: ({
|
|
159
|
-
isDisabled:
|
|
160
|
-
isFocusVisible:
|
|
161
|
-
isOutsideMonth:
|
|
194
|
+
isDisabled: a,
|
|
195
|
+
isFocusVisible: i,
|
|
196
|
+
isOutsideMonth: s,
|
|
162
197
|
isSelected: G,
|
|
163
|
-
isSelectionEnd:
|
|
164
|
-
isSelectionStart:
|
|
165
|
-
isUnavailable:
|
|
166
|
-
}) =>
|
|
167
|
-
"relative flex size-8 items-center justify-center rounded-sm text-xs tabular-nums outline-none transition-colors",
|
|
168
|
-
"hover:bg-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
198
|
+
isSelectionEnd: H,
|
|
199
|
+
isSelectionStart: M,
|
|
200
|
+
isUnavailable: P
|
|
201
|
+
}) => o(
|
|
202
|
+
"relative flex size-8 cursor-pointer items-center justify-center rounded-sm text-xs tabular-nums outline-none transition-colors duration-150",
|
|
203
|
+
"hover:bg-action-primary-soft hover:text-action-primary-text",
|
|
204
|
+
"data-[pressed]:bg-action-primary-soft data-[pressed]:text-action-primary-text",
|
|
205
|
+
G && "bg-action-primary-soft font-medium text-action-primary-text",
|
|
206
|
+
(M || H) && "bg-action-primary text-action-primary-foreground hover:bg-action-primary-hover hover:text-action-primary-foreground",
|
|
207
|
+
s && "text-muted-foreground/45",
|
|
208
|
+
(a || P) && "pointer-events-none cursor-default text-muted-foreground/35 line-through",
|
|
209
|
+
i && "ring-3 ring-ring"
|
|
174
210
|
)
|
|
175
211
|
}
|
|
176
212
|
) })
|
|
@@ -180,8 +216,8 @@ function te({
|
|
|
180
216
|
)
|
|
181
217
|
]
|
|
182
218
|
}
|
|
183
|
-
);
|
|
219
|
+
) });
|
|
184
220
|
}
|
|
185
221
|
export {
|
|
186
|
-
|
|
222
|
+
se as DateRangePicker
|
|
187
223
|
};
|
package/components/drawer.d.ts
CHANGED
|
@@ -2,13 +2,20 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const panelVariants: (props?: ({
|
|
4
4
|
side?: "bottom" | "left" | "right" | null | undefined;
|
|
5
|
-
size?: "
|
|
5
|
+
size?: "xl" | "sm" | "md" | "lg" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
export type DrawerAppearance = "flat" | "floating";
|
|
7
8
|
export interface DrawerProps extends VariantProps<typeof panelVariants> {
|
|
8
9
|
open: boolean;
|
|
9
10
|
onOpenChange: (open: boolean) => void;
|
|
11
|
+
/** Flat joins a canvas layout; floating adds an NG3 stroke and shadow 400. */
|
|
12
|
+
appearance?: DrawerAppearance;
|
|
13
|
+
/** Whether Escape and the built-in close button can dismiss the drawer. */
|
|
14
|
+
dismissible?: boolean;
|
|
10
15
|
/** Accessible label for the drawer landmark. */
|
|
11
16
|
"aria-label": string;
|
|
17
|
+
/** Optional classes for the inline animation slot around the panel. */
|
|
18
|
+
containerClassName?: string;
|
|
12
19
|
className?: string;
|
|
13
20
|
children: React.ReactNode;
|
|
14
21
|
}
|
|
@@ -53,9 +60,18 @@ export declare function ModalDrawer({ open, onOpenChange, side: sideProp, size,
|
|
|
53
60
|
*
|
|
54
61
|
* This mirrors the shell's main + chat layout — white panels on the canvas.
|
|
55
62
|
* If the panel doesn't read, fix the ground; never add a border or shadow to
|
|
56
|
-
* force it (that fights principle 1).
|
|
63
|
+
* force it (that fights principle 1). Use `FloatingDrawer` when the surface is
|
|
64
|
+
* intentionally inset and should read as an elevated utility panel.
|
|
57
65
|
*/
|
|
58
|
-
export declare function Drawer({ open, onOpenChange, side: sideProp, size, className, children, "aria-label": ariaLabel, }: DrawerProps): React.JSX.Element;
|
|
66
|
+
export declare function Drawer({ open, onOpenChange, appearance, dismissible, side: sideProp, size, containerClassName, className, children, "aria-label": ariaLabel, }: DrawerProps): React.JSX.Element;
|
|
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;
|
|
59
75
|
/** @deprecated Alias for `Drawer` — the canonical drawer is now the inline
|
|
60
76
|
* variant. Kept for any code still importing `InlineDrawer`. */
|
|
61
77
|
export declare const InlineDrawer: typeof Drawer;
|