@cruk/cruk-react-components 6.1.1 → 6.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/lib/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -1
  2. package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -1
  3. package/lib/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -1
  4. package/lib/node_modules/@babel/runtime/helpers/esm/toPrimitive.js.map +1 -1
  5. package/lib/node_modules/@babel/runtime/helpers/esm/typeof.js.map +1 -1
  6. package/lib/node_modules/@fortawesome/free-solid-svg-icons/index.js +3 -3
  7. package/lib/node_modules/@fortawesome/free-solid-svg-icons/index.js.map +1 -1
  8. package/lib/node_modules/focus-lock/dist/es2015/focusInside.js.map +1 -1
  9. package/lib/node_modules/focus-lock/dist/es2015/focusIsHidden.js.map +1 -1
  10. package/lib/node_modules/focus-lock/dist/es2015/focusSolver.js.map +1 -1
  11. package/lib/node_modules/focus-lock/dist/es2015/focusables.js.map +1 -1
  12. package/lib/node_modules/focus-lock/dist/es2015/moveFocusInside.js.map +1 -1
  13. package/lib/node_modules/focus-lock/dist/es2015/return-focus.js.map +1 -1
  14. package/lib/node_modules/focus-lock/dist/es2015/sibling.js.map +1 -1
  15. package/lib/node_modules/focus-lock/dist/es2015/solver.js.map +1 -1
  16. package/lib/node_modules/focus-lock/dist/es2015/utils/DOMutils.js.map +1 -1
  17. package/lib/node_modules/focus-lock/dist/es2015/utils/all-affected.js.map +1 -1
  18. package/lib/node_modules/focus-lock/dist/es2015/utils/array.js.map +1 -1
  19. package/lib/node_modules/focus-lock/dist/es2015/utils/auto-focus.js.map +1 -1
  20. package/lib/node_modules/focus-lock/dist/es2015/utils/correctFocus.js.map +1 -1
  21. package/lib/node_modules/focus-lock/dist/es2015/utils/getActiveElement.js.map +1 -1
  22. package/lib/node_modules/focus-lock/dist/es2015/utils/is.js.map +1 -1
  23. package/lib/node_modules/focus-lock/dist/es2015/utils/parenting.js.map +1 -1
  24. package/lib/node_modules/focus-lock/dist/es2015/utils/safe.js.map +1 -1
  25. package/lib/node_modules/focus-lock/dist/es2015/utils/tabOrder.js.map +1 -1
  26. package/lib/node_modules/focus-lock/dist/es2015/utils/tabUtils.js.map +1 -1
  27. package/lib/node_modules/react-clientside-effect/lib/index.es.js.map +1 -1
  28. package/lib/node_modules/react-focus-lock/dist/es2015/Lock.js.map +1 -1
  29. package/lib/node_modules/react-focus-lock/dist/es2015/Trap.js.map +1 -1
  30. package/lib/node_modules/react-intersection-observer/dist/index.js.map +1 -1
  31. package/lib/node_modules/tslib/tslib.es6.js.map +1 -1
  32. package/lib/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -1
  33. package/lib/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -1
  34. package/lib/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -1
  35. package/lib/src/components/AddressLookup/index.js.map +1 -1
  36. package/lib/src/components/Box/styles.js.map +1 -1
  37. package/lib/src/components/Button/index.js.map +1 -1
  38. package/lib/src/components/Carousel/Dots.js.map +1 -1
  39. package/lib/src/components/Carousel/index.js.map +1 -1
  40. package/lib/src/components/Carousel/styles.js +1 -1
  41. package/lib/src/components/Carousel/styles.js.map +1 -1
  42. package/lib/src/components/Checkbox/styles.js +1 -1
  43. package/lib/src/components/Checkbox/styles.js.map +1 -1
  44. package/lib/src/components/Collapse/index.js.map +1 -1
  45. package/lib/src/components/Collapse/styles.d.ts +1 -1
  46. package/lib/src/components/DateField/styles.d.ts +3 -3
  47. package/lib/src/components/ErrorText/styles.d.ts +3 -3
  48. package/lib/src/components/Flex.js.map +1 -1
  49. package/lib/src/components/Fontface.js.map +1 -1
  50. package/lib/src/components/GlobalStyle.js.map +1 -1
  51. package/lib/src/components/Header/index.js.map +1 -1
  52. package/lib/src/components/Heading/styles.js.map +1 -1
  53. package/lib/src/components/IconFa/index.js +1 -1
  54. package/lib/src/components/IconFa/index.js.map +1 -1
  55. package/lib/src/components/IconFa/styles.js +1 -1
  56. package/lib/src/components/IconFa/styles.js.map +1 -1
  57. package/lib/src/components/Link/styles.d.ts +3 -3
  58. package/lib/src/components/Modal/index.js.map +1 -1
  59. package/lib/src/components/Modal/styles.d.ts +1 -1
  60. package/lib/src/components/Pagination/index.js.map +1 -1
  61. package/lib/src/components/Pagination/styles.js.map +1 -1
  62. package/lib/src/components/PopOver/index.js.map +1 -1
  63. package/lib/src/components/ProgressBar/styles.js.map +1 -1
  64. package/lib/src/components/RadioConsent/index.js.map +1 -1
  65. package/lib/src/components/Text/styles.js.map +1 -1
  66. package/lib/src/components/Totaliser/styles.js +1 -1
  67. package/lib/src/components/Totaliser/styles.js.map +1 -1
  68. package/lib/src/hooks/useScrollPosition.js.map +1 -1
  69. package/lib/src/themes/rfl.js +1 -1
  70. package/lib/src/themes/rfl.js.map +1 -1
  71. package/lib/src/utils/Helper.js.map +1 -1
  72. package/lib/src/utils/debounce.js.map +1 -1
  73. package/package.json +15 -14
  74. package/lib/playwright/index.d.ts +0 -1
  75. package/lib/playwright/utils.d.ts +0 -19
  76. package/lib/src/components/AddressLookup/AddressLookup.spec.d.ts +0 -1
  77. package/lib/src/components/AddressLookup/AddressLookup.stories.d.ts +0 -24
  78. package/lib/src/components/Avatar/Avatar.spec.d.ts +0 -1
  79. package/lib/src/components/Avatar/Avatar.stories.d.ts +0 -20
  80. package/lib/src/components/Badge/Badge.spec.d.ts +0 -1
  81. package/lib/src/components/Badge/Badge.stories.d.ts +0 -17
  82. package/lib/src/components/Box/Box.spec.d.ts +0 -1
  83. package/lib/src/components/Box/Box.stories.d.ts +0 -14
  84. package/lib/src/components/Button/Button.spec.d.ts +0 -1
  85. package/lib/src/components/Button/Button.stories.d.ts +0 -23
  86. package/lib/src/components/Carousel/Carousel.spec.d.ts +0 -1
  87. package/lib/src/components/Carousel/Carousel.stories.d.ts +0 -14
  88. package/lib/src/components/Checkbox/Checkbox.spec.d.ts +0 -1
  89. package/lib/src/components/Checkbox/Checkbox.stories.d.ts +0 -19
  90. package/lib/src/components/Collapse/Collapse.spec.d.ts +0 -1
  91. package/lib/src/components/Collapse/Collapse.stories.d.ts +0 -18
  92. package/lib/src/components/DateField/DateField.spec.d.ts +0 -1
  93. package/lib/src/components/DateField/DateField.stories.d.ts +0 -27
  94. package/lib/src/components/ErrorText/ErrorText.spec.d.ts +0 -1
  95. package/lib/src/components/ErrorText/ErrorText.stories.d.ts +0 -13
  96. package/lib/src/components/Footer/Footer.spec.d.ts +0 -1
  97. package/lib/src/components/Footer/Footer.stories.d.ts +0 -12
  98. package/lib/src/components/Header/Header.spec.d.ts +0 -1
  99. package/lib/src/components/Header/Header.stories.d.ts +0 -19
  100. package/lib/src/components/Heading/Heading.spec.d.ts +0 -1
  101. package/lib/src/components/Heading/Heading.stories.d.ts +0 -19
  102. package/lib/src/components/IconFa/IconFa.spec.d.ts +0 -1
  103. package/lib/src/components/IconFa/IconFa.stories.d.ts +0 -13
  104. package/lib/src/components/InfoBox/InfoBox.spec.d.ts +0 -1
  105. package/lib/src/components/InfoBox/InfoBox.stories.d.ts +0 -20
  106. package/lib/src/components/LegendWrapper/LegendWrapper.spec.d.ts +0 -1
  107. package/lib/src/components/LegendWrapper/LegendWrapper.stories.d.ts +0 -17
  108. package/lib/src/components/Link/Link.spec.d.ts +0 -1
  109. package/lib/src/components/Link/Link.stories.d.ts +0 -24
  110. package/lib/src/components/Loader/Loader.spec.d.ts +0 -1
  111. package/lib/src/components/Loader/Loader.stories.d.ts +0 -11
  112. package/lib/src/components/Modal/Modal.spec.d.ts +0 -1
  113. package/lib/src/components/Modal/Modal.stories.d.ts +0 -11
  114. package/lib/src/components/Pagination/Pagination.spec.d.ts +0 -1
  115. package/lib/src/components/Pagination/Pagination.stories.d.ts +0 -18
  116. package/lib/src/components/PopOver/PopOver.spec.d.ts +0 -1
  117. package/lib/src/components/PopOver/Popover.stories.d.ts +0 -17
  118. package/lib/src/components/ProgressBar/ProgressBar.spec.d.ts +0 -1
  119. package/lib/src/components/ProgressBar/ProgressBar.stories.d.ts +0 -15
  120. package/lib/src/components/Radio/Radio.spec.d.ts +0 -1
  121. package/lib/src/components/Radio/Radio.stories.d.ts +0 -19
  122. package/lib/src/components/RadioConsent/Radio.stories.d.ts +0 -18
  123. package/lib/src/components/RadioConsent/RadioConsent.spec.d.ts +0 -1
  124. package/lib/src/components/Select/Select.spec.d.ts +0 -1
  125. package/lib/src/components/Select/Selelct.stories.d.ts +0 -20
  126. package/lib/src/components/Step/Step.spec.d.ts +0 -1
  127. package/lib/src/components/Step/Step.stories.d.ts +0 -14
  128. package/lib/src/components/Text/Text.spec.d.ts +0 -1
  129. package/lib/src/components/Text/Text.stories.d.ts +0 -15
  130. package/lib/src/components/TextAreaField/TextAreaField.spec.d.ts +0 -1
  131. package/lib/src/components/TextAreaField/TextAreaField.stories.d.ts +0 -23
  132. package/lib/src/components/TextField/TextField.spec.d.ts +0 -1
  133. package/lib/src/components/TextField/TextField.stories.d.ts +0 -25
  134. package/lib/src/components/Totaliser/Totaliser.spec.d.ts +0 -1
  135. package/lib/src/components/Totaliser/Totaliser.stories.d.ts +0 -19
  136. package/lib/src/components/UserBlock/UserBlock.spec.d.ts +0 -1
  137. package/lib/src/components/UserBlock/UserBlock.stories.d.ts +0 -16
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sources":["../../../../src/components/Totaliser/styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { type ThemeType } from \"../../types\";\n\nimport ProgressBar from \"../ProgressBar\";\n\nexport const BubbleWrapper = styled.div<{\n theme: ThemeType;\n}>`\n text-align: center;\n background-color: ${({ theme }) => theme.colors.totaliserBubbleColor};\n border-radius: 3.2rem;\n padding: 5px;\n position: relative;\n p {\n margin: 0;\n }\n`;\n\nexport const ProgressBarWrapper = styled.div<{\n $isCompact?: boolean;\n theme: ThemeType;\n}>`\n padding: 0 46px 12px;\n margin-top: ${({ theme }) => theme.spacing.s};\n position: relative;\n\n ${({ $isCompact, theme }) =>\n !!$isCompact !== true &&\n css`\n div > div > div:not(:first-child) {\n &:after {\n content: \"\\\\25bc\";\n color: ${theme.colors.totaliserBubbleColor};\n position: absolute;\n top: -30px;\n right: -15px;\n font-size: 32px;\n }\n }\n `};\n`;\n\nexport const Total = styled.p<{\n theme: ThemeType;\n}>`\n color: ${({ theme }) => theme.colors.totaliserBubbleTotalColor};\n font-size: 2.625rem;\n line-height: 3rem;\n font-family: ${({ theme }) => theme.typography.fontFamilyHeadings};\n text-transform: ${({ theme }) => theme.typography.headerTextTransform};\n font-weight: ${({ theme }) => theme.typography.fontWeightLabels};\n`;\n\nexport const BubbleText = styled.p<{ theme: ThemeType }>`\n color: ${({ theme }) => theme.colors.totaliserBubbleTextColor};\n font-family: ${({ theme }) => theme.typography.fontFamilyHeadings};\n text-transform: ${({\n theme: {\n typography: { headerTextTransform },\n },\n }) => headerTextTransform};\n font-weight: ${({ theme }) => theme.typography.fontWeightLabels};\n`;\n\nexport const GiftAid = styled.p<{ theme: ThemeType }>`\n color: ${({ theme }) => theme.colors.totaliserBubbleTotalColor};\n font-family: ${({ theme }) => theme.typography.fontFamilyHeadings};\n text-transform: ${({\n theme: {\n typography: { headerTextTransform },\n },\n }) => headerTextTransform};\n font-weight: ${({ theme }) => theme.typography.fontWeightLabels};\n`;\n\n/* span not a div so that we don't end up with two speech bubble arrows from ProgressBarWrapper */\nexport const Summary = styled.span<{ theme: ThemeType }>`\n display: block;\n text-align: right;\n margin-top: 12px;\n margin-bottom: 0;\n font-family: ${({ theme }) => theme.typography.fontFamilyBase};\n`;\n\nexport const TotaliserWrapper = styled.div<{\n $isCompact: boolean;\n theme: ThemeType;\n}>`\n font-family: ${({ theme }) => theme.typography.fontFamilyHeadings};\n margin: 0;\n ${(props) =>\n props.$isCompact &&\n css`\n ${ProgressBarWrapper} {\n border: none;\n padding: 0;\n }\n `}\n`;\n\nexport const CompactWrapper = styled.div`\n justify-content: flex-end;\n display: flex;\n`;\n\nexport const StyledProgressBar = styled(ProgressBar)``;\n"],"names":["BubbleWrapper","styled","div","templateObject_1","__makeTemplateObject","_a","theme","colors","totaliserBubbleColor","ProgressBarWrapper","templateObject_3","spacing","s","$isCompact","css","templateObject_2","Total","p","templateObject_4","totaliserBubbleTotalColor","typography","fontFamilyHeadings","headerTextTransform","fontWeightLabels","BubbleText","templateObject_5","totaliserBubbleTextColor","GiftAid","templateObject_6","Summary","span","templateObject_7","fontFamilyBase","TotaliserWrapper","templateObject_9","props","templateObject_8","CompactWrapper","templateObject_10","StyledProgressBar","ProgressBar","templateObject_11"],"mappings":"iLAMO,0BAAMA,EAAgBC,EAAOC,IAAGC,IAAAA,EAAAC,EAAA,CAAA,gDAAA,qGAAA,CAErC,gDAEoE,uGAAhD,SAACC,GAAc,OAAPA,EAAAC,MAAaC,OAAOC,oBAAb,GASxBC,EAAqBR,EAAOC,IAAGQ,IAAAA,EAAAN,EAAA,CAAA,4CAAA,iCAAA,OAAA,CAG1C,4CAE4C,iCAgBzC,SAhBW,SAACC,GAAc,OAAPA,EAAAC,MAAaK,QAAQC,CAAd,EAG3B,SAACP,OAAEQ,EAAUR,EAAAQ,WAAEP,EAAKD,EAAAC,MACpB,OAAiB,KAAfO,GACFC,EAAGC,IAAAA,EAAAX,EAAA,CAAA,kHAAA,0IAAA,CAAA,oHAI6C,4IAAjCE,EAAMC,OAAOC,qBAL5B,GAeSQ,EAAQf,EAAOgB,EAACC,IAAAA,EAAAd,EAAA,CAAA,cAAA,mEAAA,wBAAA,qBAAA,OAAA,CAE3B,cAC8D,mEAGG,wBACI,qBACN,SALtD,SAACC,GAAc,OAAPA,EAAAC,MAAaC,OAAOY,yBAAb,EAGT,SAACd,GAAc,OAAPA,EAAAC,MAAac,WAAWC,kBAAjB,EACZ,SAAChB,GAAc,OAAPA,EAAAC,MAAac,WAAWE,mBAAjB,EAClB,SAACjB,GAAc,OAAPA,EAAAC,MAAac,WAAWG,gBAAjB,GAGnBC,EAAavB,EAAOgB,EAACQ,IAAAA,EAAArB,EAAA,CAAA,cAAA,qBAAA,wBAAA,qBAAA,OAAA,CAAsB,cACO,qBACI,wBAKxC,qBACsC,SAPtD,SAACC,GAAc,OAAPA,EAAAC,MAAaC,OAAOmB,wBAAb,EACT,SAACrB,GAAc,OAAPA,EAAAC,MAAac,WAAWC,kBAAjB,EACZ,SAAChB,GAIb,OAF+BA,EAAAC,MAAAc,WAAAE,mBAE/B,EACS,SAACjB,GAAc,OAAPA,EAAAC,MAAac,WAAWG,gBAAjB,GAGnBI,EAAU1B,EAAOgB,EAACW,IAAAA,EAAAxB,EAAA,CAAA,cAAA,qBAAA,wBAAA,qBAAA,OAAA,CAAsB,cACW,qBACG,wBAKxC,qBACsC,SAPtD,SAACC,GAAc,OAAPA,EAAAC,MAAaC,OAAOY,yBAAb,EACT,SAACd,GAAc,OAAPA,EAAAC,MAAac,WAAWC,kBAAjB,EACZ,SAAChB,GAIb,OAF+BA,EAAAC,MAAAc,WAAAE,mBAE/B,EACS,SAACjB,GAAc,OAAPA,EAAAC,MAAac,WAAWG,gBAAjB,GAInBM,EAAU5B,EAAO6B,KAAIC,IAAAA,EAAA3B,EAAA,CAAA,uGAAA,OAAA,CAAsB,uGAKO,SAA9C,SAACC,GAAc,OAAPA,EAAAC,MAAac,WAAWY,cAAjB,GAGnBC,EAAmBhC,EAAOC,IAAGgC,IAAAA,EAAA9B,EAAA,CAAA,oBAAA,sBAAA,MAAA,CAGxC,oBACiE,sBAS9D,QATY,SAACC,GAAc,OAAPA,EAAAC,MAAac,WAAWC,kBAAjB,EAE5B,SAACc,GACD,OAAAA,EAAMtB,YACNC,EAAGsB,IAAAA,EAAAhC,EAAA,CAAA,WAAA,iEAAA,CAAA,WACmB,mEAAlBK,EAFJ,GASS4B,EAAiBpC,EAAOC,IAAGoC,IAAAA,EAAAlC,EAAA,CAAA,sDAAA,CAAA,yDAK3BmC,EAAoBtC,EAAOuC,EAAPvC,CAAmBwC,IAAAA,EAAArC,EAAA,CAAA,IAAA,CAAA"}
1
+ {"version":3,"file":"styles.js","sources":["../../../../src/components/Totaliser/styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { type ThemeType } from \"../../types\";\n\nimport ProgressBar from \"../ProgressBar\";\n\nexport const BubbleWrapper = styled.div<{\n theme: ThemeType;\n}>`\n text-align: center;\n background-color: ${({ theme }) => theme.colors.totaliserBubbleColor};\n border-radius: 3.2rem;\n padding: 5px;\n position: relative;\n p {\n margin: 0;\n }\n`;\n\nexport const ProgressBarWrapper = styled.div<{\n $isCompact?: boolean;\n theme: ThemeType;\n}>`\n padding: 0 46px 12px;\n margin-top: ${({ theme }) => theme.spacing.s};\n position: relative;\n\n ${({ $isCompact, theme }) =>\n !!$isCompact !== true &&\n css`\n div > div > div:not(:first-child) {\n &:after {\n content: \"\\\\25bc\";\n color: ${theme.colors.totaliserBubbleColor};\n position: absolute;\n top: -36px;\n right: -15px;\n font-size: 32px;\n }\n }\n `};\n`;\n\nexport const Total = styled.p<{\n theme: ThemeType;\n}>`\n color: ${({ theme }) => theme.colors.totaliserBubbleTotalColor};\n font-size: 2.625rem;\n line-height: 3rem;\n font-family: ${({ theme }) => theme.typography.fontFamilyHeadings};\n text-transform: ${({ theme }) => theme.typography.headerTextTransform};\n font-weight: ${({ theme }) => theme.typography.fontWeightLabels};\n`;\n\nexport const BubbleText = styled.p<{ theme: ThemeType }>`\n color: ${({ theme }) => theme.colors.totaliserBubbleTextColor};\n font-family: ${({ theme }) => theme.typography.fontFamilyHeadings};\n text-transform: ${({\n theme: {\n typography: { headerTextTransform },\n },\n }) => headerTextTransform};\n font-weight: ${({ theme }) => theme.typography.fontWeightLabels};\n`;\n\nexport const GiftAid = styled.p<{ theme: ThemeType }>`\n color: ${({ theme }) => theme.colors.totaliserBubbleTotalColor};\n font-family: ${({ theme }) => theme.typography.fontFamilyHeadings};\n text-transform: ${({\n theme: {\n typography: { headerTextTransform },\n },\n }) => headerTextTransform};\n font-weight: ${({ theme }) => theme.typography.fontWeightLabels};\n`;\n\n/* span not a div so that we don't end up with two speech bubble arrows from ProgressBarWrapper */\nexport const Summary = styled.span<{ theme: ThemeType }>`\n display: block;\n text-align: right;\n margin-top: 12px;\n margin-bottom: 0;\n font-family: ${({ theme }) => theme.typography.fontFamilyBase};\n`;\n\nexport const TotaliserWrapper = styled.div<{\n $isCompact: boolean;\n theme: ThemeType;\n}>`\n font-family: ${({ theme }) => theme.typography.fontFamilyHeadings};\n margin: 0;\n ${(props) =>\n props.$isCompact &&\n css`\n ${ProgressBarWrapper} {\n border: none;\n padding: 0;\n }\n `}\n`;\n\nexport const CompactWrapper = styled.div`\n justify-content: flex-end;\n display: flex;\n`;\n\nexport const StyledProgressBar = styled(ProgressBar)``;\n"],"names":["BubbleWrapper","styled","div","templateObject_1","__makeTemplateObject","_a","theme","colors","totaliserBubbleColor","ProgressBarWrapper","templateObject_3","spacing","s","$isCompact","css","templateObject_2","Total","p","templateObject_4","totaliserBubbleTotalColor","typography","fontFamilyHeadings","headerTextTransform","fontWeightLabels","BubbleText","templateObject_5","totaliserBubbleTextColor","GiftAid","templateObject_6","Summary","span","templateObject_7","fontFamilyBase","TotaliserWrapper","templateObject_9","props","templateObject_8","CompactWrapper","templateObject_10","StyledProgressBar","ProgressBar","templateObject_11"],"mappings":"iLAMO,0BAAMA,EAAgBC,EAAOC,IAAGC,IAAAA,EAAAC,EAAA,CAAA,gDAAA,qGAAA,CAErC,gDAEoE,uGAAhD,SAACC,GAAc,OAAPA,EAAAC,MAAaC,OAAOC,oBAAb,GASxBC,EAAqBR,EAAOC,IAAGQ,IAAAA,EAAAN,EAAA,CAAA,4CAAA,iCAAA,OAAA,CAG1C,4CAE4C,iCAgBzC,SAhBW,SAACC,GAAc,OAAPA,EAAAC,MAAaK,QAAQC,CAAd,EAG3B,SAACP,OAAEQ,EAAUR,EAAAQ,WAAEP,EAAKD,EAAAC,MACpB,OAAiB,KAAfO,GACFC,EAAGC,IAAAA,EAAAX,EAAA,CAAA,kHAAA,0IAAA,CAAA,oHAI6C,4IAAjCE,EAAMC,OAAOC,qBAL5B,GAeSQ,EAAQf,EAAOgB,EAACC,IAAAA,EAAAd,EAAA,CAAA,cAAA,mEAAA,wBAAA,qBAAA,OAAA,CAE3B,cAC8D,mEAGG,wBACI,qBACN,SALtD,SAACC,GAAc,OAAPA,EAAAC,MAAaC,OAAOY,yBAAb,EAGT,SAACd,GAAc,OAAPA,EAAAC,MAAac,WAAWC,kBAAjB,EACZ,SAAChB,GAAc,OAAPA,EAAAC,MAAac,WAAWE,mBAAjB,EAClB,SAACjB,GAAc,OAAPA,EAAAC,MAAac,WAAWG,gBAAjB,GAGnBC,EAAavB,EAAOgB,EAACQ,IAAAA,EAAArB,EAAA,CAAA,cAAA,qBAAA,wBAAA,qBAAA,OAAA,CAAsB,cACO,qBACI,wBAKxC,qBACsC,SAPtD,SAACC,GAAc,OAAPA,EAAAC,MAAaC,OAAOmB,wBAAb,EACT,SAACrB,GAAc,OAAPA,EAAAC,MAAac,WAAWC,kBAAjB,EACZ,SAAChB,GAIb,OAF+BA,EAAAC,MAAAc,WAAAE,mBAE/B,EACS,SAACjB,GAAc,OAAPA,EAAAC,MAAac,WAAWG,gBAAjB,GAGnBI,EAAU1B,EAAOgB,EAACW,IAAAA,EAAAxB,EAAA,CAAA,cAAA,qBAAA,wBAAA,qBAAA,OAAA,CAAsB,cACW,qBACG,wBAKxC,qBACsC,SAPtD,SAACC,GAAc,OAAPA,EAAAC,MAAaC,OAAOY,yBAAb,EACT,SAACd,GAAc,OAAPA,EAAAC,MAAac,WAAWC,kBAAjB,EACZ,SAAChB,GAIb,OAF+BA,EAAAC,MAAAc,WAAAE,mBAE/B,EACS,SAACjB,GAAc,OAAPA,EAAAC,MAAac,WAAWG,gBAAjB,GAInBM,EAAU5B,EAAO6B,KAAIC,IAAAA,EAAA3B,EAAA,CAAA,uGAAA,OAAA,CAAsB,uGAKO,SAA9C,SAACC,GAAc,OAAPA,EAAAC,MAAac,WAAWY,cAAjB,GAGnBC,EAAmBhC,EAAOC,IAAGgC,IAAAA,EAAA9B,EAAA,CAAA,oBAAA,sBAAA,MAAA,CAGxC,oBACiE,sBAS9D,QATY,SAACC,GAAc,OAAPA,EAAAC,MAAac,WAAWC,kBAAjB,EAE5B,SAACc,GACD,OAAAA,EAAMtB,YACNC,EAAGsB,IAAAA,EAAAhC,EAAA,CAAA,WAAA,iEAAA,CAAA,WACmB,mEAAlBK,EAFJ,GASS4B,EAAiBpC,EAAOC,IAAGoC,IAAAA,EAAAlC,EAAA,CAAA,sDAAA,CAAA,yDAK3BmC,EAAoBtC,EAAOuC,EAAPvC,CAAmBwC,IAAAA,EAAArC,EAAA,CAAA,IAAA,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useScrollPosition.js","sources":["../../../src/hooks/useScrollPosition.ts"],"sourcesContent":["import { useRef, type DependencyList, type RefObject } from \"react\";\n\nimport { useLayoutEffectBrowser } from \"./useLayoutEffectBrowser\";\n\nconst isBrowser = typeof window !== `undefined`;\n\nfunction getScrollPosition({\n element,\n useWindow,\n}: {\n element?: RefObject<HTMLElement | null> | null;\n useWindow: boolean;\n}) {\n if (!isBrowser) return { x: 0, y: 0 };\n\n const target = element ? element.current : document.body;\n const position = target\n ? target.getBoundingClientRect()\n : { top: 0, left: 0 };\n\n return useWindow\n ? { x: window.scrollX, y: window.scrollY }\n : { x: position.left, y: position.top };\n}\n\nconst useScrollPosition = (\n effect: ({\n currPos,\n }: {\n prevPos: { x: number; y: number };\n currPos: { x: number; y: number };\n }) => void,\n deps: DependencyList,\n element: RefObject<HTMLElement | null> | null,\n useWindow: boolean,\n wait: number,\n): void => {\n const position = useRef(getScrollPosition({ useWindow, element }));\n\n let throttleTimeout: ReturnType<typeof setTimeout> | null = null;\n\n const callBack = () => {\n const currPos = getScrollPosition({ element, useWindow });\n effect({ prevPos: position.current, currPos });\n position.current = currPos;\n throttleTimeout = null;\n };\n\n useLayoutEffectBrowser(() => {\n const handleScroll = () => {\n if (wait) {\n if (throttleTimeout === null) {\n throttleTimeout = setTimeout(callBack, wait);\n }\n } else {\n callBack();\n }\n };\n if (isBrowser) {\n window.addEventListener(\"scroll\", handleScroll);\n }\n\n return () => {\n if (isBrowser) {\n window.removeEventListener(\"scroll\", handleScroll);\n }\n };\n }, deps);\n};\n\nexport default useScrollPosition;\nexport { useScrollPosition };\n"],"names":["isBrowser","window","getScrollPosition","_a","element","useWindow","x","y","target","current","document","body","position","getBoundingClientRect","top","left","scrollX","scrollY","useScrollPosition","effect","deps","wait","useRef","throttleTimeout","callBack","currPos","prevPos","useLayoutEffectBrowser","handleScroll","setTimeout","addEventListener","removeEventListener"],"mappings":"0EAIA,IAAMA,EAA8B,oBAAXC,OAEzB,SAASC,EAAkBC,OACzBC,EAAOD,EAAAC,QACPC,EAASF,EAAAE,UAKT,IAAKL,EAAW,MAAO,CAAEM,EAAG,EAAGC,EAAG,GAElC,IAAMC,EAASJ,EAAUA,EAAQK,QAAUC,SAASC,KAC9CC,EAAWJ,EACbA,EAAOK,wBACP,CAAEC,IAAK,EAAGC,KAAM,GAEpB,OAAOV,EACH,CAAEC,EAAGL,OAAOe,QAAST,EAAGN,OAAOgB,SAC/B,CAAEX,EAAGM,EAASG,KAAMR,EAAGK,EAASE,IACtC,CAEA,IAAMI,EAAoB,SACxBC,EAMAC,EACAhB,EACAC,EACAgB,GAEA,IAAMT,EAAWU,EAAOpB,EAAkB,CAAEG,UAASA,EAAED,QAAOA,KAE1DmB,EAAwD,KAEtDC,EAAW,WACf,IAAMC,EAAUvB,EAAkB,CAAEE,QAAOA,EAAEC,UAASA,IACtDc,EAAO,CAAEO,QAASd,EAASH,QAASgB,QAAOA,IAC3Cb,EAASH,QAAUgB,EACnBF,EAAkB,IACpB,EAEAI,EAAuB,WACrB,IAAMC,EAAe,WAEO,OAApBL,IACFA,EAAkBM,WAAWL,EAAUH,GAK7C,EAKA,OAJIrB,GACFC,OAAO6B,iBAAiB,SAAUF,GAG7B,WACD5B,GACFC,OAAO8B,oBAAoB,SAAUH,EAEzC,GACCR,EACL"}
1
+ {"version":3,"file":"useScrollPosition.js","sources":["../../../src/hooks/useScrollPosition.ts"],"sourcesContent":["import { useRef, type DependencyList, type RefObject } from \"react\";\n\nimport { useLayoutEffectBrowser } from \"./useLayoutEffectBrowser\";\n\nconst isBrowser = typeof window !== `undefined`;\n\nfunction getScrollPosition({\n element,\n useWindow,\n}: {\n element?: RefObject<HTMLElement | null> | null;\n useWindow: boolean;\n}) {\n if (!isBrowser) return { x: 0, y: 0 };\n\n const target = element ? element.current : document.body;\n const position = target\n ? target.getBoundingClientRect()\n : { top: 0, left: 0 };\n\n return useWindow\n ? { x: window.scrollX, y: window.scrollY }\n : { x: position.left, y: position.top };\n}\n\nconst useScrollPosition = (\n effect: ({\n currPos,\n }: {\n prevPos: { x: number; y: number };\n currPos: { x: number; y: number };\n }) => void,\n deps: DependencyList,\n element: RefObject<HTMLElement | null> | null,\n useWindow: boolean,\n wait: number,\n): void => {\n const position = useRef(getScrollPosition({ useWindow, element }));\n\n let throttleTimeout: ReturnType<typeof setTimeout> | null = null;\n\n const callBack = () => {\n const currPos = getScrollPosition({ element, useWindow });\n effect({ prevPos: position.current, currPos });\n position.current = currPos;\n throttleTimeout = null;\n };\n\n useLayoutEffectBrowser(() => {\n const handleScroll = () => {\n if (wait) {\n if (throttleTimeout === null) {\n throttleTimeout = setTimeout(callBack, wait);\n }\n } else {\n callBack();\n }\n };\n if (isBrowser) {\n window.addEventListener(\"scroll\", handleScroll);\n }\n\n return () => {\n if (isBrowser) {\n window.removeEventListener(\"scroll\", handleScroll);\n }\n };\n }, deps);\n};\n\nexport default useScrollPosition;\nexport { useScrollPosition };\n"],"names":["isBrowser","window","getScrollPosition","_a","element","useWindow","x","y","target","current","document","body","position","getBoundingClientRect","top","left","scrollX","scrollY","useScrollPosition","effect","deps","wait","useRef","throttleTimeout","callBack","currPos","prevPos","useLayoutEffectBrowser","handleScroll","setTimeout","addEventListener","removeEventListener"],"mappings":"0EAIA,IAAMA,EAA8B,oBAAXC,OAEzB,SAASC,EAAkBC,OACzBC,EAAOD,EAAAC,QACPC,EAASF,EAAAE,UAKT,IAAKL,EAAW,MAAO,CAAEM,EAAG,EAAGC,EAAG,GAElC,IAAMC,EAASJ,EAAUA,EAAQK,QAAUC,SAASC,KAC9CC,EAAWJ,EACbA,EAAOK,wBACP,CAAEC,IAAK,EAAGC,KAAM,GAEpB,OAAOV,EACH,CAAEC,EAAGL,OAAOe,QAAST,EAAGN,OAAOgB,SAC/B,CAAEX,EAAGM,EAASG,KAAMR,EAAGK,EAASE,IACtC,CAEA,IAAMI,EAAoB,SACxBC,EAMAC,EACAhB,EACAC,EACAgB,GAEA,IAAMT,EAAWU,EAAOpB,EAAkB,CAAEG,UAASA,EAAED,QAAOA,KAE1DmB,EAAwD,KAEtDC,EAAW,WACf,IAAMC,EAAUvB,EAAkB,CAAEE,QAAOA,EAAEC,UAASA,IACtDc,EAAO,CAAEO,QAASd,EAASH,QAASgB,QAAOA,IAC3Cb,EAASH,QAAUgB,EACnBF,EAAkB,IACpB,EAEAI,EAAuB,WACrB,IAAMC,EAAe,WAEO,OAApBL,IACFA,EAAkBM,WAAWL,EAAUH,GAK7C,EAKA,OAJIrB,GACFC,OAAO6B,iBAAiB,SAAUF,GAG7B,WACD5B,GACFC,OAAO8B,oBAAoB,SAAUH,EAEzC,CACF,EAAGR,EACL"}
@@ -1,2 +1,2 @@
1
- import{__assign as a}from"../../node_modules/tslib/tslib.es6.js";import{crukTheme as t}from"./cruk.js";var s=a({},t.utilities),o=a(a({},t.siteConfig),{logoSrc:"https://rcl.assets.cancerresearchuk.org/images/logos/rfl-sl.svg"}),e=a(a({},t.avatar),{path:"".concat(o.assetPath,"images/avatar/rfl/")}),r=a({},t.button),i=a({},t.breakpoint),n=a({},t.tokenColors),l=a(a({},t.colors),{textHeaderDefault:n.navy_600,headerTaglineText:n.navy_600,progressBar:n.magenta_700,progressBarSecondary:n.navy_600}),g=a({},t.spacing),p=a({},t.shadows),c=a({},t.fontSizes),f=a(a({},t.typography),{fontWeightHeadings:600}),h={name:"rfl",avatar:a({},e),breakpoint:a({},i),button:a({},r),tokenColors:a({},n),colors:a({},l),spacing:a({},g),fontSizes:a({},c),siteConfig:a({},o),typography:a({},f),shadows:a({},p),utilities:a({},s)};export{e as AVATAR,i as BREAKPOINT,r as BUTTON,l as COLORS,c as FONT_SIZES,p as SHADOWS,o as SITE_CONFIG,g as SPACING,n as TOKEN_COLORS,f as TYPOGRAPHY,s as UTILITIES,h as default,h as rflTheme};
1
+ import{__assign as a}from"../../node_modules/tslib/tslib.es6.js";import{crukTheme as t}from"./cruk.js";var o=a({},t.utilities),s=a(a({},t.siteConfig),{logoSrc:"https://rcl.assets.cancerresearchuk.org/images/logos/rfl.svg"}),e=a(a({},t.avatar),{path:"".concat(s.assetPath,"images/avatar/rfl/")}),r=a({},t.button),i=a({},t.breakpoint),n=a({},t.tokenColors),g=a(a({},t.colors),{textHeaderDefault:n.navy_600,headerTaglineText:n.navy_600,progressBar:n.magenta_700,progressBarSecondary:n.navy_600}),l=a({},t.spacing),p=a({},t.shadows),c=a({},t.fontSizes),f=a(a({},t.typography),{fontWeightHeadings:600}),h={name:"rfl",avatar:a({},e),breakpoint:a({},i),button:a({},r),tokenColors:a({},n),colors:a({},g),spacing:a({},l),fontSizes:a({},c),siteConfig:a({},s),typography:a({},f),shadows:a({},p),utilities:a({},o)};export{e as AVATAR,i as BREAKPOINT,r as BUTTON,g as COLORS,c as FONT_SIZES,p as SHADOWS,s as SITE_CONFIG,l as SPACING,n as TOKEN_COLORS,f as TYPOGRAPHY,o as UTILITIES,h as default,h as rflTheme};
2
2
  //# sourceMappingURL=rfl.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"rfl.js","sources":["../../../src/themes/rfl.ts"],"sourcesContent":["import {\n type UtilitiesType,\n type SiteConfigType,\n type AvatarType,\n type ButtonType,\n type BreakPointType,\n type TokenColorsType,\n type ColorsType,\n type SpacingType,\n type FontSizesType,\n type TypographyType,\n type ThemeType,\n type ShadowsType,\n} from \"../types\";\n\nimport { crukTheme as defaultTheme } from \"./cruk\";\n\nexport const UTILITIES: UtilitiesType = {\n ...defaultTheme.utilities,\n};\n\nexport const SITE_CONFIG: SiteConfigType = {\n ...defaultTheme.siteConfig,\n logoSrc: \"https://rcl.assets.cancerresearchuk.org/images/logos/rfl-sl.svg\",\n};\n\nexport const AVATAR: AvatarType = {\n ...defaultTheme.avatar,\n path: `${SITE_CONFIG.assetPath}images/avatar/rfl/`,\n};\n\nexport const BUTTON: ButtonType = {\n ...defaultTheme.button,\n};\n\nexport const BREAKPOINT: BreakPointType = {\n ...defaultTheme.breakpoint,\n};\n\nexport const TOKEN_COLORS: TokenColorsType = {\n ...defaultTheme.tokenColors,\n};\n\nexport const COLORS: ColorsType = {\n ...defaultTheme.colors,\n textHeaderDefault: TOKEN_COLORS.navy_600,\n headerTaglineText: TOKEN_COLORS.navy_600,\n progressBar: TOKEN_COLORS.magenta_700,\n progressBarSecondary: TOKEN_COLORS.navy_600,\n};\n\nexport const SPACING: SpacingType = {\n ...defaultTheme.spacing,\n};\n\nexport const SHADOWS: ShadowsType = {\n ...defaultTheme.shadows,\n};\n\nexport const FONT_SIZES: FontSizesType = {\n ...defaultTheme.fontSizes,\n};\n\nexport const TYPOGRAPHY: TypographyType = {\n ...defaultTheme.typography,\n fontWeightHeadings: 600,\n};\n\nexport const rflTheme: ThemeType = {\n name: \"rfl\",\n avatar: { ...AVATAR },\n breakpoint: { ...BREAKPOINT },\n button: { ...BUTTON },\n tokenColors: { ...TOKEN_COLORS },\n colors: { ...COLORS },\n spacing: { ...SPACING },\n fontSizes: { ...FONT_SIZES },\n siteConfig: { ...SITE_CONFIG },\n typography: { ...TYPOGRAPHY },\n shadows: { ...SHADOWS },\n utilities: { ...UTILITIES },\n};\n\nexport default rflTheme;\n"],"names":["UTILITIES","__assign","defaultTheme","utilities","SITE_CONFIG","siteConfig","logoSrc","AVATAR","avatar","path","assetPath","BUTTON","button","BREAKPOINT","breakpoint","TOKEN_COLORS","tokenColors","COLORS","colors","textHeaderDefault","navy_600","headerTaglineText","progressBar","magenta_700","progressBarSecondary","SPACING","spacing","SHADOWS","shadows","FONT_SIZES","fontSizes","TYPOGRAPHY","typography","fontWeightHeadings","rflTheme","name"],"mappings":"2GAiBaA,EAASC,EAAA,GACjBC,EAAaC,WAGLC,EAAWH,EAAAA,EAAA,CAAA,EACnBC,EAAaG,YAAU,CAC1BC,QAAS,oEAGEC,EAAMN,EAAAA,EAAA,CAAA,EACdC,EAAaM,QAAM,CACtBC,KAAM,UAAGL,EAAYM,UAAS,wBAGnBC,EAAMV,EAAA,GACdC,EAAaU,QAGLC,EAAUZ,EAAA,GAClBC,EAAaY,YAGLC,EAAYd,EAAA,GACpBC,EAAac,aAGLC,EAAMhB,EAAAA,EAAA,CAAA,EACdC,EAAagB,QAAM,CACtBC,kBAAmBJ,EAAaK,SAChCC,kBAAmBN,EAAaK,SAChCE,YAAaP,EAAaQ,YAC1BC,qBAAsBT,EAAaK,WAGxBK,EAAOxB,EAAA,GACfC,EAAawB,SAGLC,EAAO1B,EAAA,GACfC,EAAa0B,SAGLC,EAAU5B,EAAA,GAClBC,EAAa4B,WAGLC,EAAU9B,EAAAA,EAAA,CAAA,EAClBC,EAAa8B,YAAU,CAC1BC,mBAAoB,MAGTC,EAAsB,CACjCC,KAAM,MACN3B,OAAMP,EAAA,CAAA,EAAOM,GACbO,WAAUb,EAAA,CAAA,EAAOY,GACjBD,OAAMX,EAAA,CAAA,EAAOU,GACbK,YAAWf,EAAA,CAAA,EAAOc,GAClBG,OAAMjB,EAAA,CAAA,EAAOgB,GACbS,QAAOzB,EAAA,CAAA,EAAOwB,GACdK,UAAS7B,EAAA,CAAA,EAAO4B,GAChBxB,WAAUJ,EAAA,CAAA,EAAOG,GACjB4B,WAAU/B,EAAA,CAAA,EAAO8B,GACjBH,QAAO3B,EAAA,CAAA,EAAO0B,GACdxB,UAASF,EAAA,CAAA,EAAOD"}
