@digigov/ui 0.21.3 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (383) hide show
  1. package/CHANGELOG.md +15 -1
  2. package/admin/AutoComplete/AccesibleAutoComplete/index.d.ts +5 -0
  3. package/admin/AutoComplete/AccesibleAutoComplete/index.js +106 -0
  4. package/admin/AutoComplete/AutoComplete.stories.d.ts +13 -0
  5. package/admin/AutoComplete/AutoComplete.stories.js +115 -0
  6. package/admin/AutoComplete/Status/index.d.ts +40 -0
  7. package/admin/AutoComplete/Status/index.js +184 -0
  8. package/admin/AutoComplete/__stories__/Default.d.ts +3 -0
  9. package/admin/AutoComplete/__stories__/Default.js +34 -0
  10. package/admin/AutoComplete/__stories__/WithAutoSelect.d.ts +3 -0
  11. package/admin/AutoComplete/__stories__/WithAutoSelect.js +35 -0
  12. package/admin/AutoComplete/__stories__/WithDefaultValue.d.ts +3 -0
  13. package/admin/AutoComplete/__stories__/WithDefaultValue.js +33 -0
  14. package/admin/AutoComplete/__stories__/WithInLine.d.ts +3 -0
  15. package/admin/AutoComplete/__stories__/WithInLine.js +33 -0
  16. package/admin/AutoComplete/__stories__/WithMinLength.d.ts +3 -0
  17. package/admin/AutoComplete/__stories__/WithMinLength.js +35 -0
  18. package/admin/AutoComplete/__stories__/WithPlaceHolder.d.ts +3 -0
  19. package/admin/AutoComplete/__stories__/WithPlaceHolder.js +33 -0
  20. package/admin/AutoComplete/__stories__/WithShowAllValues.d.ts +3 -0
  21. package/admin/AutoComplete/__stories__/WithShowAllValues.js +33 -0
  22. package/admin/AutoComplete/index.d.ts +101 -0
  23. package/admin/AutoComplete/index.js +744 -0
  24. package/admin/AutoComplete/index.mdx +46 -0
  25. package/admin/AutoComplete/utils.d.ts +1 -0
  26. package/admin/AutoComplete/utils.js +13 -0
  27. package/admin/Drawer/__stories__/Default.js +1 -1
  28. package/admin/Drawer/index.mdx +12 -0
  29. package/admin/FilterSection/index.d.ts +1 -0
  30. package/admin/FilterSection/index.js +14 -0
  31. package/admin/Pagination/__stories__/Default.js +38 -14
  32. package/admin/Pagination/index.mdx +12 -0
  33. package/admin/index.d.ts +1 -0
  34. package/admin/index.js +13 -0
  35. package/app/Confirmation/Confirmation.mdx +9 -0
  36. package/app/CopyToClipboard/CopyToClipboard.stories.d.ts +2 -0
  37. package/app/CopyToClipboard/CopyToClipboard.stories.js +28 -0
  38. package/app/CopyToClipboard/__stories__/Banner.d.ts +3 -0
  39. package/app/CopyToClipboard/__stories__/Banner.js +30 -0
  40. package/app/CopyToClipboard/__stories__/Default.js +4 -114
  41. package/app/CopyToClipboard/__stories__/MultipleCopies.d.ts +3 -0
  42. package/app/CopyToClipboard/__stories__/MultipleCopies.js +142 -0
  43. package/app/CopyToClipboard/index.mdx +22 -0
  44. package/app/Footer/Footer.mdx +27 -0
  45. package/app/Header/index.mdx +18 -0
  46. package/app/I18nText.js +7 -7
  47. package/app/NotFound/index.mdx +12 -0
  48. package/app/PhaseBannerHeader/index.mdx +12 -0
  49. package/core/Accordion/index.mdx +13 -86
  50. package/core/BackLink/index.mdx +16 -0
  51. package/core/Blockquote/index.mdx +17 -2
  52. package/core/Breadcrumbs/__stories__/Default.js +9 -1
  53. package/core/Breadcrumbs/breadcrumbs.mdx +22 -0
  54. package/core/Button/Button.mdx +37 -2
  55. package/core/Button/Button.stories.d.ts +2 -0
  56. package/core/Button/Button.stories.js +28 -0
  57. package/core/Button/__stories__/CallToActionButton.d.ts +3 -0
  58. package/core/Button/__stories__/CallToActionButton.js +22 -0
  59. package/core/Button/__stories__/Disabled.d.ts +6 -0
  60. package/core/Button/__stories__/Disabled.js +27 -0
  61. package/core/Button/__stories__/Warning.d.ts +1 -0
  62. package/core/Button/__stories__/Warning.js +4 -2
  63. package/core/Card/Card.stories.d.ts +1 -0
  64. package/core/Card/Card.stories.js +14 -0
  65. package/core/Card/__stories__/WithClickableLink.js +1 -3
  66. package/core/Card/__stories__/WithGroupButton.d.ts +3 -0
  67. package/core/Card/__stories__/WithGroupButton.js +32 -0
  68. package/core/Card/card.mdx +78 -0
  69. package/core/Checkboxes/Checkbox.stories.d.ts +1 -0
  70. package/core/Checkboxes/Checkbox.stories.js +14 -0
  71. package/core/Checkboxes/__stories__/NoneAnswerWithError.d.ts +3 -0
  72. package/core/Checkboxes/__stories__/NoneAnswerWithError.js +51 -0
  73. package/core/Checkboxes/checkboxes.mdx +54 -0
  74. package/core/Confirmation/confirmation.mdx +19 -0
  75. package/core/DateInput/DateInput.stories.d.ts +1 -0
  76. package/core/DateInput/DateInput.stories.js +14 -0
  77. package/core/DateInput/__stories__/Default.js +3 -1
  78. package/core/DateInput/__stories__/MultipleQuestions.d.ts +3 -0
  79. package/core/DateInput/__stories__/MultipleQuestions.js +41 -0
  80. package/core/DateInput/index.mdx +34 -0
  81. package/core/Details/index.mdx +9 -25
  82. package/core/ErrorMessage/__stories__/Default.js +1 -1
  83. package/core/ErrorMessage/index.mdx +21 -0
  84. package/core/ErrorSummary/__stories__/LinkedToCheckbox.js +1 -1
  85. package/core/ErrorSummary/index.mdx +21 -38
  86. package/core/FileUpload/__stories__/Default.d.ts +1 -0
  87. package/core/FileUpload/__stories__/Default.js +4 -2
  88. package/core/FileUpload/index.mdx +22 -0
  89. package/core/Link/__stories__/DarkBackground.js +1 -1
  90. package/core/Link/__stories__/DarkBackgroundNoUnderline.js +1 -1
  91. package/core/Link/link.mdx +30 -0
  92. package/core/List/index.mdx +22 -3
  93. package/core/Masthead/masthead.mdx +14 -0
  94. package/core/NavList/NavList.d.ts +1 -14
  95. package/core/NavList/NavList.js +11 -70
  96. package/core/NavList/NavListBase.d.ts +4 -0
  97. package/core/NavList/NavListBase.js +74 -0
  98. package/core/NavList/NavListSubMenu.d.ts +1 -1
  99. package/core/NavList/NavListSubMenu.js +2 -2
  100. package/core/NavList/types.d.ts +13 -0
  101. package/core/NavList/types.js +5 -0
  102. package/core/NotificationBanner/index.mdx +13 -60
  103. package/core/PhaseBanner/PhaseBanner.stories.d.ts +1 -0
  104. package/core/PhaseBanner/PhaseBanner.stories.js +14 -0
  105. package/core/PhaseBanner/__stories__/Underlined.d.ts +3 -0
  106. package/core/PhaseBanner/__stories__/Underlined.js +34 -0
  107. package/core/PhaseBanner/index.mdx +24 -0
  108. package/core/Radios/__stories__/Default.js +1 -3
  109. package/core/Radios/__stories__/MultipleQuestions.js +1 -1
  110. package/core/Radios/index.mdx +56 -0
  111. package/core/Select/Select.stories.d.ts +1 -0
  112. package/core/Select/Select.stories.js +14 -0
  113. package/core/Select/__stories__/WithHint.d.ts +3 -0
  114. package/core/Select/__stories__/WithHint.js +45 -0
  115. package/core/Select/index.mdx +36 -0
  116. package/core/SummaryList/SummaryList.stories.d.ts +2 -2
  117. package/core/SummaryList/SummaryList.stories.js +8 -8
  118. package/core/SummaryList/__stories__/Default.js +1 -1
  119. package/core/SummaryList/__stories__/WithActions.d.ts +3 -0
  120. package/core/SummaryList/__stories__/{SummaryListWithActions.js → WithActions.js} +10 -12
  121. package/core/SummaryList/__stories__/WithoutBorders.d.ts +3 -0
  122. package/core/SummaryList/__stories__/{SummaryListWithoutBorders.js → WithoutBorders.js} +5 -5
  123. package/core/SummaryList/index.mdx +17 -65
  124. package/core/Table/Table.stories.d.ts +1 -0
  125. package/core/Table/Table.stories.js +14 -0
  126. package/core/Table/__stories__/DarkVariant.js +1 -1
  127. package/core/Table/__stories__/Default.js +1 -1
  128. package/core/Table/__stories__/TableCaptions.d.ts +3 -0
  129. package/core/Table/__stories__/TableCaptions.js +30 -0
  130. package/core/Table/index.mdx +52 -0
  131. package/core/Tabs/__stories__/Default.d.ts +1 -0
  132. package/core/Tabs/__stories__/Default.js +6 -2
  133. package/core/Tabs/index.mdx +10 -2
  134. package/core/TextArea/index.mdx +50 -0
  135. package/core/TextInput/index.mdx +59 -0
  136. package/core/VisuallyHidden/__stories__/Default.js +14 -2
  137. package/core/VisuallyHidden/index.mdx +17 -0
  138. package/core/WarningText/index.mdx +10 -35
  139. package/es/admin/AutoComplete/AccesibleAutoComplete/index.js +87 -0
  140. package/es/admin/AutoComplete/AutoComplete.stories.js +13 -0
  141. package/es/admin/AutoComplete/Status/index.js +153 -0
  142. package/es/admin/AutoComplete/__stories__/Default.js +19 -0
  143. package/es/admin/AutoComplete/__stories__/WithAutoSelect.js +20 -0
  144. package/es/admin/AutoComplete/__stories__/WithDefaultValue.js +18 -0
  145. package/es/admin/AutoComplete/__stories__/WithInLine.js +18 -0
  146. package/es/admin/AutoComplete/__stories__/WithMinLength.js +19 -0
  147. package/es/admin/AutoComplete/__stories__/WithPlaceHolder.js +18 -0
  148. package/es/admin/AutoComplete/__stories__/WithShowAllValues.js +18 -0
  149. package/es/admin/AutoComplete/index.js +676 -0
  150. package/es/admin/AutoComplete/index.mdx +46 -0
  151. package/es/admin/AutoComplete/utils.js +6 -0
  152. package/es/admin/Drawer/__stories__/Default.js +1 -1
  153. package/es/admin/Drawer/index.mdx +12 -0
  154. package/es/admin/FilterSection/index.js +1 -0
  155. package/es/admin/Pagination/__stories__/Default.js +37 -14
  156. package/es/admin/Pagination/index.mdx +12 -0
  157. package/es/admin/index.js +2 -1
  158. package/es/app/Confirmation/Confirmation.mdx +9 -0
  159. package/es/app/CopyToClipboard/CopyToClipboard.stories.js +3 -1
  160. package/es/app/CopyToClipboard/__stories__/Banner.js +16 -0
  161. package/es/app/CopyToClipboard/__stories__/Default.js +5 -107
  162. package/es/app/CopyToClipboard/__stories__/MultipleCopies.js +120 -0
  163. package/es/app/CopyToClipboard/index.mdx +22 -0
  164. package/es/app/Footer/Footer.mdx +27 -0
  165. package/es/app/Header/index.mdx +18 -0
  166. package/es/app/I18nText.js +7 -6
  167. package/es/app/NotFound/index.mdx +12 -0
  168. package/es/app/PhaseBannerHeader/index.mdx +12 -0
  169. package/es/core/Accordion/index.mdx +13 -86
  170. package/es/core/BackLink/index.mdx +16 -0
  171. package/es/core/Blockquote/index.mdx +17 -2
  172. package/es/core/Breadcrumbs/__stories__/Default.js +9 -1
  173. package/es/core/Breadcrumbs/breadcrumbs.mdx +22 -0
  174. package/es/core/Button/Button.mdx +37 -2
  175. package/es/core/Button/Button.stories.js +3 -1
  176. package/es/core/Button/__stories__/CallToActionButton.js +9 -0
  177. package/es/core/Button/__stories__/Disabled.js +14 -0
  178. package/es/core/Button/__stories__/Warning.js +2 -1
  179. package/es/core/Card/Card.stories.js +2 -1
  180. package/es/core/Card/__stories__/WithClickableLink.js +2 -3
  181. package/es/core/Card/__stories__/WithGroupButton.js +11 -0
  182. package/es/core/Card/card.mdx +78 -0
  183. package/es/core/Checkboxes/Checkbox.stories.js +1 -0
  184. package/es/core/Checkboxes/__stories__/NoneAnswerWithError.js +28 -0
  185. package/es/core/Checkboxes/checkboxes.mdx +54 -0
  186. package/es/core/Confirmation/confirmation.mdx +19 -0
  187. package/es/core/DateInput/DateInput.stories.js +1 -0
  188. package/es/core/DateInput/__stories__/Default.js +3 -1
  189. package/es/core/DateInput/__stories__/MultipleQuestions.js +20 -0
  190. package/es/core/DateInput/index.mdx +34 -0
  191. package/es/core/Details/index.mdx +9 -25
  192. package/es/core/ErrorMessage/__stories__/Default.js +1 -1
  193. package/es/core/ErrorMessage/index.mdx +21 -0
  194. package/es/core/ErrorSummary/__stories__/LinkedToCheckbox.js +1 -1
  195. package/es/core/ErrorSummary/index.mdx +21 -38
  196. package/es/core/FileUpload/__stories__/Default.js +2 -1
  197. package/es/core/FileUpload/index.mdx +22 -0
  198. package/es/core/Link/__stories__/DarkBackground.js +1 -1
  199. package/es/core/Link/__stories__/DarkBackgroundNoUnderline.js +1 -1
  200. package/es/core/Link/link.mdx +30 -0
  201. package/es/core/List/index.mdx +22 -3
  202. package/es/core/Masthead/masthead.mdx +14 -0
  203. package/es/core/NavList/NavList.js +8 -63
  204. package/es/core/NavList/NavListBase.js +58 -0
  205. package/es/core/NavList/NavListSubMenu.js +1 -1
  206. package/es/core/NavList/types.js +1 -0
  207. package/es/core/NotificationBanner/index.mdx +13 -60
  208. package/es/core/PhaseBanner/PhaseBanner.stories.js +2 -1
  209. package/es/core/PhaseBanner/__stories__/Underlined.js +14 -0
  210. package/es/core/PhaseBanner/index.mdx +24 -0
  211. package/es/core/Radios/__stories__/Default.js +1 -2
  212. package/es/core/Radios/__stories__/MultipleQuestions.js +1 -1
  213. package/es/core/Radios/index.mdx +56 -0
  214. package/es/core/Select/Select.stories.js +2 -1
  215. package/es/core/Select/__stories__/WithHint.js +22 -0
  216. package/es/core/Select/index.mdx +36 -0
  217. package/es/core/SummaryList/SummaryList.stories.js +2 -2
  218. package/es/core/SummaryList/__stories__/Default.js +1 -1
  219. package/es/core/SummaryList/__stories__/WithActions.js +20 -0
  220. package/es/core/SummaryList/__stories__/WithoutBorders.js +11 -0
  221. package/es/core/SummaryList/index.mdx +17 -65
  222. package/es/core/Table/Table.stories.js +1 -0
  223. package/es/core/Table/__stories__/DarkVariant.js +1 -1
  224. package/es/core/Table/__stories__/Default.js +1 -1
  225. package/es/core/Table/__stories__/TableCaptions.js +17 -0
  226. package/es/core/Table/index.mdx +52 -0
  227. package/es/core/Tabs/__stories__/Default.js +3 -2
  228. package/es/core/Tabs/index.mdx +10 -2
  229. package/es/core/TextArea/index.mdx +50 -0
  230. package/es/core/TextInput/index.mdx +59 -0
  231. package/es/core/VisuallyHidden/__stories__/Default.js +9 -5
  232. package/es/core/VisuallyHidden/index.mdx +17 -0
  233. package/es/core/WarningText/index.mdx +10 -35
  234. package/es/govgr/Footer/index.mdx +4 -4
  235. package/es/introduction.md +4 -1
  236. package/es/layouts/Grid/Grid.stories.js +2 -1
  237. package/es/layouts/Grid/__stories__/Inline.js +55 -0
  238. package/es/layouts/Grid/index.js +1 -0
  239. package/es/layouts/index.js +2 -0
  240. package/es/registry.js +57 -17
  241. package/es/typography/Caption/index.mdx +16 -0
  242. package/es/typography/Hint/index.mdx +16 -0
  243. package/es/typography/NormalText/index.mdx +26 -0
  244. package/es/typography/Paragraph/index.mdx +30 -0
  245. package/es/typography/Title/index.mdx +12 -0
  246. package/esm/admin/AutoComplete/AccesibleAutoComplete/index.js +87 -0
  247. package/esm/admin/AutoComplete/AutoComplete.stories.js +13 -0
  248. package/esm/admin/AutoComplete/Status/index.js +153 -0
  249. package/esm/admin/AutoComplete/__stories__/Default.js +19 -0
  250. package/esm/admin/AutoComplete/__stories__/WithAutoSelect.js +20 -0
  251. package/esm/admin/AutoComplete/__stories__/WithDefaultValue.js +18 -0
  252. package/esm/admin/AutoComplete/__stories__/WithInLine.js +18 -0
  253. package/esm/admin/AutoComplete/__stories__/WithMinLength.js +19 -0
  254. package/esm/admin/AutoComplete/__stories__/WithPlaceHolder.js +18 -0
  255. package/esm/admin/AutoComplete/__stories__/WithShowAllValues.js +18 -0
  256. package/esm/admin/AutoComplete/index.js +676 -0
  257. package/esm/admin/AutoComplete/index.mdx +46 -0
  258. package/esm/admin/AutoComplete/utils.js +6 -0
  259. package/esm/admin/Drawer/__stories__/Default.js +1 -1
  260. package/esm/admin/Drawer/index.mdx +12 -0
  261. package/esm/admin/FilterSection/index.js +1 -0
  262. package/esm/admin/Pagination/__stories__/Default.js +37 -14
  263. package/esm/admin/Pagination/index.mdx +12 -0
  264. package/esm/admin/index.js +2 -1
  265. package/esm/app/Confirmation/Confirmation.mdx +9 -0
  266. package/esm/app/CopyToClipboard/CopyToClipboard.stories.js +3 -1
  267. package/esm/app/CopyToClipboard/__stories__/Banner.js +16 -0
  268. package/esm/app/CopyToClipboard/__stories__/Default.js +5 -107
  269. package/esm/app/CopyToClipboard/__stories__/MultipleCopies.js +120 -0
  270. package/esm/app/CopyToClipboard/index.mdx +22 -0
  271. package/esm/app/Footer/Footer.mdx +27 -0
  272. package/esm/app/Header/index.mdx +18 -0
  273. package/esm/app/I18nText.js +7 -6
  274. package/esm/app/NotFound/index.mdx +12 -0
  275. package/esm/app/PhaseBannerHeader/index.mdx +12 -0
  276. package/esm/core/Accordion/index.mdx +13 -86
  277. package/esm/core/BackLink/index.mdx +16 -0
  278. package/esm/core/Blockquote/index.mdx +17 -2
  279. package/esm/core/Breadcrumbs/__stories__/Default.js +9 -1
  280. package/esm/core/Breadcrumbs/breadcrumbs.mdx +22 -0
  281. package/esm/core/Button/Button.mdx +37 -2
  282. package/esm/core/Button/Button.stories.js +3 -1
  283. package/esm/core/Button/__stories__/CallToActionButton.js +9 -0
  284. package/esm/core/Button/__stories__/Disabled.js +14 -0
  285. package/esm/core/Button/__stories__/Warning.js +2 -1
  286. package/esm/core/Card/Card.stories.js +2 -1
  287. package/esm/core/Card/__stories__/WithClickableLink.js +2 -3
  288. package/esm/core/Card/__stories__/WithGroupButton.js +11 -0
  289. package/esm/core/Card/card.mdx +78 -0
  290. package/esm/core/Checkboxes/Checkbox.stories.js +1 -0
  291. package/esm/core/Checkboxes/__stories__/NoneAnswerWithError.js +28 -0
  292. package/esm/core/Checkboxes/checkboxes.mdx +54 -0
  293. package/esm/core/Confirmation/confirmation.mdx +19 -0
  294. package/esm/core/DateInput/DateInput.stories.js +1 -0
  295. package/esm/core/DateInput/__stories__/Default.js +3 -1
  296. package/esm/core/DateInput/__stories__/MultipleQuestions.js +20 -0
  297. package/esm/core/DateInput/index.mdx +34 -0
  298. package/esm/core/Details/index.mdx +9 -25
  299. package/esm/core/ErrorMessage/__stories__/Default.js +1 -1
  300. package/esm/core/ErrorMessage/index.mdx +21 -0
  301. package/esm/core/ErrorSummary/__stories__/LinkedToCheckbox.js +1 -1
  302. package/esm/core/ErrorSummary/index.mdx +21 -38
  303. package/esm/core/FileUpload/__stories__/Default.js +2 -1
  304. package/esm/core/FileUpload/index.mdx +22 -0
  305. package/esm/core/Link/__stories__/DarkBackground.js +1 -1
  306. package/esm/core/Link/__stories__/DarkBackgroundNoUnderline.js +1 -1
  307. package/esm/core/Link/link.mdx +30 -0
  308. package/esm/core/List/index.mdx +22 -3
  309. package/esm/core/Masthead/masthead.mdx +14 -0
  310. package/esm/core/NavList/NavList.js +8 -63
  311. package/esm/core/NavList/NavListBase.js +58 -0
  312. package/esm/core/NavList/NavListSubMenu.js +1 -1
  313. package/esm/core/NavList/types.js +1 -0
  314. package/esm/core/NotificationBanner/index.mdx +13 -60
  315. package/esm/core/PhaseBanner/PhaseBanner.stories.js +2 -1
  316. package/esm/core/PhaseBanner/__stories__/Underlined.js +14 -0
  317. package/esm/core/PhaseBanner/index.mdx +24 -0
  318. package/esm/core/Radios/__stories__/Default.js +1 -2
  319. package/esm/core/Radios/__stories__/MultipleQuestions.js +1 -1
  320. package/esm/core/Radios/index.mdx +56 -0
  321. package/esm/core/Select/Select.stories.js +2 -1
  322. package/esm/core/Select/__stories__/WithHint.js +22 -0
  323. package/esm/core/Select/index.mdx +36 -0
  324. package/esm/core/SummaryList/SummaryList.stories.js +2 -2
  325. package/esm/core/SummaryList/__stories__/Default.js +1 -1
  326. package/esm/core/SummaryList/__stories__/WithActions.js +20 -0
  327. package/esm/core/SummaryList/__stories__/WithoutBorders.js +11 -0
  328. package/esm/core/SummaryList/index.mdx +17 -65
  329. package/esm/core/Table/Table.stories.js +1 -0
  330. package/esm/core/Table/__stories__/DarkVariant.js +1 -1
  331. package/esm/core/Table/__stories__/Default.js +1 -1
  332. package/esm/core/Table/__stories__/TableCaptions.js +17 -0
  333. package/esm/core/Table/index.mdx +52 -0
  334. package/esm/core/Tabs/__stories__/Default.js +3 -2
  335. package/esm/core/Tabs/index.mdx +10 -2
  336. package/esm/core/TextArea/index.mdx +50 -0
  337. package/esm/core/TextInput/index.mdx +59 -0
  338. package/esm/core/VisuallyHidden/__stories__/Default.js +9 -5
  339. package/esm/core/VisuallyHidden/index.mdx +17 -0
  340. package/esm/core/WarningText/index.mdx +10 -35
  341. package/esm/govgr/Footer/index.mdx +4 -4
  342. package/esm/index.js +1 -1
  343. package/esm/introduction.md +4 -1
  344. package/esm/layouts/Grid/Grid.stories.js +2 -1
  345. package/esm/layouts/Grid/__stories__/Inline.js +55 -0
  346. package/esm/layouts/Grid/index.js +1 -0
  347. package/esm/layouts/index.js +2 -0
  348. package/esm/registry.js +57 -17
  349. package/esm/typography/Caption/index.mdx +16 -0
  350. package/esm/typography/Hint/index.mdx +16 -0
  351. package/esm/typography/NormalText/index.mdx +26 -0
  352. package/esm/typography/Paragraph/index.mdx +30 -0
  353. package/esm/typography/Title/index.mdx +12 -0
  354. package/govgr/Footer/index.mdx +4 -4
  355. package/introduction.md +4 -1
  356. package/layouts/Grid/Grid.stories.d.ts +1 -0
  357. package/layouts/Grid/Grid.stories.js +14 -0
  358. package/layouts/Grid/__stories__/Inline.d.ts +3 -0
  359. package/layouts/Grid/__stories__/Inline.js +68 -0
  360. package/layouts/Grid/index.d.ts +1 -0
  361. package/layouts/Grid/index.js +6 -0
  362. package/layouts/index.d.ts +2 -0
  363. package/layouts/index.js +22 -1
  364. package/package.json +3 -3
  365. package/registry.d.ts +28 -8
  366. package/registry.js +85 -25
  367. package/typography/Caption/index.mdx +16 -0
  368. package/typography/Hint/index.mdx +16 -0
  369. package/typography/NormalText/index.mdx +26 -0
  370. package/typography/Paragraph/index.mdx +30 -0
  371. package/typography/Title/index.mdx +12 -0
  372. package/app/NotFound/NotFound.mdx +0 -5
  373. package/app/QrCodeScanner/index.mdx +0 -7
  374. package/core/SummaryList/__stories__/SummaryListWithActions.d.ts +0 -3
  375. package/core/SummaryList/__stories__/SummaryListWithoutBorders.d.ts +0 -3
  376. package/es/app/NotFound/NotFound.mdx +0 -5
  377. package/es/app/QrCodeScanner/index.mdx +0 -7
  378. package/es/core/SummaryList/__stories__/SummaryListWithActions.js +0 -21
  379. package/es/core/SummaryList/__stories__/SummaryListWithoutBorders.js +0 -11
  380. package/esm/app/NotFound/NotFound.mdx +0 -5
  381. package/esm/app/QrCodeScanner/index.mdx +0 -7
  382. package/esm/core/SummaryList/__stories__/SummaryListWithActions.js +0 -21
  383. package/esm/core/SummaryList/__stories__/SummaryListWithoutBorders.js +0 -11
