@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.
Files changed (306) hide show
  1. package/CHANGELOG.md +21 -1
  2. package/admin/AutoComplete/index.mdx +8 -30
  3. package/admin/CopyToClipboard/CopyToClipboard.stories.playwright.json +2 -2
  4. package/admin/CopyToClipboard/index.mdx +1 -5
  5. package/admin/Drawer/__stories__/Default.js +2 -6
  6. package/admin/Dropdown/Dropdown.stories.playwright.json +53 -0
  7. package/admin/Dropdown/__stories__/AlignRight.js +1 -2
  8. package/admin/Dropdown/__stories__/Default.js +1 -3
  9. package/admin/Dropdown/__stories__/PlacementTop.js +1 -2
  10. package/admin/Dropdown/index.mdx +3 -15
  11. package/admin/Modal/Modal.stories.playwright.json +37 -0
  12. package/admin/Modal/__stories__/AlertDialog.js +36 -12
  13. package/admin/Modal/__stories__/Default.js +34 -10
  14. package/admin/Modal/index.mdx +1 -5
  15. package/app/Footer/Footer.mdx +3 -14
  16. package/app/Header/index.mdx +3 -16
  17. package/app/QrCodeViewer/index.mdx +1 -5
  18. package/core/Accordion/Accordion.stories.playwright.json +2 -2
  19. package/core/Accordion/index.mdx +2 -10
  20. package/core/Button/__stories__/GroupingButtons.d.ts +1 -0
  21. package/core/Button/__stories__/GroupingButtons.js +4 -2
  22. package/core/Button/__stories__/GroupingButtonsAndLinks.d.ts +1 -0
  23. package/core/Button/__stories__/GroupingButtonsAndLinks.js +4 -2
  24. package/core/Button/__stories__/Warning.d.ts +1 -0
  25. package/core/Button/__stories__/Warning.js +4 -2
  26. package/core/Button/index.mdx +4 -20
  27. package/core/Card/card.mdx +7 -35
  28. package/core/Checkbox/checkbox.mdx +6 -30
  29. package/core/DateInputContainer/index.mdx +4 -20
  30. package/core/ErrorSummary/ErrorSummary.stories.playwright.json +1 -1
  31. package/core/ErrorSummary/index.mdx +3 -15
  32. package/core/FileUpload/index.mdx +1 -5
  33. package/core/Link/link.mdx +4 -20
  34. package/core/List/index.mdx +1 -5
  35. package/core/NavList/NavList.stories.d.ts +1 -5
  36. package/core/NavList/NavList.stories.js +4 -60
  37. package/core/NavList/NavListAuto/NavListBaseAuto.js +1 -3
  38. package/core/NavList/NavListAuto/NavListItemAnchorAuto.d.ts +0 -2
  39. package/core/NavList/NavListAuto/NavListItemAnchorAuto.js +2 -5
  40. package/core/NavList/NavListAuto/NavListItemAuto.js +2 -7
  41. package/core/NavList/NavListAuto/NavListItemButtonAuto.js +1 -3
  42. package/core/NavList/NavListAuto/NavListMenuAuto.js +2 -5
  43. package/core/NavList/NavListAuto/NavListSubMenuAuto.js +1 -3
  44. package/core/NavList/NavListItem.js +2 -5
  45. package/core/NavList/NavListItemBase.js +1 -6
  46. package/core/NavList/NavMenuContainerContentList.js +3 -6
  47. package/core/NavList/__stories__/Default.js +4 -10
  48. package/core/NavList/__stories__/NavVerticalLayout.d.ts +2 -0
  49. package/core/NavList/__stories__/{NavHorizontalLayout.js → NavVerticalLayout.js} +9 -15
  50. package/core/NavList/index.d.ts +1 -0
  51. package/core/NavList/index.js +14 -0
  52. package/core/NavList/index.mdx +1 -5
  53. package/core/NavList/types.d.ts +0 -1
  54. package/core/NotificationBanner/index.mdx +1 -5
  55. package/core/PhaseBanner/index.mdx +1 -4
  56. package/core/RadioContainer/index.mdx +6 -30
  57. package/core/SelectContainer/index.mdx +3 -15
  58. package/core/SingleCharacterInputContainer/SingleCharacterInputContainer.stories.d.ts +13 -0
  59. package/core/SingleCharacterInputContainer/SingleCharacterInputContainer.stories.js +75 -0
  60. package/core/SingleCharacterInputContainer/__stories__/Default.d.ts +2 -0
  61. package/core/SingleCharacterInputContainer/__stories__/Default.js +46 -0
  62. package/core/SingleCharacterInputContainer/__stories__/WithDefaultError.d.ts +2 -0
  63. package/core/SingleCharacterInputContainer/__stories__/WithDefaultError.js +52 -0
  64. package/core/SingleCharacterInputContainer/__stories__/WithErrorMessageInvalidCode.d.ts +2 -0
  65. package/core/SingleCharacterInputContainer/__stories__/WithErrorMessageInvalidCode.js +58 -0
  66. package/core/SingleCharacterInputContainer/__stories__/WithErrorMessageLessDigit.d.ts +2 -0
  67. package/core/SingleCharacterInputContainer/__stories__/WithErrorMessageLessDigit.js +52 -0
  68. package/core/SingleCharacterInputContainer/index.d.ts +4 -0
  69. package/core/SingleCharacterInputContainer/index.js +44 -0
  70. package/core/SingleCharacterInputContainer/index.mdx +26 -0
  71. package/core/SummaryList/index.mdx +2 -10
  72. package/core/Table/index.mdx +6 -30
  73. package/core/TextArea/index.mdx +6 -30
  74. package/core/TextInput/index.mdx +6 -30
  75. package/core/index.d.ts +1 -0
  76. package/core/index.js +13 -0
  77. package/es/admin/AutoComplete/index.mdx +8 -30
  78. package/es/admin/CopyToClipboard/CopyToClipboard.stories.playwright.json +2 -2
  79. package/es/admin/CopyToClipboard/index.mdx +1 -5
  80. package/es/admin/Drawer/__stories__/Default.js +2 -6
  81. package/es/admin/Dropdown/Dropdown.stories.playwright.json +53 -0
  82. package/es/admin/Dropdown/__stories__/AlignRight.js +1 -2
  83. package/es/admin/Dropdown/__stories__/Default.js +1 -3
  84. package/es/admin/Dropdown/__stories__/PlacementTop.js +1 -2
  85. package/es/admin/Dropdown/index.mdx +3 -15
  86. package/es/admin/Modal/Modal.stories.playwright.json +37 -0
  87. package/es/admin/Modal/__stories__/AlertDialog.js +29 -12
  88. package/es/admin/Modal/__stories__/Default.js +27 -10
  89. package/es/admin/Modal/index.mdx +1 -5
  90. package/es/app/Footer/Footer.mdx +3 -14
  91. package/es/app/Header/index.mdx +3 -16
  92. package/es/app/QrCodeViewer/index.mdx +1 -5
  93. package/es/core/Accordion/Accordion.stories.playwright.json +2 -2
  94. package/es/core/Accordion/index.mdx +2 -10
  95. package/es/core/Button/__stories__/GroupingButtons.js +2 -1
  96. package/es/core/Button/__stories__/GroupingButtonsAndLinks.js +2 -1
  97. package/es/core/Button/__stories__/Warning.js +2 -1
  98. package/es/core/Button/index.mdx +4 -20
  99. package/es/core/Card/card.mdx +7 -35
  100. package/es/core/Checkbox/checkbox.mdx +6 -30
  101. package/es/core/DateInputContainer/index.mdx +4 -20
  102. package/es/core/ErrorSummary/ErrorSummary.stories.playwright.json +1 -1
  103. package/es/core/ErrorSummary/index.mdx +3 -15
  104. package/es/core/FileUpload/index.mdx +1 -5
  105. package/es/core/Link/link.mdx +4 -20
  106. package/es/core/List/index.mdx +1 -5
  107. package/es/core/NavList/NavList.stories.js +1 -5
  108. package/es/core/NavList/NavListAuto/NavListBaseAuto.js +1 -3
  109. package/es/core/NavList/NavListAuto/NavListItemAnchorAuto.js +2 -5
  110. package/es/core/NavList/NavListAuto/NavListItemAuto.js +2 -6
  111. package/es/core/NavList/NavListAuto/NavListItemButtonAuto.js +1 -3
  112. package/es/core/NavList/NavListAuto/NavListMenuAuto.js +2 -5
  113. package/es/core/NavList/NavListAuto/NavListSubMenuAuto.js +1 -3
  114. package/es/core/NavList/NavListItem.js +2 -5
  115. package/es/core/NavList/NavListItemBase.js +1 -6
  116. package/es/core/NavList/NavMenuContainerContentList.js +3 -6
  117. package/es/core/NavList/__stories__/Default.js +4 -10
  118. package/{esm/core/NavList/__stories__/NavHorizontalLayout.js → es/core/NavList/__stories__/NavVerticalLayout.js} +7 -13
  119. package/es/core/NavList/index.js +1 -0
  120. package/es/core/NavList/index.mdx +1 -5
  121. package/es/core/NotificationBanner/index.mdx +1 -5
  122. package/es/core/PhaseBanner/index.mdx +1 -4
  123. package/es/core/RadioContainer/index.mdx +6 -30
  124. package/es/core/SelectContainer/index.mdx +3 -15
  125. package/es/core/SingleCharacterInputContainer/SingleCharacterInputContainer.stories.js +12 -0
  126. package/es/core/SingleCharacterInputContainer/__stories__/Default.js +31 -0
  127. package/es/core/SingleCharacterInputContainer/__stories__/WithDefaultError.js +35 -0
  128. package/es/core/SingleCharacterInputContainer/__stories__/WithErrorMessageInvalidCode.js +41 -0
  129. package/es/core/SingleCharacterInputContainer/__stories__/WithErrorMessageLessDigit.js +35 -0
  130. package/es/core/SingleCharacterInputContainer/index.js +4 -0
  131. package/es/core/SingleCharacterInputContainer/index.mdx +26 -0
  132. package/es/core/SummaryList/index.mdx +2 -10
  133. package/es/core/Table/index.mdx +6 -30
  134. package/es/core/TextArea/index.mdx +6 -30
  135. package/es/core/TextInput/index.mdx +6 -30
  136. package/es/core/index.js +1 -0
  137. package/es/locales/el.js +4 -0
  138. package/es/registry.js +4 -0
  139. package/es/typography/HeadingCaption/index.mdx +1 -5
  140. package/es/typography/Hint/index.mdx +1 -5
  141. package/es/typography/NormalText/index.mdx +3 -15
  142. package/es/typography/Paragraph/index.mdx +3 -15
  143. package/esm/admin/AutoComplete/index.mdx +8 -30
  144. package/esm/admin/CopyToClipboard/CopyToClipboard.stories.playwright.json +2 -2
  145. package/esm/admin/CopyToClipboard/index.mdx +1 -5
  146. package/esm/admin/Drawer/__stories__/Default.js +2 -6
  147. package/esm/admin/Dropdown/Dropdown.stories.playwright.json +53 -0
  148. package/esm/admin/Dropdown/__stories__/AlignRight.js +1 -2
  149. package/esm/admin/Dropdown/__stories__/Default.js +1 -3
  150. package/esm/admin/Dropdown/__stories__/PlacementTop.js +1 -2
  151. package/esm/admin/Dropdown/index.mdx +3 -15
  152. package/esm/admin/Modal/Modal.stories.playwright.json +37 -0
  153. package/esm/admin/Modal/__stories__/AlertDialog.js +29 -12
  154. package/esm/admin/Modal/__stories__/Default.js +27 -10
  155. package/esm/admin/Modal/index.mdx +1 -5
  156. package/esm/app/Footer/Footer.mdx +3 -14
  157. package/esm/app/Header/index.mdx +3 -16
  158. package/esm/app/QrCodeViewer/index.mdx +1 -5
  159. package/esm/core/Accordion/Accordion.stories.playwright.json +2 -2
  160. package/esm/core/Accordion/index.mdx +2 -10
  161. package/esm/core/Button/__stories__/GroupingButtons.js +2 -1
  162. package/esm/core/Button/__stories__/GroupingButtonsAndLinks.js +2 -1
  163. package/esm/core/Button/__stories__/Warning.js +2 -1
  164. package/esm/core/Button/index.mdx +4 -20
  165. package/esm/core/Card/card.mdx +7 -35
  166. package/esm/core/Checkbox/checkbox.mdx +6 -30
  167. package/esm/core/DateInputContainer/index.mdx +4 -20
  168. package/esm/core/ErrorSummary/ErrorSummary.stories.playwright.json +1 -1
  169. package/esm/core/ErrorSummary/index.mdx +3 -15
  170. package/esm/core/FileUpload/index.mdx +1 -5
  171. package/esm/core/Link/link.mdx +4 -20
  172. package/esm/core/List/index.mdx +1 -5
  173. package/esm/core/NavList/NavList.stories.js +1 -5
  174. package/esm/core/NavList/NavListAuto/NavListBaseAuto.js +1 -3
  175. package/esm/core/NavList/NavListAuto/NavListItemAnchorAuto.js +2 -5
  176. package/esm/core/NavList/NavListAuto/NavListItemAuto.js +2 -6
  177. package/esm/core/NavList/NavListAuto/NavListItemButtonAuto.js +1 -3
  178. package/esm/core/NavList/NavListAuto/NavListMenuAuto.js +2 -5
  179. package/esm/core/NavList/NavListAuto/NavListSubMenuAuto.js +1 -3
  180. package/esm/core/NavList/NavListItem.js +2 -5
  181. package/esm/core/NavList/NavListItemBase.js +1 -6
  182. package/esm/core/NavList/NavMenuContainerContentList.js +3 -6
  183. package/esm/core/NavList/__stories__/Default.js +4 -10
  184. package/{es/core/NavList/__stories__/NavHorizontalLayout.js → esm/core/NavList/__stories__/NavVerticalLayout.js} +7 -13
  185. package/esm/core/NavList/index.js +1 -0
  186. package/esm/core/NavList/index.mdx +1 -5
  187. package/esm/core/NotificationBanner/index.mdx +1 -5
  188. package/esm/core/PhaseBanner/index.mdx +1 -4
  189. package/esm/core/RadioContainer/index.mdx +6 -30
  190. package/esm/core/SelectContainer/index.mdx +3 -15
  191. package/esm/core/SingleCharacterInputContainer/SingleCharacterInputContainer.stories.js +12 -0
  192. package/esm/core/SingleCharacterInputContainer/__stories__/Default.js +31 -0
  193. package/esm/core/SingleCharacterInputContainer/__stories__/WithDefaultError.js +35 -0
  194. package/esm/core/SingleCharacterInputContainer/__stories__/WithErrorMessageInvalidCode.js +41 -0
  195. package/esm/core/SingleCharacterInputContainer/__stories__/WithErrorMessageLessDigit.js +35 -0
  196. package/esm/core/SingleCharacterInputContainer/index.js +4 -0
  197. package/esm/core/SingleCharacterInputContainer/index.mdx +26 -0
  198. package/esm/core/SummaryList/index.mdx +2 -10
  199. package/esm/core/Table/index.mdx +6 -30
  200. package/esm/core/TextArea/index.mdx +6 -30
  201. package/esm/core/TextInput/index.mdx +6 -30
  202. package/esm/core/index.js +1 -0
  203. package/esm/index.js +1 -1
  204. package/esm/locales/el.js +4 -0
  205. package/esm/registry.js +4 -0
  206. package/esm/typography/HeadingCaption/index.mdx +1 -5
  207. package/esm/typography/Hint/index.mdx +1 -5
  208. package/esm/typography/NormalText/index.mdx +3 -15
  209. package/esm/typography/Paragraph/index.mdx +3 -15
  210. package/locales/el.d.ts +4 -0
  211. package/locales/el.js +4 -0
  212. package/package.json +3 -3
  213. package/registry.d.ts +3 -0
  214. package/registry.js +6 -0
  215. package/src/admin/AutoComplete/index.mdx +8 -30
  216. package/src/admin/CopyToClipboard/CopyToClipboard.stories.playwright.json +2 -2
  217. package/src/admin/CopyToClipboard/index.mdx +1 -5
  218. package/src/admin/Drawer/__stories__/Default.tsx +2 -5
  219. package/src/admin/Dropdown/Dropdown.stories.playwright.json +53 -0
  220. package/src/admin/Dropdown/__stories__/AlignRight.tsx +1 -1
  221. package/src/admin/Dropdown/__stories__/Default.tsx +1 -1
  222. package/src/admin/Dropdown/__stories__/PlacementTop.tsx +1 -1
  223. package/src/admin/Dropdown/index.mdx +3 -15
  224. package/src/admin/Modal/Modal.stories.playwright.json +37 -0
  225. package/src/admin/Modal/__stories__/AlertDialog.tsx +18 -3
  226. package/src/admin/Modal/__stories__/Default.tsx +18 -3
  227. package/src/admin/Modal/index.mdx +1 -5
  228. package/src/app/Footer/Footer.mdx +3 -14
  229. package/src/app/Header/index.mdx +3 -16
  230. package/src/app/QrCodeViewer/index.mdx +1 -5
  231. package/src/core/Accordion/Accordion.stories.playwright.json +2 -2
  232. package/src/core/Accordion/index.mdx +2 -10
  233. package/src/core/Button/__stories__/GroupingButtons.tsx +1 -0
  234. package/src/core/Button/__stories__/GroupingButtonsAndLinks.tsx +1 -0
  235. package/src/core/Button/__stories__/Warning.tsx +1 -0
  236. package/src/core/Button/index.mdx +4 -20
  237. package/src/core/Card/card.mdx +7 -35
  238. package/src/core/Checkbox/checkbox.mdx +6 -30
  239. package/src/core/DateInputContainer/index.mdx +4 -20
  240. package/src/core/ErrorSummary/ErrorSummary.stories.playwright.json +1 -1
  241. package/src/core/ErrorSummary/index.mdx +3 -15
  242. package/src/core/FileUpload/index.mdx +1 -5
  243. package/src/core/Link/link.mdx +4 -20
  244. package/src/core/List/index.mdx +1 -5
  245. package/src/core/NavList/NavList.stories.js +1 -5
  246. package/src/core/NavList/NavListAuto/NavListBaseAuto.tsx +1 -1
  247. package/src/core/NavList/NavListAuto/NavListItemAnchorAuto.tsx +1 -4
  248. package/src/core/NavList/NavListAuto/NavListItemAuto.tsx +2 -4
  249. package/src/core/NavList/NavListAuto/NavListItemButtonAuto.tsx +1 -1
  250. package/src/core/NavList/NavListAuto/NavListMenuAuto.tsx +2 -2
  251. package/src/core/NavList/NavListAuto/NavListSubMenuAuto.tsx +1 -1
  252. package/src/core/NavList/NavListItem.tsx +1 -2
  253. package/src/core/NavList/NavListItemBase.tsx +2 -5
  254. package/src/core/NavList/NavMenuContainerContentList.tsx +0 -2
  255. package/src/core/NavList/__stories__/Default.tsx +4 -7
  256. package/src/core/NavList/__stories__/{NavHorizontalLayout.tsx → NavVerticalLayout.tsx} +7 -10
  257. package/src/core/NavList/index.mdx +1 -5
  258. package/src/core/NavList/index.tsx +1 -0
  259. package/src/core/NavList/types.tsx +0 -1
  260. package/src/core/NotificationBanner/index.mdx +1 -5
  261. package/src/core/PhaseBanner/index.mdx +1 -4
  262. package/src/core/RadioContainer/index.mdx +6 -30
  263. package/src/core/SelectContainer/index.mdx +3 -15
  264. package/src/core/SingleCharacterInputContainer/SingleCharacterInputContainer.stories.js +13 -0
  265. package/src/core/SingleCharacterInputContainer/__stories__/Default.tsx +35 -0
  266. package/src/core/SingleCharacterInputContainer/__stories__/WithDefaultError.tsx +38 -0
  267. package/src/core/SingleCharacterInputContainer/__stories__/WithErrorMessageInvalidCode.tsx +38 -0
  268. package/src/core/SingleCharacterInputContainer/__stories__/WithErrorMessageLessDigit.tsx +38 -0
  269. package/src/core/SingleCharacterInputContainer/index.mdx +26 -0
  270. package/src/core/SingleCharacterInputContainer/index.tsx +4 -0
  271. package/src/core/SummaryList/index.mdx +2 -10
  272. package/src/core/Table/index.mdx +6 -30
  273. package/src/core/TextArea/index.mdx +6 -30
  274. package/src/core/TextInput/index.mdx +6 -30
  275. package/src/core/index.ts +1 -0
  276. package/src/locales/el.ts +4 -0
  277. package/src/registry.js +4 -0
  278. package/src/typography/HeadingCaption/index.mdx +1 -5
  279. package/src/typography/Hint/index.mdx +1 -5
  280. package/src/typography/NormalText/index.mdx +3 -15
  281. package/src/typography/Paragraph/index.mdx +3 -15
  282. package/typography/HeadingCaption/index.mdx +1 -5
  283. package/typography/Hint/index.mdx +1 -5
  284. package/typography/NormalText/index.mdx +3 -15
  285. package/typography/Paragraph/index.mdx +3 -15
  286. package/core/NavList/__stories__/NavHorizontalLayout.d.ts +0 -2
  287. package/core/NavList/__stories__/NavListEpathlaExample.d.ts +0 -2
  288. package/core/NavList/__stories__/NavListEpathlaExample.js +0 -153
  289. package/core/NavList/__stories__/NavListHorizontalAutoExample.d.ts +0 -2
  290. package/core/NavList/__stories__/NavListHorizontalAutoExample.js +0 -67
  291. package/core/NavList/__stories__/NavListSecondaryAutoExample.d.ts +0 -2
  292. package/core/NavList/__stories__/NavListSecondaryAutoExample.js +0 -281
  293. package/core/NavList/__stories__/NavListVerticalAutoExample.d.ts +0 -2
  294. package/core/NavList/__stories__/NavListVerticalAutoExample.js +0 -67
  295. package/es/core/NavList/__stories__/NavListEpathlaExample.js +0 -135
  296. package/es/core/NavList/__stories__/NavListHorizontalAutoExample.js +0 -51
  297. package/es/core/NavList/__stories__/NavListSecondaryAutoExample.js +0 -255
  298. package/es/core/NavList/__stories__/NavListVerticalAutoExample.js +0 -51
  299. package/esm/core/NavList/__stories__/NavListEpathlaExample.js +0 -135
  300. package/esm/core/NavList/__stories__/NavListHorizontalAutoExample.js +0 -51
  301. package/esm/core/NavList/__stories__/NavListSecondaryAutoExample.js +0 -255
  302. package/esm/core/NavList/__stories__/NavListVerticalAutoExample.js +0 -51
  303. package/src/core/NavList/__stories__/NavListEpathlaExample.tsx +0 -195
  304. package/src/core/NavList/__stories__/NavListHorizontalAutoExample.tsx +0 -65
  305. package/src/core/NavList/__stories__/NavListSecondaryAutoExample.tsx +0 -284
  306. package/src/core/NavList/__stories__/NavListVerticalAutoExample.tsx +0 -65
