@cruk/cruk-react-components 4.2.1 → 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 +31 -71
- 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/Carousel.stories.d.ts +1 -0
- package/lib/components/Carousel/Dots.d.ts +1 -1
- package/lib/components/Carousel/index.d.ts +7 -2
- 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,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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { AnchorHTMLAttributes, Ref, ElementType, ReactNode } from "react";
|
|
2
|
-
import { TextProps } from "../Text";
|
|
1
|
+
import React, { type AnchorHTMLAttributes, type Ref, type ElementType, type ReactNode } from "react";
|
|
2
|
+
import { type TextProps } from "../Text";
|
|
3
3
|
export type LinkProps = Omit<AnchorHTMLAttributes<HTMLElement>, "nonce"> & Omit<TextProps, "as" | "ref" | "nonce"> & {
|
|
4
4
|
/** link text hover colour */
|
|
5
5
|
textHoverColor?: string;
|
|
@@ -22,16 +22,5 @@ export type LinkProps = Omit<AnchorHTMLAttributes<HTMLElement>, "nonce"> & Omit<
|
|
|
22
22
|
* If you want something that looks like a link but behaves like a button ie. nothing to do with navigation, please consider using Link with as='button'
|
|
23
23
|
*
|
|
24
24
|
* If you want something that looks like a button but behaves like a link ie. it takes the user to a new location, please consider using Button and simply passing it an href, it will automatically turn into a link. */
|
|
25
|
-
export declare const Link: React.ForwardRefExoticComponent<Omit<
|
|
26
|
-
/** link text hover colour */
|
|
27
|
-
textHoverColor?: string | undefined;
|
|
28
|
-
/** link appearance variant, undefined is a standarding link withing a text block */
|
|
29
|
-
appearance?: "primary" | "secondary" | undefined;
|
|
30
|
-
/** styled-components polymorphism where you can use the styling of a link but convert to another element like a button */
|
|
31
|
-
ref?: React.Ref<HTMLElement> | undefined;
|
|
32
|
-
/** styled-component polymorphic feature so you take the styling of a link and cast the component to be a "span" for example */
|
|
33
|
-
as?: React.ElementType | undefined;
|
|
34
|
-
/** Component children */
|
|
35
|
-
children?: ReactNode;
|
|
36
|
-
}, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
25
|
+
export declare const Link: React.ForwardRefExoticComponent<Omit<LinkProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
37
26
|
export default Link;
|
|
@@ -1,19 +1,12 @@
|
|
|
1
|
-
import { AnchorHTMLAttributes } from "react";
|
|
2
|
-
import { TextProps } from "../Text";
|
|
3
|
-
import { ThemeType } from "../../types";
|
|
4
|
-
|
|
5
|
-
textColor?: string | undefined;
|
|
6
|
-
textAlign?: "left" | "right" | "center" | "justify" | undefined;
|
|
7
|
-
textSize?: import("../../types").FontSizeType | undefined;
|
|
8
|
-
textWeight?: string | number | undefined;
|
|
9
|
-
textFontFamily?: string | undefined;
|
|
10
|
-
as?: import("react").ElementType | undefined;
|
|
11
|
-
wordBreak?: import("../../types").WordBreakType | undefined;
|
|
12
|
-
overflowWrap?: import("../../types").OverflowWrapType | undefined;
|
|
13
|
-
ref?: import("react").Ref<HTMLElement> | undefined;
|
|
14
|
-
} & {
|
|
1
|
+
import { type AnchorHTMLAttributes } from "react";
|
|
2
|
+
import { type TextProps } from "../Text";
|
|
3
|
+
import { type ThemeType } from "../../types";
|
|
4
|
+
type StyledLinkProps = AnchorHTMLAttributes<HTMLElement> & TextProps & {
|
|
15
5
|
theme: ThemeType;
|
|
16
|
-
appearance?: "primary" | "secondary"
|
|
17
|
-
textHoverColor?: string
|
|
18
|
-
}
|
|
6
|
+
appearance?: "primary" | "secondary";
|
|
7
|
+
textHoverColor?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const StyledLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<Omit<TextProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & {
|
|
10
|
+
ref?: ((instance: HTMLElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLElement> | null | undefined;
|
|
11
|
+
}, StyledLinkProps>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<TextProps, "ref"> & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
|
|
19
12
|
export default StyledLink;
|
|
@@ -3,5 +3,5 @@ import React from "react";
|
|
|
3
3
|
*
|
|
4
4
|
* Loaders are used after some user interaction that we assume will take some time to complete. They inform the user that their request is beeing processed and that they should wait.
|
|
5
5
|
*/
|
|
6
|
-
declare
|
|
6
|
+
export declare function Loader(): React.JSX.Element;
|
|
7
7
|
export default Loader;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ThemeType } from "../../types";
|
|
1
|
+
import { type ThemeType } from "../../types";
|
|
2
2
|
type SpinnerProps = {
|
|
3
3
|
theme: ThemeType;
|
|
4
4
|
};
|
|
5
|
-
export declare const ScreenReaderOnly: import("styled-components").
|
|
6
|
-
export declare const Spinner: import("styled-components").
|
|
5
|
+
export declare const ScreenReaderOnly: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
|
|
6
|
+
export declare const Spinner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SpinnerProps>> & string;
|
|
7
7
|
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { StoryObj } from "@storybook/react";
|
|
3
|
-
import Modal
|
|
2
|
+
import Modal from ".";
|
|
4
3
|
declare const _default: {
|
|
5
4
|
title: string;
|
|
6
|
-
component:
|
|
5
|
+
component: typeof Modal;
|
|
7
6
|
args: {};
|
|
8
7
|
tags: string[];
|
|
9
8
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import { SpacingProps } from "../Spacing";
|
|
1
|
+
import React, { type ReactNode } from "react";
|
|
2
|
+
import { type SpacingProps } from "../Spacing";
|
|
3
3
|
export type ModalProps = SpacingProps & {
|
|
4
4
|
/** modal name used for aria-label */
|
|
5
5
|
modalName: string;
|
|
@@ -28,5 +28,5 @@ export type ModalProps = SpacingProps & {
|
|
|
28
28
|
* ## Accessibility
|
|
29
29
|
* - Once the Modal is appeared on the screen, the focus must be within the Modal container which will enable the screen readers to be able to navigate within the Modal. You may wish to hide the close button so that a user must click on another button to confirm a choice before the modal is closed. However closing with the 'ESC' key must always work, so the props which contains the function that allows the modal to close itself 'closeFunction' is always required.
|
|
30
30
|
*/
|
|
31
|
-
declare
|
|
31
|
+
export declare function Modal({ modalName, closeFunction, showCloseButton, maxWidth, top, backgroundColor, children, width, margin, marginHorizontal, marginVertical, marginTop, marginRight, marginBottom, marginLeft, padding, paddingHorizontal, paddingVertical, paddingTop, paddingRight, paddingBottom, paddingLeft, }: ModalProps): React.JSX.Element;
|
|
32
32
|
export default Modal;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ThemeType } from "../../types";
|
|
1
|
+
import { type ThemeType } from "../../types";
|
|
2
2
|
type ThemeProp = {
|
|
3
3
|
theme: ThemeType;
|
|
4
4
|
};
|
|
@@ -9,18 +9,12 @@ type ContentProps = {
|
|
|
9
9
|
width: string;
|
|
10
10
|
maxWidth: string;
|
|
11
11
|
};
|
|
12
|
-
export declare const Background: import("styled-components").
|
|
13
|
-
export declare const Wrapper: import("styled-components").
|
|
14
|
-
export declare const Content: import("styled-components").
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
css?: any;
|
|
21
|
-
as?: import("react").ElementType | undefined;
|
|
22
|
-
isIconButton?: boolean | undefined;
|
|
23
|
-
ref?: import("react").Ref<HTMLElement> | undefined;
|
|
24
|
-
children?: import("react").ReactNode;
|
|
25
|
-
}, "ref"> & import("react").RefAttributes<HTMLElement>>, any, ThemeProp, never>;
|
|
12
|
+
export declare const Background: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ThemeProp>> & string;
|
|
13
|
+
export declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
14
|
+
export declare const Content: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<Omit<import("../Box").BoxProps, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
15
|
+
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;
|
|
16
|
+
}, ContentProps>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<import("../Box").BoxProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
|
|
17
|
+
export declare const CloseButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<Omit<import("../Button").ButtonProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & {
|
|
18
|
+
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;
|
|
19
|
+
}, ThemeProp>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<import("../Button").ButtonProps, "ref"> & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
|
|
26
20
|
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { StoryObj } from "@storybook/react";
|
|
3
2
|
import Pagination from ".";
|
|
4
3
|
declare const _default: {
|
|
5
4
|
title: string;
|
|
6
|
-
component:
|
|
5
|
+
component: typeof Pagination;
|
|
7
6
|
args: {
|
|
8
7
|
current: number;
|
|
9
8
|
perPage: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { HTMLAttributes, ReactNode } from "react";
|
|
1
|
+
import React, { type HTMLAttributes, type ReactNode } from "react";
|
|
2
2
|
export type PaginationProps = {
|
|
3
3
|
/** set current page number */
|
|
4
4
|
current: number;
|
|
@@ -20,5 +20,5 @@ export type PaginationProps = {
|
|
|
20
20
|
Data is split into multiple pages and pagination is used to
|
|
21
21
|
easily navigate through these pages.
|
|
22
22
|
*/
|
|
23
|
-
declare
|
|
23
|
+
export declare function Pagination({ current, items, hideLast, pagerCallback, perPage, searchParam, children, id, }: PaginationProps): React.JSX.Element;
|
|
24
24
|
export default Pagination;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ThemeType } from "../../types";
|
|
2
|
-
type
|
|
1
|
+
import { type ThemeType } from "../../types";
|
|
2
|
+
type ThemeProps = {
|
|
3
|
+
theme: ThemeType;
|
|
4
|
+
};
|
|
5
|
+
type PaginationStyledProps = ThemeProps & {
|
|
3
6
|
active?: boolean;
|
|
4
7
|
name?: string;
|
|
5
8
|
disabled?: boolean;
|
|
6
9
|
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const PagerList: import("styled-components").StyledComponent<"ul", any, {}, never>;
|
|
12
|
-
export declare const PagerLink: import("styled-components").StyledComponent<"a", any, PaginationStyledProps, never>;
|
|
13
|
-
export declare const PagerItem: import("styled-components").StyledComponent<"li", any, ThemeProps, never>;
|
|
10
|
+
export declare const PagerWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, PaginationStyledProps>> & string;
|
|
11
|
+
export declare const PagerList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, never>> & string;
|
|
12
|
+
export declare const PagerLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, PaginationStyledProps>> & string;
|
|
13
|
+
export declare const PagerItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, ThemeProps>> & string;
|
|
14
14
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { StoryObj } from "@storybook/react";
|
|
3
|
-
import PopOver
|
|
3
|
+
import PopOver from ".";
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component:
|
|
6
|
+
component: typeof PopOver;
|
|
7
7
|
args: {
|
|
8
8
|
modalLabel: string;
|
|
9
9
|
minWidth: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import { PopOverPositionType } from "../../types";
|
|
1
|
+
import React, { type ReactNode } from "react";
|
|
2
|
+
import { type PopOverPositionType } from "../../types";
|
|
3
3
|
export type PopOverProps = {
|
|
4
4
|
/** modalLabel: used for aria-label of modal */
|
|
5
5
|
modalLabel: string;
|
|
@@ -22,5 +22,5 @@ export type PopOverProps = {
|
|
|
22
22
|
* Popover is a non-modal dialog that floats around its disclosure. It's
|
|
23
23
|
commonly used for displaying additional rich content on top of something.
|
|
24
24
|
*/
|
|
25
|
-
declare
|
|
25
|
+
export declare function PopOver({ onPopOverIsOpenChange, children, minWidth, maxWidth, position, modalLabel, modalContent, css, full, }: PopOverProps): React.JSX.Element;
|
|
26
26
|
export default PopOver;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ThemeType, PopOverPositionType } from "../../types";
|
|
2
|
-
export declare const PopOverWrapper: import("styled-components").
|
|
1
|
+
import { type ThemeType, type PopOverPositionType } from "../../types";
|
|
2
|
+
export declare const PopOverWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
3
|
full: boolean;
|
|
4
|
-
css?: string
|
|
5
|
-
}
|
|
6
|
-
export declare const PopOverModal: import("styled-components").
|
|
4
|
+
css?: string;
|
|
5
|
+
}>> & string;
|
|
6
|
+
export declare const PopOverModal: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
7
7
|
position: PopOverPositionType;
|
|
8
|
-
theme?: ThemeType
|
|
8
|
+
theme?: ThemeType;
|
|
9
9
|
maxWidth: string;
|
|
10
10
|
minWidth: string;
|
|
11
|
-
}
|
|
11
|
+
}>> & string;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { StoryObj } from "@storybook/react";
|
|
3
2
|
import ProgressBar from ".";
|
|
4
3
|
declare const _default: {
|
|
5
4
|
title: string;
|
|
6
|
-
component:
|
|
5
|
+
component: typeof ProgressBar;
|
|
7
6
|
args: {
|
|
8
7
|
percentage: number;
|
|
9
8
|
secondaryPercentage: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
1
|
+
import React, { type ReactNode } from "react";
|
|
2
2
|
export type ProgressBarProps = {
|
|
3
3
|
/** percentage value of the progressbar */
|
|
4
4
|
percentage: number;
|
|
@@ -20,5 +20,5 @@ export type ProgressBarProps = {
|
|
|
20
20
|
* Provide up-to-date feedback on the progress of a workflow or action with
|
|
21
21
|
simple yet flexible progress bars.
|
|
22
22
|
*/
|
|
23
|
-
declare
|
|
23
|
+
export declare function ProgressBar({ percentage, isCircular, circleContents, circleSize, barColor, secondaryBarColor, secondaryPercentage, children, }: ProgressBarProps): React.JSX.Element;
|
|
24
24
|
export default ProgressBar;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ThemeType } from "../../types";
|
|
1
|
+
import { type ThemeType } from "../../types";
|
|
2
2
|
type ThemeProp = {
|
|
3
3
|
theme: ThemeType;
|
|
4
4
|
};
|
|
@@ -6,25 +6,31 @@ type LineProgressBarProps = {
|
|
|
6
6
|
percentage: number;
|
|
7
7
|
barColor?: string;
|
|
8
8
|
isSecondary?: boolean;
|
|
9
|
+
theme: ThemeType;
|
|
9
10
|
};
|
|
10
11
|
type LineProgressWrapperProps = {
|
|
11
12
|
percentage: number;
|
|
12
13
|
secondaryPercentage: number;
|
|
14
|
+
theme: ThemeType;
|
|
15
|
+
};
|
|
16
|
+
type CircleProps = ThemeProp & {
|
|
17
|
+
strokeDashoffsetInit: number;
|
|
18
|
+
strokeDashoffset: number;
|
|
19
|
+
barColor?: string;
|
|
20
|
+
isSecondary?: boolean;
|
|
21
|
+
theme: ThemeType;
|
|
13
22
|
};
|
|
14
23
|
type CircleWrapperProps = {
|
|
15
24
|
circleSize: string;
|
|
25
|
+
theme: ThemeType;
|
|
16
26
|
};
|
|
17
|
-
export declare const ProgressBarWrapper: import("styled-components").
|
|
18
|
-
export declare const LineProgressBarWrapper: import("styled-components").
|
|
19
|
-
export declare const LineProgressBar: import("styled-components").
|
|
20
|
-
export declare const ScreenReaderOnly: import("styled-components").
|
|
21
|
-
export declare const CircularWrapper: import("styled-components").
|
|
22
|
-
export declare const CircleSvg: import("styled-components").
|
|
23
|
-
export declare const EmptyCircle: import("styled-components").
|
|
24
|
-
export declare const FullCircle: import("styled-components").
|
|
25
|
-
|
|
26
|
-
barColor?: string | undefined;
|
|
27
|
-
isSecondary?: boolean | undefined;
|
|
28
|
-
}, never>;
|
|
29
|
-
export declare const CircularValue: import("styled-components").StyledComponent<"div", any, ThemeProp, never>;
|
|
27
|
+
export declare const ProgressBarWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
28
|
+
export declare const LineProgressBarWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, LineProgressWrapperProps>> & string;
|
|
29
|
+
export declare const LineProgressBar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, LineProgressBarProps>> & string;
|
|
30
|
+
export declare const ScreenReaderOnly: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
31
|
+
export declare const CircularWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, CircleWrapperProps>> & string;
|
|
32
|
+
export declare const CircleSvg: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").SVGProps<SVGSVGElement>, never>> & string;
|
|
33
|
+
export declare const EmptyCircle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").SVGProps<SVGCircleElement>, ThemeProp>> & string;
|
|
34
|
+
export declare const FullCircle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").SVGProps<SVGCircleElement>, CircleProps>> & string;
|
|
35
|
+
export declare const CircularValue: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ThemeProp>> & string;
|
|
30
36
|
export {};
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { StoryObj } from "@storybook/react";
|
|
3
|
-
import Radio from ".";
|
|
3
|
+
import Radio, { RadioProps } from ".";
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: React.ForwardRefExoticComponent<Omit<React.
|
|
7
|
-
ref?: React.Ref<HTMLInputElement> | undefined;
|
|
8
|
-
hasError?: boolean | undefined;
|
|
9
|
-
errorMessage?: string | undefined;
|
|
10
|
-
children?: React.ReactNode;
|
|
11
|
-
}, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
6
|
+
component: React.ForwardRefExoticComponent<Omit<RadioProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
12
7
|
args: {
|
|
13
8
|
id: string;
|
|
14
9
|
value: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { InputHTMLAttributes, Ref, ReactNode } from "react";
|
|
1
|
+
import React, { type InputHTMLAttributes, type Ref, type ReactNode, type LegacyRef } from "react";
|
|
2
2
|
export type RadioProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
3
|
-
ref?: Ref<HTMLInputElement>;
|
|
3
|
+
ref?: Ref<HTMLInputElement> | LegacyRef<HTMLInputElement>;
|
|
4
4
|
/** flag for error styling */
|
|
5
5
|
hasError?: boolean;
|
|
6
6
|
/** error message text */
|
|
@@ -12,12 +12,5 @@ export type RadioProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
|
12
12
|
*
|
|
13
13
|
* The value or children becomes the label, if you want an outer label for a radio or group of radios please use a LegendWrapper component
|
|
14
14
|
*/
|
|
15
|
-
declare const Radio: React.ForwardRefExoticComponent<Omit<React.
|
|
16
|
-
ref?: React.Ref<HTMLInputElement> | undefined;
|
|
17
|
-
/** flag for error styling */
|
|
18
|
-
hasError?: boolean | undefined;
|
|
19
|
-
/** error message text */
|
|
20
|
-
errorMessage?: string | undefined;
|
|
21
|
-
children?: ReactNode;
|
|
22
|
-
}, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
15
|
+
export declare const Radio: React.ForwardRefExoticComponent<Omit<RadioProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
23
16
|
export default Radio;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { ThemeType } from "../../types";
|
|
1
|
+
import { type ThemeType } from "../../types";
|
|
2
2
|
type ThemeProp = {
|
|
3
3
|
theme: ThemeType;
|
|
4
4
|
};
|
|
5
|
-
export declare const CheckWrapper: import("styled-components").
|
|
6
|
-
export declare const Check: import("styled-components").
|
|
5
|
+
export declare const CheckWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ThemeProp>> & string;
|
|
6
|
+
export declare const Check: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, ThemeProp>> & string;
|
|
7
7
|
type StyledLabelProps = {
|
|
8
8
|
hasError: boolean;
|
|
9
9
|
disabled: boolean;
|
|
10
10
|
checked: boolean;
|
|
11
11
|
theme: ThemeType;
|
|
12
12
|
};
|
|
13
|
-
export declare const StyledLabel: import("styled-components").
|
|
14
|
-
export declare const VerticalAlign: import("styled-components").
|
|
15
|
-
export declare const SelectedBorder: import("styled-components").
|
|
13
|
+
export declare const StyledLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, StyledLabelProps>> & string;
|
|
14
|
+
export declare const VerticalAlign: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, ThemeProp>> & string;
|
|
15
|
+
export declare const SelectedBorder: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
16
16
|
type StyledInputType = {
|
|
17
17
|
disabled: boolean;
|
|
18
18
|
theme: ThemeType;
|
|
19
19
|
};
|
|
20
|
-
export declare const StyledInput: import("styled-components").
|
|
20
|
+
export declare const StyledInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, StyledInputType>> & string;
|
|
21
21
|
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { StoryObj } from "@storybook/react";
|
|
3
|
-
import RadioConsent
|
|
2
|
+
import RadioConsent from ".";
|
|
4
3
|
declare const _default: {
|
|
5
4
|
title: string;
|
|
6
|
-
component:
|
|
5
|
+
component: typeof RadioConsent;
|
|
7
6
|
args: {
|
|
8
7
|
legend: string;
|
|
9
8
|
name: string;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from "react";
|
|
2
|
+
type Attribute = {
|
|
3
|
+
value: string;
|
|
4
|
+
option: string;
|
|
5
|
+
};
|
|
2
6
|
export type RadioConsentProps = {
|
|
3
7
|
/** because each radio has its own label this is the consent group label text */
|
|
4
8
|
legend: string;
|
|
5
9
|
/** array of option for radio constent group where option is the option name and value is the option value */
|
|
6
|
-
attributes:
|
|
7
|
-
value: string;
|
|
8
|
-
option: string;
|
|
9
|
-
}>;
|
|
10
|
+
attributes: Attribute[];
|
|
10
11
|
/** on change handler callback passed change event */
|
|
11
12
|
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
12
13
|
/** set the value of selected option */
|
|
@@ -20,5 +21,5 @@ export type RadioConsentProps = {
|
|
|
20
21
|
*
|
|
21
22
|
* This is always a controlled component that will only change state with the selectedValue prop
|
|
22
23
|
*/
|
|
23
|
-
declare
|
|
24
|
+
export declare function RadioConsent(props: RadioConsentProps): React.JSX.Element;
|
|
24
25
|
export default RadioConsent;
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { ThemeType } from "../../types";
|
|
1
|
+
import { type ThemeType } from "../../types";
|
|
2
2
|
type ThemeProp = {
|
|
3
3
|
theme: ThemeType;
|
|
4
4
|
};
|
|
5
|
-
|
|
6
|
-
ref?: import("react").Ref<HTMLInputElement> | undefined;
|
|
7
|
-
hasError?: boolean | undefined;
|
|
8
|
-
errorMessage?: string | undefined;
|
|
9
|
-
children?: import("react").ReactNode;
|
|
10
|
-
}, "ref"> & import("react").RefAttributes<HTMLInputElement>>, any, {
|
|
5
|
+
type StyleRadioWidthProp = {
|
|
11
6
|
numberOfAttributes: number;
|
|
12
|
-
} & ThemeProp
|
|
13
|
-
export declare const
|
|
14
|
-
|
|
7
|
+
} & ThemeProp;
|
|
8
|
+
export declare const StyledRadio: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<Omit<import("../Radio").RadioProps, "ref"> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
|
|
9
|
+
ref?: ((instance: HTMLInputElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLInputElement> | null | undefined;
|
|
10
|
+
}, StyleRadioWidthProp>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<import("../Radio").RadioProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>, keyof import("react").Component<any, {}, any>>;
|
|
11
|
+
export declare const StyledLegend: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLLegendElement>, HTMLLegendElement>, ThemeProp>> & string;
|
|
12
|
+
export declare const StyledFieldSet: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, ThemeProp>> & string;
|
|
15
13
|
export {};
|
|
@@ -3,7 +3,7 @@ import { StoryObj } from "@storybook/react";
|
|
|
3
3
|
import Select, { SelectProps } from ".";
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: React.
|
|
6
|
+
component: React.ForwardRefExoticComponent<Omit<SelectProps, "ref"> & React.RefAttributes<HTMLSelectElement>>;
|
|
7
7
|
args: {
|
|
8
8
|
disabled: boolean;
|
|
9
9
|
required: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import React, { type ReactNode, type SelectHTMLAttributes, type Ref, type LegacyRef } from "react";
|
|
2
2
|
export type SelectProps = SelectHTMLAttributes<HTMLSelectElement> & {
|
|
3
3
|
/** error message text */
|
|
4
4
|
errorMessage?: string;
|
|
@@ -11,11 +11,11 @@ export type SelectProps = SelectHTMLAttributes<HTMLSelectElement> & {
|
|
|
11
11
|
/** flag to stop (required) appearing in label, useful for compound form components like DateInput */
|
|
12
12
|
hideRequiredInLabel?: boolean;
|
|
13
13
|
/** react DOM reference of object used scrolling to it with errors etc */
|
|
14
|
-
ref?: Ref<HTMLSelectElement>;
|
|
14
|
+
ref?: Ref<HTMLSelectElement> | LegacyRef<HTMLSelectElement>;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* Select components are used for collecting user provided information from a list of options.
|
|
18
18
|
*
|
|
19
19
|
*/
|
|
20
|
-
declare const Select:
|
|
20
|
+
export declare const Select: React.ForwardRefExoticComponent<Omit<SelectProps, "ref"> & React.RefAttributes<HTMLSelectElement>>;
|
|
21
21
|
export default Select;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ThemeType } from "../../types";
|
|
1
|
+
import { type ThemeType } from "../../types";
|
|
2
2
|
type StyledSelectProps = {
|
|
3
3
|
hasError: boolean;
|
|
4
4
|
errorMessage?: string;
|
|
5
5
|
theme: ThemeType;
|
|
6
6
|
};
|
|
7
|
-
declare const StyledSelect: import("styled-components").
|
|
7
|
+
declare const StyledSelect: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, StyledSelectProps>> & string;
|
|
8
8
|
export default StyledSelect;
|
|
9
9
|
export { StyledSelect };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SpaceType, ThemeType } from "../../types";
|
|
1
|
+
import { type SpaceType, type ThemeType } from "../../types";
|
|
2
2
|
export type SpacingProps = {
|
|
3
3
|
margin?: SpaceType;
|
|
4
4
|
marginTop?: SpaceType;
|
|
@@ -15,5 +15,5 @@ export type SpacingProps = {
|
|
|
15
15
|
paddingVertical?: SpaceType;
|
|
16
16
|
paddingHorizontal?: SpaceType;
|
|
17
17
|
};
|
|
18
|
-
export declare
|
|
18
|
+
export declare function Spacing(props: SpacingProps, theme: ThemeType): string;
|
|
19
19
|
export default Spacing;
|