@spaziodati/atoka-design-system 2.0.72-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AddableItems/AddableItems.d.ts +72 -0
- package/AddableItems/ClickableExcludableItem.d.ts +23 -0
- package/AddableItems/ClickableItemList.d.ts +32 -0
- package/AddableItems/index.d.ts +1 -0
- package/AddableItems/index.js +1046 -0
- package/AddableItems/index.js.map +1 -0
- package/Alert/Alert.d.ts +37 -0
- package/Alert/index.d.ts +1 -0
- package/Alert/index.js +319 -0
- package/Alert/index.js.map +1 -0
- package/Badge/Badge.d.ts +38 -0
- package/Badge/index.d.ts +1 -0
- package/Badge/index.js +285 -0
- package/Badge/index.js.map +1 -0
- package/Bs4V3Wrapper/Bs4V3Wrapper.d.ts +7 -0
- package/Bs4V3Wrapper/StoryWrapper.d.ts +8 -0
- package/Bs4V3Wrapper/index.d.ts +1 -0
- package/Bs4V3Wrapper/index.js +251 -0
- package/Bs4V3Wrapper/index.js.map +1 -0
- package/BubbleChart/BubbleChart.d.ts +33 -0
- package/BubbleChart/BubbleChartUI.d.ts +31 -0
- package/BubbleChart/index.d.ts +1 -0
- package/BubbleChart/index.js +3793 -0
- package/BubbleChart/index.js.map +1 -0
- package/Button/Button.d.ts +29 -0
- package/Button/Button.storiesConfig.d.ts +68 -0
- package/Button/index.d.ts +1 -0
- package/Button/index.js +323 -0
- package/Button/index.js.map +1 -0
- package/ButtonDropdown/ButtonDropdown.d.ts +23 -0
- package/ButtonDropdown/index.d.ts +2 -0
- package/ButtonDropdown/index.js +603 -0
- package/ButtonDropdown/index.js.map +1 -0
- package/CardsPage/CardsPage.d.ts +12 -0
- package/CardsPage/CardsPageActions.d.ts +2 -0
- package/CardsPage/CardsPageCards.d.ts +5 -0
- package/CardsPage/CardsPageCardsCounter.d.ts +7 -0
- package/CardsPage/CardsPageFilters.d.ts +3 -0
- package/CardsPage/CardsPageHeader.d.ts +11 -0
- package/CardsPage/CardsPageLayoutMode.d.ts +13 -0
- package/CardsPage/CardsPageSelectionActions.d.ts +17 -0
- package/CardsPage/CardsPageSelectionToggler.d.ts +8 -0
- package/CardsPage/CardsPageSorting.d.ts +15 -0
- package/CardsPage/CardsPageSubtitle.d.ts +2 -0
- package/CardsPage/CardsPageTabContent.d.ts +19 -0
- package/CardsPage/CardsPageTabSwitcher.d.ts +3 -0
- package/CardsPage/CardsPageTitle.d.ts +2 -0
- package/CardsPage/index.d.ts +2 -0
- package/CardsPage/index.js +2511 -0
- package/CardsPage/index.js.map +1 -0
- package/CursorPagination/CursorPagination.d.ts +21 -0
- package/CursorPagination/index.d.ts +1 -0
- package/CursorPagination/index.js +952 -0
- package/CursorPagination/index.js.map +1 -0
- package/DatePicker/DatePicker.d.ts +27 -0
- package/DatePicker/index.d.ts +1 -0
- package/DatePicker/index.js +452 -0
- package/DatePicker/index.js.map +1 -0
- package/DetailPage/DetailPage.d.ts +18 -0
- package/DetailPage/DetailPageBodyContainer.d.ts +2 -0
- package/DetailPage/DetailPageBodySection.d.ts +3 -0
- package/DetailPage/DetailPageHeaderContainer.d.ts +7 -0
- package/DetailPage/DetailPageHeaderUI.d.ts +12 -0
- package/DetailPage/DetailPageMenuContainer.d.ts +2 -0
- package/DetailPage/DetailPageMenuUI.d.ts +4 -0
- package/DetailPage/index.d.ts +1 -0
- package/DetailPage/index.js +2066 -0
- package/DetailPage/index.js.map +1 -0
- package/Dropdown/AtokaDropdownToggles.d.ts +11 -0
- package/Dropdown/Dropdown.d.ts +12 -0
- package/Dropdown/DropdownMenu.d.ts +7 -0
- package/Dropdown/index.d.ts +3 -0
- package/Dropdown/index.js +723 -0
- package/Dropdown/index.js.map +1 -0
- package/EditableString/EditableString.d.ts +42 -0
- package/EditableString/index.d.ts +1 -0
- package/EditableString/index.js +3321 -0
- package/EditableString/index.js.map +1 -0
- package/EllipsableContent/EllipsableContent.d.ts +18 -0
- package/EllipsableContent/index.d.ts +1 -0
- package/EllipsableContent/index.js +784 -0
- package/EllipsableContent/index.js.map +1 -0
- package/EmptyState/EmptyState.d.ts +12 -0
- package/EmptyState/index.d.ts +1 -0
- package/EmptyState/index.js +278 -0
- package/EmptyState/index.js.map +1 -0
- package/Facet/Facet.d.ts +21 -0
- package/Facet/FacetHelp.d.ts +28 -0
- package/Facet/FacetItemCount.d.ts +7 -0
- package/Facet/FacetSubtitle.d.ts +2 -0
- package/Facet/index.d.ts +1 -0
- package/Facet/index.js +914 -0
- package/Facet/index.js.map +1 -0
- package/FacetSection/FacetSection.d.ts +21 -0
- package/FacetSection/index.d.ts +1 -0
- package/FacetSection/index.js +443 -0
- package/FacetSection/index.js.map +1 -0
- package/FadeAnimation/FadeAnimation.d.ts +14 -0
- package/FadeAnimation/index.d.ts +1 -0
- package/FadeAnimation/index.js +1228 -0
- package/FadeAnimation/index.js.map +1 -0
- package/FeedbackButton/FeedbackButton.d.ts +19 -0
- package/FeedbackButton/index.d.ts +1 -0
- package/FeedbackButton/index.js +398 -0
- package/FeedbackButton/index.js.map +1 -0
- package/Form/Form.d.ts +23 -0
- package/Form/FormCheckbox.d.ts +10 -0
- package/Form/FormControl.d.ts +23 -0
- package/Form/FormControlFeedBack.d.ts +6 -0
- package/Form/FormHelp.d.ts +7 -0
- package/Form/FormLabel.d.ts +4 -0
- package/Form/FormRadio.d.ts +10 -0
- package/Form/index.d.ts +1 -0
- package/Form/index.js +450 -0
- package/Form/index.js.map +1 -0
- package/Funnel/Funnel.d.ts +54 -0
- package/Funnel/SVGDataLabel.d.ts +11 -0
- package/Funnel/index.d.ts +1 -0
- package/Funnel/index.js +3997 -0
- package/Funnel/index.js.map +1 -0
- package/GridCard/Fixtures.d.ts +3 -0
- package/GridCard/GridCard.d.ts +20 -0
- package/GridCard/GridCardContent.d.ts +2 -0
- package/GridCard/GridCardFooter.d.ts +2 -0
- package/GridCard/GridCardHeader.d.ts +14 -0
- package/GridCard/GridCardMenu.d.ts +2 -0
- package/GridCard/GridCardTags.d.ts +2 -0
- package/GridCard/GridCardTitle.d.ts +6 -0
- package/GridCard/index.d.ts +1 -0
- package/GridCard/index.js +1618 -0
- package/GridCard/index.js.map +1 -0
- package/HighlightableText/HighlightableText.d.ts +21 -0
- package/HighlightableText/index.d.ts +1 -0
- package/HighlightableText/index.js +624 -0
- package/HighlightableText/index.js.map +1 -0
- package/Histogram/Histogram.d.ts +126 -0
- package/Histogram/Types.d.ts +19 -0
- package/Histogram/index.d.ts +1 -0
- package/Histogram/index.js +2359 -0
- package/Histogram/index.js.map +1 -0
- package/InlineStringEditor/InlineStringEditor.d.ts +49 -0
- package/InlineStringEditor/index.d.ts +1 -0
- package/InlineStringEditor/index.js +1882 -0
- package/InlineStringEditor/index.js.map +1 -0
- package/InputGroup/InputGroup.d.ts +16 -0
- package/InputGroup/InputGroupText.d.ts +2 -0
- package/InputGroup/index.d.ts +1 -0
- package/InputGroup/index.js +279 -0
- package/InputGroup/index.js.map +1 -0
- package/Jumbotron/Jumbotron.d.ts +16 -0
- package/Jumbotron/index.d.ts +1 -0
- package/Jumbotron/index.js +270 -0
- package/Jumbotron/index.js.map +1 -0
- package/Map/Map.d.ts +27 -0
- package/Map/MapChoropleth.d.ts +31 -0
- package/Map/MapControl.d.ts +13 -0
- package/Map/MapLegendContent.d.ts +27 -0
- package/Map/MapPopup.d.ts +5 -0
- package/Map/MapUtils.d.ts +2 -0
- package/Map/Types.d.ts +38 -0
- package/Map/index.d.ts +2 -0
- package/Map/index.js +4810 -0
- package/Map/index.js.map +1 -0
- package/Modal/Modal.d.ts +32 -0
- package/Modal/index.d.ts +1 -0
- package/Modal/index.js +743 -0
- package/Modal/index.js.map +1 -0
- package/Navbar/Navbar.d.ts +42 -0
- package/Navbar/NavbarMobileMenuCollapse.d.ts +3 -0
- package/Navbar/NavbarMobileMenuToggle.d.ts +3 -0
- package/Navbar/NavbarNavigationMenu.d.ts +9 -0
- package/Navbar/NavbarNavigationMenuItem.d.ts +9 -0
- package/Navbar/NavbarNinjaMenu.d.ts +6 -0
- package/Navbar/NavbarNinjaMenuItem.d.ts +6 -0
- package/Navbar/NavbarNotificationMenu.d.ts +12 -0
- package/Navbar/NavbarNotificationMenuItem.d.ts +8 -0
- package/Navbar/NavbarOverlaySearch.d.ts +28 -0
- package/Navbar/NavbarOverlaySearchCard.d.ts +9 -0
- package/Navbar/NavbarOverlaySearchResults.d.ts +12 -0
- package/Navbar/NavbarUserMenu.d.ts +9 -0
- package/Navbar/NavbarUserMenuItem.d.ts +6 -0
- package/Navbar/index.d.ts +1 -0
- package/Navbar/index.js +3521 -0
- package/Navbar/index.js.map +1 -0
- package/Pagination/Pagination.d.ts +27 -0
- package/Pagination/PaginationNext.d.ts +7 -0
- package/Pagination/PaginationPrev.d.ts +7 -0
- package/Pagination/index.d.ts +1 -0
- package/Pagination/index.js +994 -0
- package/Pagination/index.js.map +1 -0
- package/PieChart/PieChart.d.ts +71 -0
- package/PieChart/index.d.ts +1 -0
- package/PieChart/index.js +1986 -0
- package/PieChart/index.js.map +1 -0
- package/PublicFooter/PublicFooter.d.ts +6 -0
- package/PublicFooter/index.d.ts +1 -0
- package/PublicFooter/index.js +454 -0
- package/PublicFooter/index.js.map +1 -0
- package/PublicNavbar/PublicNavbar.d.ts +6 -0
- package/PublicNavbar/index.d.ts +1 -0
- package/PublicNavbar/index.js +255 -0
- package/PublicNavbar/index.js.map +1 -0
- package/RecordBit/RecordBit.d.ts +14 -0
- package/RecordBit/index.d.ts +1 -0
- package/RecordBit/index.js +482 -0
- package/RecordBit/index.js.map +1 -0
- package/ResultItemCard/ResultItemCard.d.ts +19 -0
- package/ResultItemCard/ResultItemCardActions.d.ts +3 -0
- package/ResultItemCard/ResultItemCardFooter.d.ts +6 -0
- package/ResultItemCard/ResultItemCardImage.d.ts +6 -0
- package/ResultItemCard/ResultItemCardSubtitle.d.ts +6 -0
- package/ResultItemCard/ResultItemCardText.d.ts +7 -0
- package/ResultItemCard/ResultItemCardTitle.d.ts +7 -0
- package/ResultItemCard/index.d.ts +1 -0
- package/ResultItemCard/index.js +1067 -0
- package/ResultItemCard/index.js.map +1 -0
- package/SelectDropdown/SelectDropdown.d.ts +29 -0
- package/SelectDropdown/index.d.ts +1 -0
- package/SelectDropdown/index.js +1520 -0
- package/SelectDropdown/index.js.map +1 -0
- package/Spinner/Spinner.d.ts +32 -0
- package/Spinner/index.d.ts +1 -0
- package/Spinner/index.js +325 -0
- package/Spinner/index.js.map +1 -0
- package/StatisticsItemCard/StatisticsItemCard.d.ts +35 -0
- package/StatisticsItemCard/index.d.ts +1 -0
- package/StatisticsItemCard/index.js +1786 -0
- package/StatisticsItemCard/index.js.map +1 -0
- package/StatisticsItemNumeric/StatisticsItemNumeric.d.ts +18 -0
- package/StatisticsItemNumeric/index.d.ts +1 -0
- package/StatisticsItemNumeric/index.js +283 -0
- package/StatisticsItemNumeric/index.js.map +1 -0
- package/StatisticsLegend/StatisticsLegend.d.ts +35 -0
- package/StatisticsLegend/StatisticsLegendItem.d.ts +50 -0
- package/StatisticsLegend/StatisticsSVGLegend.d.ts +26 -0
- package/StatisticsLegend/helpers.d.ts +19 -0
- package/StatisticsLegend/index.d.ts +3 -0
- package/StatisticsLegend/index.js +1571 -0
- package/StatisticsLegend/index.js.map +1 -0
- package/StatisticsTooltip/StatisticsTooltip.d.ts +20 -0
- package/StatisticsTooltip/helpers.d.ts +19 -0
- package/StatisticsTooltip/index.d.ts +2 -0
- package/StatisticsTooltip/index.js +796 -0
- package/StatisticsTooltip/index.js.map +1 -0
- package/Suggester/CustomOption.d.ts +29 -0
- package/Suggester/InputValueContainer.d.ts +11 -0
- package/Suggester/Suggester.d.ts +80 -0
- package/Suggester/getRenderCustomMultiValueWithIcon.d.ts +6 -0
- package/Suggester/index.d.ts +3 -0
- package/Suggester/index.js +1126 -0
- package/Suggester/index.js.map +1 -0
- package/SunBurst/SunBurst.d.ts +61 -0
- package/SunBurst/index.d.ts +2 -0
- package/SunBurst/index.js +1170 -0
- package/SunBurst/index.js.map +1 -0
- package/TabSwitcher/TabSwitcher.d.ts +35 -0
- package/TabSwitcher/TabSwitcherChoice.d.ts +21 -0
- package/TabSwitcher/index.d.ts +1 -0
- package/TabSwitcher/index.js +1135 -0
- package/TabSwitcher/index.js.map +1 -0
- package/Title/Title.d.ts +16 -0
- package/Title/index.d.ts +1 -0
- package/Title/index.js +302 -0
- package/Title/index.js.map +1 -0
- package/ToggleButtonGroup/ToggleButton.d.ts +15 -0
- package/ToggleButtonGroup/ToggleButtonGroup.d.ts +24 -0
- package/ToggleButtonGroup/index.d.ts +1 -0
- package/ToggleButtonGroup/index.js +609 -0
- package/ToggleButtonGroup/index.js.map +1 -0
- package/Tooltip/Tooltip.d.ts +20 -0
- package/Tooltip/index.d.ts +1 -0
- package/Tooltip/index.js +291 -0
- package/Tooltip/index.js.map +1 -0
- package/Utils/CommonTypes.d.ts +29 -0
- package/Utils/Statistics.d.ts +3 -0
- package/Utils/Style.d.ts +5 -0
- package/Utils/Text.d.ts +12 -0
- package/Utils/Utils.d.ts +12 -0
- package/Utils/index.d.ts +5 -0
- package/Utils/index.js +3379 -0
- package/Utils/index.js.map +1 -0
- package/atoka-design-system-2.0.72-beta.min.css +1 -0
- package/commonFixtures.d.ts +1 -0
- package/index.d.ts +51 -0
- package/index.js +15343 -0
- package/index.js.map +1 -0
- package/package.json +157 -0
- package/styles/animations-mixin.less +28 -0
- package/styles/atoka-bootstrap-fixed-mixins.less +81 -0
- package/styles/atoka-bootstrap-variables.less +70 -0
- package/styles/atoka-bs.less +99 -0
- package/styles/atoka-namespaced-bs.less +28 -0
- package/styles/variables.less +106 -0
- package/styles/variant-mixins.less +96 -0
|
@@ -0,0 +1,603 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory(require("@fortawesome/pro-light-svg-icons/faChevronDown"), require("@fortawesome/pro-light-svg-icons/faChevronUp"), require("@fortawesome/react-fontawesome"), require("classnames"), require("react"), require("react-bootstrap/Button"));
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define("atoka-design-system", ["@fortawesome/pro-light-svg-icons/faChevronDown", "@fortawesome/pro-light-svg-icons/faChevronUp", "@fortawesome/react-fontawesome", "classnames", "react", "react-bootstrap/Button"], factory);
|
|
6
|
+
else if(typeof exports === 'object')
|
|
7
|
+
exports["atoka-design-system"] = factory(require("@fortawesome/pro-light-svg-icons/faChevronDown"), require("@fortawesome/pro-light-svg-icons/faChevronUp"), require("@fortawesome/react-fontawesome"), require("classnames"), require("react"), require("react-bootstrap/Button"));
|
|
8
|
+
else
|
|
9
|
+
root["atoka-design-system"] = factory(root["@fortawesome/pro-light-svg-icons/faChevronDown"], root["@fortawesome/pro-light-svg-icons/faChevronUp"], root["@fortawesome/react-fontawesome"], root["classnames"], root["react"], root["react-bootstrap/Button"]);
|
|
10
|
+
})(self, function(__WEBPACK_EXTERNAL_MODULE__1711__, __WEBPACK_EXTERNAL_MODULE__9153__, __WEBPACK_EXTERNAL_MODULE__5692__, __WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__, __WEBPACK_EXTERNAL_MODULE__8926__) {
|
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
|
12
|
+
/******/ "use strict";
|
|
13
|
+
/******/ var __webpack_modules__ = ({
|
|
14
|
+
|
|
15
|
+
/***/ 1710:
|
|
16
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17
|
+
|
|
18
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19
|
+
/* harmony export */ "z": () => (/* binding */ Button)
|
|
20
|
+
/* harmony export */ });
|
|
21
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8156);
|
|
22
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
23
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8310);
|
|
24
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
|
|
25
|
+
/* harmony import */ var react_bootstrap_Button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8926);
|
|
26
|
+
/* harmony import */ var react_bootstrap_Button__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_Button__WEBPACK_IMPORTED_MODULE_2__);
|
|
27
|
+
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5692);
|
|
28
|
+
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__);
|
|
29
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
30
|
+
var extendStatics = function (d, b) {
|
|
31
|
+
extendStatics = Object.setPrototypeOf ||
|
|
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]; };
|
|
34
|
+
return extendStatics(d, b);
|
|
35
|
+
};
|
|
36
|
+
return function (d, b) {
|
|
37
|
+
extendStatics(d, b);
|
|
38
|
+
function __() { this.constructor = d; }
|
|
39
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
40
|
+
};
|
|
41
|
+
})();
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
var Button = /** @class */ (function (_super) {
|
|
48
|
+
__extends(Button, _super);
|
|
49
|
+
function Button() {
|
|
50
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
51
|
+
}
|
|
52
|
+
Button.prototype.renderIcon = function () {
|
|
53
|
+
if (this.props.icon == null) {
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, { icon: this.props.icon });
|
|
57
|
+
};
|
|
58
|
+
Button.prototype.renderChildren = function () {
|
|
59
|
+
if (this.props.children == null) {
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", { className: 'btn-children' }, this.props.children);
|
|
63
|
+
};
|
|
64
|
+
Button.prototype.renderLeftSide = function () {
|
|
65
|
+
if (this.props.iconLeft == null) {
|
|
66
|
+
if (this.props.iconRight == null) {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, { icon: this.props.iconRight, className: 'invisible' });
|
|
70
|
+
}
|
|
71
|
+
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, { icon: this.props.iconLeft });
|
|
72
|
+
};
|
|
73
|
+
Button.prototype.renderRightSide = function () {
|
|
74
|
+
if (this.props.iconRight == null) {
|
|
75
|
+
if (this.props.iconLeft == null) {
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, { icon: this.props.iconLeft, className: 'invisible' });
|
|
79
|
+
}
|
|
80
|
+
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, { icon: this.props.iconRight });
|
|
81
|
+
};
|
|
82
|
+
Button.prototype.renderContent = function () {
|
|
83
|
+
if (this.props.icon != null && this.props.children == null) {
|
|
84
|
+
return this.renderIcon();
|
|
85
|
+
}
|
|
86
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { className: 'button-content-center-container' },
|
|
87
|
+
this.renderIcon(),
|
|
88
|
+
this.renderChildren()));
|
|
89
|
+
};
|
|
90
|
+
Button.prototype.render = function () {
|
|
91
|
+
var className = classnames__WEBPACK_IMPORTED_MODULE_1___default()('atoka-btn', "btn-" + this.props.size, this.props.className, {
|
|
92
|
+
'btn-icon-only': this.props.icon != null && this.props.children == null,
|
|
93
|
+
});
|
|
94
|
+
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 },
|
|
95
|
+
this.renderLeftSide(),
|
|
96
|
+
this.renderContent(),
|
|
97
|
+
this.renderRightSide()));
|
|
98
|
+
};
|
|
99
|
+
Button.displayName = 'Button';
|
|
100
|
+
Button.defaultProps = {
|
|
101
|
+
variant: 'primary',
|
|
102
|
+
size: 'md',
|
|
103
|
+
disabled: false,
|
|
104
|
+
block: false,
|
|
105
|
+
};
|
|
106
|
+
return Button;
|
|
107
|
+
}((react__WEBPACK_IMPORTED_MODULE_0___default().PureComponent)));
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
/***/ }),
|
|
112
|
+
|
|
113
|
+
/***/ 125:
|
|
114
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
115
|
+
|
|
116
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
117
|
+
/* harmony export */ "Button": () => (/* reexport safe */ _Button__WEBPACK_IMPORTED_MODULE_0__.z)
|
|
118
|
+
/* harmony export */ });
|
|
119
|
+
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1710);
|
|
120
|
+
// use the star because of this issue: https://github.com/babel/babel-loader/issues/603
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
/***/ }),
|
|
125
|
+
|
|
126
|
+
/***/ 4830:
|
|
127
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
128
|
+
|
|
129
|
+
// ESM COMPAT FLAG
|
|
130
|
+
__webpack_require__.r(__webpack_exports__);
|
|
131
|
+
|
|
132
|
+
// EXPORTS
|
|
133
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
134
|
+
"ButtonDropdown": () => (/* reexport */ ButtonDropdown)
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
// EXTERNAL MODULE: external "react"
|
|
138
|
+
var external_react_ = __webpack_require__(8156);
|
|
139
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
140
|
+
// EXTERNAL MODULE: external "classnames"
|
|
141
|
+
var external_classnames_ = __webpack_require__(8310);
|
|
142
|
+
var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
|
|
143
|
+
// EXTERNAL MODULE: ./node_modules/autobind-decorator/lib/esm/index.js
|
|
144
|
+
var esm = __webpack_require__(6627);
|
|
145
|
+
// EXTERNAL MODULE: external "@fortawesome/pro-light-svg-icons/faChevronUp"
|
|
146
|
+
var faChevronUp_ = __webpack_require__(9153);
|
|
147
|
+
// EXTERNAL MODULE: external "@fortawesome/pro-light-svg-icons/faChevronDown"
|
|
148
|
+
var faChevronDown_ = __webpack_require__(1711);
|
|
149
|
+
// EXTERNAL MODULE: ./src/components/Button/index.ts
|
|
150
|
+
var Button = __webpack_require__(125);
|
|
151
|
+
;// CONCATENATED MODULE: ./src/components/ButtonDropdown/ButtonDropdown.tsx
|
|
152
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
153
|
+
var extendStatics = function (d, b) {
|
|
154
|
+
extendStatics = Object.setPrototypeOf ||
|
|
155
|
+
({ __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]; };
|
|
157
|
+
return extendStatics(d, b);
|
|
158
|
+
};
|
|
159
|
+
return function (d, b) {
|
|
160
|
+
extendStatics(d, b);
|
|
161
|
+
function __() { this.constructor = d; }
|
|
162
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
163
|
+
};
|
|
164
|
+
})();
|
|
165
|
+
var __assign = (undefined && undefined.__assign) || function () {
|
|
166
|
+
__assign = Object.assign || function(t) {
|
|
167
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
168
|
+
s = arguments[i];
|
|
169
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
170
|
+
t[p] = s[p];
|
|
171
|
+
}
|
|
172
|
+
return t;
|
|
173
|
+
};
|
|
174
|
+
return __assign.apply(this, arguments);
|
|
175
|
+
};
|
|
176
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
177
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
178
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
179
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
180
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
181
|
+
};
|
|
182
|
+
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
183
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
var ButtonDropdown = /** @class */ (function (_super) {
|
|
193
|
+
__extends(ButtonDropdown, _super);
|
|
194
|
+
function ButtonDropdown() {
|
|
195
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
196
|
+
_this.wrapperRef = external_react_default().createRef();
|
|
197
|
+
_this.state = {
|
|
198
|
+
isButtonDropdownOpen: false,
|
|
199
|
+
};
|
|
200
|
+
return _this;
|
|
201
|
+
}
|
|
202
|
+
ButtonDropdown.prototype.componentDidMount = function () {
|
|
203
|
+
document.addEventListener('mousedown', this.handleClickOutside);
|
|
204
|
+
};
|
|
205
|
+
ButtonDropdown.prototype.componentWillUnmount = function () {
|
|
206
|
+
document.removeEventListener('mousedown', this.handleClickOutside);
|
|
207
|
+
};
|
|
208
|
+
ButtonDropdown.prototype.handleClickOutside = function (event) {
|
|
209
|
+
var _a, _b;
|
|
210
|
+
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
|
|
211
|
+
if (!((_b = (_a = this.wrapperRef) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.contains(event.target))) {
|
|
212
|
+
this.setState({ isButtonDropdownOpen: false });
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
ButtonDropdown.prototype.onToggle = function () {
|
|
216
|
+
this.setState({ isButtonDropdownOpen: !this.state.isButtonDropdownOpen });
|
|
217
|
+
};
|
|
218
|
+
ButtonDropdown.prototype.renderChildren = function () {
|
|
219
|
+
if (this.state.isButtonDropdownOpen !== true) {
|
|
220
|
+
return null;
|
|
221
|
+
}
|
|
222
|
+
return external_react_default().createElement("ul", { className: 'dropdown-content' }, this.props.children);
|
|
223
|
+
};
|
|
224
|
+
ButtonDropdown.prototype.render = function () {
|
|
225
|
+
var className = external_classnames_default()(this.props.className, 'atoka-button-dropdown', 'position-relative', "dropdown-" + this.props.size, 'dropdown-primary', {
|
|
226
|
+
'dropdown-is-open': this.state.isButtonDropdownOpen,
|
|
227
|
+
});
|
|
228
|
+
return (external_react_default().createElement("div", { className: className, ref: this.wrapperRef },
|
|
229
|
+
external_react_default().createElement(Button.Button, __assign({}, this.props, { onClick: this.onToggle, block: true, iconRight: this.state.isButtonDropdownOpen ? faChevronUp_.faChevronUp : faChevronDown_.faChevronDown }), this.props.toggleText),
|
|
230
|
+
this.renderChildren()));
|
|
231
|
+
};
|
|
232
|
+
ButtonDropdown.displayName = 'ButtonDropdown';
|
|
233
|
+
ButtonDropdown.defaultProps = Button.Button.defaultProps;
|
|
234
|
+
__decorate([
|
|
235
|
+
esm/* default */.ZP,
|
|
236
|
+
__metadata("design:type", Function),
|
|
237
|
+
__metadata("design:paramtypes", [Object]),
|
|
238
|
+
__metadata("design:returntype", void 0)
|
|
239
|
+
], ButtonDropdown.prototype, "handleClickOutside", null);
|
|
240
|
+
__decorate([
|
|
241
|
+
esm/* default */.ZP,
|
|
242
|
+
__metadata("design:type", Function),
|
|
243
|
+
__metadata("design:paramtypes", []),
|
|
244
|
+
__metadata("design:returntype", void 0)
|
|
245
|
+
], ButtonDropdown.prototype, "onToggle", null);
|
|
246
|
+
return ButtonDropdown;
|
|
247
|
+
}((external_react_default()).Component));
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
;// CONCATENATED MODULE: ./src/components/ButtonDropdown/index.ts
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
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
|
+
/***/ }),
|
|
367
|
+
|
|
368
|
+
/***/ 1711:
|
|
369
|
+
/***/ ((module) => {
|
|
370
|
+
|
|
371
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__1711__;
|
|
372
|
+
|
|
373
|
+
/***/ }),
|
|
374
|
+
|
|
375
|
+
/***/ 9153:
|
|
376
|
+
/***/ ((module) => {
|
|
377
|
+
|
|
378
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__9153__;
|
|
379
|
+
|
|
380
|
+
/***/ }),
|
|
381
|
+
|
|
382
|
+
/***/ 5692:
|
|
383
|
+
/***/ ((module) => {
|
|
384
|
+
|
|
385
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;
|
|
386
|
+
|
|
387
|
+
/***/ }),
|
|
388
|
+
|
|
389
|
+
/***/ 8310:
|
|
390
|
+
/***/ ((module) => {
|
|
391
|
+
|
|
392
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;
|
|
393
|
+
|
|
394
|
+
/***/ }),
|
|
395
|
+
|
|
396
|
+
/***/ 8156:
|
|
397
|
+
/***/ ((module) => {
|
|
398
|
+
|
|
399
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;
|
|
400
|
+
|
|
401
|
+
/***/ }),
|
|
402
|
+
|
|
403
|
+
/***/ 8926:
|
|
404
|
+
/***/ ((module) => {
|
|
405
|
+
|
|
406
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__8926__;
|
|
407
|
+
|
|
408
|
+
/***/ }),
|
|
409
|
+
|
|
410
|
+
/***/ 4329:
|
|
411
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
412
|
+
|
|
413
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
414
|
+
/* harmony export */ "Z": () => (/* binding */ _typeof)
|
|
415
|
+
/* harmony export */ });
|
|
416
|
+
function _typeof(obj) {
|
|
417
|
+
"@babel/helpers - typeof";
|
|
418
|
+
|
|
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);
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
/***/ })
|
|
433
|
+
|
|
434
|
+
/******/ });
|
|
435
|
+
/************************************************************************/
|
|
436
|
+
/******/ // The module cache
|
|
437
|
+
/******/ var __webpack_module_cache__ = {};
|
|
438
|
+
/******/
|
|
439
|
+
/******/ // The require function
|
|
440
|
+
/******/ function __webpack_require__(moduleId) {
|
|
441
|
+
/******/ // Check if module is in cache
|
|
442
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
443
|
+
/******/ if (cachedModule !== undefined) {
|
|
444
|
+
/******/ return cachedModule.exports;
|
|
445
|
+
/******/ }
|
|
446
|
+
/******/ // Create a new module (and put it into the cache)
|
|
447
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
448
|
+
/******/ // no module.id needed
|
|
449
|
+
/******/ // no module.loaded needed
|
|
450
|
+
/******/ exports: {}
|
|
451
|
+
/******/ };
|
|
452
|
+
/******/
|
|
453
|
+
/******/ // Execute the module function
|
|
454
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
455
|
+
/******/
|
|
456
|
+
/******/ // Return the exports of the module
|
|
457
|
+
/******/ return module.exports;
|
|
458
|
+
/******/ }
|
|
459
|
+
/******/
|
|
460
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
461
|
+
/******/ __webpack_require__.m = __webpack_modules__;
|
|
462
|
+
/******/
|
|
463
|
+
/************************************************************************/
|
|
464
|
+
/******/ /* webpack/runtime/chunk loaded */
|
|
465
|
+
/******/ (() => {
|
|
466
|
+
/******/ var deferred = [];
|
|
467
|
+
/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
|
|
468
|
+
/******/ if(chunkIds) {
|
|
469
|
+
/******/ priority = priority || 0;
|
|
470
|
+
/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
|
|
471
|
+
/******/ deferred[i] = [chunkIds, fn, priority];
|
|
472
|
+
/******/ return;
|
|
473
|
+
/******/ }
|
|
474
|
+
/******/ var notFulfilled = Infinity;
|
|
475
|
+
/******/ for (var i = 0; i < deferred.length; i++) {
|
|
476
|
+
/******/ var [chunkIds, fn, priority] = deferred[i];
|
|
477
|
+
/******/ var fulfilled = true;
|
|
478
|
+
/******/ for (var j = 0; j < chunkIds.length; j++) {
|
|
479
|
+
/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
|
|
480
|
+
/******/ chunkIds.splice(j--, 1);
|
|
481
|
+
/******/ } else {
|
|
482
|
+
/******/ fulfilled = false;
|
|
483
|
+
/******/ if(priority < notFulfilled) notFulfilled = priority;
|
|
484
|
+
/******/ }
|
|
485
|
+
/******/ }
|
|
486
|
+
/******/ if(fulfilled) {
|
|
487
|
+
/******/ deferred.splice(i--, 1)
|
|
488
|
+
/******/ var r = fn();
|
|
489
|
+
/******/ if (r !== undefined) result = r;
|
|
490
|
+
/******/ }
|
|
491
|
+
/******/ }
|
|
492
|
+
/******/ return result;
|
|
493
|
+
/******/ };
|
|
494
|
+
/******/ })();
|
|
495
|
+
/******/
|
|
496
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
497
|
+
/******/ (() => {
|
|
498
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
499
|
+
/******/ __webpack_require__.n = (module) => {
|
|
500
|
+
/******/ var getter = module && module.__esModule ?
|
|
501
|
+
/******/ () => (module['default']) :
|
|
502
|
+
/******/ () => (module);
|
|
503
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
504
|
+
/******/ return getter;
|
|
505
|
+
/******/ };
|
|
506
|
+
/******/ })();
|
|
507
|
+
/******/
|
|
508
|
+
/******/ /* webpack/runtime/define property getters */
|
|
509
|
+
/******/ (() => {
|
|
510
|
+
/******/ // define getter functions for harmony exports
|
|
511
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
512
|
+
/******/ for(var key in definition) {
|
|
513
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
514
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
515
|
+
/******/ }
|
|
516
|
+
/******/ }
|
|
517
|
+
/******/ };
|
|
518
|
+
/******/ })();
|
|
519
|
+
/******/
|
|
520
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
521
|
+
/******/ (() => {
|
|
522
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
523
|
+
/******/ })();
|
|
524
|
+
/******/
|
|
525
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
526
|
+
/******/ (() => {
|
|
527
|
+
/******/ // define __esModule on exports
|
|
528
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
529
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
530
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
531
|
+
/******/ }
|
|
532
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
533
|
+
/******/ };
|
|
534
|
+
/******/ })();
|
|
535
|
+
/******/
|
|
536
|
+
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
537
|
+
/******/ (() => {
|
|
538
|
+
/******/ // no baseURI
|
|
539
|
+
/******/
|
|
540
|
+
/******/ // object to store loaded and loading chunks
|
|
541
|
+
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
542
|
+
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
|
543
|
+
/******/ var installedChunks = {
|
|
544
|
+
/******/ 9733: 0,
|
|
545
|
+
/******/ 6615: 0,
|
|
546
|
+
/******/ 1981: 0
|
|
547
|
+
/******/ };
|
|
548
|
+
/******/
|
|
549
|
+
/******/ // no chunk on demand loading
|
|
550
|
+
/******/
|
|
551
|
+
/******/ // no prefetching
|
|
552
|
+
/******/
|
|
553
|
+
/******/ // no preloaded
|
|
554
|
+
/******/
|
|
555
|
+
/******/ // no HMR
|
|
556
|
+
/******/
|
|
557
|
+
/******/ // no HMR manifest
|
|
558
|
+
/******/
|
|
559
|
+
/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
|
|
560
|
+
/******/
|
|
561
|
+
/******/ // install a JSONP callback for chunk loading
|
|
562
|
+
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
|
|
563
|
+
/******/ var [chunkIds, moreModules, runtime] = data;
|
|
564
|
+
/******/ // add "moreModules" to the modules object,
|
|
565
|
+
/******/ // then flag all "chunkIds" as loaded and fire callback
|
|
566
|
+
/******/ var moduleId, chunkId, i = 0;
|
|
567
|
+
/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
|
|
568
|
+
/******/ for(moduleId in moreModules) {
|
|
569
|
+
/******/ if(__webpack_require__.o(moreModules, moduleId)) {
|
|
570
|
+
/******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
|
|
571
|
+
/******/ }
|
|
572
|
+
/******/ }
|
|
573
|
+
/******/ if(runtime) var result = runtime(__webpack_require__);
|
|
574
|
+
/******/ }
|
|
575
|
+
/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
|
|
576
|
+
/******/ for(;i < chunkIds.length; i++) {
|
|
577
|
+
/******/ chunkId = chunkIds[i];
|
|
578
|
+
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
|
|
579
|
+
/******/ installedChunks[chunkId][0]();
|
|
580
|
+
/******/ }
|
|
581
|
+
/******/ installedChunks[chunkIds[i]] = 0;
|
|
582
|
+
/******/ }
|
|
583
|
+
/******/ return __webpack_require__.O(result);
|
|
584
|
+
/******/ }
|
|
585
|
+
/******/
|
|
586
|
+
/******/ var chunkLoadingGlobal = self["webpackChunkatoka_design_system"] = self["webpackChunkatoka_design_system"] || [];
|
|
587
|
+
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
|
|
588
|
+
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
|
|
589
|
+
/******/ })();
|
|
590
|
+
/******/
|
|
591
|
+
/************************************************************************/
|
|
592
|
+
/******/
|
|
593
|
+
/******/ // startup
|
|
594
|
+
/******/ // Load entry module and return exports
|
|
595
|
+
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
596
|
+
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, [1981], () => (__webpack_require__(4830)))
|
|
597
|
+
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
|
598
|
+
/******/
|
|
599
|
+
/******/ return __webpack_exports__;
|
|
600
|
+
/******/ })()
|
|
601
|
+
;
|
|
602
|
+
});
|
|
603
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonDropdown/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,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ACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;;;;;UElDA;UACA;UACA;UACA;UACA","sources":["webpack://atoka-design-system/webpack/universalModuleDefinition","webpack://atoka-design-system/./src/components/Button/Button.tsx","webpack://atoka-design-system/./src/components/Button/index.ts","webpack://atoka-design-system/./src/components/ButtonDropdown/ButtonDropdown.tsx","webpack://atoka-design-system/./src/components/ButtonDropdown/index.ts","webpack://atoka-design-system/./node_modules/autobind-decorator/lib/esm/index.js","webpack://atoka-design-system/external umd \"@fortawesome/pro-light-svg-icons/faChevronDown\"","webpack://atoka-design-system/external umd \"@fortawesome/pro-light-svg-icons/faChevronUp\"","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/./node_modules/@babel/runtime/helpers/esm/typeof.js","webpack://atoka-design-system/webpack/bootstrap","webpack://atoka-design-system/webpack/runtime/chunk loaded","webpack://atoka-design-system/webpack/runtime/compat get default export","webpack://atoka-design-system/webpack/runtime/define property getters","webpack://atoka-design-system/webpack/runtime/hasOwnProperty shorthand","webpack://atoka-design-system/webpack/runtime/make namespace object","webpack://atoka-design-system/webpack/runtime/jsonp chunk loading","webpack://atoka-design-system/webpack/before-startup","webpack://atoka-design-system/webpack/startup","webpack://atoka-design-system/webpack/after-startup"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"@fortawesome/pro-light-svg-icons/faChevronDown\"), require(\"@fortawesome/pro-light-svg-icons/faChevronUp\"), 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/pro-light-svg-icons/faChevronDown\", \"@fortawesome/pro-light-svg-icons/faChevronUp\", \"@fortawesome/react-fontawesome\", \"classnames\", \"react\", \"react-bootstrap/Button\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"atoka-design-system\"] = factory(require(\"@fortawesome/pro-light-svg-icons/faChevronDown\"), require(\"@fortawesome/pro-light-svg-icons/faChevronUp\"), require(\"@fortawesome/react-fontawesome\"), require(\"classnames\"), require(\"react\"), require(\"react-bootstrap/Button\"));\n\telse\n\t\troot[\"atoka-design-system\"] = factory(root[\"@fortawesome/pro-light-svg-icons/faChevronDown\"], root[\"@fortawesome/pro-light-svg-icons/faChevronUp\"], root[\"@fortawesome/react-fontawesome\"], root[\"classnames\"], root[\"react\"], root[\"react-bootstrap/Button\"]);\n})(self, function(__WEBPACK_EXTERNAL_MODULE__1711__, __WEBPACK_EXTERNAL_MODULE__9153__, __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","import React from 'react';\nimport classnames from 'classnames';\nimport './ButtonDropdown.less';\nimport autobind from 'autobind-decorator';\nimport {faChevronUp} from '@fortawesome/pro-light-svg-icons/faChevronUp';\nimport {faChevronDown} from '@fortawesome/pro-light-svg-icons/faChevronDown';\nimport {Button} from '../Button';\nimport {ButtonProps} from '../Button/Button';\n\ninterface ButtonDropdownState {\n isButtonDropdownOpen: boolean;\n}\nexport interface ButtonDropdownProps extends Omit<ButtonProps, 'onClick' | 'iconRight' | 'block' | 'variant'> {\n toggleText: React.ReactNode;\n}\n\nexport class ButtonDropdown extends React.Component<ButtonDropdownProps, ButtonDropdownState> {\n static displayName: string = 'ButtonDropdown';\n static defaultProps: typeof Button.defaultProps = Button.defaultProps;\n private wrapperRef: React.RefObject<HTMLDivElement> = React.createRef<HTMLDivElement>();\n\n public state: ButtonDropdownState = {\n isButtonDropdownOpen: false,\n };\n\n public componentDidMount(): void {\n document.addEventListener('mousedown', this.handleClickOutside);\n }\n\n public componentWillUnmount(): void {\n document.removeEventListener('mousedown', this.handleClickOutside);\n }\n\n @autobind\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private handleClickOutside(event: any): void {\n // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions\n if (!this.wrapperRef?.current?.contains(event.target as Node)) {\n this.setState({isButtonDropdownOpen: false});\n }\n }\n\n @autobind\n private onToggle(): void {\n this.setState({isButtonDropdownOpen: !this.state.isButtonDropdownOpen});\n }\n\n private renderChildren(): React.ReactNode {\n if (this.state.isButtonDropdownOpen !== true) {\n return null;\n }\n\n return <ul className='dropdown-content'>{this.props.children}</ul>;\n }\n\n public render(): React.ReactNode {\n const className: string = classnames(\n this.props.className,\n 'atoka-button-dropdown',\n 'position-relative',\n `dropdown-${this.props.size}`,\n 'dropdown-primary',\n {\n 'dropdown-is-open': this.state.isButtonDropdownOpen,\n },\n );\n\n return (\n <div className={className} ref={this.wrapperRef}>\n <Button\n {...this.props}\n onClick={this.onToggle}\n block\n iconRight={this.state.isButtonDropdownOpen ? faChevronUp : faChevronDown}\n >\n {this.props.toggleText}\n </Button>\n {this.renderChildren()}\n </div>\n );\n }\n}\n","import {ButtonDropdown} from './ButtonDropdown';\n\nexport {ButtonDropdown};\n","function _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/**\n * Return a descriptor removing the value and returning a getter\n * The getter will return a .bind version of the function\n * and memoize the result against a symbol on the instance\n */\nexport function boundMethod(target, key, descriptor) {\n var fn = descriptor.value;\n\n if (typeof fn !== 'function') {\n throw new TypeError(\"@boundMethod decorator can only be applied to methods not: \".concat(_typeof(fn)));\n } // In IE11 calling Object.defineProperty has a side-effect of evaluating the\n // getter for the property which is being replaced. This causes infinite\n // recursion and an \"Out of stack space\" error.\n\n\n var definingProperty = false;\n return {\n configurable: true,\n get: function get() {\n // eslint-disable-next-line no-prototype-builtins\n if (definingProperty || this === target.prototype || this.hasOwnProperty(key) || typeof fn !== 'function') {\n return fn;\n }\n\n var boundFn = fn.bind(this);\n definingProperty = true;\n Object.defineProperty(this, key, {\n configurable: true,\n get: function get() {\n return boundFn;\n },\n set: function set(value) {\n fn = value;\n delete this[key];\n }\n });\n definingProperty = false;\n return boundFn;\n },\n set: function set(value) {\n fn = value;\n }\n };\n}\n/**\n * Use boundMethod to bind all methods on the target.prototype\n */\n\nexport function boundClass(target) {\n // (Using reflect to get all keys including symbols)\n var keys; // Use Reflect if exists\n\n if (typeof Reflect !== 'undefined' && typeof Reflect.ownKeys === 'function') {\n keys = Reflect.ownKeys(target.prototype);\n } else {\n keys = Object.getOwnPropertyNames(target.prototype); // Use symbols if support is provided\n\n if (typeof Object.getOwnPropertySymbols === 'function') {\n keys = keys.concat(Object.getOwnPropertySymbols(target.prototype));\n }\n }\n\n keys.forEach(function (key) {\n // Ignore special case target method\n if (key === 'constructor') {\n return;\n }\n\n var descriptor = Object.getOwnPropertyDescriptor(target.prototype, key); // Only methods need binding\n\n if (typeof descriptor.value === 'function') {\n Object.defineProperty(target.prototype, key, boundMethod(target, key, descriptor));\n }\n });\n return target;\n}\nexport default function autobind() {\n if (arguments.length === 1) {\n return boundClass.apply(void 0, arguments);\n }\n\n return boundMethod.apply(void 0, arguments);\n}","module.exports = __WEBPACK_EXTERNAL_MODULE__1711__;","module.exports = __WEBPACK_EXTERNAL_MODULE__9153__;","module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8926__;","export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t9733: 0,\n\t6615: 0,\n\t1981: 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, [1981], () => (__webpack_require__(4830)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["_typeof","obj","Symbol","iterator","constructor","prototype","boundMethod","target","key","descriptor","fn","value","TypeError","concat","definingProperty","configurable","get","hasOwnProperty","boundFn","bind","Object","defineProperty","set","boundClass","keys","Reflect","ownKeys","getOwnPropertyNames","getOwnPropertySymbols","forEach","getOwnPropertyDescriptor","autobind","arguments","length","apply"],"sourceRoot":""}
|