@digigov/ui 0.28.1 → 0.28.3

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 (704) hide show
  1. package/CHANGELOG.md +16 -1
  2. package/README.md +1 -0
  3. package/admin/AutoComplete/AutoComplete.stories.d.ts +1 -0
  4. package/admin/AutoComplete/AutoComplete.stories.js +2 -1
  5. package/admin/AutoComplete/Status/index.d.ts +2 -2
  6. package/admin/AutoComplete/Status/index.js +4 -4
  7. package/admin/AutoComplete/index.d.ts +2 -2
  8. package/admin/AutoComplete/index.mdx +4 -0
  9. package/admin/CircularProgress/CircularProgress.stories.d.ts +2 -0
  10. package/admin/CircularProgress/CircularProgress.stories.js +3 -2
  11. package/admin/CircularProgress/__stories__/Default.js +1 -3
  12. package/admin/CopyToClipboard/CopyToClipboard.stories.d.ts +1 -1
  13. package/admin/CopyToClipboard/CopyToClipboard.stories.js +2 -15
  14. package/admin/CopyToClipboard/index.mdx +2 -2
  15. package/admin/Drawer/Drawer.stories.d.ts +7 -1
  16. package/admin/Drawer/Drawer.stories.js +25 -3
  17. package/admin/Drawer/__stories__/Default.js +7 -46
  18. package/admin/Drawer/index.mdx +4 -0
  19. package/admin/Dropdown/Dropdown.stories.d.ts +3 -0
  20. package/admin/Dropdown/Dropdown.stories.js +4 -1
  21. package/admin/Dropdown/__stories__/AlignRight.js +4 -3
  22. package/admin/Dropdown/__stories__/Default.js +5 -3
  23. package/admin/Dropdown/__stories__/PlacementTop.js +4 -3
  24. package/admin/Dropdown/index.d.ts +3 -2
  25. package/admin/Dropdown/index.js +12 -4
  26. package/admin/Dropdown/index.mdx +4 -1
  27. package/admin/Modal/Modal.stories.d.ts +3 -0
  28. package/admin/Modal/Modal.stories.js +4 -1
  29. package/admin/Modal/__stories__/AlertDialog.js +11 -31
  30. package/admin/Modal/__stories__/Default.js +10 -26
  31. package/admin/Modal/index.d.ts +2 -2
  32. package/admin/Modal/index.js +5 -5
  33. package/admin/Modal/index.mdx +4 -8
  34. package/admin/Pagination/Pagination.stories.d.ts +4 -0
  35. package/admin/Pagination/Pagination.stories.js +18 -1
  36. package/admin/Pagination/__stories__/Default.js +1 -27
  37. package/admin/Pagination/__stories__/PaginationSmall.d.ts +2 -0
  38. package/admin/Pagination/__stories__/PaginationSmall.js +61 -0
  39. package/admin/Pagination/index.d.ts +3 -2
  40. package/admin/Pagination/index.js +12 -4
  41. package/admin/Pagination/index.mdx +4 -0
  42. package/admin/StepNav/StepNav.stories.d.ts +2 -0
  43. package/admin/StepNav/StepNav.stories.js +3 -1
  44. package/admin/TaskList/TaskList.stories.d.ts +2 -0
  45. package/admin/TaskList/TaskList.stories.js +3 -1
  46. package/admin/TaskList/__stories__/Default.js +2 -2
  47. package/admin/Timeline/Timeline.stories.d.ts +2 -0
  48. package/admin/Timeline/Timeline.stories.js +3 -1
  49. package/admin/Timeline/__stories__/Default.js +3 -1
  50. package/app/Confirmation/Confirmation.mdx +4 -0
  51. package/app/Confirmation/Confirmation.stories.d.ts +5 -1
  52. package/app/Confirmation/Confirmation.stories.js +6 -3
  53. package/app/Confirmation/index.d.ts +3 -3
  54. package/app/Confirmation/index.js +44 -15
  55. package/app/Footer/Footer.mdx +4 -0
  56. package/app/Footer/Footer.stories.d.ts +5 -0
  57. package/app/Footer/Footer.stories.js +6 -2
  58. package/app/Footer/index.d.ts +2 -0
  59. package/app/Footer/index.js +28 -2
  60. package/app/Header/Header.stories.d.ts +4 -0
  61. package/app/Header/Header.stories.js +4 -0
  62. package/app/Header/index.mdx +4 -0
  63. package/app/I18nText.js +1 -0
  64. package/app/NotFound/NotFound.stories.d.ts +1 -0
  65. package/app/NotFound/NotFound.stories.js +2 -1
  66. package/app/NotFound/index.mdx +4 -0
  67. package/app/PageTitle.d.ts +5 -9
  68. package/app/PageTitle.js +57 -61
  69. package/app/PhaseBannerHeader/PhaseBannerHeader.stories.d.ts +2 -0
  70. package/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +3 -2
  71. package/app/PhaseBannerHeader/index.mdx +4 -0
  72. package/app/QrCodeScanner/QrCodeScanner.stories.d.ts +1 -0
  73. package/app/QrCodeScanner/QrCodeScanner.stories.js +2 -1
  74. package/app/QrCodeScanner/index.d.ts +8 -1
  75. package/app/QrCodeScanner/index.js +3 -5
  76. package/app/QrCodeViewer/QRCode.stories.d.ts +1 -0
  77. package/app/QrCodeViewer/QRCode.stories.js +2 -1
  78. package/app/QrCodeViewer/index.d.ts +5 -7
  79. package/app/QrCodeViewer/index.js +2 -70
  80. package/app/QrCodeViewer/index.mdx +4 -0
  81. package/app/QrCodeViewer/types.d.ts +0 -1
  82. package/app/index.d.ts +2 -0
  83. package/app/index.js +26 -0
  84. package/core/Accordion/Accordion.stories.d.ts +5 -0
  85. package/core/Accordion/Accordion.stories.js +6 -2
  86. package/core/Accordion/Accordion.stories.playwright.json +1 -7
  87. package/core/Accordion/__stories__/Default.js +3 -1
  88. package/core/Accordion/__stories__/WithHints.js +3 -1
  89. package/core/Accordion/index.d.ts +6 -0
  90. package/core/Accordion/index.js +85 -6
  91. package/core/Accordion/index.mdx +4 -0
  92. package/core/BackLink/BackLink.stories.d.ts +1 -0
  93. package/core/BackLink/BackLink.stories.js +2 -1
  94. package/core/BackLink/index.mdx +4 -0
  95. package/core/Blockquote/Blockquote.stories.d.ts +3 -0
  96. package/core/Blockquote/Blockquote.stories.js +4 -1
  97. package/core/Blockquote/index.mdx +4 -0
  98. package/core/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -0
  99. package/core/Breadcrumbs/Breadcrumbs.stories.js +4 -1
  100. package/core/Breadcrumbs/breadcrumbs.mdx +4 -0
  101. package/core/Button/Button.stories.d.ts +3 -0
  102. package/core/Button/Button.stories.js +5 -2
  103. package/core/Button/index.mdx +4 -1
  104. package/core/Card/Card.stories.d.ts +4 -0
  105. package/core/Card/Card.stories.js +5 -1
  106. package/core/Card/__stories__/WithClickableContent.js +2 -2
  107. package/core/Card/card.mdx +4 -0
  108. package/core/Checkboxes/Checkbox.stories.d.ts +3 -0
  109. package/core/Checkboxes/Checkbox.stories.js +4 -1
  110. package/core/Checkboxes/__stories__/ConditionalReveal.js +1 -1
  111. package/core/Checkboxes/__stories__/NoneAnswerWithError.js +2 -2
  112. package/core/Checkboxes/checkboxes.mdx +4 -0
  113. package/core/DateInput/DateInput.stories.d.ts +3 -0
  114. package/core/DateInput/DateInput.stories.js +4 -1
  115. package/core/DateInput/index.d.ts +2 -2
  116. package/core/DateInput/index.js +5 -5
  117. package/core/DateInput/index.mdx +5 -0
  118. package/core/Details/Details.stories.d.ts +3 -0
  119. package/core/Details/Details.stories.js +4 -1
  120. package/core/Details/index.d.ts +3 -3
  121. package/core/Details/index.js +44 -21
  122. package/core/Details/index.mdx +4 -0
  123. package/core/Divider/Divider.stories.d.ts +1 -0
  124. package/core/Divider/Divider.stories.js +2 -1
  125. package/core/Divider/index.js +1 -0
  126. package/core/ErrorMessage/ErrorMessage.stories.d.ts +3 -0
  127. package/core/ErrorMessage/ErrorMessage.stories.js +4 -1
  128. package/core/ErrorMessage/index.mdx +4 -0
  129. package/core/ErrorSummary/ErrorSummary.stories.d.ts +3 -0
  130. package/core/ErrorSummary/ErrorSummary.stories.js +4 -1
  131. package/core/ErrorSummary/__stories__/LinkedToInput.js +2 -2
  132. package/core/ErrorSummary/index.d.ts +1 -1
  133. package/core/ErrorSummary/index.js +19 -8
  134. package/core/ErrorSummary/index.mdx +4 -0
  135. package/core/Field/index.d.ts +2 -2
  136. package/core/Field/index.js +5 -5
  137. package/core/FileUpload/FileUpload.stories.d.ts +2 -0
  138. package/core/FileUpload/FileUpload.stories.js +3 -1
  139. package/core/FileUpload/index.mdx +4 -1
  140. package/core/Label/index.d.ts +2 -2
  141. package/core/Label/index.js +5 -5
  142. package/core/Link/Link.stories.d.ts +2 -0
  143. package/core/Link/Link.stories.js +3 -1
  144. package/core/Link/index.d.ts +3 -3
  145. package/core/Link/index.js +15 -6
  146. package/core/Link/link.mdx +4 -0
  147. package/core/List/List.d.ts +1 -1
  148. package/core/List/List.js +19 -8
  149. package/core/List/List.stories.d.ts +4 -0
  150. package/core/List/List.stories.js +5 -2
  151. package/core/List/index.mdx +4 -0
  152. package/core/Masthead/Masthead.stories.d.ts +4 -0
  153. package/core/Masthead/Masthead.stories.js +5 -1
  154. package/core/Masthead/masthead.mdx +4 -0
  155. package/core/NavList/NavList.stories.d.ts +3 -0
  156. package/core/NavList/NavList.stories.js +4 -1
  157. package/core/NavList/index.d.ts +3 -1
  158. package/core/NavList/index.js +26 -8
  159. package/core/NavList/index.mdx +4 -0
  160. package/core/NotificationBanner/NotificationBanner.stories.d.ts +4 -0
  161. package/core/NotificationBanner/NotificationBanner.stories.js +5 -1
  162. package/core/NotificationBanner/index.d.ts +3 -3
  163. package/core/NotificationBanner/index.js +8 -2
  164. package/core/NotificationBanner/index.mdx +4 -0
  165. package/core/PhaseBanner/PhaseBanner.stories.d.ts +3 -0
  166. package/core/PhaseBanner/PhaseBanner.stories.js +4 -1
  167. package/core/PhaseBanner/index.mdx +4 -0
  168. package/core/Radios/Radios.stories.d.ts +3 -0
  169. package/core/Radios/Radios.stories.js +4 -1
  170. package/core/Radios/__stories__/ConditionalReveal.js +1 -1
  171. package/core/Radios/index.d.ts +2 -2
  172. package/core/Radios/index.js +5 -5
  173. package/core/Radios/index.mdx +14 -0
  174. package/core/Select/Select.stories.d.ts +3 -0
  175. package/core/Select/Select.stories.js +4 -1
  176. package/core/Select/__stories__/Default.js +2 -2
  177. package/core/Select/__stories__/DisabledInput.js +2 -2
  178. package/core/Select/__stories__/WithHint.js +2 -2
  179. package/core/Select/index.d.ts +2 -2
  180. package/core/Select/index.js +5 -5
  181. package/core/Select/index.mdx +4 -0
  182. package/core/SummaryList/SummaryList.stories.d.ts +4 -0
  183. package/core/SummaryList/SummaryList.stories.js +5 -2
  184. package/core/SummaryList/index.mdx +4 -0
  185. package/core/Table/Table.stories.d.ts +4 -0
  186. package/core/Table/Table.stories.js +5 -2
  187. package/core/Table/__stories__/WithFloatingScroll.js +1 -27
  188. package/core/Table/index.d.ts +2 -0
  189. package/core/Table/index.js +23 -2
  190. package/core/Table/index.mdx +4 -1
  191. package/core/Tabs/Tabs.stories.d.ts +5 -0
  192. package/core/Tabs/Tabs.stories.js +6 -2
  193. package/core/Tabs/index.d.ts +5 -5
  194. package/core/Tabs/index.js +74 -36
  195. package/core/Tabs/index.mdx +4 -0
  196. package/core/TextArea/TextArea.stories.d.ts +3 -0
  197. package/core/TextArea/TextArea.stories.js +4 -1
  198. package/core/TextArea/__stories__/Default.js +2 -2
  199. package/core/TextArea/__stories__/DisabledInput.js +2 -2
  200. package/core/TextArea/__stories__/LimitedCharacters.js +2 -2
  201. package/core/TextArea/__stories__/MultipleQuestions.js +2 -2
  202. package/core/TextArea/__stories__/WithDeclaredRows.js +2 -2
  203. package/core/TextArea/__stories__/WithErrorMessage.js +2 -2
  204. package/core/TextArea/__stories__/WithHint.js +2 -2
  205. package/core/TextArea/index.mdx +4 -0
  206. package/core/TextInput/TextInput.stories.d.ts +3 -0
  207. package/core/TextInput/TextInput.stories.js +4 -1
  208. package/core/TextInput/__stories__/AskingForNumbers.js +2 -2
  209. package/core/TextInput/__stories__/Default.js +2 -2
  210. package/core/TextInput/__stories__/DisabledInput.js +2 -2
  211. package/core/TextInput/__stories__/FixedWidths.js +7 -7
  212. package/core/TextInput/__stories__/FluidWidths.js +7 -7
  213. package/core/TextInput/__stories__/MultipleQuestions.js +2 -2
  214. package/core/TextInput/__stories__/WithErrorMessage.js +2 -2
  215. package/core/TextInput/__stories__/WithHint.js +2 -2
  216. package/core/TextInput/index.mdx +4 -0
  217. package/core/VisuallyHidden/VisuallyHidden.stories.d.ts +1 -0
  218. package/core/VisuallyHidden/VisuallyHidden.stories.js +2 -1
  219. package/core/VisuallyHidden/index.mdx +4 -1
  220. package/core/WarningText/WarningText.stories.d.ts +4 -0
  221. package/core/WarningText/WarningText.stories.js +5 -2
  222. package/core/WarningText/index.d.ts +1 -1
  223. package/core/WarningText/index.js +19 -8
  224. package/core/WarningText/index.mdx +4 -0
  225. package/core/index.d.ts +8 -5
  226. package/core/index.js +74 -65
  227. package/es/admin/AutoComplete/AutoComplete.stories.js +2 -1
  228. package/es/admin/AutoComplete/Status/index.js +4 -4
  229. package/es/admin/AutoComplete/index.mdx +4 -0
  230. package/es/admin/CircularProgress/CircularProgress.stories.js +3 -2
  231. package/es/admin/CircularProgress/__stories__/Default.js +1 -2
  232. package/es/admin/CopyToClipboard/CopyToClipboard.stories.js +3 -3
  233. package/es/admin/CopyToClipboard/index.mdx +2 -2
  234. package/es/admin/Drawer/Drawer.stories.js +8 -2
  235. package/es/admin/Drawer/__stories__/Default.js +8 -47
  236. package/es/admin/Drawer/index.mdx +4 -0
  237. package/es/admin/Dropdown/Dropdown.stories.js +4 -1
  238. package/es/admin/Dropdown/__stories__/AlignRight.js +4 -3
  239. package/es/admin/Dropdown/__stories__/Default.js +5 -3
  240. package/es/admin/Dropdown/__stories__/PlacementTop.js +4 -3
  241. package/es/admin/Dropdown/index.js +3 -2
  242. package/es/admin/Dropdown/index.mdx +4 -1
  243. package/es/admin/Modal/Modal.stories.js +4 -1
  244. package/es/admin/Modal/__stories__/AlertDialog.js +12 -31
  245. package/es/admin/Modal/__stories__/Default.js +11 -26
  246. package/es/admin/Modal/index.js +2 -2
  247. package/es/admin/Modal/index.mdx +4 -8
  248. package/es/admin/Pagination/Pagination.stories.js +6 -2
  249. package/es/admin/Pagination/__stories__/Default.js +1 -27
  250. package/es/admin/Pagination/__stories__/PaginationSmall.js +38 -0
  251. package/es/admin/Pagination/index.js +3 -2
  252. package/es/admin/Pagination/index.mdx +4 -0
  253. package/es/admin/StepNav/StepNav.stories.js +3 -1
  254. package/es/admin/TaskList/TaskList.stories.js +3 -1
  255. package/es/admin/TaskList/__stories__/Default.js +2 -2
  256. package/es/admin/Timeline/Timeline.stories.js +3 -1
  257. package/es/admin/Timeline/__stories__/Default.js +3 -2
  258. package/es/app/Confirmation/Confirmation.mdx +4 -0
  259. package/es/app/Confirmation/Confirmation.stories.js +6 -3
  260. package/es/app/Confirmation/index.js +4 -4
  261. package/es/app/Footer/Footer.mdx +4 -0
  262. package/es/app/Footer/Footer.stories.js +6 -2
  263. package/es/app/Footer/index.js +3 -1
  264. package/es/app/Header/Header.stories.js +4 -0
  265. package/es/app/Header/index.mdx +4 -0
  266. package/es/app/I18nText.js +1 -0
  267. package/es/app/NotFound/NotFound.stories.js +2 -1
  268. package/es/app/NotFound/index.mdx +4 -0
  269. package/es/app/PageTitle.js +6 -57
  270. package/es/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +3 -2
  271. package/es/app/PhaseBannerHeader/index.mdx +4 -0
  272. package/es/app/QrCodeScanner/QrCodeScanner.stories.js +2 -1
  273. package/es/app/QrCodeScanner/index.js +3 -5
  274. package/es/app/QrCodeViewer/QRCode.stories.js +2 -1
  275. package/es/app/QrCodeViewer/index.js +2 -69
  276. package/es/app/QrCodeViewer/index.mdx +4 -0
  277. package/es/app/index.js +2 -0
  278. package/es/core/Accordion/Accordion.stories.js +6 -2
  279. package/es/core/Accordion/Accordion.stories.playwright.json +1 -7
  280. package/es/core/Accordion/__stories__/Default.js +3 -1
  281. package/es/core/Accordion/__stories__/WithHints.js +3 -1
  282. package/es/core/Accordion/index.js +6 -0
  283. package/es/core/Accordion/index.mdx +4 -0
  284. package/es/core/BackLink/BackLink.stories.js +2 -1
  285. package/es/core/BackLink/index.mdx +4 -0
  286. package/es/core/Blockquote/Blockquote.stories.js +4 -1
  287. package/es/core/Blockquote/index.mdx +4 -0
  288. package/es/core/Breadcrumbs/Breadcrumbs.stories.js +4 -1
  289. package/es/core/Breadcrumbs/breadcrumbs.mdx +4 -0
  290. package/es/core/Button/Button.stories.js +5 -2
  291. package/es/core/Button/index.mdx +4 -1
  292. package/es/core/Card/Card.stories.js +5 -1
  293. package/es/core/Card/__stories__/WithClickableContent.js +2 -2
  294. package/es/core/Card/card.mdx +4 -0
  295. package/es/core/Checkboxes/Checkbox.stories.js +4 -1
  296. package/es/core/Checkboxes/__stories__/ConditionalReveal.js +1 -1
  297. package/es/core/Checkboxes/__stories__/NoneAnswerWithError.js +2 -2
  298. package/es/core/Checkboxes/checkboxes.mdx +4 -0
  299. package/es/core/DateInput/DateInput.stories.js +4 -1
  300. package/es/core/DateInput/index.js +2 -2
  301. package/es/core/DateInput/index.mdx +5 -0
  302. package/es/core/Details/Details.stories.js +4 -1
  303. package/es/core/Details/index.js +3 -3
  304. package/es/core/Details/index.mdx +4 -0
  305. package/es/core/Divider/Divider.stories.js +2 -1
  306. package/es/core/Divider/index.js +1 -0
  307. package/es/core/ErrorMessage/ErrorMessage.stories.js +4 -1
  308. package/es/core/ErrorMessage/index.mdx +4 -0
  309. package/es/core/ErrorSummary/ErrorSummary.stories.js +4 -1
  310. package/es/core/ErrorSummary/__stories__/LinkedToInput.js +4 -4
  311. package/es/core/ErrorSummary/index.js +1 -1
  312. package/es/core/ErrorSummary/index.mdx +4 -0
  313. package/es/core/Field/index.js +2 -2
  314. package/es/core/FileUpload/FileUpload.stories.js +3 -1
  315. package/es/core/FileUpload/index.mdx +4 -1
  316. package/es/core/Label/index.js +2 -2
  317. package/es/core/Link/Link.stories.js +3 -1
  318. package/es/core/Link/index.js +8 -6
  319. package/es/core/Link/link.mdx +4 -0
  320. package/es/core/List/List.js +1 -1
  321. package/es/core/List/List.stories.js +5 -2
  322. package/es/core/List/index.mdx +4 -0
  323. package/es/core/Masthead/Masthead.stories.js +5 -1
  324. package/es/core/Masthead/masthead.mdx +4 -0
  325. package/es/core/NavList/NavList.stories.js +4 -1
  326. package/es/core/NavList/index.js +4 -2
  327. package/es/core/NavList/index.mdx +4 -0
  328. package/es/core/NotificationBanner/NotificationBanner.stories.js +5 -1
  329. package/es/core/NotificationBanner/index.js +3 -3
  330. package/es/core/NotificationBanner/index.mdx +4 -0
  331. package/es/core/PhaseBanner/PhaseBanner.stories.js +4 -1
  332. package/es/core/PhaseBanner/index.mdx +4 -0
  333. package/es/core/Radios/Radios.stories.js +4 -1
  334. package/es/core/Radios/__stories__/ConditionalReveal.js +1 -1
  335. package/es/core/Radios/index.js +2 -2
  336. package/es/core/Radios/index.mdx +14 -0
  337. package/es/core/Select/Select.stories.js +4 -1
  338. package/es/core/Select/__stories__/Default.js +2 -2
  339. package/es/core/Select/__stories__/DisabledInput.js +2 -2
  340. package/es/core/Select/__stories__/WithHint.js +2 -2
  341. package/es/core/Select/index.js +2 -2
  342. package/es/core/Select/index.mdx +4 -0
  343. package/es/core/SummaryList/SummaryList.stories.js +5 -2
  344. package/es/core/SummaryList/index.mdx +4 -0
  345. package/es/core/Table/Table.stories.js +5 -2
  346. package/es/core/Table/__stories__/WithFloatingScroll.js +1 -27
  347. package/es/core/Table/index.js +3 -1
  348. package/es/core/Table/index.mdx +4 -1
  349. package/es/core/Tabs/Tabs.stories.js +6 -2
  350. package/es/core/Tabs/index.js +5 -5
  351. package/es/core/Tabs/index.mdx +4 -0
  352. package/es/core/TextArea/TextArea.stories.js +4 -1
  353. package/es/core/TextArea/__stories__/Default.js +4 -4
  354. package/es/core/TextArea/__stories__/DisabledInput.js +4 -4
  355. package/es/core/TextArea/__stories__/LimitedCharacters.js +4 -4
  356. package/es/core/TextArea/__stories__/MultipleQuestions.js +4 -4
  357. package/es/core/TextArea/__stories__/WithDeclaredRows.js +4 -4
  358. package/es/core/TextArea/__stories__/WithErrorMessage.js +4 -4
  359. package/es/core/TextArea/__stories__/WithHint.js +4 -4
  360. package/es/core/TextArea/index.mdx +4 -0
  361. package/es/core/TextInput/TextInput.stories.js +4 -1
  362. package/es/core/TextInput/__stories__/AskingForNumbers.js +4 -4
  363. package/es/core/TextInput/__stories__/Default.js +4 -4
  364. package/es/core/TextInput/__stories__/DisabledInput.js +4 -4
  365. package/es/core/TextInput/__stories__/FixedWidths.js +9 -9
  366. package/es/core/TextInput/__stories__/FluidWidths.js +9 -9
  367. package/es/core/TextInput/__stories__/MultipleQuestions.js +4 -4
  368. package/es/core/TextInput/__stories__/WithErrorMessage.js +5 -5
  369. package/es/core/TextInput/__stories__/WithHint.js +4 -4
  370. package/es/core/TextInput/index.mdx +4 -0
  371. package/es/core/VisuallyHidden/VisuallyHidden.stories.js +2 -1
  372. package/es/core/VisuallyHidden/index.mdx +4 -1
  373. package/es/core/WarningText/WarningText.stories.js +5 -2
  374. package/es/core/WarningText/index.js +1 -1
  375. package/es/core/WarningText/index.mdx +4 -0
  376. package/es/core/index.js +8 -5
  377. package/es/govgr/Footer/Copyright.js +3 -2
  378. package/es/govgr/Footer/index.mdx +4 -0
  379. package/es/index.js +2 -1
  380. package/es/layouts/Basic/Basic.stories.js +3 -1
  381. package/es/layouts/Basic/Bottom/index.js +1 -1
  382. package/es/layouts/Basic/Bottom/index.mdx +4 -0
  383. package/es/layouts/Basic/Main/index.js +1 -1
  384. package/es/layouts/Basic/Main/index.mdx +4 -0
  385. package/es/layouts/Basic/Masthead/index.js +2 -2
  386. package/es/layouts/Basic/Masthead/index.mdx +4 -0
  387. package/es/layouts/Basic/Top/index.js +2 -10
  388. package/es/layouts/Basic/Top/index.mdx +4 -0
  389. package/es/layouts/Basic/index.js +5 -3
  390. package/es/layouts/Basic/index.mdx +0 -6
  391. package/es/layouts/Grid/Grid.stories.js +3 -2
  392. package/es/layouts/Grid/__stories__/Default.js +2 -6
  393. package/es/registry.js +116 -2
  394. package/es/typography/Heading/Heading.stories.js +2 -1
  395. package/es/typography/Heading/index.js +1 -1
  396. package/es/typography/Heading/index.mdx +4 -0
  397. package/es/typography/HeadingCaption/HeadingCaption.stories.js +2 -1
  398. package/es/typography/HeadingCaption/index.js +1 -1
  399. package/es/typography/HeadingCaption/index.mdx +4 -1
  400. package/es/typography/Hint/Hint.stories.js +2 -1
  401. package/es/typography/Hint/index.mdx +4 -1
  402. package/es/typography/NormalText/NormalText.stories.js +2 -1
  403. package/es/typography/NormalText/index.mdx +4 -1
  404. package/es/typography/Paragraph/Paragraph.stories.js +2 -1
  405. package/es/typography/Paragraph/index.mdx +4 -1
  406. package/es/typography/index.js +2 -4
  407. package/es/utils/Kitchensink/AllComponents.js +11 -0
  408. package/es/utils/Kitchensink/KitchensinkByCategory.js +42 -0
  409. package/es/utils/Kitchensink/KitchensinkByLetter.js +20 -0
  410. package/es/utils/Kitchensink/KitchensinkComponent.js +51 -0
  411. package/es/utils/Kitchensink/KitchensinkDashboard.js +50 -0
  412. package/es/utils/withDeprecation.js +15 -12
  413. package/esm/admin/AutoComplete/AutoComplete.stories.js +2 -1
  414. package/esm/admin/AutoComplete/Status/index.js +4 -4
  415. package/esm/admin/AutoComplete/index.mdx +4 -0
  416. package/esm/admin/CircularProgress/CircularProgress.stories.js +3 -2
  417. package/esm/admin/CircularProgress/__stories__/Default.js +1 -2
  418. package/esm/admin/CopyToClipboard/CopyToClipboard.stories.js +3 -3
  419. package/esm/admin/CopyToClipboard/index.mdx +2 -2
  420. package/esm/admin/Drawer/Drawer.stories.js +8 -2
  421. package/esm/admin/Drawer/__stories__/Default.js +8 -47
  422. package/esm/admin/Drawer/index.mdx +4 -0
  423. package/esm/admin/Dropdown/Dropdown.stories.js +4 -1
  424. package/esm/admin/Dropdown/__stories__/AlignRight.js +4 -3
  425. package/esm/admin/Dropdown/__stories__/Default.js +5 -3
  426. package/esm/admin/Dropdown/__stories__/PlacementTop.js +4 -3
  427. package/esm/admin/Dropdown/index.js +3 -2
  428. package/esm/admin/Dropdown/index.mdx +4 -1
  429. package/esm/admin/Modal/Modal.stories.js +4 -1
  430. package/esm/admin/Modal/__stories__/AlertDialog.js +12 -31
  431. package/esm/admin/Modal/__stories__/Default.js +11 -26
  432. package/esm/admin/Modal/index.js +2 -2
  433. package/esm/admin/Modal/index.mdx +4 -8
  434. package/esm/admin/Pagination/Pagination.stories.js +6 -2
  435. package/esm/admin/Pagination/__stories__/Default.js +1 -27
  436. package/esm/admin/Pagination/__stories__/PaginationSmall.js +38 -0
  437. package/esm/admin/Pagination/index.js +3 -2
  438. package/esm/admin/Pagination/index.mdx +4 -0
  439. package/esm/admin/StepNav/StepNav.stories.js +3 -1
  440. package/esm/admin/TaskList/TaskList.stories.js +3 -1
  441. package/esm/admin/TaskList/__stories__/Default.js +2 -2
  442. package/esm/admin/Timeline/Timeline.stories.js +3 -1
  443. package/esm/admin/Timeline/__stories__/Default.js +3 -2
  444. package/esm/app/Confirmation/Confirmation.mdx +4 -0
  445. package/esm/app/Confirmation/Confirmation.stories.js +6 -3
  446. package/esm/app/Confirmation/index.js +4 -4
  447. package/esm/app/Footer/Footer.mdx +4 -0
  448. package/esm/app/Footer/Footer.stories.js +6 -2
  449. package/esm/app/Footer/index.js +3 -1
  450. package/esm/app/Header/Header.stories.js +4 -0
  451. package/esm/app/Header/index.mdx +4 -0
  452. package/esm/app/I18nText.js +1 -0
  453. package/esm/app/NotFound/NotFound.stories.js +2 -1
  454. package/esm/app/NotFound/index.mdx +4 -0
  455. package/esm/app/PageTitle.js +6 -57
  456. package/esm/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +3 -2
  457. package/esm/app/PhaseBannerHeader/index.mdx +4 -0
  458. package/esm/app/QrCodeScanner/QrCodeScanner.stories.js +2 -1
  459. package/esm/app/QrCodeScanner/index.js +3 -5
  460. package/esm/app/QrCodeViewer/QRCode.stories.js +2 -1
  461. package/esm/app/QrCodeViewer/index.js +2 -69
  462. package/esm/app/QrCodeViewer/index.mdx +4 -0
  463. package/esm/app/index.js +2 -0
  464. package/esm/core/Accordion/Accordion.stories.js +6 -2
  465. package/esm/core/Accordion/Accordion.stories.playwright.json +1 -7
  466. package/esm/core/Accordion/__stories__/Default.js +3 -1
  467. package/esm/core/Accordion/__stories__/WithHints.js +3 -1
  468. package/esm/core/Accordion/index.js +6 -0
  469. package/esm/core/Accordion/index.mdx +4 -0
  470. package/esm/core/BackLink/BackLink.stories.js +2 -1
  471. package/esm/core/BackLink/index.mdx +4 -0
  472. package/esm/core/Blockquote/Blockquote.stories.js +4 -1
  473. package/esm/core/Blockquote/index.mdx +4 -0
  474. package/esm/core/Breadcrumbs/Breadcrumbs.stories.js +4 -1
  475. package/esm/core/Breadcrumbs/breadcrumbs.mdx +4 -0
  476. package/esm/core/Button/Button.stories.js +5 -2
  477. package/esm/core/Button/index.mdx +4 -1
  478. package/esm/core/Card/Card.stories.js +5 -1
  479. package/esm/core/Card/__stories__/WithClickableContent.js +2 -2
  480. package/esm/core/Card/card.mdx +4 -0
  481. package/esm/core/Checkboxes/Checkbox.stories.js +4 -1
  482. package/esm/core/Checkboxes/__stories__/ConditionalReveal.js +1 -1
  483. package/esm/core/Checkboxes/__stories__/NoneAnswerWithError.js +2 -2
  484. package/esm/core/Checkboxes/checkboxes.mdx +4 -0
  485. package/esm/core/DateInput/DateInput.stories.js +4 -1
  486. package/esm/core/DateInput/index.js +2 -2
  487. package/esm/core/DateInput/index.mdx +5 -0
  488. package/esm/core/Details/Details.stories.js +4 -1
  489. package/esm/core/Details/index.js +3 -3
  490. package/esm/core/Details/index.mdx +4 -0
  491. package/esm/core/Divider/Divider.stories.js +2 -1
  492. package/esm/core/Divider/index.js +1 -0
  493. package/esm/core/ErrorMessage/ErrorMessage.stories.js +4 -1
  494. package/esm/core/ErrorMessage/index.mdx +4 -0
  495. package/esm/core/ErrorSummary/ErrorSummary.stories.js +4 -1
  496. package/esm/core/ErrorSummary/__stories__/LinkedToInput.js +4 -4
  497. package/esm/core/ErrorSummary/index.js +1 -1
  498. package/esm/core/ErrorSummary/index.mdx +4 -0
  499. package/esm/core/Field/index.js +2 -2
  500. package/esm/core/FileUpload/FileUpload.stories.js +3 -1
  501. package/esm/core/FileUpload/index.mdx +4 -1
  502. package/esm/core/Label/index.js +2 -2
  503. package/esm/core/Link/Link.stories.js +3 -1
  504. package/esm/core/Link/index.js +8 -6
  505. package/esm/core/Link/link.mdx +4 -0
  506. package/esm/core/List/List.js +1 -1
  507. package/esm/core/List/List.stories.js +5 -2
  508. package/esm/core/List/index.mdx +4 -0
  509. package/esm/core/Masthead/Masthead.stories.js +5 -1
  510. package/esm/core/Masthead/masthead.mdx +4 -0
  511. package/esm/core/NavList/NavList.stories.js +4 -1
  512. package/esm/core/NavList/index.js +4 -2
  513. package/esm/core/NavList/index.mdx +4 -0
  514. package/esm/core/NotificationBanner/NotificationBanner.stories.js +5 -1
  515. package/esm/core/NotificationBanner/index.js +3 -3
  516. package/esm/core/NotificationBanner/index.mdx +4 -0
  517. package/esm/core/PhaseBanner/PhaseBanner.stories.js +4 -1
  518. package/esm/core/PhaseBanner/index.mdx +4 -0
  519. package/esm/core/Radios/Radios.stories.js +4 -1
  520. package/esm/core/Radios/__stories__/ConditionalReveal.js +1 -1
  521. package/esm/core/Radios/index.js +2 -2
  522. package/esm/core/Radios/index.mdx +14 -0
  523. package/esm/core/Select/Select.stories.js +4 -1
  524. package/esm/core/Select/__stories__/Default.js +2 -2
  525. package/esm/core/Select/__stories__/DisabledInput.js +2 -2
  526. package/esm/core/Select/__stories__/WithHint.js +2 -2
  527. package/esm/core/Select/index.js +2 -2
  528. package/esm/core/Select/index.mdx +4 -0
  529. package/esm/core/SummaryList/SummaryList.stories.js +5 -2
  530. package/esm/core/SummaryList/index.mdx +4 -0
  531. package/esm/core/Table/Table.stories.js +5 -2
  532. package/esm/core/Table/__stories__/WithFloatingScroll.js +1 -27
  533. package/esm/core/Table/index.js +3 -1
  534. package/esm/core/Table/index.mdx +4 -1
  535. package/esm/core/Tabs/Tabs.stories.js +6 -2
  536. package/esm/core/Tabs/index.js +5 -5
  537. package/esm/core/Tabs/index.mdx +4 -0
  538. package/esm/core/TextArea/TextArea.stories.js +4 -1
  539. package/esm/core/TextArea/__stories__/Default.js +4 -4
  540. package/esm/core/TextArea/__stories__/DisabledInput.js +4 -4
  541. package/esm/core/TextArea/__stories__/LimitedCharacters.js +4 -4
  542. package/esm/core/TextArea/__stories__/MultipleQuestions.js +4 -4
  543. package/esm/core/TextArea/__stories__/WithDeclaredRows.js +4 -4
  544. package/esm/core/TextArea/__stories__/WithErrorMessage.js +4 -4
  545. package/esm/core/TextArea/__stories__/WithHint.js +4 -4
  546. package/esm/core/TextArea/index.mdx +4 -0
  547. package/esm/core/TextInput/TextInput.stories.js +4 -1
  548. package/esm/core/TextInput/__stories__/AskingForNumbers.js +4 -4
  549. package/esm/core/TextInput/__stories__/Default.js +4 -4
  550. package/esm/core/TextInput/__stories__/DisabledInput.js +4 -4
  551. package/esm/core/TextInput/__stories__/FixedWidths.js +9 -9
  552. package/esm/core/TextInput/__stories__/FluidWidths.js +9 -9
  553. package/esm/core/TextInput/__stories__/MultipleQuestions.js +4 -4
  554. package/esm/core/TextInput/__stories__/WithErrorMessage.js +5 -5
  555. package/esm/core/TextInput/__stories__/WithHint.js +4 -4
  556. package/esm/core/TextInput/index.mdx +4 -0
  557. package/esm/core/VisuallyHidden/VisuallyHidden.stories.js +2 -1
  558. package/esm/core/VisuallyHidden/index.mdx +4 -1
  559. package/esm/core/WarningText/WarningText.stories.js +5 -2
  560. package/esm/core/WarningText/index.js +1 -1
  561. package/esm/core/WarningText/index.mdx +4 -0
  562. package/esm/core/index.js +8 -5
  563. package/esm/govgr/Footer/Copyright.js +3 -2
  564. package/esm/govgr/Footer/index.mdx +4 -0
  565. package/esm/index.js +3 -2
  566. package/esm/layouts/Basic/Basic.stories.js +3 -1
  567. package/esm/layouts/Basic/Bottom/index.js +1 -1
  568. package/esm/layouts/Basic/Bottom/index.mdx +4 -0
  569. package/esm/layouts/Basic/Main/index.js +1 -1
  570. package/esm/layouts/Basic/Main/index.mdx +4 -0
  571. package/esm/layouts/Basic/Masthead/index.js +2 -2
  572. package/esm/layouts/Basic/Masthead/index.mdx +4 -0
  573. package/esm/layouts/Basic/Top/index.js +2 -10
  574. package/esm/layouts/Basic/Top/index.mdx +4 -0
  575. package/esm/layouts/Basic/index.js +5 -3
  576. package/esm/layouts/Basic/index.mdx +0 -6
  577. package/esm/layouts/Grid/Grid.stories.js +3 -2
  578. package/esm/layouts/Grid/__stories__/Default.js +2 -6
  579. package/esm/registry.js +116 -2
  580. package/esm/typography/Heading/Heading.stories.js +2 -1
  581. package/esm/typography/Heading/index.js +1 -1
  582. package/esm/typography/Heading/index.mdx +4 -0
  583. package/esm/typography/HeadingCaption/HeadingCaption.stories.js +2 -1
  584. package/esm/typography/HeadingCaption/index.js +1 -1
  585. package/esm/typography/HeadingCaption/index.mdx +4 -1
  586. package/esm/typography/Hint/Hint.stories.js +2 -1
  587. package/esm/typography/Hint/index.mdx +4 -1
  588. package/esm/typography/NormalText/NormalText.stories.js +2 -1
  589. package/esm/typography/NormalText/index.mdx +4 -1
  590. package/esm/typography/Paragraph/Paragraph.stories.js +2 -1
  591. package/esm/typography/Paragraph/index.mdx +4 -1
  592. package/esm/typography/index.js +2 -4
  593. package/esm/utils/Kitchensink/AllComponents.js +11 -0
  594. package/esm/utils/Kitchensink/KitchensinkByCategory.js +42 -0
  595. package/esm/utils/Kitchensink/KitchensinkByLetter.js +20 -0
  596. package/esm/utils/Kitchensink/KitchensinkComponent.js +51 -0
  597. package/esm/utils/Kitchensink/KitchensinkDashboard.js +50 -0
  598. package/esm/utils/withDeprecation.js +15 -12
  599. package/govgr/Footer/Copyright.d.ts +2 -0
  600. package/govgr/Footer/Copyright.js +10 -3
  601. package/govgr/Footer/index.mdx +4 -0
  602. package/index.d.ts +1 -0
  603. package/index.js +13 -0
  604. package/layouts/Basic/Basic.stories.d.ts +2 -0
  605. package/layouts/Basic/Basic.stories.js +3 -1
  606. package/layouts/Basic/Bottom/index.d.ts +1 -1
  607. package/layouts/Basic/Bottom/index.js +19 -8
  608. package/layouts/Basic/Bottom/index.mdx +4 -0
  609. package/layouts/Basic/Content/index.d.ts +1 -3
  610. package/layouts/Basic/Main/index.d.ts +1 -1
  611. package/layouts/Basic/Main/index.js +19 -8
  612. package/layouts/Basic/Main/index.mdx +4 -0
  613. package/layouts/Basic/Masthead/index.d.ts +2 -2
  614. package/layouts/Basic/Masthead/index.js +31 -14
  615. package/layouts/Basic/Masthead/index.mdx +4 -0
  616. package/layouts/Basic/Top/index.d.ts +2 -2
  617. package/layouts/Basic/Top/index.js +19 -13
  618. package/layouts/Basic/Top/index.mdx +4 -0
  619. package/layouts/Basic/index.d.ts +4 -2
  620. package/layouts/Basic/index.js +48 -11
  621. package/layouts/Basic/index.mdx +0 -6
  622. package/layouts/Grid/Grid.stories.d.ts +2 -0
  623. package/layouts/Grid/Grid.stories.js +3 -2
  624. package/layouts/Grid/__stories__/Default.js +2 -6
  625. package/package.json +5 -5
  626. package/registry.d.ts +111 -1
  627. package/registry.js +176 -5
  628. package/typography/Heading/Heading.stories.d.ts +1 -0
  629. package/typography/Heading/Heading.stories.js +2 -1
  630. package/typography/Heading/index.d.ts +1 -1
  631. package/typography/Heading/index.mdx +4 -0
  632. package/typography/HeadingCaption/HeadingCaption.stories.d.ts +1 -0
  633. package/typography/HeadingCaption/HeadingCaption.stories.js +2 -1
  634. package/typography/HeadingCaption/index.d.ts +1 -1
  635. package/typography/HeadingCaption/index.mdx +4 -1
  636. package/typography/Hint/Hint.stories.d.ts +1 -0
  637. package/typography/Hint/Hint.stories.js +2 -1
  638. package/typography/Hint/index.mdx +4 -1
  639. package/typography/NormalText/NormalText.stories.d.ts +1 -0
  640. package/typography/NormalText/NormalText.stories.js +2 -1
  641. package/typography/NormalText/index.mdx +4 -1
  642. package/typography/Paragraph/Paragraph.stories.d.ts +1 -0
  643. package/typography/Paragraph/Paragraph.stories.js +2 -1
  644. package/typography/Paragraph/index.mdx +4 -1
  645. package/typography/index.d.ts +2 -4
  646. package/typography/index.js +31 -46
  647. package/utils/Kitchensink/AllComponents.d.ts +1 -0
  648. package/utils/Kitchensink/AllComponents.js +24 -0
  649. package/utils/Kitchensink/KitchensinkByCategory.d.ts +6 -0
  650. package/utils/Kitchensink/KitchensinkByCategory.js +56 -0
  651. package/utils/Kitchensink/KitchensinkByLetter.d.ts +5 -0
  652. package/utils/Kitchensink/KitchensinkByLetter.js +34 -0
  653. package/utils/Kitchensink/KitchensinkComponent.d.ts +10 -0
  654. package/utils/Kitchensink/KitchensinkComponent.js +68 -0
  655. package/utils/Kitchensink/KitchensinkDashboard.d.ts +4 -0
  656. package/utils/Kitchensink/KitchensinkDashboard.js +63 -0
  657. package/utils/withDeprecation.js +15 -12
  658. package/admin/CopyToClipboard/__stories__/MultipleCopies.d.ts +0 -2
  659. package/admin/CopyToClipboard/__stories__/MultipleCopies.js +0 -142
  660. package/admin/Dropdown/Dropdown.stories.playwright.json +0 -21
  661. package/admin/Modal/Modal.stories.playwright.json +0 -37
  662. package/admin/Modal/__stories__/AlertDialog.test.d.ts +0 -1
  663. package/admin/Modal/__stories__/AlertDialog.test.js +0 -60
  664. package/core/Confirmation/Confirmation.stories.d.ts +0 -7
  665. package/core/Confirmation/Confirmation.stories.js +0 -30
  666. package/core/Confirmation/__stories__/Default.d.ts +0 -2
  667. package/core/Confirmation/__stories__/Default.js +0 -28
  668. package/core/Confirmation/confirmation.mdx +0 -19
  669. package/core/Confirmation/index.d.ts +0 -5
  670. package/core/Confirmation/index.js +0 -58
  671. package/core/ServiceBadge/index.mdx +0 -42
  672. package/es/admin/CopyToClipboard/__stories__/MultipleCopies.js +0 -120
  673. package/es/admin/Dropdown/Dropdown.stories.playwright.json +0 -21
  674. package/es/admin/Modal/Modal.stories.playwright.json +0 -37
  675. package/es/admin/Modal/__stories__/AlertDialog.test.js +0 -53
  676. package/es/core/Confirmation/Confirmation.stories.js +0 -6
  677. package/es/core/Confirmation/__stories__/Default.js +0 -9
  678. package/es/core/Confirmation/confirmation.mdx +0 -19
  679. package/es/core/Confirmation/index.js +0 -5
  680. package/es/core/ServiceBadge/index.mdx +0 -42
  681. package/es/form/inputs/Input/index.mdx +0 -10
  682. package/es/layouts/Basic/Content/index.mdx +0 -50
  683. package/es/layouts/Basic/Side/index.mdx +0 -57
  684. package/es/router/index.mdx +0 -5
  685. package/es/typography/index.mdx +0 -5
  686. package/esm/admin/CopyToClipboard/__stories__/MultipleCopies.js +0 -120
  687. package/esm/admin/Dropdown/Dropdown.stories.playwright.json +0 -21
  688. package/esm/admin/Modal/Modal.stories.playwright.json +0 -37
  689. package/esm/admin/Modal/__stories__/AlertDialog.test.js +0 -53
  690. package/esm/core/Confirmation/Confirmation.stories.js +0 -6
  691. package/esm/core/Confirmation/__stories__/Default.js +0 -9
  692. package/esm/core/Confirmation/confirmation.mdx +0 -19
  693. package/esm/core/Confirmation/index.js +0 -5
  694. package/esm/core/ServiceBadge/index.mdx +0 -42
  695. package/esm/form/inputs/Input/index.mdx +0 -10
  696. package/esm/layouts/Basic/Content/index.mdx +0 -50
  697. package/esm/layouts/Basic/Side/index.mdx +0 -57
  698. package/esm/router/index.mdx +0 -5
  699. package/esm/typography/index.mdx +0 -5
  700. package/form/inputs/Input/index.mdx +0 -10
  701. package/layouts/Basic/Content/index.mdx +0 -50
  702. package/layouts/Basic/Side/index.mdx +0 -57
  703. package/router/index.mdx +0 -5
  704. package/typography/index.mdx +0 -5
