@reykjavik/hanna-react 0.10.57 → 0.10.60
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/AccordionList.js +3 -28
- package/ActionCards.d.ts +1 -1
- package/ActionCards.js +4 -6
- package/Alert.js +5 -30
- package/ArticleCards.d.ts +6 -0
- package/ArticleCards.js +7 -0
- package/ArticleCarousel/_ArticleCarouselCard.d.ts +1 -1
- package/ArticleCarousel/_ArticleCarouselCard.js +8 -10
- package/ArticleCarousel.js +3 -5
- package/ArticleMeta.d.ts +1 -0
- package/ArticleMeta.js +7 -28
- package/Attention.js +3 -5
- package/BasicTable.js +5 -7
- package/{esm/CenterColumn.d.ts → BgBox.d.ts} +4 -3
- package/BgBox.js +12 -0
- package/Bling.js +3 -5
- package/BlockBreak.js +2 -4
- package/BlockQuote.js +2 -4
- package/BreadCrumbs.js +4 -6
- package/ButtonBack.d.ts +1 -1
- package/ButtonBack.js +4 -6
- package/ButtonBar.js +3 -5
- package/ButtonPrimary.d.ts +1 -1
- package/ButtonPrimary.js +4 -6
- package/ButtonSecondary.d.ts +1 -1
- package/ButtonSecondary.js +4 -6
- package/ButtonTertiary.d.ts +1 -1
- package/ButtonTertiary.js +4 -6
- package/CHANGELOG.md +20 -1
- package/Carousel.js +3 -5
- package/CarouselStepper.js +3 -5
- package/CenterColumn.js +3 -5
- package/Checkbox.d.ts +1 -1
- package/Checkbox.js +4 -6
- package/CheckboxButtonsGroup.d.ts +1 -1
- package/CheckboxButtonsGroup.js +6 -8
- package/CheckboxGroup.d.ts +1 -1
- package/CheckboxGroup.js +5 -7
- package/CityBlock.d.ts +1 -1
- package/CityBlock.js +3 -5
- package/ContactBubble.js +6 -31
- package/ContentArticle.js +8 -10
- package/ContentImage.d.ts +1 -1
- package/ContentImage.js +4 -6
- package/Datepicker.js +6 -31
- package/ExtraLinks.d.ts +1 -1
- package/ExtraLinks.js +8 -21
- package/FeatureList.js +3 -5
- package/FieldGroup.js +3 -5
- package/FileInput.js +5 -41
- package/Foonote.js +2 -4
- package/FooterBadges.js +4 -6
- package/FooterInfo.js +3 -5
- package/Footnote.js +2 -4
- package/Form.js +3 -5
- package/FormField.js +3 -28
- package/Gallery/_GalleryItem.d.ts +1 -1
- package/Gallery/_GalleryItem.js +9 -45
- package/Gallery/_GalleryModal.js +6 -31
- package/Gallery/_GalleryModalContext.js +2 -4
- package/Gallery/_GalleryModalItem.js +5 -18
- package/Gallery.js +6 -31
- package/GridBlocks.d.ts +2 -2
- package/GridBlocks.js +8 -10
- package/Heading.d.ts +1 -1
- package/Heading.js +4 -6
- package/HeroBlock.d.ts +2 -2
- package/HeroBlock.js +6 -8
- package/IframeBlock.d.ts +5 -1
- package/IframeBlock.js +6 -8
- package/Illustration.d.ts +1 -1
- package/Illustration.js +4 -6
- package/ImageCards.d.ts +1 -1
- package/ImageCards.js +6 -19
- package/InfoBlock.js +2 -4
- package/InfoHero.d.ts +2 -2
- package/InfoHero.js +8 -10
- package/IslandBlock.d.ts +1 -1
- package/IslandBlock.js +3 -5
- package/IslandPageBlock.d.ts +1 -1
- package/IslandPageBlock.js +3 -5
- package/LabeledTextBlock.d.ts +1 -1
- package/LabeledTextBlock.js +4 -6
- package/Layout.js +9 -11
- package/MainMenu/_Auxiliary.js +4 -6
- package/MainMenu/_PrimaryPanel.js +5 -7
- package/MainMenu.js +7 -32
- package/MiniMetrics.d.ts +1 -1
- package/MiniMetrics.js +5 -7
- package/Modal.js +3 -5
- package/NameCard.js +6 -8
- package/NameCards.js +3 -5
- package/NewsHero.d.ts +1 -1
- package/NewsHero.js +7 -9
- package/PageFilter.js +4 -6
- package/PageHeading.js +3 -5
- package/Picture.d.ts +7 -0
- package/Picture.js +11 -0
- package/ProcessOverview.js +3 -5
- package/PullQuote.js +2 -4
- package/RadioButtonsGroup.d.ts +1 -1
- package/RadioButtonsGroup.js +6 -8
- package/RadioGroup.d.ts +2 -2
- package/RadioGroup.js +6 -8
- package/RelatedLinks.js +4 -6
- package/RowBlock.js +3 -5
- package/RowBlockColumn.js +3 -5
- package/SearchInput.js +5 -41
- package/SearchResults/_SearchResultsItem.js +6 -8
- package/SearchResults.js +7 -32
- package/SeenEffect.js +3 -16
- package/Selectbox.js +6 -42
- package/ShareButtons.js +4 -26
- package/Sharpie.js +3 -5
- package/SiteSearchAutocomplete.js +5 -41
- package/SiteSearchCurtain.js +3 -28
- package/SiteSearchInput.d.ts +1 -1
- package/SiteSearchInput.js +4 -40
- package/Skeleton.js +4 -6
- package/SubHeading.js +3 -5
- package/Tabs.js +3 -28
- package/TagPill.d.ts +1 -1
- package/TagPill.js +7 -20
- package/TextBlock.js +3 -5
- package/TextButton.d.ts +1 -1
- package/TextButton.js +4 -6
- package/TextInput.js +5 -41
- package/VSpacer.js +3 -5
- package/VerticalTabsTOC.js +3 -28
- package/WizardLayout.js +7 -9
- package/WizardLayoutClose.d.ts +1 -1
- package/WizardLayoutClose.js +4 -6
- package/WizardStepper.js +3 -5
- package/_abstract/_AbstractCarousel.js +7 -32
- package/_abstract/_Blings.js +3 -5
- package/_abstract/_Block.d.ts +2 -2
- package/_abstract/_Block.js +7 -9
- package/_abstract/{Button.d.ts → _Button.d.ts} +0 -0
- package/_abstract/{Button.js → _Button.js} +6 -19
- package/{esm/_abstract/CardList.d.ts → _abstract/_CardList.d.ts} +2 -1
- package/_abstract/{CardList.js → _CardList.js} +12 -12
- package/{esm/_abstract/Image.d.ts → _abstract/_Image.d.ts} +9 -5
- package/_abstract/{Image.js → _Image.js} +5 -7
- package/_abstract/{Link.d.ts → _Link.d.ts} +0 -0
- package/_abstract/{Link.js → _Link.js} +2 -4
- package/_abstract/_Quote.js +4 -6
- package/{esm/_abstract/TogglerGroup.d.ts → _abstract/_TogglerGroup.d.ts} +1 -1
- package/_abstract/{TogglerGroup.js → _TogglerGroup.js} +8 -8
- package/{esm/_abstract/TogglerGroupField.d.ts → _abstract/_TogglerGroupField.d.ts} +2 -2
- package/_abstract/_TogglerGroupField.js +14 -0
- package/_abstract/{TogglerInput.d.ts → _TogglerInput.d.ts} +0 -0
- package/_abstract/{TogglerInput.js → _TogglerInput.js} +4 -17
- package/_abstract/breakOnNL.js +2 -4
- package/package.json +6 -365
- package/utils/env.js +2 -4
- package/utils/seenEffect.d.ts +2 -2
- package/utils/seenEffect.js +1 -1
- package/utils/useScrollbarWidthCSSVar.js +2 -4
- package/utils.js +3 -16
- package/_abstract/CardList.d.ts +0 -29
- package/_abstract/Image.d.ts +0 -32
- package/_abstract/TogglerGroup.d.ts +0 -31
- package/_abstract/TogglerGroupField.d.ts +0 -17
- package/_abstract/TogglerGroupField.js +0 -27
- package/esm/AccordionList.d.ts +0 -17
- package/esm/AccordionList.js +0 -24
- package/esm/ActionCards.d.ts +0 -5
- package/esm/ActionCards.js +0 -9
- package/esm/Alert.d.ts +0 -49
- package/esm/Alert.js +0 -92
- package/esm/ArticleCarousel/_ArticleCarouselCard.d.ts +0 -27
- package/esm/ArticleCarousel/_ArticleCarouselCard.js +0 -24
- package/esm/ArticleCarousel.d.ts +0 -12
- package/esm/ArticleCarousel.js +0 -8
- package/esm/ArticleMeta.d.ts +0 -9
- package/esm/ArticleMeta.js +0 -18
- package/esm/Attention.d.ts +0 -7
- package/esm/Attention.js +0 -4
- package/esm/BasicTable.d.ts +0 -12
- package/esm/BasicTable.js +0 -29
- package/esm/Bling.d.ts +0 -81
- package/esm/Bling.js +0 -44
- package/esm/BlockBreak.d.ts +0 -2
- package/esm/BlockBreak.js +0 -6
- package/esm/BlockQuote.d.ts +0 -4
- package/esm/BlockQuote.js +0 -4
- package/esm/BreadCrumbs.d.ts +0 -11
- package/esm/BreadCrumbs.js +0 -28
- package/esm/ButtonBack.d.ts +0 -7
- package/esm/ButtonBack.js +0 -4
- package/esm/ButtonBar.d.ts +0 -16
- package/esm/ButtonBar.js +0 -14
- package/esm/ButtonPrimary.d.ts +0 -7
- package/esm/ButtonPrimary.js +0 -4
- package/esm/ButtonSecondary.d.ts +0 -7
- package/esm/ButtonSecondary.js +0 -4
- package/esm/ButtonTertiary.d.ts +0 -12
- package/esm/ButtonTertiary.js +0 -15
- package/esm/Carousel.d.ts +0 -4
- package/esm/Carousel.js +0 -4
- package/esm/CarouselStepper.d.ts +0 -4
- package/esm/CarouselStepper.js +0 -4
- package/esm/CenterColumn.js +0 -7
- package/esm/Checkbox.d.ts +0 -4
- package/esm/Checkbox.js +0 -4
- package/esm/CheckboxButtonsGroup.d.ts +0 -11
- package/esm/CheckboxButtonsGroup.js +0 -14
- package/esm/CheckboxGroup.d.ts +0 -9
- package/esm/CheckboxGroup.js +0 -7
- package/esm/CityBlock.d.ts +0 -23
- package/esm/CityBlock.js +0 -18
- package/esm/ContactBubble.d.ts +0 -58
- package/esm/ContactBubble.js +0 -148
- package/esm/ContentArticle.d.ts +0 -15
- package/esm/ContentArticle.js +0 -21
- package/esm/ContentImage.d.ts +0 -8
- package/esm/ContentImage.js +0 -18
- package/esm/Datepicker.d.ts +0 -39
- package/esm/Datepicker.js +0 -63
- package/esm/ExtraLinks.d.ts +0 -18
- package/esm/ExtraLinks.js +0 -34
- package/esm/FeatureList.d.ts +0 -12
- package/esm/FeatureList.js +0 -16
- package/esm/FieldGroup.d.ts +0 -9
- package/esm/FieldGroup.js +0 -9
- package/esm/FileInput.d.ts +0 -17
- package/esm/FileInput.js +0 -154
- package/esm/Foonote.d.ts +0 -12
- package/esm/Foonote.js +0 -7
- package/esm/FooterBadges.d.ts +0 -9
- package/esm/FooterBadges.js +0 -12
- package/esm/FooterInfo.d.ts +0 -18
- package/esm/FooterInfo.js +0 -9
- package/esm/Footnote.d.ts +0 -6
- package/esm/Footnote.js +0 -3
- package/esm/Form.d.ts +0 -7
- package/esm/Form.js +0 -10
- package/esm/FormField.d.ts +0 -65
- package/esm/FormField.js +0 -91
- package/esm/Gallery/_GalleryItem.d.ts +0 -8
- package/esm/Gallery/_GalleryItem.js +0 -30
- package/esm/Gallery/_GalleryModal.d.ts +0 -6
- package/esm/Gallery/_GalleryModal.js +0 -54
- package/esm/Gallery/_GalleryModalContext.d.ts +0 -9
- package/esm/Gallery/_GalleryModalContext.js +0 -3
- package/esm/Gallery/_GalleryModalItem.d.ts +0 -3
- package/esm/Gallery/_GalleryModalItem.js +0 -22
- package/esm/Gallery.d.ts +0 -17
- package/esm/Gallery.js +0 -27
- package/esm/GridBlocks.d.ts +0 -26
- package/esm/GridBlocks.js +0 -24
- package/esm/Heading.d.ts +0 -16
- package/esm/Heading.js +0 -17
- package/esm/HeroBlock.d.ts +0 -19
- package/esm/HeroBlock.js +0 -21
- package/esm/IframeBlock.d.ts +0 -23
- package/esm/IframeBlock.js +0 -26
- package/esm/Illustration.d.ts +0 -13
- package/esm/Illustration.js +0 -8
- package/esm/ImageCards.d.ts +0 -8
- package/esm/ImageCards.js +0 -22
- package/esm/InfoBlock.d.ts +0 -17
- package/esm/InfoBlock.js +0 -13
- package/esm/InfoHero.d.ts +0 -17
- package/esm/InfoHero.js +0 -82
- package/esm/IslandBlock.d.ts +0 -25
- package/esm/IslandBlock.js +0 -16
- package/esm/IslandPageBlock.d.ts +0 -24
- package/esm/IslandPageBlock.js +0 -16
- package/esm/LabeledTextBlock.d.ts +0 -11
- package/esm/LabeledTextBlock.js +0 -14
- package/esm/Layout.d.ts +0 -33
- package/esm/Layout.js +0 -52
- package/esm/MainMenu/_Auxiliary.d.ts +0 -6
- package/esm/MainMenu/_Auxiliary.js +0 -13
- package/esm/MainMenu/_PrimaryPanel.d.ts +0 -13
- package/esm/MainMenu/_PrimaryPanel.js +0 -22
- package/esm/MainMenu.d.ts +0 -48
- package/esm/MainMenu.js +0 -136
- package/esm/MiniMetrics.d.ts +0 -8
- package/esm/MiniMetrics.js +0 -12
- package/esm/Modal.d.ts +0 -10
- package/esm/Modal.js +0 -14
- package/esm/NameCard.d.ts +0 -64
- package/esm/NameCard.js +0 -82
- package/esm/NameCards.d.ts +0 -6
- package/esm/NameCards.js +0 -7
- package/esm/NewsHero.d.ts +0 -14
- package/esm/NewsHero.js +0 -86
- package/esm/PageFilter.d.ts +0 -17
- package/esm/PageFilter.js +0 -15
- package/esm/PageHeading.d.ts +0 -10
- package/esm/PageHeading.js +0 -12
- package/esm/ProcessOverview.d.ts +0 -13
- package/esm/ProcessOverview.js +0 -17
- package/esm/PullQuote.d.ts +0 -4
- package/esm/PullQuote.js +0 -4
- package/esm/RadioButtonsGroup.d.ts +0 -11
- package/esm/RadioButtonsGroup.js +0 -14
- package/esm/RadioGroup.d.ts +0 -13
- package/esm/RadioGroup.js +0 -7
- package/esm/RelatedLinks.d.ts +0 -20
- package/esm/RelatedLinks.js +0 -26
- package/esm/RowBlock.d.ts +0 -12
- package/esm/RowBlock.js +0 -9
- package/esm/RowBlockColumn.d.ts +0 -8
- package/esm/RowBlockColumn.js +0 -11
- package/esm/SearchInput.d.ts +0 -18
- package/esm/SearchInput.js +0 -33
- package/esm/SearchResults/_SearchResultsItem.d.ts +0 -18
- package/esm/SearchResults/_SearchResultsItem.js +0 -15
- package/esm/SearchResults.d.ts +0 -33
- package/esm/SearchResults.js +0 -109
- package/esm/SeenEffect.d.ts +0 -4
- package/esm/SeenEffect.js +0 -19
- package/esm/Selectbox.d.ts +0 -8
- package/esm/Selectbox.js +0 -46
- package/esm/ShareButtons.d.ts +0 -9
- package/esm/ShareButtons.js +0 -51
- package/esm/Sharpie.d.ts +0 -23
- package/esm/Sharpie.js +0 -22
- package/esm/SiteSearchAutocomplete.d.ts +0 -40
- package/esm/SiteSearchAutocomplete.js +0 -58
- package/esm/SiteSearchCurtain.d.ts +0 -6
- package/esm/SiteSearchCurtain.js +0 -33
- package/esm/SiteSearchInput.d.ts +0 -24
- package/esm/SiteSearchInput.js +0 -40
- package/esm/Skeleton.d.ts +0 -25
- package/esm/Skeleton.js +0 -30
- package/esm/SubHeading.d.ts +0 -10
- package/esm/SubHeading.js +0 -13
- package/esm/Tabs.d.ts +0 -35
- package/esm/Tabs.js +0 -94
- package/esm/TagPill.d.ts +0 -27
- package/esm/TagPill.js +0 -43
- package/esm/TextBlock.d.ts +0 -15
- package/esm/TextBlock.js +0 -15
- package/esm/TextButton.d.ts +0 -9
- package/esm/TextButton.js +0 -9
- package/esm/TextInput.d.ts +0 -16
- package/esm/TextInput.js +0 -35
- package/esm/VSpacer.d.ts +0 -24
- package/esm/VSpacer.js +0 -41
- package/esm/VerticalTabsTOC.d.ts +0 -14
- package/esm/VerticalTabsTOC.js +0 -68
- package/esm/WizardLayout.d.ts +0 -15
- package/esm/WizardLayout.js +0 -30
- package/esm/WizardLayoutClose.d.ts +0 -3
- package/esm/WizardLayoutClose.js +0 -4
- package/esm/WizardStepper.d.ts +0 -36
- package/esm/WizardStepper.js +0 -25
- package/esm/_abstract/Button.d.ts +0 -40
- package/esm/_abstract/Button.js +0 -47
- package/esm/_abstract/CardList.js +0 -36
- package/esm/_abstract/Image.js +0 -27
- package/esm/_abstract/Link.d.ts +0 -27
- package/esm/_abstract/Link.js +0 -24
- package/esm/_abstract/TogglerGroup.js +0 -29
- package/esm/_abstract/TogglerGroupField.js +0 -22
- package/esm/_abstract/TogglerInput.d.ts +0 -22
- package/esm/_abstract/TogglerInput.js +0 -33
- package/esm/_abstract/_AbstractCarousel.d.ts +0 -25
- package/esm/_abstract/_AbstractCarousel.js +0 -130
- package/esm/_abstract/_Blings.d.ts +0 -11
- package/esm/_abstract/_Blings.js +0 -12
- package/esm/_abstract/_Block.d.ts +0 -22
- package/esm/_abstract/_Block.js +0 -24
- package/esm/_abstract/_Quote.d.ts +0 -9
- package/esm/_abstract/_Quote.js +0 -8
- package/esm/_abstract/breakOnNL.d.ts +0 -2
- package/esm/_abstract/breakOnNL.js +0 -8
- package/esm/assets.d.ts +0 -42
- package/esm/assets.js +0 -56
- package/esm/constants.d.ts +0 -39
- package/esm/constants.js +0 -22
- package/esm/focus-visible.d.ts +0 -1
- package/esm/focus-visible.js +0 -1
- package/esm/package.json +0 -1
- package/esm/utils/env.d.ts +0 -1
- package/esm/utils/env.js +0 -8
- package/esm/utils/seenEffect.d.ts +0 -28
- package/esm/utils/seenEffect.js +0 -73
- package/esm/utils/useFormatMonitor.d.ts +0 -38
- package/esm/utils/useFormatMonitor.js +0 -41
- package/esm/utils/useGetSVGtext.d.ts +0 -6
- package/esm/utils/useGetSVGtext.js +0 -19
- package/esm/utils/useMenuToggling.d.ts +0 -8
- package/esm/utils/useMenuToggling.js +0 -62
- package/esm/utils/useScrollbarWidthCSSVar.d.ts +0 -1
- package/esm/utils/useScrollbarWidthCSSVar.js +0 -3
- package/esm/utils.d.ts +0 -2
- package/esm/utils.js +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reykjavik/hanna-react",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.60",
|
|
4
4
|
"author": "Reykjavík (http://www.reykjavik.is)",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Hugsmiðjan ehf (http://www.hugsmidjan.is)",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"@hugsmidjan/react": "^0.4.17",
|
|
18
18
|
"@reykjavik/hanna-css": "^0.3.3",
|
|
19
19
|
"@reykjavik/hanna-utils": "^0.1.7",
|
|
20
|
-
"@types/react": "
|
|
20
|
+
"@types/react": "^17.0.24",
|
|
21
21
|
"@types/react-autosuggest": "^10.1.0",
|
|
22
22
|
"@types/react-datepicker": "^3.0.2",
|
|
23
|
-
"@types/react-dom": "
|
|
23
|
+
"@types/react-dom": "^17.0.9",
|
|
24
24
|
"@types/react-transition-group": "^4.4.0",
|
|
25
25
|
"iframe-resizer-react": "^1.1.0",
|
|
26
26
|
"react-autosuggest": "^10.1.0",
|
|
@@ -36,366 +36,7 @@
|
|
|
36
36
|
"react": ">=16.8 <19",
|
|
37
37
|
"react-dom": ">=16.8 <19"
|
|
38
38
|
},
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
"require": "./AccordionList.js"
|
|
43
|
-
},
|
|
44
|
-
"./ActionCards": {
|
|
45
|
-
"import": "./esm/ActionCards.js",
|
|
46
|
-
"require": "./ActionCards.js"
|
|
47
|
-
},
|
|
48
|
-
"./Alert": {
|
|
49
|
-
"import": "./esm/Alert.js",
|
|
50
|
-
"require": "./Alert.js"
|
|
51
|
-
},
|
|
52
|
-
"./ArticleCarousel": {
|
|
53
|
-
"import": "./esm/ArticleCarousel.js",
|
|
54
|
-
"require": "./ArticleCarousel.js"
|
|
55
|
-
},
|
|
56
|
-
"./ArticleMeta": {
|
|
57
|
-
"import": "./esm/ArticleMeta.js",
|
|
58
|
-
"require": "./ArticleMeta.js"
|
|
59
|
-
},
|
|
60
|
-
"./assets": {
|
|
61
|
-
"import": "./esm/assets.js",
|
|
62
|
-
"require": "./assets.js"
|
|
63
|
-
},
|
|
64
|
-
"./Attention": {
|
|
65
|
-
"import": "./esm/Attention.js",
|
|
66
|
-
"require": "./Attention.js"
|
|
67
|
-
},
|
|
68
|
-
"./BasicTable": {
|
|
69
|
-
"import": "./esm/BasicTable.js",
|
|
70
|
-
"require": "./BasicTable.js"
|
|
71
|
-
},
|
|
72
|
-
"./Bling": {
|
|
73
|
-
"import": "./esm/Bling.js",
|
|
74
|
-
"require": "./Bling.js"
|
|
75
|
-
},
|
|
76
|
-
"./BlockBreak": {
|
|
77
|
-
"import": "./esm/BlockBreak.js",
|
|
78
|
-
"require": "./BlockBreak.js"
|
|
79
|
-
},
|
|
80
|
-
"./BlockQuote": {
|
|
81
|
-
"import": "./esm/BlockQuote.js",
|
|
82
|
-
"require": "./BlockQuote.js"
|
|
83
|
-
},
|
|
84
|
-
"./BreadCrumbs": {
|
|
85
|
-
"import": "./esm/BreadCrumbs.js",
|
|
86
|
-
"require": "./BreadCrumbs.js"
|
|
87
|
-
},
|
|
88
|
-
"./ButtonBack": {
|
|
89
|
-
"import": "./esm/ButtonBack.js",
|
|
90
|
-
"require": "./ButtonBack.js"
|
|
91
|
-
},
|
|
92
|
-
"./ButtonBar": {
|
|
93
|
-
"import": "./esm/ButtonBar.js",
|
|
94
|
-
"require": "./ButtonBar.js"
|
|
95
|
-
},
|
|
96
|
-
"./ButtonPrimary": {
|
|
97
|
-
"import": "./esm/ButtonPrimary.js",
|
|
98
|
-
"require": "./ButtonPrimary.js"
|
|
99
|
-
},
|
|
100
|
-
"./ButtonSecondary": {
|
|
101
|
-
"import": "./esm/ButtonSecondary.js",
|
|
102
|
-
"require": "./ButtonSecondary.js"
|
|
103
|
-
},
|
|
104
|
-
"./ButtonTertiary": {
|
|
105
|
-
"import": "./esm/ButtonTertiary.js",
|
|
106
|
-
"require": "./ButtonTertiary.js"
|
|
107
|
-
},
|
|
108
|
-
"./Carousel": {
|
|
109
|
-
"import": "./esm/Carousel.js",
|
|
110
|
-
"require": "./Carousel.js"
|
|
111
|
-
},
|
|
112
|
-
"./CarouselStepper": {
|
|
113
|
-
"import": "./esm/CarouselStepper.js",
|
|
114
|
-
"require": "./CarouselStepper.js"
|
|
115
|
-
},
|
|
116
|
-
"./CenterColumn": {
|
|
117
|
-
"import": "./esm/CenterColumn.js",
|
|
118
|
-
"require": "./CenterColumn.js"
|
|
119
|
-
},
|
|
120
|
-
"./Checkbox": {
|
|
121
|
-
"import": "./esm/Checkbox.js",
|
|
122
|
-
"require": "./Checkbox.js"
|
|
123
|
-
},
|
|
124
|
-
"./CheckboxButtonsGroup": {
|
|
125
|
-
"import": "./esm/CheckboxButtonsGroup.js",
|
|
126
|
-
"require": "./CheckboxButtonsGroup.js"
|
|
127
|
-
},
|
|
128
|
-
"./CheckboxGroup": {
|
|
129
|
-
"import": "./esm/CheckboxGroup.js",
|
|
130
|
-
"require": "./CheckboxGroup.js"
|
|
131
|
-
},
|
|
132
|
-
"./CityBlock": {
|
|
133
|
-
"import": "./esm/CityBlock.js",
|
|
134
|
-
"require": "./CityBlock.js"
|
|
135
|
-
},
|
|
136
|
-
"./constants": {
|
|
137
|
-
"import": "./esm/constants.js",
|
|
138
|
-
"require": "./constants.js"
|
|
139
|
-
},
|
|
140
|
-
"./ContactBubble": {
|
|
141
|
-
"import": "./esm/ContactBubble.js",
|
|
142
|
-
"require": "./ContactBubble.js"
|
|
143
|
-
},
|
|
144
|
-
"./ContentArticle": {
|
|
145
|
-
"import": "./esm/ContentArticle.js",
|
|
146
|
-
"require": "./ContentArticle.js"
|
|
147
|
-
},
|
|
148
|
-
"./ContentImage": {
|
|
149
|
-
"import": "./esm/ContentImage.js",
|
|
150
|
-
"require": "./ContentImage.js"
|
|
151
|
-
},
|
|
152
|
-
"./Datepicker": {
|
|
153
|
-
"import": "./esm/Datepicker.js",
|
|
154
|
-
"require": "./Datepicker.js"
|
|
155
|
-
},
|
|
156
|
-
"./ExtraLinks": {
|
|
157
|
-
"import": "./esm/ExtraLinks.js",
|
|
158
|
-
"require": "./ExtraLinks.js"
|
|
159
|
-
},
|
|
160
|
-
"./FeatureList": {
|
|
161
|
-
"import": "./esm/FeatureList.js",
|
|
162
|
-
"require": "./FeatureList.js"
|
|
163
|
-
},
|
|
164
|
-
"./FieldGroup": {
|
|
165
|
-
"import": "./esm/FieldGroup.js",
|
|
166
|
-
"require": "./FieldGroup.js"
|
|
167
|
-
},
|
|
168
|
-
"./FileInput": {
|
|
169
|
-
"import": "./esm/FileInput.js",
|
|
170
|
-
"require": "./FileInput.js"
|
|
171
|
-
},
|
|
172
|
-
"./focus-visible": {
|
|
173
|
-
"import": "./esm/focus-visible.js",
|
|
174
|
-
"require": "./focus-visible.js"
|
|
175
|
-
},
|
|
176
|
-
"./Foonote": {
|
|
177
|
-
"import": "./esm/Foonote.js",
|
|
178
|
-
"require": "./Foonote.js"
|
|
179
|
-
},
|
|
180
|
-
"./FooterBadges": {
|
|
181
|
-
"import": "./esm/FooterBadges.js",
|
|
182
|
-
"require": "./FooterBadges.js"
|
|
183
|
-
},
|
|
184
|
-
"./FooterInfo": {
|
|
185
|
-
"import": "./esm/FooterInfo.js",
|
|
186
|
-
"require": "./FooterInfo.js"
|
|
187
|
-
},
|
|
188
|
-
"./Footnote": {
|
|
189
|
-
"import": "./esm/Footnote.js",
|
|
190
|
-
"require": "./Footnote.js"
|
|
191
|
-
},
|
|
192
|
-
"./Form": {
|
|
193
|
-
"import": "./esm/Form.js",
|
|
194
|
-
"require": "./Form.js"
|
|
195
|
-
},
|
|
196
|
-
"./FormField": {
|
|
197
|
-
"import": "./esm/FormField.js",
|
|
198
|
-
"require": "./FormField.js"
|
|
199
|
-
},
|
|
200
|
-
"./Gallery": {
|
|
201
|
-
"import": "./esm/Gallery.js",
|
|
202
|
-
"require": "./Gallery.js"
|
|
203
|
-
},
|
|
204
|
-
"./GridBlocks": {
|
|
205
|
-
"import": "./esm/GridBlocks.js",
|
|
206
|
-
"require": "./GridBlocks.js"
|
|
207
|
-
},
|
|
208
|
-
"./Heading": {
|
|
209
|
-
"import": "./esm/Heading.js",
|
|
210
|
-
"require": "./Heading.js"
|
|
211
|
-
},
|
|
212
|
-
"./HeroBlock": {
|
|
213
|
-
"import": "./esm/HeroBlock.js",
|
|
214
|
-
"require": "./HeroBlock.js"
|
|
215
|
-
},
|
|
216
|
-
"./IframeBlock": {
|
|
217
|
-
"import": "./esm/IframeBlock.js",
|
|
218
|
-
"require": "./IframeBlock.js"
|
|
219
|
-
},
|
|
220
|
-
"./Illustration": {
|
|
221
|
-
"import": "./esm/Illustration.js",
|
|
222
|
-
"require": "./Illustration.js"
|
|
223
|
-
},
|
|
224
|
-
"./ImageCards": {
|
|
225
|
-
"import": "./esm/ImageCards.js",
|
|
226
|
-
"require": "./ImageCards.js"
|
|
227
|
-
},
|
|
228
|
-
"./InfoBlock": {
|
|
229
|
-
"import": "./esm/InfoBlock.js",
|
|
230
|
-
"require": "./InfoBlock.js"
|
|
231
|
-
},
|
|
232
|
-
"./InfoHero": {
|
|
233
|
-
"import": "./esm/InfoHero.js",
|
|
234
|
-
"require": "./InfoHero.js"
|
|
235
|
-
},
|
|
236
|
-
"./IslandBlock": {
|
|
237
|
-
"import": "./esm/IslandBlock.js",
|
|
238
|
-
"require": "./IslandBlock.js"
|
|
239
|
-
},
|
|
240
|
-
"./IslandPageBlock": {
|
|
241
|
-
"import": "./esm/IslandPageBlock.js",
|
|
242
|
-
"require": "./IslandPageBlock.js"
|
|
243
|
-
},
|
|
244
|
-
"./LabeledTextBlock": {
|
|
245
|
-
"import": "./esm/LabeledTextBlock.js",
|
|
246
|
-
"require": "./LabeledTextBlock.js"
|
|
247
|
-
},
|
|
248
|
-
"./Layout": {
|
|
249
|
-
"import": "./esm/Layout.js",
|
|
250
|
-
"require": "./Layout.js"
|
|
251
|
-
},
|
|
252
|
-
"./MainMenu": {
|
|
253
|
-
"import": "./esm/MainMenu.js",
|
|
254
|
-
"require": "./MainMenu.js"
|
|
255
|
-
},
|
|
256
|
-
"./MiniMetrics": {
|
|
257
|
-
"import": "./esm/MiniMetrics.js",
|
|
258
|
-
"require": "./MiniMetrics.js"
|
|
259
|
-
},
|
|
260
|
-
"./Modal": {
|
|
261
|
-
"import": "./esm/Modal.js",
|
|
262
|
-
"require": "./Modal.js"
|
|
263
|
-
},
|
|
264
|
-
"./NameCard": {
|
|
265
|
-
"import": "./esm/NameCard.js",
|
|
266
|
-
"require": "./NameCard.js"
|
|
267
|
-
},
|
|
268
|
-
"./NameCards": {
|
|
269
|
-
"import": "./esm/NameCards.js",
|
|
270
|
-
"require": "./NameCards.js"
|
|
271
|
-
},
|
|
272
|
-
"./NewsHero": {
|
|
273
|
-
"import": "./esm/NewsHero.js",
|
|
274
|
-
"require": "./NewsHero.js"
|
|
275
|
-
},
|
|
276
|
-
"./PageFilter": {
|
|
277
|
-
"import": "./esm/PageFilter.js",
|
|
278
|
-
"require": "./PageFilter.js"
|
|
279
|
-
},
|
|
280
|
-
"./PageHeading": {
|
|
281
|
-
"import": "./esm/PageHeading.js",
|
|
282
|
-
"require": "./PageHeading.js"
|
|
283
|
-
},
|
|
284
|
-
"./ProcessOverview": {
|
|
285
|
-
"import": "./esm/ProcessOverview.js",
|
|
286
|
-
"require": "./ProcessOverview.js"
|
|
287
|
-
},
|
|
288
|
-
"./PullQuote": {
|
|
289
|
-
"import": "./esm/PullQuote.js",
|
|
290
|
-
"require": "./PullQuote.js"
|
|
291
|
-
},
|
|
292
|
-
"./RadioButtonsGroup": {
|
|
293
|
-
"import": "./esm/RadioButtonsGroup.js",
|
|
294
|
-
"require": "./RadioButtonsGroup.js"
|
|
295
|
-
},
|
|
296
|
-
"./RadioGroup": {
|
|
297
|
-
"import": "./esm/RadioGroup.js",
|
|
298
|
-
"require": "./RadioGroup.js"
|
|
299
|
-
},
|
|
300
|
-
"./RelatedLinks": {
|
|
301
|
-
"import": "./esm/RelatedLinks.js",
|
|
302
|
-
"require": "./RelatedLinks.js"
|
|
303
|
-
},
|
|
304
|
-
"./RowBlock": {
|
|
305
|
-
"import": "./esm/RowBlock.js",
|
|
306
|
-
"require": "./RowBlock.js"
|
|
307
|
-
},
|
|
308
|
-
"./RowBlockColumn": {
|
|
309
|
-
"import": "./esm/RowBlockColumn.js",
|
|
310
|
-
"require": "./RowBlockColumn.js"
|
|
311
|
-
},
|
|
312
|
-
"./SearchInput": {
|
|
313
|
-
"import": "./esm/SearchInput.js",
|
|
314
|
-
"require": "./SearchInput.js"
|
|
315
|
-
},
|
|
316
|
-
"./SearchResults": {
|
|
317
|
-
"import": "./esm/SearchResults.js",
|
|
318
|
-
"require": "./SearchResults.js"
|
|
319
|
-
},
|
|
320
|
-
"./SeenEffect": {
|
|
321
|
-
"import": "./esm/SeenEffect.js",
|
|
322
|
-
"require": "./SeenEffect.js"
|
|
323
|
-
},
|
|
324
|
-
"./Selectbox": {
|
|
325
|
-
"import": "./esm/Selectbox.js",
|
|
326
|
-
"require": "./Selectbox.js"
|
|
327
|
-
},
|
|
328
|
-
"./ShareButtons": {
|
|
329
|
-
"import": "./esm/ShareButtons.js",
|
|
330
|
-
"require": "./ShareButtons.js"
|
|
331
|
-
},
|
|
332
|
-
"./Sharpie": {
|
|
333
|
-
"import": "./esm/Sharpie.js",
|
|
334
|
-
"require": "./Sharpie.js"
|
|
335
|
-
},
|
|
336
|
-
"./SiteSearchAutocomplete": {
|
|
337
|
-
"import": "./esm/SiteSearchAutocomplete.js",
|
|
338
|
-
"require": "./SiteSearchAutocomplete.js"
|
|
339
|
-
},
|
|
340
|
-
"./SiteSearchCurtain": {
|
|
341
|
-
"import": "./esm/SiteSearchCurtain.js",
|
|
342
|
-
"require": "./SiteSearchCurtain.js"
|
|
343
|
-
},
|
|
344
|
-
"./SiteSearchInput": {
|
|
345
|
-
"import": "./esm/SiteSearchInput.js",
|
|
346
|
-
"require": "./SiteSearchInput.js"
|
|
347
|
-
},
|
|
348
|
-
"./Skeleton": {
|
|
349
|
-
"import": "./esm/Skeleton.js",
|
|
350
|
-
"require": "./Skeleton.js"
|
|
351
|
-
},
|
|
352
|
-
"./SubHeading": {
|
|
353
|
-
"import": "./esm/SubHeading.js",
|
|
354
|
-
"require": "./SubHeading.js"
|
|
355
|
-
},
|
|
356
|
-
"./Tabs": {
|
|
357
|
-
"import": "./esm/Tabs.js",
|
|
358
|
-
"require": "./Tabs.js"
|
|
359
|
-
},
|
|
360
|
-
"./TagPill": {
|
|
361
|
-
"import": "./esm/TagPill.js",
|
|
362
|
-
"require": "./TagPill.js"
|
|
363
|
-
},
|
|
364
|
-
"./TextBlock": {
|
|
365
|
-
"import": "./esm/TextBlock.js",
|
|
366
|
-
"require": "./TextBlock.js"
|
|
367
|
-
},
|
|
368
|
-
"./TextButton": {
|
|
369
|
-
"import": "./esm/TextButton.js",
|
|
370
|
-
"require": "./TextButton.js"
|
|
371
|
-
},
|
|
372
|
-
"./TextInput": {
|
|
373
|
-
"import": "./esm/TextInput.js",
|
|
374
|
-
"require": "./TextInput.js"
|
|
375
|
-
},
|
|
376
|
-
"./utils": {
|
|
377
|
-
"import": "./esm/utils.js",
|
|
378
|
-
"require": "./utils.js"
|
|
379
|
-
},
|
|
380
|
-
"./VerticalTabsTOC": {
|
|
381
|
-
"import": "./esm/VerticalTabsTOC.js",
|
|
382
|
-
"require": "./VerticalTabsTOC.js"
|
|
383
|
-
},
|
|
384
|
-
"./VSpacer": {
|
|
385
|
-
"import": "./esm/VSpacer.js",
|
|
386
|
-
"require": "./VSpacer.js"
|
|
387
|
-
},
|
|
388
|
-
"./WizardLayout": {
|
|
389
|
-
"import": "./esm/WizardLayout.js",
|
|
390
|
-
"require": "./WizardLayout.js"
|
|
391
|
-
},
|
|
392
|
-
"./WizardLayoutClose": {
|
|
393
|
-
"import": "./esm/WizardLayoutClose.js",
|
|
394
|
-
"require": "./WizardLayoutClose.js"
|
|
395
|
-
},
|
|
396
|
-
"./WizardStepper": {
|
|
397
|
-
"import": "./esm/WizardStepper.js",
|
|
398
|
-
"require": "./WizardStepper.js"
|
|
399
|
-
}
|
|
400
|
-
}
|
|
39
|
+
"sideEffects": [
|
|
40
|
+
"**/focus-visible.js"
|
|
41
|
+
]
|
|
401
42
|
}
|
package/utils/env.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.isPreact = void 0;
|
|
7
|
-
const
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
8
6
|
exports.isPreact =
|
|
9
7
|
// imported from 'preact'
|
|
10
8
|
'h' in react_1.default ||
|
package/utils/seenEffect.d.ts
CHANGED
|
@@ -13,12 +13,12 @@ declare const effects: {
|
|
|
13
13
|
export declare type SeenEffectType = keyof typeof effects;
|
|
14
14
|
export declare type EffectProp = {
|
|
15
15
|
/** Should the component appear instantly, and not transition-in once seen */
|
|
16
|
-
effectType?: SeenEffectType;
|
|
16
|
+
effectType?: SeenEffectType | 'none';
|
|
17
17
|
};
|
|
18
18
|
/** Asserts that a prop value is a SeenEffectType and returns undefined otherwise */
|
|
19
19
|
export declare const assertEffectType: (maybeType?: string | undefined) => SeenEffectType | undefined;
|
|
20
20
|
export declare const getEffectAttr: (maybeType?: string | undefined) => {
|
|
21
|
-
'data-seen-effect': string;
|
|
21
|
+
'data-seen-effect': string | undefined;
|
|
22
22
|
};
|
|
23
23
|
export declare type SeenProp = {
|
|
24
24
|
/** Should the component appear instantly, and not transition-in once seen */
|
package/utils/seenEffect.js
CHANGED
|
@@ -55,7 +55,7 @@ const effects = {
|
|
|
55
55
|
const assertEffectType = (maybeType) => maybeType && maybeType in effects ? maybeType : undefined;
|
|
56
56
|
exports.assertEffectType = assertEffectType;
|
|
57
57
|
const getEffectAttr = (maybeType) => ({
|
|
58
|
-
'data-seen-effect': (0, exports.assertEffectType)(maybeType) || '',
|
|
58
|
+
'data-seen-effect': maybeType === 'none' ? undefined : (0, exports.assertEffectType)(maybeType) || '',
|
|
59
59
|
});
|
|
60
60
|
exports.getEffectAttr = getEffectAttr;
|
|
61
61
|
const useSeenEffect = (
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.useScrollbarWidthCSSVar = void 0;
|
|
7
|
-
const
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const getScrollbarWidth_1 = tslib_1.__importDefault(require("@hugsmidjan/qj/getScrollbarWidth"));
|
|
8
6
|
const hooks_1 = require("@hugsmidjan/react/hooks");
|
|
9
7
|
const useScrollbarWidthCSSVar = () => (0, hooks_1.useOnMount)(() => getScrollbarWidth_1.default.setCSSvar());
|
|
10
8
|
exports.useScrollbarWidthCSSVar = useScrollbarWidthCSSVar;
|
package/utils.js
CHANGED
|
@@ -1,18 +1,5 @@
|
|
|
1
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./utils/
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./utils/useFormatMonitor"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./utils/useGetSVGtext"), exports);
|
package/_abstract/CardList.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { ImageProps } from './Image';
|
|
3
|
-
declare type BaseCardProps = {
|
|
4
|
-
title: string;
|
|
5
|
-
href: string;
|
|
6
|
-
imgPlaceholder?: boolean;
|
|
7
|
-
};
|
|
8
|
-
export declare type ImageCardProps = BaseCardProps & {
|
|
9
|
-
meta?: string;
|
|
10
|
-
image?: ImageProps;
|
|
11
|
-
};
|
|
12
|
-
export declare type TextCardProps = BaseCardProps & {
|
|
13
|
-
summary?: string;
|
|
14
|
-
};
|
|
15
|
-
export declare type CardListProps<T> = {
|
|
16
|
-
cards: Array<T>;
|
|
17
|
-
title?: string | undefined;
|
|
18
|
-
summaryElement?: ReactElement;
|
|
19
|
-
titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'p';
|
|
20
|
-
imgPlaceholder?: boolean | string;
|
|
21
|
-
};
|
|
22
|
-
export declare type ImageCardListProps = CardListProps<ImageCardProps>;
|
|
23
|
-
export declare type TextCardListProps = CardListProps<TextCardProps>;
|
|
24
|
-
declare type _CardListProps = CardListProps<BaseCardProps> & {
|
|
25
|
-
bemPrefix: string;
|
|
26
|
-
children?: ReactNode;
|
|
27
|
-
};
|
|
28
|
-
export declare const CardList: (props: _CardListProps) => JSX.Element;
|
|
29
|
-
export {};
|
package/_abstract/Image.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export declare type Source = {
|
|
2
|
-
srcset: string;
|
|
3
|
-
media: string;
|
|
4
|
-
};
|
|
5
|
-
export declare type ImageProps = {
|
|
6
|
-
altText?: string;
|
|
7
|
-
} & ({
|
|
8
|
-
sources?: Array<Source>;
|
|
9
|
-
/** The default image source to (lazy) load */
|
|
10
|
-
src?: string;
|
|
11
|
-
/** Eagerly-loaded placeholder/thunbnail to use until a `sources` item has been picked. */
|
|
12
|
-
preloadSrc?: string;
|
|
13
|
-
inline?: false;
|
|
14
|
-
} | {
|
|
15
|
-
/** Should the image be fetched and inlined as <svg/> */
|
|
16
|
-
inline: true;
|
|
17
|
-
src: string;
|
|
18
|
-
sources?: undefined;
|
|
19
|
-
preloadSrc?: undefined;
|
|
20
|
-
});
|
|
21
|
-
declare type _ImageProps = {
|
|
22
|
-
/** container className */
|
|
23
|
-
className?: string;
|
|
24
|
-
/** Controls if the container is rendered when image is missing/undefined.
|
|
25
|
-
* (With a `--missing` className modifier added.)
|
|
26
|
-
*
|
|
27
|
-
* Accepts a function that defines a default content for the container.
|
|
28
|
-
*/
|
|
29
|
-
placeholder?: boolean | (() => JSX.Element);
|
|
30
|
-
};
|
|
31
|
-
declare const Image: (props: ImageProps & _ImageProps) => JSX.Element | null;
|
|
32
|
-
export default Image;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { FormFieldInputProps } from '../FormField';
|
|
2
|
-
import { TogglerInputProps } from './TogglerInput';
|
|
3
|
-
export declare type TogglerGroupOption = {
|
|
4
|
-
value: string;
|
|
5
|
-
label?: string | JSX.Element;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
id?: string;
|
|
8
|
-
};
|
|
9
|
-
export declare type TogglerGroupOptions = Array<TogglerGroupOption>;
|
|
10
|
-
declare type RestrictedInputProps = Omit<JSX.IntrinsicElements['input'], 'type' | 'value' | 'checked' | 'defaultChecked' | 'className' | 'id' | 'name' | 'children'>;
|
|
11
|
-
export declare type TogglerGroupProps = {
|
|
12
|
-
options: TogglerGroupOptions;
|
|
13
|
-
className?: string;
|
|
14
|
-
name: string;
|
|
15
|
-
children?: undefined;
|
|
16
|
-
disabled?: boolean | ReadonlyArray<number>;
|
|
17
|
-
inputProps?: RestrictedInputProps;
|
|
18
|
-
onSelected?: (payload: {
|
|
19
|
-
value: string;
|
|
20
|
-
checked: boolean;
|
|
21
|
-
option: TogglerGroupOption;
|
|
22
|
-
selectedValues: Array<string>;
|
|
23
|
-
}) => void;
|
|
24
|
-
} & Omit<FormFieldInputProps, 'disabled'>;
|
|
25
|
-
declare type _TogglerGroupProps = {
|
|
26
|
-
bem: string;
|
|
27
|
-
Toggler: (props: TogglerInputProps) => JSX.Element;
|
|
28
|
-
value?: ReadonlyArray<string>;
|
|
29
|
-
};
|
|
30
|
-
declare const TogglerGroup: (props: TogglerGroupProps & _TogglerGroupProps) => JSX.Element;
|
|
31
|
-
export default TogglerGroup;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { BemPropsModifier } from '@hugsmidjan/react/types';
|
|
3
|
-
import { FormFieldGroupWrappingProps } from '../FormField';
|
|
4
|
-
import { TogglerGroupOption, TogglerGroupOptions, TogglerGroupProps } from './TogglerGroup';
|
|
5
|
-
import { TogglerInputProps } from './TogglerInput';
|
|
6
|
-
export declare type TogglerGroupFieldProps = {
|
|
7
|
-
className?: string;
|
|
8
|
-
} & FormFieldGroupWrappingProps & TogglerGroupProps;
|
|
9
|
-
declare type _TogglerGroupFieldProps = {
|
|
10
|
-
Toggler: (props: TogglerInputProps) => ReactElement;
|
|
11
|
-
value?: string | ReadonlyArray<string>;
|
|
12
|
-
bem: string;
|
|
13
|
-
} & BemPropsModifier;
|
|
14
|
-
export declare type TogglerGroupFieldOption = TogglerGroupOption;
|
|
15
|
-
export declare type TogglerGroupFieldOptions = TogglerGroupOptions;
|
|
16
|
-
declare const TogglerGroupField: (props: TogglerGroupFieldProps & _TogglerGroupFieldProps) => JSX.Element;
|
|
17
|
-
export default TogglerGroupField;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
const react_1 = __importDefault(require("react"));
|
|
18
|
-
const getBemClass_1 = __importDefault(require("@hugsmidjan/react/utils/getBemClass"));
|
|
19
|
-
const FormField_1 = __importDefault(require("../FormField"));
|
|
20
|
-
const TogglerGroup_1 = __importDefault(require("./TogglerGroup"));
|
|
21
|
-
const TogglerGroupField = (props) => {
|
|
22
|
-
const { bem, Toggler, className, modifier, label, LabelTag, assistText, hideLabel, disabled, readOnly, invalid, errorMessage, required, reqText, id, value } = props, togglerGroupProps = __rest(props, ["bem", "Toggler", "className", "modifier", "label", "LabelTag", "assistText", "hideLabel", "disabled", "readOnly", "invalid", "errorMessage", "required", "reqText", "id", "value"]);
|
|
23
|
-
return (react_1.default.createElement(FormField_1.default, { className: (0, getBemClass_1.default)(bem, modifier, className), group: true, label: label, LabelTag: LabelTag, assistText: assistText, hideLabel: hideLabel, disabled: disabled, readOnly: readOnly, invalid: invalid, errorMessage: errorMessage, required: required, reqText: reqText, id: id, renderInput: (className, inputProps) => {
|
|
24
|
-
return (react_1.default.createElement(TogglerGroup_1.default, Object.assign({ bem: className.options }, inputProps, togglerGroupProps, { value: Array.isArray(value) ? value : value != null ? [value] : undefined, Toggler: Toggler })));
|
|
25
|
-
} }));
|
|
26
|
-
};
|
|
27
|
-
exports.default = TogglerGroupField;
|
package/esm/AccordionList.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { SSRSupport } from '@hugsmidjan/react/hooks';
|
|
2
|
-
import { SeenProp } from './utils/seenEffect';
|
|
3
|
-
declare type AccordionListItemProps = {
|
|
4
|
-
title: string | JSX.Element;
|
|
5
|
-
content: string | JSX.Element | undefined;
|
|
6
|
-
id?: string;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare type AccordionListProps = {
|
|
10
|
-
items: Array<AccordionListItemProps>;
|
|
11
|
-
ssr?: SSRSupport;
|
|
12
|
-
wide?: boolean;
|
|
13
|
-
/** Index of those items that should start open */
|
|
14
|
-
defaultOpen?: Array<number>;
|
|
15
|
-
} & SeenProp;
|
|
16
|
-
declare const AccordionList: (props: AccordionListProps) => JSX.Element;
|
|
17
|
-
export default AccordionList;
|
package/esm/AccordionList.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import { useDomid, useIsBrowserSide } from '@hugsmidjan/react/hooks';
|
|
3
|
-
import getBemClass from '@hugsmidjan/react/utils/getBemClass';
|
|
4
|
-
import { useSeenEffect } from './utils/seenEffect';
|
|
5
|
-
const AccordionListItem = (props) => {
|
|
6
|
-
const { title, content, id, disabled = false, defaultOpen, ssr } = props;
|
|
7
|
-
const [open, setOpen] = useState(defaultOpen);
|
|
8
|
-
useEffect(() => setOpen(defaultOpen), [defaultOpen]);
|
|
9
|
-
const domid = useDomid();
|
|
10
|
-
const isBrowser = useIsBrowserSide(ssr);
|
|
11
|
-
const itemDisabled = (isBrowser && disabled) || !content;
|
|
12
|
-
return (React.createElement("div", { className: getBemClass('AccordionList__item', [itemDisabled && 'disabled']), id: id, "data-start-open": defaultOpen || undefined, "data-sprinkled": isBrowser },
|
|
13
|
-
React.createElement("h3", { className: "AccordionList__title" }, isBrowser ? (React.createElement("button", { type: "button", className: "AccordionList__button", "aria-controls": domid, "aria-expanded": open || undefined, onClick: () => {
|
|
14
|
-
setOpen(!open);
|
|
15
|
-
}, disabled: itemDisabled }, title)) : (title)),
|
|
16
|
-
React.createElement("div", { id: isBrowser && domid, className: "AccordionList__content", hidden: isBrowser && (!open || itemDisabled) }, content)));
|
|
17
|
-
};
|
|
18
|
-
// ---------------------------------------------------------------------------
|
|
19
|
-
const AccordionList = (props) => {
|
|
20
|
-
const { items, ssr, wide, defaultOpen, startSeen } = props;
|
|
21
|
-
const [ref] = useSeenEffect(startSeen);
|
|
22
|
-
return (React.createElement("div", { className: getBemClass('AccordionList', [wide && 'wide']), ref: ref }, items.map((item, i) => (React.createElement(AccordionListItem, Object.assign({ key: i }, item, { ssr: ssr, defaultOpen: defaultOpen && defaultOpen.includes(i) }))))));
|
|
23
|
-
};
|
|
24
|
-
export default AccordionList;
|
package/esm/ActionCards.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { TextCardListProps } from './_abstract/CardList';
|
|
2
|
-
import { SeenProp } from './utils/seenEffect';
|
|
3
|
-
export declare type ActionCardsProps = TextCardListProps & SeenProp;
|
|
4
|
-
declare const ActionCards: (props: ActionCardsProps) => JSX.Element;
|
|
5
|
-
export default ActionCards;
|
package/esm/ActionCards.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CardList } from './_abstract/CardList';
|
|
3
|
-
import { useSeenEffect } from './utils/seenEffect';
|
|
4
|
-
const ActionCards = (props) => {
|
|
5
|
-
const [ref] = useSeenEffect(props.startSeen);
|
|
6
|
-
return (React.createElement("div", { className: "ActionCards", ref: ref },
|
|
7
|
-
React.createElement(CardList, Object.assign({}, props, { bemPrefix: "ActionCards" }))));
|
|
8
|
-
};
|
|
9
|
-
export default ActionCards;
|