@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,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare const WithLoader: () => JSX.Element;
3
2
  export default WithLoader;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare const ZebraProp: () => JSX.Element;
3
2
  export default ZebraProp;
@@ -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
+ }
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare function Default(): JSX.Element;
3
2
  export default Default;
@@ -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
+ }
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare const Default: () => JSX.Element;
3
2
  export default Default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare const DisabledInput: () => JSX.Element;
3
2
  export default DisabledInput;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare const LimitedCharacters: () => JSX.Element;
3
2
  export default LimitedCharacters;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare const MultipleQuestions: () => JSX.Element;
3
2
  export default MultipleQuestions;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare const WithDeclaredRows: () => JSX.Element;
3
2
  export default WithDeclaredRows;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare const WithErrorMessage: () => JSX.Element;
3
2
  export default WithErrorMessage;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare const WithHint: () => JSX.Element;
3
2
  export default WithHint;
@@ -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,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare const AskingForNumbers: () => JSX.Element;
3
2
  export default AskingForNumbers;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare const Default: () => JSX.Element;
3
2
  export default Default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare const DisabledInput: () => JSX.Element;
3
2
  export default DisabledInput;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare const FixedWidths: () => JSX.Element;
3
2
  export default FixedWidths;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare const FluidWidths: () => JSX.Element;
3
2
  export default FluidWidths;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare const MultipleQuestions: () => JSX.Element;
3
2
  export default MultipleQuestions;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare const WithErrorMessage: () => JSX.Element;
3
2
  export default WithErrorMessage;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare const WithHint: () => JSX.Element;
3
2
  export default WithHint;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare const Default: () => JSX.Element;
3
2
  export default Default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare const Default: () => JSX.Element;
3
2
  export default Default;
@@ -6,8 +6,6 @@ var _typeof = require("@babel/runtime/helpers/typeof");
6
6
 
7
7
  var React = _interopRequireWildcard(require("react"));
8
8
 
9
- var _mountWithTheme = _interopRequireDefault(require("@digigov/ui/test-utils/mountWithTheme"));
10
-
11
9
  var _WarningText = _interopRequireDefault(require("@digigov/ui/core/WarningText"));
12
10
 
13
11
  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); }
@@ -17,5 +15,5 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
17
15
  var _ref = /*#__PURE__*/React.createElement(_WarningText["default"], null, "this is some random warning text");
18
16
 
19
17
  it('renders the WarningText with sample data', function () {
20
- expect((0, _mountWithTheme["default"])(_ref)).toMatchSnapshot();
18
+ expect(_ref).toMatchSnapshot();
21
19
  });
package/core/index.d.ts 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';
package/core/index.js CHANGED
@@ -52,6 +52,20 @@ Object.keys(_BackLink).forEach(function (key) {
52
52
  });
53
53
  });
54
54
 
55
+ var _Base = require("@digigov/ui/core/Base");
56
+
57
+ Object.keys(_Base).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] === _Base[key]) return;
61
+ Object.defineProperty(exports, key, {
62
+ enumerable: true,
63
+ get: function get() {
64
+ return _Base[key];
65
+ }
66
+ });
67
+ });
68
+
55
69
  var _Accordion = require("@digigov/ui/core/Accordion");
56
70
 
57
71
  Object.keys(_Accordion).forEach(function (key) {
@@ -178,6 +192,20 @@ Object.keys(_FileUpload).forEach(function (key) {
178
192
  });
179
193
  });
180
194
 
195
+ var _Form = require("@digigov/ui/core/Form");
196
+
197
+ Object.keys(_Form).forEach(function (key) {
198
+ if (key === "default" || key === "__esModule") return;
199
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
200
+ if (key in exports && exports[key] === _Form[key]) return;
201
+ Object.defineProperty(exports, key, {
202
+ enumerable: true,
203
+ get: function get() {
204
+ return _Form[key];
205
+ }
206
+ });
207
+ });
208
+
181
209
  var _Hidden = require("@digigov/ui/core/Hidden");
182
210
 
183
211
  Object.keys(_Hidden).forEach(function (key) {
@@ -192,6 +220,20 @@ Object.keys(_Hidden).forEach(function (key) {
192
220
  });
193
221
  });
