@cruk/cruk-react-components 5.0.8 → 6.0.1

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 (326) hide show
  1. package/README.md +20 -7
  2. package/lib/{src/components → components}/AddressLookup/AddressLookup.stories.d.ts +1 -1
  3. package/lib/{src/components → components}/AddressLookup/index.d.ts +1 -1
  4. package/lib/{src/components → components}/Box/Box.stories.d.ts +1 -1
  5. package/lib/{src/components → components}/Box/index.d.ts +1 -1
  6. package/lib/{src/components → components}/Button/Button.stories.d.ts +1 -1
  7. package/lib/{src/components → components}/Button/index.d.ts +1 -1
  8. package/lib/{src/components → components}/Checkbox/Checkbox.stories.d.ts +1 -1
  9. package/lib/{src/components → components}/Checkbox/index.d.ts +3 -3
  10. package/lib/{src/components → components}/Collapse/styles.d.ts +11 -3
  11. package/lib/{src/components → components}/DateField/styles.d.ts +12 -6
  12. package/lib/components/ErrorText/styles.d.ts +16 -0
  13. package/lib/{src/components → components}/Footer/styles.d.ts +3 -9
  14. package/lib/components/GlobalStyle.d.ts +2 -0
  15. package/lib/components/GlobalStyleNoFontFace.d.ts +2 -0
  16. package/lib/{src/components → components}/InfoBox/InfoBox.stories.d.ts +1 -1
  17. package/lib/{src/components → components}/InfoBox/index.d.ts +1 -1
  18. package/lib/components/InfoBox/styles.d.ts +13 -0
  19. package/lib/{src/components → components}/Link/Link.stories.d.ts +4 -1
  20. package/lib/{src/components → components}/Link/index.d.ts +4 -1
  21. package/lib/components/Link/styles.d.ts +20 -0
  22. package/lib/components/Modal/styles.d.ts +32 -0
  23. package/lib/{src/components → components}/Radio/Radio.stories.d.ts +1 -1
  24. package/lib/{src/components → components}/Radio/index.d.ts +3 -3
  25. package/lib/{src/components → components}/RadioConsent/styles.d.ts +6 -3
  26. package/lib/{src/components → components}/Select/Selelct.stories.d.ts +1 -1
  27. package/lib/{src/components → components}/Select/index.d.ts +3 -3
  28. package/lib/{src/components → components}/Text/Text.stories.d.ts +1 -1
  29. package/lib/{src/components → components}/Text/index.d.ts +1 -1
  30. package/lib/{src/components → components}/TextAreaField/TextAreaField.stories.d.ts +1 -1
  31. package/lib/{src/components → components}/TextAreaField/index.d.ts +1 -1
  32. package/lib/{src/components → components}/TextField/TextField.stories.d.ts +1 -1
  33. package/lib/{src/components → components}/TextField/index.d.ts +1 -1
  34. package/lib/{src/components → components}/TextField/styles.d.ts +2 -6
  35. package/lib/components/ThemeCheatSheet.d.ts +7 -0
  36. package/lib/{src/hooks → hooks}/useScrollPosition.d.ts +2 -2
  37. package/lib/node_modules/tslib/tslib.es6.js +1 -1
  38. package/lib/node_modules/tslib/tslib.es6.js.map +1 -1
  39. package/lib/src/components/AddressLookup/index.js +1 -1
  40. package/lib/src/components/AddressLookup/index.js.map +1 -1
  41. package/lib/src/components/AddressLookup/styles.js +1 -38
  42. package/lib/src/components/AddressLookup/styles.js.map +1 -1
  43. package/lib/src/components/Avatar/index.js +1 -1
  44. package/lib/src/components/Avatar/index.js.map +1 -1
  45. package/lib/src/components/Avatar/styles.js +1 -10
  46. package/lib/src/components/Avatar/styles.js.map +1 -1
  47. package/lib/src/components/Badge/index.js +1 -1
  48. package/lib/src/components/Badge/index.js.map +1 -1
  49. package/lib/src/components/Badge/styles.js +1 -17
  50. package/lib/src/components/Badge/styles.js.map +1 -1
  51. package/lib/src/components/Box/index.js +1 -1
  52. package/lib/src/components/Box/index.js.map +1 -1
  53. package/lib/src/components/Box/styles.js +1 -13
  54. package/lib/src/components/Box/styles.js.map +1 -1
  55. package/lib/src/components/Button/index.js +1 -1
  56. package/lib/src/components/Button/index.js.map +1 -1
  57. package/lib/src/components/Button/styles.js +1 -108
  58. package/lib/src/components/Button/styles.js.map +1 -1
  59. package/lib/src/components/Carousel/Dots.js +1 -1
  60. package/lib/src/components/Carousel/Dots.js.map +1 -1
  61. package/lib/src/components/Carousel/index.js +1 -1
  62. package/lib/src/components/Carousel/index.js.map +1 -1
  63. package/lib/src/components/Carousel/styles.js +1 -96
  64. package/lib/src/components/Carousel/styles.js.map +1 -1
  65. package/lib/src/components/Checkbox/index.js +1 -1
  66. package/lib/src/components/Checkbox/index.js.map +1 -1
  67. package/lib/src/components/Checkbox/styles.js +1 -105
  68. package/lib/src/components/Checkbox/styles.js.map +1 -1
  69. package/lib/src/components/Collapse/index.js +1 -1
  70. package/lib/src/components/Collapse/index.js.map +1 -1
  71. package/lib/src/components/Collapse/styles.js +1 -31
  72. package/lib/src/components/Collapse/styles.js.map +1 -1
  73. package/lib/src/components/DateField/index.js +1 -1
  74. package/lib/src/components/DateField/index.js.map +1 -1
  75. package/lib/src/components/DateField/styles.js +1 -26
  76. package/lib/src/components/DateField/styles.js.map +1 -1
  77. package/lib/src/components/Divider.js +1 -17
  78. package/lib/src/components/Divider.js.map +1 -1
  79. package/lib/src/components/ErrorText/index.js +1 -1
  80. package/lib/src/components/ErrorText/index.js.map +1 -1
  81. package/lib/src/components/ErrorText/styles.js +1 -5
  82. package/lib/src/components/ErrorText/styles.js.map +1 -1
  83. package/lib/src/components/Flex.js +1 -7
  84. package/lib/src/components/Flex.js.map +1 -1
  85. package/lib/src/components/Fontface.js +1 -1
  86. package/lib/src/components/Fontface.js.map +1 -1
  87. package/lib/src/components/Footer/index.js +1 -1
  88. package/lib/src/components/Footer/index.js.map +1 -1
  89. package/lib/src/components/Footer/styles.js +1 -69
  90. package/lib/src/components/Footer/styles.js.map +1 -1
  91. package/lib/src/components/GlobalStyle.js +1 -37
  92. package/lib/src/components/GlobalStyle.js.map +1 -1
  93. package/lib/src/components/GlobalStyleNoFontFace.js +1 -37
  94. package/lib/src/components/GlobalStyleNoFontFace.js.map +1 -1
  95. package/lib/src/components/Header/index.js +1 -1
  96. package/lib/src/components/Header/index.js.map +1 -1
  97. package/lib/src/components/Header/styles.js +1 -109
  98. package/lib/src/components/Header/styles.js.map +1 -1
  99. package/lib/src/components/Heading/index.js +1 -1
  100. package/lib/src/components/Heading/index.js.map +1 -1
  101. package/lib/src/components/Heading/styles.js +1 -75
  102. package/lib/src/components/Heading/styles.js.map +1 -1
  103. package/lib/src/components/IconFa/index.js +1 -1
  104. package/lib/src/components/IconFa/index.js.map +1 -1
  105. package/lib/src/components/IconFa/styles.js +1 -10
  106. package/lib/src/components/IconFa/styles.js.map +1 -1
  107. package/lib/src/components/InfoBox/index.js +1 -1
  108. package/lib/src/components/InfoBox/index.js.map +1 -1
  109. package/lib/src/components/InfoBox/styles.js +1 -12
  110. package/lib/src/components/InfoBox/styles.js.map +1 -1
  111. package/lib/src/components/LabelWrapper/index.js +1 -1
  112. package/lib/src/components/LabelWrapper/index.js.map +1 -1
  113. package/lib/src/components/LabelWrapper/styles.js +1 -15
  114. package/lib/src/components/LabelWrapper/styles.js.map +1 -1
  115. package/lib/src/components/LegendWrapper/index.js +1 -1
  116. package/lib/src/components/LegendWrapper/index.js.map +1 -1
  117. package/lib/src/components/LegendWrapper/styles.js +1 -34
  118. package/lib/src/components/LegendWrapper/styles.js.map +1 -1
  119. package/lib/src/components/Link/index.js +1 -1
  120. package/lib/src/components/Link/index.js.map +1 -1
  121. package/lib/src/components/Link/styles.js +1 -29
  122. package/lib/src/components/Link/styles.js.map +1 -1
  123. package/lib/src/components/Loader/index.js +1 -1
  124. package/lib/src/components/Loader/index.js.map +1 -1
  125. package/lib/src/components/Loader/styles.js +1 -45
  126. package/lib/src/components/Loader/styles.js.map +1 -1
  127. package/lib/src/components/Modal/index.js +1 -1
  128. package/lib/src/components/Modal/index.js.map +1 -1
  129. package/lib/src/components/Modal/styles.js +1 -59
  130. package/lib/src/components/Modal/styles.js.map +1 -1
  131. package/lib/src/components/Pagination/index.js +1 -1
  132. package/lib/src/components/Pagination/index.js.map +1 -1
  133. package/lib/src/components/Pagination/styles.js +1 -92
  134. package/lib/src/components/Pagination/styles.js.map +1 -1
  135. package/lib/src/components/PopOver/index.js +1 -1
  136. package/lib/src/components/PopOver/index.js.map +1 -1
  137. package/lib/src/components/PopOver/styles.js +1 -81
  138. package/lib/src/components/PopOver/styles.js.map +1 -1
  139. package/lib/src/components/ProgressBar/index.js +1 -1
  140. package/lib/src/components/ProgressBar/index.js.map +1 -1
  141. package/lib/src/components/ProgressBar/styles.js +1 -132
  142. package/lib/src/components/ProgressBar/styles.js.map +1 -1
  143. package/lib/src/components/Radio/index.js +1 -1
  144. package/lib/src/components/Radio/index.js.map +1 -1
  145. package/lib/src/components/Radio/styles.js +1 -125
  146. package/lib/src/components/Radio/styles.js.map +1 -1
  147. package/lib/src/components/RadioConsent/index.js +1 -1
  148. package/lib/src/components/RadioConsent/index.js.map +1 -1
  149. package/lib/src/components/RadioConsent/styles.js +1 -26
  150. package/lib/src/components/RadioConsent/styles.js.map +1 -1
  151. package/lib/src/components/Select/index.js +1 -1
  152. package/lib/src/components/Select/index.js.map +1 -1
  153. package/lib/src/components/Select/styles.js +1 -41
  154. package/lib/src/components/Select/styles.js.map +1 -1
  155. package/lib/src/components/Spacing/index.js +1 -1
  156. package/lib/src/components/Spacing/index.js.map +1 -1
  157. package/lib/src/components/Step/index.js +1 -1
  158. package/lib/src/components/Step/index.js.map +1 -1
  159. package/lib/src/components/Step/styles.js +1 -79
  160. package/lib/src/components/Step/styles.js.map +1 -1
  161. package/lib/src/components/Text/index.js +1 -1
  162. package/lib/src/components/Text/index.js.map +1 -1
  163. package/lib/src/components/Text/styles.js +1 -19
  164. package/lib/src/components/Text/styles.js.map +1 -1
  165. package/lib/src/components/TextAreaField/index.js +1 -1
  166. package/lib/src/components/TextAreaField/index.js.map +1 -1
  167. package/lib/src/components/TextAreaField/styles.js +1 -29
  168. package/lib/src/components/TextAreaField/styles.js.map +1 -1
  169. package/lib/src/components/TextField/index.js +1 -1
  170. package/lib/src/components/TextField/index.js.map +1 -1
  171. package/lib/src/components/TextField/styles.js +1 -110
  172. package/lib/src/components/TextField/styles.js.map +1 -1
  173. package/lib/src/components/Totaliser/index.js +1 -1
  174. package/lib/src/components/Totaliser/index.js.map +1 -1
  175. package/lib/src/components/Totaliser/styles.js +1 -59
  176. package/lib/src/components/Totaliser/styles.js.map +1 -1
  177. package/lib/src/components/UserBlock/index.js +1 -1
  178. package/lib/src/components/UserBlock/index.js.map +1 -1
  179. package/lib/src/components/UserBlock/styles.js +1 -21
  180. package/lib/src/components/UserBlock/styles.js.map +1 -1
  181. package/lib/src/hooks/useEffectBrowser.js +1 -1
  182. package/lib/src/hooks/useEffectBrowser.js.map +1 -1
  183. package/lib/src/hooks/useKey.js +1 -1
  184. package/lib/src/hooks/useKey.js.map +1 -1
  185. package/lib/src/hooks/useLayoutEffectBrowser.js +1 -1
  186. package/lib/src/hooks/useLayoutEffectBrowser.js.map +1 -1
  187. package/lib/src/hooks/useScrollPosition.js +1 -1
  188. package/lib/src/hooks/useScrollPosition.js.map +1 -1
  189. package/lib/src/themes/bowelbabe.js +1 -1
  190. package/lib/src/themes/bowelbabe.js.map +1 -1
  191. package/lib/src/themes/cruk.js +1 -1
  192. package/lib/src/themes/cruk.js.map +1 -1
  193. package/lib/src/themes/rfl.js +1 -1
  194. package/lib/src/themes/rfl.js.map +1 -1
  195. package/lib/src/themes/su2c.js +1 -1
  196. package/lib/src/themes/su2c.js.map +1 -1
  197. package/lib/src/utils/Helper.js +1 -1
  198. package/lib/src/utils/Helper.js.map +1 -1
  199. package/lib/src/utils/debounce.js +1 -1
  200. package/lib/src/utils/debounce.js.map +1 -1
  201. package/lib/src/utils/themeUtils.js +1 -1
  202. package/lib/src/utils/themeUtils.js.map +1 -1
  203. package/package.json +15 -15
  204. package/lib/.storybook/main.d.ts +0 -3
  205. package/lib/.storybook/preview.d.ts +0 -3
  206. package/lib/src/components/ErrorText/styles.d.ts +0 -8
  207. package/lib/src/components/GlobalStyle.d.ts +0 -2
  208. package/lib/src/components/GlobalStyleNoFontFace.d.ts +0 -2
  209. package/lib/src/components/InfoBox/styles.d.ts +0 -10
  210. package/lib/src/components/Link/styles.d.ts +0 -12
  211. package/lib/src/components/Modal/styles.d.ts +0 -21
  212. package/lib/src/components/ThemeCheatSheet.d.ts +0 -7
  213. /package/lib/{src/components → components}/AddressLookup/AddressLookUp.test.cypress.d.ts +0 -0
  214. /package/lib/{src/components → components}/AddressLookup/styles.d.ts +0 -0
  215. /package/lib/{src/components → components}/AllThemesWrapper.d.ts +0 -0
  216. /package/lib/{src/components → components}/Avatar/Avatar.stories.d.ts +0 -0
  217. /package/lib/{src/components → components}/Avatar/Avatar.test.cypress.d.ts +0 -0
  218. /package/lib/{src/components → components}/Avatar/index.d.ts +0 -0
  219. /package/lib/{src/components → components}/Avatar/styles.d.ts +0 -0
  220. /package/lib/{src/components → components}/Badge/Badge.stories.d.ts +0 -0
  221. /package/lib/{src/components → components}/Badge/Badge.test.cypress.d.ts +0 -0
  222. /package/lib/{src/components → components}/Badge/index.d.ts +0 -0
  223. /package/lib/{src/components → components}/Badge/styles.d.ts +0 -0
  224. /package/lib/{src/components → components}/Box/Box.test.cypress.d.ts +0 -0
  225. /package/lib/{src/components → components}/Box/styles.d.ts +0 -0
  226. /package/lib/{src/components → components}/Button/Button.test.cypress.d.ts +0 -0
  227. /package/lib/{src/components → components}/Button/styles.d.ts +0 -0
  228. /package/lib/{src/components → components}/Carousel/Carousel.stories.d.ts +0 -0
  229. /package/lib/{src/components → components}/Carousel/Carousel.test.cypress.d.ts +0 -0
  230. /package/lib/{src/components → components}/Carousel/Dots.d.ts +0 -0
  231. /package/lib/{src/components → components}/Carousel/index.d.ts +0 -0
  232. /package/lib/{src/components → components}/Carousel/styles.d.ts +0 -0
  233. /package/lib/{src/components → components}/Checkbox/CheckBox.test.cypress.d.ts +0 -0
  234. /package/lib/{src/components → components}/Checkbox/styles.d.ts +0 -0
  235. /package/lib/{src/components → components}/Collapse/Collapse.stories.d.ts +0 -0
  236. /package/lib/{src/components → components}/Collapse/Collapse.test.cypress.d.ts +0 -0
  237. /package/lib/{src/components → components}/Collapse/index.d.ts +0 -0
  238. /package/lib/{src/components → components}/DateField/DateField.stories.d.ts +0 -0
  239. /package/lib/{src/components → components}/DateField/DateField.test.cypress.d.ts +0 -0
  240. /package/lib/{src/components → components}/DateField/index.d.ts +0 -0
  241. /package/lib/{src/components → components}/Divider.d.ts +0 -0
  242. /package/lib/{src/components → components}/ErrorText/ErrorText.stories.d.ts +0 -0
  243. /package/lib/{src/components → components}/ErrorText/ErrorText.test.cypress.d.ts +0 -0
  244. /package/lib/{src/components → components}/ErrorText/index.d.ts +0 -0
  245. /package/lib/{src/components → components}/Flex.d.ts +0 -0
  246. /package/lib/{src/components → components}/Fontface.d.ts +0 -0
  247. /package/lib/{src/components → components}/Footer/Footer.stories.d.ts +0 -0
  248. /package/lib/{src/components → components}/Footer/Footer.test.cypress.d.ts +0 -0
  249. /package/lib/{src/components → components}/Footer/index.d.ts +0 -0
  250. /package/lib/{src/components → components}/Header/Header.stories.d.ts +0 -0
  251. /package/lib/{src/components → components}/Header/Header.test.cypress.d.ts +0 -0
  252. /package/lib/{src/components → components}/Header/index.d.ts +0 -0
  253. /package/lib/{src/components → components}/Header/styles.d.ts +0 -0
  254. /package/lib/{src/components → components}/Heading/Heading.stories.d.ts +0 -0
  255. /package/lib/{src/components → components}/Heading/Heading.test.cypress.d.ts +0 -0
  256. /package/lib/{src/components → components}/Heading/index.d.ts +0 -0
  257. /package/lib/{src/components → components}/Heading/styles.d.ts +0 -0
  258. /package/lib/{src/components → components}/IconFa/IconFa.stories.d.ts +0 -0
  259. /package/lib/{src/components → components}/IconFa/IconFa.test.cypress.d.ts +0 -0
  260. /package/lib/{src/components → components}/IconFa/index.d.ts +0 -0
  261. /package/lib/{src/components → components}/IconFa/styles.d.ts +0 -0
  262. /package/lib/{src/components → components}/InfoBox/InfoBox.test.cypress.d.ts +0 -0
  263. /package/lib/{src/components → components}/LabelWrapper/index.d.ts +0 -0
  264. /package/lib/{src/components → components}/LabelWrapper/styles.d.ts +0 -0
  265. /package/lib/{src/components → components}/LegendWrapper/LegendWrapper.stories.d.ts +0 -0
  266. /package/lib/{src/components → components}/LegendWrapper/LegendWrapper.test.cypress.d.ts +0 -0
  267. /package/lib/{src/components → components}/LegendWrapper/index.d.ts +0 -0
  268. /package/lib/{src/components → components}/LegendWrapper/styles.d.ts +0 -0
  269. /package/lib/{src/components → components}/Link/Link.test.cypress.d.ts +0 -0
  270. /package/lib/{src/components → components}/Loader/Loader.stories.d.ts +0 -0
  271. /package/lib/{src/components → components}/Loader/Loader.test.cypress.d.ts +0 -0
  272. /package/lib/{src/components → components}/Loader/index.d.ts +0 -0
  273. /package/lib/{src/components → components}/Loader/styles.d.ts +0 -0
  274. /package/lib/{src/components → components}/Modal/Modal.stories.d.ts +0 -0
  275. /package/lib/{src/components → components}/Modal/Modal.test.cypress.d.ts +0 -0
  276. /package/lib/{src/components → components}/Modal/index.d.ts +0 -0
  277. /package/lib/{src/components → components}/Pagination/Pagination.stories.d.ts +0 -0
  278. /package/lib/{src/components → components}/Pagination/Pagination.test.cypress.d.ts +0 -0
  279. /package/lib/{src/components → components}/Pagination/index.d.ts +0 -0
  280. /package/lib/{src/components → components}/Pagination/styles.d.ts +0 -0
  281. /package/lib/{src/components → components}/PopOver/PopOver.test.cypress.d.ts +0 -0
  282. /package/lib/{src/components → components}/PopOver/Popover.stories.d.ts +0 -0
  283. /package/lib/{src/components → components}/PopOver/index.d.ts +0 -0
  284. /package/lib/{src/components → components}/PopOver/styles.d.ts +0 -0
  285. /package/lib/{src/components → components}/ProgressBar/ProgressBar.stories.d.ts +0 -0
  286. /package/lib/{src/components → components}/ProgressBar/ProgressBar.test.cypress.d.ts +0 -0
  287. /package/lib/{src/components → components}/ProgressBar/index.d.ts +0 -0
  288. /package/lib/{src/components → components}/ProgressBar/styles.d.ts +0 -0
  289. /package/lib/{src/components → components}/Radio/Radio.test.cypress.d.ts +0 -0
  290. /package/lib/{src/components → components}/Radio/styles.d.ts +0 -0
  291. /package/lib/{src/components → components}/RadioConsent/Radio.stories.d.ts +0 -0
  292. /package/lib/{src/components → components}/RadioConsent/RadioConsent.test.cypress.d.ts +0 -0
  293. /package/lib/{src/components → components}/RadioConsent/index.d.ts +0 -0
  294. /package/lib/{src/components → components}/Select/Select.test.cypress.d.ts +0 -0
  295. /package/lib/{src/components → components}/Select/styles.d.ts +0 -0
  296. /package/lib/{src/components → components}/Spacing/index.d.ts +0 -0
  297. /package/lib/{src/components → components}/Step/Step.stories.d.ts +0 -0
  298. /package/lib/{src/components → components}/Step/Step.test.cypress.d.ts +0 -0
  299. /package/lib/{src/components → components}/Step/index.d.ts +0 -0
  300. /package/lib/{src/components → components}/Step/styles.d.ts +0 -0
  301. /package/lib/{src/components → components}/Text/Text.test.cypress.d.ts +0 -0
  302. /package/lib/{src/components → components}/Text/styles.d.ts +0 -0
  303. /package/lib/{src/components → components}/TextAreaField/TextAreaField.test.cypress.d.ts +0 -0
  304. /package/lib/{src/components → components}/TextAreaField/styles.d.ts +0 -0
  305. /package/lib/{src/components → components}/TextField/TextField.test.cypress.d.ts +0 -0
  306. /package/lib/{src/components → components}/Totaliser/Totaliser.stories.d.ts +0 -0
  307. /package/lib/{src/components → components}/Totaliser/Totaliser.test.cypress.d.ts +0 -0
  308. /package/lib/{src/components → components}/Totaliser/index.d.ts +0 -0
  309. /package/lib/{src/components → components}/Totaliser/styles.d.ts +0 -0
  310. /package/lib/{src/components → components}/UserBlock/UserBlock.stories.d.ts +0 -0
  311. /package/lib/{src/components → components}/UserBlock/UserBlock.test.cypress.d.ts +0 -0
  312. /package/lib/{src/components → components}/UserBlock/index.d.ts +0 -0
  313. /package/lib/{src/components → components}/UserBlock/styles.d.ts +0 -0
  314. /package/lib/{src/components → components}/index.d.ts +0 -0
  315. /package/lib/{src/hooks → hooks}/useEffectBrowser.d.ts +0 -0
  316. /package/lib/{src/hooks → hooks}/useKey.d.ts +0 -0
  317. /package/lib/{src/hooks → hooks}/useLayoutEffectBrowser.d.ts +0 -0
  318. /package/lib/{src/themes → themes}/bowelbabe.d.ts +0 -0
  319. /package/lib/{src/themes → themes}/cruk.d.ts +0 -0
  320. /package/lib/{src/themes → themes}/rfl.d.ts +0 -0
  321. /package/lib/{src/themes → themes}/su2c.d.ts +0 -0
  322. /package/lib/{src/types.d.ts → types.d.ts} +0 -0
  323. /package/lib/{src/utils → utils}/Helper.d.ts +0 -0
  324. /package/lib/{src/utils → utils}/__tests__/testHelpers.test.d.ts +0 -0
  325. /package/lib/{src/utils → utils}/debounce.d.ts +0 -0
  326. /package/lib/{src/utils → utils}/themeUtils.d.ts +0 -0
