@spaziodati/atoka-design-system 2.1.2 → 2.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/AddableItems/index.js +145 -141
  2. package/AddableItems/index.js.map +1 -1
  3. package/Alert/index.js +6 -4
  4. package/Alert/index.js.map +1 -1
  5. package/Badge/index.js +4 -4
  6. package/Badge/index.js.map +1 -1
  7. package/Bs4V3Wrapper/index.js +6 -4
  8. package/Bs4V3Wrapper/index.js.map +1 -1
  9. package/BubbleChart/index.js +1729 -2098
  10. package/BubbleChart/index.js.map +1 -1
  11. package/Button/Button.storiesConfig.d.ts +0 -10
  12. package/Button/index.js +9 -7
  13. package/Button/index.js.map +1 -1
  14. package/ButtonDropdown/index.js +131 -133
  15. package/ButtonDropdown/index.js.map +1 -1
  16. package/CardsPage/index.js +227 -233
  17. package/CardsPage/index.js.map +1 -1
  18. package/CursorPagination/index.js +132 -136
  19. package/CursorPagination/index.js.map +1 -1
  20. package/DatePicker/index.js +123 -126
  21. package/DatePicker/index.js.map +1 -1
  22. package/DetailPage/index.js +1353 -1429
  23. package/DetailPage/index.js.map +1 -1
  24. package/Dropdown/index.js +133 -133
  25. package/Dropdown/index.js.map +1 -1
  26. package/EditableString/index.js +2400 -2483
  27. package/EditableString/index.js.map +1 -1
  28. package/EllipsableContent/index.js +14 -12
  29. package/EllipsableContent/index.js.map +1 -1
  30. package/EmptyState/index.js +6 -4
  31. package/EmptyState/index.js.map +1 -1
  32. package/Facet/index.js +149 -144
  33. package/Facet/index.js.map +1 -1
  34. package/FacetSection/index.js +15 -11
  35. package/FacetSection/index.js.map +1 -1
  36. package/FadeAnimation/index.js +660 -731
  37. package/FadeAnimation/index.js.map +1 -1
  38. package/FeedbackButton/index.js +10 -8
  39. package/FeedbackButton/index.js.map +1 -1
  40. package/Form/index.js +7 -7
  41. package/Form/index.js.map +1 -1
  42. package/Funnel/index.js +2854 -3227
  43. package/Funnel/index.js.map +1 -1
  44. package/GridCard/index.js +162 -154
  45. package/GridCard/index.js.map +1 -1
  46. package/HighlightableText/index.js +138 -137
  47. package/HighlightableText/index.js.map +1 -1
  48. package/Histogram/index.js +1168 -1180
  49. package/Histogram/index.js.map +1 -1
  50. package/InlineStringEditor/index.js +183 -203
  51. package/InlineStringEditor/index.js.map +1 -1
  52. package/InputGroup/index.js +3 -3
  53. package/InputGroup/index.js.map +1 -1
  54. package/Jumbotron/index.js +7 -5
  55. package/Jumbotron/index.js.map +1 -1
  56. package/Map/Map.d.ts +3 -3
  57. package/Map/Types.d.ts +2 -2
  58. package/Map/index.js +4200 -3823
  59. package/Map/index.js.map +1 -1
  60. package/Modal/index.js +12 -10
  61. package/Modal/index.js.map +1 -1
  62. package/Navbar/index.js +2426 -2517
  63. package/Navbar/index.js.map +1 -1
  64. package/Pagination/index.js +132 -136
  65. package/Pagination/index.js.map +1 -1
  66. package/PieChart/index.js +204 -219
  67. package/PieChart/index.js.map +1 -1
  68. package/PublicFooter/index.js +14 -10
  69. package/PublicFooter/index.js.map +1 -1
  70. package/PublicNavbar/index.js +6 -4
  71. package/PublicNavbar/index.js.map +1 -1
  72. package/README.md +5 -2
  73. package/RecordBit/index.js +15 -11
  74. package/RecordBit/index.js.map +1 -1
  75. package/ResultItemCard/index.js +25 -19
  76. package/ResultItemCard/index.js.map +1 -1
  77. package/SelectDropdown/index.js +171 -185
  78. package/SelectDropdown/index.js.map +1 -1
  79. package/Spinner/index.js +6 -4
  80. package/Spinner/index.js.map +1 -1
  81. package/StatisticsItemCard/index.js +170 -160
  82. package/StatisticsItemCard/index.js.map +1 -1
  83. package/StatisticsItemNumeric/index.js +6 -4
  84. package/StatisticsItemNumeric/index.js.map +1 -1
  85. package/StatisticsLegend/index.js +173 -189
  86. package/StatisticsLegend/index.js.map +1 -1
  87. package/StatisticsTooltip/index.js +15 -15
  88. package/StatisticsTooltip/index.js.map +1 -1
  89. package/Suggester/getRenderCustomMultiValueWithIcon.d.ts +1 -1
  90. package/Suggester/index.js +160 -160
  91. package/Suggester/index.js.map +1 -1
  92. package/SunBurst/index.js +140 -144
  93. package/SunBurst/index.js.map +1 -1
  94. package/TabSwitcher/index.js +144 -144
  95. package/TabSwitcher/index.js.map +1 -1
  96. package/Title/index.js +8 -6
  97. package/Title/index.js.map +1 -1
  98. package/Toasts/Toast.d.ts +41 -0
  99. package/Toasts/ToastContainer.d.ts +4 -0
  100. package/Toasts/ToastHeader.d.ts +7 -0
  101. package/Toasts/index.d.ts +2 -0
  102. package/Toasts/index.js +2285 -0
  103. package/Toasts/index.js.map +1 -0
  104. package/ToggleButtonGroup/index.js +128 -130
  105. package/ToggleButtonGroup/index.js.map +1 -1
  106. package/Tooltip/index.js +3 -3
  107. package/Tooltip/index.js.map +1 -1
  108. package/Utils/index.js +1049 -1426
  109. package/Utils/index.js.map +1 -1
  110. package/{atoka-design-system-2.1.2.min.css → atoka-design-system-2.1.5.min.css} +1 -1
  111. package/index.d.ts +1 -0
  112. package/index.js +13126 -11649
  113. package/index.js.map +1 -1
  114. package/package.json +48 -40
  115. package/styles/atoka-bs.less +1 -1
  116. package/styles/variant-mixins.less +7 -7