194
222
 
223
+ var _Label = require("@digigov/ui/core/Label");
224
+
225
+ Object.keys(_Label).forEach(function (key) {
226
+ if (key === "default" || key === "__esModule") return;
227
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
228
+ if (key in exports && exports[key] === _Label[key]) return;
229
+ Object.defineProperty(exports, key, {
230
+ enumerable: true,
231
+ get: function get() {
232
+ return _Label[key];
233
+ }
234
+ });
235
+ });
236
+
195
237
  var _Link = require("@digigov/ui/core/Link");
196
238
 
197
239
  Object.keys(_Link).forEach(function (key) {
@@ -206,6 +248,20 @@ Object.keys(_Link).forEach(function (key) {
206
248
  });
207
249
  });
208
250
 
251
+ var _SkipLink = require("@digigov/ui/core/SkipLink");
252
+
253
+ Object.keys(_SkipLink).forEach(function (key) {
254
+ if (key === "default" || key === "__esModule") return;
255
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
256
+ if (key in exports && exports[key] === _SkipLink[key]) return;
257
+ Object.defineProperty(exports, key, {
258
+ enumerable: true,
259
+ get: function get() {
260
+ return _SkipLink[key];
261
+ }
262
+ });
263
+ });
264
+
209
265
  var _List = require("@digigov/ui/core/List");
210
266
 
