@digigov/ui 2.0.0-rc.7 → 2.0.2
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/CHANGELOG.md +133 -3
- package/app/App.js +7 -0
- package/app/BannerContainer/index.js +3 -3
- package/app/BottomInfo/index.js +5 -5
- package/app/CloseButton/index.js +4 -3
- package/app/FilterContainer/index.js +12 -11
- package/app/Footer/FooterLink.d.ts +7 -0
- package/app/Footer/FooterLink.js +13 -0
- package/app/Footer/index.d.ts +1 -1
- package/app/Footer/index.js +16 -15
- package/app/Header/HeaderContent.js +3 -0
- package/app/Header/HeaderLogo.d.ts +6 -2
- package/app/Header/HeaderLogo.js +13 -0
- package/app/Header/HeaderNavMenuContent.js +3 -0
- package/app/Header/HeaderSecondaryLogo.d.ts +6 -2
- package/app/Header/HeaderSecondaryLogo.js +13 -0
- package/app/Header/HeaderSection.js +4 -0
- package/app/Header/HeaderTitle.d.ts +6 -2
- package/app/Header/HeaderTitle.js +13 -0
- package/app/Header/index.d.ts +6 -6
- package/app/Header/index.js +10 -9
- package/app/Loader/index.d.ts +1 -1
- package/app/Loader/index.js +6 -5
- package/app/Loader/index.native.d.ts +3 -0
- package/app/Loader/index.native.js +93 -0
- package/app/Loader/index.web.d.ts +19 -0
- package/app/Loader/index.web.js +13 -0
- package/app/Masthead/index.js +6 -5
- package/app/Modal/auto.d.ts +5 -5
- package/app/Modal/auto.js +43 -0
- package/app/Modal/hooks.d.ts +2 -2
- package/app/Modal/hooks.js +54 -0
- package/app/Modal/index.d.ts +4 -10
- package/app/Modal/index.js +9 -58
- package/app/Modal/index.native.d.ts +7 -0
- package/app/Modal/index.native.js +10 -0
- package/app/Modal/index.web.d.ts +8 -0
- package/app/Modal/index.web.js +42 -0
- package/app/NotFound/index.js +10 -10
- package/app/OutdatedBrowserBanner/hooks/evaluateBrowserVersion.js +462 -0
- package/app/OutdatedBrowserBanner/hooks/useOutdatedBrowserCheck.js +46 -0
- package/app/OutdatedBrowserBanner/index.d.ts +2 -2
- package/app/OutdatedBrowserBanner/index.js +17 -21
- package/app/PageTitleContainer/index.js +6 -5
- package/app/Panel/index.js +6 -5
- package/app/PhaseBannerHeader/index.d.ts +2 -2
- package/app/PhaseBannerHeader/index.js +13 -17
- package/app/QrCodeScanner/index.d.ts +1 -0
- package/app/QrCodeScanner/index.js +28 -60
- package/app/QrCodeViewer/index.d.ts +1 -1
- package/app/QrCodeViewer/index.js +93 -136
- package/app/QrCodeViewer/qrcodegen.js +901 -0
- package/app/QrCodeViewer/qrcodegen.js.LICENSE.txt +5 -0
- package/app/QrCodeViewer/types.d.ts +7 -7
- package/app/QrCodeViewer/utils.d.ts +1 -1
- package/app/QrCodeViewer/utils.js +64 -0
- package/app/Skeleton/index.d.ts +3 -0
- package/app/Skeleton/index.js +4 -0
- package/app/ThemeOptions/index.d.ts +1 -1
- package/app/ThemeOptions/index.js +151 -233
- package/app/hooks/useFontSize.d.ts +1 -1
- package/app/hooks/useFontSize.js +23 -0
- package/app/hooks/useHighlightLinks.js +32 -0
- package/app/hooks/useLetterSpacing.d.ts +1 -1
- package/app/hooks/useLetterSpacing.js +19 -0
- package/app/hooks/useLineHeight.d.ts +1 -1
- package/app/hooks/useLineHeight.js +23 -0
- package/app/hooks/useNotificationArea.d.ts +1 -0
- package/app/hooks/useNotificationArea.js +81 -0
- package/app/hooks/useTheme.js +38 -0
- package/app/hooks/useVariantVars.js +23 -0
- package/app/index.d.ts +16 -16
- package/app/index.js +16 -16
- package/content/Accordion/auto.d.ts +8 -8
- package/content/Accordion/auto.js +53 -0
- package/content/Accordion/hooks.d.ts +1 -1
- package/content/Accordion/hooks.js +104 -0
- package/content/Accordion/index.d.ts +1 -2
- package/content/Accordion/index.js +10 -11
- package/content/Blockquote/index.js +4 -3
- package/content/Card/index.js +7 -6
- package/content/Chip/index.js +7 -6
- package/content/Details/index.js +6 -5
- package/content/FillableText/index.js +5 -4
- package/content/List/List.js +4 -0
- package/content/List/ListItem.js +3 -0
- package/content/List/index.d.ts +3 -3
- package/content/List/index.js +4 -3
- package/content/Markdown/index.d.ts +5 -2
- package/content/Markdown/index.js +11 -10
- package/content/Markdown/useMarkdownToHTML.js +91 -0
- package/content/SafeHTML/index.d.ts +3 -3
- package/content/SafeHTML/index.js +72 -86
- package/content/StepNav/auto.d.ts +8 -9
- package/content/StepNav/auto.js +52 -0
- package/content/StepNav/index.d.ts +2 -3
- package/content/StepNav/index.js +15 -16
- package/content/SummaryList/index.js +8 -7
- package/content/Table/TableFloatingScroll.d.ts +2 -2
- package/content/Table/TableFloatingScroll.js +58 -0
- package/content/Table/hooks/useSort.d.ts +1 -1
- package/content/Table/hooks/useSort.js +40 -0
- package/content/Table/index.d.ts +5 -5
- package/content/Table/index.js +87 -98
- package/content/TaskList/index.js +8 -7
- package/content/Timeline/index.js +8 -7
- package/content/index.d.ts +12 -12
- package/content/index.js +12 -12
- package/feedback/CopyToClipboard/index.d.ts +1 -1
- package/feedback/CopyToClipboard/index.js +33 -49
- package/feedback/ErrorSummary/index.js +4 -3
- package/feedback/NotificationBanner/index.js +15 -26
- package/feedback/PhaseBanner/index.js +7 -6
- package/feedback/WarningText/index.d.ts +1 -0
- package/feedback/WarningText/index.js +5 -3
- package/feedback/index.d.ts +5 -5
- package/feedback/index.js +5 -5
- package/form/AutoComplete/Status/index.d.ts +5 -5
- package/form/AutoComplete/Status/index.js +70 -133
- package/form/AutoComplete/index.d.ts +17 -18
- package/form/AutoComplete/index.js +492 -682
- package/form/AutoComplete/utils.js +278 -0
- package/form/Button/ButtonLink.d.ts +6 -2
- package/form/Button/ButtonLink.js +13 -0
- package/form/Button/CallToAction.d.ts +6 -2
- package/form/Button/CallToAction.js +13 -0
- package/form/Button/ThemeToggleButton.d.ts +2 -2
- package/form/Button/ThemeToggleButton.js +40 -0
- package/form/Button/index.d.ts +3 -3
- package/form/Button/index.js +10 -17
- package/form/Checkbox/index.d.ts +1 -0
- package/form/Checkbox/index.js +7 -5
- package/form/DateInputContainer/index.js +5 -4
- package/form/ErrorMessage/index.js +4 -3
- package/form/FieldContainer/index.js +6 -5
- package/form/FileUpload/index.js +5 -4
- package/form/Form/index.js +3 -3
- package/form/LabelContainer/index.js +5 -4
- package/form/RadioContainer/index.js +7 -6
- package/form/SearchContainer/index.js +6 -5
- package/form/SelectContainer/index.js +5 -4
- package/form/SingleCharacterInputs/index.js +5 -4
- package/form/TextArea/index.js +4 -3
- package/form/TextInput/index.js +4 -3
- package/form/index.d.ts +15 -15
- package/form/index.js +15 -15
- package/govgr/Footer/Copyright.d.ts +1 -0
- package/govgr/Footer/Copyright.js +29 -0
- package/govgr/Footer/HellenicRepublicLogo.js +3 -0
- package/govgr/Footer/LicenseCCSA.js +14 -0
- package/govgr/Footer/index.js +13 -19
- package/govgr/Footer/logo.js +2 -0
- package/govgr/Footer/logos/logo-el.js +2 -0
- package/govgr/Footer/logos/logo-en.js +2 -0
- package/govgr/GovGRLogo/index.d.ts +6 -2
- package/govgr/GovGRLogo/index.js +13 -3
- package/govgr/GovGRLogo/logo.js +2 -0
- package/govgr/images/govgr-logo-base64.js +2 -0
- package/govgr/images/govgr-logo-blue-base64.js +2 -0
- package/govgr/images/greek-government-base64.js +2 -0
- package/govgr/images/grnet-logo-base64.js +2 -0
- package/govgr/images/index.d.ts +5 -5
- package/govgr/images/index.js +5 -5
- package/govgr/images/minedu-logo-base64.js +2 -0
- package/govgr/images/minedu-logo-black-base64.js +2 -0
- package/govgr/index.d.ts +5 -5
- package/govgr/index.js +5 -5
- package/i18n/I18nText.d.ts +1 -1
- package/i18n/I18nText.js +51 -0
- package/i18n/index.js +37 -49
- package/i18n/locales/el.d.ts +55 -1
- package/i18n/locales/el.js +164 -0
- package/i18n/locales/en.d.ts +54 -0
- package/i18n/locales/en.js +158 -0
- package/icons/Icon/index.js +6 -5
- package/icons/IconBase/index.d.ts +3 -0
- package/icons/IconBase/index.js +4 -0
- package/icons/ImageLogo/index.js +4 -3
- package/icons/ImageLogoSet/index.js +4 -3
- package/icons/SvgIcon/index.d.ts +3 -0
- package/icons/SvgIcon/index.js +4 -0
- package/icons/index.d.ts +4 -2
- package/icons/index.js +5 -2
- package/index.d.ts +11 -11
- package/index.js +12 -12
- package/layouts/Admin/index.js +10 -9
- package/layouts/Basic/Aside/index.js +4 -3
- package/layouts/Basic/Bottom/index.js +4 -3
- package/layouts/Basic/Container/index.js +4 -3
- package/layouts/Basic/Main/index.js +4 -3
- package/layouts/Basic/Top/index.js +4 -3
- package/layouts/Basic/index.d.ts +5 -6
- package/layouts/Basic/index.js +9 -9
- package/layouts/Grid/index.js +3 -3
- package/layouts/Hidden/index.d.ts +2 -0
- package/layouts/Hidden/index.js +4 -1
- package/layouts/Screen/index.d.ts +3 -2
- package/layouts/Screen/index.js +14 -26
- package/layouts/Section/index.js +4 -3
- package/layouts/SectionBreak/index.js +4 -3
- package/layouts/Stack/index.d.ts +1 -0
- package/layouts/Stack/index.js +4 -2
- package/layouts/index.d.ts +11 -11
- package/layouts/index.js +12 -11
- package/lazy.d.ts +359 -342
- package/lazy.js +1015 -0
- package/navigation/BackLink/index.d.ts +6 -2
- package/navigation/BackLink/index.js +13 -3
- package/navigation/BackToTopLink/index.js +35 -52
- package/navigation/Breadcrumbs/BreadcrumbsListItem.d.ts +8 -0
- package/navigation/Breadcrumbs/BreadcrumbsListItem.js +14 -0
- package/navigation/Breadcrumbs/BreadcrumbsListItemLink.d.ts +7 -0
- package/navigation/Breadcrumbs/BreadcrumbsListItemLink.js +13 -0
- package/navigation/Breadcrumbs/auto.d.ts +14 -0
- package/navigation/Breadcrumbs/auto.js +29 -0
- package/navigation/Breadcrumbs/hooks.d.ts +11 -0
- package/navigation/Breadcrumbs/hooks.js +42 -0
- package/navigation/Breadcrumbs/index.d.ts +4 -1
- package/navigation/Breadcrumbs/index.js +9 -5
- package/navigation/Breadcrumbs/slug.d.ts +1 -0
- package/navigation/Breadcrumbs/slug.js +94 -0
- package/navigation/Breadcrumbs/utils.d.ts +1 -0
- package/navigation/Breadcrumbs/utils.js +30 -0
- package/navigation/Drawer/auto.d.ts +7 -7
- package/navigation/Drawer/auto.js +51 -0
- package/navigation/Drawer/hooks.js +41 -0
- package/navigation/Drawer/index.d.ts +0 -1
- package/navigation/Drawer/index.js +5 -5
- package/navigation/Dropdown/index.d.ts +1 -1
- package/navigation/Dropdown/index.js +63 -92
- package/navigation/Link/index.d.ts +2 -3
- package/navigation/Link/index.js +24 -27
- package/navigation/NavList/Nav.js +4 -0
- package/navigation/NavList/NavList.js +4 -0
- package/navigation/NavList/NavListAuto/index.d.ts +1 -1
- package/navigation/NavList/NavListAuto/index.js +26 -44
- package/navigation/NavList/NavListItemAction.d.ts +27 -0
- package/navigation/NavList/NavListItemAction.js +21 -0
- package/navigation/NavList/NavListItemLink.d.ts +7 -0
- package/navigation/NavList/NavListItemLink.js +13 -0
- package/navigation/NavList/NavMenuContentList.js +35 -0
- package/navigation/NavList/hooks/useNavList.d.ts +1 -1
- package/navigation/NavList/hooks/useNavList.js +30 -0
- package/navigation/NavList/hooks/useTogglableNav.js +191 -0
- package/navigation/NavList/index.d.ts +7 -6
- package/navigation/NavList/index.js +19 -17
- package/navigation/NavList/types.d.ts +1 -1
- package/navigation/NavList/types.js +1 -0
- package/navigation/Pagination/Pagination.d.ts +39 -0
- package/navigation/Pagination/Pagination.js +47 -0
- package/navigation/Pagination/auto.d.ts +11 -8
- package/navigation/Pagination/auto.js +61 -0
- package/navigation/Pagination/hooks.d.ts +1 -1
- package/navigation/Pagination/hooks.js +81 -0
- package/navigation/Pagination/index.d.ts +4 -41
- package/navigation/Pagination/index.js +9 -72
- package/navigation/SkipLink/index.js +3 -3
- package/navigation/Tabs/auto.d.ts +6 -5
- package/navigation/Tabs/auto.js +43 -0
- package/navigation/Tabs/hooks.d.ts +1 -1
- package/navigation/Tabs/hooks.js +72 -0
- package/navigation/Tabs/index.d.ts +1 -2
- package/navigation/Tabs/index.js +9 -9
- package/navigation/index.d.ts +9 -9
- package/navigation/index.js +9 -9
- package/package.json +18 -15
- package/registry.d.ts +93 -203
- package/registry.js +392 -0
- package/src/app/BannerContainer/BannerContainer.stories.js +1 -1
- package/src/app/BannerContainer/__stories__/CookiesBanner.tsx +2 -22
- package/src/app/BannerContainer/index.test.tsx +24 -0
- package/src/app/FilterContainer/FilterContainer.stories.jsx +71 -0
- package/src/app/Footer/Footer.stories.jsx +182 -0
- package/src/app/Footer/FooterLink.tsx +20 -0
- package/src/app/Footer/__stories__/Default.tsx +1 -1
- package/src/app/Footer/__stories__/DefaultCopyright.tsx +1 -1
- package/src/app/Footer/__stories__/FooterAllInclusive.tsx +1 -1
- package/src/app/Footer/__stories__/FooterWithLink.tsx +1 -1
- package/src/app/Footer/__stories__/FooterWithLogo.tsx +1 -1
- package/src/app/Footer/__stories__/FooterWithSecondaryNavigation.tsx +1 -1
- package/src/app/Footer/__stories__/FooterWithText.tsx +10 -7
- package/src/app/Footer/__stories__/YearCopyright.tsx +1 -1
- package/src/app/Footer/doc.mdx +47 -0
- package/src/app/Footer/index.test.tsx +52 -0
- package/src/app/Footer/index.tsx +1 -1
- package/src/app/Footer/interaction.test.tsx +25 -0
- package/src/app/Header/Header.stories.jsx +105 -0
- package/src/app/Header/HeaderLogo.tsx +18 -2
- package/src/app/Header/HeaderSecondaryLogo.tsx +20 -2
- package/src/app/Header/HeaderTitle.tsx +20 -2
- package/src/app/Header/__snapshots__/index.spec.tsx.snap +43 -37
- package/src/app/Header/__stories__/Default.tsx +1 -1
- package/src/app/Header/__stories__/WithHeaderNavigation.tsx +1 -1
- package/src/app/Header/__stories__/WithNavigation.tsx +1 -1
- package/src/app/Header/__stories__/WithServiceName.tsx +1 -1
- package/src/app/Header/__stories__/WithServiceNameAndLogo.tsx +3 -3
- package/src/app/Header/doc.mdx +32 -0
- package/src/app/Header/index.spec.tsx +13 -9
- package/src/app/Header/index.test.tsx +40 -0
- package/src/app/Header/interaction.test.tsx +44 -0
- package/src/app/Loader/Loader.stories.jsx +54 -0
- package/src/app/Loader/__stories__/AccessibilityLoader.tsx +27 -0
- package/src/app/Loader/__stories__/Default.tsx +1 -1
- package/src/app/Loader/__stories__/FullPageLoader.tsx +20 -0
- package/src/app/Loader/__stories__/Secondary.tsx +11 -0
- package/src/app/Loader/__stories__/Sizes.tsx +18 -0
- package/src/app/Loader/doc.mdx +39 -0
- package/src/app/Loader/index.native.tsx +98 -0
- package/src/app/Loader/index.test.tsx +40 -0
- package/src/app/Loader/index.tsx +1 -1
- package/src/app/Loader/index.web.tsx +39 -0
- package/src/app/Masthead/Masthead.stories.jsx +66 -0
- package/src/app/Masthead/__stories__/Default.tsx +2 -2
- package/src/app/Masthead/__stories__/Secondary.tsx +26 -0
- package/src/app/Masthead/__stories__/WithElements.tsx +2 -6
- package/src/app/Masthead/__stories__/WithLogo.tsx +2 -6
- package/src/app/Masthead/doc.mdx +35 -0
- package/src/app/Masthead/index.test.tsx +36 -0
- package/src/app/Masthead/interaction.test.tsx +19 -0
- package/src/app/Modal/Modal.stories.jsx +64 -0
- package/src/app/Modal/__stories__/AlertDialog.tsx +2 -2
- package/src/app/Modal/__stories__/Auto.tsx +4 -6
- package/src/app/Modal/__stories__/Default.tsx +2 -2
- package/src/app/Modal/__stories__/Dense.tsx +2 -2
- package/src/app/Modal/__stories__/WithHooks.tsx +2 -2
- package/src/app/Modal/__stories__/WithoutModalGaps.tsx +52 -0
- package/src/app/Modal/auto.tsx +12 -16
- package/src/app/Modal/doc.mdx +43 -0
- package/src/app/Modal/hooks.ts +8 -8
- package/src/app/Modal/index.native.tsx +17 -0
- package/src/app/Modal/index.test.tsx +44 -0
- package/src/app/Modal/index.tsx +2 -58
- package/src/app/Modal/index.web.tsx +54 -0
- package/src/app/Modal/interaction.test.tsx +54 -0
- package/src/app/NotFound/NotFound.stories.js +4 -1
- package/src/app/NotFound/__stories__/Default.tsx +1 -1
- package/src/app/NotFound/doc.mdx +16 -0
- package/src/app/NotFound/index.test.tsx +24 -0
- package/src/app/OutdatedBrowserBanner/hooks/evaluateBrowserVersion.ts +2 -2
- package/src/app/OutdatedBrowserBanner/index.tsx +1 -1
- package/src/app/Panel/Panel.stories.js +4 -1
- package/src/app/Panel/__stories__/Default.tsx +1 -1
- package/src/app/Panel/doc.mdx +23 -0
- package/src/app/Panel/index.test.tsx +24 -0
- package/src/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +4 -1
- package/src/app/PhaseBannerHeader/__stories__/Default.tsx +1 -1
- package/src/app/PhaseBannerHeader/doc.mdx +18 -0
- package/src/app/PhaseBannerHeader/index.test.tsx +24 -0
- package/src/app/PhaseBannerHeader/index.tsx +1 -1
- package/src/app/QrCodeScanner/QrCodeScanner.stories.js +1 -1
- package/src/app/QrCodeScanner/__snapshots__/index.spec.tsx.snap +6 -10
- package/src/app/QrCodeScanner/__stories__/Default.tsx +2 -2
- package/src/app/QrCodeScanner/index.spec.tsx +3 -3
- package/src/app/QrCodeScanner/index.tsx +10 -4
- package/src/app/QrCodeViewer/QRCode.stories.js +5 -2
- package/src/app/QrCodeViewer/__stories__/Custom.tsx +1 -1
- package/src/app/QrCodeViewer/__stories__/Default.tsx +1 -1
- package/src/app/QrCodeViewer/doc.mdx +22 -0
- package/src/app/QrCodeViewer/index.test.tsx +28 -0
- package/src/app/QrCodeViewer/index.tsx +4 -4
- package/src/app/QrCodeViewer/qrcodegen.ts +3 -3
- package/src/app/QrCodeViewer/types.ts +10 -5
- package/src/app/QrCodeViewer/utils.ts +1 -1
- package/src/app/Skeleton/Skeleton.stories.js +51 -0
- package/src/app/Skeleton/__stories__/Button.tsx +6 -0
- package/src/app/Skeleton/__stories__/Circular.tsx +8 -0
- package/src/app/Skeleton/__stories__/Default.tsx +6 -0
- package/src/app/Skeleton/__stories__/NoAnimation.tsx +6 -0
- package/src/app/Skeleton/__stories__/Rectangular.tsx +8 -0
- package/src/app/Skeleton/__stories__/SpecificWidthAndHeight.tsx +8 -0
- package/src/app/Skeleton/__stories__/TextSizes.tsx +14 -0
- package/src/app/Skeleton/__stories__/UnderTypography.tsx +17 -0
- package/src/app/Skeleton/__stories__/WithChildren.tsx +11 -0
- package/src/app/Skeleton/doc.mdx +42 -0
- package/src/app/Skeleton/index.test.tsx +56 -0
- package/src/app/Skeleton/index.tsx +4 -0
- package/src/app/ThemeOptions/index.tsx +6 -15
- package/src/app/hooks/useHighlightLinks.ts +3 -4
- package/src/app/hooks/useNotificationArea.tsx +105 -0
- package/src/app/hooks/useTheme.ts +4 -3
- package/src/content/Accordion/Accordion.stories.jsx +99 -0
- package/src/content/Accordion/__snapshots__/index.spec.tsx.snap +48 -147
- package/src/content/Accordion/__stories__/Auto.tsx +6 -28
- package/src/content/Accordion/__stories__/Default.tsx +1 -22
- package/src/content/Accordion/__stories__/SummaryColorSecondary.tsx +89 -0
- package/src/content/Accordion/__stories__/UsingArrowIcons.tsx +98 -0
- package/src/content/Accordion/__stories__/WithHints.tsx +1 -25
- package/src/content/Accordion/__stories__/WithHook.tsx +1 -25
- package/src/content/Accordion/auto.tsx +8 -7
- package/src/content/Accordion/doc.mdx +33 -0
- package/src/content/Accordion/hooks.ts +5 -5
- package/src/content/Accordion/index.spec.tsx +3 -3
- package/src/content/Accordion/index.test.tsx +44 -0
- package/src/content/Accordion/index.tsx +0 -2
- package/src/content/Accordion/interaction.test.tsx +19 -0
- package/src/content/Blockquote/Blockquote.stories.js +25 -2
- package/src/content/Blockquote/__snapshots__/index.spec.tsx.snap +6 -9
- package/src/content/Blockquote/__stories__/Default.tsx +1 -1
- package/src/content/Blockquote/__stories__/Dense.tsx +1 -1
- package/src/content/Blockquote/doc.mdx +24 -0
- package/src/content/Blockquote/index.spec.tsx +2 -2
- package/src/content/Blockquote/index.test.tsx +28 -0
- package/src/content/Card/Card.stories.jsx +120 -0
- package/src/content/Card/__stories__/Default.tsx +1 -1
- package/src/content/Card/__stories__/Dense.tsx +1 -1
- package/src/content/Card/__stories__/WithClickableContent.tsx +1 -1
- package/src/content/Card/__stories__/WithClickableLink.tsx +1 -1
- package/src/content/Card/__stories__/WithDarkBorder.tsx +1 -1
- package/src/content/Card/__stories__/WithDarkTopBorder.tsx +1 -1
- package/src/content/Card/__stories__/WithDivider.tsx +1 -1
- package/src/content/Card/__stories__/WithGrayBorder.tsx +1 -1
- package/src/content/Card/__stories__/WithGrayTopBorder.tsx +1 -1
- package/src/content/Card/__stories__/WithGroupButton.tsx +1 -1
- package/src/content/Card/__stories__/WithLink.tsx +1 -1
- package/src/content/Card/doc.mdx +71 -0
- package/src/content/Card/index.test.tsx +64 -0
- package/src/content/Card/interaction.test.tsx +19 -0
- package/src/content/Chip/Chip.stories.jsx +45 -0
- package/src/content/Chip/__stories__/ClickableChip.tsx +1 -1
- package/src/content/Chip/__stories__/ClickableDeletableChip.tsx +1 -1
- package/src/content/Chip/__stories__/Default.tsx +1 -1
- package/src/content/Chip/__stories__/DeletableChip.tsx +1 -1
- package/src/content/Chip/__stories__/GroupOfChips.tsx +1 -1
- package/src/content/Chip/doc.mdx +34 -0
- package/src/content/Chip/index.test.tsx +40 -0
- package/src/content/Details/Details.stories.js +4 -1
- package/src/content/Details/__snapshots__/index.spec.tsx.snap +32 -69
- package/src/content/Details/__stories__/Default.tsx +1 -1
- package/src/content/Details/doc.mdx +23 -0
- package/src/content/Details/index.spec.tsx +5 -5
- package/src/content/Details/index.test.tsx +24 -0
- package/src/content/Details/interaction.test.tsx +19 -0
- package/src/content/List/List.stories.jsx +63 -0
- package/src/content/List/__snapshots__/index.spec.tsx.snap +14 -4
- package/src/content/List/__stories__/BulletList.tsx +1 -1
- package/src/content/List/__stories__/Default.tsx +4 -10
- package/src/content/List/__stories__/HorizontalList.tsx +1 -1
- package/src/content/List/__stories__/NestedBulletList.tsx +1 -1
- package/src/content/List/__stories__/NumberedList.tsx +1 -1
- package/src/content/List/__stories__/WithExtraSpace.tsx +1 -1
- package/src/content/List/doc.mdx +28 -0
- package/src/content/List/index.test.tsx +44 -0
- package/src/content/Markdown/Markdown.stories.js +8 -0
- package/src/content/Markdown/__stories__/Default.tsx +42 -0
- package/src/content/Markdown/index.test.tsx +24 -0
- package/src/content/Markdown/index.tsx +9 -3
- package/src/content/SafeHTML/SafeHTML.stories.js +8 -0
- package/src/content/SafeHTML/__stories__/Default.tsx +42 -0
- package/src/content/SafeHTML/index.test.tsx +24 -0
- package/src/content/SafeHTML/index.tsx +39 -11
- package/src/content/StepNav/StepNav.stories.js +8 -5
- package/src/content/StepNav/__stories__/Auto.tsx +4 -2
- package/src/content/StepNav/__stories__/Default.tsx +1 -1
- package/src/content/StepNav/__stories__/Dense.tsx +1 -1
- package/src/content/StepNav/__stories__/WithHints.tsx +1 -1
- package/src/content/StepNav/__stories__/WithHook.tsx +1 -1
- package/src/content/StepNav/auto.tsx +7 -5
- package/src/content/StepNav/doc.mdx +39 -0
- package/src/content/StepNav/index.test.tsx +40 -0
- package/src/content/StepNav/index.tsx +0 -1
- package/src/content/StepNav/interaction.test.tsx +30 -0
- package/src/content/SummaryList/SummaryList.stories.js +26 -9
- package/src/content/SummaryList/__snapshots__/index.spec.tsx.snap +37 -89
- package/src/content/SummaryList/__stories__/Default.tsx +1 -1
- package/src/content/SummaryList/__stories__/RowVariations.tsx +1 -1
- package/src/content/SummaryList/__stories__/SummaryListExample.tsx +82 -0
- package/src/content/SummaryList/__stories__/WithActions.tsx +1 -1
- package/src/content/SummaryList/__stories__/WithError.tsx +48 -0
- package/src/content/SummaryList/__stories__/WithKeyAndAction.tsx +1 -1
- package/src/content/SummaryList/__stories__/WithNoLastBorder.tsx +46 -0
- package/src/content/SummaryList/__stories__/WithoutActions.tsx +1 -1
- package/src/content/SummaryList/__stories__/WithoutBorders.tsx +1 -1
- package/src/content/SummaryList/doc.mdx +39 -0
- package/src/content/SummaryList/index.spec.tsx +3 -3
- package/src/content/SummaryList/index.test.tsx +56 -0
- package/src/content/SummaryList/interaction.test.tsx +24 -0
- package/src/content/Table/Table.stories.jsx +236 -0
- package/src/content/Table/TableFloatingScroll.tsx +8 -4
- package/src/content/Table/__stories__/DarkVariant.tsx +1 -1
- package/src/content/Table/__stories__/DarkVariantWithVerticalHeaders.tsx +1 -1
- package/src/content/Table/__stories__/Default.tsx +1 -1
- package/src/content/Table/__stories__/DefinedWidth.tsx +1 -1
- package/src/content/Table/__stories__/Dense.tsx +129 -0
- package/src/content/Table/__stories__/Full.tsx +1 -1
- package/src/content/Table/__stories__/MultipleProps.tsx +1 -1
- package/src/content/Table/__stories__/NoData.tsx +1 -1
- package/src/content/Table/__stories__/NumericDataType.tsx +1 -1
- package/src/content/Table/__stories__/RowColors.tsx +1 -1
- package/src/content/Table/__stories__/Stacked.tsx +1 -1
- package/src/content/Table/__stories__/TableCaptions.tsx +1 -1
- package/src/content/Table/__stories__/UsingHighlights.tsx +82 -0
- package/src/content/Table/__stories__/VerticalBorders.tsx +1 -1
- package/src/content/Table/__stories__/VerticalHeaders.tsx +1 -1
- package/src/content/Table/__stories__/WithFloatingScroll.tsx +1 -1
- package/src/content/Table/__stories__/WithLoader.tsx +4 -4
- package/src/content/Table/__stories__/WithSortFilters.tsx +1 -1
- package/src/content/Table/__stories__/ZebraProp.tsx +1 -1
- package/src/content/Table/doc.mdx +81 -0
- package/src/content/Table/hooks/useSort.tsx +3 -3
- package/src/content/Table/index.test.tsx +99 -0
- package/src/content/Table/index.tsx +6 -9
- package/src/content/Table/interaction.test.tsx +44 -0
- package/src/content/TaskList/TaskList.stories.js +5 -2
- package/src/content/TaskList/__stories__/Default.tsx +1 -1
- package/src/content/TaskList/__stories__/Dense.tsx +1 -1
- package/src/content/TaskList/doc.mdx +28 -0
- package/src/content/TaskList/index.test.tsx +28 -0
- package/src/content/Timeline/Timeline.stories.js +5 -2
- package/src/content/Timeline/__stories__/Default.tsx +1 -1
- package/src/content/Timeline/__stories__/Dense.tsx +1 -1
- package/src/content/Timeline/doc.mdx +31 -0
- package/src/content/Timeline/index.test.tsx +28 -0
- package/src/doc.mdx +49 -0
- package/src/feedback/CopyToClipboard/CopyToClipboard.stories.jsx +73 -0
- package/src/feedback/CopyToClipboard/__stories__/Banner.tsx +1 -1
- package/src/feedback/CopyToClipboard/__stories__/Default.tsx +2 -2
- package/src/feedback/CopyToClipboard/__stories__/Dense.tsx +1 -1
- package/src/feedback/CopyToClipboard/doc.mdx +24 -0
- package/src/feedback/CopyToClipboard/index.test.tsx +32 -0
- package/src/feedback/CopyToClipboard/index.tsx +1 -1
- package/src/feedback/CopyToClipboard/interaction.test.tsx +51 -0
- package/src/feedback/ErrorSummary/ErrorSummary.stories.jsx +70 -0
- package/src/feedback/ErrorSummary/__snapshots__/index.spec.tsx.snap +14 -4
- package/src/feedback/ErrorSummary/__stories__/Default.tsx +1 -1
- package/src/feedback/ErrorSummary/__stories__/Dense.tsx +1 -1
- package/src/feedback/ErrorSummary/__stories__/ErrorGroupLinkedToInput.tsx +47 -0
- package/src/feedback/ErrorSummary/__stories__/LinkedToCheckbox.tsx +1 -1
- package/src/feedback/ErrorSummary/__stories__/LinkedToField.tsx +1 -1
- package/src/feedback/ErrorSummary/__stories__/LinkedToInput.tsx +2 -3
- package/src/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.tsx +1 -1
- package/src/feedback/ErrorSummary/doc.mdx +38 -0
- package/src/feedback/ErrorSummary/index.test.tsx +48 -0
- package/src/feedback/ErrorSummary/interaction.test.tsx +21 -0
- package/src/feedback/NotificationBanner/NotificationBanner.stories.js +43 -4
- package/src/feedback/NotificationBanner/__snapshots__/index.spec.tsx.snap +25 -15
- package/src/feedback/NotificationBanner/__stories__/Default.tsx +1 -1
- package/src/feedback/NotificationBanner/__stories__/Dense.tsx +1 -1
- package/src/feedback/NotificationBanner/__stories__/Expanded.tsx +27 -0
- package/src/feedback/NotificationBanner/__stories__/Success.tsx +1 -1
- package/src/feedback/NotificationBanner/doc.mdx +45 -0
- package/src/feedback/NotificationBanner/index.test.tsx +36 -0
- package/src/feedback/NotificationBanner/interaction.test.tsx +39 -0
- package/src/feedback/PhaseBanner/PhaseBanner.stories.jsx +50 -0
- package/src/feedback/PhaseBanner/__stories__/Default.tsx +1 -1
- package/src/feedback/PhaseBanner/__stories__/Underlined.tsx +1 -1
- package/src/feedback/PhaseBanner/doc.mdx +27 -0
- package/src/feedback/PhaseBanner/index.test.tsx +28 -0
- package/src/feedback/PhaseBanner/interaction.test.tsx +19 -0
- package/src/feedback/WarningText/WarningText.stories.js +34 -3
- package/src/feedback/WarningText/__snapshots__/index.spec.tsx.snap +14 -4
- package/src/feedback/WarningText/__stories__/AssistiveText.tsx +1 -1
- package/src/feedback/WarningText/__stories__/Default.tsx +1 -1
- package/src/feedback/WarningText/__stories__/Dense.tsx +1 -1
- package/src/feedback/WarningText/doc.mdx +27 -0
- package/src/feedback/WarningText/index.test.tsx +32 -0
- package/src/feedback/WarningText/index.tsx +1 -0
- package/src/form/AutoComplete/AutoComplete.stories.jsx +109 -0
- package/src/form/AutoComplete/Status/index.tsx +5 -5
- package/src/form/AutoComplete/__stories__/Default.tsx +1 -1
- package/src/form/AutoComplete/__stories__/Multiple.tsx +7 -2
- package/src/form/AutoComplete/__stories__/MultipleShowingTwoSelected.tsx +8 -2
- package/src/form/AutoComplete/__stories__/MultipleWithDefaultValues.tsx +8 -2
- package/src/form/AutoComplete/__stories__/MultipleWithMinLength.tsx +3 -3
- package/src/form/AutoComplete/__stories__/WithAutoSelect.tsx +2 -18
- package/src/form/AutoComplete/__stories__/WithCustomValue.tsx +28 -0
- package/src/form/AutoComplete/__stories__/WithDefaultValue.tsx +2 -7
- package/src/form/AutoComplete/__stories__/WithHint.tsx +16 -0
- package/src/form/AutoComplete/__stories__/WithMinLength.tsx +1 -1
- package/src/form/AutoComplete/__stories__/WithPlaceHolder.tsx +1 -1
- package/src/form/AutoComplete/__stories__/WithShowAllValues.tsx +2 -6
- package/src/form/AutoComplete/doc.mdx +51 -0
- package/src/form/AutoComplete/index.test.tsx +68 -0
- package/src/form/AutoComplete/index.tsx +111 -65
- package/src/form/AutoComplete/interaction.test.tsx +30 -0
- package/src/form/AutoComplete/utils.ts +2 -2
- package/src/form/Button/Button.stories.js +57 -14
- package/src/form/Button/ButtonLink.tsx +18 -2
- package/src/form/Button/CallToAction.tsx +20 -2
- package/src/form/Button/__snapshots__/index.spec.tsx.snap +6 -10
- package/src/form/Button/__stories__/Back.tsx +1 -1
- package/src/form/Button/__stories__/ButtonLinkButton.tsx +1 -1
- package/src/form/Button/__stories__/CallToActionButton.tsx +1 -1
- package/src/form/Button/__stories__/Dense.tsx +1 -1
- package/src/form/Button/__stories__/Disabled.tsx +1 -1
- package/src/form/Button/__stories__/GroupingButtons.tsx +1 -1
- package/src/form/Button/__stories__/GroupingButtonsAndLinks.tsx +1 -1
- package/src/form/Button/__stories__/Primary.tsx +24 -2
- package/src/form/Button/__stories__/Secondary.tsx +1 -1
- package/src/form/Button/__stories__/ThemeToggle.tsx +1 -1
- package/src/form/Button/__stories__/Warning.tsx +1 -1
- package/src/form/Button/__stories__/WithVariantLink.tsx +1 -1
- package/src/form/Button/doc.mdx +107 -0
- package/src/form/Button/index.spec.tsx +2 -2
- package/src/form/Button/index.test.tsx +68 -0
- package/src/form/Button/interaction.test.tsx +94 -0
- package/src/form/Checkbox/Checkbox.stories.jsx +153 -0
- package/src/form/Checkbox/__stories__/ConditionalReveal.tsx +1 -1
- package/src/form/Checkbox/__stories__/Default.tsx +1 -1
- package/src/form/Checkbox/__stories__/Dense.tsx +1 -1
- package/src/form/Checkbox/__stories__/Inline.tsx +1 -1
- package/src/form/Checkbox/__stories__/InlineWithDivider.tsx +1 -1
- package/src/form/Checkbox/__stories__/MultipleQuestions.tsx +1 -1
- package/src/form/Checkbox/__stories__/NoneAnswer.tsx +1 -1
- package/src/form/Checkbox/__stories__/NoneAnswerWithError.tsx +1 -1
- package/src/form/Checkbox/__stories__/WithErrorMessage.tsx +1 -1
- package/src/form/Checkbox/__stories__/WithHint.tsx +1 -1
- package/src/form/Checkbox/doc.mdx +57 -0
- package/src/form/Checkbox/index.test.tsx +60 -0
- package/src/form/Checkbox/index.tsx +1 -0
- package/src/form/Checkbox/interaction.test.tsx +48 -0
- package/src/form/DateInputContainer/DateInputContainer.stories.jsx +118 -0
- package/src/form/DateInputContainer/__stories__/Default.tsx +1 -1
- package/src/form/DateInputContainer/__stories__/Dense.tsx +1 -1
- package/src/form/DateInputContainer/__stories__/MultipleQuestions.tsx +2 -2
- package/src/form/DateInputContainer/__stories__/WithErrorMessage.tsx +1 -1
- package/src/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.tsx +1 -1
- package/src/form/DateInputContainer/doc.mdx +32 -0
- package/src/form/DateInputContainer/index.test.tsx +40 -0
- package/src/form/DateInputContainer/interaction.test.tsx +46 -0
- package/src/form/ErrorMessage/ErrorMessage.stories.jsx +45 -0
- package/src/form/ErrorMessage/__stories__/DateInputError.tsx +1 -1
- package/src/form/ErrorMessage/__stories__/Default.tsx +1 -1
- package/src/form/ErrorMessage/__stories__/ErrorMessageOnly.tsx +1 -1
- package/src/form/ErrorMessage/doc.mdx +19 -0
- package/src/form/ErrorMessage/index.test.tsx +32 -0
- package/src/form/FileUpload/FileUpload.stories.js +6 -2
- package/src/form/FileUpload/__stories__/Default.tsx +1 -1
- package/src/form/FileUpload/__stories__/WithErrorMessage.tsx +1 -1
- package/src/form/FileUpload/__stories__/WithVariantLink.tsx +24 -0
- package/src/form/FileUpload/doc.mdx +22 -0
- package/src/form/FileUpload/index.test.tsx +32 -0
- package/src/form/RadioContainer/RadioContainer.stories.jsx +160 -0
- package/src/form/RadioContainer/__stories__/ConditionalReveal.tsx +1 -1
- package/src/form/RadioContainer/__stories__/Default.tsx +1 -1
- package/src/form/RadioContainer/__stories__/Dense.tsx +1 -1
- package/src/form/RadioContainer/__stories__/Inline.tsx +1 -1
- package/src/form/RadioContainer/__stories__/InlineWithDivider.tsx +1 -1
- package/src/form/RadioContainer/__stories__/MultipleQuestions.tsx +1 -1
- package/src/form/RadioContainer/__stories__/NoneAnswer.tsx +1 -1
- package/src/form/RadioContainer/__stories__/WithErrorMessage.tsx +1 -1
- package/src/form/RadioContainer/__stories__/WithHints.tsx +1 -1
- package/src/form/RadioContainer/__stories__/WithMediumLegend.tsx +1 -1
- package/src/form/RadioContainer/doc.mdx +58 -0
- package/src/form/RadioContainer/index.test.tsx +60 -0
- package/src/form/RadioContainer/interaction.test.tsx +40 -0
- package/src/form/SearchContainer/SearchContainer.stories.js +12 -0
- package/src/form/SearchContainer/__stories__/Default.tsx +15 -0
- package/src/form/SearchContainer/doc.mdx +16 -0
- package/src/form/SearchContainer/index.test.tsx +24 -0
- package/src/form/SelectContainer/SelectContainer.stories.jsx +110 -0
- package/src/form/SelectContainer/__stories__/Default.tsx +1 -1
- package/src/form/SelectContainer/__stories__/Dense.tsx +1 -1
- package/src/form/SelectContainer/__stories__/DisabledInput.tsx +1 -1
- package/src/form/SelectContainer/__stories__/WithHint.tsx +1 -1
- package/src/form/SelectContainer/doc.mdx +34 -0
- package/src/form/SelectContainer/index.test.tsx +36 -0
- package/src/form/SelectContainer/interaction.test.tsx +22 -0
- package/src/form/SingleCharacterInputs/SingleCharacterInput.stories.jsx +133 -0
- package/src/form/SingleCharacterInputs/__stories__/Default.tsx +1 -1
- package/src/form/SingleCharacterInputs/__stories__/WithDefaultError.tsx +1 -1
- package/src/form/SingleCharacterInputs/__stories__/WithErrorMessageInvalidCode.tsx +1 -1
- package/src/form/SingleCharacterInputs/__stories__/WithErrorMessageLessDigit.tsx +1 -1
- package/src/form/SingleCharacterInputs/doc.mdx +22 -0
- package/src/form/SingleCharacterInputs/index.test.tsx +36 -0
- package/src/form/TextArea/TextArea.stories.jsx +120 -0
- package/src/form/TextArea/__stories__/Default.tsx +2 -3
- package/src/form/TextArea/__stories__/Dense.tsx +1 -1
- package/src/form/TextArea/__stories__/DisabledInput.tsx +2 -3
- package/src/form/TextArea/__stories__/LimitedCharacters.tsx +2 -3
- package/src/form/TextArea/__stories__/MultipleQuestions.tsx +1 -1
- package/src/form/TextArea/__stories__/WithDeclaredRows.tsx +2 -3
- package/src/form/TextArea/__stories__/WithErrorMessage.tsx +2 -3
- package/src/form/TextArea/__stories__/WithHint.tsx +2 -3
- package/src/form/TextArea/doc.mdx +48 -0
- package/src/form/TextArea/index.test.tsx +52 -0
- package/src/form/TextArea/interaction.test.tsx +53 -0
- package/src/form/TextInput/TextInput.stories.jsx +128 -0
- package/src/form/TextInput/__stories__/AskingForNumbers.tsx +2 -3
- package/src/form/TextInput/__stories__/Default.tsx +2 -3
- package/src/form/TextInput/__stories__/Dense.tsx +1 -1
- package/src/form/TextInput/__stories__/DisabledInput.tsx +2 -3
- package/src/form/TextInput/__stories__/DisabledInputWithValue.tsx +5 -6
- package/src/form/TextInput/__stories__/FixedWidths.tsx +2 -3
- package/src/form/TextInput/__stories__/FluidWidths.tsx +2 -3
- package/src/form/TextInput/__stories__/MultipleQuestions.tsx +1 -1
- package/src/form/TextInput/__stories__/WithErrorMessage.tsx +2 -3
- package/src/form/TextInput/__stories__/WithHint.tsx +2 -3
- package/src/form/TextInput/doc.mdx +58 -0
- package/src/form/TextInput/index.test.tsx +60 -0
- package/src/form/TextInput/interaction.test.tsx +40 -0
- package/src/govgr/Footer/Copyright.tsx +1 -0
- package/src/govgr/GovGRLogo/index.tsx +17 -2
- package/src/i18n/index.tsx +17 -4
- package/src/i18n/locales/el.ts +96 -12
- package/src/i18n/locales/en.ts +68 -8
- package/src/icons/IconBase/index.tsx +4 -0
- package/src/icons/SvgIcon/index.tsx +4 -0
- package/src/icons/index.tsx +26 -1
- package/src/layouts/Basic/Basic.stories.js +7 -3
- package/src/layouts/Basic/Bottom/__stories__/Default.tsx +14 -10
- package/src/layouts/Basic/Bottom/doc.mdx +18 -0
- package/src/layouts/Basic/Container/__stories__/Default.tsx +16 -9
- package/src/layouts/Basic/Container/doc.mdx +18 -0
- package/src/layouts/Basic/Main/__stories__/Default.tsx +16 -9
- package/src/layouts/Basic/Main/doc.mdx +19 -0
- package/src/layouts/Basic/Top/__stories__/Default.tsx +14 -7
- package/src/layouts/Basic/Top/doc.mdx +19 -0
- package/src/layouts/Basic/__snapshots__/index.spec.tsx.snap +30 -102
- package/src/layouts/Basic/__stories__/Default.tsx +1 -1
- package/src/layouts/Basic/__stories__/MultipleRowsLayout.tsx +2 -1
- package/src/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.tsx +1 -1
- package/src/layouts/Basic/__stories__/WithBasicLayout.tsx +20 -0
- package/src/layouts/Basic/doc.mdx +29 -0
- package/src/layouts/Basic/index.spec.tsx +3 -3
- package/src/layouts/Basic/index.test.tsx +36 -0
- package/src/layouts/Basic/index.tsx +0 -1
- package/src/layouts/Grid/Grid.stories.jsx +143 -0
- package/src/layouts/Grid/__stories__/Default.tsx +1 -1
- package/src/layouts/Grid/__stories__/Inline.tsx +1 -1
- package/src/layouts/Grid/__stories__/ResponsiveSpacing.tsx +1 -1
- package/src/layouts/Grid/doc.mdx +26 -0
- package/src/layouts/Grid/index.test.tsx +32 -0
- package/src/layouts/Hidden/Hidden.stories.jsx +62 -0
- package/src/layouts/Hidden/index.tsx +3 -0
- package/src/layouts/Screen/Screen.stories.js +4 -4
- package/src/layouts/Screen/__stories__/Default.tsx +5 -5
- package/src/layouts/Screen/__stories__/ScreenDown.tsx +2 -2
- package/src/layouts/Screen/__stories__/ScreenUp.tsx +2 -2
- package/src/layouts/Screen/__stories__/SpecificScreenSize.tsx +2 -2
- package/src/layouts/Screen/index.test.tsx +36 -0
- package/src/layouts/Screen/index.tsx +43 -18
- package/src/layouts/Stack/Stack.stories.jsx +104 -0
- package/src/layouts/Stack/__stories__/AlignItems.tsx +2 -2
- package/src/layouts/Stack/__stories__/Default.tsx +2 -2
- package/src/layouts/Stack/__stories__/JustifyContent.tsx +2 -2
- package/src/layouts/Stack/__stories__/NoWrap.tsx +2 -2
- package/src/layouts/Stack/__stories__/Row.tsx +2 -2
- package/src/layouts/Stack/__stories__/Spacing.tsx +2 -2
- package/src/layouts/Stack/doc.mdx +38 -0
- package/src/layouts/Stack/index.test.tsx +44 -0
- package/src/layouts/Stack/index.tsx +1 -0
- package/src/lazy.ts +340 -0
- package/src/navigation/BackLink/BackLink.stories.js +4 -1
- package/src/navigation/BackLink/__stories__/Default.tsx +1 -1
- package/src/navigation/BackLink/doc.mdx +19 -0
- package/src/navigation/BackLink/index.test.tsx +24 -0
- package/src/navigation/BackLink/index.tsx +19 -2
- package/src/navigation/BackLink/interaction.test.tsx +19 -0
- package/src/navigation/BackToTopLink/BackToTopLink.stories.js +6 -2
- package/src/navigation/BackToTopLink/__stories__/Default.tsx +1 -1
- package/src/navigation/BackToTopLink/__stories__/InMain.tsx +1 -1
- package/src/navigation/BackToTopLink/doc.mdx +22 -0
- package/src/navigation/BackToTopLink/index.test.tsx +28 -0
- package/src/navigation/BackToTopLink/index.tsx +1 -2
- package/src/navigation/Breadcrumbs/Breadcrumbs.stories.js +8 -1
- package/src/navigation/Breadcrumbs/BreadcrumbsListItem.tsx +36 -0
- package/src/navigation/Breadcrumbs/BreadcrumbsListItemLink.tsx +22 -0
- package/src/navigation/Breadcrumbs/__stories__/Auto.tsx +201 -0
- package/src/navigation/Breadcrumbs/__stories__/Default.tsx +3 -3
- package/src/navigation/Breadcrumbs/__stories__/WithHook.tsx +219 -0
- package/src/navigation/Breadcrumbs/__stories__/WithProvider.tsx +28 -0
- package/src/navigation/Breadcrumbs/__stories__/WithoutCurrentPage.tsx +20 -0
- package/src/navigation/Breadcrumbs/auto.tsx +71 -0
- package/src/navigation/Breadcrumbs/doc.mdx +36 -0
- package/src/navigation/Breadcrumbs/hooks.ts +66 -0
- package/src/navigation/Breadcrumbs/index.test.tsx +40 -0
- package/src/navigation/Breadcrumbs/index.tsx +6 -1
- package/src/navigation/Breadcrumbs/interaction.test.tsx +56 -0
- package/src/navigation/Breadcrumbs/slug.ts +141 -0
- package/src/navigation/Breadcrumbs/utils.ts +39 -0
- package/src/navigation/Drawer/Drawer.stories.js +6 -3
- package/src/navigation/Drawer/__stories__/Auto.tsx +5 -3
- package/src/navigation/Drawer/__stories__/Default.tsx +4 -5
- package/src/navigation/Drawer/__stories__/WithHook.tsx +1 -1
- package/src/navigation/Drawer/auto.tsx +12 -10
- package/src/navigation/Drawer/doc.mdx +18 -0
- package/src/navigation/Drawer/hooks.ts +6 -6
- package/src/navigation/Drawer/index.test.tsx +32 -0
- package/src/navigation/Drawer/index.tsx +0 -1
- package/src/navigation/Dropdown/Dropdown.stories.jsx +118 -0
- package/src/navigation/Dropdown/__stories__/AlignRight.tsx +2 -3
- package/src/navigation/Dropdown/__stories__/ContentPosition.tsx +1 -1
- package/src/navigation/Dropdown/__stories__/Default.tsx +2 -3
- package/src/navigation/Dropdown/__stories__/Dense.tsx +2 -3
- package/src/navigation/Dropdown/__stories__/Disabled.tsx +2 -3
- package/src/navigation/Dropdown/__stories__/PlacementTop.tsx +2 -3
- package/src/navigation/Dropdown/__stories__/ScrollableContent.tsx +2 -2
- package/src/navigation/Dropdown/__stories__/Secondary.tsx +1 -1
- package/src/navigation/Dropdown/__stories__/VariantLink.tsx +2 -3
- package/src/navigation/Dropdown/__stories__/Warning.tsx +1 -1
- package/src/navigation/Dropdown/__stories__/WithIcons.tsx +1 -1
- package/src/navigation/Dropdown/doc.mdx +56 -0
- package/src/navigation/Dropdown/index.test.tsx +64 -0
- package/src/navigation/Dropdown/interaction.test.tsx +86 -0
- package/src/navigation/Link/Link.stories.js +10 -6
- package/src/navigation/Link/__snapshots__/index.spec.tsx.snap +16 -30
- package/src/navigation/Link/__stories__/DarkBackground.tsx +2 -2
- package/src/navigation/Link/__stories__/DarkBackgroundNoUnderline.tsx +2 -2
- package/src/navigation/Link/__stories__/Default.tsx +1 -1
- package/src/navigation/Link/__stories__/ExternalLink.tsx +1 -1
- package/src/navigation/Link/__stories__/NoUnderline.tsx +1 -1
- package/src/navigation/Link/__stories__/OpensInNewTab.tsx +1 -1
- package/src/navigation/Link/__stories__/WithProvider.tsx +20 -0
- package/src/navigation/Link/doc.mdx +38 -0
- package/src/navigation/Link/index.spec.tsx +4 -4
- package/src/navigation/Link/index.test.tsx +48 -0
- package/src/navigation/Link/index.tsx +14 -10
- package/src/navigation/Link/interaction.test.tsx +55 -0
- package/src/navigation/NavList/NavList.stories.js +12 -8
- package/src/navigation/NavList/NavListAuto/index.tsx +10 -8
- package/src/navigation/NavList/NavListItemAction.tsx +69 -0
- package/src/navigation/NavList/NavListItemLink.tsx +22 -0
- package/src/navigation/NavList/__snapshots__/index.spec.tsx.snap +14 -4
- package/src/navigation/NavList/__stories__/Default.tsx +12 -12
- package/src/navigation/NavList/__stories__/HorizontalWithDrawer.tsx +25 -25
- package/src/navigation/NavList/__stories__/HorizontalWithoutDrawer.tsx +25 -25
- package/src/navigation/NavList/__stories__/NavListWithoutNav.tsx +12 -12
- package/src/navigation/NavList/__stories__/UsingHeaderButton.tsx +1 -1
- package/src/navigation/NavList/__stories__/UsingNavListAuto.tsx +28 -29
- package/src/navigation/NavList/__stories__/Vertical.tsx +17 -13
- package/src/navigation/NavList/__stories__/VerticalWithoutDrawer.tsx +25 -25
- package/src/navigation/NavList/__stories__/WithBadge.tsx +55 -0
- package/src/navigation/NavList/doc.mdx +59 -0
- package/src/navigation/NavList/hooks/useTogglableNav.tsx +3 -2
- package/src/navigation/NavList/index.test.tsx +56 -0
- package/src/navigation/NavList/index.tsx +4 -2
- package/src/navigation/NavList/interaction.test.tsx +57 -0
- package/src/navigation/NavList/types.tsx +1 -1
- package/src/navigation/Pagination/Pagination.stories.js +11 -9
- package/src/navigation/Pagination/Pagination.tsx +121 -0
- package/src/navigation/Pagination/__stories__/Auto.tsx +31 -31
- package/src/navigation/Pagination/__stories__/Default.tsx +1 -1
- package/src/navigation/Pagination/__stories__/PaginationSmall.tsx +1 -1
- package/src/navigation/Pagination/__stories__/PaginationWithSmallFont.tsx +2 -3
- package/src/navigation/Pagination/__stories__/WithHook.tsx +1 -1
- package/src/navigation/Pagination/__stories__/WithInactiveValues.tsx +2 -2
- package/src/navigation/Pagination/__stories__/WithResultsPerPage.tsx +2 -3
- package/src/navigation/Pagination/auto.tsx +9 -6
- package/src/navigation/Pagination/doc.mdx +41 -0
- package/src/navigation/Pagination/hooks.ts +3 -3
- package/src/navigation/Pagination/index.test.tsx +48 -0
- package/src/navigation/Pagination/index.tsx +3 -123
- package/src/navigation/Pagination/interaction.test.tsx +21 -0
- package/src/navigation/SkipLink/SkipLink.stories.js +5 -1
- package/src/navigation/SkipLink/__stories__/Default.tsx +1 -1
- package/src/navigation/SkipLink/doc.mdx +19 -0
- package/src/navigation/SkipLink/index.test.tsx +24 -0
- package/src/navigation/Tabs/Tabs.stories.js +7 -4
- package/src/navigation/Tabs/__stories__/Auto.tsx +3 -5
- package/src/navigation/Tabs/__stories__/Default.tsx +111 -42
- package/src/navigation/Tabs/__stories__/Dense.tsx +2 -4
- package/src/navigation/Tabs/__stories__/UsingAccordion.tsx +277 -0
- package/src/navigation/Tabs/auto.tsx +10 -6
- package/src/navigation/Tabs/doc.mdx +47 -0
- package/src/navigation/Tabs/hooks.ts +11 -9
- package/src/navigation/Tabs/index.test.tsx +36 -0
- package/src/navigation/Tabs/index.tsx +0 -1
- package/src/navigation/Tabs/interaction.test.tsx +23 -0
- package/src/registry.ts +401 -0
- package/src/stories-registry.ts +763 -0
- package/src/typography/Code/index.tsx +1 -1
- package/src/typography/CodeBlock/CodeBlock.stories.js +37 -0
- package/src/typography/CodeBlock/__stories__/Default.tsx +23 -0
- package/src/typography/CodeBlock/__stories__/Highlighted.tsx +27 -0
- package/src/typography/CodeBlock/__stories__/WithCopyToClipboard.tsx +27 -0
- package/src/typography/CodeBlock/__stories__/WithPhaseBanner.tsx +32 -0
- package/src/typography/CodeBlock/doc.mdx +30 -0
- package/src/typography/CodeBlock/index.test.tsx +36 -0
- package/src/typography/CodeBlock/index.tsx +125 -3
- package/src/typography/Heading/Heading.stories.js +16 -1
- package/src/typography/Heading/__stories__/Default.tsx +1 -1
- package/src/typography/Heading/doc.mdx +16 -0
- package/src/typography/Heading/index.test.tsx +24 -0
- package/src/typography/HeadingCaption/HeadingCaption.stories.js +14 -2
- package/src/typography/HeadingCaption/__stories__/Default.tsx +1 -1
- package/src/typography/HeadingCaption/__stories__/NestedToTitle.tsx +1 -1
- package/src/typography/HeadingCaption/doc.mdx +20 -0
- package/src/typography/HeadingCaption/index.test.tsx +28 -0
- package/src/typography/Hint/Hint.stories.js +16 -2
- package/src/typography/Hint/__stories__/Default.tsx +1 -1
- package/src/typography/Hint/__stories__/FontSizes.tsx +5 -5
- package/src/typography/Hint/doc.mdx +20 -0
- package/src/typography/Hint/index.test.tsx +28 -0
- package/src/typography/NormalText/NormalText.stories.js +17 -4
- package/src/typography/NormalText/__stories__/Default.tsx +1 -1
- package/src/typography/NormalText/__stories__/FontSizes.tsx +1 -1
- package/src/typography/NormalText/__stories__/FontWeight.tsx +1 -1
- package/src/typography/NormalText/__stories__/Variants.tsx +1 -1
- package/src/typography/NormalText/doc.mdx +30 -0
- package/src/typography/NormalText/index.test.tsx +36 -0
- package/src/typography/Paragraph/Paragraph.stories.js +31 -5
- package/src/typography/Paragraph/__stories__/Default.tsx +1 -1
- package/src/typography/Paragraph/__stories__/FontSizes.tsx +1 -1
- package/src/typography/Paragraph/__stories__/FontWeight.tsx +1 -1
- package/src/typography/Paragraph/__stories__/LeadVariant.tsx +3 -1
- package/src/typography/Paragraph/__stories__/SmallVariant.tsx +3 -1
- package/src/typography/Paragraph/doc.mdx +34 -0
- package/src/typography/Paragraph/index.test.tsx +40 -0
- package/src/typography/Typography/doc.mdx +14 -0
- package/src/typography/Typography/index.tsx +1 -1
- package/src/utils/Base/doc.mdx +66 -0
- package/src/utils/Base/index.tsx +1 -0
- package/src/utils/TestVariant/index.tsx +25 -0
- package/src/utils/VisuallyHidden/VisuallyHidden.stories.js +4 -1
- package/src/utils/VisuallyHidden/__stories__/Default.tsx +1 -1
- package/src/utils/VisuallyHidden/doc.mdx +21 -0
- package/src/utils/VisuallyHidden/index.test.tsx +24 -0
- package/src/utils/hooks/useDebounce.ts +5 -5
- package/src/utils/hooks/useLatest.ts +1 -1
- package/src/utils/hooks/useScreen.native.ts +35 -0
- package/src/utils/hooks/useScreen.ts +2 -45
- package/src/utils/hooks/useScreen.web.ts +56 -0
- package/src/utils/hooks/useSearch.ts +2 -3
- package/src/utils/index.ts +0 -1
- package/stories-registry.js +754 -0
- package/typography/Code/index.js +4 -3
- package/typography/CodeBlock/index.d.ts +14 -2
- package/typography/CodeBlock/index.js +73 -3
- package/typography/Heading/index.js +4 -3
- package/typography/HeadingCaption/index.js +4 -3
- package/typography/Hint/index.js +4 -3
- package/typography/NormalText/index.js +4 -3
- package/typography/Paragraph/index.js +4 -3
- package/typography/Typography/index.js +4 -3
- package/typography/index.d.ts +6 -6
- package/typography/index.js +6 -6
- package/utils/Base/index.d.ts +1 -0
- package/utils/Base/index.js +5 -3
- package/utils/TestVariant/index.d.ts +7 -0
- package/utils/TestVariant/index.js +16 -0
- package/utils/Typography/index.js +3 -3
- package/utils/VisuallyHidden/index.js +4 -3
- package/utils/hooks/useDebounce.d.ts +2 -2
- package/utils/hooks/useDebounce.js +38 -0
- package/utils/hooks/useKeypress.d.ts +1 -1
- package/utils/hooks/useKeypress.js +19 -0
- package/utils/hooks/useLatest.d.ts +1 -1
- package/utils/hooks/useLatest.js +10 -0
- package/utils/hooks/useScreen.d.ts +2 -7
- package/utils/hooks/useScreen.js +3 -0
- package/utils/hooks/useScreen.native.d.ts +8 -0
- package/utils/hooks/useScreen.native.js +30 -0
- package/utils/hooks/useScreen.web.d.ts +8 -0
- package/utils/hooks/useScreen.web.js +46 -0
- package/utils/hooks/useSearch.d.ts +2 -2
- package/utils/hooks/useSearch.js +22 -0
- package/utils/hooks/useTogglableTab.js +72 -0
- package/utils/index.d.ts +2 -3
- package/utils/index.js +2 -3
- package/utils/withDeprecation.js +35 -0
- package/api/APIErrors/index.js +0 -77
- package/api/APIErrors/package.json +0 -6
- package/api/APIErrors.d.ts +0 -22
- package/api/APIProvider/index.js +0 -25
- package/api/APIProvider/package.json +0 -6
- package/api/APIProvider.d.ts +0 -15
- package/api/fetchAPI/index.js +0 -42
- package/api/fetchAPI/package.json +0 -6
- package/api/fetchAPI.d.ts +0 -18
- package/api/index.d.ts +0 -9
- package/api/index.js +0 -13
- package/api/index.spec/index.js +0 -468
- package/api/index.spec/package.json +0 -6
- package/api/index.spec.d.ts +0 -1
- package/api/introduction.md +0 -6
- package/api/package.json +0 -6
- package/api/useResource/index.js +0 -109
- package/api/useResource/package.json +0 -6
- package/api/useResource.d.ts +0 -11
- package/api/useResourceAction/index.js +0 -121
- package/api/useResourceAction/package.json +0 -6
- package/api/useResourceAction.d.ts +0 -2
- package/api/useResourceQuery/index.js +0 -184
- package/api/useResourceQuery/package.json +0 -6
- package/api/useResourceQuery.d.ts +0 -18
- package/api/utils/index.js +0 -190
- package/api/utils/package.json +0 -6
- package/api/utils.d.ts +0 -6
- package/app/App/index.js +0 -12
- package/app/App/package.json +0 -6
- package/app/BannerContainer/BannerContainer.stories/index.js +0 -9
- package/app/BannerContainer/BannerContainer.stories/package.json +0 -6
- package/app/BannerContainer/BannerContainer.stories.d.ts +0 -10
- package/app/BannerContainer/__stories__/CookiesBanner/index.js +0 -16
- package/app/BannerContainer/__stories__/CookiesBanner/package.json +0 -6
- package/app/BannerContainer/__stories__/CookiesBanner.d.ts +0 -3
- package/app/BannerContainer/package.json +0 -6
- package/app/BottomInfo/package.json +0 -6
- package/app/CloseButton/package.json +0 -6
- package/app/FilterContainer/package.json +0 -6
- package/app/Footer/Footer.stories/index.js +0 -17
- package/app/Footer/Footer.stories/package.json +0 -6
- package/app/Footer/Footer.stories.d.ts +0 -18
- package/app/Footer/Footer.stories.playwright.json +0 -27
- package/app/Footer/__stories__/Default/index.js +0 -7
- package/app/Footer/__stories__/Default/package.json +0 -6
- package/app/Footer/__stories__/Default.d.ts +0 -3
- package/app/Footer/__stories__/DefaultCopyright/index.js +0 -17
- package/app/Footer/__stories__/DefaultCopyright/package.json +0 -6
- package/app/Footer/__stories__/DefaultCopyright.d.ts +0 -3
- package/app/Footer/__stories__/FooterAllInclusive/index.js +0 -66
- package/app/Footer/__stories__/FooterAllInclusive/package.json +0 -6
- package/app/Footer/__stories__/FooterAllInclusive.d.ts +0 -3
- package/app/Footer/__stories__/FooterWithLink/index.js +0 -28
- package/app/Footer/__stories__/FooterWithLink/package.json +0 -6
- package/app/Footer/__stories__/FooterWithLink.d.ts +0 -3
- package/app/Footer/__stories__/FooterWithLogo/index.js +0 -26
- package/app/Footer/__stories__/FooterWithLogo/package.json +0 -6
- package/app/Footer/__stories__/FooterWithLogo.d.ts +0 -3
- package/app/Footer/__stories__/FooterWithSecondaryNavigation/index.js +0 -48
- package/app/Footer/__stories__/FooterWithSecondaryNavigation/package.json +0 -6
- package/app/Footer/__stories__/FooterWithSecondaryNavigation.d.ts +0 -3
- package/app/Footer/__stories__/FooterWithText/index.js +0 -29
- package/app/Footer/__stories__/FooterWithText/package.json +0 -6
- package/app/Footer/__stories__/FooterWithText.d.ts +0 -3
- package/app/Footer/__stories__/YearCopyright/index.js +0 -21
- package/app/Footer/__stories__/YearCopyright/package.json +0 -6
- package/app/Footer/__stories__/YearCopyright.d.ts +0 -3
- package/app/Footer/index.mdx +0 -63
- package/app/Footer/package.json +0 -6
- package/app/Header/Header.stories/index.js +0 -18
- package/app/Header/Header.stories/package.json +0 -6
- package/app/Header/Header.stories.d.ts +0 -18
- package/app/Header/Header.stories.playwright.json +0 -49
- package/app/Header/HeaderContent/index.js +0 -3
- package/app/Header/HeaderContent/package.json +0 -6
- package/app/Header/HeaderLogo/index.js +0 -3
- package/app/Header/HeaderLogo/package.json +0 -6
- package/app/Header/HeaderNavMenuContent/index.js +0 -3
- package/app/Header/HeaderNavMenuContent/package.json +0 -6
- package/app/Header/HeaderSecondaryLogo/index.js +0 -3
- package/app/Header/HeaderSecondaryLogo/package.json +0 -6
- package/app/Header/HeaderSection/index.js +0 -3
- package/app/Header/HeaderSection/package.json +0 -6
- package/app/Header/HeaderTitle/index.js +0 -3
- package/app/Header/HeaderTitle/package.json +0 -6
- package/app/Header/__snapshots__/index.spec.tsx.snap +0 -55
- package/app/Header/__stories__/Default/index.js +0 -12
- package/app/Header/__stories__/Default/package.json +0 -6
- package/app/Header/__stories__/Default.d.ts +0 -3
- package/app/Header/__stories__/WithHeaderNavigation/index.js +0 -35
- package/app/Header/__stories__/WithHeaderNavigation/package.json +0 -6
- package/app/Header/__stories__/WithHeaderNavigation.d.ts +0 -3
- package/app/Header/__stories__/WithNavigation/index.js +0 -53
- package/app/Header/__stories__/WithNavigation/package.json +0 -6
- package/app/Header/__stories__/WithNavigation.d.ts +0 -3
- package/app/Header/__stories__/WithServiceName/index.js +0 -13
- package/app/Header/__stories__/WithServiceName/package.json +0 -6
- package/app/Header/__stories__/WithServiceName.d.ts +0 -3
- package/app/Header/__stories__/WithServiceNameAndLogo/index.js +0 -18
- package/app/Header/__stories__/WithServiceNameAndLogo/package.json +0 -6
- package/app/Header/__stories__/WithServiceNameAndLogo.d.ts +0 -3
- package/app/Header/index.mdx +0 -49
- package/app/Header/index.spec/index.js +0 -25
- package/app/Header/index.spec/package.json +0 -6
- package/app/Header/index.spec.d.ts +0 -1
- package/app/Header/package.json +0 -6
- package/app/Loader/Loader.stories/index.js +0 -7
- package/app/Loader/Loader.stories/package.json +0 -6
- package/app/Loader/Loader.stories.d.ts +0 -8
- package/app/Loader/__stories__/Default/index.js +0 -7
- package/app/Loader/__stories__/Default/package.json +0 -6
- package/app/Loader/__stories__/Default.d.ts +0 -3
- package/app/Loader/package.json +0 -6
- package/app/Masthead/Masthead.stories/index.js +0 -12
- package/app/Masthead/Masthead.stories/package.json +0 -6
- package/app/Masthead/Masthead.stories.d.ts +0 -13
- package/app/Masthead/Masthead.stories.playwright.json +0 -21
- package/app/Masthead/__stories__/Default/index.js +0 -13
- package/app/Masthead/__stories__/Default/package.json +0 -6
- package/app/Masthead/__stories__/Default.d.ts +0 -3
- package/app/Masthead/__stories__/WithElements/index.js +0 -19
- package/app/Masthead/__stories__/WithElements/package.json +0 -6
- package/app/Masthead/__stories__/WithElements.d.ts +0 -3
- package/app/Masthead/__stories__/WithLogo/index.js +0 -17
- package/app/Masthead/__stories__/WithLogo/package.json +0 -6
- package/app/Masthead/__stories__/WithLogo.d.ts +0 -3
- package/app/Masthead/index.mdx +0 -23
- package/app/Masthead/package.json +0 -6
- package/app/Modal/Modal.stories/index.js +0 -13
- package/app/Modal/Modal.stories/package.json +0 -6
- package/app/Modal/Modal.stories.d.ts +0 -14
- package/app/Modal/Modal.stories.playwright.json +0 -53
- package/app/Modal/__stories__/AlertDialog/index.js +0 -39
- package/app/Modal/__stories__/AlertDialog/package.json +0 -6
- package/app/Modal/__stories__/AlertDialog.d.ts +0 -3
- package/app/Modal/__stories__/Auto/index.js +0 -45
- package/app/Modal/__stories__/Auto/package.json +0 -6
- package/app/Modal/__stories__/Auto.d.ts +0 -3
- package/app/Modal/__stories__/Default/index.js +0 -37
- package/app/Modal/__stories__/Default/package.json +0 -6
- package/app/Modal/__stories__/Default.d.ts +0 -3
- package/app/Modal/__stories__/Dense/index.js +0 -38
- package/app/Modal/__stories__/Dense/package.json +0 -6
- package/app/Modal/__stories__/Dense.d.ts +0 -3
- package/app/Modal/__stories__/WithHooks/index.js +0 -29
- package/app/Modal/__stories__/WithHooks/package.json +0 -6
- package/app/Modal/__stories__/WithHooks.d.ts +0 -3
- package/app/Modal/auto/index.js +0 -61
- package/app/Modal/auto/package.json +0 -6
- package/app/Modal/hooks/index.js +0 -60
- package/app/Modal/hooks/package.json +0 -6
- package/app/Modal/index.mdx +0 -40
- package/app/Modal/package.json +0 -6
- package/app/NotFound/NotFound.stories/index.js +0 -7
- package/app/NotFound/NotFound.stories/package.json +0 -6
- package/app/NotFound/NotFound.stories.d.ts +0 -8
- package/app/NotFound/__stories__/Default/index.js +0 -7
- package/app/NotFound/__stories__/Default/package.json +0 -6
- package/app/NotFound/__stories__/Default.d.ts +0 -3
- package/app/NotFound/index.mdx +0 -18
- package/app/NotFound/package.json +0 -6
- package/app/OutdatedBrowserBanner/hooks/evaluateBrowserVersion/index.js +0 -221
- package/app/OutdatedBrowserBanner/hooks/evaluateBrowserVersion/package.json +0 -6
- package/app/OutdatedBrowserBanner/hooks/useOutdatedBrowserCheck/index.js +0 -45
- package/app/OutdatedBrowserBanner/hooks/useOutdatedBrowserCheck/package.json +0 -6
- package/app/OutdatedBrowserBanner/package.json +0 -6
- package/app/PageTitleContainer/package.json +0 -6
- package/app/Panel/Panel.stories/index.js +0 -9
- package/app/Panel/Panel.stories/package.json +0 -6
- package/app/Panel/Panel.stories.d.ts +0 -10
- package/app/Panel/__stories__/Default/index.js +0 -7
- package/app/Panel/__stories__/Default/package.json +0 -6
- package/app/Panel/__stories__/Default.d.ts +0 -3
- package/app/Panel/index.mdx +0 -21
- package/app/Panel/package.json +0 -6
- package/app/PhaseBannerHeader/PhaseBannerHeader.stories/index.js +0 -7
- package/app/PhaseBannerHeader/PhaseBannerHeader.stories/package.json +0 -6
- package/app/PhaseBannerHeader/PhaseBannerHeader.stories.d.ts +0 -8
- package/app/PhaseBannerHeader/__stories__/Default/index.js +0 -10
- package/app/PhaseBannerHeader/__stories__/Default/package.json +0 -6
- package/app/PhaseBannerHeader/__stories__/Default.d.ts +0 -3
- package/app/PhaseBannerHeader/index.mdx +0 -20
- package/app/PhaseBannerHeader/package.json +0 -6
- package/app/QrCodeScanner/QrCodeScanner.stories/index.js +0 -7
- package/app/QrCodeScanner/QrCodeScanner.stories/package.json +0 -6
- package/app/QrCodeScanner/QrCodeScanner.stories.d.ts +0 -8
- package/app/QrCodeScanner/__snapshots__/index.spec.tsx.snap +0 -13
- package/app/QrCodeScanner/__stories__/Default/index.js +0 -51
- package/app/QrCodeScanner/__stories__/Default/package.json +0 -6
- package/app/QrCodeScanner/__stories__/Default.d.ts +0 -3
- package/app/QrCodeScanner/index.spec/index.js +0 -15
- package/app/QrCodeScanner/index.spec/package.json +0 -6
- package/app/QrCodeScanner/index.spec.d.ts +0 -1
- package/app/QrCodeScanner/package.json +0 -6
- package/app/QrCodeViewer/QRCode.stories/index.js +0 -8
- package/app/QrCodeViewer/QRCode.stories/package.json +0 -6
- package/app/QrCodeViewer/QRCode.stories.d.ts +0 -9
- package/app/QrCodeViewer/__stories__/Custom/index.js +0 -22
- package/app/QrCodeViewer/__stories__/Custom/package.json +0 -6
- package/app/QrCodeViewer/__stories__/Custom.d.ts +0 -3
- package/app/QrCodeViewer/__stories__/Default/index.js +0 -9
- package/app/QrCodeViewer/__stories__/Default/package.json +0 -6
- package/app/QrCodeViewer/__stories__/Default.d.ts +0 -3
- package/app/QrCodeViewer/index.mdx +0 -30
- package/app/QrCodeViewer/package.json +0 -6
- package/app/QrCodeViewer/qrcodegen/index.js +0 -1043
- package/app/QrCodeViewer/qrcodegen/package.json +0 -6
- package/app/QrCodeViewer/types/index.js +0 -1
- package/app/QrCodeViewer/types/package.json +0 -6
- package/app/QrCodeViewer/utils/index.js +0 -88
- package/app/QrCodeViewer/utils/package.json +0 -6
- package/app/ThemeOptions/package.json +0 -6
- package/app/hooks/useFontSize/index.js +0 -10
- package/app/hooks/useFontSize/package.json +0 -6
- package/app/hooks/useHighlightLinks/index.js +0 -33
- package/app/hooks/useHighlightLinks/package.json +0 -6
- package/app/hooks/useLetterSpacing/index.js +0 -10
- package/app/hooks/useLetterSpacing/package.json +0 -6
- package/app/hooks/useLineHeight/index.js +0 -10
- package/app/hooks/useLineHeight/package.json +0 -6
- package/app/hooks/useTheme/index.js +0 -43
- package/app/hooks/useTheme/package.json +0 -6
- package/app/hooks/useVariantVars/index.js +0 -24
- package/app/hooks/useVariantVars/package.json +0 -6
- package/app/package.json +0 -6
- package/cjs/api/APIErrors/index.js +0 -83
- package/cjs/api/APIProvider/index.js +0 -34
- package/cjs/api/fetchAPI/index.js +0 -50
- package/cjs/api/index.js +0 -88
- package/cjs/api/index.spec/index.js +0 -472
- package/cjs/api/introduction.md +0 -6
- package/cjs/api/useResource/index.js +0 -116
- package/cjs/api/useResourceAction/index.js +0 -128
- package/cjs/api/useResourceQuery/index.js +0 -192
- package/cjs/api/utils/index.js +0 -200
- package/cjs/app/App/index.js +0 -21
- package/cjs/app/BannerContainer/BannerContainer.stories/index.js +0 -28
- package/cjs/app/BannerContainer/__stories__/CookiesBanner/index.js +0 -26
- package/cjs/app/BannerContainer/index.js +0 -15
- package/cjs/app/BottomInfo/index.js +0 -42
- package/cjs/app/CloseButton/index.js +0 -23
- package/cjs/app/FilterContainer/index.js +0 -119
- package/cjs/app/Footer/Footer.stories/index.js +0 -113
- package/cjs/app/Footer/Footer.stories.playwright.json +0 -27
- package/cjs/app/Footer/__stories__/Default/index.js +0 -14
- package/cjs/app/Footer/__stories__/DefaultCopyright/index.js +0 -24
- package/cjs/app/Footer/__stories__/FooterAllInclusive/index.js +0 -73
- package/cjs/app/Footer/__stories__/FooterWithLink/index.js +0 -35
- package/cjs/app/Footer/__stories__/FooterWithLogo/index.js +0 -33
- package/cjs/app/Footer/__stories__/FooterWithSecondaryNavigation/index.js +0 -55
- package/cjs/app/Footer/__stories__/FooterWithText/index.js +0 -36
- package/cjs/app/Footer/__stories__/YearCopyright/index.js +0 -28
- package/cjs/app/Footer/index.js +0 -167
- package/cjs/app/Footer/index.mdx +0 -63
- package/cjs/app/Header/Header.stories/index.js +0 -81
- package/cjs/app/Header/Header.stories.playwright.json +0 -49
- package/cjs/app/Header/HeaderContent/index.js +0 -15
- package/cjs/app/Header/HeaderLogo/index.js +0 -23
- package/cjs/app/Header/HeaderNavMenuContent/index.js +0 -15
- package/cjs/app/Header/HeaderSecondaryLogo/index.js +0 -15
- package/cjs/app/Header/HeaderSection/index.js +0 -23
- package/cjs/app/Header/HeaderTitle/index.js +0 -23
- package/cjs/app/Header/__snapshots__/index.spec.tsx.snap +0 -55
- package/cjs/app/Header/__stories__/Default/index.js +0 -19
- package/cjs/app/Header/__stories__/WithHeaderNavigation/index.js +0 -42
- package/cjs/app/Header/__stories__/WithNavigation/index.js +0 -63
- package/cjs/app/Header/__stories__/WithServiceName/index.js +0 -20
- package/cjs/app/Header/__stories__/WithServiceNameAndLogo/index.js +0 -25
- package/cjs/app/Header/index.js +0 -95
- package/cjs/app/Header/index.mdx +0 -49
- package/cjs/app/Header/index.spec/index.js +0 -30
- package/cjs/app/Loader/Loader.stories/index.js +0 -26
- package/cjs/app/Loader/__stories__/Default/index.js +0 -14
- package/cjs/app/Loader/index.js +0 -47
- package/cjs/app/Masthead/Masthead.stories/index.js +0 -53
- package/cjs/app/Masthead/Masthead.stories.playwright.json +0 -21
- package/cjs/app/Masthead/__stories__/Default/index.js +0 -20
- package/cjs/app/Masthead/__stories__/WithElements/index.js +0 -26
- package/cjs/app/Masthead/__stories__/WithLogo/index.js +0 -24
- package/cjs/app/Masthead/index.js +0 -47
- package/cjs/app/Masthead/index.mdx +0 -23
- package/cjs/app/Modal/Modal.stories/index.js +0 -76
- package/cjs/app/Modal/Modal.stories.playwright.json +0 -53
- package/cjs/app/Modal/__stories__/AlertDialog/index.js +0 -49
- package/cjs/app/Modal/__stories__/Auto/index.js +0 -52
- package/cjs/app/Modal/__stories__/Default/index.js +0 -47
- package/cjs/app/Modal/__stories__/Dense/index.js +0 -48
- package/cjs/app/Modal/__stories__/WithHooks/index.js +0 -36
- package/cjs/app/Modal/auto/index.js +0 -71
- package/cjs/app/Modal/hooks/index.js +0 -70
- package/cjs/app/Modal/index.js +0 -136
- package/cjs/app/Modal/index.mdx +0 -40
- package/cjs/app/NotFound/NotFound.stories/index.js +0 -26
- package/cjs/app/NotFound/__stories__/Default/index.js +0 -14
- package/cjs/app/NotFound/index.js +0 -18
- package/cjs/app/NotFound/index.mdx +0 -18
- package/cjs/app/OutdatedBrowserBanner/hooks/evaluateBrowserVersion/index.js +0 -230
- package/cjs/app/OutdatedBrowserBanner/hooks/useOutdatedBrowserCheck/index.js +0 -53
- package/cjs/app/OutdatedBrowserBanner/index.js +0 -43
- package/cjs/app/PageTitleContainer/index.js +0 -47
- package/cjs/app/Panel/Panel.stories/index.js +0 -28
- package/cjs/app/Panel/__stories__/Default/index.js +0 -14
- package/cjs/app/Panel/index.js +0 -47
- package/cjs/app/Panel/index.mdx +0 -21
- package/cjs/app/PhaseBannerHeader/PhaseBannerHeader.stories/index.js +0 -26
- package/cjs/app/PhaseBannerHeader/__stories__/Default/index.js +0 -17
- package/cjs/app/PhaseBannerHeader/index.js +0 -25
- package/cjs/app/PhaseBannerHeader/index.mdx +0 -20
- package/cjs/app/QrCodeScanner/QrCodeScanner.stories/index.js +0 -26
- package/cjs/app/QrCodeScanner/__snapshots__/index.spec.tsx.snap +0 -13
- package/cjs/app/QrCodeScanner/__stories__/Default/index.js +0 -61
- package/cjs/app/QrCodeScanner/index.js +0 -75
- package/cjs/app/QrCodeScanner/index.spec/index.js +0 -21
- package/cjs/app/QrCodeViewer/QRCode.stories/index.js +0 -38
- package/cjs/app/QrCodeViewer/__stories__/Custom/index.js +0 -29
- package/cjs/app/QrCodeViewer/__stories__/Default/index.js +0 -16
- package/cjs/app/QrCodeViewer/index.js +0 -153
- package/cjs/app/QrCodeViewer/index.mdx +0 -30
- package/cjs/app/QrCodeViewer/qrcodegen/index.js +0 -1048
- package/cjs/app/QrCodeViewer/types/index.js +0 -5
- package/cjs/app/QrCodeViewer/utils/index.js +0 -97
- package/cjs/app/ThemeOptions/index.js +0 -245
- package/cjs/app/hooks/useFontSize/index.js +0 -17
- package/cjs/app/hooks/useHighlightLinks/index.js +0 -40
- package/cjs/app/hooks/useLetterSpacing/index.js +0 -17
- package/cjs/app/hooks/useLineHeight/index.js +0 -17
- package/cjs/app/hooks/useTheme/index.js +0 -50
- package/cjs/app/hooks/useVariantVars/index.js +0 -31
- package/cjs/app/index.js +0 -181
- package/cjs/content/Accordion/Accordion.stories/index.js +0 -65
- package/cjs/content/Accordion/Accordion.stories.playwright.json +0 -21
- package/cjs/content/Accordion/__snapshots__/index.spec.tsx.snap +0 -157
- package/cjs/content/Accordion/__stories__/Auto/index.js +0 -45
- package/cjs/content/Accordion/__stories__/Default/index.js +0 -36
- package/cjs/content/Accordion/__stories__/WithHints/index.js +0 -37
- package/cjs/content/Accordion/__stories__/WithHook/index.js +0 -58
- package/cjs/content/Accordion/auto/index.js +0 -76
- package/cjs/content/Accordion/hooks/index.js +0 -157
- package/cjs/content/Accordion/index.js +0 -108
- package/cjs/content/Accordion/index.mdx +0 -45
- package/cjs/content/Accordion/index.spec/index.js +0 -22
- package/cjs/content/Blockquote/Blockquote.stories/index.js +0 -40
- package/cjs/content/Blockquote/__snapshots__/index.spec.tsx.snap +0 -16
- package/cjs/content/Blockquote/__stories__/Default/index.js +0 -14
- package/cjs/content/Blockquote/__stories__/Dense/index.js +0 -16
- package/cjs/content/Blockquote/index.js +0 -23
- package/cjs/content/Blockquote/index.mdx +0 -24
- package/cjs/content/Blockquote/index.spec/index.js +0 -13
- package/cjs/content/Card/Card.stories/index.js +0 -149
- package/cjs/content/Card/Card.stories.playwright.json +0 -21
- package/cjs/content/Card/__stories__/Default/index.js +0 -15
- package/cjs/content/Card/__stories__/Dense/index.js +0 -19
- package/cjs/content/Card/__stories__/WithClickableContent/index.js +0 -19
- package/cjs/content/Card/__stories__/WithClickableLink/index.js +0 -17
- package/cjs/content/Card/__stories__/WithDarkBorder/index.js +0 -18
- package/cjs/content/Card/__stories__/WithDarkTopBorder/index.js +0 -18
- package/cjs/content/Card/__stories__/WithDivider/index.js +0 -17
- package/cjs/content/Card/__stories__/WithGrayBorder/index.js +0 -18
- package/cjs/content/Card/__stories__/WithGrayTopBorder/index.js +0 -18
- package/cjs/content/Card/__stories__/WithGroupButton/index.js +0 -16
- package/cjs/content/Card/__stories__/WithLink/index.js +0 -15
- package/cjs/content/Card/index.js +0 -59
- package/cjs/content/Card/index.mdx +0 -103
- package/cjs/content/Chip/Chip.stories/index.js +0 -74
- package/cjs/content/Chip/__stories__/ClickableChip/index.js +0 -17
- package/cjs/content/Chip/__stories__/ClickableDeletableChip/index.js +0 -20
- package/cjs/content/Chip/__stories__/Default/index.js +0 -14
- package/cjs/content/Chip/__stories__/DeletableChip/index.js +0 -17
- package/cjs/content/Chip/__stories__/GroupOfChips/index.js +0 -17
- package/cjs/content/Chip/index.js +0 -59
- package/cjs/content/Chip/index.mdx +0 -53
- package/cjs/content/Details/Details.stories/index.js +0 -28
- package/cjs/content/Details/Details.stories.playwright.json +0 -27
- package/cjs/content/Details/__snapshots__/index.spec.tsx.snap +0 -81
- package/cjs/content/Details/__stories__/Default/index.js +0 -14
- package/cjs/content/Details/index.js +0 -47
- package/cjs/content/Details/index.mdx +0 -27
- package/cjs/content/Details/index.spec/index.js +0 -18
- package/cjs/content/FillableText/index.js +0 -35
- package/cjs/content/List/List/index.js +0 -23
- package/cjs/content/List/List.stories/index.js +0 -88
- package/cjs/content/List/ListItem/index.js +0 -15
- package/cjs/content/List/__snapshots__/index.spec.tsx.snap +0 -7
- package/cjs/content/List/__stories__/BulletList/index.js +0 -17
- package/cjs/content/List/__stories__/Default/index.js +0 -15
- package/cjs/content/List/__stories__/HorizontalList/index.js +0 -18
- package/cjs/content/List/__stories__/NestedBulletList/index.js +0 -25
- package/cjs/content/List/__stories__/NumberedList/index.js +0 -17
- package/cjs/content/List/__stories__/WithExtraSpace/index.js +0 -17
- package/cjs/content/List/index.js +0 -36
- package/cjs/content/List/index.mdx +0 -40
- package/cjs/content/List/index.spec/index.js +0 -12
- package/cjs/content/Markdown/index.js +0 -18
- package/cjs/content/Markdown/useMarkdownToHTML/index.js +0 -90
- package/cjs/content/SafeHTML/index.js +0 -102
- package/cjs/content/StepNav/StepNav.stories/index.js +0 -75
- package/cjs/content/StepNav/StepNav.stories.playwright.json +0 -33
- package/cjs/content/StepNav/__stories__/Auto/index.js +0 -136
- package/cjs/content/StepNav/__stories__/Default/index.js +0 -176
- package/cjs/content/StepNav/__stories__/Dense/index.js +0 -178
- package/cjs/content/StepNav/__stories__/WithHints/index.js +0 -185
- package/cjs/content/StepNav/__stories__/WithHook/index.js +0 -144
- package/cjs/content/StepNav/auto/index.js +0 -73
- package/cjs/content/StepNav/index.js +0 -133
- package/cjs/content/StepNav/index.mdx +0 -53
- package/cjs/content/SummaryList/SummaryList.stories/index.js +0 -88
- package/cjs/content/SummaryList/SummaryList.stories.playwright.json +0 -27
- package/cjs/content/SummaryList/__snapshots__/index.spec.tsx.snap +0 -97
- package/cjs/content/SummaryList/__stories__/Default/index.js +0 -22
- package/cjs/content/SummaryList/__stories__/RowVariations/index.js +0 -37
- package/cjs/content/SummaryList/__stories__/WithActions/index.js +0 -28
- package/cjs/content/SummaryList/__stories__/WithKeyAndAction/index.js +0 -25
- package/cjs/content/SummaryList/__stories__/WithoutActions/index.js +0 -14
- package/cjs/content/SummaryList/__stories__/WithoutBorders/index.js +0 -24
- package/cjs/content/SummaryList/index.js +0 -68
- package/cjs/content/SummaryList/index.mdx +0 -51
- package/cjs/content/SummaryList/index.spec/index.js +0 -12
- package/cjs/content/Table/Table.stories/index.js +0 -232
- package/cjs/content/Table/Table.stories.playwright.json +0 -37
- package/cjs/content/Table/TableFloatingScroll/index.js +0 -92
- package/cjs/content/Table/__stories__/DarkVariant/index.js +0 -54
- package/cjs/content/Table/__stories__/DarkVariantWithVerticalHeaders/index.js +0 -54
- package/cjs/content/Table/__stories__/Default/index.js +0 -48
- package/cjs/content/Table/__stories__/DefinedWidth/index.js +0 -50
- package/cjs/content/Table/__stories__/Densed/index.js +0 -109
- package/cjs/content/Table/__stories__/Full/index.js +0 -98
- package/cjs/content/Table/__stories__/MultipleProps/index.js +0 -78
- package/cjs/content/Table/__stories__/NoData/index.js +0 -16
- package/cjs/content/Table/__stories__/NumericDataType/index.js +0 -68
- package/cjs/content/Table/__stories__/RowColors/index.js +0 -67
- package/cjs/content/Table/__stories__/Stacked/index.js +0 -50
- package/cjs/content/Table/__stories__/TableCaptions/index.js +0 -22
- package/cjs/content/Table/__stories__/VerticalBorders/index.js +0 -54
- package/cjs/content/Table/__stories__/VerticalHeaders/index.js +0 -48
- package/cjs/content/Table/__stories__/WithFloatingScroll/index.js +0 -79
- package/cjs/content/Table/__stories__/WithLoader/index.js +0 -73
- package/cjs/content/Table/__stories__/WithSortFilters/index.js +0 -107
- package/cjs/content/Table/__stories__/ZebraProp/index.js +0 -54
- package/cjs/content/Table/hooks/useSort/index.js +0 -52
- package/cjs/content/Table/index.js +0 -253
- package/cjs/content/Table/index.mdx +0 -111
- package/cjs/content/TaskList/TaskList.stories/index.js +0 -39
- package/cjs/content/TaskList/__stories__/Default/index.js +0 -76
- package/cjs/content/TaskList/__stories__/Dense/index.js +0 -78
- package/cjs/content/TaskList/index.js +0 -71
- package/cjs/content/TaskList/index.mdx +0 -30
- package/cjs/content/Timeline/Timeline.stories/index.js +0 -39
- package/cjs/content/Timeline/__stories__/Default/index.js +0 -126
- package/cjs/content/Timeline/__stories__/Dense/index.js +0 -128
- package/cjs/content/Timeline/index.js +0 -71
- package/cjs/content/Timeline/index.mdx +0 -33
- package/cjs/content/index.js +0 -137
- package/cjs/custom.d/index.js +0 -1
- package/cjs/feedback/CopyToClipboard/CopyToClipboard.stories/index.js +0 -50
- package/cjs/feedback/CopyToClipboard/CopyToClipboard.stories.playwright.json +0 -53
- package/cjs/feedback/CopyToClipboard/__stories__/Banner/index.js +0 -21
- package/cjs/feedback/CopyToClipboard/__stories__/Default/index.js +0 -27
- package/cjs/feedback/CopyToClipboard/__stories__/Dense/index.js +0 -25
- package/cjs/feedback/CopyToClipboard/index.js +0 -72
- package/cjs/feedback/CopyToClipboard/index.mdx +0 -28
- package/cjs/feedback/ErrorSummary/ErrorSummary.stories/index.js +0 -88
- package/cjs/feedback/ErrorSummary/ErrorSummary.stories.playwright.json +0 -27
- package/cjs/feedback/ErrorSummary/__snapshots__/index.spec.tsx.snap +0 -7
- package/cjs/feedback/ErrorSummary/__stories__/Default/index.js +0 -18
- package/cjs/feedback/ErrorSummary/__stories__/Dense/index.js +0 -20
- package/cjs/feedback/ErrorSummary/__stories__/LinkedToCheckbox/index.js +0 -35
- package/cjs/feedback/ErrorSummary/__stories__/LinkedToField/index.js +0 -36
- package/cjs/feedback/ErrorSummary/__stories__/LinkedToInput/index.js +0 -34
- package/cjs/feedback/ErrorSummary/__stories__/WithBackLinkAndButton/index.js +0 -40
- package/cjs/feedback/ErrorSummary/index.js +0 -23
- package/cjs/feedback/ErrorSummary/index.mdx +0 -54
- package/cjs/feedback/ErrorSummary/index.spec/index.js +0 -12
- package/cjs/feedback/NotificationBanner/NotificationBanner.stories/index.js +0 -53
- package/cjs/feedback/NotificationBanner/NotificationBanner.stories.playwright.json +0 -49
- package/cjs/feedback/NotificationBanner/__snapshots__/index.spec.tsx.snap +0 -23
- package/cjs/feedback/NotificationBanner/__stories__/Default/index.js +0 -19
- package/cjs/feedback/NotificationBanner/__stories__/Dense/index.js +0 -20
- package/cjs/feedback/NotificationBanner/__stories__/Success/index.js +0 -20
- package/cjs/feedback/NotificationBanner/index.js +0 -63
- package/cjs/feedback/NotificationBanner/index.mdx +0 -47
- package/cjs/feedback/NotificationBanner/index.spec/index.js +0 -23
- package/cjs/feedback/PhaseBanner/PhaseBanner.stories/index.js +0 -40
- package/cjs/feedback/PhaseBanner/PhaseBanner.stories.playwright.json +0 -21
- package/cjs/feedback/PhaseBanner/__stories__/Default/index.js +0 -17
- package/cjs/feedback/PhaseBanner/__stories__/Underlined/index.js +0 -19
- package/cjs/feedback/PhaseBanner/index.js +0 -59
- package/cjs/feedback/PhaseBanner/index.mdx +0 -37
- package/cjs/feedback/WarningText/WarningText.stories/index.js +0 -52
- package/cjs/feedback/WarningText/__snapshots__/index.spec.tsx.snap +0 -7
- package/cjs/feedback/WarningText/__stories__/AssistiveText/index.js +0 -16
- package/cjs/feedback/WarningText/__stories__/Default/index.js +0 -14
- package/cjs/feedback/WarningText/__stories__/Dense/index.js +0 -16
- package/cjs/feedback/WarningText/index.js +0 -23
- package/cjs/feedback/WarningText/index.mdx +0 -25
- package/cjs/feedback/WarningText/index.spec/index.js +0 -12
- package/cjs/feedback/index.js +0 -60
- package/cjs/form/AutoComplete/AutoComplete.stories/index.js +0 -134
- package/cjs/form/AutoComplete/AutoComplete.stories.playwright.json +0 -33
- package/cjs/form/AutoComplete/Status/index.js +0 -160
- package/cjs/form/AutoComplete/__stories__/Default/index.js +0 -21
- package/cjs/form/AutoComplete/__stories__/Multiple/index.js +0 -24
- package/cjs/form/AutoComplete/__stories__/MultipleShowingTwoSelected/index.js +0 -23
- package/cjs/form/AutoComplete/__stories__/MultipleWithDefaultValues/index.js +0 -23
- package/cjs/form/AutoComplete/__stories__/MultipleWithMinLength/index.js +0 -26
- package/cjs/form/AutoComplete/__stories__/WithAutoSelect/index.js +0 -36
- package/cjs/form/AutoComplete/__stories__/WithDefaultValue/index.js +0 -22
- package/cjs/form/AutoComplete/__stories__/WithMinLength/index.js +0 -23
- package/cjs/form/AutoComplete/__stories__/WithPlaceHolder/index.js +0 -22
- package/cjs/form/AutoComplete/__stories__/WithShowAllValues/index.js +0 -21
- package/cjs/form/AutoComplete/__stories__/utils/index.js +0 -1
- package/cjs/form/AutoComplete/index.js +0 -776
- package/cjs/form/AutoComplete/index.mdx +0 -70
- package/cjs/form/AutoComplete/utils/index.js +0 -43
- package/cjs/form/Button/Button.stories/index.js +0 -160
- package/cjs/form/Button/Button.stories.playwright.json +0 -115
- package/cjs/form/Button/ButtonLink/index.js +0 -23
- package/cjs/form/Button/CallToAction/index.js +0 -23
- package/cjs/form/Button/ThemeToggleButton/index.js +0 -55
- package/cjs/form/Button/__snapshots__/index.spec.tsx.snap +0 -17
- package/cjs/form/Button/__stories__/Back/index.js +0 -18
- package/cjs/form/Button/__stories__/ButtonLinkButton/index.js +0 -22
- package/cjs/form/Button/__stories__/CallToActionButton/index.js +0 -19
- package/cjs/form/Button/__stories__/Dense/index.js +0 -17
- package/cjs/form/Button/__stories__/Disabled/index.js +0 -18
- package/cjs/form/Button/__stories__/GroupingButtons/index.js +0 -16
- package/cjs/form/Button/__stories__/GroupingButtonsAndLinks/index.js +0 -17
- package/cjs/form/Button/__stories__/Primary/index.js +0 -16
- package/cjs/form/Button/__stories__/Secondary/index.js +0 -17
- package/cjs/form/Button/__stories__/ThemeToggle/index.js +0 -14
- package/cjs/form/Button/__stories__/Warning/index.js +0 -17
- package/cjs/form/Button/__stories__/WithVariantLink/index.js +0 -19
- package/cjs/form/Button/index.js +0 -84
- package/cjs/form/Button/index.mdx +0 -111
- package/cjs/form/Button/index.spec/index.js +0 -13
- package/cjs/form/Checkbox/Checkbox.stories/index.js +0 -136
- package/cjs/form/Checkbox/Checkbox.stories.playwright.json +0 -55
- package/cjs/form/Checkbox/__stories__/ConditionalReveal/index.js +0 -31
- package/cjs/form/Checkbox/__stories__/Default/index.js +0 -29
- package/cjs/form/Checkbox/__stories__/Dense/index.js +0 -31
- package/cjs/form/Checkbox/__stories__/Inline/index.js +0 -28
- package/cjs/form/Checkbox/__stories__/InlineWithDivider/index.js +0 -29
- package/cjs/form/Checkbox/__stories__/MultipleQuestions/index.js +0 -31
- package/cjs/form/Checkbox/__stories__/NoneAnswer/index.js +0 -25
- package/cjs/form/Checkbox/__stories__/NoneAnswerWithError/index.js +0 -31
- package/cjs/form/Checkbox/__stories__/WithErrorMessage/index.js +0 -32
- package/cjs/form/Checkbox/__stories__/WithHint/index.js +0 -32
- package/cjs/form/Checkbox/index.js +0 -47
- package/cjs/form/Checkbox/index.mdx +0 -83
- package/cjs/form/DateInputContainer/DateInputContainer.stories/index.js +0 -76
- package/cjs/form/DateInputContainer/DateInputContainer.stories.playwright.json +0 -61
- package/cjs/form/DateInputContainer/__stories__/Default/index.js +0 -29
- package/cjs/form/DateInputContainer/__stories__/Dense/index.js +0 -28
- package/cjs/form/DateInputContainer/__stories__/MultipleQuestions/index.js +0 -29
- package/cjs/form/DateInputContainer/__stories__/WithErrorMessage/index.js +0 -40
- package/cjs/form/DateInputContainer/__stories__/WithErrorMessageForSingleField/index.js +0 -37
- package/cjs/form/DateInputContainer/index.js +0 -35
- package/cjs/form/DateInputContainer/index.mdx +0 -46
- package/cjs/form/ErrorMessage/ErrorMessage.stories/index.js +0 -52
- package/cjs/form/ErrorMessage/__stories__/DateInputError/index.js +0 -29
- package/cjs/form/ErrorMessage/__stories__/Default/index.js +0 -37
- package/cjs/form/ErrorMessage/__stories__/ErrorMessageOnly/index.js +0 -17
- package/cjs/form/ErrorMessage/index.js +0 -23
- package/cjs/form/ErrorMessage/index.mdx +0 -23
- package/cjs/form/FieldContainer/index.js +0 -47
- package/cjs/form/FileUpload/FileUpload.stories/index.js +0 -39
- package/cjs/form/FileUpload/__stories__/Default/index.js +0 -22
- package/cjs/form/FileUpload/__stories__/WithErrorMessage/index.js +0 -26
- package/cjs/form/FileUpload/index.js +0 -35
- package/cjs/form/FileUpload/index.mdx +0 -30
- package/cjs/form/Form/index.js +0 -15
- package/cjs/form/LabelContainer/index.js +0 -35
- package/cjs/form/RadioContainer/RadioContainer.stories/index.js +0 -136
- package/cjs/form/RadioContainer/RadioContainer.stories.playwright.json +0 -49
- package/cjs/form/RadioContainer/__stories__/ConditionalReveal/index.js +0 -31
- package/cjs/form/RadioContainer/__stories__/Default/index.js +0 -27
- package/cjs/form/RadioContainer/__stories__/Dense/index.js +0 -29
- package/cjs/form/RadioContainer/__stories__/Inline/index.js +0 -28
- package/cjs/form/RadioContainer/__stories__/InlineWithDivider/index.js +0 -29
- package/cjs/form/RadioContainer/__stories__/MultipleQuestions/index.js +0 -31
- package/cjs/form/RadioContainer/__stories__/NoneAnswer/index.js +0 -29
- package/cjs/form/RadioContainer/__stories__/WithErrorMessage/index.js +0 -34
- package/cjs/form/RadioContainer/__stories__/WithHints/index.js +0 -34
- package/cjs/form/RadioContainer/__stories__/WithMediumLegend/index.js +0 -29
- package/cjs/form/RadioContainer/index.js +0 -59
- package/cjs/form/RadioContainer/index.mdx +0 -84
- package/cjs/form/SearchContainer/index.js +0 -47
- package/cjs/form/SelectContainer/SelectContainer.stories/index.js +0 -64
- package/cjs/form/SelectContainer/SelectContainer.stories.playwright.json +0 -21
- package/cjs/form/SelectContainer/__stories__/Default/index.js +0 -27
- package/cjs/form/SelectContainer/__stories__/Dense/index.js +0 -28
- package/cjs/form/SelectContainer/__stories__/DisabledInput/index.js +0 -29
- package/cjs/form/SelectContainer/__stories__/WithHint/index.js +0 -31
- package/cjs/form/SelectContainer/index.js +0 -35
- package/cjs/form/SelectContainer/index.mdx +0 -50
- package/cjs/form/SingleCharacterInputs/SingleCharacterInput.stories/index.js +0 -64
- package/cjs/form/SingleCharacterInputs/__stories__/Default/index.js +0 -40
- package/cjs/form/SingleCharacterInputs/__stories__/WithDefaultError/index.js +0 -44
- package/cjs/form/SingleCharacterInputs/__stories__/WithErrorMessageInvalidCode/index.js +0 -54
- package/cjs/form/SingleCharacterInputs/__stories__/WithErrorMessageLessDigit/index.js +0 -48
- package/cjs/form/SingleCharacterInputs/index.js +0 -35
- package/cjs/form/SingleCharacterInputs/index.mdx +0 -30
- package/cjs/form/TextArea/TextArea.stories/index.js +0 -112
- package/cjs/form/TextArea/TextArea.stories.playwright.json +0 -59
- package/cjs/form/TextArea/__stories__/Default/index.js +0 -20
- package/cjs/form/TextArea/__stories__/Dense/index.js +0 -19
- package/cjs/form/TextArea/__stories__/DisabledInput/index.js +0 -25
- package/cjs/form/TextArea/__stories__/LimitedCharacters/index.js +0 -28
- package/cjs/form/TextArea/__stories__/MultipleQuestions/index.js +0 -22
- package/cjs/form/TextArea/__stories__/WithDeclaredRows/index.js +0 -25
- package/cjs/form/TextArea/__stories__/WithErrorMessage/index.js +0 -31
- package/cjs/form/TextArea/__stories__/WithHint/index.js +0 -24
- package/cjs/form/TextArea/index.js +0 -23
- package/cjs/form/TextArea/index.mdx +0 -74
- package/cjs/form/TextInput/TextInput.stories/index.js +0 -136
- package/cjs/form/TextInput/TextInput.stories.playwright.json +0 -43
- package/cjs/form/TextInput/__stories__/AskingForNumbers/index.js +0 -26
- package/cjs/form/TextInput/__stories__/Default/index.js +0 -20
- package/cjs/form/TextInput/__stories__/Dense/index.js +0 -19
- package/cjs/form/TextInput/__stories__/DisabledInput/index.js +0 -25
- package/cjs/form/TextInput/__stories__/DisabledInputWithValue/index.js +0 -31
- package/cjs/form/TextInput/__stories__/FixedWidths/index.js +0 -46
- package/cjs/form/TextInput/__stories__/FluidWidths/index.js +0 -46
- package/cjs/form/TextInput/__stories__/MultipleQuestions/index.js +0 -18
- package/cjs/form/TextInput/__stories__/WithErrorMessage/index.js +0 -31
- package/cjs/form/TextInput/__stories__/WithHint/index.js +0 -24
- package/cjs/form/TextInput/index.js +0 -23
- package/cjs/form/TextInput/index.mdx +0 -90
- package/cjs/form/index.js +0 -170
- package/cjs/govgr/Footer/Copyright/index.js +0 -50
- package/cjs/govgr/Footer/HellenicRepublicLogo/index.js +0 -15
- package/cjs/govgr/Footer/LicenseCCSA/index.js +0 -22
- package/cjs/govgr/Footer/index.js +0 -26
- package/cjs/govgr/Footer/index.mdx +0 -101
- package/cjs/govgr/Footer/logo/index.js +0 -7
- package/cjs/govgr/Footer/logos/logo-el/index.js +0 -7
- package/cjs/govgr/Footer/logos/logo-en/index.js +0 -7
- package/cjs/govgr/GovGRLogo/govgr-logo.svg +0 -1
- package/cjs/govgr/GovGRLogo/index.js +0 -15
- package/cjs/govgr/GovGRLogo/logo/index.js +0 -7
- package/cjs/govgr/images/govgr-logo-base64/index.js +0 -7
- package/cjs/govgr/images/govgr-logo-blue-base64/index.js +0 -7
- package/cjs/govgr/images/greek-government-base64/index.js +0 -7
- package/cjs/govgr/images/grnet-logo-base64/index.js +0 -7
- package/cjs/govgr/images/index.js +0 -60
- package/cjs/govgr/images/minedu-logo-base64/index.js +0 -7
- package/cjs/govgr/images/minedu-logo-black-base64/index.js +0 -7
- package/cjs/govgr/index.js +0 -60
- package/cjs/i18n/I18nText/index.js +0 -73
- package/cjs/i18n/index.js +0 -59
- package/cjs/i18n/locales/el/index.js +0 -115
- package/cjs/i18n/locales/en/index.js +0 -109
- package/cjs/icons/Icon/index.js +0 -47
- package/cjs/icons/ImageLogo/index.js +0 -23
- package/cjs/icons/ImageLogoSet/index.js +0 -23
- package/cjs/icons/index.js +0 -27
- package/cjs/index.js +0 -126
- package/cjs/introduction.md +0 -11
- package/cjs/layouts/Admin/index.js +0 -95
- package/cjs/layouts/Basic/Aside/index.js +0 -23
- package/cjs/layouts/Basic/Basic.stories/index.js +0 -51
- package/cjs/layouts/Basic/Bottom/__stories__/Default/index.js +0 -22
- package/cjs/layouts/Basic/Bottom/index.js +0 -23
- package/cjs/layouts/Basic/Bottom/index.mdx +0 -22
- package/cjs/layouts/Basic/Container/__stories__/Default/index.js +0 -20
- package/cjs/layouts/Basic/Container/index.js +0 -23
- package/cjs/layouts/Basic/Container/index.mdx +0 -23
- package/cjs/layouts/Basic/Main/__stories__/Default/index.js +0 -20
- package/cjs/layouts/Basic/Main/index.js +0 -23
- package/cjs/layouts/Basic/Main/index.mdx +0 -21
- package/cjs/layouts/Basic/Masthead/index.js +0 -47
- package/cjs/layouts/Basic/Top/__stories__/Default/index.js +0 -20
- package/cjs/layouts/Basic/Top/index.js +0 -23
- package/cjs/layouts/Basic/Top/index.mdx +0 -23
- package/cjs/layouts/Basic/__snapshots__/index.spec.tsx.snap +0 -109
- package/cjs/layouts/Basic/__stories__/Default/index.js +0 -17
- package/cjs/layouts/Basic/__stories__/MultipleRowsLayout/index.js +0 -20
- package/cjs/layouts/Basic/__stories__/TwoThirdsOneThirdColumns/index.js +0 -20
- package/cjs/layouts/Basic/index.js +0 -95
- package/cjs/layouts/Basic/index.mdx +0 -42
- package/cjs/layouts/Basic/index.spec/index.js +0 -13
- package/cjs/layouts/Grid/Grid.stories/index.js +0 -50
- package/cjs/layouts/Grid/__stories__/Default/index.js +0 -80
- package/cjs/layouts/Grid/__stories__/Inline/index.js +0 -81
- package/cjs/layouts/Grid/__stories__/ResponsiveSpacing/index.js +0 -79
- package/cjs/layouts/Grid/index.js +0 -15
- package/cjs/layouts/Grid/index.mdx +0 -39
- package/cjs/layouts/Hidden/index.js +0 -16
- package/cjs/layouts/Screen/Screen.stories/index.js +0 -62
- package/cjs/layouts/Screen/__stories__/Default/index.js +0 -25
- package/cjs/layouts/Screen/__stories__/ScreenDown/index.js +0 -16
- package/cjs/layouts/Screen/__stories__/ScreenUp/index.js +0 -16
- package/cjs/layouts/Screen/__stories__/SpecificScreenSize/index.js +0 -16
- package/cjs/layouts/Screen/index.js +0 -34
- package/cjs/layouts/Section/index.js +0 -23
- package/cjs/layouts/SectionBreak/index.js +0 -23
- package/cjs/layouts/Stack/Stack.stories/index.js +0 -86
- package/cjs/layouts/Stack/__stories__/AlignItems/index.js +0 -72
- package/cjs/layouts/Stack/__stories__/Default/index.js +0 -29
- package/cjs/layouts/Stack/__stories__/JustifyContent/index.js +0 -89
- package/cjs/layouts/Stack/__stories__/NoWrap/index.js +0 -31
- package/cjs/layouts/Stack/__stories__/Row/index.js +0 -30
- package/cjs/layouts/Stack/__stories__/Spacing/index.js +0 -60
- package/cjs/layouts/Stack/index.js +0 -9
- package/cjs/layouts/index.js +0 -117
- package/cjs/lazy/index.js +0 -2893
- package/cjs/navigation/BackLink/BackLink.stories/index.js +0 -26
- package/cjs/navigation/BackLink/BackLink.stories.playwright.json +0 -21
- package/cjs/navigation/BackLink/__stories__/Default/index.js +0 -17
- package/cjs/navigation/BackLink/index.js +0 -23
- package/cjs/navigation/BackLink/index.mdx +0 -23
- package/cjs/navigation/BackToTopLink/BackToTopLink.stories/index.js +0 -38
- package/cjs/navigation/BackToTopLink/__stories__/Default/index.js +0 -17
- package/cjs/navigation/BackToTopLink/__stories__/InMain/index.js +0 -21
- package/cjs/navigation/BackToTopLink/index.js +0 -99
- package/cjs/navigation/Breadcrumbs/Breadcrumbs.stories/index.js +0 -28
- package/cjs/navigation/Breadcrumbs/Breadcrumbs.stories.playwright.json +0 -33
- package/cjs/navigation/Breadcrumbs/__stories__/Default/index.js +0 -26
- package/cjs/navigation/Breadcrumbs/index.js +0 -47
- package/cjs/navigation/Breadcrumbs/index.mdx +0 -32
- package/cjs/navigation/Drawer/Drawer.stories/index.js +0 -52
- package/cjs/navigation/Drawer/__stories__/Auto/index.js +0 -82
- package/cjs/navigation/Drawer/__stories__/Default/index.js +0 -88
- package/cjs/navigation/Drawer/__stories__/WithHook/index.js +0 -83
- package/cjs/navigation/Drawer/auto/index.js +0 -75
- package/cjs/navigation/Drawer/hooks/index.js +0 -57
- package/cjs/navigation/Drawer/index.js +0 -47
- package/cjs/navigation/Drawer/index.mdx +0 -14
- package/cjs/navigation/Dropdown/Dropdown.stories/index.js +0 -148
- package/cjs/navigation/Dropdown/Dropdown.stories.playwright.json +0 -85
- package/cjs/navigation/Dropdown/__stories__/AlignRight/index.js +0 -60
- package/cjs/navigation/Dropdown/__stories__/ContentPosition/index.js +0 -104
- package/cjs/navigation/Dropdown/__stories__/Default/index.js +0 -46
- package/cjs/navigation/Dropdown/__stories__/Dense/index.js +0 -54
- package/cjs/navigation/Dropdown/__stories__/Disabled/index.js +0 -48
- package/cjs/navigation/Dropdown/__stories__/PlacementTop/index.js +0 -64
- package/cjs/navigation/Dropdown/__stories__/ScrollableContent/index.js +0 -68
- package/cjs/navigation/Dropdown/__stories__/Secondary/index.js +0 -35
- package/cjs/navigation/Dropdown/__stories__/VariantLink/index.js +0 -47
- package/cjs/navigation/Dropdown/__stories__/Warning/index.js +0 -35
- package/cjs/navigation/Dropdown/__stories__/WithIcons/index.js +0 -100
- package/cjs/navigation/Dropdown/index.js +0 -135
- package/cjs/navigation/Dropdown/index.mdx +0 -40
- package/cjs/navigation/Link/Link.stories/index.js +0 -87
- package/cjs/navigation/Link/Link.stories.playwright.json +0 -65
- package/cjs/navigation/Link/__snapshots__/index.spec.tsx.snap +0 -38
- package/cjs/navigation/Link/__stories__/DarkBackground/index.js +0 -24
- package/cjs/navigation/Link/__stories__/DarkBackgroundNoUnderline/index.js +0 -25
- package/cjs/navigation/Link/__stories__/Default/index.js +0 -18
- package/cjs/navigation/Link/__stories__/ExternalLink/index.js +0 -19
- package/cjs/navigation/Link/__stories__/NoUnderline/index.js +0 -19
- package/cjs/navigation/Link/__stories__/OpensInNewTab/index.js +0 -18
- package/cjs/navigation/Link/index.js +0 -42
- package/cjs/navigation/Link/index.mdx +0 -50
- package/cjs/navigation/Link/index.spec/index.js +0 -21
- package/cjs/navigation/NavList/Nav/index.js +0 -23
- package/cjs/navigation/NavList/NavList/index.js +0 -23
- package/cjs/navigation/NavList/NavList.stories/index.js +0 -112
- package/cjs/navigation/NavList/NavList.stories.playwright.json +0 -53
- package/cjs/navigation/NavList/NavListAuto/index.js +0 -52
- package/cjs/navigation/NavList/NavMenuContentList/index.js +0 -76
- package/cjs/navigation/NavList/__snapshots__/index.spec.tsx.snap +0 -7
- package/cjs/navigation/NavList/__stories__/Default/index.js +0 -49
- package/cjs/navigation/NavList/__stories__/HorizontalWithDrawer/index.js +0 -104
- package/cjs/navigation/NavList/__stories__/HorizontalWithoutDrawer/index.js +0 -81
- package/cjs/navigation/NavList/__stories__/NavLinksOneLevel.json +0 -17
- package/cjs/navigation/NavList/__stories__/NavLinksWithSubmenu.json +0 -36
- package/cjs/navigation/NavList/__stories__/NavListWithoutNav/index.js +0 -36
- package/cjs/navigation/NavList/__stories__/UsingHeaderButton/index.js +0 -73
- package/cjs/navigation/NavList/__stories__/UsingNavListAuto/index.js +0 -74
- package/cjs/navigation/NavList/__stories__/Vertical/index.js +0 -51
- package/cjs/navigation/NavList/__stories__/VerticalWithoutDrawer/index.js +0 -81
- package/cjs/navigation/NavList/hooks/useNavList/index.js +0 -44
- package/cjs/navigation/NavList/hooks/useTogglableNav/index.js +0 -272
- package/cjs/navigation/NavList/index.js +0 -191
- package/cjs/navigation/NavList/index.mdx +0 -60
- package/cjs/navigation/NavList/index.spec/index.js +0 -12
- package/cjs/navigation/NavList/types/index.js +0 -5
- package/cjs/navigation/Pagination/Pagination.stories/index.js +0 -100
- package/cjs/navigation/Pagination/Pagination.stories.playwright.json +0 -27
- package/cjs/navigation/Pagination/__stories__/Auto/index.js +0 -52
- package/cjs/navigation/Pagination/__stories__/Default/index.js +0 -70
- package/cjs/navigation/Pagination/__stories__/PaginationSmall/index.js +0 -39
- package/cjs/navigation/Pagination/__stories__/PaginationWithSmallFont/index.js +0 -49
- package/cjs/navigation/Pagination/__stories__/WithHook/index.js +0 -60
- package/cjs/navigation/Pagination/__stories__/WithInactiveValues/index.js +0 -72
- package/cjs/navigation/Pagination/__stories__/WithResultsPerPage/index.js +0 -45
- package/cjs/navigation/Pagination/auto/index.js +0 -85
- package/cjs/navigation/Pagination/hooks/index.js +0 -112
- package/cjs/navigation/Pagination/index.js +0 -147
- package/cjs/navigation/Pagination/index.mdx +0 -48
- package/cjs/navigation/SkipLink/SkipLink.stories/index.js +0 -27
- package/cjs/navigation/SkipLink/__stories__/Default/index.js +0 -16
- package/cjs/navigation/SkipLink/index.js +0 -15
- package/cjs/navigation/Tabs/Tabs.stories/index.js +0 -53
- package/cjs/navigation/Tabs/Tabs.stories.playwright.json +0 -27
- package/cjs/navigation/Tabs/__stories__/Auto/index.js +0 -39
- package/cjs/navigation/Tabs/__stories__/Default/index.js +0 -50
- package/cjs/navigation/Tabs/__stories__/Dense/index.js +0 -37
- package/cjs/navigation/Tabs/auto/index.js +0 -58
- package/cjs/navigation/Tabs/hooks/index.js +0 -90
- package/cjs/navigation/Tabs/index.js +0 -95
- package/cjs/navigation/Tabs/index.mdx +0 -31
- package/cjs/navigation/index.js +0 -104
- package/cjs/registry/index.js +0 -507
- package/cjs/test-utils/delay/index.js +0 -35
- package/cjs/typography/Code/index.js +0 -23
- package/cjs/typography/CodeBlock/index.js +0 -23
- package/cjs/typography/Heading/Heading.stories/index.js +0 -26
- package/cjs/typography/Heading/__stories__/Default/index.js +0 -30
- package/cjs/typography/Heading/index.js +0 -23
- package/cjs/typography/Heading/index.mdx +0 -18
- package/cjs/typography/HeadingCaption/HeadingCaption.stories/index.js +0 -38
- package/cjs/typography/HeadingCaption/__stories__/Default/index.js +0 -35
- package/cjs/typography/HeadingCaption/__stories__/NestedToTitle/index.js +0 -20
- package/cjs/typography/HeadingCaption/index.js +0 -23
- package/cjs/typography/HeadingCaption/index.mdx +0 -20
- package/cjs/typography/Hint/Hint.stories/index.js +0 -38
- package/cjs/typography/Hint/__stories__/Default/index.js +0 -14
- package/cjs/typography/Hint/__stories__/FontSizes/index.js +0 -23
- package/cjs/typography/Hint/index.js +0 -23
- package/cjs/typography/Hint/index.mdx +0 -26
- package/cjs/typography/NormalText/NormalText.stories/index.js +0 -62
- package/cjs/typography/NormalText/__stories__/Default/index.js +0 -14
- package/cjs/typography/NormalText/__stories__/FontSizes/index.js +0 -53
- package/cjs/typography/NormalText/__stories__/FontWeight/index.js +0 -23
- package/cjs/typography/NormalText/__stories__/Variants/index.js +0 -23
- package/cjs/typography/NormalText/index.js +0 -23
- package/cjs/typography/NormalText/index.mdx +0 -44
- package/cjs/typography/Paragraph/Paragraph.stories/index.js +0 -74
- package/cjs/typography/Paragraph/__stories__/Default/index.js +0 -14
- package/cjs/typography/Paragraph/__stories__/FontSizes/index.js +0 -34
- package/cjs/typography/Paragraph/__stories__/FontWeight/index.js +0 -19
- package/cjs/typography/Paragraph/__stories__/LeadVariant/index.js +0 -16
- package/cjs/typography/Paragraph/__stories__/SmallVariant/index.js +0 -16
- package/cjs/typography/Paragraph/index.js +0 -23
- package/cjs/typography/Paragraph/index.mdx +0 -32
- package/cjs/typography/Typography/index.js +0 -23
- package/cjs/typography/Typography/index.mdx +0 -12
- package/cjs/typography/index.js +0 -71
- package/cjs/utils/Base/index.js +0 -23
- package/cjs/utils/Base/index.mdx +0 -13
- package/cjs/utils/SvgIcon/index.js +0 -35
- package/cjs/utils/Typography/index.js +0 -15
- package/cjs/utils/VisuallyHidden/VisuallyHidden.stories/index.js +0 -26
- package/cjs/utils/VisuallyHidden/__stories__/Default/index.js +0 -20
- package/cjs/utils/VisuallyHidden/index.js +0 -23
- package/cjs/utils/VisuallyHidden/index.mdx +0 -24
- package/cjs/utils/hooks/useDebounce/index.js +0 -50
- package/cjs/utils/hooks/useKeypress/index.js +0 -25
- package/cjs/utils/hooks/useLatest/index.js +0 -20
- package/cjs/utils/hooks/useScreen/index.js +0 -58
- package/cjs/utils/hooks/useSearch/index.js +0 -35
- package/cjs/utils/hooks/useTogglableTab/index.js +0 -96
- package/cjs/utils/index.js +0 -38
- package/cjs/utils/withDeprecation/index.js +0 -85
- package/content/Accordion/Accordion.stories/index.js +0 -13
- package/content/Accordion/Accordion.stories/package.json +0 -6
- package/content/Accordion/Accordion.stories.d.ts +0 -14
- package/content/Accordion/Accordion.stories.playwright.json +0 -21
- package/content/Accordion/__snapshots__/index.spec.tsx.snap +0 -157
- package/content/Accordion/__stories__/Auto/index.js +0 -38
- package/content/Accordion/__stories__/Auto/package.json +0 -6
- package/content/Accordion/__stories__/Auto.d.ts +0 -3
- package/content/Accordion/__stories__/Default/index.js +0 -29
- package/content/Accordion/__stories__/Default/package.json +0 -6
- package/content/Accordion/__stories__/Default.d.ts +0 -3
- package/content/Accordion/__stories__/WithHints/index.js +0 -30
- package/content/Accordion/__stories__/WithHints/package.json +0 -6
- package/content/Accordion/__stories__/WithHints.d.ts +0 -3
- package/content/Accordion/__stories__/WithHook/index.js +0 -51
- package/content/Accordion/__stories__/WithHook/package.json +0 -6
- package/content/Accordion/__stories__/WithHook.d.ts +0 -3
- package/content/Accordion/auto/index.js +0 -66
- package/content/Accordion/auto/package.json +0 -6
- package/content/Accordion/hooks/index.js +0 -147
- package/content/Accordion/hooks/package.json +0 -6
- package/content/Accordion/index.mdx +0 -45
- package/content/Accordion/index.spec/index.js +0 -17
- package/content/Accordion/index.spec/package.json +0 -6
- package/content/Accordion/index.spec.d.ts +0 -1
- package/content/Accordion/package.json +0 -6
- package/content/Blockquote/Blockquote.stories/index.js +0 -10
- package/content/Blockquote/Blockquote.stories/package.json +0 -6
- package/content/Blockquote/Blockquote.stories.d.ts +0 -11
- package/content/Blockquote/__snapshots__/index.spec.tsx.snap +0 -16
- package/content/Blockquote/__stories__/Default/index.js +0 -7
- package/content/Blockquote/__stories__/Default/package.json +0 -6
- package/content/Blockquote/__stories__/Default.d.ts +0 -3
- package/content/Blockquote/__stories__/Dense/index.js +0 -9
- package/content/Blockquote/__stories__/Dense/package.json +0 -6
- package/content/Blockquote/__stories__/Dense.d.ts +0 -3
- package/content/Blockquote/index.mdx +0 -24
- package/content/Blockquote/index.spec/index.js +0 -7
- package/content/Blockquote/index.spec/package.json +0 -6
- package/content/Blockquote/index.spec.d.ts +0 -1
- package/content/Blockquote/package.json +0 -6
- package/content/Card/Card.stories/index.js +0 -20
- package/content/Card/Card.stories/package.json +0 -6
- package/content/Card/Card.stories.d.ts +0 -21
- package/content/Card/Card.stories.playwright.json +0 -21
- package/content/Card/__stories__/Default/index.js +0 -8
- package/content/Card/__stories__/Default/package.json +0 -6
- package/content/Card/__stories__/Default.d.ts +0 -3
- package/content/Card/__stories__/Dense/index.js +0 -12
- package/content/Card/__stories__/Dense/package.json +0 -6
- package/content/Card/__stories__/Dense.d.ts +0 -3
- package/content/Card/__stories__/WithClickableContent/index.js +0 -12
- package/content/Card/__stories__/WithClickableContent/package.json +0 -6
- package/content/Card/__stories__/WithClickableContent.d.ts +0 -3
- package/content/Card/__stories__/WithClickableLink/index.js +0 -10
- package/content/Card/__stories__/WithClickableLink/package.json +0 -6
- package/content/Card/__stories__/WithClickableLink.d.ts +0 -3
- package/content/Card/__stories__/WithDarkBorder/index.js +0 -11
- package/content/Card/__stories__/WithDarkBorder/package.json +0 -6
- package/content/Card/__stories__/WithDarkBorder.d.ts +0 -3
- package/content/Card/__stories__/WithDarkTopBorder/index.js +0 -11
- package/content/Card/__stories__/WithDarkTopBorder/package.json +0 -6
- package/content/Card/__stories__/WithDarkTopBorder.d.ts +0 -3
- package/content/Card/__stories__/WithDivider/index.js +0 -10
- package/content/Card/__stories__/WithDivider/package.json +0 -6
- package/content/Card/__stories__/WithDivider.d.ts +0 -3
- package/content/Card/__stories__/WithGrayBorder/index.js +0 -11
- package/content/Card/__stories__/WithGrayBorder/package.json +0 -6
- package/content/Card/__stories__/WithGrayBorder.d.ts +0 -3
- package/content/Card/__stories__/WithGrayTopBorder/index.js +0 -11
- package/content/Card/__stories__/WithGrayTopBorder/package.json +0 -6
- package/content/Card/__stories__/WithGrayTopBorder.d.ts +0 -3
- package/content/Card/__stories__/WithGroupButton/index.js +0 -9
- package/content/Card/__stories__/WithGroupButton/package.json +0 -6
- package/content/Card/__stories__/WithGroupButton.d.ts +0 -3
- package/content/Card/__stories__/WithLink/index.js +0 -8
- package/content/Card/__stories__/WithLink/package.json +0 -6
- package/content/Card/__stories__/WithLink.d.ts +0 -3
- package/content/Card/index.mdx +0 -103
- package/content/Card/package.json +0 -6
- package/content/Chip/Chip.stories/index.js +0 -11
- package/content/Chip/Chip.stories/package.json +0 -6
- package/content/Chip/Chip.stories.d.ts +0 -12
- package/content/Chip/__stories__/ClickableChip/index.js +0 -10
- package/content/Chip/__stories__/ClickableChip/package.json +0 -6
- package/content/Chip/__stories__/ClickableChip.d.ts +0 -3
- package/content/Chip/__stories__/ClickableDeletableChip/index.js +0 -13
- package/content/Chip/__stories__/ClickableDeletableChip/package.json +0 -6
- package/content/Chip/__stories__/ClickableDeletableChip.d.ts +0 -3
- package/content/Chip/__stories__/Default/index.js +0 -7
- package/content/Chip/__stories__/Default/package.json +0 -6
- package/content/Chip/__stories__/Default.d.ts +0 -3
- package/content/Chip/__stories__/DeletableChip/index.js +0 -10
- package/content/Chip/__stories__/DeletableChip/package.json +0 -6
- package/content/Chip/__stories__/DeletableChip.d.ts +0 -3
- package/content/Chip/__stories__/GroupOfChips/index.js +0 -7
- package/content/Chip/__stories__/GroupOfChips/package.json +0 -6
- package/content/Chip/__stories__/GroupOfChips.d.ts +0 -3
- package/content/Chip/index.mdx +0 -53
- package/content/Chip/package.json +0 -6
- package/content/Details/Details.stories/index.js +0 -9
- package/content/Details/Details.stories/package.json +0 -6
- package/content/Details/Details.stories.d.ts +0 -10
- package/content/Details/Details.stories.playwright.json +0 -27
- package/content/Details/__snapshots__/index.spec.tsx.snap +0 -81
- package/content/Details/__stories__/Default/index.js +0 -7
- package/content/Details/__stories__/Default/package.json +0 -6
- package/content/Details/__stories__/Default.d.ts +0 -3
- package/content/Details/index.mdx +0 -27
- package/content/Details/index.spec/index.js +0 -13
- package/content/Details/index.spec/package.json +0 -6
- package/content/Details/index.spec.d.ts +0 -1
- package/content/Details/package.json +0 -6
- package/content/FillableText/package.json +0 -6
- package/content/List/List/index.js +0 -3
- package/content/List/List/package.json +0 -6
- package/content/List/List.stories/index.js +0 -14
- package/content/List/List.stories/package.json +0 -6
- package/content/List/List.stories.d.ts +0 -15
- package/content/List/ListItem/index.js +0 -3
- package/content/List/ListItem/package.json +0 -6
- package/content/List/__snapshots__/index.spec.tsx.snap +0 -7
- package/content/List/__stories__/BulletList/index.js +0 -10
- package/content/List/__stories__/BulletList/package.json +0 -6
- package/content/List/__stories__/BulletList.d.ts +0 -3
- package/content/List/__stories__/Default/index.js +0 -8
- package/content/List/__stories__/Default/package.json +0 -6
- package/content/List/__stories__/Default.d.ts +0 -3
- package/content/List/__stories__/HorizontalList/index.js +0 -11
- package/content/List/__stories__/HorizontalList/package.json +0 -6
- package/content/List/__stories__/HorizontalList.d.ts +0 -3
- package/content/List/__stories__/NestedBulletList/index.js +0 -18
- package/content/List/__stories__/NestedBulletList/package.json +0 -6
- package/content/List/__stories__/NestedBulletList.d.ts +0 -3
- package/content/List/__stories__/NumberedList/index.js +0 -10
- package/content/List/__stories__/NumberedList/package.json +0 -6
- package/content/List/__stories__/NumberedList.d.ts +0 -3
- package/content/List/__stories__/WithExtraSpace/index.js +0 -10
- package/content/List/__stories__/WithExtraSpace/package.json +0 -6
- package/content/List/__stories__/WithExtraSpace.d.ts +0 -3
- package/content/List/index.mdx +0 -40
- package/content/List/index.spec/index.js +0 -6
- package/content/List/index.spec/package.json +0 -6
- package/content/List/index.spec.d.ts +0 -1
- package/content/List/package.json +0 -6
- package/content/Markdown/package.json +0 -6
- package/content/Markdown/useMarkdownToHTML/index.js +0 -86
- package/content/Markdown/useMarkdownToHTML/package.json +0 -6
- package/content/SafeHTML/package.json +0 -6
- package/content/StepNav/StepNav.stories/index.js +0 -12
- package/content/StepNav/StepNav.stories/package.json +0 -6
- package/content/StepNav/StepNav.stories.d.ts +0 -13
- package/content/StepNav/StepNav.stories.playwright.json +0 -33
- package/content/StepNav/__stories__/Auto/index.js +0 -129
- package/content/StepNav/__stories__/Auto/package.json +0 -6
- package/content/StepNav/__stories__/Auto.d.ts +0 -3
- package/content/StepNav/__stories__/Default/index.js +0 -166
- package/content/StepNav/__stories__/Default/package.json +0 -6
- package/content/StepNav/__stories__/Default.d.ts +0 -3
- package/content/StepNav/__stories__/Dense/index.js +0 -168
- package/content/StepNav/__stories__/Dense/package.json +0 -6
- package/content/StepNav/__stories__/Dense.d.ts +0 -3
- package/content/StepNav/__stories__/WithHints/index.js +0 -175
- package/content/StepNav/__stories__/WithHints/package.json +0 -6
- package/content/StepNav/__stories__/WithHints.d.ts +0 -3
- package/content/StepNav/__stories__/WithHook/index.js +0 -137
- package/content/StepNav/__stories__/WithHook/package.json +0 -6
- package/content/StepNav/__stories__/WithHook.d.ts +0 -3
- package/content/StepNav/auto/index.js +0 -64
- package/content/StepNav/auto/package.json +0 -6
- package/content/StepNav/index.mdx +0 -53
- package/content/StepNav/package.json +0 -6
- package/content/SummaryList/SummaryList.stories/index.js +0 -14
- package/content/SummaryList/SummaryList.stories/package.json +0 -6
- package/content/SummaryList/SummaryList.stories.d.ts +0 -15
- package/content/SummaryList/SummaryList.stories.playwright.json +0 -27
- package/content/SummaryList/__snapshots__/index.spec.tsx.snap +0 -97
- package/content/SummaryList/__stories__/Default/index.js +0 -15
- package/content/SummaryList/__stories__/Default/package.json +0 -6
- package/content/SummaryList/__stories__/Default.d.ts +0 -3
- package/content/SummaryList/__stories__/RowVariations/index.js +0 -30
- package/content/SummaryList/__stories__/RowVariations/package.json +0 -6
- package/content/SummaryList/__stories__/RowVariations.d.ts +0 -3
- package/content/SummaryList/__stories__/WithActions/index.js +0 -18
- package/content/SummaryList/__stories__/WithActions/package.json +0 -6
- package/content/SummaryList/__stories__/WithActions.d.ts +0 -3
- package/content/SummaryList/__stories__/WithKeyAndAction/index.js +0 -18
- package/content/SummaryList/__stories__/WithKeyAndAction/package.json +0 -6
- package/content/SummaryList/__stories__/WithKeyAndAction.d.ts +0 -3
- package/content/SummaryList/__stories__/WithoutActions/index.js +0 -7
- package/content/SummaryList/__stories__/WithoutActions/package.json +0 -6
- package/content/SummaryList/__stories__/WithoutActions.d.ts +0 -3
- package/content/SummaryList/__stories__/WithoutBorders/index.js +0 -17
- package/content/SummaryList/__stories__/WithoutBorders/package.json +0 -6
- package/content/SummaryList/__stories__/WithoutBorders.d.ts +0 -3
- package/content/SummaryList/index.mdx +0 -51
- package/content/SummaryList/index.spec/index.js +0 -7
- package/content/SummaryList/index.spec/package.json +0 -6
- package/content/SummaryList/index.spec.d.ts +0 -1
- package/content/SummaryList/package.json +0 -6
- package/content/Table/Table.stories/index.js +0 -26
- package/content/Table/Table.stories/package.json +0 -6
- package/content/Table/Table.stories.d.ts +0 -27
- package/content/Table/Table.stories.playwright.json +0 -37
- package/content/Table/TableFloatingScroll/index.js +0 -81
- package/content/Table/TableFloatingScroll/package.json +0 -6
- package/content/Table/__stories__/DarkVariant/index.js +0 -47
- package/content/Table/__stories__/DarkVariant/package.json +0 -6
- package/content/Table/__stories__/DarkVariant.d.ts +0 -3
- package/content/Table/__stories__/DarkVariantWithVerticalHeaders/index.js +0 -47
- package/content/Table/__stories__/DarkVariantWithVerticalHeaders/package.json +0 -6
- package/content/Table/__stories__/DarkVariantWithVerticalHeaders.d.ts +0 -3
- package/content/Table/__stories__/Default/index.js +0 -41
- package/content/Table/__stories__/Default/package.json +0 -6
- package/content/Table/__stories__/Default.d.ts +0 -3
- package/content/Table/__stories__/DefinedWidth/index.js +0 -43
- package/content/Table/__stories__/DefinedWidth/package.json +0 -6
- package/content/Table/__stories__/DefinedWidth.d.ts +0 -3
- package/content/Table/__stories__/Densed/index.js +0 -102
- package/content/Table/__stories__/Densed/package.json +0 -6
- package/content/Table/__stories__/Densed.d.ts +0 -3
- package/content/Table/__stories__/Full/index.js +0 -91
- package/content/Table/__stories__/Full/package.json +0 -6
- package/content/Table/__stories__/Full.d.ts +0 -3
- package/content/Table/__stories__/MultipleProps/index.js +0 -71
- package/content/Table/__stories__/MultipleProps/package.json +0 -6
- package/content/Table/__stories__/MultipleProps.d.ts +0 -3
- package/content/Table/__stories__/NoData/index.js +0 -9
- package/content/Table/__stories__/NoData/package.json +0 -6
- package/content/Table/__stories__/NoData.d.ts +0 -3
- package/content/Table/__stories__/NumericDataType/index.js +0 -61
- package/content/Table/__stories__/NumericDataType/package.json +0 -6
- package/content/Table/__stories__/NumericDataType.d.ts +0 -3
- package/content/Table/__stories__/RowColors/index.js +0 -60
- package/content/Table/__stories__/RowColors/package.json +0 -6
- package/content/Table/__stories__/RowColors.d.ts +0 -3
- package/content/Table/__stories__/Stacked/index.js +0 -43
- package/content/Table/__stories__/Stacked/package.json +0 -6
- package/content/Table/__stories__/Stacked.d.ts +0 -3
- package/content/Table/__stories__/TableCaptions/index.js +0 -15
- package/content/Table/__stories__/TableCaptions/package.json +0 -6
- package/content/Table/__stories__/TableCaptions.d.ts +0 -3
- package/content/Table/__stories__/VerticalBorders/index.js +0 -47
- package/content/Table/__stories__/VerticalBorders/package.json +0 -6
- package/content/Table/__stories__/VerticalBorders.d.ts +0 -3
- package/content/Table/__stories__/VerticalHeaders/index.js +0 -41
- package/content/Table/__stories__/VerticalHeaders/package.json +0 -6
- package/content/Table/__stories__/VerticalHeaders.d.ts +0 -3
- package/content/Table/__stories__/WithFloatingScroll/index.js +0 -69
- package/content/Table/__stories__/WithFloatingScroll/package.json +0 -6
- package/content/Table/__stories__/WithFloatingScroll.d.ts +0 -3
- package/content/Table/__stories__/WithLoader/index.js +0 -65
- package/content/Table/__stories__/WithLoader/package.json +0 -6
- package/content/Table/__stories__/WithLoader.d.ts +0 -3
- package/content/Table/__stories__/WithSortFilters/index.js +0 -100
- package/content/Table/__stories__/WithSortFilters/package.json +0 -6
- package/content/Table/__stories__/WithSortFilters.d.ts +0 -3
- package/content/Table/__stories__/ZebraProp/index.js +0 -47
- package/content/Table/__stories__/ZebraProp/package.json +0 -6
- package/content/Table/__stories__/ZebraProp.d.ts +0 -3
- package/content/Table/hooks/useSort/index.js +0 -46
- package/content/Table/hooks/useSort/package.json +0 -6
- package/content/Table/index.mdx +0 -111
- package/content/Table/package.json +0 -6
- package/content/TaskList/TaskList.stories/index.js +0 -9
- package/content/TaskList/TaskList.stories/package.json +0 -6
- package/content/TaskList/TaskList.stories.d.ts +0 -10
- package/content/TaskList/__stories__/Default/index.js +0 -69
- package/content/TaskList/__stories__/Default/package.json +0 -6
- package/content/TaskList/__stories__/Default.d.ts +0 -3
- package/content/TaskList/__stories__/Dense/index.js +0 -71
- package/content/TaskList/__stories__/Dense/package.json +0 -6
- package/content/TaskList/__stories__/Dense.d.ts +0 -3
- package/content/TaskList/index.mdx +0 -30
- package/content/TaskList/package.json +0 -6
- package/content/Timeline/Timeline.stories/index.js +0 -9
- package/content/Timeline/Timeline.stories/package.json +0 -6
- package/content/Timeline/Timeline.stories.d.ts +0 -10
- package/content/Timeline/__stories__/Default/index.js +0 -119
- package/content/Timeline/__stories__/Default/package.json +0 -6
- package/content/Timeline/__stories__/Default.d.ts +0 -3
- package/content/Timeline/__stories__/Dense/index.js +0 -121
- package/content/Timeline/__stories__/Dense/package.json +0 -6
- package/content/Timeline/__stories__/Dense.d.ts +0 -3
- package/content/Timeline/index.mdx +0 -33
- package/content/Timeline/package.json +0 -6
- package/content/package.json +0 -6
- package/custom.d/package.json +0 -6
- package/feedback/CopyToClipboard/CopyToClipboard.stories/index.js +0 -9
- package/feedback/CopyToClipboard/CopyToClipboard.stories/package.json +0 -6
- package/feedback/CopyToClipboard/CopyToClipboard.stories.d.ts +0 -10
- package/feedback/CopyToClipboard/CopyToClipboard.stories.playwright.json +0 -53
- package/feedback/CopyToClipboard/__stories__/Banner/index.js +0 -14
- package/feedback/CopyToClipboard/__stories__/Banner/package.json +0 -6
- package/feedback/CopyToClipboard/__stories__/Banner.d.ts +0 -3
- package/feedback/CopyToClipboard/__stories__/Default/index.js +0 -20
- package/feedback/CopyToClipboard/__stories__/Default/package.json +0 -6
- package/feedback/CopyToClipboard/__stories__/Default.d.ts +0 -3
- package/feedback/CopyToClipboard/__stories__/Dense/index.js +0 -18
- package/feedback/CopyToClipboard/__stories__/Dense/package.json +0 -6
- package/feedback/CopyToClipboard/__stories__/Dense.d.ts +0 -3
- package/feedback/CopyToClipboard/index.mdx +0 -28
- package/feedback/CopyToClipboard/package.json +0 -6
- package/feedback/ErrorSummary/ErrorSummary.stories/index.js +0 -14
- package/feedback/ErrorSummary/ErrorSummary.stories/package.json +0 -6
- package/feedback/ErrorSummary/ErrorSummary.stories.d.ts +0 -15
- package/feedback/ErrorSummary/ErrorSummary.stories.playwright.json +0 -27
- package/feedback/ErrorSummary/__snapshots__/index.spec.tsx.snap +0 -7
- package/feedback/ErrorSummary/__stories__/Default/index.js +0 -11
- package/feedback/ErrorSummary/__stories__/Default/package.json +0 -6
- package/feedback/ErrorSummary/__stories__/Default.d.ts +0 -3
- package/feedback/ErrorSummary/__stories__/Dense/index.js +0 -13
- package/feedback/ErrorSummary/__stories__/Dense/package.json +0 -6
- package/feedback/ErrorSummary/__stories__/Dense.d.ts +0 -3
- package/feedback/ErrorSummary/__stories__/LinkedToCheckbox/index.js +0 -28
- package/feedback/ErrorSummary/__stories__/LinkedToCheckbox/package.json +0 -6
- package/feedback/ErrorSummary/__stories__/LinkedToCheckbox.d.ts +0 -3
- package/feedback/ErrorSummary/__stories__/LinkedToField/index.js +0 -29
- package/feedback/ErrorSummary/__stories__/LinkedToField/package.json +0 -6
- package/feedback/ErrorSummary/__stories__/LinkedToField.d.ts +0 -3
- package/feedback/ErrorSummary/__stories__/LinkedToInput/index.js +0 -28
- package/feedback/ErrorSummary/__stories__/LinkedToInput/package.json +0 -6
- package/feedback/ErrorSummary/__stories__/LinkedToInput.d.ts +0 -3
- package/feedback/ErrorSummary/__stories__/WithBackLinkAndButton/index.js +0 -33
- package/feedback/ErrorSummary/__stories__/WithBackLinkAndButton/package.json +0 -6
- package/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.d.ts +0 -3
- package/feedback/ErrorSummary/index.mdx +0 -54
- package/feedback/ErrorSummary/index.spec/index.js +0 -6
- package/feedback/ErrorSummary/index.spec/package.json +0 -6
- package/feedback/ErrorSummary/index.spec.d.ts +0 -1
- package/feedback/ErrorSummary/package.json +0 -6
- package/feedback/NotificationBanner/NotificationBanner.stories/index.js +0 -12
- package/feedback/NotificationBanner/NotificationBanner.stories/package.json +0 -6
- package/feedback/NotificationBanner/NotificationBanner.stories.d.ts +0 -13
- package/feedback/NotificationBanner/NotificationBanner.stories.playwright.json +0 -49
- package/feedback/NotificationBanner/__snapshots__/index.spec.tsx.snap +0 -23
- package/feedback/NotificationBanner/__stories__/Default/index.js +0 -12
- package/feedback/NotificationBanner/__stories__/Default/package.json +0 -6
- package/feedback/NotificationBanner/__stories__/Default.d.ts +0 -3
- package/feedback/NotificationBanner/__stories__/Dense/index.js +0 -13
- package/feedback/NotificationBanner/__stories__/Dense/package.json +0 -6
- package/feedback/NotificationBanner/__stories__/Dense.d.ts +0 -3
- package/feedback/NotificationBanner/__stories__/Success/index.js +0 -13
- package/feedback/NotificationBanner/__stories__/Success/package.json +0 -6
- package/feedback/NotificationBanner/__stories__/Success.d.ts +0 -3
- package/feedback/NotificationBanner/index.mdx +0 -47
- package/feedback/NotificationBanner/index.spec/index.js +0 -17
- package/feedback/NotificationBanner/index.spec/package.json +0 -6
- package/feedback/NotificationBanner/index.spec.d.ts +0 -1
- package/feedback/NotificationBanner/package.json +0 -6
- package/feedback/PhaseBanner/PhaseBanner.stories/index.js +0 -10
- package/feedback/PhaseBanner/PhaseBanner.stories/package.json +0 -6
- package/feedback/PhaseBanner/PhaseBanner.stories.d.ts +0 -11
- package/feedback/PhaseBanner/PhaseBanner.stories.playwright.json +0 -21
- package/feedback/PhaseBanner/__stories__/Default/index.js +0 -10
- package/feedback/PhaseBanner/__stories__/Default/package.json +0 -6
- package/feedback/PhaseBanner/__stories__/Default.d.ts +0 -3
- package/feedback/PhaseBanner/__stories__/Underlined/index.js +0 -12
- package/feedback/PhaseBanner/__stories__/Underlined/package.json +0 -6
- package/feedback/PhaseBanner/__stories__/Underlined.d.ts +0 -3
- package/feedback/PhaseBanner/index.mdx +0 -37
- package/feedback/PhaseBanner/package.json +0 -6
- package/feedback/WarningText/WarningText.stories/index.js +0 -11
- package/feedback/WarningText/WarningText.stories/package.json +0 -6
- package/feedback/WarningText/WarningText.stories.d.ts +0 -12
- package/feedback/WarningText/__snapshots__/index.spec.tsx.snap +0 -7
- package/feedback/WarningText/__stories__/AssistiveText/index.js +0 -9
- package/feedback/WarningText/__stories__/AssistiveText/package.json +0 -6
- package/feedback/WarningText/__stories__/AssistiveText.d.ts +0 -3
- package/feedback/WarningText/__stories__/Default/index.js +0 -7
- package/feedback/WarningText/__stories__/Default/package.json +0 -6
- package/feedback/WarningText/__stories__/Default.d.ts +0 -3
- package/feedback/WarningText/__stories__/Dense/index.js +0 -9
- package/feedback/WarningText/__stories__/Dense/package.json +0 -6
- package/feedback/WarningText/__stories__/Dense.d.ts +0 -3
- package/feedback/WarningText/index.mdx +0 -25
- package/feedback/WarningText/index.spec/index.js +0 -6
- package/feedback/WarningText/index.spec/package.json +0 -6
- package/feedback/WarningText/index.spec.d.ts +0 -1
- package/feedback/WarningText/package.json +0 -6
- package/feedback/package.json +0 -6
- package/form/AutoComplete/AutoComplete.stories/index.js +0 -16
- package/form/AutoComplete/AutoComplete.stories/package.json +0 -6
- package/form/AutoComplete/AutoComplete.stories.d.ts +0 -17
- package/form/AutoComplete/AutoComplete.stories.playwright.json +0 -33
- package/form/AutoComplete/Status/package.json +0 -6
- package/form/AutoComplete/__stories__/Default/index.js +0 -14
- package/form/AutoComplete/__stories__/Default/package.json +0 -6
- package/form/AutoComplete/__stories__/Default.d.ts +0 -3
- package/form/AutoComplete/__stories__/Multiple/index.js +0 -17
- package/form/AutoComplete/__stories__/Multiple/package.json +0 -6
- package/form/AutoComplete/__stories__/Multiple.d.ts +0 -3
- package/form/AutoComplete/__stories__/MultipleShowingTwoSelected/index.js +0 -16
- package/form/AutoComplete/__stories__/MultipleShowingTwoSelected/package.json +0 -6
- package/form/AutoComplete/__stories__/MultipleShowingTwoSelected.d.ts +0 -3
- package/form/AutoComplete/__stories__/MultipleWithDefaultValues/index.js +0 -16
- package/form/AutoComplete/__stories__/MultipleWithDefaultValues/package.json +0 -6
- package/form/AutoComplete/__stories__/MultipleWithDefaultValues.d.ts +0 -3
- package/form/AutoComplete/__stories__/MultipleWithMinLength/index.js +0 -19
- package/form/AutoComplete/__stories__/MultipleWithMinLength/package.json +0 -6
- package/form/AutoComplete/__stories__/MultipleWithMinLength.d.ts +0 -3
- package/form/AutoComplete/__stories__/WithAutoSelect/index.js +0 -29
- package/form/AutoComplete/__stories__/WithAutoSelect/package.json +0 -6
- package/form/AutoComplete/__stories__/WithAutoSelect.d.ts +0 -3
- package/form/AutoComplete/__stories__/WithDefaultValue/index.js +0 -15
- package/form/AutoComplete/__stories__/WithDefaultValue/package.json +0 -6
- package/form/AutoComplete/__stories__/WithDefaultValue.d.ts +0 -3
- package/form/AutoComplete/__stories__/WithMinLength/index.js +0 -16
- package/form/AutoComplete/__stories__/WithMinLength/package.json +0 -6
- package/form/AutoComplete/__stories__/WithMinLength.d.ts +0 -3
- package/form/AutoComplete/__stories__/WithPlaceHolder/index.js +0 -15
- package/form/AutoComplete/__stories__/WithPlaceHolder/package.json +0 -6
- package/form/AutoComplete/__stories__/WithPlaceHolder.d.ts +0 -3
- package/form/AutoComplete/__stories__/WithShowAllValues/index.js +0 -14
- package/form/AutoComplete/__stories__/WithShowAllValues/package.json +0 -6
- package/form/AutoComplete/__stories__/WithShowAllValues.d.ts +0 -3
- package/form/AutoComplete/__stories__/utils/index.js +0 -0
- package/form/AutoComplete/__stories__/utils/package.json +0 -6
- package/form/AutoComplete/__stories__/utils.d.ts +0 -0
- package/form/AutoComplete/index.mdx +0 -70
- package/form/AutoComplete/package.json +0 -6
- package/form/AutoComplete/utils/index.js +0 -34
- package/form/AutoComplete/utils/package.json +0 -6
- package/form/Button/Button.stories/index.js +0 -20
- package/form/Button/Button.stories/package.json +0 -6
- package/form/Button/Button.stories.d.ts +0 -21
- package/form/Button/Button.stories.playwright.json +0 -115
- package/form/Button/ButtonLink/index.js +0 -3
- package/form/Button/ButtonLink/package.json +0 -6
- package/form/Button/CallToAction/index.js +0 -3
- package/form/Button/CallToAction/package.json +0 -6
- package/form/Button/ThemeToggleButton/index.js +0 -45
- package/form/Button/ThemeToggleButton/package.json +0 -6
- package/form/Button/__snapshots__/index.spec.tsx.snap +0 -17
- package/form/Button/__stories__/Back/index.js +0 -11
- package/form/Button/__stories__/Back/package.json +0 -6
- package/form/Button/__stories__/Back.d.ts +0 -4
- package/form/Button/__stories__/ButtonLinkButton/index.js +0 -16
- package/form/Button/__stories__/ButtonLinkButton/package.json +0 -6
- package/form/Button/__stories__/ButtonLinkButton.d.ts +0 -6
- package/form/Button/__stories__/CallToActionButton/index.js +0 -12
- package/form/Button/__stories__/CallToActionButton/package.json +0 -6
- package/form/Button/__stories__/CallToActionButton.d.ts +0 -3
- package/form/Button/__stories__/Dense/index.js +0 -10
- package/form/Button/__stories__/Dense/package.json +0 -6
- package/form/Button/__stories__/Dense.d.ts +0 -3
- package/form/Button/__stories__/Disabled/index.js +0 -11
- package/form/Button/__stories__/Disabled/package.json +0 -6
- package/form/Button/__stories__/Disabled.d.ts +0 -3
- package/form/Button/__stories__/GroupingButtons/index.js +0 -9
- package/form/Button/__stories__/GroupingButtons/package.json +0 -6
- package/form/Button/__stories__/GroupingButtons.d.ts +0 -3
- package/form/Button/__stories__/GroupingButtonsAndLinks/index.js +0 -10
- package/form/Button/__stories__/GroupingButtonsAndLinks/package.json +0 -6
- package/form/Button/__stories__/GroupingButtonsAndLinks.d.ts +0 -3
- package/form/Button/__stories__/Primary/index.js +0 -9
- package/form/Button/__stories__/Primary/package.json +0 -6
- package/form/Button/__stories__/Primary.d.ts +0 -3
- package/form/Button/__stories__/Secondary/index.js +0 -10
- package/form/Button/__stories__/Secondary/package.json +0 -6
- package/form/Button/__stories__/Secondary.d.ts +0 -3
- package/form/Button/__stories__/ThemeToggle/index.js +0 -7
- package/form/Button/__stories__/ThemeToggle/package.json +0 -6
- package/form/Button/__stories__/ThemeToggle.d.ts +0 -3
- package/form/Button/__stories__/Warning/index.js +0 -10
- package/form/Button/__stories__/Warning/package.json +0 -6
- package/form/Button/__stories__/Warning.d.ts +0 -3
- package/form/Button/__stories__/WithVariantLink/index.js +0 -12
- package/form/Button/__stories__/WithVariantLink/package.json +0 -6
- package/form/Button/__stories__/WithVariantLink.d.ts +0 -3
- package/form/Button/index.mdx +0 -111
- package/form/Button/index.spec/index.js +0 -7
- package/form/Button/index.spec/package.json +0 -6
- package/form/Button/index.spec.d.ts +0 -1
- package/form/Button/package.json +0 -6
- package/form/Checkbox/Checkbox.stories/index.js +0 -18
- package/form/Checkbox/Checkbox.stories/package.json +0 -6
- package/form/Checkbox/Checkbox.stories.d.ts +0 -19
- package/form/Checkbox/Checkbox.stories.playwright.json +0 -55
- package/form/Checkbox/__stories__/ConditionalReveal/index.js +0 -24
- package/form/Checkbox/__stories__/ConditionalReveal/package.json +0 -6
- package/form/Checkbox/__stories__/ConditionalReveal.d.ts +0 -3
- package/form/Checkbox/__stories__/Default/index.js +0 -22
- package/form/Checkbox/__stories__/Default/package.json +0 -6
- package/form/Checkbox/__stories__/Default.d.ts +0 -3
- package/form/Checkbox/__stories__/Dense/index.js +0 -24
- package/form/Checkbox/__stories__/Dense/package.json +0 -6
- package/form/Checkbox/__stories__/Dense.d.ts +0 -3
- package/form/Checkbox/__stories__/Inline/index.js +0 -21
- package/form/Checkbox/__stories__/Inline/package.json +0 -6
- package/form/Checkbox/__stories__/Inline.d.ts +0 -3
- package/form/Checkbox/__stories__/InlineWithDivider/index.js +0 -22
- package/form/Checkbox/__stories__/InlineWithDivider/package.json +0 -6
- package/form/Checkbox/__stories__/InlineWithDivider.d.ts +0 -3
- package/form/Checkbox/__stories__/MultipleQuestions/index.js +0 -24
- package/form/Checkbox/__stories__/MultipleQuestions/package.json +0 -6
- package/form/Checkbox/__stories__/MultipleQuestions.d.ts +0 -3
- package/form/Checkbox/__stories__/NoneAnswer/index.js +0 -18
- package/form/Checkbox/__stories__/NoneAnswer/package.json +0 -6
- package/form/Checkbox/__stories__/NoneAnswer.d.ts +0 -3
- package/form/Checkbox/__stories__/NoneAnswerWithError/index.js +0 -24
- package/form/Checkbox/__stories__/NoneAnswerWithError/package.json +0 -6
- package/form/Checkbox/__stories__/NoneAnswerWithError.d.ts +0 -3
- package/form/Checkbox/__stories__/WithErrorMessage/index.js +0 -25
- package/form/Checkbox/__stories__/WithErrorMessage/package.json +0 -6
- package/form/Checkbox/__stories__/WithErrorMessage.d.ts +0 -3
- package/form/Checkbox/__stories__/WithHint/index.js +0 -25
- package/form/Checkbox/__stories__/WithHint/package.json +0 -6
- package/form/Checkbox/__stories__/WithHint.d.ts +0 -3
- package/form/Checkbox/index.mdx +0 -83
- package/form/Checkbox/package.json +0 -6
- package/form/DateInputContainer/DateInputContainer.stories/index.js +0 -13
- package/form/DateInputContainer/DateInputContainer.stories/package.json +0 -6
- package/form/DateInputContainer/DateInputContainer.stories.d.ts +0 -14
- package/form/DateInputContainer/DateInputContainer.stories.playwright.json +0 -61
- package/form/DateInputContainer/__stories__/Default/index.js +0 -22
- package/form/DateInputContainer/__stories__/Default/package.json +0 -6
- package/form/DateInputContainer/__stories__/Default.d.ts +0 -3
- package/form/DateInputContainer/__stories__/Dense/index.js +0 -21
- package/form/DateInputContainer/__stories__/Dense/package.json +0 -6
- package/form/DateInputContainer/__stories__/Dense.d.ts +0 -3
- package/form/DateInputContainer/__stories__/MultipleQuestions/index.js +0 -22
- package/form/DateInputContainer/__stories__/MultipleQuestions/package.json +0 -6
- package/form/DateInputContainer/__stories__/MultipleQuestions.d.ts +0 -3
- package/form/DateInputContainer/__stories__/WithErrorMessage/index.js +0 -33
- package/form/DateInputContainer/__stories__/WithErrorMessage/package.json +0 -6
- package/form/DateInputContainer/__stories__/WithErrorMessage.d.ts +0 -3
- package/form/DateInputContainer/__stories__/WithErrorMessageForSingleField/index.js +0 -30
- package/form/DateInputContainer/__stories__/WithErrorMessageForSingleField/package.json +0 -6
- package/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.d.ts +0 -3
- package/form/DateInputContainer/index.mdx +0 -46
- package/form/DateInputContainer/package.json +0 -6
- package/form/ErrorMessage/ErrorMessage.stories/index.js +0 -11
- package/form/ErrorMessage/ErrorMessage.stories/package.json +0 -6
- package/form/ErrorMessage/ErrorMessage.stories.d.ts +0 -12
- package/form/ErrorMessage/__stories__/DateInputError/index.js +0 -22
- package/form/ErrorMessage/__stories__/DateInputError/package.json +0 -6
- package/form/ErrorMessage/__stories__/DateInputError.d.ts +0 -3
- package/form/ErrorMessage/__stories__/Default/index.js +0 -30
- package/form/ErrorMessage/__stories__/Default/package.json +0 -6
- package/form/ErrorMessage/__stories__/Default.d.ts +0 -3
- package/form/ErrorMessage/__stories__/ErrorMessageOnly/index.js +0 -10
- package/form/ErrorMessage/__stories__/ErrorMessageOnly/package.json +0 -6
- package/form/ErrorMessage/__stories__/ErrorMessageOnly.d.ts +0 -3
- package/form/ErrorMessage/index.mdx +0 -23
- package/form/ErrorMessage/package.json +0 -6
- package/form/FieldContainer/package.json +0 -6
- package/form/FileUpload/FileUpload.stories/index.js +0 -9
- package/form/FileUpload/FileUpload.stories/package.json +0 -6
- package/form/FileUpload/FileUpload.stories.d.ts +0 -10
- package/form/FileUpload/__stories__/Default/index.js +0 -15
- package/form/FileUpload/__stories__/Default/package.json +0 -6
- package/form/FileUpload/__stories__/Default.d.ts +0 -3
- package/form/FileUpload/__stories__/WithErrorMessage/index.js +0 -19
- package/form/FileUpload/__stories__/WithErrorMessage/package.json +0 -6
- package/form/FileUpload/__stories__/WithErrorMessage.d.ts +0 -3
- package/form/FileUpload/index.mdx +0 -30
- package/form/FileUpload/package.json +0 -6
- package/form/Form/package.json +0 -6
- package/form/LabelContainer/package.json +0 -6
- package/form/RadioContainer/RadioContainer.stories/index.js +0 -18
- package/form/RadioContainer/RadioContainer.stories/package.json +0 -6
- package/form/RadioContainer/RadioContainer.stories.d.ts +0 -19
- package/form/RadioContainer/RadioContainer.stories.playwright.json +0 -49
- package/form/RadioContainer/__stories__/ConditionalReveal/index.js +0 -24
- package/form/RadioContainer/__stories__/ConditionalReveal/package.json +0 -6
- package/form/RadioContainer/__stories__/ConditionalReveal.d.ts +0 -3
- package/form/RadioContainer/__stories__/Default/index.js +0 -20
- package/form/RadioContainer/__stories__/Default/package.json +0 -6
- package/form/RadioContainer/__stories__/Default.d.ts +0 -3
- package/form/RadioContainer/__stories__/Dense/index.js +0 -22
- package/form/RadioContainer/__stories__/Dense/package.json +0 -6
- package/form/RadioContainer/__stories__/Dense.d.ts +0 -3
- package/form/RadioContainer/__stories__/Inline/index.js +0 -21
- package/form/RadioContainer/__stories__/Inline/package.json +0 -6
- package/form/RadioContainer/__stories__/Inline.d.ts +0 -3
- package/form/RadioContainer/__stories__/InlineWithDivider/index.js +0 -22
- package/form/RadioContainer/__stories__/InlineWithDivider/package.json +0 -6
- package/form/RadioContainer/__stories__/InlineWithDivider.d.ts +0 -3
- package/form/RadioContainer/__stories__/MultipleQuestions/index.js +0 -24
- package/form/RadioContainer/__stories__/MultipleQuestions/package.json +0 -6
- package/form/RadioContainer/__stories__/MultipleQuestions.d.ts +0 -3
- package/form/RadioContainer/__stories__/NoneAnswer/index.js +0 -22
- package/form/RadioContainer/__stories__/NoneAnswer/package.json +0 -6
- package/form/RadioContainer/__stories__/NoneAnswer.d.ts +0 -3
- package/form/RadioContainer/__stories__/WithErrorMessage/index.js +0 -27
- package/form/RadioContainer/__stories__/WithErrorMessage/package.json +0 -6
- package/form/RadioContainer/__stories__/WithErrorMessage.d.ts +0 -3
- package/form/RadioContainer/__stories__/WithHints/index.js +0 -27
- package/form/RadioContainer/__stories__/WithHints/package.json +0 -6
- package/form/RadioContainer/__stories__/WithHints.d.ts +0 -3
- package/form/RadioContainer/__stories__/WithMediumLegend/index.js +0 -22
- package/form/RadioContainer/__stories__/WithMediumLegend/package.json +0 -6
- package/form/RadioContainer/__stories__/WithMediumLegend.d.ts +0 -3
- package/form/RadioContainer/index.mdx +0 -84
- package/form/RadioContainer/package.json +0 -6
- package/form/SearchContainer/package.json +0 -6
- package/form/SelectContainer/SelectContainer.stories/index.js +0 -12
- package/form/SelectContainer/SelectContainer.stories/package.json +0 -6
- package/form/SelectContainer/SelectContainer.stories.d.ts +0 -13
- package/form/SelectContainer/SelectContainer.stories.playwright.json +0 -21
- package/form/SelectContainer/__stories__/Default/index.js +0 -20
- package/form/SelectContainer/__stories__/Default/package.json +0 -6
- package/form/SelectContainer/__stories__/Default.d.ts +0 -3
- package/form/SelectContainer/__stories__/Dense/index.js +0 -21
- package/form/SelectContainer/__stories__/Dense/package.json +0 -6
- package/form/SelectContainer/__stories__/Dense.d.ts +0 -3
- package/form/SelectContainer/__stories__/DisabledInput/index.js +0 -22
- package/form/SelectContainer/__stories__/DisabledInput/package.json +0 -6
- package/form/SelectContainer/__stories__/DisabledInput.d.ts +0 -3
- package/form/SelectContainer/__stories__/WithHint/index.js +0 -24
- package/form/SelectContainer/__stories__/WithHint/package.json +0 -6
- package/form/SelectContainer/__stories__/WithHint.d.ts +0 -3
- package/form/SelectContainer/index.mdx +0 -50
- package/form/SelectContainer/package.json +0 -6
- package/form/SingleCharacterInputs/SingleCharacterInput.stories/index.js +0 -12
- package/form/SingleCharacterInputs/SingleCharacterInput.stories/package.json +0 -6
- package/form/SingleCharacterInputs/SingleCharacterInput.stories.d.ts +0 -13
- package/form/SingleCharacterInputs/__stories__/Default/index.js +0 -33
- package/form/SingleCharacterInputs/__stories__/Default/package.json +0 -6
- package/form/SingleCharacterInputs/__stories__/Default.d.ts +0 -3
- package/form/SingleCharacterInputs/__stories__/WithDefaultError/index.js +0 -37
- package/form/SingleCharacterInputs/__stories__/WithDefaultError/package.json +0 -6
- package/form/SingleCharacterInputs/__stories__/WithDefaultError.d.ts +0 -3
- package/form/SingleCharacterInputs/__stories__/WithErrorMessageInvalidCode/index.js +0 -47
- package/form/SingleCharacterInputs/__stories__/WithErrorMessageInvalidCode/package.json +0 -6
- package/form/SingleCharacterInputs/__stories__/WithErrorMessageInvalidCode.d.ts +0 -3
- package/form/SingleCharacterInputs/__stories__/WithErrorMessageLessDigit/index.js +0 -41
- package/form/SingleCharacterInputs/__stories__/WithErrorMessageLessDigit/package.json +0 -6
- package/form/SingleCharacterInputs/__stories__/WithErrorMessageLessDigit.d.ts +0 -3
- package/form/SingleCharacterInputs/index.mdx +0 -30
- package/form/SingleCharacterInputs/package.json +0 -6
- package/form/TextArea/TextArea.stories/index.js +0 -16
- package/form/TextArea/TextArea.stories/package.json +0 -6
- package/form/TextArea/TextArea.stories.d.ts +0 -17
- package/form/TextArea/TextArea.stories.playwright.json +0 -59
- package/form/TextArea/__stories__/Default/index.js +0 -14
- package/form/TextArea/__stories__/Default/package.json +0 -6
- package/form/TextArea/__stories__/Default.d.ts +0 -3
- package/form/TextArea/__stories__/Dense/index.js +0 -12
- package/form/TextArea/__stories__/Dense/package.json +0 -6
- package/form/TextArea/__stories__/Dense.d.ts +0 -3
- package/form/TextArea/__stories__/DisabledInput/index.js +0 -19
- package/form/TextArea/__stories__/DisabledInput/package.json +0 -6
- package/form/TextArea/__stories__/DisabledInput.d.ts +0 -3
- package/form/TextArea/__stories__/LimitedCharacters/index.js +0 -22
- package/form/TextArea/__stories__/LimitedCharacters/package.json +0 -6
- package/form/TextArea/__stories__/LimitedCharacters.d.ts +0 -3
- package/form/TextArea/__stories__/MultipleQuestions/index.js +0 -15
- package/form/TextArea/__stories__/MultipleQuestions/package.json +0 -6
- package/form/TextArea/__stories__/MultipleQuestions.d.ts +0 -3
- package/form/TextArea/__stories__/WithDeclaredRows/index.js +0 -19
- package/form/TextArea/__stories__/WithDeclaredRows/package.json +0 -6
- package/form/TextArea/__stories__/WithDeclaredRows.d.ts +0 -3
- package/form/TextArea/__stories__/WithErrorMessage/index.js +0 -25
- package/form/TextArea/__stories__/WithErrorMessage/package.json +0 -6
- package/form/TextArea/__stories__/WithErrorMessage.d.ts +0 -3
- package/form/TextArea/__stories__/WithHint/index.js +0 -18
- package/form/TextArea/__stories__/WithHint/package.json +0 -6
- package/form/TextArea/__stories__/WithHint.d.ts +0 -3
- package/form/TextArea/index.mdx +0 -74
- package/form/TextArea/package.json +0 -6
- package/form/TextInput/TextInput.stories/index.js +0 -18
- package/form/TextInput/TextInput.stories/package.json +0 -6
- package/form/TextInput/TextInput.stories.d.ts +0 -19
- package/form/TextInput/TextInput.stories.playwright.json +0 -43
- package/form/TextInput/__stories__/AskingForNumbers/index.js +0 -20
- package/form/TextInput/__stories__/AskingForNumbers/package.json +0 -6
- package/form/TextInput/__stories__/AskingForNumbers.d.ts +0 -3
- package/form/TextInput/__stories__/Default/index.js +0 -14
- package/form/TextInput/__stories__/Default/package.json +0 -6
- package/form/TextInput/__stories__/Default.d.ts +0 -3
- package/form/TextInput/__stories__/Dense/index.js +0 -12
- package/form/TextInput/__stories__/Dense/package.json +0 -6
- package/form/TextInput/__stories__/Dense.d.ts +0 -3
- package/form/TextInput/__stories__/DisabledInput/index.js +0 -19
- package/form/TextInput/__stories__/DisabledInput/package.json +0 -6
- package/form/TextInput/__stories__/DisabledInput.d.ts +0 -3
- package/form/TextInput/__stories__/DisabledInputWithValue/index.js +0 -25
- package/form/TextInput/__stories__/DisabledInputWithValue/package.json +0 -6
- package/form/TextInput/__stories__/DisabledInputWithValue.d.ts +0 -3
- package/form/TextInput/__stories__/FixedWidths/index.js +0 -40
- package/form/TextInput/__stories__/FixedWidths/package.json +0 -6
- package/form/TextInput/__stories__/FixedWidths.d.ts +0 -3
- package/form/TextInput/__stories__/FluidWidths/index.js +0 -40
- package/form/TextInput/__stories__/FluidWidths/package.json +0 -6
- package/form/TextInput/__stories__/FluidWidths.d.ts +0 -3
- package/form/TextInput/__stories__/MultipleQuestions/index.js +0 -11
- package/form/TextInput/__stories__/MultipleQuestions/package.json +0 -6
- package/form/TextInput/__stories__/MultipleQuestions.d.ts +0 -3
- package/form/TextInput/__stories__/WithErrorMessage/index.js +0 -25
- package/form/TextInput/__stories__/WithErrorMessage/package.json +0 -6
- package/form/TextInput/__stories__/WithErrorMessage.d.ts +0 -3
- package/form/TextInput/__stories__/WithHint/index.js +0 -18
- package/form/TextInput/__stories__/WithHint/package.json +0 -6
- package/form/TextInput/__stories__/WithHint.d.ts +0 -3
- package/form/TextInput/index.mdx +0 -90
- package/form/TextInput/package.json +0 -6
- package/form/package.json +0 -6
- package/govgr/Footer/Copyright/index.js +0 -37
- package/govgr/Footer/Copyright/package.json +0 -6
- package/govgr/Footer/HellenicRepublicLogo/index.js +0 -3
- package/govgr/Footer/HellenicRepublicLogo/package.json +0 -6
- package/govgr/Footer/LicenseCCSA/index.js +0 -15
- package/govgr/Footer/LicenseCCSA/package.json +0 -6
- package/govgr/Footer/index.mdx +0 -101
- package/govgr/Footer/logo/index.js +0 -1
- package/govgr/Footer/logo/package.json +0 -6
- package/govgr/Footer/logos/logo-el/index.js +0 -1
- package/govgr/Footer/logos/logo-el/package.json +0 -6
- package/govgr/Footer/logos/logo-en/index.js +0 -1
- package/govgr/Footer/logos/logo-en/package.json +0 -6
- package/govgr/Footer/package.json +0 -6
- package/govgr/GovGRLogo/govgr-logo.svg +0 -1
- package/govgr/GovGRLogo/logo/index.js +0 -1
- package/govgr/GovGRLogo/logo/package.json +0 -6
- package/govgr/GovGRLogo/package.json +0 -6
- package/govgr/images/govgr-logo-base64/index.js +0 -1
- package/govgr/images/govgr-logo-base64/package.json +0 -6
- package/govgr/images/govgr-logo-blue-base64/index.js +0 -1
- package/govgr/images/govgr-logo-blue-base64/package.json +0 -6
- package/govgr/images/greek-government-base64/index.js +0 -1
- package/govgr/images/greek-government-base64/package.json +0 -6
- package/govgr/images/grnet-logo-base64/index.js +0 -1
- package/govgr/images/grnet-logo-base64/package.json +0 -6
- package/govgr/images/minedu-logo-base64/index.js +0 -1
- package/govgr/images/minedu-logo-base64/package.json +0 -6
- package/govgr/images/minedu-logo-black-base64/index.js +0 -1
- package/govgr/images/minedu-logo-black-base64/package.json +0 -6
- package/govgr/images/package.json +0 -6
- package/govgr/package.json +0 -6
- package/i18n/I18nText/index.js +0 -66
- package/i18n/I18nText/package.json +0 -6
- package/i18n/locales/el/index.js +0 -109
- package/i18n/locales/el/package.json +0 -6
- package/i18n/locales/en/index.js +0 -103
- package/i18n/locales/en/package.json +0 -6
- package/i18n/package.json +0 -6
- package/icons/Icon/package.json +0 -6
- package/icons/ImageLogo/package.json +0 -6
- package/icons/ImageLogoSet/package.json +0 -6
- package/icons/package.json +0 -6
- package/introduction.md +0 -11
- package/layouts/Admin/package.json +0 -6
- package/layouts/Basic/Aside/package.json +0 -6
- package/layouts/Basic/Basic.stories/index.js +0 -10
- package/layouts/Basic/Basic.stories/package.json +0 -6
- package/layouts/Basic/Basic.stories.d.ts +0 -11
- package/layouts/Basic/Bottom/__stories__/Default/index.js +0 -15
- package/layouts/Basic/Bottom/__stories__/Default/package.json +0 -6
- package/layouts/Basic/Bottom/__stories__/Default.d.ts +0 -3
- package/layouts/Basic/Bottom/index.mdx +0 -22
- package/layouts/Basic/Bottom/package.json +0 -6
- package/layouts/Basic/Container/__stories__/Default/index.js +0 -13
- package/layouts/Basic/Container/__stories__/Default/package.json +0 -6
- package/layouts/Basic/Container/__stories__/Default.d.ts +0 -3
- package/layouts/Basic/Container/index.mdx +0 -23
- package/layouts/Basic/Container/package.json +0 -6
- package/layouts/Basic/Main/__stories__/Default/index.js +0 -13
- package/layouts/Basic/Main/__stories__/Default/package.json +0 -6
- package/layouts/Basic/Main/__stories__/Default.d.ts +0 -3
- package/layouts/Basic/Main/index.mdx +0 -21
- package/layouts/Basic/Main/package.json +0 -6
- package/layouts/Basic/Masthead/index.d.ts +0 -5
- package/layouts/Basic/Masthead/index.js +0 -5
- package/layouts/Basic/Masthead/package.json +0 -6
- package/layouts/Basic/Top/__stories__/Default/index.js +0 -13
- package/layouts/Basic/Top/__stories__/Default/package.json +0 -6
- package/layouts/Basic/Top/__stories__/Default.d.ts +0 -3
- package/layouts/Basic/Top/index.mdx +0 -23
- package/layouts/Basic/Top/package.json +0 -6
- package/layouts/Basic/__snapshots__/index.spec.tsx.snap +0 -109
- package/layouts/Basic/__stories__/Default/index.js +0 -10
- package/layouts/Basic/__stories__/Default/package.json +0 -6
- package/layouts/Basic/__stories__/Default.d.ts +0 -3
- package/layouts/Basic/__stories__/MultipleRowsLayout/index.js +0 -13
- package/layouts/Basic/__stories__/MultipleRowsLayout/package.json +0 -6
- package/layouts/Basic/__stories__/MultipleRowsLayout.d.ts +0 -3
- package/layouts/Basic/__stories__/TwoThirdsOneThirdColumns/index.js +0 -13
- package/layouts/Basic/__stories__/TwoThirdsOneThirdColumns/package.json +0 -6
- package/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.d.ts +0 -3
- package/layouts/Basic/index.mdx +0 -42
- package/layouts/Basic/index.spec/index.js +0 -8
- package/layouts/Basic/index.spec/package.json +0 -6
- package/layouts/Basic/index.spec.d.ts +0 -1
- package/layouts/Basic/package.json +0 -6
- package/layouts/Grid/Grid.stories/index.js +0 -9
- package/layouts/Grid/Grid.stories/package.json +0 -6
- package/layouts/Grid/Grid.stories.d.ts +0 -10
- package/layouts/Grid/__stories__/Default/index.js +0 -73
- package/layouts/Grid/__stories__/Default/package.json +0 -6
- package/layouts/Grid/__stories__/Default.d.ts +0 -3
- package/layouts/Grid/__stories__/Inline/index.js +0 -74
- package/layouts/Grid/__stories__/Inline/package.json +0 -6
- package/layouts/Grid/__stories__/Inline.d.ts +0 -3
- package/layouts/Grid/__stories__/ResponsiveSpacing/index.js +0 -72
- package/layouts/Grid/__stories__/ResponsiveSpacing/package.json +0 -6
- package/layouts/Grid/__stories__/ResponsiveSpacing.d.ts +0 -3
- package/layouts/Grid/index.mdx +0 -39
- package/layouts/Grid/package.json +0 -6
- package/layouts/Hidden/package.json +0 -6
- package/layouts/Screen/Screen.stories/index.js +0 -10
- package/layouts/Screen/Screen.stories/package.json +0 -6
- package/layouts/Screen/Screen.stories.d.ts +0 -11
- package/layouts/Screen/__stories__/Default/index.js +0 -18
- package/layouts/Screen/__stories__/Default/package.json +0 -6
- package/layouts/Screen/__stories__/Default.d.ts +0 -3
- package/layouts/Screen/__stories__/ScreenDown/index.js +0 -9
- package/layouts/Screen/__stories__/ScreenDown/package.json +0 -6
- package/layouts/Screen/__stories__/ScreenDown.d.ts +0 -3
- package/layouts/Screen/__stories__/ScreenUp/index.js +0 -9
- package/layouts/Screen/__stories__/ScreenUp/package.json +0 -6
- package/layouts/Screen/__stories__/ScreenUp.d.ts +0 -3
- package/layouts/Screen/__stories__/SpecificScreenSize/index.js +0 -9
- package/layouts/Screen/__stories__/SpecificScreenSize/package.json +0 -6
- package/layouts/Screen/__stories__/SpecificScreenSize.d.ts +0 -3
- package/layouts/Screen/package.json +0 -6
- package/layouts/Section/package.json +0 -6
- package/layouts/SectionBreak/package.json +0 -6
- package/layouts/Stack/Stack.stories/index.js +0 -12
- package/layouts/Stack/Stack.stories/package.json +0 -6
- package/layouts/Stack/Stack.stories.d.ts +0 -13
- package/layouts/Stack/__stories__/AlignItems/index.js +0 -65
- package/layouts/Stack/__stories__/AlignItems/package.json +0 -6
- package/layouts/Stack/__stories__/AlignItems.d.ts +0 -3
- package/layouts/Stack/__stories__/Default/index.js +0 -22
- package/layouts/Stack/__stories__/Default/package.json +0 -6
- package/layouts/Stack/__stories__/Default.d.ts +0 -3
- package/layouts/Stack/__stories__/JustifyContent/index.js +0 -82
- package/layouts/Stack/__stories__/JustifyContent/package.json +0 -6
- package/layouts/Stack/__stories__/JustifyContent.d.ts +0 -3
- package/layouts/Stack/__stories__/NoWrap/index.js +0 -24
- package/layouts/Stack/__stories__/NoWrap/package.json +0 -6
- package/layouts/Stack/__stories__/NoWrap.d.ts +0 -3
- package/layouts/Stack/__stories__/Row/index.js +0 -23
- package/layouts/Stack/__stories__/Row/package.json +0 -6
- package/layouts/Stack/__stories__/Row.d.ts +0 -3
- package/layouts/Stack/__stories__/Spacing/index.js +0 -53
- package/layouts/Stack/__stories__/Spacing/package.json +0 -6
- package/layouts/Stack/__stories__/Spacing.d.ts +0 -3
- package/layouts/Stack/package.json +0 -6
- package/layouts/package.json +0 -6
- package/lazy/index.js +0 -2243
- package/lazy/package.json +0 -6
- package/navigation/BackLink/BackLink.stories/index.js +0 -7
- package/navigation/BackLink/BackLink.stories/package.json +0 -6
- package/navigation/BackLink/BackLink.stories.d.ts +0 -8
- package/navigation/BackLink/BackLink.stories.playwright.json +0 -21
- package/navigation/BackLink/__stories__/Default/index.js +0 -10
- package/navigation/BackLink/__stories__/Default/package.json +0 -6
- package/navigation/BackLink/__stories__/Default.d.ts +0 -3
- package/navigation/BackLink/index.mdx +0 -23
- package/navigation/BackLink/package.json +0 -6
- package/navigation/BackToTopLink/BackToTopLink.stories/index.js +0 -8
- package/navigation/BackToTopLink/BackToTopLink.stories/package.json +0 -6
- package/navigation/BackToTopLink/BackToTopLink.stories.d.ts +0 -9
- package/navigation/BackToTopLink/__stories__/Default/index.js +0 -10
- package/navigation/BackToTopLink/__stories__/Default/package.json +0 -6
- package/navigation/BackToTopLink/__stories__/Default.d.ts +0 -3
- package/navigation/BackToTopLink/__stories__/InMain/index.js +0 -11
- package/navigation/BackToTopLink/__stories__/InMain/package.json +0 -6
- package/navigation/BackToTopLink/__stories__/InMain.d.ts +0 -3
- package/navigation/BackToTopLink/package.json +0 -6
- package/navigation/Breadcrumbs/Breadcrumbs.stories/index.js +0 -9
- package/navigation/Breadcrumbs/Breadcrumbs.stories/package.json +0 -6
- package/navigation/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -10
- package/navigation/Breadcrumbs/Breadcrumbs.stories.playwright.json +0 -33
- package/navigation/Breadcrumbs/__stories__/Default/index.js +0 -19
- package/navigation/Breadcrumbs/__stories__/Default/package.json +0 -6
- package/navigation/Breadcrumbs/__stories__/Default.d.ts +0 -3
- package/navigation/Breadcrumbs/index.mdx +0 -32
- package/navigation/Breadcrumbs/package.json +0 -6
- package/navigation/Drawer/Drawer.stories/index.js +0 -11
- package/navigation/Drawer/Drawer.stories/package.json +0 -6
- package/navigation/Drawer/Drawer.stories.d.ts +0 -12
- package/navigation/Drawer/__stories__/Auto/index.js +0 -75
- package/navigation/Drawer/__stories__/Auto/package.json +0 -6
- package/navigation/Drawer/__stories__/Auto.d.ts +0 -2
- package/navigation/Drawer/__stories__/Default/index.js +0 -79
- package/navigation/Drawer/__stories__/Default/package.json +0 -6
- package/navigation/Drawer/__stories__/Default.d.ts +0 -3
- package/navigation/Drawer/__stories__/WithHook/index.js +0 -76
- package/navigation/Drawer/__stories__/WithHook/package.json +0 -6
- package/navigation/Drawer/__stories__/WithHook.d.ts +0 -2
- package/navigation/Drawer/auto/index.js +0 -66
- package/navigation/Drawer/auto/package.json +0 -6
- package/navigation/Drawer/hooks/index.js +0 -47
- package/navigation/Drawer/hooks/package.json +0 -6
- package/navigation/Drawer/index.mdx +0 -14
- package/navigation/Drawer/package.json +0 -6
- package/navigation/Dropdown/Dropdown.stories/index.js +0 -19
- package/navigation/Dropdown/Dropdown.stories/package.json +0 -6
- package/navigation/Dropdown/Dropdown.stories.d.ts +0 -20
- package/navigation/Dropdown/Dropdown.stories.playwright.json +0 -85
- package/navigation/Dropdown/__stories__/AlignRight/index.js +0 -54
- package/navigation/Dropdown/__stories__/AlignRight/package.json +0 -6
- package/navigation/Dropdown/__stories__/AlignRight.d.ts +0 -3
- package/navigation/Dropdown/__stories__/ContentPosition/index.js +0 -97
- package/navigation/Dropdown/__stories__/ContentPosition/package.json +0 -6
- package/navigation/Dropdown/__stories__/ContentPosition.d.ts +0 -3
- package/navigation/Dropdown/__stories__/Default/index.js +0 -40
- package/navigation/Dropdown/__stories__/Default/package.json +0 -6
- package/navigation/Dropdown/__stories__/Default.d.ts +0 -3
- package/navigation/Dropdown/__stories__/Dense/index.js +0 -48
- package/navigation/Dropdown/__stories__/Dense/package.json +0 -6
- package/navigation/Dropdown/__stories__/Dense.d.ts +0 -3
- package/navigation/Dropdown/__stories__/Disabled/index.js +0 -42
- package/navigation/Dropdown/__stories__/Disabled/package.json +0 -6
- package/navigation/Dropdown/__stories__/Disabled.d.ts +0 -3
- package/navigation/Dropdown/__stories__/PlacementTop/index.js +0 -58
- package/navigation/Dropdown/__stories__/PlacementTop/package.json +0 -6
- package/navigation/Dropdown/__stories__/PlacementTop.d.ts +0 -3
- package/navigation/Dropdown/__stories__/ScrollableContent/index.js +0 -61
- package/navigation/Dropdown/__stories__/ScrollableContent/package.json +0 -6
- package/navigation/Dropdown/__stories__/ScrollableContent.d.ts +0 -3
- package/navigation/Dropdown/__stories__/Secondary/index.js +0 -28
- package/navigation/Dropdown/__stories__/Secondary/package.json +0 -6
- package/navigation/Dropdown/__stories__/Secondary.d.ts +0 -3
- package/navigation/Dropdown/__stories__/VariantLink/index.js +0 -41
- package/navigation/Dropdown/__stories__/VariantLink/package.json +0 -6
- package/navigation/Dropdown/__stories__/VariantLink.d.ts +0 -3
- package/navigation/Dropdown/__stories__/Warning/index.js +0 -28
- package/navigation/Dropdown/__stories__/Warning/package.json +0 -6
- package/navigation/Dropdown/__stories__/Warning.d.ts +0 -3
- package/navigation/Dropdown/__stories__/WithIcons/index.js +0 -93
- package/navigation/Dropdown/__stories__/WithIcons/package.json +0 -6
- package/navigation/Dropdown/__stories__/WithIcons.d.ts +0 -3
- package/navigation/Dropdown/index.mdx +0 -40
- package/navigation/Dropdown/package.json +0 -6
- package/navigation/Link/Link.stories/index.js +0 -13
- package/navigation/Link/Link.stories/package.json +0 -6
- package/navigation/Link/Link.stories.d.ts +0 -14
- package/navigation/Link/Link.stories.playwright.json +0 -65
- package/navigation/Link/__snapshots__/index.spec.tsx.snap +0 -38
- package/navigation/Link/__stories__/DarkBackground/index.js +0 -17
- package/navigation/Link/__stories__/DarkBackground/package.json +0 -6
- package/navigation/Link/__stories__/DarkBackground.d.ts +0 -3
- package/navigation/Link/__stories__/DarkBackgroundNoUnderline/index.js +0 -18
- package/navigation/Link/__stories__/DarkBackgroundNoUnderline/package.json +0 -6
- package/navigation/Link/__stories__/DarkBackgroundNoUnderline.d.ts +0 -3
- package/navigation/Link/__stories__/Default/index.js +0 -11
- package/navigation/Link/__stories__/Default/package.json +0 -6
- package/navigation/Link/__stories__/Default.d.ts +0 -3
- package/navigation/Link/__stories__/ExternalLink/index.js +0 -12
- package/navigation/Link/__stories__/ExternalLink/package.json +0 -6
- package/navigation/Link/__stories__/ExternalLink.d.ts +0 -3
- package/navigation/Link/__stories__/NoUnderline/index.js +0 -12
- package/navigation/Link/__stories__/NoUnderline/package.json +0 -6
- package/navigation/Link/__stories__/NoUnderline.d.ts +0 -3
- package/navigation/Link/__stories__/OpensInNewTab/index.js +0 -11
- package/navigation/Link/__stories__/OpensInNewTab/package.json +0 -6
- package/navigation/Link/__stories__/OpensInNewTab.d.ts +0 -3
- package/navigation/Link/index.mdx +0 -50
- package/navigation/Link/index.spec/index.js +0 -16
- package/navigation/Link/index.spec/package.json +0 -6
- package/navigation/Link/index.spec.d.ts +0 -1
- package/navigation/Link/package.json +0 -6
- package/navigation/NavList/Nav/index.js +0 -3
- package/navigation/NavList/Nav/package.json +0 -6
- package/navigation/NavList/NavList/index.js +0 -3
- package/navigation/NavList/NavList/package.json +0 -6
- package/navigation/NavList/NavList.stories/index.js +0 -16
- package/navigation/NavList/NavList.stories/package.json +0 -6
- package/navigation/NavList/NavList.stories.d.ts +0 -17
- package/navigation/NavList/NavList.stories.playwright.json +0 -53
- package/navigation/NavList/NavListAuto/package.json +0 -6
- package/navigation/NavList/NavMenuContentList/index.js +0 -53
- package/navigation/NavList/NavMenuContentList/package.json +0 -6
- package/navigation/NavList/__snapshots__/index.spec.tsx.snap +0 -7
- package/navigation/NavList/__stories__/Default/index.js +0 -39
- package/navigation/NavList/__stories__/Default/package.json +0 -6
- package/navigation/NavList/__stories__/Default.d.ts +0 -3
- package/navigation/NavList/__stories__/HorizontalWithDrawer/index.js +0 -94
- package/navigation/NavList/__stories__/HorizontalWithDrawer/package.json +0 -6
- package/navigation/NavList/__stories__/HorizontalWithDrawer.d.ts +0 -3
- package/navigation/NavList/__stories__/HorizontalWithoutDrawer/index.js +0 -71
- package/navigation/NavList/__stories__/HorizontalWithoutDrawer/package.json +0 -6
- package/navigation/NavList/__stories__/HorizontalWithoutDrawer.d.ts +0 -3
- package/navigation/NavList/__stories__/NavLinksOneLevel.json +0 -17
- package/navigation/NavList/__stories__/NavLinksWithSubmenu.json +0 -36
- package/navigation/NavList/__stories__/NavListWithoutNav/index.js +0 -29
- package/navigation/NavList/__stories__/NavListWithoutNav/package.json +0 -6
- package/navigation/NavList/__stories__/NavListWithoutNav.d.ts +0 -3
- package/navigation/NavList/__stories__/UsingHeaderButton/index.js +0 -63
- package/navigation/NavList/__stories__/UsingHeaderButton/package.json +0 -6
- package/navigation/NavList/__stories__/UsingHeaderButton.d.ts +0 -3
- package/navigation/NavList/__stories__/UsingNavListAuto/index.js +0 -67
- package/navigation/NavList/__stories__/UsingNavListAuto/package.json +0 -6
- package/navigation/NavList/__stories__/UsingNavListAuto.d.ts +0 -3
- package/navigation/NavList/__stories__/Vertical/index.js +0 -41
- package/navigation/NavList/__stories__/Vertical/package.json +0 -6
- package/navigation/NavList/__stories__/Vertical.d.ts +0 -3
- package/navigation/NavList/__stories__/VerticalWithoutDrawer/index.js +0 -74
- package/navigation/NavList/__stories__/VerticalWithoutDrawer/package.json +0 -6
- package/navigation/NavList/__stories__/VerticalWithoutDrawer.d.ts +0 -3
- package/navigation/NavList/hooks/useNavList/index.js +0 -37
- package/navigation/NavList/hooks/useNavList/package.json +0 -6
- package/navigation/NavList/hooks/useTogglableNav/index.js +0 -264
- package/navigation/NavList/hooks/useTogglableNav/package.json +0 -6
- package/navigation/NavList/index.mdx +0 -60
- package/navigation/NavList/index.spec/index.js +0 -6
- package/navigation/NavList/index.spec/package.json +0 -6
- package/navigation/NavList/index.spec.d.ts +0 -1
- package/navigation/NavList/package.json +0 -6
- package/navigation/NavList/types/index.js +0 -1
- package/navigation/NavList/types/package.json +0 -6
- package/navigation/Pagination/Pagination.stories/index.js +0 -15
- package/navigation/Pagination/Pagination.stories/package.json +0 -6
- package/navigation/Pagination/Pagination.stories.d.ts +0 -16
- package/navigation/Pagination/Pagination.stories.playwright.json +0 -27
- package/navigation/Pagination/__stories__/Auto/index.js +0 -46
- package/navigation/Pagination/__stories__/Auto/package.json +0 -6
- package/navigation/Pagination/__stories__/Auto.d.ts +0 -3
- package/navigation/Pagination/__stories__/Default/index.js +0 -63
- package/navigation/Pagination/__stories__/Default/package.json +0 -6
- package/navigation/Pagination/__stories__/Default.d.ts +0 -3
- package/navigation/Pagination/__stories__/PaginationSmall/index.js +0 -32
- package/navigation/Pagination/__stories__/PaginationSmall/package.json +0 -6
- package/navigation/Pagination/__stories__/PaginationSmall.d.ts +0 -3
- package/navigation/Pagination/__stories__/PaginationWithSmallFont/index.js +0 -42
- package/navigation/Pagination/__stories__/PaginationWithSmallFont/package.json +0 -6
- package/navigation/Pagination/__stories__/PaginationWithSmallFont.d.ts +0 -3
- package/navigation/Pagination/__stories__/WithHook/index.js +0 -53
- package/navigation/Pagination/__stories__/WithHook/package.json +0 -6
- package/navigation/Pagination/__stories__/WithHook.d.ts +0 -3
- package/navigation/Pagination/__stories__/WithInactiveValues/index.js +0 -65
- package/navigation/Pagination/__stories__/WithInactiveValues/package.json +0 -6
- package/navigation/Pagination/__stories__/WithInactiveValues.d.ts +0 -3
- package/navigation/Pagination/__stories__/WithResultsPerPage/index.js +0 -38
- package/navigation/Pagination/__stories__/WithResultsPerPage/package.json +0 -6
- package/navigation/Pagination/__stories__/WithResultsPerPage.d.ts +0 -3
- package/navigation/Pagination/auto/index.js +0 -75
- package/navigation/Pagination/auto/package.json +0 -6
- package/navigation/Pagination/hooks/index.js +0 -105
- package/navigation/Pagination/hooks/package.json +0 -6
- package/navigation/Pagination/index.mdx +0 -48
- package/navigation/Pagination/package.json +0 -6
- package/navigation/SkipLink/SkipLink.stories/index.js +0 -8
- package/navigation/SkipLink/SkipLink.stories/package.json +0 -6
- package/navigation/SkipLink/SkipLink.stories.d.ts +0 -9
- package/navigation/SkipLink/__stories__/Default/index.js +0 -9
- package/navigation/SkipLink/__stories__/Default/package.json +0 -6
- package/navigation/SkipLink/__stories__/Default.d.ts +0 -3
- package/navigation/SkipLink/package.json +0 -6
- package/navigation/Tabs/Tabs.stories/index.js +0 -12
- package/navigation/Tabs/Tabs.stories/package.json +0 -6
- package/navigation/Tabs/Tabs.stories.d.ts +0 -13
- package/navigation/Tabs/Tabs.stories.playwright.json +0 -27
- package/navigation/Tabs/__stories__/Auto/index.js +0 -31
- package/navigation/Tabs/__stories__/Auto/package.json +0 -6
- package/navigation/Tabs/__stories__/Auto.d.ts +0 -3
- package/navigation/Tabs/__stories__/Default/index.js +0 -42
- package/navigation/Tabs/__stories__/Default/package.json +0 -6
- package/navigation/Tabs/__stories__/Default.d.ts +0 -3
- package/navigation/Tabs/__stories__/Dense/index.js +0 -29
- package/navigation/Tabs/__stories__/Dense/package.json +0 -6
- package/navigation/Tabs/__stories__/Dense.d.ts +0 -3
- package/navigation/Tabs/auto/index.js +0 -48
- package/navigation/Tabs/auto/package.json +0 -6
- package/navigation/Tabs/hooks/index.js +0 -80
- package/navigation/Tabs/hooks/package.json +0 -6
- package/navigation/Tabs/index.mdx +0 -31
- package/navigation/Tabs/package.json +0 -6
- package/navigation/package.json +0 -6
- package/registry/index.js +0 -498
- package/registry/package.json +0 -6
- package/src/api/APIErrors.tsx +0 -44
- package/src/api/APIProvider.tsx +0 -27
- package/src/api/fetchAPI.ts +0 -45
- package/src/api/index.spec.tsx +0 -419
- package/src/api/index.tsx +0 -16
- package/src/api/introduction.md +0 -6
- package/src/api/useResource.tsx +0 -96
- package/src/api/useResourceAction.tsx +0 -80
- package/src/api/useResourceQuery.tsx +0 -177
- package/src/api/utils.tsx +0 -157
- package/src/app/Footer/Footer.stories.js +0 -18
- package/src/app/Footer/Footer.stories.playwright.json +0 -27
- package/src/app/Footer/index.mdx +0 -63
- package/src/app/Header/Header.stories.js +0 -20
- package/src/app/Header/Header.stories.playwright.json +0 -49
- package/src/app/Header/index.mdx +0 -49
- package/src/app/Loader/Loader.stories.js +0 -7
- package/src/app/Masthead/Masthead.stories.js +0 -13
- package/src/app/Masthead/Masthead.stories.playwright.json +0 -21
- package/src/app/Masthead/index.mdx +0 -23
- package/src/app/Modal/Modal.stories.js +0 -15
- package/src/app/Modal/Modal.stories.playwright.json +0 -53
- package/src/app/Modal/index.mdx +0 -40
- package/src/app/NotFound/index.mdx +0 -18
- package/src/app/Panel/index.mdx +0 -21
- package/src/app/PhaseBannerHeader/index.mdx +0 -20
- package/src/app/QrCodeViewer/index.mdx +0 -30
- package/src/content/Accordion/Accordion.stories.js +0 -14
- package/src/content/Accordion/Accordion.stories.playwright.json +0 -21
- package/src/content/Accordion/index.mdx +0 -45
- package/src/content/Blockquote/index.mdx +0 -24
- package/src/content/Card/Card.stories.js +0 -21
- package/src/content/Card/Card.stories.playwright.json +0 -21
- package/src/content/Card/index.mdx +0 -103
- package/src/content/Chip/Chip.stories.js +0 -11
- package/src/content/Chip/index.mdx +0 -53
- package/src/content/Details/Details.stories.playwright.json +0 -27
- package/src/content/Details/index.mdx +0 -27
- package/src/content/List/List.stories.js +0 -15
- package/src/content/List/index.mdx +0 -40
- package/src/content/StepNav/StepNav.stories.playwright.json +0 -33
- package/src/content/StepNav/index.mdx +0 -53
- package/src/content/SummaryList/SummaryList.stories.playwright.json +0 -27
- package/src/content/SummaryList/index.mdx +0 -51
- package/src/content/Table/Table.stories.js +0 -27
- package/src/content/Table/Table.stories.playwright.json +0 -37
- package/src/content/Table/__stories__/Densed.tsx +0 -129
- package/src/content/Table/index.mdx +0 -111
- package/src/content/TaskList/index.mdx +0 -30
- package/src/content/Timeline/index.mdx +0 -33
- package/src/feedback/CopyToClipboard/CopyToClipboard.stories.js +0 -9
- package/src/feedback/CopyToClipboard/CopyToClipboard.stories.playwright.json +0 -53
- package/src/feedback/CopyToClipboard/index.mdx +0 -28
- package/src/feedback/ErrorSummary/ErrorSummary.stories.js +0 -15
- package/src/feedback/ErrorSummary/ErrorSummary.stories.playwright.json +0 -27
- package/src/feedback/ErrorSummary/index.mdx +0 -54
- package/src/feedback/NotificationBanner/NotificationBanner.stories.playwright.json +0 -49
- package/src/feedback/NotificationBanner/index.mdx +0 -47
- package/src/feedback/PhaseBanner/PhaseBanner.stories.js +0 -11
- package/src/feedback/PhaseBanner/PhaseBanner.stories.playwright.json +0 -21
- package/src/feedback/PhaseBanner/index.mdx +0 -37
- package/src/feedback/WarningText/index.mdx +0 -25
- package/src/form/AutoComplete/AutoComplete.stories.js +0 -16
- package/src/form/AutoComplete/AutoComplete.stories.playwright.json +0 -33
- package/src/form/AutoComplete/index.mdx +0 -70
- package/src/form/Button/Button.stories.playwright.json +0 -115
- package/src/form/Button/index.mdx +0 -111
- package/src/form/Checkbox/Checkbox.stories.js +0 -19
- package/src/form/Checkbox/Checkbox.stories.playwright.json +0 -55
- package/src/form/Checkbox/index.mdx +0 -83
- package/src/form/DateInputContainer/DateInputContainer.stories.js +0 -14
- package/src/form/DateInputContainer/DateInputContainer.stories.playwright.json +0 -61
- package/src/form/DateInputContainer/index.mdx +0 -46
- package/src/form/ErrorMessage/ErrorMessage.stories.js +0 -12
- package/src/form/ErrorMessage/index.mdx +0 -23
- package/src/form/FileUpload/index.mdx +0 -30
- package/src/form/RadioContainer/RadioContainer.stories.js +0 -19
- package/src/form/RadioContainer/RadioContainer.stories.playwright.json +0 -49
- package/src/form/RadioContainer/index.mdx +0 -84
- package/src/form/SelectContainer/SelectContainer.stories.js +0 -13
- package/src/form/SelectContainer/SelectContainer.stories.playwright.json +0 -21
- package/src/form/SelectContainer/index.mdx +0 -50
- package/src/form/SingleCharacterInputs/SingleCharacterInput.stories.js +0 -13
- package/src/form/SingleCharacterInputs/index.mdx +0 -30
- package/src/form/TextArea/TextArea.stories.js +0 -17
- package/src/form/TextArea/TextArea.stories.playwright.json +0 -59
- package/src/form/TextArea/index.mdx +0 -74
- package/src/form/TextInput/TextInput.stories.js +0 -19
- package/src/form/TextInput/TextInput.stories.playwright.json +0 -43
- package/src/form/TextInput/index.mdx +0 -90
- package/src/govgr/Footer/index.mdx +0 -101
- package/src/layouts/Basic/Bottom/index.mdx +0 -22
- package/src/layouts/Basic/Container/index.mdx +0 -23
- package/src/layouts/Basic/Main/index.mdx +0 -21
- package/src/layouts/Basic/Masthead/index.tsx +0 -5
- package/src/layouts/Basic/Top/index.mdx +0 -23
- package/src/layouts/Basic/index.mdx +0 -42
- package/src/layouts/Grid/Grid.stories.js +0 -9
- package/src/layouts/Grid/index.mdx +0 -39
- package/src/layouts/Stack/Stack.stories.js +0 -12
- package/src/lazy.js +0 -324
- package/src/navigation/BackLink/BackLink.stories.playwright.json +0 -21
- package/src/navigation/BackLink/index.mdx +0 -23
- package/src/navigation/Breadcrumbs/Breadcrumbs.stories.playwright.json +0 -33
- package/src/navigation/Breadcrumbs/index.mdx +0 -32
- package/src/navigation/Drawer/index.mdx +0 -14
- package/src/navigation/Dropdown/Dropdown.stories.js +0 -21
- package/src/navigation/Dropdown/Dropdown.stories.playwright.json +0 -85
- package/src/navigation/Dropdown/index.mdx +0 -40
- package/src/navigation/Link/Link.stories.playwright.json +0 -65
- package/src/navigation/Link/index.mdx +0 -50
- package/src/navigation/NavList/NavList.stories.playwright.json +0 -53
- package/src/navigation/NavList/__stories__/NavLinksOneLevel.json +0 -17
- package/src/navigation/NavList/__stories__/NavLinksWithSubmenu.json +0 -36
- package/src/navigation/NavList/index.mdx +0 -60
- package/src/navigation/Pagination/Pagination.stories.playwright.json +0 -27
- package/src/navigation/Pagination/index.mdx +0 -48
- package/src/navigation/Tabs/Tabs.stories.playwright.json +0 -27
- package/src/navigation/Tabs/index.mdx +0 -31
- package/src/registry.js +0 -507
- package/src/test-utils/delay.ts +0 -9
- package/src/typography/Heading/index.mdx +0 -18
- package/src/typography/HeadingCaption/index.mdx +0 -20
- package/src/typography/Hint/index.mdx +0 -26
- package/src/typography/NormalText/index.mdx +0 -44
- package/src/typography/Paragraph/index.mdx +0 -32
- package/src/typography/Typography/index.mdx +0 -12
- package/src/utils/Base/index.mdx +0 -13
- package/src/utils/SvgIcon/index.tsx +0 -5
- package/src/utils/VisuallyHidden/index.mdx +0 -24
- package/test-utils/delay/index.js +0 -27
- package/test-utils/delay/package.json +0 -6
- package/test-utils/delay.d.ts +0 -2
- package/typography/Code/package.json +0 -6
- package/typography/CodeBlock/package.json +0 -6
- package/typography/Heading/Heading.stories/index.js +0 -7
- package/typography/Heading/Heading.stories/package.json +0 -6
- package/typography/Heading/Heading.stories.d.ts +0 -8
- package/typography/Heading/__stories__/Default/index.js +0 -23
- package/typography/Heading/__stories__/Default/package.json +0 -6
- package/typography/Heading/__stories__/Default.d.ts +0 -3
- package/typography/Heading/index.mdx +0 -18
- package/typography/Heading/package.json +0 -6
- package/typography/HeadingCaption/HeadingCaption.stories/index.js +0 -8
- package/typography/HeadingCaption/HeadingCaption.stories/package.json +0 -6
- package/typography/HeadingCaption/HeadingCaption.stories.d.ts +0 -9
- package/typography/HeadingCaption/__stories__/Default/index.js +0 -28
- package/typography/HeadingCaption/__stories__/Default/package.json +0 -6
- package/typography/HeadingCaption/__stories__/Default.d.ts +0 -3
- package/typography/HeadingCaption/__stories__/NestedToTitle/index.js +0 -13
- package/typography/HeadingCaption/__stories__/NestedToTitle/package.json +0 -6
- package/typography/HeadingCaption/__stories__/NestedToTitle.d.ts +0 -3
- package/typography/HeadingCaption/index.mdx +0 -20
- package/typography/HeadingCaption/package.json +0 -6
- package/typography/Hint/Hint.stories/index.js +0 -8
- package/typography/Hint/Hint.stories/package.json +0 -6
- package/typography/Hint/Hint.stories.d.ts +0 -9
- package/typography/Hint/__stories__/Default/index.js +0 -7
- package/typography/Hint/__stories__/Default/package.json +0 -6
- package/typography/Hint/__stories__/Default.d.ts +0 -3
- package/typography/Hint/__stories__/FontSizes/index.js +0 -16
- package/typography/Hint/__stories__/FontSizes/package.json +0 -6
- package/typography/Hint/__stories__/FontSizes.d.ts +0 -3
- package/typography/Hint/index.mdx +0 -26
- package/typography/Hint/package.json +0 -6
- package/typography/NormalText/NormalText.stories/index.js +0 -10
- package/typography/NormalText/NormalText.stories/package.json +0 -6
- package/typography/NormalText/NormalText.stories.d.ts +0 -11
- package/typography/NormalText/__stories__/Default/index.js +0 -7
- package/typography/NormalText/__stories__/Default/package.json +0 -6
- package/typography/NormalText/__stories__/Default.d.ts +0 -3
- package/typography/NormalText/__stories__/FontSizes/index.js +0 -46
- package/typography/NormalText/__stories__/FontSizes/package.json +0 -6
- package/typography/NormalText/__stories__/FontSizes.d.ts +0 -3
- package/typography/NormalText/__stories__/FontWeight/index.js +0 -16
- package/typography/NormalText/__stories__/FontWeight/package.json +0 -6
- package/typography/NormalText/__stories__/FontWeight.d.ts +0 -3
- package/typography/NormalText/__stories__/Variants/index.js +0 -16
- package/typography/NormalText/__stories__/Variants/package.json +0 -6
- package/typography/NormalText/__stories__/Variants.d.ts +0 -3
- package/typography/NormalText/index.mdx +0 -44
- package/typography/NormalText/package.json +0 -6
- package/typography/Paragraph/Paragraph.stories/index.js +0 -11
- package/typography/Paragraph/Paragraph.stories/package.json +0 -6
- package/typography/Paragraph/Paragraph.stories.d.ts +0 -12
- package/typography/Paragraph/__stories__/Default/index.js +0 -7
- package/typography/Paragraph/__stories__/Default/package.json +0 -6
- package/typography/Paragraph/__stories__/Default.d.ts +0 -3
- package/typography/Paragraph/__stories__/FontSizes/index.js +0 -27
- package/typography/Paragraph/__stories__/FontSizes/package.json +0 -6
- package/typography/Paragraph/__stories__/FontSizes.d.ts +0 -3
- package/typography/Paragraph/__stories__/FontWeight/index.js +0 -12
- package/typography/Paragraph/__stories__/FontWeight/package.json +0 -6
- package/typography/Paragraph/__stories__/FontWeight.d.ts +0 -3
- package/typography/Paragraph/__stories__/LeadVariant/index.js +0 -9
- package/typography/Paragraph/__stories__/LeadVariant/package.json +0 -6
- package/typography/Paragraph/__stories__/LeadVariant.d.ts +0 -3
- package/typography/Paragraph/__stories__/SmallVariant/index.js +0 -9
- package/typography/Paragraph/__stories__/SmallVariant/package.json +0 -6
- package/typography/Paragraph/__stories__/SmallVariant.d.ts +0 -3
- package/typography/Paragraph/index.mdx +0 -32
- package/typography/Paragraph/package.json +0 -6
- package/typography/Typography/index.mdx +0 -12
- package/typography/Typography/package.json +0 -6
- package/typography/package.json +0 -6
- package/utils/Base/index.mdx +0 -13
- package/utils/Base/package.json +0 -6
- package/utils/SvgIcon/index.d.ts +0 -4
- package/utils/SvgIcon/index.js +0 -4
- package/utils/SvgIcon/package.json +0 -6
- package/utils/Typography/package.json +0 -6
- package/utils/VisuallyHidden/VisuallyHidden.stories/index.js +0 -7
- package/utils/VisuallyHidden/VisuallyHidden.stories/package.json +0 -6
- package/utils/VisuallyHidden/VisuallyHidden.stories.d.ts +0 -8
- package/utils/VisuallyHidden/__stories__/Default/index.js +0 -13
- package/utils/VisuallyHidden/__stories__/Default/package.json +0 -6
- package/utils/VisuallyHidden/__stories__/Default.d.ts +0 -3
- package/utils/VisuallyHidden/index.mdx +0 -24
- package/utils/VisuallyHidden/package.json +0 -6
- package/utils/hooks/useDebounce/index.js +0 -40
- package/utils/hooks/useDebounce/package.json +0 -6
- package/utils/hooks/useKeypress/index.js +0 -19
- package/utils/hooks/useKeypress/package.json +0 -6
- package/utils/hooks/useLatest/index.js +0 -10
- package/utils/hooks/useLatest/package.json +0 -6
- package/utils/hooks/useScreen/index.js +0 -51
- package/utils/hooks/useScreen/package.json +0 -6
- package/utils/hooks/useSearch/index.js +0 -25
- package/utils/hooks/useSearch/package.json +0 -6
- package/utils/hooks/useTogglableTab/index.js +0 -88
- package/utils/hooks/useTogglableTab/package.json +0 -6
- package/utils/package.json +0 -6
- package/utils/withDeprecation/index.js +0 -78
- package/utils/withDeprecation/package.json +0 -6
- /package/{custom.d/index.js → app/QrCodeViewer/types.js} +0 -0
package/api/index.spec/index.js
DELETED
|
@@ -1,468 +0,0 @@
|
|
|
1
|
-
import _typeof from "@babel/runtime/helpers/typeof";
|
|
2
|
-
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
3
|
-
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
4
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
5
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
6
|
-
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
|
7
|
-
import React, { Suspense, useEffect } from 'react';
|
|
8
|
-
import { render, fireEvent } from '@testing-library/react';
|
|
9
|
-
import fetchMock from 'fetch-mock';
|
|
10
|
-
import fetchAPI from '@digigov/ui/api/fetchAPI';
|
|
11
|
-
import { APIProvider, useResource, useResourceAction, useResourceMany, APIErrors } from '@digigov/ui/api/index';
|
|
12
|
-
import delay from '@digigov/ui/test-utils/delay';
|
|
13
|
-
import 'whatwg-fetch';
|
|
14
|
-
var _ref2 = /*#__PURE__*/React.createElement("span", null, "something went wrong");
|
|
15
|
-
var HandleError = function HandleError(_ref) {
|
|
16
|
-
var error = _ref.error;
|
|
17
|
-
if (error.name === 'APIError') {
|
|
18
|
-
error = error.error;
|
|
19
|
-
if (error.status === 404) {
|
|
20
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, "Not found");
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
// TODO: render the <SomethingWentWrong /> page here
|
|
24
|
-
return _ref2;
|
|
25
|
-
};
|
|
26
|
-
var makeWrapper = function makeWrapper(_ref3) {
|
|
27
|
-
var config = _ref3.config,
|
|
28
|
-
token = _ref3.token;
|
|
29
|
-
return function (_ref4) {
|
|
30
|
-
var children = _ref4.children;
|
|
31
|
-
return /*#__PURE__*/React.createElement(Suspense, {
|
|
32
|
-
fallback: 'Loading'
|
|
33
|
-
}, /*#__PURE__*/React.createElement(APIErrors, {
|
|
34
|
-
fallback: HandleError
|
|
35
|
-
}, /*#__PURE__*/React.createElement(APIProvider, {
|
|
36
|
-
config: config,
|
|
37
|
-
token: token
|
|
38
|
-
}, children)));
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
var BASE_URL = 'http://test/api';
|
|
42
|
-
var TOKEN = 'mytoken';
|
|
43
|
-
var DELAY = 100;
|
|
44
|
-
var buildMockOptions = function buildMockOptions(_ref5) {
|
|
45
|
-
var resource = _ref5.resource,
|
|
46
|
-
_ref5$method = _ref5.method,
|
|
47
|
-
method = _ref5$method === void 0 ? 'GET' : _ref5$method,
|
|
48
|
-
_ref5$authenticated = _ref5.authenticated,
|
|
49
|
-
authenticated = _ref5$authenticated === void 0 ? true : _ref5$authenticated,
|
|
50
|
-
_ref5$query = _ref5.query,
|
|
51
|
-
query = _ref5$query === void 0 ? {} : _ref5$query,
|
|
52
|
-
response = _ref5.response,
|
|
53
|
-
_ref5$delay = _ref5.delay,
|
|
54
|
-
delay = _ref5$delay === void 0 ? DELAY / 2 : _ref5$delay;
|
|
55
|
-
var headers = {
|
|
56
|
-
'content-type': 'application/json'
|
|
57
|
-
};
|
|
58
|
-
var options = {
|
|
59
|
-
delay: delay
|
|
60
|
-
};
|
|
61
|
-
if (authenticated) {
|
|
62
|
-
headers.Authorization = "Token ".concat(TOKEN);
|
|
63
|
-
}
|
|
64
|
-
var params = new URLSearchParams(query).toString();
|
|
65
|
-
return ["".concat(BASE_URL, "/").concat(resource).concat(params && "?".concat(params)), response, _extends({
|
|
66
|
-
headers: headers,
|
|
67
|
-
method: method
|
|
68
|
-
}, options)];
|
|
69
|
-
};
|
|
70
|
-
var getAPI = function getAPI() {
|
|
71
|
-
return {
|
|
72
|
-
config: {
|
|
73
|
-
baseURL: BASE_URL
|
|
74
|
-
},
|
|
75
|
-
token: TOKEN
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
var wrapper = makeWrapper(getAPI());
|
|
79
|
-
describe('fetchAPI', function () {
|
|
80
|
-
fetchMock.config.overwriteRoutes = true;
|
|
81
|
-
afterAll(function () {
|
|
82
|
-
fetchMock.restore();
|
|
83
|
-
});
|
|
84
|
-
beforeEach(fetchMock.resetBehavior);
|
|
85
|
-
beforeEach(fetchMock.resetHistory);
|
|
86
|
-
it('fetchAPI gets', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
87
|
-
var resource, path, _yield$fetchAPI, data;
|
|
88
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
89
|
-
while (1) switch (_context.prev = _context.next) {
|
|
90
|
-
case 0:
|
|
91
|
-
resource = 'resource';
|
|
92
|
-
path = 'some_id';
|
|
93
|
-
fetchMock.mock.apply(fetchMock, _toConsumableArray(buildMockOptions({
|
|
94
|
-
resource: "".concat(resource, "/").concat(path, "/"),
|
|
95
|
-
response: {
|
|
96
|
-
value: 'SWR'
|
|
97
|
-
}
|
|
98
|
-
})));
|
|
99
|
-
_context.next = 5;
|
|
100
|
-
return fetchAPI(resource, {
|
|
101
|
-
path: path
|
|
102
|
-
}, getAPI());
|
|
103
|
-
case 5:
|
|
104
|
-
_yield$fetchAPI = _context.sent;
|
|
105
|
-
data = _yield$fetchAPI.data;
|
|
106
|
-
expect(data.value).toBe('SWR');
|
|
107
|
-
expect(fetchMock.calls()).toHaveLength(1);
|
|
108
|
-
case 9:
|
|
109
|
-
case "end":
|
|
110
|
-
return _context.stop();
|
|
111
|
-
}
|
|
112
|
-
}, _callee);
|
|
113
|
-
})));
|
|
114
|
-
});
|
|
115
|
-
describe('useResource', function () {
|
|
116
|
-
fetchMock.config.overwriteRoutes = true;
|
|
117
|
-
afterAll(function () {
|
|
118
|
-
fetchMock.restore();
|
|
119
|
-
});
|
|
120
|
-
beforeEach(fetchMock.resetBehavior);
|
|
121
|
-
beforeEach(fetchMock.resetHistory);
|
|
122
|
-
it('useResource should return data', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
123
|
-
var resource, Page, _render, container, _container$firstChild, _container$firstChild2;
|
|
124
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
125
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
126
|
-
case 0:
|
|
127
|
-
Page = function _Page() {
|
|
128
|
-
var _useResource = useResource(resource),
|
|
129
|
-
data = _useResource.data;
|
|
130
|
-
return /*#__PURE__*/React.createElement("div", null, "hello, ", data === null || data === void 0 ? void 0 : data.value);
|
|
131
|
-
};
|
|
132
|
-
resource = 'resource';
|
|
133
|
-
fetchMock.mock.apply(fetchMock, _toConsumableArray(buildMockOptions({
|
|
134
|
-
resource: resource,
|
|
135
|
-
response: {
|
|
136
|
-
value: 'SWR'
|
|
137
|
-
}
|
|
138
|
-
})));
|
|
139
|
-
_render = render( /*#__PURE__*/React.createElement(Page, null), {
|
|
140
|
-
wrapper: wrapper
|
|
141
|
-
}), container = _render.container;
|
|
142
|
-
expect(container.firstChild).not.toBe(null);
|
|
143
|
-
if (!container.firstChild) {
|
|
144
|
-
_context2.next = 10;
|
|
145
|
-
break;
|
|
146
|
-
}
|
|
147
|
-
expect(container === null || container === void 0 ? void 0 : (_container$firstChild = container.firstChild) === null || _container$firstChild === void 0 ? void 0 : _container$firstChild.textContent).toMatchInlineSnapshot("\"hello, \"");
|
|
148
|
-
_context2.next = 9;
|
|
149
|
-
return delay(DELAY);
|
|
150
|
-
case 9:
|
|
151
|
-
expect(container === null || container === void 0 ? void 0 : (_container$firstChild2 = container.firstChild) === null || _container$firstChild2 === void 0 ? void 0 : _container$firstChild2.textContent).toMatchInlineSnapshot("\"hello, SWR\"");
|
|
152
|
-
case 10:
|
|
153
|
-
expect(fetchMock.calls()).toHaveLength(1);
|
|
154
|
-
case 11:
|
|
155
|
-
case "end":
|
|
156
|
-
return _context2.stop();
|
|
157
|
-
}
|
|
158
|
-
}, _callee2);
|
|
159
|
-
})));
|
|
160
|
-
it('should run duplicate request once', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
161
|
-
var _container$firstChild3, _container$firstChild4;
|
|
162
|
-
var resource, Page, _render2, container;
|
|
163
|
-
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
164
|
-
while (1) switch (_context3.prev = _context3.next) {
|
|
165
|
-
case 0:
|
|
166
|
-
Page = function _Page2() {
|
|
167
|
-
useResource(resource);
|
|
168
|
-
var _useResource2 = useResource(resource),
|
|
169
|
-
duplData = _useResource2.data;
|
|
170
|
-
return /*#__PURE__*/React.createElement("div", null, "hello, ", duplData === null || duplData === void 0 ? void 0 : duplData.value);
|
|
171
|
-
};
|
|
172
|
-
resource = 'dupliresource';
|
|
173
|
-
fetchMock.mock.apply(fetchMock, _toConsumableArray(buildMockOptions({
|
|
174
|
-
resource: resource,
|
|
175
|
-
response: {
|
|
176
|
-
value: 'myvalue'
|
|
177
|
-
}
|
|
178
|
-
})));
|
|
179
|
-
_render2 = render( /*#__PURE__*/React.createElement(Page, null), {
|
|
180
|
-
wrapper: wrapper
|
|
181
|
-
}), container = _render2.container;
|
|
182
|
-
expect(container.firstChild).not.toBe(null);
|
|
183
|
-
expect(container === null || container === void 0 ? void 0 : (_container$firstChild3 = container.firstChild) === null || _container$firstChild3 === void 0 ? void 0 : _container$firstChild3.textContent).toMatchInlineSnapshot("\"hello, \"");
|
|
184
|
-
_context3.next = 8;
|
|
185
|
-
return delay(DELAY);
|
|
186
|
-
case 8:
|
|
187
|
-
expect(container === null || container === void 0 ? void 0 : (_container$firstChild4 = container.firstChild) === null || _container$firstChild4 === void 0 ? void 0 : _container$firstChild4.textContent).toMatchInlineSnapshot("\"hello, myvalue\"");
|
|
188
|
-
expect(fetchMock.calls()).toHaveLength(1);
|
|
189
|
-
case 10:
|
|
190
|
-
case "end":
|
|
191
|
-
return _context3.stop();
|
|
192
|
-
}
|
|
193
|
-
}, _callee3);
|
|
194
|
-
})));
|
|
195
|
-
});
|
|
196
|
-
describe('useResourceAction', function () {
|
|
197
|
-
fetchMock.config.overwriteRoutes = true;
|
|
198
|
-
afterAll(function () {
|
|
199
|
-
fetchMock.restore();
|
|
200
|
-
});
|
|
201
|
-
beforeEach(fetchMock.resetBehavior);
|
|
202
|
-
beforeEach(fetchMock.resetHistory);
|
|
203
|
-
it('useResourceAction should return result ', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
204
|
-
var _container$firstChild5, _container$firstChild6;
|
|
205
|
-
var resource, Page, _render3, container;
|
|
206
|
-
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
207
|
-
while (1) switch (_context4.prev = _context4.next) {
|
|
208
|
-
case 0:
|
|
209
|
-
Page = function _Page3() {
|
|
210
|
-
var _useResourceAction = useResourceAction(resource, undefined, 'POST', {
|
|
211
|
-
some: 'data'
|
|
212
|
-
}, undefined),
|
|
213
|
-
data = _useResourceAction.data,
|
|
214
|
-
fetch = _useResourceAction.fetch;
|
|
215
|
-
useEffect(function () {
|
|
216
|
-
fetch();
|
|
217
|
-
}, []);
|
|
218
|
-
return /*#__PURE__*/React.createElement("div", null, "hello, ", data && data.value);
|
|
219
|
-
};
|
|
220
|
-
resource = 'resourceaction';
|
|
221
|
-
fetchMock.mock.apply(fetchMock, _toConsumableArray(buildMockOptions({
|
|
222
|
-
resource: resource,
|
|
223
|
-
response: {
|
|
224
|
-
value: 'myvalue'
|
|
225
|
-
},
|
|
226
|
-
method: 'POST'
|
|
227
|
-
})));
|
|
228
|
-
_render3 = render( /*#__PURE__*/React.createElement(Page, null), {
|
|
229
|
-
wrapper: wrapper
|
|
230
|
-
}), container = _render3.container;
|
|
231
|
-
expect(container.firstChild).not.toBe(null);
|
|
232
|
-
expect(container === null || container === void 0 ? void 0 : (_container$firstChild5 = container.firstChild) === null || _container$firstChild5 === void 0 ? void 0 : _container$firstChild5.textContent).toMatchInlineSnapshot("\"hello, \"");
|
|
233
|
-
_context4.next = 8;
|
|
234
|
-
return delay(DELAY * 2);
|
|
235
|
-
case 8:
|
|
236
|
-
expect(container === null || container === void 0 ? void 0 : (_container$firstChild6 = container.firstChild) === null || _container$firstChild6 === void 0 ? void 0 : _container$firstChild6.textContent).toMatchInlineSnapshot("\"hello, myvalue\"");
|
|
237
|
-
expect(fetchMock.calls()).toHaveLength(1);
|
|
238
|
-
case 10:
|
|
239
|
-
case "end":
|
|
240
|
-
return _context4.stop();
|
|
241
|
-
}
|
|
242
|
-
}, _callee4);
|
|
243
|
-
})));
|
|
244
|
-
it('useResourceAction should be invalidated and run twice', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
245
|
-
var _container$firstChild7, _container$firstChild8, _container$firstChild9, _container$firstChild10;
|
|
246
|
-
var resource, Page, _render4, container;
|
|
247
|
-
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
248
|
-
while (1) switch (_context5.prev = _context5.next) {
|
|
249
|
-
case 0:
|
|
250
|
-
Page = function _Page4() {
|
|
251
|
-
var _useResourceAction2 = useResourceAction(resource, undefined, 'POST', {
|
|
252
|
-
some: 'data'
|
|
253
|
-
}, undefined),
|
|
254
|
-
data = _useResourceAction2.data,
|
|
255
|
-
fetch = _useResourceAction2.fetch,
|
|
256
|
-
invalidate = _useResourceAction2.invalidate;
|
|
257
|
-
useEffect(function () {
|
|
258
|
-
fetch();
|
|
259
|
-
}, []);
|
|
260
|
-
useEffect(function () {
|
|
261
|
-
setTimeout(function () {
|
|
262
|
-
invalidate();
|
|
263
|
-
}, DELAY * 2);
|
|
264
|
-
setTimeout(function () {
|
|
265
|
-
fetch();
|
|
266
|
-
}, DELAY * 3);
|
|
267
|
-
}, []);
|
|
268
|
-
return /*#__PURE__*/React.createElement("div", null, "hello, ", data && data.value);
|
|
269
|
-
};
|
|
270
|
-
resource = 'resourceactiondouble';
|
|
271
|
-
fetchMock.mock.apply(fetchMock, _toConsumableArray(buildMockOptions({
|
|
272
|
-
resource: resource,
|
|
273
|
-
response: {
|
|
274
|
-
value: 'myvalue'
|
|
275
|
-
},
|
|
276
|
-
method: 'POST'
|
|
277
|
-
})));
|
|
278
|
-
_render4 = render( /*#__PURE__*/React.createElement(Page, null), {
|
|
279
|
-
wrapper: wrapper
|
|
280
|
-
}), container = _render4.container;
|
|
281
|
-
expect(container.firstChild).not.toBe(null);
|
|
282
|
-
expect(container === null || container === void 0 ? void 0 : (_container$firstChild7 = container.firstChild) === null || _container$firstChild7 === void 0 ? void 0 : _container$firstChild7.textContent).toMatchInlineSnapshot("\"hello, \"");
|
|
283
|
-
_context5.next = 8;
|
|
284
|
-
return delay(DELAY);
|
|
285
|
-
case 8:
|
|
286
|
-
expect(container === null || container === void 0 ? void 0 : (_container$firstChild8 = container.firstChild) === null || _container$firstChild8 === void 0 ? void 0 : _container$firstChild8.textContent).toMatchInlineSnapshot("\"hello, myvalue\"");
|
|
287
|
-
_context5.next = 11;
|
|
288
|
-
return delay(DELAY);
|
|
289
|
-
case 11:
|
|
290
|
-
expect(container === null || container === void 0 ? void 0 : (_container$firstChild9 = container.firstChild) === null || _container$firstChild9 === void 0 ? void 0 : _container$firstChild9.textContent).toMatchInlineSnapshot("\"hello, \"");
|
|
291
|
-
_context5.next = 14;
|
|
292
|
-
return delay(DELAY * 2);
|
|
293
|
-
case 14:
|
|
294
|
-
expect(container === null || container === void 0 ? void 0 : (_container$firstChild10 = container.firstChild) === null || _container$firstChild10 === void 0 ? void 0 : _container$firstChild10.textContent).toMatchInlineSnapshot("\"hello, myvalue\"");
|
|
295
|
-
expect(fetchMock.calls()).toHaveLength(2);
|
|
296
|
-
case 16:
|
|
297
|
-
case "end":
|
|
298
|
-
return _context5.stop();
|
|
299
|
-
}
|
|
300
|
-
}, _callee5);
|
|
301
|
-
})));
|
|
302
|
-
});
|
|
303
|
-
describe('useResourceMany', function () {
|
|
304
|
-
fetchMock.config.overwriteRoutes = true;
|
|
305
|
-
afterAll(function () {
|
|
306
|
-
fetchMock.restore();
|
|
307
|
-
});
|
|
308
|
-
beforeEach(fetchMock.resetBehavior);
|
|
309
|
-
beforeEach(fetchMock.resetHistory);
|
|
310
|
-
|
|
311
|
-
//check this test again (loading/hello)
|
|
312
|
-
|
|
313
|
-
it('useResourceMany should return data', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
|
314
|
-
var _container$firstChild11, _container$firstChild12;
|
|
315
|
-
var resource, Page, _render5, container;
|
|
316
|
-
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
317
|
-
while (1) switch (_context6.prev = _context6.next) {
|
|
318
|
-
case 0:
|
|
319
|
-
Page = function _Page5() {
|
|
320
|
-
var _useResourceMany = useResourceMany(resource),
|
|
321
|
-
data = _useResourceMany.data;
|
|
322
|
-
return /*#__PURE__*/React.createElement("div", null, "hello, ", data && data.join(''));
|
|
323
|
-
};
|
|
324
|
-
resource = 'resourceMany';
|
|
325
|
-
fetchMock.mock.apply(fetchMock, _toConsumableArray(buildMockOptions({
|
|
326
|
-
resource: resource,
|
|
327
|
-
query: {
|
|
328
|
-
offset: 0,
|
|
329
|
-
limit: 30
|
|
330
|
-
},
|
|
331
|
-
response: {
|
|
332
|
-
data: ['S', 'W', 'R'],
|
|
333
|
-
meta: {
|
|
334
|
-
total: 1,
|
|
335
|
-
count: 3
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
})));
|
|
339
|
-
_render5 = render( /*#__PURE__*/React.createElement(Page, null), {
|
|
340
|
-
wrapper: wrapper
|
|
341
|
-
}), container = _render5.container;
|
|
342
|
-
expect(container.firstChild).not.toBe(null);
|
|
343
|
-
expect(container === null || container === void 0 ? void 0 : (_container$firstChild11 = container.firstChild) === null || _container$firstChild11 === void 0 ? void 0 : _container$firstChild11.textContent).toMatchInlineSnapshot("\"Loading\"");
|
|
344
|
-
_context6.next = 8;
|
|
345
|
-
return delay(DELAY * 2);
|
|
346
|
-
case 8:
|
|
347
|
-
expect(container === null || container === void 0 ? void 0 : (_container$firstChild12 = container.firstChild) === null || _container$firstChild12 === void 0 ? void 0 : _container$firstChild12.textContent).toMatchInlineSnapshot("\"hello, SWR\"");
|
|
348
|
-
expect(fetchMock.calls()).toHaveLength(1);
|
|
349
|
-
case 10:
|
|
350
|
-
case "end":
|
|
351
|
-
return _context6.stop();
|
|
352
|
-
}
|
|
353
|
-
}, _callee6);
|
|
354
|
-
})));
|
|
355
|
-
it('useResourceMany should handle hasNext, hasPrevious', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
|
|
356
|
-
var _container$firstChild13, _container$firstChild14;
|
|
357
|
-
var resource, Page, _render6, container;
|
|
358
|
-
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
359
|
-
while (1) switch (_context7.prev = _context7.next) {
|
|
360
|
-
case 0:
|
|
361
|
-
Page = function _Page6() {
|
|
362
|
-
var _useResourceMany2 = useResourceMany(resource),
|
|
363
|
-
hasNext = _useResourceMany2.hasNext,
|
|
364
|
-
hasPrevious = _useResourceMany2.hasPrevious;
|
|
365
|
-
return /*#__PURE__*/React.createElement("div", null, hasNext ? '' : 'no', " next,", hasPrevious ? '' : 'no', " previous");
|
|
366
|
-
};
|
|
367
|
-
resource = 'resourceManyhasNext';
|
|
368
|
-
fetchMock.mock.apply(fetchMock, _toConsumableArray(buildMockOptions({
|
|
369
|
-
resource: resource,
|
|
370
|
-
query: {
|
|
371
|
-
offset: 0,
|
|
372
|
-
limit: 30
|
|
373
|
-
},
|
|
374
|
-
response: {
|
|
375
|
-
data: ['S', 'W', 'R'],
|
|
376
|
-
meta: {
|
|
377
|
-
total: 1,
|
|
378
|
-
count: 3
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
})));
|
|
382
|
-
_render6 = render( /*#__PURE__*/React.createElement(Page, null), {
|
|
383
|
-
wrapper: wrapper
|
|
384
|
-
}), container = _render6.container;
|
|
385
|
-
expect(container.firstChild).not.toBe(null);
|
|
386
|
-
expect(container === null || container === void 0 ? void 0 : (_container$firstChild13 = container.firstChild) === null || _container$firstChild13 === void 0 ? void 0 : _container$firstChild13.textContent).toMatchInlineSnapshot("\"Loading\"");
|
|
387
|
-
_context7.next = 8;
|
|
388
|
-
return delay(DELAY);
|
|
389
|
-
case 8:
|
|
390
|
-
expect(container === null || container === void 0 ? void 0 : (_container$firstChild14 = container.firstChild) === null || _container$firstChild14 === void 0 ? void 0 : _container$firstChild14.textContent).toMatchInlineSnapshot("\"no next,no previous\"");
|
|
391
|
-
expect(fetchMock.calls()).toHaveLength(1);
|
|
392
|
-
case 10:
|
|
393
|
-
case "end":
|
|
394
|
-
return _context7.stop();
|
|
395
|
-
}
|
|
396
|
-
}, _callee7);
|
|
397
|
-
})));
|
|
398
|
-
it('useResourceMany should handle setPage with custom limit option', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
|
|
399
|
-
var _container$firstChild15, _container$firstChild16, _container$firstChild17;
|
|
400
|
-
var resource, Page, _render7, container, getByText;
|
|
401
|
-
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
402
|
-
while (1) switch (_context8.prev = _context8.next) {
|
|
403
|
-
case 0:
|
|
404
|
-
Page = function _Page7() {
|
|
405
|
-
var _useResourceMany3 = useResourceMany(resource, {
|
|
406
|
-
limit: 10
|
|
407
|
-
}),
|
|
408
|
-
data = _useResourceMany3.data,
|
|
409
|
-
setPage = _useResourceMany3.setPage,
|
|
410
|
-
page = _useResourceMany3.page;
|
|
411
|
-
var nextPage = function nextPage() {
|
|
412
|
-
setPage(page + 1);
|
|
413
|
-
};
|
|
414
|
-
return /*#__PURE__*/React.createElement("div", null, "hello, ", data.join(''), /*#__PURE__*/React.createElement("button", {
|
|
415
|
-
onClick: nextPage
|
|
416
|
-
}, "next"));
|
|
417
|
-
};
|
|
418
|
-
resource = 'resourceManysetpage';
|
|
419
|
-
fetchMock.mock.apply(fetchMock, _toConsumableArray(buildMockOptions({
|
|
420
|
-
resource: resource,
|
|
421
|
-
query: {
|
|
422
|
-
offset: 0,
|
|
423
|
-
limit: 10
|
|
424
|
-
},
|
|
425
|
-
response: {
|
|
426
|
-
data: ['S', 'W', 'R'],
|
|
427
|
-
meta: {
|
|
428
|
-
total: 3,
|
|
429
|
-
count: 100
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
})));
|
|
433
|
-
fetchMock.mock.apply(fetchMock, _toConsumableArray(buildMockOptions({
|
|
434
|
-
resource: resource,
|
|
435
|
-
query: {
|
|
436
|
-
offset: 10,
|
|
437
|
-
limit: 10
|
|
438
|
-
},
|
|
439
|
-
response: {
|
|
440
|
-
data: ['R', 'W', 'S'],
|
|
441
|
-
meta: {
|
|
442
|
-
total: 3,
|
|
443
|
-
count: 100
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
})));
|
|
447
|
-
_render7 = render( /*#__PURE__*/React.createElement(Page, null), {
|
|
448
|
-
wrapper: wrapper
|
|
449
|
-
}), container = _render7.container, getByText = _render7.getByText;
|
|
450
|
-
expect(container.firstChild).not.toBe(null);
|
|
451
|
-
expect(container === null || container === void 0 ? void 0 : (_container$firstChild15 = container.firstChild) === null || _container$firstChild15 === void 0 ? void 0 : _container$firstChild15.textContent).toMatchInlineSnapshot("\"Loading\"");
|
|
452
|
-
_context8.next = 9;
|
|
453
|
-
return delay(DELAY);
|
|
454
|
-
case 9:
|
|
455
|
-
expect(container === null || container === void 0 ? void 0 : (_container$firstChild16 = container.firstChild) === null || _container$firstChild16 === void 0 ? void 0 : _container$firstChild16.textContent).toMatchInlineSnapshot("\"hello, SWRnext\"");
|
|
456
|
-
fireEvent.click(getByText('next'));
|
|
457
|
-
_context8.next = 13;
|
|
458
|
-
return delay(DELAY * 2);
|
|
459
|
-
case 13:
|
|
460
|
-
expect(container === null || container === void 0 ? void 0 : (_container$firstChild17 = container.firstChild) === null || _container$firstChild17 === void 0 ? void 0 : _container$firstChild17.textContent).toMatchInlineSnapshot("\"hello, RWSnext\"");
|
|
461
|
-
expect(fetchMock.calls()).toHaveLength(2);
|
|
462
|
-
case 15:
|
|
463
|
-
case "end":
|
|
464
|
-
return _context8.stop();
|
|
465
|
-
}
|
|
466
|
-
}, _callee8);
|
|
467
|
-
})));
|
|
468
|
-
});
|
package/api/index.spec.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import 'whatwg-fetch';
|
package/api/introduction.md
DELETED
package/api/package.json
DELETED
package/api/useResource/index.js
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import _typeof from "@babel/runtime/helpers/typeof";
|
|
2
|
-
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
5
|
-
import { useState } from 'react';
|
|
6
|
-
import { useQuery, queryCache } from 'react-query';
|
|
7
|
-
import { useAPI } from '@digigov/ui/api';
|
|
8
|
-
import { getQueryKey, processResponse } from '@digigov/ui/api/utils';
|
|
9
|
-
export function useResource(resource, id, query, options, suspense) {
|
|
10
|
-
var _useAPI = useAPI(),
|
|
11
|
-
baseURL = _useAPI.config.baseURL,
|
|
12
|
-
token = _useAPI.token;
|
|
13
|
-
var _useState = useState({
|
|
14
|
-
url: '',
|
|
15
|
-
dataSet: false
|
|
16
|
-
}),
|
|
17
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
18
|
-
_useState2$ = _useState2[0],
|
|
19
|
-
url = _useState2$.url,
|
|
20
|
-
dataSet = _useState2$.dataSet,
|
|
21
|
-
setFetchOpts = _useState2[1];
|
|
22
|
-
function customFetcher(_x, _x2) {
|
|
23
|
-
return _customFetcher.apply(this, arguments);
|
|
24
|
-
}
|
|
25
|
-
function _customFetcher() {
|
|
26
|
-
_customFetcher = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(fetchUrl, options) {
|
|
27
|
-
var response, _yield$processRespons, _data, _error;
|
|
28
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29
|
-
while (1) switch (_context.prev = _context.next) {
|
|
30
|
-
case 0:
|
|
31
|
-
setFetchOpts({
|
|
32
|
-
url: fetchUrl,
|
|
33
|
-
dataSet: false
|
|
34
|
-
});
|
|
35
|
-
_context.next = 3;
|
|
36
|
-
return fetch(fetchUrl, options);
|
|
37
|
-
case 3:
|
|
38
|
-
response = _context.sent;
|
|
39
|
-
_context.prev = 4;
|
|
40
|
-
_context.next = 7;
|
|
41
|
-
return processResponse(response);
|
|
42
|
-
case 7:
|
|
43
|
-
_yield$processRespons = _context.sent;
|
|
44
|
-
_data = _yield$processRespons.data;
|
|
45
|
-
_error = _yield$processRespons.error;
|
|
46
|
-
if (!_error) {
|
|
47
|
-
_context.next = 12;
|
|
48
|
-
break;
|
|
49
|
-
}
|
|
50
|
-
return _context.abrupt("return", Promise.reject(_error));
|
|
51
|
-
case 12:
|
|
52
|
-
if (!_data) {
|
|
53
|
-
_context.next = 14;
|
|
54
|
-
break;
|
|
55
|
-
}
|
|
56
|
-
return _context.abrupt("return", Promise.resolve(_data));
|
|
57
|
-
case 14:
|
|
58
|
-
_context.next = 19;
|
|
59
|
-
break;
|
|
60
|
-
case 16:
|
|
61
|
-
_context.prev = 16;
|
|
62
|
-
_context.t0 = _context["catch"](4);
|
|
63
|
-
return _context.abrupt("return", Promise.reject(_context.t0.error));
|
|
64
|
-
case 19:
|
|
65
|
-
case "end":
|
|
66
|
-
return _context.stop();
|
|
67
|
-
}
|
|
68
|
-
}, _callee, null, [[4, 16]]);
|
|
69
|
-
}));
|
|
70
|
-
return _customFetcher.apply(this, arguments);
|
|
71
|
-
}
|
|
72
|
-
var queryKey = getQueryKey(resource, id, query, null, options, 'GET', baseURL, token);
|
|
73
|
-
var enabled = true;
|
|
74
|
-
var resolvedQueryKey;
|
|
75
|
-
if (typeof queryKey === 'function') {
|
|
76
|
-
try {
|
|
77
|
-
resolvedQueryKey = queryKey();
|
|
78
|
-
} catch (err) {
|
|
79
|
-
enabled = false;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
var _useQuery = useQuery(resolvedQueryKey || queryKey, customFetcher, {
|
|
83
|
-
enabled: enabled,
|
|
84
|
-
refetchOnWindowFocus: false,
|
|
85
|
-
refetchOnMount: false,
|
|
86
|
-
suspense: suspense || false,
|
|
87
|
-
cacheTime: 300000,
|
|
88
|
-
staleTime: 20000,
|
|
89
|
-
retry: false,
|
|
90
|
-
useErrorBoundary: false // falls back to suspense
|
|
91
|
-
}),
|
|
92
|
-
status = _useQuery.status,
|
|
93
|
-
data = _useQuery.data,
|
|
94
|
-
error = _useQuery.error,
|
|
95
|
-
isFetching = _useQuery.isFetching,
|
|
96
|
-
refetch = _useQuery.refetch;
|
|
97
|
-
return {
|
|
98
|
-
data: data,
|
|
99
|
-
loading: isFetching,
|
|
100
|
-
loaded: ['error', 'success'].includes(status),
|
|
101
|
-
error: error,
|
|
102
|
-
invalidate: function invalidate() {
|
|
103
|
-
queryCache.invalidateQueries(resolvedQueryKey || queryKey);
|
|
104
|
-
},
|
|
105
|
-
fetch: refetch,
|
|
106
|
-
dataSet: dataSet,
|
|
107
|
-
url: url
|
|
108
|
-
};
|
|
109
|
-
}
|
package/api/useResource.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export type RequestResponse = {
|
|
2
|
-
data?: Record<string, any>;
|
|
3
|
-
loading?: boolean;
|
|
4
|
-
loaded?: boolean;
|
|
5
|
-
error?: Error | string | null | unknown;
|
|
6
|
-
invalidate: () => void;
|
|
7
|
-
fetch: () => void;
|
|
8
|
-
dataSet?: boolean | null;
|
|
9
|
-
url: string;
|
|
10
|
-
};
|
|
11
|
-
export declare function useResource(resource: string, id?: string | number | ((...args: any[]) => void), query?: Record<string, any> | null | ((...args: any[]) => void), options?: RequestInit | null, suspense?: boolean): RequestResponse;
|