@@ -11,57 +11,33 @@ import TextArea from '@digigov/ui/core/TextArea';
11
11
 
12
12
  ## How to use
13
13
 
14
- <Story
15
- packageName="@digigov/ui"
16
- component="core/TextArea"
17
- story="Default.tsx"
18
- />
14
+ <Story packageName="@digigov/ui" component="core/TextArea" story="Default.tsx" />
19
15
 
20
16
  ### Use appropriately-sized textareas
21
17
 
22
- <Story
23
- packageName="@digigov/ui"
24
- component="core/TextArea"
25
- story="WithDeclaredRows.tsx"
26
- />
18
+ <Story packageName="@digigov/ui" component="core/TextArea" story="WithDeclaredRows.tsx" />
27
19
 
28
20
  ### If you’re asking more than one question on the page
29
21
 
30
- <Story
31
- packageName="@digigov/ui"
32
- component="core/TextArea"
33
- story="MultipleQuestions.tsx"
34
- />
22
+ <Story packageName="@digigov/ui" component="core/TextArea" story="MultipleQuestions.tsx" />
35
23
 
36
24
  ### Limiting the number of characters
37
25
 
38
26
  If there’s a good reason to limit the number of characters users can enter, you can use the character count component.
39
27
 
40
- <Story
41
- packageName="@digigov/ui"
42
- component="core/TextArea"
43
- story="LimitedCharacters.tsx"
44
- />
28
+ <Story packageName="@digigov/ui" component="core/TextArea" story="LimitedCharacters.tsx" />
45
29
 