@@ -0,0 +1,46 @@
1
+ ---
2
+ id: autocomplete
3
+ title: AutoComplete
4
+ ---
5
+
6
+
7
+ Autocomplete is a feature in which an input field suggests a word based on user input. This allows users to quickly search
8
+ through, select from large collections of options and help services get more consistent data.
9
+
10
+ ## Usage
11
+
12
+
13
+ ### How to import
14
+
15
+ ```bash
16
+ import AutoComplete from '@digigov/ui/admin/AutoComplete';
17
+ ```
18
+
19
+ ### AutoComplete
20
+
21
+ <Story packageName="@digigov/ui" component="admin/AutoComplete" story="Default.tsx" />
22
+
23
+ ### AutoComplete with auto select
24
+
25
+ <Story packageName="@digigov/ui" component="admin/AutoComplete" story="WithAutoSelect.tsx" />
26
+
27
+ ### AutoComplete with inline style
28
+
29
+ <Story packageName="@digigov/ui" component="admin/AutoComplete" story="WithInLine.tsx" />
30
+
31
+
32
+ ### AutoComplete with default value
33
+
34
+ <Story packageName="@digigov/ui" component="admin/AutoComplete" story="WithDefaultValue.tsx" />
35
+
36
+ ### AutoComplete with placeholder
37
+ <Story packageName="@digigov/ui" component="admin/AutoComplete" story="WithPlaceHolder.tsx" />
38
+
39
+ ### AutoComplete with all option's values
40
+ <Story packageName="@digigov/ui" component="admin/AutoComplete" story="WithShowAllValues.tsx" />
41
+
42
+ ### AutoComplete with min length
43
+
44
+ This is the minimum number of characters that should be entered before the autocomplete will attempt to suggest options(in above example is 2)
45
+
46
+ <Story packageName="@digigov/ui" component="admin/AutoComplete" story="WithMinLength.tsx" />
@@ -0,0 +1,6 @@
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
+ }) : []);
6
+ }
@@ -3,7 +3,7 @@ import React, { useState } from 'react';
3
3
  import Drawer from '@digigov/ui/admin/Drawer';
