You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

constants.js 664B

1234567891011121314151617181920212223242526272829303132
  1. // @flow
  2. /**
  3. * The standard time when auto-disappearing notifications should disappear.
  4. */
  5. export const NOTIFICATION_TIMEOUT = 2500;
  6. /**
  7. * The set of possible notification types.
  8. *
  9. * @enum {string}
  10. */
  11. export const NOTIFICATION_TYPE = {
  12. ERROR: 'error',
  13. INFO: 'info',
  14. NORMAL: 'normal',
  15. SUCCESS: 'success',
  16. WARNING: 'warning'
  17. };
  18. /**
  19. * A mapping of notification type to priority of display.
  20. *
  21. * @enum {number}
  22. */
  23. export const NOTIFICATION_TYPE_PRIORITIES = {
  24. [NOTIFICATION_TYPE.ERROR]: 5,
  25. [NOTIFICATION_TYPE.INFO]: 3,
  26. [NOTIFICATION_TYPE.NORMAL]: 3,
  27. [NOTIFICATION_TYPE.SUCCESS]: 3,
  28. [NOTIFICATION_TYPE.WARNING]: 4
  29. };