46
30
  ### Hint text
47
31
 
48
32
  Use hint text for help that’s relevant to the majority of users, like how their information will be used, or where to find it.
49
33
 
50
- <Story
51
- packageName="@digigov/ui"
52
- component="core/TextArea"
53
- story="WithHint.tsx"
54
- />
34
+ <Story packageName="@digigov/ui" component="core/TextArea" story="WithHint.tsx" />
55
35
 
56
36
  ### Error message
57
37
 
58
38
  Error messages should be styled like this:
59
39
 
60
- <Story
61
- packageName="@digigov/ui"
62
- component="core/TextArea"
63
- story="WithErrorMessage.tsx"
64
- />
40
+ <Story packageName="@digigov/ui" component="core/TextArea" story="WithErrorMessage.tsx" />
65
41
 
66
42
  ### Disabled input
67
43
 
@@ -11,19 +11,11 @@ import TextInput from '@digigov/ui/core/TextInput';
11
11
 
12
12
  ## How to use
13
13
 
14
- <Story
15
- packageName="@digigov/ui"
16
- component="core/TextInput"
17
- story="Default.tsx"
18
- />
14
+ <Story packageName="@digigov/ui" component="core/TextInput" story="Default.tsx" />
19
15
 
20
16
  ### If you’re asking more than one question on the page
