File: constants.ts

package info (click to toggle)
node-react-toastify 9.1.2%2B~1.2.1-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,088 kB
  • sloc: javascript: 260; makefile: 28
file content (45 lines) | stat: -rw-r--r-- 808 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import { Bounce, Slide, Flip, Zoom } from '../../src/index';

export const flags = [
  {
    id: 'disableAutoClose',
    label: 'Disable auto-close'
  },
  {
    id: 'hideProgressBar',
    label: 'Hide progress bar(less fanciness!)'
  },
  {
    id: 'newestOnTop',
    label: 'Newest on top*'
  },
  {
    id: 'closeOnClick',
    label: 'Close on click'
  },
  {
    id: 'pauseOnHover',
    label: 'Pause delay on hover'
  },
  {
    id: 'pauseOnFocusLoss',
    label: 'Pause toast when the window loses focus'
  },
  {
    id: 'rtl',
    label: 'Right to left layout*'
  },
  {
    id: 'draggable',
    label: 'Allow to drag and close the toast'
  }
];

export const transitions = {
  bounce: Bounce,
  slide: Slide,
  zoom: Zoom,
  flip: Flip
};

export const themes = <const>['light', 'dark', 'colored'];