@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":"AddableItems/index.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACV2E;AACE;AACZ;AAC7B;AACV;AACwB;AACjB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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;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;;;;;UEpDA;UACA;UACA;UACA;UACA","sources":["webpack://atoka-design-system/webpack/universalModuleDefinition","webpack://atoka-design-system/./src/components/AddableItems/ClickableExcludableItem.tsx","webpack://atoka-design-system/./src/components/AddableItems/ClickableItemList.tsx","webpack://atoka-design-system/./src/components/AddableItems/AddableItems.tsx","webpack://atoka-design-system/./src/components/AddableItems/index.ts","webpack://atoka-design-system/./src/components/Button/Button.tsx","webpack://atoka-design-system/./src/components/Button/index.ts","webpack://atoka-design-system/./src/components/Title/Title.tsx","webpack://atoka-design-system/./src/components/Title/index.ts","webpack://atoka-design-system/./src/components/Tooltip/Tooltip.tsx","webpack://atoka-design-system/./src/components/Tooltip/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/faMinusCircle\"","webpack://atoka-design-system/external umd \"@fortawesome/pro-light-svg-icons/faPlusCircle\"","webpack://atoka-design-system/external umd \"@fortawesome/pro-light-svg-icons/faTimes\"","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/ListGroup\"","webpack://atoka-design-system/external umd \"react-bootstrap/OverlayTrigger\"","webpack://atoka-design-system/external umd \"react-dom\"","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/faMinusCircle\"), require(\"@fortawesome/pro-light-svg-icons/faPlusCircle\"), require(\"@fortawesome/pro-light-svg-icons/faTimes\"), require(\"@fortawesome/react-fontawesome\"), require(\"classnames\"), require(\"react\"), require(\"react-bootstrap/Button\"), require(\"react-bootstrap/ListGroup\"), require(\"react-bootstrap/OverlayTrigger\"), require(\"react-dom\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"atoka-design-system\", [\"@fortawesome/pro-light-svg-icons/faMinusCircle\", \"@fortawesome/pro-light-svg-icons/faPlusCircle\", \"@fortawesome/pro-light-svg-icons/faTimes\", \"@fortawesome/react-fontawesome\", \"classnames\", \"react\", \"react-bootstrap/Button\", \"react-bootstrap/ListGroup\", \"react-bootstrap/OverlayTrigger\", \"react-dom\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"atoka-design-system\"] = factory(require(\"@fortawesome/pro-light-svg-icons/faMinusCircle\"), require(\"@fortawesome/pro-light-svg-icons/faPlusCircle\"), require(\"@fortawesome/pro-light-svg-icons/faTimes\"), require(\"@fortawesome/react-fontawesome\"), require(\"classnames\"), require(\"react\"), require(\"react-bootstrap/Button\"), require(\"react-bootstrap/ListGroup\"), require(\"react-bootstrap/OverlayTrigger\"), require(\"react-dom\"));\n\telse\n\t\troot[\"atoka-design-system\"] = factory(root[\"@fortawesome/pro-light-svg-icons/faMinusCircle\"], root[\"@fortawesome/pro-light-svg-icons/faPlusCircle\"], root[\"@fortawesome/pro-light-svg-icons/faTimes\"], root[\"@fortawesome/react-fontawesome\"], root[\"classnames\"], root[\"react\"], root[\"react-bootstrap/Button\"], root[\"react-bootstrap/ListGroup\"], root[\"react-bootstrap/OverlayTrigger\"], root[\"react-dom\"]);\n})(self, function(__WEBPACK_EXTERNAL_MODULE__8809__, __WEBPACK_EXTERNAL_MODULE__8761__, __WEBPACK_EXTERNAL_MODULE__6988__, __WEBPACK_EXTERNAL_MODULE__5692__, __WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__, __WEBPACK_EXTERNAL_MODULE__8926__, __WEBPACK_EXTERNAL_MODULE__9034__, __WEBPACK_EXTERNAL_MODULE__6043__, __WEBPACK_EXTERNAL_MODULE__7111__) {\nreturn ","import {faPlusCircle} from '@fortawesome/pro-light-svg-icons/faPlusCircle';\nimport {faMinusCircle} from '@fortawesome/pro-light-svg-icons/faMinusCircle';\nimport {faTimes} from '@fortawesome/pro-light-svg-icons/faTimes';\nimport classnames from 'classnames';\nimport React from 'react';\nimport ListGroup from 'react-bootstrap/ListGroup';\nimport ReactDOM from 'react-dom';\nimport {boundMethod} from 'autobind-decorator';\nimport {Tooltip} from '../Tooltip';\nimport {Button} from '../Button';\n\nimport './ClickableExcludableItem.less';\nimport {ClickableFacetItem, ClickableItemKind} from './ClickableItemList';\nimport {AddableItemsProps} from '.';\n\nexport interface ClickableExcludableItemProps\n extends Pick<AddableItemsProps, 'itemContentRenderer' | 'tooltipMessages' | 'notSuffixLabel' | 'countFormatter'> {\n item: ClickableFacetItem;\n onRemove: () => void;\n supportsExclusion?: boolean;\n isExcluded?: boolean;\n kind: ClickableItemKind;\n onToggleIncludeExclude?: () => void;\n}\n\nexport class ClickableExcludableItem extends React.PureComponent<ClickableExcludableItemProps> {\n static displayName: string = 'ClickableExcludableItem';\n private includeExcludeTogglerRef: React.ReactInstance | null;\n\n private renderItemButtons(): React.ReactNode {\n if (this.props.kind === ClickableItemKind.add) {\n return null;\n }\n\n return (\n <span className='clickable-item-buttons-container'>\n <Button variant='tertiary' icon={faTimes} size='xs' />\n {this.renderIncludeExcludeToggler()}\n </span>\n );\n }\n\n private renderItemRealContent(item: ClickableFacetItem): React.ReactNode {\n if (this.props.itemContentRenderer != null) {\n return this.props.itemContentRenderer(item);\n }\n\n return item.value;\n }\n\n private renderItemContent(item: ClickableFacetItem): React.ReactNode {\n let notSuffix: React.ReactNode =\n this.props.isExcluded === true ? (\n <span className='item-content-not-suffix'>{this.props.notSuffixLabel} </span>\n ) : (\n ''\n );\n\n return (\n <div className='item-content d-flex align-items-center text-wrap w-100 mr-1 overflow-hidden'>\n {notSuffix}\n {this.renderItemRealContent(item)}\n </div>\n );\n }\n\n private renderIncludeExcludeToggler(): React.ReactNode {\n if (this.props.supportsExclusion !== true) {\n return null;\n }\n\n let button = (\n <div>\n <Button\n ref={(node: React.ReactInstance | null) => (this.includeExcludeTogglerRef = node)}\n variant='tertiary'\n icon={this.props.isExcluded ? faPlusCircle : faMinusCircle}\n size='xs'\n onClick={this.props.onToggleIncludeExclude}\n className='item-toggler'\n />\n </div>\n );\n\n if (this.props.tooltipMessages == null) {\n return button;\n }\n\n let {include, exclude} = this.props.tooltipMessages;\n\n return <Tooltip content={this.props.isExcluded ? include : exclude}>{button}</Tooltip>;\n }\n\n private renderCount(item: ClickableFacetItem): JSX.Element {\n if (item.count == null) {\n return <span> </span>;\n }\n let count = item.count.toString();\n if (this.props.countFormatter) {\n count = this.props.countFormatter(item.count);\n }\n\n return <span className='list-item-count'>{count}</span>;\n }\n\n @boundMethod\n private handleContainerClick(e: React.MouseEvent<Element>): void {\n if (this.props.supportsExclusion === true) {\n // eslint-disable-next-line react/no-find-dom-node\n let includeExcludeToggler = ReactDOM.findDOMNode(this.includeExcludeTogglerRef);\n if (e.target === includeExcludeToggler || includeExcludeToggler?.contains(e.target as Node)) {\n return;\n }\n }\n\n this.props.onRemove();\n }\n\n public render(): JSX.Element {\n let itemClassName = classnames([ClickableItemKind[this.props.kind]], {\n included: this.props.supportsExclusion && !this.props.isExcluded,\n excluded: this.props.isExcluded,\n });\n\n return (\n <ListGroup.Item\n bsPrefix='atoka-list-group-item'\n className={itemClassName}\n onClick={this.handleContainerClick}\n >\n <span className='list-group-item-content-container w-100 d-flex justify-content-between'>\n <div className='d-flex align-items-center w-100 overflow-hidden'>\n {this.renderItemButtons()}\n {this.renderItemContent(this.props.item)}\n </div>\n {this.renderCount(this.props.item)}\n </span>\n </ListGroup.Item>\n );\n }\n}\n","import {boundMethod} from 'autobind-decorator';\nimport classnames from 'classnames';\nimport React from 'react';\nimport ListGroup from 'react-bootstrap/ListGroup';\nimport {ClickableExcludableItem, ClickableExcludableItemProps} from './ClickableExcludableItem';\nimport {AddableItemsProps} from '.';\n\n// eslint-disable-next-line no-shadow\nexport enum ClickableItemKind {\n add,\n remove,\n}\n\nexport interface ClickableFacetItem {\n count?: number;\n size?: number;\n label?: string;\n value: string;\n key?: string;\n legalName?: string;\n type?: string;\n}\n\nexport interface ClickableItemListProps\n extends Pick<\n AddableItemsProps,\n 'onToggleIncludeExclude' | 'itemContentRenderer' | 'tooltipMessages' | 'notSuffixLabel' | 'countFormatter'\n > {\n itemKeyGetter?: (item: ClickableFacetItem) => string;\n items: ClickableExcludableItemProps['item'][];\n onClick: (item: ClickableFacetItem) => void;\n supportsExclusion?: boolean;\n areItemsExcluded?: boolean;\n kind: ClickableExcludableItemProps['kind'];\n emptyMessage?: React.ReactNode;\n}\n\nexport class ClickableItemList extends React.Component<ClickableItemListProps> {\n static displayName: string = 'ClickableItemList';\n\n @boundMethod\n private renderItem(item: ClickableFacetItem): JSX.Element {\n return (\n <ClickableExcludableItem\n key={item.value}\n item={item}\n kind={this.props.kind}\n onRemove={() => this.props.onClick(item)}\n onToggleIncludeExclude={() =>\n this.props.onToggleIncludeExclude?.(item, this.props.areItemsExcluded ?? false)\n }\n supportsExclusion={this.props.supportsExclusion}\n isExcluded={this.props.areItemsExcluded}\n itemContentRenderer={this.props.itemContentRenderer}\n tooltipMessages={this.props.tooltipMessages}\n notSuffixLabel={this.props.notSuffixLabel}\n countFormatter={this.props.countFormatter}\n />\n );\n }\n\n private needToShowEmptyMessage(): boolean {\n if (this.props.emptyMessage == null) {\n return false;\n }\n\n if (this.props.items == null) {\n return true;\n }\n\n if (this.props.items.length > 0) {\n return false;\n }\n\n return true;\n }\n\n private getItems(): React.ReactNode {\n if (this.needToShowEmptyMessage()) {\n return (\n <ListGroup.Item bsPrefix='atoka-list-group-item' key='empty-message'>\n {this.props.emptyMessage}\n </ListGroup.Item>\n );\n }\n\n if (this.props.items == null || this.props.items.length === 0) {\n return null;\n }\n\n if (this.props.items[0].count == null) {\n return this.props.items.map(this.renderItem);\n }\n\n let items = this.props.items;\n\n return items\n .sort((a: ClickableFacetItem, b: ClickableFacetItem): number => (b.count ?? 0) - (a.count ?? 0))\n .map(this.renderItem);\n }\n\n public render(): JSX.Element {\n let classNames = classnames({\n 'list-empty': this.props.items == null || this.props.items.length === 0,\n 'atoka-addable-items': this.props.kind === ClickableItemKind.add,\n 'atoka-removable-items': this.props.kind === ClickableItemKind.remove,\n });\n\n return (\n <ListGroup bsPrefix='atoka-list-group' className={classNames}>\n {this.getItems()}\n </ListGroup>\n );\n }\n}\n","import classnames from 'classnames';\nimport React from 'react';\n\nimport {NumberToStringFormatterType, PropsWithClassName} from 'components/Utils/CommonTypes';\nimport {Button} from '../Button';\nimport {Title} from '../Title';\nimport {ClickableFacetItem, ClickableItemKind, ClickableItemList} from './ClickableItemList';\n\nimport './AddableItems.less';\n\nexport function extractFacetKeyFromItemValue(key: ClickableFacetItem | string): string {\n return typeof key === 'object' ? key.value : key;\n}\n\nexport interface AddableItemsData {\n count: number;\n items: ClickableFacetItem[];\n}\n\nexport interface AddableItemsFacetData {\n config: Omit<AddableItemsConfig, 'isLoading'>;\n data: AddableItemsData;\n}\n\nexport interface AddableItemsConfig {\n isLoading: boolean;\n include: ClickableFacetItem[];\n exclude?: ClickableFacetItem[];\n itemCount?: number;\n isActive?: boolean;\n}\n\nexport interface AddableItemsProps extends PropsWithClassName {\n config: AddableItemsConfig;\n facetData: AddableItemsFacetData;\n /** this function pushes the clicked item to the `included items` list */\n onAddItem: (item: ClickableFacetItem) => void;\n /** this function removes the clicked item from lists */\n onRemoveItem: (item: ClickableFacetItem) => void;\n /** this function removes all the items from lists */\n onRemoveAll?: () => void;\n /** this function renders an additional suggester field */\n renderSuggester?: () => JSX.Element;\n /** this function renders one or many additional generic fields */\n renderModifiers?: () => JSX.Element;\n /** this is the label on top of the selected items */\n label?: string;\n /** this is the label for `removeAll` button */\n unselectLabel?: string;\n /** the label used to prefix excluded items */\n notSuffixLabel?: string;\n /** an object that contains tooltips info messages for included and excluded items */\n tooltipMessages?: {[key: string]: string};\n /** this function returns a custom React Node to override the base content of an item */\n itemContentRenderer?: (item: ClickableFacetItem) => React.ReactNode;\n /** this function allows to exclude/include the clicked items */\n onToggleIncludeExclude?: (item: ClickableFacetItem, isExcluded: boolean) => void;\n /** this is the message that appears when the list of selectable items will be empty */\n emptyMessage?: string;\n /** this function allow to use a custom formatters numbers, generally counts in facets items */\n countFormatter?: NumberToStringFormatterType;\n}\n\nexport interface AddableItemsState {\n isFirstRender: boolean;\n}\n\n/**\n * ### Overview\n *\n * The `AddableItems` component is most useful to display a selection list and select many items.\n * All items selected are commonly used to include these voices on a search.\n * */\nexport class AddableItems extends React.PureComponent<AddableItemsProps, AddableItemsState> {\n static displayName: string = 'AddableItems';\n\n constructor(props: AddableItemsProps) {\n super(props);\n this.state = {isFirstRender: true};\n }\n\n public componentDidUpdate(): void {\n if (this.state.isFirstRender && this.props.config.isLoading === false) {\n this.setState({isFirstRender: false});\n }\n }\n\n private renderItemContent(item: ClickableFacetItem): React.ReactNode {\n if (item.label != null && !(item.label.indexOf('- (') === 0)) {\n return <span className='option-data-item overflow-hidden'>{item.label}</span>;\n }\n\n return <span className='option-data-item overflow-hidden'>{item.value}</span>;\n }\n\n private getItemContentRenderer(): (item: ClickableFacetItem) => React.ReactNode {\n if (this.props.itemContentRenderer != null) {\n return this.props.itemContentRenderer;\n }\n\n return this.renderItemContent;\n }\n\n private renderRemovableItemsTitle(): React.ReactNode {\n return (\n <div className='d-flex justify-content-between mb-2'>\n <Title size='xs' className='m-0'>\n {this.props.label}\n </Title>\n <Button variant='tertiary' size='sm' onClick={this.props.onRemoveAll}>\n {this.props.unselectLabel}\n </Button>\n </div>\n );\n }\n\n private renderRemovableItems(\n includedItems: ClickableFacetItem[],\n excludedItems: ClickableFacetItem[],\n ): React.ReactNode {\n const withInclude: boolean = includedItems.length > 0,\n withExclude: boolean = excludedItems.length > 0;\n\n const className = classnames('mb-3', 'atoka-removable-items-container', {\n 'with-include-items': withInclude && !withExclude,\n 'with-exclude-items': !withInclude && withExclude,\n 'with-both-include-and-exclude-items': withInclude && withExclude,\n });\n\n if (this.props.onToggleIncludeExclude == null) {\n if ((this.props.config?.include?.length ?? 0) === 0) {\n return null;\n }\n\n return (\n <>\n {this.renderRemovableItemsTitle()}\n <div className={className}>\n <ClickableItemList\n items={includedItems}\n kind={ClickableItemKind.remove}\n onClick={this.props.onRemoveItem}\n itemContentRenderer={this.getItemContentRenderer()}\n tooltipMessages={this.props.tooltipMessages}\n countFormatter={this.props.countFormatter}\n />\n </div>\n </>\n );\n }\n\n if (includedItems.length + excludedItems.length === 0) {\n return null;\n }\n\n return (\n <>\n {this.renderRemovableItemsTitle()}\n <div className={className}>\n <ClickableItemList\n items={includedItems}\n kind={ClickableItemKind.remove}\n onClick={this.props.onRemoveItem}\n supportsExclusion={true}\n areItemsExcluded={false}\n onToggleIncludeExclude={this.props.onToggleIncludeExclude}\n itemContentRenderer={this.getItemContentRenderer()}\n tooltipMessages={this.props.tooltipMessages}\n countFormatter={this.props.countFormatter}\n />\n\n <ClickableItemList\n items={excludedItems}\n kind={ClickableItemKind.remove}\n onClick={this.props.onRemoveItem}\n supportsExclusion={true}\n areItemsExcluded={true}\n onToggleIncludeExclude={this.props.onToggleIncludeExclude}\n itemContentRenderer={this.getItemContentRenderer()}\n tooltipMessages={this.props.tooltipMessages}\n notSuffixLabel={this.props.notSuffixLabel}\n countFormatter={this.props.countFormatter}\n />\n </div>\n </>\n );\n }\n\n private getEmptyMessage(): React.ReactNode {\n if (this.props?.emptyMessage == null || this.props?.emptyMessage === '') {\n return null;\n }\n\n return this.props.emptyMessage;\n }\n\n public render(): React.ReactNode {\n let config = this.props.config,\n included: ClickableFacetItem[] = config.include ?? [],\n excluded: ClickableFacetItem[] = config.exclude ?? [],\n alreadyManagedValues = included.concat(excluded).map(extractFacetKeyFromItemValue),\n items: ClickableFacetItem[] = this.props.facetData.data.items.filter(\n (item: ClickableFacetItem) => alreadyManagedValues.indexOf(item.value) < 0,\n ),\n className: string = classnames(this.props.className, 'atoka-addable-items');\n\n if (this.props.onToggleIncludeExclude != null) {\n excluded = config.exclude ?? [];\n }\n\n return (\n <div className={className}>\n <div className='suggester-and-modifiers-block'>\n {this.props.renderSuggester?.()}\n {this.props.renderModifiers?.()}\n </div>\n\n {this.renderRemovableItems(included, excluded)}\n <ClickableItemList\n items={items}\n kind={ClickableItemKind.add}\n onClick={this.props.onAddItem}\n emptyMessage={this.getEmptyMessage()}\n itemContentRenderer={this.getItemContentRenderer()}\n countFormatter={this.props.countFormatter}\n />\n </div>\n );\n }\n}\n","export * from './AddableItems';\n","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 {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {IconDefinition} from '@fortawesome/pro-light-svg-icons';\nimport classnames from 'classnames';\nimport {PropsWithClassName} from '../Utils';\n\nimport './Title.less';\n\nexport interface TitleProps extends PropsWithClassName {\n icon?: IconDefinition;\n size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';\n style?: React.CSSProperties;\n}\n\nexport class Title extends React.PureComponent<TitleProps> {\n static displayName: string = 'Title';\n\n static defaultProps: TitleProps = {\n size: 'xxl',\n };\n\n private renderIcon(): React.ReactNode {\n if (this.props.icon == null) {\n return null;\n }\n\n let classNames = classnames({'mr-2': this.props.children !== '' && this.props.children != null});\n\n return <FontAwesomeIcon icon={this.props.icon} className={classNames} fixedWidth />;\n }\n\n private renderContent(): React.ReactNode {\n return (\n <>\n {this.renderIcon()}\n {this.props.children}\n </>\n );\n }\n\n public render(): React.ReactNode {\n let props = {className: this.props.className, style: this.props.style};\n\n switch (this.props.size) {\n case 'xs':\n return <h6 {...props}>{this.renderContent()}</h6>;\n case 'sm':\n return <h5 {...props}>{this.renderContent()}</h5>;\n case 'md':\n return <h4 {...props}>{this.renderContent()}</h4>;\n case 'lg':\n return <h3 {...props}>{this.renderContent()}</h3>;\n case 'xl':\n return <h2 {...props}>{this.renderContent()}</h2>;\n default:\n return <h1 {...props}>{this.renderContent()}</h1>;\n }\n }\n}\n","export {Title} from './Title';\n","import React from 'react';\nimport classnames from 'classnames';\nimport OverlayTrigger, {OverlayTriggerProps} from 'react-bootstrap/OverlayTrigger';\nimport {PropsWithClassName} from '../Utils';\nimport './Tooltip.less';\n\nexport type TooltipOverlayProps = Omit<OverlayTriggerProps, 'overlay'>;\nexport interface TooltipProps extends TooltipOverlayProps, PropsWithClassName {\n content: React.ReactNode;\n}\n/**\n * ### Overview\n *\n * A tooltip is a short message which is triggered when the users hovers or clicks on a specific element inside the interface.\n *\n * ### Best practices\n * - Don’t use a tooltip when the information you want to place inside it is vital for the user to complete the task\n * - The text inside the tooltip should be brief but helpful\n * - Use tooltips to describe the action of icon-only buttons\n * - Make sure that the tooltip’s placement doesn’t hide its related content behind it\n */\nexport const Tooltip: React.FC<TooltipProps> = React.memo((props) => {\n let bs4v3Wrapper = document.querySelector('.bs4-v3-external-container') as HTMLElement,\n placement = props.placement ?? 'top',\n classNames = classnames('tooltip atoka-tooltip', props.className, {\n 'top bs-tooltip-top': placement.indexOf('top') === 0,\n 'right bs-tooltip-right': placement.indexOf('right') === 0,\n 'bottom bs-tooltip-bottom': placement.indexOf('bottom') === 0,\n 'left bs-tooltip-left': placement.indexOf('left') === 0,\n });\n\n const {content, ...overlayProps} = props,\n renderTooltip: OverlayTriggerProps['overlay'] = ({arrowProps, ...tooltipProps}) => {\n // {vrut} do not pass show to the component, this will raise an error, see PANDA-439\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const {show, ...rest} = tooltipProps,\n component = (\n <div {...rest} className={classNames} role='tooltip'>\n <div className='tooltip-inner'>\n <div className='arrow arrow-back' {...arrowProps} />\n {content}\n <div className='arrow arrow-front' {...arrowProps} />\n </div>\n </div>\n );\n\n return component;\n };\n\n return (\n <OverlayTrigger {...overlayProps} container={bs4v3Wrapper} overlay={renderTooltip}>\n {props.children}\n </OverlayTrigger>\n );\n});\n\nTooltip.displayName = 'Tooltip';\n","export * from './Tooltip';\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__8809__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8761__;","module.exports = __WEBPACK_EXTERNAL_MODULE__6988__;","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__9034__;","module.exports = __WEBPACK_EXTERNAL_MODULE__6043__;","module.exports = __WEBPACK_EXTERNAL_MODULE__7111__;","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\t5905: 0,\n\t6615: 0,\n\t7564: 0,\n\t2823: 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__(2044)))\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":""}
|
package/Alert/Alert.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import BsAlert from 'react-bootstrap/Alert';
|
|
3
|
+
import './Alert.less';
|
|
4
|
+
import { IconDefinition } from '@fortawesome/pro-light-svg-icons';
|
|
5
|
+
import { PropsWithClassName } from '../Utils';
|
|
6
|
+
declare type AlertVariant = 'danger' | 'success' | 'warning' | 'info';
|
|
7
|
+
interface AlertProps extends PropsWithClassName {
|
|
8
|
+
icon?: IconDefinition;
|
|
9
|
+
variant: AlertVariant;
|
|
10
|
+
isDismissible?: boolean;
|
|
11
|
+
onClose?: () => void;
|
|
12
|
+
isShown?: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* ### Overview
|
|
16
|
+
* An alert is a contextual notification which appears in the page to give the user an information regarding their current work. They will remain displayed until dismissed or no longer relevant. There are four types of alerts:
|
|
17
|
+
*
|
|
18
|
+
* - Danger: this message indicates a dangerous or potentially negative action that the user must take notice of
|
|
19
|
+
* - Warning: this alert tells the user to proceed with caution with their actions on the platform
|
|
20
|
+
* - Success: this message is indicative that the user just performed a successful or positive action
|
|
21
|
+
* - Info: this alert has the scope of letting the user know about a neutral and informative change or action on Atoka
|
|
22
|
+
*
|
|
23
|
+
* ### Best practices
|
|
24
|
+
* - Use alerts sparingly: if there are too many alerts, the user will end up avoiding them due to cognitive overload and miss important information
|
|
25
|
+
* - Use alerts to notify the user of information that is either time-sensitive or relevant to the action the user is performing
|
|
26
|
+
* - Keep the text informative but not too long
|
|
27
|
+
*/
|
|
28
|
+
declare class Alert extends React.PureComponent<AlertProps> {
|
|
29
|
+
static displayName: string;
|
|
30
|
+
static Heading: typeof BsAlert.Heading;
|
|
31
|
+
static defaultProps: Partial<AlertProps>;
|
|
32
|
+
private renderIcon;
|
|
33
|
+
private renderChildren;
|
|
34
|
+
private renderContent;
|
|
35
|
+
render(): React.ReactNode;
|
|
36
|
+
}
|
|
37
|
+
export { Alert, AlertVariant, AlertProps };
|
package/Alert/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Alert';
|
package/Alert/index.js
ADDED
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory(require("@fortawesome/react-fontawesome"), require("classnames"), require("react"), require("react-bootstrap/Alert"));
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define("atoka-design-system", ["@fortawesome/react-fontawesome", "classnames", "react", "react-bootstrap/Alert"], factory);
|
|
6
|
+
else if(typeof exports === 'object')
|
|
7
|
+
exports["atoka-design-system"] = factory(require("@fortawesome/react-fontawesome"), require("classnames"), require("react"), require("react-bootstrap/Alert"));
|
|
8
|
+
else
|
|
9
|
+
root["atoka-design-system"] = factory(root["@fortawesome/react-fontawesome"], root["classnames"], root["react"], root["react-bootstrap/Alert"]);
|
|
10
|
+
})(self, function(__WEBPACK_EXTERNAL_MODULE__5692__, __WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__, __WEBPACK_EXTERNAL_MODULE__5859__) {
|
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
|
12
|
+
/******/ "use strict";
|
|
13
|
+
/******/ var __webpack_modules__ = ({
|
|
14
|
+
|
|
15
|
+
/***/ 6380:
|
|
16
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17
|
+
|
|
18
|
+
// ESM COMPAT FLAG
|
|
19
|
+
__webpack_require__.r(__webpack_exports__);
|
|
20
|
+
|
|
21
|
+
// EXPORTS
|
|
22
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
23
|
+
"Alert": () => (/* reexport */ Alert)
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
// EXTERNAL MODULE: external "react"
|
|
27
|
+
var external_react_ = __webpack_require__(8156);
|
|
28
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
29
|
+
// EXTERNAL MODULE: external "classnames"
|
|
30
|
+
var external_classnames_ = __webpack_require__(8310);
|
|
31
|
+
var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
|
|
32
|
+
// EXTERNAL MODULE: external "react-bootstrap/Alert"
|
|
33
|
+
var Alert_ = __webpack_require__(5859);
|
|
34
|
+
var Alert_default = /*#__PURE__*/__webpack_require__.n(Alert_);
|
|
35
|
+
// EXTERNAL MODULE: external "@fortawesome/react-fontawesome"
|
|
36
|
+
var react_fontawesome_ = __webpack_require__(5692);
|
|
37
|
+
;// CONCATENATED MODULE: ./src/components/Alert/Alert.tsx
|
|
38
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
39
|
+
var extendStatics = function (d, b) {
|
|
40
|
+
extendStatics = Object.setPrototypeOf ||
|
|
41
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
42
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
43
|
+
return extendStatics(d, b);
|
|
44
|
+
};
|
|
45
|
+
return function (d, b) {
|
|
46
|
+
extendStatics(d, b);
|
|
47
|
+
function __() { this.constructor = d; }
|
|
48
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
49
|
+
};
|
|
50
|
+
})();
|
|
51
|
+
var __assign = (undefined && undefined.__assign) || function () {
|
|
52
|
+
__assign = Object.assign || function(t) {
|
|
53
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
54
|
+
s = arguments[i];
|
|
55
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
56
|
+
t[p] = s[p];
|
|
57
|
+
}
|
|
58
|
+
return t;
|
|
59
|
+
};
|
|
60
|
+
return __assign.apply(this, arguments);
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* ### Overview
|
|
69
|
+
* An alert is a contextual notification which appears in the page to give the user an information regarding their current work. They will remain displayed until dismissed or no longer relevant. There are four types of alerts:
|
|
70
|
+
*
|
|
71
|
+
* - Danger: this message indicates a dangerous or potentially negative action that the user must take notice of
|
|
72
|
+
* - Warning: this alert tells the user to proceed with caution with their actions on the platform
|
|
73
|
+
* - Success: this message is indicative that the user just performed a successful or positive action
|
|
74
|
+
* - Info: this alert has the scope of letting the user know about a neutral and informative change or action on Atoka
|
|
75
|
+
*
|
|
76
|
+
* ### Best practices
|
|
77
|
+
* - Use alerts sparingly: if there are too many alerts, the user will end up avoiding them due to cognitive overload and miss important information
|
|
78
|
+
* - Use alerts to notify the user of information that is either time-sensitive or relevant to the action the user is performing
|
|
79
|
+
* - Keep the text informative but not too long
|
|
80
|
+
*/
|
|
81
|
+
var Alert = /** @class */ (function (_super) {
|
|
82
|
+
__extends(Alert, _super);
|
|
83
|
+
function Alert() {
|
|
84
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
85
|
+
}
|
|
86
|
+
Alert.prototype.renderIcon = function () {
|
|
87
|
+
if (this.props.icon == null) {
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
90
|
+
return external_react_default().createElement(react_fontawesome_.FontAwesomeIcon, { icon: this.props.icon });
|
|
91
|
+
};
|
|
92
|
+
Alert.prototype.renderChildren = function () {
|
|
93
|
+
if (this.props.children == null) {
|
|
94
|
+
return null;
|
|
95
|
+
}
|
|
96
|
+
return external_react_default().createElement("div", { className: 'alert-children' }, this.props.children);
|
|
97
|
+
};
|
|
98
|
+
Alert.prototype.renderContent = function () {
|
|
99
|
+
return (external_react_default().createElement("div", { className: 'alert-content-container d-flex' },
|
|
100
|
+
this.renderIcon(),
|
|
101
|
+
this.renderChildren()));
|
|
102
|
+
};
|
|
103
|
+
Alert.prototype.render = function () {
|
|
104
|
+
var className = external_classnames_default()(this.props.className, 'atoka-alert');
|
|
105
|
+
return (external_react_default().createElement((Alert_default()), __assign({ className: className, dismissible: this.props.isDismissible, show: this.props.isShown }, this.props), this.renderContent()));
|
|
106
|
+
};
|
|
107
|
+
Alert.displayName = 'Alert';
|
|
108
|
+
Alert.Heading = (Alert_default()).Heading;
|
|
109
|
+
Alert.defaultProps = {
|
|
110
|
+
variant: 'danger',
|
|
111
|
+
};
|
|
112
|
+
return Alert;
|
|
113
|
+
}((external_react_default()).PureComponent));
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
;// CONCATENATED MODULE: ./src/components/Alert/index.ts
|
|
117
|
+
// use the star because of this issue: https://github.com/babel/babel-loader/issues/603
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
/***/ }),
|
|
122
|
+
|
|
123
|
+
/***/ 5692:
|
|
124
|
+
/***/ ((module) => {
|
|
125
|
+
|
|
126
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;
|
|
127
|
+
|
|
128
|
+
/***/ }),
|
|
129
|
+
|
|
130
|
+
/***/ 8310:
|
|
131
|
+
/***/ ((module) => {
|
|
132
|
+
|
|
133
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;
|
|
134
|
+
|
|
135
|
+
/***/ }),
|
|
136
|
+
|
|
137
|
+
/***/ 8156:
|
|
138
|
+
/***/ ((module) => {
|
|
139
|
+
|
|
140
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;
|
|
141
|
+
|
|
142
|
+
/***/ }),
|
|
143
|
+
|
|
144
|
+
/***/ 5859:
|
|
145
|
+
/***/ ((module) => {
|
|
146
|
+
|
|
147
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__5859__;
|
|
148
|
+
|
|
149
|
+
/***/ })
|
|
150
|
+
|
|
151
|
+
/******/ });
|
|
152
|
+
/************************************************************************/
|
|
153
|
+
/******/ // The module cache
|
|
154
|
+
/******/ var __webpack_module_cache__ = {};
|
|
155
|
+
/******/
|
|
156
|
+
/******/ // The require function
|
|
157
|
+
/******/ function __webpack_require__(moduleId) {
|
|
158
|
+
/******/ // Check if module is in cache
|
|
159
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
160
|
+
/******/ if (cachedModule !== undefined) {
|
|
161
|
+
/******/ return cachedModule.exports;
|
|
162
|
+
/******/ }
|
|
163
|
+
/******/ // Create a new module (and put it into the cache)
|
|
164
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
165
|
+
/******/ // no module.id needed
|
|
166
|
+
/******/ // no module.loaded needed
|
|
167
|
+
/******/ exports: {}
|
|
168
|
+
/******/ };
|
|
169
|
+
/******/
|
|
170
|
+
/******/ // Execute the module function
|
|
171
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
172
|
+
/******/
|
|
173
|
+
/******/ // Return the exports of the module
|
|
174
|
+
/******/ return module.exports;
|
|
175
|
+
/******/ }
|
|
176
|
+
/******/
|
|
177
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
178
|
+
/******/ __webpack_require__.m = __webpack_modules__;
|
|
179
|
+
/******/
|
|
180
|
+
/************************************************************************/
|
|
181
|
+
/******/ /* webpack/runtime/chunk loaded */
|
|
182
|
+
/******/ (() => {
|
|
183
|
+
/******/ var deferred = [];
|
|
184
|
+
/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
|
|
185
|
+
/******/ if(chunkIds) {
|
|
186
|
+
/******/ priority = priority || 0;
|
|
187
|
+
/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
|
|
188
|
+
/******/ deferred[i] = [chunkIds, fn, priority];
|
|
189
|
+
/******/ return;
|
|
190
|
+
/******/ }
|
|
191
|
+
/******/ var notFulfilled = Infinity;
|
|
192
|
+
/******/ for (var i = 0; i < deferred.length; i++) {
|
|
193
|
+
/******/ var [chunkIds, fn, priority] = deferred[i];
|
|
194
|
+
/******/ var fulfilled = true;
|
|
195
|
+
/******/ for (var j = 0; j < chunkIds.length; j++) {
|
|
196
|
+
/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
|
|
197
|
+
/******/ chunkIds.splice(j--, 1);
|
|
198
|
+
/******/ } else {
|
|
199
|
+
/******/ fulfilled = false;
|
|
200
|
+
/******/ if(priority < notFulfilled) notFulfilled = priority;
|
|
201
|
+
/******/ }
|
|
202
|
+
/******/ }
|
|
203
|
+
/******/ if(fulfilled) {
|
|
204
|
+
/******/ deferred.splice(i--, 1)
|
|
205
|
+
/******/ var r = fn();
|
|
206
|
+
/******/ if (r !== undefined) result = r;
|
|
207
|
+
/******/ }
|
|
208
|
+
/******/ }
|
|
209
|
+
/******/ return result;
|
|
210
|
+
/******/ };
|
|
211
|
+
/******/ })();
|
|
212
|
+
/******/
|
|
213
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
214
|
+
/******/ (() => {
|
|
215
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
216
|
+
/******/ __webpack_require__.n = (module) => {
|
|
217
|
+
/******/ var getter = module && module.__esModule ?
|
|
218
|
+
/******/ () => (module['default']) :
|
|
219
|
+
/******/ () => (module);
|
|
220
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
221
|
+
/******/ return getter;
|
|
222
|
+
/******/ };
|
|
223
|
+
/******/ })();
|
|
224
|
+
/******/
|
|
225
|
+
/******/ /* webpack/runtime/define property getters */
|
|
226
|
+
/******/ (() => {
|
|
227
|
+
/******/ // define getter functions for harmony exports
|
|
228
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
229
|
+
/******/ for(var key in definition) {
|
|
230
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
231
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
232
|
+
/******/ }
|
|
233
|
+
/******/ }
|
|
234
|
+
/******/ };
|
|
235
|
+
/******/ })();
|
|
236
|
+
/******/
|
|
237
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
238
|
+
/******/ (() => {
|
|
239
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
240
|
+
/******/ })();
|
|
241
|
+
/******/
|
|
242
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
243
|
+
/******/ (() => {
|
|
244
|
+
/******/ // define __esModule on exports
|
|
245
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
246
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
247
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
248
|
+
/******/ }
|
|
249
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
250
|
+
/******/ };
|
|
251
|
+
/******/ })();
|
|
252
|
+
/******/
|
|
253
|
+
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
254
|
+
/******/ (() => {
|
|
255
|
+
/******/ // no baseURI
|
|
256
|
+
/******/
|
|
257
|
+
/******/ // object to store loaded and loading chunks
|
|
258
|
+
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
259
|
+
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
|
260
|
+
/******/ var installedChunks = {
|
|
261
|
+
/******/ 9798: 0,
|
|
262
|
+
/******/ 1981: 0
|
|
263
|
+
/******/ };
|
|
264
|
+
/******/
|
|
265
|
+
/******/ // no chunk on demand loading
|
|
266
|
+
/******/
|
|
267
|
+
/******/ // no prefetching
|
|
268
|
+
/******/
|
|
269
|
+
/******/ // no preloaded
|
|
270
|
+
/******/
|
|
271
|
+
/******/ // no HMR
|
|
272
|
+
/******/
|
|
273
|
+
/******/ // no HMR manifest
|
|
274
|
+
/******/
|
|
275
|
+
/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
|
|
276
|
+
/******/
|
|
277
|
+
/******/ // install a JSONP callback for chunk loading
|
|
278
|
+
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
|
|
279
|
+
/******/ var [chunkIds, moreModules, runtime] = data;
|
|
280
|
+
/******/ // add "moreModules" to the modules object,
|
|
281
|
+
/******/ // then flag all "chunkIds" as loaded and fire callback
|
|
282
|
+
/******/ var moduleId, chunkId, i = 0;
|
|
283
|
+
/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
|
|
284
|
+
/******/ for(moduleId in moreModules) {
|
|
285
|
+
/******/ if(__webpack_require__.o(moreModules, moduleId)) {
|
|
286
|
+
/******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
|
|
287
|
+
/******/ }
|
|
288
|
+
/******/ }
|
|
289
|
+
/******/ if(runtime) var result = runtime(__webpack_require__);
|
|
290
|
+
/******/ }
|
|
291
|
+
/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
|
|
292
|
+
/******/ for(;i < chunkIds.length; i++) {
|
|
293
|
+
/******/ chunkId = chunkIds[i];
|
|
294
|
+
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
|
|
295
|
+
/******/ installedChunks[chunkId][0]();
|
|
296
|
+
/******/ }
|
|
297
|
+
/******/ installedChunks[chunkIds[i]] = 0;
|
|
298
|
+
/******/ }
|
|
299
|
+
/******/ return __webpack_require__.O(result);
|
|
300
|
+
/******/ }
|
|
301
|
+
/******/
|
|
302
|
+
/******/ var chunkLoadingGlobal = self["webpackChunkatoka_design_system"] = self["webpackChunkatoka_design_system"] || [];
|
|
303
|
+
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
|
|
304
|
+
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
|
|
305
|
+
/******/ })();
|
|
306
|
+
/******/
|
|
307
|
+
/************************************************************************/
|
|
308
|
+
/******/
|
|
309
|
+
/******/ // startup
|
|
310
|
+
/******/ // Load entry module and return exports
|
|
311
|
+
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
312
|
+
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, [1981], () => (__webpack_require__(6380)))
|
|
313
|
+
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
|
314
|
+
/******/
|
|
315
|
+
/******/ return __webpack_exports__;
|
|
316
|
+
/******/ })()
|
|
317
|
+
;
|
|
318
|
+
});
|
|
319
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Alert/index.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACV0B;AACU;AACQ;AACmB;AAEzC;AAatB;;;;;;;;;;;;;GAaG;AACH;IAAoB,yBAA+B;IAAnD;;IA8CA,CAAC;IAvCW,0BAAU,GAAlB;QACI,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,IAAI,EAAE;YACzB,OAAO,IAAI,CAAC;SACf;QAED,OAAO,uCAAC,kCAAe,IAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,GAAI,CAAC;IACtD,CAAC;IAEO,8BAAc,GAAtB;QACI,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,IAAI,EAAE;YAC7B,OAAO,IAAI,CAAC;SACf;QAED,OAAO,gDAAK,SAAS,EAAC,gBAAgB,IAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAO,CAAC;IACvE,CAAC;IAEO,6BAAa,GAArB;QACI,OAAO,CACH,gDAAK,SAAS,EAAC,gCAAgC;YAC1C,IAAI,CAAC,UAAU,EAAE;YACjB,IAAI,CAAC,cAAc,EAAE,CACpB,CACT,CAAC;IACN,CAAC;IAEM,sBAAM,GAAb;QACI,IAAM,SAAS,GAAW,6BAAU,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;QAE1E,OAAO,CACH,uCAAC,iBAAO,aACJ,SAA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jDA;UACA;UACA;UACA;UACA","sources":["webpack://atoka-design-system/webpack/universalModuleDefinition","webpack://atoka-design-system/./src/components/Alert/Alert.tsx","webpack://atoka-design-system/./src/components/Alert/index.ts","webpack://atoka-design-system/external umd \"@fortawesome/react-fontawesome\"","webpack://atoka-design-system/external umd \"classnames\"","webpack://atoka-design-system/external umd \"react\"","webpack://atoka-design-system/external umd \"react-bootstrap/Alert\"","webpack://atoka-design-system/webpack/bootstrap","webpack://atoka-design-system/webpack/runtime/chunk loaded","webpack://atoka-design-system/webpack/runtime/compat get default export","webpack://atoka-design-system/webpack/runtime/define property getters","webpack://atoka-design-system/webpack/runtime/hasOwnProperty shorthand","webpack://atoka-design-system/webpack/runtime/make namespace object","webpack://atoka-design-system/webpack/runtime/jsonp chunk loading","webpack://atoka-design-system/webpack/before-startup","webpack://atoka-design-system/webpack/startup","webpack://atoka-design-system/webpack/after-startup"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"@fortawesome/react-fontawesome\"), require(\"classnames\"), require(\"react\"), require(\"react-bootstrap/Alert\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"atoka-design-system\", [\"@fortawesome/react-fontawesome\", \"classnames\", \"react\", \"react-bootstrap/Alert\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"atoka-design-system\"] = factory(require(\"@fortawesome/react-fontawesome\"), require(\"classnames\"), require(\"react\"), require(\"react-bootstrap/Alert\"));\n\telse\n\t\troot[\"atoka-design-system\"] = factory(root[\"@fortawesome/react-fontawesome\"], root[\"classnames\"], root[\"react\"], root[\"react-bootstrap/Alert\"]);\n})(self, function(__WEBPACK_EXTERNAL_MODULE__5692__, __WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__, __WEBPACK_EXTERNAL_MODULE__5859__) {\nreturn ","import React from 'react';\nimport classnames from 'classnames';\nimport BsAlert from 'react-bootstrap/Alert';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\n\nimport './Alert.less';\nimport {IconDefinition} from '@fortawesome/pro-light-svg-icons';\nimport {PropsWithClassName} from '../Utils';\n\ntype AlertVariant = 'danger' | 'success' | 'warning' | 'info';\n\ninterface AlertProps extends PropsWithClassName {\n icon?: IconDefinition;\n variant: AlertVariant;\n isDismissible?: boolean;\n onClose?: () => void;\n isShown?: boolean;\n}\n/**\n * ### Overview\n * An alert is a contextual notification which appears in the page to give the user an information regarding their current work. They will remain displayed until dismissed or no longer relevant. There are four types of alerts:\n *\n * - Danger: this message indicates a dangerous or potentially negative action that the user must take notice of\n * - Warning: this alert tells the user to proceed with caution with their actions on the platform\n * - Success: this message is indicative that the user just performed a successful or positive action\n * - Info: this alert has the scope of letting the user know about a neutral and informative change or action on Atoka\n *\n * ### Best practices\n * - Use alerts sparingly: if there are too many alerts, the user will end up avoiding them due to cognitive overload and miss important information\n * - Use alerts to notify the user of information that is either time-sensitive or relevant to the action the user is performing\n * - Keep the text informative but not too long\n */\nclass Alert extends React.PureComponent<AlertProps> {\n static displayName: string = 'Alert';\n public static Heading: typeof BsAlert.Heading = BsAlert.Heading;\n public static defaultProps: Partial<AlertProps> = {\n variant: 'danger',\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 <div className='alert-children'>{this.props.children}</div>;\n }\n\n private renderContent(): React.ReactNode {\n return (\n <div className='alert-content-container d-flex'>\n {this.renderIcon()}\n {this.renderChildren()}\n </div>\n );\n }\n\n public render(): React.ReactNode {\n const className: string = classnames(this.props.className, 'atoka-alert');\n\n return (\n <BsAlert\n className={className}\n dismissible={this.props.isDismissible}\n show={this.props.isShown}\n {...this.props}\n >\n {this.renderContent()}\n </BsAlert>\n );\n }\n}\n\nexport {Alert, AlertVariant, AlertProps};\n","// use the star because of this issue: https://github.com/babel/babel-loader/issues/603\nexport * from './Alert';\n","module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;","module.exports = __WEBPACK_EXTERNAL_MODULE__5859__;","// 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\t9798: 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__(6380)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":[],"sourceRoot":""}
|
package/Badge/Badge.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BadgeProps as BsBadgeProps } from 'react-bootstrap/Badge';
|
|
3
|
+
import { IconDefinition } from '@fortawesome/pro-light-svg-icons';
|
|
4
|
+
import './Badge.less';
|
|
5
|
+
export declare type BadgeColor = 'bluekeywords' | 'bluestartup' | 'bluepa' | 'red' | 'yellow' | 'green' | 'bluedivision' | 'blue300' | 'gray' | 'black' | 'orange' | 'pinkbaby' | 'gray300';
|
|
6
|
+
export declare type BadgeVariant = 'primary' | 'secondary' | 'tertiary';
|
|
7
|
+
export declare type BadgeSizes = 'sm' | 'md';
|
|
8
|
+
export interface BadgeProps extends BsBadgeProps {
|
|
9
|
+
icon?: IconDefinition;
|
|
10
|
+
size?: BadgeSizes;
|
|
11
|
+
/**
|
|
12
|
+
* Variant defines the form of the badge.
|
|
13
|
+
*/
|
|
14
|
+
variant: BadgeVariant;
|
|
15
|
+
/**
|
|
16
|
+
* note: `bluepa` stands for blue public administration.
|
|
17
|
+
*/
|
|
18
|
+
color: BadgeColor;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* ### Overview
|
|
22
|
+
*
|
|
23
|
+
* A `Badge` is a component which represents an attribute of a specific element. There are three types of badges:
|
|
24
|
+
*
|
|
25
|
+
* - **Primary** is used for:
|
|
26
|
+
* - Sales funnel states
|
|
27
|
+
* - Indication of customer divisions
|
|
28
|
+
* - Variant with icon: used to show user state in settings page
|
|
29
|
+
*
|
|
30
|
+
* - **Secondary** is used for:
|
|
31
|
+
* - specific company types e.g. startup
|
|
32
|
+
* - Indication of customer divisions
|
|
33
|
+
* - Variant with icon: used to show division permissions
|
|
34
|
+
*
|
|
35
|
+
* - **Tertiary** is used to display a company’s state
|
|
36
|
+
*/
|
|
37
|
+
declare const Badge: React.FC<React.PropsWithChildren<BadgeProps>>;
|
|
38
|
+
export { Badge };
|
package/Badge/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Badge';
|