@digigov/ui 1.0.0-8ae63a77 → 1.0.0-8b33e4c8

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 (2548) hide show
  1. package/api/APIErrors.js +23 -44
  2. package/api/APIProvider.js +6 -24
  3. package/api/fetchAPI.js +9 -23
  4. package/api/index.js +11 -102
  5. package/api/index.spec.js +97 -132
  6. package/api/package.json +6 -0
  7. package/api/useResource.js +16 -31
  8. package/api/useResourceAction.js +20 -35
  9. package/api/useResourceQuery.js +35 -56
  10. package/api/utils.js +13 -29
  11. package/app/App.js +5 -21
  12. package/app/BannerContainer/BannerContainer.stories.js +4 -29
  13. package/app/BannerContainer/__stories__/CookiesBanner.js +13 -37
  14. package/app/BannerContainer/index.js +3 -19
  15. package/app/BannerContainer/package.json +6 -0
  16. package/app/BottomInfo/index.js +5 -49
  17. package/app/BottomInfo/package.json +6 -0
  18. package/app/CloseButton/index.js +3 -30
  19. package/app/CloseButton/package.json +6 -0
  20. package/app/FilterContainer/index.js +11 -142
  21. package/app/FilterContainer/package.json +6 -0
  22. package/app/Footer/Footer.stories.js +10 -113
  23. package/app/Footer/__stories__/Default.js +5 -18
  24. package/app/Footer/__stories__/DefaultCopyright.js +11 -27
  25. package/app/Footer/__stories__/FooterAllInclusive.js +37 -57
  26. package/app/Footer/__stories__/FooterWithLink.js +17 -34
  27. package/app/Footer/__stories__/FooterWithLogo.js +20 -39
  28. package/app/Footer/__stories__/FooterWithSecondaryNavigation.js +27 -45
  29. package/app/Footer/__stories__/YearCopyright.js +14 -30
  30. package/app/Footer/index.js +15 -198
  31. package/app/Footer/package.json +6 -0
  32. package/app/Header/Header.stories.js +8 -84
  33. package/app/Header/Header.stories.playwright.json +1 -1
  34. package/app/Header/HeaderContent.js +3 -19
  35. package/app/Header/HeaderLogo.js +3 -30
  36. package/app/Header/HeaderNavMenuContent.js +3 -19
  37. package/app/Header/HeaderSecondaryLogo.js +3 -19
  38. package/app/Header/HeaderSection.js +3 -30
  39. package/app/Header/HeaderTitle.js +3 -30
  40. package/app/Header/__snapshots__/index.spec.tsx.snap +7 -4
  41. package/app/Header/__stories__/Default.js +8 -24
  42. package/app/Header/__stories__/WithHeaderNavigation.js +27 -53
  43. package/app/Header/__stories__/WithNavigation.js +35 -31
  44. package/app/Header/__stories__/WithServiceName.js +11 -28
  45. package/app/Header/__stories__/WithServiceNameAndLogo.js +15 -34
  46. package/app/Header/index.js +9 -114
  47. package/app/Header/index.spec.js +10 -20
  48. package/app/Header/package.json +6 -0
  49. package/app/Loader/Loader.stories.js +4 -28
  50. package/app/Loader/__stories__/Default.js +5 -18
  51. package/app/Loader/index.js +5 -58
  52. package/app/Loader/package.json +6 -0
  53. package/app/Masthead/Masthead.stories.js +6 -56
  54. package/app/Masthead/__stories__/Default.js +10 -27
  55. package/app/Masthead/__stories__/WithElements.js +15 -35
  56. package/app/Masthead/__stories__/WithLogo.js +13 -31
  57. package/app/Masthead/index.js +5 -58
  58. package/app/Masthead/package.json +6 -0
  59. package/app/Modal/Modal.stories.d.ts +3 -0
  60. package/app/Modal/Modal.stories.js +8 -42
  61. package/app/Modal/Modal.stories.playwright.json +53 -0
  62. package/app/Modal/__stories__/AlertDialog.js +16 -38
  63. package/app/Modal/__stories__/Auto.d.ts +2 -0
  64. package/app/Modal/__stories__/Auto.js +47 -0
  65. package/app/Modal/__stories__/Default.js +19 -43
  66. package/app/Modal/__stories__/Dense.d.ts +2 -0
  67. package/app/Modal/__stories__/Dense.js +43 -0
  68. package/app/Modal/__stories__/WithHooks.d.ts +2 -0
  69. package/app/Modal/__stories__/WithHooks.js +34 -0
  70. package/app/Modal/auto.d.ts +21 -0
  71. package/app/Modal/auto.js +69 -0
  72. package/app/Modal/hooks.d.ts +26 -0
  73. package/app/Modal/hooks.js +68 -0
  74. package/app/Modal/index.d.ts +5 -8
  75. package/app/Modal/index.js +29 -148
  76. package/app/Modal/package.json +6 -0
  77. package/app/NotFound/NotFound.stories.js +4 -28
  78. package/app/NotFound/__stories__/Default.js +5 -18
  79. package/app/NotFound/index.js +9 -26
  80. package/app/NotFound/package.json +6 -0
  81. package/app/OutdatedBrowserBanner/hooks/evaluateBrowserVersion.js +10 -25
  82. package/app/OutdatedBrowserBanner/hooks/useOutdatedBrowserCheck.js +4 -18
  83. package/app/OutdatedBrowserBanner/index.js +18 -53
  84. package/app/OutdatedBrowserBanner/package.json +6 -0
  85. package/app/PageTitleContainer/index.js +5 -58
  86. package/app/PageTitleContainer/package.json +6 -0
  87. package/app/Panel/Panel.stories.js +4 -28
  88. package/app/Panel/__stories__/Default.js +5 -18
  89. package/app/Panel/index.js +5 -58
  90. package/app/Panel/package.json +6 -0
  91. package/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +4 -28
  92. package/app/PhaseBannerHeader/__stories__/Default.js +5 -18
  93. package/app/PhaseBannerHeader/index.js +14 -34
  94. package/app/PhaseBannerHeader/package.json +6 -0
  95. package/app/QrCodeScanner/QrCodeScanner.stories.js +4 -28
  96. package/app/QrCodeScanner/__stories__/Default.js +13 -35
  97. package/app/QrCodeScanner/index.js +9 -33
  98. package/app/QrCodeScanner/index.spec.js +5 -18
  99. package/app/QrCodeScanner/package.json +6 -0
  100. package/app/QrCodeViewer/QRCode.stories.js +5 -43
  101. package/app/QrCodeViewer/__stories__/Custom.js +7 -22
  102. package/app/QrCodeViewer/__stories__/Default.js +5 -18
  103. package/app/QrCodeViewer/index.js +32 -56
  104. package/app/QrCodeViewer/package.json +6 -0
  105. package/app/QrCodeViewer/qrcodegen.js +19 -20
  106. package/app/QrCodeViewer/types.js +1 -5
  107. package/app/QrCodeViewer/utils.js +4 -17
  108. package/app/ThemeOptions/index.js +70 -104
  109. package/app/ThemeOptions/package.json +6 -0
  110. package/app/hooks/useFontSize.js +4 -17
  111. package/app/hooks/useHighlightLinks.js +8 -22
  112. package/app/hooks/useLetterSpacing.js +4 -17
  113. package/app/hooks/useLineHeight.js +4 -17
  114. package/app/hooks/useTheme.js +8 -22
  115. package/app/hooks/useVariantVars.js +6 -17
  116. package/app/index.d.ts +0 -1
  117. package/app/index.js +16 -226
  118. package/app/package.json +6 -0
  119. package/cjs/api/APIErrors.js +117 -0
  120. package/cjs/api/APIProvider.js +43 -0
  121. package/cjs/api/fetchAPI.js +66 -0
  122. package/cjs/api/index.js +104 -0
  123. package/cjs/api/index.spec.js +583 -0
  124. package/cjs/api/useResource.js +146 -0
  125. package/cjs/api/useResourceAction.js +159 -0
  126. package/cjs/api/useResourceQuery.js +232 -0
  127. package/cjs/api/utils.js +252 -0
  128. package/cjs/app/App.js +30 -0
  129. package/cjs/app/BannerContainer/BannerContainer.stories.js +35 -0
  130. package/cjs/app/BannerContainer/__stories__/CookiesBanner.js +42 -0
  131. package/cjs/app/BannerContainer/index.js +19 -0
  132. package/cjs/app/BottomInfo/index.js +49 -0
  133. package/cjs/app/CloseButton/index.js +30 -0
  134. package/cjs/app/FilterContainer/index.js +142 -0
  135. package/cjs/app/Footer/Footer.stories.js +120 -0
  136. package/cjs/app/Footer/__stories__/Default.js +22 -0
  137. package/cjs/app/Footer/__stories__/DefaultCopyright.js +35 -0
  138. package/cjs/app/Footer/__stories__/FooterAllInclusive.js +89 -0
  139. package/cjs/app/Footer/__stories__/FooterWithLink.js +49 -0
  140. package/cjs/app/Footer/__stories__/FooterWithLogo.js +48 -0
  141. package/cjs/app/Footer/__stories__/FooterWithSecondaryNavigation.js +70 -0
  142. package/cjs/app/Footer/__stories__/YearCopyright.js +41 -0
  143. package/cjs/app/Footer/index.js +198 -0
  144. package/cjs/app/Header/Header.stories.js +94 -0
  145. package/cjs/app/Header/Header.stories.playwright.json +49 -0
  146. package/cjs/app/Header/HeaderContent.js +19 -0
  147. package/cjs/app/Header/HeaderLogo.js +30 -0
  148. package/cjs/app/Header/HeaderNavMenuContent.js +19 -0
  149. package/cjs/app/Header/HeaderSecondaryLogo.js +19 -0
  150. package/cjs/app/Header/HeaderSection.js +30 -0
  151. package/cjs/app/Header/HeaderTitle.js +30 -0
  152. package/cjs/app/Header/__snapshots__/index.spec.tsx.snap +55 -0
  153. package/cjs/app/Header/__stories__/Default.js +30 -0
  154. package/cjs/app/Header/__stories__/WithHeaderNavigation.js +60 -0
  155. package/cjs/app/Header/__stories__/WithNavigation.js +84 -0
  156. package/cjs/app/Header/__stories__/WithServiceName.js +32 -0
  157. package/cjs/app/Header/__stories__/WithServiceNameAndLogo.js +39 -0
  158. package/cjs/app/Header/index.js +114 -0
  159. package/cjs/app/Header/index.spec.js +42 -0
  160. package/cjs/app/Loader/Loader.stories.js +31 -0
  161. package/cjs/app/Loader/__stories__/Default.js +22 -0
  162. package/cjs/app/Loader/index.js +58 -0
  163. package/cjs/app/Masthead/Masthead.stories.js +62 -0
  164. package/cjs/app/Masthead/__stories__/Default.js +32 -0
  165. package/cjs/app/Masthead/__stories__/WithElements.js +41 -0
  166. package/cjs/app/Masthead/__stories__/WithLogo.js +37 -0
  167. package/cjs/app/Masthead/index.js +58 -0
  168. package/cjs/app/Modal/Modal.stories.js +89 -0
  169. package/cjs/app/Modal/Modal.stories.playwright.json +53 -0
  170. package/cjs/app/Modal/__stories__/AlertDialog.js +66 -0
  171. package/cjs/app/Modal/__stories__/Auto.js +64 -0
  172. package/cjs/app/Modal/__stories__/Default.js +66 -0
  173. package/cjs/app/Modal/__stories__/Dense.js +67 -0
  174. package/cjs/app/Modal/__stories__/WithHooks.js +52 -0
  175. package/cjs/app/Modal/auto.js +103 -0
  176. package/cjs/app/Modal/hooks.js +88 -0
  177. package/cjs/app/Modal/index.js +164 -0
  178. package/cjs/app/NotFound/NotFound.stories.js +31 -0
  179. package/cjs/app/NotFound/__stories__/Default.js +22 -0
  180. package/cjs/app/NotFound/index.js +29 -0
  181. package/cjs/app/OutdatedBrowserBanner/hooks/evaluateBrowserVersion.js +216 -0
  182. package/cjs/app/OutdatedBrowserBanner/hooks/useOutdatedBrowserCheck.js +61 -0
  183. package/cjs/app/OutdatedBrowserBanner/index.js +60 -0
  184. package/cjs/app/PageTitleContainer/index.js +58 -0
  185. package/cjs/app/Panel/Panel.stories.js +33 -0
  186. package/cjs/app/Panel/__stories__/Default.js +22 -0
  187. package/cjs/app/Panel/index.js +58 -0
  188. package/cjs/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +31 -0
  189. package/cjs/app/PhaseBannerHeader/__stories__/Default.js +25 -0
  190. package/cjs/app/PhaseBannerHeader/index.js +39 -0
  191. package/cjs/app/QrCodeScanner/QrCodeScanner.stories.js +31 -0
  192. package/cjs/app/QrCodeScanner/__stories__/Default.js +74 -0
  193. package/cjs/app/QrCodeScanner/index.js +90 -0
  194. package/cjs/app/QrCodeScanner/index.spec.js +28 -0
  195. package/cjs/app/QrCodeViewer/QRCode.stories.js +47 -0
  196. package/cjs/app/QrCodeViewer/__stories__/Custom.js +37 -0
  197. package/cjs/app/QrCodeViewer/__stories__/Default.js +24 -0
  198. package/cjs/app/QrCodeViewer/index.js +180 -0
  199. package/cjs/app/QrCodeViewer/qrcodegen.js +1086 -0
  200. package/cjs/app/QrCodeViewer/types.js +5 -0
  201. package/cjs/app/QrCodeViewer/utils.js +108 -0
  202. package/cjs/app/ThemeOptions/index.js +289 -0
  203. package/cjs/app/hooks/useFontSize.js +23 -0
  204. package/cjs/app/hooks/useHighlightLinks.js +52 -0
  205. package/cjs/app/hooks/useLetterSpacing.js +23 -0
  206. package/cjs/app/hooks/useLineHeight.js +23 -0
  207. package/cjs/app/hooks/useTheme.js +65 -0
  208. package/cjs/app/hooks/useVariantVars.js +41 -0
  209. package/cjs/app/index.js +213 -0
  210. package/cjs/content/Accordion/Accordion.stories.js +76 -0
  211. package/cjs/content/Accordion/__snapshots__/index.spec.tsx.snap +157 -0
  212. package/cjs/content/Accordion/__stories__/Auto.js +59 -0
  213. package/cjs/content/Accordion/__stories__/Default.js +48 -0
  214. package/cjs/content/Accordion/__stories__/WithHints.js +50 -0
  215. package/cjs/content/Accordion/__stories__/WithHook.js +81 -0
  216. package/cjs/content/Accordion/auto.js +110 -0
  217. package/cjs/content/Accordion/hooks.js +207 -0
  218. package/cjs/content/Accordion/index.js +129 -0
  219. package/cjs/content/Accordion/index.spec.js +33 -0
  220. package/cjs/content/Blockquote/Blockquote.stories.js +47 -0
  221. package/cjs/content/Blockquote/__stories__/Default.js +22 -0
  222. package/cjs/content/Blockquote/__stories__/Dense.js +24 -0
  223. package/cjs/content/Blockquote/index.js +30 -0
  224. package/cjs/content/Blockquote/index.spec.js +21 -0
  225. package/cjs/content/Card/Card.stories.js +174 -0
  226. package/cjs/content/Card/__stories__/Default.js +24 -0
  227. package/cjs/content/Card/__stories__/Dense.js +28 -0
  228. package/cjs/content/Card/__stories__/WithClickableContent.js +28 -0
  229. package/cjs/content/Card/__stories__/WithClickableLink.js +26 -0
  230. package/cjs/content/Card/__stories__/WithDarkBorder.js +27 -0
  231. package/cjs/content/Card/__stories__/WithDarkTopBorder.js +27 -0
  232. package/cjs/content/Card/__stories__/WithDivider.js +26 -0
  233. package/cjs/content/Card/__stories__/WithGrayBorder.js +27 -0
  234. package/cjs/content/Card/__stories__/WithGrayTopBorder.js +27 -0
  235. package/cjs/content/Card/__stories__/WithGroupButton.js +26 -0
  236. package/cjs/content/Card/__stories__/WithLink.js +24 -0
  237. package/cjs/content/Card/index.js +72 -0
  238. package/cjs/content/Chip/Chip.stories.js +88 -0
  239. package/cjs/content/Chip/__stories__/ClickableChip.js +24 -0
  240. package/cjs/content/Chip/__stories__/ClickableDeletableChip.js +27 -0
  241. package/cjs/content/Chip/__stories__/Default.js +22 -0
  242. package/cjs/content/Chip/__stories__/DeletableChip.js +24 -0
  243. package/cjs/content/Chip/__stories__/GroupOfChips.js +28 -0
  244. package/cjs/content/Chip/index.js +72 -0
  245. package/cjs/content/Details/Details.stories.js +33 -0
  246. package/cjs/content/Details/__snapshots__/index.spec.tsx.snap +81 -0
  247. package/cjs/content/Details/__stories__/Default.js +22 -0
  248. package/cjs/content/Details/index.js +58 -0
  249. package/cjs/content/Details/index.spec.js +27 -0
  250. package/cjs/content/FillableText/index.js +44 -0
  251. package/cjs/content/List/List.js +30 -0
  252. package/cjs/content/List/List.stories.js +103 -0
  253. package/cjs/content/List/ListItem.js +19 -0
  254. package/cjs/content/List/ListItemContent.js +27 -0
  255. package/cjs/content/List/ListItemIcon.js +27 -0
  256. package/cjs/content/List/ListItemText.js +29 -0
  257. package/cjs/content/List/ListItemTitle.js +37 -0
  258. package/cjs/content/List/__stories__/BulletList.js +26 -0
  259. package/cjs/content/List/__stories__/Default.js +26 -0
  260. package/cjs/content/List/__stories__/HorizontalList.js +28 -0
  261. package/cjs/content/List/__stories__/NestedBulletList.js +34 -0
  262. package/cjs/content/List/__stories__/NumberedList.js +26 -0
  263. package/cjs/content/List/__stories__/WithExtraSpace.js +26 -0
  264. package/cjs/content/List/index.js +96 -0
  265. package/cjs/content/List/index.spec.js +19 -0
  266. package/cjs/content/StepNav/StepNav.stories.js +90 -0
  267. package/cjs/content/StepNav/__stories__/Auto.js +152 -0
  268. package/cjs/content/StepNav/__stories__/Default.js +202 -0
  269. package/cjs/content/StepNav/__stories__/Dense.js +204 -0
  270. package/cjs/content/StepNav/__stories__/WithHints.js +214 -0
  271. package/cjs/content/StepNav/__stories__/WithHook.js +160 -0
  272. package/cjs/content/StepNav/auto.js +105 -0
  273. package/cjs/content/StepNav/index.js +151 -0
  274. package/cjs/content/SummaryList/SummaryList.stories.js +105 -0
  275. package/cjs/content/SummaryList/__stories__/Default.js +32 -0
  276. package/cjs/content/SummaryList/__stories__/RowVariations.js +52 -0
  277. package/cjs/content/SummaryList/__stories__/WithActions.js +42 -0
  278. package/cjs/content/SummaryList/__stories__/WithKeyAndAction.js +36 -0
  279. package/cjs/content/SummaryList/__stories__/WithoutActions.js +22 -0
  280. package/cjs/content/SummaryList/__stories__/WithoutBorders.js +34 -0
  281. package/cjs/content/SummaryList/index.js +79 -0
  282. package/cjs/content/SummaryList/index.spec.js +19 -0
  283. package/cjs/content/Table/Table.stories.js +273 -0
  284. package/cjs/content/Table/TableFloatingScroll.js +107 -0
  285. package/cjs/content/Table/__stories__/DarkVariant.js +62 -0
  286. package/cjs/content/Table/__stories__/DarkVariantWithVerticalHeaders.js +62 -0
  287. package/cjs/content/Table/__stories__/Default.js +56 -0
  288. package/cjs/content/Table/__stories__/DefinedWidth.js +58 -0
  289. package/cjs/content/Table/__stories__/Densed.js +118 -0
  290. package/cjs/content/Table/__stories__/Full.js +106 -0
  291. package/cjs/content/Table/__stories__/MultipleProps.js +86 -0
  292. package/cjs/content/Table/__stories__/NoData.js +24 -0
  293. package/cjs/content/Table/__stories__/NumericDataType.js +76 -0
  294. package/cjs/content/Table/__stories__/RowColors.js +76 -0
  295. package/cjs/content/Table/__stories__/Stacked.js +58 -0
  296. package/cjs/content/Table/__stories__/TableCaptions.js +30 -0
  297. package/cjs/content/Table/__stories__/VerticalBorders.js +62 -0
  298. package/cjs/content/Table/__stories__/VerticalHeaders.js +56 -0
  299. package/cjs/content/Table/__stories__/WithFloatingScroll.js +95 -0
  300. package/cjs/content/Table/__stories__/WithLoader.js +92 -0
  301. package/cjs/content/Table/__stories__/WithSortFilters.js +119 -0
  302. package/cjs/content/Table/__stories__/ZebraProp.js +62 -0
  303. package/cjs/content/Table/hooks/useSort.js +67 -0
  304. package/cjs/content/Table/index.js +295 -0
  305. package/cjs/content/TaskList/TaskList.stories.js +46 -0
  306. package/cjs/content/TaskList/__stories__/Default.js +91 -0
  307. package/cjs/content/TaskList/__stories__/Dense.js +93 -0
  308. package/cjs/content/TaskList/index.js +86 -0
  309. package/cjs/content/Timeline/Timeline.stories.js +46 -0
  310. package/cjs/content/Timeline/__stories__/Default.js +139 -0
  311. package/cjs/content/Timeline/__stories__/Dense.js +141 -0
  312. package/cjs/content/Timeline/index.js +86 -0
  313. package/cjs/content/index.js +161 -0
  314. package/cjs/custom.d.js +1 -0
  315. package/cjs/feedback/CopyToClipboard/CopyToClipboard.stories.js +59 -0
  316. package/cjs/feedback/CopyToClipboard/CopyToClipboard.stories.playwright.json +53 -0
  317. package/cjs/feedback/CopyToClipboard/__stories__/Banner.js +30 -0
  318. package/cjs/feedback/CopyToClipboard/__stories__/Default.js +36 -0
  319. package/cjs/feedback/CopyToClipboard/__stories__/Dense.js +34 -0
  320. package/cjs/feedback/CopyToClipboard/index.js +91 -0
  321. package/cjs/feedback/ErrorSummary/ErrorSummary.stories.js +103 -0
  322. package/cjs/feedback/ErrorSummary/__stories__/Default.js +28 -0
  323. package/cjs/feedback/ErrorSummary/__stories__/Dense.js +30 -0
  324. package/cjs/feedback/ErrorSummary/__stories__/LinkedToCheckbox.js +50 -0
  325. package/cjs/feedback/ErrorSummary/__stories__/LinkedToField.js +51 -0
  326. package/cjs/feedback/ErrorSummary/__stories__/LinkedToInput.js +50 -0
  327. package/cjs/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.js +57 -0
  328. package/cjs/feedback/ErrorSummary/index.js +30 -0
  329. package/cjs/feedback/ErrorSummary/index.spec.js +19 -0
  330. package/cjs/feedback/NotificationBanner/NotificationBanner.stories.js +62 -0
  331. package/cjs/feedback/NotificationBanner/__stories__/Default.js +26 -0
  332. package/cjs/feedback/NotificationBanner/__stories__/Dense.js +27 -0
  333. package/cjs/feedback/NotificationBanner/__stories__/Success.js +27 -0
  334. package/cjs/feedback/NotificationBanner/index.js +78 -0
  335. package/cjs/feedback/NotificationBanner/index.spec.js +30 -0
  336. package/cjs/feedback/PhaseBanner/PhaseBanner.stories.js +47 -0
  337. package/cjs/feedback/PhaseBanner/__stories__/Default.js +26 -0
  338. package/cjs/feedback/PhaseBanner/__stories__/Underlined.js +28 -0
  339. package/cjs/feedback/PhaseBanner/index.js +72 -0
  340. package/cjs/feedback/ServiceBadge/index.js +35 -0
  341. package/cjs/feedback/WarningText/WarningText.stories.js +61 -0
  342. package/cjs/feedback/WarningText/__stories__/AssistiveText.js +24 -0
  343. package/cjs/feedback/WarningText/__stories__/Default.js +22 -0
  344. package/cjs/feedback/WarningText/__stories__/Dense.js +24 -0
  345. package/cjs/feedback/WarningText/index.js +30 -0
  346. package/cjs/feedback/WarningText/index.spec.js +19 -0
  347. package/cjs/feedback/index.js +83 -0
  348. package/cjs/form/AutoComplete/AutoComplete.stories.js +116 -0
  349. package/cjs/form/AutoComplete/Status/index.js +184 -0
  350. package/cjs/form/AutoComplete/__stories__/Default.js +32 -0
  351. package/cjs/form/AutoComplete/__stories__/WithAutoSelect.js +46 -0
  352. package/cjs/form/AutoComplete/__stories__/WithDefaultValue.js +33 -0
  353. package/cjs/form/AutoComplete/__stories__/WithInLine.js +33 -0
  354. package/cjs/form/AutoComplete/__stories__/WithMinLength.js +35 -0
  355. package/cjs/form/AutoComplete/__stories__/WithPlaceHolder.js +33 -0
  356. package/cjs/form/AutoComplete/__stories__/WithShowAllValues.js +33 -0
  357. package/cjs/form/AutoComplete/__stories__/utils.js +1 -0
  358. package/cjs/form/AutoComplete/index.js +716 -0
  359. package/cjs/form/AutoComplete/utils.js +43 -0
  360. package/cjs/form/Button/BackButton.js +34 -0
  361. package/cjs/form/Button/Button.stories.js +189 -0
  362. package/cjs/form/Button/ButtonLink.js +30 -0
  363. package/cjs/form/Button/CallToAction.js +30 -0
  364. package/cjs/form/Button/Icon.js +19 -0
  365. package/cjs/form/Button/ThemeToggleButton.js +70 -0
  366. package/cjs/form/Button/__stories__/Back.js +26 -0
  367. package/cjs/form/Button/__stories__/ButtonLinkButton.js +30 -0
  368. package/cjs/form/Button/__stories__/CallToActionButton.js +27 -0
  369. package/cjs/form/Button/__stories__/Dense.js +25 -0
  370. package/cjs/form/Button/__stories__/Disabled.js +26 -0
  371. package/cjs/form/Button/__stories__/GroupingButtons.js +24 -0
  372. package/cjs/form/Button/__stories__/GroupingButtonsAndLinks.js +26 -0
  373. package/cjs/form/Button/__stories__/Primary.js +24 -0
  374. package/cjs/form/Button/__stories__/Secondary.js +25 -0
  375. package/cjs/form/Button/__stories__/ThemeToggle.js +22 -0
  376. package/cjs/form/Button/__stories__/Warning.js +25 -0
  377. package/cjs/form/Button/__stories__/WithVariantLink.js +26 -0
  378. package/cjs/form/Button/index.js +132 -0
  379. package/cjs/form/Button/index.spec.js +21 -0
  380. package/cjs/form/Checkbox/Checkbox.stories.js +159 -0
  381. package/cjs/form/Checkbox/__stories__/ConditionalReveal.js +42 -0
  382. package/cjs/form/Checkbox/__stories__/Default.js +39 -0
  383. package/cjs/form/Checkbox/__stories__/Dense.js +41 -0
  384. package/cjs/form/Checkbox/__stories__/Inline.js +38 -0
  385. package/cjs/form/Checkbox/__stories__/InlineWithDivider.js +39 -0
  386. package/cjs/form/Checkbox/__stories__/MultipleQuestions.js +41 -0
  387. package/cjs/form/Checkbox/__stories__/NoneAnswer.js +34 -0
  388. package/cjs/form/Checkbox/__stories__/NoneAnswerWithError.js +42 -0
  389. package/cjs/form/Checkbox/__stories__/WithErrorMessage.js +44 -0
  390. package/cjs/form/Checkbox/__stories__/WithHint.js +42 -0
  391. package/cjs/form/Checkbox/index.js +58 -0
  392. package/cjs/form/DateInputContainer/DateInputContainer.stories.js +89 -0
  393. package/cjs/form/DateInputContainer/__stories__/Default.js +39 -0
  394. package/cjs/form/DateInputContainer/__stories__/Dense.js +37 -0
  395. package/cjs/form/DateInputContainer/__stories__/MultipleQuestions.js +39 -0
  396. package/cjs/form/DateInputContainer/__stories__/WithErrorMessage.js +52 -0
  397. package/cjs/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +49 -0
  398. package/cjs/form/DateInputContainer/index.js +44 -0
  399. package/cjs/form/ErrorMessage/ErrorMessage.stories.js +61 -0
  400. package/cjs/form/ErrorMessage/__stories__/DateInputError.js +41 -0
  401. package/cjs/form/ErrorMessage/__stories__/Default.js +49 -0
  402. package/cjs/form/ErrorMessage/__stories__/ErrorMessageOnly.js +26 -0
  403. package/cjs/form/ErrorMessage/index.js +30 -0
  404. package/cjs/form/FieldContainer/index.js +58 -0
  405. package/cjs/form/FileUpload/FileUpload.stories.js +46 -0
  406. package/cjs/form/FileUpload/__stories__/Default.js +32 -0
  407. package/cjs/form/FileUpload/__stories__/WithErrorMessage.js +38 -0
  408. package/cjs/form/FileUpload/index.js +44 -0
  409. package/cjs/form/Form/index.js +19 -0
  410. package/cjs/form/LabelContainer/index.js +44 -0
  411. package/cjs/form/RadioContainer/RadioContainer.stories.js +159 -0
  412. package/cjs/form/RadioContainer/__stories__/ConditionalReveal.js +42 -0
  413. package/cjs/form/RadioContainer/__stories__/Default.js +36 -0
  414. package/cjs/form/RadioContainer/__stories__/Dense.js +38 -0
  415. package/cjs/form/RadioContainer/__stories__/Inline.js +38 -0
  416. package/cjs/form/RadioContainer/__stories__/InlineWithDivider.js +39 -0
  417. package/cjs/form/RadioContainer/__stories__/MultipleQuestions.js +41 -0
  418. package/cjs/form/RadioContainer/__stories__/NoneAnswer.js +38 -0
  419. package/cjs/form/RadioContainer/__stories__/WithErrorMessage.js +46 -0
  420. package/cjs/form/RadioContainer/__stories__/WithHints.js +44 -0
  421. package/cjs/form/RadioContainer/__stories__/WithMediumLegend.js +38 -0
  422. package/cjs/form/RadioContainer/index.js +58 -0
  423. package/cjs/form/SearchContainer/index.js +58 -0
  424. package/cjs/form/SelectContainer/SelectContainer.stories.js +75 -0
  425. package/cjs/form/SelectContainer/__stories__/Default.js +37 -0
  426. package/cjs/form/SelectContainer/__stories__/Dense.js +38 -0
  427. package/cjs/form/SelectContainer/__stories__/DisabledInput.js +39 -0
  428. package/cjs/form/SelectContainer/__stories__/WithHint.js +42 -0
  429. package/cjs/form/SelectContainer/index.js +44 -0
  430. package/cjs/form/SingleCharacterInputs/SingleCharacterInput.stories.js +75 -0
  431. package/cjs/form/SingleCharacterInputs/__stories__/Default.js +50 -0
  432. package/cjs/form/SingleCharacterInputs/__stories__/WithDefaultError.js +56 -0
  433. package/cjs/form/SingleCharacterInputs/__stories__/WithErrorMessageInvalidCode.js +66 -0
  434. package/cjs/form/SingleCharacterInputs/__stories__/WithErrorMessageLessDigit.js +60 -0
  435. package/cjs/form/SingleCharacterInputs/index.js +44 -0
  436. package/cjs/form/TextArea/TextArea.stories.js +131 -0
  437. package/cjs/form/TextArea/__stories__/Default.js +30 -0
  438. package/cjs/form/TextArea/__stories__/Dense.js +29 -0
  439. package/cjs/form/TextArea/__stories__/DisabledInput.js +36 -0
  440. package/cjs/form/TextArea/__stories__/LimitedCharacters.js +39 -0
  441. package/cjs/form/TextArea/__stories__/MultipleQuestions.js +33 -0
  442. package/cjs/form/TextArea/__stories__/WithDeclaredRows.js +36 -0
  443. package/cjs/form/TextArea/__stories__/WithErrorMessage.js +43 -0
  444. package/cjs/form/TextArea/__stories__/WithHint.js +35 -0
  445. package/cjs/form/TextArea/index.js +30 -0
  446. package/cjs/form/TextInput/TextInput.stories.js +145 -0
  447. package/cjs/form/TextInput/__stories__/AskingForNumbers.js +37 -0
  448. package/cjs/form/TextInput/__stories__/Default.js +30 -0
  449. package/cjs/form/TextInput/__stories__/Dense.js +29 -0
  450. package/cjs/form/TextInput/__stories__/DisabledInput.js +36 -0
  451. package/cjs/form/TextInput/__stories__/FixedWidths.js +56 -0
  452. package/cjs/form/TextInput/__stories__/FluidWidths.js +56 -0
  453. package/cjs/form/TextInput/__stories__/MultipleQuestions.js +28 -0
  454. package/cjs/form/TextInput/__stories__/WithErrorMessage.js +43 -0
  455. package/cjs/form/TextInput/__stories__/WithHint.js +35 -0
  456. package/cjs/form/TextInput/index.js +30 -0
  457. package/cjs/form/index.js +200 -0
  458. package/cjs/govgr/Footer/Copyright.js +66 -0
  459. package/cjs/govgr/Footer/HellenicRepublicLogo.js +19 -0
  460. package/cjs/govgr/Footer/LicenseCCSA.js +33 -0
  461. package/cjs/govgr/Footer/index.js +39 -0
  462. package/cjs/govgr/Footer/logo.js +8 -0
  463. package/cjs/govgr/Footer/logos/logo-el.js +8 -0
  464. package/cjs/govgr/Footer/logos/logo-en.js +8 -0
  465. package/cjs/govgr/GovGRLogo/index.js +19 -0
  466. package/cjs/govgr/GovGRLogo/logo.js +8 -0
  467. package/cjs/govgr/images/govgr-logo-base64.js +8 -0
  468. package/cjs/govgr/images/govgr-logo-blue-base64.js +8 -0
  469. package/cjs/govgr/images/greek-government-base64.js +8 -0
  470. package/cjs/govgr/images/grnet-logo-base64.js +8 -0
  471. package/cjs/govgr/images/index.js +70 -0
  472. package/cjs/govgr/images/minedu-logo-base64.js +8 -0
  473. package/cjs/govgr/images/minedu-logo-black-base64.js +8 -0
  474. package/cjs/govgr/index.js +70 -0
  475. package/cjs/i18n/I18nText.js +93 -0
  476. package/cjs/i18n/index.js +79 -0
  477. package/cjs/i18n/locales/el.js +108 -0
  478. package/cjs/i18n/locales/en.js +103 -0
  479. package/cjs/icons/Icon/index.js +58 -0
  480. package/cjs/icons/ImageLogo/index.js +30 -0
  481. package/cjs/icons/ImageLogoSet/index.js +30 -0
  482. package/cjs/icons/index.js +31 -0
  483. package/cjs/index.js +148 -0
  484. package/cjs/layouts/Admin/index.js +114 -0
  485. package/cjs/layouts/Basic/Aside/index.js +30 -0
  486. package/cjs/layouts/Basic/Basic.stories.js +62 -0
  487. package/cjs/layouts/Basic/Bottom/index.js +30 -0
  488. package/cjs/layouts/Basic/Container/index.js +30 -0
  489. package/cjs/layouts/Basic/Content/index.js +31 -0
  490. package/cjs/layouts/Basic/Main/index.js +30 -0
  491. package/cjs/layouts/Basic/Masthead/index.js +58 -0
  492. package/cjs/layouts/Basic/Side/index.js +20 -0
  493. package/cjs/layouts/Basic/Top/index.js +30 -0
  494. package/cjs/layouts/Basic/__snapshots__/index.spec.tsx.snap +108 -0
  495. package/cjs/layouts/Basic/__stories__/Default.js +28 -0
  496. package/cjs/layouts/Basic/__stories__/MultipleRowsLayout.js +32 -0
  497. package/cjs/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +32 -0
  498. package/cjs/layouts/Basic/index.js +142 -0
  499. package/cjs/layouts/Basic/index.spec.js +20 -0
  500. package/cjs/layouts/Divider/Divider.stories.js +33 -0
  501. package/cjs/layouts/Divider/__stories__/Default.js +34 -0
  502. package/cjs/layouts/Divider/index.js +37 -0
  503. package/cjs/layouts/Grid/Grid.stories.js +59 -0
  504. package/cjs/layouts/Grid/__stories__/Default.js +89 -0
  505. package/cjs/layouts/Grid/__stories__/Inline.js +90 -0
  506. package/cjs/layouts/Grid/__stories__/ResponsiveSpacing.js +93 -0
  507. package/cjs/layouts/Grid/index.js +19 -0
  508. package/cjs/layouts/Hidden/index.js +18 -0
  509. package/cjs/layouts/Section/index.js +30 -0
  510. package/cjs/layouts/SectionBreak/index.js +30 -0
  511. package/cjs/layouts/Stack/Stack.stories.js +101 -0
  512. package/cjs/layouts/Stack/__stories__/AlignItems.js +81 -0
  513. package/cjs/layouts/Stack/__stories__/Default.js +38 -0
  514. package/cjs/layouts/Stack/__stories__/JustifyContent.js +98 -0
  515. package/cjs/layouts/Stack/__stories__/NoWrap.js +40 -0
  516. package/cjs/layouts/Stack/__stories__/Row.js +39 -0
  517. package/cjs/layouts/Stack/__stories__/Spacing.js +69 -0
  518. package/cjs/layouts/Stack/index.js +13 -0
  519. package/cjs/layouts/index.js +153 -0
  520. package/cjs/misc/KitchenSink/index.js +109 -0
  521. package/cjs/navigation/BackLink/BackLink.stories.js +31 -0
  522. package/cjs/navigation/BackLink/__stories__/Default.js +25 -0
  523. package/cjs/navigation/BackLink/index.js +30 -0
  524. package/cjs/navigation/BackToTopLink/BackToTopLink.stories.js +45 -0
  525. package/cjs/navigation/BackToTopLink/__stories__/Default.js +25 -0
  526. package/cjs/navigation/BackToTopLink/__stories__/InMain.js +34 -0
  527. package/cjs/navigation/BackToTopLink/index.js +125 -0
  528. package/cjs/navigation/Breadcrumbs/Breadcrumbs.stories.js +33 -0
  529. package/cjs/navigation/Breadcrumbs/__stories__/Default.js +34 -0
  530. package/cjs/navigation/Breadcrumbs/index.js +58 -0
  531. package/cjs/navigation/Drawer/Drawer.stories.js +61 -0
  532. package/cjs/navigation/Drawer/__stories__/Auto.js +101 -0
  533. package/cjs/navigation/Drawer/__stories__/Default.js +107 -0
  534. package/cjs/navigation/Drawer/__stories__/WithHook.js +106 -0
  535. package/cjs/navigation/Drawer/auto.js +111 -0
  536. package/cjs/navigation/Drawer/hooks.js +72 -0
  537. package/cjs/navigation/Drawer/index.js +58 -0
  538. package/cjs/navigation/Dropdown/Dropdown.stories.js +161 -0
  539. package/cjs/navigation/Dropdown/Dropdown.stories.playwright.json +69 -0
  540. package/cjs/navigation/Dropdown/__stories__/AlignRight.js +74 -0
  541. package/cjs/navigation/Dropdown/__stories__/ContentPosition.js +114 -0
  542. package/cjs/navigation/Dropdown/__stories__/Default.js +59 -0
  543. package/cjs/navigation/Dropdown/__stories__/Dense.js +68 -0
  544. package/cjs/navigation/Dropdown/__stories__/Disabled.js +61 -0
  545. package/cjs/navigation/Dropdown/__stories__/PlacementTop.js +79 -0
  546. package/cjs/navigation/Dropdown/__stories__/Secondary.js +44 -0
  547. package/cjs/navigation/Dropdown/__stories__/VariantLink.js +60 -0
  548. package/cjs/navigation/Dropdown/__stories__/Warning.js +44 -0
  549. package/cjs/navigation/Dropdown/__stories__/WithIcons.js +111 -0
  550. package/cjs/navigation/Dropdown/index.js +162 -0
  551. package/cjs/navigation/Link/Link.stories.js +102 -0
  552. package/cjs/navigation/Link/__stories__/DarkBackground.js +34 -0
  553. package/cjs/navigation/Link/__stories__/DarkBackgroundNoUnderline.js +35 -0
  554. package/cjs/navigation/Link/__stories__/Default.js +26 -0
  555. package/cjs/navigation/Link/__stories__/ExternalLink.js +28 -0
  556. package/cjs/navigation/Link/__stories__/NoUnderline.js +27 -0
  557. package/cjs/navigation/Link/__stories__/OpensInNewTab.js +26 -0
  558. package/cjs/navigation/Link/index.js +61 -0
  559. package/cjs/navigation/Link/index.spec.js +31 -0
  560. package/cjs/navigation/NavList/Nav.js +30 -0
  561. package/cjs/navigation/NavList/NavList.js +30 -0
  562. package/cjs/navigation/NavList/NavList.stories.js +131 -0
  563. package/cjs/navigation/NavList/NavList.stories.playwright.json +53 -0
  564. package/cjs/navigation/NavList/NavListAuto/index.js +74 -0
  565. package/cjs/navigation/NavList/NavMenuContentList.js +100 -0
  566. package/cjs/navigation/NavList/__stories__/Default.js +52 -0
  567. package/cjs/navigation/NavList/__stories__/HorizontalWithDrawer.js +93 -0
  568. package/cjs/navigation/NavList/__stories__/HorizontalWithoutDrawer.js +64 -0
  569. package/cjs/navigation/NavList/__stories__/NavLinksOneLevel.json +17 -0
  570. package/cjs/navigation/NavList/__stories__/NavLinksWithSubmenu.json +36 -0
  571. package/cjs/navigation/NavList/__stories__/NavListWithoutNav.js +35 -0
  572. package/cjs/navigation/NavList/__stories__/UsingHeaderButton.js +98 -0
  573. package/cjs/navigation/NavList/__stories__/UsingNavListAuto.js +55 -0
  574. package/cjs/navigation/NavList/__stories__/Vertical.js +55 -0
  575. package/cjs/navigation/NavList/__stories__/VerticalWithoutDrawer.js +62 -0
  576. package/cjs/navigation/NavList/hooks/useNavList.js +55 -0
  577. package/cjs/navigation/NavList/hooks/useTogglableNav.js +320 -0
  578. package/cjs/navigation/NavList/index.js +226 -0
  579. package/cjs/navigation/NavList/index.mdx +34 -0
  580. package/cjs/navigation/NavList/index.spec.js +19 -0
  581. package/cjs/navigation/NavList/types.js +5 -0
  582. package/cjs/navigation/Pagination/Pagination.stories.js +117 -0
  583. package/cjs/navigation/Pagination/__stories__/Auto.js +68 -0
  584. package/cjs/navigation/Pagination/__stories__/Default.js +84 -0
  585. package/cjs/navigation/Pagination/__stories__/PaginationSmall.js +52 -0
  586. package/cjs/navigation/Pagination/__stories__/PaginationWithSmallFont.js +62 -0
  587. package/cjs/navigation/Pagination/__stories__/WithHook.js +75 -0
  588. package/cjs/navigation/Pagination/__stories__/WithInactiveValues.js +86 -0
  589. package/cjs/navigation/Pagination/__stories__/WithResultsPerPage.js +58 -0
  590. package/cjs/navigation/Pagination/auto.js +122 -0
  591. package/cjs/navigation/Pagination/hooks.js +131 -0
  592. package/cjs/navigation/Pagination/index.js +178 -0
  593. package/cjs/navigation/SkipLink/SkipLink.stories.js +32 -0
  594. package/cjs/navigation/SkipLink/__stories__/Default.js +26 -0
  595. package/cjs/navigation/SkipLink/index.js +19 -0
  596. package/cjs/navigation/Tabs/Tabs.stories.js +62 -0
  597. package/cjs/navigation/Tabs/Tabs.stories.playwright.json +27 -0
  598. package/cjs/navigation/Tabs/__stories__/Auto.js +50 -0
  599. package/cjs/navigation/Tabs/__stories__/Default.js +72 -0
  600. package/cjs/navigation/Tabs/__stories__/Dense.js +52 -0
  601. package/cjs/navigation/Tabs/auto.js +88 -0
  602. package/cjs/navigation/Tabs/hooks.js +111 -0
  603. package/cjs/navigation/Tabs/index.js +114 -0
  604. package/cjs/navigation/index.js +122 -0
  605. package/cjs/registry.js +784 -0
  606. package/cjs/test-utils/delay.js +47 -0
  607. package/cjs/typography/Caption/index.js +27 -0
  608. package/cjs/typography/Heading/Heading.stories.js +31 -0
  609. package/cjs/typography/Heading/__stories__/Default.js +42 -0
  610. package/cjs/typography/Heading/index.js +30 -0
  611. package/cjs/typography/HeadingCaption/HeadingCaption.stories.js +45 -0
  612. package/cjs/typography/HeadingCaption/__stories__/Default.js +49 -0
  613. package/cjs/typography/HeadingCaption/__stories__/NestedToTitle.js +29 -0
  614. package/cjs/typography/HeadingCaption/index.js +30 -0
  615. package/cjs/typography/Hint/Hint.stories.js +45 -0
  616. package/cjs/typography/Hint/__stories__/Default.js +22 -0
  617. package/cjs/typography/Hint/__stories__/FontSizes.js +34 -0
  618. package/cjs/typography/Hint/index.js +30 -0
  619. package/cjs/typography/NormalText/NormalText.stories.js +73 -0
  620. package/cjs/typography/NormalText/__stories__/Default.js +22 -0
  621. package/cjs/typography/NormalText/__stories__/FontSizes.js +74 -0
  622. package/cjs/typography/NormalText/__stories__/FontWeight.js +34 -0
  623. package/cjs/typography/NormalText/__stories__/Variants.js +34 -0
  624. package/cjs/typography/NormalText/index.js +30 -0
  625. package/cjs/typography/Paragraph/Paragraph.stories.js +87 -0
  626. package/cjs/typography/Paragraph/__stories__/Default.js +22 -0
  627. package/cjs/typography/Paragraph/__stories__/FontSizes.js +48 -0
  628. package/cjs/typography/Paragraph/__stories__/FontWeight.js +28 -0
  629. package/cjs/typography/Paragraph/__stories__/LeadVariant.js +24 -0
  630. package/cjs/typography/Paragraph/__stories__/SmallVariant.js +24 -0
  631. package/cjs/typography/Paragraph/index.js +30 -0
  632. package/cjs/typography/Title/index.js +62 -0
  633. package/cjs/typography/index.js +70 -0
  634. package/cjs/utils/Base/index.js +30 -0
  635. package/cjs/utils/Kitchensink/AllComponents.js +24 -0
  636. package/cjs/utils/Kitchensink/KitchensinkByCategory.js +52 -0
  637. package/cjs/utils/Kitchensink/KitchensinkByLetter.js +34 -0
  638. package/cjs/utils/Kitchensink/KitchensinkComponent.js +66 -0
  639. package/cjs/utils/Kitchensink/KitchensinkDashboard.js +63 -0
  640. package/cjs/utils/SvgIcon/index.js +44 -0
  641. package/cjs/utils/Typography/index.js +19 -0
  642. package/cjs/utils/VisuallyHidden/VisuallyHidden.stories.js +31 -0
  643. package/cjs/utils/VisuallyHidden/__stories__/Default.js +32 -0
  644. package/cjs/utils/VisuallyHidden/index.js +30 -0
  645. package/cjs/utils/hooks/useDebounce.js +63 -0
  646. package/cjs/utils/hooks/useKeypress.js +31 -0
  647. package/cjs/utils/hooks/useLatest.js +26 -0
  648. package/cjs/utils/hooks/useSearch.js +40 -0
  649. package/cjs/utils/hooks/useTogglableTab.js +114 -0
  650. package/cjs/utils/index.js +44 -0
  651. package/cjs/utils/withDeprecation.js +119 -0
  652. package/content/Accordion/Accordion.stories.d.ts +2 -0
  653. package/content/Accordion/Accordion.stories.js +7 -42
  654. package/content/Accordion/__snapshots__/index.spec.tsx.snap +10 -4
  655. package/content/Accordion/__stories__/Auto.d.ts +2 -0
  656. package/content/Accordion/__stories__/Auto.js +41 -0
  657. package/content/Accordion/__stories__/Default.js +19 -36
  658. package/content/Accordion/__stories__/WithHints.js +20 -38
  659. package/content/Accordion/__stories__/WithHook.d.ts +2 -0
  660. package/content/Accordion/__stories__/WithHook.js +61 -0
  661. package/content/Accordion/auto.d.ts +18 -0
  662. package/content/Accordion/auto.js +76 -0
  663. package/content/Accordion/hooks.d.ts +26 -0
  664. package/content/Accordion/hooks.js +185 -0
  665. package/content/Accordion/index.d.ts +2 -24
  666. package/content/Accordion/index.js +11 -239
  667. package/content/Accordion/index.spec.js +16 -16
  668. package/content/Accordion/package.json +6 -0
  669. package/content/Blockquote/Blockquote.stories.js +5 -42
  670. package/content/Blockquote/__stories__/Default.js +5 -18
  671. package/content/Blockquote/__stories__/Dense.js +5 -18
  672. package/content/Blockquote/index.js +3 -30
  673. package/content/Blockquote/index.spec.js +5 -17
  674. package/content/Blockquote/package.json +6 -0
  675. package/content/Card/Card.stories.js +14 -168
  676. package/content/Card/__stories__/Default.js +6 -20
  677. package/content/Card/__stories__/Dense.js +7 -21
  678. package/content/Card/__stories__/WithClickableContent.js +8 -22
  679. package/content/Card/__stories__/WithClickableLink.js +7 -21
  680. package/content/Card/__stories__/WithDarkBorder.js +7 -21
  681. package/content/Card/__stories__/WithDarkTopBorder.js +7 -21
  682. package/content/Card/__stories__/WithDivider.js +7 -21
  683. package/content/Card/__stories__/WithGrayBorder.js +7 -21
  684. package/content/Card/__stories__/WithGrayTopBorder.js +7 -21
  685. package/content/Card/__stories__/WithGroupButton.js +7 -22
  686. package/content/Card/__stories__/WithLink.js +6 -20
  687. package/content/Card/index.js +6 -72
  688. package/content/Card/package.json +6 -0
  689. package/content/Chip/Chip.stories.js +8 -84
  690. package/content/Chip/__stories__/ClickableChip.js +5 -19
  691. package/content/Chip/__stories__/ClickableDeletableChip.js +5 -19
  692. package/content/Chip/__stories__/Default.js +5 -18
  693. package/content/Chip/__stories__/DeletableChip.js +5 -19
  694. package/content/Chip/__stories__/GroupOfChips.js +5 -24
  695. package/content/Chip/index.js +6 -72
  696. package/content/Chip/package.json +6 -0
  697. package/content/Details/Details.stories.js +4 -28
  698. package/content/Details/__snapshots__/index.spec.tsx.snap +4 -4
  699. package/content/Details/__stories__/Default.js +5 -18
  700. package/content/Details/index.js +5 -58
  701. package/content/Details/index.spec.js +8 -18
  702. package/content/Details/package.json +6 -0
  703. package/content/FillableText/index.js +4 -44
  704. package/content/FillableText/package.json +6 -0
  705. package/content/List/List.js +3 -30
  706. package/content/List/List.stories.js +9 -98
  707. package/content/List/ListItem.js +3 -19
  708. package/content/List/ListItemContent.js +8 -21
  709. package/content/List/ListItemIcon.js +8 -21
  710. package/content/List/ListItemText.js +9 -23
  711. package/content/List/ListItemTitle.js +11 -27
  712. package/content/List/__stories__/BulletList.js +7 -21
  713. package/content/List/__stories__/Default.js +7 -22
  714. package/content/List/__stories__/HorizontalList.js +8 -23
  715. package/content/List/__stories__/NestedBulletList.js +11 -25
  716. package/content/List/__stories__/NumberedList.js +7 -21
  717. package/content/List/__stories__/WithExtraSpace.js +7 -21
  718. package/content/List/index.js +7 -96
  719. package/content/List/index.spec.js +3 -14
  720. package/content/List/package.json +6 -0
  721. package/content/StepNav/StepNav.stories.d.ts +2 -0
  722. package/content/StepNav/StepNav.stories.js +8 -57
  723. package/content/StepNav/__stories__/Auto.d.ts +2 -0
  724. package/content/StepNav/__stories__/Auto.js +135 -0
  725. package/content/StepNav/__stories__/Default.js +34 -58
  726. package/content/StepNav/__stories__/Dense.js +35 -59
  727. package/content/StepNav/__stories__/WithHints.js +38 -63
  728. package/content/StepNav/__stories__/WithHook.d.ts +2 -0
  729. package/content/StepNav/__stories__/WithHook.js +143 -0
  730. package/content/StepNav/auto.d.ts +19 -0
  731. package/content/StepNav/auto.js +72 -0
  732. package/content/StepNav/index.d.ts +5 -2
  733. package/content/StepNav/index.js +16 -99
  734. package/content/StepNav/package.json +6 -0
  735. package/content/SummaryList/SummaryList.stories.js +9 -99
  736. package/content/SummaryList/__stories__/Default.js +10 -25
  737. package/content/SummaryList/__stories__/RowVariations.js +21 -36
  738. package/content/SummaryList/__stories__/WithActions.js +12 -34
  739. package/content/SummaryList/__stories__/WithKeyAndAction.js +13 -29
  740. package/content/SummaryList/__stories__/WithoutActions.js +5 -18
  741. package/content/SummaryList/__stories__/WithoutBorders.js +11 -26
  742. package/content/SummaryList/index.js +7 -79
  743. package/content/SummaryList/index.spec.js +5 -15
  744. package/content/SummaryList/package.json +6 -0
  745. package/content/Table/Table.stories.js +21 -267
  746. package/content/Table/TableFloatingScroll.js +18 -38
  747. package/content/Table/__stories__/DarkVariant.js +12 -27
  748. package/content/Table/__stories__/DarkVariantWithVerticalHeaders.js +12 -27
  749. package/content/Table/__stories__/Default.js +11 -26
  750. package/content/Table/__stories__/DefinedWidth.js +12 -27
  751. package/content/Table/__stories__/Densed.js +12 -26
  752. package/content/Table/__stories__/Full.js +16 -31
  753. package/content/Table/__stories__/MultipleProps.js +14 -29
  754. package/content/Table/__stories__/NoData.js +5 -18
  755. package/content/Table/__stories__/NumericDataType.js +13 -28
  756. package/content/Table/__stories__/RowColors.js +14 -30
  757. package/content/Table/__stories__/Stacked.js +12 -27
  758. package/content/Table/__stories__/TableCaptions.js +8 -21
  759. package/content/Table/__stories__/VerticalBorders.js +12 -27
  760. package/content/Table/__stories__/VerticalHeaders.js +11 -26
  761. package/content/Table/__stories__/WithFloatingScroll.js +18 -41
  762. package/content/Table/__stories__/WithLoader.js +24 -45
  763. package/content/Table/__stories__/WithSortFilters.js +14 -29
  764. package/content/Table/__stories__/ZebraProp.js +12 -27
  765. package/content/Table/hooks/useSort.js +12 -25
  766. package/content/Table/index.d.ts +1 -1
  767. package/content/Table/index.js +37 -229
  768. package/content/Table/package.json +6 -0
  769. package/content/TaskList/TaskList.stories.js +5 -42
  770. package/content/TaskList/__stories__/Default.js +12 -29
  771. package/content/TaskList/__stories__/Dense.js +12 -29
  772. package/content/TaskList/index.js +7 -86
  773. package/content/TaskList/package.json +6 -0
  774. package/content/Timeline/Timeline.stories.js +5 -42
  775. package/content/Timeline/__stories__/Default.js +18 -35
  776. package/content/Timeline/__stories__/Dense.js +18 -35
  777. package/content/Timeline/index.js +7 -86
  778. package/content/Timeline/package.json +6 -0
  779. package/content/index.js +12 -161
  780. package/content/package.json +6 -0
  781. package/custom.d.js +0 -1
  782. package/feedback/CopyToClipboard/CopyToClipboard.stories.d.ts +1 -0
  783. package/feedback/CopyToClipboard/CopyToClipboard.stories.js +6 -42
  784. package/feedback/CopyToClipboard/CopyToClipboard.stories.playwright.json +16 -0
  785. package/feedback/CopyToClipboard/__stories__/Banner.js +7 -21
  786. package/feedback/CopyToClipboard/__stories__/Default.js +18 -29
  787. package/feedback/CopyToClipboard/__stories__/Dense.d.ts +2 -0
  788. package/feedback/CopyToClipboard/__stories__/Dense.js +20 -0
  789. package/feedback/CopyToClipboard/index.d.ts +2 -1
  790. package/feedback/CopyToClipboard/index.js +21 -53
  791. package/feedback/CopyToClipboard/package.json +6 -0
  792. package/feedback/ErrorSummary/ErrorSummary.stories.d.ts +1 -0
  793. package/feedback/ErrorSummary/ErrorSummary.stories.js +9 -84
  794. package/feedback/ErrorSummary/__stories__/Default.js +8 -23
  795. package/feedback/ErrorSummary/__stories__/Dense.d.ts +2 -0
  796. package/feedback/ErrorSummary/__stories__/Dense.js +15 -0
  797. package/feedback/ErrorSummary/__stories__/LinkedToCheckbox.js +17 -37
  798. package/feedback/ErrorSummary/__stories__/LinkedToField.js +18 -38
  799. package/feedback/ErrorSummary/__stories__/LinkedToInput.js +19 -39
  800. package/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.js +22 -44
  801. package/feedback/ErrorSummary/index.js +3 -30
  802. package/feedback/ErrorSummary/index.spec.js +3 -14
  803. package/feedback/ErrorSummary/package.json +6 -0
  804. package/feedback/NotificationBanner/NotificationBanner.stories.d.ts +1 -0
  805. package/feedback/NotificationBanner/NotificationBanner.stories.js +6 -42
  806. package/feedback/NotificationBanner/__stories__/Default.js +5 -19
  807. package/feedback/NotificationBanner/__stories__/Dense.d.ts +2 -0
  808. package/feedback/NotificationBanner/__stories__/Dense.js +13 -0
  809. package/feedback/NotificationBanner/__stories__/Success.js +5 -19
  810. package/feedback/NotificationBanner/index.js +22 -69
  811. package/feedback/NotificationBanner/index.spec.js +4 -15
  812. package/feedback/NotificationBanner/package.json +6 -0
  813. package/feedback/PhaseBanner/PhaseBanner.stories.js +5 -42
  814. package/feedback/PhaseBanner/__stories__/Default.js +6 -20
  815. package/feedback/PhaseBanner/__stories__/Underlined.js +7 -21
  816. package/feedback/PhaseBanner/index.js +6 -72
  817. package/feedback/PhaseBanner/package.json +6 -0
  818. package/feedback/ServiceBadge/index.js +11 -27
  819. package/feedback/ServiceBadge/package.json +6 -0
  820. package/feedback/WarningText/WarningText.stories.d.ts +1 -0
  821. package/feedback/WarningText/WarningText.stories.js +6 -42
  822. package/feedback/WarningText/__stories__/AssistiveText.js +5 -18
  823. package/feedback/WarningText/__stories__/Default.js +5 -18
  824. package/feedback/WarningText/__stories__/Dense.d.ts +2 -0
  825. package/feedback/WarningText/__stories__/Dense.js +11 -0
  826. package/feedback/WarningText/index.js +3 -30
  827. package/feedback/WarningText/index.spec.js +3 -14
  828. package/feedback/WarningText/package.json +6 -0
  829. package/feedback/index.js +6 -83
  830. package/feedback/package.json +6 -0
  831. package/form/AutoComplete/AutoComplete.stories.js +10 -112
  832. package/form/AutoComplete/Status/index.js +20 -51
  833. package/form/AutoComplete/Status/package.json +6 -0
  834. package/form/AutoComplete/__stories__/Default.js +11 -27
  835. package/form/AutoComplete/__stories__/WithAutoSelect.js +10 -26
  836. package/form/AutoComplete/__stories__/WithDefaultValue.js +11 -27
  837. package/form/AutoComplete/__stories__/WithInLine.js +11 -27
  838. package/form/AutoComplete/__stories__/WithMinLength.js +12 -29
  839. package/form/AutoComplete/__stories__/WithPlaceHolder.js +11 -27
  840. package/form/AutoComplete/__stories__/WithShowAllValues.js +11 -27
  841. package/form/AutoComplete/__stories__/utils.js +0 -1
  842. package/form/AutoComplete/index.js +64 -127
  843. package/form/AutoComplete/package.json +6 -0
  844. package/form/AutoComplete/utils.js +5 -20
  845. package/form/Button/BackButton.js +4 -17
  846. package/form/Button/Button.stories.d.ts +1 -0
  847. package/form/Button/Button.stories.js +15 -169
  848. package/form/Button/ButtonLink.js +3 -30
  849. package/form/Button/CallToAction.js +3 -30
  850. package/form/Button/Icon.js +3 -15
  851. package/form/Button/ThemeToggleButton.js +10 -31
  852. package/form/Button/__stories__/Back.js +5 -18
  853. package/form/Button/__stories__/ButtonLinkButton.js +8 -21
  854. package/form/Button/__stories__/CallToActionButton.js +5 -18
  855. package/form/Button/__stories__/Dense.d.ts +2 -0
  856. package/form/Button/__stories__/Dense.js +12 -0
  857. package/form/Button/__stories__/Disabled.js +5 -18
  858. package/form/Button/__stories__/GroupingButtons.js +5 -18
  859. package/form/Button/__stories__/GroupingButtonsAndLinks.js +7 -21
  860. package/form/Button/__stories__/Primary.js +5 -18
  861. package/form/Button/__stories__/Secondary.js +5 -18
  862. package/form/Button/__stories__/ThemeToggle.js +5 -18
  863. package/form/Button/__stories__/Warning.js +5 -18
  864. package/form/Button/__stories__/WithVariantLink.js +5 -19
  865. package/form/Button/index.js +15 -127
  866. package/form/Button/index.spec.js +5 -17
  867. package/form/Button/package.json +6 -0
  868. package/form/Checkbox/Checkbox.stories.d.ts +1 -0
  869. package/form/Checkbox/Checkbox.stories.js +13 -140
  870. package/form/Checkbox/__stories__/ConditionalReveal.js +12 -28
  871. package/form/Checkbox/__stories__/Default.js +11 -26
  872. package/form/Checkbox/__stories__/Dense.d.ts +2 -0
  873. package/form/Checkbox/__stories__/Dense.js +26 -0
  874. package/form/Checkbox/__stories__/Inline.js +11 -26
  875. package/form/Checkbox/__stories__/InlineWithDivider.js +11 -26
  876. package/form/Checkbox/__stories__/MultipleQuestions.js +12 -27
  877. package/form/Checkbox/__stories__/NoneAnswer.js +8 -22
  878. package/form/Checkbox/__stories__/NoneAnswerWithError.js +12 -28
  879. package/form/Checkbox/__stories__/WithErrorMessage.js +15 -32
  880. package/form/Checkbox/__stories__/WithHint.js +12 -27
  881. package/form/Checkbox/index.js +5 -58
  882. package/form/Checkbox/package.json +6 -0
  883. package/form/DateInputContainer/DateInputContainer.stories.d.ts +1 -0
  884. package/form/DateInputContainer/DateInputContainer.stories.js +8 -70
  885. package/form/DateInputContainer/__stories__/Default.js +12 -27
  886. package/form/DateInputContainer/__stories__/Dense.d.ts +2 -0
  887. package/form/DateInputContainer/__stories__/Dense.js +23 -0
  888. package/form/DateInputContainer/__stories__/MultipleQuestions.js +12 -27
  889. package/form/DateInputContainer/__stories__/WithErrorMessage.js +16 -33
  890. package/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +17 -34
  891. package/form/DateInputContainer/index.js +4 -44
  892. package/form/DateInputContainer/package.json +6 -0
  893. package/form/ErrorMessage/ErrorMessage.stories.js +6 -56
  894. package/form/ErrorMessage/__stories__/DateInputError.js +13 -30
  895. package/form/ErrorMessage/__stories__/Default.js +17 -34
  896. package/form/ErrorMessage/__stories__/ErrorMessageOnly.js +7 -21
  897. package/form/ErrorMessage/index.js +3 -30
  898. package/form/ErrorMessage/package.json +6 -0
  899. package/form/FieldContainer/index.js +5 -58
  900. package/form/FieldContainer/package.json +6 -0
  901. package/form/FileUpload/FileUpload.stories.js +5 -42
  902. package/form/FileUpload/__stories__/Default.js +9 -24
  903. package/form/FileUpload/__stories__/WithErrorMessage.js +13 -30
  904. package/form/FileUpload/index.js +4 -44
  905. package/form/FileUpload/package.json +6 -0
  906. package/form/Form/index.js +3 -19
  907. package/form/Form/package.json +6 -0
  908. package/form/LabelContainer/index.js +4 -44
  909. package/form/LabelContainer/package.json +6 -0
  910. package/form/RadioContainer/RadioContainer.stories.d.ts +1 -0
  911. package/form/RadioContainer/RadioContainer.stories.js +13 -140
  912. package/form/RadioContainer/__stories__/ConditionalReveal.js +12 -28
  913. package/form/RadioContainer/__stories__/Default.js +9 -23
  914. package/form/RadioContainer/__stories__/Dense.d.ts +2 -0
  915. package/form/RadioContainer/__stories__/Dense.js +24 -0
  916. package/form/RadioContainer/__stories__/Inline.js +11 -26
  917. package/form/RadioContainer/__stories__/InlineWithDivider.js +11 -26
  918. package/form/RadioContainer/__stories__/MultipleQuestions.js +12 -27
  919. package/form/RadioContainer/__stories__/NoneAnswer.js +10 -24
  920. package/form/RadioContainer/__stories__/WithErrorMessage.js +16 -33
  921. package/form/RadioContainer/__stories__/WithHints.js +13 -28
  922. package/form/RadioContainer/__stories__/WithMediumLegend.js +10 -24
  923. package/form/RadioContainer/index.js +5 -58
  924. package/form/RadioContainer/package.json +6 -0
  925. package/form/SearchContainer/index.js +5 -58
  926. package/form/SearchContainer/package.json +6 -0
  927. package/form/SelectContainer/SelectContainer.stories.d.ts +1 -0
  928. package/form/SelectContainer/SelectContainer.stories.js +7 -56
  929. package/form/SelectContainer/__stories__/Default.js +11 -26
  930. package/form/SelectContainer/__stories__/Dense.d.ts +2 -0
  931. package/form/SelectContainer/__stories__/Dense.js +23 -0
  932. package/form/SelectContainer/__stories__/DisabledInput.js +11 -26
  933. package/form/SelectContainer/__stories__/WithHint.js +13 -29
  934. package/form/SelectContainer/index.js +4 -44
  935. package/form/SelectContainer/package.json +6 -0
  936. package/form/SingleCharacterInputs/SingleCharacterInput.stories.js +7 -70
  937. package/form/SingleCharacterInputs/__stories__/Default.js +15 -30
  938. package/form/SingleCharacterInputs/__stories__/WithDefaultError.js +19 -36
  939. package/form/SingleCharacterInputs/__stories__/WithErrorMessageInvalidCode.js +21 -38
  940. package/form/SingleCharacterInputs/__stories__/WithErrorMessageLessDigit.js +21 -38
  941. package/form/SingleCharacterInputs/index.js +4 -44
  942. package/form/SingleCharacterInputs/package.json +6 -0
  943. package/form/TextArea/TextArea.stories.d.ts +1 -0
  944. package/form/TextArea/TextArea.stories.js +11 -112
  945. package/form/TextArea/__stories__/Default.js +9 -23
  946. package/form/TextArea/__stories__/Dense.d.ts +2 -0
  947. package/form/TextArea/__stories__/Dense.js +14 -0
  948. package/form/TextArea/__stories__/DisabledInput.js +12 -27
  949. package/form/TextArea/__stories__/LimitedCharacters.js +14 -29
  950. package/form/TextArea/__stories__/MultipleQuestions.js +9 -25
  951. package/form/TextArea/__stories__/WithDeclaredRows.js +12 -27
  952. package/form/TextArea/__stories__/WithErrorMessage.js +15 -31
  953. package/form/TextArea/__stories__/WithHint.js +12 -27
  954. package/form/TextArea/index.js +3 -30
  955. package/form/TextArea/package.json +6 -0
  956. package/form/TextInput/TextInput.stories.d.ts +1 -0
  957. package/form/TextInput/TextInput.stories.js +12 -126
  958. package/form/TextInput/__stories__/AskingForNumbers.js +12 -27
  959. package/form/TextInput/__stories__/Default.js +9 -23
  960. package/form/TextInput/__stories__/Dense.d.ts +2 -0
  961. package/form/TextInput/__stories__/Dense.js +14 -0
  962. package/form/TextInput/__stories__/DisabledInput.js +12 -27
  963. package/form/TextInput/__stories__/FixedWidths.js +19 -33
  964. package/form/TextInput/__stories__/FluidWidths.js +19 -33
  965. package/form/TextInput/__stories__/MultipleQuestions.js +7 -22
  966. package/form/TextInput/__stories__/WithErrorMessage.js +15 -31
  967. package/form/TextInput/__stories__/WithHint.js +12 -27
  968. package/form/TextInput/index.js +3 -30
  969. package/form/TextInput/package.json +6 -0
  970. package/form/index.js +15 -200
  971. package/form/package.json +6 -0
  972. package/govgr/Footer/Copyright.js +13 -40
  973. package/govgr/Footer/HellenicRepublicLogo.js +3 -19
  974. package/govgr/Footer/LicenseCCSA.js +9 -24
  975. package/govgr/Footer/index.js +11 -29
  976. package/govgr/Footer/logo.js +1 -8
  977. package/govgr/Footer/logos/logo-el.js +1 -8
  978. package/govgr/Footer/logos/logo-en.js +1 -8
  979. package/govgr/Footer/package.json +6 -0
  980. package/govgr/GovGRLogo/index.js +3 -19
  981. package/govgr/GovGRLogo/logo.js +1 -8
  982. package/govgr/GovGRLogo/package.json +6 -0
  983. package/govgr/images/govgr-logo-base64.js +1 -8
  984. package/govgr/images/govgr-logo-blue-base64.js +1 -8
  985. package/govgr/images/greek-government-base64.js +1 -8
  986. package/govgr/images/grnet-logo-base64.js +1 -8
  987. package/govgr/images/index.js +5 -70
  988. package/govgr/images/minedu-logo-base64.js +1 -8
  989. package/govgr/images/minedu-logo-black-base64.js +1 -8
  990. package/govgr/images/package.json +6 -0
  991. package/govgr/index.js +5 -70
  992. package/govgr/package.json +6 -0
  993. package/i18n/I18nText.js +16 -30
  994. package/i18n/index.js +17 -42
  995. package/i18n/locales/el.js +2 -9
  996. package/i18n/locales/en.js +2 -9
  997. package/i18n/package.json +6 -0
  998. package/icons/Icon/index.js +5 -58
  999. package/icons/Icon/package.json +6 -0
  1000. package/icons/ImageLogo/index.js +3 -30
  1001. package/icons/ImageLogo/package.json +6 -0
  1002. package/icons/ImageLogoSet/index.js +3 -30
  1003. package/icons/ImageLogoSet/package.json +6 -0
  1004. package/icons/index.js +2 -31
  1005. package/icons/package.json +6 -0
  1006. package/index.js +16 -148
  1007. package/layouts/Admin/index.js +9 -114
  1008. package/layouts/Admin/package.json +6 -0
  1009. package/layouts/Basic/Aside/index.js +3 -30
  1010. package/layouts/Basic/Aside/package.json +6 -0
  1011. package/layouts/Basic/Basic.stories.js +6 -57
  1012. package/layouts/Basic/Bottom/index.js +3 -30
  1013. package/layouts/Basic/Bottom/package.json +6 -0
  1014. package/layouts/Basic/Container/index.js +3 -30
  1015. package/layouts/Basic/Container/package.json +6 -0
  1016. package/layouts/Basic/Content/index.d.ts +1 -3
  1017. package/layouts/Basic/Content/index.js +4 -23
  1018. package/layouts/Basic/Content/package.json +6 -0
  1019. package/layouts/Basic/Main/index.js +3 -30
  1020. package/layouts/Basic/Main/package.json +6 -0
  1021. package/layouts/Basic/Masthead/index.js +5 -58
  1022. package/layouts/Basic/Masthead/package.json +6 -0
  1023. package/layouts/Basic/Side/index.d.ts +1 -3
  1024. package/layouts/Basic/Side/index.js +4 -23
  1025. package/layouts/Basic/Side/package.json +6 -0
  1026. package/layouts/Basic/Top/index.js +3 -30
  1027. package/layouts/Basic/Top/package.json +6 -0
  1028. package/layouts/Basic/__snapshots__/index.spec.tsx.snap +43 -24
  1029. package/layouts/Basic/__stories__/Default.js +8 -24
  1030. package/layouts/Basic/__stories__/MultipleRowsLayout.js +11 -28
  1031. package/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +11 -28
  1032. package/layouts/Basic/index.js +11 -142
  1033. package/layouts/Basic/index.spec.js +5 -15
  1034. package/layouts/Basic/package.json +6 -0
  1035. package/layouts/Divider/Divider.stories.js +4 -29
  1036. package/layouts/Divider/__stories__/Default.js +9 -22
  1037. package/layouts/Divider/index.js +5 -33
  1038. package/layouts/Divider/package.json +6 -0
  1039. package/layouts/Grid/Grid.stories.js +6 -56
  1040. package/layouts/Grid/__stories__/Default.js +19 -33
  1041. package/layouts/Grid/__stories__/Inline.js +19 -33
  1042. package/layouts/Grid/__stories__/ResponsiveSpacing.js +18 -32
  1043. package/layouts/Grid/index.js +3 -19
  1044. package/layouts/Grid/package.json +6 -0
  1045. package/layouts/Hidden/index.js +1 -18
  1046. package/layouts/Hidden/package.json +6 -0
  1047. package/layouts/Section/index.js +3 -30
  1048. package/layouts/Section/package.json +6 -0
  1049. package/layouts/SectionBreak/index.js +3 -30
  1050. package/layouts/SectionBreak/package.json +6 -0
  1051. package/layouts/Stack/Stack.stories.js +9 -98
  1052. package/layouts/Stack/__stories__/AlignItems.js +26 -40
  1053. package/layouts/Stack/__stories__/Default.js +12 -26
  1054. package/layouts/Stack/__stories__/JustifyContent.js +36 -50
  1055. package/layouts/Stack/__stories__/NoWrap.js +12 -26
  1056. package/layouts/Stack/__stories__/Row.js +12 -26
  1057. package/layouts/Stack/__stories__/Spacing.js +26 -40
  1058. package/layouts/Stack/index.js +2 -13
  1059. package/layouts/Stack/package.json +6 -0
  1060. package/layouts/index.js +13 -153
  1061. package/layouts/package.json +6 -0
  1062. package/misc/KitchenSink/index.js +8 -109
  1063. package/misc/KitchenSink/package.json +6 -0
  1064. package/navigation/BackLink/BackLink.stories.js +4 -28
  1065. package/navigation/BackLink/__stories__/Default.js +5 -18
  1066. package/navigation/BackLink/index.js +3 -30
  1067. package/navigation/BackLink/package.json +6 -0
  1068. package/navigation/BackToTopLink/BackToTopLink.stories.d.ts +9 -0
  1069. package/navigation/BackToTopLink/BackToTopLink.stories.js +8 -0
  1070. package/navigation/BackToTopLink/__stories__/Default.d.ts +2 -0
  1071. package/navigation/BackToTopLink/__stories__/Default.js +12 -0
  1072. package/navigation/BackToTopLink/__stories__/InMain.d.ts +2 -0
  1073. package/navigation/BackToTopLink/__stories__/InMain.js +13 -0
  1074. package/navigation/BackToTopLink/index.d.ts +12 -0
  1075. package/navigation/BackToTopLink/index.js +64 -0
  1076. package/navigation/BackToTopLink/package.json +6 -0
  1077. package/navigation/Breadcrumbs/Breadcrumbs.stories.js +4 -28
  1078. package/navigation/Breadcrumbs/__stories__/Default.js +9 -22
  1079. package/navigation/Breadcrumbs/index.js +5 -58
  1080. package/navigation/Breadcrumbs/package.json +6 -0
  1081. package/navigation/Drawer/Drawer.stories.d.ts +2 -0
  1082. package/navigation/Drawer/Drawer.stories.js +6 -28
  1083. package/navigation/Drawer/__stories__/Auto.d.ts +1 -0
  1084. package/navigation/Drawer/__stories__/Auto.js +82 -0
  1085. package/navigation/Drawer/__stories__/Default.js +15 -36
  1086. package/navigation/Drawer/__stories__/WithHook.d.ts +1 -0
  1087. package/navigation/Drawer/__stories__/WithHook.js +84 -0
  1088. package/navigation/Drawer/auto.d.ts +28 -0
  1089. package/navigation/Drawer/auto.js +76 -0
  1090. package/navigation/Drawer/hooks.d.ts +20 -0
  1091. package/navigation/Drawer/hooks.js +52 -0
  1092. package/navigation/Drawer/index.d.ts +1 -0
  1093. package/navigation/Drawer/index.js +5 -44
  1094. package/navigation/Drawer/package.json +6 -0
  1095. package/navigation/Dropdown/Dropdown.stories.d.ts +7 -0
  1096. package/navigation/Dropdown/Dropdown.stories.js +13 -57
  1097. package/navigation/Dropdown/Dropdown.stories.playwright.json +16 -0
  1098. package/navigation/Dropdown/__stories__/AlignRight.js +25 -43
  1099. package/navigation/Dropdown/__stories__/ContentPosition.d.ts +2 -0
  1100. package/navigation/Dropdown/__stories__/ContentPosition.js +99 -0
  1101. package/navigation/Dropdown/__stories__/Default.js +21 -45
  1102. package/navigation/Dropdown/__stories__/Dense.d.ts +2 -0
  1103. package/navigation/Dropdown/__stories__/Dense.js +50 -0
  1104. package/navigation/Dropdown/__stories__/Disabled.d.ts +2 -0
  1105. package/navigation/Dropdown/__stories__/Disabled.js +44 -0
  1106. package/navigation/Dropdown/__stories__/PlacementTop.js +25 -43
  1107. package/navigation/Dropdown/__stories__/Secondary.d.ts +2 -0
  1108. package/navigation/Dropdown/__stories__/Secondary.js +30 -0
  1109. package/navigation/Dropdown/__stories__/VariantLink.d.ts +2 -0
  1110. package/navigation/Dropdown/__stories__/VariantLink.js +43 -0
  1111. package/navigation/Dropdown/__stories__/Warning.d.ts +2 -0
  1112. package/navigation/Dropdown/__stories__/Warning.js +30 -0
  1113. package/navigation/Dropdown/__stories__/WithIcons.d.ts +2 -0
  1114. package/navigation/Dropdown/__stories__/WithIcons.js +95 -0
  1115. package/navigation/Dropdown/index.d.ts +1 -1
  1116. package/navigation/Dropdown/index.js +13 -70
  1117. package/navigation/Dropdown/package.json +6 -0
  1118. package/navigation/Link/Link.stories.js +9 -98
  1119. package/navigation/Link/__stories__/DarkBackground.js +9 -24
  1120. package/navigation/Link/__stories__/DarkBackgroundNoUnderline.js +9 -24
  1121. package/navigation/Link/__stories__/Default.js +5 -18
  1122. package/navigation/Link/__stories__/ExternalLink.js +6 -20
  1123. package/navigation/Link/__stories__/NoUnderline.js +5 -18
  1124. package/navigation/Link/__stories__/OpensInNewTab.js +5 -18
  1125. package/navigation/Link/index.d.ts +1 -1
  1126. package/navigation/Link/index.js +13 -45
  1127. package/navigation/Link/index.spec.js +8 -18
  1128. package/navigation/Link/package.json +6 -0
  1129. package/navigation/NavList/Nav.js +3 -30
  1130. package/navigation/NavList/NavList.js +3 -30
  1131. package/navigation/NavList/NavList.stories.d.ts +7 -5
  1132. package/navigation/NavList/NavList.stories.js +11 -98
  1133. package/navigation/NavList/NavList.stories.playwright.json +24 -4
  1134. package/navigation/NavList/NavListAuto/index.js +26 -58
  1135. package/navigation/NavList/NavListAuto/package.json +6 -0
  1136. package/navigation/NavList/NavMenuContentList.js +10 -44
  1137. package/navigation/NavList/__stories__/Default.js +23 -49
  1138. package/navigation/NavList/__stories__/HorizontalWithDrawer.d.ts +2 -0
  1139. package/navigation/NavList/__stories__/HorizontalWithDrawer.js +67 -0
  1140. package/navigation/NavList/__stories__/HorizontalWithoutDrawer.d.ts +2 -0
  1141. package/navigation/NavList/__stories__/HorizontalWithoutDrawer.js +41 -0
  1142. package/navigation/NavList/__stories__/NavLinksOneLevel.json +17 -0
  1143. package/navigation/NavList/__stories__/NavLinksWithSubmenu.json +36 -0
  1144. package/navigation/NavList/__stories__/NavListWithoutNav.d.ts +2 -0
  1145. package/navigation/NavList/__stories__/NavListWithoutNav.js +19 -0
  1146. package/navigation/NavList/__stories__/UsingHeaderButton.d.ts +2 -0
  1147. package/navigation/NavList/__stories__/UsingHeaderButton.js +70 -0
  1148. package/navigation/NavList/__stories__/UsingNavListAuto.d.ts +2 -0
  1149. package/navigation/NavList/__stories__/UsingNavListAuto.js +38 -0
  1150. package/navigation/NavList/__stories__/Vertical.d.ts +2 -0
  1151. package/navigation/NavList/__stories__/Vertical.js +32 -0
  1152. package/navigation/NavList/__stories__/VerticalWithoutDrawer.d.ts +2 -0
  1153. package/navigation/NavList/__stories__/VerticalWithoutDrawer.js +44 -0
  1154. package/navigation/NavList/hooks/useNavList.js +11 -27
  1155. package/navigation/NavList/hooks/useTogglableNav.js +26 -39
  1156. package/navigation/NavList/index.d.ts +1 -3
  1157. package/navigation/NavList/index.js +17 -226
  1158. package/navigation/NavList/index.mdx +9 -3
  1159. package/navigation/NavList/index.spec.js +3 -14
  1160. package/navigation/NavList/package.json +6 -0
  1161. package/navigation/NavList/types.d.ts +1 -0
  1162. package/navigation/NavList/types.js +1 -5
  1163. package/navigation/Pagination/Pagination.stories.d.ts +2 -0
  1164. package/navigation/Pagination/Pagination.stories.js +10 -84
  1165. package/navigation/Pagination/__stories__/Auto.d.ts +2 -0
  1166. package/navigation/Pagination/__stories__/Auto.js +52 -0
  1167. package/navigation/Pagination/__stories__/Default.js +30 -47
  1168. package/navigation/Pagination/__stories__/PaginationSmall.js +17 -34
  1169. package/navigation/Pagination/__stories__/PaginationWithSmallFont.js +23 -41
  1170. package/navigation/Pagination/__stories__/WithHook.d.ts +2 -0
  1171. package/navigation/Pagination/__stories__/WithHook.js +57 -0
  1172. package/navigation/Pagination/__stories__/WithInactiveValues.js +31 -48
  1173. package/navigation/Pagination/__stories__/WithResultsPerPage.js +21 -39
  1174. package/navigation/Pagination/auto.d.ts +24 -0
  1175. package/navigation/Pagination/auto.js +87 -0
  1176. package/navigation/Pagination/hooks.d.ts +30 -0
  1177. package/navigation/Pagination/hooks.js +117 -0
  1178. package/navigation/Pagination/index.d.ts +19 -0
  1179. package/navigation/Pagination/index.js +63 -81
  1180. package/navigation/Pagination/package.json +6 -0
  1181. package/navigation/SkipLink/SkipLink.stories.js +4 -28
  1182. package/navigation/SkipLink/__stories__/Default.js +8 -22
  1183. package/navigation/SkipLink/index.js +3 -19
  1184. package/navigation/SkipLink/package.json +6 -0
  1185. package/navigation/Tabs/Tabs.stories.d.ts +4 -2
  1186. package/navigation/Tabs/Tabs.stories.js +6 -28
  1187. package/navigation/Tabs/Tabs.stories.playwright.json +2 -2
  1188. package/navigation/Tabs/__stories__/Auto.d.ts +2 -0
  1189. package/navigation/Tabs/__stories__/Auto.js +33 -0
  1190. package/navigation/Tabs/__stories__/Default.js +34 -42
  1191. package/navigation/Tabs/__stories__/Dense.d.ts +2 -0
  1192. package/navigation/Tabs/__stories__/Dense.js +35 -0
  1193. package/navigation/Tabs/auto.d.ts +18 -0
  1194. package/navigation/Tabs/auto.js +56 -0
  1195. package/navigation/Tabs/hooks.d.ts +28 -0
  1196. package/navigation/Tabs/hooks.js +92 -0
  1197. package/navigation/Tabs/index.d.ts +4 -11
  1198. package/navigation/Tabs/index.js +9 -144
  1199. package/navigation/Tabs/package.json +6 -0
  1200. package/navigation/index.js +9 -122
  1201. package/navigation/package.json +6 -0
  1202. package/package.json +6 -6
  1203. package/registry.d.ts +15 -1
  1204. package/registry.js +267 -492
  1205. package/src/app/Header/Header.stories.playwright.json +1 -1
  1206. package/src/app/Header/__snapshots__/index.spec.tsx.snap +7 -4
  1207. package/src/app/Header/__stories__/WithHeaderNavigation.tsx +33 -36
  1208. package/src/app/Header/__stories__/WithNavigation.tsx +21 -15
  1209. package/src/app/Modal/Modal.stories.js +3 -0
  1210. package/src/app/Modal/Modal.stories.playwright.json +53 -0
  1211. package/src/app/Modal/__stories__/Auto.tsx +69 -0
  1212. package/src/app/Modal/__stories__/Dense.tsx +52 -0
  1213. package/src/app/Modal/__stories__/WithHooks.tsx +44 -0
  1214. package/src/app/Modal/auto.tsx +73 -0
  1215. package/src/app/Modal/hooks.ts +87 -0
  1216. package/src/app/Modal/index.tsx +10 -36
  1217. package/src/app/index.ts +0 -1
  1218. package/src/content/Accordion/Accordion.stories.js +2 -0
  1219. package/src/content/Accordion/__snapshots__/index.spec.tsx.snap +10 -4
  1220. package/src/content/Accordion/__stories__/Auto.tsx +129 -0
  1221. package/src/content/Accordion/__stories__/WithHook.tsx +136 -0
  1222. package/src/content/Accordion/auto.tsx +85 -0
  1223. package/src/content/Accordion/hooks.ts +165 -0
  1224. package/src/content/Accordion/index.spec.tsx +29 -15
  1225. package/src/content/Accordion/index.tsx +3 -102
  1226. package/src/content/Details/__snapshots__/index.spec.tsx.snap +4 -4
  1227. package/src/content/StepNav/StepNav.stories.js +2 -0
  1228. package/src/content/StepNav/__stories__/Auto.tsx +228 -0
  1229. package/src/content/StepNav/__stories__/WithHook.tsx +231 -0
  1230. package/src/content/StepNav/auto.tsx +81 -0
  1231. package/src/content/StepNav/index.tsx +4 -2
  1232. package/src/feedback/CopyToClipboard/CopyToClipboard.stories.js +1 -0
  1233. package/src/feedback/CopyToClipboard/CopyToClipboard.stories.playwright.json +16 -0
  1234. package/src/feedback/CopyToClipboard/__stories__/Default.tsx +2 -0
  1235. package/src/feedback/CopyToClipboard/__stories__/Dense.tsx +21 -0
  1236. package/src/feedback/CopyToClipboard/index.tsx +4 -1
  1237. package/src/feedback/ErrorSummary/ErrorSummary.stories.js +1 -0
  1238. package/src/feedback/ErrorSummary/__stories__/Dense.tsx +13 -0
  1239. package/src/feedback/NotificationBanner/NotificationBanner.stories.js +1 -0
  1240. package/src/feedback/NotificationBanner/__stories__/Dense.tsx +17 -0
  1241. package/src/feedback/NotificationBanner/index.tsx +2 -1
  1242. package/src/feedback/WarningText/WarningText.stories.js +1 -0
  1243. package/src/feedback/WarningText/__stories__/Dense.tsx +10 -0
  1244. package/src/form/Button/Button.stories.js +1 -0
  1245. package/src/form/Button/__stories__/Dense.tsx +8 -0
  1246. package/src/form/Checkbox/Checkbox.stories.js +1 -0
  1247. package/src/form/Checkbox/__stories__/Dense.tsx +35 -0
  1248. package/src/form/DateInputContainer/DateInputContainer.stories.js +1 -0
  1249. package/src/form/DateInputContainer/__stories__/Dense.tsx +31 -0
  1250. package/src/form/RadioContainer/RadioContainer.stories.js +1 -0
  1251. package/src/form/RadioContainer/__stories__/Dense.tsx +32 -0
  1252. package/src/form/SelectContainer/SelectContainer.stories.js +1 -0
  1253. package/src/form/SelectContainer/__stories__/Dense.tsx +24 -0
  1254. package/src/form/TextArea/TextArea.stories.js +1 -0
  1255. package/src/form/TextArea/__stories__/Dense.tsx +15 -0
  1256. package/src/form/TextInput/TextInput.stories.js +1 -0
  1257. package/src/form/TextInput/__stories__/Dense.tsx +15 -0
  1258. package/src/layouts/Basic/Content/index.tsx +0 -2
  1259. package/src/layouts/Basic/Side/index.tsx +0 -1
  1260. package/src/layouts/Basic/__snapshots__/index.spec.tsx.snap +43 -24
  1261. package/src/navigation/BackToTopLink/BackToTopLink.stories.js +8 -0
  1262. package/src/navigation/BackToTopLink/__stories__/Default.tsx +10 -0
  1263. package/src/navigation/BackToTopLink/__stories__/InMain.tsx +16 -0
  1264. package/src/navigation/BackToTopLink/index.tsx +53 -0
  1265. package/src/navigation/Drawer/Drawer.stories.js +3 -0
  1266. package/src/navigation/Drawer/__stories__/Auto.tsx +103 -0
  1267. package/src/navigation/Drawer/__stories__/WithHook.tsx +105 -0
  1268. package/src/navigation/Drawer/auto.tsx +84 -0
  1269. package/src/navigation/Drawer/hooks.ts +66 -0
  1270. package/src/navigation/Drawer/index.tsx +1 -1
  1271. package/src/navigation/Dropdown/Dropdown.stories.js +7 -0
  1272. package/src/navigation/Dropdown/Dropdown.stories.playwright.json +16 -0
  1273. package/src/navigation/Dropdown/__stories__/ContentPosition.tsx +107 -0
  1274. package/src/navigation/Dropdown/__stories__/Default.tsx +1 -4
  1275. package/src/navigation/Dropdown/__stories__/Dense.tsx +54 -0
  1276. package/src/navigation/Dropdown/__stories__/Disabled.tsx +49 -0
  1277. package/src/navigation/Dropdown/__stories__/Secondary.tsx +36 -0
  1278. package/src/navigation/Dropdown/__stories__/VariantLink.tsx +50 -0
  1279. package/src/navigation/Dropdown/__stories__/Warning.tsx +36 -0
  1280. package/src/navigation/Dropdown/__stories__/WithIcons.tsx +110 -0
  1281. package/src/navigation/Link/index.tsx +1 -1
  1282. package/src/navigation/NavList/NavList.stories.js +7 -5
  1283. package/src/navigation/NavList/NavList.stories.playwright.json +24 -4
  1284. package/src/navigation/NavList/NavListAuto/index.tsx +30 -28
  1285. package/src/navigation/NavList/__stories__/Default.tsx +11 -16
  1286. package/src/navigation/NavList/__stories__/HorizontalWithDrawer.tsx +84 -0
  1287. package/src/navigation/NavList/__stories__/HorizontalWithoutDrawer.tsx +69 -0
  1288. package/src/navigation/NavList/__stories__/NavLinksOneLevel.json +17 -0
  1289. package/src/navigation/NavList/__stories__/NavLinksWithSubmenu.json +36 -0
  1290. package/src/navigation/NavList/__stories__/NavListWithoutNav.tsx +24 -0
  1291. package/src/navigation/NavList/__stories__/UsingHeaderButton.tsx +89 -0
  1292. package/src/navigation/NavList/__stories__/UsingNavListAuto.tsx +32 -0
  1293. package/src/navigation/NavList/__stories__/Vertical.tsx +33 -0
  1294. package/src/navigation/NavList/__stories__/VerticalWithoutDrawer.tsx +73 -0
  1295. package/src/navigation/NavList/index.mdx +9 -3
  1296. package/src/navigation/NavList/index.tsx +1 -3
  1297. package/src/navigation/NavList/types.tsx +1 -0
  1298. package/src/navigation/Pagination/Pagination.stories.js +2 -0
  1299. package/src/navigation/Pagination/__stories__/Auto.tsx +64 -0
  1300. package/src/navigation/Pagination/__stories__/Default.tsx +5 -5
  1301. package/src/navigation/Pagination/__stories__/PaginationSmall.tsx +3 -3
  1302. package/src/navigation/Pagination/__stories__/PaginationWithSmallFont.tsx +3 -3
  1303. package/src/navigation/Pagination/__stories__/WithHook.tsx +72 -0
  1304. package/src/navigation/Pagination/__stories__/WithInactiveValues.tsx +5 -5
  1305. package/src/navigation/Pagination/__stories__/WithResultsPerPage.tsx +3 -3
  1306. package/src/navigation/Pagination/auto.tsx +141 -0
  1307. package/src/navigation/Pagination/hooks.ts +136 -0
  1308. package/src/navigation/Pagination/index.tsx +83 -0
  1309. package/src/navigation/Tabs/Tabs.stories.js +4 -2
  1310. package/src/navigation/Tabs/Tabs.stories.playwright.json +2 -2
  1311. package/src/navigation/Tabs/__stories__/Auto.tsx +72 -0
  1312. package/src/navigation/Tabs/__stories__/Default.tsx +40 -12
  1313. package/src/navigation/Tabs/__stories__/Dense.tsx +74 -0
  1314. package/src/navigation/Tabs/auto.tsx +60 -0
  1315. package/src/navigation/Tabs/hooks.ts +103 -0
  1316. package/src/navigation/Tabs/index.tsx +7 -50
  1317. package/src/registry.js +28 -2
  1318. package/src/utils/Base/index.tsx +1 -1
  1319. package/src/utils/Typography/index.tsx +4 -0
  1320. package/test-utils/delay.js +8 -21
  1321. package/typography/Caption/index.js +5 -24
  1322. package/typography/Caption/package.json +6 -0
  1323. package/typography/Heading/Heading.stories.js +4 -28
  1324. package/typography/Heading/__stories__/Default.js +10 -23
  1325. package/typography/Heading/index.js +3 -30
  1326. package/typography/Heading/package.json +6 -0
  1327. package/typography/HeadingCaption/HeadingCaption.stories.js +5 -42
  1328. package/typography/HeadingCaption/__stories__/Default.js +12 -26
  1329. package/typography/HeadingCaption/__stories__/NestedToTitle.js +7 -21
  1330. package/typography/HeadingCaption/index.js +3 -30
  1331. package/typography/HeadingCaption/package.json +6 -0
  1332. package/typography/Hint/Hint.stories.js +5 -42
  1333. package/typography/Hint/__stories__/Default.js +5 -18
  1334. package/typography/Hint/__stories__/FontSizes.js +9 -22
  1335. package/typography/Hint/index.js +3 -30
  1336. package/typography/Hint/package.json +6 -0
  1337. package/typography/NormalText/NormalText.stories.js +7 -70
  1338. package/typography/NormalText/__stories__/Default.js +5 -18
  1339. package/typography/NormalText/__stories__/FontSizes.js +19 -33
  1340. package/typography/NormalText/__stories__/FontWeight.js +9 -23
  1341. package/typography/NormalText/__stories__/Variants.js +9 -23
  1342. package/typography/NormalText/index.js +3 -30
  1343. package/typography/NormalText/package.json +6 -0
  1344. package/typography/Paragraph/Paragraph.stories.js +8 -84
  1345. package/typography/Paragraph/__stories__/Default.js +5 -18
  1346. package/typography/Paragraph/__stories__/FontSizes.js +12 -25
  1347. package/typography/Paragraph/__stories__/FontWeight.js +7 -20
  1348. package/typography/Paragraph/__stories__/LeadVariant.js +5 -18
  1349. package/typography/Paragraph/__stories__/SmallVariant.js +5 -18
  1350. package/typography/Paragraph/index.js +3 -30
  1351. package/typography/Paragraph/package.json +6 -0
  1352. package/typography/Title/index.js +11 -31
  1353. package/typography/Title/package.json +6 -0
  1354. package/typography/index.js +5 -70
  1355. package/typography/package.json +6 -0
  1356. package/utils/Base/index.d.ts +1 -1
  1357. package/utils/Base/index.js +3 -19
  1358. package/utils/Base/package.json +6 -0
  1359. package/utils/Kitchensink/AllComponents.js +7 -20
  1360. package/utils/Kitchensink/KitchensinkByCategory.js +7 -21
  1361. package/utils/Kitchensink/KitchensinkByLetter.js +8 -23
  1362. package/utils/Kitchensink/KitchensinkComponent.js +25 -45
  1363. package/utils/Kitchensink/KitchensinkDashboard.js +9 -23
  1364. package/utils/SvgIcon/index.js +4 -44
  1365. package/utils/SvgIcon/package.json +6 -0
  1366. package/utils/Typography/index.d.ts +3 -0
  1367. package/utils/Typography/index.js +3 -0
  1368. package/utils/Typography/package.json +6 -0
  1369. package/utils/VisuallyHidden/VisuallyHidden.stories.js +4 -28
  1370. package/utils/VisuallyHidden/__stories__/Default.js +11 -27
  1371. package/utils/VisuallyHidden/index.js +3 -30
  1372. package/utils/VisuallyHidden/package.json +6 -0
  1373. package/utils/hooks/useDebounce.js +6 -28
  1374. package/utils/hooks/useKeypress.js +5 -16
  1375. package/utils/hooks/useLatest.js +3 -17
  1376. package/utils/hooks/useSearch.js +6 -21
  1377. package/utils/hooks/useTogglableTab.js +19 -31
  1378. package/utils/index.js +3 -44
  1379. package/utils/package.json +6 -0
  1380. package/utils/withDeprecation.js +16 -29
  1381. package/app/AccessibilityMenu/index.d.ts +0 -19
  1382. package/app/AccessibilityMenu/index.js +0 -225
  1383. package/es/api/APIErrors.js +0 -96
  1384. package/es/api/APIProvider.js +0 -25
  1385. package/es/api/fetchAPI.js +0 -52
  1386. package/es/api/index.js +0 -13
  1387. package/es/api/index.spec.js +0 -548
  1388. package/es/api/useResource.js +0 -131
  1389. package/es/api/useResourceAction.js +0 -144
  1390. package/es/api/useResourceQuery.js +0 -211
  1391. package/es/api/utils.js +0 -236
  1392. package/es/app/AccessibilityMenu/index.js +0 -62
  1393. package/es/app/App.js +0 -14
  1394. package/es/app/BannerContainer/BannerContainer.stories.js +0 -10
  1395. package/es/app/BannerContainer/__stories__/CookiesBanner.js +0 -18
  1396. package/es/app/BannerContainer/index.js +0 -3
  1397. package/es/app/BottomInfo/index.js +0 -5
  1398. package/es/app/CloseButton/index.js +0 -3
  1399. package/es/app/FilterContainer/index.js +0 -11
  1400. package/es/app/Footer/Footer.stories.js +0 -17
  1401. package/es/app/Footer/__stories__/Default.js +0 -9
  1402. package/es/app/Footer/__stories__/DefaultCopyright.js +0 -19
  1403. package/es/app/Footer/__stories__/FooterAllInclusive.js +0 -69
  1404. package/es/app/Footer/__stories__/FooterWithLink.js +0 -32
  1405. package/es/app/Footer/__stories__/FooterWithLogo.js +0 -29
  1406. package/es/app/Footer/__stories__/FooterWithSecondaryNavigation.js +0 -52
  1407. package/es/app/Footer/__stories__/YearCopyright.js +0 -25
  1408. package/es/app/Footer/index.js +0 -15
  1409. package/es/app/Header/Header.stories.js +0 -18
  1410. package/es/app/Header/Header.stories.playwright.json +0 -49
  1411. package/es/app/Header/HeaderContent.js +0 -3
  1412. package/es/app/Header/HeaderLogo.js +0 -3
  1413. package/es/app/Header/HeaderNavMenuContent.js +0 -3
  1414. package/es/app/Header/HeaderSecondaryLogo.js +0 -3
  1415. package/es/app/Header/HeaderSection.js +0 -3
  1416. package/es/app/Header/HeaderTitle.js +0 -3
  1417. package/es/app/Header/__snapshots__/index.spec.tsx.snap +0 -52
  1418. package/es/app/Header/__stories__/Default.js +0 -14
  1419. package/es/app/Header/__stories__/WithHeaderNavigation.js +0 -40
  1420. package/es/app/Header/__stories__/WithNavigation.js +0 -35
  1421. package/es/app/Header/__stories__/WithServiceName.js +0 -15
  1422. package/es/app/Header/__stories__/WithServiceNameAndLogo.js +0 -20
  1423. package/es/app/Header/index.js +0 -9
  1424. package/es/app/Header/index.spec.js +0 -32
  1425. package/es/app/Loader/Loader.stories.js +0 -7
  1426. package/es/app/Loader/__stories__/Default.js +0 -9
  1427. package/es/app/Loader/index.js +0 -5
  1428. package/es/app/Masthead/Masthead.stories.js +0 -12
  1429. package/es/app/Masthead/__stories__/Default.js +0 -15
  1430. package/es/app/Masthead/__stories__/WithElements.js +0 -21
  1431. package/es/app/Masthead/__stories__/WithLogo.js +0 -19
  1432. package/es/app/Masthead/index.js +0 -5
  1433. package/es/app/Modal/Modal.stories.js +0 -10
  1434. package/es/app/Modal/__stories__/AlertDialog.js +0 -44
  1435. package/es/app/Modal/__stories__/Default.js +0 -42
  1436. package/es/app/Modal/index.js +0 -93
  1437. package/es/app/NotFound/NotFound.stories.js +0 -7
  1438. package/es/app/NotFound/__stories__/Default.js +0 -9
  1439. package/es/app/NotFound/index.js +0 -12
  1440. package/es/app/OutdatedBrowserBanner/hooks/evaluateBrowserVersion.js +0 -201
  1441. package/es/app/OutdatedBrowserBanner/hooks/useOutdatedBrowserCheck.js +0 -47
  1442. package/es/app/OutdatedBrowserBanner/index.js +0 -25
  1443. package/es/app/PageTitleContainer/index.js +0 -5
  1444. package/es/app/Panel/Panel.stories.js +0 -9
  1445. package/es/app/Panel/__stories__/Default.js +0 -9
  1446. package/es/app/Panel/index.js +0 -5
  1447. package/es/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +0 -7
  1448. package/es/app/PhaseBannerHeader/__stories__/Default.js +0 -12
  1449. package/es/app/PhaseBannerHeader/index.js +0 -19
  1450. package/es/app/QrCodeScanner/QrCodeScanner.stories.js +0 -7
  1451. package/es/app/QrCodeScanner/__stories__/Default.js +0 -52
  1452. package/es/app/QrCodeScanner/index.js +0 -66
  1453. package/es/app/QrCodeScanner/index.spec.js +0 -15
  1454. package/es/app/QrCodeViewer/QRCode.stories.js +0 -9
  1455. package/es/app/QrCodeViewer/__stories__/Custom.js +0 -22
  1456. package/es/app/QrCodeViewer/__stories__/Default.js +0 -11
  1457. package/es/app/QrCodeViewer/index.js +0 -156
  1458. package/es/app/QrCodeViewer/qrcodegen.js +0 -1085
  1459. package/es/app/QrCodeViewer/types.js +0 -1
  1460. package/es/app/QrCodeViewer/utils.js +0 -95
  1461. package/es/app/ThemeOptions/index.js +0 -255
  1462. package/es/app/hooks/useFontSize.js +0 -10
  1463. package/es/app/hooks/useHighlightLinks.js +0 -38
  1464. package/es/app/hooks/useLetterSpacing.js +0 -10
  1465. package/es/app/hooks/useLineHeight.js +0 -10
  1466. package/es/app/hooks/useTheme.js +0 -51
  1467. package/es/app/hooks/useVariantVars.js +0 -30
  1468. package/es/app/index.js +0 -17
  1469. package/es/content/Accordion/Accordion.stories.js +0 -11
  1470. package/es/content/Accordion/__snapshots__/index.spec.tsx.snap +0 -151
  1471. package/es/content/Accordion/__stories__/Default.js +0 -31
  1472. package/es/content/Accordion/__stories__/WithHints.js +0 -32
  1473. package/es/content/Accordion/index.js +0 -97
  1474. package/es/content/Accordion/index.spec.js +0 -9
  1475. package/es/content/Blockquote/Blockquote.stories.js +0 -10
  1476. package/es/content/Blockquote/__stories__/Default.js +0 -9
  1477. package/es/content/Blockquote/__stories__/Dense.js +0 -11
  1478. package/es/content/Blockquote/index.js +0 -3
  1479. package/es/content/Blockquote/index.spec.js +0 -9
  1480. package/es/content/Card/Card.stories.js +0 -20
  1481. package/es/content/Card/__stories__/Default.js +0 -10
  1482. package/es/content/Card/__stories__/Dense.js +0 -14
  1483. package/es/content/Card/__stories__/WithClickableContent.js +0 -14
  1484. package/es/content/Card/__stories__/WithClickableLink.js +0 -12
  1485. package/es/content/Card/__stories__/WithDarkBorder.js +0 -13
  1486. package/es/content/Card/__stories__/WithDarkTopBorder.js +0 -13
  1487. package/es/content/Card/__stories__/WithDivider.js +0 -12
  1488. package/es/content/Card/__stories__/WithGrayBorder.js +0 -13
  1489. package/es/content/Card/__stories__/WithGrayTopBorder.js +0 -13
  1490. package/es/content/Card/__stories__/WithGroupButton.js +0 -11
  1491. package/es/content/Card/__stories__/WithLink.js +0 -10
  1492. package/es/content/Card/index.js +0 -6
  1493. package/es/content/Chip/Chip.stories.js +0 -12
  1494. package/es/content/Chip/__stories__/ClickableChip.js +0 -10
  1495. package/es/content/Chip/__stories__/ClickableDeletableChip.js +0 -13
  1496. package/es/content/Chip/__stories__/Default.js +0 -9
  1497. package/es/content/Chip/__stories__/DeletableChip.js +0 -10
  1498. package/es/content/Chip/__stories__/GroupOfChips.js +0 -9
  1499. package/es/content/Chip/index.js +0 -6
  1500. package/es/content/Details/Details.stories.js +0 -9
  1501. package/es/content/Details/__snapshots__/index.spec.tsx.snap +0 -81
  1502. package/es/content/Details/__stories__/Default.js +0 -9
  1503. package/es/content/Details/index.js +0 -5
  1504. package/es/content/Details/index.spec.js +0 -17
  1505. package/es/content/FillableText/index.js +0 -4
  1506. package/es/content/List/List.js +0 -3
  1507. package/es/content/List/List.stories.js +0 -14
  1508. package/es/content/List/ListItem.js +0 -3
  1509. package/es/content/List/ListItemContent.js +0 -14
  1510. package/es/content/List/ListItemIcon.js +0 -14
  1511. package/es/content/List/ListItemText.js +0 -15
  1512. package/es/content/List/ListItemTitle.js +0 -21
  1513. package/es/content/List/__stories__/BulletList.js +0 -12
  1514. package/es/content/List/__stories__/Default.js +0 -11
  1515. package/es/content/List/__stories__/HorizontalList.js +0 -13
  1516. package/es/content/List/__stories__/NestedBulletList.js +0 -20
  1517. package/es/content/List/__stories__/NumberedList.js +0 -12
  1518. package/es/content/List/__stories__/WithExtraSpace.js +0 -12
  1519. package/es/content/List/index.js +0 -7
  1520. package/es/content/List/index.spec.js +0 -8
  1521. package/es/content/StepNav/StepNav.stories.js +0 -11
  1522. package/es/content/StepNav/__stories__/Default.js +0 -178
  1523. package/es/content/StepNav/__stories__/Dense.js +0 -180
  1524. package/es/content/StepNav/__stories__/WithHints.js +0 -189
  1525. package/es/content/StepNav/index.js +0 -13
  1526. package/es/content/SummaryList/SummaryList.stories.js +0 -15
  1527. package/es/content/SummaryList/__stories__/Default.js +0 -17
  1528. package/es/content/SummaryList/__stories__/RowVariations.js +0 -37
  1529. package/es/content/SummaryList/__stories__/WithActions.js +0 -20
  1530. package/es/content/SummaryList/__stories__/WithKeyAndAction.js +0 -20
  1531. package/es/content/SummaryList/__stories__/WithoutActions.js +0 -9
  1532. package/es/content/SummaryList/__stories__/WithoutBorders.js +0 -19
  1533. package/es/content/SummaryList/index.js +0 -7
  1534. package/es/content/SummaryList/index.spec.js +0 -9
  1535. package/es/content/Table/Table.stories.js +0 -27
  1536. package/es/content/Table/TableFloatingScroll.js +0 -87
  1537. package/es/content/Table/__stories__/DarkVariant.js +0 -47
  1538. package/es/content/Table/__stories__/DarkVariantWithVerticalHeaders.js +0 -47
  1539. package/es/content/Table/__stories__/Default.js +0 -41
  1540. package/es/content/Table/__stories__/DefinedWidth.js +0 -43
  1541. package/es/content/Table/__stories__/Densed.js +0 -104
  1542. package/es/content/Table/__stories__/Full.js +0 -91
  1543. package/es/content/Table/__stories__/MultipleProps.js +0 -71
  1544. package/es/content/Table/__stories__/NoData.js +0 -11
  1545. package/es/content/Table/__stories__/NumericDataType.js +0 -61
  1546. package/es/content/Table/__stories__/RowColors.js +0 -60
  1547. package/es/content/Table/__stories__/Stacked.js +0 -43
  1548. package/es/content/Table/__stories__/TableCaptions.js +0 -17
  1549. package/es/content/Table/__stories__/VerticalBorders.js +0 -47
  1550. package/es/content/Table/__stories__/VerticalHeaders.js +0 -41
  1551. package/es/content/Table/__stories__/WithFloatingScroll.js +0 -72
  1552. package/es/content/Table/__stories__/WithLoader.js +0 -71
  1553. package/es/content/Table/__stories__/WithSortFilters.js +0 -104
  1554. package/es/content/Table/__stories__/ZebraProp.js +0 -47
  1555. package/es/content/Table/hooks/useSort.js +0 -54
  1556. package/es/content/Table/index.js +0 -103
  1557. package/es/content/TaskList/TaskList.stories.js +0 -9
  1558. package/es/content/TaskList/__stories__/Default.js +0 -74
  1559. package/es/content/TaskList/__stories__/Dense.js +0 -76
  1560. package/es/content/TaskList/index.js +0 -7
  1561. package/es/content/Timeline/Timeline.stories.js +0 -9
  1562. package/es/content/Timeline/__stories__/Default.js +0 -122
  1563. package/es/content/Timeline/__stories__/Dense.js +0 -124
  1564. package/es/content/Timeline/index.js +0 -7
  1565. package/es/content/index.js +0 -12
  1566. package/es/custom.d.js +0 -0
  1567. package/es/feedback/CopyToClipboard/CopyToClipboard.stories.js +0 -8
  1568. package/es/feedback/CopyToClipboard/CopyToClipboard.stories.playwright.json +0 -37
  1569. package/es/feedback/CopyToClipboard/__stories__/Banner.js +0 -16
  1570. package/es/feedback/CopyToClipboard/__stories__/Default.js +0 -19
  1571. package/es/feedback/CopyToClipboard/index.js +0 -51
  1572. package/es/feedback/ErrorSummary/ErrorSummary.stories.js +0 -13
  1573. package/es/feedback/ErrorSummary/__stories__/Default.js +0 -13
  1574. package/es/feedback/ErrorSummary/__stories__/LinkedToCheckbox.js +0 -30
  1575. package/es/feedback/ErrorSummary/__stories__/LinkedToField.js +0 -31
  1576. package/es/feedback/ErrorSummary/__stories__/LinkedToInput.js +0 -30
  1577. package/es/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.js +0 -35
  1578. package/es/feedback/ErrorSummary/index.js +0 -3
  1579. package/es/feedback/ErrorSummary/index.spec.js +0 -8
  1580. package/es/feedback/NotificationBanner/NotificationBanner.stories.js +0 -11
  1581. package/es/feedback/NotificationBanner/__stories__/Default.js +0 -12
  1582. package/es/feedback/NotificationBanner/__stories__/Success.js +0 -13
  1583. package/es/feedback/NotificationBanner/index.js +0 -27
  1584. package/es/feedback/NotificationBanner/index.spec.js +0 -19
  1585. package/es/feedback/PhaseBanner/PhaseBanner.stories.js +0 -10
  1586. package/es/feedback/PhaseBanner/__stories__/Default.js +0 -12
  1587. package/es/feedback/PhaseBanner/__stories__/Underlined.js +0 -14
  1588. package/es/feedback/PhaseBanner/index.js +0 -6
  1589. package/es/feedback/ServiceBadge/index.js +0 -19
  1590. package/es/feedback/WarningText/WarningText.stories.js +0 -10
  1591. package/es/feedback/WarningText/__stories__/AssistiveText.js +0 -11
  1592. package/es/feedback/WarningText/__stories__/Default.js +0 -9
  1593. package/es/feedback/WarningText/index.js +0 -3
  1594. package/es/feedback/WarningText/index.spec.js +0 -8
  1595. package/es/feedback/index.js +0 -6
  1596. package/es/form/AutoComplete/AutoComplete.stories.js +0 -14
  1597. package/es/form/AutoComplete/Status/index.js +0 -153
  1598. package/es/form/AutoComplete/__stories__/Default.js +0 -16
  1599. package/es/form/AutoComplete/__stories__/WithAutoSelect.js +0 -30
  1600. package/es/form/AutoComplete/__stories__/WithDefaultValue.js +0 -17
  1601. package/es/form/AutoComplete/__stories__/WithInLine.js +0 -17
  1602. package/es/form/AutoComplete/__stories__/WithMinLength.js +0 -18
  1603. package/es/form/AutoComplete/__stories__/WithPlaceHolder.js +0 -17
  1604. package/es/form/AutoComplete/__stories__/WithShowAllValues.js +0 -17
  1605. package/es/form/AutoComplete/__stories__/utils.js +0 -0
  1606. package/es/form/AutoComplete/index.js +0 -653
  1607. package/es/form/AutoComplete/utils.js +0 -28
  1608. package/es/form/Button/BackButton.js +0 -21
  1609. package/es/form/Button/Button.stories.js +0 -20
  1610. package/es/form/Button/ButtonLink.js +0 -3
  1611. package/es/form/Button/CallToAction.js +0 -3
  1612. package/es/form/Button/Icon.js +0 -7
  1613. package/es/form/Button/ThemeToggleButton.js +0 -49
  1614. package/es/form/Button/__stories__/Back.js +0 -13
  1615. package/es/form/Button/__stories__/ButtonLinkButton.js +0 -17
  1616. package/es/form/Button/__stories__/CallToActionButton.js +0 -14
  1617. package/es/form/Button/__stories__/Disabled.js +0 -13
  1618. package/es/form/Button/__stories__/GroupingButtons.js +0 -11
  1619. package/es/form/Button/__stories__/GroupingButtonsAndLinks.js +0 -12
  1620. package/es/form/Button/__stories__/Primary.js +0 -11
  1621. package/es/form/Button/__stories__/Secondary.js +0 -12
  1622. package/es/form/Button/__stories__/ThemeToggle.js +0 -9
  1623. package/es/form/Button/__stories__/Warning.js +0 -12
  1624. package/es/form/Button/__stories__/WithVariantLink.js +0 -12
  1625. package/es/form/Button/index.js +0 -20
  1626. package/es/form/Button/index.spec.js +0 -9
  1627. package/es/form/Checkbox/Checkbox.stories.js +0 -17
  1628. package/es/form/Checkbox/__stories__/ConditionalReveal.js +0 -26
  1629. package/es/form/Checkbox/__stories__/Default.js +0 -24
  1630. package/es/form/Checkbox/__stories__/Inline.js +0 -23
  1631. package/es/form/Checkbox/__stories__/InlineWithDivider.js +0 -24
  1632. package/es/form/Checkbox/__stories__/MultipleQuestions.js +0 -26
  1633. package/es/form/Checkbox/__stories__/NoneAnswer.js +0 -20
  1634. package/es/form/Checkbox/__stories__/NoneAnswerWithError.js +0 -26
  1635. package/es/form/Checkbox/__stories__/WithErrorMessage.js +0 -27
  1636. package/es/form/Checkbox/__stories__/WithHint.js +0 -27
  1637. package/es/form/Checkbox/index.js +0 -5
  1638. package/es/form/DateInputContainer/DateInputContainer.stories.js +0 -12
  1639. package/es/form/DateInputContainer/__stories__/Default.js +0 -24
  1640. package/es/form/DateInputContainer/__stories__/MultipleQuestions.js +0 -24
  1641. package/es/form/DateInputContainer/__stories__/WithErrorMessage.js +0 -35
  1642. package/es/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +0 -32
  1643. package/es/form/DateInputContainer/index.js +0 -4
  1644. package/es/form/ErrorMessage/ErrorMessage.stories.js +0 -11
  1645. package/es/form/ErrorMessage/__stories__/DateInputError.js +0 -24
  1646. package/es/form/ErrorMessage/__stories__/Default.js +0 -32
  1647. package/es/form/ErrorMessage/__stories__/ErrorMessageOnly.js +0 -12
  1648. package/es/form/ErrorMessage/index.js +0 -3
  1649. package/es/form/FieldContainer/index.js +0 -5
  1650. package/es/form/FileUpload/FileUpload.stories.js +0 -9
  1651. package/es/form/FileUpload/__stories__/Default.js +0 -17
  1652. package/es/form/FileUpload/__stories__/WithErrorMessage.js +0 -21
  1653. package/es/form/FileUpload/index.js +0 -4
  1654. package/es/form/Form/index.js +0 -3
  1655. package/es/form/LabelContainer/index.js +0 -4
  1656. package/es/form/RadioContainer/RadioContainer.stories.js +0 -17
  1657. package/es/form/RadioContainer/__stories__/ConditionalReveal.js +0 -26
  1658. package/es/form/RadioContainer/__stories__/Default.js +0 -22
  1659. package/es/form/RadioContainer/__stories__/Inline.js +0 -23
  1660. package/es/form/RadioContainer/__stories__/InlineWithDivider.js +0 -24
  1661. package/es/form/RadioContainer/__stories__/MultipleQuestions.js +0 -26
  1662. package/es/form/RadioContainer/__stories__/NoneAnswer.js +0 -24
  1663. package/es/form/RadioContainer/__stories__/WithErrorMessage.js +0 -29
  1664. package/es/form/RadioContainer/__stories__/WithHints.js +0 -29
  1665. package/es/form/RadioContainer/__stories__/WithMediumLegend.js +0 -24
  1666. package/es/form/RadioContainer/index.js +0 -5
  1667. package/es/form/SearchContainer/index.js +0 -5
  1668. package/es/form/SelectContainer/SelectContainer.stories.js +0 -11
  1669. package/es/form/SelectContainer/__stories__/Default.js +0 -22
  1670. package/es/form/SelectContainer/__stories__/DisabledInput.js +0 -24
  1671. package/es/form/SelectContainer/__stories__/WithHint.js +0 -26
  1672. package/es/form/SelectContainer/index.js +0 -4
  1673. package/es/form/SingleCharacterInputs/SingleCharacterInput.stories.js +0 -12
  1674. package/es/form/SingleCharacterInputs/__stories__/Default.js +0 -35
  1675. package/es/form/SingleCharacterInputs/__stories__/WithDefaultError.js +0 -39
  1676. package/es/form/SingleCharacterInputs/__stories__/WithErrorMessageInvalidCode.js +0 -49
  1677. package/es/form/SingleCharacterInputs/__stories__/WithErrorMessageLessDigit.js +0 -43
  1678. package/es/form/SingleCharacterInputs/index.js +0 -4
  1679. package/es/form/TextArea/TextArea.stories.js +0 -15
  1680. package/es/form/TextArea/__stories__/Default.js +0 -16
  1681. package/es/form/TextArea/__stories__/DisabledInput.js +0 -21
  1682. package/es/form/TextArea/__stories__/LimitedCharacters.js +0 -24
  1683. package/es/form/TextArea/__stories__/MultipleQuestions.js +0 -17
  1684. package/es/form/TextArea/__stories__/WithDeclaredRows.js +0 -21
  1685. package/es/form/TextArea/__stories__/WithErrorMessage.js +0 -27
  1686. package/es/form/TextArea/__stories__/WithHint.js +0 -20
  1687. package/es/form/TextArea/index.js +0 -3
  1688. package/es/form/TextInput/TextInput.stories.js +0 -16
  1689. package/es/form/TextInput/__stories__/AskingForNumbers.js +0 -22
  1690. package/es/form/TextInput/__stories__/Default.js +0 -16
  1691. package/es/form/TextInput/__stories__/DisabledInput.js +0 -21
  1692. package/es/form/TextInput/__stories__/FixedWidths.js +0 -42
  1693. package/es/form/TextInput/__stories__/FluidWidths.js +0 -42
  1694. package/es/form/TextInput/__stories__/MultipleQuestions.js +0 -13
  1695. package/es/form/TextInput/__stories__/WithErrorMessage.js +0 -27
  1696. package/es/form/TextInput/__stories__/WithHint.js +0 -20
  1697. package/es/form/TextInput/index.js +0 -3
  1698. package/es/form/index.js +0 -15
  1699. package/es/govgr/Footer/Copyright.js +0 -39
  1700. package/es/govgr/Footer/HellenicRepublicLogo.js +0 -3
  1701. package/es/govgr/Footer/LicenseCCSA.js +0 -18
  1702. package/es/govgr/Footer/index.js +0 -21
  1703. package/es/govgr/Footer/logo.js +0 -1
  1704. package/es/govgr/Footer/logos/logo-el.js +0 -1
  1705. package/es/govgr/Footer/logos/logo-en.js +0 -1
  1706. package/es/govgr/GovGRLogo/index.js +0 -3
  1707. package/es/govgr/GovGRLogo/logo.js +0 -1
  1708. package/es/govgr/images/govgr-logo-base64.js +0 -1
  1709. package/es/govgr/images/govgr-logo-blue-base64.js +0 -1
  1710. package/es/govgr/images/greek-government-base64.js +0 -1
  1711. package/es/govgr/images/grnet-logo-base64.js +0 -1
  1712. package/es/govgr/images/index.js +0 -5
  1713. package/es/govgr/images/minedu-logo-base64.js +0 -1
  1714. package/es/govgr/images/minedu-logo-black-base64.js +0 -1
  1715. package/es/govgr/index.js +0 -5
  1716. package/es/i18n/I18nText.js +0 -79
  1717. package/es/i18n/index.js +0 -54
  1718. package/es/i18n/locales/el.js +0 -101
  1719. package/es/i18n/locales/en.js +0 -96
  1720. package/es/icons/Icon/index.js +0 -5
  1721. package/es/icons/ImageLogo/index.js +0 -3
  1722. package/es/icons/ImageLogoSet/index.js +0 -3
  1723. package/es/icons/index.js +0 -2
  1724. package/es/index.js +0 -11
  1725. package/es/layouts/Admin/index.js +0 -9
  1726. package/es/layouts/Basic/Aside/index.js +0 -3
  1727. package/es/layouts/Basic/Basic.stories.js +0 -11
  1728. package/es/layouts/Basic/Bottom/index.js +0 -3
  1729. package/es/layouts/Basic/Container/index.js +0 -3
  1730. package/es/layouts/Basic/Content/index.js +0 -20
  1731. package/es/layouts/Basic/Main/index.js +0 -3
  1732. package/es/layouts/Basic/Masthead/index.js +0 -5
  1733. package/es/layouts/Basic/Side/index.js +0 -8
  1734. package/es/layouts/Basic/Top/index.js +0 -3
  1735. package/es/layouts/Basic/__snapshots__/index.spec.tsx.snap +0 -89
  1736. package/es/layouts/Basic/__stories__/Default.js +0 -12
  1737. package/es/layouts/Basic/__stories__/MultipleRowsLayout.js +0 -15
  1738. package/es/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +0 -15
  1739. package/es/layouts/Basic/index.js +0 -11
  1740. package/es/layouts/Basic/index.spec.js +0 -10
  1741. package/es/layouts/Divider/Divider.stories.js +0 -8
  1742. package/es/layouts/Divider/__stories__/Default.js +0 -21
  1743. package/es/layouts/Divider/index.js +0 -9
  1744. package/es/layouts/Grid/Grid.stories.js +0 -9
  1745. package/es/layouts/Grid/__stories__/Default.js +0 -75
  1746. package/es/layouts/Grid/__stories__/Inline.js +0 -76
  1747. package/es/layouts/Grid/__stories__/ResponsiveSpacing.js +0 -79
  1748. package/es/layouts/Grid/index.js +0 -3
  1749. package/es/layouts/Hidden/index.js +0 -1
  1750. package/es/layouts/Section/index.js +0 -3
  1751. package/es/layouts/SectionBreak/index.js +0 -3
  1752. package/es/layouts/Stack/Stack.stories.js +0 -12
  1753. package/es/layouts/Stack/__stories__/AlignItems.js +0 -67
  1754. package/es/layouts/Stack/__stories__/Default.js +0 -24
  1755. package/es/layouts/Stack/__stories__/JustifyContent.js +0 -84
  1756. package/es/layouts/Stack/__stories__/NoWrap.js +0 -26
  1757. package/es/layouts/Stack/__stories__/Row.js +0 -25
  1758. package/es/layouts/Stack/__stories__/Spacing.js +0 -55
  1759. package/es/layouts/Stack/index.js +0 -2
  1760. package/es/layouts/index.js +0 -13
  1761. package/es/misc/KitchenSink/index.js +0 -8
  1762. package/es/navigation/BackLink/BackLink.stories.js +0 -7
  1763. package/es/navigation/BackLink/__stories__/Default.js +0 -12
  1764. package/es/navigation/BackLink/index.js +0 -3
  1765. package/es/navigation/Breadcrumbs/Breadcrumbs.stories.js +0 -9
  1766. package/es/navigation/Breadcrumbs/__stories__/Default.js +0 -21
  1767. package/es/navigation/Breadcrumbs/index.js +0 -5
  1768. package/es/navigation/Drawer/Drawer.stories.js +0 -9
  1769. package/es/navigation/Drawer/__stories__/Default.js +0 -86
  1770. package/es/navigation/Drawer/index.js +0 -4
  1771. package/es/navigation/Dropdown/Dropdown.stories.js +0 -12
  1772. package/es/navigation/Dropdown/Dropdown.stories.playwright.json +0 -53
  1773. package/es/navigation/Dropdown/__stories__/AlignRight.js +0 -56
  1774. package/es/navigation/Dropdown/__stories__/Default.js +0 -48
  1775. package/es/navigation/Dropdown/__stories__/PlacementTop.js +0 -61
  1776. package/es/navigation/Dropdown/index.js +0 -105
  1777. package/es/navigation/Link/Link.stories.js +0 -13
  1778. package/es/navigation/Link/__stories__/DarkBackground.js +0 -19
  1779. package/es/navigation/Link/__stories__/DarkBackgroundNoUnderline.js +0 -20
  1780. package/es/navigation/Link/__stories__/Default.js +0 -13
  1781. package/es/navigation/Link/__stories__/ExternalLink.js +0 -14
  1782. package/es/navigation/Link/__stories__/NoUnderline.js +0 -14
  1783. package/es/navigation/Link/__stories__/OpensInNewTab.js +0 -13
  1784. package/es/navigation/Link/index.js +0 -30
  1785. package/es/navigation/Link/index.spec.js +0 -21
  1786. package/es/navigation/NavList/Nav.js +0 -3
  1787. package/es/navigation/NavList/NavList.js +0 -3
  1788. package/es/navigation/NavList/NavList.stories.js +0 -14
  1789. package/es/navigation/NavList/NavList.stories.playwright.json +0 -33
  1790. package/es/navigation/NavList/NavListAuto/index.js +0 -54
  1791. package/es/navigation/NavList/NavMenuContentList.js +0 -66
  1792. package/es/navigation/NavList/__stories__/Default.js +0 -39
  1793. package/es/navigation/NavList/__stories__/NavVertical.js +0 -37
  1794. package/es/navigation/NavList/__stories__/NavVerticalLayout.js +0 -76
  1795. package/es/navigation/NavList/__stories__/NavVerticalWithTitle.js +0 -43
  1796. package/es/navigation/NavList/__stories__/WithBurgerIcon.js +0 -56
  1797. package/es/navigation/NavList/__stories__/WithSubMenu.js +0 -73
  1798. package/es/navigation/NavList/hooks/useNavList.js +0 -39
  1799. package/es/navigation/NavList/hooks/useTogglableNav.js +0 -307
  1800. package/es/navigation/NavList/index.js +0 -19
  1801. package/es/navigation/NavList/index.mdx +0 -28
  1802. package/es/navigation/NavList/index.spec.js +0 -8
  1803. package/es/navigation/NavList/types.js +0 -1
  1804. package/es/navigation/Pagination/Pagination.stories.js +0 -13
  1805. package/es/navigation/Pagination/__stories__/Default.js +0 -67
  1806. package/es/navigation/Pagination/__stories__/PaginationSmall.js +0 -35
  1807. package/es/navigation/Pagination/__stories__/PaginationWithSmallFont.js +0 -44
  1808. package/es/navigation/Pagination/__stories__/WithInactiveValues.js +0 -69
  1809. package/es/navigation/Pagination/__stories__/WithResultsPerPage.js +0 -40
  1810. package/es/navigation/Pagination/index.js +0 -23
  1811. package/es/navigation/SkipLink/SkipLink.stories.js +0 -8
  1812. package/es/navigation/SkipLink/__stories__/Default.js +0 -12
  1813. package/es/navigation/SkipLink/index.js +0 -3
  1814. package/es/navigation/Tabs/Tabs.stories.js +0 -10
  1815. package/es/navigation/Tabs/Tabs.stories.playwright.json +0 -27
  1816. package/es/navigation/Tabs/__stories__/Default.js +0 -44
  1817. package/es/navigation/Tabs/index.js +0 -55
  1818. package/es/navigation/index.js +0 -9
  1819. package/es/registry.js +0 -494
  1820. package/es/test-utils/delay.js +0 -34
  1821. package/es/typography/Caption/index.js +0 -8
  1822. package/es/typography/Heading/Heading.stories.js +0 -7
  1823. package/es/typography/Heading/__stories__/Default.js +0 -29
  1824. package/es/typography/Heading/index.js +0 -3
  1825. package/es/typography/HeadingCaption/HeadingCaption.stories.js +0 -8
  1826. package/es/typography/HeadingCaption/__stories__/Default.js +0 -35
  1827. package/es/typography/HeadingCaption/__stories__/NestedToTitle.js +0 -15
  1828. package/es/typography/HeadingCaption/index.js +0 -3
  1829. package/es/typography/Hint/Hint.stories.js +0 -8
  1830. package/es/typography/Hint/__stories__/Default.js +0 -9
  1831. package/es/typography/Hint/__stories__/FontSizes.js +0 -21
  1832. package/es/typography/Hint/index.js +0 -3
  1833. package/es/typography/NormalText/NormalText.stories.js +0 -10
  1834. package/es/typography/NormalText/__stories__/Default.js +0 -9
  1835. package/es/typography/NormalText/__stories__/FontSizes.js +0 -60
  1836. package/es/typography/NormalText/__stories__/FontWeight.js +0 -20
  1837. package/es/typography/NormalText/__stories__/Variants.js +0 -20
  1838. package/es/typography/NormalText/index.js +0 -3
  1839. package/es/typography/Paragraph/Paragraph.stories.js +0 -11
  1840. package/es/typography/Paragraph/__stories__/Default.js +0 -9
  1841. package/es/typography/Paragraph/__stories__/FontSizes.js +0 -35
  1842. package/es/typography/Paragraph/__stories__/FontWeight.js +0 -15
  1843. package/es/typography/Paragraph/__stories__/LeadVariant.js +0 -11
  1844. package/es/typography/Paragraph/__stories__/SmallVariant.js +0 -11
  1845. package/es/typography/Paragraph/index.js +0 -3
  1846. package/es/typography/Title/index.js +0 -42
  1847. package/es/typography/index.js +0 -5
  1848. package/es/utils/Base/index.js +0 -3
  1849. package/es/utils/Kitchensink/AllComponents.js +0 -11
  1850. package/es/utils/Kitchensink/KitchensinkByCategory.js +0 -38
  1851. package/es/utils/Kitchensink/KitchensinkByLetter.js +0 -19
  1852. package/es/utils/Kitchensink/KitchensinkComponent.js +0 -46
  1853. package/es/utils/Kitchensink/KitchensinkDashboard.js +0 -49
  1854. package/es/utils/SvgIcon/index.js +0 -4
  1855. package/es/utils/VisuallyHidden/VisuallyHidden.stories.js +0 -7
  1856. package/es/utils/VisuallyHidden/__stories__/Default.js +0 -16
  1857. package/es/utils/VisuallyHidden/index.js +0 -3
  1858. package/es/utils/hooks/useDebounce.js +0 -41
  1859. package/es/utils/hooks/useKeypress.js +0 -20
  1860. package/es/utils/hooks/useLatest.js +0 -12
  1861. package/es/utils/hooks/useSearch.js +0 -25
  1862. package/es/utils/hooks/useTogglableTab.js +0 -102
  1863. package/es/utils/index.js +0 -3
  1864. package/es/utils/withDeprecation.js +0 -106
  1865. package/esm/api/APIErrors.js +0 -96
  1866. package/esm/api/APIProvider.js +0 -25
  1867. package/esm/api/fetchAPI.js +0 -52
  1868. package/esm/api/index.js +0 -13
  1869. package/esm/api/index.spec.js +0 -548
  1870. package/esm/api/introduction.md +0 -6
  1871. package/esm/api/useResource.js +0 -131
  1872. package/esm/api/useResourceAction.js +0 -144
  1873. package/esm/api/useResourceQuery.js +0 -211
  1874. package/esm/api/utils.js +0 -236
  1875. package/esm/app/AccessibilityMenu/index.js +0 -62
  1876. package/esm/app/App.js +0 -14
  1877. package/esm/app/BannerContainer/BannerContainer.stories.js +0 -10
  1878. package/esm/app/BannerContainer/__stories__/CookiesBanner.js +0 -18
  1879. package/esm/app/BannerContainer/index.js +0 -3
  1880. package/esm/app/BottomInfo/index.js +0 -5
  1881. package/esm/app/CloseButton/index.js +0 -3
  1882. package/esm/app/FilterContainer/index.js +0 -11
  1883. package/esm/app/Footer/Footer.stories.js +0 -17
  1884. package/esm/app/Footer/Footer.stories.playwright.json +0 -27
  1885. package/esm/app/Footer/__stories__/Default.js +0 -9
  1886. package/esm/app/Footer/__stories__/DefaultCopyright.js +0 -19
  1887. package/esm/app/Footer/__stories__/FooterAllInclusive.js +0 -69
  1888. package/esm/app/Footer/__stories__/FooterWithLink.js +0 -32
  1889. package/esm/app/Footer/__stories__/FooterWithLogo.js +0 -29
  1890. package/esm/app/Footer/__stories__/FooterWithSecondaryNavigation.js +0 -52
  1891. package/esm/app/Footer/__stories__/YearCopyright.js +0 -25
  1892. package/esm/app/Footer/index.js +0 -15
  1893. package/esm/app/Footer/index.mdx +0 -34
  1894. package/esm/app/Header/Header.stories.js +0 -18
  1895. package/esm/app/Header/Header.stories.playwright.json +0 -49
  1896. package/esm/app/Header/HeaderContent.js +0 -3
  1897. package/esm/app/Header/HeaderLogo.js +0 -3
  1898. package/esm/app/Header/HeaderNavMenuContent.js +0 -3
  1899. package/esm/app/Header/HeaderSecondaryLogo.js +0 -3
  1900. package/esm/app/Header/HeaderSection.js +0 -3
  1901. package/esm/app/Header/HeaderTitle.js +0 -3
  1902. package/esm/app/Header/__snapshots__/index.spec.tsx.snap +0 -52
  1903. package/esm/app/Header/__stories__/Default.js +0 -14
  1904. package/esm/app/Header/__stories__/WithHeaderNavigation.js +0 -40
  1905. package/esm/app/Header/__stories__/WithNavigation.js +0 -35
  1906. package/esm/app/Header/__stories__/WithServiceName.js +0 -15
  1907. package/esm/app/Header/__stories__/WithServiceNameAndLogo.js +0 -20
  1908. package/esm/app/Header/index.js +0 -9
  1909. package/esm/app/Header/index.mdx +0 -30
  1910. package/esm/app/Header/index.spec.js +0 -32
  1911. package/esm/app/Loader/Loader.stories.js +0 -7
  1912. package/esm/app/Loader/__stories__/Default.js +0 -9
  1913. package/esm/app/Loader/index.js +0 -5
  1914. package/esm/app/Masthead/Masthead.stories.js +0 -12
  1915. package/esm/app/Masthead/Masthead.stories.playwright.json +0 -21
  1916. package/esm/app/Masthead/__stories__/Default.js +0 -15
  1917. package/esm/app/Masthead/__stories__/WithElements.js +0 -21
  1918. package/esm/app/Masthead/__stories__/WithLogo.js +0 -19
  1919. package/esm/app/Masthead/index.js +0 -5
  1920. package/esm/app/Masthead/index.mdx +0 -18
  1921. package/esm/app/Modal/Modal.stories.js +0 -10
  1922. package/esm/app/Modal/__stories__/AlertDialog.js +0 -44
  1923. package/esm/app/Modal/__stories__/Default.js +0 -42
  1924. package/esm/app/Modal/index.js +0 -93
  1925. package/esm/app/Modal/index.mdx +0 -29
  1926. package/esm/app/NotFound/NotFound.stories.js +0 -7
  1927. package/esm/app/NotFound/__stories__/Default.js +0 -9
  1928. package/esm/app/NotFound/index.js +0 -12
  1929. package/esm/app/NotFound/index.mdx +0 -16
  1930. package/esm/app/OutdatedBrowserBanner/hooks/evaluateBrowserVersion.js +0 -201
  1931. package/esm/app/OutdatedBrowserBanner/hooks/useOutdatedBrowserCheck.js +0 -47
  1932. package/esm/app/OutdatedBrowserBanner/index.js +0 -25
  1933. package/esm/app/PageTitleContainer/index.js +0 -5
  1934. package/esm/app/Panel/Panel.stories.js +0 -9
  1935. package/esm/app/Panel/__stories__/Default.js +0 -9
  1936. package/esm/app/Panel/index.js +0 -5
  1937. package/esm/app/Panel/index.mdx +0 -16
  1938. package/esm/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +0 -7
  1939. package/esm/app/PhaseBannerHeader/__stories__/Default.js +0 -12
  1940. package/esm/app/PhaseBannerHeader/index.js +0 -19
  1941. package/esm/app/PhaseBannerHeader/index.mdx +0 -16
  1942. package/esm/app/QrCodeScanner/QrCodeScanner.stories.js +0 -7
  1943. package/esm/app/QrCodeScanner/__snapshots__/index.spec.tsx.snap +0 -13
  1944. package/esm/app/QrCodeScanner/__stories__/Default.js +0 -52
  1945. package/esm/app/QrCodeScanner/index.js +0 -66
  1946. package/esm/app/QrCodeScanner/index.spec.js +0 -15
  1947. package/esm/app/QrCodeViewer/QRCode.stories.js +0 -9
  1948. package/esm/app/QrCodeViewer/__stories__/Custom.js +0 -22
  1949. package/esm/app/QrCodeViewer/__stories__/Default.js +0 -11
  1950. package/esm/app/QrCodeViewer/index.js +0 -156
  1951. package/esm/app/QrCodeViewer/index.mdx +0 -22
  1952. package/esm/app/QrCodeViewer/qrcodegen.js +0 -1085
  1953. package/esm/app/QrCodeViewer/types.js +0 -1
  1954. package/esm/app/QrCodeViewer/utils.js +0 -95
  1955. package/esm/app/ThemeOptions/index.js +0 -255
  1956. package/esm/app/hooks/useFontSize.js +0 -10
  1957. package/esm/app/hooks/useHighlightLinks.js +0 -38
  1958. package/esm/app/hooks/useLetterSpacing.js +0 -10
  1959. package/esm/app/hooks/useLineHeight.js +0 -10
  1960. package/esm/app/hooks/useTheme.js +0 -51
  1961. package/esm/app/hooks/useVariantVars.js +0 -30
  1962. package/esm/app/index.js +0 -17
  1963. package/esm/content/Accordion/Accordion.stories.js +0 -11
  1964. package/esm/content/Accordion/Accordion.stories.playwright.json +0 -21
  1965. package/esm/content/Accordion/__snapshots__/index.spec.tsx.snap +0 -151
  1966. package/esm/content/Accordion/__stories__/Default.js +0 -31
  1967. package/esm/content/Accordion/__stories__/WithHints.js +0 -32
  1968. package/esm/content/Accordion/index.js +0 -97
  1969. package/esm/content/Accordion/index.mdx +0 -33
  1970. package/esm/content/Accordion/index.spec.js +0 -9
  1971. package/esm/content/Blockquote/Blockquote.stories.js +0 -10
  1972. package/esm/content/Blockquote/__snapshots__/index.spec.tsx.snap +0 -16
  1973. package/esm/content/Blockquote/__stories__/Default.js +0 -9
  1974. package/esm/content/Blockquote/__stories__/Dense.js +0 -11
  1975. package/esm/content/Blockquote/index.js +0 -3
  1976. package/esm/content/Blockquote/index.mdx +0 -22
  1977. package/esm/content/Blockquote/index.spec.js +0 -9
  1978. package/esm/content/Card/Card.stories.js +0 -20
  1979. package/esm/content/Card/Card.stories.playwright.json +0 -21
  1980. package/esm/content/Card/__stories__/Default.js +0 -10
  1981. package/esm/content/Card/__stories__/Dense.js +0 -14
  1982. package/esm/content/Card/__stories__/WithClickableContent.js +0 -14
  1983. package/esm/content/Card/__stories__/WithClickableLink.js +0 -12
  1984. package/esm/content/Card/__stories__/WithDarkBorder.js +0 -13
  1985. package/esm/content/Card/__stories__/WithDarkTopBorder.js +0 -13
  1986. package/esm/content/Card/__stories__/WithDivider.js +0 -12
  1987. package/esm/content/Card/__stories__/WithGrayBorder.js +0 -13
  1988. package/esm/content/Card/__stories__/WithGrayTopBorder.js +0 -13
  1989. package/esm/content/Card/__stories__/WithGroupButton.js +0 -11
  1990. package/esm/content/Card/__stories__/WithLink.js +0 -10
  1991. package/esm/content/Card/index.js +0 -6
  1992. package/esm/content/Card/index.mdx +0 -73
  1993. package/esm/content/Chip/Chip.stories.js +0 -12
  1994. package/esm/content/Chip/__stories__/ClickableChip.js +0 -10
  1995. package/esm/content/Chip/__stories__/ClickableDeletableChip.js +0 -13
  1996. package/esm/content/Chip/__stories__/Default.js +0 -9
  1997. package/esm/content/Chip/__stories__/DeletableChip.js +0 -10
  1998. package/esm/content/Chip/__stories__/GroupOfChips.js +0 -9
  1999. package/esm/content/Chip/index.js +0 -6
  2000. package/esm/content/Chip/index.mdx +0 -39
  2001. package/esm/content/Details/Details.stories.js +0 -9
  2002. package/esm/content/Details/Details.stories.playwright.json +0 -27
  2003. package/esm/content/Details/__snapshots__/index.spec.tsx.snap +0 -81
  2004. package/esm/content/Details/__stories__/Default.js +0 -9
  2005. package/esm/content/Details/index.js +0 -5
  2006. package/esm/content/Details/index.mdx +0 -25
  2007. package/esm/content/Details/index.spec.js +0 -17
  2008. package/esm/content/FillableText/index.js +0 -4
  2009. package/esm/content/List/List.js +0 -3
  2010. package/esm/content/List/List.stories.js +0 -14
  2011. package/esm/content/List/List.stories.playwright.json +0 -27
  2012. package/esm/content/List/ListItem.js +0 -3
  2013. package/esm/content/List/ListItemContent.js +0 -14
  2014. package/esm/content/List/ListItemIcon.js +0 -14
  2015. package/esm/content/List/ListItemText.js +0 -15
  2016. package/esm/content/List/ListItemTitle.js +0 -21
  2017. package/esm/content/List/__snapshots__/index.spec.tsx.snap +0 -7
  2018. package/esm/content/List/__stories__/BulletList.js +0 -12
  2019. package/esm/content/List/__stories__/Default.js +0 -11
  2020. package/esm/content/List/__stories__/HorizontalList.js +0 -13
  2021. package/esm/content/List/__stories__/NestedBulletList.js +0 -20
  2022. package/esm/content/List/__stories__/NumberedList.js +0 -12
  2023. package/esm/content/List/__stories__/WithExtraSpace.js +0 -12
  2024. package/esm/content/List/index.js +0 -7
  2025. package/esm/content/List/index.mdx +0 -30
  2026. package/esm/content/List/index.spec.js +0 -8
  2027. package/esm/content/StepNav/StepNav.stories.js +0 -11
  2028. package/esm/content/StepNav/StepNav.stories.playwright.json +0 -33
  2029. package/esm/content/StepNav/__stories__/Default.js +0 -178
  2030. package/esm/content/StepNav/__stories__/Dense.js +0 -180
  2031. package/esm/content/StepNav/__stories__/WithHints.js +0 -189
  2032. package/esm/content/StepNav/index.js +0 -13
  2033. package/esm/content/StepNav/index.mdx +0 -21
  2034. package/esm/content/SummaryList/SummaryList.stories.js +0 -15
  2035. package/esm/content/SummaryList/SummaryList.stories.playwright.json +0 -27
  2036. package/esm/content/SummaryList/__snapshots__/index.spec.tsx.snap +0 -97
  2037. package/esm/content/SummaryList/__stories__/Default.js +0 -17
  2038. package/esm/content/SummaryList/__stories__/RowVariations.js +0 -37
  2039. package/esm/content/SummaryList/__stories__/WithActions.js +0 -20
  2040. package/esm/content/SummaryList/__stories__/WithKeyAndAction.js +0 -20
  2041. package/esm/content/SummaryList/__stories__/WithoutActions.js +0 -9
  2042. package/esm/content/SummaryList/__stories__/WithoutBorders.js +0 -19
  2043. package/esm/content/SummaryList/index.js +0 -7
  2044. package/esm/content/SummaryList/index.mdx +0 -34
  2045. package/esm/content/SummaryList/index.spec.js +0 -9
  2046. package/esm/content/Table/Table.stories.js +0 -27
  2047. package/esm/content/Table/Table.stories.playwright.json +0 -37
  2048. package/esm/content/Table/TableFloatingScroll.js +0 -87
  2049. package/esm/content/Table/__stories__/DarkVariant.js +0 -47
  2050. package/esm/content/Table/__stories__/DarkVariantWithVerticalHeaders.js +0 -47
  2051. package/esm/content/Table/__stories__/Default.js +0 -41
  2052. package/esm/content/Table/__stories__/DefinedWidth.js +0 -43
  2053. package/esm/content/Table/__stories__/Densed.js +0 -104
  2054. package/esm/content/Table/__stories__/Full.js +0 -91
  2055. package/esm/content/Table/__stories__/MultipleProps.js +0 -71
  2056. package/esm/content/Table/__stories__/NoData.js +0 -11
  2057. package/esm/content/Table/__stories__/NumericDataType.js +0 -61
  2058. package/esm/content/Table/__stories__/RowColors.js +0 -60
  2059. package/esm/content/Table/__stories__/Stacked.js +0 -43
  2060. package/esm/content/Table/__stories__/TableCaptions.js +0 -17
  2061. package/esm/content/Table/__stories__/VerticalBorders.js +0 -47
  2062. package/esm/content/Table/__stories__/VerticalHeaders.js +0 -41
  2063. package/esm/content/Table/__stories__/WithFloatingScroll.js +0 -72
  2064. package/esm/content/Table/__stories__/WithLoader.js +0 -71
  2065. package/esm/content/Table/__stories__/WithSortFilters.js +0 -104
  2066. package/esm/content/Table/__stories__/ZebraProp.js +0 -47
  2067. package/esm/content/Table/hooks/useSort.js +0 -54
  2068. package/esm/content/Table/index.js +0 -103
  2069. package/esm/content/Table/index.mdx +0 -76
  2070. package/esm/content/TaskList/TaskList.stories.js +0 -9
  2071. package/esm/content/TaskList/__stories__/Default.js +0 -74
  2072. package/esm/content/TaskList/__stories__/Dense.js +0 -76
  2073. package/esm/content/TaskList/index.js +0 -7
  2074. package/esm/content/TaskList/index.mdx +0 -21
  2075. package/esm/content/Timeline/Timeline.stories.js +0 -9
  2076. package/esm/content/Timeline/__stories__/Default.js +0 -122
  2077. package/esm/content/Timeline/__stories__/Dense.js +0 -124
  2078. package/esm/content/Timeline/index.js +0 -7
  2079. package/esm/content/Timeline/index.mdx +0 -23
  2080. package/esm/content/index.js +0 -12
  2081. package/esm/custom.d.js +0 -0
  2082. package/esm/feedback/CopyToClipboard/CopyToClipboard.stories.js +0 -8
  2083. package/esm/feedback/CopyToClipboard/CopyToClipboard.stories.playwright.json +0 -37
  2084. package/esm/feedback/CopyToClipboard/__stories__/Banner.js +0 -16
  2085. package/esm/feedback/CopyToClipboard/__stories__/Default.js +0 -19
  2086. package/esm/feedback/CopyToClipboard/index.js +0 -51
  2087. package/esm/feedback/CopyToClipboard/index.mdx +0 -22
  2088. package/esm/feedback/ErrorSummary/ErrorSummary.stories.js +0 -13
  2089. package/esm/feedback/ErrorSummary/ErrorSummary.stories.playwright.json +0 -27
  2090. package/esm/feedback/ErrorSummary/__snapshots__/index.spec.tsx.snap +0 -7
  2091. package/esm/feedback/ErrorSummary/__stories__/Default.js +0 -13
  2092. package/esm/feedback/ErrorSummary/__stories__/LinkedToCheckbox.js +0 -30
  2093. package/esm/feedback/ErrorSummary/__stories__/LinkedToField.js +0 -31
  2094. package/esm/feedback/ErrorSummary/__stories__/LinkedToInput.js +0 -30
  2095. package/esm/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.js +0 -35
  2096. package/esm/feedback/ErrorSummary/index.js +0 -3
  2097. package/esm/feedback/ErrorSummary/index.mdx +0 -40
  2098. package/esm/feedback/ErrorSummary/index.spec.js +0 -8
  2099. package/esm/feedback/NotificationBanner/NotificationBanner.stories.js +0 -11
  2100. package/esm/feedback/NotificationBanner/NotificationBanner.stories.playwright.json +0 -49
  2101. package/esm/feedback/NotificationBanner/__snapshots__/index.spec.tsx.snap +0 -23
  2102. package/esm/feedback/NotificationBanner/__stories__/Default.js +0 -12
  2103. package/esm/feedback/NotificationBanner/__stories__/Success.js +0 -13
  2104. package/esm/feedback/NotificationBanner/index.js +0 -27
  2105. package/esm/feedback/NotificationBanner/index.mdx +0 -30
  2106. package/esm/feedback/NotificationBanner/index.spec.js +0 -19
  2107. package/esm/feedback/PhaseBanner/PhaseBanner.stories.js +0 -10
  2108. package/esm/feedback/PhaseBanner/PhaseBanner.stories.playwright.json +0 -21
  2109. package/esm/feedback/PhaseBanner/__stories__/Default.js +0 -12
  2110. package/esm/feedback/PhaseBanner/__stories__/Underlined.js +0 -14
  2111. package/esm/feedback/PhaseBanner/index.js +0 -6
  2112. package/esm/feedback/PhaseBanner/index.mdx +0 -26
  2113. package/esm/feedback/ServiceBadge/index.js +0 -19
  2114. package/esm/feedback/ServiceBadge/index.mdx +0 -47
  2115. package/esm/feedback/WarningText/WarningText.stories.js +0 -10
  2116. package/esm/feedback/WarningText/__snapshots__/index.spec.tsx.snap +0 -7
  2117. package/esm/feedback/WarningText/__stories__/AssistiveText.js +0 -11
  2118. package/esm/feedback/WarningText/__stories__/Default.js +0 -9
  2119. package/esm/feedback/WarningText/index.js +0 -3
  2120. package/esm/feedback/WarningText/index.mdx +0 -21
  2121. package/esm/feedback/WarningText/index.spec.js +0 -8
  2122. package/esm/feedback/index.js +0 -6
  2123. package/esm/form/AutoComplete/AutoComplete.stories.js +0 -14
  2124. package/esm/form/AutoComplete/Status/index.js +0 -153
  2125. package/esm/form/AutoComplete/__stories__/Default.js +0 -16
  2126. package/esm/form/AutoComplete/__stories__/WithAutoSelect.js +0 -30
  2127. package/esm/form/AutoComplete/__stories__/WithDefaultValue.js +0 -17
  2128. package/esm/form/AutoComplete/__stories__/WithInLine.js +0 -17
  2129. package/esm/form/AutoComplete/__stories__/WithMinLength.js +0 -18
  2130. package/esm/form/AutoComplete/__stories__/WithPlaceHolder.js +0 -17
  2131. package/esm/form/AutoComplete/__stories__/WithShowAllValues.js +0 -17
  2132. package/esm/form/AutoComplete/__stories__/utils.js +0 -0
  2133. package/esm/form/AutoComplete/index.js +0 -653
  2134. package/esm/form/AutoComplete/index.mdx +0 -49
  2135. package/esm/form/AutoComplete/utils.js +0 -28
  2136. package/esm/form/Button/BackButton.js +0 -21
  2137. package/esm/form/Button/Button.stories.js +0 -20
  2138. package/esm/form/Button/Button.stories.playwright.json +0 -115
  2139. package/esm/form/Button/ButtonLink.js +0 -3
  2140. package/esm/form/Button/CallToAction.js +0 -3
  2141. package/esm/form/Button/Icon.js +0 -7
  2142. package/esm/form/Button/ThemeToggleButton.js +0 -49
  2143. package/esm/form/Button/__snapshots__/index.spec.tsx.snap +0 -17
  2144. package/esm/form/Button/__stories__/Back.js +0 -13
  2145. package/esm/form/Button/__stories__/ButtonLinkButton.js +0 -17
  2146. package/esm/form/Button/__stories__/CallToActionButton.js +0 -14
  2147. package/esm/form/Button/__stories__/Disabled.js +0 -13
  2148. package/esm/form/Button/__stories__/GroupingButtons.js +0 -11
  2149. package/esm/form/Button/__stories__/GroupingButtonsAndLinks.js +0 -12
  2150. package/esm/form/Button/__stories__/Primary.js +0 -11
  2151. package/esm/form/Button/__stories__/Secondary.js +0 -12
  2152. package/esm/form/Button/__stories__/ThemeToggle.js +0 -9
  2153. package/esm/form/Button/__stories__/Warning.js +0 -12
  2154. package/esm/form/Button/__stories__/WithVariantLink.js +0 -12
  2155. package/esm/form/Button/index.js +0 -20
  2156. package/esm/form/Button/index.mdx +0 -97
  2157. package/esm/form/Button/index.spec.js +0 -9
  2158. package/esm/form/Checkbox/Checkbox.stories.js +0 -17
  2159. package/esm/form/Checkbox/Checkbox.stories.playwright.json +0 -55
  2160. package/esm/form/Checkbox/__stories__/ConditionalReveal.js +0 -26
  2161. package/esm/form/Checkbox/__stories__/Default.js +0 -24
  2162. package/esm/form/Checkbox/__stories__/Inline.js +0 -23
  2163. package/esm/form/Checkbox/__stories__/InlineWithDivider.js +0 -24
  2164. package/esm/form/Checkbox/__stories__/MultipleQuestions.js +0 -26
  2165. package/esm/form/Checkbox/__stories__/NoneAnswer.js +0 -20
  2166. package/esm/form/Checkbox/__stories__/NoneAnswerWithError.js +0 -26
  2167. package/esm/form/Checkbox/__stories__/WithErrorMessage.js +0 -27
  2168. package/esm/form/Checkbox/__stories__/WithHint.js +0 -27
  2169. package/esm/form/Checkbox/index.js +0 -5
  2170. package/esm/form/Checkbox/index.mdx +0 -57
  2171. package/esm/form/DateInputContainer/DateInputContainer.stories.js +0 -12
  2172. package/esm/form/DateInputContainer/DateInputContainer.stories.playwright.json +0 -61
  2173. package/esm/form/DateInputContainer/__stories__/Default.js +0 -24
  2174. package/esm/form/DateInputContainer/__stories__/MultipleQuestions.js +0 -24
  2175. package/esm/form/DateInputContainer/__stories__/WithErrorMessage.js +0 -35
  2176. package/esm/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +0 -32
  2177. package/esm/form/DateInputContainer/index.js +0 -4
  2178. package/esm/form/DateInputContainer/index.mdx +0 -33
  2179. package/esm/form/ErrorMessage/ErrorMessage.stories.js +0 -11
  2180. package/esm/form/ErrorMessage/__stories__/DateInputError.js +0 -24
  2181. package/esm/form/ErrorMessage/__stories__/Default.js +0 -32
  2182. package/esm/form/ErrorMessage/__stories__/ErrorMessageOnly.js +0 -12
  2183. package/esm/form/ErrorMessage/index.js +0 -3
  2184. package/esm/form/ErrorMessage/index.mdx +0 -21
  2185. package/esm/form/FieldContainer/index.js +0 -5
  2186. package/esm/form/FileUpload/FileUpload.stories.js +0 -9
  2187. package/esm/form/FileUpload/__stories__/Default.js +0 -17
  2188. package/esm/form/FileUpload/__stories__/WithErrorMessage.js +0 -21
  2189. package/esm/form/FileUpload/index.js +0 -4
  2190. package/esm/form/FileUpload/index.mdx +0 -24
  2191. package/esm/form/Form/index.js +0 -3
  2192. package/esm/form/LabelContainer/index.js +0 -4
  2193. package/esm/form/RadioContainer/RadioContainer.stories.js +0 -17
  2194. package/esm/form/RadioContainer/RadioContainer.stories.playwright.json +0 -49
  2195. package/esm/form/RadioContainer/__stories__/ConditionalReveal.js +0 -26
  2196. package/esm/form/RadioContainer/__stories__/Default.js +0 -22
  2197. package/esm/form/RadioContainer/__stories__/Inline.js +0 -23
  2198. package/esm/form/RadioContainer/__stories__/InlineWithDivider.js +0 -24
  2199. package/esm/form/RadioContainer/__stories__/MultipleQuestions.js +0 -26
  2200. package/esm/form/RadioContainer/__stories__/NoneAnswer.js +0 -24
  2201. package/esm/form/RadioContainer/__stories__/WithErrorMessage.js +0 -29
  2202. package/esm/form/RadioContainer/__stories__/WithHints.js +0 -29
  2203. package/esm/form/RadioContainer/__stories__/WithMediumLegend.js +0 -24
  2204. package/esm/form/RadioContainer/index.js +0 -5
  2205. package/esm/form/RadioContainer/index.mdx +0 -68
  2206. package/esm/form/SearchContainer/index.js +0 -5
  2207. package/esm/form/SelectContainer/SelectContainer.stories.js +0 -11
  2208. package/esm/form/SelectContainer/SelectContainer.stories.playwright.json +0 -21
  2209. package/esm/form/SelectContainer/__stories__/Default.js +0 -22
  2210. package/esm/form/SelectContainer/__stories__/DisabledInput.js +0 -24
  2211. package/esm/form/SelectContainer/__stories__/WithHint.js +0 -26
  2212. package/esm/form/SelectContainer/index.js +0 -4
  2213. package/esm/form/SelectContainer/index.mdx +0 -36
  2214. package/esm/form/SingleCharacterInputs/SingleCharacterInput.stories.js +0 -12
  2215. package/esm/form/SingleCharacterInputs/__stories__/Default.js +0 -35
  2216. package/esm/form/SingleCharacterInputs/__stories__/WithDefaultError.js +0 -39
  2217. package/esm/form/SingleCharacterInputs/__stories__/WithErrorMessageInvalidCode.js +0 -49
  2218. package/esm/form/SingleCharacterInputs/__stories__/WithErrorMessageLessDigit.js +0 -43
  2219. package/esm/form/SingleCharacterInputs/index.js +0 -4
  2220. package/esm/form/SingleCharacterInputs/index.mdx +0 -24
  2221. package/esm/form/TextArea/TextArea.stories.js +0 -15
  2222. package/esm/form/TextArea/TextArea.stories.playwright.json +0 -59
  2223. package/esm/form/TextArea/__stories__/Default.js +0 -16
  2224. package/esm/form/TextArea/__stories__/DisabledInput.js +0 -21
  2225. package/esm/form/TextArea/__stories__/LimitedCharacters.js +0 -24
  2226. package/esm/form/TextArea/__stories__/MultipleQuestions.js +0 -17
  2227. package/esm/form/TextArea/__stories__/WithDeclaredRows.js +0 -21
  2228. package/esm/form/TextArea/__stories__/WithErrorMessage.js +0 -27
  2229. package/esm/form/TextArea/__stories__/WithHint.js +0 -20
  2230. package/esm/form/TextArea/index.js +0 -3
  2231. package/esm/form/TextArea/index.mdx +0 -48
  2232. package/esm/form/TextInput/TextInput.stories.js +0 -16
  2233. package/esm/form/TextInput/TextInput.stories.playwright.json +0 -43
  2234. package/esm/form/TextInput/__stories__/AskingForNumbers.js +0 -22
  2235. package/esm/form/TextInput/__stories__/Default.js +0 -16
  2236. package/esm/form/TextInput/__stories__/DisabledInput.js +0 -21
  2237. package/esm/form/TextInput/__stories__/FixedWidths.js +0 -42
  2238. package/esm/form/TextInput/__stories__/FluidWidths.js +0 -42
  2239. package/esm/form/TextInput/__stories__/MultipleQuestions.js +0 -13
  2240. package/esm/form/TextInput/__stories__/WithErrorMessage.js +0 -27
  2241. package/esm/form/TextInput/__stories__/WithHint.js +0 -20
  2242. package/esm/form/TextInput/index.js +0 -3
  2243. package/esm/form/TextInput/index.mdx +0 -60
  2244. package/esm/form/index.js +0 -15
  2245. package/esm/govgr/Footer/Copyright.js +0 -39
  2246. package/esm/govgr/Footer/HellenicRepublicLogo.js +0 -3
  2247. package/esm/govgr/Footer/LicenseCCSA.js +0 -18
  2248. package/esm/govgr/Footer/index.js +0 -21
  2249. package/esm/govgr/Footer/index.mdx +0 -101
  2250. package/esm/govgr/Footer/logo.js +0 -1
  2251. package/esm/govgr/Footer/logos/logo-el.js +0 -1
  2252. package/esm/govgr/Footer/logos/logo-en.js +0 -1
  2253. package/esm/govgr/GovGRLogo/govgr-logo.svg +0 -1
  2254. package/esm/govgr/GovGRLogo/index.js +0 -3
  2255. package/esm/govgr/GovGRLogo/logo.js +0 -1
  2256. package/esm/govgr/images/govgr-logo-base64.js +0 -1
  2257. package/esm/govgr/images/govgr-logo-blue-base64.js +0 -1
  2258. package/esm/govgr/images/greek-government-base64.js +0 -1
  2259. package/esm/govgr/images/grnet-logo-base64.js +0 -1
  2260. package/esm/govgr/images/index.js +0 -5
  2261. package/esm/govgr/images/minedu-logo-base64.js +0 -1
  2262. package/esm/govgr/images/minedu-logo-black-base64.js +0 -1
  2263. package/esm/govgr/index.js +0 -5
  2264. package/esm/i18n/I18nText.js +0 -79
  2265. package/esm/i18n/index.js +0 -54
  2266. package/esm/i18n/locales/el.js +0 -101
  2267. package/esm/i18n/locales/en.js +0 -96
  2268. package/esm/icons/Icon/index.js +0 -5
  2269. package/esm/icons/ImageLogo/index.js +0 -3
  2270. package/esm/icons/ImageLogoSet/index.js +0 -3
  2271. package/esm/icons/index.js +0 -2
  2272. package/esm/index.js +0 -16
  2273. package/esm/introduction.md +0 -11
  2274. package/esm/layouts/Admin/index.js +0 -9
  2275. package/esm/layouts/Basic/Aside/index.js +0 -3
  2276. package/esm/layouts/Basic/Basic.stories.js +0 -11
  2277. package/esm/layouts/Basic/Bottom/index.js +0 -3
  2278. package/esm/layouts/Basic/Bottom/index.mdx +0 -41
  2279. package/esm/layouts/Basic/Container/index.js +0 -3
  2280. package/esm/layouts/Basic/Content/index.js +0 -20
  2281. package/esm/layouts/Basic/Content/index.mdx +0 -49
  2282. package/esm/layouts/Basic/Main/index.js +0 -3
  2283. package/esm/layouts/Basic/Main/index.mdx +0 -55
  2284. package/esm/layouts/Basic/Masthead/index.js +0 -5
  2285. package/esm/layouts/Basic/Masthead/index.mdx +0 -62
  2286. package/esm/layouts/Basic/Side/index.js +0 -8
  2287. package/esm/layouts/Basic/Side/index.mdx +0 -56
  2288. package/esm/layouts/Basic/Top/index.js +0 -3
  2289. package/esm/layouts/Basic/Top/index.mdx +0 -63
  2290. package/esm/layouts/Basic/__snapshots__/index.spec.tsx.snap +0 -89
  2291. package/esm/layouts/Basic/__stories__/Default.js +0 -12
  2292. package/esm/layouts/Basic/__stories__/MultipleRowsLayout.js +0 -15
  2293. package/esm/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +0 -15
  2294. package/esm/layouts/Basic/index.js +0 -11
  2295. package/esm/layouts/Basic/index.mdx +0 -40
  2296. package/esm/layouts/Basic/index.spec.js +0 -10
  2297. package/esm/layouts/Divider/Divider.stories.js +0 -8
  2298. package/esm/layouts/Divider/__stories__/Default.js +0 -21
  2299. package/esm/layouts/Divider/index.js +0 -9
  2300. package/esm/layouts/Grid/Grid.stories.js +0 -9
  2301. package/esm/layouts/Grid/__stories__/Default.js +0 -75
  2302. package/esm/layouts/Grid/__stories__/Inline.js +0 -76
  2303. package/esm/layouts/Grid/__stories__/ResponsiveSpacing.js +0 -79
  2304. package/esm/layouts/Grid/index.js +0 -3
  2305. package/esm/layouts/Hidden/index.js +0 -1
  2306. package/esm/layouts/Section/index.js +0 -3
  2307. package/esm/layouts/SectionBreak/index.js +0 -3
  2308. package/esm/layouts/Stack/Stack.stories.js +0 -12
  2309. package/esm/layouts/Stack/__stories__/AlignItems.js +0 -67
  2310. package/esm/layouts/Stack/__stories__/Default.js +0 -24
  2311. package/esm/layouts/Stack/__stories__/JustifyContent.js +0 -84
  2312. package/esm/layouts/Stack/__stories__/NoWrap.js +0 -26
  2313. package/esm/layouts/Stack/__stories__/Row.js +0 -25
  2314. package/esm/layouts/Stack/__stories__/Spacing.js +0 -55
  2315. package/esm/layouts/Stack/index.js +0 -2
  2316. package/esm/layouts/index.js +0 -13
  2317. package/esm/misc/KitchenSink/index.js +0 -8
  2318. package/esm/navigation/BackLink/BackLink.stories.js +0 -7
  2319. package/esm/navigation/BackLink/BackLink.stories.playwright.json +0 -21
  2320. package/esm/navigation/BackLink/__stories__/Default.js +0 -12
  2321. package/esm/navigation/BackLink/index.js +0 -3
  2322. package/esm/navigation/BackLink/index.mdx +0 -20
  2323. package/esm/navigation/Breadcrumbs/Breadcrumbs.stories.js +0 -9
  2324. package/esm/navigation/Breadcrumbs/Breadcrumbs.stories.playwright.json +0 -33
  2325. package/esm/navigation/Breadcrumbs/__stories__/Default.js +0 -21
  2326. package/esm/navigation/Breadcrumbs/index.js +0 -5
  2327. package/esm/navigation/Breadcrumbs/index.mdx +0 -27
  2328. package/esm/navigation/Drawer/Drawer.stories.js +0 -9
  2329. package/esm/navigation/Drawer/__stories__/Default.js +0 -86
  2330. package/esm/navigation/Drawer/index.js +0 -4
  2331. package/esm/navigation/Drawer/index.mdx +0 -16
  2332. package/esm/navigation/Dropdown/Dropdown.stories.js +0 -12
  2333. package/esm/navigation/Dropdown/Dropdown.stories.playwright.json +0 -53
  2334. package/esm/navigation/Dropdown/__stories__/AlignRight.js +0 -56
  2335. package/esm/navigation/Dropdown/__stories__/Default.js +0 -48
  2336. package/esm/navigation/Dropdown/__stories__/PlacementTop.js +0 -61
  2337. package/esm/navigation/Dropdown/index.js +0 -105
  2338. package/esm/navigation/Dropdown/index.mdx +0 -31
  2339. package/esm/navigation/Link/Link.stories.js +0 -13
  2340. package/esm/navigation/Link/Link.stories.playwright.json +0 -65
  2341. package/esm/navigation/Link/__snapshots__/index.spec.tsx.snap +0 -38
  2342. package/esm/navigation/Link/__stories__/DarkBackground.js +0 -19
  2343. package/esm/navigation/Link/__stories__/DarkBackgroundNoUnderline.js +0 -20
  2344. package/esm/navigation/Link/__stories__/Default.js +0 -13
  2345. package/esm/navigation/Link/__stories__/ExternalLink.js +0 -14
  2346. package/esm/navigation/Link/__stories__/NoUnderline.js +0 -14
  2347. package/esm/navigation/Link/__stories__/OpensInNewTab.js +0 -13
  2348. package/esm/navigation/Link/index.js +0 -30
  2349. package/esm/navigation/Link/index.mdx +0 -40
  2350. package/esm/navigation/Link/index.spec.js +0 -21
  2351. package/esm/navigation/NavList/Nav.js +0 -3
  2352. package/esm/navigation/NavList/NavList.js +0 -3
  2353. package/esm/navigation/NavList/NavList.stories.js +0 -14
  2354. package/esm/navigation/NavList/NavList.stories.playwright.json +0 -33
  2355. package/esm/navigation/NavList/NavListAuto/index.js +0 -54
  2356. package/esm/navigation/NavList/NavMenuContentList.js +0 -66
  2357. package/esm/navigation/NavList/__snapshots__/index.spec.tsx.snap +0 -7
  2358. package/esm/navigation/NavList/__stories__/Default.js +0 -39
  2359. package/esm/navigation/NavList/__stories__/NavVertical.js +0 -37
  2360. package/esm/navigation/NavList/__stories__/NavVerticalLayout.js +0 -76
  2361. package/esm/navigation/NavList/__stories__/NavVerticalWithTitle.js +0 -43
  2362. package/esm/navigation/NavList/__stories__/WithBurgerIcon.js +0 -56
  2363. package/esm/navigation/NavList/__stories__/WithSubMenu.js +0 -73
  2364. package/esm/navigation/NavList/hooks/useNavList.js +0 -39
  2365. package/esm/navigation/NavList/hooks/useTogglableNav.js +0 -307
  2366. package/esm/navigation/NavList/index.js +0 -19
  2367. package/esm/navigation/NavList/index.mdx +0 -28
  2368. package/esm/navigation/NavList/index.spec.js +0 -8
  2369. package/esm/navigation/NavList/types.js +0 -1
  2370. package/esm/navigation/Pagination/Pagination.stories.js +0 -13
  2371. package/esm/navigation/Pagination/Pagination.stories.playwright.json +0 -27
  2372. package/esm/navigation/Pagination/__stories__/Default.js +0 -67
  2373. package/esm/navigation/Pagination/__stories__/PaginationSmall.js +0 -35
  2374. package/esm/navigation/Pagination/__stories__/PaginationWithSmallFont.js +0 -44
  2375. package/esm/navigation/Pagination/__stories__/WithInactiveValues.js +0 -69
  2376. package/esm/navigation/Pagination/__stories__/WithResultsPerPage.js +0 -40
  2377. package/esm/navigation/Pagination/index.js +0 -23
  2378. package/esm/navigation/Pagination/index.mdx +0 -28
  2379. package/esm/navigation/SkipLink/SkipLink.stories.js +0 -8
  2380. package/esm/navigation/SkipLink/__stories__/Default.js +0 -12
  2381. package/esm/navigation/SkipLink/index.js +0 -3
  2382. package/esm/navigation/Tabs/Tabs.stories.js +0 -10
  2383. package/esm/navigation/Tabs/Tabs.stories.playwright.json +0 -27
  2384. package/esm/navigation/Tabs/__stories__/Default.js +0 -44
  2385. package/esm/navigation/Tabs/index.js +0 -55
  2386. package/esm/navigation/Tabs/index.mdx +0 -24
  2387. package/esm/navigation/index.js +0 -9
  2388. package/esm/registry.js +0 -494
  2389. package/esm/test-utils/delay.js +0 -34
  2390. package/esm/typography/Caption/index.js +0 -8
  2391. package/esm/typography/Heading/Heading.stories.js +0 -7
  2392. package/esm/typography/Heading/__stories__/Default.js +0 -29
  2393. package/esm/typography/Heading/index.js +0 -3
  2394. package/esm/typography/Heading/index.mdx +0 -16
  2395. package/esm/typography/HeadingCaption/HeadingCaption.stories.js +0 -8
  2396. package/esm/typography/HeadingCaption/__stories__/Default.js +0 -35
  2397. package/esm/typography/HeadingCaption/__stories__/NestedToTitle.js +0 -15
  2398. package/esm/typography/HeadingCaption/index.js +0 -3
  2399. package/esm/typography/HeadingCaption/index.mdx +0 -18
  2400. package/esm/typography/Hint/Hint.stories.js +0 -8
  2401. package/esm/typography/Hint/__stories__/Default.js +0 -9
  2402. package/esm/typography/Hint/__stories__/FontSizes.js +0 -21
  2403. package/esm/typography/Hint/index.js +0 -3
  2404. package/esm/typography/Hint/index.mdx +0 -20
  2405. package/esm/typography/NormalText/NormalText.stories.js +0 -10
  2406. package/esm/typography/NormalText/__stories__/Default.js +0 -9
  2407. package/esm/typography/NormalText/__stories__/FontSizes.js +0 -60
  2408. package/esm/typography/NormalText/__stories__/FontWeight.js +0 -20
  2409. package/esm/typography/NormalText/__stories__/Variants.js +0 -20
  2410. package/esm/typography/NormalText/index.js +0 -3
  2411. package/esm/typography/NormalText/index.mdx +0 -30
  2412. package/esm/typography/Paragraph/Paragraph.stories.js +0 -11
  2413. package/esm/typography/Paragraph/__stories__/Default.js +0 -9
  2414. package/esm/typography/Paragraph/__stories__/FontSizes.js +0 -35
  2415. package/esm/typography/Paragraph/__stories__/FontWeight.js +0 -15
  2416. package/esm/typography/Paragraph/__stories__/LeadVariant.js +0 -11
  2417. package/esm/typography/Paragraph/__stories__/SmallVariant.js +0 -11
  2418. package/esm/typography/Paragraph/index.js +0 -3
  2419. package/esm/typography/Paragraph/index.mdx +0 -33
  2420. package/esm/typography/Title/index.js +0 -42
  2421. package/esm/typography/index.js +0 -5
  2422. package/esm/utils/Base/index.js +0 -3
  2423. package/esm/utils/Kitchensink/AllComponents.js +0 -11
  2424. package/esm/utils/Kitchensink/KitchensinkByCategory.js +0 -38
  2425. package/esm/utils/Kitchensink/KitchensinkByLetter.js +0 -19
  2426. package/esm/utils/Kitchensink/KitchensinkComponent.js +0 -46
  2427. package/esm/utils/Kitchensink/KitchensinkDashboard.js +0 -49
  2428. package/esm/utils/SvgIcon/index.js +0 -4
  2429. package/esm/utils/VisuallyHidden/VisuallyHidden.stories.js +0 -7
  2430. package/esm/utils/VisuallyHidden/__stories__/Default.js +0 -16
  2431. package/esm/utils/VisuallyHidden/index.js +0 -3
  2432. package/esm/utils/VisuallyHidden/index.mdx +0 -19
  2433. package/esm/utils/hooks/useDebounce.js +0 -41
  2434. package/esm/utils/hooks/useKeypress.js +0 -20
  2435. package/esm/utils/hooks/useLatest.js +0 -12
  2436. package/esm/utils/hooks/useSearch.js +0 -25
  2437. package/esm/utils/hooks/useTogglableTab.js +0 -102
  2438. package/esm/utils/index.js +0 -3
  2439. package/esm/utils/withDeprecation.js +0 -106
  2440. package/navigation/NavList/__stories__/NavVertical.d.ts +0 -2
  2441. package/navigation/NavList/__stories__/NavVertical.js +0 -53
  2442. package/navigation/NavList/__stories__/NavVerticalLayout.d.ts +0 -2
  2443. package/navigation/NavList/__stories__/NavVerticalLayout.js +0 -94
  2444. package/navigation/NavList/__stories__/NavVerticalWithTitle.d.ts +0 -2
  2445. package/navigation/NavList/__stories__/NavVerticalWithTitle.js +0 -59
  2446. package/navigation/NavList/__stories__/WithBurgerIcon.d.ts +0 -2
  2447. package/navigation/NavList/__stories__/WithBurgerIcon.js +0 -82
  2448. package/navigation/NavList/__stories__/WithSubMenu.d.ts +0 -2
  2449. package/navigation/NavList/__stories__/WithSubMenu.js +0 -96
  2450. package/src/app/AccessibilityMenu/index.tsx +0 -66
  2451. package/src/navigation/NavList/__stories__/NavVertical.tsx +0 -36
  2452. package/src/navigation/NavList/__stories__/NavVerticalLayout.tsx +0 -106
  2453. package/src/navigation/NavList/__stories__/NavVerticalWithTitle.tsx +0 -40
  2454. package/src/navigation/NavList/__stories__/WithBurgerIcon.tsx +0 -49
  2455. package/src/navigation/NavList/__stories__/WithSubMenu.tsx +0 -101
  2456. /package/{es → cjs}/api/introduction.md +0 -0
  2457. /package/{es → cjs}/app/Footer/Footer.stories.playwright.json +0 -0
  2458. /package/{es → cjs}/app/Footer/index.mdx +0 -0
  2459. /package/{es → cjs}/app/Header/index.mdx +0 -0
  2460. /package/{es → cjs}/app/Masthead/Masthead.stories.playwright.json +0 -0
  2461. /package/{es → cjs}/app/Masthead/index.mdx +0 -0
  2462. /package/{es → cjs}/app/Modal/index.mdx +0 -0
  2463. /package/{es → cjs}/app/NotFound/index.mdx +0 -0
  2464. /package/{es → cjs}/app/Panel/index.mdx +0 -0
  2465. /package/{es → cjs}/app/PhaseBannerHeader/index.mdx +0 -0
  2466. /package/{es → cjs}/app/QrCodeScanner/__snapshots__/index.spec.tsx.snap +0 -0
  2467. /package/{es → cjs}/app/QrCodeViewer/index.mdx +0 -0
  2468. /package/{es → cjs}/content/Accordion/Accordion.stories.playwright.json +0 -0
  2469. /package/{es → cjs}/content/Accordion/index.mdx +0 -0
  2470. /package/{es → cjs}/content/Blockquote/__snapshots__/index.spec.tsx.snap +0 -0
  2471. /package/{es → cjs}/content/Blockquote/index.mdx +0 -0
  2472. /package/{es → cjs}/content/Card/Card.stories.playwright.json +0 -0
  2473. /package/{es → cjs}/content/Card/index.mdx +0 -0
  2474. /package/{es → cjs}/content/Chip/index.mdx +0 -0
  2475. /package/{es → cjs}/content/Details/Details.stories.playwright.json +0 -0
  2476. /package/{es → cjs}/content/Details/index.mdx +0 -0
  2477. /package/{es → cjs}/content/List/List.stories.playwright.json +0 -0
  2478. /package/{es → cjs}/content/List/__snapshots__/index.spec.tsx.snap +0 -0
  2479. /package/{es → cjs}/content/List/index.mdx +0 -0
  2480. /package/{es → cjs}/content/StepNav/StepNav.stories.playwright.json +0 -0
  2481. /package/{es → cjs}/content/StepNav/index.mdx +0 -0
  2482. /package/{es → cjs}/content/SummaryList/SummaryList.stories.playwright.json +0 -0
  2483. /package/{es → cjs}/content/SummaryList/__snapshots__/index.spec.tsx.snap +0 -0
  2484. /package/{es → cjs}/content/SummaryList/index.mdx +0 -0
  2485. /package/{es → cjs}/content/Table/Table.stories.playwright.json +0 -0
  2486. /package/{es → cjs}/content/Table/index.mdx +0 -0
  2487. /package/{es → cjs}/content/TaskList/index.mdx +0 -0
  2488. /package/{es → cjs}/content/Timeline/index.mdx +0 -0
  2489. /package/{es → cjs}/feedback/CopyToClipboard/index.mdx +0 -0
  2490. /package/{es → cjs}/feedback/ErrorSummary/ErrorSummary.stories.playwright.json +0 -0
  2491. /package/{es → cjs}/feedback/ErrorSummary/__snapshots__/index.spec.tsx.snap +0 -0
  2492. /package/{es → cjs}/feedback/ErrorSummary/index.mdx +0 -0
  2493. /package/{es → cjs}/feedback/NotificationBanner/NotificationBanner.stories.playwright.json +0 -0
  2494. /package/{es → cjs}/feedback/NotificationBanner/__snapshots__/index.spec.tsx.snap +0 -0
  2495. /package/{es → cjs}/feedback/NotificationBanner/index.mdx +0 -0
  2496. /package/{es → cjs}/feedback/PhaseBanner/PhaseBanner.stories.playwright.json +0 -0
  2497. /package/{es → cjs}/feedback/PhaseBanner/index.mdx +0 -0
  2498. /package/{es → cjs}/feedback/ServiceBadge/index.mdx +0 -0
  2499. /package/{es → cjs}/feedback/WarningText/__snapshots__/index.spec.tsx.snap +0 -0
  2500. /package/{es → cjs}/feedback/WarningText/index.mdx +0 -0
  2501. /package/{es → cjs}/form/AutoComplete/index.mdx +0 -0
  2502. /package/{es → cjs}/form/Button/Button.stories.playwright.json +0 -0
  2503. /package/{es → cjs}/form/Button/__snapshots__/index.spec.tsx.snap +0 -0
  2504. /package/{es → cjs}/form/Button/index.mdx +0 -0
  2505. /package/{es → cjs}/form/Checkbox/Checkbox.stories.playwright.json +0 -0
  2506. /package/{es → cjs}/form/Checkbox/index.mdx +0 -0
  2507. /package/{es → cjs}/form/DateInputContainer/DateInputContainer.stories.playwright.json +0 -0
  2508. /package/{es → cjs}/form/DateInputContainer/index.mdx +0 -0
  2509. /package/{es → cjs}/form/ErrorMessage/index.mdx +0 -0
  2510. /package/{es → cjs}/form/FileUpload/index.mdx +0 -0
  2511. /package/{es → cjs}/form/RadioContainer/RadioContainer.stories.playwright.json +0 -0
  2512. /package/{es → cjs}/form/RadioContainer/index.mdx +0 -0
  2513. /package/{es → cjs}/form/SelectContainer/SelectContainer.stories.playwright.json +0 -0
  2514. /package/{es → cjs}/form/SelectContainer/index.mdx +0 -0
  2515. /package/{es → cjs}/form/SingleCharacterInputs/index.mdx +0 -0
  2516. /package/{es → cjs}/form/TextArea/TextArea.stories.playwright.json +0 -0
  2517. /package/{es → cjs}/form/TextArea/index.mdx +0 -0
  2518. /package/{es → cjs}/form/TextInput/TextInput.stories.playwright.json +0 -0
  2519. /package/{es → cjs}/form/TextInput/index.mdx +0 -0
  2520. /package/{es → cjs}/govgr/Footer/index.mdx +0 -0
  2521. /package/{es → cjs}/govgr/GovGRLogo/govgr-logo.svg +0 -0
  2522. /package/{es → cjs}/introduction.md +0 -0
  2523. /package/{es → cjs}/layouts/Basic/Bottom/index.mdx +0 -0
  2524. /package/{es → cjs}/layouts/Basic/Content/index.mdx +0 -0
  2525. /package/{es → cjs}/layouts/Basic/Main/index.mdx +0 -0
  2526. /package/{es → cjs}/layouts/Basic/Masthead/index.mdx +0 -0
  2527. /package/{es → cjs}/layouts/Basic/Side/index.mdx +0 -0
  2528. /package/{es → cjs}/layouts/Basic/Top/index.mdx +0 -0
  2529. /package/{es → cjs}/layouts/Basic/index.mdx +0 -0
  2530. /package/{es → cjs}/navigation/BackLink/BackLink.stories.playwright.json +0 -0
  2531. /package/{es → cjs}/navigation/BackLink/index.mdx +0 -0
  2532. /package/{es → cjs}/navigation/Breadcrumbs/Breadcrumbs.stories.playwright.json +0 -0
  2533. /package/{es → cjs}/navigation/Breadcrumbs/index.mdx +0 -0
  2534. /package/{es → cjs}/navigation/Drawer/index.mdx +0 -0
  2535. /package/{es → cjs}/navigation/Dropdown/index.mdx +0 -0
  2536. /package/{es → cjs}/navigation/Link/Link.stories.playwright.json +0 -0
  2537. /package/{es → cjs}/navigation/Link/__snapshots__/index.spec.tsx.snap +0 -0
  2538. /package/{es → cjs}/navigation/Link/index.mdx +0 -0
  2539. /package/{es → cjs}/navigation/NavList/__snapshots__/index.spec.tsx.snap +0 -0
  2540. /package/{es → cjs}/navigation/Pagination/Pagination.stories.playwright.json +0 -0
  2541. /package/{es → cjs}/navigation/Pagination/index.mdx +0 -0
  2542. /package/{es → cjs}/navigation/Tabs/index.mdx +0 -0
  2543. /package/{es → cjs}/typography/Heading/index.mdx +0 -0
  2544. /package/{es → cjs}/typography/HeadingCaption/index.mdx +0 -0
  2545. /package/{es → cjs}/typography/Hint/index.mdx +0 -0
  2546. /package/{es → cjs}/typography/NormalText/index.mdx +0 -0
  2547. /package/{es → cjs}/typography/Paragraph/index.mdx +0 -0
  2548. /package/{es → cjs}/utils/VisuallyHidden/index.mdx +0 -0