1
+ {"version":3,"file":"rfl.js","sources":["../../../src/themes/rfl.ts"],"sourcesContent":["import {\n type UtilitiesType,\n type SiteConfigType,\n type AvatarType,\n type ButtonType,\n type BreakPointType,\n type TokenColorsType,\n type ColorsType,\n type SpacingType,\n type FontSizesType,\n type TypographyType,\n type ThemeType,\n type ShadowsType,\n} from \"../types\";\n\nimport { crukTheme as defaultTheme } from \"./cruk\";\n\nexport const UTILITIES: UtilitiesType = {\n ...defaultTheme.utilities,\n};\n\nexport const SITE_CONFIG: SiteConfigType = {\n ...defaultTheme.siteConfig,\n logoSrc: \"https://rcl.assets.cancerresearchuk.org/images/logos/rfl.svg\",\n};\n\nexport const AVATAR: AvatarType = {\n ...defaultTheme.avatar,\n path: `${SITE_CONFIG.assetPath}images/avatar/rfl/`,\n};\n\nexport const BUTTON: ButtonType = {\n ...defaultTheme.button,\n};\n\nexport const BREAKPOINT: BreakPointType = {\n ...defaultTheme.breakpoint,\n};\n\nexport const TOKEN_COLORS: TokenColorsType = {\n ...defaultTheme.tokenColors,\n};\n\nexport const COLORS: ColorsType = {\n ...defaultTheme.colors,\n textHeaderDefault: TOKEN_COLORS.navy_600,\n headerTaglineText: TOKEN_COLORS.navy_600,\n progressBar: TOKEN_COLORS.magenta_700,\n progressBarSecondary: TOKEN_COLORS.navy_600,\n};\n\nexport const SPACING: SpacingType = {\n ...defaultTheme.spacing,\n};\n\nexport const SHADOWS: ShadowsType = {\n ...defaultTheme.shadows,\n};\n\nexport const FONT_SIZES: FontSizesType = {\n ...defaultTheme.fontSizes,\n};\n\nexport const TYPOGRAPHY: TypographyType = {\n ...defaultTheme.typography,\n fontWeightHeadings: 600,\n};\n\nexport const rflTheme: ThemeType = {\n name: \"rfl\",\n avatar: { ...AVATAR },\n breakpoint: { ...BREAKPOINT },\n button: { ...BUTTON },\n tokenColors: { ...TOKEN_COLORS },\n colors: { ...COLORS },\n spacing: { ...SPACING },\n fontSizes: { ...FONT_SIZES },\n siteConfig: { ...SITE_CONFIG },\n typography: { ...TYPOGRAPHY },\n shadows: { ...SHADOWS },\n utilities: { ...UTILITIES },\n};\n\nexport default rflTheme;\n"],"names":["UTILITIES","__assign","defaultTheme","utilities","SITE_CONFIG","siteConfig","logoSrc","AVATAR","avatar","path","assetPath","BUTTON","button","BREAKPOINT","breakpoint","TOKEN_COLORS","tokenColors","COLORS","colors","textHeaderDefault","navy_600","headerTaglineText","progressBar","magenta_700","progressBarSecondary","SPACING","spacing","SHADOWS","shadows","FONT_SIZES","fontSizes","TYPOGRAPHY","typography","fontWeightHeadings","rflTheme","name"],"mappings":"2GAiBaA,EAASC,EAAA,GACjBC,EAAaC,WAGLC,EAAWH,EAAAA,EAAA,CAAA,EACnBC,EAAaG,YAAU,CAC1BC,QAAS,iEAGEC,EAAMN,EAAAA,EAAA,CAAA,EACdC,EAAaM,QAAM,CACtBC,KAAM,UAAGL,EAAYM,UAAS,wBAGnBC,EAAMV,EAAA,GACdC,EAAaU,QAGLC,EAAUZ,EAAA,GAClBC,EAAaY,YAGLC,EAAYd,EAAA,GACpBC,EAAac,aAGLC,EAAMhB,EAAAA,EAAA,CAAA,EACdC,EAAagB,QAAM,CACtBC,kBAAmBJ,EAAaK,SAChCC,kBAAmBN,EAAaK,SAChCE,YAAaP,EAAaQ,YAC1BC,qBAAsBT,EAAaK,WAGxBK,EAAOxB,EAAA,GACfC,EAAawB,SAGLC,EAAO1B,EAAA,GACfC,EAAa0B,SAGLC,EAAU5B,EAAA,GAClBC,EAAa4B,WAGLC,EAAU9B,EAAAA,EAAA,CAAA,EAClBC,EAAa8B,YAAU,CAC1BC,mBAAoB,MAGTC,EAAsB,CACjCC,KAAM,MACN3B,OAAMP,EAAA,CAAA,EAAOM,GACbO,WAAUb,EAAA,CAAA,EAAOY,GACjBD,OAAMX,EAAA,CAAA,EAAOU,GACbK,YAAWf,EAAA,CAAA,EAAOc,GAClBG,OAAMjB,EAAA,CAAA,EAAOgB,GACbS,QAAOzB,EAAA,CAAA,EAAOwB,GACdK,UAAS7B,EAAA,CAAA,EAAO4B,GAChBxB,WAAUJ,EAAA,CAAA,EAAOG,GACjB4B,WAAU/B,EAAA,CAAA,EAAO8B,GACjBH,QAAO3B,EAAA,CAAA,EAAO0B,GACdxB,UAASF,EAAA,CAAA,EAAOD"}
@@ -1 +1 @@
1
- {"version":3,"file":"Helper.js","sources":["../../../src/utils/Helper.ts"],"sourcesContent":["export const isBrowser = typeof window !== \"undefined\";\n\nexport const calculatePercentRounded = (\n value: number,\n target: number,\n): number => {\n const percent = (value / target) * 100;\n if (percent === Number.POSITIVE_INFINITY || Number.isNaN(percent)) {\n return 0;\n }\n return Math.floor(percent < 1 ? Math.ceil(percent) : Math.floor(percent));\n};\n\nexport const formatMoney = (value: number): string => {\n const parsed = Number.parseFloat(\n (Math.round(value * 100) / 100).toString(),\n ).toFixed(2);\n if (Number.isNaN(parseFloat(parsed)) || Number.isNaN(value)) {\n return \"0\";\n }\n return parsed;\n};\n\nexport const numberWithCommas = (n?: number | string): string => {\n if (!n) {\n return \"\";\n }\n const parts = n.toString().split(\".\");\n\n return `${parts[0].replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")}${\n parts[1] ? `.${parts[1]}` : \"\"\n }`;\n};\n\nexport const formatMoneyWithCommas = (value: number): string => {\n const parsed = Number.parseFloat(\n (Math.round(value * 100) / 100).toString(),\n ).toFixed(2);\n if (Number.isNaN(parseFloat(parsed)) || Number.isNaN(value)) {\n return \"0\";\n }\n return numberWithCommas(parsed);\n};\n\nexport const camelize = (str: string): string =>\n str\n .toString()\n .replace(/(?:^\\w|[A-Z]|\\b\\w)/g, (word: string, index: number) =>\n index === 0 ? word.toLowerCase() : word.toUpperCase(),\n )\n .replace(/\\s+/g, \"\");\n\nexport const removeCommasFromObjectStringValues = <T>(object: T) =>\n Object.entries(object as Record<string, unknown>).reduce((acc, [k, v]) => {\n const value = typeof v === \"string\" ? v.replace(/,/g, \"\") : v;\n return {\n ...acc,\n [k as keyof T]: value,\n };\n }, {} as T);\n"],"names":["isBrowser","window","calculatePercentRounded","value","target","percent","Number","POSITIVE_INFINITY","isNaN","Math","floor","ceil","numberWithCommas","n","parts","toString","split","concat","replace","formatMoneyWithCommas","parsed","parseFloat","round","toFixed","removeCommasFromObjectStringValues","object","Object","entries","reduce","acc","_a","k","v","__assign","_b"],"mappings":"qEAAaA,EAA8B,oBAAXC,OAEnBC,EAA0B,SACrCC,EACAC,GAEA,IAAMC,EAAWF,EAAQC,EAAU,IACnC,OAAIC,IAAYC,OAAOC,mBAAqBD,OAAOE,MAAMH,GAChD,EAEFI,KAAKC,MAAML,EAAU,EAAII,KAAKE,KAAKN,GAAWI,KAAKC,MAAML,GAClE,EAYaO,EAAmB,SAACC,GAC/B,IAAKA,EACH,MAAO,GAET,IAAMC,EAAQD,EAAEE,WAAWC,MAAM,KAEjC,MAAO,GAAAC,OAAGH,EAAM,GAAGI,QAAQ,wBAAyB,aAClDJ,EAAM,GAAK,IAAAG,OAAIH,EAAM,IAAO,GAEhC,EAEaK,EAAwB,SAAChB,GACpC,IAAMiB,EAASd,OAAOe,YACnBZ,KAAKa,MAAc,IAARnB,GAAe,KAAKY,YAChCQ,QAAQ,GACV,OAAIjB,OAAOE,MAAMa,WAAWD,KAAYd,OAAOE,MAAML,GAC5C,IAEFS,EAAiBQ,EAC1B,EAUaI,EAAqC,SAAIC,GACpD,OAAAC,OAAOC,QAAQF,GAAmCG,OAAO,SAACC,EAAKC,SAACC,EAACD,EAAA,GAAEE,EAACF,EAAA,GAC5D3B,EAAqB,iBAAN6B,EAAiBA,EAAEd,QAAQ,KAAM,IAAMc,EAC5D,OAAAC,EAAAA,EAAA,CAAA,EACKJ,KAAGK,EAAA,CAAA,GACLH,GAAe5B,EAAK+B,KAEtB,GANH"}
1
+ {"version":3,"file":"Helper.js","sources":["../../../src/utils/Helper.ts"],"sourcesContent":["export const isBrowser = typeof window !== \"undefined\";\n\nexport const calculatePercentRounded = (\n value: number,\n target: number,\n): number => {\n const percent = (value / target) * 100;\n if (percent === Number.POSITIVE_INFINITY || Number.isNaN(percent)) {\n return 0;\n }\n return Math.floor(percent < 1 ? Math.ceil(percent) : Math.floor(percent));\n};\n\nexport const formatMoney = (value: number): string => {\n const parsed = Number.parseFloat(\n (Math.round(value * 100) / 100).toString(),\n ).toFixed(2);\n if (Number.isNaN(parseFloat(parsed)) || Number.isNaN(value)) {\n return \"0\";\n }\n return parsed;\n};\n\nexport const numberWithCommas = (n?: number | string): string => {\n if (!n) {\n return \"\";\n }\n const parts = n.toString().split(\".\");\n\n return `${parts[0].replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")}${\n parts[1] ? `.${parts[1]}` : \"\"\n }`;\n};\n\nexport const formatMoneyWithCommas = (value: number): string => {\n const parsed = Number.parseFloat(\n (Math.round(value * 100) / 100).toString(),\n ).toFixed(2);\n if (Number.isNaN(parseFloat(parsed)) || Number.isNaN(value)) {\n return \"0\";\n }\n return numberWithCommas(parsed);\n};\n\nexport const camelize = (str: string): string =>\n str\n .toString()\n .replace(/(?:^\\w|[A-Z]|\\b\\w)/g, (word: string, index: number) =>\n index === 0 ? word.toLowerCase() : word.toUpperCase(),\n )\n .replace(/\\s+/g, \"\");\n\nexport const removeCommasFromObjectStringValues = <T>(object: T) =>\n Object.entries(object as Record<string, unknown>).reduce((acc, [k, v]) => {\n const value = typeof v === \"string\" ? v.replace(/,/g, \"\") : v;\n return {\n ...acc,\n [k as keyof T]: value,\n };\n }, {} as T);\n"],"names":["isBrowser","window","calculatePercentRounded","value","target","percent","Number","POSITIVE_INFINITY","isNaN","Math","floor","ceil","numberWithCommas","n","parts","toString","split","concat","replace","formatMoneyWithCommas","parsed","parseFloat","round","toFixed","removeCommasFromObjectStringValues","object","Object","entries","reduce","acc","_a","k","v","__assign","_b"],"mappings":"qEAAaA,EAA8B,oBAAXC,OAEnBC,EAA0B,SACrCC,EACAC,GAEA,IAAMC,EAAWF,EAAQC,EAAU,IACnC,OAAIC,IAAYC,OAAOC,mBAAqBD,OAAOE,MAAMH,GAChD,EAEFI,KAAKC,MAAML,EAAU,EAAII,KAAKE,KAAKN,GAAWI,KAAKC,MAAML,GAClE,EAYaO,EAAmB,SAACC,GAC/B,IAAKA,EACH,MAAO,GAET,IAAMC,EAAQD,EAAEE,WAAWC,MAAM,KAEjC,MAAO,GAAAC,OAAGH,EAAM,GAAGI,QAAQ,wBAAyB,aAClDJ,EAAM,GAAK,IAAAG,OAAIH,EAAM,IAAO,GAEhC,EAEaK,EAAwB,SAAChB,GACpC,IAAMiB,EAASd,OAAOe,YACnBZ,KAAKa,MAAc,IAARnB,GAAe,KAAKY,YAChCQ,QAAQ,GACV,OAAIjB,OAAOE,MAAMa,WAAWD,KAAYd,OAAOE,MAAML,GAC5C,IAEFS,EAAiBQ,EAC1B,EAUaI,EAAqC,SAAIC,GACpD,OAAAC,OAAOC,QAAQF,GAAmCG,OAAO,SAACC,EAAKC,SAACC,EAACD,EAAA,GAAEE,EAACF,EAAA,GAC5D3B,EAAqB,iBAAN6B,EAAiBA,EAAEd,QAAQ,KAAM,IAAMc,EAC5D,OAAAC,EAAAA,EAAA,CAAA,EACKJ,KAAGK,EAAA,CAAA,GACLH,GAAe5B,EAAK+B,GAEzB,EAAG,CAAA,EANH"}
@@ -1 +1 @@
1
- {"version":3,"file":"debounce.js","sources":["../../../src/utils/debounce.ts"],"sourcesContent":["// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const debounce = (delay: number, callback: (...args: any) => void) => {\n let timerId: ReturnType<typeof setTimeout> | null;\n return (...args: unknown[]) => {\n if (timerId) {\n clearTimeout(timerId);\n }\n timerId = setTimeout(() => {\n callback(...args);\n timerId = null;\n }, delay);\n };\n};\n\nexport default debounce;\n"],"names":["debounce","delay","callback","timerId","args","_i","arguments","length","clearTimeout","setTimeout","apply"],"mappings":"AACO,IAAMA,EAAW,SAACC,EAAeC,GACtC,IAAIC,EACJ,OAAO,eAAC,IAAAC,EAAA,GAAAC,EAAA,EAAAA,EAAAC,UAAAC,OAAAF,IAAAD,EAAAC,GAAAC,UAAAD,GACFF,GACFK,aAAaL,GAEfA,EAAUM,WAAW,WACnBP,EAAQQ,WAAA,EAAIN,GACZD,EAAU,MACTF,EACL,CACF"}
1
+ {"version":3,"file":"debounce.js","sources":["../../../src/utils/debounce.ts"],"sourcesContent":["// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const debounce = (delay: number, callback: (...args: any) => void) => {\n let timerId: ReturnType<typeof setTimeout> | null;\n return (...args: unknown[]) => {\n if (timerId) {\n clearTimeout(timerId);\n }\n timerId = setTimeout(() => {\n callback(...args);\n timerId = null;\n }, delay);\n };\n};\n\nexport default debounce;\n"],"names":["debounce","delay","callback","timerId","args","_i","arguments","length","clearTimeout","setTimeout","apply"],"mappings":"AACO,IAAMA,EAAW,SAACC,EAAeC,GACtC,IAAIC,EACJ,OAAO,eAAC,IAAAC,EAAA,GAAAC,EAAA,EAAAA,EAAAC,UAAAC,OAAAF,IAAAD,EAAAC,GAAAC,UAAAD,GACFF,GACFK,aAAaL,GAEfA,EAAUM,WAAW,WACnBP,EAAQQ,WAAA,EAAIN,GACZD,EAAU,IACZ,EAAGF,EACL,CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cruk/cruk-react-components",
3
- "version": "6.1.1",
3
+ "version": "6.1.2",
4
4
  "description": "React components implementing CRUK, RFL, SU2C & Bowelbabe designs",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -53,21 +53,21 @@
53
53
  "@rollup/plugin-node-resolve": "^15.2.3",
54
54
  "@rollup/plugin-terser": "^0.4.4",
55
55
  "@rollup/plugin-typescript": "^11.1.6",
56
- "@storybook/addon-a11y": "^9.0.14",
57
- "@storybook/addon-docs": "^9.0.14",
58
- "@storybook/addon-links": "^9.0.14",
59
- "@storybook/react-vite": "^9.0.14",
56
+ "@storybook/addon-a11y": "^10",
57
+ "@storybook/addon-docs": "^10",
58
+ "@storybook/addon-links": "^10",
59
+ "@storybook/react-vite": "^10",
60
60
  "@types/assert": "^1.5.1",
61
61
  "@types/node": "^20",
62
62
  "@types/react": "^19",
63
63
  "@types/react-dom": "^19",
64
- "@vitejs/plugin-legacy": "^6.1.1",
65
- "@vitejs/plugin-react-swc": "^3.10.2",
64
+ "@vitejs/plugin-legacy": "^7",
65
+ "@vitejs/plugin-react-swc": "^3.11.0",
66
66
  "chromatic": "^11.28.2",
67
67
  "eslint": "^9",
68
68
  "eslint-plugin-react": "^7.37.4",
69
69
  "eslint-plugin-react-hooks": "^5.1.0",
70
- "eslint-plugin-storybook": "^9.0.14",
70
+ "eslint-plugin-storybook": "^10",
71
71
  "prettier": "^3",
72
72
  "prop-types": "^15.8.1",
73
73
  "react": "^19",
@@ -76,7 +76,7 @@
76
76
  "rollup": "^4.22.4",
77
77
  "rollup-plugin-typescript2": "^0.36.0",
78
78
  "source-map-explorer": "^2.2.2",
79
- "storybook": "^9.0.14",
79
+ "storybook": "^10",
80
80
  "ts-loader": "9.5.1",
81
81
  "tsx": "^4.20.3",
82
82
  "typescript": "^5.7.3",
@@ -88,14 +88,15 @@
88
88
  "styled-components": "^6.1.11"
89
89
  },
