@digigov/ui 0.24.3 → 0.26.2

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 (562) hide show
  1. package/CHANGELOG.md +39 -1
  2. package/admin/AutoComplete/__stories__/Default.d.ts +0 -1
  3. package/admin/AutoComplete/__stories__/Default.js +1 -1
  4. package/admin/AutoComplete/__stories__/WithAutoSelect.d.ts +0 -1
  5. package/admin/AutoComplete/__stories__/WithAutoSelect.js +13 -2
  6. package/admin/AutoComplete/__stories__/WithDefaultValue.d.ts +0 -1
  7. package/admin/AutoComplete/__stories__/WithDefaultValue.js +1 -1
  8. package/admin/AutoComplete/__stories__/WithInLine.d.ts +0 -1
  9. package/admin/AutoComplete/__stories__/WithInLine.js +1 -1
  10. package/admin/AutoComplete/__stories__/WithMinLength.d.ts +0 -1
  11. package/admin/AutoComplete/__stories__/WithMinLength.js +1 -1
  12. package/admin/AutoComplete/__stories__/WithPlaceHolder.d.ts +0 -1
  13. package/admin/AutoComplete/__stories__/WithPlaceHolder.js +1 -1
  14. package/admin/AutoComplete/__stories__/WithShowAllValues.d.ts +0 -1
  15. package/admin/AutoComplete/__stories__/WithShowAllValues.js +1 -1
  16. package/admin/AutoComplete/__stories__/utils.d.ts +2 -0
  17. package/admin/AutoComplete/__stories__/utils.js +15 -0
  18. package/admin/AutoComplete/index.d.ts +37 -20
  19. package/admin/AutoComplete/index.js +15 -53
  20. package/admin/AutoComplete/utils.d.ts +9 -1
  21. package/admin/AutoComplete/utils.js +23 -6
  22. package/admin/Chip/index.d.ts +2 -0
  23. package/admin/Chip/index.js +28 -0
  24. package/admin/CircularProgress/__stories__/Default.d.ts +0 -1
  25. package/admin/CopyToClipboard/CopyToClipboard.stories.playwright.json +37 -0
  26. package/admin/CopyToClipboard/__stories__/Banner.d.ts +0 -1
  27. package/admin/CopyToClipboard/__stories__/Default.d.ts +0 -1
  28. package/admin/CopyToClipboard/__stories__/MultipleCopies.d.ts +0 -1
  29. package/admin/CopyToClipboard/index.d.ts +4 -1
  30. package/admin/CopyToClipboard/index.js +14 -1
  31. package/admin/Drawer/Drawer.stories.d.ts +1 -4
  32. package/admin/Drawer/Drawer.stories.js +3 -22
  33. package/admin/Drawer/__stories__/Default.d.ts +0 -1
  34. package/admin/Drawer/__stories__/Default.js +13 -13
  35. package/admin/Drawer/index.d.ts +1 -0
  36. package/admin/Drawer/index.js +14 -0
  37. package/admin/Dropdown/Dropdown.stories.playwright.json +21 -0
  38. package/admin/Dropdown/__stories__/AlignRight.d.ts +0 -1
  39. package/admin/Dropdown/__stories__/Default.d.ts +0 -1
  40. package/admin/Dropdown/__stories__/PlacementTop.d.ts +0 -1
  41. package/admin/DropdownArrowDown/index.d.ts +3 -0
  42. package/admin/DropdownArrowDown/index.js +19 -0
  43. package/admin/Modal/Modal.stories.playwright.json +37 -0
  44. package/admin/Modal/__stories__/AlertDialog.d.ts +0 -1
  45. package/admin/Modal/__stories__/Default.d.ts +0 -1
  46. package/admin/Pagination/Pagination.stories.playwright.json +27 -0
  47. package/admin/Pagination/__stories__/Default.d.ts +0 -1
  48. package/admin/Pagination/index.d.ts +1 -1
  49. package/admin/StepNav/StepNav.stories.playwright.json +33 -0
  50. package/admin/StepNav/__stories__/Default.d.ts +0 -1
  51. package/admin/TaskList/__stories__/Default.d.ts +0 -1
  52. package/admin/Timeline/__stories__/Default.d.ts +0 -1
  53. package/admin/index.d.ts +1 -0
  54. package/admin/index.js +13 -0
  55. package/app/App.d.ts +0 -7
  56. package/app/App.js +6 -25
  57. package/app/Confirmation/__stories__/Default.d.ts +0 -1
  58. package/app/Footer/Footer.stories.d.ts +1 -0
  59. package/app/Footer/Footer.stories.js +14 -0
  60. package/app/Footer/Footer.stories.playwright.json +27 -0
  61. package/app/Footer/__stories__/Default.d.ts +0 -1
  62. package/app/Footer/__stories__/DefaultCopyright.d.ts +2 -0
  63. package/app/Footer/__stories__/DefaultCopyright.js +32 -0
  64. package/app/Footer/__stories__/FooterAllInclusive.d.ts +0 -1
  65. package/app/Footer/__stories__/FooterAllInclusive.js +11 -4
  66. package/app/Footer/__stories__/FooterWithLink.d.ts +0 -1
  67. package/app/Footer/__stories__/FooterWithLink.js +1 -1
  68. package/app/Footer/__stories__/FooterWithLogo.d.ts +0 -1
  69. package/app/Footer/__stories__/FooterWithLogo.js +6 -2
  70. package/app/Footer/__stories__/FooterWithSecondaryNavigation.d.ts +0 -1
  71. package/app/Header/Header.stories.d.ts +12 -12
  72. package/app/Header/Header.stories.playwright.json +33 -0
  73. package/app/Header/HeaderLogo.d.ts +1 -1
  74. package/app/Header/HeaderSection.d.ts +1 -1
  75. package/app/Header/HeaderTitle.d.ts +1 -1
  76. package/app/Header/__stories__/Default.d.ts +0 -1
  77. package/app/Header/__stories__/Default.js +2 -3
  78. package/app/Header/__stories__/WithNavigation.d.ts +0 -1
  79. package/app/Header/__stories__/WithNavigation.js +3 -4
  80. package/app/Header/__stories__/WithServiceName.d.ts +0 -1
  81. package/app/Header/__stories__/WithServiceName.js +2 -3
  82. package/app/Header/__stories__/WithServiceNameAndLogo.d.ts +0 -1
  83. package/app/Header/__stories__/WithServiceNameAndLogo.js +5 -4
  84. package/app/Header/index.d.ts +1 -1
  85. package/app/Header/index.spec.js +1 -5
  86. package/app/NotFound/__stories__/Default.d.ts +0 -1
  87. package/app/OutdatedBrowserBanner.d.ts +0 -1
  88. package/app/PhaseBannerHeader/__stories__/Default.d.ts +0 -1
  89. package/app/PhaseBannerHeader/index.d.ts +1 -1
  90. package/app/QrCodeScanner/__stories__/Default.d.ts +0 -1
  91. package/app/i18n.d.ts +2 -2
  92. package/app/i18n.js +16 -2
  93. package/core/Accordion/Accordion.stories.playwright.json +27 -0
  94. package/core/Accordion/__stories__/Default.d.ts +0 -1
  95. package/core/Accordion/__stories__/WithHints.d.ts +0 -1
  96. package/core/Accordion/index.d.ts +3 -3
  97. package/core/BackLink/BackLink.stories.playwright.json +21 -0
  98. package/core/BackLink/__stories__/Default.d.ts +0 -1
  99. package/core/Base/index.d.ts +3 -0
  100. package/core/Base/index.js +19 -0
  101. package/core/Blockquote/__stories__/Default.d.ts +0 -1
  102. package/core/Blockquote/index.d.ts +1 -1
  103. package/core/Breadcrumbs/Breadcrumbs.stories.playwright.json +33 -0
  104. package/core/Breadcrumbs/__stories__/Default.d.ts +0 -1
  105. package/core/Button/BackButton.d.ts +1 -1
  106. package/core/Button/Button.stories.d.ts +15 -15
  107. package/core/Button/Button.stories.playwright.json +93 -0
  108. package/core/Button/ButtonLink.d.ts +1 -1
  109. package/core/Button/__stories__/Back.d.ts +0 -1
  110. package/core/Button/__stories__/ButtonLinkButton.d.ts +0 -1
  111. package/core/Button/__stories__/CallToActionButton.d.ts +0 -1
  112. package/core/Button/__stories__/Disabled.d.ts +0 -1
  113. package/core/Button/__stories__/GroupingButtons.d.ts +0 -1
  114. package/core/Button/__stories__/GroupingButtons.js +1 -1
  115. package/core/Button/__stories__/GroupingButtonsAndLinks.d.ts +0 -1
  116. package/core/Button/__stories__/Primary.d.ts +0 -1
  117. package/core/Button/__stories__/Secondary.d.ts +0 -1
  118. package/core/Button/__stories__/Warning.d.ts +0 -1
  119. package/core/Button/__stories__/WithVariantLink.d.ts +0 -1
  120. package/core/Button/index.d.ts +1 -1
  121. package/core/Card/Card.stories.playwright.json +21 -0
  122. package/core/Card/__stories__/Default.d.ts +0 -1
  123. package/core/Card/__stories__/WithClickableContent.d.ts +0 -1
  124. package/core/Card/__stories__/WithClickableLink.d.ts +0 -1
  125. package/core/Card/__stories__/WithDarkBorder.d.ts +0 -1
  126. package/core/Card/__stories__/WithDarkTopBorder.d.ts +0 -1
  127. package/core/Card/__stories__/WithDivider.d.ts +0 -1
  128. package/core/Card/__stories__/WithGrayBorder.d.ts +0 -1
  129. package/core/Card/__stories__/WithGrayTopBorder.d.ts +0 -1
  130. package/core/Card/__stories__/WithGroupButton.d.ts +0 -1
  131. package/core/Checkboxes/Checkbox.stories.playwright.json +55 -0
  132. package/core/Checkboxes/__stories__/ConditionalReveal.d.ts +0 -1
  133. package/core/Checkboxes/__stories__/Default.d.ts +0 -1
  134. package/core/Checkboxes/__stories__/MultipleQuestions.d.ts +0 -1
  135. package/core/Checkboxes/__stories__/NoneAnswer.d.ts +0 -1
  136. package/core/Checkboxes/__stories__/NoneAnswerWithError.d.ts +2 -3
  137. package/core/Checkboxes/__stories__/NoneAnswerWithError.js +4 -4
  138. package/core/Checkboxes/__stories__/WithErrorMessage.d.ts +0 -1
  139. package/core/Checkboxes/__stories__/WithHint.d.ts +0 -1
  140. package/core/Confirmation/__stories__/Default.d.ts +0 -1
  141. package/core/DateInput/DateInput.stories.playwright.json +61 -0
  142. package/core/DateInput/__stories__/Default.d.ts +0 -1
  143. package/core/DateInput/__stories__/MultipleQuestions.d.ts +0 -1
  144. package/core/DateInput/__stories__/WithErrorMessage.d.ts +0 -1
  145. package/core/DateInput/__stories__/WithErrorMessageForSingleField.d.ts +0 -1
  146. package/core/Details/Details.stories.playwright.json +27 -0
  147. package/core/Details/__stories__/Default.d.ts +0 -1
  148. package/core/Divider/__stories__/Default.d.ts +0 -1
  149. package/core/Divider/index.d.ts +1 -1
  150. package/core/ErrorMessage/__stories__/Default.d.ts +0 -1
  151. package/core/ErrorSummary/ErrorSummary.stories.playwright.json +27 -0
  152. package/core/ErrorSummary/__stories__/Default.d.ts +0 -1
  153. package/core/ErrorSummary/__stories__/LinkedToCheckbox.d.ts +0 -1
  154. package/core/ErrorSummary/__stories__/LinkedToField.d.ts +0 -1
  155. package/core/ErrorSummary/__stories__/LinkedToInput.d.ts +0 -1
  156. package/core/ErrorSummary/index.spec.js +3 -5
  157. package/core/FileUpload/__stories__/Default.d.ts +0 -1
  158. package/core/FileUpload/__stories__/Default.js +1 -1
  159. package/core/FileUpload/__stories__/WithErrorMessage.d.ts +2 -3
  160. package/core/FileUpload/__stories__/WithErrorMessage.js +5 -5
  161. package/core/Form/index.d.ts +3 -0
  162. package/core/Form/index.js +19 -0
  163. package/core/Label/index.d.ts +4 -0
  164. package/core/Label/index.js +44 -0
  165. package/core/Link/Link.stories.playwright.json +65 -0
  166. package/core/Link/__stories__/DarkBackground.d.ts +0 -1
  167. package/core/Link/__stories__/DarkBackgroundNoUnderline.d.ts +0 -1
  168. package/core/Link/__stories__/Default.d.ts +0 -1
  169. package/core/Link/__stories__/NoUnderline.d.ts +0 -1
  170. package/core/Link/__stories__/OpensInNewTab.d.ts +0 -1
  171. package/core/Link/index.d.ts +1 -0
  172. package/core/Link/index.js +2 -1
  173. package/core/List/List.stories.playwright.json +27 -0
  174. package/core/List/ListItemContent.d.ts +0 -1
  175. package/core/List/ListItemContent.js +9 -27
  176. package/core/List/ListItemIcon.d.ts +1 -3
  177. package/core/List/ListItemIcon.js +9 -30
  178. package/core/List/ListItemText.d.ts +0 -1
  179. package/core/List/ListItemText.js +8 -15
  180. package/core/List/ListItemTitle.d.ts +0 -1
  181. package/core/List/ListItemTitle.js +8 -15
  182. package/core/List/__stories__/BulletList.d.ts +0 -1
  183. package/core/List/__stories__/Default.d.ts +0 -1
  184. package/core/List/__stories__/NumberedList.d.ts +0 -1
  185. package/core/List/__stories__/WithExtraSpace.d.ts +0 -1
  186. package/core/List/index.spec.js +1 -3
  187. package/core/Masthead/Masthead.stories.playwright.json +21 -0
  188. package/core/Masthead/__stories__/Default.d.ts +0 -1
  189. package/core/NavList/NavHorizontal.d.ts +3 -0
  190. package/core/NavList/NavHorizontal.js +19 -0
  191. package/core/NavList/NavHorizontalList.d.ts +3 -0
  192. package/core/NavList/NavHorizontalList.js +19 -0
  193. package/core/NavList/NavHorizontalListItem.d.ts +3 -0
  194. package/core/NavList/NavHorizontalListItem.js +19 -0
  195. package/core/NavList/NavList.stories.playwright.json +33 -0
  196. package/core/NavList/NavListItem.d.ts +1 -1
  197. package/core/NavList/NavListItemBase.d.ts +1 -1
  198. package/core/NavList/NavVertical.d.ts +3 -0
  199. package/core/NavList/NavVertical.js +19 -0
  200. package/core/NavList/NavVerticalItem.d.ts +3 -0
  201. package/core/NavList/NavVerticalItem.js +19 -0
  202. package/core/NavList/__stories__/Default.d.ts +0 -1
  203. package/core/NavList/__stories__/NavHorizontalLayout.d.ts +0 -1
  204. package/core/NavList/index.d.ts +5 -0
  205. package/core/NavList/index.js +70 -0
  206. package/core/NavList/index.spec.js +1 -3
  207. package/core/NotificationBanner/NotificationBanner.stories.playwright.json +49 -0
  208. package/core/NotificationBanner/__stories__/Default.d.ts +0 -1
  209. package/core/NotificationBanner/__stories__/Success.d.ts +0 -1
  210. package/core/NotificationBanner/index.spec.js +3 -5
  211. package/core/PhaseBanner/PhaseBanner.stories.playwright.json +21 -0
  212. package/core/PhaseBanner/__stories__/Default.d.ts +0 -1
  213. package/core/PhaseBanner/__stories__/Underlined.d.ts +0 -1
  214. package/core/Radios/Radios.stories.playwright.json +49 -0
  215. package/core/Radios/__stories__/ConditionalReveal.d.ts +0 -1
  216. package/core/Radios/__stories__/Default.d.ts +0 -1
  217. package/core/Radios/__stories__/Inline.d.ts +0 -1
  218. package/core/Radios/__stories__/MultipleQuestions.d.ts +0 -1
  219. package/core/Radios/__stories__/NoneAnswer.d.ts +0 -1
  220. package/core/Radios/__stories__/WithErrorMessage.d.ts +0 -1
  221. package/core/Radios/__stories__/WithHints.d.ts +0 -1
  222. package/core/Select/Select.stories.playwright.json +21 -0
  223. package/core/Select/__stories__/Default.d.ts +0 -1
  224. package/core/Select/__stories__/DisabledInput.d.ts +0 -1
  225. package/core/Select/__stories__/WithHint.d.ts +0 -1
  226. package/core/SkipLink/index.d.ts +3 -0
  227. package/core/SkipLink/index.js +19 -0
  228. package/core/SummaryList/SummaryList.stories.d.ts +1 -0
  229. package/core/SummaryList/SummaryList.stories.js +14 -0
  230. package/core/SummaryList/SummaryList.stories.playwright.json +27 -0
  231. package/core/SummaryList/__stories__/Default.d.ts +0 -1
  232. package/core/SummaryList/__stories__/Default.js +7 -1
  233. package/core/SummaryList/__stories__/WithActions.d.ts +0 -1
  234. package/core/SummaryList/__stories__/WithKeyAndAction.d.ts +2 -0
  235. package/core/SummaryList/__stories__/WithKeyAndAction.js +42 -0
  236. package/core/SummaryList/__stories__/WithoutBorders.d.ts +0 -1
  237. package/core/SvgIcon/index.d.ts +1 -0
  238. package/core/SvgIcon/index.js +14 -0
  239. package/core/Table/Table.stories.playwright.json +21 -0
  240. package/core/Table/TableFloatingScroll.d.ts +0 -1
  241. package/core/Table/__stories__/DarkVariant.d.ts +0 -1
  242. package/core/Table/__stories__/DarkVariantWithVerticalHeaders.d.ts +0 -1
  243. package/core/Table/__stories__/Default.d.ts +0 -1
  244. package/core/Table/__stories__/DefinedWidth.d.ts +0 -1
  245. package/core/Table/__stories__/Densed.d.ts +0 -1
  246. package/core/Table/__stories__/MultipleProps.d.ts +0 -1
  247. package/core/Table/__stories__/NoData.d.ts +0 -1
  248. package/core/Table/__stories__/NumericDataType.d.ts +0 -1
  249. package/core/Table/__stories__/TableCaptions.d.ts +0 -1
  250. package/core/Table/__stories__/VerticalBorders.d.ts +0 -1
  251. package/core/Table/__stories__/VerticalHeaders.d.ts +0 -1
  252. package/core/Table/__stories__/WithFloatingScroll.d.ts +0 -1
  253. package/core/Table/__stories__/WithHeader.d.ts +0 -1
  254. package/core/Table/__stories__/WithLoader.d.ts +0 -1
  255. package/core/Table/__stories__/ZebraProp.d.ts +0 -1
  256. package/core/Tabs/Tabs.stories.playwright.json +27 -0
  257. package/core/Tabs/__stories__/Default.d.ts +0 -1
  258. package/core/TextArea/TextArea.stories.playwright.json +59 -0
  259. package/core/TextArea/__stories__/Default.d.ts +0 -1
  260. package/core/TextArea/__stories__/DisabledInput.d.ts +0 -1
  261. package/core/TextArea/__stories__/LimitedCharacters.d.ts +0 -1
  262. package/core/TextArea/__stories__/MultipleQuestions.d.ts +0 -1
  263. package/core/TextArea/__stories__/WithDeclaredRows.d.ts +0 -1
  264. package/core/TextArea/__stories__/WithErrorMessage.d.ts +0 -1
  265. package/core/TextArea/__stories__/WithHint.d.ts +0 -1
  266. package/core/TextInput/TextInput.stories.playwright.json +43 -0
  267. package/core/TextInput/__stories__/AskingForNumbers.d.ts +0 -1
  268. package/core/TextInput/__stories__/Default.d.ts +0 -1
  269. package/core/TextInput/__stories__/DisabledInput.d.ts +0 -1
  270. package/core/TextInput/__stories__/FixedWidths.d.ts +0 -1
  271. package/core/TextInput/__stories__/FluidWidths.d.ts +0 -1
  272. package/core/TextInput/__stories__/MultipleQuestions.d.ts +0 -1
  273. package/core/TextInput/__stories__/WithErrorMessage.d.ts +0 -1
  274. package/core/TextInput/__stories__/WithHint.d.ts +0 -1
  275. package/core/VisuallyHidden/__stories__/Default.d.ts +0 -1
  276. package/core/WarningText/__stories__/Default.d.ts +0 -1
  277. package/core/WarningText/index.spec.js +1 -3
  278. package/core/index.d.ts +4 -0
  279. package/core/index.js +56 -0
  280. package/es/admin/AutoComplete/__stories__/Default.js +1 -1
  281. package/es/admin/AutoComplete/__stories__/WithAutoSelect.js +13 -2
  282. package/es/admin/AutoComplete/__stories__/WithDefaultValue.js +1 -1
  283. package/es/admin/AutoComplete/__stories__/WithInLine.js +1 -1
  284. package/es/admin/AutoComplete/__stories__/WithMinLength.js +1 -1
  285. package/es/admin/AutoComplete/__stories__/WithPlaceHolder.js +1 -1
  286. package/es/admin/AutoComplete/__stories__/WithShowAllValues.js +1 -1
  287. package/es/admin/AutoComplete/__stories__/utils.js +6 -0
  288. package/es/admin/AutoComplete/index.js +6 -45
  289. package/es/admin/AutoComplete/utils.js +18 -5
  290. package/es/admin/Chip/index.js +2 -0
  291. package/es/admin/CopyToClipboard/CopyToClipboard.stories.playwright.json +37 -0
  292. package/es/admin/CopyToClipboard/index.js +2 -1
  293. package/es/admin/Drawer/Drawer.stories.js +2 -5
  294. package/es/admin/Drawer/__stories__/Default.js +13 -13
  295. package/es/admin/Drawer/index.js +1 -0
  296. package/es/admin/Dropdown/Dropdown.stories.playwright.json +21 -0
  297. package/es/admin/DropdownArrowDown/index.js +3 -0
  298. package/es/admin/Modal/Modal.stories.playwright.json +37 -0
  299. package/es/admin/Pagination/Pagination.stories.playwright.json +27 -0
  300. package/es/admin/StepNav/StepNav.stories.playwright.json +33 -0
  301. package/es/admin/index.js +1 -0
  302. package/es/app/App.js +5 -18
  303. package/es/app/Footer/Footer.stories.js +1 -0
  304. package/es/app/Footer/Footer.stories.playwright.json +27 -0
  305. package/es/app/Footer/__stories__/DefaultCopyright.js +16 -0
  306. package/es/app/Footer/__stories__/FooterAllInclusive.js +9 -4
  307. package/es/app/Footer/__stories__/FooterWithLink.js +1 -1
  308. package/es/app/Footer/__stories__/FooterWithLogo.js +4 -2
  309. package/es/app/Header/Header.stories.playwright.json +33 -0
  310. package/es/app/Header/__stories__/Default.js +2 -3
  311. package/es/app/Header/__stories__/WithNavigation.js +2 -3
  312. package/es/app/Header/__stories__/WithServiceName.js +2 -3
  313. package/es/app/Header/__stories__/WithServiceNameAndLogo.js +4 -4
  314. package/es/app/Header/index.spec.js +1 -2
  315. package/es/app/i18n.js +16 -2
  316. package/es/core/Accordion/Accordion.stories.playwright.json +27 -0
  317. package/es/core/BackLink/BackLink.stories.playwright.json +21 -0
  318. package/es/core/Base/index.js +3 -0
  319. package/es/core/Breadcrumbs/Breadcrumbs.stories.playwright.json +33 -0
  320. package/es/core/Button/Button.stories.playwright.json +93 -0
  321. package/es/core/Button/__stories__/GroupingButtons.js +1 -1
  322. package/es/core/Card/Card.stories.playwright.json +21 -0
  323. package/es/core/Checkboxes/Checkbox.stories.playwright.json +55 -0
  324. package/es/core/Checkboxes/__stories__/NoneAnswerWithError.js +2 -2
  325. package/es/core/DateInput/DateInput.stories.playwright.json +61 -0
  326. package/es/core/Details/Details.stories.playwright.json +27 -0
  327. package/es/core/ErrorSummary/ErrorSummary.stories.playwright.json +27 -0
  328. package/es/core/ErrorSummary/index.spec.js +2 -3
  329. package/es/core/FileUpload/__stories__/Default.js +1 -1
  330. package/es/core/FileUpload/__stories__/WithErrorMessage.js +3 -3
  331. package/es/core/Form/index.js +3 -0
  332. package/es/core/Label/index.js +4 -0
  333. package/es/core/Link/Link.stories.playwright.json +65 -0
  334. package/es/core/Link/index.js +2 -1
  335. package/es/core/List/List.stories.playwright.json +27 -0
  336. package/es/core/List/ListItemContent.js +9 -22
  337. package/es/core/List/ListItemIcon.js +9 -24
  338. package/es/core/List/ListItemText.js +6 -10
  339. package/es/core/List/ListItemTitle.js +6 -10
  340. package/es/core/List/index.spec.js +1 -2
  341. package/es/core/Masthead/Masthead.stories.playwright.json +21 -0
  342. package/es/core/NavList/NavHorizontal.js +3 -0
  343. package/es/core/NavList/NavHorizontalList.js +3 -0
  344. package/es/core/NavList/NavHorizontalListItem.js +3 -0
  345. package/es/core/NavList/NavList.stories.playwright.json +33 -0
  346. package/es/core/NavList/NavVertical.js +3 -0
  347. package/es/core/NavList/NavVerticalItem.js +3 -0
  348. package/es/core/NavList/index.js +6 -1
  349. package/es/core/NavList/index.spec.js +1 -2
  350. package/es/core/NotificationBanner/NotificationBanner.stories.playwright.json +49 -0
  351. package/es/core/NotificationBanner/index.spec.js +3 -4
  352. package/es/core/PhaseBanner/PhaseBanner.stories.playwright.json +21 -0
  353. package/es/core/Radios/Radios.stories.playwright.json +49 -0
  354. package/es/core/Select/Select.stories.playwright.json +21 -0
  355. package/es/core/SkipLink/index.js +3 -0
  356. package/es/core/SummaryList/SummaryList.stories.js +2 -1
  357. package/es/core/SummaryList/SummaryList.stories.playwright.json +27 -0
  358. package/es/core/SummaryList/__stories__/Default.js +5 -1
  359. package/es/core/SummaryList/__stories__/WithKeyAndAction.js +20 -0
  360. package/es/core/SvgIcon/index.js +1 -0
  361. package/es/core/Table/Table.stories.playwright.json +21 -0
  362. package/es/core/Tabs/Tabs.stories.playwright.json +27 -0
  363. package/es/core/TextArea/TextArea.stories.playwright.json +59 -0
  364. package/es/core/TextInput/TextInput.stories.playwright.json +43 -0
  365. package/es/core/WarningText/index.spec.js +1 -2
  366. package/es/core/index.js +4 -0
  367. package/es/govgr/Footer/Copyright.js +4 -3
  368. package/es/govgr/Footer/index.mdx +1 -1
  369. package/es/govgr/images/govgr-logo-base64.js +1 -0
  370. package/es/govgr/images/greek-government-base64.js +1 -0
  371. package/es/govgr/images/grnet-logo-base64.js +1 -0
  372. package/es/govgr/images/index.js +4 -0
  373. package/es/govgr/images/minedu-logo-base64.js +1 -0
  374. package/es/govgr/index.js +2 -1
  375. package/es/layouts/Basic/Content/index.js +3 -1
  376. package/es/layouts/Basic/Side/index.js +2 -1
  377. package/es/layouts/Basic/__stories__/Default.js +2 -2
  378. package/es/layouts/Basic/index.js +2 -1
  379. package/es/locales/el.js +9 -2
  380. package/es/locales/en.js +7 -1
  381. package/es/registry.js +142 -114
  382. package/es/typography/Caption/index.js +2 -1
  383. package/es/typography/NormalText/__stories__/FontWeight.js +5 -5
  384. package/es/typography/Paragraph/__stories__/FontWeight.js +4 -4
  385. package/es/typography/Title/index.js +2 -1
  386. package/esm/admin/AutoComplete/__stories__/Default.js +1 -1
  387. package/esm/admin/AutoComplete/__stories__/WithAutoSelect.js +13 -2
  388. package/esm/admin/AutoComplete/__stories__/WithDefaultValue.js +1 -1
  389. package/esm/admin/AutoComplete/__stories__/WithInLine.js +1 -1
  390. package/esm/admin/AutoComplete/__stories__/WithMinLength.js +1 -1
  391. package/esm/admin/AutoComplete/__stories__/WithPlaceHolder.js +1 -1
  392. package/esm/admin/AutoComplete/__stories__/WithShowAllValues.js +1 -1
  393. package/esm/admin/AutoComplete/__stories__/utils.js +6 -0
  394. package/esm/admin/AutoComplete/index.js +6 -45
  395. package/esm/admin/AutoComplete/utils.js +18 -5
  396. package/esm/admin/Chip/index.js +2 -0
  397. package/esm/admin/CopyToClipboard/CopyToClipboard.stories.playwright.json +37 -0
  398. package/esm/admin/CopyToClipboard/index.js +2 -1
  399. package/esm/admin/Drawer/Drawer.stories.js +2 -5
  400. package/esm/admin/Drawer/__stories__/Default.js +13 -13
  401. package/esm/admin/Drawer/index.js +1 -0
  402. package/esm/admin/Dropdown/Dropdown.stories.playwright.json +21 -0
  403. package/esm/admin/DropdownArrowDown/index.js +3 -0
  404. package/esm/admin/Modal/Modal.stories.playwright.json +37 -0
  405. package/esm/admin/Pagination/Pagination.stories.playwright.json +27 -0
  406. package/esm/admin/StepNav/StepNav.stories.playwright.json +33 -0
  407. package/esm/admin/index.js +1 -0
  408. package/esm/app/App.js +5 -18
  409. package/esm/app/Footer/Footer.stories.js +1 -0
  410. package/esm/app/Footer/Footer.stories.playwright.json +27 -0
  411. package/esm/app/Footer/__stories__/DefaultCopyright.js +16 -0
  412. package/esm/app/Footer/__stories__/FooterAllInclusive.js +9 -4
  413. package/esm/app/Footer/__stories__/FooterWithLink.js +1 -1
  414. package/esm/app/Footer/__stories__/FooterWithLogo.js +4 -2
  415. package/esm/app/Header/Header.stories.playwright.json +33 -0
  416. package/esm/app/Header/__stories__/Default.js +2 -3
  417. package/esm/app/Header/__stories__/WithNavigation.js +2 -3
  418. package/esm/app/Header/__stories__/WithServiceName.js +2 -3
  419. package/esm/app/Header/__stories__/WithServiceNameAndLogo.js +4 -4
  420. package/esm/app/Header/index.spec.js +1 -2
  421. package/esm/app/i18n.js +16 -2
  422. package/esm/core/Accordion/Accordion.stories.playwright.json +27 -0
  423. package/esm/core/BackLink/BackLink.stories.playwright.json +21 -0
  424. package/esm/core/Base/index.js +3 -0
  425. package/esm/core/Breadcrumbs/Breadcrumbs.stories.playwright.json +33 -0
  426. package/esm/core/Button/Button.stories.playwright.json +93 -0
  427. package/esm/core/Button/__stories__/GroupingButtons.js +1 -1
  428. package/esm/core/Card/Card.stories.playwright.json +21 -0
  429. package/esm/core/Checkboxes/Checkbox.stories.playwright.json +55 -0
  430. package/esm/core/Checkboxes/__stories__/NoneAnswerWithError.js +2 -2
  431. package/esm/core/DateInput/DateInput.stories.playwright.json +61 -0
  432. package/esm/core/Details/Details.stories.playwright.json +27 -0
  433. package/esm/core/ErrorSummary/ErrorSummary.stories.playwright.json +27 -0
  434. package/esm/core/ErrorSummary/index.spec.js +2 -3
  435. package/esm/core/FileUpload/__stories__/Default.js +1 -1
  436. package/esm/core/FileUpload/__stories__/WithErrorMessage.js +3 -3
  437. package/esm/core/Form/index.js +3 -0
  438. package/esm/core/Label/index.js +4 -0
  439. package/esm/core/Link/Link.stories.playwright.json +65 -0
  440. package/esm/core/Link/index.js +2 -1
  441. package/esm/core/List/List.stories.playwright.json +27 -0
  442. package/esm/core/List/ListItemContent.js +9 -22
  443. package/esm/core/List/ListItemIcon.js +9 -24
  444. package/esm/core/List/ListItemText.js +6 -10
  445. package/esm/core/List/ListItemTitle.js +6 -10
  446. package/esm/core/List/index.spec.js +1 -2
  447. package/esm/core/Masthead/Masthead.stories.playwright.json +21 -0
  448. package/esm/core/NavList/NavHorizontal.js +3 -0
  449. package/esm/core/NavList/NavHorizontalList.js +3 -0
  450. package/esm/core/NavList/NavHorizontalListItem.js +3 -0
  451. package/esm/core/NavList/NavList.stories.playwright.json +33 -0
  452. package/esm/core/NavList/NavVertical.js +3 -0
  453. package/esm/core/NavList/NavVerticalItem.js +3 -0
  454. package/esm/core/NavList/index.js +6 -1
  455. package/esm/core/NavList/index.spec.js +1 -2
  456. package/esm/core/NotificationBanner/NotificationBanner.stories.playwright.json +49 -0
  457. package/esm/core/NotificationBanner/index.spec.js +3 -4
  458. package/esm/core/PhaseBanner/PhaseBanner.stories.playwright.json +21 -0
  459. package/esm/core/Radios/Radios.stories.playwright.json +49 -0
  460. package/esm/core/Select/Select.stories.playwright.json +21 -0
  461. package/esm/core/SkipLink/index.js +3 -0
  462. package/esm/core/SummaryList/SummaryList.stories.js +2 -1
  463. package/esm/core/SummaryList/SummaryList.stories.playwright.json +27 -0
  464. package/esm/core/SummaryList/__stories__/Default.js +5 -1
  465. package/esm/core/SummaryList/__stories__/WithKeyAndAction.js +20 -0
  466. package/esm/core/SvgIcon/index.js +1 -0
  467. package/esm/core/Table/Table.stories.playwright.json +21 -0
  468. package/esm/core/Tabs/Tabs.stories.playwright.json +27 -0
  469. package/esm/core/TextArea/TextArea.stories.playwright.json +59 -0
  470. package/esm/core/TextInput/TextInput.stories.playwright.json +43 -0
  471. package/esm/core/WarningText/index.spec.js +1 -2
  472. package/esm/core/index.js +4 -0
  473. package/esm/govgr/Footer/Copyright.js +4 -3
  474. package/esm/govgr/Footer/index.mdx +1 -1
  475. package/esm/govgr/images/govgr-logo-base64.js +1 -0
  476. package/esm/govgr/images/greek-government-base64.js +1 -0
  477. package/esm/govgr/images/grnet-logo-base64.js +1 -0
  478. package/esm/govgr/images/index.js +4 -0
  479. package/esm/govgr/images/minedu-logo-base64.js +1 -0
  480. package/esm/govgr/index.js +2 -1
  481. package/esm/index.js +1 -1
  482. package/esm/layouts/Basic/Content/index.js +3 -1
  483. package/esm/layouts/Basic/Side/index.js +2 -1
  484. package/esm/layouts/Basic/__stories__/Default.js +2 -2
  485. package/esm/layouts/Basic/index.js +2 -1
  486. package/esm/locales/el.js +9 -2
  487. package/esm/locales/en.js +7 -1
  488. package/esm/registry.js +142 -114
  489. package/esm/typography/Caption/index.js +2 -1
  490. package/esm/typography/NormalText/__stories__/FontWeight.js +5 -5
  491. package/esm/typography/Paragraph/__stories__/FontWeight.js +4 -4
  492. package/esm/typography/Title/index.js +2 -1
  493. package/govgr/Footer/Copyright.js +4 -3
  494. package/govgr/Footer/index.mdx +1 -1
  495. package/govgr/images/govgr-logo-base64.d.ts +2 -0
  496. package/govgr/images/govgr-logo-base64.js +8 -0
  497. package/govgr/images/greek-government-base64.d.ts +2 -0
  498. package/govgr/images/greek-government-base64.js +8 -0
  499. package/govgr/images/grnet-logo-base64.d.ts +2 -0
  500. package/govgr/images/grnet-logo-base64.js +8 -0
  501. package/govgr/images/index.d.ts +4 -0
  502. package/govgr/images/index.js +57 -0
  503. package/govgr/images/minedu-logo-base64.d.ts +2 -0
  504. package/govgr/images/minedu-logo-base64.js +8 -0
  505. package/govgr/index.d.ts +1 -0
  506. package/govgr/index.js +13 -0
  507. package/layouts/Basic/Content/index.d.ts +3 -1
  508. package/layouts/Basic/Content/index.js +6 -0
  509. package/layouts/Basic/Side/index.d.ts +3 -1
  510. package/layouts/Basic/Side/index.js +6 -0
  511. package/layouts/Basic/Top/index.d.ts +1 -1
  512. package/layouts/Basic/__stories__/Default.d.ts +2 -3
  513. package/layouts/Basic/__stories__/Default.js +4 -4
  514. package/layouts/Basic/__stories__/MultipleRowsLayout.d.ts +0 -1
  515. package/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.d.ts +0 -1
  516. package/layouts/Basic/index.d.ts +1 -0
  517. package/layouts/Basic/index.js +9 -1
  518. package/layouts/Grid/__stories__/Default.d.ts +0 -1
  519. package/layouts/Grid/__stories__/Inline.d.ts +0 -1
  520. package/locales/el.d.ts +8 -1
  521. package/locales/el.js +9 -2
  522. package/locales/en.d.ts +7 -1
  523. package/locales/en.js +7 -1
  524. package/package.json +4 -4
  525. package/registry.d.ts +70 -57
  526. package/registry.js +192 -151
  527. package/typography/Caption/__stories__/Default.d.ts +0 -1
  528. package/typography/Caption/__stories__/NestedToTitle.d.ts +0 -1
  529. package/typography/Caption/index.d.ts +3 -2
  530. package/typography/Caption/index.js +8 -1
  531. package/typography/Hint/__stories__/Default.d.ts +0 -1
  532. package/typography/Hint/__stories__/FontSizes.d.ts +0 -1
  533. package/typography/NormalText/__stories__/Default.d.ts +0 -1
  534. package/typography/NormalText/__stories__/FontSizes.d.ts +0 -1
  535. package/typography/NormalText/__stories__/FontWeight.d.ts +2 -3
  536. package/typography/NormalText/__stories__/FontWeight.js +4 -4
  537. package/typography/NormalText/__stories__/Variants.d.ts +0 -1
  538. package/typography/Paragraph/__stories__/Default.d.ts +0 -1
  539. package/typography/Paragraph/__stories__/FontSizes.d.ts +0 -1
  540. package/typography/Paragraph/__stories__/FontWeight.d.ts +2 -3
  541. package/typography/Paragraph/__stories__/FontWeight.js +4 -4
  542. package/typography/Paragraph/__stories__/LeadVariant.d.ts +0 -1
  543. package/typography/Paragraph/__stories__/SmallVariant.d.ts +0 -1
  544. package/typography/Title/__stories__/Default.d.ts +0 -1
  545. package/typography/Title/index.d.ts +2 -1
  546. package/typography/Title/index.js +6 -0
  547. package/admin/AutoComplete/AccesibleAutoComplete/index.d.ts +0 -5
  548. package/admin/AutoComplete/AccesibleAutoComplete/index.js +0 -106
  549. package/es/admin/AutoComplete/AccesibleAutoComplete/index.js +0 -87
  550. package/es/test-utils/mountWithTheme.js +0 -30
  551. package/es/themes/govgr.js +0 -79
  552. package/es/themes/index.js +0 -2
  553. package/esm/admin/AutoComplete/AccesibleAutoComplete/index.js +0 -87
  554. package/esm/test-utils/mountWithTheme.js +0 -30
  555. package/esm/themes/govgr.js +0 -79
  556. package/esm/themes/index.js +0 -2
  557. package/test-utils/mountWithTheme.d.ts +0 -3
  558. package/test-utils/mountWithTheme.js +0 -43
  559. package/themes/govgr.d.ts +0 -3
  560. package/themes/govgr.js +0 -89
  561. package/themes/index.d.ts +0 -32
  562. package/themes/index.js +0 -19