@@ -1,14 +1,4 @@
1
- import React from 'react';
2
- import { Button } from './Button';
3
1
  export declare const config: {
4
- component: typeof Button;
5
- title: string;
6
- decorators: ((storyFn: () => React.ReactNode) => React.ReactNode)[];
7
- parameters: {
8
- controls: {
9
- hideNoControlsWarning: boolean;
10
- };
11
- };
12
2
  argTypes: {
13
3
  onClick: {
14
4
  action: string;
package/Button/index.js CHANGED
@@ -12,7 +12,7 @@ return /******/ (() => { // webpackBootstrap
12
12
  /******/ "use strict";
13
13
  /******/ var __webpack_modules__ = ({
14
14
 
15
- /***/ 1710:
15
+ /***/ 4397:
16
16
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
17
17
 
18
18
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
@@ -30,10 +30,12 @@ var __extends = (undefined && undefined.__extends) || (function () {
30
30
  var extendStatics = function (d, b) {
31
31
  extendStatics = Object.setPrototypeOf ||
32
32
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
33
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
33
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
34
34
  return extendStatics(d, b);
35
35
  };
36
36
  return function (d, b) {
37
+ if (typeof b !== "function" && b !== null)
38
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
37
39
  extendStatics(d, b);
38
40
  function __() { this.constructor = d; }
39
41
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -88,7 +90,7 @@ var Button = /** @class */ (function (_super) {
88
90
  this.renderChildren()));
89
91
  };
90
92
  Button.prototype.render = function () {
91
- var className = classnames__WEBPACK_IMPORTED_MODULE_1___default()('atoka-btn', "btn-" + this.props.size, this.props.className, {
93
+ var className = classnames__WEBPACK_IMPORTED_MODULE_1___default()('atoka-btn', "btn-".concat(this.props.size), this.props.className, {
92
94
  'btn-icon-only': this.props.icon != null && this.props.children == null,
93
95
  });
94
96
  return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react_bootstrap_Button__WEBPACK_IMPORTED_MODULE_2___default()), { className: className, variant: this.props.variant, disabled: this.props.disabled, block: this.props.block, onClick: this.props.onClick, href: this.props.href, target: this.props.target },
@@ -110,14 +112,14 @@ var Button = /** @class */ (function (_super) {
110
112
 
111
113
  /***/ }),
112
114
 
113
- /***/ 125:
115
+ /***/ 7325:
114
116
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
115
117
 
116
118
  __webpack_require__.r(__webpack_exports__);
117
119
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
118
120
  /* harmony export */ "Button": () => (/* reexport safe */ _Button__WEBPACK_IMPORTED_MODULE_0__.z)
119
121
  /* harmony export */ });
120
- /* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1710);
122
+ /* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4397);
121
123
  // use the star because of this issue: https://github.com/babel/babel-loader/issues/603
122
124
 
123
125
 
@@ -263,7 +265,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__8926__;
263
265
  /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
264
266
  /******/ var installedChunks = {
265
267
  /******/ 6615: 0,
266
- /******/ 2210: 0
268
+ /******/ 6999: 0
267
269
  /******/ };
268
270
  /******/
269
271
  /******/ // no chunk on demand loading
@@ -313,7 +315,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__8926__;
313
315
  /******/ // startup
314
316
  /******/ // Load entry module and return exports
315
317
  /******/ // This entry module depends on other loaded chunks and execution need to be delayed
316
- /******/ var __webpack_exports__ = __webpack_require__.O(undefined, [2210], () => (__webpack_require__(125)))
318
+ /******/ var __webpack_exports__ = __webpack_require__.O(undefined, [6999], () => (__webpack_require__(7325)))
317
319
  /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
318
320
  /******/
319
321
  /******/ return __webpack_exports__;
@@ -1 +1 @@
1
- {"version":3,"file":"Button/index.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACV4C;AACR;AACU;AACiB;AAExC;AA+BvB;IAAqB,0BAAgC;IAArD;;IAkFA,CAAC;IAxEW,2BAAU,GAAlB;QACI,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,IAAI,EAAE;YACzB,OAAO,IAAI,CAAC;SACf;QAED,OAAO,2DAAC,2EAAe,IAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,GAAI,CAAC;IACtD,CAAC;IAEO,+BAAc,GAAtB;QACI,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,IAAI,EAAE;YAC7B,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qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://atoka-design-system/webpack/universalModuleDefinition","webpack://atoka-design-system/./src/components/Button/Button.tsx","webpack://atoka-design-system/./src/components/Button/index.ts","webpack://atoka-design-system/external umd \"@fortawesome/react-fontawesome\"","webpack://atoka-design-system/external umd \"classnames\"","webpack://atoka-design-system/external umd \"react\"","webpack://atoka-design-system/external umd \"react-bootstrap/Button\"","webpack://atoka-design-system/webpack/bootstrap","webpack://atoka-design-system/webpack/runtime/chunk loaded","webpack://atoka-design-system/webpack/runtime/compat get default export","webpack://atoka-design-system/webpack/runtime/define property getters","webpack://atoka-design-system/webpack/runtime/hasOwnProperty shorthand","webpack://atoka-design-system/webpack/runtime/make namespace object","webpack://atoka-design-system/webpack/runtime/jsonp chunk loading","webpack://atoka-design-system/webpack/before-startup","webpack://atoka-design-system/webpack/startup","webpack://atoka-design-system/webpack/after-startup"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"@fortawesome/react-fontawesome\"), require(\"classnames\"), require(\"react\"), require(\"react-bootstrap/Button\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"atoka-design-system\", [\"@fortawesome/react-fontawesome\", \"classnames\", \"react\", \"react-bootstrap/Button\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"atoka-design-system\"] = factory(require(\"@fortawesome/react-fontawesome\"), require(\"classnames\"), require(\"react\"), require(\"react-bootstrap/Button\"));\n\telse\n\t\troot[\"atoka-design-system\"] = factory(root[\"@fortawesome/react-fontawesome\"], root[\"classnames\"], root[\"react\"], root[\"react-bootstrap/Button\"]);\n})(self, function(__WEBPACK_EXTERNAL_MODULE__5692__, __WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__, __WEBPACK_EXTERNAL_MODULE__8926__) {\nreturn ","import React, {SyntheticEvent} from 'react';\nimport classnames from 'classnames';\nimport BsButton from 'react-bootstrap/Button';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\n\nimport './Button.less';\nimport {IconDefinition} from '@fortawesome/pro-light-svg-icons';\nimport {PropsWithClassName} from '../Utils';\n\ntype ButtonVariant =\n | 'primary'\n | 'secondary'\n | 'tertiary'\n | 'tertiary-danger'\n | 'danger'\n | 'primary-orange'\n | 'primary-white'\n | 'primary-danger';\ntype ButtonSize = 'xxs' | 'xs' | 'sm' | 'md' | 'lg';\ninterface ButtonProps extends PropsWithClassName {\n variant: ButtonVariant;\n size: ButtonSize;\n\n icon?: IconDefinition;\n iconLeft?: IconDefinition;\n iconRight?: IconDefinition;\n\n disabled: boolean;\n block: boolean;\n\n onClick?: (e?: SyntheticEvent) => void;\n\n href?: string;\n target?: string;\n}\n\nclass Button extends React.PureComponent<ButtonProps> {\n static displayName: string = 'Button';\n\n public static defaultProps: Partial<ButtonProps> = {\n variant: 'primary',\n size: 'md',\n disabled: false,\n block: false,\n };\n\n private renderIcon(): React.ReactNode {\n if (this.props.icon == null) {\n return null;\n }\n\n return <FontAwesomeIcon icon={this.props.icon} />;\n }\n\n private renderChildren(): React.ReactNode {\n if (this.props.children == null) {\n return null;\n }\n\n return <span className='btn-children'>{this.props.children}</span>;\n }\n\n private renderLeftSide(): React.ReactNode {\n if (this.props.iconLeft == null) {\n if (this.props.iconRight == null) {\n return null;\n }\n return <FontAwesomeIcon icon={this.props.iconRight} className='invisible' />;\n }\n\n return <FontAwesomeIcon icon={this.props.iconLeft} />;\n }\n\n private renderRightSide(): React.ReactNode {\n if (this.props.iconRight == null) {\n if (this.props.iconLeft == null) {\n return null;\n }\n return <FontAwesomeIcon icon={this.props.iconLeft} className='invisible' />;\n }\n\n return <FontAwesomeIcon icon={this.props.iconRight} />;\n }\n\n private renderContent(): React.ReactNode {\n if (this.props.icon != null && this.props.children == null) {\n return this.renderIcon();\n }\n\n return (\n <div className='button-content-center-container'>\n {this.renderIcon()}\n {this.renderChildren()}\n </div>\n );\n }\n\n public render(): React.ReactNode {\n const className: string = classnames('atoka-btn', `btn-${this.props.size}`, this.props.className, {\n 'btn-icon-only': this.props.icon != null && this.props.children == null,\n });\n\n return (\n <BsButton\n className={className}\n variant={this.props.variant}\n disabled={this.props.disabled}\n block={this.props.block}\n onClick={this.props.onClick}\n href={this.props.href}\n target={this.props.target}\n >\n {this.renderLeftSide()}\n {this.renderContent()}\n {this.renderRightSide()}\n </BsButton>\n );\n }\n}\n\nexport {Button, ButtonVariant, ButtonSize, ButtonProps};\n","// use the star because of this issue: https://github.com/babel/babel-loader/issues/603\nexport * from './Button';\n","module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8926__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t6615: 0,\n\t2210: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkIds[i]] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkatoka_design_system\"] = self[\"webpackChunkatoka_design_system\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [2210], () => (__webpack_require__(125)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":[],"sourceRoot":""}
1
+ {"version":3,"file":"Button/index.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACV4C;AACR;AACU;AACiB;AAExC;AA+BvB;IAAqB,0BAAgC;IAArD;;IAkFA,CAAC;IAxEW,2BAAU,GAAlB;QACI,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,IAAI,EAAE;YACzB,OAAO,IAAI,CAAC;SACf;QAED,OAAO,2DAAC,2EAAe,IAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,GAAI,CAAC;IACtD,CAAC;IAEO,+BAAc,GAAtB;QACI,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,IAAI,EAAE;YAC7B,OAAO,IAAI,CAAC;SACf;QAED,OAAO,qEAAM,SAAS,EAAC,cAAc,IAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAQ,CAAC;IACvE,CAAC;IAEO,+BAAc,GAAtB;QACI,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,IAAI,EAAE;YAC7B,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,IAAI,IAAI,EAAE;gBAC9B,OAAO,IAAI,CAAC;aACf;YACD,OAAO,2DAAC,2EAAe,IAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,SAAS,EAAC,WAAW,GAAG,CAAC;SAChF;QAED,OAAO,2DAAC,2EAAe,IAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,Q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ACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://atoka-design-system/webpack/universalModuleDefinition","webpack://atoka-design-system/./src/components/Button/Button.tsx","webpack://atoka-design-system/./src/components/Button/index.ts","webpack://atoka-design-system/external umd \"@fortawesome/react-fontawesome\"","webpack://atoka-design-system/external umd \"classnames\"","webpack://atoka-design-system/external umd \"react\"","webpack://atoka-design-system/external umd \"react-bootstrap/Button\"","webpack://atoka-design-system/webpack/bootstrap","webpack://atoka-design-system/webpack/runtime/chunk loaded","webpack://atoka-design-system/webpack/runtime/compat get default export","webpack://atoka-design-system/webpack/runtime/define property getters","webpack://atoka-design-system/webpack/runtime/hasOwnProperty shorthand","webpack://atoka-design-system/webpack/runtime/make namespace object","webpack://atoka-design-system/webpack/runtime/jsonp chunk loading","webpack://atoka-design-system/webpack/before-startup","webpack://atoka-design-system/webpack/startup","webpack://atoka-design-system/webpack/after-startup"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"@fortawesome/react-fontawesome\"), require(\"classnames\"), require(\"react\"), require(\"react-bootstrap/Button\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"atoka-design-system\", [\"@fortawesome/react-fontawesome\", \"classnames\", \"react\", \"react-bootstrap/Button\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"atoka-design-system\"] = factory(require(\"@fortawesome/react-fontawesome\"), require(\"classnames\"), require(\"react\"), require(\"react-bootstrap/Button\"));\n\telse\n\t\troot[\"atoka-design-system\"] = factory(root[\"@fortawesome/react-fontawesome\"], root[\"classnames\"], root[\"react\"], root[\"react-bootstrap/Button\"]);\n})(self, function(__WEBPACK_EXTERNAL_MODULE__5692__, __WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__, __WEBPACK_EXTERNAL_MODULE__8926__) {\nreturn ","import React, {SyntheticEvent} from 'react';\nimport classnames from 'classnames';\nimport BsButton from 'react-bootstrap/Button';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\n\nimport './Button.less';\nimport {IconDefinition} from '@fortawesome/pro-light-svg-icons';\nimport {PropsWithClassName} from '../Utils';\n\ntype ButtonVariant =\n | 'primary'\n | 'secondary'\n | 'tertiary'\n | 'tertiary-danger'\n | 'danger'\n | 'primary-orange'\n | 'primary-white'\n | 'primary-danger';\ntype ButtonSize = 'xxs' | 'xs' | 'sm' | 'md' | 'lg';\ninterface ButtonProps extends PropsWithClassName {\n variant: ButtonVariant;\n size: ButtonSize;\n\n icon?: IconDefinition;\n iconLeft?: IconDefinition;\n iconRight?: IconDefinition;\n\n disabled: boolean;\n block: boolean;\n\n onClick?: (e?: SyntheticEvent) => void;\n\n href?: string;\n target?: string;\n}\n\nclass Button extends React.PureComponent<ButtonProps> {\n static displayName: string = 'Button';\n\n public static defaultProps: Partial<ButtonProps> = {\n variant: 'primary',\n size: 'md',\n disabled: false,\n block: false,\n };\n\n private renderIcon(): React.ReactNode {\n if (this.props.icon == null) {\n return null;\n }\n\n return <FontAwesomeIcon icon={this.props.icon} />;\n }\n\n private renderChildren(): React.ReactNode {\n if (this.props.children == null) {\n return null;\n }\n\n return <span className='btn-children'>{this.props.children}</span>;\n }\n\n private renderLeftSide(): React.ReactNode {\n if (this.props.iconLeft == null) {\n if (this.props.iconRight == null) {\n return null;\n }\n return <FontAwesomeIcon icon={this.props.iconRight} className='invisible' />;\n }\n\n return <FontAwesomeIcon icon={this.props.iconLeft} />;\n }\n\n private renderRightSide(): React.ReactNode {\n if (this.props.iconRight == null) {\n if (this.props.iconLeft == null) {\n return null;\n }\n return <FontAwesomeIcon icon={this.props.iconLeft} className='invisible' />;\n }\n\n return <FontAwesomeIcon icon={this.props.iconRight} />;\n }\n\n private renderContent(): React.ReactNode {\n if (this.props.icon != null && this.props.children == null) {\n return this.renderIcon();\n }\n\n return (\n <div className='button-content-center-container'>\n {this.renderIcon()}\n {this.renderChildren()}\n </div>\n );\n }\n\n public render(): React.ReactNode {\n const className: string = classnames('atoka-btn', `btn-${this.props.size}`, this.props.className, {\n 'btn-icon-only': this.props.icon != null && this.props.children == null,\n });\n\n return (\n <BsButton\n className={className}\n variant={this.props.variant}\n disabled={this.props.disabled}\n block={this.props.block}\n onClick={this.props.onClick}\n href={this.props.href}\n target={this.props.target}\n >\n {this.renderLeftSide()}\n {this.renderContent()}\n {this.renderRightSide()}\n </BsButton>\n );\n }\n}\n\nexport {Button, ButtonVariant, ButtonSize, ButtonProps};\n","// use the star because of this issue: https://github.com/babel/babel-loader/issues/603\nexport * from './Button';\n","module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8926__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t6615: 0,\n\t6999: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkIds[i]] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkatoka_design_system\"] = self[\"webpackChunkatoka_design_system\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [6999], () => (__webpack_require__(7325)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":[],"sourceRoot":""}
@@ -12,7 +12,118 @@ return /******/ (() => { // webpackBootstrap
12
12
  /******/ "use strict";
13
13
  /******/ var __webpack_modules__ = ({
14
14
 
15
- /***/ 1710:
15
+ /***/ 6627:
16
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
17
+
18
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
19
+ /* harmony export */ "ZP": () => (/* binding */ autobind)
20
+ /* harmony export */ });
21
+ /* unused harmony exports boundMethod, boundClass */
22
+ /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4329);
23
+
24
+
25
+ function _typeof(obj) {
26
+ if (typeof Symbol === "function" && (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(Symbol.iterator) === "symbol") {
27
+ _typeof = function _typeof(obj) {
28
+ return (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
29
+ };
30
+ } else {
31
+ _typeof = function _typeof(obj) {
32
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
33
+ };
34
+ }
35
+
36
+ return _typeof(obj);
37
+ }
38
+ /**
39
+ * Return a descriptor removing the value and returning a getter
40
+ * The getter will return a .bind version of the function
41
+ * and memoize the result against a symbol on the instance
42
+ */
43
+
44
+
45
+ function boundMethod(target, key, descriptor) {
46
+ var fn = descriptor.value;
47
+
48
+ if (typeof fn !== 'function') {
49
+ throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(_typeof(fn)));
50
+ } // In IE11 calling Object.defineProperty has a side-effect of evaluating the
51
+ // getter for the property which is being replaced. This causes infinite
52
+ // recursion and an "Out of stack space" error.
53
+
54
+
55
+ var definingProperty = false;
56
+ return {
57
+ configurable: true,
58
+ get: function get() {
59
+ // eslint-disable-next-line no-prototype-builtins
60
+ if (definingProperty || this === target.prototype || this.hasOwnProperty(key) || typeof fn !== 'function') {
61
+ return fn;
62
+ }
63
+
64
+ var boundFn = fn.bind(this);
65
+ definingProperty = true;
66
+ Object.defineProperty(this, key, {
67
+ configurable: true,
68
+ get: function get() {
69
+ return boundFn;
70
+ },
71
+ set: function set(value) {
72
+ fn = value;
73
+ delete this[key];
74
+ }
75
+ });
76
+ definingProperty = false;
77
+ return boundFn;
78
+ },
79
+ set: function set(value) {
80
+ fn = value;
81
+ }
82
+ };
83
+ }
84
+ /**
85
+ * Use boundMethod to bind all methods on the target.prototype
86
+ */
87
+
88
+ function boundClass(target) {
89
+ // (Using reflect to get all keys including symbols)
90
+ var keys; // Use Reflect if exists
91
+
92
+ if (typeof Reflect !== 'undefined' && typeof Reflect.ownKeys === 'function') {
93
+ keys = Reflect.ownKeys(target.prototype);
94
+ } else {
95
+ keys = Object.getOwnPropertyNames(target.prototype); // Use symbols if support is provided
96
+
97
+ if (typeof Object.getOwnPropertySymbols === 'function') {
98
+ keys = keys.concat(Object.getOwnPropertySymbols(target.prototype));
99
+ }
100
+ }
101
+
102
+ keys.forEach(function (key) {
103
+ // Ignore special case target method
104
+ if (key === 'constructor') {
105
+ return;
106
+ }
107
+
108
+ var descriptor = Object.getOwnPropertyDescriptor(target.prototype, key); // Only methods need binding
109
+
110
+ if (typeof descriptor.value === 'function') {
111
+ Object.defineProperty(target.prototype, key, boundMethod(target, key, descriptor));
112
+ }
113
+ });
114
+ return target;
115
+ }
116
+ function autobind() {
117
+ if (arguments.length === 1) {
118
+ return boundClass.apply(void 0, arguments);
119
+ }
120
+
121
+ return boundMethod.apply(void 0, arguments);
122
+ }
123
+
124
+ /***/ }),
125
+
126
+ /***/ 4397:
16
127
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
17
128
 
18
129
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
@@ -30,10 +141,12 @@ var __extends = (undefined && undefined.__extends) || (function () {
30
141
  var extendStatics = function (d, b) {
31
142
  extendStatics = Object.setPrototypeOf ||
32
143
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
33
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
144
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
34
145
  return extendStatics(d, b);
35
146
  };
36
147
  return function (d, b) {
148
+ if (typeof b !== "function" && b !== null)
149
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
37
150
  extendStatics(d, b);
38
151
  function __() { this.constructor = d; }
39
152
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -88,7 +201,7 @@ var Button = /** @class */ (function (_super) {
88
201
  this.renderChildren()));
89
202
  };
90
203
  Button.prototype.render = function () {
91
- var className = classnames__WEBPACK_IMPORTED_MODULE_1___default()('atoka-btn', "btn-" + this.props.size, this.props.className, {
204
+ var className = classnames__WEBPACK_IMPORTED_MODULE_1___default()('atoka-btn', "btn-".concat(this.props.size), this.props.className, {
92
205
  'btn-icon-only': this.props.icon != null && this.props.children == null,
93
206
  });
94
207
  return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react_bootstrap_Button__WEBPACK_IMPORTED_MODULE_2___default()), { className: className, variant: this.props.variant, disabled: this.props.disabled, block: this.props.block, onClick: this.props.onClick, href: this.props.href, target: this.props.target },
@@ -110,20 +223,20 @@ var Button = /** @class */ (function (_super) {
110
223
 
111
224
  /***/ }),
112
225
 
113
- /***/ 125:
226
+ /***/ 7325:
114
227
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
115
228
 
116
229
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
117
230
  /* harmony export */ "Button": () => (/* reexport safe */ _Button__WEBPACK_IMPORTED_MODULE_0__.z)
118
231
  /* harmony export */ });
119
- /* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1710);
232
+ /* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4397);
120
233
  // use the star because of this issue: https://github.com/babel/babel-loader/issues/603
121
234
 
122
235
 
123
236
 
124
237
  /***/ }),
125
238
 
126
- /***/ 4830:
239
+ /***/ 5478:
127
240
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
128
241
 
129
242
  // ESM COMPAT FLAG
@@ -147,16 +260,18 @@ var faChevronUp_ = __webpack_require__(9153);
147
260
  // EXTERNAL MODULE: external "@fortawesome/pro-light-svg-icons/faChevronDown"
148
261
  var faChevronDown_ = __webpack_require__(1711);
149
262
  // EXTERNAL MODULE: ./src/components/Button/index.ts
150
- var Button = __webpack_require__(125);
263
+ var Button = __webpack_require__(7325);
151
264
  ;// CONCATENATED MODULE: ./src/components/ButtonDropdown/ButtonDropdown.tsx
152
265
  var __extends = (undefined && undefined.__extends) || (function () {
153
266
  var extendStatics = function (d, b) {
154
267
  extendStatics = Object.setPrototypeOf ||
155
268
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
156
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
269
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
157
270
  return extendStatics(d, b);
158
271
  };
159
272
  return function (d, b) {
273
+ if (typeof b !== "function" && b !== null)
274
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
160
275
  extendStatics(d, b);
161
276
  function __() { this.constructor = d; }
162
277
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -222,7 +337,7 @@ var ButtonDropdown = /** @class */ (function (_super) {
222
337
  return external_react_default().createElement("ul", { className: 'dropdown-content' }, this.props.children);
223
338
  };
224
339
  ButtonDropdown.prototype.render = function () {
225
- var className = external_classnames_default()(this.props.className, 'atoka-button-dropdown', 'position-relative', "dropdown-" + this.props.size, 'dropdown-primary', {
340
+ var className = external_classnames_default()(this.props.className, 'atoka-button-dropdown', 'position-relative', "dropdown-".concat(this.props.size), 'dropdown-primary', {
226
341
  'dropdown-is-open': this.state.isButtonDropdownOpen,
227
342
  });
228
343
  return (external_react_default().createElement("div", { className: className, ref: this.wrapperRef },
@@ -252,117 +367,6 @@ var ButtonDropdown = /** @class */ (function (_super) {
252
367
 
253
368
 
254
369
 
255
- /***/ }),
256
-
257
- /***/ 6627:
258
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
259
-
260
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
261
- /* harmony export */ "ZP": () => (/* binding */ autobind)
262
- /* harmony export */ });
263
- /* unused harmony exports boundMethod, boundClass */
264
- /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4329);
265
-
266
-
267
- function _typeof(obj) {
268
- if (typeof Symbol === "function" && (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(Symbol.iterator) === "symbol") {
269
- _typeof = function _typeof(obj) {
270
- return (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
271
- };
272
- } else {
273
- _typeof = function _typeof(obj) {
274
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
275
- };
276
- }
277
-
278
- return _typeof(obj);
279
- }
280
- /**
281
- * Return a descriptor removing the value and returning a getter
282
- * The getter will return a .bind version of the function
283
- * and memoize the result against a symbol on the instance
284
- */
285
-
286
-
287
- function boundMethod(target, key, descriptor) {
288
- var fn = descriptor.value;
289
-
290
- if (typeof fn !== 'function') {
291
- throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(_typeof(fn)));
292
- } // In IE11 calling Object.defineProperty has a side-effect of evaluating the
293
- // getter for the property which is being replaced. This causes infinite
294
- // recursion and an "Out of stack space" error.
295
-
296
-
297
- var definingProperty = false;
298
- return {
299
- configurable: true,
300
- get: function get() {
301
- // eslint-disable-next-line no-prototype-builtins
302
- if (definingProperty || this === target.prototype || this.hasOwnProperty(key) || typeof fn !== 'function') {
303
- return fn;
304
- }
305
-
306
- var boundFn = fn.bind(this);
307
- definingProperty = true;
308
- Object.defineProperty(this, key, {
309
- configurable: true,
310
- get: function get() {
311
- return boundFn;
312
- },
313
- set: function set(value) {
314
- fn = value;
315
- delete this[key];
316
- }
317
- });
318
- definingProperty = false;
319
- return boundFn;
320
- },
321
- set: function set(value) {
322
- fn = value;
323
- }
324
- };
325
- }
326
- /**
327
- * Use boundMethod to bind all methods on the target.prototype
328
- */
329
-
330
- function boundClass(target) {
331
- // (Using reflect to get all keys including symbols)
332
- var keys; // Use Reflect if exists
333
-
334
- if (typeof Reflect !== 'undefined' && typeof Reflect.ownKeys === 'function') {
335
- keys = Reflect.ownKeys(target.prototype);
336
- } else {
337
- keys = Object.getOwnPropertyNames(target.prototype); // Use symbols if support is provided
338
-
339
- if (typeof Object.getOwnPropertySymbols === 'function') {
340
- keys = keys.concat(Object.getOwnPropertySymbols(target.prototype));
341
- }
342
- }
343
-
344
- keys.forEach(function (key) {
345
- // Ignore special case target method
346
- if (key === 'constructor') {
347
- return;
348
- }
349
-
350
- var descriptor = Object.getOwnPropertyDescriptor(target.prototype, key); // Only methods need binding
351
-
352
- if (typeof descriptor.value === 'function') {
353
- Object.defineProperty(target.prototype, key, boundMethod(target, key, descriptor));
354
- }
355
- });
356
- return target;
357
- }
358
- function autobind() {
359
- if (arguments.length === 1) {
360
- return boundClass.apply(void 0, arguments);
361
- }
362
-
363
- return boundMethod.apply(void 0, arguments);
364
- }
365
-
366
370
  /***/ }),
367
371
 
368
372
  /***/ 1711:
@@ -416,17 +420,11 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__8926__;
416
420
  function _typeof(obj) {
417
421
  "@babel/helpers - typeof";
418
422
 
419
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
420
- _typeof = function _typeof(obj) {
421
- return typeof obj;
422
- };
423
- } else {
424
- _typeof = function _typeof(obj) {
425
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
426
- };
427
- }
428
-
429
- return _typeof(obj);
423
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
424
+ return typeof obj;
425
+ } : function (obj) {
426
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
427
+ }, _typeof(obj);
430
428
  }
431
429
 
432
430
  /***/ })
@@ -543,7 +541,7 @@ function _typeof(obj) {
543
541
  /******/ var installedChunks = {
544
542
  /******/ 9733: 0,
545
543
  /******/ 6615: 0,
546
- /******/ 2210: 0
544
+ /******/ 6999: 0
547
545
  /******/ };
548
546
  /******/
549
547
  /******/ // no chunk on demand loading
@@ -593,7 +591,7 @@ function _typeof(obj) {
593
591
  /******/ // startup
594
592
  /******/ // Load entry module and return exports
595
593
  /******/ // This entry module depends on other loaded chunks and execution need to be delayed
596
- /******/ var __webpack_exports__ = __webpack_require__.O(undefined, [2210], () => (__webpack_require__(4830)))
594
+ /******/ var __webpack_exports__ = __webpack_require__.O(undefined, [6999], () => (__webpack_require__(5478)))
597
595
  /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
598
596
  /******/
599
597
  /******/ return __webpack_exports__;