@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
package/Alert/index.js CHANGED
@@ -1,321 +1 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("@fortawesome/react-fontawesome"), require("classnames"), require("react"), require("react-bootstrap/Alert"));
4
- else if(typeof define === 'function' && define.amd)
5
- define("atoka-design-system", ["@fortawesome/react-fontawesome", "classnames", "react", "react-bootstrap/Alert"], factory);
6
- else if(typeof exports === 'object')
7
- exports["atoka-design-system"] = factory(require("@fortawesome/react-fontawesome"), require("classnames"), require("react"), require("react-bootstrap/Alert"));
8
- else
9
- root["atoka-design-system"] = factory(root["@fortawesome/react-fontawesome"], root["classnames"], root["react"], root["react-bootstrap/Alert"]);
10
- })(self, function(__WEBPACK_EXTERNAL_MODULE__5692__, __WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__, __WEBPACK_EXTERNAL_MODULE__5859__) {
11
- return /******/ (() => { // webpackBootstrap
12
- /******/ "use strict";
13
- /******/ var __webpack_modules__ = ({
14
-
15
- /***/ 782:
16
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
17
-
18
- // ESM COMPAT FLAG
19
- __webpack_require__.r(__webpack_exports__);
20
-
21
- // EXPORTS
22
- __webpack_require__.d(__webpack_exports__, {
23
- "Alert": () => (/* reexport */ Alert)
24
- });
25
-
26
- // EXTERNAL MODULE: external "react"
27
- var external_react_ = __webpack_require__(8156);
28
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
29
- // EXTERNAL MODULE: external "classnames"
30
- var external_classnames_ = __webpack_require__(8310);
31
- var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
32
- // EXTERNAL MODULE: external "react-bootstrap/Alert"
33
- var Alert_ = __webpack_require__(5859);
34
- var Alert_default = /*#__PURE__*/__webpack_require__.n(Alert_);
35
- // EXTERNAL MODULE: external "@fortawesome/react-fontawesome"
36
- var react_fontawesome_ = __webpack_require__(5692);
37
- ;// CONCATENATED MODULE: ./src/components/Alert/Alert.tsx
38
- var __extends = (undefined && undefined.__extends) || (function () {
39
- var extendStatics = function (d, b) {
40
- extendStatics = Object.setPrototypeOf ||
41
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
42
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
43
- return extendStatics(d, b);
44
- };
45
- return function (d, b) {
46
- if (typeof b !== "function" && b !== null)
47
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
48
- extendStatics(d, b);
49
- function __() { this.constructor = d; }
50
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
51
- };
52
- })();
53
- var __assign = (undefined && undefined.__assign) || function () {
54
- __assign = Object.assign || function(t) {
55
- for (var s, i = 1, n = arguments.length; i < n; i++) {
56
- s = arguments[i];
57
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
58
- t[p] = s[p];
59
- }
60
- return t;
61
- };
62
- return __assign.apply(this, arguments);
63
- };
64
-
65
-
66
-
67
-
68
-
69
- /**
70
- * ### Overview
71
- * An alert is a contextual notification which appears in the page to give the user an information regarding their current work. They will remain displayed until dismissed or no longer relevant. There are four types of alerts:
72
- *
73
- * - Danger: this message indicates a dangerous or potentially negative action that the user must take notice of
74
- * - Warning: this alert tells the user to proceed with caution with their actions on the platform
75
- * - Success: this message is indicative that the user just performed a successful or positive action
76
- * - Info: this alert has the scope of letting the user know about a neutral and informative change or action on Atoka
77
- *
78
- * ### Best practices
79
- * - Use alerts sparingly: if there are too many alerts, the user will end up avoiding them due to cognitive overload and miss important information
80
- * - Use alerts to notify the user of information that is either time-sensitive or relevant to the action the user is performing
81
- * - Keep the text informative but not too long
82
- */
83
- var Alert = /** @class */ (function (_super) {
84
- __extends(Alert, _super);
85
- function Alert() {
86
- return _super !== null && _super.apply(this, arguments) || this;
87
- }
88
- Alert.prototype.renderIcon = function () {
89
- if (this.props.icon == null) {
90
- return null;
91
- }
92
- return external_react_default().createElement(react_fontawesome_.FontAwesomeIcon, { icon: this.props.icon });
93
- };
94
- Alert.prototype.renderChildren = function () {
95
- if (this.props.children == null) {
96
- return null;
97
- }
98
- return external_react_default().createElement("div", { className: 'alert-children' }, this.props.children);
99
- };
100
- Alert.prototype.renderContent = function () {
101
- return (external_react_default().createElement("div", { className: 'alert-content-container d-flex' },
102
- this.renderIcon(),
103
- this.renderChildren()));
104
- };
105
- Alert.prototype.render = function () {
106
- var className = external_classnames_default()(this.props.className, 'atoka-alert');
107
- return (external_react_default().createElement((Alert_default()), __assign({ className: className, dismissible: this.props.isDismissible, show: this.props.isShown }, this.props), this.renderContent()));
108
- };
109
- Alert.displayName = 'Alert';
110
- Alert.Heading = (Alert_default()).Heading;
111
- Alert.defaultProps = {
112
- variant: 'danger',
113
- };
114
- return Alert;
115
- }((external_react_default()).PureComponent));
116
-
117
-
118
- ;// CONCATENATED MODULE: ./src/components/Alert/index.ts
119
- // use the star because of this issue: https://github.com/babel/babel-loader/issues/603
120
-
121
-
122
-
123
- /***/ }),
124
-
125
- /***/ 5692:
126
- /***/ ((module) => {
127
-
128
- module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;
129
-
130
- /***/ }),
131
-
132
- /***/ 8310:
133
- /***/ ((module) => {
134
-
135
- module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;
136
-
137
- /***/ }),
138
-
139
- /***/ 8156:
140
- /***/ ((module) => {
141
-
142
- module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;
143
-
144
- /***/ }),
145
-
146
- /***/ 5859:
147
- /***/ ((module) => {
148
-
149
- module.exports = __WEBPACK_EXTERNAL_MODULE__5859__;
150
-
151
- /***/ })
152
-
153
- /******/ });
154
- /************************************************************************/
155
- /******/ // The module cache
156
- /******/ var __webpack_module_cache__ = {};
157
- /******/
158
- /******/ // The require function
159
- /******/ function __webpack_require__(moduleId) {
160
- /******/ // Check if module is in cache
161
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
162
- /******/ if (cachedModule !== undefined) {
163
- /******/ return cachedModule.exports;
164
- /******/ }
165
- /******/ // Create a new module (and put it into the cache)
166
- /******/ var module = __webpack_module_cache__[moduleId] = {
167
- /******/ // no module.id needed
168
- /******/ // no module.loaded needed
169
- /******/ exports: {}
170
- /******/ };
171
- /******/
172
- /******/ // Execute the module function
173
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
174
- /******/
175
- /******/ // Return the exports of the module
176
- /******/ return module.exports;
177
- /******/ }
178
- /******/
179
- /******/ // expose the modules object (__webpack_modules__)
180
- /******/ __webpack_require__.m = __webpack_modules__;
181
- /******/
182
- /************************************************************************/
183
- /******/ /* webpack/runtime/chunk loaded */
184
- /******/ (() => {
185
- /******/ var deferred = [];
186
- /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
187
- /******/ if(chunkIds) {
188
- /******/ priority = priority || 0;
189
- /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
190
- /******/ deferred[i] = [chunkIds, fn, priority];
191
- /******/ return;
192
- /******/ }
193
- /******/ var notFulfilled = Infinity;
194
- /******/ for (var i = 0; i < deferred.length; i++) {
195
- /******/ var [chunkIds, fn, priority] = deferred[i];
196
- /******/ var fulfilled = true;
197
- /******/ for (var j = 0; j < chunkIds.length; j++) {
198
- /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
199
- /******/ chunkIds.splice(j--, 1);
200
- /******/ } else {
201
- /******/ fulfilled = false;
202
- /******/ if(priority < notFulfilled) notFulfilled = priority;
203
- /******/ }
204
- /******/ }
205
- /******/ if(fulfilled) {
206
- /******/ deferred.splice(i--, 1)
207
- /******/ var r = fn();
208
- /******/ if (r !== undefined) result = r;
209
- /******/ }
210
- /******/ }
211
- /******/ return result;
212
- /******/ };
213
- /******/ })();
214
- /******/
215
- /******/ /* webpack/runtime/compat get default export */
216
- /******/ (() => {
217
- /******/ // getDefaultExport function for compatibility with non-harmony modules
218
- /******/ __webpack_require__.n = (module) => {
219
- /******/ var getter = module && module.__esModule ?
220
- /******/ () => (module['default']) :
221
- /******/ () => (module);
222
- /******/ __webpack_require__.d(getter, { a: getter });
223
- /******/ return getter;
224
- /******/ };
225
- /******/ })();
226
- /******/
227
- /******/ /* webpack/runtime/define property getters */
228
- /******/ (() => {
229
- /******/ // define getter functions for harmony exports
230
- /******/ __webpack_require__.d = (exports, definition) => {
231
- /******/ for(var key in definition) {
232
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
233
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
234
- /******/ }
235
- /******/ }
236
- /******/ };
237
- /******/ })();
238
- /******/
239
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
240
- /******/ (() => {
241
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
242
- /******/ })();
243
- /******/
244
- /******/ /* webpack/runtime/make namespace object */
245
- /******/ (() => {
246
- /******/ // define __esModule on exports
247
- /******/ __webpack_require__.r = (exports) => {
248
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
249
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
250
- /******/ }
251
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
252
- /******/ };
253
- /******/ })();
254
- /******/
255
- /******/ /* webpack/runtime/jsonp chunk loading */
256
- /******/ (() => {
257
- /******/ // no baseURI
258
- /******/
259
- /******/ // object to store loaded and loading chunks
260
- /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
261
- /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
262
- /******/ var installedChunks = {
263
- /******/ 9798: 0,
264
- /******/ 5785: 0
265
- /******/ };
266
- /******/
267
- /******/ // no chunk on demand loading
268
- /******/
269
- /******/ // no prefetching
270
- /******/
271
- /******/ // no preloaded
272
- /******/
273
- /******/ // no HMR
274
- /******/
275
- /******/ // no HMR manifest
276
- /******/
277
- /******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
278
- /******/
279
- /******/ // install a JSONP callback for chunk loading
280
- /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
281
- /******/ var [chunkIds, moreModules, runtime] = data;
282
- /******/ // add "moreModules" to the modules object,
283
- /******/ // then flag all "chunkIds" as loaded and fire callback
284
- /******/ var moduleId, chunkId, i = 0;
285
- /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
286
- /******/ for(moduleId in moreModules) {
287
- /******/ if(__webpack_require__.o(moreModules, moduleId)) {
288
- /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
289
- /******/ }
290
- /******/ }
291
- /******/ if(runtime) var result = runtime(__webpack_require__);
292
- /******/ }
293
- /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
294
- /******/ for(;i < chunkIds.length; i++) {
295
- /******/ chunkId = chunkIds[i];
296
- /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
297
- /******/ installedChunks[chunkId][0]();
298
- /******/ }
299
- /******/ installedChunks[chunkIds[i]] = 0;
300
- /******/ }
301
- /******/ return __webpack_require__.O(result);
302
- /******/ }
303
- /******/
304
- /******/ var chunkLoadingGlobal = self["webpackChunkatoka_design_system"] = self["webpackChunkatoka_design_system"] || [];
305
- /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
306
- /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
307
- /******/ })();
308
- /******/
309
- /************************************************************************/
310
- /******/
311
- /******/ // startup
312
- /******/ // Load entry module and return exports
313
- /******/ // This entry module depends on other loaded chunks and execution need to be delayed
314
- /******/ var __webpack_exports__ = __webpack_require__.O(undefined, [5785], () => (__webpack_require__(782)))
315
- /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
316
- /******/
317
- /******/ return __webpack_exports__;
318
- /******/ })()
319
- ;
320
- });
321
- //# sourceMappingURL=index.js.map
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@fortawesome/react-fontawesome"),require("classnames"),require("react"),require("react-bootstrap/Alert")):"function"==typeof define&&define.amd?define("atoka-design-system",["@fortawesome/react-fontawesome","classnames","react","react-bootstrap/Alert"],t):"object"==typeof exports?exports["atoka-design-system"]=t(require("@fortawesome/react-fontawesome"),require("classnames"),require("react"),require("react-bootstrap/Alert")):e["atoka-design-system"]=t(e["@fortawesome/react-fontawesome"],e.classnames,e.react,e["react-bootstrap/Alert"])}(self,(function(e,t,r,o){return(()=>{"use strict";var n,s={782:(e,t,r)=>{r.r(t),r.d(t,{Alert:()=>d});var o,n=r(8156),s=r.n(n),a=r(8310),i=r.n(a),l=r(5859),c=r.n(l),p=r(5692),u=(o=function(e,t){return o=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])},o(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}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),f=function(){return f=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},f.apply(this,arguments)},d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.renderIcon=function(){return null==this.props.icon?null:s().createElement(p.FontAwesomeIcon,{icon:this.props.icon})},t.prototype.renderChildren=function(){return null==this.props.children?null:s().createElement("div",{className:"alert-children"},this.props.children)},t.prototype.renderContent=function(){return s().createElement("div",{className:"alert-content-container d-flex"},this.renderIcon(),this.renderChildren())},t.prototype.render=function(){var e=i()(this.props.className,"atoka-alert");return s().createElement(c(),f({className:e,dismissible:this.props.isDismissible,show:this.props.isShown},this.props),this.renderContent())},t.displayName="Alert",t.Heading=c().Heading,t.defaultProps={variant:"danger"},t}(s().PureComponent)},5692:t=>{t.exports=e},8310:e=>{e.exports=t},8156:e=>{e.exports=r},5859:e=>{e.exports=o}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return s[e](r,r.exports,i),r.exports}i.m=s,n=[],i.O=(e,t,r,o)=>{if(!t){var s=1/0;for(p=0;p<n.length;p++){for(var[t,r,o]=n[p],a=!0,l=0;l<t.length;l++)(!1&o||s>=o)&&Object.keys(i.O).every((e=>i.O[e](t[l])))?t.splice(l--,1):(a=!1,o<s&&(s=o));if(a){n.splice(p--,1);var c=r();void 0!==c&&(e=c)}}return e}o=o||0;for(var p=n.length;p>0&&n[p-1][2]>o;p--)n[p]=n[p-1];n[p]=[t,r,o]},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={9798:0,8699:0};i.O.j=t=>0===e[t];var t=(t,r)=>{var o,n,[s,a,l]=r,c=0;if(s.some((t=>0!==e[t]))){for(o in a)i.o(a,o)&&(i.m[o]=a[o]);if(l)var p=l(i)}for(t&&t(r);c<s.length;c++)n=s[c],i.o(e,n)&&e[n]&&e[n][0](),e[s[c]]=0;return i.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 l=i.O(void 0,[8699],(()=>i(782)));return l=i.O(l)})()}));
package/Badge/index.js CHANGED
@@ -1,285 +1 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("@fortawesome/react-fontawesome"), require("classnames"), require("react"), require("react-bootstrap/Badge"));
4
- else if(typeof define === 'function' && define.amd)
5
- define("atoka-design-system", ["@fortawesome/react-fontawesome", "classnames", "react", "react-bootstrap/Badge"], factory);
6
- else if(typeof exports === 'object')
7
- exports["atoka-design-system"] = factory(require("@fortawesome/react-fontawesome"), require("classnames"), require("react"), require("react-bootstrap/Badge"));
8
- else
9
- root["atoka-design-system"] = factory(root["@fortawesome/react-fontawesome"], root["classnames"], root["react"], root["react-bootstrap/Badge"]);
10
- })(self, function(__WEBPACK_EXTERNAL_MODULE__5692__, __WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__, __WEBPACK_EXTERNAL_MODULE__6997__) {
11
- return /******/ (() => { // webpackBootstrap
12
- /******/ "use strict";
13
- /******/ var __webpack_modules__ = ({
14
-
15
- /***/ 595:
16
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
17
-
18
- // ESM COMPAT FLAG
19
- __webpack_require__.r(__webpack_exports__);
20
-
21
- // EXPORTS
22
- __webpack_require__.d(__webpack_exports__, {
23
- "Badge": () => (/* reexport */ Badge)
24
- });
25
-
26
- // EXTERNAL MODULE: external "react"
27
- var external_react_ = __webpack_require__(8156);
28
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
29
- // EXTERNAL MODULE: external "classnames"
30
- var external_classnames_ = __webpack_require__(8310);
31
- var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
32
- // EXTERNAL MODULE: external "react-bootstrap/Badge"
33
- var Badge_ = __webpack_require__(6997);
34
- var Badge_default = /*#__PURE__*/__webpack_require__.n(Badge_);
35
- // EXTERNAL MODULE: external "@fortawesome/react-fontawesome"
36
- var react_fontawesome_ = __webpack_require__(5692);
37
- ;// CONCATENATED MODULE: ./src/components/Badge/Badge.tsx
38
- var __rest = (undefined && undefined.__rest) || function (s, e) {
39
- var t = {};
40
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
41
- t[p] = s[p];
42
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
43
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
44
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
45
- t[p[i]] = s[p[i]];
46
- }
47
- return t;
48
- };
49
-
50
-
51
-
52
-
53
-
54
- /**
55
- * ### Overview
56
- *
57
- * A `Badge` is a component which represents an attribute of a specific element. There are three types of badges:
58
- *
59
- * - **Primary** is used for:
60
- * - Sales funnel states
61
- * - Indication of customer divisions
62
- * - Variant with icon: used to show user state in settings page
63
- *
64
- * - **Secondary** is used for:
65
- * - specific company types e.g. startup
66
- * - Indication of customer divisions
67
- * - Variant with icon: used to show division permissions
68
- *
69
- * - **Tertiary** is used to display a company’s state
70
- */
71
- var Badge = external_react_default().memo(function (_a) {
72
- var _b = _a.size, size = _b === void 0 ? 'sm' : _b, props = __rest(_a, ["size"]);
73
- var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-badge', "variant-".concat(props.variant, "-").concat(props.color), size), iconClassName = external_classnames_default()({
74
- 'mr-2': props.children != null,
75
- }), icon = props.icon == null ? null : external_react_default().createElement(react_fontawesome_.FontAwesomeIcon, { icon: props.icon, className: iconClassName });
76
- return (external_react_default().createElement((Badge_default()), { className: className },
77
- icon,
78
- props.children));
79
- });
80
- Badge.displayName = 'Badge';
81
-
82
-
83
- ;// CONCATENATED MODULE: ./src/components/Badge/index.ts
84
-
85
-
86
-
87
- /***/ }),
88
-
89
- /***/ 5692:
90
- /***/ ((module) => {
91
-
92
- module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;
93
-
94
- /***/ }),
95
-
96
- /***/ 8310:
97
- /***/ ((module) => {
98
-
99
- module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;
100
-
101
- /***/ }),
102
-
103
- /***/ 8156:
104
- /***/ ((module) => {
105
-
106
- module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;
107
-
108
- /***/ }),
109
-
110
- /***/ 6997:
111
- /***/ ((module) => {
112
-
113
- module.exports = __WEBPACK_EXTERNAL_MODULE__6997__;
114
-
115
- /***/ })
116
-
117
- /******/ });
118
- /************************************************************************/
119
- /******/ // The module cache
120
- /******/ var __webpack_module_cache__ = {};
121
- /******/
122
- /******/ // The require function
123
- /******/ function __webpack_require__(moduleId) {
124
- /******/ // Check if module is in cache
125
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
126
- /******/ if (cachedModule !== undefined) {
127
- /******/ return cachedModule.exports;
128
- /******/ }
129
- /******/ // Create a new module (and put it into the cache)
130
- /******/ var module = __webpack_module_cache__[moduleId] = {
131
- /******/ // no module.id needed
132
- /******/ // no module.loaded needed
133
- /******/ exports: {}
134
- /******/ };
135
- /******/
136
- /******/ // Execute the module function
137
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
138
- /******/
139
- /******/ // Return the exports of the module
140
- /******/ return module.exports;
141
- /******/ }
142
- /******/
143
- /******/ // expose the modules object (__webpack_modules__)
144
- /******/ __webpack_require__.m = __webpack_modules__;
145
- /******/
146
- /************************************************************************/
147
- /******/ /* webpack/runtime/chunk loaded */
148
- /******/ (() => {
149
- /******/ var deferred = [];
150
- /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
151
- /******/ if(chunkIds) {
152
- /******/ priority = priority || 0;
153
- /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
154
- /******/ deferred[i] = [chunkIds, fn, priority];
155
- /******/ return;
156
- /******/ }
157
- /******/ var notFulfilled = Infinity;
158
- /******/ for (var i = 0; i < deferred.length; i++) {
159
- /******/ var [chunkIds, fn, priority] = deferred[i];
160
- /******/ var fulfilled = true;
161
- /******/ for (var j = 0; j < chunkIds.length; j++) {
162
- /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
163
- /******/ chunkIds.splice(j--, 1);
164
- /******/ } else {
165
- /******/ fulfilled = false;
166
- /******/ if(priority < notFulfilled) notFulfilled = priority;
167
- /******/ }
168
- /******/ }
169
- /******/ if(fulfilled) {
170
- /******/ deferred.splice(i--, 1)
171
- /******/ var r = fn();
172
- /******/ if (r !== undefined) result = r;
173
- /******/ }
174
- /******/ }
175
- /******/ return result;
176
- /******/ };
177
- /******/ })();
178
- /******/
179
- /******/ /* webpack/runtime/compat get default export */
180
- /******/ (() => {
181
- /******/ // getDefaultExport function for compatibility with non-harmony modules
182
- /******/ __webpack_require__.n = (module) => {
183
- /******/ var getter = module && module.__esModule ?
184
- /******/ () => (module['default']) :
185
- /******/ () => (module);
186
- /******/ __webpack_require__.d(getter, { a: getter });
187
- /******/ return getter;
188
- /******/ };
189
- /******/ })();
190
- /******/
191
- /******/ /* webpack/runtime/define property getters */
192
- /******/ (() => {
193
- /******/ // define getter functions for harmony exports
194
- /******/ __webpack_require__.d = (exports, definition) => {
195
- /******/ for(var key in definition) {
196
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
197
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
198
- /******/ }
199
- /******/ }
200
- /******/ };
201
- /******/ })();
202
- /******/
203
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
204
- /******/ (() => {
205
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
206
- /******/ })();
207
- /******/
208
- /******/ /* webpack/runtime/make namespace object */
209
- /******/ (() => {
210
- /******/ // define __esModule on exports
211
- /******/ __webpack_require__.r = (exports) => {
212
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
213
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
214
- /******/ }
215
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
216
- /******/ };
217
- /******/ })();
218
- /******/
219
- /******/ /* webpack/runtime/jsonp chunk loading */
220
- /******/ (() => {
221
- /******/ // no baseURI
222
- /******/
223
- /******/ // object to store loaded and loading chunks
224
- /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
225
- /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
226
- /******/ var installedChunks = {
227
- /******/ 54: 0,
228
- /******/ 5785: 0
229
- /******/ };
230
- /******/
231
- /******/ // no chunk on demand loading
232
- /******/
233
- /******/ // no prefetching
234
- /******/
235
- /******/ // no preloaded
236
- /******/
237
- /******/ // no HMR
238
- /******/
239
- /******/ // no HMR manifest
240
- /******/
241
- /******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
242
- /******/
243
- /******/ // install a JSONP callback for chunk loading
244
- /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
245
- /******/ var [chunkIds, moreModules, runtime] = data;
246
- /******/ // add "moreModules" to the modules object,
247
- /******/ // then flag all "chunkIds" as loaded and fire callback
248
- /******/ var moduleId, chunkId, i = 0;
249
- /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
250
- /******/ for(moduleId in moreModules) {
251
- /******/ if(__webpack_require__.o(moreModules, moduleId)) {
252
- /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
253
- /******/ }
254
- /******/ }
255
- /******/ if(runtime) var result = runtime(__webpack_require__);
256
- /******/ }
257
- /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
258
- /******/ for(;i < chunkIds.length; i++) {
259
- /******/ chunkId = chunkIds[i];
260
- /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
261
- /******/ installedChunks[chunkId][0]();
262
- /******/ }
263
- /******/ installedChunks[chunkIds[i]] = 0;
264
- /******/ }
265
- /******/ return __webpack_require__.O(result);
266
- /******/ }
267
- /******/
268
- /******/ var chunkLoadingGlobal = self["webpackChunkatoka_design_system"] = self["webpackChunkatoka_design_system"] || [];
269
- /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
270
- /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
271
- /******/ })();
272
- /******/
273
- /************************************************************************/
274
- /******/
275
- /******/ // startup
276
- /******/ // Load entry module and return exports
277
- /******/ // This entry module depends on other loaded chunks and execution need to be delayed
278
- /******/ var __webpack_exports__ = __webpack_require__.O(undefined, [5785], () => (__webpack_require__(595)))
279
- /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
280
- /******/
281
- /******/ return __webpack_exports__;
282
- /******/ })()
283
- ;
284
- });
285
- //# sourceMappingURL=index.js.map
1
+ !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("@fortawesome/react-fontawesome"),require("classnames"),require("react"),require("react-bootstrap/Badge")):"function"==typeof define&&define.amd?define("atoka-design-system",["@fortawesome/react-fontawesome","classnames","react","react-bootstrap/Badge"],r):"object"==typeof exports?exports["atoka-design-system"]=r(require("@fortawesome/react-fontawesome"),require("classnames"),require("react"),require("react-bootstrap/Badge")):e["atoka-design-system"]=r(e["@fortawesome/react-fontawesome"],e.classnames,e.react,e["react-bootstrap/Badge"])}(self,(function(e,r,t,o){return(()=>{"use strict";var a,n={595:(e,r,t)=>{t.r(r),t.d(r,{Badge:()=>u});var o=t(8156),a=t.n(o),n=t(8310),s=t.n(n),i=t(6997),c=t.n(i),l=t(5692),f=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)r.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(t[o[a]]=e[o[a]])}return t},u=a().memo((function(e){var r=e.size,t=void 0===r?"sm":r,o=f(e,["size"]),n=s()(null==o?void 0:o.className,"atoka-badge","variant-".concat(o.variant,"-").concat(o.color),t),i=s()({"mr-2":null!=o.children}),u=null==o.icon?null:a().createElement(l.FontAwesomeIcon,{icon:o.icon,className:i});return a().createElement(c(),{className:n},u,o.children)}));u.displayName="Badge"},5692:r=>{r.exports=e},8310:e=>{e.exports=r},8156:e=>{e.exports=t},6997:e=>{e.exports=o}},s={};function i(e){var r=s[e];if(void 0!==r)return r.exports;var t=s[e]={exports:{}};return n[e](t,t.exports,i),t.exports}i.m=n,a=[],i.O=(e,r,t,o)=>{if(!r){var n=1/0;for(f=0;f<a.length;f++){for(var[r,t,o]=a[f],s=!0,c=0;c<r.length;c++)(!1&o||n>=o)&&Object.keys(i.O).every((e=>i.O[e](r[c])))?r.splice(c--,1):(s=!1,o<n&&(n=o));if(s){a.splice(f--,1);var l=t();void 0!==l&&(e=l)}}return e}o=o||0;for(var f=a.length;f>0&&a[f-1][2]>o;f--)a[f]=a[f-1];a[f]=[r,t,o]},i.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return i.d(r,{a:r}),r},i.d=(e,r)=>{for(var t in r)i.o(r,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},i.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={54:0,8699:0};i.O.j=r=>0===e[r];var r=(r,t)=>{var o,a,[n,s,c]=t,l=0;if(n.some((r=>0!==e[r]))){for(o in s)i.o(s,o)&&(i.m[o]=s[o]);if(c)var f=c(i)}for(r&&r(t);l<n.length;l++)a=n[l],i.o(e,a)&&e[a]&&e[a][0](),e[n[l]]=0;return i.O(f)},t=self.webpackChunkatoka_design_system=self.webpackChunkatoka_design_system||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})();var c=i.O(void 0,[8699],(()=>i(595)));return c=i.O(c)})()}));