{"version":3,"file":"symbol.mjs","sources":["../../../components/button/symbol.ts"],"sourcesContent":["import type { InjectionKey } from 'vue'\r\nimport type { ComponentSize } from '@vexip-ui/config'\r\n\r\nexport type ButtonType = 'default' | 'primary' | 'info' | 'success' | 'warning' | 'error'\r\nexport type ButtonAttrType = 'button' | 'submit' | 'reset'\r\n\r\nexport interface ButtonState {\r\n  index: number,\r\n  isLast: boolean,\r\n}\r\n\r\nexport interface ButtonGroupState {\r\n  type: ButtonType,\r\n  size: ComponentSize,\r\n  increaseItem: (item: ButtonState) => void,\r\n  decreaseItem: (item: ButtonState) => void,\r\n  refreshIndexes: () => void,\r\n}\r\n\r\nexport interface ButtonSlots {\r\n  default?: () => any,\r\n  icon?: () => any,\r\n  loading?: () => any,\r\n}\r\n\r\nexport const GROUP_STATE = '__VXP_BUTTON_GROUP_STATE' as unknown as InjectionKey<ButtonGroupState>\r\n\r\nexport const buttonTypes = Object.freeze<ButtonType[]>([\r\n  'default',\r\n  'primary',\r\n  'info',\r\n  'success',\r\n  'warning',\r\n  'error',\r\n])\r\n"],"names":["GROUP_STATE","buttonTypes"],"mappings":"AAyBO,MAAMA,IAAc,4BAEdC,IAAc,OAAO,OAAqB;AAAA,EACrD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;"}