@digigov/ui 0.35.1 → 0.35.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 (579) hide show
  1. package/CHANGELOG.md +15 -1
  2. package/admin/AccessibilityMenu/index.d.ts +3 -3
  3. package/admin/AccessibilityMenu/index.js +23 -23
  4. package/admin/AutoComplete/Status/index.d.ts +1 -1
  5. package/admin/AutoComplete/Status/index.js +2 -2
  6. package/admin/AutoComplete/__stories__/Default.js +2 -2
  7. package/admin/AutoComplete/__stories__/WithAutoSelect.js +2 -2
  8. package/admin/AutoComplete/__stories__/WithDefaultValue.js +2 -2
  9. package/admin/AutoComplete/__stories__/WithInLine.js +2 -2
  10. package/admin/AutoComplete/__stories__/WithMinLength.js +2 -2
  11. package/admin/AutoComplete/__stories__/WithPlaceHolder.js +2 -2
  12. package/admin/AutoComplete/__stories__/WithShowAllValues.js +2 -2
  13. package/admin/AutoComplete/index.d.ts +2 -3
  14. package/admin/AutoComplete/index.js +3 -3
  15. package/admin/CircularProgress/__stories__/Default.js +2 -2
  16. package/admin/CopyToClipboard/index.js +2 -2
  17. package/admin/Drawer/__stories__/Default.js +2 -2
  18. package/admin/Dropdown/__stories__/AlignRight.js +5 -5
  19. package/admin/Dropdown/__stories__/Default.js +5 -5
  20. package/admin/Dropdown/__stories__/PlacementTop.js +5 -5
  21. package/admin/Modal/__stories__/Default.js +2 -2
  22. package/admin/Pagination/Pagination.stories.d.ts +2 -0
  23. package/admin/Pagination/Pagination.stories.js +28 -0
  24. package/admin/Pagination/__stories__/Default.js +13 -71
  25. package/admin/Pagination/__stories__/PaginationSmall.js +3 -3
  26. package/admin/Pagination/__stories__/WithInactiveValues.d.ts +2 -0
  27. package/admin/Pagination/__stories__/WithInactiveValues.js +88 -0
  28. package/admin/Pagination/__stories__/WithResultsPerPage.d.ts +2 -0
  29. package/admin/Pagination/__stories__/WithResultsPerPage.js +60 -0
  30. package/admin/Pagination/index.d.ts +1 -1
  31. package/admin/Pagination/index.js +5 -5
  32. package/admin/Pagination/index.mdx +8 -0
  33. package/admin/StepNav/__stories__/Default.js +4 -4
  34. package/admin/StepNav/index.d.ts +8 -8
  35. package/admin/StepNav/index.js +12 -12
  36. package/admin/TaskList/__stories__/Default.js +2 -2
  37. package/admin/Timeline/__stories__/Default.js +5 -5
  38. package/api/index.spec.js +4 -4
  39. package/api/useResource.js +2 -2
  40. package/api/useResourceAction.js +2 -2
  41. package/api/useResourceQuery.js +2 -2
  42. package/api/utils.d.ts +1 -1
  43. package/app/BottomInfoContent/index.d.ts +1 -1
  44. package/app/Footer/__stories__/DefaultCopyright.js +4 -4
  45. package/app/Footer/__stories__/FooterAllInclusive.js +4 -4
  46. package/app/Footer/__stories__/FooterWithLink.js +5 -5
  47. package/app/Footer/__stories__/FooterWithLogo.js +4 -4
  48. package/app/Footer/__stories__/FooterWithSecondaryNavigation.js +4 -4
  49. package/app/Footer/__stories__/YearCopyright.js +4 -4
  50. package/app/Header/__stories__/Default.js +2 -2
  51. package/app/Header/__stories__/WithHeaderNavigation.js +7 -7
  52. package/app/Header/__stories__/WithNavigation.js +6 -6
  53. package/app/Header/__stories__/WithServiceName.js +3 -3
  54. package/app/Header/__stories__/WithServiceNameAndLogo.js +4 -4
  55. package/app/OutdatedBrowserBanner.js +5 -5
  56. package/app/PhaseBannerHeader/index.js +2 -2
  57. package/app/QrCodeScanner/__stories__/Default.js +2 -2
  58. package/app/ThemeOptionsForm/index.js +4 -4
  59. package/app/ThemePaletteForm/index.js +2 -2
  60. package/core/Accordion/__stories__/Default.js +2 -2
  61. package/core/Accordion/__stories__/WithHints.js +4 -4
  62. package/core/Accordion/index.d.ts +2 -2
  63. package/core/Accordion/index.js +20 -20
  64. package/core/Card/__stories__/Default.js +2 -2
  65. package/core/Card/__stories__/WithDarkBorder.js +2 -2
  66. package/core/Card/__stories__/WithDarkTopBorder.js +2 -2
  67. package/core/Card/__stories__/WithDivider.js +2 -2
  68. package/core/Card/__stories__/WithGrayBorder.js +2 -2
  69. package/core/Card/__stories__/WithGrayTopBorder.js +2 -2
  70. package/core/Card/__stories__/WithGroupButton.js +2 -2
  71. package/core/Checkbox/__stories__/ConditionalReveal.js +2 -2
  72. package/core/Checkbox/__stories__/NoneAnswerWithError.js +3 -3
  73. package/core/Checkbox/__stories__/WithErrorMessage.js +3 -3
  74. package/core/DateInputContainer/__stories__/WithErrorMessage.js +4 -4
  75. package/core/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +4 -4
  76. package/core/ErrorMessage/__stories__/Default.js +3 -3
  77. package/core/ErrorSummary/__stories__/Default.js +2 -2
  78. package/core/ErrorSummary/__stories__/LinkedToCheckbox.js +7 -7
  79. package/core/ErrorSummary/__stories__/LinkedToField.js +7 -7
  80. package/core/ErrorSummary/__stories__/LinkedToInput.js +7 -7
  81. package/core/FileUpload/__stories__/Default.js +2 -2
  82. package/core/FileUpload/__stories__/WithErrorMessage.js +4 -4
  83. package/core/Link/__stories__/DarkBackground.js +2 -2
  84. package/core/Link/__stories__/DarkBackgroundNoUnderline.js +2 -2
  85. package/core/List/ListItemTitle.d.ts +1 -1
  86. package/core/List/ListItemTitle.js +2 -2
  87. package/core/List/__stories__/Default.js +2 -2
  88. package/core/Masthead/__stories__/Default.js +4 -4
  89. package/core/NavList/NavListAuto/NavListAuto.js +2 -2
  90. package/core/NavList/NavListAuto/NavListContextAuto.d.ts +1 -1
  91. package/core/NavList/NavListAuto/NavListContextAuto.js +2 -2
  92. package/core/NavList/NavListAuto/NavListItemAnchorAuto.js +2 -2
  93. package/core/NavList/NavListAuto/NavListItemButtonAuto.js +3 -3
  94. package/core/NavList/NavListAuto/NavListMenuAuto.js +3 -3
  95. package/core/NavList/NavListItemBase.js +4 -4
  96. package/core/NavList/__stories__/Default.js +2 -2
  97. package/core/NavList/__stories__/NavVerticalLayout.js +2 -2
  98. package/core/NavList/types.d.ts +1 -1
  99. package/core/NotificationBanner/index.d.ts +1 -1
  100. package/core/NotificationBanner/index.js +2 -2
  101. package/core/PhaseBanner/__stories__/Default.js +2 -2
  102. package/core/PhaseBanner/__stories__/Underlined.js +2 -2
  103. package/core/RadioContainer/__stories__/ConditionalReveal.js +2 -2
  104. package/core/RadioContainer/__stories__/Default.js +2 -2
  105. package/core/RadioContainer/__stories__/Inline.js +2 -2
  106. package/core/RadioContainer/__stories__/MultipleQuestions.js +2 -2
  107. package/core/RadioContainer/__stories__/NoneAnswer.js +2 -2
  108. package/core/RadioContainer/__stories__/WithErrorMessage.js +4 -4
  109. package/core/RadioContainer/__stories__/WithHints.js +2 -2
  110. package/core/SelectContainer/__stories__/Default.js +2 -2
  111. package/core/SelectContainer/__stories__/DisabledInput.js +2 -2
  112. package/core/SelectContainer/__stories__/WithHint.js +2 -2
  113. package/core/ServiceBadge/index.js +2 -2
  114. package/core/SingleCharacterInputContainer/__stories__/Default.js +2 -2
  115. package/core/SingleCharacterInputContainer/__stories__/WithDefaultError.js +4 -4
  116. package/core/SingleCharacterInputContainer/__stories__/WithErrorMessageInvalidCode.js +4 -4
  117. package/core/SingleCharacterInputContainer/__stories__/WithErrorMessageLessDigit.js +4 -4
  118. package/core/SummaryList/__stories__/Default.js +2 -2
  119. package/core/SummaryList/__stories__/RowVariations.js +2 -2
  120. package/core/SummaryList/__stories__/WithActions.js +4 -4
  121. package/core/SummaryList/__stories__/WithKeyAndAction.js +4 -4
  122. package/core/Table/__stories__/WithFloatingScroll.js +2 -2
  123. package/core/Table/__stories__/WithLoader.js +4 -4
  124. package/core/Table/index.js +2 -2
  125. package/core/Tabs/__stories__/Default.js +5 -5
  126. package/core/TextArea/__stories__/DisabledInput.js +2 -2
  127. package/core/TextArea/__stories__/LimitedCharacters.js +2 -2
  128. package/core/TextArea/__stories__/MultipleQuestions.js +2 -2
  129. package/core/TextArea/__stories__/WithDeclaredRows.js +2 -2
  130. package/core/TextArea/__stories__/WithErrorMessage.js +4 -4
  131. package/core/TextArea/__stories__/WithHint.js +2 -2
  132. package/core/TextInput/__stories__/AskingForNumbers.js +2 -2
  133. package/core/TextInput/__stories__/Default.js +2 -2
  134. package/core/TextInput/__stories__/DisabledInput.js +2 -2
  135. package/core/TextInput/__stories__/FixedWidths.js +2 -2
  136. package/core/TextInput/__stories__/FluidWidths.js +2 -2
  137. package/core/TextInput/__stories__/MultipleQuestions.js +2 -2
  138. package/core/TextInput/__stories__/WithErrorMessage.js +3 -3
  139. package/core/TextInput/__stories__/WithHint.js +2 -2
  140. package/core/VisuallyHidden/__stories__/Default.js +4 -4
  141. package/es/admin/AccessibilityMenu/index.js +3 -3
  142. package/es/admin/AutoComplete/Status/index.js +1 -1
  143. package/es/admin/AutoComplete/__stories__/Default.js +1 -1
  144. package/es/admin/AutoComplete/__stories__/WithAutoSelect.js +1 -1
  145. package/es/admin/AutoComplete/__stories__/WithDefaultValue.js +1 -1
  146. package/es/admin/AutoComplete/__stories__/WithInLine.js +1 -1
  147. package/es/admin/AutoComplete/__stories__/WithMinLength.js +1 -1
  148. package/es/admin/AutoComplete/__stories__/WithPlaceHolder.js +1 -1
  149. package/es/admin/AutoComplete/__stories__/WithShowAllValues.js +1 -1
  150. package/es/admin/AutoComplete/index.js +3 -4
  151. package/es/admin/CircularProgress/__stories__/Default.js +1 -1
  152. package/es/admin/CopyToClipboard/index.js +1 -1
  153. package/es/admin/Drawer/__stories__/Default.js +2 -3
  154. package/es/admin/Dropdown/__stories__/AlignRight.js +4 -5
  155. package/es/admin/Dropdown/__stories__/Default.js +4 -5
  156. package/es/admin/Dropdown/__stories__/PlacementTop.js +4 -5
  157. package/es/admin/Modal/__stories__/Default.js +1 -1
  158. package/es/admin/Pagination/Pagination.stories.js +2 -0
  159. package/es/admin/Pagination/__stories__/Default.js +13 -71
  160. package/es/admin/Pagination/__stories__/PaginationSmall.js +3 -3
  161. package/es/admin/Pagination/__stories__/WithInactiveValues.js +71 -0
  162. package/es/admin/Pagination/__stories__/WithResultsPerPage.js +42 -0
  163. package/es/admin/Pagination/index.js +3 -3
  164. package/es/admin/Pagination/index.mdx +8 -0
  165. package/es/admin/StepNav/__stories__/Default.js +3 -3
  166. package/es/admin/StepNav/index.js +8 -8
  167. package/es/admin/TaskList/__stories__/Default.js +1 -1
  168. package/es/admin/Timeline/__stories__/Default.js +3 -3
  169. package/es/api/index.spec.js +2 -2
  170. package/es/api/useResource.js +2 -2
  171. package/es/api/useResourceAction.js +1 -1
  172. package/es/api/useResourceQuery.js +1 -1
  173. package/es/app/Footer/__stories__/DefaultCopyright.js +2 -3
  174. package/es/app/Footer/__stories__/FooterAllInclusive.js +4 -5
  175. package/es/app/Footer/__stories__/FooterWithLink.js +3 -4
  176. package/es/app/Footer/__stories__/FooterWithLogo.js +3 -4
  177. package/es/app/Footer/__stories__/FooterWithSecondaryNavigation.js +4 -5
  178. package/es/app/Footer/__stories__/YearCopyright.js +2 -3
  179. package/es/app/Header/__stories__/Default.js +1 -1
  180. package/es/app/Header/__stories__/WithHeaderNavigation.js +4 -5
  181. package/es/app/Header/__stories__/WithNavigation.js +3 -3
  182. package/es/app/Header/__stories__/WithServiceName.js +2 -2
  183. package/es/app/Header/__stories__/WithServiceNameAndLogo.js +2 -2
  184. package/es/app/Header/index.spec.js +1 -1
  185. package/es/app/OutdatedBrowserBanner.js +3 -3
  186. package/es/app/PhaseBannerHeader/index.js +1 -1
  187. package/es/app/QrCodeScanner/__stories__/Default.js +1 -1
  188. package/es/app/ThemeOptionsForm/index.js +3 -3
  189. package/es/app/ThemePaletteForm/index.js +1 -1
  190. package/es/core/Accordion/__stories__/Default.js +1 -1
  191. package/es/core/Accordion/__stories__/WithHints.js +2 -2
  192. package/es/core/Accordion/index.js +3 -3
  193. package/es/core/Card/__stories__/Default.js +1 -1
  194. package/es/core/Card/__stories__/WithDarkBorder.js +1 -1
  195. package/es/core/Card/__stories__/WithDarkTopBorder.js +1 -1
  196. package/es/core/Card/__stories__/WithDivider.js +1 -1
  197. package/es/core/Card/__stories__/WithGrayBorder.js +1 -1
  198. package/es/core/Card/__stories__/WithGrayTopBorder.js +1 -1
  199. package/es/core/Card/__stories__/WithGroupButton.js +1 -1
  200. package/es/core/Checkbox/__stories__/ConditionalReveal.js +1 -1
  201. package/es/core/Checkbox/__stories__/NoneAnswerWithError.js +2 -2
  202. package/es/core/Checkbox/__stories__/WithErrorMessage.js +2 -2
  203. package/es/core/DateInputContainer/__stories__/WithErrorMessage.js +2 -2
  204. package/es/core/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +2 -2
  205. package/es/core/ErrorMessage/__stories__/Default.js +2 -2
  206. package/es/core/ErrorSummary/__stories__/Default.js +1 -1
  207. package/es/core/ErrorSummary/__stories__/LinkedToCheckbox.js +5 -5
  208. package/es/core/ErrorSummary/__stories__/LinkedToField.js +5 -5
  209. package/es/core/ErrorSummary/__stories__/LinkedToInput.js +5 -6
  210. package/es/core/FileUpload/__stories__/Default.js +1 -1
  211. package/es/core/FileUpload/__stories__/WithErrorMessage.js +3 -3
  212. package/es/core/Link/__stories__/DarkBackground.js +1 -1
  213. package/es/core/Link/__stories__/DarkBackgroundNoUnderline.js +1 -1
  214. package/es/core/List/ListItemTitle.js +1 -1
  215. package/es/core/List/__stories__/Default.js +1 -1
  216. package/es/core/Masthead/__stories__/Default.js +2 -2
  217. package/es/core/NavList/NavListAuto/NavListAuto.js +1 -1
  218. package/es/core/NavList/NavListAuto/NavListContextAuto.js +1 -1
  219. package/es/core/NavList/NavListAuto/NavListItemAnchorAuto.js +2 -2
  220. package/es/core/NavList/NavListAuto/NavListItemButtonAuto.js +2 -2
  221. package/es/core/NavList/NavListAuto/NavListMenuAuto.js +2 -2
  222. package/es/core/NavList/NavListItemBase.js +2 -2
  223. package/es/core/NavList/__stories__/Default.js +1 -1
  224. package/es/core/NavList/__stories__/NavVerticalLayout.js +1 -1
  225. package/es/core/NotificationBanner/index.js +1 -1
  226. package/es/core/PhaseBanner/__stories__/Default.js +1 -1
  227. package/es/core/PhaseBanner/__stories__/Underlined.js +1 -1
  228. package/es/core/RadioContainer/__stories__/ConditionalReveal.js +1 -1
  229. package/es/core/RadioContainer/__stories__/Default.js +1 -1
  230. package/es/core/RadioContainer/__stories__/Inline.js +1 -1
  231. package/es/core/RadioContainer/__stories__/MultipleQuestions.js +1 -1
  232. package/es/core/RadioContainer/__stories__/NoneAnswer.js +1 -1
  233. package/es/core/RadioContainer/__stories__/WithErrorMessage.js +3 -3
  234. package/es/core/RadioContainer/__stories__/WithHints.js +1 -1
  235. package/es/core/SelectContainer/__stories__/Default.js +1 -1
  236. package/es/core/SelectContainer/__stories__/DisabledInput.js +1 -1
  237. package/es/core/SelectContainer/__stories__/WithHint.js +1 -1
  238. package/es/core/ServiceBadge/index.js +1 -1
  239. package/es/core/SingleCharacterInputContainer/__stories__/Default.js +1 -1
  240. package/es/core/SingleCharacterInputContainer/__stories__/WithDefaultError.js +3 -3
  241. package/es/core/SingleCharacterInputContainer/__stories__/WithErrorMessageInvalidCode.js +3 -3
  242. package/es/core/SingleCharacterInputContainer/__stories__/WithErrorMessageLessDigit.js +3 -3
  243. package/es/core/SummaryList/__stories__/Default.js +1 -1
  244. package/es/core/SummaryList/__stories__/RowVariations.js +1 -1
  245. package/es/core/SummaryList/__stories__/WithActions.js +2 -2
  246. package/es/core/SummaryList/__stories__/WithKeyAndAction.js +2 -2
  247. package/es/core/Table/__stories__/WithFloatingScroll.js +2 -2
  248. package/es/core/Table/__stories__/WithLoader.js +4 -4
  249. package/es/core/Table/index.js +1 -1
  250. package/es/core/Tabs/__stories__/Default.js +3 -3
  251. package/es/core/TextArea/__stories__/Default.js +1 -2
  252. package/es/core/TextArea/__stories__/DisabledInput.js +2 -3
  253. package/es/core/TextArea/__stories__/LimitedCharacters.js +2 -3
  254. package/es/core/TextArea/__stories__/MultipleQuestions.js +1 -1
  255. package/es/core/TextArea/__stories__/WithDeclaredRows.js +2 -3
  256. package/es/core/TextArea/__stories__/WithErrorMessage.js +3 -4
  257. package/es/core/TextArea/__stories__/WithHint.js +2 -3
  258. package/es/core/TextInput/__stories__/AskingForNumbers.js +2 -3
  259. package/es/core/TextInput/__stories__/Default.js +2 -3
  260. package/es/core/TextInput/__stories__/DisabledInput.js +2 -3
  261. package/es/core/TextInput/__stories__/FixedWidths.js +2 -3
  262. package/es/core/TextInput/__stories__/FluidWidths.js +2 -3
  263. package/es/core/TextInput/__stories__/MultipleQuestions.js +1 -1
  264. package/es/core/TextInput/__stories__/WithErrorMessage.js +3 -4
  265. package/es/core/TextInput/__stories__/WithHint.js +2 -3
  266. package/es/core/VisuallyHidden/__stories__/Default.js +2 -2
  267. package/es/govgr/Footer/index.js +2 -2
  268. package/es/hooks/useNavList.js +1 -1
  269. package/es/hooks/useSort.js +1 -2
  270. package/es/layouts/Basic/__stories__/MultipleRowsLayout.js +1 -1
  271. package/es/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +1 -1
  272. package/es/layouts/Grid/__stories__/Default.js +1 -1
  273. package/es/layouts/Grid/__stories__/Inline.js +1 -1
  274. package/es/locales/el.js +1 -1
  275. package/es/typography/HeadingCaption/__stories__/Default.js +1 -1
  276. package/es/typography/NormalText/__stories__/FontSizes.js +1 -1
  277. package/es/typography/NormalText/__stories__/FontWeight.js +1 -1
  278. package/es/typography/NormalText/__stories__/Variants.js +1 -1
  279. package/es/utils/Kitchensink/KitchensinkComponent.js +2 -2
  280. package/es/utils/Kitchensink/KitchensinkDashboard.js +1 -1
  281. package/esm/admin/AccessibilityMenu/index.js +3 -3
  282. package/esm/admin/AutoComplete/Status/index.js +1 -1
  283. package/esm/admin/AutoComplete/__stories__/Default.js +1 -1
  284. package/esm/admin/AutoComplete/__stories__/WithAutoSelect.js +1 -1
  285. package/esm/admin/AutoComplete/__stories__/WithDefaultValue.js +1 -1
  286. package/esm/admin/AutoComplete/__stories__/WithInLine.js +1 -1
  287. package/esm/admin/AutoComplete/__stories__/WithMinLength.js +1 -1
  288. package/esm/admin/AutoComplete/__stories__/WithPlaceHolder.js +1 -1
  289. package/esm/admin/AutoComplete/__stories__/WithShowAllValues.js +1 -1
  290. package/esm/admin/AutoComplete/index.js +3 -4
  291. package/esm/admin/CircularProgress/__stories__/Default.js +1 -1
  292. package/esm/admin/CopyToClipboard/index.js +1 -1
  293. package/esm/admin/Drawer/__stories__/Default.js +2 -3
  294. package/esm/admin/Dropdown/__stories__/AlignRight.js +4 -5
  295. package/esm/admin/Dropdown/__stories__/Default.js +4 -5
  296. package/esm/admin/Dropdown/__stories__/PlacementTop.js +4 -5
  297. package/esm/admin/Modal/__stories__/Default.js +1 -1
  298. package/esm/admin/Pagination/Pagination.stories.js +2 -0
  299. package/esm/admin/Pagination/__stories__/Default.js +13 -71
  300. package/esm/admin/Pagination/__stories__/PaginationSmall.js +3 -3
  301. package/esm/admin/Pagination/__stories__/WithInactiveValues.js +71 -0
  302. package/esm/admin/Pagination/__stories__/WithResultsPerPage.js +42 -0
  303. package/esm/admin/Pagination/index.js +3 -3
  304. package/esm/admin/Pagination/index.mdx +8 -0
  305. package/esm/admin/StepNav/__stories__/Default.js +3 -3
  306. package/esm/admin/StepNav/index.js +8 -8
  307. package/esm/admin/TaskList/__stories__/Default.js +1 -1
  308. package/esm/admin/Timeline/__stories__/Default.js +3 -3
  309. package/esm/api/index.spec.js +2 -2
  310. package/esm/api/useResource.js +2 -2
  311. package/esm/api/useResourceAction.js +1 -1
  312. package/esm/api/useResourceQuery.js +1 -1
  313. package/esm/app/Footer/__stories__/DefaultCopyright.js +2 -3
  314. package/esm/app/Footer/__stories__/FooterAllInclusive.js +4 -5
  315. package/esm/app/Footer/__stories__/FooterWithLink.js +3 -4
  316. package/esm/app/Footer/__stories__/FooterWithLogo.js +3 -4
  317. package/esm/app/Footer/__stories__/FooterWithSecondaryNavigation.js +4 -5
  318. package/esm/app/Footer/__stories__/YearCopyright.js +2 -3
  319. package/esm/app/Header/__stories__/Default.js +1 -1
  320. package/esm/app/Header/__stories__/WithHeaderNavigation.js +4 -5
  321. package/esm/app/Header/__stories__/WithNavigation.js +3 -3
  322. package/esm/app/Header/__stories__/WithServiceName.js +2 -2
  323. package/esm/app/Header/__stories__/WithServiceNameAndLogo.js +2 -2
  324. package/esm/app/Header/index.spec.js +1 -1
  325. package/esm/app/OutdatedBrowserBanner.js +3 -3
  326. package/esm/app/PhaseBannerHeader/index.js +1 -1
  327. package/esm/app/QrCodeScanner/__stories__/Default.js +1 -1
  328. package/esm/app/ThemeOptionsForm/index.js +3 -3
  329. package/esm/app/ThemePaletteForm/index.js +1 -1
  330. package/esm/core/Accordion/__stories__/Default.js +1 -1
  331. package/esm/core/Accordion/__stories__/WithHints.js +2 -2
  332. package/esm/core/Accordion/index.js +3 -3
  333. package/esm/core/Card/__stories__/Default.js +1 -1
  334. package/esm/core/Card/__stories__/WithDarkBorder.js +1 -1
  335. package/esm/core/Card/__stories__/WithDarkTopBorder.js +1 -1
  336. package/esm/core/Card/__stories__/WithDivider.js +1 -1
  337. package/esm/core/Card/__stories__/WithGrayBorder.js +1 -1
  338. package/esm/core/Card/__stories__/WithGrayTopBorder.js +1 -1
  339. package/esm/core/Card/__stories__/WithGroupButton.js +1 -1
  340. package/esm/core/Checkbox/__stories__/ConditionalReveal.js +1 -1
  341. package/esm/core/Checkbox/__stories__/NoneAnswerWithError.js +2 -2
  342. package/esm/core/Checkbox/__stories__/WithErrorMessage.js +2 -2
  343. package/esm/core/DateInputContainer/__stories__/WithErrorMessage.js +2 -2
  344. package/esm/core/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +2 -2
  345. package/esm/core/ErrorMessage/__stories__/Default.js +2 -2
  346. package/esm/core/ErrorSummary/__stories__/Default.js +1 -1
  347. package/esm/core/ErrorSummary/__stories__/LinkedToCheckbox.js +5 -5
  348. package/esm/core/ErrorSummary/__stories__/LinkedToField.js +5 -5
  349. package/esm/core/ErrorSummary/__stories__/LinkedToInput.js +5 -6
  350. package/esm/core/FileUpload/__stories__/Default.js +1 -1
  351. package/esm/core/FileUpload/__stories__/WithErrorMessage.js +3 -3
  352. package/esm/core/Link/__stories__/DarkBackground.js +1 -1
  353. package/esm/core/Link/__stories__/DarkBackgroundNoUnderline.js +1 -1
  354. package/esm/core/List/ListItemTitle.js +1 -1
  355. package/esm/core/List/__stories__/Default.js +1 -1
  356. package/esm/core/Masthead/__stories__/Default.js +2 -2
  357. package/esm/core/NavList/NavListAuto/NavListAuto.js +1 -1
  358. package/esm/core/NavList/NavListAuto/NavListContextAuto.js +1 -1
  359. package/esm/core/NavList/NavListAuto/NavListItemAnchorAuto.js +2 -2
  360. package/esm/core/NavList/NavListAuto/NavListItemButtonAuto.js +2 -2
  361. package/esm/core/NavList/NavListAuto/NavListMenuAuto.js +2 -2
  362. package/esm/core/NavList/NavListItemBase.js +2 -2
  363. package/esm/core/NavList/__stories__/Default.js +1 -1
  364. package/esm/core/NavList/__stories__/NavVerticalLayout.js +1 -1
  365. package/esm/core/NotificationBanner/index.js +1 -1
  366. package/esm/core/PhaseBanner/__stories__/Default.js +1 -1
  367. package/esm/core/PhaseBanner/__stories__/Underlined.js +1 -1
  368. package/esm/core/RadioContainer/__stories__/ConditionalReveal.js +1 -1
  369. package/esm/core/RadioContainer/__stories__/Default.js +1 -1
  370. package/esm/core/RadioContainer/__stories__/Inline.js +1 -1
  371. package/esm/core/RadioContainer/__stories__/MultipleQuestions.js +1 -1
  372. package/esm/core/RadioContainer/__stories__/NoneAnswer.js +1 -1
  373. package/esm/core/RadioContainer/__stories__/WithErrorMessage.js +3 -3
  374. package/esm/core/RadioContainer/__stories__/WithHints.js +1 -1
  375. package/esm/core/SelectContainer/__stories__/Default.js +1 -1
  376. package/esm/core/SelectContainer/__stories__/DisabledInput.js +1 -1
  377. package/esm/core/SelectContainer/__stories__/WithHint.js +1 -1
  378. package/esm/core/ServiceBadge/index.js +1 -1
  379. package/esm/core/SingleCharacterInputContainer/__stories__/Default.js +1 -1
  380. package/esm/core/SingleCharacterInputContainer/__stories__/WithDefaultError.js +3 -3
  381. package/esm/core/SingleCharacterInputContainer/__stories__/WithErrorMessageInvalidCode.js +3 -3
  382. package/esm/core/SingleCharacterInputContainer/__stories__/WithErrorMessageLessDigit.js +3 -3
  383. package/esm/core/SummaryList/__stories__/Default.js +1 -1
  384. package/esm/core/SummaryList/__stories__/RowVariations.js +1 -1
  385. package/esm/core/SummaryList/__stories__/WithActions.js +2 -2
  386. package/esm/core/SummaryList/__stories__/WithKeyAndAction.js +2 -2
  387. package/esm/core/Table/__stories__/WithFloatingScroll.js +2 -2
  388. package/esm/core/Table/__stories__/WithLoader.js +4 -4
  389. package/esm/core/Table/index.js +1 -1
  390. package/esm/core/Tabs/__stories__/Default.js +3 -3
  391. package/esm/core/TextArea/__stories__/Default.js +1 -2
  392. package/esm/core/TextArea/__stories__/DisabledInput.js +2 -3
  393. package/esm/core/TextArea/__stories__/LimitedCharacters.js +2 -3
  394. package/esm/core/TextArea/__stories__/MultipleQuestions.js +1 -1
  395. package/esm/core/TextArea/__stories__/WithDeclaredRows.js +2 -3
  396. package/esm/core/TextArea/__stories__/WithErrorMessage.js +3 -4
  397. package/esm/core/TextArea/__stories__/WithHint.js +2 -3
  398. package/esm/core/TextInput/__stories__/AskingForNumbers.js +2 -3
  399. package/esm/core/TextInput/__stories__/Default.js +2 -3
  400. package/esm/core/TextInput/__stories__/DisabledInput.js +2 -3
  401. package/esm/core/TextInput/__stories__/FixedWidths.js +2 -3
  402. package/esm/core/TextInput/__stories__/FluidWidths.js +2 -3
  403. package/esm/core/TextInput/__stories__/MultipleQuestions.js +1 -1
  404. package/esm/core/TextInput/__stories__/WithErrorMessage.js +3 -4
  405. package/esm/core/TextInput/__stories__/WithHint.js +2 -3
  406. package/esm/core/VisuallyHidden/__stories__/Default.js +2 -2
  407. package/esm/govgr/Footer/index.js +2 -2
  408. package/esm/hooks/useNavList.js +1 -1
  409. package/esm/hooks/useSort.js +1 -2
  410. package/esm/index.js +1 -1
  411. package/esm/layouts/Basic/__stories__/MultipleRowsLayout.js +1 -1
  412. package/esm/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +1 -1
  413. package/esm/layouts/Grid/__stories__/Default.js +1 -1
  414. package/esm/layouts/Grid/__stories__/Inline.js +1 -1
  415. package/esm/locales/el.js +1 -1
  416. package/esm/typography/HeadingCaption/__stories__/Default.js +1 -1
  417. package/esm/typography/NormalText/__stories__/FontSizes.js +1 -1
  418. package/esm/typography/NormalText/__stories__/FontWeight.js +1 -1
  419. package/esm/typography/NormalText/__stories__/Variants.js +1 -1
  420. package/esm/utils/Kitchensink/KitchensinkComponent.js +2 -2
  421. package/esm/utils/Kitchensink/KitchensinkDashboard.js +1 -1
  422. package/govgr/Footer/index.js +4 -4
  423. package/hooks/useNavList.js +2 -2
  424. package/layouts/Basic/__stories__/MultipleRowsLayout.js +2 -2
  425. package/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +2 -2
  426. package/layouts/Grid/__stories__/Default.js +2 -2
  427. package/layouts/Grid/__stories__/Inline.js +2 -2
  428. package/locales/el.js +1 -1
  429. package/package.json +3 -3
  430. package/src/admin/AccessibilityMenu/index.tsx +6 -6
  431. package/src/admin/AutoComplete/Status/index.tsx +1 -1
  432. package/src/admin/AutoComplete/__stories__/Default.tsx +1 -1
  433. package/src/admin/AutoComplete/__stories__/WithAutoSelect.tsx +1 -1
  434. package/src/admin/AutoComplete/__stories__/WithDefaultValue.tsx +1 -1
  435. package/src/admin/AutoComplete/__stories__/WithInLine.tsx +1 -1
  436. package/src/admin/AutoComplete/__stories__/WithMinLength.tsx +1 -1
  437. package/src/admin/AutoComplete/__stories__/WithPlaceHolder.tsx +1 -1
  438. package/src/admin/AutoComplete/__stories__/WithShowAllValues.tsx +1 -1
  439. package/src/admin/AutoComplete/index.tsx +3 -4
  440. package/src/admin/CircularProgress/__stories__/Default.tsx +1 -1
  441. package/src/admin/CopyToClipboard/index.tsx +1 -1
  442. package/src/admin/Drawer/__stories__/Default.tsx +2 -3
  443. package/src/admin/Dropdown/__stories__/AlignRight.tsx +4 -5
  444. package/src/admin/Dropdown/__stories__/Default.tsx +4 -5
  445. package/src/admin/Dropdown/__stories__/PlacementTop.tsx +4 -5
  446. package/src/admin/Modal/__stories__/Default.tsx +1 -1
  447. package/src/admin/Pagination/Pagination.stories.js +2 -0
  448. package/src/admin/Pagination/__stories__/Default.tsx +11 -87
  449. package/src/admin/Pagination/__stories__/PaginationSmall.tsx +3 -3
  450. package/src/admin/Pagination/__stories__/WithInactiveValues.tsx +90 -0
  451. package/src/admin/Pagination/__stories__/WithResultsPerPage.tsx +66 -0
  452. package/src/admin/Pagination/index.mdx +8 -0
  453. package/src/admin/Pagination/index.tsx +3 -3
  454. package/src/admin/StepNav/__stories__/Default.tsx +3 -3
  455. package/src/admin/StepNav/index.tsx +8 -8
  456. package/src/admin/TaskList/__stories__/Default.tsx +8 -8
  457. package/src/admin/Timeline/__stories__/Default.tsx +6 -6
  458. package/src/api/index.spec.tsx +2 -2
  459. package/src/api/useResource.tsx +2 -2
  460. package/src/api/useResourceAction.tsx +2 -2
  461. package/src/api/useResourceQuery.tsx +1 -1
  462. package/src/api/utils.tsx +1 -1
  463. package/src/app/Footer/__stories__/DefaultCopyright.tsx +6 -6
  464. package/src/app/Footer/__stories__/FooterAllInclusive.tsx +6 -5
  465. package/src/app/Footer/__stories__/FooterWithLink.tsx +6 -6
  466. package/src/app/Footer/__stories__/FooterWithLogo.tsx +6 -5
  467. package/src/app/Footer/__stories__/FooterWithSecondaryNavigation.tsx +6 -5
  468. package/src/app/Footer/__stories__/YearCopyright.tsx +6 -6
  469. package/src/app/Header/__stories__/Default.tsx +1 -1
  470. package/src/app/Header/__stories__/WithHeaderNavigation.tsx +4 -5
  471. package/src/app/Header/__stories__/WithNavigation.tsx +3 -3
  472. package/src/app/Header/__stories__/WithServiceName.tsx +2 -2
  473. package/src/app/Header/__stories__/WithServiceNameAndLogo.tsx +2 -2
  474. package/src/app/Header/index.spec.tsx +1 -1
  475. package/src/app/OutdatedBrowserBanner.tsx +3 -3
  476. package/src/app/PhaseBannerHeader/index.tsx +1 -1
  477. package/src/app/QrCodeScanner/__stories__/Default.tsx +1 -1
  478. package/src/app/QrCodeViewer/index.tsx +1 -1
  479. package/src/app/ThemeOptionsForm/index.tsx +7 -7
  480. package/src/app/ThemePaletteForm/index.tsx +1 -1
  481. package/src/core/Accordion/__stories__/Default.tsx +1 -1
  482. package/src/core/Accordion/__stories__/WithHints.tsx +2 -2
  483. package/src/core/Accordion/index.tsx +3 -3
  484. package/src/core/Card/__stories__/Default.tsx +2 -2
  485. package/src/core/Card/__stories__/WithDarkBorder.tsx +2 -2
  486. package/src/core/Card/__stories__/WithDarkTopBorder.tsx +2 -2
  487. package/src/core/Card/__stories__/WithDivider.tsx +2 -2
  488. package/src/core/Card/__stories__/WithGrayBorder.tsx +2 -2
  489. package/src/core/Card/__stories__/WithGrayTopBorder.tsx +2 -2
  490. package/src/core/Card/__stories__/WithGroupButton.tsx +2 -2
  491. package/src/core/Checkbox/__stories__/ConditionalReveal.tsx +2 -2
  492. package/src/core/Checkbox/__stories__/NoneAnswerWithError.tsx +3 -3
  493. package/src/core/Checkbox/__stories__/WithErrorMessage.tsx +3 -3
  494. package/src/core/DateInputContainer/__stories__/WithErrorMessage.tsx +3 -3
  495. package/src/core/DateInputContainer/__stories__/WithErrorMessageForSingleField.tsx +3 -3
  496. package/src/core/ErrorMessage/__stories__/Default.tsx +3 -3
  497. package/src/core/ErrorSummary/__stories__/Default.tsx +1 -1
  498. package/src/core/ErrorSummary/__stories__/LinkedToCheckbox.tsx +7 -7
  499. package/src/core/ErrorSummary/__stories__/LinkedToField.tsx +8 -8
  500. package/src/core/ErrorSummary/__stories__/LinkedToInput.tsx +5 -6
  501. package/src/core/FileUpload/__stories__/Default.tsx +1 -1
  502. package/src/core/FileUpload/__stories__/WithErrorMessage.tsx +4 -4
  503. package/src/core/Link/__stories__/DarkBackground.tsx +1 -1
  504. package/src/core/Link/__stories__/DarkBackgroundNoUnderline.tsx +1 -1
  505. package/src/core/List/ListItemTitle.tsx +1 -1
  506. package/src/core/List/__stories__/Default.tsx +1 -1
  507. package/src/core/Masthead/__stories__/Default.tsx +3 -3
  508. package/src/core/NavList/NavListAuto/NavListAuto.tsx +1 -1
  509. package/src/core/NavList/NavListAuto/NavListBaseAuto.tsx +1 -1
  510. package/src/core/NavList/NavListAuto/NavListContextAuto.tsx +2 -2
  511. package/src/core/NavList/NavListAuto/NavListItemAnchorAuto.tsx +2 -2
  512. package/src/core/NavList/NavListAuto/NavListItemButtonAuto.tsx +2 -2
  513. package/src/core/NavList/NavListAuto/NavListMenuAuto.tsx +3 -3
  514. package/src/core/NavList/NavListItemBase.tsx +5 -5
  515. package/src/core/NavList/__stories__/Default.tsx +1 -1
  516. package/src/core/NavList/__stories__/NavVerticalLayout.tsx +1 -1
  517. package/src/core/NavList/types.tsx +1 -1
  518. package/src/core/NotificationBanner/index.tsx +1 -1
  519. package/src/core/PhaseBanner/__stories__/Default.tsx +2 -2
  520. package/src/core/PhaseBanner/__stories__/Underlined.tsx +2 -2
  521. package/src/core/RadioContainer/__stories__/ConditionalReveal.tsx +6 -6
  522. package/src/core/RadioContainer/__stories__/Default.tsx +2 -2
  523. package/src/core/RadioContainer/__stories__/Inline.tsx +2 -2
  524. package/src/core/RadioContainer/__stories__/MultipleQuestions.tsx +2 -2
  525. package/src/core/RadioContainer/__stories__/NoneAnswer.tsx +2 -2
  526. package/src/core/RadioContainer/__stories__/WithErrorMessage.tsx +3 -3
  527. package/src/core/RadioContainer/__stories__/WithHints.tsx +2 -2
  528. package/src/core/SelectContainer/__stories__/Default.tsx +3 -3
  529. package/src/core/SelectContainer/__stories__/DisabledInput.tsx +3 -3
  530. package/src/core/SelectContainer/__stories__/WithHint.tsx +3 -3
  531. package/src/core/ServiceBadge/index.tsx +1 -1
  532. package/src/core/SingleCharacterInputContainer/__stories__/Default.tsx +5 -5
  533. package/src/core/SingleCharacterInputContainer/__stories__/WithDefaultError.tsx +6 -6
  534. package/src/core/SingleCharacterInputContainer/__stories__/WithErrorMessageInvalidCode.tsx +6 -6
  535. package/src/core/SingleCharacterInputContainer/__stories__/WithErrorMessageLessDigit.tsx +6 -6
  536. package/src/core/SummaryList/__stories__/Default.tsx +2 -2
  537. package/src/core/SummaryList/__stories__/RowVariations.tsx +2 -2
  538. package/src/core/SummaryList/__stories__/WithActions.tsx +3 -3
  539. package/src/core/SummaryList/__stories__/WithKeyAndAction.tsx +3 -3
  540. package/src/core/Table/__stories__/WithFloatingScroll.tsx +9 -9
  541. package/src/core/Table/__stories__/WithLoader.tsx +6 -6
  542. package/src/core/Table/index.tsx +1 -1
  543. package/src/core/Tabs/__stories__/Default.tsx +10 -10
  544. package/src/core/TextArea/__stories__/Default.tsx +1 -2
  545. package/src/core/TextArea/__stories__/DisabledInput.tsx +2 -3
  546. package/src/core/TextArea/__stories__/LimitedCharacters.tsx +2 -3
  547. package/src/core/TextArea/__stories__/MultipleQuestions.tsx +1 -1
  548. package/src/core/TextArea/__stories__/WithDeclaredRows.tsx +2 -3
  549. package/src/core/TextArea/__stories__/WithErrorMessage.tsx +3 -4
  550. package/src/core/TextArea/__stories__/WithHint.tsx +2 -3
  551. package/src/core/TextInput/__stories__/AskingForNumbers.tsx +2 -3
  552. package/src/core/TextInput/__stories__/Default.tsx +2 -3
  553. package/src/core/TextInput/__stories__/DisabledInput.tsx +2 -3
  554. package/src/core/TextInput/__stories__/FixedWidths.tsx +2 -3
  555. package/src/core/TextInput/__stories__/FluidWidths.tsx +2 -3
  556. package/src/core/TextInput/__stories__/MultipleQuestions.tsx +1 -1
  557. package/src/core/TextInput/__stories__/WithErrorMessage.tsx +3 -4
  558. package/src/core/TextInput/__stories__/WithHint.tsx +2 -3
  559. package/src/core/VisuallyHidden/__stories__/Default.tsx +4 -4
  560. package/src/govgr/Footer/index.tsx +2 -2
  561. package/src/hooks/useNavList.ts +1 -1
  562. package/src/hooks/useSort.tsx +1 -2
  563. package/src/layouts/Basic/__stories__/MultipleRowsLayout.tsx +1 -1
  564. package/src/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.tsx +1 -1
  565. package/src/layouts/Grid/__stories__/Default.tsx +1 -1
  566. package/src/layouts/Grid/__stories__/Inline.tsx +1 -1
  567. package/src/locales/el.ts +1 -1
  568. package/src/typography/HeadingCaption/__stories__/Default.tsx +1 -1
  569. package/src/typography/NormalText/__stories__/FontSizes.tsx +1 -1
  570. package/src/typography/NormalText/__stories__/FontWeight.tsx +1 -1
  571. package/src/typography/NormalText/__stories__/Variants.tsx +1 -1
  572. package/src/utils/Kitchensink/KitchensinkComponent.tsx +2 -2
  573. package/src/utils/Kitchensink/KitchensinkDashboard.tsx +1 -1
  574. package/typography/HeadingCaption/__stories__/Default.js +2 -2
  575. package/typography/NormalText/__stories__/FontSizes.js +2 -2
  576. package/typography/NormalText/__stories__/FontWeight.js +2 -2
  577. package/typography/NormalText/__stories__/Variants.js +2 -2
  578. package/utils/Kitchensink/KitchensinkComponent.js +3 -3
  579. package/utils/Kitchensink/KitchensinkDashboard.js +2 -2
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import { Pagination, PaginationList, PaginationListItem, PaginationLabel } from '@digigov/ui/admin/Pagination';
3
- import { ArrowIcon } from '@digigov/ui/core/SvgIcon';
3
+ import { I18NProvider } from '@digigov/ui/app/i18n';
4
4
  import { Link } from '@digigov/ui/core/Link';
