@digigov/ui 0.24.1 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (394) hide show
  1. package/CHANGELOG.md +36 -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/__stories__/Banner.d.ts +0 -1
  26. package/admin/CopyToClipboard/__stories__/Default.d.ts +0 -1
  27. package/admin/CopyToClipboard/__stories__/MultipleCopies.d.ts +0 -1
  28. package/admin/CopyToClipboard/index.d.ts +4 -1
  29. package/admin/CopyToClipboard/index.js +14 -1
  30. package/admin/Drawer/Drawer.stories.d.ts +1 -4
  31. package/admin/Drawer/Drawer.stories.js +3 -22
  32. package/admin/Drawer/__stories__/Default.d.ts +0 -1
  33. package/admin/Drawer/__stories__/Default.js +13 -13
  34. package/admin/Drawer/index.d.ts +1 -0
  35. package/admin/Drawer/index.js +14 -0
  36. package/admin/Dropdown/__stories__/AlignRight.d.ts +0 -1
  37. package/admin/Dropdown/__stories__/Default.d.ts +0 -1
  38. package/admin/Dropdown/__stories__/PlacementTop.d.ts +0 -1
  39. package/admin/Dropdown/index.js +19 -12
  40. package/admin/DropdownArrowDown/index.d.ts +3 -0
  41. package/admin/DropdownArrowDown/index.js +19 -0
  42. package/admin/Modal/__stories__/AlertDialog.d.ts +0 -1
  43. package/admin/Modal/__stories__/Default.d.ts +0 -1
  44. package/admin/Pagination/__stories__/Default.d.ts +0 -1
  45. package/admin/Pagination/index.d.ts +1 -1
  46. package/admin/StepNav/StepNav.stories.d.ts +7 -0
  47. package/admin/StepNav/StepNav.stories.js +32 -0
  48. package/admin/StepNav/__stories__/Default.d.ts +2 -0
  49. package/admin/StepNav/__stories__/Default.js +123 -0
  50. package/admin/StepNav/index.d.ts +15 -0
  51. package/admin/StepNav/index.js +115 -0
  52. package/admin/TaskList/__stories__/Default.d.ts +0 -1
  53. package/admin/Timeline/__stories__/Default.d.ts +0 -1
  54. package/admin/index.d.ts +2 -0
  55. package/admin/index.js +26 -0
  56. package/app/Confirmation/__stories__/Default.d.ts +0 -1
  57. package/app/Footer/Footer.stories.d.ts +1 -0
  58. package/app/Footer/Footer.stories.js +14 -0
  59. package/app/Footer/__stories__/Default.d.ts +0 -1
  60. package/app/Footer/__stories__/DefaultCopyright.d.ts +2 -0
  61. package/app/Footer/__stories__/DefaultCopyright.js +32 -0
  62. package/app/Footer/__stories__/FooterAllInclusive.d.ts +0 -1
  63. package/app/Footer/__stories__/FooterAllInclusive.js +5 -2
  64. package/app/Footer/__stories__/FooterWithLink.d.ts +0 -1
  65. package/app/Footer/__stories__/FooterWithLink.js +1 -1
  66. package/app/Footer/__stories__/FooterWithLogo.d.ts +0 -1
  67. package/app/Footer/__stories__/FooterWithSecondaryNavigation.d.ts +0 -1
  68. package/app/Header/Header.stories.d.ts +12 -12
  69. package/app/Header/HeaderLogo.d.ts +1 -1
  70. package/app/Header/HeaderSection.d.ts +1 -1
  71. package/app/Header/HeaderTitle.d.ts +1 -1
  72. package/app/Header/__stories__/Default.d.ts +0 -1
  73. package/app/Header/__stories__/WithNavigation.d.ts +0 -1
  74. package/app/Header/__stories__/WithServiceName.d.ts +0 -1
  75. package/app/Header/__stories__/WithServiceNameAndLogo.d.ts +0 -1
  76. package/app/Header/index.d.ts +1 -1
  77. package/app/NotFound/__stories__/Default.d.ts +0 -1
  78. package/app/OutdatedBrowserBanner.d.ts +0 -1
  79. package/app/PhaseBannerHeader/__stories__/Default.d.ts +0 -1
  80. package/app/PhaseBannerHeader/index.d.ts +1 -1
  81. package/app/QrCodeScanner/__stories__/Default.d.ts +0 -1
  82. package/app/i18n.d.ts +2 -2
  83. package/app/i18n.js +16 -2
  84. package/core/Accordion/__stories__/Default.d.ts +0 -1
  85. package/core/Accordion/__stories__/WithHints.d.ts +0 -1
  86. package/core/Accordion/index.d.ts +3 -3
  87. package/core/BackLink/__stories__/Default.d.ts +0 -1
  88. package/core/Base/index.d.ts +3 -0
  89. package/core/Base/index.js +19 -0
  90. package/core/Blockquote/__stories__/Default.d.ts +0 -1
  91. package/core/Blockquote/index.d.ts +1 -1
  92. package/core/Breadcrumbs/__stories__/Default.d.ts +0 -1
  93. package/core/Button/BackButton.d.ts +1 -1
  94. package/core/Button/Button.stories.d.ts +15 -15
  95. package/core/Button/ButtonLink.d.ts +1 -1
  96. package/core/Button/__stories__/Back.d.ts +0 -1
  97. package/core/Button/__stories__/ButtonLinkButton.d.ts +0 -1
  98. package/core/Button/__stories__/CallToActionButton.d.ts +0 -1
  99. package/core/Button/__stories__/Disabled.d.ts +0 -1
  100. package/core/Button/__stories__/GroupingButtons.d.ts +0 -1
  101. package/core/Button/__stories__/GroupingButtons.js +1 -1
  102. package/core/Button/__stories__/GroupingButtonsAndLinks.d.ts +0 -1
  103. package/core/Button/__stories__/Primary.d.ts +0 -1
  104. package/core/Button/__stories__/Secondary.d.ts +0 -1
  105. package/core/Button/__stories__/Warning.d.ts +0 -1
  106. package/core/Button/__stories__/WithVariantLink.d.ts +0 -1
  107. package/core/Button/index.d.ts +1 -1
  108. package/core/Card/__stories__/Default.d.ts +0 -1
  109. package/core/Card/__stories__/WithClickableContent.d.ts +0 -1
  110. package/core/Card/__stories__/WithClickableLink.d.ts +0 -1
  111. package/core/Card/__stories__/WithDarkBorder.d.ts +0 -1
  112. package/core/Card/__stories__/WithDarkTopBorder.d.ts +0 -1
  113. package/core/Card/__stories__/WithDivider.d.ts +0 -1
  114. package/core/Card/__stories__/WithGrayBorder.d.ts +0 -1
  115. package/core/Card/__stories__/WithGrayTopBorder.d.ts +0 -1
  116. package/core/Card/__stories__/WithGroupButton.d.ts +0 -1
  117. package/core/Checkboxes/__stories__/ConditionalReveal.d.ts +0 -1
  118. package/core/Checkboxes/__stories__/Default.d.ts +0 -1
  119. package/core/Checkboxes/__stories__/MultipleQuestions.d.ts +0 -1
  120. package/core/Checkboxes/__stories__/NoneAnswer.d.ts +0 -1
  121. package/core/Checkboxes/__stories__/NoneAnswerWithError.d.ts +2 -3
  122. package/core/Checkboxes/__stories__/NoneAnswerWithError.js +4 -4
  123. package/core/Checkboxes/__stories__/WithErrorMessage.d.ts +0 -1
  124. package/core/Checkboxes/__stories__/WithHint.d.ts +0 -1
  125. package/core/Confirmation/__stories__/Default.d.ts +0 -1
  126. package/core/DateInput/__stories__/Default.d.ts +0 -1
  127. package/core/DateInput/__stories__/MultipleQuestions.d.ts +0 -1
  128. package/core/DateInput/__stories__/WithErrorMessage.d.ts +0 -1
  129. package/core/DateInput/__stories__/WithErrorMessageForSingleField.d.ts +0 -1
  130. package/core/Details/__stories__/Default.d.ts +0 -1
  131. package/core/Divider/__stories__/Default.d.ts +0 -1
  132. package/core/Divider/index.d.ts +1 -1
  133. package/core/ErrorMessage/__stories__/Default.d.ts +0 -1
  134. package/core/ErrorSummary/__stories__/Default.d.ts +0 -1
  135. package/core/ErrorSummary/__stories__/LinkedToCheckbox.d.ts +0 -1
  136. package/core/ErrorSummary/__stories__/LinkedToField.d.ts +0 -1
  137. package/core/ErrorSummary/__stories__/LinkedToInput.d.ts +0 -1
  138. package/core/FileUpload/__stories__/Default.d.ts +0 -1
  139. package/core/FileUpload/__stories__/WithErrorMessage.d.ts +2 -3
  140. package/core/FileUpload/__stories__/WithErrorMessage.js +4 -4
  141. package/core/Form/index.d.ts +3 -0
  142. package/core/Form/index.js +19 -0
  143. package/core/Label/index.d.ts +4 -0
  144. package/core/Label/index.js +44 -0
  145. package/core/Link/__stories__/DarkBackground.d.ts +0 -1
  146. package/core/Link/__stories__/DarkBackgroundNoUnderline.d.ts +0 -1
  147. package/core/Link/__stories__/Default.d.ts +0 -1
  148. package/core/Link/__stories__/NoUnderline.d.ts +0 -1
  149. package/core/Link/__stories__/OpensInNewTab.d.ts +0 -1
  150. package/core/Link/index.d.ts +1 -0
  151. package/core/Link/index.js +2 -1
  152. package/core/List/__stories__/BulletList.d.ts +0 -1
  153. package/core/List/__stories__/Default.d.ts +0 -1
  154. package/core/List/__stories__/NumberedList.d.ts +0 -1
  155. package/core/List/__stories__/WithExtraSpace.d.ts +0 -1
  156. package/core/Masthead/__stories__/Default.d.ts +0 -1
  157. package/core/NavList/NavHorizontal.d.ts +3 -0
  158. package/core/NavList/NavHorizontal.js +19 -0
  159. package/core/NavList/NavHorizontalList.d.ts +3 -0
  160. package/core/NavList/NavHorizontalList.js +19 -0
  161. package/core/NavList/NavHorizontalListItem.d.ts +3 -0
  162. package/core/NavList/NavHorizontalListItem.js +19 -0
  163. package/core/NavList/NavListItem.d.ts +1 -1
  164. package/core/NavList/NavListItemBase.d.ts +1 -1
  165. package/core/NavList/NavVertical.d.ts +3 -0
  166. package/core/NavList/NavVertical.js +19 -0
  167. package/core/NavList/NavVerticalItem.d.ts +3 -0
  168. package/core/NavList/NavVerticalItem.js +19 -0
  169. package/core/NavList/__stories__/Default.d.ts +0 -1
  170. package/core/NavList/__stories__/NavHorizontalLayout.d.ts +0 -1
  171. package/core/NavList/index.d.ts +5 -0
  172. package/core/NavList/index.js +70 -0
  173. package/core/NotificationBanner/__stories__/Default.d.ts +0 -1
  174. package/core/NotificationBanner/__stories__/Success.d.ts +0 -1
  175. package/core/PhaseBanner/__stories__/Default.d.ts +0 -1
  176. package/core/PhaseBanner/__stories__/Underlined.d.ts +0 -1
  177. package/core/Radios/__stories__/ConditionalReveal.d.ts +0 -1
  178. package/core/Radios/__stories__/Default.d.ts +0 -1
  179. package/core/Radios/__stories__/Inline.d.ts +0 -1
  180. package/core/Radios/__stories__/MultipleQuestions.d.ts +0 -1
  181. package/core/Radios/__stories__/NoneAnswer.d.ts +0 -1
  182. package/core/Radios/__stories__/WithErrorMessage.d.ts +0 -1
  183. package/core/Radios/__stories__/WithHints.d.ts +0 -1
  184. package/core/Select/__stories__/Default.d.ts +0 -1
  185. package/core/Select/__stories__/DisabledInput.d.ts +0 -1
  186. package/core/Select/__stories__/WithHint.d.ts +0 -1
  187. package/core/SkipLink/index.d.ts +3 -0
  188. package/core/SkipLink/index.js +19 -0
  189. package/core/SummaryList/SummaryList.stories.d.ts +1 -0
  190. package/core/SummaryList/SummaryList.stories.js +14 -0
  191. package/core/SummaryList/__stories__/Default.d.ts +0 -1
  192. package/core/SummaryList/__stories__/Default.js +7 -1
  193. package/core/SummaryList/__stories__/WithActions.d.ts +0 -1
  194. package/core/SummaryList/__stories__/WithKeyAndAction.d.ts +2 -0
  195. package/core/SummaryList/__stories__/WithKeyAndAction.js +42 -0
  196. package/core/SummaryList/__stories__/WithoutBorders.d.ts +0 -1
  197. package/core/SvgIcon/index.d.ts +1 -0
  198. package/core/SvgIcon/index.js +14 -0
  199. package/core/Table/TableFloatingScroll.d.ts +0 -1
  200. package/core/Table/__stories__/DarkVariant.d.ts +0 -1
  201. package/core/Table/__stories__/DarkVariantWithVerticalHeaders.d.ts +0 -1
  202. package/core/Table/__stories__/Default.d.ts +0 -1
  203. package/core/Table/__stories__/DefinedWidth.d.ts +0 -1
  204. package/core/Table/__stories__/Densed.d.ts +0 -1
  205. package/core/Table/__stories__/MultipleProps.d.ts +0 -1
  206. package/core/Table/__stories__/NoData.d.ts +0 -1
  207. package/core/Table/__stories__/NumericDataType.d.ts +0 -1
  208. package/core/Table/__stories__/TableCaptions.d.ts +0 -1
  209. package/core/Table/__stories__/VerticalBorders.d.ts +0 -1
  210. package/core/Table/__stories__/VerticalHeaders.d.ts +0 -1
  211. package/core/Table/__stories__/WithFloatingScroll.d.ts +0 -1
  212. package/core/Table/__stories__/WithHeader.d.ts +0 -1
  213. package/core/Table/__stories__/WithLoader.d.ts +0 -1
  214. package/core/Table/__stories__/ZebraProp.d.ts +0 -1
  215. package/core/Tabs/__stories__/Default.d.ts +0 -1
  216. package/core/TextArea/__stories__/Default.d.ts +0 -1
  217. package/core/TextArea/__stories__/DisabledInput.d.ts +0 -1
  218. package/core/TextArea/__stories__/LimitedCharacters.d.ts +0 -1
  219. package/core/TextArea/__stories__/MultipleQuestions.d.ts +0 -1
  220. package/core/TextArea/__stories__/WithDeclaredRows.d.ts +0 -1
  221. package/core/TextArea/__stories__/WithErrorMessage.d.ts +0 -1
  222. package/core/TextArea/__stories__/WithHint.d.ts +0 -1
  223. package/core/TextInput/__stories__/AskingForNumbers.d.ts +0 -1
  224. package/core/TextInput/__stories__/Default.d.ts +0 -1
  225. package/core/TextInput/__stories__/DisabledInput.d.ts +0 -1
  226. package/core/TextInput/__stories__/FixedWidths.d.ts +0 -1
  227. package/core/TextInput/__stories__/FluidWidths.d.ts +0 -1
  228. package/core/TextInput/__stories__/MultipleQuestions.d.ts +0 -1
  229. package/core/TextInput/__stories__/WithErrorMessage.d.ts +0 -1
  230. package/core/TextInput/__stories__/WithHint.d.ts +0 -1
  231. package/core/VisuallyHidden/__stories__/Default.d.ts +0 -1
  232. package/core/WarningText/__stories__/Default.d.ts +0 -1
  233. package/core/index.d.ts +4 -0
  234. package/core/index.js +56 -0
  235. package/es/admin/AutoComplete/__stories__/Default.js +1 -1
  236. package/es/admin/AutoComplete/__stories__/WithAutoSelect.js +13 -2
  237. package/es/admin/AutoComplete/__stories__/WithDefaultValue.js +1 -1
  238. package/es/admin/AutoComplete/__stories__/WithInLine.js +1 -1
  239. package/es/admin/AutoComplete/__stories__/WithMinLength.js +1 -1
  240. package/es/admin/AutoComplete/__stories__/WithPlaceHolder.js +1 -1
  241. package/es/admin/AutoComplete/__stories__/WithShowAllValues.js +1 -1
  242. package/es/admin/AutoComplete/__stories__/utils.js +6 -0
  243. package/es/admin/AutoComplete/index.js +6 -45
  244. package/es/admin/AutoComplete/utils.js +18 -5
  245. package/es/admin/Chip/index.js +2 -0
  246. package/es/admin/CopyToClipboard/index.js +2 -1
  247. package/es/admin/Drawer/Drawer.stories.js +2 -5
  248. package/es/admin/Drawer/__stories__/Default.js +13 -13
  249. package/es/admin/Drawer/index.js +1 -0
  250. package/es/admin/Dropdown/index.js +19 -12
  251. package/es/admin/DropdownArrowDown/index.js +3 -0
  252. package/es/admin/StepNav/StepNav.stories.js +7 -0
  253. package/es/admin/StepNav/__stories__/Default.js +97 -0
  254. package/es/admin/StepNav/index.js +15 -0
  255. package/es/admin/index.js +3 -1
  256. package/es/app/Footer/Footer.stories.js +1 -0
  257. package/es/app/Footer/__stories__/DefaultCopyright.js +16 -0
  258. package/es/app/Footer/__stories__/FooterAllInclusive.js +5 -2
  259. package/es/app/Footer/__stories__/FooterWithLink.js +1 -1
  260. package/es/app/i18n.js +16 -2
  261. package/es/core/Base/index.js +3 -0
  262. package/es/core/Button/__stories__/GroupingButtons.js +1 -1
  263. package/es/core/Checkboxes/__stories__/NoneAnswerWithError.js +2 -2
  264. package/es/core/FileUpload/__stories__/WithErrorMessage.js +2 -2
  265. package/es/core/Form/index.js +3 -0
  266. package/es/core/Label/index.js +4 -0
  267. package/es/core/Link/index.js +2 -1
  268. package/es/core/NavList/NavHorizontal.js +3 -0
  269. package/es/core/NavList/NavHorizontalList.js +3 -0
  270. package/es/core/NavList/NavHorizontalListItem.js +3 -0
  271. package/es/core/NavList/NavVertical.js +3 -0
  272. package/es/core/NavList/NavVerticalItem.js +3 -0
  273. package/es/core/NavList/index.js +6 -1
  274. package/es/core/SkipLink/index.js +3 -0
  275. package/es/core/SummaryList/SummaryList.stories.js +2 -1
  276. package/es/core/SummaryList/__stories__/Default.js +5 -1
  277. package/es/core/SummaryList/__stories__/WithKeyAndAction.js +20 -0
  278. package/es/core/SvgIcon/index.js +1 -0
  279. package/es/core/index.js +4 -0
  280. package/es/govgr/Footer/Copyright.js +4 -3
  281. package/es/layouts/Basic/Content/index.js +3 -1
  282. package/es/layouts/Basic/Side/index.js +2 -1
  283. package/es/layouts/Basic/__stories__/Default.js +2 -2
  284. package/es/layouts/Basic/index.js +2 -1
  285. package/es/locales/el.js +6 -0
  286. package/es/locales/en.js +5 -0
  287. package/es/registry.js +116 -90
  288. package/es/typography/Caption/index.js +2 -1
  289. package/es/typography/NormalText/__stories__/FontWeight.js +5 -5
  290. package/es/typography/Paragraph/__stories__/FontWeight.js +4 -4
  291. package/es/typography/Title/index.js +2 -1
  292. package/esm/admin/AutoComplete/__stories__/Default.js +1 -1
  293. package/esm/admin/AutoComplete/__stories__/WithAutoSelect.js +13 -2
  294. package/esm/admin/AutoComplete/__stories__/WithDefaultValue.js +1 -1
  295. package/esm/admin/AutoComplete/__stories__/WithInLine.js +1 -1
  296. package/esm/admin/AutoComplete/__stories__/WithMinLength.js +1 -1
  297. package/esm/admin/AutoComplete/__stories__/WithPlaceHolder.js +1 -1
  298. package/esm/admin/AutoComplete/__stories__/WithShowAllValues.js +1 -1
  299. package/esm/admin/AutoComplete/__stories__/utils.js +6 -0
  300. package/esm/admin/AutoComplete/index.js +6 -45
  301. package/esm/admin/AutoComplete/utils.js +18 -5
  302. package/esm/admin/Chip/index.js +2 -0
  303. package/esm/admin/CopyToClipboard/index.js +2 -1
  304. package/esm/admin/Drawer/Drawer.stories.js +2 -5
  305. package/esm/admin/Drawer/__stories__/Default.js +13 -13
  306. package/esm/admin/Drawer/index.js +1 -0
  307. package/esm/admin/Dropdown/index.js +19 -12
  308. package/esm/admin/DropdownArrowDown/index.js +3 -0
  309. package/esm/admin/StepNav/StepNav.stories.js +7 -0
  310. package/esm/admin/StepNav/__stories__/Default.js +97 -0
  311. package/esm/admin/StepNav/index.js +15 -0
  312. package/esm/admin/index.js +3 -1
  313. package/esm/app/Footer/Footer.stories.js +1 -0
  314. package/esm/app/Footer/__stories__/DefaultCopyright.js +16 -0
  315. package/esm/app/Footer/__stories__/FooterAllInclusive.js +5 -2
  316. package/esm/app/Footer/__stories__/FooterWithLink.js +1 -1
  317. package/esm/app/i18n.js +16 -2
  318. package/esm/core/Base/index.js +3 -0
  319. package/esm/core/Button/__stories__/GroupingButtons.js +1 -1
  320. package/esm/core/Checkboxes/__stories__/NoneAnswerWithError.js +2 -2
  321. package/esm/core/FileUpload/__stories__/WithErrorMessage.js +2 -2
  322. package/esm/core/Form/index.js +3 -0
  323. package/esm/core/Label/index.js +4 -0
  324. package/esm/core/Link/index.js +2 -1
  325. package/esm/core/NavList/NavHorizontal.js +3 -0
  326. package/esm/core/NavList/NavHorizontalList.js +3 -0
  327. package/esm/core/NavList/NavHorizontalListItem.js +3 -0
  328. package/esm/core/NavList/NavVertical.js +3 -0
  329. package/esm/core/NavList/NavVerticalItem.js +3 -0
  330. package/esm/core/NavList/index.js +6 -1
  331. package/esm/core/SkipLink/index.js +3 -0
  332. package/esm/core/SummaryList/SummaryList.stories.js +2 -1
  333. package/esm/core/SummaryList/__stories__/Default.js +5 -1
  334. package/esm/core/SummaryList/__stories__/WithKeyAndAction.js +20 -0
  335. package/esm/core/SvgIcon/index.js +1 -0
  336. package/esm/core/index.js +4 -0
  337. package/esm/govgr/Footer/Copyright.js +4 -3
  338. package/esm/index.js +1 -1
  339. package/esm/layouts/Basic/Content/index.js +3 -1
  340. package/esm/layouts/Basic/Side/index.js +2 -1
  341. package/esm/layouts/Basic/__stories__/Default.js +2 -2
  342. package/esm/layouts/Basic/index.js +2 -1
  343. package/esm/locales/el.js +6 -0
  344. package/esm/locales/en.js +5 -0
  345. package/esm/registry.js +116 -90
  346. package/esm/typography/Caption/index.js +2 -1
  347. package/esm/typography/NormalText/__stories__/FontWeight.js +5 -5
  348. package/esm/typography/Paragraph/__stories__/FontWeight.js +4 -4
  349. package/esm/typography/Title/index.js +2 -1
  350. package/govgr/Footer/Copyright.js +4 -3
  351. package/layouts/Basic/Content/index.d.ts +3 -1
  352. package/layouts/Basic/Content/index.js +6 -0
  353. package/layouts/Basic/Side/index.d.ts +3 -1
  354. package/layouts/Basic/Side/index.js +6 -0
  355. package/layouts/Basic/Top/index.d.ts +1 -1
  356. package/layouts/Basic/__stories__/Default.d.ts +2 -3
  357. package/layouts/Basic/__stories__/Default.js +4 -4
  358. package/layouts/Basic/__stories__/MultipleRowsLayout.d.ts +0 -1
  359. package/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.d.ts +0 -1
  360. package/layouts/Basic/index.d.ts +1 -0
  361. package/layouts/Basic/index.js +9 -1
  362. package/layouts/Grid/__stories__/Default.d.ts +0 -1
  363. package/layouts/Grid/__stories__/Inline.d.ts +0 -1
  364. package/locales/el.d.ts +6 -0
  365. package/locales/el.js +6 -0
  366. package/locales/en.d.ts +5 -0
  367. package/locales/en.js +5 -0
  368. package/package.json +4 -4
  369. package/registry.d.ts +57 -45
  370. package/registry.js +167 -129
  371. package/typography/Caption/__stories__/Default.d.ts +0 -1
  372. package/typography/Caption/__stories__/NestedToTitle.d.ts +0 -1
  373. package/typography/Caption/index.d.ts +3 -2
  374. package/typography/Caption/index.js +8 -1
  375. package/typography/Hint/__stories__/Default.d.ts +0 -1
  376. package/typography/Hint/__stories__/FontSizes.d.ts +0 -1
  377. package/typography/NormalText/__stories__/Default.d.ts +0 -1
  378. package/typography/NormalText/__stories__/FontSizes.d.ts +0 -1
  379. package/typography/NormalText/__stories__/FontWeight.d.ts +2 -3
  380. package/typography/NormalText/__stories__/FontWeight.js +4 -4
  381. package/typography/NormalText/__stories__/Variants.d.ts +0 -1
  382. package/typography/Paragraph/__stories__/Default.d.ts +0 -1
  383. package/typography/Paragraph/__stories__/FontSizes.d.ts +0 -1
  384. package/typography/Paragraph/__stories__/FontWeight.d.ts +2 -3
  385. package/typography/Paragraph/__stories__/FontWeight.js +4 -4
  386. package/typography/Paragraph/__stories__/LeadVariant.d.ts +0 -1
  387. package/typography/Paragraph/__stories__/SmallVariant.d.ts +0 -1
  388. package/typography/Title/__stories__/Default.d.ts +0 -1
  389. package/typography/Title/index.d.ts +2 -1
  390. package/typography/Title/index.js +6 -0
  391. package/admin/AutoComplete/AccesibleAutoComplete/index.d.ts +0 -5
  392. package/admin/AutoComplete/AccesibleAutoComplete/index.js +0 -106
  393. package/es/admin/AutoComplete/AccesibleAutoComplete/index.js +0 -87
  394. package/esm/admin/AutoComplete/AccesibleAutoComplete/index.js +0 -87
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.fontWeight = exports["default"] = void 0;
8
+ exports["default"] = exports.FontWeight = void 0;
9
9
 
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
 
