@cruk/cruk-react-components 4.2.2 → 5.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.
- package/README.md +25 -17
- package/lib/components/AddressLookup/AddressLookup.stories.d.ts +1 -15
- package/lib/components/AddressLookup/index.d.ts +3 -30
- package/lib/components/AddressLookup/styles.d.ts +13 -9
- package/lib/components/AllThemesWrapper.d.ts +2 -2
- package/lib/components/Avatar/Avatar.stories.d.ts +2 -3
- package/lib/components/Avatar/index.d.ts +2 -2
- package/lib/components/Avatar/styles.d.ts +2 -2
- package/lib/components/Badge/Badge.stories.d.ts +2 -3
- package/lib/components/Badge/index.d.ts +3 -3
- package/lib/components/Badge/styles.d.ts +2 -2
- package/lib/components/Box/Box.stories.d.ts +1 -1
- package/lib/components/Box/index.d.ts +7 -6
- package/lib/components/Box/styles.d.ts +7 -6
- package/lib/components/Button/Button.stories.d.ts +1 -11
- package/lib/components/Button/index.d.ts +5 -23
- package/lib/components/Button/styles.d.ts +4 -4
- package/lib/components/Carousel/Dots.d.ts +1 -1
- package/lib/components/Carousel/index.d.ts +1 -1
- package/lib/components/Carousel/styles.d.ts +16 -14
- package/lib/components/Checkbox/Checkbox.stories.d.ts +2 -7
- package/lib/components/Checkbox/index.d.ts +3 -10
- package/lib/components/Checkbox/styles.d.ts +6 -6
- package/lib/components/Collapse/Collapse.stories.d.ts +1 -1
- package/lib/components/Collapse/index.d.ts +3 -3
- package/lib/components/Collapse/styles.d.ts +15 -21
- package/lib/components/DateField/DateField.stories.d.ts +1 -2
- package/lib/components/DateField/index.d.ts +2 -2
- package/lib/components/DateField/styles.d.ts +10 -6
- package/lib/components/Divider.d.ts +1 -1
- package/lib/components/ErrorText/ErrorText.stories.d.ts +1 -2
- package/lib/components/ErrorText/index.d.ts +3 -3
- package/lib/components/ErrorText/styles.d.ts +4 -2
- package/lib/components/Flex.d.ts +6 -2
- package/lib/components/Fontface.d.ts +4 -2
- package/lib/components/Footer/Footer.stories.d.ts +1 -1
- package/lib/components/Footer/index.d.ts +2 -2
- package/lib/components/Footer/styles.d.ts +18 -12
- package/lib/components/GlobalStyle.d.ts +2 -8
- package/lib/components/GlobalStyleNoFontFace.d.ts +2 -8
- package/lib/components/Header/Header.stories.d.ts +2 -2
- package/lib/components/Header/index.d.ts +2 -2
- package/lib/components/Header/styles.d.ts +20 -21
- package/lib/components/Heading/Heading.stories.d.ts +1 -2
- package/lib/components/Heading/index.d.ts +4 -4
- package/lib/components/Heading/styles.d.ts +16 -49
- package/lib/components/IconFa/IconFa.stories.d.ts +1 -2
- package/lib/components/IconFa/index.d.ts +2 -2
- package/lib/components/IconFa/styles.d.ts +7 -4
- package/lib/components/InfoBox/InfoBox.stories.d.ts +1 -1
- package/lib/components/InfoBox/index.d.ts +3 -3
- package/lib/components/InfoBox/styles.d.ts +8 -11
- package/lib/components/LabelWrapper/index.d.ts +2 -7
- package/lib/components/LabelWrapper/styles.d.ts +9 -7
- package/lib/components/LegendWrapper/LegendWrapper.stories.d.ts +2 -3
- package/lib/components/LegendWrapper/index.d.ts +2 -2
- package/lib/components/LegendWrapper/styles.d.ts +4 -4
- package/lib/components/Link/Link.stories.d.ts +1 -7
- package/lib/components/Link/index.d.ts +3 -14
- package/lib/components/Link/styles.d.ts +10 -17
- package/lib/components/Loader/Loader.stories.d.ts +1 -2
- package/lib/components/Loader/index.d.ts +1 -1
- package/lib/components/Loader/styles.d.ts +3 -3
- package/lib/components/Modal/Modal.stories.d.ts +2 -3
- package/lib/components/Modal/index.d.ts +3 -3
- package/lib/components/Modal/styles.d.ts +9 -15
- package/lib/components/Pagination/Pagination.stories.d.ts +1 -2
- package/lib/components/Pagination/index.d.ts +2 -2
- package/lib/components/Pagination/styles.d.ts +9 -9
- package/lib/components/PopOver/Popover.stories.d.ts +2 -2
- package/lib/components/PopOver/index.d.ts +3 -3
- package/lib/components/PopOver/styles.d.ts +7 -7
- package/lib/components/ProgressBar/ProgressBar.stories.d.ts +1 -2
- package/lib/components/ProgressBar/index.d.ts +2 -2
- package/lib/components/ProgressBar/styles.d.ts +20 -14
- package/lib/components/Radio/Radio.stories.d.ts +2 -7
- package/lib/components/Radio/index.d.ts +3 -10
- package/lib/components/Radio/styles.d.ts +7 -7
- package/lib/components/RadioConsent/Radio.stories.d.ts +2 -3
- package/lib/components/RadioConsent/index.d.ts +7 -6
- package/lib/components/RadioConsent/styles.d.ts +8 -10
- package/lib/components/Select/Selelct.stories.d.ts +1 -1
- package/lib/components/Select/index.d.ts +3 -3
- package/lib/components/Select/styles.d.ts +2 -2
- package/lib/components/Spacing/index.d.ts +2 -2
- package/lib/components/Step/Step.stories.d.ts +1 -2
- package/lib/components/Step/index.d.ts +2 -2
- package/lib/components/Step/styles.d.ts +7 -6
- package/lib/components/Text/Text.stories.d.ts +1 -1
- package/lib/components/Text/index.d.ts +5 -5
- package/lib/components/Text/styles.d.ts +4 -14
- package/lib/components/TextAreaField/TextAreaField.stories.d.ts +2 -3
- package/lib/components/TextAreaField/index.d.ts +3 -3
- package/lib/components/TextAreaField/styles.d.ts +2 -2
- package/lib/components/TextField/TextField.stories.d.ts +1 -1
- package/lib/components/TextField/index.d.ts +2 -2
- package/lib/components/TextField/styles.d.ts +11 -7
- package/lib/components/ThemeCheatSheet.d.ts +6 -5
- package/lib/components/Totaliser/Totaliser.stories.d.ts +1 -2
- package/lib/components/Totaliser/index.d.ts +2 -2
- package/lib/components/Totaliser/styles.d.ts +14 -12
- package/lib/components/UserBlock/UserBlock.stories.d.ts +1 -2
- package/lib/components/UserBlock/index.d.ts +2 -2
- package/lib/components/UserBlock/styles.d.ts +5 -5
- package/lib/components/index.d.ts +41 -41
- package/lib/hooks/useEffectBrowser.d.ts +1 -1
- package/lib/hooks/useKey.d.ts +3 -3
- package/lib/hooks/useLayoutEffectBrowser.d.ts +1 -1
- package/lib/hooks/useScrollPosition.d.ts +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +1 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/extends.js +2 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +1 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +2 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +2 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/toPrimitive.js.map +1 -0
- package/lib/{es/node_modules → node_modules}/@babel/runtime/helpers/esm/toPropertyKey.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js.map +1 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/typeof.js.map +1 -0
- package/lib/{es/node_modules/@fortawesome/free-solid-svg-icons/index.mjs.js → node_modules/@fortawesome/free-solid-svg-icons/index.js} +1 -1
- package/lib/node_modules/@fortawesome/free-solid-svg-icons/index.js.map +1 -0
- package/lib/node_modules/focus-lock/dist/es2015/commands.js +2 -0
- package/lib/node_modules/focus-lock/dist/es2015/commands.js.map +1 -0
- package/lib/node_modules/focus-lock/dist/es2015/constants.js.map +1 -0
- package/lib/node_modules/focus-lock/dist/es2015/focusInside.js.map +1 -0
- package/lib/node_modules/focus-lock/dist/es2015/focusIsHidden.js.map +1 -0
- package/lib/node_modules/focus-lock/dist/es2015/focusSolver.js +2 -0
- package/lib/node_modules/focus-lock/dist/es2015/focusSolver.js.map +1 -0
- package/lib/node_modules/focus-lock/dist/es2015/focusables.js +2 -0
- package/lib/node_modules/focus-lock/dist/es2015/focusables.js.map +1 -0
- package/lib/node_modules/focus-lock/dist/es2015/moveFocusInside.js.map +1 -0
- package/lib/node_modules/focus-lock/dist/es2015/return-focus.js +2 -0
- package/lib/node_modules/focus-lock/dist/es2015/return-focus.js.map +1 -0
- package/lib/node_modules/focus-lock/dist/es2015/sibling.js +2 -0
- package/lib/node_modules/focus-lock/dist/es2015/sibling.js.map +1 -0
- package/lib/node_modules/focus-lock/dist/es2015/solver.js +2 -0
- package/lib/node_modules/focus-lock/dist/es2015/solver.js.map +1 -0
- package/lib/node_modules/focus-lock/dist/es2015/utils/DOMutils.js.map +1 -0
- package/lib/node_modules/focus-lock/dist/es2015/utils/all-affected.js.map +1 -0
- package/lib/node_modules/focus-lock/dist/es2015/utils/array.js.map +1 -0
- package/lib/node_modules/focus-lock/dist/es2015/utils/auto-focus.js.map +1 -0
- package/lib/node_modules/focus-lock/dist/es2015/utils/correctFocus.js.map +1 -0
- package/lib/{es/node_modules → node_modules}/focus-lock/dist/es2015/utils/firstFocus.js +1 -1
- package/lib/node_modules/focus-lock/dist/es2015/utils/firstFocus.js.map +1 -0
- package/lib/node_modules/focus-lock/dist/es2015/utils/getActiveElement.js.map +1 -0
- package/lib/node_modules/focus-lock/dist/es2015/utils/is.js +2 -0
- package/lib/node_modules/focus-lock/dist/es2015/utils/is.js.map +1 -0
- package/lib/node_modules/focus-lock/dist/es2015/utils/parenting.js.map +1 -0
- package/lib/node_modules/focus-lock/dist/es2015/utils/safe.js.map +1 -0
- package/lib/node_modules/focus-lock/dist/es2015/utils/tabOrder.js +2 -0
- package/lib/node_modules/focus-lock/dist/es2015/utils/tabOrder.js.map +1 -0
- package/lib/node_modules/focus-lock/dist/es2015/utils/tabUtils.js.map +1 -0
- package/lib/node_modules/focus-lock/dist/es2015/utils/tabbables.js.map +1 -0
- package/lib/node_modules/react-clientside-effect/lib/index.es.js.map +1 -0
- package/lib/{es/node_modules → node_modules}/react-focus-lock/dist/es2015/Combination.js +1 -1
- package/lib/node_modules/react-focus-lock/dist/es2015/Combination.js.map +1 -0
- package/lib/node_modules/react-focus-lock/dist/es2015/FocusGuard.js.map +1 -0
- package/lib/node_modules/react-focus-lock/dist/es2015/Lock.js +2 -0
- package/lib/node_modules/react-focus-lock/dist/es2015/Lock.js.map +1 -0
- package/lib/node_modules/react-focus-lock/dist/es2015/Trap.js +2 -0
- package/lib/node_modules/react-focus-lock/dist/es2015/Trap.js.map +1 -0
- package/lib/node_modules/react-focus-lock/dist/es2015/index.js +2 -0
- package/lib/node_modules/react-focus-lock/dist/es2015/medium.js +2 -0
- package/lib/node_modules/react-focus-lock/dist/es2015/medium.js.map +1 -0
- package/lib/node_modules/react-focus-lock/dist/es2015/scope.js +2 -0
- package/lib/node_modules/react-focus-lock/dist/es2015/scope.js.map +1 -0
- package/lib/node_modules/react-focus-lock/dist/es2015/util.js +2 -0
- package/lib/node_modules/react-focus-lock/dist/es2015/util.js.map +1 -0
- package/lib/node_modules/react-intersection-observer/dist/index.js +2 -0
- package/lib/node_modules/react-intersection-observer/dist/index.js.map +1 -0
- package/lib/{es/_virtual/_tslib.js → node_modules/tslib/tslib.es6.js} +1 -1
- package/lib/node_modules/tslib/tslib.es6.js.map +1 -0
- package/lib/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -0
- package/lib/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +2 -0
- package/lib/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -0
- package/lib/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -0
- package/lib/node_modules/use-sidecar/dist/es2015/medium.js +2 -0
- package/lib/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -0
- package/lib/src/components/AddressLookup/index.js +2 -0
- package/lib/src/components/AddressLookup/index.js.map +1 -0
- package/lib/src/components/AddressLookup/styles.js +2 -0
- package/lib/src/components/AddressLookup/styles.js.map +1 -0
- package/lib/src/components/Avatar/index.js +2 -0
- package/lib/src/components/Avatar/index.js.map +1 -0
- package/lib/src/components/Avatar/styles.js +2 -0
- package/lib/src/components/Avatar/styles.js.map +1 -0
- package/lib/src/components/Badge/index.js +2 -0
- package/lib/src/components/Badge/index.js.map +1 -0
- package/lib/src/components/Badge/styles.js +2 -0
- package/lib/src/components/Badge/styles.js.map +1 -0
- package/lib/src/components/Box/index.js +2 -0
- package/lib/src/components/Box/index.js.map +1 -0
- package/lib/src/components/Box/styles.js +2 -0
- package/lib/src/components/Box/styles.js.map +1 -0
- package/lib/src/components/Button/index.js +2 -0
- package/lib/src/components/Button/index.js.map +1 -0
- package/lib/src/components/Button/styles.js +2 -0
- package/lib/src/components/Button/styles.js.map +1 -0
- package/lib/src/components/Carousel/Dots.js +2 -0
- package/lib/src/components/Carousel/Dots.js.map +1 -0
- package/lib/src/components/Carousel/index.js +2 -0
- package/lib/src/components/Carousel/index.js.map +1 -0
- package/lib/src/components/Carousel/styles.js +2 -0
- package/lib/src/components/Carousel/styles.js.map +1 -0
- package/lib/src/components/Checkbox/index.js +2 -0
- package/lib/src/components/Checkbox/index.js.map +1 -0
- package/lib/src/components/Checkbox/styles.js +2 -0
- package/lib/src/components/Checkbox/styles.js.map +1 -0
- package/lib/src/components/Collapse/index.js +2 -0
- package/lib/src/components/Collapse/index.js.map +1 -0
- package/lib/src/components/Collapse/styles.js +2 -0
- package/lib/src/components/Collapse/styles.js.map +1 -0
- package/lib/src/components/DateField/index.js +2 -0
- package/lib/src/components/DateField/index.js.map +1 -0
- package/lib/src/components/DateField/styles.js +2 -0
- package/lib/src/components/DateField/styles.js.map +1 -0
- package/lib/src/components/Divider.js +2 -0
- package/lib/src/components/Divider.js.map +1 -0
- package/lib/src/components/ErrorText/index.js +2 -0
- package/lib/src/components/ErrorText/index.js.map +1 -0
- package/lib/src/components/ErrorText/styles.js +2 -0
- package/lib/src/components/ErrorText/styles.js.map +1 -0
- package/lib/src/components/Flex.js +2 -0
- package/lib/src/components/Flex.js.map +1 -0
- package/lib/src/components/Fontface.js +2 -0
- package/lib/src/components/Fontface.js.map +1 -0
- package/lib/src/components/Footer/index.js +2 -0
- package/lib/src/components/Footer/index.js.map +1 -0
- package/lib/src/components/Footer/styles.js +2 -0
- package/lib/src/components/Footer/styles.js.map +1 -0
- package/lib/src/components/GlobalStyle.js +2 -0
- package/lib/src/components/GlobalStyle.js.map +1 -0
- package/lib/src/components/GlobalStyleNoFontFace.js +2 -0
- package/lib/src/components/GlobalStyleNoFontFace.js.map +1 -0
- package/lib/src/components/Header/index.js +2 -0
- package/lib/src/components/Header/index.js.map +1 -0
- package/lib/src/components/Header/styles.js +2 -0
- package/lib/src/components/Header/styles.js.map +1 -0
- package/lib/src/components/Heading/index.js +2 -0
- package/lib/src/components/Heading/index.js.map +1 -0
- package/lib/src/components/Heading/styles.js +2 -0
- package/lib/src/components/Heading/styles.js.map +1 -0
- package/lib/src/components/IconFa/index.js +2 -0
- package/lib/src/components/IconFa/index.js.map +1 -0
- package/lib/src/components/IconFa/styles.js +2 -0
- package/lib/src/components/IconFa/styles.js.map +1 -0
- package/lib/src/components/InfoBox/index.js +2 -0
- package/lib/src/components/InfoBox/index.js.map +1 -0
- package/lib/src/components/InfoBox/styles.js +2 -0
- package/lib/src/components/InfoBox/styles.js.map +1 -0
- package/lib/src/components/LabelWrapper/index.js +2 -0
- package/lib/src/components/LabelWrapper/index.js.map +1 -0
- package/lib/src/components/LabelWrapper/styles.js +2 -0
- package/lib/src/components/LabelWrapper/styles.js.map +1 -0
- package/lib/src/components/LegendWrapper/index.js +2 -0
- package/lib/src/components/LegendWrapper/index.js.map +1 -0
- package/lib/src/components/LegendWrapper/styles.js +2 -0
- package/lib/src/components/LegendWrapper/styles.js.map +1 -0
- package/lib/src/components/Link/index.js +2 -0
- package/lib/src/components/Link/index.js.map +1 -0
- package/lib/src/components/Link/styles.js +2 -0
- package/lib/src/components/Link/styles.js.map +1 -0
- package/lib/src/components/Loader/index.js +2 -0
- package/lib/src/components/Loader/index.js.map +1 -0
- package/lib/src/components/Loader/styles.js +2 -0
- package/lib/src/components/Loader/styles.js.map +1 -0
- package/lib/src/components/Modal/index.js +2 -0
- package/lib/src/components/Modal/index.js.map +1 -0
- package/lib/src/components/Modal/styles.js +2 -0
- package/lib/src/components/Modal/styles.js.map +1 -0
- package/lib/src/components/Pagination/index.js +2 -0
- package/lib/src/components/Pagination/index.js.map +1 -0
- package/lib/src/components/Pagination/styles.js +2 -0
- package/lib/src/components/Pagination/styles.js.map +1 -0
- package/lib/src/components/PopOver/index.js +2 -0
- package/lib/src/components/PopOver/index.js.map +1 -0
- package/lib/src/components/PopOver/styles.js +2 -0
- package/lib/src/components/PopOver/styles.js.map +1 -0
- package/lib/src/components/ProgressBar/index.js +2 -0
- package/lib/src/components/ProgressBar/index.js.map +1 -0
- package/lib/src/components/ProgressBar/styles.js +2 -0
- package/lib/src/components/ProgressBar/styles.js.map +1 -0
- package/lib/src/components/Radio/index.js +2 -0
- package/lib/src/components/Radio/index.js.map +1 -0
- package/lib/src/components/Radio/styles.js +2 -0
- package/lib/src/components/Radio/styles.js.map +1 -0
- package/lib/src/components/RadioConsent/index.js +2 -0
- package/lib/src/components/RadioConsent/index.js.map +1 -0
- package/lib/src/components/RadioConsent/styles.js +2 -0
- package/lib/src/components/RadioConsent/styles.js.map +1 -0
- package/lib/src/components/Select/index.js +2 -0
- package/lib/src/components/Select/index.js.map +1 -0
- package/lib/src/components/Select/styles.js +2 -0
- package/lib/src/components/Select/styles.js.map +1 -0
- package/lib/src/components/Spacing/index.js +2 -0
- package/lib/src/components/Spacing/index.js.map +1 -0
- package/lib/src/components/Step/index.js +2 -0
- package/lib/src/components/Step/index.js.map +1 -0
- package/lib/src/components/Step/styles.js +2 -0
- package/lib/src/components/Step/styles.js.map +1 -0
- package/lib/src/components/Text/index.js +2 -0
- package/lib/src/components/Text/index.js.map +1 -0
- package/lib/src/components/Text/styles.js +2 -0
- package/lib/src/components/Text/styles.js.map +1 -0
- package/lib/src/components/TextAreaField/index.js +2 -0
- package/lib/src/components/TextAreaField/index.js.map +1 -0
- package/lib/src/components/TextAreaField/styles.js +2 -0
- package/lib/src/components/TextAreaField/styles.js.map +1 -0
- package/lib/src/components/TextField/index.js +2 -0
- package/lib/src/components/TextField/index.js.map +1 -0
- package/lib/src/components/TextField/styles.js +2 -0
- package/lib/src/components/TextField/styles.js.map +1 -0
- package/lib/src/components/Totaliser/index.js +2 -0
- package/lib/src/components/Totaliser/index.js.map +1 -0
- package/lib/src/components/Totaliser/styles.js +2 -0
- package/lib/src/components/Totaliser/styles.js.map +1 -0
- package/lib/src/components/UserBlock/index.js +2 -0
- package/lib/src/components/UserBlock/index.js.map +1 -0
- package/lib/src/components/UserBlock/styles.js +2 -0
- package/lib/src/components/UserBlock/styles.js.map +1 -0
- package/lib/src/components/index.js +2 -0
- package/lib/src/hooks/useEffectBrowser.js.map +1 -0
- package/lib/src/hooks/useKey.js.map +1 -0
- package/lib/src/hooks/useLayoutEffectBrowser.js.map +1 -0
- package/lib/{es/src → src}/hooks/useScrollPosition.js +1 -1
- package/lib/src/hooks/useScrollPosition.js.map +1 -0
- package/lib/src/themes/bowelbabe.js +2 -0
- package/lib/src/themes/bowelbabe.js.map +1 -0
- package/lib/{es/src → src}/themes/cruk.js +1 -1
- package/lib/src/themes/cruk.js.map +1 -0
- package/lib/src/themes/rfl.js +2 -0
- package/lib/src/themes/rfl.js.map +1 -0
- package/lib/src/themes/su2c.js +2 -0
- package/lib/src/themes/su2c.js.map +1 -0
- package/lib/src/utils/Helper.js +2 -0
- package/lib/src/utils/Helper.js.map +1 -0
- package/lib/{es/src → src}/utils/debounce.js +1 -1
- package/lib/src/utils/debounce.js.map +1 -0
- package/lib/themes/bowelbabe.d.ts +3 -3
- package/lib/themes/cruk.d.ts +3 -3
- package/lib/themes/rfl.d.ts +3 -3
- package/lib/themes/su2c.d.ts +3 -3
- package/lib/types.d.ts +1 -3
- package/lib/utils/debounce.d.ts +2 -2
- package/package.json +44 -55
- package/lib/es/_virtual/_tslib.js.map +0 -1
- package/lib/es/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +0 -1
- package/lib/es/node_modules/@babel/runtime/helpers/esm/extends.js +0 -2
- package/lib/es/node_modules/@babel/runtime/helpers/esm/extends.js.map +0 -1
- package/lib/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +0 -1
- package/lib/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -2
- package/lib/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +0 -1
- package/lib/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +0 -1
- package/lib/es/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -2
- package/lib/es/node_modules/@babel/runtime/helpers/esm/toPrimitive.js.map +0 -1
- package/lib/es/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js.map +0 -1
- package/lib/es/node_modules/@babel/runtime/helpers/esm/typeof.js.map +0 -1
- package/lib/es/node_modules/@fortawesome/free-solid-svg-icons/index.mjs.js.map +0 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/commands.js +0 -2
- package/lib/es/node_modules/focus-lock/dist/es2015/commands.js.map +0 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/constants.js.map +0 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/focusInside.js.map +0 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/focusIsHidden.js.map +0 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/focusSolver.js +0 -2
- package/lib/es/node_modules/focus-lock/dist/es2015/focusSolver.js.map +0 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/focusables.js +0 -2
- package/lib/es/node_modules/focus-lock/dist/es2015/focusables.js.map +0 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/moveFocusInside.js.map +0 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/solver.js +0 -2
- package/lib/es/node_modules/focus-lock/dist/es2015/solver.js.map +0 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/DOMutils.js.map +0 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/all-affected.js.map +0 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/array.js.map +0 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/auto-focus.js.map +0 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/correctFocus.js.map +0 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/firstFocus.js.map +0 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/getActiveElement.js.map +0 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/is.js +0 -2
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/is.js.map +0 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/parenting.js.map +0 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/safe.js.map +0 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/tabOrder.js +0 -2
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/tabOrder.js.map +0 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/tabUtils.js.map +0 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/tabbables.js.map +0 -1
- package/lib/es/node_modules/react-clientside-effect/lib/index.es.js.map +0 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/Combination.js.map +0 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/FocusGuard.js.map +0 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/Lock.js +0 -2
- package/lib/es/node_modules/react-focus-lock/dist/es2015/Lock.js.map +0 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/Trap.js +0 -2
- package/lib/es/node_modules/react-focus-lock/dist/es2015/Trap.js.map +0 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/index.js +0 -2
- package/lib/es/node_modules/react-focus-lock/dist/es2015/medium.js +0 -2
- package/lib/es/node_modules/react-focus-lock/dist/es2015/medium.js.map +0 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/util.js +0 -2
- package/lib/es/node_modules/react-focus-lock/dist/es2015/util.js.map +0 -1
- package/lib/es/node_modules/react-intersection-observer/index.mjs.js +0 -2
- package/lib/es/node_modules/react-intersection-observer/index.mjs.js.map +0 -1
- package/lib/es/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +0 -1
- package/lib/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -2
- package/lib/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +0 -1
- package/lib/es/node_modules/use-callback-ref/dist/es2015/useRef.js.map +0 -1
- package/lib/es/node_modules/use-sidecar/dist/es2015/medium.js +0 -2
- package/lib/es/node_modules/use-sidecar/dist/es2015/medium.js.map +0 -1
- package/lib/es/src/components/AddressLookup/index.js +0 -2
- package/lib/es/src/components/AddressLookup/styles.js +0 -2
- package/lib/es/src/components/AddressLookup/styles.js.map +0 -1
- package/lib/es/src/components/Avatar/index.js +0 -2
- package/lib/es/src/components/Avatar/index.js.map +0 -1
- package/lib/es/src/components/Avatar/styles.js +0 -2
- package/lib/es/src/components/Avatar/styles.js.map +0 -1
- package/lib/es/src/components/Badge/index.js +0 -2
- package/lib/es/src/components/Badge/index.js.map +0 -1
- package/lib/es/src/components/Badge/styles.js +0 -2
- package/lib/es/src/components/Badge/styles.js.map +0 -1
- package/lib/es/src/components/Box/index.js +0 -2
- package/lib/es/src/components/Box/index.js.map +0 -1
- package/lib/es/src/components/Box/styles.js +0 -2
- package/lib/es/src/components/Box/styles.js.map +0 -1
- package/lib/es/src/components/Button/index.js +0 -2
- package/lib/es/src/components/Button/index.js.map +0 -1
- package/lib/es/src/components/Button/styles.js +0 -2
- package/lib/es/src/components/Button/styles.js.map +0 -1
- package/lib/es/src/components/Carousel/Dots.js +0 -2
- package/lib/es/src/components/Carousel/Dots.js.map +0 -1
- package/lib/es/src/components/Carousel/index.js +0 -2
- package/lib/es/src/components/Carousel/index.js.map +0 -1
- package/lib/es/src/components/Carousel/styles.js +0 -2
- package/lib/es/src/components/Carousel/styles.js.map +0 -1
- package/lib/es/src/components/Checkbox/index.js +0 -2
- package/lib/es/src/components/Checkbox/index.js.map +0 -1
- package/lib/es/src/components/Checkbox/styles.js +0 -2
- package/lib/es/src/components/Checkbox/styles.js.map +0 -1
- package/lib/es/src/components/Collapse/index.js +0 -2
- package/lib/es/src/components/Collapse/index.js.map +0 -1
- package/lib/es/src/components/Collapse/styles.js +0 -2
- package/lib/es/src/components/Collapse/styles.js.map +0 -1
- package/lib/es/src/components/DateField/index.js +0 -2
- package/lib/es/src/components/DateField/index.js.map +0 -1
- package/lib/es/src/components/DateField/styles.js +0 -2
- package/lib/es/src/components/DateField/styles.js.map +0 -1
- package/lib/es/src/components/Divider.js +0 -2
- package/lib/es/src/components/Divider.js.map +0 -1
- package/lib/es/src/components/ErrorText/index.js +0 -2
- package/lib/es/src/components/ErrorText/index.js.map +0 -1
- package/lib/es/src/components/ErrorText/styles.js +0 -2
- package/lib/es/src/components/ErrorText/styles.js.map +0 -1
- package/lib/es/src/components/Flex.js +0 -2
- package/lib/es/src/components/Flex.js.map +0 -1
- package/lib/es/src/components/Fontface.js +0 -2
- package/lib/es/src/components/Fontface.js.map +0 -1
- package/lib/es/src/components/Footer/index.js +0 -2
- package/lib/es/src/components/Footer/index.js.map +0 -1
- package/lib/es/src/components/Footer/styles.js +0 -2
- package/lib/es/src/components/Footer/styles.js.map +0 -1
- package/lib/es/src/components/GlobalStyle.js +0 -2
- package/lib/es/src/components/GlobalStyle.js.map +0 -1
- package/lib/es/src/components/GlobalStyleNoFontFace.js +0 -2
- package/lib/es/src/components/GlobalStyleNoFontFace.js.map +0 -1
- package/lib/es/src/components/Header/index.js +0 -2
- package/lib/es/src/components/Header/index.js.map +0 -1
- package/lib/es/src/components/Header/styles.js +0 -2
- package/lib/es/src/components/Header/styles.js.map +0 -1
- package/lib/es/src/components/Heading/index.js +0 -2
- package/lib/es/src/components/Heading/index.js.map +0 -1
- package/lib/es/src/components/Heading/styles.js +0 -2
- package/lib/es/src/components/Heading/styles.js.map +0 -1
- package/lib/es/src/components/IconFa/index.js +0 -2
- package/lib/es/src/components/IconFa/index.js.map +0 -1
- package/lib/es/src/components/IconFa/styles.js +0 -2
- package/lib/es/src/components/IconFa/styles.js.map +0 -1
- package/lib/es/src/components/InfoBox/index.js +0 -2
- package/lib/es/src/components/InfoBox/index.js.map +0 -1
- package/lib/es/src/components/InfoBox/styles.js +0 -2
- package/lib/es/src/components/InfoBox/styles.js.map +0 -1
- package/lib/es/src/components/LabelWrapper/index.js +0 -2
- package/lib/es/src/components/LabelWrapper/index.js.map +0 -1
- package/lib/es/src/components/LabelWrapper/styles.js +0 -2
- package/lib/es/src/components/LabelWrapper/styles.js.map +0 -1
- package/lib/es/src/components/LegendWrapper/index.js +0 -2
- package/lib/es/src/components/LegendWrapper/index.js.map +0 -1
- package/lib/es/src/components/LegendWrapper/styles.js +0 -2
- package/lib/es/src/components/LegendWrapper/styles.js.map +0 -1
- package/lib/es/src/components/Link/index.js +0 -2
- package/lib/es/src/components/Link/index.js.map +0 -1
- package/lib/es/src/components/Link/styles.js +0 -2
- package/lib/es/src/components/Link/styles.js.map +0 -1
- package/lib/es/src/components/Loader/index.js +0 -2
- package/lib/es/src/components/Loader/index.js.map +0 -1
- package/lib/es/src/components/Loader/styles.js +0 -2
- package/lib/es/src/components/Loader/styles.js.map +0 -1
- package/lib/es/src/components/Modal/index.js +0 -2
- package/lib/es/src/components/Modal/index.js.map +0 -1
- package/lib/es/src/components/Modal/styles.js +0 -2
- package/lib/es/src/components/Modal/styles.js.map +0 -1
- package/lib/es/src/components/Pagination/index.js +0 -2
- package/lib/es/src/components/Pagination/index.js.map +0 -1
- package/lib/es/src/components/Pagination/styles.js +0 -2
- package/lib/es/src/components/Pagination/styles.js.map +0 -1
- package/lib/es/src/components/PopOver/index.js +0 -2
- package/lib/es/src/components/PopOver/index.js.map +0 -1
- package/lib/es/src/components/PopOver/styles.js +0 -2
- package/lib/es/src/components/PopOver/styles.js.map +0 -1
- package/lib/es/src/components/ProgressBar/index.js +0 -2
- package/lib/es/src/components/ProgressBar/index.js.map +0 -1
- package/lib/es/src/components/ProgressBar/styles.js +0 -2
- package/lib/es/src/components/ProgressBar/styles.js.map +0 -1
- package/lib/es/src/components/Radio/index.js +0 -2
- package/lib/es/src/components/Radio/index.js.map +0 -1
- package/lib/es/src/components/Radio/styles.js +0 -2
- package/lib/es/src/components/Radio/styles.js.map +0 -1
- package/lib/es/src/components/RadioConsent/index.js +0 -2
- package/lib/es/src/components/RadioConsent/index.js.map +0 -1
- package/lib/es/src/components/RadioConsent/styles.js +0 -2
- package/lib/es/src/components/RadioConsent/styles.js.map +0 -1
- package/lib/es/src/components/Select/index.js +0 -2
- package/lib/es/src/components/Select/index.js.map +0 -1
- package/lib/es/src/components/Select/styles.js +0 -2
- package/lib/es/src/components/Select/styles.js.map +0 -1
- package/lib/es/src/components/Spacing/index.js +0 -2
- package/lib/es/src/components/Spacing/index.js.map +0 -1
- package/lib/es/src/components/Step/index.js +0 -2
- package/lib/es/src/components/Step/index.js.map +0 -1
- package/lib/es/src/components/Step/styles.js +0 -2
- package/lib/es/src/components/Step/styles.js.map +0 -1
- package/lib/es/src/components/Text/index.js +0 -2
- package/lib/es/src/components/Text/index.js.map +0 -1
- package/lib/es/src/components/Text/styles.js +0 -2
- package/lib/es/src/components/Text/styles.js.map +0 -1
- package/lib/es/src/components/TextAreaField/index.js +0 -2
- package/lib/es/src/components/TextAreaField/index.js.map +0 -1
- package/lib/es/src/components/TextAreaField/styles.js +0 -2
- package/lib/es/src/components/TextAreaField/styles.js.map +0 -1
- package/lib/es/src/components/TextField/index.js +0 -2
- package/lib/es/src/components/TextField/index.js.map +0 -1
- package/lib/es/src/components/TextField/styles.js +0 -2
- package/lib/es/src/components/TextField/styles.js.map +0 -1
- package/lib/es/src/components/Totaliser/index.js +0 -2
- package/lib/es/src/components/Totaliser/index.js.map +0 -1
- package/lib/es/src/components/Totaliser/styles.js +0 -2
- package/lib/es/src/components/Totaliser/styles.js.map +0 -1
- package/lib/es/src/components/UserBlock/index.js +0 -2
- package/lib/es/src/components/UserBlock/index.js.map +0 -1
- package/lib/es/src/components/UserBlock/styles.js +0 -2
- package/lib/es/src/components/UserBlock/styles.js.map +0 -1
- package/lib/es/src/components/index.js +0 -2
- package/lib/es/src/components/index.js.map +0 -1
- package/lib/es/src/hooks/useEffectBrowser.js.map +0 -1
- package/lib/es/src/hooks/useKey.js.map +0 -1
- package/lib/es/src/hooks/useLayoutEffectBrowser.js.map +0 -1
- package/lib/es/src/hooks/useScrollPosition.js.map +0 -1
- package/lib/es/src/themes/bowelbabe.js +0 -2
- package/lib/es/src/themes/bowelbabe.js.map +0 -1
- package/lib/es/src/themes/cruk.js.map +0 -1
- package/lib/es/src/themes/rfl.js +0 -2
- package/lib/es/src/themes/rfl.js.map +0 -1
- package/lib/es/src/themes/su2c.js +0 -2
- package/lib/es/src/themes/su2c.js.map +0 -1
- package/lib/es/src/utils/Helper.js +0 -2
- package/lib/es/src/utils/Helper.js.map +0 -1
- package/lib/es/src/utils/debounce.js.map +0 -1
- /package/lib/{es/node_modules → node_modules}/@babel/runtime/helpers/esm/defineProperty.js +0 -0
- /package/lib/{es/node_modules → node_modules}/@babel/runtime/helpers/esm/inheritsLoose.js +0 -0
- /package/lib/{es/node_modules → node_modules}/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -0
- /package/lib/{es/node_modules → node_modules}/@babel/runtime/helpers/esm/typeof.js +0 -0
- /package/lib/{es/node_modules → node_modules}/focus-lock/dist/es2015/constants.js +0 -0
- /package/lib/{es/node_modules → node_modules}/focus-lock/dist/es2015/focusInside.js +0 -0
- /package/lib/{es/node_modules → node_modules}/focus-lock/dist/es2015/focusIsHidden.js +0 -0
- /package/lib/{es/node_modules → node_modules}/focus-lock/dist/es2015/moveFocusInside.js +0 -0
- /package/lib/{es/node_modules → node_modules}/focus-lock/dist/es2015/utils/DOMutils.js +0 -0
- /package/lib/{es/node_modules → node_modules}/focus-lock/dist/es2015/utils/all-affected.js +0 -0
- /package/lib/{es/node_modules → node_modules}/focus-lock/dist/es2015/utils/array.js +0 -0
- /package/lib/{es/node_modules → node_modules}/focus-lock/dist/es2015/utils/auto-focus.js +0 -0
- /package/lib/{es/node_modules → node_modules}/focus-lock/dist/es2015/utils/correctFocus.js +0 -0
- /package/lib/{es/node_modules → node_modules}/focus-lock/dist/es2015/utils/getActiveElement.js +0 -0
- /package/lib/{es/node_modules → node_modules}/focus-lock/dist/es2015/utils/parenting.js +0 -0
- /package/lib/{es/node_modules → node_modules}/focus-lock/dist/es2015/utils/safe.js +0 -0
- /package/lib/{es/node_modules → node_modules}/focus-lock/dist/es2015/utils/tabUtils.js +0 -0
- /package/lib/{es/node_modules → node_modules}/focus-lock/dist/es2015/utils/tabbables.js +0 -0
- /package/lib/{es/node_modules → node_modules}/react-clientside-effect/lib/index.es.js +0 -0
- /package/lib/{es/node_modules → node_modules}/react-focus-lock/dist/es2015/FocusGuard.js +0 -0
- /package/lib/{es/node_modules → node_modules}/react-focus-lock/dist/es2015/index.js.map +0 -0
- /package/lib/{es/node_modules → node_modules}/use-callback-ref/dist/es2015/assignRef.js +0 -0
- /package/lib/{es/node_modules → node_modules}/use-callback-ref/dist/es2015/useRef.js +0 -0
- /package/lib/{es/src/components/AddressLookup → src/components}/index.js.map +0 -0
- /package/lib/{es/src → src}/hooks/useEffectBrowser.js +0 -0
- /package/lib/{es/src → src}/hooks/useKey.js +0 -0
- /package/lib/{es/src → src}/hooks/useLayoutEffectBrowser.js +0 -0
- /package/lib/utils/__tests__/{testHelpers.jest.d.ts → testHelpers.test.d.ts} +0 -0
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import { ThemeType } from "../../types";
|
|
1
|
+
import { type ThemeType } from "../../types";
|
|
2
2
|
type ThemeProps = {
|
|
3
3
|
theme: ThemeType;
|
|
4
4
|
};
|
|
5
|
-
export declare const Fieldset: import("styled-components").
|
|
6
|
-
export declare const TextAsLabel: import("styled-components").
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export declare const
|
|
5
|
+
export declare const Fieldset: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, never>> & string;
|
|
6
|
+
export declare const TextAsLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<Omit<import("../Text").TextProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & {
|
|
7
|
+
ref?: ((instance: HTMLElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLElement> | null | undefined;
|
|
8
|
+
}, ThemeProps>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<import("../Text").TextProps, "ref"> & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
|
|
9
|
+
export declare const DateTextFieldWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ThemeProps>> & string;
|
|
10
|
+
export declare const LargeDateTextFieldWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme"> & ThemeProps, "ref"> & {
|
|
11
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
12
|
+
}, never>> & string;
|
|
13
|
+
export declare const ErrorTextWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
10
14
|
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { StoryObj } from "@storybook/react";
|
|
3
2
|
import ErrorText from ".";
|
|
4
3
|
declare const _default: {
|
|
5
4
|
title: string;
|
|
6
|
-
component:
|
|
5
|
+
component: typeof ErrorText;
|
|
7
6
|
args: {
|
|
8
7
|
children: string;
|
|
9
8
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
import { SpacingProps } from "../Spacing";
|
|
1
|
+
import React, { type HTMLAttributes } from "react";
|
|
2
|
+
import { type SpacingProps } from "../Spacing";
|
|
3
3
|
export type ErrorTextProps = SpacingProps & HTMLAttributes<HTMLElement> & {
|
|
4
4
|
as?: React.ElementType;
|
|
5
5
|
};
|
|
@@ -9,5 +9,5 @@ export type ErrorTextProps = SpacingProps & HTMLAttributes<HTMLElement> & {
|
|
|
9
9
|
*
|
|
10
10
|
* Please be aware that some input components already have this component built in and can be passed an "errorMessage" prop
|
|
11
11
|
*/
|
|
12
|
-
declare
|
|
12
|
+
export declare function ErrorText({ children, as, ...props }: ErrorTextProps): React.JSX.Element;
|
|
13
13
|
export default ErrorText;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { ThemeType } from "../../types";
|
|
1
|
+
import { type ThemeType } from "../../types";
|
|
2
2
|
type ThemeProps = {
|
|
3
3
|
theme: ThemeType;
|
|
4
4
|
};
|
|
5
|
-
export declare const StyledErrorText: import("styled-components").
|
|
5
|
+
export declare const StyledErrorText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<Omit<import("../Text").TextProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & {
|
|
6
|
+
ref?: ((instance: HTMLElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLElement> | null | undefined;
|
|
7
|
+
}, ThemeProps>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<import("../Text").TextProps, "ref"> & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
|
|
6
8
|
export default StyledErrorText;
|
package/lib/components/Flex.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
import { SpacingProps } from "./Spacing";
|
|
2
|
-
|
|
1
|
+
import { type SpacingProps } from "./Spacing";
|
|
2
|
+
import { type ThemeType } from "../types";
|
|
3
|
+
type Props = SpacingProps & {
|
|
4
|
+
theme: ThemeType;
|
|
5
|
+
};
|
|
6
|
+
export declare const Flex: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Props>> & string;
|
|
3
7
|
export default Flex;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
import { type CustomFontType } from "../types";
|
|
2
|
+
export declare const buildCustomFonts: (customFonts: CustomFontType[]) => string;
|
|
3
|
+
export declare const Fontface: string;
|
|
4
|
+
export default Fontface;
|
|
@@ -3,7 +3,7 @@ import { StoryObj } from "@storybook/react";
|
|
|
3
3
|
import Footer, { FooterProps } from ".";
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component:
|
|
6
|
+
component: typeof Footer;
|
|
7
7
|
render: (args: FooterProps) => React.JSX.Element;
|
|
8
8
|
tags: string[];
|
|
9
9
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ReactNode, HTMLAttributes } from "react";
|
|
1
|
+
import React, { type ReactNode, type HTMLAttributes } from "react";
|
|
2
2
|
export type FooterProps = HTMLAttributes<HTMLElement> & {
|
|
3
3
|
/** used to customise text in middle section, it could also be react element, this is not to be confused with the component children which is primarily for the links in the footer */
|
|
4
4
|
middleSection?: ReactNode;
|
|
@@ -7,5 +7,5 @@ export type FooterProps = HTMLAttributes<HTMLElement> & {
|
|
|
7
7
|
/**
|
|
8
8
|
* There should be only one footer component at the bottom of the body of each page. Links can be passed as children
|
|
9
9
|
* */
|
|
10
|
-
export declare
|
|
10
|
+
export declare function Footer({ children, middleSection }: FooterProps): React.JSX.Element;
|
|
11
11
|
export default Footer;
|
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
import { ThemeType } from "../../types";
|
|
1
|
+
import { type ThemeType } from "../../types";
|
|
2
2
|
type ThemeProps = {
|
|
3
3
|
theme: ThemeType;
|
|
4
4
|
};
|
|
5
|
-
export declare const StyledFooter: import("styled-components").
|
|
6
|
-
export declare const FooterContentWrapper: import("styled-components").
|
|
7
|
-
export declare const FooterSection: import("styled-components").
|
|
8
|
-
export declare const FooterSectionLogo: import("styled-components").
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export declare const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export declare const
|
|
15
|
-
export declare const
|
|
5
|
+
export declare const StyledFooter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, ThemeProps>> & string;
|
|
6
|
+
export declare const FooterContentWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ThemeProps>> & string;
|
|
7
|
+
export declare const FooterSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ThemeProps>> & string;
|
|
8
|
+
export declare const FooterSectionLogo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme"> & ThemeProps, "ref"> & {
|
|
9
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
+
}, never>> & string;
|
|
11
|
+
export declare const FooterSectionLinks: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme"> & ThemeProps, "ref"> & {
|
|
12
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
13
|
+
}, never>> & string;
|
|
14
|
+
export declare const StyledNav: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, ThemeProps>> & string;
|
|
15
|
+
export declare const StyledUL: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, never>> & string;
|
|
16
|
+
export declare const StyledLI: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, ThemeProps>> & string;
|
|
17
|
+
export declare const FooterSectionAddress: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme"> & ThemeProps, "ref"> & {
|
|
18
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
19
|
+
}, never>> & string;
|
|
20
|
+
export declare const StyledRegulatorLogo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>> & string;
|
|
21
|
+
export declare const StyledAddress: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
|
|
16
22
|
export {};
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
|
|
3
|
-
suppressMultiMountWarning?: boolean | undefined;
|
|
4
|
-
key?: import("react").Key | null | undefined;
|
|
5
|
-
} & {
|
|
6
|
-
theme?: any;
|
|
7
|
-
}>;
|
|
8
|
-
export default _default;
|
|
1
|
+
export declare const GlobalStyle: import("react").ForwardRefExoticComponent<import("styled-components").ExecutionProps & import("react").RefAttributes<import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>>> & {};
|
|
2
|
+
export default GlobalStyle;
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
|
|
3
|
-
suppressMultiMountWarning?: boolean | undefined;
|
|
4
|
-
key?: import("react").Key | null | undefined;
|
|
5
|
-
} & {
|
|
6
|
-
theme?: any;
|
|
7
|
-
}>;
|
|
8
|
-
export default _default;
|
|
1
|
+
export declare const GlobalStyleNoFontFace: import("react").ForwardRefExoticComponent<import("styled-components").ExecutionProps & import("react").RefAttributes<import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>>> & {};
|
|
2
|
+
export default GlobalStyleNoFontFace;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { StoryObj } from "@storybook/react";
|
|
3
|
-
import Header
|
|
3
|
+
import Header from ".";
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component:
|
|
6
|
+
component: typeof Header;
|
|
7
7
|
args: {
|
|
8
8
|
siteSlogan: string;
|
|
9
9
|
children: React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { HTMLAttributes, ReactNode } from "react";
|
|
1
|
+
import React, { type HTMLAttributes, type ReactNode } from "react";
|
|
2
2
|
export type HeaderProps = HTMLAttributes<HTMLElement> & {
|
|
3
3
|
/** flag which make header fixed to the top even when scrolling */
|
|
4
4
|
isSticky?: boolean;
|
|
@@ -33,5 +33,5 @@ export type HeaderProps = HTMLAttributes<HTMLElement> & {
|
|
|
33
33
|
* There is a hidden skip link in the header which will only reveals itself on the first tab and to screen readers. This link helps users skip to the main page content, however this will only work with there is an element with an id of 'main' which the developer should create for every page.
|
|
34
34
|
*
|
|
35
35
|
*/
|
|
36
|
-
export declare
|
|
36
|
+
export declare function Header({ isSticky, siteSlogan, logoAltText, logoImageSrc, logoLinkTitle, logoLinkUrl, fullWidth, children, }: HeaderProps): React.JSX.Element;
|
|
37
37
|
export default Header;
|
|
@@ -1,37 +1,36 @@
|
|
|
1
|
-
import { ThemeType } from "../../types";
|
|
1
|
+
import { type ThemeType } from "../../types";
|
|
2
2
|
type StyledHeaderProps = {
|
|
3
3
|
theme: ThemeType;
|
|
4
4
|
isSmall?: boolean;
|
|
5
5
|
isSticky?: boolean;
|
|
6
6
|
fullWidth?: boolean;
|
|
7
7
|
};
|
|
8
|
-
export declare const StyledHeader: import("styled-components").
|
|
9
|
-
|
|
10
|
-
isSticky?: boolean | undefined;
|
|
11
|
-
fullWidth?: boolean | undefined;
|
|
12
|
-
}, never>;
|
|
13
|
-
export declare const HeaderStickyPlaceHolder: import("styled-components").StyledComponent<"div", any, StyledHeaderProps, never>;
|
|
8
|
+
export declare const StyledHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, StyledHeaderProps>> & string;
|
|
9
|
+
export declare const HeaderStickyPlaceHolder: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledHeaderProps>> & string;
|
|
14
10
|
type HeaderStickyProps = {
|
|
15
11
|
isSmall?: boolean;
|
|
16
12
|
isSticky?: boolean;
|
|
17
13
|
theme: ThemeType;
|
|
18
14
|
};
|
|
19
|
-
export declare const HeaderStickyContainer: import("styled-components").
|
|
20
|
-
export declare const HeaderMainContent: import("styled-components").
|
|
21
|
-
fullWidth?: boolean
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
export declare const HeaderStickyContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, HeaderStickyProps>> & string;
|
|
16
|
+
export declare const HeaderMainContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
17
|
+
fullWidth?: boolean;
|
|
18
|
+
theme: ThemeType;
|
|
19
|
+
}>> & string;
|
|
20
|
+
export declare const Logo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>> & string;
|
|
24
21
|
type LogoWrapperProps = {
|
|
25
22
|
isSmall?: boolean;
|
|
26
23
|
isSticky?: boolean;
|
|
24
|
+
theme: ThemeType;
|
|
27
25
|
};
|
|
28
|
-
export declare const LogoWrapper: import("styled-components").
|
|
29
|
-
export declare const StyledLink: import("styled-components").
|
|
30
|
-
export declare const SkipToMain: import("styled-components").
|
|
31
|
-
export declare const Tagline: import("styled-components").
|
|
32
|
-
isSmall?: boolean
|
|
33
|
-
isSticky?: boolean
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
export declare const
|
|
26
|
+
export declare const LogoWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, LogoWrapperProps>> & string;
|
|
27
|
+
export declare const StyledLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, never>> & string;
|
|
28
|
+
export declare const SkipToMain: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, StyledHeaderProps>> & string;
|
|
29
|
+
export declare const Tagline: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {
|
|
30
|
+
isSmall?: boolean;
|
|
31
|
+
isSticky?: boolean;
|
|
32
|
+
theme: ThemeType;
|
|
33
|
+
}>> & string;
|
|
34
|
+
export declare const ChildWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
35
|
+
export declare const ChildInner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
37
36
|
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { StoryObj } from "@storybook/react";
|
|
3
2
|
import Heading from ".";
|
|
4
3
|
declare const _default: {
|
|
5
4
|
title: string;
|
|
6
|
-
component:
|
|
5
|
+
component: typeof Heading;
|
|
7
6
|
args: {};
|
|
8
7
|
tags: string[];
|
|
9
8
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { HTMLAttributes, ElementType } from "react";
|
|
2
|
-
import { SpacingProps } from "../Spacing";
|
|
3
|
-
import { FontSizeType, WordBreakType, OverflowWrapType } from "../../types";
|
|
1
|
+
import React, { type HTMLAttributes, type ElementType } from "react";
|
|
2
|
+
import { type SpacingProps } from "../Spacing";
|
|
3
|
+
import { type FontSizeType, type WordBreakType, type OverflowWrapType } from "../../types";
|
|
4
4
|
export type HeadingProps = SpacingProps & HTMLAttributes<HTMLElement> & {
|
|
5
5
|
h1?: boolean;
|
|
6
6
|
h2?: boolean;
|
|
@@ -28,5 +28,5 @@ Markup headings semantically using the appropriate <h#> level HTML element and
|
|
|
28
28
|
use the corresponding heading class (h1, h2, h3, ....). Write all headings in sentence case. Heading differs from the Text component by using a different font-family and it changes the font size according to the screen width breakpoints.
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
|
-
declare
|
|
31
|
+
export declare function Heading({ h1, h2, h3, h4, h5, h6, ...props }: HeadingProps): React.JSX.Element;
|
|
32
32
|
export default Heading;
|
|
@@ -1,50 +1,17 @@
|
|
|
1
|
-
import { SpacingProps } from "../Spacing";
|
|
2
|
-
import { ThemeType, FontSizeType, WordBreakType } from "../../types";
|
|
3
|
-
|
|
1
|
+
import { type SpacingProps } from "../Spacing";
|
|
2
|
+
import { type ThemeType, type FontSizeType, type WordBreakType } from "../../types";
|
|
3
|
+
type StyledHeadingProps = SpacingProps & {
|
|
4
4
|
theme: ThemeType;
|
|
5
|
-
textSize?: FontSizeType
|
|
6
|
-
textAlign?: "left" | "right" | "center"
|
|
7
|
-
textColor?: string
|
|
8
|
-
wordBreak?: WordBreakType
|
|
9
|
-
overflowWrap?: WordBreakType
|
|
10
|
-
}
|
|
11
|
-
export declare const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}, never>;
|
|
19
|
-
export declare const H3: import("styled-components").StyledComponent<"h3", any, SpacingProps & {
|
|
20
|
-
theme: ThemeType;
|
|
21
|
-
textSize?: FontSizeType | undefined;
|
|
22
|
-
textAlign?: "left" | "right" | "center" | undefined;
|
|
23
|
-
textColor?: string | undefined;
|
|
24
|
-
wordBreak?: WordBreakType | undefined;
|
|
25
|
-
overflowWrap?: WordBreakType | undefined;
|
|
26
|
-
}, never>;
|
|
27
|
-
export declare const H4: import("styled-components").StyledComponent<"h4", any, SpacingProps & {
|
|
28
|
-
theme: ThemeType;
|
|
29
|
-
textSize?: FontSizeType | undefined;
|
|
30
|
-
textAlign?: "left" | "right" | "center" | undefined;
|
|
31
|
-
textColor?: string | undefined;
|
|
32
|
-
wordBreak?: WordBreakType | undefined;
|
|
33
|
-
overflowWrap?: WordBreakType | undefined;
|
|
34
|
-
}, never>;
|
|
35
|
-
export declare const H5: import("styled-components").StyledComponent<"h5", any, SpacingProps & {
|
|
36
|
-
theme: ThemeType;
|
|
37
|
-
textSize?: FontSizeType | undefined;
|
|
38
|
-
textAlign?: "left" | "right" | "center" | undefined;
|
|
39
|
-
textColor?: string | undefined;
|
|
40
|
-
wordBreak?: WordBreakType | undefined;
|
|
41
|
-
overflowWrap?: WordBreakType | undefined;
|
|
42
|
-
}, never>;
|
|
43
|
-
export declare const H6: import("styled-components").StyledComponent<"h6", any, SpacingProps & {
|
|
44
|
-
theme: ThemeType;
|
|
45
|
-
textSize?: FontSizeType | undefined;
|
|
46
|
-
textAlign?: "left" | "right" | "center" | undefined;
|
|
47
|
-
textColor?: string | undefined;
|
|
48
|
-
wordBreak?: WordBreakType | undefined;
|
|
49
|
-
overflowWrap?: WordBreakType | undefined;
|
|
50
|
-
}, never>;
|
|
5
|
+
textSize?: FontSizeType;
|
|
6
|
+
textAlign?: "left" | "right" | "center";
|
|
7
|
+
textColor?: string;
|
|
8
|
+
wordBreak?: WordBreakType;
|
|
9
|
+
overflowWrap?: WordBreakType;
|
|
10
|
+
};
|
|
11
|
+
export declare const H1: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, StyledHeadingProps>> & string;
|
|
12
|
+
export declare const H2: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, StyledHeadingProps>> & string;
|
|
13
|
+
export declare const H3: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, StyledHeadingProps>> & string;
|
|
14
|
+
export declare const H4: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, StyledHeadingProps>> & string;
|
|
15
|
+
export declare const H5: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, StyledHeadingProps>> & string;
|
|
16
|
+
export declare const H6: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, StyledHeadingProps>> & string;
|
|
17
|
+
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { StoryObj } from "@storybook/react";
|
|
3
2
|
import { IconFa } from "..";
|
|
4
3
|
declare const _default: {
|
|
5
4
|
title: string;
|
|
6
|
-
component:
|
|
5
|
+
component: typeof IconFa;
|
|
7
6
|
args: {
|
|
8
7
|
faIcon: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
9
8
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { IconDefinition } from "@fortawesome/fontawesome-common-types";
|
|
2
|
+
import { type IconDefinition } from "@fortawesome/fontawesome-common-types";
|
|
3
3
|
export type IconFaProps = {
|
|
4
4
|
/** imported icon definition from "@fortawesome/free-solid-svg-icons" or "@fortawesome/free-brands-svg-icons" */
|
|
5
5
|
faIcon: IconDefinition;
|
|
@@ -13,5 +13,5 @@ export type IconFaProps = {
|
|
|
13
13
|
*
|
|
14
14
|
* This is an svg icon wrapper where a font awesome icon definition can be passed in a long with colour and size
|
|
15
15
|
* */
|
|
16
|
-
declare
|
|
16
|
+
export declare function IconFa({ faIcon, color, size, ...rest }: IconFaProps): React.JSX.Element;
|
|
17
17
|
export default IconFa;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { type ThemeType } from "../../types";
|
|
2
|
+
type StyledIconProp = {
|
|
3
|
+
theme: ThemeType;
|
|
4
|
+
color?: string;
|
|
5
|
+
size: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const StyledIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").SVGProps<SVGSVGElement>, StyledIconProp>> & string;
|
|
5
8
|
export default StyledIcon;
|
|
@@ -3,7 +3,7 @@ import { StoryObj } from "@storybook/react";
|
|
|
3
3
|
import InfoBox from ".";
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: React.
|
|
6
|
+
component: React.ForwardRefExoticComponent<Omit<import(".").InfoBoxProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
7
7
|
args: {
|
|
8
8
|
titleText: string;
|
|
9
9
|
titleTextColor: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SpacingProps } from "../Spacing";
|
|
1
|
+
import React, { type HTMLAttributes, type Ref, type ReactNode, type ElementType } from "react";
|
|
2
|
+
import { type SpacingProps } from "../Spacing";
|
|
3
3
|
export type InfoBoxProps = SpacingProps & HTMLAttributes<HTMLElement> & {
|
|
4
4
|
/** background color of wrapping element, this will add default padding */
|
|
5
5
|
backgroundColor?: string;
|
|
@@ -24,5 +24,5 @@ export type InfoBoxProps = SpacingProps & HTMLAttributes<HTMLElement> & {
|
|
|
24
24
|
|
|
25
25
|
The more specific the the target the higher priority the css will have. For example `margin` will be overridden by the `marginVertical` or `marginHorizontal` props. `marginTop`, `marginBottom`, `marginLeft`, `marginRight` will override the the `marginVertical` and `marginHorizontal` props.
|
|
26
26
|
*/
|
|
27
|
-
declare const InfoBox:
|
|
27
|
+
export declare const InfoBox: React.ForwardRefExoticComponent<Omit<InfoBoxProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
28
28
|
export default InfoBox;
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { ThemeType } from "../../types";
|
|
2
|
-
import { BoxProps } from "../Box";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
css?: string | undefined;
|
|
6
|
-
ref?: import("react").Ref<HTMLDivElement> | undefined;
|
|
7
|
-
children?: import("react").ReactNode;
|
|
8
|
-
as?: import("react").ElementType | undefined;
|
|
9
|
-
} & {
|
|
10
|
-
css?: string | undefined;
|
|
1
|
+
import { type ThemeType } from "../../types";
|
|
2
|
+
import { type BoxProps } from "../Box";
|
|
3
|
+
type InfoBoxProps = BoxProps & {
|
|
4
|
+
css?: string;
|
|
11
5
|
theme: ThemeType;
|
|
12
|
-
}
|
|
6
|
+
};
|
|
7
|
+
export declare const StyledInfoBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<Omit<BoxProps, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
8
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
9
|
+
}, InfoBoxProps>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<BoxProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
|
|
13
10
|
export default StyledInfoBox;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { LabelHTMLAttributes, ReactNode } from "react";
|
|
1
|
+
import React, { type LabelHTMLAttributes, type ReactNode } from "react";
|
|
2
2
|
type LabelWrapperProps = LabelHTMLAttributes<HTMLLabelElement> & {
|
|
3
3
|
/** label text */
|
|
4
4
|
label: string;
|
|
@@ -10,10 +10,5 @@ type LabelWrapperProps = LabelHTMLAttributes<HTMLLabelElement> & {
|
|
|
10
10
|
hideRequiredInLabel?: boolean;
|
|
11
11
|
children?: ReactNode;
|
|
12
12
|
};
|
|
13
|
-
export declare
|
|
14
|
-
({ label, hintText, required, hideRequiredInLabel, children, ...otherHTMLLabelProps }: LabelWrapperProps): React.JSX.Element;
|
|
15
|
-
defaultProps: {
|
|
16
|
-
required: boolean;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
13
|
+
export declare function LabelWrapper({ label, hintText, required, hideRequiredInLabel, children, ...otherHTMLLabelProps }: LabelWrapperProps): React.JSX.Element;
|
|
19
14
|
export default LabelWrapper;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { ThemeType } from "../../types";
|
|
2
|
-
type
|
|
1
|
+
import { type ThemeType } from "../../types";
|
|
2
|
+
type LabelTextProp = {
|
|
3
|
+
hasHintText: boolean;
|
|
3
4
|
theme: ThemeType;
|
|
4
5
|
};
|
|
5
|
-
export declare const Label: import("styled-components").
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
export declare const Label: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {
|
|
7
|
+
theme: ThemeType;
|
|
8
|
+
}>> & string;
|
|
9
|
+
export declare const RequiredText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
9
10
|
theme: ThemeType;
|
|
10
|
-
}
|
|
11
|
+
}>> & string;
|
|
12
|
+
export declare const LabelText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, LabelTextProp>> & string;
|
|
11
13
|
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { StoryObj } from "@storybook/react";
|
|
3
|
-
import LegendWrapper
|
|
2
|
+
import LegendWrapper from ".";
|
|
4
3
|
declare const _default: {
|
|
5
4
|
title: string;
|
|
6
|
-
component:
|
|
5
|
+
component: typeof LegendWrapper;
|
|
7
6
|
args: {
|
|
8
7
|
legendText: string;
|
|
9
8
|
hintText: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { HTMLAttributes, ReactNode } from "react";
|
|
1
|
+
import React, { type HTMLAttributes, type ReactNode } from "react";
|
|
2
2
|
export type LegendWrapperProps = HTMLAttributes<HTMLLegendElement> & {
|
|
3
3
|
children?: ReactNode;
|
|
4
4
|
/** legend text */
|
|
@@ -18,5 +18,5 @@ export type LegendWrapperProps = HTMLAttributes<HTMLLegendElement> & {
|
|
|
18
18
|
* hasError and errorMessage props are just props that can be passed into the component.
|
|
19
19
|
* There is no functionality checking if the children are valid/required etc this functionality will be needed to ne added outside of this component.
|
|
20
20
|
*/
|
|
21
|
-
export declare
|
|
21
|
+
export declare function LegendWrapper({ children, legendText, required, errorMessage, hasError, hintText, ...restOfHTMLAttributes }: LegendWrapperProps): React.JSX.Element;
|
|
22
22
|
export default LegendWrapper;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ThemeType } from "../../types";
|
|
1
|
+
import { type ThemeType } from "../../types";
|
|
2
2
|
type StyledFieldsetProps = {
|
|
3
3
|
hasError?: boolean;
|
|
4
4
|
theme: ThemeType;
|
|
5
5
|
hasHintText?: boolean;
|
|
6
6
|
};
|
|
7
|
-
export declare const LegendSpan: import("styled-components").
|
|
7
|
+
export declare const LegendSpan: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
8
8
|
hasHintText: boolean;
|
|
9
9
|
theme: ThemeType;
|
|
10
|
-
}
|
|
11
|
-
export declare const StyledFieldset: import("styled-components").
|
|
10
|
+
}>> & string;
|
|
11
|
+
export declare const StyledFieldset: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, StyledFieldsetProps>> & string;
|
|
12
12
|
export {};
|
|
@@ -3,13 +3,7 @@ import { StoryObj } from "@storybook/react";
|
|
|
3
3
|
import Link from ".";
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: React.ForwardRefExoticComponent<Omit<
|
|
7
|
-
textHoverColor?: string | undefined;
|
|
8
|
-
appearance?: "primary" | "secondary" | undefined;
|
|
9
|
-
ref?: React.Ref<HTMLElement> | undefined;
|
|
10
|
-
as?: React.ElementType | undefined;
|
|
11
|
-
children?: React.ReactNode;
|
|
12
|
-
}, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
6
|
+
component: React.ForwardRefExoticComponent<Omit<import(".").LinkProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
13
7
|
args: {
|
|
14
8
|
appearance: undefined;
|
|
15
9
|
href: string;
|