no-frills-ui 0.0.12 → 0.0.14-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. package/dist/index.js +2860 -2939
  2. package/dist/index.js.map +1 -1
  3. package/lib-esm/components/Accordion/Accordion.d.ts +2 -2
  4. package/lib-esm/components/Accordion/Accordion.js +8 -7
  5. package/lib-esm/components/Accordion/Accordion.js.map +1 -1
  6. package/lib-esm/components/Accordion/AccordionStep.d.ts +10 -5
  7. package/lib-esm/components/Accordion/AccordionStep.js +3 -12
  8. package/lib-esm/components/Accordion/AccordionStep.js.map +1 -1
  9. package/lib-esm/components/Badge/Badge.d.ts +5 -3
  10. package/lib-esm/components/Badge/Badge.js +9 -3
  11. package/lib-esm/components/Badge/Badge.js.map +1 -1
  12. package/lib-esm/components/Button/ActionButton.d.ts +4 -2
  13. package/lib-esm/components/Button/Button.d.ts +4 -2
  14. package/lib-esm/components/Button/IconButton.d.ts +4 -2
  15. package/lib-esm/components/Button/LinkButton.d.ts +4 -2
  16. package/lib-esm/components/Button/RaisedButton.d.ts +4 -2
  17. package/lib-esm/components/Card/Card.d.ts +4 -2
  18. package/lib-esm/components/Card/index.d.ts +1 -0
  19. package/lib-esm/components/Card/index.js +1 -0
  20. package/lib-esm/components/Card/index.js.map +1 -1
  21. package/lib-esm/components/Chip/Chip.d.ts +6 -0
  22. package/lib-esm/components/Chip/Chip.js +47 -0
  23. package/lib-esm/components/Chip/Chip.js.map +1 -0
  24. package/lib-esm/components/Chip/index.d.ts +1 -0
  25. package/lib-esm/components/Chip/index.js +2 -0
  26. package/lib-esm/components/Chip/index.js.map +1 -0
  27. package/lib-esm/components/Dialog/AlertDialog.d.ts +3 -3
  28. package/lib-esm/components/Dialog/AlertDialog.js +5 -7
  29. package/lib-esm/components/Dialog/AlertDialog.js.map +1 -1
  30. package/lib-esm/components/Dialog/ConfirmDialog.d.ts +2 -2
  31. package/lib-esm/components/Dialog/ConfirmDialog.js +4 -7
  32. package/lib-esm/components/Dialog/ConfirmDialog.js.map +1 -1
  33. package/lib-esm/components/Dialog/Dialog.d.ts +8 -11
  34. package/lib-esm/components/Dialog/Dialog.js +3 -2
  35. package/lib-esm/components/Dialog/Dialog.js.map +1 -1
  36. package/lib-esm/components/Dialog/PromptDialog.d.ts +2 -2
  37. package/lib-esm/components/Dialog/PromptDialog.js +4 -11
  38. package/lib-esm/components/Dialog/PromptDialog.js.map +1 -1
  39. package/lib-esm/components/DragAndDrop/DragAndDrop.d.ts +18 -0
  40. package/lib-esm/components/DragAndDrop/DragAndDrop.js +25 -0
  41. package/lib-esm/components/DragAndDrop/DragAndDrop.js.map +1 -0
  42. package/lib-esm/components/DragAndDrop/DragItem.d.ts +9 -0
  43. package/lib-esm/components/DragAndDrop/DragItem.js +49 -0
  44. package/lib-esm/components/DragAndDrop/DragItem.js.map +1 -0
  45. package/lib-esm/components/DragAndDrop/index.d.ts +2 -0
  46. package/lib-esm/components/DragAndDrop/index.js +3 -0
  47. package/lib-esm/components/DragAndDrop/index.js.map +1 -0
  48. package/lib-esm/components/DragAndDrop/types.d.ts +9 -0
  49. package/lib-esm/components/DragAndDrop/types.js +8 -0
  50. package/lib-esm/components/DragAndDrop/types.js.map +1 -0
  51. package/lib-esm/components/Drawer/Drawer.d.ts +3 -3
  52. package/lib-esm/components/Drawer/Drawer.js +5 -3
  53. package/lib-esm/components/Drawer/Drawer.js.map +1 -1
  54. package/lib-esm/components/Groups/Group.d.ts +1 -1
  55. package/lib-esm/components/Groups/Group.js +15 -7
  56. package/lib-esm/components/Groups/Group.js.map +1 -1
  57. package/lib-esm/components/Groups/GroupLabel.d.ts +4 -2
  58. package/lib-esm/components/Input/Checkbox.d.ts +2 -2
  59. package/lib-esm/components/Input/Checkbox.js +4 -4
  60. package/lib-esm/components/Input/Checkbox.js.map +1 -1
  61. package/lib-esm/components/Input/Dropdown.d.ts +17 -19
  62. package/lib-esm/components/Input/Dropdown.js +37 -23
  63. package/lib-esm/components/Input/Dropdown.js.map +1 -1
  64. package/lib-esm/components/Input/Input.d.ts +5 -2
  65. package/lib-esm/components/Input/Input.js +2 -4
  66. package/lib-esm/components/Input/Input.js.map +1 -1
  67. package/lib-esm/components/Input/Radio.d.ts +2 -1
  68. package/lib-esm/components/Input/Radio.js +2 -4
  69. package/lib-esm/components/Input/Radio.js.map +1 -1
  70. package/lib-esm/components/Input/RadioButton.d.ts +5 -2
  71. package/lib-esm/components/Input/RadioButton.js +2 -4
  72. package/lib-esm/components/Input/RadioButton.js.map +1 -1
  73. package/lib-esm/components/Input/Select.d.ts +1 -1
  74. package/lib-esm/components/Input/Select.js +4 -9
  75. package/lib-esm/components/Input/Select.js.map +1 -1
  76. package/lib-esm/components/Input/TextArea.d.ts +1 -1
  77. package/lib-esm/components/Input/TextArea.js +3 -5
  78. package/lib-esm/components/Input/TextArea.js.map +1 -1
  79. package/lib-esm/components/Input/Toggle.d.ts +3 -2
  80. package/lib-esm/components/Input/Toggle.js +2 -5
  81. package/lib-esm/components/Input/Toggle.js.map +1 -1
  82. package/lib-esm/components/Menu/Menu.d.ts +4 -9
  83. package/lib-esm/components/Menu/Menu.js +6 -5
  84. package/lib-esm/components/Menu/Menu.js.map +1 -1
  85. package/lib-esm/components/Menu/MenuContext.d.ts +0 -1
  86. package/lib-esm/components/Menu/MenuItem.d.ts +3 -3
  87. package/lib-esm/components/Menu/MenuItem.js +4 -5
  88. package/lib-esm/components/Menu/MenuItem.js.map +1 -1
  89. package/lib-esm/components/Modal/Modal.d.ts +3 -3
  90. package/lib-esm/components/Modal/Modal.js +5 -3
  91. package/lib-esm/components/Modal/Modal.js.map +1 -1
  92. package/lib-esm/components/Notification/Notification.d.ts +4 -36
  93. package/lib-esm/components/Notification/Notification.js +4 -19
  94. package/lib-esm/components/Notification/Notification.js.map +1 -1
  95. package/lib-esm/components/Notification/NotificationManager.d.ts +2 -2
  96. package/lib-esm/components/Notification/NotificationManager.js +7 -18
  97. package/lib-esm/components/Notification/NotificationManager.js.map +1 -1
  98. package/lib-esm/components/Notification/index.d.ts +2 -1
  99. package/lib-esm/components/Notification/index.js +2 -1
  100. package/lib-esm/components/Notification/index.js.map +1 -1
  101. package/lib-esm/components/Notification/style.d.ts +38 -17
  102. package/lib-esm/components/Notification/style.js +1 -1
  103. package/lib-esm/components/Notification/style.js.map +1 -1
  104. package/lib-esm/components/Notification/types.d.ts +34 -0
  105. package/lib-esm/components/Notification/types.js +18 -0
  106. package/lib-esm/components/Notification/types.js.map +1 -0
  107. package/lib-esm/components/Popover/Popover.d.ts +1 -1
  108. package/lib-esm/components/Popover/Popover.js +15 -7
  109. package/lib-esm/components/Popover/Popover.js.map +1 -1
  110. package/lib-esm/components/Spinner/Spinner.d.ts +2 -2
  111. package/lib-esm/components/Spinner/Spinner.js +2 -2
  112. package/lib-esm/components/Spinner/Spinner.js.map +1 -1
  113. package/lib-esm/components/Stepper/Step.d.ts +17 -0
  114. package/lib-esm/components/Stepper/Step.js +27 -0
  115. package/lib-esm/components/Stepper/Step.js.map +1 -0
  116. package/lib-esm/components/Stepper/Stepper.d.ts +19 -0
  117. package/lib-esm/components/Stepper/Stepper.js +112 -0
  118. package/lib-esm/components/Stepper/Stepper.js.map +1 -0
  119. package/lib-esm/components/Stepper/index.d.ts +3 -0
  120. package/lib-esm/components/Stepper/index.js +4 -0
  121. package/lib-esm/components/Stepper/index.js.map +1 -0
  122. package/lib-esm/components/Tabs/Tab.d.ts +1 -1
  123. package/lib-esm/components/Tabs/Tab.js +2 -2
  124. package/lib-esm/components/Tabs/Tab.js.map +1 -1
  125. package/lib-esm/components/Tabs/Tabs.d.ts +1 -1
  126. package/lib-esm/components/Tabs/Tabs.js +3 -4
  127. package/lib-esm/components/Tabs/Tabs.js.map +1 -1
  128. package/lib-esm/components/Toast/Toast.js +3 -5
  129. package/lib-esm/components/Toast/Toast.js.map +1 -1
  130. package/lib-esm/components/Toast/ToastStory.d.ts +3 -1
  131. package/lib-esm/components/Toast/ToastStory.js +2 -1
  132. package/lib-esm/components/Toast/ToastStory.js.map +1 -1
  133. package/lib-esm/components/Tooltip/Tooltip.d.ts +3 -3
  134. package/lib-esm/components/Tooltip/Tooltip.js +3 -5
  135. package/lib-esm/components/Tooltip/Tooltip.js.map +1 -1
  136. package/lib-esm/components/index.d.ts +4 -1
  137. package/lib-esm/components/index.js +4 -1
  138. package/lib-esm/components/index.js.map +1 -1
  139. package/lib-esm/icons/CheckCircle.d.ts +1 -1
  140. package/lib-esm/icons/CheckCircle.js +2 -4
  141. package/lib-esm/icons/CheckCircle.js.map +1 -1
  142. package/lib-esm/icons/Close.d.ts +1 -1
  143. package/lib-esm/icons/Close.js +2 -4
  144. package/lib-esm/icons/Close.js.map +1 -1
  145. package/lib-esm/icons/DragIndicator.d.ts +1 -0
  146. package/lib-esm/icons/DragIndicator.js +5 -0
  147. package/lib-esm/icons/DragIndicator.js.map +1 -0
  148. package/lib-esm/icons/ErrorOutline.d.ts +1 -1
  149. package/lib-esm/icons/ErrorOutline.js +2 -3
  150. package/lib-esm/icons/ErrorOutline.js.map +1 -1
  151. package/lib-esm/icons/ExpandMore.d.ts +1 -1
  152. package/lib-esm/icons/ExpandMore.js +2 -4
  153. package/lib-esm/icons/ExpandMore.js.map +1 -1
  154. package/lib-esm/icons/FiberManualRecord.d.ts +1 -1
  155. package/lib-esm/icons/FiberManualRecord.js +2 -4
  156. package/lib-esm/icons/FiberManualRecord.js.map +1 -1
  157. package/lib-esm/icons/Info.d.ts +1 -1
  158. package/lib-esm/icons/Info.js +2 -4
  159. package/lib-esm/icons/Info.js.map +1 -1
  160. package/lib-esm/icons/ReportProblem.d.ts +1 -1
  161. package/lib-esm/icons/ReportProblem.js +2 -4
  162. package/lib-esm/icons/ReportProblem.js.map +1 -1
  163. package/lib-esm/icons/index.d.ts +1 -0
  164. package/lib-esm/icons/index.js +1 -0
  165. package/lib-esm/icons/index.js.map +1 -1
  166. package/lib-esm/shared/LayerManager.js +3 -2
  167. package/lib-esm/shared/LayerManager.js.map +1 -1
  168. package/lib-esm/shared/styles.d.ts +16 -5
  169. package/package.json +24 -22
