{"version":3,"file":"OptionContext.cjs","sources":["../../../../../src/components/Select/common/OptionContext.ts"],"sourcesContent":["import { createContext, KeyboardEvent, MouseEvent } from 'react';\nimport { SelectionType } from './types';\n\ntype OptionContextProps = {\n  search: string;\n  highlighted?: string;\n  updateHighlighted: (value: string) => void;\n  isHidden: (value?: string) => boolean;\n  selectedValues: string[];\n  onSelect: (\n    value: string,\n    type?: SelectionType,\n    evt?: KeyboardEvent<HTMLElement> | MouseEvent<HTMLElement>\n  ) => void;\n  showCheck?: boolean;\n};\n\nexport const OptionContext = createContext<OptionContextProps>({\n  search: '',\n  selectedValues: [],\n  updateHighlighted: () => null,\n  onSelect: () => null,\n  isHidden: () => true,\n});\n"],"names":["createContext"],"mappings":";;;;;;AAiBO,MAAM,gBAAgBA,mBAAA,CAAkC;AAAA,EAC7D,MAAA,EAAQ,EAAA;AAAA,EACR,gBAAgB,EAAC;AAAA,EACjB,mBAAmB,MAAM,IAAA;AAAA,EACzB,UAAU,MAAM,IAAA;AAAA,EAChB,UAAU,MAAM;AAClB,CAAC;;"}