@digigov/ui 0.21.1 → 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 (1055) hide show
  1. package/CHANGELOG.md +32 -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/CircularProgress/CircularProgress.stories.d.ts +6 -0
  28. package/admin/CircularProgress/CircularProgress.stories.js +30 -0
  29. package/admin/CircularProgress/__stories__/Default.d.ts +3 -0
  30. package/admin/CircularProgress/__stories__/Default.js +26 -0
  31. package/admin/Drawer/Drawer.stories.d.ts +7 -0
  32. package/admin/Drawer/Drawer.stories.js +30 -0
  33. package/admin/Drawer/__stories__/Default.d.ts +3 -0
  34. package/admin/Drawer/__stories__/Default.js +106 -0
  35. package/admin/Drawer/index.mdx +12 -0
  36. package/admin/Dropdown/index.d.ts +7 -1
  37. package/admin/Dropdown/index.js +29 -1
  38. package/admin/FilterSection/index.d.ts +1 -0
  39. package/admin/FilterSection/index.js +14 -0
  40. package/admin/Pagination/Pagination.stories.d.ts +7 -0
  41. package/admin/Pagination/Pagination.stories.js +30 -0
  42. package/admin/Pagination/__stories__/Default.d.ts +3 -0
  43. package/admin/Pagination/__stories__/Default.js +179 -0
  44. package/admin/Pagination/index.mdx +12 -0
  45. package/admin/index.d.ts +1 -0
  46. package/admin/index.js +13 -0
  47. package/app/Confirmation/Confirmation.mdx +9 -0
  48. package/app/Confirmation/Confirmation.stories.d.ts +6 -0
  49. package/app/Confirmation/Confirmation.stories.js +30 -0
  50. package/app/Confirmation/__stories__/Default.d.ts +3 -0
  51. package/app/Confirmation/__stories__/Default.js +28 -0
  52. package/app/Confirmation/index.d.ts +5 -3
  53. package/app/Confirmation/index.js +19 -34
  54. package/app/CopyToClipboard/CopyToClipboard.stories.d.ts +9 -0
  55. package/app/CopyToClipboard/CopyToClipboard.stories.js +58 -0
  56. package/app/CopyToClipboard/__stories__/Banner.d.ts +3 -0
  57. package/app/CopyToClipboard/__stories__/Banner.js +30 -0
  58. package/app/CopyToClipboard/__stories__/Default.d.ts +3 -0
  59. package/app/CopyToClipboard/__stories__/Default.js +30 -0
  60. package/app/CopyToClipboard/__stories__/MultipleCopies.d.ts +3 -0
  61. package/app/CopyToClipboard/__stories__/MultipleCopies.js +142 -0
  62. package/app/CopyToClipboard/index.d.ts +9 -0
  63. package/app/CopyToClipboard/index.js +69 -0
  64. package/app/CopyToClipboard/index.mdx +22 -0
  65. package/app/Footer/Footer.mdx +27 -0
  66. package/app/Footer/Footer.stories.d.ts +10 -0
  67. package/app/Footer/Footer.stories.js +88 -0
  68. package/app/Footer/__stories__/Default.d.ts +3 -0
  69. package/app/Footer/__stories__/Default.js +22 -0
  70. package/app/Footer/__stories__/FooterAllInclusive.d.ts +3 -0
  71. package/app/Footer/__stories__/FooterAllInclusive.js +48 -0
  72. package/app/Footer/__stories__/FooterWithLink.d.ts +3 -0
  73. package/app/Footer/__stories__/FooterWithLink.js +40 -0
  74. package/app/Footer/__stories__/FooterWithLogo.d.ts +3 -0
  75. package/app/Footer/__stories__/FooterWithLogo.js +40 -0
  76. package/app/Footer/__stories__/FooterWithSecondaryNavigation.d.ts +3 -0
  77. package/app/Footer/__stories__/FooterWithSecondaryNavigation.js +50 -0
  78. package/app/Header/index.mdx +18 -0
  79. package/app/I18nText.js +7 -7
  80. package/app/NotFound/NotFound.stories.d.ts +7 -0
  81. package/app/NotFound/NotFound.stories.js +30 -0
  82. package/app/NotFound/__stories__/Default.d.ts +3 -0
  83. package/app/NotFound/__stories__/Default.js +22 -0
  84. package/app/NotFound/index.mdx +12 -0
  85. package/app/PhaseBannerHeader/PhaseBannerHeader.stories.d.ts +6 -0
  86. package/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +30 -0
  87. package/app/PhaseBannerHeader/__stories__/Default.d.ts +3 -0
  88. package/app/PhaseBannerHeader/__stories__/Default.js +25 -0
  89. package/app/{PhaseBannerHeader.d.ts → PhaseBannerHeader/index.d.ts} +0 -0
  90. package/app/{PhaseBannerHeader.js → PhaseBannerHeader/index.js} +0 -0
  91. package/app/PhaseBannerHeader/index.mdx +12 -0
  92. package/app/QrCodeScanner/QrCodeScanner.stories.d.ts +7 -0
  93. package/app/QrCodeScanner/QrCodeScanner.stories.js +30 -0
  94. package/app/QrCodeScanner/__stories__/Default.d.ts +3 -0
  95. package/app/QrCodeScanner/__stories__/Default.js +74 -0
  96. package/app/QrCodeScanner/index.d.ts +1 -3
  97. package/app/QrCodeScanner/index.js +10 -3
  98. package/core/Accordion/Accordion.stories.d.ts +7 -0
  99. package/core/Accordion/Accordion.stories.js +44 -0
  100. package/core/Accordion/__stories__/Default.d.ts +3 -0
  101. package/core/Accordion/__stories__/Default.js +34 -0
  102. package/core/Accordion/__stories__/WithHints.d.ts +3 -0
  103. package/core/Accordion/__stories__/WithHints.js +36 -0
  104. package/core/Accordion/index.mdx +13 -86
  105. package/core/BackLink/BackLink.stories.d.ts +7 -0
  106. package/core/BackLink/BackLink.stories.js +30 -0
  107. package/core/BackLink/__stories__/Default.d.ts +3 -0
  108. package/core/BackLink/__stories__/Default.js +24 -0
  109. package/core/BackLink/index.d.ts +3 -0
  110. package/core/BackLink/index.js +30 -0
  111. package/core/BackLink/index.mdx +16 -0
  112. package/core/Blockquote/Blockquote.stories.d.ts +7 -0
  113. package/core/Blockquote/Blockquote.stories.js +30 -0
  114. package/core/Blockquote/__stories__/Default.d.ts +3 -0
  115. package/core/Blockquote/__stories__/Default.js +22 -0
  116. package/core/Blockquote/index.mdx +17 -2
  117. package/core/Breadcrumbs/Breadcrumbs.stories.d.ts +7 -0
  118. package/core/Breadcrumbs/Breadcrumbs.stories.js +30 -0
  119. package/core/Breadcrumbs/__stories__/Default.d.ts +3 -0
  120. package/core/Breadcrumbs/__stories__/Default.js +36 -0
  121. package/core/Breadcrumbs/breadcrumbs.mdx +22 -0
  122. package/core/Breadcrumbs/index.d.ts +2 -0
  123. package/core/Breadcrumbs/index.js +16 -2
  124. package/core/Button/Button.mdx +37 -2
  125. package/core/Button/Button.stories.d.ts +2 -0
  126. package/core/Button/Button.stories.js +28 -0
  127. package/core/Button/__stories__/CallToActionButton.d.ts +3 -0
  128. package/core/Button/__stories__/CallToActionButton.js +22 -0
  129. package/core/Button/__stories__/Disabled.d.ts +6 -0
  130. package/core/Button/__stories__/Disabled.js +27 -0
  131. package/core/Button/__stories__/Warning.d.ts +1 -0
  132. package/core/Button/__stories__/Warning.js +4 -2
  133. package/core/Card/Card.stories.d.ts +15 -0
  134. package/core/Card/Card.stories.js +142 -0
  135. package/core/Card/__stories__/Default.d.ts +3 -0
  136. package/core/Card/__stories__/Default.js +30 -0
  137. package/core/Card/__stories__/WithClickableContent.d.ts +3 -0
  138. package/core/Card/__stories__/WithClickableContent.js +34 -0
  139. package/core/Card/__stories__/WithClickableLink.d.ts +3 -0
  140. package/core/Card/__stories__/WithClickableLink.js +32 -0
  141. package/core/Card/__stories__/WithDarkBorder.d.ts +3 -0
  142. package/core/Card/__stories__/WithDarkBorder.js +33 -0
  143. package/core/Card/__stories__/WithDarkTopBorder.d.ts +3 -0
  144. package/core/Card/__stories__/WithDarkTopBorder.js +33 -0
  145. package/core/Card/__stories__/WithDivider.d.ts +3 -0
  146. package/core/Card/__stories__/WithDivider.js +32 -0
  147. package/core/Card/__stories__/WithGrayBorder.d.ts +3 -0
  148. package/core/Card/__stories__/WithGrayBorder.js +33 -0
  149. package/core/Card/__stories__/WithGrayTopBorder.d.ts +3 -0
  150. package/core/Card/__stories__/WithGrayTopBorder.js +33 -0
  151. package/core/Card/__stories__/WithGroupButton.d.ts +3 -0
  152. package/core/Card/__stories__/WithGroupButton.js +32 -0
  153. package/core/Card/card.mdx +78 -0
  154. package/core/Checkboxes/Checkbox.stories.d.ts +13 -0
  155. package/core/Checkboxes/Checkbox.stories.js +114 -0
  156. package/core/Checkboxes/__stories__/ConditionalReveal.d.ts +3 -0
  157. package/core/Checkboxes/__stories__/ConditionalReveal.js +44 -0
  158. package/core/Checkboxes/__stories__/Default.d.ts +3 -0
  159. package/core/Checkboxes/__stories__/Default.js +41 -0
  160. package/core/Checkboxes/__stories__/MultipleQuestions.d.ts +3 -0
  161. package/core/Checkboxes/__stories__/MultipleQuestions.js +43 -0
  162. package/core/Checkboxes/__stories__/NoneAnswer.d.ts +3 -0
  163. package/core/Checkboxes/__stories__/NoneAnswer.js +43 -0
  164. package/core/Checkboxes/__stories__/NoneAnswerWithError.d.ts +3 -0
  165. package/core/Checkboxes/__stories__/NoneAnswerWithError.js +51 -0
  166. package/core/Checkboxes/__stories__/WithErrorMessage.d.ts +3 -0
  167. package/core/Checkboxes/__stories__/WithErrorMessage.js +44 -0
  168. package/core/Checkboxes/__stories__/WithHint.d.ts +3 -0
  169. package/core/Checkboxes/__stories__/WithHint.js +41 -0
  170. package/core/Checkboxes/checkboxes.mdx +54 -0
  171. package/core/Checkboxes/index.d.ts +5 -0
  172. package/core/Checkboxes/index.js +58 -0
  173. package/core/Confirmation/Confirmation.stories.d.ts +7 -0
  174. package/core/Confirmation/Confirmation.stories.js +30 -0
  175. package/core/Confirmation/__stories__/Default.d.ts +3 -0
  176. package/core/Confirmation/__stories__/Default.js +28 -0
  177. package/core/Confirmation/confirmation.mdx +19 -0
  178. package/core/Confirmation/index.d.ts +5 -0
  179. package/core/Confirmation/index.js +58 -0
  180. package/core/DateInput/DateInput.stories.d.ts +10 -0
  181. package/core/DateInput/DateInput.stories.js +72 -0
  182. package/core/DateInput/__stories__/Default.d.ts +3 -0
  183. package/core/DateInput/__stories__/Default.js +41 -0
  184. package/core/DateInput/__stories__/MultipleQuestions.d.ts +3 -0
  185. package/core/DateInput/__stories__/MultipleQuestions.js +41 -0
  186. package/core/DateInput/__stories__/WithErrorMessage.d.ts +3 -0
  187. package/core/DateInput/__stories__/WithErrorMessage.js +48 -0
  188. package/core/DateInput/__stories__/WithErrorMessageForSingleField.d.ts +3 -0
  189. package/core/DateInput/__stories__/WithErrorMessageForSingleField.js +46 -0
  190. package/core/DateInput/index.d.ts +4 -0
  191. package/core/DateInput/index.js +44 -0
  192. package/core/DateInput/index.mdx +34 -0
  193. package/core/Details/Details.stories.d.ts +7 -0
  194. package/core/Details/Details.stories.js +30 -0
  195. package/core/Details/__stories__/Default.d.ts +3 -0
  196. package/core/Details/__stories__/Default.js +28 -0
  197. package/core/Details/index.mdx +9 -25
  198. package/core/Divider/Divider.stories.d.ts +7 -0
  199. package/core/Divider/Divider.stories.js +32 -0
  200. package/core/Divider/__stories__/Default.d.ts +3 -0
  201. package/core/Divider/__stories__/Default.js +39 -0
  202. package/core/ErrorMessage/ErrorMessage.stories.d.ts +7 -0
  203. package/core/ErrorMessage/ErrorMessage.stories.js +30 -0
  204. package/core/ErrorMessage/__stories__/Default.d.ts +3 -0
  205. package/core/ErrorMessage/__stories__/Default.js +44 -0
  206. package/core/ErrorMessage/index.d.ts +3 -0
  207. package/core/ErrorMessage/index.js +30 -0
  208. package/core/ErrorMessage/index.mdx +21 -0
  209. package/core/ErrorSummary/ErrorSummary.stories.d.ts +10 -0
  210. package/core/ErrorSummary/ErrorSummary.stories.js +72 -0
  211. package/core/ErrorSummary/__stories__/Default.d.ts +3 -0
  212. package/core/ErrorSummary/__stories__/Default.js +28 -0
  213. package/core/ErrorSummary/__stories__/LinkedToCheckbox.d.ts +3 -0
  214. package/core/ErrorSummary/__stories__/LinkedToCheckbox.js +58 -0
  215. package/core/ErrorSummary/__stories__/LinkedToField.d.ts +3 -0
  216. package/core/ErrorSummary/__stories__/LinkedToField.js +59 -0
  217. package/core/ErrorSummary/__stories__/LinkedToInput.d.ts +3 -0
  218. package/core/ErrorSummary/__stories__/LinkedToInput.js +54 -0
  219. package/core/ErrorSummary/index.mdx +21 -38
  220. package/core/Field/index.d.ts +5 -0
  221. package/core/Field/index.js +58 -0
  222. package/core/FileUpload/FileUpload.stories.d.ts +8 -0
  223. package/core/FileUpload/FileUpload.stories.js +44 -0
  224. package/core/FileUpload/__stories__/Default.d.ts +3 -0
  225. package/core/FileUpload/__stories__/Default.js +34 -0
  226. package/core/FileUpload/__stories__/WithErrorMessage.d.ts +3 -0
  227. package/core/FileUpload/__stories__/WithErrorMessage.js +40 -0
  228. package/core/FileUpload/index.mdx +22 -0
  229. package/core/Link/Link.stories.d.ts +11 -0
  230. package/core/Link/Link.stories.js +86 -0
  231. package/core/Link/__stories__/DarkBackground.d.ts +3 -0
  232. package/core/Link/__stories__/DarkBackground.js +28 -0
  233. package/core/Link/__stories__/DarkBackgroundNoUnderline.d.ts +3 -0
  234. package/core/Link/__stories__/DarkBackgroundNoUnderline.js +29 -0
  235. package/core/Link/__stories__/Default.d.ts +3 -0
  236. package/core/Link/__stories__/Default.js +24 -0
  237. package/core/Link/__stories__/NoUnderline.d.ts +3 -0
  238. package/core/Link/__stories__/NoUnderline.js +25 -0
  239. package/core/Link/__stories__/OpensInNewTab.d.ts +3 -0
  240. package/core/Link/__stories__/OpensInNewTab.js +26 -0
  241. package/core/Link/link.mdx +30 -0
  242. package/core/List/List.stories.d.ts +9 -0
  243. package/core/List/List.stories.js +72 -0
  244. package/core/List/__stories__/BulletList.d.ts +3 -0
  245. package/core/List/__stories__/BulletList.js +30 -0
  246. package/core/List/__stories__/Default.d.ts +3 -0
  247. package/core/List/__stories__/Default.js +30 -0
  248. package/core/List/__stories__/NumberedList.d.ts +3 -0
  249. package/core/List/__stories__/NumberedList.js +30 -0
  250. package/core/List/__stories__/WithExtraSpace.d.ts +3 -0
  251. package/core/List/__stories__/WithExtraSpace.js +30 -0
  252. package/core/List/index.mdx +22 -3
  253. package/core/Masthead/Masthead.stories.d.ts +7 -0
  254. package/core/Masthead/Masthead.stories.js +30 -0
  255. package/core/Masthead/__stories__/Default.d.ts +3 -0
  256. package/core/Masthead/__stories__/Default.js +32 -0
  257. package/core/Masthead/index.d.ts +4 -0
  258. package/core/Masthead/index.js +44 -0
  259. package/core/Masthead/masthead.mdx +14 -0
  260. package/core/NavList/NavList.d.ts +1 -14
  261. package/core/NavList/NavList.js +11 -70
  262. package/core/NavList/NavListBase.d.ts +4 -0
  263. package/core/NavList/NavListBase.js +74 -0
  264. package/core/NavList/NavListSubMenu.d.ts +1 -1
  265. package/core/NavList/NavListSubMenu.js +2 -2
  266. package/core/NavList/types.d.ts +13 -0
  267. package/core/NavList/types.js +5 -0
  268. package/core/NotificationBanner/NotificationBanner.stories.d.ts +8 -0
  269. package/core/NotificationBanner/NotificationBanner.stories.js +44 -0
  270. package/core/NotificationBanner/__stories__/Default.d.ts +3 -0
  271. package/core/NotificationBanner/__stories__/Default.js +26 -0
  272. package/core/NotificationBanner/__stories__/Success.d.ts +3 -0
  273. package/core/NotificationBanner/__stories__/Success.js +27 -0
  274. package/core/NotificationBanner/index.d.ts +1 -1
  275. package/core/NotificationBanner/index.js +6 -3
  276. package/core/NotificationBanner/index.mdx +13 -60
  277. package/core/NotificationBanner/index.spec.js +1 -1
  278. package/core/PhaseBanner/PhaseBanner.stories.d.ts +8 -0
  279. package/core/PhaseBanner/PhaseBanner.stories.js +44 -0
  280. package/core/PhaseBanner/__stories__/Default.d.ts +3 -0
  281. package/core/PhaseBanner/__stories__/Default.js +32 -0
  282. package/core/PhaseBanner/__stories__/Underlined.d.ts +3 -0
  283. package/core/PhaseBanner/__stories__/Underlined.js +34 -0
  284. package/core/PhaseBanner/index.d.ts +6 -0
  285. package/core/PhaseBanner/index.js +72 -0
  286. package/core/PhaseBanner/index.mdx +24 -0
  287. package/core/Radios/Radios.stories.d.ts +13 -0
  288. package/core/Radios/Radios.stories.js +114 -0
  289. package/core/Radios/__stories__/ConditionalReveal.d.ts +3 -0
  290. package/core/Radios/__stories__/ConditionalReveal.js +44 -0
  291. package/core/Radios/__stories__/Default.d.ts +3 -0
  292. package/core/Radios/__stories__/Default.js +42 -0
  293. package/core/Radios/__stories__/Inline.d.ts +3 -0
  294. package/core/Radios/__stories__/Inline.js +40 -0
  295. package/core/Radios/__stories__/MultipleQuestions.d.ts +3 -0
  296. package/core/Radios/__stories__/MultipleQuestions.js +46 -0
  297. package/core/Radios/__stories__/NoneAnswer.d.ts +3 -0
  298. package/core/Radios/__stories__/NoneAnswer.js +41 -0
  299. package/core/Radios/__stories__/WithErrorMessage.d.ts +3 -0
  300. package/core/Radios/__stories__/WithErrorMessage.js +44 -0
  301. package/core/Radios/__stories__/WithHints.d.ts +3 -0
  302. package/core/Radios/__stories__/WithHints.js +40 -0
  303. package/core/Radios/index.d.ts +5 -0
  304. package/core/Radios/index.js +58 -0
  305. package/core/Radios/index.mdx +56 -0
  306. package/core/Select/Select.stories.d.ts +9 -0
  307. package/core/Select/Select.stories.js +58 -0
  308. package/core/Select/__stories__/Default.d.ts +3 -0
  309. package/core/Select/__stories__/Default.js +43 -0
  310. package/core/Select/__stories__/DisabledInput.d.ts +3 -0
  311. package/core/Select/__stories__/DisabledInput.js +43 -0
  312. package/core/Select/__stories__/WithHint.d.ts +3 -0
  313. package/core/Select/__stories__/WithHint.js +45 -0
  314. package/core/Select/index.d.ts +4 -0
  315. package/core/Select/index.js +44 -0
  316. package/core/Select/index.mdx +36 -0
  317. package/core/SummaryList/SummaryList.stories.d.ts +8 -0
  318. package/core/SummaryList/SummaryList.stories.js +60 -0
  319. package/core/SummaryList/__stories__/Default.d.ts +3 -0
  320. package/core/SummaryList/__stories__/Default.js +28 -0
  321. package/core/SummaryList/__stories__/WithActions.d.ts +3 -0
  322. package/core/SummaryList/__stories__/WithActions.js +42 -0
  323. package/core/SummaryList/__stories__/WithoutBorders.d.ts +3 -0
  324. package/core/SummaryList/__stories__/WithoutBorders.js +30 -0
  325. package/core/SummaryList/index.mdx +17 -65
  326. package/core/Table/Table.stories.d.ts +18 -0
  327. package/core/Table/Table.stories.js +200 -0
  328. package/core/Table/TableFloatingScroll.d.ts +3 -0
  329. package/core/Table/TableFloatingScroll.js +105 -0
  330. package/core/Table/__stories__/DarkVariant.d.ts +3 -0
  331. package/core/Table/__stories__/DarkVariant.js +24 -0
  332. package/core/Table/__stories__/DarkVariantWithVerticalHeaders.d.ts +3 -0
  333. package/core/Table/__stories__/DarkVariantWithVerticalHeaders.js +24 -0
  334. package/core/Table/__stories__/Default.d.ts +3 -0
  335. package/core/Table/__stories__/Default.js +22 -0
  336. package/core/Table/__stories__/DefinedWidth.d.ts +3 -0
  337. package/core/Table/__stories__/DefinedWidth.js +28 -0
  338. package/core/Table/__stories__/Densed.d.ts +3 -0
  339. package/core/Table/__stories__/Densed.js +26 -0
  340. package/core/Table/__stories__/MultipleProps.d.ts +3 -0
  341. package/core/Table/__stories__/MultipleProps.js +58 -0
  342. package/core/Table/__stories__/NoData.d.ts +3 -0
  343. package/core/Table/__stories__/NoData.js +22 -0
  344. package/core/Table/__stories__/NumericDataType.d.ts +3 -0
  345. package/core/Table/__stories__/NumericDataType.js +46 -0
  346. package/core/Table/__stories__/TableCaptions.d.ts +3 -0
  347. package/core/Table/__stories__/TableCaptions.js +30 -0
  348. package/core/Table/__stories__/VerticalBorders.d.ts +3 -0
  349. package/core/Table/__stories__/VerticalBorders.js +24 -0
  350. package/core/Table/__stories__/VerticalHeaders.d.ts +3 -0
  351. package/core/Table/__stories__/VerticalHeaders.js +22 -0
  352. package/core/Table/__stories__/WithHeader.d.ts +3 -0
  353. package/core/Table/__stories__/WithHeader.js +67 -0
  354. package/core/Table/__stories__/WithLoader.d.ts +3 -0
  355. package/core/Table/__stories__/WithLoader.js +103 -0
  356. package/core/Table/__stories__/ZebraProp.d.ts +3 -0
  357. package/core/Table/__stories__/ZebraProp.js +24 -0
  358. package/core/Table/index.d.ts +1 -0
  359. package/core/Table/index.js +13 -0
  360. package/core/Table/index.mdx +52 -0
  361. package/core/Tabs/Tabs.stories.d.ts +6 -0
  362. package/core/Tabs/Tabs.stories.js +30 -0
  363. package/core/Tabs/__stories__/Default.d.ts +3 -0
  364. package/core/Tabs/__stories__/Default.js +52 -0
  365. package/core/Tabs/index.js +21 -1
  366. package/core/Tabs/index.mdx +10 -2
  367. package/core/TextArea/TextArea.stories.d.ts +13 -0
  368. package/core/TextArea/TextArea.stories.js +114 -0
  369. package/core/TextArea/__stories__/Default.d.ts +3 -0
  370. package/core/TextArea/__stories__/Default.js +32 -0
  371. package/core/TextArea/__stories__/DisabledInput.d.ts +3 -0
  372. package/core/TextArea/__stories__/DisabledInput.js +35 -0
  373. package/core/TextArea/__stories__/LimitedCharacters.d.ts +3 -0
  374. package/core/TextArea/__stories__/LimitedCharacters.js +34 -0
  375. package/core/TextArea/__stories__/MultipleQuestions.d.ts +3 -0
  376. package/core/TextArea/__stories__/MultipleQuestions.js +30 -0
  377. package/core/TextArea/__stories__/WithDeclaredRows.d.ts +3 -0
  378. package/core/TextArea/__stories__/WithDeclaredRows.js +35 -0
  379. package/core/TextArea/__stories__/WithErrorMessage.d.ts +3 -0
  380. package/core/TextArea/__stories__/WithErrorMessage.js +39 -0
  381. package/core/TextArea/__stories__/WithHint.d.ts +3 -0
  382. package/core/TextArea/__stories__/WithHint.js +34 -0
  383. package/core/TextArea/index.d.ts +3 -0
  384. package/core/TextArea/index.js +30 -0
  385. package/core/TextArea/index.mdx +50 -0
  386. package/core/TextInput/TextInput.stories.d.ts +14 -0
  387. package/core/TextInput/TextInput.stories.js +128 -0
  388. package/core/TextInput/__stories__/AskingForNumbers.d.ts +3 -0
  389. package/core/TextInput/__stories__/AskingForNumbers.js +36 -0
  390. package/core/TextInput/__stories__/Default.d.ts +3 -0
  391. package/core/TextInput/__stories__/Default.js +32 -0
  392. package/core/TextInput/__stories__/DisabledInput.d.ts +3 -0
  393. package/core/TextInput/__stories__/DisabledInput.js +35 -0
  394. package/core/TextInput/__stories__/FixedWidths.d.ts +3 -0
  395. package/core/TextInput/__stories__/FixedWidths.js +68 -0
  396. package/core/TextInput/__stories__/FluidWidths.d.ts +3 -0
  397. package/core/TextInput/__stories__/FluidWidths.js +68 -0
  398. package/core/TextInput/__stories__/MultipleQuestions.d.ts +3 -0
  399. package/core/TextInput/__stories__/MultipleQuestions.js +28 -0
  400. package/core/TextInput/__stories__/WithErrorMessage.d.ts +3 -0
  401. package/core/TextInput/__stories__/WithErrorMessage.js +39 -0
  402. package/core/TextInput/__stories__/WithHint.d.ts +3 -0
  403. package/core/TextInput/__stories__/WithHint.js +34 -0
  404. package/core/TextInput/index.d.ts +3 -0
  405. package/core/TextInput/index.js +30 -0
  406. package/core/TextInput/index.mdx +59 -0
  407. package/core/VisuallyHidden/VisuallyHidden.stories.d.ts +7 -0
  408. package/core/VisuallyHidden/VisuallyHidden.stories.js +30 -0
  409. package/core/VisuallyHidden/__stories__/Default.d.ts +3 -0
  410. package/core/VisuallyHidden/__stories__/Default.js +38 -0
  411. package/core/VisuallyHidden/index.d.ts +2 -0
  412. package/core/VisuallyHidden/index.js +14 -2
  413. package/core/VisuallyHidden/index.mdx +17 -0
  414. package/core/WarningText/WarningText.stories.d.ts +6 -0
  415. package/core/WarningText/WarningText.stories.js +30 -0
  416. package/core/WarningText/__stories__/Default.d.ts +3 -0
  417. package/core/WarningText/__stories__/Default.js +22 -0
  418. package/core/WarningText/index.mdx +10 -35
  419. package/core/index.d.ts +8 -2
  420. package/core/index.js +87 -17
  421. package/es/admin/AutoComplete/AccesibleAutoComplete/index.js +87 -0
  422. package/es/admin/AutoComplete/AutoComplete.stories.js +13 -0
  423. package/es/admin/AutoComplete/Status/index.js +153 -0
  424. package/es/admin/AutoComplete/__stories__/Default.js +19 -0
  425. package/es/admin/AutoComplete/__stories__/WithAutoSelect.js +20 -0
  426. package/es/admin/AutoComplete/__stories__/WithDefaultValue.js +18 -0
  427. package/es/admin/AutoComplete/__stories__/WithInLine.js +18 -0
  428. package/es/admin/AutoComplete/__stories__/WithMinLength.js +19 -0
  429. package/es/admin/AutoComplete/__stories__/WithPlaceHolder.js +18 -0
  430. package/es/admin/AutoComplete/__stories__/WithShowAllValues.js +18 -0
  431. package/es/admin/AutoComplete/index.js +676 -0
  432. package/es/admin/AutoComplete/index.mdx +46 -0
  433. package/es/admin/AutoComplete/utils.js +6 -0
  434. package/es/admin/CircularProgress/CircularProgress.stories.js +6 -0
  435. package/es/admin/CircularProgress/__stories__/Default.js +11 -0
  436. package/es/admin/Drawer/Drawer.stories.js +6 -0
  437. package/es/admin/Drawer/__stories__/Default.js +83 -0
  438. package/es/admin/Drawer/index.mdx +12 -0
  439. package/es/admin/Dropdown/index.js +28 -1
  440. package/es/admin/FilterSection/index.js +1 -0
  441. package/es/admin/Pagination/Pagination.stories.js +6 -0
  442. package/es/admin/Pagination/__stories__/Default.js +156 -0
  443. package/es/admin/Pagination/index.mdx +12 -0
  444. package/es/admin/index.js +2 -1
  445. package/es/app/Confirmation/Confirmation.mdx +9 -0
  446. package/es/app/Confirmation/Confirmation.stories.js +6 -0
  447. package/es/app/Confirmation/__stories__/Default.js +9 -0
  448. package/es/app/Confirmation/index.js +5 -3
  449. package/es/app/CopyToClipboard/CopyToClipboard.stories.js +8 -0
  450. package/es/app/CopyToClipboard/__stories__/Banner.js +16 -0
  451. package/es/app/CopyToClipboard/__stories__/Default.js +16 -0
  452. package/es/app/CopyToClipboard/__stories__/MultipleCopies.js +120 -0
  453. package/es/app/CopyToClipboard/index.js +45 -0
  454. package/es/app/CopyToClipboard/index.mdx +22 -0
  455. package/es/app/Footer/Footer.mdx +27 -0
  456. package/es/app/Footer/Footer.stories.js +11 -0
  457. package/es/app/Footer/__stories__/Default.js +9 -0
  458. package/es/app/Footer/__stories__/FooterAllInclusive.js +30 -0
  459. package/es/app/Footer/__stories__/FooterWithLink.js +23 -0
  460. package/es/app/Footer/__stories__/FooterWithLogo.js +23 -0
  461. package/es/app/Footer/__stories__/FooterWithSecondaryNavigation.js +32 -0
  462. package/es/app/Header/index.mdx +18 -0
  463. package/es/app/I18nText.js +7 -6
  464. package/es/app/NotFound/NotFound.stories.js +6 -0
  465. package/es/app/NotFound/__stories__/Default.js +9 -0
  466. package/es/app/NotFound/index.mdx +12 -0
  467. package/es/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +6 -0
  468. package/es/app/PhaseBannerHeader/__stories__/Default.js +12 -0
  469. package/es/app/{PhaseBannerHeader.js → PhaseBannerHeader/index.js} +0 -0
  470. package/es/app/PhaseBannerHeader/index.mdx +12 -0
  471. package/es/app/QrCodeScanner/QrCodeScanner.stories.js +6 -0
  472. package/es/app/QrCodeScanner/__stories__/Default.js +52 -0
  473. package/es/app/QrCodeScanner/index.js +7 -3
  474. package/es/core/Accordion/Accordion.stories.js +7 -0
  475. package/es/core/Accordion/__stories__/Default.js +12 -0
  476. package/es/core/Accordion/__stories__/WithHints.js +13 -0
  477. package/es/core/Accordion/index.mdx +13 -86
  478. package/es/core/BackLink/BackLink.stories.js +6 -0
  479. package/es/core/BackLink/__stories__/Default.js +11 -0
  480. package/es/core/BackLink/index.js +3 -0
  481. package/es/core/BackLink/index.mdx +16 -0
  482. package/es/core/Blockquote/Blockquote.stories.js +6 -0
  483. package/es/core/Blockquote/__stories__/Default.js +9 -0
  484. package/es/core/Blockquote/index.mdx +17 -2
  485. package/es/core/Breadcrumbs/Breadcrumbs.stories.js +6 -0
  486. package/es/core/Breadcrumbs/__stories__/Default.js +17 -0
  487. package/es/core/Breadcrumbs/breadcrumbs.mdx +22 -0
  488. package/es/core/Breadcrumbs/index.js +3 -1
  489. package/es/core/Button/Button.mdx +37 -2
  490. package/es/core/Button/Button.stories.js +3 -1
  491. package/es/core/Button/__stories__/CallToActionButton.js +9 -0
  492. package/es/core/Button/__stories__/Disabled.js +14 -0
  493. package/es/core/Button/__stories__/Warning.js +2 -1
  494. package/es/core/Card/Card.stories.js +14 -0
  495. package/es/core/Card/__stories__/Default.js +10 -0
  496. package/es/core/Card/__stories__/WithClickableContent.js +14 -0
  497. package/es/core/Card/__stories__/WithClickableLink.js +12 -0
  498. package/es/core/Card/__stories__/WithDarkBorder.js +13 -0
  499. package/es/core/Card/__stories__/WithDarkTopBorder.js +13 -0
  500. package/es/core/Card/__stories__/WithDivider.js +12 -0
  501. package/es/core/Card/__stories__/WithGrayBorder.js +13 -0
  502. package/es/core/Card/__stories__/WithGrayTopBorder.js +13 -0
  503. package/es/core/Card/__stories__/WithGroupButton.js +11 -0
  504. package/es/core/Card/card.mdx +78 -0
  505. package/es/core/Checkboxes/Checkbox.stories.js +12 -0
  506. package/es/core/Checkboxes/__stories__/ConditionalReveal.js +22 -0
  507. package/es/core/Checkboxes/__stories__/Default.js +20 -0
  508. package/es/core/Checkboxes/__stories__/MultipleQuestions.js +22 -0
  509. package/es/core/Checkboxes/__stories__/NoneAnswer.js +22 -0
  510. package/es/core/Checkboxes/__stories__/NoneAnswerWithError.js +28 -0
  511. package/es/core/Checkboxes/__stories__/WithErrorMessage.js +21 -0
  512. package/es/core/Checkboxes/__stories__/WithHint.js +20 -0
  513. package/es/core/Checkboxes/checkboxes.mdx +54 -0
  514. package/es/core/Checkboxes/index.js +5 -0
  515. package/es/core/Confirmation/Confirmation.stories.js +6 -0
  516. package/es/core/Confirmation/__stories__/Default.js +9 -0
  517. package/es/core/Confirmation/confirmation.mdx +19 -0
  518. package/es/core/Confirmation/index.js +5 -0
  519. package/es/core/DateInput/DateInput.stories.js +9 -0
  520. package/es/core/DateInput/__stories__/Default.js +20 -0
  521. package/es/core/DateInput/__stories__/MultipleQuestions.js +20 -0
  522. package/es/core/DateInput/__stories__/WithErrorMessage.js +25 -0
  523. package/es/core/DateInput/__stories__/WithErrorMessageForSingleField.js +23 -0
  524. package/es/core/DateInput/index.js +4 -0
  525. package/es/core/DateInput/index.mdx +34 -0
  526. package/es/core/Details/Details.stories.js +6 -0
  527. package/es/core/Details/__stories__/Default.js +9 -0
  528. package/es/core/Details/index.mdx +9 -25
  529. package/es/core/Divider/Divider.stories.js +7 -0
  530. package/es/core/Divider/__stories__/Default.js +26 -0
  531. package/es/core/ErrorMessage/ErrorMessage.stories.js +6 -0
  532. package/es/core/ErrorMessage/__stories__/Default.js +21 -0
  533. package/es/core/ErrorMessage/index.js +3 -0
  534. package/es/core/ErrorMessage/index.mdx +21 -0
  535. package/es/core/ErrorSummary/ErrorSummary.stories.js +9 -0
  536. package/es/core/ErrorSummary/__stories__/Default.js +13 -0
  537. package/es/core/ErrorSummary/__stories__/LinkedToCheckbox.js +32 -0
  538. package/es/core/ErrorSummary/__stories__/LinkedToField.js +33 -0
  539. package/es/core/ErrorSummary/__stories__/LinkedToInput.js +32 -0
  540. package/es/core/ErrorSummary/index.mdx +21 -38
  541. package/es/core/Field/index.js +5 -0
  542. package/es/core/FileUpload/FileUpload.stories.js +7 -0
  543. package/es/core/FileUpload/__stories__/Default.js +13 -0
  544. package/es/core/FileUpload/__stories__/WithErrorMessage.js +17 -0
  545. package/es/core/FileUpload/index.mdx +22 -0
  546. package/es/core/Link/Link.stories.js +10 -0
  547. package/es/core/Link/__stories__/DarkBackground.js +13 -0
  548. package/es/core/Link/__stories__/DarkBackgroundNoUnderline.js +14 -0
  549. package/es/core/Link/__stories__/Default.js +11 -0
  550. package/es/core/Link/__stories__/NoUnderline.js +12 -0
  551. package/es/core/Link/__stories__/OpensInNewTab.js +13 -0
  552. package/es/core/Link/link.mdx +30 -0
  553. package/es/core/List/List.stories.js +9 -0
  554. package/es/core/List/__stories__/BulletList.js +11 -0
  555. package/es/core/List/__stories__/Default.js +10 -0
  556. package/es/core/List/__stories__/NumberedList.js +11 -0
  557. package/es/core/List/__stories__/WithExtraSpace.js +11 -0
  558. package/es/core/List/index.mdx +22 -3
  559. package/es/core/Masthead/Masthead.stories.js +6 -0
  560. package/es/core/Masthead/__stories__/Default.js +11 -0
  561. package/es/core/Masthead/index.js +4 -0
  562. package/es/core/Masthead/masthead.mdx +14 -0
  563. package/es/core/NavList/NavList.js +8 -63
  564. package/es/core/NavList/NavListBase.js +58 -0
  565. package/es/core/NavList/NavListSubMenu.js +1 -1
  566. package/es/core/NavList/types.js +1 -0
  567. package/es/core/NotificationBanner/NotificationBanner.stories.js +7 -0
  568. package/es/core/NotificationBanner/__stories__/Default.js +12 -0
  569. package/es/core/NotificationBanner/__stories__/Success.js +13 -0
  570. package/es/core/NotificationBanner/index.js +6 -3
  571. package/es/core/NotificationBanner/index.mdx +13 -60
  572. package/es/core/NotificationBanner/index.spec.js +1 -1
  573. package/es/core/PhaseBanner/PhaseBanner.stories.js +7 -0
  574. package/es/core/PhaseBanner/__stories__/Default.js +12 -0
  575. package/es/core/PhaseBanner/__stories__/Underlined.js +14 -0
  576. package/es/core/PhaseBanner/index.js +6 -0
  577. package/es/core/PhaseBanner/index.mdx +24 -0
  578. package/es/core/Radios/Radios.stories.js +12 -0
  579. package/es/core/Radios/__stories__/ConditionalReveal.js +22 -0
  580. package/es/core/Radios/__stories__/Default.js +22 -0
  581. package/es/core/Radios/__stories__/Inline.js +19 -0
  582. package/es/core/Radios/__stories__/MultipleQuestions.js +25 -0
  583. package/es/core/Radios/__stories__/NoneAnswer.js +21 -0
  584. package/es/core/Radios/__stories__/WithErrorMessage.js +21 -0
  585. package/es/core/Radios/__stories__/WithHints.js +19 -0
  586. package/es/core/Radios/index.js +5 -0
  587. package/es/core/Radios/index.mdx +56 -0
  588. package/es/core/Select/Select.stories.js +8 -0
  589. package/es/core/Select/__stories__/Default.js +21 -0
  590. package/es/core/Select/__stories__/DisabledInput.js +22 -0
  591. package/es/core/Select/__stories__/WithHint.js +22 -0
  592. package/es/core/Select/index.js +4 -0
  593. package/es/core/Select/index.mdx +36 -0
  594. package/es/core/SummaryList/SummaryList.stories.js +9 -0
  595. package/es/core/SummaryList/__stories__/Default.js +9 -0
  596. package/es/core/SummaryList/__stories__/WithActions.js +20 -0
  597. package/es/core/SummaryList/__stories__/WithoutBorders.js +11 -0
  598. package/es/core/SummaryList/index.mdx +17 -65
  599. package/es/core/Table/Table.stories.js +19 -0
  600. package/es/core/Table/TableFloatingScroll.js +85 -0
  601. package/es/core/Table/__stories__/DarkVariant.js +11 -0
  602. package/es/core/Table/__stories__/DarkVariantWithVerticalHeaders.js +11 -0
  603. package/es/core/Table/__stories__/Default.js +9 -0
  604. package/es/core/Table/__stories__/DefinedWidth.js +15 -0
  605. package/es/core/Table/__stories__/Densed.js +13 -0
  606. package/es/core/Table/__stories__/MultipleProps.js +45 -0
  607. package/es/core/Table/__stories__/NoData.js +9 -0
  608. package/es/core/Table/__stories__/NumericDataType.js +33 -0
  609. package/es/core/Table/__stories__/TableCaptions.js +17 -0
  610. package/es/core/Table/__stories__/VerticalBorders.js +11 -0
  611. package/es/core/Table/__stories__/VerticalHeaders.js +9 -0
  612. package/es/core/Table/__stories__/WithHeader.js +53 -0
  613. package/es/core/Table/__stories__/WithLoader.js +81 -0
  614. package/es/core/Table/__stories__/ZebraProp.js +11 -0
  615. package/es/core/Table/index.js +2 -1
  616. package/es/core/Table/index.mdx +52 -0
  617. package/es/core/Tabs/Tabs.stories.js +6 -0
  618. package/es/core/Tabs/__stories__/Default.js +29 -0
  619. package/es/core/Tabs/index.js +22 -2
  620. package/es/core/Tabs/index.mdx +10 -2
  621. package/es/core/TextArea/TextArea.stories.js +12 -0
  622. package/es/core/TextArea/__stories__/Default.js +16 -0
  623. package/es/core/TextArea/__stories__/DisabledInput.js +18 -0
  624. package/es/core/TextArea/__stories__/LimitedCharacters.js +17 -0
  625. package/es/core/TextArea/__stories__/MultipleQuestions.js +14 -0
  626. package/es/core/TextArea/__stories__/WithDeclaredRows.js +18 -0
  627. package/es/core/TextArea/__stories__/WithErrorMessage.js +21 -0
  628. package/es/core/TextArea/__stories__/WithHint.js +17 -0
  629. package/es/core/TextArea/index.js +3 -0
  630. package/es/core/TextArea/index.mdx +50 -0
  631. package/es/core/TextInput/TextInput.stories.js +13 -0
  632. package/es/core/TextInput/__stories__/AskingForNumbers.js +19 -0
  633. package/es/core/TextInput/__stories__/Default.js +16 -0
  634. package/es/core/TextInput/__stories__/DisabledInput.js +18 -0
  635. package/es/core/TextInput/__stories__/FixedWidths.js +52 -0
  636. package/es/core/TextInput/__stories__/FluidWidths.js +52 -0
  637. package/es/core/TextInput/__stories__/MultipleQuestions.js +13 -0
  638. package/es/core/TextInput/__stories__/WithErrorMessage.js +21 -0
  639. package/es/core/TextInput/__stories__/WithHint.js +17 -0
  640. package/es/core/TextInput/index.js +3 -0
  641. package/es/core/TextInput/index.mdx +59 -0
  642. package/es/core/VisuallyHidden/VisuallyHidden.stories.js +6 -0
  643. package/es/core/VisuallyHidden/__stories__/Default.js +16 -0
  644. package/es/core/VisuallyHidden/index.js +3 -1
  645. package/es/core/VisuallyHidden/index.mdx +17 -0
  646. package/es/core/WarningText/WarningText.stories.js +6 -0
  647. package/es/core/WarningText/__stories__/Default.js +9 -0
  648. package/es/core/WarningText/index.mdx +10 -35
  649. package/es/core/index.js +9 -3
  650. package/es/govgr/Footer/index.mdx +4 -4
  651. package/es/hooks/useTogglableSections.js +7 -1
  652. package/es/introduction.md +4 -1
  653. package/es/layouts/Basic/Basic.stories.js +9 -0
  654. package/es/layouts/Basic/__stories__/Default.js +10 -0
  655. package/es/layouts/Basic/__stories__/MultipleRowsLayout.js +12 -0
  656. package/es/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +12 -0
  657. package/es/layouts/Grid/Grid.stories.js +7 -0
  658. package/es/layouts/Grid/__stories__/Default.js +58 -0
  659. package/es/layouts/Grid/__stories__/Inline.js +55 -0
  660. package/es/layouts/Grid/index.js +1 -0
  661. package/es/layouts/index.js +2 -0
  662. package/es/locales/el.js +1 -0
  663. package/es/locales/en.js +1 -0
  664. package/es/registry.js +71 -31
  665. package/es/typography/Caption/Caption.stories.js +7 -0
  666. package/es/typography/Caption/__stories__/Default.js +35 -0
  667. package/es/typography/Caption/__stories__/NestedToTitle.js +15 -0
  668. package/es/typography/{Caption.js → Caption/index.js} +0 -0
  669. package/es/typography/Caption/index.mdx +16 -0
  670. package/es/typography/Hint/Hint.stories.js +7 -0
  671. package/es/typography/Hint/__stories__/Default.js +9 -0
  672. package/es/typography/Hint/__stories__/FontSizes.js +21 -0
  673. package/es/typography/{Hint.js → Hint/index.js} +0 -0
  674. package/es/typography/Hint/index.mdx +16 -0
  675. package/es/typography/NormalText/NormalText.stories.js +9 -0
  676. package/es/typography/NormalText/__stories__/Default.js +9 -0
  677. package/es/typography/NormalText/__stories__/FontSizes.js +48 -0
  678. package/es/typography/NormalText/__stories__/FontWeight.js +18 -0
  679. package/es/typography/NormalText/__stories__/Variants.js +18 -0
  680. package/es/typography/{NormalText.js → NormalText/index.js} +0 -0
  681. package/es/typography/NormalText/index.mdx +26 -0
  682. package/es/typography/Paragraph/Paragraph.stories.js +10 -0
  683. package/es/typography/Paragraph/__stories__/Default.js +9 -0
  684. package/es/typography/Paragraph/__stories__/FontSizes.js +35 -0
  685. package/es/typography/Paragraph/__stories__/FontWeight.js +15 -0
  686. package/es/typography/Paragraph/__stories__/LeadVariant.js +11 -0
  687. package/es/typography/Paragraph/__stories__/SmallVariant.js +11 -0
  688. package/es/typography/{Paragraph.js → Paragraph/index.js} +0 -0
  689. package/es/typography/Paragraph/index.mdx +30 -0
  690. package/es/typography/Title/Title.stories.js +6 -0
  691. package/es/typography/Title/__stories__/Default.js +24 -0
  692. package/es/typography/{Title.js → Title/index.js} +0 -0
  693. package/es/typography/Title/index.mdx +12 -0
  694. package/esm/admin/AutoComplete/AccesibleAutoComplete/index.js +87 -0
  695. package/esm/admin/AutoComplete/AutoComplete.stories.js +13 -0
  696. package/esm/admin/AutoComplete/Status/index.js +153 -0
  697. package/esm/admin/AutoComplete/__stories__/Default.js +19 -0
  698. package/esm/admin/AutoComplete/__stories__/WithAutoSelect.js +20 -0
  699. package/esm/admin/AutoComplete/__stories__/WithDefaultValue.js +18 -0
  700. package/esm/admin/AutoComplete/__stories__/WithInLine.js +18 -0
  701. package/esm/admin/AutoComplete/__stories__/WithMinLength.js +19 -0
  702. package/esm/admin/AutoComplete/__stories__/WithPlaceHolder.js +18 -0
  703. package/esm/admin/AutoComplete/__stories__/WithShowAllValues.js +18 -0
  704. package/esm/admin/AutoComplete/index.js +676 -0
  705. package/esm/admin/AutoComplete/index.mdx +46 -0
  706. package/esm/admin/AutoComplete/utils.js +6 -0
  707. package/esm/admin/CircularProgress/CircularProgress.stories.js +6 -0
  708. package/esm/admin/CircularProgress/__stories__/Default.js +11 -0
  709. package/esm/admin/Drawer/Drawer.stories.js +6 -0
  710. package/esm/admin/Drawer/__stories__/Default.js +83 -0
  711. package/esm/admin/Drawer/index.mdx +12 -0
  712. package/esm/admin/Dropdown/index.js +28 -1
  713. package/esm/admin/FilterSection/index.js +1 -0
  714. package/esm/admin/Pagination/Pagination.stories.js +6 -0
  715. package/esm/admin/Pagination/__stories__/Default.js +156 -0
  716. package/esm/admin/Pagination/index.mdx +12 -0
  717. package/esm/admin/index.js +2 -1
  718. package/esm/app/Confirmation/Confirmation.mdx +9 -0
  719. package/esm/app/Confirmation/Confirmation.stories.js +6 -0
  720. package/esm/app/Confirmation/__stories__/Default.js +9 -0
  721. package/esm/app/Confirmation/index.js +5 -3
  722. package/esm/app/CopyToClipboard/CopyToClipboard.stories.js +8 -0
  723. package/esm/app/CopyToClipboard/__stories__/Banner.js +16 -0
  724. package/esm/app/CopyToClipboard/__stories__/Default.js +16 -0
  725. package/esm/app/CopyToClipboard/__stories__/MultipleCopies.js +120 -0
  726. package/esm/app/CopyToClipboard/index.js +45 -0
  727. package/esm/app/CopyToClipboard/index.mdx +22 -0
  728. package/esm/app/Footer/Footer.mdx +27 -0
  729. package/esm/app/Footer/Footer.stories.js +11 -0
  730. package/esm/app/Footer/__stories__/Default.js +9 -0
  731. package/esm/app/Footer/__stories__/FooterAllInclusive.js +30 -0
  732. package/esm/app/Footer/__stories__/FooterWithLink.js +23 -0
  733. package/esm/app/Footer/__stories__/FooterWithLogo.js +23 -0
  734. package/esm/app/Footer/__stories__/FooterWithSecondaryNavigation.js +32 -0
  735. package/esm/app/Header/index.mdx +18 -0
  736. package/esm/app/I18nText.js +7 -6
  737. package/esm/app/NotFound/NotFound.stories.js +6 -0
  738. package/esm/app/NotFound/__stories__/Default.js +9 -0
  739. package/esm/app/NotFound/index.mdx +12 -0
  740. package/esm/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +6 -0
  741. package/esm/app/PhaseBannerHeader/__stories__/Default.js +12 -0
  742. package/esm/app/{PhaseBannerHeader.js → PhaseBannerHeader/index.js} +0 -0
  743. package/esm/app/PhaseBannerHeader/index.mdx +12 -0
  744. package/esm/app/QrCodeScanner/QrCodeScanner.stories.js +6 -0
  745. package/esm/app/QrCodeScanner/__stories__/Default.js +52 -0
  746. package/esm/app/QrCodeScanner/index.js +7 -3
  747. package/esm/core/Accordion/Accordion.stories.js +7 -0
  748. package/esm/core/Accordion/__stories__/Default.js +12 -0
  749. package/esm/core/Accordion/__stories__/WithHints.js +13 -0
  750. package/esm/core/Accordion/index.mdx +13 -86
  751. package/esm/core/BackLink/BackLink.stories.js +6 -0
  752. package/esm/core/BackLink/__stories__/Default.js +11 -0
  753. package/esm/core/BackLink/index.js +3 -0
  754. package/esm/core/BackLink/index.mdx +16 -0
  755. package/esm/core/Blockquote/Blockquote.stories.js +6 -0
  756. package/esm/core/Blockquote/__stories__/Default.js +9 -0
  757. package/esm/core/Blockquote/index.mdx +17 -2
  758. package/esm/core/Breadcrumbs/Breadcrumbs.stories.js +6 -0
  759. package/esm/core/Breadcrumbs/__stories__/Default.js +17 -0
  760. package/esm/core/Breadcrumbs/breadcrumbs.mdx +22 -0
  761. package/esm/core/Breadcrumbs/index.js +3 -1
  762. package/esm/core/Button/Button.mdx +37 -2
  763. package/esm/core/Button/Button.stories.js +3 -1
  764. package/esm/core/Button/__stories__/CallToActionButton.js +9 -0
  765. package/esm/core/Button/__stories__/Disabled.js +14 -0
  766. package/esm/core/Button/__stories__/Warning.js +2 -1
  767. package/esm/core/Card/Card.stories.js +14 -0
  768. package/esm/core/Card/__stories__/Default.js +10 -0
  769. package/esm/core/Card/__stories__/WithClickableContent.js +14 -0
  770. package/esm/core/Card/__stories__/WithClickableLink.js +12 -0
  771. package/esm/core/Card/__stories__/WithDarkBorder.js +13 -0
  772. package/esm/core/Card/__stories__/WithDarkTopBorder.js +13 -0
  773. package/esm/core/Card/__stories__/WithDivider.js +12 -0
  774. package/esm/core/Card/__stories__/WithGrayBorder.js +13 -0
  775. package/esm/core/Card/__stories__/WithGrayTopBorder.js +13 -0
  776. package/esm/core/Card/__stories__/WithGroupButton.js +11 -0
  777. package/esm/core/Card/card.mdx +78 -0
  778. package/esm/core/Checkboxes/Checkbox.stories.js +12 -0
  779. package/esm/core/Checkboxes/__stories__/ConditionalReveal.js +22 -0
  780. package/esm/core/Checkboxes/__stories__/Default.js +20 -0
  781. package/esm/core/Checkboxes/__stories__/MultipleQuestions.js +22 -0
  782. package/esm/core/Checkboxes/__stories__/NoneAnswer.js +22 -0
  783. package/esm/core/Checkboxes/__stories__/NoneAnswerWithError.js +28 -0
  784. package/esm/core/Checkboxes/__stories__/WithErrorMessage.js +21 -0
  785. package/esm/core/Checkboxes/__stories__/WithHint.js +20 -0
  786. package/esm/core/Checkboxes/checkboxes.mdx +54 -0
  787. package/esm/core/Checkboxes/index.js +5 -0
  788. package/esm/core/Confirmation/Confirmation.stories.js +6 -0
  789. package/esm/core/Confirmation/__stories__/Default.js +9 -0
  790. package/esm/core/Confirmation/confirmation.mdx +19 -0
  791. package/esm/core/Confirmation/index.js +5 -0
  792. package/esm/core/DateInput/DateInput.stories.js +9 -0
  793. package/esm/core/DateInput/__stories__/Default.js +20 -0
  794. package/esm/core/DateInput/__stories__/MultipleQuestions.js +20 -0
  795. package/esm/core/DateInput/__stories__/WithErrorMessage.js +25 -0
  796. package/esm/core/DateInput/__stories__/WithErrorMessageForSingleField.js +23 -0
  797. package/esm/core/DateInput/index.js +4 -0
  798. package/esm/core/DateInput/index.mdx +34 -0
  799. package/esm/core/Details/Details.stories.js +6 -0
  800. package/esm/core/Details/__stories__/Default.js +9 -0
  801. package/esm/core/Details/index.mdx +9 -25
  802. package/esm/core/Divider/Divider.stories.js +7 -0
  803. package/esm/core/Divider/__stories__/Default.js +26 -0
  804. package/esm/core/ErrorMessage/ErrorMessage.stories.js +6 -0
  805. package/esm/core/ErrorMessage/__stories__/Default.js +21 -0
  806. package/esm/core/ErrorMessage/index.js +3 -0
  807. package/esm/core/ErrorMessage/index.mdx +21 -0
  808. package/esm/core/ErrorSummary/ErrorSummary.stories.js +9 -0
  809. package/esm/core/ErrorSummary/__stories__/Default.js +13 -0
  810. package/esm/core/ErrorSummary/__stories__/LinkedToCheckbox.js +32 -0
  811. package/esm/core/ErrorSummary/__stories__/LinkedToField.js +33 -0
  812. package/esm/core/ErrorSummary/__stories__/LinkedToInput.js +32 -0
  813. package/esm/core/ErrorSummary/index.mdx +21 -38
  814. package/esm/core/Field/index.js +5 -0
  815. package/esm/core/FileUpload/FileUpload.stories.js +7 -0
  816. package/esm/core/FileUpload/__stories__/Default.js +13 -0
  817. package/esm/core/FileUpload/__stories__/WithErrorMessage.js +17 -0
  818. package/esm/core/FileUpload/index.mdx +22 -0
  819. package/esm/core/Link/Link.stories.js +10 -0
  820. package/esm/core/Link/__stories__/DarkBackground.js +13 -0
  821. package/esm/core/Link/__stories__/DarkBackgroundNoUnderline.js +14 -0
  822. package/esm/core/Link/__stories__/Default.js +11 -0
  823. package/esm/core/Link/__stories__/NoUnderline.js +12 -0
  824. package/esm/core/Link/__stories__/OpensInNewTab.js +13 -0
  825. package/esm/core/Link/link.mdx +30 -0
  826. package/esm/core/List/List.stories.js +9 -0
  827. package/esm/core/List/__stories__/BulletList.js +11 -0
  828. package/esm/core/List/__stories__/Default.js +10 -0
  829. package/esm/core/List/__stories__/NumberedList.js +11 -0
  830. package/esm/core/List/__stories__/WithExtraSpace.js +11 -0
  831. package/esm/core/List/index.mdx +22 -3
  832. package/esm/core/Masthead/Masthead.stories.js +6 -0
  833. package/esm/core/Masthead/__stories__/Default.js +11 -0
  834. package/esm/core/Masthead/index.js +4 -0
  835. package/esm/core/Masthead/masthead.mdx +14 -0
  836. package/esm/core/NavList/NavList.js +8 -63
  837. package/esm/core/NavList/NavListBase.js +58 -0
  838. package/esm/core/NavList/NavListSubMenu.js +1 -1
  839. package/esm/core/NavList/types.js +1 -0
  840. package/esm/core/NotificationBanner/NotificationBanner.stories.js +7 -0
  841. package/esm/core/NotificationBanner/__stories__/Default.js +12 -0
  842. package/esm/core/NotificationBanner/__stories__/Success.js +13 -0
  843. package/esm/core/NotificationBanner/index.js +6 -3
  844. package/esm/core/NotificationBanner/index.mdx +13 -60
  845. package/esm/core/NotificationBanner/index.spec.js +1 -1
  846. package/esm/core/PhaseBanner/PhaseBanner.stories.js +7 -0
  847. package/esm/core/PhaseBanner/__stories__/Default.js +12 -0
  848. package/esm/core/PhaseBanner/__stories__/Underlined.js +14 -0
  849. package/esm/core/PhaseBanner/index.js +6 -0
  850. package/esm/core/PhaseBanner/index.mdx +24 -0
  851. package/esm/core/Radios/Radios.stories.js +12 -0
  852. package/esm/core/Radios/__stories__/ConditionalReveal.js +22 -0
  853. package/esm/core/Radios/__stories__/Default.js +22 -0
  854. package/esm/core/Radios/__stories__/Inline.js +19 -0
  855. package/esm/core/Radios/__stories__/MultipleQuestions.js +25 -0
  856. package/esm/core/Radios/__stories__/NoneAnswer.js +21 -0
  857. package/esm/core/Radios/__stories__/WithErrorMessage.js +21 -0
  858. package/esm/core/Radios/__stories__/WithHints.js +19 -0
  859. package/esm/core/Radios/index.js +5 -0
  860. package/esm/core/Radios/index.mdx +56 -0
  861. package/esm/core/Select/Select.stories.js +8 -0
  862. package/esm/core/Select/__stories__/Default.js +21 -0
  863. package/esm/core/Select/__stories__/DisabledInput.js +22 -0
  864. package/esm/core/Select/__stories__/WithHint.js +22 -0
  865. package/esm/core/Select/index.js +4 -0
  866. package/esm/core/Select/index.mdx +36 -0
  867. package/esm/core/SummaryList/SummaryList.stories.js +9 -0
  868. package/esm/core/SummaryList/__stories__/Default.js +9 -0
  869. package/esm/core/SummaryList/__stories__/WithActions.js +20 -0
  870. package/esm/core/SummaryList/__stories__/WithoutBorders.js +11 -0
  871. package/esm/core/SummaryList/index.mdx +17 -65
  872. package/esm/core/Table/Table.stories.js +19 -0
  873. package/esm/core/Table/TableFloatingScroll.js +85 -0
  874. package/esm/core/Table/__stories__/DarkVariant.js +11 -0
  875. package/esm/core/Table/__stories__/DarkVariantWithVerticalHeaders.js +11 -0
  876. package/esm/core/Table/__stories__/Default.js +9 -0
  877. package/esm/core/Table/__stories__/DefinedWidth.js +15 -0
  878. package/esm/core/Table/__stories__/Densed.js +13 -0
  879. package/esm/core/Table/__stories__/MultipleProps.js +45 -0
  880. package/esm/core/Table/__stories__/NoData.js +9 -0
  881. package/esm/core/Table/__stories__/NumericDataType.js +33 -0
  882. package/esm/core/Table/__stories__/TableCaptions.js +17 -0
  883. package/esm/core/Table/__stories__/VerticalBorders.js +11 -0
  884. package/esm/core/Table/__stories__/VerticalHeaders.js +9 -0
  885. package/esm/core/Table/__stories__/WithHeader.js +53 -0
  886. package/esm/core/Table/__stories__/WithLoader.js +81 -0
  887. package/esm/core/Table/__stories__/ZebraProp.js +11 -0
  888. package/esm/core/Table/index.js +2 -1
  889. package/esm/core/Table/index.mdx +52 -0
  890. package/esm/core/Tabs/Tabs.stories.js +6 -0
  891. package/esm/core/Tabs/__stories__/Default.js +29 -0
  892. package/esm/core/Tabs/index.js +22 -2
  893. package/esm/core/Tabs/index.mdx +10 -2
  894. package/esm/core/TextArea/TextArea.stories.js +12 -0
  895. package/esm/core/TextArea/__stories__/Default.js +16 -0
  896. package/esm/core/TextArea/__stories__/DisabledInput.js +18 -0
  897. package/esm/core/TextArea/__stories__/LimitedCharacters.js +17 -0
  898. package/esm/core/TextArea/__stories__/MultipleQuestions.js +14 -0
  899. package/esm/core/TextArea/__stories__/WithDeclaredRows.js +18 -0
  900. package/esm/core/TextArea/__stories__/WithErrorMessage.js +21 -0
  901. package/esm/core/TextArea/__stories__/WithHint.js +17 -0
  902. package/esm/core/TextArea/index.js +3 -0
  903. package/esm/core/TextArea/index.mdx +50 -0
  904. package/esm/core/TextInput/TextInput.stories.js +13 -0
  905. package/esm/core/TextInput/__stories__/AskingForNumbers.js +19 -0
  906. package/esm/core/TextInput/__stories__/Default.js +16 -0
  907. package/esm/core/TextInput/__stories__/DisabledInput.js +18 -0
  908. package/esm/core/TextInput/__stories__/FixedWidths.js +52 -0
  909. package/esm/core/TextInput/__stories__/FluidWidths.js +52 -0
  910. package/esm/core/TextInput/__stories__/MultipleQuestions.js +13 -0
  911. package/esm/core/TextInput/__stories__/WithErrorMessage.js +21 -0
  912. package/esm/core/TextInput/__stories__/WithHint.js +17 -0
  913. package/esm/core/TextInput/index.js +3 -0
  914. package/esm/core/TextInput/index.mdx +59 -0
  915. package/esm/core/VisuallyHidden/VisuallyHidden.stories.js +6 -0
  916. package/esm/core/VisuallyHidden/__stories__/Default.js +16 -0
  917. package/esm/core/VisuallyHidden/index.js +3 -1
  918. package/esm/core/VisuallyHidden/index.mdx +17 -0
  919. package/esm/core/WarningText/WarningText.stories.js +6 -0
  920. package/esm/core/WarningText/__stories__/Default.js +9 -0
  921. package/esm/core/WarningText/index.mdx +10 -35
  922. package/esm/core/index.js +9 -3
  923. package/esm/govgr/Footer/index.mdx +4 -4
  924. package/esm/hooks/useTogglableSections.js +7 -1
  925. package/esm/index.js +1 -1
  926. package/esm/introduction.md +4 -1
  927. package/esm/layouts/Basic/Basic.stories.js +9 -0
  928. package/esm/layouts/Basic/__stories__/Default.js +10 -0
  929. package/esm/layouts/Basic/__stories__/MultipleRowsLayout.js +12 -0
  930. package/esm/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +12 -0
  931. package/esm/layouts/Grid/Grid.stories.js +7 -0
  932. package/esm/layouts/Grid/__stories__/Default.js +58 -0
  933. package/esm/layouts/Grid/__stories__/Inline.js +55 -0
  934. package/esm/layouts/Grid/index.js +1 -0
  935. package/esm/layouts/index.js +2 -0
  936. package/esm/locales/el.js +1 -0
  937. package/esm/locales/en.js +1 -0
  938. package/esm/registry.js +71 -31
  939. package/esm/typography/Caption/Caption.stories.js +7 -0
  940. package/esm/typography/Caption/__stories__/Default.js +35 -0
  941. package/esm/typography/Caption/__stories__/NestedToTitle.js +15 -0
  942. package/esm/typography/{Caption.js → Caption/index.js} +0 -0
  943. package/esm/typography/Caption/index.mdx +16 -0
  944. package/esm/typography/Hint/Hint.stories.js +7 -0
  945. package/esm/typography/Hint/__stories__/Default.js +9 -0
  946. package/esm/typography/Hint/__stories__/FontSizes.js +21 -0
  947. package/esm/typography/{Hint.js → Hint/index.js} +0 -0
  948. package/esm/typography/Hint/index.mdx +16 -0
  949. package/esm/typography/NormalText/NormalText.stories.js +9 -0
  950. package/esm/typography/NormalText/__stories__/Default.js +9 -0
  951. package/esm/typography/NormalText/__stories__/FontSizes.js +48 -0
  952. package/esm/typography/NormalText/__stories__/FontWeight.js +18 -0
  953. package/esm/typography/NormalText/__stories__/Variants.js +18 -0
  954. package/esm/typography/{NormalText.js → NormalText/index.js} +0 -0
  955. package/esm/typography/NormalText/index.mdx +26 -0
  956. package/esm/typography/Paragraph/Paragraph.stories.js +10 -0
  957. package/esm/typography/Paragraph/__stories__/Default.js +9 -0
  958. package/esm/typography/Paragraph/__stories__/FontSizes.js +35 -0
  959. package/esm/typography/Paragraph/__stories__/FontWeight.js +15 -0
  960. package/esm/typography/Paragraph/__stories__/LeadVariant.js +11 -0
  961. package/esm/typography/Paragraph/__stories__/SmallVariant.js +11 -0
  962. package/esm/typography/{Paragraph.js → Paragraph/index.js} +0 -0
  963. package/esm/typography/Paragraph/index.mdx +30 -0
  964. package/esm/typography/Title/Title.stories.js +6 -0
  965. package/esm/typography/Title/__stories__/Default.js +24 -0
  966. package/esm/typography/{Title.js → Title/index.js} +0 -0
  967. package/esm/typography/Title/index.mdx +12 -0
  968. package/govgr/Footer/index.mdx +4 -4
  969. package/hooks/useTogglableSections.d.ts +3 -2
  970. package/hooks/useTogglableSections.js +7 -1
  971. package/introduction.md +4 -1
  972. package/layouts/Basic/Basic.stories.d.ts +9 -0
  973. package/layouts/Basic/Basic.stories.js +60 -0
  974. package/layouts/Basic/__stories__/Default.d.ts +3 -0
  975. package/layouts/Basic/__stories__/Default.js +30 -0
  976. package/layouts/Basic/__stories__/MultipleRowsLayout.d.ts +3 -0
  977. package/layouts/Basic/__stories__/MultipleRowsLayout.js +32 -0
  978. package/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.d.ts +3 -0
  979. package/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +32 -0
  980. package/layouts/Grid/Grid.stories.d.ts +7 -0
  981. package/layouts/Grid/Grid.stories.js +44 -0
  982. package/layouts/Grid/__stories__/Default.d.ts +3 -0
  983. package/layouts/Grid/__stories__/Default.js +71 -0
  984. package/layouts/Grid/__stories__/Inline.d.ts +3 -0
  985. package/layouts/Grid/__stories__/Inline.js +68 -0
  986. package/layouts/Grid/index.d.ts +3 -1
  987. package/layouts/Grid/index.js +6 -0
  988. package/layouts/index.d.ts +2 -0
  989. package/layouts/index.js +22 -1
  990. package/locales/el.d.ts +1 -0
  991. package/locales/el.js +1 -0
  992. package/locales/en.d.ts +1 -0
  993. package/locales/en.js +1 -0
  994. package/package.json +3 -3
  995. package/registry.d.ts +35 -15
  996. package/registry.js +106 -46
  997. package/typography/Caption/Caption.stories.d.ts +8 -0
  998. package/typography/Caption/Caption.stories.js +44 -0
  999. package/typography/Caption/__stories__/Default.d.ts +3 -0
  1000. package/typography/Caption/__stories__/Default.js +49 -0
  1001. package/typography/Caption/__stories__/NestedToTitle.d.ts +3 -0
  1002. package/typography/Caption/__stories__/NestedToTitle.js +29 -0
  1003. package/typography/{Caption.d.ts → Caption/index.d.ts} +0 -0
  1004. package/typography/{Caption.js → Caption/index.js} +0 -0
  1005. package/typography/Caption/index.mdx +16 -0
  1006. package/typography/Hint/Hint.stories.d.ts +8 -0
  1007. package/typography/Hint/Hint.stories.js +44 -0
  1008. package/typography/Hint/__stories__/Default.d.ts +3 -0
  1009. package/typography/Hint/__stories__/Default.js +22 -0
  1010. package/typography/Hint/__stories__/FontSizes.d.ts +3 -0
  1011. package/typography/Hint/__stories__/FontSizes.js +34 -0
  1012. package/typography/{Hint.d.ts → Hint/index.d.ts} +0 -0
  1013. package/typography/{Hint.js → Hint/index.js} +0 -0
  1014. package/typography/Hint/index.mdx +16 -0
  1015. package/typography/NormalText/NormalText.stories.d.ts +10 -0
  1016. package/typography/NormalText/NormalText.stories.js +72 -0
  1017. package/typography/NormalText/__stories__/Default.d.ts +3 -0
  1018. package/typography/NormalText/__stories__/Default.js +22 -0
  1019. package/typography/NormalText/__stories__/FontSizes.d.ts +3 -0
  1020. package/typography/NormalText/__stories__/FontSizes.js +62 -0
  1021. package/typography/NormalText/__stories__/FontWeight.d.ts +3 -0
  1022. package/typography/NormalText/__stories__/FontWeight.js +32 -0
  1023. package/typography/NormalText/__stories__/Variants.d.ts +3 -0
  1024. package/typography/NormalText/__stories__/Variants.js +32 -0
  1025. package/typography/{NormalText.d.ts → NormalText/index.d.ts} +0 -0
  1026. package/typography/{NormalText.js → NormalText/index.js} +0 -0
  1027. package/typography/NormalText/index.mdx +26 -0
  1028. package/typography/Paragraph/Paragraph.stories.d.ts +11 -0
  1029. package/typography/Paragraph/Paragraph.stories.js +86 -0
  1030. package/typography/Paragraph/__stories__/Default.d.ts +3 -0
  1031. package/typography/Paragraph/__stories__/Default.js +22 -0
  1032. package/typography/Paragraph/__stories__/FontSizes.d.ts +3 -0
  1033. package/typography/Paragraph/__stories__/FontSizes.js +48 -0
  1034. package/typography/Paragraph/__stories__/FontWeight.d.ts +3 -0
  1035. package/typography/Paragraph/__stories__/FontWeight.js +28 -0
  1036. package/typography/Paragraph/__stories__/LeadVariant.d.ts +3 -0
  1037. package/typography/Paragraph/__stories__/LeadVariant.js +24 -0
  1038. package/typography/Paragraph/__stories__/SmallVariant.d.ts +3 -0
  1039. package/typography/Paragraph/__stories__/SmallVariant.js +24 -0
  1040. package/typography/{Paragraph.d.ts → Paragraph/index.d.ts} +0 -0
  1041. package/typography/{Paragraph.js → Paragraph/index.js} +0 -0
  1042. package/typography/Paragraph/index.mdx +30 -0
  1043. package/typography/Title/Title.stories.d.ts +7 -0
  1044. package/typography/Title/Title.stories.js +30 -0
  1045. package/typography/Title/__stories__/Default.d.ts +3 -0
  1046. package/typography/Title/__stories__/Default.js +37 -0
  1047. package/typography/{Title.d.ts → Title/index.d.ts} +0 -0
  1048. package/typography/{Title.js → Title/index.js} +0 -0
  1049. package/typography/Title/index.mdx +12 -0
  1050. package/app/NotFound/NotFound.mdx +0 -5
  1051. package/app/QrCodeScanner/index.mdx +0 -7
  1052. package/es/app/NotFound/NotFound.mdx +0 -5
  1053. package/es/app/QrCodeScanner/index.mdx +0 -7
  1054. package/esm/app/NotFound/NotFound.mdx +0 -5
  1055. package/esm/app/QrCodeScanner/index.mdx +0 -7
