@digigov/ui 0.21.3 → 0.22.0

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 (383) hide show
  1. package/CHANGELOG.md +15 -1
  2. package/admin/AutoComplete/AccesibleAutoComplete/index.d.ts +5 -0
  3. package/admin/AutoComplete/AccesibleAutoComplete/index.js +106 -0
  4. package/admin/AutoComplete/AutoComplete.stories.d.ts +13 -0
  5. package/admin/AutoComplete/AutoComplete.stories.js +115 -0
  6. package/admin/AutoComplete/Status/index.d.ts +40 -0
  7. package/admin/AutoComplete/Status/index.js +184 -0
  8. package/admin/AutoComplete/__stories__/Default.d.ts +3 -0
  9. package/admin/AutoComplete/__stories__/Default.js +34 -0
  10. package/admin/AutoComplete/__stories__/WithAutoSelect.d.ts +3 -0
  11. package/admin/AutoComplete/__stories__/WithAutoSelect.js +35 -0
  12. package/admin/AutoComplete/__stories__/WithDefaultValue.d.ts +3 -0
  13. package/admin/AutoComplete/__stories__/WithDefaultValue.js +33 -0
  14. package/admin/AutoComplete/__stories__/WithInLine.d.ts +3 -0
  15. package/admin/AutoComplete/__stories__/WithInLine.js +33 -0
  16. package/admin/AutoComplete/__stories__/WithMinLength.d.ts +3 -0
  17. package/admin/AutoComplete/__stories__/WithMinLength.js +35 -0
  18. package/admin/AutoComplete/__stories__/WithPlaceHolder.d.ts +3 -0
  19. package/admin/AutoComplete/__stories__/WithPlaceHolder.js +33 -0
  20. package/admin/AutoComplete/__stories__/WithShowAllValues.d.ts +3 -0
  21. package/admin/AutoComplete/__stories__/WithShowAllValues.js +33 -0
  22. package/admin/AutoComplete/index.d.ts +101 -0
  23. package/admin/AutoComplete/index.js +744 -0
  24. package/admin/AutoComplete/index.mdx +46 -0
  25. package/admin/AutoComplete/utils.d.ts +1 -0
  26. package/admin/AutoComplete/utils.js +13 -0
  27. package/admin/Drawer/__stories__/Default.js +1 -1
  28. package/admin/Drawer/index.mdx +12 -0
  29. package/admin/FilterSection/index.d.ts +1 -0
  30. package/admin/FilterSection/index.js +14 -0
  31. package/admin/Pagination/__stories__/Default.js +38 -14
  32. package/admin/Pagination/index.mdx +12 -0
  33. package/admin/index.d.ts +1 -0
  34. package/admin/index.js +13 -0
  35. package/app/Confirmation/Confirmation.mdx +9 -0
  36. package/app/CopyToClipboard/CopyToClipboard.stories.d.ts +2 -0
  37. package/app/CopyToClipboard/CopyToClipboard.stories.js +28 -0
  38. package/app/CopyToClipboard/__stories__/Banner.d.ts +3 -0
  39. package/app/CopyToClipboard/__stories__/Banner.js +30 -0
  40. package/app/CopyToClipboard/__stories__/Default.js +4 -114
  41. package/app/CopyToClipboard/__stories__/MultipleCopies.d.ts +3 -0
  42. package/app/CopyToClipboard/__stories__/MultipleCopies.js +142 -0
  43. package/app/CopyToClipboard/index.mdx +22 -0
  44. package/app/Footer/Footer.mdx +27 -0
  45. package/app/Header/index.mdx +18 -0
  46. package/app/I18nText.js +7 -7
  47. package/app/NotFound/index.mdx +12 -0
  48. package/app/PhaseBannerHeader/index.mdx +12 -0
  49. package/core/Accordion/index.mdx +13 -86
  50. package/core/BackLink/index.mdx +16 -0
  51. package/core/Blockquote/index.mdx +17 -2
  52. package/core/Breadcrumbs/__stories__/Default.js +9 -1
  53. package/core/Breadcrumbs/breadcrumbs.mdx +22 -0
  54. package/core/Button/Button.mdx +37 -2
  55. package/core/Button/Button.stories.d.ts +2 -0
  56. package/core/Button/Button.stories.js +28 -0
  57. package/core/Button/__stories__/CallToActionButton.d.ts +3 -0
  58. package/core/Button/__stories__/CallToActionButton.js +22 -0
  59. package/core/Button/__stories__/Disabled.d.ts +6 -0
  60. package/core/Button/__stories__/Disabled.js +27 -0
  61. package/core/Button/__stories__/Warning.d.ts +1 -0
  62. package/core/Button/__stories__/Warning.js +4 -2
  63. package/core/Card/Card.stories.d.ts +1 -0
  64. package/core/Card/Card.stories.js +14 -0
  65. package/core/Card/__stories__/WithClickableLink.js +1 -3
  66. package/core/Card/__stories__/WithGroupButton.d.ts +3 -0
  67. package/core/Card/__stories__/WithGroupButton.js +32 -0
  68. package/core/Card/card.mdx +78 -0
  69. package/core/Checkboxes/Checkbox.stories.d.ts +1 -0
  70. package/core/Checkboxes/Checkbox.stories.js +14 -0
  71. package/core/Checkboxes/__stories__/NoneAnswerWithError.d.ts +3 -0
  72. package/core/Checkboxes/__stories__/NoneAnswerWithError.js +51 -0
  73. package/core/Checkboxes/checkboxes.mdx +54 -0
  74. package/core/Confirmation/confirmation.mdx +19 -0
  75. package/core/DateInput/DateInput.stories.d.ts +1 -0
  76. package/core/DateInput/DateInput.stories.js +14 -0
  77. package/core/DateInput/__stories__/Default.js +3 -1
  78. package/core/DateInput/__stories__/MultipleQuestions.d.ts +3 -0
  79. package/core/DateInput/__stories__/MultipleQuestions.js +41 -0
  80. package/core/DateInput/index.mdx +34 -0
  81. package/core/Details/index.mdx +9 -25
  82. package/core/ErrorMessage/__stories__/Default.js +1 -1
  83. package/core/ErrorMessage/index.mdx +21 -0
  84. package/core/ErrorSummary/__stories__/LinkedToCheckbox.js +1 -1
  85. package/core/ErrorSummary/index.mdx +21 -38
  86. package/core/FileUpload/__stories__/Default.d.ts +1 -0
  87. package/core/FileUpload/__stories__/Default.js +4 -2
  88. package/core/FileUpload/index.mdx +22 -0
  89. package/core/Link/__stories__/DarkBackground.js +1 -1
  90. package/core/Link/__stories__/DarkBackgroundNoUnderline.js +1 -1
  91. package/core/Link/link.mdx +30 -0
  92. package/core/List/index.mdx +22 -3
  93. package/core/Masthead/masthead.mdx +14 -0
  94. package/core/NavList/NavList.d.ts +1 -14
  95. package/core/NavList/NavList.js +11 -70
  96. package/core/NavList/NavListBase.d.ts +4 -0
  97. package/core/NavList/NavListBase.js +74 -0
  98. package/core/NavList/NavListSubMenu.d.ts +1 -1
  99. package/core/NavList/NavListSubMenu.js +2 -2
  100. package/core/NavList/types.d.ts +13 -0
  101. package/core/NavList/types.js +5 -0
  102. package/core/NotificationBanner/index.mdx +13 -60
  103. package/core/PhaseBanner/PhaseBanner.stories.d.ts +1 -0
  104. package/core/PhaseBanner/PhaseBanner.stories.js +14 -0
  105. package/core/PhaseBanner/__stories__/Underlined.d.ts +3 -0
  106. package/core/PhaseBanner/__stories__/Underlined.js +34 -0
  107. package/core/PhaseBanner/index.mdx +24 -0
  108. package/core/Radios/__stories__/Default.js +1 -3
  109. package/core/Radios/__stories__/MultipleQuestions.js +1 -1
  110. package/core/Radios/index.mdx +56 -0
  111. package/core/Select/Select.stories.d.ts +1 -0
  112. package/core/Select/Select.stories.js +14 -0
  113. package/core/Select/__stories__/WithHint.d.ts +3 -0
  114. package/core/Select/__stories__/WithHint.js +45 -0
  115. package/core/Select/index.mdx +36 -0
  116. package/core/SummaryList/SummaryList.stories.d.ts +2 -2
  117. package/core/SummaryList/SummaryList.stories.js +8 -8
  118. package/core/SummaryList/__stories__/Default.js +1 -1
  119. package/core/SummaryList/__stories__/WithActions.d.ts +3 -0
  120. package/core/SummaryList/__stories__/{SummaryListWithActions.js → WithActions.js} +10 -12
  121. package/core/SummaryList/__stories__/WithoutBorders.d.ts +3 -0
  122. package/core/SummaryList/__stories__/{SummaryListWithoutBorders.js → WithoutBorders.js} +5 -5
  123. package/core/SummaryList/index.mdx +17 -65
  124. package/core/Table/Table.stories.d.ts +1 -0
  125. package/core/Table/Table.stories.js +14 -0
  126. package/core/Table/__stories__/DarkVariant.js +1 -1
  127. package/core/Table/__stories__/Default.js +1 -1
  128. package/core/Table/__stories__/TableCaptions.d.ts +3 -0
  129. package/core/Table/__stories__/TableCaptions.js +30 -0
  130. package/core/Table/index.mdx +52 -0
  131. package/core/Tabs/__stories__/Default.d.ts +1 -0
  132. package/core/Tabs/__stories__/Default.js +6 -2
  133. package/core/Tabs/index.mdx +10 -2
  134. package/core/TextArea/index.mdx +50 -0
  135. package/core/TextInput/index.mdx +59 -0
  136. package/core/VisuallyHidden/__stories__/Default.js +14 -2
  137. package/core/VisuallyHidden/index.mdx +17 -0
  138. package/core/WarningText/index.mdx +10 -35
  139. package/es/admin/AutoComplete/AccesibleAutoComplete/index.js +87 -0
  140. package/es/admin/AutoComplete/AutoComplete.stories.js +13 -0
  141. package/es/admin/AutoComplete/Status/index.js +153 -0
  142. package/es/admin/AutoComplete/__stories__/Default.js +19 -0
  143. package/es/admin/AutoComplete/__stories__/WithAutoSelect.js +20 -0
  144. package/es/admin/AutoComplete/__stories__/WithDefaultValue.js +18 -0
  145. package/es/admin/AutoComplete/__stories__/WithInLine.js +18 -0
  146. package/es/admin/AutoComplete/__stories__/WithMinLength.js +19 -0
  147. package/es/admin/AutoComplete/__stories__/WithPlaceHolder.js +18 -0
  148. package/es/admin/AutoComplete/__stories__/WithShowAllValues.js +18 -0
  149. package/es/admin/AutoComplete/index.js +676 -0
  150. package/es/admin/AutoComplete/index.mdx +46 -0
  151. package/es/admin/AutoComplete/utils.js +6 -0
  152. package/es/admin/Drawer/__stories__/Default.js +1 -1
  153. package/es/admin/Drawer/index.mdx +12 -0
  154. package/es/admin/FilterSection/index.js +1 -0
  155. package/es/admin/Pagination/__stories__/Default.js +37 -14
  156. package/es/admin/Pagination/index.mdx +12 -0
  157. package/es/admin/index.js +2 -1
  158. package/es/app/Confirmation/Confirmation.mdx +9 -0
  159. package/es/app/CopyToClipboard/CopyToClipboard.stories.js +3 -1
  160. package/es/app/CopyToClipboard/__stories__/Banner.js +16 -0
  161. package/es/app/CopyToClipboard/__stories__/Default.js +5 -107
  162. package/es/app/CopyToClipboard/__stories__/MultipleCopies.js +120 -0
  163. package/es/app/CopyToClipboard/index.mdx +22 -0
  164. package/es/app/Footer/Footer.mdx +27 -0
  165. package/es/app/Header/index.mdx +18 -0
  166. package/es/app/I18nText.js +7 -6
  167. package/es/app/NotFound/index.mdx +12 -0
  168. package/es/app/PhaseBannerHeader/index.mdx +12 -0
  169. package/es/core/Accordion/index.mdx +13 -86
  170. package/es/core/BackLink/index.mdx +16 -0
  171. package/es/core/Blockquote/index.mdx +17 -2
  172. package/es/core/Breadcrumbs/__stories__/Default.js +9 -1
  173. package/es/core/Breadcrumbs/breadcrumbs.mdx +22 -0
  174. package/es/core/Button/Button.mdx +37 -2
  175. package/es/core/Button/Button.stories.js +3 -1
  176. package/es/core/Button/__stories__/CallToActionButton.js +9 -0
  177. package/es/core/Button/__stories__/Disabled.js +14 -0
  178. package/es/core/Button/__stories__/Warning.js +2 -1
  179. package/es/core/Card/Card.stories.js +2 -1
  180. package/es/core/Card/__stories__/WithClickableLink.js +2 -3
  181. package/es/core/Card/__stories__/WithGroupButton.js +11 -0
  182. package/es/core/Card/card.mdx +78 -0
  183. package/es/core/Checkboxes/Checkbox.stories.js +1 -0
  184. package/es/core/Checkboxes/__stories__/NoneAnswerWithError.js +28 -0
  185. package/es/core/Checkboxes/checkboxes.mdx +54 -0
  186. package/es/core/Confirmation/confirmation.mdx +19 -0
  187. package/es/core/DateInput/DateInput.stories.js +1 -0
  188. package/es/core/DateInput/__stories__/Default.js +3 -1
  189. package/es/core/DateInput/__stories__/MultipleQuestions.js +20 -0
  190. package/es/core/DateInput/index.mdx +34 -0
  191. package/es/core/Details/index.mdx +9 -25
  192. package/es/core/ErrorMessage/__stories__/Default.js +1 -1
  193. package/es/core/ErrorMessage/index.mdx +21 -0
  194. package/es/core/ErrorSummary/__stories__/LinkedToCheckbox.js +1 -1
  195. package/es/core/ErrorSummary/index.mdx +21 -38
  196. package/es/core/FileUpload/__stories__/Default.js +2 -1
  197. package/es/core/FileUpload/index.mdx +22 -0
  198. package/es/core/Link/__stories__/DarkBackground.js +1 -1
  199. package/es/core/Link/__stories__/DarkBackgroundNoUnderline.js +1 -1
  200. package/es/core/Link/link.mdx +30 -0
  201. package/es/core/List/index.mdx +22 -3
  202. package/es/core/Masthead/masthead.mdx +14 -0
  203. package/es/core/NavList/NavList.js +8 -63
  204. package/es/core/NavList/NavListBase.js +58 -0
  205. package/es/core/NavList/NavListSubMenu.js +1 -1
  206. package/es/core/NavList/types.js +1 -0
  207. package/es/core/NotificationBanner/index.mdx +13 -60
  208. package/es/core/PhaseBanner/PhaseBanner.stories.js +2 -1
  209. package/es/core/PhaseBanner/__stories__/Underlined.js +14 -0
  210. package/es/core/PhaseBanner/index.mdx +24 -0
  211. package/es/core/Radios/__stories__/Default.js +1 -2
  212. package/es/core/Radios/__stories__/MultipleQuestions.js +1 -1
  213. package/es/core/Radios/index.mdx +56 -0
  214. package/es/core/Select/Select.stories.js +2 -1
  215. package/es/core/Select/__stories__/WithHint.js +22 -0
  216. package/es/core/Select/index.mdx +36 -0
  217. package/es/core/SummaryList/SummaryList.stories.js +2 -2
  218. package/es/core/SummaryList/__stories__/Default.js +1 -1
  219. package/es/core/SummaryList/__stories__/WithActions.js +20 -0
  220. package/es/core/SummaryList/__stories__/WithoutBorders.js +11 -0
  221. package/es/core/SummaryList/index.mdx +17 -65
  222. package/es/core/Table/Table.stories.js +1 -0
  223. package/es/core/Table/__stories__/DarkVariant.js +1 -1
  224. package/es/core/Table/__stories__/Default.js +1 -1
  225. package/es/core/Table/__stories__/TableCaptions.js +17 -0
  226. package/es/core/Table/index.mdx +52 -0
  227. package/es/core/Tabs/__stories__/Default.js +3 -2
  228. package/es/core/Tabs/index.mdx +10 -2
  229. package/es/core/TextArea/index.mdx +50 -0
  230. package/es/core/TextInput/index.mdx +59 -0
  231. package/es/core/VisuallyHidden/__stories__/Default.js +9 -5
  232. package/es/core/VisuallyHidden/index.mdx +17 -0
  233. package/es/core/WarningText/index.mdx +10 -35
  234. package/es/govgr/Footer/index.mdx +4 -4
  235. package/es/introduction.md +4 -1
  236. package/es/layouts/Grid/Grid.stories.js +2 -1
  237. package/es/layouts/Grid/__stories__/Inline.js +55 -0
  238. package/es/layouts/Grid/index.js +1 -0
  239. package/es/layouts/index.js +2 -0
  240. package/es/registry.js +57 -17
  241. package/es/typography/Caption/index.mdx +16 -0
  242. package/es/typography/Hint/index.mdx +16 -0
  243. package/es/typography/NormalText/index.mdx +26 -0
  244. package/es/typography/Paragraph/index.mdx +30 -0
  245. package/es/typography/Title/index.mdx +12 -0
  246. package/esm/admin/AutoComplete/AccesibleAutoComplete/index.js +87 -0
  247. package/esm/admin/AutoComplete/AutoComplete.stories.js +13 -0
  248. package/esm/admin/AutoComplete/Status/index.js +153 -0
  249. package/esm/admin/AutoComplete/__stories__/Default.js +19 -0
  250. package/esm/admin/AutoComplete/__stories__/WithAutoSelect.js +20 -0
  251. package/esm/admin/AutoComplete/__stories__/WithDefaultValue.js +18 -0
  252. package/esm/admin/AutoComplete/__stories__/WithInLine.js +18 -0
  253. package/esm/admin/AutoComplete/__stories__/WithMinLength.js +19 -0
  254. package/esm/admin/AutoComplete/__stories__/WithPlaceHolder.js +18 -0
  255. package/esm/admin/AutoComplete/__stories__/WithShowAllValues.js +18 -0
  256. package/esm/admin/AutoComplete/index.js +676 -0
  257. package/esm/admin/AutoComplete/index.mdx +46 -0
  258. package/esm/admin/AutoComplete/utils.js +6 -0
  259. package/esm/admin/Drawer/__stories__/Default.js +1 -1
  260. package/esm/admin/Drawer/index.mdx +12 -0
  261. package/esm/admin/FilterSection/index.js +1 -0
  262. package/esm/admin/Pagination/__stories__/Default.js +37 -14
  263. package/esm/admin/Pagination/index.mdx +12 -0
  264. package/esm/admin/index.js +2 -1
  265. package/esm/app/Confirmation/Confirmation.mdx +9 -0
  266. package/esm/app/CopyToClipboard/CopyToClipboard.stories.js +3 -1
  267. package/esm/app/CopyToClipboard/__stories__/Banner.js +16 -0
  268. package/esm/app/CopyToClipboard/__stories__/Default.js +5 -107
  269. package/esm/app/CopyToClipboard/__stories__/MultipleCopies.js +120 -0
  270. package/esm/app/CopyToClipboard/index.mdx +22 -0
  271. package/esm/app/Footer/Footer.mdx +27 -0
  272. package/esm/app/Header/index.mdx +18 -0
  273. package/esm/app/I18nText.js +7 -6
  274. package/esm/app/NotFound/index.mdx +12 -0
  275. package/esm/app/PhaseBannerHeader/index.mdx +12 -0
  276. package/esm/core/Accordion/index.mdx +13 -86
  277. package/esm/core/BackLink/index.mdx +16 -0
  278. package/esm/core/Blockquote/index.mdx +17 -2
  279. package/esm/core/Breadcrumbs/__stories__/Default.js +9 -1
  280. package/esm/core/Breadcrumbs/breadcrumbs.mdx +22 -0
  281. package/esm/core/Button/Button.mdx +37 -2
  282. package/esm/core/Button/Button.stories.js +3 -1
  283. package/esm/core/Button/__stories__/CallToActionButton.js +9 -0
  284. package/esm/core/Button/__stories__/Disabled.js +14 -0
  285. package/esm/core/Button/__stories__/Warning.js +2 -1
  286. package/esm/core/Card/Card.stories.js +2 -1
  287. package/esm/core/Card/__stories__/WithClickableLink.js +2 -3
  288. package/esm/core/Card/__stories__/WithGroupButton.js +11 -0
  289. package/esm/core/Card/card.mdx +78 -0
  290. package/esm/core/Checkboxes/Checkbox.stories.js +1 -0
  291. package/esm/core/Checkboxes/__stories__/NoneAnswerWithError.js +28 -0
  292. package/esm/core/Checkboxes/checkboxes.mdx +54 -0
  293. package/esm/core/Confirmation/confirmation.mdx +19 -0
  294. package/esm/core/DateInput/DateInput.stories.js +1 -0
  295. package/esm/core/DateInput/__stories__/Default.js +3 -1
  296. package/esm/core/DateInput/__stories__/MultipleQuestions.js +20 -0
  297. package/esm/core/DateInput/index.mdx +34 -0
  298. package/esm/core/Details/index.mdx +9 -25
  299. package/esm/core/ErrorMessage/__stories__/Default.js +1 -1
  300. package/esm/core/ErrorMessage/index.mdx +21 -0
  301. package/esm/core/ErrorSummary/__stories__/LinkedToCheckbox.js +1 -1
  302. package/esm/core/ErrorSummary/index.mdx +21 -38
  303. package/esm/core/FileUpload/__stories__/Default.js +2 -1
  304. package/esm/core/FileUpload/index.mdx +22 -0
  305. package/esm/core/Link/__stories__/DarkBackground.js +1 -1
  306. package/esm/core/Link/__stories__/DarkBackgroundNoUnderline.js +1 -1
  307. package/esm/core/Link/link.mdx +30 -0
  308. package/esm/core/List/index.mdx +22 -3
  309. package/esm/core/Masthead/masthead.mdx +14 -0
  310. package/esm/core/NavList/NavList.js +8 -63
  311. package/esm/core/NavList/NavListBase.js +58 -0
  312. package/esm/core/NavList/NavListSubMenu.js +1 -1
  313. package/esm/core/NavList/types.js +1 -0
  314. package/esm/core/NotificationBanner/index.mdx +13 -60
  315. package/esm/core/PhaseBanner/PhaseBanner.stories.js +2 -1
  316. package/esm/core/PhaseBanner/__stories__/Underlined.js +14 -0
  317. package/esm/core/PhaseBanner/index.mdx +24 -0
  318. package/esm/core/Radios/__stories__/Default.js +1 -2
  319. package/esm/core/Radios/__stories__/MultipleQuestions.js +1 -1
  320. package/esm/core/Radios/index.mdx +56 -0
  321. package/esm/core/Select/Select.stories.js +2 -1
  322. package/esm/core/Select/__stories__/WithHint.js +22 -0
  323. package/esm/core/Select/index.mdx +36 -0
  324. package/esm/core/SummaryList/SummaryList.stories.js +2 -2
  325. package/esm/core/SummaryList/__stories__/Default.js +1 -1
  326. package/esm/core/SummaryList/__stories__/WithActions.js +20 -0
  327. package/esm/core/SummaryList/__stories__/WithoutBorders.js +11 -0
  328. package/esm/core/SummaryList/index.mdx +17 -65
  329. package/esm/core/Table/Table.stories.js +1 -0
  330. package/esm/core/Table/__stories__/DarkVariant.js +1 -1
  331. package/esm/core/Table/__stories__/Default.js +1 -1
  332. package/esm/core/Table/__stories__/TableCaptions.js +17 -0
  333. package/esm/core/Table/index.mdx +52 -0
  334. package/esm/core/Tabs/__stories__/Default.js +3 -2
  335. package/esm/core/Tabs/index.mdx +10 -2
  336. package/esm/core/TextArea/index.mdx +50 -0
  337. package/esm/core/TextInput/index.mdx +59 -0
  338. package/esm/core/VisuallyHidden/__stories__/Default.js +9 -5
  339. package/esm/core/VisuallyHidden/index.mdx +17 -0
  340. package/esm/core/WarningText/index.mdx +10 -35
  341. package/esm/govgr/Footer/index.mdx +4 -4
  342. package/esm/index.js +1 -1
  343. package/esm/introduction.md +4 -1
  344. package/esm/layouts/Grid/Grid.stories.js +2 -1
  345. package/esm/layouts/Grid/__stories__/Inline.js +55 -0
  346. package/esm/layouts/Grid/index.js +1 -0
  347. package/esm/layouts/index.js +2 -0
  348. package/esm/registry.js +57 -17
  349. package/esm/typography/Caption/index.mdx +16 -0
  350. package/esm/typography/Hint/index.mdx +16 -0
  351. package/esm/typography/NormalText/index.mdx +26 -0
  352. package/esm/typography/Paragraph/index.mdx +30 -0
  353. package/esm/typography/Title/index.mdx +12 -0
  354. package/govgr/Footer/index.mdx +4 -4
  355. package/introduction.md +4 -1
  356. package/layouts/Grid/Grid.stories.d.ts +1 -0
  357. package/layouts/Grid/Grid.stories.js +14 -0
  358. package/layouts/Grid/__stories__/Inline.d.ts +3 -0
  359. package/layouts/Grid/__stories__/Inline.js +68 -0
  360. package/layouts/Grid/index.d.ts +1 -0
  361. package/layouts/Grid/index.js +6 -0
  362. package/layouts/index.d.ts +2 -0
  363. package/layouts/index.js +22 -1
  364. package/package.json +3 -3
  365. package/registry.d.ts +28 -8
  366. package/registry.js +85 -25
  367. package/typography/Caption/index.mdx +16 -0
  368. package/typography/Hint/index.mdx +16 -0
  369. package/typography/NormalText/index.mdx +26 -0
  370. package/typography/Paragraph/index.mdx +30 -0
  371. package/typography/Title/index.mdx +12 -0
  372. package/app/NotFound/NotFound.mdx +0 -5
  373. package/app/QrCodeScanner/index.mdx +0 -7
  374. package/core/SummaryList/__stories__/SummaryListWithActions.d.ts +0 -3
  375. package/core/SummaryList/__stories__/SummaryListWithoutBorders.d.ts +0 -3
  376. package/es/app/NotFound/NotFound.mdx +0 -5
  377. package/es/app/QrCodeScanner/index.mdx +0 -7
  378. package/es/core/SummaryList/__stories__/SummaryListWithActions.js +0 -21
  379. package/es/core/SummaryList/__stories__/SummaryListWithoutBorders.js +0 -11
  380. package/esm/app/NotFound/NotFound.mdx +0 -5
  381. package/esm/app/QrCodeScanner/index.mdx +0 -7
  382. package/esm/core/SummaryList/__stories__/SummaryListWithActions.js +0 -21
  383. package/esm/core/SummaryList/__stories__/SummaryListWithoutBorders.js +0 -11
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = exports.WithMinLength = void 0;
9
+
10
+ var _react = _interopRequireDefault(require("react"));
11
+
12
+ var _AutoComplete = _interopRequireDefault(require("@digigov/ui/admin/AutoComplete"));
13
+
14
+ var _Field = _interopRequireDefault(require("@digigov/ui/core/Field"));
15
+
16
+ var _Paragraph = _interopRequireDefault(require("@digigov/ui/typography/Paragraph"));
17
+
18
+ var _utils = _interopRequireDefault(require("@digigov/ui/admin/AutoComplete/utils"));
19
+
20
+ var _ref = /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Paragraph["default"], null, "This is the minimum number of characters that should be entered before the autocomplete will attempt to suggest options(in above example is 2)"), /*#__PURE__*/_react["default"].createElement(_Field["default"], null, /*#__PURE__*/_react["default"].createElement(_AutoComplete["default"], {
21
+ source: _utils["default"],
22
+ autoselect: true,
23
+ minLength: 2,
24
+ id: "govgr"
25
+ })), /*#__PURE__*/_react["default"].createElement("div", {
26
+ className: "govgr-btn govgr-btn-primary"
27
+ }, "lalal"));
28
+
29
+ var WithMinLength = function WithMinLength() {
30
+ return _ref;
31
+ };
32
+
33
+ exports.WithMinLength = WithMinLength;
34
+ var _default = WithMinLength;
35
+ exports["default"] = _default;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const WithPlaceHolder: () => JSX.Element;
3
+ export default WithPlaceHolder;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = exports.WithPlaceHolder = void 0;
9
+
10
+ var _react = _interopRequireDefault(require("react"));
11
+
12
+ var _AutoComplete = _interopRequireDefault(require("@digigov/ui/admin/AutoComplete"));
13
+
14
+ var _Field = _interopRequireDefault(require("@digigov/ui/core/Field"));
15
+
16
+ var _utils = _interopRequireDefault(require("@digigov/ui/admin/AutoComplete/utils"));
17
+
18
+ var _ref = /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Field["default"], null, /*#__PURE__*/_react["default"].createElement(_AutoComplete["default"], {
19
+ source: _utils["default"],
20
+ autoselect: true,
21
+ placeholder: "Search for a country",
22
+ id: "govgr"
23
+ })), /*#__PURE__*/_react["default"].createElement("div", {
24
+ className: "govgr-btn govgr-btn-primary"
25
+ }, "lalal"));
26
+
27
+ var WithPlaceHolder = function WithPlaceHolder() {
28
+ return _ref;
29
+ };
30
+
31
+ exports.WithPlaceHolder = WithPlaceHolder;
32
+ var _default = WithPlaceHolder;
33
+ exports["default"] = _default;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const WithShowAllValues: () => JSX.Element;
3
+ export default WithShowAllValues;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = exports.WithShowAllValues = void 0;
9
+
10
+ var _react = _interopRequireDefault(require("react"));
11
+
12
+ var _AutoComplete = _interopRequireDefault(require("@digigov/ui/admin/AutoComplete"));
13
+
14
+ var _Field = _interopRequireDefault(require("@digigov/ui/core/Field"));
15
+
16
+ var _utils = _interopRequireDefault(require("@digigov/ui/admin/AutoComplete/utils"));
17
+
18
+ var _ref = /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Field["default"], null, /*#__PURE__*/_react["default"].createElement(_AutoComplete["default"], {
19
+ source: _utils["default"],
20
+ autoselect: true,
21
+ showAllValues: true,
22
+ id: "govgr"
23
+ })), /*#__PURE__*/_react["default"].createElement("div", {
24
+ className: "govgr-btn govgr-btn-primary"
25
+ }, "lalal"));
26
+
27
+ var WithShowAllValues = function WithShowAllValues() {
28
+ return _ref;
29
+ };
30
+
31
+ exports.WithShowAllValues = WithShowAllValues;
32
+ var _default = WithShowAllValues;
33
+ exports["default"] = _default;
@@ -0,0 +1,101 @@
1
+ import AutoCompleteInput from '@digigov/react-extensions/admin/AutoCompleteInput';
2
+ import AutoCompleteInputTypeahead from '@digigov/react-extensions/admin/AutoCompleteInputTypeahead';
3
+ import AutoCompleteNoResult from '@digigov/react-extensions/admin/AutoCompleteNoResult';
4
+ import AutoCompleteResultList from '@digigov/react-extensions/admin/AutoCompleteResultList';
5
+ import AutoCompleteResultListItem from '@digigov/react-extensions/admin/AutoCompleteResultListItem';
6
+ import AutoCompleteWrapper from '@digigov/react-extensions/admin/AutoCompleteWrapper';
7
+ import AutoCompleteAssistiveHint from '@digigov/react-extensions/admin/AutoCompleteAssistiveHint';
8
+ import { Component } from 'react';
9
+ declare type AutoCompleteProps = {
10
+ source: (query: string, syncResults: (options: string[]) => void) => void;
11
+ id: string;
12
+ tStatusResults?: (x: number, y: string) => string;
13
+ tStatusNoResults?: () => string;
14
+ tStatusQueryTooShort?: (x: number) => string;
15
+ tStatusSelectedOption?: (x: string, y: number, z: number) => string;
16
+ templates?: {
17
+ suggestion: (value: string) => string;
18
+ inputValue: (value: string) => string;
19
+ };
20
+ cellWidth?: 'one-third' | 'one-quarter' | 'one-half' | 'two-thirds' | 'three-quarters' | 'full';
21
+ autoselect?: boolean;
22
+ defaultValue?: string;
23
+ displayMenu?: 'overlay' | 'inline';
24
+ minLength?: number;
25
+ name?: string;
26
+ placeholder?: string;
27
+ onConfirm?: (x: string) => void;
28
+ confirmOnBlur?: boolean;
29
+ showNoOptionsFound?: boolean;
30
+ showAllValues?: boolean;
31
+ required?: boolean;
32
+ tNoResults?: () => string;
33
+ tAssistiveHint?: () => string;
34
+ dropdownArrow?: any;
35
+ };
36
+ declare type State = {
37
+ focused: any;
38
+ hovered: any;
39
+ menuOpen: boolean;
40
+ options: string[];
41
+ query: string;
42
+ validChoiceMade: boolean;
43
+ selected: any;
44
+ ariaHint: boolean;
45
+ };
46
+ declare type ΝewQueryProps = {
47
+ menuOpen?: boolean;
48
+ query?: string;
49
+ };
50
+ export default class AutoComplete extends Component<AutoCompleteProps, State> {
51
+ static defaultProps: {
52
+ cellWidth: string;
53
+ autoselect: boolean;
54
+ defaultValue: string;
55
+ displayMenu: string;
56
+ minLength: number;
57
+ name: string;
58
+ placeholder: string;
59
+ onConfirm: () => void;
60
+ confirmOnBlur: boolean;
61
+ showNoOptionsFound: boolean;
62
+ showAllValues: boolean;
63
+ required: boolean;
64
+ tNoResults: () => string;
65
+ tAssistiveHint: () => string;
66
+ dropdownArrow: ({ className }: {
67
+ className: any;
68
+ }) => JSX.Element;
69
+ };
70
+ elementReferences: {};
71
+ $pollInput: any;
72
+ constructor(props: AutoCompleteProps);
73
+ isQueryAnOption(query: string, options: string[]): boolean;
74
+ componentDidMount(): void;
75
+ componentWillUnmount(): void;
76
+ pollInputElement(): void;
77
+ getDirectInputChanges(): void;
78
+ componentDidUpdate(prevState: any): void;
79
+ hasAutoselect(): boolean;
80
+ templateInputValue(value: string): string;
81
+ templateSuggestion(value: string): string;
82
+ handleComponentBlur(newState: ΝewQueryProps): void;
83
+ handleListMouseLeave(): void;
84
+ handleOptionBlur(event: any, index: number): void;
85
+ handleInputBlur(): void;
86
+ handleInputChange(event: any): void;
87
+ handleInputClick(event: any): void;
88
+ handleInputFocus(): void;
89
+ handleOptionFocus(index: number): void;
90
+ handleOptionMouseEnter(index: number): void;
91
+ handleOptionClick(index: number): void;
92
+ handleOptionMouseDown(event: any): void;
93
+ handleUpArrow(event: any): void;
94
+ handleDownArrow(event: any): void;
95
+ handleSpace(event: any): void;
96
+ handleEnter(event: any): void;
97
+ handlePrintableKey(event: any): void;
98
+ handleKeyDown(event: any): void;
99
+ render(): JSX.Element;
100
+ }
101
+ export { AutoCompleteInput, AutoCompleteInputTypeahead, AutoCompleteNoResult, AutoCompleteResultList, AutoCompleteResultListItem, AutoCompleteWrapper, AutoCompleteAssistiveHint, };