4
4
  import { List, ListItem, BurgerIcon } from '@digigov/react-core';
5
5
  import { Button, Title } from '@digigov/ui';
6
- import { AdminAside, AdminContainer, AdminLayout, AdminMain, AdminTopSection, AdminHeader, AdminHeaderSection, DrawerHeading } from '@digigov/react-extensions/admin/';
6
+ import { AdminAside, AdminContainer, AdminLayout, AdminMain, AdminTopSection, AdminHeader, AdminHeaderSection, DrawerHeading } from '@digigov/react-extensions/admin';
7
7
  import { GovGRLogo } from '@digigov/react-core';
8
8
  import { Card, CardHeading, CardText } from '@digigov/react-core';
9
9
  import Grid from '@digigov/react-core/Grid';
@@ -0,0 +1,12 @@
1
+ ---
2
+ id: drawer
3
+ title: Drawer
4
+ ---
5
+
6
+ ```bash
7
+ import Drawer from '@digigov/ui/app/Drawer';
8
+ ```
9
+
10
+ ## How to use
11
+
12
+ <Story packageName="@digigov/ui" component="admin/Drawer" story="Default.tsx" />
@@ -1,4 +1,5 @@
1
1
  export * from '@digigov/react-extensions/admin/FilterSection';
2
+ export * from '@digigov/react-extensions/admin/FilterSectionHorizontal';
2
3
  export * from '@digigov/react-extensions/admin/FilterHeadingSection';