5
5
  import { SectionBreak } from '@digigov/ui/core/SectionBreak';
6
- import { I18NProvider } from '@digigov/ui/app/i18n';
6
+ import { ArrowIcon } from '@digigov/ui/core/SvgIcon';
7
7
 
8
8
  var _ref = /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
9
9
  start: 10,
@@ -12,19 +12,19 @@ var _ref = /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React
12
12
  }), /*#__PURE__*/React.createElement(PaginationList, null, /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, /*#__PURE__*/React.createElement(ArrowIcon, {
13
13
  direction: "left"
14
14
  }), "\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
15
- href: "/page1"
15
+ href: "#page1"
16
16
  }, "1")), /*#__PURE__*/React.createElement(PaginationListItem, {
17
17
  currentPage: true
18
18
  }, "2"), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
19
- href: "/page3"
19
+ href: "#page3"
20
20
  }, "3")), /*#__PURE__*/React.createElement(PaginationListItem, {
21
21
  variant: "dots"
22
22
  }), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
23
- href: "/page5"
23
+ href: "#page5"
24
24
  }, "5")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
25
- href: "/page6"
25
+ href: "#page6"
26
26
  }, "6")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
27
- href: "/page7"
27
+ href: "#page7"
28
28
  }, "7")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF", /*#__PURE__*/React.createElement(ArrowIcon, {
