@digigov/ui 2.0.0-rc.1 → 2.0.0-rc.3

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.
Files changed (263) hide show
  1. package/app/Footer/index.mdx +18 -5
  2. package/app/Header/index.mdx +7 -5
  3. package/app/Masthead/index.mdx +9 -4
  4. package/app/Modal/index.mdx +11 -4
  5. package/app/NotFound/index.mdx +2 -0
  6. package/app/Panel/index.mdx +9 -4
  7. package/app/PhaseBannerHeader/index.mdx +4 -4
  8. package/app/QrCodeViewer/index.mdx +4 -4
  9. package/cjs/app/Footer/index.mdx +18 -5
  10. package/cjs/app/Header/index.mdx +7 -5
  11. package/cjs/app/Masthead/index.mdx +9 -4
  12. package/cjs/app/Modal/index.mdx +11 -4
  13. package/cjs/app/NotFound/index.mdx +2 -0
  14. package/cjs/app/Panel/index.mdx +9 -4
  15. package/cjs/app/PhaseBannerHeader/index.mdx +4 -4
  16. package/cjs/app/QrCodeViewer/index.mdx +4 -4
  17. package/cjs/content/Accordion/__stories__/Auto/index.js +2 -3
  18. package/cjs/content/Accordion/hooks/index.js +0 -1
  19. package/cjs/content/Accordion/index.mdx +9 -5
  20. package/cjs/content/Blockquote/index.mdx +3 -5
  21. package/cjs/content/Card/index.mdx +3 -5
  22. package/cjs/content/Chip/index.mdx +4 -5
  23. package/cjs/content/Details/index.mdx +3 -5
  24. package/cjs/content/List/__stories__/Default/index.js +1 -2
  25. package/cjs/content/List/index.mdx +3 -5
  26. package/cjs/content/SafeHTML/index.js +4 -2
  27. package/cjs/content/StepNav/index.mdx +28 -5
  28. package/cjs/content/SummaryList/index.mdx +10 -5
  29. package/cjs/content/Table/index.mdx +13 -14
  30. package/cjs/content/TaskList/index.mdx +9 -5
  31. package/cjs/content/Timeline/index.mdx +10 -5
  32. package/cjs/feedback/CopyToClipboard/index.mdx +3 -5
  33. package/cjs/feedback/ErrorSummary/index.mdx +3 -5
  34. package/cjs/feedback/NotificationBanner/index.mdx +14 -5
  35. package/cjs/feedback/PhaseBanner/index.mdx +8 -5
  36. package/cjs/feedback/WarningText/index.mdx +5 -5
  37. package/cjs/form/AutoComplete/index.mdx +13 -12
  38. package/cjs/form/Button/index.mdx +3 -5
  39. package/cjs/form/Checkbox/index.mdx +3 -5
  40. package/cjs/form/DateInputContainer/index.mdx +3 -5
  41. package/cjs/form/ErrorMessage/index.mdx +3 -5
  42. package/cjs/form/FileUpload/index.mdx +3 -5
  43. package/cjs/form/RadioContainer/index.mdx +2 -14
  44. package/cjs/form/SelectContainer/index.mdx +3 -1
  45. package/cjs/form/SingleCharacterInputs/index.mdx +3 -5
  46. package/cjs/form/TextArea/index.mdx +3 -5
  47. package/cjs/form/TextInput/TextInput.stories/index.js +12 -0
  48. package/cjs/form/TextInput/__stories__/DisabledInputWithValue/index.js +31 -0
  49. package/cjs/form/TextInput/index.mdx +3 -5
  50. package/cjs/govgr/Footer/index.mdx +2 -0
  51. package/cjs/layouts/Basic/Bottom/__stories__/Default/index.js +22 -0
  52. package/cjs/layouts/Basic/Bottom/index.mdx +9 -28
  53. package/cjs/layouts/Basic/Container/__stories__/Default/index.js +20 -0
  54. package/cjs/layouts/Basic/Container/index.mdx +23 -0
  55. package/cjs/layouts/Basic/Main/__stories__/Default/index.js +20 -0
  56. package/cjs/layouts/Basic/Main/index.mdx +10 -47
  57. package/cjs/layouts/Basic/Top/__stories__/Default/index.js +20 -0
  58. package/cjs/layouts/Basic/Top/index.mdx +10 -55
  59. package/cjs/layouts/Basic/index.mdx +27 -25
  60. package/cjs/layouts/Grid/index.mdx +39 -0
  61. package/cjs/lazy/index.js +117 -9
  62. package/cjs/navigation/BackLink/index.mdx +4 -5
  63. package/cjs/navigation/Breadcrumbs/index.mdx +6 -5
  64. package/cjs/navigation/Drawer/index.mdx +4 -10
  65. package/cjs/navigation/Dropdown/index.mdx +3 -5
  66. package/cjs/navigation/Link/index.mdx +5 -15
  67. package/cjs/navigation/NavList/__stories__/Default/index.js +14 -2
  68. package/cjs/navigation/NavList/__stories__/HorizontalWithDrawer/index.js +35 -2
  69. package/cjs/navigation/NavList/__stories__/HorizontalWithoutDrawer/index.js +35 -2
  70. package/cjs/navigation/NavList/__stories__/NavListWithoutNav/index.js +14 -2
  71. package/cjs/navigation/NavList/__stories__/UsingNavListAuto/index.js +37 -4
  72. package/cjs/navigation/NavList/__stories__/Vertical/index.js +14 -2
  73. package/cjs/navigation/NavList/__stories__/VerticalWithoutDrawer/index.js +35 -2
  74. package/cjs/navigation/NavList/index.mdx +23 -7
  75. package/cjs/navigation/Pagination/index.mdx +9 -5
  76. package/cjs/navigation/Tabs/index.mdx +9 -5
  77. package/cjs/registry/index.js +2 -0
  78. package/cjs/typography/Heading/index.mdx +3 -5
  79. package/cjs/typography/HeadingCaption/index.mdx +3 -5
  80. package/cjs/typography/Hint/index.mdx +3 -5
  81. package/cjs/typography/NormalText/index.mdx +3 -5
  82. package/cjs/typography/Paragraph/index.mdx +9 -30
  83. package/cjs/typography/Typography/index.js +23 -0
  84. package/cjs/typography/Typography/index.mdx +12 -0
  85. package/cjs/typography/index.js +11 -0
  86. package/cjs/utils/Base/index.mdx +13 -0
  87. package/cjs/utils/VisuallyHidden/index.mdx +10 -5
  88. package/content/Accordion/__stories__/Auto/index.js +2 -3
  89. package/content/Accordion/hooks/index.js +0 -1
  90. package/content/Accordion/index.mdx +9 -5
  91. package/content/Blockquote/index.mdx +3 -5
  92. package/content/Card/index.mdx +3 -5
  93. package/content/Chip/index.mdx +4 -5
  94. package/content/Details/index.mdx +3 -5
  95. package/content/List/__stories__/Default/index.js +1 -2
  96. package/content/List/index.mdx +3 -5
  97. package/content/SafeHTML/index.d.ts +2 -1
  98. package/content/SafeHTML/index.js +4 -2
  99. package/content/StepNav/index.mdx +28 -5
  100. package/content/SummaryList/index.mdx +10 -5
  101. package/content/Table/index.mdx +13 -14
  102. package/content/TaskList/index.mdx +9 -5
  103. package/content/Timeline/index.mdx +10 -5
  104. package/feedback/CopyToClipboard/index.mdx +3 -5
  105. package/feedback/ErrorSummary/index.mdx +3 -5
  106. package/feedback/NotificationBanner/index.mdx +14 -5
  107. package/feedback/PhaseBanner/index.mdx +8 -5
  108. package/feedback/WarningText/index.mdx +5 -5
  109. package/form/AutoComplete/index.mdx +13 -12
  110. package/form/Button/index.mdx +3 -5
  111. package/form/Checkbox/index.mdx +3 -5
  112. package/form/DateInputContainer/index.mdx +3 -5
  113. package/form/ErrorMessage/index.mdx +3 -5
  114. package/form/FileUpload/index.mdx +3 -5
  115. package/form/RadioContainer/index.mdx +2 -14
  116. package/form/SelectContainer/index.mdx +3 -1
  117. package/form/SingleCharacterInputs/index.mdx +3 -5
  118. package/form/TextArea/index.mdx +3 -5
  119. package/form/TextInput/TextInput.stories/index.js +1 -0
  120. package/form/TextInput/TextInput.stories.d.ts +1 -0
  121. package/form/TextInput/__stories__/DisabledInputWithValue/index.js +25 -0
  122. package/form/TextInput/__stories__/DisabledInputWithValue/package.json +6 -0
  123. package/form/TextInput/__stories__/DisabledInputWithValue.d.ts +3 -0
  124. package/form/TextInput/index.mdx +3 -5
  125. package/govgr/Footer/index.mdx +2 -0
  126. package/index.js +1 -1
  127. package/layouts/Basic/Bottom/__stories__/Default/index.js +15 -0
  128. package/layouts/Basic/Bottom/__stories__/Default/package.json +6 -0
  129. package/layouts/Basic/Bottom/__stories__/Default.d.ts +3 -0
  130. package/layouts/Basic/Bottom/index.mdx +9 -28
  131. package/layouts/Basic/Container/__stories__/Default/index.js +13 -0
  132. package/layouts/Basic/Container/__stories__/Default/package.json +6 -0
  133. package/layouts/Basic/Container/__stories__/Default.d.ts +3 -0
  134. package/layouts/Basic/Container/index.mdx +23 -0
  135. package/layouts/Basic/Main/__stories__/Default/index.js +13 -0
  136. package/layouts/Basic/Main/__stories__/Default/package.json +6 -0
  137. package/layouts/Basic/Main/__stories__/Default.d.ts +3 -0
  138. package/layouts/Basic/Main/index.mdx +10 -47
  139. package/layouts/Basic/Top/__stories__/Default/index.js +13 -0
  140. package/layouts/Basic/Top/__stories__/Default/package.json +6 -0
  141. package/layouts/Basic/Top/__stories__/Default.d.ts +3 -0
  142. package/layouts/Basic/Top/index.mdx +10 -55
  143. package/layouts/Basic/index.mdx +27 -25
  144. package/layouts/Grid/index.mdx +39 -0
  145. package/lazy/index.js +91 -7
  146. package/lazy.d.ts +15 -3
  147. package/navigation/BackLink/index.mdx +4 -5
  148. package/navigation/Breadcrumbs/index.mdx +6 -5
  149. package/navigation/Drawer/index.mdx +4 -10
  150. package/navigation/Dropdown/index.mdx +3 -5
  151. package/navigation/Link/index.mdx +5 -15
  152. package/navigation/NavList/__stories__/Default/index.js +13 -1
  153. package/navigation/NavList/__stories__/HorizontalWithDrawer/index.js +34 -1
  154. package/navigation/NavList/__stories__/HorizontalWithoutDrawer/index.js +34 -1
  155. package/navigation/NavList/__stories__/NavListWithoutNav/index.js +13 -1
  156. package/navigation/NavList/__stories__/UsingNavListAuto/index.js +35 -2
  157. package/navigation/NavList/__stories__/Vertical/index.js +13 -1
  158. package/navigation/NavList/__stories__/VerticalWithoutDrawer/index.js +34 -1
  159. package/navigation/NavList/index.mdx +23 -7
  160. package/navigation/Pagination/index.mdx +9 -5
  161. package/navigation/Tabs/index.mdx +9 -5
  162. package/package.json +4 -4
  163. package/registry/index.js +2 -0
  164. package/registry.d.ts +1 -0
  165. package/src/app/Footer/index.mdx +18 -5
  166. package/src/app/Header/index.mdx +7 -5
  167. package/src/app/Masthead/index.mdx +9 -4
  168. package/src/app/Modal/index.mdx +11 -4
  169. package/src/app/NotFound/index.mdx +2 -0
  170. package/src/app/Panel/index.mdx +9 -4
  171. package/src/app/PhaseBannerHeader/index.mdx +4 -4
  172. package/src/app/QrCodeViewer/index.mdx +4 -4
  173. package/src/content/Accordion/__stories__/Auto.tsx +2 -2
  174. package/src/content/Accordion/auto.tsx +1 -1
  175. package/src/content/Accordion/hooks.ts +0 -1
  176. package/src/content/Accordion/index.mdx +9 -5
  177. package/src/content/Blockquote/index.mdx +3 -5
  178. package/src/content/Card/index.mdx +3 -5
  179. package/src/content/Chip/index.mdx +4 -5
  180. package/src/content/Details/index.mdx +3 -5
  181. package/src/content/List/__stories__/Default.tsx +3 -4
  182. package/src/content/List/index.mdx +3 -5
  183. package/src/content/SafeHTML/index.tsx +4 -2
  184. package/src/content/StepNav/index.mdx +28 -5
  185. package/src/content/SummaryList/index.mdx +10 -5
  186. package/src/content/Table/index.mdx +13 -14
  187. package/src/content/TaskList/index.mdx +9 -5
  188. package/src/content/Timeline/index.mdx +10 -5
  189. package/src/feedback/CopyToClipboard/index.mdx +3 -5
  190. package/src/feedback/ErrorSummary/index.mdx +3 -5
  191. package/src/feedback/NotificationBanner/index.mdx +14 -5
  192. package/src/feedback/PhaseBanner/index.mdx +8 -5
  193. package/src/feedback/WarningText/index.mdx +5 -5
  194. package/src/form/AutoComplete/index.mdx +13 -12
  195. package/src/form/Button/index.mdx +3 -5
  196. package/src/form/Checkbox/index.mdx +3 -5
  197. package/src/form/DateInputContainer/index.mdx +3 -5
  198. package/src/form/ErrorMessage/index.mdx +3 -5
  199. package/src/form/FileUpload/index.mdx +3 -5
  200. package/src/form/RadioContainer/index.mdx +2 -14
  201. package/src/form/SelectContainer/index.mdx +3 -1
  202. package/src/form/SingleCharacterInputs/index.mdx +3 -5
  203. package/src/form/TextArea/index.mdx +3 -5
  204. package/src/form/TextInput/TextInput.stories.js +1 -0
  205. package/src/form/TextInput/__stories__/DisabledInputWithValue.tsx +27 -0
  206. package/src/form/TextInput/index.mdx +3 -5
  207. package/src/govgr/Footer/index.mdx +2 -0
  208. package/src/layouts/Basic/Bottom/__stories__/Default.tsx +35 -0
  209. package/src/layouts/Basic/Bottom/index.mdx +9 -28
  210. package/src/layouts/Basic/Container/__stories__/Default.tsx +30 -0
  211. package/src/layouts/Basic/Container/index.mdx +23 -0
  212. package/src/layouts/Basic/Main/__stories__/Default.tsx +30 -0
  213. package/src/layouts/Basic/Main/index.mdx +10 -47
  214. package/src/layouts/Basic/Top/__stories__/Default.tsx +28 -0
  215. package/src/layouts/Basic/Top/index.mdx +10 -55
  216. package/src/layouts/Basic/index.mdx +27 -25
  217. package/src/layouts/Grid/index.mdx +39 -0
  218. package/src/lazy.js +13 -1
  219. package/src/navigation/BackLink/index.mdx +4 -5
  220. package/src/navigation/Breadcrumbs/index.mdx +6 -5
  221. package/src/navigation/Drawer/index.mdx +4 -10
  222. package/src/navigation/Dropdown/index.mdx +3 -5
  223. package/src/navigation/Link/index.mdx +5 -15
  224. package/src/navigation/NavList/__stories__/Default.tsx +18 -1
  225. package/src/navigation/NavList/__stories__/HorizontalWithDrawer.tsx +37 -1
  226. package/src/navigation/NavList/__stories__/HorizontalWithoutDrawer.tsx +37 -1
  227. package/src/navigation/NavList/__stories__/NavListWithoutNav.tsx +18 -1
  228. package/src/navigation/NavList/__stories__/UsingNavListAuto.tsx +39 -2
  229. package/src/navigation/NavList/__stories__/Vertical.tsx +18 -1
  230. package/src/navigation/NavList/__stories__/VerticalWithoutDrawer.tsx +37 -1
  231. package/src/navigation/NavList/index.mdx +23 -7
  232. package/src/navigation/Pagination/index.mdx +9 -5
  233. package/src/navigation/Tabs/index.mdx +9 -5
  234. package/src/registry.js +2 -0
  235. package/src/typography/Heading/index.mdx +3 -5
  236. package/src/typography/HeadingCaption/index.mdx +3 -5
  237. package/src/typography/Hint/index.mdx +3 -5
  238. package/src/typography/NormalText/index.mdx +3 -5
  239. package/src/typography/Paragraph/index.mdx +9 -30
  240. package/src/typography/Typography/index.mdx +12 -0
  241. package/src/typography/Typography/index.tsx +4 -0
  242. package/src/typography/index.ts +1 -0
  243. package/src/utils/Base/index.mdx +13 -0
  244. package/src/utils/VisuallyHidden/index.mdx +10 -5
  245. package/typography/Heading/index.mdx +3 -5
  246. package/typography/HeadingCaption/index.mdx +3 -5
  247. package/typography/Hint/index.mdx +3 -5
  248. package/typography/NormalText/index.mdx +3 -5
  249. package/typography/Paragraph/index.mdx +9 -30
  250. package/typography/Typography/index.d.ts +3 -0
  251. package/typography/Typography/index.js +3 -0
  252. package/typography/Typography/index.mdx +12 -0
  253. package/typography/Typography/package.json +6 -0
  254. package/typography/index.d.ts +1 -0
  255. package/typography/index.js +2 -1
  256. package/utils/Base/index.mdx +13 -0
  257. package/utils/VisuallyHidden/index.mdx +10 -5
  258. package/cjs/content/List/List.stories.playwright.json +0 -27
  259. package/cjs/layouts/Basic/Masthead/index.mdx +0 -65
  260. package/content/List/List.stories.playwright.json +0 -27
  261. package/layouts/Basic/Masthead/index.mdx +0 -65
  262. package/src/content/List/List.stories.playwright.json +0 -27
  263. package/src/layouts/Basic/Masthead/index.mdx +0 -65