3
4
  export * from '@digigov/react-extensions/admin/FilterContent';
4
5
  export * from '@digigov/react-extensions/admin/FilterOptionsSection';
@@ -3,10 +3,9 @@ import Pagination, { PaginationList, PaginationListItem, PaginationLabel } from
3
3
  import ArrowIcon from '@digigov/react-core/ArrowIcon';
4
4
  import Link from '@digigov/ui/core/Link';
5
5
  import Divider from '@digigov/ui/core/Divider';
6
+ import { I18NProvider } from '@digigov/ui/app';
6
7
 
7
- var _ref = /*#__PURE__*/React.createElement("div", {
8
- className: "example"
9
- }, /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
8
+ var _ref = /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
10
9
  start: 10,
11
10
  end: 20,
12
11
  total: 10000
@@ -28,10 +27,14 @@ var _ref = /*#__PURE__*/React.createElement("div", {
28
27
  href: "/page7"
29
28
  }, "7")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF", /*#__PURE__*/React.createElement(ArrowIcon, {
30
29
  direction: "right"
31
- }))))), /*#__PURE__*/React.createElement(Divider, {
30
+ })))));
31
+
32
+ var _ref2 = /*#__PURE__*/React.createElement(Divider, {
32
33
  visible: true,
33
34
  size: "l"
34
- }), /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
35
+ });
36
+
37
+ var _ref3 = /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
35
38
  start: 10,
