1 | import type { RecipeDefinition, SlotRecipeDefinition, SystemRecipeFn, SystemSlotRecipeFn } from "../recipe.types"
|
2 | import type { ConditionalValue } from "../css.types"
|
3 |
|
4 | export interface BadgeVariant {
|
5 |
|
6 | variant?: "solid" | "subtle" | "outline" | "surface" | "plain"
|
7 |
|
8 | size?: "xs" | "sm" | "md" | "lg"
|
9 | }
|
10 |
|
11 | export type BadgeVariantProps = {
|
12 | [K in keyof BadgeVariant]?: ConditionalValue<BadgeVariant[K]> | undefined
|
13 | }
|
14 |
|
15 | export type BadgeVariantMap = {
|
16 | [K in keyof BadgeVariant]: Array<BadgeVariant[K]>
|
17 | }
|
18 |
|
19 | export interface ButtonVariant {
|
20 |
|
21 | size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl"
|
22 |
|
23 | variant?: "solid" | "subtle" | "surface" | "outline" | "ghost" | "plain"
|
24 | }
|
25 |
|
26 | export type ButtonVariantProps = {
|
27 | [K in keyof ButtonVariant]?: ConditionalValue<ButtonVariant[K]> | undefined
|
28 | }
|
29 |
|
30 | export type ButtonVariantMap = {
|
31 | [K in keyof ButtonVariant]: Array<ButtonVariant[K]>
|
32 | }
|
33 |
|
34 | export interface CodeVariant {
|
35 |
|
36 | variant?: "solid" | "subtle" | "outline" | "surface" | "plain"
|
37 |
|
38 | size?: "xs" | "sm" | "md" | "lg"
|
39 | }
|
40 |
|
41 | export type CodeVariantProps = {
|
42 | [K in keyof CodeVariant]?: ConditionalValue<CodeVariant[K]> | undefined
|
43 | }
|
44 |
|
45 | export type CodeVariantMap = {
|
46 | [K in keyof CodeVariant]: Array<CodeVariant[K]>
|
47 | }
|
48 |
|
49 | export interface ContainerVariant {
|
50 | centerContent?: boolean
|
51 | fluid?: boolean
|
52 | }
|
53 |
|
54 | export type ContainerVariantProps = {
|
55 | [K in keyof ContainerVariant]?: ConditionalValue<ContainerVariant[K]> | undefined
|
56 | }
|
57 |
|
58 | export type ContainerVariantMap = {
|
59 | [K in keyof ContainerVariant]: Array<ContainerVariant[K]>
|
60 | }
|
61 |
|
62 | export interface HeadingVariant {
|
63 |
|
64 | size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl"
|
65 | }
|
66 |
|
67 | export type HeadingVariantProps = {
|
68 | [K in keyof HeadingVariant]?: ConditionalValue<HeadingVariant[K]> | undefined
|
69 | }
|
70 |
|
71 | export type HeadingVariantMap = {
|
72 | [K in keyof HeadingVariant]: Array<HeadingVariant[K]>
|
73 | }
|
74 |
|
75 | export interface InputVariant {
|
76 |
|
77 | size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl"
|
78 |
|
79 | variant?: "outline" | "subtle" | "flushed"
|
80 | }
|
81 |
|
82 | export type InputVariantProps = {
|
83 | [K in keyof InputVariant]?: ConditionalValue<InputVariant[K]> | undefined
|
84 | }
|
85 |
|
86 | export type InputVariantMap = {
|
87 | [K in keyof InputVariant]: Array<InputVariant[K]>
|
88 | }
|
89 |
|
90 | export interface InputAddonVariant {
|
91 |
|
92 | size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl"
|
93 |
|
94 | variant?: "outline" | "subtle" | "flushed"
|
95 | }
|
96 |
|
97 | export type InputAddonVariantProps = {
|
98 | [K in keyof InputAddonVariant]?: ConditionalValue<InputAddonVariant[K]> | undefined
|
99 | }
|
100 |
|
101 | export type InputAddonVariantMap = {
|
102 | [K in keyof InputAddonVariant]: Array<InputAddonVariant[K]>
|
103 | }
|
104 |
|
105 | export interface KbdVariant {
|
106 |
|
107 | variant?: "raised" | "outline" | "subtle" | "plain"
|
108 |
|
109 | size?: "sm" | "md" | "lg"
|
110 | }
|
111 |
|
112 | export type KbdVariantProps = {
|
113 | [K in keyof KbdVariant]?: ConditionalValue<KbdVariant[K]> | undefined
|
114 | }
|
115 |
|
116 | export type KbdVariantMap = {
|
117 | [K in keyof KbdVariant]: Array<KbdVariant[K]>
|
118 | }
|
119 |
|
120 | export interface LinkVariant {
|
121 |
|
122 | variant?: "underline" | "plain"
|
123 | }
|
124 |
|
125 | export type LinkVariantProps = {
|
126 | [K in keyof LinkVariant]?: ConditionalValue<LinkVariant[K]> | undefined
|
127 | }
|
128 |
|
129 | export type LinkVariantMap = {
|
130 | [K in keyof LinkVariant]: Array<LinkVariant[K]>
|
131 | }
|
132 |
|
133 | export interface MarkVariant {
|
134 | variant?: "subtle" | "solid" | "text" | "plain"
|
135 | }
|
136 |
|
137 | export type MarkVariantProps = {
|
138 | [K in keyof MarkVariant]?: ConditionalValue<MarkVariant[K]> | undefined
|
139 | }
|
140 |
|
141 | export type MarkVariantMap = {
|
142 | [K in keyof MarkVariant]: Array<MarkVariant[K]>
|
143 | }
|
144 |
|
145 | export interface SeparatorVariant {
|
146 |
|
147 | variant?: "solid" | "dashed" | "dotted"
|
148 |
|
149 | orientation?: "vertical" | "horizontal"
|
150 |
|
151 | size?: "xs" | "sm" | "md" | "lg"
|
152 | }
|
153 |
|
154 | export type SeparatorVariantProps = {
|
155 | [K in keyof SeparatorVariant]?: ConditionalValue<SeparatorVariant[K]> | undefined
|
156 | }
|
157 |
|
158 | export type SeparatorVariantMap = {
|
159 | [K in keyof SeparatorVariant]: Array<SeparatorVariant[K]>
|
160 | }
|
161 |
|
162 | export interface SkeletonVariant {
|
163 |
|
164 | loading?: boolean
|
165 |
|
166 | variant?: "pulse" | "shine" | "none"
|
167 | }
|
168 |
|
169 | export type SkeletonVariantProps = {
|
170 | [K in keyof SkeletonVariant]?: ConditionalValue<SkeletonVariant[K]> | undefined
|
171 | }
|
172 |
|
173 | export type SkeletonVariantMap = {
|
174 | [K in keyof SkeletonVariant]: Array<SkeletonVariant[K]>
|
175 | }
|
176 |
|
177 | export interface SkipNavLinkVariant {}
|
178 |
|
179 | export type SkipNavLinkVariantProps = {
|
180 | [K in keyof SkipNavLinkVariant]?: ConditionalValue<SkipNavLinkVariant[K]> | undefined
|
181 | }
|
182 |
|
183 | export type SkipNavLinkVariantMap = {
|
184 | [K in keyof SkipNavLinkVariant]: Array<SkipNavLinkVariant[K]>
|
185 | }
|
186 |
|
187 | export interface SpinnerVariant {
|
188 |
|
189 | size?: "inherit" | "xs" | "sm" | "md" | "lg" | "xl"
|
190 | }
|
191 |
|
192 | export type SpinnerVariantProps = {
|
193 | [K in keyof SpinnerVariant]?: ConditionalValue<SpinnerVariant[K]> | undefined
|
194 | }
|
195 |
|
196 | export type SpinnerVariantMap = {
|
197 | [K in keyof SpinnerVariant]: Array<SpinnerVariant[K]>
|
198 | }
|
199 |
|
200 | export interface TextareaVariant {
|
201 |
|
202 | size?: "xs" | "sm" | "md" | "lg" | "xl"
|
203 |
|
204 | variant?: "outline" | "subtle" | "flushed"
|
205 | }
|
206 |
|
207 | export type TextareaVariantProps = {
|
208 | [K in keyof TextareaVariant]?: ConditionalValue<TextareaVariant[K]> | undefined
|
209 | }
|
210 |
|
211 | export type TextareaVariantMap = {
|
212 | [K in keyof TextareaVariant]: Array<TextareaVariant[K]>
|
213 | }
|
214 |
|
215 | export interface IconVariant {
|
216 |
|
217 | size?: "inherit" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl"
|
218 | }
|
219 |
|
220 | export type IconVariantProps = {
|
221 | [K in keyof IconVariant]?: ConditionalValue<IconVariant[K]> | undefined
|
222 | }
|
223 |
|
224 | export type IconVariantMap = {
|
225 | [K in keyof IconVariant]: Array<IconVariant[K]>
|
226 | }
|
227 |
|
228 | export interface CheckmarkVariant {
|
229 |
|
230 | size?: "xs" | "sm" | "md" | "lg"
|
231 |
|
232 | variant?: "solid" | "outline" | "subtle" | "plain" | "inverted"
|
233 | }
|
234 |
|
235 | export type CheckmarkVariantProps = {
|
236 | [K in keyof CheckmarkVariant]?: ConditionalValue<CheckmarkVariant[K]> | undefined
|
237 | }
|
238 |
|
239 | export type CheckmarkVariantMap = {
|
240 | [K in keyof CheckmarkVariant]: Array<CheckmarkVariant[K]>
|
241 | }
|
242 |
|
243 | export interface RadiomarkVariant {
|
244 |
|
245 | variant?: "solid" | "subtle" | "outline" | "inverted"
|
246 |
|
247 | size?: "xs" | "sm" | "md" | "lg"
|
248 | }
|
249 |
|
250 | export type RadiomarkVariantProps = {
|
251 | [K in keyof RadiomarkVariant]?: ConditionalValue<RadiomarkVariant[K]> | undefined
|
252 | }
|
253 |
|
254 | export type RadiomarkVariantMap = {
|
255 | [K in keyof RadiomarkVariant]: Array<RadiomarkVariant[K]>
|
256 | }
|
257 |
|
258 | export interface ColorSwatchVariant {
|
259 |
|
260 | size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "inherit" | "full"
|
261 |
|
262 | shape?: "square" | "circle" | "rounded"
|
263 | }
|
264 |
|
265 | export type ColorSwatchVariantProps = {
|
266 | [K in keyof ColorSwatchVariant]?: ConditionalValue<ColorSwatchVariant[K]> | undefined
|
267 | }
|
268 |
|
269 | export type ColorSwatchVariantMap = {
|
270 | [K in keyof ColorSwatchVariant]: Array<ColorSwatchVariant[K]>
|
271 | }
|
272 |
|
273 | export interface ConfigRecipes {
|
274 | badge: SystemRecipeFn<BadgeVariantProps, BadgeVariantMap>
|
275 | button: SystemRecipeFn<ButtonVariantProps, ButtonVariantMap>
|
276 | code: SystemRecipeFn<CodeVariantProps, CodeVariantMap>
|
277 | container: SystemRecipeFn<ContainerVariantProps, ContainerVariantMap>
|
278 | heading: SystemRecipeFn<HeadingVariantProps, HeadingVariantMap>
|
279 | input: SystemRecipeFn<InputVariantProps, InputVariantMap>
|
280 | inputAddon: SystemRecipeFn<InputAddonVariantProps, InputAddonVariantMap>
|
281 | kbd: SystemRecipeFn<KbdVariantProps, KbdVariantMap>
|
282 | link: SystemRecipeFn<LinkVariantProps, LinkVariantMap>
|
283 | mark: SystemRecipeFn<MarkVariantProps, MarkVariantMap>
|
284 | separator: SystemRecipeFn<SeparatorVariantProps, SeparatorVariantMap>
|
285 | skeleton: SystemRecipeFn<SkeletonVariantProps, SkeletonVariantMap>
|
286 | skipNavLink: SystemRecipeFn<SkipNavLinkVariantProps, SkipNavLinkVariantMap>
|
287 | spinner: SystemRecipeFn<SpinnerVariantProps, SpinnerVariantMap>
|
288 | textarea: SystemRecipeFn<TextareaVariantProps, TextareaVariantMap>
|
289 | icon: SystemRecipeFn<IconVariantProps, IconVariantMap>
|
290 | checkmark: SystemRecipeFn<CheckmarkVariantProps, CheckmarkVariantMap>
|
291 | radiomark: SystemRecipeFn<RadiomarkVariantProps, RadiomarkVariantMap>
|
292 | colorSwatch: SystemRecipeFn<ColorSwatchVariantProps, ColorSwatchVariantMap>
|
293 | }
|
294 |
|
295 |
|
296 |
|
297 | export type AccordionSlot = "root" | "item" | "itemTrigger" | "itemContent" | "itemIndicator" | "itemBody"
|
298 |
|
299 | export interface AccordionVariant {
|
300 |
|
301 | variant?: "outline" | "subtle" | "enclosed" | "plain"
|
302 |
|
303 | size?: "sm" | "md" | "lg"
|
304 | }
|
305 |
|
306 | export type AccordionVariantProps = {
|
307 | [K in keyof AccordionVariant]?: ConditionalValue<AccordionVariant[K]> | undefined
|
308 | }
|
309 |
|
310 | export type AccordionVariantMap = {
|
311 | [K in keyof AccordionVariant]: Array<AccordionVariant[K]>
|
312 | }
|
313 |
|
314 |
|
315 |
|
316 | export type ActionBarSlot = "positioner" | "content" | "separator" | "selectionTrigger" | "closeTrigger"
|
317 |
|
318 | export interface ActionBarVariant {}
|
319 |
|
320 | export type ActionBarVariantProps = {
|
321 | [K in keyof ActionBarVariant]?: ConditionalValue<ActionBarVariant[K]> | undefined
|
322 | }
|
323 |
|
324 | export type ActionBarVariantMap = {
|
325 | [K in keyof ActionBarVariant]: Array<ActionBarVariant[K]>
|
326 | }
|
327 |
|
328 |
|
329 |
|
330 | export type AlertSlot = "title" | "description" | "root" | "indicator" | "content"
|
331 |
|
332 | export interface AlertVariant {
|
333 |
|
334 | status?: "info" | "warning" | "success" | "error" | "neutral"
|
335 | inline?: boolean
|
336 |
|
337 | variant?: "subtle" | "surface" | "outline" | "solid"
|
338 |
|
339 | size?: "sm" | "md" | "lg"
|
340 | }
|
341 |
|
342 | export type AlertVariantProps = {
|
343 | [K in keyof AlertVariant]?: ConditionalValue<AlertVariant[K]> | undefined
|
344 | }
|
345 |
|
346 | export type AlertVariantMap = {
|
347 | [K in keyof AlertVariant]: Array<AlertVariant[K]>
|
348 | }
|
349 |
|
350 |
|
351 |
|
352 | export type AvatarSlot = "root" | "image" | "fallback"
|
353 |
|
354 | export interface AvatarVariant {
|
355 |
|
356 | size?: "full" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl"
|
357 |
|
358 | variant?: "solid" | "subtle" | "outline"
|
359 |
|
360 | shape?: "square" | "rounded" | "full"
|
361 | borderless?: boolean
|
362 | }
|
363 |
|
364 | export type AvatarVariantProps = {
|
365 | [K in keyof AvatarVariant]?: ConditionalValue<AvatarVariant[K]> | undefined
|
366 | }
|
367 |
|
368 | export type AvatarVariantMap = {
|
369 | [K in keyof AvatarVariant]: Array<AvatarVariant[K]>
|
370 | }
|
371 |
|
372 |
|
373 |
|
374 | export type BlockquoteSlot = "root" | "icon" | "content" | "caption"
|
375 |
|
376 | export interface BlockquoteVariant {
|
377 |
|
378 | justify?: "start" | "center" | "end"
|
379 |
|
380 | variant?: "subtle" | "solid" | "plain"
|
381 | }
|
382 |
|
383 | export type BlockquoteVariantProps = {
|
384 | [K in keyof BlockquoteVariant]?: ConditionalValue<BlockquoteVariant[K]> | undefined
|
385 | }
|
386 |
|
387 | export type BlockquoteVariantMap = {
|
388 | [K in keyof BlockquoteVariant]: Array<BlockquoteVariant[K]>
|
389 | }
|
390 |
|
391 |
|
392 |
|
393 | export type BreadcrumbSlot = "link" | "currentLink" | "item" | "list" | "root" | "ellipsis" | "separator"
|
394 |
|
395 | export interface BreadcrumbVariant {
|
396 |
|
397 | variant?: "underline" | "plain"
|
398 |
|
399 | size?: "sm" | "md" | "lg"
|
400 | }
|
401 |
|
402 | export type BreadcrumbVariantProps = {
|
403 | [K in keyof BreadcrumbVariant]?: ConditionalValue<BreadcrumbVariant[K]> | undefined
|
404 | }
|
405 |
|
406 | export type BreadcrumbVariantMap = {
|
407 | [K in keyof BreadcrumbVariant]: Array<BreadcrumbVariant[K]>
|
408 | }
|
409 |
|
410 |
|
411 |
|
412 | export type CardSlot = "root" | "header" | "body" | "footer" | "title" | "description"
|
413 |
|
414 | export interface CardVariant {
|
415 |
|
416 | size?: "sm" | "md" | "lg"
|
417 |
|
418 | variant?: "elevated" | "outline" | "subtle"
|
419 | }
|
420 |
|
421 | export type CardVariantProps = {
|
422 | [K in keyof CardVariant]?: ConditionalValue<CardVariant[K]> | undefined
|
423 | }
|
424 |
|
425 | export type CardVariantMap = {
|
426 | [K in keyof CardVariant]: Array<CardVariant[K]>
|
427 | }
|
428 |
|
429 |
|
430 |
|
431 | export type CheckboxSlot = "root" | "label" | "control" | "indicator" | "group"
|
432 |
|
433 | export interface CheckboxVariant {
|
434 |
|
435 | size?: "xs" | "sm" | "md" | "lg"
|
436 |
|
437 | variant?: "outline" | "solid" | "subtle"
|
438 | }
|
439 |
|
440 | export type CheckboxVariantProps = {
|
441 | [K in keyof CheckboxVariant]?: ConditionalValue<CheckboxVariant[K]> | undefined
|
442 | }
|
443 |
|
444 | export type CheckboxVariantMap = {
|
445 | [K in keyof CheckboxVariant]: Array<CheckboxVariant[K]>
|
446 | }
|
447 |
|
448 |
|
449 |
|
450 | export type CheckboxCardSlot = "root" | "control" | "label" | "description" | "addon" | "indicator" | "content"
|
451 |
|
452 | export interface CheckboxCardVariant {
|
453 |
|
454 | size?: "sm" | "md" | "lg"
|
455 |
|
456 | variant?: "surface" | "subtle" | "outline" | "solid"
|
457 | justify?: "start" | "end" | "center"
|
458 |
|
459 | align?: "start" | "end" | "center"
|
460 |
|
461 | orientation?: "vertical" | "horizontal"
|
462 | }
|
463 |
|
464 | export type CheckboxCardVariantProps = {
|
465 | [K in keyof CheckboxCardVariant]?: ConditionalValue<CheckboxCardVariant[K]> | undefined
|
466 | }
|
467 |
|
468 | export type CheckboxCardVariantMap = {
|
469 | [K in keyof CheckboxCardVariant]: Array<CheckboxCardVariant[K]>
|
470 | }
|
471 |
|
472 |
|
473 |
|
474 | export type CollapsibleSlot = "root" | "trigger" | "content"
|
475 |
|
476 | export interface CollapsibleVariant {}
|
477 |
|
478 | export type CollapsibleVariantProps = {
|
479 | [K in keyof CollapsibleVariant]?: ConditionalValue<CollapsibleVariant[K]> | undefined
|
480 | }
|
481 |
|
482 | export type CollapsibleVariantMap = {
|
483 | [K in keyof CollapsibleVariant]: Array<CollapsibleVariant[K]>
|
484 | }
|
485 |
|
486 |
|
487 |
|
488 | export type DataListSlot = "root" | "item" | "itemLabel" | "itemValue"
|
489 |
|
490 | export interface DataListVariant {
|
491 |
|
492 | orientation?: "horizontal" | "vertical"
|
493 |
|
494 | size?: "sm" | "md" | "lg"
|
495 |
|
496 | variant?: "subtle" | "bold"
|
497 | }
|
498 |
|
499 | export type DataListVariantProps = {
|
500 | [K in keyof DataListVariant]?: ConditionalValue<DataListVariant[K]> | undefined
|
501 | }
|
502 |
|
503 | export type DataListVariantMap = {
|
504 | [K in keyof DataListVariant]: Array<DataListVariant[K]>
|
505 | }
|
506 |
|
507 |
|
508 |
|
509 | export type DialogSlot =
|
510 | | "trigger"
|
511 | | "backdrop"
|
512 | | "positioner"
|
513 | | "content"
|
514 | | "title"
|
515 | | "description"
|
516 | | "closeTrigger"
|
517 | | "header"
|
518 | | "body"
|
519 | | "footer"
|
520 | | "backdrop"
|
521 |
|
522 | export interface DialogVariant {
|
523 |
|
524 | placement?: "center" | "top" | "bottom"
|
525 |
|
526 | scrollBehavior?: "inside" | "outside"
|
527 |
|
528 | size?: "xs" | "sm" | "md" | "lg" | "xl" | "cover" | "full"
|
529 |
|
530 | motionPreset?: "scale" | "slide-in-bottom" | "slide-in-top" | "slide-in-left" | "slide-in-right" | "none"
|
531 | }
|
532 |
|
533 | export type DialogVariantProps = {
|
534 | [K in keyof DialogVariant]?: ConditionalValue<DialogVariant[K]> | undefined
|
535 | }
|
536 |
|
537 | export type DialogVariantMap = {
|
538 | [K in keyof DialogVariant]: Array<DialogVariant[K]>
|
539 | }
|
540 |
|
541 |
|
542 |
|
543 | export type DrawerSlot =
|
544 | | "trigger"
|
545 | | "backdrop"
|
546 | | "positioner"
|
547 | | "content"
|
548 | | "title"
|
549 | | "description"
|
550 | | "closeTrigger"
|
551 | | "header"
|
552 | | "body"
|
553 | | "footer"
|
554 | | "backdrop"
|
555 |
|
556 | export interface DrawerVariant {
|
557 |
|
558 | size?: "xs" | "sm" | "md" | "lg" | "xl" | "full"
|
559 |
|
560 | placement?: "start" | "end" | "top" | "bottom"
|
561 | contained?: boolean
|
562 | }
|
563 |
|
564 | export type DrawerVariantProps = {
|
565 | [K in keyof DrawerVariant]?: ConditionalValue<DrawerVariant[K]> | undefined
|
566 | }
|
567 |
|
568 | export type DrawerVariantMap = {
|
569 | [K in keyof DrawerVariant]: Array<DrawerVariant[K]>
|
570 | }
|
571 |
|
572 |
|
573 |
|
574 | export type EditableSlot = "root" | "area" | "label" | "preview" | "input" | "editTrigger" | "submitTrigger" | "cancelTrigger" | "control" | "textarea"
|
575 |
|
576 | export interface EditableVariant {
|
577 |
|
578 | size?: "sm" | "md" | "lg"
|
579 | }
|
580 |
|
581 | export type EditableVariantProps = {
|
582 | [K in keyof EditableVariant]?: ConditionalValue<EditableVariant[K]> | undefined
|
583 | }
|
584 |
|
585 | export type EditableVariantMap = {
|
586 | [K in keyof EditableVariant]: Array<EditableVariant[K]>
|
587 | }
|
588 |
|
589 |
|
590 |
|
591 | export type EmptyStateSlot = "root" | "content" | "indicator" | "title" | "description"
|
592 |
|
593 | export interface EmptyStateVariant {
|
594 |
|
595 | size?: "sm" | "md" | "lg"
|
596 | }
|
597 |
|
598 | export type EmptyStateVariantProps = {
|
599 | [K in keyof EmptyStateVariant]?: ConditionalValue<EmptyStateVariant[K]> | undefined
|
600 | }
|
601 |
|
602 | export type EmptyStateVariantMap = {
|
603 | [K in keyof EmptyStateVariant]: Array<EmptyStateVariant[K]>
|
604 | }
|
605 |
|
606 |
|
607 |
|
608 | export type FieldSlot = "root" | "errorText" | "helperText" | "input" | "label" | "select" | "textarea" | "requiredIndicator" | "requiredIndicator"
|
609 |
|
610 | export interface FieldVariant {
|
611 |
|
612 | orientation?: "vertical" | "horizontal"
|
613 | }
|
614 |
|
615 | export type FieldVariantProps = {
|
616 | [K in keyof FieldVariant]?: ConditionalValue<FieldVariant[K]> | undefined
|
617 | }
|
618 |
|
619 | export type FieldVariantMap = {
|
620 | [K in keyof FieldVariant]: Array<FieldVariant[K]>
|
621 | }
|
622 |
|
623 |
|
624 |
|
625 | export type FieldsetSlot = "root" | "errorText" | "helperText" | "legend" | "content"
|
626 |
|
627 | export interface FieldsetVariant {
|
628 |
|
629 | size?: "sm" | "md" | "lg"
|
630 | }
|
631 |
|
632 | export type FieldsetVariantProps = {
|
633 | [K in keyof FieldsetVariant]?: ConditionalValue<FieldsetVariant[K]> | undefined
|
634 | }
|
635 |
|
636 | export type FieldsetVariantMap = {
|
637 | [K in keyof FieldsetVariant]: Array<FieldsetVariant[K]>
|
638 | }
|
639 |
|
640 |
|
641 |
|
642 | export type FileUploadSlot =
|
643 | | "root"
|
644 | | "dropzone"
|
645 | | "item"
|
646 | | "itemDeleteTrigger"
|
647 | | "itemGroup"
|
648 | | "itemName"
|
649 | | "itemPreview"
|
650 | | "itemPreviewImage"
|
651 | | "itemSizeText"
|
652 | | "label"
|
653 | | "trigger"
|
654 | | "clearTrigger"
|
655 | | "itemContent"
|
656 | | "dropzoneContent"
|
657 |
|
658 | export interface FileUploadVariant {}
|
659 |
|
660 | export type FileUploadVariantProps = {
|
661 | [K in keyof FileUploadVariant]?: ConditionalValue<FileUploadVariant[K]> | undefined
|
662 | }
|
663 |
|
664 | export type FileUploadVariantMap = {
|
665 | [K in keyof FileUploadVariant]: Array<FileUploadVariant[K]>
|
666 | }
|
667 |
|
668 |
|
669 |
|
670 | export type HoverCardSlot = "arrow" | "arrowTip" | "trigger" | "positioner" | "content"
|
671 |
|
672 | export interface HoverCardVariant {
|
673 |
|
674 | size?: "xs" | "sm" | "md" | "lg"
|
675 | }
|
676 |
|
677 | export type HoverCardVariantProps = {
|
678 | [K in keyof HoverCardVariant]?: ConditionalValue<HoverCardVariant[K]> | undefined
|
679 | }
|
680 |
|
681 | export type HoverCardVariantMap = {
|
682 | [K in keyof HoverCardVariant]: Array<HoverCardVariant[K]>
|
683 | }
|
684 |
|
685 |
|
686 |
|
687 | export type ListSlot = "root" | "item" | "indicator"
|
688 |
|
689 | export interface ListVariant {
|
690 |
|
691 | variant?: "marker" | "plain"
|
692 | align?: "center" | "start" | "end"
|
693 | }
|
694 |
|
695 | export type ListVariantProps = {
|
696 | [K in keyof ListVariant]?: ConditionalValue<ListVariant[K]> | undefined
|
697 | }
|
698 |
|
699 | export type ListVariantMap = {
|
700 | [K in keyof ListVariant]: Array<ListVariant[K]>
|
701 | }
|
702 |
|
703 |
|
704 |
|
705 | export type MenuSlot =
|
706 | | "arrow"
|
707 | | "arrowTip"
|
708 | | "content"
|
709 | | "contextTrigger"
|
710 | | "indicator"
|
711 | | "item"
|
712 | | "itemGroup"
|
713 | | "itemGroupLabel"
|
714 | | "itemIndicator"
|
715 | | "itemText"
|
716 | | "positioner"
|
717 | | "separator"
|
718 | | "trigger"
|
719 | | "triggerItem"
|
720 | | "itemCommand"
|
721 |
|
722 | export interface MenuVariant {
|
723 |
|
724 | variant?: "subtle" | "solid"
|
725 |
|
726 | size?: "sm" | "md"
|
727 | }
|
728 |
|
729 | export type MenuVariantProps = {
|
730 | [K in keyof MenuVariant]?: ConditionalValue<MenuVariant[K]> | undefined
|
731 | }
|
732 |
|
733 | export type MenuVariantMap = {
|
734 | [K in keyof MenuVariant]: Array<MenuVariant[K]>
|
735 | }
|
736 |
|
737 |
|
738 |
|
739 | export type NativeSelectSlot = "root" | "field" | "indicator"
|
740 |
|
741 | export interface NativeSelectVariant {
|
742 |
|
743 | variant?: "outline" | "subtle" | "plain"
|
744 |
|
745 | size?: "xs" | "sm" | "md" | "lg" | "xl"
|
746 | }
|
747 |
|
748 | export type NativeSelectVariantProps = {
|
749 | [K in keyof NativeSelectVariant]?: ConditionalValue<NativeSelectVariant[K]> | undefined
|
750 | }
|
751 |
|
752 | export type NativeSelectVariantMap = {
|
753 | [K in keyof NativeSelectVariant]: Array<NativeSelectVariant[K]>
|
754 | }
|
755 |
|
756 |
|
757 |
|
758 | export type NumberInputSlot = "root" | "label" | "input" | "control" | "valueText" | "incrementTrigger" | "decrementTrigger" | "scrubber"
|
759 |
|
760 | export interface NumberInputVariant {
|
761 |
|
762 | size?: "xs" | "sm" | "md" | "lg"
|
763 |
|
764 | variant?: "outline" | "subtle" | "flushed"
|
765 | }
|
766 |
|
767 | export type NumberInputVariantProps = {
|
768 | [K in keyof NumberInputVariant]?: ConditionalValue<NumberInputVariant[K]> | undefined
|
769 | }
|
770 |
|
771 | export type NumberInputVariantMap = {
|
772 | [K in keyof NumberInputVariant]: Array<NumberInputVariant[K]>
|
773 | }
|
774 |
|
775 |
|
776 |
|
777 | export type PinInputSlot = "root" | "label" | "input" | "control"
|
778 |
|
779 | export interface PinInputVariant {
|
780 |
|
781 | size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl"
|
782 |
|
783 | variant?: "outline" | "subtle" | "flushed"
|
784 | }
|
785 |
|
786 | export type PinInputVariantProps = {
|
787 | [K in keyof PinInputVariant]?: ConditionalValue<PinInputVariant[K]> | undefined
|
788 | }
|
789 |
|
790 | export type PinInputVariantMap = {
|
791 | [K in keyof PinInputVariant]: Array<PinInputVariant[K]>
|
792 | }
|
793 |
|
794 |
|
795 |
|
796 | export type PopoverSlot =
|
797 | | "arrow"
|
798 | | "arrowTip"
|
799 | | "anchor"
|
800 | | "trigger"
|
801 | | "indicator"
|
802 | | "positioner"
|
803 | | "content"
|
804 | | "title"
|
805 | | "description"
|
806 | | "closeTrigger"
|
807 | | "header"
|
808 | | "body"
|
809 | | "footer"
|
810 |
|
811 | export interface PopoverVariant {
|
812 |
|
813 | size?: "xs" | "sm" | "md" | "lg"
|
814 | }
|
815 |
|
816 | export type PopoverVariantProps = {
|
817 | [K in keyof PopoverVariant]?: ConditionalValue<PopoverVariant[K]> | undefined
|
818 | }
|
819 |
|
820 | export type PopoverVariantMap = {
|
821 | [K in keyof PopoverVariant]: Array<PopoverVariant[K]>
|
822 | }
|
823 |
|
824 |
|
825 |
|
826 | export type ProgressSlot = "root" | "label" | "track" | "range" | "valueText" | "view" | "circle" | "circleTrack" | "circleRange"
|
827 |
|
828 | export interface ProgressVariant {
|
829 |
|
830 | variant?: "outline" | "subtle"
|
831 |
|
832 | shape?: "square" | "rounded" | "full"
|
833 | striped?: boolean
|
834 | animated?: boolean
|
835 |
|
836 | size?: "xs" | "sm" | "md" | "lg" | "xl"
|
837 | }
|
838 |
|
839 | export type ProgressVariantProps = {
|
840 | [K in keyof ProgressVariant]?: ConditionalValue<ProgressVariant[K]> | undefined
|
841 | }
|
842 |
|
843 | export type ProgressVariantMap = {
|
844 | [K in keyof ProgressVariant]: Array<ProgressVariant[K]>
|
845 | }
|
846 |
|
847 |
|
848 |
|
849 | export type ProgressCircleSlot = "root" | "label" | "track" | "range" | "valueText" | "view" | "circle" | "circleTrack" | "circleRange"
|
850 |
|
851 | export interface ProgressCircleVariant {
|
852 |
|
853 | size?: "xs" | "sm" | "md" | "lg" | "xl"
|
854 | }
|
855 |
|
856 | export type ProgressCircleVariantProps = {
|
857 | [K in keyof ProgressCircleVariant]?: ConditionalValue<ProgressCircleVariant[K]> | undefined
|
858 | }
|
859 |
|
860 | export type ProgressCircleVariantMap = {
|
861 | [K in keyof ProgressCircleVariant]: Array<ProgressCircleVariant[K]>
|
862 | }
|
863 |
|
864 |
|
865 |
|
866 | export type RadioCardSlot =
|
867 | | "root"
|
868 | | "label"
|
869 | | "item"
|
870 | | "itemText"
|
871 | | "itemControl"
|
872 | | "indicator"
|
873 | | "itemAddon"
|
874 | | "itemIndicator"
|
875 | | "itemContent"
|
876 | | "itemDescription"
|
877 |
|
878 | export interface RadioCardVariant {
|
879 |
|
880 | size?: "sm" | "md" | "lg"
|
881 |
|
882 | variant?: "surface" | "subtle" | "outline" | "solid"
|
883 | justify?: "start" | "end" | "center"
|
884 |
|
885 | align?: "start" | "end" | "center"
|
886 |
|
887 | orientation?: "vertical" | "horizontal"
|
888 | }
|
889 |
|
890 | export type RadioCardVariantProps = {
|
891 | [K in keyof RadioCardVariant]?: ConditionalValue<RadioCardVariant[K]> | undefined
|
892 | }
|
893 |
|
894 | export type RadioCardVariantMap = {
|
895 | [K in keyof RadioCardVariant]: Array<RadioCardVariant[K]>
|
896 | }
|
897 |
|
898 |
|
899 |
|
900 | export type RadioGroupSlot = "root" | "label" | "item" | "itemText" | "itemControl" | "indicator" | "itemAddon" | "itemIndicator"
|
901 |
|
902 | export interface RadioGroupVariant {
|
903 |
|
904 | variant?: "outline" | "subtle" | "solid"
|
905 |
|
906 | size?: "xs" | "sm" | "md" | "lg"
|
907 | }
|
908 |
|
909 | export type RadioGroupVariantProps = {
|
910 | [K in keyof RadioGroupVariant]?: ConditionalValue<RadioGroupVariant[K]> | undefined
|
911 | }
|
912 |
|
913 | export type RadioGroupVariantMap = {
|
914 | [K in keyof RadioGroupVariant]: Array<RadioGroupVariant[K]>
|
915 | }
|
916 |
|
917 |
|
918 |
|
919 | export type RatingGroupSlot = "root" | "label" | "item" | "control" | "itemIndicator"
|
920 |
|
921 | export interface RatingGroupVariant {
|
922 |
|
923 | size?: "xs" | "sm" | "md" | "lg"
|
924 | }
|
925 |
|
926 | export type RatingGroupVariantProps = {
|
927 | [K in keyof RatingGroupVariant]?: ConditionalValue<RatingGroupVariant[K]> | undefined
|
928 | }
|
929 |
|
930 | export type RatingGroupVariantMap = {
|
931 | [K in keyof RatingGroupVariant]: Array<RatingGroupVariant[K]>
|
932 | }
|
933 |
|
934 |
|
935 |
|
936 | export type SegmentGroupSlot = "root" | "label" | "item" | "itemText" | "itemControl" | "indicator"
|
937 |
|
938 | export interface SegmentGroupVariant {
|
939 |
|
940 | size?: "xs" | "sm" | "md" | "lg"
|
941 | }
|
942 |
|
943 | export type SegmentGroupVariantProps = {
|
944 | [K in keyof SegmentGroupVariant]?: ConditionalValue<SegmentGroupVariant[K]> | undefined
|
945 | }
|
946 |
|
947 | export type SegmentGroupVariantMap = {
|
948 | [K in keyof SegmentGroupVariant]: Array<SegmentGroupVariant[K]>
|
949 | }
|
950 |
|
951 |
|
952 |
|
953 | export type SelectSlot =
|
954 | | "label"
|
955 | | "positioner"
|
956 | | "trigger"
|
957 | | "indicator"
|
958 | | "clearTrigger"
|
959 | | "item"
|
960 | | "itemText"
|
961 | | "itemIndicator"
|
962 | | "itemGroup"
|
963 | | "itemGroupLabel"
|
964 | | "list"
|
965 | | "content"
|
966 | | "root"
|
967 | | "control"
|
968 | | "valueText"
|
969 | | "indicatorGroup"
|
970 |
|
971 | export interface SelectVariant {
|
972 |
|
973 | variant?: "outline" | "subtle"
|
974 |
|
975 | size?: "xs" | "sm" | "md" | "lg"
|
976 | }
|
977 |
|
978 | export type SelectVariantProps = {
|
979 | [K in keyof SelectVariant]?: ConditionalValue<SelectVariant[K]> | undefined
|
980 | }
|
981 |
|
982 | export type SelectVariantMap = {
|
983 | [K in keyof SelectVariant]: Array<SelectVariant[K]>
|
984 | }
|
985 |
|
986 |
|
987 |
|
988 | export type SliderSlot =
|
989 | | "root"
|
990 | | "label"
|
991 | | "thumb"
|
992 | | "valueText"
|
993 | | "track"
|
994 | | "range"
|
995 | | "control"
|
996 | | "markerGroup"
|
997 | | "marker"
|
998 | | "draggingIndicator"
|
999 | | "markerIndicator"
|
1000 |
|
1001 | export interface SliderVariant {
|
1002 |
|
1003 | size?: "sm" | "md" | "lg"
|
1004 |
|
1005 | variant?: "outline" | "solid"
|
1006 |
|
1007 | orientation?: "vertical" | "horizontal"
|
1008 | }
|
1009 |
|
1010 | export type SliderVariantProps = {
|
1011 | [K in keyof SliderVariant]?: ConditionalValue<SliderVariant[K]> | undefined
|
1012 | }
|
1013 |
|
1014 | export type SliderVariantMap = {
|
1015 | [K in keyof SliderVariant]: Array<SliderVariant[K]>
|
1016 | }
|
1017 |
|
1018 |
|
1019 |
|
1020 | export type StatSlot = "root" | "label" | "helpText" | "valueText" | "valueUnit" | "indicator"
|
1021 |
|
1022 | export interface StatVariant {
|
1023 |
|
1024 | size?: "sm" | "md" | "lg"
|
1025 | }
|
1026 |
|
1027 | export type StatVariantProps = {
|
1028 | [K in keyof StatVariant]?: ConditionalValue<StatVariant[K]> | undefined
|
1029 | }
|
1030 |
|
1031 | export type StatVariantMap = {
|
1032 | [K in keyof StatVariant]: Array<StatVariant[K]>
|
1033 | }
|
1034 |
|
1035 |
|
1036 |
|
1037 | export type StepsSlot =
|
1038 | | "root"
|
1039 | | "list"
|
1040 | | "item"
|
1041 | | "trigger"
|
1042 | | "indicator"
|
1043 | | "separator"
|
1044 | | "content"
|
1045 | | "title"
|
1046 | | "description"
|
1047 | | "nextTrigger"
|
1048 | | "prevTrigger"
|
1049 | | "progress"
|
1050 |
|
1051 | export interface StepsVariant {
|
1052 |
|
1053 | orientation?: "vertical" | "horizontal"
|
1054 |
|
1055 | variant?: "solid" | "subtle"
|
1056 |
|
1057 | size?: "xs" | "sm" | "md" | "lg"
|
1058 | }
|
1059 |
|
1060 | export type StepsVariantProps = {
|
1061 | [K in keyof StepsVariant]?: ConditionalValue<StepsVariant[K]> | undefined
|
1062 | }
|
1063 |
|
1064 | export type StepsVariantMap = {
|
1065 | [K in keyof StepsVariant]: Array<StepsVariant[K]>
|
1066 | }
|
1067 |
|
1068 |
|
1069 |
|
1070 | export type SwitchSlot = "root" | "label" | "control" | "thumb" | "indicator"
|
1071 |
|
1072 | export interface SwitchVariant {
|
1073 |
|
1074 | variant?: "solid" | "raised"
|
1075 |
|
1076 | size?: "xs" | "sm" | "md" | "lg"
|
1077 | }
|
1078 |
|
1079 | export type SwitchVariantProps = {
|
1080 | [K in keyof SwitchVariant]?: ConditionalValue<SwitchVariant[K]> | undefined
|
1081 | }
|
1082 |
|
1083 | export type SwitchVariantMap = {
|
1084 | [K in keyof SwitchVariant]: Array<SwitchVariant[K]>
|
1085 | }
|
1086 |
|
1087 |
|
1088 |
|
1089 | export type TableSlot = "root" | "header" | "body" | "row" | "columnHeader" | "cell" | "footer" | "caption"
|
1090 |
|
1091 | export interface TableVariant {
|
1092 | interactive?: boolean
|
1093 | stickyHeader?: boolean
|
1094 | striped?: boolean
|
1095 | showColumnBorder?: boolean
|
1096 |
|
1097 | variant?: "line" | "outline"
|
1098 |
|
1099 | size?: "sm" | "md" | "lg"
|
1100 | }
|
1101 |
|
1102 | export type TableVariantProps = {
|
1103 | [K in keyof TableVariant]?: ConditionalValue<TableVariant[K]> | undefined
|
1104 | }
|
1105 |
|
1106 | export type TableVariantMap = {
|
1107 | [K in keyof TableVariant]: Array<TableVariant[K]>
|
1108 | }
|
1109 |
|
1110 |
|
1111 |
|
1112 | export type TabsSlot = "root" | "trigger" | "list" | "content" | "contentGroup" | "indicator"
|
1113 |
|
1114 | export interface TabsVariant {
|
1115 | fitted?: boolean
|
1116 | justify?: "start" | "center" | "end"
|
1117 |
|
1118 | size?: "sm" | "md" | "lg"
|
1119 |
|
1120 | variant?: "line" | "subtle" | "enclosed" | "outline" | "plain"
|
1121 | }
|
1122 |
|
1123 | export type TabsVariantProps = {
|
1124 | [K in keyof TabsVariant]?: ConditionalValue<TabsVariant[K]> | undefined
|
1125 | }
|
1126 |
|
1127 | export type TabsVariantMap = {
|
1128 | [K in keyof TabsVariant]: Array<TabsVariant[K]>
|
1129 | }
|
1130 |
|
1131 |
|
1132 |
|
1133 | export type TagSlot = "root" | "label" | "closeTrigger" | "startElement" | "endElement"
|
1134 |
|
1135 | export interface TagVariant {
|
1136 |
|
1137 | size?: "sm" | "md" | "lg" | "xl"
|
1138 |
|
1139 | variant?: "subtle" | "solid" | "outline" | "surface"
|
1140 | }
|
1141 |
|
1142 | export type TagVariantProps = {
|
1143 | [K in keyof TagVariant]?: ConditionalValue<TagVariant[K]> | undefined
|
1144 | }
|
1145 |
|
1146 | export type TagVariantMap = {
|
1147 | [K in keyof TagVariant]: Array<TagVariant[K]>
|
1148 | }
|
1149 |
|
1150 |
|
1151 |
|
1152 | export type ToastSlot = "root" | "title" | "description" | "indicator" | "closeTrigger" | "actionTrigger"
|
1153 |
|
1154 | export interface ToastVariant {}
|
1155 |
|
1156 | export type ToastVariantProps = {
|
1157 | [K in keyof ToastVariant]?: ConditionalValue<ToastVariant[K]> | undefined
|
1158 | }
|
1159 |
|
1160 | export type ToastVariantMap = {
|
1161 | [K in keyof ToastVariant]: Array<ToastVariant[K]>
|
1162 | }
|
1163 |
|
1164 |
|
1165 |
|
1166 | export type TooltipSlot = "trigger" | "arrow" | "arrowTip" | "positioner" | "content"
|
1167 |
|
1168 | export interface TooltipVariant {}
|
1169 |
|
1170 | export type TooltipVariantProps = {
|
1171 | [K in keyof TooltipVariant]?: ConditionalValue<TooltipVariant[K]> | undefined
|
1172 | }
|
1173 |
|
1174 | export type TooltipVariantMap = {
|
1175 | [K in keyof TooltipVariant]: Array<TooltipVariant[K]>
|
1176 | }
|
1177 |
|
1178 |
|
1179 |
|
1180 | export type StatusSlot = "root" | "indicator"
|
1181 |
|
1182 | export interface StatusVariant {
|
1183 |
|
1184 | size?: "sm" | "md" | "lg"
|
1185 | }
|
1186 |
|
1187 | export type StatusVariantProps = {
|
1188 | [K in keyof StatusVariant]?: ConditionalValue<StatusVariant[K]> | undefined
|
1189 | }
|
1190 |
|
1191 | export type StatusVariantMap = {
|
1192 | [K in keyof StatusVariant]: Array<StatusVariant[K]>
|
1193 | }
|
1194 |
|
1195 |
|
1196 |
|
1197 | export type TimelineSlot = "root" | "item" | "content" | "separator" | "indicator" | "connector" | "title" | "description"
|
1198 |
|
1199 | export interface TimelineVariant {
|
1200 |
|
1201 | variant?: "subtle" | "solid" | "outline" | "plain"
|
1202 |
|
1203 | size?: "sm" | "md" | "lg" | "xl"
|
1204 | }
|
1205 |
|
1206 | export type TimelineVariantProps = {
|
1207 | [K in keyof TimelineVariant]?: ConditionalValue<TimelineVariant[K]> | undefined
|
1208 | }
|
1209 |
|
1210 | export type TimelineVariantMap = {
|
1211 | [K in keyof TimelineVariant]: Array<TimelineVariant[K]>
|
1212 | }
|
1213 |
|
1214 |
|
1215 |
|
1216 | export type ColorPickerSlot =
|
1217 | | "root"
|
1218 | | "label"
|
1219 | | "control"
|
1220 | | "trigger"
|
1221 | | "positioner"
|
1222 | | "content"
|
1223 | | "area"
|
1224 | | "areaThumb"
|
1225 | | "valueText"
|
1226 | | "areaBackground"
|
1227 | | "channelSlider"
|
1228 | | "channelSliderLabel"
|
1229 | | "channelSliderTrack"
|
1230 | | "channelSliderThumb"
|
1231 | | "channelSliderValueText"
|
1232 | | "channelInput"
|
1233 | | "transparencyGrid"
|
1234 | | "swatchGroup"
|
1235 | | "swatchTrigger"
|
1236 | | "swatchIndicator"
|
1237 | | "swatch"
|
1238 | | "eyeDropperTrigger"
|
1239 | | "formatTrigger"
|
1240 | | "formatSelect"
|
1241 | | "view"
|
1242 |
|
1243 | export interface ColorPickerVariant {
|
1244 |
|
1245 | size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl"
|
1246 |
|
1247 | variant?: "outline" | "subtle"
|
1248 | }
|
1249 |
|
1250 | export type ColorPickerVariantProps = {
|
1251 | [K in keyof ColorPickerVariant]?: ConditionalValue<ColorPickerVariant[K]> | undefined
|
1252 | }
|
1253 |
|
1254 | export type ColorPickerVariantMap = {
|
1255 | [K in keyof ColorPickerVariant]: Array<ColorPickerVariant[K]>
|
1256 | }
|
1257 |
|
1258 |
|
1259 |
|
1260 | export type QrCodeSlot = "root" | "frame" | "pattern" | "overlay" | "downloadTrigger"
|
1261 |
|
1262 | export interface QrCodeVariant {
|
1263 |
|
1264 | size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "full"
|
1265 | }
|
1266 |
|
1267 | export type QrCodeVariantProps = {
|
1268 | [K in keyof QrCodeVariant]?: ConditionalValue<QrCodeVariant[K]> | undefined
|
1269 | }
|
1270 |
|
1271 | export type QrCodeVariantMap = {
|
1272 | [K in keyof QrCodeVariant]: Array<QrCodeVariant[K]>
|
1273 | }
|
1274 |
|
1275 | export interface ConfigSlotRecipes {
|
1276 | accordion: SystemSlotRecipeFn<AccordionSlot, AccordionVariantProps, AccordionVariantMap>
|
1277 | actionBar: SystemSlotRecipeFn<ActionBarSlot, ActionBarVariantProps, ActionBarVariantMap>
|
1278 | alert: SystemSlotRecipeFn<AlertSlot, AlertVariantProps, AlertVariantMap>
|
1279 | avatar: SystemSlotRecipeFn<AvatarSlot, AvatarVariantProps, AvatarVariantMap>
|
1280 | blockquote: SystemSlotRecipeFn<BlockquoteSlot, BlockquoteVariantProps, BlockquoteVariantMap>
|
1281 | breadcrumb: SystemSlotRecipeFn<BreadcrumbSlot, BreadcrumbVariantProps, BreadcrumbVariantMap>
|
1282 | card: SystemSlotRecipeFn<CardSlot, CardVariantProps, CardVariantMap>
|
1283 | checkbox: SystemSlotRecipeFn<CheckboxSlot, CheckboxVariantProps, CheckboxVariantMap>
|
1284 | checkboxCard: SystemSlotRecipeFn<CheckboxCardSlot, CheckboxCardVariantProps, CheckboxCardVariantMap>
|
1285 | collapsible: SystemSlotRecipeFn<CollapsibleSlot, CollapsibleVariantProps, CollapsibleVariantMap>
|
1286 | dataList: SystemSlotRecipeFn<DataListSlot, DataListVariantProps, DataListVariantMap>
|
1287 | dialog: SystemSlotRecipeFn<DialogSlot, DialogVariantProps, DialogVariantMap>
|
1288 | drawer: SystemSlotRecipeFn<DrawerSlot, DrawerVariantProps, DrawerVariantMap>
|
1289 | editable: SystemSlotRecipeFn<EditableSlot, EditableVariantProps, EditableVariantMap>
|
1290 | emptyState: SystemSlotRecipeFn<EmptyStateSlot, EmptyStateVariantProps, EmptyStateVariantMap>
|
1291 | field: SystemSlotRecipeFn<FieldSlot, FieldVariantProps, FieldVariantMap>
|
1292 | fieldset: SystemSlotRecipeFn<FieldsetSlot, FieldsetVariantProps, FieldsetVariantMap>
|
1293 | fileUpload: SystemSlotRecipeFn<FileUploadSlot, FileUploadVariantProps, FileUploadVariantMap>
|
1294 | hoverCard: SystemSlotRecipeFn<HoverCardSlot, HoverCardVariantProps, HoverCardVariantMap>
|
1295 | list: SystemSlotRecipeFn<ListSlot, ListVariantProps, ListVariantMap>
|
1296 | menu: SystemSlotRecipeFn<MenuSlot, MenuVariantProps, MenuVariantMap>
|
1297 | nativeSelect: SystemSlotRecipeFn<NativeSelectSlot, NativeSelectVariantProps, NativeSelectVariantMap>
|
1298 | numberInput: SystemSlotRecipeFn<NumberInputSlot, NumberInputVariantProps, NumberInputVariantMap>
|
1299 | pinInput: SystemSlotRecipeFn<PinInputSlot, PinInputVariantProps, PinInputVariantMap>
|
1300 | popover: SystemSlotRecipeFn<PopoverSlot, PopoverVariantProps, PopoverVariantMap>
|
1301 | progress: SystemSlotRecipeFn<ProgressSlot, ProgressVariantProps, ProgressVariantMap>
|
1302 | progressCircle: SystemSlotRecipeFn<ProgressCircleSlot, ProgressCircleVariantProps, ProgressCircleVariantMap>
|
1303 | radioCard: SystemSlotRecipeFn<RadioCardSlot, RadioCardVariantProps, RadioCardVariantMap>
|
1304 | radioGroup: SystemSlotRecipeFn<RadioGroupSlot, RadioGroupVariantProps, RadioGroupVariantMap>
|
1305 | ratingGroup: SystemSlotRecipeFn<RatingGroupSlot, RatingGroupVariantProps, RatingGroupVariantMap>
|
1306 | segmentGroup: SystemSlotRecipeFn<SegmentGroupSlot, SegmentGroupVariantProps, SegmentGroupVariantMap>
|
1307 | select: SystemSlotRecipeFn<SelectSlot, SelectVariantProps, SelectVariantMap>
|
1308 | slider: SystemSlotRecipeFn<SliderSlot, SliderVariantProps, SliderVariantMap>
|
1309 | stat: SystemSlotRecipeFn<StatSlot, StatVariantProps, StatVariantMap>
|
1310 | steps: SystemSlotRecipeFn<StepsSlot, StepsVariantProps, StepsVariantMap>
|
1311 | switch: SystemSlotRecipeFn<SwitchSlot, SwitchVariantProps, SwitchVariantMap>
|
1312 | table: SystemSlotRecipeFn<TableSlot, TableVariantProps, TableVariantMap>
|
1313 | tabs: SystemSlotRecipeFn<TabsSlot, TabsVariantProps, TabsVariantMap>
|
1314 | tag: SystemSlotRecipeFn<TagSlot, TagVariantProps, TagVariantMap>
|
1315 | toast: SystemSlotRecipeFn<ToastSlot, ToastVariantProps, ToastVariantMap>
|
1316 | tooltip: SystemSlotRecipeFn<TooltipSlot, TooltipVariantProps, TooltipVariantMap>
|
1317 | status: SystemSlotRecipeFn<StatusSlot, StatusVariantProps, StatusVariantMap>
|
1318 | timeline: SystemSlotRecipeFn<TimelineSlot, TimelineVariantProps, TimelineVariantMap>
|
1319 | colorPicker: SystemSlotRecipeFn<ColorPickerSlot, ColorPickerVariantProps, ColorPickerVariantMap>
|
1320 | qrCode: SystemSlotRecipeFn<QrCodeSlot, QrCodeVariantProps, QrCodeVariantMap>
|
1321 | }
|
1322 |
|
1323 | export interface ConfigRecipeSlots {
|
1324 | accordion: AccordionSlot
|
1325 | actionBar: ActionBarSlot
|
1326 | alert: AlertSlot
|
1327 | avatar: AvatarSlot
|
1328 | blockquote: BlockquoteSlot
|
1329 | breadcrumb: BreadcrumbSlot
|
1330 | card: CardSlot
|
1331 | checkbox: CheckboxSlot
|
1332 | checkboxCard: CheckboxCardSlot
|
1333 | collapsible: CollapsibleSlot
|
1334 | dataList: DataListSlot
|
1335 | dialog: DialogSlot
|
1336 | drawer: DrawerSlot
|
1337 | editable: EditableSlot
|
1338 | emptyState: EmptyStateSlot
|
1339 | field: FieldSlot
|
1340 | fieldset: FieldsetSlot
|
1341 | fileUpload: FileUploadSlot
|
1342 | hoverCard: HoverCardSlot
|
1343 | list: ListSlot
|
1344 | menu: MenuSlot
|
1345 | nativeSelect: NativeSelectSlot
|
1346 | numberInput: NumberInputSlot
|
1347 | pinInput: PinInputSlot
|
1348 | popover: PopoverSlot
|
1349 | progress: ProgressSlot
|
1350 | progressCircle: ProgressCircleSlot
|
1351 | radioCard: RadioCardSlot
|
1352 | radioGroup: RadioGroupSlot
|
1353 | ratingGroup: RatingGroupSlot
|
1354 | segmentGroup: SegmentGroupSlot
|
1355 | select: SelectSlot
|
1356 | slider: SliderSlot
|
1357 | stat: StatSlot
|
1358 | steps: StepsSlot
|
1359 | switch: SwitchSlot
|
1360 | table: TableSlot
|
1361 | tabs: TabsSlot
|
1362 | tag: TagSlot
|
1363 | toast: ToastSlot
|
1364 | tooltip: TooltipSlot
|
1365 | status: StatusSlot
|
1366 | timeline: TimelineSlot
|
1367 | colorPicker: ColorPickerSlot
|
1368 | qrCode: QrCodeSlot
|
1369 | }
|
1370 |
|
1371 | export type SlotRecipeRecord<T, K> = T extends keyof ConfigRecipeSlots ? Record<ConfigRecipeSlots[T], K> : Record<string, K>
|
1372 |
|
1373 | export type SlotRecipeProps<T> = T extends keyof ConfigSlotRecipes
|
1374 | ? ConfigSlotRecipes[T]["__type"] & { recipe?: SlotRecipeDefinition }
|
1375 | : { recipe?: SlotRecipeDefinition }
|
1376 |
|
1377 | export type RecipeProps<T> = T extends keyof ConfigRecipes ? ConfigRecipes[T]["__type"] & { recipe?: RecipeDefinition } : { recipe?: RecipeDefinition }
|