@spaziodati/atoka-design-system 2.1.6 → 2.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/AddableItems/index.js +1 -1050
  2. package/Alert/index.js +1 -321
  3. package/Badge/index.js +1 -285
  4. package/Bs4V3Wrapper/index.js +1 -253
  5. package/BubbleChart/index.js +2 -3424
  6. package/BubbleChart/index.js.LICENSE.txt +1 -0
  7. package/Button/index.js +1 -325
  8. package/ButtonDropdown/index.js +1 -601
  9. package/CardsPage/index.js +1 -2505
  10. package/CursorPagination/index.js +1 -948
  11. package/DatePicker/index.js +1 -449
  12. package/DetailPage/index.js +1 -1990
  13. package/Dropdown/index.js +1 -723
  14. package/EditableString/index.js +1 -3238
  15. package/EllipsableContent/index.js +1 -786
  16. package/EmptyState/index.js +1 -280
  17. package/Facet/index.js +1 -919
  18. package/FacetSection/index.js +1 -447
  19. package/FadeAnimation/index.js +1 -1157
  20. package/FeedbackButton/index.js +1 -400
  21. package/Form/index.js +1 -450
  22. package/Funnel/index.js +2 -3624
  23. package/Funnel/index.js.LICENSE.txt +1 -0
  24. package/GridCard/index.js +1 -1626
  25. package/HighlightableText/index.js +1 -625
  26. package/Histogram/index.js +1 -2346
  27. package/InlineStringEditor/index.js +1 -1862
  28. package/InputGroup/index.js +1 -279
  29. package/Jumbotron/index.js +1 -272
  30. package/Map/index.js +2 -5187
  31. package/Map/index.js.LICENSE.txt +10 -0
  32. package/Modal/index.js +1 -745
  33. package/Navbar/index.js +1 -3430
  34. package/Pagination/index.js +1 -990
  35. package/PieChart/index.js +1 -1971
  36. package/PublicFooter/index.js +1 -458
  37. package/PublicNavbar/index.js +1 -257
  38. package/RecordBit/index.js +1 -486
  39. package/ResultItemCard/index.js +1 -1073
  40. package/SelectDropdown/index.js +1 -1506
  41. package/Spinner/index.js +1 -327
  42. package/StatisticsItemCard/index.js +1 -1796
  43. package/StatisticsItemNumeric/index.js +1 -285
  44. package/StatisticsLegend/index.js +1 -1555
  45. package/StatisticsTooltip/index.js +1 -796
  46. package/Suggester/index.js +1 -1126
  47. package/SunBurst/index.js +1 -1166
  48. package/TabSwitcher/index.js +1 -1135
  49. package/Title/index.js +1 -304
  50. package/Toasts/index.js +1 -2285
  51. package/ToggleButtonGroup/index.js +1 -607
  52. package/Tooltip/index.js +1 -291
  53. package/Utils/index.js +2 -3002
  54. package/Utils/index.js.LICENSE.txt +1 -0
  55. package/{atoka-design-system-2.1.6.min.css → atoka-design-system-2.1.7.min.css} +0 -0
  56. package/index.js +2 -16819
  57. package/index.js.LICENSE.txt +10 -0
  58. package/package.json +1 -1
  59. package/AddableItems/index.js.map +0 -1
  60. package/Alert/index.js.map +0 -1
  61. package/Badge/index.js.map +0 -1
  62. package/Bs4V3Wrapper/index.js.map +0 -1
  63. package/BubbleChart/index.js.map +0 -1
  64. package/Button/index.js.map +0 -1
  65. package/ButtonDropdown/index.js.map +0 -1
  66. package/CardsPage/index.js.map +0 -1
  67. package/CursorPagination/index.js.map +0 -1
  68. package/DatePicker/index.js.map +0 -1
  69. package/DetailPage/index.js.map +0 -1
  70. package/Dropdown/index.js.map +0 -1
  71. package/EditableString/index.js.map +0 -1
  72. package/EllipsableContent/index.js.map +0 -1
  73. package/EmptyState/index.js.map +0 -1
  74. package/Facet/index.js.map +0 -1
  75. package/FacetSection/index.js.map +0 -1
  76. package/FadeAnimation/index.js.map +0 -1
  77. package/FeedbackButton/index.js.map +0 -1
  78. package/Form/index.js.map +0 -1
  79. package/Funnel/index.js.map +0 -1
  80. package/GridCard/index.js.map +0 -1
  81. package/HighlightableText/index.js.map +0 -1
  82. package/Histogram/index.js.map +0 -1
  83. package/InlineStringEditor/index.js.map +0 -1
  84. package/InputGroup/index.js.map +0 -1
  85. package/Jumbotron/index.js.map +0 -1
  86. package/Map/index.js.map +0 -1
  87. package/Modal/index.js.map +0 -1
  88. package/Navbar/index.js.map +0 -1
  89. package/Pagination/index.js.map +0 -1
  90. package/PieChart/index.js.map +0 -1
  91. package/PublicFooter/index.js.map +0 -1
  92. package/PublicNavbar/index.js.map +0 -1
  93. package/RecordBit/index.js.map +0 -1
  94. package/ResultItemCard/index.js.map +0 -1
  95. package/SelectDropdown/index.js.map +0 -1
  96. package/Spinner/index.js.map +0 -1
  97. package/StatisticsItemCard/index.js.map +0 -1
  98. package/StatisticsItemNumeric/index.js.map +0 -1
  99. package/StatisticsLegend/index.js.map +0 -1
  100. package/StatisticsTooltip/index.js.map +0 -1
  101. package/Suggester/index.js.map +0 -1
  102. package/SunBurst/index.js.map +0 -1
  103. package/TabSwitcher/index.js.map +0 -1
  104. package/Title/index.js.map +0 -1
  105. package/Toasts/index.js.map +0 -1
  106. package/ToggleButtonGroup/index.js.map +0 -1
  107. package/Tooltip/index.js.map +0 -1
  108. package/Utils/index.js.map +0 -1
  109. package/index.js.map +0 -1
