siam-ui-utils 3.1.3 → 3.1.4

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 (73) hide show
  1. package/dist/_virtual/index.js +2 -2
  2. package/dist/node_modules/@neolution-ch/reactstrap/esm/Badge.js +2 -2
  3. package/dist/node_modules/@neolution-ch/reactstrap/esm/Badge.js.map +1 -1
  4. package/dist/node_modules/@neolution-ch/reactstrap/esm/Button.js +2 -2
  5. package/dist/node_modules/@neolution-ch/reactstrap/esm/Button.js.map +1 -1
  6. package/dist/node_modules/@neolution-ch/reactstrap/esm/CloseButton.js +2 -2
  7. package/dist/node_modules/@neolution-ch/reactstrap/esm/CloseButton.js.map +1 -1
  8. package/dist/node_modules/@neolution-ch/reactstrap/esm/Col.js +3 -3
  9. package/dist/node_modules/@neolution-ch/reactstrap/esm/Col.js.map +1 -1
  10. package/dist/node_modules/@neolution-ch/reactstrap/esm/FormGroup.js +2 -2
  11. package/dist/node_modules/@neolution-ch/reactstrap/esm/FormGroup.js.map +1 -1
  12. package/dist/node_modules/@neolution-ch/reactstrap/esm/Input.js +2 -2
  13. package/dist/node_modules/@neolution-ch/reactstrap/esm/Input.js.map +1 -1
  14. package/dist/node_modules/@neolution-ch/reactstrap/esm/Label.js +3 -3
  15. package/dist/node_modules/@neolution-ch/reactstrap/esm/Label.js.map +1 -1
  16. package/dist/node_modules/@neolution-ch/reactstrap/esm/Row.js +2 -2
  17. package/dist/node_modules/@neolution-ch/reactstrap/esm/Row.js.map +1 -1
  18. package/dist/react-notifications/index.js +3 -8
  19. package/dist/react-notifications/index.js.map +1 -1
  20. package/dist/select/custom-select/index.js +3 -85
  21. package/dist/select/custom-select/index.js.map +1 -1
  22. package/package.json +2 -1
  23. package/dist/_virtual/events.js +0 -6
  24. package/dist/_virtual/events.js.map +0 -1
  25. package/dist/_virtual/events2.js +0 -5
  26. package/dist/_virtual/events2.js.map +0 -1
  27. package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -8
  28. package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js.map +0 -1
  29. package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +0 -13
  30. package/dist/node_modules/@babel/runtime/helpers/esm/extends.js.map +0 -1
  31. package/dist/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +0 -8
  32. package/dist/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +0 -1
  33. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -13
  34. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +0 -1
  35. package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -9
  36. package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +0 -1
  37. package/dist/node_modules/dom-helpers/esm/addClass.js +0 -10
  38. package/dist/node_modules/dom-helpers/esm/addClass.js.map +0 -1
  39. package/dist/node_modules/dom-helpers/esm/hasClass.js +0 -8
  40. package/dist/node_modules/dom-helpers/esm/hasClass.js.map +0 -1
  41. package/dist/node_modules/dom-helpers/esm/removeClass.js +0 -16
  42. package/dist/node_modules/dom-helpers/esm/removeClass.js.map +0 -1
  43. package/dist/node_modules/events/events.js +0 -372
  44. package/dist/node_modules/events/events.js.map +0 -1
  45. package/dist/node_modules/react-transition-group/esm/CSSTransition.js +0 -275
  46. package/dist/node_modules/react-transition-group/esm/CSSTransition.js.map +0 -1
  47. package/dist/node_modules/react-transition-group/esm/Transition.js +0 -441
  48. package/dist/node_modules/react-transition-group/esm/Transition.js.map +0 -1
  49. package/dist/node_modules/react-transition-group/esm/TransitionGroup.js +0 -146
  50. package/dist/node_modules/react-transition-group/esm/TransitionGroup.js.map +0 -1
  51. package/dist/node_modules/react-transition-group/esm/TransitionGroupContext.js +0 -6
  52. package/dist/node_modules/react-transition-group/esm/TransitionGroupContext.js.map +0 -1
  53. package/dist/node_modules/react-transition-group/esm/config.js +0 -7
  54. package/dist/node_modules/react-transition-group/esm/config.js.map +0 -1
  55. package/dist/node_modules/react-transition-group/esm/utils/ChildMapping.js +0 -100
  56. package/dist/node_modules/react-transition-group/esm/utils/ChildMapping.js.map +0 -1
  57. package/dist/node_modules/react-transition-group/esm/utils/PropTypes.js +0 -24
  58. package/dist/node_modules/react-transition-group/esm/utils/PropTypes.js.map +0 -1
  59. package/dist/node_modules/react-transition-group/esm/utils/reflow.js +0 -7
  60. package/dist/node_modules/react-transition-group/esm/utils/reflow.js.map +0 -1
  61. package/dist/react-notifications/Notification.js +0 -73
  62. package/dist/react-notifications/Notification.js.map +0 -1
  63. package/dist/react-notifications/NotificationContainer.js +0 -59
  64. package/dist/react-notifications/NotificationContainer.js.map +0 -1
  65. package/dist/react-notifications/NotificationManager.js +0 -174
  66. package/dist/react-notifications/NotificationManager.js.map +0 -1
  67. package/dist/react-notifications/Notifications.js +0 -72
  68. package/dist/react-notifications/Notifications.js.map +0 -1
  69. package/dist/react-notifications/constants.js +0 -26
  70. package/dist/react-notifications/constants.js.map +0 -1
  71. package/dist/react-notifications/notifications.css +0 -213
  72. package/dist/select/custom-select/constants.js +0 -8
  73. package/dist/select/custom-select/constants.js.map +0 -1
