@digigov/ui 0.28.2 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -1
- package/LICENSE +0 -0
- package/admin/AdminLayout/index.d.ts +9 -0
- package/admin/AdminLayout/index.js +114 -0
- package/admin/AutoComplete/AutoComplete.stories.d.ts +14 -0
- package/admin/AutoComplete/AutoComplete.stories.js +116 -0
- package/admin/AutoComplete/Status/index.d.ts +40 -0
- package/admin/AutoComplete/Status/index.js +184 -0
- package/admin/AutoComplete/__stories__/Default.d.ts +2 -0
- package/admin/AutoComplete/__stories__/Default.js +34 -0
- package/admin/AutoComplete/__stories__/WithAutoSelect.d.ts +2 -0
- package/admin/AutoComplete/__stories__/WithAutoSelect.js +46 -0
- package/admin/AutoComplete/__stories__/WithDefaultValue.d.ts +2 -0
- package/admin/AutoComplete/__stories__/WithDefaultValue.js +33 -0
- package/admin/AutoComplete/__stories__/WithInLine.d.ts +2 -0
- package/admin/AutoComplete/__stories__/WithInLine.js +33 -0
- package/admin/AutoComplete/__stories__/WithMinLength.d.ts +2 -0
- package/admin/AutoComplete/__stories__/WithMinLength.js +35 -0
- package/admin/AutoComplete/__stories__/WithPlaceHolder.d.ts +2 -0
- package/admin/AutoComplete/__stories__/WithPlaceHolder.js +33 -0
- package/admin/AutoComplete/__stories__/WithShowAllValues.d.ts +2 -0
- package/admin/AutoComplete/__stories__/WithShowAllValues.js +33 -0
- package/admin/AutoComplete/__stories__/utils.d.ts +0 -0
- package/admin/AutoComplete/__stories__/utils.js +1 -0
- package/admin/AutoComplete/index.d.ts +118 -0
- package/admin/AutoComplete/index.js +717 -0
- package/admin/AutoComplete/index.mdx +73 -0
- package/admin/AutoComplete/utils.d.ts +11 -0
- package/admin/AutoComplete/utils.js +43 -0
- package/admin/Chip/index.d.ts +7 -0
- package/admin/Chip/index.js +86 -0
- package/admin/CircularProgress/CircularProgress.stories.d.ts +8 -0
- package/admin/CircularProgress/CircularProgress.stories.js +31 -0
- package/admin/CircularProgress/__stories__/Default.d.ts +2 -0
- package/admin/CircularProgress/__stories__/Default.js +24 -0
- package/admin/CircularProgress/index.d.ts +3 -0
- package/admin/CircularProgress/index.js +30 -0
- package/admin/CopyToClipboard/CopyToClipboard.stories.d.ts +9 -0
- package/admin/CopyToClipboard/CopyToClipboard.stories.js +45 -0
- package/{src/admin/Modal/Modal.stories.playwright.json → admin/CopyToClipboard/CopyToClipboard.stories.playwright.json} +8 -8
- package/admin/CopyToClipboard/__stories__/Banner.d.ts +2 -0
- package/admin/CopyToClipboard/__stories__/Banner.js +30 -0
- package/admin/CopyToClipboard/__stories__/Default.d.ts +2 -0
- package/admin/CopyToClipboard/__stories__/Default.js +32 -0
- package/admin/CopyToClipboard/index.d.ts +13 -0
- package/admin/CopyToClipboard/index.js +85 -0
- package/admin/CopyToClipboard/index.mdx +26 -0
- package/admin/Drawer/Drawer.stories.d.ts +10 -0
- package/admin/Drawer/Drawer.stories.js +33 -0
- package/admin/Drawer/__stories__/Default.d.ts +2 -0
- package/admin/Drawer/__stories__/Default.js +104 -0
- package/admin/Drawer/index.d.ts +4 -0
- package/admin/Drawer/index.js +44 -0
- package/admin/Drawer/index.mdx +16 -0
- package/admin/Dropdown/Dropdown.stories.d.ts +12 -0
- package/admin/Dropdown/Dropdown.stories.js +63 -0
- package/admin/Dropdown/__stories__/AlignRight.d.ts +2 -0
- package/admin/Dropdown/__stories__/AlignRight.js +76 -0
- package/admin/Dropdown/__stories__/Default.d.ts +2 -0
- package/admin/Dropdown/__stories__/Default.js +69 -0
- package/admin/Dropdown/__stories__/PlacementTop.d.ts +2 -0
- package/admin/Dropdown/__stories__/PlacementTop.js +76 -0
- package/admin/Dropdown/index.d.ts +22 -0
- package/admin/Dropdown/index.js +144 -0
- package/admin/Dropdown/index.mdx +45 -0
- package/admin/DropdownArrowDown/index.d.ts +3 -0
- package/admin/DropdownArrowDown/index.js +19 -0
- package/admin/FillableText/index.d.ts +3 -0
- package/admin/FillableText/index.js +30 -0
- package/admin/FilterSection/index.d.ts +9 -0
- package/admin/FilterSection/index.js +114 -0
- package/admin/FullPageBackground/index.d.ts +3 -0
- package/admin/FullPageBackground/index.js +30 -0
- package/admin/LabeledText/index.d.ts +3 -0
- package/admin/LabeledText/index.js +30 -0
- package/admin/LoaderContainer/index.d.ts +3 -0
- package/admin/LoaderContainer/index.js +30 -0
- package/admin/Modal/Modal.stories.d.ts +11 -0
- package/admin/Modal/Modal.stories.js +47 -0
- package/admin/Modal/__stories__/AlertDialog.d.ts +2 -0
- package/admin/Modal/__stories__/AlertDialog.js +37 -0
- package/admin/Modal/__stories__/Default.d.ts +2 -0
- package/admin/Modal/__stories__/Default.js +40 -0
- package/admin/Modal/index.d.ts +18 -0
- package/admin/Modal/index.js +173 -0
- package/admin/Modal/index.mdx +33 -0
- package/admin/Pagination/Pagination.stories.d.ts +11 -0
- package/admin/Pagination/Pagination.stories.js +47 -0
- package/admin/Pagination/Pagination.stories.playwright.json +27 -0
- package/admin/Pagination/__stories__/Default.d.ts +2 -0
- package/admin/Pagination/__stories__/Default.js +147 -0
- package/admin/Pagination/__stories__/PaginationSmall.d.ts +2 -0
- package/admin/Pagination/__stories__/PaginationSmall.js +55 -0
- package/admin/Pagination/index.d.ts +26 -0
- package/admin/Pagination/index.js +91 -0
- package/admin/Pagination/index.mdx +16 -0
- package/admin/ResultsHeading/index.d.ts +5 -0
- package/admin/ResultsHeading/index.js +58 -0
- package/admin/SearchSection/index.d.ts +5 -0
- package/admin/SearchSection/index.js +58 -0
- package/admin/StepNav/StepNav.stories.d.ts +9 -0
- package/admin/StepNav/StepNav.stories.js +34 -0
- package/admin/StepNav/StepNav.stories.playwright.json +33 -0
- package/admin/StepNav/__stories__/Default.d.ts +2 -0
- package/admin/StepNav/__stories__/Default.js +125 -0
- package/admin/StepNav/index.d.ts +15 -0
- package/admin/StepNav/index.js +115 -0
- package/admin/TableLoaderBackground/index.d.ts +3 -0
- package/admin/TableLoaderBackground/index.js +30 -0
- package/admin/TaskList/TaskList.stories.d.ts +9 -0
- package/admin/TaskList/TaskList.stories.js +32 -0
- package/admin/TaskList/__stories__/Default.d.ts +2 -0
- package/admin/TaskList/__stories__/Default.js +91 -0
- package/admin/TaskList/index.d.ts +7 -0
- package/admin/TaskList/index.js +86 -0
- package/admin/Timeline/Timeline.stories.d.ts +9 -0
- package/admin/Timeline/Timeline.stories.js +32 -0
- package/admin/Timeline/__stories__/Default.d.ts +2 -0
- package/admin/Timeline/__stories__/Default.js +87 -0
- package/admin/Timeline/index.d.ts +7 -0
- package/admin/Timeline/index.js +86 -0
- package/admin/index.d.ts +21 -0
- package/admin/index.js +278 -0
- package/api/APIErrors.d.ts +22 -0
- package/api/APIErrors.js +117 -0
- package/api/APIProvider.d.ts +15 -0
- package/api/APIProvider.js +43 -0
- package/api/fetchAPI.d.ts +18 -0
- package/api/fetchAPI.js +66 -0
- package/api/index.d.ts +9 -0
- package/api/index.js +104 -0
- package/api/index.spec.d.ts +1 -0
- package/api/index.spec.js +583 -0
- package/api/introduction.md +6 -0
- package/api/useResource.d.ts +11 -0
- package/api/useResource.js +146 -0
- package/api/useResourceAction.d.ts +2 -0
- package/api/useResourceAction.js +159 -0
- package/api/useResourceQuery.d.ts +18 -0
- package/api/useResourceQuery.js +232 -0
- package/api/utils.d.ts +6 -0
- package/api/utils.js +252 -0
- package/app/App.d.ts +7 -0
- package/app/App.js +30 -0
- package/app/Confirmation/Confirmation.mdx +16 -0
- package/app/Confirmation/Confirmation.stories.d.ts +10 -0
- package/app/Confirmation/Confirmation.stories.js +33 -0
- package/app/Confirmation/__stories__/Default.d.ts +2 -0
- package/app/Confirmation/__stories__/Default.js +22 -0
- package/{src/core/Confirmation/index.tsx → app/Confirmation/index.d.ts} +1 -1
- package/app/Confirmation/index.js +58 -0
- package/app/Footer/Footer.mdx +46 -0
- package/app/Footer/Footer.stories.d.ts +17 -0
- package/app/Footer/Footer.stories.js +120 -0
- package/app/Footer/Footer.stories.playwright.json +27 -0
- package/app/Footer/__stories__/Default.d.ts +2 -0
- package/app/Footer/__stories__/Default.js +22 -0
- package/app/Footer/__stories__/DefaultCopyright.d.ts +2 -0
- package/app/Footer/__stories__/DefaultCopyright.js +32 -0
- package/app/Footer/__stories__/FooterAllInclusive.d.ts +2 -0
- package/app/Footer/__stories__/FooterAllInclusive.js +55 -0
- package/app/Footer/__stories__/FooterWithLink.d.ts +2 -0
- package/app/Footer/__stories__/FooterWithLink.js +40 -0
- package/app/Footer/__stories__/FooterWithLogo.d.ts +2 -0
- package/app/Footer/__stories__/FooterWithLogo.js +44 -0
- package/app/Footer/__stories__/FooterWithSecondaryNavigation.d.ts +2 -0
- package/app/Footer/__stories__/FooterWithSecondaryNavigation.js +50 -0
- package/app/Footer/__stories__/YearCopyright.d.ts +2 -0
- package/app/Footer/__stories__/YearCopyright.js +38 -0
- package/app/Footer/index.d.ts +17 -0
- package/app/Footer/index.js +226 -0
- package/app/Header/Header.stories.d.ts +18 -0
- package/app/Header/Header.stories.js +94 -0
- package/app/Header/Header.stories.playwright.json +33 -0
- package/app/Header/HeaderContent.d.ts +3 -0
- package/app/Header/HeaderContent.js +19 -0
- package/app/Header/HeaderLogo.d.ts +3 -0
- package/app/Header/HeaderLogo.js +30 -0
- package/app/Header/HeaderNavMenuContent.d.ts +3 -0
- package/app/Header/HeaderNavMenuContent.js +19 -0
- package/app/Header/HeaderSecondaryLogo.d.ts +3 -0
- package/app/Header/HeaderSecondaryLogo.js +19 -0
- package/app/Header/HeaderSection.d.ts +3 -0
- package/app/Header/HeaderSection.js +30 -0
- package/app/Header/HeaderSubtitle.d.ts +3 -0
- package/app/Header/HeaderSubtitle.js +19 -0
- package/app/Header/HeaderTitle.d.ts +3 -0
- package/app/Header/HeaderTitle.js +30 -0
- package/app/Header/__snapshots__/index.spec.tsx.snap +396 -0
- package/app/Header/__stories__/Default.d.ts +2 -0
- package/app/Header/__stories__/Default.js +30 -0
- package/app/Header/__stories__/WithHeaderNavigation.d.ts +2 -0
- package/app/Header/__stories__/WithHeaderNavigation.js +59 -0
- package/app/Header/__stories__/WithNavigation.d.ts +2 -0
- package/app/Header/__stories__/WithNavigation.js +52 -0
- package/app/Header/__stories__/WithServiceName.d.ts +2 -0
- package/app/Header/__stories__/WithServiceName.js +32 -0
- package/app/Header/__stories__/WithServiceNameAndLogo.d.ts +2 -0
- package/app/Header/__stories__/WithServiceNameAndLogo.js +39 -0
- package/app/Header/index.d.ts +10 -0
- package/app/Header/index.js +128 -0
- package/app/Header/index.mdx +43 -0
- package/app/Header/index.spec.d.ts +1 -0
- package/app/Header/index.spec.js +42 -0
- package/app/I18nText.d.ts +10 -0
- package/app/I18nText.js +93 -0
- package/app/NotFound/NotFound.stories.d.ts +8 -0
- package/app/NotFound/NotFound.stories.js +31 -0
- package/app/NotFound/__stories__/Default.d.ts +2 -0
- package/app/NotFound/__stories__/Default.js +22 -0
- package/app/NotFound/index.d.ts +3 -0
- package/app/NotFound/index.js +29 -0
- package/app/NotFound/index.mdx +16 -0
- package/app/OutdatedBrowserBanner.d.ts +1 -0
- package/app/OutdatedBrowserBanner.js +41 -0
- package/app/PageTitle.d.ts +6 -0
- package/app/PageTitle.js +72 -0
- package/app/PhaseBannerHeader/PhaseBannerHeader.stories.d.ts +8 -0
- package/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +31 -0
- package/app/PhaseBannerHeader/__stories__/Default.d.ts +2 -0
- package/app/PhaseBannerHeader/__stories__/Default.js +25 -0
- package/app/PhaseBannerHeader/index.d.ts +8 -0
- package/app/PhaseBannerHeader/index.js +39 -0
- package/app/PhaseBannerHeader/index.mdx +16 -0
- package/app/QrCodeScanner/QrCodeScanner.stories.d.ts +8 -0
- package/app/QrCodeScanner/QrCodeScanner.stories.js +31 -0
- package/app/QrCodeScanner/__snapshots__/index.spec.tsx.snap +22 -0
- package/app/QrCodeScanner/__stories__/Default.d.ts +2 -0
- package/app/QrCodeScanner/__stories__/Default.js +74 -0
- package/app/QrCodeScanner/index.d.ts +34 -0
- package/app/QrCodeScanner/index.js +90 -0
- package/app/QrCodeScanner/index.spec.d.ts +1 -0
- package/app/QrCodeScanner/index.spec.js +26 -0
- package/app/QrCodeViewer/QRCode.stories.d.ts +9 -0
- package/app/QrCodeViewer/QRCode.stories.js +47 -0
- package/app/QrCodeViewer/__stories__/Custom.d.ts +2 -0
- package/app/QrCodeViewer/__stories__/Custom.js +37 -0
- package/app/QrCodeViewer/__stories__/Default.d.ts +2 -0
- package/app/QrCodeViewer/__stories__/Default.js +24 -0
- package/app/QrCodeViewer/index.d.ts +6 -0
- package/app/QrCodeViewer/index.js +180 -0
- package/app/QrCodeViewer/index.mdx +28 -0
- package/app/QrCodeViewer/qrcodegen.d.ts +100 -0
- package/app/QrCodeViewer/qrcodegen.js +1086 -0
- package/app/QrCodeViewer/types.d.ts +28 -0
- package/app/QrCodeViewer/types.js +5 -0
- package/app/QrCodeViewer/utils.d.ts +11 -0
- package/app/QrCodeViewer/utils.js +108 -0
- package/app/i18n.d.ts +12 -0
- package/app/i18n.js +79 -0
- package/app/index.d.ts +10 -0
- package/app/index.js +135 -0
- package/core/Accordion/Accordion.stories.d.ts +12 -0
- package/core/Accordion/Accordion.stories.js +48 -0
- package/{src/admin/Dropdown/Dropdown.stories.playwright.json → core/Accordion/Accordion.stories.playwright.json} +4 -4
- package/core/Accordion/__snapshots__/index.spec.tsx.snap +78 -0
- package/core/Accordion/__stories__/Default.d.ts +2 -0
- package/core/Accordion/__stories__/Default.js +48 -0
- package/core/Accordion/__stories__/WithHints.d.ts +2 -0
- package/core/Accordion/__stories__/WithHints.js +50 -0
- package/core/Accordion/index.d.ts +29 -0
- package/core/Accordion/index.js +219 -0
- package/core/Accordion/index.mdx +41 -0
- package/core/Accordion/index.spec.d.ts +1 -0
- package/core/Accordion/index.spec.js +19 -0
- package/core/BackLink/BackLink.stories.d.ts +8 -0
- package/core/BackLink/BackLink.stories.js +31 -0
- package/core/BackLink/BackLink.stories.playwright.json +21 -0
- package/core/BackLink/__stories__/Default.d.ts +2 -0
- package/core/BackLink/__stories__/Default.js +24 -0
- package/core/BackLink/index.d.ts +3 -0
- package/core/BackLink/index.js +30 -0
- package/core/BackLink/index.mdx +20 -0
- package/core/Base/index.d.ts +3 -0
- package/core/Base/index.js +19 -0
- package/core/Blockquote/Blockquote.stories.d.ts +10 -0
- package/core/Blockquote/Blockquote.stories.js +33 -0
- package/core/Blockquote/__snapshots__/index.spec.tsx.snap +13 -0
- package/core/Blockquote/__stories__/Default.d.ts +2 -0
- package/core/Blockquote/__stories__/Default.js +22 -0
- package/core/Blockquote/index.d.ts +3 -0
- package/core/Blockquote/index.js +30 -0
- package/core/Blockquote/index.mdx +23 -0
- package/core/Blockquote/index.spec.d.ts +1 -0
- package/core/Blockquote/index.spec.js +21 -0
- package/core/Breadcrumbs/Breadcrumbs.stories.d.ts +10 -0
- package/core/Breadcrumbs/Breadcrumbs.stories.js +33 -0
- package/core/Breadcrumbs/Breadcrumbs.stories.playwright.json +33 -0
- package/core/Breadcrumbs/__stories__/Default.d.ts +2 -0
- package/core/Breadcrumbs/__stories__/Default.js +34 -0
- package/core/Breadcrumbs/breadcrumbs.mdx +22 -0
- package/core/Breadcrumbs/index.d.ts +5 -0
- package/core/Breadcrumbs/index.js +58 -0
- package/core/Button/BackButton.d.ts +3 -0
- package/core/Button/BackButton.js +34 -0
- package/core/Button/BackLink.d.ts +3 -0
- package/core/Button/BackLink.js +30 -0
- package/core/Button/Button.stories.d.ts +20 -0
- package/core/Button/Button.stories.js +175 -0
- package/core/Button/Button.stories.playwright.json +115 -0
- package/core/Button/ButtonLink.d.ts +3 -0
- package/core/Button/ButtonLink.js +30 -0
- package/core/Button/CallToAction.d.ts +3 -0
- package/core/Button/CallToAction.js +30 -0
- package/core/Button/Icon.d.ts +2 -0
- package/core/Button/Icon.js +19 -0
- package/core/Button/ThemeToggleButton.d.ts +2 -0
- package/core/Button/ThemeToggleButton.js +70 -0
- package/core/Button/__snapshots__/index.spec.tsx.snap +13 -0
- package/core/Button/__stories__/Back.d.ts +3 -0
- package/core/Button/__stories__/Back.js +26 -0
- package/core/Button/__stories__/ButtonLinkButton.d.ts +5 -0
- package/core/Button/__stories__/ButtonLinkButton.js +30 -0
- package/core/Button/__stories__/CallToActionButton.d.ts +5 -0
- package/core/Button/__stories__/CallToActionButton.js +30 -0
- package/core/Button/__stories__/Disabled.d.ts +5 -0
- package/core/Button/__stories__/Disabled.js +27 -0
- package/core/Button/__stories__/GroupingButtons.d.ts +4 -0
- package/core/Button/__stories__/GroupingButtons.js +25 -0
- package/core/Button/__stories__/GroupingButtonsAndLinks.d.ts +4 -0
- package/core/Button/__stories__/GroupingButtonsAndLinks.js +27 -0
- package/core/Button/__stories__/Primary.d.ts +5 -0
- package/core/Button/__stories__/Primary.js +27 -0
- package/core/Button/__stories__/Secondary.d.ts +5 -0
- package/core/Button/__stories__/Secondary.js +28 -0
- package/core/Button/__stories__/ThemeToggle.d.ts +2 -0
- package/core/Button/__stories__/ThemeToggle.js +22 -0
- package/core/Button/__stories__/Warning.d.ts +1 -0
- package/core/Button/__stories__/Warning.js +23 -0
- package/core/Button/__stories__/WithVariantLink.d.ts +5 -0
- package/core/Button/__stories__/WithVariantLink.js +29 -0
- package/core/Button/index.d.ts +15 -0
- package/core/Button/index.js +132 -0
- package/core/Button/index.mdx +113 -0
- package/core/Button/index.spec.d.ts +1 -0
- package/core/Button/index.spec.js +21 -0
- package/core/Card/Card.stories.d.ts +19 -0
- package/core/Card/Card.stories.js +146 -0
- package/core/Card/Card.stories.playwright.json +21 -0
- package/core/Card/__stories__/Default.d.ts +2 -0
- package/core/Card/__stories__/Default.js +24 -0
- package/core/Card/__stories__/WithClickableContent.d.ts +2 -0
- package/core/Card/__stories__/WithClickableContent.js +28 -0
- package/core/Card/__stories__/WithClickableLink.d.ts +2 -0
- package/core/Card/__stories__/WithClickableLink.js +26 -0
- package/core/Card/__stories__/WithDarkBorder.d.ts +2 -0
- package/core/Card/__stories__/WithDarkBorder.js +27 -0
- package/core/Card/__stories__/WithDarkTopBorder.d.ts +2 -0
- package/core/Card/__stories__/WithDarkTopBorder.js +27 -0
- package/core/Card/__stories__/WithDivider.d.ts +2 -0
- package/core/Card/__stories__/WithDivider.js +26 -0
- package/core/Card/__stories__/WithGrayBorder.d.ts +2 -0
- package/core/Card/__stories__/WithGrayBorder.js +27 -0
- package/core/Card/__stories__/WithGrayTopBorder.d.ts +2 -0
- package/core/Card/__stories__/WithGrayTopBorder.js +27 -0
- package/core/Card/__stories__/WithGroupButton.d.ts +2 -0
- package/core/Card/__stories__/WithGroupButton.js +26 -0
- package/core/Card/card.mdx +101 -0
- package/core/Card/index.d.ts +6 -0
- package/core/Card/index.js +72 -0
- package/core/Checkbox/Checkbox.stories.d.ts +16 -0
- package/core/Checkbox/Checkbox.stories.js +117 -0
- package/{src/core/Checkboxes → core/Checkbox}/Checkbox.stories.playwright.json +3 -3
- package/core/Checkbox/__stories__/ConditionalReveal.d.ts +2 -0
- package/core/Checkbox/__stories__/ConditionalReveal.js +42 -0
- package/core/Checkbox/__stories__/Default.d.ts +2 -0
- package/core/Checkbox/__stories__/Default.js +39 -0
- package/core/Checkbox/__stories__/MultipleQuestions.d.ts +2 -0
- package/core/Checkbox/__stories__/MultipleQuestions.js +41 -0
- package/core/Checkbox/__stories__/NoneAnswer.d.ts +2 -0
- package/core/Checkbox/__stories__/NoneAnswer.js +41 -0
- package/core/Checkbox/__stories__/NoneAnswerWithError.d.ts +2 -0
- package/core/Checkbox/__stories__/NoneAnswerWithError.js +51 -0
- package/core/Checkbox/__stories__/WithErrorMessage.d.ts +2 -0
- package/core/Checkbox/__stories__/WithErrorMessage.js +44 -0
- package/core/Checkbox/__stories__/WithHint.d.ts +2 -0
- package/core/Checkbox/__stories__/WithHint.js +39 -0
- package/{src/core/Checkboxes/checkboxes.mdx → core/Checkbox/checkbox.mdx} +40 -16
- package/{src/core/Checkboxes/index.tsx → core/Checkbox/index.d.ts} +0 -0
- package/core/Checkbox/index.js +58 -0
- package/core/DateInputContainer/DateInputContainer.stories.d.ts +13 -0
- package/core/DateInputContainer/DateInputContainer.stories.js +75 -0
- package/{src/core/DateInput/DateInput.stories.playwright.json → core/DateInputContainer/DateInputContainer.stories.playwright.json} +0 -0
- package/core/DateInputContainer/__stories__/Default.d.ts +2 -0
- package/core/DateInputContainer/__stories__/Default.js +35 -0
- package/core/DateInputContainer/__stories__/MultipleQuestions.d.ts +2 -0
- package/core/DateInputContainer/__stories__/MultipleQuestions.js +35 -0
- package/core/DateInputContainer/__stories__/WithErrorMessage.d.ts +2 -0
- package/core/DateInputContainer/__stories__/WithErrorMessage.js +42 -0
- package/core/DateInputContainer/__stories__/WithErrorMessageForSingleField.d.ts +2 -0
- package/core/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +40 -0
- package/core/DateInputContainer/index.d.ts +4 -0
- package/core/DateInputContainer/index.js +44 -0
- package/core/DateInputContainer/index.mdx +44 -0
- package/core/Details/Details.stories.d.ts +10 -0
- package/core/Details/Details.stories.js +33 -0
- package/core/Details/Details.stories.playwright.json +27 -0
- package/core/Details/__snapshots__/index.spec.tsx.snap +50 -0
- package/core/Details/__stories__/Default.d.ts +2 -0
- package/core/Details/__stories__/Default.js +22 -0
- package/core/Details/index.d.ts +5 -0
- package/core/Details/index.js +58 -0
- package/core/Details/index.mdx +20 -0
- package/core/Details/index.spec.d.ts +1 -0
- package/core/Details/index.spec.js +27 -0
- package/core/Divider/Divider.stories.d.ts +8 -0
- package/core/Divider/Divider.stories.js +33 -0
- package/core/Divider/__stories__/Default.d.ts +2 -0
- package/core/Divider/__stories__/Default.js +39 -0
- package/core/Divider/index.d.ts +5 -0
- package/core/Divider/index.js +21 -0
- package/core/ErrorMessage/ErrorMessage.stories.d.ts +10 -0
- package/core/ErrorMessage/ErrorMessage.stories.js +33 -0
- package/core/ErrorMessage/__stories__/Default.d.ts +2 -0
- package/core/ErrorMessage/__stories__/Default.js +38 -0
- package/core/ErrorMessage/index.d.ts +3 -0
- package/core/ErrorMessage/index.js +30 -0
- package/core/ErrorMessage/index.mdx +22 -0
- package/core/ErrorSummary/ErrorSummary.stories.d.ts +13 -0
- package/core/ErrorSummary/ErrorSummary.stories.js +75 -0
- package/core/ErrorSummary/ErrorSummary.stories.playwright.json +27 -0
- package/core/ErrorSummary/__snapshots__/index.spec.tsx.snap +322 -0
- package/core/ErrorSummary/__stories__/Default.d.ts +2 -0
- package/core/ErrorSummary/__stories__/Default.js +28 -0
- package/core/ErrorSummary/__stories__/LinkedToCheckbox.d.ts +2 -0
- package/core/ErrorSummary/__stories__/LinkedToCheckbox.js +52 -0
- package/core/ErrorSummary/__stories__/LinkedToField.d.ts +2 -0
- package/core/ErrorSummary/__stories__/LinkedToField.js +53 -0
- package/core/ErrorSummary/__stories__/LinkedToInput.d.ts +2 -0
- package/core/ErrorSummary/__stories__/LinkedToInput.js +52 -0
- package/core/ErrorSummary/index.d.ts +3 -0
- package/core/ErrorSummary/index.js +30 -0
- package/core/ErrorSummary/index.mdx +54 -0
- package/core/ErrorSummary/index.spec.d.ts +1 -0
- package/core/ErrorSummary/index.spec.js +19 -0
- package/core/FieldContainer/index.d.ts +5 -0
- package/core/FieldContainer/index.js +58 -0
- package/core/FileUpload/FileUpload.stories.d.ts +10 -0
- package/core/FileUpload/FileUpload.stories.js +46 -0
- package/core/FileUpload/__stories__/Default.d.ts +2 -0
- package/core/FileUpload/__stories__/Default.js +28 -0
- package/core/FileUpload/__stories__/WithErrorMessage.d.ts +2 -0
- package/core/FileUpload/__stories__/WithErrorMessage.js +34 -0
- package/core/FileUpload/index.d.ts +4 -0
- package/core/FileUpload/index.js +44 -0
- package/core/FileUpload/index.mdx +27 -0
- package/core/Form/index.d.ts +3 -0
- package/core/Form/index.js +19 -0
- package/core/Hidden/index.d.ts +1 -0
- package/core/Hidden/index.js +18 -0
- package/core/LabelContainer/index.d.ts +4 -0
- package/core/LabelContainer/index.js +44 -0
- package/core/Link/Link.stories.d.ts +14 -0
- package/core/Link/Link.stories.js +102 -0
- package/core/Link/Link.stories.playwright.json +65 -0
- package/core/Link/__snapshots__/index.spec.tsx.snap +31 -0
- package/core/Link/__stories__/DarkBackground.d.ts +2 -0
- package/core/Link/__stories__/DarkBackground.js +30 -0
- package/core/Link/__stories__/DarkBackgroundNoUnderline.d.ts +2 -0
- package/core/Link/__stories__/DarkBackgroundNoUnderline.js +31 -0
- package/core/Link/__stories__/Default.d.ts +2 -0
- package/core/Link/__stories__/Default.js +26 -0
- package/core/Link/__stories__/ExternalLink.d.ts +2 -0
- package/core/Link/__stories__/ExternalLink.js +28 -0
- package/core/Link/__stories__/NoUnderline.d.ts +2 -0
- package/core/Link/__stories__/NoUnderline.js +27 -0
- package/core/Link/__stories__/OpensInNewTab.d.ts +2 -0
- package/core/Link/__stories__/OpensInNewTab.js +26 -0
- package/core/Link/index.d.ts +13 -0
- package/core/Link/index.js +62 -0
- package/core/Link/index.spec.d.ts +1 -0
- package/core/Link/index.spec.js +31 -0
- package/core/Link/link.mdx +54 -0
- package/core/List/List.d.ts +3 -0
- package/core/List/List.js +30 -0
- package/core/List/List.stories.d.ts +15 -0
- package/core/List/List.stories.js +103 -0
- package/core/List/List.stories.playwright.json +27 -0
- package/core/List/ListItem.d.ts +3 -0
- package/core/List/ListItem.js +19 -0
- package/core/List/ListItemContent.d.ts +6 -0
- package/core/List/ListItemContent.js +27 -0
- package/core/List/ListItemIcon.d.ts +5 -0
- package/core/List/ListItemIcon.js +27 -0
- package/core/List/ListItemText.d.ts +7 -0
- package/core/List/ListItemText.js +29 -0
- package/core/List/ListItemTitle.d.ts +9 -0
- package/core/List/ListItemTitle.js +37 -0
- package/core/List/__snapshots__/index.spec.tsx.snap +322 -0
- package/core/List/__stories__/BulletList.d.ts +2 -0
- package/core/List/__stories__/BulletList.js +26 -0
- package/core/List/__stories__/Default.d.ts +2 -0
- package/core/List/__stories__/Default.js +26 -0
- package/core/List/__stories__/NestedBulletList.d.ts +2 -0
- package/core/List/__stories__/NestedBulletList.js +34 -0
- package/core/List/__stories__/NestedListWithVariantStyles.d.ts +2 -0
- package/core/List/__stories__/NestedListWithVariantStyles.js +32 -0
- package/core/List/__stories__/NumberedList.d.ts +2 -0
- package/core/List/__stories__/NumberedList.js +26 -0
- package/core/List/__stories__/WithExtraSpace.d.ts +2 -0
- package/core/List/__stories__/WithExtraSpace.js +26 -0
- package/core/List/index.d.ts +7 -0
- package/core/List/index.js +96 -0
- package/core/List/index.mdx +34 -0
- package/core/List/index.spec.d.ts +1 -0
- package/core/List/index.spec.js +19 -0
- package/core/Masthead/Masthead.stories.d.ts +11 -0
- package/core/Masthead/Masthead.stories.js +34 -0
- package/core/Masthead/Masthead.stories.playwright.json +21 -0
- package/core/Masthead/__stories__/Default.d.ts +2 -0
- package/core/Masthead/__stories__/Default.js +32 -0
- package/core/Masthead/index.d.ts +4 -0
- package/core/Masthead/index.js +44 -0
- package/core/Masthead/masthead.mdx +18 -0
- package/core/NavList/NavHorizontal.d.ts +3 -0
- package/core/NavList/NavHorizontal.js +19 -0
- package/core/NavList/NavHorizontalList.d.ts +3 -0
- package/core/NavList/NavHorizontalList.js +19 -0
- package/core/NavList/NavHorizontalListItem.d.ts +3 -0
- package/core/NavList/NavHorizontalListItem.js +19 -0
- package/core/NavList/NavHorizontalListItemButton.d.ts +3 -0
- package/core/NavList/NavHorizontalListItemButton.js +19 -0
- package/core/NavList/NavHorizontalListItemLink.d.ts +3 -0
- package/core/NavList/NavHorizontalListItemLink.js +19 -0
- package/core/NavList/NavList.d.ts +4 -0
- package/core/NavList/NavList.js +42 -0
- package/core/NavList/NavList.stories.d.ts +11 -0
- package/core/NavList/NavList.stories.js +47 -0
- package/core/NavList/NavList.stories.playwright.json +33 -0
- package/core/NavList/NavListBase.d.ts +4 -0
- package/core/NavList/NavListBase.js +76 -0
- package/core/NavList/NavListContext.d.ts +20 -0
- package/core/NavList/NavListContext.js +102 -0
- package/core/NavList/NavListItem.d.ts +14 -0
- package/core/NavList/NavListItem.js +173 -0
- package/core/NavList/NavListItemBase.d.ts +17 -0
- package/core/NavList/NavListItemBase.js +165 -0
- package/core/NavList/NavListSubMenu.d.ts +8 -0
- package/core/NavList/NavListSubMenu.js +52 -0
- package/core/NavList/NavMenu.d.ts +3 -0
- package/core/NavList/NavMenu.js +19 -0
- package/core/NavList/NavMenuContainer.d.ts +3 -0
- package/core/NavList/NavMenuContainer.js +19 -0
- package/core/NavList/NavMenuContainerContent.d.ts +3 -0
- package/core/NavList/NavMenuContainerContent.js +19 -0
- package/core/NavList/NavMenuContainerContentList.d.ts +3 -0
- package/core/NavList/NavMenuContainerContentList.js +19 -0
- package/core/NavList/NavMenuContainerContentListItem.d.ts +3 -0
- package/core/NavList/NavMenuContainerContentListItem.js +19 -0
- package/core/NavList/NavMenuContainerTitle.d.ts +3 -0
- package/core/NavList/NavMenuContainerTitle.js +19 -0
- package/core/NavList/NavVertical.d.ts +3 -0
- package/core/NavList/NavVertical.js +19 -0
- package/core/NavList/NavVerticalItem.d.ts +3 -0
- package/core/NavList/NavVerticalItem.js +19 -0
- package/core/NavList/__snapshots__/index.spec.tsx.snap +334 -0
- package/core/NavList/__stories__/Default.d.ts +2 -0
- package/core/NavList/__stories__/Default.js +63 -0
- package/core/NavList/__stories__/NavHorizontalLayout.d.ts +2 -0
- package/core/NavList/__stories__/NavHorizontalLayout.js +63 -0
- package/core/NavList/index.d.ts +20 -0
- package/core/NavList/index.js +268 -0
- package/core/NavList/index.mdx +32 -0
- package/core/NavList/index.spec.d.ts +1 -0
- package/core/NavList/index.spec.js +19 -0
- package/core/NavList/types.d.ts +14 -0
- package/core/NavList/types.js +5 -0
- package/core/NotificationBanner/NotificationBanner.stories.d.ts +12 -0
- package/core/NotificationBanner/NotificationBanner.stories.js +48 -0
- package/core/NotificationBanner/NotificationBanner.stories.playwright.json +49 -0
- package/core/NotificationBanner/__snapshots__/index.spec.tsx.snap +737 -0
- package/core/NotificationBanner/__stories__/Default.d.ts +2 -0
- package/core/NotificationBanner/__stories__/Default.js +26 -0
- package/core/NotificationBanner/__stories__/Success.d.ts +2 -0
- package/core/NotificationBanner/__stories__/Success.js +27 -0
- package/core/NotificationBanner/index.d.ts +18 -0
- package/core/NotificationBanner/index.js +79 -0
- package/core/NotificationBanner/index.mdx +34 -0
- package/core/NotificationBanner/index.spec.d.ts +1 -0
- package/core/NotificationBanner/index.spec.js +30 -0
- package/core/PhaseBanner/PhaseBanner.stories.d.ts +11 -0
- package/core/PhaseBanner/PhaseBanner.stories.js +47 -0
- package/core/PhaseBanner/PhaseBanner.stories.playwright.json +21 -0
- package/core/PhaseBanner/__stories__/Default.d.ts +2 -0
- package/core/PhaseBanner/__stories__/Default.js +26 -0
- package/core/PhaseBanner/__stories__/Underlined.d.ts +2 -0
- package/core/PhaseBanner/__stories__/Underlined.js +28 -0
- package/core/PhaseBanner/index.d.ts +6 -0
- package/core/PhaseBanner/index.js +72 -0
- package/core/PhaseBanner/index.mdx +30 -0
- package/core/RadioContainer/RadioContainer.stories.d.ts +16 -0
- package/core/RadioContainer/RadioContainer.stories.js +117 -0
- package/{src/core/Radios/Radios.stories.playwright.json → core/RadioContainer/RadioContainer.stories.playwright.json} +3 -3
- package/core/RadioContainer/__stories__/ConditionalReveal.d.ts +2 -0
- package/core/RadioContainer/__stories__/ConditionalReveal.js +42 -0
- package/core/RadioContainer/__stories__/Default.d.ts +2 -0
- package/core/RadioContainer/__stories__/Default.js +36 -0
- package/core/RadioContainer/__stories__/Inline.d.ts +2 -0
- package/core/RadioContainer/__stories__/Inline.js +38 -0
- package/core/RadioContainer/__stories__/MultipleQuestions.d.ts +2 -0
- package/core/RadioContainer/__stories__/MultipleQuestions.js +44 -0
- package/core/RadioContainer/__stories__/NoneAnswer.d.ts +2 -0
- package/core/RadioContainer/__stories__/NoneAnswer.js +35 -0
- package/core/RadioContainer/__stories__/WithErrorMessage.d.ts +2 -0
- package/core/RadioContainer/__stories__/WithErrorMessage.js +44 -0
- package/core/RadioContainer/__stories__/WithHints.d.ts +2 -0
- package/core/RadioContainer/__stories__/WithHints.js +44 -0
- package/core/RadioContainer/index.d.ts +5 -0
- package/core/RadioContainer/index.js +58 -0
- package/core/RadioContainer/index.mdx +90 -0
- package/core/SectionBreak/index.d.ts +3 -0
- package/core/SectionBreak/index.js +30 -0
- package/core/SelectContainer/Select.stories.d.ts +12 -0
- package/core/SelectContainer/Select.stories.js +61 -0
- package/{src/core/Select → core/SelectContainer}/Select.stories.playwright.json +2 -2
- package/core/SelectContainer/__stories__/Default.d.ts +2 -0
- package/core/SelectContainer/__stories__/Default.js +37 -0
- package/core/SelectContainer/__stories__/DisabledInput.d.ts +2 -0
- package/core/SelectContainer/__stories__/DisabledInput.js +39 -0
- package/core/SelectContainer/__stories__/WithHint.d.ts +2 -0
- package/core/SelectContainer/__stories__/WithHint.js +39 -0
- package/core/SelectContainer/index.d.ts +4 -0
- package/core/SelectContainer/index.js +44 -0
- package/core/SelectContainer/index.mdx +42 -0
- package/core/ServiceBadge/index.d.ts +8 -0
- package/core/ServiceBadge/index.js +35 -0
- package/core/ServiceBadge/index.mdx +42 -0
- package/core/SkipLink/index.d.ts +3 -0
- package/core/SkipLink/index.js +19 -0
- package/core/SummaryList/SummaryList.stories.d.ts +14 -0
- package/core/SummaryList/SummaryList.stories.js +91 -0
- package/core/SummaryList/SummaryList.stories.playwright.json +27 -0
- package/core/SummaryList/__snapshots__/index.spec.tsx.snap +57 -0
- package/core/SummaryList/__stories__/Default.d.ts +2 -0
- package/core/SummaryList/__stories__/Default.js +28 -0
- package/core/SummaryList/__stories__/RowVariations.d.ts +2 -0
- package/core/SummaryList/__stories__/RowVariations.js +52 -0
- package/core/SummaryList/__stories__/WithActions.d.ts +2 -0
- package/core/SummaryList/__stories__/WithActions.js +36 -0
- package/core/SummaryList/__stories__/WithKeyAndAction.d.ts +2 -0
- package/core/SummaryList/__stories__/WithKeyAndAction.js +36 -0
- package/core/SummaryList/__stories__/WithoutBorders.d.ts +2 -0
- package/core/SummaryList/__stories__/WithoutBorders.js +24 -0
- package/core/SummaryList/index.d.ts +7 -0
- package/core/SummaryList/index.js +79 -0
- package/core/SummaryList/index.mdx +42 -0
- package/core/SummaryList/index.spec.d.ts +1 -0
- package/core/SummaryList/index.spec.js +19 -0
- package/core/SvgIcon/index.d.ts +10 -0
- package/core/SvgIcon/index.js +128 -0
- package/core/Table/Table.stories.d.ts +24 -0
- package/core/Table/Table.stories.js +231 -0
- package/core/Table/Table.stories.playwright.json +21 -0
- package/core/Table/TableFloatingScroll.d.ts +2 -0
- package/core/Table/TableFloatingScroll.js +107 -0
- package/core/Table/__stories__/DarkVariant.d.ts +2 -0
- package/core/Table/__stories__/DarkVariant.js +24 -0
- package/core/Table/__stories__/DarkVariantWithVerticalHeaders.d.ts +2 -0
- package/core/Table/__stories__/DarkVariantWithVerticalHeaders.js +24 -0
- package/core/Table/__stories__/Default.d.ts +2 -0
- package/core/Table/__stories__/Default.js +22 -0
- package/core/Table/__stories__/DefinedWidth.d.ts +2 -0
- package/core/Table/__stories__/DefinedWidth.js +28 -0
- package/core/Table/__stories__/Densed.d.ts +2 -0
- package/core/Table/__stories__/Densed.js +26 -0
- package/core/Table/__stories__/Full.d.ts +2 -0
- package/core/Table/__stories__/Full.js +27 -0
- package/core/Table/__stories__/MultipleProps.d.ts +2 -0
- package/core/Table/__stories__/MultipleProps.js +58 -0
- package/core/Table/__stories__/NoData.d.ts +2 -0
- package/core/Table/__stories__/NoData.js +24 -0
- package/core/Table/__stories__/NumericDataType.d.ts +2 -0
- package/core/Table/__stories__/NumericDataType.js +46 -0
- package/core/Table/__stories__/TableCaptions.d.ts +2 -0
- package/core/Table/__stories__/TableCaptions.js +30 -0
- package/core/Table/__stories__/VerticalBorders.d.ts +2 -0
- package/core/Table/__stories__/VerticalBorders.js +24 -0
- package/core/Table/__stories__/VerticalHeaders.d.ts +2 -0
- package/core/Table/__stories__/VerticalHeaders.js +22 -0
- package/core/Table/__stories__/WithFloatingScroll.d.ts +2 -0
- package/core/Table/__stories__/WithFloatingScroll.js +89 -0
- package/core/Table/__stories__/WithHeader.d.ts +2 -0
- package/core/Table/__stories__/WithHeader.js +67 -0
- package/core/Table/__stories__/WithLoader.d.ts +2 -0
- package/core/Table/__stories__/WithLoader.js +106 -0
- package/core/Table/__stories__/ZebraProp.d.ts +2 -0
- package/core/Table/__stories__/ZebraProp.js +24 -0
- package/core/Table/index.d.ts +12 -0
- package/core/Table/index.js +156 -0
- package/core/Table/index.mdx +94 -0
- package/core/Tabs/Tabs.stories.d.ts +11 -0
- package/core/Tabs/Tabs.stories.js +34 -0
- package/core/Tabs/Tabs.stories.playwright.json +27 -0
- package/core/Tabs/__stories__/Default.d.ts +2 -0
- package/core/Tabs/__stories__/Default.js +46 -0
- package/core/Tabs/index.d.ts +16 -0
- package/core/Tabs/index.js +146 -0
- package/core/Tabs/index.mdx +18 -0
- package/core/TextArea/TextArea.stories.d.ts +16 -0
- package/core/TextArea/TextArea.stories.js +117 -0
- package/core/TextArea/TextArea.stories.playwright.json +59 -0
- package/core/TextArea/__stories__/Default.d.ts +2 -0
- package/core/TextArea/__stories__/Default.js +30 -0
- package/core/TextArea/__stories__/DisabledInput.d.ts +2 -0
- package/core/TextArea/__stories__/DisabledInput.js +33 -0
- package/core/TextArea/__stories__/LimitedCharacters.d.ts +2 -0
- package/core/TextArea/__stories__/LimitedCharacters.js +32 -0
- package/core/TextArea/__stories__/MultipleQuestions.d.ts +2 -0
- package/core/TextArea/__stories__/MultipleQuestions.js +30 -0
- package/core/TextArea/__stories__/WithDeclaredRows.d.ts +2 -0
- package/core/TextArea/__stories__/WithDeclaredRows.js +33 -0
- package/core/TextArea/__stories__/WithErrorMessage.d.ts +2 -0
- package/core/TextArea/__stories__/WithErrorMessage.js +37 -0
- package/core/TextArea/__stories__/WithHint.d.ts +2 -0
- package/core/TextArea/__stories__/WithHint.js +32 -0
- package/core/TextArea/index.d.ts +3 -0
- package/core/TextArea/index.js +30 -0
- package/core/TextArea/index.mdx +72 -0
- package/core/TextInput/TextInput.stories.d.ts +17 -0
- package/core/TextInput/TextInput.stories.js +131 -0
- package/core/TextInput/TextInput.stories.playwright.json +43 -0
- package/core/TextInput/__stories__/AskingForNumbers.d.ts +2 -0
- package/core/TextInput/__stories__/AskingForNumbers.js +34 -0
- package/core/TextInput/__stories__/Default.d.ts +2 -0
- package/core/TextInput/__stories__/Default.js +30 -0
- package/core/TextInput/__stories__/DisabledInput.d.ts +2 -0
- package/core/TextInput/__stories__/DisabledInput.js +33 -0
- package/core/TextInput/__stories__/FixedWidths.d.ts +2 -0
- package/core/TextInput/__stories__/FixedWidths.js +66 -0
- package/core/TextInput/__stories__/FluidWidths.d.ts +2 -0
- package/core/TextInput/__stories__/FluidWidths.js +66 -0
- package/core/TextInput/__stories__/MultipleQuestions.d.ts +2 -0
- package/core/TextInput/__stories__/MultipleQuestions.js +28 -0
- package/core/TextInput/__stories__/WithErrorMessage.d.ts +2 -0
- package/core/TextInput/__stories__/WithErrorMessage.js +37 -0
- package/core/TextInput/__stories__/WithHint.d.ts +2 -0
- package/core/TextInput/__stories__/WithHint.js +32 -0
- package/core/TextInput/index.d.ts +3 -0
- package/core/TextInput/index.js +30 -0
- package/core/TextInput/index.mdx +88 -0
- package/core/VisuallyHidden/VisuallyHidden.stories.d.ts +8 -0
- package/core/VisuallyHidden/VisuallyHidden.stories.js +31 -0
- package/core/VisuallyHidden/__stories__/Default.d.ts +2 -0
- package/core/VisuallyHidden/__stories__/Default.js +32 -0
- package/core/VisuallyHidden/index.d.ts +3 -0
- package/core/VisuallyHidden/index.js +30 -0
- package/core/VisuallyHidden/index.mdx +20 -0
- package/core/WarningText/WarningText.stories.d.ts +10 -0
- package/core/WarningText/WarningText.stories.js +33 -0
- package/core/WarningText/__snapshots__/index.spec.tsx.snap +336 -0
- package/core/WarningText/__stories__/Default.d.ts +2 -0
- package/core/WarningText/__stories__/Default.js +22 -0
- package/core/WarningText/index.d.ts +3 -0
- package/core/WarningText/index.js +30 -0
- package/core/WarningText/index.mdx +21 -0
- package/core/WarningText/index.spec.d.ts +1 -0
- package/core/WarningText/index.spec.js +19 -0
- package/core/index.d.ts +36 -0
- package/core/index.js +460 -0
- package/custom.d.js +1 -0
- package/es/admin/AdminLayout/index.js +9 -0
- package/es/admin/AutoComplete/AutoComplete.stories.js +14 -0
- package/es/admin/AutoComplete/Status/index.js +153 -0
- package/es/admin/AutoComplete/__stories__/Default.js +19 -0
- package/es/admin/AutoComplete/__stories__/WithAutoSelect.js +31 -0
- package/es/admin/AutoComplete/__stories__/WithDefaultValue.js +18 -0
- package/es/admin/AutoComplete/__stories__/WithInLine.js +18 -0
- package/es/admin/AutoComplete/__stories__/WithMinLength.js +19 -0
- package/es/admin/AutoComplete/__stories__/WithPlaceHolder.js +18 -0
- package/es/admin/AutoComplete/__stories__/WithShowAllValues.js +18 -0
- package/es/admin/AutoComplete/__stories__/utils.js +0 -0
- package/es/admin/AutoComplete/index.js +647 -0
- package/es/admin/AutoComplete/index.mdx +73 -0
- package/es/admin/AutoComplete/utils.js +28 -0
- package/es/admin/Chip/index.js +7 -0
- package/es/admin/CircularProgress/CircularProgress.stories.js +7 -0
- package/es/admin/CircularProgress/__stories__/Default.js +10 -0
- package/es/admin/CircularProgress/index.js +3 -0
- package/es/admin/CopyToClipboard/CopyToClipboard.stories.js +8 -0
- package/es/admin/CopyToClipboard/CopyToClipboard.stories.playwright.json +37 -0
- package/es/admin/CopyToClipboard/__stories__/Banner.js +16 -0
- package/es/admin/CopyToClipboard/__stories__/Default.js +18 -0
- package/es/admin/CopyToClipboard/index.js +49 -0
- package/es/admin/CopyToClipboard/index.mdx +26 -0
- package/es/admin/Drawer/Drawer.stories.js +9 -0
- package/es/admin/Drawer/__stories__/Default.js +83 -0
- package/es/admin/Drawer/index.js +4 -0
- package/es/admin/Drawer/index.mdx +16 -0
- package/es/admin/Dropdown/Dropdown.stories.js +12 -0
- package/es/admin/Dropdown/__stories__/AlignRight.js +57 -0
- package/es/admin/Dropdown/__stories__/Default.js +50 -0
- package/es/admin/Dropdown/__stories__/PlacementTop.js +57 -0
- package/es/admin/Dropdown/index.js +87 -0
- package/es/admin/Dropdown/index.mdx +45 -0
- package/es/admin/DropdownArrowDown/index.js +3 -0
- package/es/admin/FillableText/index.js +3 -0
- package/es/admin/FilterSection/index.js +9 -0
- package/es/admin/FullPageBackground/index.js +3 -0
- package/es/admin/LabeledText/index.js +3 -0
- package/es/admin/LoaderContainer/index.js +3 -0
- package/es/admin/Modal/Modal.stories.js +10 -0
- package/es/admin/Modal/__stories__/AlertDialog.js +22 -0
- package/es/admin/Modal/__stories__/Default.js +23 -0
- package/es/admin/Modal/index.js +88 -0
- package/es/admin/Modal/index.mdx +33 -0
- package/es/admin/Pagination/Pagination.stories.js +10 -0
- package/es/admin/Pagination/Pagination.stories.playwright.json +27 -0
- package/es/admin/Pagination/__stories__/Default.js +130 -0
- package/es/admin/Pagination/__stories__/PaginationSmall.js +38 -0
- package/es/admin/Pagination/index.js +23 -0
- package/es/admin/Pagination/index.mdx +16 -0
- package/es/admin/ResultsHeading/index.js +5 -0
- package/es/admin/SearchSection/index.js +5 -0
- package/es/admin/StepNav/StepNav.stories.js +9 -0
- package/es/admin/StepNav/StepNav.stories.playwright.json +33 -0
- package/es/admin/StepNav/__stories__/Default.js +98 -0
- package/es/admin/StepNav/index.js +15 -0
- package/es/admin/TableLoaderBackground/index.js +3 -0
- package/es/admin/TaskList/TaskList.stories.js +8 -0
- package/es/admin/TaskList/__stories__/Default.js +74 -0
- package/es/admin/TaskList/index.js +7 -0
- package/es/admin/Timeline/Timeline.stories.js +8 -0
- package/es/admin/Timeline/__stories__/Default.js +67 -0
- package/es/admin/Timeline/index.js +7 -0
- package/es/admin/index.js +21 -0
- package/es/api/APIErrors.js +96 -0
- package/es/api/APIProvider.js +25 -0
- package/es/api/fetchAPI.js +52 -0
- package/es/api/index.js +13 -0
- package/es/api/index.spec.js +548 -0
- package/es/api/introduction.md +6 -0
- package/es/api/useResource.js +131 -0
- package/es/api/useResourceAction.js +144 -0
- package/es/api/useResourceQuery.js +211 -0
- package/es/api/utils.js +236 -0
- package/es/app/App.js +14 -0
- package/es/app/Confirmation/Confirmation.mdx +16 -0
- package/es/app/Confirmation/Confirmation.stories.js +9 -0
- package/es/app/Confirmation/__stories__/Default.js +9 -0
- package/es/app/Confirmation/index.js +5 -0
- package/es/app/Footer/Footer.mdx +46 -0
- package/es/app/Footer/Footer.stories.js +17 -0
- package/es/app/Footer/Footer.stories.playwright.json +27 -0
- package/es/app/Footer/__stories__/Default.js +9 -0
- package/es/app/Footer/__stories__/DefaultCopyright.js +17 -0
- package/es/app/Footer/__stories__/FooterAllInclusive.js +36 -0
- package/es/app/Footer/__stories__/FooterWithLink.js +24 -0
- package/es/app/Footer/__stories__/FooterWithLogo.js +26 -0
- package/es/app/Footer/__stories__/FooterWithSecondaryNavigation.js +33 -0
- package/es/app/Footer/__stories__/YearCopyright.js +23 -0
- package/es/app/Footer/index.js +17 -0
- package/es/app/Header/Header.stories.js +18 -0
- package/es/app/Header/Header.stories.playwright.json +33 -0
- package/es/app/Header/HeaderContent.js +3 -0
- package/es/app/Header/HeaderLogo.js +3 -0
- package/es/app/Header/HeaderNavMenuContent.js +3 -0
- package/es/app/Header/HeaderSecondaryLogo.js +3 -0
- package/es/app/Header/HeaderSection.js +3 -0
- package/es/app/Header/HeaderSubtitle.js +3 -0
- package/es/app/Header/HeaderTitle.js +3 -0
- package/es/app/Header/__snapshots__/index.spec.tsx.snap +396 -0
- package/es/app/Header/__stories__/Default.js +14 -0
- package/es/app/Header/__stories__/WithHeaderNavigation.js +36 -0
- package/es/app/Header/__stories__/WithNavigation.js +30 -0
- package/es/app/Header/__stories__/WithServiceName.js +15 -0
- package/es/app/Header/__stories__/WithServiceNameAndLogo.js +20 -0
- package/es/app/Header/index.js +10 -0
- package/es/app/Header/index.mdx +43 -0
- package/es/app/Header/index.spec.js +32 -0
- package/es/app/I18nText.js +79 -0
- package/es/app/NotFound/NotFound.stories.js +7 -0
- package/es/app/NotFound/__stories__/Default.js +9 -0
- package/es/app/NotFound/index.js +12 -0
- package/es/app/NotFound/index.mdx +16 -0
- package/es/app/OutdatedBrowserBanner.js +24 -0
- package/es/app/PageTitle.js +6 -0
- package/es/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +7 -0
- package/es/app/PhaseBannerHeader/__stories__/Default.js +12 -0
- package/es/app/PhaseBannerHeader/index.js +19 -0
- package/es/app/PhaseBannerHeader/index.mdx +16 -0
- package/es/app/QrCodeScanner/QrCodeScanner.stories.js +7 -0
- package/es/app/QrCodeScanner/__snapshots__/index.spec.tsx.snap +22 -0
- package/es/app/QrCodeScanner/__stories__/Default.js +52 -0
- package/es/app/QrCodeScanner/index.js +66 -0
- package/es/app/QrCodeScanner/index.spec.js +13 -0
- package/es/app/QrCodeViewer/QRCode.stories.js +9 -0
- package/es/app/QrCodeViewer/__stories__/Custom.js +22 -0
- package/es/app/QrCodeViewer/__stories__/Default.js +11 -0
- package/es/app/QrCodeViewer/index.js +157 -0
- package/es/app/QrCodeViewer/index.mdx +28 -0
- package/es/app/QrCodeViewer/qrcodegen.js +1085 -0
- package/es/app/QrCodeViewer/types.js +1 -0
- package/es/app/QrCodeViewer/utils.js +95 -0
- package/es/app/i18n.js +54 -0
- package/es/app/index.js +10 -0
- package/es/core/Accordion/Accordion.stories.js +11 -0
- package/es/core/Accordion/Accordion.stories.playwright.json +21 -0
- package/es/core/Accordion/__snapshots__/index.spec.tsx.snap +78 -0
- package/es/core/Accordion/__stories__/Default.js +31 -0
- package/es/core/Accordion/__stories__/WithHints.js +32 -0
- package/es/core/Accordion/index.js +64 -0
- package/es/core/Accordion/index.mdx +41 -0
- package/es/core/Accordion/index.spec.js +9 -0
- package/es/core/BackLink/BackLink.stories.js +7 -0
- package/es/core/BackLink/BackLink.stories.playwright.json +21 -0
- package/es/core/BackLink/__stories__/Default.js +11 -0
- package/es/core/BackLink/index.js +3 -0
- package/es/core/BackLink/index.mdx +20 -0
- package/es/core/Base/index.js +3 -0
- package/es/core/Blockquote/Blockquote.stories.js +9 -0
- package/es/core/Blockquote/__snapshots__/index.spec.tsx.snap +13 -0
- package/es/core/Blockquote/__stories__/Default.js +9 -0
- package/es/core/Blockquote/index.js +3 -0
- package/es/core/Blockquote/index.mdx +23 -0
- package/es/core/Blockquote/index.spec.js +9 -0
- package/es/core/Breadcrumbs/Breadcrumbs.stories.js +9 -0
- package/es/core/Breadcrumbs/Breadcrumbs.stories.playwright.json +33 -0
- package/es/core/Breadcrumbs/__stories__/Default.js +21 -0
- package/es/core/Breadcrumbs/breadcrumbs.mdx +22 -0
- package/es/core/Breadcrumbs/index.js +5 -0
- package/es/core/Button/BackButton.js +21 -0
- package/es/core/Button/BackLink.js +3 -0
- package/es/core/Button/Button.stories.js +20 -0
- package/es/core/Button/Button.stories.playwright.json +115 -0
- package/es/core/Button/ButtonLink.js +3 -0
- package/es/core/Button/CallToAction.js +3 -0
- package/es/core/Button/Icon.js +7 -0
- package/es/core/Button/ThemeToggleButton.js +49 -0
- package/es/core/Button/__snapshots__/index.spec.tsx.snap +13 -0
- package/es/core/Button/__stories__/Back.js +13 -0
- package/es/core/Button/__stories__/ButtonLinkButton.js +17 -0
- package/es/core/Button/__stories__/CallToActionButton.js +17 -0
- package/es/core/Button/__stories__/Disabled.js +14 -0
- package/es/core/Button/__stories__/GroupingButtons.js +13 -0
- package/es/core/Button/__stories__/GroupingButtonsAndLinks.js +14 -0
- package/es/core/Button/__stories__/Primary.js +14 -0
- package/es/core/Button/__stories__/Secondary.js +15 -0
- package/es/core/Button/__stories__/ThemeToggle.js +9 -0
- package/es/core/Button/__stories__/Warning.js +11 -0
- package/es/core/Button/__stories__/WithVariantLink.js +16 -0
- package/es/core/Button/index.js +20 -0
- package/es/core/Button/index.mdx +113 -0
- package/es/core/Button/index.spec.js +9 -0
- package/es/core/Card/Card.stories.js +18 -0
- package/es/core/Card/Card.stories.playwright.json +21 -0
- package/es/core/Card/__stories__/Default.js +10 -0
- package/es/core/Card/__stories__/WithClickableContent.js +14 -0
- package/es/core/Card/__stories__/WithClickableLink.js +12 -0
- package/es/core/Card/__stories__/WithDarkBorder.js +13 -0
- package/es/core/Card/__stories__/WithDarkTopBorder.js +13 -0
- package/es/core/Card/__stories__/WithDivider.js +12 -0
- package/es/core/Card/__stories__/WithGrayBorder.js +13 -0
- package/es/core/Card/__stories__/WithGrayTopBorder.js +13 -0
- package/es/core/Card/__stories__/WithGroupButton.js +11 -0
- package/es/core/Card/card.mdx +101 -0
- package/es/core/Card/index.js +6 -0
- package/es/core/Checkbox/Checkbox.stories.js +15 -0
- package/es/core/Checkbox/Checkbox.stories.playwright.json +55 -0
- package/es/core/Checkbox/__stories__/ConditionalReveal.js +26 -0
- package/es/core/Checkbox/__stories__/Default.js +24 -0
- package/es/core/Checkbox/__stories__/MultipleQuestions.js +26 -0
- package/es/core/Checkbox/__stories__/NoneAnswer.js +26 -0
- package/es/core/Checkbox/__stories__/NoneAnswerWithError.js +34 -0
- package/es/core/Checkbox/__stories__/WithErrorMessage.js +27 -0
- package/es/core/Checkbox/__stories__/WithHint.js +24 -0
- package/es/core/Checkbox/checkbox.mdx +78 -0
- package/es/core/Checkbox/index.js +5 -0
- package/es/core/DateInputContainer/DateInputContainer.stories.js +12 -0
- package/es/core/DateInputContainer/DateInputContainer.stories.playwright.json +61 -0
- package/es/core/DateInputContainer/__stories__/Default.js +20 -0
- package/es/core/DateInputContainer/__stories__/MultipleQuestions.js +20 -0
- package/es/core/DateInputContainer/__stories__/WithErrorMessage.js +25 -0
- package/es/core/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +23 -0
- package/{src/core/DateInput/index.tsx → es/core/DateInputContainer/index.js} +2 -2
- package/es/core/DateInputContainer/index.mdx +44 -0
- package/es/core/Details/Details.stories.js +9 -0
- package/es/core/Details/Details.stories.playwright.json +27 -0
- package/es/core/Details/__snapshots__/index.spec.tsx.snap +50 -0
- package/es/core/Details/__stories__/Default.js +9 -0
- package/es/core/Details/index.js +5 -0
- package/es/core/Details/index.mdx +20 -0
- package/es/core/Details/index.spec.js +17 -0
- package/es/core/Divider/Divider.stories.js +8 -0
- package/es/core/Divider/__stories__/Default.js +26 -0
- package/es/core/Divider/index.js +8 -0
- package/es/core/ErrorMessage/ErrorMessage.stories.js +9 -0
- package/es/core/ErrorMessage/__stories__/Default.js +21 -0
- package/es/core/ErrorMessage/index.js +3 -0
- package/es/core/ErrorMessage/index.mdx +22 -0
- package/es/core/ErrorSummary/ErrorSummary.stories.js +12 -0
- package/es/core/ErrorSummary/ErrorSummary.stories.playwright.json +27 -0
- package/es/core/ErrorSummary/__snapshots__/index.spec.tsx.snap +322 -0
- package/es/core/ErrorSummary/__stories__/Default.js +13 -0
- package/es/core/ErrorSummary/__stories__/LinkedToCheckbox.js +32 -0
- package/es/core/ErrorSummary/__stories__/LinkedToField.js +33 -0
- package/es/core/ErrorSummary/__stories__/LinkedToInput.js +32 -0
- package/es/core/ErrorSummary/index.js +3 -0
- package/es/core/ErrorSummary/index.mdx +54 -0
- package/es/core/ErrorSummary/index.spec.js +8 -0
- package/{src/core/Field/index.tsx → es/core/FieldContainer/index.js} +2 -3
- package/es/core/FileUpload/FileUpload.stories.js +9 -0
- package/es/core/FileUpload/__stories__/Default.js +13 -0
- package/es/core/FileUpload/__stories__/WithErrorMessage.js +17 -0
- package/es/core/FileUpload/index.js +4 -0
- package/es/core/FileUpload/index.mdx +27 -0
- package/es/core/Form/index.js +3 -0
- package/es/core/Hidden/index.js +1 -0
- package/{src/core/Label/index.tsx → es/core/LabelContainer/index.js} +2 -3
- package/es/core/Link/Link.stories.js +13 -0
- package/es/core/Link/Link.stories.playwright.json +65 -0
- package/es/core/Link/__snapshots__/index.spec.tsx.snap +31 -0
- package/es/core/Link/__stories__/DarkBackground.js +15 -0
- package/es/core/Link/__stories__/DarkBackgroundNoUnderline.js +16 -0
- package/es/core/Link/__stories__/Default.js +13 -0
- package/es/core/Link/__stories__/ExternalLink.js +14 -0
- package/es/core/Link/__stories__/NoUnderline.js +14 -0
- package/es/core/Link/__stories__/OpensInNewTab.js +13 -0
- package/es/core/Link/index.js +30 -0
- package/es/core/Link/index.spec.js +21 -0
- package/es/core/Link/link.mdx +54 -0
- package/es/core/List/List.js +3 -0
- package/es/core/List/List.stories.js +14 -0
- package/es/core/List/List.stories.playwright.json +27 -0
- package/es/core/List/ListItem.js +3 -0
- package/es/core/List/ListItemContent.js +14 -0
- package/es/core/List/ListItemIcon.js +14 -0
- package/es/core/List/ListItemText.js +15 -0
- package/es/core/List/ListItemTitle.js +21 -0
- package/es/core/List/__snapshots__/index.spec.tsx.snap +322 -0
- package/es/core/List/__stories__/BulletList.js +12 -0
- package/es/core/List/__stories__/Default.js +11 -0
- package/es/core/List/__stories__/NestedBulletList.js +20 -0
- package/es/core/List/__stories__/NestedListWithVariantStyles.js +18 -0
- package/es/core/List/__stories__/NumberedList.js +12 -0
- package/es/core/List/__stories__/WithExtraSpace.js +12 -0
- package/es/core/List/index.js +7 -0
- package/es/core/List/index.mdx +34 -0
- package/es/core/List/index.spec.js +8 -0
- package/es/core/Masthead/Masthead.stories.js +10 -0
- package/es/core/Masthead/Masthead.stories.playwright.json +21 -0
- package/es/core/Masthead/__stories__/Default.js +15 -0
- package/es/core/Masthead/index.js +4 -0
- package/es/core/Masthead/masthead.mdx +18 -0
- package/es/core/NavList/NavHorizontal.js +3 -0
- package/es/core/NavList/NavHorizontalList.js +3 -0
- package/es/core/NavList/NavHorizontalListItem.js +3 -0
- package/es/core/NavList/NavHorizontalListItemButton.js +3 -0
- package/es/core/NavList/NavHorizontalListItemLink.js +3 -0
- package/es/core/NavList/NavList.js +25 -0
- package/es/core/NavList/NavList.stories.js +10 -0
- package/es/core/NavList/NavList.stories.playwright.json +33 -0
- package/es/core/NavList/NavListBase.js +60 -0
- package/es/core/NavList/NavListContext.js +80 -0
- package/es/core/NavList/NavListItem.js +143 -0
- package/es/core/NavList/NavListItemBase.js +137 -0
- package/es/core/NavList/NavListSubMenu.js +27 -0
- package/es/core/NavList/NavMenu.js +3 -0
- package/es/core/NavList/NavMenuContainer.js +3 -0
- package/es/core/NavList/NavMenuContainerContent.js +3 -0
- package/es/core/NavList/NavMenuContainerContentList.js +3 -0
- package/es/core/NavList/NavMenuContainerContentListItem.js +3 -0
- package/es/core/NavList/NavMenuContainerTitle.js +3 -0
- package/es/core/NavList/NavVertical.js +3 -0
- package/es/core/NavList/NavVerticalItem.js +3 -0
- package/es/core/NavList/__snapshots__/index.spec.tsx.snap +334 -0
- package/es/core/NavList/__stories__/Default.js +48 -0
- package/es/core/NavList/__stories__/NavHorizontalLayout.js +47 -0
- package/es/core/NavList/index.js +20 -0
- package/es/core/NavList/index.mdx +32 -0
- package/es/core/NavList/index.spec.js +8 -0
- package/es/core/NavList/types.js +1 -0
- package/es/core/NotificationBanner/NotificationBanner.stories.js +11 -0
- package/es/core/NotificationBanner/NotificationBanner.stories.playwright.json +49 -0
- package/es/core/NotificationBanner/__snapshots__/index.spec.tsx.snap +737 -0
- package/es/core/NotificationBanner/__stories__/Default.js +12 -0
- package/es/core/NotificationBanner/__stories__/Success.js +13 -0
- package/es/core/NotificationBanner/index.js +30 -0
- package/es/core/NotificationBanner/index.mdx +34 -0
- package/es/core/NotificationBanner/index.spec.js +19 -0
- package/es/core/PhaseBanner/PhaseBanner.stories.js +10 -0
- package/es/core/PhaseBanner/PhaseBanner.stories.playwright.json +21 -0
- package/es/core/PhaseBanner/__stories__/Default.js +12 -0
- package/es/core/PhaseBanner/__stories__/Underlined.js +14 -0
- package/es/core/PhaseBanner/index.js +6 -0
- package/es/core/PhaseBanner/index.mdx +30 -0
- package/es/core/RadioContainer/RadioContainer.stories.js +15 -0
- package/es/core/RadioContainer/RadioContainer.stories.playwright.json +49 -0
- package/es/core/RadioContainer/__stories__/ConditionalReveal.js +26 -0
- package/es/core/RadioContainer/__stories__/Default.js +22 -0
- package/es/core/RadioContainer/__stories__/Inline.js +23 -0
- package/es/core/RadioContainer/__stories__/MultipleQuestions.js +29 -0
- package/es/core/RadioContainer/__stories__/NoneAnswer.js +21 -0
- package/es/core/RadioContainer/__stories__/WithErrorMessage.js +27 -0
- package/es/core/RadioContainer/__stories__/WithHints.js +29 -0
- package/{src/core/Radios/index.tsx → es/core/RadioContainer/index.js} +2 -2
- package/es/core/RadioContainer/index.mdx +90 -0
- package/es/core/SectionBreak/index.js +3 -0
- package/es/core/SelectContainer/Select.stories.js +11 -0
- package/es/core/SelectContainer/Select.stories.playwright.json +21 -0
- package/es/core/SelectContainer/__stories__/Default.js +22 -0
- package/es/core/SelectContainer/__stories__/DisabledInput.js +24 -0
- package/es/core/SelectContainer/__stories__/WithHint.js +23 -0
- package/{src/core/Select/index.tsx → es/core/SelectContainer/index.js} +2 -3
- package/es/core/SelectContainer/index.mdx +42 -0
- package/es/core/ServiceBadge/index.js +19 -0
- package/es/core/ServiceBadge/index.mdx +42 -0
- package/es/core/SkipLink/index.js +3 -0
- package/es/core/SummaryList/SummaryList.stories.js +14 -0
- package/es/core/SummaryList/SummaryList.stories.playwright.json +27 -0
- package/es/core/SummaryList/__snapshots__/index.spec.tsx.snap +57 -0
- package/es/core/SummaryList/__stories__/Default.js +13 -0
- package/es/core/SummaryList/__stories__/RowVariations.js +37 -0
- package/es/core/SummaryList/__stories__/WithActions.js +20 -0
- package/es/core/SummaryList/__stories__/WithKeyAndAction.js +20 -0
- package/es/core/SummaryList/__stories__/WithoutBorders.js +11 -0
- package/es/core/SummaryList/index.js +7 -0
- package/es/core/SummaryList/index.mdx +42 -0
- package/es/core/SummaryList/index.spec.js +9 -0
- package/es/core/SvgIcon/index.js +10 -0
- package/es/core/Table/Table.stories.js +24 -0
- package/es/core/Table/Table.stories.playwright.json +21 -0
- package/es/core/Table/TableFloatingScroll.js +87 -0
- package/es/core/Table/__stories__/DarkVariant.js +11 -0
- package/es/core/Table/__stories__/DarkVariantWithVerticalHeaders.js +11 -0
- package/es/core/Table/__stories__/Default.js +9 -0
- package/es/core/Table/__stories__/DefinedWidth.js +15 -0
- package/es/core/Table/__stories__/Densed.js +13 -0
- package/es/core/Table/__stories__/Full.js +14 -0
- package/es/core/Table/__stories__/MultipleProps.js +45 -0
- package/es/core/Table/__stories__/NoData.js +11 -0
- package/es/core/Table/__stories__/NumericDataType.js +33 -0
- package/es/core/Table/__stories__/TableCaptions.js +17 -0
- package/es/core/Table/__stories__/VerticalBorders.js +11 -0
- package/es/core/Table/__stories__/VerticalHeaders.js +9 -0
- package/es/core/Table/__stories__/WithFloatingScroll.js +71 -0
- package/es/core/Table/__stories__/WithHeader.js +53 -0
- package/es/core/Table/__stories__/WithLoader.js +81 -0
- package/es/core/Table/__stories__/ZebraProp.js +11 -0
- package/es/core/Table/index.js +12 -0
- package/es/core/Table/index.mdx +94 -0
- package/es/core/Tabs/Tabs.stories.js +10 -0
- package/es/core/Tabs/Tabs.stories.playwright.json +27 -0
- package/es/core/Tabs/__stories__/Default.js +29 -0
- package/es/core/Tabs/index.js +57 -0
- package/es/core/Tabs/index.mdx +18 -0
- package/es/core/TextArea/TextArea.stories.js +15 -0
- package/es/core/TextArea/TextArea.stories.playwright.json +59 -0
- package/es/core/TextArea/__stories__/Default.js +16 -0
- package/es/core/TextArea/__stories__/DisabledInput.js +18 -0
- package/es/core/TextArea/__stories__/LimitedCharacters.js +17 -0
- package/es/core/TextArea/__stories__/MultipleQuestions.js +14 -0
- package/es/core/TextArea/__stories__/WithDeclaredRows.js +18 -0
- package/es/core/TextArea/__stories__/WithErrorMessage.js +21 -0
- package/es/core/TextArea/__stories__/WithHint.js +17 -0
- package/es/core/TextArea/index.js +3 -0
- package/es/core/TextArea/index.mdx +72 -0
- package/es/core/TextInput/TextInput.stories.js +16 -0
- package/es/core/TextInput/TextInput.stories.playwright.json +43 -0
- package/es/core/TextInput/__stories__/AskingForNumbers.js +19 -0
- package/es/core/TextInput/__stories__/Default.js +16 -0
- package/es/core/TextInput/__stories__/DisabledInput.js +18 -0
- package/es/core/TextInput/__stories__/FixedWidths.js +52 -0
- package/es/core/TextInput/__stories__/FluidWidths.js +52 -0
- package/es/core/TextInput/__stories__/MultipleQuestions.js +13 -0
- package/es/core/TextInput/__stories__/WithErrorMessage.js +21 -0
- package/es/core/TextInput/__stories__/WithHint.js +17 -0
- package/es/core/TextInput/index.js +3 -0
- package/es/core/TextInput/index.mdx +88 -0
- package/es/core/VisuallyHidden/VisuallyHidden.stories.js +7 -0
- package/es/core/VisuallyHidden/__stories__/Default.js +16 -0
- package/es/core/VisuallyHidden/index.js +3 -0
- package/es/core/VisuallyHidden/index.mdx +20 -0
- package/es/core/WarningText/WarningText.stories.js +9 -0
- package/es/core/WarningText/__snapshots__/index.spec.tsx.snap +336 -0
- package/es/core/WarningText/__stories__/Default.js +9 -0
- package/es/core/WarningText/index.js +3 -0
- package/es/core/WarningText/index.mdx +21 -0
- package/es/core/WarningText/index.spec.js +8 -0
- package/es/core/index.js +36 -0
- package/es/custom.d.js +0 -0
- package/es/govgr/Footer/Copyright.js +36 -0
- package/es/govgr/Footer/HellenicRepublicLogo.js +3 -0
- package/es/govgr/Footer/LicenseCCSA.js +18 -0
- package/es/govgr/Footer/index.js +21 -0
- package/es/govgr/Footer/index.mdx +101 -0
- package/es/govgr/Footer/logo.js +1 -0
- package/es/govgr/Footer/logos/logo-el.js +1 -0
- package/es/govgr/Footer/logos/logo-en.js +1 -0
- package/{src/govgr/Logo → es/govgr/GovGRLogo}/govgr-logo.svg +0 -0
- package/es/govgr/GovGRLogo/index.js +3 -0
- package/es/govgr/GovGRLogo/logo.js +1 -0
- package/es/govgr/images/govgr-logo-base64.js +1 -0
- package/es/govgr/images/govgr-logo-blue-base64.js +1 -0
- package/es/govgr/images/greek-government-base64.js +1 -0
- package/es/govgr/images/grnet-logo-base64.js +1 -0
- package/es/govgr/images/index.js +5 -0
- package/es/govgr/images/minedu-logo-base64.js +1 -0
- package/es/govgr/index.js +5 -0
- package/es/hooks/useDebounce.js +41 -0
- package/es/hooks/useKeypress.js +20 -0
- package/es/hooks/useLatest.js +12 -0
- package/es/hooks/useOutdatedBrowserCheck.js +46 -0
- package/es/hooks/useSearch.js +25 -0
- package/es/hooks/useTogglableSections.js +102 -0
- package/es/index.js +6 -0
- package/es/introduction.md +11 -0
- package/es/layouts/Basic/Aside/index.js +3 -0
- package/es/layouts/Basic/Basic.stories.js +11 -0
- package/es/layouts/Basic/Bottom/index.js +3 -0
- package/es/layouts/Basic/Bottom/index.mdx +40 -0
- package/es/layouts/Basic/Container/index.js +3 -0
- package/es/layouts/Basic/Content/index.js +20 -0
- package/es/layouts/Basic/Content/index.mdx +48 -0
- package/es/layouts/Basic/Main/index.js +3 -0
- package/es/layouts/Basic/Main/index.mdx +54 -0
- package/es/layouts/Basic/Masthead/index.js +4 -0
- package/es/layouts/Basic/Masthead/index.mdx +61 -0
- package/es/layouts/Basic/Side/index.js +8 -0
- package/es/layouts/Basic/Side/index.mdx +55 -0
- package/es/layouts/Basic/Top/index.js +3 -0
- package/es/layouts/Basic/Top/index.mdx +62 -0
- package/es/layouts/Basic/__snapshots__/index.spec.tsx.snap +54 -0
- package/es/layouts/Basic/__stories__/Default.js +12 -0
- package/es/layouts/Basic/__stories__/MultipleRowsLayout.js +15 -0
- package/es/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +15 -0
- package/es/layouts/Basic/index.js +11 -0
- package/es/layouts/Basic/index.mdx +39 -0
- package/es/layouts/Basic/index.spec.js +10 -0
- package/es/layouts/Grid/Grid.stories.js +8 -0
- package/es/layouts/Grid/__stories__/Default.js +75 -0
- package/es/layouts/Grid/__stories__/Inline.js +76 -0
- package/es/layouts/Grid/index.js +3 -0
- package/es/layouts/index.js +4 -0
- package/es/locales/el.js +83 -0
- package/es/locales/en.js +82 -0
- package/es/registry.js +479 -0
- package/es/router/index.js +15 -0
- package/es/test-utils/delay.js +34 -0
- package/es/themes/grnet.js +111 -0
- package/es/typography/Caption/index.js +8 -0
- package/es/typography/Heading/Heading.stories.js +7 -0
- package/es/typography/Heading/__stories__/Default.js +24 -0
- package/es/typography/Heading/index.js +3 -0
- package/es/typography/Heading/index.mdx +16 -0
- package/es/typography/HeadingCaption/HeadingCaption.stories.js +8 -0
- package/es/typography/HeadingCaption/__stories__/Default.js +35 -0
- package/es/typography/HeadingCaption/__stories__/NestedToTitle.js +15 -0
- package/es/typography/HeadingCaption/index.js +3 -0
- package/es/typography/HeadingCaption/index.mdx +23 -0
- package/es/typography/Hint/Hint.stories.js +8 -0
- package/es/typography/Hint/__stories__/Default.js +9 -0
- package/es/typography/Hint/__stories__/FontSizes.js +21 -0
- package/es/typography/Hint/index.js +3 -0
- package/es/typography/Hint/index.mdx +23 -0
- package/es/typography/NormalText/NormalText.stories.js +10 -0
- package/es/typography/NormalText/__stories__/Default.js +9 -0
- package/es/typography/NormalText/__stories__/FontSizes.js +48 -0
- package/es/typography/NormalText/__stories__/FontWeight.js +18 -0
- package/es/typography/NormalText/__stories__/Variants.js +18 -0
- package/es/typography/NormalText/index.js +3 -0
- package/es/typography/NormalText/index.mdx +41 -0
- package/es/typography/Paragraph/Paragraph.stories.js +11 -0
- package/es/typography/Paragraph/__stories__/Default.js +9 -0
- package/es/typography/Paragraph/__stories__/FontSizes.js +35 -0
- package/es/typography/Paragraph/__stories__/FontWeight.js +15 -0
- package/es/typography/Paragraph/__stories__/LeadVariant.js +11 -0
- package/es/typography/Paragraph/__stories__/SmallVariant.js +11 -0
- package/es/typography/Paragraph/index.js +3 -0
- package/es/typography/Paragraph/index.mdx +49 -0
- package/es/typography/Title/index.js +49 -0
- package/es/typography/index.js +5 -0
- package/es/typography/index.mdx +4 -0
- package/es/utils/Kitchensink/AllComponents.js +11 -0
- package/es/utils/Kitchensink/KitchensinkByCategory.js +42 -0
- package/es/utils/Kitchensink/KitchensinkByLetter.js +20 -0
- package/es/utils/Kitchensink/KitchensinkComponent.js +51 -0
- package/es/utils/Kitchensink/KitchensinkDashboard.js +50 -0
- package/es/utils/evaluateBrowserVersion.js +201 -0
- package/es/utils/withDeprecation.js +106 -0
- package/esm/admin/AdminLayout/index.js +9 -0
- package/esm/admin/AutoComplete/AutoComplete.stories.js +14 -0
- package/esm/admin/AutoComplete/Status/index.js +153 -0
- package/esm/admin/AutoComplete/__stories__/Default.js +19 -0
- package/esm/admin/AutoComplete/__stories__/WithAutoSelect.js +31 -0
- package/esm/admin/AutoComplete/__stories__/WithDefaultValue.js +18 -0
- package/esm/admin/AutoComplete/__stories__/WithInLine.js +18 -0
- package/esm/admin/AutoComplete/__stories__/WithMinLength.js +19 -0
- package/esm/admin/AutoComplete/__stories__/WithPlaceHolder.js +18 -0
- package/esm/admin/AutoComplete/__stories__/WithShowAllValues.js +18 -0
- package/esm/admin/AutoComplete/__stories__/utils.js +0 -0
- package/esm/admin/AutoComplete/index.js +647 -0
- package/esm/admin/AutoComplete/index.mdx +73 -0
- package/esm/admin/AutoComplete/utils.js +28 -0
- package/esm/admin/Chip/index.js +7 -0
- package/esm/admin/CircularProgress/CircularProgress.stories.js +7 -0
- package/esm/admin/CircularProgress/__stories__/Default.js +10 -0
- package/esm/admin/CircularProgress/index.js +3 -0
- package/esm/admin/CopyToClipboard/CopyToClipboard.stories.js +8 -0
- package/esm/admin/CopyToClipboard/CopyToClipboard.stories.playwright.json +37 -0
- package/esm/admin/CopyToClipboard/__stories__/Banner.js +16 -0
- package/esm/admin/CopyToClipboard/__stories__/Default.js +18 -0
- package/esm/admin/CopyToClipboard/index.js +49 -0
- package/esm/admin/CopyToClipboard/index.mdx +26 -0
- package/esm/admin/Drawer/Drawer.stories.js +9 -0
- package/esm/admin/Drawer/__stories__/Default.js +83 -0
- package/esm/admin/Drawer/index.js +4 -0
- package/esm/admin/Drawer/index.mdx +16 -0
- package/esm/admin/Dropdown/Dropdown.stories.js +12 -0
- package/esm/admin/Dropdown/__stories__/AlignRight.js +57 -0
- package/esm/admin/Dropdown/__stories__/Default.js +50 -0
- package/esm/admin/Dropdown/__stories__/PlacementTop.js +57 -0
- package/esm/admin/Dropdown/index.js +87 -0
- package/esm/admin/Dropdown/index.mdx +45 -0
- package/esm/admin/DropdownArrowDown/index.js +3 -0
- package/esm/admin/FillableText/index.js +3 -0
- package/esm/admin/FilterSection/index.js +9 -0
- package/esm/admin/FullPageBackground/index.js +3 -0
- package/esm/admin/LabeledText/index.js +3 -0
- package/esm/admin/LoaderContainer/index.js +3 -0
- package/esm/admin/Modal/Modal.stories.js +10 -0
- package/esm/admin/Modal/__stories__/AlertDialog.js +22 -0
- package/esm/admin/Modal/__stories__/Default.js +23 -0
- package/esm/admin/Modal/index.js +88 -0
- package/esm/admin/Modal/index.mdx +33 -0
- package/esm/admin/Pagination/Pagination.stories.js +10 -0
- package/esm/admin/Pagination/Pagination.stories.playwright.json +27 -0
- package/esm/admin/Pagination/__stories__/Default.js +130 -0
- package/esm/admin/Pagination/__stories__/PaginationSmall.js +38 -0
- package/esm/admin/Pagination/index.js +23 -0
- package/esm/admin/Pagination/index.mdx +16 -0
- package/esm/admin/ResultsHeading/index.js +5 -0
- package/esm/admin/SearchSection/index.js +5 -0
- package/esm/admin/StepNav/StepNav.stories.js +9 -0
- package/esm/admin/StepNav/StepNav.stories.playwright.json +33 -0
- package/esm/admin/StepNav/__stories__/Default.js +98 -0
- package/esm/admin/StepNav/index.js +15 -0
- package/esm/admin/TableLoaderBackground/index.js +3 -0
- package/esm/admin/TaskList/TaskList.stories.js +8 -0
- package/esm/admin/TaskList/__stories__/Default.js +74 -0
- package/esm/admin/TaskList/index.js +7 -0
- package/esm/admin/Timeline/Timeline.stories.js +8 -0
- package/esm/admin/Timeline/__stories__/Default.js +67 -0
- package/esm/admin/Timeline/index.js +7 -0
- package/esm/admin/index.js +21 -0
- package/esm/api/APIErrors.js +96 -0
- package/esm/api/APIProvider.js +25 -0
- package/esm/api/fetchAPI.js +52 -0
- package/esm/api/index.js +13 -0
- package/esm/api/index.spec.js +548 -0
- package/esm/api/introduction.md +6 -0
- package/esm/api/useResource.js +131 -0
- package/esm/api/useResourceAction.js +144 -0
- package/esm/api/useResourceQuery.js +211 -0
- package/esm/api/utils.js +236 -0
- package/esm/app/App.js +14 -0
- package/esm/app/Confirmation/Confirmation.mdx +16 -0
- package/esm/app/Confirmation/Confirmation.stories.js +9 -0
- package/esm/app/Confirmation/__stories__/Default.js +9 -0
- package/esm/app/Confirmation/index.js +5 -0
- package/esm/app/Footer/Footer.mdx +46 -0
- package/esm/app/Footer/Footer.stories.js +17 -0
- package/esm/app/Footer/Footer.stories.playwright.json +27 -0
- package/esm/app/Footer/__stories__/Default.js +9 -0
- package/esm/app/Footer/__stories__/DefaultCopyright.js +17 -0
- package/esm/app/Footer/__stories__/FooterAllInclusive.js +36 -0
- package/esm/app/Footer/__stories__/FooterWithLink.js +24 -0
- package/esm/app/Footer/__stories__/FooterWithLogo.js +26 -0
- package/esm/app/Footer/__stories__/FooterWithSecondaryNavigation.js +33 -0
- package/esm/app/Footer/__stories__/YearCopyright.js +23 -0
- package/esm/app/Footer/index.js +17 -0
- package/esm/app/Header/Header.stories.js +18 -0
- package/esm/app/Header/Header.stories.playwright.json +33 -0
- package/esm/app/Header/HeaderContent.js +3 -0
- package/esm/app/Header/HeaderLogo.js +3 -0
- package/esm/app/Header/HeaderNavMenuContent.js +3 -0
- package/esm/app/Header/HeaderSecondaryLogo.js +3 -0
- package/esm/app/Header/HeaderSection.js +3 -0
- package/esm/app/Header/HeaderSubtitle.js +3 -0
- package/esm/app/Header/HeaderTitle.js +3 -0
- package/esm/app/Header/__snapshots__/index.spec.tsx.snap +396 -0
- package/esm/app/Header/__stories__/Default.js +14 -0
- package/esm/app/Header/__stories__/WithHeaderNavigation.js +36 -0
- package/esm/app/Header/__stories__/WithNavigation.js +30 -0
- package/esm/app/Header/__stories__/WithServiceName.js +15 -0
- package/esm/app/Header/__stories__/WithServiceNameAndLogo.js +20 -0
- package/esm/app/Header/index.js +10 -0
- package/esm/app/Header/index.mdx +43 -0
- package/esm/app/Header/index.spec.js +32 -0
- package/esm/app/I18nText.js +79 -0
- package/esm/app/NotFound/NotFound.stories.js +7 -0
- package/esm/app/NotFound/__stories__/Default.js +9 -0
- package/esm/app/NotFound/index.js +12 -0
- package/esm/app/NotFound/index.mdx +16 -0
- package/esm/app/OutdatedBrowserBanner.js +24 -0
- package/esm/app/PageTitle.js +6 -0
- package/esm/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +7 -0
- package/esm/app/PhaseBannerHeader/__stories__/Default.js +12 -0
- package/esm/app/PhaseBannerHeader/index.js +19 -0
- package/esm/app/PhaseBannerHeader/index.mdx +16 -0
- package/esm/app/QrCodeScanner/QrCodeScanner.stories.js +7 -0
- package/esm/app/QrCodeScanner/__snapshots__/index.spec.tsx.snap +22 -0
- package/esm/app/QrCodeScanner/__stories__/Default.js +52 -0
- package/esm/app/QrCodeScanner/index.js +66 -0
- package/esm/app/QrCodeScanner/index.spec.js +13 -0
- package/esm/app/QrCodeViewer/QRCode.stories.js +9 -0
- package/esm/app/QrCodeViewer/__stories__/Custom.js +22 -0
- package/esm/app/QrCodeViewer/__stories__/Default.js +11 -0
- package/esm/app/QrCodeViewer/index.js +157 -0
- package/esm/app/QrCodeViewer/index.mdx +28 -0
- package/esm/app/QrCodeViewer/qrcodegen.js +1085 -0
- package/esm/app/QrCodeViewer/types.js +1 -0
- package/esm/app/QrCodeViewer/utils.js +95 -0
- package/esm/app/i18n.js +54 -0
- package/esm/app/index.js +10 -0
- package/esm/core/Accordion/Accordion.stories.js +11 -0
- package/esm/core/Accordion/Accordion.stories.playwright.json +21 -0
- package/esm/core/Accordion/__snapshots__/index.spec.tsx.snap +78 -0
- package/esm/core/Accordion/__stories__/Default.js +31 -0
- package/esm/core/Accordion/__stories__/WithHints.js +32 -0
- package/esm/core/Accordion/index.js +64 -0
- package/esm/core/Accordion/index.mdx +41 -0
- package/esm/core/Accordion/index.spec.js +9 -0
- package/esm/core/BackLink/BackLink.stories.js +7 -0
- package/esm/core/BackLink/BackLink.stories.playwright.json +21 -0
- package/esm/core/BackLink/__stories__/Default.js +11 -0
- package/esm/core/BackLink/index.js +3 -0
- package/esm/core/BackLink/index.mdx +20 -0
- package/esm/core/Base/index.js +3 -0
- package/esm/core/Blockquote/Blockquote.stories.js +9 -0
- package/esm/core/Blockquote/__snapshots__/index.spec.tsx.snap +13 -0
- package/esm/core/Blockquote/__stories__/Default.js +9 -0
- package/esm/core/Blockquote/index.js +3 -0
- package/esm/core/Blockquote/index.mdx +23 -0
- package/esm/core/Blockquote/index.spec.js +9 -0
- package/esm/core/Breadcrumbs/Breadcrumbs.stories.js +9 -0
- package/esm/core/Breadcrumbs/Breadcrumbs.stories.playwright.json +33 -0
- package/esm/core/Breadcrumbs/__stories__/Default.js +21 -0
- package/esm/core/Breadcrumbs/breadcrumbs.mdx +22 -0
- package/esm/core/Breadcrumbs/index.js +5 -0
- package/esm/core/Button/BackButton.js +21 -0
- package/esm/core/Button/BackLink.js +3 -0
- package/esm/core/Button/Button.stories.js +20 -0
- package/esm/core/Button/Button.stories.playwright.json +115 -0
- package/esm/core/Button/ButtonLink.js +3 -0
- package/esm/core/Button/CallToAction.js +3 -0
- package/esm/core/Button/Icon.js +7 -0
- package/esm/core/Button/ThemeToggleButton.js +49 -0
- package/esm/core/Button/__snapshots__/index.spec.tsx.snap +13 -0
- package/esm/core/Button/__stories__/Back.js +13 -0
- package/esm/core/Button/__stories__/ButtonLinkButton.js +17 -0
- package/esm/core/Button/__stories__/CallToActionButton.js +17 -0
- package/esm/core/Button/__stories__/Disabled.js +14 -0
- package/esm/core/Button/__stories__/GroupingButtons.js +13 -0
- package/esm/core/Button/__stories__/GroupingButtonsAndLinks.js +14 -0
- package/esm/core/Button/__stories__/Primary.js +14 -0
- package/esm/core/Button/__stories__/Secondary.js +15 -0
- package/esm/core/Button/__stories__/ThemeToggle.js +9 -0
- package/esm/core/Button/__stories__/Warning.js +11 -0
- package/esm/core/Button/__stories__/WithVariantLink.js +16 -0
- package/esm/core/Button/index.js +20 -0
- package/esm/core/Button/index.mdx +113 -0
- package/esm/core/Button/index.spec.js +9 -0
- package/esm/core/Card/Card.stories.js +18 -0
- package/esm/core/Card/Card.stories.playwright.json +21 -0
- package/esm/core/Card/__stories__/Default.js +10 -0
- package/esm/core/Card/__stories__/WithClickableContent.js +14 -0
- package/esm/core/Card/__stories__/WithClickableLink.js +12 -0
- package/esm/core/Card/__stories__/WithDarkBorder.js +13 -0
- package/esm/core/Card/__stories__/WithDarkTopBorder.js +13 -0
- package/esm/core/Card/__stories__/WithDivider.js +12 -0
- package/esm/core/Card/__stories__/WithGrayBorder.js +13 -0
- package/esm/core/Card/__stories__/WithGrayTopBorder.js +13 -0
- package/esm/core/Card/__stories__/WithGroupButton.js +11 -0
- package/esm/core/Card/card.mdx +101 -0
- package/esm/core/Card/index.js +6 -0
- package/esm/core/Checkbox/Checkbox.stories.js +15 -0
- package/esm/core/Checkbox/Checkbox.stories.playwright.json +55 -0
- package/esm/core/Checkbox/__stories__/ConditionalReveal.js +26 -0
- package/esm/core/Checkbox/__stories__/Default.js +24 -0
- package/esm/core/Checkbox/__stories__/MultipleQuestions.js +26 -0
- package/esm/core/Checkbox/__stories__/NoneAnswer.js +26 -0
- package/esm/core/Checkbox/__stories__/NoneAnswerWithError.js +34 -0
- package/esm/core/Checkbox/__stories__/WithErrorMessage.js +27 -0
- package/esm/core/Checkbox/__stories__/WithHint.js +24 -0
- package/esm/core/Checkbox/checkbox.mdx +78 -0
- package/esm/core/Checkbox/index.js +5 -0
- package/esm/core/DateInputContainer/DateInputContainer.stories.js +12 -0
- package/esm/core/DateInputContainer/DateInputContainer.stories.playwright.json +61 -0
- package/esm/core/DateInputContainer/__stories__/Default.js +20 -0
- package/esm/core/DateInputContainer/__stories__/MultipleQuestions.js +20 -0
- package/esm/core/DateInputContainer/__stories__/WithErrorMessage.js +25 -0
- package/esm/core/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +23 -0
- package/esm/core/DateInputContainer/index.js +4 -0
- package/esm/core/DateInputContainer/index.mdx +44 -0
- package/esm/core/Details/Details.stories.js +9 -0
- package/esm/core/Details/Details.stories.playwright.json +27 -0
- package/esm/core/Details/__snapshots__/index.spec.tsx.snap +50 -0
- package/esm/core/Details/__stories__/Default.js +9 -0
- package/esm/core/Details/index.js +5 -0
- package/esm/core/Details/index.mdx +20 -0
- package/esm/core/Details/index.spec.js +17 -0
- package/esm/core/Divider/Divider.stories.js +8 -0
- package/esm/core/Divider/__stories__/Default.js +26 -0
- package/esm/core/Divider/index.js +8 -0
- package/esm/core/ErrorMessage/ErrorMessage.stories.js +9 -0
- package/esm/core/ErrorMessage/__stories__/Default.js +21 -0
- package/esm/core/ErrorMessage/index.js +3 -0
- package/esm/core/ErrorMessage/index.mdx +22 -0
- package/esm/core/ErrorSummary/ErrorSummary.stories.js +12 -0
- package/esm/core/ErrorSummary/ErrorSummary.stories.playwright.json +27 -0
- package/esm/core/ErrorSummary/__snapshots__/index.spec.tsx.snap +322 -0
- package/esm/core/ErrorSummary/__stories__/Default.js +13 -0
- package/esm/core/ErrorSummary/__stories__/LinkedToCheckbox.js +32 -0
- package/esm/core/ErrorSummary/__stories__/LinkedToField.js +33 -0
- package/esm/core/ErrorSummary/__stories__/LinkedToInput.js +32 -0
- package/esm/core/ErrorSummary/index.js +3 -0
- package/esm/core/ErrorSummary/index.mdx +54 -0
- package/esm/core/ErrorSummary/index.spec.js +8 -0
- package/esm/core/FieldContainer/index.js +5 -0
- package/esm/core/FileUpload/FileUpload.stories.js +9 -0
- package/esm/core/FileUpload/__stories__/Default.js +13 -0
- package/esm/core/FileUpload/__stories__/WithErrorMessage.js +17 -0
- package/esm/core/FileUpload/index.js +4 -0
- package/esm/core/FileUpload/index.mdx +27 -0
- package/esm/core/Form/index.js +3 -0
- package/esm/core/Hidden/index.js +1 -0
- package/esm/core/LabelContainer/index.js +4 -0
- package/esm/core/Link/Link.stories.js +13 -0
- package/esm/core/Link/Link.stories.playwright.json +65 -0
- package/esm/core/Link/__snapshots__/index.spec.tsx.snap +31 -0
- package/esm/core/Link/__stories__/DarkBackground.js +15 -0
- package/esm/core/Link/__stories__/DarkBackgroundNoUnderline.js +16 -0
- package/esm/core/Link/__stories__/Default.js +13 -0
- package/esm/core/Link/__stories__/ExternalLink.js +14 -0
- package/esm/core/Link/__stories__/NoUnderline.js +14 -0
- package/esm/core/Link/__stories__/OpensInNewTab.js +13 -0
- package/esm/core/Link/index.js +30 -0
- package/esm/core/Link/index.spec.js +21 -0
- package/esm/core/Link/link.mdx +54 -0
- package/esm/core/List/List.js +3 -0
- package/esm/core/List/List.stories.js +14 -0
- package/esm/core/List/List.stories.playwright.json +27 -0
- package/esm/core/List/ListItem.js +3 -0
- package/esm/core/List/ListItemContent.js +14 -0
- package/esm/core/List/ListItemIcon.js +14 -0
- package/esm/core/List/ListItemText.js +15 -0
- package/esm/core/List/ListItemTitle.js +21 -0
- package/esm/core/List/__snapshots__/index.spec.tsx.snap +322 -0
- package/esm/core/List/__stories__/BulletList.js +12 -0
- package/esm/core/List/__stories__/Default.js +11 -0
- package/esm/core/List/__stories__/NestedBulletList.js +20 -0
- package/esm/core/List/__stories__/NestedListWithVariantStyles.js +18 -0
- package/esm/core/List/__stories__/NumberedList.js +12 -0
- package/esm/core/List/__stories__/WithExtraSpace.js +12 -0
- package/esm/core/List/index.js +7 -0
- package/esm/core/List/index.mdx +34 -0
- package/esm/core/List/index.spec.js +8 -0
- package/esm/core/Masthead/Masthead.stories.js +10 -0
- package/esm/core/Masthead/Masthead.stories.playwright.json +21 -0
- package/esm/core/Masthead/__stories__/Default.js +15 -0
- package/esm/core/Masthead/index.js +4 -0
- package/esm/core/Masthead/masthead.mdx +18 -0
- package/esm/core/NavList/NavHorizontal.js +3 -0
- package/esm/core/NavList/NavHorizontalList.js +3 -0
- package/esm/core/NavList/NavHorizontalListItem.js +3 -0
- package/esm/core/NavList/NavHorizontalListItemButton.js +3 -0
- package/esm/core/NavList/NavHorizontalListItemLink.js +3 -0
- package/esm/core/NavList/NavList.js +25 -0
- package/esm/core/NavList/NavList.stories.js +10 -0
- package/esm/core/NavList/NavList.stories.playwright.json +33 -0
- package/esm/core/NavList/NavListBase.js +60 -0
- package/esm/core/NavList/NavListContext.js +80 -0
- package/esm/core/NavList/NavListItem.js +143 -0
- package/esm/core/NavList/NavListItemBase.js +137 -0
- package/esm/core/NavList/NavListSubMenu.js +27 -0
- package/esm/core/NavList/NavMenu.js +3 -0
- package/esm/core/NavList/NavMenuContainer.js +3 -0
- package/esm/core/NavList/NavMenuContainerContent.js +3 -0
- package/esm/core/NavList/NavMenuContainerContentList.js +3 -0
- package/esm/core/NavList/NavMenuContainerContentListItem.js +3 -0
- package/esm/core/NavList/NavMenuContainerTitle.js +3 -0
- package/esm/core/NavList/NavVertical.js +3 -0
- package/esm/core/NavList/NavVerticalItem.js +3 -0
- package/esm/core/NavList/__snapshots__/index.spec.tsx.snap +334 -0
- package/esm/core/NavList/__stories__/Default.js +48 -0
- package/esm/core/NavList/__stories__/NavHorizontalLayout.js +47 -0
- package/esm/core/NavList/index.js +20 -0
- package/esm/core/NavList/index.mdx +32 -0
- package/esm/core/NavList/index.spec.js +8 -0
- package/esm/core/NavList/types.js +1 -0
- package/esm/core/NotificationBanner/NotificationBanner.stories.js +11 -0
- package/esm/core/NotificationBanner/NotificationBanner.stories.playwright.json +49 -0
- package/esm/core/NotificationBanner/__snapshots__/index.spec.tsx.snap +737 -0
- package/esm/core/NotificationBanner/__stories__/Default.js +12 -0
- package/esm/core/NotificationBanner/__stories__/Success.js +13 -0
- package/esm/core/NotificationBanner/index.js +30 -0
- package/esm/core/NotificationBanner/index.mdx +34 -0
- package/esm/core/NotificationBanner/index.spec.js +19 -0
- package/esm/core/PhaseBanner/PhaseBanner.stories.js +10 -0
- package/esm/core/PhaseBanner/PhaseBanner.stories.playwright.json +21 -0
- package/esm/core/PhaseBanner/__stories__/Default.js +12 -0
- package/esm/core/PhaseBanner/__stories__/Underlined.js +14 -0
- package/esm/core/PhaseBanner/index.js +6 -0
- package/esm/core/PhaseBanner/index.mdx +30 -0
- package/esm/core/RadioContainer/RadioContainer.stories.js +15 -0
- package/esm/core/RadioContainer/RadioContainer.stories.playwright.json +49 -0
- package/esm/core/RadioContainer/__stories__/ConditionalReveal.js +26 -0
- package/esm/core/RadioContainer/__stories__/Default.js +22 -0
- package/esm/core/RadioContainer/__stories__/Inline.js +23 -0
- package/esm/core/RadioContainer/__stories__/MultipleQuestions.js +29 -0
- package/esm/core/RadioContainer/__stories__/NoneAnswer.js +21 -0
- package/esm/core/RadioContainer/__stories__/WithErrorMessage.js +27 -0
- package/esm/core/RadioContainer/__stories__/WithHints.js +29 -0
- package/esm/core/RadioContainer/index.js +5 -0
- package/esm/core/RadioContainer/index.mdx +90 -0
- package/esm/core/SectionBreak/index.js +3 -0
- package/esm/core/SelectContainer/Select.stories.js +11 -0
- package/esm/core/SelectContainer/Select.stories.playwright.json +21 -0
- package/esm/core/SelectContainer/__stories__/Default.js +22 -0
- package/esm/core/SelectContainer/__stories__/DisabledInput.js +24 -0
- package/esm/core/SelectContainer/__stories__/WithHint.js +23 -0
- package/esm/core/SelectContainer/index.js +4 -0
- package/esm/core/SelectContainer/index.mdx +42 -0
- package/esm/core/ServiceBadge/index.js +19 -0
- package/esm/core/ServiceBadge/index.mdx +42 -0
- package/esm/core/SkipLink/index.js +3 -0
- package/esm/core/SummaryList/SummaryList.stories.js +14 -0
- package/esm/core/SummaryList/SummaryList.stories.playwright.json +27 -0
- package/esm/core/SummaryList/__snapshots__/index.spec.tsx.snap +57 -0
- package/esm/core/SummaryList/__stories__/Default.js +13 -0
- package/esm/core/SummaryList/__stories__/RowVariations.js +37 -0
- package/esm/core/SummaryList/__stories__/WithActions.js +20 -0
- package/esm/core/SummaryList/__stories__/WithKeyAndAction.js +20 -0
- package/esm/core/SummaryList/__stories__/WithoutBorders.js +11 -0
- package/esm/core/SummaryList/index.js +7 -0
- package/esm/core/SummaryList/index.mdx +42 -0
- package/esm/core/SummaryList/index.spec.js +9 -0
- package/esm/core/SvgIcon/index.js +10 -0
- package/esm/core/Table/Table.stories.js +24 -0
- package/esm/core/Table/Table.stories.playwright.json +21 -0
- package/esm/core/Table/TableFloatingScroll.js +87 -0
- package/esm/core/Table/__stories__/DarkVariant.js +11 -0
- package/esm/core/Table/__stories__/DarkVariantWithVerticalHeaders.js +11 -0
- package/esm/core/Table/__stories__/Default.js +9 -0
- package/esm/core/Table/__stories__/DefinedWidth.js +15 -0
- package/esm/core/Table/__stories__/Densed.js +13 -0
- package/esm/core/Table/__stories__/Full.js +14 -0
- package/esm/core/Table/__stories__/MultipleProps.js +45 -0
- package/esm/core/Table/__stories__/NoData.js +11 -0
- package/esm/core/Table/__stories__/NumericDataType.js +33 -0
- package/esm/core/Table/__stories__/TableCaptions.js +17 -0
- package/esm/core/Table/__stories__/VerticalBorders.js +11 -0
- package/esm/core/Table/__stories__/VerticalHeaders.js +9 -0
- package/esm/core/Table/__stories__/WithFloatingScroll.js +71 -0
- package/esm/core/Table/__stories__/WithHeader.js +53 -0
- package/esm/core/Table/__stories__/WithLoader.js +81 -0
- package/esm/core/Table/__stories__/ZebraProp.js +11 -0
- package/esm/core/Table/index.js +12 -0
- package/esm/core/Table/index.mdx +94 -0
- package/esm/core/Tabs/Tabs.stories.js +10 -0
- package/esm/core/Tabs/Tabs.stories.playwright.json +27 -0
- package/esm/core/Tabs/__stories__/Default.js +29 -0
- package/esm/core/Tabs/index.js +57 -0
- package/esm/core/Tabs/index.mdx +18 -0
- package/esm/core/TextArea/TextArea.stories.js +15 -0
- package/esm/core/TextArea/TextArea.stories.playwright.json +59 -0
- package/esm/core/TextArea/__stories__/Default.js +16 -0
- package/esm/core/TextArea/__stories__/DisabledInput.js +18 -0
- package/esm/core/TextArea/__stories__/LimitedCharacters.js +17 -0
- package/esm/core/TextArea/__stories__/MultipleQuestions.js +14 -0
- package/esm/core/TextArea/__stories__/WithDeclaredRows.js +18 -0
- package/esm/core/TextArea/__stories__/WithErrorMessage.js +21 -0
- package/esm/core/TextArea/__stories__/WithHint.js +17 -0
- package/esm/core/TextArea/index.js +3 -0
- package/esm/core/TextArea/index.mdx +72 -0
- package/esm/core/TextInput/TextInput.stories.js +16 -0
- package/esm/core/TextInput/TextInput.stories.playwright.json +43 -0
- package/esm/core/TextInput/__stories__/AskingForNumbers.js +19 -0
- package/esm/core/TextInput/__stories__/Default.js +16 -0
- package/esm/core/TextInput/__stories__/DisabledInput.js +18 -0
- package/esm/core/TextInput/__stories__/FixedWidths.js +52 -0
- package/esm/core/TextInput/__stories__/FluidWidths.js +52 -0
- package/esm/core/TextInput/__stories__/MultipleQuestions.js +13 -0
- package/esm/core/TextInput/__stories__/WithErrorMessage.js +21 -0
- package/esm/core/TextInput/__stories__/WithHint.js +17 -0
- package/esm/core/TextInput/index.js +3 -0
- package/esm/core/TextInput/index.mdx +88 -0
- package/esm/core/VisuallyHidden/VisuallyHidden.stories.js +7 -0
- package/esm/core/VisuallyHidden/__stories__/Default.js +16 -0
- package/esm/core/VisuallyHidden/index.js +3 -0
- package/esm/core/VisuallyHidden/index.mdx +20 -0
- package/esm/core/WarningText/WarningText.stories.js +9 -0
- package/esm/core/WarningText/__snapshots__/index.spec.tsx.snap +336 -0
- package/esm/core/WarningText/__stories__/Default.js +9 -0
- package/esm/core/WarningText/index.js +3 -0
- package/esm/core/WarningText/index.mdx +21 -0
- package/esm/core/WarningText/index.spec.js +8 -0
- package/esm/core/index.js +36 -0
- package/esm/custom.d.js +0 -0
- package/esm/govgr/Footer/Copyright.js +36 -0
- package/esm/govgr/Footer/HellenicRepublicLogo.js +3 -0
- package/esm/govgr/Footer/LicenseCCSA.js +18 -0
- package/esm/govgr/Footer/index.js +21 -0
- package/esm/govgr/Footer/index.mdx +101 -0
- package/esm/govgr/Footer/logo.js +1 -0
- package/esm/govgr/Footer/logos/logo-el.js +1 -0
- package/esm/govgr/Footer/logos/logo-en.js +1 -0
- package/esm/govgr/GovGRLogo/govgr-logo.svg +1 -0
- package/esm/govgr/GovGRLogo/index.js +3 -0
- package/esm/govgr/GovGRLogo/logo.js +1 -0
- package/esm/govgr/images/govgr-logo-base64.js +1 -0
- package/esm/govgr/images/govgr-logo-blue-base64.js +1 -0
- package/esm/govgr/images/greek-government-base64.js +1 -0
- package/esm/govgr/images/grnet-logo-base64.js +1 -0
- package/esm/govgr/images/index.js +5 -0
- package/esm/govgr/images/minedu-logo-base64.js +1 -0
- package/esm/govgr/index.js +5 -0
- package/esm/hooks/useDebounce.js +41 -0
- package/esm/hooks/useKeypress.js +20 -0
- package/esm/hooks/useLatest.js +12 -0
- package/esm/hooks/useOutdatedBrowserCheck.js +46 -0
- package/esm/hooks/useSearch.js +25 -0
- package/esm/hooks/useTogglableSections.js +102 -0
- package/esm/index.js +11 -0
- package/esm/introduction.md +11 -0
- package/esm/layouts/Basic/Aside/index.js +3 -0
- package/esm/layouts/Basic/Basic.stories.js +11 -0
- package/esm/layouts/Basic/Bottom/index.js +3 -0
- package/esm/layouts/Basic/Bottom/index.mdx +40 -0
- package/esm/layouts/Basic/Container/index.js +3 -0
- package/esm/layouts/Basic/Content/index.js +20 -0
- package/esm/layouts/Basic/Content/index.mdx +48 -0
- package/esm/layouts/Basic/Main/index.js +3 -0
- package/esm/layouts/Basic/Main/index.mdx +54 -0
- package/esm/layouts/Basic/Masthead/index.js +4 -0
- package/esm/layouts/Basic/Masthead/index.mdx +61 -0
- package/esm/layouts/Basic/Side/index.js +8 -0
- package/esm/layouts/Basic/Side/index.mdx +55 -0
- package/esm/layouts/Basic/Top/index.js +3 -0
- package/esm/layouts/Basic/Top/index.mdx +62 -0
- package/esm/layouts/Basic/__snapshots__/index.spec.tsx.snap +54 -0
- package/esm/layouts/Basic/__stories__/Default.js +12 -0
- package/esm/layouts/Basic/__stories__/MultipleRowsLayout.js +15 -0
- package/esm/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +15 -0
- package/esm/layouts/Basic/index.js +11 -0
- package/esm/layouts/Basic/index.mdx +39 -0
- package/esm/layouts/Basic/index.spec.js +10 -0
- package/esm/layouts/Grid/Grid.stories.js +8 -0
- package/esm/layouts/Grid/__stories__/Default.js +75 -0
- package/esm/layouts/Grid/__stories__/Inline.js +76 -0
- package/esm/layouts/Grid/index.js +3 -0
- package/esm/layouts/index.js +4 -0
- package/esm/locales/el.js +83 -0
- package/esm/locales/en.js +82 -0
- package/esm/registry.js +479 -0
- package/esm/router/index.js +15 -0
- package/esm/test-utils/delay.js +34 -0
- package/esm/themes/grnet.js +111 -0
- package/esm/typography/Caption/index.js +8 -0
- package/esm/typography/Heading/Heading.stories.js +7 -0
- package/esm/typography/Heading/__stories__/Default.js +24 -0
- package/esm/typography/Heading/index.js +3 -0
- package/esm/typography/Heading/index.mdx +16 -0
- package/esm/typography/HeadingCaption/HeadingCaption.stories.js +8 -0
- package/esm/typography/HeadingCaption/__stories__/Default.js +35 -0
- package/esm/typography/HeadingCaption/__stories__/NestedToTitle.js +15 -0
- package/esm/typography/HeadingCaption/index.js +3 -0
- package/esm/typography/HeadingCaption/index.mdx +23 -0
- package/esm/typography/Hint/Hint.stories.js +8 -0
- package/esm/typography/Hint/__stories__/Default.js +9 -0
- package/esm/typography/Hint/__stories__/FontSizes.js +21 -0
- package/esm/typography/Hint/index.js +3 -0
- package/esm/typography/Hint/index.mdx +23 -0
- package/esm/typography/NormalText/NormalText.stories.js +10 -0
- package/esm/typography/NormalText/__stories__/Default.js +9 -0
- package/esm/typography/NormalText/__stories__/FontSizes.js +48 -0
- package/esm/typography/NormalText/__stories__/FontWeight.js +18 -0
- package/esm/typography/NormalText/__stories__/Variants.js +18 -0
- package/esm/typography/NormalText/index.js +3 -0
- package/esm/typography/NormalText/index.mdx +41 -0
- package/esm/typography/Paragraph/Paragraph.stories.js +11 -0
- package/esm/typography/Paragraph/__stories__/Default.js +9 -0
- package/esm/typography/Paragraph/__stories__/FontSizes.js +35 -0
- package/esm/typography/Paragraph/__stories__/FontWeight.js +15 -0
- package/esm/typography/Paragraph/__stories__/LeadVariant.js +11 -0
- package/esm/typography/Paragraph/__stories__/SmallVariant.js +11 -0
- package/esm/typography/Paragraph/index.js +3 -0
- package/esm/typography/Paragraph/index.mdx +49 -0
- package/esm/typography/Title/index.js +49 -0
- package/esm/typography/index.js +5 -0
- package/esm/typography/index.mdx +4 -0
- package/esm/utils/Kitchensink/AllComponents.js +11 -0
- package/esm/utils/Kitchensink/KitchensinkByCategory.js +42 -0
- package/esm/utils/Kitchensink/KitchensinkByLetter.js +20 -0
- package/esm/utils/Kitchensink/KitchensinkComponent.js +51 -0
- package/esm/utils/Kitchensink/KitchensinkDashboard.js +50 -0
- package/esm/utils/evaluateBrowserVersion.js +201 -0
- package/esm/utils/withDeprecation.js +106 -0
- package/govgr/Footer/Copyright.d.ts +11 -0
- package/govgr/Footer/Copyright.js +61 -0
- package/govgr/Footer/HellenicRepublicLogo.d.ts +3 -0
- package/govgr/Footer/HellenicRepublicLogo.js +19 -0
- package/govgr/Footer/LicenseCCSA.d.ts +3 -0
- package/govgr/Footer/LicenseCCSA.js +33 -0
- package/govgr/Footer/index.d.ts +13 -0
- package/govgr/Footer/index.js +39 -0
- package/govgr/Footer/index.mdx +101 -0
- package/govgr/Footer/logo.d.ts +2 -0
- package/govgr/Footer/logo.js +8 -0
- package/govgr/Footer/logos/logo-el.d.ts +2 -0
- package/govgr/Footer/logos/logo-el.js +8 -0
- package/govgr/Footer/logos/logo-en.d.ts +2 -0
- package/govgr/Footer/logos/logo-en.js +8 -0
- package/govgr/GovGRLogo/govgr-logo.svg +1 -0
- package/govgr/GovGRLogo/index.d.ts +3 -0
- package/govgr/GovGRLogo/index.js +19 -0
- package/govgr/GovGRLogo/logo.d.ts +2 -0
- package/govgr/GovGRLogo/logo.js +8 -0
- package/govgr/images/govgr-logo-base64.d.ts +2 -0
- package/govgr/images/govgr-logo-base64.js +8 -0
- package/govgr/images/govgr-logo-blue-base64.d.ts +2 -0
- package/govgr/images/govgr-logo-blue-base64.js +8 -0
- package/govgr/images/greek-government-base64.d.ts +2 -0
- package/govgr/images/greek-government-base64.js +8 -0
- package/govgr/images/grnet-logo-base64.d.ts +2 -0
- package/govgr/images/grnet-logo-base64.js +8 -0
- package/govgr/images/index.d.ts +5 -0
- package/govgr/images/index.js +70 -0
- package/govgr/images/minedu-logo-base64.d.ts +2 -0
- package/govgr/images/minedu-logo-base64.js +8 -0
- package/govgr/index.d.ts +5 -0
- package/govgr/index.js +70 -0
- package/hooks/useDebounce.d.ts +3 -0
- package/hooks/useDebounce.js +63 -0
- package/hooks/useKeypress.d.ts +2 -0
- package/hooks/useKeypress.js +31 -0
- package/hooks/useLatest.d.ts +3 -0
- package/hooks/useLatest.js +26 -0
- package/hooks/useOutdatedBrowserCheck.d.ts +2 -0
- package/hooks/useOutdatedBrowserCheck.js +60 -0
- package/hooks/useSearch.d.ts +4 -0
- package/hooks/useSearch.js +40 -0
- package/hooks/useTogglableSections.d.ts +19 -0
- package/hooks/useTogglableSections.js +114 -0
- package/index.d.ts +6 -0
- package/index.js +83 -0
- package/introduction.md +11 -0
- package/layouts/Basic/Aside/index.d.ts +3 -0
- package/layouts/Basic/Aside/index.js +30 -0
- package/layouts/Basic/Basic.stories.d.ts +11 -0
- package/layouts/Basic/Basic.stories.js +62 -0
- package/layouts/Basic/Bottom/index.d.ts +3 -0
- package/layouts/Basic/Bottom/index.js +30 -0
- package/layouts/Basic/Bottom/index.mdx +40 -0
- package/layouts/Basic/Container/index.d.ts +3 -0
- package/layouts/Basic/Container/index.js +30 -0
- package/layouts/Basic/Content/index.d.ts +5 -0
- package/layouts/Basic/Content/index.js +37 -0
- package/layouts/Basic/Content/index.mdx +48 -0
- package/layouts/Basic/Main/index.d.ts +3 -0
- package/layouts/Basic/Main/index.js +30 -0
- package/layouts/Basic/Main/index.mdx +54 -0
- package/layouts/Basic/Masthead/index.d.ts +4 -0
- package/layouts/Basic/Masthead/index.js +44 -0
- package/layouts/Basic/Masthead/index.mdx +61 -0
- package/layouts/Basic/Side/index.d.ts +5 -0
- package/layouts/Basic/Side/index.js +26 -0
- package/layouts/Basic/Side/index.mdx +55 -0
- package/layouts/Basic/Top/index.d.ts +3 -0
- package/layouts/Basic/Top/index.js +30 -0
- package/layouts/Basic/Top/index.mdx +62 -0
- package/layouts/Basic/__snapshots__/index.spec.tsx.snap +54 -0
- package/layouts/Basic/__stories__/Default.d.ts +2 -0
- package/layouts/Basic/__stories__/Default.js +28 -0
- package/layouts/Basic/__stories__/MultipleRowsLayout.d.ts +2 -0
- package/layouts/Basic/__stories__/MultipleRowsLayout.js +32 -0
- package/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.d.ts +2 -0
- package/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +32 -0
- package/layouts/Basic/index.d.ts +11 -0
- package/layouts/Basic/index.js +142 -0
- package/layouts/Basic/index.mdx +39 -0
- package/layouts/Basic/index.spec.d.ts +1 -0
- package/layouts/Basic/index.spec.js +20 -0
- package/layouts/Grid/Grid.stories.d.ts +9 -0
- package/layouts/Grid/Grid.stories.js +45 -0
- package/layouts/Grid/__stories__/Default.d.ts +2 -0
- package/layouts/Grid/__stories__/Default.js +89 -0
- package/layouts/Grid/__stories__/Inline.d.ts +2 -0
- package/layouts/Grid/__stories__/Inline.js +90 -0
- package/layouts/Grid/index.d.ts +4 -0
- package/layouts/Grid/index.js +19 -0
- package/layouts/index.d.ts +4 -0
- package/layouts/index.js +55 -0
- package/locales/el.d.ts +84 -0
- package/locales/el.js +90 -0
- package/locales/en.d.ts +83 -0
- package/locales/en.js +89 -0
- package/package.json +10 -36
- package/registry.d.ts +287 -0
- package/registry.js +723 -0
- package/router/index.d.ts +9 -0
- package/router/index.js +37 -0
- package/src/admin/AutoComplete/AutoComplete.stories.js +1 -0
- package/src/admin/AutoComplete/Status/index.tsx +2 -2
- package/src/admin/AutoComplete/__stories__/Default.tsx +5 -5
- package/src/admin/AutoComplete/__stories__/WithAutoSelect.tsx +5 -5
- package/src/admin/AutoComplete/__stories__/WithDefaultValue.tsx +5 -5
- package/src/admin/AutoComplete/__stories__/WithInLine.tsx +5 -5
- package/src/admin/AutoComplete/__stories__/WithMinLength.tsx +6 -6
- package/src/admin/AutoComplete/__stories__/WithPlaceHolder.tsx +5 -5
- package/src/admin/AutoComplete/__stories__/WithShowAllValues.tsx +5 -5
- package/src/admin/AutoComplete/index.mdx +38 -10
- package/src/admin/AutoComplete/index.tsx +3 -2
- package/src/admin/CircularProgress/CircularProgress.stories.js +4 -5
- package/src/admin/CircularProgress/__stories__/Default.tsx +5 -8
- package/src/admin/CopyToClipboard/CopyToClipboard.stories.js +1 -1
- package/src/admin/CopyToClipboard/__stories__/Banner.tsx +3 -5
- package/src/admin/CopyToClipboard/__stories__/Default.tsx +1 -1
- package/src/admin/CopyToClipboard/index.mdx +8 -4
- package/src/admin/Drawer/Drawer.stories.js +8 -1
- package/src/admin/Drawer/__stories__/Default.tsx +52 -92
- package/src/admin/Drawer/index.mdx +5 -1
- package/src/admin/Dropdown/Dropdown.stories.js +5 -0
- package/src/admin/Dropdown/__stories__/AlignRight.tsx +15 -12
- package/src/admin/Dropdown/__stories__/Default.tsx +15 -12
- package/src/admin/Dropdown/__stories__/PlacementTop.tsx +15 -12
- package/src/admin/Dropdown/index.mdx +21 -5
- package/src/admin/Modal/Modal.stories.js +9 -6
- package/src/admin/Modal/__stories__/AlertDialog.tsx +9 -13
- package/src/admin/Modal/__stories__/Default.tsx +12 -14
- package/src/admin/Modal/index.mdx +12 -5
- package/src/admin/Pagination/Pagination.stories.js +9 -5
- package/src/admin/Pagination/__stories__/Default.tsx +8 -29
- package/src/admin/Pagination/__stories__/PaginationSmall.tsx +44 -0
- package/src/admin/Pagination/index.mdx +5 -1
- package/src/admin/StepNav/StepNav.stories.js +3 -0
- package/src/admin/StepNav/__stories__/Default.tsx +10 -6
- package/src/admin/TaskList/TaskList.stories.js +6 -5
- package/src/admin/TaskList/__stories__/Default.tsx +6 -3
- package/src/admin/Timeline/Timeline.stories.js +6 -5
- package/src/admin/Timeline/__stories__/Default.tsx +9 -4
- package/src/app/Confirmation/Confirmation.mdx +5 -1
- package/src/app/Confirmation/Confirmation.stories.js +7 -5
- package/src/app/Confirmation/__stories__/Default.tsx +3 -1
- package/src/app/Confirmation/index.tsx +4 -4
- package/src/app/Footer/Footer.mdx +20 -4
- package/src/app/Footer/Footer.stories.js +6 -1
- package/src/app/Footer/__stories__/Default.tsx +3 -2
- package/src/app/Footer/__stories__/DefaultCopyright.tsx +7 -5
- package/src/app/Footer/__stories__/FooterAllInclusive.tsx +9 -7
- package/src/app/Footer/__stories__/FooterWithLink.tsx +8 -6
- package/src/app/Footer/__stories__/FooterWithLogo.tsx +8 -6
- package/src/app/Footer/__stories__/FooterWithSecondaryNavigation.tsx +9 -7
- package/src/app/Footer/__stories__/YearCopyright.tsx +9 -5
- package/src/app/Footer/index.tsx +3 -0
- package/src/app/Header/Header.stories.js +6 -0
- package/src/app/Header/HeaderNavMenuContent.tsx +4 -0
- package/src/app/Header/HeaderSecondaryLogo.tsx +1 -1
- package/src/app/Header/__stories__/Default.tsx +4 -4
- package/src/app/Header/__stories__/WithHeaderNavigation.tsx +48 -0
- package/src/app/Header/__stories__/WithNavigation.tsx +34 -15
- package/src/app/Header/__stories__/WithServiceName.tsx +5 -5
- package/src/app/Header/__stories__/WithServiceNameAndLogo.tsx +6 -6
- package/src/app/Header/index.mdx +21 -5
- package/src/app/Header/index.spec.tsx +1 -1
- package/src/app/Header/index.tsx +1 -0
- package/src/app/I18nText.tsx +1 -0
- package/src/app/NotFound/NotFound.stories.js +1 -0
- package/src/app/NotFound/__stories__/Default.tsx +1 -1
- package/src/app/NotFound/index.mdx +5 -1
- package/src/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +4 -5
- package/src/app/PhaseBannerHeader/__stories__/Default.tsx +1 -1
- package/src/app/PhaseBannerHeader/index.mdx +5 -1
- package/src/app/QrCodeScanner/QrCodeScanner.stories.js +1 -0
- package/src/app/QrCodeScanner/__stories__/Default.tsx +3 -3
- package/src/app/QrCodeScanner/index.tsx +9 -4
- package/src/app/QrCodeViewer/QRCode.stories.js +1 -0
- package/src/app/QrCodeViewer/__stories__/Custom.tsx +1 -1
- package/src/app/QrCodeViewer/__stories__/Default.tsx +1 -1
- package/src/app/QrCodeViewer/index.mdx +10 -3
- package/src/app/QrCodeViewer/index.tsx +4 -79
- package/src/app/QrCodeViewer/types.ts +0 -1
- package/src/app/index.ts +2 -0
- package/src/core/Accordion/Accordion.stories.js +9 -6
- package/src/core/Accordion/Accordion.stories.playwright.json +1 -7
- package/src/core/Accordion/__stories__/Default.tsx +98 -101
- package/src/core/Accordion/__stories__/WithHints.tsx +41 -43
- package/src/core/Accordion/index.mdx +15 -7
- package/src/core/Accordion/index.tsx +6 -0
- package/src/core/BackLink/BackLink.stories.js +4 -5
- package/src/core/BackLink/__stories__/Default.tsx +3 -7
- package/src/core/BackLink/index.mdx +5 -1
- package/src/core/Blockquote/Blockquote.stories.js +7 -4
- package/src/core/Blockquote/__stories__/Default.tsx +1 -1
- package/src/core/Blockquote/index.mdx +5 -5
- package/src/core/Breadcrumbs/Breadcrumbs.stories.js +7 -5
- package/src/core/Breadcrumbs/__stories__/Default.tsx +3 -1
- package/src/core/Breadcrumbs/breadcrumbs.mdx +5 -5
- package/src/core/Button/Button.stories.js +4 -2
- package/src/core/Button/__stories__/Back.tsx +1 -1
- package/src/core/Button/__stories__/ButtonLinkButton.tsx +1 -1
- package/src/core/Button/__stories__/CallToActionButton.tsx +1 -1
- package/src/core/Button/__stories__/Disabled.tsx +1 -1
- package/src/core/Button/__stories__/GroupingButtons.tsx +2 -1
- package/src/core/Button/__stories__/GroupingButtonsAndLinks.tsx +4 -2
- package/src/core/Button/__stories__/Primary.tsx +1 -1
- package/src/core/Button/__stories__/Secondary.tsx +1 -1
- package/src/core/Button/__stories__/ThemeToggle.tsx +2 -4
- package/src/core/Button/__stories__/Warning.tsx +1 -1
- package/src/core/Button/__stories__/WithVariantLink.tsx +1 -1
- package/src/core/Button/index.mdx +30 -14
- package/src/core/Card/Card.stories.js +5 -0
- package/src/core/Card/__stories__/Default.tsx +4 -2
- package/src/core/Card/__stories__/WithClickableContent.tsx +4 -2
- package/src/core/Card/__stories__/WithClickableLink.tsx +4 -2
- package/src/core/Card/__stories__/WithDarkBorder.tsx +4 -2
- package/src/core/Card/__stories__/WithDarkTopBorder.tsx +4 -2
- package/src/core/Card/__stories__/WithDivider.tsx +4 -2
- package/src/core/Card/__stories__/WithGrayBorder.tsx +4 -2
- package/src/core/Card/__stories__/WithGrayTopBorder.tsx +4 -2
- package/src/core/Card/__stories__/WithGroupButton.tsx +6 -3
- package/src/core/Card/card.mdx +41 -18
- package/src/core/Checkbox/Checkbox.stories.js +16 -0
- package/src/core/Checkbox/Checkbox.stories.playwright.json +55 -0
- package/src/core/{Checkboxes → Checkbox}/__stories__/ConditionalReveal.tsx +19 -10
- package/src/core/{Checkboxes → Checkbox}/__stories__/Default.tsx +18 -9
- package/src/core/{Checkboxes → Checkbox}/__stories__/MultipleQuestions.tsx +17 -8
- package/src/core/{Checkboxes → Checkbox}/__stories__/NoneAnswer.tsx +17 -8
- package/src/core/{Checkboxes → Checkbox}/__stories__/NoneAnswerWithError.tsx +18 -11
- package/src/core/{Checkboxes → Checkbox}/__stories__/WithErrorMessage.tsx +19 -10
- package/src/core/{Checkboxes → Checkbox}/__stories__/WithHint.tsx +17 -8
- package/src/core/Checkbox/checkbox.mdx +78 -0
- package/src/core/Checkbox/index.tsx +5 -0
- package/src/core/DateInputContainer/DateInputContainer.stories.js +13 -0
- package/src/core/DateInputContainer/DateInputContainer.stories.playwright.json +61 -0
- package/src/core/{DateInput → DateInputContainer}/__stories__/Default.tsx +17 -7
- package/src/core/{DateInput → DateInputContainer}/__stories__/MultipleQuestions.tsx +17 -7
- package/src/core/{DateInput → DateInputContainer}/__stories__/WithErrorMessage.tsx +19 -9
- package/src/core/{DateInput → DateInputContainer}/__stories__/WithErrorMessageForSingleField.tsx +19 -9
- package/src/core/DateInputContainer/index.mdx +44 -0
- package/src/core/DateInputContainer/index.tsx +4 -0
- package/src/core/Details/Details.stories.js +7 -5
- package/src/core/Details/__stories__/Default.tsx +4 -4
- package/src/core/Details/index.mdx +5 -3
- package/src/core/Details/index.tsx +4 -5
- package/src/core/Divider/Divider.stories.js +1 -0
- package/src/core/Divider/__stories__/Default.tsx +1 -1
- package/src/core/Divider/index.tsx +1 -1
- package/src/core/ErrorMessage/ErrorMessage.stories.js +7 -5
- package/src/core/ErrorMessage/__stories__/Default.tsx +17 -10
- package/src/core/ErrorMessage/index.mdx +6 -5
- package/src/core/ErrorSummary/ErrorSummary.stories.js +10 -8
- package/src/core/ErrorSummary/__stories__/Default.tsx +3 -3
- package/src/core/ErrorSummary/__stories__/LinkedToCheckbox.tsx +19 -13
- package/src/core/ErrorSummary/__stories__/LinkedToField.tsx +27 -20
- package/src/core/ErrorSummary/__stories__/LinkedToInput.tsx +12 -12
- package/src/core/ErrorSummary/index.mdx +20 -8
- package/src/core/ErrorSummary/index.tsx +1 -2
- package/src/core/FieldContainer/index.tsx +6 -0
- package/src/core/FileUpload/FileUpload.stories.js +2 -0
- package/src/core/FileUpload/__stories__/Default.tsx +13 -9
- package/src/core/FileUpload/__stories__/WithErrorMessage.tsx +18 -14
- package/src/core/FileUpload/index.mdx +10 -5
- package/src/core/LabelContainer/index.tsx +5 -0
- package/src/core/Link/Link.stories.js +2 -0
- package/src/core/Link/__stories__/DarkBackground.tsx +3 -3
- package/src/core/Link/__stories__/DarkBackgroundNoUnderline.tsx +3 -3
- package/src/core/Link/__stories__/Default.tsx +1 -1
- package/src/core/Link/__stories__/ExternalLink.tsx +2 -2
- package/src/core/Link/__stories__/NoUnderline.tsx +1 -1
- package/src/core/Link/__stories__/OpensInNewTab.tsx +6 -4
- package/src/core/Link/index.spec.tsx +1 -1
- package/src/core/Link/index.tsx +13 -14
- package/src/core/Link/link.mdx +26 -6
- package/src/core/List/List.stories.js +11 -7
- package/src/core/List/List.tsx +1 -3
- package/src/core/List/__stories__/BulletList.tsx +5 -10
- package/src/core/List/__stories__/Default.tsx +3 -2
- package/src/core/List/__stories__/NestedBulletList.tsx +8 -19
- package/src/core/List/__stories__/NestedListWithVariantStyles.tsx +9 -22
- package/src/core/List/__stories__/NumberedList.tsx +5 -10
- package/src/core/List/__stories__/WithExtraSpace.tsx +5 -10
- package/src/core/List/index.mdx +10 -3
- package/src/core/Masthead/Masthead.stories.js +5 -0
- package/src/core/Masthead/__stories__/Default.tsx +7 -3
- package/src/core/Masthead/masthead.mdx +5 -1
- package/src/core/NavList/NavHorizontalListItemButton.tsx +3 -0
- package/src/core/NavList/NavHorizontalListItemLink.tsx +3 -0
- package/src/core/NavList/NavList.stories.js +4 -0
- package/src/core/NavList/NavMenu.tsx +4 -0
- package/src/core/NavList/NavMenuContainer.tsx +4 -0
- package/src/core/NavList/NavMenuContainerContent.tsx +4 -0
- package/src/core/NavList/NavMenuContainerContentList.tsx +4 -0
- package/src/core/NavList/NavMenuContainerContentListItem.tsx +4 -0
- package/src/core/NavList/NavMenuContainerTitle.tsx +4 -0
- package/src/core/NavList/__stories__/Default.tsx +1 -1
- package/src/core/NavList/__stories__/NavHorizontalLayout.tsx +2 -1
- package/src/core/NavList/index.mdx +9 -2
- package/src/core/NavList/index.tsx +12 -1
- package/src/core/NotificationBanner/NotificationBanner.stories.js +6 -0
- package/src/core/NotificationBanner/__stories__/Default.tsx +1 -1
- package/src/core/NotificationBanner/__stories__/Success.tsx +1 -1
- package/src/core/NotificationBanner/index.mdx +11 -5
- package/src/core/PhaseBanner/PhaseBanner.stories.js +8 -6
- package/src/core/PhaseBanner/__stories__/Default.tsx +5 -2
- package/src/core/PhaseBanner/__stories__/Underlined.tsx +5 -2
- package/src/core/PhaseBanner/index.mdx +10 -4
- package/src/core/RadioContainer/RadioContainer.stories.js +16 -0
- package/src/core/RadioContainer/RadioContainer.stories.playwright.json +49 -0
- package/src/core/{Radios → RadioContainer}/__stories__/ConditionalReveal.tsx +21 -9
- package/src/core/{Radios → RadioContainer}/__stories__/Default.tsx +12 -6
- package/src/core/{Radios → RadioContainer}/__stories__/Inline.tsx +14 -7
- package/src/core/{Radios → RadioContainer}/__stories__/MultipleQuestions.tsx +17 -8
- package/src/core/{Radios → RadioContainer}/__stories__/NoneAnswer.tsx +12 -6
- package/src/core/{Radios → RadioContainer}/__stories__/WithErrorMessage.tsx +16 -9
- package/src/core/{Radios → RadioContainer}/__stories__/WithHints.tsx +22 -9
- package/src/core/RadioContainer/index.mdx +90 -0
- package/src/core/RadioContainer/index.tsx +5 -0
- package/src/core/SelectContainer/Select.stories.js +12 -0
- package/src/core/SelectContainer/Select.stories.playwright.json +21 -0
- package/src/core/{Select → SelectContainer}/__stories__/Default.tsx +12 -7
- package/src/core/{Select → SelectContainer}/__stories__/DisabledInput.tsx +12 -7
- package/src/core/{Select → SelectContainer}/__stories__/WithHint.tsx +12 -7
- package/src/core/SelectContainer/index.mdx +42 -0
- package/src/core/SelectContainer/index.tsx +5 -0
- package/src/core/ServiceBadge/index.mdx +1 -1
- package/src/core/SummaryList/SummaryList.stories.js +4 -1
- package/src/core/SummaryList/__stories__/Default.tsx +6 -3
- package/src/core/SummaryList/__stories__/RowVariations.tsx +6 -3
- package/src/core/SummaryList/__stories__/WithActions.tsx +9 -6
- package/src/core/SummaryList/__stories__/WithKeyAndAction.tsx +8 -4
- package/src/core/SummaryList/__stories__/WithoutBorders.tsx +3 -1
- package/src/core/SummaryList/index.mdx +17 -7
- package/src/core/Table/Table.stories.js +5 -1
- package/src/core/Table/__stories__/Densed.tsx +1 -0
- package/src/core/Table/__stories__/MultipleProps.tsx +1 -0
- package/src/core/Table/__stories__/WithFloatingScroll.tsx +12 -37
- package/src/core/Table/__stories__/WithHeader.tsx +1 -6
- package/src/core/Table/__stories__/WithLoader.tsx +5 -4
- package/src/core/Table/__stories__/ZebraProp.tsx +1 -0
- package/src/core/Table/index.mdx +36 -10
- package/src/core/Table/index.tsx +4 -1
- package/src/core/Tabs/Tabs.stories.js +8 -5
- package/src/core/Tabs/__stories__/Default.tsx +36 -11
- package/src/core/Tabs/index.mdx +5 -3
- package/src/core/Tabs/index.tsx +17 -9
- package/src/core/TextArea/TextArea.stories.js +13 -12
- package/src/core/TextArea/__stories__/Default.tsx +6 -6
- package/src/core/TextArea/__stories__/DisabledInput.tsx +7 -7
- package/src/core/TextArea/__stories__/LimitedCharacters.tsx +7 -7
- package/src/core/TextArea/__stories__/MultipleQuestions.tsx +6 -6
- package/src/core/TextArea/__stories__/WithDeclaredRows.tsx +7 -7
- package/src/core/TextArea/__stories__/WithErrorMessage.tsx +8 -8
- package/src/core/TextArea/__stories__/WithHint.tsx +7 -7
- package/src/core/TextArea/index.mdx +35 -13
- package/src/core/TextInput/TextInput.stories.js +14 -12
- package/src/core/TextInput/__stories__/AskingForNumbers.tsx +7 -7
- package/src/core/TextInput/__stories__/Default.tsx +6 -6
- package/src/core/TextInput/__stories__/DisabledInput.tsx +7 -7
- package/src/core/TextInput/__stories__/FixedWidths.tsx +16 -16
- package/src/core/TextInput/__stories__/FluidWidths.tsx +16 -16
- package/src/core/TextInput/__stories__/MultipleQuestions.tsx +5 -5
- package/src/core/TextInput/__stories__/WithErrorMessage.tsx +8 -8
- package/src/core/TextInput/__stories__/WithHint.tsx +7 -7
- package/src/core/TextInput/index.mdx +40 -11
- package/src/core/VisuallyHidden/VisuallyHidden.stories.js +4 -5
- package/src/core/VisuallyHidden/__stories__/Default.tsx +6 -4
- package/src/core/VisuallyHidden/index.mdx +5 -2
- package/src/core/WarningText/WarningText.stories.js +7 -5
- package/src/core/WarningText/__stories__/Default.tsx +1 -1
- package/src/core/WarningText/index.mdx +6 -4
- package/src/core/WarningText/index.tsx +1 -2
- package/src/core/index.ts +9 -6
- package/src/govgr/Footer/index.mdx +4 -0
- package/src/govgr/GovGRLogo/govgr-logo.svg +1 -0
- package/src/govgr/{Logo → GovGRLogo}/index.tsx +0 -0
- package/src/govgr/{Logo → GovGRLogo}/logo.ts +0 -0
- package/src/govgr/index.ts +1 -1
- package/src/hooks/useLatest.ts +7 -7
- package/src/hooks/useSearch.ts +5 -8
- package/src/hooks/useTogglableSections.tsx +1 -1
- package/src/index.ts +1 -0
- package/src/layouts/Basic/Basic.stories.js +2 -0
- package/src/layouts/Basic/Bottom/index.mdx +4 -0
- package/src/layouts/Basic/Bottom/index.tsx +1 -2
- package/src/layouts/Basic/Content/index.mdx +1 -3
- package/src/layouts/Basic/Content/index.tsx +1 -5
- package/src/layouts/Basic/Main/index.mdx +5 -3
- package/src/layouts/Basic/Main/index.tsx +1 -2
- package/src/layouts/Basic/Masthead/index.mdx +5 -3
- package/src/layouts/Basic/Masthead/index.tsx +2 -4
- package/src/layouts/Basic/Side/index.mdx +0 -2
- package/src/layouts/Basic/Top/index.mdx +6 -4
- package/src/layouts/Basic/Top/index.tsx +1 -3
- package/src/layouts/Basic/__stories__/Default.tsx +5 -3
- package/src/layouts/Basic/__stories__/MultipleRowsLayout.tsx +8 -5
- package/src/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.tsx +7 -4
- package/src/layouts/Basic/index.mdx +1 -9
- package/src/layouts/Basic/index.tsx +4 -4
- package/src/layouts/Grid/Grid.stories.js +5 -6
- package/src/layouts/Grid/__stories__/Default.tsx +26 -57
- package/src/layouts/Grid/__stories__/Inline.tsx +26 -56
- package/src/registry.js +152 -18
- package/src/themes/grnet.js +1 -1
- package/src/typography/Heading/Heading.stories.js +1 -0
- package/src/typography/Heading/__stories__/Default.tsx +1 -1
- package/src/typography/Heading/index.mdx +5 -1
- package/src/typography/Heading/index.tsx +1 -2
- package/src/typography/HeadingCaption/HeadingCaption.stories.js +1 -0
- package/src/typography/HeadingCaption/__stories__/Default.tsx +2 -2
- package/src/typography/HeadingCaption/__stories__/NestedToTitle.tsx +2 -2
- package/src/typography/HeadingCaption/index.mdx +10 -3
- package/src/typography/HeadingCaption/index.tsx +1 -2
- package/src/typography/Hint/Hint.stories.js +5 -6
- package/src/typography/Hint/__stories__/Default.tsx +3 -6
- package/src/typography/Hint/__stories__/FontSizes.tsx +6 -7
- package/src/typography/Hint/index.mdx +10 -3
- package/src/typography/NormalText/NormalText.stories.js +7 -8
- package/src/typography/NormalText/__stories__/Default.tsx +3 -8
- package/src/typography/NormalText/__stories__/FontSizes.tsx +9 -10
- package/src/typography/NormalText/__stories__/FontWeight.tsx +2 -2
- package/src/typography/NormalText/__stories__/Variants.tsx +4 -5
- package/src/typography/NormalText/index.mdx +20 -5
- package/src/typography/Paragraph/Paragraph.stories.js +8 -8
- package/src/typography/Paragraph/__stories__/Default.tsx +3 -8
- package/src/typography/Paragraph/__stories__/FontSizes.tsx +2 -3
- package/src/typography/Paragraph/__stories__/FontWeight.tsx +1 -1
- package/src/typography/Paragraph/__stories__/LeadVariant.tsx +3 -6
- package/src/typography/Paragraph/__stories__/SmallVariant.tsx +3 -6
- package/src/typography/Paragraph/index.mdx +25 -6
- package/src/typography/index.mdx +0 -1
- package/src/typography/index.ts +2 -6
- package/src/utils/Kitchensink/AllComponents.tsx +6 -0
- package/src/utils/Kitchensink/KitchensinkByCategory.tsx +56 -0
- package/src/utils/Kitchensink/KitchensinkByLetter.tsx +35 -0
- package/src/utils/Kitchensink/KitchensinkComponent.tsx +62 -0
- package/src/utils/Kitchensink/KitchensinkDashboard.tsx +55 -0
- package/src/utils/withDeprecation.tsx +16 -9
- package/test-utils/delay.d.ts +2 -0
- package/test-utils/delay.js +47 -0
- package/themes/grnet.d.ts +2 -0
- package/themes/grnet.js +129 -0
- package/typography/Caption/index.d.ts +8 -0
- package/typography/Caption/index.js +27 -0
- package/typography/Heading/Heading.stories.d.ts +8 -0
- package/typography/Heading/Heading.stories.js +31 -0
- package/typography/Heading/__stories__/Default.d.ts +2 -0
- package/typography/Heading/__stories__/Default.js +37 -0
- package/typography/Heading/index.d.ts +3 -0
- package/typography/Heading/index.js +30 -0
- package/typography/Heading/index.mdx +16 -0
- package/typography/HeadingCaption/HeadingCaption.stories.d.ts +9 -0
- package/typography/HeadingCaption/HeadingCaption.stories.js +45 -0
- package/typography/HeadingCaption/__stories__/Default.d.ts +2 -0
- package/typography/HeadingCaption/__stories__/Default.js +49 -0
- package/typography/HeadingCaption/__stories__/NestedToTitle.d.ts +2 -0
- package/typography/HeadingCaption/__stories__/NestedToTitle.js +29 -0
- package/typography/HeadingCaption/index.d.ts +3 -0
- package/typography/HeadingCaption/index.js +30 -0
- package/typography/HeadingCaption/index.mdx +23 -0
- package/typography/Hint/Hint.stories.d.ts +9 -0
- package/typography/Hint/Hint.stories.js +45 -0
- package/typography/Hint/__stories__/Default.d.ts +2 -0
- package/typography/Hint/__stories__/Default.js +22 -0
- package/typography/Hint/__stories__/FontSizes.d.ts +2 -0
- package/typography/Hint/__stories__/FontSizes.js +34 -0
- package/typography/Hint/index.d.ts +3 -0
- package/typography/Hint/index.js +30 -0
- package/typography/Hint/index.mdx +23 -0
- package/typography/NormalText/NormalText.stories.d.ts +11 -0
- package/typography/NormalText/NormalText.stories.js +73 -0
- package/typography/NormalText/__stories__/Default.d.ts +2 -0
- package/typography/NormalText/__stories__/Default.js +22 -0
- package/typography/NormalText/__stories__/FontSizes.d.ts +2 -0
- package/typography/NormalText/__stories__/FontSizes.js +62 -0
- package/typography/NormalText/__stories__/FontWeight.d.ts +2 -0
- package/typography/NormalText/__stories__/FontWeight.js +32 -0
- package/typography/NormalText/__stories__/Variants.d.ts +2 -0
- package/typography/NormalText/__stories__/Variants.js +32 -0
- package/typography/NormalText/index.d.ts +3 -0
- package/typography/NormalText/index.js +30 -0
- package/typography/NormalText/index.mdx +41 -0
- package/typography/Paragraph/Paragraph.stories.d.ts +12 -0
- package/typography/Paragraph/Paragraph.stories.js +87 -0
- package/typography/Paragraph/__stories__/Default.d.ts +2 -0
- package/typography/Paragraph/__stories__/Default.js +22 -0
- package/typography/Paragraph/__stories__/FontSizes.d.ts +2 -0
- package/typography/Paragraph/__stories__/FontSizes.js +48 -0
- package/typography/Paragraph/__stories__/FontWeight.d.ts +2 -0
- package/typography/Paragraph/__stories__/FontWeight.js +28 -0
- package/typography/Paragraph/__stories__/LeadVariant.d.ts +2 -0
- package/typography/Paragraph/__stories__/LeadVariant.js +24 -0
- package/typography/Paragraph/__stories__/SmallVariant.d.ts +2 -0
- package/typography/Paragraph/__stories__/SmallVariant.js +24 -0
- package/typography/Paragraph/index.d.ts +3 -0
- package/typography/Paragraph/index.js +30 -0
- package/typography/Paragraph/index.mdx +49 -0
- package/typography/Title/index.d.ts +10 -0
- package/typography/Title/index.js +69 -0
- package/typography/index.d.ts +5 -0
- package/typography/index.js +70 -0
- package/typography/index.mdx +4 -0
- package/utils/Kitchensink/AllComponents.d.ts +1 -0
- package/utils/Kitchensink/AllComponents.js +24 -0
- package/utils/Kitchensink/KitchensinkByCategory.d.ts +6 -0
- package/utils/Kitchensink/KitchensinkByCategory.js +56 -0
- package/utils/Kitchensink/KitchensinkByLetter.d.ts +5 -0
- package/utils/Kitchensink/KitchensinkByLetter.js +34 -0
- package/utils/Kitchensink/KitchensinkComponent.d.ts +10 -0
- package/utils/Kitchensink/KitchensinkComponent.js +68 -0
- package/utils/Kitchensink/KitchensinkDashboard.d.ts +4 -0
- package/utils/Kitchensink/KitchensinkDashboard.js +63 -0
- package/utils/evaluateBrowserVersion.d.ts +15 -0
- package/utils/evaluateBrowserVersion.js +216 -0
- package/utils/withDeprecation.d.ts +16 -0
- package/utils/withDeprecation.js +119 -0
- package/.eslintrc.js +0 -3
- package/.prettierrc.js +0 -3
- package/.rush/temp/operation/build/state.json +0 -3
- package/.rush/temp/package-deps_build.json +0 -535
- package/.rush/temp/shrinkwrap-deps.json +0 -393
- package/CHANGELOG.json +0 -1668
- package/digigov-ui-0.26.7.tgz +0 -0
- package/docs/components.mdx +0 -1
- package/docs/create-a-new-service.mdx +0 -93
- package/docs/create-common-page-layout.mdx +0 -205
- package/docs/create-static-page.mdx +0 -179
- package/docs/edit-start-page.mdx +0 -141
- package/docs/index.mdx +0 -66
- package/docs/introduction.mdx +0 -34
- package/src/admin/CopyToClipboard/__stories__/MultipleCopies.tsx +0 -213
- package/src/admin/Modal/__stories__/AlertDialog.test.tsx +0 -14
- package/src/core/Checkboxes/Checkbox.stories.js +0 -12
- package/src/core/Confirmation/Confirmation.stories.js +0 -8
- package/src/core/Confirmation/__stories__/Default.tsx +0 -15
- package/src/core/Confirmation/confirmation.mdx +0 -19
- package/src/core/DateInput/DateInput.stories.js +0 -9
- package/src/core/DateInput/index.mdx +0 -34
- package/src/core/Radios/Radios.stories.js +0 -12
- package/src/core/Radios/index.mdx +0 -56
- package/src/core/Select/Select.stories.js +0 -10
- package/src/core/Select/index.mdx +0 -42
- package/src/form/inputs/Input/index.mdx +0 -10
- package/src/router/index.mdx +0 -5
- package/tsconfig.json +0 -25
- package/tsconfig.production.json +0 -45
- package/ui.build.log +0 -16
|
@@ -0,0 +1,1085 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license QR Code generator library (TypeScript)
|
|
3
|
+
* Copyright (c) Project Nayuki.
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*/
|
|
6
|
+
'use strict'; // eslint-disable-next-line @typescript-eslint/no-namespace
|
|
7
|
+
|
|
8
|
+
import _createClass from "@babel/runtime/helpers/createClass";
|
|
9
|
+
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
10
|
+
|
|
11
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
12
|
+
|
|
13
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
14
|
+
|
|
15
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
16
|
+
|
|
17
|
+
var qrcodegen;
|
|
18
|
+
|
|
19
|
+
(function (_qrcodegen) {
|
|
20
|
+
var QrCode = /*#__PURE__*/function () {
|
|
21
|
+
/*-- Constructor (low level) and fields --*/
|
|
22
|
+
// Creates a new QR Code with the given version number,
|
|
23
|
+
// error correction level, data codeword bytes, and mask number.
|
|
24
|
+
// This is a low-level API that most users should not use directly.
|
|
25
|
+
// A mid-level API is the encodeSegments() function.
|
|
26
|
+
function QrCode( // The version number of this QR Code, which is between 1 and 40 (inclusive).
|
|
27
|
+
// This determines the size of this barcode.
|
|
28
|
+
version, // The error correction level used in this QR Code.
|
|
29
|
+
errorCorrectionLevel, dataCodewords, msk) {
|
|
30
|
+
_classCallCheck(this, QrCode);
|
|
31
|
+
|
|
32
|
+
this.version = void 0;
|
|
33
|
+
this.errorCorrectionLevel = void 0;
|
|
34
|
+
this.size = void 0;
|
|
35
|
+
this.mask = void 0;
|
|
36
|
+
this.modules = [];
|
|
37
|
+
this.isFunction = [];
|
|
38
|
+
this.version = version;
|
|
39
|
+
this.errorCorrectionLevel = errorCorrectionLevel; // Check scalar arguments
|
|
40
|
+
|
|
41
|
+
if (version < QrCode.MIN_VERSION || version > QrCode.MAX_VERSION) throw new RangeError('Version value out of range');
|
|
42
|
+
if (msk < -1 || msk > 7) throw new RangeError('Mask value out of range');
|
|
43
|
+
this.size = version * 4 + 17; // Initialize both grids to be size*size arrays of Boolean false
|
|
44
|
+
|
|
45
|
+
var row = [];
|
|
46
|
+
|
|
47
|
+
for (var i = 0; i < this.size; i++) {
|
|
48
|
+
row.push(false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
for (var _i = 0; _i < this.size; _i++) {
|
|
52
|
+
this.modules.push(row.slice()); // Initially all light
|
|
53
|
+
|
|
54
|
+
this.isFunction.push(row.slice());
|
|
55
|
+
} // Compute ECC, draw modules
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
this.drawFunctionPatterns();
|
|
59
|
+
var allCodewords = this.addEccAndInterleave(dataCodewords);
|
|
60
|
+
this.drawCodewords(allCodewords); // Do masking
|
|
61
|
+
|
|
62
|
+
if (msk == -1) {
|
|
63
|
+
// Automatically choose best mask
|
|
64
|
+
var minPenalty = 1000000000;
|
|
65
|
+
|
|
66
|
+
for (var _i2 = 0; _i2 < 8; _i2++) {
|
|
67
|
+
this.applyMask(_i2);
|
|
68
|
+
this.drawFormatBits(_i2);
|
|
69
|
+
var penalty = this.getPenaltyScore();
|
|
70
|
+
|
|
71
|
+
if (penalty < minPenalty) {
|
|
72
|
+
msk = _i2;
|
|
73
|
+
minPenalty = penalty;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
this.applyMask(_i2); // Undoes the mask due to XOR
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
assert(0 <= msk && msk <= 7);
|
|
81
|
+
this.mask = msk;
|
|
82
|
+
this.applyMask(msk); // Apply the final choice of mask
|
|
83
|
+
|
|
84
|
+
this.drawFormatBits(msk); // Overwrite old format bits
|
|
85
|
+
|
|
86
|
+
this.isFunction = [];
|
|
87
|
+
}
|
|
88
|
+
/*-- Accessor methods --*/
|
|
89
|
+
// Returns the color of the module (pixel) at the given coordinates, which is false
|
|
90
|
+
// for light or true for dark. The top left corner has the coordinates (x=0, y=0).
|
|
91
|
+
// If the given coordinates are out of bounds, then false (light) is returned.
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
_createClass(QrCode, [{
|
|
95
|
+
key: "getModule",
|
|
96
|
+
value: function getModule(x, y) {
|
|
97
|
+
return 0 <= x && x < this.size && 0 <= y && y < this.size && this.modules[y][x];
|
|
98
|
+
} // Modified to expose modules for easy access
|
|
99
|
+
|
|
100
|
+
}, {
|
|
101
|
+
key: "getModules",
|
|
102
|
+
value: function getModules() {
|
|
103
|
+
return this.modules;
|
|
104
|
+
}
|
|
105
|
+
/*-- Private helper methods for constructor: Drawing function modules --*/
|
|
106
|
+
// Reads this object's version field, and draws and marks all function modules.
|
|
107
|
+
|
|
108
|
+
}, {
|
|
109
|
+
key: "drawFunctionPatterns",
|
|
110
|
+
value: function drawFunctionPatterns() {
|
|
111
|
+
// Draw horizontal and vertical timing patterns
|
|
112
|
+
for (var i = 0; i < this.size; i++) {
|
|
113
|
+
this.setFunctionModule(6, i, i % 2 == 0);
|
|
114
|
+
this.setFunctionModule(i, 6, i % 2 == 0);
|
|
115
|
+
} // Draw 3 finder patterns (all corners except bottom right; overwrites some timing modules)
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
this.drawFinderPattern(3, 3);
|
|
119
|
+
this.drawFinderPattern(this.size - 4, 3);
|
|
120
|
+
this.drawFinderPattern(3, this.size - 4); // Draw numerous alignment patterns
|
|
121
|
+
|
|
122
|
+
var alignPatPos = this.getAlignmentPatternPositions();
|
|
123
|
+
var numAlign = alignPatPos.length;
|
|
124
|
+
|
|
125
|
+
for (var _i3 = 0; _i3 < numAlign; _i3++) {
|
|
126
|
+
for (var j = 0; j < numAlign; j++) {
|
|
127
|
+
// Don't draw on the three finder corners
|
|
128
|
+
if (!(_i3 == 0 && j == 0 || _i3 == 0 && j == numAlign - 1 || _i3 == numAlign - 1 && j == 0)) this.drawAlignmentPattern(alignPatPos[_i3], alignPatPos[j]);
|
|
129
|
+
}
|
|
130
|
+
} // Draw configuration data
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
this.drawFormatBits(0); // Dummy mask value; overwritten later in the constructor
|
|
134
|
+
|
|
135
|
+
this.drawVersion();
|
|
136
|
+
} // Draws two copies of the format bits (with its own error correction code)
|
|
137
|
+
// based on the given mask and this object's error correction level field.
|
|
138
|
+
|
|
139
|
+
}, {
|
|
140
|
+
key: "drawFormatBits",
|
|
141
|
+
value: function drawFormatBits(mask) {
|
|
142
|
+
// Calculate error correction code and pack bits
|
|
143
|
+
var data = this.errorCorrectionLevel.formatBits << 3 | mask; // errCorrLvl is uint2, mask is uint3
|
|
144
|
+
|
|
145
|
+
var rem = data;
|
|
146
|
+
|
|
147
|
+
for (var i = 0; i < 10; i++) {
|
|
148
|
+
rem = rem << 1 ^ (rem >>> 9) * 0x537;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
var bits = (data << 10 | rem) ^ 0x5412; // uint15
|
|
152
|
+
|
|
153
|
+
assert(bits >>> 15 == 0); // Draw first copy
|
|
154
|
+
|
|
155
|
+
for (var _i4 = 0; _i4 <= 5; _i4++) {
|
|
156
|
+
this.setFunctionModule(8, _i4, getBit(bits, _i4));
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
this.setFunctionModule(8, 7, getBit(bits, 6));
|
|
160
|
+
this.setFunctionModule(8, 8, getBit(bits, 7));
|
|
161
|
+
this.setFunctionModule(7, 8, getBit(bits, 8));
|
|
162
|
+
|
|
163
|
+
for (var _i5 = 9; _i5 < 15; _i5++) {
|
|
164
|
+
this.setFunctionModule(14 - _i5, 8, getBit(bits, _i5));
|
|
165
|
+
} // Draw second copy
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
for (var _i6 = 0; _i6 < 8; _i6++) {
|
|
169
|
+
this.setFunctionModule(this.size - 1 - _i6, 8, getBit(bits, _i6));
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
for (var _i7 = 8; _i7 < 15; _i7++) {
|
|
173
|
+
this.setFunctionModule(8, this.size - 15 + _i7, getBit(bits, _i7));
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
this.setFunctionModule(8, this.size - 8, true); // Always dark
|
|
177
|
+
} // Draws two copies of the version bits (with its own error correction code),
|
|
178
|
+
// based on this object's version field, iff 7 <= version <= 40.
|
|
179
|
+
|
|
180
|
+
}, {
|
|
181
|
+
key: "drawVersion",
|
|
182
|
+
value: function drawVersion() {
|
|
183
|
+
if (this.version < 7) return; // Calculate error correction code and pack bits
|
|
184
|
+
|
|
185
|
+
var rem = this.version; // version is uint6, in the range [7, 40]
|
|
186
|
+
|
|
187
|
+
for (var i = 0; i < 12; i++) {
|
|
188
|
+
rem = rem << 1 ^ (rem >>> 11) * 0x1f25;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
var bits = this.version << 12 | rem; // uint18
|
|
192
|
+
|
|
193
|
+
assert(bits >>> 18 == 0); // Draw two copies
|
|
194
|
+
|
|
195
|
+
for (var _i8 = 0; _i8 < 18; _i8++) {
|
|
196
|
+
var color = getBit(bits, _i8);
|
|
197
|
+
var a = this.size - 11 + _i8 % 3;
|
|
198
|
+
var b = Math.floor(_i8 / 3);
|
|
199
|
+
this.setFunctionModule(a, b, color);
|
|
200
|
+
this.setFunctionModule(b, a, color);
|
|
201
|
+
}
|
|
202
|
+
} // Draws a 9*9 finder pattern including the border separator,
|
|
203
|
+
// with the center module at (x, y). Modules can be out of bounds.
|
|
204
|
+
|
|
205
|
+
}, {
|
|
206
|
+
key: "drawFinderPattern",
|
|
207
|
+
value: function drawFinderPattern(x, y) {
|
|
208
|
+
for (var dy = -4; dy <= 4; dy++) {
|
|
209
|
+
for (var dx = -4; dx <= 4; dx++) {
|
|
210
|
+
var dist = Math.max(Math.abs(dx), Math.abs(dy)); // Chebyshev/infinity norm
|
|
211
|
+
|
|
212
|
+
var xx = x + dx;
|
|
213
|
+
var yy = y + dy;
|
|
214
|
+
if (0 <= xx && xx < this.size && 0 <= yy && yy < this.size) this.setFunctionModule(xx, yy, dist != 2 && dist != 4);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
} // Draws a 5*5 alignment pattern, with the center module
|
|
218
|
+
// at (x, y). All modules must be in bounds.
|
|
219
|
+
|
|
220
|
+
}, {
|
|
221
|
+
key: "drawAlignmentPattern",
|
|
222
|
+
value: function drawAlignmentPattern(x, y) {
|
|
223
|
+
for (var dy = -2; dy <= 2; dy++) {
|
|
224
|
+
for (var dx = -2; dx <= 2; dx++) {
|
|
225
|
+
this.setFunctionModule(x + dx, y + dy, Math.max(Math.abs(dx), Math.abs(dy)) != 1);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
} // Sets the color of a module and marks it as a function module.
|
|
229
|
+
// Only used by the constructor. Coordinates must be in bounds.
|
|
230
|
+
|
|
231
|
+
}, {
|
|
232
|
+
key: "setFunctionModule",
|
|
233
|
+
value: function setFunctionModule(x, y, isDark) {
|
|
234
|
+
this.modules[y][x] = isDark;
|
|
235
|
+
this.isFunction[y][x] = true;
|
|
236
|
+
}
|
|
237
|
+
/*-- Private helper methods for constructor: Codewords and masking --*/
|
|
238
|
+
// Returns a new byte string representing the given data with the appropriate error correction
|
|
239
|
+
// codewords appended to it, based on this object's version and error correction level.
|
|
240
|
+
|
|
241
|
+
}, {
|
|
242
|
+
key: "addEccAndInterleave",
|
|
243
|
+
value: function addEccAndInterleave(data) {
|
|
244
|
+
var ver = this.version;
|
|
245
|
+
var ecl = this.errorCorrectionLevel;
|
|
246
|
+
if (data.length != QrCode.getNumDataCodewords(ver, ecl)) throw new RangeError('Invalid argument'); // Calculate parameter numbers
|
|
247
|
+
|
|
248
|
+
var numBlocks = QrCode.NUM_ERROR_CORRECTION_BLOCKS[ecl.ordinal][ver];
|
|
249
|
+
var blockEccLen = QrCode.ECC_CODEWORDS_PER_BLOCK[ecl.ordinal][ver];
|
|
250
|
+
var rawCodewords = Math.floor(QrCode.getNumRawDataModules(ver) / 8);
|
|
251
|
+
var numShortBlocks = numBlocks - rawCodewords % numBlocks;
|
|
252
|
+
var shortBlockLen = Math.floor(rawCodewords / numBlocks); // Split data into blocks and append ECC to each block
|
|
253
|
+
|
|
254
|
+
var blocks = [];
|
|
255
|
+
var rsDiv = QrCode.reedSolomonComputeDivisor(blockEccLen);
|
|
256
|
+
|
|
257
|
+
for (var i = 0, k = 0; i < numBlocks; i++) {
|
|
258
|
+
var dat = data.slice(k, k + shortBlockLen - blockEccLen + (i < numShortBlocks ? 0 : 1));
|
|
259
|
+
k += dat.length;
|
|
260
|
+
var ecc = QrCode.reedSolomonComputeRemainder(dat, rsDiv);
|
|
261
|
+
if (i < numShortBlocks) dat.push(0);
|
|
262
|
+
blocks.push(dat.concat(ecc));
|
|
263
|
+
} // Interleave (not concatenate) the bytes from every block into a single sequence
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
var result = [];
|
|
267
|
+
|
|
268
|
+
var _loop = function _loop(_i9) {
|
|
269
|
+
blocks.forEach(function (block, j) {
|
|
270
|
+
// Skip the padding byte in short blocks
|
|
271
|
+
if (_i9 != shortBlockLen - blockEccLen || j >= numShortBlocks) result.push(block[_i9]);
|
|
272
|
+
});
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
for (var _i9 = 0; _i9 < blocks[0].length; _i9++) {
|
|
276
|
+
_loop(_i9);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
assert(result.length == rawCodewords);
|
|
280
|
+
return result;
|
|
281
|
+
} // Draws the given sequence of 8-bit codewords (data and error correction) onto the entire
|
|
282
|
+
// data area of this QR Code. Function modules need to be marked off before this is called.
|
|
283
|
+
|
|
284
|
+
}, {
|
|
285
|
+
key: "drawCodewords",
|
|
286
|
+
value: function drawCodewords(data) {
|
|
287
|
+
if (data.length != Math.floor(QrCode.getNumRawDataModules(this.version) / 8)) throw new RangeError('Invalid argument');
|
|
288
|
+
var i = 0; // Bit index into the data
|
|
289
|
+
// Do the funny zigzag scan
|
|
290
|
+
|
|
291
|
+
for (var right = this.size - 1; right >= 1; right -= 2) {
|
|
292
|
+
// Index of right column in each column pair
|
|
293
|
+
if (right == 6) right = 5;
|
|
294
|
+
|
|
295
|
+
for (var vert = 0; vert < this.size; vert++) {
|
|
296
|
+
// Vertical counter
|
|
297
|
+
for (var j = 0; j < 2; j++) {
|
|
298
|
+
var x = right - j; // Actual x coordinate
|
|
299
|
+
|
|
300
|
+
var upward = (right + 1 & 2) == 0;
|
|
301
|
+
var y = upward ? this.size - 1 - vert : vert; // Actual y coordinate
|
|
302
|
+
|
|
303
|
+
if (!this.isFunction[y][x] && i < data.length * 8) {
|
|
304
|
+
this.modules[y][x] = getBit(data[i >>> 3], 7 - (i & 7));
|
|
305
|
+
i++;
|
|
306
|
+
} // If this QR Code has any remainder bits (0 to 7), they were assigned as
|
|
307
|
+
// 0/false/light by the constructor and are left unchanged by this method
|
|
308
|
+
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
assert(i == data.length * 8);
|
|
314
|
+
} // XORs the codeword modules in this QR Code with the given mask pattern.
|
|
315
|
+
// The function modules must be marked and the codeword bits must be drawn
|
|
316
|
+
// before masking. Due to the arithmetic of XOR, calling applyMask() with
|
|
317
|
+
// the same mask value a second time will undo the mask. A final well-formed
|
|
318
|
+
// QR Code needs exactly one (not zero, two, etc.) mask applied.
|
|
319
|
+
|
|
320
|
+
}, {
|
|
321
|
+
key: "applyMask",
|
|
322
|
+
value: function applyMask(mask) {
|
|
323
|
+
if (mask < 0 || mask > 7) throw new RangeError('Mask value out of range');
|
|
324
|
+
|
|
325
|
+
for (var y = 0; y < this.size; y++) {
|
|
326
|
+
for (var x = 0; x < this.size; x++) {
|
|
327
|
+
var invert = void 0;
|
|
328
|
+
|
|
329
|
+
switch (mask) {
|
|
330
|
+
case 0:
|
|
331
|
+
invert = (x + y) % 2 == 0;
|
|
332
|
+
break;
|
|
333
|
+
|
|
334
|
+
case 1:
|
|
335
|
+
invert = y % 2 == 0;
|
|
336
|
+
break;
|
|
337
|
+
|
|
338
|
+
case 2:
|
|
339
|
+
invert = x % 3 == 0;
|
|
340
|
+
break;
|
|
341
|
+
|
|
342
|
+
case 3:
|
|
343
|
+
invert = (x + y) % 3 == 0;
|
|
344
|
+
break;
|
|
345
|
+
|
|
346
|
+
case 4:
|
|
347
|
+
invert = (Math.floor(x / 3) + Math.floor(y / 2)) % 2 == 0;
|
|
348
|
+
break;
|
|
349
|
+
|
|
350
|
+
case 5:
|
|
351
|
+
invert = x * y % 2 + x * y % 3 == 0;
|
|
352
|
+
break;
|
|
353
|
+
|
|
354
|
+
case 6:
|
|
355
|
+
invert = (x * y % 2 + x * y % 3) % 2 == 0;
|
|
356
|
+
break;
|
|
357
|
+
|
|
358
|
+
case 7:
|
|
359
|
+
invert = ((x + y) % 2 + x * y % 3) % 2 == 0;
|
|
360
|
+
break;
|
|
361
|
+
|
|
362
|
+
default:
|
|
363
|
+
throw new Error('Unreachable');
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
if (!this.isFunction[y][x] && invert) this.modules[y][x] = !this.modules[y][x];
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
} // Calculates and returns the penalty score based on state of this QR Code's current modules.
|
|
370
|
+
// This is used by the automatic mask choice algorithm to find the mask pattern that yields the lowest score.
|
|
371
|
+
|
|
372
|
+
}, {
|
|
373
|
+
key: "getPenaltyScore",
|
|
374
|
+
value: function getPenaltyScore() {
|
|
375
|
+
var result = 0; // Adjacent modules in row having same color, and finder-like patterns
|
|
376
|
+
|
|
377
|
+
for (var y = 0; y < this.size; y++) {
|
|
378
|
+
var runColor = false;
|
|
379
|
+
var runX = 0;
|
|
380
|
+
var runHistory = [0, 0, 0, 0, 0, 0, 0];
|
|
381
|
+
|
|
382
|
+
for (var x = 0; x < this.size; x++) {
|
|
383
|
+
if (this.modules[y][x] == runColor) {
|
|
384
|
+
runX++;
|
|
385
|
+
if (runX == 5) result += QrCode.PENALTY_N1;else if (runX > 5) result++;
|
|
386
|
+
} else {
|
|
387
|
+
this.finderPenaltyAddHistory(runX, runHistory);
|
|
388
|
+
if (!runColor) result += this.finderPenaltyCountPatterns(runHistory) * QrCode.PENALTY_N3;
|
|
389
|
+
runColor = this.modules[y][x];
|
|
390
|
+
runX = 1;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
result += this.finderPenaltyTerminateAndCount(runColor, runX, runHistory) * QrCode.PENALTY_N3;
|
|
395
|
+
} // Adjacent modules in column having same color, and finder-like patterns
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
for (var _x = 0; _x < this.size; _x++) {
|
|
399
|
+
var _runColor = false;
|
|
400
|
+
var runY = 0;
|
|
401
|
+
var _runHistory = [0, 0, 0, 0, 0, 0, 0];
|
|
402
|
+
|
|
403
|
+
for (var _y = 0; _y < this.size; _y++) {
|
|
404
|
+
if (this.modules[_y][_x] == _runColor) {
|
|
405
|
+
runY++;
|
|
406
|
+
if (runY == 5) result += QrCode.PENALTY_N1;else if (runY > 5) result++;
|
|
407
|
+
} else {
|
|
408
|
+
this.finderPenaltyAddHistory(runY, _runHistory);
|
|
409
|
+
if (!_runColor) result += this.finderPenaltyCountPatterns(_runHistory) * QrCode.PENALTY_N3;
|
|
410
|
+
_runColor = this.modules[_y][_x];
|
|
411
|
+
runY = 1;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
result += this.finderPenaltyTerminateAndCount(_runColor, runY, _runHistory) * QrCode.PENALTY_N3;
|
|
416
|
+
} // 2*2 blocks of modules having same color
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
for (var _y2 = 0; _y2 < this.size - 1; _y2++) {
|
|
420
|
+
for (var _x2 = 0; _x2 < this.size - 1; _x2++) {
|
|
421
|
+
var color = this.modules[_y2][_x2];
|
|
422
|
+
if (color == this.modules[_y2][_x2 + 1] && color == this.modules[_y2 + 1][_x2] && color == this.modules[_y2 + 1][_x2 + 1]) result += QrCode.PENALTY_N2;
|
|
423
|
+
}
|
|
424
|
+
} // Balance of dark and light modules
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
var dark = 0;
|
|
428
|
+
|
|
429
|
+
var _iterator = _createForOfIteratorHelper(this.modules),
|
|
430
|
+
_step;
|
|
431
|
+
|
|
432
|
+
try {
|
|
433
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
434
|
+
var row = _step.value;
|
|
435
|
+
dark = row.reduce(function (sum, color) {
|
|
436
|
+
return sum + (color ? 1 : 0);
|
|
437
|
+
}, dark);
|
|
438
|
+
}
|
|
439
|
+
} catch (err) {
|
|
440
|
+
_iterator.e(err);
|
|
441
|
+
} finally {
|
|
442
|
+
_iterator.f();
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
var total = this.size * this.size; // Note that size is odd, so dark/total != 1/2
|
|
446
|
+
// Compute the smallest integer k >= 0 such that (45-5k)% <= dark/total <= (55+5k)%
|
|
447
|
+
|
|
448
|
+
var k = Math.ceil(Math.abs(dark * 20 - total * 10) / total) - 1;
|
|
449
|
+
assert(0 <= k && k <= 9);
|
|
450
|
+
result += k * QrCode.PENALTY_N4;
|
|
451
|
+
assert(0 <= result && result <= 2568888); // Non-tight upper bound based on default values of PENALTY_N1, ..., N4
|
|
452
|
+
|
|
453
|
+
return result;
|
|
454
|
+
}
|
|
455
|
+
/*-- Private helper functions --*/
|
|
456
|
+
// Returns an ascending list of positions of alignment patterns for this version number.
|
|
457
|
+
// Each position is in the range [0,177), and are used on both the x and y axes.
|
|
458
|
+
// This could be implemented as lookup table of 40 variable-length lists of integers.
|
|
459
|
+
|
|
460
|
+
}, {
|
|
461
|
+
key: "getAlignmentPatternPositions",
|
|
462
|
+
value: function getAlignmentPatternPositions() {
|
|
463
|
+
if (this.version == 1) return [];else {
|
|
464
|
+
var numAlign = Math.floor(this.version / 7) + 2;
|
|
465
|
+
var step = this.version == 32 ? 26 : Math.ceil((this.version * 4 + 4) / (numAlign * 2 - 2)) * 2;
|
|
466
|
+
var result = [6];
|
|
467
|
+
|
|
468
|
+
for (var pos = this.size - 7; result.length < numAlign; pos -= step) {
|
|
469
|
+
result.splice(1, 0, pos);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
return result;
|
|
473
|
+
}
|
|
474
|
+
} // Returns the number of data bits that can be stored in a QR Code of the given version number, after
|
|
475
|
+
// all function modules are excluded. This includes remainder bits, so it might not be a multiple of 8.
|
|
476
|
+
// The result is in the range [208, 29648]. This could be implemented as a 40-entry lookup table.
|
|
477
|
+
|
|
478
|
+
}, {
|
|
479
|
+
key: "finderPenaltyCountPatterns",
|
|
480
|
+
value: // Can only be called immediately after a light run is added, and
|
|
481
|
+
// returns either 0, 1, or 2. A helper function for getPenaltyScore().
|
|
482
|
+
function finderPenaltyCountPatterns(runHistory) {
|
|
483
|
+
var n = runHistory[1];
|
|
484
|
+
assert(n <= this.size * 3);
|
|
485
|
+
var core = n > 0 && runHistory[2] == n && runHistory[3] == n * 3 && runHistory[4] == n && runHistory[5] == n;
|
|
486
|
+
return (core && runHistory[0] >= n * 4 && runHistory[6] >= n ? 1 : 0) + (core && runHistory[6] >= n * 4 && runHistory[0] >= n ? 1 : 0);
|
|
487
|
+
} // Must be called at the end of a line (row or column) of modules. A helper function for getPenaltyScore().
|
|
488
|
+
|
|
489
|
+
}, {
|
|
490
|
+
key: "finderPenaltyTerminateAndCount",
|
|
491
|
+
value: function finderPenaltyTerminateAndCount(currentRunColor, currentRunLength, runHistory) {
|
|
492
|
+
if (currentRunColor) {
|
|
493
|
+
// Terminate dark run
|
|
494
|
+
this.finderPenaltyAddHistory(currentRunLength, runHistory);
|
|
495
|
+
currentRunLength = 0;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
currentRunLength += this.size; // Add light border to final run
|
|
499
|
+
|
|
500
|
+
this.finderPenaltyAddHistory(currentRunLength, runHistory);
|
|
501
|
+
return this.finderPenaltyCountPatterns(runHistory);
|
|
502
|
+
} // Pushes the given value to the front and drops the last value. A helper function for getPenaltyScore().
|
|
503
|
+
|
|
504
|
+
}, {
|
|
505
|
+
key: "finderPenaltyAddHistory",
|
|
506
|
+
value: function finderPenaltyAddHistory(currentRunLength, runHistory) {
|
|
507
|
+
if (runHistory[0] == 0) currentRunLength += this.size; // Add light border to initial run
|
|
508
|
+
|
|
509
|
+
runHistory.pop();
|
|
510
|
+
runHistory.unshift(currentRunLength);
|
|
511
|
+
}
|
|
512
|
+
/*-- Constants and tables --*/
|
|
513
|
+
// The minimum version number supported in the QR Code Model 2 standard.
|
|
514
|
+
|
|
515
|
+
}], [{
|
|
516
|
+
key: "encodeText",
|
|
517
|
+
value:
|
|
518
|
+
/*-- Static factory functions (high level) --*/
|
|
519
|
+
// Returns a QR Code representing the given Unicode text string at the given error correction level.
|
|
520
|
+
// As a conservative upper bound, this function is guaranteed to succeed for strings that have 738 or fewer
|
|
521
|
+
// Unicode code points (not UTF-16 code units) if the low error correction level is used. The smallest possible
|
|
522
|
+
// QR Code version is automatically chosen for the output. The ECC level of the result may be higher than the
|
|
523
|
+
// ecl argument if it can be done without increasing the version.
|
|
524
|
+
function encodeText(text, ecl) {
|
|
525
|
+
var segs = qrcodegen.QrSegment.makeSegments(text);
|
|
526
|
+
return QrCode.encodeSegments(segs, ecl);
|
|
527
|
+
} // Returns a QR Code representing the given binary data at the given error correction level.
|
|
528
|
+
// This function always encodes using the binary segment mode, not any text mode. The maximum number of
|
|
529
|
+
// bytes allowed is 2953. The smallest possible QR Code version is automatically chosen for the output.
|
|
530
|
+
// The ECC level of the result may be higher than the ecl argument if it can be done without increasing the version.
|
|
531
|
+
|
|
532
|
+
}, {
|
|
533
|
+
key: "encodeBinary",
|
|
534
|
+
value: function encodeBinary(data, ecl) {
|
|
535
|
+
var seg = qrcodegen.QrSegment.makeBytes(data);
|
|
536
|
+
return QrCode.encodeSegments([seg], ecl);
|
|
537
|
+
}
|
|
538
|
+
/*-- Static factory functions (mid level) --*/
|
|
539
|
+
// Returns a QR Code representing the given segments with the given encoding parameters.
|
|
540
|
+
// The smallest possible QR Code version within the given range is automatically
|
|
541
|
+
// chosen for the output. Iff boostEcl is true, then the ECC level of the result
|
|
542
|
+
// may be higher than the ecl argument if it can be done without increasing the
|
|
543
|
+
// version. The mask number is either between 0 to 7 (inclusive) to force that
|
|
544
|
+
// mask, or -1 to automatically choose an appropriate mask (which may be slow).
|
|
545
|
+
// This function allows the user to create a custom sequence of segments that switches
|
|
546
|
+
// between modes (such as alphanumeric and byte) to encode text in less space.
|
|
547
|
+
// This is a mid-level API; the high-level API is encodeText() and encodeBinary().
|
|
548
|
+
|
|
549
|
+
}, {
|
|
550
|
+
key: "encodeSegments",
|
|
551
|
+
value: function encodeSegments(segs, ecl) {
|
|
552
|
+
var minVersion = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
|
|
553
|
+
var maxVersion = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 40;
|
|
554
|
+
var mask = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : -1;
|
|
555
|
+
var boostEcl = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : true;
|
|
556
|
+
if (!(QrCode.MIN_VERSION <= minVersion && minVersion <= maxVersion && maxVersion <= QrCode.MAX_VERSION) || mask < -1 || mask > 7) throw new RangeError('Invalid value'); // Find the minimal version number to use
|
|
557
|
+
|
|
558
|
+
var version;
|
|
559
|
+
var dataUsedBits;
|
|
560
|
+
|
|
561
|
+
for (version = minVersion;; version++) {
|
|
562
|
+
var _dataCapacityBits = QrCode.getNumDataCodewords(version, ecl) * 8; // Number of data bits available
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
var usedBits = QrSegment.getTotalBits(segs, version);
|
|
566
|
+
|
|
567
|
+
if (usedBits <= _dataCapacityBits) {
|
|
568
|
+
dataUsedBits = usedBits;
|
|
569
|
+
break; // This version number is found to be suitable
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
if (version >= maxVersion) // All versions in the range could not fit the given data
|
|
573
|
+
throw new RangeError('Data too long');
|
|
574
|
+
} // Increase the error correction level while the data still fits in the current version number
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
for (var _i10 = 0, _arr = [QrCode.Ecc.MEDIUM, QrCode.Ecc.QUARTILE, QrCode.Ecc.HIGH]; _i10 < _arr.length; _i10++) {
|
|
578
|
+
var newEcl = _arr[_i10];
|
|
579
|
+
// From low to high
|
|
580
|
+
if (boostEcl && dataUsedBits <= QrCode.getNumDataCodewords(version, newEcl) * 8) ecl = newEcl;
|
|
581
|
+
} // Concatenate all segments to create the data bit string
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
var bb = [];
|
|
585
|
+
|
|
586
|
+
var _iterator2 = _createForOfIteratorHelper(segs),
|
|
587
|
+
_step2;
|
|
588
|
+
|
|
589
|
+
try {
|
|
590
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
591
|
+
var seg = _step2.value;
|
|
592
|
+
appendBits(seg.mode.modeBits, 4, bb);
|
|
593
|
+
appendBits(seg.numChars, seg.mode.numCharCountBits(version), bb);
|
|
594
|
+
|
|
595
|
+
var _iterator3 = _createForOfIteratorHelper(seg.getData()),
|
|
596
|
+
_step3;
|
|
597
|
+
|
|
598
|
+
try {
|
|
599
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
600
|
+
var b = _step3.value;
|
|
601
|
+
bb.push(b);
|
|
602
|
+
}
|
|
603
|
+
} catch (err) {
|
|
604
|
+
_iterator3.e(err);
|
|
605
|
+
} finally {
|
|
606
|
+
_iterator3.f();
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
} catch (err) {
|
|
610
|
+
_iterator2.e(err);
|
|
611
|
+
} finally {
|
|
612
|
+
_iterator2.f();
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
assert(bb.length == dataUsedBits); // Add terminator and pad up to a byte if applicable
|
|
616
|
+
|
|
617
|
+
var dataCapacityBits = QrCode.getNumDataCodewords(version, ecl) * 8;
|
|
618
|
+
assert(bb.length <= dataCapacityBits);
|
|
619
|
+
appendBits(0, Math.min(4, dataCapacityBits - bb.length), bb);
|
|
620
|
+
appendBits(0, (8 - bb.length % 8) % 8, bb);
|
|
621
|
+
assert(bb.length % 8 == 0); // Pad with alternating bytes until data capacity is reached
|
|
622
|
+
|
|
623
|
+
for (var padByte = 0xec; bb.length < dataCapacityBits; padByte ^= 0xec ^ 0x11) {
|
|
624
|
+
appendBits(padByte, 8, bb);
|
|
625
|
+
} // Pack bits into bytes in big endian
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
var dataCodewords = [];
|
|
629
|
+
|
|
630
|
+
while (dataCodewords.length * 8 < bb.length) {
|
|
631
|
+
dataCodewords.push(0);
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
bb.forEach(function (b, i) {
|
|
635
|
+
return dataCodewords[i >>> 3] |= b << 7 - (i & 7);
|
|
636
|
+
}); // Create the QR Code object
|
|
637
|
+
|
|
638
|
+
return new QrCode(version, ecl, dataCodewords, mask);
|
|
639
|
+
}
|
|
640
|
+
/*-- Fields --*/
|
|
641
|
+
// The version number of this QR Code, which is between 1 and 40 (inclusive).
|
|
642
|
+
// This determines the size of this barcode.
|
|
643
|
+
|
|
644
|
+
}, {
|
|
645
|
+
key: "getNumRawDataModules",
|
|
646
|
+
value: function getNumRawDataModules(ver) {
|
|
647
|
+
if (ver < QrCode.MIN_VERSION || ver > QrCode.MAX_VERSION) throw new RangeError('Version number out of range');
|
|
648
|
+
var result = (16 * ver + 128) * ver + 64;
|
|
649
|
+
|
|
650
|
+
if (ver >= 2) {
|
|
651
|
+
var numAlign = Math.floor(ver / 7) + 2;
|
|
652
|
+
result -= (25 * numAlign - 10) * numAlign - 55;
|
|
653
|
+
if (ver >= 7) result -= 36;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
assert(208 <= result && result <= 29648);
|
|
657
|
+
return result;
|
|
658
|
+
} // Returns the number of 8-bit data (i.e. not error correction) codewords contained in any
|
|
659
|
+
// QR Code of the given version number and error correction level, with remainder bits discarded.
|
|
660
|
+
// This stateless pure function could be implemented as a (40*4)-cell lookup table.
|
|
661
|
+
|
|
662
|
+
}, {
|
|
663
|
+
key: "getNumDataCodewords",
|
|
664
|
+
value: function getNumDataCodewords(ver, ecl) {
|
|
665
|
+
return Math.floor(QrCode.getNumRawDataModules(ver) / 8) - QrCode.ECC_CODEWORDS_PER_BLOCK[ecl.ordinal][ver] * QrCode.NUM_ERROR_CORRECTION_BLOCKS[ecl.ordinal][ver];
|
|
666
|
+
} // Returns a Reed-Solomon ECC generator polynomial for the given degree. This could be
|
|
667
|
+
// implemented as a lookup table over all possible parameter values, instead of as an algorithm.
|
|
668
|
+
|
|
669
|
+
}, {
|
|
670
|
+
key: "reedSolomonComputeDivisor",
|
|
671
|
+
value: function reedSolomonComputeDivisor(degree) {
|
|
672
|
+
if (degree < 1 || degree > 255) throw new RangeError('Degree out of range'); // Polynomial coefficients are stored from highest to lowest power, excluding the leading term which is always 1.
|
|
673
|
+
// For example the polynomial x^3 + 255x^2 + 8x + 93 is stored as the uint8 array [255, 8, 93].
|
|
674
|
+
|
|
675
|
+
var result = [];
|
|
676
|
+
|
|
677
|
+
for (var i = 0; i < degree - 1; i++) {
|
|
678
|
+
result.push(0);
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
result.push(1); // Start off with the monomial x^0
|
|
682
|
+
// Compute the product polynomial (x - r^0) * (x - r^1) * (x - r^2) * ... * (x - r^{degree-1}),
|
|
683
|
+
// and drop the highest monomial term which is always 1x^degree.
|
|
684
|
+
// Note that r = 0x02, which is a generator element of this field GF(2^8/0x11D).
|
|
685
|
+
|
|
686
|
+
var root = 1;
|
|
687
|
+
|
|
688
|
+
for (var _i11 = 0; _i11 < degree; _i11++) {
|
|
689
|
+
// Multiply the current product by (x - r^i)
|
|
690
|
+
for (var j = 0; j < result.length; j++) {
|
|
691
|
+
result[j] = QrCode.reedSolomonMultiply(result[j], root);
|
|
692
|
+
if (j + 1 < result.length) result[j] ^= result[j + 1];
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
root = QrCode.reedSolomonMultiply(root, 0x02);
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
return result;
|
|
699
|
+
} // Returns the Reed-Solomon error correction codeword for the given data and divisor polynomials.
|
|
700
|
+
|
|
701
|
+
}, {
|
|
702
|
+
key: "reedSolomonComputeRemainder",
|
|
703
|
+
value: function reedSolomonComputeRemainder(data, divisor) {
|
|
704
|
+
var result = divisor.map(function (_) {
|
|
705
|
+
return 0;
|
|
706
|
+
});
|
|
707
|
+
|
|
708
|
+
var _iterator4 = _createForOfIteratorHelper(data),
|
|
709
|
+
_step4;
|
|
710
|
+
|
|
711
|
+
try {
|
|
712
|
+
var _loop2 = function _loop2() {
|
|
713
|
+
var b = _step4.value;
|
|
714
|
+
// Polynomial division
|
|
715
|
+
var factor = b ^ result.shift();
|
|
716
|
+
result.push(0);
|
|
717
|
+
divisor.forEach(function (coef, i) {
|
|
718
|
+
return result[i] ^= QrCode.reedSolomonMultiply(coef, factor);
|
|
719
|
+
});
|
|
720
|
+
};
|
|
721
|
+
|
|
722
|
+
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
723
|
+
_loop2();
|
|
724
|
+
}
|
|
725
|
+
} catch (err) {
|
|
726
|
+
_iterator4.e(err);
|
|
727
|
+
} finally {
|
|
728
|
+
_iterator4.f();
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
return result;
|
|
732
|
+
} // Returns the product of the two given field elements modulo GF(2^8/0x11D). The arguments and result
|
|
733
|
+
// are unsigned 8-bit integers. This could be implemented as a lookup table of 256*256 entries of uint8.
|
|
734
|
+
|
|
735
|
+
}, {
|
|
736
|
+
key: "reedSolomonMultiply",
|
|
737
|
+
value: function reedSolomonMultiply(x, y) {
|
|
738
|
+
if (x >>> 8 != 0 || y >>> 8 != 0) throw new RangeError('Byte out of range'); // Russian peasant multiplication
|
|
739
|
+
|
|
740
|
+
var z = 0;
|
|
741
|
+
|
|
742
|
+
for (var i = 7; i >= 0; i--) {
|
|
743
|
+
z = z << 1 ^ (z >>> 7) * 0x11d;
|
|
744
|
+
z ^= (y >>> i & 1) * x;
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
assert(z >>> 8 == 0);
|
|
748
|
+
return z;
|
|
749
|
+
}
|
|
750
|
+
}]);
|
|
751
|
+
|
|
752
|
+
return QrCode;
|
|
753
|
+
}();
|
|
754
|
+
|
|
755
|
+
QrCode.MIN_VERSION = 1;
|
|
756
|
+
QrCode.MAX_VERSION = 40;
|
|
757
|
+
QrCode.PENALTY_N1 = 3;
|
|
758
|
+
QrCode.PENALTY_N2 = 3;
|
|
759
|
+
QrCode.PENALTY_N3 = 40;
|
|
760
|
+
QrCode.PENALTY_N4 = 10;
|
|
761
|
+
QrCode.ECC_CODEWORDS_PER_BLOCK = [// Version: (note that index 0 is for padding, and is set to an illegal value)
|
|
762
|
+
//0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40 Error correction level
|
|
763
|
+
[-1, 7, 10, 15, 20, 26, 18, 20, 24, 30, 18, 20, 24, 26, 30, 22, 24, 28, 30, 28, 28, 28, 28, 30, 30, 26, 28, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30], // Low
|
|
764
|
+
[-1, 10, 16, 26, 18, 24, 16, 18, 22, 22, 26, 30, 22, 22, 24, 24, 28, 28, 26, 26, 26, 26, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28], // Medium
|
|
765
|
+
[-1, 13, 22, 18, 26, 18, 24, 18, 22, 20, 24, 28, 26, 24, 20, 30, 24, 28, 28, 26, 30, 28, 30, 30, 30, 30, 28, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30], // Quartile
|
|
766
|
+
[-1, 17, 28, 22, 16, 22, 28, 26, 26, 24, 28, 24, 28, 22, 24, 24, 30, 28, 28, 26, 28, 30, 24, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30] // High
|
|
767
|
+
];
|
|
768
|
+
QrCode.NUM_ERROR_CORRECTION_BLOCKS = [// Version: (note that index 0 is for padding, and is set to an illegal value)
|
|
769
|
+
//0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40 Error correction level
|
|
770
|
+
[-1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 4, 4, 4, 4, 4, 6, 6, 6, 6, 7, 8, 8, 9, 9, 10, 12, 12, 12, 13, 14, 15, 16, 17, 18, 19, 19, 20, 21, 22, 24, 25], // Low
|
|
771
|
+
[-1, 1, 1, 1, 2, 2, 4, 4, 4, 5, 5, 5, 8, 9, 9, 10, 10, 11, 13, 14, 16, 17, 17, 18, 20, 21, 23, 25, 26, 28, 29, 31, 33, 35, 37, 38, 40, 43, 45, 47, 49], // Medium
|
|
772
|
+
[-1, 1, 1, 2, 2, 4, 4, 6, 6, 8, 8, 8, 10, 12, 16, 12, 17, 16, 18, 21, 20, 23, 23, 25, 27, 29, 34, 34, 35, 38, 40, 43, 45, 48, 51, 53, 56, 59, 62, 65, 68], // Quartile
|
|
773
|
+
[-1, 1, 1, 2, 4, 4, 4, 5, 6, 8, 8, 11, 11, 16, 16, 18, 16, 19, 21, 25, 25, 25, 34, 30, 32, 35, 37, 40, 42, 45, 48, 51, 54, 57, 60, 63, 66, 70, 74, 77, 81] // High
|
|
774
|
+
];
|
|
775
|
+
_qrcodegen.QrCode = QrCode;
|
|
776
|
+
|
|
777
|
+
// Appends the given number of low-order bits of the given value
|
|
778
|
+
// to the given buffer. Requires 0 <= len <= 31 and 0 <= val < 2^len.
|
|
779
|
+
function appendBits(val, len, bb) {
|
|
780
|
+
if (len < 0 || len > 31 || val >>> len != 0) throw new RangeError('Value out of range');
|
|
781
|
+
|
|
782
|
+
for (var i = len - 1; i >= 0; i-- // Append bit by bit
|
|
783
|
+
) {
|
|
784
|
+
bb.push(val >>> i & 1);
|
|
785
|
+
}
|
|
786
|
+
} // Returns true iff the i'th bit of x is set to 1.
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+
function getBit(x, i) {
|
|
790
|
+
return (x >>> i & 1) != 0;
|
|
791
|
+
} // Throws an exception if the given condition is false.
|
|
792
|
+
|
|
793
|
+
|
|
794
|
+
function assert(cond) {
|
|
795
|
+
if (!cond) throw new Error('Assertion error');
|
|
796
|
+
}
|
|
797
|
+
/*---- Data segment class ----*/
|
|
798
|
+
|
|
799
|
+
/*
|
|
800
|
+
* A segment of character/binary/control data in a QR Code symbol.
|
|
801
|
+
* Instances of this class are immutable.
|
|
802
|
+
* The mid-level way to create a segment is to take the payload data
|
|
803
|
+
* and call a static factory function such as QrSegment.makeNumeric().
|
|
804
|
+
* The low-level way to create a segment is to custom-make the bit buffer
|
|
805
|
+
* and call the QrSegment() constructor with appropriate values.
|
|
806
|
+
* This segment class imposes no length restrictions, but QR Codes have restrictions.
|
|
807
|
+
* Even in the most favorable conditions, a QR Code can only hold 7089 characters of data.
|
|
808
|
+
* Any segment longer than this is meaningless for the purpose of generating QR Codes.
|
|
809
|
+
*/
|
|
810
|
+
|
|
811
|
+
|
|
812
|
+
var QrSegment = /*#__PURE__*/function () {
|
|
813
|
+
// Creates a new QR Code segment with the given attributes and data.
|
|
814
|
+
// The character count (numChars) must agree with the mode and the bit buffer length,
|
|
815
|
+
// but the constraint isn't checked. The given bit buffer is cloned and stored.
|
|
816
|
+
function QrSegment( // The mode indicator of this segment.
|
|
817
|
+
mode, // The length of this segment's unencoded data. Measured in characters for
|
|
818
|
+
// numeric/alphanumeric/kanji mode, bytes for byte mode, and 0 for ECI mode.
|
|
819
|
+
// Always zero or positive. Not the same as the data's bit length.
|
|
820
|
+
numChars, // The data bits of this segment. Accessed through getData().
|
|
821
|
+
bitData) {
|
|
822
|
+
_classCallCheck(this, QrSegment);
|
|
823
|
+
|
|
824
|
+
this.mode = void 0;
|
|
825
|
+
this.numChars = void 0;
|
|
826
|
+
this.bitData = void 0;
|
|
827
|
+
this.mode = mode;
|
|
828
|
+
this.numChars = numChars;
|
|
829
|
+
this.bitData = bitData;
|
|
830
|
+
if (numChars < 0) throw new RangeError('Invalid argument');
|
|
831
|
+
this.bitData = bitData.slice(); // Make defensive copy
|
|
832
|
+
}
|
|
833
|
+
/*-- Methods --*/
|
|
834
|
+
// Returns a new copy of the data bits of this segment.
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
_createClass(QrSegment, [{
|
|
838
|
+
key: "getData",
|
|
839
|
+
value: function getData() {
|
|
840
|
+
return this.bitData.slice(); // Make defensive copy
|
|
841
|
+
} // (Package-private) Calculates and returns the number of bits needed to encode the given segments at
|
|
842
|
+
// the given version. The result is infinity if a segment has too many characters to fit its length field.
|
|
843
|
+
|
|
844
|
+
}], [{
|
|
845
|
+
key: "makeBytes",
|
|
846
|
+
value:
|
|
847
|
+
/*-- Static factory functions (mid level) --*/
|
|
848
|
+
// Returns a segment representing the given binary data encoded in
|
|
849
|
+
// byte mode. All input byte arrays are acceptable. Any text string
|
|
850
|
+
// can be converted to UTF-8 bytes and encoded as a byte mode segment.
|
|
851
|
+
function makeBytes(data) {
|
|
852
|
+
var bb = [];
|
|
853
|
+
|
|
854
|
+
var _iterator5 = _createForOfIteratorHelper(data),
|
|
855
|
+
_step5;
|
|
856
|
+
|
|
857
|
+
try {
|
|
858
|
+
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
859
|
+
var b = _step5.value;
|
|
860
|
+
appendBits(b, 8, bb);
|
|
861
|
+
}
|
|
862
|
+
} catch (err) {
|
|
863
|
+
_iterator5.e(err);
|
|
864
|
+
} finally {
|
|
865
|
+
_iterator5.f();
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
return new QrSegment(QrSegment.Mode.BYTE, data.length, bb);
|
|
869
|
+
} // Returns a segment representing the given string of decimal digits encoded in numeric mode.
|
|
870
|
+
|
|
871
|
+
}, {
|
|
872
|
+
key: "makeNumeric",
|
|
873
|
+
value: function makeNumeric(digits) {
|
|
874
|
+
if (!QrSegment.isNumeric(digits)) throw new RangeError('String contains non-numeric characters');
|
|
875
|
+
var bb = [];
|
|
876
|
+
|
|
877
|
+
for (var i = 0; i < digits.length;) {
|
|
878
|
+
// Consume up to 3 digits per iteration
|
|
879
|
+
var n = Math.min(digits.length - i, 3);
|
|
880
|
+
appendBits(parseInt(digits.substr(i, n), 10), n * 3 + 1, bb);
|
|
881
|
+
i += n;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
return new QrSegment(QrSegment.Mode.NUMERIC, digits.length, bb);
|
|
885
|
+
} // Returns a segment representing the given text string encoded in alphanumeric mode.
|
|
886
|
+
// The characters allowed are: 0 to 9, A to Z (uppercase only), space,
|
|
887
|
+
// dollar, percent, asterisk, plus, hyphen, period, slash, colon.
|
|
888
|
+
|
|
889
|
+
}, {
|
|
890
|
+
key: "makeAlphanumeric",
|
|
891
|
+
value: function makeAlphanumeric(text) {
|
|
892
|
+
if (!QrSegment.isAlphanumeric(text)) throw new RangeError('String contains unencodable characters in alphanumeric mode');
|
|
893
|
+
var bb = [];
|
|
894
|
+
var i;
|
|
895
|
+
|
|
896
|
+
for (i = 0; i + 2 <= text.length; i += 2) {
|
|
897
|
+
// Process groups of 2
|
|
898
|
+
var temp = QrSegment.ALPHANUMERIC_CHARSET.indexOf(text.charAt(i)) * 45;
|
|
899
|
+
temp += QrSegment.ALPHANUMERIC_CHARSET.indexOf(text.charAt(i + 1));
|
|
900
|
+
appendBits(temp, 11, bb);
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
if (i < text.length) // 1 character remaining
|
|
904
|
+
appendBits(QrSegment.ALPHANUMERIC_CHARSET.indexOf(text.charAt(i)), 6, bb);
|
|
905
|
+
return new QrSegment(QrSegment.Mode.ALPHANUMERIC, text.length, bb);
|
|
906
|
+
} // Returns a new mutable list of zero or more segments to represent the given Unicode text string.
|
|
907
|
+
// The result may use various segment modes and switch modes to optimize the length of the bit stream.
|
|
908
|
+
|
|
909
|
+
}, {
|
|
910
|
+
key: "makeSegments",
|
|
911
|
+
value: function makeSegments(text) {
|
|
912
|
+
// Select the most efficient segment encoding automatically
|
|
913
|
+
if (text == '') return [];else if (QrSegment.isNumeric(text)) return [QrSegment.makeNumeric(text)];else if (QrSegment.isAlphanumeric(text)) return [QrSegment.makeAlphanumeric(text)];else return [QrSegment.makeBytes(QrSegment.toUtf8ByteArray(text))];
|
|
914
|
+
} // Returns a segment representing an Extended Channel Interpretation
|
|
915
|
+
// (ECI) designator with the given assignment value.
|
|
916
|
+
|
|
917
|
+
}, {
|
|
918
|
+
key: "makeEci",
|
|
919
|
+
value: function makeEci(assignVal) {
|
|
920
|
+
var bb = [];
|
|
921
|
+
if (assignVal < 0) throw new RangeError('ECI assignment value out of range');else if (assignVal < 1 << 7) appendBits(assignVal, 8, bb);else if (assignVal < 1 << 14) {
|
|
922
|
+
appendBits(2, 2, bb);
|
|
923
|
+
appendBits(assignVal, 14, bb);
|
|
924
|
+
} else if (assignVal < 1000000) {
|
|
925
|
+
appendBits(6, 3, bb);
|
|
926
|
+
appendBits(assignVal, 21, bb);
|
|
927
|
+
} else throw new RangeError('ECI assignment value out of range');
|
|
928
|
+
return new QrSegment(QrSegment.Mode.ECI, 0, bb);
|
|
929
|
+
} // Tests whether the given string can be encoded as a segment in numeric mode.
|
|
930
|
+
// A string is encodable iff each character is in the range 0 to 9.
|
|
931
|
+
|
|
932
|
+
}, {
|
|
933
|
+
key: "isNumeric",
|
|
934
|
+
value: function isNumeric(text) {
|
|
935
|
+
return QrSegment.NUMERIC_REGEX.test(text);
|
|
936
|
+
} // Tests whether the given string can be encoded as a segment in alphanumeric mode.
|
|
937
|
+
// A string is encodable iff each character is in the following set: 0 to 9, A to Z
|
|
938
|
+
// (uppercase only), space, dollar, percent, asterisk, plus, hyphen, period, slash, colon.
|
|
939
|
+
|
|
940
|
+
}, {
|
|
941
|
+
key: "isAlphanumeric",
|
|
942
|
+
value: function isAlphanumeric(text) {
|
|
943
|
+
return QrSegment.ALPHANUMERIC_REGEX.test(text);
|
|
944
|
+
}
|
|
945
|
+
/*-- Constructor (low level) and fields --*/
|
|
946
|
+
|
|
947
|
+
}, {
|
|
948
|
+
key: "getTotalBits",
|
|
949
|
+
value: function getTotalBits(segs, version) {
|
|
950
|
+
var result = 0;
|
|
951
|
+
|
|
952
|
+
var _iterator6 = _createForOfIteratorHelper(segs),
|
|
953
|
+
_step6;
|
|
954
|
+
|
|
955
|
+
try {
|
|
956
|
+
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
957
|
+
var seg = _step6.value;
|
|
958
|
+
var ccbits = seg.mode.numCharCountBits(version);
|
|
959
|
+
if (seg.numChars >= 1 << ccbits) return Infinity; // The segment's length doesn't fit the field's bit width
|
|
960
|
+
|
|
961
|
+
result += 4 + ccbits + seg.bitData.length;
|
|
962
|
+
}
|
|
963
|
+
} catch (err) {
|
|
964
|
+
_iterator6.e(err);
|
|
965
|
+
} finally {
|
|
966
|
+
_iterator6.f();
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
return result;
|
|
970
|
+
} // Returns a new array of bytes representing the given string encoded in UTF-8.
|
|
971
|
+
|
|
972
|
+
}, {
|
|
973
|
+
key: "toUtf8ByteArray",
|
|
974
|
+
value: function toUtf8ByteArray(str) {
|
|
975
|
+
str = encodeURI(str);
|
|
976
|
+
var result = [];
|
|
977
|
+
|
|
978
|
+
for (var i = 0; i < str.length; i++) {
|
|
979
|
+
if (str.charAt(i) != '%') result.push(str.charCodeAt(i));else {
|
|
980
|
+
result.push(parseInt(str.substr(i + 1, 2), 16));
|
|
981
|
+
i += 2;
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
return result;
|
|
986
|
+
}
|
|
987
|
+
/*-- Constants --*/
|
|
988
|
+
// Describes precisely all strings that are encodable in numeric mode.
|
|
989
|
+
|
|
990
|
+
}]);
|
|
991
|
+
|
|
992
|
+
return QrSegment;
|
|
993
|
+
}();
|
|
994
|
+
|
|
995
|
+
QrSegment.NUMERIC_REGEX = /^[0-9]*$/;
|
|
996
|
+
QrSegment.ALPHANUMERIC_REGEX = /^[A-Z0-9 $%*+.\/:-]*$/;
|
|
997
|
+
QrSegment.ALPHANUMERIC_CHARSET = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:';
|
|
998
|
+
_qrcodegen.QrSegment = QrSegment;
|
|
999
|
+
})(qrcodegen || (qrcodegen = {}));
|
|
1000
|
+
/*---- Public helper enumeration ----*/
|
|
1001
|
+
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
1002
|
+
|
|
1003
|
+
|
|
1004
|
+
(function (_qrcodegen2) {
|
|
1005
|
+
var QrCode;
|
|
1006
|
+
|
|
1007
|
+
(function (_QrCode) {
|
|
1008
|
+
var Ecc = /*#__PURE__*/_createClass(
|
|
1009
|
+
/*-- Constants --*/
|
|
1010
|
+
// The QR Code can tolerate about 7% erroneous codewords
|
|
1011
|
+
// The QR Code can tolerate about 15% erroneous codewords
|
|
1012
|
+
// The QR Code can tolerate about 25% erroneous codewords
|
|
1013
|
+
// The QR Code can tolerate about 30% erroneous codewords
|
|
1014
|
+
|
|
1015
|
+
/*-- Constructor and fields --*/
|
|
1016
|
+
// In the range 0 to 3 (unsigned 2-bit integer).
|
|
1017
|
+
// (Package-private) In the range 0 to 3 (unsigned 2-bit integer).
|
|
1018
|
+
function Ecc( // In the range 0 to 3 (unsigned 2-bit integer).
|
|
1019
|
+
ordinal, // (Package-private) In the range 0 to 3 (unsigned 2-bit integer).
|
|
1020
|
+
formatBits) {
|
|
1021
|
+
_classCallCheck(this, Ecc);
|
|
1022
|
+
|
|
1023
|
+
this.ordinal = void 0;
|
|
1024
|
+
this.formatBits = void 0;
|
|
1025
|
+
this.ordinal = ordinal;
|
|
1026
|
+
this.formatBits = formatBits;
|
|
1027
|
+
});
|
|
1028
|
+
|
|
1029
|
+
Ecc.LOW = new Ecc(0, 1);
|
|
1030
|
+
Ecc.MEDIUM = new Ecc(1, 0);
|
|
1031
|
+
Ecc.QUARTILE = new Ecc(2, 3);
|
|
1032
|
+
Ecc.HIGH = new Ecc(3, 2);
|
|
1033
|
+
_QrCode.Ecc = Ecc;
|
|
1034
|
+
})(QrCode || (QrCode = _qrcodegen2.QrCode || (_qrcodegen2.QrCode = {})));
|
|
1035
|
+
})(qrcodegen || (qrcodegen = {}));
|
|
1036
|
+
/*---- Public helper enumeration ----*/
|
|
1037
|
+
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
1038
|
+
|
|
1039
|
+
|
|
1040
|
+
(function (_qrcodegen3) {
|
|
1041
|
+
var QrSegment;
|
|
1042
|
+
|
|
1043
|
+
(function (_QrSegment) {
|
|
1044
|
+
var Mode = /*#__PURE__*/function () {
|
|
1045
|
+
/*-- Constants --*/
|
|
1046
|
+
|
|
1047
|
+
/*-- Constructor and fields --*/
|
|
1048
|
+
// The mode indicator bits, which is a uint4 value (range 0 to 15).
|
|
1049
|
+
// Number of character count bits for three different version ranges.
|
|
1050
|
+
function Mode( // The mode indicator bits, which is a uint4 value (range 0 to 15).
|
|
1051
|
+
modeBits, // Number of character count bits for three different version ranges.
|
|
1052
|
+
numBitsCharCount) {
|
|
1053
|
+
_classCallCheck(this, Mode);
|
|
1054
|
+
|
|
1055
|
+
this.modeBits = void 0;
|
|
1056
|
+
this.numBitsCharCount = void 0;
|
|
1057
|
+
this.modeBits = modeBits;
|
|
1058
|
+
this.numBitsCharCount = numBitsCharCount;
|
|
1059
|
+
}
|
|
1060
|
+
/*-- Method --*/
|
|
1061
|
+
// (Package-private) Returns the bit width of the character count field for a segment in
|
|
1062
|
+
// this mode in a QR Code at the given version number. The result is in the range [0, 16].
|
|
1063
|
+
|
|
1064
|
+
|
|
1065
|
+
_createClass(Mode, [{
|
|
1066
|
+
key: "numCharCountBits",
|
|
1067
|
+
value: function numCharCountBits(ver) {
|
|
1068
|
+
return this.numBitsCharCount[Math.floor((ver + 7) / 17)];
|
|
1069
|
+
}
|
|
1070
|
+
}]);
|
|
1071
|
+
|
|
1072
|
+
return Mode;
|
|
1073
|
+
}();
|
|
1074
|
+
|
|
1075
|
+
Mode.NUMERIC = new Mode(0x1, [10, 12, 14]);
|
|
1076
|
+
Mode.ALPHANUMERIC = new Mode(0x2, [9, 11, 13]);
|
|
1077
|
+
Mode.BYTE = new Mode(0x4, [8, 16, 16]);
|
|
1078
|
+
Mode.KANJI = new Mode(0x8, [8, 10, 12]);
|
|
1079
|
+
Mode.ECI = new Mode(0x7, [0, 0, 0]);
|
|
1080
|
+
_QrSegment.Mode = Mode;
|
|
1081
|
+
})(QrSegment || (QrSegment = _qrcodegen3.QrSegment || (_qrcodegen3.QrSegment = {})));
|
|
1082
|
+
})(qrcodegen || (qrcodegen = {})); // Modification to export for actual use
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
export default qrcodegen;
|