@@ -1,9 +1,8 @@
1
1
  import * as React from 'react';
2
- import mountWithTheme from '@digigov/ui/test-utils/mountWithTheme';
3
2
  import Component from '@digigov/ui/core/List';
4
3
 
5
4
  var _ref = /*#__PURE__*/React.createElement(Component, null, "this is some random warning text");
6
5
 
7
6
  it('renders the ErrorSummary with sample data', function () {
8
- expect(mountWithTheme(_ref)).toMatchSnapshot();
7
+ expect(_ref).toMatchSnapshot();
9
8
  });
@@ -0,0 +1,21 @@
1
+ {
2
+ "version": "4",
3
+ "stories": {
4
+ "digigov-ui-core-masthead--default": {
5
+ "actionSets": [
6
+ {
7
+ "actions": [
8
+ {
9
+ "name": "hover",
10
+ "args": {
11
+ "selector": "html>body>div:nth-child(5)>div>div>div>main>a"
12
+ }
13
+ }
14
+ ],
15
+ "id": "RjiejhT6-wyP",
16
+ "title": "Hover"
17
+ }
18
+ ]
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,3 @@
1
+ import NavHorizontal from '@digigov/react-core/NavHorizontal';
2
+ export { NavHorizontal };
3
+ export default NavHorizontal;
@@ -0,0 +1,3 @@
1
+ import NavHorizontalList from '@digigov/react-core/NavHorizontalList';
2
+ export { NavHorizontalList };
3
+ export default NavHorizontalList;
@@ -0,0 +1,3 @@
1
+ import NavHorizontalListItem from '@digigov/react-core/NavHorizontalListItem';
2
+ export { NavHorizontalListItem };
3
+ export default NavHorizontalListItem;
@@ -0,0 +1,33 @@
1
+ {
2
+ "version": "4",
3
+ "stories": {
4
+ "digigov-ui-core-navlist--default": {
5
+ "actionSets": [
6
+ {
7
+ "actions": [
8
+ {
9
+ "name": "hover",
10
+ "args": {
11
+ "selector": "html>body>div:nth-child(5)>nav>ul>li:nth-child(2)>div:nth-child(1)>a>span:nth-child(1)"
12
+ }
13
+ },
14
+ {
15
+ "name": "click",
16
+ "args": {
17
+ "selector": "html>body>div:nth-child(5)>nav>ul>li:nth-child(2)>div:nth-child(1)>a>span:nth-child(1)"
18
+ }
19
+ },
20
+ {
21
+ "name": "keyboard.press",
22
+ "args": {
23
+ "key": "Tab"
24
+ }
25
+ }
26
+ ],
27
+ "id": "WMfgyO3E_9S_",
28
+ "title": "Hover and click"
29
+ }
30
+ ]
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,3 @@
1
+ import NavVertical from '@digigov/react-core/NavVertical';
2
+ export { NavVertical };
3
+ export default NavVertical;
@@ -0,0 +1,3 @@
1
+ import NavVerticalItem from '@digigov/react-core/NavVerticalItem';
2
+ export { NavVerticalItem };
3
+ export default NavVerticalItem;
@@ -2,4 +2,9 @@ export { NavList as default } from '@digigov/ui/core/NavList/NavList';
2
2
  export * from '@digigov/ui/core/NavList/NavList';
3
3
  export * from '@digigov/ui/core/NavList/NavListItem';
4
4
  export * from '@digigov/ui/core/NavList/NavListSubMenu';
5
- export * from '@digigov/ui/core/NavList/NavListContext';
5
+ export * from '@digigov/ui/core/NavList/NavListContext';
6
+ export * from '@digigov/ui/core/NavList/NavHorizontal';
7
+ export * from '@digigov/ui/core/NavList/NavHorizontalList';
8
+ export * from '@digigov/ui/core/NavList/NavHorizontalListItem';
9
+ export * from '@digigov/ui/core/NavList/NavVertical';
10
+ export * from '@digigov/ui/core/NavList/NavVerticalItem';
@@ -1,9 +1,8 @@
1
1
  import * as React from 'react';
2
- import mountWithTheme from '@digigov/ui/test-utils/mountWithTheme';
3
2
  import Component from '@digigov/ui/core/NavList';
4
3
 
5
4
  var _ref = /*#__PURE__*/React.createElement(Component, null, "this is some random warning text");
6
5
 
7
6
  it('renders the ErrorSummary with sample data', function () {
8
- expect(mountWithTheme(_ref)).toMatchSnapshot();
7
+ expect(_ref).toMatchSnapshot();
9
8
  });
@@ -0,0 +1,49 @@
1
+ {
2
+ "version": "4",
3
+ "stories": {
4
+ "digigov-ui-core-notificationbanner--default": {
5
+ "actionSets": [
6
+ {
7
+ "actions": [
8
+ {
9
+ "name": "hover",
10
+ "args": {
11
+ "selector": "html>body>div:nth-child(5)>div>div:nth-child(2)>h3>a"
12
+ }
13
+ },
14
+ {
15
+ "name": "click",
16
+ "args": {
17
+ "selector": "html>body>div:nth-child(5)>div>div:nth-child(2)>h3>a"
18
+ }
19
+ }
20
+ ],
21
+ "id": "dYDf1Q2XBX7X",
22
+ "title": "Hover and click"
23
+ }
24
+ ]
25
+ },
26
+ "digigov-ui-core-notificationbanner--success": {
27
+ "actionSets": [
28
+ {
29
+ "actions": [
30
+ {
31
+ "name": "hover",
32
+ "args": {
33
+ "selector": "html>body>div:nth-child(5)>div>div:nth-child(2)>h3>a"
34
+ }
35
+ },
36
+ {
37
+ "name": "click",
38
+ "args": {
39
+ "selector": "html>body>div:nth-child(5)>div>div:nth-child(2)>h3>a"
40
+ }
41
+ }
42
+ ],
43
+ "id": "ez4xB9-sspYz",
44
+ "title": "Hover and click"
45
+ }
46
+ ]
47
+ }
48
+ }
49
+ }
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
- import mountWithTheme from '@digigov/ui/test-utils/mountWithTheme';
3
2
  import NotificationBanner from '@digigov/ui/core/NotificationBanner';
4
3
 
5
4
  var _ref = /*#__PURE__*/React.createElement(NotificationBanner, {
@@ -7,14 +6,14 @@ var _ref = /*#__PURE__*/React.createElement(NotificationBanner, {
7
6
  }, "this is a notification");
8
7
 
9
8
  it('renders the notification banner', function () {
10
- expect(mountWithTheme(_ref)).toMatchSnapshot();
9
+ expect(_ref).toMatchSnapshot();
11
10
  });
12
11
  it('renders the notification banner with title and link', function () {
13
- expect(mountWithTheme( /*#__PURE__*/React.createElement(NotificationBanner, {
12
+ expect( /*#__PURE__*/React.createElement(NotificationBanner, {
14
13
  title: "Notification Banner Example",
15
14
  link: {
16
15
  href: '/',
17
16
  label: 'This is a label'
18
17
  }
19
- }, "this is a notification"))).toMatchSnapshot();
18
+ }, "this is a notification")).toMatchSnapshot();
20
19
  });
@@ -0,0 +1,21 @@
1
+ {
2
+ "version": "4",
3
+ "stories": {
4
+ "digigov-ui-core-phasebanner--default": {
5
+ "actionSets": [
6
+ {
7
+ "actions": [
8
+ {
9
+ "name": "keyboard.press",
10
+ "args": {
11
+ "key": "Tab"
12
+ }
13
+ }
14
+ ],
15
+ "id": "b1ldT3RjaFfg",
16
+ "title": "pressing Tab"
17
+ }
18
+ ]
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "version": "4",
3
+ "stories": {
4
+ "digigov-ui-core-radios--default": {
5
+ "actionSets": [
6
+ {
7
+ "actions": [
8
+ {
9
+ "name": "keyboard.press",
10
+ "args": {
11
+ "key": "Tab"
12
+ }
13
+ },
14
+ {
15
+ "name": "keyboard.press",
16
+ "args": {
17
+ "key": "Space"
18
+ }
19
+ },
20
+ {
21
+ "name": "keyboard.press",
22
+ "args": {
23
+ "key": "ArrowDown"
24
+ }
25
+ }
26
+ ],
27
+ "id": "ihfl6FqwhAee",
28
+ "title": "Navigate with keyboard"
29
+ }
30
+ ]
31
+ },
32
+ "digigov-ui-core-radios--with-hints": {
33
+ "actionSets": [
34
+ {
35
+ "actions": [
36
+ {
37
+ "name": "click",
38
+ "args": {
39
+ "selector": "html>body>div:nth-child(5)>div>fieldset>div>div:nth-child(1)>label>input"
40
+ }
41
+ }
42
+ ],
43
+ "id": "FgKax2U7F5gE",
44
+ "title": "Click first"
45
+ }
46
+ ]
47
+ }
48
+ }
49
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "version": "4",
3
+ "stories": {
4
+ "digigov-ui-core-select--default": {
5
+ "actionSets": [
6
+ {
7
+ "actions": [
8
+ {
9
+ "name": "click",
10
+ "args": {
11
+ "selector": "html>body>div:nth-child(5)>div>label>select"
12
+ }
13
+ }
14
+ ],
15
+ "id": "r12umQc21tgb",
16
+ "title": "Select with mouse"
17
+ }
18
+ ]
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,3 @@
1
+ import SkipLink from '@digigov/react-core/SkipLink';
2
+ export default SkipLink;
3
+ export { SkipLink };
@@ -6,4 +6,5 @@ export default {
6
6
  };
7
7
  export * from './__stories__/Default';
8
8
  export * from './__stories__/WithActions';
9
- export * from './__stories__/WithoutBorders';
9
+ export * from './__stories__/WithoutBorders';
10
+ export * from './__stories__/WithKeyAndAction';
@@ -0,0 +1,27 @@
1
+ {
2
+ "version": "4",
3
+ "stories": {
4
+ "digigov-ui-core-summarylist--with-actions": {
5
+ "actionSets": [
6
+ {
7
+ "actions": [
8
+ {
9
+ "name": "keyboard.press",
10
+ "args": {
11
+ "key": "Tab"
12
+ }
13
+ },
14
+ {
15
+ "name": "keyboard.press",
16
+ "args": {
17
+ "key": "Tab"
18
+ }
19
+ }
20
+ ],
21
+ "id": "vjxfIQ17JwqS",
22
+ "title": "Navigate with keyboard"
23
+ }
24
+ ]
25
+ }
26
+ }
27
+ }
@@ -1,7 +1,11 @@
1
1
  import React from 'react';
2
2
  import SummaryList, { SummaryListItem, SummaryListItemAction, SummaryListItemKey, SummaryListItemValue } from '@digigov/ui/core/SummaryList';
3
+ import VisuallyHidden from '@digigov/ui/core/VisuallyHidden';
4
+ import Link from '@digigov/ui/core/Link';
3
5
 
4
- var _ref = /*#__PURE__*/React.createElement(SummaryList, null, /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u038C\u03BD\u03BF\u03BC\u03B1"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, "\u0393\u03B9\u03CE\u03C1\u03B3\u03BF\u03C2 \u03A0\u03B1\u03C0\u03B1\u03B4\u03CC\u03C0\u03BF\u03C5\u03BB\u03BF\u03C2")), /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u0394\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, "\u03A4\u03AC\u03B4\u03B5 20, \u03A0\u03B1\u03C4\u03AE\u03C3\u03B9\u03B1"), /*#__PURE__*/React.createElement(SummaryListItemAction, null)), /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u03A4\u03B7\u03BB\u03AD\u03C6\u03C9\u03BD\u03BF"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, "6941234567")));
6
+ var _ref = /*#__PURE__*/React.createElement(SummaryList, null, /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u038C\u03BD\u03BF\u03BC\u03B1"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, "\u0393\u03B9\u03CE\u03C1\u03B3\u03BF\u03C2 \u03A0\u03B1\u03C0\u03B1\u03B4\u03CC\u03C0\u03BF\u03C5\u03BB\u03BF\u03C2")), /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u0394\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, "\u03A4\u03AC\u03B4\u03B5 20, \u03A0\u03B1\u03C4\u03AE\u03C3\u03B9\u03B1"), /*#__PURE__*/React.createElement(SummaryListItemAction, null, /*#__PURE__*/React.createElement(Link, {
7
+ href: "#"
8
+ }, "\u0391\u03BB\u03BB\u03B1\u03B3\u03AE", /*#__PURE__*/React.createElement(VisuallyHidden, null, "\u0394\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7\u03C2")))), /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u03A4\u03B7\u03BB\u03AD\u03C6\u03C9\u03BD\u03BF"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, "6941234567")));
5
9
 
6
10
  export var Default = function Default() {
7
11
  return /*#__PURE__*/React.createElement(React.Fragment, null, _ref);
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import SummaryList, { SummaryListItem, SummaryListItemAction, SummaryListItemKey } from '@digigov/ui/core/SummaryList';
3
+ import VisuallyHidden from '@digigov/ui/core/VisuallyHidden';
4
+ import Link from '@digigov/ui/core/Link';
5
+ import { ButtonGroup, Button } from '@digigov/ui/core';
6
+
7
+ var _ref = /*#__PURE__*/React.createElement(SummaryList, null, /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u038C\u03BD\u03BF\u03BC\u03B1"), /*#__PURE__*/React.createElement(SummaryListItemAction, null, /*#__PURE__*/React.createElement(Link, {
8
+ href: "#"
9
+ }, "\u0391\u03BB\u03BB\u03B1\u03B3\u03AE", /*#__PURE__*/React.createElement(VisuallyHidden, null, "\u039F\u03BD\u03CC\u03BC\u03B1\u03C4\u03BF\u03C2")))), /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u0394\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7"), /*#__PURE__*/React.createElement(SummaryListItemAction, null, /*#__PURE__*/React.createElement(Link, {
10
+ href: "#"
11
+ }, "\u0391\u03BB\u03BB\u03B1\u03B3\u03AE", /*#__PURE__*/React.createElement(VisuallyHidden, null, "\u0394\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7\u03C2")))), /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u03A4\u03B7\u03BB\u03AD\u03C6\u03C9\u03BD\u03BF"), /*#__PURE__*/React.createElement(SummaryListItemAction, null, /*#__PURE__*/React.createElement(ButtonGroup, null, /*#__PURE__*/React.createElement(Button, {
12
+ variant: "link"
13
+ }, "\u0391\u03BB\u03BB\u03B1\u03B3\u03AE ", /*#__PURE__*/React.createElement(VisuallyHidden, null, "\u03C4\u03B7\u03BB\u03B5\u03C6\u03CE\u03BD\u03BF\u03C5")), /*#__PURE__*/React.createElement(Button, {
14
+ variant: "link"
15
+ }, "\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE ", /*#__PURE__*/React.createElement(VisuallyHidden, null, "\u03C4\u03B7\u03BB\u03B5\u03C6\u03CE\u03BD\u03BF\u03C5"))))));
16
+
17
+ export var WithKeyAndAction = function WithKeyAndAction() {
18
+ return /*#__PURE__*/React.createElement(React.Fragment, null, _ref);
19
+ };
20
+ export default WithKeyAndAction;
@@ -2,6 +2,7 @@ export * from '@digigov/react-core/SvgIcon';
2
2
  export * from '@digigov/react-core/ArrowIcon';