@@ -1,447 +1 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("@fortawesome/pro-light-svg-icons/faMinus"), require("@fortawesome/pro-light-svg-icons/faPlus"), require("@fortawesome/react-fontawesome"), require("classnames"), require("react"));
4
- else if(typeof define === 'function' && define.amd)
5
- define("atoka-design-system", ["@fortawesome/pro-light-svg-icons/faMinus", "@fortawesome/pro-light-svg-icons/faPlus", "@fortawesome/react-fontawesome", "classnames", "react"], factory);
6
- else if(typeof exports === 'object')
7
- exports["atoka-design-system"] = factory(require("@fortawesome/pro-light-svg-icons/faMinus"), require("@fortawesome/pro-light-svg-icons/faPlus"), require("@fortawesome/react-fontawesome"), require("classnames"), require("react"));
8
- else
9
- root["atoka-design-system"] = factory(root["@fortawesome/pro-light-svg-icons/faMinus"], root["@fortawesome/pro-light-svg-icons/faPlus"], root["@fortawesome/react-fontawesome"], root["classnames"], root["react"]);
10
- })(self, function(__WEBPACK_EXTERNAL_MODULE__1235__, __WEBPACK_EXTERNAL_MODULE__5037__, __WEBPACK_EXTERNAL_MODULE__5692__, __WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__) {
11
- return /******/ (() => { // webpackBootstrap
12
- /******/ "use strict";
13
- /******/ var __webpack_modules__ = ({
14
-
15
- /***/ 2950:
16
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
17
-
18
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
19
- /* harmony export */ "M": () => (/* binding */ FacetItemCount)
20
- /* harmony export */ });
21
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8310);
22
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
23
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8156);
24
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
25
-
26
-
27
-
28
- var FacetItemCount = react__WEBPACK_IMPORTED_MODULE_1___default().memo(function (props) {
29
- var className = classnames__WEBPACK_IMPORTED_MODULE_0___default()('facet-item-count', props.className);
30
- return react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { className: className }, props.value);
31
- });
32
- FacetItemCount.displayName = 'FacetItemCount';
33
-
34
-
35
- /***/ }),
36
-
37
- /***/ 4944:
38
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
39
-
40
- // ESM COMPAT FLAG
41
- __webpack_require__.r(__webpack_exports__);
42
-
43
- // EXPORTS
44
- __webpack_require__.d(__webpack_exports__, {
45
- "FacetSection": () => (/* reexport */ FacetSection)
46
- });
47
-
48
- // EXTERNAL MODULE: external "@fortawesome/pro-light-svg-icons/faMinus"
49
- var faMinus_ = __webpack_require__(1235);
50
- // EXTERNAL MODULE: external "@fortawesome/pro-light-svg-icons/faPlus"
51
- var faPlus_ = __webpack_require__(5037);
52
- // EXTERNAL MODULE: external "@fortawesome/react-fontawesome"
53
- var react_fontawesome_ = __webpack_require__(5692);
54
- // EXTERNAL MODULE: external "classnames"
55
- var external_classnames_ = __webpack_require__(8310);
56
- var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
57
- // EXTERNAL MODULE: external "react"
58
- var external_react_ = __webpack_require__(8156);
59
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
60
- // EXTERNAL MODULE: ./src/components/Facet/FacetItemCount.tsx
61
- var FacetItemCount = __webpack_require__(2950);
62
- // EXTERNAL MODULE: ./src/components/Title/index.ts
63
- var Title = __webpack_require__(3932);
64
- ;// CONCATENATED MODULE: ./src/components/FacetSection/FacetSection.tsx
65
- var __extends = (undefined && undefined.__extends) || (function () {
66
- var extendStatics = function (d, b) {
67
- extendStatics = Object.setPrototypeOf ||
68
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
69
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
70
- return extendStatics(d, b);
71
- };
72
- return function (d, b) {
73
- if (typeof b !== "function" && b !== null)
74
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
75
- extendStatics(d, b);
76
- function __() { this.constructor = d; }
77
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
78
- };
79
- })();
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
- var FacetSection = /** @class */ (function (_super) {
89
- __extends(FacetSection, _super);
90
- function FacetSection() {
91
- return _super !== null && _super.apply(this, arguments) || this;
92
- }
93
- FacetSection.prototype.renderItemCount = function () {
94
- if (this.props.isCollapsed === false ||
95
- this.props.badgeItemsCount == null ||
96
- this.props.badgeItemsCount === 0) {
97
- return null;
98
- }
99
- return external_react_default().createElement(FacetItemCount/* FacetItemCount */.M, { value: this.props.badgeItemsCount });
100
- };
101
- FacetSection.prototype.renderTitleAndIcon = function () {
102
- if (this.props.icon != null) {
103
- return (external_react_default().createElement(Title.Title, { size: 'sm', icon: this.props.icon }, this.props.title));
104
- }
105
- if (this.props.titlePrefix != null) {
106
- return (external_react_default().createElement(Title.Title, { size: 'sm' },
107
- external_react_default().createElement("span", { className: 'facet-section-title-prefix mr-2' }, this.props.titlePrefix),
108
- this.props.title));
109
- }
110
- return external_react_default().createElement(Title.Title, { size: 'sm' }, this.props.title);
111
- };
112
- FacetSection.prototype.renderFacetSectionTitle = function () {
113
- return (external_react_default().createElement("div", { className: 'facet-section-title d-flex justify-content-between', onClick: this.props.onToggleCollapsed },
114
- external_react_default().createElement("div", null, this.renderTitleAndIcon()),
115
- external_react_default().createElement("div", { className: 'd-flex align-items-center' },
116
- this.renderItemCount(),
117
- external_react_default().createElement(react_fontawesome_.FontAwesomeIcon, { icon: this.props.isCollapsed === true ? faPlus_.faPlus : faMinus_.faMinus, className: 'ml-2' }))));
118
- };
119
- FacetSection.prototype.renderFacets = function () {
120
- if (this.props.isCollapsed === true) {
121
- return null;
122
- }
123
- return external_react_default().createElement("div", { className: 'facet-section-facet-list' }, this.props.children);
124
- };
125
- FacetSection.prototype.render = function () {
126
- var className = external_classnames_default()('facet-section', this.props.className, {
127
- 'facet-section-collapsed': this.props.isCollapsed,
128
- });
129
- return (external_react_default().createElement("div", { className: className },
130
- this.renderFacetSectionTitle(),
131
- this.renderFacets()));
132
- };
133
- FacetSection.displayName = 'FacetSection';
134
- return FacetSection;
135
- }((external_react_default()).PureComponent));
136
-
137
-
138
- ;// CONCATENATED MODULE: ./src/components/FacetSection/index.ts
139
-
140
-
141
-
142
- /***/ }),
143
-
144
- /***/ 38:
145
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
146
-
147
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
148
- /* harmony export */ "D": () => (/* binding */ Title)
149
- /* harmony export */ });
150
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8156);
151
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
152
- /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5692);
153
- /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__);
154
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8310);
155
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
156
- var __extends = (undefined && undefined.__extends) || (function () {
157
- var extendStatics = function (d, b) {
158
- extendStatics = Object.setPrototypeOf ||
159
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
160
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
161
- return extendStatics(d, b);
162
- };
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");
166
- extendStatics(d, b);
167
- function __() { this.constructor = d; }
168
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
169
- };
170
- })();
171
- var __assign = (undefined && undefined.__assign) || function () {
172
- __assign = Object.assign || function(t) {
173
- for (var s, i = 1, n = arguments.length; i < n; i++) {
174
- s = arguments[i];
175
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
176
- t[p] = s[p];
177
- }
178
- return t;
179
- };
180
- return __assign.apply(this, arguments);
181
- };
182
-
183
-
184
-
185
-
186
- var Title = /** @class */ (function (_super) {
187
- __extends(Title, _super);
188
- function Title() {
189
- return _super !== null && _super.apply(this, arguments) || this;
190
- }
191
- Title.prototype.renderIcon = function () {
192
- if (this.props.icon == null) {
193
- return null;
194
- }
195
- var classNames = classnames__WEBPACK_IMPORTED_MODULE_2___default()({ 'mr-2': this.props.children !== '' && this.props.children != null });
196
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__.FontAwesomeIcon, { icon: this.props.icon, className: classNames, fixedWidth: true });
197
- };
198
- Title.prototype.renderContent = function () {
199
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null,
200
- this.renderIcon(),
201
- this.props.children));
202
- };
203
- Title.prototype.render = function () {
204
- var props = { className: this.props.className, style: this.props.style };
205
- switch (this.props.size) {
206
- case 'xs':
207
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("h6", __assign({}, props), this.renderContent());
208
- case 'sm':
209
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("h5", __assign({}, props), this.renderContent());
210
- case 'md':
211
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("h4", __assign({}, props), this.renderContent());
212
- case 'lg':
213
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("h3", __assign({}, props), this.renderContent());
214
- case 'xl':
215
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("h2", __assign({}, props), this.renderContent());
216
- default:
217
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("h1", __assign({}, props), this.renderContent());
218
- }
219
- };
220
- Title.displayName = 'Title';
221
- Title.defaultProps = {
222
- size: 'xxl',
223
- };
224
- return Title;
225
- }((react__WEBPACK_IMPORTED_MODULE_0___default().PureComponent)));
226
-
227
-
228
-
229
- /***/ }),
230
-
231
- /***/ 3932:
232
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
233
-
234
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
235
- /* harmony export */ "Title": () => (/* reexport safe */ _Title__WEBPACK_IMPORTED_MODULE_0__.D)
236
- /* harmony export */ });
237
- /* harmony import */ var _Title__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(38);
238
-
239
-
240
-
241
- /***/ }),
242
-
243
- /***/ 1235:
244
- /***/ ((module) => {
245
-
246
- module.exports = __WEBPACK_EXTERNAL_MODULE__1235__;
247
-
248
- /***/ }),
249
-
250
- /***/ 5037:
251
- /***/ ((module) => {
252
-
253
- module.exports = __WEBPACK_EXTERNAL_MODULE__5037__;
254
-
255
- /***/ }),
256
-
257
- /***/ 5692:
258
- /***/ ((module) => {
259
-
260
- module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;
261
-
262
- /***/ }),
263
-
264
- /***/ 8310:
265
- /***/ ((module) => {
266
-
267
- module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;
268
-
269
- /***/ }),
270
-
271
- /***/ 8156:
272
- /***/ ((module) => {
273
-
274
- module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;
275
-
276
- /***/ })
277
-
278
- /******/ });
279
- /************************************************************************/
280
- /******/ // The module cache
281
- /******/ var __webpack_module_cache__ = {};
282
- /******/
283
- /******/ // The require function
284
- /******/ function __webpack_require__(moduleId) {
285
- /******/ // Check if module is in cache
286
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
287
- /******/ if (cachedModule !== undefined) {
288
- /******/ return cachedModule.exports;
289
- /******/ }
290
- /******/ // Create a new module (and put it into the cache)
291
- /******/ var module = __webpack_module_cache__[moduleId] = {
292
- /******/ // no module.id needed
293
- /******/ // no module.loaded needed
294
- /******/ exports: {}
295
- /******/ };
296
- /******/
297
- /******/ // Execute the module function
298
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
299
- /******/
300
- /******/ // Return the exports of the module
301
- /******/ return module.exports;
302
- /******/ }
303
- /******/
304
- /******/ // expose the modules object (__webpack_modules__)
305
- /******/ __webpack_require__.m = __webpack_modules__;
306
- /******/
307
- /************************************************************************/
308
- /******/ /* webpack/runtime/chunk loaded */
309
- /******/ (() => {
310
- /******/ var deferred = [];
311
- /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
312
- /******/ if(chunkIds) {
313
- /******/ priority = priority || 0;
314
- /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
315
- /******/ deferred[i] = [chunkIds, fn, priority];
316
- /******/ return;
317
- /******/ }
318
- /******/ var notFulfilled = Infinity;
319
- /******/ for (var i = 0; i < deferred.length; i++) {
320
- /******/ var [chunkIds, fn, priority] = deferred[i];
321
- /******/ var fulfilled = true;
322
- /******/ for (var j = 0; j < chunkIds.length; j++) {
323
- /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
324
- /******/ chunkIds.splice(j--, 1);
325
- /******/ } else {
326
- /******/ fulfilled = false;
327
- /******/ if(priority < notFulfilled) notFulfilled = priority;
328
- /******/ }
329
- /******/ }
330
- /******/ if(fulfilled) {
331
- /******/ deferred.splice(i--, 1)
332
- /******/ var r = fn();
333
- /******/ if (r !== undefined) result = r;
334
- /******/ }
335
- /******/ }
336
- /******/ return result;
337
- /******/ };
338
- /******/ })();
339
- /******/
340
- /******/ /* webpack/runtime/compat get default export */
341
- /******/ (() => {
342
- /******/ // getDefaultExport function for compatibility with non-harmony modules
343
- /******/ __webpack_require__.n = (module) => {
344
- /******/ var getter = module && module.__esModule ?
345
- /******/ () => (module['default']) :
346
- /******/ () => (module);
347
- /******/ __webpack_require__.d(getter, { a: getter });
348
- /******/ return getter;
349
- /******/ };
350
- /******/ })();
351
- /******/
352
- /******/ /* webpack/runtime/define property getters */
353
- /******/ (() => {
354
- /******/ // define getter functions for harmony exports
355
- /******/ __webpack_require__.d = (exports, definition) => {
356
- /******/ for(var key in definition) {
357
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
358
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
359
- /******/ }
360
- /******/ }
361
- /******/ };
362
- /******/ })();
363
- /******/
364
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
365
- /******/ (() => {
366
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
367
- /******/ })();
368
- /******/
369
- /******/ /* webpack/runtime/make namespace object */
370
- /******/ (() => {
371
- /******/ // define __esModule on exports
372
- /******/ __webpack_require__.r = (exports) => {
373
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
374
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
375
- /******/ }
376
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
377
- /******/ };
378
- /******/ })();
379
- /******/
380
- /******/ /* webpack/runtime/jsonp chunk loading */
381
- /******/ (() => {
382
- /******/ // no baseURI
383
- /******/
384
- /******/ // object to store loaded and loading chunks
385
- /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
386
- /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
387
- /******/ var installedChunks = {
388
- /******/ 9727: 0,
389
- /******/ 7564: 0,
390
- /******/ 5785: 0
391
- /******/ };
392
- /******/
393
- /******/ // no chunk on demand loading
394
- /******/
395
- /******/ // no prefetching
396
- /******/
397
- /******/ // no preloaded
398
- /******/
399
- /******/ // no HMR
400
- /******/
401
- /******/ // no HMR manifest
402
- /******/
403
- /******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
404
- /******/
405
- /******/ // install a JSONP callback for chunk loading
406
- /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
407
- /******/ var [chunkIds, moreModules, runtime] = data;
408
- /******/ // add "moreModules" to the modules object,
409
- /******/ // then flag all "chunkIds" as loaded and fire callback
410
- /******/ var moduleId, chunkId, i = 0;
411
- /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
412
- /******/ for(moduleId in moreModules) {
413
- /******/ if(__webpack_require__.o(moreModules, moduleId)) {
414
- /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
415
- /******/ }
416
- /******/ }
417
- /******/ if(runtime) var result = runtime(__webpack_require__);
418
- /******/ }
419
- /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
420
- /******/ for(;i < chunkIds.length; i++) {
421
- /******/ chunkId = chunkIds[i];
422
- /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
423
- /******/ installedChunks[chunkId][0]();
424
- /******/ }
425
- /******/ installedChunks[chunkIds[i]] = 0;
426
- /******/ }
427
- /******/ return __webpack_require__.O(result);
428
- /******/ }
429
- /******/
430
- /******/ var chunkLoadingGlobal = self["webpackChunkatoka_design_system"] = self["webpackChunkatoka_design_system"] || [];
431
- /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
432
- /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
433
- /******/ })();
434
- /******/
435
- /************************************************************************/
436
- /******/
437
- /******/ // startup
438
- /******/ // Load entry module and return exports
439
- /******/ // This entry module depends on other loaded chunks and execution need to be delayed
440
- /******/ var __webpack_exports__ = __webpack_require__.O(undefined, [5785], () => (__webpack_require__(4944)))
441
- /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
442
- /******/
443
- /******/ return __webpack_exports__;
444
- /******/ })()
445
- ;
446
- });
447
- //# sourceMappingURL=index.js.map
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@fortawesome/pro-light-svg-icons/faMinus"),require("@fortawesome/pro-light-svg-icons/faPlus"),require("@fortawesome/react-fontawesome"),require("classnames"),require("react")):"function"==typeof define&&define.amd?define("atoka-design-system",["@fortawesome/pro-light-svg-icons/faMinus","@fortawesome/pro-light-svg-icons/faPlus","@fortawesome/react-fontawesome","classnames","react"],t):"object"==typeof exports?exports["atoka-design-system"]=t(require("@fortawesome/pro-light-svg-icons/faMinus"),require("@fortawesome/pro-light-svg-icons/faPlus"),require("@fortawesome/react-fontawesome"),require("classnames"),require("react")):e["atoka-design-system"]=t(e["@fortawesome/pro-light-svg-icons/faMinus"],e["@fortawesome/pro-light-svg-icons/faPlus"],e["@fortawesome/react-fontawesome"],e.classnames,e.react)}(self,(function(e,t,r,n,o){return(()=>{"use strict";var s,i={2950:(e,t,r)=>{r.d(t,{M:()=>a});var n=r(8310),o=r.n(n),s=r(8156),i=r.n(s),a=i().memo((function(e){var t=o()("facet-item-count",e.className);return i().createElement("div",{className:t},e.value)}));a.displayName="FacetItemCount"},4944:(e,t,r)=>{r.r(t),r.d(t,{FacetSection:()=>d});var n,o=r(1235),s=r(5037),i=r(5692),a=r(8310),l=r.n(a),c=r(8156),p=r.n(c),u=r(2950),f=r(3932),m=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.prototype.renderItemCount=function(){return!1===this.props.isCollapsed||null==this.props.badgeItemsCount||0===this.props.badgeItemsCount?null:p().createElement(u.M,{value:this.props.badgeItemsCount})},t.prototype.renderTitleAndIcon=function(){return null!=this.props.icon?p().createElement(f.Title,{size:"sm",icon:this.props.icon},this.props.title):null!=this.props.titlePrefix?p().createElement(f.Title,{size:"sm"},p().createElement("span",{className:"facet-section-title-prefix mr-2"},this.props.titlePrefix),this.props.title):p().createElement(f.Title,{size:"sm"},this.props.title)},t.prototype.renderFacetSectionTitle=function(){return p().createElement("div",{className:"facet-section-title d-flex justify-content-between",onClick:this.props.onToggleCollapsed},p().createElement("div",null,this.renderTitleAndIcon()),p().createElement("div",{className:"d-flex align-items-center"},this.renderItemCount(),p().createElement(i.FontAwesomeIcon,{icon:!0===this.props.isCollapsed?s.faPlus:o.faMinus,className:"ml-2"})))},t.prototype.renderFacets=function(){return!0===this.props.isCollapsed?null:p().createElement("div",{className:"facet-section-facet-list"},this.props.children)},t.prototype.render=function(){var e=l()("facet-section",this.props.className,{"facet-section-collapsed":this.props.isCollapsed});return p().createElement("div",{className:e},this.renderFacetSectionTitle(),this.renderFacets())},t.displayName="FacetSection",t}(p().PureComponent)},38:(e,t,r)=>{r.d(t,{D:()=>u});var n,o=r(8156),s=r.n(o),i=r(5692),a=r(8310),l=r.n(a),c=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(){return p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},p.apply(this,arguments)},u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.renderIcon=function(){if(null==this.props.icon)return null;var e=l()({"mr-2":""!==this.props.children&&null!=this.props.children});return s().createElement(i.FontAwesomeIcon,{icon:this.props.icon,className:e,fixedWidth:!0})},t.prototype.renderContent=function(){return s().createElement(s().Fragment,null,this.renderIcon(),this.props.children)},t.prototype.render=function(){var e={className:this.props.className,style:this.props.style};switch(this.props.size){case"xs":return s().createElement("h6",p({},e),this.renderContent());case"sm":return s().createElement("h5",p({},e),this.renderContent());case"md":return s().createElement("h4",p({},e),this.renderContent());case"lg":return s().createElement("h3",p({},e),this.renderContent());case"xl":return s().createElement("h2",p({},e),this.renderContent());default:return s().createElement("h1",p({},e),this.renderContent())}},t.displayName="Title",t.defaultProps={size:"xxl"},t}(s().PureComponent)},3932:(e,t,r)=>{r.d(t,{Title:()=>n.D});var n=r(38)},1235:t=>{t.exports=e},5037:e=>{e.exports=t},5692:e=>{e.exports=r},8310:e=>{e.exports=n},8156:e=>{e.exports=o}},a={};function l(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return i[e](r,r.exports,l),r.exports}l.m=i,s=[],l.O=(e,t,r,n)=>{if(!t){var o=1/0;for(p=0;p<s.length;p++){for(var[t,r,n]=s[p],i=!0,a=0;a<t.length;a++)(!1&n||o>=n)&&Object.keys(l.O).every((e=>l.O[e](t[a])))?t.splice(a--,1):(i=!1,n<o&&(o=n));if(i){s.splice(p--,1);var c=r();void 0!==c&&(e=c)}}return e}n=n||0;for(var p=s.length;p>0&&s[p-1][2]>n;p--)s[p]=s[p-1];s[p]=[t,r,n]},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={9727:0,7564:0,8699:0};l.O.j=t=>0===e[t];var t=(t,r)=>{var n,o,[s,i,a]=r,c=0;if(s.some((t=>0!==e[t]))){for(n in i)l.o(i,n)&&(l.m[n]=i[n]);if(a)var p=a(l)}for(t&&t(r);c<s.length;c++)o=s[c],l.o(e,o)&&e[o]&&e[o][0](),e[s[c]]=0;return l.O(p)},r=self.webpackChunkatoka_design_system=self.webpackChunkatoka_design_system||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var c=l.O(void 0,[8699],(()=>l(4944)));return c=l.O(c)})()}));