@digigov/ui 1.0.0-8bbf3ef2 → 1.0.0-a131264d

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 (1950) hide show
  1. package/api/fetchAPI.js +1 -1
  2. package/api/fetchAPI.mjs +52 -0
  3. package/api/index.js +6 -6
  4. package/api/index.mjs +13 -0
  5. package/api/index.spec.js +3 -3
  6. package/api/index.spec.mjs +548 -0
  7. package/api/useResource.js +3 -3
  8. package/api/useResource.mjs +131 -0
  9. package/api/useResourceAction.js +3 -3
  10. package/api/useResourceAction.mjs +144 -0
  11. package/api/useResourceQuery.js +3 -3
  12. package/api/useResourceQuery.mjs +211 -0
  13. package/api/utils.js +1 -1
  14. package/api/utils.mjs +236 -0
  15. package/app/BannerContainer/BannerContainer.stories.js +2 -2
  16. package/app/BannerContainer/BannerContainer.stories.mjs +10 -0
  17. package/app/BannerContainer/__stories__/CookiesBanner.js +7 -7
  18. package/app/BannerContainer/__stories__/CookiesBanner.mjs +18 -0
  19. package/app/Footer/Footer.stories.js +2 -2
  20. package/app/Footer/Footer.stories.mjs +17 -0
  21. package/app/Footer/__stories__/Default.js +1 -1
  22. package/app/Footer/__stories__/Default.mjs +9 -0
  23. package/app/Footer/__stories__/DefaultCopyright.js +8 -8
  24. package/app/Footer/__stories__/DefaultCopyright.mjs +19 -0
  25. package/app/Footer/__stories__/FooterAllInclusive.js +26 -26
  26. package/app/Footer/__stories__/FooterAllInclusive.mjs +69 -0
  27. package/app/Footer/__stories__/FooterWithLink.js +11 -11
  28. package/app/Footer/__stories__/FooterWithLink.mjs +32 -0
  29. package/app/Footer/__stories__/FooterWithLogo.js +12 -12
  30. package/app/Footer/__stories__/FooterWithLogo.mjs +29 -0
  31. package/app/Footer/__stories__/FooterWithSecondaryNavigation.js +20 -20
  32. package/app/Footer/__stories__/FooterWithSecondaryNavigation.mjs +52 -0
  33. package/app/Footer/__stories__/YearCopyright.js +9 -9
  34. package/app/Footer/__stories__/YearCopyright.mjs +25 -0
  35. package/app/Header/Header.stories.js +7 -7
  36. package/app/Header/Header.stories.mjs +18 -0
  37. package/app/Header/__snapshots__/index.spec.tsx.snap +7 -4
  38. package/app/Header/__stories__/Default.js +5 -5
  39. package/app/Header/__stories__/Default.mjs +14 -0
  40. package/app/Header/__stories__/WithHeaderNavigation.js +13 -13
  41. package/app/Header/__stories__/WithHeaderNavigation.mjs +37 -0
  42. package/app/Header/__stories__/WithNavigation.js +9 -9
  43. package/app/Header/__stories__/WithNavigation.mjs +57 -0
  44. package/app/Header/__stories__/WithServiceName.js +6 -6
  45. package/app/Header/__stories__/WithServiceName.mjs +15 -0
  46. package/app/Header/__stories__/WithServiceNameAndLogo.js +8 -8
  47. package/app/Header/__stories__/WithServiceNameAndLogo.mjs +20 -0
  48. package/app/Header/index.js +6 -6
  49. package/app/Header/index.mjs +9 -0
  50. package/app/Header/index.spec.js +6 -6
  51. package/app/Header/index.spec.mjs +32 -0
  52. package/app/Loader/Loader.stories.js +3 -3
  53. package/app/Loader/Loader.stories.mjs +7 -0
  54. package/app/Loader/__stories__/Default.js +2 -2
  55. package/app/Loader/__stories__/Default.mjs +9 -0
  56. package/app/Masthead/Masthead.stories.js +5 -5
  57. package/app/Masthead/Masthead.stories.mjs +12 -0
  58. package/app/Masthead/__stories__/Default.js +5 -5
  59. package/app/Masthead/__stories__/Default.mjs +15 -0
  60. package/app/Masthead/__stories__/WithElements.js +8 -8
  61. package/app/Masthead/__stories__/WithElements.mjs +21 -0
  62. package/app/Masthead/__stories__/WithLogo.js +6 -6
  63. package/app/Masthead/__stories__/WithLogo.mjs +19 -0
  64. package/app/Modal/Modal.stories.d.ts +2 -0
  65. package/app/Modal/Modal.stories.js +33 -5
  66. package/app/Modal/Modal.stories.mjs +13 -0
  67. package/app/Modal/Modal.stories.playwright.json +32 -0
  68. package/app/Modal/__stories__/AlertDialog.js +7 -7
  69. package/app/Modal/__stories__/AlertDialog.mjs +44 -0
  70. package/app/Modal/__stories__/Auto.d.ts +2 -0
  71. package/app/Modal/__stories__/Auto.js +64 -0
  72. package/app/Modal/__stories__/Auto.mjs +47 -0
  73. package/app/Modal/__stories__/Default.js +9 -9
  74. package/app/Modal/__stories__/Default.mjs +42 -0
  75. package/app/Modal/__stories__/Dense.js +9 -9
  76. package/app/Modal/__stories__/Dense.mjs +43 -0
  77. package/app/Modal/__stories__/WithHooks.d.ts +2 -0
  78. package/app/Modal/__stories__/WithHooks.js +52 -0
  79. package/app/Modal/__stories__/WithHooks.mjs +34 -0
  80. package/app/Modal/auto.d.ts +21 -0
  81. package/app/Modal/auto.js +103 -0
  82. package/app/Modal/auto.mjs +69 -0
  83. package/app/Modal/hooks.d.ts +26 -0
  84. package/app/Modal/hooks.js +88 -0
  85. package/app/Modal/hooks.mjs +68 -0
  86. package/app/Modal/index.d.ts +3 -6
  87. package/app/Modal/index.js +35 -49
  88. package/app/Modal/index.mjs +59 -0
  89. package/app/NotFound/NotFound.stories.js +3 -3
  90. package/app/NotFound/NotFound.stories.mjs +7 -0
  91. package/app/NotFound/__stories__/Default.js +2 -2
  92. package/app/NotFound/__stories__/Default.mjs +9 -0
  93. package/app/NotFound/index.js +1 -1
  94. package/app/NotFound/index.mjs +12 -0
  95. package/app/OutdatedBrowserBanner/hooks/useOutdatedBrowserCheck.js +1 -1
  96. package/app/OutdatedBrowserBanner/hooks/useOutdatedBrowserCheck.mjs +47 -0
  97. package/app/OutdatedBrowserBanner/index.js +6 -6
  98. package/app/OutdatedBrowserBanner/index.mjs +25 -0
  99. package/app/Panel/Panel.stories.js +3 -3
  100. package/app/Panel/Panel.stories.mjs +9 -0
  101. package/app/Panel/__stories__/Default.js +2 -2
  102. package/app/Panel/__stories__/Default.mjs +9 -0
  103. package/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +3 -3
  104. package/app/PhaseBannerHeader/PhaseBannerHeader.stories.mjs +7 -0
  105. package/app/PhaseBannerHeader/__stories__/Default.js +2 -2
  106. package/app/PhaseBannerHeader/__stories__/Default.mjs +12 -0
  107. package/app/QrCodeScanner/QrCodeScanner.stories.js +3 -3
  108. package/app/QrCodeScanner/QrCodeScanner.stories.mjs +7 -0
  109. package/app/QrCodeScanner/__stories__/Default.js +4 -4
  110. package/app/QrCodeScanner/__stories__/Default.mjs +52 -0
  111. package/app/QrCodeScanner/index.spec.js +2 -2
  112. package/app/QrCodeScanner/index.spec.mjs +15 -0
  113. package/app/QrCodeViewer/QRCode.stories.js +2 -2
  114. package/app/QrCodeViewer/QRCode.stories.mjs +9 -0
  115. package/app/QrCodeViewer/__stories__/Custom.js +3 -3
  116. package/app/QrCodeViewer/__stories__/Custom.mjs +22 -0
  117. package/app/QrCodeViewer/__stories__/Default.js +2 -2
  118. package/app/QrCodeViewer/__stories__/Default.mjs +11 -0
  119. package/app/QrCodeViewer/index.js +2 -2
  120. package/app/QrCodeViewer/index.mjs +156 -0
  121. package/app/ThemeOptions/index.js +11 -11
  122. package/app/ThemeOptions/index.mjs +255 -0
  123. package/app/hooks/useFontSize.js +1 -1
  124. package/app/hooks/useFontSize.mjs +10 -0
  125. package/app/hooks/useLetterSpacing.js +1 -1
  126. package/app/hooks/useLetterSpacing.mjs +10 -0
  127. package/app/hooks/useLineHeight.js +1 -1
  128. package/app/hooks/useLineHeight.mjs +10 -0
  129. package/app/index.d.ts +0 -1
  130. package/app/index.js +16 -29
  131. package/app/index.mjs +16 -0
  132. package/content/Accordion/Accordion.stories.d.ts +2 -0
  133. package/content/Accordion/Accordion.stories.js +32 -4
  134. package/content/Accordion/Accordion.stories.mjs +13 -0
  135. package/content/Accordion/__snapshots__/index.spec.tsx.snap +10 -4
  136. package/content/Accordion/__stories__/Auto.d.ts +2 -0
  137. package/content/Accordion/__stories__/Auto.js +59 -0
  138. package/content/Accordion/__stories__/Auto.mjs +41 -0
  139. package/content/Accordion/__stories__/Default.js +14 -14
  140. package/content/Accordion/__stories__/Default.mjs +31 -0
  141. package/content/Accordion/__stories__/WithHints.js +15 -15
  142. package/content/Accordion/__stories__/WithHints.mjs +32 -0
  143. package/content/Accordion/__stories__/WithHook.d.ts +2 -0
  144. package/content/Accordion/__stories__/WithHook.js +81 -0
  145. package/content/Accordion/__stories__/WithHook.mjs +61 -0
  146. package/content/Accordion/auto.d.ts +18 -0
  147. package/content/Accordion/auto.js +110 -0
  148. package/content/Accordion/auto.mjs +76 -0
  149. package/content/Accordion/hooks.d.ts +26 -0
  150. package/content/Accordion/hooks.js +207 -0
  151. package/content/Accordion/hooks.mjs +185 -0
  152. package/content/Accordion/index.d.ts +2 -24
  153. package/content/Accordion/index.js +33 -143
  154. package/content/Accordion/index.mjs +11 -0
  155. package/content/Accordion/index.spec.js +16 -2
  156. package/content/Accordion/index.spec.mjs +19 -0
  157. package/content/Blockquote/Blockquote.stories.js +4 -4
  158. package/content/Blockquote/Blockquote.stories.mjs +10 -0
  159. package/content/Blockquote/__stories__/Default.js +2 -2
  160. package/content/Blockquote/__stories__/Default.mjs +9 -0
  161. package/content/Blockquote/__stories__/Dense.js +2 -2
  162. package/content/Blockquote/__stories__/Dense.mjs +11 -0
  163. package/content/Blockquote/index.spec.js +2 -2
  164. package/content/Blockquote/index.spec.mjs +9 -0
  165. package/content/Card/Card.stories.js +13 -13
  166. package/content/Card/Card.stories.mjs +20 -0
  167. package/content/Card/__stories__/Default.js +3 -3
  168. package/content/Card/__stories__/Default.mjs +10 -0
  169. package/content/Card/__stories__/Dense.js +4 -4
  170. package/content/Card/__stories__/Dense.mjs +14 -0
  171. package/content/Card/__stories__/WithClickableContent.js +5 -5
  172. package/content/Card/__stories__/WithClickableContent.mjs +14 -0
  173. package/content/Card/__stories__/WithClickableLink.js +4 -4
  174. package/content/Card/__stories__/WithClickableLink.mjs +12 -0
  175. package/content/Card/__stories__/WithDarkBorder.js +4 -4
  176. package/content/Card/__stories__/WithDarkBorder.mjs +13 -0
  177. package/content/Card/__stories__/WithDarkTopBorder.js +4 -4
  178. package/content/Card/__stories__/WithDarkTopBorder.mjs +13 -0
  179. package/content/Card/__stories__/WithDivider.js +4 -4
  180. package/content/Card/__stories__/WithDivider.mjs +12 -0
  181. package/content/Card/__stories__/WithGrayBorder.js +4 -4
  182. package/content/Card/__stories__/WithGrayBorder.mjs +13 -0
  183. package/content/Card/__stories__/WithGrayTopBorder.js +4 -4
  184. package/content/Card/__stories__/WithGrayTopBorder.mjs +13 -0
  185. package/content/Card/__stories__/WithGroupButton.js +4 -4
  186. package/content/Card/__stories__/WithGroupButton.mjs +11 -0
  187. package/content/Card/__stories__/WithLink.js +3 -3
  188. package/content/Card/__stories__/WithLink.mjs +10 -0
  189. package/content/Chip/Chip.stories.js +7 -7
  190. package/content/Chip/Chip.stories.mjs +12 -0
  191. package/content/Chip/__stories__/ClickableChip.js +2 -2
  192. package/content/Chip/__stories__/ClickableChip.mjs +10 -0
  193. package/content/Chip/__stories__/ClickableDeletableChip.js +2 -2
  194. package/content/Chip/__stories__/ClickableDeletableChip.mjs +13 -0
  195. package/content/Chip/__stories__/Default.js +2 -2
  196. package/content/Chip/__stories__/Default.mjs +9 -0
  197. package/content/Chip/__stories__/DeletableChip.js +2 -2
  198. package/content/Chip/__stories__/DeletableChip.mjs +10 -0
  199. package/content/Chip/__stories__/GroupOfChips.js +2 -2
  200. package/content/Chip/__stories__/GroupOfChips.mjs +9 -0
  201. package/content/Details/Details.stories.js +3 -3
  202. package/content/Details/Details.stories.mjs +9 -0
  203. package/content/Details/__snapshots__/index.spec.tsx.snap +4 -4
  204. package/content/Details/__stories__/Default.js +2 -2
  205. package/content/Details/__stories__/Default.mjs +9 -0
  206. package/content/Details/index.spec.js +4 -4
  207. package/content/Details/index.spec.mjs +17 -0
  208. package/content/List/List.stories.js +8 -8
  209. package/content/List/List.stories.mjs +14 -0
  210. package/content/List/ListItemContent.js +1 -1
  211. package/content/List/ListItemContent.mjs +14 -0
  212. package/content/List/ListItemIcon.js +1 -1
  213. package/content/List/ListItemIcon.mjs +14 -0
  214. package/content/List/ListItemText.js +2 -2
  215. package/content/List/ListItemText.mjs +15 -0
  216. package/content/List/ListItemTitle.js +3 -3
  217. package/content/List/ListItemTitle.mjs +21 -0
  218. package/content/List/__stories__/BulletList.js +2 -2
  219. package/content/List/__stories__/BulletList.mjs +12 -0
  220. package/content/List/__stories__/Default.js +3 -3
  221. package/content/List/__stories__/Default.mjs +11 -0
  222. package/content/List/__stories__/HorizontalList.js +3 -3
  223. package/content/List/__stories__/HorizontalList.mjs +13 -0
  224. package/content/List/__stories__/NestedBulletList.js +2 -2
  225. package/content/List/__stories__/NestedBulletList.mjs +20 -0
  226. package/content/List/__stories__/NumberedList.js +2 -2
  227. package/content/List/__stories__/NumberedList.mjs +12 -0
  228. package/content/List/__stories__/WithExtraSpace.js +2 -2
  229. package/content/List/__stories__/WithExtraSpace.mjs +12 -0
  230. package/content/List/index.js +6 -6
  231. package/content/List/index.mjs +7 -0
  232. package/content/List/index.spec.js +2 -2
  233. package/content/List/index.spec.mjs +8 -0
  234. package/content/StepNav/StepNav.stories.d.ts +2 -0
  235. package/content/StepNav/StepNav.stories.js +30 -2
  236. package/content/StepNav/StepNav.stories.mjs +13 -0
  237. package/content/StepNav/__stories__/Auto.d.ts +2 -0
  238. package/content/StepNav/__stories__/Auto.js +152 -0
  239. package/content/StepNav/__stories__/Auto.mjs +135 -0
  240. package/content/StepNav/__stories__/Default.js +13 -13
  241. package/content/StepNav/__stories__/Default.mjs +178 -0
  242. package/content/StepNav/__stories__/Dense.js +14 -14
  243. package/content/StepNav/__stories__/Dense.mjs +180 -0
  244. package/content/StepNav/__stories__/WithHints.js +15 -15
  245. package/content/StepNav/__stories__/WithHints.mjs +189 -0
  246. package/content/StepNav/__stories__/WithHook.d.ts +2 -0
  247. package/content/StepNav/__stories__/WithHook.js +160 -0
  248. package/content/StepNav/__stories__/WithHook.mjs +143 -0
  249. package/content/StepNav/auto.d.ts +19 -0
  250. package/content/StepNav/auto.js +105 -0
  251. package/content/StepNav/auto.mjs +72 -0
  252. package/content/StepNav/index.d.ts +5 -2
  253. package/content/StepNav/index.js +60 -8
  254. package/content/StepNav/index.mjs +16 -0
  255. package/content/SummaryList/SummaryList.stories.js +2 -2
  256. package/content/SummaryList/SummaryList.stories.mjs +15 -0
  257. package/content/SummaryList/__stories__/Default.js +6 -6
  258. package/content/SummaryList/__stories__/Default.mjs +17 -0
  259. package/content/SummaryList/__stories__/RowVariations.js +13 -13
  260. package/content/SummaryList/__stories__/RowVariations.mjs +37 -0
  261. package/content/SummaryList/__stories__/WithActions.js +7 -7
  262. package/content/SummaryList/__stories__/WithActions.mjs +20 -0
  263. package/content/SummaryList/__stories__/WithKeyAndAction.js +7 -7
  264. package/content/SummaryList/__stories__/WithKeyAndAction.mjs +20 -0
  265. package/content/SummaryList/__stories__/WithoutActions.js +2 -2
  266. package/content/SummaryList/__stories__/WithoutActions.mjs +9 -0
  267. package/content/SummaryList/__stories__/WithoutBorders.js +7 -7
  268. package/content/SummaryList/__stories__/WithoutBorders.mjs +19 -0
  269. package/content/SummaryList/index.spec.js +2 -2
  270. package/content/SummaryList/index.spec.mjs +9 -0
  271. package/content/Table/Table.stories.js +2 -2
  272. package/content/Table/Table.stories.mjs +27 -0
  273. package/content/Table/__stories__/DarkVariant.js +9 -9
  274. package/content/Table/__stories__/DarkVariant.mjs +47 -0
  275. package/content/Table/__stories__/DarkVariantWithVerticalHeaders.js +9 -9
  276. package/content/Table/__stories__/DarkVariantWithVerticalHeaders.mjs +47 -0
  277. package/content/Table/__stories__/Default.js +8 -8
  278. package/content/Table/__stories__/Default.mjs +41 -0
  279. package/content/Table/__stories__/DefinedWidth.js +9 -9
  280. package/content/Table/__stories__/DefinedWidth.mjs +43 -0
  281. package/content/Table/__stories__/Densed.js +9 -9
  282. package/content/Table/__stories__/Densed.mjs +104 -0
  283. package/content/Table/__stories__/Full.js +13 -13
  284. package/content/Table/__stories__/Full.mjs +91 -0
  285. package/content/Table/__stories__/MultipleProps.js +11 -11
  286. package/content/Table/__stories__/MultipleProps.mjs +71 -0
  287. package/content/Table/__stories__/NoData.js +2 -2
  288. package/content/Table/__stories__/NoData.mjs +11 -0
  289. package/content/Table/__stories__/NumericDataType.js +10 -10
  290. package/content/Table/__stories__/NumericDataType.mjs +61 -0
  291. package/content/Table/__stories__/RowColors.js +10 -10
  292. package/content/Table/__stories__/RowColors.mjs +60 -0
  293. package/content/Table/__stories__/Stacked.js +9 -9
  294. package/content/Table/__stories__/Stacked.mjs +43 -0
  295. package/content/Table/__stories__/TableCaptions.js +5 -5
  296. package/content/Table/__stories__/TableCaptions.mjs +17 -0
  297. package/content/Table/__stories__/VerticalBorders.js +9 -9
  298. package/content/Table/__stories__/VerticalBorders.mjs +47 -0
  299. package/content/Table/__stories__/VerticalHeaders.js +8 -8
  300. package/content/Table/__stories__/VerticalHeaders.mjs +41 -0
  301. package/content/Table/__stories__/WithFloatingScroll.js +11 -11
  302. package/content/Table/__stories__/WithFloatingScroll.mjs +72 -0
  303. package/content/Table/__stories__/WithLoader.js +12 -12
  304. package/content/Table/__stories__/WithLoader.mjs +71 -0
  305. package/content/Table/__stories__/WithSortFilters.js +10 -10
  306. package/content/Table/__stories__/WithSortFilters.mjs +104 -0
  307. package/content/Table/__stories__/ZebraProp.js +9 -9
  308. package/content/Table/__stories__/ZebraProp.mjs +47 -0
  309. package/content/Table/index.d.ts +1 -1
  310. package/content/Table/index.js +5 -5
  311. package/content/Table/index.mjs +103 -0
  312. package/content/TaskList/TaskList.stories.js +4 -4
  313. package/content/TaskList/TaskList.stories.mjs +9 -0
  314. package/content/TaskList/__stories__/Default.js +8 -8
  315. package/content/TaskList/__stories__/Default.mjs +74 -0
  316. package/content/TaskList/__stories__/Dense.js +8 -8
  317. package/content/TaskList/__stories__/Dense.mjs +76 -0
  318. package/content/Timeline/Timeline.stories.js +4 -4
  319. package/content/Timeline/Timeline.stories.mjs +9 -0
  320. package/content/Timeline/__stories__/Default.js +9 -9
  321. package/content/Timeline/__stories__/Default.mjs +122 -0
  322. package/content/Timeline/__stories__/Dense.js +9 -9
  323. package/content/Timeline/__stories__/Dense.mjs +124 -0
  324. package/content/index.js +12 -12
  325. package/content/index.mjs +12 -0
  326. package/es/api/fetchAPI.js +1 -1
  327. package/es/api/index.js +7 -7
  328. package/es/api/index.spec.js +3 -3
  329. package/es/api/useResource.js +2 -2
  330. package/es/api/useResourceAction.js +2 -2
  331. package/es/api/useResourceQuery.js +2 -2
  332. package/es/api/utils.js +1 -1
  333. package/es/app/BannerContainer/BannerContainer.stories.js +2 -2
  334. package/es/app/BannerContainer/__stories__/CookiesBanner.js +6 -6
  335. package/es/app/Footer/Footer.stories.js +8 -8
  336. package/es/app/Footer/__stories__/Default.js +1 -1
  337. package/es/app/Footer/__stories__/DefaultCopyright.js +4 -4
  338. package/es/app/Footer/__stories__/FooterAllInclusive.js +8 -8
  339. package/es/app/Footer/__stories__/FooterWithLink.js +5 -5
  340. package/es/app/Footer/__stories__/FooterWithLogo.js +7 -7
  341. package/es/app/Footer/__stories__/FooterWithSecondaryNavigation.js +6 -6
  342. package/es/app/Footer/__stories__/YearCopyright.js +4 -4
  343. package/es/app/Header/Header.stories.js +6 -6
  344. package/es/app/Header/__snapshots__/index.spec.tsx.snap +7 -4
  345. package/es/app/Header/__stories__/Default.js +4 -4
  346. package/es/app/Header/__stories__/WithHeaderNavigation.js +12 -12
  347. package/es/app/Header/__stories__/WithNavigation.js +8 -8
  348. package/es/app/Header/__stories__/WithServiceName.js +5 -5
  349. package/es/app/Header/__stories__/WithServiceNameAndLogo.js +7 -7
  350. package/es/app/Header/index.js +6 -6
  351. package/es/app/Header/index.spec.js +1 -1
  352. package/es/app/Loader/Loader.stories.js +2 -2
  353. package/es/app/Loader/__stories__/Default.js +1 -1
  354. package/es/app/Masthead/Masthead.stories.js +4 -4
  355. package/es/app/Masthead/__stories__/Default.js +5 -5
  356. package/es/app/Masthead/__stories__/WithElements.js +8 -8
  357. package/es/app/Masthead/__stories__/WithLogo.js +6 -6
  358. package/es/app/Modal/Modal.stories.js +6 -4
  359. package/es/app/Modal/Modal.stories.playwright.json +32 -0
  360. package/es/app/Modal/__stories__/AlertDialog.js +3 -3
  361. package/es/app/Modal/__stories__/Auto.js +47 -0
  362. package/es/app/Modal/__stories__/Default.js +5 -5
  363. package/es/app/Modal/__stories__/Dense.js +5 -5
  364. package/es/app/Modal/__stories__/WithHooks.js +34 -0
  365. package/es/app/Modal/auto.js +69 -0
  366. package/es/app/Modal/hooks.js +68 -0
  367. package/es/app/Modal/index.js +10 -44
  368. package/es/app/NotFound/NotFound.stories.js +2 -2
  369. package/es/app/NotFound/__stories__/Default.js +1 -1
  370. package/es/app/NotFound/index.js +1 -1
  371. package/es/app/OutdatedBrowserBanner/hooks/useOutdatedBrowserCheck.js +1 -1
  372. package/es/app/OutdatedBrowserBanner/index.js +7 -7
  373. package/es/app/Panel/Panel.stories.js +2 -2
  374. package/es/app/Panel/__stories__/Default.js +1 -1
  375. package/es/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +2 -2
  376. package/es/app/PhaseBannerHeader/__stories__/Default.js +1 -1
  377. package/es/app/QrCodeScanner/QrCodeScanner.stories.js +2 -2
  378. package/es/app/QrCodeScanner/__stories__/Default.js +3 -3
  379. package/es/app/QrCodeScanner/index.spec.js +1 -1
  380. package/es/app/QrCodeViewer/QRCode.stories.js +3 -3
  381. package/es/app/QrCodeViewer/__stories__/Custom.js +2 -2
  382. package/es/app/QrCodeViewer/__stories__/Default.js +1 -1
  383. package/es/app/QrCodeViewer/index.js +2 -2
  384. package/es/app/ThemeOptions/index.js +11 -11
  385. package/es/app/hooks/useFontSize.js +1 -1
  386. package/es/app/hooks/useLetterSpacing.js +1 -1
  387. package/es/app/hooks/useLineHeight.js +1 -1
  388. package/es/app/index.js +16 -17
  389. package/es/content/Accordion/Accordion.stories.js +5 -3
  390. package/es/content/Accordion/__snapshots__/index.spec.tsx.snap +10 -4
  391. package/es/content/Accordion/__stories__/Auto.js +41 -0
  392. package/es/content/Accordion/__stories__/Default.js +5 -5
  393. package/es/content/Accordion/__stories__/WithHints.js +6 -6
  394. package/es/content/Accordion/__stories__/WithHook.js +61 -0
  395. package/es/content/Accordion/auto.js +76 -0
  396. package/es/content/Accordion/hooks.js +185 -0
  397. package/es/content/Accordion/index.js +2 -88
  398. package/es/content/Accordion/index.spec.js +12 -2
  399. package/es/content/Blockquote/Blockquote.stories.js +3 -3
  400. package/es/content/Blockquote/__stories__/Default.js +1 -1
  401. package/es/content/Blockquote/__stories__/Dense.js +1 -1
  402. package/es/content/Blockquote/index.spec.js +1 -1
  403. package/es/content/Card/Card.stories.js +12 -12
  404. package/es/content/Card/__stories__/Default.js +2 -2
  405. package/es/content/Card/__stories__/Dense.js +2 -2
  406. package/es/content/Card/__stories__/WithClickableContent.js +2 -2
  407. package/es/content/Card/__stories__/WithClickableLink.js +2 -2
  408. package/es/content/Card/__stories__/WithDarkBorder.js +2 -2
  409. package/es/content/Card/__stories__/WithDarkTopBorder.js +2 -2
  410. package/es/content/Card/__stories__/WithDivider.js +2 -2
  411. package/es/content/Card/__stories__/WithGrayBorder.js +2 -2
  412. package/es/content/Card/__stories__/WithGrayTopBorder.js +2 -2
  413. package/es/content/Card/__stories__/WithGroupButton.js +3 -3
  414. package/es/content/Card/__stories__/WithLink.js +2 -2
  415. package/es/content/Chip/Chip.stories.js +6 -6
  416. package/es/content/Chip/__stories__/ClickableChip.js +1 -1
  417. package/es/content/Chip/__stories__/ClickableDeletableChip.js +1 -1
  418. package/es/content/Chip/__stories__/Default.js +1 -1
  419. package/es/content/Chip/__stories__/DeletableChip.js +1 -1
  420. package/es/content/Chip/__stories__/GroupOfChips.js +1 -1
  421. package/es/content/Details/Details.stories.js +2 -2
  422. package/es/content/Details/__snapshots__/index.spec.tsx.snap +4 -4
  423. package/es/content/Details/__stories__/Default.js +1 -1
  424. package/es/content/Details/index.spec.js +1 -1
  425. package/es/content/List/List.stories.js +7 -7
  426. package/es/content/List/ListItemContent.js +1 -1
  427. package/es/content/List/ListItemIcon.js +1 -1
  428. package/es/content/List/ListItemText.js +2 -2
  429. package/es/content/List/ListItemTitle.js +3 -3
  430. package/es/content/List/__stories__/BulletList.js +2 -2
  431. package/es/content/List/__stories__/Default.js +3 -3
  432. package/es/content/List/__stories__/HorizontalList.js +3 -3
  433. package/es/content/List/__stories__/NestedBulletList.js +2 -2
  434. package/es/content/List/__stories__/NumberedList.js +2 -2
  435. package/es/content/List/__stories__/WithExtraSpace.js +2 -2
  436. package/es/content/List/index.js +7 -7
  437. package/es/content/List/index.spec.js +1 -1
  438. package/es/content/StepNav/StepNav.stories.js +6 -4
  439. package/es/content/StepNav/__stories__/Auto.js +135 -0
  440. package/es/content/StepNav/__stories__/Default.js +4 -4
  441. package/es/content/StepNav/__stories__/Dense.js +4 -4
  442. package/es/content/StepNav/__stories__/WithHints.js +5 -5
  443. package/es/content/StepNav/__stories__/WithHook.js +143 -0
  444. package/es/content/StepNav/auto.js +72 -0
  445. package/es/content/StepNav/index.js +5 -2
  446. package/es/content/SummaryList/SummaryList.stories.js +7 -7
  447. package/es/content/SummaryList/__stories__/Default.js +3 -3
  448. package/es/content/SummaryList/__stories__/RowVariations.js +3 -3
  449. package/es/content/SummaryList/__stories__/WithActions.js +4 -4
  450. package/es/content/SummaryList/__stories__/WithKeyAndAction.js +4 -4
  451. package/es/content/SummaryList/__stories__/WithoutActions.js +1 -1
  452. package/es/content/SummaryList/__stories__/WithoutBorders.js +3 -3
  453. package/es/content/SummaryList/index.spec.js +1 -1
  454. package/es/content/Table/Table.stories.js +19 -19
  455. package/es/content/Table/__stories__/DarkVariant.js +1 -1
  456. package/es/content/Table/__stories__/DarkVariantWithVerticalHeaders.js +1 -1
  457. package/es/content/Table/__stories__/Default.js +1 -1
  458. package/es/content/Table/__stories__/DefinedWidth.js +1 -1
  459. package/es/content/Table/__stories__/Densed.js +1 -1
  460. package/es/content/Table/__stories__/Full.js +1 -1
  461. package/es/content/Table/__stories__/MultipleProps.js +1 -1
  462. package/es/content/Table/__stories__/NoData.js +1 -1
  463. package/es/content/Table/__stories__/NumericDataType.js +1 -1
  464. package/es/content/Table/__stories__/RowColors.js +2 -2
  465. package/es/content/Table/__stories__/Stacked.js +1 -1
  466. package/es/content/Table/__stories__/TableCaptions.js +1 -1
  467. package/es/content/Table/__stories__/VerticalBorders.js +1 -1
  468. package/es/content/Table/__stories__/VerticalHeaders.js +1 -1
  469. package/es/content/Table/__stories__/WithFloatingScroll.js +4 -4
  470. package/es/content/Table/__stories__/WithLoader.js +5 -5
  471. package/es/content/Table/__stories__/WithSortFilters.js +2 -2
  472. package/es/content/Table/__stories__/ZebraProp.js +1 -1
  473. package/es/content/Table/index.js +5 -5
  474. package/es/content/TaskList/TaskList.stories.js +3 -3
  475. package/es/content/TaskList/__stories__/Default.js +3 -3
  476. package/es/content/TaskList/__stories__/Dense.js +3 -3
  477. package/es/content/Timeline/Timeline.stories.js +3 -3
  478. package/es/content/Timeline/__stories__/Default.js +4 -4
  479. package/es/content/Timeline/__stories__/Dense.js +4 -4
  480. package/es/content/index.js +12 -12
  481. package/es/feedback/CopyToClipboard/CopyToClipboard.stories.js +4 -4
  482. package/es/feedback/CopyToClipboard/__stories__/Banner.js +2 -2
  483. package/es/feedback/CopyToClipboard/__stories__/Default.js +14 -11
  484. package/es/feedback/CopyToClipboard/__stories__/Dense.js +2 -2
  485. package/es/feedback/CopyToClipboard/index.js +4 -2
  486. package/es/feedback/ErrorSummary/ErrorSummary.stories.js +7 -7
  487. package/es/feedback/ErrorSummary/__stories__/Default.js +3 -3
  488. package/es/feedback/ErrorSummary/__stories__/Dense.js +3 -3
  489. package/es/feedback/ErrorSummary/__stories__/LinkedToCheckbox.js +8 -8
  490. package/es/feedback/ErrorSummary/__stories__/LinkedToField.js +8 -8
  491. package/es/feedback/ErrorSummary/__stories__/LinkedToInput.js +10 -10
  492. package/es/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.js +10 -10
  493. package/es/feedback/ErrorSummary/index.spec.js +1 -1
  494. package/es/feedback/NotificationBanner/NotificationBanner.stories.js +4 -4
  495. package/es/feedback/NotificationBanner/__stories__/Default.js +1 -1
  496. package/es/feedback/NotificationBanner/__stories__/Dense.js +1 -1
  497. package/es/feedback/NotificationBanner/__stories__/Success.js +1 -1
  498. package/es/feedback/NotificationBanner/index.spec.js +1 -1
  499. package/es/feedback/PhaseBanner/PhaseBanner.stories.js +3 -3
  500. package/es/feedback/PhaseBanner/__stories__/Default.js +2 -2
  501. package/es/feedback/PhaseBanner/__stories__/Underlined.js +2 -2
  502. package/es/feedback/ServiceBadge/index.js +1 -1
  503. package/es/feedback/WarningText/WarningText.stories.js +4 -4
  504. package/es/feedback/WarningText/__stories__/AssistiveText.js +1 -1
  505. package/es/feedback/WarningText/__stories__/Default.js +1 -1
  506. package/es/feedback/WarningText/__stories__/Dense.js +1 -1
  507. package/es/feedback/WarningText/index.spec.js +1 -1
  508. package/es/feedback/index.js +6 -6
  509. package/es/form/AutoComplete/AutoComplete.stories.js +8 -8
  510. package/es/form/AutoComplete/__stories__/Default.js +4 -4
  511. package/es/form/AutoComplete/__stories__/WithAutoSelect.js +4 -4
  512. package/es/form/AutoComplete/__stories__/WithDefaultValue.js +4 -4
  513. package/es/form/AutoComplete/__stories__/WithInLine.js +4 -4
  514. package/es/form/AutoComplete/__stories__/WithMinLength.js +5 -5
  515. package/es/form/AutoComplete/__stories__/WithPlaceHolder.js +4 -4
  516. package/es/form/AutoComplete/__stories__/WithShowAllValues.js +4 -4
  517. package/es/form/AutoComplete/index.js +2 -2
  518. package/es/form/Button/BackButton.js +1 -1
  519. package/es/form/Button/Button.stories.js +13 -13
  520. package/es/form/Button/Icon.js +1 -1
  521. package/es/form/Button/__stories__/Back.js +1 -1
  522. package/es/form/Button/__stories__/ButtonLinkButton.js +1 -1
  523. package/es/form/Button/__stories__/CallToActionButton.js +1 -1
  524. package/es/form/Button/__stories__/Dense.js +1 -1
  525. package/es/form/Button/__stories__/Disabled.js +1 -1
  526. package/es/form/Button/__stories__/GroupingButtons.js +1 -1
  527. package/es/form/Button/__stories__/GroupingButtonsAndLinks.js +2 -2
  528. package/es/form/Button/__stories__/Primary.js +1 -1
  529. package/es/form/Button/__stories__/Secondary.js +1 -1
  530. package/es/form/Button/__stories__/ThemeToggle.js +1 -1
  531. package/es/form/Button/__stories__/Warning.js +1 -1
  532. package/es/form/Button/__stories__/WithVariantLink.js +1 -1
  533. package/es/form/Button/index.js +5 -5
  534. package/es/form/Button/index.spec.js +1 -1
  535. package/es/form/Checkbox/Checkbox.stories.js +11 -11
  536. package/es/form/Checkbox/__stories__/ConditionalReveal.js +4 -4
  537. package/es/form/Checkbox/__stories__/Default.js +3 -3
  538. package/es/form/Checkbox/__stories__/Dense.js +3 -3
  539. package/es/form/Checkbox/__stories__/Inline.js +3 -3
  540. package/es/form/Checkbox/__stories__/InlineWithDivider.js +3 -3
  541. package/es/form/Checkbox/__stories__/MultipleQuestions.js +3 -3
  542. package/es/form/Checkbox/__stories__/NoneAnswer.js +2 -2
  543. package/es/form/Checkbox/__stories__/NoneAnswerWithError.js +4 -4
  544. package/es/form/Checkbox/__stories__/WithErrorMessage.js +5 -5
  545. package/es/form/Checkbox/__stories__/WithHint.js +3 -3
  546. package/es/form/DateInputContainer/DateInputContainer.stories.js +6 -6
  547. package/es/form/DateInputContainer/__stories__/Default.js +3 -3
  548. package/es/form/DateInputContainer/__stories__/Dense.js +2 -2
  549. package/es/form/DateInputContainer/__stories__/MultipleQuestions.js +3 -3
  550. package/es/form/DateInputContainer/__stories__/WithErrorMessage.js +5 -5
  551. package/es/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +5 -5
  552. package/es/form/ErrorMessage/ErrorMessage.stories.js +4 -4
  553. package/es/form/ErrorMessage/__stories__/DateInputError.js +5 -5
  554. package/es/form/ErrorMessage/__stories__/Default.js +5 -5
  555. package/es/form/ErrorMessage/__stories__/ErrorMessageOnly.js +2 -2
  556. package/es/form/FileUpload/FileUpload.stories.js +3 -3
  557. package/es/form/FileUpload/__stories__/Default.js +3 -3
  558. package/es/form/FileUpload/__stories__/WithErrorMessage.js +5 -5
  559. package/es/form/RadioContainer/RadioContainer.stories.js +11 -11
  560. package/es/form/RadioContainer/__stories__/ConditionalReveal.js +4 -4
  561. package/es/form/RadioContainer/__stories__/Default.js +2 -2
  562. package/es/form/RadioContainer/__stories__/Dense.js +2 -2
  563. package/es/form/RadioContainer/__stories__/Inline.js +3 -3
  564. package/es/form/RadioContainer/__stories__/InlineWithDivider.js +3 -3
  565. package/es/form/RadioContainer/__stories__/MultipleQuestions.js +3 -3
  566. package/es/form/RadioContainer/__stories__/NoneAnswer.js +2 -2
  567. package/es/form/RadioContainer/__stories__/WithErrorMessage.js +5 -5
  568. package/es/form/RadioContainer/__stories__/WithHints.js +3 -3
  569. package/es/form/RadioContainer/__stories__/WithMediumLegend.js +2 -2
  570. package/es/form/SelectContainer/SelectContainer.stories.js +5 -5
  571. package/es/form/SelectContainer/__stories__/Default.js +3 -3
  572. package/es/form/SelectContainer/__stories__/Dense.js +3 -3
  573. package/es/form/SelectContainer/__stories__/DisabledInput.js +3 -3
  574. package/es/form/SelectContainer/__stories__/WithHint.js +4 -4
  575. package/es/form/SingleCharacterInputs/SingleCharacterInput.stories.js +5 -5
  576. package/es/form/SingleCharacterInputs/__stories__/Default.js +3 -3
  577. package/es/form/SingleCharacterInputs/__stories__/WithDefaultError.js +5 -5
  578. package/es/form/SingleCharacterInputs/__stories__/WithErrorMessageInvalidCode.js +5 -5
  579. package/es/form/SingleCharacterInputs/__stories__/WithErrorMessageLessDigit.js +5 -5
  580. package/es/form/TextArea/TextArea.stories.js +9 -9
  581. package/es/form/TextArea/__stories__/Default.js +4 -4
  582. package/es/form/TextArea/__stories__/Dense.js +3 -3
  583. package/es/form/TextArea/__stories__/DisabledInput.js +5 -5
  584. package/es/form/TextArea/__stories__/LimitedCharacters.js +5 -5
  585. package/es/form/TextArea/__stories__/MultipleQuestions.js +4 -4
  586. package/es/form/TextArea/__stories__/WithDeclaredRows.js +5 -5
  587. package/es/form/TextArea/__stories__/WithErrorMessage.js +6 -6
  588. package/es/form/TextArea/__stories__/WithHint.js +5 -5
  589. package/es/form/TextInput/TextInput.stories.js +10 -10
  590. package/es/form/TextInput/__stories__/AskingForNumbers.js +5 -5
  591. package/es/form/TextInput/__stories__/Default.js +4 -4
  592. package/es/form/TextInput/__stories__/Dense.js +3 -3
  593. package/es/form/TextInput/__stories__/DisabledInput.js +5 -5
  594. package/es/form/TextInput/__stories__/FixedWidths.js +4 -4
  595. package/es/form/TextInput/__stories__/FluidWidths.js +4 -4
  596. package/es/form/TextInput/__stories__/MultipleQuestions.js +3 -3
  597. package/es/form/TextInput/__stories__/WithErrorMessage.js +6 -6
  598. package/es/form/TextInput/__stories__/WithHint.js +5 -5
  599. package/es/form/index.js +15 -15
  600. package/es/govgr/Footer/Copyright.js +2 -2
  601. package/es/govgr/Footer/LicenseCCSA.js +2 -2
  602. package/es/govgr/Footer/index.js +2 -2
  603. package/es/govgr/images/index.js +5 -5
  604. package/es/govgr/index.js +5 -5
  605. package/es/i18n/I18nText.js +1 -1
  606. package/es/i18n/index.js +1 -1
  607. package/es/icons/index.js +1 -1
  608. package/es/index.js +11 -11
  609. package/es/layouts/Basic/Basic.stories.js +4 -4
  610. package/es/layouts/Basic/Content/index.js +2 -4
  611. package/es/layouts/Basic/Side/index.js +2 -3
  612. package/es/layouts/Basic/__snapshots__/index.spec.tsx.snap +43 -24
  613. package/es/layouts/Basic/__stories__/Default.js +4 -4
  614. package/es/layouts/Basic/__stories__/MultipleRowsLayout.js +5 -5
  615. package/es/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +5 -5
  616. package/es/layouts/Basic/index.js +8 -8
  617. package/es/layouts/Basic/index.spec.js +1 -1
  618. package/es/layouts/Divider/Divider.stories.js +2 -2
  619. package/es/layouts/Divider/__stories__/Default.js +1 -1
  620. package/es/layouts/Divider/index.js +1 -1
  621. package/es/layouts/Grid/Grid.stories.js +4 -4
  622. package/es/layouts/Grid/__stories__/Default.js +2 -2
  623. package/es/layouts/Grid/__stories__/Inline.js +2 -2
  624. package/es/layouts/Grid/__stories__/ResponsiveSpacing.js +2 -2
  625. package/es/layouts/Stack/Stack.stories.js +7 -7
  626. package/es/layouts/Stack/__stories__/AlignItems.js +2 -2
  627. package/es/layouts/Stack/__stories__/Default.js +2 -2
  628. package/es/layouts/Stack/__stories__/JustifyContent.js +2 -2
  629. package/es/layouts/Stack/__stories__/NoWrap.js +2 -2
  630. package/es/layouts/Stack/__stories__/Row.js +2 -2
  631. package/es/layouts/Stack/__stories__/Spacing.js +2 -2
  632. package/es/layouts/index.js +13 -13
  633. package/es/navigation/BackLink/BackLink.stories.js +2 -2
  634. package/es/navigation/BackLink/__stories__/Default.js +1 -1
  635. package/es/navigation/BackToTopLink/BackToTopLink.stories.js +8 -0
  636. package/es/navigation/BackToTopLink/__stories__/Default.js +12 -0
  637. package/es/navigation/BackToTopLink/__stories__/InMain.js +13 -0
  638. package/es/navigation/BackToTopLink/index.js +64 -0
  639. package/es/navigation/Breadcrumbs/Breadcrumbs.stories.js +2 -2
  640. package/es/navigation/Breadcrumbs/__stories__/Default.js +1 -1
  641. package/es/navigation/Drawer/Drawer.stories.js +4 -2
  642. package/es/navigation/Drawer/__stories__/Auto.js +82 -0
  643. package/es/navigation/Drawer/__stories__/Default.js +4 -4
  644. package/es/navigation/Drawer/__stories__/WithHook.js +84 -0
  645. package/es/navigation/Drawer/auto.js +76 -0
  646. package/es/navigation/Drawer/hooks.js +52 -0
  647. package/es/navigation/Drawer/index.js +1 -0
  648. package/es/navigation/Dropdown/Dropdown.stories.js +11 -4
  649. package/es/navigation/Dropdown/Dropdown.stories.playwright.json +16 -0
  650. package/es/navigation/Dropdown/__stories__/AlignRight.js +8 -8
  651. package/es/navigation/Dropdown/__stories__/ContentPosition.js +99 -0
  652. package/es/navigation/Dropdown/__stories__/Default.js +9 -15
  653. package/es/navigation/Dropdown/__stories__/Dense.js +50 -0
  654. package/es/navigation/Dropdown/__stories__/Disabled.js +44 -0
  655. package/es/navigation/Dropdown/__stories__/PlacementTop.js +8 -8
  656. package/es/navigation/Dropdown/__stories__/Secondary.js +30 -0
  657. package/es/navigation/Dropdown/__stories__/VariantLink.js +43 -0
  658. package/es/navigation/Dropdown/__stories__/Warning.js +30 -0
  659. package/es/navigation/Dropdown/__stories__/WithIcons.js +95 -0
  660. package/es/navigation/Link/Link.stories.js +7 -7
  661. package/es/navigation/Link/__stories__/DarkBackground.js +3 -3
  662. package/es/navigation/Link/__stories__/DarkBackgroundNoUnderline.js +3 -3
  663. package/es/navigation/Link/__stories__/Default.js +1 -1
  664. package/es/navigation/Link/__stories__/ExternalLink.js +2 -2
  665. package/es/navigation/Link/__stories__/NoUnderline.js +1 -1
  666. package/es/navigation/Link/__stories__/OpensInNewTab.js +1 -1
  667. package/es/navigation/Link/index.spec.js +1 -1
  668. package/es/navigation/NavList/NavList.stories.js +9 -9
  669. package/es/navigation/NavList/NavListAuto/index.js +4 -4
  670. package/es/navigation/NavList/__stories__/Default.js +2 -2
  671. package/es/navigation/NavList/__stories__/HorizontalWithDrawer.js +4 -4
  672. package/es/navigation/NavList/__stories__/HorizontalWithoutDrawer.js +3 -3
  673. package/es/navigation/NavList/__stories__/NavListWithoutNav.js +2 -2
  674. package/es/navigation/NavList/__stories__/UsingHeaderButton.js +9 -9
  675. package/es/navigation/NavList/__stories__/UsingNavListAuto.js +3 -3
  676. package/es/navigation/NavList/__stories__/Vertical.js +2 -2
  677. package/es/navigation/NavList/__stories__/VerticalWithoutDrawer.js +4 -4
  678. package/es/navigation/NavList/hooks/useNavList.js +1 -1
  679. package/es/navigation/NavList/index.js +4 -4
  680. package/es/navigation/NavList/index.spec.js +1 -1
  681. package/es/navigation/Pagination/Pagination.stories.js +8 -6
  682. package/es/navigation/Pagination/__stories__/Auto.js +52 -0
  683. package/es/navigation/Pagination/__stories__/Default.js +9 -9
  684. package/es/navigation/Pagination/__stories__/PaginationSmall.js +7 -7
  685. package/es/navigation/Pagination/__stories__/PaginationWithSmallFont.js +7 -7
  686. package/es/navigation/Pagination/__stories__/WithHook.js +57 -0
  687. package/es/navigation/Pagination/__stories__/WithInactiveValues.js +9 -9
  688. package/es/navigation/Pagination/__stories__/WithResultsPerPage.js +7 -7
  689. package/es/navigation/Pagination/auto.js +87 -0
  690. package/es/navigation/Pagination/hooks.js +117 -0
  691. package/es/navigation/Pagination/index.js +51 -1
  692. package/es/navigation/SkipLink/SkipLink.stories.js +2 -2
  693. package/es/navigation/SkipLink/__stories__/Default.js +2 -2
  694. package/es/navigation/Tabs/Tabs.stories.js +5 -3
  695. package/es/navigation/Tabs/Tabs.stories.playwright.json +2 -2
  696. package/es/navigation/Tabs/__stories__/Auto.js +33 -0
  697. package/es/navigation/Tabs/__stories__/Default.js +26 -16
  698. package/es/navigation/Tabs/__stories__/Dense.js +35 -0
  699. package/es/navigation/Tabs/auto.js +56 -0
  700. package/es/navigation/Tabs/hooks.js +92 -0
  701. package/es/navigation/Tabs/index.js +4 -50
  702. package/es/navigation/index.js +9 -9
  703. package/es/registry.js +263 -239
  704. package/es/typography/Caption/index.js +2 -2
  705. package/es/typography/Heading/Heading.stories.js +2 -2
  706. package/es/typography/Heading/__stories__/Default.js +1 -1
  707. package/es/typography/HeadingCaption/HeadingCaption.stories.js +3 -3
  708. package/es/typography/HeadingCaption/__stories__/Default.js +2 -2
  709. package/es/typography/HeadingCaption/__stories__/NestedToTitle.js +2 -2
  710. package/es/typography/Hint/Hint.stories.js +3 -3
  711. package/es/typography/Hint/__stories__/Default.js +1 -1
  712. package/es/typography/Hint/__stories__/FontSizes.js +1 -1
  713. package/es/typography/NormalText/NormalText.stories.js +5 -5
  714. package/es/typography/NormalText/__stories__/Default.js +1 -1
  715. package/es/typography/NormalText/__stories__/FontSizes.js +2 -2
  716. package/es/typography/NormalText/__stories__/FontWeight.js +2 -2
  717. package/es/typography/NormalText/__stories__/Variants.js +2 -2
  718. package/es/typography/Paragraph/Paragraph.stories.js +6 -6
  719. package/es/typography/Paragraph/__stories__/Default.js +1 -1
  720. package/es/typography/Paragraph/__stories__/FontSizes.js +1 -1
  721. package/es/typography/Paragraph/__stories__/FontWeight.js +1 -1
  722. package/es/typography/Paragraph/__stories__/LeadVariant.js +1 -1
  723. package/es/typography/Paragraph/__stories__/SmallVariant.js +1 -1
  724. package/es/typography/Title/index.js +2 -2
  725. package/es/typography/index.js +5 -5
  726. package/es/utils/Base/index.js +2 -2
  727. package/es/utils/Kitchensink/AllComponents.js +2 -2
  728. package/es/utils/Kitchensink/KitchensinkByCategory.js +2 -2
  729. package/es/utils/Kitchensink/KitchensinkByLetter.js +1 -1
  730. package/es/utils/Kitchensink/KitchensinkComponent.js +5 -5
  731. package/es/utils/Kitchensink/KitchensinkDashboard.js +1 -1
  732. package/es/utils/VisuallyHidden/VisuallyHidden.stories.js +2 -2
  733. package/es/utils/VisuallyHidden/__stories__/Default.js +4 -4
  734. package/es/utils/hooks/useDebounce.js +1 -1
  735. package/es/utils/index.js +3 -3
  736. package/feedback/CopyToClipboard/CopyToClipboard.stories.js +5 -5
  737. package/feedback/CopyToClipboard/CopyToClipboard.stories.mjs +9 -0
  738. package/feedback/CopyToClipboard/__stories__/Banner.js +3 -3
  739. package/feedback/CopyToClipboard/__stories__/Banner.mjs +16 -0
  740. package/feedback/CopyToClipboard/__stories__/Default.js +14 -11
  741. package/feedback/CopyToClipboard/__stories__/Default.mjs +22 -0
  742. package/feedback/CopyToClipboard/__stories__/Dense.js +3 -3
  743. package/feedback/CopyToClipboard/__stories__/Dense.mjs +20 -0
  744. package/feedback/CopyToClipboard/index.d.ts +2 -1
  745. package/feedback/CopyToClipboard/index.js +4 -2
  746. package/feedback/CopyToClipboard/index.mjs +55 -0
  747. package/feedback/ErrorSummary/ErrorSummary.stories.js +8 -8
  748. package/feedback/ErrorSummary/ErrorSummary.stories.mjs +14 -0
  749. package/feedback/ErrorSummary/__stories__/Default.js +4 -4
  750. package/feedback/ErrorSummary/__stories__/Default.mjs +13 -0
  751. package/feedback/ErrorSummary/__stories__/Dense.js +4 -4
  752. package/feedback/ErrorSummary/__stories__/Dense.mjs +15 -0
  753. package/feedback/ErrorSummary/__stories__/LinkedToCheckbox.js +9 -9
  754. package/feedback/ErrorSummary/__stories__/LinkedToCheckbox.mjs +30 -0
  755. package/feedback/ErrorSummary/__stories__/LinkedToField.js +9 -9
  756. package/feedback/ErrorSummary/__stories__/LinkedToField.mjs +31 -0
  757. package/feedback/ErrorSummary/__stories__/LinkedToInput.js +10 -10
  758. package/feedback/ErrorSummary/__stories__/LinkedToInput.mjs +30 -0
  759. package/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.js +11 -11
  760. package/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.mjs +35 -0
  761. package/feedback/ErrorSummary/index.spec.js +2 -2
  762. package/feedback/ErrorSummary/index.spec.mjs +8 -0
  763. package/feedback/NotificationBanner/NotificationBanner.stories.js +5 -5
  764. package/feedback/NotificationBanner/NotificationBanner.stories.mjs +12 -0
  765. package/feedback/NotificationBanner/__stories__/Default.js +2 -2
  766. package/feedback/NotificationBanner/__stories__/Default.mjs +12 -0
  767. package/feedback/NotificationBanner/__stories__/Dense.js +2 -2
  768. package/feedback/NotificationBanner/__stories__/Dense.mjs +13 -0
  769. package/feedback/NotificationBanner/__stories__/Success.js +2 -2
  770. package/feedback/NotificationBanner/__stories__/Success.mjs +13 -0
  771. package/feedback/NotificationBanner/index.spec.js +3 -3
  772. package/feedback/NotificationBanner/index.spec.mjs +19 -0
  773. package/feedback/PhaseBanner/PhaseBanner.stories.js +4 -4
  774. package/feedback/PhaseBanner/PhaseBanner.stories.mjs +10 -0
  775. package/feedback/PhaseBanner/__stories__/Default.js +3 -3
  776. package/feedback/PhaseBanner/__stories__/Default.mjs +12 -0
  777. package/feedback/PhaseBanner/__stories__/Underlined.js +4 -4
  778. package/feedback/PhaseBanner/__stories__/Underlined.mjs +14 -0
  779. package/feedback/ServiceBadge/index.js +1 -1
  780. package/feedback/ServiceBadge/index.mjs +19 -0
  781. package/feedback/WarningText/WarningText.stories.js +5 -5
  782. package/feedback/WarningText/WarningText.stories.mjs +11 -0
  783. package/feedback/WarningText/__stories__/AssistiveText.js +2 -2
  784. package/feedback/WarningText/__stories__/AssistiveText.mjs +11 -0
  785. package/feedback/WarningText/__stories__/Default.js +2 -2
  786. package/feedback/WarningText/__stories__/Default.mjs +9 -0
  787. package/feedback/WarningText/__stories__/Dense.js +2 -2
  788. package/feedback/WarningText/__stories__/Dense.mjs +11 -0
  789. package/feedback/WarningText/index.spec.js +2 -2
  790. package/feedback/WarningText/index.spec.mjs +8 -0
  791. package/feedback/index.js +6 -6
  792. package/feedback/index.mjs +6 -0
  793. package/form/AutoComplete/AutoComplete.stories.js +9 -9
  794. package/form/AutoComplete/AutoComplete.stories.mjs +14 -0
  795. package/form/AutoComplete/__stories__/Default.js +5 -5
  796. package/form/AutoComplete/__stories__/Default.mjs +16 -0
  797. package/form/AutoComplete/__stories__/WithAutoSelect.js +5 -5
  798. package/form/AutoComplete/__stories__/WithAutoSelect.mjs +30 -0
  799. package/form/AutoComplete/__stories__/WithDefaultValue.js +5 -5
  800. package/form/AutoComplete/__stories__/WithDefaultValue.mjs +17 -0
  801. package/form/AutoComplete/__stories__/WithInLine.js +5 -5
  802. package/form/AutoComplete/__stories__/WithInLine.mjs +17 -0
  803. package/form/AutoComplete/__stories__/WithMinLength.js +6 -6
  804. package/form/AutoComplete/__stories__/WithMinLength.mjs +18 -0
  805. package/form/AutoComplete/__stories__/WithPlaceHolder.js +5 -5
  806. package/form/AutoComplete/__stories__/WithPlaceHolder.mjs +17 -0
  807. package/form/AutoComplete/__stories__/WithShowAllValues.js +5 -5
  808. package/form/AutoComplete/__stories__/WithShowAllValues.mjs +17 -0
  809. package/form/AutoComplete/index.js +2 -2
  810. package/form/AutoComplete/index.mjs +653 -0
  811. package/form/Button/BackButton.d.ts +1 -1
  812. package/form/Button/BackButton.js +1 -1
  813. package/form/Button/BackButton.mjs +21 -0
  814. package/form/Button/Button.stories.js +2 -2
  815. package/form/Button/Button.stories.mjs +21 -0
  816. package/form/Button/Icon.js +1 -1
  817. package/form/Button/Icon.mjs +7 -0
  818. package/form/Button/__stories__/Back.js +1 -1
  819. package/form/Button/__stories__/Back.mjs +13 -0
  820. package/form/Button/__stories__/ButtonLinkButton.js +1 -1
  821. package/form/Button/__stories__/ButtonLinkButton.mjs +17 -0
  822. package/form/Button/__stories__/CallToActionButton.js +1 -1
  823. package/form/Button/__stories__/CallToActionButton.mjs +14 -0
  824. package/form/Button/__stories__/Dense.js +2 -2
  825. package/form/Button/__stories__/Dense.mjs +12 -0
  826. package/form/Button/__stories__/Disabled.js +2 -2
  827. package/form/Button/__stories__/Disabled.mjs +13 -0
  828. package/form/Button/__stories__/GroupingButtons.js +2 -2
  829. package/form/Button/__stories__/GroupingButtons.mjs +11 -0
  830. package/form/Button/__stories__/GroupingButtonsAndLinks.js +3 -3
  831. package/form/Button/__stories__/GroupingButtonsAndLinks.mjs +12 -0
  832. package/form/Button/__stories__/Primary.js +2 -2
  833. package/form/Button/__stories__/Primary.mjs +11 -0
  834. package/form/Button/__stories__/Secondary.js +2 -2
  835. package/form/Button/__stories__/Secondary.mjs +12 -0
  836. package/form/Button/__stories__/ThemeToggle.js +1 -1
  837. package/form/Button/__stories__/ThemeToggle.mjs +9 -0
  838. package/form/Button/__stories__/Warning.js +2 -2
  839. package/form/Button/__stories__/Warning.mjs +12 -0
  840. package/form/Button/__stories__/WithVariantLink.js +2 -2
  841. package/form/Button/__stories__/WithVariantLink.mjs +12 -0
  842. package/form/Button/index.js +5 -5
  843. package/form/Button/index.mjs +20 -0
  844. package/form/Button/index.spec.js +2 -2
  845. package/form/Button/index.spec.mjs +9 -0
  846. package/form/Checkbox/Checkbox.stories.js +12 -12
  847. package/form/Checkbox/Checkbox.stories.mjs +18 -0
  848. package/form/Checkbox/__stories__/ConditionalReveal.js +7 -7
  849. package/form/Checkbox/__stories__/ConditionalReveal.mjs +26 -0
  850. package/form/Checkbox/__stories__/Default.js +6 -6
  851. package/form/Checkbox/__stories__/Default.mjs +24 -0
  852. package/form/Checkbox/__stories__/Dense.js +7 -7
  853. package/form/Checkbox/__stories__/Dense.mjs +26 -0
  854. package/form/Checkbox/__stories__/Inline.js +6 -6
  855. package/form/Checkbox/__stories__/Inline.mjs +23 -0
  856. package/form/Checkbox/__stories__/InlineWithDivider.js +6 -6
  857. package/form/Checkbox/__stories__/InlineWithDivider.mjs +24 -0
  858. package/form/Checkbox/__stories__/MultipleQuestions.js +6 -6
  859. package/form/Checkbox/__stories__/MultipleQuestions.mjs +26 -0
  860. package/form/Checkbox/__stories__/NoneAnswer.js +5 -5
  861. package/form/Checkbox/__stories__/NoneAnswer.mjs +20 -0
  862. package/form/Checkbox/__stories__/NoneAnswerWithError.js +7 -7
  863. package/form/Checkbox/__stories__/NoneAnswerWithError.mjs +26 -0
  864. package/form/Checkbox/__stories__/WithErrorMessage.js +7 -7
  865. package/form/Checkbox/__stories__/WithErrorMessage.mjs +27 -0
  866. package/form/Checkbox/__stories__/WithHint.js +6 -6
  867. package/form/Checkbox/__stories__/WithHint.mjs +27 -0
  868. package/form/DateInputContainer/DateInputContainer.stories.js +7 -7
  869. package/form/DateInputContainer/DateInputContainer.stories.mjs +13 -0
  870. package/form/DateInputContainer/__stories__/Default.js +7 -7
  871. package/form/DateInputContainer/__stories__/Default.mjs +24 -0
  872. package/form/DateInputContainer/__stories__/Dense.js +6 -6
  873. package/form/DateInputContainer/__stories__/Dense.mjs +23 -0
  874. package/form/DateInputContainer/__stories__/MultipleQuestions.js +6 -6
  875. package/form/DateInputContainer/__stories__/MultipleQuestions.mjs +24 -0
  876. package/form/DateInputContainer/__stories__/WithErrorMessage.js +9 -9
  877. package/form/DateInputContainer/__stories__/WithErrorMessage.mjs +35 -0
  878. package/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +9 -9
  879. package/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.mjs +32 -0
  880. package/form/ErrorMessage/ErrorMessage.stories.js +5 -5
  881. package/form/ErrorMessage/ErrorMessage.stories.mjs +11 -0
  882. package/form/ErrorMessage/__stories__/DateInputError.js +6 -6
  883. package/form/ErrorMessage/__stories__/DateInputError.mjs +24 -0
  884. package/form/ErrorMessage/__stories__/Default.js +6 -6
  885. package/form/ErrorMessage/__stories__/Default.mjs +32 -0
  886. package/form/ErrorMessage/__stories__/ErrorMessageOnly.js +3 -3
  887. package/form/ErrorMessage/__stories__/ErrorMessageOnly.mjs +12 -0
  888. package/form/FileUpload/FileUpload.stories.js +4 -4
  889. package/form/FileUpload/FileUpload.stories.mjs +9 -0
  890. package/form/FileUpload/__stories__/Default.js +4 -4
  891. package/form/FileUpload/__stories__/Default.mjs +17 -0
  892. package/form/FileUpload/__stories__/WithErrorMessage.js +6 -6
  893. package/form/FileUpload/__stories__/WithErrorMessage.mjs +21 -0
  894. package/form/RadioContainer/RadioContainer.stories.js +12 -12
  895. package/form/RadioContainer/RadioContainer.stories.mjs +18 -0
  896. package/form/RadioContainer/__stories__/ConditionalReveal.js +7 -7
  897. package/form/RadioContainer/__stories__/ConditionalReveal.mjs +26 -0
  898. package/form/RadioContainer/__stories__/Default.js +6 -6
  899. package/form/RadioContainer/__stories__/Default.mjs +22 -0
  900. package/form/RadioContainer/__stories__/Dense.js +7 -7
  901. package/form/RadioContainer/__stories__/Dense.mjs +24 -0
  902. package/form/RadioContainer/__stories__/Inline.js +6 -6
  903. package/form/RadioContainer/__stories__/Inline.mjs +23 -0
  904. package/form/RadioContainer/__stories__/InlineWithDivider.js +6 -6
  905. package/form/RadioContainer/__stories__/InlineWithDivider.mjs +24 -0
  906. package/form/RadioContainer/__stories__/MultipleQuestions.js +6 -6
  907. package/form/RadioContainer/__stories__/MultipleQuestions.mjs +26 -0
  908. package/form/RadioContainer/__stories__/NoneAnswer.js +5 -5
  909. package/form/RadioContainer/__stories__/NoneAnswer.mjs +24 -0
  910. package/form/RadioContainer/__stories__/WithErrorMessage.js +7 -7
  911. package/form/RadioContainer/__stories__/WithErrorMessage.mjs +29 -0
  912. package/form/RadioContainer/__stories__/WithHints.js +5 -5
  913. package/form/RadioContainer/__stories__/WithHints.mjs +29 -0
  914. package/form/RadioContainer/__stories__/WithMediumLegend.js +6 -6
  915. package/form/RadioContainer/__stories__/WithMediumLegend.mjs +24 -0
  916. package/form/SelectContainer/SelectContainer.stories.js +6 -6
  917. package/form/SelectContainer/SelectContainer.stories.mjs +12 -0
  918. package/form/SelectContainer/__stories__/Default.js +8 -8
  919. package/form/SelectContainer/__stories__/Default.mjs +22 -0
  920. package/form/SelectContainer/__stories__/Dense.js +8 -8
  921. package/form/SelectContainer/__stories__/Dense.mjs +23 -0
  922. package/form/SelectContainer/__stories__/DisabledInput.js +8 -8
  923. package/form/SelectContainer/__stories__/DisabledInput.mjs +24 -0
  924. package/form/SelectContainer/__stories__/WithHint.js +9 -9
  925. package/form/SelectContainer/__stories__/WithHint.mjs +26 -0
  926. package/form/SingleCharacterInputs/SingleCharacterInput.stories.js +6 -6
  927. package/form/SingleCharacterInputs/SingleCharacterInput.stories.mjs +12 -0
  928. package/form/SingleCharacterInputs/__stories__/Default.js +9 -9
  929. package/form/SingleCharacterInputs/__stories__/Default.mjs +35 -0
  930. package/form/SingleCharacterInputs/__stories__/WithDefaultError.js +11 -11
  931. package/form/SingleCharacterInputs/__stories__/WithDefaultError.mjs +39 -0
  932. package/form/SingleCharacterInputs/__stories__/WithErrorMessageInvalidCode.js +12 -12
  933. package/form/SingleCharacterInputs/__stories__/WithErrorMessageInvalidCode.mjs +49 -0
  934. package/form/SingleCharacterInputs/__stories__/WithErrorMessageLessDigit.js +12 -12
  935. package/form/SingleCharacterInputs/__stories__/WithErrorMessageLessDigit.mjs +43 -0
  936. package/form/TextArea/TextArea.stories.js +10 -10
  937. package/form/TextArea/TextArea.stories.mjs +16 -0
  938. package/form/TextArea/__stories__/Default.js +4 -4
  939. package/form/TextArea/__stories__/Default.mjs +16 -0
  940. package/form/TextArea/__stories__/Dense.js +4 -4
  941. package/form/TextArea/__stories__/Dense.mjs +14 -0
  942. package/form/TextArea/__stories__/DisabledInput.js +5 -5
  943. package/form/TextArea/__stories__/DisabledInput.mjs +21 -0
  944. package/form/TextArea/__stories__/LimitedCharacters.js +5 -5
  945. package/form/TextArea/__stories__/LimitedCharacters.mjs +24 -0
  946. package/form/TextArea/__stories__/MultipleQuestions.js +5 -5
  947. package/form/TextArea/__stories__/MultipleQuestions.mjs +17 -0
  948. package/form/TextArea/__stories__/WithDeclaredRows.js +5 -5
  949. package/form/TextArea/__stories__/WithDeclaredRows.mjs +21 -0
  950. package/form/TextArea/__stories__/WithErrorMessage.js +6 -6
  951. package/form/TextArea/__stories__/WithErrorMessage.mjs +27 -0
  952. package/form/TextArea/__stories__/WithHint.js +5 -5
  953. package/form/TextArea/__stories__/WithHint.mjs +20 -0
  954. package/form/TextInput/TextInput.stories.js +11 -11
  955. package/form/TextInput/TextInput.stories.mjs +17 -0
  956. package/form/TextInput/__stories__/AskingForNumbers.js +5 -5
  957. package/form/TextInput/__stories__/AskingForNumbers.mjs +22 -0
  958. package/form/TextInput/__stories__/Default.js +4 -4
  959. package/form/TextInput/__stories__/Default.mjs +16 -0
  960. package/form/TextInput/__stories__/Dense.js +4 -4
  961. package/form/TextInput/__stories__/Dense.mjs +14 -0
  962. package/form/TextInput/__stories__/DisabledInput.js +5 -5
  963. package/form/TextInput/__stories__/DisabledInput.mjs +21 -0
  964. package/form/TextInput/__stories__/FixedWidths.js +9 -9
  965. package/form/TextInput/__stories__/FixedWidths.mjs +42 -0
  966. package/form/TextInput/__stories__/FluidWidths.js +9 -9
  967. package/form/TextInput/__stories__/FluidWidths.mjs +42 -0
  968. package/form/TextInput/__stories__/MultipleQuestions.js +4 -4
  969. package/form/TextInput/__stories__/MultipleQuestions.mjs +13 -0
  970. package/form/TextInput/__stories__/WithErrorMessage.js +6 -6
  971. package/form/TextInput/__stories__/WithErrorMessage.mjs +27 -0
  972. package/form/TextInput/__stories__/WithHint.js +5 -5
  973. package/form/TextInput/__stories__/WithHint.mjs +20 -0
  974. package/form/index.js +15 -15
  975. package/form/index.mjs +15 -0
  976. package/govgr/Footer/Copyright.js +2 -2
  977. package/govgr/Footer/Copyright.mjs +39 -0
  978. package/govgr/Footer/LicenseCCSA.js +2 -2
  979. package/govgr/Footer/LicenseCCSA.mjs +18 -0
  980. package/govgr/Footer/index.js +2 -2
  981. package/govgr/Footer/index.mjs +21 -0
  982. package/govgr/images/index.js +5 -5
  983. package/govgr/images/index.mjs +5 -0
  984. package/govgr/index.js +5 -5
  985. package/govgr/index.mjs +5 -0
  986. package/i18n/I18nText.js +3 -3
  987. package/i18n/I18nText.mjs +79 -0
  988. package/i18n/index.d.ts +1 -1
  989. package/i18n/index.js +1 -1
  990. package/i18n/index.mjs +54 -0
  991. package/icons/index.js +1 -1
  992. package/icons/index.mjs +2 -0
  993. package/index.js +11 -11
  994. package/index.mjs +16 -0
  995. package/layouts/Basic/Basic.stories.js +2 -2
  996. package/layouts/Basic/Basic.stories.mjs +11 -0
  997. package/layouts/Basic/Content/index.d.ts +1 -3
  998. package/layouts/Basic/Content/index.js +1 -7
  999. package/layouts/Basic/Content/index.mjs +18 -0
  1000. package/layouts/Basic/Side/index.d.ts +1 -3
  1001. package/layouts/Basic/Side/index.js +1 -7
  1002. package/layouts/Basic/Side/index.mjs +7 -0
  1003. package/layouts/Basic/__snapshots__/index.spec.tsx.snap +43 -24
  1004. package/layouts/Basic/__stories__/Default.js +5 -5
  1005. package/layouts/Basic/__stories__/Default.mjs +12 -0
  1006. package/layouts/Basic/__stories__/MultipleRowsLayout.js +6 -6
  1007. package/layouts/Basic/__stories__/MultipleRowsLayout.mjs +15 -0
  1008. package/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +6 -6
  1009. package/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.mjs +15 -0
  1010. package/layouts/Basic/index.js +8 -8
  1011. package/layouts/Basic/index.mjs +11 -0
  1012. package/layouts/Basic/index.spec.js +2 -2
  1013. package/layouts/Basic/index.spec.mjs +10 -0
  1014. package/layouts/Divider/Divider.stories.js +2 -2
  1015. package/layouts/Divider/Divider.stories.mjs +8 -0
  1016. package/layouts/Divider/__stories__/Default.js +1 -1
  1017. package/layouts/Divider/__stories__/Default.mjs +21 -0
  1018. package/layouts/Divider/index.js +1 -1
  1019. package/layouts/Divider/index.mjs +9 -0
  1020. package/layouts/Grid/Grid.stories.js +5 -5
  1021. package/layouts/Grid/Grid.stories.mjs +9 -0
  1022. package/layouts/Grid/__stories__/Default.js +9 -9
  1023. package/layouts/Grid/__stories__/Default.mjs +75 -0
  1024. package/layouts/Grid/__stories__/Inline.js +9 -9
  1025. package/layouts/Grid/__stories__/Inline.mjs +76 -0
  1026. package/layouts/Grid/__stories__/ResponsiveSpacing.js +9 -9
  1027. package/layouts/Grid/__stories__/ResponsiveSpacing.mjs +79 -0
  1028. package/layouts/Stack/Stack.stories.js +8 -8
  1029. package/layouts/Stack/Stack.stories.mjs +12 -0
  1030. package/layouts/Stack/__stories__/AlignItems.js +8 -8
  1031. package/layouts/Stack/__stories__/AlignItems.mjs +67 -0
  1032. package/layouts/Stack/__stories__/Default.js +3 -3
  1033. package/layouts/Stack/__stories__/Default.mjs +24 -0
  1034. package/layouts/Stack/__stories__/JustifyContent.js +9 -9
  1035. package/layouts/Stack/__stories__/JustifyContent.mjs +84 -0
  1036. package/layouts/Stack/__stories__/NoWrap.js +3 -3
  1037. package/layouts/Stack/__stories__/NoWrap.mjs +26 -0
  1038. package/layouts/Stack/__stories__/Row.js +3 -3
  1039. package/layouts/Stack/__stories__/Row.mjs +25 -0
  1040. package/layouts/Stack/__stories__/Spacing.js +7 -7
  1041. package/layouts/Stack/__stories__/Spacing.mjs +55 -0
  1042. package/layouts/index.js +7 -7
  1043. package/layouts/index.mjs +13 -0
  1044. package/navigation/BackLink/BackLink.stories.js +3 -3
  1045. package/navigation/BackLink/BackLink.stories.mjs +7 -0
  1046. package/navigation/BackLink/__stories__/Default.js +2 -2
  1047. package/navigation/BackLink/__stories__/Default.mjs +12 -0
  1048. package/navigation/BackToTopLink/BackToTopLink.stories.d.ts +9 -0
  1049. package/navigation/BackToTopLink/BackToTopLink.stories.js +45 -0
  1050. package/navigation/BackToTopLink/BackToTopLink.stories.mjs +8 -0
  1051. package/navigation/BackToTopLink/__stories__/Default.d.ts +2 -0
  1052. package/navigation/BackToTopLink/__stories__/Default.js +25 -0
  1053. package/navigation/BackToTopLink/__stories__/Default.mjs +12 -0
  1054. package/navigation/BackToTopLink/__stories__/InMain.d.ts +2 -0
  1055. package/navigation/BackToTopLink/__stories__/InMain.js +34 -0
  1056. package/navigation/BackToTopLink/__stories__/InMain.mjs +13 -0
  1057. package/navigation/BackToTopLink/index.d.ts +12 -0
  1058. package/navigation/BackToTopLink/index.js +125 -0
  1059. package/navigation/BackToTopLink/index.mjs +64 -0
  1060. package/navigation/Breadcrumbs/Breadcrumbs.stories.js +3 -3
  1061. package/navigation/Breadcrumbs/Breadcrumbs.stories.mjs +9 -0
  1062. package/navigation/Breadcrumbs/__stories__/Default.js +6 -6
  1063. package/navigation/Breadcrumbs/__stories__/Default.mjs +21 -0
  1064. package/navigation/Drawer/Drawer.stories.d.ts +2 -0
  1065. package/navigation/Drawer/Drawer.stories.js +31 -3
  1066. package/navigation/Drawer/Drawer.stories.mjs +11 -0
  1067. package/navigation/Drawer/__stories__/Auto.d.ts +1 -0
  1068. package/navigation/Drawer/__stories__/Auto.js +101 -0
  1069. package/navigation/Drawer/__stories__/Auto.mjs +82 -0
  1070. package/navigation/Drawer/__stories__/Default.js +5 -5
  1071. package/navigation/Drawer/__stories__/Default.mjs +86 -0
  1072. package/navigation/Drawer/__stories__/WithHook.d.ts +1 -0
  1073. package/navigation/Drawer/__stories__/WithHook.js +106 -0
  1074. package/navigation/Drawer/__stories__/WithHook.mjs +84 -0
  1075. package/navigation/Drawer/auto.d.ts +28 -0
  1076. package/navigation/Drawer/auto.js +111 -0
  1077. package/navigation/Drawer/auto.mjs +76 -0
  1078. package/navigation/Drawer/hooks.d.ts +20 -0
  1079. package/navigation/Drawer/hooks.js +72 -0
  1080. package/navigation/Drawer/hooks.mjs +52 -0
  1081. package/navigation/Drawer/index.d.ts +1 -0
  1082. package/navigation/Drawer/index.js +14 -0
  1083. package/navigation/Drawer/index.mjs +5 -0
  1084. package/navigation/Dropdown/Dropdown.stories.d.ts +7 -0
  1085. package/navigation/Dropdown/Dropdown.stories.js +100 -2
  1086. package/navigation/Dropdown/Dropdown.stories.mjs +19 -0
  1087. package/navigation/Dropdown/Dropdown.stories.playwright.json +16 -0
  1088. package/navigation/Dropdown/__stories__/AlignRight.js +10 -10
  1089. package/navigation/Dropdown/__stories__/AlignRight.mjs +56 -0
  1090. package/navigation/Dropdown/__stories__/ContentPosition.d.ts +2 -0
  1091. package/navigation/Dropdown/__stories__/ContentPosition.js +114 -0
  1092. package/navigation/Dropdown/__stories__/ContentPosition.mjs +99 -0
  1093. package/navigation/Dropdown/__stories__/Default.js +9 -16
  1094. package/navigation/Dropdown/__stories__/Default.mjs +42 -0
  1095. package/navigation/Dropdown/__stories__/Dense.d.ts +2 -0
  1096. package/navigation/Dropdown/__stories__/Dense.js +68 -0
  1097. package/navigation/Dropdown/__stories__/Dense.mjs +50 -0
  1098. package/navigation/Dropdown/__stories__/Disabled.d.ts +2 -0
  1099. package/navigation/Dropdown/__stories__/Disabled.js +61 -0
  1100. package/navigation/Dropdown/__stories__/Disabled.mjs +44 -0
  1101. package/navigation/Dropdown/__stories__/PlacementTop.js +10 -10
  1102. package/navigation/Dropdown/__stories__/PlacementTop.mjs +61 -0
  1103. package/navigation/Dropdown/__stories__/Secondary.d.ts +2 -0
  1104. package/navigation/Dropdown/__stories__/Secondary.js +44 -0
  1105. package/navigation/Dropdown/__stories__/Secondary.mjs +30 -0
  1106. package/navigation/Dropdown/__stories__/VariantLink.d.ts +2 -0
  1107. package/navigation/Dropdown/__stories__/VariantLink.js +60 -0
  1108. package/navigation/Dropdown/__stories__/VariantLink.mjs +43 -0
  1109. package/navigation/Dropdown/__stories__/Warning.d.ts +2 -0
  1110. package/navigation/Dropdown/__stories__/Warning.js +44 -0
  1111. package/navigation/Dropdown/__stories__/Warning.mjs +30 -0
  1112. package/navigation/Dropdown/__stories__/WithIcons.d.ts +2 -0
  1113. package/navigation/Dropdown/__stories__/WithIcons.js +111 -0
  1114. package/navigation/Dropdown/__stories__/WithIcons.mjs +95 -0
  1115. package/navigation/Dropdown/index.d.ts +1 -1
  1116. package/navigation/Link/Link.stories.js +8 -8
  1117. package/navigation/Link/Link.stories.mjs +13 -0
  1118. package/navigation/Link/__stories__/DarkBackground.js +4 -4
  1119. package/navigation/Link/__stories__/DarkBackground.mjs +19 -0
  1120. package/navigation/Link/__stories__/DarkBackgroundNoUnderline.js +4 -4
  1121. package/navigation/Link/__stories__/DarkBackgroundNoUnderline.mjs +20 -0
  1122. package/navigation/Link/__stories__/Default.js +2 -2
  1123. package/navigation/Link/__stories__/Default.mjs +13 -0
  1124. package/navigation/Link/__stories__/ExternalLink.js +3 -3
  1125. package/navigation/Link/__stories__/ExternalLink.mjs +14 -0
  1126. package/navigation/Link/__stories__/NoUnderline.js +2 -2
  1127. package/navigation/Link/__stories__/NoUnderline.mjs +14 -0
  1128. package/navigation/Link/__stories__/OpensInNewTab.js +2 -2
  1129. package/navigation/Link/__stories__/OpensInNewTab.mjs +13 -0
  1130. package/navigation/Link/index.spec.js +4 -4
  1131. package/navigation/Link/index.spec.mjs +21 -0
  1132. package/navigation/NavList/NavList.stories.js +10 -10
  1133. package/navigation/NavList/NavList.stories.mjs +16 -0
  1134. package/navigation/NavList/NavListAuto/index.js +2 -2
  1135. package/navigation/NavList/NavListAuto/index.mjs +48 -0
  1136. package/navigation/NavList/__stories__/Default.js +5 -5
  1137. package/navigation/NavList/__stories__/Default.mjs +29 -0
  1138. package/navigation/NavList/__stories__/HorizontalWithDrawer.js +9 -9
  1139. package/navigation/NavList/__stories__/HorizontalWithDrawer.mjs +67 -0
  1140. package/navigation/NavList/__stories__/HorizontalWithoutDrawer.js +8 -8
  1141. package/navigation/NavList/__stories__/HorizontalWithoutDrawer.mjs +41 -0
  1142. package/navigation/NavList/__stories__/NavListWithoutNav.js +4 -4
  1143. package/navigation/NavList/__stories__/NavListWithoutNav.mjs +19 -0
  1144. package/navigation/NavList/__stories__/UsingHeaderButton.js +15 -15
  1145. package/navigation/NavList/__stories__/UsingHeaderButton.mjs +70 -0
  1146. package/navigation/NavList/__stories__/UsingNavListAuto.js +3 -3
  1147. package/navigation/NavList/__stories__/UsingNavListAuto.mjs +38 -0
  1148. package/navigation/NavList/__stories__/Vertical.js +5 -5
  1149. package/navigation/NavList/__stories__/Vertical.mjs +32 -0
  1150. package/navigation/NavList/__stories__/VerticalWithoutDrawer.js +8 -8
  1151. package/navigation/NavList/__stories__/VerticalWithoutDrawer.mjs +44 -0
  1152. package/navigation/NavList/hooks/useNavList.js +1 -1
  1153. package/navigation/NavList/hooks/useNavList.mjs +39 -0
  1154. package/navigation/NavList/index.js +4 -4
  1155. package/navigation/NavList/index.mjs +17 -0
  1156. package/navigation/NavList/index.spec.js +2 -2
  1157. package/navigation/NavList/index.spec.mjs +8 -0
  1158. package/navigation/Pagination/Pagination.stories.d.ts +2 -0
  1159. package/navigation/Pagination/Pagination.stories.js +35 -7
  1160. package/navigation/Pagination/Pagination.stories.mjs +15 -0
  1161. package/navigation/Pagination/__stories__/Auto.d.ts +2 -0
  1162. package/navigation/Pagination/__stories__/Auto.js +68 -0
  1163. package/navigation/Pagination/__stories__/Auto.mjs +52 -0
  1164. package/navigation/Pagination/__stories__/Default.js +25 -25
  1165. package/navigation/Pagination/__stories__/Default.mjs +67 -0
  1166. package/navigation/Pagination/__stories__/PaginationSmall.js +11 -11
  1167. package/navigation/Pagination/__stories__/PaginationSmall.mjs +35 -0
  1168. package/navigation/Pagination/__stories__/PaginationWithSmallFont.js +16 -16
  1169. package/navigation/Pagination/__stories__/PaginationWithSmallFont.mjs +44 -0
  1170. package/navigation/Pagination/__stories__/WithHook.d.ts +2 -0
  1171. package/navigation/Pagination/__stories__/WithHook.js +75 -0
  1172. package/navigation/Pagination/__stories__/WithHook.mjs +57 -0
  1173. package/navigation/Pagination/__stories__/WithInactiveValues.js +26 -26
  1174. package/navigation/Pagination/__stories__/WithInactiveValues.mjs +69 -0
  1175. package/navigation/Pagination/__stories__/WithResultsPerPage.js +15 -15
  1176. package/navigation/Pagination/__stories__/WithResultsPerPage.mjs +40 -0
  1177. package/navigation/Pagination/auto.d.ts +24 -0
  1178. package/navigation/Pagination/auto.js +122 -0
  1179. package/navigation/Pagination/auto.mjs +87 -0
  1180. package/navigation/Pagination/hooks.d.ts +30 -0
  1181. package/navigation/Pagination/hooks.js +131 -0
  1182. package/navigation/Pagination/hooks.mjs +117 -0
  1183. package/navigation/Pagination/index.d.ts +19 -0
  1184. package/navigation/Pagination/index.js +90 -3
  1185. package/navigation/Pagination/index.mjs +73 -0
  1186. package/navigation/SkipLink/SkipLink.stories.js +3 -3
  1187. package/navigation/SkipLink/SkipLink.stories.mjs +8 -0
  1188. package/navigation/SkipLink/__stories__/Default.js +3 -3
  1189. package/navigation/SkipLink/__stories__/Default.mjs +12 -0
  1190. package/navigation/Tabs/Tabs.stories.d.ts +4 -2
  1191. package/navigation/Tabs/Tabs.stories.js +31 -3
  1192. package/navigation/Tabs/Tabs.stories.mjs +12 -0
  1193. package/navigation/Tabs/Tabs.stories.playwright.json +2 -2
  1194. package/navigation/Tabs/__stories__/Auto.d.ts +2 -0
  1195. package/navigation/Tabs/__stories__/Auto.js +50 -0
  1196. package/navigation/Tabs/__stories__/Auto.mjs +33 -0
  1197. package/navigation/Tabs/__stories__/Default.js +28 -18
  1198. package/navigation/Tabs/__stories__/Default.mjs +54 -0
  1199. package/navigation/Tabs/__stories__/Dense.d.ts +2 -0
  1200. package/navigation/Tabs/__stories__/Dense.js +52 -0
  1201. package/navigation/Tabs/__stories__/Dense.mjs +35 -0
  1202. package/navigation/Tabs/auto.d.ts +18 -0
  1203. package/navigation/Tabs/auto.js +88 -0
  1204. package/navigation/Tabs/auto.mjs +56 -0
  1205. package/navigation/Tabs/hooks.d.ts +28 -0
  1206. package/navigation/Tabs/hooks.js +111 -0
  1207. package/navigation/Tabs/hooks.mjs +92 -0
  1208. package/navigation/Tabs/index.d.ts +4 -11
  1209. package/navigation/Tabs/index.js +37 -67
  1210. package/navigation/Tabs/index.mjs +9 -0
  1211. package/navigation/index.js +9 -9
  1212. package/navigation/index.mjs +9 -0
  1213. package/package.json +5 -5
  1214. package/registry.d.ts +15 -2
  1215. package/registry.js +275 -239
  1216. package/registry.mjs +520 -0
  1217. package/src/app/Header/__snapshots__/index.spec.tsx.snap +7 -4
  1218. package/src/app/Header/__stories__/WithHeaderNavigation.tsx +2 -2
  1219. package/src/app/Modal/Modal.stories.js +2 -0
  1220. package/src/app/Modal/Modal.stories.playwright.json +32 -0
  1221. package/src/app/Modal/__stories__/Auto.tsx +69 -0
  1222. package/src/app/Modal/__stories__/WithHooks.tsx +44 -0
  1223. package/src/app/Modal/auto.tsx +73 -0
  1224. package/src/app/Modal/hooks.ts +87 -0
  1225. package/src/app/Modal/index.tsx +10 -36
  1226. package/src/app/index.ts +0 -1
  1227. package/src/content/Accordion/Accordion.stories.js +2 -0
  1228. package/src/content/Accordion/__snapshots__/index.spec.tsx.snap +10 -4
  1229. package/src/content/Accordion/__stories__/Auto.tsx +129 -0
  1230. package/src/content/Accordion/__stories__/WithHook.tsx +136 -0
  1231. package/src/content/Accordion/auto.tsx +85 -0
  1232. package/src/content/Accordion/hooks.ts +165 -0
  1233. package/src/content/Accordion/index.spec.tsx +29 -15
  1234. package/src/content/Accordion/index.tsx +3 -102
  1235. package/src/content/Details/__snapshots__/index.spec.tsx.snap +4 -4
  1236. package/src/content/StepNav/StepNav.stories.js +2 -0
  1237. package/src/content/StepNav/__stories__/Auto.tsx +228 -0
  1238. package/src/content/StepNav/__stories__/WithHook.tsx +231 -0
  1239. package/src/content/StepNav/auto.tsx +81 -0
  1240. package/src/content/StepNav/index.tsx +4 -2
  1241. package/src/feedback/CopyToClipboard/__stories__/Default.tsx +2 -0
  1242. package/src/feedback/CopyToClipboard/index.tsx +3 -1
  1243. package/src/layouts/Basic/Content/index.tsx +0 -2
  1244. package/src/layouts/Basic/Side/index.tsx +0 -1
  1245. package/src/layouts/Basic/__snapshots__/index.spec.tsx.snap +43 -24
  1246. package/src/navigation/BackToTopLink/BackToTopLink.stories.js +8 -0
  1247. package/src/navigation/BackToTopLink/__stories__/Default.tsx +10 -0
  1248. package/src/navigation/BackToTopLink/__stories__/InMain.tsx +16 -0
  1249. package/src/navigation/BackToTopLink/index.tsx +53 -0
  1250. package/src/navigation/Drawer/Drawer.stories.js +3 -0
  1251. package/src/navigation/Drawer/__stories__/Auto.tsx +103 -0
  1252. package/src/navigation/Drawer/__stories__/WithHook.tsx +105 -0
  1253. package/src/navigation/Drawer/auto.tsx +84 -0
  1254. package/src/navigation/Drawer/hooks.ts +66 -0
  1255. package/src/navigation/Drawer/index.tsx +1 -1
  1256. package/src/navigation/Dropdown/Dropdown.stories.js +7 -0
  1257. package/src/navigation/Dropdown/Dropdown.stories.playwright.json +16 -0
  1258. package/src/navigation/Dropdown/__stories__/ContentPosition.tsx +107 -0
  1259. package/src/navigation/Dropdown/__stories__/Default.tsx +1 -4
  1260. package/src/navigation/Dropdown/__stories__/Dense.tsx +54 -0
  1261. package/src/navigation/Dropdown/__stories__/Disabled.tsx +49 -0
  1262. package/src/navigation/Dropdown/__stories__/Secondary.tsx +36 -0
  1263. package/src/navigation/Dropdown/__stories__/VariantLink.tsx +50 -0
  1264. package/src/navigation/Dropdown/__stories__/Warning.tsx +36 -0
  1265. package/src/navigation/Dropdown/__stories__/WithIcons.tsx +110 -0
  1266. package/src/navigation/NavList/__stories__/UsingHeaderButton.tsx +2 -2
  1267. package/src/navigation/Pagination/Pagination.stories.js +2 -0
  1268. package/src/navigation/Pagination/__stories__/Auto.tsx +64 -0
  1269. package/src/navigation/Pagination/__stories__/Default.tsx +5 -5
  1270. package/src/navigation/Pagination/__stories__/PaginationSmall.tsx +3 -3
  1271. package/src/navigation/Pagination/__stories__/PaginationWithSmallFont.tsx +3 -3
  1272. package/src/navigation/Pagination/__stories__/WithHook.tsx +72 -0
  1273. package/src/navigation/Pagination/__stories__/WithInactiveValues.tsx +5 -5
  1274. package/src/navigation/Pagination/__stories__/WithResultsPerPage.tsx +3 -3
  1275. package/src/navigation/Pagination/auto.tsx +141 -0
  1276. package/src/navigation/Pagination/hooks.ts +136 -0
  1277. package/src/navigation/Pagination/index.tsx +83 -0
  1278. package/src/navigation/Tabs/Tabs.stories.js +4 -2
  1279. package/src/navigation/Tabs/Tabs.stories.playwright.json +2 -2
  1280. package/src/navigation/Tabs/__stories__/Auto.tsx +72 -0
  1281. package/src/navigation/Tabs/__stories__/Default.tsx +40 -12
  1282. package/src/navigation/Tabs/__stories__/Dense.tsx +74 -0
  1283. package/src/navigation/Tabs/auto.tsx +60 -0
  1284. package/src/navigation/Tabs/hooks.ts +103 -0
  1285. package/src/navigation/Tabs/index.tsx +7 -50
  1286. package/src/registry.js +26 -2
  1287. package/src/utils/Base/index.tsx +1 -1
  1288. package/typography/Caption/index.js +2 -2
  1289. package/typography/Caption/index.mjs +8 -0
  1290. package/typography/Heading/Heading.stories.js +3 -3
  1291. package/typography/Heading/Heading.stories.mjs +7 -0
  1292. package/typography/Heading/__stories__/Default.js +6 -6
  1293. package/typography/Heading/__stories__/Default.mjs +29 -0
  1294. package/typography/HeadingCaption/HeadingCaption.stories.js +4 -4
  1295. package/typography/HeadingCaption/HeadingCaption.stories.mjs +8 -0
  1296. package/typography/HeadingCaption/__stories__/Default.js +5 -5
  1297. package/typography/HeadingCaption/__stories__/Default.mjs +35 -0
  1298. package/typography/HeadingCaption/__stories__/NestedToTitle.js +3 -3
  1299. package/typography/HeadingCaption/__stories__/NestedToTitle.mjs +15 -0
  1300. package/typography/Hint/Hint.stories.js +4 -4
  1301. package/typography/Hint/Hint.stories.mjs +8 -0
  1302. package/typography/Hint/__stories__/Default.js +2 -2
  1303. package/typography/Hint/__stories__/Default.mjs +9 -0
  1304. package/typography/Hint/__stories__/FontSizes.js +5 -5
  1305. package/typography/Hint/__stories__/FontSizes.mjs +21 -0
  1306. package/typography/NormalText/NormalText.stories.js +6 -6
  1307. package/typography/NormalText/NormalText.stories.mjs +10 -0
  1308. package/typography/NormalText/__stories__/Default.js +2 -2
  1309. package/typography/NormalText/__stories__/Default.mjs +9 -0
  1310. package/typography/NormalText/__stories__/FontSizes.js +9 -9
  1311. package/typography/NormalText/__stories__/FontSizes.mjs +60 -0
  1312. package/typography/NormalText/__stories__/FontWeight.js +4 -4
  1313. package/typography/NormalText/__stories__/FontWeight.mjs +20 -0
  1314. package/typography/NormalText/__stories__/Variants.js +4 -4
  1315. package/typography/NormalText/__stories__/Variants.mjs +20 -0
  1316. package/typography/Paragraph/Paragraph.stories.js +7 -7
  1317. package/typography/Paragraph/Paragraph.stories.mjs +11 -0
  1318. package/typography/Paragraph/__stories__/Default.js +2 -2
  1319. package/typography/Paragraph/__stories__/Default.mjs +9 -0
  1320. package/typography/Paragraph/__stories__/FontSizes.js +8 -8
  1321. package/typography/Paragraph/__stories__/FontSizes.mjs +35 -0
  1322. package/typography/Paragraph/__stories__/FontWeight.js +3 -3
  1323. package/typography/Paragraph/__stories__/FontWeight.mjs +15 -0
  1324. package/typography/Paragraph/__stories__/LeadVariant.js +2 -2
  1325. package/typography/Paragraph/__stories__/LeadVariant.mjs +11 -0
  1326. package/typography/Paragraph/__stories__/SmallVariant.js +2 -2
  1327. package/typography/Paragraph/__stories__/SmallVariant.mjs +11 -0
  1328. package/typography/Title/index.js +2 -2
  1329. package/typography/Title/index.mjs +42 -0
  1330. package/typography/index.js +5 -5
  1331. package/typography/index.mjs +5 -0
  1332. package/utils/Base/index.d.ts +1 -1
  1333. package/utils/Base/index.js +19 -8
  1334. package/utils/Base/index.mjs +3 -0
  1335. package/utils/Kitchensink/AllComponents.js +2 -2
  1336. package/utils/Kitchensink/AllComponents.mjs +11 -0
  1337. package/utils/Kitchensink/KitchensinkByCategory.js +2 -2
  1338. package/utils/Kitchensink/KitchensinkByCategory.mjs +38 -0
  1339. package/utils/Kitchensink/KitchensinkByLetter.js +1 -1
  1340. package/utils/Kitchensink/KitchensinkByLetter.mjs +19 -0
  1341. package/utils/Kitchensink/KitchensinkComponent.js +5 -5
  1342. package/utils/Kitchensink/KitchensinkComponent.mjs +46 -0
  1343. package/utils/Kitchensink/KitchensinkDashboard.js +1 -1
  1344. package/utils/Kitchensink/KitchensinkDashboard.mjs +49 -0
  1345. package/utils/VisuallyHidden/VisuallyHidden.stories.js +3 -3
  1346. package/utils/VisuallyHidden/VisuallyHidden.stories.mjs +7 -0
  1347. package/utils/VisuallyHidden/__stories__/Default.js +5 -5
  1348. package/utils/VisuallyHidden/__stories__/Default.mjs +16 -0
  1349. package/utils/hooks/useDebounce.d.ts +1 -1
  1350. package/utils/hooks/useDebounce.js +1 -1
  1351. package/utils/hooks/useDebounce.mjs +41 -0
  1352. package/utils/index.js +3 -3
  1353. package/utils/index.mjs +3 -0
  1354. package/app/AccessibilityMenu/index.d.ts +0 -19
  1355. package/app/AccessibilityMenu/index.js +0 -225
  1356. package/es/app/AccessibilityMenu/index.js +0 -62
  1357. package/esm/api/fetchAPI.js +0 -52
  1358. package/esm/api/index.js +0 -13
  1359. package/esm/api/index.spec.js +0 -548
  1360. package/esm/api/introduction.md +0 -6
  1361. package/esm/api/useResource.js +0 -131
  1362. package/esm/api/useResourceAction.js +0 -144
  1363. package/esm/api/useResourceQuery.js +0 -211
  1364. package/esm/api/utils.js +0 -236
  1365. package/esm/app/AccessibilityMenu/index.js +0 -62
  1366. package/esm/app/BannerContainer/BannerContainer.stories.js +0 -10
  1367. package/esm/app/BannerContainer/__stories__/CookiesBanner.js +0 -18
  1368. package/esm/app/Footer/Footer.stories.js +0 -17
  1369. package/esm/app/Footer/Footer.stories.playwright.json +0 -27
  1370. package/esm/app/Footer/__stories__/Default.js +0 -9
  1371. package/esm/app/Footer/__stories__/DefaultCopyright.js +0 -19
  1372. package/esm/app/Footer/__stories__/FooterAllInclusive.js +0 -69
  1373. package/esm/app/Footer/__stories__/FooterWithLink.js +0 -32
  1374. package/esm/app/Footer/__stories__/FooterWithLogo.js +0 -29
  1375. package/esm/app/Footer/__stories__/FooterWithSecondaryNavigation.js +0 -52
  1376. package/esm/app/Footer/__stories__/YearCopyright.js +0 -25
  1377. package/esm/app/Footer/index.mdx +0 -34
  1378. package/esm/app/Header/Header.stories.js +0 -18
  1379. package/esm/app/Header/Header.stories.playwright.json +0 -49
  1380. package/esm/app/Header/__snapshots__/index.spec.tsx.snap +0 -52
  1381. package/esm/app/Header/__stories__/Default.js +0 -14
  1382. package/esm/app/Header/__stories__/WithHeaderNavigation.js +0 -37
  1383. package/esm/app/Header/__stories__/WithNavigation.js +0 -57
  1384. package/esm/app/Header/__stories__/WithServiceName.js +0 -15
  1385. package/esm/app/Header/__stories__/WithServiceNameAndLogo.js +0 -20
  1386. package/esm/app/Header/index.js +0 -9
  1387. package/esm/app/Header/index.mdx +0 -30
  1388. package/esm/app/Header/index.spec.js +0 -32
  1389. package/esm/app/Loader/Loader.stories.js +0 -7
  1390. package/esm/app/Loader/__stories__/Default.js +0 -9
  1391. package/esm/app/Masthead/Masthead.stories.js +0 -12
  1392. package/esm/app/Masthead/Masthead.stories.playwright.json +0 -21
  1393. package/esm/app/Masthead/__stories__/Default.js +0 -15
  1394. package/esm/app/Masthead/__stories__/WithElements.js +0 -21
  1395. package/esm/app/Masthead/__stories__/WithLogo.js +0 -19
  1396. package/esm/app/Masthead/index.mdx +0 -18
  1397. package/esm/app/Modal/Modal.stories.js +0 -11
  1398. package/esm/app/Modal/Modal.stories.playwright.json +0 -21
  1399. package/esm/app/Modal/__stories__/AlertDialog.js +0 -44
  1400. package/esm/app/Modal/__stories__/Default.js +0 -42
  1401. package/esm/app/Modal/__stories__/Dense.js +0 -43
  1402. package/esm/app/Modal/index.js +0 -93
  1403. package/esm/app/Modal/index.mdx +0 -29
  1404. package/esm/app/NotFound/NotFound.stories.js +0 -7
  1405. package/esm/app/NotFound/__stories__/Default.js +0 -9
  1406. package/esm/app/NotFound/index.js +0 -12
  1407. package/esm/app/NotFound/index.mdx +0 -16
  1408. package/esm/app/OutdatedBrowserBanner/hooks/useOutdatedBrowserCheck.js +0 -47
  1409. package/esm/app/OutdatedBrowserBanner/index.js +0 -25
  1410. package/esm/app/Panel/Panel.stories.js +0 -9
  1411. package/esm/app/Panel/__stories__/Default.js +0 -9
  1412. package/esm/app/Panel/index.mdx +0 -16
  1413. package/esm/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +0 -7
  1414. package/esm/app/PhaseBannerHeader/__stories__/Default.js +0 -12
  1415. package/esm/app/PhaseBannerHeader/index.mdx +0 -16
  1416. package/esm/app/QrCodeScanner/QrCodeScanner.stories.js +0 -7
  1417. package/esm/app/QrCodeScanner/__snapshots__/index.spec.tsx.snap +0 -13
  1418. package/esm/app/QrCodeScanner/__stories__/Default.js +0 -52
  1419. package/esm/app/QrCodeScanner/index.spec.js +0 -15
  1420. package/esm/app/QrCodeViewer/QRCode.stories.js +0 -9
  1421. package/esm/app/QrCodeViewer/__stories__/Custom.js +0 -22
  1422. package/esm/app/QrCodeViewer/__stories__/Default.js +0 -11
  1423. package/esm/app/QrCodeViewer/index.js +0 -156
  1424. package/esm/app/QrCodeViewer/index.mdx +0 -22
  1425. package/esm/app/ThemeOptions/index.js +0 -255
  1426. package/esm/app/hooks/useFontSize.js +0 -10
  1427. package/esm/app/hooks/useLetterSpacing.js +0 -10
  1428. package/esm/app/hooks/useLineHeight.js +0 -10
  1429. package/esm/app/index.js +0 -17
  1430. package/esm/content/Accordion/Accordion.stories.js +0 -11
  1431. package/esm/content/Accordion/Accordion.stories.playwright.json +0 -21
  1432. package/esm/content/Accordion/__snapshots__/index.spec.tsx.snap +0 -151
  1433. package/esm/content/Accordion/__stories__/Default.js +0 -31
  1434. package/esm/content/Accordion/__stories__/WithHints.js +0 -32
  1435. package/esm/content/Accordion/index.js +0 -97
  1436. package/esm/content/Accordion/index.mdx +0 -33
  1437. package/esm/content/Accordion/index.spec.js +0 -9
  1438. package/esm/content/Blockquote/Blockquote.stories.js +0 -10
  1439. package/esm/content/Blockquote/__snapshots__/index.spec.tsx.snap +0 -16
  1440. package/esm/content/Blockquote/__stories__/Default.js +0 -9
  1441. package/esm/content/Blockquote/__stories__/Dense.js +0 -11
  1442. package/esm/content/Blockquote/index.mdx +0 -22
  1443. package/esm/content/Blockquote/index.spec.js +0 -9
  1444. package/esm/content/Card/Card.stories.js +0 -20
  1445. package/esm/content/Card/Card.stories.playwright.json +0 -21
  1446. package/esm/content/Card/__stories__/Default.js +0 -10
  1447. package/esm/content/Card/__stories__/Dense.js +0 -14
  1448. package/esm/content/Card/__stories__/WithClickableContent.js +0 -14
  1449. package/esm/content/Card/__stories__/WithClickableLink.js +0 -12
  1450. package/esm/content/Card/__stories__/WithDarkBorder.js +0 -13
  1451. package/esm/content/Card/__stories__/WithDarkTopBorder.js +0 -13
  1452. package/esm/content/Card/__stories__/WithDivider.js +0 -12
  1453. package/esm/content/Card/__stories__/WithGrayBorder.js +0 -13
  1454. package/esm/content/Card/__stories__/WithGrayTopBorder.js +0 -13
  1455. package/esm/content/Card/__stories__/WithGroupButton.js +0 -11
  1456. package/esm/content/Card/__stories__/WithLink.js +0 -10
  1457. package/esm/content/Card/index.mdx +0 -73
  1458. package/esm/content/Chip/Chip.stories.js +0 -12
  1459. package/esm/content/Chip/__stories__/ClickableChip.js +0 -10
  1460. package/esm/content/Chip/__stories__/ClickableDeletableChip.js +0 -13
  1461. package/esm/content/Chip/__stories__/Default.js +0 -9
  1462. package/esm/content/Chip/__stories__/DeletableChip.js +0 -10
  1463. package/esm/content/Chip/__stories__/GroupOfChips.js +0 -9
  1464. package/esm/content/Chip/index.mdx +0 -39
  1465. package/esm/content/Details/Details.stories.js +0 -9
  1466. package/esm/content/Details/Details.stories.playwright.json +0 -27
  1467. package/esm/content/Details/__snapshots__/index.spec.tsx.snap +0 -81
  1468. package/esm/content/Details/__stories__/Default.js +0 -9
  1469. package/esm/content/Details/index.mdx +0 -25
  1470. package/esm/content/Details/index.spec.js +0 -17
  1471. package/esm/content/List/List.stories.js +0 -14
  1472. package/esm/content/List/List.stories.playwright.json +0 -27
  1473. package/esm/content/List/ListItemContent.js +0 -14
  1474. package/esm/content/List/ListItemIcon.js +0 -14
  1475. package/esm/content/List/ListItemText.js +0 -15
  1476. package/esm/content/List/ListItemTitle.js +0 -21
  1477. package/esm/content/List/__snapshots__/index.spec.tsx.snap +0 -7
  1478. package/esm/content/List/__stories__/BulletList.js +0 -12
  1479. package/esm/content/List/__stories__/Default.js +0 -11
  1480. package/esm/content/List/__stories__/HorizontalList.js +0 -13
  1481. package/esm/content/List/__stories__/NestedBulletList.js +0 -20
  1482. package/esm/content/List/__stories__/NumberedList.js +0 -12
  1483. package/esm/content/List/__stories__/WithExtraSpace.js +0 -12
  1484. package/esm/content/List/index.js +0 -7
  1485. package/esm/content/List/index.mdx +0 -30
  1486. package/esm/content/List/index.spec.js +0 -8
  1487. package/esm/content/StepNav/StepNav.stories.js +0 -11
  1488. package/esm/content/StepNav/StepNav.stories.playwright.json +0 -33
  1489. package/esm/content/StepNav/__stories__/Default.js +0 -178
  1490. package/esm/content/StepNav/__stories__/Dense.js +0 -180
  1491. package/esm/content/StepNav/__stories__/WithHints.js +0 -189
  1492. package/esm/content/StepNav/index.js +0 -13
  1493. package/esm/content/StepNav/index.mdx +0 -21
  1494. package/esm/content/SummaryList/SummaryList.stories.js +0 -15
  1495. package/esm/content/SummaryList/SummaryList.stories.playwright.json +0 -27
  1496. package/esm/content/SummaryList/__snapshots__/index.spec.tsx.snap +0 -97
  1497. package/esm/content/SummaryList/__stories__/Default.js +0 -17
  1498. package/esm/content/SummaryList/__stories__/RowVariations.js +0 -37
  1499. package/esm/content/SummaryList/__stories__/WithActions.js +0 -20
  1500. package/esm/content/SummaryList/__stories__/WithKeyAndAction.js +0 -20
  1501. package/esm/content/SummaryList/__stories__/WithoutActions.js +0 -9
  1502. package/esm/content/SummaryList/__stories__/WithoutBorders.js +0 -19
  1503. package/esm/content/SummaryList/index.mdx +0 -34
  1504. package/esm/content/SummaryList/index.spec.js +0 -9
  1505. package/esm/content/Table/Table.stories.js +0 -27
  1506. package/esm/content/Table/Table.stories.playwright.json +0 -37
  1507. package/esm/content/Table/__stories__/DarkVariant.js +0 -47
  1508. package/esm/content/Table/__stories__/DarkVariantWithVerticalHeaders.js +0 -47
  1509. package/esm/content/Table/__stories__/Default.js +0 -41
  1510. package/esm/content/Table/__stories__/DefinedWidth.js +0 -43
  1511. package/esm/content/Table/__stories__/Densed.js +0 -104
  1512. package/esm/content/Table/__stories__/Full.js +0 -91
  1513. package/esm/content/Table/__stories__/MultipleProps.js +0 -71
  1514. package/esm/content/Table/__stories__/NoData.js +0 -11
  1515. package/esm/content/Table/__stories__/NumericDataType.js +0 -61
  1516. package/esm/content/Table/__stories__/RowColors.js +0 -60
  1517. package/esm/content/Table/__stories__/Stacked.js +0 -43
  1518. package/esm/content/Table/__stories__/TableCaptions.js +0 -17
  1519. package/esm/content/Table/__stories__/VerticalBorders.js +0 -47
  1520. package/esm/content/Table/__stories__/VerticalHeaders.js +0 -41
  1521. package/esm/content/Table/__stories__/WithFloatingScroll.js +0 -72
  1522. package/esm/content/Table/__stories__/WithLoader.js +0 -71
  1523. package/esm/content/Table/__stories__/WithSortFilters.js +0 -104
  1524. package/esm/content/Table/__stories__/ZebraProp.js +0 -47
  1525. package/esm/content/Table/index.js +0 -103
  1526. package/esm/content/Table/index.mdx +0 -76
  1527. package/esm/content/TaskList/TaskList.stories.js +0 -9
  1528. package/esm/content/TaskList/__stories__/Default.js +0 -74
  1529. package/esm/content/TaskList/__stories__/Dense.js +0 -76
  1530. package/esm/content/TaskList/index.mdx +0 -21
  1531. package/esm/content/Timeline/Timeline.stories.js +0 -9
  1532. package/esm/content/Timeline/__stories__/Default.js +0 -122
  1533. package/esm/content/Timeline/__stories__/Dense.js +0 -124
  1534. package/esm/content/Timeline/index.mdx +0 -23
  1535. package/esm/content/index.js +0 -12
  1536. package/esm/feedback/CopyToClipboard/CopyToClipboard.stories.js +0 -9
  1537. package/esm/feedback/CopyToClipboard/CopyToClipboard.stories.playwright.json +0 -53
  1538. package/esm/feedback/CopyToClipboard/__stories__/Banner.js +0 -16
  1539. package/esm/feedback/CopyToClipboard/__stories__/Default.js +0 -19
  1540. package/esm/feedback/CopyToClipboard/__stories__/Dense.js +0 -20
  1541. package/esm/feedback/CopyToClipboard/index.js +0 -53
  1542. package/esm/feedback/CopyToClipboard/index.mdx +0 -22
  1543. package/esm/feedback/ErrorSummary/ErrorSummary.stories.js +0 -14
  1544. package/esm/feedback/ErrorSummary/ErrorSummary.stories.playwright.json +0 -27
  1545. package/esm/feedback/ErrorSummary/__snapshots__/index.spec.tsx.snap +0 -7
  1546. package/esm/feedback/ErrorSummary/__stories__/Default.js +0 -13
  1547. package/esm/feedback/ErrorSummary/__stories__/Dense.js +0 -15
  1548. package/esm/feedback/ErrorSummary/__stories__/LinkedToCheckbox.js +0 -30
  1549. package/esm/feedback/ErrorSummary/__stories__/LinkedToField.js +0 -31
  1550. package/esm/feedback/ErrorSummary/__stories__/LinkedToInput.js +0 -30
  1551. package/esm/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.js +0 -35
  1552. package/esm/feedback/ErrorSummary/index.mdx +0 -40
  1553. package/esm/feedback/ErrorSummary/index.spec.js +0 -8
  1554. package/esm/feedback/NotificationBanner/NotificationBanner.stories.js +0 -12
  1555. package/esm/feedback/NotificationBanner/NotificationBanner.stories.playwright.json +0 -49
  1556. package/esm/feedback/NotificationBanner/__snapshots__/index.spec.tsx.snap +0 -23
  1557. package/esm/feedback/NotificationBanner/__stories__/Default.js +0 -12
  1558. package/esm/feedback/NotificationBanner/__stories__/Dense.js +0 -13
  1559. package/esm/feedback/NotificationBanner/__stories__/Success.js +0 -13
  1560. package/esm/feedback/NotificationBanner/index.mdx +0 -30
  1561. package/esm/feedback/NotificationBanner/index.spec.js +0 -19
  1562. package/esm/feedback/PhaseBanner/PhaseBanner.stories.js +0 -10
  1563. package/esm/feedback/PhaseBanner/PhaseBanner.stories.playwright.json +0 -21
  1564. package/esm/feedback/PhaseBanner/__stories__/Default.js +0 -12
  1565. package/esm/feedback/PhaseBanner/__stories__/Underlined.js +0 -14
  1566. package/esm/feedback/PhaseBanner/index.mdx +0 -26
  1567. package/esm/feedback/ServiceBadge/index.js +0 -19
  1568. package/esm/feedback/ServiceBadge/index.mdx +0 -47
  1569. package/esm/feedback/WarningText/WarningText.stories.js +0 -11
  1570. package/esm/feedback/WarningText/__snapshots__/index.spec.tsx.snap +0 -7
  1571. package/esm/feedback/WarningText/__stories__/AssistiveText.js +0 -11
  1572. package/esm/feedback/WarningText/__stories__/Default.js +0 -9
  1573. package/esm/feedback/WarningText/__stories__/Dense.js +0 -11
  1574. package/esm/feedback/WarningText/index.mdx +0 -21
  1575. package/esm/feedback/WarningText/index.spec.js +0 -8
  1576. package/esm/feedback/index.js +0 -6
  1577. package/esm/form/AutoComplete/AutoComplete.stories.js +0 -14
  1578. package/esm/form/AutoComplete/__stories__/Default.js +0 -16
  1579. package/esm/form/AutoComplete/__stories__/WithAutoSelect.js +0 -30
  1580. package/esm/form/AutoComplete/__stories__/WithDefaultValue.js +0 -17
  1581. package/esm/form/AutoComplete/__stories__/WithInLine.js +0 -17
  1582. package/esm/form/AutoComplete/__stories__/WithMinLength.js +0 -18
  1583. package/esm/form/AutoComplete/__stories__/WithPlaceHolder.js +0 -17
  1584. package/esm/form/AutoComplete/__stories__/WithShowAllValues.js +0 -17
  1585. package/esm/form/AutoComplete/index.js +0 -653
  1586. package/esm/form/AutoComplete/index.mdx +0 -49
  1587. package/esm/form/Button/BackButton.js +0 -21
  1588. package/esm/form/Button/Button.stories.js +0 -21
  1589. package/esm/form/Button/Button.stories.playwright.json +0 -115
  1590. package/esm/form/Button/Icon.js +0 -7
  1591. package/esm/form/Button/__snapshots__/index.spec.tsx.snap +0 -17
  1592. package/esm/form/Button/__stories__/Back.js +0 -13
  1593. package/esm/form/Button/__stories__/ButtonLinkButton.js +0 -17
  1594. package/esm/form/Button/__stories__/CallToActionButton.js +0 -14
  1595. package/esm/form/Button/__stories__/Dense.js +0 -12
  1596. package/esm/form/Button/__stories__/Disabled.js +0 -13
  1597. package/esm/form/Button/__stories__/GroupingButtons.js +0 -11
  1598. package/esm/form/Button/__stories__/GroupingButtonsAndLinks.js +0 -12
  1599. package/esm/form/Button/__stories__/Primary.js +0 -11
  1600. package/esm/form/Button/__stories__/Secondary.js +0 -12
  1601. package/esm/form/Button/__stories__/ThemeToggle.js +0 -9
  1602. package/esm/form/Button/__stories__/Warning.js +0 -12
  1603. package/esm/form/Button/__stories__/WithVariantLink.js +0 -12
  1604. package/esm/form/Button/index.js +0 -20
  1605. package/esm/form/Button/index.mdx +0 -97
  1606. package/esm/form/Button/index.spec.js +0 -9
  1607. package/esm/form/Checkbox/Checkbox.stories.js +0 -18
  1608. package/esm/form/Checkbox/Checkbox.stories.playwright.json +0 -55
  1609. package/esm/form/Checkbox/__stories__/ConditionalReveal.js +0 -26
  1610. package/esm/form/Checkbox/__stories__/Default.js +0 -24
  1611. package/esm/form/Checkbox/__stories__/Dense.js +0 -26
  1612. package/esm/form/Checkbox/__stories__/Inline.js +0 -23
  1613. package/esm/form/Checkbox/__stories__/InlineWithDivider.js +0 -24
  1614. package/esm/form/Checkbox/__stories__/MultipleQuestions.js +0 -26
  1615. package/esm/form/Checkbox/__stories__/NoneAnswer.js +0 -20
  1616. package/esm/form/Checkbox/__stories__/NoneAnswerWithError.js +0 -26
  1617. package/esm/form/Checkbox/__stories__/WithErrorMessage.js +0 -27
  1618. package/esm/form/Checkbox/__stories__/WithHint.js +0 -27
  1619. package/esm/form/Checkbox/index.mdx +0 -57
  1620. package/esm/form/DateInputContainer/DateInputContainer.stories.js +0 -13
  1621. package/esm/form/DateInputContainer/DateInputContainer.stories.playwright.json +0 -61
  1622. package/esm/form/DateInputContainer/__stories__/Default.js +0 -24
  1623. package/esm/form/DateInputContainer/__stories__/Dense.js +0 -23
  1624. package/esm/form/DateInputContainer/__stories__/MultipleQuestions.js +0 -24
  1625. package/esm/form/DateInputContainer/__stories__/WithErrorMessage.js +0 -35
  1626. package/esm/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +0 -32
  1627. package/esm/form/DateInputContainer/index.mdx +0 -33
  1628. package/esm/form/ErrorMessage/ErrorMessage.stories.js +0 -11
  1629. package/esm/form/ErrorMessage/__stories__/DateInputError.js +0 -24
  1630. package/esm/form/ErrorMessage/__stories__/Default.js +0 -32
  1631. package/esm/form/ErrorMessage/__stories__/ErrorMessageOnly.js +0 -12
  1632. package/esm/form/ErrorMessage/index.mdx +0 -21
  1633. package/esm/form/FileUpload/FileUpload.stories.js +0 -9
  1634. package/esm/form/FileUpload/__stories__/Default.js +0 -17
  1635. package/esm/form/FileUpload/__stories__/WithErrorMessage.js +0 -21
  1636. package/esm/form/FileUpload/index.mdx +0 -24
  1637. package/esm/form/RadioContainer/RadioContainer.stories.js +0 -18
  1638. package/esm/form/RadioContainer/RadioContainer.stories.playwright.json +0 -49
  1639. package/esm/form/RadioContainer/__stories__/ConditionalReveal.js +0 -26
  1640. package/esm/form/RadioContainer/__stories__/Default.js +0 -22
  1641. package/esm/form/RadioContainer/__stories__/Dense.js +0 -24
  1642. package/esm/form/RadioContainer/__stories__/Inline.js +0 -23
  1643. package/esm/form/RadioContainer/__stories__/InlineWithDivider.js +0 -24
  1644. package/esm/form/RadioContainer/__stories__/MultipleQuestions.js +0 -26
  1645. package/esm/form/RadioContainer/__stories__/NoneAnswer.js +0 -24
  1646. package/esm/form/RadioContainer/__stories__/WithErrorMessage.js +0 -29
  1647. package/esm/form/RadioContainer/__stories__/WithHints.js +0 -29
  1648. package/esm/form/RadioContainer/__stories__/WithMediumLegend.js +0 -24
  1649. package/esm/form/RadioContainer/index.mdx +0 -68
  1650. package/esm/form/SelectContainer/SelectContainer.stories.js +0 -12
  1651. package/esm/form/SelectContainer/SelectContainer.stories.playwright.json +0 -21
  1652. package/esm/form/SelectContainer/__stories__/Default.js +0 -22
  1653. package/esm/form/SelectContainer/__stories__/Dense.js +0 -23
  1654. package/esm/form/SelectContainer/__stories__/DisabledInput.js +0 -24
  1655. package/esm/form/SelectContainer/__stories__/WithHint.js +0 -26
  1656. package/esm/form/SelectContainer/index.mdx +0 -36
  1657. package/esm/form/SingleCharacterInputs/SingleCharacterInput.stories.js +0 -12
  1658. package/esm/form/SingleCharacterInputs/__stories__/Default.js +0 -35
  1659. package/esm/form/SingleCharacterInputs/__stories__/WithDefaultError.js +0 -39
  1660. package/esm/form/SingleCharacterInputs/__stories__/WithErrorMessageInvalidCode.js +0 -49
  1661. package/esm/form/SingleCharacterInputs/__stories__/WithErrorMessageLessDigit.js +0 -43
  1662. package/esm/form/SingleCharacterInputs/index.mdx +0 -24
  1663. package/esm/form/TextArea/TextArea.stories.js +0 -16
  1664. package/esm/form/TextArea/TextArea.stories.playwright.json +0 -59
  1665. package/esm/form/TextArea/__stories__/Default.js +0 -16
  1666. package/esm/form/TextArea/__stories__/Dense.js +0 -14
  1667. package/esm/form/TextArea/__stories__/DisabledInput.js +0 -21
  1668. package/esm/form/TextArea/__stories__/LimitedCharacters.js +0 -24
  1669. package/esm/form/TextArea/__stories__/MultipleQuestions.js +0 -17
  1670. package/esm/form/TextArea/__stories__/WithDeclaredRows.js +0 -21
  1671. package/esm/form/TextArea/__stories__/WithErrorMessage.js +0 -27
  1672. package/esm/form/TextArea/__stories__/WithHint.js +0 -20
  1673. package/esm/form/TextArea/index.mdx +0 -48
  1674. package/esm/form/TextInput/TextInput.stories.js +0 -17
  1675. package/esm/form/TextInput/TextInput.stories.playwright.json +0 -43
  1676. package/esm/form/TextInput/__stories__/AskingForNumbers.js +0 -22
  1677. package/esm/form/TextInput/__stories__/Default.js +0 -16
  1678. package/esm/form/TextInput/__stories__/Dense.js +0 -14
  1679. package/esm/form/TextInput/__stories__/DisabledInput.js +0 -21
  1680. package/esm/form/TextInput/__stories__/FixedWidths.js +0 -42
  1681. package/esm/form/TextInput/__stories__/FluidWidths.js +0 -42
  1682. package/esm/form/TextInput/__stories__/MultipleQuestions.js +0 -13
  1683. package/esm/form/TextInput/__stories__/WithErrorMessage.js +0 -27
  1684. package/esm/form/TextInput/__stories__/WithHint.js +0 -20
  1685. package/esm/form/TextInput/index.mdx +0 -60
  1686. package/esm/form/index.js +0 -15
  1687. package/esm/govgr/Footer/Copyright.js +0 -39
  1688. package/esm/govgr/Footer/LicenseCCSA.js +0 -18
  1689. package/esm/govgr/Footer/index.js +0 -21
  1690. package/esm/govgr/Footer/index.mdx +0 -101
  1691. package/esm/govgr/GovGRLogo/govgr-logo.svg +0 -1
  1692. package/esm/govgr/images/index.js +0 -5
  1693. package/esm/govgr/index.js +0 -5
  1694. package/esm/i18n/I18nText.js +0 -79
  1695. package/esm/i18n/index.js +0 -54
  1696. package/esm/icons/index.js +0 -2
  1697. package/esm/index.js +0 -16
  1698. package/esm/introduction.md +0 -11
  1699. package/esm/layouts/Basic/Basic.stories.js +0 -11
  1700. package/esm/layouts/Basic/Bottom/index.mdx +0 -41
  1701. package/esm/layouts/Basic/Content/index.js +0 -20
  1702. package/esm/layouts/Basic/Content/index.mdx +0 -49
  1703. package/esm/layouts/Basic/Main/index.mdx +0 -55
  1704. package/esm/layouts/Basic/Masthead/index.mdx +0 -62
  1705. package/esm/layouts/Basic/Side/index.js +0 -8
  1706. package/esm/layouts/Basic/Side/index.mdx +0 -56
  1707. package/esm/layouts/Basic/Top/index.mdx +0 -63
  1708. package/esm/layouts/Basic/__snapshots__/index.spec.tsx.snap +0 -89
  1709. package/esm/layouts/Basic/__stories__/Default.js +0 -12
  1710. package/esm/layouts/Basic/__stories__/MultipleRowsLayout.js +0 -15
  1711. package/esm/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +0 -15
  1712. package/esm/layouts/Basic/index.js +0 -11
  1713. package/esm/layouts/Basic/index.mdx +0 -40
  1714. package/esm/layouts/Basic/index.spec.js +0 -10
  1715. package/esm/layouts/Divider/Divider.stories.js +0 -8
  1716. package/esm/layouts/Divider/__stories__/Default.js +0 -21
  1717. package/esm/layouts/Divider/index.js +0 -9
  1718. package/esm/layouts/Grid/Grid.stories.js +0 -9
  1719. package/esm/layouts/Grid/__stories__/Default.js +0 -75
  1720. package/esm/layouts/Grid/__stories__/Inline.js +0 -76
  1721. package/esm/layouts/Grid/__stories__/ResponsiveSpacing.js +0 -79
  1722. package/esm/layouts/Stack/Stack.stories.js +0 -12
  1723. package/esm/layouts/Stack/__stories__/AlignItems.js +0 -67
  1724. package/esm/layouts/Stack/__stories__/Default.js +0 -24
  1725. package/esm/layouts/Stack/__stories__/JustifyContent.js +0 -84
  1726. package/esm/layouts/Stack/__stories__/NoWrap.js +0 -26
  1727. package/esm/layouts/Stack/__stories__/Row.js +0 -25
  1728. package/esm/layouts/Stack/__stories__/Spacing.js +0 -55
  1729. package/esm/layouts/index.js +0 -13
  1730. package/esm/navigation/BackLink/BackLink.stories.js +0 -7
  1731. package/esm/navigation/BackLink/BackLink.stories.playwright.json +0 -21
  1732. package/esm/navigation/BackLink/__stories__/Default.js +0 -12
  1733. package/esm/navigation/BackLink/index.mdx +0 -20
  1734. package/esm/navigation/Breadcrumbs/Breadcrumbs.stories.js +0 -9
  1735. package/esm/navigation/Breadcrumbs/Breadcrumbs.stories.playwright.json +0 -33
  1736. package/esm/navigation/Breadcrumbs/__stories__/Default.js +0 -21
  1737. package/esm/navigation/Breadcrumbs/index.mdx +0 -27
  1738. package/esm/navigation/Drawer/Drawer.stories.js +0 -9
  1739. package/esm/navigation/Drawer/__stories__/Default.js +0 -86
  1740. package/esm/navigation/Drawer/index.js +0 -4
  1741. package/esm/navigation/Drawer/index.mdx +0 -16
  1742. package/esm/navigation/Dropdown/Dropdown.stories.js +0 -12
  1743. package/esm/navigation/Dropdown/Dropdown.stories.playwright.json +0 -53
  1744. package/esm/navigation/Dropdown/__stories__/AlignRight.js +0 -56
  1745. package/esm/navigation/Dropdown/__stories__/Default.js +0 -48
  1746. package/esm/navigation/Dropdown/__stories__/PlacementTop.js +0 -61
  1747. package/esm/navigation/Dropdown/index.mdx +0 -31
  1748. package/esm/navigation/Link/Link.stories.js +0 -13
  1749. package/esm/navigation/Link/Link.stories.playwright.json +0 -65
  1750. package/esm/navigation/Link/__snapshots__/index.spec.tsx.snap +0 -38
  1751. package/esm/navigation/Link/__stories__/DarkBackground.js +0 -19
  1752. package/esm/navigation/Link/__stories__/DarkBackgroundNoUnderline.js +0 -20
  1753. package/esm/navigation/Link/__stories__/Default.js +0 -13
  1754. package/esm/navigation/Link/__stories__/ExternalLink.js +0 -14
  1755. package/esm/navigation/Link/__stories__/NoUnderline.js +0 -14
  1756. package/esm/navigation/Link/__stories__/OpensInNewTab.js +0 -13
  1757. package/esm/navigation/Link/index.mdx +0 -40
  1758. package/esm/navigation/Link/index.spec.js +0 -21
  1759. package/esm/navigation/NavList/NavList.stories.js +0 -16
  1760. package/esm/navigation/NavList/NavList.stories.playwright.json +0 -53
  1761. package/esm/navigation/NavList/NavListAuto/index.js +0 -48
  1762. package/esm/navigation/NavList/__snapshots__/index.spec.tsx.snap +0 -7
  1763. package/esm/navigation/NavList/__stories__/Default.js +0 -29
  1764. package/esm/navigation/NavList/__stories__/HorizontalWithDrawer.js +0 -67
  1765. package/esm/navigation/NavList/__stories__/HorizontalWithoutDrawer.js +0 -41
  1766. package/esm/navigation/NavList/__stories__/NavLinksOneLevel.json +0 -17
  1767. package/esm/navigation/NavList/__stories__/NavLinksWithSubmenu.json +0 -36
  1768. package/esm/navigation/NavList/__stories__/NavListWithoutNav.js +0 -19
  1769. package/esm/navigation/NavList/__stories__/UsingHeaderButton.js +0 -70
  1770. package/esm/navigation/NavList/__stories__/UsingNavListAuto.js +0 -38
  1771. package/esm/navigation/NavList/__stories__/Vertical.js +0 -32
  1772. package/esm/navigation/NavList/__stories__/VerticalWithoutDrawer.js +0 -44
  1773. package/esm/navigation/NavList/hooks/useNavList.js +0 -39
  1774. package/esm/navigation/NavList/index.js +0 -17
  1775. package/esm/navigation/NavList/index.mdx +0 -34
  1776. package/esm/navigation/NavList/index.spec.js +0 -8
  1777. package/esm/navigation/Pagination/Pagination.stories.js +0 -13
  1778. package/esm/navigation/Pagination/Pagination.stories.playwright.json +0 -27
  1779. package/esm/navigation/Pagination/__stories__/Default.js +0 -67
  1780. package/esm/navigation/Pagination/__stories__/PaginationSmall.js +0 -35
  1781. package/esm/navigation/Pagination/__stories__/PaginationWithSmallFont.js +0 -44
  1782. package/esm/navigation/Pagination/__stories__/WithInactiveValues.js +0 -69
  1783. package/esm/navigation/Pagination/__stories__/WithResultsPerPage.js +0 -40
  1784. package/esm/navigation/Pagination/index.js +0 -23
  1785. package/esm/navigation/Pagination/index.mdx +0 -28
  1786. package/esm/navigation/SkipLink/SkipLink.stories.js +0 -8
  1787. package/esm/navigation/SkipLink/__stories__/Default.js +0 -12
  1788. package/esm/navigation/Tabs/Tabs.stories.js +0 -10
  1789. package/esm/navigation/Tabs/Tabs.stories.playwright.json +0 -27
  1790. package/esm/navigation/Tabs/__stories__/Default.js +0 -44
  1791. package/esm/navigation/Tabs/index.js +0 -55
  1792. package/esm/navigation/Tabs/index.mdx +0 -24
  1793. package/esm/navigation/index.js +0 -9
  1794. package/esm/registry.js +0 -496
  1795. package/esm/typography/Caption/index.js +0 -8
  1796. package/esm/typography/Heading/Heading.stories.js +0 -7
  1797. package/esm/typography/Heading/__stories__/Default.js +0 -29
  1798. package/esm/typography/Heading/index.mdx +0 -16
  1799. package/esm/typography/HeadingCaption/HeadingCaption.stories.js +0 -8
  1800. package/esm/typography/HeadingCaption/__stories__/Default.js +0 -35
  1801. package/esm/typography/HeadingCaption/__stories__/NestedToTitle.js +0 -15
  1802. package/esm/typography/HeadingCaption/index.mdx +0 -18
  1803. package/esm/typography/Hint/Hint.stories.js +0 -8
  1804. package/esm/typography/Hint/__stories__/Default.js +0 -9
  1805. package/esm/typography/Hint/__stories__/FontSizes.js +0 -21
  1806. package/esm/typography/Hint/index.mdx +0 -20
  1807. package/esm/typography/NormalText/NormalText.stories.js +0 -10
  1808. package/esm/typography/NormalText/__stories__/Default.js +0 -9
  1809. package/esm/typography/NormalText/__stories__/FontSizes.js +0 -60
  1810. package/esm/typography/NormalText/__stories__/FontWeight.js +0 -20
  1811. package/esm/typography/NormalText/__stories__/Variants.js +0 -20
  1812. package/esm/typography/NormalText/index.mdx +0 -30
  1813. package/esm/typography/Paragraph/Paragraph.stories.js +0 -11
  1814. package/esm/typography/Paragraph/__stories__/Default.js +0 -9
  1815. package/esm/typography/Paragraph/__stories__/FontSizes.js +0 -35
  1816. package/esm/typography/Paragraph/__stories__/FontWeight.js +0 -15
  1817. package/esm/typography/Paragraph/__stories__/LeadVariant.js +0 -11
  1818. package/esm/typography/Paragraph/__stories__/SmallVariant.js +0 -11
  1819. package/esm/typography/Paragraph/index.mdx +0 -33
  1820. package/esm/typography/Title/index.js +0 -42
  1821. package/esm/typography/index.js +0 -5
  1822. package/esm/utils/Base/index.js +0 -3
  1823. package/esm/utils/Kitchensink/AllComponents.js +0 -11
  1824. package/esm/utils/Kitchensink/KitchensinkByCategory.js +0 -38
  1825. package/esm/utils/Kitchensink/KitchensinkByLetter.js +0 -19
  1826. package/esm/utils/Kitchensink/KitchensinkComponent.js +0 -46
  1827. package/esm/utils/Kitchensink/KitchensinkDashboard.js +0 -49
  1828. package/esm/utils/VisuallyHidden/VisuallyHidden.stories.js +0 -7
  1829. package/esm/utils/VisuallyHidden/__stories__/Default.js +0 -16
  1830. package/esm/utils/VisuallyHidden/index.mdx +0 -19
  1831. package/esm/utils/hooks/useDebounce.js +0 -41
  1832. package/esm/utils/index.js +0 -3
  1833. package/src/app/AccessibilityMenu/index.tsx +0 -66
  1834. /package/{esm/api/APIErrors.js → api/APIErrors.mjs} +0 -0
  1835. /package/{esm/api/APIProvider.js → api/APIProvider.mjs} +0 -0
  1836. /package/{esm/app/App.js → app/App.mjs} +0 -0
  1837. /package/{esm/app/BannerContainer/index.js → app/BannerContainer/index.mjs} +0 -0
  1838. /package/{esm/app/BottomInfo/index.js → app/BottomInfo/index.mjs} +0 -0
  1839. /package/{esm/app/CloseButton/index.js → app/CloseButton/index.mjs} +0 -0
  1840. /package/{esm/app/FilterContainer/index.js → app/FilterContainer/index.mjs} +0 -0
  1841. /package/{esm/app/Footer/index.js → app/Footer/index.mjs} +0 -0
  1842. /package/{esm/app/Header/HeaderContent.js → app/Header/HeaderContent.mjs} +0 -0
  1843. /package/{esm/app/Header/HeaderLogo.js → app/Header/HeaderLogo.mjs} +0 -0
  1844. /package/{esm/app/Header/HeaderNavMenuContent.js → app/Header/HeaderNavMenuContent.mjs} +0 -0
  1845. /package/{esm/app/Header/HeaderSecondaryLogo.js → app/Header/HeaderSecondaryLogo.mjs} +0 -0
  1846. /package/{esm/app/Header/HeaderSection.js → app/Header/HeaderSection.mjs} +0 -0
  1847. /package/{esm/app/Header/HeaderTitle.js → app/Header/HeaderTitle.mjs} +0 -0
  1848. /package/{esm/app/Loader/index.js → app/Loader/index.mjs} +0 -0
  1849. /package/{esm/app/Masthead/index.js → app/Masthead/index.mjs} +0 -0
  1850. /package/{esm/app/OutdatedBrowserBanner/hooks/evaluateBrowserVersion.js → app/OutdatedBrowserBanner/hooks/evaluateBrowserVersion.mjs} +0 -0
  1851. /package/{esm/app/PageTitleContainer/index.js → app/PageTitleContainer/index.mjs} +0 -0
  1852. /package/{esm/app/Panel/index.js → app/Panel/index.mjs} +0 -0
  1853. /package/{esm/app/PhaseBannerHeader/index.js → app/PhaseBannerHeader/index.mjs} +0 -0
  1854. /package/{esm/app/QrCodeScanner/index.js → app/QrCodeScanner/index.mjs} +0 -0
  1855. /package/{esm/app/QrCodeViewer/qrcodegen.js → app/QrCodeViewer/qrcodegen.mjs} +0 -0
  1856. /package/{esm/app/QrCodeViewer/types.js → app/QrCodeViewer/types.mjs} +0 -0
  1857. /package/{esm/app/QrCodeViewer/utils.js → app/QrCodeViewer/utils.mjs} +0 -0
  1858. /package/{esm/app/hooks/useHighlightLinks.js → app/hooks/useHighlightLinks.mjs} +0 -0
  1859. /package/{esm/app/hooks/useTheme.js → app/hooks/useTheme.mjs} +0 -0
  1860. /package/{esm/app/hooks/useVariantVars.js → app/hooks/useVariantVars.mjs} +0 -0
  1861. /package/{esm/content/Blockquote/index.js → content/Blockquote/index.mjs} +0 -0
  1862. /package/{esm/content/Card/index.js → content/Card/index.mjs} +0 -0
  1863. /package/{esm/content/Chip/index.js → content/Chip/index.mjs} +0 -0
  1864. /package/{esm/content/Details/index.js → content/Details/index.mjs} +0 -0
  1865. /package/{esm/content/FillableText/index.js → content/FillableText/index.mjs} +0 -0
  1866. /package/{esm/content/List/List.js → content/List/List.mjs} +0 -0
  1867. /package/{esm/content/List/ListItem.js → content/List/ListItem.mjs} +0 -0
  1868. /package/{esm/content/SummaryList/index.js → content/SummaryList/index.mjs} +0 -0
  1869. /package/{esm/content/Table/TableFloatingScroll.js → content/Table/TableFloatingScroll.mjs} +0 -0
  1870. /package/{esm/content/Table/hooks/useSort.js → content/Table/hooks/useSort.mjs} +0 -0
  1871. /package/{esm/content/TaskList/index.js → content/TaskList/index.mjs} +0 -0
  1872. /package/{esm/content/Timeline/index.js → content/Timeline/index.mjs} +0 -0
  1873. /package/{esm/custom.d.js → custom.d.mjs} +0 -0
  1874. /package/{esm/feedback/ErrorSummary/index.js → feedback/ErrorSummary/index.mjs} +0 -0
  1875. /package/{esm/feedback/NotificationBanner/index.js → feedback/NotificationBanner/index.mjs} +0 -0
  1876. /package/{esm/feedback/PhaseBanner/index.js → feedback/PhaseBanner/index.mjs} +0 -0
  1877. /package/{esm/feedback/WarningText/index.js → feedback/WarningText/index.mjs} +0 -0
  1878. /package/{esm/form/AutoComplete/Status/index.js → form/AutoComplete/Status/index.mjs} +0 -0
  1879. /package/{esm/form/AutoComplete/__stories__/utils.js → form/AutoComplete/__stories__/utils.mjs} +0 -0
  1880. /package/{esm/form/AutoComplete/utils.js → form/AutoComplete/utils.mjs} +0 -0
  1881. /package/{esm/form/Button/ButtonLink.js → form/Button/ButtonLink.mjs} +0 -0
  1882. /package/{esm/form/Button/CallToAction.js → form/Button/CallToAction.mjs} +0 -0
  1883. /package/{esm/form/Button/ThemeToggleButton.js → form/Button/ThemeToggleButton.mjs} +0 -0
  1884. /package/{esm/form/Checkbox/index.js → form/Checkbox/index.mjs} +0 -0
  1885. /package/{esm/form/DateInputContainer/index.js → form/DateInputContainer/index.mjs} +0 -0
  1886. /package/{esm/form/ErrorMessage/index.js → form/ErrorMessage/index.mjs} +0 -0
  1887. /package/{esm/form/FieldContainer/index.js → form/FieldContainer/index.mjs} +0 -0
  1888. /package/{esm/form/FileUpload/index.js → form/FileUpload/index.mjs} +0 -0
  1889. /package/{esm/form/Form/index.js → form/Form/index.mjs} +0 -0
  1890. /package/{esm/form/LabelContainer/index.js → form/LabelContainer/index.mjs} +0 -0
  1891. /package/{esm/form/RadioContainer/index.js → form/RadioContainer/index.mjs} +0 -0
  1892. /package/{esm/form/SearchContainer/index.js → form/SearchContainer/index.mjs} +0 -0
  1893. /package/{esm/form/SelectContainer/index.js → form/SelectContainer/index.mjs} +0 -0
  1894. /package/{esm/form/SingleCharacterInputs/index.js → form/SingleCharacterInputs/index.mjs} +0 -0
  1895. /package/{esm/form/TextArea/index.js → form/TextArea/index.mjs} +0 -0
  1896. /package/{esm/form/TextInput/index.js → form/TextInput/index.mjs} +0 -0
  1897. /package/{esm/govgr/Footer/HellenicRepublicLogo.js → govgr/Footer/HellenicRepublicLogo.mjs} +0 -0
  1898. /package/{esm/govgr/Footer/logo.js → govgr/Footer/logo.mjs} +0 -0
  1899. /package/{esm/govgr/Footer/logos/logo-el.js → govgr/Footer/logos/logo-el.mjs} +0 -0
  1900. /package/{esm/govgr/Footer/logos/logo-en.js → govgr/Footer/logos/logo-en.mjs} +0 -0
  1901. /package/{esm/govgr/GovGRLogo/index.js → govgr/GovGRLogo/index.mjs} +0 -0
  1902. /package/{esm/govgr/GovGRLogo/logo.js → govgr/GovGRLogo/logo.mjs} +0 -0
  1903. /package/{esm/govgr/images/govgr-logo-base64.js → govgr/images/govgr-logo-base64.mjs} +0 -0
  1904. /package/{esm/govgr/images/govgr-logo-blue-base64.js → govgr/images/govgr-logo-blue-base64.mjs} +0 -0
  1905. /package/{esm/govgr/images/greek-government-base64.js → govgr/images/greek-government-base64.mjs} +0 -0
  1906. /package/{esm/govgr/images/grnet-logo-base64.js → govgr/images/grnet-logo-base64.mjs} +0 -0
  1907. /package/{esm/govgr/images/minedu-logo-base64.js → govgr/images/minedu-logo-base64.mjs} +0 -0
  1908. /package/{esm/govgr/images/minedu-logo-black-base64.js → govgr/images/minedu-logo-black-base64.mjs} +0 -0
  1909. /package/{esm/i18n/locales/el.js → i18n/locales/el.mjs} +0 -0
  1910. /package/{esm/i18n/locales/en.js → i18n/locales/en.mjs} +0 -0
  1911. /package/{esm/icons/Icon/index.js → icons/Icon/index.mjs} +0 -0
  1912. /package/{esm/icons/ImageLogo/index.js → icons/ImageLogo/index.mjs} +0 -0
  1913. /package/{esm/icons/ImageLogoSet/index.js → icons/ImageLogoSet/index.mjs} +0 -0
  1914. /package/{esm/layouts/Admin/index.js → layouts/Admin/index.mjs} +0 -0
  1915. /package/{esm/layouts/Basic/Aside/index.js → layouts/Basic/Aside/index.mjs} +0 -0
  1916. /package/{esm/layouts/Basic/Bottom/index.js → layouts/Basic/Bottom/index.mjs} +0 -0
  1917. /package/{esm/layouts/Basic/Container/index.js → layouts/Basic/Container/index.mjs} +0 -0
  1918. /package/{esm/layouts/Basic/Main/index.js → layouts/Basic/Main/index.mjs} +0 -0
  1919. /package/{esm/layouts/Basic/Masthead/index.js → layouts/Basic/Masthead/index.mjs} +0 -0
  1920. /package/{esm/layouts/Basic/Top/index.js → layouts/Basic/Top/index.mjs} +0 -0
  1921. /package/{esm/layouts/Grid/index.js → layouts/Grid/index.mjs} +0 -0
  1922. /package/{esm/layouts/Hidden/index.js → layouts/Hidden/index.mjs} +0 -0
  1923. /package/{esm/layouts/Section/index.js → layouts/Section/index.mjs} +0 -0
  1924. /package/{esm/layouts/SectionBreak/index.js → layouts/SectionBreak/index.mjs} +0 -0
  1925. /package/{esm/layouts/Stack/index.js → layouts/Stack/index.mjs} +0 -0
  1926. /package/{esm/misc/KitchenSink/index.js → misc/KitchenSink/index.mjs} +0 -0
  1927. /package/{esm/navigation/BackLink/index.js → navigation/BackLink/index.mjs} +0 -0
  1928. /package/{esm/navigation/Breadcrumbs/index.js → navigation/Breadcrumbs/index.mjs} +0 -0
  1929. /package/{esm/navigation/Dropdown/index.js → navigation/Dropdown/index.mjs} +0 -0
  1930. /package/{esm/navigation/Link/index.js → navigation/Link/index.mjs} +0 -0
  1931. /package/{esm/navigation/NavList/Nav.js → navigation/NavList/Nav.mjs} +0 -0
  1932. /package/{esm/navigation/NavList/NavList.js → navigation/NavList/NavList.mjs} +0 -0
  1933. /package/{esm/navigation/NavList/NavMenuContentList.js → navigation/NavList/NavMenuContentList.mjs} +0 -0
  1934. /package/{esm/navigation/NavList/hooks/useTogglableNav.js → navigation/NavList/hooks/useTogglableNav.mjs} +0 -0
  1935. /package/{esm/navigation/NavList/types.js → navigation/NavList/types.mjs} +0 -0
  1936. /package/{esm/navigation/SkipLink/index.js → navigation/SkipLink/index.mjs} +0 -0
  1937. /package/{esm/test-utils/delay.js → test-utils/delay.mjs} +0 -0
  1938. /package/{esm/typography/Heading/index.js → typography/Heading/index.mjs} +0 -0
  1939. /package/{esm/typography/HeadingCaption/index.js → typography/HeadingCaption/index.mjs} +0 -0
  1940. /package/{esm/typography/Hint/index.js → typography/Hint/index.mjs} +0 -0
  1941. /package/{esm/typography/NormalText/index.js → typography/NormalText/index.mjs} +0 -0
  1942. /package/{esm/typography/Paragraph/index.js → typography/Paragraph/index.mjs} +0 -0
  1943. /package/{esm/utils/SvgIcon/index.js → utils/SvgIcon/index.mjs} +0 -0
  1944. /package/{esm/utils/Typography/index.js → utils/Typography/index.mjs} +0 -0
  1945. /package/{esm/utils/VisuallyHidden/index.js → utils/VisuallyHidden/index.mjs} +0 -0
  1946. /package/{esm/utils/hooks/useKeypress.js → utils/hooks/useKeypress.mjs} +0 -0
  1947. /package/{esm/utils/hooks/useLatest.js → utils/hooks/useLatest.mjs} +0 -0
  1948. /package/{esm/utils/hooks/useSearch.js → utils/hooks/useSearch.mjs} +0 -0
  1949. /package/{esm/utils/hooks/useTogglableTab.js → utils/hooks/useTogglableTab.mjs} +0 -0
  1950. /package/{esm/utils/withDeprecation.js → utils/withDeprecation.mjs} +0 -0