@@ -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
- <PropTypes packageName="@digigov/ui" component="Footer" />
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
+ />
@@ -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
- <PropTypes packageName="@digigov/ui" component="Header" />
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
- ```bash
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
- <PropTypes packageName="@digigov/ui" component="Masthead" />
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
+ />
@@ -3,9 +3,7 @@ id: modal
3
3
  title: Modal
4
4
  ---
5
5
 
6
- ```bash
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
- <PropTypes packageName="@digigov/ui" component="Modal" />
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
+
@@ -13,4 +13,6 @@ import NotFound from '@digigov/ui/app/NotFound';
13
13
 
14
14
  ## API
15
15
 
16
+ See below for a complete reference to all of the props available to the components mentioned here.
17
+
16
18
  There are no available prop types for this component.
@@ -3,9 +3,8 @@ id: panel
3
3
  title: Panel
4
4
  ---
5
5
 
6
- ```bash
7
- import Panel from '@digigov/ui/app/Panel';
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
- <PropTypes packageName="@digigov/ui" component="Panel" />
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
- ```bash
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
- <PropTypes packageName="@digigov/ui" component="PhaseBannerHeader" />
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
- ```bash
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
- <PropTypes packageName="@digigov/ui" component="QrCodeViewer" />
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.
@@ -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
- <PropTypes packageName="@digigov/ui" component="Footer" />
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
+ />
@@ -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
- <PropTypes packageName="@digigov/ui" component="Header" />
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
- ```bash
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
- <PropTypes packageName="@digigov/ui" component="Masthead" />
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
+ />
@@ -3,9 +3,7 @@ id: modal
3
3
  title: Modal