@@ -1,41 +1,9 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- /** Position for Notification */
4
- export declare enum NOTIFICATION_POSITION {
5
- TOP_LEFT = "TOP_LEFT",
6
- TOP_RIGHT = "TOP_RIGHT",
7
- BOTTOM_LEFT = "BOTTOM_LEFT",
8
- BOTTOM_RIGHT = "BOTTOM_RIGHT"
9
- }
10
- /** Type of Notifications */
11
- export declare enum NOTIFICATION_TYPE {
12
- INFO = "INFO",
13
- SUCCESS = "SUCCESS",
14
- DANGER = "DANGER",
15
- WARNING = "WARNING"
16
- }
17
- export interface NotificationOptions {
18
- /** Title of the notification */
19
- title: string;
20
- /** Body of the notification */
21
- description: string;
22
- /** Id for the notification, helps in de-duplication. */
23
- id?: string;
24
- /** Duration for the notification in milliseconds */
25
- duration?: number;
26
- /** Creates sticky notification */
27
- sticky?: boolean;
28
- /** Type of notification */
29
- type?: NOTIFICATION_TYPE;
30
- /** Action button text */
31
- buttonText?: string;
32
- /** Action button click callback */
33
- buttonClick?: () => void;
34
- /** Notification close callback. */
35
- onClose?: () => void;
36
- }
3
+ import { NOTIFICATION_POSITION, NOTIFICATION_TYPE, NotificationOptions } from './types';
4
+ type NotificationProps = PropTypes.InferProps<typeof StoryProps.propTypes>;
37
5
  /** This component is only used for storybook documentation */