package/CHANGELOG.md CHANGED
@@ -1,6 +1,37 @@
1
1
  # Change Log - @digigov/ui
2
2
 
3
- This log was last generated on Wed, 08 Jun 2022 16:32:57 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 07 Jul 2022 13:01:18 GMT and should not be manually modified.
4
+
5
+ ## 0.22.0
6
+ Thu, 07 Jul 2022 13:01:18 GMT
7
+
8
+ ### Minor changes
9
+
10
+ - add pages at sdk with storybook examples of all the components
11
+
12
+ ### Patches
13
+
14
+ - create AutoComplete, AccessibleAutoComplete, Status components, create stories
15
+ - Add missing exports for Grid
16
+ - reexport FilterSectionHorizontal
17
+ - refactor code to resolve circular dependencies
18
+
19
+ ## 0.21.3
20
+ Mon, 27 Jun 2022 10:08:07 GMT
21
+
22
+ ### Patches
23
+
24
+ - Add support for floating Table scroll in Table and Dropdown components
25
+
26
+ ## 0.21.2
27
+ Thu, 23 Jun 2022 11:49:45 GMT
28
+
29
+ ### Patches
30
+
31
+ - Update changes in digigov/ui
32
+ - export Gridpros from libs ui Grid
33
+ - add scooth scrolling at Tabs when at mobile
34
+ - Add missing locales for footer
4
35
 
