@digigov/ui 0.31.0 → 0.32.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -1
- package/admin/AutoComplete/index.mdx +8 -30
- package/admin/CopyToClipboard/CopyToClipboard.stories.playwright.json +2 -2
- package/admin/CopyToClipboard/index.mdx +1 -5
- package/admin/Drawer/__stories__/Default.js +2 -6
- package/admin/Dropdown/Dropdown.stories.playwright.json +53 -0
- package/admin/Dropdown/__stories__/AlignRight.js +1 -2
- package/admin/Dropdown/__stories__/Default.js +1 -3
- package/admin/Dropdown/__stories__/PlacementTop.js +1 -2
- package/admin/Dropdown/index.mdx +3 -15
- package/admin/Modal/Modal.stories.playwright.json +37 -0
- package/admin/Modal/__stories__/AlertDialog.js +36 -12
- package/admin/Modal/__stories__/Default.js +34 -10
- package/admin/Modal/index.mdx +1 -5
- package/app/Footer/Footer.mdx +3 -14
- package/app/Header/index.mdx +3 -16
- package/app/QrCodeViewer/index.mdx +1 -5
- package/core/Accordion/Accordion.stories.playwright.json +2 -2
- package/core/Accordion/index.mdx +2 -10
- package/core/Button/__stories__/GroupingButtons.d.ts +1 -0
- package/core/Button/__stories__/GroupingButtons.js +4 -2
- package/core/Button/__stories__/GroupingButtonsAndLinks.d.ts +1 -0
- package/core/Button/__stories__/GroupingButtonsAndLinks.js +4 -2
- package/core/Button/__stories__/Warning.d.ts +1 -0
- package/core/Button/__stories__/Warning.js +4 -2
- package/core/Button/index.mdx +4 -20
- package/core/Card/card.mdx +7 -35
- package/core/Checkbox/checkbox.mdx +6 -30
- package/core/DateInputContainer/index.mdx +4 -20
- package/core/ErrorSummary/ErrorSummary.stories.playwright.json +1 -1
- package/core/ErrorSummary/index.mdx +3 -15
- package/core/FileUpload/index.mdx +1 -5
- package/core/Link/link.mdx +4 -20
- package/core/List/index.mdx +1 -5
- package/core/NavList/NavList.stories.d.ts +1 -5
- package/core/NavList/NavList.stories.js +4 -60
- package/core/NavList/NavListAuto/NavListBaseAuto.js +1 -3
- package/core/NavList/NavListAuto/NavListItemAnchorAuto.d.ts +0 -2
- package/core/NavList/NavListAuto/NavListItemAnchorAuto.js +2 -5
- package/core/NavList/NavListAuto/NavListItemAuto.js +2 -7
- package/core/NavList/NavListAuto/NavListItemButtonAuto.js +1 -3
- package/core/NavList/NavListAuto/NavListMenuAuto.js +2 -5
- package/core/NavList/NavListAuto/NavListSubMenuAuto.js +1 -3
- package/core/NavList/NavListItem.js +2 -5
- package/core/NavList/NavListItemBase.js +1 -6
- package/core/NavList/NavMenuContainerContentList.js +3 -6
- package/core/NavList/__stories__/Default.js +4 -10
- package/core/NavList/__stories__/NavVerticalLayout.d.ts +2 -0
- package/core/NavList/__stories__/{NavHorizontalLayout.js → NavVerticalLayout.js} +9 -15
- package/core/NavList/index.d.ts +1 -0
- package/core/NavList/index.js +14 -0
- package/core/NavList/index.mdx +1 -5
- package/core/NavList/types.d.ts +0 -1
- package/core/NotificationBanner/index.mdx +1 -5
- package/core/PhaseBanner/index.mdx +1 -4
- package/core/RadioContainer/index.mdx +6 -30
- package/core/SelectContainer/index.mdx +3 -15
- package/core/SingleCharacterInputContainer/SingleCharacterInputContainer.stories.d.ts +13 -0
- package/core/SingleCharacterInputContainer/SingleCharacterInputContainer.stories.js +75 -0
- package/core/SingleCharacterInputContainer/__stories__/Default.d.ts +2 -0
- package/core/SingleCharacterInputContainer/__stories__/Default.js +46 -0
- package/core/SingleCharacterInputContainer/__stories__/WithDefaultError.d.ts +2 -0
- package/core/SingleCharacterInputContainer/__stories__/WithDefaultError.js +52 -0
- package/core/SingleCharacterInputContainer/__stories__/WithErrorMessageInvalidCode.d.ts +2 -0
- package/core/SingleCharacterInputContainer/__stories__/WithErrorMessageInvalidCode.js +58 -0
- package/core/SingleCharacterInputContainer/__stories__/WithErrorMessageLessDigit.d.ts +2 -0
- package/core/SingleCharacterInputContainer/__stories__/WithErrorMessageLessDigit.js +52 -0
- package/core/SingleCharacterInputContainer/index.d.ts +4 -0
- package/core/SingleCharacterInputContainer/index.js +44 -0
- package/core/SingleCharacterInputContainer/index.mdx +26 -0
- package/core/SummaryList/index.mdx +2 -10
- package/core/Table/index.mdx +6 -30
- package/core/TextArea/index.mdx +6 -30
- package/core/TextInput/index.mdx +6 -30
- package/core/index.d.ts +1 -0
- package/core/index.js +13 -0
- package/es/admin/AutoComplete/index.mdx +8 -30
- package/es/admin/CopyToClipboard/CopyToClipboard.stories.playwright.json +2 -2
- package/es/admin/CopyToClipboard/index.mdx +1 -5
- package/es/admin/Drawer/__stories__/Default.js +2 -6
- package/es/admin/Dropdown/Dropdown.stories.playwright.json +53 -0
- package/es/admin/Dropdown/__stories__/AlignRight.js +1 -2
- package/es/admin/Dropdown/__stories__/Default.js +1 -3
- package/es/admin/Dropdown/__stories__/PlacementTop.js +1 -2
- package/es/admin/Dropdown/index.mdx +3 -15
- package/es/admin/Modal/Modal.stories.playwright.json +37 -0
- package/es/admin/Modal/__stories__/AlertDialog.js +29 -12
- package/es/admin/Modal/__stories__/Default.js +27 -10
- package/es/admin/Modal/index.mdx +1 -5
- package/es/app/Footer/Footer.mdx +3 -14
- package/es/app/Header/index.mdx +3 -16
- package/es/app/QrCodeViewer/index.mdx +1 -5
- package/es/core/Accordion/Accordion.stories.playwright.json +2 -2
- package/es/core/Accordion/index.mdx +2 -10
- package/es/core/Button/__stories__/GroupingButtons.js +2 -1
- package/es/core/Button/__stories__/GroupingButtonsAndLinks.js +2 -1
- package/es/core/Button/__stories__/Warning.js +2 -1
- package/es/core/Button/index.mdx +4 -20
- package/es/core/Card/card.mdx +7 -35
- package/es/core/Checkbox/checkbox.mdx +6 -30
- package/es/core/DateInputContainer/index.mdx +4 -20
- package/es/core/ErrorSummary/ErrorSummary.stories.playwright.json +1 -1
- package/es/core/ErrorSummary/index.mdx +3 -15
- package/es/core/FileUpload/index.mdx +1 -5
- package/es/core/Link/link.mdx +4 -20
- package/es/core/List/index.mdx +1 -5
- package/es/core/NavList/NavList.stories.js +1 -5
- package/es/core/NavList/NavListAuto/NavListBaseAuto.js +1 -3
- package/es/core/NavList/NavListAuto/NavListItemAnchorAuto.js +2 -5
- package/es/core/NavList/NavListAuto/NavListItemAuto.js +2 -6
- package/es/core/NavList/NavListAuto/NavListItemButtonAuto.js +1 -3
- package/es/core/NavList/NavListAuto/NavListMenuAuto.js +2 -5
- package/es/core/NavList/NavListAuto/NavListSubMenuAuto.js +1 -3
- package/es/core/NavList/NavListItem.js +2 -5
- package/es/core/NavList/NavListItemBase.js +1 -6
- package/es/core/NavList/NavMenuContainerContentList.js +3 -6
- package/es/core/NavList/__stories__/Default.js +4 -10
- package/{esm/core/NavList/__stories__/NavHorizontalLayout.js → es/core/NavList/__stories__/NavVerticalLayout.js} +7 -13
- package/es/core/NavList/index.js +1 -0
- package/es/core/NavList/index.mdx +1 -5
- package/es/core/NotificationBanner/index.mdx +1 -5
- package/es/core/PhaseBanner/index.mdx +1 -4
- package/es/core/RadioContainer/index.mdx +6 -30
- package/es/core/SelectContainer/index.mdx +3 -15
- package/es/core/SingleCharacterInputContainer/SingleCharacterInputContainer.stories.js +12 -0
- package/es/core/SingleCharacterInputContainer/__stories__/Default.js +31 -0
- package/es/core/SingleCharacterInputContainer/__stories__/WithDefaultError.js +35 -0
- package/es/core/SingleCharacterInputContainer/__stories__/WithErrorMessageInvalidCode.js +41 -0
- package/es/core/SingleCharacterInputContainer/__stories__/WithErrorMessageLessDigit.js +35 -0
- package/es/core/SingleCharacterInputContainer/index.js +4 -0
- package/es/core/SingleCharacterInputContainer/index.mdx +26 -0
- package/es/core/SummaryList/index.mdx +2 -10
- package/es/core/Table/index.mdx +6 -30
- package/es/core/TextArea/index.mdx +6 -30
- package/es/core/TextInput/index.mdx +6 -30
- package/es/core/index.js +1 -0
- package/es/locales/el.js +4 -0
- package/es/registry.js +4 -0
- package/es/typography/HeadingCaption/index.mdx +1 -5
- package/es/typography/Hint/index.mdx +1 -5
- package/es/typography/NormalText/index.mdx +3 -15
- package/es/typography/Paragraph/index.mdx +3 -15
- package/esm/admin/AutoComplete/index.mdx +8 -30
- package/esm/admin/CopyToClipboard/CopyToClipboard.stories.playwright.json +2 -2
- package/esm/admin/CopyToClipboard/index.mdx +1 -5
- package/esm/admin/Drawer/__stories__/Default.js +2 -6
- package/esm/admin/Dropdown/Dropdown.stories.playwright.json +53 -0
- package/esm/admin/Dropdown/__stories__/AlignRight.js +1 -2
- package/esm/admin/Dropdown/__stories__/Default.js +1 -3
- package/esm/admin/Dropdown/__stories__/PlacementTop.js +1 -2
- package/esm/admin/Dropdown/index.mdx +3 -15
- package/esm/admin/Modal/Modal.stories.playwright.json +37 -0
- package/esm/admin/Modal/__stories__/AlertDialog.js +29 -12
- package/esm/admin/Modal/__stories__/Default.js +27 -10
- package/esm/admin/Modal/index.mdx +1 -5
- package/esm/app/Footer/Footer.mdx +3 -14
- package/esm/app/Header/index.mdx +3 -16
- package/esm/app/QrCodeViewer/index.mdx +1 -5
- package/esm/core/Accordion/Accordion.stories.playwright.json +2 -2
- package/esm/core/Accordion/index.mdx +2 -10
- package/esm/core/Button/__stories__/GroupingButtons.js +2 -1
- package/esm/core/Button/__stories__/GroupingButtonsAndLinks.js +2 -1
- package/esm/core/Button/__stories__/Warning.js +2 -1
- package/esm/core/Button/index.mdx +4 -20
- package/esm/core/Card/card.mdx +7 -35
- package/esm/core/Checkbox/checkbox.mdx +6 -30
- package/esm/core/DateInputContainer/index.mdx +4 -20
- package/esm/core/ErrorSummary/ErrorSummary.stories.playwright.json +1 -1
- package/esm/core/ErrorSummary/index.mdx +3 -15
- package/esm/core/FileUpload/index.mdx +1 -5
- package/esm/core/Link/link.mdx +4 -20
- package/esm/core/List/index.mdx +1 -5
- package/esm/core/NavList/NavList.stories.js +1 -5
- package/esm/core/NavList/NavListAuto/NavListBaseAuto.js +1 -3
- package/esm/core/NavList/NavListAuto/NavListItemAnchorAuto.js +2 -5
- package/esm/core/NavList/NavListAuto/NavListItemAuto.js +2 -6
- package/esm/core/NavList/NavListAuto/NavListItemButtonAuto.js +1 -3
- package/esm/core/NavList/NavListAuto/NavListMenuAuto.js +2 -5
- package/esm/core/NavList/NavListAuto/NavListSubMenuAuto.js +1 -3
- package/esm/core/NavList/NavListItem.js +2 -5
- package/esm/core/NavList/NavListItemBase.js +1 -6
- package/esm/core/NavList/NavMenuContainerContentList.js +3 -6
- package/esm/core/NavList/__stories__/Default.js +4 -10
- package/{es/core/NavList/__stories__/NavHorizontalLayout.js → esm/core/NavList/__stories__/NavVerticalLayout.js} +7 -13
- package/esm/core/NavList/index.js +1 -0
- package/esm/core/NavList/index.mdx +1 -5
- package/esm/core/NotificationBanner/index.mdx +1 -5
- package/esm/core/PhaseBanner/index.mdx +1 -4
- package/esm/core/RadioContainer/index.mdx +6 -30
- package/esm/core/SelectContainer/index.mdx +3 -15
- package/esm/core/SingleCharacterInputContainer/SingleCharacterInputContainer.stories.js +12 -0
- package/esm/core/SingleCharacterInputContainer/__stories__/Default.js +31 -0
- package/esm/core/SingleCharacterInputContainer/__stories__/WithDefaultError.js +35 -0
- package/esm/core/SingleCharacterInputContainer/__stories__/WithErrorMessageInvalidCode.js +41 -0
- package/esm/core/SingleCharacterInputContainer/__stories__/WithErrorMessageLessDigit.js +35 -0
- package/esm/core/SingleCharacterInputContainer/index.js +4 -0
- package/esm/core/SingleCharacterInputContainer/index.mdx +26 -0
- package/esm/core/SummaryList/index.mdx +2 -10
- package/esm/core/Table/index.mdx +6 -30
- package/esm/core/TextArea/index.mdx +6 -30
- package/esm/core/TextInput/index.mdx +6 -30
- package/esm/core/index.js +1 -0
- package/esm/index.js +1 -1
- package/esm/locales/el.js +4 -0
- package/esm/registry.js +4 -0
- package/esm/typography/HeadingCaption/index.mdx +1 -5
- package/esm/typography/Hint/index.mdx +1 -5
- package/esm/typography/NormalText/index.mdx +3 -15
- package/esm/typography/Paragraph/index.mdx +3 -15
- package/locales/el.d.ts +4 -0
- package/locales/el.js +4 -0
- package/package.json +3 -3
- package/registry.d.ts +3 -0
- package/registry.js +6 -0
- package/src/admin/AutoComplete/index.mdx +8 -30
- package/src/admin/CopyToClipboard/CopyToClipboard.stories.playwright.json +2 -2
- package/src/admin/CopyToClipboard/index.mdx +1 -5
- package/src/admin/Drawer/__stories__/Default.tsx +2 -5
- package/src/admin/Dropdown/Dropdown.stories.playwright.json +53 -0
- package/src/admin/Dropdown/__stories__/AlignRight.tsx +1 -1
- package/src/admin/Dropdown/__stories__/Default.tsx +1 -1
- package/src/admin/Dropdown/__stories__/PlacementTop.tsx +1 -1
- package/src/admin/Dropdown/index.mdx +3 -15
- package/src/admin/Modal/Modal.stories.playwright.json +37 -0
- package/src/admin/Modal/__stories__/AlertDialog.tsx +18 -3
- package/src/admin/Modal/__stories__/Default.tsx +18 -3
- package/src/admin/Modal/index.mdx +1 -5
- package/src/app/Footer/Footer.mdx +3 -14
- package/src/app/Header/index.mdx +3 -16
- package/src/app/QrCodeViewer/index.mdx +1 -5
- package/src/core/Accordion/Accordion.stories.playwright.json +2 -2
- package/src/core/Accordion/index.mdx +2 -10
- package/src/core/Button/__stories__/GroupingButtons.tsx +1 -0
- package/src/core/Button/__stories__/GroupingButtonsAndLinks.tsx +1 -0
- package/src/core/Button/__stories__/Warning.tsx +1 -0
- package/src/core/Button/index.mdx +4 -20
- package/src/core/Card/card.mdx +7 -35
- package/src/core/Checkbox/checkbox.mdx +6 -30
- package/src/core/DateInputContainer/index.mdx +4 -20
- package/src/core/ErrorSummary/ErrorSummary.stories.playwright.json +1 -1
- package/src/core/ErrorSummary/index.mdx +3 -15
- package/src/core/FileUpload/index.mdx +1 -5
- package/src/core/Link/link.mdx +4 -20
- package/src/core/List/index.mdx +1 -5
- package/src/core/NavList/NavList.stories.js +1 -5
- package/src/core/NavList/NavListAuto/NavListBaseAuto.tsx +1 -1
- package/src/core/NavList/NavListAuto/NavListItemAnchorAuto.tsx +1 -4
- package/src/core/NavList/NavListAuto/NavListItemAuto.tsx +2 -4
- package/src/core/NavList/NavListAuto/NavListItemButtonAuto.tsx +1 -1
- package/src/core/NavList/NavListAuto/NavListMenuAuto.tsx +2 -2
- package/src/core/NavList/NavListAuto/NavListSubMenuAuto.tsx +1 -1
- package/src/core/NavList/NavListItem.tsx +1 -2
- package/src/core/NavList/NavListItemBase.tsx +2 -5
- package/src/core/NavList/NavMenuContainerContentList.tsx +0 -2
- package/src/core/NavList/__stories__/Default.tsx +4 -7
- package/src/core/NavList/__stories__/{NavHorizontalLayout.tsx → NavVerticalLayout.tsx} +7 -10
- package/src/core/NavList/index.mdx +1 -5
- package/src/core/NavList/index.tsx +1 -0
- package/src/core/NavList/types.tsx +0 -1
- package/src/core/NotificationBanner/index.mdx +1 -5
- package/src/core/PhaseBanner/index.mdx +1 -4
- package/src/core/RadioContainer/index.mdx +6 -30
- package/src/core/SelectContainer/index.mdx +3 -15
- package/src/core/SingleCharacterInputContainer/SingleCharacterInputContainer.stories.js +13 -0
- package/src/core/SingleCharacterInputContainer/__stories__/Default.tsx +35 -0
- package/src/core/SingleCharacterInputContainer/__stories__/WithDefaultError.tsx +38 -0
- package/src/core/SingleCharacterInputContainer/__stories__/WithErrorMessageInvalidCode.tsx +38 -0
- package/src/core/SingleCharacterInputContainer/__stories__/WithErrorMessageLessDigit.tsx +38 -0
- package/src/core/SingleCharacterInputContainer/index.mdx +26 -0
- package/src/core/SingleCharacterInputContainer/index.tsx +4 -0
- package/src/core/SummaryList/index.mdx +2 -10
- package/src/core/Table/index.mdx +6 -30
- package/src/core/TextArea/index.mdx +6 -30
- package/src/core/TextInput/index.mdx +6 -30
- package/src/core/index.ts +1 -0
- package/src/locales/el.ts +4 -0
- package/src/registry.js +4 -0
- package/src/typography/HeadingCaption/index.mdx +1 -5
- package/src/typography/Hint/index.mdx +1 -5
- package/src/typography/NormalText/index.mdx +3 -15
- package/src/typography/Paragraph/index.mdx +3 -15
- package/typography/HeadingCaption/index.mdx +1 -5
- package/typography/Hint/index.mdx +1 -5
- package/typography/NormalText/index.mdx +3 -15
- package/typography/Paragraph/index.mdx +3 -15
- package/core/NavList/__stories__/NavHorizontalLayout.d.ts +0 -2
- package/core/NavList/__stories__/NavListEpathlaExample.d.ts +0 -2
- package/core/NavList/__stories__/NavListEpathlaExample.js +0 -153
- package/core/NavList/__stories__/NavListHorizontalAutoExample.d.ts +0 -2
- package/core/NavList/__stories__/NavListHorizontalAutoExample.js +0 -67
- package/core/NavList/__stories__/NavListSecondaryAutoExample.d.ts +0 -2
- package/core/NavList/__stories__/NavListSecondaryAutoExample.js +0 -281
- package/core/NavList/__stories__/NavListVerticalAutoExample.d.ts +0 -2
- package/core/NavList/__stories__/NavListVerticalAutoExample.js +0 -67
- package/es/core/NavList/__stories__/NavListEpathlaExample.js +0 -135
- package/es/core/NavList/__stories__/NavListHorizontalAutoExample.js +0 -51
- package/es/core/NavList/__stories__/NavListSecondaryAutoExample.js +0 -255
- package/es/core/NavList/__stories__/NavListVerticalAutoExample.js +0 -51
- package/esm/core/NavList/__stories__/NavListEpathlaExample.js +0 -135
- package/esm/core/NavList/__stories__/NavListHorizontalAutoExample.js +0 -51
- package/esm/core/NavList/__stories__/NavListSecondaryAutoExample.js +0 -255
- package/esm/core/NavList/__stories__/NavListVerticalAutoExample.js +0 -51
- package/src/core/NavList/__stories__/NavListEpathlaExample.tsx +0 -195
- package/src/core/NavList/__stories__/NavListHorizontalAutoExample.tsx +0 -65
- package/src/core/NavList/__stories__/NavListSecondaryAutoExample.tsx +0 -284
- package/src/core/NavList/__stories__/NavListVerticalAutoExample.tsx +0 -65
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
# Change Log - @digigov/ui
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 11 May 2023 10:48:56 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.32.1
|
|
6
|
+
Thu, 11 May 2023 10:48:56 GMT
|
|
7
|
+
|
|
8
|
+
### Patches
|
|
9
|
+
|
|
10
|
+
- Export components to display poperly on sdk docs
|
|
11
|
+
- Reexport missing components from `core` path
|
|
12
|
+
|
|
13
|
+
## 0.32.0
|
|
14
|
+
Tue, 02 May 2023 09:16:06 GMT
|
|
15
|
+
|
|
16
|
+
### Minor changes
|
|
17
|
+
|
|
18
|
+
- Remove unused nav props
|
|
19
|
+
|
|
20
|
+
### Patches
|
|
21
|
+
|
|
22
|
+
- Add otp validation translates
|
|
23
|
+
- Update NavList stories
|
|
4
24
|
|
|
5
25
|
## 0.31.0
|
|
6
26
|
Mon, 03 Apr 2023 11:13:15 GMT
|
|
@@ -16,51 +16,29 @@ import AutoComplete from '@digigov/ui/admin/AutoComplete';
|
|
|
16
16
|
|
|
17
17
|
### AutoComplete
|
|
18
18
|
|
|
19
|
-
<Story
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
story="Default.tsx"
|
|
23
|
-
/>
|
|
19
|
+
<Story packageName="@digigov/ui"
|
|
20
|
+
component="admin/AutoComplete"
|
|
21
|
+
story="Default.tsx" />
|
|
24
22
|
|
|
25
23
|
### AutoComplete with auto select
|
|
26
24
|
|
|
27
|
-
<Story
|
|
28
|
-
packageName="@digigov/ui"
|
|
29
|
-
component="admin/AutoComplete"
|
|
30
|
-
story="WithAutoSelect.tsx"
|
|
31
|
-
/>
|
|
25
|
+
<Story packageName="@digigov/ui" component="admin/AutoComplete" story="WithAutoSelect.tsx" />
|
|
32
26
|
|
|
33
27
|
### AutoComplete with inline style
|
|
34
28
|
|
|
35
|
-
<Story
|
|
36
|
-
packageName="@digigov/ui"
|
|
37
|
-
component="admin/AutoComplete"
|
|
38
|
-
story="WithInLine.tsx"
|
|
39
|
-
/>
|
|
29
|
+
<Story packageName="@digigov/ui" component="admin/AutoComplete" story="WithInLine.tsx" />
|
|
40
30
|
|
|
41
31
|
### AutoComplete with default value
|
|
42
32
|
|
|
43
|
-
<Story
|
|
44
|
-
packageName="@digigov/ui"
|
|
45
|
-
component="admin/AutoComplete"
|
|
46
|
-
story="WithDefaultValue.tsx"
|
|
47
|
-
/>
|
|
33
|
+
<Story packageName="@digigov/ui" component="admin/AutoComplete" story="WithDefaultValue.tsx" />
|
|
48
34
|
|
|
49
35
|
### AutoComplete with placeholder
|
|
50
36
|
|
|
51
|
-
<Story
|
|
52
|
-
packageName="@digigov/ui"
|
|
53
|
-
component="admin/AutoComplete"
|
|
54
|
-
story="WithPlaceHolder.tsx"
|
|
55
|
-
/>
|
|
37
|
+
<Story packageName="@digigov/ui" component="admin/AutoComplete" story="WithPlaceHolder.tsx" />
|
|
56
38
|
|
|
57
39
|
### AutoComplete with all option's values
|
|
58
40
|
|
|
59
|
-
<Story
|
|
60
|
-
packageName="@digigov/ui"
|
|
61
|
-
component="admin/AutoComplete"
|
|
62
|
-
story="WithShowAllValues.tsx"
|
|
63
|
-
/>
|
|
41
|
+
<Story packageName="@digigov/ui" component="admin/AutoComplete" story="WithShowAllValues.tsx" />
|
|
64
42
|
|
|
65
43
|
### AutoComplete with min length
|
|
66
44
|
|
|
@@ -11,11 +11,7 @@ import CopyToClipboard from '@digigov/ui/admin/CopyToClipboard';
|
|
|
11
11
|
|
|
12
12
|
### Default
|
|
13
13
|
|
|
14
|
-
<Story
|
|
15
|
-
packageName="@digigov/ui"
|
|
16
|
-
component="admin/CopyToClipboard"
|
|
17
|
-
story="Default.tsx"
|
|
18
|
-
/>
|
|
14
|
+
<Story packageName="@digigov/ui" component="admin/CopyToClipboard" story="Default.tsx" />
|
|
19
15
|
|
|
20
16
|
### Banner
|
|
21
17
|
|
|
@@ -116,7 +116,6 @@ var Default = function Default() {
|
|
|
116
116
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, {
|
|
117
117
|
key: key
|
|
118
118
|
}, /*#__PURE__*/_react["default"].createElement(_NavList.NavListItem, {
|
|
119
|
-
layout: layout,
|
|
120
119
|
link: item,
|
|
121
120
|
setRegisterButton: setRegisterButton,
|
|
122
121
|
setRegisterLink: setRegisterLink
|
|
@@ -126,11 +125,8 @@ var Default = function Default() {
|
|
|
126
125
|
layout: layout,
|
|
127
126
|
paddingLeft: 5,
|
|
128
127
|
paddingRight: 5
|
|
129
|
-
}, /*#__PURE__*/_react["default"].createElement(_NavList.NavMenuContainerTitle, {
|
|
130
|
-
|
|
131
|
-
}, item.label), /*#__PURE__*/_react["default"].createElement(_NavList.NavMenuContainerContent, null, /*#__PURE__*/_react["default"].createElement(_NavList.NavMenuContainerContentList, {
|
|
132
|
-
role: "menu",
|
|
133
|
-
layout: layout
|
|
128
|
+
}, /*#__PURE__*/_react["default"].createElement(_NavList.NavMenuContainerTitle, null, item.label), /*#__PURE__*/_react["default"].createElement(_NavList.NavMenuContainerContent, null, /*#__PURE__*/_react["default"].createElement(_NavList.NavMenuContainerContentList, {
|
|
129
|
+
role: "menu"
|
|
134
130
|
}, (_item$subMenu = item.subMenu) === null || _item$subMenu === void 0 ? void 0 : _item$subMenu.map(function (subMenu, menuIndex) {
|
|
135
131
|
return (0, _NavList.isNavListItemLinkInterface)(subMenu) && /*#__PURE__*/_react["default"].createElement(_NavList.NavMenuContainerContentListItem, {
|
|
136
132
|
key: menuIndex,
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "4",
|
|
3
|
+
"stories": {
|
|
4
|
+
"digigov-ui-admin-dropdown--align-right": {
|
|
5
|
+
"actionSets": [
|
|
6
|
+
{
|
|
7
|
+
"actions": [
|
|
8
|
+
{
|
|
9
|
+
"name": "click",
|
|
10
|
+
"args": {
|
|
11
|
+
"selector": "html>body>div:nth-child(5)>div>details>summary"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"id": "lWuaZaRFFDje",
|
|
16
|
+
"title": "Align right action"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"digigov-ui-admin-dropdown--default": {
|
|
21
|
+
"actionSets": [
|
|
22
|
+
{
|
|
23
|
+
"actions": [
|
|
24
|
+
{
|
|
25
|
+
"name": "click",
|
|
26
|
+
"args": {
|
|
27
|
+
"selector": "html>body>div:nth-child(5)>details>summary"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"id": "jCwDDNP3O4e8",
|
|
32
|
+
"title": "Open dropdown action"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"digigov-ui-admin-dropdown--placement-top": {
|
|
37
|
+
"actionSets": [
|
|
38
|
+
{
|
|
39
|
+
"actions": [
|
|
40
|
+
{
|
|
41
|
+
"name": "click",
|
|
42
|
+
"args": {
|
|
43
|
+
"selector": "html>body>div:nth-child(5)>div>details>summary"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"id": "w6MaGKfzgKOG",
|
|
48
|
+
"title": "Placement top action"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -26,8 +26,7 @@ var _NavVerticalItem = require("@digigov/ui/core/NavList/NavVerticalItem");
|
|
|
26
26
|
var _Button = require("@digigov/ui/core/Button");
|
|
27
27
|
|
|
28
28
|
var _ref = /*#__PURE__*/_react["default"].createElement(_Dropdown.Dropdown, {
|
|
29
|
-
align: "right"
|
|
30
|
-
open: true
|
|
29
|
+
align: "right"
|
|
31
30
|
}, /*#__PURE__*/_react["default"].createElement(_Dropdown.DropdownButton, {
|
|
32
31
|
role: "button",
|
|
33
32
|
"aria-haspopup": "true",
|
|
@@ -25,9 +25,7 @@ var _NavVerticalItem = require("@digigov/ui/core/NavList/NavVerticalItem");
|
|
|
25
25
|
|
|
26
26
|
var _Button = require("@digigov/ui/core/Button");
|
|
27
27
|
|
|
28
|
-
var _ref = /*#__PURE__*/_react["default"].createElement(_Dropdown.Dropdown, {
|
|
29
|
-
open: true
|
|
30
|
-
}, /*#__PURE__*/_react["default"].createElement(_Dropdown.DropdownButton, {
|
|
28
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_Dropdown.Dropdown, null, /*#__PURE__*/_react["default"].createElement(_Dropdown.DropdownButton, {
|
|
31
29
|
role: "button",
|
|
32
30
|
"aria-haspopup": "true",
|
|
33
31
|
"aria-controls": "menu2",
|
|
@@ -26,8 +26,7 @@ var _NavVerticalItem = require("@digigov/ui/core/NavList/NavVerticalItem");
|
|
|
26
26
|
var _Button = require("@digigov/ui/core/Button");
|
|
27
27
|
|
|
28
28
|
var _ref = /*#__PURE__*/_react["default"].createElement(_Dropdown.Dropdown, {
|
|
29
|
-
placement: "top"
|
|
30
|
-
open: true
|
|
29
|
+
placement: "top"
|
|
31
30
|
}, /*#__PURE__*/_react["default"].createElement(_Dropdown.DropdownButton, {
|
|
32
31
|
role: "button",
|
|
33
32
|
"aria-haspopup": "true",
|
package/admin/Dropdown/index.mdx
CHANGED
|
@@ -11,31 +11,19 @@ import Dropdown from '@digigov/ui/admin/Dropdown';
|
|
|
11
11
|
|
|
12
12
|
## How to use
|
|
13
13
|
|
|
14
|
-
<Story
|
|
15
|
-
packageName="@digigov/ui"
|
|
16
|
-
component="admin/Dropdown"
|
|
17
|
-
story="Default.tsx"
|
|
18
|
-
/>
|
|
14
|
+
<Story packageName="@digigov/ui" component="admin/Dropdown" story="Default.tsx" />
|
|
19
15
|
|
|
20
16
|
### Dropdown with align right
|
|
21
17
|
|
|
22
18
|
You can display the dropdown menu to the right side of the `Dropdown` button.
|
|
23
19
|
|
|
24
|
-
<Story
|
|
25
|
-
packageName="@digigov/ui"
|
|
26
|
-
component="admin/Dropdown"
|
|
27
|
-
story="AlignRight.tsx"
|
|
28
|
-
/>
|
|
20
|
+
<Story packageName="@digigov/ui" component="admin/Dropdown" story="AlignRight.tsx" />
|
|
29
21
|
|
|
30
22
|
### Dropdown with placement top
|
|
31
23
|
|
|
32
24
|
You can display the dropdown menu to the top of the `Dropdown` button.
|
|
33
25
|
|
|
34
|
-
<Story
|
|
35
|
-
packageName="@digigov/ui"
|
|
36
|
-
component="admin/Dropdown"
|
|
37
|
-
story="PlacementTop.tsx"
|
|
38
|
-
/>
|
|
26
|
+
<Story packageName="@digigov/ui" component="admin/Dropdown" story="PlacementTop.tsx" />
|
|
39
27
|
|
|
40
28
|
You can read more about the accessibility patterns used in our Dropdown
|
|
41
29
|
implementation in the ARIA Authoring Practices Guide (APG) at
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "4",
|
|
3
|
+
"stories": {
|
|
4
|
+
"digigov-ui-admin-modal--alert-dialog": {
|
|
5
|
+
"actionSets": [
|
|
6
|
+
{
|
|
7
|
+
"actions": [
|
|
8
|
+
{
|
|
9
|
+
"name": "click",
|
|
10
|
+
"args": {
|
|
11
|
+
"selector": "html>body>div:nth-child(5)>div>button"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"id": "Dk4oIFwRzm6e",
|
|
16
|
+
"title": "Alert dialog action"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"digigov-ui-admin-modal--default": {
|
|
21
|
+
"actionSets": [
|
|
22
|
+
{
|
|
23
|
+
"actions": [
|
|
24
|
+
{
|
|
25
|
+
"name": "click",
|
|
26
|
+
"args": {
|
|
27
|
+
"selector": "html>body>div:nth-child(5)>div>button"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"id": "YyIZkcmdBlRP",
|
|
32
|
+
"title": "Open modal action"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -2,12 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
|
|
5
7
|
Object.defineProperty(exports, "__esModule", {
|
|
6
8
|
value: true
|
|
7
9
|
});
|
|
8
10
|
exports["default"] = exports.AlertDialog = void 0;
|
|
9
11
|
|
|
10
|
-
var
|
|
12
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
|
+
|
|
14
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
15
|
|
|
12
16
|
var _Modal = require("@digigov/ui/admin/Modal");
|
|
13
17
|
|
|
@@ -15,21 +19,41 @@ var _Button = require("@digigov/ui/core/Button");
|
|
|
15
19
|
|
|
16
20
|
var _Paragraph = require("@digigov/ui/typography/Paragraph");
|
|
17
21
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}, /*#__PURE__*/_react["default"].createElement(_Modal.ModalHeading, {
|
|
22
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
+
|
|
24
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
+
|
|
26
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_Modal.ModalHeading, {
|
|
24
27
|
id: "modal-label"
|
|
25
|
-
}, "\u0395\u03C0\u03B9\u03B2\u03B5\u03B2\u03B1\u03AF\u03C9\u03C3\u03B7")
|
|
28
|
+
}, "\u0395\u03C0\u03B9\u03B2\u03B5\u03B2\u03B1\u03AF\u03C9\u03C3\u03B7");
|
|
29
|
+
|
|
30
|
+
var _ref2 = /*#__PURE__*/_react["default"].createElement(_Modal.ModalContent, {
|
|
26
31
|
id: "modal-content"
|
|
27
|
-
}, /*#__PURE__*/_react["default"].createElement(_Paragraph.Paragraph, null, "\u0395\u03AF\u03C3\u03C4\u03B5 \u03C3\u03AF\u03B3\u03BF\u03C5\u03C1\u03BF\u03B9 \u03CC\u03C4\u03B9 \u03B8\u03AD\u03BB\u03B5\u03C4\u03B5 \u03BD\u03B1 \u03B4\u03B9\u03B1\u03B3\u03C1\u03AC\u03C8\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B5\u03B3\u03B3\u03C1\u03B1\u03C6\u03AE;"))
|
|
28
|
-
|
|
29
|
-
|
|
32
|
+
}, /*#__PURE__*/_react["default"].createElement(_Paragraph.Paragraph, null, "\u0395\u03AF\u03C3\u03C4\u03B5 \u03C3\u03AF\u03B3\u03BF\u03C5\u03C1\u03BF\u03B9 \u03CC\u03C4\u03B9 \u03B8\u03AD\u03BB\u03B5\u03C4\u03B5 \u03BD\u03B1 \u03B4\u03B9\u03B1\u03B3\u03C1\u03AC\u03C8\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B5\u03B3\u03B3\u03C1\u03B1\u03C6\u03AE;"));
|
|
33
|
+
|
|
34
|
+
var _ref3 = /*#__PURE__*/_react["default"].createElement(_Button.Button, null, "\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE");
|
|
30
35
|
|
|
31
36
|
var AlertDialog = function AlertDialog() {
|
|
32
|
-
|
|
37
|
+
var _useState = (0, _react.useState)(false),
|
|
38
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
39
|
+
open = _useState2[0],
|
|
40
|
+
setOpen = _useState2[1];
|
|
41
|
+
|
|
42
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Button.Button, {
|
|
43
|
+
onClick: function onClick() {
|
|
44
|
+
setOpen(!open);
|
|
45
|
+
}
|
|
46
|
+
}, "\u0386\u03BD\u03BF\u03B9\u03BE\u03B5 Modal"), /*#__PURE__*/_react["default"].createElement(_Modal.Modal, {
|
|
47
|
+
open: open,
|
|
48
|
+
role: "alertdialog",
|
|
49
|
+
"aria-labelledby": "modal-label",
|
|
50
|
+
"aria-describedby": "modal-content"
|
|
51
|
+
}, _ref, _ref2, /*#__PURE__*/_react["default"].createElement(_Modal.ModalAction, null, _ref3, /*#__PURE__*/_react["default"].createElement(_Button.Button, {
|
|
52
|
+
variant: "link",
|
|
53
|
+
onClick: function onClick() {
|
|
54
|
+
setOpen(!open);
|
|
55
|
+
}
|
|
56
|
+
}, "\u0391\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7"))));
|
|
33
57
|
};
|
|
34
58
|
|
|
35
59
|
exports.AlertDialog = AlertDialog;
|
|
@@ -2,12 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
|
|
5
7
|
Object.defineProperty(exports, "__esModule", {
|
|
6
8
|
value: true
|
|
7
9
|
});
|
|
8
10
|
exports["default"] = exports.Default = void 0;
|
|
9
11
|
|
|
10
|
-
var
|
|
12
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
|
+
|
|
14
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
15
|
|
|
12
16
|
var _Modal = require("@digigov/ui/admin/Modal");
|
|
13
17
|
|
|
@@ -19,20 +23,40 @@ var _FieldContainer = require("@digigov/ui/core/FieldContainer");
|
|
|
19
23
|
|
|
20
24
|
var _LabelContainer = require("@digigov/ui/core/LabelContainer");
|
|
21
25
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
+
|
|
28
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
|
+
|
|
30
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_Modal.ModalHeading, {
|
|
26
31
|
id: "modal-label"
|
|
27
|
-
}, "\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03C4\u03B7\u03BB\u03B5\u03C6\u03CE\u03BD\u03BF\u03C5")
|
|
32
|
+
}, "\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03C4\u03B7\u03BB\u03B5\u03C6\u03CE\u03BD\u03BF\u03C5");
|
|
33
|
+
|
|
34
|
+
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, {
|
|
28
35
|
name: "inputext",
|
|
29
36
|
characterWidth: 10
|
|
30
|
-
}))))
|
|
31
|
-
|
|
32
|
-
|
|
37
|
+
}))));
|
|
38
|
+
|
|
39
|
+
var _ref3 = /*#__PURE__*/_react["default"].createElement(_Button.Button, null, "\u03A5\u03C0\u03BF\u03B2\u03BF\u03BB\u03AE");
|
|
33
40
|
|
|
34
41
|
var Default = function Default() {
|
|
35
|
-
|
|
42
|
+
var _useState = (0, _react.useState)(false),
|
|
43
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
44
|
+
open = _useState2[0],
|
|
45
|
+
setOpen = _useState2[1];
|
|
46
|
+
|
|
47
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Button.Button, {
|
|
48
|
+
onClick: function onClick() {
|
|
49
|
+
setOpen(!open);
|
|
50
|
+
}
|
|
51
|
+
}, "\u0386\u03BD\u03BF\u03B9\u03BE\u03B5 Modal"), /*#__PURE__*/_react["default"].createElement(_Modal.Modal, {
|
|
52
|
+
open: open,
|
|
53
|
+
"aria-labelledby": "modal-label"
|
|
54
|
+
}, _ref, _ref2, /*#__PURE__*/_react["default"].createElement(_Modal.ModalAction, null, _ref3, /*#__PURE__*/_react["default"].createElement(_Button.Button, {
|
|
55
|
+
variant: "link",
|
|
56
|
+
onClick: function onClick() {
|
|
57
|
+
setOpen(!open);
|
|
58
|
+
}
|
|
59
|
+
}, "\u0391\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7"))));
|
|
36
60
|
};
|
|
37
61
|
|
|
38
62
|
exports.Default = Default;
|
package/admin/Modal/index.mdx
CHANGED
|
@@ -15,11 +15,7 @@ import Modal, {ModalHeading, ModalContent, ModalAction} from "@digigov/ui/admin/
|
|
|
15
15
|
|
|
16
16
|
### As an Alert Dialog
|
|
17
17
|
|
|
18
|
-
<Story
|
|
19
|
-
packageName="@digigov/ui"
|
|
20
|
-
component="admin/Modal"
|
|
21
|
-
story="AlertDialog.tsx"
|
|
22
|
-
/>
|
|
18
|
+
<Story packageName="@digigov/ui" component="admin/Modal" story="AlertDialog.tsx" />
|
|
23
19
|
|
|
24
20
|
## Accessibility
|
|
25
21
|
|
package/app/Footer/Footer.mdx
CHANGED
|
@@ -15,26 +15,15 @@ import Footer from '@digigov/ui/app/Footer';
|
|
|
15
15
|
|
|
16
16
|
### Footer with logos
|
|
17
17
|
|
|
18
|
-
<Story
|
|
19
|
-
packageName="@digigov/ui"
|
|
20
|
-
component="app/Footer"
|
|
21
|
-
story="FooterWithLogo.tsx"
|
|
22
|
-
/>
|
|
18
|
+
<Story packageName="@digigov/ui" component="app/Footer" story="FooterWithLogo.tsx" />
|
|
23
19
|
|
|
24
20
|
### Footer with secondary navigation
|
|
25
21
|
|
|
26
|
-
<Story
|
|
27
|
-
packageName="@digigov/ui"
|
|
28
|
-
component="app/Footer"
|
|
29
|
-
story="FooterWithSecondaryNavigation.tsx"
|
|
30
|
-
/>
|
|
22
|
+
<Story packageName="@digigov/ui" component="app/Footer" story="FooterWithSecondaryNavigation.tsx" />
|
|
31
23
|
|
|
32
24
|
### Footer with links to meta information
|
|
33
25
|
|
|
34
|
-
<Story
|
|
35
|
-
packageName="@digigov/ui"
|
|
36
|
-
component="app/Footer"
|
|
37
|
-
story="FooterWithLink.tsx"
|
|
26
|
+
<Story packageName="@digigov/ui" component="app/Footer" story="FooterWithLink.tsx"
|
|
38
27
|
/>
|
|
39
28
|
|
|
40
29
|
### All inclusive footer
|
package/app/Header/index.mdx
CHANGED
|
@@ -11,28 +11,15 @@ import Header from '@digigov/ui/app/Header';
|
|
|
11
11
|
|
|
12
12
|
### Default header
|
|
13
13
|
|
|
14
|
-
<Story
|
|
15
|
-
title="### Default"
|
|
16
|
-
packageName="@digigov/ui"
|
|
17
|
-
component="app/Header"
|
|
18
|
-
story="Default.tsx"
|
|
19
|
-
/>
|
|
14
|
+
<Story title="### Default" packageName="@digigov/ui" component="app/Header" story="Default.tsx" />
|
|
20
15
|
|
|
21
16
|
### Header with service name
|
|
22
17
|
|
|
23
|
-
<Story
|
|
24
|
-
packageName="@digigov/ui"
|
|
25
|
-
component="app/Header"
|
|
26
|
-
story="WithServiceName.tsx"
|
|
27
|
-
/>
|
|
18
|
+
<Story packageName="@digigov/ui" component="app/Header" story="WithServiceName.tsx" />
|
|
28
19
|
|
|
29
20
|
### Header with service logo and service name
|
|
30
21
|
|
|
31
|
-
<Story
|
|
32
|
-
packageName="@digigov/ui"
|
|
33
|
-
component="app/Header"
|
|
34
|
-
story="WithServiceNameAndLogo.tsx"
|
|
35
|
-
/>
|
|
22
|
+
<Story packageName="@digigov/ui" component="app/Header" story="WithServiceNameAndLogo.tsx" />
|
|
36
23
|
|
|
37
24
|
### Default header with navigation
|
|
38
25
|
|
|
@@ -11,11 +11,7 @@ import QrCodeViewer from '@digigov/ui/app/QrCodeViewer';
|
|
|
11
11
|
|
|
12
12
|
### Default QrCodeViewer
|
|
13
13
|
|
|
14
|
-
<Story
|
|
15
|
-
packageName="@digigov/ui"
|
|
16
|
-
component="app/QrCodeViewer"
|
|
17
|
-
story="Default.tsx"
|
|
18
|
-
/>
|
|
14
|
+
<Story packageName="@digigov/ui" component="app/QrCodeViewer" story="Default.tsx" />
|
|
19
15
|
|
|
20
16
|
### Custom QrCodeViewer
|
|
21
17
|
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
{
|
|
9
9
|
"name": "click",
|
|
10
10
|
"args": {
|
|
11
|
-
"selector": "
|
|
11
|
+
"selector": "html>body>div:nth-child(5)>div>details:nth-child(2)>summary"
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
],
|
|
15
|
-
"id": "
|
|
15
|
+
"id": "ZB3bfJynL-CN",
|
|
16
16
|
"title": "Mouse navigation"
|
|
17
17
|
}
|
|
18
18
|
]
|
package/core/Accordion/index.mdx
CHANGED
|
@@ -15,21 +15,13 @@ import Accordion from '@digigov/ui/core/Accordion';
|
|
|
15
15
|
|
|
16
16
|
## How to use
|
|
17
17
|
|
|
18
|
-
<Story
|
|
19
|
-
packageName="@digigov/ui"
|
|
20
|
-
component="core/Accordion"
|
|
21
|
-
story="Default.tsx"
|
|
22
|
-
/>
|
|
18
|
+
<Story packageName="@digigov/ui" component="core/Accordion" story="Default.tsx" />
|
|
23
19
|
|
|
24
20
|
### Accordion with Hints
|
|
25
21
|
|
|
26
22
|
Accordions hide content, so the labels need to be clear. If necessary, you can add a summary line to help users understand what is in the section.
|
|
27
23
|
|
|
28
|
-
<Story
|
|
29
|
-
packageName="@digigov/ui"
|
|
30
|
-
component="core/Accordion"
|
|
31
|
-
story="WithHints.tsx"
|
|
32
|
-
/>
|
|
24
|
+
<Story packageName="@digigov/ui" component="core/Accordion" story="WithHints.tsx" />
|
|
33
25
|
|
|
34
26
|
## Accessibility
|
|
35
27
|
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.GroupingButtons = void 0;
|
|
8
|
+
exports["default"] = exports.GroupingButtons = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
@@ -22,4 +22,6 @@ var GroupingButtons = function GroupingButtons() {
|
|
|
22
22
|
return _ref;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
exports.GroupingButtons = GroupingButtons;
|
|
25
|
+
exports.GroupingButtons = GroupingButtons;
|
|
26
|
+
var _default = GroupingButtons;
|
|
27
|
+
exports["default"] = _default;
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.GroupingButtonsAndLinks = void 0;
|
|
8
|
+
exports["default"] = exports.GroupingButtonsAndLinks = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
@@ -24,4 +24,6 @@ var GroupingButtonsAndLinks = function GroupingButtonsAndLinks() {
|
|
|
24
24
|
return _ref;
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
exports.GroupingButtonsAndLinks = GroupingButtonsAndLinks;
|
|
27
|
+
exports.GroupingButtonsAndLinks = GroupingButtonsAndLinks;
|
|
28
|
+
var _default = GroupingButtonsAndLinks;
|
|
29
|
+
exports["default"] = _default;
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.Warning = void 0;
|
|
8
|
+
exports["default"] = exports.Warning = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
@@ -20,4 +20,6 @@ var Warning = function Warning() {
|
|
|
20
20
|
return _ref;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
exports.Warning = Warning;
|
|
23
|
+
exports.Warning = Warning;
|
|
24
|
+
var _default = Warning;
|
|
25
|
+
exports["default"] = _default;
|