36
39
  end: 20,
37
40
  total: 10000
@@ -55,10 +58,14 @@ var _ref = /*#__PURE__*/React.createElement("div", {
55
58
  href: "/page7"
56
59
  }, "7")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF", /*#__PURE__*/React.createElement(ArrowIcon, {
57
60
  direction: "right"
58
- }))))), /*#__PURE__*/React.createElement(Divider, {
61
+ })))));
62
+
63
+ var _ref4 = /*#__PURE__*/React.createElement(Divider, {
59
64
  visible: true,
60
65
  size: "l"
61
- }), /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
66
+ });
67
+
68
+ var _ref5 = /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
62
69
  start: 10,
63
70
  end: 20,
64
71
  total: 10000
@@ -80,10 +87,14 @@ var _ref = /*#__PURE__*/React.createElement("div", {
80
87
  inactive: true
81
88
  }, /*#__PURE__*/React.createElement(Link, null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF", /*#__PURE__*/React.createElement(ArrowIcon, {
82
89
  direction: "right"
83
- }))))), /*#__PURE__*/React.createElement(Divider, {
90
+ })))));
91
+
92
+ var _ref6 = /*#__PURE__*/React.createElement(Divider, {
84
93
  visible: true,
85
94
  size: "l"
86
- }), /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
95
+ });
96
+
97
+ var _ref7 = /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
87
98
  start: 1,
88
99
  end: 10,
89
100
  total: 15
@@ -105,10 +116,14 @@ var _ref = /*#__PURE__*/React.createElement("div", {
105
116
  href: "/page20"
106
117
  }, "20")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF", /*#__PURE__*/React.createElement(ArrowIcon, {
107
118
  direction: "right"
108
- }))))), /*#__PURE__*/React.createElement(Divider, {
119
+ })))));
120
+
121
+ var _ref8 = /*#__PURE__*/React.createElement(Divider, {
109
122
  visible: true,
110
123
  size: "l"
111
- }), /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
124
+ });
125
+
126
+ var _ref9 = /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
112
127
  start: 1,
113
128
  end: 10,
114
129
  total: 15
@@ -122,12 +137,20 @@ var _ref = /*#__PURE__*/React.createElement("div", {
122
137
  href: "/page7"
123
138
  }, "2")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, /*#__PURE__*/React.createElement(ArrowIcon, {
124
139
  direction: "right"
125
- }))))), /*#__PURE__*/React.createElement(Divider, {
140
+ })))));
141
+
142
+ var _ref10 = /*#__PURE__*/React.createElement(Divider, {
126
143
  visible: true,
127
144
  size: "l"
128
- }));
145
+ });
129
146
 
130
147
  export var Default = function Default() {
131
- return _ref;
148
+ return /*#__PURE__*/React.createElement("div", {
149
+ className: "example"
150
+ }, /*#__PURE__*/React.createElement(I18NProvider, {
151
+ t: function t(str) {
152
+ return str;
153
+ }
154
+ }, _ref, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10));
132
155
  };
133
156
  export default Default;
@@ -0,0 +1,12 @@
1
+ ---
2
+ id: pagination
3
+ title: Pagination
4
+ ---
5
+
6
+ ```bash
7
+ import Pagination from '@digigov/ui/app/Pagination';
8
+ ```
9
+
10
+ ## How to use
11
+
12
+ <Story packageName="@digigov/ui" component="admin/Pagination" story="Default.tsx" />
package/es/admin/index.js CHANGED
@@ -13,4 +13,5 @@ export * from '@digigov/ui/admin/LabeledText';
13
13
  export * from '@digigov/ui/admin/AdminLayout';
14
14
  export * from '@digigov/ui/admin/ResultsHeading';
15
15
  export * from '@digigov/ui/admin/SearchSection';
16
- export * from '@digigov/ui/admin/FilterSection';
16
+ export * from '@digigov/ui/admin/FilterSection';
17
+ export * from '@digigov/ui/admin/AutoComplete';
@@ -1,3 +1,12 @@
1
1
  ---
2
+ id: confirmation
2
3
  title: Confirmation
3
4
  ---
5
+
6
+ ```bash
7
+ import Confirmation from '@digigov/ui/app/Confirmation';
8
+ ```
9
+
10
+ ## How to use
11
+
12
+ <Story packageName="@digigov/ui" component="app/Confirmation" story="Default.tsx" />
@@ -3,4 +3,6 @@ export default {
3
3
  title: 'Digigov UI/app/CopyToClipboard',
4
4
  component: CopyToClipboard
5
5
  };
6
- export * from '@digigov/ui/app/CopyToClipboard/__stories__/Default';
6
+ export * from '@digigov/ui/app/CopyToClipboard/__stories__/Default';
7
+ export * from '@digigov/ui/app/CopyToClipboard/__stories__/Banner';
8
+ export * from '@digigov/ui/app/CopyToClipboard/__stories__/MultipleCopies';
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import CopyToClipboard from '@digigov/ui/app/CopyToClipboard';
3
+ import { Button } from '@digigov/ui';
4
+
5
+ var _ref = /*#__PURE__*/React.createElement(CopyToClipboard, {
6
+ text: "copied-text",
7
+ variant: "banner",
8
+ message: "text successfuly copied!"
9
+ }, /*#__PURE__*/React.createElement(Button, {
10
+ color: "secondary"
11
+ }, "Banner example"));
12
+
13
+ export var Banner = function Banner() {
14
+ return _ref;
15
+ };
16
+ export default Banner;
@@ -1,118 +1,16 @@
1
1
  import React from 'react';
2
2
  import CopyToClipboard from '@digigov/ui/app/CopyToClipboard';
3
- import { AdminAside, AdminContainer, AdminLayout, AdminMain, AdminTopSection, AdminHeader, AdminHeaderSection, Dropdown, DropdownButton, DropdownContent } from '@digigov/react-extensions/admin/';
4
- import { MoreVertIcon, NavVertical, NavVerticalItem } from '@digigov/react-core';
5
- import { Accordion, AccordionItem, AccordionSectionSummary, AccordionSectionSummaryHeading } from '@digigov/ui/core/Accordion';
6
- import { SummaryList, SummaryListItem, SummaryListItemKey, SummaryListItemValue, SummaryListItemAction, Button, BackButton, ButtonGroup } from '@digigov/ui';
7
- import { HeaderContent, HeaderTitle, HeaderSubtitle, SectionBreak } from '@digigov/ui';
8
- import Title from '@digigov/ui/typography/Title';
9
- import Paragraph from '@digigov/ui/typography/Paragraph';
10
- import GovGRFooter from '@digigov/ui/govgr/Footer';
11
- import GovGRLogo from '@digigov/ui/govgr/Logo';
12
- import Grid from '@digigov/ui/layouts/Grid';
13
- var fields = [{
14
- name: 'Θέμα',
15
- value: 'Αίτηση Ληξιαρχικής Πράξης Γάμου'
16
- }, {
17
- name: 'Ημερομηνία',
18
- value: '09/03/2002 14:54:36'
19
- }, {
20
- name: 'Κωδικός επαλήθευσης',
21
- value: 'NdH-EYREW1yd1LUhEOssx4A',
22
- actions: ['Προβολή', 'Αντιγραφή συνδέσμου']
23
- }, {
24
- name: 'Κατάσταση',
25
- value: 'Εισερχόμενη',
26
- actions: ['Αλλάγή']
27
- }, {
28
- name: 'Χειριστής',
29
- value: 'Δεν έχει οριστεί χειριστής',
30
- actions: ['Ανάθεση']
31
- }];
3
+ import { Button } from '@digigov/ui';
32
4
 