@@ -23,10 +23,10 @@ var _ref3 = /*#__PURE__*/_react["default"].createElement(_NormalText["default"],
23
23
  fontWeight: "bold"
24
24
  }, " govgr-!-font-weight-bold ");
25
25
 
26
- var fontWeight = function fontWeight() {
26
+ var FontWeight = function FontWeight() {
27
27
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _ref, _ref2, _ref3);
28
28
  };
29
29
 
30
- exports.fontWeight = fontWeight;
31
- var _default = fontWeight;
30
+ exports.FontWeight = FontWeight;
31
+ var _default = FontWeight;
32
32
  exports["default"] = _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare const Variants: () => JSX.Element;
3
2
  export default Variants;
@@ -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 FontSizes: () => JSX.Element;
3
2
  export default FontSizes;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
- export declare const fontWeight: () => JSX.Element;
3
- export default fontWeight;
1
+ export declare const FontWeight: () => JSX.Element;
2
+ export default FontWeight;
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.fontWeight = exports["default"] = void 0;
8
+ exports["default"] = exports.FontWeight = void 0;
9
9
 
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
 
@@ -19,10 +19,10 @@ var _ref2 = /*#__PURE__*/_react["default"].createElement(_Paragraph["default"],
19
19
  fontWeight: "bold"
20
20
  }, " govgr-!-font-weight-bold ");