29
29
  direction: "right"
30
30
  })))));
@@ -34,83 +34,25 @@ var _ref2 = /*#__PURE__*/React.createElement(SectionBreak, {
34
34
  });
35
35
 
36
36
  var _ref3 = /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
37
- start: 10,
38
- end: 20,
39
- total: 10000
40
- }), /*#__PURE__*/React.createElement(PaginationList, null, /*#__PURE__*/React.createElement(PaginationListItem, {
41
- inactive: true
42
- }, /*#__PURE__*/React.createElement(Link, null, /*#__PURE__*/React.createElement(ArrowIcon, {
43
- direction: "left"
44
- }), "\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF")), /*#__PURE__*/React.createElement(PaginationListItem, {
45
- currentPage: true
46
- }, "1"), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
47
- href: "/page2"
48
- }, "2")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
49
- href: "/page3"
50
- }, "3")), /*#__PURE__*/React.createElement(PaginationListItem, {
51
- variant: "dots"
52
- }), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
53
- href: "/page5"
54
- }, "5")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
55
- href: "/page6"
56
- }, "6")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
57
- href: "/page7"
58
- }, "7")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF", /*#__PURE__*/React.createElement(ArrowIcon, {
59
- direction: "right"
60
- })))));
61
-
62
- var _ref4 = /*#__PURE__*/React.createElement(SectionBreak, {
63
- size: "l"
64
- });
65
-
66
- var _ref5 = /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
67
- start: 10,
68
- end: 20,
69
- total: 10000
70
- }), /*#__PURE__*/React.createElement(PaginationList, null, /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, /*#__PURE__*/React.createElement(ArrowIcon, {
71
- direction: "left"
72
- }), "\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
73
- href: "/page1"
74
- }, "1")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, "2")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
75
- href: "/page3"
76
- }, "3")), /*#__PURE__*/React.createElement(PaginationListItem, {
77
- variant: "dots"
78
- }), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
79
- href: "/page5"
80
- }, "5")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
81
- href: "/page6"
82
- }, "6")), /*#__PURE__*/React.createElement(PaginationListItem, {
83
- currentPage: true
84
- }, "7"), /*#__PURE__*/React.createElement(PaginationListItem, {
85
- inactive: true
86
- }, /*#__PURE__*/React.createElement(Link, null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF", /*#__PURE__*/React.createElement(ArrowIcon, {
87
- direction: "right"
88
- })))));
89
-
90
- var _ref6 = /*#__PURE__*/React.createElement(SectionBreak, {
91
- size: "l"
92
- });
93
-
94
- var _ref7 = /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
95
37
  start: 1,
