@reykjavik/hanna-react 0.10.54 → 0.10.57
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/{types/AccordionList.d.ts → AccordionList.d.ts} +0 -0
- package/AccordionList.js +52 -0
- package/{types/ActionCards.d.ts → ActionCards.d.ts} +0 -0
- package/ActionCards.js +14 -0
- package/{types/Alert.d.ts → Alert.d.ts} +0 -0
- package/Alert.js +121 -0
- package/{types/ArticleCarousel → ArticleCarousel}/_ArticleCarouselCard.d.ts +1 -1
- package/ArticleCarousel/_ArticleCarouselCard.js +31 -0
- package/{types/ArticleCarousel.d.ts → ArticleCarousel.d.ts} +0 -0
- package/ArticleCarousel.js +13 -0
- package/{types/ArticleMeta.d.ts → ArticleMeta.d.ts} +0 -0
- package/ArticleMeta.js +43 -0
- package/{types/Attention.d.ts → Attention.d.ts} +0 -0
- package/Attention.js +9 -0
- package/{types/BasicTable.d.ts → BasicTable.d.ts} +0 -0
- package/BasicTable.js +34 -0
- package/{types/Bling.d.ts → Bling.d.ts} +0 -0
- package/Bling.js +49 -0
- package/{types/BlockBreak.d.ts → BlockBreak.d.ts} +0 -0
- package/BlockBreak.js +11 -0
- package/{types/BlockQuote.d.ts → BlockQuote.d.ts} +0 -0
- package/BlockQuote.js +9 -0
- package/{types/BreadCrumbs.d.ts → BreadCrumbs.d.ts} +0 -0
- package/BreadCrumbs.js +33 -0
- package/{types/ButtonBack.d.ts → ButtonBack.d.ts} +0 -0
- package/ButtonBack.js +9 -0
- package/{types/ButtonBar.d.ts → ButtonBar.d.ts} +0 -0
- package/ButtonBar.js +21 -0
- package/{types/ButtonPrimary.d.ts → ButtonPrimary.d.ts} +0 -0
- package/ButtonPrimary.js +9 -0
- package/{types/ButtonSecondary.d.ts → ButtonSecondary.d.ts} +0 -0
- package/ButtonSecondary.js +9 -0
- package/{types/ButtonTertiary.d.ts → ButtonTertiary.d.ts} +0 -0
- package/ButtonTertiary.js +20 -0
- package/CHANGELOG.md +14 -6
- package/{types/Carousel.d.ts → Carousel.d.ts} +0 -0
- package/Carousel.js +9 -0
- package/{types/CarouselStepper.d.ts → CarouselStepper.d.ts} +0 -0
- package/CarouselStepper.js +9 -0
- package/{types/CenterColumn.d.ts → CenterColumn.d.ts} +0 -0
- package/CenterColumn.js +12 -0
- package/{types/Checkbox.d.ts → Checkbox.d.ts} +0 -0
- package/Checkbox.js +9 -0
- package/{types/CheckboxButtonsGroup.d.ts → CheckboxButtonsGroup.d.ts} +0 -0
- package/CheckboxButtonsGroup.js +19 -0
- package/{types/CheckboxGroup.d.ts → CheckboxGroup.d.ts} +0 -0
- package/CheckboxGroup.js +12 -0
- package/{types/CityBlock.d.ts → CityBlock.d.ts} +0 -0
- package/CityBlock.js +23 -0
- package/{types/ContactBubble.d.ts → ContactBubble.d.ts} +0 -0
- package/ContactBubble.js +178 -0
- package/{types/ContentArticle.d.ts → ContentArticle.d.ts} +0 -0
- package/ContentArticle.js +26 -0
- package/{types/ContentImage.d.ts → ContentImage.d.ts} +0 -0
- package/ContentImage.js +23 -0
- package/{types/Datepicker.d.ts → Datepicker.d.ts} +0 -0
- package/Datepicker.js +91 -0
- package/{types/ExtraLinks.d.ts → ExtraLinks.d.ts} +0 -0
- package/ExtraLinks.js +39 -0
- package/{types/FeatureList.d.ts → FeatureList.d.ts} +0 -0
- package/FeatureList.js +21 -0
- package/{types/FieldGroup.d.ts → FieldGroup.d.ts} +0 -0
- package/FieldGroup.js +14 -0
- package/{types/FileInput.d.ts → FileInput.d.ts} +0 -0
- package/FileInput.js +182 -0
- package/{types/Foonote.d.ts → Foonote.d.ts} +0 -0
- package/Foonote.js +12 -0
- package/{types/FooterBadges.d.ts → FooterBadges.d.ts} +0 -0
- package/FooterBadges.js +17 -0
- package/{types/FooterInfo.d.ts → FooterInfo.d.ts} +0 -0
- package/FooterInfo.js +14 -0
- package/{types/Footnote.d.ts → Footnote.d.ts} +0 -0
- package/Footnote.js +8 -0
- package/{types/Form.d.ts → Form.d.ts} +0 -0
- package/Form.js +15 -0
- package/{types/FormField.d.ts → FormField.d.ts} +0 -0
- package/FormField.js +119 -0
- package/{types/Gallery → Gallery}/_GalleryItem.d.ts +0 -0
- package/Gallery/_GalleryItem.js +58 -0
- package/{types/Gallery → Gallery}/_GalleryModal.d.ts +0 -0
- package/Gallery/_GalleryModal.js +82 -0
- package/{types/Gallery → Gallery}/_GalleryModalContext.d.ts +0 -0
- package/Gallery/_GalleryModalContext.js +8 -0
- package/{types/Gallery → Gallery}/_GalleryModalItem.d.ts +0 -0
- package/Gallery/_GalleryModalItem.js +27 -0
- package/{types/Gallery.d.ts → Gallery.d.ts} +0 -0
- package/Gallery.js +55 -0
- package/{types/GridBlocks.d.ts → GridBlocks.d.ts} +0 -0
- package/GridBlocks.js +29 -0
- package/{types/Heading.d.ts → Heading.d.ts} +0 -0
- package/Heading.js +22 -0
- package/{types/HeroBlock.d.ts → HeroBlock.d.ts} +0 -0
- package/HeroBlock.js +26 -0
- package/{types/IframeBlock.d.ts → IframeBlock.d.ts} +0 -0
- package/IframeBlock.js +31 -0
- package/{types/Illustration.d.ts → Illustration.d.ts} +0 -0
- package/Illustration.js +13 -0
- package/{types/ImageCards.d.ts → ImageCards.d.ts} +0 -0
- package/ImageCards.js +27 -0
- package/{types/InfoBlock.d.ts → InfoBlock.d.ts} +0 -0
- package/InfoBlock.js +18 -0
- package/{types/InfoHero.d.ts → InfoHero.d.ts} +0 -0
- package/InfoHero.js +87 -0
- package/{types/IslandBlock.d.ts → IslandBlock.d.ts} +0 -0
- package/IslandBlock.js +21 -0
- package/{types/IslandPageBlock.d.ts → IslandPageBlock.d.ts} +0 -0
- package/IslandPageBlock.js +21 -0
- package/{types/LabeledTextBlock.d.ts → LabeledTextBlock.d.ts} +0 -0
- package/LabeledTextBlock.js +19 -0
- package/{types/Layout.d.ts → Layout.d.ts} +0 -0
- package/Layout.js +58 -0
- package/{types/MainMenu → MainMenu}/_Auxiliary.d.ts +0 -0
- package/MainMenu/_Auxiliary.js +20 -0
- package/{types/MainMenu → MainMenu}/_PrimaryPanel.d.ts +0 -0
- package/MainMenu/_PrimaryPanel.js +29 -0
- package/{types/MainMenu.d.ts → MainMenu.d.ts} +1 -1
- package/MainMenu.js +165 -0
- package/{types/MiniMetrics.d.ts → MiniMetrics.d.ts} +0 -0
- package/MiniMetrics.js +17 -0
- package/{types/Modal.d.ts → Modal.d.ts} +0 -0
- package/Modal.js +19 -0
- package/{types/NameCard.d.ts → NameCard.d.ts} +0 -0
- package/NameCard.js +87 -0
- package/{types/NameCards.d.ts → NameCards.d.ts} +0 -0
- package/NameCards.js +12 -0
- package/{types/NewsHero.d.ts → NewsHero.d.ts} +0 -0
- package/NewsHero.js +91 -0
- package/{types/PageFilter.d.ts → PageFilter.d.ts} +0 -0
- package/PageFilter.js +20 -0
- package/{types/PageHeading.d.ts → PageHeading.d.ts} +0 -0
- package/PageHeading.js +17 -0
- package/{types/ProcessOverview.d.ts → ProcessOverview.d.ts} +0 -0
- package/ProcessOverview.js +22 -0
- package/{types/PullQuote.d.ts → PullQuote.d.ts} +0 -0
- package/PullQuote.js +9 -0
- package/{types/RadioButtonsGroup.d.ts → RadioButtonsGroup.d.ts} +0 -0
- package/RadioButtonsGroup.js +19 -0
- package/{types/RadioGroup.d.ts → RadioGroup.d.ts} +0 -0
- package/RadioGroup.js +12 -0
- package/{types/RelatedLinks.d.ts → RelatedLinks.d.ts} +0 -0
- package/RelatedLinks.js +31 -0
- package/{types/RowBlock.d.ts → RowBlock.d.ts} +0 -0
- package/RowBlock.js +14 -0
- package/{types/RowBlockColumn.d.ts → RowBlockColumn.d.ts} +0 -0
- package/RowBlockColumn.js +16 -0
- package/{types/SearchInput.d.ts → SearchInput.d.ts} +0 -0
- package/SearchInput.js +61 -0
- package/{types/SearchResults → SearchResults}/_SearchResultsItem.d.ts +0 -0
- package/SearchResults/_SearchResultsItem.js +20 -0
- package/{types/SearchResults.d.ts → SearchResults.d.ts} +0 -0
- package/SearchResults.js +137 -0
- package/{types/SeenEffect.d.ts → SeenEffect.d.ts} +0 -0
- package/SeenEffect.js +24 -0
- package/{types/Selectbox.d.ts → Selectbox.d.ts} +0 -0
- package/Selectbox.js +74 -0
- package/{types/ShareButtons.d.ts → ShareButtons.d.ts} +0 -0
- package/ShareButtons.js +76 -0
- package/{types/Sharpie.d.ts → Sharpie.d.ts} +0 -0
- package/Sharpie.js +27 -0
- package/{types/SiteSearchAutocomplete.d.ts → SiteSearchAutocomplete.d.ts} +0 -0
- package/SiteSearchAutocomplete.js +87 -0
- package/{types/SiteSearchCurtain.d.ts → SiteSearchCurtain.d.ts} +0 -0
- package/SiteSearchCurtain.js +61 -0
- package/SiteSearchInput.d.ts +24 -0
- package/SiteSearchInput.js +68 -0
- package/{types/Skeleton.d.ts → Skeleton.d.ts} +0 -0
- package/Skeleton.js +35 -0
- package/{types/SubHeading.d.ts → SubHeading.d.ts} +0 -0
- package/SubHeading.js +18 -0
- package/{types/Tabs.d.ts → Tabs.d.ts} +0 -0
- package/Tabs.js +122 -0
- package/{types/TagPill.d.ts → TagPill.d.ts} +0 -0
- package/TagPill.js +48 -0
- package/{types/TextBlock.d.ts → TextBlock.d.ts} +0 -0
- package/TextBlock.js +20 -0
- package/{types/TextButton.d.ts → TextButton.d.ts} +0 -0
- package/TextButton.js +14 -0
- package/{types/TextInput.d.ts → TextInput.d.ts} +0 -0
- package/TextInput.js +63 -0
- package/{types/VSpacer.d.ts → VSpacer.d.ts} +0 -0
- package/VSpacer.js +46 -0
- package/{types/VerticalTabsTOC.d.ts → VerticalTabsTOC.d.ts} +0 -0
- package/VerticalTabsTOC.js +96 -0
- package/{types/WizardLayout.d.ts → WizardLayout.d.ts} +0 -0
- package/WizardLayout.js +35 -0
- package/{types/WizardLayoutClose.d.ts → WizardLayoutClose.d.ts} +0 -0
- package/WizardLayoutClose.js +9 -0
- package/{types/WizardStepper.d.ts → WizardStepper.d.ts} +0 -0
- package/WizardStepper.js +30 -0
- package/{types/_abstract → _abstract}/Button.d.ts +0 -0
- package/_abstract/Button.js +52 -0
- package/{types/_abstract → _abstract}/CardList.d.ts +0 -0
- package/_abstract/CardList.js +43 -0
- package/{types/_abstract → _abstract}/Image.d.ts +0 -0
- package/_abstract/Image.js +32 -0
- package/{types/_abstract → _abstract}/Link.d.ts +0 -0
- package/_abstract/Link.js +31 -0
- package/{types/_abstract → _abstract}/TogglerGroup.d.ts +0 -0
- package/_abstract/TogglerGroup.js +34 -0
- package/{types/_abstract → _abstract}/TogglerGroupField.d.ts +0 -0
- package/_abstract/TogglerGroupField.js +27 -0
- package/{types/_abstract → _abstract}/TogglerInput.d.ts +0 -0
- package/_abstract/TogglerInput.js +38 -0
- package/{types/_abstract → _abstract}/_AbstractCarousel.d.ts +0 -0
- package/_abstract/_AbstractCarousel.js +158 -0
- package/{types/_abstract → _abstract}/_Blings.d.ts +0 -0
- package/_abstract/_Blings.js +17 -0
- package/{types/_abstract → _abstract}/_Block.d.ts +0 -0
- package/_abstract/_Block.js +29 -0
- package/{types/_abstract → _abstract}/_Quote.d.ts +0 -0
- package/_abstract/_Quote.js +15 -0
- package/{types/_abstract → _abstract}/breakOnNL.d.ts +0 -0
- package/_abstract/breakOnNL.js +13 -0
- package/{types/assets.d.ts → assets.d.ts} +0 -0
- package/assets.js +51 -0
- package/{types/constants.d.ts → constants.d.ts} +0 -0
- package/constants.js +25 -0
- package/esm/AccordionList.d.ts +17 -0
- package/esm/AccordionList.js +24 -0
- package/esm/ActionCards.d.ts +5 -0
- package/esm/ActionCards.js +9 -0
- package/esm/Alert.d.ts +49 -0
- package/esm/Alert.js +92 -0
- package/esm/ArticleCarousel/_ArticleCarouselCard.d.ts +27 -0
- package/esm/ArticleCarousel/_ArticleCarouselCard.js +24 -0
- package/esm/ArticleCarousel.d.ts +12 -0
- package/esm/ArticleCarousel.js +8 -0
- package/esm/ArticleMeta.d.ts +9 -0
- package/esm/ArticleMeta.js +18 -0
- package/esm/Attention.d.ts +7 -0
- package/esm/Attention.js +4 -0
- package/esm/BasicTable.d.ts +12 -0
- package/esm/BasicTable.js +29 -0
- package/esm/Bling.d.ts +81 -0
- package/esm/Bling.js +44 -0
- package/esm/BlockBreak.d.ts +2 -0
- package/esm/BlockBreak.js +6 -0
- package/esm/BlockQuote.d.ts +4 -0
- package/esm/BlockQuote.js +4 -0
- package/esm/BreadCrumbs.d.ts +11 -0
- package/esm/BreadCrumbs.js +28 -0
- package/esm/ButtonBack.d.ts +7 -0
- package/esm/ButtonBack.js +4 -0
- package/esm/ButtonBar.d.ts +16 -0
- package/esm/ButtonBar.js +14 -0
- package/esm/ButtonPrimary.d.ts +7 -0
- package/esm/ButtonPrimary.js +4 -0
- package/esm/ButtonSecondary.d.ts +7 -0
- package/esm/ButtonSecondary.js +4 -0
- package/esm/ButtonTertiary.d.ts +12 -0
- package/esm/ButtonTertiary.js +15 -0
- package/esm/Carousel.d.ts +4 -0
- package/esm/Carousel.js +4 -0
- package/esm/CarouselStepper.d.ts +4 -0
- package/esm/CarouselStepper.js +4 -0
- package/esm/CenterColumn.d.ts +7 -0
- package/esm/CenterColumn.js +7 -0
- package/esm/Checkbox.d.ts +4 -0
- package/esm/Checkbox.js +4 -0
- package/esm/CheckboxButtonsGroup.d.ts +11 -0
- package/esm/CheckboxButtonsGroup.js +14 -0
- package/esm/CheckboxGroup.d.ts +9 -0
- package/esm/CheckboxGroup.js +7 -0
- package/esm/CityBlock.d.ts +23 -0
- package/esm/CityBlock.js +18 -0
- package/esm/ContactBubble.d.ts +58 -0
- package/esm/ContactBubble.js +148 -0
- package/esm/ContentArticle.d.ts +15 -0
- package/esm/ContentArticle.js +21 -0
- package/esm/ContentImage.d.ts +8 -0
- package/esm/ContentImage.js +18 -0
- package/esm/Datepicker.d.ts +39 -0
- package/esm/Datepicker.js +63 -0
- package/esm/ExtraLinks.d.ts +18 -0
- package/esm/ExtraLinks.js +34 -0
- package/esm/FeatureList.d.ts +12 -0
- package/esm/FeatureList.js +16 -0
- package/esm/FieldGroup.d.ts +9 -0
- package/esm/FieldGroup.js +9 -0
- package/esm/FileInput.d.ts +17 -0
- package/esm/FileInput.js +154 -0
- package/esm/Foonote.d.ts +12 -0
- package/esm/Foonote.js +7 -0
- package/esm/FooterBadges.d.ts +9 -0
- package/esm/FooterBadges.js +12 -0
- package/esm/FooterInfo.d.ts +18 -0
- package/esm/FooterInfo.js +9 -0
- package/esm/Footnote.d.ts +6 -0
- package/esm/Footnote.js +3 -0
- package/esm/Form.d.ts +7 -0
- package/esm/Form.js +10 -0
- package/esm/FormField.d.ts +65 -0
- package/esm/FormField.js +91 -0
- package/esm/Gallery/_GalleryItem.d.ts +8 -0
- package/esm/Gallery/_GalleryItem.js +30 -0
- package/esm/Gallery/_GalleryModal.d.ts +6 -0
- package/esm/Gallery/_GalleryModal.js +54 -0
- package/esm/Gallery/_GalleryModalContext.d.ts +9 -0
- package/esm/Gallery/_GalleryModalContext.js +3 -0
- package/esm/Gallery/_GalleryModalItem.d.ts +3 -0
- package/esm/Gallery/_GalleryModalItem.js +22 -0
- package/esm/Gallery.d.ts +17 -0
- package/esm/Gallery.js +27 -0
- package/esm/GridBlocks.d.ts +26 -0
- package/esm/GridBlocks.js +24 -0
- package/esm/Heading.d.ts +16 -0
- package/esm/Heading.js +17 -0
- package/esm/HeroBlock.d.ts +19 -0
- package/esm/HeroBlock.js +21 -0
- package/esm/IframeBlock.d.ts +23 -0
- package/esm/IframeBlock.js +26 -0
- package/esm/Illustration.d.ts +13 -0
- package/esm/Illustration.js +8 -0
- package/esm/ImageCards.d.ts +8 -0
- package/esm/ImageCards.js +22 -0
- package/esm/InfoBlock.d.ts +17 -0
- package/esm/InfoBlock.js +13 -0
- package/esm/InfoHero.d.ts +17 -0
- package/esm/InfoHero.js +82 -0
- package/esm/IslandBlock.d.ts +25 -0
- package/esm/IslandBlock.js +16 -0
- package/esm/IslandPageBlock.d.ts +24 -0
- package/esm/IslandPageBlock.js +16 -0
- package/esm/LabeledTextBlock.d.ts +11 -0
- package/esm/LabeledTextBlock.js +14 -0
- package/esm/Layout.d.ts +33 -0
- package/esm/Layout.js +52 -0
- package/esm/MainMenu/_Auxiliary.d.ts +6 -0
- package/esm/MainMenu/_Auxiliary.js +13 -0
- package/esm/MainMenu/_PrimaryPanel.d.ts +13 -0
- package/esm/MainMenu/_PrimaryPanel.js +22 -0
- package/esm/MainMenu.d.ts +48 -0
- package/esm/MainMenu.js +136 -0
- package/esm/MiniMetrics.d.ts +8 -0
- package/esm/MiniMetrics.js +12 -0
- package/esm/Modal.d.ts +10 -0
- package/esm/Modal.js +14 -0
- package/esm/NameCard.d.ts +64 -0
- package/esm/NameCard.js +82 -0
- package/esm/NameCards.d.ts +6 -0
- package/esm/NameCards.js +7 -0
- package/esm/NewsHero.d.ts +14 -0
- package/esm/NewsHero.js +86 -0
- package/esm/PageFilter.d.ts +17 -0
- package/esm/PageFilter.js +15 -0
- package/esm/PageHeading.d.ts +10 -0
- package/esm/PageHeading.js +12 -0
- package/esm/ProcessOverview.d.ts +13 -0
- package/esm/ProcessOverview.js +17 -0
- package/esm/PullQuote.d.ts +4 -0
- package/esm/PullQuote.js +4 -0
- package/esm/RadioButtonsGroup.d.ts +11 -0
- package/esm/RadioButtonsGroup.js +14 -0
- package/esm/RadioGroup.d.ts +13 -0
- package/esm/RadioGroup.js +7 -0
- package/esm/RelatedLinks.d.ts +20 -0
- package/esm/RelatedLinks.js +26 -0
- package/esm/RowBlock.d.ts +12 -0
- package/esm/RowBlock.js +9 -0
- package/esm/RowBlockColumn.d.ts +8 -0
- package/esm/RowBlockColumn.js +11 -0
- package/esm/SearchInput.d.ts +18 -0
- package/esm/SearchInput.js +33 -0
- package/esm/SearchResults/_SearchResultsItem.d.ts +18 -0
- package/esm/SearchResults/_SearchResultsItem.js +15 -0
- package/esm/SearchResults.d.ts +33 -0
- package/esm/SearchResults.js +109 -0
- package/esm/SeenEffect.d.ts +4 -0
- package/esm/SeenEffect.js +19 -0
- package/esm/Selectbox.d.ts +8 -0
- package/esm/Selectbox.js +46 -0
- package/esm/ShareButtons.d.ts +9 -0
- package/esm/ShareButtons.js +51 -0
- package/esm/Sharpie.d.ts +23 -0
- package/esm/Sharpie.js +22 -0
- package/esm/SiteSearchAutocomplete.d.ts +40 -0
- package/esm/SiteSearchAutocomplete.js +58 -0
- package/esm/SiteSearchCurtain.d.ts +6 -0
- package/esm/SiteSearchCurtain.js +33 -0
- package/esm/SiteSearchInput.d.ts +24 -0
- package/esm/SiteSearchInput.js +40 -0
- package/esm/Skeleton.d.ts +25 -0
- package/esm/Skeleton.js +30 -0
- package/esm/SubHeading.d.ts +10 -0
- package/esm/SubHeading.js +13 -0
- package/esm/Tabs.d.ts +35 -0
- package/esm/Tabs.js +94 -0
- package/esm/TagPill.d.ts +27 -0
- package/esm/TagPill.js +43 -0
- package/esm/TextBlock.d.ts +15 -0
- package/esm/TextBlock.js +15 -0
- package/esm/TextButton.d.ts +9 -0
- package/esm/TextButton.js +9 -0
- package/esm/TextInput.d.ts +16 -0
- package/esm/TextInput.js +35 -0
- package/esm/VSpacer.d.ts +24 -0
- package/esm/VSpacer.js +41 -0
- package/esm/VerticalTabsTOC.d.ts +14 -0
- package/esm/VerticalTabsTOC.js +68 -0
- package/esm/WizardLayout.d.ts +15 -0
- package/esm/WizardLayout.js +30 -0
- package/esm/WizardLayoutClose.d.ts +3 -0
- package/esm/WizardLayoutClose.js +4 -0
- package/esm/WizardStepper.d.ts +36 -0
- package/esm/WizardStepper.js +25 -0
- package/esm/_abstract/Button.d.ts +40 -0
- package/esm/_abstract/Button.js +47 -0
- package/esm/_abstract/CardList.d.ts +29 -0
- package/esm/_abstract/CardList.js +36 -0
- package/esm/_abstract/Image.d.ts +32 -0
- package/esm/_abstract/Image.js +27 -0
- package/esm/_abstract/Link.d.ts +27 -0
- package/esm/_abstract/Link.js +24 -0
- package/esm/_abstract/TogglerGroup.d.ts +31 -0
- package/esm/_abstract/TogglerGroup.js +29 -0
- package/esm/_abstract/TogglerGroupField.d.ts +17 -0
- package/esm/_abstract/TogglerGroupField.js +22 -0
- package/esm/_abstract/TogglerInput.d.ts +22 -0
- package/esm/_abstract/TogglerInput.js +33 -0
- package/esm/_abstract/_AbstractCarousel.d.ts +25 -0
- package/esm/_abstract/_AbstractCarousel.js +130 -0
- package/esm/_abstract/_Blings.d.ts +11 -0
- package/esm/_abstract/_Blings.js +12 -0
- package/esm/_abstract/_Block.d.ts +22 -0
- package/esm/_abstract/_Block.js +24 -0
- package/esm/_abstract/_Quote.d.ts +9 -0
- package/esm/_abstract/_Quote.js +8 -0
- package/esm/_abstract/breakOnNL.d.ts +2 -0
- package/esm/_abstract/breakOnNL.js +8 -0
- package/esm/assets.d.ts +42 -0
- package/esm/assets.js +56 -0
- package/esm/constants.d.ts +39 -0
- package/esm/constants.js +22 -0
- package/{types → esm}/focus-visible.d.ts +0 -0
- package/esm/focus-visible.js +1 -0
- package/esm/package.json +1 -0
- package/{types → esm}/utils/env.d.ts +0 -0
- package/esm/utils/env.js +8 -0
- package/{types → esm}/utils/seenEffect.d.ts +0 -0
- package/esm/utils/seenEffect.js +73 -0
- package/{types → esm}/utils/useFormatMonitor.d.ts +0 -0
- package/esm/utils/useFormatMonitor.js +41 -0
- package/{types → esm}/utils/useGetSVGtext.d.ts +0 -0
- package/esm/utils/useGetSVGtext.js +19 -0
- package/{types → esm}/utils/useMenuToggling.d.ts +0 -0
- package/esm/utils/useMenuToggling.js +62 -0
- package/{types → esm}/utils/useScrollbarWidthCSSVar.d.ts +0 -0
- package/esm/utils/useScrollbarWidthCSSVar.js +3 -0
- package/{types → esm}/utils.d.ts +0 -0
- package/esm/utils.js +2 -0
- package/focus-visible.d.ts +1 -0
- package/focus-visible.js +3 -0
- package/package.json +183 -273
- package/utils/env.d.ts +1 -0
- package/utils/env.js +14 -0
- package/utils/seenEffect.d.ts +28 -0
- package/utils/seenEffect.js +81 -0
- package/utils/useFormatMonitor.d.ts +38 -0
- package/utils/useFormatMonitor.js +44 -0
- package/utils/useGetSVGtext.d.ts +6 -0
- package/utils/useGetSVGtext.js +23 -0
- package/utils/useMenuToggling.d.ts +8 -0
- package/utils/useMenuToggling.js +66 -0
- package/utils/useScrollbarWidthCSSVar.d.ts +1 -0
- package/utils/useScrollbarWidthCSSVar.js +10 -0
- package/utils.d.ts +2 -0
- package/utils.js +18 -0
- package/lib/AccordionList.cjs +0 -91
- package/lib/AccordionList.mjs +0 -69
- package/lib/ActionCards.cjs +0 -57
- package/lib/ActionCards.mjs +0 -35
- package/lib/Alert.cjs +0 -159
- package/lib/Alert.mjs +0 -139
- package/lib/ArticleCarousel/_ArticleCarouselCard.cjs +0 -75
- package/lib/ArticleCarousel/_ArticleCarouselCard.mjs +0 -51
- package/lib/ArticleCarousel.cjs +0 -43
- package/lib/ArticleCarousel.mjs +0 -21
- package/lib/ArticleMeta.cjs +0 -46
- package/lib/ArticleMeta.mjs +0 -22
- package/lib/Attention.cjs +0 -33
- package/lib/Attention.mjs +0 -9
- package/lib/BasicTable.cjs +0 -72
- package/lib/BasicTable.mjs +0 -50
- package/lib/Bling.cjs +0 -76
- package/lib/Bling.mjs +0 -52
- package/lib/BlockBreak.cjs +0 -32
- package/lib/BlockBreak.mjs +0 -8
- package/lib/BlockQuote.cjs +0 -47
- package/lib/BlockQuote.mjs +0 -25
- package/lib/BreadCrumbs.cjs +0 -67
- package/lib/BreadCrumbs.mjs +0 -43
- package/lib/ButtonBack.cjs +0 -47
- package/lib/ButtonBack.mjs +0 -25
- package/lib/ButtonBar.cjs +0 -45
- package/lib/ButtonBar.mjs +0 -18
- package/lib/ButtonPrimary.cjs +0 -47
- package/lib/ButtonPrimary.mjs +0 -25
- package/lib/ButtonSecondary.cjs +0 -47
- package/lib/ButtonSecondary.mjs +0 -25
- package/lib/ButtonTertiary.cjs +0 -64
- package/lib/ButtonTertiary.mjs +0 -42
- package/lib/Carousel.cjs +0 -52
- package/lib/Carousel.mjs +0 -30
- package/lib/CarouselStepper.cjs +0 -51
- package/lib/CarouselStepper.mjs +0 -29
- package/lib/CenterColumn.cjs +0 -40
- package/lib/CenterColumn.mjs +0 -16
- package/lib/Checkbox.cjs +0 -52
- package/lib/Checkbox.mjs +0 -30
- package/lib/CheckboxButtonsGroup.cjs +0 -65
- package/lib/CheckboxButtonsGroup.mjs +0 -43
- package/lib/CheckboxGroup.cjs +0 -55
- package/lib/CheckboxGroup.mjs +0 -33
- package/lib/CityBlock.cjs +0 -49
- package/lib/CityBlock.mjs +0 -25
- package/lib/ContactBubble.cjs +0 -200
- package/lib/ContactBubble.mjs +0 -173
- package/lib/ContentArticle.cjs +0 -63
- package/lib/ContentArticle.mjs +0 -41
- package/lib/ContentImage.cjs +0 -58
- package/lib/ContentImage.mjs +0 -36
- package/lib/Datepicker.cjs +0 -164
- package/lib/Datepicker.mjs +0 -142
- package/lib/ExtraLinks.cjs +0 -96
- package/lib/ExtraLinks.mjs +0 -74
- package/lib/FeatureList.cjs +0 -53
- package/lib/FeatureList.mjs +0 -29
- package/lib/FieldGroup.cjs +0 -40
- package/lib/FieldGroup.mjs +0 -16
- package/lib/FileInput.cjs +0 -256
- package/lib/FileInput.mjs +0 -234
- package/lib/Foonote.cjs +0 -30
- package/lib/Foonote.mjs +0 -6
- package/lib/FooterBadges.cjs +0 -49
- package/lib/FooterBadges.mjs +0 -25
- package/lib/FooterInfo.cjs +0 -47
- package/lib/FooterInfo.mjs +0 -23
- package/lib/Footnote.cjs +0 -32
- package/lib/Footnote.mjs +0 -8
- package/lib/Form.cjs +0 -56
- package/lib/Form.mjs +0 -34
- package/lib/FormField.cjs +0 -153
- package/lib/FormField.mjs +0 -131
- package/lib/Gallery/_GalleryItem.cjs +0 -83
- package/lib/Gallery/_GalleryItem.mjs +0 -61
- package/lib/Gallery/_GalleryModal.cjs +0 -104
- package/lib/Gallery/_GalleryModal.mjs +0 -82
- package/lib/Gallery/_GalleryModalContext.cjs +0 -30
- package/lib/Gallery/_GalleryModalContext.mjs +0 -6
- package/lib/Gallery/_GalleryModalItem.cjs +0 -59
- package/lib/Gallery/_GalleryModalItem.mjs +0 -36
- package/lib/Gallery.cjs +0 -79
- package/lib/Gallery.mjs +0 -57
- package/lib/GridBlocks.cjs +0 -81
- package/lib/GridBlocks.mjs +0 -59
- package/lib/Heading.cjs +0 -45
- package/lib/Heading.mjs +0 -21
- package/lib/HeroBlock.cjs +0 -74
- package/lib/HeroBlock.mjs +0 -52
- package/lib/IframeBlock.cjs +0 -48
- package/lib/IframeBlock.mjs +0 -24
- package/lib/Illustration.cjs +0 -51
- package/lib/Illustration.mjs +0 -31
- package/lib/ImageCards.cjs +0 -72
- package/lib/ImageCards.mjs +0 -52
- package/lib/InfoBlock.cjs +0 -51
- package/lib/InfoBlock.mjs +0 -27
- package/lib/InfoHero.cjs +0 -150
- package/lib/InfoHero.mjs +0 -128
- package/lib/IslandBlock.cjs +0 -63
- package/lib/IslandBlock.mjs +0 -41
- package/lib/IslandPageBlock.cjs +0 -49
- package/lib/IslandPageBlock.mjs +0 -25
- package/lib/LabeledTextBlock.cjs +0 -60
- package/lib/LabeledTextBlock.mjs +0 -38
- package/lib/Layout.cjs +0 -113
- package/lib/Layout.mjs +0 -87
- package/lib/MainMenu/_Auxiliary.cjs +0 -54
- package/lib/MainMenu/_Auxiliary.mjs +0 -28
- package/lib/MainMenu/_PrimaryPanel.cjs +0 -74
- package/lib/MainMenu/_PrimaryPanel.mjs +0 -48
- package/lib/MainMenu.cjs +0 -209
- package/lib/MainMenu.mjs +0 -187
- package/lib/MiniMetrics.cjs +0 -56
- package/lib/MiniMetrics.mjs +0 -34
- package/lib/Modal.cjs +0 -70
- package/lib/Modal.mjs +0 -48
- package/lib/NameCard.cjs +0 -115
- package/lib/NameCard.mjs +0 -91
- package/lib/NameCards.cjs +0 -52
- package/lib/NameCards.mjs +0 -30
- package/lib/NewsHero.cjs +0 -136
- package/lib/NewsHero.mjs +0 -114
- package/lib/PageFilter.cjs +0 -48
- package/lib/PageFilter.mjs +0 -24
- package/lib/PageHeading.cjs +0 -42
- package/lib/PageHeading.mjs +0 -18
- package/lib/ProcessOverview.cjs +0 -52
- package/lib/ProcessOverview.mjs +0 -28
- package/lib/PullQuote.cjs +0 -47
- package/lib/PullQuote.mjs +0 -25
- package/lib/RadioButtonsGroup.cjs +0 -64
- package/lib/RadioButtonsGroup.mjs +0 -42
- package/lib/RadioGroup.cjs +0 -58
- package/lib/RadioGroup.mjs +0 -36
- package/lib/RelatedLinks.cjs +0 -61
- package/lib/RelatedLinks.mjs +0 -37
- package/lib/RowBlock.cjs +0 -39
- package/lib/RowBlock.mjs +0 -15
- package/lib/RowBlockColumn.cjs +0 -40
- package/lib/RowBlockColumn.mjs +0 -16
- package/lib/SearchInput.cjs +0 -136
- package/lib/SearchInput.mjs +0 -114
- package/lib/SearchResults/_SearchResultsItem.cjs +0 -54
- package/lib/SearchResults/_SearchResultsItem.mjs +0 -30
- package/lib/SearchResults.cjs +0 -172
- package/lib/SearchResults.mjs +0 -150
- package/lib/SeenEffect.cjs +0 -66
- package/lib/SeenEffect.mjs +0 -44
- package/lib/Selectbox.cjs +0 -144
- package/lib/Selectbox.mjs +0 -122
- package/lib/ShareButtons.cjs +0 -101
- package/lib/ShareButtons.mjs +0 -83
- package/lib/Sharpie.cjs +0 -51
- package/lib/Sharpie.mjs +0 -27
- package/lib/SiteSearchAutocomplete.cjs +0 -150
- package/lib/SiteSearchAutocomplete.mjs +0 -126
- package/lib/SiteSearchCurtain.cjs +0 -78
- package/lib/SiteSearchCurtain.mjs +0 -56
- package/lib/SiteSearchInput.cjs +0 -119
- package/lib/SiteSearchInput.mjs +0 -97
- package/lib/Skeleton.cjs +0 -63
- package/lib/Skeleton.mjs +0 -39
- package/lib/SubHeading.cjs +0 -43
- package/lib/SubHeading.mjs +0 -19
- package/lib/Tabs.cjs +0 -166
- package/lib/Tabs.mjs +0 -144
- package/lib/TagPill.cjs +0 -113
- package/lib/TagPill.mjs +0 -91
- package/lib/TextBlock.cjs +0 -45
- package/lib/TextBlock.mjs +0 -21
- package/lib/TextButton.cjs +0 -55
- package/lib/TextButton.mjs +0 -33
- package/lib/TextInput.cjs +0 -136
- package/lib/TextInput.mjs +0 -114
- package/lib/VSpacer.cjs +0 -70
- package/lib/VSpacer.mjs +0 -46
- package/lib/VerticalTabsTOC.cjs +0 -123
- package/lib/VerticalTabsTOC.mjs +0 -101
- package/lib/WizardLayout.cjs +0 -79
- package/lib/WizardLayout.mjs +0 -55
- package/lib/WizardLayoutClose.cjs +0 -47
- package/lib/WizardLayoutClose.mjs +0 -25
- package/lib/WizardStepper.cjs +0 -55
- package/lib/WizardStepper.mjs +0 -31
- package/lib/_abstract/Button.cjs +0 -114
- package/lib/_abstract/Button.mjs +0 -92
- package/lib/_abstract/CardList.cjs +0 -100
- package/lib/_abstract/CardList.mjs +0 -76
- package/lib/_abstract/Image.cjs +0 -75
- package/lib/_abstract/Image.mjs +0 -51
- package/lib/_abstract/Link.cjs +0 -37
- package/lib/_abstract/Link.mjs +0 -10
- package/lib/_abstract/TogglerGroup.cjs +0 -92
- package/lib/_abstract/TogglerGroup.mjs +0 -70
- package/lib/_abstract/TogglerGroupField.cjs +0 -121
- package/lib/_abstract/TogglerGroupField.mjs +0 -99
- package/lib/_abstract/TogglerInput.cjs +0 -105
- package/lib/_abstract/TogglerInput.mjs +0 -83
- package/lib/_abstract/_AbstractCarousel.cjs +0 -170
- package/lib/_abstract/_AbstractCarousel.mjs +0 -152
- package/lib/_abstract/_Blings.cjs +0 -47
- package/lib/_abstract/_Blings.mjs +0 -23
- package/lib/_abstract/_Block.cjs +0 -73
- package/lib/_abstract/_Block.mjs +0 -51
- package/lib/_abstract/_Quote.cjs +0 -43
- package/lib/_abstract/_Quote.mjs +0 -17
- package/lib/_abstract/breakOnNL.cjs +0 -30
- package/lib/_abstract/breakOnNL.mjs +0 -6
- package/lib/assets.cjs +0 -77
- package/lib/assets.mjs +0 -53
- package/lib/constants.cjs +0 -49
- package/lib/constants.mjs +0 -24
- package/lib/focus-visible.cjs +0 -1
- package/lib/focus-visible.mjs +0 -1
- package/lib/utils/config.cjs +0 -27
- package/lib/utils/config.mjs +0 -4
- package/lib/utils/detectEdgeScroll.cjs +0 -95
- package/lib/utils/detectEdgeScroll.mjs +0 -71
- package/lib/utils/env.cjs +0 -31
- package/lib/utils/env.mjs +0 -5
- package/lib/utils/seenEffect.cjs +0 -93
- package/lib/utils/seenEffect.mjs +0 -65
- package/lib/utils/useFormatMonitor.cjs +0 -29
- package/lib/utils/useFormatMonitor.mjs +0 -6
- package/lib/utils/useGetSVGtext.cjs +0 -44
- package/lib/utils/useGetSVGtext.mjs +0 -21
- package/lib/utils/useMenuToggling.cjs +0 -83
- package/lib/utils/useMenuToggling.mjs +0 -60
- package/lib/utils/useScrollbarWidthCSSVar.cjs +0 -32
- package/lib/utils/useScrollbarWidthCSSVar.mjs +0 -6
- package/lib/utils.cjs +0 -18
- package/lib/utils.mjs +0 -2
- package/types/SiteSearchInput.d.ts +0 -24
- package/types/utils/config.d.ts +0 -2
- package/types/utils/detectEdgeScroll.d.ts +0 -52
|
File without changes
|
package/AccordionList.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
const react_1 = __importStar(require("react"));
|
|
30
|
+
const hooks_1 = require("@hugsmidjan/react/hooks");
|
|
31
|
+
const getBemClass_1 = __importDefault(require("@hugsmidjan/react/utils/getBemClass"));
|
|
32
|
+
const seenEffect_1 = require("./utils/seenEffect");
|
|
33
|
+
const AccordionListItem = (props) => {
|
|
34
|
+
const { title, content, id, disabled = false, defaultOpen, ssr } = props;
|
|
35
|
+
const [open, setOpen] = (0, react_1.useState)(defaultOpen);
|
|
36
|
+
(0, react_1.useEffect)(() => setOpen(defaultOpen), [defaultOpen]);
|
|
37
|
+
const domid = (0, hooks_1.useDomid)();
|
|
38
|
+
const isBrowser = (0, hooks_1.useIsBrowserSide)(ssr);
|
|
39
|
+
const itemDisabled = (isBrowser && disabled) || !content;
|
|
40
|
+
return (react_1.default.createElement("div", { className: (0, getBemClass_1.default)('AccordionList__item', [itemDisabled && 'disabled']), id: id, "data-start-open": defaultOpen || undefined, "data-sprinkled": isBrowser },
|
|
41
|
+
react_1.default.createElement("h3", { className: "AccordionList__title" }, isBrowser ? (react_1.default.createElement("button", { type: "button", className: "AccordionList__button", "aria-controls": domid, "aria-expanded": open || undefined, onClick: () => {
|
|
42
|
+
setOpen(!open);
|
|
43
|
+
}, disabled: itemDisabled }, title)) : (title)),
|
|
44
|
+
react_1.default.createElement("div", { id: isBrowser && domid, className: "AccordionList__content", hidden: isBrowser && (!open || itemDisabled) }, content)));
|
|
45
|
+
};
|
|
46
|
+
// ---------------------------------------------------------------------------
|
|
47
|
+
const AccordionList = (props) => {
|
|
48
|
+
const { items, ssr, wide, defaultOpen, startSeen } = props;
|
|
49
|
+
const [ref] = (0, seenEffect_1.useSeenEffect)(startSeen);
|
|
50
|
+
return (react_1.default.createElement("div", { className: (0, getBemClass_1.default)('AccordionList', [wide && 'wide']), ref: ref }, items.map((item, i) => (react_1.default.createElement(AccordionListItem, Object.assign({ key: i }, item, { ssr: ssr, defaultOpen: defaultOpen && defaultOpen.includes(i) }))))));
|
|
51
|
+
};
|
|
52
|
+
exports.default = AccordionList;
|
|
File without changes
|
package/ActionCards.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const CardList_1 = require("./_abstract/CardList");
|
|
8
|
+
const seenEffect_1 = require("./utils/seenEffect");
|
|
9
|
+
const ActionCards = (props) => {
|
|
10
|
+
const [ref] = (0, seenEffect_1.useSeenEffect)(props.startSeen);
|
|
11
|
+
return (react_1.default.createElement("div", { className: "ActionCards", ref: ref },
|
|
12
|
+
react_1.default.createElement(CardList_1.CardList, Object.assign({}, props, { bemPrefix: "ActionCards" }))));
|
|
13
|
+
};
|
|
14
|
+
exports.default = ActionCards;
|
|
File without changes
|
package/Alert.js
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.alertTypes = exports.defaultAlertTexts = void 0;
|
|
30
|
+
const react_1 = __importStar(require("react"));
|
|
31
|
+
const hooks_1 = require("@hugsmidjan/react/hooks");
|
|
32
|
+
const getBemClass_1 = __importDefault(require("@hugsmidjan/react/utils/getBemClass"));
|
|
33
|
+
const i18n_1 = require("@reykjavik/hanna-utils/i18n");
|
|
34
|
+
const Button_1 = __importDefault(require("./_abstract/Button"));
|
|
35
|
+
const env_1 = require("./utils/env");
|
|
36
|
+
// FIXME: Eventually import from @reykjavik/hanna-styles/constants
|
|
37
|
+
const AlertCloseTransitionDuration = 400;
|
|
38
|
+
const useAutoClosing = (autoClose) => {
|
|
39
|
+
const [temp, setTemp] = (0, react_1.useState)(0);
|
|
40
|
+
if (!autoClose) {
|
|
41
|
+
return { autoClosing: false };
|
|
42
|
+
}
|
|
43
|
+
const thaw = () => setTemp((temp) => temp + 1);
|
|
44
|
+
const freeze = () => setTemp((temp) => temp - 1);
|
|
45
|
+
return {
|
|
46
|
+
autoClosing: temp === 0,
|
|
47
|
+
autoClosingProps: Object.assign({ onMouseEnter: freeze, onMouseLeave: thaw, onFocus: freeze, onBlur: thaw }, (env_1.isPreact
|
|
48
|
+
? {
|
|
49
|
+
onfocusin: (e) => e.currentTarget !== e.target && freeze(),
|
|
50
|
+
onfocusout: (e) => e.currentTarget !== e.target && thaw(),
|
|
51
|
+
}
|
|
52
|
+
: undefined)),
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
exports.defaultAlertTexts = {
|
|
56
|
+
en: { closeLabel: 'Hide' },
|
|
57
|
+
is: { closeLabel: 'Fela' },
|
|
58
|
+
};
|
|
59
|
+
exports.alertTypes = {
|
|
60
|
+
info: 1,
|
|
61
|
+
success: 1,
|
|
62
|
+
warning: 1,
|
|
63
|
+
error: 1,
|
|
64
|
+
critical: 1,
|
|
65
|
+
};
|
|
66
|
+
const Alert = (props) => {
|
|
67
|
+
const { type, childrenHTML, children, onClose, closeUrl, closable = !!(onClose || closeUrl != null), ssr, onClosed, } = props;
|
|
68
|
+
const autoClose = props.autoClose && props.autoClose > 0 ? props.autoClose : 0;
|
|
69
|
+
const closing = (0, react_1.useRef)();
|
|
70
|
+
const [open, setOpen] = (0, react_1.useState)(!!ssr);
|
|
71
|
+
const isBrowser = (0, hooks_1.useIsBrowserSide)(ssr);
|
|
72
|
+
const showCloseButton = closable && (isBrowser || closeUrl != null);
|
|
73
|
+
const { closeLabel, closeLabelLong } = (0, i18n_1.getTexts)(props, exports.defaultAlertTexts);
|
|
74
|
+
(0, hooks_1.useOnMount)(() => {
|
|
75
|
+
setOpen(true);
|
|
76
|
+
});
|
|
77
|
+
const closeAlert = (0, react_1.useCallback)((event) => {
|
|
78
|
+
const ret = onClose &&
|
|
79
|
+
// @ts-expect-error (@deprecated `event` parameter will be removed in v0.9)
|
|
80
|
+
onClose(event);
|
|
81
|
+
if (ret !== false) {
|
|
82
|
+
setOpen(false);
|
|
83
|
+
if (closing.current) {
|
|
84
|
+
clearTimeout(closing.current);
|
|
85
|
+
closing.current = undefined;
|
|
86
|
+
}
|
|
87
|
+
closing.current = setTimeout(() => {
|
|
88
|
+
onClosed && onClosed();
|
|
89
|
+
}, AlertCloseTransitionDuration);
|
|
90
|
+
}
|
|
91
|
+
}, [onClose, onClosed]);
|
|
92
|
+
const { autoClosing, autoClosingProps } = useAutoClosing(autoClose);
|
|
93
|
+
(0, react_1.useEffect)(() => {
|
|
94
|
+
if (autoClosing) {
|
|
95
|
+
let autoCloseTimeout;
|
|
96
|
+
autoCloseTimeout = setTimeout(() => {
|
|
97
|
+
closeAlert();
|
|
98
|
+
}, autoClose * 1000);
|
|
99
|
+
return () => {
|
|
100
|
+
if (autoCloseTimeout) {
|
|
101
|
+
clearTimeout(autoCloseTimeout);
|
|
102
|
+
autoCloseTimeout = undefined;
|
|
103
|
+
}
|
|
104
|
+
if (closing.current) {
|
|
105
|
+
clearTimeout(closing.current);
|
|
106
|
+
closing.current = undefined;
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
}, [closeAlert, autoClosing, autoClose]);
|
|
111
|
+
return (react_1.default.createElement("div", Object.assign({ className: (0, getBemClass_1.default)('Alert', [
|
|
112
|
+
!!exports.alertTypes[type] && type,
|
|
113
|
+
closable && 'closable',
|
|
114
|
+
]), role: "alert", hidden: !open || undefined }, autoClosingProps),
|
|
115
|
+
childrenHTML ? (react_1.default.createElement("div", { dangerouslySetInnerHTML: { __html: childrenHTML } })) : (children),
|
|
116
|
+
' ',
|
|
117
|
+
showCloseButton && (react_1.default.createElement(Button_1.default, Object.assign({ bem: "Alert__close" }, (closeUrl != null ? { href: closeUrl } : { type: 'button' }), { onClick: (e) => {
|
|
118
|
+
closeAlert(e);
|
|
119
|
+
}, "aria-label": closeLabelLong, title: closeLabelLong || closeLabel }), closeLabel))));
|
|
120
|
+
};
|
|
121
|
+
exports.default = Alert;
|
|
@@ -23,5 +23,5 @@ export declare type ArticleCarouselCardProps = {
|
|
|
23
23
|
image: ArticleCarouselImageProps | undefined;
|
|
24
24
|
});
|
|
25
25
|
export declare const ArticleCarouselCard: (props: ArticleCarouselCardProps & {
|
|
26
|
-
moreLabel?: string
|
|
26
|
+
moreLabel?: string;
|
|
27
27
|
}) => JSX.Element;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ArticleCarouselCard = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const getBemClass_1 = __importDefault(require("@hugsmidjan/react/utils/getBemClass"));
|
|
9
|
+
const assets_1 = require("@reykjavik/hanna-utils/assets");
|
|
10
|
+
const Image_1 = __importDefault(require("../_abstract/Image"));
|
|
11
|
+
const Link_1 = require("../_abstract/Link");
|
|
12
|
+
const constants_1 = require("../constants");
|
|
13
|
+
const ArticleCarouselCard = (props) => {
|
|
14
|
+
const { date, title, summary, href, moreLabel, color, theme, illustration, image } = props;
|
|
15
|
+
const photo = image === null || image === void 0 ? void 0 : image.photo;
|
|
16
|
+
const imageProps = illustration ? { src: (0, assets_1.getIllustrationUrl)(illustration) } : image;
|
|
17
|
+
return (react_1.default.createElement("div", { className: "ArticleCarouselCard", "data-color": color && constants_1.colorFamilies[color], "data-color-theme": !color ? theme && constants_1.themeOptions[theme] : undefined },
|
|
18
|
+
react_1.default.createElement(Link_1.Link, { className: "ArticleCarouselCard__link", href: href },
|
|
19
|
+
' ',
|
|
20
|
+
react_1.default.createElement(Image_1.default, Object.assign({ placeholder: true, className: (0, getBemClass_1.default)('ArticleCarouselCard__illustration', photo && 'photo') }, imageProps)),
|
|
21
|
+
react_1.default.createElement("h3", { className: "ArticleCarouselCard__title" }, title),
|
|
22
|
+
' '),
|
|
23
|
+
' ',
|
|
24
|
+
date && react_1.default.createElement("span", { className: "ArticleCarouselCard__date" }, date),
|
|
25
|
+
react_1.default.createElement("div", { className: "ArticleCarouselCard__summary" }, summary),
|
|
26
|
+
moreLabel && (react_1.default.createElement(Link_1.Link, { className: "ArticleCarouselCard__morelink", href: href, "aria-label": title },
|
|
27
|
+
' ',
|
|
28
|
+
moreLabel,
|
|
29
|
+
' '))));
|
|
30
|
+
};
|
|
31
|
+
exports.ArticleCarouselCard = ArticleCarouselCard;
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const _AbstractCarousel_1 = __importDefault(require("./_abstract/_AbstractCarousel"));
|
|
8
|
+
const _ArticleCarouselCard_1 = require("./ArticleCarousel/_ArticleCarouselCard");
|
|
9
|
+
const ArticleCarousel = (props) => {
|
|
10
|
+
const { title, items, moreLabel, ssr, startSeen } = props;
|
|
11
|
+
return (react_1.default.createElement(_AbstractCarousel_1.default, { bem: "ArticleCarousel", title: title, items: items, Component: _ArticleCarouselCard_1.ArticleCarouselCard, ComponentProps: { moreLabel }, ssr: ssr, startSeen: startSeen }));
|
|
12
|
+
};
|
|
13
|
+
exports.default = ArticleCarousel;
|
|
File without changes
|
package/ArticleMeta.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
const react_1 = __importStar(require("react"));
|
|
27
|
+
const Link_1 = require("./_abstract/Link");
|
|
28
|
+
const ArticleMeta = (props) => {
|
|
29
|
+
const { items } = props;
|
|
30
|
+
if (items.length === 0) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return (react_1.default.createElement("div", { className: "ArticleMeta" }, items.map(({ label, href }, i) => (react_1.default.createElement(react_1.Fragment, { key: i },
|
|
34
|
+
href == null ? (react_1.default.createElement("span", { className: "ArticleMeta__item" },
|
|
35
|
+
" ",
|
|
36
|
+
label,
|
|
37
|
+
" ")) : (react_1.default.createElement(Link_1.Link, { className: "ArticleMeta__item", href: href },
|
|
38
|
+
' ',
|
|
39
|
+
label,
|
|
40
|
+
' ')),
|
|
41
|
+
' ')))));
|
|
42
|
+
};
|
|
43
|
+
exports.default = ArticleMeta;
|
|
File without changes
|
package/Attention.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const getBemClass_1 = __importDefault(require("@hugsmidjan/react/utils/getBemClass"));
|
|
8
|
+
const Attention = (props) => (react_1.default.createElement("div", { className: (0, getBemClass_1.default)('Attention', props.small && 'small') }, props.children));
|
|
9
|
+
exports.default = Attention;
|
|
File without changes
|
package/BasicTable.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const Table_1 = __importDefault(require("@hugsmidjan/react/Table"));
|
|
8
|
+
const TableWrapper_1 = __importDefault(require("@hugsmidjan/react/TableWrapper"));
|
|
9
|
+
const getBemClass_1 = __importDefault(require("@hugsmidjan/react/utils/getBemClass"));
|
|
10
|
+
const seenEffect_1 = require("./utils/seenEffect");
|
|
11
|
+
const BasicTable = (props) => {
|
|
12
|
+
const { cols, caption, thead, tfoot, align, fullWidth, startSeen } = props;
|
|
13
|
+
const tbodyProps = props.tbodies
|
|
14
|
+
? { tbodies: props.tbodies }
|
|
15
|
+
: { tbody: props.tbody || [] };
|
|
16
|
+
const modifier = props.modifier;
|
|
17
|
+
const [ref] = (0, seenEffect_1.useSeenEffect)(startSeen);
|
|
18
|
+
return (react_1.default.createElement(TableWrapper_1.default, { modifier: [
|
|
19
|
+
'BasicTable',
|
|
20
|
+
modifier && 'BasicTable--' + modifier,
|
|
21
|
+
fullWidth && 'BasicTable--fullwidth',
|
|
22
|
+
align === 'right' && !fullWidth && 'BasicTable--align--' + align,
|
|
23
|
+
], wrapperRef: ref },
|
|
24
|
+
react_1.default.createElement(Table_1.default, Object.assign({ className: (0, getBemClass_1.default)('BasicTable', [
|
|
25
|
+
props.compact && 'compact',
|
|
26
|
+
modifier && modifier,
|
|
27
|
+
]) }, {
|
|
28
|
+
cols,
|
|
29
|
+
caption,
|
|
30
|
+
thead,
|
|
31
|
+
tfoot,
|
|
32
|
+
}, tbodyProps))));
|
|
33
|
+
};
|
|
34
|
+
exports.default = BasicTable;
|
|
File without changes
|
package/Bling.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const getBemClass_1 = __importDefault(require("@hugsmidjan/react/utils/getBemClass"));
|
|
8
|
+
const assets_1 = require("@reykjavik/hanna-utils/assets");
|
|
9
|
+
const useGetSVGtext_1 = require("./utils/useGetSVGtext");
|
|
10
|
+
const colors = {
|
|
11
|
+
tertiary: true,
|
|
12
|
+
secondary: true,
|
|
13
|
+
primary: true,
|
|
14
|
+
};
|
|
15
|
+
const aligns = {
|
|
16
|
+
left: true,
|
|
17
|
+
'left-ish': true,
|
|
18
|
+
'left-center': true,
|
|
19
|
+
'right-center': true,
|
|
20
|
+
'right-ish': true,
|
|
21
|
+
right: true,
|
|
22
|
+
};
|
|
23
|
+
const valigns = {
|
|
24
|
+
up: true,
|
|
25
|
+
'up-ish': true,
|
|
26
|
+
center: true,
|
|
27
|
+
'down-ish': true,
|
|
28
|
+
down: true,
|
|
29
|
+
};
|
|
30
|
+
const parentOffset = {
|
|
31
|
+
top: true,
|
|
32
|
+
'top-ish': true,
|
|
33
|
+
center: true,
|
|
34
|
+
'bottom-ish': true,
|
|
35
|
+
bottom: true,
|
|
36
|
+
};
|
|
37
|
+
const Bling = (props) => {
|
|
38
|
+
const { align, vertical, color, overlay, type, blingUrl, parent, className } = props;
|
|
39
|
+
const imageUrl = type ? (0, assets_1.getBlingUrl)(type) : blingUrl;
|
|
40
|
+
const inlineSvg = (0, useGetSVGtext_1.useGetSVGtext)(imageUrl);
|
|
41
|
+
return (react_1.default.createElement("div", { className: (0, getBemClass_1.default)('Bling', [
|
|
42
|
+
'align--' + (align && align in aligns ? align : 'left'),
|
|
43
|
+
vertical && vertical in valigns && 'vertical--' + vertical,
|
|
44
|
+
color && color in colors && 'color--' + color,
|
|
45
|
+
parent && parent in parentOffset && 'parent--' + parent,
|
|
46
|
+
overlay && 'overlay',
|
|
47
|
+
], className), "data-bling-type": type, "data-bling-image": !type ? blingUrl : undefined, dangerouslySetInnerHTML: inlineSvg && { __html: inlineSvg.code } }));
|
|
48
|
+
};
|
|
49
|
+
exports.default = Bling;
|
|
File without changes
|
package/BlockBreak.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
/*
|
|
8
|
+
TODO: Add story
|
|
9
|
+
*/
|
|
10
|
+
const BlockBreak = () => react_1.default.createElement("div", { className: "BlockBreak" });
|
|
11
|
+
exports.default = BlockBreak;
|
|
File without changes
|
package/BlockQuote.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const _Quote_1 = require("./_abstract/_Quote");
|
|
8
|
+
const BlockQuote = (props) => react_1.default.createElement(_Quote_1._Quote, Object.assign({ bem: "BlockQuote" }, props));
|
|
9
|
+
exports.default = BlockQuote;
|
|
File without changes
|
package/BreadCrumbs.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const Link_1 = require("./_abstract/Link");
|
|
8
|
+
const BreadCrumbs__item = (props) => {
|
|
9
|
+
const { link, current } = props;
|
|
10
|
+
return link.href != null ? (react_1.default.createElement(Link_1.Link, { className: "BreadCrumbs__item", href: link.href, "aria-current": current || undefined }, link.label)) : (react_1.default.createElement("span", { className: "BreadCrumbs__item", "aria-current": current || undefined }, link.label));
|
|
11
|
+
};
|
|
12
|
+
const BreadCrumbs = (props) => {
|
|
13
|
+
const { title, trail } = props;
|
|
14
|
+
if (trail.length === 0) {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
const ancestors = trail.slice(0, -1);
|
|
18
|
+
const current = trail[trail.length - 1];
|
|
19
|
+
return (react_1.default.createElement("nav", { className: "BreadCrumbs", "aria-label": title },
|
|
20
|
+
react_1.default.createElement("span", { className: "BreadCrumbs__title" },
|
|
21
|
+
title,
|
|
22
|
+
":"),
|
|
23
|
+
' ',
|
|
24
|
+
ancestors.map((link, i) => {
|
|
25
|
+
return (react_1.default.createElement(react_1.default.Fragment, { key: i },
|
|
26
|
+
react_1.default.createElement(BreadCrumbs__item, { link: link }),
|
|
27
|
+
' ',
|
|
28
|
+
react_1.default.createElement("span", { className: "BreadCrumbs__separator", "aria-label": "" }, ">"),
|
|
29
|
+
' '));
|
|
30
|
+
}),
|
|
31
|
+
react_1.default.createElement(BreadCrumbs__item, { link: current, current: true })));
|
|
32
|
+
};
|
|
33
|
+
exports.default = BreadCrumbs;
|
|
File without changes
|
package/ButtonBack.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const Button_1 = __importDefault(require("./_abstract/Button"));
|
|
8
|
+
const ButtonBack = (props) => (react_1.default.createElement(Button_1.default, Object.assign({ bem: "ButtonBack" }, props)));
|
|
9
|
+
exports.default = ButtonBack;
|
|
File without changes
|
package/ButtonBar.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ButtonBar__split = exports.ButtonBar = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const getBemClass_1 = __importDefault(require("@hugsmidjan/react/utils/getBemClass"));
|
|
9
|
+
const ButtonBar = (props) => {
|
|
10
|
+
const { align, children } = props;
|
|
11
|
+
return (react_1.default.createElement("div", { className: (0, getBemClass_1.default)('ButtonBar', align === 'right' && 'align--right') }, children));
|
|
12
|
+
};
|
|
13
|
+
exports.ButtonBar = ButtonBar;
|
|
14
|
+
exports.ButtonBar.Split = () => react_1.default.createElement("span", { className: "ButtonBar__split" });
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Prefer using `ButtonBar.Split` instead.
|
|
17
|
+
*
|
|
18
|
+
* (This export token is only to aid discovery.)
|
|
19
|
+
*/
|
|
20
|
+
exports.ButtonBar__split = exports.ButtonBar.Split;
|
|
21
|
+
exports.default = exports.ButtonBar;
|
|
File without changes
|
package/ButtonPrimary.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const Button_1 = __importDefault(require("./_abstract/Button"));
|
|
8
|
+
const ButtonPrimary = (props) => (react_1.default.createElement(Button_1.default, Object.assign({ bem: "ButtonPrimary" }, props)));
|
|
9
|
+
exports.default = ButtonPrimary;
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const Button_1 = __importDefault(require("./_abstract/Button"));
|
|
8
|
+
const ButtonSecondary = (props) => (react_1.default.createElement(Button_1.default, Object.assign({ bem: "ButtonSecondary" }, props)));
|
|
9
|
+
exports.default = ButtonSecondary;
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const Button_1 = __importDefault(require("./_abstract/Button"));
|
|
8
|
+
const sizes = {
|
|
9
|
+
normal: 'normal',
|
|
10
|
+
small: 'small',
|
|
11
|
+
};
|
|
12
|
+
const icons = {
|
|
13
|
+
none: 'none',
|
|
14
|
+
'go-back': 'go-back',
|
|
15
|
+
};
|
|
16
|
+
const ButtonTertiary = (props) => {
|
|
17
|
+
const { size = 'normal', icon = 'none' } = props;
|
|
18
|
+
return react_1.default.createElement(Button_1.default, Object.assign({ bem: "ButtonTertiary" }, props, { size: sizes[size], icon: icons[icon] }));
|
|
19
|
+
};
|
|
20
|
+
exports.default = ButtonTertiary;
|
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
- ... <!-- Add new lines here. -->
|
|
6
6
|
|
|
7
|
-
## 0.10.
|
|
7
|
+
## 0.10.56 – 0.10.57
|
|
8
|
+
|
|
9
|
+
_2022-06-13_
|
|
10
|
+
|
|
11
|
+
- feat: `MainMenu` returns `null` instead of rendering an empty menu
|
|
12
|
+
- feat: Add optional `group` prop to `SelectboxOptions` items
|
|
13
|
+
- fix: Problems in CJS and ESM, dual module file-structure
|
|
14
|
+
|
|
15
|
+
## 0.10.53 – 0.10.55
|
|
8
16
|
|
|
9
17
|
_2022-06-07_
|
|
10
18
|
|
|
@@ -16,7 +24,7 @@ _2022-06-07_
|
|
|
16
24
|
`@reykjavik/hanna-utils/assets`)
|
|
17
25
|
- feat(ts): Export `AuxiliaryPanelIllustrations` from `MainMenu`
|
|
18
26
|
|
|
19
|
-
## 0.10.50
|
|
27
|
+
## 0.10.50 – 0.10.52
|
|
20
28
|
|
|
21
29
|
_2022-05-31_
|
|
22
30
|
|
|
@@ -59,7 +67,7 @@ _2022-05-12_
|
|
|
59
67
|
|
|
60
68
|
- feat: Add optional prop `reqText` on `Checkbox`
|
|
61
69
|
|
|
62
|
-
## 0.10.44
|
|
70
|
+
## 0.10.44 – 0.10.45
|
|
63
71
|
|
|
64
72
|
_2022-05-04_
|
|
65
73
|
|
|
@@ -80,7 +88,7 @@ _2022-04-27_
|
|
|
80
88
|
- feat: `ContactBubble` toggling sets `html[data-contact-bubble]` styling flag
|
|
81
89
|
- fix: Bundle missing dragging/animation library
|
|
82
90
|
|
|
83
|
-
## 0.10.40
|
|
91
|
+
## 0.10.40 – 0.10.41
|
|
84
92
|
|
|
85
93
|
_2022-04-20_
|
|
86
94
|
|
|
@@ -139,7 +147,7 @@ _2022-03-22_
|
|
|
139
147
|
browser (or React) snap value to something unexpected because of mismatching
|
|
140
148
|
value and/or options.
|
|
141
149
|
|
|
142
|
-
## 0.10.32
|
|
150
|
+
## 0.10.32 – 0.10.34
|
|
143
151
|
|
|
144
152
|
_2022-03-21_
|
|
145
153
|
|
|
@@ -239,7 +247,7 @@ _2022-02-15_
|
|
|
239
247
|
|
|
240
248
|
- fix: `SiteSearchCurtain` not triggering with Preact
|
|
241
249
|
|
|
242
|
-
## 0.10.19
|
|
250
|
+
## 0.10.19 – 0.10.20
|
|
243
251
|
|
|
244
252
|
_2022-02-08_
|
|
245
253
|
|
|
File without changes
|
package/Carousel.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const _AbstractCarousel_1 = __importDefault(require("./_abstract/_AbstractCarousel"));
|
|
8
|
+
const Carousel = (props) => (react_1.default.createElement(_AbstractCarousel_1.default, Object.assign({}, props, { bem: undefined, modifier: undefined, title: undefined })));
|
|
9
|
+
exports.default = Carousel;
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const CarouselStepper_1 = __importDefault(require("@hugsmidjan/react/CarouselStepper"));
|
|
8
|
+
const CarouselStepper = (props) => (react_1.default.createElement(CarouselStepper_1.default, Object.assign({}, props, { bem: undefined, modifier: undefined })));
|
|
9
|
+
exports.default = CarouselStepper;
|