@digigov/ui 1.2.0-dcbd7ded → 2.0.0-7d9a8d86

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