4
4
  ---
5
5
 
6
- ```bash
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
- <PropTypes packageName="@digigov/ui" component="Modal" />
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
+
@@ -13,4 +13,6 @@ import NotFound from '@digigov/ui/app/NotFound';
13
13
 
14
14
  ## API
15
15
 
16
+ See below for a complete reference to all of the props available to the components mentioned here.
17
+
16
18
  There are no available prop types for this component.
@@ -3,9 +3,8 @@ id: panel
3
3
  title: Panel
4
4
  ---
5
5
 
6
- ```bash
7
- import Panel from '@digigov/ui/app/Panel';
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
- <PropTypes packageName="@digigov/ui" component="Panel" />
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
- ```bash
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
- <PropTypes packageName="@digigov/ui" component="PhaseBannerHeader" />
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
- ```bash
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
- <PropTypes packageName="@digigov/ui" component="QrCodeViewer" />
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.
@@ -6,15 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports["default"] = exports.Auto = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
- var _Accordion = require("@digigov/ui/content/Accordion/");
9
+ var _Accordion = require("@digigov/ui/content/Accordion");
10
10
  var _List = require("@digigov/ui/content/List/List");
11
11
  var _ListItem = require("@digigov/ui/content/List/ListItem");
12
12
  var _Link = require("@digigov/ui/navigation/Link");