21
17
 
22
- <Story
23
- packageName="@digigov/ui"
24
- component="core/TextInput"
25
- story="MultipleQuestions.tsx"
26
- />
18
+ <Story packageName="@digigov/ui" component="core/TextInput" story="MultipleQuestions.tsx" />
27
19
 
28
20
  ### Fixed width inputs
29
21
 
@@ -33,31 +25,19 @@ The widths are designed for specific character lengths and to be consistent acro
33
25
 
34
26
  On fixed width inputs, the width will remain fixed on all screens unless it is wider than the viewport, in which case it will shrink to fit.
35
27
 
36
- <Story
37
- packageName="@digigov/ui"
38
- component="core/TextInput"
39
- story="FixedWidths.tsx"
40
- />
28
+ <Story packageName="@digigov/ui" component="core/TextInput" story="FixedWidths.tsx" />
41
29
 
42
30
  ### Fluid width inputs
43
31
 
44
32
  Fluid width inputs will resize with the viewport.
45
33
 
46
- <Story
47
- packageName="@digigov/ui"
48
- component="core/TextInput"
49
- story="FluidWidths.tsx"
50
- />
34
+ <Story packageName="@digigov/ui" component="core/TextInput" story="FluidWidths.tsx" />
51
35
 
52
36
  ### Hint text