3
3
  export * from '@digigov/react-core/CaretIcon';
4
4
  export * from '@digigov/react-core/UncheckIcon';
5
+ export * from '@digigov/react-core/CheckIcon';
5
6
  export * from '@digigov/react-core/CloseIcon';
6
7
  export * from '@digigov/react-core/MoreVertIcon';
7
8
  export * from '@digigov/react-core/BurgerIcon';
@@ -0,0 +1,21 @@
1
+ {
2
+ "version": "4",
3
+ "stories": {
4
+ "digigov-ui-core-table--with-loader": {
5
+ "actionSets": [
6
+ {
7
+ "actions": [
8
+ {
9
+ "name": "click",
10
+ "args": {
11
+ "selector": "html>body>div:nth-child(5)>div>button"
12
+ }
13
+ }
14
+ ],
15
+ "id": "pJkd6uCc33pr",
16
+ "title": "Toggle Loading"
17
+ }
18
+ ]
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "version": "4",
3
+ "stories": {
4
+ "digigov-ui-core-tabs--default": {
5
+ "actionSets": [
6
+ {
7
+ "actions": [
8
+ {
9
+ "name": "hover",
10
+ "args": {
11
+ "selector": "html>body>div:nth-child(5)>div>ul>li:nth-child(2)>a"
12
+ }
13
+ },
14
+ {
15
+ "name": "click",
16
+ "args": {
17
+ "selector": "html>body>div:nth-child(5)>div>ul>li:nth-child(2)>a"
18
+ }
19
+ }
20
+ ],
21
+ "id": "_sXJM58BIiuJ",
22
+ "title": "Click second tab"
23
+ }
24
+ ]
25
+ }
26
+ }
27
+ }
@@ -0,0 +1,59 @@
1
+ {
2
+ "version": "4",
3
+ "stories": {
4
+ "digigov-ui-core-textarea--default": {
5
+ "actionSets": [
6
+ {
7
+ "actions": [
8
+ {
9
+ "name": "click",
10
+ "args": {
11
+ "selector": "html>body>div:nth-child(5)>div>label>textarea"
12
+ }
13
+ }
14
+ ],
15
+ "id": "JcIH-9OSjmEe",
16
+ "title": "click textarea"
17
+ }
18
+ ]
19
+ },
20
+ "digigov-ui-core-textarea--with-hint": {
21
+ "actionSets": [
22
+ {
23
+ "actions": [
24
+ {
25
+ "name": "keyboard.press",
26
+ "args": {
27
+ "key": "Tab"
28
+ }
29
+ },
30
+ {
31
+ "name": "keyboard.insertText",
32
+ "args": {
33
+ "text": "Πληροφορίες"
34
+ }
35
+ }
36
+ ],
37
+ "id": "Wr00uBfppm0B",
38
+ "title": "Navigate with keyboard"
39
+ }
40
+ ]
41
+ },
42
+ "digigov-ui-core-textarea--with-error-message": {
43
+ "actionSets": [
44
+ {
45
+ "actions": [
46
+ {
47
+ "name": "click",
48
+ "args": {
49
+ "selector": "html>body>div:nth-child(5)>div>label>textarea"
50
+ }
51
+ }
52
+ ],
53
+ "id": "6ooyo8-_c-LB",
54
+ "title": "Click textarea"
55
+ }
56
+ ]
57
+ }
58
+ }
59
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "version": "4",
3
+ "stories": {
4
+ "digigov-ui-core-textinput--default": {
5
+ "actionSets": [
6
+ {
7
+ "actions": [
8
+ {
9
+ "name": "click",
10
+ "args": {
11
+ "selector": "html>body>div:nth-child(5)>div>label>input"
12
+ }
13
+ },
14
+ {
15
+ "name": "keyboard.insertText",
16
+ "args": {
17
+ "text": "όνομα"
18
+ }
19
+ }
20
+ ],
21
+ "id": "cLpUm-R6HTXB",
22
+ "title": "Click and write"
23
+ }
24
+ ]
25
+ },
26
+ "digigov-ui-core-textinput--with-error-message": {
27
+ "actionSets": [
28
+ {
29
+ "actions": [
30
+ {
31
+ "name": "keyboard.press",
32
+ "args": {
33
+ "key": "Tab"
34
+ }
35
+ }
36
+ ],
37
+ "id": "rPCFq3lcF987",
38
+ "title": "Keyboard navigation"
39
+ }
40
+ ]
41
+ }
42
+ }
43
+ }
@@ -1,9 +1,8 @@
1
1
  import * as React from 'react';
2
- import mountWithTheme from '@digigov/ui/test-utils/mountWithTheme';
3
2
  import Component from '@digigov/ui/core/WarningText';
4
3
 
5
4
  var _ref = /*#__PURE__*/React.createElement(Component, null, "this is some random warning text");
6
5
 
7
6
  it('renders the WarningText with sample data', function () {
8
- expect(mountWithTheme(_ref)).toMatchSnapshot();
7
+ expect(_ref).toMatchSnapshot();
9
8
  });
package/es/core/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export { default as Button } from '@digigov/ui/core/Button';
2
2
  export * from '@digigov/ui/core/BackLink';
3
+ export * from '@digigov/ui/core/Base';
3
4
  export * from '@digigov/ui/core/Button';
4
5
  export * from '@digigov/ui/core/Accordion';
5
6
  export * from '@digigov/ui/core/Blockquote';
@@ -10,8 +11,11 @@ export * from '@digigov/ui/core/Details';
10
11
  export * from '@digigov/ui/core/Divider';
11
12
  export * from '@digigov/ui/core/ErrorSummary';
12
13
  export * from '@digigov/ui/core/FileUpload';
14
+ export * from '@digigov/ui/core/Form';
13
15
  export * from '@digigov/ui/core/Hidden';
16
+ export * from '@digigov/ui/core/Label';
14
17
  export * from '@digigov/ui/core/Link';
18
+ export * from '@digigov/ui/core/SkipLink';
15
19
  export * from '@digigov/ui/core/List';
16
20
  export * from '@digigov/ui/core/NavList';
17
21
  export * from '@digigov/ui/core/NavList';
@@ -12,7 +12,8 @@ export var Copyright = function Copyright(_ref) {
12
12
  var _ref$copyright = _ref.copyright,
13
13
  copyright = _ref$copyright === void 0 ? getCopyright() : _ref$copyright,
14
14
  createdBy = _ref.createdBy,
15
- minDigitalCopyright = _ref.minDigitalCopyright;
15
+ minDigitalCopyright = _ref.minDigitalCopyright,
16
+ children = _ref.children;
16
17
 
17
18
  var _useTranslation = useTranslation(),
18
19
  t = _useTranslation.t;
@@ -24,7 +25,7 @@ export var Copyright = function Copyright(_ref) {
24
25
  url: 'https://grnet.gr',
25
26
  label: t('footer.grnet')
26
27
  };
27
- return /*#__PURE__*/React.createElement(CoreCopyright, null, copyright, ' - ', createdBy || /*#__PURE__*/React.createElement(React.Fragment, null, t('footer.created_by'), ' ', /*#__PURE__*/React.createElement(Link, {
28
+ return /*#__PURE__*/React.createElement(CoreCopyright, null, children ? children : /*#__PURE__*/React.createElement(React.Fragment, null, copyright, ' - ', createdBy || /*#__PURE__*/React.createElement(React.Fragment, null, t('footer.created_by'), ' ', /*#__PURE__*/React.createElement(Link, {
28
29
  href: copyrightInfo.url,
29
30
  target: "_blank",
30
31
  rel: "noopener noreferrer"
@@ -32,6 +33,6 @@ export var Copyright = function Copyright(_ref) {
32
33
  href: "https://mathe.ellak.gr/",
33
34
  target: "_blank",
34
35
  rel: "noopener noreferrer"
35
- }, t('footer.open_source')))));
36
+ }, t('footer.open_source'))))));
36
37
  };
37
38
  export default Copyright;
@@ -48,7 +48,7 @@ import LicenseCCSA from '@digigov/ui/govgr/Footer/LicenseCCSA';
48
48
  #
49
49
 
50
50
  ```jsx
51
- import Grid from '@material-ui/core/Grid';
51
+ import Grid from '@digigov/ui/layouts/Grid';
52
52
  import Copyright from '@digigov/ui/govgr/Footer/Copyright';
53
53
  import LicenseCCSA from '@digigov/ui/govgr/Footer/LicenseCCSA';
54
54
  import HellenicRepublicLogo from '@digigov/ui/govgr/Footer/HellenicRepublicLogo';