@cruk/cruk-react-components 2.0.1 → 3.0.0

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 (254) hide show
  1. package/lib/components/AddressLookup/AddressLookUp.test.cypress.d.ts +1 -1
  2. package/lib/components/AddressLookup/AddressLookup.stories.d.ts +36 -7
  3. package/lib/components/AddressLookup/index.d.ts +61 -61
  4. package/lib/components/AddressLookup/styles.d.ts +14 -14
  5. package/lib/components/Avatar/Avatar.stories.d.ts +33 -20
  6. package/lib/components/Avatar/Avatar.test.cypress.d.ts +1 -1
  7. package/lib/components/Avatar/index.d.ts +15 -15
  8. package/lib/components/Avatar/styles.d.ts +7 -7
  9. package/lib/components/Badge/Badge.stories.d.ts +26 -16
  10. package/lib/components/Badge/Badge.test.cypress.d.ts +1 -1
  11. package/lib/components/Badge/index.d.ts +28 -28
  12. package/lib/components/Badge/styles.d.ts +11 -11
  13. package/lib/components/Box/Box.stories.d.ts +20 -13
  14. package/lib/components/Box/Box.test.cypress.d.ts +1 -1
  15. package/lib/components/Box/index.d.ts +17 -17
  16. package/lib/components/Box/styles.d.ts +8 -8
  17. package/lib/components/Button/Button.stories.d.ts +39 -15
  18. package/lib/components/Button/Button.test.cypress.d.ts +1 -1
  19. package/lib/components/Button/index.d.ts +46 -46
  20. package/lib/components/Button/styles.d.ts +15 -13
  21. package/lib/components/Carousel/Carousel.stories.d.ts +15 -7
  22. package/lib/components/Carousel/Carousel.test.cypress.d.ts +1 -1
  23. package/lib/components/Carousel/Dots.d.ts +12 -12
  24. package/lib/components/Carousel/index.d.ts +20 -20
  25. package/lib/components/Carousel/styles.d.ts +33 -33
  26. package/lib/components/Checkbox/CheckBox.test.cypress.d.ts +1 -1
  27. package/lib/components/Checkbox/Checkbox.stories.d.ts +26 -8
  28. package/lib/components/Checkbox/index.d.ts +23 -23
  29. package/lib/components/Checkbox/styles.d.ts +16 -13
  30. package/lib/components/Collapse/Collapse.stories.d.ts +23 -13
  31. package/lib/components/Collapse/Collapse.test.cypress.d.ts +1 -1
  32. package/lib/components/Collapse/index.d.ts +29 -29
  33. package/lib/components/Collapse/styles.d.ts +26 -26
  34. package/lib/components/DateField/DateField.stories.d.ts +29 -10
  35. package/lib/components/DateField/DateField.test.cypress.d.ts +1 -1
  36. package/lib/components/DateField/index.d.ts +32 -32
  37. package/lib/components/DateField/styles.d.ts +9 -4
  38. package/lib/components/Divider.d.ts +6 -6
  39. package/lib/components/ErrorText/ErrorText.stories.d.ts +16 -7
  40. package/lib/components/ErrorText/ErrorText.test.cypress.d.ts +1 -1
  41. package/lib/components/ErrorText/index.d.ts +13 -13
  42. package/lib/components/ErrorText/styles.d.ts +7 -3
  43. package/lib/components/Flex.d.ts +3 -3
  44. package/lib/components/Fontface.d.ts +2 -2
  45. package/lib/components/Footer/Footer.stories.d.ts +13 -7
  46. package/lib/components/Footer/Footer.test.cypress.d.ts +1 -1
  47. package/lib/components/Footer/index.d.ts +11 -11
  48. package/lib/components/Footer/styles.d.ts +16 -11
  49. package/lib/components/GlobalStyle.d.ts +9 -9
  50. package/lib/components/GlobalStyleNoFontFace.d.ts +9 -9
  51. package/lib/components/Header/Header.stories.d.ts +20 -7
  52. package/lib/components/Header/Header.test.cypress.d.ts +1 -1
  53. package/lib/components/Header/index.d.ts +37 -37
  54. package/lib/components/Header/styles.d.ts +37 -31
  55. package/lib/components/Heading/Heading.stories.d.ts +31 -25
  56. package/lib/components/Heading/Heading.test.cypress.d.ts +1 -1
  57. package/lib/components/Heading/index.d.ts +32 -32
  58. package/lib/components/Heading/styles.d.ts +50 -50
  59. package/lib/components/Icon/Icon.stories.d.ts +15 -6
  60. package/lib/components/Icon/Icon.test.cypress.d.ts +1 -1
  61. package/lib/components/Icon/iconList.d.ts +268 -268
  62. package/lib/components/Icon/index.d.ts +23 -23
  63. package/lib/components/Icon/styles.d.ts +5 -5
  64. package/lib/components/IconFa/IconFa.stories.d.ts +16 -7
  65. package/lib/components/IconFa/IconFa.test.cypress.d.ts +1 -1
  66. package/lib/components/IconFa/index.d.ts +17 -17
  67. package/lib/components/IconFa/styles.d.ts +5 -5
  68. package/lib/components/InfoBox/InfoBox.stories.d.ts +22 -9
  69. package/lib/components/InfoBox/InfoBox.test.cypress.d.ts +1 -1
  70. package/lib/components/InfoBox/index.d.ts +27 -27
  71. package/lib/components/InfoBox/styles.d.ts +14 -14
  72. package/lib/components/LabelWrapper/index.d.ts +19 -19
  73. package/lib/components/LabelWrapper/styles.d.ts +6 -6
  74. package/lib/components/LegendWrapper/LegendWrapper.stories.d.ts +21 -11
  75. package/lib/components/LegendWrapper/LegendWrapper.test.cypress.d.ts +1 -1
  76. package/lib/components/LegendWrapper/index.d.ts +22 -22
  77. package/lib/components/LegendWrapper/styles.d.ts +12 -12
  78. package/lib/components/Link/Link.stories.d.ts +33 -14
  79. package/lib/components/Link/Link.test.cypress.d.ts +1 -1
  80. package/lib/components/Link/index.d.ts +37 -37
  81. package/lib/components/Link/styles.d.ts +22 -18
  82. package/lib/components/Loader/Loader.stories.d.ts +13 -6
  83. package/lib/components/Loader/Loader.test.cypress.d.ts +1 -1
  84. package/lib/components/Loader/index.d.ts +7 -7
  85. package/lib/components/Loader/styles.d.ts +7 -2
  86. package/lib/components/Modal/Modal.stories.d.ts +13 -7
  87. package/lib/components/Modal/Modal.test.cypress.d.ts +1 -1
  88. package/lib/components/Modal/index.d.ts +32 -32
  89. package/lib/components/Modal/styles.d.ts +27 -24
  90. package/lib/components/Pagination/Pagination.stories.d.ts +20 -8
  91. package/lib/components/Pagination/Pagination.test.cypress.d.ts +1 -1
  92. package/lib/components/Pagination/index.d.ts +24 -24
  93. package/lib/components/Pagination/styles.d.ts +14 -10
  94. package/lib/components/PopOver/PopOver.test.cypress.d.ts +1 -1
  95. package/lib/components/PopOver/Popover.stories.d.ts +18 -7
  96. package/lib/components/PopOver/index.d.ts +26 -24
  97. package/lib/components/PopOver/styles.d.ts +11 -10
  98. package/lib/components/ProgressBar/ProgressBar.stories.d.ts +19 -10
  99. package/lib/components/ProgressBar/ProgressBar.test.cypress.d.ts +1 -1
  100. package/lib/components/ProgressBar/index.d.ts +24 -24
  101. package/lib/components/ProgressBar/styles.d.ts +30 -30
  102. package/lib/components/Radio/Radio.stories.d.ts +28 -8
  103. package/lib/components/Radio/Radio.test.cypress.d.ts +1 -1
  104. package/lib/components/Radio/index.d.ts +23 -23
  105. package/lib/components/Radio/styles.d.ts +21 -19
  106. package/lib/components/RadioConsent/Radio.stories.d.ts +21 -7
  107. package/lib/components/RadioConsent/RadioConsent.test.cypress.d.ts +1 -1
  108. package/lib/components/RadioConsent/index.d.ts +24 -24
  109. package/lib/components/RadioConsent/styles.d.ts +16 -16
  110. package/lib/components/Select/Select.test.cypress.d.ts +1 -1
  111. package/lib/components/Select/Selelct.stories.d.ts +24 -10
  112. package/lib/components/Select/index.d.ts +21 -21
  113. package/lib/components/Select/styles.d.ts +9 -9
  114. package/lib/components/Spacing/index.d.ts +19 -19
  115. package/lib/components/Step/Step.stories.d.ts +17 -7
  116. package/lib/components/Step/Step.test.cypress.d.ts +1 -1
  117. package/lib/components/Step/index.d.ts +15 -15
  118. package/lib/components/Step/styles.d.ts +17 -13
  119. package/lib/components/TestWrapper.d.ts +12 -12
  120. package/lib/components/Text/Text.stories.d.ts +17 -7
  121. package/lib/components/Text/Text.test.cypress.d.ts +1 -1
  122. package/lib/components/Text/index.d.ts +26 -26
  123. package/lib/components/Text/styles.d.ts +22 -22
  124. package/lib/components/TextAreaField/TextAreaField.stories.d.ts +29 -10
  125. package/lib/components/TextAreaField/TextAreaField.test.cypress.d.ts +1 -1
  126. package/lib/components/TextAreaField/index.d.ts +22 -22
  127. package/lib/components/TextAreaField/styles.d.ts +10 -10
  128. package/lib/components/TextField/TextField.stories.d.ts +27 -12
  129. package/lib/components/TextField/TextField.test.cypress.d.ts +1 -1
  130. package/lib/components/TextField/index.d.ts +34 -34
  131. package/lib/components/TextField/styles.d.ts +18 -18
  132. package/lib/components/ThemeCheatSheet.d.ts +7 -7
  133. package/lib/components/Totaliser/Totaliser.stories.d.ts +27 -19
  134. package/lib/components/Totaliser/Totaliser.test.cypress.d.ts +1 -1
  135. package/lib/components/Totaliser/index.d.ts +22 -22
  136. package/lib/components/Totaliser/styles.d.ts +20 -16
  137. package/lib/components/UserBlock/UserBlock.stories.d.ts +23 -16
  138. package/lib/components/UserBlock/UserBlock.test.cypress.d.ts +1 -1
  139. package/lib/components/UserBlock/index.d.ts +18 -18
  140. package/lib/components/UserBlock/styles.d.ts +9 -4
  141. package/lib/components/index.d.ts +73 -73
  142. package/lib/docs/Docs.d.ts +2 -2
  143. package/lib/docs/index.d.ts +1 -1
  144. package/lib/es/{node_modules/tslib/tslib.es6.js → _virtual/_tslib.js} +1 -1
  145. package/lib/es/_virtual/_tslib.js.map +1 -0
  146. package/lib/es/node_modules/focus-lock/dist/es2015/index.js +1 -1
  147. package/lib/es/node_modules/focus-lock/dist/es2015/index.js.map +1 -1
  148. package/lib/es/node_modules/focus-lock/dist/es2015/utils/safe.js.map +1 -1
  149. package/lib/es/node_modules/react-focus-lock/dist/es2015/Combination.js +1 -1
  150. package/lib/es/node_modules/react-focus-lock/dist/es2015/Combination.js.map +1 -1
  151. package/lib/es/node_modules/react-focus-lock/dist/es2015/Lock.js +1 -1
  152. package/lib/es/node_modules/react-focus-lock/dist/es2015/Lock.js.map +1 -1
  153. package/lib/es/node_modules/react-focus-lock/dist/es2015/Trap.js +1 -1
  154. package/lib/es/node_modules/react-focus-lock/dist/es2015/Trap.js.map +1 -1
  155. package/lib/es/node_modules/react-focus-lock/dist/es2015/index.js +1 -1
  156. package/lib/es/node_modules/react-focus-lock/dist/es2015/medium.js +1 -1
  157. package/lib/es/node_modules/react-focus-lock/dist/es2015/medium.js.map +1 -1
  158. package/lib/es/node_modules/use-sidecar/dist/es2015/medium.js +1 -1
  159. package/lib/es/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -1
  160. package/lib/es/src/components/AddressLookup/index.js +1 -1
  161. package/lib/es/src/components/AddressLookup/styles.js +1 -1
  162. package/lib/es/src/components/Avatar/index.js +1 -1
  163. package/lib/es/src/components/Avatar/styles.js +1 -1
  164. package/lib/es/src/components/Badge/index.js +1 -1
  165. package/lib/es/src/components/Badge/styles.js +1 -1
  166. package/lib/es/src/components/Box/index.js +1 -1
  167. package/lib/es/src/components/Box/styles.js +1 -1
  168. package/lib/es/src/components/Button/index.js +1 -1
  169. package/lib/es/src/components/Button/styles.js +1 -1
  170. package/lib/es/src/components/Carousel/Dots.js +1 -1
  171. package/lib/es/src/components/Carousel/styles.js +1 -1
  172. package/lib/es/src/components/Checkbox/index.js +1 -1
  173. package/lib/es/src/components/Checkbox/styles.js +1 -1
  174. package/lib/es/src/components/Collapse/index.js +1 -1
  175. package/lib/es/src/components/Collapse/styles.js +1 -1
  176. package/lib/es/src/components/DateField/styles.js +1 -1
  177. package/lib/es/src/components/Divider.js +1 -1
  178. package/lib/es/src/components/ErrorText/index.js +1 -1
  179. package/lib/es/src/components/ErrorText/styles.js +1 -1
  180. package/lib/es/src/components/Flex.js +1 -1
  181. package/lib/es/src/components/Footer/index.js +1 -1
  182. package/lib/es/src/components/Footer/styles.js +1 -1
  183. package/lib/es/src/components/GlobalStyle.js +1 -1
  184. package/lib/es/src/components/GlobalStyleNoFontFace.js +1 -1
  185. package/lib/es/src/components/Header/index.js +1 -1
  186. package/lib/es/src/components/Header/styles.js +1 -1
  187. package/lib/es/src/components/Heading/index.js +1 -1
  188. package/lib/es/src/components/Heading/styles.js +1 -1
  189. package/lib/es/src/components/Icon/index.js +1 -1
  190. package/lib/es/src/components/Icon/styles.js +1 -1
  191. package/lib/es/src/components/IconFa/index.js +1 -1
  192. package/lib/es/src/components/IconFa/styles.js +1 -1
  193. package/lib/es/src/components/InfoBox/index.js +1 -1
  194. package/lib/es/src/components/InfoBox/styles.js +1 -1
  195. package/lib/es/src/components/LabelWrapper/index.js +1 -1
  196. package/lib/es/src/components/LabelWrapper/styles.js +1 -1
  197. package/lib/es/src/components/LegendWrapper/index.js +1 -1
  198. package/lib/es/src/components/LegendWrapper/styles.js +1 -1
  199. package/lib/es/src/components/Link/index.js +1 -1
  200. package/lib/es/src/components/Link/styles.js +1 -1
  201. package/lib/es/src/components/Loader/index.js +1 -1
  202. package/lib/es/src/components/Loader/styles.js +1 -1
  203. package/lib/es/src/components/Modal/index.js +1 -1
  204. package/lib/es/src/components/Modal/styles.js +1 -1
  205. package/lib/es/src/components/Pagination/index.js +1 -1
  206. package/lib/es/src/components/Pagination/styles.js +1 -1
  207. package/lib/es/src/components/PopOver/README.md.js +1 -1
  208. package/lib/es/src/components/PopOver/README.md.js.map +1 -1
  209. package/lib/es/src/components/PopOver/index.js +1 -1
  210. package/lib/es/src/components/PopOver/styles.js +1 -1
  211. package/lib/es/src/components/ProgressBar/index.js +1 -1
  212. package/lib/es/src/components/ProgressBar/styles.js +1 -1
  213. package/lib/es/src/components/Radio/index.js +1 -1
  214. package/lib/es/src/components/Radio/styles.js +1 -1
  215. package/lib/es/src/components/RadioConsent/index.js +1 -1
  216. package/lib/es/src/components/RadioConsent/styles.js +1 -1
  217. package/lib/es/src/components/Select/index.js +1 -1
  218. package/lib/es/src/components/Select/styles.js +1 -1
  219. package/lib/es/src/components/Step/index.js +1 -1
  220. package/lib/es/src/components/Step/styles.js +1 -1
  221. package/lib/es/src/components/Text/index.js +1 -1
  222. package/lib/es/src/components/Text/styles.js +1 -1
  223. package/lib/es/src/components/TextAreaField/index.js +1 -1
  224. package/lib/es/src/components/TextAreaField/styles.js +1 -1
  225. package/lib/es/src/components/TextField/index.js +1 -1
  226. package/lib/es/src/components/TextField/styles.js +1 -1
  227. package/lib/es/src/components/Totaliser/index.js +1 -1
  228. package/lib/es/src/components/Totaliser/styles.js +1 -1
  229. package/lib/es/src/components/UserBlock/index.js +1 -1
  230. package/lib/es/src/components/UserBlock/styles.js +1 -1
  231. package/lib/es/src/themes/bowelbabe.js +1 -1
  232. package/lib/es/src/themes/su2c.js +1 -1
  233. package/lib/hocs/MdxProvider.d.ts +6 -6
  234. package/lib/hooks/useEffectBrowser.d.ts +3 -3
  235. package/lib/hooks/useKey.d.ts +6 -6
  236. package/lib/hooks/useLayoutEffectBrowser.d.ts +4 -4
  237. package/lib/hooks/useScrollPosition.d.ts +13 -13
  238. package/lib/themes/bowelbabe.d.ts +13 -13
  239. package/lib/themes/cruk.d.ts +13 -13
  240. package/lib/themes/su2c.d.ts +13 -13
  241. package/lib/types.d.ts +232 -232
  242. package/lib/utils/Helper.d.ts +6 -6
  243. package/lib/utils/__tests__/testHelpers.jest.d.ts +1 -1
  244. package/lib/utils/debounce.d.ts +2 -2
  245. package/package.json +21 -15
  246. package/lib/es/node_modules/detect-node-es/esm/node.js +0 -2
  247. package/lib/es/node_modules/detect-node-es/esm/node.js.map +0 -1
  248. package/lib/es/node_modules/react-focus-lock/dist/es2015/AutoFocusInside.js +0 -2
  249. package/lib/es/node_modules/react-focus-lock/dist/es2015/AutoFocusInside.js.map +0 -1
  250. package/lib/es/node_modules/react-focus-lock/dist/es2015/FreeFocusInside.js +0 -2
  251. package/lib/es/node_modules/react-focus-lock/dist/es2015/FreeFocusInside.js.map +0 -1
  252. package/lib/es/node_modules/react-focus-lock/dist/es2015/MoveFocusInside.js +0 -2
  253. package/lib/es/node_modules/react-focus-lock/dist/es2015/MoveFocusInside.js.map +0 -1
  254. package/lib/es/node_modules/tslib/tslib.es6.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"../../node_modules/tslib/tslib.es6.js";import r from"./cruk.js";var o=e({},r.utilities),t=e(e({},r.siteConfig),{logoSrc:"https://rcl.assets.cancerresearchuk.org/images/logos/bowelbabe-logo-160.png",footerCopyText:"The Bowelbabe Fund for Cancer Research UK, raises money to fund clinical trials, research and cancer information and awareness, as well as other initiatives to combat cancer and support those affected by cancer. The Bowelbabe Fund is a restricted fund within Cancer Research UK. Cancer Research UK is a registered charity in England and Wales (1089464), Scotland (SC041666), the Isle of Man (1103) and Jersey (247) and is registered with the Fundraising Regulator."}),a=e({},r.avatar),b=e(e({},r.button),{horizontalPadding:"1rem"}),n=e({},r.breakpoint),i=e(e({},r.tokenColors),{bbPurple:"#501e70",bbLightGreen:"#92ddcb",bbGreen:"#26bb98",bbPastelGreen:"#d4f1ea",bbPink:"#d81272",bbBlue:"#009ed1",bbTeal:"#005e85",bbYellow:"#e4b50b"}),l=e(e({},r.colors),{primary:i.bbPurple,secondary:i.bbGreen,tertiary:i.bbTeal,textOnPrimary:i.white,textOnSecondary:i.bbPurple,textOnTertiary:i.white,warning:i.bbYellow,success:i.bbGreen,info:i.bbBlue,progressBar:i.bbLightGreen,progressBarSecondary:i.bbGreen,circularProgress:i.bbLightGreen,circularProgressSecondary:i.bbGreen,linkColor:i.bbPurple,linkColorHover:i.bbPink,linkColorSecondary:i.bbPurple,linkColorSecondaryHover:i.bbPink,backgroundLightColor:i.bbPastelGreen,collapseHeaderColor:i.bbPink,loaderColor1:i.bbPurple,loaderColor2:i.bbLightGreen,loaderColor3:i.bbPink,paginationText:i.bbPurple,paginationBackground:i.bbPurple,totaliserBubbleColor:i.bbPurple,totaliserBubbleTextColor:i.bbLightGreen,totaliserBubbleTotalColor:i.white,buttonPrimaryBackground:i.bbPurple,buttonPrimaryText:i.white,buttonPrimaryBorder:i.bbPurple,buttonPrimaryBackgroundHover:i.bbPink,buttonPrimaryTextHover:i.white,buttonPrimaryBorderHover:i.bbPink,buttonPrimaryDisabledBackground:i.grey_300,buttonPrimaryDisabledText:i.white,buttonPrimaryDisabledBorder:i.grey_300,buttonSecondaryBackground:i.white,buttonSecondaryText:i.bbPurple,buttonSecondaryBorder:i.bbPurple,buttonSecondaryBackgroundHover:i.white,buttonSecondaryTextHover:i.bbPink,buttonSecondaryBorderHover:i.bbPink,buttonSecondaryDisabledBackground:i.white,buttonSecondaryDisabledText:i.grey_300,buttonSecondaryDisabledBorder:i.grey_300,buttonTertiaryText:i.bbPurple,buttonTertiaryTextHover:i.bbPink,buttonTertiaryDisabledText:i.grey_300}),s=e({},r.spacing),u=e({},r.fontSizes),d=e(e({},r.typography),{customFonts:[{family:"juana-semibold",urlWoff:"".concat(t.assetPath,"fonts/juana-semibold-webfont.woff"),urlWoff2:"".concat(t.assetPath,"fonts/juana-semibold-webfont.woff2")}],fontFamilyHeadings:"juana-semibold,Arial,sans-serif"}),c={name:"bowelbabe",avatar:a,breakpoint:n,button:b,tokenColors:i,colors:l,spacing:s,fontSizes:u,siteConfig:t,typography:d,utilities:o};export{a as AVATAR,n as BREAKPOINT,b as BUTTON,l as COLORS,u as FONT_SIZES,t as SITE_CONFIG,s as SPACING,i as TOKEN_COLORS,d as TYPOGRAPHY,o as UTILITIES,c as default};
