@cognite/aura 0.1.7 → 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 +34 -92
- package/README.md +3 -3
- package/dist/colors.css +441 -214
- package/dist/components/index.d.ts +15 -1
- package/dist/components/index.js +345 -275
- package/dist/components/ui/core/accordion/accordion.js +22 -22
- package/dist/components/ui/core/alert/alert.d.ts +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 +1 -1
- 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/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/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/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 +314 -255
- 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 +5 -5
|
@@ -1,143 +1,187 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { IconDotsVertical as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { Button as
|
|
6
|
-
import { DropdownMenu as
|
|
7
|
-
const
|
|
8
|
-
({ className:
|
|
1
|
+
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as d } from "react";
|
|
3
|
+
import { IconDotsVertical as l } from "@tabler/icons-react";
|
|
4
|
+
import { cn as s } from "../../../../lib/utils.js";
|
|
5
|
+
import { Button as c } from "../button/button.js";
|
|
6
|
+
import { DropdownMenu as i, DropdownMenuTrigger as m, DropdownMenuContent as f } from "../dropdown-menu/dropdown-menu.js";
|
|
7
|
+
const p = d(
|
|
8
|
+
({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
|
-
ref:
|
|
11
|
+
ref: a,
|
|
12
12
|
"data-slot": "card",
|
|
13
|
-
className:
|
|
14
|
-
"bg-card-background text-foreground flex flex-col rounded-
|
|
15
|
-
|
|
13
|
+
className: s(
|
|
14
|
+
"bg-card-background text-foreground flex flex-col rounded-xl p-4 gap-4",
|
|
15
|
+
t
|
|
16
16
|
),
|
|
17
17
|
...r
|
|
18
18
|
}
|
|
19
19
|
)
|
|
20
20
|
);
|
|
21
|
-
|
|
22
|
-
const
|
|
23
|
-
({ className:
|
|
21
|
+
p.displayName = "Card";
|
|
22
|
+
const u = d(
|
|
23
|
+
({ className: t, children: r, ...a }, o) => /* @__PURE__ */ e(
|
|
24
24
|
"div",
|
|
25
25
|
{
|
|
26
|
-
ref:
|
|
27
|
-
"data-slot": "card-header",
|
|
28
|
-
className:
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
"has-data-[slot=card-icon]:grid-cols-[auto_1fr]",
|
|
32
|
-
"has-data-[slot=card-header-right]:grid-cols-[1fr_auto]",
|
|
33
|
-
"has-data-[slot=card-icon]:has-data-[slot=card-header-right]:grid-cols-[auto_1fr_auto]",
|
|
34
|
-
a
|
|
26
|
+
ref: o,
|
|
27
|
+
"data-slot": "card-header-start",
|
|
28
|
+
className: s(
|
|
29
|
+
"col-start-1 row-start-1 h-12 self-stretch pt-1.5",
|
|
30
|
+
t
|
|
35
31
|
),
|
|
36
|
-
...
|
|
32
|
+
...a,
|
|
33
|
+
children: /* @__PURE__ */ e("div", { className: "flex items-start h-full", children: r })
|
|
37
34
|
}
|
|
38
35
|
)
|
|
39
36
|
);
|
|
40
|
-
|
|
41
|
-
const
|
|
42
|
-
({ className: a, children: r, ...t }, s) => /* @__PURE__ */ d(
|
|
43
|
-
"div",
|
|
44
|
-
{
|
|
45
|
-
ref: s,
|
|
46
|
-
"data-slot": "card-icon",
|
|
47
|
-
className: o("col-start-1 row-start-1 h-full", a),
|
|
48
|
-
...t,
|
|
49
|
-
children: /* @__PURE__ */ d("div", { className: "flex items-center h-full", children: r })
|
|
50
|
-
}
|
|
51
|
-
)
|
|
52
|
-
);
|
|
53
|
-
f.displayName = "CardIcon";
|
|
54
|
-
const g = e(({ className: a, as: r = "h3", ...t }, s) => /* @__PURE__ */ d(
|
|
37
|
+
u.displayName = "CardHeaderStart";
|
|
38
|
+
const C = d(({ className: t, as: r = "h3", ...a }, o) => /* @__PURE__ */ e(
|
|
55
39
|
r,
|
|
56
40
|
{
|
|
57
|
-
ref:
|
|
41
|
+
ref: o,
|
|
58
42
|
"data-slot": "card-title",
|
|
59
|
-
className:
|
|
60
|
-
"tracking-tightest text-foreground font-medium text-lg
|
|
61
|
-
|
|
62
|
-
a
|
|
43
|
+
className: s(
|
|
44
|
+
"tracking-tightest text-foreground font-medium text-lg leading-6 line-clamp-2 overflow-hidden",
|
|
45
|
+
t
|
|
63
46
|
),
|
|
64
|
-
...
|
|
47
|
+
...a
|
|
65
48
|
}
|
|
66
49
|
));
|
|
67
|
-
|
|
68
|
-
const
|
|
69
|
-
({ className:
|
|
50
|
+
C.displayName = "CardTitle";
|
|
51
|
+
const g = d(
|
|
52
|
+
({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
70
53
|
"p",
|
|
71
54
|
{
|
|
72
|
-
ref:
|
|
55
|
+
ref: a,
|
|
73
56
|
"data-slot": "card-description",
|
|
74
|
-
className:
|
|
75
|
-
"text-muted-foreground text-sm
|
|
76
|
-
|
|
77
|
-
a
|
|
57
|
+
className: s(
|
|
58
|
+
"text-muted-foreground text-sm font-normal leading-5 tracking-tight line-clamp-2 overflow-hidden",
|
|
59
|
+
t
|
|
78
60
|
),
|
|
79
61
|
...r
|
|
80
62
|
}
|
|
81
63
|
)
|
|
82
64
|
);
|
|
83
|
-
|
|
84
|
-
const
|
|
85
|
-
({ className:
|
|
65
|
+
g.displayName = "CardDescription";
|
|
66
|
+
const x = d(
|
|
67
|
+
({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
68
|
+
"div",
|
|
69
|
+
{
|
|
70
|
+
ref: a,
|
|
71
|
+
"data-slot": "card-header-end",
|
|
72
|
+
className: s(
|
|
73
|
+
"col-start-3 row-start-1 self-start justify-self-end flex justify-end items-start gap-1",
|
|
74
|
+
t
|
|
75
|
+
),
|
|
76
|
+
...r
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
);
|
|
80
|
+
x.displayName = "CardHeaderEnd";
|
|
81
|
+
const N = d(
|
|
82
|
+
({ className: t, children: r, ...a }, o) => /* @__PURE__ */ e(
|
|
83
|
+
"div",
|
|
84
|
+
{
|
|
85
|
+
ref: o,
|
|
86
|
+
"data-slot": "card-header",
|
|
87
|
+
className: s(
|
|
88
|
+
"group/card-header @container/card-header grid items-center gap-x-3 grid-cols-[auto_minmax(0,1fr)_auto]",
|
|
89
|
+
t
|
|
90
|
+
),
|
|
91
|
+
...a,
|
|
92
|
+
children: r
|
|
93
|
+
}
|
|
94
|
+
)
|
|
95
|
+
);
|
|
96
|
+
N.displayName = "CardHeader";
|
|
97
|
+
const h = d(
|
|
98
|
+
({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
86
99
|
"div",
|
|
87
100
|
{
|
|
88
|
-
ref:
|
|
89
|
-
"data-slot": "card-header-
|
|
90
|
-
className:
|
|
91
|
-
"
|
|
92
|
-
|
|
101
|
+
ref: a,
|
|
102
|
+
"data-slot": "card-header-center",
|
|
103
|
+
className: s(
|
|
104
|
+
"col-start-1 row-start-1 min-w-0 flex flex-col justify-center",
|
|
105
|
+
"group-has-data-[slot=card-header-start]/card-header:col-start-2",
|
|
106
|
+
t
|
|
93
107
|
),
|
|
94
108
|
...r
|
|
95
109
|
}
|
|
96
110
|
)
|
|
97
111
|
);
|
|
98
|
-
|
|
99
|
-
const
|
|
100
|
-
/* @__PURE__ */
|
|
112
|
+
h.displayName = "CardHeaderCenter";
|
|
113
|
+
const y = d(({ children: t, align: r = "end", ...a }, o) => /* @__PURE__ */ n(i, { ...a, children: [
|
|
114
|
+
/* @__PURE__ */ e(
|
|
101
115
|
m,
|
|
102
116
|
{
|
|
103
|
-
render: /* @__PURE__ */
|
|
117
|
+
render: /* @__PURE__ */ e(c, { variant: "ghost", size: "icon-sm", ref: o, children: /* @__PURE__ */ e(l, {}) })
|
|
104
118
|
}
|
|
105
119
|
),
|
|
106
|
-
/* @__PURE__ */
|
|
120
|
+
/* @__PURE__ */ e(f, { align: r, children: t })
|
|
107
121
|
] }));
|
|
108
|
-
|
|
109
|
-
const
|
|
110
|
-
({ className:
|
|
122
|
+
y.displayName = "CardActions";
|
|
123
|
+
const v = d(
|
|
124
|
+
({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
111
125
|
"div",
|
|
112
126
|
{
|
|
113
|
-
ref:
|
|
127
|
+
ref: a,
|
|
114
128
|
"data-slot": "card-content",
|
|
115
|
-
className:
|
|
129
|
+
className: s(
|
|
130
|
+
"text-secondary-foreground flex flex-col items-start gap-4 self-stretch",
|
|
131
|
+
t
|
|
132
|
+
),
|
|
116
133
|
...r
|
|
117
134
|
}
|
|
118
135
|
)
|
|
119
136
|
);
|
|
120
|
-
|
|
121
|
-
const
|
|
122
|
-
({ className:
|
|
137
|
+
v.displayName = "CardContent";
|
|
138
|
+
const w = d(
|
|
139
|
+
({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
123
140
|
"div",
|
|
124
141
|
{
|
|
125
|
-
ref:
|
|
142
|
+
ref: a,
|
|
126
143
|
"data-slot": "card-footer",
|
|
127
|
-
className:
|
|
144
|
+
className: s("flex items-center gap-4 self-stretch", t),
|
|
145
|
+
...r
|
|
146
|
+
}
|
|
147
|
+
)
|
|
148
|
+
);
|
|
149
|
+
w.displayName = "CardFooter";
|
|
150
|
+
const H = d(
|
|
151
|
+
({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
152
|
+
"div",
|
|
153
|
+
{
|
|
154
|
+
ref: a,
|
|
155
|
+
"data-slot": "card-footer-start",
|
|
156
|
+
className: s("flex-1 flex items-start justify-start gap-2", t),
|
|
157
|
+
...r
|
|
158
|
+
}
|
|
159
|
+
)
|
|
160
|
+
);
|
|
161
|
+
H.displayName = "CardFooterStart";
|
|
162
|
+
const j = d(
|
|
163
|
+
({ className: t, ...r }, a) => /* @__PURE__ */ e(
|
|
164
|
+
"div",
|
|
165
|
+
{
|
|
166
|
+
ref: a,
|
|
167
|
+
"data-slot": "card-footer-end",
|
|
168
|
+
className: s("flex items-center justify-end", t),
|
|
128
169
|
...r
|
|
129
170
|
}
|
|
130
171
|
)
|
|
131
172
|
);
|
|
132
|
-
|
|
173
|
+
j.displayName = "CardFooterEnd";
|
|
133
174
|
export {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
175
|
+
p as Card,
|
|
176
|
+
y as CardActions,
|
|
177
|
+
v as CardContent,
|
|
178
|
+
g as CardDescription,
|
|
179
|
+
w as CardFooter,
|
|
180
|
+
j as CardFooterEnd,
|
|
181
|
+
H as CardFooterStart,
|
|
182
|
+
N as CardHeader,
|
|
183
|
+
h as CardHeaderCenter,
|
|
184
|
+
x as CardHeaderEnd,
|
|
185
|
+
u as CardHeaderStart,
|
|
186
|
+
C as CardTitle
|
|
143
187
|
};
|
|
@@ -2,7 +2,7 @@ const e = {
|
|
|
2
2
|
name: "Card",
|
|
3
3
|
status: "in-progress-code-review",
|
|
4
4
|
description: "A flexible card layout with header, content, action, and footer slots.",
|
|
5
|
-
llmUsage: "Use `<Card>` with `<CardHeader>`, `<CardTitle>`, `<CardDescription>`, `<CardContent>`, and `<CardFooter>` for structured content containers."
|
|
5
|
+
llmUsage: "Use `<Card>` with `<CardHeader>`, `<CardHeaderCenter>`, `<CardTitle>`, `<CardDescription>`, `<CardContent>`, and `<CardFooter>` for structured content containers."
|
|
6
6
|
};
|
|
7
7
|
export {
|
|
8
8
|
e as CardMetadata
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
type Orientation = 'horizontal' | 'vertical';
|
|
4
|
+
declare const CheckboxGroup: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
5
|
+
orientation?: Orientation;
|
|
6
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const CheckboxItem: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLLabelElement> & VariantProps<(props?: ({
|
|
8
|
+
variant?: "default" | "card" | null | undefined;
|
|
9
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & import('react').RefAttributes<HTMLLabelElement>>;
|
|
10
|
+
declare const CheckboxItemControl: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').CheckboxRootProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
11
|
+
declare const CheckboxItemLabel: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & import('react').RefAttributes<HTMLSpanElement>>;
|
|
12
|
+
declare const CheckboxItemDescription: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & import('react').RefAttributes<HTMLSpanElement>>;
|
|
13
|
+
export { CheckboxGroup, CheckboxItem, CheckboxItemControl, CheckboxItemDescription, CheckboxItemLabel, };
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as r } from "react";
|
|
3
|
+
import { Checkbox as i } from "@base-ui/react/checkbox";
|
|
4
|
+
import { IconCheck as l, IconMinus as b } from "@tabler/icons-react";
|
|
5
|
+
import { cva as m } from "class-variance-authority";
|
|
6
|
+
import { cn as d, selectionItemBase as h, selectionItemCard as k, selectionItemDefault as u, invalidState as x, focusState as p, selectionItemLabel as g, selectionItemDescription as f } from "../../../../lib/utils.js";
|
|
7
|
+
const I = r(
|
|
8
|
+
({ className: a, orientation: e = "vertical", role: t = "group", ...c }, n) => /* @__PURE__ */ o(
|
|
9
|
+
"div",
|
|
10
|
+
{
|
|
11
|
+
ref: n,
|
|
12
|
+
role: t,
|
|
13
|
+
"data-slot": "checkbox-group",
|
|
14
|
+
"data-orientation": e,
|
|
15
|
+
className: d(
|
|
16
|
+
e === "horizontal" ? "flex items-center gap-2" : "grid has-[[data-variant=card]]:gap-2",
|
|
17
|
+
a
|
|
18
|
+
),
|
|
19
|
+
...c
|
|
20
|
+
}
|
|
21
|
+
)
|
|
22
|
+
);
|
|
23
|
+
I.displayName = "CheckboxGroup";
|
|
24
|
+
const C = m(d("group/checkbox-item", h), {
|
|
25
|
+
variants: {
|
|
26
|
+
variant: {
|
|
27
|
+
default: u,
|
|
28
|
+
card: k
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
defaultVariants: {
|
|
32
|
+
variant: "default"
|
|
33
|
+
}
|
|
34
|
+
}), v = r(
|
|
35
|
+
({ className: a, variant: e, ...t }, c) => /* @__PURE__ */ o(
|
|
36
|
+
"label",
|
|
37
|
+
{
|
|
38
|
+
ref: c,
|
|
39
|
+
"data-slot": "checkbox-item",
|
|
40
|
+
"data-variant": e ?? "default",
|
|
41
|
+
className: d(C({ variant: e }), a),
|
|
42
|
+
...t
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
);
|
|
46
|
+
v.displayName = "CheckboxItem";
|
|
47
|
+
const N = r(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
48
|
+
i.Root,
|
|
49
|
+
{
|
|
50
|
+
ref: t,
|
|
51
|
+
"data-slot": "checkbox-item-control",
|
|
52
|
+
className: d(
|
|
53
|
+
"peer relative size-4 shrink-0 rounded-sm border-[1.5px] border-inactive-foreground bg-transparent text-foreground-on-primary outline-none transition-colors",
|
|
54
|
+
"[&:is([data-checked],[data-indeterminate]):not([data-disabled])]:border-transparent [&:is([data-checked],[data-indeterminate]):not([data-disabled])]:bg-primary-background",
|
|
55
|
+
"data-unchecked:not-data-disabled:hover:border-secondary-foreground group-hover/checkbox-item:data-unchecked:not-data-disabled:border-secondary-foreground",
|
|
56
|
+
"data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:border-transparent data-disabled:bg-disabled-background data-disabled:text-disabled-foreground data-disabled:data-unchecked:border-border",
|
|
57
|
+
"[&[data-checked]_[data-slot=checkbox-check]]:block [&[data-indeterminate]_[data-slot=checkbox-dash]]:block",
|
|
58
|
+
p,
|
|
59
|
+
x,
|
|
60
|
+
a
|
|
61
|
+
),
|
|
62
|
+
...e,
|
|
63
|
+
children: /* @__PURE__ */ s(
|
|
64
|
+
i.Indicator,
|
|
65
|
+
{
|
|
66
|
+
"data-slot": "checkbox-indicator",
|
|
67
|
+
className: "grid size-full place-content-center text-current transition-none",
|
|
68
|
+
children: [
|
|
69
|
+
/* @__PURE__ */ o(
|
|
70
|
+
l,
|
|
71
|
+
{
|
|
72
|
+
"aria-hidden": "true",
|
|
73
|
+
"data-slot": "checkbox-check",
|
|
74
|
+
className: "hidden size-3",
|
|
75
|
+
stroke: 3
|
|
76
|
+
}
|
|
77
|
+
),
|
|
78
|
+
/* @__PURE__ */ o(
|
|
79
|
+
b,
|
|
80
|
+
{
|
|
81
|
+
"aria-hidden": "true",
|
|
82
|
+
"data-slot": "checkbox-dash",
|
|
83
|
+
className: "hidden size-3",
|
|
84
|
+
stroke: 3.5
|
|
85
|
+
}
|
|
86
|
+
)
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
)
|
|
90
|
+
}
|
|
91
|
+
));
|
|
92
|
+
N.displayName = "CheckboxItemControl";
|
|
93
|
+
const y = r(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
94
|
+
"span",
|
|
95
|
+
{
|
|
96
|
+
ref: t,
|
|
97
|
+
"data-slot": "checkbox-item-label",
|
|
98
|
+
className: d(
|
|
99
|
+
g,
|
|
100
|
+
"group-has-[[data-checked]]/checkbox-item:text-foreground",
|
|
101
|
+
"group-has-[[data-indeterminate]]/checkbox-item:text-foreground",
|
|
102
|
+
"group-has-[[data-disabled]]/checkbox-item:text-disabled-foreground",
|
|
103
|
+
a
|
|
104
|
+
),
|
|
105
|
+
...e
|
|
106
|
+
}
|
|
107
|
+
));
|
|
108
|
+
y.displayName = "CheckboxItemLabel";
|
|
109
|
+
const z = r(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
110
|
+
"span",
|
|
111
|
+
{
|
|
112
|
+
ref: t,
|
|
113
|
+
"data-slot": "checkbox-item-description",
|
|
114
|
+
className: d(
|
|
115
|
+
f,
|
|
116
|
+
"group-has-[[data-disabled]]/checkbox-item:text-disabled-foreground",
|
|
117
|
+
a
|
|
118
|
+
),
|
|
119
|
+
...e
|
|
120
|
+
}
|
|
121
|
+
));
|
|
122
|
+
z.displayName = "CheckboxItemDescription";
|
|
123
|
+
export {
|
|
124
|
+
I as CheckboxGroup,
|
|
125
|
+
v as CheckboxItem,
|
|
126
|
+
N as CheckboxItemControl,
|
|
127
|
+
z as CheckboxItemDescription,
|
|
128
|
+
y as CheckboxItemLabel
|
|
129
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
name: "Checkbox",
|
|
3
|
+
description: "A composable checkbox group with optional label and description slots, including a card-style item variant and support for checked, unchecked, and indeterminate states.",
|
|
4
|
+
llmUsage: 'Use `<CheckboxGroup>` with `<CheckboxItem>` wrapping `<CheckboxItemControl />`, plus optional `<CheckboxItemLabel>` and `<CheckboxItemDescription>`. Always pass an accessible name on `<CheckboxItemControl>` via `aria-label` (or `aria-labelledby` pointing to the label\'s id) — the wrapping `<label>` element names the underlying hidden form input, but does not name the visible `role="checkbox"` element that screen readers focus on. `<CheckboxItemDescription>` is a visual slot at this primitive layer; if you need it announced by screen readers, give it an `id` and pass `aria-describedby` to `<CheckboxItemControl>`. Use `variant="card"` on `<CheckboxItem>` for card-style options. `<CheckboxItemControl>` supports `checked`, `defaultChecked`, `indeterminate`, `onCheckedChange`, `disabled`, and `required` for form integration.'
|
|
5
|
+
};
|
|
6
|
+
export {
|
|
7
|
+
e as CheckboxMetadata
|
|
8
|
+
};
|
|
@@ -20,7 +20,7 @@ type CodeBlockCopyButtonProps = ComponentProps<typeof Button> & {
|
|
|
20
20
|
declare const CodeBlockCopyButton: import('react').ForwardRefExoticComponent<Omit<CodeBlockCopyButtonProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
21
21
|
declare const CodeBlockCollapseButton: import('react').ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').ButtonProps & import('class-variance-authority').VariantProps<(props?: ({
|
|
22
22
|
variant?: "default" | "secondary" | "outline" | "ghost" | "destructive" | null | undefined;
|
|
23
|
-
size?: "
|
|
23
|
+
size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
|
|
24
24
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string>, "ref"> & import('react').RefAttributes<HTMLElement>, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
25
25
|
type CodeBlockDownloadButtonProps = ComponentProps<typeof Button> & {
|
|
26
26
|
fileName?: string;
|
|
@@ -31,7 +31,7 @@ declare const CommandInput: import('react').ForwardRefExoticComponent<Omit<Omit<
|
|
|
31
31
|
ref?: React.Ref<HTMLInputElement>;
|
|
32
32
|
} & {
|
|
33
33
|
asChild?: boolean;
|
|
34
|
-
}, "key" | keyof import('react').InputHTMLAttributes<HTMLInputElement> | "asChild">, "
|
|
34
|
+
}, "key" | keyof import('react').InputHTMLAttributes<HTMLInputElement> | "asChild">, "type" | "value" | "onChange"> & {
|
|
35
35
|
value?: string;
|
|
36
36
|
onValueChange?: (search: string) => void;
|
|
37
37
|
} & import('react').RefAttributes<HTMLInputElement>, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -75,7 +75,7 @@ declare const CommandItem: import('react').ForwardRefExoticComponent<Omit<{
|
|
|
75
75
|
ref?: React.Ref<HTMLDivElement>;
|
|
76
76
|
} & {
|
|
77
77
|
asChild?: boolean;
|
|
78
|
-
}, "key" | keyof import('react').HTMLAttributes<HTMLDivElement> | "asChild">, "
|
|
78
|
+
}, "key" | keyof import('react').HTMLAttributes<HTMLDivElement> | "asChild">, "disabled" | "value" | "onSelect"> & {
|
|
79
79
|
disabled?: boolean;
|
|
80
80
|
onSelect?: (value: string) => void;
|
|
81
81
|
value?: string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
declare const countVariants: (props?: ({
|
|
3
|
+
variant?: "default" | "warning" | "critical" | null | undefined;
|
|
4
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
|
+
declare const Count: import('react').ForwardRefExoticComponent<Omit<import('react').ClassAttributes<HTMLOutputElement> & import('react').OutputHTMLAttributes<HTMLOutputElement> & VariantProps<(props?: ({
|
|
6
|
+
variant?: "default" | "warning" | "critical" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string>, "ref"> & import('react').RefAttributes<HTMLOutputElement>>;
|
|
8
|
+
export { Count, countVariants };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as o } from "react";
|
|
3
|
+
import { cva as i } from "class-variance-authority";
|
|
4
|
+
import { cn as u } from "../../../../lib/utils.js";
|
|
5
|
+
const c = i(
|
|
6
|
+
"flex min-h-9 min-w-9 flex-col items-center justify-center rounded-sm px-0.5 text-3xl font-medium leading-8 tracking-tightest",
|
|
7
|
+
{
|
|
8
|
+
variants: {
|
|
9
|
+
variant: {
|
|
10
|
+
default: "bg-neutral-background text-neutral-foreground-on-neutral",
|
|
11
|
+
warning: "bg-warning-background text-warning-foreground-on-warning",
|
|
12
|
+
critical: "bg-destructive-background text-destructive-foreground-on-critical"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
defaultVariants: {
|
|
16
|
+
variant: "default"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
), d = o(({ className: t, variant: r, ...n }, a) => /* @__PURE__ */ e(
|
|
20
|
+
"output",
|
|
21
|
+
{
|
|
22
|
+
ref: a,
|
|
23
|
+
"data-slot": "count",
|
|
24
|
+
className: u(c({ variant: r }), t),
|
|
25
|
+
...n
|
|
26
|
+
}
|
|
27
|
+
));
|
|
28
|
+
d.displayName = "Count";
|
|
29
|
+
export {
|
|
30
|
+
d as Count,
|
|
31
|
+
c as countVariants
|
|
32
|
+
};
|
|
@@ -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 };
|