package/README.md CHANGED
@@ -14,9 +14,9 @@ Add cruk-react-components and its peer dependencies react, react-dom and styled-
14
14
 
15
15
  ```sh
16
16
  "dependencies": {
17
- "react": "^16.2.0",
18
- "react-dom": "^16.2.0",
19
- "styled-components": "^5.0.0"
17
+ "react": "^19",
18
+ "react-dom": "^19",
19
+ "styled-components": "^6"
20
20
  }
21
21
  ```
22
22
 
@@ -152,10 +152,23 @@ and see if it can successfully build the library before running the release scri
152
152
 
153
153
  ### Releases
154
154
 
155
- Please update the version number in the package.json and follow the semver standards for version numbers.
155
+ #### Pre-release
156
156
 
157
- Make sure that your current node version is Node 16.
157
+ Please update the version number in the package.json and follow the semver standards for version numbers.
158
+ Run `nvm use` to make sure that you are on the correct version of node.
158
159
  Run `npm i` to make sure that the correct version in the lockfile.
159
160
  Update the CHANGELOG.md which should list the changes for the release, instructions are at the bottom of the file.
160
- Make sure that you have the correct permissions for the @cruk on NPM
161
- Run the release script with `npm run release` this should make and push the tag, build the lib and release it on NPM.
161
+ These changes need to be merged into master.
162
+
163
+ #### Releasing
164
+
165
+ Make sure that you have the correct permissions for the @cruk org on NPM.
166
+ Run the release script with `npm run release` this should use `release-it` to allow you to select the same version number as stated in the package JSON and it should take care of the rest:
167
+
168
+ - it runs npm ci
169
+ - it does the build
170
+ - it makes and pushes the tag
171
+ - it releases the build lib to NPM
172
+ - it requestions if you want to document the release on github and autogenerates the release notes.
173
+
174
+ Agree to all these steps release-it walks through and when Github opens up with the release click on the `Publish` button. If anything goes wrong release-it should roll back.
@@ -3,7 +3,7 @@ import { type StoryObj } from "@storybook/react";
3
3
  import { type AddressLookupProps } from ".";
