@cognite/aura 0.1.5 → 0.1.7
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 +1269 -0
- package/README.md +24 -0
- package/dist/colors.css +824 -0
- package/dist/components/index.d.ts +11 -2
- package/dist/components/index.js +284 -249
- package/dist/components/ui/core/accordion/accordion.d.ts +24 -0
- package/dist/components/ui/core/accordion/accordion.js +113 -0
- package/dist/components/ui/core/accordion/accordion.metadata.d.ts +2 -0
- package/dist/components/ui/core/accordion/accordion.metadata.js +9 -0
- package/dist/components/ui/core/alert/alert.d.ts +2 -1
- package/dist/components/ui/core/alert/alert.js +120 -96
- package/dist/components/ui/core/alert/alert.metadata.js +1 -1
- package/dist/components/ui/core/avatar/avatar.js +29 -32
- package/dist/components/ui/core/badge/badge.d.ts +1 -1
- package/dist/components/ui/core/badge/badge.js +44 -52
- package/dist/components/ui/core/banner/banner.d.ts +40 -0
- package/dist/components/ui/core/banner/banner.js +218 -0
- package/dist/components/ui/core/banner/banner.metadata.d.ts +2 -0
- package/dist/components/ui/core/banner/banner.metadata.js +9 -0
- package/dist/components/ui/core/button/button.d.ts +2 -2
- package/dist/components/ui/core/button/button.js +19 -20
- package/dist/components/ui/core/button-group/button-group.js +10 -10
- package/dist/components/ui/core/card/card.js +1 -1
- package/dist/components/ui/core/code-block/code-block.d.ts +14 -3
- package/dist/components/ui/core/code-block/code-block.js +218 -97
- package/dist/components/ui/core/code-block/code-block.metadata.js +1 -1
- package/dist/components/ui/core/collapsible/collapsible.js +30 -24
- package/dist/components/ui/core/command/command.d.ts +2 -2
- package/dist/components/ui/core/command/command.js +30 -30
- package/dist/components/ui/core/dialog/dialog.js +8 -8
- package/dist/components/ui/core/dropdown-menu/dropdown-menu.d.ts +1 -1
- package/dist/components/ui/core/dropdown-menu/dropdown-menu.js +65 -62
- package/dist/components/ui/core/helper-text/helper-text.js +8 -8
- package/dist/components/ui/core/hover-card/hover-card.js +5 -5
- package/dist/components/ui/core/inline-citation/inline-citation.js +19 -16
- package/dist/components/ui/core/input/input.d.ts +1 -5
- package/dist/components/ui/core/input/input.js +24 -30
- package/dist/components/ui/core/input-group/input-group.d.ts +2 -2
- package/dist/components/ui/core/input-group/input-group.js +104 -74
- package/dist/components/ui/core/label/label.d.ts +3 -1
- package/dist/components/ui/core/label/label.js +39 -16
- package/dist/components/ui/core/label/label.metadata.js +2 -2
- package/dist/components/ui/core/message/message-response-default-streamdown-controls.d.ts +11 -0
- package/dist/components/ui/core/message/message-response-default-streamdown-controls.js +13 -0
- package/dist/components/ui/core/message/message.d.ts +1 -1
- package/dist/components/ui/core/message/message.js +62 -44
- package/dist/components/ui/core/popover/popover.d.ts +10 -1
- package/dist/components/ui/core/popover/popover.js +137 -34
- package/dist/components/ui/core/popover/popover.metadata.js +9 -0
- package/dist/components/ui/core/progress/progress.d.ts +10 -0
- package/dist/components/ui/core/progress/progress.js +61 -0
- package/dist/components/ui/core/progress/progress.metadata.d.ts +2 -0
- package/dist/components/ui/core/progress/progress.metadata.js +9 -0
- package/dist/components/ui/core/prompt-input/prompt-input.d.ts +2 -2
- package/dist/components/ui/core/prompt-input/prompt-input.js +100 -100
- 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/select/select.d.ts +3 -3
- package/dist/components/ui/core/select/select.js +69 -73
- package/dist/components/ui/core/skeleton/skeleton.js +6 -6
- package/dist/components/ui/core/sources/sources.js +8 -1
- package/dist/components/ui/core/textarea/textarea.d.ts +1 -8
- package/dist/components/ui/core/textarea/textarea.js +21 -45
- package/dist/components/ui/core/tool/tool.js +58 -50
- package/dist/components/ui/core/tooltip/tooltip.js +10 -10
- package/dist/index.d.ts +1 -1
- package/dist/index.js +281 -249
- package/dist/lib/utils.d.ts +6 -6
- package/dist/lib/utils.js +26 -26
- package/dist/styles.css +1 -1
- package/dist/styles.source.css +3 -812
- package/package.json +28 -9
|
@@ -27,7 +27,7 @@ function N({
|
|
|
27
27
|
}) {
|
|
28
28
|
return /* @__PURE__ */ a(e.Close, { "data-slot": "dialog-close", ...o, children: t });
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function u({
|
|
31
31
|
className: t,
|
|
32
32
|
...o
|
|
33
33
|
}) {
|
|
@@ -51,13 +51,13 @@ function C({
|
|
|
51
51
|
...s
|
|
52
52
|
}) {
|
|
53
53
|
return /* @__PURE__ */ l(p, { "data-slot": "dialog-portal", children: [
|
|
54
|
-
/* @__PURE__ */ a(
|
|
54
|
+
/* @__PURE__ */ a(u, {}),
|
|
55
55
|
/* @__PURE__ */ l(
|
|
56
56
|
e.Popup,
|
|
57
57
|
{
|
|
58
58
|
"data-slot": "dialog-content",
|
|
59
59
|
className: i(
|
|
60
|
-
"bg-popover fixed inset-x-4 top-1/2 z-50 grid -translate-y-1/2 rounded-xl border px-5 py-5 mb-2.5 shadow-xl outline-none transition-opacity duration-200 data-open:opacity-100 data-closed:opacity-0 sm:inset-x-0 sm:left-1/2 sm:w-full sm:max-w-lg sm:-translate-x-1/2",
|
|
60
|
+
"bg-popover-background fixed inset-x-4 top-1/2 z-50 grid -translate-y-1/2 rounded-xl border px-5 py-5 mb-2.5 shadow-xl outline-none transition-opacity duration-200 data-open:opacity-100 data-closed:opacity-0 sm:inset-x-0 sm:left-1/2 sm:w-full sm:max-w-lg sm:-translate-x-1/2",
|
|
61
61
|
t
|
|
62
62
|
),
|
|
63
63
|
...s,
|
|
@@ -84,7 +84,7 @@ function C({
|
|
|
84
84
|
)
|
|
85
85
|
] });
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function k({ className: t, ...o }) {
|
|
88
88
|
return /* @__PURE__ */ a(
|
|
89
89
|
"div",
|
|
90
90
|
{
|
|
@@ -97,7 +97,7 @@ function w({ className: t, ...o }) {
|
|
|
97
97
|
}
|
|
98
98
|
);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function w({ className: t, ...o }) {
|
|
101
101
|
return /* @__PURE__ */ a(
|
|
102
102
|
"div",
|
|
103
103
|
{
|
|
@@ -147,9 +147,9 @@ export {
|
|
|
147
147
|
N as DialogClose,
|
|
148
148
|
C as DialogContent,
|
|
149
149
|
T as DialogDescription,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
150
|
+
w as DialogFooter,
|
|
151
|
+
k as DialogHeader,
|
|
152
|
+
u as DialogOverlay,
|
|
153
153
|
p as DialogPortal,
|
|
154
154
|
P as DialogTitle,
|
|
155
155
|
v as DialogTrigger
|
|
@@ -4,7 +4,7 @@ declare function DropdownMenu({ ...props }: MenuPrimitive.Root.Props): import("r
|
|
|
4
4
|
declare namespace DropdownMenu {
|
|
5
5
|
var displayName: string;
|
|
6
6
|
}
|
|
7
|
-
declare function DropdownMenuPortal({ ...props }: MenuPrimitive.Portal.Props): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function DropdownMenuPortal({ container, ...props }: MenuPrimitive.Portal.Props): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
declare namespace DropdownMenuPortal {
|
|
9
9
|
var displayName: string;
|
|
10
10
|
}
|
|
@@ -1,55 +1,58 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsx as n, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as u } from "react";
|
|
3
3
|
import { Menu as r } from "@base-ui/react/menu";
|
|
4
|
-
import { IconCheck as
|
|
5
|
-
import { usePortalContainer as
|
|
4
|
+
import { IconCheck as p, IconChevronRight as f } from "@tabler/icons-react";
|
|
5
|
+
import { usePortalContainer as b } from "../../../../lib/portal-container-context.js";
|
|
6
6
|
import { cn as d } from "../../../../lib/utils.js";
|
|
7
|
-
function
|
|
8
|
-
return /* @__PURE__ */
|
|
7
|
+
function v({ ...e }) {
|
|
8
|
+
return /* @__PURE__ */ n(r.Root, { "data-slot": "dropdown-menu", ...e });
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
function l({
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
v.displayName = "DropdownMenu";
|
|
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
|
}
|
|
22
25
|
l.displayName = "DropdownMenuPortal";
|
|
23
|
-
function
|
|
26
|
+
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
|
-
container:
|
|
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",
|
|
51
54
|
className: d(
|
|
52
|
-
"bg-popover text-
|
|
55
|
+
"bg-popover-background text-foreground p-1 data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--available-height) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg border shadow-md outline-none",
|
|
53
56
|
s
|
|
54
57
|
),
|
|
55
58
|
...g
|
|
@@ -60,18 +63,18 @@ 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 =
|
|
69
|
+
const h = u(({ className: e, inset: o, variant: t = "default", children: a, ...s }, i) => /* @__PURE__ */ n(
|
|
67
70
|
r.Item,
|
|
68
71
|
{
|
|
69
|
-
ref:
|
|
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
|
-
"focus:bg-accent focus:text-
|
|
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
|
|
76
79
|
),
|
|
77
80
|
...s,
|
|
@@ -79,26 +82,26 @@ const h = i(({ className: e, inset: o, variant: n = "default", children: a, ...s
|
|
|
79
82
|
}
|
|
80
83
|
));
|
|
81
84
|
h.displayName = "DropdownMenuItem";
|
|
82
|
-
const M =
|
|
85
|
+
const M = u(({ className: e, children: o, checked: t, ...a }, s) => /* @__PURE__ */ c(
|
|
83
86
|
r.CheckboxItem,
|
|
84
87
|
{
|
|
85
88
|
ref: s,
|
|
86
89
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
87
90
|
className: d(
|
|
88
|
-
"focus:bg-accent focus:text-
|
|
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,41 +110,41 @@ function D({ ...e }) {
|
|
|
107
110
|
);
|
|
108
111
|
}
|
|
109
112
|
D.displayName = "DropdownMenuRadioGroup";
|
|
110
|
-
const N =
|
|
113
|
+
const N = u(({ className: e, children: o, ...t }, a) => /* @__PURE__ */ c(
|
|
111
114
|
r.RadioItem,
|
|
112
115
|
{
|
|
113
116
|
ref: a,
|
|
114
117
|
"data-slot": "dropdown-menu-radio-item",
|
|
115
118
|
className: d(
|
|
116
|
-
"focus:bg-accent focus:text-
|
|
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 =
|
|
130
|
+
const y = u(({ className: e, inset: o, ...t }, a) => /* @__PURE__ */ n(
|
|
128
131
|
r.GroupLabel,
|
|
129
132
|
{
|
|
130
133
|
ref: a,
|
|
131
134
|
"data-slot": "dropdown-menu-label",
|
|
132
135
|
"data-inset": o,
|
|
133
136
|
className: d(
|
|
134
|
-
"-mx-1 -mt-1 mb-1 px-2 py-1.5 text-sm border-b border-border font-medium data-inset:pl-8 text-
|
|
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
|
|
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",
|
|
@@ -150,21 +153,21 @@ const z = i(({ className: e, ...o }, n) => /* @__PURE__ */ t(
|
|
|
150
153
|
...o
|
|
151
154
|
}
|
|
152
155
|
));
|
|
153
|
-
|
|
154
|
-
const
|
|
156
|
+
k.displayName = "DropdownMenuHeader";
|
|
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
|
-
|
|
164
|
-
const I =
|
|
166
|
+
z.displayName = "DropdownMenuSeparator";
|
|
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,23 +178,23 @@ const I = i(({ 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 _ =
|
|
184
|
+
const _ = u(({ className: e, inset: o, children: t, ...a }, s) => /* @__PURE__ */ c(
|
|
182
185
|
r.SubmenuTrigger,
|
|
183
186
|
{
|
|
184
187
|
ref: s,
|
|
185
188
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
186
189
|
"data-inset": o,
|
|
187
190
|
className: d(
|
|
188
|
-
"focus:bg-accent focus:text-
|
|
191
|
+
"focus:bg-accent-background focus:text-foreground data-open:bg-accent-background data-open:text-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-inset:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
189
192
|
e
|
|
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 =
|
|
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",
|
|
@@ -232,21 +235,21 @@ const R = i(({ className: e, ...o }, n) => /* @__PURE__ */ t(
|
|
|
232
235
|
));
|
|
233
236
|
R.displayName = "DropdownMenuSectionLabel";
|
|
234
237
|
export {
|
|
235
|
-
|
|
238
|
+
v as DropdownMenu,
|
|
236
239
|
M as DropdownMenuCheckboxItem,
|
|
237
240
|
m as DropdownMenuContent,
|
|
238
241
|
x as DropdownMenuGroup,
|
|
239
|
-
|
|
242
|
+
k as DropdownMenuHeader,
|
|
240
243
|
h as DropdownMenuItem,
|
|
241
244
|
y as DropdownMenuLabel,
|
|
242
245
|
l as DropdownMenuPortal,
|
|
243
246
|
D as DropdownMenuRadioGroup,
|
|
244
247
|
N as DropdownMenuRadioItem,
|
|
245
248
|
R as DropdownMenuSectionLabel,
|
|
246
|
-
|
|
249
|
+
z as DropdownMenuSeparator,
|
|
247
250
|
I as DropdownMenuShortcut,
|
|
248
251
|
S as DropdownMenuSub,
|
|
249
252
|
C as DropdownMenuSubContent,
|
|
250
253
|
_ as DropdownMenuSubTrigger,
|
|
251
|
-
|
|
254
|
+
w as DropdownMenuTrigger
|
|
252
255
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as f, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as g, isValidElement as u } from "react";
|
|
3
3
|
import { IconExclamationCircle as h } from "@tabler/icons-react";
|
|
4
4
|
import { cva as i } from "class-variance-authority";
|
|
5
5
|
import { cn as n } from "../../../../lib/utils.js";
|
|
6
|
-
const v = i("flex flex-row justify-start items-start", {
|
|
6
|
+
const v = i("flex flex-row justify-start items-start pt-2", {
|
|
7
7
|
variants: {
|
|
8
8
|
size: {
|
|
9
|
-
xs: "gap-
|
|
9
|
+
xs: "gap-1 text-xs leading-3.5 tracking-tightest",
|
|
10
10
|
sm: "gap-1 text-sm leading-4.5 tracking-tight"
|
|
11
11
|
}
|
|
12
12
|
},
|
|
@@ -32,17 +32,17 @@ const v = i("flex flex-row justify-start items-start", {
|
|
|
32
32
|
icon: m,
|
|
33
33
|
children: c,
|
|
34
34
|
...x
|
|
35
|
-
},
|
|
36
|
-
const a = m ?? (s ? /* @__PURE__ */ e(h, {}) : null),
|
|
37
|
-
return /* @__PURE__ */
|
|
35
|
+
}, p) => {
|
|
36
|
+
const a = m ?? (s ? /* @__PURE__ */ e(h, {}) : null), d = u(a), r = s ? "text-destructive-foreground" : l ? "text-success-foreground" : "text-muted-foreground";
|
|
37
|
+
return /* @__PURE__ */ f(
|
|
38
38
|
"div",
|
|
39
39
|
{
|
|
40
|
-
ref:
|
|
40
|
+
ref: p,
|
|
41
41
|
"data-slot": "helper-text",
|
|
42
42
|
className: n(v({ size: t }), o),
|
|
43
43
|
...x,
|
|
44
44
|
children: [
|
|
45
|
-
|
|
45
|
+
d ? /* @__PURE__ */ e(
|
|
46
46
|
"span",
|
|
47
47
|
{
|
|
48
48
|
className: n(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { createContext as p, forwardRef as l, useContext as f, useMemo as u } from "react";
|
|
3
3
|
import { PreviewCard as d } from "@base-ui/react/preview-card";
|
|
4
|
-
import { usePortalContainer as
|
|
5
|
-
import { cn as
|
|
4
|
+
import { usePortalContainer as g } from "../../../../lib/portal-container-context.js";
|
|
5
|
+
import { cn as v } from "../../../../lib/utils.js";
|
|
6
6
|
const m = p(null);
|
|
7
7
|
function C({
|
|
8
8
|
openDelay: o,
|
|
@@ -40,7 +40,7 @@ const y = l(
|
|
|
40
40
|
alignOffset: n = 4,
|
|
41
41
|
...i
|
|
42
42
|
}, s) => {
|
|
43
|
-
const c =
|
|
43
|
+
const c = g();
|
|
44
44
|
return /* @__PURE__ */ t(
|
|
45
45
|
d.Portal,
|
|
46
46
|
{
|
|
@@ -59,8 +59,8 @@ const y = l(
|
|
|
59
59
|
{
|
|
60
60
|
ref: s,
|
|
61
61
|
"data-slot": "hover-card-content",
|
|
62
|
-
className:
|
|
63
|
-
"bg-popover text-
|
|
62
|
+
className: v(
|
|
63
|
+
"bg-popover-background text-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-[var(--transform-origin)] rounded-md border p-4 shadow-md outline-none",
|
|
64
64
|
o
|
|
65
65
|
),
|
|
66
66
|
...i
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as i, jsxs as d, Fragment as
|
|
1
|
+
import { jsx as i, jsxs as d, Fragment as f } 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 v, 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",
|
|
@@ -30,13 +30,16 @@ const N = r(({ className: e, ...n }, t) => /* @__PURE__ */ i(
|
|
|
30
30
|
{
|
|
31
31
|
ref: t,
|
|
32
32
|
"data-slot": "inline-citation-text",
|
|
33
|
-
className: o(
|
|
33
|
+
className: o(
|
|
34
|
+
"transition-colors group-hover:bg-accent-background",
|
|
35
|
+
e
|
|
36
|
+
),
|
|
34
37
|
...n
|
|
35
38
|
}
|
|
36
39
|
));
|
|
37
40
|
N.displayName = "InlineCitationText";
|
|
38
41
|
const q = (e) => /* @__PURE__ */ i(
|
|
39
|
-
|
|
42
|
+
v,
|
|
40
43
|
{
|
|
41
44
|
"data-slot": "inline-citation-card",
|
|
42
45
|
closeDelay: 0,
|
|
@@ -56,14 +59,14 @@ const q = (e) => /* @__PURE__ */ i(
|
|
|
56
59
|
{
|
|
57
60
|
"data-slot": "inline-citation-card-trigger",
|
|
58
61
|
className: o(
|
|
59
|
-
"ml-1 inline-flex items-center justify-center rounded-md border border-transparent bg-decorative-background
|
|
62
|
+
"ml-1 inline-flex items-center justify-center rounded-md border border-transparent bg-decorative-fjord-background px-1 text-sm leading-4.5 font-medium text-decorative-fjord-foreground whitespace-nowrap gap-1 transition-[color,box-shadow]",
|
|
60
63
|
"[&>svg]:size-3 [&>svg]:pointer-events-none",
|
|
61
64
|
t
|
|
62
65
|
),
|
|
63
66
|
...a,
|
|
64
67
|
children: [
|
|
65
68
|
n && /* @__PURE__ */ i(n, { className: "size-3" }),
|
|
66
|
-
e[0] ? /* @__PURE__ */ d(
|
|
69
|
+
e[0] ? /* @__PURE__ */ d(f, { children: [
|
|
67
70
|
m(e[0]),
|
|
68
71
|
" ",
|
|
69
72
|
e.length > 1 && `+${e.length - 1}`
|
|
@@ -82,7 +85,7 @@ const q = (e) => /* @__PURE__ */ i(
|
|
|
82
85
|
className: o("relative w-80 p-0", e),
|
|
83
86
|
...n
|
|
84
87
|
}
|
|
85
|
-
),
|
|
88
|
+
), k = r(({ title: e, url: n, description: t, className: a, children: l, ...s }, c) => /* @__PURE__ */ d(
|
|
86
89
|
"div",
|
|
87
90
|
{
|
|
88
91
|
ref: c,
|
|
@@ -97,21 +100,21 @@ const q = (e) => /* @__PURE__ */ i(
|
|
|
97
100
|
]
|
|
98
101
|
}
|
|
99
102
|
));
|
|
100
|
-
|
|
101
|
-
const
|
|
103
|
+
k.displayName = "InlineCitationSource";
|
|
104
|
+
const y = r(({ children: e, className: n, ...t }, a) => /* @__PURE__ */ i(
|
|
102
105
|
"blockquote",
|
|
103
106
|
{
|
|
104
107
|
ref: a,
|
|
105
108
|
"data-slot": "inline-citation-quote",
|
|
106
109
|
className: o(
|
|
107
|
-
"border-muted border-l-2 pl-3 text-muted-foreground text-sm italic",
|
|
110
|
+
"border-muted-background border-l-2 pl-3 text-muted-foreground text-sm italic",
|
|
108
111
|
n
|
|
109
112
|
),
|
|
110
113
|
...t,
|
|
111
114
|
children: e
|
|
112
115
|
}
|
|
113
116
|
));
|
|
114
|
-
|
|
117
|
+
y.displayName = "InlineCitationQuote";
|
|
115
118
|
const I = r(
|
|
116
119
|
({
|
|
117
120
|
href: e,
|
|
@@ -140,9 +143,9 @@ const I = r(
|
|
|
140
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",
|
|
141
144
|
"[&>svg]:size-3 [&>svg]:pointer-events-none",
|
|
142
145
|
{
|
|
143
|
-
mountain: "bg-decorative-background
|
|
144
|
-
nordic: "bg-decorative-background
|
|
145
|
-
fjord: "bg-decorative-background
|
|
146
|
+
mountain: "bg-decorative-mountain-background hover:bg-decorative-mountain-background-hover text-decorative-mountain-foreground",
|
|
147
|
+
nordic: "bg-decorative-nordic-background hover:bg-background-hover text-decorative-nordic-foreground",
|
|
148
|
+
fjord: "bg-decorative-fjord-background hover:bg-decorative-fjord-background-hover text-decorative-fjord-foreground"
|
|
146
149
|
}[a],
|
|
147
150
|
l
|
|
148
151
|
),
|
|
@@ -164,7 +167,7 @@ export {
|
|
|
164
167
|
B as InlineCitationCardTrigger,
|
|
165
168
|
C as InlineCitationGroup,
|
|
166
169
|
I as InlineCitationLink,
|
|
167
|
-
|
|
168
|
-
|
|
170
|
+
y as InlineCitationQuote,
|
|
171
|
+
k as InlineCitationSource,
|
|
169
172
|
N as InlineCitationText
|
|
170
173
|
};
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
interface InputProps extends ComponentProps<'input'> {
|
|
3
|
-
errorMessage?: ReactNode;
|
|
4
|
-
}
|
|
5
|
-
declare const Input: import('react').ForwardRefExoticComponent<Omit<InputProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
|
|
1
|
+
declare const Input: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
|
|
6
2
|
export { Input };
|
|
@@ -1,34 +1,28 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as o } from "react";
|
|
3
|
-
import { cn as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
),
|
|
25
|
-
...l
|
|
26
|
-
}
|
|
27
|
-
),
|
|
28
|
-
/* @__PURE__ */ r(x, { errorMessage: e })
|
|
29
|
-
] })
|
|
3
|
+
import { cn as l, readOnlyState as i, disabledState as m, invalidState as n, focusState as f, filledState as p, hoverState as s, formElementBase as d } from "../../../../lib/utils.js";
|
|
4
|
+
const u = o(
|
|
5
|
+
({ className: t, ...e }, a) => /* @__PURE__ */ r(
|
|
6
|
+
"input",
|
|
7
|
+
{
|
|
8
|
+
ref: a,
|
|
9
|
+
"data-slot": "input",
|
|
10
|
+
className: l(
|
|
11
|
+
"w-full",
|
|
12
|
+
d,
|
|
13
|
+
s,
|
|
14
|
+
p,
|
|
15
|
+
f,
|
|
16
|
+
n,
|
|
17
|
+
m,
|
|
18
|
+
i,
|
|
19
|
+
t
|
|
20
|
+
),
|
|
21
|
+
...e
|
|
22
|
+
}
|
|
23
|
+
)
|
|
30
24
|
);
|
|
31
|
-
|
|
25
|
+
u.displayName = "Input";
|
|
32
26
|
export {
|
|
33
|
-
|
|
27
|
+
u as Input
|
|
34
28
|
};
|
|
@@ -4,8 +4,8 @@ declare const InputGroupAddon: import('react').ForwardRefExoticComponent<Omit<im
|
|
|
4
4
|
align?: "block-end" | "block-start" | "inline-end" | "inline-start" | null | undefined;
|
|
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
|
-
variant?: "
|
|
8
|
-
size?: "
|
|
7
|
+
variant?: "default" | "secondary" | "outline" | "ghost" | "destructive" | null | undefined;
|
|
8
|
+
size?: "icon" | "default" | "sm" | "lg" | "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>>;
|