@@ -0,0 +1,548 @@
1
+ import _typeof from "@babel/runtime/helpers/typeof";
2
+ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
3
+ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
4
+ import _extends from "@babel/runtime/helpers/extends";
5
+
6
+ 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; }
7
+
8
+ /* eslint-disable @typescript-eslint/explicit-function-return-type */
9
+ import React, { Suspense, useEffect } from 'react';
10
+ import { render, fireEvent } from '@testing-library/react';
11
+ import fetchMock from 'fetch-mock';
12
+ import fetchAPI from "./fetchAPI";
13
+ import { APIProvider, useResource, useResourceAction, useResourceMany, APIErrors } from "./index";
14
+ import delay from "../test-utils/delay";
15
+ import 'whatwg-fetch';
16
+
17
+ var _ref2 = /*#__PURE__*/React.createElement("span", null, "something went wrong");
18
+
19
+ var HandleError = function HandleError(_ref) {
20
+ var error = _ref.error;
21
+
22
+ if (error.name === 'APIError') {
23
+ error = error.error;
24
+
25
+ if (error.status === 404) {
26
+ return /*#__PURE__*/React.createElement(React.Fragment, null, "Not found");
27
+ }
28
+ } // TODO: render the <SomethingWentWrong /> page here
29
+
30
+
31
+ return _ref2;
32
+ };
33
+
34
+ var makeWrapper = function makeWrapper(_ref3) {
35
+ var config = _ref3.config,
36
+ token = _ref3.token;
37
+ return function (_ref4) {
38
+ var children = _ref4.children;
39
+ return /*#__PURE__*/React.createElement(Suspense, {
40
+ fallback: 'Loading'
41
+ }, /*#__PURE__*/React.createElement(APIErrors, {
42
+ fallback: HandleError
43
+ }, /*#__PURE__*/React.createElement(APIProvider, {
44
+ config: config,
45
+ token: token
46
+ }, children)));
47
+ };
48
+ };
49
+
50
+ var BASE_URL = 'http://test/api';
51
+ var TOKEN = 'mytoken';
52
+ var DELAY = 100;
53
+
54
+ var buildMockOptions = function buildMockOptions(_ref5) {
55
+ var resource = _ref5.resource,
56
+ _ref5$method = _ref5.method,
57
+ method = _ref5$method === void 0 ? 'GET' : _ref5$method,
58
+ _ref5$authenticated = _ref5.authenticated,
59
+ authenticated = _ref5$authenticated === void 0 ? true : _ref5$authenticated,
60
+ _ref5$query = _ref5.query,
61
+ query = _ref5$query === void 0 ? {} : _ref5$query,
62
+ response = _ref5.response,
63
+ _ref5$delay = _ref5.delay,
64
+ delay = _ref5$delay === void 0 ? DELAY / 2 : _ref5$delay;
65
+ var headers = {
66
+ 'content-type': 'application/json'
67
+ };
68
+ var options = {
69
+ delay: delay
70
+ };
71
+
72
+ if (authenticated) {
73
+ headers.Authorization = "Token ".concat(TOKEN);
74
+ }
75
+
76
+ var params = new URLSearchParams(query).toString();
77
+ return ["".concat(BASE_URL, "/").concat(resource).concat(params && "?".concat(params)), response, _extends({
78
+ headers: headers,
79
+ method: method
80
+ }, options)];
81
+ };
82
+
83
+ var getAPI = function getAPI() {
84
+ return {
85
+ config: {
86
+ baseURL: BASE_URL
87
+ },
88
+ token: TOKEN
89
+ };
90
+ };
91
+
92
+ var wrapper = makeWrapper(getAPI());
93
+ describe('fetchAPI', function () {
94
+ fetchMock.config.overwriteRoutes = true;
95
+ afterAll(function () {
96
+ fetchMock.restore();
97
+ });
98
+ beforeEach(fetchMock.resetBehavior);
99
+ beforeEach(fetchMock.resetHistory);
100
+ it('fetchAPI gets', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
101
+ var resource, path, _yield$fetchAPI, data;
102
+
103
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
104
+ while (1) {
105
+ switch (_context.prev = _context.next) {
106
+ case 0:
107
+ resource = 'resource';
108
+ path = 'some_id';
109
+ fetchMock.mock.apply(fetchMock, _toConsumableArray(buildMockOptions({
110
+ resource: "".concat(resource, "/").concat(path, "/"),
111
+ response: {
112
+ value: 'SWR'
113
+ }
114
+ })));
115
+ _context.next = 5;
116
+ return fetchAPI(resource, {
117
+ path: path
118
+ }, getAPI());
119
+
120
+ case 5:
121
+ _yield$fetchAPI = _context.sent;
122
+ data = _yield$fetchAPI.data;
123
+ expect(data.value).toBe('SWR');
124
+ expect(fetchMock.calls()).toHaveLength(1);
125
+
126
+ case 9:
127
+ case "end":
128
+ return _context.stop();
129
+ }
130
+ }
131
+ }, _callee);
132
+ })));
133
+ });
134
+ describe('useResource', function () {
135
+ fetchMock.config.overwriteRoutes = true;
136
+ afterAll(function () {
137
+ fetchMock.restore();
138
+ });
139
+ beforeEach(fetchMock.resetBehavior);
140
+ beforeEach(fetchMock.resetHistory);
141
+ it('useResource should return data', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
142
+ var resource, Page, _render, container, _container$firstChild, _container$firstChild2;
143
+
144
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
145
+ while (1) {
146
+ switch (_context2.prev = _context2.next) {
147
+ case 0:
148
+ Page = function _Page() {
149
+ var _useResource = useResource(resource),
150
+ data = _useResource.data;
151
+
152
+ return /*#__PURE__*/React.createElement("div", null, "hello, ", data === null || data === void 0 ? void 0 : data.value);
153
+ };
154
+
155
+ resource = 'resource';
156
+ fetchMock.mock.apply(fetchMock, _toConsumableArray(buildMockOptions({
157
+ resource: resource,
158
+ response: {
159
+ value: 'SWR'
160
+ }
161
+ })));
162
+ _render = render( /*#__PURE__*/React.createElement(Page, null), {
163
+ wrapper: wrapper
164
+ }), container = _render.container;
165
+ expect(container.firstChild).not.toBe(null);
166
+
167
+ if (!container.firstChild) {
168
+ _context2.next = 10;
169
+ break;
170
+ }
171
+
172
+ expect(container === null || container === void 0 ? void 0 : (_container$firstChild = container.firstChild) === null || _container$firstChild === void 0 ? void 0 : _container$firstChild.textContent).toMatchInlineSnapshot("\"hello, \"");
173
+ _context2.next = 9;
174
+ return delay(DELAY);
175
+
176
+ case 9:
177
+ expect(container === null || container === void 0 ? void 0 : (_container$firstChild2 = container.firstChild) === null || _container$firstChild2 === void 0 ? void 0 : _container$firstChild2.textContent).toMatchInlineSnapshot("\"hello, SWR\"");
178
+
179
+ case 10:
180
+ expect(fetchMock.calls()).toHaveLength(1);
181
+
182
+ case 11:
183
+ case "end":
184
+ return _context2.stop();
185
+ }
186
+ }
187
+ }, _callee2);
188
+ })));
189
+ it('should run duplicate request once', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
190
+ var _container$firstChild3, _container$firstChild4;
191
+
192
+ var resource, Page, _render2, container;
193
+
194
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
195
+ while (1) {
196
+ switch (_context3.prev = _context3.next) {
197
+ case 0:
198
+ Page = function _Page2() {
199
+ useResource(resource);
200
+
201
+ var _useResource2 = useResource(resource),
202
+ duplData = _useResource2.data;
203
+
204
+ return /*#__PURE__*/React.createElement("div", null, "hello, ", duplData === null || duplData === void 0 ? void 0 : duplData.value);
205
+ };
206
+
207
+ resource = 'dupliresource';
208
+ fetchMock.mock.apply(fetchMock, _toConsumableArray(buildMockOptions({
209
+ resource: resource,
210
+ response: {
211
+ value: 'myvalue'
212
+ }
213
+ })));
214
+ _render2 = render( /*#__PURE__*/React.createElement(Page, null), {
215
+ wrapper: wrapper
216
+ }), container = _render2.container;
217
+ expect(container.firstChild).not.toBe(null);
218
+ expect(container === null || container === void 0 ? void 0 : (_container$firstChild3 = container.firstChild) === null || _container$firstChild3 === void 0 ? void 0 : _container$firstChild3.textContent).toMatchInlineSnapshot("\"hello, \"");
219
+ _context3.next = 8;
220
+ return delay(DELAY);
221
+
222
+ case 8:
223
+ expect(container === null || container === void 0 ? void 0 : (_container$firstChild4 = container.firstChild) === null || _container$firstChild4 === void 0 ? void 0 : _container$firstChild4.textContent).toMatchInlineSnapshot("\"hello, myvalue\"");
224
+ expect(fetchMock.calls()).toHaveLength(1);
225
+
226
+ case 10:
227
+ case "end":
228
+ return _context3.stop();
229
+ }
230
+ }
231
+ }, _callee3);
232
+ })));
233
+ });
234
+ describe('useResourceAction', function () {
235
+ fetchMock.config.overwriteRoutes = true;
236
+ afterAll(function () {
237
+ fetchMock.restore();
238
+ });
239
+ beforeEach(fetchMock.resetBehavior);
240
+ beforeEach(fetchMock.resetHistory);
241
+ it('useResourceAction should return result ', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
242
+ var _container$firstChild5, _container$firstChild6;
243
+
244
+ var resource, Page, _render3, container;
245
+
246
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
247
+ while (1) {
248
+ switch (_context4.prev = _context4.next) {
249
+ case 0:
250
+ Page = function _Page3() {
251
+ var _useResourceAction = useResourceAction(resource, undefined, 'POST', {
252
+ some: 'data'
253
+ }, undefined),
254
+ data = _useResourceAction.data,
255
+ fetch = _useResourceAction.fetch;
256
+
257
+ useEffect(function () {
258
+ fetch();
259
+ }, []);
260
+ return /*#__PURE__*/React.createElement("div", null, "hello, ", data && data.value);
261
+ };
262
+
263
+ resource = 'resourceaction';
264
+ fetchMock.mock.apply(fetchMock, _toConsumableArray(buildMockOptions({
265
+ resource: resource,
266
+ response: {
267
+ value: 'myvalue'
268
+ },
269
+ method: 'POST'
270
+ })));
271
+ _render3 = render( /*#__PURE__*/React.createElement(Page, null), {
272
+ wrapper: wrapper
273
+ }), container = _render3.container;
274
+ expect(container.firstChild).not.toBe(null);
275
+ expect(container === null || container === void 0 ? void 0 : (_container$firstChild5 = container.firstChild) === null || _container$firstChild5 === void 0 ? void 0 : _container$firstChild5.textContent).toMatchInlineSnapshot("\"hello, \"");
276
+ _context4.next = 8;
277
+ return delay(DELAY * 2);
278
+
279
+ case 8:
280
+ expect(container === null || container === void 0 ? void 0 : (_container$firstChild6 = container.firstChild) === null || _container$firstChild6 === void 0 ? void 0 : _container$firstChild6.textContent).toMatchInlineSnapshot("\"hello, myvalue\"");
281
+ expect(fetchMock.calls()).toHaveLength(1);
282
+
283
+ case 10:
284
+ case "end":
285
+ return _context4.stop();
286
+ }
287
+ }
288
+ }, _callee4);
289
+ })));
290
+ it('useResourceAction should be invalidated and run twice', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
291
+ var _container$firstChild7, _container$firstChild8, _container$firstChild9, _container$firstChild10;
292
+
293
+ var resource, Page, _render4, container;
294
+
295
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
296
+ while (1) {
297
+ switch (_context5.prev = _context5.next) {
298
+ case 0:
299
+ Page = function _Page4() {
300
+ var _useResourceAction2 = useResourceAction(resource, undefined, 'POST', {
301
+ some: 'data'
302
+ }, undefined),
303
+ data = _useResourceAction2.data,
304
+ fetch = _useResourceAction2.fetch,
305
+ invalidate = _useResourceAction2.invalidate;
306
+
307
+ useEffect(function () {
308
+ fetch();
309
+ }, []);
310
+ useEffect(function () {
311
+ setTimeout(function () {
312
+ invalidate();
313
+ }, DELAY * 2);
314
+ setTimeout(function () {
315
+ fetch();
316
+ }, DELAY * 3);
317
+ }, []);
318
+ return /*#__PURE__*/React.createElement("div", null, "hello, ", data && data.value);
319
+ };
320
+
321
+ resource = 'resourceactiondouble';
322
+ fetchMock.mock.apply(fetchMock, _toConsumableArray(buildMockOptions({
323
+ resource: resource,
324
+ response: {
325
+ value: 'myvalue'
326
+ },
327
+ method: 'POST'
328
+ })));
329
+ _render4 = render( /*#__PURE__*/React.createElement(Page, null), {
330
+ wrapper: wrapper
331
+ }), container = _render4.container;
332
+ expect(container.firstChild).not.toBe(null);
333
+ expect(container === null || container === void 0 ? void 0 : (_container$firstChild7 = container.firstChild) === null || _container$firstChild7 === void 0 ? void 0 : _container$firstChild7.textContent).toMatchInlineSnapshot("\"hello, \"");
334
+ _context5.next = 8;
335
+ return delay(DELAY);
336
+
337
+ case 8:
338
+ expect(container === null || container === void 0 ? void 0 : (_container$firstChild8 = container.firstChild) === null || _container$firstChild8 === void 0 ? void 0 : _container$firstChild8.textContent).toMatchInlineSnapshot("\"hello, myvalue\"");
339
+ _context5.next = 11;
340
+ return delay(DELAY);
341
+
342
+ case 11:
343
+ expect(container === null || container === void 0 ? void 0 : (_container$firstChild9 = container.firstChild) === null || _container$firstChild9 === void 0 ? void 0 : _container$firstChild9.textContent).toMatchInlineSnapshot("\"hello, \"");
344
+ _context5.next = 14;
345
+ return delay(DELAY * 2);
346
+
347
+ case 14:
348
+ expect(container === null || container === void 0 ? void 0 : (_container$firstChild10 = container.firstChild) === null || _container$firstChild10 === void 0 ? void 0 : _container$firstChild10.textContent).toMatchInlineSnapshot("\"hello, myvalue\"");
349
+ expect(fetchMock.calls()).toHaveLength(2);
350
+
351
+ case 16:
352
+ case "end":
353
+ return _context5.stop();
354
+ }
355
+ }
356
+ }, _callee5);
357
+ })));
358
+ });
359
+ describe('useResourceMany', function () {
360
+ fetchMock.config.overwriteRoutes = true;
361
+ afterAll(function () {
362
+ fetchMock.restore();
363
+ });
364
+ beforeEach(fetchMock.resetBehavior);
365
+ beforeEach(fetchMock.resetHistory); //check this test again (loading/hello)
366
+
367
+ it('useResourceMany should return data', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
368
+ var _container$firstChild11, _container$firstChild12;
369
+
370
+ var resource, Page, _render5, container;
371
+
372
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
373
+ while (1) {
374
+ switch (_context6.prev = _context6.next) {
375
+ case 0:
376
+ Page = function _Page5() {
377
+ var _useResourceMany = useResourceMany(resource),
378
+ data = _useResourceMany.data;
379
+
380
+ return /*#__PURE__*/React.createElement("div", null, "hello, ", data && data.join(''));
381
+ };
382
+
383
+ resource = 'resourceMany';
384
+ fetchMock.mock.apply(fetchMock, _toConsumableArray(buildMockOptions({
385
+ resource: resource,
386
+ query: {
387
+ offset: 0,
388
+ limit: 30
389
+ },
390
+ response: {
391
+ data: ['S', 'W', 'R'],
392
+ meta: {
393
+ total: 1,
394
+ count: 3
395
+ }
396
+ }
397
+ })));
398
+ _render5 = render( /*#__PURE__*/React.createElement(Page, null), {
399
+ wrapper: wrapper
400
+ }), container = _render5.container;
401
+ expect(container.firstChild).not.toBe(null);
402
+ expect(container === null || container === void 0 ? void 0 : (_container$firstChild11 = container.firstChild) === null || _container$firstChild11 === void 0 ? void 0 : _container$firstChild11.textContent).toMatchInlineSnapshot("\"Loading\"");
403
+ _context6.next = 8;
404
+ return delay(DELAY * 2);
405
+
406
+ case 8:
407
+ expect(container === null || container === void 0 ? void 0 : (_container$firstChild12 = container.firstChild) === null || _container$firstChild12 === void 0 ? void 0 : _container$firstChild12.textContent).toMatchInlineSnapshot("\"hello, SWR\"");
408
+ expect(fetchMock.calls()).toHaveLength(1);
409
+
410
+ case 10:
411
+ case "end":
412
+ return _context6.stop();
413
+ }
414
+ }
415
+ }, _callee6);
416
+ })));
417
+ it('useResourceMany should handle hasNext, hasPrevious', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
418
+ var _container$firstChild13, _container$firstChild14;
419
+
420
+ var resource, Page, _render6, container;
421
+
422
+ return _regeneratorRuntime().wrap(function _callee7$(_context7) {
423
+ while (1) {
424
+ switch (_context7.prev = _context7.next) {
425
+ case 0:
426
+ Page = function _Page6() {
427
+ var _useResourceMany2 = useResourceMany(resource),
428
+ hasNext = _useResourceMany2.hasNext,
429
+ hasPrevious = _useResourceMany2.hasPrevious;
430
+
431
+ return /*#__PURE__*/React.createElement("div", null, hasNext ? '' : 'no', " next,", hasPrevious ? '' : 'no', " previous");
432
+ };
433
+
434
+ resource = 'resourceManyhasNext';
435
+ fetchMock.mock.apply(fetchMock, _toConsumableArray(buildMockOptions({
436
+ resource: resource,
437
+ query: {
438
+ offset: 0,
439
+ limit: 30
440
+ },
441
+ response: {
442
+ data: ['S', 'W', 'R'],
443
+ meta: {
444
+ total: 1,
445
+ count: 3
446
+ }
447
+ }
448
+ })));
449
+ _render6 = render( /*#__PURE__*/React.createElement(Page, null), {
450
+ wrapper: wrapper
451
+ }), container = _render6.container;
452
+ expect(container.firstChild).not.toBe(null);
453
+ expect(container === null || container === void 0 ? void 0 : (_container$firstChild13 = container.firstChild) === null || _container$firstChild13 === void 0 ? void 0 : _container$firstChild13.textContent).toMatchInlineSnapshot("\"Loading\"");
454
+ _context7.next = 8;
455
+ return delay(DELAY);
456
+
457
+ case 8:
458
+ expect(container === null || container === void 0 ? void 0 : (_container$firstChild14 = container.firstChild) === null || _container$firstChild14 === void 0 ? void 0 : _container$firstChild14.textContent).toMatchInlineSnapshot("\"no next,no previous\"");
459
+ expect(fetchMock.calls()).toHaveLength(1);
460
+
461
+ case 10:
462
+ case "end":
463
+ return _context7.stop();
464
+ }
465
+ }
466
+ }, _callee7);
467
+ })));
468
+ it('useResourceMany should handle setPage with custom limit option', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
469
+ var _container$firstChild15, _container$firstChild16, _container$firstChild17;
470
+
471
+ var resource, Page, _render7, container, getByText;
472
+
473
+ return _regeneratorRuntime().wrap(function _callee8$(_context8) {
474
+ while (1) {
475
+ switch (_context8.prev = _context8.next) {
476
+ case 0:
477
+ Page = function _Page7() {
478
+ var _useResourceMany3 = useResourceMany(resource, {
479
+ limit: 10
480
+ }),
481
+ data = _useResourceMany3.data,
482
+ setPage = _useResourceMany3.setPage,
483
+ page = _useResourceMany3.page;
484
+
485
+ var nextPage = function nextPage() {
486
+ setPage(page + 1);
487
+ };
488
+
489
+ return /*#__PURE__*/React.createElement("div", null, "hello, ", data.join(''), /*#__PURE__*/React.createElement("button", {
490
+ onClick: nextPage
491
+ }, "next"));
492
+ };
493
+
494
+ resource = 'resourceManysetpage';
495
+ fetchMock.mock.apply(fetchMock, _toConsumableArray(buildMockOptions({
496
+ resource: resource,
497
+ query: {
498
+ offset: 0,
499
+ limit: 10
500
+ },
501
+ response: {
502
+ data: ['S', 'W', 'R'],
503
+ meta: {
504
+ total: 3,
505
+ count: 100
506
+ }
507
+ }
508
+ })));
509
+ fetchMock.mock.apply(fetchMock, _toConsumableArray(buildMockOptions({
510
+ resource: resource,
511
+ query: {
512
+ offset: 10,
513
+ limit: 10
514
+ },
515
+ response: {
516
+ data: ['R', 'W', 'S'],
517
+ meta: {
518
+ total: 3,
519
+ count: 100
520
+ }
521
+ }
522
+ })));
523
+ _render7 = render( /*#__PURE__*/React.createElement(Page, null), {
524
+ wrapper: wrapper
525
+ }), container = _render7.container, getByText = _render7.getByText;
526
+ expect(container.firstChild).not.toBe(null);
527
+ expect(container === null || container === void 0 ? void 0 : (_container$firstChild15 = container.firstChild) === null || _container$firstChild15 === void 0 ? void 0 : _container$firstChild15.textContent).toMatchInlineSnapshot("\"Loading\"");
528
+ _context8.next = 9;
529
+ return delay(DELAY);
530
+
531
+ case 9:
532
+ expect(container === null || container === void 0 ? void 0 : (_container$firstChild16 = container.firstChild) === null || _container$firstChild16 === void 0 ? void 0 : _container$firstChild16.textContent).toMatchInlineSnapshot("\"hello, SWRnext\"");
533
+ fireEvent.click(getByText('next'));
534
+ _context8.next = 13;
535
+ return delay(DELAY * 2);
536
+
537
+ case 13:
538
+ expect(container === null || container === void 0 ? void 0 : (_container$firstChild17 = container.firstChild) === null || _container$firstChild17 === void 0 ? void 0 : _container$firstChild17.textContent).toMatchInlineSnapshot("\"hello, RWSnext\"");
539
+ expect(fetchMock.calls()).toHaveLength(2);
540
+
541
+ case 15:
542
+ case "end":
543
+ return _context8.stop();
544
+ }
545
+ }
546
+ }, _callee8);
547
+ })));
548
+ });
@@ -17,14 +17,14 @@ var _react = require("react");
17
17
 
18
18
  var _reactQuery = require("react-query");
19
19
 
20
- var _api = require("@digigov/ui/api");
20
+ var _ = require("./");
21
21
 
22
- var _utils = require("@digigov/ui/api/utils");
22
+ var _utils = require("./utils");
23
23
 
24
24
  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; }
25
25
 
26
26
  function useResource(resource, id, query, options, suspense) {
27
- var _useAPI = (0, _api.useAPI)(),
27
+ var _useAPI = (0, _.useAPI)(),
28
28
  baseURL = _useAPI.config.baseURL,
29
29
  token = _useAPI.token;
30
30