{"version":3,"file":"types.mjs","sources":["../../../../../../../packages/components/checkbox/src/types.ts"],"sourcesContent":["import type { ComputedRef, InjectionKey } from 'vue'\nimport type { CheckboxProps } from './checkbox'\nimport type { Numeric } from '@xzx-design/utils'\nimport type { CheckboxGroupProps } from './checkbox-group'\n\nexport type CheckboxShape = CheckerShape\nexport type CheckboxLabelPosition = CheckerLabelPosition\n\nexport type CheckboxExpose = {\n  toggle: (newValue?: boolean) => void\n  /** @private */\n  props: CheckboxProps\n  /** @private */\n  checked: ComputedRef<boolean>\n}\n\nexport type CheckboxThemeVars = {\n  checkboxSize?: string\n  checkboxBorderColor?: string\n  checkboxDuration?: string\n  checkboxLabelMargin?: string\n  checkboxLabelColor?: string\n  checkboxCheckedIconColor?: string\n  checkboxDisabledIconColor?: string\n  checkboxDisabledLabelColor?: string\n  checkboxDisabledBackground?: string\n}\n\nexport type CheckerShape = 'square' | 'round'\nexport type CheckerDirection = 'horizontal' | 'vertical'\nexport type CheckerLabelPosition = 'left' | 'right'\nexport type CheckerParent = {\n  props: {\n    max?: Numeric\n    // shape?: CheckerShape | RadioShape\n    shape?: CheckerShape\n    disabled?: boolean\n    iconSize?: Numeric\n    direction?: CheckerDirection\n    modelValue?: unknown | unknown[]\n    checkedColor?: string\n  }\n}\n\nexport type CheckboxGroupDirection = CheckerDirection\n\nexport type CheckboxGroupToggleAllOptions =\n  | boolean\n  | {\n      checked?: boolean\n      skipDisabled?: boolean\n    }\n\nexport type CheckboxGroupExpose = {\n  toggleAll: (options?: CheckboxGroupToggleAllOptions) => void\n}\n\nexport type CheckboxGroupProvide = CheckerParent & {\n  props: CheckboxGroupProps\n  updateValue: (value: unknown[]) => void\n}\n\nexport const CHECKBOX_GROUP_KEY: InjectionKey<CheckboxGroupProvide> =\n  Symbol('xzxCheckboxGroup')\n"],"names":[],"mappings":"AA8Da,MAAA,kBAAA,GACX,OAAO,kBAAkB;;;;"}