96
38
  end: 10,
97
39
  total: 15
98
40
  }), /*#__PURE__*/React.createElement(PaginationList, null, /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, /*#__PURE__*/React.createElement(ArrowIcon, {
99
41
  direction: "left"
100
42
  }), "\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
101
- href: "/page1"
43
+ href: "#page1"
102
44
  }, "1")), /*#__PURE__*/React.createElement(PaginationListItem, {
103
45
  variant: "dots"
104
46
  }), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
105
- href: "/page7"
106
- }, "2")), /*#__PURE__*/React.createElement(PaginationListItem, {
47
+ href: "#page7"
48
+ }, "7")), /*#__PURE__*/React.createElement(PaginationListItem, {
107
49
  currentPage: true
108
50
  }, "8"), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
109
- href: "/page9"
51
+ href: "#page9"
110
52
  }, "9")), /*#__PURE__*/React.createElement(PaginationListItem, {
111
53
  variant: "dots"
112
54
  }), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
113
- href: "/page20"
55
+ href: "#page20"
114
56
  }, "20")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF", /*#__PURE__*/React.createElement(ArrowIcon, {
115
57
  direction: "right"
116
58
  })))));
@@ -122,6 +64,6 @@ export var Default = function Default() {
122
64
  t: function t(str) {
123
65
  return str;
124
66
  }
125
- }, _ref, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7));
67
+ }, _ref, _ref2, _ref3));
126
68
  };
