{"version":3,"file":"chip.types.mjs","names":[],"sources":["../../../../package/common/chip/chip.types.ts"],"sourcesContent":["import type { HtmlProps, SlotClassNames, SlotStyles } from '../types/slots.types';\nimport type { ColorValue } from '../themeProvider/color.types';\n\n/** How much the chip stands out. Independent of its colour. */\nexport enum ChipStyleType {\n  /** Solid fill. */\n  Filled = 'filled',\n  /** A light tint of the colour behind text in the colour. The default. */\n  Light = 'light',\n  /** Border and text in the colour, no fill. */\n  Outlined = 'outlined',\n}\n\n/** Text Chip renders of its own, for translating it. */\nexport interface ChipLabels {\n  /** The remove button, read out by screen readers (default `Remove`). */\n  remove?: string;\n}\n\nexport type ChipSlots = 'root' | 'inner' | 'thumbnail' | 'text' | 'removeIcon';\n\nexport interface ChipProps extends HtmlProps {\n  className?: string;\n  text?: string;\n  thumbnail?: React.ReactNode;\n  styleType?: ChipStyleType;\n  /** A `ThemeColor` (default `Neutral`) or any CSS colour, such as `'var(--brand)'`. */\n  color?: ColorValue;\n  showRemoveIcon?: boolean;\n  /** Accessible name for the remove button. Default `'Remove'`. */\n  onClick?: () => void;\n  onRemove?: () => void;\n  /** Overrides the text Chip renders of its own. Merged per key. */\n  labels?: ChipLabels;\n  /** Classes for the inner elements. See `ChipSlots`. */\n  classNames?: SlotClassNames<ChipSlots>;\n  /** Inline styles for the inner elements. See `ChipSlots`. */\n  styles?: SlotStyles<ChipSlots>;\n}\n\nexport interface ChipContainerProps extends HtmlProps {\n  className?: string;\n  children?: React.ReactNode;\n  inline?: boolean;\n}\n"],"mappings":"aAIA,IAAY,EAAL,SAAA,EAAA,OAEL,GAAA,OAAA,SAEA,EAAA,MAAA,QAEA,EAAA,SAAA,YACF,EAAA,CAAA,CAAA"}