53
37
 
54
38
  Use hint text for help that’s relevant to the majority of users, like how their information will be used, or where to find it.
55
39
 
56
- <Story
57
- packageName="@digigov/ui"
58
- component="core/TextInput"
59
- story="WithHint.tsx"
60
- />
40
+ <Story packageName="@digigov/ui" component="core/TextInput" story="WithHint.tsx" />
61
41
 
62
42
  ## Numbers
63
43
 
@@ -73,11 +53,7 @@ Use hint text for help that’s relevant to the majority of users, like how thei
73
53
 
74
54
  Error messages should be styled like this:
75
55
 
76
- <Story
77
- packageName="@digigov/ui"
78
- component="core/TextInput"
79
- story="WithErrorMessage.tsx"
80
- />
56
+ <Story packageName="@digigov/ui" component="core/TextInput" story="WithErrorMessage.tsx" />
81
57
 
82
58
  ### Disabled input
83
59
 
package/esm/core/index.js CHANGED
@@ -26,6 +26,7 @@ export * from '@digigov/ui/core/PhaseBanner';
26
26
  export * from '@digigov/ui/core/RadioContainer';
27
27
  export * from '@digigov/ui/core/SectionBreak';
28
28
  export * from '@digigov/ui/core/SelectContainer';
29
+ export * from '@digigov/ui/core/SingleCharacterInputContainer';
29
30
  export * from '@digigov/ui/core/SummaryList';
30
31
  export * from '@digigov/ui/core/ServiceBadge';