@@ -1,37 +0,0 @@
1
- {
2
- "version": "4",
3
- "stories": {
4
- "digigov-ui-admin-modal--default": {
5
- "actionSets": [
6
- {
7
- "actions": [
8
- {
9
- "name": "click",
10
- "args": {
11
- "selector": "text=Προσθήκη τηλεφώνου"
12
- }
13
- }
14
- ],
15
- "id": "Q1m2Z1DE-gfI",
16
- "title": "Open Modal"
17
- }
18
- ]
19
- },
20
- "digigov-ui-admin-modal--alert-dialog": {
21
- "actionSets": [
22
- {
23
- "actions": [
24
- {
25
- "name": "click",
26
- "args": {
27
- "selector": "text=Διαγραφή"
28
- }
29
- }
30
- ],
31
- "id": "ugGBGco96ZdX",
32
- "title": "Open modal"
33
- }
34
- ]
35
- }
36
- }
37
- }
@@ -1,53 +0,0 @@
1
- import _typeof from "@babel/runtime/helpers/typeof";
2
- import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
-
4
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
5
-
6
- import React from 'react';
7
- import AlertDialog from '@digigov/ui/admin/Modal/__stories__/AlertDialog';
8
- import { test, expect } from '@playwright/experimental-ct-react';
9
-
10
- var _ref3 = /*#__PURE__*/React.createElement(AlertDialog, null);
11
-
12
- test('open modal', /*#__PURE__*/function () {
13
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
14
- var mount, page, component;
15
- return _regeneratorRuntime().wrap(function _callee$(_context) {
16
- while (1) {
17
- switch (_context.prev = _context.next) {
18
- case 0:
19
- mount = _ref.mount, page = _ref.page;
20
- _context.next = 3;
21
- return mount(_ref3);
22
-
23
- case 3:
24
- component = _context.sent;
25
- _context.next = 6;
26
- return expect(component).toContainText('Διαγραφή');
27
-
28
- case 6:
29
- _context.next = 8;
30
- return page.click('#delete-button');
31
-
32
- case 8:
33
- _context.t0 = expect;
34
- _context.next = 11;
35
- return page.screenshot();
36
-
37
- case 11:
38
- _context.t1 = _context.sent;
39
- _context.next = 14;
40
- return (0, _context.t0)(_context.t1).toMatchSnapshot();
41
-
42
- case 14:
43
- case "end":
44
- return _context.stop();
45
- }
46
- }
47
- }, _callee);
48
- }));
49
-
50
- return function (_x) {
51
- return _ref2.apply(this, arguments);
52
- };
53
- }());
@@ -1,6 +0,0 @@
1
- import Confirmation from "@digigov/ui/core/Confirmation";
2
- export default {
3
- title: 'Digigov UI/core/Confirmation',
4
- component: Confirmation
5
- };
6
- export * from './__stories__/Default';
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- import Confirmation, { ConfirmationBody, ConfirmationTitle } from "@digigov/ui/core/Confirmation";
3
-
4
- var _ref = /*#__PURE__*/React.createElement(Confirmation, null, /*#__PURE__*/React.createElement(ConfirmationTitle, null, "\u0397 \u03C6\u03CC\u03C1\u03BC\u03B1 \u03C5\u03C0\u03BF\u03B2\u03BB\u03AE\u03B8\u03B7\u03BA\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2"), /*#__PURE__*/React.createElement(ConfirmationBody, null, "\u039F \u03BA\u03C9\u03B4\u03B9\u03BA\u03CC\u03C2 \u03B5\u03B3\u03B3\u03C1\u03AC\u03C6\u03BF\u03C5 ", /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("strong", null, "HDJ2123F")));
5
-
6
- export var Default = function Default() {
7
- return _ref;
8
- };
9
- export default Default;
@@ -1,19 +0,0 @@
1
- ---
2
- id: confirmation
3
- title: Confirmation
4
- ---
5
-
6
-
7
- # Confirmation
8
-
9
-
10
-
11
-
12
-
13
- ```bash
14
- import Confirmation from '@digigov/ui/core/Confirmation';
15
- ```
16
-
17
- ## How to use
18
-
19
- <Story packageName="@digigov/ui" component="core/Confirmation" story="Default.tsx" />
@@ -1,5 +0,0 @@
1
- export * from '@digigov/react-core/Confirmation';
2
- export * from '@digigov/react-core/ConfirmationTitle';
3
- export * from '@digigov/react-core/ConfirmationBody';
4
- import Confirmation from '@digigov/react-core/Confirmation';
5
- export default Confirmation;
@@ -1,42 +0,0 @@
1
- ---
2
- parent: docs/ui/component
3
- title: ServiceBadge
4
- ---
5
-
6
- import ServiceBadge from '@digigov/ui/core/ServiceBadge';
7
- import Header, { HeaderTitle } from '@digigov/ui/app/Header';
8
- import GovGRLogo from '@digigov/ui/govgr/Logo';
9
-
10
- ## Example
11
-
12
- <Header>
13
- <GovGRLogo />
14
- <HeaderTitle>
15
- Service Name <ServiceBadge label="ALPHA" />
16
- </HeaderTitle>
17
- </Header>
18
-
19
- ## How to use
20
-
21
- ```jsx
22
- import ServieBadge from '@digigov/ui/core/ServiceBadge';
23
-
24
- <ServiceBadge label="ALPHA" />;
25
- ```
26
-
27
- ## When to use this component
28
-
29
- Use ServiceBadge to indicate the current release cycle of your service. Use
30
- an alpha badge when your service is in alpha, and a beta badge if your
31
- service is in private or public beta.
32
-
33
- ## How it works
34
-
35
- Communicating early release service status can improve the perception of the
36
- user regarding the overall experience of the service. It also acts as a hint
37
- that service is in active development and user feedback is needed and
38
- welcomed by your team.
39
-
40
- ## References
41
-
42
- - https://designnotes.blog.gov.uk/2014/01/20/why-and-how-were-explaining-beta-to-users/
@@ -1,10 +0,0 @@
1
- ---
2
- title: Input
3
- parent: docs/ui/components
4
- ---
5
-
6
- ## Example
7
-
8
- ```jsx live path=form/inputs/Input/index.tsx
9
- <input type="text" />
10
- ```
@@ -1,50 +0,0 @@
1
- ---
2
- title: Content
3
- parent: docs/ui/components
4
- ---
5
-
6
- # Content
7
-
8
- import { Content } from '@digigov/ui/layouts/Basic';
9
-
10
- ```jsx live path=layouts/Basic/index.tsx
11
- import Header, { HeaderTitle } from '@digigov/ui/app/Header';
12
- import GovGRLogo from '@digigov/ui/govgr/Logo';
13
- import Grid from '@digigov/react-core/Grid';
14
- import Paragraph from '@digigov/ui/typography/Paragraph';
15
-
16
- function Side{
17
- return (
18
- <BasicLayout>
19
- <Top>
20
- <Header>
21
- <GovGRLogo />
22
- <HeaderTitle>
23
- <ServiceBadge />
24
- </HeaderTitle>
25
- </Header>
26
- </Top>
27
- <Content>
28
- <Main>
29
- <Title size="lg">Main</Title>
30
- <Paragraph>Main content</Paragraph>
31
- </Main>
32
- <Side>
33
- <Title size="lg">Side</Title>
34
- <Paragraph>Side content</Paragraph>
35
- </Side>
36
- </Content>
37
- </BasicLayout>
38
- )
39
- }
40
- export Side
41
-
42
-
43
-
44
- ```
45
-
46
- <br />
47
-
48
- ## How it works
49
-
50
- The Content component is used as a wrapper for the Main and Side components.
@@ -1,57 +0,0 @@
1
- ---
2
- title: Side
3
- parent: docs/ui/components
4
- ---
5
-
6
- # Side
7
-
8
- import { Side } from '@digigov/ui/layouts/Basic';
9
-
10
- ```jsx live path=layouts/Basic/index.tsx
11
-
12
- function Side{
13
- return (
14
- <BasicLayout>
15
- <Top>
16
- <Header>
17
- <GovGRLogo />
18
- <HeaderTitle>
19
- <ServiceBadge />
20
- </HeaderTitle>
21
- </Header>
22
- </Top>
23
- <Content>
24
- <Main>
25
- <Title size="xl">Main</Title>
26
- <Paragraph>
27
- Lorem ipsum dolor sit amet, consectetur adipiscing elit,
28
- sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
29
- Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
30
- Excepteur sint occaecat cupidatat non proident,
31
- sunt in culpa qui officia deserunt mollit anim id est laborum.
32
- </Paragraph>
33
- </Main>
34
- <Side>
35
- <Title size="md">Side content</Title>
36
- <Paragraph>
37
- Lorem ipsum dolor sit amet, consectetur adipiscing elit,
38
- sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
39
- Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
40
- Excepteur sint occaecat cupidatat non proident,
41
- sunt in culpa qui officia deserunt mollit anim id est laborum.
42
- </Paragraph>
43
- </Side>
44
- </Content>
45
- </BasicLayout>
46
- )
47
- }
48
- export Side
49
-
50
- ```
51
-
52
- <br />
53
-
54
- ## How it works
55
-
56
- The Side component covers the right one-third of the page width.
57
- Note that the Side component is optional, so there could be occasions that Side is empty.
@@ -1,5 +0,0 @@
1
- ---
2
- title: RouterProvider
3
- ---
4
-
5
- lalal
@@ -1,5 +0,0 @@
1
- ---
2
- title: Typography
3
- parent: docs/ui/components
4
- ---
5
-
@@ -1,120 +0,0 @@
1
- import React from 'react';
2
- import { CopyToClipboard } from '@digigov/ui/admin';
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-left",
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-left",
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-right",
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;
@@ -1,21 +0,0 @@
1
- {
2
- "version": "4",
3
- "stories": {
4
- "digigov-ui-admin-dropdown--default": {
5
- "actionSets": [
6
- {
7
- "actions": [
8
- {
9
- "name": "click",
10
- "args": {
11
- "selector": "html>body>div:nth-child(5)>details>summary"
12
- }
13
- }
14
- ],
15
- "id": "pRk02vUzsti1",
16
- "title": "Open dropdown"
17
- }
18
- ]
19
- }
20
- }
21
- }
@@ -1,37 +0,0 @@
1
- {
2
- "version": "4",
3
- "stories": {
4
- "digigov-ui-admin-modal--default": {
5
- "actionSets": [
6
- {
7
- "actions": [
8
- {
9
- "name": "click",
10
- "args": {
11
- "selector": "text=Προσθήκη τηλεφώνου"
12
- }
13
- }
14
- ],
15
- "id": "Q1m2Z1DE-gfI",
16
- "title": "Open Modal"
17
- }
18
- ]
19
- },
20
- "digigov-ui-admin-modal--alert-dialog": {
21
- "actionSets": [
22
- {
23
- "actions": [
24
- {
25
- "name": "click",
26
- "args": {
27
- "selector": "text=Διαγραφή"
28
- }
29
- }
30
- ],
31
- "id": "ugGBGco96ZdX",
32
- "title": "Open modal"
33
- }
34
- ]
35
- }
36
- }
37
- }
@@ -1,53 +0,0 @@
1
- import _typeof from "@babel/runtime/helpers/typeof";
2
- import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
-
4
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
5
-
6
- import React from 'react';
7
- import AlertDialog from '@digigov/ui/admin/Modal/__stories__/AlertDialog';
8
- import { test, expect } from '@playwright/experimental-ct-react';
9
-
10
- var _ref3 = /*#__PURE__*/React.createElement(AlertDialog, null);
11
-
12
- test('open modal', /*#__PURE__*/function () {
13
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
14
- var mount, page, component;
15
- return _regeneratorRuntime().wrap(function _callee$(_context) {
16
- while (1) {
17
- switch (_context.prev = _context.next) {
18
- case 0:
19
- mount = _ref.mount, page = _ref.page;
20
- _context.next = 3;
21
- return mount(_ref3);
22
-
23
- case 3:
24
- component = _context.sent;
25
- _context.next = 6;
26
- return expect(component).toContainText('Διαγραφή');
27
-
28
- case 6:
29
- _context.next = 8;
30
- return page.click('#delete-button');
31
-
32
- case 8:
33
- _context.t0 = expect;
34
- _context.next = 11;
35
- return page.screenshot();
36
-
37
- case 11:
38
- _context.t1 = _context.sent;
39
- _context.next = 14;
40
- return (0, _context.t0)(_context.t1).toMatchSnapshot();
41
-
42
- case 14:
43
- case "end":
44
- return _context.stop();
45
- }
46
- }
47
- }, _callee);
48
- }));
49
-
50
- return function (_x) {
51
- return _ref2.apply(this, arguments);
52
- };
53
- }());
@@ -1,6 +0,0 @@
1
- import Confirmation from "@digigov/ui/core/Confirmation";
2
- export default {
3
- title: 'Digigov UI/core/Confirmation',
4
- component: Confirmation
5
- };
6
- export * from './__stories__/Default';
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- import Confirmation, { ConfirmationBody, ConfirmationTitle } from "@digigov/ui/core/Confirmation";
3
-
4
- var _ref = /*#__PURE__*/React.createElement(Confirmation, null, /*#__PURE__*/React.createElement(ConfirmationTitle, null, "\u0397 \u03C6\u03CC\u03C1\u03BC\u03B1 \u03C5\u03C0\u03BF\u03B2\u03BB\u03AE\u03B8\u03B7\u03BA\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2"), /*#__PURE__*/React.createElement(ConfirmationBody, null, "\u039F \u03BA\u03C9\u03B4\u03B9\u03BA\u03CC\u03C2 \u03B5\u03B3\u03B3\u03C1\u03AC\u03C6\u03BF\u03C5 ", /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("strong", null, "HDJ2123F")));
5
-
6
- export var Default = function Default() {
7
- return _ref;
8
- };
9
- export default Default;
@@ -1,19 +0,0 @@
1
- ---
2
- id: confirmation
3
- title: Confirmation
4
- ---
5
-
6
-
7
- # Confirmation
8
-
9
-
10
-
11
-
12
-
13
- ```bash
14
- import Confirmation from '@digigov/ui/core/Confirmation';
15
- ```
16
-
17
- ## How to use
18
-
19
- <Story packageName="@digigov/ui" component="core/Confirmation" story="Default.tsx" />
@@ -1,5 +0,0 @@
1
- export * from '@digigov/react-core/Confirmation';
2
- export * from '@digigov/react-core/ConfirmationTitle';
3
- export * from '@digigov/react-core/ConfirmationBody';
4
- import Confirmation from '@digigov/react-core/Confirmation';
5
- export default Confirmation;