@marigold/theme-docs 3.1.9 → 3.1.11
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/dist/index.d.mts +4 -2
- package/dist/index.d.mts.map +1 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +415 -518
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +399 -503
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -2
- package/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -1,550 +1,446 @@
|
|
|
1
|
+
import { cva } from "@marigold/system";
|
|
2
|
+
|
|
3
|
+
//#region rolldown:runtime
|
|
1
4
|
var __defProp = Object.defineProperty;
|
|
2
|
-
var __export = (
|
|
3
|
-
|
|
4
|
-
|
|
5
|
+
var __export = (all) => {
|
|
6
|
+
let target = {};
|
|
7
|
+
for (var name in all) __defProp(target, name, {
|
|
8
|
+
get: all[name],
|
|
9
|
+
enumerable: true
|
|
10
|
+
});
|
|
11
|
+
return target;
|
|
5
12
|
};
|
|
6
13
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
IconButton: () => IconButton,
|
|
19
|
-
Label: () => Label,
|
|
20
|
-
Link: () => Link,
|
|
21
|
-
List: () => List,
|
|
22
|
-
ListBox: () => ListBox,
|
|
23
|
-
Menu: () => Menu,
|
|
24
|
-
Modal: () => Modal,
|
|
25
|
-
Popover: () => Popover,
|
|
26
|
-
SectionMessage: () => SectionMessage,
|
|
27
|
-
Select: () => Select,
|
|
28
|
-
Table: () => Table,
|
|
29
|
-
Tabs: () => Tabs,
|
|
30
|
-
Text: () => Text,
|
|
31
|
-
Underlay: () => Underlay,
|
|
32
|
-
inputBackground: () => inputBackground,
|
|
33
|
-
inputBox: () => inputBox,
|
|
34
|
-
inputDisabled: () => inputDisabled,
|
|
35
|
-
inputError: () => inputError,
|
|
36
|
-
inputFocus: () => inputFocus,
|
|
37
|
-
inputHover: () => inputHover,
|
|
38
|
-
inputSpacing: () => inputSpacing,
|
|
39
|
-
xSpacing: () => xSpacing,
|
|
40
|
-
ySpacing: () => ySpacing
|
|
41
|
-
});
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/components/Button.styles.ts
|
|
16
|
+
const Button = cva("flex gap-2 rounded-xs px-3 py-2", { variants: {
|
|
17
|
+
variant: {
|
|
18
|
+
ghost: "text-secondary-700 hover:text-secondary-900 p-0",
|
|
19
|
+
sunken: "text-secondary-600 hover:bg-secondary-400/20 bg-secondary-400/10 h-8 justify-start rounded-lg",
|
|
20
|
+
inverted: "bg-secondary-100",
|
|
21
|
+
icon: "border-none translate-y-0.5 outline-none p-0"
|
|
22
|
+
},
|
|
23
|
+
size: { small: "px-3 py-1.5 text-sm" }
|
|
24
|
+
} });
|
|
42
25
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
["relative w-full overflow-hidden rounded-xl"],
|
|
66
|
-
{
|
|
67
|
-
variants: {
|
|
68
|
-
variant: {
|
|
69
|
-
default: "bg-bg-surface-raised p-6 shadow-xs border border-secondary-300",
|
|
70
|
-
hovering: "bg-bg-surface-raised p-6 shadow-xs transition-shadow hover:cursor-pointer hover:shadow-md border border-secondary-300",
|
|
71
|
-
content: "bg-bg-surface-raised my-6 shadow-xs border border-secondary-300",
|
|
72
|
-
outline: "bg-white/40 my-6 border border-secondary-200",
|
|
73
|
-
lowered: "bg-bg-surface-raised-lowered p-6",
|
|
74
|
-
image: ""
|
|
75
|
-
},
|
|
76
|
-
size: {
|
|
77
|
-
default: "",
|
|
78
|
-
full: "size-full"
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
defaultVariants: {
|
|
82
|
-
variant: "default",
|
|
83
|
-
size: "default"
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
);
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/components/Card.styles.ts
|
|
28
|
+
const Card = cva(["relative w-full overflow-hidden rounded-xl"], {
|
|
29
|
+
variants: {
|
|
30
|
+
variant: {
|
|
31
|
+
default: "bg-bg-surface-raised p-6 shadow-xs border border-secondary-300",
|
|
32
|
+
hovering: "bg-bg-surface-raised p-6 shadow-xs transition-shadow hover:cursor-pointer hover:shadow-md border border-secondary-300",
|
|
33
|
+
content: "bg-bg-surface-raised my-6 shadow-xs border border-secondary-300",
|
|
34
|
+
outline: "bg-white/40 my-6 border border-secondary-200",
|
|
35
|
+
lowered: "bg-bg-surface-raised-lowered p-6",
|
|
36
|
+
image: ""
|
|
37
|
+
},
|
|
38
|
+
size: {
|
|
39
|
+
default: "",
|
|
40
|
+
full: "size-full"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
defaultVariants: {
|
|
44
|
+
variant: "default",
|
|
45
|
+
size: "default"
|
|
46
|
+
}
|
|
47
|
+
});
|
|
87
48
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region src/components/CloseButton.styles.ts
|
|
51
|
+
const CloseButton = cva([
|
|
52
|
+
"flex items-center justify-center whitespace-nowrap",
|
|
53
|
+
"cursor-pointer",
|
|
54
|
+
"transition-[color,box-shadow]",
|
|
55
|
+
"mixin-ring-focus-visible",
|
|
56
|
+
"rounded",
|
|
57
|
+
"[&_svg]:size-4 [&_svg]:opacity-60 [&_svg]:transition-opacity hover:[&_svg]:opacity-100"
|
|
97
58
|
]);
|
|
98
59
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
defaultVariants: {
|
|
124
|
-
variant: "default"
|
|
125
|
-
}
|
|
126
|
-
}),
|
|
127
|
-
header: cva4(""),
|
|
128
|
-
title: cva4(""),
|
|
129
|
-
content: cva4(""),
|
|
130
|
-
actions: cva4("")
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region src/components/Dialog.styles.ts
|
|
62
|
+
const Dialog = {
|
|
63
|
+
closeButton: cva("absolute top-4 right-4 ml-4", { variants: { variant: { fullscreen: ["size-6", "right-4 top-4"] } } }),
|
|
64
|
+
container: cva("bg-bg-surface", {
|
|
65
|
+
variants: { variant: {
|
|
66
|
+
default: "relative rounded-lg shadow-lg",
|
|
67
|
+
codeblock: [
|
|
68
|
+
"static px-0 py-6",
|
|
69
|
+
"bg-code-900 max-h-[96vh] w-full overflow-y-auto rounded-lg shadow-lg",
|
|
70
|
+
"scrollbar-thin scrollbar-thumb-code-500 scrollbar-track-transparent scrollbar-thumb-rounded-full overflow-x-auto",
|
|
71
|
+
"*:max-h-none *:min-w-[75vw]"
|
|
72
|
+
],
|
|
73
|
+
fullscreen: "h-screen w-screen px-4 pb-8 pt-10",
|
|
74
|
+
zoom: "max-h-[96vh] overflow-y-auto"
|
|
75
|
+
} },
|
|
76
|
+
defaultVariants: { variant: "default" }
|
|
77
|
+
}),
|
|
78
|
+
header: cva(""),
|
|
79
|
+
title: cva(""),
|
|
80
|
+
content: cva(""),
|
|
81
|
+
actions: cva("")
|
|
131
82
|
};
|
|
132
83
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
"level-6": "mt-8 scroll-m-20 text-base font-semibold tracking-tight"
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
});
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region src/components/Headline.styles.ts
|
|
86
|
+
const Headline = cva("*:no-underline", { variants: { size: {
|
|
87
|
+
"level-1": "scroll-m-20 text-5xl font-extrabold tracking-tight lg:text-6xl",
|
|
88
|
+
"level-2": "scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight transition-colors first:mt-0",
|
|
89
|
+
"level-3": "scroll-m-20 text-2xl font-semibold tracking-tight",
|
|
90
|
+
"level-4": "scroll-m-20 text-xl font-semibold tracking-tight",
|
|
91
|
+
"level-5": "mt-8 scroll-m-20 text-lg font-semibold tracking-tight",
|
|
92
|
+
"level-6": "mt-8 scroll-m-20 text-base font-semibold tracking-tight"
|
|
93
|
+
} } });
|
|
147
94
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
variant: "default",
|
|
166
|
-
size: "default"
|
|
167
|
-
}
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region src/components/Field.styles.ts
|
|
97
|
+
const Field = cva("grid gap-y-0.5", {
|
|
98
|
+
variants: {
|
|
99
|
+
variant: {
|
|
100
|
+
default: "",
|
|
101
|
+
floating: ["grid-cols-[min-content_auto] grid-rows-[auto_auto]", "items-center"]
|
|
102
|
+
},
|
|
103
|
+
size: {
|
|
104
|
+
default: "gap-x-3",
|
|
105
|
+
small: "gap-x-2"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
defaultVariants: {
|
|
109
|
+
variant: "default",
|
|
110
|
+
size: "default"
|
|
111
|
+
}
|
|
168
112
|
});
|
|
169
113
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region src/components/HelpText.styles.ts
|
|
116
|
+
const HelpText = {
|
|
117
|
+
container: cva(),
|
|
118
|
+
icon: cva()
|
|
175
119
|
};
|
|
176
120
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
121
|
+
//#endregion
|
|
122
|
+
//#region src/components/IconButton.styles.ts
|
|
123
|
+
const IconButton = cva();
|
|
180
124
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
125
|
+
//#endregion
|
|
126
|
+
//#region src/components/Input.styles.ts
|
|
127
|
+
const inputBox = "border border-border rounded-xs text-text-primary";
|
|
128
|
+
const inputBackground = "bg-white";
|
|
129
|
+
const xSpacing = {
|
|
130
|
+
default: "px-3",
|
|
131
|
+
small: "px-2.5"
|
|
187
132
|
};
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
133
|
+
const ySpacing = {
|
|
134
|
+
default: "py-2",
|
|
135
|
+
small: "py-1.5"
|
|
191
136
|
};
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
137
|
+
const inputSpacing = {
|
|
138
|
+
default: `${xSpacing.default} ${ySpacing.default}`,
|
|
139
|
+
small: `${xSpacing.small} ${ySpacing.small}`
|
|
195
140
|
};
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
141
|
+
const inputFocus = "";
|
|
142
|
+
const inputDisabled = "disabled:cursor-not-allowed disabled:text-text-disabled disabled:bg-bg-disabled";
|
|
143
|
+
const inputError = "";
|
|
144
|
+
const inputHover = "";
|
|
200
145
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
]
|
|
236
|
-
}),
|
|
237
|
-
indicator: cva9()
|
|
146
|
+
//#endregion
|
|
147
|
+
//#region src/components/Label.styles.ts
|
|
148
|
+
const Label = {
|
|
149
|
+
container: cva("", {
|
|
150
|
+
variants: {
|
|
151
|
+
variant: {
|
|
152
|
+
default: "",
|
|
153
|
+
floating: [
|
|
154
|
+
"z-10 col-start-1 row-start-1",
|
|
155
|
+
"pointer-events-none",
|
|
156
|
+
"text-secondary-400 text-nowrap",
|
|
157
|
+
"after:content-[\":\"]"
|
|
158
|
+
]
|
|
159
|
+
},
|
|
160
|
+
size: {
|
|
161
|
+
default: "text-sm",
|
|
162
|
+
small: "text-xs"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
defaultVariants: {
|
|
166
|
+
variant: "default",
|
|
167
|
+
size: "default"
|
|
168
|
+
},
|
|
169
|
+
compoundVariants: [{
|
|
170
|
+
variant: "floating",
|
|
171
|
+
size: "default",
|
|
172
|
+
className: "pl-4"
|
|
173
|
+
}, {
|
|
174
|
+
variant: "floating",
|
|
175
|
+
size: "small",
|
|
176
|
+
className: "pl-3"
|
|
177
|
+
}]
|
|
178
|
+
}),
|
|
179
|
+
indicator: cva()
|
|
238
180
|
};
|
|
239
181
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
variant: "default",
|
|
270
|
-
size: "inline"
|
|
271
|
-
}
|
|
182
|
+
//#endregion
|
|
183
|
+
//#region src/components/Link.styles.ts
|
|
184
|
+
const Link = cva(["font-medium"], {
|
|
185
|
+
variants: {
|
|
186
|
+
variant: {
|
|
187
|
+
default: "underline underline-offset-4 transition-all hover:text-slate-700",
|
|
188
|
+
primary: "bg-text-primary text-white leading-none hover:bg-slate-700 transition-all",
|
|
189
|
+
secondary: "border-text-primary border-2 leading-none hover:bg-slate-100",
|
|
190
|
+
toc: ["text-secondary-500 hover:text-secondary-800 text-xs", "data-[active=true]:text-secondary-800 font-normal data-[active=true]:font-medium"],
|
|
191
|
+
cta: [
|
|
192
|
+
"h-component rounded-2xl bg-purple-700 px-5 py-1.5",
|
|
193
|
+
"text-sm font-semibold text-purple-100",
|
|
194
|
+
"transition-all hover:bg-purple-600"
|
|
195
|
+
],
|
|
196
|
+
ghost: "hover:underline underline-offset-4",
|
|
197
|
+
shiny: "border border-slate-200 bg-slate-100 hover:bg-slate-200 transition-all ease-in"
|
|
198
|
+
},
|
|
199
|
+
size: {
|
|
200
|
+
inline: "",
|
|
201
|
+
xsmall: "rounded-full text-xs py-1.5 px-4",
|
|
202
|
+
small: "px-3 py-1.5 text-sm rounded-xs",
|
|
203
|
+
regular: "px-3 py-2 rounded-xs",
|
|
204
|
+
large: "px-8 py-3.5 rounded-xs"
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
defaultVariants: {
|
|
208
|
+
variant: "default",
|
|
209
|
+
size: "inline"
|
|
210
|
+
}
|
|
272
211
|
});
|
|
273
212
|
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
213
|
+
//#endregion
|
|
214
|
+
//#region src/components/List.styles.ts
|
|
215
|
+
const List = {
|
|
216
|
+
ul: cva("list-inside list-none"),
|
|
217
|
+
ol: cva(""),
|
|
218
|
+
item: cva("list-none py-0.5")
|
|
280
219
|
};
|
|
281
220
|
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
}
|
|
306
|
-
},
|
|
307
|
-
defaultVariants: {
|
|
308
|
-
size: "small"
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
),
|
|
312
|
-
section: cva12(),
|
|
313
|
-
header: cva12()
|
|
221
|
+
//#endregion
|
|
222
|
+
//#region src/components/ListBox.styles.ts
|
|
223
|
+
const ListBox = {
|
|
224
|
+
container: cva(["bg-bg-surface-overlay border-border rounded-xs border drop-shadow-lg"]),
|
|
225
|
+
list: cva([
|
|
226
|
+
"outline-hidden",
|
|
227
|
+
"p-1",
|
|
228
|
+
"sm:max-h-[45vh] md:max-h-[75vh] lg:max-h-[75vh]"
|
|
229
|
+
]),
|
|
230
|
+
item: cva([
|
|
231
|
+
"text-text-primary",
|
|
232
|
+
"cursor-pointer rounded-xs outline-hidden",
|
|
233
|
+
"rac-hover:bg-bg-hover rac-focus:bg-bg-hover",
|
|
234
|
+
"aria-selected:bg-bg-hover"
|
|
235
|
+
], {
|
|
236
|
+
variants: { size: {
|
|
237
|
+
default: "p-2",
|
|
238
|
+
small: "px-2 py-1 text-sm"
|
|
239
|
+
} },
|
|
240
|
+
defaultVariants: { size: "small" }
|
|
241
|
+
}),
|
|
242
|
+
section: cva(),
|
|
243
|
+
header: cva()
|
|
314
244
|
};
|
|
315
245
|
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
],
|
|
324
|
-
{
|
|
325
|
-
variants: {
|
|
326
|
-
variant: {
|
|
327
|
-
command: "[&_[cmdk-list-sizer]]:divide-secondary-100 size-full p-0 sm:w-[500px] [&_[cmdk-input-wrapper]_svg]:size-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:py-2 [&_[cmdk-item]_svg]:size-5 [&_[cmdk-list-sizer]]:divide-y"
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
),
|
|
332
|
-
item: cva13("focus:bg-bg-hover cursor-pointer rounded-xs p-2 outline-hidden", {
|
|
333
|
-
variants: {
|
|
334
|
-
variant: {
|
|
335
|
-
command: ["aria-selected:bg-bg-hover px-4 py-1.5"]
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
}),
|
|
339
|
-
section: cva13("", {
|
|
340
|
-
variants: {
|
|
341
|
-
variant: {
|
|
342
|
-
command: "[&_[cmdk-group-heading]]:text-text-primary-muted [&_[cmdk-group-heading]]:p-4 [&_[cmdk-group-heading]]:py-2 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium"
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
}),
|
|
346
|
-
button: cva13(
|
|
347
|
-
"text-secondary-700 hover:bg-secondary-400/20 h-8 rounded-lg px-1"
|
|
348
|
-
)
|
|
246
|
+
//#endregion
|
|
247
|
+
//#region src/components/Menu.styles.ts
|
|
248
|
+
const Menu = {
|
|
249
|
+
container: cva(["border-border bg-bg-surface overflow-hidden rounded-md border px-1 py-1.5 text-sm shadow-md", "sm:max-h-[45vh] md:max-h-[75vh] lg:max-h-[75vh]"], { variants: { variant: { command: "[&_[cmdk-list-sizer]]:divide-secondary-100 size-full p-0 sm:w-[500px] [&_[cmdk-input-wrapper]_svg]:size-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:py-2 [&_[cmdk-item]_svg]:size-5 [&_[cmdk-list-sizer]]:divide-y" } } }),
|
|
250
|
+
item: cva("focus:bg-bg-hover cursor-pointer rounded-xs p-2 outline-hidden", { variants: { variant: { command: ["aria-selected:bg-bg-hover px-4 py-1.5"] } } }),
|
|
251
|
+
section: cva("", { variants: { variant: { command: "[&_[cmdk-group-heading]]:text-text-primary-muted [&_[cmdk-group-heading]]:p-4 [&_[cmdk-group-heading]]:py-2 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium" } } }),
|
|
252
|
+
button: cva("text-secondary-700 hover:bg-secondary-400/20 h-8 rounded-lg px-1")
|
|
349
253
|
};
|
|
350
254
|
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
255
|
+
//#endregion
|
|
256
|
+
//#region src/components/Modal.styles.ts
|
|
257
|
+
const Modal = cva();
|
|
354
258
|
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
info: "bg-bg-info text-text-info",
|
|
367
|
-
warning: "bg-bg-warning text-text-warning"
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
),
|
|
372
|
-
icon: cva15("size-6"),
|
|
373
|
-
title: cva15("mb-1 font-bold leading-none tracking-tight"),
|
|
374
|
-
content: cva15("text-sm [&_p]:leading-relaxed [&_code]:text-xs"),
|
|
375
|
-
close: cva15("h-5 w-5 text-center")
|
|
259
|
+
//#endregion
|
|
260
|
+
//#region src/components/SectionMessage.styles.ts
|
|
261
|
+
const SectionMessage = {
|
|
262
|
+
container: cva(["not-prose items-center rounded-lg p-4", "grid-cols-[min-content_auto] gap-1 [grid-template-areas:\"icon_title_title\"\"none_content_content\"]"], { variants: { variant: {
|
|
263
|
+
info: "bg-bg-info text-text-info",
|
|
264
|
+
warning: "bg-bg-warning text-text-warning"
|
|
265
|
+
} } }),
|
|
266
|
+
icon: cva("size-6"),
|
|
267
|
+
title: cva("mb-1 font-bold leading-none tracking-tight"),
|
|
268
|
+
content: cva("text-sm [&_p]:leading-relaxed [&_code]:text-xs"),
|
|
269
|
+
close: cva("h-5 w-5 text-center")
|
|
376
270
|
};
|
|
377
271
|
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
272
|
+
//#endregion
|
|
273
|
+
//#region src/components/Popover.styles.ts
|
|
274
|
+
const Popover = cva([
|
|
275
|
+
"animate-in",
|
|
276
|
+
"placement-t:-translate-y-1",
|
|
277
|
+
"placement-b:translate-y-1",
|
|
278
|
+
"placement-r:-translate-x-1",
|
|
279
|
+
"placement-l:translate-x-1"
|
|
386
280
|
]);
|
|
387
281
|
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
282
|
+
//#endregion
|
|
283
|
+
//#region src/components/Select.styles.ts
|
|
284
|
+
const Select = {
|
|
285
|
+
icon: cva("text-secondary-400", {
|
|
286
|
+
variants: {
|
|
287
|
+
variant: {
|
|
288
|
+
default: "",
|
|
289
|
+
floating: "justify-self-end"
|
|
290
|
+
},
|
|
291
|
+
size: {
|
|
292
|
+
default: "",
|
|
293
|
+
small: "size-3"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
defaultVariants: {
|
|
297
|
+
variant: "default",
|
|
298
|
+
size: "default"
|
|
299
|
+
}
|
|
300
|
+
}),
|
|
301
|
+
select: cva([
|
|
302
|
+
inputBox,
|
|
303
|
+
inputBackground,
|
|
304
|
+
inputDisabled,
|
|
305
|
+
"outline-hidden"
|
|
306
|
+
], {
|
|
307
|
+
variants: {
|
|
308
|
+
variant: {
|
|
309
|
+
default: "gap-2",
|
|
310
|
+
floating: [
|
|
311
|
+
"shadow-xs",
|
|
312
|
+
"col-span-full row-start-1 grid grid-cols-subgrid grid-rows-subgrid",
|
|
313
|
+
"*:row-star-1 *:col-start-2 *:text-left",
|
|
314
|
+
"gap-[inherit]"
|
|
315
|
+
]
|
|
316
|
+
},
|
|
317
|
+
size: {
|
|
318
|
+
default: [inputSpacing.default],
|
|
319
|
+
small: [inputSpacing.small, "text-xs"]
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
defaultVariants: {
|
|
323
|
+
variant: "default",
|
|
324
|
+
size: "default"
|
|
325
|
+
},
|
|
326
|
+
compoundVariants: [{
|
|
327
|
+
variant: "floating",
|
|
328
|
+
size: "default",
|
|
329
|
+
className: "px-4 py-1.5"
|
|
330
|
+
}, {
|
|
331
|
+
variant: "floating",
|
|
332
|
+
size: "small",
|
|
333
|
+
className: "px-3"
|
|
334
|
+
}]
|
|
335
|
+
})
|
|
442
336
|
};
|
|
443
337
|
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
tabsList: cva18("mb-4 border-b"),
|
|
456
|
-
tab: cva18([
|
|
457
|
-
"text-text-primary-muted aria-selected:text-text-primary px-2 py-1 text-sm font-medium",
|
|
458
|
-
"aria-selected:border-border-primary -m-px border-b-2 border-transparent",
|
|
459
|
-
"focus:outline-hidden focus-visible:outline"
|
|
460
|
-
])
|
|
338
|
+
//#endregion
|
|
339
|
+
//#region src/components/Tabs.styles.ts
|
|
340
|
+
const Tabs = {
|
|
341
|
+
container: cva("", { variants: { variant: { demo: "my-6" } } }),
|
|
342
|
+
tabpanel: cva(""),
|
|
343
|
+
tabsList: cva("mb-4 border-b"),
|
|
344
|
+
tab: cva([
|
|
345
|
+
"text-text-primary-muted aria-selected:text-text-primary px-2 py-1 text-sm font-medium",
|
|
346
|
+
"aria-selected:border-border-primary -m-px border-b-2 border-transparent",
|
|
347
|
+
"focus:outline-hidden focus-visible:outline"
|
|
348
|
+
])
|
|
461
349
|
};
|
|
462
350
|
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
body: cva19(),
|
|
474
|
-
row: cva19([], {
|
|
475
|
-
variants: {
|
|
476
|
-
variant: {
|
|
477
|
-
hover: "hover:bg-neutral-100/80 "
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
}),
|
|
481
|
-
cell: cva19(
|
|
482
|
-
["text-text-primary px-3 py-3.5 text-xs", "border-secondary-200 border-t"],
|
|
483
|
-
{
|
|
484
|
-
variants: {
|
|
485
|
-
variant: {
|
|
486
|
-
colorTable: "p-4 align-middle"
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
)
|
|
351
|
+
//#endregion
|
|
352
|
+
//#region src/components/Table.styles.ts
|
|
353
|
+
const Table = {
|
|
354
|
+
table: cva(["w-full overflow-hidden rounded-lg bg-white/40 text-sm", "border-secondary-200 border-separate border-spacing-0 border"]),
|
|
355
|
+
thead: cva(),
|
|
356
|
+
headerRow: cva(),
|
|
357
|
+
header: cva("px-3 pb-2 pt-3 text-start"),
|
|
358
|
+
body: cva(),
|
|
359
|
+
row: cva([], { variants: { variant: { hover: "hover:bg-neutral-100/80 " } } }),
|
|
360
|
+
cell: cva(["text-text-primary px-3 py-3.5 text-xs", "border-secondary-200 border-t"], { variants: { variant: { colorTable: "p-4 align-middle" } } })
|
|
491
361
|
};
|
|
492
362
|
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
363
|
+
//#endregion
|
|
364
|
+
//#region src/components/Text.styles.ts
|
|
365
|
+
const Text = cva("leading-7", { variants: { variant: {
|
|
366
|
+
lead: "text-muted-foreground text-xl",
|
|
367
|
+
large: "text-lg font-semibold",
|
|
368
|
+
small: "text-sm font-medium leading-none",
|
|
369
|
+
muted: "text-muted-foreground text-sm"
|
|
370
|
+
} } });
|
|
371
|
+
|
|
372
|
+
//#endregion
|
|
373
|
+
//#region src/components/Underlay.styles.ts
|
|
374
|
+
const Underlay = cva("bg-bg-underlay/50 backdrop-blur-xs");
|
|
505
375
|
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
376
|
+
//#endregion
|
|
377
|
+
//#region src/components/Badge.styles.ts
|
|
378
|
+
const Badge = cva("inline-flex items-center truncate rounded-[20px] px-2 py-0.5", {
|
|
379
|
+
variants: {
|
|
380
|
+
variant: {
|
|
381
|
+
dark: "bg-bg-inverted text-white",
|
|
382
|
+
warning: "bg-bg-warning"
|
|
383
|
+
},
|
|
384
|
+
size: { default: "text-xs" }
|
|
385
|
+
},
|
|
386
|
+
defaultVariants: {
|
|
387
|
+
variant: "dark",
|
|
388
|
+
size: "default"
|
|
389
|
+
}
|
|
390
|
+
});
|
|
511
391
|
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
var
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
)
|
|
392
|
+
//#endregion
|
|
393
|
+
//#region src/components/index.ts
|
|
394
|
+
var components_exports = /* @__PURE__ */ __export({
|
|
395
|
+
Badge: () => Badge,
|
|
396
|
+
Button: () => Button,
|
|
397
|
+
Card: () => Card,
|
|
398
|
+
CloseButton: () => CloseButton,
|
|
399
|
+
Dialog: () => Dialog,
|
|
400
|
+
Field: () => Field,
|
|
401
|
+
Headline: () => Headline,
|
|
402
|
+
HelpText: () => HelpText,
|
|
403
|
+
IconButton: () => IconButton,
|
|
404
|
+
Label: () => Label,
|
|
405
|
+
Link: () => Link,
|
|
406
|
+
List: () => List,
|
|
407
|
+
ListBox: () => ListBox,
|
|
408
|
+
Menu: () => Menu,
|
|
409
|
+
Modal: () => Modal,
|
|
410
|
+
Popover: () => Popover,
|
|
411
|
+
SectionMessage: () => SectionMessage,
|
|
412
|
+
Select: () => Select,
|
|
413
|
+
Table: () => Table,
|
|
414
|
+
Tabs: () => Tabs,
|
|
415
|
+
Text: () => Text,
|
|
416
|
+
Underlay: () => Underlay,
|
|
417
|
+
inputBackground: () => inputBackground,
|
|
418
|
+
inputBox: () => inputBox,
|
|
419
|
+
inputDisabled: () => inputDisabled,
|
|
420
|
+
inputError: () => inputError,
|
|
421
|
+
inputFocus: () => inputFocus,
|
|
422
|
+
inputHover: () => inputHover,
|
|
423
|
+
inputSpacing: () => inputSpacing,
|
|
424
|
+
xSpacing: () => xSpacing,
|
|
425
|
+
ySpacing: () => ySpacing
|
|
426
|
+
});
|
|
532
427
|
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
428
|
+
//#endregion
|
|
429
|
+
//#region src/root.ts
|
|
430
|
+
const root = cva("text-text-primary bg-bg-body");
|
|
536
431
|
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
432
|
+
//#endregion
|
|
433
|
+
//#region src/theme.ts
|
|
434
|
+
const theme = {
|
|
435
|
+
name: "docs",
|
|
436
|
+
root,
|
|
437
|
+
components: components_exports
|
|
542
438
|
};
|
|
543
439
|
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
};
|
|
440
|
+
//#endregion
|
|
441
|
+
//#region src/index.ts
|
|
442
|
+
var src_default = theme;
|
|
443
|
+
|
|
444
|
+
//#endregion
|
|
445
|
+
export { src_default as default, theme };
|
|
550
446
|
//# sourceMappingURL=index.mjs.map
|