31
32
  export * from '@digigov/ui/core/Table';
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Digigov v0.31.0
1
+ /** @license Digigov v0.32.1
2
2
  *
3
3
  * This source code is licensed under the BSD-2-Clause license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/esm/locales/el.js CHANGED
@@ -29,6 +29,10 @@ export default {
29
29
  invalid: 'Η ημερομηνία πρέπει να είναι έγκυρη.',
30
30
  earlier_than: 'Συμπληρώστε μια ημερομηνία προγενέστερη της {{maxDate}}',
31
31
  later_than: 'Συμπληρώστε μια ημερομηνία μεταγενέστερη της {{minDate}}'
32
+ },
33
+ otp: {
34
+ invalid: 'Ο κωδικός που έχετε εισάγει είναι λάθος.',
35
+ less_than: 'Έχετε συμπληρώσει λιγότερα από {{maxLength}} ψηφία.'
32
36
  }
33
37
  }
34
38
  },
package/esm/registry.js CHANGED
@@ -122,6 +122,7 @@ import * as _digigov_ui_core_RadioContainer from '@digigov/ui/core/RadioContaine
122
122
  import * as _digigov_ui_core_SectionBreak from '@digigov/ui/core/SectionBreak';
123
123
  import * as _digigov_ui_core_SelectContainer from '@digigov/ui/core/SelectContainer';
124
124
  import * as _digigov_ui_core_ServiceBadge from '@digigov/ui/core/ServiceBadge';
125
+ import * as _digigov_ui_core_SingleCharacterInputContainer from '@digigov/ui/core/SingleCharacterInputContainer';
125
126
  import * as _digigov_ui_core_SkipLink from '@digigov/ui/core/SkipLink';
126
127
  import * as _digigov_ui_core_SummaryList from '@digigov/ui/core/SummaryList';
127
128
  import * as _digigov_ui_core_SvgIcon from '@digigov/ui/core/SvgIcon';
@@ -333,6 +334,7 @@ export default {
333
334
  '@digigov/ui/core/SectionBreak': lazyImport(_digigov_ui_core_SectionBreak),
334
335
  '@digigov/ui/core/SelectContainer': lazyImport(_digigov_ui_core_SelectContainer),
335
336
  '@digigov/ui/core/ServiceBadge': lazyImport(_digigov_ui_core_ServiceBadge),
337
+ '@digigov/ui/core/SingleCharacterInputContainer': lazyImport(_digigov_ui_core_SingleCharacterInputContainer),
336
338
  '@digigov/ui/core/SkipLink': lazyImport(_digigov_ui_core_SkipLink),
337
339
  '@digigov/ui/core/SummaryList': lazyImport(_digigov_ui_core_SummaryList),
338
340
  '@digigov/ui/core/SvgIcon': lazyImport(_digigov_ui_core_SvgIcon),
@@ -443,6 +445,7 @@ import * as _digigov_ui_core_NotificationBanner_NotificationBanner_stories from
443
445
  import * as _digigov_ui_core_PhaseBanner_PhaseBanner_stories from '@digigov/ui/core/PhaseBanner/PhaseBanner.stories';
444
446
  import * as _digigov_ui_core_RadioContainer_RadioContainer_stories from '@digigov/ui/core/RadioContainer/RadioContainer.stories';
445
447
  import * as _digigov_ui_core_SelectContainer_Select_stories from '@digigov/ui/core/SelectContainer/Select.stories';
448
+ import * as _digigov_ui_core_SingleCharacterInputContainer_SingleCharacterInputContainer_stories from '@digigov/ui/core/SingleCharacterInputContainer/SingleCharacterInputContainer.stories';
446
449
  import * as _digigov_ui_core_SummaryList_SummaryList_stories from '@digigov/ui/core/SummaryList/SummaryList.stories';
447
450
  import * as _digigov_ui_core_Table_Table_stories from '@digigov/ui/core/Table/Table.stories';
448
451
  import * as _digigov_ui_core_Tabs_Tabs_stories from '@digigov/ui/core/Tabs/Tabs.stories';
@@ -496,6 +499,7 @@ export var stories = {
496
499
  '@digigov/ui/core/PhaseBanner/PhaseBanner.stories': _digigov_ui_core_PhaseBanner_PhaseBanner_stories,
497
500
  '@digigov/ui/core/RadioContainer/RadioContainer.stories': _digigov_ui_core_RadioContainer_RadioContainer_stories,
498
501
  '@digigov/ui/core/SelectContainer/Select.stories': _digigov_ui_core_SelectContainer_Select_stories,
502
+ '@digigov/ui/core/SingleCharacterInputContainer/SingleCharacterInputContainer.stories': _digigov_ui_core_SingleCharacterInputContainer_SingleCharacterInputContainer_stories,
499
503
  '@digigov/ui/core/SummaryList/SummaryList.stories': _digigov_ui_core_SummaryList_SummaryList_stories,
500
504
  '@digigov/ui/core/Table/Table.stories': _digigov_ui_core_Table_Table_stories,
501
505
  '@digigov/ui/core/Tabs/Tabs.stories': _digigov_ui_core_Tabs_Tabs_stories,
@@ -9,11 +9,7 @@ import HeadingCaption from '@digigov/ui/typography/HeadingCaption';
9
9
 
10
10
  ## How to use
11
11
 
12
- <Story
13
- packageName="@digigov/ui"
14
- component="typography/HeadingCaption"
15
- story="Default.tsx"
16
- />
12
+ <Story packageName="@digigov/ui" component="typography/HeadingCaption" story="Default.tsx" />
17
13
 
18
14
  ### Nested caption to title
19
15
 
@@ -9,11 +9,7 @@ import Hint from '@digigov/ui/typography/Hint';
9
9
 
10
10
  ## How to use
11
11
 
12
- <Story
13
- packageName="@digigov/ui"
14
- component="typography/Hint"
15
- story="Default.tsx"
16
- />
12
+ <Story packageName="@digigov/ui" component="typography/Hint" story="Default.tsx" />
17
13
 
18
14
  ### Font sizes
19
15
 
@@ -9,29 +9,17 @@ import NormalText from '@digigov/ui/typography/NormalText';
9
9
 
10
10
  ## How to use
11
11
 
12
- <Story
13
- packageName="@digigov/ui"
14
- component="typography/NormalText"
15
- story="Default.tsx"
16
- />
12
+ <Story packageName="@digigov/ui" component="typography/NormalText" story="Default.tsx" />
17
13
 
18
14
  ### Variants
19
15
 
20
- <Story
21
- packageName="@digigov/ui"
22
- component="typography/NormalText"
23
- story="Variants.tsx"
24
- />
16
+ <Story packageName="@digigov/ui" component="typography/NormalText" story="Variants.tsx" />
25
17
 
26
18
  ## Font override classes
27
19
 
28
20
  ### Font size
29
21
 
30
- <Story
31
- packageName="@digigov/ui"
32
- component="typography/NormalText"
33
- story="FontSizes.tsx"
34
- />
22
+ <Story packageName="@digigov/ui" component="typography/NormalText" story="FontSizes.tsx" />
35
23
 
36
24
  ### Font weight
37
25
 
@@ -17,29 +17,17 @@ import Paragraph from '@digigov/ui/typography/Paragraph';
17
17
 
18
18
  ### Lead paragraph
19
19
 
20
- <Story
21
- packageName="@digigov/ui"
22
- component="typography/Paragraph"
23
- story="LeadVariant.tsx"
24
- />
20
+ <Story packageName="@digigov/ui" component="typography/Paragraph" story="LeadVariant.tsx" />
25
21
 
26
22
  ### Small paragraph
27
23
 
28
- <Story
29
- packageName="@digigov/ui"
30
- component="typography/Paragraph"
31
- story="SmallVariant.tsx"
32
- />
24
+ <Story packageName="@digigov/ui" component="typography/Paragraph" story="SmallVariant.tsx" />
33
25
 
34
26
  ## Font override classes
35
27
 
36
28
  ### Font size
37
29
 
38
- <Story
39
- packageName="@digigov/ui"
40
- component="typography/Paragraph"
41
- story="FontSizes.tsx"
42
- />
30
+ <Story packageName="@digigov/ui" component="typography/Paragraph" story="FontSizes.tsx" />
43
31
 
44
32
  ### Font weight
45
33
 
package/locales/el.d.ts CHANGED
@@ -30,6 +30,10 @@ declare const _default: {
30
30
  earlier_than: string;
31
31
  later_than: string;
32
32
  };
33
+ otp: {
34
+ invalid: string;
35
+ less_than: string;
36
+ };
33
37
  };
34
38
  };
35
39
  button: {
package/locales/el.js CHANGED
@@ -35,6 +35,10 @@ var _default = {
35
35
  invalid: 'Η ημερομηνία πρέπει να είναι έγκυρη.',
36
36
  earlier_than: 'Συμπληρώστε μια ημερομηνία προγενέστερη της {{maxDate}}',
37
37
  later_than: 'Συμπληρώστε μια ημερομηνία μεταγενέστερη της {{minDate}}'
38
+ },
39
+ otp: {
40
+ invalid: 'Ο κωδικός που έχετε εισάγει είναι λάθος.',
41
+ less_than: 'Έχετε συμπληρώσει λιγότερα από {{maxLength}} ψηφία.'
38
42
  }
39
43
  }
40
44
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digigov/ui",
3
- "version": "0.31.0",
3
+ "version": "0.32.1",
4
4
  "description": "@digigov reusable components toolkit",
5
5
  "main": "./index.js",
6
6
  "module": "./esm/index.js",
@@ -20,8 +20,8 @@
20
20
  "clsx": "1.1.1",
21
21
  "react": "^16.8.0 || ^17.0.0",
22
22
  "react-dom": "^16.8.0 || ^17.0.0",
23
- "@digigov/react-core": "0.22.0",
24
- "@digigov/react-extensions": "0.21.0"
23
+ "@digigov/react-core": "0.23.0",
24
+ "@digigov/react-extensions": "0.21.2"
25
25
  },
26
26
  "gitHead": "c903a46306f77f55ad7fc4d2e274006f39a6c871",
27
27
  "private": false,
package/registry.d.ts CHANGED
@@ -123,6 +123,7 @@ declare var _default: {
123
123
  '@digigov/ui/core/SectionBreak': {};
124
124
  '@digigov/ui/core/SelectContainer': {};
125
125
  '@digigov/ui/core/ServiceBadge': {};
126
+ '@digigov/ui/core/SingleCharacterInputContainer': {};
126
127
  '@digigov/ui/core/SkipLink': {};
127
128
  '@digigov/ui/core/SummaryList': {};
128
129
  '@digigov/ui/core/SvgIcon': {};
@@ -235,6 +236,7 @@ export const stories: {
235
236
  '@digigov/ui/core/PhaseBanner/PhaseBanner.stories': typeof _digigov_ui_core_PhaseBanner_PhaseBanner_stories;
236
237
  '@digigov/ui/core/RadioContainer/RadioContainer.stories': typeof _digigov_ui_core_RadioContainer_RadioContainer_stories;
237
238
  '@digigov/ui/core/SelectContainer/Select.stories': typeof _digigov_ui_core_SelectContainer_Select_stories;
239
+ '@digigov/ui/core/SingleCharacterInputContainer/SingleCharacterInputContainer.stories': typeof _digigov_ui_core_SingleCharacterInputContainer_SingleCharacterInputContainer_stories;
238
240
  '@digigov/ui/core/SummaryList/SummaryList.stories': typeof _digigov_ui_core_SummaryList_SummaryList_stories;
239
241
  '@digigov/ui/core/Table/Table.stories': typeof _digigov_ui_core_Table_Table_stories;
240
242
  '@digigov/ui/core/Tabs/Tabs.stories': typeof _digigov_ui_core_Tabs_Tabs_stories;
@@ -288,6 +290,7 @@ import * as _digigov_ui_core_NotificationBanner_NotificationBanner_stories from
288
290
  import * as _digigov_ui_core_PhaseBanner_PhaseBanner_stories from "@digigov/ui/core/PhaseBanner/PhaseBanner.stories";
289
291
  import * as _digigov_ui_core_RadioContainer_RadioContainer_stories from "@digigov/ui/core/RadioContainer/RadioContainer.stories";
290
292
  import * as _digigov_ui_core_SelectContainer_Select_stories from "@digigov/ui/core/SelectContainer/Select.stories";
293
+ import * as _digigov_ui_core_SingleCharacterInputContainer_SingleCharacterInputContainer_stories from "@digigov/ui/core/SingleCharacterInputContainer/SingleCharacterInputContainer.stories";
291
294
  import * as _digigov_ui_core_SummaryList_SummaryList_stories from "@digigov/ui/core/SummaryList/SummaryList.stories";
292
295
  import * as _digigov_ui_core_Table_Table_stories from "@digigov/ui/core/Table/Table.stories";
293
296
  import * as _digigov_ui_core_Tabs_Tabs_stories from "@digigov/ui/core/Tabs/Tabs.stories";
package/registry.js CHANGED
@@ -255,6 +255,8 @@ var _digigov_ui_core_SelectContainer = _interopRequireWildcard(require("@digigov
255
255
 
256
256
  var _digigov_ui_core_ServiceBadge = _interopRequireWildcard(require("@digigov/ui/core/ServiceBadge"));
257
257
 
258
+ var _digigov_ui_core_SingleCharacterInputContainer = _interopRequireWildcard(require("@digigov/ui/core/SingleCharacterInputContainer"));
259
+
258
260
  var _digigov_ui_core_SkipLink = _interopRequireWildcard(require("@digigov/ui/core/SkipLink"));
259
261
 
260
262
  var _digigov_ui_core_SummaryList = _interopRequireWildcard(require("@digigov/ui/core/SummaryList"));
@@ -473,6 +475,8 @@ var _digigov_ui_core_RadioContainer_RadioContainer_stories = _interopRequireWild
473
475
 
474
476
  var _digigov_ui_core_SelectContainer_Select_stories = _interopRequireWildcard(require("@digigov/ui/core/SelectContainer/Select.stories"));
475
477
 
478
+ var _digigov_ui_core_SingleCharacterInputContainer_SingleCharacterInputContainer_stories = _interopRequireWildcard(require("@digigov/ui/core/SingleCharacterInputContainer/SingleCharacterInputContainer.stories"));
479
+
476
480
  var _digigov_ui_core_SummaryList_SummaryList_stories = _interopRequireWildcard(require("@digigov/ui/core/SummaryList/SummaryList.stories"));
477
481
 
478
482
  var _digigov_ui_core_Table_Table_stories = _interopRequireWildcard(require("@digigov/ui/core/Table/Table.stories"));
@@ -644,6 +648,7 @@ var _default = {
644
648
  '@digigov/ui/core/SectionBreak': lazyImport(_digigov_ui_core_SectionBreak),
645
649
  '@digigov/ui/core/SelectContainer': lazyImport(_digigov_ui_core_SelectContainer),
646
650
  '@digigov/ui/core/ServiceBadge': lazyImport(_digigov_ui_core_ServiceBadge),
651
+ '@digigov/ui/core/SingleCharacterInputContainer': lazyImport(_digigov_ui_core_SingleCharacterInputContainer),
647
652
  '@digigov/ui/core/SkipLink': lazyImport(_digigov_ui_core_SkipLink),
648
653
  '@digigov/ui/core/SummaryList': lazyImport(_digigov_ui_core_SummaryList),
649
654
  '@digigov/ui/core/SvgIcon': lazyImport(_digigov_ui_core_SvgIcon),
@@ -756,6 +761,7 @@ var stories = {
756
761
  '@digigov/ui/core/PhaseBanner/PhaseBanner.stories': _digigov_ui_core_PhaseBanner_PhaseBanner_stories,
757
762
  '@digigov/ui/core/RadioContainer/RadioContainer.stories': _digigov_ui_core_RadioContainer_RadioContainer_stories,
758
763
  '@digigov/ui/core/SelectContainer/Select.stories': _digigov_ui_core_SelectContainer_Select_stories,
764
+ '@digigov/ui/core/SingleCharacterInputContainer/SingleCharacterInputContainer.stories': _digigov_ui_core_SingleCharacterInputContainer_SingleCharacterInputContainer_stories,
759
765
  '@digigov/ui/core/SummaryList/SummaryList.stories': _digigov_ui_core_SummaryList_SummaryList_stories,
760
766
  '@digigov/ui/core/Table/Table.stories': _digigov_ui_core_Table_Table_stories,
761
767
  '@digigov/ui/core/Tabs/Tabs.stories': _digigov_ui_core_Tabs_Tabs_stories,
@@ -16,51 +16,29 @@ import AutoComplete from '@digigov/ui/admin/AutoComplete';
16
16
 
17
17
  ### AutoComplete
18
18
 
19
- <Story
20
- packageName="@digigov/ui"
21
- component="admin/AutoComplete"
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
 
@@ -12,7 +12,7 @@
12
12
  }
13
13
  }
14
14
  ],
15
- "id": "BSaIJR2CMZJU",
15
+ "id": "slm0qFzUIkGw",
16
16
  "title": "Click button"
17
17
  }
18
18
  ]
@@ -28,7 +28,7 @@
28
28
  }
29
29
  }
30
30
  ],
31
- "id": "T50MBtHpfRog",
31
+ "id": "dTykMmK3AzLT",
32
32
  "title": "Click button"
33
33
  }
34
34
  ]
@@ -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
 
@@ -84,7 +84,6 @@ export const Default = () => {
84
84
  {links.map((item, key) => (
85
85
  <React.Fragment key={key}>
86
86
  <NavListItem
87
- layout={layout}
88
87
  link={item}
89
88
  setRegisterButton={setRegisterButton}
90
89
  setRegisterLink={setRegisterLink}
@@ -95,11 +94,9 @@ export const Default = () => {
95
94
  paddingLeft={5}
96
95
  paddingRight={5}
97
96
  >
98
- <NavMenuContainerTitle layout={layout}>
99
- {item.label}
100
- </NavMenuContainerTitle>
97
+ <NavMenuContainerTitle>{item.label}</NavMenuContainerTitle>
101
98
  <NavMenuContainerContent>
102
- <NavMenuContainerContentList role="menu" layout={layout}>
99
+ <NavMenuContainerContentList role="menu">
103
100
  {item.subMenu?.map((subMenu, menuIndex) => {
104
101
  return (
105
102
  isNavListItemLinkInterface(subMenu) && (
@@ -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
+ }
@@ -23,7 +23,7 @@ export const AlignRight = () => (
23
23
  alignItems: 'center',
24
24
  }}
25
25
  >
26
- <Dropdown align="right" open>
26
+ <Dropdown align="right">
27
27
  <DropdownButton
28
28
  role="button"
29
29
  aria-haspopup="true"
@@ -16,7 +16,7 @@ import { NavVerticalItem } from '@digigov/ui/core/NavList/NavVerticalItem';
16
16
  import { Button } from '@digigov/ui/core/Button';
17
17
 
18
18
  export const Default = () => (
19
- <Dropdown open>
19
+ <Dropdown>
20
20
  <DropdownButton
21
21
  role="button"
22
22
  aria-haspopup="true"
@@ -23,7 +23,7 @@ export const PlacementTop = () => (
23
23
  alignItems: 'center',
24
24
  }}
25
25
  >
26
- <Dropdown placement="top" open>
26
+ <Dropdown placement="top">
27
27
  <DropdownButton
28
28
  role="button"
29
29
  aria-haspopup="true"
@@ -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