21
21
 
22
- var fontWeight = function fontWeight() {
22
+ var FontWeight = function FontWeight() {
23
23
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _ref, _ref2);
24
24
  };
25
25
 
26
- exports.fontWeight = fontWeight;
27
- var _default = fontWeight;
26
+ exports.FontWeight = FontWeight;
27
+ var _default = FontWeight;
28
28
  exports["default"] = _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare const LeadVariant: () => JSX.Element;
3
2
  export default LeadVariant;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare const SmallVariant: () => JSX.Element;
3
2
  export default SmallVariant;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare const Default: () => JSX.Element;
3
2
  export default Default;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { HeadingProps } from '@digigov/react-core/Heading';
2
+ import Heading, { HeadingProps } from '@digigov/react-core/Heading';
3
3
  export interface TitleProps extends Omit<HeadingProps, 'size'> {
4
4
  size?: 'xl' | 'lg' | 'md' | 'sm';
5
5
  component?: 'h1' | 'h2' | 'h3' | 'h4';
@@ -7,3 +7,4 @@ export interface TitleProps extends Omit<HeadingProps, 'size'> {
7
7
  }
8
8
  export declare const Title: React.FC<TitleProps>;
9
9
  export default Title;
10
+ export { Heading };
@@ -5,6 +5,12 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
+ Object.defineProperty(exports, "Heading", {
9
+ enumerable: true,
10
+ get: function get() {
11
+ return _Heading["default"];
12
+ }
13
+ });
8
14
  exports["default"] = exports.Title = void 0;
9
15
 
10
16
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
@@ -1,5 +0,0 @@
1
- declare function AccesibleAutoComplete(options: any): void;
2
- declare namespace AccesibleAutoComplete {
3
- var enhanceSelectElement: (configurationOptions: any) => void;
4
- }
5
- export default AccesibleAutoComplete;
@@ -1,106 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- var _typeof = require("@babel/runtime/helpers/typeof");
6
-
7
- Object.defineProperty(exports, "__esModule", {
8
- value: true
9
- });
10
- exports["default"] = void 0;
11
-
12
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
-
14
- var _react = _interopRequireDefault(require("react"));
15
-
16
- var ReactDOM = _interopRequireWildcard(require("react-dom"));
17
-
18
- var _AutoComplete = _interopRequireDefault(require("@digigov/ui/admin/AutoComplete"));
19
-
20
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
21
-
22
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
-
24
- function AccesibleAutoComplete(options) {
25
- console.log('options are', options);
26
-
27
- if (!options.element) {
28
- throw new Error('element is not defined');
29
- }
30
-
31
- if (!options.id) {
32
- throw new Error('id is not defined');
33
- }
34
-
35
- if (!options.source) {
36
- throw new Error('source is not defined');
37
- }
38
-
39
- if (Array.isArray(options.source)) {
40
- options.source = createSimpleEngine(options.source);
41
- }
42
-
43
- ReactDOM.render( /*#__PURE__*/_react["default"].createElement(_AutoComplete["default"], options), options.element);
44
- }
45
-
46
- var createSimpleEngine = function createSimpleEngine(values) {
47
- return function (query, syncResults) {
48
- var matches = values.filter(function (r) {
49
- return r.toLowerCase().indexOf(query.toLowerCase()) !== -1;
50
- });
51
- syncResults(matches);
52
- };
53
- };
54
-
55
- AccesibleAutoComplete.enhanceSelectElement = function (configurationOptions) {
56
- if (!configurationOptions.selectElement) {
57
- throw new Error('selectElement is not defined');
58
- } // Set defaults.
59
-
60
-
61
- if (!configurationOptions.source) {
62
- var availableOptions = [].filter.call(configurationOptions.selectElement.options, function (option) {
63
- return option.value || configurationOptions.preserveNullOptions;
64
- });
65
- configurationOptions.source = availableOptions.map(function (option) {
66
- return option.textContent || option.innerText;
67
- });
68
- }
69
-
70
- configurationOptions.onConfirm = configurationOptions.onConfirm || function (query) {
71
- var requestedOption = [].filter.call(configurationOptions.selectElement.options, function (option) {
72
- return (option.textContent || option.innerText) === query;
73
- })[0];
74
-
75
- if (requestedOption) {
76
- requestedOption.selected = true;
77
- }
78
- };
79
-
80
- if (configurationOptions.selectElement.value || configurationOptions.defaultValue === undefined) {
81
- var option = configurationOptions.selectElement.options[configurationOptions.selectElement.options.selectedIndex];
82
- configurationOptions.defaultValue = option.textContent || option.innerText;
83
- }
84
-
85
- if (configurationOptions.name === undefined) configurationOptions.name = '';
86
-
87
- if (configurationOptions.id === undefined) {
88
- if (configurationOptions.selectElement.id === undefined) {
89
- configurationOptions.id = '';
90
- } else {
91
- configurationOptions.id = configurationOptions.selectElement.id;
92
- }
93
- }
94
-
95
- if (configurationOptions.autoselect === undefined) configurationOptions.autoselect = true;
96
- var element = document.createElement('div');
97
- configurationOptions.selectElement.parentNode.insertBefore(element, configurationOptions.selectElement);
98
- AccesibleAutoComplete((0, _extends2["default"])({}, configurationOptions, {
99
- element: element
100
- }));
101
- configurationOptions.selectElement.style.display = 'none';
102
- configurationOptions.selectElement.id = configurationOptions.selectElement.id + '-select';
103
- };
104
-
105
- var _default = AccesibleAutoComplete;
106
- exports["default"] = _default;
@@ -1,87 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import React from 'react';
3
- import * as ReactDOM from 'react-dom';
4
- import AutoComplete from '@digigov/ui/admin/AutoComplete';
5
-
6
- function AccesibleAutoComplete(options) {
7
- console.log('options are', options);
8
-
9
- if (!options.element) {
10
- throw new Error('element is not defined');
11
- }
12
-
13
- if (!options.id) {
14
- throw new Error('id is not defined');
15
- }
16
-
17
- if (!options.source) {
18
- throw new Error('source is not defined');
19
- }
20
-
21
- if (Array.isArray(options.source)) {
22
- options.source = createSimpleEngine(options.source);
23
- }
24
-
25
- ReactDOM.render( /*#__PURE__*/React.createElement(AutoComplete, options), options.element);
26
- }
27
-
28
- var createSimpleEngine = function createSimpleEngine(values) {
29
- return function (query, syncResults) {
30
- var matches = values.filter(function (r) {
31
- return r.toLowerCase().indexOf(query.toLowerCase()) !== -1;
32
- });
33
- syncResults(matches);
34
- };
35
- };
36
-
37
- AccesibleAutoComplete.enhanceSelectElement = function (configurationOptions) {
38
- if (!configurationOptions.selectElement) {
39
- throw new Error('selectElement is not defined');
40
- } // Set defaults.
41
-
42
-
43
- if (!configurationOptions.source) {
44
- var availableOptions = [].filter.call(configurationOptions.selectElement.options, function (option) {
45
- return option.value || configurationOptions.preserveNullOptions;
46
- });
47
- configurationOptions.source = availableOptions.map(function (option) {
48
- return option.textContent || option.innerText;
49
- });
50
- }
51
-
52
- configurationOptions.onConfirm = configurationOptions.onConfirm || function (query) {
53
- var requestedOption = [].filter.call(configurationOptions.selectElement.options, function (option) {
54
- return (option.textContent || option.innerText) === query;
55
- })[0];
56
-
57
- if (requestedOption) {
58
- requestedOption.selected = true;
59
- }
60
- };
61
-
62
- if (configurationOptions.selectElement.value || configurationOptions.defaultValue === undefined) {
63
- var option = configurationOptions.selectElement.options[configurationOptions.selectElement.options.selectedIndex];
64
- configurationOptions.defaultValue = option.textContent || option.innerText;
65
- }
66
-
67
- if (configurationOptions.name === undefined) configurationOptions.name = '';
68
-
69
- if (configurationOptions.id === undefined) {
70
- if (configurationOptions.selectElement.id === undefined) {
71
- configurationOptions.id = '';
72
- } else {
73
- configurationOptions.id = configurationOptions.selectElement.id;
74
- }
75
- }
76
-
77
- if (configurationOptions.autoselect === undefined) configurationOptions.autoselect = true;
78
- var element = document.createElement('div');
79
- configurationOptions.selectElement.parentNode.insertBefore(element, configurationOptions.selectElement);
80
- AccesibleAutoComplete(_extends({}, configurationOptions, {
81
- element: element
82
- }));
83
- configurationOptions.selectElement.style.display = 'none';
84
- configurationOptions.selectElement.id = configurationOptions.selectElement.id + '-select';
85
- };
86
-
87
- export default AccesibleAutoComplete;
@@ -1,87 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import React from 'react';
3
- import * as ReactDOM from 'react-dom';
4
- import AutoComplete from '@digigov/ui/admin/AutoComplete';
5
-
6
- function AccesibleAutoComplete(options) {
7
- console.log('options are', options);
8
-
9
- if (!options.element) {
10
- throw new Error('element is not defined');
11
- }
12
-
13
- if (!options.id) {
14
- throw new Error('id is not defined');
15
- }
16
-
17
- if (!options.source) {
18
- throw new Error('source is not defined');
19
- }
20
-
21
- if (Array.isArray(options.source)) {
22
- options.source = createSimpleEngine(options.source);
23
- }
24
-
25
- ReactDOM.render( /*#__PURE__*/React.createElement(AutoComplete, options), options.element);
26
- }
27
-
28
- var createSimpleEngine = function createSimpleEngine(values) {
29
- return function (query, syncResults) {
30
- var matches = values.filter(function (r) {
31
- return r.toLowerCase().indexOf(query.toLowerCase()) !== -1;
32
- });
33
- syncResults(matches);
34
- };
35
- };
36
-
37
- AccesibleAutoComplete.enhanceSelectElement = function (configurationOptions) {
38
- if (!configurationOptions.selectElement) {
39
- throw new Error('selectElement is not defined');
40
- } // Set defaults.
41
-
42
-
43
- if (!configurationOptions.source) {
44
- var availableOptions = [].filter.call(configurationOptions.selectElement.options, function (option) {
45
- return option.value || configurationOptions.preserveNullOptions;
46
- });
47
- configurationOptions.source = availableOptions.map(function (option) {
48
- return option.textContent || option.innerText;
49
- });
50
- }
51
-
52
- configurationOptions.onConfirm = configurationOptions.onConfirm || function (query) {
53
- var requestedOption = [].filter.call(configurationOptions.selectElement.options, function (option) {
54
- return (option.textContent || option.innerText) === query;
55
- })[0];
56
-
57
- if (requestedOption) {
58
- requestedOption.selected = true;
59
- }
60
- };
61
-
62
- if (configurationOptions.selectElement.value || configurationOptions.defaultValue === undefined) {
63
- var option = configurationOptions.selectElement.options[configurationOptions.selectElement.options.selectedIndex];
64
- configurationOptions.defaultValue = option.textContent || option.innerText;
65
- }
66
-
67
- if (configurationOptions.name === undefined) configurationOptions.name = '';
68
-
69
- if (configurationOptions.id === undefined) {
70
- if (configurationOptions.selectElement.id === undefined) {
71
- configurationOptions.id = '';
72
- } else {
73
- configurationOptions.id = configurationOptions.selectElement.id;
74
- }
75
- }
76
-
77
- if (configurationOptions.autoselect === undefined) configurationOptions.autoselect = true;
78
- var element = document.createElement('div');
79
- configurationOptions.selectElement.parentNode.insertBefore(element, configurationOptions.selectElement);
80
- AccesibleAutoComplete(_extends({}, configurationOptions, {
81
- element: element
82
- }));
83
- configurationOptions.selectElement.style.display = 'none';
84
- configurationOptions.selectElement.id = configurationOptions.selectElement.id + '-select';
85
- };
86
-
87
- export default AccesibleAutoComplete;