@spaziodati/atoka-design-system 2.1.3 → 2.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.
- package/AddableItems/index.js +2 -2
- package/AddableItems/index.js.map +1 -1
- package/Alert/index.js +2 -2
- package/Alert/index.js.map +1 -1
- package/Badge/index.js +2 -2
- package/Badge/index.js.map +1 -1
- package/Bs4V3Wrapper/index.js +2 -2
- package/Bs4V3Wrapper/index.js.map +1 -1
- package/BubbleChart/index.js +2 -2
- package/BubbleChart/index.js.map +1 -1
- package/Button/index.js +2 -2
- package/Button/index.js.map +1 -1
- package/ButtonDropdown/index.js +2 -2
- package/ButtonDropdown/index.js.map +1 -1
- package/CardsPage/index.js +2 -2
- package/CardsPage/index.js.map +1 -1
- package/CursorPagination/index.js +2 -2
- package/CursorPagination/index.js.map +1 -1
- package/DatePicker/index.js +2 -2
- package/DatePicker/index.js.map +1 -1
- package/DetailPage/index.js +581 -555
- package/DetailPage/index.js.map +1 -1
- package/Dropdown/index.js +2 -2
- package/Dropdown/index.js.map +1 -1
- package/EditableString/index.js +581 -555
- package/EditableString/index.js.map +1 -1
- package/EllipsableContent/index.js +2 -2
- package/EllipsableContent/index.js.map +1 -1
- package/EmptyState/index.js +2 -2
- package/EmptyState/index.js.map +1 -1
- package/Facet/index.js +2 -2
- package/Facet/index.js.map +1 -1
- package/FacetSection/index.js +2 -2
- package/FacetSection/index.js.map +1 -1
- package/FadeAnimation/index.js +581 -555
- package/FadeAnimation/index.js.map +1 -1
- package/FeedbackButton/index.js +2 -2
- package/FeedbackButton/index.js.map +1 -1
- package/Form/index.js +2 -2
- package/Form/index.js.map +1 -1
- package/Funnel/index.js +2 -2
- package/Funnel/index.js.map +1 -1
- package/GridCard/index.js +2 -2
- package/GridCard/index.js.map +1 -1
- package/HighlightableText/index.js +2 -2
- package/HighlightableText/index.js.map +1 -1
- package/Histogram/index.js +2 -2
- package/Histogram/index.js.map +1 -1
- package/InlineStringEditor/index.js +2 -2
- package/InlineStringEditor/index.js.map +1 -1
- package/InputGroup/index.js +2 -2
- package/InputGroup/index.js.map +1 -1
- package/Jumbotron/index.js +2 -2
- package/Jumbotron/index.js.map +1 -1
- package/Map/index.js +2 -2
- package/Map/index.js.map +1 -1
- package/Modal/index.js +2 -2
- package/Modal/index.js.map +1 -1
- package/Navbar/index.js +581 -555
- package/Navbar/index.js.map +1 -1
- package/Pagination/index.js +2 -2
- package/Pagination/index.js.map +1 -1
- package/PieChart/index.js +2 -2
- package/PieChart/index.js.map +1 -1
- package/PublicFooter/index.js +2 -2
- package/PublicFooter/index.js.map +1 -1
- package/PublicNavbar/index.js +2 -2
- package/PublicNavbar/index.js.map +1 -1
- package/README.md +5 -2
- package/RecordBit/index.js +2 -2
- package/RecordBit/index.js.map +1 -1
- package/ResultItemCard/index.js +2 -2
- package/ResultItemCard/index.js.map +1 -1
- package/SelectDropdown/index.js +2 -2
- package/SelectDropdown/index.js.map +1 -1
- package/Spinner/index.js +2 -2
- package/Spinner/index.js.map +1 -1
- package/StatisticsItemCard/index.js +2 -2
- package/StatisticsItemCard/index.js.map +1 -1
- package/StatisticsItemNumeric/index.js +2 -2
- package/StatisticsItemNumeric/index.js.map +1 -1
- package/StatisticsLegend/index.js +2 -2
- package/StatisticsLegend/index.js.map +1 -1
- package/StatisticsTooltip/index.js +2 -2
- package/StatisticsTooltip/index.js.map +1 -1
- package/Suggester/index.js +2 -2
- package/Suggester/index.js.map +1 -1
- package/SunBurst/index.js +2 -2
- package/SunBurst/index.js.map +1 -1
- package/TabSwitcher/index.js +2 -2
- package/TabSwitcher/index.js.map +1 -1
- package/Title/index.js +2 -2
- package/Title/index.js.map +1 -1
- package/Toasts/Toast.d.ts +41 -0
- package/Toasts/ToastContainer.d.ts +4 -0
- package/Toasts/ToastHeader.d.ts +7 -0
- package/Toasts/index.d.ts +2 -0
- package/Toasts/index.js +2236 -0
- package/Toasts/index.js.map +1 -0
- package/ToggleButtonGroup/index.js +2 -2
- package/ToggleButtonGroup/index.js.map +1 -1
- package/Tooltip/index.js +2 -2
- package/Tooltip/index.js.map +1 -1
- package/Utils/index.js +2 -2
- package/Utils/index.js.map +1 -1
- package/{atoka-design-system-2.1.3.min.css → atoka-design-system-2.1.4.min.css} +1 -1
- package/index.d.ts +1 -0
- package/index.js +1734 -755
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/styles/atoka-bs.less +1 -1
- package/styles/variant-mixins.less +7 -7
package/Toasts/index.js
ADDED
|
@@ -0,0 +1,2236 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory(require("@fortawesome/pro-regular-svg-icons/faBellExclamation"), require("@fortawesome/pro-regular-svg-icons/faCheckCircle"), require("@fortawesome/pro-regular-svg-icons/faExclamationTriangle"), require("@fortawesome/pro-regular-svg-icons/faInfoCircle"), require("@fortawesome/react-fontawesome"), require("classnames"), require("react"), require("react-bootstrap/Form"), require("react-bootstrap/FormControl"), require("react-bootstrap/FormText"), require("react-dom"));
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define("atoka-design-system", ["@fortawesome/pro-regular-svg-icons/faBellExclamation", "@fortawesome/pro-regular-svg-icons/faCheckCircle", "@fortawesome/pro-regular-svg-icons/faExclamationTriangle", "@fortawesome/pro-regular-svg-icons/faInfoCircle", "@fortawesome/react-fontawesome", "classnames", "react", "react-bootstrap/Form", "react-bootstrap/FormControl", "react-bootstrap/FormText", "react-dom"], factory);
|
|
6
|
+
else if(typeof exports === 'object')
|
|
7
|
+
exports["atoka-design-system"] = factory(require("@fortawesome/pro-regular-svg-icons/faBellExclamation"), require("@fortawesome/pro-regular-svg-icons/faCheckCircle"), require("@fortawesome/pro-regular-svg-icons/faExclamationTriangle"), require("@fortawesome/pro-regular-svg-icons/faInfoCircle"), require("@fortawesome/react-fontawesome"), require("classnames"), require("react"), require("react-bootstrap/Form"), require("react-bootstrap/FormControl"), require("react-bootstrap/FormText"), require("react-dom"));
|
|
8
|
+
else
|
|
9
|
+
root["atoka-design-system"] = factory(root["@fortawesome/pro-regular-svg-icons/faBellExclamation"], root["@fortawesome/pro-regular-svg-icons/faCheckCircle"], root["@fortawesome/pro-regular-svg-icons/faExclamationTriangle"], root["@fortawesome/pro-regular-svg-icons/faInfoCircle"], root["@fortawesome/react-fontawesome"], root["classnames"], root["react"], root["react-bootstrap/Form"], root["react-bootstrap/FormControl"], root["react-bootstrap/FormText"], root["react-dom"]);
|
|
10
|
+
})(self, function(__WEBPACK_EXTERNAL_MODULE__9870__, __WEBPACK_EXTERNAL_MODULE__631__, __WEBPACK_EXTERNAL_MODULE__2628__, __WEBPACK_EXTERNAL_MODULE__159__, __WEBPACK_EXTERNAL_MODULE__5692__, __WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__, __WEBPACK_EXTERNAL_MODULE__8721__, __WEBPACK_EXTERNAL_MODULE__1082__, __WEBPACK_EXTERNAL_MODULE__8763__, __WEBPACK_EXTERNAL_MODULE__7111__) {
|
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
|
12
|
+
/******/ var __webpack_modules__ = ({
|
|
13
|
+
|
|
14
|
+
/***/ 4882:
|
|
15
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
16
|
+
|
|
17
|
+
"use strict";
|
|
18
|
+
|
|
19
|
+
// EXPORTS
|
|
20
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
21
|
+
"Bs4V3Wrapper": () => (/* reexport */ Bs4V3Wrapper)
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
// EXTERNAL MODULE: external "react"
|
|
25
|
+
var external_react_ = __webpack_require__(8156);
|
|
26
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
27
|
+
// EXTERNAL MODULE: external "classnames"
|
|
28
|
+
var external_classnames_ = __webpack_require__(8310);
|
|
29
|
+
var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
|
|
30
|
+
;// CONCATENATED MODULE: ./src/components/Bs4V3Wrapper/Bs4V3Wrapper.tsx
|
|
31
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
32
|
+
var extendStatics = function (d, b) {
|
|
33
|
+
extendStatics = Object.setPrototypeOf ||
|
|
34
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
35
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
36
|
+
return extendStatics(d, b);
|
|
37
|
+
};
|
|
38
|
+
return function (d, b) {
|
|
39
|
+
extendStatics(d, b);
|
|
40
|
+
function __() { this.constructor = d; }
|
|
41
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
42
|
+
};
|
|
43
|
+
})();
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
var Bs4V3Wrapper = /** @class */ (function (_super) {
|
|
48
|
+
__extends(Bs4V3Wrapper, _super);
|
|
49
|
+
function Bs4V3Wrapper() {
|
|
50
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
51
|
+
}
|
|
52
|
+
Bs4V3Wrapper.prototype.render = function () {
|
|
53
|
+
var className = external_classnames_default()('bs4-v3', this.props.className);
|
|
54
|
+
return external_react_default().createElement("div", { className: className }, this.props.children);
|
|
55
|
+
};
|
|
56
|
+
Bs4V3Wrapper.displayName = 'Bs4V3Wrapper';
|
|
57
|
+
return Bs4V3Wrapper;
|
|
58
|
+
}((external_react_default()).PureComponent));
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
;// CONCATENATED MODULE: ./src/components/Bs4V3Wrapper/index.ts
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
/***/ }),
|
|
66
|
+
|
|
67
|
+
/***/ 9316:
|
|
68
|
+
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
69
|
+
|
|
70
|
+
"use strict";
|
|
71
|
+
|
|
72
|
+
// UNUSED EXPORTS: Form
|
|
73
|
+
|
|
74
|
+
// EXTERNAL MODULE: external "react"
|
|
75
|
+
var external_react_ = __webpack_require__(8156);
|
|
76
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
77
|
+
// EXTERNAL MODULE: external "classnames"
|
|
78
|
+
var external_classnames_ = __webpack_require__(8310);
|
|
79
|
+
var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
|
|
80
|
+
// EXTERNAL MODULE: external "react-bootstrap/Form"
|
|
81
|
+
var Form_ = __webpack_require__(8721);
|
|
82
|
+
var Form_default = /*#__PURE__*/__webpack_require__.n(Form_);
|
|
83
|
+
;// CONCATENATED MODULE: ./src/components/Form/FormLabel.tsx
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
var FormLabel = external_react_default().memo(function (props) {
|
|
89
|
+
var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-label');
|
|
90
|
+
return external_react_default().createElement((Form_default()).Label, { className: className }, props.children);
|
|
91
|
+
});
|
|
92
|
+
FormLabel.displayName = 'FormLabel';
|
|
93
|
+
|
|
94
|
+
// EXTERNAL MODULE: ./src/components/Form/FormControl.tsx + 1 modules
|
|
95
|
+
var FormControl = __webpack_require__(3422);
|
|
96
|
+
;// CONCATENATED MODULE: ./src/components/Form/FormCheckbox.tsx
|
|
97
|
+
var __assign = (undefined && undefined.__assign) || function () {
|
|
98
|
+
__assign = Object.assign || function(t) {
|
|
99
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
100
|
+
s = arguments[i];
|
|
101
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
102
|
+
t[p] = s[p];
|
|
103
|
+
}
|
|
104
|
+
return t;
|
|
105
|
+
};
|
|
106
|
+
return __assign.apply(this, arguments);
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
var FormCheckbox = function (props) {
|
|
113
|
+
var _a;
|
|
114
|
+
var className = external_classnames_default()('atoka-form-checkbox', props === null || props === void 0 ? void 0 : props.className);
|
|
115
|
+
return external_react_default().createElement((Form_default()).Check, __assign({ type: 'checkbox' }, props, { custom: true, className: className, label: (_a = props.label) !== null && _a !== void 0 ? _a : '' }));
|
|
116
|
+
};
|
|
117
|
+
FormCheckbox.displayName = 'FormCheckbox';
|
|
118
|
+
|
|
119
|
+
;// CONCATENATED MODULE: ./src/components/Form/FormRadio.tsx
|
|
120
|
+
var FormRadio_assign = (undefined && undefined.__assign) || function () {
|
|
121
|
+
FormRadio_assign = Object.assign || function(t) {
|
|
122
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
123
|
+
s = arguments[i];
|
|
124
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
125
|
+
t[p] = s[p];
|
|
126
|
+
}
|
|
127
|
+
return t;
|
|
128
|
+
};
|
|
129
|
+
return FormRadio_assign.apply(this, arguments);
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
var FormRadio = function (props) {
|
|
136
|
+
var _a;
|
|
137
|
+
var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-radio');
|
|
138
|
+
return external_react_default().createElement((Form_default()).Check, FormRadio_assign({ type: 'radio' }, props, { custom: true, className: className, label: (_a = props.label) !== null && _a !== void 0 ? _a : '' }));
|
|
139
|
+
};
|
|
140
|
+
FormRadio.displayName = 'FormRadio';
|
|
141
|
+
|
|
142
|
+
// EXTERNAL MODULE: external "react-bootstrap/FormText"
|
|
143
|
+
var FormText_ = __webpack_require__(8763);
|
|
144
|
+
var FormText_default = /*#__PURE__*/__webpack_require__.n(FormText_);
|
|
145
|
+
;// CONCATENATED MODULE: ./src/components/Form/FormHelp.tsx
|
|
146
|
+
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
147
|
+
var t = {};
|
|
148
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
149
|
+
t[p] = s[p];
|
|
150
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
151
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
152
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
153
|
+
t[p[i]] = s[p[i]];
|
|
154
|
+
}
|
|
155
|
+
return t;
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
var FormHelp = external_react_default().memo(function (_a) {
|
|
162
|
+
var children = _a.children, props = __rest(_a, ["children"]);
|
|
163
|
+
var className = external_classnames_default()('d-block', props === null || props === void 0 ? void 0 : props.className);
|
|
164
|
+
return (external_react_default().createElement((FormText_default()), { bsPrefix: 'atoka-form-help', className: className }, children));
|
|
165
|
+
});
|
|
166
|
+
FormHelp.displayName = 'FormHelp';
|
|
167
|
+
|
|
168
|
+
;// CONCATENATED MODULE: ./src/components/Form/Form.tsx
|
|
169
|
+
var Form_assign = (undefined && undefined.__assign) || function () {
|
|
170
|
+
Form_assign = Object.assign || function(t) {
|
|
171
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
172
|
+
s = arguments[i];
|
|
173
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
174
|
+
t[p] = s[p];
|
|
175
|
+
}
|
|
176
|
+
return t;
|
|
177
|
+
};
|
|
178
|
+
return Form_assign.apply(this, arguments);
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
var Form = function (props) {
|
|
190
|
+
var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form');
|
|
191
|
+
return (external_react_default().createElement((Form_default()), Form_assign({}, props, { className: className }), props.children));
|
|
192
|
+
};
|
|
193
|
+
Form.displayName = 'Form';
|
|
194
|
+
Form.Control = FormControl/* FormControl */.N;
|
|
195
|
+
Form.Label = FormLabel;
|
|
196
|
+
Form.Checkbox = FormCheckbox;
|
|
197
|
+
Form.Radio = FormRadio;
|
|
198
|
+
Form.File = (Form_default()).File;
|
|
199
|
+
Form.Switch = (Form_default()).Switch;
|
|
200
|
+
Form.Help = FormHelp;
|
|
201
|
+
Form.Group = (Form_default()).Group;
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
/***/ }),
|
|
206
|
+
|
|
207
|
+
/***/ 3422:
|
|
208
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
209
|
+
|
|
210
|
+
"use strict";
|
|
211
|
+
|
|
212
|
+
// EXPORTS
|
|
213
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
214
|
+
"N": () => (/* binding */ FormControl)
|
|
215
|
+
});
|
|
216
|
+
|
|
217
|
+
// EXTERNAL MODULE: external "react"
|
|
218
|
+
var external_react_ = __webpack_require__(8156);
|
|
219
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
220
|
+
// EXTERNAL MODULE: external "classnames"
|
|
221
|
+
var external_classnames_ = __webpack_require__(8310);
|
|
222
|
+
var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
|
|
223
|
+
// EXTERNAL MODULE: external "react-bootstrap/FormControl"
|
|
224
|
+
var FormControl_ = __webpack_require__(1082);
|
|
225
|
+
var FormControl_default = /*#__PURE__*/__webpack_require__.n(FormControl_);
|
|
226
|
+
;// CONCATENATED MODULE: ./src/components/Form/FormControlFeedBack.tsx
|
|
227
|
+
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
228
|
+
var t = {};
|
|
229
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
230
|
+
t[p] = s[p];
|
|
231
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
232
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
233
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
234
|
+
t[p[i]] = s[p[i]];
|
|
235
|
+
}
|
|
236
|
+
return t;
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
var FormControlFeedBack = external_react_default().memo(function (_a) {
|
|
242
|
+
var _b = _a.show, show = _b === void 0 ? true : _b, props = __rest(_a, ["show"]);
|
|
243
|
+
var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-control-feedback', {
|
|
244
|
+
'd-block': show,
|
|
245
|
+
});
|
|
246
|
+
return (external_react_default().createElement((FormControl_default()).Feedback, { type: props.type, className: className }, props.children));
|
|
247
|
+
});
|
|
248
|
+
FormControlFeedBack.displayName = ' FormControlFeedBack';
|
|
249
|
+
|
|
250
|
+
;// CONCATENATED MODULE: ./src/components/Form/FormControl.tsx
|
|
251
|
+
var FormControl_rest = (undefined && undefined.__rest) || function (s, e) {
|
|
252
|
+
var t = {};
|
|
253
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
254
|
+
t[p] = s[p];
|
|
255
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
256
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
257
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
258
|
+
t[p[i]] = s[p[i]];
|
|
259
|
+
}
|
|
260
|
+
return t;
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
var FormControlComponent = external_react_default().forwardRef(function (_a, ref) {
|
|
268
|
+
var _b = _a.size, size = _b === void 0 ? 'md' : _b, props = FormControl_rest(_a, ["size"]);
|
|
269
|
+
var className = external_classnames_default()('atoka-form-control', props === null || props === void 0 ? void 0 : props.className, {
|
|
270
|
+
'atoka-shadow': props.withShadow,
|
|
271
|
+
'disabled': props.disabled,
|
|
272
|
+
});
|
|
273
|
+
return (external_react_default().createElement((FormControl_default()), { as: props.as, rows: props.rows, cols: props.cols, placeholder: props.placeholder, className: className, disabled: props.disabled, readOnly: props.readOnly, value: props.value, onChange: props.onChange, onKeyPress: props.onKeyPress, onKeyDown: props.onKeyDown, defaultValue: props.defaultValue, size: size === 'md' ? undefined : size, type: props.type, id: props.id, isValid: props.isValid, isInvalid: props.isInvalid, ref: ref, autoComplete: 'off' }, props.children));
|
|
274
|
+
});
|
|
275
|
+
FormControlComponent.displayName = 'FormControlComponent';
|
|
276
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
277
|
+
var FormControl = FormControlComponent;
|
|
278
|
+
FormControl.FeedBack = FormControlFeedBack;
|
|
279
|
+
FormControl.displayName = 'FormControl';
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
/***/ }),
|
|
284
|
+
|
|
285
|
+
/***/ 363:
|
|
286
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
287
|
+
|
|
288
|
+
"use strict";
|
|
289
|
+
// ESM COMPAT FLAG
|
|
290
|
+
__webpack_require__.r(__webpack_exports__);
|
|
291
|
+
|
|
292
|
+
// EXPORTS
|
|
293
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
294
|
+
"Toast": () => (/* reexport */ Toast_Toast),
|
|
295
|
+
"ToastContainer": () => (/* reexport */ ToastContainer),
|
|
296
|
+
"ToastProps": () => (/* reexport */ Toasts_Toast_namespaceObject.ToastProps),
|
|
297
|
+
"ToastVariant": () => (/* reexport */ Toasts_Toast_namespaceObject.ToastVariant)
|
|
298
|
+
});
|
|
299
|
+
|
|
300
|
+
// NAMESPACE OBJECT: ./src/components/Toasts/Toast.tsx
|
|
301
|
+
var Toasts_Toast_namespaceObject = {};
|
|
302
|
+
__webpack_require__.r(Toasts_Toast_namespaceObject);
|
|
303
|
+
__webpack_require__.d(Toasts_Toast_namespaceObject, {
|
|
304
|
+
"F": () => (Toast_Toast)
|
|
305
|
+
});
|
|
306
|
+
|
|
307
|
+
// EXTERNAL MODULE: external "classnames"
|
|
308
|
+
var external_classnames_ = __webpack_require__(8310);
|
|
309
|
+
var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
|
|
310
|
+
// EXTERNAL MODULE: external "react"
|
|
311
|
+
var external_react_ = __webpack_require__(8156);
|
|
312
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
313
|
+
;// CONCATENATED MODULE: ./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
314
|
+
function extends_extends() {
|
|
315
|
+
extends_extends = Object.assign || function (target) {
|
|
316
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
317
|
+
var source = arguments[i];
|
|
318
|
+
|
|
319
|
+
for (var key in source) {
|
|
320
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
321
|
+
target[key] = source[key];
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
return target;
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
return extends_extends.apply(this, arguments);
|
|
330
|
+
}
|
|
331
|
+
;// CONCATENATED MODULE: ./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
332
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
333
|
+
if (source == null) return {};
|
|
334
|
+
var target = {};
|
|
335
|
+
var sourceKeys = Object.keys(source);
|
|
336
|
+
var key, i;
|
|
337
|
+
|
|
338
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
339
|
+
key = sourceKeys[i];
|
|
340
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
341
|
+
target[key] = source[key];
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
return target;
|
|
345
|
+
}
|
|
346
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMounted.js
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Track whether a component is current mounted. Generally less preferable than
|
|
350
|
+
* properlly canceling effects so they don't run after a component is unmounted,
|
|
351
|
+
* but helpful in cases where that isn't feasible, such as a `Promise` resolution.
|
|
352
|
+
*
|
|
353
|
+
* @returns a function that returns the current isMounted state of the component
|
|
354
|
+
*
|
|
355
|
+
* ```ts
|
|
356
|
+
* const [data, setData] = useState(null)
|
|
357
|
+
* const isMounted = useMounted()
|
|
358
|
+
*
|
|
359
|
+
* useEffect(() => {
|
|
360
|
+
* fetchdata().then((newData) => {
|
|
361
|
+
* if (isMounted()) {
|
|
362
|
+
* setData(newData);
|
|
363
|
+
* }
|
|
364
|
+
* })
|
|
365
|
+
* })
|
|
366
|
+
* ```
|
|
367
|
+
*/
|
|
368
|
+
|
|
369
|
+
function useMounted() {
|
|
370
|
+
var mounted = (0,external_react_.useRef)(true);
|
|
371
|
+
var isMounted = (0,external_react_.useRef)(function () {
|
|
372
|
+
return mounted.current;
|
|
373
|
+
});
|
|
374
|
+
(0,external_react_.useEffect)(function () {
|
|
375
|
+
return function () {
|
|
376
|
+
mounted.current = false;
|
|
377
|
+
};
|
|
378
|
+
}, []);
|
|
379
|
+
return isMounted.current;
|
|
380
|
+
}
|
|
381
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useUpdatedRef.js
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Returns a ref that is immediately updated with the new value
|
|
385
|
+
*
|
|
386
|
+
* @param value The Ref value
|
|
387
|
+
* @category refs
|
|
388
|
+
*/
|
|
389
|
+
|
|
390
|
+
function useUpdatedRef(value) {
|
|
391
|
+
var valueRef = (0,external_react_.useRef)(value);
|
|
392
|
+
valueRef.current = value;
|
|
393
|
+
return valueRef;
|
|
394
|
+
}
|
|
395
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useWillUnmount.js
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* Attach a callback that fires when a component unmounts
|
|
400
|
+
*
|
|
401
|
+
* @param fn Handler to run when the component unmounts
|
|
402
|
+
* @category effects
|
|
403
|
+
*/
|
|
404
|
+
|
|
405
|
+
function useWillUnmount(fn) {
|
|
406
|
+
var onUnmount = useUpdatedRef(fn);
|
|
407
|
+
(0,external_react_.useEffect)(function () {
|
|
408
|
+
return function () {
|
|
409
|
+
return onUnmount.current();
|
|
410
|
+
};
|
|
411
|
+
}, []);
|
|
412
|
+
}
|
|
413
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useTimeout.js
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
/*
|
|
418
|
+
* Browsers including Internet Explorer, Chrome, Safari, and Firefox store the
|
|
419
|
+
* delay as a 32-bit signed integer internally. This causes an integer overflow
|
|
420
|
+
* when using delays larger than 2,147,483,647 ms (about 24.8 days),
|
|
421
|
+
* resulting in the timeout being executed immediately.
|
|
422
|
+
*
|
|
423
|
+
* via: https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout
|
|
424
|
+
*/
|
|
425
|
+
|
|
426
|
+
var MAX_DELAY_MS = Math.pow(2, 31) - 1;
|
|
427
|
+
|
|
428
|
+
function setChainedTimeout(handleRef, fn, timeoutAtMs) {
|
|
429
|
+
var delayMs = timeoutAtMs - Date.now();
|
|
430
|
+
handleRef.current = delayMs <= MAX_DELAY_MS ? setTimeout(fn, delayMs) : setTimeout(function () {
|
|
431
|
+
return setChainedTimeout(handleRef, fn, timeoutAtMs);
|
|
432
|
+
}, MAX_DELAY_MS);
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* Returns a controller object for setting a timeout that is properly cleaned up
|
|
436
|
+
* once the component unmounts. New timeouts cancel and replace existing ones.
|
|
437
|
+
*
|
|
438
|
+
*
|
|
439
|
+
*
|
|
440
|
+
* ```tsx
|
|
441
|
+
* const { set, clear } = useTimeout();
|
|
442
|
+
* const [hello, showHello] = useState(false);
|
|
443
|
+
* //Display hello after 5 seconds
|
|
444
|
+
* set(() => showHello(true), 5000);
|
|
445
|
+
* return (
|
|
446
|
+
* <div className="App">
|
|
447
|
+
* {hello ? <h3>Hello</h3> : null}
|
|
448
|
+
* </div>
|
|
449
|
+
* );
|
|
450
|
+
* ```
|
|
451
|
+
*/
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
function useTimeout() {
|
|
455
|
+
var isMounted = useMounted(); // types are confused between node and web here IDK
|
|
456
|
+
|
|
457
|
+
var handleRef = (0,external_react_.useRef)();
|
|
458
|
+
useWillUnmount(function () {
|
|
459
|
+
return clearTimeout(handleRef.current);
|
|
460
|
+
});
|
|
461
|
+
return (0,external_react_.useMemo)(function () {
|
|
462
|
+
var clear = function clear() {
|
|
463
|
+
return clearTimeout(handleRef.current);
|
|
464
|
+
};
|
|
465
|
+
|
|
466
|
+
function set(fn, delayMs) {
|
|
467
|
+
if (delayMs === void 0) {
|
|
468
|
+
delayMs = 0;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
if (!isMounted()) return;
|
|
472
|
+
clear();
|
|
473
|
+
|
|
474
|
+
if (delayMs <= MAX_DELAY_MS) {
|
|
475
|
+
// For simplicity, if the timeout is short, just set a normal timeout.
|
|
476
|
+
handleRef.current = setTimeout(fn, delayMs);
|
|
477
|
+
} else {
|
|
478
|
+
setChainedTimeout(handleRef, fn, Date.now() + delayMs);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
return {
|
|
483
|
+
set: set,
|
|
484
|
+
clear: clear
|
|
485
|
+
};
|
|
486
|
+
}, []);
|
|
487
|
+
}
|
|
488
|
+
// EXTERNAL MODULE: ./node_modules/react-transition-group/esm/Transition.js + 1 modules
|
|
489
|
+
var Transition = __webpack_require__(6113);
|
|
490
|
+
;// CONCATENATED MODULE: ./node_modules/dom-helpers/esm/ownerDocument.js
|
|
491
|
+
function ownerDocument(node) {
|
|
492
|
+
return node && node.ownerDocument || document;
|
|
493
|
+
}
|
|
494
|
+
;// CONCATENATED MODULE: ./node_modules/dom-helpers/esm/ownerWindow.js
|
|
495
|
+
|
|
496
|
+
function ownerWindow(node) {
|
|
497
|
+
var doc = ownerDocument(node);
|
|
498
|
+
return doc && doc.defaultView || window;
|
|
499
|
+
}
|
|
500
|
+
;// CONCATENATED MODULE: ./node_modules/dom-helpers/esm/getComputedStyle.js
|
|
501
|
+
|
|
502
|
+
function getComputedStyle(node, psuedoElement) {
|
|
503
|
+
return ownerWindow(node).getComputedStyle(node, psuedoElement);
|
|
504
|
+
}
|
|
505
|
+
;// CONCATENATED MODULE: ./node_modules/dom-helpers/esm/hyphenate.js
|
|
506
|
+
var rUpper = /([A-Z])/g;
|
|
507
|
+
function hyphenate(string) {
|
|
508
|
+
return string.replace(rUpper, '-$1').toLowerCase();
|
|
509
|
+
}
|
|
510
|
+
;// CONCATENATED MODULE: ./node_modules/dom-helpers/esm/hyphenateStyle.js
|
|
511
|
+
/**
|
|
512
|
+
* Copyright 2013-2014, Facebook, Inc.
|
|
513
|
+
* All rights reserved.
|
|
514
|
+
* https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/hyphenateStyleName.js
|
|
515
|
+
*/
|
|
516
|
+
|
|
517
|
+
var msPattern = /^ms-/;
|
|
518
|
+
function hyphenateStyleName(string) {
|
|
519
|
+
return hyphenate(string).replace(msPattern, '-ms-');
|
|
520
|
+
}
|
|
521
|
+
;// CONCATENATED MODULE: ./node_modules/dom-helpers/esm/isTransform.js
|
|
522
|
+
var supportedTransforms = /^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;
|
|
523
|
+
function isTransform(value) {
|
|
524
|
+
return !!(value && supportedTransforms.test(value));
|
|
525
|
+
}
|
|
526
|
+
;// CONCATENATED MODULE: ./node_modules/dom-helpers/esm/css.js
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
function style(node, property) {
|
|
532
|
+
var css = '';
|
|
533
|
+
var transforms = '';
|
|
534
|
+
|
|
535
|
+
if (typeof property === 'string') {
|
|
536
|
+
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle(node).getPropertyValue(hyphenateStyleName(property));
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
Object.keys(property).forEach(function (key) {
|
|
540
|
+
var value = property[key];
|
|
541
|
+
|
|
542
|
+
if (!value && value !== 0) {
|
|
543
|
+
node.style.removeProperty(hyphenateStyleName(key));
|
|
544
|
+
} else if (isTransform(key)) {
|
|
545
|
+
transforms += key + "(" + value + ") ";
|
|
546
|
+
} else {
|
|
547
|
+
css += hyphenateStyleName(key) + ": " + value + ";";
|
|
548
|
+
}
|
|
549
|
+
});
|
|
550
|
+
|
|
551
|
+
if (transforms) {
|
|
552
|
+
css += "transform: " + transforms + ";";
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
node.style.cssText += ";" + css;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
/* harmony default export */ const css = (style);
|
|
559
|
+
;// CONCATENATED MODULE: ./node_modules/dom-helpers/esm/canUseDOM.js
|
|
560
|
+
/* harmony default export */ const canUseDOM = (!!(typeof window !== 'undefined' && window.document && window.document.createElement));
|
|
561
|
+
;// CONCATENATED MODULE: ./node_modules/dom-helpers/esm/addEventListener.js
|
|
562
|
+
/* eslint-disable no-return-assign */
|
|
563
|
+
|
|
564
|
+
var optionsSupported = false;
|
|
565
|
+
var onceSupported = false;
|
|
566
|
+
|
|
567
|
+
try {
|
|
568
|
+
var options = {
|
|
569
|
+
get passive() {
|
|
570
|
+
return optionsSupported = true;
|
|
571
|
+
},
|
|
572
|
+
|
|
573
|
+
get once() {
|
|
574
|
+
// eslint-disable-next-line no-multi-assign
|
|
575
|
+
return onceSupported = optionsSupported = true;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
};
|
|
579
|
+
|
|
580
|
+
if (canUseDOM) {
|
|
581
|
+
window.addEventListener('test', options, options);
|
|
582
|
+
window.removeEventListener('test', options, true);
|
|
583
|
+
}
|
|
584
|
+
} catch (e) {
|
|
585
|
+
/* */
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* An `addEventListener` ponyfill, supports the `once` option
|
|
589
|
+
*/
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
function addEventListener(node, eventName, handler, options) {
|
|
593
|
+
if (options && typeof options !== 'boolean' && !onceSupported) {
|
|
594
|
+
var once = options.once,
|
|
595
|
+
capture = options.capture;
|
|
596
|
+
var wrappedHandler = handler;
|
|
597
|
+
|
|
598
|
+
if (!onceSupported && once) {
|
|
599
|
+
wrappedHandler = handler.__once || function onceHandler(event) {
|
|
600
|
+
this.removeEventListener(eventName, onceHandler, capture);
|
|
601
|
+
handler.call(this, event);
|
|
602
|
+
};
|
|
603
|
+
|
|
604
|
+
handler.__once = wrappedHandler;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
node.addEventListener(eventName, wrappedHandler, optionsSupported ? options : capture);
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
node.addEventListener(eventName, handler, options);
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
/* harmony default export */ const esm_addEventListener = (addEventListener);
|
|
614
|
+
;// CONCATENATED MODULE: ./node_modules/dom-helpers/esm/removeEventListener.js
|
|
615
|
+
function removeEventListener(node, eventName, handler, options) {
|
|
616
|
+
var capture = options && typeof options !== 'boolean' ? options.capture : options;
|
|
617
|
+
node.removeEventListener(eventName, handler, capture);
|
|
618
|
+
|
|
619
|
+
if (handler.__once) {
|
|
620
|
+
node.removeEventListener(eventName, handler.__once, capture);
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
/* harmony default export */ const esm_removeEventListener = (removeEventListener);
|
|
625
|
+
;// CONCATENATED MODULE: ./node_modules/dom-helpers/esm/listen.js
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
function listen(node, eventName, handler, options) {
|
|
630
|
+
esm_addEventListener(node, eventName, handler, options);
|
|
631
|
+
return function () {
|
|
632
|
+
esm_removeEventListener(node, eventName, handler, options);
|
|
633
|
+
};
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
/* harmony default export */ const esm_listen = (listen);
|
|
637
|
+
;// CONCATENATED MODULE: ./node_modules/dom-helpers/esm/transitionEnd.js
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
function parseDuration(node) {
|
|
642
|
+
var str = css(node, 'transitionDuration') || '';
|
|
643
|
+
var mult = str.indexOf('ms') === -1 ? 1000 : 1;
|
|
644
|
+
return parseFloat(str) * mult;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
function triggerTransitionEnd(element) {
|
|
648
|
+
var evt = document.createEvent('HTMLEvents');
|
|
649
|
+
evt.initEvent('transitionend', true, true);
|
|
650
|
+
element.dispatchEvent(evt);
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
function emulateTransitionEnd(element, duration, padding) {
|
|
654
|
+
if (padding === void 0) {
|
|
655
|
+
padding = 5;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
var called = false;
|
|
659
|
+
var handle = setTimeout(function () {
|
|
660
|
+
if (!called) triggerTransitionEnd(element);
|
|
661
|
+
}, duration + padding);
|
|
662
|
+
var remove = esm_listen(element, 'transitionend', function () {
|
|
663
|
+
called = true;
|
|
664
|
+
}, {
|
|
665
|
+
once: true
|
|
666
|
+
});
|
|
667
|
+
return function () {
|
|
668
|
+
clearTimeout(handle);
|
|
669
|
+
remove();
|
|
670
|
+
};
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
function transitionEnd(element, handler, duration, padding) {
|
|
674
|
+
if (duration == null) duration = parseDuration(element) || 0;
|
|
675
|
+
var removeEmulate = emulateTransitionEnd(element, duration, padding);
|
|
676
|
+
var remove = esm_listen(element, 'transitionend', handler);
|
|
677
|
+
return function () {
|
|
678
|
+
removeEmulate();
|
|
679
|
+
remove();
|
|
680
|
+
};
|
|
681
|
+
}
|
|
682
|
+
;// CONCATENATED MODULE: ./node_modules/react-bootstrap/esm/transitionEndListener.js
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
function transitionEndListener_parseDuration(node, property) {
|
|
687
|
+
var str = css(node, property) || '';
|
|
688
|
+
var mult = str.indexOf('ms') === -1 ? 1000 : 1;
|
|
689
|
+
return parseFloat(str) * mult;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
function transitionEndListener(element, handler) {
|
|
693
|
+
var duration = transitionEndListener_parseDuration(element, 'transitionDuration');
|
|
694
|
+
var delay = transitionEndListener_parseDuration(element, 'transitionDelay');
|
|
695
|
+
var remove = transitionEnd(element, function (e) {
|
|
696
|
+
if (e.target === element) {
|
|
697
|
+
remove();
|
|
698
|
+
handler(e);
|
|
699
|
+
}
|
|
700
|
+
}, duration + delay);
|
|
701
|
+
}
|
|
702
|
+
;// CONCATENATED MODULE: ./node_modules/react-bootstrap/esm/triggerBrowserReflow.js
|
|
703
|
+
// reading a dimension prop will cause the browser to recalculate,
|
|
704
|
+
// which will let our animations work
|
|
705
|
+
function triggerBrowserReflow(node) {
|
|
706
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
707
|
+
node.offsetHeight;
|
|
708
|
+
}
|
|
709
|
+
;// CONCATENATED MODULE: ./node_modules/react-bootstrap/esm/Fade.js
|
|
710
|
+
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
var _fadeStyles;
|
|
714
|
+
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
var defaultProps = {
|
|
721
|
+
"in": false,
|
|
722
|
+
timeout: 300,
|
|
723
|
+
mountOnEnter: false,
|
|
724
|
+
unmountOnExit: false,
|
|
725
|
+
appear: false
|
|
726
|
+
};
|
|
727
|
+
var fadeStyles = (_fadeStyles = {}, _fadeStyles[Transition/* ENTERING */.d0] = 'show', _fadeStyles[Transition/* ENTERED */.cn] = 'show', _fadeStyles);
|
|
728
|
+
var Fade = /*#__PURE__*/external_react_default().forwardRef(function (_ref, ref) {
|
|
729
|
+
var className = _ref.className,
|
|
730
|
+
children = _ref.children,
|
|
731
|
+
props = _objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
732
|
+
|
|
733
|
+
var handleEnter = (0,external_react_.useCallback)(function (node) {
|
|
734
|
+
triggerBrowserReflow(node);
|
|
735
|
+
if (props.onEnter) props.onEnter(node);
|
|
736
|
+
}, [props]);
|
|
737
|
+
return /*#__PURE__*/external_react_default().createElement(Transition/* default */.ZP, extends_extends({
|
|
738
|
+
ref: ref,
|
|
739
|
+
addEndListener: transitionEndListener
|
|
740
|
+
}, props, {
|
|
741
|
+
onEnter: handleEnter
|
|
742
|
+
}), function (status, innerProps) {
|
|
743
|
+
return /*#__PURE__*/external_react_default().cloneElement(children, extends_extends({}, innerProps, {
|
|
744
|
+
className: external_classnames_default()('fade', className, children.props.className, fadeStyles[status])
|
|
745
|
+
}));
|
|
746
|
+
});
|
|
747
|
+
});
|
|
748
|
+
Fade.defaultProps = defaultProps;
|
|
749
|
+
Fade.displayName = 'Fade';
|
|
750
|
+
/* harmony default export */ const esm_Fade = (Fade);
|
|
751
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useCommittedRef.js
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* Creates a `Ref` whose value is updated in an effect, ensuring the most recent
|
|
755
|
+
* value is the one rendered with. Generally only required for Concurrent mode usage
|
|
756
|
+
* where previous work in `render()` may be discarded befor being used.
|
|
757
|
+
*
|
|
758
|
+
* This is safe to access in an event handler.
|
|
759
|
+
*
|
|
760
|
+
* @param value The `Ref` value
|
|
761
|
+
*/
|
|
762
|
+
|
|
763
|
+
function useCommittedRef(value) {
|
|
764
|
+
var ref = (0,external_react_.useRef)(value);
|
|
765
|
+
(0,external_react_.useEffect)(function () {
|
|
766
|
+
ref.current = value;
|
|
767
|
+
}, [value]);
|
|
768
|
+
return ref;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
/* harmony default export */ const esm_useCommittedRef = (useCommittedRef);
|
|
772
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useEventCallback.js
|
|
773
|
+
|
|
774
|
+
|
|
775
|
+
function useEventCallback(fn) {
|
|
776
|
+
var ref = esm_useCommittedRef(fn);
|
|
777
|
+
return (0,external_react_.useCallback)(function () {
|
|
778
|
+
return ref.current && ref.current.apply(ref, arguments);
|
|
779
|
+
}, [ref]);
|
|
780
|
+
}
|
|
781
|
+
;// CONCATENATED MODULE: ./node_modules/react-bootstrap/esm/ThemeProvider.js
|
|
782
|
+
|
|
783
|
+
|
|
784
|
+
var ThemeContext = /*#__PURE__*/external_react_default().createContext({});
|
|
785
|
+
var Consumer = ThemeContext.Consumer,
|
|
786
|
+
Provider = ThemeContext.Provider;
|
|
787
|
+
|
|
788
|
+
function ThemeProvider(_ref) {
|
|
789
|
+
var prefixes = _ref.prefixes,
|
|
790
|
+
children = _ref.children;
|
|
791
|
+
var copiedPrefixes = useMemo(function () {
|
|
792
|
+
return _extends({}, prefixes);
|
|
793
|
+
}, [prefixes]);
|
|
794
|
+
return /*#__PURE__*/React.createElement(Provider, {
|
|
795
|
+
value: copiedPrefixes
|
|
796
|
+
}, children);
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
800
|
+
var prefixes = (0,external_react_.useContext)(ThemeContext);
|
|
801
|
+
return prefix || prefixes[defaultPrefix] || defaultPrefix;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
function createBootstrapComponent(Component, opts) {
|
|
805
|
+
if (typeof opts === 'string') opts = {
|
|
806
|
+
prefix: opts
|
|
807
|
+
};
|
|
808
|
+
var isClassy = Component.prototype && Component.prototype.isReactComponent; // If it's a functional component make sure we don't break it with a ref
|
|
809
|
+
|
|
810
|
+
var _opts = opts,
|
|
811
|
+
prefix = _opts.prefix,
|
|
812
|
+
_opts$forwardRefAs = _opts.forwardRefAs,
|
|
813
|
+
forwardRefAs = _opts$forwardRefAs === void 0 ? isClassy ? 'ref' : 'innerRef' : _opts$forwardRefAs;
|
|
814
|
+
var Wrapped = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
815
|
+
var props = _extends({}, _ref2);
|
|
816
|
+
|
|
817
|
+
props[forwardRefAs] = ref;
|
|
818
|
+
var bsPrefix = useBootstrapPrefix(props.bsPrefix, prefix);
|
|
819
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
820
|
+
bsPrefix: bsPrefix
|
|
821
|
+
}));
|
|
822
|
+
});
|
|
823
|
+
Wrapped.displayName = "Bootstrap(" + (Component.displayName || Component.name) + ")";
|
|
824
|
+
return Wrapped;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
|
|
828
|
+
/* harmony default export */ const esm_ThemeProvider = ((/* unused pure expression or super */ null && (ThemeProvider)));
|
|
829
|
+
// EXTERNAL MODULE: ./node_modules/prop-types/index.js
|
|
830
|
+
var prop_types = __webpack_require__(8691);
|
|
831
|
+
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
|
832
|
+
;// CONCATENATED MODULE: ./node_modules/react-bootstrap/esm/CloseButton.js
|
|
833
|
+
|
|
834
|
+
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
var propTypes = {
|
|
839
|
+
label: (prop_types_default()).string.isRequired,
|
|
840
|
+
onClick: (prop_types_default()).func
|
|
841
|
+
};
|
|
842
|
+
var CloseButton_defaultProps = {
|
|
843
|
+
label: 'Close'
|
|
844
|
+
};
|
|
845
|
+
var CloseButton = /*#__PURE__*/external_react_default().forwardRef(function (_ref, ref) {
|
|
846
|
+
var label = _ref.label,
|
|
847
|
+
onClick = _ref.onClick,
|
|
848
|
+
className = _ref.className,
|
|
849
|
+
props = _objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
850
|
+
|
|
851
|
+
return /*#__PURE__*/external_react_default().createElement("button", extends_extends({
|
|
852
|
+
ref: ref,
|
|
853
|
+
type: "button",
|
|
854
|
+
className: external_classnames_default()('close', className),
|
|
855
|
+
onClick: onClick
|
|
856
|
+
}, props), /*#__PURE__*/external_react_default().createElement("span", {
|
|
857
|
+
"aria-hidden": "true"
|
|
858
|
+
}, "\xD7"), /*#__PURE__*/external_react_default().createElement("span", {
|
|
859
|
+
className: "sr-only"
|
|
860
|
+
}, label));
|
|
861
|
+
});
|
|
862
|
+
CloseButton.displayName = 'CloseButton';
|
|
863
|
+
CloseButton.propTypes = propTypes;
|
|
864
|
+
CloseButton.defaultProps = CloseButton_defaultProps;
|
|
865
|
+
/* harmony default export */ const esm_CloseButton = (CloseButton);
|
|
866
|
+
;// CONCATENATED MODULE: ./node_modules/react-bootstrap/esm/ToastContext.js
|
|
867
|
+
// TODO: check
|
|
868
|
+
|
|
869
|
+
var ToastContext = /*#__PURE__*/external_react_default().createContext({
|
|
870
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
871
|
+
onClose: function onClose() {}
|
|
872
|
+
});
|
|
873
|
+
/* harmony default export */ const esm_ToastContext = (ToastContext);
|
|
874
|
+
;// CONCATENATED MODULE: ./node_modules/react-bootstrap/esm/ToastHeader.js
|
|
875
|
+
|
|
876
|
+
|
|
877
|
+
|
|
878
|
+
|
|
879
|
+
|
|
880
|
+
|
|
881
|
+
|
|
882
|
+
|
|
883
|
+
var ToastHeader_defaultProps = {
|
|
884
|
+
closeLabel: 'Close',
|
|
885
|
+
closeButton: true
|
|
886
|
+
};
|
|
887
|
+
var ToastHeader = /*#__PURE__*/external_react_default().forwardRef(function (_ref, ref) {
|
|
888
|
+
var bsPrefix = _ref.bsPrefix,
|
|
889
|
+
closeLabel = _ref.closeLabel,
|
|
890
|
+
closeButton = _ref.closeButton,
|
|
891
|
+
className = _ref.className,
|
|
892
|
+
children = _ref.children,
|
|
893
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
894
|
+
|
|
895
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-header');
|
|
896
|
+
var context = (0,external_react_.useContext)(esm_ToastContext);
|
|
897
|
+
var handleClick = useEventCallback(function (e) {
|
|
898
|
+
if (context && context.onClose) {
|
|
899
|
+
context.onClose(e);
|
|
900
|
+
}
|
|
901
|
+
});
|
|
902
|
+
return /*#__PURE__*/external_react_default().createElement("div", extends_extends({
|
|
903
|
+
ref: ref
|
|
904
|
+
}, props, {
|
|
905
|
+
className: external_classnames_default()(bsPrefix, className)
|
|
906
|
+
}), children, closeButton && /*#__PURE__*/external_react_default().createElement(esm_CloseButton, {
|
|
907
|
+
label: closeLabel,
|
|
908
|
+
onClick: handleClick,
|
|
909
|
+
className: "ml-2 mb-1",
|
|
910
|
+
"data-dismiss": "toast"
|
|
911
|
+
}));
|
|
912
|
+
});
|
|
913
|
+
ToastHeader.displayName = 'ToastHeader';
|
|
914
|
+
ToastHeader.defaultProps = ToastHeader_defaultProps;
|
|
915
|
+
/* harmony default export */ const esm_ToastHeader = (ToastHeader);
|
|
916
|
+
;// CONCATENATED MODULE: ./node_modules/dom-helpers/esm/camelize.js
|
|
917
|
+
var rHyphen = /-(.)/g;
|
|
918
|
+
function camelize(string) {
|
|
919
|
+
return string.replace(rHyphen, function (_, chr) {
|
|
920
|
+
return chr.toUpperCase();
|
|
921
|
+
});
|
|
922
|
+
}
|
|
923
|
+
;// CONCATENATED MODULE: ./node_modules/react-bootstrap/esm/createWithBsPrefix.js
|
|
924
|
+
|
|
925
|
+
|
|
926
|
+
|
|
927
|
+
|
|
928
|
+
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
var pascalCase = function pascalCase(str) {
|
|
932
|
+
return str[0].toUpperCase() + camelize(str).slice(1);
|
|
933
|
+
}; // TODO: emstricten & fix the typing here! `createWithBsPrefix<TElementType>...`
|
|
934
|
+
|
|
935
|
+
|
|
936
|
+
function createWithBsPrefix(prefix, _temp) {
|
|
937
|
+
var _ref = _temp === void 0 ? {} : _temp,
|
|
938
|
+
_ref$displayName = _ref.displayName,
|
|
939
|
+
displayName = _ref$displayName === void 0 ? pascalCase(prefix) : _ref$displayName,
|
|
940
|
+
Component = _ref.Component,
|
|
941
|
+
defaultProps = _ref.defaultProps;
|
|
942
|
+
|
|
943
|
+
var BsComponent = /*#__PURE__*/external_react_default().forwardRef(function (_ref2, ref) {
|
|
944
|
+
var className = _ref2.className,
|
|
945
|
+
bsPrefix = _ref2.bsPrefix,
|
|
946
|
+
_ref2$as = _ref2.as,
|
|
947
|
+
Tag = _ref2$as === void 0 ? Component || 'div' : _ref2$as,
|
|
948
|
+
props = _objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
949
|
+
|
|
950
|
+
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
951
|
+
return /*#__PURE__*/external_react_default().createElement(Tag, extends_extends({
|
|
952
|
+
ref: ref,
|
|
953
|
+
className: external_classnames_default()(className, resolvedPrefix)
|
|
954
|
+
}, props));
|
|
955
|
+
});
|
|
956
|
+
BsComponent.defaultProps = defaultProps;
|
|
957
|
+
BsComponent.displayName = displayName;
|
|
958
|
+
return BsComponent;
|
|
959
|
+
}
|
|
960
|
+
;// CONCATENATED MODULE: ./node_modules/react-bootstrap/esm/ToastBody.js
|
|
961
|
+
|
|
962
|
+
/* harmony default export */ const ToastBody = (createWithBsPrefix('toast-body'));
|
|
963
|
+
;// CONCATENATED MODULE: ./node_modules/react-bootstrap/esm/Toast.js
|
|
964
|
+
|
|
965
|
+
|
|
966
|
+
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
|
|
973
|
+
|
|
974
|
+
var Toast = /*#__PURE__*/external_react_default().forwardRef(function (_ref, ref) {
|
|
975
|
+
var bsPrefix = _ref.bsPrefix,
|
|
976
|
+
className = _ref.className,
|
|
977
|
+
children = _ref.children,
|
|
978
|
+
_ref$transition = _ref.transition,
|
|
979
|
+
Transition = _ref$transition === void 0 ? esm_Fade : _ref$transition,
|
|
980
|
+
_ref$show = _ref.show,
|
|
981
|
+
show = _ref$show === void 0 ? true : _ref$show,
|
|
982
|
+
_ref$animation = _ref.animation,
|
|
983
|
+
animation = _ref$animation === void 0 ? true : _ref$animation,
|
|
984
|
+
_ref$delay = _ref.delay,
|
|
985
|
+
delay = _ref$delay === void 0 ? 3000 : _ref$delay,
|
|
986
|
+
_ref$autohide = _ref.autohide,
|
|
987
|
+
autohide = _ref$autohide === void 0 ? false : _ref$autohide,
|
|
988
|
+
onClose = _ref.onClose,
|
|
989
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
990
|
+
|
|
991
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast'); // We use refs for these, because we don't want to restart the autohide
|
|
992
|
+
// timer in case these values change.
|
|
993
|
+
|
|
994
|
+
var delayRef = (0,external_react_.useRef)(delay);
|
|
995
|
+
var onCloseRef = (0,external_react_.useRef)(onClose);
|
|
996
|
+
(0,external_react_.useEffect)(function () {
|
|
997
|
+
delayRef.current = delay;
|
|
998
|
+
onCloseRef.current = onClose;
|
|
999
|
+
}, [delay, onClose]);
|
|
1000
|
+
var autohideTimeout = useTimeout();
|
|
1001
|
+
var autohideToast = !!(autohide && show);
|
|
1002
|
+
var autohideFunc = (0,external_react_.useCallback)(function () {
|
|
1003
|
+
if (autohideToast) {
|
|
1004
|
+
onCloseRef.current == null ? void 0 : onCloseRef.current();
|
|
1005
|
+
}
|
|
1006
|
+
}, [autohideToast]);
|
|
1007
|
+
(0,external_react_.useEffect)(function () {
|
|
1008
|
+
// Only reset timer if show or autohide changes.
|
|
1009
|
+
autohideTimeout.set(autohideFunc, delayRef.current);
|
|
1010
|
+
}, [autohideTimeout, autohideFunc]);
|
|
1011
|
+
var toastContext = (0,external_react_.useMemo)(function () {
|
|
1012
|
+
return {
|
|
1013
|
+
onClose: onClose
|
|
1014
|
+
};
|
|
1015
|
+
}, [onClose]);
|
|
1016
|
+
var hasAnimation = !!(Transition && animation);
|
|
1017
|
+
var toast = /*#__PURE__*/external_react_default().createElement("div", extends_extends({}, props, {
|
|
1018
|
+
ref: ref,
|
|
1019
|
+
className: external_classnames_default()(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
1020
|
+
role: "alert",
|
|
1021
|
+
"aria-live": "assertive",
|
|
1022
|
+
"aria-atomic": "true"
|
|
1023
|
+
}), children);
|
|
1024
|
+
return /*#__PURE__*/external_react_default().createElement(esm_ToastContext.Provider, {
|
|
1025
|
+
value: toastContext
|
|
1026
|
+
}, hasAnimation && Transition ? /*#__PURE__*/external_react_default().createElement(Transition, {
|
|
1027
|
+
"in": show,
|
|
1028
|
+
unmountOnExit: true
|
|
1029
|
+
}, toast) : toast);
|
|
1030
|
+
});
|
|
1031
|
+
Toast.displayName = 'Toast';
|
|
1032
|
+
/* harmony default export */ const esm_Toast = (Object.assign(Toast, {
|
|
1033
|
+
Body: ToastBody,
|
|
1034
|
+
Header: esm_ToastHeader
|
|
1035
|
+
}));
|
|
1036
|
+
// EXTERNAL MODULE: external "@fortawesome/pro-regular-svg-icons/faExclamationTriangle"
|
|
1037
|
+
var faExclamationTriangle_ = __webpack_require__(2628);
|
|
1038
|
+
// EXTERNAL MODULE: external "@fortawesome/pro-regular-svg-icons/faBellExclamation"
|
|
1039
|
+
var faBellExclamation_ = __webpack_require__(9870);
|
|
1040
|
+
// EXTERNAL MODULE: external "@fortawesome/pro-regular-svg-icons/faCheckCircle"
|
|
1041
|
+
var faCheckCircle_ = __webpack_require__(631);
|
|
1042
|
+
// EXTERNAL MODULE: external "@fortawesome/pro-regular-svg-icons/faInfoCircle"
|
|
1043
|
+
var faInfoCircle_ = __webpack_require__(159);
|
|
1044
|
+
// EXTERNAL MODULE: ./src/components/Utils/Utils.tsx
|
|
1045
|
+
var Utils = __webpack_require__(5654);
|
|
1046
|
+
// EXTERNAL MODULE: external "@fortawesome/react-fontawesome"
|
|
1047
|
+
var react_fontawesome_ = __webpack_require__(5692);
|
|
1048
|
+
;// CONCATENATED MODULE: ./src/components/Toasts/ToastHeader.tsx
|
|
1049
|
+
|
|
1050
|
+
|
|
1051
|
+
|
|
1052
|
+
var ToastHeader_ToastHeader = external_react_default().memo(function (props) { return (external_react_default().createElement(esm_ToastHeader, { bsPrefix: 'oniru-toast-header', className: 'd-flex align-items-center' },
|
|
1053
|
+
external_react_default().createElement(react_fontawesome_.FontAwesomeIcon, { className: 'mr-2', icon: props.icon }),
|
|
1054
|
+
external_react_default().createElement("div", { className: 'w-100 text-truncate' }, props.children))); });
|
|
1055
|
+
ToastHeader_ToastHeader.displayName = 'ToastHeader';
|
|
1056
|
+
|
|
1057
|
+
;// CONCATENATED MODULE: ./src/components/Toasts/Toast.tsx
|
|
1058
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
1059
|
+
var extendStatics = function (d, b) {
|
|
1060
|
+
extendStatics = Object.setPrototypeOf ||
|
|
1061
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
1062
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
1063
|
+
return extendStatics(d, b);
|
|
1064
|
+
};
|
|
1065
|
+
return function (d, b) {
|
|
1066
|
+
extendStatics(d, b);
|
|
1067
|
+
function __() { this.constructor = d; }
|
|
1068
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1069
|
+
};
|
|
1070
|
+
})();
|
|
1071
|
+
var __assign = (undefined && undefined.__assign) || function () {
|
|
1072
|
+
__assign = Object.assign || function(t) {
|
|
1073
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
1074
|
+
s = arguments[i];
|
|
1075
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
1076
|
+
t[p] = s[p];
|
|
1077
|
+
}
|
|
1078
|
+
return t;
|
|
1079
|
+
};
|
|
1080
|
+
return __assign.apply(this, arguments);
|
|
1081
|
+
};
|
|
1082
|
+
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
|
|
1086
|
+
|
|
1087
|
+
|
|
1088
|
+
|
|
1089
|
+
|
|
1090
|
+
|
|
1091
|
+
|
|
1092
|
+
/**
|
|
1093
|
+
*
|
|
1094
|
+
* ### Overview
|
|
1095
|
+
* `Toasts` are lightweight notifications designed to mimic the push notifications that have been popularized by mobile and desktop operating systems.
|
|
1096
|
+
*
|
|
1097
|
+
* There are different types of toasts depending on the message they must show:
|
|
1098
|
+
*
|
|
1099
|
+
* - **Danger**: this toast indicates a potentially negative action that the user must take notice of
|
|
1100
|
+
* - **Warning**: this toast tells the user to proceed with caution with their actions on the platform
|
|
1101
|
+
* - **Success**: this toast is indicative that the user just performed a successful or positive action
|
|
1102
|
+
* - **Info**: this toast has the scope of letting the user know about a neutral and informative change or action on Atoka
|
|
1103
|
+
*
|
|
1104
|
+
* ### Best practices
|
|
1105
|
+
* Use toasts to notify the user of information that is either time-sensitive or relevant to the action the user is performing
|
|
1106
|
+
*
|
|
1107
|
+
* DEVELOPER NOTE: For more information about the props, check [react bootstrap](https://react-bootstrap.netlify.app/components/toasts/#toasts)
|
|
1108
|
+
*/
|
|
1109
|
+
var Toast_Toast = /** @class */ (function (_super) {
|
|
1110
|
+
__extends(Toast, _super);
|
|
1111
|
+
function Toast() {
|
|
1112
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
1113
|
+
_this.fromVariantToIcon = {
|
|
1114
|
+
danger: faExclamationTriangle_.faExclamationTriangle,
|
|
1115
|
+
warning: faBellExclamation_.faBellExclamation,
|
|
1116
|
+
info: faInfoCircle_.faInfoCircle,
|
|
1117
|
+
success: faCheckCircle_.faCheckCircle,
|
|
1118
|
+
};
|
|
1119
|
+
return _this;
|
|
1120
|
+
}
|
|
1121
|
+
Toast.prototype.getIcon = function () {
|
|
1122
|
+
var _a, _b, _c;
|
|
1123
|
+
if (this.props.icon != null) {
|
|
1124
|
+
return this.props.icon;
|
|
1125
|
+
}
|
|
1126
|
+
var icon = (_a = this.fromVariantToIcon) === null || _a === void 0 ? void 0 : _a[(_c = (_b = this.props) === null || _b === void 0 ? void 0 : _b.variant) !== null && _c !== void 0 ? _c : 'light'];
|
|
1127
|
+
return icon;
|
|
1128
|
+
};
|
|
1129
|
+
Toast.prototype.renderHeader = function (element) {
|
|
1130
|
+
var header = (0,Utils/* findChildByComponent */.z8)(element, ToastHeader_ToastHeader);
|
|
1131
|
+
return external_react_default().createElement(header.type, __assign({}, header.props, { icon: this.getIcon() }));
|
|
1132
|
+
};
|
|
1133
|
+
Toast.prototype.renderBody = function (element) {
|
|
1134
|
+
return external_react_default().createElement("div", null, (0,Utils/* findChildByComponent */.z8)(element, esm_Toast.Body));
|
|
1135
|
+
};
|
|
1136
|
+
Toast.prototype.renderContent = function () {
|
|
1137
|
+
var _this = this;
|
|
1138
|
+
var ret = [], includedComponents = { ToastHeader: false, ToastBody: false };
|
|
1139
|
+
external_react_default().Children.forEach(this.props.children, function (element) {
|
|
1140
|
+
if (element.type) {
|
|
1141
|
+
includedComponents[element.type.displayName] = true;
|
|
1142
|
+
if ((element === null || element === void 0 ? void 0 : element.type) === ToastHeader_ToastHeader) {
|
|
1143
|
+
ret.push(_this.renderHeader(element));
|
|
1144
|
+
}
|
|
1145
|
+
if ((element === null || element === void 0 ? void 0 : element.type) === esm_Toast.Body) {
|
|
1146
|
+
ret.push(_this.renderBody(element));
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
else {
|
|
1150
|
+
ret.push(element);
|
|
1151
|
+
}
|
|
1152
|
+
});
|
|
1153
|
+
if (!includedComponents.ToastHeader) {
|
|
1154
|
+
console.warn('You have to include a Header');
|
|
1155
|
+
return external_react_default().createElement("h1", null, "Error!");
|
|
1156
|
+
}
|
|
1157
|
+
if (ret.length === 0) {
|
|
1158
|
+
return null;
|
|
1159
|
+
}
|
|
1160
|
+
return ret;
|
|
1161
|
+
};
|
|
1162
|
+
Toast.prototype.render = function () {
|
|
1163
|
+
var className = external_classnames_default()('py-2 px-3', 'oniru-toast', this.props.className, "variant-" + this.props.variant);
|
|
1164
|
+
return (external_react_default().createElement(esm_Toast, __assign({}, this.props, { className: className }), this.renderContent()));
|
|
1165
|
+
};
|
|
1166
|
+
Toast.displayName = 'Toast';
|
|
1167
|
+
Toast.Header = ToastHeader_ToastHeader;
|
|
1168
|
+
Toast.Body = esm_Toast.Body;
|
|
1169
|
+
Toast.defaultProps = {
|
|
1170
|
+
variant: 'info',
|
|
1171
|
+
};
|
|
1172
|
+
return Toast;
|
|
1173
|
+
}((external_react_default()).PureComponent));
|
|
1174
|
+
/* harmony default export */ const Toasts_Toast = ((/* unused pure expression or super */ null && (Toast_Toast)));
|
|
1175
|
+
|
|
1176
|
+
|
|
1177
|
+
// EXTERNAL MODULE: ./src/components/Bs4V3Wrapper/index.ts + 1 modules
|
|
1178
|
+
var Bs4V3Wrapper = __webpack_require__(4882);
|
|
1179
|
+
;// CONCATENATED MODULE: ./src/components/Toasts/ToastContainer.tsx
|
|
1180
|
+
|
|
1181
|
+
|
|
1182
|
+
|
|
1183
|
+
|
|
1184
|
+
var ToastContainer = external_react_default().memo(function (props) {
|
|
1185
|
+
var className = external_classnames_default()('oniru-toast-container', 'position-absolute pt-2', props.className);
|
|
1186
|
+
return (external_react_default().createElement(Bs4V3Wrapper.Bs4V3Wrapper, null,
|
|
1187
|
+
external_react_default().createElement("div", { className: className }, props.children)));
|
|
1188
|
+
});
|
|
1189
|
+
ToastContainer.displayName = 'ToastContainer';
|
|
1190
|
+
|
|
1191
|
+
;// CONCATENATED MODULE: ./src/components/Toasts/index.ts
|
|
1192
|
+
// use the star because of this issue: https://github.com/babel/babel-loader/issues/603
|
|
1193
|
+
|
|
1194
|
+
|
|
1195
|
+
|
|
1196
|
+
|
|
1197
|
+
/***/ }),
|
|
1198
|
+
|
|
1199
|
+
/***/ 5654:
|
|
1200
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1201
|
+
|
|
1202
|
+
"use strict";
|
|
1203
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1204
|
+
/* harmony export */ "z8": () => (/* binding */ findChildByComponent)
|
|
1205
|
+
/* harmony export */ });
|
|
1206
|
+
/* unused harmony exports findChildrenByComponent, hasChildIconOrCheckboxComponent, scrollToTop, zip, sortObjDesc, clone, getDebouncer, deepEqual, rgbToHex */
|
|
1207
|
+
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5692);
|
|
1208
|
+
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__);
|
|
1209
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8156);
|
|
1210
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
1211
|
+
/* harmony import */ var _Form_Form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9316);
|
|
1212
|
+
var __read = (undefined && undefined.__read) || function (o, n) {
|
|
1213
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
1214
|
+
if (!m) return o;
|
|
1215
|
+
var i = m.call(o), r, ar = [], e;
|
|
1216
|
+
try {
|
|
1217
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
1218
|
+
}
|
|
1219
|
+
catch (error) { e = { error: error }; }
|
|
1220
|
+
finally {
|
|
1221
|
+
try {
|
|
1222
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
1223
|
+
}
|
|
1224
|
+
finally { if (e) throw e.error; }
|
|
1225
|
+
}
|
|
1226
|
+
return ar;
|
|
1227
|
+
};
|
|
1228
|
+
|
|
1229
|
+
|
|
1230
|
+
|
|
1231
|
+
function findChildrenByComponent(children,
|
|
1232
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1233
|
+
component) {
|
|
1234
|
+
var ret = [];
|
|
1235
|
+
react__WEBPACK_IMPORTED_MODULE_1___default().Children.forEach(children, function (element) {
|
|
1236
|
+
if ((element === null || element === void 0 ? void 0 : element.type) === component) {
|
|
1237
|
+
ret.push(element);
|
|
1238
|
+
}
|
|
1239
|
+
});
|
|
1240
|
+
return ret;
|
|
1241
|
+
}
|
|
1242
|
+
function findChildByComponent(children,
|
|
1243
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1244
|
+
component) {
|
|
1245
|
+
var _a, _b;
|
|
1246
|
+
return (_b = (_a = findChildrenByComponent(children, component)) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : null;
|
|
1247
|
+
}
|
|
1248
|
+
function hasChildIconOrCheckboxComponent(children) {
|
|
1249
|
+
var ret = false;
|
|
1250
|
+
React.Children.forEach(children, function (element) {
|
|
1251
|
+
if ((element === null || element === void 0 ? void 0 : element.type) != null &&
|
|
1252
|
+
((element === null || element === void 0 ? void 0 : element.type) === FontAwesomeIcon || (element === null || element === void 0 ? void 0 : element.type) === 'i' || (element === null || element === void 0 ? void 0 : element.type) === Form.Checkbox)) {
|
|
1253
|
+
ret = true;
|
|
1254
|
+
return;
|
|
1255
|
+
}
|
|
1256
|
+
});
|
|
1257
|
+
return ret;
|
|
1258
|
+
}
|
|
1259
|
+
function scrollToTop() {
|
|
1260
|
+
window.scrollTo(0, 0);
|
|
1261
|
+
}
|
|
1262
|
+
function zip(arr1, arr2) {
|
|
1263
|
+
var ret = [];
|
|
1264
|
+
var i = 0;
|
|
1265
|
+
while (arr1[i]) {
|
|
1266
|
+
ret.push(arr1[i]);
|
|
1267
|
+
ret.push(arr2[i++]);
|
|
1268
|
+
}
|
|
1269
|
+
return ret;
|
|
1270
|
+
}
|
|
1271
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
1272
|
+
function sortObjDesc(accessor) {
|
|
1273
|
+
return function (a, b) {
|
|
1274
|
+
var leftVal = 0, rightVal = 0;
|
|
1275
|
+
if ((a === null || a === void 0 ? void 0 : a[accessor]) != null) {
|
|
1276
|
+
leftVal = a === null || a === void 0 ? void 0 : a[accessor];
|
|
1277
|
+
}
|
|
1278
|
+
if ((b === null || b === void 0 ? void 0 : b[accessor]) != null) {
|
|
1279
|
+
rightVal = b === null || b === void 0 ? void 0 : b[accessor];
|
|
1280
|
+
}
|
|
1281
|
+
return leftVal > rightVal ? -1 : 1;
|
|
1282
|
+
};
|
|
1283
|
+
}
|
|
1284
|
+
function clone(ob) {
|
|
1285
|
+
return JSON.parse(JSON.stringify(ob));
|
|
1286
|
+
}
|
|
1287
|
+
function getDebouncer(delay) {
|
|
1288
|
+
if (delay === void 0) { delay = 1; }
|
|
1289
|
+
var debounceTimeout = null;
|
|
1290
|
+
return function debounce(f) {
|
|
1291
|
+
if (debounceTimeout !== null) {
|
|
1292
|
+
clearTimeout(debounceTimeout);
|
|
1293
|
+
}
|
|
1294
|
+
debounceTimeout = window.setTimeout(f, delay);
|
|
1295
|
+
};
|
|
1296
|
+
}
|
|
1297
|
+
function isObject(obj) {
|
|
1298
|
+
return typeof obj === 'object' && obj != null;
|
|
1299
|
+
}
|
|
1300
|
+
function deepEqual(obj1, obj2) {
|
|
1301
|
+
if (obj1 === obj2) {
|
|
1302
|
+
return true;
|
|
1303
|
+
}
|
|
1304
|
+
if (isObject(obj1) && isObject(obj2)) {
|
|
1305
|
+
if (Object.keys(obj1).length !== Object.keys(obj2).length) {
|
|
1306
|
+
return false;
|
|
1307
|
+
}
|
|
1308
|
+
for (var prop in obj1) {
|
|
1309
|
+
if (!deepEqual(obj1[prop], obj2[prop])) {
|
|
1310
|
+
return false;
|
|
1311
|
+
}
|
|
1312
|
+
}
|
|
1313
|
+
return true;
|
|
1314
|
+
}
|
|
1315
|
+
return false;
|
|
1316
|
+
}
|
|
1317
|
+
function componentToHex(c) {
|
|
1318
|
+
if (isNaN(c)) {
|
|
1319
|
+
throw Error('The color has not been written correctly');
|
|
1320
|
+
}
|
|
1321
|
+
var hex = c.toString(16).toUpperCase();
|
|
1322
|
+
return hex.length === 1 ? '0' + hex : hex;
|
|
1323
|
+
}
|
|
1324
|
+
function cleanSingleColor(c) {
|
|
1325
|
+
return c.replace(/"|'/g, '').trim();
|
|
1326
|
+
}
|
|
1327
|
+
function rgbToHex(rgb) {
|
|
1328
|
+
if (rgb.includes('rgba')) {
|
|
1329
|
+
throw Error('not implemented');
|
|
1330
|
+
}
|
|
1331
|
+
var _a = __read(rgb
|
|
1332
|
+
.replace('rgb', '')
|
|
1333
|
+
.replace(/\(|\)/gi, '')
|
|
1334
|
+
.split(',')
|
|
1335
|
+
.map(function (c) { return parseInt(cleanSingleColor(c), 10); }), 3), _b = _a[0], r = _b === void 0 ? 0 : _b, _c = _a[1], g = _c === void 0 ? 0 : _c, _d = _a[2], b = _d === void 0 ? 0 : _d;
|
|
1336
|
+
return '#' + componentToHex(r) + componentToHex(g) + componentToHex(b);
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
|
|
1340
|
+
/***/ }),
|
|
1341
|
+
|
|
1342
|
+
/***/ 9112:
|
|
1343
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1344
|
+
|
|
1345
|
+
"use strict";
|
|
1346
|
+
/**
|
|
1347
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1348
|
+
*
|
|
1349
|
+
* This source code is licensed under the MIT license found in the
|
|
1350
|
+
* LICENSE file in the root directory of this source tree.
|
|
1351
|
+
*/
|
|
1352
|
+
|
|
1353
|
+
|
|
1354
|
+
var ReactPropTypesSecret = __webpack_require__(5073);
|
|
1355
|
+
|
|
1356
|
+
function emptyFunction() {}
|
|
1357
|
+
|
|
1358
|
+
function emptyFunctionWithReset() {}
|
|
1359
|
+
|
|
1360
|
+
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
1361
|
+
|
|
1362
|
+
module.exports = function () {
|
|
1363
|
+
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
1364
|
+
if (secret === ReactPropTypesSecret) {
|
|
1365
|
+
// It is still safe when called from React.
|
|
1366
|
+
return;
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
|
|
1370
|
+
err.name = 'Invariant Violation';
|
|
1371
|
+
throw err;
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
;
|
|
1375
|
+
shim.isRequired = shim;
|
|
1376
|
+
|
|
1377
|
+
function getShim() {
|
|
1378
|
+
return shim;
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
; // Important!
|
|
1382
|
+
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
1383
|
+
|
|
1384
|
+
var ReactPropTypes = {
|
|
1385
|
+
array: shim,
|
|
1386
|
+
bool: shim,
|
|
1387
|
+
func: shim,
|
|
1388
|
+
number: shim,
|
|
1389
|
+
object: shim,
|
|
1390
|
+
string: shim,
|
|
1391
|
+
symbol: shim,
|
|
1392
|
+
any: shim,
|
|
1393
|
+
arrayOf: getShim,
|
|
1394
|
+
element: shim,
|
|
1395
|
+
elementType: shim,
|
|
1396
|
+
instanceOf: getShim,
|
|
1397
|
+
node: shim,
|
|
1398
|
+
objectOf: getShim,
|
|
1399
|
+
oneOf: getShim,
|
|
1400
|
+
oneOfType: getShim,
|
|
1401
|
+
shape: getShim,
|
|
1402
|
+
exact: getShim,
|
|
1403
|
+
checkPropTypes: emptyFunctionWithReset,
|
|
1404
|
+
resetWarningCache: emptyFunction
|
|
1405
|
+
};
|
|
1406
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
1407
|
+
return ReactPropTypes;
|
|
1408
|
+
};
|
|
1409
|
+
|
|
1410
|
+
/***/ }),
|
|
1411
|
+
|
|
1412
|
+
/***/ 8691:
|
|
1413
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1414
|
+
|
|
1415
|
+
/**
|
|
1416
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1417
|
+
*
|
|
1418
|
+
* This source code is licensed under the MIT license found in the
|
|
1419
|
+
* LICENSE file in the root directory of this source tree.
|
|
1420
|
+
*/
|
|
1421
|
+
if (false) { var throwOnDirectAccess, ReactIs; } else {
|
|
1422
|
+
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
1423
|
+
// http://fb.me/prop-types-in-prod
|
|
1424
|
+
module.exports = __webpack_require__(9112)();
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
/***/ }),
|
|
1428
|
+
|
|
1429
|
+
/***/ 5073:
|
|
1430
|
+
/***/ ((module) => {
|
|
1431
|
+
|
|
1432
|
+
"use strict";
|
|
1433
|
+
/**
|
|
1434
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1435
|
+
*
|
|
1436
|
+
* This source code is licensed under the MIT license found in the
|
|
1437
|
+
* LICENSE file in the root directory of this source tree.
|
|
1438
|
+
*/
|
|
1439
|
+
|
|
1440
|
+
|
|
1441
|
+
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
1442
|
+
module.exports = ReactPropTypesSecret;
|
|
1443
|
+
|
|
1444
|
+
/***/ }),
|
|
1445
|
+
|
|
1446
|
+
/***/ 6113:
|
|
1447
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1448
|
+
|
|
1449
|
+
"use strict";
|
|
1450
|
+
|
|
1451
|
+
// EXPORTS
|
|
1452
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
1453
|
+
"cn": () => (/* binding */ ENTERED),
|
|
1454
|
+
"d0": () => (/* binding */ ENTERING),
|
|
1455
|
+
"ZP": () => (/* binding */ esm_Transition)
|
|
1456
|
+
});
|
|
1457
|
+
|
|
1458
|
+
// UNUSED EXPORTS: EXITED, EXITING, UNMOUNTED
|
|
1459
|
+
|
|
1460
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
1461
|
+
var objectWithoutPropertiesLoose = __webpack_require__(7038);
|
|
1462
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js + 1 modules
|
|
1463
|
+
var inheritsLoose = __webpack_require__(7581);
|
|
1464
|
+
// EXTERNAL MODULE: ./node_modules/prop-types/index.js
|
|
1465
|
+
var prop_types = __webpack_require__(8691);
|
|
1466
|
+
// EXTERNAL MODULE: external "react"
|
|
1467
|
+
var external_react_ = __webpack_require__(8156);
|
|
1468
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
1469
|
+
// EXTERNAL MODULE: external "react-dom"
|
|
1470
|
+
var external_react_dom_ = __webpack_require__(7111);
|
|
1471
|
+
var external_react_dom_default = /*#__PURE__*/__webpack_require__.n(external_react_dom_);
|
|
1472
|
+
;// CONCATENATED MODULE: ./node_modules/react-transition-group/esm/config.js
|
|
1473
|
+
/* harmony default export */ const config = ({
|
|
1474
|
+
disabled: false
|
|
1475
|
+
});
|
|
1476
|
+
// EXTERNAL MODULE: ./node_modules/react-transition-group/esm/TransitionGroupContext.js
|
|
1477
|
+
var TransitionGroupContext = __webpack_require__(3493);
|
|
1478
|
+
;// CONCATENATED MODULE: ./node_modules/react-transition-group/esm/Transition.js
|
|
1479
|
+
|
|
1480
|
+
|
|
1481
|
+
|
|
1482
|
+
|
|
1483
|
+
|
|
1484
|
+
|
|
1485
|
+
|
|
1486
|
+
|
|
1487
|
+
var UNMOUNTED = 'unmounted';
|
|
1488
|
+
var EXITED = 'exited';
|
|
1489
|
+
var ENTERING = 'entering';
|
|
1490
|
+
var ENTERED = 'entered';
|
|
1491
|
+
var EXITING = 'exiting';
|
|
1492
|
+
/**
|
|
1493
|
+
* The Transition component lets you describe a transition from one component
|
|
1494
|
+
* state to another _over time_ with a simple declarative API. Most commonly
|
|
1495
|
+
* it's used to animate the mounting and unmounting of a component, but can also
|
|
1496
|
+
* be used to describe in-place transition states as well.
|
|
1497
|
+
*
|
|
1498
|
+
* ---
|
|
1499
|
+
*
|
|
1500
|
+
* **Note**: `Transition` is a platform-agnostic base component. If you're using
|
|
1501
|
+
* transitions in CSS, you'll probably want to use
|
|
1502
|
+
* [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)
|
|
1503
|
+
* instead. It inherits all the features of `Transition`, but contains
|
|
1504
|
+
* additional features necessary to play nice with CSS transitions (hence the
|
|
1505
|
+
* name of the component).
|
|
1506
|
+
*
|
|
1507
|
+
* ---
|
|
1508
|
+
*
|
|
1509
|
+
* By default the `Transition` component does not alter the behavior of the
|
|
1510
|
+
* component it renders, it only tracks "enter" and "exit" states for the
|
|
1511
|
+
* components. It's up to you to give meaning and effect to those states. For
|
|
1512
|
+
* example we can add styles to a component when it enters or exits:
|
|
1513
|
+
*
|
|
1514
|
+
* ```jsx
|
|
1515
|
+
* import { Transition } from 'react-transition-group';
|
|
1516
|
+
*
|
|
1517
|
+
* const duration = 300;
|
|
1518
|
+
*
|
|
1519
|
+
* const defaultStyle = {
|
|
1520
|
+
* transition: `opacity ${duration}ms ease-in-out`,
|
|
1521
|
+
* opacity: 0,
|
|
1522
|
+
* }
|
|
1523
|
+
*
|
|
1524
|
+
* const transitionStyles = {
|
|
1525
|
+
* entering: { opacity: 1 },
|
|
1526
|
+
* entered: { opacity: 1 },
|
|
1527
|
+
* exiting: { opacity: 0 },
|
|
1528
|
+
* exited: { opacity: 0 },
|
|
1529
|
+
* };
|
|
1530
|
+
*
|
|
1531
|
+
* const Fade = ({ in: inProp }) => (
|
|
1532
|
+
* <Transition in={inProp} timeout={duration}>
|
|
1533
|
+
* {state => (
|
|
1534
|
+
* <div style={{
|
|
1535
|
+
* ...defaultStyle,
|
|
1536
|
+
* ...transitionStyles[state]
|
|
1537
|
+
* }}>
|
|
1538
|
+
* I'm a fade Transition!
|
|
1539
|
+
* </div>
|
|
1540
|
+
* )}
|
|
1541
|
+
* </Transition>
|
|
1542
|
+
* );
|
|
1543
|
+
* ```
|
|
1544
|
+
*
|
|
1545
|
+
* There are 4 main states a Transition can be in:
|
|
1546
|
+
* - `'entering'`
|
|
1547
|
+
* - `'entered'`
|
|
1548
|
+
* - `'exiting'`
|
|
1549
|
+
* - `'exited'`
|
|
1550
|
+
*
|
|
1551
|
+
* Transition state is toggled via the `in` prop. When `true` the component
|
|
1552
|
+
* begins the "Enter" stage. During this stage, the component will shift from
|
|
1553
|
+
* its current transition state, to `'entering'` for the duration of the
|
|
1554
|
+
* transition and then to the `'entered'` stage once it's complete. Let's take
|
|
1555
|
+
* the following example (we'll use the
|
|
1556
|
+
* [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):
|
|
1557
|
+
*
|
|
1558
|
+
* ```jsx
|
|
1559
|
+
* function App() {
|
|
1560
|
+
* const [inProp, setInProp] = useState(false);
|
|
1561
|
+
* return (
|
|
1562
|
+
* <div>
|
|
1563
|
+
* <Transition in={inProp} timeout={500}>
|
|
1564
|
+
* {state => (
|
|
1565
|
+
* // ...
|
|
1566
|
+
* )}
|
|
1567
|
+
* </Transition>
|
|
1568
|
+
* <button onClick={() => setInProp(true)}>
|
|
1569
|
+
* Click to Enter
|
|
1570
|
+
* </button>
|
|
1571
|
+
* </div>
|
|
1572
|
+
* );
|
|
1573
|
+
* }
|
|
1574
|
+
* ```
|
|
1575
|
+
*
|
|
1576
|
+
* When the button is clicked the component will shift to the `'entering'` state
|
|
1577
|
+
* and stay there for 500ms (the value of `timeout`) before it finally switches
|
|
1578
|
+
* to `'entered'`.
|
|
1579
|
+
*
|
|
1580
|
+
* When `in` is `false` the same thing happens except the state moves from
|
|
1581
|
+
* `'exiting'` to `'exited'`.
|
|
1582
|
+
*/
|
|
1583
|
+
|
|
1584
|
+
var Transition = /*#__PURE__*/function (_React$Component) {
|
|
1585
|
+
(0,inheritsLoose/* default */.Z)(Transition, _React$Component);
|
|
1586
|
+
|
|
1587
|
+
function Transition(props, context) {
|
|
1588
|
+
var _this;
|
|
1589
|
+
|
|
1590
|
+
_this = _React$Component.call(this, props, context) || this;
|
|
1591
|
+
var parentGroup = context; // In the context of a TransitionGroup all enters are really appears
|
|
1592
|
+
|
|
1593
|
+
var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;
|
|
1594
|
+
var initialStatus;
|
|
1595
|
+
_this.appearStatus = null;
|
|
1596
|
+
|
|
1597
|
+
if (props["in"]) {
|
|
1598
|
+
if (appear) {
|
|
1599
|
+
initialStatus = EXITED;
|
|
1600
|
+
_this.appearStatus = ENTERING;
|
|
1601
|
+
} else {
|
|
1602
|
+
initialStatus = ENTERED;
|
|
1603
|
+
}
|
|
1604
|
+
} else {
|
|
1605
|
+
if (props.unmountOnExit || props.mountOnEnter) {
|
|
1606
|
+
initialStatus = UNMOUNTED;
|
|
1607
|
+
} else {
|
|
1608
|
+
initialStatus = EXITED;
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
_this.state = {
|
|
1613
|
+
status: initialStatus
|
|
1614
|
+
};
|
|
1615
|
+
_this.nextCallback = null;
|
|
1616
|
+
return _this;
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {
|
|
1620
|
+
var nextIn = _ref["in"];
|
|
1621
|
+
|
|
1622
|
+
if (nextIn && prevState.status === UNMOUNTED) {
|
|
1623
|
+
return {
|
|
1624
|
+
status: EXITED
|
|
1625
|
+
};
|
|
1626
|
+
}
|
|
1627
|
+
|
|
1628
|
+
return null;
|
|
1629
|
+
} // getSnapshotBeforeUpdate(prevProps) {
|
|
1630
|
+
// let nextStatus = null
|
|
1631
|
+
// if (prevProps !== this.props) {
|
|
1632
|
+
// const { status } = this.state
|
|
1633
|
+
// if (this.props.in) {
|
|
1634
|
+
// if (status !== ENTERING && status !== ENTERED) {
|
|
1635
|
+
// nextStatus = ENTERING
|
|
1636
|
+
// }
|
|
1637
|
+
// } else {
|
|
1638
|
+
// if (status === ENTERING || status === ENTERED) {
|
|
1639
|
+
// nextStatus = EXITING
|
|
1640
|
+
// }
|
|
1641
|
+
// }
|
|
1642
|
+
// }
|
|
1643
|
+
// return { nextStatus }
|
|
1644
|
+
// }
|
|
1645
|
+
;
|
|
1646
|
+
|
|
1647
|
+
var _proto = Transition.prototype;
|
|
1648
|
+
|
|
1649
|
+
_proto.componentDidMount = function componentDidMount() {
|
|
1650
|
+
this.updateStatus(true, this.appearStatus);
|
|
1651
|
+
};
|
|
1652
|
+
|
|
1653
|
+
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
|
1654
|
+
var nextStatus = null;
|
|
1655
|
+
|
|
1656
|
+
if (prevProps !== this.props) {
|
|
1657
|
+
var status = this.state.status;
|
|
1658
|
+
|
|
1659
|
+
if (this.props["in"]) {
|
|
1660
|
+
if (status !== ENTERING && status !== ENTERED) {
|
|
1661
|
+
nextStatus = ENTERING;
|
|
1662
|
+
}
|
|
1663
|
+
} else {
|
|
1664
|
+
if (status === ENTERING || status === ENTERED) {
|
|
1665
|
+
nextStatus = EXITING;
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
this.updateStatus(false, nextStatus);
|
|
1671
|
+
};
|
|
1672
|
+
|
|
1673
|
+
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
1674
|
+
this.cancelNextCallback();
|
|
1675
|
+
};
|
|
1676
|
+
|
|
1677
|
+
_proto.getTimeouts = function getTimeouts() {
|
|
1678
|
+
var timeout = this.props.timeout;
|
|
1679
|
+
var exit, enter, appear;
|
|
1680
|
+
exit = enter = appear = timeout;
|
|
1681
|
+
|
|
1682
|
+
if (timeout != null && typeof timeout !== 'number') {
|
|
1683
|
+
exit = timeout.exit;
|
|
1684
|
+
enter = timeout.enter; // TODO: remove fallback for next major
|
|
1685
|
+
|
|
1686
|
+
appear = timeout.appear !== undefined ? timeout.appear : enter;
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1689
|
+
return {
|
|
1690
|
+
exit: exit,
|
|
1691
|
+
enter: enter,
|
|
1692
|
+
appear: appear
|
|
1693
|
+
};
|
|
1694
|
+
};
|
|
1695
|
+
|
|
1696
|
+
_proto.updateStatus = function updateStatus(mounting, nextStatus) {
|
|
1697
|
+
if (mounting === void 0) {
|
|
1698
|
+
mounting = false;
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
if (nextStatus !== null) {
|
|
1702
|
+
// nextStatus will always be ENTERING or EXITING.
|
|
1703
|
+
this.cancelNextCallback();
|
|
1704
|
+
|
|
1705
|
+
if (nextStatus === ENTERING) {
|
|
1706
|
+
this.performEnter(mounting);
|
|
1707
|
+
} else {
|
|
1708
|
+
this.performExit();
|
|
1709
|
+
}
|
|
1710
|
+
} else if (this.props.unmountOnExit && this.state.status === EXITED) {
|
|
1711
|
+
this.setState({
|
|
1712
|
+
status: UNMOUNTED
|
|
1713
|
+
});
|
|
1714
|
+
}
|
|
1715
|
+
};
|
|
1716
|
+
|
|
1717
|
+
_proto.performEnter = function performEnter(mounting) {
|
|
1718
|
+
var _this2 = this;
|
|
1719
|
+
|
|
1720
|
+
var enter = this.props.enter;
|
|
1721
|
+
var appearing = this.context ? this.context.isMounting : mounting;
|
|
1722
|
+
|
|
1723
|
+
var _ref2 = this.props.nodeRef ? [appearing] : [external_react_dom_default().findDOMNode(this), appearing],
|
|
1724
|
+
maybeNode = _ref2[0],
|
|
1725
|
+
maybeAppearing = _ref2[1];
|
|
1726
|
+
|
|
1727
|
+
var timeouts = this.getTimeouts();
|
|
1728
|
+
var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED
|
|
1729
|
+
// if we are mounting and running this it means appear _must_ be set
|
|
1730
|
+
|
|
1731
|
+
if (!mounting && !enter || config.disabled) {
|
|
1732
|
+
this.safeSetState({
|
|
1733
|
+
status: ENTERED
|
|
1734
|
+
}, function () {
|
|
1735
|
+
_this2.props.onEntered(maybeNode);
|
|
1736
|
+
});
|
|
1737
|
+
return;
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
this.props.onEnter(maybeNode, maybeAppearing);
|
|
1741
|
+
this.safeSetState({
|
|
1742
|
+
status: ENTERING
|
|
1743
|
+
}, function () {
|
|
1744
|
+
_this2.props.onEntering(maybeNode, maybeAppearing);
|
|
1745
|
+
|
|
1746
|
+
_this2.onTransitionEnd(enterTimeout, function () {
|
|
1747
|
+
_this2.safeSetState({
|
|
1748
|
+
status: ENTERED
|
|
1749
|
+
}, function () {
|
|
1750
|
+
_this2.props.onEntered(maybeNode, maybeAppearing);
|
|
1751
|
+
});
|
|
1752
|
+
});
|
|
1753
|
+
});
|
|
1754
|
+
};
|
|
1755
|
+
|
|
1756
|
+
_proto.performExit = function performExit() {
|
|
1757
|
+
var _this3 = this;
|
|
1758
|
+
|
|
1759
|
+
var exit = this.props.exit;
|
|
1760
|
+
var timeouts = this.getTimeouts();
|
|
1761
|
+
var maybeNode = this.props.nodeRef ? undefined : external_react_dom_default().findDOMNode(this); // no exit animation skip right to EXITED
|
|
1762
|
+
|
|
1763
|
+
if (!exit || config.disabled) {
|
|
1764
|
+
this.safeSetState({
|
|
1765
|
+
status: EXITED
|
|
1766
|
+
}, function () {
|
|
1767
|
+
_this3.props.onExited(maybeNode);
|
|
1768
|
+
});
|
|
1769
|
+
return;
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1772
|
+
this.props.onExit(maybeNode);
|
|
1773
|
+
this.safeSetState({
|
|
1774
|
+
status: EXITING
|
|
1775
|
+
}, function () {
|
|
1776
|
+
_this3.props.onExiting(maybeNode);
|
|
1777
|
+
|
|
1778
|
+
_this3.onTransitionEnd(timeouts.exit, function () {
|
|
1779
|
+
_this3.safeSetState({
|
|
1780
|
+
status: EXITED
|
|
1781
|
+
}, function () {
|
|
1782
|
+
_this3.props.onExited(maybeNode);
|
|
1783
|
+
});
|
|
1784
|
+
});
|
|
1785
|
+
});
|
|
1786
|
+
};
|
|
1787
|
+
|
|
1788
|
+
_proto.cancelNextCallback = function cancelNextCallback() {
|
|
1789
|
+
if (this.nextCallback !== null) {
|
|
1790
|
+
this.nextCallback.cancel();
|
|
1791
|
+
this.nextCallback = null;
|
|
1792
|
+
}
|
|
1793
|
+
};
|
|
1794
|
+
|
|
1795
|
+
_proto.safeSetState = function safeSetState(nextState, callback) {
|
|
1796
|
+
// This shouldn't be necessary, but there are weird race conditions with
|
|
1797
|
+
// setState callbacks and unmounting in testing, so always make sure that
|
|
1798
|
+
// we can cancel any pending setState callbacks after we unmount.
|
|
1799
|
+
callback = this.setNextCallback(callback);
|
|
1800
|
+
this.setState(nextState, callback);
|
|
1801
|
+
};
|
|
1802
|
+
|
|
1803
|
+
_proto.setNextCallback = function setNextCallback(callback) {
|
|
1804
|
+
var _this4 = this;
|
|
1805
|
+
|
|
1806
|
+
var active = true;
|
|
1807
|
+
|
|
1808
|
+
this.nextCallback = function (event) {
|
|
1809
|
+
if (active) {
|
|
1810
|
+
active = false;
|
|
1811
|
+
_this4.nextCallback = null;
|
|
1812
|
+
callback(event);
|
|
1813
|
+
}
|
|
1814
|
+
};
|
|
1815
|
+
|
|
1816
|
+
this.nextCallback.cancel = function () {
|
|
1817
|
+
active = false;
|
|
1818
|
+
};
|
|
1819
|
+
|
|
1820
|
+
return this.nextCallback;
|
|
1821
|
+
};
|
|
1822
|
+
|
|
1823
|
+
_proto.onTransitionEnd = function onTransitionEnd(timeout, handler) {
|
|
1824
|
+
this.setNextCallback(handler);
|
|
1825
|
+
var node = this.props.nodeRef ? this.props.nodeRef.current : external_react_dom_default().findDOMNode(this);
|
|
1826
|
+
var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;
|
|
1827
|
+
|
|
1828
|
+
if (!node || doesNotHaveTimeoutOrListener) {
|
|
1829
|
+
setTimeout(this.nextCallback, 0);
|
|
1830
|
+
return;
|
|
1831
|
+
}
|
|
1832
|
+
|
|
1833
|
+
if (this.props.addEndListener) {
|
|
1834
|
+
var _ref3 = this.props.nodeRef ? [this.nextCallback] : [node, this.nextCallback],
|
|
1835
|
+
maybeNode = _ref3[0],
|
|
1836
|
+
maybeNextCallback = _ref3[1];
|
|
1837
|
+
|
|
1838
|
+
this.props.addEndListener(maybeNode, maybeNextCallback);
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1841
|
+
if (timeout != null) {
|
|
1842
|
+
setTimeout(this.nextCallback, timeout);
|
|
1843
|
+
}
|
|
1844
|
+
};
|
|
1845
|
+
|
|
1846
|
+
_proto.render = function render() {
|
|
1847
|
+
var status = this.state.status;
|
|
1848
|
+
|
|
1849
|
+
if (status === UNMOUNTED) {
|
|
1850
|
+
return null;
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1853
|
+
var _this$props = this.props,
|
|
1854
|
+
children = _this$props.children,
|
|
1855
|
+
_in = _this$props["in"],
|
|
1856
|
+
_mountOnEnter = _this$props.mountOnEnter,
|
|
1857
|
+
_unmountOnExit = _this$props.unmountOnExit,
|
|
1858
|
+
_appear = _this$props.appear,
|
|
1859
|
+
_enter = _this$props.enter,
|
|
1860
|
+
_exit = _this$props.exit,
|
|
1861
|
+
_timeout = _this$props.timeout,
|
|
1862
|
+
_addEndListener = _this$props.addEndListener,
|
|
1863
|
+
_onEnter = _this$props.onEnter,
|
|
1864
|
+
_onEntering = _this$props.onEntering,
|
|
1865
|
+
_onEntered = _this$props.onEntered,
|
|
1866
|
+
_onExit = _this$props.onExit,
|
|
1867
|
+
_onExiting = _this$props.onExiting,
|
|
1868
|
+
_onExited = _this$props.onExited,
|
|
1869
|
+
_nodeRef = _this$props.nodeRef,
|
|
1870
|
+
childProps = (0,objectWithoutPropertiesLoose/* default */.Z)(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
1871
|
+
|
|
1872
|
+
return (
|
|
1873
|
+
/*#__PURE__*/
|
|
1874
|
+
// allows for nested Transitions
|
|
1875
|
+
external_react_default().createElement(TransitionGroupContext/* default.Provider */.Z.Provider, {
|
|
1876
|
+
value: null
|
|
1877
|
+
}, typeof children === 'function' ? children(status, childProps) : external_react_default().cloneElement(external_react_default().Children.only(children), childProps))
|
|
1878
|
+
);
|
|
1879
|
+
};
|
|
1880
|
+
|
|
1881
|
+
return Transition;
|
|
1882
|
+
}((external_react_default()).Component);
|
|
1883
|
+
|
|
1884
|
+
Transition.contextType = TransitionGroupContext/* default */.Z;
|
|
1885
|
+
Transition.propTypes = false ? 0 : {}; // Name the function so it is clearer in the documentation
|
|
1886
|
+
|
|
1887
|
+
function noop() {}
|
|
1888
|
+
|
|
1889
|
+
Transition.defaultProps = {
|
|
1890
|
+
"in": false,
|
|
1891
|
+
mountOnEnter: false,
|
|
1892
|
+
unmountOnExit: false,
|
|
1893
|
+
appear: false,
|
|
1894
|
+
enter: true,
|
|
1895
|
+
exit: true,
|
|
1896
|
+
onEnter: noop,
|
|
1897
|
+
onEntering: noop,
|
|
1898
|
+
onEntered: noop,
|
|
1899
|
+
onExit: noop,
|
|
1900
|
+
onExiting: noop,
|
|
1901
|
+
onExited: noop
|
|
1902
|
+
};
|
|
1903
|
+
Transition.UNMOUNTED = UNMOUNTED;
|
|
1904
|
+
Transition.EXITED = EXITED;
|
|
1905
|
+
Transition.ENTERING = ENTERING;
|
|
1906
|
+
Transition.ENTERED = ENTERED;
|
|
1907
|
+
Transition.EXITING = EXITING;
|
|
1908
|
+
/* harmony default export */ const esm_Transition = (Transition);
|
|
1909
|
+
|
|
1910
|
+
/***/ }),
|
|
1911
|
+
|
|
1912
|
+
/***/ 3493:
|
|
1913
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1914
|
+
|
|
1915
|
+
"use strict";
|
|
1916
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1917
|
+
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1918
|
+
/* harmony export */ });
|
|
1919
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8156);
|
|
1920
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
1921
|
+
|
|
1922
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (react__WEBPACK_IMPORTED_MODULE_0___default().createContext(null));
|
|
1923
|
+
|
|
1924
|
+
/***/ }),
|
|
1925
|
+
|
|
1926
|
+
/***/ 9870:
|
|
1927
|
+
/***/ ((module) => {
|
|
1928
|
+
|
|
1929
|
+
"use strict";
|
|
1930
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__9870__;
|
|
1931
|
+
|
|
1932
|
+
/***/ }),
|
|
1933
|
+
|
|
1934
|
+
/***/ 631:
|
|
1935
|
+
/***/ ((module) => {
|
|
1936
|
+
|
|
1937
|
+
"use strict";
|
|
1938
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__631__;
|
|
1939
|
+
|
|
1940
|
+
/***/ }),
|
|
1941
|
+
|
|
1942
|
+
/***/ 2628:
|
|
1943
|
+
/***/ ((module) => {
|
|
1944
|
+
|
|
1945
|
+
"use strict";
|
|
1946
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__2628__;
|
|
1947
|
+
|
|
1948
|
+
/***/ }),
|
|
1949
|
+
|
|
1950
|
+
/***/ 159:
|
|
1951
|
+
/***/ ((module) => {
|
|
1952
|
+
|
|
1953
|
+
"use strict";
|
|
1954
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__159__;
|
|
1955
|
+
|
|
1956
|
+
/***/ }),
|
|
1957
|
+
|
|
1958
|
+
/***/ 5692:
|
|
1959
|
+
/***/ ((module) => {
|
|
1960
|
+
|
|
1961
|
+
"use strict";
|
|
1962
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;
|
|
1963
|
+
|
|
1964
|
+
/***/ }),
|
|
1965
|
+
|
|
1966
|
+
/***/ 8310:
|
|
1967
|
+
/***/ ((module) => {
|
|
1968
|
+
|
|
1969
|
+
"use strict";
|
|
1970
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;
|
|
1971
|
+
|
|
1972
|
+
/***/ }),
|
|
1973
|
+
|
|
1974
|
+
/***/ 8156:
|
|
1975
|
+
/***/ ((module) => {
|
|
1976
|
+
|
|
1977
|
+
"use strict";
|
|
1978
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;
|
|
1979
|
+
|
|
1980
|
+
/***/ }),
|
|
1981
|
+
|
|
1982
|
+
/***/ 8721:
|
|
1983
|
+
/***/ ((module) => {
|
|
1984
|
+
|
|
1985
|
+
"use strict";
|
|
1986
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__8721__;
|
|
1987
|
+
|
|
1988
|
+
/***/ }),
|
|
1989
|
+
|
|
1990
|
+
/***/ 1082:
|
|
1991
|
+
/***/ ((module) => {
|
|
1992
|
+
|
|
1993
|
+
"use strict";
|
|
1994
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__1082__;
|
|
1995
|
+
|
|
1996
|
+
/***/ }),
|
|
1997
|
+
|
|
1998
|
+
/***/ 8763:
|
|
1999
|
+
/***/ ((module) => {
|
|
2000
|
+
|
|
2001
|
+
"use strict";
|
|
2002
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__8763__;
|
|
2003
|
+
|
|
2004
|
+
/***/ }),
|
|
2005
|
+
|
|
2006
|
+
/***/ 7111:
|
|
2007
|
+
/***/ ((module) => {
|
|
2008
|
+
|
|
2009
|
+
"use strict";
|
|
2010
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__7111__;
|
|
2011
|
+
|
|
2012
|
+
/***/ }),
|
|
2013
|
+
|
|
2014
|
+
/***/ 7581:
|
|
2015
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
2016
|
+
|
|
2017
|
+
"use strict";
|
|
2018
|
+
|
|
2019
|
+
// EXPORTS
|
|
2020
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
2021
|
+
"Z": () => (/* binding */ _inheritsLoose)
|
|
2022
|
+
});
|
|
2023
|
+
|
|
2024
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
2025
|
+
function _setPrototypeOf(o, p) {
|
|
2026
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
2027
|
+
o.__proto__ = p;
|
|
2028
|
+
return o;
|
|
2029
|
+
};
|
|
2030
|
+
|
|
2031
|
+
return _setPrototypeOf(o, p);
|
|
2032
|
+
}
|
|
2033
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
|
|
2034
|
+
|
|
2035
|
+
function _inheritsLoose(subClass, superClass) {
|
|
2036
|
+
subClass.prototype = Object.create(superClass.prototype);
|
|
2037
|
+
subClass.prototype.constructor = subClass;
|
|
2038
|
+
_setPrototypeOf(subClass, superClass);
|
|
2039
|
+
}
|
|
2040
|
+
|
|
2041
|
+
/***/ }),
|
|
2042
|
+
|
|
2043
|
+
/***/ 7038:
|
|
2044
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
2045
|
+
|
|
2046
|
+
"use strict";
|
|
2047
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2048
|
+
/* harmony export */ "Z": () => (/* binding */ _objectWithoutPropertiesLoose)
|
|
2049
|
+
/* harmony export */ });
|
|
2050
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
2051
|
+
if (source == null) return {};
|
|
2052
|
+
var target = {};
|
|
2053
|
+
var sourceKeys = Object.keys(source);
|
|
2054
|
+
var key, i;
|
|
2055
|
+
|
|
2056
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
2057
|
+
key = sourceKeys[i];
|
|
2058
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
2059
|
+
target[key] = source[key];
|
|
2060
|
+
}
|
|
2061
|
+
|
|
2062
|
+
return target;
|
|
2063
|
+
}
|
|
2064
|
+
|
|
2065
|
+
/***/ })
|
|
2066
|
+
|
|
2067
|
+
/******/ });
|
|
2068
|
+
/************************************************************************/
|
|
2069
|
+
/******/ // The module cache
|
|
2070
|
+
/******/ var __webpack_module_cache__ = {};
|
|
2071
|
+
/******/
|
|
2072
|
+
/******/ // The require function
|
|
2073
|
+
/******/ function __webpack_require__(moduleId) {
|
|
2074
|
+
/******/ // Check if module is in cache
|
|
2075
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
2076
|
+
/******/ if (cachedModule !== undefined) {
|
|
2077
|
+
/******/ return cachedModule.exports;
|
|
2078
|
+
/******/ }
|
|
2079
|
+
/******/ // Create a new module (and put it into the cache)
|
|
2080
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
2081
|
+
/******/ // no module.id needed
|
|
2082
|
+
/******/ // no module.loaded needed
|
|
2083
|
+
/******/ exports: {}
|
|
2084
|
+
/******/ };
|
|
2085
|
+
/******/
|
|
2086
|
+
/******/ // Execute the module function
|
|
2087
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
2088
|
+
/******/
|
|
2089
|
+
/******/ // Return the exports of the module
|
|
2090
|
+
/******/ return module.exports;
|
|
2091
|
+
/******/ }
|
|
2092
|
+
/******/
|
|
2093
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
2094
|
+
/******/ __webpack_require__.m = __webpack_modules__;
|
|
2095
|
+
/******/
|
|
2096
|
+
/************************************************************************/
|
|
2097
|
+
/******/ /* webpack/runtime/chunk loaded */
|
|
2098
|
+
/******/ (() => {
|
|
2099
|
+
/******/ var deferred = [];
|
|
2100
|
+
/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
|
|
2101
|
+
/******/ if(chunkIds) {
|
|
2102
|
+
/******/ priority = priority || 0;
|
|
2103
|
+
/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
|
|
2104
|
+
/******/ deferred[i] = [chunkIds, fn, priority];
|
|
2105
|
+
/******/ return;
|
|
2106
|
+
/******/ }
|
|
2107
|
+
/******/ var notFulfilled = Infinity;
|
|
2108
|
+
/******/ for (var i = 0; i < deferred.length; i++) {
|
|
2109
|
+
/******/ var [chunkIds, fn, priority] = deferred[i];
|
|
2110
|
+
/******/ var fulfilled = true;
|
|
2111
|
+
/******/ for (var j = 0; j < chunkIds.length; j++) {
|
|
2112
|
+
/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
|
|
2113
|
+
/******/ chunkIds.splice(j--, 1);
|
|
2114
|
+
/******/ } else {
|
|
2115
|
+
/******/ fulfilled = false;
|
|
2116
|
+
/******/ if(priority < notFulfilled) notFulfilled = priority;
|
|
2117
|
+
/******/ }
|
|
2118
|
+
/******/ }
|
|
2119
|
+
/******/ if(fulfilled) {
|
|
2120
|
+
/******/ deferred.splice(i--, 1)
|
|
2121
|
+
/******/ var r = fn();
|
|
2122
|
+
/******/ if (r !== undefined) result = r;
|
|
2123
|
+
/******/ }
|
|
2124
|
+
/******/ }
|
|
2125
|
+
/******/ return result;
|
|
2126
|
+
/******/ };
|
|
2127
|
+
/******/ })();
|
|
2128
|
+
/******/
|
|
2129
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
2130
|
+
/******/ (() => {
|
|
2131
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
2132
|
+
/******/ __webpack_require__.n = (module) => {
|
|
2133
|
+
/******/ var getter = module && module.__esModule ?
|
|
2134
|
+
/******/ () => (module['default']) :
|
|
2135
|
+
/******/ () => (module);
|
|
2136
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
2137
|
+
/******/ return getter;
|
|
2138
|
+
/******/ };
|
|
2139
|
+
/******/ })();
|
|
2140
|
+
/******/
|
|
2141
|
+
/******/ /* webpack/runtime/define property getters */
|
|
2142
|
+
/******/ (() => {
|
|
2143
|
+
/******/ // define getter functions for harmony exports
|
|
2144
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
2145
|
+
/******/ for(var key in definition) {
|
|
2146
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
2147
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
2148
|
+
/******/ }
|
|
2149
|
+
/******/ }
|
|
2150
|
+
/******/ };
|
|
2151
|
+
/******/ })();
|
|
2152
|
+
/******/
|
|
2153
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
2154
|
+
/******/ (() => {
|
|
2155
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
2156
|
+
/******/ })();
|
|
2157
|
+
/******/
|
|
2158
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
2159
|
+
/******/ (() => {
|
|
2160
|
+
/******/ // define __esModule on exports
|
|
2161
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
2162
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
2163
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2164
|
+
/******/ }
|
|
2165
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
2166
|
+
/******/ };
|
|
2167
|
+
/******/ })();
|
|
2168
|
+
/******/
|
|
2169
|
+
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
2170
|
+
/******/ (() => {
|
|
2171
|
+
/******/ // no baseURI
|
|
2172
|
+
/******/
|
|
2173
|
+
/******/ // object to store loaded and loading chunks
|
|
2174
|
+
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
2175
|
+
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
|
2176
|
+
/******/ var installedChunks = {
|
|
2177
|
+
/******/ 8557: 0,
|
|
2178
|
+
/******/ 4548: 0,
|
|
2179
|
+
/******/ 3813: 0
|
|
2180
|
+
/******/ };
|
|
2181
|
+
/******/
|
|
2182
|
+
/******/ // no chunk on demand loading
|
|
2183
|
+
/******/
|
|
2184
|
+
/******/ // no prefetching
|
|
2185
|
+
/******/
|
|
2186
|
+
/******/ // no preloaded
|
|
2187
|
+
/******/
|
|
2188
|
+
/******/ // no HMR
|
|
2189
|
+
/******/
|
|
2190
|
+
/******/ // no HMR manifest
|
|
2191
|
+
/******/
|
|
2192
|
+
/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
|
|
2193
|
+
/******/
|
|
2194
|
+
/******/ // install a JSONP callback for chunk loading
|
|
2195
|
+
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
|
|
2196
|
+
/******/ var [chunkIds, moreModules, runtime] = data;
|
|
2197
|
+
/******/ // add "moreModules" to the modules object,
|
|
2198
|
+
/******/ // then flag all "chunkIds" as loaded and fire callback
|
|
2199
|
+
/******/ var moduleId, chunkId, i = 0;
|
|
2200
|
+
/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
|
|
2201
|
+
/******/ for(moduleId in moreModules) {
|
|
2202
|
+
/******/ if(__webpack_require__.o(moreModules, moduleId)) {
|
|
2203
|
+
/******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
|
|
2204
|
+
/******/ }
|
|
2205
|
+
/******/ }
|
|
2206
|
+
/******/ if(runtime) var result = runtime(__webpack_require__);
|
|
2207
|
+
/******/ }
|
|
2208
|
+
/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
|
|
2209
|
+
/******/ for(;i < chunkIds.length; i++) {
|
|
2210
|
+
/******/ chunkId = chunkIds[i];
|
|
2211
|
+
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
|
|
2212
|
+
/******/ installedChunks[chunkId][0]();
|
|
2213
|
+
/******/ }
|
|
2214
|
+
/******/ installedChunks[chunkIds[i]] = 0;
|
|
2215
|
+
/******/ }
|
|
2216
|
+
/******/ return __webpack_require__.O(result);
|
|
2217
|
+
/******/ }
|
|
2218
|
+
/******/
|
|
2219
|
+
/******/ var chunkLoadingGlobal = self["webpackChunkatoka_design_system"] = self["webpackChunkatoka_design_system"] || [];
|
|
2220
|
+
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
|
|
2221
|
+
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
|
|
2222
|
+
/******/ })();
|
|
2223
|
+
/******/
|
|
2224
|
+
/************************************************************************/
|
|
2225
|
+
/******/
|
|
2226
|
+
/******/ // startup
|
|
2227
|
+
/******/ // Load entry module and return exports
|
|
2228
|
+
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
2229
|
+
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, [3813], () => (__webpack_require__(363)))
|
|
2230
|
+
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
|
2231
|
+
/******/
|
|
2232
|
+
/******/ return __webpack_exports__;
|
|
2233
|
+
/******/ })()
|
|
2234
|
+
;
|
|
2235
|
+
});
|
|
2236
|
+
//# sourceMappingURL=index.js.map
|