1
+ import{__assign as e}from"../../_virtual/_tslib.js";import r from"./cruk.js";var o=e({},r.utilities),t=e(e({},r.siteConfig),{logoSrc:"https://rcl.assets.cancerresearchuk.org/images/logos/bowelbabe-logo-160.png",footerCopyText:"The Bowelbabe Fund for Cancer Research UK, raises money to fund clinical trials, research and cancer information and awareness, as well as other initiatives to combat cancer and support those affected by cancer. The Bowelbabe Fund is a restricted fund within Cancer Research UK. Cancer Research UK is a registered charity in England and Wales (1089464), Scotland (SC041666), the Isle of Man (1103) and Jersey (247) and is registered with the Fundraising Regulator."}),a=e({},r.avatar),b=e(e({},r.button),{horizontalPadding:"1rem"}),n=e({},r.breakpoint),i=e(e({},r.tokenColors),{bbPurple:"#501e70",bbLightGreen:"#92ddcb",bbGreen:"#26bb98",bbPastelGreen:"#d4f1ea",bbPink:"#d81272",bbBlue:"#009ed1",bbTeal:"#005e85",bbYellow:"#e4b50b"}),l=e(e({},r.colors),{primary:i.bbPurple,secondary:i.bbGreen,tertiary:i.bbTeal,textOnPrimary:i.white,textOnSecondary:i.bbPurple,textOnTertiary:i.white,warning:i.bbYellow,success:i.bbGreen,info:i.bbBlue,progressBar:i.bbLightGreen,progressBarSecondary:i.bbGreen,circularProgress:i.bbLightGreen,circularProgressSecondary:i.bbGreen,linkColor:i.bbPurple,linkColorHover:i.bbPink,linkColorSecondary:i.bbPurple,linkColorSecondaryHover:i.bbPink,backgroundLightColor:i.bbPastelGreen,collapseHeaderColor:i.bbPink,loaderColor1:i.bbPurple,loaderColor2:i.bbLightGreen,loaderColor3:i.bbPink,paginationText:i.bbPurple,paginationBackground:i.bbPurple,totaliserBubbleColor:i.bbPurple,totaliserBubbleTextColor:i.bbLightGreen,totaliserBubbleTotalColor:i.white,buttonPrimaryBackground:i.bbPurple,buttonPrimaryText:i.white,buttonPrimaryBorder:i.bbPurple,buttonPrimaryBackgroundHover:i.bbPink,buttonPrimaryTextHover:i.white,buttonPrimaryBorderHover:i.bbPink,buttonPrimaryDisabledBackground:i.grey_300,buttonPrimaryDisabledText:i.white,buttonPrimaryDisabledBorder:i.grey_300,buttonSecondaryBackground:i.white,buttonSecondaryText:i.bbPurple,buttonSecondaryBorder:i.bbPurple,buttonSecondaryBackgroundHover:i.white,buttonSecondaryTextHover:i.bbPink,buttonSecondaryBorderHover:i.bbPink,buttonSecondaryDisabledBackground:i.white,buttonSecondaryDisabledText:i.grey_300,buttonSecondaryDisabledBorder:i.grey_300,buttonTertiaryText:i.bbPurple,buttonTertiaryTextHover:i.bbPink,buttonTertiaryDisabledText:i.grey_300}),s=e({},r.spacing),u=e({},r.fontSizes),d=e(e({},r.typography),{customFonts:[{family:"juana-semibold",urlWoff:"".concat(t.assetPath,"fonts/juana-semibold-webfont.woff"),urlWoff2:"".concat(t.assetPath,"fonts/juana-semibold-webfont.woff2")}],fontFamilyHeadings:"juana-semibold,Arial,sans-serif"}),c={name:"bowelbabe",avatar:a,breakpoint:n,button:b,tokenColors:i,colors:l,spacing:s,fontSizes:u,siteConfig:t,typography:d,utilities:o};export{a as AVATAR,n as BREAKPOINT,b as BUTTON,l as COLORS,u as FONT_SIZES,t as SITE_CONFIG,s as SPACING,i as TOKEN_COLORS,d as TYPOGRAPHY,o as UTILITIES,c as default};
2
2
  //# sourceMappingURL=bowelbabe.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as r}from"../../node_modules/tslib/tslib.es6.js";import e from"./cruk.js";var a=r(r({},e.utilities),{useBackgroundStyleLinks:!0}),o=r(r({},e.siteConfig),{logoSrc:"https://rcl.assets.cancerresearchuk.org/images/logos/su2c-160.png",footerCopyText:"Stand Up To Cancer and Stand Up To Cancer Brand Marks are registered trademarks of the Entertainment Industry Foundation. Cancer Research UK is a registered charity in England and Wales (1089464), Scotland(SC041666), the Isle of Man (1103) and Jersey (247). A company limited by guarantee. Registered company in England and Wales (4325234) and the Isle of Man (5713F). Registered address: 2 Redman Place, London, E20 1JQ. Donations will be made to Cancer Research UK in support of the Stand Up To Cancer campaign."}),t=r(r({},e.avatar),{path:"".concat(o.assetPath,"images/avatar/su2c/")}),n=r(r({},e.button),{borderRadius:"1.5rem",borderRadiusLarge:"2rem",textTransform:"uppercase"}),s=r({},e.breakpoint),c=r(r({},e.tokenColors),{su2cOrange5:"#FF8E00",su2cOrange3:"#FFB04D",su2cOrange2:"#FFDAAD",su2cOrange1:"#FFF6EB",su2cBlack:"#231F20",su2cGrey1:"#555759",su2cGrey2:"#A5A5A9",su2cRed:"#EF4135",su2cYellow:"#FFC325"}),u=r(r({},e.colors),{primary:c.su2cOrange5,secondary:c.su2cOrange5,tertiary:c.su2cBlack,textOnPrimary:c.su2cBlack,progressBar:c.su2cOrange5,progressBarSecondary:c.su2cRed,circularProgress:c.su2cOrange3,circularProgressSecondary:c.su2cRed,linkColor:c.su2cOrange5,linkColorHover:c.su2cRed,linkColorSecondary:c.su2cOrange5,linkColorSecondaryHover:c.su2cRed,backgroundLightColor:c.su2cOrange2,loaderColor1:c.su2cOrange5,loaderColor2:c.su2cRed,loaderColor3:c.su2cBlack,paginationText:c.su2cBlack,paginationBackground:c.su2cBlack,totaliserBubbleColor:c.su2cBlack,totaliserBubbleTextColor:c.white,totaliserBubbleTotalColor:c.white,collapseHeaderColor:c.su2cOrange5,buttonPrimaryBackground:c.su2cOrange5,buttonPrimaryText:c.su2cBlack,buttonPrimaryBorder:c.su2cOrange5,buttonPrimaryBackgroundHover:c.su2cOrange3,buttonPrimaryTextHover:c.su2cBlack,buttonPrimaryBorderHover:c.su2cOrange3,buttonPrimaryDisabledBackground:c.grey_300,buttonPrimaryDisabledText:c.white,buttonPrimaryDisabledBorder:c.grey_300,buttonSecondaryBackground:c.white,buttonSecondaryText:c.su2cOrange5,buttonSecondaryBorder:c.su2cOrange5,buttonSecondaryBackgroundHover:c.su2cOrange1,buttonSecondaryTextHover:c.su2cOrange5,buttonSecondaryBorderHover:c.su2cOrange5,buttonSecondaryDisabledBackground:c.white,buttonSecondaryDisabledText:c.grey_300,buttonSecondaryDisabledBorder:c.grey_300,buttonTertiaryText:c.su2cOrange5,buttonTertiaryTextHover:c.su2cOrange5,buttonTertiaryDisabledText:c.grey_300}),i=r({},e.spacing),d=r({},e.fontSizes),l=r(r({},e.typography),{customFonts:[{family:"itc_avant_garde_pro_mdbold",urlWoff:"".concat(o.assetPath,"fonts/itc_-_itcavantgardepro-bold-webfont.woff")}],fontFamilyHeadings:"itc_avant_garde_pro_mdbold,Arial,sans-serif",linkTextDecoration:"none",headerLineHeight:"1.5em",headerTextTransform:"uppercase"}),g={name:"su2c",avatar:t,breakpoint:s,button:n,tokenColors:c,colors:u,spacing:i,fontSizes:d,siteConfig:o,typography:l,utilities:a};export{t as AVATAR,s as BREAKPOINT,n as BUTTON,u as COLORS,d as FONT_SIZES,o as SITE_CONFIG,i as SPACING,c as TOKEN_COLORS,l as TYPOGRAPHY,a as UTILITIES,g as default};