33
- var _ref = /*#__PURE__*/React.createElement(AdminHeader, null, /*#__PURE__*/React.createElement(AdminHeaderSection, null, /*#__PURE__*/React.createElement(HeaderContent, null, /*#__PURE__*/React.createElement(GovGRLogo, null), /*#__PURE__*/React.createElement(HeaderTitle, null, "\u0398\u03C5\u03C1\u03AF\u03B4\u03B5\u03C2")), /*#__PURE__*/React.createElement(HeaderSubtitle, null, /*#__PURE__*/React.createElement(Dropdown, null, /*#__PURE__*/React.createElement(DropdownButton, {
34
- variant: "link"
35
- }, "\u0388\u03C7\u03B5\u03C4\u03B5 \u03C3\u03C5\u03BD\u03B4\u03B5\u03B8\u03B5\u03AF \u03C9\u03C2 \u039A\u03B1\u03BB\u03BB\u03B9\u03CC\u03C0\u03B7 \u03A0\u03B1\u03C0\u03B1\u03B4\u03BF\u03C0\u03BF\u03CD\u03BB\u03BF\u03C5", /*#__PURE__*/React.createElement(MoreVertIcon, null)), /*#__PURE__*/React.createElement(DropdownContent, null, /*#__PURE__*/React.createElement(NavVertical, null, /*#__PURE__*/React.createElement(NavVerticalItem, {
36
- href: "#"
37
- }, "\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1"), /*#__PURE__*/React.createElement(NavVerticalItem, {
38
- href: "#"
39
- }, "\u039C\u03B5\u03C4\u03B1\u03BA\u03AF\u03BD\u03B7\u03C3\u03B7"), /*#__PURE__*/React.createElement(NavVerticalItem, {
40
- href: "#"
41
- }, "\u039F\u03C1\u03B9\u03C3\u03C4\u03B9\u03BA\u03AE \u03B4\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE")))))));
42
-
43
- var _ref2 = /*#__PURE__*/React.createElement(Grid, {
44
- item: true,
45
- md: 3,
46
- lg: 2
47
- }, /*#__PURE__*/React.createElement(AdminAside, null, /*#__PURE__*/React.createElement(AdminTopSection, null, /*#__PURE__*/React.createElement(BackButton, null, "\u0391\u03BB\u03BB\u03B1\u03B3\u03AE \u03B8\u03C5\u03C1\u03AF\u03B4\u03B1\u03C2"), /*#__PURE__*/React.createElement(Title, {
48
- size: "sm"
49
- }, "\u039A\u0395\u03A0/\u0396\u0391\u039A\u03A5\u039D\u0398\u039F\u03A5 [\u0396\u0391\u039A\u03A5\u039D\u0398\u0399\u03A9\u039D]"), /*#__PURE__*/React.createElement(Paragraph, null, "\u039A\u0395\u03A0/\u0396\u0391\u039A\u03A5\u039D\u0398\u039F\u03A5 [\u0396\u0391\u039A\u03A5\u039D\u0398\u0399\u03A9\u039D]")), /*#__PURE__*/React.createElement(SectionBreak, {
50
- visible: true,
51
- size: "m"
52
- }), /*#__PURE__*/React.createElement(Button, null, "\u039D\u03AD\u03B1 \u03C5\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7"), /*#__PURE__*/React.createElement(Accordion, null, /*#__PURE__*/React.createElement(AccordionItem, null, /*#__PURE__*/React.createElement(AccordionSectionSummary, null, /*#__PURE__*/React.createElement(AccordionSectionSummaryHeading, null, "\u03A5\u03C0\u03BF\u03B8\u03AD\u03C3\u03B5\u03B9\u03C2"))), /*#__PURE__*/React.createElement(AccordionItem, null, /*#__PURE__*/React.createElement(AccordionSectionSummary, null, /*#__PURE__*/React.createElement(AccordionSectionSummaryHeading, null, "\u0394\u03B9\u03B1\u03C7\u03B5\u03AF\u03C1\u03B9\u03C3\u03B7")), /*#__PURE__*/React.createElement(NavVertical, null, /*#__PURE__*/React.createElement(NavVerticalItem, null, "\u03A7\u03C1\u03AE\u03C3\u03C4\u03B5\u03C2"), /*#__PURE__*/React.createElement(NavVerticalItem, null, "\u0391\u03B9\u03C4\u03AE\u03BC\u03B1\u03C4\u03B1"))))));
53
-
54
- var _ref3 = /*#__PURE__*/React.createElement(Title, {
55
- size: "xl"
56
- }, "# \u03A5\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7 4");
57
-
58
- var _ref4 = /*#__PURE__*/React.createElement(ButtonGroup, null, /*#__PURE__*/React.createElement(CopyToClipboard, {
59
- text: "AAABBBFFFLLL",
5
+ var _ref = /*#__PURE__*/React.createElement(CopyToClipboard, {
6
+ text: "copied-text",
60
7
  variant: "tooltip",
61
8
  message: "text successfuly copied!"
62
- }, /*#__PURE__*/React.createElement(Button, null, "\u0391\u03C0\u03AC\u03BD\u03C4\u03B7\u03C3\u03B7")), /*#__PURE__*/React.createElement(Button, {
63
- color: "secondary"
64
- }, "\u0391\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE"), /*#__PURE__*/React.createElement(Button, {
65
- color: "secondary"
66
- }, "\u0391\u03C0\u03BF\u03B8\u03AE\u03BA\u03B5\u03C5\u03C3\u03B7"));
67
-
68
- var _ref5 = /*#__PURE__*/React.createElement(Grid, {
69
- item: true,
70
- xs: 12
71
- }, /*#__PURE__*/React.createElement(CopyToClipboard, {
72
- text: "AAABBBFFFLLL",
73
- variant: "banner",
74
- message: "text successfuly copied!"
75
9
  }, /*#__PURE__*/React.createElement(Button, {
76
10
  color: "secondary"
77
- }, "Banner example")));
78
-
79
- var _ref6 = /*#__PURE__*/React.createElement(Grid, {
80
- item: true,
81
- xs: 12
82
- }, /*#__PURE__*/React.createElement(CopyToClipboard, {
83
- text: "AAABBBFFFLLL",
84
- variant: "tooltip",
85
- message: "text successfuly copied!"
86
- }, /*#__PURE__*/React.createElement(Button, {
87
- color: "secondary"
88
- }, "Tooltip example")));
89
-
90
- var _ref7 = /*#__PURE__*/React.createElement(GovGRFooter, null);
11
+ }, "Copy"));
91
12
 
92
13
  export var Default = function Default() {
93
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(AdminLayout, null, _ref, /*#__PURE__*/React.createElement(AdminContainer, null, _ref2, /*#__PURE__*/React.createElement(Grid, {
94
- item: true,
95
- md: 9,
96
- lg: 10
97
- }, /*#__PURE__*/React.createElement(AdminMain, null, /*#__PURE__*/React.createElement(Grid, {
98
- container: true,
99
- spacing: 4
100
- }, /*#__PURE__*/React.createElement(Grid, {
101
- item: true,
102
- xs: 12
103
- }, _ref3, _ref4, /*#__PURE__*/React.createElement(SummaryList, null, fields && fields.map(function (field, index) {
104
- return /*#__PURE__*/React.createElement(SummaryListItem, {
105
- key: index
106
- }, /*#__PURE__*/React.createElement(SummaryListItemKey, null, field.name), /*#__PURE__*/React.createElement(SummaryListItemValue, null, field.value), /*#__PURE__*/React.createElement(SummaryListItemAction, null, /*#__PURE__*/React.createElement(ButtonGroup, null, field.actions && field.actions.map(function (action, subIndex) {
107
- return /*#__PURE__*/React.createElement(CopyToClipboard, {
108
- text: "MMMNNNKKKO",
109
- variant: "tooltip",
110
- key: subIndex
111
- }, /*#__PURE__*/React.createElement(Button, {
112
- key: subIndex,
113
- variant: "link"
114
- }, action));
115
- }))));
116
- }))), _ref5, _ref6)))), _ref7));
14
+ return _ref;
117
15
  };
