@spaziodati/atoka-design-system 2.1.4 → 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 (116) hide show
  1. package/AddableItems/index.js +1 -1046
  2. package/Alert/index.js +1 -319
  3. package/Badge/index.js +1 -285
  4. package/Bs4V3Wrapper/index.js +1 -251
  5. package/BubbleChart/index.js +2 -3793
  6. package/BubbleChart/index.js.LICENSE.txt +1 -0
  7. package/Button/Button.storiesConfig.d.ts +0 -10
  8. package/Button/index.js +1 -323
  9. package/ButtonDropdown/index.js +1 -603
  10. package/CardsPage/index.js +1 -2511
  11. package/CursorPagination/index.js +1 -952
  12. package/DatePicker/index.js +1 -452
  13. package/DetailPage/DetailPage.d.ts +1 -1
  14. package/DetailPage/DetailPageHeaderUI.d.ts +1 -1
  15. package/DetailPage/index.js +1 -2092
  16. package/Dropdown/index.js +1 -723
  17. package/EditableString/index.js +1 -3347
  18. package/EllipsableContent/index.js +1 -784
  19. package/EmptyState/index.js +1 -278
  20. package/Facet/index.js +1 -914
  21. package/FacetSection/index.js +1 -443
  22. package/FadeAnimation/index.js +1 -1254
  23. package/FeedbackButton/index.js +1 -398
  24. package/Form/index.js +1 -450
  25. package/Funnel/index.js +2 -3997
  26. package/Funnel/index.js.LICENSE.txt +1 -0
  27. package/GridCard/index.js +1 -1618
  28. package/HighlightableText/index.js +1 -624
  29. package/Histogram/index.js +1 -2358
  30. package/InlineStringEditor/index.js +1 -1882
  31. package/InputGroup/index.js +1 -279
  32. package/Jumbotron/index.js +1 -270
  33. package/Map/Map.d.ts +3 -3
  34. package/Map/Types.d.ts +2 -2
  35. package/Map/index.js +2 -4810
  36. package/Map/index.js.LICENSE.txt +10 -0
  37. package/Modal/index.js +1 -743
  38. package/Navbar/index.js +1 -3547
  39. package/Pagination/index.js +1 -994
  40. package/PieChart/index.js +1 -1986
  41. package/PublicFooter/index.js +1 -454
  42. package/PublicNavbar/index.js +1 -255
  43. package/README.md +2 -0
  44. package/RecordBit/index.js +1 -482
  45. package/ResultItemCard/index.js +1 -1067
  46. package/SelectDropdown/index.js +1 -1520
  47. package/Spinner/index.js +1 -325
  48. package/StatisticsItemCard/index.js +1 -1786
  49. package/StatisticsItemNumeric/index.js +1 -283
  50. package/StatisticsLegend/index.js +1 -1571
  51. package/StatisticsTooltip/index.js +1 -796
  52. package/Suggester/getRenderCustomMultiValueWithIcon.d.ts +1 -1
  53. package/Suggester/index.js +1 -1126
  54. package/SunBurst/index.js +1 -1170
  55. package/TabSwitcher/index.js +1 -1135
  56. package/Title/index.js +1 -302
  57. package/Toasts/index.js +1 -2236
  58. package/ToggleButtonGroup/index.js +1 -609
  59. package/Tooltip/index.js +1 -291
  60. package/Utils/index.js +2 -3379
  61. package/Utils/index.js.LICENSE.txt +1 -0
  62. package/{atoka-design-system-2.1.4.min.css → atoka-design-system-2.1.7.min.css} +1 -1
  63. package/index.js +2 -16321
  64. package/index.js.LICENSE.txt +10 -0
  65. package/package.json +48 -40
  66. package/AddableItems/index.js.map +0 -1
  67. package/Alert/index.js.map +0 -1
  68. package/Badge/index.js.map +0 -1
  69. package/Bs4V3Wrapper/index.js.map +0 -1
  70. package/BubbleChart/index.js.map +0 -1
  71. package/Button/index.js.map +0 -1
  72. package/ButtonDropdown/index.js.map +0 -1
  73. package/CardsPage/index.js.map +0 -1
  74. package/CursorPagination/index.js.map +0 -1
  75. package/DatePicker/index.js.map +0 -1
  76. package/DetailPage/index.js.map +0 -1
  77. package/Dropdown/index.js.map +0 -1
  78. package/EditableString/index.js.map +0 -1
  79. package/EllipsableContent/index.js.map +0 -1
  80. package/EmptyState/index.js.map +0 -1
  81. package/Facet/index.js.map +0 -1
  82. package/FacetSection/index.js.map +0 -1
  83. package/FadeAnimation/index.js.map +0 -1
  84. package/FeedbackButton/index.js.map +0 -1
  85. package/Form/index.js.map +0 -1
  86. package/Funnel/index.js.map +0 -1
  87. package/GridCard/index.js.map +0 -1
  88. package/HighlightableText/index.js.map +0 -1
  89. package/Histogram/index.js.map +0 -1
  90. package/InlineStringEditor/index.js.map +0 -1
  91. package/InputGroup/index.js.map +0 -1
  92. package/Jumbotron/index.js.map +0 -1
  93. package/Map/index.js.map +0 -1
  94. package/Modal/index.js.map +0 -1
  95. package/Navbar/index.js.map +0 -1
  96. package/Pagination/index.js.map +0 -1
  97. package/PieChart/index.js.map +0 -1
  98. package/PublicFooter/index.js.map +0 -1
  99. package/PublicNavbar/index.js.map +0 -1
  100. package/RecordBit/index.js.map +0 -1
  101. package/ResultItemCard/index.js.map +0 -1
  102. package/SelectDropdown/index.js.map +0 -1
  103. package/Spinner/index.js.map +0 -1
  104. package/StatisticsItemCard/index.js.map +0 -1
  105. package/StatisticsItemNumeric/index.js.map +0 -1
  106. package/StatisticsLegend/index.js.map +0 -1
  107. package/StatisticsTooltip/index.js.map +0 -1
  108. package/Suggester/index.js.map +0 -1
  109. package/SunBurst/index.js.map +0 -1
  110. package/TabSwitcher/index.js.map +0 -1
  111. package/Title/index.js.map +0 -1
  112. package/Toasts/index.js.map +0 -1
  113. package/ToggleButtonGroup/index.js.map +0 -1
  114. package/Tooltip/index.js.map +0 -1
  115. package/Utils/index.js.map +0 -1
  116. package/index.js.map +0 -1