13
13
  var _Hint = require("@digigov/ui/typography/Hint");
14
14
  var _Paragraph = require("@digigov/ui/typography/Paragraph");
15
15
  var _ref = /*#__PURE__*/_react["default"].createElement(_Accordion.AccordionAuto, {
16
- defaultOpen: '1',
17
- singleOpen: true
16
+ defaultOpen: '1'
18
17
  }, /*#__PURE__*/_react["default"].createElement(_Accordion.AccordionControls, null, /*#__PURE__*/_react["default"].createElement(_Accordion.AccordionOpenAllButtonAuto, null, "Open all"), /*#__PURE__*/_react["default"].createElement(_Accordion.AccordionCloseAllButtonAuto, null, "Close all")), /*#__PURE__*/_react["default"].createElement(_Accordion.AccordionSectionAuto, {
19
18
  id: "0"
20
19
  }, /*#__PURE__*/_react["default"].createElement(_Accordion.AccordionSectionSummary, null, /*#__PURE__*/_react["default"].createElement(_Accordion.AccordionSectionSummaryHeading, {
@@ -97,7 +97,6 @@ var useAccordion = exports.useAccordion = function useAccordion() {
97
97
  } else {
98
98
  var _e$target3;
99
99
  setCurrentOpen((0, _extends4["default"])({}, current, (0, _defineProperty2["default"])({}, id, (_e$target3 = e.target) === null || _e$target3 === void 0 ? void 0 : _e$target3.open)));
100
- console.log('current2 is', current);
101
100
  }
102
101
  };
103
102
  var onKeyDown = function onKeyDown(e) {
@@ -3,18 +3,19 @@ id: accordion
3
3
  title: Accordion
4
4
  ---
5
5
 
6
+
6
7
  # Accordion
7
8
 
9
+
10
+
8
11
  This component is currently experimental because adding a summary line with more than a few short words will likely make the button text too long, particularly for users of screen readers.
9
12
 
10
13
  The accordion component lets users show and hide sections of related content on a page.
11
14
 
12
- ```bash
13
- import Accordion from '@digigov/ui/content/Accordion';
14
- ```
15
-
16
15
  ## How to use
17
16
 
17
+ ### Default Accordion
18
+
18
19
  <Story
19
20
  packageName="@digigov/ui"
20
21
  component="content/Accordion"
@@ -38,4 +39,7 @@ implementation in the [ARIA Authoring Practices Guide (APG)](https://www.w3.org/
38
39
 
39
40
  ## API
40
41
 
41
- <PropTypes packageName="@digigov/ui" component="Accordion" />
42
+ See below for a complete reference to all of the props available to the components mentioned here.
43
+
44
+ <ComponentProps componentName={["Accordion", "AccordionSection","AccordionSectionSummary","AccordionSectionSummaryHeading","AccordionSectionContent"]} />
45
+
@@ -9,10 +9,6 @@ This component is currently experimental because adding a summary line with more
9
9
 
10
10
  The Blockquote component lets users show and hide sections of related content on a page.
11
11
 
12
- ```bash
13
- import Blockquote from '@digigov/ui/content/Blockquote';
14
- ```
15
-
16
12
  ## How to use
17
13
 
18
14
  <Story
@@ -23,4 +19,6 @@ import Blockquote from '@digigov/ui/content/Blockquote';
23
19
 
24
20
  ## API
25
21
 
26
- <PropTypes packageName="@digigov/ui" component="Blockquote" />
22
+ See below for a complete reference to all of the props available to the components mentioned here.
23
+
24
+ <ComponentProps componentName={["Blockquote"]} />
@@ -8,10 +8,6 @@ title: Card
8
8
  Cards can be used to divide and organise interface content for better understandability and readability.
9
9
  When used correctly, Cards can help users to scan through vast amounts of information quicker.
10
10
 
11
- ```bash
12
- import Card from '@digigov/ui/content/Card';
13
- ```
14
-
15
11
  ## How to use
16
12
 
17
13
  <Story packageName="@digigov/ui" component="content/Card" story="Default.tsx" />
@@ -102,4 +98,6 @@ Cards also provides styles for actionable elements such as Buttons or Links.
102
98
 
103
99
  ## API
104
100
 
105
- <PropTypes packageName="@digigov/ui" component="Card" />
101
+ See below for a complete reference to all of the props available to the components mentioned here.
102
+
103
+ <ComponentProps componentName={["Card", "CardHeading", "CardContent", "CardAction"]} />
@@ -9,10 +9,6 @@ Chips allow users to enter information, make selections, filter content, or trig
9
9
  While buttons are expected to appear consistently and with familiar calls to action,
10
10
  chips should appear dynamically as a group of multiple interactive elements.
11
11
 
12
- ```bash
13
- import Chip from '@digigov/ui/content/Chip';
14
- ```
15
-
16
12
  ## How to use
17
13
 
18
14
  <Story packageName="@digigov/ui" component="content/Chip" story="Default.tsx" />
@@ -51,4 +47,7 @@ import Chip from '@digigov/ui/content/Chip';
51
47
 
52
48
  ## API
53
49
 
54
- <PropTypes packageName="@digigov/ui" component="Chip" />
50
+ See below for a complete reference to all of the props available to the components mentioned here.
51
+
52
+ <ComponentProps componentName={["Chip"]} />
53
+
@@ -7,10 +7,6 @@ title: Details
7
7
 
8
8
  The details component is a short link that shows more detailed help text when a user clicks on it.
9
9
 
10
- ```bash
11
- import Details from '@digigov/ui/content/Details';
12
- ```
13
-
14
10
  ## How to use
15
11
 
16
12
  <Story
@@ -26,4 +22,6 @@ implementation in the ARIA Authoring Practices Guide (APG) at [Disclosure](https
26
22
 
27
23
  ## API
28
24
 
29
- <PropTypes packageName="@digigov/ui" component="Details" />
25
+ See below for a complete reference to all of the props available to the components mentioned here.
26
+
27
+ <ComponentProps componentName={["Details", "DetailsSummary", "DetailsContent"]} />
@@ -8,8 +8,7 @@ exports["default"] = exports.Default = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _List = require("@digigov/ui/content/List/List");
10
10
  var _ListItem = require("@digigov/ui/content/List/ListItem");
11
- var _Link = require("@digigov/ui/navigation/Link");
12
- var _ref = /*#__PURE__*/_react["default"].createElement(_List.List, null, /*#__PURE__*/_react["default"].createElement(_ListItem.ListItem, null, /*#__PURE__*/_react["default"].createElement(_Link.Link, null, "\u0391\u03C0\u03BF\u03C4\u03B5\u03BB\u03AD\u03C3\u03BC\u03B1\u03C4\u03B1 \u03B4\u03B9\u03B1\u03B3\u03BD\u03C9\u03C3\u03C4\u03B9\u03BA\u03CE\u03BD \u03B5\u03C1\u03B3\u03B1\u03C3\u03C4\u03B7\u03C1\u03B9\u03B1\u03BA\u03CE\u03BD \u03B5\u03BE\u03B5\u03C4\u03AC\u03C3\u03B5\u03C9\u03BD")), /*#__PURE__*/_react["default"].createElement(_ListItem.ListItem, null, /*#__PURE__*/_react["default"].createElement(_Link.Link, null, "\u03A0\u03C4\u03C5\u03C7\u03AF\u03B1 \u03C4\u03C1\u03B9\u03C4\u03BF\u03B2\u03AC\u03B8\u03BC\u03B9\u03B1\u03C2 \u03B5\u03BA\u03C0\u03B1\u03AF\u03B4\u03B5\u03C5\u03C3\u03B7\u03C2")), /*#__PURE__*/_react["default"].createElement(_ListItem.ListItem, null, /*#__PURE__*/_react["default"].createElement(_Link.Link, null, "\u03A5\u03C0\u03B5\u03CD\u03B8\u03C5\u03BD\u03B7 \u0394\u03AE\u03BB\u03C9\u03C3\u03B7 / \u0395\u03BE\u03BF\u03C5\u03C3\u03B9\u03BF\u03B4\u03CC\u03C4\u03B7\u03C3\u03B7 / \u0393\u03BD\u03AE\u03C3\u03B9\u03BF \u03A5\u03C0\u03BF\u03B3\u03C1\u03B1\u03C6\u03AE\u03C2")));
11
+ var _ref = /*#__PURE__*/_react["default"].createElement(_List.List, null, /*#__PURE__*/_react["default"].createElement(_ListItem.ListItem, null, "\u0391\u03C0\u03BF\u03C4\u03B5\u03BB\u03AD\u03C3\u03BC\u03B1\u03C4\u03B1 \u03B4\u03B9\u03B1\u03B3\u03BD\u03C9\u03C3\u03C4\u03B9\u03BA\u03CE\u03BD \u03B5\u03C1\u03B3\u03B1\u03C3\u03C4\u03B7\u03C1\u03B9\u03B1\u03BA\u03CE\u03BD \u03B5\u03BE\u03B5\u03C4\u03AC\u03C3\u03B5\u03C9\u03BD"), /*#__PURE__*/_react["default"].createElement(_ListItem.ListItem, null, "\u03A0\u03C4\u03C5\u03C7\u03AF\u03B1 \u03C4\u03C1\u03B9\u03C4\u03BF\u03B2\u03AC\u03B8\u03BC\u03B9\u03B1\u03C2 \u03B5\u03BA\u03C0\u03B1\u03AF\u03B4\u03B5\u03C5\u03C3\u03B7\u03C2"), /*#__PURE__*/_react["default"].createElement(_ListItem.ListItem, null, "\u03A5\u03C0\u03B5\u03CD\u03B8\u03C5\u03BD\u03B7 \u0394\u03AE\u03BB\u03C9\u03C3\u03B7 / \u0395\u03BE\u03BF\u03C5\u03C3\u03B9\u03BF\u03B4\u03CC\u03C4\u03B7\u03C3\u03B7 / \u0393\u03BD\u03AE\u03C3\u03B9\u03BF \u03A5\u03C0\u03BF\u03B3\u03C1\u03B1\u03C6\u03AE\u03C2"));
13
12
  var Default = exports.Default = function Default() {
14
13
  return _ref;
15
14
  };
@@ -3,10 +3,6 @@ id: list
3
3
  title: List
4
4
  ---
5
5
 
6
- ```bash
7
- import List from '@digigov/ui/content/List';
8
- ```
9
-
10
6
  ## How to use
11
7
 
12
8
  ### Default
@@ -39,4 +35,6 @@ import List from '@digigov/ui/content/List';
39
35
 
40
36
  ## API
41
37
 
42
- <PropTypes packageName="@digigov/ui" component="List" />
38
+ See below for a complete reference to all of the props available to the components mentioned here.
39
+
40
+ <ComponentProps componentName={["List", "ListItem"]} />
@@ -77,7 +77,9 @@ var SafeHTML = exports.SafeHTML = function SafeHTML(_ref) {
77
77
  _ref$Tag = _ref.Tag,
78
78
  Tag = _ref$Tag === void 0 ? 'span' : _ref$Tag,
79
79
  _ref$style = _ref.style,
80
- style = _ref$style === void 0 ? {} : _ref$style;
80
+ style = _ref$style === void 0 ? {} : _ref$style,
81
+ _ref$className = _ref.className,
82
+ className = _ref$className === void 0 ? "ds-body" : _ref$className;
81
83
  if (tags) {
82
84
  var _tags;
83
85
  (_tags = tags).push.apply(_tags, defaultTags);
@@ -96,7 +98,7 @@ var SafeHTML = exports.SafeHTML = function SafeHTML(_ref) {
96
98
  style: (0, _extends2["default"])({
97
99
  whiteSpace: 'break-spaces'
98
100
  }, style),
99
- className: "ds-body",
101
+ className: className,
100
102
  dangerouslySetInnerHTML: {
101
103
  __html: parsedHTML
102
104
  }
@@ -7,10 +7,6 @@ title: StepNav
7
7
 
8
8
  StepNav is a component that displays number of steps required to complete a process inside your application.
9
9
 
10
- ```bash
11
- import StepNav from '@digigov/ui/content/StepNav';
12
- ```
13
-
14
10
  ## How to use
15
11
 
16
12
  ### Default
@@ -21,10 +17,37 @@ import StepNav from '@digigov/ui/content/StepNav';
21
17
  story="Default.tsx"
22
18
  />
23
19
 
24
- ### With hints
20
+ ### StepNav with hints
25
21
 
26
22
  <Story
27
23
  packageName="@digigov/ui"
28
24
  component="content/StepNav"
29
25
  story="WithHints.tsx"
30
26
  />
27
+
28
+ ### StepNav with dense
29
+
30
+ <Story
31
+ packageName="@digigov/ui"
32
+ component="content/StepNav"
33
+ story="Dense.tsx"
34
+ />
35
+
36
+ ## API
37
+
38
+ See below for a complete reference to all of the props available to the components mentioned here.
39
+
40
+ <ComponentProps componentName={
41
+ [
42
+ "StepNav",
43
+ "StepNavControls",
44
+ "StepNavList",
45
+ "StepNavListItem",
46
+ "StepNavAccordion",
47
+ "StepNavAccordionSummary",
48
+ "StepNavAccordionSummaryHeading",
49
+ "StepNavCircleNumber",
50
+ "StepNavAccordionHeadingTitle",
51
+ "StepNavAccordionHeadingText",
52
+ "StepNavAccordionContent"
53
+ ]} />
@@ -7,10 +7,6 @@ title: SummaryList
7
7
 
8
8
  Use the summary list to summarise information, for example, a user’s responses at the end of a form.
9
9
 
10
- ```bash
11
- import SummaryList from '@digigov/ui/content/SummaryList';
12
- ```
13
-
14
10
  ## How to use
15
11
 
16
12
  <Story
@@ -43,4 +39,13 @@ If you do not include actions in your summary list and it would be better for yo
43
39
 
44
40
  ## API
45
41
 
46
- <PropTypes packageName="@digigov/ui" component="SummaryList" />
42
+ See below for a complete reference to all of the props available to the components mentioned here.
43
+
44
+ <ComponentProps componentName={
45
+ ["SummaryList",
46
+ "SummaryListItem",
47
+ "SummaryListItemAction",
48
+ "SummaryListItemKey",
49
+ "SummaryListItemValue"
50
+ ]
51
+ } />