@cruk/cruk-react-components 4.2.2 → 5.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 (592) hide show
  1. package/README.md +49 -17
  2. package/lib/components/AddressLookup/AddressLookup.stories.d.ts +1 -15
  3. package/lib/components/AddressLookup/index.d.ts +3 -30
  4. package/lib/components/AddressLookup/styles.d.ts +13 -9
  5. package/lib/components/AllThemesWrapper.d.ts +2 -2
  6. package/lib/components/Avatar/Avatar.stories.d.ts +2 -3
  7. package/lib/components/Avatar/index.d.ts +2 -2
  8. package/lib/components/Avatar/styles.d.ts +3 -3
  9. package/lib/components/Badge/Badge.stories.d.ts +2 -3
  10. package/lib/components/Badge/index.d.ts +4 -4
  11. package/lib/components/Badge/styles.d.ts +7 -7
  12. package/lib/components/Box/Box.stories.d.ts +1 -1
  13. package/lib/components/Box/index.d.ts +7 -6
  14. package/lib/components/Box/styles.d.ts +7 -6
  15. package/lib/components/Button/Button.stories.d.ts +1 -11
  16. package/lib/components/Button/index.d.ts +5 -23
  17. package/lib/components/Button/styles.d.ts +9 -9
  18. package/lib/components/Carousel/Dots.d.ts +1 -1
  19. package/lib/components/Carousel/index.d.ts +1 -1
  20. package/lib/components/Carousel/styles.d.ts +23 -21
  21. package/lib/components/Checkbox/Checkbox.stories.d.ts +2 -7
  22. package/lib/components/Checkbox/index.d.ts +3 -10
  23. package/lib/components/Checkbox/styles.d.ts +7 -7
  24. package/lib/components/Collapse/Collapse.stories.d.ts +1 -1
  25. package/lib/components/Collapse/index.d.ts +3 -3
  26. package/lib/components/Collapse/styles.d.ts +18 -24
  27. package/lib/components/DateField/DateField.stories.d.ts +1 -2
  28. package/lib/components/DateField/index.d.ts +2 -2
  29. package/lib/components/DateField/styles.d.ts +10 -6
  30. package/lib/components/Divider.d.ts +1 -1
  31. package/lib/components/ErrorText/ErrorText.stories.d.ts +1 -2
  32. package/lib/components/ErrorText/index.d.ts +3 -3
  33. package/lib/components/ErrorText/styles.d.ts +4 -2
  34. package/lib/components/Flex.d.ts +7 -2
  35. package/lib/components/Fontface.d.ts +4 -2
  36. package/lib/components/Footer/Footer.stories.d.ts +1 -1
  37. package/lib/components/Footer/index.d.ts +2 -2
  38. package/lib/components/Footer/styles.d.ts +18 -12
  39. package/lib/components/GlobalStyle.d.ts +2 -8
  40. package/lib/components/GlobalStyleNoFontFace.d.ts +2 -8
  41. package/lib/components/Header/Header.stories.d.ts +2 -2
  42. package/lib/components/Header/index.d.ts +2 -2
  43. package/lib/components/Header/styles.d.ts +31 -35
  44. package/lib/components/Heading/Heading.stories.d.ts +1 -2
  45. package/lib/components/Heading/index.d.ts +6 -6
  46. package/lib/components/Heading/styles.d.ts +16 -49
  47. package/lib/components/IconFa/IconFa.stories.d.ts +1 -2
  48. package/lib/components/IconFa/index.d.ts +2 -2
  49. package/lib/components/IconFa/styles.d.ts +7 -4
  50. package/lib/components/InfoBox/InfoBox.stories.d.ts +1 -1
  51. package/lib/components/InfoBox/index.d.ts +3 -3
  52. package/lib/components/InfoBox/styles.d.ts +8 -11
  53. package/lib/components/LabelWrapper/index.d.ts +2 -7
  54. package/lib/components/LabelWrapper/styles.d.ts +9 -7
  55. package/lib/components/LegendWrapper/LegendWrapper.stories.d.ts +2 -3
  56. package/lib/components/LegendWrapper/index.d.ts +2 -2
  57. package/lib/components/LegendWrapper/styles.d.ts +7 -7
  58. package/lib/components/Link/Link.stories.d.ts +1 -7
  59. package/lib/components/Link/index.d.ts +3 -14
  60. package/lib/components/Link/styles.d.ts +10 -17
  61. package/lib/components/Loader/Loader.stories.d.ts +1 -2
  62. package/lib/components/Loader/index.d.ts +1 -1
  63. package/lib/components/Loader/styles.d.ts +3 -3
  64. package/lib/components/Modal/Modal.stories.d.ts +2 -3
  65. package/lib/components/Modal/index.d.ts +3 -3
  66. package/lib/components/Modal/styles.d.ts +17 -24
  67. package/lib/components/Pagination/Pagination.stories.d.ts +1 -2
  68. package/lib/components/Pagination/index.d.ts +2 -2
  69. package/lib/components/Pagination/styles.d.ts +9 -11
  70. package/lib/components/PopOver/Popover.stories.d.ts +2 -2
  71. package/lib/components/PopOver/index.d.ts +3 -3
  72. package/lib/components/PopOver/styles.d.ts +11 -11
  73. package/lib/components/ProgressBar/ProgressBar.stories.d.ts +1 -2
  74. package/lib/components/ProgressBar/index.d.ts +2 -2
  75. package/lib/components/ProgressBar/styles.d.ts +31 -29
  76. package/lib/components/Radio/Radio.stories.d.ts +2 -7
  77. package/lib/components/Radio/index.d.ts +3 -10
  78. package/lib/components/Radio/styles.d.ts +15 -15
  79. package/lib/components/RadioConsent/Radio.stories.d.ts +2 -3
  80. package/lib/components/RadioConsent/index.d.ts +7 -6
  81. package/lib/components/RadioConsent/styles.d.ts +12 -12
  82. package/lib/components/Select/Selelct.stories.d.ts +1 -1
  83. package/lib/components/Select/index.d.ts +3 -3
  84. package/lib/components/Select/styles.d.ts +4 -4
  85. package/lib/components/Spacing/index.d.ts +52 -3
  86. package/lib/components/Step/Step.stories.d.ts +1 -2
  87. package/lib/components/Step/index.d.ts +2 -2
  88. package/lib/components/Step/styles.d.ts +15 -16
  89. package/lib/components/Text/Text.stories.d.ts +1 -1
  90. package/lib/components/Text/index.d.ts +5 -5
  91. package/lib/components/Text/styles.d.ts +12 -22
  92. package/lib/components/TextAreaField/TextAreaField.stories.d.ts +2 -4
  93. package/lib/components/TextAreaField/index.d.ts +3 -3
  94. package/lib/components/TextAreaField/styles.d.ts +4 -4
  95. package/lib/components/TextField/TextField.stories.d.ts +1 -1
  96. package/lib/components/TextField/index.d.ts +2 -2
  97. package/lib/components/TextField/styles.d.ts +15 -11
  98. package/lib/components/ThemeCheatSheet.d.ts +6 -5
  99. package/lib/components/Totaliser/Totaliser.stories.d.ts +1 -2
  100. package/lib/components/Totaliser/index.d.ts +3 -3
  101. package/lib/components/Totaliser/styles.d.ts +26 -18
  102. package/lib/components/UserBlock/UserBlock.stories.d.ts +1 -2
  103. package/lib/components/UserBlock/index.d.ts +2 -2
  104. package/lib/components/UserBlock/styles.d.ts +5 -5
  105. package/lib/components/index.d.ts +41 -41
  106. package/lib/hooks/useEffectBrowser.d.ts +1 -1
  107. package/lib/hooks/useKey.d.ts +3 -3
  108. package/lib/hooks/useLayoutEffectBrowser.d.ts +1 -1
  109. package/lib/hooks/useScrollPosition.d.ts +1 -1
  110. package/lib/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +1 -0
  111. package/lib/node_modules/@babel/runtime/helpers/esm/extends.js +2 -0
  112. package/lib/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -0
  113. package/lib/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +1 -0
  114. package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +2 -0
  115. package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -0
  116. package/lib/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -0
  117. package/lib/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +2 -0
  118. package/lib/node_modules/@babel/runtime/helpers/esm/toPrimitive.js.map +1 -0
  119. package/lib/{es/node_modules → node_modules}/@babel/runtime/helpers/esm/toPropertyKey.js +1 -1
  120. package/lib/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js.map +1 -0
  121. package/lib/node_modules/@babel/runtime/helpers/esm/typeof.js.map +1 -0
  122. package/lib/{es/node_modules/@fortawesome/free-solid-svg-icons/index.mjs.js → node_modules/@fortawesome/free-solid-svg-icons/index.js} +1 -1
  123. package/lib/node_modules/@fortawesome/free-solid-svg-icons/index.js.map +1 -0
  124. package/lib/node_modules/focus-lock/dist/es2015/commands.js +2 -0
  125. package/lib/node_modules/focus-lock/dist/es2015/commands.js.map +1 -0
  126. package/lib/node_modules/focus-lock/dist/es2015/constants.js.map +1 -0
  127. package/lib/node_modules/focus-lock/dist/es2015/focusInside.js.map +1 -0
  128. package/lib/node_modules/focus-lock/dist/es2015/focusIsHidden.js.map +1 -0
  129. package/lib/node_modules/focus-lock/dist/es2015/focusSolver.js +2 -0
  130. package/lib/node_modules/focus-lock/dist/es2015/focusSolver.js.map +1 -0
  131. package/lib/node_modules/focus-lock/dist/es2015/focusables.js +2 -0
  132. package/lib/node_modules/focus-lock/dist/es2015/focusables.js.map +1 -0
  133. package/lib/node_modules/focus-lock/dist/es2015/moveFocusInside.js.map +1 -0
  134. package/lib/node_modules/focus-lock/dist/es2015/return-focus.js +2 -0
  135. package/lib/node_modules/focus-lock/dist/es2015/return-focus.js.map +1 -0
  136. package/lib/node_modules/focus-lock/dist/es2015/sibling.js +2 -0
  137. package/lib/node_modules/focus-lock/dist/es2015/sibling.js.map +1 -0
  138. package/lib/node_modules/focus-lock/dist/es2015/solver.js +2 -0
  139. package/lib/node_modules/focus-lock/dist/es2015/solver.js.map +1 -0
  140. package/lib/node_modules/focus-lock/dist/es2015/utils/DOMutils.js.map +1 -0
  141. package/lib/node_modules/focus-lock/dist/es2015/utils/all-affected.js.map +1 -0
  142. package/lib/node_modules/focus-lock/dist/es2015/utils/array.js.map +1 -0
  143. package/lib/node_modules/focus-lock/dist/es2015/utils/auto-focus.js.map +1 -0
  144. package/lib/node_modules/focus-lock/dist/es2015/utils/correctFocus.js.map +1 -0
  145. package/lib/{es/node_modules → node_modules}/focus-lock/dist/es2015/utils/firstFocus.js +1 -1
  146. package/lib/node_modules/focus-lock/dist/es2015/utils/firstFocus.js.map +1 -0
  147. package/lib/node_modules/focus-lock/dist/es2015/utils/getActiveElement.js.map +1 -0
  148. package/lib/node_modules/focus-lock/dist/es2015/utils/is.js +2 -0
  149. package/lib/node_modules/focus-lock/dist/es2015/utils/is.js.map +1 -0
  150. package/lib/node_modules/focus-lock/dist/es2015/utils/parenting.js.map +1 -0
  151. package/lib/node_modules/focus-lock/dist/es2015/utils/safe.js.map +1 -0
  152. package/lib/node_modules/focus-lock/dist/es2015/utils/tabOrder.js +2 -0
  153. package/lib/node_modules/focus-lock/dist/es2015/utils/tabOrder.js.map +1 -0
  154. package/lib/node_modules/focus-lock/dist/es2015/utils/tabUtils.js.map +1 -0
  155. package/lib/node_modules/focus-lock/dist/es2015/utils/tabbables.js.map +1 -0
  156. package/lib/node_modules/react-clientside-effect/lib/index.es.js.map +1 -0
  157. package/lib/{es/node_modules → node_modules}/react-focus-lock/dist/es2015/Combination.js +1 -1
  158. package/lib/node_modules/react-focus-lock/dist/es2015/Combination.js.map +1 -0
  159. package/lib/node_modules/react-focus-lock/dist/es2015/FocusGuard.js.map +1 -0
  160. package/lib/node_modules/react-focus-lock/dist/es2015/Lock.js +2 -0
  161. package/lib/node_modules/react-focus-lock/dist/es2015/Lock.js.map +1 -0
  162. package/lib/node_modules/react-focus-lock/dist/es2015/Trap.js +2 -0
  163. package/lib/node_modules/react-focus-lock/dist/es2015/Trap.js.map +1 -0
  164. package/lib/node_modules/react-focus-lock/dist/es2015/index.js +2 -0
  165. package/lib/node_modules/react-focus-lock/dist/es2015/medium.js +2 -0
  166. package/lib/node_modules/react-focus-lock/dist/es2015/medium.js.map +1 -0
  167. package/lib/node_modules/react-focus-lock/dist/es2015/scope.js +2 -0
  168. package/lib/node_modules/react-focus-lock/dist/es2015/scope.js.map +1 -0
  169. package/lib/node_modules/react-focus-lock/dist/es2015/util.js +2 -0
  170. package/lib/node_modules/react-focus-lock/dist/es2015/util.js.map +1 -0
  171. package/lib/node_modules/react-intersection-observer/dist/index.js +2 -0
  172. package/lib/node_modules/react-intersection-observer/dist/index.js.map +1 -0
  173. package/lib/{es/_virtual/_tslib.js → node_modules/tslib/tslib.es6.js} +1 -1
  174. package/lib/node_modules/tslib/tslib.es6.js.map +1 -0
  175. package/lib/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -0
  176. package/lib/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +2 -0
  177. package/lib/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -0
  178. package/lib/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -0
  179. package/lib/node_modules/use-sidecar/dist/es2015/medium.js +2 -0
  180. package/lib/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -0
  181. package/lib/src/components/AddressLookup/index.js +2 -0
  182. package/lib/src/components/AddressLookup/index.js.map +1 -0
  183. package/lib/src/components/AddressLookup/styles.js +2 -0
  184. package/lib/src/components/AddressLookup/styles.js.map +1 -0
  185. package/lib/src/components/Avatar/index.js +2 -0
  186. package/lib/src/components/Avatar/index.js.map +1 -0
  187. package/lib/src/components/Avatar/styles.js +2 -0
  188. package/lib/src/components/Avatar/styles.js.map +1 -0
  189. package/lib/src/components/Badge/index.js +2 -0
  190. package/lib/src/components/Badge/index.js.map +1 -0
  191. package/lib/src/components/Badge/styles.js +2 -0
  192. package/lib/src/components/Badge/styles.js.map +1 -0
  193. package/lib/src/components/Box/index.js +2 -0
  194. package/lib/src/components/Box/index.js.map +1 -0
  195. package/lib/src/components/Box/styles.js +2 -0
  196. package/lib/src/components/Box/styles.js.map +1 -0
  197. package/lib/src/components/Button/index.js +2 -0
  198. package/lib/src/components/Button/index.js.map +1 -0
  199. package/lib/src/components/Button/styles.js +2 -0
  200. package/lib/src/components/Button/styles.js.map +1 -0
  201. package/lib/src/components/Carousel/Dots.js +2 -0
  202. package/lib/src/components/Carousel/Dots.js.map +1 -0
  203. package/lib/src/components/Carousel/index.js +2 -0
  204. package/lib/src/components/Carousel/index.js.map +1 -0
  205. package/lib/src/components/Carousel/styles.js +2 -0
  206. package/lib/src/components/Carousel/styles.js.map +1 -0
  207. package/lib/src/components/Checkbox/index.js +2 -0
  208. package/lib/src/components/Checkbox/index.js.map +1 -0
  209. package/lib/src/components/Checkbox/styles.js +2 -0
  210. package/lib/src/components/Checkbox/styles.js.map +1 -0
  211. package/lib/src/components/Collapse/index.js +2 -0
  212. package/lib/src/components/Collapse/index.js.map +1 -0
  213. package/lib/src/components/Collapse/styles.js +2 -0
  214. package/lib/src/components/Collapse/styles.js.map +1 -0
  215. package/lib/src/components/DateField/index.js +2 -0
  216. package/lib/src/components/DateField/index.js.map +1 -0
  217. package/lib/src/components/DateField/styles.js +2 -0
  218. package/lib/src/components/DateField/styles.js.map +1 -0
  219. package/lib/src/components/Divider.js +2 -0
  220. package/lib/src/components/Divider.js.map +1 -0
  221. package/lib/src/components/ErrorText/index.js +2 -0
  222. package/lib/src/components/ErrorText/index.js.map +1 -0
  223. package/lib/src/components/ErrorText/styles.js +2 -0
  224. package/lib/src/components/ErrorText/styles.js.map +1 -0
  225. package/lib/src/components/Flex.js +2 -0
  226. package/lib/src/components/Flex.js.map +1 -0
  227. package/lib/src/components/Fontface.js +2 -0
  228. package/lib/src/components/Fontface.js.map +1 -0
  229. package/lib/src/components/Footer/index.js +2 -0
  230. package/lib/src/components/Footer/index.js.map +1 -0
  231. package/lib/src/components/Footer/styles.js +2 -0
  232. package/lib/src/components/Footer/styles.js.map +1 -0
  233. package/lib/src/components/GlobalStyle.js +2 -0
  234. package/lib/src/components/GlobalStyle.js.map +1 -0
  235. package/lib/src/components/GlobalStyleNoFontFace.js +2 -0
  236. package/lib/src/components/GlobalStyleNoFontFace.js.map +1 -0
  237. package/lib/src/components/Header/index.js +2 -0
  238. package/lib/src/components/Header/index.js.map +1 -0
  239. package/lib/src/components/Header/styles.js +2 -0
  240. package/lib/src/components/Header/styles.js.map +1 -0
  241. package/lib/src/components/Heading/index.js +2 -0
  242. package/lib/src/components/Heading/index.js.map +1 -0
  243. package/lib/src/components/Heading/styles.js +2 -0
  244. package/lib/src/components/Heading/styles.js.map +1 -0
  245. package/lib/src/components/IconFa/index.js +2 -0
  246. package/lib/src/components/IconFa/index.js.map +1 -0
  247. package/lib/src/components/IconFa/styles.js +2 -0
  248. package/lib/src/components/IconFa/styles.js.map +1 -0
  249. package/lib/src/components/InfoBox/index.js +2 -0
  250. package/lib/src/components/InfoBox/index.js.map +1 -0
  251. package/lib/src/components/InfoBox/styles.js +2 -0
  252. package/lib/src/components/InfoBox/styles.js.map +1 -0
  253. package/lib/src/components/LabelWrapper/index.js +2 -0
  254. package/lib/src/components/LabelWrapper/index.js.map +1 -0
  255. package/lib/src/components/LabelWrapper/styles.js +2 -0
  256. package/lib/src/components/LabelWrapper/styles.js.map +1 -0
  257. package/lib/src/components/LegendWrapper/index.js +2 -0
  258. package/lib/src/components/LegendWrapper/index.js.map +1 -0
  259. package/lib/src/components/LegendWrapper/styles.js +2 -0
  260. package/lib/src/components/LegendWrapper/styles.js.map +1 -0
  261. package/lib/src/components/Link/index.js +2 -0
  262. package/lib/src/components/Link/index.js.map +1 -0
  263. package/lib/src/components/Link/styles.js +2 -0
  264. package/lib/src/components/Link/styles.js.map +1 -0
  265. package/lib/src/components/Loader/index.js +2 -0
  266. package/lib/src/components/Loader/index.js.map +1 -0
  267. package/lib/src/components/Loader/styles.js +2 -0
  268. package/lib/src/components/Loader/styles.js.map +1 -0
  269. package/lib/src/components/Modal/index.js +2 -0
  270. package/lib/src/components/Modal/index.js.map +1 -0
  271. package/lib/src/components/Modal/styles.js +2 -0
  272. package/lib/src/components/Modal/styles.js.map +1 -0
  273. package/lib/src/components/Pagination/index.js +2 -0
  274. package/lib/src/components/Pagination/index.js.map +1 -0
  275. package/lib/src/components/Pagination/styles.js +2 -0
  276. package/lib/src/components/Pagination/styles.js.map +1 -0
  277. package/lib/src/components/PopOver/index.js +2 -0
  278. package/lib/src/components/PopOver/index.js.map +1 -0
  279. package/lib/src/components/PopOver/styles.js +2 -0
  280. package/lib/src/components/PopOver/styles.js.map +1 -0
  281. package/lib/src/components/ProgressBar/index.js +2 -0
  282. package/lib/src/components/ProgressBar/index.js.map +1 -0
  283. package/lib/src/components/ProgressBar/styles.js +2 -0
  284. package/lib/src/components/ProgressBar/styles.js.map +1 -0
  285. package/lib/src/components/Radio/index.js +2 -0
  286. package/lib/src/components/Radio/index.js.map +1 -0
  287. package/lib/src/components/Radio/styles.js +2 -0
  288. package/lib/src/components/Radio/styles.js.map +1 -0
  289. package/lib/src/components/RadioConsent/index.js +2 -0
  290. package/lib/src/components/RadioConsent/index.js.map +1 -0
  291. package/lib/src/components/RadioConsent/styles.js +2 -0
  292. package/lib/src/components/RadioConsent/styles.js.map +1 -0
  293. package/lib/src/components/Select/index.js +2 -0
  294. package/lib/src/components/Select/index.js.map +1 -0
  295. package/lib/src/components/Select/styles.js +2 -0
  296. package/lib/src/components/Select/styles.js.map +1 -0
  297. package/lib/src/components/Spacing/index.js +2 -0
  298. package/lib/src/components/Spacing/index.js.map +1 -0
  299. package/lib/src/components/Step/index.js +2 -0
  300. package/lib/src/components/Step/index.js.map +1 -0
  301. package/lib/src/components/Step/styles.js +2 -0
  302. package/lib/src/components/Step/styles.js.map +1 -0
  303. package/lib/src/components/Text/index.js +2 -0
  304. package/lib/src/components/Text/index.js.map +1 -0
  305. package/lib/src/components/Text/styles.js +2 -0
  306. package/lib/src/components/Text/styles.js.map +1 -0
  307. package/lib/src/components/TextAreaField/index.js +2 -0
  308. package/lib/src/components/TextAreaField/index.js.map +1 -0
  309. package/lib/src/components/TextAreaField/styles.js +2 -0
  310. package/lib/src/components/TextAreaField/styles.js.map +1 -0
  311. package/lib/src/components/TextField/index.js +2 -0
  312. package/lib/src/components/TextField/index.js.map +1 -0
  313. package/lib/src/components/TextField/styles.js +2 -0
  314. package/lib/src/components/TextField/styles.js.map +1 -0
  315. package/lib/src/components/Totaliser/index.js +2 -0
  316. package/lib/src/components/Totaliser/index.js.map +1 -0
  317. package/lib/src/components/Totaliser/styles.js +2 -0
  318. package/lib/src/components/Totaliser/styles.js.map +1 -0
  319. package/lib/src/components/UserBlock/index.js +2 -0
  320. package/lib/src/components/UserBlock/index.js.map +1 -0
  321. package/lib/src/components/UserBlock/styles.js +2 -0
  322. package/lib/src/components/UserBlock/styles.js.map +1 -0
  323. package/lib/src/components/index.js +2 -0
  324. package/lib/src/hooks/useEffectBrowser.js.map +1 -0
  325. package/lib/src/hooks/useKey.js.map +1 -0
  326. package/lib/src/hooks/useLayoutEffectBrowser.js.map +1 -0
  327. package/lib/{es/src → src}/hooks/useScrollPosition.js +1 -1
  328. package/lib/src/hooks/useScrollPosition.js.map +1 -0
  329. package/lib/src/themes/bowelbabe.js +2 -0
  330. package/lib/src/themes/bowelbabe.js.map +1 -0
  331. package/lib/{es/src → src}/themes/cruk.js +1 -1
  332. package/lib/src/themes/cruk.js.map +1 -0
  333. package/lib/src/themes/rfl.js +2 -0
  334. package/lib/src/themes/rfl.js.map +1 -0
  335. package/lib/src/themes/su2c.js +2 -0
  336. package/lib/src/themes/su2c.js.map +1 -0
  337. package/lib/src/utils/Helper.js +2 -0
  338. package/lib/src/utils/Helper.js.map +1 -0
  339. package/lib/{es/src → src}/utils/debounce.js +1 -1
  340. package/lib/src/utils/debounce.js.map +1 -0
  341. package/lib/themes/bowelbabe.d.ts +3 -3
  342. package/lib/themes/cruk.d.ts +3 -3
  343. package/lib/themes/rfl.d.ts +3 -3
  344. package/lib/themes/su2c.d.ts +3 -3
  345. package/lib/types.d.ts +1 -3
  346. package/lib/utils/debounce.d.ts +2 -2
  347. package/package.json +44 -55
  348. package/lib/es/_virtual/_tslib.js.map +0 -1
  349. package/lib/es/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +0 -1
  350. package/lib/es/node_modules/@babel/runtime/helpers/esm/extends.js +0 -2
  351. package/lib/es/node_modules/@babel/runtime/helpers/esm/extends.js.map +0 -1
  352. package/lib/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +0 -1
  353. package/lib/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -2
  354. package/lib/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +0 -1
  355. package/lib/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +0 -1
  356. package/lib/es/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -2
  357. package/lib/es/node_modules/@babel/runtime/helpers/esm/toPrimitive.js.map +0 -1
  358. package/lib/es/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js.map +0 -1
  359. package/lib/es/node_modules/@babel/runtime/helpers/esm/typeof.js.map +0 -1
  360. package/lib/es/node_modules/@fortawesome/free-solid-svg-icons/index.mjs.js.map +0 -1
  361. package/lib/es/node_modules/focus-lock/dist/es2015/commands.js +0 -2
  362. package/lib/es/node_modules/focus-lock/dist/es2015/commands.js.map +0 -1
  363. package/lib/es/node_modules/focus-lock/dist/es2015/constants.js.map +0 -1
  364. package/lib/es/node_modules/focus-lock/dist/es2015/focusInside.js.map +0 -1
  365. package/lib/es/node_modules/focus-lock/dist/es2015/focusIsHidden.js.map +0 -1
  366. package/lib/es/node_modules/focus-lock/dist/es2015/focusSolver.js +0 -2
  367. package/lib/es/node_modules/focus-lock/dist/es2015/focusSolver.js.map +0 -1
  368. package/lib/es/node_modules/focus-lock/dist/es2015/focusables.js +0 -2
  369. package/lib/es/node_modules/focus-lock/dist/es2015/focusables.js.map +0 -1
  370. package/lib/es/node_modules/focus-lock/dist/es2015/moveFocusInside.js.map +0 -1
  371. package/lib/es/node_modules/focus-lock/dist/es2015/solver.js +0 -2
  372. package/lib/es/node_modules/focus-lock/dist/es2015/solver.js.map +0 -1
  373. package/lib/es/node_modules/focus-lock/dist/es2015/utils/DOMutils.js.map +0 -1
  374. package/lib/es/node_modules/focus-lock/dist/es2015/utils/all-affected.js.map +0 -1
  375. package/lib/es/node_modules/focus-lock/dist/es2015/utils/array.js.map +0 -1
  376. package/lib/es/node_modules/focus-lock/dist/es2015/utils/auto-focus.js.map +0 -1
  377. package/lib/es/node_modules/focus-lock/dist/es2015/utils/correctFocus.js.map +0 -1
  378. package/lib/es/node_modules/focus-lock/dist/es2015/utils/firstFocus.js.map +0 -1
  379. package/lib/es/node_modules/focus-lock/dist/es2015/utils/getActiveElement.js.map +0 -1
  380. package/lib/es/node_modules/focus-lock/dist/es2015/utils/is.js +0 -2
  381. package/lib/es/node_modules/focus-lock/dist/es2015/utils/is.js.map +0 -1
  382. package/lib/es/node_modules/focus-lock/dist/es2015/utils/parenting.js.map +0 -1
  383. package/lib/es/node_modules/focus-lock/dist/es2015/utils/safe.js.map +0 -1
  384. package/lib/es/node_modules/focus-lock/dist/es2015/utils/tabOrder.js +0 -2
  385. package/lib/es/node_modules/focus-lock/dist/es2015/utils/tabOrder.js.map +0 -1
  386. package/lib/es/node_modules/focus-lock/dist/es2015/utils/tabUtils.js.map +0 -1
  387. package/lib/es/node_modules/focus-lock/dist/es2015/utils/tabbables.js.map +0 -1
  388. package/lib/es/node_modules/react-clientside-effect/lib/index.es.js.map +0 -1
  389. package/lib/es/node_modules/react-focus-lock/dist/es2015/Combination.js.map +0 -1
  390. package/lib/es/node_modules/react-focus-lock/dist/es2015/FocusGuard.js.map +0 -1
  391. package/lib/es/node_modules/react-focus-lock/dist/es2015/Lock.js +0 -2
  392. package/lib/es/node_modules/react-focus-lock/dist/es2015/Lock.js.map +0 -1
  393. package/lib/es/node_modules/react-focus-lock/dist/es2015/Trap.js +0 -2
  394. package/lib/es/node_modules/react-focus-lock/dist/es2015/Trap.js.map +0 -1
  395. package/lib/es/node_modules/react-focus-lock/dist/es2015/index.js +0 -2
  396. package/lib/es/node_modules/react-focus-lock/dist/es2015/medium.js +0 -2
  397. package/lib/es/node_modules/react-focus-lock/dist/es2015/medium.js.map +0 -1
  398. package/lib/es/node_modules/react-focus-lock/dist/es2015/util.js +0 -2
  399. package/lib/es/node_modules/react-focus-lock/dist/es2015/util.js.map +0 -1
  400. package/lib/es/node_modules/react-intersection-observer/index.mjs.js +0 -2
  401. package/lib/es/node_modules/react-intersection-observer/index.mjs.js.map +0 -1
  402. package/lib/es/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +0 -1
  403. package/lib/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -2
  404. package/lib/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +0 -1
  405. package/lib/es/node_modules/use-callback-ref/dist/es2015/useRef.js.map +0 -1
  406. package/lib/es/node_modules/use-sidecar/dist/es2015/medium.js +0 -2
  407. package/lib/es/node_modules/use-sidecar/dist/es2015/medium.js.map +0 -1
  408. package/lib/es/src/components/AddressLookup/index.js +0 -2
  409. package/lib/es/src/components/AddressLookup/styles.js +0 -2
  410. package/lib/es/src/components/AddressLookup/styles.js.map +0 -1
  411. package/lib/es/src/components/Avatar/index.js +0 -2
  412. package/lib/es/src/components/Avatar/index.js.map +0 -1
  413. package/lib/es/src/components/Avatar/styles.js +0 -2
  414. package/lib/es/src/components/Avatar/styles.js.map +0 -1
  415. package/lib/es/src/components/Badge/index.js +0 -2
  416. package/lib/es/src/components/Badge/index.js.map +0 -1
  417. package/lib/es/src/components/Badge/styles.js +0 -2
  418. package/lib/es/src/components/Badge/styles.js.map +0 -1
  419. package/lib/es/src/components/Box/index.js +0 -2
  420. package/lib/es/src/components/Box/index.js.map +0 -1
  421. package/lib/es/src/components/Box/styles.js +0 -2
  422. package/lib/es/src/components/Box/styles.js.map +0 -1
  423. package/lib/es/src/components/Button/index.js +0 -2
  424. package/lib/es/src/components/Button/index.js.map +0 -1
  425. package/lib/es/src/components/Button/styles.js +0 -2
  426. package/lib/es/src/components/Button/styles.js.map +0 -1
  427. package/lib/es/src/components/Carousel/Dots.js +0 -2
  428. package/lib/es/src/components/Carousel/Dots.js.map +0 -1
  429. package/lib/es/src/components/Carousel/index.js +0 -2
  430. package/lib/es/src/components/Carousel/index.js.map +0 -1
  431. package/lib/es/src/components/Carousel/styles.js +0 -2
  432. package/lib/es/src/components/Carousel/styles.js.map +0 -1
  433. package/lib/es/src/components/Checkbox/index.js +0 -2
  434. package/lib/es/src/components/Checkbox/index.js.map +0 -1
  435. package/lib/es/src/components/Checkbox/styles.js +0 -2
  436. package/lib/es/src/components/Checkbox/styles.js.map +0 -1
  437. package/lib/es/src/components/Collapse/index.js +0 -2
  438. package/lib/es/src/components/Collapse/index.js.map +0 -1
  439. package/lib/es/src/components/Collapse/styles.js +0 -2
  440. package/lib/es/src/components/Collapse/styles.js.map +0 -1
  441. package/lib/es/src/components/DateField/index.js +0 -2
  442. package/lib/es/src/components/DateField/index.js.map +0 -1
  443. package/lib/es/src/components/DateField/styles.js +0 -2
  444. package/lib/es/src/components/DateField/styles.js.map +0 -1
  445. package/lib/es/src/components/Divider.js +0 -2
  446. package/lib/es/src/components/Divider.js.map +0 -1
  447. package/lib/es/src/components/ErrorText/index.js +0 -2
  448. package/lib/es/src/components/ErrorText/index.js.map +0 -1
  449. package/lib/es/src/components/ErrorText/styles.js +0 -2
  450. package/lib/es/src/components/ErrorText/styles.js.map +0 -1
  451. package/lib/es/src/components/Flex.js +0 -2
  452. package/lib/es/src/components/Flex.js.map +0 -1
  453. package/lib/es/src/components/Fontface.js +0 -2
  454. package/lib/es/src/components/Fontface.js.map +0 -1
  455. package/lib/es/src/components/Footer/index.js +0 -2
  456. package/lib/es/src/components/Footer/index.js.map +0 -1
  457. package/lib/es/src/components/Footer/styles.js +0 -2
  458. package/lib/es/src/components/Footer/styles.js.map +0 -1
  459. package/lib/es/src/components/GlobalStyle.js +0 -2
  460. package/lib/es/src/components/GlobalStyle.js.map +0 -1
  461. package/lib/es/src/components/GlobalStyleNoFontFace.js +0 -2
  462. package/lib/es/src/components/GlobalStyleNoFontFace.js.map +0 -1
  463. package/lib/es/src/components/Header/index.js +0 -2
  464. package/lib/es/src/components/Header/index.js.map +0 -1
  465. package/lib/es/src/components/Header/styles.js +0 -2
  466. package/lib/es/src/components/Header/styles.js.map +0 -1
  467. package/lib/es/src/components/Heading/index.js +0 -2
  468. package/lib/es/src/components/Heading/index.js.map +0 -1
  469. package/lib/es/src/components/Heading/styles.js +0 -2
  470. package/lib/es/src/components/Heading/styles.js.map +0 -1
  471. package/lib/es/src/components/IconFa/index.js +0 -2
  472. package/lib/es/src/components/IconFa/index.js.map +0 -1
  473. package/lib/es/src/components/IconFa/styles.js +0 -2
  474. package/lib/es/src/components/IconFa/styles.js.map +0 -1
  475. package/lib/es/src/components/InfoBox/index.js +0 -2
  476. package/lib/es/src/components/InfoBox/index.js.map +0 -1
  477. package/lib/es/src/components/InfoBox/styles.js +0 -2
  478. package/lib/es/src/components/InfoBox/styles.js.map +0 -1
  479. package/lib/es/src/components/LabelWrapper/index.js +0 -2
  480. package/lib/es/src/components/LabelWrapper/index.js.map +0 -1
  481. package/lib/es/src/components/LabelWrapper/styles.js +0 -2
  482. package/lib/es/src/components/LabelWrapper/styles.js.map +0 -1
  483. package/lib/es/src/components/LegendWrapper/index.js +0 -2
  484. package/lib/es/src/components/LegendWrapper/index.js.map +0 -1
  485. package/lib/es/src/components/LegendWrapper/styles.js +0 -2
  486. package/lib/es/src/components/LegendWrapper/styles.js.map +0 -1
  487. package/lib/es/src/components/Link/index.js +0 -2
  488. package/lib/es/src/components/Link/index.js.map +0 -1
  489. package/lib/es/src/components/Link/styles.js +0 -2
  490. package/lib/es/src/components/Link/styles.js.map +0 -1
  491. package/lib/es/src/components/Loader/index.js +0 -2
  492. package/lib/es/src/components/Loader/index.js.map +0 -1
  493. package/lib/es/src/components/Loader/styles.js +0 -2
  494. package/lib/es/src/components/Loader/styles.js.map +0 -1
  495. package/lib/es/src/components/Modal/index.js +0 -2
  496. package/lib/es/src/components/Modal/index.js.map +0 -1
  497. package/lib/es/src/components/Modal/styles.js +0 -2
  498. package/lib/es/src/components/Modal/styles.js.map +0 -1
  499. package/lib/es/src/components/Pagination/index.js +0 -2
  500. package/lib/es/src/components/Pagination/index.js.map +0 -1
  501. package/lib/es/src/components/Pagination/styles.js +0 -2
  502. package/lib/es/src/components/Pagination/styles.js.map +0 -1
  503. package/lib/es/src/components/PopOver/index.js +0 -2
  504. package/lib/es/src/components/PopOver/index.js.map +0 -1
  505. package/lib/es/src/components/PopOver/styles.js +0 -2
  506. package/lib/es/src/components/PopOver/styles.js.map +0 -1
  507. package/lib/es/src/components/ProgressBar/index.js +0 -2
  508. package/lib/es/src/components/ProgressBar/index.js.map +0 -1
  509. package/lib/es/src/components/ProgressBar/styles.js +0 -2
  510. package/lib/es/src/components/ProgressBar/styles.js.map +0 -1
  511. package/lib/es/src/components/Radio/index.js +0 -2
  512. package/lib/es/src/components/Radio/index.js.map +0 -1
  513. package/lib/es/src/components/Radio/styles.js +0 -2
  514. package/lib/es/src/components/Radio/styles.js.map +0 -1
  515. package/lib/es/src/components/RadioConsent/index.js +0 -2
  516. package/lib/es/src/components/RadioConsent/index.js.map +0 -1
  517. package/lib/es/src/components/RadioConsent/styles.js +0 -2
  518. package/lib/es/src/components/RadioConsent/styles.js.map +0 -1
  519. package/lib/es/src/components/Select/index.js +0 -2
  520. package/lib/es/src/components/Select/index.js.map +0 -1
  521. package/lib/es/src/components/Select/styles.js +0 -2
  522. package/lib/es/src/components/Select/styles.js.map +0 -1
  523. package/lib/es/src/components/Spacing/index.js +0 -2
  524. package/lib/es/src/components/Spacing/index.js.map +0 -1
  525. package/lib/es/src/components/Step/index.js +0 -2
  526. package/lib/es/src/components/Step/index.js.map +0 -1
  527. package/lib/es/src/components/Step/styles.js +0 -2
  528. package/lib/es/src/components/Step/styles.js.map +0 -1
  529. package/lib/es/src/components/Text/index.js +0 -2
  530. package/lib/es/src/components/Text/index.js.map +0 -1
  531. package/lib/es/src/components/Text/styles.js +0 -2
  532. package/lib/es/src/components/Text/styles.js.map +0 -1
  533. package/lib/es/src/components/TextAreaField/index.js +0 -2
  534. package/lib/es/src/components/TextAreaField/index.js.map +0 -1
  535. package/lib/es/src/components/TextAreaField/styles.js +0 -2
  536. package/lib/es/src/components/TextAreaField/styles.js.map +0 -1
  537. package/lib/es/src/components/TextField/index.js +0 -2
  538. package/lib/es/src/components/TextField/index.js.map +0 -1
  539. package/lib/es/src/components/TextField/styles.js +0 -2
  540. package/lib/es/src/components/TextField/styles.js.map +0 -1
  541. package/lib/es/src/components/Totaliser/index.js +0 -2
  542. package/lib/es/src/components/Totaliser/index.js.map +0 -1
  543. package/lib/es/src/components/Totaliser/styles.js +0 -2
  544. package/lib/es/src/components/Totaliser/styles.js.map +0 -1
  545. package/lib/es/src/components/UserBlock/index.js +0 -2
  546. package/lib/es/src/components/UserBlock/index.js.map +0 -1
  547. package/lib/es/src/components/UserBlock/styles.js +0 -2
  548. package/lib/es/src/components/UserBlock/styles.js.map +0 -1
  549. package/lib/es/src/components/index.js +0 -2
  550. package/lib/es/src/components/index.js.map +0 -1
  551. package/lib/es/src/hooks/useEffectBrowser.js.map +0 -1
  552. package/lib/es/src/hooks/useKey.js.map +0 -1
  553. package/lib/es/src/hooks/useLayoutEffectBrowser.js.map +0 -1
  554. package/lib/es/src/hooks/useScrollPosition.js.map +0 -1
  555. package/lib/es/src/themes/bowelbabe.js +0 -2
  556. package/lib/es/src/themes/bowelbabe.js.map +0 -1
  557. package/lib/es/src/themes/cruk.js.map +0 -1
  558. package/lib/es/src/themes/rfl.js +0 -2
  559. package/lib/es/src/themes/rfl.js.map +0 -1
  560. package/lib/es/src/themes/su2c.js +0 -2
  561. package/lib/es/src/themes/su2c.js.map +0 -1
  562. package/lib/es/src/utils/Helper.js +0 -2
  563. package/lib/es/src/utils/Helper.js.map +0 -1
  564. package/lib/es/src/utils/debounce.js.map +0 -1
  565. /package/lib/{es/node_modules → node_modules}/@babel/runtime/helpers/esm/defineProperty.js +0 -0
  566. /package/lib/{es/node_modules → node_modules}/@babel/runtime/helpers/esm/inheritsLoose.js +0 -0
  567. /package/lib/{es/node_modules → node_modules}/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -0
  568. /package/lib/{es/node_modules → node_modules}/@babel/runtime/helpers/esm/typeof.js +0 -0
  569. /package/lib/{es/node_modules → node_modules}/focus-lock/dist/es2015/constants.js +0 -0
  570. /package/lib/{es/node_modules → node_modules}/focus-lock/dist/es2015/focusInside.js +0 -0
  571. /package/lib/{es/node_modules → node_modules}/focus-lock/dist/es2015/focusIsHidden.js +0 -0
  572. /package/lib/{es/node_modules → node_modules}/focus-lock/dist/es2015/moveFocusInside.js +0 -0
  573. /package/lib/{es/node_modules → node_modules}/focus-lock/dist/es2015/utils/DOMutils.js +0 -0
  574. /package/lib/{es/node_modules → node_modules}/focus-lock/dist/es2015/utils/all-affected.js +0 -0
  575. /package/lib/{es/node_modules → node_modules}/focus-lock/dist/es2015/utils/array.js +0 -0
  576. /package/lib/{es/node_modules → node_modules}/focus-lock/dist/es2015/utils/auto-focus.js +0 -0
  577. /package/lib/{es/node_modules → node_modules}/focus-lock/dist/es2015/utils/correctFocus.js +0 -0
  578. /package/lib/{es/node_modules → node_modules}/focus-lock/dist/es2015/utils/getActiveElement.js +0 -0
  579. /package/lib/{es/node_modules → node_modules}/focus-lock/dist/es2015/utils/parenting.js +0 -0
  580. /package/lib/{es/node_modules → node_modules}/focus-lock/dist/es2015/utils/safe.js +0 -0
  581. /package/lib/{es/node_modules → node_modules}/focus-lock/dist/es2015/utils/tabUtils.js +0 -0
  582. /package/lib/{es/node_modules → node_modules}/focus-lock/dist/es2015/utils/tabbables.js +0 -0
  583. /package/lib/{es/node_modules → node_modules}/react-clientside-effect/lib/index.es.js +0 -0
  584. /package/lib/{es/node_modules → node_modules}/react-focus-lock/dist/es2015/FocusGuard.js +0 -0
  585. /package/lib/{es/node_modules → node_modules}/react-focus-lock/dist/es2015/index.js.map +0 -0
  586. /package/lib/{es/node_modules → node_modules}/use-callback-ref/dist/es2015/assignRef.js +0 -0
  587. /package/lib/{es/node_modules → node_modules}/use-callback-ref/dist/es2015/useRef.js +0 -0
  588. /package/lib/{es/src/components/AddressLookup → src/components}/index.js.map +0 -0
  589. /package/lib/{es/src → src}/hooks/useEffectBrowser.js +0 -0
  590. /package/lib/{es/src → src}/hooks/useKey.js +0 -0
  591. /package/lib/{es/src → src}/hooks/useLayoutEffectBrowser.js +0 -0
  592. /package/lib/utils/__tests__/{testHelpers.jest.d.ts → testHelpers.test.d.ts} +0 -0
