@digigov/ui 0.28.0 → 0.28.2

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