@legion-ui-kit/react-core
Version:
To install the package into your project:
1 lines • 1.33 kB
Source Map (JSON)
{"version":3,"file":"Alert.constant.cjs","sources":["../../../../src/components/Alert/Alert.constant.ts"],"sourcesContent":["// Types\r\nimport type { ReactNode } from 'react';\r\nimport type { TAlertColor, TAlertProps } from './Alert.type';\r\n\r\n// Components\r\nimport { AlertIconError, AlertIconInformation, AlertIconSuccess, AlertIconWarning } from './Alert.icons';\r\n\r\nexport const ALERT_COLORS: TAlertColor[] = ['success', 'warning', 'error', 'information']\r\nexport const ALERT_COLOR: { [key in TAlertColor]: key } = {\r\n\tsuccess: 'success',\r\n\twarning: 'warning',\r\n\terror: 'error',\r\n\tinformation: 'information'\r\n}\r\n\r\nexport const ALERT_DEFAULT_PROPS: TAlertProps = {\r\n\tcolor: ALERT_COLOR.information,\r\n}\r\n\r\nexport const DEFAULT_ICON: { [key in TAlertColor]: ReactNode } = {\r\n\tsuccess: AlertIconSuccess,\r\n\twarning: AlertIconWarning,\r\n\terror: AlertIconError,\r\n\tinformation: AlertIconInformation\r\n}\r\n"],"names":["ALERT_COLOR","information","ALERT_DEFAULT_PROPS","color","DEFAULT_ICON","success","AlertIconSuccess","warning","AlertIconWarning","error","AlertIconError","AlertIconInformation"],"mappings":"gDAOO,MACMA,EAA6C,CAIzDC,YAAa,eAGDC,EAAmC,CAC/CC,MAAOH,EAAYC,aAGPG,EAAoD,CAChEC,QAASC,EAAAA,iBACTC,QAASC,EAAAA,iBACTC,MAAOC,EAAAA,eACPT,YAAaU,EAAAA,iEAhB6B,CAAC,UAAW,UAAW,QAAS"}