@digigov/ui 1.2.0-dcbd7ded → 2.0.0-462194bf
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/app/Footer/index.mdx +18 -5
- package/app/Header/index.mdx +7 -5
- package/app/Masthead/index.mdx +9 -4
- package/app/Modal/Modal.stories/index.js +2 -1
- package/app/Modal/Modal.stories.d.ts +1 -0
- package/app/Modal/__stories__/WithoutModalGaps/index.js +36 -0
- package/{form/AutoComplete/__stories__/WithInLine → app/Modal/__stories__/WithoutModalGaps}/package.json +1 -1
- package/app/Modal/__stories__/WithoutModalGaps.d.ts +3 -0
- package/app/Modal/auto.d.ts +2 -2
- package/app/Modal/index.d.ts +2 -2
- package/app/Modal/index.js +1 -1
- package/app/Modal/index.mdx +11 -4
- package/app/NotFound/index.mdx +2 -0
- package/app/Panel/index.mdx +9 -4
- package/app/PhaseBannerHeader/index.mdx +4 -4
- package/app/QrCodeViewer/index.mdx +4 -4
- package/app/Skeleton/Skeleton.stories/index.js +17 -0
- package/app/Skeleton/Skeleton.stories/package.json +6 -0
- package/app/Skeleton/Skeleton.stories.d.ts +18 -0
- package/app/Skeleton/__stories__/Button/index.js +9 -0
- package/app/Skeleton/__stories__/Button/package.json +6 -0
- package/app/Skeleton/__stories__/Button.d.ts +3 -0
- package/app/Skeleton/__stories__/Circular/index.js +11 -0
- package/app/Skeleton/__stories__/Circular/package.json +6 -0
- package/app/Skeleton/__stories__/Circular.d.ts +3 -0
- package/app/Skeleton/__stories__/Default/index.js +7 -0
- package/app/Skeleton/__stories__/Default/package.json +6 -0
- package/app/Skeleton/__stories__/Default.d.ts +3 -0
- package/app/Skeleton/__stories__/NoAnimation/index.js +9 -0
- package/app/Skeleton/__stories__/NoAnimation/package.json +6 -0
- package/app/Skeleton/__stories__/NoAnimation.d.ts +3 -0
- package/app/Skeleton/__stories__/Rectangular/index.js +10 -0
- package/app/Skeleton/__stories__/Rectangular/package.json +6 -0
- package/app/Skeleton/__stories__/Rectangular.d.ts +3 -0
- package/app/Skeleton/__stories__/SpecificWidthAndHeight/index.js +10 -0
- package/app/Skeleton/__stories__/SpecificWidthAndHeight/package.json +6 -0
- package/app/Skeleton/__stories__/SpecificWidthAndHeight.d.ts +3 -0
- package/app/Skeleton/__stories__/TextSizes/index.js +26 -0
- package/app/Skeleton/__stories__/TextSizes/package.json +6 -0
- package/app/Skeleton/__stories__/TextSizes.d.ts +3 -0
- package/app/Skeleton/__stories__/UnderTypography/index.js +10 -0
- package/app/Skeleton/__stories__/UnderTypography/package.json +6 -0
- package/app/Skeleton/__stories__/UnderTypography.d.ts +3 -0
- package/app/Skeleton/__stories__/WithChildren/index.js +8 -0
- package/app/Skeleton/__stories__/WithChildren/package.json +6 -0
- package/app/Skeleton/__stories__/WithChildren.d.ts +3 -0
- package/app/Skeleton/index.d.ts +3 -0
- package/app/Skeleton/index.js +3 -0
- package/app/Skeleton/package.json +6 -0
- package/app/ThemeOptions/index.d.ts +1 -1
- package/cjs/app/Footer/index.mdx +18 -5
- package/cjs/app/Header/index.mdx +7 -5
- package/cjs/app/Masthead/index.mdx +9 -4
- package/cjs/app/Modal/Modal.stories/index.js +12 -0
- package/cjs/app/Modal/__stories__/WithoutModalGaps/index.js +46 -0
- package/cjs/app/Modal/index.js +1 -1
- package/cjs/app/Modal/index.mdx +11 -4
- package/cjs/app/NotFound/index.mdx +2 -0
- package/cjs/app/Panel/index.mdx +9 -4
- package/cjs/app/PhaseBannerHeader/index.mdx +4 -4
- package/cjs/app/QrCodeViewer/index.mdx +4 -4
- package/cjs/app/Skeleton/Skeleton.stories/index.js +123 -0
- package/cjs/app/Skeleton/__stories__/Button/index.js +16 -0
- package/cjs/app/Skeleton/__stories__/Circular/index.js +18 -0
- package/cjs/app/Skeleton/__stories__/Default/index.js +14 -0
- package/cjs/app/Skeleton/__stories__/NoAnimation/index.js +16 -0
- package/cjs/app/Skeleton/__stories__/Rectangular/index.js +17 -0
- package/cjs/app/Skeleton/__stories__/SpecificWidthAndHeight/index.js +17 -0
- package/cjs/app/Skeleton/__stories__/TextSizes/index.js +33 -0
- package/cjs/app/Skeleton/__stories__/UnderTypography/index.js +17 -0
- package/cjs/app/Skeleton/__stories__/WithChildren/index.js +15 -0
- package/cjs/app/Skeleton/index.js +23 -0
- package/cjs/content/Accordion/__stories__/Auto/index.js +2 -3
- package/cjs/content/Accordion/hooks/index.js +0 -1
- package/cjs/content/Accordion/index.mdx +9 -5
- package/cjs/content/Blockquote/index.mdx +3 -5
- package/cjs/content/Card/index.mdx +3 -5
- package/cjs/content/Chip/index.mdx +4 -5
- package/cjs/content/Details/index.mdx +3 -5
- package/cjs/content/List/__stories__/Default/index.js +1 -2
- package/cjs/content/List/index.mdx +3 -5
- package/cjs/content/SafeHTML/index.js +5 -8
- package/cjs/content/StepNav/index.mdx +28 -5
- package/cjs/content/SummaryList/index.mdx +10 -5
- package/cjs/content/Table/index.js +2 -2
- package/cjs/content/Table/index.mdx +13 -14
- package/cjs/content/TaskList/index.mdx +9 -5
- package/cjs/content/Timeline/index.mdx +10 -5
- package/cjs/feedback/CopyToClipboard/index.mdx +3 -5
- package/cjs/feedback/ErrorSummary/index.mdx +3 -5
- package/cjs/feedback/NotificationBanner/index.mdx +14 -5
- package/cjs/feedback/PhaseBanner/index.mdx +8 -5
- package/cjs/feedback/WarningText/index.mdx +5 -5
- package/cjs/form/AutoComplete/AutoComplete.stories/index.js +44 -8
- package/cjs/form/AutoComplete/AutoComplete.stories.playwright.json +33 -0
- package/cjs/form/AutoComplete/Status/index.js +12 -5
- package/cjs/form/AutoComplete/__stories__/Multiple/index.js +24 -0
- package/cjs/form/AutoComplete/__stories__/{WithInLine → MultipleShowingTwoSelected}/index.js +7 -6
- package/cjs/form/AutoComplete/__stories__/MultipleWithDefaultValues/index.js +23 -0
- package/cjs/form/AutoComplete/__stories__/MultipleWithMinLength/index.js +26 -0
- package/cjs/form/AutoComplete/__stories__/WithShowAllValues/index.js +0 -1
- package/cjs/form/AutoComplete/index.js +334 -206
- package/cjs/form/AutoComplete/index.mdx +13 -20
- package/cjs/form/AutoComplete/utils/index.js +2 -1
- package/cjs/form/Button/index.mdx +3 -5
- package/cjs/form/Checkbox/index.mdx +3 -5
- package/cjs/form/DateInputContainer/index.mdx +3 -5
- package/cjs/form/ErrorMessage/index.mdx +3 -5
- package/cjs/form/FileUpload/index.mdx +3 -5
- package/cjs/form/RadioContainer/index.mdx +2 -14
- package/cjs/form/SelectContainer/index.mdx +3 -1
- package/cjs/form/SingleCharacterInputs/index.mdx +3 -5
- package/cjs/form/TextArea/index.mdx +3 -5
- package/cjs/form/TextInput/TextInput.stories/index.js +12 -0
- package/cjs/form/TextInput/__stories__/DisabledInputWithValue/index.js +31 -0
- package/cjs/form/TextInput/index.mdx +3 -5
- package/cjs/govgr/Footer/index.mdx +1 -1
- package/cjs/i18n/locales/el/index.js +2 -2
- package/cjs/i18n/locales/en/index.js +2 -2
- package/cjs/layouts/Basic/Bottom/__stories__/Default/index.js +22 -0
- package/cjs/layouts/Basic/Bottom/index.mdx +9 -28
- package/cjs/layouts/Basic/Container/__stories__/Default/index.js +20 -0
- package/cjs/layouts/Basic/Container/index.mdx +23 -0
- package/cjs/layouts/Basic/Main/__stories__/Default/index.js +20 -0
- package/cjs/layouts/Basic/Main/index.mdx +10 -47
- package/cjs/layouts/Basic/Top/__stories__/Default/index.js +20 -0
- package/cjs/layouts/Basic/Top/index.mdx +10 -55
- package/cjs/layouts/Basic/index.mdx +27 -25
- package/cjs/layouts/Grid/index.mdx +39 -0
- package/cjs/lazy/index.js +152 -17
- package/cjs/navigation/BackLink/index.mdx +4 -5
- package/cjs/navigation/Breadcrumbs/index.mdx +6 -5
- package/cjs/navigation/Drawer/index.mdx +4 -10
- package/cjs/navigation/Dropdown/Dropdown.stories/index.js +12 -0
- package/cjs/navigation/Dropdown/Dropdown.stories.playwright.json +16 -0
- package/cjs/navigation/Dropdown/__stories__/ScrollableContent/index.js +68 -0
- package/cjs/navigation/Dropdown/index.mdx +3 -5
- package/cjs/navigation/Link/index.mdx +5 -15
- package/cjs/navigation/NavList/__stories__/Default/index.js +14 -2
- package/cjs/navigation/NavList/__stories__/HorizontalWithDrawer/index.js +35 -2
- package/cjs/navigation/NavList/__stories__/HorizontalWithoutDrawer/index.js +35 -2
- package/cjs/navigation/NavList/__stories__/NavListWithoutNav/index.js +14 -2
- package/cjs/navigation/NavList/__stories__/UsingNavListAuto/index.js +37 -4
- package/cjs/navigation/NavList/__stories__/Vertical/index.js +14 -2
- package/cjs/navigation/NavList/__stories__/VerticalWithoutDrawer/index.js +35 -2
- package/cjs/navigation/NavList/index.mdx +23 -7
- package/cjs/navigation/Pagination/index.mdx +9 -5
- package/cjs/navigation/Tabs/index.mdx +9 -5
- package/cjs/registry/index.js +6 -0
- package/cjs/typography/Heading/index.mdx +3 -5
- package/cjs/typography/HeadingCaption/index.mdx +3 -5
- package/cjs/typography/Hint/index.mdx +3 -5
- package/cjs/typography/NormalText/index.mdx +3 -5
- package/cjs/typography/Paragraph/index.mdx +9 -30
- package/cjs/typography/Typography/index.js +23 -0
- package/cjs/typography/Typography/index.mdx +12 -0
- package/cjs/typography/index.js +11 -0
- package/cjs/utils/Base/index.mdx +13 -0
- package/cjs/utils/VisuallyHidden/index.mdx +10 -5
- package/content/Accordion/__stories__/Auto/index.js +2 -3
- package/content/Accordion/auto.d.ts +3 -3
- package/content/Accordion/hooks/index.js +0 -1
- package/content/Accordion/index.mdx +9 -5
- package/content/Blockquote/index.mdx +3 -5
- package/content/Card/index.mdx +3 -5
- package/content/Chip/index.mdx +4 -5
- package/content/Details/index.mdx +3 -5
- package/content/List/__stories__/Default/index.js +1 -2
- package/content/List/index.mdx +3 -5
- package/content/SafeHTML/index.d.ts +1 -1
- package/content/SafeHTML/index.js +5 -8
- package/content/StepNav/auto.d.ts +3 -3
- package/content/StepNav/index.mdx +28 -5
- package/content/SummaryList/index.mdx +10 -5
- package/content/Table/index.d.ts +1 -1
- package/content/Table/index.js +2 -2
- package/content/Table/index.mdx +13 -14
- package/content/TaskList/index.mdx +9 -5
- package/content/Timeline/index.mdx +10 -5
- package/feedback/CopyToClipboard/index.d.ts +1 -1
- package/feedback/CopyToClipboard/index.mdx +3 -5
- package/feedback/ErrorSummary/index.mdx +3 -5
- package/feedback/NotificationBanner/index.mdx +14 -5
- package/feedback/PhaseBanner/index.mdx +8 -5
- package/feedback/WarningText/index.mdx +5 -5
- package/form/AutoComplete/AutoComplete.stories/index.js +4 -1
- package/form/AutoComplete/AutoComplete.stories.d.ts +4 -1
- package/form/AutoComplete/AutoComplete.stories.playwright.json +33 -0
- package/form/AutoComplete/Status/index.d.ts +4 -2
- package/form/AutoComplete/Status/index.js +11 -4
- package/form/AutoComplete/__stories__/Multiple/index.js +17 -0
- package/form/AutoComplete/__stories__/Multiple/package.json +6 -0
- package/form/AutoComplete/__stories__/Multiple.d.ts +3 -0
- package/form/AutoComplete/__stories__/{WithInLine → MultipleShowingTwoSelected}/index.js +6 -5
- package/form/AutoComplete/__stories__/MultipleShowingTwoSelected/package.json +6 -0
- package/form/AutoComplete/__stories__/MultipleShowingTwoSelected.d.ts +3 -0
- package/form/AutoComplete/__stories__/MultipleWithDefaultValues/index.js +16 -0
- package/form/AutoComplete/__stories__/MultipleWithDefaultValues/package.json +6 -0
- package/form/AutoComplete/__stories__/MultipleWithDefaultValues.d.ts +3 -0
- package/form/AutoComplete/__stories__/MultipleWithMinLength/index.js +19 -0
- package/form/AutoComplete/__stories__/MultipleWithMinLength/package.json +6 -0
- package/form/AutoComplete/__stories__/MultipleWithMinLength.d.ts +3 -0
- package/form/AutoComplete/__stories__/WithShowAllValues/index.js +0 -1
- package/form/AutoComplete/index.d.ts +13 -20
- package/form/AutoComplete/index.js +317 -201
- package/form/AutoComplete/index.mdx +13 -20
- package/form/AutoComplete/utils/index.js +2 -1
- package/form/AutoComplete/utils.d.ts +1 -0
- package/form/Button/index.mdx +3 -5
- package/form/Checkbox/index.mdx +3 -5
- package/form/DateInputContainer/index.mdx +3 -5
- package/form/ErrorMessage/index.mdx +3 -5
- package/form/FileUpload/index.mdx +3 -5
- package/form/RadioContainer/index.mdx +2 -14
- package/form/SelectContainer/index.mdx +3 -1
- package/form/SingleCharacterInputs/index.mdx +3 -5
- package/form/TextArea/index.mdx +3 -5
- package/form/TextInput/TextInput.stories/index.js +1 -0
- package/form/TextInput/TextInput.stories.d.ts +1 -0
- package/form/TextInput/__stories__/DisabledInputWithValue/index.js +25 -0
- package/form/TextInput/__stories__/DisabledInputWithValue/package.json +6 -0
- package/form/TextInput/__stories__/DisabledInputWithValue.d.ts +3 -0
- package/form/TextInput/index.mdx +3 -5
- package/govgr/Footer/index.mdx +1 -1
- package/i18n/locales/el/index.js +2 -2
- package/i18n/locales/en/index.js +2 -2
- package/index.js +1 -1
- package/layouts/Basic/Bottom/__stories__/Default/index.js +15 -0
- package/layouts/Basic/Bottom/__stories__/Default/package.json +6 -0
- package/layouts/Basic/Bottom/__stories__/Default.d.ts +3 -0
- package/layouts/Basic/Bottom/index.mdx +9 -28
- package/layouts/Basic/Container/__stories__/Default/index.js +13 -0
- package/layouts/Basic/Container/__stories__/Default/package.json +6 -0
- package/layouts/Basic/Container/__stories__/Default.d.ts +3 -0
- package/layouts/Basic/Container/index.mdx +23 -0
- package/layouts/Basic/Main/__stories__/Default/index.js +13 -0
- package/layouts/Basic/Main/__stories__/Default/package.json +6 -0
- package/layouts/Basic/Main/__stories__/Default.d.ts +3 -0
- package/layouts/Basic/Main/index.mdx +10 -47
- package/layouts/Basic/Top/__stories__/Default/index.js +13 -0
- package/layouts/Basic/Top/__stories__/Default/package.json +6 -0
- package/layouts/Basic/Top/__stories__/Default.d.ts +3 -0
- package/layouts/Basic/Top/index.mdx +10 -55
- package/layouts/Basic/index.mdx +27 -25
- package/layouts/Grid/index.mdx +39 -0
- package/lazy/index.js +120 -15
- package/lazy.d.ts +269 -254
- package/navigation/BackLink/index.mdx +4 -5
- package/navigation/Breadcrumbs/index.mdx +6 -5
- package/navigation/Drawer/auto.d.ts +3 -3
- package/navigation/Drawer/index.mdx +4 -10
- package/navigation/Dropdown/Dropdown.stories/index.js +1 -0
- package/navigation/Dropdown/Dropdown.stories.d.ts +1 -0
- package/navigation/Dropdown/Dropdown.stories.playwright.json +16 -0
- package/navigation/Dropdown/__stories__/ScrollableContent/index.js +61 -0
- package/navigation/Dropdown/__stories__/ScrollableContent/package.json +6 -0
- package/navigation/Dropdown/__stories__/ScrollableContent.d.ts +3 -0
- package/navigation/Dropdown/index.d.ts +1 -1
- package/navigation/Dropdown/index.mdx +3 -5
- package/navigation/Link/index.mdx +5 -15
- package/navigation/NavList/__stories__/Default/index.js +13 -1
- package/navigation/NavList/__stories__/HorizontalWithDrawer/index.js +34 -1
- package/navigation/NavList/__stories__/HorizontalWithoutDrawer/index.js +34 -1
- package/navigation/NavList/__stories__/NavListWithoutNav/index.js +13 -1
- package/navigation/NavList/__stories__/UsingNavListAuto/index.js +35 -2
- package/navigation/NavList/__stories__/Vertical/index.js +13 -1
- package/navigation/NavList/__stories__/VerticalWithoutDrawer/index.js +34 -1
- package/navigation/NavList/index.mdx +23 -7
- package/navigation/NavList/types.d.ts +1 -2
- package/navigation/Pagination/auto.d.ts +4 -4
- package/navigation/Pagination/index.d.ts +2 -2
- package/navigation/Pagination/index.mdx +9 -5
- package/navigation/Tabs/auto.d.ts +2 -2
- package/navigation/Tabs/index.mdx +9 -5
- package/package.json +4 -6
- package/registry/index.js +6 -0
- package/registry.d.ts +4 -0
- package/src/app/Footer/index.mdx +18 -5
- package/src/app/Header/index.mdx +7 -5
- package/src/app/Masthead/index.mdx +9 -4
- package/src/app/Modal/Modal.stories.js +1 -0
- package/src/app/Modal/__stories__/WithoutModalGaps.tsx +52 -0
- package/src/app/Modal/index.mdx +11 -4
- package/src/app/Modal/index.tsx +1 -1
- package/src/app/NotFound/index.mdx +2 -0
- package/src/app/Panel/index.mdx +9 -4
- package/src/app/PhaseBannerHeader/index.mdx +4 -4
- package/src/app/QrCodeViewer/index.mdx +4 -4
- package/src/app/Skeleton/Skeleton.stories.js +19 -0
- package/src/app/Skeleton/__stories__/Button.tsx +6 -0
- package/src/app/Skeleton/__stories__/Circular.tsx +8 -0
- package/src/app/Skeleton/__stories__/Default.tsx +6 -0
- package/src/app/Skeleton/__stories__/NoAnimation.tsx +6 -0
- package/src/app/Skeleton/__stories__/Rectangular.tsx +8 -0
- package/src/app/Skeleton/__stories__/SpecificWidthAndHeight.tsx +8 -0
- package/src/app/Skeleton/__stories__/TextSizes.tsx +14 -0
- package/src/app/Skeleton/__stories__/UnderTypography.tsx +17 -0
- package/src/app/Skeleton/__stories__/WithChildren.tsx +11 -0
- package/src/app/Skeleton/index.tsx +4 -0
- package/src/content/Accordion/__stories__/Auto.tsx +2 -2
- package/src/content/Accordion/auto.tsx +1 -1
- package/src/content/Accordion/hooks.ts +0 -1
- package/src/content/Accordion/index.mdx +9 -5
- package/src/content/Blockquote/index.mdx +3 -5
- package/src/content/Card/index.mdx +3 -5
- package/src/content/Chip/index.mdx +4 -5
- package/src/content/Details/index.mdx +3 -5
- package/src/content/List/__stories__/Default.tsx +3 -4
- package/src/content/List/index.mdx +3 -5
- package/src/content/SafeHTML/index.tsx +3 -4
- package/src/content/StepNav/index.mdx +28 -5
- package/src/content/SummaryList/index.mdx +10 -5
- package/src/content/Table/index.mdx +13 -14
- package/src/content/Table/index.tsx +2 -2
- package/src/content/TaskList/index.mdx +9 -5
- package/src/content/Timeline/index.mdx +10 -5
- package/src/feedback/CopyToClipboard/index.mdx +3 -5
- package/src/feedback/ErrorSummary/index.mdx +3 -5
- package/src/feedback/NotificationBanner/index.mdx +14 -5
- package/src/feedback/PhaseBanner/index.mdx +8 -5
- package/src/feedback/WarningText/index.mdx +5 -5
- package/src/form/AutoComplete/AutoComplete.stories.js +4 -1
- package/src/form/AutoComplete/AutoComplete.stories.playwright.json +33 -0
- package/src/form/AutoComplete/Status/index.tsx +10 -6
- package/src/form/AutoComplete/__stories__/Multiple.tsx +18 -0
- package/src/form/AutoComplete/__stories__/{WithInLine.tsx → MultipleShowingTwoSelected.tsx} +3 -8
- package/src/form/AutoComplete/__stories__/MultipleWithDefaultValues.tsx +16 -0
- package/src/form/AutoComplete/__stories__/MultipleWithMinLength.tsx +29 -0
- package/src/form/AutoComplete/__stories__/WithShowAllValues.tsx +0 -1
- package/src/form/AutoComplete/index.mdx +13 -20
- package/src/form/AutoComplete/index.tsx +367 -215
- package/src/form/AutoComplete/utils.ts +3 -2
- package/src/form/Button/index.mdx +3 -5
- package/src/form/Checkbox/index.mdx +3 -5
- package/src/form/DateInputContainer/index.mdx +3 -5
- package/src/form/ErrorMessage/index.mdx +3 -5
- package/src/form/FileUpload/index.mdx +3 -5
- package/src/form/RadioContainer/index.mdx +2 -14
- package/src/form/SelectContainer/index.mdx +3 -1
- package/src/form/SingleCharacterInputs/index.mdx +3 -5
- package/src/form/TextArea/index.mdx +3 -5
- package/src/form/TextInput/TextInput.stories.js +1 -0
- package/src/form/TextInput/__stories__/DisabledInputWithValue.tsx +27 -0
- package/src/form/TextInput/index.mdx +3 -5
- package/src/govgr/Footer/index.mdx +1 -1
- package/src/i18n/locales/el.ts +2 -2
- package/src/i18n/locales/en.ts +2 -2
- package/src/layouts/Basic/Bottom/__stories__/Default.tsx +35 -0
- package/src/layouts/Basic/Bottom/index.mdx +9 -28
- package/src/layouts/Basic/Container/__stories__/Default.tsx +30 -0
- package/src/layouts/Basic/Container/index.mdx +23 -0
- package/src/layouts/Basic/Main/__stories__/Default.tsx +30 -0
- package/src/layouts/Basic/Main/index.mdx +10 -47
- package/src/layouts/Basic/Top/__stories__/Default.tsx +28 -0
- package/src/layouts/Basic/Top/index.mdx +10 -55
- package/src/layouts/Basic/index.mdx +27 -25
- package/src/layouts/Grid/index.mdx +39 -0
- package/src/lazy.js +18 -3
- package/src/navigation/BackLink/index.mdx +4 -5
- package/src/navigation/Breadcrumbs/index.mdx +6 -5
- package/src/navigation/Drawer/index.mdx +4 -10
- package/src/navigation/Dropdown/Dropdown.stories.js +1 -0
- package/src/navigation/Dropdown/Dropdown.stories.playwright.json +16 -0
- package/src/navigation/Dropdown/__stories__/ScrollableContent.tsx +82 -0
- package/src/navigation/Dropdown/index.mdx +3 -5
- package/src/navigation/Link/index.mdx +5 -15
- package/src/navigation/NavList/__stories__/Default.tsx +18 -1
- package/src/navigation/NavList/__stories__/HorizontalWithDrawer.tsx +37 -1
- package/src/navigation/NavList/__stories__/HorizontalWithoutDrawer.tsx +37 -1
- package/src/navigation/NavList/__stories__/NavListWithoutNav.tsx +18 -1
- package/src/navigation/NavList/__stories__/UsingNavListAuto.tsx +39 -2
- package/src/navigation/NavList/__stories__/Vertical.tsx +18 -1
- package/src/navigation/NavList/__stories__/VerticalWithoutDrawer.tsx +37 -1
- package/src/navigation/NavList/index.mdx +23 -7
- package/src/navigation/NavList/types.tsx +1 -2
- package/src/navigation/Pagination/index.mdx +9 -5
- package/src/navigation/Tabs/index.mdx +9 -5
- package/src/registry.js +6 -0
- package/src/typography/Heading/index.mdx +3 -5
- package/src/typography/HeadingCaption/index.mdx +3 -5
- package/src/typography/Hint/index.mdx +3 -5
- package/src/typography/NormalText/index.mdx +3 -5
- package/src/typography/Paragraph/index.mdx +9 -30
- package/src/typography/Typography/index.mdx +12 -0
- package/src/typography/Typography/index.tsx +4 -0
- package/src/typography/index.ts +1 -0
- package/src/utils/Base/index.mdx +13 -0
- package/src/utils/VisuallyHidden/index.mdx +10 -5
- package/typography/Heading/index.mdx +3 -5
- package/typography/HeadingCaption/index.mdx +3 -5
- package/typography/Hint/index.mdx +3 -5
- package/typography/NormalText/index.mdx +3 -5
- package/typography/Paragraph/index.mdx +9 -30
- package/typography/Typography/index.d.ts +3 -0
- package/typography/Typography/index.js +3 -0
- package/typography/Typography/index.mdx +12 -0
- package/typography/Typography/package.json +6 -0
- package/typography/index.d.ts +1 -0
- package/typography/index.js +2 -1
- package/utils/Base/index.mdx +13 -0
- package/utils/VisuallyHidden/index.mdx +10 -5
- package/cjs/content/List/List.stories.playwright.json +0 -27
- package/cjs/layouts/Basic/Masthead/index.mdx +0 -65
- package/content/List/List.stories.playwright.json +0 -27
- package/form/AutoComplete/__stories__/WithInLine.d.ts +0 -3
- package/layouts/Basic/Masthead/index.mdx +0 -65
- package/src/content/List/List.stories.playwright.json +0 -27
- package/src/layouts/Basic/Masthead/index.mdx +0 -65
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Skeleton } from '@digigov/ui/app/Skeleton';
|
|
3
|
+
var _ref = /*#__PURE__*/React.createElement(Skeleton, {
|
|
4
|
+
mb: 2,
|
|
5
|
+
fontSize: "xs"
|
|
6
|
+
});
|
|
7
|
+
var _ref2 = /*#__PURE__*/React.createElement(Skeleton, {
|
|
8
|
+
mb: 2,
|
|
9
|
+
fontSize: "sm"
|
|
10
|
+
});
|
|
11
|
+
var _ref3 = /*#__PURE__*/React.createElement(Skeleton, {
|
|
12
|
+
mb: 2,
|
|
13
|
+
fontSize: "md"
|
|
14
|
+
});
|
|
15
|
+
var _ref4 = /*#__PURE__*/React.createElement(Skeleton, {
|
|
16
|
+
mb: 2,
|
|
17
|
+
fontSize: "lg"
|
|
18
|
+
});
|
|
19
|
+
var _ref5 = /*#__PURE__*/React.createElement(Skeleton, {
|
|
20
|
+
mb: 2,
|
|
21
|
+
fontSize: "xl"
|
|
22
|
+
});
|
|
23
|
+
export var TextSizes = function TextSizes() {
|
|
24
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, _ref, _ref2, _ref3, _ref4, _ref5);
|
|
25
|
+
};
|
|
26
|
+
export default TextSizes;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Skeleton } from '@digigov/ui/app/Skeleton';
|
|
3
|
+
import Heading from '@digigov/ui/typography/Heading';
|
|
4
|
+
import { Paragraph } from '@digigov/ui/typography/Paragraph';
|
|
5
|
+
var _ref = /*#__PURE__*/React.createElement(Heading, null, /*#__PURE__*/React.createElement(Skeleton, null));
|
|
6
|
+
var _ref2 = /*#__PURE__*/React.createElement(Paragraph, null, /*#__PURE__*/React.createElement(Skeleton, null));
|
|
7
|
+
export var UnderTypography = function UnderTypography() {
|
|
8
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, _ref, _ref2);
|
|
9
|
+
};
|
|
10
|
+
export default UnderTypography;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Skeleton } from '@digigov/ui/app/Skeleton';
|
|
3
|
+
import { NormalText } from '@digigov/ui/typography/NormalText';
|
|
4
|
+
var _ref = /*#__PURE__*/React.createElement(Skeleton, null, /*#__PURE__*/React.createElement(NormalText, null, "\u039A\u03B5\u03AF\u03BC\u03B5\u03BD\u03BF"));
|
|
5
|
+
export var WithChildren = function WithChildren() {
|
|
6
|
+
return _ref;
|
|
7
|
+
};
|
|
8
|
+
export default WithChildren;
|
|
@@ -13,5 +13,5 @@ export interface ThemeOptionsProps extends BaseProps<'form'> {
|
|
|
13
13
|
highlightLinksOptionTitleSize?: TitleSize;
|
|
14
14
|
}
|
|
15
15
|
type TitleSize = 'xl' | 'lg' | 'md' | 'sm' | 'hidden';
|
|
16
|
-
export declare const ThemeOptions: React.ForwardRefExoticComponent<Pick<ThemeOptionsProps, "children" | "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "method" | "name" | "target" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "printVisible" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden" | "colorsOption" | "fontSizeOption" | "lineHeightOption" | "letterSpacingOption" | "highlightLinksOption" | "colorsOptionTitleSize" | "fontSizeOptionTitleSize" | "lineHeightOptionTitleSize" | "letterSpacingOptionTitleSize" | "highlightLinksOptionTitleSize"> & React.RefAttributes<HTMLFormElement>>;
|
|
16
|
+
export declare const ThemeOptions: React.ForwardRefExoticComponent<Pick<ThemeOptionsProps, "children" | "p" | "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "method" | "name" | "target" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "m" | "mt" | "mb" | "ml" | "mr" | "mx" | "my" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "pt" | "pb" | "pl" | "pr" | "px" | "py" | "printHidden" | "printVisible" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden" | "colorsOption" | "fontSizeOption" | "lineHeightOption" | "letterSpacingOption" | "highlightLinksOption" | "colorsOptionTitleSize" | "fontSizeOptionTitleSize" | "lineHeightOptionTitleSize" | "letterSpacingOptionTitleSize" | "highlightLinksOptionTitleSize"> & React.RefAttributes<HTMLFormElement>>;
|
|
17
17
|
export default ThemeOptions;
|
package/cjs/app/Footer/index.mdx
CHANGED
|
@@ -3,10 +3,6 @@ id: footer
|
|
|
3
3
|
title: Footer
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
```bash
|
|
7
|
-
import Footer from '@digigov/ui/app/Footer';
|
|
8
|
-
```
|
|
9
|
-
|
|
10
6
|
## How to use
|
|
11
7
|
|
|
12
8
|
### Default footer
|
|
@@ -47,4 +43,21 @@ import Footer from '@digigov/ui/app/Footer';
|
|
|
47
43
|
|
|
48
44
|
## API
|
|
49
45
|
|
|
50
|
-
|
|
46
|
+
See below for a complete reference to all of the props available to the components mentioned here.
|
|
47
|
+
|
|
48
|
+
<ComponentProps componentName={[
|
|
49
|
+
"Footer",
|
|
50
|
+
"FooterContainer",
|
|
51
|
+
"FooterNavigation",
|
|
52
|
+
"FooterNavigationSection",
|
|
53
|
+
"FooterHeading",
|
|
54
|
+
"FooterList",
|
|
55
|
+
"FooterListItem",
|
|
56
|
+
"FooterLink",
|
|
57
|
+
"FooterInfo",
|
|
58
|
+
"FooterInfoSection",
|
|
59
|
+
"FooterContent",
|
|
60
|
+
"FooterContentLogos",
|
|
61
|
+
"FooterImage",
|
|
62
|
+
"CopyrightContainer"]}
|
|
63
|
+
/>
|
package/cjs/app/Header/index.mdx
CHANGED
|
@@ -3,10 +3,6 @@ id: header
|
|
|
3
3
|
title: Header
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
```bash
|
|
7
|
-
import Header from '@digigov/ui/app/Header';
|
|
8
|
-
```
|
|
9
|
-
|
|
10
6
|
## How to use
|
|
11
7
|
|
|
12
8
|
### Default header
|
|
@@ -44,4 +40,10 @@ import Header from '@digigov/ui/app/Header';
|
|
|
44
40
|
|
|
45
41
|
## API
|
|
46
42
|
|
|
47
|
-
|
|
43
|
+
See below for a complete reference to all of the props available to the components mentioned here.
|
|
44
|
+
|
|
45
|
+
<ComponentProps componentName={[
|
|
46
|
+
"Header",
|
|
47
|
+
"HeaderContent",
|
|
48
|
+
"HeaderSection",]}
|
|
49
|
+
/>
|
|
@@ -5,9 +5,7 @@ title: Masthead
|
|
|
5
5
|
|
|
6
6
|
# Masthead
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
import Masthead from '@digigov/ui/app/Masthead';
|
|
10
|
-
```
|
|
8
|
+
The Masthead component is a set of features or layout that marks the page and delivers identifying information to web users.
|
|
11
9
|
|
|
12
10
|
## How to use
|
|
13
11
|
|
|
@@ -15,4 +13,11 @@ import Masthead from '@digigov/ui/app/Masthead';
|
|
|
15
13
|
|
|
16
14
|
## API
|
|
17
15
|
|
|
18
|
-
|
|
16
|
+
See below for a complete reference to all of the props available to the components mentioned here.
|
|
17
|
+
|
|
18
|
+
<ComponentProps componentName={[
|
|
19
|
+
"Masthead",
|
|
20
|
+
"MastheadBody",
|
|
21
|
+
"MastheadLogo",
|
|
22
|
+
]}
|
|
23
|
+
/>
|
|
@@ -67,6 +67,18 @@ Object.keys(_Auto).forEach(function (key) {
|
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
69
|
});
|
|
70
|
+
var _WithoutModalGaps = require("@digigov/ui/app/Modal/__stories__/WithoutModalGaps");
|
|
71
|
+
Object.keys(_WithoutModalGaps).forEach(function (key) {
|
|
72
|
+
if (key === "default" || key === "__esModule") return;
|
|
73
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
74
|
+
if (key in exports && exports[key] === _WithoutModalGaps[key]) return;
|
|
75
|
+
Object.defineProperty(exports, key, {
|
|
76
|
+
enumerable: true,
|
|
77
|
+
get: function get() {
|
|
78
|
+
return _WithoutModalGaps[key];
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
});
|
|
70
82
|
var _default = exports["default"] = {
|
|
71
83
|
title: 'Digigov UI/app/Modal',
|
|
72
84
|
description: 'Use the modal component with caution when you need to provide critical information or ask for a decision.',
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = exports.WithoutModalGaps = void 0;
|
|
9
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _Modal = require("@digigov/ui/app/Modal");
|
|
12
|
+
var _Button = require("@digigov/ui/form/Button");
|
|
13
|
+
var _FieldContainer = require("@digigov/ui/form/FieldContainer");
|
|
14
|
+
var _LabelContainer = require("@digigov/ui/form/LabelContainer");
|
|
15
|
+
var _TextInput = require("@digigov/ui/form/TextInput");
|
|
16
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
17
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
18
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_Modal.ModalHeading, {
|
|
19
|
+
id: "modal-label"
|
|
20
|
+
}, "\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03C4\u03B7\u03BB\u03B5\u03C6\u03CE\u03BD\u03BF\u03C5");
|
|
21
|
+
var _ref2 = /*#__PURE__*/_react["default"].createElement(_Modal.ModalContent, null, /*#__PURE__*/_react["default"].createElement(_FieldContainer.FieldContainer, null, /*#__PURE__*/_react["default"].createElement(_LabelContainer.LabelContainer, null, "\u03A3\u03C5\u03BC\u03C0\u03BB\u03B7\u03C1\u03CE\u03C3\u03C4\u03B5 \u03C4\u03BF \u03C4\u03B7\u03BB\u03AD\u03C6\u03C9\u03BD\u03BF \u03B5\u03C0\u03B9\u03BA\u03BF\u03B9\u03BD\u03C9\u03BD\u03AF\u03B1\u03C2", /*#__PURE__*/_react["default"].createElement(_TextInput.TextInput, {
|
|
22
|
+
name: "inputext",
|
|
23
|
+
maxWidth: '10-char'
|
|
24
|
+
}))));
|
|
25
|
+
var _ref3 = /*#__PURE__*/_react["default"].createElement(_Button.Button, null, "\u03A5\u03C0\u03BF\u03B2\u03BF\u03BB\u03AE");
|
|
26
|
+
var WithoutModalGaps = exports.WithoutModalGaps = function WithoutModalGaps() {
|
|
27
|
+
var _useState = (0, _react.useState)(false),
|
|
28
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
29
|
+
open = _useState2[0],
|
|
30
|
+
setOpen = _useState2[1];
|
|
31
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Button.Button, {
|
|
32
|
+
onClick: function onClick() {
|
|
33
|
+
setOpen(!open);
|
|
34
|
+
}
|
|
35
|
+
}, "\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03C4\u03B7\u03BB\u03B5\u03C6\u03CE\u03BD\u03BF\u03C5"), /*#__PURE__*/_react["default"].createElement(_Modal.Modal, {
|
|
36
|
+
open: open,
|
|
37
|
+
"aria-labelledby": "modal-label",
|
|
38
|
+
gaps: false
|
|
39
|
+
}, _ref, _ref2, /*#__PURE__*/_react["default"].createElement(_Modal.ModalAction, null, _ref3, /*#__PURE__*/_react["default"].createElement(_Button.Button, {
|
|
40
|
+
variant: "link",
|
|
41
|
+
onClick: function onClick() {
|
|
42
|
+
setOpen(!open);
|
|
43
|
+
}
|
|
44
|
+
}, "\u0391\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7"))));
|
|
45
|
+
};
|
|
46
|
+
var _default = exports["default"] = WithoutModalGaps;
|
package/cjs/app/Modal/index.js
CHANGED
|
@@ -116,7 +116,7 @@ var ModalBase = exports.ModalBase = /*#__PURE__*/_react["default"].forwardRef(fu
|
|
|
116
116
|
return function () {
|
|
117
117
|
lastModalElementInstance.removeEventListener('focus', handleFocus);
|
|
118
118
|
};
|
|
119
|
-
}, [
|
|
119
|
+
}, []);
|
|
120
120
|
return /*#__PURE__*/_react["default"].createElement(_ModalContainer["default"], (0, _extends2["default"])({
|
|
121
121
|
open: open,
|
|
122
122
|
role: "dialog",
|
package/cjs/app/Modal/index.mdx
CHANGED
|
@@ -3,9 +3,7 @@ id: modal
|
|
|
3
3
|
title: Modal
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
import Modal, {ModalHeading, ModalContent, ModalAction} from "@digigov/ui/app/Modal";
|
|
8
|
-
```
|
|
6
|
+
Modal is a dialog box/popup window which contains information or an action and it is displayed on top of the current page:
|
|
9
7
|
|
|
10
8
|
## How to use
|
|
11
9
|
|
|
@@ -30,4 +28,13 @@ implementation in the ARIA Authoring Practices Guide (APG) at
|
|
|
30
28
|
|
|
31
29
|
## API
|
|
32
30
|
|
|
33
|
-
|
|
31
|
+
See below for a complete reference to all of the props available to the components mentioned here.
|
|
32
|
+
|
|
33
|
+
<ComponentProps componentName={[
|
|
34
|
+
"ModalContainer",
|
|
35
|
+
"Modal",
|
|
36
|
+
"ModalHeading",
|
|
37
|
+
"ModalContent",
|
|
38
|
+
"ModalAction"]}
|
|
39
|
+
/>
|
|
40
|
+
|
package/cjs/app/Panel/index.mdx
CHANGED
|
@@ -3,9 +3,8 @@ id: panel
|
|
|
3
3
|
title: Panel
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
```
|
|
6
|
+
Panels are bordered boxes where you can place texts, lists, tables and other content.
|
|
7
|
+
Panels are similar to cards, but they don't include media.
|
|
9
8
|
|
|
10
9
|
## How to use
|
|
11
10
|
|
|
@@ -13,4 +12,10 @@ import Panel from '@digigov/ui/app/Panel';
|
|
|
13
12
|
|
|
14
13
|
## API
|
|
15
14
|
|
|
16
|
-
|
|
15
|
+
See below for a complete reference to all of the props available to the components mentioned here.
|
|
16
|
+
|
|
17
|
+
<ComponentProps componentName={[
|
|
18
|
+
"Panel",
|
|
19
|
+
"PanelTitle",
|
|
20
|
+
"PanelBody"]}
|
|
21
|
+
/>
|
|
@@ -3,9 +3,7 @@ id: phase-banner-header
|
|
|
3
3
|
title: PhaseBannerHeader
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
import PhaseBannerHeader from '@digigov/ui/app/PhaseBannerHeader';
|
|
8
|
-
```
|
|
6
|
+
Phase banner lets users know the service is still being worked on, and encourages the user to provide feedback to help improve it.
|
|
9
7
|
|
|
10
8
|
## How to use
|
|
11
9
|
|
|
@@ -17,4 +15,6 @@ import PhaseBannerHeader from '@digigov/ui/app/PhaseBannerHeader';
|
|
|
17
15
|
|
|
18
16
|
## API
|
|
19
17
|
|
|
20
|
-
|
|
18
|
+
See below for a complete reference to all of the props available to the components mentioned here.
|
|
19
|
+
|
|
20
|
+
<ComponentProps componentName={["PhaseBannerHeaderContainer"]} />
|
|
@@ -3,9 +3,7 @@ id: qr-code-viewer
|
|
|
3
3
|
title: QrCodeViewer
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
import QrCodeViewer from '@digigov/ui/app/QrCodeViewer';
|
|
8
|
-
```
|
|
6
|
+
QR codes are frequently used to track information and allow the users to access this information instantly.
|
|
9
7
|
|
|
10
8
|
## How to use
|
|
11
9
|
|
|
@@ -27,4 +25,6 @@ import QrCodeViewer from '@digigov/ui/app/QrCodeViewer';
|
|
|
27
25
|
|
|
28
26
|
## API
|
|
29
27
|
|
|
30
|
-
|
|
28
|
+
See below for a complete reference to all of the props available to the components mentioned here.
|
|
29
|
+
|
|
30
|
+
There are no available prop types for this component.
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
var _exportNames = {};
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
var _Skeleton = _interopRequireDefault(require("@digigov/ui/app/Skeleton"));
|
|
10
|
+
var _Default = require("@digigov/ui/app/Skeleton/__stories__/Default");
|
|
11
|
+
Object.keys(_Default).forEach(function (key) {
|
|
12
|
+
if (key === "default" || key === "__esModule") return;
|
|
13
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
14
|
+
if (key in exports && exports[key] === _Default[key]) return;
|
|
15
|
+
Object.defineProperty(exports, key, {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function get() {
|
|
18
|
+
return _Default[key];
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
var _TextSizes = require("@digigov/ui/app/Skeleton/__stories__/TextSizes");
|
|
23
|
+
Object.keys(_TextSizes).forEach(function (key) {
|
|
24
|
+
if (key === "default" || key === "__esModule") return;
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
26
|
+
if (key in exports && exports[key] === _TextSizes[key]) return;
|
|
27
|
+
Object.defineProperty(exports, key, {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function get() {
|
|
30
|
+
return _TextSizes[key];
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
var _Rectangular = require("@digigov/ui/app/Skeleton/__stories__/Rectangular");
|
|
35
|
+
Object.keys(_Rectangular).forEach(function (key) {
|
|
36
|
+
if (key === "default" || key === "__esModule") return;
|
|
37
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
38
|
+
if (key in exports && exports[key] === _Rectangular[key]) return;
|
|
39
|
+
Object.defineProperty(exports, key, {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function get() {
|
|
42
|
+
return _Rectangular[key];
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
var _Circular = require("@digigov/ui/app/Skeleton/__stories__/Circular");
|
|
47
|
+
Object.keys(_Circular).forEach(function (key) {
|
|
48
|
+
if (key === "default" || key === "__esModule") return;
|
|
49
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
50
|
+
if (key in exports && exports[key] === _Circular[key]) return;
|
|
51
|
+
Object.defineProperty(exports, key, {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function get() {
|
|
54
|
+
return _Circular[key];
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
var _Button = require("@digigov/ui/app/Skeleton/__stories__/Button");
|
|
59
|
+
Object.keys(_Button).forEach(function (key) {
|
|
60
|
+
if (key === "default" || key === "__esModule") return;
|
|
61
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
62
|
+
if (key in exports && exports[key] === _Button[key]) return;
|
|
63
|
+
Object.defineProperty(exports, key, {
|
|
64
|
+
enumerable: true,
|
|
65
|
+
get: function get() {
|
|
66
|
+
return _Button[key];
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
var _NoAnimation = require("@digigov/ui/app/Skeleton/__stories__/NoAnimation");
|
|
71
|
+
Object.keys(_NoAnimation).forEach(function (key) {
|
|
72
|
+
if (key === "default" || key === "__esModule") return;
|
|
73
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
74
|
+
if (key in exports && exports[key] === _NoAnimation[key]) return;
|
|
75
|
+
Object.defineProperty(exports, key, {
|
|
76
|
+
enumerable: true,
|
|
77
|
+
get: function get() {
|
|
78
|
+
return _NoAnimation[key];
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
var _SpecificWidthAndHeight = require("@digigov/ui/app/Skeleton/__stories__/SpecificWidthAndHeight");
|
|
83
|
+
Object.keys(_SpecificWidthAndHeight).forEach(function (key) {
|
|
84
|
+
if (key === "default" || key === "__esModule") return;
|
|
85
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
86
|
+
if (key in exports && exports[key] === _SpecificWidthAndHeight[key]) return;
|
|
87
|
+
Object.defineProperty(exports, key, {
|
|
88
|
+
enumerable: true,
|
|
89
|
+
get: function get() {
|
|
90
|
+
return _SpecificWidthAndHeight[key];
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
var _UnderTypography = require("@digigov/ui/app/Skeleton/__stories__/UnderTypography");
|
|
95
|
+
Object.keys(_UnderTypography).forEach(function (key) {
|
|
96
|
+
if (key === "default" || key === "__esModule") return;
|
|
97
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
98
|
+
if (key in exports && exports[key] === _UnderTypography[key]) return;
|
|
99
|
+
Object.defineProperty(exports, key, {
|
|
100
|
+
enumerable: true,
|
|
101
|
+
get: function get() {
|
|
102
|
+
return _UnderTypography[key];
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
var _WithChildren = require("@digigov/ui/app/Skeleton/__stories__/WithChildren");
|
|
107
|
+
Object.keys(_WithChildren).forEach(function (key) {
|
|
108
|
+
if (key === "default" || key === "__esModule") return;
|
|
109
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
110
|
+
if (key in exports && exports[key] === _WithChildren[key]) return;
|
|
111
|
+
Object.defineProperty(exports, key, {
|
|
112
|
+
enumerable: true,
|
|
113
|
+
get: function get() {
|
|
114
|
+
return _WithChildren[key];
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
var _default = exports["default"] = {
|
|
119
|
+
title: 'Digigov UI/app/Skeleton',
|
|
120
|
+
description: 'Use a set of Skeleton components to display placeholder content when data is loading.',
|
|
121
|
+
component: _Skeleton["default"],
|
|
122
|
+
displayName: 'Skeleton'
|
|
123
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = exports.Button = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _Skeleton = require("@digigov/ui/app/Skeleton");
|
|
10
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_Skeleton.Skeleton, {
|
|
11
|
+
variant: "button"
|
|
12
|
+
});
|
|
13
|
+
var Button = exports.Button = function Button() {
|
|
14
|
+
return _ref;
|
|
15
|
+
};
|
|
16
|
+
var _default = exports["default"] = Button;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = exports.Circular = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _Skeleton = require("@digigov/ui/app/Skeleton");
|
|
10
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_Skeleton.Skeleton, {
|
|
11
|
+
variant: "circular",
|
|
12
|
+
width: 100,
|
|
13
|
+
height: 100
|
|
14
|
+
});
|
|
15
|
+
var Circular = exports.Circular = function Circular() {
|
|
16
|
+
return _ref;
|
|
17
|
+
};
|
|
18
|
+
var _default = exports["default"] = Circular;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = exports.Default = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _Skeleton = require("@digigov/ui/app/Skeleton");
|
|
10
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_Skeleton.Skeleton, null);
|
|
11
|
+
var Default = exports.Default = function Default() {
|
|
12
|
+
return _ref;
|
|
13
|
+
};
|
|
14
|
+
var _default = exports["default"] = Default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = exports.NoAnimation = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _Skeleton = require("@digigov/ui/app/Skeleton");
|
|
10
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_Skeleton.Skeleton, {
|
|
11
|
+
animation: false
|
|
12
|
+
});
|
|
13
|
+
var NoAnimation = exports.NoAnimation = function NoAnimation() {
|
|
14
|
+
return _ref;
|
|
15
|
+
};
|
|
16
|
+
var _default = exports["default"] = NoAnimation;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = exports.Rectangular = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _Skeleton = require("@digigov/ui/app/Skeleton");
|
|
10
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_Skeleton.Skeleton, {
|
|
11
|
+
variant: "rectangular",
|
|
12
|
+
height: 150
|
|
13
|
+
});
|
|
14
|
+
var Rectangular = exports.Rectangular = function Rectangular() {
|
|
15
|
+
return _ref;
|
|
16
|
+
};
|
|
17
|
+
var _default = exports["default"] = Rectangular;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = exports.SpecificWidthAndHeight = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _Skeleton = require("@digigov/ui/app/Skeleton");
|
|
10
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_Skeleton.Skeleton, {
|
|
11
|
+
width: 200,
|
|
12
|
+
height: 200
|
|
13
|
+
});
|
|
14
|
+
var SpecificWidthAndHeight = exports.SpecificWidthAndHeight = function SpecificWidthAndHeight() {
|
|
15
|
+
return _ref;
|
|
16
|
+
};
|
|
17
|
+
var _default = exports["default"] = SpecificWidthAndHeight;
|