127
69
  export default Default;
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import { Pagination, PaginationList, PaginationListItem, PaginationLabel } from '@digigov/ui/admin/Pagination';
3
- import { ArrowIcon } from '@digigov/ui/core/SvgIcon';
3
+ import { I18NProvider } from '@digigov/ui/app/i18n';
4
4
  import { Link } from '@digigov/ui/core/Link';
5
5
  import { SectionBreak } from '@digigov/ui/core/SectionBreak';
6
- import { I18NProvider } from '@digigov/ui/app/i18n';
6
+ import { ArrowIcon } from '@digigov/ui/core/SvgIcon';
7
7
 
8
8
  var _ref = /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
9
9
  start: 1,
@@ -16,7 +16,7 @@ var _ref = /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React
16
16
  }))), /*#__PURE__*/React.createElement(PaginationListItem, {
17
17
  currentPage: true
18
18
  }, "1"), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
19
- href: "/page7"
19
+ href: "#page2"
20
20
  }, "2")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, /*#__PURE__*/React.createElement(ArrowIcon, {
21
21
  direction: "right"
22
22
  })))));
@@ -0,0 +1,71 @@
1
+ import React from 'react';
2
+ import { Pagination, PaginationList, PaginationListItem, PaginationLabel } from '@digigov/ui/admin/Pagination';
3
+ import { ArrowIcon } from '@digigov/ui/core/SvgIcon';
4
+ import { Link } from '@digigov/ui/core/Link';
5
+ import { SectionBreak } from '@digigov/ui/core/SectionBreak';
6
+ import { I18NProvider } from '@digigov/ui/app/i18n';
7
+
8
+ var _ref = /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
9
+ start: 10,
10
+ end: 20,
11
+ total: 10000
12
+ }), /*#__PURE__*/React.createElement(PaginationList, null, /*#__PURE__*/React.createElement(PaginationListItem, {
13
+ inactive: true
14
+ }, /*#__PURE__*/React.createElement(Link, null, /*#__PURE__*/React.createElement(ArrowIcon, {
15
+ direction: "left"
16
+ }), "\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF")), /*#__PURE__*/React.createElement(PaginationListItem, {
17
+ currentPage: true
18
+ }, "1"), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
19
+ href: "#page2"
20
+ }, "2")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
21
+ href: "#page3"
22
+ }, "3")), /*#__PURE__*/React.createElement(PaginationListItem, {
23
+ variant: "dots"
24
+ }), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
25
+ href: "#page5"
26
+ }, "5")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
27
+ href: "#page6"
28
+ }, "6")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
29
+ href: "#page7"
30
+ }, "7")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF", /*#__PURE__*/React.createElement(ArrowIcon, {
31
+ direction: "right"
32
+ })))));
33
+
34
+ var _ref2 = /*#__PURE__*/React.createElement(SectionBreak, {
35
+ size: "l"
36
+ });
37
+
38
+ var _ref3 = /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
39
+ start: 10,
40
+ end: 20,
41
+ total: 10000
42
+ }), /*#__PURE__*/React.createElement(PaginationList, null, /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, /*#__PURE__*/React.createElement(ArrowIcon, {
43
+ direction: "left"
44
+ }), "\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
45
+ href: "#page1"
46
+ }, "1")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, "2")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
47
+ href: "#page3"
48
+ }, "3")), /*#__PURE__*/React.createElement(PaginationListItem, {
49
+ variant: "dots"
50
+ }), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
51
+ href: "#page5"
52
+ }, "5")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
53
+ href: "#page6"
54
+ }, "6")), /*#__PURE__*/React.createElement(PaginationListItem, {
55
+ currentPage: true
56
+ }, "7"), /*#__PURE__*/React.createElement(PaginationListItem, {
57
+ inactive: true
58
+ }, /*#__PURE__*/React.createElement(Link, null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF", /*#__PURE__*/React.createElement(ArrowIcon, {
59
+ direction: "right"
60
+ })))));
61
+
62
+ export var WithInactiveValues = function WithInactiveValues() {
63
+ return /*#__PURE__*/React.createElement("div", {
64
+ className: "example"
65
+ }, /*#__PURE__*/React.createElement(I18NProvider, {
66
+ t: function t(str) {
67
+ return str;
68
+ }
69
+ }, _ref, _ref2, _ref3));
70
+ };
71
+ export default WithInactiveValues;
@@ -0,0 +1,42 @@
1
+ import React from 'react';
2
+ import { Pagination, PaginationList, PaginationListItem, PaginationLabel } from '@digigov/ui/admin/Pagination';
3
+ import { SelectContainer, SelectOption } from '@digigov/ui/core/SelectContainer';
4
+ import { ArrowIcon } from '@digigov/ui/core/SvgIcon';
5
+ import { Link } from '@digigov/ui/core/Link';
6
+ import { I18NProvider } from '@digigov/ui/app/i18n';
7
+ import { LabelContainer } from '@digigov/react-core';
8
+
9
+ var _ref = /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
10
+ start: 1,
11
+ end: 10,
12
+ total: 15
13
+ }), /*#__PURE__*/React.createElement(LabelContainer, null, "\u0391\u03C0\u03BF\u03C4\u03B5\u03BB\u03AD\u03C3\u03BC\u03B1\u03C4\u03B1 \u03B1\u03BD\u03AC \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1", /*#__PURE__*/React.createElement(SelectContainer, null, /*#__PURE__*/React.createElement(SelectOption, null, "5"), /*#__PURE__*/React.createElement(SelectOption, null, "10"), /*#__PURE__*/React.createElement(SelectOption, null, "15"))), /*#__PURE__*/React.createElement(PaginationList, null, /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, /*#__PURE__*/React.createElement(ArrowIcon, {
14
+ direction: "left"
15
+ }), "\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
16
+ href: "#page1"
17
+ }, "1")), /*#__PURE__*/React.createElement(PaginationListItem, {
18
+ variant: "dots"
19
+ }), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
20
+ href: "#page2"
21
+ }, "2")), /*#__PURE__*/React.createElement(PaginationListItem, {
22
+ currentPage: true
23
+ }, "8"), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
24
+ href: "#page9"
25
+ }, "9")), /*#__PURE__*/React.createElement(PaginationListItem, {
26
+ variant: "dots"
27
+ }), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
28
+ href: "#page20"
29
+ }, "20")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF", /*#__PURE__*/React.createElement(ArrowIcon, {
30
+ direction: "right"
31
+ })))));
32
+
33
+ export var WithResultsPerPage = function WithResultsPerPage() {
34
+ return /*#__PURE__*/React.createElement("div", {
35
+ className: "example"
36
+ }, /*#__PURE__*/React.createElement(I18NProvider, {
37
+ t: function t(str) {
38
+ return str;
39
+ }
40
+ }, _ref));
41
+ };
42
+ export default WithResultsPerPage;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
+ import Pagination from '@digigov/react-extensions/admin/Pagination';
2
3
  import PaginationLabelContainer from '@digigov/react-extensions/admin/PaginationLabelContainer';