5
36
  ## 0.21.1
6
37
  Wed, 08 Jun 2022 16:32:57 GMT
@@ -0,0 +1,5 @@
1
+ declare function AccesibleAutoComplete(options: any): void;
2
+ declare namespace AccesibleAutoComplete {
3
+ var enhanceSelectElement: (configurationOptions: any) => void;
4
+ }
5
+ export default AccesibleAutoComplete;
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+
7
+ Object.defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+ exports["default"] = void 0;
11
+
12
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
+
14
+ var _react = _interopRequireDefault(require("react"));
15
+
16
+ var ReactDOM = _interopRequireWildcard(require("react-dom"));
17
+
18
+ var _AutoComplete = _interopRequireDefault(require("@digigov/ui/admin/AutoComplete"));
19
+
20
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
21
+
22
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
+
24
+ function AccesibleAutoComplete(options) {
25
+ console.log('options are', options);
26
+
27
+ if (!options.element) {
28
+ throw new Error('element is not defined');
29
+ }
30
+
31
+ if (!options.id) {
32
+ throw new Error('id is not defined');
33
+ }
34
+
35
+ if (!options.source) {
36
+ throw new Error('source is not defined');
37
+ }
38
+
39
+ if (Array.isArray(options.source)) {
40
+ options.source = createSimpleEngine(options.source);
41
+ }
42
+
43
+ ReactDOM.render( /*#__PURE__*/_react["default"].createElement(_AutoComplete["default"], options), options.element);
44
+ }
45
+
46
+ var createSimpleEngine = function createSimpleEngine(values) {
47
+ return function (query, syncResults) {
48
+ var matches = values.filter(function (r) {
49
+ return r.toLowerCase().indexOf(query.toLowerCase()) !== -1;
50
+ });
51
+ syncResults(matches);
52
+ };
53
+ };
54
+
55
+ AccesibleAutoComplete.enhanceSelectElement = function (configurationOptions) {
56
+ if (!configurationOptions.selectElement) {
57
+ throw new Error('selectElement is not defined');
58
+ } // Set defaults.
59
+
60
+
61
+ if (!configurationOptions.source) {
62
+ var availableOptions = [].filter.call(configurationOptions.selectElement.options, function (option) {
63
+ return option.value || configurationOptions.preserveNullOptions;
64
+ });
65
+ configurationOptions.source = availableOptions.map(function (option) {
66
+ return option.textContent || option.innerText;
67
+ });
68
+ }
69
+
70
+ configurationOptions.onConfirm = configurationOptions.onConfirm || function (query) {
71
+ var requestedOption = [].filter.call(configurationOptions.selectElement.options, function (option) {
72
+ return (option.textContent || option.innerText) === query;
73
+ })[0];
74
+
75
+ if (requestedOption) {
76
+ requestedOption.selected = true;
77
+ }
78
+ };
79
+
80
+ if (configurationOptions.selectElement.value || configurationOptions.defaultValue === undefined) {
81
+ var option = configurationOptions.selectElement.options[configurationOptions.selectElement.options.selectedIndex];
82
+ configurationOptions.defaultValue = option.textContent || option.innerText;
83
+ }
84
+
85
+ if (configurationOptions.name === undefined) configurationOptions.name = '';
86
+
87
+ if (configurationOptions.id === undefined) {
88
+ if (configurationOptions.selectElement.id === undefined) {
89
+ configurationOptions.id = '';
90
+ } else {
91
+ configurationOptions.id = configurationOptions.selectElement.id;
92
+ }
93
+ }
94
+
95
+ if (configurationOptions.autoselect === undefined) configurationOptions.autoselect = true;
96
+ var element = document.createElement('div');
97
+ configurationOptions.selectElement.parentNode.insertBefore(element, configurationOptions.selectElement);
98
+ AccesibleAutoComplete((0, _extends2["default"])({}, configurationOptions, {
99
+ element: element
100
+ }));
101
+ configurationOptions.selectElement.style.display = 'none';
102
+ configurationOptions.selectElement.id = configurationOptions.selectElement.id + '-select';
103
+ };
104
+
105
+ var _default = AccesibleAutoComplete;
106
+ exports["default"] = _default;
@@ -0,0 +1,13 @@
1
+ declare namespace _default {
2
+ export const title: string;
3
+ export { AutoComplete as component };
4
+ }
5
+ export default _default;
6
+ export * from "@digigov/ui/admin/AutoComplete/__stories__/Default";
7
+ export * from "@digigov/ui/admin/AutoComplete/__stories__/WithAutoSelect";
8
+ export * from "@digigov/ui/admin/AutoComplete/__stories__/WithInLine";
9
+ export * from "@digigov/ui/admin/AutoComplete/__stories__/WithDefaultValue";
10
+ export * from "@digigov/ui/admin/AutoComplete/__stories__/WithPlaceHolder";
11
+ export * from "@digigov/ui/admin/AutoComplete/__stories__/WithShowAllValues";
12
+ export * from "@digigov/ui/admin/AutoComplete/__stories__/WithMinLength";
13
+ import AutoComplete from "@digigov/ui/admin/AutoComplete";
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ var _exportNames = {};
9
+ exports["default"] = void 0;
10
+
11
+ var _AutoComplete = _interopRequireDefault(require("@digigov/ui/admin/AutoComplete"));
12
+
13
+ var _Default = require("@digigov/ui/admin/AutoComplete/__stories__/Default");
14
+
15
+ Object.keys(_Default).forEach(function (key) {
16
+ if (key === "default" || key === "__esModule") return;
17
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
18
+ if (key in exports && exports[key] === _Default[key]) return;
19
+ Object.defineProperty(exports, key, {
20
+ enumerable: true,
21
+ get: function get() {
22
+ return _Default[key];
23
+ }
24
+ });
25
+ });
26
+
27
+ var _WithAutoSelect = require("@digigov/ui/admin/AutoComplete/__stories__/WithAutoSelect");
28
+
29
+ Object.keys(_WithAutoSelect).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
32
+ if (key in exports && exports[key] === _WithAutoSelect[key]) return;
33
+ Object.defineProperty(exports, key, {
34
+ enumerable: true,
35
+ get: function get() {
36
+ return _WithAutoSelect[key];
37
+ }
38
+ });
39
+ });
40
+
41
+ var _WithInLine = require("@digigov/ui/admin/AutoComplete/__stories__/WithInLine");
42
+
43
+ Object.keys(_WithInLine).forEach(function (key) {
44
+ if (key === "default" || key === "__esModule") return;
45
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
46
+ if (key in exports && exports[key] === _WithInLine[key]) return;
47
+ Object.defineProperty(exports, key, {
48
+ enumerable: true,
49
+ get: function get() {
50
+ return _WithInLine[key];
51
+ }
52
+ });
53
+ });
54
+
55
+ var _WithDefaultValue = require("@digigov/ui/admin/AutoComplete/__stories__/WithDefaultValue");
56
+
57
+ Object.keys(_WithDefaultValue).forEach(function (key) {
58
+ if (key === "default" || key === "__esModule") return;
59
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
60
+ if (key in exports && exports[key] === _WithDefaultValue[key]) return;
61
+ Object.defineProperty(exports, key, {
62
+ enumerable: true,
63
+ get: function get() {
64
+ return _WithDefaultValue[key];
65
+ }
66
+ });
67
+ });
68
+
69
+ var _WithPlaceHolder = require("@digigov/ui/admin/AutoComplete/__stories__/WithPlaceHolder");
70
+
71
+ Object.keys(_WithPlaceHolder).forEach(function (key) {
72
+ if (key === "default" || key === "__esModule") return;
73
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
74
+ if (key in exports && exports[key] === _WithPlaceHolder[key]) return;
75
+ Object.defineProperty(exports, key, {
76
+ enumerable: true,
77
+ get: function get() {
78
+ return _WithPlaceHolder[key];
79
+ }
80
+ });
81
+ });
82
+
83
+ var _WithShowAllValues = require("@digigov/ui/admin/AutoComplete/__stories__/WithShowAllValues");
84
+
85
+ Object.keys(_WithShowAllValues).forEach(function (key) {
86
+ if (key === "default" || key === "__esModule") return;
87
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
88
+ if (key in exports && exports[key] === _WithShowAllValues[key]) return;
89
+ Object.defineProperty(exports, key, {
90
+ enumerable: true,
91
+ get: function get() {
92
+ return _WithShowAllValues[key];
93
+ }
94
+ });
95
+ });
96
+
97
+ var _WithMinLength = require("@digigov/ui/admin/AutoComplete/__stories__/WithMinLength");
98
+
99
+ Object.keys(_WithMinLength).forEach(function (key) {
100
+ if (key === "default" || key === "__esModule") return;
101
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
102
+ if (key in exports && exports[key] === _WithMinLength[key]) return;
103
+ Object.defineProperty(exports, key, {
104
+ enumerable: true,
105
+ get: function get() {
106
+ return _WithMinLength[key];
107
+ }
108
+ });
109
+ });
110
+ var _default = {
111
+ title: 'Digigov UI/admin/AutoComplete',
112
+ component: _AutoComplete["default"]
113
+ }; // eslint-disable-next-line digigov/no-relative-import
114
+
115
+ exports["default"] = _default;
@@ -0,0 +1,40 @@
1
+ import { Component } from 'react';
2
+ import AutoCompleteStatusWrapper from '@digigov/react-extensions/admin/AutoCompleteStatusWrapper';
3
+ import AutoCompleteStatus from '@digigov/react-extensions/admin/AutoCompleteStatus';
4
+ declare type StatusProps = {
5
+ id: string;
6
+ length: number;
7
+ queryLength: number;
8
+ minQueryLength?: number;
9
+ selectedOption: string;
10
+ selectedOptionIndex: number;
11
+ validChoiceMade: boolean;
12
+ isInFocus: boolean;
13
+ tQueryTooShort?: (x: number) => string;
14
+ tNoResults?: () => string;
15
+ tSelectedOption: (x: string, y: number, z: number) => string;
16
+ tResults?: (x: number, y: string) => string;
17
+ };
18
+ declare type StateProps = {
19
+ bump: boolean;
20
+ debounced: boolean;
21
+ silenced: boolean;
22
+ };
23
+ export default class Status extends Component<StatusProps, StateProps> {
24
+ static defaultProps: {
25
+ tQueryTooShort: (minQueryLength: number) => string;
26
+ tNoResults: () => string;
27
+ tSelectedOption: (selectedOption: string, length: number, index: number) => string;
28
+ tResults: (length: number, contentSelectedOption: string) => string;
29
+ };
30
+ state: {
31
+ bump: boolean;
32
+ debounced: boolean;
33
+ silenced: boolean;
34
+ };
35
+ debounceStatusUpdate: () => void;
36
+ componentWillMount(): void;
37
+ componentWillReceiveProps(): void;
38
+ render(): JSX.Element;
39
+ }
40
+ export { AutoCompleteStatusWrapper, AutoCompleteStatus };
@@ -0,0 +1,184 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+
7
+ Object.defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+ Object.defineProperty(exports, "AutoCompleteStatus", {
11
+ enumerable: true,
12
+ get: function get() {
13
+ return _AutoCompleteStatus["default"];
14
+ }
15
+ });
16
+ Object.defineProperty(exports, "AutoCompleteStatusWrapper", {
17
+ enumerable: true,
18
+ get: function get() {
19
+ return _AutoCompleteStatusWrapper["default"];
20
+ }
21
+ });
22
+ exports["default"] = void 0;
23
+
24
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
25
+
26
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
27
+
28
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
29
+
30
+ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
31
+
32
+ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
33
+
34
+ var _react = _interopRequireWildcard(require("react"));
35
+
36
+ var _AutoCompleteStatusWrapper = _interopRequireDefault(require("@digigov/react-extensions/admin/AutoCompleteStatusWrapper"));
37
+
38
+ var _AutoCompleteStatus = _interopRequireDefault(require("@digigov/react-extensions/admin/AutoCompleteStatus"));
39
+
40
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
41
+
42
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
43
+
44
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
45
+
46
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
47
+
48
+ var debounce = function debounce(func, wait, immediate) {
49
+ var timeout;
50
+ return function () {
51
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
52
+ args[_key] = arguments[_key];
53
+ }
54
+
55
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
56
+ // @ts-ignore
57
+ // eslint-disable-next-line @typescript-eslint/no-this-alias
58
+ var context = this;
59
+
60
+ var later = function later() {
61
+ timeout = null;
62
+ if (!immediate) func.apply(context, args);
63
+ };
64
+
65
+ var callNow = immediate && !timeout;
66
+ clearTimeout(timeout);
67
+ timeout = setTimeout(later, wait);
68
+ if (callNow) func.apply(context, args);
69
+ };
70
+ };
71
+
72
+ var statusDebounceMillis = 1400;
73
+
74
+ var Status = /*#__PURE__*/function (_Component) {
75
+ (0, _inherits2["default"])(Status, _Component);
76
+
77
+ var _super = _createSuper(Status);
78
+
79
+ function Status() {
80
+ var _this;
81
+
82
+ (0, _classCallCheck2["default"])(this, Status);
83
+
84
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
85
+ args[_key2] = arguments[_key2];
86
+ }
87
+
88
+ _this = _super.call.apply(_super, [this].concat(args));
89
+ _this.state = {
90
+ bump: false,
91
+ debounced: false,
92
+ silenced: false
93
+ };
94
+ _this.debounceStatusUpdate = void 0;
95
+ return _this;
96
+ }
97
+
98
+ (0, _createClass2["default"])(Status, [{
99
+ key: "componentWillMount",
100
+ value: function componentWillMount() {
101
+ // eslint-disable-next-line @typescript-eslint/no-this-alias
102
+ var that = this;
103
+ this.debounceStatusUpdate = debounce(function () {
104
+ if (!that.state.debounced) {
105
+ var shouldSilence = !that.props.isInFocus || that.props.validChoiceMade;
106
+ that.setState(function (_ref) {
107
+ var bump = _ref.bump;
108
+ return {
109
+ bump: !bump,
110
+ debounced: true,
111
+ silenced: shouldSilence
112
+ };
113
+ });
114
+ }
115
+ }, statusDebounceMillis);
116
+ }
117
+ }, {
118
+ key: "componentWillReceiveProps",
119
+ value: function componentWillReceiveProps() {
120
+ this.setState({
121
+ debounced: false
122
+ });
123
+ }
124
+ }, {
125
+ key: "render",
126
+ value: function render() {
127
+ var _this$props = this.props,
128
+ id = _this$props.id,
129
+ length = _this$props.length,
130
+ queryLength = _this$props.queryLength,
131
+ minQueryLength = _this$props.minQueryLength,
132
+ selectedOption = _this$props.selectedOption,
133
+ selectedOptionIndex = _this$props.selectedOptionIndex,
134
+ tQueryTooShort = _this$props.tQueryTooShort,
135
+ tNoResults = _this$props.tNoResults,
136
+ tSelectedOption = _this$props.tSelectedOption,
137
+ tResults = _this$props.tResults;
138
+ var _this$state = this.state,
139
+ bump = _this$state.bump,
140
+ debounced = _this$state.debounced,
141
+ silenced = _this$state.silenced;
142
+ var queryTooShort = queryLength < minQueryLength;
143
+ var noResults = length === 0;
144
+ var contentSelectedOption = selectedOption ? tSelectedOption(selectedOption, length, selectedOptionIndex) : '';
145
+ var content;
146
+
147
+ if (queryTooShort) {
148
+ content = tQueryTooShort === null || tQueryTooShort === void 0 ? void 0 : tQueryTooShort(minQueryLength);
149
+ } else if (noResults) {
150
+ content = tNoResults === null || tNoResults === void 0 ? void 0 : tNoResults();
151
+ } else {
152
+ content = tResults === null || tResults === void 0 ? void 0 : tResults(length, contentSelectedOption);
153
+ }
154
+
155
+ this.debounceStatusUpdate();
156
+ return /*#__PURE__*/_react["default"].createElement(_AutoCompleteStatusWrapper["default"], null, /*#__PURE__*/_react["default"].createElement(_AutoCompleteStatus["default"], {
157
+ id: id + '__status--A'
158
+ }, !silenced && debounced && bump ? content : ' '), /*#__PURE__*/_react["default"].createElement(_AutoCompleteStatus["default"], {
159
+ id: id + '__status--B'
160
+ }, !silenced && debounced && !bump ? content : ' '));
161
+ }
162
+ }]);
163
+ return Status;
164
+ }(_react.Component);
165
+
166
+ exports["default"] = Status;
167
+ Status.defaultProps = {
168
+ tQueryTooShort: function tQueryTooShort(minQueryLength) {
169
+ return "Type in ".concat(minQueryLength, " or more characters for results");
170
+ },
171
+ tNoResults: function tNoResults() {
172
+ return 'No search results';
173
+ },
174
+ tSelectedOption: function tSelectedOption(selectedOption, length, index) {
175
+ return "".concat(selectedOption, " ").concat(index + 1, " of ").concat(length, " is highlighted");
176
+ },
177
+ tResults: function tResults(length, contentSelectedOption) {
178
+ var words = {
179
+ result: length === 1 ? 'result' : 'results',
180
+ is: length === 1 ? 'is' : 'are'
181
+ };
182
+ return "".concat(length, " ").concat(words.result, " ").concat(words.is, " available. ").concat(contentSelectedOption);
183
+ }
184
+ };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const Default: () => JSX.Element;
3
+ export default Default;
@@ -0,0 +1,34 @@
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.Default = 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(_Field["default"], null, /*#__PURE__*/_react["default"].createElement(_AutoComplete["default"], {
19
+ source: _utils["default"],
20
+ cellWidth: "one-third",
21
+ id: "govgr"
22
+ }));
23
+
24
+ var _ref2 = /*#__PURE__*/_react["default"].createElement("div", {
25
+ className: "govgr-btn govgr-btn-primary"
26
+ }, "lalal");
27
+
28
+ var Default = function Default() {
29
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _ref, _ref2);
30
+ };
31
+
32
+ exports.Default = Default;
33
+ var _default = Default;
34
+ exports["default"] = _default;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const WithAutoSelect: () => JSX.Element;
3
+ export default WithAutoSelect;
@@ -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.WithAutoSelect = 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", {
19
+ className: "govgr-btn govgr-btn-primary"
20
+ }, "lalal");
21
+
22
+ var WithAutoSelect = function WithAutoSelect() {
23
+ return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Field["default"], null, /*#__PURE__*/_react["default"].createElement(_AutoComplete["default"], {
24
+ source: _utils["default"],
25
+ autoselect: true,
26
+ id: "govgr",
27
+ tNoResults: function tNoResults() {
28
+ return 'Δεν υπάρχουν αποτελέσματα';
29
+ }
30
+ })), _ref);
31
+ };
32
+
33
+ exports.WithAutoSelect = WithAutoSelect;
34
+ var _default = WithAutoSelect;
35
+ exports["default"] = _default;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const WithDefaultValue: () => JSX.Element;
3
+ export default WithDefaultValue;
@@ -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.WithDefaultValue = 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
+ defaultValue: "Germany",
22
+ id: "govgr"
23
+ })), /*#__PURE__*/_react["default"].createElement("div", {
24
+ className: "govgr-btn govgr-btn-primary"
25
+ }, "lalal"));
26
+
27
+ var WithDefaultValue = function WithDefaultValue() {
28
+ return _ref;
29
+ };
30
+
31
+ exports.WithDefaultValue = WithDefaultValue;
32
+ var _default = WithDefaultValue;
33
+ exports["default"] = _default;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const WithInLine: () => JSX.Element;
3
+ export default WithInLine;
@@ -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.WithInLine = 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
+ displayMenu: "inline",
22
+ id: "govgr"
23
+ })), /*#__PURE__*/_react["default"].createElement("div", {
24
+ className: "govgr-btn govgr-btn-primary"
25
+ }, "lalal"));
26
+
27
+ var WithInLine = function WithInLine() {
28
+ return _ref;
29
+ };
30
+
31
+ exports.WithInLine = WithInLine;
32
+ var _default = WithInLine;
33
+ exports["default"] = _default;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const WithMinLength: () => JSX.Element;
3
+ export default WithMinLength;