211
267
  Object.keys(_List).forEach(function (key) {
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import AutoComplete from '@digigov/ui/admin/AutoComplete';
3
3
  import Field from '@digigov/ui/core/Field';
4
- import suggest from '@digigov/ui/admin/AutoComplete/utils';
4
+ import suggest from '@digigov/ui/admin/AutoComplete/__stories__/utils';
5
5
 
6
6
  var _ref = /*#__PURE__*/React.createElement(Field, null, /*#__PURE__*/React.createElement(AutoComplete, {
7
7
  source: suggest,
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import AutoComplete from '@digigov/ui/admin/AutoComplete';
3
3
  import Field from '@digigov/ui/core/Field';
4
- import suggest from '@digigov/ui/admin/AutoComplete/utils';
4
+ import suggest from '@digigov/ui/admin/AutoComplete/__stories__/utils';
5
5
 
6
6
  var _ref = /*#__PURE__*/React.createElement("div", {
7
7
  className: "govgr-btn govgr-btn-primary"
@@ -11,7 +11,18 @@ export var WithAutoSelect = function WithAutoSelect() {
11
11
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Field, null, /*#__PURE__*/React.createElement(AutoComplete, {
12
12
  source: suggest,
13
13
  autoselect: true,
14
- id: "govgr",
14
+ id: "govgr" // tStatusResults={(x, y) => {
15
+ // return `Results x: ${x} y: ${y}`;
16
+ // }}
17
+ ,
18
+ templates: {
19
+ suggestion: function suggestion(value) {
20
+ return '--> ' + value;
21
+ },
22
+ inputValue: function inputValue(value) {
23
+ return value ? 'Country: ' + value : '';
24
+ }
25
+ },
15
26
  tNoResults: function tNoResults() {
16
27
  return 'Δεν υπάρχουν αποτελέσματα';
17
28
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import AutoComplete from '@digigov/ui/admin/AutoComplete';
3
3
  import Field from '@digigov/ui/core/Field';
4
- import suggest from '@digigov/ui/admin/AutoComplete/utils';
4
+ import suggest from '@digigov/ui/admin/AutoComplete/__stories__/utils';
5
5
 
6
6
  var _ref = /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Field, null, /*#__PURE__*/React.createElement(AutoComplete, {
7
7
  source: suggest,
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import AutoComplete from '@digigov/ui/admin/AutoComplete';
3
3
  import Field from '@digigov/ui/core/Field';
4
- import suggest from '@digigov/ui/admin/AutoComplete/utils';
4
+ import suggest from '@digigov/ui/admin/AutoComplete/__stories__/utils';
5
5
 
6
6
  var _ref = /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Field, null, /*#__PURE__*/React.createElement(AutoComplete, {
7
7
  source: suggest,
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import AutoComplete from '@digigov/ui/admin/AutoComplete';
3
3
  import Field from '@digigov/ui/core/Field';
4
4
  import Paragraph from '@digigov/ui/typography/Paragraph';
5
- import suggest from '@digigov/ui/admin/AutoComplete/utils';
5
+ import suggest from '@digigov/ui/admin/AutoComplete/__stories__/utils';
6
6
 
7
7
  var _ref = /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Paragraph, null, "This is the minimum number of characters that should be entered before the autocomplete will attempt to suggest options(in above example is 2)"), /*#__PURE__*/React.createElement(Field, null, /*#__PURE__*/React.createElement(AutoComplete, {
8
8
  source: suggest,
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import AutoComplete from '@digigov/ui/admin/AutoComplete';
3
3
  import Field from '@digigov/ui/core/Field';
4
- import suggest from '@digigov/ui/admin/AutoComplete/utils';
4
+ import suggest from '@digigov/ui/admin/AutoComplete/__stories__/utils';
5
5
 
6
6
  var _ref = /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Field, null, /*#__PURE__*/React.createElement(AutoComplete, {
7
7
  source: suggest,
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import AutoComplete from '@digigov/ui/admin/AutoComplete';
3
3
  import Field from '@digigov/ui/core/Field';
4
- import suggest from '@digigov/ui/admin/AutoComplete/utils';
4
+ import suggest from '@digigov/ui/admin/AutoComplete/__stories__/utils';
5
5
 
6
6
  var _ref = /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Field, null, /*#__PURE__*/React.createElement(AutoComplete, {
7
7
  source: suggest,
@@ -0,0 +1,6 @@
1
+ export var results = ['Afghanistan', 'Akrotiri', 'Albania', 'Algeria', 'American Samoa', 'Andorra', 'Angola', 'Anguilla', 'Antarctica', 'Antigua and Barbuda', 'Argentina', 'Armenia', 'Aruba', 'Ashmore and Cartier Islands', 'Australia', 'Austria', 'Azerbaijan', 'Bahamas, The', 'Bahrain', 'Bangladesh', 'Barbados', 'Bassas da India', 'Belarus', 'Belgium', 'Belize', 'Benin', 'Bermuda', 'Bhutan', 'Bolivia', 'Bosnia and Herzegovina', 'Botswana', 'Bouvet Island', 'Brazil', 'British Indian Ocean Territory', 'British Virgin Islands', 'Brunei', 'Bulgaria', 'Burkina Faso', 'Burma', 'Burundi', 'Cambodia', 'Cameroon', 'Canada', 'Cape Verde', 'Cayman Islands', 'Central African Republic', 'Chad', 'Chile', 'China', 'Christmas Island', 'Clipperton Island', 'Cocos (Keeling) Islands', 'Colombia', 'Comoros', 'Congo', 'Cook Islands', 'Coral Sea Islands', 'Costa Rica', "Cote d'Ivoire", 'Croatia', 'Cuba', 'Cyprus', 'Czech Republic', 'Denmark', 'Dhekelia', 'Djibouti', 'Dominica', 'Dominican Republic', 'Ecuador', 'Egypt', 'El Salvador', 'Equatorial Guinea', 'Eritrea', 'Estonia', 'Ethiopia', 'Europa Island', 'Falkland Islands', 'Faroe Islands', 'Fiji', 'Finland', 'France', 'French Guiana', 'French Polynesia', 'French Southern and Antarctic Lands', 'Gabon', 'Gambia,', 'Gaza Strip', 'Georgia', 'Germany', 'Ghana', 'Gibraltar', 'Glorioso Islands', 'Greece', 'Greenland', 'Grenada', 'Guadeloupe', 'Guam', 'Guatemala', 'Guernsey', 'Guinea', 'Guinea-Bissau', 'Guyana', 'Haiti', 'Heard Island and McDonald Islands', 'Holy See (Vatican City)', 'Honduras', 'Hong Kong', 'Hungary', 'Iceland', 'India', 'Indonesia', 'Iran', 'Iraq', 'Ireland', 'Isle of Man', 'Israel', 'Italy', 'Jamaica', 'Jan Mayen', 'Japan', 'Jersey', 'Jordan', 'Juan de Nova Island', 'Kazakhstan', 'Kenya', 'Kiribati', 'Korea, North', 'Korea, South', 'Kuwait', 'Kyrgyzstan', 'Laos', 'Latvia', 'Lebanon', 'Lesotho', 'Liberia', 'Libya', 'Liechtenstein', 'Lithuania', 'Luxembourg', 'Macau', 'Macedonia', 'Madagascar', 'Malawi', 'Malaysia', 'Maldives', 'Mali', 'Malta', 'Marshall Islands', 'Martinique', 'Mauritania', 'Mauritius', 'Mayotte', 'Mexico', 'Micronesia, Federated States of', 'Moldova', 'Monaco', 'Mongolia', 'Montserrat', 'Morocco', 'Mozambique', 'Namibia', 'Nauru', 'Navassa Island', 'Nepal', 'Netherlands', 'Netherlands Antilles', 'New Caledonia', 'New Zealand', 'Nicaragua', 'Niger', 'Nigeria', 'Niue', 'Norfolk Island', 'Northern Mariana Islands', 'Norway', 'Oman', 'Pakistan', 'Palau', 'Panama', 'Papua New Guinea', 'Paracel Islands', 'Paraguay', 'Peru', 'Philippines', 'Pitcairn Islands', 'Poland', 'Portugal', 'Puerto Rico', 'Qatar', 'Reunion', 'Romania', 'Russia', 'Rwanda', 'Saint Helena', 'Saint Kitts and Nevis', 'Saint Lucia', 'Saint Pierre and Miquelon', 'Saint Vincent and the Grenadines', 'Samoa', 'San Marino', 'Sao Tome and Principe', 'Saudi Arabia', 'Senegal', 'Serbia and Montenegro', 'Seychelles', 'Sierra Leone', 'Singapore', 'Slovakia', 'Slovenia', 'Solomon Islands', 'Somalia', 'South Africa', 'South Georgia and the South Sandwich Islands', 'Spain', 'Spratly Islands', 'Sri Lanka', 'Sudan', 'Suriname', 'Svalbard', 'Swaziland', 'Sweden', 'Switzerland', 'Syria', 'Taiwan', 'Tajikistan', 'Tanzania', 'Thailand', 'Timor-Leste', 'Togo', 'Tokelau', 'Tonga', 'Trinidad and Tobago', 'Tromelin Island', 'Tunisia', 'Turkey', 'Turkmenistan', 'Turks and Caicos Islands', 'Tuvalu', 'Uganda', 'Ukraine', 'United Arab Emirates', 'United Kingdom', 'United States', 'Uruguay', 'Uzbekistan', 'Vanuatu', 'Venezuela', 'Vietnam', 'Virgin Islands', 'Wake Island', 'Wallis and Futuna', 'West Bank', 'Western Sahara', 'Yemen', 'Zambia', 'Zimbabwe'];
2
+ export default function suggest(query, syncResults) {
3
+ syncResults(query ? results.filter(function (result) {
4
+ return result.toLowerCase().indexOf(query.toLowerCase()) !== -1;
5
+ }) : []);
6
+ }
@@ -21,31 +21,7 @@ import AutoCompleteAssistiveHint from '@digigov/react-extensions/admin/AutoCompl
21
21
  import { Component } from 'react';
22
22
  import Status from '@digigov/ui/admin/AutoComplete/Status';
23
23
  import DropdownArrowDown from '@digigov/react-extensions/admin/DropdownArrowDown';
24
- /* const IS_PREACT = process.env.COMPONENT_LIBRARY === 'PREACT'; */
25
-
26
- /* const IS_REACT = process.env.COMPONENT_LIBRARY === 'REACT'; */
27
-
28
- var keyCodes = {
29
- 13: 'enter',
30
- 27: 'escape',
31
- 32: 'space',
32
- 38: 'up',
33
- 40: 'down'
34
- };
35
-
36
- function isIosDevice() {
37
- return typeof navigator !== 'undefined' && !!(navigator.userAgent.match(/(iPod|iPhone|iPad)/g) && navigator.userAgent.match(/AppleWebKit/g));
38
- }
39
-
40
- function isPrintableKeyCode(keyCode) {
41
- return keyCode > 47 && keyCode < 58 || // number keys
42
- keyCode === 32 || keyCode === 8 || // spacebar or backspace
43
- keyCode > 64 && keyCode < 91 || // letter keys
44
- keyCode > 95 && keyCode < 112 || // numpad keys
45
- keyCode > 185 && keyCode < 193 || // ;=,-./` (in order)
46
- keyCode > 218 && keyCode < 223 // [\]' (in order)
47
- ;
48
- }
24
+ import { isIosDevice, keyCodes, isPrintableKeyCode } from '@digigov/ui/admin/AutoComplete/utils';
49
25
 
50
26
  var AutoComplete = /*#__PURE__*/function (_Component) {
51
27
  _inherits(AutoComplete, _Component);
@@ -139,7 +115,7 @@ var AutoComplete = /*#__PURE__*/function (_Component) {
139
115
  }
140
116
  }, {
141
117
  key: "componentDidUpdate",
142
- value: function componentDidUpdate(prevState) {
118
+ value: function componentDidUpdate(_, prevState) {
143
119
  var focused = this.state.focused;
144
120
  var componentLostFocus = focused === null;
145
121
  var focusedChanged = prevState.focused !== focused;
@@ -515,7 +491,7 @@ var AutoComplete = /*#__PURE__*/function (_Component) {
515
491
  tStatusSelectedOption = _this$props4.tStatusSelectedOption,
516
492
  tStatusResults = _this$props4.tStatusResults,
517
493
  tAssistiveHint = _this$props4.tAssistiveHint,
518
- dropdownArrowFactory = _this$props4.dropdownArrow;
494
+ DropdownArrow = _this$props4.dropdownArrow;
519
495
  var _this$state7 = this.state,
520
496
  focused = _this$state7.focused,
521
497
  hovered = _this$state7.hovered,
@@ -542,23 +518,6 @@ var AutoComplete = /*#__PURE__*/function (_Component) {
542
518
  var ariaDescribedProp = ariaHint ? {
543
519
  'aria-describedby': assistiveHintID
544
520
  } : null;
545
- var dropdownArrow; // we only need a dropdown arrow if showAllValues is set to a truthy value
546
-
547
- if (showAllValues) {
548
- dropdownArrow = dropdownArrowFactory({
549
- className: dropdownArrowClassName
550
- }); // if the factory returns a string we'll render this as HTML (usage w/o (P)React)
551
-
552
- if (typeof dropdownArrow === 'string') {
553
- dropdownArrow = /*#__PURE__*/React.createElement("div", {
554
- className: "autocomplete__dropdown-arrow-down-wrapper",
555
- dangerouslySetInnerHTML: {
556
- __html: dropdownArrow
557
- }
558
- });
559
- }
560
- }
561
-
562
521
  return /*#__PURE__*/React.createElement(AutoCompleteWrapper, {
563
522
  onKeyDown: this.handleKeyDown,
564
523
  cellWidth: cellWidth
@@ -601,7 +560,9 @@ var AutoComplete = /*#__PURE__*/function (_Component) {
601
560
  role: "combobox",
602
561
  required: required,
603
562
  value: query
604
- })), dropdownArrow, /*#__PURE__*/React.createElement(AutoCompleteResultList, {
563
+ })), showAllValues && DropdownArrow && /*#__PURE__*/React.createElement(DropdownArrow, {
564
+ className: dropdownArrowClassName
565
+ }), /*#__PURE__*/React.createElement(AutoCompleteResultList, {
605
566
  displayMenu: displayMenu,
606
567
  isVisible: menuIsVisible,
607
568
  onMouseLeave: function onMouseLeave() {
@@ -1,6 +1,19 @@
1
- export default function suggest(query, syncResults) {
2
- var results = ['Afghanistan', 'Akrotiri', 'Albania', 'Algeria', 'American Samoa', 'Andorra', 'Angola', 'Anguilla', 'Antarctica', 'Antigua and Barbuda', 'Argentina', 'Armenia', 'Aruba', 'Ashmore and Cartier Islands', 'Australia', 'Austria', 'Azerbaijan', 'Bahamas, The', 'Bahrain', 'Bangladesh', 'Barbados', 'Bassas da India', 'Belarus', 'Belgium', 'Belize', 'Benin', 'Bermuda', 'Bhutan', 'Bolivia', 'Bosnia and Herzegovina', 'Botswana', 'Bouvet Island', 'Brazil', 'British Indian Ocean Territory', 'British Virgin Islands', 'Brunei', 'Bulgaria', 'Burkina Faso', 'Burma', 'Burundi', 'Cambodia', 'Cameroon', 'Canada', 'Cape Verde', 'Cayman Islands', 'Central African Republic', 'Chad', 'Chile', 'China', 'Christmas Island', 'Clipperton Island', 'Cocos (Keeling) Islands', 'Colombia', 'Comoros', 'Congo', 'Cook Islands', 'Coral Sea Islands', 'Costa Rica', "Cote d'Ivoire", 'Croatia', 'Cuba', 'Cyprus', 'Czech Republic', 'Denmark', 'Dhekelia', 'Djibouti', 'Dominica', 'Dominican Republic', 'Ecuador', 'Egypt', 'El Salvador', 'Equatorial Guinea', 'Eritrea', 'Estonia', 'Ethiopia', 'Europa Island', 'Falkland Islands', 'Faroe Islands', 'Fiji', 'Finland', 'France', 'French Guiana', 'French Polynesia', 'French Southern and Antarctic Lands', 'Gabon', 'Gambia,', 'Gaza Strip', 'Georgia', 'Germany', 'Ghana', 'Gibraltar', 'Glorioso Islands', 'Greece', 'Greenland', 'Grenada', 'Guadeloupe', 'Guam', 'Guatemala', 'Guernsey', 'Guinea', 'Guinea-Bissau', 'Guyana', 'Haiti', 'Heard Island and McDonald Islands', 'Holy See (Vatican City)', 'Honduras', 'Hong Kong', 'Hungary', 'Iceland', 'India', 'Indonesia', 'Iran', 'Iraq', 'Ireland', 'Isle of Man', 'Israel', 'Italy', 'Jamaica', 'Jan Mayen', 'Japan', 'Jersey', 'Jordan', 'Juan de Nova Island', 'Kazakhstan', 'Kenya', 'Kiribati', 'Korea, North', 'Korea, South', 'Kuwait', 'Kyrgyzstan', 'Laos', 'Latvia', 'Lebanon', 'Lesotho', 'Liberia', 'Libya', 'Liechtenstein', 'Lithuania', 'Luxembourg', 'Macau', 'Macedonia', 'Madagascar', 'Malawi', 'Malaysia', 'Maldives', 'Mali', 'Malta', 'Marshall Islands', 'Martinique', 'Mauritania', 'Mauritius', 'Mayotte', 'Mexico', 'Micronesia, Federated States of', 'Moldova', 'Monaco', 'Mongolia', 'Montserrat', 'Morocco', 'Mozambique', 'Namibia', 'Nauru', 'Navassa Island', 'Nepal', 'Netherlands', 'Netherlands Antilles', 'New Caledonia', 'New Zealand', 'Nicaragua', 'Niger', 'Nigeria', 'Niue', 'Norfolk Island', 'Northern Mariana Islands', 'Norway', 'Oman', 'Pakistan', 'Palau', 'Panama', 'Papua New Guinea', 'Paracel Islands', 'Paraguay', 'Peru', 'Philippines', 'Pitcairn Islands', 'Poland', 'Portugal', 'Puerto Rico', 'Qatar', 'Reunion', 'Romania', 'Russia', 'Rwanda', 'Saint Helena', 'Saint Kitts and Nevis', 'Saint Lucia', 'Saint Pierre and Miquelon', 'Saint Vincent and the Grenadines', 'Samoa', 'San Marino', 'Sao Tome and Principe', 'Saudi Arabia', 'Senegal', 'Serbia and Montenegro', 'Seychelles', 'Sierra Leone', 'Singapore', 'Slovakia', 'Slovenia', 'Solomon Islands', 'Somalia', 'South Africa', 'South Georgia and the South Sandwich Islands', 'Spain', 'Spratly Islands', 'Sri Lanka', 'Sudan', 'Suriname', 'Svalbard', 'Swaziland', 'Sweden', 'Switzerland', 'Syria', 'Taiwan', 'Tajikistan', 'Tanzania', 'Thailand', 'Timor-Leste', 'Togo', 'Tokelau', 'Tonga', 'Trinidad and Tobago', 'Tromelin Island', 'Tunisia', 'Turkey', 'Turkmenistan', 'Turks and Caicos Islands', 'Tuvalu', 'Uganda', 'Ukraine', 'United Arab Emirates', 'United Kingdom', 'United States', 'Uruguay', 'Uzbekistan', 'Vanuatu', 'Venezuela', 'Vietnam', 'Virgin Islands', 'Wake Island', 'Wallis and Futuna', 'West Bank', 'Western Sahara', 'Yemen', 'Zambia', 'Zimbabwe'];
3
- syncResults(query ? results.filter(function (result) {
4
- return result.toLowerCase().indexOf(query.toLowerCase()) !== -1;
5
- }) : []);
1
+ export var keyCodes = {
2
+ 13: 'enter',
3
+ 27: 'escape',
4
+ 32: 'space',
5
+ 38: 'up',
6
+ 40: 'down'
7
+ };
8
+ export function isIosDevice() {
9
+ return typeof navigator !== 'undefined' && !!(navigator.userAgent.match(/(iPod|iPhone|iPad)/g) && navigator.userAgent.match(/AppleWebKit/g));
10
+ }
11
+ export function isPrintableKeyCode(keyCode) {
12
+ return keyCode > 47 && keyCode < 58 || // number keys
13
+ keyCode === 32 || keyCode === 8 || // spacebar or backspace
14
+ keyCode > 64 && keyCode < 91 || // letter keys
15
+ keyCode > 95 && keyCode < 112 || // numpad keys
16
+ keyCode > 185 && keyCode < 193 || // ;=,-./` (in order)
17
+ keyCode > 218 && keyCode < 223 // [\]' (in order)
18
+ ;
6
19
  }
@@ -1,5 +1,7 @@
1
1
  export * from '@digigov/react-extensions/admin/Chip';
2
2
  export * from '@digigov/react-extensions/admin/ChipHeading';
3
3
  export * from '@digigov/react-extensions/admin/ChipSection';
4
+ export * from '@digigov/react-extensions/admin/ChipSectionHorizontal';
5
+ export * from '@digigov/react-extensions/admin/ChipSectionWrapper';
4
6
  import Chip from '@digigov/react-extensions/admin/Chip';
5
7
  export default Chip;
@@ -0,0 +1,37 @@
1
+ {
2
+ "version": "4",
3
+ "stories": {
4
+ "digigov-ui-admin-copytoclipboard--default": {
5
+ "actionSets": [
6
+ {
7
+ "actions": [
8
+ {
9
+ "name": "click",
10
+ "args": {
11
+ "selector": "html>body>div:nth-child(5)>div>div>button"
12
+ }
13
+ }
14
+ ],
15
+ "id": "BSaIJR2CMZJU",
16
+ "title": "Click button"
17
+ }
18
+ ]
19
+ },
20
+ "digigov-ui-admin-copytoclipboard--banner": {
21
+ "actionSets": [
22
+ {
23
+ "actions": [
24
+ {
25
+ "name": "click",
26
+ "args": {
27
+ "selector": "html>body>div:nth-child(5)>div>div>button"
28
+ }
29
+ }
30
+ ],
31
+ "id": "T50MBtHpfRog",
32
+ "title": "Click button"
33
+ }
34
+ ]
35
+ }
36
+ }
37
+ }
@@ -43,4 +43,5 @@ export var CopyToClipboard = /*#__PURE__*/React.forwardRef(function CopyToClipbo
43
43
  role: "tooltip"
44
44
  }, /*#__PURE__*/React.createElement(NormalText, null, message || t('copy-to-clipboard.message'))));
45
45
  });
46
- export default CopyToClipboard;
46
+ export default CopyToClipboard;
47
+ export { CopyToClipboardContainer, CopyToClipboardMessage };