3
- import { I18nText } from '@digigov/ui/app/I18nText';
4
4
 
5
5
  /**
6
6
  * PaginationLabel component is used for placing the pagination results label.
@@ -13,11 +13,11 @@ export var PaginationLabel = /*#__PURE__*/React.forwardRef(function PaginationLa
13
13
  ref: ref
14
14
  }, /*#__PURE__*/React.createElement(I18nText, {
15
15
  i18nKey: "pagination.label"
16
- }, "Showing ", /*#__PURE__*/React.createElement("b", null, start), " to ", /*#__PURE__*/React.createElement("b", null, end), " of ", /*#__PURE__*/React.createElement("b", null, total), " results."));
16
+ }, "Showing ", /*#__PURE__*/React.createElement("b", null, start), " to ", /*#__PURE__*/React.createElement("b", null, end), " of ", /*#__PURE__*/React.createElement("b", null, total), " results"));
17
17
  });
18
18
  export * from '@digigov/react-extensions/admin/Pagination';
19
19
  export * from '@digigov/react-extensions/admin/PaginationList';
20
20
  export * from '@digigov/react-extensions/admin/PaginationListItem';
21
21
  export { PaginationLabelContainer };
22
- import Pagination from '@digigov/react-extensions/admin/Pagination';
22
+ import { I18nText } from '@digigov/ui/app/I18nText';
23
23
  export default Pagination;
