@digigov/react-experimental 2.0.0-7d9a8d86 → 2.0.0-85c27c19
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/FloatingButton/index.js +14 -10
- package/FloatingButton/index.js.map +2 -2
- package/Kitchensink/AllComponents/index.js +3 -5
- package/Kitchensink/AllComponents.js.map +1 -1
- package/Kitchensink/KitchensinkByCategory/index.js +30 -24
- package/Kitchensink/KitchensinkByCategory.js.map +1 -1
- package/Kitchensink/KitchensinkByLetter/index.js +14 -11
- package/Kitchensink/KitchensinkByLetter.js.map +1 -1
- package/Kitchensink/KitchensinkComponent/index.js +9 -23
- package/Kitchensink/KitchensinkComponent.js.map +1 -1
- package/Kitchensink/KitchensinkDashboard/index.js +33 -30
- package/Kitchensink/KitchensinkDashboard.js.map +1 -1
- package/Kitchensink/index.js.map +1 -1
- package/OptionButtonBase/index.js +15 -11
- package/OptionButtonBase/index.js.map +2 -2
- package/OptionButtonSteps/index.js +26 -16
- package/OptionButtonSteps/index.js.map +2 -2
- package/cjs/FloatingButton/index.js +38 -28
- package/cjs/FloatingButton/index.js.map +2 -2
- package/cjs/Kitchensink/AllComponents/index.js +25 -21
- package/cjs/Kitchensink/AllComponents.js.map +2 -2
- package/cjs/Kitchensink/KitchensinkByCategory/index.js +54 -42
- package/cjs/Kitchensink/KitchensinkByCategory.js.map +2 -2
- package/cjs/Kitchensink/KitchensinkByLetter/index.js +37 -28
- package/cjs/Kitchensink/KitchensinkByLetter.js.map +2 -2
- package/cjs/Kitchensink/KitchensinkComponent/index.js +35 -43
- package/cjs/Kitchensink/KitchensinkComponent.js.map +2 -2
- package/cjs/Kitchensink/KitchensinkDashboard/index.js +56 -47
- package/cjs/Kitchensink/KitchensinkDashboard.js.map +2 -2
- package/cjs/Kitchensink/index.js +25 -20
- package/cjs/Kitchensink/index.js.map +1 -1
- package/cjs/OptionButtonBase/index.js +39 -29
- package/cjs/OptionButtonBase/index.js.map +2 -2
- package/cjs/OptionButtonSteps/index.js +50 -34
- package/cjs/OptionButtonSteps/index.js.map +2 -2
- package/cjs/index.js +23 -19
- package/cjs/index.js.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/libs/ui/src/api/APIErrors.d.ts +1 -0
- package/libs/ui/src/api/APIProvider.d.ts +1 -0
- package/libs/ui/src/api/fetchAPI.d.ts +1 -5
- package/libs/ui/src/api/index.d.ts +1 -2
- package/libs/ui/src/api/utils.d.ts +5 -1
- package/libs/ui/src/app/BannerContainer/BannerContainer.stories.d.ts +1 -1
- package/libs/ui/src/app/BannerContainer/__stories__/CookiesBanner.d.ts +2 -2
- package/libs/ui/src/app/Footer/Footer.stories.d.ts +8 -8
- package/libs/ui/src/app/Footer/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/app/Footer/__stories__/DefaultCopyright.d.ts +2 -2
- package/libs/ui/src/app/Footer/__stories__/FooterAllInclusive.d.ts +2 -2
- package/libs/ui/src/app/Footer/__stories__/FooterWithLink.d.ts +2 -2
- package/libs/ui/src/app/Footer/__stories__/FooterWithLogo.d.ts +2 -2
- package/libs/ui/src/app/Footer/__stories__/FooterWithSecondaryNavigation.d.ts +2 -2
- package/libs/ui/src/app/Footer/__stories__/FooterWithText.d.ts +2 -2
- package/libs/ui/src/app/Footer/__stories__/YearCopyright.d.ts +2 -2
- package/libs/ui/src/app/Header/Header.stories.d.ts +5 -5
- package/libs/ui/src/app/Header/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/app/Header/__stories__/WithHeaderNavigation.d.ts +2 -2
- package/libs/ui/src/app/Header/__stories__/WithNavigation.d.ts +2 -2
- package/libs/ui/src/app/Header/__stories__/WithServiceName.d.ts +2 -2
- package/libs/ui/src/app/Header/__stories__/WithServiceNameAndLogo.d.ts +2 -2
- package/libs/ui/src/app/Loader/Loader.stories.d.ts +1 -1
- package/libs/ui/src/app/Loader/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/app/Masthead/Masthead.stories.d.ts +3 -3
- package/libs/ui/src/app/Masthead/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/app/Masthead/__stories__/WithElements.d.ts +2 -2
- package/libs/ui/src/app/Masthead/__stories__/WithLogo.d.ts +2 -2
- package/libs/ui/src/app/Modal/Modal.d.ts +8 -0
- package/libs/ui/src/app/Modal/Modal.stories.d.ts +6 -5
- package/libs/ui/src/app/Modal/__stories__/AlertDialog.d.ts +2 -2
- package/libs/ui/src/app/Modal/__stories__/Auto.d.ts +2 -2
- package/libs/ui/src/app/Modal/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/app/Modal/__stories__/Dense.d.ts +2 -2
- package/libs/ui/src/app/Modal/__stories__/WithHooks.d.ts +2 -2
- package/libs/ui/src/app/Modal/__stories__/WithoutModalGaps.d.ts +3 -0
- package/libs/ui/src/app/Modal/auto.d.ts +4 -4
- package/libs/ui/src/app/Modal/index.d.ts +2 -7
- package/libs/ui/src/app/NotFound/NotFound.stories.d.ts +1 -1
- package/libs/ui/src/app/NotFound/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/app/Panel/Panel.stories.d.ts +1 -1
- package/libs/ui/src/app/Panel/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/app/PhaseBannerHeader/PhaseBannerHeader.stories.d.ts +1 -1
- package/libs/ui/src/app/PhaseBannerHeader/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/app/PhaseBannerHeader/index.d.ts +1 -1
- package/libs/ui/src/app/QrCodeScanner/QrCodeScanner.stories.d.ts +1 -1
- package/libs/ui/src/app/QrCodeScanner/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/app/QrCodeScanner/index.d.ts +1 -0
- package/libs/ui/src/app/QrCodeViewer/QRCode.stories.d.ts +2 -2
- package/libs/ui/src/app/QrCodeViewer/__stories__/Custom.d.ts +2 -2
- package/libs/ui/src/app/QrCodeViewer/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/app/Skeleton/Skeleton.stories.d.ts +17 -0
- package/libs/ui/src/app/Skeleton/__stories__/Button.d.ts +3 -0
- package/libs/ui/src/app/Skeleton/__stories__/Circular.d.ts +3 -0
- package/libs/ui/src/app/Skeleton/__stories__/Default.d.ts +3 -0
- package/libs/ui/src/app/Skeleton/__stories__/NoAnimation.d.ts +3 -0
- package/libs/ui/src/app/Skeleton/__stories__/Rectangular.d.ts +3 -0
- package/libs/ui/src/app/Skeleton/__stories__/SpecificWidthAndHeight.d.ts +3 -0
- package/libs/ui/src/app/Skeleton/__stories__/TextSizes.d.ts +3 -0
- package/libs/ui/src/app/Skeleton/__stories__/UnderTypography.d.ts +3 -0
- package/libs/ui/src/app/Skeleton/__stories__/WithChildren.d.ts +3 -0
- package/libs/ui/src/app/Skeleton/index.d.ts +3 -0
- package/libs/ui/src/app/ThemeOptions/index.d.ts +1 -1
- package/libs/ui/src/content/Accordion/Accordion.stories.d.ts +4 -4
- package/libs/ui/src/content/Accordion/__stories__/Auto.d.ts +2 -2
- package/libs/ui/src/content/Accordion/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/content/Accordion/__stories__/WithHints.d.ts +2 -2
- package/libs/ui/src/content/Accordion/__stories__/WithHook.d.ts +2 -2
- package/libs/ui/src/content/Accordion/auto.d.ts +6 -5
- package/libs/ui/src/content/Accordion/hooks.d.ts +1 -1
- package/libs/ui/src/content/Blockquote/Blockquote.stories.d.ts +2 -2
- package/libs/ui/src/content/Blockquote/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/content/Blockquote/__stories__/Dense.d.ts +2 -2
- package/libs/ui/src/content/Card/Card.stories.d.ts +11 -11
- package/libs/ui/src/content/Card/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/content/Card/__stories__/Dense.d.ts +2 -2
- package/libs/ui/src/content/Card/__stories__/WithClickableContent.d.ts +2 -2
- package/libs/ui/src/content/Card/__stories__/WithClickableLink.d.ts +2 -2
- package/libs/ui/src/content/Card/__stories__/WithDarkBorder.d.ts +2 -2
- package/libs/ui/src/content/Card/__stories__/WithDarkTopBorder.d.ts +2 -2
- package/libs/ui/src/content/Card/__stories__/WithDivider.d.ts +2 -2
- package/libs/ui/src/content/Card/__stories__/WithGrayBorder.d.ts +2 -2
- package/libs/ui/src/content/Card/__stories__/WithGrayTopBorder.d.ts +2 -2
- package/libs/ui/src/content/Card/__stories__/WithGroupButton.d.ts +2 -2
- package/libs/ui/src/content/Card/__stories__/WithLink.d.ts +2 -2
- package/libs/ui/src/content/Chip/Chip.stories.d.ts +5 -5
- package/libs/ui/src/content/Chip/__stories__/ClickableChip.d.ts +2 -2
- package/libs/ui/src/content/Chip/__stories__/ClickableDeletableChip.d.ts +2 -2
- package/libs/ui/src/content/Chip/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/content/Chip/__stories__/DeletableChip.d.ts +2 -2
- package/libs/ui/src/content/Chip/__stories__/GroupOfChips.d.ts +2 -2
- package/libs/ui/src/content/Details/Details.stories.d.ts +1 -1
- package/libs/ui/src/content/Details/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/content/List/List.stories.d.ts +6 -6
- package/libs/ui/src/content/List/__stories__/BulletList.d.ts +2 -2
- package/libs/ui/src/content/List/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/content/List/__stories__/HorizontalList.d.ts +2 -2
- package/libs/ui/src/content/List/__stories__/NestedBulletList.d.ts +2 -2
- package/libs/ui/src/content/List/__stories__/NumberedList.d.ts +2 -2
- package/libs/ui/src/content/List/__stories__/WithExtraSpace.d.ts +2 -2
- package/libs/ui/src/content/Markdown/index.d.ts +5 -2
- package/libs/ui/src/content/SafeHTML/index.d.ts +1 -1
- package/libs/ui/src/content/StepNav/StepNav.stories.d.ts +5 -5
- package/libs/ui/src/content/StepNav/__stories__/Auto.d.ts +2 -2
- package/libs/ui/src/content/StepNav/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/content/StepNav/__stories__/Dense.d.ts +2 -2
- package/libs/ui/src/content/StepNav/__stories__/WithHints.d.ts +2 -2
- package/libs/ui/src/content/StepNav/__stories__/WithHook.d.ts +2 -2
- package/libs/ui/src/content/StepNav/auto.d.ts +5 -5
- package/libs/ui/src/content/SummaryList/SummaryList.stories.d.ts +7 -6
- package/libs/ui/src/content/SummaryList/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/content/SummaryList/__stories__/RowVariations.d.ts +2 -2
- package/libs/ui/src/content/SummaryList/__stories__/WithActions.d.ts +2 -2
- package/libs/ui/src/content/SummaryList/__stories__/WithKeyAndAction.d.ts +2 -2
- package/libs/ui/src/content/SummaryList/__stories__/WithNoLastBorder.d.ts +3 -0
- package/libs/ui/src/content/SummaryList/__stories__/WithoutActions.d.ts +2 -2
- package/libs/ui/src/content/SummaryList/__stories__/WithoutBorders.d.ts +2 -2
- package/libs/ui/src/content/Table/Table.stories.d.ts +18 -18
- package/libs/ui/src/content/Table/TableFloatingScroll.d.ts +2 -2
- package/libs/ui/src/content/Table/__stories__/DarkVariant.d.ts +2 -2
- package/libs/ui/src/content/Table/__stories__/DarkVariantWithVerticalHeaders.d.ts +2 -2
- package/libs/ui/src/content/Table/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/content/Table/__stories__/DefinedWidth.d.ts +2 -2
- package/libs/ui/src/content/Table/__stories__/Densed.d.ts +2 -2
- package/libs/ui/src/content/Table/__stories__/Full.d.ts +2 -2
- package/libs/ui/src/content/Table/__stories__/MultipleProps.d.ts +2 -2
- package/libs/ui/src/content/Table/__stories__/NoData.d.ts +2 -2
- package/libs/ui/src/content/Table/__stories__/NumericDataType.d.ts +2 -2
- package/libs/ui/src/content/Table/__stories__/RowColors.d.ts +2 -2
- package/libs/ui/src/content/Table/__stories__/Stacked.d.ts +2 -2
- package/libs/ui/src/content/Table/__stories__/TableCaptions.d.ts +2 -2
- package/libs/ui/src/content/Table/__stories__/VerticalBorders.d.ts +2 -2
- package/libs/ui/src/content/Table/__stories__/VerticalHeaders.d.ts +2 -2
- package/libs/ui/src/content/Table/__stories__/WithFloatingScroll.d.ts +2 -2
- package/libs/ui/src/content/Table/__stories__/WithLoader.d.ts +2 -2
- package/libs/ui/src/content/Table/__stories__/WithSortFilters.d.ts +2 -2
- package/libs/ui/src/content/Table/__stories__/ZebraProp.d.ts +2 -2
- package/libs/ui/src/content/Table/hooks/useSort.d.ts +1 -1
- package/libs/ui/src/content/Table/index.d.ts +2 -2
- package/libs/ui/src/content/TaskList/TaskList.stories.d.ts +2 -2
- package/libs/ui/src/content/TaskList/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/content/TaskList/__stories__/Dense.d.ts +2 -2
- package/libs/ui/src/content/Timeline/Timeline.stories.d.ts +2 -2
- package/libs/ui/src/content/Timeline/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/content/Timeline/__stories__/Dense.d.ts +2 -2
- package/libs/ui/src/feedback/CopyToClipboard/CopyToClipboard.stories.d.ts +3 -3
- package/libs/ui/src/feedback/CopyToClipboard/__stories__/Banner.d.ts +2 -2
- package/libs/ui/src/feedback/CopyToClipboard/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/feedback/CopyToClipboard/__stories__/Dense.d.ts +2 -2
- package/libs/ui/src/feedback/CopyToClipboard/index.d.ts +1 -1
- package/libs/ui/src/feedback/ErrorSummary/ErrorSummary.stories.d.ts +6 -6
- package/libs/ui/src/feedback/ErrorSummary/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/feedback/ErrorSummary/__stories__/Dense.d.ts +2 -2
- package/libs/ui/src/feedback/ErrorSummary/__stories__/LinkedToCheckbox.d.ts +2 -2
- package/libs/ui/src/feedback/ErrorSummary/__stories__/LinkedToField.d.ts +2 -2
- package/libs/ui/src/feedback/ErrorSummary/__stories__/LinkedToInput.d.ts +2 -2
- package/libs/ui/src/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.d.ts +2 -2
- package/libs/ui/src/feedback/NotificationBanner/NotificationBanner.stories.d.ts +3 -3
- package/libs/ui/src/feedback/NotificationBanner/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/feedback/NotificationBanner/__stories__/Dense.d.ts +2 -2
- package/libs/ui/src/feedback/NotificationBanner/__stories__/Success.d.ts +2 -2
- package/libs/ui/src/feedback/PhaseBanner/PhaseBanner.stories.d.ts +2 -2
- package/libs/ui/src/feedback/PhaseBanner/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/feedback/PhaseBanner/__stories__/Underlined.d.ts +2 -2
- package/libs/ui/src/feedback/WarningText/WarningText.stories.d.ts +3 -3
- package/libs/ui/src/feedback/WarningText/__stories__/AssistiveText.d.ts +2 -2
- package/libs/ui/src/feedback/WarningText/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/feedback/WarningText/__stories__/Dense.d.ts +2 -2
- package/libs/ui/src/form/AutoComplete/AutoComplete.stories.d.ts +10 -10
- package/libs/ui/src/form/AutoComplete/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/form/AutoComplete/__stories__/Multiple.d.ts +2 -2
- package/libs/ui/src/form/AutoComplete/__stories__/MultipleShowingTwoSelected.d.ts +2 -2
- package/libs/ui/src/form/AutoComplete/__stories__/MultipleWithDefaultValues.d.ts +2 -2
- package/libs/ui/src/form/AutoComplete/__stories__/MultipleWithMinLength.d.ts +2 -2
- package/libs/ui/src/form/AutoComplete/__stories__/WithAutoSelect.d.ts +2 -2
- package/libs/ui/src/form/AutoComplete/__stories__/WithDefaultValue.d.ts +2 -2
- package/libs/ui/src/form/AutoComplete/__stories__/WithMinLength.d.ts +2 -2
- package/libs/ui/src/form/AutoComplete/__stories__/WithPlaceHolder.d.ts +2 -2
- package/libs/ui/src/form/AutoComplete/__stories__/WithShowAllValues.d.ts +2 -2
- package/libs/ui/src/form/AutoComplete/index.d.ts +2 -3
- package/libs/ui/src/form/Button/Button.stories.d.ts +12 -12
- package/libs/ui/src/form/Button/ThemeToggleButton.d.ts +2 -2
- package/libs/ui/src/form/Button/__stories__/Back.d.ts +2 -2
- package/libs/ui/src/form/Button/__stories__/ButtonLinkButton.d.ts +2 -2
- package/libs/ui/src/form/Button/__stories__/CallToActionButton.d.ts +2 -2
- package/libs/ui/src/form/Button/__stories__/Dense.d.ts +2 -2
- package/libs/ui/src/form/Button/__stories__/Disabled.d.ts +2 -2
- package/libs/ui/src/form/Button/__stories__/GroupingButtons.d.ts +2 -2
- package/libs/ui/src/form/Button/__stories__/GroupingButtonsAndLinks.d.ts +2 -2
- package/libs/ui/src/form/Button/__stories__/Primary.d.ts +2 -2
- package/libs/ui/src/form/Button/__stories__/Secondary.d.ts +2 -2
- package/libs/ui/src/form/Button/__stories__/ThemeToggle.d.ts +2 -2
- package/libs/ui/src/form/Button/__stories__/Warning.d.ts +2 -2
- package/libs/ui/src/form/Button/__stories__/WithVariantLink.d.ts +2 -2
- package/libs/ui/src/form/Checkbox/Checkbox.stories.d.ts +10 -10
- package/libs/ui/src/form/Checkbox/__stories__/ConditionalReveal.d.ts +2 -2
- package/libs/ui/src/form/Checkbox/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/form/Checkbox/__stories__/Dense.d.ts +2 -2
- package/libs/ui/src/form/Checkbox/__stories__/Inline.d.ts +2 -2
- package/libs/ui/src/form/Checkbox/__stories__/InlineWithDivider.d.ts +2 -2
- package/libs/ui/src/form/Checkbox/__stories__/MultipleQuestions.d.ts +2 -2
- package/libs/ui/src/form/Checkbox/__stories__/NoneAnswer.d.ts +2 -2
- package/libs/ui/src/form/Checkbox/__stories__/NoneAnswerWithError.d.ts +2 -2
- package/libs/ui/src/form/Checkbox/__stories__/WithErrorMessage.d.ts +2 -2
- package/libs/ui/src/form/Checkbox/__stories__/WithHint.d.ts +2 -2
- package/libs/ui/src/form/DateInputContainer/DateInputContainer.stories.d.ts +5 -5
- package/libs/ui/src/form/DateInputContainer/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/form/DateInputContainer/__stories__/Dense.d.ts +2 -2
- package/libs/ui/src/form/DateInputContainer/__stories__/MultipleQuestions.d.ts +2 -2
- package/libs/ui/src/form/DateInputContainer/__stories__/WithErrorMessage.d.ts +2 -2
- package/libs/ui/src/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.d.ts +2 -2
- package/libs/ui/src/form/ErrorMessage/ErrorMessage.stories.d.ts +3 -3
- package/libs/ui/src/form/ErrorMessage/__stories__/DateInputError.d.ts +2 -2
- package/libs/ui/src/form/ErrorMessage/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/form/ErrorMessage/__stories__/ErrorMessageOnly.d.ts +2 -2
- package/libs/ui/src/form/FileUpload/FileUpload.stories.d.ts +2 -2
- package/libs/ui/src/form/FileUpload/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/form/FileUpload/__stories__/WithErrorMessage.d.ts +2 -2
- package/libs/ui/src/form/RadioContainer/RadioContainer.stories.d.ts +10 -10
- package/libs/ui/src/form/RadioContainer/__stories__/ConditionalReveal.d.ts +2 -2
- package/libs/ui/src/form/RadioContainer/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/form/RadioContainer/__stories__/Dense.d.ts +2 -2
- package/libs/ui/src/form/RadioContainer/__stories__/Inline.d.ts +2 -2
- package/libs/ui/src/form/RadioContainer/__stories__/InlineWithDivider.d.ts +2 -2
- package/libs/ui/src/form/RadioContainer/__stories__/MultipleQuestions.d.ts +2 -2
- package/libs/ui/src/form/RadioContainer/__stories__/NoneAnswer.d.ts +2 -2
- package/libs/ui/src/form/RadioContainer/__stories__/WithErrorMessage.d.ts +2 -2
- package/libs/ui/src/form/RadioContainer/__stories__/WithHints.d.ts +2 -2
- package/libs/ui/src/form/RadioContainer/__stories__/WithMediumLegend.d.ts +2 -2
- package/libs/ui/src/form/SelectContainer/SelectContainer.stories.d.ts +4 -4
- package/libs/ui/src/form/SelectContainer/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/form/SelectContainer/__stories__/Dense.d.ts +2 -2
- package/libs/ui/src/form/SelectContainer/__stories__/DisabledInput.d.ts +2 -2
- package/libs/ui/src/form/SelectContainer/__stories__/WithHint.d.ts +2 -2
- package/libs/ui/src/form/SingleCharacterInputs/SingleCharacterInput.stories.d.ts +4 -4
- package/libs/ui/src/form/SingleCharacterInputs/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/form/SingleCharacterInputs/__stories__/WithDefaultError.d.ts +2 -2
- package/libs/ui/src/form/SingleCharacterInputs/__stories__/WithErrorMessageInvalidCode.d.ts +2 -2
- package/libs/ui/src/form/SingleCharacterInputs/__stories__/WithErrorMessageLessDigit.d.ts +2 -2
- package/libs/ui/src/form/TextArea/TextArea.stories.d.ts +8 -8
- package/libs/ui/src/form/TextArea/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/form/TextArea/__stories__/Dense.d.ts +2 -2
- package/libs/ui/src/form/TextArea/__stories__/DisabledInput.d.ts +2 -2
- package/libs/ui/src/form/TextArea/__stories__/LimitedCharacters.d.ts +2 -2
- package/libs/ui/src/form/TextArea/__stories__/MultipleQuestions.d.ts +2 -2
- package/libs/ui/src/form/TextArea/__stories__/WithDeclaredRows.d.ts +2 -2
- package/libs/ui/src/form/TextArea/__stories__/WithErrorMessage.d.ts +2 -2
- package/libs/ui/src/form/TextArea/__stories__/WithHint.d.ts +2 -2
- package/libs/ui/src/form/TextInput/TextInput.stories.d.ts +10 -10
- package/libs/ui/src/form/TextInput/__stories__/AskingForNumbers.d.ts +2 -2
- package/libs/ui/src/form/TextInput/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/form/TextInput/__stories__/Dense.d.ts +2 -2
- package/libs/ui/src/form/TextInput/__stories__/DisabledInput.d.ts +2 -2
- package/libs/ui/src/form/TextInput/__stories__/DisabledInputWithValue.d.ts +2 -2
- package/libs/ui/src/form/TextInput/__stories__/FixedWidths.d.ts +2 -2
- package/libs/ui/src/form/TextInput/__stories__/FluidWidths.d.ts +2 -2
- package/libs/ui/src/form/TextInput/__stories__/MultipleQuestions.d.ts +2 -2
- package/libs/ui/src/form/TextInput/__stories__/WithErrorMessage.d.ts +2 -2
- package/libs/ui/src/form/TextInput/__stories__/WithHint.d.ts +2 -2
- package/libs/ui/src/govgr/Footer/Copyright.d.ts +1 -0
- package/libs/ui/src/i18n/I18nText.d.ts +1 -1
- package/libs/ui/src/icons/index.d.ts +1 -1
- package/libs/ui/src/layouts/Basic/Basic.stories.d.ts +4 -3
- package/libs/ui/src/layouts/Basic/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/layouts/Basic/__stories__/MultipleRowsLayout.d.ts +2 -2
- package/libs/ui/src/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.d.ts +2 -2
- package/libs/ui/src/layouts/Basic/__stories__/WithBasicLayout.d.ts +3 -0
- package/libs/ui/src/layouts/Grid/Grid.stories.d.ts +3 -3
- package/libs/ui/src/layouts/Grid/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/layouts/Grid/__stories__/Inline.d.ts +2 -2
- package/libs/ui/src/layouts/Grid/__stories__/ResponsiveSpacing.d.ts +2 -2
- package/libs/ui/src/layouts/Screen/Screen.stories.d.ts +4 -4
- package/libs/ui/src/layouts/Screen/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/layouts/Screen/__stories__/ScreenDown.d.ts +2 -2
- package/libs/ui/src/layouts/Screen/__stories__/ScreenUp.d.ts +2 -2
- package/libs/ui/src/layouts/Screen/__stories__/SpecificScreenSize.d.ts +2 -2
- package/libs/ui/src/layouts/Screen/index.d.ts +3 -2
- package/libs/ui/src/layouts/Stack/Stack.stories.d.ts +6 -6
- package/libs/ui/src/layouts/Stack/__stories__/AlignItems.d.ts +2 -2
- package/libs/ui/src/layouts/Stack/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/layouts/Stack/__stories__/JustifyContent.d.ts +2 -2
- package/libs/ui/src/layouts/Stack/__stories__/NoWrap.d.ts +2 -2
- package/libs/ui/src/layouts/Stack/__stories__/Row.d.ts +2 -2
- package/libs/ui/src/layouts/Stack/__stories__/Spacing.d.ts +2 -2
- package/libs/ui/src/navigation/BackLink/BackLink.stories.d.ts +1 -1
- package/libs/ui/src/navigation/BackLink/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/navigation/BackToTopLink/BackToTopLink.stories.d.ts +2 -2
- package/libs/ui/src/navigation/BackToTopLink/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/navigation/BackToTopLink/__stories__/InMain.d.ts +2 -2
- package/libs/ui/src/navigation/Breadcrumbs/Breadcrumbs.stories.d.ts +2 -1
- package/libs/ui/src/navigation/Breadcrumbs/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/navigation/Breadcrumbs/__stories__/WithoutCurrentPage.d.ts +3 -0
- package/libs/ui/src/navigation/Drawer/Drawer.stories.d.ts +3 -3
- package/libs/ui/src/navigation/Drawer/__stories__/Auto.d.ts +2 -2
- package/libs/ui/src/navigation/Drawer/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/navigation/Drawer/__stories__/WithHook.d.ts +2 -2
- package/libs/ui/src/navigation/Drawer/auto.d.ts +6 -6
- package/libs/ui/src/navigation/Dropdown/Dropdown.stories.d.ts +11 -10
- package/libs/ui/src/navigation/Dropdown/__stories__/AlignRight.d.ts +2 -2
- package/libs/ui/src/navigation/Dropdown/__stories__/ContentPosition.d.ts +2 -2
- package/libs/ui/src/navigation/Dropdown/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/navigation/Dropdown/__stories__/Dense.d.ts +2 -2
- package/libs/ui/src/navigation/Dropdown/__stories__/Disabled.d.ts +2 -2
- package/libs/ui/src/navigation/Dropdown/__stories__/PlacementTop.d.ts +2 -2
- package/libs/ui/src/navigation/Dropdown/__stories__/ScrollableContent.d.ts +3 -0
- package/libs/ui/src/navigation/Dropdown/__stories__/Secondary.d.ts +2 -2
- package/libs/ui/src/navigation/Dropdown/__stories__/VariantLink.d.ts +2 -2
- package/libs/ui/src/navigation/Dropdown/__stories__/Warning.d.ts +2 -2
- package/libs/ui/src/navigation/Dropdown/__stories__/WithIcons.d.ts +2 -2
- package/libs/ui/src/navigation/Dropdown/index.d.ts +1 -1
- package/libs/ui/src/navigation/Link/Link.stories.d.ts +7 -6
- package/libs/ui/src/navigation/Link/__stories__/DarkBackground.d.ts +2 -2
- package/libs/ui/src/navigation/Link/__stories__/DarkBackgroundNoUnderline.d.ts +2 -2
- package/libs/ui/src/navigation/Link/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/navigation/Link/__stories__/ExternalLink.d.ts +2 -2
- package/libs/ui/src/navigation/Link/__stories__/NoUnderline.d.ts +2 -2
- package/libs/ui/src/navigation/Link/__stories__/OpensInNewTab.d.ts +2 -2
- package/libs/ui/src/navigation/Link/__stories__/WithProvider.d.ts +3 -0
- package/libs/ui/src/navigation/Link/index.d.ts +2 -3
- package/libs/ui/src/navigation/NavList/NavList.stories.d.ts +9 -8
- package/libs/ui/src/navigation/NavList/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/navigation/NavList/__stories__/HorizontalWithDrawer.d.ts +2 -2
- package/libs/ui/src/navigation/NavList/__stories__/HorizontalWithoutDrawer.d.ts +2 -2
- package/libs/ui/src/navigation/NavList/__stories__/NavListWithoutNav.d.ts +2 -2
- package/libs/ui/src/navigation/NavList/__stories__/UsingHeaderButton.d.ts +2 -2
- package/libs/ui/src/navigation/NavList/__stories__/UsingNavListAuto.d.ts +2 -2
- package/libs/ui/src/navigation/NavList/__stories__/Vertical.d.ts +2 -2
- package/libs/ui/src/navigation/NavList/__stories__/VerticalWithoutDrawer.d.ts +2 -2
- package/libs/ui/src/navigation/NavList/__stories__/WithBadge.d.ts +3 -0
- package/libs/ui/src/navigation/NavList/index.d.ts +2 -1
- package/libs/ui/src/navigation/NavList/types.d.ts +1 -1
- package/libs/ui/src/navigation/Pagination/Pagination.d.ts +39 -0
- package/libs/ui/src/navigation/Pagination/Pagination.stories.d.ts +7 -7
- package/libs/ui/src/navigation/Pagination/__stories__/Auto.d.ts +2 -2
- package/libs/ui/src/navigation/Pagination/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/navigation/Pagination/__stories__/PaginationSmall.d.ts +2 -2
- package/libs/ui/src/navigation/Pagination/__stories__/PaginationWithSmallFont.d.ts +2 -2
- package/libs/ui/src/navigation/Pagination/__stories__/WithHook.d.ts +2 -2
- package/libs/ui/src/navigation/Pagination/__stories__/WithInactiveValues.d.ts +2 -2
- package/libs/ui/src/navigation/Pagination/__stories__/WithResultsPerPage.d.ts +2 -2
- package/libs/ui/src/navigation/Pagination/auto.d.ts +9 -6
- package/libs/ui/src/navigation/Pagination/hooks.d.ts +1 -1
- package/libs/ui/src/navigation/Pagination/index.d.ts +3 -39
- package/libs/ui/src/navigation/SkipLink/SkipLink.stories.d.ts +1 -1
- package/libs/ui/src/navigation/SkipLink/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/navigation/Tabs/Tabs.stories.d.ts +4 -3
- package/libs/ui/src/navigation/Tabs/__stories__/Auto.d.ts +2 -2
- package/libs/ui/src/navigation/Tabs/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/navigation/Tabs/__stories__/Dense.d.ts +2 -2
- package/libs/ui/src/navigation/Tabs/__stories__/UsingAccordion.d.ts +3 -0
- package/libs/ui/src/navigation/Tabs/auto.d.ts +6 -5
- package/libs/ui/src/registry.d.ts +8 -0
- package/libs/ui/src/typography/CodeBlock/CodeBlock.stories.d.ts +11 -0
- package/libs/ui/src/typography/CodeBlock/__stories__/Default.d.ts +3 -0
- package/libs/ui/src/typography/CodeBlock/__stories__/Highlighted.d.ts +3 -0
- package/libs/ui/src/typography/CodeBlock/__stories__/WithCopyToClipboard.d.ts +3 -0
- package/libs/ui/src/typography/CodeBlock/__stories__/WithPhaseBanner.d.ts +3 -0
- package/libs/ui/src/typography/CodeBlock/index.d.ts +14 -2
- package/libs/ui/src/typography/Heading/Heading.stories.d.ts +1 -1
- package/libs/ui/src/typography/Heading/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/typography/HeadingCaption/HeadingCaption.stories.d.ts +2 -2
- package/libs/ui/src/typography/HeadingCaption/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/typography/HeadingCaption/__stories__/NestedToTitle.d.ts +2 -2
- package/libs/ui/src/typography/Hint/Hint.stories.d.ts +2 -2
- package/libs/ui/src/typography/Hint/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/typography/Hint/__stories__/FontSizes.d.ts +2 -2
- package/libs/ui/src/typography/NormalText/NormalText.stories.d.ts +4 -4
- package/libs/ui/src/typography/NormalText/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/typography/NormalText/__stories__/FontSizes.d.ts +2 -2
- package/libs/ui/src/typography/NormalText/__stories__/FontWeight.d.ts +2 -2
- package/libs/ui/src/typography/NormalText/__stories__/Variants.d.ts +2 -2
- package/libs/ui/src/typography/Paragraph/Paragraph.stories.d.ts +5 -5
- package/libs/ui/src/typography/Paragraph/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/typography/Paragraph/__stories__/FontSizes.d.ts +2 -2
- package/libs/ui/src/typography/Paragraph/__stories__/FontWeight.d.ts +2 -2
- package/libs/ui/src/typography/Paragraph/__stories__/LeadVariant.d.ts +2 -2
- package/libs/ui/src/typography/Paragraph/__stories__/SmallVariant.d.ts +2 -2
- package/libs/ui/src/utils/TestVariant/index.d.ts +7 -0
- package/libs/ui/src/utils/VisuallyHidden/VisuallyHidden.stories.d.ts +1 -1
- package/libs/ui/src/utils/VisuallyHidden/__stories__/Default.d.ts +2 -2
- package/libs/ui/src/utils/hooks/useScreen.d.ts +1 -1
- package/libs-ui/react-core/src/Accordion/index.d.ts +1 -1
- package/libs-ui/react-core/src/AccordionControls/index.d.ts +1 -1
- package/libs-ui/react-core/src/AccordionSection/index.d.ts +1 -1
- package/libs-ui/react-core/src/AccordionSectionContent/index.d.ts +1 -1
- package/libs-ui/react-core/src/AccordionSectionSummary/index.d.ts +1 -1
- package/libs-ui/react-core/src/AccordionSectionSummaryHeading/index.d.ts +1 -1
- package/libs-ui/react-core/src/AdminAside/index.d.ts +3 -3
- package/libs-ui/react-core/src/AdminContainer/index.d.ts +8 -1
- package/libs-ui/react-core/src/AdminHeader/index.d.ts +4 -4
- package/libs-ui/react-core/src/AdminHeaderContent/index.d.ts +3 -3
- package/libs-ui/react-core/src/AdminLayout/index.d.ts +3 -8
- package/libs-ui/react-core/src/AdminMain/index.d.ts +3 -3
- package/libs-ui/react-core/src/AdminTopSection/index.d.ts +1 -1
- package/libs-ui/react-core/src/Aside/index.d.ts +1 -1
- package/libs-ui/react-core/src/AutoCompleteAssistiveHint/index.d.ts +1 -1
- package/libs-ui/react-core/src/AutoCompleteContainer/index.d.ts +1 -1
- package/libs-ui/react-core/src/AutoCompleteInput/index.d.ts +1 -1
- package/libs-ui/react-core/src/AutoCompleteInputTypeahead/index.d.ts +1 -1
- package/libs-ui/react-core/src/AutoCompleteMultipleInput/index.d.ts +1 -1
- package/libs-ui/react-core/src/AutoCompleteMultipleInputContainer/index.d.ts +1 -1
- package/libs-ui/react-core/src/AutoCompleteResultList/index.d.ts +1 -1
- package/libs-ui/react-core/src/AutoCompleteResultListItem/index.d.ts +1 -1
- package/libs-ui/react-core/src/AutoCompleteStatus/index.d.ts +1 -1
- package/libs-ui/react-core/src/AutoCompleteStatusContainer/index.d.ts +1 -1
- package/libs-ui/react-core/src/BackLink/index.d.ts +1 -1
- package/libs-ui/react-core/src/BackToTopContainer/index.d.ts +1 -1
- package/libs-ui/react-core/src/BackToTopLimit/index.d.ts +1 -1
- package/libs-ui/react-core/src/BackToTopLink/index.d.ts +1 -1
- package/libs-ui/react-core/src/BannerContainer/index.d.ts +1 -1
- package/libs-ui/react-core/src/Base/index.d.ts +1 -1
- package/libs-ui/react-core/src/Blockquote/index.d.ts +1 -1
- package/libs-ui/react-core/src/Bottom/index.d.ts +1 -1
- package/libs-ui/react-core/src/BottomInfo/index.d.ts +1 -1
- package/libs-ui/react-core/src/BottomInfoContainer/index.d.ts +1 -1
- package/libs-ui/react-core/src/BottomInfoContent/index.d.ts +1 -1
- package/libs-ui/react-core/src/Breadcrumbs/index.d.ts +1 -1
- package/libs-ui/react-core/src/BreadcrumbsList/index.d.ts +1 -1
- package/libs-ui/react-core/src/BreadcrumbsListItem/index.d.ts +1 -1
- package/libs-ui/react-core/src/Button/index.d.ts +1 -1
- package/libs-ui/react-core/src/ButtonGroup/index.d.ts +1 -1
- package/libs-ui/react-core/src/ButtonLink/index.d.ts +1 -1
- package/libs-ui/react-core/src/CallToAction/index.d.ts +1 -1
- package/libs-ui/react-core/src/Card/index.d.ts +1 -1
- package/libs-ui/react-core/src/CardAction/index.d.ts +1 -1
- package/libs-ui/react-core/src/CardContent/index.d.ts +1 -1
- package/libs-ui/react-core/src/CardHeading/index.d.ts +1 -1
- package/libs-ui/react-core/src/Checkbox/index.d.ts +1 -1
- package/libs-ui/react-core/src/CheckboxConditional/index.d.ts +1 -1
- package/libs-ui/react-core/src/CheckboxItem/index.d.ts +1 -1
- package/libs-ui/react-core/src/Chip/index.d.ts +1 -1
- package/libs-ui/react-core/src/ChipContainer/index.d.ts +1 -1
- package/libs-ui/react-core/src/ChipHeading/index.d.ts +1 -1
- package/libs-ui/react-core/src/ChipKeyValue/index.d.ts +1 -1
- package/libs-ui/react-core/src/ChoiceDividerText/index.d.ts +1 -1
- package/libs-ui/react-core/src/CircularProgress/index.d.ts +1 -1
- package/libs-ui/react-core/src/CloseButton/index.d.ts +1 -1
- package/libs-ui/react-core/src/Code/index.d.ts +1 -1
- package/libs-ui/react-core/src/CodeBlockContainer/index.d.ts +10 -0
- package/libs-ui/react-core/src/CodeBlockContent/index.d.ts +10 -0
- package/libs-ui/react-core/src/CodeBlockHeader/index.d.ts +19 -0
- package/libs-ui/react-core/src/Container/index.d.ts +1 -1
- package/libs-ui/react-core/src/CopyToClipboardContainer/index.d.ts +1 -1
- package/libs-ui/react-core/src/CopyToClipboardMessage/index.d.ts +1 -1
- package/libs-ui/react-core/src/CopyrightContainer/index.d.ts +1 -1
- package/libs-ui/react-core/src/DateInputContainer/index.d.ts +1 -1
- package/libs-ui/react-core/src/DateInputItem/index.d.ts +1 -1
- package/libs-ui/react-core/src/Details/index.d.ts +1 -1
- package/libs-ui/react-core/src/DetailsContent/index.d.ts +1 -1
- package/libs-ui/react-core/src/DetailsSummary/index.d.ts +1 -1
- package/libs-ui/react-core/src/Drawer/index.d.ts +1 -1
- package/libs-ui/react-core/src/DrawerHeading/index.d.ts +1 -1
- package/libs-ui/react-core/src/DropdownBase/index.d.ts +1 -1
- package/libs-ui/react-core/src/DropdownButton/index.d.ts +1 -1
- package/libs-ui/react-core/src/DropdownContent/index.d.ts +9 -1
- package/libs-ui/react-core/src/ErrorMessage/index.d.ts +1 -1
- package/libs-ui/react-core/src/ErrorSummary/index.d.ts +1 -1
- package/libs-ui/react-core/src/FieldContainer/index.d.ts +1 -1
- package/libs-ui/react-core/src/Fieldset/index.d.ts +1 -1
- package/libs-ui/react-core/src/FieldsetLegend/index.d.ts +1 -1
- package/libs-ui/react-core/src/FileUpload/index.d.ts +1 -1
- package/libs-ui/react-core/src/FileUploadContainer/index.d.ts +1 -1
- package/libs-ui/react-core/src/FillableText/index.d.ts +1 -1
- package/libs-ui/react-core/src/FilterContainer/index.d.ts +1 -1
- package/libs-ui/react-core/src/FilterContent/index.d.ts +1 -1
- package/libs-ui/react-core/src/FilterHeadingContainer/index.d.ts +1 -1
- package/libs-ui/react-core/src/FilterOptionsSection/index.d.ts +1 -1
- package/libs-ui/react-core/src/FilterSelectedHeading/index.d.ts +1 -1
- package/libs-ui/react-core/src/FilterSelectedSection/index.d.ts +1 -1
- package/libs-ui/react-core/src/Footer/index.d.ts +1 -1
- package/libs-ui/react-core/src/FooterContainer/index.d.ts +1 -1
- package/libs-ui/react-core/src/FooterContent/index.d.ts +1 -1
- package/libs-ui/react-core/src/FooterContentLogos/index.d.ts +1 -1
- package/libs-ui/react-core/src/FooterHeading/index.d.ts +1 -1
- package/libs-ui/react-core/src/FooterImage/index.d.ts +1 -1
- package/libs-ui/react-core/src/FooterInfo/index.d.ts +1 -1
- package/libs-ui/react-core/src/FooterInfoSection/index.d.ts +1 -1
- package/libs-ui/react-core/src/FooterLink/index.d.ts +1 -1
- package/libs-ui/react-core/src/FooterList/index.d.ts +1 -1
- package/libs-ui/react-core/src/FooterListItem/index.d.ts +1 -1
- package/libs-ui/react-core/src/FooterNavigation/index.d.ts +1 -1
- package/libs-ui/react-core/src/FooterNavigationSection/index.d.ts +1 -1
- package/libs-ui/react-core/src/Form/index.d.ts +1 -1
- package/libs-ui/react-core/src/FullPageBackground/index.d.ts +1 -1
- package/libs-ui/react-core/src/GovGRLogo/index.d.ts +1 -1
- package/libs-ui/react-core/src/Grid/index.d.ts +1 -1
- package/libs-ui/react-core/src/Header/index.d.ts +1 -1
- package/libs-ui/react-core/src/HeaderContent/index.d.ts +1 -1
- package/libs-ui/react-core/src/HeaderLogo/index.d.ts +1 -1
- package/libs-ui/react-core/src/HeaderNavMenuContent/index.d.ts +1 -1
- package/libs-ui/react-core/src/HeaderSecondaryLogo/index.d.ts +1 -1
- package/libs-ui/react-core/src/HeaderSection/index.d.ts +1 -1
- package/libs-ui/react-core/src/HeaderTitle/index.d.ts +1 -1
- package/libs-ui/react-core/src/Heading/index.d.ts +1 -1
- package/libs-ui/react-core/src/HeadingCaption/index.d.ts +1 -1
- package/libs-ui/react-core/src/HellenicRepublicLogo/index.d.ts +1 -1
- package/libs-ui/react-core/src/Hidden/index.d.ts +1 -1
- package/libs-ui/react-core/src/Hint/index.d.ts +1 -1
- package/libs-ui/react-core/src/ImageLogo/index.d.ts +1 -1
- package/libs-ui/react-core/src/ImageLogoSet/index.d.ts +1 -1
- package/libs-ui/react-core/src/KitchenSinkAllComponents/index.d.ts +1 -1
- package/libs-ui/react-core/src/KitchenSinkCard/index.d.ts +1 -1
- package/libs-ui/react-core/src/KitchenSinkCategory/index.d.ts +1 -1
- package/libs-ui/react-core/src/KitchenSinkContent/index.d.ts +1 -1
- package/libs-ui/react-core/src/KitchenSinkContentInfo/index.d.ts +1 -1
- package/libs-ui/react-core/src/KitchenSinkContentTags/index.d.ts +1 -1
- package/libs-ui/react-core/src/KitchenSinkHeading/index.d.ts +1 -1
- package/libs-ui/react-core/src/KitchenSinkLetterContent/index.d.ts +1 -1
- package/libs-ui/react-core/src/LabelContainer/index.d.ts +1 -1
- package/libs-ui/react-core/src/LabelTitle/index.d.ts +1 -1
- package/libs-ui/react-core/src/LabeledText/index.d.ts +1 -1
- package/libs-ui/react-core/src/Layout/index.d.ts +1 -1
- package/libs-ui/react-core/src/LinkBase/index.d.ts +1 -1
- package/libs-ui/react-core/src/List/index.d.ts +1 -1
- package/libs-ui/react-core/src/ListItem/index.d.ts +1 -1
- package/libs-ui/react-core/src/LoaderContainer/index.d.ts +1 -1
- package/libs-ui/react-core/src/Main/index.d.ts +1 -1
- package/libs-ui/react-core/src/Masthead/index.d.ts +1 -1
- package/libs-ui/react-core/src/MastheadBody/index.d.ts +1 -1
- package/libs-ui/react-core/src/MastheadLogo/index.d.ts +1 -1
- package/libs-ui/react-core/src/ModalAction/index.d.ts +1 -1
- package/libs-ui/react-core/src/ModalContainer/index.d.ts +8 -1
- package/libs-ui/react-core/src/ModalContent/index.d.ts +1 -1
- package/libs-ui/react-core/src/ModalHeading/index.d.ts +1 -1
- package/libs-ui/react-core/src/Nav/index.d.ts +1 -1
- package/libs-ui/react-core/src/NavList/index.d.ts +1 -1
- package/libs-ui/react-core/src/NavListItemAction/index.d.ts +13 -1
- package/libs-ui/react-core/src/NavListItemActionContainer/index.d.ts +1 -1
- package/libs-ui/react-core/src/NavListItemBadge/index.d.ts +15 -0
- package/libs-ui/react-core/src/NavListItemButton/index.d.ts +1 -1
- package/libs-ui/react-core/src/NavListItemLink/index.d.ts +1 -1
- package/libs-ui/react-core/src/NavMenuContainer/index.d.ts +1 -1
- package/libs-ui/react-core/src/NavMenuContent/index.d.ts +1 -1
- package/libs-ui/react-core/src/NavMenuContentListBase/index.d.ts +1 -1
- package/libs-ui/react-core/src/NavMenuContentListItem/index.d.ts +1 -1
- package/libs-ui/react-core/src/NavMenuTitle/index.d.ts +1 -1
- package/libs-ui/react-core/src/NormalText/index.d.ts +1 -1
- package/libs-ui/react-core/src/NotificationBannerContainer/index.d.ts +1 -1
- package/libs-ui/react-core/src/NotificationBannerContent/index.d.ts +1 -1
- package/libs-ui/react-core/src/NotificationBannerHeader/index.d.ts +1 -1
- package/libs-ui/react-core/src/NotificationBannerHeading/index.d.ts +1 -1
- package/libs-ui/react-core/src/NotificationBannerLink/index.d.ts +1 -1
- package/libs-ui/react-core/src/PageTitleCaption/index.d.ts +1 -1
- package/libs-ui/react-core/src/PageTitleContainer/index.d.ts +1 -1
- package/libs-ui/react-core/src/PageTitleHeading/index.d.ts +1 -1
- package/libs-ui/react-core/src/Pagination/index.d.ts +1 -1
- package/libs-ui/react-core/src/PaginationLabelContainer/index.d.ts +1 -1
- package/libs-ui/react-core/src/PaginationList/index.d.ts +1 -1
- package/libs-ui/react-core/src/PaginationListItem/index.d.ts +1 -1
- package/libs-ui/react-core/src/Panel/index.d.ts +1 -1
- package/libs-ui/react-core/src/PanelBody/index.d.ts +1 -1
- package/libs-ui/react-core/src/PanelTitle/index.d.ts +1 -1
- package/libs-ui/react-core/src/Paragraph/index.d.ts +1 -1
- package/libs-ui/react-core/src/PhaseBanner/index.d.ts +1 -1
- package/libs-ui/react-core/src/PhaseBannerHeaderContainer/index.d.ts +1 -1
- package/libs-ui/react-core/src/PhaseBannerTag/index.d.ts +1 -1
- package/libs-ui/react-core/src/PhaseBannerText/index.d.ts +1 -1
- package/libs-ui/react-core/src/RadioConditional/index.d.ts +1 -1
- package/libs-ui/react-core/src/RadioContainer/index.d.ts +1 -1
- package/libs-ui/react-core/src/RadioItem/index.d.ts +1 -1
- package/libs-ui/react-core/src/ResultsActionBar/index.d.ts +1 -1
- package/libs-ui/react-core/src/ResultsHeading/index.d.ts +1 -1
- package/libs-ui/react-core/src/ResultsHeadingActions/index.d.ts +1 -1
- package/libs-ui/react-core/src/SearchButton/index.d.ts +1 -1
- package/libs-ui/react-core/src/SearchContainer/index.d.ts +1 -1
- package/libs-ui/react-core/src/Section/index.d.ts +1 -1
- package/libs-ui/react-core/src/SectionBreak/index.d.ts +1 -1
- package/libs-ui/react-core/src/SelectContainer/index.d.ts +1 -1
- package/libs-ui/react-core/src/SelectOption/index.d.ts +1 -1
- package/libs-ui/react-core/src/SingleCharacterInput/index.d.ts +1 -1
- package/libs-ui/react-core/src/SingleCharacterInputs/index.d.ts +1 -1
- package/libs-ui/react-core/src/Skeleton/index.d.ts +49 -0
- package/libs-ui/react-core/src/SkipLink/index.d.ts +1 -1
- package/libs-ui/react-core/src/Stack/index.d.ts +1 -1
- package/libs-ui/react-core/src/StepNav/index.d.ts +1 -1
- package/libs-ui/react-core/src/StepNavAccordion/index.d.ts +1 -1
- package/libs-ui/react-core/src/StepNavAccordionContent/index.d.ts +1 -1
- package/libs-ui/react-core/src/StepNavAccordionHeadingText/index.d.ts +1 -1
- package/libs-ui/react-core/src/StepNavAccordionHeadingTitle/index.d.ts +1 -1
- package/libs-ui/react-core/src/StepNavAccordionSummary/index.d.ts +1 -1
- package/libs-ui/react-core/src/StepNavAccordionSummaryHeading/index.d.ts +1 -1
- package/libs-ui/react-core/src/StepNavCircleNumber/index.d.ts +1 -1
- package/libs-ui/react-core/src/StepNavControls/index.d.ts +1 -1
- package/libs-ui/react-core/src/StepNavList/index.d.ts +1 -1
- package/libs-ui/react-core/src/StepNavListItem/index.d.ts +1 -1
- package/libs-ui/react-core/src/SummaryList/index.d.ts +10 -1
- package/libs-ui/react-core/src/SummaryListItem/index.d.ts +1 -1
- package/libs-ui/react-core/src/SummaryListItemAction/index.d.ts +1 -1
- package/libs-ui/react-core/src/SummaryListItemKey/index.d.ts +1 -1
- package/libs-ui/react-core/src/SummaryListItemValue/index.d.ts +1 -1
- package/libs-ui/react-core/src/SvgIcon/index.d.ts +1 -1
- package/libs-ui/react-core/src/Table/index.d.ts +1 -1
- package/libs-ui/react-core/src/TableBody/index.d.ts +1 -1
- package/libs-ui/react-core/src/TableCaption/index.d.ts +1 -1
- package/libs-ui/react-core/src/TableContainer/index.d.ts +1 -1
- package/libs-ui/react-core/src/TableDataCell/index.d.ts +1 -1
- package/libs-ui/react-core/src/TableHead/index.d.ts +1 -1
- package/libs-ui/react-core/src/TableHeadCell/index.d.ts +1 -1
- package/libs-ui/react-core/src/TableLoaderBackground/index.d.ts +1 -1
- package/libs-ui/react-core/src/TableNoDataRow/index.d.ts +1 -1
- package/libs-ui/react-core/src/TableRow/index.d.ts +1 -1
- package/libs-ui/react-core/src/TableSortIconContainer/index.d.ts +1 -1
- package/libs-ui/react-core/src/Tabs/index.d.ts +1 -2
- package/libs-ui/react-core/src/TabsHeading/index.d.ts +1 -1
- package/libs-ui/react-core/src/TabsList/index.d.ts +1 -1
- package/libs-ui/react-core/src/TabsListItemBase/index.d.ts +1 -1
- package/libs-ui/react-core/src/TabsPanelBase/index.d.ts +1 -1
- package/libs-ui/react-core/src/TaskList/index.d.ts +1 -1
- package/libs-ui/react-core/src/TaskListItem/index.d.ts +1 -1
- package/libs-ui/react-core/src/TaskListItemContent/index.d.ts +1 -1
- package/libs-ui/react-core/src/TaskListItemHeading/index.d.ts +1 -1
- package/libs-ui/react-core/src/TaskListItemTag/index.d.ts +1 -1
- package/libs-ui/react-core/src/TextArea/index.d.ts +1 -1
- package/libs-ui/react-core/src/TextInput/index.d.ts +1 -1
- package/libs-ui/react-core/src/Timeline/index.d.ts +1 -1
- package/libs-ui/react-core/src/TimelineActions/index.d.ts +1 -1
- package/libs-ui/react-core/src/TimelineContent/index.d.ts +1 -1
- package/libs-ui/react-core/src/TimelineHeading/index.d.ts +1 -1
- package/libs-ui/react-core/src/TimelineItem/index.d.ts +1 -1
- package/libs-ui/react-core/src/Top/index.d.ts +1 -1
- package/libs-ui/react-core/src/Typography/index.d.ts +1 -1
- package/libs-ui/react-core/src/VisuallyHidden/index.d.ts +1 -1
- package/libs-ui/react-core/src/WarningText/index.d.ts +1 -1
- package/libs-ui/react-experimental/src/FloatingButton/index.d.ts +1 -1
- package/libs-ui/react-experimental/src/Kitchensink/AllComponents.d.ts +2 -2
- package/libs-ui/react-experimental/src/Kitchensink/KitchensinkByCategory.d.ts +1 -1
- package/libs-ui/react-experimental/src/Kitchensink/KitchensinkByLetter.d.ts +2 -2
- package/libs-ui/react-experimental/src/Kitchensink/KitchensinkComponent.d.ts +1 -1
- package/libs-ui/react-experimental/src/Kitchensink/KitchensinkDashboard.d.ts +2 -2
- package/libs-ui/react-experimental/src/OptionButtonBase/index.d.ts +1 -1
- package/libs-ui/react-experimental/src/OptionButtonSteps/index.d.ts +1 -1
- package/libs-ui/react-icons/src/Base/index.d.ts +95 -0
- package/libs-ui/react-icons/src/Icon/index.d.ts +2 -2
- package/libs-ui/react-icons/src/SvgIcon/index.d.ts +37 -0
- package/package.json +7 -10
- package/src/FloatingButton/__snapshots__/index.test.tsx.snap +37 -0
- package/src/FloatingButton/index.test.tsx +4 -4
- package/src/OptionButtonBase/__snapshots__/index.test.tsx.snap +37 -0
- package/src/OptionButtonBase/index.test.tsx +4 -4
- package/src/OptionButtonSteps/__snapshots__/index.test.tsx.snap +84 -0
- package/src/OptionButtonSteps/index.test.tsx +6 -6
- package/FloatingButton/index.test/index.js +0 -17
- package/FloatingButton/index.test/package.json +0 -6
- package/FloatingButton/index.test.js.map +0 -7
- package/OptionButtonBase/index.test/index.js +0 -17
- package/OptionButtonBase/index.test/package.json +0 -6
- package/OptionButtonBase/index.test.js.map +0 -7
- package/OptionButtonSteps/index.test/index.js +0 -28
- package/OptionButtonSteps/index.test/package.json +0 -6
- package/OptionButtonSteps/index.test.js.map +0 -7
- package/cjs/FloatingButton/index.test/index.js +0 -35
- package/cjs/FloatingButton/index.test.js.map +0 -7
- package/cjs/OptionButtonBase/index.test/index.js +0 -35
- package/cjs/OptionButtonBase/index.test.js.map +0 -7
- package/cjs/OptionButtonSteps/index.test/index.js +0 -46
- package/cjs/OptionButtonSteps/index.test.js.map +0 -7
- package/libs-ui/react-core/src/CodeBlock/index.d.ts +0 -10
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type AsProp<C extends React.ElementType> = {
|
|
3
|
+
as?: C;
|
|
4
|
+
};
|
|
5
|
+
type PropsToOmit<C extends React.ElementType, P> = keyof (AsProp<C> & P);
|
|
6
|
+
type PolymorphicComponentProp<C extends React.ElementType, Props = Record<string, unknown>> = React.PropsWithChildren<Props & AsProp<C>> & Omit<React.ComponentPropsWithoutRef<C>, PropsToOmit<C, Props>>;
|
|
7
|
+
type PolymorphicComponentPropWithRef<C extends React.ElementType, Props = Record<string, unknown>> = PolymorphicComponentProp<C, Props> & {
|
|
8
|
+
ref?: any;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* This is the updated component props using PolymorphicComponentPropWithRef
|
|
12
|
+
*/
|
|
13
|
+
export type BaseProps<C extends React.ElementType> = PolymorphicComponentPropWithRef<C, {
|
|
14
|
+
/** margin is optional. It has not a default value. */
|
|
15
|
+
margin?: spacingValues;
|
|
16
|
+
/** marginTop is optional. It has not a default value. */
|
|
17
|
+
marginTop?: spacingValues;
|
|
18
|
+
/** marginBottom is optional. It has not a default value. */
|
|
19
|
+
marginBottom?: spacingValues;
|
|
20
|
+
/** marginLeft is optional. It has not a default value. */
|
|
21
|
+
marginLeft?: spacingValues;
|
|
22
|
+
/** marginRight is optional. It has not a default value. */
|
|
23
|
+
marginRight?: spacingValues;
|
|
24
|
+
/** Alternative for margin. Margin is optional. It has not a default value. */
|
|
25
|
+
m?: spacingValues;
|
|
26
|
+
/** Alternative for marginTop. MarginTop is optional. It has not a default value. */
|
|
27
|
+
mt?: spacingValues;
|
|
28
|
+
/** Alternative for marginBottom. MarginBottom is optional. It has not a default value. */
|
|
29
|
+
mb?: spacingValues;
|
|
30
|
+
/** Alternative for marginLeft. MarginLeft is optional. It has not a default value. */
|
|
31
|
+
ml?: spacingValues;
|
|
32
|
+
/** Alternative for marginRight. MarginRight is optional. It has not a default value. */
|
|
33
|
+
mr?: spacingValues;
|
|
34
|
+
/** Alternative for marginX. MarginX is optional. It has not a default value. */
|
|
35
|
+
mx?: spacingValues;
|
|
36
|
+
/** Alternative for marginY. MarginY is optional. It has not a default value. */
|
|
37
|
+
my?: spacingValues;
|
|
38
|
+
/** padding is optional. It has not a default value. */
|
|
39
|
+
padding?: spacingValues;
|
|
40
|
+
/** paddingTop is optional. It has not a default value. */
|
|
41
|
+
paddingTop?: spacingValues;
|
|
42
|
+
/** paddingBottom is optional. It has not a default value. */
|
|
43
|
+
paddingBottom?: spacingValues;
|
|
44
|
+
/** paddingLeft is optional. It has not a default value. */
|
|
45
|
+
paddingLeft?: spacingValues;
|
|
46
|
+
/** paddingRight is optional. It has not a default value. */
|
|
47
|
+
paddingRight?: spacingValues;
|
|
48
|
+
/** Alternative for padding. Padding is optional. It has not a default value. */
|
|
49
|
+
p?: spacingValues;
|
|
50
|
+
/** Alternative for paddingTop. PaddingTop is optional. It has not a default value. */
|
|
51
|
+
pt?: spacingValues;
|
|
52
|
+
/** Alternative for paddingBottom. PaddingBottom is optional. It has not a default value. */
|
|
53
|
+
pb?: spacingValues;
|
|
54
|
+
/** Alternative for paddingLeft. PaddingLeft is optional. It has not a default value. */
|
|
55
|
+
pl?: spacingValues;
|
|
56
|
+
/** Alternative for paddingRight. PaddingRight is optional. It has not a default value. */
|
|
57
|
+
pr?: spacingValues;
|
|
58
|
+
/** Alternative for paddingX. PaddingX is optional. It has not a default value. */
|
|
59
|
+
px?: spacingValues;
|
|
60
|
+
/** Alternative for paddingY. PaddingY is optional. It has not a default value. */
|
|
61
|
+
py?: spacingValues;
|
|
62
|
+
/** printHidden is optional. Default value is false. When true, the component is hidden at print. */
|
|
63
|
+
printHidden?: boolean;
|
|
64
|
+
/** printVisible is optional. When block, the component is displayed as block. When inline, the component is displayed as inline.*/
|
|
65
|
+
printVisible?: 'block' | 'inline';
|
|
66
|
+
/** Components will be hidden at all screen sizes. */
|
|
67
|
+
hidden?: boolean;
|
|
68
|
+
/** Components will be hidden from 'xs' screen size and up. */
|
|
69
|
+
xsUpHidden?: boolean;
|
|
70
|
+
/** Components will be hidden from 'sm' screen size and up. */
|
|
71
|
+
smUpHidden?: boolean;
|
|
72
|
+
/** Components will be hidden from 'md' screen size and up. */
|
|
73
|
+
mdUpHidden?: boolean;
|
|
74
|
+
/** Components will be hidden from 'lg' screen size and up. */
|
|
75
|
+
lgUpHidden?: boolean;
|
|
76
|
+
/** Components will be hidden from 'xl' screen size and up. */
|
|
77
|
+
xlUpHidden?: boolean;
|
|
78
|
+
/** Components will be hidden between xs and sm screen size. */
|
|
79
|
+
xsHidden?: boolean;
|
|
80
|
+
/** Components will be hidden between sm and md screen size. */
|
|
81
|
+
smHidden?: boolean;
|
|
82
|
+
/** Components will be hidden between md and lg screen size. */
|
|
83
|
+
mdHidden?: boolean;
|
|
84
|
+
/** Components will be hidden between lg and xl screen size. */
|
|
85
|
+
lgHidden?: boolean;
|
|
86
|
+
/** Components will be hidden between xl and 2xl screen size. */
|
|
87
|
+
xlHidden?: boolean;
|
|
88
|
+
}>;
|
|
89
|
+
type spacingValues = 0 | 0.5 | 1 | 1.5 | 2 | 2.5 | 3 | 3.5 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 60 | 64 | 72 | 80 | 96;
|
|
90
|
+
/**
|
|
91
|
+
* This is the type used in the type annotation for the component
|
|
92
|
+
*/
|
|
93
|
+
type BaseComponent = <C extends React.ElementType = 'span'>(props: BaseProps<C>) => React.ReactNode | null;
|
|
94
|
+
export declare const Base: BaseComponent;
|
|
95
|
+
export default Base;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { SvgIconProps } from '@digigov/react-
|
|
2
|
+
import { SvgIconProps } from '@digigov/react-icons/SvgIcon';
|
|
3
3
|
import type { IconTypes } from '@digigov/react-icons/icons';
|
|
4
4
|
export type IconProps<N extends keyof IconTypes> = SvgIconProps & IconTypes[N] & {
|
|
5
5
|
/**
|
|
@@ -15,7 +15,7 @@ export type IconProps<N extends keyof IconTypes> = SvgIconProps & IconTypes[N] &
|
|
|
15
15
|
*/
|
|
16
16
|
icon?: N;
|
|
17
17
|
};
|
|
18
|
-
type IconComponent = <C extends keyof IconTypes>(props: IconProps<C>) => React.
|
|
18
|
+
type IconComponent = <C extends keyof IconTypes>(props: IconProps<C>) => React.ReactNode | null;
|
|
19
19
|
export type IconNames = keyof IconTypes;
|
|
20
20
|
/**
|
|
21
21
|
* Icon is used whenever we need a GOV.GR icon.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps } from '@digigov/react-icons/Base';
|
|
3
|
+
export interface SvgIconProps extends BaseProps<'svg'> {
|
|
4
|
+
/**
|
|
5
|
+
* size is optional.
|
|
6
|
+
* size prop declares the size of the svg icon.
|
|
7
|
+
* @value 'xs'
|
|
8
|
+
* @value 'sm'
|
|
9
|
+
* @value 'md'
|
|
10
|
+
* @value 'lg'
|
|
11
|
+
* @value 'xl'
|
|
12
|
+
* @default 'sm'
|
|
13
|
+
*/
|
|
14
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
15
|
+
/**
|
|
16
|
+
* color property styles svg icon with Gov.gr palette's basic colors.
|
|
17
|
+
* color property is optional.
|
|
18
|
+
* @value 'base-content'
|
|
19
|
+
* @value 'dark', always dark, among all themes
|
|
20
|
+
* @value 'white', always white, among all themes
|
|
21
|
+
* @value 'gray'
|
|
22
|
+
* @value 'primary'
|
|
23
|
+
* @value 'success'
|
|
24
|
+
* @value 'warning'
|
|
25
|
+
* @value 'error'
|
|
26
|
+
* @value 'focus', use only in focus state, in dark background
|
|
27
|
+
* @value 'info'
|
|
28
|
+
* @value 'link'
|
|
29
|
+
*/
|
|
30
|
+
color?: 'base-content' | 'dark' | 'white' | 'gray' | 'primary' | 'success' | 'warning' | 'error' | 'focus' | 'info' | 'link';
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Use SvgIcon as global svg component.
|
|
34
|
+
* SvgIcon can be used inside other svg components as children such as CheckIcon, CaretIcon etc.
|
|
35
|
+
*/
|
|
36
|
+
export declare const SvgIcon: React.ForwardRefExoticComponent<Omit<SvgIconProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
|
|
37
|
+
export default SvgIcon;
|
package/package.json
CHANGED
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/react-experimental",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-85c27c19",
|
|
4
4
|
"description": "@digigov react experimental components",
|
|
5
5
|
"author": "GRNET Developers <devs@lists.grnet.gr>",
|
|
6
6
|
"license": "BSD-2-Clause",
|
|
7
7
|
"main": "./cjs/index.js",
|
|
8
8
|
"module": "./index.js",
|
|
9
9
|
"peerDependencies": {
|
|
10
|
-
"@digigov/css": "2.0.0-
|
|
11
|
-
"@digigov/react-icons": "2.0.0-
|
|
12
|
-
"@digigov/ui": "2.0.0-
|
|
13
|
-
"@digigov/react-core": "2.0.0-
|
|
10
|
+
"@digigov/css": "2.0.0-85c27c19",
|
|
11
|
+
"@digigov/react-icons": "2.0.0-85c27c19",
|
|
12
|
+
"@digigov/ui": "2.0.0-85c27c19",
|
|
13
|
+
"@digigov/react-core": "2.0.0-85c27c19",
|
|
14
14
|
"clsx": "1.1.1",
|
|
15
|
-
"react": "
|
|
16
|
-
"react-dom": "
|
|
17
|
-
},
|
|
18
|
-
"dependencies": {
|
|
19
|
-
"ts-morph": "18.0.0"
|
|
15
|
+
"react": ">=16.8.0 <19.0.0",
|
|
16
|
+
"react-dom": ">=16.8.0 <19.0.0"
|
|
20
17
|
},
|
|
21
18
|
"private": false,
|
|
22
19
|
"typings": "./index.d.ts"
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the FloatingButton with direction="left" 1`] = `
|
|
4
|
+
<body>
|
|
5
|
+
<div>
|
|
6
|
+
<button
|
|
7
|
+
class="ds-floating-btn--left ds-floating-btn ds-btn-primary ds-btn ds-print-hidden"
|
|
8
|
+
>
|
|
9
|
+
+
|
|
10
|
+
</button>
|
|
11
|
+
</div>
|
|
12
|
+
</body>
|
|
13
|
+
`;
|
|
14
|
+
|
|
15
|
+
exports[`renders the FloatingButton with direction="right" 1`] = `
|
|
16
|
+
<body>
|
|
17
|
+
<div>
|
|
18
|
+
<button
|
|
19
|
+
class="ds-floating-btn--right ds-floating-btn ds-btn-primary ds-btn ds-print-hidden"
|
|
20
|
+
>
|
|
21
|
+
+
|
|
22
|
+
</button>
|
|
23
|
+
</div>
|
|
24
|
+
</body>
|
|
25
|
+
`;
|
|
26
|
+
|
|
27
|
+
exports[`renders the FloatingButton with no props 1`] = `
|
|
28
|
+
<body>
|
|
29
|
+
<div>
|
|
30
|
+
<button
|
|
31
|
+
class="ds-floating-btn--right ds-floating-btn ds-btn-primary ds-btn ds-print-hidden"
|
|
32
|
+
>
|
|
33
|
+
+
|
|
34
|
+
</button>
|
|
35
|
+
</div>
|
|
36
|
+
</body>
|
|
37
|
+
`;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { render } from '@testing-library/react';
|
|
3
3
|
|
|
4
4
|
import FloatingButton from '@digigov/react-experimental/FloatingButton';
|
|
5
5
|
|
|
6
6
|
it('renders the FloatingButton with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(render(<FloatingButton>+</FloatingButton>).baseElement).toMatchSnapshot();
|
|
8
8
|
});
|
|
9
9
|
it('renders the FloatingButton with direction="right"', () => {
|
|
10
|
-
expect(
|
|
10
|
+
expect(render(<FloatingButton direction="right">+</FloatingButton>).baseElement).toMatchSnapshot();
|
|
11
11
|
});
|
|
12
12
|
it('renders the FloatingButton with direction="left"', () => {
|
|
13
|
-
expect(
|
|
13
|
+
expect(render(<FloatingButton direction="left">+</FloatingButton>).baseElement).toMatchSnapshot();
|
|
14
14
|
});
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the OptionButtonBase with selected=false 1`] = `
|
|
4
|
+
<body>
|
|
5
|
+
<div>
|
|
6
|
+
<button
|
|
7
|
+
class="ds-btn ds-option-btn"
|
|
8
|
+
>
|
|
9
|
+
+
|
|
10
|
+
</button>
|
|
11
|
+
</div>
|
|
12
|
+
</body>
|
|
13
|
+
`;
|
|
14
|
+
|
|
15
|
+
exports[`renders the OptionButtonBase with selected=true 1`] = `
|
|
16
|
+
<body>
|
|
17
|
+
<div>
|
|
18
|
+
<button
|
|
19
|
+
class="ds-option-btn--selected ds-btn ds-option-btn"
|
|
20
|
+
>
|
|
21
|
+
+
|
|
22
|
+
</button>
|
|
23
|
+
</div>
|
|
24
|
+
</body>
|
|
25
|
+
`;
|
|
26
|
+
|
|
27
|
+
exports[`renders the OptionButtonBase with no props 1`] = `
|
|
28
|
+
<body>
|
|
29
|
+
<div>
|
|
30
|
+
<button
|
|
31
|
+
class="ds-btn ds-option-btn"
|
|
32
|
+
>
|
|
33
|
+
+
|
|
34
|
+
</button>
|
|
35
|
+
</div>
|
|
36
|
+
</body>
|
|
37
|
+
`;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { render } from '@testing-library/react';
|
|
3
3
|
|
|
4
4
|
import OptionButtonBase from '@digigov/react-experimental/OptionButtonBase';
|
|
5
5
|
|
|
6
6
|
it('renders the OptionButtonBase with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(render(<OptionButtonBase>+</OptionButtonBase>).baseElement).toMatchSnapshot();
|
|
8
8
|
});
|
|
9
9
|
it('renders the OptionButtonBase with selected=true', () => {
|
|
10
|
-
expect(
|
|
10
|
+
expect(render(<OptionButtonBase selected={true}>+</OptionButtonBase>).baseElement).toMatchSnapshot();
|
|
11
11
|
});
|
|
12
12
|
it('renders the OptionButtonBase with selected=false', () => {
|
|
13
|
-
expect(
|
|
13
|
+
expect(render(<OptionButtonBase selected={false}>+</OptionButtonBase>).baseElement).toMatchSnapshot();
|
|
14
14
|
});
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the OptionButtonSteps with activeStep=1 1`] = `
|
|
4
|
+
<body>
|
|
5
|
+
<div>
|
|
6
|
+
<div
|
|
7
|
+
class="ds-option-btn__steps"
|
|
8
|
+
/>
|
|
9
|
+
</div>
|
|
10
|
+
</body>
|
|
11
|
+
`;
|
|
12
|
+
|
|
13
|
+
exports[`renders the OptionButtonSteps with no props 1`] = `
|
|
14
|
+
<body>
|
|
15
|
+
<div>
|
|
16
|
+
<div
|
|
17
|
+
class="ds-option-btn__steps"
|
|
18
|
+
/>
|
|
19
|
+
</div>
|
|
20
|
+
</body>
|
|
21
|
+
`;
|
|
22
|
+
|
|
23
|
+
exports[`renders the OptionButtonSteps with steps="3" 1`] = `
|
|
24
|
+
<body>
|
|
25
|
+
<div>
|
|
26
|
+
<div
|
|
27
|
+
class="ds-option-btn__steps"
|
|
28
|
+
>
|
|
29
|
+
<div
|
|
30
|
+
class="ds-option-btn__step"
|
|
31
|
+
/>
|
|
32
|
+
<div
|
|
33
|
+
class="ds-option-btn__step"
|
|
34
|
+
/>
|
|
35
|
+
<div
|
|
36
|
+
class="ds-option-btn__step"
|
|
37
|
+
/>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
</body>
|
|
41
|
+
`;
|
|
42
|
+
|
|
43
|
+
exports[`renders the OptionButtonSteps with steps=3 activeStep=1 1`] = `
|
|
44
|
+
<body>
|
|
45
|
+
<div>
|
|
46
|
+
<div
|
|
47
|
+
class="ds-option-btn__steps"
|
|
48
|
+
>
|
|
49
|
+
<div
|
|
50
|
+
class="ds-option-btn__step--active ds-option-btn__step"
|
|
51
|
+
/>
|
|
52
|
+
<div
|
|
53
|
+
class="ds-option-btn__step"
|
|
54
|
+
/>
|
|
55
|
+
<div
|
|
56
|
+
class="ds-option-btn__step"
|
|
57
|
+
/>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
</body>
|
|
61
|
+
`;
|
|
62
|
+
|
|
63
|
+
exports[`renders the OptionButtonSteps with steps=4 1`] = `
|
|
64
|
+
<body>
|
|
65
|
+
<div>
|
|
66
|
+
<div
|
|
67
|
+
class="ds-option-btn__steps"
|
|
68
|
+
>
|
|
69
|
+
<div
|
|
70
|
+
class="ds-option-btn__step"
|
|
71
|
+
/>
|
|
72
|
+
<div
|
|
73
|
+
class="ds-option-btn__step"
|
|
74
|
+
/>
|
|
75
|
+
<div
|
|
76
|
+
class="ds-option-btn__step"
|
|
77
|
+
/>
|
|
78
|
+
<div
|
|
79
|
+
class="ds-option-btn__step"
|
|
80
|
+
/>
|
|
81
|
+
</div>
|
|
82
|
+
</div>
|
|
83
|
+
</body>
|
|
84
|
+
`;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { render } from '@testing-library/react';
|
|
3
3
|
|
|
4
4
|
import OptionButtonSteps from '@digigov/react-experimental/OptionButtonSteps';
|
|
5
5
|
|
|
6
6
|
it('renders the OptionButtonSteps with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(render(<OptionButtonSteps>+</OptionButtonSteps>).baseElement).toMatchSnapshot();
|
|
8
8
|
});
|
|
9
9
|
it('renders the OptionButtonSteps with steps="3"', () => {
|
|
10
|
-
expect(
|
|
10
|
+
expect(render(<OptionButtonSteps steps={3}>+</OptionButtonSteps>).baseElement).toMatchSnapshot();
|
|
11
11
|
});
|
|
12
12
|
it('renders the OptionButtonSteps with steps=4', () => {
|
|
13
|
-
expect(
|
|
13
|
+
expect(render(<OptionButtonSteps steps={4}>+</OptionButtonSteps>).baseElement).toMatchSnapshot();
|
|
14
14
|
});
|
|
15
15
|
it('renders the OptionButtonSteps with activeStep=1', () => {
|
|
16
|
-
expect(
|
|
16
|
+
expect(render(<OptionButtonSteps activeStep={1}>+</OptionButtonSteps>).baseElement).toMatchSnapshot();
|
|
17
17
|
});
|
|
18
18
|
it('renders the OptionButtonSteps with steps=3 activeStep=1', () => {
|
|
19
|
-
expect(
|
|
19
|
+
expect(render(<OptionButtonSteps steps={3} activeStep={1}>+</OptionButtonSteps>).baseElement).toMatchSnapshot();
|
|
20
20
|
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {mount} from "enzyme";
|
|
3
|
-
import FloatingButton from "@digigov/react-experimental/FloatingButton";
|
|
4
|
-
it("renders the FloatingButton with no props", () => {
|
|
5
|
-
expect(mount(/* @__PURE__ */ React.createElement(FloatingButton, null, "+"))).toMatchSnapshot();
|
|
6
|
-
});
|
|
7
|
-
it('renders the FloatingButton with direction="right"', () => {
|
|
8
|
-
expect(mount(/* @__PURE__ */ React.createElement(FloatingButton, {
|
|
9
|
-
direction: "right"
|
|
10
|
-
}, "+"))).toMatchSnapshot();
|
|
11
|
-
});
|
|
12
|
-
it('renders the FloatingButton with direction="left"', () => {
|
|
13
|
-
expect(mount(/* @__PURE__ */ React.createElement(FloatingButton, {
|
|
14
|
-
direction: "left"
|
|
15
|
-
}, "+"))).toMatchSnapshot();
|
|
16
|
-
});
|
|
17
|
-
//# sourceMappingURL=index.test.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/FloatingButton/index.test.tsx"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { mount } from 'enzyme';\n\nimport FloatingButton from '@digigov/react-experimental/FloatingButton';\n\nit('renders the FloatingButton with no props', () => {\n expect(mount(<FloatingButton>+</FloatingButton>)).toMatchSnapshot();\n});\nit('renders the FloatingButton with direction=\"right\"', () => {\n expect(mount(<FloatingButton direction=\"right\">+</FloatingButton>)).toMatchSnapshot();\n});\nit('renders the FloatingButton with direction=\"left\"', () => {\n expect(mount(<FloatingButton direction=\"left\">+</FloatingButton>)).toMatchSnapshot();\n});"],
|
|
5
|
-
"mappings": "AAAA;AACA;AAEA;AAEA,GAAG,4CAA4C,MAAM;AACnD,SAAO,MAAM,oCAAC,gBAAD,MAAgB,OAAqB;AAAA;AAEpD,GAAG,sDAAsD,MAAM;AAC7D,SAAO,MAAM,oCAAC,gBAAD;AAAA,IAAgB,WAAU;AAAA,KAAQ,OAAqB;AAAA;AAEtE,GAAG,qDAAqD,MAAM;AAC5D,SAAO,MAAM,oCAAC,gBAAD;AAAA,IAAgB,WAAU;AAAA,KAAO,OAAqB;AAAA;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {mount} from "enzyme";
|
|
3
|
-
import OptionButtonBase from "@digigov/react-experimental/OptionButtonBase";
|
|
4
|
-
it("renders the OptionButtonBase with no props", () => {
|
|
5
|
-
expect(mount(/* @__PURE__ */ React.createElement(OptionButtonBase, null, "+"))).toMatchSnapshot();
|
|
6
|
-
});
|
|
7
|
-
it("renders the OptionButtonBase with selected=true", () => {
|
|
8
|
-
expect(mount(/* @__PURE__ */ React.createElement(OptionButtonBase, {
|
|
9
|
-
selected: true
|
|
10
|
-
}, "+"))).toMatchSnapshot();
|
|
11
|
-
});
|
|
12
|
-
it("renders the OptionButtonBase with selected=false", () => {
|
|
13
|
-
expect(mount(/* @__PURE__ */ React.createElement(OptionButtonBase, {
|
|
14
|
-
selected: false
|
|
15
|
-
}, "+"))).toMatchSnapshot();
|
|
16
|
-
});
|
|
17
|
-
//# sourceMappingURL=index.test.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/OptionButtonBase/index.test.tsx"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { mount } from 'enzyme';\n\nimport OptionButtonBase from '@digigov/react-experimental/OptionButtonBase';\n\nit('renders the OptionButtonBase with no props', () => {\n expect(mount(<OptionButtonBase>+</OptionButtonBase>)).toMatchSnapshot();\n});\nit('renders the OptionButtonBase with selected=true', () => {\n expect(mount(<OptionButtonBase selected={true}>+</OptionButtonBase>)).toMatchSnapshot();\n});\nit('renders the OptionButtonBase with selected=false', () => {\n expect(mount(<OptionButtonBase selected={false}>+</OptionButtonBase>)).toMatchSnapshot();\n});"],
|
|
5
|
-
"mappings": "AAAA;AACA;AAEA;AAEA,GAAG,8CAA8C,MAAM;AACrD,SAAO,MAAM,oCAAC,kBAAD,MAAkB,OAAuB;AAAA;AAExD,GAAG,oDAAoD,MAAM;AAC3D,SAAO,MAAM,oCAAC,kBAAD;AAAA,IAAkB,UAAU;AAAA,KAAM,OAAuB;AAAA;AAExE,GAAG,qDAAqD,MAAM;AAC5D,SAAO,MAAM,oCAAC,kBAAD;AAAA,IAAkB,UAAU;AAAA,KAAO,OAAuB;AAAA;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {mount} from "enzyme";
|
|
3
|
-
import OptionButtonSteps from "@digigov/react-experimental/OptionButtonSteps";
|
|
4
|
-
it("renders the OptionButtonSteps with no props", () => {
|
|
5
|
-
expect(mount(/* @__PURE__ */ React.createElement(OptionButtonSteps, null, "+"))).toMatchSnapshot();
|
|
6
|
-
});
|
|
7
|
-
it('renders the OptionButtonSteps with steps="3"', () => {
|
|
8
|
-
expect(mount(/* @__PURE__ */ React.createElement(OptionButtonSteps, {
|
|
9
|
-
steps: 3
|
|
10
|
-
}, "+"))).toMatchSnapshot();
|
|
11
|
-
});
|
|
12
|
-
it("renders the OptionButtonSteps with steps=4", () => {
|
|
13
|
-
expect(mount(/* @__PURE__ */ React.createElement(OptionButtonSteps, {
|
|
14
|
-
steps: 4
|
|
15
|
-
}, "+"))).toMatchSnapshot();
|
|
16
|
-
});
|
|
17
|
-
it("renders the OptionButtonSteps with activeStep=1", () => {
|
|
18
|
-
expect(mount(/* @__PURE__ */ React.createElement(OptionButtonSteps, {
|
|
19
|
-
activeStep: 1
|
|
20
|
-
}, "+"))).toMatchSnapshot();
|
|
21
|
-
});
|
|
22
|
-
it("renders the OptionButtonSteps with steps=3 activeStep=1", () => {
|
|
23
|
-
expect(mount(/* @__PURE__ */ React.createElement(OptionButtonSteps, {
|
|
24
|
-
steps: 3,
|
|
25
|
-
activeStep: 1
|
|
26
|
-
}, "+"))).toMatchSnapshot();
|
|
27
|
-
});
|
|
28
|
-
//# sourceMappingURL=index.test.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/OptionButtonSteps/index.test.tsx"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { mount } from 'enzyme';\n\nimport OptionButtonSteps from '@digigov/react-experimental/OptionButtonSteps';\n\nit('renders the OptionButtonSteps with no props', () => {\n expect(mount(<OptionButtonSteps>+</OptionButtonSteps>)).toMatchSnapshot();\n});\nit('renders the OptionButtonSteps with steps=\"3\"', () => {\n expect(mount(<OptionButtonSteps steps={3}>+</OptionButtonSteps>)).toMatchSnapshot();\n});\nit('renders the OptionButtonSteps with steps=4', () => {\n expect(mount(<OptionButtonSteps steps={4}>+</OptionButtonSteps>)).toMatchSnapshot();\n});\nit('renders the OptionButtonSteps with activeStep=1', () => {\n expect(mount(<OptionButtonSteps activeStep={1}>+</OptionButtonSteps>)).toMatchSnapshot();\n});\nit('renders the OptionButtonSteps with steps=3 activeStep=1', () => {\n expect(mount(<OptionButtonSteps steps={3} activeStep={1}>+</OptionButtonSteps>)).toMatchSnapshot();\n});"],
|
|
5
|
-
"mappings": "AAAA;AACA;AAEA;AAEA,GAAG,+CAA+C,MAAM;AACtD,SAAO,MAAM,oCAAC,mBAAD,MAAmB,OAAwB;AAAA;AAE1D,GAAG,gDAAgD,MAAM;AACvD,SAAO,MAAM,oCAAC,mBAAD;AAAA,IAAmB,OAAO;AAAA,KAAG,OAAwB;AAAA;AAEpE,GAAG,8CAA8C,MAAM;AACrD,SAAO,MAAM,oCAAC,mBAAD;AAAA,IAAmB,OAAO;AAAA,KAAG,OAAwB;AAAA;AAEpE,GAAG,mDAAmD,MAAM;AAC1D,SAAO,MAAM,oCAAC,mBAAD;AAAA,IAAmB,YAAY;AAAA,KAAG,OAAwB;AAAA;AAEzE,GAAG,2DAA2D,MAAM;AAClE,SAAO,MAAM,oCAAC,mBAAD;AAAA,IAAmB,OAAO;AAAA,IAAG,YAAY;AAAA,KAAG,OAAwB;AAAA;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", {value: true});
|
|
8
|
-
var __reExport = (target, module2, desc) => {
|
|
9
|
-
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
10
|
-
for (let key of __getOwnPropNames(module2))
|
|
11
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
12
|
-
__defProp(target, key, {get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable});
|
|
13
|
-
}
|
|
14
|
-
return target;
|
|
15
|
-
};
|
|
16
|
-
var __toModule = (module2) => {
|
|
17
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? {get: () => module2.default, enumerable: true} : {value: module2, enumerable: true})), module2);
|
|
18
|
-
};
|
|
19
|
-
var import_react = __toModule(require("react"));
|
|
20
|
-
var import_enzyme = __toModule(require("enzyme"));
|
|
21
|
-
var import_FloatingButton = __toModule(require("@digigov/react-experimental/FloatingButton"));
|
|
22
|
-
it("renders the FloatingButton with no props", () => {
|
|
23
|
-
expect((0, import_enzyme.mount)(/* @__PURE__ */ import_react.default.createElement(import_FloatingButton.default, null, "+"))).toMatchSnapshot();
|
|
24
|
-
});
|
|
25
|
-
it('renders the FloatingButton with direction="right"', () => {
|
|
26
|
-
expect((0, import_enzyme.mount)(/* @__PURE__ */ import_react.default.createElement(import_FloatingButton.default, {
|
|
27
|
-
direction: "right"
|
|
28
|
-
}, "+"))).toMatchSnapshot();
|
|
29
|
-
});
|
|
30
|
-
it('renders the FloatingButton with direction="left"', () => {
|
|
31
|
-
expect((0, import_enzyme.mount)(/* @__PURE__ */ import_react.default.createElement(import_FloatingButton.default, {
|
|
32
|
-
direction: "left"
|
|
33
|
-
}, "+"))).toMatchSnapshot();
|
|
34
|
-
});
|
|
35
|
-
//# sourceMappingURL=index.test.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/FloatingButton/index.test.tsx"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { mount } from 'enzyme';\n\nimport FloatingButton from '@digigov/react-experimental/FloatingButton';\n\nit('renders the FloatingButton with no props', () => {\n expect(mount(<FloatingButton>+</FloatingButton>)).toMatchSnapshot();\n});\nit('renders the FloatingButton with direction=\"right\"', () => {\n expect(mount(<FloatingButton direction=\"right\">+</FloatingButton>)).toMatchSnapshot();\n});\nit('renders the FloatingButton with direction=\"left\"', () => {\n expect(mount(<FloatingButton direction=\"left\">+</FloatingButton>)).toMatchSnapshot();\n});"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA,mBAAkB;AAClB,oBAAsB;AAEtB,4BAA2B;AAE3B,GAAG,4CAA4C,MAAM;AACnD,SAAO,yBAAM,mDAAC,+BAAD,MAAgB,OAAqB;AAAA;AAEpD,GAAG,sDAAsD,MAAM;AAC7D,SAAO,yBAAM,mDAAC,+BAAD;AAAA,IAAgB,WAAU;AAAA,KAAQ,OAAqB;AAAA;AAEtE,GAAG,qDAAqD,MAAM;AAC5D,SAAO,yBAAM,mDAAC,+BAAD;AAAA,IAAgB,WAAU;AAAA,KAAO,OAAqB;AAAA;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", {value: true});
|
|
8
|
-
var __reExport = (target, module2, desc) => {
|
|
9
|
-
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
10
|
-
for (let key of __getOwnPropNames(module2))
|
|
11
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
12
|
-
__defProp(target, key, {get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable});
|
|
13
|
-
}
|
|
14
|
-
return target;
|
|
15
|
-
};
|
|
16
|
-
var __toModule = (module2) => {
|
|
17
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? {get: () => module2.default, enumerable: true} : {value: module2, enumerable: true})), module2);
|
|
18
|
-
};
|
|
19
|
-
var import_react = __toModule(require("react"));
|
|
20
|
-
var import_enzyme = __toModule(require("enzyme"));
|
|
21
|
-
var import_OptionButtonBase = __toModule(require("@digigov/react-experimental/OptionButtonBase"));
|
|
22
|
-
it("renders the OptionButtonBase with no props", () => {
|
|
23
|
-
expect((0, import_enzyme.mount)(/* @__PURE__ */ import_react.default.createElement(import_OptionButtonBase.default, null, "+"))).toMatchSnapshot();
|
|
24
|
-
});
|
|
25
|
-
it("renders the OptionButtonBase with selected=true", () => {
|
|
26
|
-
expect((0, import_enzyme.mount)(/* @__PURE__ */ import_react.default.createElement(import_OptionButtonBase.default, {
|
|
27
|
-
selected: true
|
|
28
|
-
}, "+"))).toMatchSnapshot();
|
|
29
|
-
});
|
|
30
|
-
it("renders the OptionButtonBase with selected=false", () => {
|
|
31
|
-
expect((0, import_enzyme.mount)(/* @__PURE__ */ import_react.default.createElement(import_OptionButtonBase.default, {
|
|
32
|
-
selected: false
|
|
33
|
-
}, "+"))).toMatchSnapshot();
|
|
34
|
-
});
|
|
35
|
-
//# sourceMappingURL=index.test.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/OptionButtonBase/index.test.tsx"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { mount } from 'enzyme';\n\nimport OptionButtonBase from '@digigov/react-experimental/OptionButtonBase';\n\nit('renders the OptionButtonBase with no props', () => {\n expect(mount(<OptionButtonBase>+</OptionButtonBase>)).toMatchSnapshot();\n});\nit('renders the OptionButtonBase with selected=true', () => {\n expect(mount(<OptionButtonBase selected={true}>+</OptionButtonBase>)).toMatchSnapshot();\n});\nit('renders the OptionButtonBase with selected=false', () => {\n expect(mount(<OptionButtonBase selected={false}>+</OptionButtonBase>)).toMatchSnapshot();\n});"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA,mBAAkB;AAClB,oBAAsB;AAEtB,8BAA6B;AAE7B,GAAG,8CAA8C,MAAM;AACrD,SAAO,yBAAM,mDAAC,iCAAD,MAAkB,OAAuB;AAAA;AAExD,GAAG,oDAAoD,MAAM;AAC3D,SAAO,yBAAM,mDAAC,iCAAD;AAAA,IAAkB,UAAU;AAAA,KAAM,OAAuB;AAAA;AAExE,GAAG,qDAAqD,MAAM;AAC5D,SAAO,yBAAM,mDAAC,iCAAD;AAAA,IAAkB,UAAU;AAAA,KAAO,OAAuB;AAAA;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|