@digigov/ui 1.2.0-a7ffb5dc → 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/app/Modal/__stories__/WithoutModalGaps/package.json +6 -0
- 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/QRCode.stories.d.ts +1 -0
- package/app/QrCodeViewer/index.d.ts +1 -0
- package/app/QrCodeViewer/index.js +2 -1
- package/app/QrCodeViewer/index.mdx +4 -4
- package/app/Skeleton/Skeleton.stories/index.js +17 -0
- package/{utils/Kitchensink/AllComponents → app/Skeleton/Skeleton.stories}/package.json +1 -1
- package/app/Skeleton/Skeleton.stories.d.ts +18 -0
- package/app/Skeleton/__stories__/Button/index.js +9 -0
- package/{utils/Kitchensink/KitchensinkComponent → app/Skeleton/__stories__/Button}/package.json +1 -1
- 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/{utils/Kitchensink/KitchensinkByCategory → app/Skeleton/__stories__/NoAnimation}/package.json +1 -1
- 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/{utils/Kitchensink/KitchensinkByLetter → app/Skeleton/__stories__/TextSizes}/package.json +1 -1
- package/app/Skeleton/__stories__/TextSizes.d.ts +3 -0
- package/app/Skeleton/__stories__/UnderTypography/index.js +10 -0
- package/{form/AutoComplete/__stories__/WithInLine → app/Skeleton/__stories__/UnderTypography}/package.json +1 -1
- 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/{misc/KitchenSink → app/Skeleton}/package.json +1 -1
- package/app/ThemeOptions/index.d.ts +2 -2
- 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.js +3 -2
- 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 -134
- 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/__stories__/PaginationWithSmallFont/index.js +2 -2
- package/cjs/navigation/Pagination/__stories__/WithResultsPerPage/index.js +2 -2
- package/cjs/navigation/Pagination/index.mdx +9 -5
- package/cjs/navigation/Tabs/index.mdx +9 -5
- package/cjs/registry/index.js +6 -12
- 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 -106
- package/lazy.d.ts +269 -267
- 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/__stories__/PaginationWithSmallFont/index.js +1 -1
- package/navigation/Pagination/__stories__/WithResultsPerPage/index.js +1 -1
- 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 -12
- package/registry.d.ts +4 -6
- 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/QrCodeViewer/index.tsx +2 -0
- 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/app/ThemeOptions/index.tsx +1 -1
- 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 -16
- 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/__stories__/PaginationWithSmallFont.tsx +1 -1
- package/src/navigation/Pagination/__stories__/WithResultsPerPage.tsx +1 -1
- package/src/navigation/Pagination/index.mdx +9 -5
- package/src/navigation/Tabs/index.mdx +9 -5
- package/src/registry.js +6 -12
- 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/cjs/misc/KitchenSink/index.js +0 -93
- package/cjs/utils/Kitchensink/AllComponents/index.js +0 -16
- package/cjs/utils/Kitchensink/KitchensinkByCategory/index.js +0 -39
- package/cjs/utils/Kitchensink/KitchensinkByLetter/index.js +0 -26
- package/cjs/utils/Kitchensink/KitchensinkComponent/index.js +0 -55
- package/cjs/utils/Kitchensink/KitchensinkDashboard/index.js +0 -47
- 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/misc/KitchenSink/index.d.ts +0 -8
- package/misc/KitchenSink/index.js +0 -8
- package/src/content/List/List.stories.playwright.json +0 -27
- package/src/layouts/Basic/Masthead/index.mdx +0 -65
- package/src/misc/KitchenSink/index.tsx +0 -8
- package/src/utils/Kitchensink/AllComponents.tsx +0 -6
- package/src/utils/Kitchensink/KitchensinkByCategory.tsx +0 -56
- package/src/utils/Kitchensink/KitchensinkByLetter.tsx +0 -35
- package/src/utils/Kitchensink/KitchensinkComponent.tsx +0 -70
- package/src/utils/Kitchensink/KitchensinkDashboard.tsx +0 -56
- package/utils/Kitchensink/AllComponents/index.js +0 -9
- package/utils/Kitchensink/AllComponents.d.ts +0 -2
- package/utils/Kitchensink/KitchensinkByCategory/index.js +0 -32
- package/utils/Kitchensink/KitchensinkByCategory.d.ts +0 -6
- package/utils/Kitchensink/KitchensinkByLetter/index.js +0 -19
- package/utils/Kitchensink/KitchensinkByLetter.d.ts +0 -6
- package/utils/Kitchensink/KitchensinkComponent/index.js +0 -45
- package/utils/Kitchensink/KitchensinkComponent.d.ts +0 -10
- package/utils/Kitchensink/KitchensinkDashboard/index.js +0 -40
- package/utils/Kitchensink/KitchensinkDashboard/package.json +0 -6
- package/utils/Kitchensink/KitchensinkDashboard.d.ts +0 -5
|
@@ -7,14 +7,12 @@ title: PhaseBanner
|
|
|
7
7
|
|
|
8
8
|
Use the phase banner component to show users your service is still being worked on.
|
|
9
9
|
|
|
10
|
-
```bash
|
|
11
|
-
import PhaseBanner from '@digigov/ui/feedback/PhaseBanner';
|
|
12
|
-
```
|
|
13
|
-
|
|
14
10
|
## How to use
|
|
15
11
|
|
|
16
12
|
Your banner must be directly under the blue GOV.GR header and colour bar.
|
|
17
13
|
|
|
14
|
+
### Default
|
|
15
|
+
|
|
18
16
|
<Story
|
|
19
17
|
packageName="@digigov/ui"
|
|
20
18
|
component="feedback/PhaseBanner"
|
|
@@ -31,4 +29,9 @@ Your banner must be directly under the blue GOV.GR header and colour bar.
|
|
|
31
29
|
|
|
32
30
|
## API
|
|
33
31
|
|
|
34
|
-
|
|
32
|
+
See below for a complete reference to all of the props available to the components mentioned here.
|
|
33
|
+
|
|
34
|
+
<ComponentProps componentName={[
|
|
35
|
+
"PhaseBanner",
|
|
36
|
+
"PhaseBannerTag",
|
|
37
|
+
"PhaseBannerText"]} />
|
|
@@ -5,15 +5,13 @@ title: WarningText
|
|
|
5
5
|
|
|
6
6
|
# WarningText
|
|
7
7
|
|
|
8
|
-
```bash
|
|
9
|
-
import WarningText from '@digigov/ui/feedback/WarningText';
|
|
10
|
-
```
|
|
11
|
-
|
|
12
8
|
## How to use
|
|
13
9
|
|
|
14
10
|
You might need to rewrite the hidden text ("Προσοχή" in the example) to make it appropriate for your context.
|
|
15
11
|
This will be used by screen-readers.
|
|
16
12
|
|
|
13
|
+
### Default
|
|
14
|
+
|
|
17
15
|
<Story
|
|
18
16
|
packageName="@digigov/ui"
|
|
19
17
|
component="feedback/WarningText"
|
|
@@ -22,4 +20,6 @@ This will be used by screen-readers.
|
|
|
22
20
|
|
|
23
21
|
## API
|
|
24
22
|
|
|
25
|
-
|
|
23
|
+
See below for a complete reference to all of the props available to the components mentioned here.
|
|
24
|
+
|
|
25
|
+
<ComponentProps componentName={["WarningText"]} />
|
|
@@ -19,27 +19,63 @@ Object.keys(_Default).forEach(function (key) {
|
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
});
|
|
22
|
-
var
|
|
23
|
-
Object.keys(
|
|
22
|
+
var _Multiple = require("@digigov/ui/form/AutoComplete/__stories__/Multiple");
|
|
23
|
+
Object.keys(_Multiple).forEach(function (key) {
|
|
24
24
|
if (key === "default" || key === "__esModule") return;
|
|
25
25
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
26
|
-
if (key in exports && exports[key] ===
|
|
26
|
+
if (key in exports && exports[key] === _Multiple[key]) return;
|
|
27
27
|
Object.defineProperty(exports, key, {
|
|
28
28
|
enumerable: true,
|
|
29
29
|
get: function get() {
|
|
30
|
-
return
|
|
30
|
+
return _Multiple[key];
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
var _MultipleWithDefaultValues = require("@digigov/ui/form/AutoComplete/__stories__/MultipleWithDefaultValues");
|
|
35
|
+
Object.keys(_MultipleWithDefaultValues).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] === _MultipleWithDefaultValues[key]) return;
|
|
39
|
+
Object.defineProperty(exports, key, {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function get() {
|
|
42
|
+
return _MultipleWithDefaultValues[key];
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
var _MultipleShowingTwoSelected = require("@digigov/ui/form/AutoComplete/__stories__/MultipleShowingTwoSelected");
|
|
47
|
+
Object.keys(_MultipleShowingTwoSelected).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] === _MultipleShowingTwoSelected[key]) return;
|
|
51
|
+
Object.defineProperty(exports, key, {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function get() {
|
|
54
|
+
return _MultipleShowingTwoSelected[key];
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
var _MultipleWithMinLength = require("@digigov/ui/form/AutoComplete/__stories__/MultipleWithMinLength");
|
|
59
|
+
Object.keys(_MultipleWithMinLength).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] === _MultipleWithMinLength[key]) return;
|
|
63
|
+
Object.defineProperty(exports, key, {
|
|
64
|
+
enumerable: true,
|
|
65
|
+
get: function get() {
|
|
66
|
+
return _MultipleWithMinLength[key];
|
|
31
67
|
}
|
|
32
68
|
});
|
|
33
69
|
});
|
|
34
|
-
var
|
|
35
|
-
Object.keys(
|
|
70
|
+
var _WithAutoSelect = require("@digigov/ui/form/AutoComplete/__stories__/WithAutoSelect");
|
|
71
|
+
Object.keys(_WithAutoSelect).forEach(function (key) {
|
|
36
72
|
if (key === "default" || key === "__esModule") return;
|
|
37
73
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
38
|
-
if (key in exports && exports[key] ===
|
|
74
|
+
if (key in exports && exports[key] === _WithAutoSelect[key]) return;
|
|
39
75
|
Object.defineProperty(exports, key, {
|
|
40
76
|
enumerable: true,
|
|
41
77
|
get: function get() {
|
|
42
|
-
return
|
|
78
|
+
return _WithAutoSelect[key];
|
|
43
79
|
}
|
|
44
80
|
});
|
|
45
81
|
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "4",
|
|
3
|
+
"stories": {
|
|
4
|
+
"digigov-ui-form-autocomplete--multiple": {
|
|
5
|
+
"actionSets": [
|
|
6
|
+
{
|
|
7
|
+
"actions": [
|
|
8
|
+
{
|
|
9
|
+
"name": "click",
|
|
10
|
+
"args": {
|
|
11
|
+
"selector": "html>body>div:nth-child(5)>div>div>fieldset>div>div:nth-child(2)>button"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "click",
|
|
16
|
+
"args": {
|
|
17
|
+
"selector": "html>body>div:nth-child(5)>div>div>fieldset>div>div:nth-child(2)>ul:nth-child(4)>div>li:nth-child(3)"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "click",
|
|
22
|
+
"args": {
|
|
23
|
+
"selector": "html>body>div:nth-child(5)>div>div>fieldset>div>div:nth-child(2)>button"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"id": "SP0dXbHKOZl7",
|
|
28
|
+
"title": "show chip"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -11,10 +11,10 @@ Object.defineProperty(exports, "AutoCompleteStatus", {
|
|
|
11
11
|
return _AutoCompleteStatus["default"];
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
|
-
Object.defineProperty(exports, "
|
|
14
|
+
Object.defineProperty(exports, "AutoCompleteStatusContainer", {
|
|
15
15
|
enumerable: true,
|
|
16
16
|
get: function get() {
|
|
17
|
-
return
|
|
17
|
+
return _AutoCompleteStatusContainer["default"];
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
exports["default"] = void 0;
|
|
@@ -25,7 +25,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
25
25
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
26
26
|
var _react = _interopRequireWildcard(require("react"));
|
|
27
27
|
var _AutoCompleteStatus = _interopRequireDefault(require("@digigov/react-core/cjs/AutoCompleteStatus"));
|
|
28
|
-
var
|
|
28
|
+
var _AutoCompleteStatusContainer = _interopRequireDefault(require("@digigov/react-core/cjs/AutoCompleteStatusContainer"));
|
|
29
29
|
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); }
|
|
30
30
|
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; }
|
|
31
31
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
@@ -48,6 +48,7 @@ var debounce = function debounce(func, wait, immediate) {
|
|
|
48
48
|
clearTimeout(timeout);
|
|
49
49
|
timeout = setTimeout(later, wait);
|
|
50
50
|
if (callNow) func.apply(context, args);
|
|
51
|
+
return timeout;
|
|
51
52
|
};
|
|
52
53
|
};
|
|
53
54
|
var statusDebounceMillis = 1400;
|
|
@@ -66,9 +67,15 @@ var Status = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
66
67
|
silenced: false
|
|
67
68
|
};
|
|
68
69
|
_this.debounceStatusUpdate = void 0;
|
|
70
|
+
_this.lastDebounceCall = void 0;
|
|
69
71
|
return _this;
|
|
70
72
|
}
|
|
71
73
|
(0, _createClass2["default"])(Status, [{
|
|
74
|
+
key: "componentWillUnmount",
|
|
75
|
+
value: function componentWillUnmount() {
|
|
76
|
+
clearTimeout(this.lastDebounceCall);
|
|
77
|
+
}
|
|
78
|
+
}, {
|
|
72
79
|
key: "UNSAFE_componentWillMount",
|
|
73
80
|
value: function UNSAFE_componentWillMount() {
|
|
74
81
|
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
@@ -123,8 +130,8 @@ var Status = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
123
130
|
} else {
|
|
124
131
|
content = tResults === null || tResults === void 0 ? void 0 : tResults(length, contentSelectedOption);
|
|
125
132
|
}
|
|
126
|
-
this.debounceStatusUpdate();
|
|
127
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
133
|
+
this.lastDebounceCall = this.debounceStatusUpdate();
|
|
134
|
+
return /*#__PURE__*/_react["default"].createElement(_AutoCompleteStatusContainer["default"], null, /*#__PURE__*/_react["default"].createElement(_AutoCompleteStatus["default"], {
|
|
128
135
|
id: id + '__status--A'
|
|
129
136
|
}, !silenced && debounced && bump ? content : ' '), /*#__PURE__*/_react["default"].createElement(_AutoCompleteStatus["default"], {
|
|
130
137
|
id: id + '__status--B'
|
|
@@ -0,0 +1,24 @@
|
|
|
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.Multiple = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _AutoComplete = require("@digigov/ui/form/AutoComplete");
|
|
10
|
+
var _utils = require("@digigov/ui/form/AutoComplete/utils");
|
|
11
|
+
var _Button = require("@digigov/ui/form/Button");
|
|
12
|
+
var _FieldContainer = require("@digigov/ui/form/FieldContainer");
|
|
13
|
+
var _ref = /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_FieldContainer.FieldContainer, null, /*#__PURE__*/_react["default"].createElement(_FieldContainer.Fieldset, {
|
|
14
|
+
marginBottom: 4
|
|
15
|
+
}, /*#__PURE__*/_react["default"].createElement(_AutoComplete.AutoComplete, {
|
|
16
|
+
source: _utils.suggest,
|
|
17
|
+
multiple: true,
|
|
18
|
+
width: "50%",
|
|
19
|
+
id: "multiple-select-default"
|
|
20
|
+
}))), /*#__PURE__*/_react["default"].createElement(_Button.Button, null, "\u03A5\u03C0\u03BF\u03B2\u03BF\u03BB\u03AE"));
|
|
21
|
+
var Multiple = exports.Multiple = function Multiple() {
|
|
22
|
+
return _ref;
|
|
23
|
+
};
|
|
24
|
+
var _default = exports["default"] = Multiple;
|
package/cjs/form/AutoComplete/__stories__/{WithInLine → MultipleShowingTwoSelected}/index.js
RENAMED
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports["default"] = exports.
|
|
7
|
+
exports["default"] = exports.MultipleShowingTwoSelected = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _AutoComplete = require("@digigov/ui/form/AutoComplete");
|
|
10
10
|
var _utils = require("@digigov/ui/form/AutoComplete/utils");
|
|
@@ -12,11 +12,12 @@ var _Button = require("@digigov/ui/form/Button");
|
|
|
12
12
|
var _FieldContainer = require("@digigov/ui/form/FieldContainer");
|
|
13
13
|
var _ref = /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_FieldContainer.FieldContainer, null, /*#__PURE__*/_react["default"].createElement(_AutoComplete.AutoComplete, {
|
|
14
14
|
source: _utils.suggest,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
id: "
|
|
15
|
+
multiple: true,
|
|
16
|
+
width: "75%",
|
|
17
|
+
id: "multiple-showing-two-selected",
|
|
18
|
+
numberOfSelected: 2
|
|
18
19
|
})), /*#__PURE__*/_react["default"].createElement(_Button.Button, null, "\u03A5\u03C0\u03BF\u03B2\u03BF\u03BB\u03AE"));
|
|
19
|
-
var
|
|
20
|
+
var MultipleShowingTwoSelected = exports.MultipleShowingTwoSelected = function MultipleShowingTwoSelected() {
|
|
20
21
|
return _ref;
|
|
21
22
|
};
|
|
22
|
-
var _default = exports["default"] =
|
|
23
|
+
var _default = exports["default"] = MultipleShowingTwoSelected;
|
|
@@ -0,0 +1,23 @@
|
|
|
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.MultipleWithDefaultValues = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _AutoComplete = require("@digigov/ui/form/AutoComplete");
|
|
10
|
+
var _utils = require("@digigov/ui/form/AutoComplete/utils");
|
|
11
|
+
var _Button = require("@digigov/ui/form/Button");
|
|
12
|
+
var _FieldContainer = require("@digigov/ui/form/FieldContainer");
|
|
13
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_Button.Button, null, "\u03A5\u03C0\u03BF\u03B2\u03BF\u03BB\u03AE");
|
|
14
|
+
var MultipleWithDefaultValues = exports.MultipleWithDefaultValues = function MultipleWithDefaultValues() {
|
|
15
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_FieldContainer.FieldContainer, null, /*#__PURE__*/_react["default"].createElement(_AutoComplete.AutoComplete, {
|
|
16
|
+
source: _utils.suggest,
|
|
17
|
+
multiple: true,
|
|
18
|
+
defaultValue: ['Ελλάδα', 'Ιταλία'],
|
|
19
|
+
width: "50%",
|
|
20
|
+
id: "govgr"
|
|
21
|
+
})), _ref);
|
|
22
|
+
};
|
|
23
|
+
var _default = exports["default"] = MultipleWithDefaultValues;
|
|
@@ -0,0 +1,26 @@
|
|
|
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.MultipleWithMinLength = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _AutoComplete = require("@digigov/ui/form/AutoComplete");
|
|
10
|
+
var _utils = require("@digigov/ui/form/AutoComplete/utils");
|
|
11
|
+
var _Button = require("@digigov/ui/form/Button");
|
|
12
|
+
var _FieldContainer = require("@digigov/ui/form/FieldContainer");
|
|
13
|
+
var _Paragraph = _interopRequireDefault(require("@digigov/ui/typography/Paragraph"));
|
|
14
|
+
var _ref = /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Paragraph["default"], null, "\u0395\u03B4\u03CE, \u03BF \u03B5\u03BB\u03AC\u03C7\u03B9\u03C3\u03C4\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 \u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03C9\u03BD \u03C0\u03BF\u03C5 \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03B9\u03C3\u03B1\u03C7\u03B8\u03B5\u03AF \u03CE\u03C3\u03C4\u03B5 \u03BD\u03B1 \u03B1\u03C1\u03C7\u03AF\u03C3\u03B5\u03B9 \u03BD\u03B1 \u03C6\u03B9\u03BB\u03C4\u03C1\u03AC\u03C1\u03B5\u03C4\u03B1\u03B9 \u03B7 \u03B1\u03BD\u03B1\u03B6\u03AE\u03C4\u03B7\u03C3\u03B7 \u03B5\u03AF\u03BD\u03B1\u03B9 2."), /*#__PURE__*/_react["default"].createElement(_FieldContainer.FieldContainer, null, /*#__PURE__*/_react["default"].createElement(_FieldContainer.Fieldset, {
|
|
15
|
+
marginBottom: 4
|
|
16
|
+
}, /*#__PURE__*/_react["default"].createElement(_AutoComplete.AutoComplete, {
|
|
17
|
+
source: _utils.suggest,
|
|
18
|
+
multiple: true,
|
|
19
|
+
minLength: 2,
|
|
20
|
+
width: "50%",
|
|
21
|
+
id: "multiple-select-default"
|
|
22
|
+
}))), /*#__PURE__*/_react["default"].createElement(_Button.Button, null, "\u03A5\u03C0\u03BF\u03B2\u03BF\u03BB\u03AE"));
|
|
23
|
+
var MultipleWithMinLength = exports.MultipleWithMinLength = function MultipleWithMinLength() {
|
|
24
|
+
return _ref;
|
|
25
|
+
};
|
|
26
|
+
var _default = exports["default"] = MultipleWithMinLength;
|
|
@@ -13,7 +13,6 @@ var _FieldContainer = require("@digigov/ui/form/FieldContainer");
|
|
|
13
13
|
var _ref = /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_FieldContainer.FieldContainer, null, /*#__PURE__*/_react["default"].createElement(_AutoComplete.AutoComplete, {
|
|
14
14
|
source: _utils.suggest,
|
|
15
15
|
autoselect: true,
|
|
16
|
-
showAllValues: true,
|
|
17
16
|
id: "govgr"
|
|
18
17
|
})), /*#__PURE__*/_react["default"].createElement(_Button["default"], null, "\u03A5\u03C0\u03BF\u03B2\u03BF\u03BB\u03AE"));
|
|
19
18
|
var WithShowAllValues = exports.WithShowAllValues = function WithShowAllValues() {
|