package/Alert/index.js CHANGED
@@ -1,319 +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
- /***/ 6380:
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 (b.hasOwnProperty(p)) d[p] = b[p]; };
43
- return extendStatics(d, b);
44
- };
45
- return function (d, b) {
46
- extendStatics(d, b);
47
- function __() { this.constructor = d; }
48
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
49
- };
50
- })();
51
- var __assign = (undefined && undefined.__assign) || function () {
52
- __assign = Object.assign || function(t) {
53
- for (var s, i = 1, n = arguments.length; i < n; i++) {
54
- s = arguments[i];
55
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
56
- t[p] = s[p];
57
- }
58
- return t;
59
- };
60
- return __assign.apply(this, arguments);
61
- };
62
-
63
-
64
-
65
-
66
-
67
- /**
68
- * ### Overview
69
- * 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:
70
- *
71
- * - Danger: this message indicates a dangerous or potentially negative action that the user must take notice of
72
- * - Warning: this alert tells the user to proceed with caution with their actions on the platform
73
- * - Success: this message is indicative that the user just performed a successful or positive action
74
- * - Info: this alert has the scope of letting the user know about a neutral and informative change or action on Atoka
75
- *
76
- * ### Best practices
77
- * - Use alerts sparingly: if there are too many alerts, the user will end up avoiding them due to cognitive overload and miss important information
78
- * - Use alerts to notify the user of information that is either time-sensitive or relevant to the action the user is performing
79
- * - Keep the text informative but not too long
80
- */
81
- var Alert = /** @class */ (function (_super) {
82
- __extends(Alert, _super);
83
- function Alert() {
84
- return _super !== null && _super.apply(this, arguments) || this;
85
- }
86
- Alert.prototype.renderIcon = function () {
87
- if (this.props.icon == null) {
88
- return null;
89
- }
90
- return external_react_default().createElement(react_fontawesome_.FontAwesomeIcon, { icon: this.props.icon });
91
- };
92
- Alert.prototype.renderChildren = function () {
93
- if (this.props.children == null) {
94
- return null;
95
- }
96
- return external_react_default().createElement("div", { className: 'alert-children' }, this.props.children);
97
- };
98
- Alert.prototype.renderContent = function () {
99
- return (external_react_default().createElement("div", { className: 'alert-content-container d-flex' },
100
- this.renderIcon(),
101
- this.renderChildren()));
102
- };
103
- Alert.prototype.render = function () {
104
- var className = external_classnames_default()(this.props.className, 'atoka-alert');
105
- return (external_react_default().createElement((Alert_default()), __assign({ className: className, dismissible: this.props.isDismissible, show: this.props.isShown }, this.props), this.renderContent()));
106
- };
107
- Alert.displayName = 'Alert';
108
- Alert.Heading = (Alert_default()).Heading;
109
- Alert.defaultProps = {
110
- variant: 'danger',
111
- };
112
- return Alert;
113
- }((external_react_default()).PureComponent));
114
-
115
-
116
- ;// CONCATENATED MODULE: ./src/components/Alert/index.ts
117
- // use the star because of this issue: https://github.com/babel/babel-loader/issues/603
118
-
119
-
120
-
121
- /***/ }),
122
-
123
- /***/ 5692:
124
- /***/ ((module) => {
125
-
126
- module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;
127
-
128
- /***/ }),
129
-
130
- /***/ 8310:
131
- /***/ ((module) => {
132
-
133
- module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;
134
-
135
- /***/ }),
136
-
137
- /***/ 8156:
138
- /***/ ((module) => {
139
-
140
- module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;
141
-
142
- /***/ }),
143
-
144
- /***/ 5859:
145
- /***/ ((module) => {
146
-
147
- module.exports = __WEBPACK_EXTERNAL_MODULE__5859__;
148
-
149
- /***/ })
150
-
151
- /******/ });
152
- /************************************************************************/
153
- /******/ // The module cache
154
- /******/ var __webpack_module_cache__ = {};
155
- /******/
156
- /******/ // The require function
157
- /******/ function __webpack_require__(moduleId) {
158
- /******/ // Check if module is in cache
159
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
160
- /******/ if (cachedModule !== undefined) {
161
- /******/ return cachedModule.exports;
162
- /******/ }
163
- /******/ // Create a new module (and put it into the cache)
164
- /******/ var module = __webpack_module_cache__[moduleId] = {
165
- /******/ // no module.id needed
166
- /******/ // no module.loaded needed
167
- /******/ exports: {}
168
- /******/ };
169
- /******/
170
- /******/ // Execute the module function
171
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
172
- /******/
173
- /******/ // Return the exports of the module
174
- /******/ return module.exports;
175
- /******/ }
176
- /******/
177
- /******/ // expose the modules object (__webpack_modules__)
178
- /******/ __webpack_require__.m = __webpack_modules__;
179
- /******/
180
- /************************************************************************/
181
- /******/ /* webpack/runtime/chunk loaded */
182
- /******/ (() => {
183
- /******/ var deferred = [];
184
- /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
185
- /******/ if(chunkIds) {
186
- /******/ priority = priority || 0;
187
- /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
188
- /******/ deferred[i] = [chunkIds, fn, priority];
189
- /******/ return;
190
- /******/ }
191
- /******/ var notFulfilled = Infinity;
192
- /******/ for (var i = 0; i < deferred.length; i++) {
193
- /******/ var [chunkIds, fn, priority] = deferred[i];
194
- /******/ var fulfilled = true;
195
- /******/ for (var j = 0; j < chunkIds.length; j++) {
196
- /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
197
- /******/ chunkIds.splice(j--, 1);
198
- /******/ } else {
199
- /******/ fulfilled = false;
200
- /******/ if(priority < notFulfilled) notFulfilled = priority;
201
- /******/ }
202
- /******/ }
203
- /******/ if(fulfilled) {
204
- /******/ deferred.splice(i--, 1)
205
- /******/ var r = fn();
206
- /******/ if (r !== undefined) result = r;
207
- /******/ }
208
- /******/ }
209
- /******/ return result;
210
- /******/ };
211
- /******/ })();
212
- /******/
213
- /******/ /* webpack/runtime/compat get default export */
214
- /******/ (() => {
215
- /******/ // getDefaultExport function for compatibility with non-harmony modules
216
- /******/ __webpack_require__.n = (module) => {
217
- /******/ var getter = module && module.__esModule ?
218
- /******/ () => (module['default']) :
219
- /******/ () => (module);
220
- /******/ __webpack_require__.d(getter, { a: getter });
221
- /******/ return getter;
222
- /******/ };
223
- /******/ })();
224
- /******/
225
- /******/ /* webpack/runtime/define property getters */
226
- /******/ (() => {
227
- /******/ // define getter functions for harmony exports
228
- /******/ __webpack_require__.d = (exports, definition) => {
229
- /******/ for(var key in definition) {
230
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
231
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
232
- /******/ }
233
- /******/ }
234
- /******/ };
235
- /******/ })();
236
- /******/
237
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
238
- /******/ (() => {
239
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
240
- /******/ })();
241
- /******/
242
- /******/ /* webpack/runtime/make namespace object */
243
- /******/ (() => {
244
- /******/ // define __esModule on exports
245
- /******/ __webpack_require__.r = (exports) => {
246
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
247
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
248
- /******/ }
249
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
250
- /******/ };
251
- /******/ })();
252
- /******/
253
- /******/ /* webpack/runtime/jsonp chunk loading */
254
- /******/ (() => {
255
- /******/ // no baseURI
256
- /******/
257
- /******/ // object to store loaded and loading chunks
258
- /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
259
- /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
260
- /******/ var installedChunks = {
261
- /******/ 9798: 0,
262
- /******/ 3813: 0
263
- /******/ };
264
- /******/
265
- /******/ // no chunk on demand loading
266
- /******/
267
- /******/ // no prefetching
268
- /******/
269
- /******/ // no preloaded
270
- /******/
271
- /******/ // no HMR
272
- /******/
273
- /******/ // no HMR manifest
274
- /******/
275
- /******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
276
- /******/
277
- /******/ // install a JSONP callback for chunk loading
278
- /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
279
- /******/ var [chunkIds, moreModules, runtime] = data;
280
- /******/ // add "moreModules" to the modules object,
281
- /******/ // then flag all "chunkIds" as loaded and fire callback
282
- /******/ var moduleId, chunkId, i = 0;
283
- /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
284
- /******/ for(moduleId in moreModules) {
285
- /******/ if(__webpack_require__.o(moreModules, moduleId)) {
286
- /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
287
- /******/ }
288
- /******/ }
289
- /******/ if(runtime) var result = runtime(__webpack_require__);
290
- /******/ }
291
- /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
292
- /******/ for(;i < chunkIds.length; i++) {
293
- /******/ chunkId = chunkIds[i];
294
- /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
295
- /******/ installedChunks[chunkId][0]();
296
- /******/ }
297
- /******/ installedChunks[chunkIds[i]] = 0;
298
- /******/ }
299
- /******/ return __webpack_require__.O(result);
300
- /******/ }
301
- /******/
302
- /******/ var chunkLoadingGlobal = self["webpackChunkatoka_design_system"] = self["webpackChunkatoka_design_system"] || [];
303
- /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
304
- /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
305
- /******/ })();
306
- /******/
307
- /************************************************************************/
308
- /******/
309
- /******/ // startup
310
- /******/ // Load entry module and return exports
311
- /******/ // This entry module depends on other loaded chunks and execution need to be delayed
312
- /******/ var __webpack_exports__ = __webpack_require__.O(undefined, [3813], () => (__webpack_require__(6380)))
313
- /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
314
- /******/
315
- /******/ return __webpack_exports__;
316
- /******/ })()
317
- ;
318
- });
319
- //# 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
- /***/ 1702:
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-" + props.variant + "-" + 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
- /******/ 3813: 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, [3813], () => (__webpack_require__(1702)))
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)})()}));