@cognite/aura 0.1.6 → 0.2.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 +1211 -0
- package/README.md +24 -0
- package/dist/colors.css +441 -214
- package/dist/components/index.d.ts +17 -1
- package/dist/components/index.js +344 -269
- package/dist/components/ui/core/accordion/accordion.js +22 -22
- package/dist/components/ui/core/alert/alert.d.ts +3 -2
- package/dist/components/ui/core/alert/alert.js +111 -87
- package/dist/components/ui/core/alert/alert.metadata.js +1 -1
- package/dist/components/ui/core/avatar/avatar.js +10 -10
- package/dist/components/ui/core/badge/badge.d.ts +2 -2
- package/dist/components/ui/core/badge/badge.js +13 -13
- package/dist/components/ui/core/banner/banner.d.ts +4 -4
- package/dist/components/ui/core/breadcrumb/breadcrumb.d.ts +11 -0
- package/dist/components/ui/core/breadcrumb/breadcrumb.js +190 -0
- package/dist/components/ui/core/breadcrumb/breadcrumb.metadata.d.ts +2 -0
- package/dist/components/ui/core/breadcrumb/breadcrumb.metadata.js +9 -0
- package/dist/components/ui/core/button/button.d.ts +1 -1
- package/dist/components/ui/core/card/card.d.ts +7 -4
- package/dist/components/ui/core/card/card.js +131 -87
- package/dist/components/ui/core/card/card.metadata.js +1 -1
- package/dist/components/ui/core/checkbox/checkbox.d.ts +13 -0
- package/dist/components/ui/core/checkbox/checkbox.js +129 -0
- package/dist/components/ui/core/checkbox/checkbox.metadata.d.ts +2 -0
- package/dist/components/ui/core/checkbox/checkbox.metadata.js +8 -0
- package/dist/components/ui/core/code-block/code-block.d.ts +5 -1
- package/dist/components/ui/core/code-block/code-block.js +200 -132
- package/dist/components/ui/core/command/command.d.ts +2 -2
- package/dist/components/ui/core/count/count.d.ts +8 -0
- package/dist/components/ui/core/count/count.js +32 -0
- package/dist/components/ui/core/dropdown-menu/dropdown-menu.d.ts +1 -1
- package/dist/components/ui/core/dropdown-menu/dropdown-menu.js +43 -40
- package/dist/components/ui/core/inline-citation/inline-citation.js +8 -8
- package/dist/components/ui/core/input-group/input-group.d.ts +1 -1
- package/dist/components/ui/core/kbd/kbd.d.ts +3 -0
- package/dist/components/ui/core/kbd/kbd.js +36 -0
- package/dist/components/ui/core/kbd/kbd.metadata.d.ts +2 -0
- package/dist/components/ui/core/kbd/kbd.metadata.js +9 -0
- package/dist/components/ui/core/loader/loader.d.ts +9 -1
- package/dist/components/ui/core/loader/loader.js +106 -107
- package/dist/components/ui/core/loader/loader.metadata.js +2 -2
- package/dist/components/ui/core/popover/popover.d.ts +1 -1
- package/dist/components/ui/core/prompt-input/prompt-input.d.ts +1 -1
- package/dist/components/ui/core/radio-group/radio-group.d.ts +16 -0
- package/dist/components/ui/core/radio-group/radio-group.js +110 -0
- package/dist/components/ui/core/radio-group/radio-group.metadata.d.ts +2 -0
- package/dist/components/ui/core/radio-group/radio-group.metadata.js +9 -0
- package/dist/components/ui/core/scroll-area/scroll-area.d.ts +3 -0
- package/dist/components/ui/core/scroll-area/scroll-area.js +71 -0
- package/dist/components/ui/core/scroll-area/scroll-area.metadata.d.ts +2 -0
- package/dist/components/ui/core/scroll-area/scroll-area.metadata.js +9 -0
- package/dist/components/ui/core/segmented-control/segmented-control.d.ts +16 -0
- package/dist/components/ui/core/segmented-control/segmented-control.js +169 -0
- package/dist/components/ui/core/sonner-toast/sonner-toast.d.ts +3 -0
- package/dist/components/ui/core/sonner-toast/sonner-toast.js +48 -0
- package/dist/components/ui/core/sonner-toast/sonner-toast.metadata.d.ts +2 -0
- package/dist/components/ui/core/sonner-toast/sonner-toast.metadata.js +9 -0
- package/dist/components/ui/core/tabs/tabs.d.ts +23 -0
- package/dist/components/ui/core/tabs/tabs.js +222 -0
- package/dist/components/ui/core/tabs/tabs.utils.d.ts +2 -0
- package/dist/components/ui/core/tabs/tabs.utils.js +9 -0
- package/dist/components/ui/core/tool/tool.js +31 -27
- package/dist/components/ui/core/topbar/topbar.d.ts +30 -0
- package/dist/components/ui/core/topbar/topbar.js +190 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +312 -248
- package/dist/lib/utils.d.ts +11 -0
- package/dist/lib/utils.js +40 -29
- package/dist/styles.css +1 -1
- package/dist/styles.source.css +66 -7
- package/package.json +11 -6
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as n, jsxs as c } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as u } from "react";
|
|
3
3
|
import { Menu as r } from "@base-ui/react/menu";
|
|
4
|
-
import { IconCheck as
|
|
4
|
+
import { IconCheck as p, IconChevronRight as f } from "@tabler/icons-react";
|
|
5
5
|
import { usePortalContainer as b } from "../../../../lib/portal-container-context.js";
|
|
6
6
|
import { cn as d } from "../../../../lib/utils.js";
|
|
7
7
|
function v({ ...e }) {
|
|
8
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ n(r.Root, { "data-slot": "dropdown-menu", ...e });
|
|
9
9
|
}
|
|
10
10
|
v.displayName = "DropdownMenu";
|
|
11
|
-
function l({
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
function l({
|
|
12
|
+
container: e,
|
|
13
|
+
...o
|
|
14
|
+
}) {
|
|
15
|
+
const t = b();
|
|
16
|
+
return /* @__PURE__ */ n(
|
|
14
17
|
r.Portal,
|
|
15
18
|
{
|
|
16
19
|
"data-slot": "dropdown-menu-portal",
|
|
17
|
-
container:
|
|
18
|
-
...
|
|
20
|
+
container: e ?? t,
|
|
21
|
+
...o
|
|
19
22
|
}
|
|
20
23
|
);
|
|
21
24
|
}
|
|
@@ -24,27 +27,27 @@ function w({
|
|
|
24
27
|
children: e,
|
|
25
28
|
...o
|
|
26
29
|
}) {
|
|
27
|
-
return /* @__PURE__ */
|
|
30
|
+
return /* @__PURE__ */ n(r.Trigger, { "data-slot": "dropdown-menu-trigger", ...o, children: e });
|
|
28
31
|
}
|
|
29
32
|
w.displayName = "DropdownMenuTrigger";
|
|
30
33
|
function m({
|
|
31
34
|
align: e = "start",
|
|
32
35
|
alignOffset: o = 0,
|
|
33
|
-
side:
|
|
36
|
+
side: t = "bottom",
|
|
34
37
|
sideOffset: a = 4,
|
|
35
38
|
className: s,
|
|
36
39
|
container: i,
|
|
37
40
|
...g
|
|
38
41
|
}) {
|
|
39
|
-
return /* @__PURE__ */
|
|
42
|
+
return /* @__PURE__ */ n(l, { container: i, children: /* @__PURE__ */ n(
|
|
40
43
|
r.Positioner,
|
|
41
44
|
{
|
|
42
45
|
className: "isolate z-50 outline-none",
|
|
43
46
|
align: e,
|
|
44
47
|
alignOffset: o,
|
|
45
|
-
side:
|
|
48
|
+
side: t,
|
|
46
49
|
sideOffset: a,
|
|
47
|
-
children: /* @__PURE__ */
|
|
50
|
+
children: /* @__PURE__ */ n(
|
|
48
51
|
r.Popup,
|
|
49
52
|
{
|
|
50
53
|
"data-slot": "dropdown-menu-content",
|
|
@@ -60,16 +63,16 @@ function m({
|
|
|
60
63
|
}
|
|
61
64
|
m.displayName = "DropdownMenuContent";
|
|
62
65
|
function x({ ...e }) {
|
|
63
|
-
return /* @__PURE__ */
|
|
66
|
+
return /* @__PURE__ */ n(r.Group, { "data-slot": "dropdown-menu-group", ...e });
|
|
64
67
|
}
|
|
65
68
|
x.displayName = "DropdownMenuGroup";
|
|
66
|
-
const h = u(({ className: e, inset: o, variant:
|
|
69
|
+
const h = u(({ className: e, inset: o, variant: t = "default", children: a, ...s }, i) => /* @__PURE__ */ n(
|
|
67
70
|
r.Item,
|
|
68
71
|
{
|
|
69
72
|
ref: i,
|
|
70
73
|
"data-slot": "dropdown-menu-item",
|
|
71
74
|
"data-inset": o,
|
|
72
|
-
"data-variant":
|
|
75
|
+
"data-variant": t,
|
|
73
76
|
className: d(
|
|
74
77
|
"focus:bg-accent-background focus:text-foreground data-[variant=destructive]:text-destructive-foreground data-[variant=destructive]:focus:bg-destructive-background-hover dark:data-[variant=destructive]:focus:bg-destructive-background-hover data-[variant=destructive]:focus:text-destructive-foreground data-[variant=destructive]:*:[svg]:text-destructive-foreground data-[variant=destructive]:hover:bg-destructive-background-hover dark:data-[variant=destructive]:hover:bg-destructive-background-hover [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm p-2 text-base outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
75
78
|
e
|
|
@@ -79,7 +82,7 @@ const h = u(({ className: e, inset: o, variant: n = "default", children: a, ...s
|
|
|
79
82
|
}
|
|
80
83
|
));
|
|
81
84
|
h.displayName = "DropdownMenuItem";
|
|
82
|
-
const M = u(({ className: e, children: o, checked:
|
|
85
|
+
const M = u(({ className: e, children: o, checked: t, ...a }, s) => /* @__PURE__ */ c(
|
|
83
86
|
r.CheckboxItem,
|
|
84
87
|
{
|
|
85
88
|
ref: s,
|
|
@@ -88,17 +91,17 @@ const M = u(({ className: e, children: o, checked: n, ...a }, s) => /* @__PURE__
|
|
|
88
91
|
"focus:bg-accent-background focus:text-foreground h-9 relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
89
92
|
e
|
|
90
93
|
),
|
|
91
|
-
checked:
|
|
94
|
+
checked: t,
|
|
92
95
|
...a,
|
|
93
96
|
children: [
|
|
94
|
-
/* @__PURE__ */
|
|
97
|
+
/* @__PURE__ */ n("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ n(r.CheckboxItemIndicator, { children: /* @__PURE__ */ n(p, { className: "size-4 text-foreground" }) }) }),
|
|
95
98
|
o
|
|
96
99
|
]
|
|
97
100
|
}
|
|
98
101
|
));
|
|
99
102
|
M.displayName = "DropdownMenuCheckboxItem";
|
|
100
103
|
function D({ ...e }) {
|
|
101
|
-
return /* @__PURE__ */
|
|
104
|
+
return /* @__PURE__ */ n(
|
|
102
105
|
r.RadioGroup,
|
|
103
106
|
{
|
|
104
107
|
"data-slot": "dropdown-menu-radio-group",
|
|
@@ -107,7 +110,7 @@ function D({ ...e }) {
|
|
|
107
110
|
);
|
|
108
111
|
}
|
|
109
112
|
D.displayName = "DropdownMenuRadioGroup";
|
|
110
|
-
const N = u(({ className: e, children: o, ...
|
|
113
|
+
const N = u(({ className: e, children: o, ...t }, a) => /* @__PURE__ */ c(
|
|
111
114
|
r.RadioItem,
|
|
112
115
|
{
|
|
113
116
|
ref: a,
|
|
@@ -116,15 +119,15 @@ const N = u(({ className: e, children: o, ...n }, a) => /* @__PURE__ */ p(
|
|
|
116
119
|
"focus:bg-accent-background focus:text-foreground h-9 relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
117
120
|
e
|
|
118
121
|
),
|
|
119
|
-
...
|
|
122
|
+
...t,
|
|
120
123
|
children: [
|
|
121
|
-
/* @__PURE__ */
|
|
124
|
+
/* @__PURE__ */ n("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ n(r.RadioItemIndicator, { children: /* @__PURE__ */ n(p, { className: "size-4 text-foreground" }) }) }),
|
|
122
125
|
o
|
|
123
126
|
]
|
|
124
127
|
}
|
|
125
128
|
));
|
|
126
129
|
N.displayName = "DropdownMenuRadioItem";
|
|
127
|
-
const y = u(({ className: e, inset: o, ...
|
|
130
|
+
const y = u(({ className: e, inset: o, ...t }, a) => /* @__PURE__ */ n(
|
|
128
131
|
r.GroupLabel,
|
|
129
132
|
{
|
|
130
133
|
ref: a,
|
|
@@ -134,14 +137,14 @@ const y = u(({ className: e, inset: o, ...n }, a) => /* @__PURE__ */ t(
|
|
|
134
137
|
"-mx-1 -mt-1 mb-1 px-2 py-1.5 text-sm border-b border-border font-medium data-inset:pl-8 text-foreground dark:text-foreground",
|
|
135
138
|
e
|
|
136
139
|
),
|
|
137
|
-
...
|
|
140
|
+
...t
|
|
138
141
|
}
|
|
139
142
|
));
|
|
140
143
|
y.displayName = "DropdownMenuLabel";
|
|
141
|
-
const k = u(({ className: e, ...o },
|
|
144
|
+
const k = u(({ className: e, ...o }, t) => /* @__PURE__ */ n(
|
|
142
145
|
"div",
|
|
143
146
|
{
|
|
144
|
-
ref:
|
|
147
|
+
ref: t,
|
|
145
148
|
"data-slot": "dropdown-menu-header",
|
|
146
149
|
className: d(
|
|
147
150
|
"-mx-1 -mt-1 mb-1 flex flex-row items-center gap-2 border-b border-border px-2 py-2 pointer-events-none",
|
|
@@ -151,20 +154,20 @@ const k = u(({ className: e, ...o }, n) => /* @__PURE__ */ t(
|
|
|
151
154
|
}
|
|
152
155
|
));
|
|
153
156
|
k.displayName = "DropdownMenuHeader";
|
|
154
|
-
const z = u(({ className: e, ...o },
|
|
157
|
+
const z = u(({ className: e, ...o }, t) => /* @__PURE__ */ n(
|
|
155
158
|
r.Separator,
|
|
156
159
|
{
|
|
157
|
-
ref:
|
|
160
|
+
ref: t,
|
|
158
161
|
"data-slot": "dropdown-menu-separator",
|
|
159
162
|
className: d("bg-border -mx-1 my-1 h-px", e),
|
|
160
163
|
...o
|
|
161
164
|
}
|
|
162
165
|
));
|
|
163
166
|
z.displayName = "DropdownMenuSeparator";
|
|
164
|
-
const I = u(({ className: e, ...o },
|
|
167
|
+
const I = u(({ className: e, ...o }, t) => /* @__PURE__ */ n(
|
|
165
168
|
"span",
|
|
166
169
|
{
|
|
167
|
-
ref:
|
|
170
|
+
ref: t,
|
|
168
171
|
"data-slot": "dropdown-menu-shortcut",
|
|
169
172
|
className: d(
|
|
170
173
|
"text-muted-foreground ml-auto text-xs tracking-widest",
|
|
@@ -175,10 +178,10 @@ const I = u(({ className: e, ...o }, n) => /* @__PURE__ */ t(
|
|
|
175
178
|
));
|
|
176
179
|
I.displayName = "DropdownMenuShortcut";
|
|
177
180
|
function S({ ...e }) {
|
|
178
|
-
return /* @__PURE__ */
|
|
181
|
+
return /* @__PURE__ */ n(r.SubmenuRoot, { "data-slot": "dropdown-menu-sub", ...e });
|
|
179
182
|
}
|
|
180
183
|
S.displayName = "DropdownMenuSub";
|
|
181
|
-
const _ = u(({ className: e, inset: o, children:
|
|
184
|
+
const _ = u(({ className: e, inset: o, children: t, ...a }, s) => /* @__PURE__ */ c(
|
|
182
185
|
r.SubmenuTrigger,
|
|
183
186
|
{
|
|
184
187
|
ref: s,
|
|
@@ -190,8 +193,8 @@ const _ = u(({ className: e, inset: o, children: n, ...a }, s) => /* @__PURE__ *
|
|
|
190
193
|
),
|
|
191
194
|
...a,
|
|
192
195
|
children: [
|
|
193
|
-
|
|
194
|
-
/* @__PURE__ */
|
|
196
|
+
t,
|
|
197
|
+
/* @__PURE__ */ n(f, { className: "ml-auto size-4" })
|
|
195
198
|
]
|
|
196
199
|
}
|
|
197
200
|
));
|
|
@@ -199,29 +202,29 @@ _.displayName = "DropdownMenuSubTrigger";
|
|
|
199
202
|
function C({
|
|
200
203
|
align: e = "start",
|
|
201
204
|
alignOffset: o = -3,
|
|
202
|
-
side:
|
|
205
|
+
side: t = "right",
|
|
203
206
|
sideOffset: a = 0,
|
|
204
207
|
className: s,
|
|
205
208
|
...i
|
|
206
209
|
}) {
|
|
207
|
-
return /* @__PURE__ */
|
|
210
|
+
return /* @__PURE__ */ n(
|
|
208
211
|
m,
|
|
209
212
|
{
|
|
210
213
|
"data-slot": "dropdown-menu-sub-content",
|
|
211
214
|
className: d("min-w-32 w-auto", s),
|
|
212
215
|
align: e,
|
|
213
216
|
alignOffset: o,
|
|
214
|
-
side:
|
|
217
|
+
side: t,
|
|
215
218
|
sideOffset: a,
|
|
216
219
|
...i
|
|
217
220
|
}
|
|
218
221
|
);
|
|
219
222
|
}
|
|
220
223
|
C.displayName = "DropdownMenuSubContent";
|
|
221
|
-
const R = u(({ className: e, ...o },
|
|
224
|
+
const R = u(({ className: e, ...o }, t) => /* @__PURE__ */ n(
|
|
222
225
|
"div",
|
|
223
226
|
{
|
|
224
|
-
ref:
|
|
227
|
+
ref: t,
|
|
225
228
|
"data-slot": "dropdown-menu-section-label",
|
|
226
229
|
className: d(
|
|
227
230
|
"px-2 py-1 text-sm text-muted-foreground dark:text-muted-foreground",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as i, jsxs as d, Fragment as
|
|
1
|
+
import { jsx as i, jsxs as d, Fragment as v } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as r } from "react";
|
|
3
3
|
import { cn as o, getHostname as m } from "../../../../lib/utils.js";
|
|
4
4
|
import { Badge as g } from "../badge/badge.js";
|
|
5
|
-
import { HoverCard as
|
|
5
|
+
import { HoverCard as f, HoverCardContent as x, HoverCardTrigger as b } from "../hover-card/hover-card.js";
|
|
6
6
|
const h = r(
|
|
7
7
|
({ className: e, ...n }, t) => /* @__PURE__ */ i(
|
|
8
8
|
"span",
|
|
@@ -39,7 +39,7 @@ const N = r(({ className: e, ...n }, t) => /* @__PURE__ */ i(
|
|
|
39
39
|
));
|
|
40
40
|
N.displayName = "InlineCitationText";
|
|
41
41
|
const q = (e) => /* @__PURE__ */ i(
|
|
42
|
-
|
|
42
|
+
f,
|
|
43
43
|
{
|
|
44
44
|
"data-slot": "inline-citation-card",
|
|
45
45
|
closeDelay: 0,
|
|
@@ -59,14 +59,14 @@ const q = (e) => /* @__PURE__ */ i(
|
|
|
59
59
|
{
|
|
60
60
|
"data-slot": "inline-citation-card-trigger",
|
|
61
61
|
className: o(
|
|
62
|
-
"ml-1 inline-flex items-center justify-center rounded-md border border-transparent bg-decorative-fjord
|
|
62
|
+
"ml-1 inline-flex items-center justify-center rounded-md border border-transparent bg-decorative-background-fjord px-1 text-sm leading-4.5 font-medium text-decorative-foreground-fjord whitespace-nowrap gap-1 transition-[color,box-shadow]",
|
|
63
63
|
"[&>svg]:size-3 [&>svg]:pointer-events-none",
|
|
64
64
|
t
|
|
65
65
|
),
|
|
66
66
|
...a,
|
|
67
67
|
children: [
|
|
68
68
|
n && /* @__PURE__ */ i(n, { className: "size-3" }),
|
|
69
|
-
e[0] ? /* @__PURE__ */ d(
|
|
69
|
+
e[0] ? /* @__PURE__ */ d(v, { children: [
|
|
70
70
|
m(e[0]),
|
|
71
71
|
" ",
|
|
72
72
|
e.length > 1 && `+${e.length - 1}`
|
|
@@ -143,9 +143,9 @@ const I = r(
|
|
|
143
143
|
"inline-flex items-center justify-center rounded-md border border-transparent px-1 text-sm leading-4.5 font-medium whitespace-nowrap gap-1 transition-colors",
|
|
144
144
|
"[&>svg]:size-3 [&>svg]:pointer-events-none",
|
|
145
145
|
{
|
|
146
|
-
mountain: "bg-decorative-mountain
|
|
147
|
-
nordic: "bg-decorative-nordic
|
|
148
|
-
fjord: "bg-decorative-fjord
|
|
146
|
+
mountain: "bg-decorative-background-mountain hover:bg-decorative-background-mountain-hover text-decorative-foreground-mountain",
|
|
147
|
+
nordic: "bg-decorative-background-nordic hover:bg-decorative-background-nordic-hover text-decorative-foreground-nordic",
|
|
148
|
+
fjord: "bg-decorative-background-fjord hover:bg-decorative-background-fjord-hover text-decorative-foreground-fjord"
|
|
149
149
|
}[a],
|
|
150
150
|
l
|
|
151
151
|
),
|
|
@@ -5,7 +5,7 @@ declare const InputGroupAddon: import('react').ForwardRefExoticComponent<Omit<im
|
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
6
6
|
declare const InputGroupButton: import('react').ForwardRefExoticComponent<Omit<Omit<Omit<import('@base-ui/react').ButtonProps & VariantProps<(props?: ({
|
|
7
7
|
variant?: "default" | "secondary" | "outline" | "ghost" | "destructive" | null | undefined;
|
|
8
|
-
size?: "
|
|
8
|
+
size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
|
|
9
9
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string>, "ref"> & import('react').RefAttributes<HTMLElement>, "size"> & VariantProps<(props?: ({
|
|
10
10
|
size?: "sm" | "icon-sm" | "xs" | "icon-xs" | null | undefined;
|
|
11
11
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string>, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const Kbd: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
2
|
+
declare const KbdGroup: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import('react').RefAttributes<HTMLSpanElement>>;
|
|
3
|
+
export { Kbd, KbdGroup };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as n } from "react";
|
|
3
|
+
import { cn as d } from "../../../../lib/utils.js";
|
|
4
|
+
const i = n(
|
|
5
|
+
({ className: t, ...e }, o) => /* @__PURE__ */ a(
|
|
6
|
+
"kbd",
|
|
7
|
+
{
|
|
8
|
+
ref: o,
|
|
9
|
+
"data-slot": "kbd",
|
|
10
|
+
className: d(
|
|
11
|
+
"bg-muted-background text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-md px-1 font-sans text-xs font-medium leading-4 select-none aria-disabled:bg-disabled-background aria-disabled:text-disabled-foreground aria-disabled:opacity-100",
|
|
12
|
+
"[&_svg:not([class*='size-'])]:size-3",
|
|
13
|
+
"in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10",
|
|
14
|
+
t
|
|
15
|
+
),
|
|
16
|
+
...e
|
|
17
|
+
}
|
|
18
|
+
)
|
|
19
|
+
);
|
|
20
|
+
i.displayName = "Kbd";
|
|
21
|
+
const r = n(
|
|
22
|
+
({ className: t, ...e }, o) => /* @__PURE__ */ a(
|
|
23
|
+
"span",
|
|
24
|
+
{
|
|
25
|
+
ref: o,
|
|
26
|
+
"data-slot": "kbd-group",
|
|
27
|
+
className: d("inline-flex items-center gap-1", t),
|
|
28
|
+
...e
|
|
29
|
+
}
|
|
30
|
+
)
|
|
31
|
+
);
|
|
32
|
+
r.displayName = "KbdGroup";
|
|
33
|
+
export {
|
|
34
|
+
i as Kbd,
|
|
35
|
+
r as KbdGroup
|
|
36
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
name: "Kbd",
|
|
3
|
+
status: "draft",
|
|
4
|
+
description: "A keyboard key component for displaying keyboard shortcuts.",
|
|
5
|
+
llmUsage: "Use `<Kbd>` to display a single keyboard key. Use `<KbdGroup>` to group `<Kbd>` components together for chords or related shortcuts (e.g. `<KbdGroup><Kbd>⌘</Kbd><Kbd>K</Kbd></KbdGroup>`). Each `<Kbd>` should contain exactly one key — never put multiple keys in a single `<Kbd>`."
|
|
6
|
+
};
|
|
7
|
+
export {
|
|
8
|
+
e as KbdMetadata
|
|
9
|
+
};
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
|
|
2
|
+
type LoaderSharedProps = HTMLAttributes<HTMLDivElement>;
|
|
3
|
+
interface InlineLoaderProps extends LoaderSharedProps {
|
|
4
|
+
variant?: 'inline';
|
|
3
5
|
size?: number;
|
|
4
6
|
}
|
|
7
|
+
interface PageLoaderProps extends LoaderSharedProps {
|
|
8
|
+
variant: 'page';
|
|
9
|
+
header: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
}
|
|
12
|
+
type LoaderProps = InlineLoaderProps | PageLoaderProps;
|
|
5
13
|
declare const Loader: import('react').ForwardRefExoticComponent<LoaderProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
6
14
|
export { Loader };
|
|
7
15
|
export type { LoaderProps };
|
|
@@ -1,119 +1,118 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { cn as
|
|
4
|
-
const
|
|
1
|
+
import { jsx as a, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as h } from "react";
|
|
3
|
+
import { cn as s } from "../../../../lib/utils.js";
|
|
4
|
+
const n = ({
|
|
5
|
+
size: e = 16,
|
|
6
|
+
className: r,
|
|
7
|
+
strokeClassName: t
|
|
8
|
+
}) => /* @__PURE__ */ l(
|
|
5
9
|
"svg",
|
|
6
10
|
{
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
"aria-hidden": "true",
|
|
12
|
+
focusable: "false",
|
|
13
|
+
className: s("overflow-visible", t, r),
|
|
14
|
+
height: e,
|
|
15
|
+
viewBox: "0 0 167 216",
|
|
16
|
+
width: e,
|
|
17
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
12
18
|
children: [
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
{
|
|
46
|
-
d: "M12.7023 14.472L10.3511 11.236",
|
|
47
|
-
opacity: "0.4",
|
|
48
|
-
stroke: "currentColor",
|
|
49
|
-
strokeWidth: "1.5"
|
|
50
|
-
}
|
|
51
|
-
),
|
|
52
|
-
/* @__PURE__ */ t(
|
|
53
|
-
"path",
|
|
54
|
-
{
|
|
55
|
-
d: "M3.29773 14.472L5.64887 11.236",
|
|
56
|
-
opacity: "0.6",
|
|
57
|
-
stroke: "currentColor",
|
|
58
|
-
strokeWidth: "1.5"
|
|
59
|
-
}
|
|
60
|
-
),
|
|
61
|
-
/* @__PURE__ */ t(
|
|
62
|
-
"path",
|
|
63
|
-
{
|
|
64
|
-
d: "M15.6085 5.52783L11.8043 6.7639",
|
|
65
|
-
opacity: "0.2",
|
|
66
|
-
stroke: "currentColor",
|
|
67
|
-
strokeWidth: "1.5"
|
|
68
|
-
}
|
|
69
|
-
),
|
|
70
|
-
/* @__PURE__ */ t(
|
|
71
|
-
"path",
|
|
72
|
-
{
|
|
73
|
-
d: "M0.391602 10.472L4.19583 9.23598",
|
|
74
|
-
opacity: "0.7",
|
|
75
|
-
stroke: "currentColor",
|
|
76
|
-
strokeWidth: "1.5"
|
|
77
|
-
}
|
|
78
|
-
),
|
|
79
|
-
/* @__PURE__ */ t(
|
|
80
|
-
"path",
|
|
81
|
-
{
|
|
82
|
-
d: "M15.6085 10.4722L11.8043 9.2361",
|
|
83
|
-
opacity: "0.3",
|
|
84
|
-
stroke: "currentColor",
|
|
85
|
-
strokeWidth: "1.5"
|
|
86
|
-
}
|
|
87
|
-
),
|
|
88
|
-
/* @__PURE__ */ t(
|
|
89
|
-
"path",
|
|
90
|
-
{
|
|
91
|
-
d: "M0.391602 5.52783L4.19583 6.7639",
|
|
92
|
-
opacity: "0.8",
|
|
93
|
-
stroke: "currentColor",
|
|
94
|
-
strokeWidth: "1.5"
|
|
95
|
-
}
|
|
96
|
-
)
|
|
97
|
-
] }),
|
|
98
|
-
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_2393_1490", children: /* @__PURE__ */ t("rect", { fill: "white", height: "16", width: "16" }) }) })
|
|
19
|
+
/* @__PURE__ */ a(
|
|
20
|
+
"rect",
|
|
21
|
+
{
|
|
22
|
+
className: "aura-loader-rect aura-loader-rect-1",
|
|
23
|
+
"data-slot": "loader-rect",
|
|
24
|
+
x: "10",
|
|
25
|
+
y: "10",
|
|
26
|
+
width: "98",
|
|
27
|
+
height: "196",
|
|
28
|
+
rx: "49",
|
|
29
|
+
fill: "transparent",
|
|
30
|
+
stroke: "currentColor",
|
|
31
|
+
strokeWidth: "20",
|
|
32
|
+
strokeLinecap: "round"
|
|
33
|
+
}
|
|
34
|
+
),
|
|
35
|
+
/* @__PURE__ */ a(
|
|
36
|
+
"rect",
|
|
37
|
+
{
|
|
38
|
+
className: "aura-loader-rect aura-loader-rect-2",
|
|
39
|
+
"data-slot": "loader-rect",
|
|
40
|
+
x: "59",
|
|
41
|
+
y: "10",
|
|
42
|
+
width: "98",
|
|
43
|
+
height: "196",
|
|
44
|
+
rx: "49",
|
|
45
|
+
fill: "transparent",
|
|
46
|
+
stroke: "currentColor",
|
|
47
|
+
strokeWidth: "20",
|
|
48
|
+
strokeLinecap: "round"
|
|
49
|
+
}
|
|
50
|
+
)
|
|
99
51
|
]
|
|
100
52
|
}
|
|
101
|
-
),
|
|
102
|
-
|
|
53
|
+
), x = (e) => e.variant === "page", g = h((e, r) => {
|
|
54
|
+
const t = e.className, i = e.role ?? "status", o = e["aria-label"] ?? "Loading";
|
|
55
|
+
if (!x(e)) {
|
|
56
|
+
const {
|
|
57
|
+
size: u = 16,
|
|
58
|
+
variant: b,
|
|
59
|
+
className: k,
|
|
60
|
+
role: L,
|
|
61
|
+
"aria-label": y,
|
|
62
|
+
...f
|
|
63
|
+
} = e;
|
|
64
|
+
return /* @__PURE__ */ a(
|
|
65
|
+
"div",
|
|
66
|
+
{
|
|
67
|
+
ref: r,
|
|
68
|
+
"data-slot": "loader",
|
|
69
|
+
role: i,
|
|
70
|
+
"aria-label": o,
|
|
71
|
+
className: s("inline-flex items-center justify-center", t),
|
|
72
|
+
...f,
|
|
73
|
+
children: /* @__PURE__ */ a(n, { size: u, strokeClassName: "text-current" })
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
const {
|
|
78
|
+
variant: N,
|
|
79
|
+
className: v,
|
|
80
|
+
role: w,
|
|
81
|
+
"aria-label": p,
|
|
82
|
+
header: d,
|
|
83
|
+
description: c,
|
|
84
|
+
...m
|
|
85
|
+
} = e;
|
|
86
|
+
return /* @__PURE__ */ l(
|
|
103
87
|
"div",
|
|
104
88
|
{
|
|
105
|
-
ref:
|
|
89
|
+
ref: r,
|
|
106
90
|
"data-slot": "loader",
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
91
|
+
role: i,
|
|
92
|
+
"aria-label": o,
|
|
93
|
+
className: s(
|
|
94
|
+
"text-foreground flex h-[11.5rem] w-80 flex-col items-center justify-center gap-2",
|
|
95
|
+
t
|
|
110
96
|
),
|
|
111
|
-
...
|
|
112
|
-
children:
|
|
97
|
+
...m,
|
|
98
|
+
children: [
|
|
99
|
+
/* @__PURE__ */ a(
|
|
100
|
+
n,
|
|
101
|
+
{
|
|
102
|
+
size: 112,
|
|
103
|
+
className: "size-28",
|
|
104
|
+
strokeClassName: "text-current"
|
|
105
|
+
}
|
|
106
|
+
),
|
|
107
|
+
/* @__PURE__ */ l("div", { className: "flex w-full flex-col items-center justify-center gap-1 text-center", children: [
|
|
108
|
+
/* @__PURE__ */ a("p", { className: "text-lg font-medium leading-6 tracking-tightest text-foreground", children: d }),
|
|
109
|
+
c && /* @__PURE__ */ a("p", { className: "w-full text-sm leading-[18px] tracking-tight text-secondary-foreground", children: c })
|
|
110
|
+
] })
|
|
111
|
+
]
|
|
113
112
|
}
|
|
114
|
-
)
|
|
115
|
-
);
|
|
116
|
-
|
|
113
|
+
);
|
|
114
|
+
});
|
|
115
|
+
g.displayName = "Loader";
|
|
117
116
|
export {
|
|
118
|
-
|
|
117
|
+
g as Loader
|
|
119
118
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const e = {
|
|
2
2
|
name: "Loader",
|
|
3
3
|
status: "in-progress-code-review",
|
|
4
|
-
description: "A
|
|
5
|
-
llmUsage: "Use `<Loader
|
|
4
|
+
description: "A four-line loading indicator with inline and page variants.",
|
|
5
|
+
llmUsage: "Use `<Loader />` for inline loading, or set `variant='page'` for page-level loading copy. Use `size` for inline bars and `className` to style the loader color; page variant copy is configured with `header` and optional `description`."
|
|
6
6
|
};
|
|
7
7
|
export {
|
|
8
8
|
e as LoaderMetadata
|
|
@@ -11,7 +11,7 @@ declare const PopoverDescription: import('react').ForwardRefExoticComponent<Omit
|
|
|
11
11
|
declare const PopoverSlot: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
12
12
|
declare const PopoverClose: import('react').ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').ButtonProps & import('class-variance-authority').VariantProps<(props?: ({
|
|
13
13
|
variant?: "default" | "secondary" | "outline" | "ghost" | "destructive" | null | undefined;
|
|
14
|
-
size?: "
|
|
14
|
+
size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
|
|
15
15
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string>, "ref"> & import('react').RefAttributes<HTMLElement>, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
16
16
|
declare const PopoverContent: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').PopoverPopupProps & Pick<import('@base-ui/react').PopoverPositionerProps, "align" | "alignOffset" | "side" | "sideOffset">, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
17
17
|
export { Popover, PopoverClose, PopoverContent, PopoverDescription, PopoverHeader, PopoverHeaderContent, PopoverSlot, PopoverTitle, PopoverTrigger, };
|
|
@@ -45,7 +45,7 @@ declare const PromptInputTools: import('react').ForwardRefExoticComponent<Prompt
|
|
|
45
45
|
type PromptInputButtonProps = ComponentProps<typeof InputGroupButton>;
|
|
46
46
|
declare const PromptInputButton: import('react').ForwardRefExoticComponent<Omit<Omit<Omit<Omit<import('@base-ui/react').ButtonProps & import('class-variance-authority').VariantProps<(props?: ({
|
|
47
47
|
variant?: "default" | "secondary" | "outline" | "ghost" | "destructive" | null | undefined;
|
|
48
|
-
size?: "
|
|
48
|
+
size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
|
|
49
49
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string>, "ref"> & import('react').RefAttributes<HTMLElement>, "size"> & import('class-variance-authority').VariantProps<(props?: ({
|
|
50
50
|
size?: "sm" | "icon-sm" | "xs" | "icon-xs" | null | undefined;
|
|
51
51
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string>, "ref"> & import('react').RefAttributes<HTMLElement>, "ref"> & import('react').RefAttributes<HTMLElement>>;
|