@@ -11,6 +11,14 @@ import Pagination from '@digigov/ui/app/Pagination';
11
11
 
12
12
  <Story packageName="@digigov/ui" component="admin/Pagination" story="Default.tsx" />
13
13
 
14
+ ## With inactive values
15
+
16
+ <Story packageName="@digigov/ui" component="admin/Pagination" story="WithInactiveValues.tsx" />
17
+
18
+ ## With results per page
19
+
20
+ <Story packageName="@digigov/ui" component="admin/Pagination" story="WithResultsPerPage.tsx" />
21
+
14
22
  ## API
15
23
 
16
24
  <PropTypes packageName="@digigov/ui" component="Pagination" />
@@ -2,12 +2,12 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import React, { useState, useEffect } from 'react';
4
4
  import { StepNav, StepNavCircleΝumber, StepNavControls, StepNavList, StepNavListItem, StepNavAccordionOpened, StepNavAccordionClosed, StepNavAccordion, StepNavAccordionContent, StepNavAccordionSummary, StepNavAccordionSummaryHeading, StepNavAccordionHeadingTitle, StepNavAccordionHeadingText } from '@digigov/ui/admin/StepNav';
5
- import { Paragraph } from '@digigov/ui/typography/Paragraph';
5
+ import { Button } from '@digigov/ui/core/Button';
6
+ import { Link } from '@digigov/ui/core/Link';
6
7
  import { List } from '@digigov/ui/core/List/List';
7
8
  import { ListItem } from '@digigov/ui/core/List/ListItem';
8
- import { Link } from '@digigov/ui/core/Link';
9
9
  import { VisuallyHidden } from '@digigov/ui/core/VisuallyHidden';