90
90
  "dependencies": {
91
- "@fortawesome/fontawesome-common-types": "^6.7.2",
92
- "@fortawesome/free-brands-svg-icons": "^6.7.2",
93
- "@fortawesome/free-solid-svg-icons": "^6.7.2",
94
- "@swc/plugin-styled-components": "^8.0.2",
91
+ "@fortawesome/fontawesome-common-types": "^7",
92
+ "@fortawesome/free-brands-svg-icons": "^7",
93
+ "@fortawesome/free-solid-svg-icons": "^7",
94
+ "@swc/plugin-styled-components": "^10",
95
95
  "react-focus-lock": "^2.13.6",
96
96
  "react-intersection-observer": "^9.1.0",
97
97
  "react-is": "^19",
98
98
  "styled-components": "^6.1.11",
99
- "vite": "^6.0.0"
99
+ "vite": "^7",
100
+ "@swc/core": "1.9.3"
100
101
  }
101
102
  }
@@ -1 +0,0 @@
1
- import "./fonts.css";
@@ -1,19 +0,0 @@
1
- import React from "react";
2
- import { type ThemeType } from "src/components";
3
- type themeNameType = "CRUK" | "SU2C" | "RFL" | "Bowelbabe";
4
- export type ThemeTypeWithName = {
5
- name: themeNameType;
6
- theme: ThemeType;
7
- };
8
- export declare function testAccessibilityForTheme({ componentName, themeName, component, ignoreRules, }: {
9
- componentName: string;
10
- themeName: "CRUK" | "SU2C" | "RFL" | "Bowelbabe";
11
- component: () => React.ReactElement;
12
- ignoreRules?: string[];
13
- }): void;
14
- export declare function testAccessibilityOnAllThemes({ componentName, component, ignoreRules, }: {
15
- componentName: string;
16
- component: () => React.ReactElement;
17
- ignoreRules?: string[];
18
- }): void;
19
- export {};
@@ -1,24 +0,0 @@
1
- import React from "react";
2
- import { type StoryObj } from "@storybook/react-vite";
3
- import { type AddressLookupProps } from ".";
4
- declare const _default: {
5
- title: string;
6
- component: ({ apiKey, countries, errorMessage, hasError, isValid, isValidVisible, isInvalidVisible, label, hintText, ref, onAddressError, onAddressSelected, onChange, onBlur, ...props }: AddressLookupProps) => React.JSX.Element;
7
- args: {
8
- disabled: boolean;
9
- errorMessage: string;
10
- hasError: boolean;
11
- label: string;
12
- hintText: string;
13
- required: boolean;
14
- isValid: boolean;
15
- isValidVisible: boolean;
16
- isInvalidVisible: boolean;
17
- apiKey: string;
18
- onAddressSelected: (address: unknown) => void;
19
- };
20
- tags: string[];
21
- };
22
- export default _default;
23
- type Story = StoryObj;
24
- export declare const AddressLookupStory: Story;
@@ -1 +0,0 @@
1
- export {};
@@ -1,20 +0,0 @@
1
- import { type StoryObj } from "@storybook/react-vite";
2
- import { Avatar } from ".";
3
- declare const _default: {
4
- title: string;
5
- component: typeof Avatar;
6
- args: {
7
- name: string;
8
- size: string;
9
- alt: string;
10
- };
11
- tags: string[];
12
- };
13
- export default _default;
14
- type Story = StoryObj<typeof Avatar>;
15
- export declare const Default: Story;
16
- export declare const Small: Story;
17
- export declare const Medium: Story;
18
- export declare const Large: Story;
19
- export declare const ExtraLarge: Story;
20
- export declare const CustomImage: Story;
@@ -1 +0,0 @@
1
- export {};
@@ -1,17 +0,0 @@
1
- import { type StoryObj } from "@storybook/react-vite";
2
- import { Badge } from ".";
3
- declare const _default: {
4
- title: string;
5
- component: typeof Badge;
6
- args: {
7
- backgroundColor: string;
8
- textColor: string;
9
- };
10
- tags: string[];
11
- };
12
- export default _default;
13
- type Story = StoryObj<typeof Badge>;
14
- export declare const Default: Story;
15
- export declare const BadgeWithText: Story;
16
- export declare const BadgeWithColour: Story;
17
- export declare const BadgeWithInverseColours: Story;
@@ -1 +0,0 @@
1
- export {};
@@ -1,14 +0,0 @@
1
- import React from "react";
2
- import { type StoryObj } from "@storybook/react-vite";
3
- import Box from ".";
4
- declare const _default: {
5
- title: string;
6
- component: ({ ...props }: import(".").BoxProps) => React.JSX.Element;
7
- args: {};
8
- tags: string[];
9
- };
10
- export default _default;
11
- type Story = StoryObj<typeof Box>;
12
- export declare const Default: Story;
13
- export declare const BoxWithColour: Story;
14
- export declare const BoxWithColourWithCustomSpacing: Story;
@@ -1 +0,0 @@
1
- export {};
@@ -1,23 +0,0 @@
1
- import React from "react";
2
- import { type StoryObj } from "@storybook/react-vite";
3
- import { Button } from "./";
4
- declare const _default: {
5
- title: string;
6
- component: (props: import("./").ButtonProps) => React.JSX.Element;
7
- args: {
8
- appearance: string;
9
- disabled: boolean;
10
- children: string;
11
- full: boolean;
12
- size: string;
13
- };
14
- tags: string[];
15
- };
16
- export default _default;
17
- type Story = StoryObj<typeof Button>;
18
- export declare const Default: Story;
19
- export declare const Primary: Story;
20
- export declare const PrimaryAnchorButton: Story;
21
- export declare const Secondary: Story;
22
- export declare const Tertiary: Story;
23
- export declare const WithIcons: Story;
@@ -1 +0,0 @@
1
- export {};
@@ -1,14 +0,0 @@
1
- import React from "react";
2
- import { type StoryObj } from "@storybook/react-vite";
3
- import Carousel, { type CarouselProps } from ".";
4
- declare const _default: {
5
- title: string;
6
- component: React.MemoExoticComponent<({ startPosition, children, onPositionChanged, shrinkUnselectedPages, fullWidthChild, }: CarouselProps) => React.JSX.Element>;
7
- args: {};
8
- render: (args: CarouselProps) => React.JSX.Element;
9
- tags: string[];
10
- };
11
- export default _default;
12
- type Story = StoryObj<typeof Carousel>;
13
- export declare const Default: Story;
14
- export declare const WithExternalPositionState: Story;
@@ -1 +0,0 @@
1
- export {};
@@ -1,19 +0,0 @@
1
- import React from "react";
2
- import { type StoryObj } from "@storybook/react-vite";
3
- import CheckBox, { type CheckBoxProps } from ".";
4
- declare const _default: {
5
- title: string;
6
- component: (props: CheckBoxProps) => React.JSX.Element;
7
- args: {
8
- id: string;
9
- disabled: boolean;
10
- value: string;
11
- hasError: boolean;
12
- errorMessage: string;
13
- };
14
- tags: string[];
15
- };
16
- export default _default;
17
- type Story = StoryObj<typeof CheckBox>;
18
- export declare const Default: Story;
19
- export declare const CheckboxDefaultError: Story;
@@ -1 +0,0 @@
1
- export {};
@@ -1,18 +0,0 @@
1
- import React from "react";
2
- import { type StoryObj } from "@storybook/react-vite";
3
- import Collapse from ".";
4
- declare const _default: {
5
- title: string;
6
- component: typeof Collapse;
7
- args: {
8
- id: string;
9
- headerTitleText: string;
10
- children: React.JSX.Element;
11
- };
12
- tags: string[];
13
- };
14
- export default _default;
15
- type Story = StoryObj<typeof Collapse>;
16
- export declare const CollapseWithTextHeader: Story;
17
- export declare const CollapseWithModifiedText: Story;
18
- export declare const CollapseWitCustomHeader: Story;
@@ -1 +0,0 @@
1
- export {};
@@ -1,27 +0,0 @@
1
- import { type StoryObj } from "@storybook/react-vite";
2
- import DateField from ".";
3
- declare const _default: {
4
- title: string;
5
- component: typeof DateField;
6
- args: {
7
- dayName: string;
8
- monthName: string;
9
- yearName: string;
10
- label: string;
11
- hintText: string;
12
- onChange: () => void;
13
- onBlur: () => void;
14
- onFocus: () => void;
15
- disabled: boolean;
16
- required: boolean;
17
- dayHasError: boolean;
18
- monthHasError: boolean;
19
- yearHasError: boolean;
20
- errorMessage: string;
21
- };
22
- tags: string[];
23
- };
24
- export default _default;
25
- type Story = StoryObj<typeof DateField>;
26
- export declare const Default: Story;
27
- export declare const DateFieldWithError: Story;
@@ -1 +0,0 @@
1
- export {};
@@ -1,13 +0,0 @@
1
- import { type StoryObj } from "@storybook/react-vite";
2
- import ErrorText from ".";
3
- declare const _default: {
4
- title: string;
5
- component: typeof ErrorText;
6
- args: {
7
- children: string;
8
- };
9
- tags: string[];
10
- };
11
- export default _default;
12
- type Story = StoryObj<typeof ErrorText>;
13
- export declare const ErrorTextDefault: Story;
@@ -1 +0,0 @@
1
- export {};
@@ -1,12 +0,0 @@
1
- import React from "react";
2
- import { type StoryObj } from "@storybook/react-vite";
3
- import Footer, { type FooterProps } from ".";
4
- declare const _default: {
5
- title: string;
6
- component: typeof Footer;
7
- render: (args: FooterProps) => React.JSX.Element;
8
- tags: string[];
9
- };
10
- export default _default;
11
- type Story = StoryObj<typeof Footer>;
12
- export declare const FooterDefault: Story;
@@ -1 +0,0 @@
1
- export {};
@@ -1,19 +0,0 @@
1
- import React from "react";
2
- import { type StoryObj } from "@storybook/react-vite";
3
- import Header from ".";
4
- declare const _default: {
5
- title: string;
6
- component: typeof Header;
7
- args: {
8
- siteSlogan: string;
9
- children: React.JSX.Element;
10
- isSticky: boolean;
11
- fullWidth: boolean;
12
- };
13
- tags: string[];
14
- };
15
- export default _default;
16
- type Story = StoryObj<typeof Header>;
17
- export declare const HeaderDefault: Story;
18
- export declare const HeaderFullWidth: Story;
19
- export declare const HeaderSticky: Story;
@@ -1 +0,0 @@
1
- export {};
@@ -1,19 +0,0 @@
1
- import { type StoryObj } from "@storybook/react-vite";
2
- import Heading from ".";
3
- declare const _default: {
4
- title: string;
5
- component: typeof Heading;
6
- args: {};
7
- tags: string[];
8
- };
9
- export default _default;
10
- type Story = StoryObj<typeof Heading>;
11
- export declare const DefaultHeading: Story;
12
- export declare const HeadingSize: Story;
13
- export declare const HeadingAligned: Story;
14
- export declare const H1: Story;
15
- export declare const H2: Story;
16
- export declare const H3: Story;
17
- export declare const H4: Story;
18
- export declare const H5: Story;
19
- export declare const H6: Story;
@@ -1 +0,0 @@
1
- export {};
@@ -1,13 +0,0 @@
1
- import { type StoryObj } from "@storybook/react-vite";
2
- import { IconFa } from "..";
3
- declare const _default: {
4
- title: string;
5
- component: typeof IconFa;
6
- args: {
7
- faIcon: import("@fortawesome/fontawesome-common-types").IconDefinition;
8
- };
9
- tags: string[];
10
- };
11
- export default _default;
12
- type Story = StoryObj<typeof IconFa>;
13
- export declare const IconFADefault: Story;
@@ -1 +0,0 @@
1
- export {};
@@ -1,20 +0,0 @@
1
- import React from "react";
2
- import { type StoryObj } from "@storybook/react-vite";
3
- import InfoBox from ".";
4
- declare const _default: {
5
- title: string;
6
- component: ({ children, titleText, titleTextColor, descriptionText, descriptionTextColor, icon, ref, ...spacingAndHTMLElementProps }: import(".").InfoBoxProps) => React.JSX.Element;
7
- args: {
8
- titleText: string;
9
- titleTextColor: string;
10
- descriptionText: string;
11
- descriptionTextColor: string;
12
- icon: React.JSX.Element;
13
- };
14
- tags: string[];
15
- };
16
- export default _default;
17
- type Story = StoryObj<typeof InfoBox>;
18
- export declare const InfoBoxDefault: Story;
19
- export declare const InfoBoxCustomBackground: Story;
20
- export declare const InfoBoxWithChildren: Story;
@@ -1,17 +0,0 @@
1
- import { type StoryObj } from "@storybook/react-vite";
2
- import LegendWrapper from ".";
3
- declare const _default: {
4
- title: string;
5
- component: typeof LegendWrapper;
6
- args: {
7
- legendText: string;
8
- hintText: string;
9
- };
10
- tags: string[];
11
- };
12
- export default _default;
13
- type Story = StoryObj<typeof LegendWrapper>;
14
- export declare const LegendWrapperRadio: Story;
15
- export declare const LegendWrapperRadioError: Story;
16
- export declare const LegendWrapperCheckbox: Story;
17
- export declare const LegendWrapperCheckboxError: Story;
@@ -1 +0,0 @@
1
- export {};
@@ -1,24 +0,0 @@
1
- import React from "react";
2
- import { type StoryObj } from "@storybook/react-vite";
3
- import Link from ".";
4
- declare const _default: {
5
- title: string;
6
- component: {
7
- (props: import(".").LinkProps): React.JSX.Element;
8
- displayName: string;
9
- };
10
- args: {
11
- appearance: undefined;
12
- href: string;
13
- children: string;
14
- rel: undefined;
15
- target: undefined;
16
- };
17
- tags: string[];
18
- };
19
- export default _default;
20
- type Story = StoryObj<typeof Link>;
21
- export declare const Default: Story;
22
- export declare const Primary: Story;
23
- export declare const Secondary: Story;
24
- export declare const WithImage: Story;
@@ -1 +0,0 @@
1
- export {};
@@ -1,11 +0,0 @@
1
- import { type StoryObj } from "@storybook/react-vite";
2
- import Loader from ".";
3
- declare const _default: {
4
- title: string;
5
- component: typeof Loader;
6
- args: {};
7
- tags: string[];
8
- };
9
- export default _default;
10
- type Story = StoryObj<typeof Loader>;
11
- export declare const LoaderDefault: Story;
@@ -1 +0,0 @@
1
- export {};
@@ -1,11 +0,0 @@
1
- import { type StoryObj } from "@storybook/react-vite";
2
- import Modal from ".";
3
- declare const _default: {
4
- title: string;
5
- component: typeof Modal;
6
- args: {};
7
- tags: string[];
8
- };
9
- export default _default;
10
- type Story = StoryObj<typeof Modal>;
11
- export declare const ModalDefault: Story;
@@ -1 +0,0 @@
1
- export {};