118
16
  export default Default;
@@ -0,0 +1,120 @@
1
+ import React from 'react';
2
+ import CopyToClipboard from '@digigov/ui/app/CopyToClipboard';
3
+ import { AdminAside, AdminContainer, AdminLayout, AdminMain, AdminTopSection, AdminHeader, AdminHeaderSection, Dropdown, DropdownButton, DropdownContent } from '@digigov/react-extensions/admin';
4
+ import { MoreVertIcon, NavVertical, NavVerticalItem } from '@digigov/react-core';
5
+ import { Accordion, AccordionItem, AccordionSectionSummary, AccordionSectionSummaryHeading } from '@digigov/ui/core/Accordion';
6
+ import { SummaryList, SummaryListItem, SummaryListItemKey, SummaryListItemValue, SummaryListItemAction, Button, BackButton, ButtonGroup } from '@digigov/ui';
7
+ import { HeaderContent, HeaderTitle, HeaderSubtitle, SectionBreak } from '@digigov/ui';
8
+ import Title from '@digigov/ui/typography/Title';
9
+ import Paragraph from '@digigov/ui/typography/Paragraph';
10
+ import GovGRFooter from '@digigov/ui/govgr/Footer';
11
+ import GovGRLogo from '@digigov/ui/govgr/Logo';
12
+ import Grid from '@digigov/ui/layouts/Grid';
13
+ var fields = [{
14
+ name: 'Θέμα',
15
+ value: 'Αίτηση Ληξιαρχικής Πράξης Γάμου'
16
+ }, {
17
+ name: 'Ημερομηνία',
18
+ value: '09/03/2002 14:54:36'
19
+ }, {
20
+ name: 'Κωδικός επαλήθευσης',
21
+ value: 'NdH-EYREW1yd1LUhEOssx4A',
22
+ actions: ['Προβολή', 'Αντιγραφή συνδέσμου']
23
+ }, {
24
+ name: 'Κατάσταση',
25
+ value: 'Εισερχόμενη',
26
+ actions: ['Αλλάγή']
27
+ }, {
28
+ name: 'Χειριστής',
29
+ value: 'Δεν έχει οριστεί χειριστής',
30
+ actions: ['Ανάθεση']
31
+ }];
32
+
33
+ var _ref = /*#__PURE__*/React.createElement(AdminHeader, null, /*#__PURE__*/React.createElement(AdminHeaderSection, null, /*#__PURE__*/React.createElement(HeaderContent, null, /*#__PURE__*/React.createElement(GovGRLogo, null), /*#__PURE__*/React.createElement(HeaderTitle, null, "\u0398\u03C5\u03C1\u03AF\u03B4\u03B5\u03C2")), /*#__PURE__*/React.createElement(HeaderSubtitle, null, /*#__PURE__*/React.createElement(Dropdown, {
34
+ align: "right"
35
+ }, /*#__PURE__*/React.createElement(DropdownButton, {
36
+ variant: "link"
37
+ }, "\u0388\u03C7\u03B5\u03C4\u03B5 \u03C3\u03C5\u03BD\u03B4\u03B5\u03B8\u03B5\u03AF \u03C9\u03C2 \u039A\u03B1\u03BB\u03BB\u03B9\u03CC\u03C0\u03B7 \u03A0\u03B1\u03C0\u03B1\u03B4\u03BF\u03C0\u03BF\u03CD\u03BB\u03BF\u03C5", /*#__PURE__*/React.createElement(MoreVertIcon, null)), /*#__PURE__*/React.createElement(DropdownContent, null, /*#__PURE__*/React.createElement(NavVertical, null, /*#__PURE__*/React.createElement(NavVerticalItem, {
38
+ href: "#"
39
+ }, "\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1"), /*#__PURE__*/React.createElement(NavVerticalItem, {
40
+ href: "#"
41
+ }, "\u039C\u03B5\u03C4\u03B1\u03BA\u03AF\u03BD\u03B7\u03C3\u03B7"), /*#__PURE__*/React.createElement(NavVerticalItem, {
42
+ href: "#"
43
+ }, "\u039F\u03C1\u03B9\u03C3\u03C4\u03B9\u03BA\u03AE \u03B4\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE")))))));
44
+
45
+ var _ref2 = /*#__PURE__*/React.createElement(Grid, {
46
+ item: true,
47
+ md: 3,
48
+ lg: 2
49
+ }, /*#__PURE__*/React.createElement(AdminAside, null, /*#__PURE__*/React.createElement(AdminTopSection, null, /*#__PURE__*/React.createElement(BackButton, null, "\u0391\u03BB\u03BB\u03B1\u03B3\u03AE \u03B8\u03C5\u03C1\u03AF\u03B4\u03B1\u03C2"), /*#__PURE__*/React.createElement(Title, {
50
+ size: "sm"
51
+ }, "\u039A\u0395\u03A0/\u0396\u0391\u039A\u03A5\u039D\u0398\u039F\u03A5 [\u0396\u0391\u039A\u03A5\u039D\u0398\u0399\u03A9\u039D]"), /*#__PURE__*/React.createElement(Paragraph, null, "\u039A\u0395\u03A0/\u0396\u0391\u039A\u03A5\u039D\u0398\u039F\u03A5 [\u0396\u0391\u039A\u03A5\u039D\u0398\u0399\u03A9\u039D]")), /*#__PURE__*/React.createElement(SectionBreak, {
52
+ visible: true,
53
+ size: "m"
54
+ }), /*#__PURE__*/React.createElement(Button, null, "\u039D\u03AD\u03B1 \u03C5\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7"), /*#__PURE__*/React.createElement(Accordion, null, /*#__PURE__*/React.createElement(AccordionItem, null, /*#__PURE__*/React.createElement(AccordionSectionSummary, null, /*#__PURE__*/React.createElement(AccordionSectionSummaryHeading, null, "\u03A5\u03C0\u03BF\u03B8\u03AD\u03C3\u03B5\u03B9\u03C2"))), /*#__PURE__*/React.createElement(AccordionItem, null, /*#__PURE__*/React.createElement(AccordionSectionSummary, null, /*#__PURE__*/React.createElement(AccordionSectionSummaryHeading, null, "\u0394\u03B9\u03B1\u03C7\u03B5\u03AF\u03C1\u03B9\u03C3\u03B7")), /*#__PURE__*/React.createElement(NavVertical, null, /*#__PURE__*/React.createElement(NavVerticalItem, null, "\u03A7\u03C1\u03AE\u03C3\u03C4\u03B5\u03C2"), /*#__PURE__*/React.createElement(NavVerticalItem, null, "\u0391\u03B9\u03C4\u03AE\u03BC\u03B1\u03C4\u03B1"))))));
55
+
56
+ var _ref3 = /*#__PURE__*/React.createElement(Title, {
57
+ size: "xl"
58
+ }, "# \u03A5\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7 4");
59
+
60
+ var _ref4 = /*#__PURE__*/React.createElement(ButtonGroup, null, /*#__PURE__*/React.createElement(CopyToClipboard, {
61
+ text: "AAABBBFFFLLL",
62
+ variant: "tooltip",
63
+ message: "text successfuly copied!"
64
+ }, /*#__PURE__*/React.createElement(Button, null, "\u0391\u03C0\u03AC\u03BD\u03C4\u03B7\u03C3\u03B7")), /*#__PURE__*/React.createElement(Button, {
65
+ color: "secondary"
66
+ }, "\u0391\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE"), /*#__PURE__*/React.createElement(Button, {
67
+ color: "secondary"
68
+ }, "\u0391\u03C0\u03BF\u03B8\u03AE\u03BA\u03B5\u03C5\u03C3\u03B7"));
69
+
70
+ var _ref5 = /*#__PURE__*/React.createElement(Grid, {
71
+ item: true,
72
+ xs: 12
73
+ }, /*#__PURE__*/React.createElement(CopyToClipboard, {
74
+ text: "AAABBBFFFLLL",
75
+ variant: "banner",
76
+ message: "text successfuly copied!"
77
+ }, /*#__PURE__*/React.createElement(Button, {
78
+ color: "secondary"
79
+ }, "Banner example")));
80
+
81
+ var _ref6 = /*#__PURE__*/React.createElement(Grid, {
82
+ item: true,
83
+ xs: 12
84
+ }, /*#__PURE__*/React.createElement(CopyToClipboard, {
85
+ text: "AAABBBFFFLLL",
86
+ variant: "tooltip",
87
+ message: "text successfuly copied!"
88
+ }, /*#__PURE__*/React.createElement(Button, {
89
+ color: "secondary"
90
+ }, "Tooltip example")));
91
+
92
+ var _ref7 = /*#__PURE__*/React.createElement(GovGRFooter, null);
93
+
94
+ export var MultipleCopies = function MultipleCopies() {
95
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(AdminLayout, null, _ref, /*#__PURE__*/React.createElement(AdminContainer, null, _ref2, /*#__PURE__*/React.createElement(Grid, {
96
+ item: true,
97
+ md: 9,
98
+ lg: 10
99
+ }, /*#__PURE__*/React.createElement(AdminMain, null, /*#__PURE__*/React.createElement(Grid, {
100
+ container: true,
101
+ spacing: 4
102
+ }, /*#__PURE__*/React.createElement(Grid, {
103
+ item: true,
104
+ xs: 12
105
+ }, _ref3, _ref4, /*#__PURE__*/React.createElement(SummaryList, null, fields && fields.map(function (field, index) {
106
+ return /*#__PURE__*/React.createElement(SummaryListItem, {
107
+ key: index
108
+ }, /*#__PURE__*/React.createElement(SummaryListItemKey, null, field.name), /*#__PURE__*/React.createElement(SummaryListItemValue, null, field.value), /*#__PURE__*/React.createElement(SummaryListItemAction, null, /*#__PURE__*/React.createElement(ButtonGroup, null, field.actions && field.actions.map(function (action, subIndex) {
109
+ return /*#__PURE__*/React.createElement(CopyToClipboard, {
110
+ text: "MMMNNNKKKO",
111
+ variant: "tooltip",
112
+ key: subIndex
113
+ }, /*#__PURE__*/React.createElement(Button, {
114
+ key: subIndex,
115
+ variant: "link"
116
+ }, action));
117
+ }))));
118
+ }))), _ref5, _ref6)))), _ref7));
119
+ };
120
+ export default MultipleCopies;
@@ -0,0 +1,22 @@
1
+ ---
2
+ id: copy-to-clipboard
3
+ title: CopyToClipboard
4
+ ---
5
+
6
+ ```bash
7
+ import CopyToClipboard from '@digigov/ui/app/CopyToClipboard';
8
+ ```
9
+
10
+ ## How to use
11
+
12
+ ### Default
13
+
14
+ <Story packageName="@digigov/ui" component="app/CopyToClipboard" story="default.tsx" />
15
+
16
+ ### Banner
17
+
18
+ <Story packageName="@digigov/ui" component="app/CopyToClipboard" story="banner.tsx" />
19
+
20
+ ### Layout example
21
+
22
+ <Story packageName="@digigov/ui" component="app/CopyToClipboard" story="MultipleCopies.tsx" />
@@ -1,3 +1,30 @@
1
1
  ---