4
4
  declare const _default: {
5
5
  title: string;
6
- component: React.ForwardRefExoticComponent<Omit<AddressLookupProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
6
+ component: ({ apiKey, countries, errorMessage, hasError, isValid, isValidVisible, isInvalidVisible, label, hintText, ref, onAddressError, onAddressSelected, onChange, onBlur, ...props }: AddressLookupProps) => React.JSX.Element;
7
7
  args: {
8
8
  disabled: boolean;
9
9
  errorMessage: string;
@@ -34,5 +34,5 @@ export type AddressLookupProps = InputHTMLAttributes<HTMLInputElement> & {
34
34
  * You will need a Loqate api key, the examples below use "MG17-ZD93-FF33-KF13" our development key.
35
35
  * This component is generally only used for country codes including "GBR", "GGY", "IMN", "JEY". An example of this behavior is included bellow.
36
36
  */
37
- export declare const AddressLookup: React.ForwardRefExoticComponent<Omit<AddressLookupProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
37
+ export declare const AddressLookup: ({ apiKey, countries, errorMessage, hasError, isValid, isValidVisible, isInvalidVisible, label, hintText, ref, onAddressError, onAddressSelected, onChange, onBlur, ...props }: AddressLookupProps) => React.JSX.Element;
38
38
  export default AddressLookup;
@@ -3,7 +3,7 @@ import { type StoryObj } from "@storybook/react";
3
3
  import Box from ".";
4
4
  declare const _default: {
5
5
  title: string;
6
- component: React.ForwardRefExoticComponent<Omit<import(".").BoxProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
+ component: ({ ...props }: import(".").BoxProps) => React.JSX.Element;
7
7
  args: {};
8
8
  tags: string[];
9
9
  };
@@ -14,5 +14,5 @@ export type BoxProps = SpacingProps & HTMLAttributes<HTMLElement> & {
14
14
  * The more specific the the target the higher priority the css will have.
15
15
  * For example `margin` will be overridden by the `marginVertical` or `marginHorizontal` props. `marginTop`, `marginBottom`, `marginLeft`, `marginRight` will override the the `marginVertical` and `marginHorizontal` props.
16
16
  */
17
- export declare const Box: React.ForwardRefExoticComponent<Omit<BoxProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
17
+ export declare const Box: ({ ...props }: BoxProps) => React.JSX.Element;
18
18
  export default Box;
@@ -3,7 +3,7 @@ import { type StoryObj } from "@storybook/react";
3
3
  import { Button } from "./";
4
4
  declare const _default: {
5
5
  title: string;
6
- component: React.ForwardRefExoticComponent<Omit<import("./").ButtonProps, "ref"> & React.RefAttributes<HTMLElement>>;
6
+ component: (props: import("./").ButtonProps) => React.JSX.Element;
7
7
  args: {
8
8
  appearance: string;
9
9
  disabled: boolean;
@@ -24,5 +24,5 @@ export type ButtonProps = ButtonHTMLAttributes<HTMLElement> & {
24
24
  *
25
25
  * Design system documentation SU2C https://zeroheight.com/79db39f7e/p/22ff0e-button/b/32e1a2
26
26
  */
27
- export declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLElement>>;
27
+ export declare const Button: (props: ButtonProps) => React.JSX.Element;
28
28
  export default Button;
@@ -3,7 +3,7 @@ import { type StoryObj } from "@storybook/react";
3
3
  import CheckBox, { type CheckBoxProps } from ".";
4
4
  declare const _default: {
5
5
  title: string;
6
- component: React.ForwardRefExoticComponent<Omit<CheckBoxProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
6
+ component: (props: CheckBoxProps) => React.JSX.Element;
7
7
  args: {
8
8
  id: string;
9
9
  disabled: boolean;
@@ -1,6 +1,6 @@
1
- import React, { type InputHTMLAttributes, type Ref, type ReactNode, type LegacyRef } from "react";
1
+ import React, { type InputHTMLAttributes, type Ref, type ReactNode } from "react";
2
2
  export type CheckBoxProps = InputHTMLAttributes<HTMLInputElement> & {
3
- ref?: Ref<HTMLInputElement> | LegacyRef<HTMLInputElement>;
3
+ ref?: Ref<HTMLInputElement>;
4
4
  /** flag for error styling */
5
5
  hasError?: boolean;
6
6
  /** error message text */
@@ -12,5 +12,5 @@ export type CheckBoxProps = InputHTMLAttributes<HTMLInputElement> & {
12
12
  *
13
13
  * The value or children becomes the label, if you want an outer label for a checkbox or group of checkboxes please use a LegendWrapper component
14
14
  */
15
- export declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckBoxProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
15
+ export declare const Checkbox: (props: CheckBoxProps) => React.JSX.Element;
16
16
  export default Checkbox;
@@ -3,14 +3,22 @@ export declare const transitionDurationSeconds = 0.5;
3
3
  export declare const FlippingIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
4
4
  $open: boolean;
5
5
  }>> & string;
6
- export declare const DefaultHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<Omit<import("../Button").ButtonProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & {
7
- ref?: ((instance: HTMLElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLElement> | null | undefined;
6
+ export declare const DefaultHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").ButtonHTMLAttributes<HTMLElement> & {
7
+ appearance?: import("../../types").ButtonAppearanceType;
8
+ full?: boolean;
9
+ href?: string;
10
+ size?: "m" | "l";
11
+ css?: unknown;
12
+ as?: import("react").ElementType;
13
+ isIconButton?: boolean;
14
+ ref?: import("react").Ref<HTMLElement>;
15
+ children?: import("react").ReactNode;
8
16
  }, {
9
17
  theme: ThemeType;
10
18
  $textColor?: string;
11
19
  $textSize?: FontSizeType;
12
20
  $textFontFamily?: string;
13
- }>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<import("../Button").ButtonProps, "ref"> & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
21
+ }>> & string & Omit<(props: import("../Button").ButtonProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
14
22
  export declare const CollapseContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
15
23
  $contentHeight: string;
16
24
  $openStatus: boolean;
@@ -1,16 +1,22 @@
1
1
  import { type ThemeType } from "../../types";
2
2
  export declare const Fieldset: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, never>> & string;
3
- export declare const TextAsLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<Omit<import("../Text").TextProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & {
4
- ref?: ((instance: HTMLElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLElement> | null | undefined;
3
+ export declare const TextAsLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../Spacing").SpacingProps & import("react").HTMLAttributes<HTMLElement> & {
4
+ textColor?: string;
5
+ textAlign?: "left" | "right" | "center" | "justify";
6
+ textSize?: import("../../types").FontSizeType;
7
+ textWeight?: number | string;
8
+ textFontFamily?: string;
9
+ as?: import("react").ElementType;
10
+ wordBreak?: import("../../types").WordBreakType;
11
+ overflowWrap?: import("../../types").OverflowWrapType;
12
+ ref?: import("react").Ref<HTMLElement>;
5
13
  }, {
6
14
  theme: ThemeType;
7
- }>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<import("../Text").TextProps, "ref"> & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
15
+ }>> & string & Omit<(props: import("../Text").TextProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
8
16
  export declare const DateTextFieldWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
9
17
  theme: ThemeType;
10
18
  }>> & string;
11
- export declare const LargeDateTextFieldWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme"> & {
19
+ export declare const LargeDateTextFieldWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme"> & {
12
20
  theme: ThemeType;
13
- }, "ref"> & {
14
- ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
15
21
  }, never>> & string;
16
22
  export declare const ErrorTextWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,16 @@
1
+ import { type ThemeType } from "../../types";
2
+ type ThemeProps = {
3
+ theme: ThemeType;
4
+ };
5
+ export declare const StyledErrorText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../Spacing").SpacingProps & import("react").HTMLAttributes<HTMLElement> & {
6
+ textColor?: string;
7
+ textAlign?: "left" | "right" | "center" | "justify";
8
+ textSize?: import("../../types").FontSizeType;
9
+ textWeight?: number | string;
10
+ textFontFamily?: string;
11
+ as?: import("react").ElementType;
12
+ wordBreak?: import("../../types").WordBreakType;
13
+ overflowWrap?: import("../../types").OverflowWrapType;
14
+ ref?: import("react").Ref<HTMLElement>;
15
+ }, ThemeProps>> & string & Omit<(props: import("../Text").TextProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
16
+ export default StyledErrorText;
@@ -5,18 +5,12 @@ type ThemeProps = {
5
5
  export declare const StyledFooter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, ThemeProps>> & string;
6
6
  export declare const FooterContentWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ThemeProps>> & string;
7
7
  export declare const FooterSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ThemeProps>> & string;
8
- export declare const FooterSectionLogo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme"> & ThemeProps, "ref"> & {
9
- ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
10
- }, never>> & string;
11
- export declare const FooterSectionLinks: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme"> & ThemeProps, "ref"> & {
12
- ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
13
- }, never>> & string;
8
+ export declare const FooterSectionLogo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme"> & ThemeProps, never>> & string;
9
+ export declare const FooterSectionLinks: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme"> & ThemeProps, never>> & string;
14
10
  export declare const StyledNav: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, ThemeProps>> & string;
15
11
  export declare const StyledUL: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, never>> & string;
16
12
  export declare const StyledLI: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, ThemeProps>> & string;
17
- export declare const FooterSectionAddress: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme"> & ThemeProps, "ref"> & {
18
- ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
19
- }, never>> & string;
13
+ export declare const FooterSectionAddress: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme"> & ThemeProps, never>> & string;
20
14
  export declare const StyledRegulatorLogo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>> & string;
21
15
  export declare const StyledAddress: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
22
16
  export {};
@@ -0,0 +1,2 @@
1
+ export declare const GlobalStyle: import("react").ForwardRefExoticComponent<Omit<JSX.LibraryManagedAttributes<T, import("styled-components").ExecutionProps>, "ref"> & import("react").RefAttributes<import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>>> & {};
2
+ export default GlobalStyle;
@@ -0,0 +1,2 @@
1
+ export declare const GlobalStyleNoFontFace: import("react").ForwardRefExoticComponent<Omit<JSX.LibraryManagedAttributes<T, import("styled-components").ExecutionProps>, "ref"> & import("react").RefAttributes<import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>>> & {};
2
+ export default GlobalStyleNoFontFace;
@@ -3,7 +3,7 @@ import { type StoryObj } from "@storybook/react";
3
3
  import InfoBox from ".";
4
4
  declare const _default: {
5
5
  title: string;
6
- component: React.ForwardRefExoticComponent<Omit<import(".").InfoBoxProps, "ref"> & React.RefAttributes<HTMLElement>>;
6
+ component: ({ children, titleText, titleTextColor, descriptionText, descriptionTextColor, icon, ref, ...spacingAndHTMLElementProps }: import(".").InfoBoxProps) => React.JSX.Element;
7
7
  args: {
8
8
  titleText: string;
9
9
  titleTextColor: string;
@@ -24,5 +24,5 @@ export type InfoBoxProps = SpacingProps & HTMLAttributes<HTMLElement> & {
24
24
 
25
25
  The more specific the the target the higher priority the css will have. For example `margin` will be overridden by the `marginVertical` or `marginHorizontal` props. `marginTop`, `marginBottom`, `marginLeft`, `marginRight` will override the the `marginVertical` and `marginHorizontal` props.
26
26
  */
27
- export declare const InfoBox: React.ForwardRefExoticComponent<Omit<InfoBoxProps, "ref"> & React.RefAttributes<HTMLElement>>;
27
+ export declare const InfoBox: ({ children, titleText, titleTextColor, descriptionText, descriptionTextColor, icon, ref, ...spacingAndHTMLElementProps }: InfoBoxProps) => React.JSX.Element;
28
28
  export default InfoBox;
@@ -0,0 +1,13 @@
1
+ import { type ThemeType } from "../../types";
2
+ import { type BoxProps } from "../Box";
3
+ type InfoBoxProps = BoxProps & {
4
+ css?: string;
5
+ theme: ThemeType;
6
+ };
7
+ export declare const StyledInfoBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../Spacing").SpacingProps & import("react").HTMLAttributes<HTMLElement> & {
8
+ backgroundColor?: string;
9
+ ref?: import("react").Ref<HTMLDivElement>;
10
+ children?: import("react").ReactNode;
11
+ as?: import("react").ElementType;
12
+ }, InfoBoxProps>> & string & Omit<({ ...props }: BoxProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
13
+ export default StyledInfoBox;
@@ -3,7 +3,10 @@ import { type StoryObj } from "@storybook/react";
3
3
  import Link from ".";
4
4
  declare const _default: {
5
5
  title: string;
6
- component: React.ForwardRefExoticComponent<Omit<import(".").LinkProps, "ref"> & React.RefAttributes<HTMLElement>>;
6
+ component: {
7
+ (props: import(".").LinkProps): React.JSX.Element;
8
+ displayName: string;
9
+ };
7
10
  args: {
8
11
  appearance: undefined;
9
12
  href: string;
@@ -22,5 +22,8 @@ export type LinkProps = Omit<AnchorHTMLAttributes<HTMLElement>, "nonce"> & Omit<
22
22
  * If you want something that looks like a link but behaves like a button ie. nothing to do with navigation, please consider using Link with as='button'
23
23
  *
24
24
  * If you want something that looks like a button but behaves like a link ie. it takes the user to a new location, please consider using Button and simply passing it an href, it will automatically turn into a link. */
25
- export declare const Link: React.ForwardRefExoticComponent<Omit<LinkProps, "ref"> & React.RefAttributes<HTMLElement>>;
25
+ export declare const Link: {
26
+ (props: LinkProps): React.JSX.Element;
27
+ displayName: string;
28
+ };
26
29
  export default Link;
@@ -0,0 +1,20 @@
1
+ import { type AnchorHTMLAttributes } from "react";
2
+ import { type TextProps } from "../Text";
3
+ import { type ThemeType } from "../../types";
4
+ type StyledLinkProps = AnchorHTMLAttributes<HTMLElement> & TextProps & {
5
+ theme: ThemeType;
6
+ $appearance?: "primary" | "secondary";
7
+ $textHoverColor?: string;
8
+ };
9
+ export declare const StyledLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../Spacing").SpacingProps & import("react").HTMLAttributes<HTMLElement> & {
10
+ textColor?: string;
11
+ textAlign?: "left" | "right" | "center" | "justify";
12
+ textSize?: import("../../types").FontSizeType;
13
+ textWeight?: number | string;
14
+ textFontFamily?: string;
15
+ as?: import("react").ElementType;
16
+ wordBreak?: import("../../types").WordBreakType;
17
+ overflowWrap?: import("../../types").OverflowWrapType;
18
+ ref?: import("react").Ref<HTMLElement>;
19
+ }, StyledLinkProps>> & string & Omit<(props: TextProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
20
+ export default StyledLink;
@@ -0,0 +1,32 @@
1
+ import { type ThemeType } from "../../types";
2
+ export declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
+ export declare const Content: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../Spacing").SpacingProps & import("react").HTMLAttributes<HTMLElement> & {
4
+ backgroundColor?: string;
5
+ ref?: import("react").Ref<HTMLDivElement>;
6
+ children?: import("react").ReactNode;
7
+ as?: import("react").ElementType;
8
+ }, {
9
+ $backgroundColor?: string;
10
+ $top: string;
11
+ $width: string;
12
+ $maxWidth: string;
13
+ $isAnimated?: boolean;
14
+ theme: ThemeType;
15
+ }>> & string & Omit<({ ...props }: import("../Box").BoxProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
16
+ export declare const CloseButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").ButtonHTMLAttributes<HTMLElement> & {
17
+ appearance?: import("../../types").ButtonAppearanceType;
18
+ full?: boolean;
19
+ href?: string;
20
+ size?: "m" | "l";
21
+ css?: unknown;
22
+ as?: import("react").ElementType;
23
+ isIconButton?: boolean;
24
+ ref?: import("react").Ref<HTMLElement>;
25
+ children?: import("react").ReactNode;
26
+ }, {
27
+ theme: ThemeType;
28
+ }>> & string & Omit<(props: import("../Button").ButtonProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
29
+ export declare const Background: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
30
+ theme: ThemeType;
31
+ $isAnimated?: boolean;
32
+ }>> & string;
@@ -3,7 +3,7 @@ import { type StoryObj } from "@storybook/react";
3
3
  import Radio, { type RadioProps } from ".";
4
4
  declare const _default: {
5
5
  title: string;
6
- component: React.ForwardRefExoticComponent<Omit<RadioProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
6
+ component: (props: RadioProps) => React.JSX.Element;
7
7
  args: {
8
8
  id: string;
9
9
  value: string;
@@ -1,6 +1,6 @@
1
- import React, { type InputHTMLAttributes, type Ref, type ReactNode, type LegacyRef } from "react";
1
+ import React, { type InputHTMLAttributes, type Ref, type ReactNode } from "react";
2
2
  export type RadioProps = InputHTMLAttributes<HTMLInputElement> & {
3
- ref?: Ref<HTMLInputElement> | LegacyRef<HTMLInputElement>;
3
+ ref?: Ref<HTMLInputElement>;
4
4
  /** flag for error styling */
5
5
  hasError?: boolean;
6
6
  /** error message text */
@@ -12,5 +12,5 @@ export type RadioProps = InputHTMLAttributes<HTMLInputElement> & {
12
12
  *
13
13
  * The value or children becomes the label, if you want an outer label for a radio or group of radios please use a LegendWrapper component
14
14
  */
15
- export declare const Radio: React.ForwardRefExoticComponent<Omit<RadioProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
15
+ export declare const Radio: (props: RadioProps) => React.JSX.Element;
16
16
  export default Radio;
@@ -3,9 +3,12 @@ type StyleRadioWidthProp = {
3
3
  $numberOfAttributes: number;
4
4
  theme: ThemeType;
5
5
  };
6
- export declare const StyledRadio: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<Omit<import("../Radio").RadioProps, "ref"> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
7
- ref?: ((instance: HTMLInputElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLInputElement> | null | undefined;
8
- }, StyleRadioWidthProp>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<import("../Radio").RadioProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>, keyof import("react").Component<any, {}, any>>;
6
+ export declare const StyledRadio: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").InputHTMLAttributes<HTMLInputElement> & {
7
+ ref?: import("react").Ref<HTMLInputElement>;
8
+ hasError?: boolean;
9
+ errorMessage?: string;
10
+ children?: import("react").ReactNode;
11
+ }, StyleRadioWidthProp>> & string & Omit<(props: import("../Radio").RadioProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
9
12
  export declare const StyledLegend: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLLegendElement>, HTMLLegendElement>, {
10
13
  theme: ThemeType;
11
14
  }>> & string;
@@ -3,7 +3,7 @@ import { type StoryObj } from "@storybook/react";
3
3
  import Select, { type SelectProps } from ".";
4
4
  declare const _default: {
5
5
  title: string;
6
- component: React.ForwardRefExoticComponent<Omit<SelectProps, "ref"> & React.RefAttributes<HTMLSelectElement>>;
6
+ component: ({ errorMessage, hasError, required, label, hintText, hideRequiredInLabel, ref, ...props }: SelectProps) => React.JSX.Element;
7
7
  args: {
8
8
  disabled: boolean;
9
9
  required: boolean;
@@ -1,4 +1,4 @@
1
- import React, { type ReactNode, type SelectHTMLAttributes, type Ref, type LegacyRef } from "react";
1
+ import React, { type ReactNode, type SelectHTMLAttributes, type Ref } from "react";
2
2
  export type SelectProps = SelectHTMLAttributes<HTMLSelectElement> & {
3
3
  /** error message text */
4
4
  errorMessage?: string;
@@ -11,11 +11,11 @@ export type SelectProps = SelectHTMLAttributes<HTMLSelectElement> & {
11
11
  /** flag to stop (required) appearing in label, useful for compound form components like DateInput */
12
12
  hideRequiredInLabel?: boolean;
13
13
  /** react DOM reference of object used scrolling to it with errors etc */
14
- ref?: Ref<HTMLSelectElement> | LegacyRef<HTMLSelectElement>;
14
+ ref?: Ref<HTMLSelectElement>;
15
15
  };
16
16
  /**
17
17
  * Select components are used for collecting user provided information from a list of options.
18
18
  *
19
19
  */
20
- export declare const Select: React.ForwardRefExoticComponent<Omit<SelectProps, "ref"> & React.RefAttributes<HTMLSelectElement>>;
20
+ export declare const Select: ({ errorMessage, hasError, required, label, hintText, hideRequiredInLabel, ref, ...props }: SelectProps) => React.JSX.Element;
21
21
  export default Select;
@@ -3,7 +3,7 @@ import { type StoryObj } from "@storybook/react";
3
3
  import Text from ".";
4
4
  declare const _default: {
5
5
  title: string;
6
- component: React.ForwardRefExoticComponent<Omit<import(".").TextProps, "ref"> & React.RefAttributes<HTMLElement>>;
6
+ component: (props: import(".").TextProps) => React.JSX.Element;
7
7
  args: {
8
8
  children: string;
9
9
  textColor: string;
@@ -24,5 +24,5 @@ export type TextProps = SpacingProps & HTMLAttributes<HTMLElement> & {
24
24
  /** react reference to the DOM element sometime used to scroll to or set focus after an error */
25
25
  ref?: Ref<HTMLElement>;
26
26
  };
27
- export declare const Text: React.ForwardRefExoticComponent<Omit<TextProps, "ref"> & React.RefAttributes<HTMLElement>>;
27
+ export declare const Text: (props: TextProps) => React.JSX.Element;
28
28
  export default Text;
@@ -3,7 +3,7 @@ import { type StoryObj } from "@storybook/react";
3
3
  import TextAreaField from ".";
4
4
  declare const _default: {
5
5
  title: string;
6
- component: React.ForwardRefExoticComponent<Omit<import(".").TextAreaFieldProps, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
6
+ component: ({ errorMessage, hasError, hintText, label, resize, lineCount, ref, ...props }: import(".").TextAreaFieldProps) => React.JSX.Element;
7
7
  args: {
8
8
  defaultValue: string;
9
9
  disabled: boolean;
@@ -18,5 +18,5 @@ export type TextAreaFieldProps = TextareaHTMLAttributes<HTMLTextAreaElement> & {
18
18
  /**
19
19
  * TextAreaField lets users enter and edit multiline text.
20
20
  */
21
- export declare const TextAreaField: React.ForwardRefExoticComponent<Omit<TextAreaFieldProps, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
21
+ export declare const TextAreaField: ({ errorMessage, hasError, hintText, label, resize, lineCount, ref, ...props }: TextAreaFieldProps) => React.JSX.Element;
22
22
  export default TextAreaField;
@@ -3,7 +3,7 @@ import { type StoryObj } from "@storybook/react";
3
3
  import TextField from ".";
4
4
  declare const _default: {
5
5
  title: string;
6
- component: React.ForwardRefExoticComponent<Omit<import(".").TextFieldProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
6
+ component: ({ errorMessage, extraBottom, extraLeft, extraRight, extraTop, hasError, hintText, isValid, isValidVisible, isInvalidVisible, label, hideRequiredInLabel, ref, ...props }: import(".").TextFieldProps) => React.JSX.Element;
7
7
  args: {
8
8
  value: undefined;
9
9
  disabled: boolean;
@@ -30,5 +30,5 @@ export type TextFieldProps = InputHTMLAttributes<HTMLInputElement> & {
30
30
  /**
31
31
  * TextFields let users enter and edit text. For multiline text entry please consider using the TextAreaFieldComponent.
32
32
  * */
33
- export declare const TextField: React.ForwardRefExoticComponent<Omit<TextFieldProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
33
+ export declare const TextField: ({ errorMessage, extraBottom, extraLeft, extraRight, extraTop, hasError, hintText, isValid, isValidVisible, isInvalidVisible, label, hideRequiredInLabel, ref, ...props }: TextFieldProps) => React.JSX.Element;
34
34
  export default TextField;
@@ -10,12 +10,8 @@ type StyledInputProps = {
10
10
  $isInvalidVisible?: boolean;
11
11
  };
12
12
  export declare const Extra: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, ExtraProps>> & string;
13
- export declare const ExtraLeft: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "theme"> & ExtraProps, "ref"> & {
14
- ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
15
- }, never>> & string;
16
- export declare const ExtraRight: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "theme"> & ExtraProps, "ref"> & {
17
- ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
18
- }, ExtraProps>> & string;
13
+ export declare const ExtraLeft: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "theme"> & ExtraProps, never>> & string;
14
+ export declare const ExtraRight: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "theme"> & ExtraProps, ExtraProps>> & string;
19
15
  export declare const ExtraWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
20
16
  export declare const StyledInputWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, StyledInputProps>> & string;
21
17
  export declare const StyledInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, StyledInputProps>> & string;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { type ThemeType } from "../types";
3
+ export declare function ThemeCheatSheet({ theme }: {
4
+ theme?: ThemeType;
5
+ }): React.JSX.Element;
6
+ declare const _default: React.ForwardRefExoticComponent<Omit<JSX.LibraryManagedAttributes<T, import("styled-components").ExecutionProps>, "ref"> & React.RefAttributes<typeof ThemeCheatSheet>> & {};
7
+ export default _default;
@@ -1,4 +1,4 @@
1
- import { type DependencyList, type RefObject, type MutableRefObject } from "react";
1
+ import { type DependencyList, type RefObject } from "react";
2
2
  declare const useScrollPosition: (effect: ({ currPos, }: {
3
3
  prevPos: {
4
4
  x: number;
@@ -8,6 +8,6 @@ declare const useScrollPosition: (effect: ({ currPos, }: {
8
8
  x: number;
9
9
  y: number;
10
10
  };
11
- }) => void, deps: DependencyList, element: RefObject<HTMLElement> | MutableRefObject<undefined> | null, useWindow: boolean, wait: number) => void;
11
+ }) => void, deps: DependencyList, element: RefObject<HTMLElement | null> | null, useWindow: boolean, wait: number) => void;
12
12
  export default useScrollPosition;
13
13
  export { useScrollPosition };
@@ -1,2 +1,2 @@
1
- var r=function(){return r=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o]);return r},r.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;export{r as __assign};
1
+ var r=function(){return r=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r},r.apply(this,arguments)};function e(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]])}return t}function t(r,e){return Object.defineProperty?Object.defineProperty(r,"raw",{value:e}):r.raw=e,r}"function"==typeof SuppressedError&&SuppressedError;export{r as __assign,t as __makeTemplateObject,e as __rest};
2
2
  //# sourceMappingURL=tslib.es6.js.map