@spaziodati/atoka-design-system 9.0.1-beta.0 → 10.0.0
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 +80 -0
- package/AddableItems/ClickableItemList.d.ts +32 -0
- package/AddableItems/index.d.ts +2 -0
- package/{es37.js → AddableItems/index.js} +4 -4
- package/Alert/Alert.d.ts +59 -0
- package/Alert/index.d.ts +1 -0
- package/Alert/index.js +5 -0
- package/Badge/Badge.d.ts +42 -0
- package/Badge/index.d.ts +1 -0
- package/Badge/index.js +4 -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 +4 -0
- package/BubbleChart/BubbleChart.d.ts +33 -0
- package/BubbleChart/BubbleChartUI.d.ts +31 -0
- package/BubbleChart/index.d.ts +2 -0
- package/{es38.js → BubbleChart/index.js} +7 -7
- package/Button/Button.d.ts +27 -0
- package/Button/Button.storiesConfig.d.ts +58 -0
- package/Button/index.d.ts +1 -0
- package/Button/index.js +4 -0
- package/ButtonDropdown/ButtonDropdown.d.ts +23 -0
- package/ButtonDropdown/index.d.ts +2 -0
- package/{es39.js → ButtonDropdown/index.js} +2 -2
- package/CardsPage/CardsPage.d.ts +14 -0
- package/CardsPage/CardsPageActions.d.ts +4 -0
- package/CardsPage/CardsPageCards.d.ts +10 -0
- package/CardsPage/CardsPageCardsCounter.d.ts +6 -0
- package/CardsPage/CardsPageFilters.d.ts +5 -0
- package/CardsPage/CardsPageFullText.d.ts +5 -0
- package/CardsPage/CardsPageHeader.d.ts +13 -0
- package/CardsPage/CardsPageLayoutMode.d.ts +12 -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 +4 -0
- package/CardsPage/CardsPageTabContent.d.ts +26 -0
- package/CardsPage/CardsPageTabSwitcher.d.ts +3 -0
- package/CardsPage/CardsPageTitle.d.ts +4 -0
- package/CardsPage/index.d.ts +2 -0
- package/{es62.js → CardsPage/index.js} +12 -12
- package/ClickableExcludableItem/ClickableExcludableItem.d.ts +32 -0
- package/ClickableExcludableItem/index.d.ts +1 -0
- package/ClickableExcludableItem/index.js +4 -0
- package/CursorPagination/CursorPagination.d.ts +21 -0
- package/CursorPagination/index.d.ts +1 -0
- package/{es29.js → CursorPagination/index.js} +3 -3
- package/DatePicker/DatePicker.d.ts +38 -0
- package/DatePicker/index.d.ts +1 -0
- package/DatePicker/index.js +4 -0
- package/DatePickerInput/DatePickerInput.d.ts +26 -0
- package/DatePickerInput/index.d.ts +1 -0
- package/{es30.js → DatePickerInput/index.js} +4 -4
- package/DetailPage/DetailPage.d.ts +40 -0
- package/DetailPage/DetailPageBody.d.ts +17 -0
- package/DetailPage/DetailPageBodyAlert.d.ts +4 -0
- package/DetailPage/DetailPageBodyContainer.d.ts +3 -0
- package/DetailPage/DetailPageBodySection.d.ts +6 -0
- package/DetailPage/DetailPageHeaderContainer.d.ts +4 -0
- package/DetailPage/DetailPageHeaderUI.d.ts +17 -0
- package/DetailPage/DetailPageMenuContainer.d.ts +3 -0
- package/DetailPage/DetailPageMenuUI.d.ts +8 -0
- package/DetailPage/DetailPageNavLink.d.ts +8 -0
- package/DetailPage/index.d.ts +2 -0
- package/{es61.js → DetailPage/index.js} +6 -6
- package/DetailPageContent/DetailPageContent.d.ts +24 -0
- package/DetailPageContent/fixtures.d.ts +14 -0
- package/DetailPageContent/index.d.ts +1 -0
- package/{es40.js → DetailPageContent/index.js} +3 -3
- package/Dropdown/AtokaDropdownToggles.d.ts +11 -0
- package/Dropdown/Dropdown.d.ts +14 -0
- package/Dropdown/DropdownMenu.d.ts +11 -0
- package/Dropdown/DropdownSection.d.ts +5 -0
- package/Dropdown/index.d.ts +3 -0
- package/{es7.js → Dropdown/index.js} +1 -1
- package/EditableString/EditableString.d.ts +49 -0
- package/EditableString/index.d.ts +1 -0
- package/{es56.js → EditableString/index.js} +7 -7
- package/EllipsableContent/EllipsableContent.d.ts +22 -0
- package/EllipsableContent/index.d.ts +1 -0
- package/EllipsableContent/index.js +4 -0
- package/EmptyState/EmptyState.d.ts +12 -0
- package/EmptyState/index.d.ts +1 -0
- package/EmptyState/index.js +4 -0
- package/Expandable/Expandable.d.ts +22 -0
- package/Expandable/index.d.ts +1 -0
- package/{es41.js → Expandable/index.js} +3 -3
- package/Facet/Facet.d.ts +27 -0
- package/Facet/FacetHelp.d.ts +28 -0
- package/Facet/FacetItemCount.d.ts +7 -0
- package/Facet/FacetSubtitle.d.ts +4 -0
- package/Facet/helpForFacet.d.ts +2 -0
- package/Facet/index.d.ts +1 -0
- package/{es57.js → Facet/index.js} +5 -5
- package/FacetSection/FacetSection.d.ts +21 -0
- package/FacetSection/index.d.ts +1 -0
- package/{es42.js → FacetSection/index.js} +4 -4
- package/FadeAnimation/FadeAnimation.d.ts +14 -0
- package/FadeAnimation/index.d.ts +1 -0
- package/FadeAnimation/index.js +4 -0
- package/FeedbackButton/FeedbackButton.d.ts +19 -0
- package/FeedbackButton/index.d.ts +1 -0
- package/{es43.js → FeedbackButton/index.js} +2 -2
- package/Form/Form.d.ts +22 -0
- package/Form/FormCheckbox.d.ts +10 -0
- package/Form/FormControl.d.ts +25 -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 +4 -0
- package/Funnel/Funnel.d.ts +38 -0
- package/Funnel/FunnelUI.d.ts +34 -0
- package/Funnel/SVGDataLabel.d.ts +12 -0
- package/Funnel/fixture.d.ts +23 -0
- package/Funnel/index.d.ts +1 -0
- package/{es54.js → Funnel/index.js} +7 -7
- package/Gauge/GaugeLinear.d.ts +45 -0
- package/Gauge/index.d.ts +1 -0
- package/{es31.js → Gauge/index.js} +5 -5
- package/GeoMap/GeoMap.d.ts +18 -0
- package/GeoMap/index.d.ts +1 -0
- package/{es44.js → GeoMap/index.js} +2 -2
- package/GridCard/CardMenu.d.ts +6 -0
- package/GridCard/CardTitle.d.ts +5 -0
- package/GridCard/Fixtures.d.ts +3 -0
- package/GridCard/GridCard.d.ts +30 -0
- package/GridCard/GridCardActions.d.ts +6 -0
- package/GridCard/GridCardContent.d.ts +4 -0
- package/GridCard/GridCardFooter.d.ts +4 -0
- package/GridCard/GridCardHeader.d.ts +14 -0
- package/GridCard/GridCardTags.d.ts +4 -0
- package/GridCard/index.d.ts +1 -0
- package/{es58.js → GridCard/index.js} +5 -5
- package/HighlightableText/HighlightableText.d.ts +20 -0
- package/HighlightableText/index.d.ts +1 -0
- package/HighlightableText/index.js +4 -0
- package/Histogram/Histogram.d.ts +140 -0
- package/Histogram/Types.d.ts +18 -0
- package/Histogram/index.d.ts +2 -0
- package/{es45.js → Histogram/index.js} +9 -9
- package/InlineStringEditor/InlineStringEditor.d.ts +52 -0
- package/InlineStringEditor/index.d.ts +1 -0
- package/InlineStringEditor/index.js +4 -0
- package/InputGroup/InputGroup.d.ts +17 -0
- package/InputGroup/InputGroupShortcut.d.ts +25 -0
- package/InputGroup/InputGroupShortcutBadge.d.ts +7 -0
- package/InputGroup/InputGroupText.d.ts +2 -0
- package/InputGroup/index.d.ts +2 -0
- package/InputGroup/index.js +5 -0
- package/Jumbotron/Jumbotron.d.ts +16 -0
- package/Jumbotron/index.d.ts +1 -0
- package/{es46.js → Jumbotron/index.js} +1 -1
- 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/config.d.ts +3 -0
- package/Map/index.d.ts +2 -0
- package/{es63.js → Map/index.js} +6 -6
- package/Modal/Modal.d.ts +37 -0
- package/Modal/index.d.ts +1 -0
- package/Modal/index.js +4 -0
- package/MultiModeDatePicker/MultiModeDatePicker.d.ts +15 -0
- package/MultiModeDatePicker/Types.d.ts +66 -0
- package/MultiModeDatePicker/index.d.ts +2 -0
- package/MultiModeDatePicker/index.js +4 -0
- package/Navbar/Navbar.d.ts +46 -0
- package/Navbar/NavbarMobileMenuCollapse.d.ts +5 -0
- package/Navbar/NavbarMobileMenuToggle.d.ts +5 -0
- package/Navbar/NavbarNavigationMenu.d.ts +9 -0
- package/Navbar/NavbarNavigationMenuItem.d.ts +10 -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 +32 -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 +5 -0
- package/Navbar/index.d.ts +1 -0
- package/{es64.js → Navbar/index.js} +12 -12
- package/OniruCard/OniruCard.d.ts +9 -0
- package/OniruCard/index.d.ts +1 -0
- package/OniruCard/index.js +4 -0
- package/Pagination/Pagination.d.ts +29 -0
- package/Pagination/PaginationNext.d.ts +7 -0
- package/Pagination/PaginationPrev.d.ts +7 -0
- package/Pagination/index.d.ts +1 -0
- package/{es32.js → Pagination/index.js} +3 -3
- package/PieChart/PieChart.d.ts +71 -0
- package/PieChart/index.d.ts +1 -0
- package/{es33.js → PieChart/index.js} +8 -8
- package/PublicFooter/PublicFooter.d.ts +8 -0
- package/PublicFooter/index.d.ts +1 -0
- package/{es47.js → PublicFooter/index.js} +2 -2
- package/PublicNavbar/PublicNavbar.d.ts +8 -0
- package/PublicNavbar/index.d.ts +1 -0
- package/{es48.js → PublicNavbar/index.js} +1 -1
- package/RecordBit/RecordBit.d.ts +11 -0
- package/RecordBit/index.d.ts +1 -0
- package/{es49.js → RecordBit/index.js} +4 -4
- package/ResponsiveLineChart/ResponsiveLineChart.d.ts +37 -0
- package/ResponsiveLineChart/index.d.ts +1 -0
- package/{es34.js → ResponsiveLineChart/index.js} +5 -5
- package/ResultItemCard/ItemImage.d.ts +6 -0
- package/ResultItemCard/ResultItemCard.d.ts +20 -0
- package/ResultItemCard/ResultItemCardActions.d.ts +3 -0
- package/ResultItemCard/ResultItemCardFooter.d.ts +6 -0
- package/ResultItemCard/ResultItemCardImage.d.ts +4 -0
- package/ResultItemCard/ResultItemCardSidebar.d.ts +5 -0
- package/ResultItemCard/ResultItemCardSubtitle.d.ts +3 -0
- package/ResultItemCard/ResultItemCardTitle.d.ts +8 -0
- package/ResultItemCard/index.d.ts +1 -0
- package/{es60.js → ResultItemCard/index.js} +6 -6
- package/RowCard/Fixtures.d.ts +2 -0
- package/RowCard/RowCard.d.ts +21 -0
- package/RowCard/RowCardActions.d.ts +8 -0
- package/RowCard/RowCardContent.d.ts +10 -0
- package/RowCard/RowCardHeader.d.ts +8 -0
- package/RowCard/RowCardLayout.d.ts +28 -0
- package/RowCard/RowCardMenu.d.ts +4 -0
- package/RowCard/index.d.ts +1 -0
- package/RowCard/index.js +4 -0
- package/SelectDropdown/SelectDropdown.d.ts +32 -0
- package/SelectDropdown/index.d.ts +1 -0
- package/SelectDropdown/index.js +4 -0
- package/Spinner/Spinner.d.ts +32 -0
- package/Spinner/index.d.ts +1 -0
- package/Spinner/index.js +5 -0
- package/StatisticsItemCard/StatisticsItemCard.d.ts +35 -0
- package/StatisticsItemCard/config.d.ts +3 -0
- package/StatisticsItemCard/index.d.ts +1 -0
- package/{es50.js → StatisticsItemCard/index.js} +9 -9
- package/StatisticsItemNumeric/StatisticsItemNumeric.d.ts +18 -0
- package/StatisticsItemNumeric/index.d.ts +1 -0
- package/{es51.js → StatisticsItemNumeric/index.js} +1 -1
- 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 +18 -0
- package/StatisticsLegend/index.d.ts +3 -0
- package/{es35.js → StatisticsLegend/index.js} +3 -3
- package/StatisticsTooltip/StatisticsTooltip.d.ts +23 -0
- package/StatisticsTooltip/helpers.d.ts +19 -0
- package/StatisticsTooltip/index.d.ts +2 -0
- package/StatisticsTooltip/index.js +6 -0
- package/StreamDialog/StreamDialog.d.ts +11 -0
- package/StreamDialog/index.d.ts +1 -0
- package/{es52.js → StreamDialog/index.js} +3 -3
- package/Suggester/CustomOption.d.ts +39 -0
- package/Suggester/InputValueContainer.d.ts +11 -0
- package/Suggester/Suggester.d.ts +78 -0
- package/Suggester/SuggesterUI.d.ts +26 -0
- package/Suggester/getRenderCustomMultiValueWithIcon.d.ts +5 -0
- package/Suggester/index.d.ts +3 -0
- package/{es59.js → Suggester/index.js} +6 -6
- package/SuggestionCard/SuggestionCard.d.ts +10 -0
- package/SuggestionCard/index.d.ts +1 -0
- package/{es53.js → SuggestionCard/index.js} +2 -2
- package/SunBurst/SunBurst.d.ts +61 -0
- package/SunBurst/index.d.ts +2 -0
- package/{es36.js → SunBurst/index.js} +6 -6
- package/TabSwitcher/TabSwitcher.d.ts +36 -0
- package/TabSwitcher/TabSwitcherChoice.d.ts +17 -0
- package/TabSwitcher/index.d.ts +1 -0
- package/TabSwitcher/index.js +4 -0
- package/Text/Text.d.ts +10 -0
- package/Text/index.d.ts +1 -0
- package/Text/index.js +4 -0
- package/Title/Title.d.ts +16 -0
- package/Title/index.d.ts +1 -0
- package/Title/index.js +4 -0
- package/Toast/Toast.d.ts +68 -0
- package/Toast/ToastContainer.d.ts +4 -0
- package/Toast/ToastHeader.d.ts +9 -0
- package/Toast/index.d.ts +2 -0
- package/{es55.js → Toast/index.js} +6 -6
- package/ToggleButtonGroup/ToggleButton.d.ts +16 -0
- package/ToggleButtonGroup/ToggleButtonGroup.d.ts +29 -0
- package/ToggleButtonGroup/index.d.ts +1 -0
- package/ToggleButtonGroup/index.js +4 -0
- package/Tooltip/Tooltip.d.ts +20 -0
- package/Tooltip/index.d.ts +1 -0
- package/Tooltip/index.js +4 -0
- package/UserAvatar/UserAvatar.d.ts +8 -0
- package/UserAvatar/index.d.ts +1 -0
- package/UserAvatar/index.js +4 -0
- package/Utils/CommonTypes.d.ts +36 -0
- package/Utils/Statistics.d.ts +4 -0
- package/Utils/Style.d.ts +13 -0
- package/Utils/Text.d.ts +12 -0
- package/Utils/Utils.d.ts +18 -0
- package/Utils/index.d.ts +5 -0
- package/{es28.js → Utils/index.js} +4 -4
- package/{RowCard-rZoi_8Bm.js → _shared/RowCard-Do8PVEjP.js} +1 -1
- package/package.json +3 -121
- package/es.js +0 -4
- package/es10.js +0 -4
- package/es11.js +0 -4
- package/es12.js +0 -4
- package/es13.js +0 -4
- package/es14.js +0 -5
- package/es15.js +0 -4
- package/es16.js +0 -4
- package/es17.js +0 -4
- package/es18.js +0 -4
- package/es19.js +0 -4
- package/es2.js +0 -5
- package/es20.js +0 -5
- package/es21.js +0 -6
- package/es22.js +0 -4
- package/es23.js +0 -4
- package/es24.js +0 -4
- package/es25.js +0 -4
- package/es26.js +0 -4
- package/es27.js +0 -4
- package/es3.js +0 -4
- package/es4.js +0 -4
- package/es5.js +0 -4
- package/es6.js +0 -4
- package/es8.js +0 -4
- package/es9.js +0 -4
- /package/{Alert-DfrkiukZ.js → _shared/Alert-DfrkiukZ.js} +0 -0
- /package/{AtokaDropdownToggles-s9UdVkW7.js → _shared/AtokaDropdownToggles-s9UdVkW7.js} +0 -0
- /package/{Badge-BZz9-F86.js → _shared/Badge-BZz9-F86.js} +0 -0
- /package/{Bs4V3Wrapper-BKRW0pvE.js → _shared/Bs4V3Wrapper-BKRW0pvE.js} +0 -0
- /package/{Button-Bn8PyQFK.js → _shared/Button-Bn8PyQFK.js} +0 -0
- /package/{CSSTransition-BGcESi-j.js → _shared/CSSTransition-BGcESi-j.js} +0 -0
- /package/{CardMenu-Dtn3ekWc.js → _shared/CardMenu-Dtn3ekWc.js} +0 -0
- /package/{ClickableItemList-Cid_9WPj.js → _shared/ClickableItemList-Cid_9WPj.js} +0 -0
- /package/{DatePicker-BAGYjcIT.js → _shared/DatePicker-BAGYjcIT.js} +0 -0
- /package/{EllipsableContent-D5WSnr7s.js → _shared/EllipsableContent-D5WSnr7s.js} +0 -0
- /package/{EmptyState-BQyVos2X.js → _shared/EmptyState-BQyVos2X.js} +0 -0
- /package/{FacetItemCount-DUqXavDQ.js → _shared/FacetItemCount-DUqXavDQ.js} +0 -0
- /package/{FadeAnimation-BVTCzTXW.js → _shared/FadeAnimation-BVTCzTXW.js} +0 -0
- /package/{Form-l9l_S-Uk.js → _shared/Form-l9l_S-Uk.js} +0 -0
- /package/{HighlightableText-D0tZl92S.js → _shared/HighlightableText-D0tZl92S.js} +0 -0
- /package/{InlineStringEditor-Do24E8yV.js → _shared/InlineStringEditor-Do24E8yV.js} +0 -0
- /package/{InputGroupShortcut-B6ccNgw4.js → _shared/InputGroupShortcut-B6ccNgw4.js} +0 -0
- /package/{ItemImage-Bii41hXJ.js → _shared/ItemImage-Bii41hXJ.js} +0 -0
- /package/{Modal-DyYcAysY.js → _shared/Modal-DyYcAysY.js} +0 -0
- /package/{MultiModeDatePicker-CHfI589j.js → _shared/MultiModeDatePicker-CHfI589j.js} +0 -0
- /package/{OniruCard-g_9qIXxK.js → _shared/OniruCard-g_9qIXxK.js} +0 -0
- /package/{PaginationNext-BOdbeCda.js → _shared/PaginationNext-BOdbeCda.js} +0 -0
- /package/{SelectDropdown-CamvT0US.js → _shared/SelectDropdown-CamvT0US.js} +0 -0
- /package/{Spinner-DHoqZ2pO.js → _shared/Spinner-DHoqZ2pO.js} +0 -0
- /package/{Statistics-Coxe2jk5.js → _shared/Statistics-Coxe2jk5.js} +0 -0
- /package/{StatisticsSVGLegend-BAuiH8MT.js → _shared/StatisticsSVGLegend-BAuiH8MT.js} +0 -0
- /package/{StatisticsTooltip-7DgI4Yoj.js → _shared/StatisticsTooltip-7DgI4Yoj.js} +0 -0
- /package/{Style-CSNnkrg3.js → _shared/Style-CSNnkrg3.js} +0 -0
- /package/{TabSwitcher-DPpuunX7.js → _shared/TabSwitcher-DPpuunX7.js} +0 -0
- /package/{Text-B4AyT0Tx.js → _shared/Text-B4AyT0Tx.js} +0 -0
- /package/{Text-CfPEdZ8Z.js → _shared/Text-CfPEdZ8Z.js} +0 -0
- /package/{Title-Bjj6BAK7.js → _shared/Title-Bjj6BAK7.js} +0 -0
- /package/{ToggleButtonGroup-Duq22aii.js → _shared/ToggleButtonGroup-Duq22aii.js} +0 -0
- /package/{Tooltip-Ds1ht2gU.js → _shared/Tooltip-Ds1ht2gU.js} +0 -0
- /package/{UserAvatar-CCWSU88K.js → _shared/UserAvatar-CCWSU88K.js} +0 -0
- /package/{Utils-CXFvxozf.js → _shared/Utils-CXFvxozf.js} +0 -0
- /package/{helpers-DbJ4Yobs.js → _shared/helpers-DbJ4Yobs.js} +0 -0
- /package/{jsx-runtime-CkWJgiG5.js → _shared/jsx-runtime-CkWJgiG5.js} +0 -0
- /package/{atoka-design-system-9.0.1-beta.0.min.css → atoka-design-system-10.0.0.min.css} +0 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ItemAdditionType } from '../ClickableExcludableItem';
|
|
3
|
+
import { NumberToStringFormatterType, PropsWithClassName } from '../Utils/CommonTypes';
|
|
4
|
+
import { ClickableFacetItem } from './ClickableItemList';
|
|
5
|
+
import './AddableItems.scss';
|
|
6
|
+
export declare function extractFacetKeyFromItemValue(key: ClickableFacetItem | string): string;
|
|
7
|
+
export type AddableItemsData<ItemType extends ClickableFacetItem, Extras = Record<string, unknown>> = {
|
|
8
|
+
count: number;
|
|
9
|
+
items: ItemType[];
|
|
10
|
+
} & Extras;
|
|
11
|
+
export interface AddableItemsFacetData<ItemType extends ClickableFacetItem, Extras = Record<string, unknown>> {
|
|
12
|
+
data: AddableItemsData<ItemType, Extras>;
|
|
13
|
+
}
|
|
14
|
+
export type AddableItemsConfig<ItemType extends ClickableFacetItem, Extras = Record<string, unknown>> = {
|
|
15
|
+
include: ItemType[];
|
|
16
|
+
exclude?: ItemType[];
|
|
17
|
+
itemCount?: number;
|
|
18
|
+
isActive?: boolean;
|
|
19
|
+
} & Extras;
|
|
20
|
+
export interface AddableItemsProps<ItemType extends ClickableFacetItem = ClickableFacetItem, ExtraConfig = Record<string, unknown>, ExtraData = Record<string, unknown>> extends PropsWithClassName {
|
|
21
|
+
config: AddableItemsConfig<ItemType, ExtraConfig>;
|
|
22
|
+
facetData: AddableItemsFacetData<ItemType, ExtraData>;
|
|
23
|
+
/** this function is used to define which key should be used for each item; if not set, `item.value` is used */
|
|
24
|
+
itemKeyGetter?: (item: ItemType) => string;
|
|
25
|
+
/** this function pushes the clicked item to the `selected items` list */
|
|
26
|
+
onAddItem: (item: ItemType, additionType: ItemAdditionType) => void;
|
|
27
|
+
/** this function removes the clicked item from lists */
|
|
28
|
+
onRemoveItem: (item: ItemType) => void;
|
|
29
|
+
/** this function removes all the items from lists */
|
|
30
|
+
onRemoveAll?: () => void;
|
|
31
|
+
/** this function renders an additional suggester field */
|
|
32
|
+
renderSuggester?: () => JSX.Element;
|
|
33
|
+
/** this function renders one or many additional generic fields */
|
|
34
|
+
renderModifiers?: () => JSX.Element;
|
|
35
|
+
/** this is the label on top of the selected items */
|
|
36
|
+
label?: string;
|
|
37
|
+
/** this is the label for `removeAll` button */
|
|
38
|
+
unselectLabel?: string;
|
|
39
|
+
/** the label used to prefix excluded items */
|
|
40
|
+
notSuffixLabel?: string;
|
|
41
|
+
/** an object that contains tooltips info messages for included and excluded items */
|
|
42
|
+
tooltipMessages?: {
|
|
43
|
+
[key: string]: string;
|
|
44
|
+
};
|
|
45
|
+
/** label for the on-hover include button */
|
|
46
|
+
includeBtnLabel: string;
|
|
47
|
+
/** label for the on-hover exclude button */
|
|
48
|
+
excludeBtnLabel: string;
|
|
49
|
+
/** this function returns a custom React Node to override the base content of an item */
|
|
50
|
+
itemContentRenderer?: (item: ItemType) => React.ReactNode;
|
|
51
|
+
/** this function allows to exclude/include the selected items */
|
|
52
|
+
onToggleIncludeExclude?: (item: ItemType, isExcluded: boolean) => void;
|
|
53
|
+
/** this is the message that appears when the list of selectable items will be empty */
|
|
54
|
+
emptyMessage?: string;
|
|
55
|
+
/** this function allow to use a custom formatters numbers, generally counts in facets items */
|
|
56
|
+
countFormatter?: NumberToStringFormatterType;
|
|
57
|
+
isLoading?: true;
|
|
58
|
+
/** shows a button on hover that allows the user to select an item as excluded */
|
|
59
|
+
supportsExclusionHoverButton?: true;
|
|
60
|
+
}
|
|
61
|
+
export interface AddableItemsState {
|
|
62
|
+
isFirstRender: boolean;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* ### Overview
|
|
66
|
+
*
|
|
67
|
+
* The `AddableItems` component is most useful to display a selection list and select many items.
|
|
68
|
+
* All items selected are commonly used to include these voices on a search.
|
|
69
|
+
* */
|
|
70
|
+
export declare class AddableItems<ItemType extends ClickableFacetItem> extends React.PureComponent<AddableItemsProps<ItemType>, AddableItemsState> {
|
|
71
|
+
static displayName: string;
|
|
72
|
+
constructor(props: AddableItemsProps<ItemType>);
|
|
73
|
+
componentDidUpdate(): void;
|
|
74
|
+
private renderItemContent;
|
|
75
|
+
private getItemContentRenderer;
|
|
76
|
+
private renderRemovableItemsTitle;
|
|
77
|
+
private renderRemovableItems;
|
|
78
|
+
private getEmptyMessage;
|
|
79
|
+
render(): React.ReactNode;
|
|
80
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ClickableExcludableItemProps, ItemAdditionType } from '../ClickableExcludableItem/ClickableExcludableItem';
|
|
3
|
+
import { PropsWithClassName } from '../Utils';
|
|
4
|
+
import { AddableItemsProps } from '.';
|
|
5
|
+
export declare enum ClickableItemKind {
|
|
6
|
+
add = 0,
|
|
7
|
+
remove = 1
|
|
8
|
+
}
|
|
9
|
+
export interface ClickableFacetItem {
|
|
10
|
+
count?: number;
|
|
11
|
+
size?: number;
|
|
12
|
+
label?: string;
|
|
13
|
+
value: string;
|
|
14
|
+
key?: string;
|
|
15
|
+
legalName?: string;
|
|
16
|
+
type?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface ClickableItemListProps<ItemType extends ClickableFacetItem> extends Pick<AddableItemsProps<ItemType>, 'onToggleIncludeExclude' | 'itemContentRenderer' | 'tooltipMessages' | 'notSuffixLabel' | 'countFormatter' | 'itemKeyGetter' | 'includeBtnLabel' | 'excludeBtnLabel' | 'supportsExclusionHoverButton' | 'emptyMessage'>, Pick<ClickableExcludableItemProps, 'kind'>, PropsWithClassName {
|
|
19
|
+
items: ItemType[];
|
|
20
|
+
onClick: (item: ItemType, additionType: ItemAdditionType) => void;
|
|
21
|
+
supportsExclusionAfterInclusion?: boolean;
|
|
22
|
+
areItemsExcluded?: boolean;
|
|
23
|
+
'aria-label': string;
|
|
24
|
+
}
|
|
25
|
+
export declare class ClickableItemList<ItemType extends ClickableFacetItem = ClickableFacetItem> extends React.Component<ClickableItemListProps<ItemType>> {
|
|
26
|
+
static displayName: string;
|
|
27
|
+
private getItemKey;
|
|
28
|
+
private renderItem;
|
|
29
|
+
private needToShowEmptyMessage;
|
|
30
|
+
private getItems;
|
|
31
|
+
render(): JSX.Element;
|
|
32
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "
|
|
1
|
+
import { j as jsxRuntimeExports } from "../_shared/jsx-runtime-CkWJgiG5.js";
|
|
2
2
|
import classnames from "classnames";
|
|
3
3
|
import React__default from "react";
|
|
4
|
-
import { B as Button } from "
|
|
5
|
-
import { T as Text } from "
|
|
6
|
-
import { a as ClickableItemKind, b as ClickableItemList } from "
|
|
4
|
+
import { B as Button } from "../_shared/Button-Bn8PyQFK.js";
|
|
5
|
+
import { T as Text } from "../_shared/Text-B4AyT0Tx.js";
|
|
6
|
+
import { a as ClickableItemKind, b as ClickableItemList } from "../_shared/ClickableItemList-Cid_9WPj.js";
|
|
7
7
|
function extractFacetKeyFromItemValue(key) {
|
|
8
8
|
return typeof key === "object" ? key.value : key;
|
|
9
9
|
}
|
package/Alert/Alert.d.ts
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
3
|
+
import './Alert.scss';
|
|
4
|
+
import { PropsWithClassName } from '../Utils';
|
|
5
|
+
import { ButtonProps } from '../Button';
|
|
6
|
+
type AlertVariant = 'danger' | 'success' | 'warning' | 'info';
|
|
7
|
+
declare const titleIcons: Record<AlertVariant, IconDefinition>;
|
|
8
|
+
type OniruLinkProps<ToProp> = {
|
|
9
|
+
to: ToProp;
|
|
10
|
+
} | {
|
|
11
|
+
href: string;
|
|
12
|
+
};
|
|
13
|
+
type AlertButtonProps<OwnProps> = OwnProps & PropsWithClassName & Pick<ButtonProps, 'disabled' | 'onClick'> & {
|
|
14
|
+
children: string;
|
|
15
|
+
target?: '_blank';
|
|
16
|
+
};
|
|
17
|
+
interface BaseAlertProps extends PropsWithClassName {
|
|
18
|
+
variant: AlertVariant;
|
|
19
|
+
title?: string;
|
|
20
|
+
isDismissible?: boolean;
|
|
21
|
+
onClose?: () => void;
|
|
22
|
+
isShown?: boolean;
|
|
23
|
+
}
|
|
24
|
+
interface LinkComponentSpecificProps {
|
|
25
|
+
withIcon?: true;
|
|
26
|
+
}
|
|
27
|
+
type PropsForLinkComponent<Props, ToProp> = AlertButtonProps<Props> & OniruLinkProps<ToProp> & LinkComponentSpecificProps;
|
|
28
|
+
interface AlertPropsWithWrapper<Props, ToProp> extends BaseAlertProps {
|
|
29
|
+
LinkComponent: React.ComponentType<PropsForLinkComponent<Props, ToProp>>;
|
|
30
|
+
buttonOrLinkProps: PropsForLinkComponent<Props, ToProp>;
|
|
31
|
+
}
|
|
32
|
+
interface AlertPropsWithoutWrapper<Props> extends BaseAlertProps {
|
|
33
|
+
LinkComponent?: undefined;
|
|
34
|
+
buttonOrLinkProps?: AlertButtonProps<Props> & {
|
|
35
|
+
to?: never;
|
|
36
|
+
href?: string;
|
|
37
|
+
withIcon?: never;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
type AlertProps<Props, ToProp> = AlertPropsWithWrapper<Props, ToProp> | AlertPropsWithoutWrapper<Props>;
|
|
41
|
+
/**
|
|
42
|
+
* ### Overview
|
|
43
|
+
* 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:
|
|
44
|
+
*
|
|
45
|
+
* - Danger: this message indicates a dangerous or potentially negative action that the user must take notice of
|
|
46
|
+
* - Warning: this alert tells the user to proceed with caution with their actions on the platform
|
|
47
|
+
* - Success: this message is indicative that the user just performed a successful or positive action
|
|
48
|
+
* - Info: this alert has the scope of letting the user know about a neutral and informative change or action on Atoka
|
|
49
|
+
*
|
|
50
|
+
* ### Best practices
|
|
51
|
+
* - Use alerts sparingly: if there are too many alerts, the user will end up avoiding them due to cognitive overload and miss important information
|
|
52
|
+
* - Use alerts to notify the user of information that is either time-sensitive or relevant to the action the user is performing
|
|
53
|
+
* - Keep the text informative but not too long
|
|
54
|
+
*/
|
|
55
|
+
declare function Alert<Props, ToProp>({ variant, title, isDismissible, onClose, isShown, buttonOrLinkProps, className, children, LinkComponent, }: React.PropsWithChildren<AlertProps<Props, ToProp>>): JSX.Element;
|
|
56
|
+
declare namespace Alert {
|
|
57
|
+
var displayName: string;
|
|
58
|
+
}
|
|
59
|
+
export { Alert, type AlertVariant, type AlertProps, type AlertButtonProps, type OniruLinkProps, type PropsForLinkComponent, titleIcons, };
|
package/Alert/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Alert';
|
package/Alert/index.js
ADDED
package/Badge/Badge.d.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BadgeProps as BsBadgeProps } from 'react-bootstrap/Badge';
|
|
4
|
+
import { ColorName } from '../Utils/Style';
|
|
5
|
+
import './Badge.scss';
|
|
6
|
+
export type BadgeVariant = 'primary' | 'secondary' | 'tertiary';
|
|
7
|
+
export type BadgeSizes = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
8
|
+
export type BadgeColor = Extract<ColorName, 'error' | 'highEmphasis' | 'info' | 'lowEmphasis' | 'mediumEmphasis' | 'primary' | 'success' | 'warning'> | 'pink' | 'yellow';
|
|
9
|
+
export type BadgeProps = BsBadgeProps & {
|
|
10
|
+
icon?: IconDefinition;
|
|
11
|
+
size?: BadgeSizes;
|
|
12
|
+
disabled?: true;
|
|
13
|
+
} /**
|
|
14
|
+
* Variant defines the form of the badge.
|
|
15
|
+
*/ & ({
|
|
16
|
+
variant: Extract<BadgeVariant, 'primary' | 'secondary'>;
|
|
17
|
+
color: BadgeColor;
|
|
18
|
+
} | {
|
|
19
|
+
variant: Extract<BadgeVariant, 'tertiary'>;
|
|
20
|
+
color: Extract<BadgeColor, 'success' | 'warning' | 'error'>;
|
|
21
|
+
});
|
|
22
|
+
/**
|
|
23
|
+
* ### Overview
|
|
24
|
+
*
|
|
25
|
+
* A `Badge` is a component which represents an attribute of a specific element. There are three types of badges:
|
|
26
|
+
*
|
|
27
|
+
* - **Primary** is used for:
|
|
28
|
+
* - Sales funnel states
|
|
29
|
+
* - Indication of customer divisions
|
|
30
|
+
* - Variant with icon: used to show user state in settings page
|
|
31
|
+
*
|
|
32
|
+
* - **Secondary** is used for:
|
|
33
|
+
* - specific company types e.g. startup
|
|
34
|
+
* - Indication of customer divisions
|
|
35
|
+
* - Variant with icon: used to show division permissions
|
|
36
|
+
*
|
|
37
|
+
* - **Tertiary** is used to display a company’s state
|
|
38
|
+
*
|
|
39
|
+
* Note: color should be left undefined when `Badge` needs to inherit color properties from outside.
|
|
40
|
+
*/
|
|
41
|
+
declare const Badge: React.FC<React.PropsWithChildren<BadgeProps>>;
|
|
42
|
+
export { Badge };
|
package/Badge/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Badge';
|
package/Badge/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './Bs4V3Wrapper.scss';
|
|
3
|
+
import { PropsWithClassName } from '../Utils';
|
|
4
|
+
export declare class Bs4V3Wrapper extends React.PureComponent<React.PropsWithChildren<PropsWithClassName>> {
|
|
5
|
+
static displayName: string;
|
|
6
|
+
render(): React.ReactNode;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Bs4V3Wrapper } from './Bs4V3Wrapper';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComputedDatum } from '@nivo/circle-packing';
|
|
3
|
+
import { DataPoint, PropsWithClassName } from '../Utils/CommonTypes';
|
|
4
|
+
import { BubbleChartCommonProps } from './BubbleChartUI';
|
|
5
|
+
export type BubbleChartTooltip = (props: ComputedDatum<BubbleChartDataPoint>) => JSX.Element;
|
|
6
|
+
export interface BubbleChartDataPoint extends Record<string, unknown>, DataPoint {
|
|
7
|
+
significance?: number;
|
|
8
|
+
children?: BubbleChartDataPoint[];
|
|
9
|
+
}
|
|
10
|
+
export type BubbleChartProps = PropsWithClassName & BubbleChartCommonProps & {
|
|
11
|
+
data: BubbleChartDataPoint[];
|
|
12
|
+
colors?: string[];
|
|
13
|
+
labelSkipRadius?: number;
|
|
14
|
+
otherId: string;
|
|
15
|
+
maxBubbleNumber?: number;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* ### Overview
|
|
19
|
+
*
|
|
20
|
+
* The `BubbleChart` is most useful to display large sets of data.
|
|
21
|
+
* Please note this chart is not suited for tree data structures.
|
|
22
|
+
* Circle colors and size by default derive from the `significance`
|
|
23
|
+
* prop of a given `datapoint`.
|
|
24
|
+
* */
|
|
25
|
+
export declare class BubbleChart extends React.Component<BubbleChartProps> {
|
|
26
|
+
static defaultDataValueKey: string;
|
|
27
|
+
static displayName: string;
|
|
28
|
+
shouldComponentUpdate(nextProps: BubbleChartProps): boolean;
|
|
29
|
+
static defaultProps: Partial<BubbleChartProps>;
|
|
30
|
+
private getComponentSetup;
|
|
31
|
+
private computeColors;
|
|
32
|
+
render(): React.ReactNode;
|
|
33
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Dimensions } from '@nivo/core';
|
|
3
|
+
import { NumberToStringFormatterType, PropsWithClassName } from '../Utils/CommonTypes';
|
|
4
|
+
import { BubbleChartDataPoint, BubbleChartTooltip } from './BubbleChart';
|
|
5
|
+
export type BubbleChartCommonProps = {
|
|
6
|
+
renderTooltip: BubbleChartTooltip;
|
|
7
|
+
id: string;
|
|
8
|
+
chartRef?: React.RefObject<HTMLDivElement>;
|
|
9
|
+
numberToStringFormatter: NumberToStringFormatterType;
|
|
10
|
+
dataValueKey?: string;
|
|
11
|
+
size?: Partial<Dimensions>;
|
|
12
|
+
isCanvas?: boolean;
|
|
13
|
+
total?: number;
|
|
14
|
+
fontSize?: number;
|
|
15
|
+
};
|
|
16
|
+
export type BubbleChartUIProps = PropsWithClassName & BubbleChartCommonProps & {
|
|
17
|
+
data: BubbleChartDataPoint;
|
|
18
|
+
colors?: Record<string, string>;
|
|
19
|
+
labelSkipRadius: number;
|
|
20
|
+
};
|
|
21
|
+
export declare class BubbleChartUI extends React.PureComponent<React.PropsWithChildren<BubbleChartUIProps>> {
|
|
22
|
+
static displayName: string;
|
|
23
|
+
static ESTIMATED_LETTER_PIXELS: number;
|
|
24
|
+
private defaultLayers;
|
|
25
|
+
static defaultProps: Partial<BubbleChartUIProps>;
|
|
26
|
+
private getEllipsedLabel;
|
|
27
|
+
private renderColor;
|
|
28
|
+
private getLabel;
|
|
29
|
+
private renderContent;
|
|
30
|
+
render(): React.ReactNode;
|
|
31
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "
|
|
1
|
+
import { j as jsxRuntimeExports } from "../_shared/jsx-runtime-CkWJgiG5.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { e as blue300, d as blue30, n as generateRangeColor } from "
|
|
4
|
-
import "
|
|
5
|
-
import { g as getRenderStatisticsTooltip } from "
|
|
6
|
-
import { c as createDataWithOtherSlice } from "
|
|
7
|
-
import { d as deepEqual, s as sortObjDesc } from "
|
|
3
|
+
import { e as blue300, d as blue30, n as generateRangeColor } from "../_shared/Style-CSNnkrg3.js";
|
|
4
|
+
import "../_shared/StatisticsTooltip-7DgI4Yoj.js";
|
|
5
|
+
import { g as getRenderStatisticsTooltip } from "../_shared/helpers-DbJ4Yobs.js";
|
|
6
|
+
import { c as createDataWithOtherSlice } from "../_shared/Statistics-Coxe2jk5.js";
|
|
7
|
+
import { d as deepEqual, s as sortObjDesc } from "../_shared/Utils-CXFvxozf.js";
|
|
8
8
|
import { ResponsiveCirclePackingCanvas, ResponsiveCirclePacking } from "@nivo/circle-packing";
|
|
9
9
|
import classnames from "classnames";
|
|
10
|
-
import { e as ellipse } from "
|
|
10
|
+
import { e as ellipse } from "../_shared/Text-CfPEdZ8Z.js";
|
|
11
11
|
class BubbleChartUI extends React__default.PureComponent {
|
|
12
12
|
static displayName = "BubbleChartUI";
|
|
13
13
|
static ESTIMATED_LETTER_PIXELS = 6.2;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React, { SyntheticEvent } from 'react';
|
|
2
|
+
import { ButtonProps as BsButtonProps } from 'react-bootstrap/Button';
|
|
3
|
+
import './Button.scss';
|
|
4
|
+
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
5
|
+
import { PropsWithClassName } from '../Utils';
|
|
6
|
+
type ButtonVariant = 'primary' | 'secondary' | 'tertiary' | 'tertiary-danger' | 'danger' | 'primary-warning' | 'primary-white' | 'primary-danger' | 'primary-violet';
|
|
7
|
+
type ButtonSize = 'xxs' | 'xs' | 'sm' | 'md' | 'lg';
|
|
8
|
+
export type OriginalButtonProps = Omit<BsButtonProps, 'variant' | 'size'>;
|
|
9
|
+
interface ButtonProps extends PropsWithClassName, OriginalButtonProps {
|
|
10
|
+
variant: ButtonVariant;
|
|
11
|
+
size: ButtonSize;
|
|
12
|
+
icon?: IconDefinition;
|
|
13
|
+
iconLeft?: IconDefinition;
|
|
14
|
+
iconRight?: IconDefinition;
|
|
15
|
+
onClick?: (e?: SyntheticEvent) => void;
|
|
16
|
+
}
|
|
17
|
+
declare class Button extends React.PureComponent<React.PropsWithChildren<ButtonProps>> {
|
|
18
|
+
static displayName: string;
|
|
19
|
+
static defaultProps: Partial<ButtonProps>;
|
|
20
|
+
private renderIcon;
|
|
21
|
+
private renderChildren;
|
|
22
|
+
private renderLeftSide;
|
|
23
|
+
private renderRightSide;
|
|
24
|
+
private renderContent;
|
|
25
|
+
render(): React.ReactNode;
|
|
26
|
+
}
|
|
27
|
+
export { Button, type ButtonVariant, type ButtonSize, type ButtonProps as ButtonProps };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export declare const config: {
|
|
2
|
+
argTypes: {
|
|
3
|
+
onClick: {
|
|
4
|
+
action: string;
|
|
5
|
+
table: {
|
|
6
|
+
category: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
icon: {
|
|
10
|
+
control: {
|
|
11
|
+
disable: boolean;
|
|
12
|
+
};
|
|
13
|
+
table: {
|
|
14
|
+
category: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
iconLeft: {
|
|
18
|
+
control: {
|
|
19
|
+
disable: boolean;
|
|
20
|
+
};
|
|
21
|
+
table: {
|
|
22
|
+
category: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
iconRight: {
|
|
26
|
+
control: {
|
|
27
|
+
disable: boolean;
|
|
28
|
+
};
|
|
29
|
+
table: {
|
|
30
|
+
category: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
href: {
|
|
34
|
+
control: {
|
|
35
|
+
disable: boolean;
|
|
36
|
+
};
|
|
37
|
+
table: {
|
|
38
|
+
category: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
target: {
|
|
42
|
+
control: {
|
|
43
|
+
disable: boolean;
|
|
44
|
+
};
|
|
45
|
+
table: {
|
|
46
|
+
category: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
className: {
|
|
50
|
+
control: {
|
|
51
|
+
disable: boolean;
|
|
52
|
+
};
|
|
53
|
+
table: {
|
|
54
|
+
category: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Button';
|
package/Button/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './ButtonDropdown.scss';
|
|
3
|
+
import { Button } from '../Button';
|
|
4
|
+
import { ButtonProps } from '../Button/Button';
|
|
5
|
+
interface ButtonDropdownState {
|
|
6
|
+
isButtonDropdownOpen: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface ButtonDropdownProps extends Omit<ButtonProps, 'onClick' | 'iconRight' | 'block' | 'variant'> {
|
|
9
|
+
toggleText: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export declare class ButtonDropdown extends React.Component<ButtonDropdownProps, ButtonDropdownState> {
|
|
12
|
+
static displayName: string;
|
|
13
|
+
static defaultProps: typeof Button.defaultProps;
|
|
14
|
+
private wrapperRef;
|
|
15
|
+
state: ButtonDropdownState;
|
|
16
|
+
componentDidMount(): void;
|
|
17
|
+
componentWillUnmount(): void;
|
|
18
|
+
private handleClickOutside;
|
|
19
|
+
private onToggle;
|
|
20
|
+
private renderChildren;
|
|
21
|
+
render(): React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "
|
|
1
|
+
import { j as jsxRuntimeExports } from "../_shared/jsx-runtime-CkWJgiG5.js";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import classnames from "classnames";
|
|
4
4
|
import { faChevronUp } from "@fortawesome/pro-light-svg-icons/faChevronUp";
|
|
5
5
|
import { faChevronDown } from "@fortawesome/pro-light-svg-icons/faChevronDown";
|
|
6
|
-
import { B as Button } from "
|
|
6
|
+
import { B as Button } from "../_shared/Button-Bn8PyQFK.js";
|
|
7
7
|
class ButtonDropdown extends React__default.Component {
|
|
8
8
|
static displayName = "ButtonDropdown";
|
|
9
9
|
static defaultProps = Button.defaultProps;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CardsPageTabContent } from './CardsPageTabContent';
|
|
3
|
+
import { CardsPageTabSwitcher } from './CardsPageTabSwitcher';
|
|
4
|
+
import { CardsPageHeader } from './CardsPageHeader';
|
|
5
|
+
import './CardsPage.scss';
|
|
6
|
+
export declare class CardsPage extends React.PureComponent<{
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
}> {
|
|
9
|
+
static displayName: string;
|
|
10
|
+
static Header: typeof CardsPageHeader;
|
|
11
|
+
static TabSwitcher: typeof CardsPageTabSwitcher;
|
|
12
|
+
static TabContent: typeof CardsPageTabContent;
|
|
13
|
+
render(): React.ReactNode;
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { LayoutModeVariants } from './CardsPageLayoutMode';
|
|
3
|
+
export interface CardsPageCardsProps {
|
|
4
|
+
emptyStateMessage: string;
|
|
5
|
+
layoutMode?: LayoutModeVariants;
|
|
6
|
+
headerLabel?: React.ReactNode;
|
|
7
|
+
rowContentLabels?: React.ReactNode[];
|
|
8
|
+
hasRowActions?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const CardsPageCards: React.FC<React.PropsWithChildren<CardsPageCardsProps>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CardsPageTitle } from './CardsPageTitle';
|
|
3
|
+
import { CardsPageSubtitle } from './CardsPageSubtitle';
|
|
4
|
+
import { CardsPageActions } from './CardsPageActions';
|
|
5
|
+
export declare class CardsPageHeader extends React.PureComponent<{
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}> {
|
|
8
|
+
static displayName: string;
|
|
9
|
+
static Title: typeof CardsPageTitle;
|
|
10
|
+
static Subtitle: typeof CardsPageSubtitle;
|
|
11
|
+
static Actions: typeof CardsPageActions;
|
|
12
|
+
render(): React.ReactNode;
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './CardsPageLayoutMode.scss';
|
|
3
|
+
export type LayoutModeVariants = 'grid' | 'list';
|
|
4
|
+
export interface CardsPageLayoutModeProps {
|
|
5
|
+
selected: LayoutModeVariants;
|
|
6
|
+
onSet: (layoutMode: LayoutModeVariants) => void;
|
|
7
|
+
isDisabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare class CardsPageLayoutMode extends React.PureComponent<React.PropsWithChildren<CardsPageLayoutModeProps>> {
|
|
10
|
+
static displayName: string;
|
|
11
|
+
render(): React.ReactNode;
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './CardsPageSelectionAction.scss';
|
|
3
|
+
export interface CardsPageSelectionActionsProps {
|
|
4
|
+
onCancel: () => void;
|
|
5
|
+
onSelectAll: () => void;
|
|
6
|
+
onUnselectAll: () => void;
|
|
7
|
+
areItemsSelectable: boolean;
|
|
8
|
+
isDisabled?: boolean;
|
|
9
|
+
selectAllLabel: string;
|
|
10
|
+
unselectAllLabel: string;
|
|
11
|
+
cancelLabel: string;
|
|
12
|
+
title: string;
|
|
13
|
+
}
|
|
14
|
+
export declare class CardsPageSelectionActions extends React.PureComponent<React.PropsWithChildren<CardsPageSelectionActionsProps>> {
|
|
15
|
+
static displayName: string;
|
|
16
|
+
render(): React.ReactNode;
|
|
17
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface CardsPageSelectionTogglerProps {
|
|
3
|
+
onToggle: () => void;
|
|
4
|
+
isChecked: boolean;
|
|
5
|
+
label: string;
|
|
6
|
+
isDisabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const CardsPageSelectionToggler: React.FC<React.PropsWithChildren<CardsPageSelectionTogglerProps>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PropsWithClassName, OptionData } from '../Utils';
|
|
3
|
+
export type OptionType = Record<string, string> | OptionData[];
|
|
4
|
+
export interface CardsPageSortingProps extends PropsWithClassName {
|
|
5
|
+
label?: string;
|
|
6
|
+
sortValue: string;
|
|
7
|
+
onSortValueSelect: (sortValue: string) => void;
|
|
8
|
+
options: OptionType;
|
|
9
|
+
isDisabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare class CardsPageSorting extends React.PureComponent<React.PropsWithChildren<CardsPageSortingProps>> {
|
|
12
|
+
static displayName: string;
|
|
13
|
+
private getOptions;
|
|
14
|
+
render(): React.ReactNode;
|
|
15
|
+
}
|