constants.ts 515 B

12345678910111213141516171819
  1. import { BASE_CLASS_PREFIX } from '../base/constants';
  2. const cssClasses = {
  3. WRAPPER: `${BASE_CLASS_PREFIX}-notification-wrapper`,
  4. LIST: `${BASE_CLASS_PREFIX}-notification-list`,
  5. NOTICE: `${BASE_CLASS_PREFIX}-notification-notice`
  6. };
  7. const strings = {
  8. types: ['warning', 'success', 'info', 'error', 'default'],
  9. themes: ['normal', 'light'],
  10. directions: ['ltr', 'rtl'] as const,
  11. };
  12. const numbers = {
  13. duration: 3 // default close time, unit: s
  14. };
  15. export { cssClasses, strings, numbers };