1
+ import{__assign as r}from"../../_virtual/_tslib.js";import e from"./cruk.js";var a=r(r({},e.utilities),{useBackgroundStyleLinks:!0}),o=r(r({},e.siteConfig),{logoSrc:"https://rcl.assets.cancerresearchuk.org/images/logos/su2c-160.png",footerCopyText:"Stand Up To Cancer and Stand Up To Cancer Brand Marks are registered trademarks of the Entertainment Industry Foundation. Cancer Research UK is a registered charity in England and Wales (1089464), Scotland(SC041666), the Isle of Man (1103) and Jersey (247). A company limited by guarantee. Registered company in England and Wales (4325234) and the Isle of Man (5713F). Registered address: 2 Redman Place, London, E20 1JQ. Donations will be made to Cancer Research UK in support of the Stand Up To Cancer campaign."}),t=r(r({},e.avatar),{path:"".concat(o.assetPath,"images/avatar/su2c/")}),n=r(r({},e.button),{borderRadius:"1.5rem",borderRadiusLarge:"2rem",textTransform:"uppercase"}),s=r({},e.breakpoint),c=r(r({},e.tokenColors),{su2cOrange5:"#FF8E00",su2cOrange3:"#FFB04D",su2cOrange2:"#FFDAAD",su2cOrange1:"#FFF6EB",su2cBlack:"#231F20",su2cGrey1:"#555759",su2cGrey2:"#A5A5A9",su2cRed:"#EF4135",su2cYellow:"#FFC325"}),u=r(r({},e.colors),{primary:c.su2cOrange5,secondary:c.su2cOrange5,tertiary:c.su2cBlack,textOnPrimary:c.su2cBlack,progressBar:c.su2cOrange5,progressBarSecondary:c.su2cRed,circularProgress:c.su2cOrange3,circularProgressSecondary:c.su2cRed,linkColor:c.su2cOrange5,linkColorHover:c.su2cRed,linkColorSecondary:c.su2cOrange5,linkColorSecondaryHover:c.su2cRed,backgroundLightColor:c.su2cOrange2,loaderColor1:c.su2cOrange5,loaderColor2:c.su2cRed,loaderColor3:c.su2cBlack,paginationText:c.su2cBlack,paginationBackground:c.su2cBlack,totaliserBubbleColor:c.su2cBlack,totaliserBubbleTextColor:c.white,totaliserBubbleTotalColor:c.white,collapseHeaderColor:c.su2cOrange5,buttonPrimaryBackground:c.su2cOrange5,buttonPrimaryText:c.su2cBlack,buttonPrimaryBorder:c.su2cOrange5,buttonPrimaryBackgroundHover:c.su2cOrange3,buttonPrimaryTextHover:c.su2cBlack,buttonPrimaryBorderHover:c.su2cOrange3,buttonPrimaryDisabledBackground:c.grey_300,buttonPrimaryDisabledText:c.white,buttonPrimaryDisabledBorder:c.grey_300,buttonSecondaryBackground:c.white,buttonSecondaryText:c.su2cOrange5,buttonSecondaryBorder:c.su2cOrange5,buttonSecondaryBackgroundHover:c.su2cOrange1,buttonSecondaryTextHover:c.su2cOrange5,buttonSecondaryBorderHover:c.su2cOrange5,buttonSecondaryDisabledBackground:c.white,buttonSecondaryDisabledText:c.grey_300,buttonSecondaryDisabledBorder:c.grey_300,buttonTertiaryText:c.su2cOrange5,buttonTertiaryTextHover:c.su2cOrange5,buttonTertiaryDisabledText:c.grey_300}),i=r({},e.spacing),d=r({},e.fontSizes),l=r(r({},e.typography),{customFonts:[{family:"itc_avant_garde_pro_mdbold",urlWoff:"".concat(o.assetPath,"fonts/itc_-_itcavantgardepro-bold-webfont.woff")}],fontFamilyHeadings:"itc_avant_garde_pro_mdbold,Arial,sans-serif",linkTextDecoration:"none",headerLineHeight:"1.5em",headerTextTransform:"uppercase"}),g={name:"su2c",avatar:t,breakpoint:s,button:n,tokenColors:c,colors:u,spacing:i,fontSizes:d,siteConfig:o,typography:l,utilities:a};export{t as AVATAR,s as BREAKPOINT,n as BUTTON,u as COLORS,d as FONT_SIZES,o as SITE_CONFIG,i as SPACING,c as TOKEN_COLORS,l as TYPOGRAPHY,a as UTILITIES,g as default};
2
2
  //# sourceMappingURL=su2c.js.map
