/// import type { ActionArray } from "./engine/forwards/forwardActions"; import type { Stitch } from "./stitches.config"; import type { commonTheme } from "./theme/common/commonTheme"; import type { CSS } from "@stitches/core"; import type { DeepPartial } from "../types/DeepPartial"; import type { StitchUtils } from "./stiches.utils"; export type StitchesConfig = typeof Stitch.config; export type StitchesTheme = typeof Stitch.theme; export type StitchCss = CSS; export type ComponentCommonProps = { as?: keyof JSX.IntrinsicElements; css?: StitchCss; }; export type BreakpointVariants = keyof typeof commonTheme.theme.breakpoints; export type BreakpointCombo = { [key in BreakpointVariants]?: T; }; export type BreakpointProperty = BreakpointCombo | T; export type StitchUtilsType = typeof StitchUtils; export type DefaultTheme = StitchesTheme; export type VariantThemeFunction = Record>>; export type KabukiUIThemeOverride = DeepPartial; export interface Override { props: CSS; } export interface HeadingStyle { fontSize: number | string | undefined; lineHeight: number | string | undefined; } export interface StitchUtilsFunctions { } export interface KabukiUITheme { colorScheme: "light" | "dark"; colors: DefaultTheme["colors"]; spaces: DefaultTheme["spaces"]; fonts: DefaultTheme["fonts"]; breakpoints: DefaultTheme["breakpoints"]; transitions: DefaultTheme["transitions"]; sizes: DefaultTheme["sizes"]; zIndexes: DefaultTheme["zIndexes"]; } export type AdornmentProps = { /** * Adornment padding * @default 1 * @type {number | string} */ adornmentPadding?: BreakpointProperty; }; export type SizeVariants = keyof StitchesTheme["sizes"]; export type SizeProp = BreakpointProperty; export type DefaultProps = { /** Used for custom classes to be applied to the button e.g. Tailwind classes */ className?: string; /** Used for custom theming the component */ css?: StitchCss; /** Used for components to bind to elements */ element?: T; /** Used for forwarding actions from component */ use?: ActionArray; }; export type SvelteAnimationTypes = "fade" | "blur" | "crossfade" | "fly" | "slide" | "scale" | "draw"; export type SvelteAnimationsEasing = "linear" | "backIn" | "backOut" | "backInOut" | "bounceIn" | "bounceOut" | "bounceInOut" | "circIn" | "circOut" | "circInOut" | "cubicIn" | "cubicOut" | "cubicInOut" | "elasticIn" | "elasticOut" | "elasticInOut" | "expoIn" | "expoOut" | "expoInOut" | "quadIn" | "quadOut" | "quadInOut" | "quartIn" | "quartOut" | "quartInOut" | "quintIn" | "quintOut" | "quintInOut" | "sineIn" | "sineOut" | "sineInOut";