@@ -1,1085 +0,0 @@
1
- /**
2
- * @license QR Code generator library (TypeScript)
3
- * Copyright (c) Project Nayuki.
4
- * SPDX-License-Identifier: MIT
5
- */
6
- 'use strict'; // eslint-disable-next-line @typescript-eslint/no-namespace
7
-
8
- import _createClass from "@babel/runtime/helpers/createClass";
9
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
10
-
11
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
12
-
13
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
14
-
15
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
16
-
17
- var qrcodegen;
18
-
19
- (function (_qrcodegen) {
20
- var QrCode = /*#__PURE__*/function () {
21
- /*-- Constructor (low level) and fields --*/
22
- // Creates a new QR Code with the given version number,
23
- // error correction level, data codeword bytes, and mask number.
24
- // This is a low-level API that most users should not use directly.
25
- // A mid-level API is the encodeSegments() function.
26
- function QrCode( // The version number of this QR Code, which is between 1 and 40 (inclusive).
27
- // This determines the size of this barcode.
28
- version, // The error correction level used in this QR Code.
29
- errorCorrectionLevel, dataCodewords, msk) {
30
- _classCallCheck(this, QrCode);
31
-
32
- this.version = void 0;
33
- this.errorCorrectionLevel = void 0;
34
- this.size = void 0;
35
- this.mask = void 0;
36
- this.modules = [];
37
- this.isFunction = [];
38
- this.version = version;
39
- this.errorCorrectionLevel = errorCorrectionLevel; // Check scalar arguments
40
-
41
- if (version < QrCode.MIN_VERSION || version > QrCode.MAX_VERSION) throw new RangeError('Version value out of range');
42
- if (msk < -1 || msk > 7) throw new RangeError('Mask value out of range');
43
- this.size = version * 4 + 17; // Initialize both grids to be size*size arrays of Boolean false
44
-
45
- var row = [];
46
-
47
- for (var i = 0; i < this.size; i++) {
48
- row.push(false);
49
- }
50
-
51
- for (var _i = 0; _i < this.size; _i++) {
52
- this.modules.push(row.slice()); // Initially all light
53
-
54
- this.isFunction.push(row.slice());
55
- } // Compute ECC, draw modules
56
-
57
-
58
- this.drawFunctionPatterns();
59
- var allCodewords = this.addEccAndInterleave(dataCodewords);
60
- this.drawCodewords(allCodewords); // Do masking
61
-
62
- if (msk == -1) {
63
- // Automatically choose best mask
64
- var minPenalty = 1000000000;
65
-
66
- for (var _i2 = 0; _i2 < 8; _i2++) {
67
- this.applyMask(_i2);
68
- this.drawFormatBits(_i2);
69
- var penalty = this.getPenaltyScore();
70
-
71
- if (penalty < minPenalty) {
72
- msk = _i2;
73
- minPenalty = penalty;
74
- }
75
-
76
- this.applyMask(_i2); // Undoes the mask due to XOR
77
- }
78
- }
79
-
80
- assert(0 <= msk && msk <= 7);
81
- this.mask = msk;
82
- this.applyMask(msk); // Apply the final choice of mask
83
-
84
- this.drawFormatBits(msk); // Overwrite old format bits
85
-
86
- this.isFunction = [];
87
- }
88
- /*-- Accessor methods --*/
89
- // Returns the color of the module (pixel) at the given coordinates, which is false
90
- // for light or true for dark. The top left corner has the coordinates (x=0, y=0).
91
- // If the given coordinates are out of bounds, then false (light) is returned.
92
-
93
-
94
- _createClass(QrCode, [{
95
- key: "getModule",
96
- value: function getModule(x, y) {
97
- return 0 <= x && x < this.size && 0 <= y && y < this.size && this.modules[y][x];
98
- } // Modified to expose modules for easy access
99
-
100
- }, {
101
- key: "getModules",
102
- value: function getModules() {
103
- return this.modules;
104
- }
105
- /*-- Private helper methods for constructor: Drawing function modules --*/
106
- // Reads this object's version field, and draws and marks all function modules.
107
-
108
- }, {
109
- key: "drawFunctionPatterns",
110
- value: function drawFunctionPatterns() {
111
- // Draw horizontal and vertical timing patterns
112
- for (var i = 0; i < this.size; i++) {
113
- this.setFunctionModule(6, i, i % 2 == 0);
114
- this.setFunctionModule(i, 6, i % 2 == 0);
115
- } // Draw 3 finder patterns (all corners except bottom right; overwrites some timing modules)
116
-
117
-
118
- this.drawFinderPattern(3, 3);
119
- this.drawFinderPattern(this.size - 4, 3);
120
- this.drawFinderPattern(3, this.size - 4); // Draw numerous alignment patterns
121
-
122
- var alignPatPos = this.getAlignmentPatternPositions();
123
- var numAlign = alignPatPos.length;
124
-
125
- for (var _i3 = 0; _i3 < numAlign; _i3++) {
126
- for (var j = 0; j < numAlign; j++) {
127
- // Don't draw on the three finder corners
128
- if (!(_i3 == 0 && j == 0 || _i3 == 0 && j == numAlign - 1 || _i3 == numAlign - 1 && j == 0)) this.drawAlignmentPattern(alignPatPos[_i3], alignPatPos[j]);
129
- }
130
- } // Draw configuration data
131
-
132
-
133
- this.drawFormatBits(0); // Dummy mask value; overwritten later in the constructor
134
-
135
- this.drawVersion();
136
- } // Draws two copies of the format bits (with its own error correction code)
137
- // based on the given mask and this object's error correction level field.
138
-
139
- }, {
140
- key: "drawFormatBits",
141
- value: function drawFormatBits(mask) {
142
- // Calculate error correction code and pack bits
143
- var data = this.errorCorrectionLevel.formatBits << 3 | mask; // errCorrLvl is uint2, mask is uint3
144
-
145
- var rem = data;
146
-
147
- for (var i = 0; i < 10; i++) {
148
- rem = rem << 1 ^ (rem >>> 9) * 0x537;
149
- }
150
-
151
- var bits = (data << 10 | rem) ^ 0x5412; // uint15
152
-
153
- assert(bits >>> 15 == 0); // Draw first copy
154
-
155
- for (var _i4 = 0; _i4 <= 5; _i4++) {
156
- this.setFunctionModule(8, _i4, getBit(bits, _i4));
157
- }
158
-
159
- this.setFunctionModule(8, 7, getBit(bits, 6));
160
- this.setFunctionModule(8, 8, getBit(bits, 7));
161
- this.setFunctionModule(7, 8, getBit(bits, 8));
162
-
163
- for (var _i5 = 9; _i5 < 15; _i5++) {
164
- this.setFunctionModule(14 - _i5, 8, getBit(bits, _i5));
165
- } // Draw second copy
166
-
167
-
168
- for (var _i6 = 0; _i6 < 8; _i6++) {
169
- this.setFunctionModule(this.size - 1 - _i6, 8, getBit(bits, _i6));
170
- }
171
-
172
- for (var _i7 = 8; _i7 < 15; _i7++) {
173
- this.setFunctionModule(8, this.size - 15 + _i7, getBit(bits, _i7));
174
- }
175
-
176
- this.setFunctionModule(8, this.size - 8, true); // Always dark
177
- } // Draws two copies of the version bits (with its own error correction code),
178
- // based on this object's version field, iff 7 <= version <= 40.
179
-
180
- }, {
181
- key: "drawVersion",
182
- value: function drawVersion() {
183
- if (this.version < 7) return; // Calculate error correction code and pack bits
184
-
185
- var rem = this.version; // version is uint6, in the range [7, 40]
186
-
187
- for (var i = 0; i < 12; i++) {
188
- rem = rem << 1 ^ (rem >>> 11) * 0x1f25;
189
- }
190
-
191
- var bits = this.version << 12 | rem; // uint18
192
-
193
- assert(bits >>> 18 == 0); // Draw two copies
194
-
195
- for (var _i8 = 0; _i8 < 18; _i8++) {
196
- var color = getBit(bits, _i8);
197
- var a = this.size - 11 + _i8 % 3;
198
- var b = Math.floor(_i8 / 3);
199
- this.setFunctionModule(a, b, color);
200
- this.setFunctionModule(b, a, color);
201
- }
202
- } // Draws a 9*9 finder pattern including the border separator,
203
- // with the center module at (x, y). Modules can be out of bounds.
204
-
205
- }, {
206
- key: "drawFinderPattern",
207
- value: function drawFinderPattern(x, y) {
208
- for (var dy = -4; dy <= 4; dy++) {
209
- for (var dx = -4; dx <= 4; dx++) {
210
- var dist = Math.max(Math.abs(dx), Math.abs(dy)); // Chebyshev/infinity norm
211
-
212
- var xx = x + dx;
213
- var yy = y + dy;
214
- if (0 <= xx && xx < this.size && 0 <= yy && yy < this.size) this.setFunctionModule(xx, yy, dist != 2 && dist != 4);
215
- }
216
- }
217
- } // Draws a 5*5 alignment pattern, with the center module
218
- // at (x, y). All modules must be in bounds.
219
-
220
- }, {
221
- key: "drawAlignmentPattern",
222
- value: function drawAlignmentPattern(x, y) {
223
- for (var dy = -2; dy <= 2; dy++) {
224
- for (var dx = -2; dx <= 2; dx++) {
225
- this.setFunctionModule(x + dx, y + dy, Math.max(Math.abs(dx), Math.abs(dy)) != 1);
226
- }
227
- }
228
- } // Sets the color of a module and marks it as a function module.
229
- // Only used by the constructor. Coordinates must be in bounds.
230
-
231
- }, {
232
- key: "setFunctionModule",
233
- value: function setFunctionModule(x, y, isDark) {
234
- this.modules[y][x] = isDark;
235
- this.isFunction[y][x] = true;
236
- }
237
- /*-- Private helper methods for constructor: Codewords and masking --*/
238
- // Returns a new byte string representing the given data with the appropriate error correction
239
- // codewords appended to it, based on this object's version and error correction level.
240
-
241
- }, {
242
- key: "addEccAndInterleave",
243
- value: function addEccAndInterleave(data) {
244
- var ver = this.version;
245
- var ecl = this.errorCorrectionLevel;
246
- if (data.length != QrCode.getNumDataCodewords(ver, ecl)) throw new RangeError('Invalid argument'); // Calculate parameter numbers
247
-
248
- var numBlocks = QrCode.NUM_ERROR_CORRECTION_BLOCKS[ecl.ordinal][ver];
249
- var blockEccLen = QrCode.ECC_CODEWORDS_PER_BLOCK[ecl.ordinal][ver];
250
- var rawCodewords = Math.floor(QrCode.getNumRawDataModules(ver) / 8);
251
- var numShortBlocks = numBlocks - rawCodewords % numBlocks;
252
- var shortBlockLen = Math.floor(rawCodewords / numBlocks); // Split data into blocks and append ECC to each block
253
-
254
- var blocks = [];
255
- var rsDiv = QrCode.reedSolomonComputeDivisor(blockEccLen);
256
-
257
- for (var i = 0, k = 0; i < numBlocks; i++) {
258
- var dat = data.slice(k, k + shortBlockLen - blockEccLen + (i < numShortBlocks ? 0 : 1));
259
- k += dat.length;
260
- var ecc = QrCode.reedSolomonComputeRemainder(dat, rsDiv);
261
- if (i < numShortBlocks) dat.push(0);
262
- blocks.push(dat.concat(ecc));
263
- } // Interleave (not concatenate) the bytes from every block into a single sequence
264
-
265
-
266
- var result = [];
267
-
268
- var _loop = function _loop(_i9) {
269
- blocks.forEach(function (block, j) {
270
- // Skip the padding byte in short blocks
271
- if (_i9 != shortBlockLen - blockEccLen || j >= numShortBlocks) result.push(block[_i9]);
272
- });
273
- };
274
-
275
- for (var _i9 = 0; _i9 < blocks[0].length; _i9++) {
276
- _loop(_i9);
277
- }
278
-
279
- assert(result.length == rawCodewords);
280
- return result;
281
- } // Draws the given sequence of 8-bit codewords (data and error correction) onto the entire
282
- // data area of this QR Code. Function modules need to be marked off before this is called.
283
-
284
- }, {
285
- key: "drawCodewords",
286
- value: function drawCodewords(data) {
287
- if (data.length != Math.floor(QrCode.getNumRawDataModules(this.version) / 8)) throw new RangeError('Invalid argument');
288
- var i = 0; // Bit index into the data
289
- // Do the funny zigzag scan
290
-
291
- for (var right = this.size - 1; right >= 1; right -= 2) {
292
- // Index of right column in each column pair
293
- if (right == 6) right = 5;
294
-
295
- for (var vert = 0; vert < this.size; vert++) {
296
- // Vertical counter
297
- for (var j = 0; j < 2; j++) {
298
- var x = right - j; // Actual x coordinate
299
-
300
- var upward = (right + 1 & 2) == 0;
301
- var y = upward ? this.size - 1 - vert : vert; // Actual y coordinate
302
-
303
- if (!this.isFunction[y][x] && i < data.length * 8) {
304
- this.modules[y][x] = getBit(data[i >>> 3], 7 - (i & 7));
305
- i++;
306
- } // If this QR Code has any remainder bits (0 to 7), they were assigned as
307
- // 0/false/light by the constructor and are left unchanged by this method
308
-
309
- }
310
- }
311
- }
312
-
313
- assert(i == data.length * 8);
314
- } // XORs the codeword modules in this QR Code with the given mask pattern.
315
- // The function modules must be marked and the codeword bits must be drawn
316
- // before masking. Due to the arithmetic of XOR, calling applyMask() with
317
- // the same mask value a second time will undo the mask. A final well-formed
318
- // QR Code needs exactly one (not zero, two, etc.) mask applied.
319
-
320
- }, {
321
- key: "applyMask",
322
- value: function applyMask(mask) {
323
- if (mask < 0 || mask > 7) throw new RangeError('Mask value out of range');
324
-
325
- for (var y = 0; y < this.size; y++) {
326
- for (var x = 0; x < this.size; x++) {
327
- var invert = void 0;
328
-
329
- switch (mask) {
330
- case 0:
331
- invert = (x + y) % 2 == 0;
332
- break;
333
-
334
- case 1:
335
- invert = y % 2 == 0;
336
- break;
337
-
338
- case 2:
339
- invert = x % 3 == 0;
340
- break;
341
-
342
- case 3:
343
- invert = (x + y) % 3 == 0;
344
- break;
345
-
346
- case 4:
347
- invert = (Math.floor(x / 3) + Math.floor(y / 2)) % 2 == 0;
348
- break;
349
-
350
- case 5:
351
- invert = x * y % 2 + x * y % 3 == 0;
352
- break;
353
-
354
- case 6:
355
- invert = (x * y % 2 + x * y % 3) % 2 == 0;
356
- break;
357
-
358
- case 7:
359
- invert = ((x + y) % 2 + x * y % 3) % 2 == 0;
360
- break;
361
-
362
- default:
363
- throw new Error('Unreachable');
364
- }
365
-
366
- if (!this.isFunction[y][x] && invert) this.modules[y][x] = !this.modules[y][x];
367
- }
368
- }
369
- } // Calculates and returns the penalty score based on state of this QR Code's current modules.
370
- // This is used by the automatic mask choice algorithm to find the mask pattern that yields the lowest score.
371
-
372
- }, {
373
- key: "getPenaltyScore",
374
- value: function getPenaltyScore() {
375
- var result = 0; // Adjacent modules in row having same color, and finder-like patterns
376
-
377
- for (var y = 0; y < this.size; y++) {
378
- var runColor = false;
379
- var runX = 0;
380
- var runHistory = [0, 0, 0, 0, 0, 0, 0];
381
-
382
- for (var x = 0; x < this.size; x++) {
383
- if (this.modules[y][x] == runColor) {
384
- runX++;
385
- if (runX == 5) result += QrCode.PENALTY_N1;else if (runX > 5) result++;
386
- } else {
387
- this.finderPenaltyAddHistory(runX, runHistory);
388
- if (!runColor) result += this.finderPenaltyCountPatterns(runHistory) * QrCode.PENALTY_N3;
389
- runColor = this.modules[y][x];
390
- runX = 1;
391
- }
392
- }
393
-
394
- result += this.finderPenaltyTerminateAndCount(runColor, runX, runHistory) * QrCode.PENALTY_N3;
395
- } // Adjacent modules in column having same color, and finder-like patterns
396
-
397
-
398
- for (var _x = 0; _x < this.size; _x++) {
399
- var _runColor = false;
400
- var runY = 0;
401
- var _runHistory = [0, 0, 0, 0, 0, 0, 0];
402
-
403
- for (var _y = 0; _y < this.size; _y++) {
404
- if (this.modules[_y][_x] == _runColor) {
405
- runY++;
406
- if (runY == 5) result += QrCode.PENALTY_N1;else if (runY > 5) result++;
407
- } else {
408
- this.finderPenaltyAddHistory(runY, _runHistory);
409
- if (!_runColor) result += this.finderPenaltyCountPatterns(_runHistory) * QrCode.PENALTY_N3;
410
- _runColor = this.modules[_y][_x];
411
- runY = 1;
412
- }
413
- }
414
-
415
- result += this.finderPenaltyTerminateAndCount(_runColor, runY, _runHistory) * QrCode.PENALTY_N3;
416
- } // 2*2 blocks of modules having same color
417
-
418
-
419
- for (var _y2 = 0; _y2 < this.size - 1; _y2++) {
420
- for (var _x2 = 0; _x2 < this.size - 1; _x2++) {
421
- var color = this.modules[_y2][_x2];
422
- if (color == this.modules[_y2][_x2 + 1] && color == this.modules[_y2 + 1][_x2] && color == this.modules[_y2 + 1][_x2 + 1]) result += QrCode.PENALTY_N2;
423
- }
424
- } // Balance of dark and light modules
425
-
426
-
427
- var dark = 0;
428
-
429
- var _iterator = _createForOfIteratorHelper(this.modules),
430
- _step;
431
-
432
- try {
433
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
434
- var row = _step.value;
435
- dark = row.reduce(function (sum, color) {
436
- return sum + (color ? 1 : 0);
437
- }, dark);
438
- }
439
- } catch (err) {
440
- _iterator.e(err);
441
- } finally {
442
- _iterator.f();
443
- }
444
-
445
- var total = this.size * this.size; // Note that size is odd, so dark/total != 1/2
446
- // Compute the smallest integer k >= 0 such that (45-5k)% <= dark/total <= (55+5k)%
447
-
448
- var k = Math.ceil(Math.abs(dark * 20 - total * 10) / total) - 1;
449
- assert(0 <= k && k <= 9);
450
- result += k * QrCode.PENALTY_N4;
451
- assert(0 <= result && result <= 2568888); // Non-tight upper bound based on default values of PENALTY_N1, ..., N4
452
-
453
- return result;
454
- }
455
- /*-- Private helper functions --*/
456
- // Returns an ascending list of positions of alignment patterns for this version number.
457
- // Each position is in the range [0,177), and are used on both the x and y axes.
458
- // This could be implemented as lookup table of 40 variable-length lists of integers.
459
-
460
- }, {
461
- key: "getAlignmentPatternPositions",
462
- value: function getAlignmentPatternPositions() {
463
- if (this.version == 1) return [];else {
464
- var numAlign = Math.floor(this.version / 7) + 2;
465
- var step = this.version == 32 ? 26 : Math.ceil((this.version * 4 + 4) / (numAlign * 2 - 2)) * 2;
466
- var result = [6];
467
-
468
- for (var pos = this.size - 7; result.length < numAlign; pos -= step) {
469
- result.splice(1, 0, pos);
470
- }
471
-
472
- return result;
473
- }
474
- } // Returns the number of data bits that can be stored in a QR Code of the given version number, after
475
- // all function modules are excluded. This includes remainder bits, so it might not be a multiple of 8.
476
- // The result is in the range [208, 29648]. This could be implemented as a 40-entry lookup table.
477
-
478
- }, {
479
- key: "finderPenaltyCountPatterns",
480
- value: // Can only be called immediately after a light run is added, and
481
- // returns either 0, 1, or 2. A helper function for getPenaltyScore().
482
- function finderPenaltyCountPatterns(runHistory) {
483
- var n = runHistory[1];
484
- assert(n <= this.size * 3);
485
- var core = n > 0 && runHistory[2] == n && runHistory[3] == n * 3 && runHistory[4] == n && runHistory[5] == n;
486
- return (core && runHistory[0] >= n * 4 && runHistory[6] >= n ? 1 : 0) + (core && runHistory[6] >= n * 4 && runHistory[0] >= n ? 1 : 0);
487
- } // Must be called at the end of a line (row or column) of modules. A helper function for getPenaltyScore().
488
-
489
- }, {
490
- key: "finderPenaltyTerminateAndCount",
491
- value: function finderPenaltyTerminateAndCount(currentRunColor, currentRunLength, runHistory) {
492
- if (currentRunColor) {
493
- // Terminate dark run
494
- this.finderPenaltyAddHistory(currentRunLength, runHistory);
495
- currentRunLength = 0;
496
- }
497
-
498
- currentRunLength += this.size; // Add light border to final run
499
-
500
- this.finderPenaltyAddHistory(currentRunLength, runHistory);
501
- return this.finderPenaltyCountPatterns(runHistory);
502
- } // Pushes the given value to the front and drops the last value. A helper function for getPenaltyScore().
503
-
504
- }, {
505
- key: "finderPenaltyAddHistory",
506
- value: function finderPenaltyAddHistory(currentRunLength, runHistory) {
507
- if (runHistory[0] == 0) currentRunLength += this.size; // Add light border to initial run
508
-
509
- runHistory.pop();
510
- runHistory.unshift(currentRunLength);
511
- }
512
- /*-- Constants and tables --*/
513
- // The minimum version number supported in the QR Code Model 2 standard.
514
-
515
- }], [{
516
- key: "encodeText",
517
- value:
518
- /*-- Static factory functions (high level) --*/
519
- // Returns a QR Code representing the given Unicode text string at the given error correction level.
520
- // As a conservative upper bound, this function is guaranteed to succeed for strings that have 738 or fewer
521
- // Unicode code points (not UTF-16 code units) if the low error correction level is used. The smallest possible
522
- // QR Code version is automatically chosen for the output. The ECC level of the result may be higher than the
523
- // ecl argument if it can be done without increasing the version.
524
- function encodeText(text, ecl) {
525
- var segs = qrcodegen.QrSegment.makeSegments(text);
526
- return QrCode.encodeSegments(segs, ecl);
527
- } // Returns a QR Code representing the given binary data at the given error correction level.
528
- // This function always encodes using the binary segment mode, not any text mode. The maximum number of
529
- // bytes allowed is 2953. The smallest possible QR Code version is automatically chosen for the output.
530
- // The ECC level of the result may be higher than the ecl argument if it can be done without increasing the version.
531
-
532
- }, {
533
- key: "encodeBinary",
534
- value: function encodeBinary(data, ecl) {
535
- var seg = qrcodegen.QrSegment.makeBytes(data);
536
- return QrCode.encodeSegments([seg], ecl);
537
- }
538
- /*-- Static factory functions (mid level) --*/
539
- // Returns a QR Code representing the given segments with the given encoding parameters.
540
- // The smallest possible QR Code version within the given range is automatically
541
- // chosen for the output. Iff boostEcl is true, then the ECC level of the result
542
- // may be higher than the ecl argument if it can be done without increasing the
543
- // version. The mask number is either between 0 to 7 (inclusive) to force that
544
- // mask, or -1 to automatically choose an appropriate mask (which may be slow).
545
- // This function allows the user to create a custom sequence of segments that switches
546
- // between modes (such as alphanumeric and byte) to encode text in less space.
547
- // This is a mid-level API; the high-level API is encodeText() and encodeBinary().
548
-
549
- }, {
550
- key: "encodeSegments",
551
- value: function encodeSegments(segs, ecl) {
552
- var minVersion = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
553
- var maxVersion = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 40;
554
- var mask = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : -1;
555
- var boostEcl = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : true;
556
- if (!(QrCode.MIN_VERSION <= minVersion && minVersion <= maxVersion && maxVersion <= QrCode.MAX_VERSION) || mask < -1 || mask > 7) throw new RangeError('Invalid value'); // Find the minimal version number to use
557
-
558
- var version;
559
- var dataUsedBits;
560
-
561
- for (version = minVersion;; version++) {
562
- var _dataCapacityBits = QrCode.getNumDataCodewords(version, ecl) * 8; // Number of data bits available
563
-
564
-
565
- var usedBits = QrSegment.getTotalBits(segs, version);
566
-
567
- if (usedBits <= _dataCapacityBits) {
568
- dataUsedBits = usedBits;
569
- break; // This version number is found to be suitable
570
- }
571
-
572
- if (version >= maxVersion) // All versions in the range could not fit the given data
573
- throw new RangeError('Data too long');
574
- } // Increase the error correction level while the data still fits in the current version number
575
-
576
-
577
- for (var _i10 = 0, _arr = [QrCode.Ecc.MEDIUM, QrCode.Ecc.QUARTILE, QrCode.Ecc.HIGH]; _i10 < _arr.length; _i10++) {
578
- var newEcl = _arr[_i10];
579
- // From low to high
580
- if (boostEcl && dataUsedBits <= QrCode.getNumDataCodewords(version, newEcl) * 8) ecl = newEcl;
581
- } // Concatenate all segments to create the data bit string
582
-
583
-
584
- var bb = [];
585
-
586
- var _iterator2 = _createForOfIteratorHelper(segs),
587
- _step2;
588
-
589
- try {
590
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
591
- var seg = _step2.value;
592
- appendBits(seg.mode.modeBits, 4, bb);
593
- appendBits(seg.numChars, seg.mode.numCharCountBits(version), bb);
594
-
595
- var _iterator3 = _createForOfIteratorHelper(seg.getData()),
596
- _step3;
597
-
598
- try {
599
- for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
600
- var b = _step3.value;
601
- bb.push(b);
602
- }
603
- } catch (err) {
604
- _iterator3.e(err);
605
- } finally {
606
- _iterator3.f();
607
- }
608
- }
609
- } catch (err) {
610
- _iterator2.e(err);
611
- } finally {
612
- _iterator2.f();
613
- }
614
-
615
- assert(bb.length == dataUsedBits); // Add terminator and pad up to a byte if applicable
616
-
617
- var dataCapacityBits = QrCode.getNumDataCodewords(version, ecl) * 8;
618
- assert(bb.length <= dataCapacityBits);
619
- appendBits(0, Math.min(4, dataCapacityBits - bb.length), bb);
620
- appendBits(0, (8 - bb.length % 8) % 8, bb);
621
- assert(bb.length % 8 == 0); // Pad with alternating bytes until data capacity is reached
622
-
623
- for (var padByte = 0xec; bb.length < dataCapacityBits; padByte ^= 0xec ^ 0x11) {
624
- appendBits(padByte, 8, bb);
625
- } // Pack bits into bytes in big endian
626
-
627
-
628
- var dataCodewords = [];
629
-
630
- while (dataCodewords.length * 8 < bb.length) {
631
- dataCodewords.push(0);
632
- }
633
-
634
- bb.forEach(function (b, i) {
635
- return dataCodewords[i >>> 3] |= b << 7 - (i & 7);
636
- }); // Create the QR Code object
637
-
638
- return new QrCode(version, ecl, dataCodewords, mask);
639
- }
640
- /*-- Fields --*/
641
- // The version number of this QR Code, which is between 1 and 40 (inclusive).
642
- // This determines the size of this barcode.
643
-
644
- }, {
645
- key: "getNumRawDataModules",
646
- value: function getNumRawDataModules(ver) {
647
- if (ver < QrCode.MIN_VERSION || ver > QrCode.MAX_VERSION) throw new RangeError('Version number out of range');
648
- var result = (16 * ver + 128) * ver + 64;
649
-
650
- if (ver >= 2) {
651
- var numAlign = Math.floor(ver / 7) + 2;
652
- result -= (25 * numAlign - 10) * numAlign - 55;
653
- if (ver >= 7) result -= 36;
654
- }
655
-
656
- assert(208 <= result && result <= 29648);
657
- return result;
658
- } // Returns the number of 8-bit data (i.e. not error correction) codewords contained in any
659
- // QR Code of the given version number and error correction level, with remainder bits discarded.
660
- // This stateless pure function could be implemented as a (40*4)-cell lookup table.
661
-
662
- }, {
663
- key: "getNumDataCodewords",
664
- value: function getNumDataCodewords(ver, ecl) {
665
- return Math.floor(QrCode.getNumRawDataModules(ver) / 8) - QrCode.ECC_CODEWORDS_PER_BLOCK[ecl.ordinal][ver] * QrCode.NUM_ERROR_CORRECTION_BLOCKS[ecl.ordinal][ver];
666
- } // Returns a Reed-Solomon ECC generator polynomial for the given degree. This could be
667
- // implemented as a lookup table over all possible parameter values, instead of as an algorithm.
668
-
669
- }, {
670
- key: "reedSolomonComputeDivisor",
671
- value: function reedSolomonComputeDivisor(degree) {
672
- if (degree < 1 || degree > 255) throw new RangeError('Degree out of range'); // Polynomial coefficients are stored from highest to lowest power, excluding the leading term which is always 1.
673
- // For example the polynomial x^3 + 255x^2 + 8x + 93 is stored as the uint8 array [255, 8, 93].
674
-
675
- var result = [];
676
-
677
- for (var i = 0; i < degree - 1; i++) {
678
- result.push(0);
679
- }
680
-
681
- result.push(1); // Start off with the monomial x^0
682
- // Compute the product polynomial (x - r^0) * (x - r^1) * (x - r^2) * ... * (x - r^{degree-1}),
683
- // and drop the highest monomial term which is always 1x^degree.
684
- // Note that r = 0x02, which is a generator element of this field GF(2^8/0x11D).
685
-
686
- var root = 1;
687
-
688
- for (var _i11 = 0; _i11 < degree; _i11++) {
689
- // Multiply the current product by (x - r^i)
690
- for (var j = 0; j < result.length; j++) {
691
- result[j] = QrCode.reedSolomonMultiply(result[j], root);
692
- if (j + 1 < result.length) result[j] ^= result[j + 1];
693
- }
694
-
695
- root = QrCode.reedSolomonMultiply(root, 0x02);
696
- }
697
-
698
- return result;
699
- } // Returns the Reed-Solomon error correction codeword for the given data and divisor polynomials.
700
-
701
- }, {
702
- key: "reedSolomonComputeRemainder",
703
- value: function reedSolomonComputeRemainder(data, divisor) {
704
- var result = divisor.map(function (_) {
705
- return 0;
706
- });
707
-
708
- var _iterator4 = _createForOfIteratorHelper(data),
709
- _step4;
710
-
711
- try {
712
- var _loop2 = function _loop2() {
713
- var b = _step4.value;
714
- // Polynomial division
715
- var factor = b ^ result.shift();
716
- result.push(0);
717
- divisor.forEach(function (coef, i) {
718
- return result[i] ^= QrCode.reedSolomonMultiply(coef, factor);
719
- });
720
- };
721
-
722
- for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
723
- _loop2();
724
- }
725
- } catch (err) {
726
- _iterator4.e(err);
727
- } finally {
728
- _iterator4.f();
729
- }
730
-
731
- return result;
732
- } // Returns the product of the two given field elements modulo GF(2^8/0x11D). The arguments and result
733
- // are unsigned 8-bit integers. This could be implemented as a lookup table of 256*256 entries of uint8.
734
-
735
- }, {
736
- key: "reedSolomonMultiply",
737
- value: function reedSolomonMultiply(x, y) {
738
- if (x >>> 8 != 0 || y >>> 8 != 0) throw new RangeError('Byte out of range'); // Russian peasant multiplication
739
-
740
- var z = 0;
741
-
742
- for (var i = 7; i >= 0; i--) {
743
- z = z << 1 ^ (z >>> 7) * 0x11d;
744
- z ^= (y >>> i & 1) * x;
745
- }
746
-
747
- assert(z >>> 8 == 0);
748
- return z;
749
- }
750
- }]);
751
-
752
- return QrCode;
753
- }();
754
-
755
- QrCode.MIN_VERSION = 1;
756
- QrCode.MAX_VERSION = 40;
757
- QrCode.PENALTY_N1 = 3;
758
- QrCode.PENALTY_N2 = 3;
759
- QrCode.PENALTY_N3 = 40;
760
- QrCode.PENALTY_N4 = 10;
761
- QrCode.ECC_CODEWORDS_PER_BLOCK = [// Version: (note that index 0 is for padding, and is set to an illegal value)
762
- //0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40 Error correction level
763
- [-1, 7, 10, 15, 20, 26, 18, 20, 24, 30, 18, 20, 24, 26, 30, 22, 24, 28, 30, 28, 28, 28, 28, 30, 30, 26, 28, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30], // Low
764
- [-1, 10, 16, 26, 18, 24, 16, 18, 22, 22, 26, 30, 22, 22, 24, 24, 28, 28, 26, 26, 26, 26, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28], // Medium
765
- [-1, 13, 22, 18, 26, 18, 24, 18, 22, 20, 24, 28, 26, 24, 20, 30, 24, 28, 28, 26, 30, 28, 30, 30, 30, 30, 28, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30], // Quartile
766
- [-1, 17, 28, 22, 16, 22, 28, 26, 26, 24, 28, 24, 28, 22, 24, 24, 30, 28, 28, 26, 28, 30, 24, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30] // High
767
- ];
768
- QrCode.NUM_ERROR_CORRECTION_BLOCKS = [// Version: (note that index 0 is for padding, and is set to an illegal value)
769
- //0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40 Error correction level
770
- [-1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 4, 4, 4, 4, 4, 6, 6, 6, 6, 7, 8, 8, 9, 9, 10, 12, 12, 12, 13, 14, 15, 16, 17, 18, 19, 19, 20, 21, 22, 24, 25], // Low
771
- [-1, 1, 1, 1, 2, 2, 4, 4, 4, 5, 5, 5, 8, 9, 9, 10, 10, 11, 13, 14, 16, 17, 17, 18, 20, 21, 23, 25, 26, 28, 29, 31, 33, 35, 37, 38, 40, 43, 45, 47, 49], // Medium
772
- [-1, 1, 1, 2, 2, 4, 4, 6, 6, 8, 8, 8, 10, 12, 16, 12, 17, 16, 18, 21, 20, 23, 23, 25, 27, 29, 34, 34, 35, 38, 40, 43, 45, 48, 51, 53, 56, 59, 62, 65, 68], // Quartile
773
- [-1, 1, 1, 2, 4, 4, 4, 5, 6, 8, 8, 11, 11, 16, 16, 18, 16, 19, 21, 25, 25, 25, 34, 30, 32, 35, 37, 40, 42, 45, 48, 51, 54, 57, 60, 63, 66, 70, 74, 77, 81] // High
774
- ];
775
- _qrcodegen.QrCode = QrCode;
776
-
777
- // Appends the given number of low-order bits of the given value
778
- // to the given buffer. Requires 0 <= len <= 31 and 0 <= val < 2^len.
779
- function appendBits(val, len, bb) {
780
- if (len < 0 || len > 31 || val >>> len != 0) throw new RangeError('Value out of range');
781
-
782
- for (var i = len - 1; i >= 0; i-- // Append bit by bit
783
- ) {
784
- bb.push(val >>> i & 1);
785
- }
786
- } // Returns true iff the i'th bit of x is set to 1.
787
-
788
-
789
- function getBit(x, i) {
790
- return (x >>> i & 1) != 0;
791
- } // Throws an exception if the given condition is false.
792
-
793
-
794
- function assert(cond) {
795
- if (!cond) throw new Error('Assertion error');
796
- }
797
- /*---- Data segment class ----*/
798
-
799
- /*
800
- * A segment of character/binary/control data in a QR Code symbol.
801
- * Instances of this class are immutable.
802
- * The mid-level way to create a segment is to take the payload data
803
- * and call a static factory function such as QrSegment.makeNumeric().
804
- * The low-level way to create a segment is to custom-make the bit buffer
805
- * and call the QrSegment() constructor with appropriate values.
806
- * This segment class imposes no length restrictions, but QR Codes have restrictions.
807
- * Even in the most favorable conditions, a QR Code can only hold 7089 characters of data.
808
- * Any segment longer than this is meaningless for the purpose of generating QR Codes.
809
- */
810
-
811
-
812
- var QrSegment = /*#__PURE__*/function () {
813
- // Creates a new QR Code segment with the given attributes and data.
814
- // The character count (numChars) must agree with the mode and the bit buffer length,
815
- // but the constraint isn't checked. The given bit buffer is cloned and stored.
816
- function QrSegment( // The mode indicator of this segment.
817
- mode, // The length of this segment's unencoded data. Measured in characters for
818
- // numeric/alphanumeric/kanji mode, bytes for byte mode, and 0 for ECI mode.
819
- // Always zero or positive. Not the same as the data's bit length.
820
- numChars, // The data bits of this segment. Accessed through getData().
821
- bitData) {
822
- _classCallCheck(this, QrSegment);
823
-
824
- this.mode = void 0;
825
- this.numChars = void 0;
826
- this.bitData = void 0;
827
- this.mode = mode;
828
- this.numChars = numChars;
829
- this.bitData = bitData;
830
- if (numChars < 0) throw new RangeError('Invalid argument');
831
- this.bitData = bitData.slice(); // Make defensive copy
832
- }
833
- /*-- Methods --*/
834
- // Returns a new copy of the data bits of this segment.
835
-
836
-
837
- _createClass(QrSegment, [{
838
- key: "getData",
839
- value: function getData() {
840
- return this.bitData.slice(); // Make defensive copy
841
- } // (Package-private) Calculates and returns the number of bits needed to encode the given segments at
842
- // the given version. The result is infinity if a segment has too many characters to fit its length field.
843
-
844
- }], [{
845
- key: "makeBytes",
846
- value:
847
- /*-- Static factory functions (mid level) --*/
848
- // Returns a segment representing the given binary data encoded in
849
- // byte mode. All input byte arrays are acceptable. Any text string
850
- // can be converted to UTF-8 bytes and encoded as a byte mode segment.
851
- function makeBytes(data) {
852
- var bb = [];
853
-
854
- var _iterator5 = _createForOfIteratorHelper(data),
855
- _step5;
856
-
857
- try {
858
- for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
859
- var b = _step5.value;
860
- appendBits(b, 8, bb);
861
- }
862
- } catch (err) {
863
- _iterator5.e(err);
864
- } finally {
865
- _iterator5.f();
866
- }
867
-
868
- return new QrSegment(QrSegment.Mode.BYTE, data.length, bb);
869
- } // Returns a segment representing the given string of decimal digits encoded in numeric mode.
870
-
871
- }, {
872
- key: "makeNumeric",
873
- value: function makeNumeric(digits) {
874
- if (!QrSegment.isNumeric(digits)) throw new RangeError('String contains non-numeric characters');
875
- var bb = [];
876
-
877
- for (var i = 0; i < digits.length;) {
878
- // Consume up to 3 digits per iteration
879
- var n = Math.min(digits.length - i, 3);
880
- appendBits(parseInt(digits.substr(i, n), 10), n * 3 + 1, bb);
881
- i += n;
882
- }
883
-
884
- return new QrSegment(QrSegment.Mode.NUMERIC, digits.length, bb);
885
- } // Returns a segment representing the given text string encoded in alphanumeric mode.
886
- // The characters allowed are: 0 to 9, A to Z (uppercase only), space,
887
- // dollar, percent, asterisk, plus, hyphen, period, slash, colon.
888
-
889
- }, {
890
- key: "makeAlphanumeric",
891
- value: function makeAlphanumeric(text) {
892
- if (!QrSegment.isAlphanumeric(text)) throw new RangeError('String contains unencodable characters in alphanumeric mode');
893
- var bb = [];
894
- var i;
895
-
896
- for (i = 0; i + 2 <= text.length; i += 2) {
897
- // Process groups of 2
898
- var temp = QrSegment.ALPHANUMERIC_CHARSET.indexOf(text.charAt(i)) * 45;
899
- temp += QrSegment.ALPHANUMERIC_CHARSET.indexOf(text.charAt(i + 1));
900
- appendBits(temp, 11, bb);
901
- }
902
-
903
- if (i < text.length) // 1 character remaining
904
- appendBits(QrSegment.ALPHANUMERIC_CHARSET.indexOf(text.charAt(i)), 6, bb);
905
- return new QrSegment(QrSegment.Mode.ALPHANUMERIC, text.length, bb);
906
- } // Returns a new mutable list of zero or more segments to represent the given Unicode text string.
907
- // The result may use various segment modes and switch modes to optimize the length of the bit stream.
908
-
909
- }, {
910
- key: "makeSegments",
911
- value: function makeSegments(text) {
912
- // Select the most efficient segment encoding automatically
913
- if (text == '') return [];else if (QrSegment.isNumeric(text)) return [QrSegment.makeNumeric(text)];else if (QrSegment.isAlphanumeric(text)) return [QrSegment.makeAlphanumeric(text)];else return [QrSegment.makeBytes(QrSegment.toUtf8ByteArray(text))];
914
- } // Returns a segment representing an Extended Channel Interpretation
915
- // (ECI) designator with the given assignment value.
916
-
917
- }, {
918
- key: "makeEci",
919
- value: function makeEci(assignVal) {
920
- var bb = [];
921
- if (assignVal < 0) throw new RangeError('ECI assignment value out of range');else if (assignVal < 1 << 7) appendBits(assignVal, 8, bb);else if (assignVal < 1 << 14) {
922
- appendBits(2, 2, bb);
923
- appendBits(assignVal, 14, bb);
924
- } else if (assignVal < 1000000) {
925
- appendBits(6, 3, bb);
926
- appendBits(assignVal, 21, bb);
927
- } else throw new RangeError('ECI assignment value out of range');
928
- return new QrSegment(QrSegment.Mode.ECI, 0, bb);
929
- } // Tests whether the given string can be encoded as a segment in numeric mode.
930
- // A string is encodable iff each character is in the range 0 to 9.
931
-
932
- }, {
933
- key: "isNumeric",
934
- value: function isNumeric(text) {
935
- return QrSegment.NUMERIC_REGEX.test(text);
936
- } // Tests whether the given string can be encoded as a segment in alphanumeric mode.
937
- // A string is encodable iff each character is in the following set: 0 to 9, A to Z
938
- // (uppercase only), space, dollar, percent, asterisk, plus, hyphen, period, slash, colon.
939
-
940
- }, {
941
- key: "isAlphanumeric",
942
- value: function isAlphanumeric(text) {
943
- return QrSegment.ALPHANUMERIC_REGEX.test(text);
944
- }
945
- /*-- Constructor (low level) and fields --*/
946
-
947
- }, {
948
- key: "getTotalBits",
949
- value: function getTotalBits(segs, version) {
950
- var result = 0;
951
-
952
- var _iterator6 = _createForOfIteratorHelper(segs),
953
- _step6;
954
-
955
- try {
956
- for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
957
- var seg = _step6.value;
958
- var ccbits = seg.mode.numCharCountBits(version);
959
- if (seg.numChars >= 1 << ccbits) return Infinity; // The segment's length doesn't fit the field's bit width
960
-
961
- result += 4 + ccbits + seg.bitData.length;
962
- }
963
- } catch (err) {
964
- _iterator6.e(err);
965
- } finally {
966
- _iterator6.f();
967
- }
968
-
969
- return result;
970
- } // Returns a new array of bytes representing the given string encoded in UTF-8.
971
-
972
- }, {
973
- key: "toUtf8ByteArray",
974
- value: function toUtf8ByteArray(str) {
975
- str = encodeURI(str);
976
- var result = [];
977
-
978
- for (var i = 0; i < str.length; i++) {
979
- if (str.charAt(i) != '%') result.push(str.charCodeAt(i));else {
980
- result.push(parseInt(str.substr(i + 1, 2), 16));
981
- i += 2;
982
- }
983
- }
984
-
985
- return result;
986
- }
987
- /*-- Constants --*/
988
- // Describes precisely all strings that are encodable in numeric mode.
989
-
990
- }]);
991
-
992
- return QrSegment;
993
- }();
994
-
995
- QrSegment.NUMERIC_REGEX = /^[0-9]*$/;
996
- QrSegment.ALPHANUMERIC_REGEX = /^[A-Z0-9 $%*+.\/:-]*$/;
997
- QrSegment.ALPHANUMERIC_CHARSET = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:';
998
- _qrcodegen.QrSegment = QrSegment;
999
- })(qrcodegen || (qrcodegen = {}));
1000
- /*---- Public helper enumeration ----*/
1001
- // eslint-disable-next-line @typescript-eslint/no-namespace
1002
-
1003
-
1004
- (function (_qrcodegen2) {
1005
- var QrCode;
1006
-
1007
- (function (_QrCode) {
1008
- var Ecc = /*#__PURE__*/_createClass(
1009
- /*-- Constants --*/
1010
- // The QR Code can tolerate about 7% erroneous codewords
1011
- // The QR Code can tolerate about 15% erroneous codewords
1012
- // The QR Code can tolerate about 25% erroneous codewords
1013
- // The QR Code can tolerate about 30% erroneous codewords
1014
-
1015
- /*-- Constructor and fields --*/
1016
- // In the range 0 to 3 (unsigned 2-bit integer).
1017
- // (Package-private) In the range 0 to 3 (unsigned 2-bit integer).
1018
- function Ecc( // In the range 0 to 3 (unsigned 2-bit integer).
1019
- ordinal, // (Package-private) In the range 0 to 3 (unsigned 2-bit integer).
1020
- formatBits) {
1021
- _classCallCheck(this, Ecc);
1022
-
1023
- this.ordinal = void 0;
1024
- this.formatBits = void 0;
1025
- this.ordinal = ordinal;
1026
- this.formatBits = formatBits;
1027
- });
1028
-
1029
- Ecc.LOW = new Ecc(0, 1);
1030
- Ecc.MEDIUM = new Ecc(1, 0);
1031
- Ecc.QUARTILE = new Ecc(2, 3);
1032
- Ecc.HIGH = new Ecc(3, 2);
1033
- _QrCode.Ecc = Ecc;
1034
- })(QrCode || (QrCode = _qrcodegen2.QrCode || (_qrcodegen2.QrCode = {})));
1035
- })(qrcodegen || (qrcodegen = {}));
1036
- /*---- Public helper enumeration ----*/
1037
- // eslint-disable-next-line @typescript-eslint/no-namespace
1038
-
1039
-
1040
- (function (_qrcodegen3) {
1041
- var QrSegment;
1042
-
1043
- (function (_QrSegment) {
1044
- var Mode = /*#__PURE__*/function () {
1045
- /*-- Constants --*/
1046
-
1047
- /*-- Constructor and fields --*/
1048
- // The mode indicator bits, which is a uint4 value (range 0 to 15).
1049
- // Number of character count bits for three different version ranges.
1050
- function Mode( // The mode indicator bits, which is a uint4 value (range 0 to 15).
1051
- modeBits, // Number of character count bits for three different version ranges.
1052
- numBitsCharCount) {
1053
- _classCallCheck(this, Mode);
1054
-
1055
- this.modeBits = void 0;
1056
- this.numBitsCharCount = void 0;
1057
- this.modeBits = modeBits;
1058
- this.numBitsCharCount = numBitsCharCount;
1059
- }
1060
- /*-- Method --*/
1061
- // (Package-private) Returns the bit width of the character count field for a segment in
1062
- // this mode in a QR Code at the given version number. The result is in the range [0, 16].
1063
-
1064
-
1065
- _createClass(Mode, [{
1066
- key: "numCharCountBits",
1067
- value: function numCharCountBits(ver) {
1068
- return this.numBitsCharCount[Math.floor((ver + 7) / 17)];
1069
- }
1070
- }]);
1071
-
1072
- return Mode;
1073
- }();
1074
-
1075
- Mode.NUMERIC = new Mode(0x1, [10, 12, 14]);
1076
- Mode.ALPHANUMERIC = new Mode(0x2, [9, 11, 13]);
1077
- Mode.BYTE = new Mode(0x4, [8, 16, 16]);
1078
- Mode.KANJI = new Mode(0x8, [8, 10, 12]);
1079
- Mode.ECI = new Mode(0x7, [0, 0, 0]);
1080
- _QrSegment.Mode = Mode;
1081
- })(QrSegment || (QrSegment = _qrcodegen3.QrSegment || (_qrcodegen3.QrSegment = {})));
1082
- })(qrcodegen || (qrcodegen = {})); // Modification to export for actual use
1083
-
1084
-
1085
- export default qrcodegen;