@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
package/README.md
CHANGED
|
@@ -32,6 +32,26 @@ const MyComponent = () => (
|
|
|
32
32
|
);
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
+
## Migration from V4 to V5
|
|
36
|
+
|
|
37
|
+
Because Styped Components now manages its own types on stead of relying on the community efforts on the DefinitelyTyped project, you may need to use generics instead of inline prop type definition inside styledComponents componets.
|
|
38
|
+
|
|
39
|
+
### Before:
|
|
40
|
+
|
|
41
|
+
```tsx
|
|
42
|
+
export const StyledButton = styled(Button)`
|
|
43
|
+
border-radius: ${({ theme }: StyledButtonProps) => theme.button.borderRadius};
|
|
44
|
+
`;
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Now:
|
|
48
|
+
|
|
49
|
+
```tsx
|
|
50
|
+
export const StyledButton = styled(Button)<StyledButtonProps>`
|
|
51
|
+
border-radius: ${({ theme }) => theme.button.borderRadius};
|
|
52
|
+
`;
|
|
53
|
+
```
|
|
54
|
+
|
|
35
55
|
## Migration from V0 to V1
|
|
36
56
|
|
|
37
57
|
1. Find all instances of RadioGroup and change it to the new component name of RadioConsent
|
|
@@ -70,11 +90,11 @@ However this isn't as well maintained as the storybook stories and will soon be
|
|
|
70
90
|
|
|
71
91
|
## Testing
|
|
72
92
|
|
|
73
|
-
|
|
93
|
+
Node: Unit testing,
|
|
74
94
|
Cypress: Component function, accessibility
|
|
75
95
|
Chromatic: Image snapshot comparison service, this happens in CI, people are given access to this service via their Github login.
|
|
76
96
|
|
|
77
|
-
Run all tests
|
|
97
|
+
Run all tests Unit and Cypress
|
|
78
98
|
|
|
79
99
|
```sh
|
|
80
100
|
npm run test
|
|
@@ -92,21 +112,9 @@ Run Cypress headlessly including image snapshots, docker desktop app will need t
|
|
|
92
112
|
npm run cypress-headless
|
|
93
113
|
```
|
|
94
114
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
```sh
|
|
98
|
-
ARGS="--spec src/components/Modal/test.cypress.tsx" npm run cypress-headless
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
To run and update a specific snapshot headlessly
|
|
102
|
-
|
|
103
|
-
```sh
|
|
104
|
-
ARGS="--spec src/components/Modal/test.cypress.tsx" npm run cypress-headless:update
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
### Maintaining
|
|
115
|
+
## Maintaining
|
|
108
116
|
|
|
109
|
-
|
|
117
|
+
### Dependencies
|
|
110
118
|
|
|
111
119
|
If you update cypress version make sure you update it in the package.json and in the in docker compose file.
|
|
112
120
|
|
|
@@ -118,7 +126,7 @@ npm run rollup:build-lib
|
|
|
118
126
|
|
|
119
127
|
and see if it can successfully build the library before running the release script
|
|
120
128
|
|
|
121
|
-
|
|
129
|
+
### Releases
|
|
122
130
|
|
|
123
131
|
Please update the version number in the package.json and follow the semver standards for version numbers.
|
|
124
132
|
|
|
@@ -3,21 +3,7 @@ import { StoryObj } from "@storybook/react";
|
|
|
3
3
|
import AddressLookup from ".";
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: React.ForwardRefExoticComponent<Omit<
|
|
7
|
-
apiKey: string;
|
|
8
|
-
countries?: string[] | undefined;
|
|
9
|
-
onAddressSelected: (address: import("..").AddressDataType) => void;
|
|
10
|
-
errorMessage?: string | undefined;
|
|
11
|
-
hasError?: boolean | undefined;
|
|
12
|
-
isValid?: boolean | undefined;
|
|
13
|
-
isValidVisible?: boolean | undefined;
|
|
14
|
-
isInvalidVisible?: boolean | undefined;
|
|
15
|
-
label?: string | undefined;
|
|
16
|
-
hintText?: React.ReactNode;
|
|
17
|
-
onAddressError?: ((error: Error) => void) | undefined;
|
|
18
|
-
onBlur?: ((e: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
19
|
-
ref?: React.Ref<HTMLInputElement> | undefined;
|
|
20
|
-
}, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
6
|
+
component: React.ForwardRefExoticComponent<Omit<import(".").AddressLookupProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
21
7
|
args: {
|
|
22
8
|
disabled: boolean;
|
|
23
9
|
errorMessage: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { InputHTMLAttributes, Ref, FocusEvent, ReactNode } from "react";
|
|
2
|
-
import { AddressDataType } from "../../types";
|
|
1
|
+
import React, { type InputHTMLAttributes, type Ref, type FocusEvent, type ReactNode } from "react";
|
|
2
|
+
import { type AddressDataType } from "../../types";
|
|
3
3
|
export type AddressLookupProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
4
4
|
/** api key for loqate */
|
|
5
5
|
apiKey: string;
|
|
@@ -34,32 +34,5 @@ export type AddressLookupProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
|
34
34
|
* You will need a Loqate api key, the examples below use "MG17-ZD93-FF33-KF13" our development key.
|
|
35
35
|
* This component is generally only used for country codes including "GBR", "GGY", "IMN", "JEY". An example of this behavior is included bellow.
|
|
36
36
|
*/
|
|
37
|
-
declare const AddressLookup: React.ForwardRefExoticComponent<Omit<React.
|
|
38
|
-
/** api key for loqate */
|
|
39
|
-
apiKey: string;
|
|
40
|
-
/** list of countries codes you want the address look up to search within */
|
|
41
|
-
countries?: string[] | undefined;
|
|
42
|
-
/** callback function which is passed the selected address data */
|
|
43
|
-
onAddressSelected: (address: AddressDataType) => void;
|
|
44
|
-
/** error message */
|
|
45
|
-
errorMessage?: string | undefined;
|
|
46
|
-
/** when true a input has a red border */
|
|
47
|
-
hasError?: boolean | undefined;
|
|
48
|
-
/** flag which effects the check or cross icons to the right of the input */
|
|
49
|
-
isValid?: boolean | undefined;
|
|
50
|
-
/** flag to hide or show the check icon when valid */
|
|
51
|
-
isValidVisible?: boolean | undefined;
|
|
52
|
-
/** flag to hide or show the cross icon when invalid */
|
|
53
|
-
isInvalidVisible?: boolean | undefined;
|
|
54
|
-
/** label text */
|
|
55
|
-
label?: string | undefined;
|
|
56
|
-
/** hint text text */
|
|
57
|
-
hintText?: ReactNode;
|
|
58
|
-
/** callback function which is passed the error */
|
|
59
|
-
onAddressError?: ((error: Error) => void) | undefined;
|
|
60
|
-
/** onBlur handler */
|
|
61
|
-
onBlur?: ((e: FocusEvent<HTMLInputElement>) => void) | undefined;
|
|
62
|
-
/** attach a DOM reference variable to your component */
|
|
63
|
-
ref?: React.Ref<HTMLInputElement> | undefined;
|
|
64
|
-
}, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
37
|
+
export declare const AddressLookup: React.ForwardRefExoticComponent<Omit<AddressLookupProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
65
38
|
export default AddressLookup;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
+
import { type ThemeType } from "../../types";
|
|
1
2
|
interface ListWrapperProps extends React.HTMLProps<HTMLDivElement> {
|
|
2
3
|
tabIndex?: number;
|
|
3
4
|
}
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
export declare const
|
|
9
|
-
|
|
10
|
-
ref?:
|
|
11
|
-
}
|
|
12
|
-
export declare const
|
|
5
|
+
type ListProps = {
|
|
6
|
+
theme: ThemeType;
|
|
7
|
+
isActive?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const ListWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ListWrapperProps>> & string;
|
|
10
|
+
export declare const List: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, ListProps & {
|
|
11
|
+
ref?: React.Ref<HTMLUListElement>;
|
|
12
|
+
}>> & string;
|
|
13
|
+
export declare const ListItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, ListProps & {
|
|
14
|
+
ref?: React.Ref<HTMLLIElement>;
|
|
15
|
+
}>> & string;
|
|
16
|
+
export declare const ScreenReaderOnly: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
13
17
|
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { StoryObj } from "@storybook/react";
|
|
3
|
-
import Avatar from ".";
|
|
2
|
+
import { Avatar } from ".";
|
|
4
3
|
declare const _default: {
|
|
5
4
|
title: string;
|
|
6
|
-
component:
|
|
5
|
+
component: typeof Avatar;
|
|
7
6
|
args: {
|
|
8
7
|
name: string;
|
|
9
8
|
size: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ImgHTMLAttributes } from "react";
|
|
1
|
+
import React, { type ImgHTMLAttributes } from "react";
|
|
2
2
|
export type AvatarProps = ImgHTMLAttributes<HTMLElement> & {
|
|
3
3
|
/** name of user/entity */
|
|
4
4
|
name?: string;
|
|
@@ -11,5 +11,5 @@ export type AvatarProps = ImgHTMLAttributes<HTMLElement> & {
|
|
|
11
11
|
*
|
|
12
12
|
* You can use an avatar to display ownership of an item of content. If you pass a URL of an image that will be displayed otherwise the first letter of the name will be used to display a branded avatar.
|
|
13
13
|
*/
|
|
14
|
-
declare
|
|
14
|
+
export declare function Avatar({ url, name, size, alt, ...rest }: AvatarProps): React.JSX.Element;
|
|
15
15
|
export default Avatar;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ThemeType } from "../../types";
|
|
1
|
+
import { type ThemeType } from "../../types";
|
|
2
2
|
type AvatarStyledProps = {
|
|
3
3
|
size?: string;
|
|
4
4
|
theme: ThemeType;
|
|
5
5
|
};
|
|
6
|
-
export declare const StyledAvatar: import("styled-components").
|
|
6
|
+
export declare const StyledAvatar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, AvatarStyledProps>> & string;
|
|
7
7
|
export default StyledAvatar;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { StoryObj } from "@storybook/react";
|
|
3
|
-
import Badge from ".";
|
|
2
|
+
import { Badge } from ".";
|
|
4
3
|
declare const _default: {
|
|
5
4
|
title: string;
|
|
6
|
-
component:
|
|
5
|
+
component: typeof Badge;
|
|
7
6
|
args: {
|
|
8
7
|
borderColor: string;
|
|
9
8
|
backgroundColor: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import { SpaceType } from "../../types";
|
|
1
|
+
import React, { type ReactNode } from "react";
|
|
2
|
+
import { type SpaceType } from "../../types";
|
|
3
3
|
export type BadgeProps = {
|
|
4
4
|
/** background colour of badge */
|
|
5
5
|
backgroundColor?: string;
|
|
@@ -25,5 +25,5 @@ at the end of a sentence, link, or button. Unless the context is clear,
|
|
|
25
25
|
consider including additional context with a visually hidden piece of
|
|
26
26
|
additional text.
|
|
27
27
|
*/
|
|
28
|
-
declare
|
|
28
|
+
export declare function Badge({ children, ...rest }: BadgeProps): React.JSX.Element;
|
|
29
29
|
export default Badge;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SpaceType, ThemeType } from "../../types";
|
|
1
|
+
import { type SpaceType, type ThemeType } from "../../types";
|
|
2
2
|
type StyleBadgeProps = {
|
|
3
3
|
backgroundColor?: string;
|
|
4
4
|
borderColor?: string;
|
|
@@ -7,5 +7,5 @@ type StyleBadgeProps = {
|
|
|
7
7
|
size: SpaceType;
|
|
8
8
|
theme: ThemeType;
|
|
9
9
|
};
|
|
10
|
-
export declare const StyledBadge: import("styled-components").
|
|
10
|
+
export declare const StyledBadge: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, StyleBadgeProps>> & string;
|
|
11
11
|
export default StyledBadge;
|
|
@@ -3,7 +3,7 @@ import { StoryObj } from "@storybook/react";
|
|
|
3
3
|
import Box from ".";
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: React.
|
|
6
|
+
component: React.ForwardRefExoticComponent<Omit<import(".").BoxProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
7
|
args: {};
|
|
8
8
|
tags: string[];
|
|
9
9
|
};
|
|
@@ -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 BoxProps = SpacingProps & HTMLAttributes<HTMLElement> & {
|
|
4
4
|
/** background color of box, this will add default padding */
|
|
5
5
|
backgroundColor?: string;
|
|
@@ -10,9 +10,10 @@ export type BoxProps = SpacingProps & HTMLAttributes<HTMLElement> & {
|
|
|
10
10
|
as?: ElementType;
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
|
-
* Box is used to wrap other components to add margin and padding.
|
|
14
|
-
|
|
15
|
-
The more specific the the target the higher priority the css will have.
|
|
13
|
+
* Box is used to wrap other components to add margin and padding.
|
|
14
|
+
* The values will be in the t-shirt sizes specified in the theme sizes.
|
|
15
|
+
* The more specific the the target the higher priority the css will have.
|
|
16
|
+
* For example `margin` will be overridden by the `marginVertical` or `marginHorizontal` props. `marginTop`, `marginBottom`, `marginLeft`, `marginRight` will override the the `marginVertical` and `marginHorizontal` props.
|
|
16
17
|
*/
|
|
17
|
-
declare const Box:
|
|
18
|
+
export declare const Box: React.ForwardRefExoticComponent<Omit<BoxProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
19
|
export default Box;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { SpacingProps } from "../Spacing";
|
|
2
|
-
import { ThemeType } from "../../types";
|
|
3
|
-
|
|
4
|
-
backgroundColor?: string
|
|
5
|
-
css?: string
|
|
1
|
+
import { type SpacingProps } from "../Spacing";
|
|
2
|
+
import { type ThemeType } from "../../types";
|
|
3
|
+
type StyledBoxProps = SpacingProps & {
|
|
4
|
+
backgroundColor?: string;
|
|
5
|
+
css?: string;
|
|
6
6
|
theme: ThemeType;
|
|
7
|
-
}
|
|
7
|
+
};
|
|
8
|
+
export declare const StyledBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledBoxProps>> & string;
|
|
8
9
|
export default StyledBox;
|
|
@@ -3,17 +3,7 @@ import { StoryObj } from "@storybook/react";
|
|
|
3
3
|
import { Button } from "./";
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: React.ForwardRefExoticComponent<Omit<
|
|
7
|
-
appearance?: import("..").ButtonAppearanceType | undefined;
|
|
8
|
-
full?: boolean | undefined;
|
|
9
|
-
href?: string | undefined;
|
|
10
|
-
size?: "m" | "l" | undefined;
|
|
11
|
-
css?: any;
|
|
12
|
-
as?: React.ElementType | undefined;
|
|
13
|
-
isIconButton?: boolean | undefined;
|
|
14
|
-
ref?: React.Ref<HTMLElement> | undefined;
|
|
15
|
-
children?: React.ReactNode;
|
|
16
|
-
}, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
6
|
+
component: React.ForwardRefExoticComponent<Omit<import("./").ButtonProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
17
7
|
args: {
|
|
18
8
|
appearance: string;
|
|
19
9
|
disabled: boolean;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import React, { ReactNode, ButtonHTMLAttributes, Ref, ElementType } from "react";
|
|
2
|
-
import { ButtonAppearanceType } from "../../types";
|
|
1
|
+
import React, { type ReactNode, type ButtonHTMLAttributes, type Ref, type ElementType } from "react";
|
|
2
|
+
import { type ButtonAppearanceType } from "../../types";
|
|
3
3
|
export type ButtonProps = ButtonHTMLAttributes<HTMLElement> & {
|
|
4
4
|
/** the look and feel of the button */
|
|
5
5
|
appearance?: ButtonAppearanceType;
|
|
6
|
-
/** flag to
|
|
6
|
+
/** flag to stretch but to 100% width */
|
|
7
7
|
full?: boolean;
|
|
8
8
|
/** this is a url which will convert the button to an anchor tag */
|
|
9
9
|
href?: string;
|
|
10
10
|
/** the height of the button, this will add padding not increase text size */
|
|
11
11
|
size?: "m" | "l";
|
|
12
|
-
css?:
|
|
12
|
+
css?: unknown;
|
|
13
13
|
/** styled-components polymorphism where you can use the styling of a button but convert to another element like an anchor tag */
|
|
14
14
|
as?: ElementType;
|
|
15
15
|
/** flag to force button into an icon button shape which is square or round */
|
|
@@ -24,23 +24,5 @@ export type ButtonProps = ButtonHTMLAttributes<HTMLElement> & {
|
|
|
24
24
|
*
|
|
25
25
|
* Design system documentation SU2C https://zeroheight.com/79db39f7e/p/22ff0e-button/b/32e1a2
|
|
26
26
|
*/
|
|
27
|
-
export declare const Button: React.ForwardRefExoticComponent<Omit<React.
|
|
28
|
-
/** the look and feel of the button */
|
|
29
|
-
appearance?: ButtonAppearanceType | undefined;
|
|
30
|
-
/** flag to streatch but to 100% width */
|
|
31
|
-
full?: boolean | undefined;
|
|
32
|
-
/** this is a url which will convert the button to an anchor tag */
|
|
33
|
-
href?: string | undefined;
|
|
34
|
-
/** the height of the button, this will add padding not increase text size */
|
|
35
|
-
size?: "m" | "l" | undefined;
|
|
36
|
-
css?: any;
|
|
37
|
-
/** styled-components polymorphism where you can use the styling of a button but convert to another element like an anchor tag */
|
|
38
|
-
as?: React.ElementType | undefined;
|
|
39
|
-
/** flag to force button into an icon button shape which is square or round */
|
|
40
|
-
isIconButton?: boolean | undefined;
|
|
41
|
-
/** Element reference */
|
|
42
|
-
ref?: React.Ref<HTMLElement> | undefined;
|
|
43
|
-
/** Component reference */
|
|
44
|
-
children?: ReactNode;
|
|
45
|
-
}, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
27
|
+
export declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
46
28
|
export default Button;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ThemeType, ButtonAppearanceType } from "../../types";
|
|
2
|
-
export declare const Spacer: import("styled-components").
|
|
1
|
+
import { type ThemeType, type ButtonAppearanceType } from "../../types";
|
|
2
|
+
export declare const Spacer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
3
3
|
theme: ThemeType;
|
|
4
|
-
}
|
|
4
|
+
}>> & string;
|
|
5
5
|
type StyledButtonProps = {
|
|
6
6
|
isIconButton: boolean;
|
|
7
7
|
appearance?: ButtonAppearanceType;
|
|
@@ -11,5 +11,5 @@ type StyledButtonProps = {
|
|
|
11
11
|
size?: "m" | "l";
|
|
12
12
|
css?: string;
|
|
13
13
|
};
|
|
14
|
-
export declare const StyledButton: import("styled-components").
|
|
14
|
+
export declare const StyledButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, StyledButtonProps>> & string;
|
|
15
15
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { type ButtonHTMLAttributes } from "react";
|
|
2
|
+
import { type ThemeType } from "../../types";
|
|
3
|
+
export declare const CarouselWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
4
|
type ThemeProps = {
|
|
4
5
|
theme: ThemeType;
|
|
5
6
|
};
|
|
@@ -16,18 +17,19 @@ type CarouselCardInnerProps = {
|
|
|
16
17
|
onlyChild: boolean;
|
|
17
18
|
fullWidthChild: boolean;
|
|
18
19
|
};
|
|
19
|
-
export declare const CarouselScrollArea: import("styled-components").
|
|
20
|
-
export declare const CarouselCard: import("styled-components").
|
|
21
|
-
export declare const CarouselCardInner: import("styled-components").
|
|
22
|
-
export declare const ButtonWrapper: import("styled-components").
|
|
23
|
-
export declare const VerticalAlign: import("styled-components").
|
|
24
|
-
|
|
25
|
-
export declare const
|
|
20
|
+
export declare const CarouselScrollArea: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, CarouselScrollAreaProps>> & string;
|
|
21
|
+
export declare const CarouselCard: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, CarouselCardProps>> & string;
|
|
22
|
+
export declare const CarouselCardInner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, CarouselCardInnerProps>> & string;
|
|
23
|
+
export declare const ButtonWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
24
|
+
export declare const VerticalAlign: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
25
|
+
type CarouselButtonProps = ThemeProps & ButtonHTMLAttributes<HTMLElement>;
|
|
26
|
+
export declare const CarouselButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, CarouselButtonProps>> & string;
|
|
27
|
+
type DotContainerProps = ThemeProps & {
|
|
26
28
|
count: number;
|
|
27
|
-
}
|
|
28
|
-
export declare const
|
|
29
|
-
|
|
29
|
+
};
|
|
30
|
+
export declare const DotContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, DotContainerProps>> & string;
|
|
31
|
+
export declare const Dot: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ThemeProps & {
|
|
30
32
|
selected: boolean;
|
|
31
|
-
}
|
|
32
|
-
export declare const ScreenReaderOnly: import("styled-components").
|
|
33
|
+
}>> & string;
|
|
34
|
+
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;
|
|
33
35
|
export {};
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { StoryObj } from "@storybook/react";
|
|
3
|
-
import CheckBox from ".";
|
|
3
|
+
import CheckBox, { CheckBoxProps } 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<CheckBoxProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
12
7
|
args: {
|
|
13
8
|
id: string;
|
|
14
9
|
disabled: boolean;
|
|
@@ -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 CheckBoxProps = 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 CheckBoxProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
|
12
12
|
*
|
|
13
13
|
* The value or children becomes the label, if you want an outer label for a checkbox or group of checkboxes please use a LegendWrapper component
|
|
14
14
|
*/
|
|
15
|
-
declare const Checkbox: 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 Checkbox: React.ForwardRefExoticComponent<Omit<CheckBoxProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
23
16
|
export default Checkbox;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ThemeType } from "../../types";
|
|
1
|
+
import { type ThemeType } from "../../types";
|
|
2
2
|
type StyledLabelProps = {
|
|
3
3
|
checked: boolean;
|
|
4
4
|
disabled: boolean;
|
|
@@ -8,9 +8,9 @@ type StyledLabelProps = {
|
|
|
8
8
|
type ThemeProps = {
|
|
9
9
|
theme: ThemeType;
|
|
10
10
|
};
|
|
11
|
-
export declare const CheckWrapper: import("styled-components").
|
|
12
|
-
export declare const Check: import("styled-components").
|
|
13
|
-
export declare const StyledLabel: import("styled-components").
|
|
14
|
-
export declare const SelectedBorder: import("styled-components").
|
|
15
|
-
export declare const StyledInput: import("styled-components").
|
|
11
|
+
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>, ThemeProps>> & string;
|
|
12
|
+
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>, ThemeProps>> & string;
|
|
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 SelectedBorder: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
15
|
+
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>, ThemeProps>> & string;
|
|
16
16
|
export {};
|
|
@@ -3,7 +3,7 @@ import { StoryObj } from "@storybook/react";
|
|
|
3
3
|
import Collapse from ".";
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component:
|
|
6
|
+
component: typeof Collapse;
|
|
7
7
|
args: {
|
|
8
8
|
id: string;
|
|
9
9
|
headerTitleText: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode, HTMLAttributes } from "react";
|
|
2
|
-
import { FontSizeType } from "../../types";
|
|
1
|
+
import React, { type ReactNode, type HTMLAttributes } from "react";
|
|
2
|
+
import { type FontSizeType } from "../../types";
|
|
3
3
|
export type CollapseProps = HTMLAttributes<HTMLElement> & {
|
|
4
4
|
/** id is required for a11y reasons as we use aria attributes which depends on an id */
|
|
5
5
|
id: string;
|
|
@@ -25,5 +25,5 @@ export type CollapseProps = HTMLAttributes<HTMLElement> & {
|
|
|
25
25
|
* Use a collapse component to show and hide content. It has a default view; however, it can be overwritten by passing a custom component as a prop.
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
|
-
declare
|
|
28
|
+
export declare function Collapse({ id, headerTitleText, headerTitleTextColor, headerTitleTextSize, headerTitleTextFontFamily, headerComponent, startOpen, onOpenChange, children, }: CollapseProps): React.JSX.Element;
|
|
29
29
|
export default Collapse;
|
|
@@ -1,25 +1,19 @@
|
|
|
1
|
-
import { FontSizeType } from "../../types";
|
|
1
|
+
import { type FontSizeType, type ThemeType } from "../../types";
|
|
2
|
+
import IconFa from "../IconFa";
|
|
2
3
|
export declare const transitionDurationSeconds = 0.5;
|
|
3
|
-
export declare const FlippingIcon: import("styled-components").
|
|
4
|
+
export declare const FlippingIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../IconFa").IconFaProps, {
|
|
4
5
|
open: boolean;
|
|
5
|
-
},
|
|
6
|
-
export declare const DefaultHeader: import("styled-components").
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
children?: import("react").ReactNode;
|
|
16
|
-
}, "ref"> & import("react").RefAttributes<HTMLElement>>, any, {
|
|
17
|
-
textColor?: string | undefined;
|
|
18
|
-
textSize?: FontSizeType | undefined;
|
|
19
|
-
textFontFamily?: string | undefined;
|
|
20
|
-
}, never>;
|
|
21
|
-
export declare const CollapseContent: import("styled-components").StyledComponent<"div", any, {
|
|
6
|
+
}>> & string & Omit<typeof IconFa, keyof import("react").Component<any, {}, any>>;
|
|
7
|
+
export declare const DefaultHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<Omit<import("../Button").ButtonProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & {
|
|
8
|
+
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;
|
|
9
|
+
}, {
|
|
10
|
+
textColor?: string;
|
|
11
|
+
textSize?: FontSizeType;
|
|
12
|
+
textFontFamily?: string;
|
|
13
|
+
theme: ThemeType;
|
|
14
|
+
}>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<import("../Button").ButtonProps, "ref"> & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
|
|
15
|
+
export declare const CollapseContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
22
16
|
contentHeight: string;
|
|
23
17
|
openStatus: boolean;
|
|
24
|
-
}
|
|
25
|
-
export declare const CustomHeader: import("styled-components").
|
|
18
|
+
}>> & string;
|
|
19
|
+
export declare const CustomHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { StoryObj } from "@storybook/react";
|
|
3
2
|
import DateField from ".";
|
|
4
3
|
declare const _default: {
|
|
5
4
|
title: string;
|
|
6
|
-
component:
|
|
5
|
+
component: typeof DateField;
|
|
7
6
|
args: {
|
|
8
7
|
dayName: string;
|
|
9
8
|
monthName: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { InputHTMLAttributes } from "react";
|
|
1
|
+
import React, { type InputHTMLAttributes } from "react";
|
|
2
2
|
export type DateFieldProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
3
3
|
/** label text */
|
|
4
4
|
label: string;
|
|
@@ -28,5 +28,5 @@ export type DateFieldProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
|
28
28
|
/**
|
|
29
29
|
* To be used in forms entering dates like date of birth which are known dates and would take too long to get to with a date picker
|
|
30
30
|
* */
|
|
31
|
-
declare
|
|
31
|
+
export declare function DateField({ label, hintText, day, month, year, dayName, monthName, yearName, dayHasError, monthHasError, yearHasError, errorMessage, onChange, onBlur, onFocus, disabled, required, }: DateFieldProps): React.JSX.Element;
|
|
32
32
|
export default DateField;
|