@@ -1,6 +1,6 @@
1
- import { ReactNode } from "@mdx-js/react/lib";
2
- type MdxProviderProps = {
3
- children?: ReactNode;
4
- };
5
- declare const MdxProvider: ({ children }: MdxProviderProps) => JSX.Element;
6
- export default MdxProvider;
1
+ import { ReactNode } from "@mdx-js/react/lib";
2
+ type MdxProviderProps = {
3
+ children?: ReactNode;
4
+ };
5
+ declare const MdxProvider: ({ children }: MdxProviderProps) => JSX.Element;
6
+ export default MdxProvider;
@@ -1,3 +1,3 @@
1
- import { EffectCallback, DependencyList } from "react";
2
- export declare function useEffectBrowser(action: EffectCallback, deps: DependencyList): void | null;
3
- export default useEffectBrowser;
1
+ import { EffectCallback, DependencyList } from "react";
2
+ export declare function useEffectBrowser(action: EffectCallback, deps: DependencyList): void | null;
3
+ export default useEffectBrowser;
@@ -1,6 +1,6 @@
1
- import { DependencyList } from "react";
2
- export declare const useKey: (callback: (event: KeyboardEvent) => void, options: {
3
- detectKeys?: string[] | undefined;
4
- keyevent?: "keydown" | "keyup" | "keypress" | undefined;
5
- }, dependencies?: DependencyList) => void;
6
- export default useKey;
1
+ import { DependencyList } from "react";
2
+ export declare const useKey: (callback: (event: KeyboardEvent) => void, options: {
3
+ detectKeys?: string[] | undefined;
4
+ keyevent?: "keydown" | "keyup" | "keypress" | undefined;
5
+ }, dependencies?: DependencyList) => void;
6
+ export default useKey;
@@ -1,4 +1,4 @@
1
- import { EffectCallback, DependencyList } from "react";
2
- declare const useLayoutEffectBrowser: (action: EffectCallback, deps: DependencyList) => void | null;
3
- export default useLayoutEffectBrowser;
4
- export { useLayoutEffectBrowser };
1
+ import { EffectCallback, DependencyList } from "react";
2
+ declare const useLayoutEffectBrowser: (action: EffectCallback, deps: DependencyList) => void | null;
3
+ export default useLayoutEffectBrowser;
4
+ export { useLayoutEffectBrowser };
@@ -1,13 +1,13 @@
1
- import { DependencyList, RefObject, MutableRefObject } from "react";
2
- declare const useScrollPosition: (effect: ({ currPos, }: {
3
- prevPos: {
4
- x: number;
5
- y: number;
6
- };
7
- currPos: {
8
- x: number;
9
- y: number;
10
- };
11
- }) => void, deps: DependencyList, element: RefObject<HTMLElement> | MutableRefObject<undefined> | null, useWindow: boolean, wait: number) => void;
12
- export default useScrollPosition;
13
- export { useScrollPosition };
1
+ import { DependencyList, RefObject, MutableRefObject } from "react";
2
+ declare const useScrollPosition: (effect: ({ currPos, }: {
3
+ prevPos: {
4
+ x: number;
5
+ y: number;
6
+ };
7
+ currPos: {
8
+ x: number;
9
+ y: number;
10
+ };
11
+ }) => void, deps: DependencyList, element: RefObject<HTMLElement> | MutableRefObject<undefined> | null, useWindow: boolean, wait: number) => void;
12
+ export default useScrollPosition;
13
+ export { useScrollPosition };
@@ -1,13 +1,13 @@
1
- import { UtilitiesType, SiteConfigType, AvatarType, ButtonType, BreakPointType, TokenColorsType, ColorsType, SpacingType, FontSizesType, TypographyType, ThemeType } from "../types";
2
- export declare const UTILITIES: UtilitiesType;
3
- export declare const SITE_CONFIG: SiteConfigType;
4
- export declare const AVATAR: AvatarType;
5
- export declare const BUTTON: ButtonType;
6
- export declare const BREAKPOINT: BreakPointType;
7
- export declare const TOKEN_COLORS: TokenColorsType;
8
- export declare const COLORS: ColorsType;
9
- export declare const SPACING: SpacingType;
10
- export declare const FONT_SIZES: FontSizesType;
11
- export declare const TYPOGRAPHY: TypographyType;
12
- declare const theme: ThemeType;
13
- export default theme;
1
+ import { UtilitiesType, SiteConfigType, AvatarType, ButtonType, BreakPointType, TokenColorsType, ColorsType, SpacingType, FontSizesType, TypographyType, ThemeType } from "../types";
2
+ export declare const UTILITIES: UtilitiesType;
3
+ export declare const SITE_CONFIG: SiteConfigType;
4
+ export declare const AVATAR: AvatarType;
5
+ export declare const BUTTON: ButtonType;
6
+ export declare const BREAKPOINT: BreakPointType;
7
+ export declare const TOKEN_COLORS: TokenColorsType;
8
+ export declare const COLORS: ColorsType;
9
+ export declare const SPACING: SpacingType;
10
+ export declare const FONT_SIZES: FontSizesType;
11
+ export declare const TYPOGRAPHY: TypographyType;
12
+ declare const theme: ThemeType;
13
+ export default theme;
@@ -1,13 +1,13 @@
1
- import { UtilitiesType, SiteConfigType, AvatarType, ButtonType, BreakPointType, TokenColorsType, ColorsType, SpacingType, FontSizesType, TypographyType, ThemeType } from "../types";
2
- export declare const UTILITIES: UtilitiesType;
3
- export declare const SITE_CONFIG: SiteConfigType;
4
- export declare const AVATAR: AvatarType;
5
- export declare const BUTTON: ButtonType;
6
- export declare const BREAKPOINT: BreakPointType;
7
- export declare const TOKEN_COLORS: TokenColorsType;
8
- export declare const COLORS: ColorsType;
9
- export declare const SPACING: SpacingType;
10
- export declare const FONT_SIZES: FontSizesType;
11
- export declare const TYPOGRAPHY: TypographyType;
12
- declare const theme: ThemeType;
13
- export default theme;
1
+ import { UtilitiesType, SiteConfigType, AvatarType, ButtonType, BreakPointType, TokenColorsType, ColorsType, SpacingType, FontSizesType, TypographyType, ThemeType } from "../types";
2
+ export declare const UTILITIES: UtilitiesType;
3
+ export declare const SITE_CONFIG: SiteConfigType;
4
+ export declare const AVATAR: AvatarType;
5
+ export declare const BUTTON: ButtonType;
6
+ export declare const BREAKPOINT: BreakPointType;
7
+ export declare const TOKEN_COLORS: TokenColorsType;
8
+ export declare const COLORS: ColorsType;
9
+ export declare const SPACING: SpacingType;
10
+ export declare const FONT_SIZES: FontSizesType;
11
+ export declare const TYPOGRAPHY: TypographyType;
12
+ declare const theme: ThemeType;
13
+ export default theme;
@@ -1,13 +1,13 @@
1
- import { UtilitiesType, SiteConfigType, AvatarType, ButtonType, BreakPointType, TokenColorsType, ColorsType, SpacingType, FontSizesType, TypographyType, ThemeType } from "../types";
2
- export declare const UTILITIES: UtilitiesType;
3
- export declare const SITE_CONFIG: SiteConfigType;
4
- export declare const AVATAR: AvatarType;
5
- export declare const BUTTON: ButtonType;
6
- export declare const BREAKPOINT: BreakPointType;
7
- export declare const TOKEN_COLORS: TokenColorsType;
8
- export declare const COLORS: ColorsType;
9
- export declare const SPACING: SpacingType;
10
- export declare const FONT_SIZES: FontSizesType;
11
- export declare const TYPOGRAPHY: TypographyType;
12
- declare const theme: ThemeType;
13
- export default theme;
1
+ import { UtilitiesType, SiteConfigType, AvatarType, ButtonType, BreakPointType, TokenColorsType, ColorsType, SpacingType, FontSizesType, TypographyType, ThemeType } from "../types";
2
+ export declare const UTILITIES: UtilitiesType;
3
+ export declare const SITE_CONFIG: SiteConfigType;
4
+ export declare const AVATAR: AvatarType;
5
+ export declare const BUTTON: ButtonType;
6
+ export declare const BREAKPOINT: BreakPointType;
7
+ export declare const TOKEN_COLORS: TokenColorsType;
8
+ export declare const COLORS: ColorsType;
9
+ export declare const SPACING: SpacingType;
10
+ export declare const FONT_SIZES: FontSizesType;
11
+ export declare const TYPOGRAPHY: TypographyType;
12
+ declare const theme: ThemeType;
13
+ export default theme;
package/lib/types.d.ts CHANGED
@@ -1,232 +1,232 @@
1
- export type FontSizeType = "xs" | "s" | "m" | "l" | "xl" | "xxl" | "xxxl" | "xxxxl";
2
- export type FontSizesType = {
3
- [key in FontSizeType]: string;
4
- };
5
- export type UtilitiesType = {
6
- contentMaxWidth: string;
7
- useDefaultFocusRect: boolean;
8
- useDefaultFromControls: boolean;
9
- useBackgroundStyleLinks: boolean;
10
- inputBorderWidth: string;
11
- };
12
- export type SiteConfigType = {
13
- assetPath: string;
14
- logoUrl: string;
15
- logoAlt: string;
16
- logoSrc: string;
17
- footerCopyText: string;
18
- footerLogoSrc: string;
19
- footerLogoAlt: string;
20
- };
21
- export type AvatarType = {
22
- s: string;
23
- m: string;
24
- l: string;
25
- xl: string;
26
- path: string;
27
- };
28
- export type ButtonType = {
29
- borderRadius: string;
30
- borderRadiusLarge: string;
31
- buttonBorderThickness: string;
32
- textDecoration: string;
33
- textTransform: string;
34
- horizontalPadding: string;
35
- };
36
- export type ButtonAppearanceType = "primary" | "secondary" | "tertiary";
37
- export type PopOverPositionType = "top" | "topLeft" | "left" | "right" | "bottom" | "bottomLeft";
38
- export type BreakPointType = {
39
- mobile: string;
40
- tablet: string;
41
- desktop: string;
42
- desktopLarge: string;
43
- };
44
- export type TokenColorsType = {
45
- [key: string]: string;
46
- };
47
- export type ColorsType = {
48
- primary: string;
49
- secondary: string;
50
- tertiary: string;
51
- textOnPrimary: string;
52
- textOnSecondary: string;
53
- textOnTertiary: string;
54
- disabled: string;
55
- danger: string;
56
- warning: string;
57
- success: string;
58
- info: string;
59
- textError: string;
60
- linkColor: string;
61
- linkColorHover: string;
62
- textDark: string;
63
- textLight: string;
64
- linkColorSecondary: string;
65
- linkColorSecondaryHover: string;
66
- progressBar: string;
67
- progressBarSecondary: string;
68
- progressBarBackground: string;
69
- circularProgress: string;
70
- circularProgressSecondary: string;
71
- circularProgressBackground: string;
72
- buttonPrimaryBackground: string;
73
- buttonPrimaryText: string;
74
- buttonPrimaryBorder: string;
75
- buttonPrimaryBackgroundHover: string;
76
- buttonPrimaryTextHover: string;
77
- buttonPrimaryBorderHover: string;
78
- buttonPrimaryDisabledBackground: string;
79
- buttonPrimaryDisabledText: string;
80
- buttonPrimaryDisabledBorder: string;
81
- buttonSecondaryBackground: string;
82
- buttonSecondaryText: string;
83
- buttonSecondaryBorder: string;
84
- buttonSecondaryBackgroundHover: string;
85
- buttonSecondaryTextHover: string;
86
- buttonSecondaryBorderHover: string;
87
- buttonSecondaryDisabledBackground: string;
88
- buttonSecondaryDisabledText: string;
89
- buttonSecondaryDisabledBorder: string;
90
- buttonTertiaryText: string;
91
- buttonTertiaryTextHover: string;
92
- buttonTertiaryDisabledText: string;
93
- collapseHeaderColor: string;
94
- selectionBorder: string;
95
- inputBorder: string;
96
- headerBackground: string;
97
- backgroundLight: string;
98
- backgroundLightColor: string;
99
- backgroundMid: string;
100
- loaderColor1: string;
101
- loaderColor2: string;
102
- loaderColor3: string;
103
- paginationText: string;
104
- paginationBackground: string;
105
- paginationActive: string;
106
- footerBackground: string;
107
- headerBorder: string;
108
- stepBorder: string;
109
- stepBackground: string;
110
- popoverBackground: string;
111
- textInputExtraInfo: string;
112
- totaliserBubbleColor: string;
113
- totaliserBubbleTextColor: string;
114
- totaliserBubbleTotalColor: string;
115
- textInputBorder: string;
116
- selectBackground: string;
117
- modalBackdrop: string;
118
- userBlockExtraText: string;
119
- };
120
- export type ColorKeyType = keyof ColorsType;
121
- export type SpaceType = "auto" | "xxs" | "xs" | "s" | "m" | "l" | "xl" | "xxl" | "none";
122
- export type SpacingType = {
123
- auto: string;
124
- xxs: string;
125
- xs: string;
126
- s: string;
127
- m: string;
128
- l: string;
129
- xl: string;
130
- xxl: string;
131
- none: string;
132
- };
133
- export type CustomFontType = {
134
- family: string;
135
- urlWoff?: string;
136
- urlWoff2?: string;
137
- };
138
- export type TypographyType = {
139
- customFonts: [CustomFontType];
140
- fontFamilyBase: string;
141
- fontFamilyHeadings: string;
142
- fontSizeBase: string;
143
- fontWeightHeavy: string;
144
- fontWeightNormal: string;
145
- fontWeightMedium: string;
146
- fontWeightLight: string;
147
- fontWeightVLight: string;
148
- linkTextDecoration: string;
149
- lineHeight: string;
150
- headerLineHeight: string;
151
- headerTextTransform: string;
152
- };
153
- export type ThemeType = {
154
- name: string;
155
- avatar: AvatarType;
156
- breakpoint: BreakPointType;
157
- button: ButtonType;
158
- tokenColors: TokenColorsType;
159
- colors: ColorsType;
160
- spacing: SpacingType;
161
- fontSizes: FontSizesType;
162
- siteConfig: SiteConfigType;
163
- typography: TypographyType;
164
- utilities: UtilitiesType;
165
- };
166
- export type AddressDataType = {
167
- AdminAreaCode: string;
168
- AdminAreaName: string;
169
- Barcode: string;
170
- Block: string;
171
- BuildingName: string;
172
- BuildingNumber: string;
173
- City: string;
174
- Company: string;
175
- CountryIso2: string;
176
- CountryIso3: string;
177
- CountryIsoNumber: string;
178
- CountryName: string;
179
- DataLevel: string;
180
- Department: string;
181
- DomesticId: string;
182
- Field1: string;
183
- Field10: string;
184
- Field11: string;
185
- Field12: string;
186
- Field13: string;
187
- Field14: string;
188
- Field15: string;
189
- Field16: string;
190
- Field17: string;
191
- Field18: string;
192
- Field19: string;
193
- Field2: string;
194
- Field20: string;
195
- Field3: string;
196
- Field4: string;
197
- Field5: string;
198
- Field6: string;
199
- Field7: string;
200
- Field8: string;
201
- Field9: string;
202
- Id: string;
203
- Label: string;
204
- Language: string;
205
- LanguageAlternatives: string;
206
- Line1: string;
207
- Line2: string;
208
- Line3: string;
209
- Line4: string;
210
- Line5: string;
211
- Neighbourhood: string;
212
- POBoxNumber: string;
213
- PostalCode: string;
214
- Province: string;
215
- ProvinceCode: string;
216
- ProvinceName: string;
217
- SecondaryStreet: string;
218
- SortingNumber1: string;
219
- SortingNumber2: string;
220
- Street: string;
221
- SubBuilding: string;
222
- Type: string;
223
- };
224
- export type AddressOptionsType = {
225
- Description: string;
226
- Type: string;
227
- Id: string;
228
- Text: string;
229
- Error?: Error;
230
- };
231
- export type WordBreakType = "normal" | "break-all" | "keep-all" | "break-word" | "inherit" | "initial" | "unset";
232
- export type OverflowWrapType = "normal" | "anywhere" | "revert" | "revert-layer" | "break-word" | "inherit" | "initial" | "unset";
1
+ export type FontSizeType = "xs" | "s" | "m" | "l" | "xl" | "xxl" | "xxxl" | "xxxxl";
2
+ export type FontSizesType = {
3
+ [key in FontSizeType]: string;
4
+ };
5
+ export type UtilitiesType = {
6
+ contentMaxWidth: string;
7
+ useDefaultFocusRect: boolean;
8
+ useDefaultFromControls: boolean;
9
+ useBackgroundStyleLinks: boolean;
10
+ inputBorderWidth: string;
11
+ };
12
+ export type SiteConfigType = {
13
+ assetPath: string;
14
+ logoUrl: string;
15
+ logoAlt: string;
16
+ logoSrc: string;
17
+ footerCopyText: string;
18
+ footerLogoSrc: string;
19
+ footerLogoAlt: string;
20
+ };
21
+ export type AvatarType = {
22
+ s: string;
23
+ m: string;
24
+ l: string;
25
+ xl: string;
26
+ path: string;
27
+ };
28
+ export type ButtonType = {
29
+ borderRadius: string;
30
+ borderRadiusLarge: string;
31
+ buttonBorderThickness: string;
32
+ textDecoration: string;
33
+ textTransform: string;
34
+ horizontalPadding: string;
35
+ };
36
+ export type ButtonAppearanceType = "primary" | "secondary" | "tertiary";
37
+ export type PopOverPositionType = "top" | "topLeft" | "left" | "right" | "bottom" | "bottomLeft";
38
+ export type BreakPointType = {
39
+ mobile: string;
40
+ tablet: string;
41
+ desktop: string;
42
+ desktopLarge: string;
43
+ };
44
+ export type TokenColorsType = {
45
+ [key: string]: string;
46
+ };
47
+ export type ColorsType = {
48
+ primary: string;
49
+ secondary: string;
50
+ tertiary: string;
51
+ textOnPrimary: string;
52
+ textOnSecondary: string;
53
+ textOnTertiary: string;
54
+ disabled: string;
55
+ danger: string;
56
+ warning: string;
57
+ success: string;
58
+ info: string;
59
+ textError: string;
60
+ linkColor: string;
61
+ linkColorHover: string;
62
+ textDark: string;
63
+ textLight: string;
64
+ linkColorSecondary: string;
65
+ linkColorSecondaryHover: string;
66
+ progressBar: string;
67
+ progressBarSecondary: string;
68
+ progressBarBackground: string;
69
+ circularProgress: string;
70
+ circularProgressSecondary: string;
71
+ circularProgressBackground: string;
72
+ buttonPrimaryBackground: string;
73
+ buttonPrimaryText: string;
74
+ buttonPrimaryBorder: string;
75
+ buttonPrimaryBackgroundHover: string;
76
+ buttonPrimaryTextHover: string;
77
+ buttonPrimaryBorderHover: string;
78
+ buttonPrimaryDisabledBackground: string;
79
+ buttonPrimaryDisabledText: string;
80
+ buttonPrimaryDisabledBorder: string;
81
+ buttonSecondaryBackground: string;
82
+ buttonSecondaryText: string;
83
+ buttonSecondaryBorder: string;
84
+ buttonSecondaryBackgroundHover: string;
85
+ buttonSecondaryTextHover: string;
86
+ buttonSecondaryBorderHover: string;
87
+ buttonSecondaryDisabledBackground: string;
88
+ buttonSecondaryDisabledText: string;
89
+ buttonSecondaryDisabledBorder: string;
90
+ buttonTertiaryText: string;
91
+ buttonTertiaryTextHover: string;
92
+ buttonTertiaryDisabledText: string;
93
+ collapseHeaderColor: string;
94
+ selectionBorder: string;
95
+ inputBorder: string;
96
+ headerBackground: string;
97
+ backgroundLight: string;
98
+ backgroundLightColor: string;
99
+ backgroundMid: string;
100
+ loaderColor1: string;
101
+ loaderColor2: string;
102
+ loaderColor3: string;
103
+ paginationText: string;
104
+ paginationBackground: string;
105
+ paginationActive: string;
106
+ footerBackground: string;
107
+ headerBorder: string;
108
+ stepBorder: string;
109
+ stepBackground: string;
110
+ popoverBackground: string;
111
+ textInputExtraInfo: string;
112
+ totaliserBubbleColor: string;
113
+ totaliserBubbleTextColor: string;
114
+ totaliserBubbleTotalColor: string;
115
+ textInputBorder: string;
116
+ selectBackground: string;
117
+ modalBackdrop: string;
118
+ userBlockExtraText: string;
119
+ };
120
+ export type ColorKeyType = keyof ColorsType;
121
+ export type SpaceType = "auto" | "xxs" | "xs" | "s" | "m" | "l" | "xl" | "xxl" | "none";
122
+ export type SpacingType = {
123
+ auto: string;
124
+ xxs: string;
125
+ xs: string;
126
+ s: string;
127
+ m: string;
128
+ l: string;
129
+ xl: string;
130
+ xxl: string;
131
+ none: string;
132
+ };
133
+ export type CustomFontType = {
134
+ family: string;
135
+ urlWoff?: string;
136
+ urlWoff2?: string;
137
+ };
138
+ export type TypographyType = {
139
+ customFonts: [CustomFontType];
140
+ fontFamilyBase: string;
141
+ fontFamilyHeadings: string;
142
+ fontSizeBase: string;
143
+ fontWeightHeavy: string;
144
+ fontWeightNormal: string;
145
+ fontWeightMedium: string;
146
+ fontWeightLight: string;
147
+ fontWeightVLight: string;
148
+ linkTextDecoration: string;
149
+ lineHeight: string;
150
+ headerLineHeight: string;
151
+ headerTextTransform: string;
152
+ };
153
+ export type ThemeType = {
154
+ name: string;
155
+ avatar: AvatarType;
156
+ breakpoint: BreakPointType;
157
+ button: ButtonType;
158
+ tokenColors: TokenColorsType;
159
+ colors: ColorsType;
160
+ spacing: SpacingType;
161
+ fontSizes: FontSizesType;
162
+ siteConfig: SiteConfigType;
163
+ typography: TypographyType;
164
+ utilities: UtilitiesType;
165
+ };
166
+ export type AddressDataType = {
167
+ AdminAreaCode: string;
168
+ AdminAreaName: string;
169
+ Barcode: string;
170
+ Block: string;
171
+ BuildingName: string;
172
+ BuildingNumber: string;
173
+ City: string;
174
+ Company: string;
175
+ CountryIso2: string;
176
+ CountryIso3: string;
177
+ CountryIsoNumber: string;
178
+ CountryName: string;
179
+ DataLevel: string;
180
+ Department: string;
181
+ DomesticId: string;
182
+ Field1: string;
183
+ Field10: string;
184
+ Field11: string;
185
+ Field12: string;
186
+ Field13: string;
187
+ Field14: string;
188
+ Field15: string;
189
+ Field16: string;
190
+ Field17: string;
191
+ Field18: string;
192
+ Field19: string;
193
+ Field2: string;
194
+ Field20: string;
195
+ Field3: string;
196
+ Field4: string;
197
+ Field5: string;
198
+ Field6: string;
199
+ Field7: string;
200
+ Field8: string;
201
+ Field9: string;
202
+ Id: string;
203
+ Label: string;
204
+ Language: string;
205
+ LanguageAlternatives: string;
206
+ Line1: string;
207
+ Line2: string;
208
+ Line3: string;
209
+ Line4: string;
210
+ Line5: string;
211
+ Neighbourhood: string;
212
+ POBoxNumber: string;
213
+ PostalCode: string;
214
+ Province: string;
215
+ ProvinceCode: string;
216
+ ProvinceName: string;
217
+ SecondaryStreet: string;
218
+ SortingNumber1: string;
219
+ SortingNumber2: string;
220
+ Street: string;
221
+ SubBuilding: string;
222
+ Type: string;
223
+ };
224
+ export type AddressOptionsType = {
225
+ Description: string;
226
+ Type: string;
227
+ Id: string;
228
+ Text: string;
229
+ Error?: Error;
230
+ };
231
+ export type WordBreakType = "normal" | "break-all" | "keep-all" | "break-word" | "inherit" | "initial" | "unset";
232
+ export type OverflowWrapType = "normal" | "anywhere" | "revert" | "revert-layer" | "break-word" | "inherit" | "initial" | "unset";