@@ -1,11 +1,13 @@
1
- import { ThemeType } from "../../types";
2
- type LabelProp = {
1
+ import { type ThemeType } from "../../types";
2
+ type LabelTextProp = {
3
+ $hasHintText: boolean;
3
4
  theme: ThemeType;
4
5
  };
5
- export declare const Label: import("styled-components").StyledComponent<"label", any, LabelProp, never>;
6
- export declare const RequiredText: import("styled-components").StyledComponent<"span", any, LabelProp, never>;
7
- export declare const LabelText: import("styled-components").StyledComponent<"span", any, {
8
- hasHintText: boolean;
6
+ export declare const Label: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {
9
7
  theme: ThemeType;
10
- }, never>;
8
+ }>> & string;
9
+ export declare const RequiredText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
10
+ theme: ThemeType;
11
+ }>> & string;
12
+ export declare const LabelText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, LabelTextProp>> & string;
11
13
  export {};
@@ -1,9 +1,8 @@
1
- import React from "react";
2
1
  import { StoryObj } from "@storybook/react";
3
- import LegendWrapper, { LegendWrapperProps } from ".";
2
+ import LegendWrapper from ".";
4
3
  declare const _default: {
5
4
  title: string;
6
- component: ({ children, legendText, required, errorMessage, hasError, hintText, ...restOfHTMLAttributes }: LegendWrapperProps) => React.JSX.Element;
5
+ component: typeof LegendWrapper;
7
6
  args: {
8
7
  legendText: string;
9
8
  hintText: string;
@@ -1,4 +1,4 @@
1
- import React, { HTMLAttributes, ReactNode } from "react";
1
+ import React, { type HTMLAttributes, type ReactNode } from "react";
2
2
  export type LegendWrapperProps = HTMLAttributes<HTMLLegendElement> & {
3
3
  children?: ReactNode;
4
4
  /** legend text */
@@ -18,5 +18,5 @@ export type LegendWrapperProps = HTMLAttributes<HTMLLegendElement> & {
18
18
  * hasError and errorMessage props are just props that can be passed into the component.
19
19
  * There is no functionality checking if the children are valid/required etc this functionality will be needed to ne added outside of this component.
20
20
  */
21
- export declare const LegendWrapper: ({ children, legendText, required, errorMessage, hasError, hintText, ...restOfHTMLAttributes }: LegendWrapperProps) => React.JSX.Element;
21
+ export declare function LegendWrapper({ children, legendText, required, errorMessage, hasError, hintText, ...restOfHTMLAttributes }: LegendWrapperProps): React.JSX.Element;
22
22
  export default LegendWrapper;
@@ -1,12 +1,12 @@
1
- import { ThemeType } from "../../types";
1
+ import { type ThemeType } from "../../types";
2
2
  type StyledFieldsetProps = {
3
- hasError?: boolean;
3
+ $hasError?: boolean;
4
+ $hasHintText?: boolean;
4
5
  theme: ThemeType;
5
- hasHintText?: boolean;
6
6
  };
7
- export declare const LegendSpan: import("styled-components").StyledComponent<"span", any, {
8
- hasHintText: boolean;
7
+ export declare const LegendSpan: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
8
+ $hasHintText: boolean;
9
9
  theme: ThemeType;
10
- }, never>;
11
- export declare const StyledFieldset: import("styled-components").StyledComponent<"fieldset", any, StyledFieldsetProps, never>;
10
+ }>> & string;
11
+ export declare const StyledFieldset: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, StyledFieldsetProps>> & string;
12
12
  export {};
@@ -3,13 +3,7 @@ import { StoryObj } from "@storybook/react";
3
3
  import Link from ".";
4
4
  declare const _default: {
5
5
  title: string;
6
- component: React.ForwardRefExoticComponent<Omit<Omit<React.AnchorHTMLAttributes<HTMLElement>, "nonce"> & Omit<import("../Text").TextProps, "ref" | "nonce" | "as"> & {
7
- textHoverColor?: string | undefined;
8
- appearance?: "primary" | "secondary" | undefined;
9
- ref?: React.Ref<HTMLElement> | undefined;
10
- as?: React.ElementType | undefined;
11
- children?: React.ReactNode;
12
- }, "ref"> & React.RefAttributes<HTMLElement>>;
6
+ component: React.ForwardRefExoticComponent<Omit<import(".").LinkProps, "ref"> & React.RefAttributes<HTMLElement>>;
13
7
  args: {
14
8
  appearance: undefined;
15
9
  href: string;
@@ -1,5 +1,5 @@
1
- import React, { AnchorHTMLAttributes, Ref, ElementType, ReactNode } from "react";
2
- import { TextProps } from "../Text";
1
+ import React, { type AnchorHTMLAttributes, type Ref, type ElementType, type ReactNode } from "react";
2
+ import { type TextProps } from "../Text";
3
3
  export type LinkProps = Omit<AnchorHTMLAttributes<HTMLElement>, "nonce"> & Omit<TextProps, "as" | "ref" | "nonce"> & {
4
4
  /** link text hover colour */
5
5
  textHoverColor?: string;
@@ -22,16 +22,5 @@ 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<Omit<React.AnchorHTMLAttributes<HTMLElement>, "nonce"> & Omit<TextProps, "nonce" | "as" | "ref"> & {
26
- /** link text hover colour */
27
- textHoverColor?: string | undefined;
28
- /** link appearance variant, undefined is a standarding link withing a text block */
29
- appearance?: "primary" | "secondary" | undefined;
30
- /** styled-components polymorphism where you can use the styling of a link but convert to another element like a button */
31
- ref?: React.Ref<HTMLElement> | undefined;
32
- /** styled-component polymorphic feature so you take the styling of a link and cast the component to be a "span" for example */
33
- as?: React.ElementType | undefined;
34
- /** Component children */
35
- children?: ReactNode;
36
- }, "ref"> & React.RefAttributes<HTMLElement>>;
25
+ export declare const Link: React.ForwardRefExoticComponent<Omit<LinkProps, "ref"> & React.RefAttributes<HTMLElement>>;
37
26
  export default Link;
@@ -1,19 +1,12 @@
1
- import { AnchorHTMLAttributes } from "react";
2
- import { TextProps } from "../Text";
3
- import { ThemeType } from "../../types";
4
- export declare const StyledLink: import("styled-components").StyledComponent<import("react").FunctionComponent<TextProps>, any, AnchorHTMLAttributes<HTMLElement> & import("../Spacing").SpacingProps & import("react").HTMLAttributes<HTMLElement> & {
5
- textColor?: string | undefined;
6
- textAlign?: "left" | "right" | "center" | "justify" | undefined;
7
- textSize?: import("../../types").FontSizeType | undefined;
8
- textWeight?: string | number | undefined;
9
- textFontFamily?: string | undefined;
10
- as?: import("react").ElementType | undefined;
11
- wordBreak?: import("../../types").WordBreakType | undefined;
12
- overflowWrap?: import("../../types").OverflowWrapType | undefined;
13
- ref?: import("react").Ref<HTMLElement> | undefined;
14
- } & {
1
+ import { type AnchorHTMLAttributes } from "react";
2
+ import { type TextProps } from "../Text";
3
+ import { type ThemeType } from "../../types";
4
+ type StyledLinkProps = AnchorHTMLAttributes<HTMLElement> & TextProps & {
15
5
  theme: ThemeType;
16
- appearance?: "primary" | "secondary" | undefined;
17
- textHoverColor?: string | undefined;
18
- }, never>;
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<Omit<Omit<TextProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & {
10
+ 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;
11
+ }, StyledLinkProps>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<TextProps, "ref"> & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
19
12
  export default StyledLink;
@@ -1,9 +1,8 @@
1
- import React from "react";
2
1
  import { StoryObj } from "@storybook/react";
3
2
  import Loader from ".";
4
3
  declare const _default: {
5
4
  title: string;
6
- component: () => React.JSX.Element;
5
+ component: typeof Loader;
7
6
  args: {};
8
7
  tags: string[];
9
8
  };
@@ -3,5 +3,5 @@ import React from "react";
3
3
  *
4
4
  * Loaders are used after some user interaction that we assume will take some time to complete. They inform the user that their request is beeing processed and that they should wait.
5
5
  */
6
- declare const Loader: () => React.JSX.Element;
6
+ export declare function Loader(): React.JSX.Element;
7
7
  export default Loader;
@@ -1,7 +1,7 @@
1
- import { ThemeType } from "../../types";
1
+ import { type ThemeType } from "../../types";
2
2
  type SpinnerProps = {
3
3
  theme: ThemeType;
4
4
  };
5
- export declare const ScreenReaderOnly: import("styled-components").StyledComponent<"p", any, {}, never>;
6
- export declare const Spinner: import("styled-components").StyledComponent<"div", any, SpinnerProps, never>;
5
+ export declare const ScreenReaderOnly: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
6
+ export declare const Spinner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SpinnerProps>> & string;
7
7
  export {};
@@ -1,9 +1,8 @@
1
- import React from "react";
2
1
  import { StoryObj } from "@storybook/react";
3
- import Modal, { ModalProps } from ".";
2
+ import Modal from ".";
4
3
  declare const _default: {
5
4
  title: string;
6
- component: ({ modalName, closeFunction, showCloseButton, maxWidth, top, backgroundColor, children, width, margin, marginHorizontal, marginVertical, marginTop, marginRight, marginBottom, marginLeft, padding, paddingHorizontal, paddingVertical, paddingTop, paddingRight, paddingBottom, paddingLeft, }: ModalProps) => React.JSX.Element;
5
+ component: typeof Modal;
7
6
  args: {};
8
7
  tags: string[];
9
8
  };
@@ -1,5 +1,5 @@
1
- import React, { ReactNode } from "react";
2
- import { SpacingProps } from "../Spacing";
1
+ import React, { type ReactNode } from "react";
2
+ import { type SpacingProps } from "../Spacing";
3
3
  export type ModalProps = SpacingProps & {
4
4
  /** modal name used for aria-label */
5
5
  modalName: string;
@@ -28,5 +28,5 @@ export type ModalProps = SpacingProps & {
28
28
  * ## Accessibility
29
29
  * - Once the Modal is appeared on the screen, the focus must be within the Modal container which will enable the screen readers to be able to navigate within the Modal. You may wish to hide the close button so that a user must click on another button to confirm a choice before the modal is closed. However closing with the 'ESC' key must always work, so the props which contains the function that allows the modal to close itself 'closeFunction' is always required.
30
30
  */
31
- declare const Modal: ({ modalName, closeFunction, showCloseButton, maxWidth, top, backgroundColor, children, width, margin, marginHorizontal, marginVertical, marginTop, marginRight, marginBottom, marginLeft, padding, paddingHorizontal, paddingVertical, paddingTop, paddingRight, paddingBottom, paddingLeft, }: ModalProps) => React.JSX.Element;
31
+ export declare function Modal({ modalName, closeFunction, showCloseButton, maxWidth, top, backgroundColor, children, width, margin, marginHorizontal, marginVertical, marginTop, marginRight, marginBottom, marginLeft, padding, paddingHorizontal, paddingVertical, paddingTop, paddingRight, paddingBottom, paddingLeft, }: ModalProps): React.JSX.Element;
32
32
  export default Modal;
@@ -1,26 +1,19 @@
1
- import { ThemeType } from "../../types";
2
- type ThemeProp = {
1
+ import { type ThemeType } from "../../types";
2
+ 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>, {
3
3
  theme: ThemeType;
4
- };
5
- type ContentProps = {
6
- backgroundColor?: string;
4
+ }>> & string;
5
+ 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;
6
+ export declare const Content: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<Omit<import("../Box").BoxProps, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
7
+ 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;
8
+ }, {
9
+ $backgroundColor?: string;
10
+ $top: string;
11
+ $width: string;
12
+ $maxWidth: string;
7
13
  theme: ThemeType;
8
- top: string;
9
- width: string;
10
- maxWidth: string;
11
- };
12
- export declare const Background: import("styled-components").StyledComponent<"div", any, ThemeProp, never>;
13
- export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
14
- export declare const Content: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../Box").BoxProps>, any, ContentProps, never>;
15
- export declare const CloseButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("react").ButtonHTMLAttributes<HTMLElement> & {
16
- appearance?: import("../../types").ButtonAppearanceType | undefined;
17
- full?: boolean | undefined;
18
- href?: string | undefined;
19
- size?: "m" | "l" | undefined;
20
- css?: any;
21
- as?: import("react").ElementType | undefined;
22
- isIconButton?: boolean | undefined;
23
- ref?: import("react").Ref<HTMLElement> | undefined;
24
- children?: import("react").ReactNode;
25
- }, "ref"> & import("react").RefAttributes<HTMLElement>>, any, ThemeProp, never>;
26
- export {};
14
+ }>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<import("../Box").BoxProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
15
+ export declare const CloseButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<Omit<import("../Button").ButtonProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & {
16
+ 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;
17
+ }, {
18
+ theme: ThemeType;
19
+ }>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<import("../Button").ButtonProps, "ref"> & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
@@ -1,9 +1,8 @@
1
- import React from "react";
2
1
  import { StoryObj } from "@storybook/react";
3
2
  import Pagination from ".";
4
3
  declare const _default: {
5
4
  title: string;
6
- component: ({ current, items, hideLast, pagerCallback, perPage, searchParam, children, id, }: import(".").PaginationProps) => React.JSX.Element;
5
+ component: typeof Pagination;
7
6
  args: {
8
7
  current: number;
9
8
  perPage: number;
@@ -1,4 +1,4 @@
1
- import React, { HTMLAttributes, ReactNode } from "react";
1
+ import React, { type HTMLAttributes, type ReactNode } from "react";
2
2
  export type PaginationProps = {
3
3
  /** set current page number */
4
4
  current: number;
@@ -20,5 +20,5 @@ export type PaginationProps = {
20
20
  Data is split into multiple pages and pagination is used to
21
21
  easily navigate through these pages.
22
22
  */
23
- declare const Pagination: ({ current, items, hideLast, pagerCallback, perPage, searchParam, children, id, }: PaginationProps) => React.JSX.Element;
23
+ export declare function Pagination({ current, items, hideLast, pagerCallback, perPage, searchParam, children, id, }: PaginationProps): React.JSX.Element;
24
24
  export default Pagination;
@@ -1,14 +1,12 @@
1
- import { ThemeType } from "../../types";
2
- type PaginationStyledProps = {
3
- active?: boolean;
1
+ import { type ThemeType } from "../../types";
2
+ export declare const PagerWrapper: 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 PagerList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, never>> & string;
4
+ export declare const PagerLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {
5
+ $active?: boolean;
4
6
  name?: string;
5
7
  disabled?: boolean;
6
- };
7
- type ThemeProps = {
8
8
  theme: ThemeType;
9
- };
10
- export declare const PagerWrapper: import("styled-components").StyledComponent<"div", any, PaginationStyledProps, never>;
11
- export declare const PagerList: import("styled-components").StyledComponent<"ul", any, {}, never>;
12
- export declare const PagerLink: import("styled-components").StyledComponent<"a", any, PaginationStyledProps, never>;
13
- export declare const PagerItem: import("styled-components").StyledComponent<"li", any, ThemeProps, never>;
14
- export {};
9
+ }>> & string;
10
+ export declare const PagerItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {
11
+ theme: ThemeType;
12
+ }>> & string;
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
2
  import { StoryObj } from "@storybook/react";
3
- import PopOver, { PopOverProps } from ".";
3
+ import PopOver from ".";
4
4
  declare const _default: {
5
5
  title: string;
6
- component: ({ onPopOverIsOpenChange, children, minWidth, maxWidth, position, modalLabel, modalContent, css, full, }: PopOverProps) => React.JSX.Element;
6
+ component: typeof PopOver;
7
7
  args: {
8
8
  modalLabel: string;
9
9
  minWidth: string;
@@ -1,5 +1,5 @@
1
- import React, { ReactNode } from "react";
2
- import { PopOverPositionType } from "../../types";
1
+ import React, { type ReactNode } from "react";
2
+ import { type PopOverPositionType } from "../../types";
3
3
  export type PopOverProps = {
4
4
  /** modalLabel: used for aria-label of modal */
5
5
  modalLabel: string;
@@ -22,5 +22,5 @@ export type PopOverProps = {
22
22
  * Popover is a non-modal dialog that floats around its disclosure. It's
23
23
  commonly used for displaying additional rich content on top of something.
24
24
  */
25
- declare const PopOver: ({ onPopOverIsOpenChange, children, minWidth, maxWidth, position, modalLabel, modalContent, css, full, }: PopOverProps) => React.JSX.Element;
25
+ export declare function PopOver({ onPopOverIsOpenChange, children, minWidth, maxWidth, position, modalLabel, modalContent, css, full, }: PopOverProps): React.JSX.Element;
26
26
  export default PopOver;
@@ -1,11 +1,11 @@
1
- import { ThemeType, PopOverPositionType } from "../../types";
2
- export declare const PopOverWrapper: import("styled-components").StyledComponent<"div", any, {
3
- full: boolean;
4
- css?: string | undefined;
5
- }, never>;
6
- export declare const PopOverModal: import("styled-components").StyledComponent<"div", any, {
7
- position: PopOverPositionType;
8
- theme?: ThemeType | undefined;
9
- maxWidth: string;
10
- minWidth: string;
11
- }, never>;
1
+ import { type ThemeType, type PopOverPositionType } from "../../types";
2
+ export declare const PopOverWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
3
+ $full: boolean;
4
+ $css?: string;
5
+ }>> & string;
6
+ export declare const PopOverModal: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
7
+ $position: PopOverPositionType;
8
+ $maxWidth: string;
9
+ $minWidth: string;
10
+ theme?: ThemeType;
11
+ }>> & string;
@@ -1,9 +1,8 @@
1
- import React from "react";
2
1
  import { StoryObj } from "@storybook/react";
3
2
  import ProgressBar from ".";
4
3
  declare const _default: {
5
4
  title: string;
6
- component: ({ percentage, isCircular, circleContents, circleSize, barColor, secondaryBarColor, secondaryPercentage, children, }: import(".").ProgressBarProps) => React.JSX.Element;
5
+ component: typeof ProgressBar;
7
6
  args: {
8
7
  percentage: number;
9
8
  secondaryPercentage: number;
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from "react";
1
+ import React, { type ReactNode } from "react";
2
2
  export type ProgressBarProps = {
3
3
  /** percentage value of the progressbar */
4
4
  percentage: number;
@@ -20,5 +20,5 @@ export type ProgressBarProps = {
20
20
  * Provide up-to-date feedback on the progress of a workflow or action with
21
21
  simple yet flexible progress bars.
22
22
  */
23
- declare const ProgressBar: ({ percentage, isCircular, circleContents, circleSize, barColor, secondaryBarColor, secondaryPercentage, children, }: ProgressBarProps) => React.JSX.Element;
23
+ export declare function ProgressBar({ percentage, isCircular, circleContents, circleSize, barColor, secondaryBarColor, secondaryPercentage, children, }: ProgressBarProps): React.JSX.Element;
24
24
  export default ProgressBar;
@@ -1,30 +1,32 @@
1
- import { ThemeType } from "../../types";
2
- type ThemeProp = {
1
+ import { type ThemeType } from "../../types";
2
+ export declare const ProgressBarWrapper: 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 LineProgressBarWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
4
+ $percentage: number;
5
+ $secondaryPercentage: number;
3
6
  theme: ThemeType;
4
- };
5
- type LineProgressBarProps = {
6
- percentage: number;
7
- barColor?: string;
8
- isSecondary?: boolean;
9
- };
10
- type LineProgressWrapperProps = {
11
- percentage: number;
12
- secondaryPercentage: number;
13
- };
14
- type CircleWrapperProps = {
15
- circleSize: string;
16
- };
17
- export declare const ProgressBarWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
18
- export declare const LineProgressBarWrapper: import("styled-components").StyledComponent<"div", any, LineProgressWrapperProps, never>;
19
- export declare const LineProgressBar: import("styled-components").StyledComponent<"div", any, LineProgressBarProps, never>;
20
- export declare const ScreenReaderOnly: import("styled-components").StyledComponent<"span", any, {}, never>;
21
- export declare const CircularWrapper: import("styled-components").StyledComponent<"div", any, CircleWrapperProps, never>;
22
- export declare const CircleSvg: import("styled-components").StyledComponent<"svg", any, {}, never>;
23
- export declare const EmptyCircle: import("styled-components").StyledComponent<"circle", any, ThemeProp, never>;
24
- export declare const FullCircle: import("styled-components").StyledComponent<"circle", any, ThemeProp & {
25
- strokeDashoffsetInit: number;
26
- barColor?: string | undefined;
27
- isSecondary?: boolean | undefined;
28
- }, never>;
29
- export declare const CircularValue: import("styled-components").StyledComponent<"div", any, ThemeProp, never>;
30
- export {};
7
+ }>> & string;
8
+ export declare const LineProgressBar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
9
+ $percentage: number;
10
+ $barColor?: string;
11
+ $isSecondary?: boolean;
12
+ theme: ThemeType;
13
+ }>> & string;
14
+ export declare const ScreenReaderOnly: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
15
+ export declare const CircularWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
16
+ $circleSize: string;
17
+ theme: ThemeType;
18
+ }>> & string;
19
+ export declare const CircleSvg: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").SVGProps<SVGSVGElement>, never>> & string;
20
+ export declare const EmptyCircle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").SVGProps<SVGCircleElement>, {
21
+ theme: ThemeType;
22
+ }>> & string;
23
+ export declare const FullCircle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").SVGProps<SVGCircleElement>, {
24
+ $strokeDashoffsetInit: number;
25
+ strokeDashoffset: number;
26
+ $barColor?: string;
27
+ $isSecondary?: boolean;
28
+ theme: ThemeType;
29
+ }>> & string;
30
+ export declare const CircularValue: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
31
+ theme: ThemeType;
32
+ }>> & string;
@@ -1,14 +1,9 @@
1
1
  import React from "react";
2
2
  import { StoryObj } from "@storybook/react";
3
- import Radio from ".";
3
+ import Radio, { RadioProps } from ".";
4
4
  declare const _default: {
5
5
  title: string;
6
- component: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement> & {
7
- ref?: React.Ref<HTMLInputElement> | undefined;
8
- hasError?: boolean | undefined;
9
- errorMessage?: string | undefined;
10
- children?: React.ReactNode;
11
- }, "ref"> & React.RefAttributes<HTMLInputElement>>;
6
+ component: React.ForwardRefExoticComponent<Omit<RadioProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
12
7
  args: {
13
8
  id: string;
14
9
  value: string;
@@ -1,6 +1,6 @@
1
- import React, { InputHTMLAttributes, Ref, ReactNode } from "react";
1
+ import React, { type InputHTMLAttributes, type Ref, type ReactNode, type LegacyRef } from "react";
2
2
  export type RadioProps = InputHTMLAttributes<HTMLInputElement> & {
3
- ref?: Ref<HTMLInputElement>;
3
+ ref?: Ref<HTMLInputElement> | LegacyRef<HTMLInputElement>;
4
4
  /** flag for error styling */
5
5
  hasError?: boolean;
6
6
  /** error message text */
@@ -12,12 +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
- declare const Radio: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement> & {
16
- ref?: React.Ref<HTMLInputElement> | undefined;
17
- /** flag for error styling */
18
- hasError?: boolean | undefined;
19
- /** error message text */
20
- errorMessage?: string | undefined;
21
- children?: ReactNode;
22
- }, "ref"> & React.RefAttributes<HTMLInputElement>>;
15
+ export declare const Radio: React.ForwardRefExoticComponent<Omit<RadioProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
23
16
  export default Radio;
@@ -1,21 +1,21 @@
1
- import { ThemeType } from "../../types";
2
- type ThemeProp = {
1
+ import { type ThemeType } from "../../types";
2
+ export declare const CheckWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
3
3
  theme: ThemeType;
4
- };
5
- export declare const CheckWrapper: import("styled-components").StyledComponent<"div", any, ThemeProp, never>;
6
- export declare const Check: import("styled-components").StyledComponent<"span", any, ThemeProp, never>;
7
- type StyledLabelProps = {
8
- hasError: boolean;
4
+ }>> & string;
5
+ export declare const Check: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
6
+ theme: ThemeType;
7
+ }>> & string;
8
+ export declare const StyledLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {
9
+ $hasError: boolean;
9
10
  disabled: boolean;
10
11
  checked: boolean;
11
12
  theme: ThemeType;
12
- };
13
- export declare const StyledLabel: import("styled-components").StyledComponent<"label", any, StyledLabelProps, never>;
14
- export declare const VerticalAlign: import("styled-components").StyledComponent<"span", any, ThemeProp, never>;
15
- export declare const SelectedBorder: import("styled-components").StyledComponent<"div", any, {}, never>;
16
- type StyledInputType = {
13
+ }>> & string;
14
+ export declare const VerticalAlign: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
15
+ theme: ThemeType;
16
+ }>> & string;
17
+ export declare const SelectedBorder: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
18
+ 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>, {
17
19
  disabled: boolean;
18
20
  theme: ThemeType;
19
- };
20
- export declare const StyledInput: import("styled-components").StyledComponent<"input", any, StyledInputType, never>;
21
- export {};
21
+ }>> & string;
@@ -1,9 +1,8 @@
1
- import React from "react";
2
1
  import { StoryObj } from "@storybook/react";
3
- import RadioConsent, { RadioConsentProps } from ".";
2
+ import RadioConsent from ".";
4
3
  declare const _default: {
5
4
  title: string;
6
- component: React.FunctionComponent<RadioConsentProps>;
5
+ component: typeof RadioConsent;
7
6
  args: {
8
7
  legend: string;
9
8
  name: string;
@@ -1,12 +1,13 @@
1
- import React, { FunctionComponent } from "react";
1
+ import React from "react";
2
+ type Attribute = {
3
+ value: string;
4
+ option: string;
5
+ };
2
6
  export type RadioConsentProps = {
3
7
  /** because each radio has its own label this is the consent group label text */
4
8
  legend: string;
5
9
  /** array of option for radio constent group where option is the option name and value is the option value */
6
- attributes: Array<{
7
- value: string;
8
- option: string;
9
- }>;
10
+ attributes: Attribute[];
10
11
  /** on change handler callback passed change event */
11
12
  onChange?: React.ChangeEventHandler<HTMLInputElement>;
12
13
  /** set the value of selected option */
@@ -20,5 +21,5 @@ export type RadioConsentProps = {
20
21
  *
21
22
  * This is always a controlled component that will only change state with the selectedValue prop
22
23
  */
23
- declare const RadioConsent: FunctionComponent<RadioConsentProps>;
24
+ export declare function RadioConsent(props: RadioConsentProps): React.JSX.Element;
24
25
  export default RadioConsent;
@@ -1,15 +1,15 @@
1
- import { ThemeType } from "../../types";
2
- type ThemeProp = {
1
+ import { type ThemeType } from "../../types";
2
+ type StyleRadioWidthProp = {
3
+ $numberOfAttributes: number;
3
4
  theme: ThemeType;
4
5
  };
5
- export declare const StyledRadio: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("react").InputHTMLAttributes<HTMLInputElement> & {
6
- ref?: import("react").Ref<HTMLInputElement> | undefined;
7
- hasError?: boolean | undefined;
8
- errorMessage?: string | undefined;
9
- children?: import("react").ReactNode;
10
- }, "ref"> & import("react").RefAttributes<HTMLInputElement>>, any, {
11
- numberOfAttributes: number;
12
- } & ThemeProp, never>;
13
- export declare const StyledLegend: import("styled-components").StyledComponent<"legend", any, ThemeProp, never>;
14
- export declare const StyledFieldSet: import("styled-components").StyledComponent<"fieldset", any, ThemeProp, never>;
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>>;
9
+ 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
+ theme: ThemeType;
11
+ }>> & string;
12
+ export declare const StyledFieldSet: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, {
13
+ theme: ThemeType;
14
+ }>> & string;
15
15
  export {};