10
- import { Button } from '@digigov/ui/core/Button';
10
+ import { Paragraph } from '@digigov/ui/typography/Paragraph';
11
11
  var data = [{
12
12
  title: 'Title-1',
13
13
  description: 'Some description here',
@@ -1,15 +1,15 @@
1
- import StepNavCircleΝumber from '@digigov/react-extensions/admin/StepNavCircleΝumber';
2
1
  import StepNav from '@digigov/react-extensions/admin/StepNav';
3
- import StepNavControls from '@digigov/react-extensions/admin/StepNavControls';
4
- import StepNavList from '@digigov/react-extensions/admin/StepNavList';
5
- import StepNavListItem from '@digigov/react-extensions/admin/StepNavListItem';
6
2
  import StepNavAccordion from '@digigov/react-extensions/admin/StepNavAccordion';
3
+ import StepNavAccordionClosed from '@digigov/react-extensions/admin/StepNavAccordionClosed';
7
4
  import StepNavAccordionContent from '@digigov/react-extensions/admin/StepNavAccordionContent';
8
- import StepNavAccordionSummary from '@digigov/react-extensions/admin/StepNavAccordionSummary';
5
+ import StepNavAccordionHeadingText from '@digigov/react-extensions/admin/StepNavAccordionHeadingText';
6
+ import StepNavAccordionHeadingTitle from '@digigov/react-extensions/admin/StepNavAccordionHeadingTitle';
9
7
  import StepNavAccordionOpened from '@digigov/react-extensions/admin/StepNavAccordionOpened';
10
- import StepNavAccordionClosed from '@digigov/react-extensions/admin/StepNavAccordionClosed';
8
+ import StepNavAccordionSummary from '@digigov/react-extensions/admin/StepNavAccordionSummary';
11
9
  import StepNavAccordionSummaryHeading from '@digigov/react-extensions/admin/StepNavAccordionSummaryHeading';
12
- import StepNavAccordionHeadingTitle from '@digigov/react-extensions/admin/StepNavAccordionHeadingTitle';
13
- import StepNavAccordionHeadingText from '@digigov/react-extensions/admin/StepNavAccordionHeadingText';
10
+ import StepNavCircleΝumber from '@digigov/react-extensions/admin/StepNavCircleΝumber';
11
+ import StepNavControls from '@digigov/react-extensions/admin/StepNavControls';
12
+ import StepNavList from '@digigov/react-extensions/admin/StepNavList';
13
+ import StepNavListItem from '@digigov/react-extensions/admin/StepNavListItem';
14
14
  export { StepNavAccordion, StepNavAccordionContent, StepNavAccordionSummary, StepNavAccordionSummaryHeading, StepNavAccordionHeadingTitle, StepNavAccordionHeadingText, StepNavCircleΝumber, StepNavAccordionOpened, StepNavAccordionClosed, StepNav, StepNavControls, StepNavList, StepNavListItem };
15
15
  export default StepNav;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
+ import { TaskList, TaskListItem, TaskListItemHeading, TaskListItemContent, TaskListItemTag } from '@digigov/ui/admin/TaskList';
2
3
  import { LinkBase } from '@digigov/ui/core/Link';
3
4
  import { SummaryList, SummaryListItem, SummaryListItemAction, SummaryListItemKey } from '@digigov/ui/core/SummaryList';
4
- import { TaskList, TaskListItem, TaskListItemHeading, TaskListItemContent, TaskListItemTag } from '@digigov/ui/admin/TaskList';
5
5
  var fields = [{
6
6
  title: 'Check before you start',
7
7
  tasks: [{
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
+ import { Timeline, TimelineItem, TimelineHeading, TimelineContent, TimelineActions } from '@digigov/ui/admin/Timeline';
2
3
  import { Button } from '@digigov/ui/core/Button';
4
+ import { Details, DetailsSummary, DetailsContent } from '@digigov/ui/core/Details';
5
+ import { LinkBase } from '@digigov/ui/core/Link';
3
6
  import { Hint } from '@digigov/ui/typography/Hint';
4
7
  import { Paragraph } from '@digigov/ui/typography/Paragraph';
5
- import { LinkBase } from '@digigov/ui/core/Link';
6
- import { Timeline, TimelineItem, TimelineHeading, TimelineContent, TimelineActions } from '@digigov/ui/admin/Timeline';
7
- import { Details, DetailsSummary, DetailsContent } from '@digigov/ui/core/Details';
8
8
  var data = [{
9
9
  title: 'Application requires confirmation',
10
10
  date: '14 June 2019 at 2:01pm',
@@ -9,10 +9,10 @@ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyri
9
9
  import React, { Suspense, useEffect } from 'react';
10
10
  import { render, fireEvent } from '@testing-library/react';
11
11
  import fetchMock from 'fetch-mock';
12
+ import 'whatwg-fetch';
13
+ import fetchAPI from '@digigov/ui/api/fetchAPI';
12
14
  import { APIProvider, useResource, useResourceAction, useResourceMany, APIErrors } from '@digigov/ui/api/index';
13
15
  import delay from '@digigov/ui/test-utils/delay';
14
- import fetchAPI from '@digigov/ui/api/fetchAPI';
15
- import 'whatwg-fetch';
16
16
 
17
17
  var _ref2 = /*#__PURE__*/React.createElement("span", null, "something went wrong");
18
18
 
@@ -4,10 +4,10 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
 
5
5
  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; }
6
6
 
7
- import { getQueryKey, processResponse } from '@digigov/ui/api/utils';
7
+ import { useState } from 'react';
8
8
  import { useQuery, queryCache } from 'react-query';
9
9
  import { useAPI } from '@digigov/ui/api';
10
- import { useState } from 'react';
10
+ import { getQueryKey, processResponse } from '@digigov/ui/api/utils';
11
11
  export function useResource(resource, id, query, options, suspense) {
12
12
  var _useAPI = useAPI(),
13
13
  baseURL = _useAPI.config.baseURL,
@@ -5,9 +5,9 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
5
5
  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; }
6
6
 
7
7
  import { useState, useEffect } from 'react';
8
- import { getQueryKey, processResponse } from '@digigov/ui/api/utils';
9
8
  import { useMutation } from 'react-query';
10
9
  import { useAPI } from '@digigov/ui/api';
10
+ import { getQueryKey, processResponse } from '@digigov/ui/api/utils';
11
11
  export function useResourceAction(resource, id) {
12
12
  var method = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'POST';
13
13
  var data = arguments.length > 3 ? arguments[3] : undefined;
@@ -8,9 +8,9 @@ var _excluded = ["data"];
8
8
  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; }
9
9
 
10
10
  import { useEffect, useMemo, useState, useCallback } from 'react';
11
- import { getQueryKey, processResponse } from '@digigov/ui/api/utils';
12
11
  import { usePaginatedQuery, queryCache } from 'react-query';
13
12
  import { useAPI } from '@digigov/ui/api';
13
+ import { getQueryKey, processResponse } from '@digigov/ui/api/utils';
14
14
  var DEFAULT_PAGINATION_LIMIT = 30;
15
15
  var DEFAULT_LIMIT_OPTIONS = [10, 30, 60, 100];
16
16
  export function useResourceManyBase(resource, query, options) {
@@ -1,9 +1,8 @@
1
1
  import React from 'react';
2
+ import { Footer, FooterMeta, FooterMetaItem, FooterContent, FooterInlineList, FooterInlineListItem, FooterLink } from "@digigov/ui/app/Footer";
3
+ import { VisuallyHidden } from '@digigov/ui/core/VisuallyHidden';
2
4
  import { Copyright } from '@digigov/ui/govgr/Footer/Copyright';
3
5
  import { HellenicRepublicLogo } from '@digigov/ui/govgr/Footer/HellenicRepublicLogo';
4
- import { Footer } from '@digigov/ui/app/Footer';
5
- import { FooterMeta, FooterMetaItem, FooterContent, FooterInlineList, FooterInlineListItem, FooterLink } from '@digigov/ui/app/Footer';
6
- import { VisuallyHidden } from '@digigov/ui/core/VisuallyHidden';
7
6
 
8
7
  var _ref = /*#__PURE__*/React.createElement(Footer, null, /*#__PURE__*/React.createElement(FooterMeta, null, /*#__PURE__*/React.createElement(FooterMetaItem, {
9
8
  grow: true
@@ -1,11 +1,10 @@
1
1
  import React from 'react';
2
- import { Footer } from '@digigov/ui/app/Footer';
3
- import { Copyright } from '@digigov/ui/govgr/Footer/Copyright';
4
- import { HellenicRepublicLogo } from '@digigov/ui/govgr/Footer/HellenicRepublicLogo';
5
- import { FooterMeta, FooterMetaItem, FooterContent, FooterNavigation, FooterSection, FooterHeading, FooterList, FooterListItem, FooterLink, FooterInlineList, FooterInlineListItem, FooterContentLogos, FooterImage } from '@digigov/ui/app/Footer';
6
- import { VisuallyHidden } from '@digigov/ui/core/VisuallyHidden';
2
+ import { Footer, FooterMeta, FooterMetaItem, FooterContent, FooterNavigation, FooterSection, FooterHeading, FooterList, FooterListItem, FooterLink, FooterInlineList, FooterInlineListItem, FooterContentLogos, FooterImage } from "@digigov/ui/app/Footer";
7
3
  import { Link } from '@digigov/ui/core/Link';
8
4
  import { SectionBreak } from '@digigov/ui/core/SectionBreak';
5
+ import { VisuallyHidden } from '@digigov/ui/core/VisuallyHidden';
6
+ import { Copyright } from '@digigov/ui/govgr/Footer/Copyright';
7
+ import { HellenicRepublicLogo } from '@digigov/ui/govgr/Footer/HellenicRepublicLogo';
9
8
  import logo1 from '@digigov/ui/govgr/images/greek-government-base64';
10
9
  import logo2 from '@digigov/ui/govgr/images/grnet-logo-base64';
11
10
 
@@ -1,10 +1,9 @@
1
1
  import React from 'react';
2
+ import { Footer, FooterMeta, FooterMetaItem, FooterContent, FooterInlineList, FooterInlineListItem, FooterLink } from "@digigov/ui/app/Footer";
3
+ import { Link } from '@digigov/ui/core/Link';
4
+ import { VisuallyHidden } from '@digigov/ui/core/VisuallyHidden';
2
5
  import { Copyright } from '@digigov/ui/govgr/Footer/Copyright';
3
6
  import { HellenicRepublicLogo } from '@digigov/ui/govgr/Footer/HellenicRepublicLogo';
4
- import { Footer } from '@digigov/ui/app/Footer';
5
- import { FooterMeta, FooterMetaItem, FooterContent, FooterInlineList, FooterInlineListItem, FooterLink } from '@digigov/ui/app/Footer';
6
- import { VisuallyHidden } from '@digigov/ui/core/VisuallyHidden';
7
- import { Link } from '@digigov/ui/core/Link';
8
7
 
9
8
  var _ref = /*#__PURE__*/React.createElement(Footer, null, /*#__PURE__*/React.createElement(FooterMeta, null, /*#__PURE__*/React.createElement(FooterMetaItem, {
10
9
  grow: true
@@ -1,10 +1,9 @@
1
1
  import React from 'react';
2
- import { Footer } from '@digigov/ui/app/Footer';
2
+ import { Footer, FooterMeta, FooterMetaItem, FooterContent, FooterContentLogos, FooterImage } from "@digigov/ui/app/Footer";
3
+ import { Link } from '@digigov/ui/core/Link';
4
+ import { VisuallyHidden } from '@digigov/ui/core/VisuallyHidden';
3
5
  import { Copyright } from '@digigov/ui/govgr/Footer/Copyright';
4
6
  import { HellenicRepublicLogo } from '@digigov/ui/govgr/Footer/HellenicRepublicLogo';
5
- import { FooterMeta, FooterMetaItem, FooterContent, FooterContentLogos, FooterImage } from '@digigov/ui/app/Footer';
6
- import { VisuallyHidden } from '@digigov/ui/core/VisuallyHidden';
7
- import { Link } from '@digigov/ui/core/Link';
8
7
  import logo1 from '@digigov/ui/govgr/images/greek-government-base64';
9
8
  import logo2 from '@digigov/ui/govgr/images/grnet-logo-base64';
10
9
 
@@ -1,11 +1,10 @@
1
1
  import React from 'react';
2
- import { Footer } from '@digigov/ui/app/Footer';
3
- import { Copyright } from '@digigov/ui/govgr/Footer/Copyright';
4
- import { HellenicRepublicLogo } from '@digigov/ui/govgr/Footer/HellenicRepublicLogo';
5
- import { FooterMeta, FooterMetaItem, FooterContent, FooterNavigation, FooterSection, FooterHeading, FooterList, FooterListItem, FooterLink } from '@digigov/ui/app/Footer';
6
- import { VisuallyHidden } from '@digigov/ui/core/VisuallyHidden';
2
+ import { Footer, FooterMeta, FooterMetaItem, FooterContent, FooterNavigation, FooterSection, FooterHeading, FooterList, FooterListItem, FooterLink } from "@digigov/ui/app/Footer";
7
3
  import { Link } from '@digigov/ui/core/Link';
8
4
  import { SectionBreak } from '@digigov/ui/core/SectionBreak';
5
+ import { VisuallyHidden } from '@digigov/ui/core/VisuallyHidden';
6
+ import { Copyright } from '@digigov/ui/govgr/Footer/Copyright';
7
+ import { HellenicRepublicLogo } from '@digigov/ui/govgr/Footer/HellenicRepublicLogo';
9
8
 
10
9
  var _ref = /*#__PURE__*/React.createElement(Footer, null, /*#__PURE__*/React.createElement(FooterNavigation, null, /*#__PURE__*/React.createElement(FooterSection, null, /*#__PURE__*/React.createElement(FooterHeading, null, "\u03A4\u03AF\u03C4\u03BB\u03BF\u03C2 \u03B3\u03B9\u03B1 \u03C4\u03BF \u03BC\u03B5\u03BD\u03BF\u03CD"), /*#__PURE__*/React.createElement(FooterList, {
11
10
  columns: 2
@@ -1,9 +1,8 @@
1
1
  import React from 'react';
2
+ import { Footer, FooterMeta, FooterMetaItem, FooterContent, FooterInlineList, FooterInlineListItem, FooterLink } from "@digigov/ui/app/Footer";
3
+ import { VisuallyHidden } from '@digigov/ui/core/VisuallyHidden';
2
4
  import { Copyright, getCopyright } from '@digigov/ui/govgr/Footer/Copyright';
3
5
  import { HellenicRepublicLogo } from '@digigov/ui/govgr/Footer/HellenicRepublicLogo';
4
- import { Footer } from '@digigov/ui/app/Footer';
5
- import { FooterMeta, FooterMetaItem, FooterContent, FooterInlineList, FooterInlineListItem, FooterLink } from '@digigov/ui/app/Footer';
6
- import { VisuallyHidden } from '@digigov/ui/core/VisuallyHidden';
7
6
 
8
7
  var _ref = /*#__PURE__*/React.createElement(VisuallyHidden, null, "\u03A0\u03B5\u03C1\u03B9\u03C3\u03C3\u03CC\u03C4\u03B5\u03C1\u03B5\u03C2 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AD\u03C2");
9
8