|
import type { RecipeDefinition, SlotRecipeDefinition, SystemRecipeFn, SystemSlotRecipeFn } from "../recipe.types" |
|
import type { ConditionalValue } from "../css.types" |
|
|
|
export interface BadgeVariant { |
|
|
|
variant?: "solid" | "subtle" | "outline" | "surface" | "plain" | undefined |
|
|
|
size?: "xs" | "sm" | "md" | "lg" | undefined |
|
} |
|
|
|
export type BadgeVariantProps = { |
|
[K in keyof BadgeVariant]?: ConditionalValue<BadgeVariant[K]> | undefined |
|
} |
|
|
|
export type BadgeVariantMap = { |
|
[K in keyof BadgeVariant]: Array<BadgeVariant[K]> |
|
} |
|
|
|
export interface ButtonVariant { |
|
|
|
size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined |
|
|
|
variant?: "solid" | "subtle" | "surface" | "outline" | "ghost" | "plain" | undefined |
|
} |
|
|
|
export type ButtonVariantProps = { |
|
[K in keyof ButtonVariant]?: ConditionalValue<ButtonVariant[K]> | undefined |
|
} |
|
|
|
export type ButtonVariantMap = { |
|
[K in keyof ButtonVariant]: Array<ButtonVariant[K]> |
|
} |
|
|
|
export interface CodeVariant { |
|
|
|
variant?: "solid" | "subtle" | "outline" | "surface" | "plain" | undefined |
|
|
|
size?: "xs" | "sm" | "md" | "lg" | undefined |
|
} |
|
|
|
export type CodeVariantProps = { |
|
[K in keyof CodeVariant]?: ConditionalValue<CodeVariant[K]> | undefined |
|
} |
|
|
|
export type CodeVariantMap = { |
|
[K in keyof CodeVariant]: Array<CodeVariant[K]> |
|
} |
|
|
|
export interface ContainerVariant { |
|
centerContent?: boolean | undefined |
|
fluid?: boolean | undefined |
|
} |
|
|
|
export type ContainerVariantProps = { |
|
[K in keyof ContainerVariant]?: ConditionalValue<ContainerVariant[K]> | undefined |
|
} |
|
|
|
export type ContainerVariantMap = { |
|
[K in keyof ContainerVariant]: Array<ContainerVariant[K]> |
|
} |
|
|
|
export interface HeadingVariant { |
|
|
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | undefined |
|
} |
|
|
|
export type HeadingVariantProps = { |
|
[K in keyof HeadingVariant]?: ConditionalValue<HeadingVariant[K]> | undefined |
|
} |
|
|
|
export type HeadingVariantMap = { |
|
[K in keyof HeadingVariant]: Array<HeadingVariant[K]> |
|
} |
|
|
|
export interface InputVariant { |
|
|
|
size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined |
|
|
|
variant?: "outline" | "subtle" | "flushed" | undefined |
|
} |
|
|
|
export type InputVariantProps = { |
|
[K in keyof InputVariant]?: ConditionalValue<InputVariant[K]> | undefined |
|
} |
|
|
|
export type InputVariantMap = { |
|
[K in keyof InputVariant]: Array<InputVariant[K]> |
|
} |
|
|
|
export interface InputAddonVariant { |
|
|
|
size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined |
|
|
|
variant?: "outline" | "subtle" | "flushed" | undefined |
|
} |
|
|
|
export type InputAddonVariantProps = { |
|
[K in keyof InputAddonVariant]?: ConditionalValue<InputAddonVariant[K]> | undefined |
|
} |
|
|
|
export type InputAddonVariantMap = { |
|
[K in keyof InputAddonVariant]: Array<InputAddonVariant[K]> |
|
} |
|
|
|
export interface KbdVariant { |
|
|
|
variant?: "raised" | "outline" | "subtle" | "plain" | undefined |
|
|
|
size?: "sm" | "md" | "lg" | undefined |
|
} |
|
|
|
export type KbdVariantProps = { |
|
[K in keyof KbdVariant]?: ConditionalValue<KbdVariant[K]> | undefined |
|
} |
|
|
|
export type KbdVariantMap = { |
|
[K in keyof KbdVariant]: Array<KbdVariant[K]> |
|
} |
|
|
|
export interface LinkVariant { |
|
|
|
variant?: "underline" | "plain" | undefined |
|
} |
|
|
|
export type LinkVariantProps = { |
|
[K in keyof LinkVariant]?: ConditionalValue<LinkVariant[K]> | undefined |
|
} |
|
|
|
export type LinkVariantMap = { |
|
[K in keyof LinkVariant]: Array<LinkVariant[K]> |
|
} |
|
|
|
export interface MarkVariant { |
|
variant?: "subtle" | "solid" | "text" | "plain" | undefined |
|
} |
|
|
|
export type MarkVariantProps = { |
|
[K in keyof MarkVariant]?: ConditionalValue<MarkVariant[K]> | undefined |
|
} |
|
|
|
export type MarkVariantMap = { |
|
[K in keyof MarkVariant]: Array<MarkVariant[K]> |
|
} |
|
|
|
export interface SeparatorVariant { |
|
|
|
variant?: "solid" | "dashed" | "dotted" | undefined |
|
|
|
orientation?: "vertical" | "horizontal" | undefined |
|
|
|
size?: "xs" | "sm" | "md" | "lg" | undefined |
|
} |
|
|
|
export type SeparatorVariantProps = { |
|
[K in keyof SeparatorVariant]?: ConditionalValue<SeparatorVariant[K]> | undefined |
|
} |
|
|
|
export type SeparatorVariantMap = { |
|
[K in keyof SeparatorVariant]: Array<SeparatorVariant[K]> |
|
} |
|
|
|
export interface SkeletonVariant { |
|
|
|
loading?: boolean | undefined |
|
|
|
variant?: "pulse" | "shine" | "none" | undefined |
|
} |
|
|
|
export type SkeletonVariantProps = { |
|
[K in keyof SkeletonVariant]?: ConditionalValue<SkeletonVariant[K]> | undefined |
|
} |
|
|
|
export type SkeletonVariantMap = { |
|
[K in keyof SkeletonVariant]: Array<SkeletonVariant[K]> |
|
} |
|
|
|
export interface SkipNavLinkVariant {} |
|
|
|
export type SkipNavLinkVariantProps = { |
|
[K in keyof SkipNavLinkVariant]?: ConditionalValue<SkipNavLinkVariant[K]> | undefined |
|
} |
|
|
|
export type SkipNavLinkVariantMap = { |
|
[K in keyof SkipNavLinkVariant]: Array<SkipNavLinkVariant[K]> |
|
} |
|
|
|
export interface SpinnerVariant { |
|
|
|
size?: "inherit" | "xs" | "sm" | "md" | "lg" | "xl" | undefined |
|
} |
|
|
|
export type SpinnerVariantProps = { |
|
[K in keyof SpinnerVariant]?: ConditionalValue<SpinnerVariant[K]> | undefined |
|
} |
|
|
|
export type SpinnerVariantMap = { |
|
[K in keyof SpinnerVariant]: Array<SpinnerVariant[K]> |
|
} |
|
|
|
export interface TextareaVariant { |
|
|
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined |
|
|
|
variant?: "outline" | "subtle" | "flushed" | undefined |
|
} |
|
|
|
export type TextareaVariantProps = { |
|
[K in keyof TextareaVariant]?: ConditionalValue<TextareaVariant[K]> | undefined |
|
} |
|
|
|
export type TextareaVariantMap = { |
|
[K in keyof TextareaVariant]: Array<TextareaVariant[K]> |
|
} |
|
|
|
export interface IconVariant { |
|
|
|
size?: "inherit" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined |
|
} |
|
|
|
export type IconVariantProps = { |
|
[K in keyof IconVariant]?: ConditionalValue<IconVariant[K]> | undefined |
|
} |
|
|
|
export type IconVariantMap = { |
|
[K in keyof IconVariant]: Array<IconVariant[K]> |
|
} |
|
|
|
export interface CheckmarkVariant { |
|
|
|
size?: "xs" | "sm" | "md" | "lg" | undefined |
|
|
|
variant?: "solid" | "outline" | "subtle" | "plain" | "inverted" | undefined |
|
} |
|
|
|
export type CheckmarkVariantProps = { |
|
[K in keyof CheckmarkVariant]?: ConditionalValue<CheckmarkVariant[K]> | undefined |
|
} |
|
|
|
export type CheckmarkVariantMap = { |
|
[K in keyof CheckmarkVariant]: Array<CheckmarkVariant[K]> |
|
} |
|
|
|
export interface RadiomarkVariant { |
|
|
|
variant?: "solid" | "subtle" | "outline" | "inverted" | undefined |
|
|
|
size?: "xs" | "sm" | "md" | "lg" | undefined |
|
} |
|
|
|
export type RadiomarkVariantProps = { |
|
[K in keyof RadiomarkVariant]?: ConditionalValue<RadiomarkVariant[K]> | undefined |
|
} |
|
|
|
export type RadiomarkVariantMap = { |
|
[K in keyof RadiomarkVariant]: Array<RadiomarkVariant[K]> |
|
} |
|
|
|
export interface ColorSwatchVariant { |
|
|
|
size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "inherit" | "full" | undefined |
|
|
|
shape?: "square" | "circle" | "rounded" | undefined |
|
} |
|
|
|
export type ColorSwatchVariantProps = { |
|
[K in keyof ColorSwatchVariant]?: ConditionalValue<ColorSwatchVariant[K]> | undefined |
|
} |
|
|
|
export type ColorSwatchVariantMap = { |
|
[K in keyof ColorSwatchVariant]: Array<ColorSwatchVariant[K]> |
|
} |
|
|
|
export interface ConfigRecipes { |
|
badge: SystemRecipeFn<BadgeVariantProps, BadgeVariantMap> |
|
button: SystemRecipeFn<ButtonVariantProps, ButtonVariantMap> |
|
code: SystemRecipeFn<CodeVariantProps, CodeVariantMap> |
|
container: SystemRecipeFn<ContainerVariantProps, ContainerVariantMap> |
|
heading: SystemRecipeFn<HeadingVariantProps, HeadingVariantMap> |
|
input: SystemRecipeFn<InputVariantProps, InputVariantMap> |
|
inputAddon: SystemRecipeFn<InputAddonVariantProps, InputAddonVariantMap> |
|
kbd: SystemRecipeFn<KbdVariantProps, KbdVariantMap> |
|
link: SystemRecipeFn<LinkVariantProps, LinkVariantMap> |
|
mark: SystemRecipeFn<MarkVariantProps, MarkVariantMap> |
|
separator: SystemRecipeFn<SeparatorVariantProps, SeparatorVariantMap> |
|
skeleton: SystemRecipeFn<SkeletonVariantProps, SkeletonVariantMap> |
|
skipNavLink: SystemRecipeFn<SkipNavLinkVariantProps, SkipNavLinkVariantMap> |
|
spinner: SystemRecipeFn<SpinnerVariantProps, SpinnerVariantMap> |
|
textarea: SystemRecipeFn<TextareaVariantProps, TextareaVariantMap> |
|
icon: SystemRecipeFn<IconVariantProps, IconVariantMap> |
|
checkmark: SystemRecipeFn<CheckmarkVariantProps, CheckmarkVariantMap> |
|
radiomark: SystemRecipeFn<RadiomarkVariantProps, RadiomarkVariantMap> |
|
colorSwatch: SystemRecipeFn<ColorSwatchVariantProps, ColorSwatchVariantMap> |
|
} |
|
|
|
|
|
|
|
export type AccordionSlot = "root" | "item" | "itemTrigger" | "itemContent" | "itemIndicator" | "itemBody" |
|
|
|
export interface AccordionVariant { |
|
|
|
variant?: "outline" | "subtle" | "enclosed" | "plain" | undefined |
|
|
|
size?: "sm" | "md" | "lg" | undefined |
|
} |
|
|
|
export type AccordionVariantProps = { |
|
[K in keyof AccordionVariant]?: ConditionalValue<AccordionVariant[K]> | undefined |
|
} |
|
|
|
export type AccordionVariantMap = { |
|
[K in keyof AccordionVariant]: Array<AccordionVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type ActionBarSlot = "positioner" | "content" | "separator" | "selectionTrigger" | "closeTrigger" |
|
|
|
export interface ActionBarVariant {} |
|
|
|
export type ActionBarVariantProps = { |
|
[K in keyof ActionBarVariant]?: ConditionalValue<ActionBarVariant[K]> | undefined |
|
} |
|
|
|
export type ActionBarVariantMap = { |
|
[K in keyof ActionBarVariant]: Array<ActionBarVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type AlertSlot = "title" | "description" | "root" | "indicator" | "content" |
|
|
|
export interface AlertVariant { |
|
|
|
status?: "info" | "warning" | "success" | "error" | "neutral" | undefined |
|
inline?: boolean | undefined |
|
|
|
variant?: "subtle" | "surface" | "outline" | "solid" | undefined |
|
|
|
size?: "sm" | "md" | "lg" | undefined |
|
} |
|
|
|
export type AlertVariantProps = { |
|
[K in keyof AlertVariant]?: ConditionalValue<AlertVariant[K]> | undefined |
|
} |
|
|
|
export type AlertVariantMap = { |
|
[K in keyof AlertVariant]: Array<AlertVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type AvatarSlot = "root" | "image" | "fallback" |
|
|
|
export interface AvatarVariant { |
|
|
|
size?: "full" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined |
|
|
|
variant?: "solid" | "subtle" | "outline" | undefined |
|
|
|
shape?: "square" | "rounded" | "full" | undefined |
|
borderless?: boolean | undefined |
|
} |
|
|
|
export type AvatarVariantProps = { |
|
[K in keyof AvatarVariant]?: ConditionalValue<AvatarVariant[K]> | undefined |
|
} |
|
|
|
export type AvatarVariantMap = { |
|
[K in keyof AvatarVariant]: Array<AvatarVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type BlockquoteSlot = "root" | "icon" | "content" | "caption" |
|
|
|
export interface BlockquoteVariant { |
|
|
|
justify?: "start" | "center" | "end" | undefined |
|
|
|
variant?: "subtle" | "solid" | "plain" | undefined |
|
} |
|
|
|
export type BlockquoteVariantProps = { |
|
[K in keyof BlockquoteVariant]?: ConditionalValue<BlockquoteVariant[K]> | undefined |
|
} |
|
|
|
export type BlockquoteVariantMap = { |
|
[K in keyof BlockquoteVariant]: Array<BlockquoteVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type BreadcrumbSlot = "link" | "currentLink" | "item" | "list" | "root" | "ellipsis" | "separator" |
|
|
|
export interface BreadcrumbVariant { |
|
|
|
variant?: "underline" | "plain" | undefined |
|
|
|
size?: "sm" | "md" | "lg" | undefined |
|
} |
|
|
|
export type BreadcrumbVariantProps = { |
|
[K in keyof BreadcrumbVariant]?: ConditionalValue<BreadcrumbVariant[K]> | undefined |
|
} |
|
|
|
export type BreadcrumbVariantMap = { |
|
[K in keyof BreadcrumbVariant]: Array<BreadcrumbVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type CardSlot = "root" | "header" | "body" | "footer" | "title" | "description" |
|
|
|
export interface CardVariant { |
|
|
|
size?: "sm" | "md" | "lg" | undefined |
|
|
|
variant?: "elevated" | "outline" | "subtle" | undefined |
|
} |
|
|
|
export type CardVariantProps = { |
|
[K in keyof CardVariant]?: ConditionalValue<CardVariant[K]> | undefined |
|
} |
|
|
|
export type CardVariantMap = { |
|
[K in keyof CardVariant]: Array<CardVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type CheckboxSlot = "root" | "label" | "control" | "indicator" | "group" |
|
|
|
export interface CheckboxVariant { |
|
|
|
size?: "xs" | "sm" | "md" | "lg" | undefined |
|
|
|
variant?: "outline" | "solid" | "subtle" | undefined |
|
} |
|
|
|
export type CheckboxVariantProps = { |
|
[K in keyof CheckboxVariant]?: ConditionalValue<CheckboxVariant[K]> | undefined |
|
} |
|
|
|
export type CheckboxVariantMap = { |
|
[K in keyof CheckboxVariant]: Array<CheckboxVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type CheckboxCardSlot = "root" | "control" | "label" | "description" | "addon" | "indicator" | "content" |
|
|
|
export interface CheckboxCardVariant { |
|
|
|
size?: "sm" | "md" | "lg" | undefined |
|
|
|
variant?: "surface" | "subtle" | "outline" | "solid" | undefined |
|
justify?: "start" | "end" | "center" | undefined |
|
|
|
align?: "start" | "end" | "center" | undefined |
|
|
|
orientation?: "vertical" | "horizontal" | undefined |
|
} |
|
|
|
export type CheckboxCardVariantProps = { |
|
[K in keyof CheckboxCardVariant]?: ConditionalValue<CheckboxCardVariant[K]> | undefined |
|
} |
|
|
|
export type CheckboxCardVariantMap = { |
|
[K in keyof CheckboxCardVariant]: Array<CheckboxCardVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type CollapsibleSlot = "root" | "trigger" | "content" | "indicator" |
|
|
|
export interface CollapsibleVariant {} |
|
|
|
export type CollapsibleVariantProps = { |
|
[K in keyof CollapsibleVariant]?: ConditionalValue<CollapsibleVariant[K]> | undefined |
|
} |
|
|
|
export type CollapsibleVariantMap = { |
|
[K in keyof CollapsibleVariant]: Array<CollapsibleVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type DataListSlot = "root" | "item" | "itemLabel" | "itemValue" |
|
|
|
export interface DataListVariant { |
|
|
|
orientation?: "horizontal" | "vertical" | undefined |
|
|
|
size?: "sm" | "md" | "lg" | undefined |
|
|
|
variant?: "subtle" | "bold" | undefined |
|
} |
|
|
|
export type DataListVariantProps = { |
|
[K in keyof DataListVariant]?: ConditionalValue<DataListVariant[K]> | undefined |
|
} |
|
|
|
export type DataListVariantMap = { |
|
[K in keyof DataListVariant]: Array<DataListVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type DialogSlot = |
|
| "trigger" |
|
| "backdrop" |
|
| "positioner" |
|
| "content" |
|
| "title" |
|
| "description" |
|
| "closeTrigger" |
|
| "header" |
|
| "body" |
|
| "footer" |
|
| "backdrop" |
|
|
|
export interface DialogVariant { |
|
|
|
placement?: "center" | "top" | "bottom" | undefined |
|
|
|
scrollBehavior?: "inside" | "outside" | undefined |
|
|
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "cover" | "full" | undefined |
|
|
|
motionPreset?: "scale" | "slide-in-bottom" | "slide-in-top" | "slide-in-left" | "slide-in-right" | "none" | undefined |
|
} |
|
|
|
export type DialogVariantProps = { |
|
[K in keyof DialogVariant]?: ConditionalValue<DialogVariant[K]> | undefined |
|
} |
|
|
|
export type DialogVariantMap = { |
|
[K in keyof DialogVariant]: Array<DialogVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type DrawerSlot = |
|
| "trigger" |
|
| "backdrop" |
|
| "positioner" |
|
| "content" |
|
| "title" |
|
| "description" |
|
| "closeTrigger" |
|
| "header" |
|
| "body" |
|
| "footer" |
|
| "backdrop" |
|
|
|
export interface DrawerVariant { |
|
|
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined |
|
|
|
placement?: "start" | "end" | "top" | "bottom" | undefined |
|
contained?: boolean | undefined |
|
} |
|
|
|
export type DrawerVariantProps = { |
|
[K in keyof DrawerVariant]?: ConditionalValue<DrawerVariant[K]> | undefined |
|
} |
|
|
|
export type DrawerVariantMap = { |
|
[K in keyof DrawerVariant]: Array<DrawerVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type EditableSlot = "root" | "area" | "label" | "preview" | "input" | "editTrigger" | "submitTrigger" | "cancelTrigger" | "control" | "textarea" |
|
|
|
export interface EditableVariant { |
|
|
|
size?: "sm" | "md" | "lg" | undefined |
|
} |
|
|
|
export type EditableVariantProps = { |
|
[K in keyof EditableVariant]?: ConditionalValue<EditableVariant[K]> | undefined |
|
} |
|
|
|
export type EditableVariantMap = { |
|
[K in keyof EditableVariant]: Array<EditableVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type EmptyStateSlot = "root" | "content" | "indicator" | "title" | "description" |
|
|
|
export interface EmptyStateVariant { |
|
|
|
size?: "sm" | "md" | "lg" | undefined |
|
} |
|
|
|
export type EmptyStateVariantProps = { |
|
[K in keyof EmptyStateVariant]?: ConditionalValue<EmptyStateVariant[K]> | undefined |
|
} |
|
|
|
export type EmptyStateVariantMap = { |
|
[K in keyof EmptyStateVariant]: Array<EmptyStateVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type FieldSlot = "root" | "errorText" | "helperText" | "input" | "label" | "select" | "textarea" | "requiredIndicator" | "requiredIndicator" |
|
|
|
export interface FieldVariant { |
|
|
|
orientation?: "vertical" | "horizontal" | undefined |
|
} |
|
|
|
export type FieldVariantProps = { |
|
[K in keyof FieldVariant]?: ConditionalValue<FieldVariant[K]> | undefined |
|
} |
|
|
|
export type FieldVariantMap = { |
|
[K in keyof FieldVariant]: Array<FieldVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type FieldsetSlot = "root" | "errorText" | "helperText" | "legend" | "content" |
|
|
|
export interface FieldsetVariant { |
|
|
|
size?: "sm" | "md" | "lg" | undefined |
|
} |
|
|
|
export type FieldsetVariantProps = { |
|
[K in keyof FieldsetVariant]?: ConditionalValue<FieldsetVariant[K]> | undefined |
|
} |
|
|
|
export type FieldsetVariantMap = { |
|
[K in keyof FieldsetVariant]: Array<FieldsetVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type FileUploadSlot = |
|
| "root" |
|
| "dropzone" |
|
| "item" |
|
| "itemDeleteTrigger" |
|
| "itemGroup" |
|
| "itemName" |
|
| "itemPreview" |
|
| "itemPreviewImage" |
|
| "itemSizeText" |
|
| "label" |
|
| "trigger" |
|
| "clearTrigger" |
|
| "itemContent" |
|
| "dropzoneContent" |
|
| "fileText" |
|
|
|
export interface FileUploadVariant {} |
|
|
|
export type FileUploadVariantProps = { |
|
[K in keyof FileUploadVariant]?: ConditionalValue<FileUploadVariant[K]> | undefined |
|
} |
|
|
|
export type FileUploadVariantMap = { |
|
[K in keyof FileUploadVariant]: Array<FileUploadVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type HoverCardSlot = "arrow" | "arrowTip" | "trigger" | "positioner" | "content" |
|
|
|
export interface HoverCardVariant { |
|
|
|
size?: "xs" | "sm" | "md" | "lg" | undefined |
|
} |
|
|
|
export type HoverCardVariantProps = { |
|
[K in keyof HoverCardVariant]?: ConditionalValue<HoverCardVariant[K]> | undefined |
|
} |
|
|
|
export type HoverCardVariantMap = { |
|
[K in keyof HoverCardVariant]: Array<HoverCardVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type ListSlot = "root" | "item" | "indicator" |
|
|
|
export interface ListVariant { |
|
|
|
variant?: "marker" | "plain" | undefined |
|
align?: "center" | "start" | "end" | undefined |
|
} |
|
|
|
export type ListVariantProps = { |
|
[K in keyof ListVariant]?: ConditionalValue<ListVariant[K]> | undefined |
|
} |
|
|
|
export type ListVariantMap = { |
|
[K in keyof ListVariant]: Array<ListVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type MenuSlot = |
|
| "arrow" |
|
| "arrowTip" |
|
| "content" |
|
| "contextTrigger" |
|
| "indicator" |
|
| "item" |
|
| "itemGroup" |
|
| "itemGroupLabel" |
|
| "itemIndicator" |
|
| "itemText" |
|
| "positioner" |
|
| "separator" |
|
| "trigger" |
|
| "triggerItem" |
|
| "itemCommand" |
|
|
|
export interface MenuVariant { |
|
|
|
variant?: "subtle" | "solid" | undefined |
|
|
|
size?: "sm" | "md" | undefined |
|
} |
|
|
|
export type MenuVariantProps = { |
|
[K in keyof MenuVariant]?: ConditionalValue<MenuVariant[K]> | undefined |
|
} |
|
|
|
export type MenuVariantMap = { |
|
[K in keyof MenuVariant]: Array<MenuVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type NativeSelectSlot = "root" | "field" | "indicator" |
|
|
|
export interface NativeSelectVariant { |
|
|
|
variant?: "outline" | "subtle" | "plain" | undefined |
|
|
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined |
|
} |
|
|
|
export type NativeSelectVariantProps = { |
|
[K in keyof NativeSelectVariant]?: ConditionalValue<NativeSelectVariant[K]> | undefined |
|
} |
|
|
|
export type NativeSelectVariantMap = { |
|
[K in keyof NativeSelectVariant]: Array<NativeSelectVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type NumberInputSlot = "root" | "label" | "input" | "control" | "valueText" | "incrementTrigger" | "decrementTrigger" | "scrubber" |
|
|
|
export interface NumberInputVariant { |
|
|
|
size?: "xs" | "sm" | "md" | "lg" | undefined |
|
|
|
variant?: "outline" | "subtle" | "flushed" | undefined |
|
} |
|
|
|
export type NumberInputVariantProps = { |
|
[K in keyof NumberInputVariant]?: ConditionalValue<NumberInputVariant[K]> | undefined |
|
} |
|
|
|
export type NumberInputVariantMap = { |
|
[K in keyof NumberInputVariant]: Array<NumberInputVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type PinInputSlot = "root" | "label" | "input" | "control" |
|
|
|
export interface PinInputVariant { |
|
|
|
size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined |
|
|
|
variant?: "outline" | "subtle" | "flushed" | undefined |
|
attached?: boolean | undefined |
|
} |
|
|
|
export type PinInputVariantProps = { |
|
[K in keyof PinInputVariant]?: ConditionalValue<PinInputVariant[K]> | undefined |
|
} |
|
|
|
export type PinInputVariantMap = { |
|
[K in keyof PinInputVariant]: Array<PinInputVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type PopoverSlot = |
|
| "arrow" |
|
| "arrowTip" |
|
| "anchor" |
|
| "trigger" |
|
| "indicator" |
|
| "positioner" |
|
| "content" |
|
| "title" |
|
| "description" |
|
| "closeTrigger" |
|
| "header" |
|
| "body" |
|
| "footer" |
|
|
|
export interface PopoverVariant { |
|
|
|
size?: "xs" | "sm" | "md" | "lg" | undefined |
|
} |
|
|
|
export type PopoverVariantProps = { |
|
[K in keyof PopoverVariant]?: ConditionalValue<PopoverVariant[K]> | undefined |
|
} |
|
|
|
export type PopoverVariantMap = { |
|
[K in keyof PopoverVariant]: Array<PopoverVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type ProgressSlot = "root" | "label" | "track" | "range" | "valueText" | "view" | "circle" | "circleTrack" | "circleRange" |
|
|
|
export interface ProgressVariant { |
|
|
|
variant?: "outline" | "subtle" | undefined |
|
|
|
shape?: "square" | "rounded" | "full" | undefined |
|
striped?: boolean | undefined |
|
animated?: boolean | undefined |
|
|
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined |
|
} |
|
|
|
export type ProgressVariantProps = { |
|
[K in keyof ProgressVariant]?: ConditionalValue<ProgressVariant[K]> | undefined |
|
} |
|
|
|
export type ProgressVariantMap = { |
|
[K in keyof ProgressVariant]: Array<ProgressVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type ProgressCircleSlot = "root" | "label" | "track" | "range" | "valueText" | "view" | "circle" | "circleTrack" | "circleRange" |
|
|
|
export interface ProgressCircleVariant { |
|
|
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined |
|
} |
|
|
|
export type ProgressCircleVariantProps = { |
|
[K in keyof ProgressCircleVariant]?: ConditionalValue<ProgressCircleVariant[K]> | undefined |
|
} |
|
|
|
export type ProgressCircleVariantMap = { |
|
[K in keyof ProgressCircleVariant]: Array<ProgressCircleVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type RadioCardSlot = |
|
| "root" |
|
| "label" |
|
| "item" |
|
| "itemText" |
|
| "itemControl" |
|
| "indicator" |
|
| "itemAddon" |
|
| "itemIndicator" |
|
| "itemContent" |
|
| "itemDescription" |
|
|
|
export interface RadioCardVariant { |
|
|
|
size?: "sm" | "md" | "lg" | undefined |
|
|
|
variant?: "surface" | "subtle" | "outline" | "solid" | undefined |
|
justify?: "start" | "end" | "center" | undefined |
|
|
|
align?: "start" | "end" | "center" | undefined |
|
|
|
orientation?: "vertical" | "horizontal" | undefined |
|
} |
|
|
|
export type RadioCardVariantProps = { |
|
[K in keyof RadioCardVariant]?: ConditionalValue<RadioCardVariant[K]> | undefined |
|
} |
|
|
|
export type RadioCardVariantMap = { |
|
[K in keyof RadioCardVariant]: Array<RadioCardVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type RadioGroupSlot = "root" | "label" | "item" | "itemText" | "itemControl" | "indicator" | "itemAddon" | "itemIndicator" |
|
|
|
export interface RadioGroupVariant { |
|
|
|
variant?: "outline" | "subtle" | "solid" | undefined |
|
|
|
size?: "xs" | "sm" | "md" | "lg" | undefined |
|
} |
|
|
|
export type RadioGroupVariantProps = { |
|
[K in keyof RadioGroupVariant]?: ConditionalValue<RadioGroupVariant[K]> | undefined |
|
} |
|
|
|
export type RadioGroupVariantMap = { |
|
[K in keyof RadioGroupVariant]: Array<RadioGroupVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type RatingGroupSlot = "root" | "label" | "item" | "control" | "itemIndicator" |
|
|
|
export interface RatingGroupVariant { |
|
|
|
size?: "xs" | "sm" | "md" | "lg" | undefined |
|
} |
|
|
|
export type RatingGroupVariantProps = { |
|
[K in keyof RatingGroupVariant]?: ConditionalValue<RatingGroupVariant[K]> | undefined |
|
} |
|
|
|
export type RatingGroupVariantMap = { |
|
[K in keyof RatingGroupVariant]: Array<RatingGroupVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type SegmentGroupSlot = "root" | "label" | "item" | "itemText" | "itemControl" | "indicator" |
|
|
|
export interface SegmentGroupVariant { |
|
|
|
size?: "xs" | "sm" | "md" | "lg" | undefined |
|
} |
|
|
|
export type SegmentGroupVariantProps = { |
|
[K in keyof SegmentGroupVariant]?: ConditionalValue<SegmentGroupVariant[K]> | undefined |
|
} |
|
|
|
export type SegmentGroupVariantMap = { |
|
[K in keyof SegmentGroupVariant]: Array<SegmentGroupVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type SelectSlot = |
|
| "label" |
|
| "positioner" |
|
| "trigger" |
|
| "indicator" |
|
| "clearTrigger" |
|
| "item" |
|
| "itemText" |
|
| "itemIndicator" |
|
| "itemGroup" |
|
| "itemGroupLabel" |
|
| "list" |
|
| "content" |
|
| "root" |
|
| "control" |
|
| "valueText" |
|
| "indicatorGroup" |
|
|
|
export interface SelectVariant { |
|
|
|
variant?: "outline" | "subtle" | undefined |
|
|
|
size?: "xs" | "sm" | "md" | "lg" | undefined |
|
} |
|
|
|
export type SelectVariantProps = { |
|
[K in keyof SelectVariant]?: ConditionalValue<SelectVariant[K]> | undefined |
|
} |
|
|
|
export type SelectVariantMap = { |
|
[K in keyof SelectVariant]: Array<SelectVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type ComboboxSlot = |
|
| "root" |
|
| "clearTrigger" |
|
| "content" |
|
| "control" |
|
| "input" |
|
| "item" |
|
| "itemGroup" |
|
| "itemGroupLabel" |
|
| "itemIndicator" |
|
| "itemText" |
|
| "label" |
|
| "list" |
|
| "positioner" |
|
| "trigger" |
|
| "indicatorGroup" |
|
| "empty" |
|
|
|
export interface ComboboxVariant { |
|
|
|
variant?: "outline" | "subtle" | "flushed" | undefined |
|
|
|
size?: "xs" | "sm" | "md" | "lg" | undefined |
|
} |
|
|
|
export type ComboboxVariantProps = { |
|
[K in keyof ComboboxVariant]?: ConditionalValue<ComboboxVariant[K]> | undefined |
|
} |
|
|
|
export type ComboboxVariantMap = { |
|
[K in keyof ComboboxVariant]: Array<ComboboxVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type SliderSlot = |
|
| "root" |
|
| "label" |
|
| "thumb" |
|
| "valueText" |
|
| "track" |
|
| "range" |
|
| "control" |
|
| "markerGroup" |
|
| "marker" |
|
| "draggingIndicator" |
|
| "markerIndicator" |
|
|
|
export interface SliderVariant { |
|
|
|
size?: "sm" | "md" | "lg" | undefined |
|
|
|
variant?: "outline" | "solid" | undefined |
|
|
|
orientation?: "vertical" | "horizontal" | undefined |
|
} |
|
|
|
export type SliderVariantProps = { |
|
[K in keyof SliderVariant]?: ConditionalValue<SliderVariant[K]> | undefined |
|
} |
|
|
|
export type SliderVariantMap = { |
|
[K in keyof SliderVariant]: Array<SliderVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type StatSlot = "root" | "label" | "helpText" | "valueText" | "valueUnit" | "indicator" |
|
|
|
export interface StatVariant { |
|
|
|
size?: "sm" | "md" | "lg" | undefined |
|
} |
|
|
|
export type StatVariantProps = { |
|
[K in keyof StatVariant]?: ConditionalValue<StatVariant[K]> | undefined |
|
} |
|
|
|
export type StatVariantMap = { |
|
[K in keyof StatVariant]: Array<StatVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type StepsSlot = |
|
| "root" |
|
| "list" |
|
| "item" |
|
| "trigger" |
|
| "indicator" |
|
| "separator" |
|
| "content" |
|
| "title" |
|
| "description" |
|
| "nextTrigger" |
|
| "prevTrigger" |
|
| "progress" |
|
|
|
export interface StepsVariant { |
|
|
|
orientation?: "vertical" | "horizontal" | undefined |
|
|
|
variant?: "solid" | "subtle" | undefined |
|
|
|
size?: "xs" | "sm" | "md" | "lg" | undefined |
|
} |
|
|
|
export type StepsVariantProps = { |
|
[K in keyof StepsVariant]?: ConditionalValue<StepsVariant[K]> | undefined |
|
} |
|
|
|
export type StepsVariantMap = { |
|
[K in keyof StepsVariant]: Array<StepsVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type SwitchSlot = "root" | "label" | "control" | "thumb" | "indicator" |
|
|
|
export interface SwitchVariant { |
|
|
|
variant?: "solid" | "raised" | undefined |
|
|
|
size?: "xs" | "sm" | "md" | "lg" | undefined |
|
} |
|
|
|
export type SwitchVariantProps = { |
|
[K in keyof SwitchVariant]?: ConditionalValue<SwitchVariant[K]> | undefined |
|
} |
|
|
|
export type SwitchVariantMap = { |
|
[K in keyof SwitchVariant]: Array<SwitchVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type TableSlot = "root" | "header" | "body" | "row" | "columnHeader" | "cell" | "footer" | "caption" |
|
|
|
export interface TableVariant { |
|
interactive?: boolean | undefined |
|
stickyHeader?: boolean | undefined |
|
striped?: boolean | undefined |
|
showColumnBorder?: boolean | undefined |
|
|
|
variant?: "line" | "outline" | undefined |
|
|
|
size?: "sm" | "md" | "lg" | undefined |
|
} |
|
|
|
export type TableVariantProps = { |
|
[K in keyof TableVariant]?: ConditionalValue<TableVariant[K]> | undefined |
|
} |
|
|
|
export type TableVariantMap = { |
|
[K in keyof TableVariant]: Array<TableVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type TabsSlot = "root" | "trigger" | "list" | "content" | "contentGroup" | "indicator" |
|
|
|
export interface TabsVariant { |
|
fitted?: boolean | undefined |
|
justify?: "start" | "center" | "end" | undefined |
|
|
|
size?: "sm" | "md" | "lg" | undefined |
|
|
|
variant?: "line" | "subtle" | "enclosed" | "outline" | "plain" | undefined |
|
} |
|
|
|
export type TabsVariantProps = { |
|
[K in keyof TabsVariant]?: ConditionalValue<TabsVariant[K]> | undefined |
|
} |
|
|
|
export type TabsVariantMap = { |
|
[K in keyof TabsVariant]: Array<TabsVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type TagSlot = "root" | "label" | "closeTrigger" | "startElement" | "endElement" |
|
|
|
export interface TagVariant { |
|
|
|
size?: "sm" | "md" | "lg" | "xl" | undefined |
|
|
|
variant?: "subtle" | "solid" | "outline" | "surface" | undefined |
|
} |
|
|
|
export type TagVariantProps = { |
|
[K in keyof TagVariant]?: ConditionalValue<TagVariant[K]> | undefined |
|
} |
|
|
|
export type TagVariantMap = { |
|
[K in keyof TagVariant]: Array<TagVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type ToastSlot = "root" | "title" | "description" | "indicator" | "closeTrigger" | "actionTrigger" |
|
|
|
export interface ToastVariant {} |
|
|
|
export type ToastVariantProps = { |
|
[K in keyof ToastVariant]?: ConditionalValue<ToastVariant[K]> | undefined |
|
} |
|
|
|
export type ToastVariantMap = { |
|
[K in keyof ToastVariant]: Array<ToastVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type TooltipSlot = "trigger" | "arrow" | "arrowTip" | "positioner" | "content" |
|
|
|
export interface TooltipVariant {} |
|
|
|
export type TooltipVariantProps = { |
|
[K in keyof TooltipVariant]?: ConditionalValue<TooltipVariant[K]> | undefined |
|
} |
|
|
|
export type TooltipVariantMap = { |
|
[K in keyof TooltipVariant]: Array<TooltipVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type StatusSlot = "root" | "indicator" |
|
|
|
export interface StatusVariant { |
|
|
|
size?: "sm" | "md" | "lg" | undefined |
|
} |
|
|
|
export type StatusVariantProps = { |
|
[K in keyof StatusVariant]?: ConditionalValue<StatusVariant[K]> | undefined |
|
} |
|
|
|
export type StatusVariantMap = { |
|
[K in keyof StatusVariant]: Array<StatusVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type TimelineSlot = "root" | "item" | "content" | "separator" | "indicator" | "connector" | "title" | "description" |
|
|
|
export interface TimelineVariant { |
|
|
|
variant?: "subtle" | "solid" | "outline" | "plain" | undefined |
|
|
|
size?: "sm" | "md" | "lg" | "xl" | undefined |
|
} |
|
|
|
export type TimelineVariantProps = { |
|
[K in keyof TimelineVariant]?: ConditionalValue<TimelineVariant[K]> | undefined |
|
} |
|
|
|
export type TimelineVariantMap = { |
|
[K in keyof TimelineVariant]: Array<TimelineVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type ColorPickerSlot = |
|
| "root" |
|
| "label" |
|
| "control" |
|
| "trigger" |
|
| "positioner" |
|
| "content" |
|
| "area" |
|
| "areaThumb" |
|
| "valueText" |
|
| "areaBackground" |
|
| "channelSlider" |
|
| "channelSliderLabel" |
|
| "channelSliderTrack" |
|
| "channelSliderThumb" |
|
| "channelSliderValueText" |
|
| "channelInput" |
|
| "transparencyGrid" |
|
| "swatchGroup" |
|
| "swatchTrigger" |
|
| "swatchIndicator" |
|
| "swatch" |
|
| "eyeDropperTrigger" |
|
| "formatTrigger" |
|
| "formatSelect" |
|
| "view" |
|
| "channelText" |
|
|
|
export interface ColorPickerVariant { |
|
|
|
size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined |
|
|
|
variant?: "outline" | "subtle" | undefined |
|
} |
|
|
|
export type ColorPickerVariantProps = { |
|
[K in keyof ColorPickerVariant]?: ConditionalValue<ColorPickerVariant[K]> | undefined |
|
} |
|
|
|
export type ColorPickerVariantMap = { |
|
[K in keyof ColorPickerVariant]: Array<ColorPickerVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type QrCodeSlot = "root" | "frame" | "pattern" | "overlay" | "downloadTrigger" |
|
|
|
export interface QrCodeVariant { |
|
|
|
size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "full" | undefined |
|
} |
|
|
|
export type QrCodeVariantProps = { |
|
[K in keyof QrCodeVariant]?: ConditionalValue<QrCodeVariant[K]> | undefined |
|
} |
|
|
|
export type QrCodeVariantMap = { |
|
[K in keyof QrCodeVariant]: Array<QrCodeVariant[K]> |
|
} |
|
|
|
|
|
|
|
export type TreeViewSlot = |
|
| "branch" |
|
| "branchContent" |
|
| "branchControl" |
|
| "branchIndentGuide" |
|
| "branchIndicator" |
|
| "branchText" |
|
| "branchTrigger" |
|
| "item" |
|
| "itemIndicator" |
|
| "itemText" |
|
| "label" |
|
| "nodeCheckbox" |
|
| "root" |
|
| "tree" |
|
| "branchBody" |
|
|
|
export interface TreeViewVariant { |
|
|
|
size?: "md" | "sm" | "xs" | undefined |
|
|
|
variant?: "subtle" | "solid" | "surface" | undefined |
|
animateContent?: boolean | undefined |
|
} |
|
|
|
export type TreeViewVariantProps = { |
|
[K in keyof TreeViewVariant]?: ConditionalValue<TreeViewVariant[K]> | undefined |
|
} |
|
|
|
export type TreeViewVariantMap = { |
|
[K in keyof TreeViewVariant]: Array<TreeViewVariant[K]> |
|
} |
|
|
|
export interface ConfigSlotRecipes { |
|
accordion: SystemSlotRecipeFn<AccordionSlot, AccordionVariantProps, AccordionVariantMap> |
|
actionBar: SystemSlotRecipeFn<ActionBarSlot, ActionBarVariantProps, ActionBarVariantMap> |
|
alert: SystemSlotRecipeFn<AlertSlot, AlertVariantProps, AlertVariantMap> |
|
avatar: SystemSlotRecipeFn<AvatarSlot, AvatarVariantProps, AvatarVariantMap> |
|
blockquote: SystemSlotRecipeFn<BlockquoteSlot, BlockquoteVariantProps, BlockquoteVariantMap> |
|
breadcrumb: SystemSlotRecipeFn<BreadcrumbSlot, BreadcrumbVariantProps, BreadcrumbVariantMap> |
|
card: SystemSlotRecipeFn<CardSlot, CardVariantProps, CardVariantMap> |
|
checkbox: SystemSlotRecipeFn<CheckboxSlot, CheckboxVariantProps, CheckboxVariantMap> |
|
checkboxCard: SystemSlotRecipeFn<CheckboxCardSlot, CheckboxCardVariantProps, CheckboxCardVariantMap> |
|
collapsible: SystemSlotRecipeFn<CollapsibleSlot, CollapsibleVariantProps, CollapsibleVariantMap> |
|
dataList: SystemSlotRecipeFn<DataListSlot, DataListVariantProps, DataListVariantMap> |
|
dialog: SystemSlotRecipeFn<DialogSlot, DialogVariantProps, DialogVariantMap> |
|
drawer: SystemSlotRecipeFn<DrawerSlot, DrawerVariantProps, DrawerVariantMap> |
|
editable: SystemSlotRecipeFn<EditableSlot, EditableVariantProps, EditableVariantMap> |
|
emptyState: SystemSlotRecipeFn<EmptyStateSlot, EmptyStateVariantProps, EmptyStateVariantMap> |
|
field: SystemSlotRecipeFn<FieldSlot, FieldVariantProps, FieldVariantMap> |
|
fieldset: SystemSlotRecipeFn<FieldsetSlot, FieldsetVariantProps, FieldsetVariantMap> |
|
fileUpload: SystemSlotRecipeFn<FileUploadSlot, FileUploadVariantProps, FileUploadVariantMap> |
|
hoverCard: SystemSlotRecipeFn<HoverCardSlot, HoverCardVariantProps, HoverCardVariantMap> |
|
list: SystemSlotRecipeFn<ListSlot, ListVariantProps, ListVariantMap> |
|
menu: SystemSlotRecipeFn<MenuSlot, MenuVariantProps, MenuVariantMap> |
|
nativeSelect: SystemSlotRecipeFn<NativeSelectSlot, NativeSelectVariantProps, NativeSelectVariantMap> |
|
numberInput: SystemSlotRecipeFn<NumberInputSlot, NumberInputVariantProps, NumberInputVariantMap> |
|
pinInput: SystemSlotRecipeFn<PinInputSlot, PinInputVariantProps, PinInputVariantMap> |
|
popover: SystemSlotRecipeFn<PopoverSlot, PopoverVariantProps, PopoverVariantMap> |
|
progress: SystemSlotRecipeFn<ProgressSlot, ProgressVariantProps, ProgressVariantMap> |
|
progressCircle: SystemSlotRecipeFn<ProgressCircleSlot, ProgressCircleVariantProps, ProgressCircleVariantMap> |
|
radioCard: SystemSlotRecipeFn<RadioCardSlot, RadioCardVariantProps, RadioCardVariantMap> |
|
radioGroup: SystemSlotRecipeFn<RadioGroupSlot, RadioGroupVariantProps, RadioGroupVariantMap> |
|
ratingGroup: SystemSlotRecipeFn<RatingGroupSlot, RatingGroupVariantProps, RatingGroupVariantMap> |
|
segmentGroup: SystemSlotRecipeFn<SegmentGroupSlot, SegmentGroupVariantProps, SegmentGroupVariantMap> |
|
select: SystemSlotRecipeFn<SelectSlot, SelectVariantProps, SelectVariantMap> |
|
combobox: SystemSlotRecipeFn<ComboboxSlot, ComboboxVariantProps, ComboboxVariantMap> |
|
slider: SystemSlotRecipeFn<SliderSlot, SliderVariantProps, SliderVariantMap> |
|
stat: SystemSlotRecipeFn<StatSlot, StatVariantProps, StatVariantMap> |
|
steps: SystemSlotRecipeFn<StepsSlot, StepsVariantProps, StepsVariantMap> |
|
switch: SystemSlotRecipeFn<SwitchSlot, SwitchVariantProps, SwitchVariantMap> |
|
table: SystemSlotRecipeFn<TableSlot, TableVariantProps, TableVariantMap> |
|
tabs: SystemSlotRecipeFn<TabsSlot, TabsVariantProps, TabsVariantMap> |
|
tag: SystemSlotRecipeFn<TagSlot, TagVariantProps, TagVariantMap> |
|
toast: SystemSlotRecipeFn<ToastSlot, ToastVariantProps, ToastVariantMap> |
|
tooltip: SystemSlotRecipeFn<TooltipSlot, TooltipVariantProps, TooltipVariantMap> |
|
status: SystemSlotRecipeFn<StatusSlot, StatusVariantProps, StatusVariantMap> |
|
timeline: SystemSlotRecipeFn<TimelineSlot, TimelineVariantProps, TimelineVariantMap> |
|
colorPicker: SystemSlotRecipeFn<ColorPickerSlot, ColorPickerVariantProps, ColorPickerVariantMap> |
|
qrCode: SystemSlotRecipeFn<QrCodeSlot, QrCodeVariantProps, QrCodeVariantMap> |
|
treeView: SystemSlotRecipeFn<TreeViewSlot, TreeViewVariantProps, TreeViewVariantMap> |
|
} |
|
|
|
export interface ConfigRecipeSlots { |
|
accordion: AccordionSlot |
|
actionBar: ActionBarSlot |
|
alert: AlertSlot |
|
avatar: AvatarSlot |
|
blockquote: BlockquoteSlot |
|
breadcrumb: BreadcrumbSlot |
|
card: CardSlot |
|
checkbox: CheckboxSlot |
|
checkboxCard: CheckboxCardSlot |
|
collapsible: CollapsibleSlot |
|
dataList: DataListSlot |
|
dialog: DialogSlot |
|
drawer: DrawerSlot |
|
editable: EditableSlot |
|
emptyState: EmptyStateSlot |
|
field: FieldSlot |
|
fieldset: FieldsetSlot |
|
fileUpload: FileUploadSlot |
|
hoverCard: HoverCardSlot |
|
list: ListSlot |
|
menu: MenuSlot |
|
nativeSelect: NativeSelectSlot |
|
numberInput: NumberInputSlot |
|
pinInput: PinInputSlot |
|
popover: PopoverSlot |
|
progress: ProgressSlot |
|
progressCircle: ProgressCircleSlot |
|
radioCard: RadioCardSlot |
|
radioGroup: RadioGroupSlot |
|
ratingGroup: RatingGroupSlot |
|
segmentGroup: SegmentGroupSlot |
|
select: SelectSlot |
|
combobox: ComboboxSlot |
|
slider: SliderSlot |
|
stat: StatSlot |
|
steps: StepsSlot |
|
switch: SwitchSlot |
|
table: TableSlot |
|
tabs: TabsSlot |
|
tag: TagSlot |
|
toast: ToastSlot |
|
tooltip: TooltipSlot |
|
status: StatusSlot |
|
timeline: TimelineSlot |
|
colorPicker: ColorPickerSlot |
|
qrCode: QrCodeSlot |
|
treeView: TreeViewSlot |
|
} |
|
|
|
export type SlotRecipeRecord<T, K> = T extends keyof ConfigRecipeSlots ? Record<ConfigRecipeSlots[T], K> : Record<string, K> |
|
|
|
export type SlotRecipeProps<T> = T extends keyof ConfigSlotRecipes |
|
? ConfigSlotRecipes[T]["__type"] & { recipe?: SlotRecipeDefinition | undefined } |
|
: { recipe?: SlotRecipeDefinition | undefined } |
|
|
|
export type RecipeProps<T> = T extends keyof ConfigRecipes |
|
? ConfigRecipes[T]["__type"] & { recipe?: RecipeDefinition | undefined } |
|
: { recipe?: RecipeDefinition | undefined } |
|
|