@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 @@
|
|
|
1
|
+
{"version":3,"file":"SelectDropdown/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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2G,OAAOJ,GAAzH;AACD,KAFD;AAGD;;AAED,SAAOD,OAAO,CAACC,GAAD,CAAd;AACD;;;;;;UCdD;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,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;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;;;;;UEnDA;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/Dropdown/DropdownMenu.tsx","webpack://atoka-design-system/./src/components/Dropdown/Dropdown.tsx","webpack://atoka-design-system/./src/components/Dropdown/AtokaDropdownToggles.tsx","webpack://atoka-design-system/./src/components/Dropdown/index.ts","webpack://atoka-design-system/./src/components/Form/FormLabel.tsx","webpack://atoka-design-system/./src/components/Form/FormCheckbox.tsx","webpack://atoka-design-system/./src/components/Form/FormRadio.tsx","webpack://atoka-design-system/./src/components/Form/FormHelp.tsx","webpack://atoka-design-system/./src/components/Form/Form.tsx","webpack://atoka-design-system/./src/components/Form/FormControlFeedBack.tsx","webpack://atoka-design-system/./src/components/Form/FormControl.tsx","webpack://atoka-design-system/./src/components/SelectDropdown/SelectDropdown.tsx","webpack://atoka-design-system/./src/components/SelectDropdown/index.ts","webpack://atoka-design-system/./src/components/Utils/Statistics.ts","webpack://atoka-design-system/./src/components/Utils/Text.ts","webpack://atoka-design-system/./src/components/Utils/Utils.tsx","webpack://atoka-design-system/./src/components/Utils/index.ts","webpack://atoka-design-system/./node_modules/autobind-decorator/lib/esm/index.js","webpack://atoka-design-system/external umd \"@fortawesome/pro-regular-svg-icons/faChevronDown\"","webpack://atoka-design-system/external umd \"@fortawesome/pro-regular-svg-icons/faEllipsisH\"","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/external umd \"react-bootstrap/Dropdown\"","webpack://atoka-design-system/external umd \"react-bootstrap/Form\"","webpack://atoka-design-system/external umd \"react-bootstrap/FormControl\"","webpack://atoka-design-system/external umd \"react-bootstrap/FormText\"","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-regular-svg-icons/faChevronDown\"), require(\"@fortawesome/pro-regular-svg-icons/faEllipsisH\"), require(\"@fortawesome/react-fontawesome\"), require(\"classnames\"), require(\"react\"), require(\"react-bootstrap/Button\"), require(\"react-bootstrap/Dropdown\"), require(\"react-bootstrap/Form\"), require(\"react-bootstrap/FormControl\"), require(\"react-bootstrap/FormText\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"atoka-design-system\", [\"@fortawesome/pro-regular-svg-icons/faChevronDown\", \"@fortawesome/pro-regular-svg-icons/faEllipsisH\", \"@fortawesome/react-fontawesome\", \"classnames\", \"react\", \"react-bootstrap/Button\", \"react-bootstrap/Dropdown\", \"react-bootstrap/Form\", \"react-bootstrap/FormControl\", \"react-bootstrap/FormText\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"atoka-design-system\"] = factory(require(\"@fortawesome/pro-regular-svg-icons/faChevronDown\"), require(\"@fortawesome/pro-regular-svg-icons/faEllipsisH\"), require(\"@fortawesome/react-fontawesome\"), require(\"classnames\"), require(\"react\"), require(\"react-bootstrap/Button\"), require(\"react-bootstrap/Dropdown\"), require(\"react-bootstrap/Form\"), require(\"react-bootstrap/FormControl\"), require(\"react-bootstrap/FormText\"));\n\telse\n\t\troot[\"atoka-design-system\"] = factory(root[\"@fortawesome/pro-regular-svg-icons/faChevronDown\"], root[\"@fortawesome/pro-regular-svg-icons/faEllipsisH\"], root[\"@fortawesome/react-fontawesome\"], root[\"classnames\"], root[\"react\"], root[\"react-bootstrap/Button\"], root[\"react-bootstrap/Dropdown\"], root[\"react-bootstrap/Form\"], root[\"react-bootstrap/FormControl\"], root[\"react-bootstrap/FormText\"]);\n})(self, function(__WEBPACK_EXTERNAL_MODULE__1349__, __WEBPACK_EXTERNAL_MODULE__3041__, __WEBPACK_EXTERNAL_MODULE__5692__, __WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__, __WEBPACK_EXTERNAL_MODULE__8926__, __WEBPACK_EXTERNAL_MODULE__4976__, __WEBPACK_EXTERNAL_MODULE__8721__, __WEBPACK_EXTERNAL_MODULE__1082__, __WEBPACK_EXTERNAL_MODULE__8763__) {\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 {DropdownMenuProps as BsDropdownMenuProps} from 'react-bootstrap/DropdownMenu';\nimport React from 'react';\nimport BsDropdown from 'react-bootstrap/Dropdown';\nimport classnames from 'classnames';\n\nimport './DropdownMenu.less';\n\nexport interface DropdownMenuProps extends BsDropdownMenuProps {\n size?: 'sm' | 'lg';\n}\n\nexport const DropdownMenu: React.FC<DropdownMenuProps> = React.memo(({size = 'sm', ...props}): React.ReactElement => {\n const className: string = classnames({\n [props?.className ?? '']: true,\n 'atoka-dropdown-menu': true,\n [size]: true,\n });\n return (\n <BsDropdown.Menu {...props} className={className}>\n {props.children}\n </BsDropdown.Menu>\n );\n});\n\nDropdownMenu.displayName = 'DropdownMenu';\n","import React from 'react';\nimport classnames from 'classnames';\nimport BsDropdown, {DropdownProps as BsDropdownProps} from 'react-bootstrap/Dropdown';\nimport {DropdownMenu} from './DropdownMenu';\n\nexport class Dropdown extends React.PureComponent<BsDropdownProps> {\n static displayName: string = 'DropDown';\n public static Toggle: typeof BsDropdown.Toggle = BsDropdown.Toggle;\n public static Menu: typeof DropdownMenu = DropdownMenu;\n public static Item: typeof BsDropdown.Item = BsDropdown.Item;\n public static Divider: typeof BsDropdown.Divider = BsDropdown.Divider;\n public static Header: typeof BsDropdown.Header = BsDropdown.Header;\n\n public render(): React.ReactNode {\n const className: string = classnames(this.props.className, 'atoka-dropdown');\n return (\n <BsDropdown {...this.props} className={className}>\n {this.props.children}\n </BsDropdown>\n );\n }\n}\n","import React from 'react';\nimport autobind from 'autobind-decorator';\nimport classnames from 'classnames';\nimport {faEllipsisH} from '@fortawesome/pro-regular-svg-icons/faEllipsisH';\nimport {faChevronDown} from '@fortawesome/pro-regular-svg-icons/faChevronDown';\nimport {Button} from '../Button';\n\nimport './AtokaDropdownToggles.less';\n\nexport interface AtokaDropdownToggleProps {\n children?: React.ReactNode;\n onClick: (e: React.SyntheticEvent<HTMLDivElement, MouseEvent>) => void;\n disabled?: boolean;\n}\n\nfunction withRef<P>(\n displayName: string,\n Component: React.ComponentType<AtokaDropdownToggleProps>,\n): React.ComponentType<AtokaDropdownToggleProps | P> {\n const newComponent: React.ComponentType<AtokaDropdownToggleProps | P> = React.forwardRef(\n (props: AtokaDropdownToggleProps, ref: React.Ref<HTMLDivElement>) => {\n return (\n <div ref={ref}>\n <Component disabled={props.disabled} onClick={props.onClick}>\n {props.children}\n </Component>\n </div>\n );\n },\n );\n newComponent.displayName = displayName;\n return newComponent;\n}\n\nclass AtokaSimpleDropdownToggleComponent extends React.Component<AtokaDropdownToggleProps> {\n static displayName: string = 'AtokaSimpleDropdownToggleComponent';\n\n @autobind\n private handleClick(e: React.SyntheticEvent<HTMLDivElement, MouseEvent>): void {\n e.preventDefault();\n this.props.onClick(e);\n }\n\n public render(): React.ReactNode {\n return (\n <Button\n variant='secondary'\n size='xs'\n icon={faEllipsisH}\n onClick={!this.props.disabled ? this.handleClick : undefined}\n />\n );\n }\n}\nclass AtokaCustomDropdownToggleComponent extends React.Component<AtokaDropdownToggleProps> {\n static displayName: string = 'AtokaCustomDropdownToggleComponent';\n\n @autobind\n private handleClick(e: React.SyntheticEvent<HTMLDivElement, MouseEvent>): void {\n e.preventDefault();\n this.props.onClick(e);\n }\n\n public render(): React.ReactNode {\n return (\n <div className='atoka-dropdown-toggle' onClick={!this.props.disabled ? this.handleClick : undefined}>\n {this.props.children}\n </div>\n );\n }\n}\n\nclass AtokaCustomDropdownToggleWithChevronComponent extends React.Component<AtokaDropdownToggleProps> {\n static displayName: string = 'AtokaCustomDropdownToggleWithChevronComponent ';\n\n @autobind\n private handleClick(e: React.SyntheticEvent<HTMLDivElement, MouseEvent>): void {\n e.preventDefault();\n this.props.onClick(e);\n }\n\n public render(): React.ReactNode {\n let className = classnames({\n 'atoka-dropdown-toggle': true,\n 'disabled': this.props.disabled,\n });\n\n return (\n <div className={className} onClick={!this.props.disabled ? this.handleClick : undefined}>\n {this.props.children}\n <div className='chevron-container'>\n <Button variant='tertiary' size='md' icon={faChevronDown} />\n </div>\n </div>\n );\n }\n}\n\nconst AtokaSimpleDropdownToggle: React.ComponentType<AtokaDropdownToggleProps> = withRef(\n 'AtokaSimpleDropdownToggle',\n AtokaSimpleDropdownToggleComponent,\n);\nconst AtokaCustomDropdownToggle: React.ComponentType<AtokaDropdownToggleProps> = withRef(\n 'AtokaCustomDropdownToggle',\n AtokaCustomDropdownToggleComponent,\n);\nconst AtokaCustomDropdownToggleWithChevron: React.ComponentType<AtokaDropdownToggleProps> = withRef(\n 'AtokaCustomDropdownToggleWithChevron',\n AtokaCustomDropdownToggleWithChevronComponent,\n);\n\nexport {AtokaSimpleDropdownToggle, AtokaCustomDropdownToggleWithChevron, AtokaCustomDropdownToggle};\n","export {Dropdown} from './Dropdown';\nexport {DropdownMenu} from './DropdownMenu';\nexport {\n AtokaSimpleDropdownToggle,\n AtokaCustomDropdownToggle,\n AtokaCustomDropdownToggleWithChevron,\n} from './AtokaDropdownToggles';\n","import React from 'react';\nimport classnames from 'classnames';\nimport BsForm from 'react-bootstrap/Form';\nimport {FormLabelProps} from 'react-bootstrap/FormLabel';\n\nimport './FormLabel.less';\n\nexport const FormLabel: React.FC<FormLabelProps> = React.memo((props): React.ReactElement => {\n const className: string = classnames(props?.className, 'atoka-form-label');\n return <BsForm.Label className={className}>{props.children}</BsForm.Label>;\n});\n\nFormLabel.displayName = 'FormLabel';\n","import React from 'react';\nimport classnames from 'classnames';\nimport BsForm from 'react-bootstrap/Form';\nimport './FormCheckbox.less';\n\nimport {FormCheckProps as BsFormCheckProps} from 'react-bootstrap/FormCheck';\n\nexport interface FormCheckboxProps extends BsFormCheckProps {\n name?: string;\n value?: string;\n onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;\n checked?: boolean;\n}\n\nexport const FormCheckbox: React.FC<FormCheckboxProps> = (props): React.ReactElement => {\n const className: string = classnames('atoka-form-checkbox', props?.className);\n return <BsForm.Check type='checkbox' {...props} custom className={className} label={props.label ?? ''} />;\n};\n\nFormCheckbox.displayName = 'FormCheckbox';\n","import React from 'react';\nimport classnames from 'classnames';\nimport BsForm from 'react-bootstrap/Form';\nimport './FormRadio.less';\n\nimport {FormCheckProps as BsFormCheckProps} from 'react-bootstrap/FormCheck';\n\nexport interface FormRadioProps extends BsFormCheckProps {\n name?: string;\n value?: string;\n onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;\n checked?: boolean;\n}\n\nexport const FormRadio: React.FC<FormRadioProps> = (props): React.ReactElement => {\n const className: string = classnames(props?.className, 'atoka-form-radio');\n return <BsForm.Check type='radio' {...props} custom className={className} label={props.label ?? ''} />;\n};\n\nFormRadio.displayName = 'FormRadio';\n","import BsFormText, {FormTextProps as BsFormTextProps} from 'react-bootstrap/FormText';\nimport React from 'react';\nimport classnames from 'classnames';\nimport './FormHelp.less';\n\nexport interface FormHelpProps extends BsFormTextProps {\n show?: boolean;\n}\n\nexport const FormHelp: React.FC<FormHelpProps> = React.memo(({children, ...props}): React.ReactElement => {\n const className: string = classnames('d-block', props?.className);\n return (\n <BsFormText bsPrefix='atoka-form-help' className={className}>\n {children}\n </BsFormText>\n );\n});\n\nFormHelp.displayName = 'FormHelp';\n","import React from 'react';\nimport classnames from 'classnames';\nimport BsForm, {FormProps as BsFormProps} from 'react-bootstrap/Form';\n\nimport './FormLabel.less';\nimport {FormLabel} from './FormLabel';\nimport {FormControl} from './FormControl';\nimport {FormCheckbox} from './FormCheckbox';\nimport {FormRadio} from './FormRadio';\nimport {FormHelp} from './FormHelp';\n\nexport interface FormProps extends BsFormProps {\n classNames?: string;\n}\n\ntype FormType<P> = React.FC<P> & {\n Control: typeof FormControl;\n Checkbox: typeof FormCheckbox;\n Radio: typeof FormRadio;\n File: typeof BsForm.File;\n Switch: typeof BsForm.Switch;\n Label: typeof FormLabel;\n Help: typeof FormHelp;\n Group: typeof BsForm.Group;\n};\n\nconst Form: FormType<FormProps> = (props): React.ReactElement => {\n const className: string = classnames(props?.className, 'atoka-form');\n return (\n <BsForm {...props} className={className}>\n {props.children}\n </BsForm>\n );\n};\n\nForm.displayName = 'Form';\n\nForm.Control = FormControl;\nForm.Label = FormLabel;\nForm.Checkbox = FormCheckbox;\nForm.Radio = FormRadio;\nForm.File = BsForm.File;\nForm.Switch = BsForm.Switch;\nForm.Help = FormHelp;\nForm.Group = BsForm.Group;\n\nexport {Form};\n","import {FeedbackProps as BsFeedbackProps} from 'react-bootstrap/Feedback';\nimport React from 'react';\nimport classnames from 'classnames';\nimport BsFormControl from 'react-bootstrap/FormControl';\n\nexport interface FeedBackProps extends BsFeedbackProps {\n show?: boolean;\n}\n\nexport const FormControlFeedBack: React.FC<FeedBackProps> = React.memo(\n ({show = true, ...props}): React.ReactElement => {\n const className: string = classnames(props?.className, 'atoka-form-control-feedback', {\n 'd-block': show,\n });\n return (\n <BsFormControl.Feedback type={props.type} className={className}>\n {props.children}\n </BsFormControl.Feedback>\n );\n },\n);\n\nFormControlFeedBack.displayName = ' FormControlFeedBack';\n","import React, {PropsWithoutRef} from 'react';\nimport classnames from 'classnames';\nimport BsFormControl, {FormControlProps as BsFormControlProps} from 'react-bootstrap/FormControl';\nimport {FormControlFeedBack} from './FormControlFeedBack';\nimport './FormControl.less';\n\nexport interface FormControlProps extends React.PropsWithChildren<Omit<BsFormControlProps, 'size'>> {\n rows?: string;\n cols?: string;\n placeholder?: string;\n size?: 'sm' | 'md' | 'lg';\n withShadow?: boolean;\n defaultValue?: string;\n onKeyPress?: React.KeyboardEventHandler<HTMLInputElement>;\n onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;\n}\n// when updating nivo, change me, I'm all strange because of this library! (the commit creating this comment might be of help)\ntype NivoPleasingForwardRefComponent<T, P> = (props: P & React.RefAttributes<T>) => React.ReactElement | null;\n\ntype FormControlWithForwardedRef = NivoPleasingForwardRefComponent<\n HTMLInputElement,\n PropsWithoutRef<FormControlProps>\n> & {displayName?: string};\n\nconst FormControlComponent: FormControlWithForwardedRef = React.forwardRef<HTMLInputElement, FormControlProps>(\n ({size = 'md', ...props}: FormControlProps, ref?: React.Ref<HTMLInputElement>) => {\n const className: string = classnames('atoka-form-control', props?.className, {\n 'atoka-shadow': props.withShadow,\n 'disabled': props.disabled,\n });\n\n return (\n <BsFormControl\n as={props.as}\n rows={props.rows}\n cols={props.cols}\n placeholder={props.placeholder}\n className={className}\n disabled={props.disabled}\n readOnly={props.readOnly}\n value={props.value}\n onChange={props.onChange}\n onKeyPress={props.onKeyPress}\n onKeyDown={props.onKeyDown}\n defaultValue={props.defaultValue}\n size={size === 'md' ? undefined : size}\n type={props.type}\n id={props.id}\n isValid={props.isValid}\n isInvalid={props.isInvalid}\n ref={ref}\n autoComplete='off'\n >\n {props.children}\n </BsFormControl>\n );\n },\n);\n\nFormControlComponent.displayName = 'FormControlComponent';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst FormControl: typeof FormControlComponent & {FeedBack: typeof FormControlFeedBack} = FormControlComponent as any;\n\nFormControl.FeedBack = FormControlFeedBack;\n\nFormControl.displayName = 'FormControl';\n\nexport {FormControl};\n","import autobind from 'autobind-decorator';\nimport React from 'react';\nimport BsDropdown from 'react-bootstrap/Dropdown';\nimport classnames from 'classnames';\n\nimport {AtokaCustomDropdownToggleWithChevron, Dropdown} from '../Dropdown';\n\nimport './SelectDropdown.less';\nimport {OptionData, PropsWithClassName} from '../Utils';\n\nexport interface SelectDropdownProps extends PropsWithClassName {\n menuClassName?: string;\n size?: 'md' | 'sm' | 'lg';\n placeholder?: OptionData['label'];\n selected: OptionData['value'];\n options: OptionData[];\n disabled?: boolean;\n isInvalid?: boolean;\n onSelect: (value: OptionData['value']) => void;\n onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;\n renderValue?: (option: OptionData) => React.ReactNode;\n renderSelectedValue?: (option: OptionData) => React.ReactNode;\n}\n/**\n * ### Overview\n *\n * The `SelectDropdown` allows users to either filter or sort items in a list according to specific parameters.\n */\nexport class SelectDropdown extends React.PureComponent<SelectDropdownProps> {\n static displayName: string = 'SelectDropdown';\n public static defaultProps: Partial<SelectDropdownProps> = {\n size: 'md',\n placeholder: '--',\n };\n\n private renderOptions(): React.ReactNode {\n return this.props.options.map(this.renderItem);\n }\n\n @autobind\n private renderItem(option: OptionData): React.ReactNode {\n const value: string = `${option.value}`;\n\n if (option.isDivider) {\n return <Dropdown.Divider key={value} />;\n }\n\n return (\n <Dropdown.Item key={value} disabled={option.disabled} eventKey={value}>\n {this.props.renderValue?.(option) ?? option.label}\n </Dropdown.Item>\n );\n }\n\n private renderSelectedValue(): React.ReactNode {\n const placeholder: React.ReactNode = <span className='placeholder'>{this.props.placeholder}</span>;\n\n if (this.props.selected == null) {\n return placeholder;\n }\n\n const selection = this.props.options.find((option) => option.value === this.props.selected);\n\n if (selection == null) {\n return placeholder;\n }\n\n return this.props.renderSelectedValue?.(selection) ?? selection.label;\n }\n\n public render(): React.ReactNode {\n const classNames: string = classnames('atoka-select-dropdown', this.props.className, this.props.size, {\n 'is-invalid': this.props.isInvalid,\n }),\n menuClassNames: string = classnames(\n 'atoka-select-dropdown-menu',\n this.props.size,\n this.props.menuClassName,\n );\n\n return (\n <Dropdown onSelect={this.props.onSelect} className={classNames}>\n <Dropdown.Toggle disabled={this.props.disabled} as={AtokaCustomDropdownToggleWithChevron}>\n <span className='dropdown-toggle-text-container'>{this.renderSelectedValue()}</span>\n </Dropdown.Toggle>\n <BsDropdown.Menu className={menuClassNames} flip={false}>\n {this.renderOptions()}\n </BsDropdown.Menu>\n </Dropdown>\n );\n }\n}\n","export * from './SelectDropdown';\n","import {clone} from '../Utils/Utils';\nimport {sortObjDesc} from './Utils';\n\nexport function createDataWithOtherSlice<T extends Record<string, unknown>>(\n data: T[],\n otherId?: string,\n otherLabel?: string,\n maxSlicesNumber: number = 0,\n total?: number,\n dataValueKey: string = 'value',\n): T[] {\n let otherValue = 0,\n newOtherId: string = otherId ?? 'other',\n // We know it is defined but Typescript does not get it.\n newmaxSlicesNumber: number = maxSlicesNumber ?? 0,\n newData: T[] = [],\n maxToMinData = data?.sort(sortObjDesc(dataValueKey));\n\n maxToMinData?.forEach((node: T, i: number) => {\n if (i < newmaxSlicesNumber && node.id !== otherId) {\n newData.push(createCleanTree<T>(node));\n } else {\n let nodeValue = Number(node?.value) ?? 0;\n otherValue += nodeValue;\n }\n });\n\n let otherNode = {};\n otherNode['id'] = newOtherId;\n otherNode['value'] = parseFloat(otherValue.toFixed(2));\n otherNode['initialValue'] = parseFloat(otherValue.toFixed(2));\n otherNode['label'] = otherLabel ?? newOtherId ?? '';\n\n if (data?.[0]?.percentage != null && total != null) {\n otherNode['percentage'] = (otherValue / total) * 100;\n }\n if (maxSlicesNumber !== Infinity || otherValue !== 0) {\n newData.push(otherNode as T);\n }\n\n return newData;\n}\n\nexport function createCleanTree<A extends Record<string, unknown>>(node: A): A {\n if (node.children == null) {\n return node;\n }\n let newNode = clone(node);\n removeValueIfChildren(newNode);\n return newNode;\n}\n// eslint-disable-next-line @typescript-eslint/ban-types\nfunction removeValueIfChildren<B extends object>(node: B): void {\n let children = (node?.['children'] ?? []) as B[];\n node['initialValue'] = node['value'];\n if (children.length > 0) {\n delete node['value'];\n }\n for (let child of children) {\n removeValueIfChildren(child);\n }\n}\n\nexport function normalizePercentage(value: number): string {\n return `${parseInt(value?.toFixed?.(0), 10)}%`;\n}\n","import {LabelFormatter} from '@nivo/bar';\nimport {DataPoint, Value} from './CommonTypes';\n\nexport function isStringEmpty(s: string | undefined | null): boolean {\n if (s == null) {\n return true;\n }\n\n return s.match(/^\\s*$/) !== null;\n}\n\nexport function slugify(text: string): string {\n const a = 'àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;',\n b = 'aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------',\n p = new RegExp(a.split('').join('|'), 'g');\n\n return text\n .toString()\n .toLowerCase()\n .replace(/\\s+/g, '-') // Replace spaces with -\n .replace(p, (c) => b.charAt(a.indexOf(c))) // Replace special characters\n .replace(/&/g, '-and-') // Replace & with 'and'\n .replace(/[^\\w-]+/g, '') // Remove all non-word characters\n .replace(/--+/g, '-') // Replace multiple - with single -\n .replace(/^-+/, '') // Trim - from start of text\n .replace(/-+$/, ''); // Trim - from end of text\n}\n\nexport function estimateWordSize(wordLength: number, letterPixels: number, constant: number): number {\n return wordLength * letterPixels + constant;\n}\n\nexport function ellipse(input: string | null, length: number): string {\n if (input == null) {\n return '';\n }\n\n return input.length > length ? `${input.substr(0, length - 1)}…` : input;\n}\n\nexport function matchAndFormatRangeLabel(formatter: LabelFormatter | undefined): (label: string) => string {\n return (label: string) => {\n const match = /^([\\d*]+)-([\\d*]+)$/.exec(label);\n if (match == null) {\n return label;\n }\n\n return formatRange(\n {\n from: match[1],\n to: match[2],\n },\n formatter ?? ((v: string) => v),\n );\n };\n}\n\nexport function formatRange(item: Pick<DataPoint, 'from' | 'to'>, formatter: LabelFormatter): string {\n const to = item.to === '*' ? '*' : formatter(parseInt(item.to ?? '0', 10)),\n from = formatter(parseInt(item.from ?? '0', 10));\n\n if (from === to) {\n return `${from}`;\n }\n\n return `${from} - ${to}`;\n}\n\nexport function ellipseAndFormat(\n formatter: LabelFormatter | undefined,\n maxLabelLength: number,\n): (value: Value) => string {\n return (value: Value) => {\n const strValue = value.toString();\n\n if (formatter == null) {\n return ellipse(strValue, maxLabelLength);\n }\n\n return ellipse(`${formatter(strValue)}`, maxLabelLength);\n };\n}\n\nexport function escapeRegExp(input: string): string {\n // eslint-disable-next-line\n return input.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g, '\\\\$&');\n}\n\nexport function isMatching(text0: string, text1: string): boolean {\n if (text0 == null || text1 == null) {\n return false;\n }\n text0 = text0.toLowerCase();\n text1 = text1.toLowerCase();\n\n if (text1.match(' ') === null) {\n return text0.match(escapeRegExp(text1)) !== null;\n }\n\n let splitNeedles = text1\n .split(' ')\n .filter((s: string) => !isStringEmpty(s))\n .sort((a: string, b: string) => b.length - a.length);\n\n for (let needle of splitNeedles) {\n if (text0 === needle) {\n return true;\n }\n }\n\n return false;\n}\n\nexport function splitTextInParts(needles: string, text?: string): string[] {\n if (text == null) {\n return [];\n }\n\n if (needles.match(' ') === null) {\n let re = new RegExp('(' + escapeRegExp(needles) + ')', 'gi');\n\n return text.split(re);\n }\n\n let splitNeedles = needles\n .split(' ')\n .filter((s: string) => !isStringEmpty(s))\n .sort((a: string, b: string) => b.length - a.length),\n ret = [text];\n\n for (let needle of splitNeedles) {\n let re = new RegExp('(' + needle + ')', 'gi');\n for (let index = 0; index < ret.length; index++) {\n let currentText = ret[index];\n\n if (isMatching(currentText, escapeRegExp(needles))) {\n continue;\n }\n\n let newParts = currentText.split(re).filter((s: string) => s !== '');\n ret.splice(index, 1, ...newParts);\n }\n }\n\n return ret;\n}\n","import {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport React from 'react';\nimport {Form} from '../Form/Form';\n\nexport function findChildrenByComponent(\n children: React.ReactNode,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n component: React.ComponentClass | React.FunctionComponent | React.ForwardRefExoticComponent<any>,\n): React.ReactNode[] {\n let ret: React.ReactNode[] = [];\n React.Children.forEach(children, (element: React.ReactElement) => {\n if (element?.type === component) {\n ret.push(element);\n }\n });\n\n return ret;\n}\n\nexport function findChildByComponent(\n children: React.ReactNode,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n component: React.ComponentClass | React.FunctionComponent | React.ForwardRefExoticComponent<any>,\n): React.ReactNode | null {\n return findChildrenByComponent(children, component)?.[0] ?? null;\n}\n\nexport function hasChildIconOrCheckboxComponent(children: React.ReactNode): boolean {\n let ret = false;\n React.Children.forEach(children, (element: React.ReactElement) => {\n if (\n element?.type != null &&\n (element?.type === FontAwesomeIcon || element?.type === 'i' || element?.type === Form.Checkbox)\n ) {\n ret = true;\n return;\n }\n });\n\n return ret;\n}\n\nexport function scrollToTop(): void {\n window.scrollTo(0, 0);\n}\n\nexport function zip<T>(arr1: T[], arr2: T[]): T[] {\n const ret: T[] = [];\n let i: number = 0;\n\n while (arr1[i]) {\n ret.push(arr1[i]);\n ret.push(arr2[i++]);\n }\n\n return ret;\n}\n\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function sortObjDesc<T extends object>(accessor: keyof T): (a: T, b: T) => number {\n return function (a: T, b: T): number {\n let leftVal = 0,\n rightVal = 0;\n if (a?.[accessor] != null) {\n leftVal = a?.[accessor] as unknown as number;\n }\n if (b?.[accessor] != null) {\n rightVal = b?.[accessor] as unknown as number;\n }\n return leftVal > rightVal ? -1 : 1;\n };\n}\n\nexport function clone<T>(ob: T): T {\n return JSON.parse(JSON.stringify(ob));\n}\n\nexport type Debouncer = (f: () => void) => void;\n\nexport function getDebouncer(delay: number = 1): Debouncer {\n let debounceTimeout: number | null = null;\n return function debounce(f: () => void): void {\n if (debounceTimeout !== null) {\n clearTimeout(debounceTimeout);\n }\n debounceTimeout = window.setTimeout(f, delay);\n };\n}\n\nfunction isObject<T>(obj: T): boolean {\n return typeof obj === 'object' && obj != null;\n}\n\nexport function deepEqual<T>(obj1: T, obj2: T): boolean {\n if (obj1 === obj2) {\n return true;\n }\n\n if (isObject(obj1) && isObject(obj2)) {\n if (Object.keys(obj1).length !== Object.keys(obj2).length) {\n return false;\n }\n\n for (let prop in obj1) {\n if (!deepEqual(obj1[prop], obj2[prop])) {\n return false;\n }\n }\n return true;\n }\n\n return false;\n}\n\nfunction componentToHex(c: number): string {\n if (isNaN(c)) {\n throw Error('The color has not been written correctly');\n }\n const hex = c.toString(16).toUpperCase();\n return hex.length === 1 ? '0' + hex : hex;\n}\n\nfunction cleanSingleColor(c: string): string {\n return c.replace(/\"|'/g, '').trim();\n}\n\nexport function rgbToHex(rgb: string): string {\n if (rgb.includes('rgba')) {\n throw Error('not implemented');\n }\n const [r = 0, g = 0, b = 0] = rgb\n .replace('rgb', '')\n .replace(/\\(|\\)/gi, '')\n .split(',')\n .map((c: string) => parseInt(cleanSingleColor(c), 10));\n\n return '#' + componentToHex(r) + componentToHex(g) + componentToHex(b);\n}\n","export {DataPoint, BasePieItemData, PropsWithClassName, OptionData} from './CommonTypes';\nexport {createDataWithOtherSlice, normalizePercentage} from './Statistics';\nexport {deepEqual, sortObjDesc} from './Utils';\nexport * from './Text';\nexport * from './Style';\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__1349__;","module.exports = __WEBPACK_EXTERNAL_MODULE__3041__;","module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8926__;","module.exports = __WEBPACK_EXTERNAL_MODULE__4976__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8721__;","module.exports = __WEBPACK_EXTERNAL_MODULE__1082__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8763__;","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\t6740: 0,\n\t6615: 0,\n\t8621: 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__(9450)))\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":""}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PropsWithClassName } from '../Utils';
|
|
3
|
+
import './Spinner.less';
|
|
4
|
+
export declare enum SpinnerSize {
|
|
5
|
+
mini = 0,
|
|
6
|
+
small = 1,
|
|
7
|
+
big = 2,
|
|
8
|
+
modal = 3
|
|
9
|
+
}
|
|
10
|
+
export interface SpinnerProps extends PropsWithClassName {
|
|
11
|
+
size?: SpinnerSize;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* ### Overview
|
|
15
|
+
*
|
|
16
|
+
* We can find two different spinners in the Atoka interface, small and big. The **small** one is used to show that a specific section inside the page is loading. The **big** spinner on the other hand shows when the whole page is loading.
|
|
17
|
+
*
|
|
18
|
+
* ### Best practice
|
|
19
|
+
*
|
|
20
|
+
* Use the spinner if the waiting time is between 0.1 and 1 second. After one second, the user gets the impression that the app is slow: in that case, use a progress indicator instead.
|
|
21
|
+
**/
|
|
22
|
+
export declare class Spinner extends React.Component<SpinnerProps> {
|
|
23
|
+
static displayName: string;
|
|
24
|
+
static defaultProps: SpinnerProps;
|
|
25
|
+
private renderOnlyDotsSpinner;
|
|
26
|
+
private renderSmall;
|
|
27
|
+
private renderMini;
|
|
28
|
+
private renderLeaf;
|
|
29
|
+
private renderLetter;
|
|
30
|
+
private renderBig;
|
|
31
|
+
render(): React.ReactNode;
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Spinner';
|
package/Spinner/index.js
ADDED
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory(require("classnames"), require("react"));
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define("atoka-design-system", ["classnames", "react"], factory);
|
|
6
|
+
else if(typeof exports === 'object')
|
|
7
|
+
exports["atoka-design-system"] = factory(require("classnames"), require("react"));
|
|
8
|
+
else
|
|
9
|
+
root["atoka-design-system"] = factory(root["classnames"], root["react"]);
|
|
10
|
+
})(self, function(__WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__) {
|
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
|
12
|
+
/******/ "use strict";
|
|
13
|
+
/******/ var __webpack_modules__ = ({
|
|
14
|
+
|
|
15
|
+
/***/ 4482:
|
|
16
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17
|
+
|
|
18
|
+
// ESM COMPAT FLAG
|
|
19
|
+
__webpack_require__.r(__webpack_exports__);
|
|
20
|
+
|
|
21
|
+
// EXPORTS
|
|
22
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
23
|
+
"Spinner": () => (/* reexport */ Spinner),
|
|
24
|
+
"SpinnerSize": () => (/* reexport */ SpinnerSize)
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
// EXTERNAL MODULE: external "classnames"
|
|
28
|
+
var external_classnames_ = __webpack_require__(8310);
|
|
29
|
+
var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
|
|
30
|
+
// EXTERNAL MODULE: external "react"
|
|
31
|
+
var external_react_ = __webpack_require__(8156);
|
|
32
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
33
|
+
;// CONCATENATED MODULE: ./src/components/Spinner/Spinner.tsx
|
|
34
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
35
|
+
var extendStatics = function (d, b) {
|
|
36
|
+
extendStatics = Object.setPrototypeOf ||
|
|
37
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
38
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
39
|
+
return extendStatics(d, b);
|
|
40
|
+
};
|
|
41
|
+
return function (d, b) {
|
|
42
|
+
extendStatics(d, b);
|
|
43
|
+
function __() { this.constructor = d; }
|
|
44
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
45
|
+
};
|
|
46
|
+
})();
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
var SpinnerSize;
|
|
51
|
+
(function (SpinnerSize) {
|
|
52
|
+
SpinnerSize[SpinnerSize["mini"] = 0] = "mini";
|
|
53
|
+
SpinnerSize[SpinnerSize["small"] = 1] = "small";
|
|
54
|
+
SpinnerSize[SpinnerSize["big"] = 2] = "big";
|
|
55
|
+
SpinnerSize[SpinnerSize["modal"] = 3] = "modal";
|
|
56
|
+
})(SpinnerSize || (SpinnerSize = {}));
|
|
57
|
+
/**
|
|
58
|
+
* ### Overview
|
|
59
|
+
*
|
|
60
|
+
* We can find two different spinners in the Atoka interface, small and big. The **small** one is used to show that a specific section inside the page is loading. The **big** spinner on the other hand shows when the whole page is loading.
|
|
61
|
+
*
|
|
62
|
+
* ### Best practice
|
|
63
|
+
*
|
|
64
|
+
* Use the spinner if the waiting time is between 0.1 and 1 second. After one second, the user gets the impression that the app is slow: in that case, use a progress indicator instead.
|
|
65
|
+
**/
|
|
66
|
+
var Spinner = /** @class */ (function (_super) {
|
|
67
|
+
__extends(Spinner, _super);
|
|
68
|
+
function Spinner() {
|
|
69
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
70
|
+
}
|
|
71
|
+
Spinner.prototype.renderOnlyDotsSpinner = function (size) {
|
|
72
|
+
var className = 'atoka-spinner spinner-' + size + ' ' + this.props.className;
|
|
73
|
+
return (external_react_default().createElement("div", { className: className },
|
|
74
|
+
external_react_default().createElement("div", { className: 'spinner-dot1' },
|
|
75
|
+
external_react_default().createElement("div", { className: 'spinner-leaf' })),
|
|
76
|
+
external_react_default().createElement("div", { className: 'spinner-dot2' },
|
|
77
|
+
external_react_default().createElement("div", { className: 'spinner-leaf' })),
|
|
78
|
+
external_react_default().createElement("div", { className: 'spinner-dot3' },
|
|
79
|
+
external_react_default().createElement("div", { className: 'spinner-leaf' }))));
|
|
80
|
+
};
|
|
81
|
+
Spinner.prototype.renderSmall = function () {
|
|
82
|
+
return this.renderOnlyDotsSpinner('small');
|
|
83
|
+
};
|
|
84
|
+
Spinner.prototype.renderMini = function () {
|
|
85
|
+
return this.renderOnlyDotsSpinner('mini');
|
|
86
|
+
};
|
|
87
|
+
Spinner.prototype.renderLeaf = function () {
|
|
88
|
+
return (external_react_default().createElement("svg", { viewBox: '0 0 204.01 190.64', version: '1.1', xmlns: 'http://www.w3.org/2000/svg' },
|
|
89
|
+
external_react_default().createElement("g", { id: 'leaf' },
|
|
90
|
+
external_react_default().createElement("path", { d: 'M80.88,7.62a26,26,0,0,0-36.79,36.8,25.85,25.85,0,0,0,13.4,7.14V83.39c1.19,0,2.4-.08,3.62-.08,2.16,0,4.28.08,6.38.23v-32A26,26,0,0,0,80.88,7.62ZM73.81,37.35a16,16,0,1,1,0-22.66,15.92,15.92,0,0,1,0,22.66Z' }))));
|
|
91
|
+
};
|
|
92
|
+
Spinner.prototype.renderLetter = function () {
|
|
93
|
+
return (external_react_default().createElement("svg", { viewBox: '0 0 204.01 190.64', version: '1.1', xmlns: 'http://www.w3.org/2000/svg' },
|
|
94
|
+
external_react_default().createElement("g", { id: 'logo-vector' },
|
|
95
|
+
external_react_default().createElement("path", { d: 'M110.77,180.67V140.16a50.47,50.47,0,1,0-22,41.71L93.12,187a10,10,0,0,0,17.65-6.34Zm-81-40.51a30.5,30.5,0,1,1,30.5,30.5,30.49,30.49,0,0,1-30.5-30.5Z' }))));
|
|
96
|
+
};
|
|
97
|
+
Spinner.prototype.renderBig = function () {
|
|
98
|
+
var spinnerClassName = external_classnames_default()(this.props.className, {
|
|
99
|
+
'atoka-spinner': true,
|
|
100
|
+
'spinner-big': this.props.size === SpinnerSize.big,
|
|
101
|
+
'spinner-medium': this.props.size === SpinnerSize.modal,
|
|
102
|
+
}), containerClassName = external_classnames_default()({
|
|
103
|
+
'container-fluid spinner-modal': this.props.size === SpinnerSize.modal,
|
|
104
|
+
});
|
|
105
|
+
return (external_react_default().createElement("div", { className: containerClassName },
|
|
106
|
+
external_react_default().createElement("div", { className: spinnerClassName },
|
|
107
|
+
external_react_default().createElement("div", { className: 'spinner-dot1' },
|
|
108
|
+
external_react_default().createElement("div", { className: 'spinner-leaf' }, this.renderLeaf())),
|
|
109
|
+
external_react_default().createElement("div", { className: 'spinner-dot2' },
|
|
110
|
+
external_react_default().createElement("div", { className: 'spinner-leaf' }, this.renderLeaf())),
|
|
111
|
+
external_react_default().createElement("div", { className: 'spinner-dot3' },
|
|
112
|
+
external_react_default().createElement("div", { className: 'spinner-leaf' }, this.renderLeaf())),
|
|
113
|
+
external_react_default().createElement("span", { className: 'spinner-letter' }, this.renderLetter()))));
|
|
114
|
+
};
|
|
115
|
+
Spinner.prototype.render = function () {
|
|
116
|
+
switch (this.props.size) {
|
|
117
|
+
case SpinnerSize.mini:
|
|
118
|
+
return this.renderMini();
|
|
119
|
+
case SpinnerSize.small:
|
|
120
|
+
return this.renderSmall();
|
|
121
|
+
case SpinnerSize.big:
|
|
122
|
+
case SpinnerSize.modal:
|
|
123
|
+
return this.renderBig();
|
|
124
|
+
default:
|
|
125
|
+
return null;
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
Spinner.displayName = 'Spinner';
|
|
129
|
+
Spinner.defaultProps = {
|
|
130
|
+
size: SpinnerSize.small,
|
|
131
|
+
className: '',
|
|
132
|
+
};
|
|
133
|
+
return Spinner;
|
|
134
|
+
}((external_react_default()).Component));
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
;// CONCATENATED MODULE: ./src/components/Spinner/index.ts
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
/***/ }),
|
|
142
|
+
|
|
143
|
+
/***/ 8310:
|
|
144
|
+
/***/ ((module) => {
|
|
145
|
+
|
|
146
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;
|
|
147
|
+
|
|
148
|
+
/***/ }),
|
|
149
|
+
|
|
150
|
+
/***/ 8156:
|
|
151
|
+
/***/ ((module) => {
|
|
152
|
+
|
|
153
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;
|
|
154
|
+
|
|
155
|
+
/***/ })
|
|
156
|
+
|
|
157
|
+
/******/ });
|
|
158
|
+
/************************************************************************/
|
|
159
|
+
/******/ // The module cache
|
|
160
|
+
/******/ var __webpack_module_cache__ = {};
|
|
161
|
+
/******/
|
|
162
|
+
/******/ // The require function
|
|
163
|
+
/******/ function __webpack_require__(moduleId) {
|
|
164
|
+
/******/ // Check if module is in cache
|
|
165
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
166
|
+
/******/ if (cachedModule !== undefined) {
|
|
167
|
+
/******/ return cachedModule.exports;
|
|
168
|
+
/******/ }
|
|
169
|
+
/******/ // Create a new module (and put it into the cache)
|
|
170
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
171
|
+
/******/ // no module.id needed
|
|
172
|
+
/******/ // no module.loaded needed
|
|
173
|
+
/******/ exports: {}
|
|
174
|
+
/******/ };
|
|
175
|
+
/******/
|
|
176
|
+
/******/ // Execute the module function
|
|
177
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
178
|
+
/******/
|
|
179
|
+
/******/ // Return the exports of the module
|
|
180
|
+
/******/ return module.exports;
|
|
181
|
+
/******/ }
|
|
182
|
+
/******/
|
|
183
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
184
|
+
/******/ __webpack_require__.m = __webpack_modules__;
|
|
185
|
+
/******/
|
|
186
|
+
/************************************************************************/
|
|
187
|
+
/******/ /* webpack/runtime/chunk loaded */
|
|
188
|
+
/******/ (() => {
|
|
189
|
+
/******/ var deferred = [];
|
|
190
|
+
/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
|
|
191
|
+
/******/ if(chunkIds) {
|
|
192
|
+
/******/ priority = priority || 0;
|
|
193
|
+
/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
|
|
194
|
+
/******/ deferred[i] = [chunkIds, fn, priority];
|
|
195
|
+
/******/ return;
|
|
196
|
+
/******/ }
|
|
197
|
+
/******/ var notFulfilled = Infinity;
|
|
198
|
+
/******/ for (var i = 0; i < deferred.length; i++) {
|
|
199
|
+
/******/ var [chunkIds, fn, priority] = deferred[i];
|
|
200
|
+
/******/ var fulfilled = true;
|
|
201
|
+
/******/ for (var j = 0; j < chunkIds.length; j++) {
|
|
202
|
+
/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
|
|
203
|
+
/******/ chunkIds.splice(j--, 1);
|
|
204
|
+
/******/ } else {
|
|
205
|
+
/******/ fulfilled = false;
|
|
206
|
+
/******/ if(priority < notFulfilled) notFulfilled = priority;
|
|
207
|
+
/******/ }
|
|
208
|
+
/******/ }
|
|
209
|
+
/******/ if(fulfilled) {
|
|
210
|
+
/******/ deferred.splice(i--, 1)
|
|
211
|
+
/******/ var r = fn();
|
|
212
|
+
/******/ if (r !== undefined) result = r;
|
|
213
|
+
/******/ }
|
|
214
|
+
/******/ }
|
|
215
|
+
/******/ return result;
|
|
216
|
+
/******/ };
|
|
217
|
+
/******/ })();
|
|
218
|
+
/******/
|
|
219
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
220
|
+
/******/ (() => {
|
|
221
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
222
|
+
/******/ __webpack_require__.n = (module) => {
|
|
223
|
+
/******/ var getter = module && module.__esModule ?
|
|
224
|
+
/******/ () => (module['default']) :
|
|
225
|
+
/******/ () => (module);
|
|
226
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
227
|
+
/******/ return getter;
|
|
228
|
+
/******/ };
|
|
229
|
+
/******/ })();
|
|
230
|
+
/******/
|
|
231
|
+
/******/ /* webpack/runtime/define property getters */
|
|
232
|
+
/******/ (() => {
|
|
233
|
+
/******/ // define getter functions for harmony exports
|
|
234
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
235
|
+
/******/ for(var key in definition) {
|
|
236
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
237
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
238
|
+
/******/ }
|
|
239
|
+
/******/ }
|
|
240
|
+
/******/ };
|
|
241
|
+
/******/ })();
|
|
242
|
+
/******/
|
|
243
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
244
|
+
/******/ (() => {
|
|
245
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
246
|
+
/******/ })();
|
|
247
|
+
/******/
|
|
248
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
249
|
+
/******/ (() => {
|
|
250
|
+
/******/ // define __esModule on exports
|
|
251
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
252
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
253
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
254
|
+
/******/ }
|
|
255
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
256
|
+
/******/ };
|
|
257
|
+
/******/ })();
|
|
258
|
+
/******/
|
|
259
|
+
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
260
|
+
/******/ (() => {
|
|
261
|
+
/******/ // no baseURI
|
|
262
|
+
/******/
|
|
263
|
+
/******/ // object to store loaded and loading chunks
|
|
264
|
+
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
265
|
+
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
|
266
|
+
/******/ var installedChunks = {
|
|
267
|
+
/******/ 410: 0,
|
|
268
|
+
/******/ 1981: 0
|
|
269
|
+
/******/ };
|
|
270
|
+
/******/
|
|
271
|
+
/******/ // no chunk on demand loading
|
|
272
|
+
/******/
|
|
273
|
+
/******/ // no prefetching
|
|
274
|
+
/******/
|
|
275
|
+
/******/ // no preloaded
|
|
276
|
+
/******/
|
|
277
|
+
/******/ // no HMR
|
|
278
|
+
/******/
|
|
279
|
+
/******/ // no HMR manifest
|
|
280
|
+
/******/
|
|
281
|
+
/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
|
|
282
|
+
/******/
|
|
283
|
+
/******/ // install a JSONP callback for chunk loading
|
|
284
|
+
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
|
|
285
|
+
/******/ var [chunkIds, moreModules, runtime] = data;
|
|
286
|
+
/******/ // add "moreModules" to the modules object,
|
|
287
|
+
/******/ // then flag all "chunkIds" as loaded and fire callback
|
|
288
|
+
/******/ var moduleId, chunkId, i = 0;
|
|
289
|
+
/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
|
|
290
|
+
/******/ for(moduleId in moreModules) {
|
|
291
|
+
/******/ if(__webpack_require__.o(moreModules, moduleId)) {
|
|
292
|
+
/******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
|
|
293
|
+
/******/ }
|
|
294
|
+
/******/ }
|
|
295
|
+
/******/ if(runtime) var result = runtime(__webpack_require__);
|
|
296
|
+
/******/ }
|
|
297
|
+
/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
|
|
298
|
+
/******/ for(;i < chunkIds.length; i++) {
|
|
299
|
+
/******/ chunkId = chunkIds[i];
|
|
300
|
+
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
|
|
301
|
+
/******/ installedChunks[chunkId][0]();
|
|
302
|
+
/******/ }
|
|
303
|
+
/******/ installedChunks[chunkIds[i]] = 0;
|
|
304
|
+
/******/ }
|
|
305
|
+
/******/ return __webpack_require__.O(result);
|
|
306
|
+
/******/ }
|
|
307
|
+
/******/
|
|
308
|
+
/******/ var chunkLoadingGlobal = self["webpackChunkatoka_design_system"] = self["webpackChunkatoka_design_system"] || [];
|
|
309
|
+
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
|
|
310
|
+
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
|
|
311
|
+
/******/ })();
|
|
312
|
+
/******/
|
|
313
|
+
/************************************************************************/
|
|
314
|
+
/******/
|
|
315
|
+
/******/ // startup
|
|
316
|
+
/******/ // Load entry module and return exports
|
|
317
|
+
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
318
|
+
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, [1981], () => (__webpack_require__(4482)))
|
|
319
|
+
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
|
320
|
+
/******/
|
|
321
|
+
/******/ return __webpack_exports__;
|
|
322
|
+
/******/ })()
|
|
323
|
+
;
|
|
324
|
+
});
|
|
325
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Spinner/index.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACVoC;AACV;AAGF;AAExB,IAAY,WAKX;AALD,WAAY,WAAW;IACnB,6CAAI;IACJ,+CAAK;IACL,2CAAG;IACH,+CAAK;AACT,CAAC,EALW,WAAW,KAAX,WAAW,QAKtB;AAMD;;;;;;;;IAQI;AACJ;IAA6B,2BAA6B;IAA1D;;IAkGA,CAAC;IA1FW,uCAAqB,GAA7B,UAA8B,IAAY;QACtC,IAAI,SAAS,GAAG,wBAAwB,GAAG,IAAI,GAAG,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC;QAE7E,OAAO,CACH,gDAAK,SAAS,EAAE,SAAS;YACrB,gDAAK,SAAS,EAAC,cAAc;gBACzB,gDAAK,SAAS,EAAC,cAAc,GAAG,CAC9B;YACN,gDAAK,SAAS,EAAC,cAAc;gBACzB,gDAAK,SAAS,EAAC,cAAc,GAAG,CAC9B;YACN,gDAAK,SAAS,EAAC,cAAc;gBACzB,gDAAK,SAAS,EAAC,cAAc,GAAG,CAC9B,CACJ,CACT,CAAC;IACN,CAAC;IAEO,6BAAW,GAAnB;QACI,OAAO,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;IAC/C,CAAC;IAEO,4BAAU,GAAlB;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CPA;;;;;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/Spinner/Spinner.tsx","webpack://atoka-design-system/./src/components/Spinner/index.ts","webpack://atoka-design-system/external umd \"classnames\"","webpack://atoka-design-system/external umd \"react\"","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(\"classnames\"), require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"atoka-design-system\", [\"classnames\", \"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"atoka-design-system\"] = factory(require(\"classnames\"), require(\"react\"));\n\telse\n\t\troot[\"atoka-design-system\"] = factory(root[\"classnames\"], root[\"react\"]);\n})(self, function(__WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__) {\nreturn ","import classnames from 'classnames';\nimport React from 'react';\nimport {PropsWithClassName} from '../Utils';\n\nimport './Spinner.less';\n\nexport enum SpinnerSize {\n mini,\n small,\n big,\n modal,\n}\n\nexport interface SpinnerProps extends PropsWithClassName {\n size?: SpinnerSize;\n}\n\n/**\n * ### Overview\n *\n * We can find two different spinners in the Atoka interface, small and big. The **small** one is used to show that a specific section inside the page is loading. The **big** spinner on the other hand shows when the whole page is loading.\n *\n * ### Best practice\n *\n * Use the spinner if the waiting time is between 0.1 and 1 second. After one second, the user gets the impression that the app is slow: in that case, use a progress indicator instead.\n **/\nexport class Spinner extends React.Component<SpinnerProps> {\n static displayName: string = 'Spinner';\n\n static defaultProps: SpinnerProps = {\n size: SpinnerSize.small,\n className: '',\n };\n\n private renderOnlyDotsSpinner(size: string): React.ReactNode {\n let className = 'atoka-spinner spinner-' + size + ' ' + this.props.className;\n\n return (\n <div className={className}>\n <div className='spinner-dot1'>\n <div className='spinner-leaf' />\n </div>\n <div className='spinner-dot2'>\n <div className='spinner-leaf' />\n </div>\n <div className='spinner-dot3'>\n <div className='spinner-leaf' />\n </div>\n </div>\n );\n }\n\n private renderSmall(): React.ReactNode {\n return this.renderOnlyDotsSpinner('small');\n }\n\n private renderMini(): React.ReactNode {\n return this.renderOnlyDotsSpinner('mini');\n }\n\n private renderLeaf(): React.ReactNode {\n return (\n <svg viewBox='0 0 204.01 190.64' version='1.1' xmlns='http://www.w3.org/2000/svg'>\n <g id='leaf'>\n <path d='M80.88,7.62a26,26,0,0,0-36.79,36.8,25.85,25.85,0,0,0,13.4,7.14V83.39c1.19,0,2.4-.08,3.62-.08,2.16,0,4.28.08,6.38.23v-32A26,26,0,0,0,80.88,7.62ZM73.81,37.35a16,16,0,1,1,0-22.66,15.92,15.92,0,0,1,0,22.66Z' />\n </g>\n </svg>\n );\n }\n\n private renderLetter(): React.ReactNode {\n return (\n <svg viewBox='0 0 204.01 190.64' version='1.1' xmlns='http://www.w3.org/2000/svg'>\n <g id='logo-vector'>\n <path d='M110.77,180.67V140.16a50.47,50.47,0,1,0-22,41.71L93.12,187a10,10,0,0,0,17.65-6.34Zm-81-40.51a30.5,30.5,0,1,1,30.5,30.5,30.49,30.49,0,0,1-30.5-30.5Z' />\n </g>\n </svg>\n );\n }\n\n private renderBig(): React.ReactNode {\n let spinnerClassName = classnames(this.props.className, {\n 'atoka-spinner': true,\n 'spinner-big': this.props.size === SpinnerSize.big,\n 'spinner-medium': this.props.size === SpinnerSize.modal,\n }),\n containerClassName = classnames({\n 'container-fluid spinner-modal': this.props.size === SpinnerSize.modal,\n });\n\n return (\n <div className={containerClassName}>\n <div className={spinnerClassName}>\n <div className='spinner-dot1'>\n <div className='spinner-leaf'>{this.renderLeaf()}</div>\n </div>\n <div className='spinner-dot2'>\n <div className='spinner-leaf'>{this.renderLeaf()}</div>\n </div>\n <div className='spinner-dot3'>\n <div className='spinner-leaf'>{this.renderLeaf()}</div>\n </div>\n <span className='spinner-letter'>{this.renderLetter()}</span>\n </div>\n </div>\n );\n }\n\n public render(): React.ReactNode {\n switch (this.props.size) {\n case SpinnerSize.mini:\n return this.renderMini();\n\n case SpinnerSize.small:\n return this.renderSmall();\n\n case SpinnerSize.big:\n case SpinnerSize.modal:\n return this.renderBig();\n\n default:\n return null;\n }\n }\n}\n","export * from './Spinner';\n","module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;","// 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\t410: 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__(4482)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":[],"sourceRoot":""}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './StatisticsItemCard.less';
|
|
3
|
+
import { PropsWithClassName } from '../Utils';
|
|
4
|
+
import { Spinner } from '../Spinner';
|
|
5
|
+
import { EmptyState } from '../EmptyState';
|
|
6
|
+
import { TooltipProps } from '../Tooltip';
|
|
7
|
+
export interface StatisticsItemCardProps extends PropsWithClassName {
|
|
8
|
+
isLoading?: boolean;
|
|
9
|
+
isEmpty?: boolean;
|
|
10
|
+
isPerformingAction?: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface StatisticsBodyProps {
|
|
13
|
+
withPadding?: boolean;
|
|
14
|
+
}
|
|
15
|
+
interface StatisticsTitleProps {
|
|
16
|
+
tooltip?: TooltipProps['content'];
|
|
17
|
+
tooltipProps?: Partial<Omit<TooltipProps, 'content'>>;
|
|
18
|
+
}
|
|
19
|
+
declare let statisticsTitle: React.FC<React.PropsWithChildren<StatisticsTitleProps>>, statisticsSubtitle: React.FC<React.PropsWithChildren<unknown>>, statisticsBody: React.FC<React.PropsWithChildren<StatisticsBodyProps>>, statisticsActionButtons: React.FC<React.PropsWithChildren<unknown>>;
|
|
20
|
+
export declare class StatisticsItemCard extends React.PureComponent<StatisticsItemCardProps> {
|
|
21
|
+
static displayName: string;
|
|
22
|
+
static Title: typeof statisticsTitle;
|
|
23
|
+
static Subtitle: typeof statisticsSubtitle;
|
|
24
|
+
static Body: typeof statisticsBody;
|
|
25
|
+
static ActionButtons: typeof statisticsActionButtons;
|
|
26
|
+
static Spinner: typeof Spinner;
|
|
27
|
+
static EmptyState: typeof EmptyState;
|
|
28
|
+
private renderBodySection;
|
|
29
|
+
private renderSubtitleSection;
|
|
30
|
+
private renderIsLoading;
|
|
31
|
+
private renderIsEmpty;
|
|
32
|
+
private renderActionButtons;
|
|
33
|
+
render(): React.ReactNode;
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { StatisticsItemCard } from './StatisticsItemCard';
|