38
- export declare class StoryProps extends React.Component {
6
+ export declare class StoryProps extends React.Component<NotificationProps> {
39
7
  static propTypes: {
40
8
  /** Title of the notification */
41
9
  title: PropTypes.Validator<string>;
@@ -88,6 +56,6 @@ declare class Notification {
88
56
  */
89
57
  destroy: (position: NOTIFICATION_POSITION) => void;
90
58
  }
91
- declare const _default: Notification;
92
59
  /** Export a singleton instance */
60
+ declare const _default: Notification;
93
61
  export default _default;
@@ -1,25 +1,10 @@
1
+ import { jsx as _jsx } from "@emotion/react/jsx-runtime";
1
2
  import React, { createRef } from 'react';
2
3
  import PropTypes from 'prop-types';
3
4
  import ReactDOM from 'react-dom';
4
5
  import LayerManager, { LAYER_POSITION } from '../../shared/LayerManager';
5
6
  import NotificationManager from './NotificationManager';
6
- /** Position for Notification */
7
- export var NOTIFICATION_POSITION;
8
- (function (NOTIFICATION_POSITION) {
9
- NOTIFICATION_POSITION["TOP_LEFT"] = "TOP_LEFT";
10
- NOTIFICATION_POSITION["TOP_RIGHT"] = "TOP_RIGHT";
11
- NOTIFICATION_POSITION["BOTTOM_LEFT"] = "BOTTOM_LEFT";
12
- NOTIFICATION_POSITION["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
13
- })(NOTIFICATION_POSITION || (NOTIFICATION_POSITION = {}));
14
- ;
15
- /** Type of Notifications */
16
- export var NOTIFICATION_TYPE;
17
- (function (NOTIFICATION_TYPE) {
18
- NOTIFICATION_TYPE["INFO"] = "INFO";
19
- NOTIFICATION_TYPE["SUCCESS"] = "SUCCESS";
20
- NOTIFICATION_TYPE["DANGER"] = "DANGER";
21
- NOTIFICATION_TYPE["WARNING"] = "WARNING";
22
- })(NOTIFICATION_TYPE || (NOTIFICATION_TYPE = {}));
7
+ import { NOTIFICATION_POSITION, NOTIFICATION_TYPE } from './types';
23
8
  /** This component is only used for storybook documentation */
24
9
  export class StoryProps extends React.Component {
25
10
  render() {
@@ -84,13 +69,13 @@ class Notification {
84
69
  closeOnOverlayClick: false,
85
70
  position: positionMap[position],
86
71
  alwaysOnTop: true,
87
- component: (React.createElement(NotificationManager, { ref: ref, position: position, onEmpty: () => this.destroy(position) }))
72
+ component: (_jsx(NotificationManager, { ref: ref, position: position, onEmpty: () => this.destroy(position) }))
88
73
  });
89
74
  this.containers.set(position, {
90
75
  ref,
91
76
  element: div,
92
77
  });
93
- ReactDOM.render(React.createElement(Component, null), div);
78
+ ReactDOM.render(_jsx(Component, {}), div);
94
79
  notification = ref;
95
80
  }
96
81
  else {
@@ -1 +1 @@
1
- {"version":3,"file":"Notification.js","sourceRoot":"","sources":["../../../src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AC,MAAM,CAAC,KAAC,SAAS,KAAG,EAAE,GAAG,CAAC,CAAC;gBACpC,YAAY,GAAG,GAAG,CAAC;YACvB,CAAC;iBAAM,CAAC;gBACJ,YAAY,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC;YACrD,CAAC;YACD,OAAO,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAC7C,CAAC,CAAA;QAED;;;;;WAKG;QACI,WAAM,GAAG,CAAC,QAA+B,EAAE,EAAU,EAAE,EAAE;YAC5D,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC;gBAChC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;YACzD,CAAC;QACL,CAAC,CAAA;QAED;;;;WAIG;QACI,YAAO,GAAG,CAAC,QAA+B,EAAE,EAAE;YACjD,MAAM,YAAY,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YACnD,QAAQ,CAAC,sBAAsB,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;YACtD,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACrC,CAAC,CAAA;IACL,CAAC;CAAA;AAED,kCAAkC;AAClC,eAAe,IAAI,YAAY,EAAE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { NOTIFICATION_POSITION, NotificationOptions } from './Notification';
2
+ import { NOTIFICATION_POSITION, NotificationOptions } from './types';
3
3
  interface NotificationManagerProps {
4
4
  position: NOTIFICATION_POSITION;
5
5
  onEmpty: () => void;
@@ -47,6 +47,6 @@ declare class NotificationManager extends React.Component<NotificationManagerPro
47
47
  * @param id
48
48
  */
49
49
  resume: (id: string) => () => void;
50
- render(): JSX.Element;
50
+ render(): import("@emotion/react/jsx-runtime").JSX.Element;
51
51
  }
52
52
  export default NotificationManager;
@@ -1,5 +1,6 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
1
2
  import React from 'react';
2
- import { NOTIFICATION_TYPE } from './Notification';
3
+ import { NOTIFICATION_TYPE } from './types';
3
4
  import { Close, Info, ReportProblem, ErrorOutline, CheckCircle } from '../../icons';
4
5
  import { Container, Notice, Title, IconContainer, FillParent, Body, CloseButton, Footer } from './style';
5
6
  import { ActionButton } from '../Button';
@@ -27,6 +28,7 @@ class NotificationManager extends React.Component {
27
28
  this.setState({
28
29
  notices: this.state.notices.map(notice => (Object.assign(Object.assign({}, notice), { leaving: notice.id === id ? true : notice.leaving })))
29
30
  });
31
+ this.set.delete(id);
30
32
  // Remove notification on animation completion.
31
33
  setTimeout(() => {
32
34
  const notice = this.state.notices.find(notice => notice.id === id);
@@ -108,23 +110,10 @@ class NotificationManager extends React.Component {
108
110
  };
109
111
  }
110
112
  render() {
111
- return (React.createElement(Container, { position: this.props.position }, this.state.notices.map(notice => {
112
- const { id, title, description, leaving, type = NOTIFICATION_TYPE.INFO, buttonText, buttonClick, } = notice;
113
- return (React.createElement(Notice, Object.assign({ key: id }, notice, { position: this.props.position, className: leaving ? 'leave' : '', onMouseEnter: this.pause(id), onMouseLeave: this.resume(id) }),
114
- React.createElement(IconContainer, { type: type },
115
- type === NOTIFICATION_TYPE.INFO && React.createElement(Info, null),
116
- type === NOTIFICATION_TYPE.SUCCESS && React.createElement(CheckCircle, null),
117
- type === NOTIFICATION_TYPE.WARNING && React.createElement(ReportProblem, null),
118
- type === NOTIFICATION_TYPE.DANGER && React.createElement(ErrorOutline, null)),
119
- React.createElement(FillParent, null,
120
- React.createElement(Title, { type: type },
121
- React.createElement(FillParent, null, title),
122
- React.createElement(CloseButton, { onClick: this.closeClickHandler(id) },
123
- React.createElement(Close, null))),
124
- React.createElement(Body, null, description),
125
- buttonText && (React.createElement(Footer, null,
126
- React.createElement(ActionButton, { onClick: () => { buttonClick === null || buttonClick === void 0 ? void 0 : buttonClick(); } }, buttonText))))));
127
- })));
113
+ return (_jsx(Container, { position: this.props.position, children: this.state.notices.map(notice => {
114
+ const { id, title, description, leaving, type = NOTIFICATION_TYPE.INFO, buttonText, buttonClick, } = notice;
115
+ return (_jsxs(Notice, Object.assign({}, notice, { position: this.props.position, className: leaving ? 'leave' : '', onMouseEnter: this.pause(id), onMouseLeave: this.resume(id), children: [_jsxs(IconContainer, { type: type, children: [type === NOTIFICATION_TYPE.INFO && _jsx(Info, {}), type === NOTIFICATION_TYPE.SUCCESS && _jsx(CheckCircle, {}), type === NOTIFICATION_TYPE.WARNING && _jsx(ReportProblem, {}), type === NOTIFICATION_TYPE.DANGER && _jsx(ErrorOutline, {})] }), _jsxs(FillParent, { children: [_jsxs(Title, { type: type, children: [_jsx(FillParent, { children: title }), _jsx(CloseButton, { onClick: this.closeClickHandler(id), children: _jsx(Close, {}) })] }), _jsx(Body, { children: description }), buttonText && (_jsx(Footer, { children: _jsx(ActionButton, { onClick: () => { buttonClick === null || buttonClick === void 0 ? void 0 : buttonClick(); }, children: buttonText }) }))] })] }), id));
116
+ }) }));
128
117
  }
129
118
  }
130
119
  export default NotificationManager;
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationManager.js","sourceRoot":"","sources":["../../../src/components/Notification/NotificationManager.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAA8C,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC/F,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACpF,OAAO,EACH,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,EACvC,UAAU,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EACxC,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,YAAY,EAAE,MAAM,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aAAa,IAAC,IAAI,EAAE,IAAI;oBACpB,IAAI,KAAK,iBAAiB,CAAC,IAAI,IAAI,oBAAC,IAAI,OAAG;oBAC3C,IAAI,KAAK,iBAAiB,CAAC,OAAO,IAAI,oBAAC,WAAW,OAAG;oBACrD,IAAI,KAAK,iBAAiB,CAAC,OAAO,IAAI,oBAAC,aAAa,OAAG;oBACvD,IAAI,KAAK,iBAAiB,CAAC,MAAM,IAAI,oBAAC,YAAY,OAAG,CAC1C;gBAChB,oBAAC,UAAU;oBACP,oBAAC,KAAK,IAAC,IAAI,EAAE,IAAI;wBACb,oBAAC,UAAU,QAAE,KAAK,CAAc;wBAChC,oBAAC,WAAW,IAAC,OAAO,EAAE,IAAI,CAAC,iBAAiB,CAAC,EAAE,CAAC;4BAC5C,oBAAC,KAAK,OAAG,CACC,CACV;oBACR,oBAAC,IAAI,QAAE,WAAW,CAAQ;oBACxB,UAAU,IAAI,CACZ,oBAAC,MAAM;wBACH,oBAAC,YAAY,IAAC,OAAO,EAAE,GAAG,EAAE,GAAG,WAAW,aAAX,WAAW,uBAAX,WAAW,GAAI,CAAC,CAAC,IAC3C,UAAU,CACA,CACV,CACZ,CACQ,CACR,CACZ,CAAA;QACL,CAAC,CAAC,CACU,CACf,CAAA;IACL,CAAC;CACJ;AAED,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"NotificationManager.js","sourceRoot":"","sources":["../../../src/components/Notification/NotificationManager.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAyB,iBAAiB,EAAuB,MAAM,SAAS,CAAC;AACxF,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACpF,OAAO,EACH,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,EACvC,UAAU,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EACxC,MAAM,SAAS,CAAC;AACjB,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C,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EACjC,YAAY,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,EAC5B,YAAY,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,aAE7B,MAAC,aAAa,IAAC,IAAI,EAAE,IAAI,aACpB,IAAI,KAAK,iBAAiB,CAAC,IAAI,IAAI,KAAC,IAAI,KAAG,EAC3C,IAAI,KAAK,iBAAiB,CAAC,OAAO,IAAI,KAAC,WAAW,KAAG,EACrD,IAAI,KAAK,iBAAiB,CAAC,OAAO,IAAI,KAAC,aAAa,KAAG,EACvD,IAAI,KAAK,iBAAiB,CAAC,MAAM,IAAI,KAAC,YAAY,KAAG,IAC1C,EAChB,MAAC,UAAU,eACP,MAAC,KAAK,IAAC,IAAI,EAAE,IAAI,aACb,KAAC,UAAU,cAAE,KAAK,GAAc,EAChC,KAAC,WAAW,IAAC,OAAO,EAAE,IAAI,CAAC,iBAAiB,CAAC,EAAE,CAAC,YAC5C,KAAC,KAAK,KAAG,GACC,IACV,EACR,KAAC,IAAI,cAAE,WAAW,GAAQ,EACxB,UAAU,IAAI,CACZ,KAAC,MAAM,cACH,KAAC,YAAY,IAAC,OAAO,EAAE,GAAG,EAAE,GAAG,WAAW,aAAX,WAAW,uBAAX,WAAW,EAAI,CAAA,CAAC,CAAC,YAC3C,UAAU,GACA,GACV,CACZ,IACQ,MA5BR,EAAE,CA6BF,CACZ,CAAA;YACL,CAAC,CAAC,GACU,CACf,CAAA;IACL,CAAC;CACJ;AAED,eAAe,mBAAmB,CAAC"}
@@ -1 +1,2 @@
1
- export { default as Notification, NOTIFICATION_POSITION, NOTIFICATION_TYPE } from './Notification';
1
+ export { default as Notification } from './Notification';
2
+ export { NOTIFICATION_POSITION, NOTIFICATION_TYPE } from './types';
@@ -1,2 +1,3 @@
1
- export { default as Notification, NOTIFICATION_POSITION, NOTIFICATION_TYPE } from './Notification';
1
+ export { default as Notification } from './Notification';
2
+ export { NOTIFICATION_POSITION, NOTIFICATION_TYPE } from './types';
2
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Notification/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Notification/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC"}
@@ -1,24 +1,45 @@
1
- /// <reference types="react" />
2
- import { NOTIFICATION_POSITION, NOTIFICATION_TYPE, NotificationOptions } from './Notification';
1
+ import { NOTIFICATION_POSITION, NOTIFICATION_TYPE, NotificationOptions } from './types';
3
2
  interface NoticeProp extends NotificationOptions {
4
3
  position: NOTIFICATION_POSITION;
5
4
  }
6
- export declare const Container: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
5
+ export declare const Container: import("@emotion/styled").StyledComponent<{
6
+ theme?: import("@emotion/react").Theme;
7
+ as?: React.ElementType;
8
+ } & {
7
9
  position: NOTIFICATION_POSITION;
8
- }, object>;
9
- export declare const Notice: import("@emotion/styled-base").StyledComponent<Pick<import("react").PropsWithChildren<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Pick<import("../Card/Card").CardExtraProps, "elevated"> & {
10
- theme?: object;
11
- }>, "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "elevated" | "theme"> & {
12
- ref?: ((instance: HTMLDivElement) => void) | import("react").RefObject<HTMLDivElement>;
13
- }, NoticeProp, object>;
14
- export declare const Title: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
10
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
11
+ export declare const Notice: import("@emotion/styled").StyledComponent<{
12
+ theme?: import("@emotion/react").Theme;
13
+ as?: React.ElementType;
14
+ } & import("../Card/Card").CardExtraProps & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
15
+ theme?: import("@emotion/react").Theme;
16
+ } & NoticeProp, {}, {}>;
17
+ export declare const Title: import("@emotion/styled").StyledComponent<{
18
+ theme?: import("@emotion/react").Theme;
19
+ as?: React.ElementType;
20
+ } & {
15
21
  type: NOTIFICATION_TYPE;
16
- }, object>;
17
- export declare const FillParent: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css">, object>;
18
- export declare const CloseButton: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "form" | "type" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value">, object>;
19
- export declare const Body: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css">, object>;
20
- export declare const IconContainer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
22
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
23
+ export declare const FillParent: import("@emotion/styled").StyledComponent<{
24
+ theme?: import("@emotion/react").Theme;
25
+ as?: React.ElementType;
26
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
27
+ export declare const CloseButton: import("@emotion/styled").StyledComponent<{
28
+ theme?: import("@emotion/react").Theme;
29
+ as?: React.ElementType;
30
+ }, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
31
+ export declare const Body: import("@emotion/styled").StyledComponent<{
32
+ theme?: import("@emotion/react").Theme;
33
+ as?: React.ElementType;
34
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
35
+ export declare const IconContainer: import("@emotion/styled").StyledComponent<{
36
+ theme?: import("@emotion/react").Theme;
37
+ as?: React.ElementType;
38
+ } & {
21
39
  type: NOTIFICATION_TYPE;
22
- }, object>;
23
- export declare const Footer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css">, object>;
40
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
41
+ export declare const Footer: import("@emotion/styled").StyledComponent<{
42
+ theme?: import("@emotion/react").Theme;
43
+ as?: React.ElementType;
44
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
24
45
  export {};
@@ -1,7 +1,7 @@
1
1
  import styled from '@emotion/styled';
2
2
  import constants from '../../shared/constants';
3
3
  import { Card } from '../Card';
4
- import { NOTIFICATION_POSITION, NOTIFICATION_TYPE } from './Notification';
4
+ import { NOTIFICATION_POSITION, NOTIFICATION_TYPE } from './types';
5
5
  const getEntryAnimation = (position) => {
6
6
  switch (position) {
7
7
  case NOTIFICATION_POSITION.TOP_LEFT:
@@ -1 +1 @@
1
- {"version":3,"file":"style.js","sourceRoot":"","sources":["../../../src/components/Notification/style.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAuB,MAAM,gBAAgB,CAAC;AAE/F,MAAM,iBAAiB,GAAG,CAAC,QAA+B,EAAE,EAAE;IAC1D,QAAO,QAAQ,EAAE;QACb,KAAK,qBAAqB,CAAC,QAAQ,CAAC;QACpC,KAAK,qBAAqB,CAAC,WAAW;YAClC,OAAO,SAAS,CAAC;QACrB;YACI,OAAO,UAAU,CAAC;KACzB;AACL,CAAC,CAAA;AAED,MAAM,gBAAgB,GAAG,CAAC,QAA+B,EAAE,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+ BOTTOM_LEFT = "BOTTOM_LEFT",
6
+ BOTTOM_RIGHT = "BOTTOM_RIGHT"
7
+ }
8
+ /** Type of Notifications */
9
+ export declare enum NOTIFICATION_TYPE {
10
+ INFO = "INFO",
11
+ SUCCESS = "SUCCESS",
12
+ DANGER = "DANGER",
13
+ WARNING = "WARNING"
14
+ }
15
+ export interface NotificationOptions {
16
+ /** Title of the notification */
17
+ title: string;
18
+ /** Body of the notification */
19
+ description: string;
20
+ /** Id for the notification, helps in de-duplication. */
21
+ id?: string;
22
+ /** Duration for the notification in milliseconds */
23
+ duration?: number;
24
+ /** Creates sticky notification */
25
+ sticky?: boolean;
26
+ /** Type of notification */
27
+ type?: NOTIFICATION_TYPE;
28
+ /** Action button text */
29
+ buttonText?: string;
30
+ /** Action button click callback */
31
+ buttonClick?: () => void;
32
+ /** Notification close callback. */
33
+ onClose?: () => void;
34
+ }
@@ -0,0 +1,18 @@
1
+ /** Position for Notification */
2
+ export var NOTIFICATION_POSITION;
3
+ (function (NOTIFICATION_POSITION) {
4
+ NOTIFICATION_POSITION["TOP_LEFT"] = "TOP_LEFT";
5
+ NOTIFICATION_POSITION["TOP_RIGHT"] = "TOP_RIGHT";
6
+ NOTIFICATION_POSITION["BOTTOM_LEFT"] = "BOTTOM_LEFT";
7
+ NOTIFICATION_POSITION["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
8
+ })(NOTIFICATION_POSITION || (NOTIFICATION_POSITION = {}));
9
+ ;
10
+ /** Type of Notifications */
11
+ export var NOTIFICATION_TYPE;
12
+ (function (NOTIFICATION_TYPE) {
13
+ NOTIFICATION_TYPE["INFO"] = "INFO";
14
+ NOTIFICATION_TYPE["SUCCESS"] = "SUCCESS";
15
+ NOTIFICATION_TYPE["DANGER"] = "DANGER";
16
+ NOTIFICATION_TYPE["WARNING"] = "WARNING";
17
+ })(NOTIFICATION_TYPE || (NOTIFICATION_TYPE = {}));
18
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/Notification/types.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,MAAM,CAAN,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC7B,8CAAmB,CAAA;IACnB,gDAAqB,CAAA;IACrB,oDAAyB,CAAA;IACzB,sDAA2B,CAAA;AAC/B,CAAC,EALW,qBAAqB,KAArB,qBAAqB,QAKhC;AAAA,CAAC;AAEF,4BAA4B;AAC5B,MAAM,CAAN,IAAY,iBAKX;AALD,WAAY,iBAAiB;IACzB,kCAAW,CAAA;IACX,wCAAiB,CAAA;IACjB,sCAAe,CAAA;IACf,wCAAiB,CAAA;AACrB,CAAC,EALW,iBAAiB,KAAjB,iBAAiB,QAK5B"}
@@ -6,7 +6,7 @@ export declare enum POPOVER_POSITION {
6
6
  BOTTOM_LEFT = "BOTTOM_LEFT",
7
7
  BOTTOM_RIGHT = "BOTTOM_RIGHT"
8
8
  }
9
- declare function Popover(props: React.PropsWithChildren<PropTypes.InferProps<typeof Popover.propTypes>>): JSX.Element;
9
+ declare function Popover(props: React.PropsWithChildren<PropTypes.InferProps<typeof Popover.propTypes>>): import("@emotion/react/jsx-runtime").JSX.Element;
10
10
  declare namespace Popover {
11
11
  var propTypes: {
12
12
  /** Opens the popover */
@@ -1,4 +1,5 @@
1
- import React, { useEffect, useRef, useState } from 'react';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
2
+ import { useEffect, useRef, useState } from 'react';
2
3
  import PropTypes from 'prop-types';
3
4
  import styled from '@emotion/styled';
4
5
  import { Card } from '../Card';
@@ -83,6 +84,7 @@ export default function Popover(props) {
83
84
  const [closing, setClosing] = useState(false);
84
85
  const [translate, setTranslate] = useState({ x: 0, y: 0 });
85
86
  const popperRef = useRef();
87
+ const containerRef = useRef();
86
88
  const close = () => {
87
89
  setClosing(true);
88
90
  setTimeout(() => {
@@ -99,6 +101,11 @@ export default function Popover(props) {
99
101
  close();
100
102
  }
101
103
  };
104
+ const clickOutsideHandler = (e) => {
105
+ if (containerRef.current && !containerRef.current.contains(e.target)) {
106
+ close();
107
+ }
108
+ };
102
109
  /**
103
110
  * Get called on popover mount.
104
111
  */
@@ -106,13 +113,16 @@ export default function Popover(props) {
106
113
  document.addEventListener('keyup', keyupEventHandler);
107
114
  return () => {
108
115
  document.removeEventListener('keyup', keyupEventHandler);
109
- document.removeEventListener('click', close);
116
+ document.removeEventListener('click', clickOutsideHandler);
110
117
  };
111
118
  }, []);
112
119
  useEffect(() => {
113
120
  if (props.open) {
114
121
  setOpen(true);
115
- document.addEventListener('click', close);
122
+ // Use requestAnimationFrame to add listener after current event loop
123
+ requestAnimationFrame(() => {
124
+ document.addEventListener('click', clickOutsideHandler);
125
+ });
116
126
  }
117
127
  else {
118
128
  if (open) {
@@ -120,7 +130,7 @@ export default function Popover(props) {
120
130
  }
121
131
  }
122
132
  return () => {
123
- document.removeEventListener('click', close);
133
+ document.removeEventListener('click', clickOutsideHandler);
124
134
  };
125
135
  }, [props.open]);
126
136
  useEffect(() => {
@@ -172,9 +182,7 @@ export default function Popover(props) {
172
182
  popperRef.current.focus();
173
183
  }
174
184
  }, [open]);
175
- return (React.createElement(PopoverDiv, null,
176
- React.createElement(props.element, null),
177
- open && (React.createElement(Popper, { elevated: true, tabIndex: 0, position: props.position, translateX: translate.x, translateY: translate.y, className: closing && 'closing', ref: popperRef, onClick: e => { e.stopPropagation(); e.nativeEvent.stopImmediatePropagation(); } }, props.children))));
185
+ return (_jsxs(PopoverDiv, { ref: containerRef, children: [_jsx(props.element, {}), open && (_jsx(Popper, { elevated: true, tabIndex: 0, position: props.position, translateX: translate.x, translateY: translate.y, className: closing && 'closing', ref: popperRef, onClick: e => { e.stopPropagation(); e.nativeEvent.stopImmediatePropagation(); }, children: props.children }))] }));
178
186
  }
179
187
  Popover.propTypes = {
180
188
  /** Opens the popover */
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.js","sourceRoot":"","sources":["../../../src/components/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D,QAAQ,EAAE,SAAS,CAAC,KAAK,CAAC;QACtB,gBAAgB,CAAC,QAAQ;QACzB,gBAAgB,CAAC,SAAS;QAC1B,gBAAgB,CAAC,WAAW;QAC5B,gBAAgB,CAAC,YAAY;KAChC,CAAC;IACF,qDAAqD;IACrD,UAAU,EAAE,SAAS,CAAC,IAAI;IAC1B,6BAA6B;IAC7B,OAAO,EAAE,SAAS,CAAC,IAAI;CAC1B,CAAA;AAED,OAAO,CAAC,YAAY,GAAG;IACnB,UAAU,EAAE,IAAI;IAChB,QAAQ,EAAE,gBAAgB,CAAC,WAAW;CACzC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import PropTypes from 'prop-types';
2
- declare function Spinner(props: SpinnerProp): JSX.Element;
2
+ declare function Spinner(props: SpinnerProp): import("@emotion/react/jsx-runtime").JSX.Element;
3
3
  declare namespace Spinner {
4
4
  var propTypes: {
5
5
  /** Spinner's size */
@@ -9,5 +9,5 @@ declare namespace Spinner {
9
9
  size: number;
10
10
  };
11
11
  }
12
- declare type SpinnerProp = PropTypes.InferProps<typeof Spinner.propTypes>;
12
+ type SpinnerProp = PropTypes.InferProps<typeof Spinner.propTypes>;
13
13
  export default Spinner;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "@emotion/react/jsx-runtime";
2
2
  import styled from '@emotion/styled';
3
3
  import PropTypes from 'prop-types';
4
4
  import constants from '../../shared/constants';
@@ -17,7 +17,7 @@ const SpinnerDiv = styled.div `
17
17
  }
18
18
  `;
19
19
  function Spinner(props) {
20
- return React.createElement(SpinnerDiv, Object.assign({}, props));
20
+ return _jsx(SpinnerDiv, Object.assign({}, props));
21
21
  }
22
22
  Spinner.propTypes = {
23
23
  /** Spinner's size */
@@ -1 +1 @@
1
- {"version":3,"file":"Spinner.js","sourceRoot":"","sources":["../../../src/components/Spinner/Spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAA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