2
+ id: footer
2
3
  title: Footer
3
4
  ---
5
+
6
+ ```bash
7
+ import Footer from '@digigov/ui/app/Footer';
8
+ ```
9
+
10
+ ## How to use
11
+
12
+ ### Default footer
13
+
14
+ <Story packageName="@digigov/ui" component="app/Footer" story="Default.tsx" />
15
+
16
+ ### Footer with logos
17
+
18
+ <Story packageName="@digigov/ui" component="app/Footer" story="FooterWithLogo.tsx" />
19
+
20
+ ### Footer with secondary navigation
21
+
22
+ <Story packageName="@digigov/ui" component="app/Footer" story="FooterWithSecondaryNavigation.tsx" />
23
+
24
+ ### Footer with links to meta information
25
+
26
+ <Story packageName="@digigov/ui" component="app/Footer" story="FooterWithLink.tsx" />
27
+
28
+ ### All inclusive footer
29
+
30
+ <Story packageName="@digigov/ui" component="app/Footer" story="FooterAllInclusive.tsx" />
@@ -3,7 +3,25 @@ id: header
3
3
  title: Header
4
4
  ---
5
5
 
6
+
7
+ ```bash
8
+ import Header from '@digigov/ui/app/Header';
9
+ ```
10
+
11
+ ## How to use
12
+
13
+ ### Default header
14
+
6
15
  <Story title="### Default" packageName="@digigov/ui" component="app/Header" story="Default.tsx" />
16
+
17
+ ### Header with service name
18
+
7
19
  <Story packageName="@digigov/ui" component="app/Header" story="WithServiceName.tsx" />
20
+
21
+ ### Header with service logo and service name
22
+
8
23
  <Story packageName="@digigov/ui" component="app/Header" story="WithServiceNameAndLogo.tsx" />
24
+
25
+ ### Default header with navigation
26
+
9
27
  <Story packageName="@digigov/ui" component="app/Header" story="WithNavigation.tsx" />
@@ -2,20 +2,21 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
3
3
  import _typeof from "@babel/runtime/helpers/typeof";
4
4
  import React from 'react';
5
- import { defaultTranslate } from '@digigov/ui/app/i18n';
6
- import { useTranslation } from '@digigov/ui/app';
5
+ import { defaultTranslate, useTranslation } from '@digigov/ui/app/i18n';
7
6
 
8
7
  var isObject = function isObject(value) {
9
8
  return !!(value && _typeof(value) === 'object' && !Array.isArray(value));
10
9
  };
11
10
 
12
11
  var resultTranslate = function resultTranslate(translation, children) {
13
- var parser = new DOMParser();
12
+ if (typeof DOMParser !== 'undefined') {
13
+ var parser = new DOMParser();
14
14
 
15
- var childrenCloned = _toConsumableArray(children);
15
+ var childrenCloned = _toConsumableArray(children);
16
16
 
17
- var doc1 = parser.parseFromString("<div>".concat(translation.replace(/<([0-9])>/g, '<t$1>').replace(/<\/([0-9])>/g, '</t$1>'), "</div>"), 'application/xml');
18
- return recursiveReplace(childrenCloned, doc1.children[0].childNodes);
17
+ var doc1 = parser.parseFromString("<div>".concat(translation.replace(/<([0-9])>/g, '<t$1>').replace(/<\/([0-9])>/g, '</t$1>'), "</div>"), 'application/xml');
18
+ return recursiveReplace(childrenCloned, doc1.children[0].childNodes);
19
+ }
19
20
  };
20
21
 
21
22
  var recursiveReplace = function recursiveReplace(original, translation) {
@@ -0,0 +1,12 @@
1
+ ---
2
+ id: not-found
3
+ title: NotFound
4
+ ---
5
+
6
+ ```bash
7
+ import NotFound from '@digigov/ui/app/NotFound';
8
+ ```
9
+
10
+ ## How to use
11
+
12
+ <Story packageName="@digigov/ui" component="app/NotFound" story="Default.tsx" />
@@ -0,0 +1,12 @@
1
+ ---
2
+ id: phase-banner-header
3
+ title: PhaseBannerHeader
4
+ ---
5
+
6
+ ```bash
7
+ import PhaseBannerHeader from '@digigov/ui/app/PhaseBannerHeader';
8
+ ```
9
+
10
+ ## How to use
11
+
12
+ <Story packageName="@digigov/ui" component="app/PhaseBannerHeader" story="Default.tsx" />