@@ -1,275 +0,0 @@
1
- import _extends from "../../@babel/runtime/helpers/esm/extends.js";
2
- import _objectWithoutPropertiesLoose from "../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";
3
- import _inheritsLoose from "../../@babel/runtime/helpers/esm/inheritsLoose.js";
4
- import PropTypes from "prop-types";
5
- import addClass from "../../dom-helpers/esm/addClass.js";
6
- import removeClass$1 from "../../dom-helpers/esm/removeClass.js";
7
- import React from "react";
8
- import Transition from "./Transition.js";
9
- import { classNamesShape } from "./utils/PropTypes.js";
10
- import { forceReflow } from "./utils/reflow.js";
11
- var define_process_env_default = {};
12
- var _addClass = function addClass$1(node, classes) {
13
- return node && classes && classes.split(" ").forEach(function(c) {
14
- return addClass(node, c);
15
- });
16
- };
17
- var removeClass = function removeClass2(node, classes) {
18
- return node && classes && classes.split(" ").forEach(function(c) {
19
- return removeClass$1(node, c);
20
- });
21
- };
22
- var CSSTransition = /* @__PURE__ */ (function(_React$Component) {
23
- _inheritsLoose(CSSTransition2, _React$Component);
24
- function CSSTransition2() {
25
- var _this;
26
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
27
- args[_key] = arguments[_key];
28
- }
29
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
30
- _this.appliedClasses = {
31
- appear: {},
32
- enter: {},
33
- exit: {}
34
- };
35
- _this.onEnter = function(maybeNode, maybeAppearing) {
36
- var _this$resolveArgument = _this.resolveArguments(maybeNode, maybeAppearing), node = _this$resolveArgument[0], appearing = _this$resolveArgument[1];
37
- _this.removeClasses(node, "exit");
38
- _this.addClass(node, appearing ? "appear" : "enter", "base");
39
- if (_this.props.onEnter) {
40
- _this.props.onEnter(maybeNode, maybeAppearing);
41
- }
42
- };
43
- _this.onEntering = function(maybeNode, maybeAppearing) {
44
- var _this$resolveArgument2 = _this.resolveArguments(maybeNode, maybeAppearing), node = _this$resolveArgument2[0], appearing = _this$resolveArgument2[1];
45
- var type = appearing ? "appear" : "enter";
46
- _this.addClass(node, type, "active");
47
- if (_this.props.onEntering) {
48
- _this.props.onEntering(maybeNode, maybeAppearing);
49
- }
50
- };
51
- _this.onEntered = function(maybeNode, maybeAppearing) {
52
- var _this$resolveArgument3 = _this.resolveArguments(maybeNode, maybeAppearing), node = _this$resolveArgument3[0], appearing = _this$resolveArgument3[1];
53
- var type = appearing ? "appear" : "enter";
54
- _this.removeClasses(node, type);
55
- _this.addClass(node, type, "done");
56
- if (_this.props.onEntered) {
57
- _this.props.onEntered(maybeNode, maybeAppearing);
58
- }
59
- };
60
- _this.onExit = function(maybeNode) {
61
- var _this$resolveArgument4 = _this.resolveArguments(maybeNode), node = _this$resolveArgument4[0];
62
- _this.removeClasses(node, "appear");
63
- _this.removeClasses(node, "enter");
64
- _this.addClass(node, "exit", "base");
65
- if (_this.props.onExit) {
66
- _this.props.onExit(maybeNode);
67
- }
68
- };
69
- _this.onExiting = function(maybeNode) {
70
- var _this$resolveArgument5 = _this.resolveArguments(maybeNode), node = _this$resolveArgument5[0];
71
- _this.addClass(node, "exit", "active");
72
- if (_this.props.onExiting) {
73
- _this.props.onExiting(maybeNode);
74
- }
75
- };
76
- _this.onExited = function(maybeNode) {
77
- var _this$resolveArgument6 = _this.resolveArguments(maybeNode), node = _this$resolveArgument6[0];
78
- _this.removeClasses(node, "exit");
79
- _this.addClass(node, "exit", "done");
80
- if (_this.props.onExited) {
81
- _this.props.onExited(maybeNode);
82
- }
83
- };
84
- _this.resolveArguments = function(maybeNode, maybeAppearing) {
85
- return _this.props.nodeRef ? [_this.props.nodeRef.current, maybeNode] : [maybeNode, maybeAppearing];
86
- };
87
- _this.getClassNames = function(type) {
88
- var classNames = _this.props.classNames;
89
- var isStringClassNames = typeof classNames === "string";
90
- var prefix = isStringClassNames && classNames ? classNames + "-" : "";
91
- var baseClassName = isStringClassNames ? "" + prefix + type : classNames[type];
92
- var activeClassName = isStringClassNames ? baseClassName + "-active" : classNames[type + "Active"];
93
- var doneClassName = isStringClassNames ? baseClassName + "-done" : classNames[type + "Done"];
94
- return {
95
- baseClassName,
96
- activeClassName,
97
- doneClassName
98
- };
99
- };
100
- return _this;
101
- }
102
- var _proto = CSSTransition2.prototype;
103
- _proto.addClass = function addClass2(node, type, phase) {
104
- var className = this.getClassNames(type)[phase + "ClassName"];
105
- var _this$getClassNames = this.getClassNames("enter"), doneClassName = _this$getClassNames.doneClassName;
106
- if (type === "appear" && phase === "done" && doneClassName) {
107
- className += " " + doneClassName;
108
- }
109
- if (phase === "active") {
110
- if (node) forceReflow(node);
111
- }
112
- if (className) {
113
- this.appliedClasses[type][phase] = className;
114
- _addClass(node, className);
115
- }
116
- };
117
- _proto.removeClasses = function removeClasses(node, type) {
118
- var _this$appliedClasses$ = this.appliedClasses[type], baseClassName = _this$appliedClasses$.base, activeClassName = _this$appliedClasses$.active, doneClassName = _this$appliedClasses$.done;
119
- this.appliedClasses[type] = {};
120
- if (baseClassName) {
121
- removeClass(node, baseClassName);
122
- }
123
- if (activeClassName) {
124
- removeClass(node, activeClassName);
125
- }
126
- if (doneClassName) {
127
- removeClass(node, doneClassName);
128
- }
129
- };
130
- _proto.render = function render() {
131
- var _this$props = this.props;
132
- _this$props.classNames;
133
- var props = _objectWithoutPropertiesLoose(_this$props, ["classNames"]);
134
- return /* @__PURE__ */ React.createElement(Transition, _extends({}, props, {
135
- onEnter: this.onEnter,
136
- onEntered: this.onEntered,
137
- onEntering: this.onEntering,
138
- onExit: this.onExit,
139
- onExiting: this.onExiting,
140
- onExited: this.onExited
141
- }));
142
- };
143
- return CSSTransition2;
144
- })(React.Component);
145
- CSSTransition.defaultProps = {
146
- classNames: ""
147
- };
148
- CSSTransition.propTypes = define_process_env_default.NODE_ENV !== "production" ? _extends({}, Transition.propTypes, {
149
- /**
150
- * The animation classNames applied to the component as it appears, enters,
151
- * exits or has finished the transition. A single name can be provided, which
152
- * will be suffixed for each stage, e.g. `classNames="fade"` applies:
153
- *
154
- * - `fade-appear`, `fade-appear-active`, `fade-appear-done`
155
- * - `fade-enter`, `fade-enter-active`, `fade-enter-done`
156
- * - `fade-exit`, `fade-exit-active`, `fade-exit-done`
157
- *
158
- * A few details to note about how these classes are applied:
159
- *
160
- * 1. They are _joined_ with the ones that are already defined on the child
161
- * component, so if you want to add some base styles, you can use
162
- * `className` without worrying that it will be overridden.
163
- *
164
- * 2. If the transition component mounts with `in={false}`, no classes are
165
- * applied yet. You might be expecting `*-exit-done`, but if you think
166
- * about it, a component cannot finish exiting if it hasn't entered yet.
167
- *
168
- * 2. `fade-appear-done` and `fade-enter-done` will _both_ be applied. This
169
- * allows you to define different behavior for when appearing is done and
170
- * when regular entering is done, using selectors like
171
- * `.fade-enter-done:not(.fade-appear-done)`. For example, you could apply
172
- * an epic entrance animation when element first appears in the DOM using
173
- * [Animate.css](https://daneden.github.io/animate.css/). Otherwise you can
174
- * simply use `fade-enter-done` for defining both cases.
175
- *
176
- * Each individual classNames can also be specified independently like:
177
- *
178
- * ```js
179
- * classNames={{
180
- * appear: 'my-appear',
181
- * appearActive: 'my-active-appear',
182
- * appearDone: 'my-done-appear',
183
- * enter: 'my-enter',
184
- * enterActive: 'my-active-enter',
185
- * enterDone: 'my-done-enter',
186
- * exit: 'my-exit',
187
- * exitActive: 'my-active-exit',
188
- * exitDone: 'my-done-exit',
189
- * }}
190
- * ```
191
- *
192
- * If you want to set these classes using CSS Modules:
193
- *
194
- * ```js
195
- * import styles from './styles.css';
196
- * ```
197
- *
198
- * you might want to use camelCase in your CSS file, that way could simply
199
- * spread them instead of listing them one by one:
200
- *
201
- * ```js
202
- * classNames={{ ...styles }}
203
- * ```
204
- *
205
- * @type {string | {
206
- * appear?: string,
207
- * appearActive?: string,
208
- * appearDone?: string,
209
- * enter?: string,
210
- * enterActive?: string,
211
- * enterDone?: string,
212
- * exit?: string,
213
- * exitActive?: string,
214
- * exitDone?: string,
215
- * }}
216
- */
217
- classNames: classNamesShape,
218
- /**
219
- * A `<Transition>` callback fired immediately after the 'enter' or 'appear' class is
220
- * applied.
221
- *
222
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
223
- *
224
- * @type Function(node: HtmlElement, isAppearing: bool)
225
- */
226
- onEnter: PropTypes.func,
227
- /**
228
- * A `<Transition>` callback fired immediately after the 'enter-active' or
229
- * 'appear-active' class is applied.
230
- *
231
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
232
- *
233
- * @type Function(node: HtmlElement, isAppearing: bool)
234
- */
235
- onEntering: PropTypes.func,
236
- /**
237
- * A `<Transition>` callback fired immediately after the 'enter' or
238
- * 'appear' classes are **removed** and the `done` class is added to the DOM node.
239
- *
240
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
241
- *
242
- * @type Function(node: HtmlElement, isAppearing: bool)
243
- */
244
- onEntered: PropTypes.func,
245
- /**
246
- * A `<Transition>` callback fired immediately after the 'exit' class is
247
- * applied.
248
- *
249
- * **Note**: when `nodeRef` prop is passed, `node` is not passed
250
- *
251
- * @type Function(node: HtmlElement)
252
- */
253
- onExit: PropTypes.func,
254
- /**
255
- * A `<Transition>` callback fired immediately after the 'exit-active' is applied.
256
- *
257
- * **Note**: when `nodeRef` prop is passed, `node` is not passed
258
- *
259
- * @type Function(node: HtmlElement)
260
- */
261
- onExiting: PropTypes.func,
262
- /**
263
- * A `<Transition>` callback fired immediately after the 'exit' classes
264
- * are **removed** and the `exit-done` class is added to the DOM node.
265
- *
266
- * **Note**: when `nodeRef` prop is passed, `node` is not passed
267
- *
268
- * @type Function(node: HtmlElement)
269
- */
270
- onExited: PropTypes.func
271
- }) : {};
272
- export {
273
- CSSTransition as default
274
- };
275
- //# sourceMappingURL=CSSTransition.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CSSTransition.js","sources":["../../../../node_modules/react-transition-group/esm/CSSTransition.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport addOneClass from 'dom-helpers/addClass';\nimport removeOneClass from 'dom-helpers/removeClass';\nimport React from 'react';\nimport Transition from './Transition';\nimport { classNamesShape } from './utils/PropTypes';\nimport { forceReflow } from './utils/reflow';\n\nvar _addClass = function addClass(node, classes) {\n return node && classes && classes.split(' ').forEach(function (c) {\n return addOneClass(node, c);\n });\n};\n\nvar removeClass = function removeClass(node, classes) {\n return node && classes && classes.split(' ').forEach(function (c) {\n return removeOneClass(node, c);\n });\n};\n/**\n * A transition component inspired by the excellent\n * [ng-animate](https://docs.angularjs.org/api/ngAnimate) library, you should\n * use it if you're using CSS transitions or animations. It's built upon the\n * [`Transition`](https://reactcommunity.org/react-transition-group/transition)\n * component, so it inherits all of its props.\n *\n * `CSSTransition` applies a pair of class names during the `appear`, `enter`,\n * and `exit` states of the transition. The first class is applied and then a\n * second `*-active` class in order to activate the CSS transition. After the\n * transition, matching `*-done` class names are applied to persist the\n * transition state.\n *\n * ```jsx\n * function App() {\n * const [inProp, setInProp] = useState(false);\n * return (\n * <div>\n * <CSSTransition in={inProp} timeout={200} classNames=\"my-node\">\n * <div>\n * {\"I'll receive my-node-* classes\"}\n * </div>\n * </CSSTransition>\n * <button type=\"button\" onClick={() => setInProp(true)}>\n * Click to Enter\n * </button>\n * </div>\n * );\n * }\n * ```\n *\n * When the `in` prop is set to `true`, the child component will first receive\n * the class `example-enter`, then the `example-enter-active` will be added in\n * the next tick. `CSSTransition` [forces a\n * reflow](https://github.com/reactjs/react-transition-group/blob/5007303e729a74be66a21c3e2205e4916821524b/src/CSSTransition.js#L208-L215)\n * between before adding the `example-enter-active`. This is an important trick\n * because it allows us to transition between `example-enter` and\n * `example-enter-active` even though they were added immediately one after\n * another. Most notably, this is what makes it possible for us to animate\n * _appearance_.\n *\n * ```css\n * .my-node-enter {\n * opacity: 0;\n * }\n * .my-node-enter-active {\n * opacity: 1;\n * transition: opacity 200ms;\n * }\n * .my-node-exit {\n * opacity: 1;\n * }\n * .my-node-exit-active {\n * opacity: 0;\n * transition: opacity 200ms;\n * }\n * ```\n *\n * `*-active` classes represent which styles you want to animate **to**, so it's\n * important to add `transition` declaration only to them, otherwise transitions\n * might not behave as intended! This might not be obvious when the transitions\n * are symmetrical, i.e. when `*-enter-active` is the same as `*-exit`, like in\n * the example above (minus `transition`), but it becomes apparent in more\n * complex transitions.\n *\n * **Note**: If you're using the\n * [`appear`](http://reactcommunity.org/react-transition-group/transition#Transition-prop-appear)\n * prop, make sure to define styles for `.appear-*` classes as well.\n */\n\n\nvar CSSTransition = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(CSSTransition, _React$Component);\n\n function CSSTransition() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n _this.appliedClasses = {\n appear: {},\n enter: {},\n exit: {}\n };\n\n _this.onEnter = function (maybeNode, maybeAppearing) {\n var _this$resolveArgument = _this.resolveArguments(maybeNode, maybeAppearing),\n node = _this$resolveArgument[0],\n appearing = _this$resolveArgument[1];\n\n _this.removeClasses(node, 'exit');\n\n _this.addClass(node, appearing ? 'appear' : 'enter', 'base');\n\n if (_this.props.onEnter) {\n _this.props.onEnter(maybeNode, maybeAppearing);\n }\n };\n\n _this.onEntering = function (maybeNode, maybeAppearing) {\n var _this$resolveArgument2 = _this.resolveArguments(maybeNode, maybeAppearing),\n node = _this$resolveArgument2[0],\n appearing = _this$resolveArgument2[1];\n\n var type = appearing ? 'appear' : 'enter';\n\n _this.addClass(node, type, 'active');\n\n if (_this.props.onEntering) {\n _this.props.onEntering(maybeNode, maybeAppearing);\n }\n };\n\n _this.onEntered = function (maybeNode, maybeAppearing) {\n var _this$resolveArgument3 = _this.resolveArguments(maybeNode, maybeAppearing),\n node = _this$resolveArgument3[0],\n appearing = _this$resolveArgument3[1];\n\n var type = appearing ? 'appear' : 'enter';\n\n _this.removeClasses(node, type);\n\n _this.addClass(node, type, 'done');\n\n if (_this.props.onEntered) {\n _this.props.onEntered(maybeNode, maybeAppearing);\n }\n };\n\n _this.onExit = function (maybeNode) {\n var _this$resolveArgument4 = _this.resolveArguments(maybeNode),\n node = _this$resolveArgument4[0];\n\n _this.removeClasses(node, 'appear');\n\n _this.removeClasses(node, 'enter');\n\n _this.addClass(node, 'exit', 'base');\n\n if (_this.props.onExit) {\n _this.props.onExit(maybeNode);\n }\n };\n\n _this.onExiting = function (maybeNode) {\n var _this$resolveArgument5 = _this.resolveArguments(maybeNode),\n node = _this$resolveArgument5[0];\n\n _this.addClass(node, 'exit', 'active');\n\n if (_this.props.onExiting) {\n _this.props.onExiting(maybeNode);\n }\n };\n\n _this.onExited = function (maybeNode) {\n var _this$resolveArgument6 = _this.resolveArguments(maybeNode),\n node = _this$resolveArgument6[0];\n\n _this.removeClasses(node, 'exit');\n\n _this.addClass(node, 'exit', 'done');\n\n if (_this.props.onExited) {\n _this.props.onExited(maybeNode);\n }\n };\n\n _this.resolveArguments = function (maybeNode, maybeAppearing) {\n return _this.props.nodeRef ? [_this.props.nodeRef.current, maybeNode] // here `maybeNode` is actually `appearing`\n : [maybeNode, maybeAppearing];\n };\n\n _this.getClassNames = function (type) {\n var classNames = _this.props.classNames;\n var isStringClassNames = typeof classNames === 'string';\n var prefix = isStringClassNames && classNames ? classNames + \"-\" : '';\n var baseClassName = isStringClassNames ? \"\" + prefix + type : classNames[type];\n var activeClassName = isStringClassNames ? baseClassName + \"-active\" : classNames[type + \"Active\"];\n var doneClassName = isStringClassNames ? baseClassName + \"-done\" : classNames[type + \"Done\"];\n return {\n baseClassName: baseClassName,\n activeClassName: activeClassName,\n doneClassName: doneClassName\n };\n };\n\n return _this;\n }\n\n var _proto = CSSTransition.prototype;\n\n _proto.addClass = function addClass(node, type, phase) {\n var className = this.getClassNames(type)[phase + \"ClassName\"];\n\n var _this$getClassNames = this.getClassNames('enter'),\n doneClassName = _this$getClassNames.doneClassName;\n\n if (type === 'appear' && phase === 'done' && doneClassName) {\n className += \" \" + doneClassName;\n } // This is to force a repaint,\n // which is necessary in order to transition styles when adding a class name.\n\n\n if (phase === 'active') {\n if (node) forceReflow(node);\n }\n\n if (className) {\n this.appliedClasses[type][phase] = className;\n\n _addClass(node, className);\n }\n };\n\n _proto.removeClasses = function removeClasses(node, type) {\n var _this$appliedClasses$ = this.appliedClasses[type],\n baseClassName = _this$appliedClasses$.base,\n activeClassName = _this$appliedClasses$.active,\n doneClassName = _this$appliedClasses$.done;\n this.appliedClasses[type] = {};\n\n if (baseClassName) {\n removeClass(node, baseClassName);\n }\n\n if (activeClassName) {\n removeClass(node, activeClassName);\n }\n\n if (doneClassName) {\n removeClass(node, doneClassName);\n }\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n _ = _this$props.classNames,\n props = _objectWithoutPropertiesLoose(_this$props, [\"classNames\"]);\n\n return /*#__PURE__*/React.createElement(Transition, _extends({}, props, {\n onEnter: this.onEnter,\n onEntered: this.onEntered,\n onEntering: this.onEntering,\n onExit: this.onExit,\n onExiting: this.onExiting,\n onExited: this.onExited\n }));\n };\n\n return CSSTransition;\n}(React.Component);\n\nCSSTransition.defaultProps = {\n classNames: ''\n};\nCSSTransition.propTypes = process.env.NODE_ENV !== \"production\" ? _extends({}, Transition.propTypes, {\n /**\n * The animation classNames applied to the component as it appears, enters,\n * exits or has finished the transition. A single name can be provided, which\n * will be suffixed for each stage, e.g. `classNames=\"fade\"` applies:\n *\n * - `fade-appear`, `fade-appear-active`, `fade-appear-done`\n * - `fade-enter`, `fade-enter-active`, `fade-enter-done`\n * - `fade-exit`, `fade-exit-active`, `fade-exit-done`\n *\n * A few details to note about how these classes are applied:\n *\n * 1. They are _joined_ with the ones that are already defined on the child\n * component, so if you want to add some base styles, you can use\n * `className` without worrying that it will be overridden.\n *\n * 2. If the transition component mounts with `in={false}`, no classes are\n * applied yet. You might be expecting `*-exit-done`, but if you think\n * about it, a component cannot finish exiting if it hasn't entered yet.\n *\n * 2. `fade-appear-done` and `fade-enter-done` will _both_ be applied. This\n * allows you to define different behavior for when appearing is done and\n * when regular entering is done, using selectors like\n * `.fade-enter-done:not(.fade-appear-done)`. For example, you could apply\n * an epic entrance animation when element first appears in the DOM using\n * [Animate.css](https://daneden.github.io/animate.css/). Otherwise you can\n * simply use `fade-enter-done` for defining both cases.\n *\n * Each individual classNames can also be specified independently like:\n *\n * ```js\n * classNames={{\n * appear: 'my-appear',\n * appearActive: 'my-active-appear',\n * appearDone: 'my-done-appear',\n * enter: 'my-enter',\n * enterActive: 'my-active-enter',\n * enterDone: 'my-done-enter',\n * exit: 'my-exit',\n * exitActive: 'my-active-exit',\n * exitDone: 'my-done-exit',\n * }}\n * ```\n *\n * If you want to set these classes using CSS Modules:\n *\n * ```js\n * import styles from './styles.css';\n * ```\n *\n * you might want to use camelCase in your CSS file, that way could simply\n * spread them instead of listing them one by one:\n *\n * ```js\n * classNames={{ ...styles }}\n * ```\n *\n * @type {string | {\n * appear?: string,\n * appearActive?: string,\n * appearDone?: string,\n * enter?: string,\n * enterActive?: string,\n * enterDone?: string,\n * exit?: string,\n * exitActive?: string,\n * exitDone?: string,\n * }}\n */\n classNames: classNamesShape,\n\n /**\n * A `<Transition>` callback fired immediately after the 'enter' or 'appear' class is\n * applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEnter: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'enter-active' or\n * 'appear-active' class is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'enter' or\n * 'appear' classes are **removed** and the `done` class is added to the DOM node.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntered: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'exit' class is\n * applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement)\n */\n onExit: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'exit-active' is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement)\n */\n onExiting: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'exit' classes\n * are **removed** and the `exit-done` class is added to the DOM node.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement)\n */\n onExited: PropTypes.func\n}) : {};\nexport default CSSTransition;"],"names":["addClass","addOneClass","removeClass","removeOneClass","CSSTransition"],"m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