@spaziodati/atoka-design-system 2.1.2 → 2.1.5
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 +145 -141
- package/AddableItems/index.js.map +1 -1
- package/Alert/index.js +6 -4
- package/Alert/index.js.map +1 -1
- package/Badge/index.js +4 -4
- package/Badge/index.js.map +1 -1
- package/Bs4V3Wrapper/index.js +6 -4
- package/Bs4V3Wrapper/index.js.map +1 -1
- package/BubbleChart/index.js +1729 -2098
- package/BubbleChart/index.js.map +1 -1
- package/Button/Button.storiesConfig.d.ts +0 -10
- package/Button/index.js +9 -7
- package/Button/index.js.map +1 -1
- package/ButtonDropdown/index.js +131 -133
- package/ButtonDropdown/index.js.map +1 -1
- package/CardsPage/index.js +227 -233
- package/CardsPage/index.js.map +1 -1
- package/CursorPagination/index.js +132 -136
- package/CursorPagination/index.js.map +1 -1
- package/DatePicker/index.js +123 -126
- package/DatePicker/index.js.map +1 -1
- package/DetailPage/index.js +1353 -1429
- package/DetailPage/index.js.map +1 -1
- package/Dropdown/index.js +133 -133
- package/Dropdown/index.js.map +1 -1
- package/EditableString/index.js +2400 -2483
- package/EditableString/index.js.map +1 -1
- package/EllipsableContent/index.js +14 -12
- package/EllipsableContent/index.js.map +1 -1
- package/EmptyState/index.js +6 -4
- package/EmptyState/index.js.map +1 -1
- package/Facet/index.js +149 -144
- package/Facet/index.js.map +1 -1
- package/FacetSection/index.js +15 -11
- package/FacetSection/index.js.map +1 -1
- package/FadeAnimation/index.js +660 -731
- package/FadeAnimation/index.js.map +1 -1
- package/FeedbackButton/index.js +10 -8
- package/FeedbackButton/index.js.map +1 -1
- package/Form/index.js +7 -7
- package/Form/index.js.map +1 -1
- package/Funnel/index.js +2854 -3227
- package/Funnel/index.js.map +1 -1
- package/GridCard/index.js +162 -154
- package/GridCard/index.js.map +1 -1
- package/HighlightableText/index.js +138 -137
- package/HighlightableText/index.js.map +1 -1
- package/Histogram/index.js +1168 -1180
- package/Histogram/index.js.map +1 -1
- package/InlineStringEditor/index.js +183 -203
- package/InlineStringEditor/index.js.map +1 -1
- package/InputGroup/index.js +3 -3
- package/InputGroup/index.js.map +1 -1
- package/Jumbotron/index.js +7 -5
- package/Jumbotron/index.js.map +1 -1
- package/Map/Map.d.ts +3 -3
- package/Map/Types.d.ts +2 -2
- package/Map/index.js +4200 -3823
- package/Map/index.js.map +1 -1
- package/Modal/index.js +12 -10
- package/Modal/index.js.map +1 -1
- package/Navbar/index.js +2426 -2517
- package/Navbar/index.js.map +1 -1
- package/Pagination/index.js +132 -136
- package/Pagination/index.js.map +1 -1
- package/PieChart/index.js +204 -219
- package/PieChart/index.js.map +1 -1
- package/PublicFooter/index.js +14 -10
- package/PublicFooter/index.js.map +1 -1
- package/PublicNavbar/index.js +6 -4
- package/PublicNavbar/index.js.map +1 -1
- package/README.md +5 -2
- package/RecordBit/index.js +15 -11
- package/RecordBit/index.js.map +1 -1
- package/ResultItemCard/index.js +25 -19
- package/ResultItemCard/index.js.map +1 -1
- package/SelectDropdown/index.js +171 -185
- package/SelectDropdown/index.js.map +1 -1
- package/Spinner/index.js +6 -4
- package/Spinner/index.js.map +1 -1
- package/StatisticsItemCard/index.js +170 -160
- package/StatisticsItemCard/index.js.map +1 -1
- package/StatisticsItemNumeric/index.js +6 -4
- package/StatisticsItemNumeric/index.js.map +1 -1
- package/StatisticsLegend/index.js +173 -189
- package/StatisticsLegend/index.js.map +1 -1
- package/StatisticsTooltip/index.js +15 -15
- package/StatisticsTooltip/index.js.map +1 -1
- package/Suggester/getRenderCustomMultiValueWithIcon.d.ts +1 -1
- package/Suggester/index.js +160 -160
- package/Suggester/index.js.map +1 -1
- package/SunBurst/index.js +140 -144
- package/SunBurst/index.js.map +1 -1
- package/TabSwitcher/index.js +144 -144
- package/TabSwitcher/index.js.map +1 -1
- package/Title/index.js +8 -6
- 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 +2285 -0
- package/Toasts/index.js.map +1 -0
- package/ToggleButtonGroup/index.js +128 -130
- package/ToggleButtonGroup/index.js.map +1 -1
- package/Tooltip/index.js +3 -3
- package/Tooltip/index.js.map +1 -1
- package/Utils/index.js +1049 -1426
- package/Utils/index.js.map +1 -1
- package/{atoka-design-system-2.1.2.min.css → atoka-design-system-2.1.5.min.css} +1 -1
- package/index.d.ts +1 -0
- package/index.js +13126 -11649
- package/index.js.map +1 -1
- package/package.json +48 -40
- package/styles/atoka-bs.less +1 -1
- package/styles/variant-mixins.less +7 -7
|
@@ -12,7 +12,118 @@ return /******/ (() => { // webpackBootstrap
|
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
14
14
|
|
|
15
|
-
/***/
|
|
15
|
+
/***/ 6627:
|
|
16
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17
|
+
|
|
18
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19
|
+
/* harmony export */ "ZP": () => (/* binding */ autobind)
|
|
20
|
+
/* harmony export */ });
|
|
21
|
+
/* unused harmony exports boundMethod, boundClass */
|
|
22
|
+
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4329);
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
function _typeof(obj) {
|
|
26
|
+
if (typeof Symbol === "function" && (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(Symbol.iterator) === "symbol") {
|
|
27
|
+
_typeof = function _typeof(obj) {
|
|
28
|
+
return (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
|
|
29
|
+
};
|
|
30
|
+
} else {
|
|
31
|
+
_typeof = function _typeof(obj) {
|
|
32
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return _typeof(obj);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Return a descriptor removing the value and returning a getter
|
|
40
|
+
* The getter will return a .bind version of the function
|
|
41
|
+
* and memoize the result against a symbol on the instance
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
function boundMethod(target, key, descriptor) {
|
|
46
|
+
var fn = descriptor.value;
|
|
47
|
+
|
|
48
|
+
if (typeof fn !== 'function') {
|
|
49
|
+
throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(_typeof(fn)));
|
|
50
|
+
} // In IE11 calling Object.defineProperty has a side-effect of evaluating the
|
|
51
|
+
// getter for the property which is being replaced. This causes infinite
|
|
52
|
+
// recursion and an "Out of stack space" error.
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
var definingProperty = false;
|
|
56
|
+
return {
|
|
57
|
+
configurable: true,
|
|
58
|
+
get: function get() {
|
|
59
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
60
|
+
if (definingProperty || this === target.prototype || this.hasOwnProperty(key) || typeof fn !== 'function') {
|
|
61
|
+
return fn;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
var boundFn = fn.bind(this);
|
|
65
|
+
definingProperty = true;
|
|
66
|
+
Object.defineProperty(this, key, {
|
|
67
|
+
configurable: true,
|
|
68
|
+
get: function get() {
|
|
69
|
+
return boundFn;
|
|
70
|
+
},
|
|
71
|
+
set: function set(value) {
|
|
72
|
+
fn = value;
|
|
73
|
+
delete this[key];
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
definingProperty = false;
|
|
77
|
+
return boundFn;
|
|
78
|
+
},
|
|
79
|
+
set: function set(value) {
|
|
80
|
+
fn = value;
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Use boundMethod to bind all methods on the target.prototype
|
|
86
|
+
*/
|
|
87
|
+
|
|
88
|
+
function boundClass(target) {
|
|
89
|
+
// (Using reflect to get all keys including symbols)
|
|
90
|
+
var keys; // Use Reflect if exists
|
|
91
|
+
|
|
92
|
+
if (typeof Reflect !== 'undefined' && typeof Reflect.ownKeys === 'function') {
|
|
93
|
+
keys = Reflect.ownKeys(target.prototype);
|
|
94
|
+
} else {
|
|
95
|
+
keys = Object.getOwnPropertyNames(target.prototype); // Use symbols if support is provided
|
|
96
|
+
|
|
97
|
+
if (typeof Object.getOwnPropertySymbols === 'function') {
|
|
98
|
+
keys = keys.concat(Object.getOwnPropertySymbols(target.prototype));
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
keys.forEach(function (key) {
|
|
103
|
+
// Ignore special case target method
|
|
104
|
+
if (key === 'constructor') {
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
var descriptor = Object.getOwnPropertyDescriptor(target.prototype, key); // Only methods need binding
|
|
109
|
+
|
|
110
|
+
if (typeof descriptor.value === 'function') {
|
|
111
|
+
Object.defineProperty(target.prototype, key, boundMethod(target, key, descriptor));
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
return target;
|
|
115
|
+
}
|
|
116
|
+
function autobind() {
|
|
117
|
+
if (arguments.length === 1) {
|
|
118
|
+
return boundClass.apply(void 0, arguments);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
return boundMethod.apply(void 0, arguments);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/***/ }),
|
|
125
|
+
|
|
126
|
+
/***/ 4389:
|
|
16
127
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17
128
|
|
|
18
129
|
// ESM COMPAT FLAG
|
|
@@ -40,16 +151,18 @@ var ToggleButton_default = /*#__PURE__*/__webpack_require__.n(ToggleButton_);
|
|
|
40
151
|
// EXTERNAL MODULE: external "@fortawesome/react-fontawesome"
|
|
41
152
|
var react_fontawesome_ = __webpack_require__(5692);
|
|
42
153
|
// EXTERNAL MODULE: ./src/components/Tooltip/index.ts + 1 modules
|
|
43
|
-
var Tooltip = __webpack_require__(
|
|
154
|
+
var Tooltip = __webpack_require__(4603);
|
|
44
155
|
;// CONCATENATED MODULE: ./src/components/ToggleButtonGroup/ToggleButton.tsx
|
|
45
156
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
46
157
|
var extendStatics = function (d, b) {
|
|
47
158
|
extendStatics = Object.setPrototypeOf ||
|
|
48
159
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
49
|
-
function (d, b) { for (var p in b) if (
|
|
160
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
50
161
|
return extendStatics(d, b);
|
|
51
162
|
};
|
|
52
163
|
return function (d, b) {
|
|
164
|
+
if (typeof b !== "function" && b !== null)
|
|
165
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
53
166
|
extendStatics(d, b);
|
|
54
167
|
function __() { this.constructor = d; }
|
|
55
168
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -94,10 +207,12 @@ var ToggleButtonGroup_extends = (undefined && undefined.__extends) || (function
|
|
|
94
207
|
var extendStatics = function (d, b) {
|
|
95
208
|
extendStatics = Object.setPrototypeOf ||
|
|
96
209
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
97
|
-
function (d, b) { for (var p in b) if (
|
|
210
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
98
211
|
return extendStatics(d, b);
|
|
99
212
|
};
|
|
100
213
|
return function (d, b) {
|
|
214
|
+
if (typeof b !== "function" && b !== null)
|
|
215
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
101
216
|
extendStatics(d, b);
|
|
102
217
|
function __() { this.constructor = d; }
|
|
103
218
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -136,7 +251,7 @@ var ToggleButtonGroup = /** @class */ (function (_super) {
|
|
|
136
251
|
return this.props.options.map(this.renderItem);
|
|
137
252
|
};
|
|
138
253
|
ToggleButtonGroup.prototype.render = function () {
|
|
139
|
-
var className = external_classnames_default()(this.props.className, 'atoka-toggle-btn-group', 'btn-group-primary', "btn-group-"
|
|
254
|
+
var className = external_classnames_default()(this.props.className, 'atoka-toggle-btn-group', 'btn-group-primary', "btn-group-".concat(this.props.size), {
|
|
140
255
|
'd-flex': this.props.sameSize === true,
|
|
141
256
|
});
|
|
142
257
|
return external_react_default().createElement((ButtonGroup_default()), { className: className }, this.renderButtons());
|
|
@@ -175,7 +290,7 @@ var ToggleButtonGroup = /** @class */ (function (_super) {
|
|
|
175
290
|
|
|
176
291
|
/***/ }),
|
|
177
292
|
|
|
178
|
-
/***/
|
|
293
|
+
/***/ 4603:
|
|
179
294
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
180
295
|
|
|
181
296
|
|
|
@@ -258,117 +373,6 @@ Tooltip.displayName = 'Tooltip';
|
|
|
258
373
|
|
|
259
374
|
|
|
260
375
|
|
|
261
|
-
/***/ }),
|
|
262
|
-
|
|
263
|
-
/***/ 6627:
|
|
264
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
265
|
-
|
|
266
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
267
|
-
/* harmony export */ "ZP": () => (/* binding */ autobind)
|
|
268
|
-
/* harmony export */ });
|
|
269
|
-
/* unused harmony exports boundMethod, boundClass */
|
|
270
|
-
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4329);
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
function _typeof(obj) {
|
|
274
|
-
if (typeof Symbol === "function" && (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(Symbol.iterator) === "symbol") {
|
|
275
|
-
_typeof = function _typeof(obj) {
|
|
276
|
-
return (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
|
|
277
|
-
};
|
|
278
|
-
} else {
|
|
279
|
-
_typeof = function _typeof(obj) {
|
|
280
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
|
|
281
|
-
};
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
return _typeof(obj);
|
|
285
|
-
}
|
|
286
|
-
/**
|
|
287
|
-
* Return a descriptor removing the value and returning a getter
|
|
288
|
-
* The getter will return a .bind version of the function
|
|
289
|
-
* and memoize the result against a symbol on the instance
|
|
290
|
-
*/
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
function boundMethod(target, key, descriptor) {
|
|
294
|
-
var fn = descriptor.value;
|
|
295
|
-
|
|
296
|
-
if (typeof fn !== 'function') {
|
|
297
|
-
throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(_typeof(fn)));
|
|
298
|
-
} // In IE11 calling Object.defineProperty has a side-effect of evaluating the
|
|
299
|
-
// getter for the property which is being replaced. This causes infinite
|
|
300
|
-
// recursion and an "Out of stack space" error.
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
var definingProperty = false;
|
|
304
|
-
return {
|
|
305
|
-
configurable: true,
|
|
306
|
-
get: function get() {
|
|
307
|
-
// eslint-disable-next-line no-prototype-builtins
|
|
308
|
-
if (definingProperty || this === target.prototype || this.hasOwnProperty(key) || typeof fn !== 'function') {
|
|
309
|
-
return fn;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
var boundFn = fn.bind(this);
|
|
313
|
-
definingProperty = true;
|
|
314
|
-
Object.defineProperty(this, key, {
|
|
315
|
-
configurable: true,
|
|
316
|
-
get: function get() {
|
|
317
|
-
return boundFn;
|
|
318
|
-
},
|
|
319
|
-
set: function set(value) {
|
|
320
|
-
fn = value;
|
|
321
|
-
delete this[key];
|
|
322
|
-
}
|
|
323
|
-
});
|
|
324
|
-
definingProperty = false;
|
|
325
|
-
return boundFn;
|
|
326
|
-
},
|
|
327
|
-
set: function set(value) {
|
|
328
|
-
fn = value;
|
|
329
|
-
}
|
|
330
|
-
};
|
|
331
|
-
}
|
|
332
|
-
/**
|
|
333
|
-
* Use boundMethod to bind all methods on the target.prototype
|
|
334
|
-
*/
|
|
335
|
-
|
|
336
|
-
function boundClass(target) {
|
|
337
|
-
// (Using reflect to get all keys including symbols)
|
|
338
|
-
var keys; // Use Reflect if exists
|
|
339
|
-
|
|
340
|
-
if (typeof Reflect !== 'undefined' && typeof Reflect.ownKeys === 'function') {
|
|
341
|
-
keys = Reflect.ownKeys(target.prototype);
|
|
342
|
-
} else {
|
|
343
|
-
keys = Object.getOwnPropertyNames(target.prototype); // Use symbols if support is provided
|
|
344
|
-
|
|
345
|
-
if (typeof Object.getOwnPropertySymbols === 'function') {
|
|
346
|
-
keys = keys.concat(Object.getOwnPropertySymbols(target.prototype));
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
keys.forEach(function (key) {
|
|
351
|
-
// Ignore special case target method
|
|
352
|
-
if (key === 'constructor') {
|
|
353
|
-
return;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
var descriptor = Object.getOwnPropertyDescriptor(target.prototype, key); // Only methods need binding
|
|
357
|
-
|
|
358
|
-
if (typeof descriptor.value === 'function') {
|
|
359
|
-
Object.defineProperty(target.prototype, key, boundMethod(target, key, descriptor));
|
|
360
|
-
}
|
|
361
|
-
});
|
|
362
|
-
return target;
|
|
363
|
-
}
|
|
364
|
-
function autobind() {
|
|
365
|
-
if (arguments.length === 1) {
|
|
366
|
-
return boundClass.apply(void 0, arguments);
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
return boundMethod.apply(void 0, arguments);
|
|
370
|
-
}
|
|
371
|
-
|
|
372
376
|
/***/ }),
|
|
373
377
|
|
|
374
378
|
/***/ 5692:
|
|
@@ -422,17 +426,11 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__3778__;
|
|
|
422
426
|
function _typeof(obj) {
|
|
423
427
|
"@babel/helpers - typeof";
|
|
424
428
|
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
}
|
|
430
|
-
_typeof = function _typeof(obj) {
|
|
431
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
432
|
-
};
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
return _typeof(obj);
|
|
429
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
430
|
+
return typeof obj;
|
|
431
|
+
} : function (obj) {
|
|
432
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
433
|
+
}, _typeof(obj);
|
|
436
434
|
}
|
|
437
435
|
|
|
438
436
|
/***/ })
|
|
@@ -549,7 +547,7 @@ function _typeof(obj) {
|
|
|
549
547
|
/******/ var installedChunks = {
|
|
550
548
|
/******/ 1030: 0,
|
|
551
549
|
/******/ 2823: 0,
|
|
552
|
-
/******/
|
|
550
|
+
/******/ 6999: 0
|
|
553
551
|
/******/ };
|
|
554
552
|
/******/
|
|
555
553
|
/******/ // no chunk on demand loading
|
|
@@ -599,7 +597,7 @@ function _typeof(obj) {
|
|
|
599
597
|
/******/ // startup
|
|
600
598
|
/******/ // Load entry module and return exports
|
|
601
599
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
602
|
-
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, [
|
|
600
|
+
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, [6999], () => (__webpack_require__(4389)))
|
|
603
601
|
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
|
604
602
|
/******/
|
|
605
603
|
/******/ return __webpack_exports__;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToggleButtonGroup/index.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACV0B;AAC4E;AACvC;AAE5B;AAQnC;IAAkC,gCAAsC;IAAxE;;IA+CA,CAAC;IA5CW,iCAAU,GAAlB;QACI,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,IAAI,EAAE;YACzB,OAAO,IAAI,CAAC;SACf;QAED,OAAO,uCAAC,kCAAe,IAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,GAAI,CAAC;IACtD,CAAC;IAEO,yCAAkB,GAA1B;QACI,OAAO,CACH;YACI,gDAAK,SAAS,EAAC,uBAAuB,IAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAO;YACjE,IAAI,CAAC,UAAU,EAAE,CAChB,CACT,CAAC;IACN,CAAC;IAEO,mCAAY,GAApB;QACI,OAAO,CACH,uCAAC,wBAAc,IACX,SAAS,EAAC,8BAA8B,EACxC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EACrB,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,EAC3B,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,EAC7B,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,EAC7B,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,QA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ACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;;;;;UElDA;UACA;UACA;UACA;UACA","sources":["webpack://atoka-design-system/webpack/universalModuleDefinition","webpack://atoka-design-system/./src/components/ToggleButtonGroup/ToggleButton.tsx","webpack://atoka-design-system/./src/components/ToggleButtonGroup/ToggleButtonGroup.tsx","webpack://atoka-design-system/./src/components/ToggleButtonGroup/index.ts","webpack://atoka-design-system/./src/components/Tooltip/Tooltip.tsx","webpack://atoka-design-system/./src/components/Tooltip/index.ts","webpack://atoka-design-system/./node_modules/autobind-decorator/lib/esm/index.js","webpack://atoka-design-system/external umd \"@fortawesome/react-fontawesome\"","webpack://atoka-design-system/external umd \"classnames\"","webpack://atoka-design-system/external umd \"react\"","webpack://atoka-design-system/external umd \"react-bootstrap/ButtonGroup\"","webpack://atoka-design-system/external umd \"react-bootstrap/OverlayTrigger\"","webpack://atoka-design-system/external umd \"react-bootstrap/ToggleButton\"","webpack://atoka-design-system/./node_modules/@babel/runtime/helpers/esm/typeof.js","webpack://atoka-design-system/webpack/bootstrap","webpack://atoka-design-system/webpack/runtime/chunk loaded","webpack://atoka-design-system/webpack/runtime/compat get default export","webpack://atoka-design-system/webpack/runtime/define property getters","webpack://atoka-design-system/webpack/runtime/hasOwnProperty shorthand","webpack://atoka-design-system/webpack/runtime/make namespace object","webpack://atoka-design-system/webpack/runtime/jsonp chunk loading","webpack://atoka-design-system/webpack/before-startup","webpack://atoka-design-system/webpack/startup","webpack://atoka-design-system/webpack/after-startup"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"@fortawesome/react-fontawesome\"), require(\"classnames\"), require(\"react\"), require(\"react-bootstrap/ButtonGroup\"), require(\"react-bootstrap/OverlayTrigger\"), require(\"react-bootstrap/ToggleButton\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"atoka-design-system\", [\"@fortawesome/react-fontawesome\", \"classnames\", \"react\", \"react-bootstrap/ButtonGroup\", \"react-bootstrap/OverlayTrigger\", \"react-bootstrap/ToggleButton\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"atoka-design-system\"] = factory(require(\"@fortawesome/react-fontawesome\"), require(\"classnames\"), require(\"react\"), require(\"react-bootstrap/ButtonGroup\"), require(\"react-bootstrap/OverlayTrigger\"), require(\"react-bootstrap/ToggleButton\"));\n\telse\n\t\troot[\"atoka-design-system\"] = factory(root[\"@fortawesome/react-fontawesome\"], root[\"classnames\"], root[\"react\"], root[\"react-bootstrap/ButtonGroup\"], root[\"react-bootstrap/OverlayTrigger\"], root[\"react-bootstrap/ToggleButton\"]);\n})(self, function(__WEBPACK_EXTERNAL_MODULE__5692__, __WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__, __WEBPACK_EXTERNAL_MODULE__5901__, __WEBPACK_EXTERNAL_MODULE__6043__, __WEBPACK_EXTERNAL_MODULE__3778__) {\nreturn ","import React from 'react';\nimport BsToggleButton, {ToggleButtonProps as BsToggleButtonProps} from 'react-bootstrap/ToggleButton';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {IconDefinition} from '@fortawesome/pro-light-svg-icons';\nimport {Tooltip} from '../Tooltip';\n\nexport interface ToggleButtonProps extends BsToggleButtonProps {\n icon?: IconDefinition;\n tooltipMessage?: React.ReactNode;\n sameSize?: boolean;\n}\n\nexport class ToggleButton extends React.PureComponent<ToggleButtonProps> {\n static displayName: string = 'ToggleButton';\n\n private renderIcon(): React.ReactNode {\n if (this.props.icon == null) {\n return null;\n }\n\n return <FontAwesomeIcon icon={this.props.icon} />;\n }\n\n private renderLabelAndIcon(): React.ReactNode {\n return (\n <div>\n <div className='btn-children d-inline'>{this.props.children}</div>\n {this.renderIcon()}\n </div>\n );\n }\n\n private renderButton(): JSX.Element {\n return (\n <BsToggleButton\n className='atoka-toggle-btn text-center'\n type={this.props.type}\n value={this.props.value}\n checked={this.props.checked}\n onChange={this.props.onChange}\n disabled={this.props.disabled}\n block={this.props.sameSize}\n >\n {this.renderLabelAndIcon()}\n </BsToggleButton>\n );\n }\n\n public render(): React.ReactNode {\n if (this.props.tooltipMessage == null) {\n return this.renderButton();\n }\n\n return (\n <Tooltip placement='top' content={this.props.tooltipMessage}>\n {this.renderButton()}\n </Tooltip>\n );\n }\n}\n","import React from 'react';\nimport autobind from 'autobind-decorator';\nimport classnames from 'classnames';\nimport ButtonGroup from 'react-bootstrap/ButtonGroup';\nimport {IconDefinition} from '@fortawesome/pro-light-svg-icons';\n\nimport {OptionData, PropsWithClassName} from '../Utils/CommonTypes';\n\nimport {ButtonSize} from '../Button';\nimport {ToggleButton} from './ToggleButton';\nimport './ToggleButtonGroup.less';\n\nexport interface ToggleOption extends OptionData {\n icon?: IconDefinition;\n tooltipMessage?: React.ReactNode;\n}\n\nexport interface ToggleButtonGroupProps extends PropsWithClassName {\n size: ButtonSize;\n sameSize?: boolean;\n value?: ToggleOption['value'];\n onChange?: (value: ToggleOption['value']) => void;\n options: ToggleOption[];\n}\n\nexport class ToggleButtonGroup extends React.PureComponent<ToggleButtonGroupProps> {\n static displayName: string = 'ToggleButtonGroup';\n public static defaultProps: ToggleButtonGroupProps = {\n size: 'md',\n options: [],\n };\n\n @autobind\n private onChange(value: ToggleOption['value']): void {\n if (this.props.onChange && value !== this.props.value) {\n this.props.onChange(value);\n }\n }\n\n @autobind\n private renderItem(option: ToggleOption, index: number): React.ReactNode {\n return (\n <ToggleButton\n key={index}\n type='radio'\n value={option.value}\n icon={option.icon}\n onChange={() => this.onChange(option.value)}\n checked={this.props.value === option.value}\n disabled={option.disabled}\n tooltipMessage={option.tooltipMessage}\n sameSize={this.props.sameSize}\n >\n {option.label}\n </ToggleButton>\n );\n }\n\n @autobind\n private renderButtons(): React.ReactNode {\n return this.props.options.map(this.renderItem);\n }\n\n public render(): React.ReactNode {\n const className: string = classnames(\n this.props.className,\n 'atoka-toggle-btn-group',\n 'btn-group-primary',\n `btn-group-${this.props.size}`,\n {\n 'd-flex': this.props.sameSize === true,\n },\n );\n return <ButtonGroup className={className}>{this.renderButtons()}</ButtonGroup>;\n }\n}\n","export {ToggleButtonGroup} from './ToggleButtonGroup';\n","import React from 'react';\nimport classnames from 'classnames';\nimport OverlayTrigger, {OverlayTriggerProps} from 'react-bootstrap/OverlayTrigger';\nimport {PropsWithClassName} from '../Utils';\nimport './Tooltip.less';\n\nexport type TooltipOverlayProps = Omit<OverlayTriggerProps, 'overlay'>;\nexport interface TooltipProps extends TooltipOverlayProps, PropsWithClassName {\n content: React.ReactNode;\n}\n/**\n * ### Overview\n *\n * A tooltip is a short message which is triggered when the users hovers or clicks on a specific element inside the interface.\n *\n * ### Best practices\n * - Don’t use a tooltip when the information you want to place inside it is vital for the user to complete the task\n * - The text inside the tooltip should be brief but helpful\n * - Use tooltips to describe the action of icon-only buttons\n * - Make sure that the tooltip’s placement doesn’t hide its related content behind it\n */\nexport const Tooltip: React.FC<TooltipProps> = React.memo((props) => {\n let bs4v3Wrapper = document.querySelector('.bs4-v3-external-container') as HTMLElement,\n placement = props.placement ?? 'top',\n classNames = classnames('tooltip atoka-tooltip', props.className, {\n 'top bs-tooltip-top': placement.indexOf('top') === 0,\n 'right bs-tooltip-right': placement.indexOf('right') === 0,\n 'bottom bs-tooltip-bottom': placement.indexOf('bottom') === 0,\n 'left bs-tooltip-left': placement.indexOf('left') === 0,\n });\n\n const {content, ...overlayProps} = props,\n renderTooltip: OverlayTriggerProps['overlay'] = ({arrowProps, ...tooltipProps}) => {\n // {vrut} do not pass show to the component, this will raise an error, see PANDA-439\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const {show, ...rest} = tooltipProps,\n component = (\n <div {...rest} className={classNames} role='tooltip'>\n <div className='tooltip-inner'>\n <div className='arrow arrow-back' {...arrowProps} />\n {content}\n <div className='arrow arrow-front' {...arrowProps} />\n </div>\n </div>\n );\n\n return component;\n };\n\n return (\n <OverlayTrigger {...overlayProps} container={bs4v3Wrapper} overlay={renderTooltip}>\n {props.children}\n </OverlayTrigger>\n );\n});\n\nTooltip.displayName = 'Tooltip';\n","export * from './Tooltip';\n","function _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/**\n * Return a descriptor removing the value and returning a getter\n * The getter will return a .bind version of the function\n * and memoize the result against a symbol on the instance\n */\nexport function boundMethod(target, key, descriptor) {\n var fn = descriptor.value;\n\n if (typeof fn !== 'function') {\n throw new TypeError(\"@boundMethod decorator can only be applied to methods not: \".concat(_typeof(fn)));\n } // In IE11 calling Object.defineProperty has a side-effect of evaluating the\n // getter for the property which is being replaced. This causes infinite\n // recursion and an \"Out of stack space\" error.\n\n\n var definingProperty = false;\n return {\n configurable: true,\n get: function get() {\n // eslint-disable-next-line no-prototype-builtins\n if (definingProperty || this === target.prototype || this.hasOwnProperty(key) || typeof fn !== 'function') {\n return fn;\n }\n\n var boundFn = fn.bind(this);\n definingProperty = true;\n Object.defineProperty(this, key, {\n configurable: true,\n get: function get() {\n return boundFn;\n },\n set: function set(value) {\n fn = value;\n delete this[key];\n }\n });\n definingProperty = false;\n return boundFn;\n },\n set: function set(value) {\n fn = value;\n }\n };\n}\n/**\n * Use boundMethod to bind all methods on the target.prototype\n */\n\nexport function boundClass(target) {\n // (Using reflect to get all keys including symbols)\n var keys; // Use Reflect if exists\n\n if (typeof Reflect !== 'undefined' && typeof Reflect.ownKeys === 'function') {\n keys = Reflect.ownKeys(target.prototype);\n } else {\n keys = Object.getOwnPropertyNames(target.prototype); // Use symbols if support is provided\n\n if (typeof Object.getOwnPropertySymbols === 'function') {\n keys = keys.concat(Object.getOwnPropertySymbols(target.prototype));\n }\n }\n\n keys.forEach(function (key) {\n // Ignore special case target method\n if (key === 'constructor') {\n return;\n }\n\n var descriptor = Object.getOwnPropertyDescriptor(target.prototype, key); // Only methods need binding\n\n if (typeof descriptor.value === 'function') {\n Object.defineProperty(target.prototype, key, boundMethod(target, key, descriptor));\n }\n });\n return target;\n}\nexport default function autobind() {\n if (arguments.length === 1) {\n return boundClass.apply(void 0, arguments);\n }\n\n return boundMethod.apply(void 0, arguments);\n}","module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;","module.exports = __WEBPACK_EXTERNAL_MODULE__5901__;","module.exports = __WEBPACK_EXTERNAL_MODULE__6043__;","module.exports = __WEBPACK_EXTERNAL_MODULE__3778__;","export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t1030: 0,\n\t2823: 0,\n\t2210: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkIds[i]] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkatoka_design_system\"] = self[\"webpackChunkatoka_design_system\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [2210], () => (__webpack_require__(6237)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["_typeof","obj","Symbol","iterator","constructor","prototype","boundMethod","target","key","descriptor","fn","value","TypeError","concat","definingProperty","configurable","get","hasOwnProperty","boundFn","bind","Object","defineProperty","set","boundClass","keys","Reflect","ownKeys","getOwnPropertyNames","getOwnPropertySymbols","forEach","getOwnPropertyDescriptor","autobind","arguments","length","apply"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"ToggleButtonGroup/index.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;;;;;;;;;;;;;ACVA,SAASA,OAAT,CAAiBC,GAAjB,EAAsB;EAAE,IAAI,OAAOC,MAAP,KAAkB,UAAlB,IAAgC,mFAAOA,MAAM,CAACC,QAAd,MAA2B,QAA/D,EAAyE;IAAEH,OAAO,GAAG,SAASA,OAAT,CAAiBC,GAAjB,EAAsB;MAAE,OAAO,mFAAOA,GAAd;IAAoB,CAAtD;EAAyD,CAApI,MAA0I;IAAED,OAAO,GAAG,SAASA,OAAT,CAAiBC,GAAjB,EAAsB;MAAE,OAAOA,GAAG,IAAI,OAAOC,MAAP,KAAkB,UAAzB,IAAuCD,GAAG,CAACG,WAAJ,KAAoBF,MAA3D,IAAqED,GAAG,KAAKC,MAAM,CAACG,SAApF,GAAgG,QAAhG,sFAAkHJ,GAAlH,CAA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AEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;;;;;UElDA;UACA;UACA;UACA;UACA","sources":["webpack://atoka-design-system/webpack/universalModuleDefinition","webpack://atoka-design-system/./node_modules/autobind-decorator/lib/esm/index.js","webpack://atoka-design-system/./src/components/ToggleButtonGroup/ToggleButton.tsx","webpack://atoka-design-system/./src/components/ToggleButtonGroup/ToggleButtonGroup.tsx","webpack://atoka-design-system/./src/components/ToggleButtonGroup/index.ts","webpack://atoka-design-system/./src/components/Tooltip/Tooltip.tsx","webpack://atoka-design-system/./src/components/Tooltip/index.ts","webpack://atoka-design-system/external umd \"@fortawesome/react-fontawesome\"","webpack://atoka-design-system/external umd \"classnames\"","webpack://atoka-design-system/external umd \"react\"","webpack://atoka-design-system/external umd \"react-bootstrap/ButtonGroup\"","webpack://atoka-design-system/external umd \"react-bootstrap/OverlayTrigger\"","webpack://atoka-design-system/external umd \"react-bootstrap/ToggleButton\"","webpack://atoka-design-system/./node_modules/@babel/runtime/helpers/esm/typeof.js","webpack://atoka-design-system/webpack/bootstrap","webpack://atoka-design-system/webpack/runtime/chunk loaded","webpack://atoka-design-system/webpack/runtime/compat get default export","webpack://atoka-design-system/webpack/runtime/define property getters","webpack://atoka-design-system/webpack/runtime/hasOwnProperty shorthand","webpack://atoka-design-system/webpack/runtime/make namespace object","webpack://atoka-design-system/webpack/runtime/jsonp chunk loading","webpack://atoka-design-system/webpack/before-startup","webpack://atoka-design-system/webpack/startup","webpack://atoka-design-system/webpack/after-startup"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"@fortawesome/react-fontawesome\"), require(\"classnames\"), require(\"react\"), require(\"react-bootstrap/ButtonGroup\"), require(\"react-bootstrap/OverlayTrigger\"), require(\"react-bootstrap/ToggleButton\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"atoka-design-system\", [\"@fortawesome/react-fontawesome\", \"classnames\", \"react\", \"react-bootstrap/ButtonGroup\", \"react-bootstrap/OverlayTrigger\", \"react-bootstrap/ToggleButton\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"atoka-design-system\"] = factory(require(\"@fortawesome/react-fontawesome\"), require(\"classnames\"), require(\"react\"), require(\"react-bootstrap/ButtonGroup\"), require(\"react-bootstrap/OverlayTrigger\"), require(\"react-bootstrap/ToggleButton\"));\n\telse\n\t\troot[\"atoka-design-system\"] = factory(root[\"@fortawesome/react-fontawesome\"], root[\"classnames\"], root[\"react\"], root[\"react-bootstrap/ButtonGroup\"], root[\"react-bootstrap/OverlayTrigger\"], root[\"react-bootstrap/ToggleButton\"]);\n})(self, function(__WEBPACK_EXTERNAL_MODULE__5692__, __WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__, __WEBPACK_EXTERNAL_MODULE__5901__, __WEBPACK_EXTERNAL_MODULE__6043__, __WEBPACK_EXTERNAL_MODULE__3778__) {\nreturn ","function _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/**\n * Return a descriptor removing the value and returning a getter\n * The getter will return a .bind version of the function\n * and memoize the result against a symbol on the instance\n */\nexport function boundMethod(target, key, descriptor) {\n var fn = descriptor.value;\n\n if (typeof fn !== 'function') {\n throw new TypeError(\"@boundMethod decorator can only be applied to methods not: \".concat(_typeof(fn)));\n } // In IE11 calling Object.defineProperty has a side-effect of evaluating the\n // getter for the property which is being replaced. This causes infinite\n // recursion and an \"Out of stack space\" error.\n\n\n var definingProperty = false;\n return {\n configurable: true,\n get: function get() {\n // eslint-disable-next-line no-prototype-builtins\n if (definingProperty || this === target.prototype || this.hasOwnProperty(key) || typeof fn !== 'function') {\n return fn;\n }\n\n var boundFn = fn.bind(this);\n definingProperty = true;\n Object.defineProperty(this, key, {\n configurable: true,\n get: function get() {\n return boundFn;\n },\n set: function set(value) {\n fn = value;\n delete this[key];\n }\n });\n definingProperty = false;\n return boundFn;\n },\n set: function set(value) {\n fn = value;\n }\n };\n}\n/**\n * Use boundMethod to bind all methods on the target.prototype\n */\n\nexport function boundClass(target) {\n // (Using reflect to get all keys including symbols)\n var keys; // Use Reflect if exists\n\n if (typeof Reflect !== 'undefined' && typeof Reflect.ownKeys === 'function') {\n keys = Reflect.ownKeys(target.prototype);\n } else {\n keys = Object.getOwnPropertyNames(target.prototype); // Use symbols if support is provided\n\n if (typeof Object.getOwnPropertySymbols === 'function') {\n keys = keys.concat(Object.getOwnPropertySymbols(target.prototype));\n }\n }\n\n keys.forEach(function (key) {\n // Ignore special case target method\n if (key === 'constructor') {\n return;\n }\n\n var descriptor = Object.getOwnPropertyDescriptor(target.prototype, key); // Only methods need binding\n\n if (typeof descriptor.value === 'function') {\n Object.defineProperty(target.prototype, key, boundMethod(target, key, descriptor));\n }\n });\n return target;\n}\nexport default function autobind() {\n if (arguments.length === 1) {\n return boundClass.apply(void 0, arguments);\n }\n\n return boundMethod.apply(void 0, arguments);\n}","import React from 'react';\nimport BsToggleButton, {ToggleButtonProps as BsToggleButtonProps} from 'react-bootstrap/ToggleButton';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {IconDefinition} from '@fortawesome/pro-light-svg-icons';\nimport {Tooltip} from '../Tooltip';\n\nexport interface ToggleButtonProps extends BsToggleButtonProps {\n icon?: IconDefinition;\n tooltipMessage?: React.ReactNode;\n sameSize?: boolean;\n}\n\nexport class ToggleButton extends React.PureComponent<ToggleButtonProps> {\n static displayName: string = 'ToggleButton';\n\n private renderIcon(): React.ReactNode {\n if (this.props.icon == null) {\n return null;\n }\n\n return <FontAwesomeIcon icon={this.props.icon} />;\n }\n\n private renderLabelAndIcon(): React.ReactNode {\n return (\n <div>\n <div className='btn-children d-inline'>{this.props.children}</div>\n {this.renderIcon()}\n </div>\n );\n }\n\n private renderButton(): JSX.Element {\n return (\n <BsToggleButton\n className='atoka-toggle-btn text-center'\n type={this.props.type}\n value={this.props.value}\n checked={this.props.checked}\n onChange={this.props.onChange}\n disabled={this.props.disabled}\n block={this.props.sameSize}\n >\n {this.renderLabelAndIcon()}\n </BsToggleButton>\n );\n }\n\n public render(): React.ReactNode {\n if (this.props.tooltipMessage == null) {\n return this.renderButton();\n }\n\n return (\n <Tooltip placement='top' content={this.props.tooltipMessage}>\n {this.renderButton()}\n </Tooltip>\n );\n }\n}\n","import React from 'react';\nimport autobind from 'autobind-decorator';\nimport classnames from 'classnames';\nimport ButtonGroup from 'react-bootstrap/ButtonGroup';\nimport {IconDefinition} from '@fortawesome/pro-light-svg-icons';\n\nimport {OptionData, PropsWithClassName} from '../Utils/CommonTypes';\n\nimport {ButtonSize} from '../Button';\nimport {ToggleButton} from './ToggleButton';\nimport './ToggleButtonGroup.less';\n\nexport interface ToggleOption extends OptionData {\n icon?: IconDefinition;\n tooltipMessage?: React.ReactNode;\n}\n\nexport interface ToggleButtonGroupProps extends PropsWithClassName {\n size: ButtonSize;\n sameSize?: boolean;\n value?: ToggleOption['value'];\n onChange?: (value: ToggleOption['value']) => void;\n options: ToggleOption[];\n}\n\nexport class ToggleButtonGroup extends React.PureComponent<ToggleButtonGroupProps> {\n static displayName: string = 'ToggleButtonGroup';\n public static defaultProps: ToggleButtonGroupProps = {\n size: 'md',\n options: [],\n };\n\n @autobind\n private onChange(value: ToggleOption['value']): void {\n if (this.props.onChange && value !== this.props.value) {\n this.props.onChange(value);\n }\n }\n\n @autobind\n private renderItem(option: ToggleOption, index: number): React.ReactNode {\n return (\n <ToggleButton\n key={index}\n type='radio'\n value={option.value}\n icon={option.icon}\n onChange={() => this.onChange(option.value)}\n checked={this.props.value === option.value}\n disabled={option.disabled}\n tooltipMessage={option.tooltipMessage}\n sameSize={this.props.sameSize}\n >\n {option.label}\n </ToggleButton>\n );\n }\n\n @autobind\n private renderButtons(): React.ReactNode {\n return this.props.options.map(this.renderItem);\n }\n\n public render(): React.ReactNode {\n const className: string = classnames(\n this.props.className,\n 'atoka-toggle-btn-group',\n 'btn-group-primary',\n `btn-group-${this.props.size}`,\n {\n 'd-flex': this.props.sameSize === true,\n },\n );\n return <ButtonGroup className={className}>{this.renderButtons()}</ButtonGroup>;\n }\n}\n","export {ToggleButtonGroup} from './ToggleButtonGroup';\n","import React from 'react';\nimport classnames from 'classnames';\nimport OverlayTrigger, {OverlayTriggerProps} from 'react-bootstrap/OverlayTrigger';\nimport {PropsWithClassName} from '../Utils';\nimport './Tooltip.less';\n\nexport type TooltipOverlayProps = Omit<OverlayTriggerProps, 'overlay'>;\nexport interface TooltipProps extends TooltipOverlayProps, PropsWithClassName {\n content: React.ReactNode;\n}\n/**\n * ### Overview\n *\n * A tooltip is a short message which is triggered when the users hovers or clicks on a specific element inside the interface.\n *\n * ### Best practices\n * - Don’t use a tooltip when the information you want to place inside it is vital for the user to complete the task\n * - The text inside the tooltip should be brief but helpful\n * - Use tooltips to describe the action of icon-only buttons\n * - Make sure that the tooltip’s placement doesn’t hide its related content behind it\n */\nexport const Tooltip: React.FC<TooltipProps> = React.memo((props) => {\n let bs4v3Wrapper = document.querySelector('.bs4-v3-external-container') as HTMLElement,\n placement = props.placement ?? 'top',\n classNames = classnames('tooltip atoka-tooltip', props.className, {\n 'top bs-tooltip-top': placement.indexOf('top') === 0,\n 'right bs-tooltip-right': placement.indexOf('right') === 0,\n 'bottom bs-tooltip-bottom': placement.indexOf('bottom') === 0,\n 'left bs-tooltip-left': placement.indexOf('left') === 0,\n });\n\n const {content, ...overlayProps} = props,\n renderTooltip: OverlayTriggerProps['overlay'] = ({arrowProps, ...tooltipProps}) => {\n // {vrut} do not pass show to the component, this will raise an error, see PANDA-439\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const {show, ...rest} = tooltipProps,\n component = (\n <div {...rest} className={classNames} role='tooltip'>\n <div className='tooltip-inner'>\n <div className='arrow arrow-back' {...arrowProps} />\n {content}\n <div className='arrow arrow-front' {...arrowProps} />\n </div>\n </div>\n );\n\n return component;\n };\n\n return (\n <OverlayTrigger {...overlayProps} container={bs4v3Wrapper} overlay={renderTooltip}>\n {props.children}\n </OverlayTrigger>\n );\n});\n\nTooltip.displayName = 'Tooltip';\n","export * from './Tooltip';\n","module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;","module.exports = __WEBPACK_EXTERNAL_MODULE__5901__;","module.exports = __WEBPACK_EXTERNAL_MODULE__6043__;","module.exports = __WEBPACK_EXTERNAL_MODULE__3778__;","export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t1030: 0,\n\t2823: 0,\n\t6999: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkIds[i]] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkatoka_design_system\"] = self[\"webpackChunkatoka_design_system\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [6999], () => (__webpack_require__(4389)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["_typeof","obj","Symbol","iterator","constructor","prototype","boundMethod","target","key","descriptor","fn","value","TypeError","concat","definingProperty","configurable","get","hasOwnProperty","boundFn","bind","Object","defineProperty","set","boundClass","keys","Reflect","ownKeys","getOwnPropertyNames","getOwnPropertySymbols","forEach","getOwnPropertyDescriptor","autobind","arguments","length","apply"],"sourceRoot":""}
|
package/Tooltip/index.js
CHANGED
|
@@ -12,7 +12,7 @@ return /******/ (() => { // webpackBootstrap
|
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
14
14
|
|
|
15
|
-
/***/
|
|
15
|
+
/***/ 4603:
|
|
16
16
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17
17
|
|
|
18
18
|
// ESM COMPAT FLAG
|
|
@@ -231,7 +231,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__6043__;
|
|
|
231
231
|
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
|
232
232
|
/******/ var installedChunks = {
|
|
233
233
|
/******/ 2823: 0,
|
|
234
|
-
/******/
|
|
234
|
+
/******/ 6999: 0
|
|
235
235
|
/******/ };
|
|
236
236
|
/******/
|
|
237
237
|
/******/ // no chunk on demand loading
|
|
@@ -281,7 +281,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__6043__;
|
|
|
281
281
|
/******/ // startup
|
|
282
282
|
/******/ // Load entry module and return exports
|
|
283
283
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
284
|
-
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, [
|
|
284
|
+
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, [6999], () => (__webpack_require__(4603)))
|
|
285
285
|
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
|
286
286
|
/******/
|
|
287
287
|
/******/ return __webpack_exports__;
|
package/Tooltip/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip/index.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACV0B;AACU;AAC+C;AAE3D;AAMxB;;;;;;;;;;GAUG;AACI,IAAM,OAAO,GAA2B,6BAAU,CAAC,UAAC,KAAK;;IAC5D,IAAI,YAAY,GAAG,QAAQ,CAAC,aAAa,CAAC,4BAA4B,CAAgB,EAClF,SAAS,SAAG,KAAK,CAAC,SAAS,mCAAI,KAAK,EACpC,UAAU,GAAG,6BAAU,CAAC,uBAAuB,EAAE,KAAK,CAAC,SAAS,EAAE;QAC9D,oBAAoB,EAAE,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;QACpD,wBAAwB,EAAE,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC;QAC1D,0BAA0B,EAAE,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC;QAC7D,sBAAsB,EAAE,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC;KAC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ACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://atoka-design-system/webpack/universalModuleDefinition","webpack://atoka-design-system/./src/components/Tooltip/Tooltip.tsx","webpack://atoka-design-system/./src/components/Tooltip/index.ts","webpack://atoka-design-system/external umd \"classnames\"","webpack://atoka-design-system/external umd \"react\"","webpack://atoka-design-system/external umd \"react-bootstrap/OverlayTrigger\"","webpack://atoka-design-system/webpack/bootstrap","webpack://atoka-design-system/webpack/runtime/chunk loaded","webpack://atoka-design-system/webpack/runtime/compat get default export","webpack://atoka-design-system/webpack/runtime/define property getters","webpack://atoka-design-system/webpack/runtime/hasOwnProperty shorthand","webpack://atoka-design-system/webpack/runtime/make namespace object","webpack://atoka-design-system/webpack/runtime/jsonp chunk loading","webpack://atoka-design-system/webpack/before-startup","webpack://atoka-design-system/webpack/startup","webpack://atoka-design-system/webpack/after-startup"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"classnames\"), require(\"react\"), require(\"react-bootstrap/OverlayTrigger\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"atoka-design-system\", [\"classnames\", \"react\", \"react-bootstrap/OverlayTrigger\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"atoka-design-system\"] = factory(require(\"classnames\"), require(\"react\"), require(\"react-bootstrap/OverlayTrigger\"));\n\telse\n\t\troot[\"atoka-design-system\"] = factory(root[\"classnames\"], root[\"react\"], root[\"react-bootstrap/OverlayTrigger\"]);\n})(self, function(__WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__, __WEBPACK_EXTERNAL_MODULE__6043__) {\nreturn ","import React from 'react';\nimport classnames from 'classnames';\nimport OverlayTrigger, {OverlayTriggerProps} from 'react-bootstrap/OverlayTrigger';\nimport {PropsWithClassName} from '../Utils';\nimport './Tooltip.less';\n\nexport type TooltipOverlayProps = Omit<OverlayTriggerProps, 'overlay'>;\nexport interface TooltipProps extends TooltipOverlayProps, PropsWithClassName {\n content: React.ReactNode;\n}\n/**\n * ### Overview\n *\n * A tooltip is a short message which is triggered when the users hovers or clicks on a specific element inside the interface.\n *\n * ### Best practices\n * - Don’t use a tooltip when the information you want to place inside it is vital for the user to complete the task\n * - The text inside the tooltip should be brief but helpful\n * - Use tooltips to describe the action of icon-only buttons\n * - Make sure that the tooltip’s placement doesn’t hide its related content behind it\n */\nexport const Tooltip: React.FC<TooltipProps> = React.memo((props) => {\n let bs4v3Wrapper = document.querySelector('.bs4-v3-external-container') as HTMLElement,\n placement = props.placement ?? 'top',\n classNames = classnames('tooltip atoka-tooltip', props.className, {\n 'top bs-tooltip-top': placement.indexOf('top') === 0,\n 'right bs-tooltip-right': placement.indexOf('right') === 0,\n 'bottom bs-tooltip-bottom': placement.indexOf('bottom') === 0,\n 'left bs-tooltip-left': placement.indexOf('left') === 0,\n });\n\n const {content, ...overlayProps} = props,\n renderTooltip: OverlayTriggerProps['overlay'] = ({arrowProps, ...tooltipProps}) => {\n // {vrut} do not pass show to the component, this will raise an error, see PANDA-439\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const {show, ...rest} = tooltipProps,\n component = (\n <div {...rest} className={classNames} role='tooltip'>\n <div className='tooltip-inner'>\n <div className='arrow arrow-back' {...arrowProps} />\n {content}\n <div className='arrow arrow-front' {...arrowProps} />\n </div>\n </div>\n );\n\n return component;\n };\n\n return (\n <OverlayTrigger {...overlayProps} container={bs4v3Wrapper} overlay={renderTooltip}>\n {props.children}\n </OverlayTrigger>\n );\n});\n\nTooltip.displayName = 'Tooltip';\n","export * from './Tooltip';\n","module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;","module.exports = __WEBPACK_EXTERNAL_MODULE__6043__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t2823: 0,\n\t2210: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkIds[i]] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkatoka_design_system\"] = self[\"webpackChunkatoka_design_system\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [2210], () => (__webpack_require__(1512)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":[],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"Tooltip/index.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACV0B;AACU;AAC+C;AAE3D;AAMxB;;;;;;;;;;GAUG;AACI,IAAM,OAAO,GAA2B,6BAAU,CAAC,UAAC,KAAK;;IAC5D,IAAI,YAAY,GAAG,QAAQ,CAAC,aAAa,CAAC,4BAA4B,CAAgB,EAClF,SAAS,GAAG,WAAK,CAAC,SAAS,mCAAI,KAAK,EACpC,UAAU,GAAG,6BAAU,CAAC,uBAAuB,EAAE,KAAK,CAAC,SAAS,EAAE;QAC9D,oBAAoB,EAAE,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;QACpD,wBAAwB,EAAE,SAAS,CAAC,OAAO,CAAC,OAAO,CAA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WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://atoka-design-system/webpack/universalModuleDefinition","webpack://atoka-design-system/./src/components/Tooltip/Tooltip.tsx","webpack://atoka-design-system/./src/components/Tooltip/index.ts","webpack://atoka-design-system/external umd \"classnames\"","webpack://atoka-design-system/external umd \"react\"","webpack://atoka-design-system/external umd \"react-bootstrap/OverlayTrigger\"","webpack://atoka-design-system/webpack/bootstrap","webpack://atoka-design-system/webpack/runtime/chunk loaded","webpack://atoka-design-system/webpack/runtime/compat get default export","webpack://atoka-design-system/webpack/runtime/define property getters","webpack://atoka-design-system/webpack/runtime/hasOwnProperty shorthand","webpack://atoka-design-system/webpack/runtime/make namespace object","webpack://atoka-design-system/webpack/runtime/jsonp chunk loading","webpack://atoka-design-system/webpack/before-startup","webpack://atoka-design-system/webpack/startup","webpack://atoka-design-system/webpack/after-startup"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"classnames\"), require(\"react\"), require(\"react-bootstrap/OverlayTrigger\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"atoka-design-system\", [\"classnames\", \"react\", \"react-bootstrap/OverlayTrigger\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"atoka-design-system\"] = factory(require(\"classnames\"), require(\"react\"), require(\"react-bootstrap/OverlayTrigger\"));\n\telse\n\t\troot[\"atoka-design-system\"] = factory(root[\"classnames\"], root[\"react\"], root[\"react-bootstrap/OverlayTrigger\"]);\n})(self, function(__WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__, __WEBPACK_EXTERNAL_MODULE__6043__) {\nreturn ","import React from 'react';\nimport classnames from 'classnames';\nimport OverlayTrigger, {OverlayTriggerProps} from 'react-bootstrap/OverlayTrigger';\nimport {PropsWithClassName} from '../Utils';\nimport './Tooltip.less';\n\nexport type TooltipOverlayProps = Omit<OverlayTriggerProps, 'overlay'>;\nexport interface TooltipProps extends TooltipOverlayProps, PropsWithClassName {\n content: React.ReactNode;\n}\n/**\n * ### Overview\n *\n * A tooltip is a short message which is triggered when the users hovers or clicks on a specific element inside the interface.\n *\n * ### Best practices\n * - Don’t use a tooltip when the information you want to place inside it is vital for the user to complete the task\n * - The text inside the tooltip should be brief but helpful\n * - Use tooltips to describe the action of icon-only buttons\n * - Make sure that the tooltip’s placement doesn’t hide its related content behind it\n */\nexport const Tooltip: React.FC<TooltipProps> = React.memo((props) => {\n let bs4v3Wrapper = document.querySelector('.bs4-v3-external-container') as HTMLElement,\n placement = props.placement ?? 'top',\n classNames = classnames('tooltip atoka-tooltip', props.className, {\n 'top bs-tooltip-top': placement.indexOf('top') === 0,\n 'right bs-tooltip-right': placement.indexOf('right') === 0,\n 'bottom bs-tooltip-bottom': placement.indexOf('bottom') === 0,\n 'left bs-tooltip-left': placement.indexOf('left') === 0,\n });\n\n const {content, ...overlayProps} = props,\n renderTooltip: OverlayTriggerProps['overlay'] = ({arrowProps, ...tooltipProps}) => {\n // {vrut} do not pass show to the component, this will raise an error, see PANDA-439\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const {show, ...rest} = tooltipProps,\n component = (\n <div {...rest} className={classNames} role='tooltip'>\n <div className='tooltip-inner'>\n <div className='arrow arrow-back' {...arrowProps} />\n {content}\n <div className='arrow arrow-front' {...arrowProps} />\n </div>\n </div>\n );\n\n return component;\n };\n\n return (\n <OverlayTrigger {...overlayProps} container={bs4v3Wrapper} overlay={renderTooltip}>\n {props.children}\n </OverlayTrigger>\n );\n});\n\nTooltip.displayName = 'Tooltip';\n","export * from './Tooltip';\n","module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;","module.exports = __WEBPACK_EXTERNAL_MODULE__6043__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t2823: 0,\n\t6999: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkIds[i]] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkatoka_design_system\"] = self[\"webpackChunkatoka_design_system\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [6999], () => (__webpack_require__(4603)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":[],"sourceRoot":""}
|