@cruk/cruk-react-components 5.0.8 → 6.0.1
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 +20 -7
- package/lib/{src/components → components}/AddressLookup/AddressLookup.stories.d.ts +1 -1
- package/lib/{src/components → components}/AddressLookup/index.d.ts +1 -1
- package/lib/{src/components → components}/Box/Box.stories.d.ts +1 -1
- package/lib/{src/components → components}/Box/index.d.ts +1 -1
- package/lib/{src/components → components}/Button/Button.stories.d.ts +1 -1
- package/lib/{src/components → components}/Button/index.d.ts +1 -1
- package/lib/{src/components → components}/Checkbox/Checkbox.stories.d.ts +1 -1
- package/lib/{src/components → components}/Checkbox/index.d.ts +3 -3
- package/lib/{src/components → components}/Collapse/styles.d.ts +11 -3
- package/lib/{src/components → components}/DateField/styles.d.ts +12 -6
- package/lib/components/ErrorText/styles.d.ts +16 -0
- package/lib/{src/components → components}/Footer/styles.d.ts +3 -9
- package/lib/components/GlobalStyle.d.ts +2 -0
- package/lib/components/GlobalStyleNoFontFace.d.ts +2 -0
- package/lib/{src/components → components}/InfoBox/InfoBox.stories.d.ts +1 -1
- package/lib/{src/components → components}/InfoBox/index.d.ts +1 -1
- package/lib/components/InfoBox/styles.d.ts +13 -0
- package/lib/{src/components → components}/Link/Link.stories.d.ts +4 -1
- package/lib/{src/components → components}/Link/index.d.ts +4 -1
- package/lib/components/Link/styles.d.ts +20 -0
- package/lib/components/Modal/styles.d.ts +32 -0
- package/lib/{src/components → components}/Radio/Radio.stories.d.ts +1 -1
- package/lib/{src/components → components}/Radio/index.d.ts +3 -3
- package/lib/{src/components → components}/RadioConsent/styles.d.ts +6 -3
- package/lib/{src/components → components}/Select/Selelct.stories.d.ts +1 -1
- package/lib/{src/components → components}/Select/index.d.ts +3 -3
- package/lib/{src/components → components}/Text/Text.stories.d.ts +1 -1
- package/lib/{src/components → components}/Text/index.d.ts +1 -1
- package/lib/{src/components → components}/TextAreaField/TextAreaField.stories.d.ts +1 -1
- package/lib/{src/components → components}/TextAreaField/index.d.ts +1 -1
- package/lib/{src/components → components}/TextField/TextField.stories.d.ts +1 -1
- package/lib/{src/components → components}/TextField/index.d.ts +1 -1
- package/lib/{src/components → components}/TextField/styles.d.ts +2 -6
- package/lib/components/ThemeCheatSheet.d.ts +7 -0
- package/lib/{src/hooks → hooks}/useScrollPosition.d.ts +2 -2
- package/lib/node_modules/tslib/tslib.es6.js +1 -1
- package/lib/node_modules/tslib/tslib.es6.js.map +1 -1
- package/lib/src/components/AddressLookup/index.js +1 -1
- package/lib/src/components/AddressLookup/index.js.map +1 -1
- package/lib/src/components/AddressLookup/styles.js +1 -38
- package/lib/src/components/AddressLookup/styles.js.map +1 -1
- package/lib/src/components/Avatar/index.js +1 -1
- package/lib/src/components/Avatar/index.js.map +1 -1
- package/lib/src/components/Avatar/styles.js +1 -10
- package/lib/src/components/Avatar/styles.js.map +1 -1
- package/lib/src/components/Badge/index.js +1 -1
- package/lib/src/components/Badge/index.js.map +1 -1
- package/lib/src/components/Badge/styles.js +1 -17
- package/lib/src/components/Badge/styles.js.map +1 -1
- package/lib/src/components/Box/index.js +1 -1
- package/lib/src/components/Box/index.js.map +1 -1
- package/lib/src/components/Box/styles.js +1 -13
- package/lib/src/components/Box/styles.js.map +1 -1
- package/lib/src/components/Button/index.js +1 -1
- package/lib/src/components/Button/index.js.map +1 -1
- package/lib/src/components/Button/styles.js +1 -108
- package/lib/src/components/Button/styles.js.map +1 -1
- package/lib/src/components/Carousel/Dots.js +1 -1
- package/lib/src/components/Carousel/Dots.js.map +1 -1
- package/lib/src/components/Carousel/index.js +1 -1
- package/lib/src/components/Carousel/index.js.map +1 -1
- package/lib/src/components/Carousel/styles.js +1 -96
- package/lib/src/components/Carousel/styles.js.map +1 -1
- package/lib/src/components/Checkbox/index.js +1 -1
- package/lib/src/components/Checkbox/index.js.map +1 -1
- package/lib/src/components/Checkbox/styles.js +1 -105
- package/lib/src/components/Checkbox/styles.js.map +1 -1
- package/lib/src/components/Collapse/index.js +1 -1
- package/lib/src/components/Collapse/index.js.map +1 -1
- package/lib/src/components/Collapse/styles.js +1 -31
- package/lib/src/components/Collapse/styles.js.map +1 -1
- package/lib/src/components/DateField/index.js +1 -1
- package/lib/src/components/DateField/index.js.map +1 -1
- package/lib/src/components/DateField/styles.js +1 -26
- package/lib/src/components/DateField/styles.js.map +1 -1
- package/lib/src/components/Divider.js +1 -17
- package/lib/src/components/Divider.js.map +1 -1
- package/lib/src/components/ErrorText/index.js +1 -1
- package/lib/src/components/ErrorText/index.js.map +1 -1
- package/lib/src/components/ErrorText/styles.js +1 -5
- package/lib/src/components/ErrorText/styles.js.map +1 -1
- package/lib/src/components/Flex.js +1 -7
- package/lib/src/components/Flex.js.map +1 -1
- package/lib/src/components/Fontface.js +1 -1
- package/lib/src/components/Fontface.js.map +1 -1
- package/lib/src/components/Footer/index.js +1 -1
- package/lib/src/components/Footer/index.js.map +1 -1
- package/lib/src/components/Footer/styles.js +1 -69
- package/lib/src/components/Footer/styles.js.map +1 -1
- package/lib/src/components/GlobalStyle.js +1 -37
- package/lib/src/components/GlobalStyle.js.map +1 -1
- package/lib/src/components/GlobalStyleNoFontFace.js +1 -37
- package/lib/src/components/GlobalStyleNoFontFace.js.map +1 -1
- package/lib/src/components/Header/index.js +1 -1
- package/lib/src/components/Header/index.js.map +1 -1
- package/lib/src/components/Header/styles.js +1 -109
- package/lib/src/components/Header/styles.js.map +1 -1
- package/lib/src/components/Heading/index.js +1 -1
- package/lib/src/components/Heading/index.js.map +1 -1
- package/lib/src/components/Heading/styles.js +1 -75
- package/lib/src/components/Heading/styles.js.map +1 -1
- package/lib/src/components/IconFa/index.js +1 -1
- package/lib/src/components/IconFa/index.js.map +1 -1
- package/lib/src/components/IconFa/styles.js +1 -10
- package/lib/src/components/IconFa/styles.js.map +1 -1
- package/lib/src/components/InfoBox/index.js +1 -1
- package/lib/src/components/InfoBox/index.js.map +1 -1
- package/lib/src/components/InfoBox/styles.js +1 -12
- package/lib/src/components/InfoBox/styles.js.map +1 -1
- package/lib/src/components/LabelWrapper/index.js +1 -1
- package/lib/src/components/LabelWrapper/index.js.map +1 -1
- package/lib/src/components/LabelWrapper/styles.js +1 -15
- package/lib/src/components/LabelWrapper/styles.js.map +1 -1
- package/lib/src/components/LegendWrapper/index.js +1 -1
- package/lib/src/components/LegendWrapper/index.js.map +1 -1
- package/lib/src/components/LegendWrapper/styles.js +1 -34
- package/lib/src/components/LegendWrapper/styles.js.map +1 -1
- package/lib/src/components/Link/index.js +1 -1
- package/lib/src/components/Link/index.js.map +1 -1
- package/lib/src/components/Link/styles.js +1 -29
- package/lib/src/components/Link/styles.js.map +1 -1
- package/lib/src/components/Loader/index.js +1 -1
- package/lib/src/components/Loader/index.js.map +1 -1
- package/lib/src/components/Loader/styles.js +1 -45
- package/lib/src/components/Loader/styles.js.map +1 -1
- package/lib/src/components/Modal/index.js +1 -1
- package/lib/src/components/Modal/index.js.map +1 -1
- package/lib/src/components/Modal/styles.js +1 -59
- package/lib/src/components/Modal/styles.js.map +1 -1
- package/lib/src/components/Pagination/index.js +1 -1
- package/lib/src/components/Pagination/index.js.map +1 -1
- package/lib/src/components/Pagination/styles.js +1 -92
- package/lib/src/components/Pagination/styles.js.map +1 -1
- package/lib/src/components/PopOver/index.js +1 -1
- package/lib/src/components/PopOver/index.js.map +1 -1
- package/lib/src/components/PopOver/styles.js +1 -81
- package/lib/src/components/PopOver/styles.js.map +1 -1
- package/lib/src/components/ProgressBar/index.js +1 -1
- package/lib/src/components/ProgressBar/index.js.map +1 -1
- package/lib/src/components/ProgressBar/styles.js +1 -132
- package/lib/src/components/ProgressBar/styles.js.map +1 -1
- package/lib/src/components/Radio/index.js +1 -1
- package/lib/src/components/Radio/index.js.map +1 -1
- package/lib/src/components/Radio/styles.js +1 -125
- package/lib/src/components/Radio/styles.js.map +1 -1
- package/lib/src/components/RadioConsent/index.js +1 -1
- package/lib/src/components/RadioConsent/index.js.map +1 -1
- package/lib/src/components/RadioConsent/styles.js +1 -26
- package/lib/src/components/RadioConsent/styles.js.map +1 -1
- package/lib/src/components/Select/index.js +1 -1
- package/lib/src/components/Select/index.js.map +1 -1
- package/lib/src/components/Select/styles.js +1 -41
- package/lib/src/components/Select/styles.js.map +1 -1
- package/lib/src/components/Spacing/index.js +1 -1
- package/lib/src/components/Spacing/index.js.map +1 -1
- package/lib/src/components/Step/index.js +1 -1
- package/lib/src/components/Step/index.js.map +1 -1
- package/lib/src/components/Step/styles.js +1 -79
- package/lib/src/components/Step/styles.js.map +1 -1
- package/lib/src/components/Text/index.js +1 -1
- package/lib/src/components/Text/index.js.map +1 -1
- package/lib/src/components/Text/styles.js +1 -19
- package/lib/src/components/Text/styles.js.map +1 -1
- package/lib/src/components/TextAreaField/index.js +1 -1
- package/lib/src/components/TextAreaField/index.js.map +1 -1
- package/lib/src/components/TextAreaField/styles.js +1 -29
- package/lib/src/components/TextAreaField/styles.js.map +1 -1
- package/lib/src/components/TextField/index.js +1 -1
- package/lib/src/components/TextField/index.js.map +1 -1
- package/lib/src/components/TextField/styles.js +1 -110
- package/lib/src/components/TextField/styles.js.map +1 -1
- package/lib/src/components/Totaliser/index.js +1 -1
- package/lib/src/components/Totaliser/index.js.map +1 -1
- package/lib/src/components/Totaliser/styles.js +1 -59
- package/lib/src/components/Totaliser/styles.js.map +1 -1
- package/lib/src/components/UserBlock/index.js +1 -1
- package/lib/src/components/UserBlock/index.js.map +1 -1
- package/lib/src/components/UserBlock/styles.js +1 -21
- package/lib/src/components/UserBlock/styles.js.map +1 -1
- package/lib/src/hooks/useEffectBrowser.js +1 -1
- package/lib/src/hooks/useEffectBrowser.js.map +1 -1
- package/lib/src/hooks/useKey.js +1 -1
- package/lib/src/hooks/useKey.js.map +1 -1
- package/lib/src/hooks/useLayoutEffectBrowser.js +1 -1
- package/lib/src/hooks/useLayoutEffectBrowser.js.map +1 -1
- package/lib/src/hooks/useScrollPosition.js +1 -1
- package/lib/src/hooks/useScrollPosition.js.map +1 -1
- package/lib/src/themes/bowelbabe.js +1 -1
- package/lib/src/themes/bowelbabe.js.map +1 -1
- package/lib/src/themes/cruk.js +1 -1
- package/lib/src/themes/cruk.js.map +1 -1
- package/lib/src/themes/rfl.js +1 -1
- package/lib/src/themes/rfl.js.map +1 -1
- package/lib/src/themes/su2c.js +1 -1
- package/lib/src/themes/su2c.js.map +1 -1
- package/lib/src/utils/Helper.js +1 -1
- package/lib/src/utils/Helper.js.map +1 -1
- package/lib/src/utils/debounce.js +1 -1
- package/lib/src/utils/debounce.js.map +1 -1
- package/lib/src/utils/themeUtils.js +1 -1
- package/lib/src/utils/themeUtils.js.map +1 -1
- package/package.json +15 -15
- package/lib/.storybook/main.d.ts +0 -3
- package/lib/.storybook/preview.d.ts +0 -3
- package/lib/src/components/ErrorText/styles.d.ts +0 -8
- package/lib/src/components/GlobalStyle.d.ts +0 -2
- package/lib/src/components/GlobalStyleNoFontFace.d.ts +0 -2
- package/lib/src/components/InfoBox/styles.d.ts +0 -10
- package/lib/src/components/Link/styles.d.ts +0 -12
- package/lib/src/components/Modal/styles.d.ts +0 -21
- package/lib/src/components/ThemeCheatSheet.d.ts +0 -7
- /package/lib/{src/components → components}/AddressLookup/AddressLookUp.test.cypress.d.ts +0 -0
- /package/lib/{src/components → components}/AddressLookup/styles.d.ts +0 -0
- /package/lib/{src/components → components}/AllThemesWrapper.d.ts +0 -0
- /package/lib/{src/components → components}/Avatar/Avatar.stories.d.ts +0 -0
- /package/lib/{src/components → components}/Avatar/Avatar.test.cypress.d.ts +0 -0
- /package/lib/{src/components → components}/Avatar/index.d.ts +0 -0
- /package/lib/{src/components → components}/Avatar/styles.d.ts +0 -0
- /package/lib/{src/components → components}/Badge/Badge.stories.d.ts +0 -0
- /package/lib/{src/components → components}/Badge/Badge.test.cypress.d.ts +0 -0
- /package/lib/{src/components → components}/Badge/index.d.ts +0 -0
- /package/lib/{src/components → components}/Badge/styles.d.ts +0 -0
- /package/lib/{src/components → components}/Box/Box.test.cypress.d.ts +0 -0
- /package/lib/{src/components → components}/Box/styles.d.ts +0 -0
- /package/lib/{src/components → components}/Button/Button.test.cypress.d.ts +0 -0
- /package/lib/{src/components → components}/Button/styles.d.ts +0 -0
- /package/lib/{src/components → components}/Carousel/Carousel.stories.d.ts +0 -0
- /package/lib/{src/components → components}/Carousel/Carousel.test.cypress.d.ts +0 -0
- /package/lib/{src/components → components}/Carousel/Dots.d.ts +0 -0
- /package/lib/{src/components → components}/Carousel/index.d.ts +0 -0
- /package/lib/{src/components → components}/Carousel/styles.d.ts +0 -0
- /package/lib/{src/components → components}/Checkbox/CheckBox.test.cypress.d.ts +0 -0
- /package/lib/{src/components → components}/Checkbox/styles.d.ts +0 -0
- /package/lib/{src/components → components}/Collapse/Collapse.stories.d.ts +0 -0
- /package/lib/{src/components → components}/Collapse/Collapse.test.cypress.d.ts +0 -0
- /package/lib/{src/components → components}/Collapse/index.d.ts +0 -0
- /package/lib/{src/components → components}/DateField/DateField.stories.d.ts +0 -0
- /package/lib/{src/components → components}/DateField/DateField.test.cypress.d.ts +0 -0
- /package/lib/{src/components → components}/DateField/index.d.ts +0 -0
- /package/lib/{src/components → components}/Divider.d.ts +0 -0
- /package/lib/{src/components → components}/ErrorText/ErrorText.stories.d.ts +0 -0
- /package/lib/{src/components → components}/ErrorText/ErrorText.test.cypress.d.ts +0 -0
- /package/lib/{src/components → components}/ErrorText/index.d.ts +0 -0
- /package/lib/{src/components → components}/Flex.d.ts +0 -0
- /package/lib/{src/components → components}/Fontface.d.ts +0 -0
- /package/lib/{src/components → components}/Footer/Footer.stories.d.ts +0 -0
- /package/lib/{src/components → components}/Footer/Footer.test.cypress.d.ts +0 -0
- /package/lib/{src/components → components}/Footer/index.d.ts +0 -0
- /package/lib/{src/components → components}/Header/Header.stories.d.ts +0 -0
- /package/lib/{src/components → components}/Header/Header.test.cypress.d.ts +0 -0
- /package/lib/{src/components → components}/Header/index.d.ts +0 -0
- /package/lib/{src/components → components}/Header/styles.d.ts +0 -0
- /package/lib/{src/components → components}/Heading/Heading.stories.d.ts +0 -0
- /package/lib/{src/components → components}/Heading/Heading.test.cypress.d.ts +0 -0
- /package/lib/{src/components → components}/Heading/index.d.ts +0 -0
- /package/lib/{src/components → components}/Heading/styles.d.ts +0 -0
- /package/lib/{src/components → components}/IconFa/IconFa.stories.d.ts +0 -0
- /package/lib/{src/components → components}/IconFa/IconFa.test.cypress.d.ts +0 -0
- /package/lib/{src/components → components}/IconFa/index.d.ts +0 -0
- /package/lib/{src/components → components}/IconFa/styles.d.ts +0 -0
- /package/lib/{src/components → components}/InfoBox/InfoBox.test.cypress.d.ts +0 -0
- /package/lib/{src/components → components}/LabelWrapper/index.d.ts +0 -0
- /package/lib/{src/components → components}/LabelWrapper/styles.d.ts +0 -0
- /package/lib/{src/components → components}/LegendWrapper/LegendWrapper.stories.d.ts +0 -0
- /package/lib/{src/components → components}/LegendWrapper/LegendWrapper.test.cypress.d.ts +0 -0
- /package/lib/{src/components → components}/LegendWrapper/index.d.ts +0 -0
- /package/lib/{src/components → components}/LegendWrapper/styles.d.ts +0 -0
- /package/lib/{src/components → components}/Link/Link.test.cypress.d.ts +0 -0
- /package/lib/{src/components → components}/Loader/Loader.stories.d.ts +0 -0
- /package/lib/{src/components → components}/Loader/Loader.test.cypress.d.ts +0 -0
- /package/lib/{src/components → components}/Loader/index.d.ts +0 -0
- /package/lib/{src/components → components}/Loader/styles.d.ts +0 -0
- /package/lib/{src/components → components}/Modal/Modal.stories.d.ts +0 -0
- /package/lib/{src/components → components}/Modal/Modal.test.cypress.d.ts +0 -0
- /package/lib/{src/components → components}/Modal/index.d.ts +0 -0
- /package/lib/{src/components → components}/Pagination/Pagination.stories.d.ts +0 -0
- /package/lib/{src/components → components}/Pagination/Pagination.test.cypress.d.ts +0 -0
- /package/lib/{src/components → components}/Pagination/index.d.ts +0 -0
- /package/lib/{src/components → components}/Pagination/styles.d.ts +0 -0
- /package/lib/{src/components → components}/PopOver/PopOver.test.cypress.d.ts +0 -0
- /package/lib/{src/components → components}/PopOver/Popover.stories.d.ts +0 -0
- /package/lib/{src/components → components}/PopOver/index.d.ts +0 -0
- /package/lib/{src/components → components}/PopOver/styles.d.ts +0 -0
- /package/lib/{src/components → components}/ProgressBar/ProgressBar.stories.d.ts +0 -0
- /package/lib/{src/components → components}/ProgressBar/ProgressBar.test.cypress.d.ts +0 -0
- /package/lib/{src/components → components}/ProgressBar/index.d.ts +0 -0
- /package/lib/{src/components → components}/ProgressBar/styles.d.ts +0 -0
- /package/lib/{src/components → components}/Radio/Radio.test.cypress.d.ts +0 -0
- /package/lib/{src/components → components}/Radio/styles.d.ts +0 -0
- /package/lib/{src/components → components}/RadioConsent/Radio.stories.d.ts +0 -0
- /package/lib/{src/components → components}/RadioConsent/RadioConsent.test.cypress.d.ts +0 -0
- /package/lib/{src/components → components}/RadioConsent/index.d.ts +0 -0
- /package/lib/{src/components → components}/Select/Select.test.cypress.d.ts +0 -0
- /package/lib/{src/components → components}/Select/styles.d.ts +0 -0
- /package/lib/{src/components → components}/Spacing/index.d.ts +0 -0
- /package/lib/{src/components → components}/Step/Step.stories.d.ts +0 -0
- /package/lib/{src/components → components}/Step/Step.test.cypress.d.ts +0 -0
- /package/lib/{src/components → components}/Step/index.d.ts +0 -0
- /package/lib/{src/components → components}/Step/styles.d.ts +0 -0
- /package/lib/{src/components → components}/Text/Text.test.cypress.d.ts +0 -0
- /package/lib/{src/components → components}/Text/styles.d.ts +0 -0
- /package/lib/{src/components → components}/TextAreaField/TextAreaField.test.cypress.d.ts +0 -0
- /package/lib/{src/components → components}/TextAreaField/styles.d.ts +0 -0
- /package/lib/{src/components → components}/TextField/TextField.test.cypress.d.ts +0 -0
- /package/lib/{src/components → components}/Totaliser/Totaliser.stories.d.ts +0 -0
- /package/lib/{src/components → components}/Totaliser/Totaliser.test.cypress.d.ts +0 -0
- /package/lib/{src/components → components}/Totaliser/index.d.ts +0 -0
- /package/lib/{src/components → components}/Totaliser/styles.d.ts +0 -0
- /package/lib/{src/components → components}/UserBlock/UserBlock.stories.d.ts +0 -0
- /package/lib/{src/components → components}/UserBlock/UserBlock.test.cypress.d.ts +0 -0
- /package/lib/{src/components → components}/UserBlock/index.d.ts +0 -0
- /package/lib/{src/components → components}/UserBlock/styles.d.ts +0 -0
- /package/lib/{src/components → components}/index.d.ts +0 -0
- /package/lib/{src/hooks → hooks}/useEffectBrowser.d.ts +0 -0
- /package/lib/{src/hooks → hooks}/useKey.d.ts +0 -0
- /package/lib/{src/hooks → hooks}/useLayoutEffectBrowser.d.ts +0 -0
- /package/lib/{src/themes → themes}/bowelbabe.d.ts +0 -0
- /package/lib/{src/themes → themes}/cruk.d.ts +0 -0
- /package/lib/{src/themes → themes}/rfl.d.ts +0 -0
- /package/lib/{src/themes → themes}/su2c.d.ts +0 -0
- /package/lib/{src/types.d.ts → types.d.ts} +0 -0
- /package/lib/{src/utils → utils}/Helper.d.ts +0 -0
- /package/lib/{src/utils → utils}/__tests__/testHelpers.test.d.ts +0 -0
- /package/lib/{src/utils → utils}/debounce.d.ts +0 -0
- /package/lib/{src/utils → utils}/themeUtils.d.ts +0 -0
package/README.md
CHANGED
|
@@ -14,9 +14,9 @@ Add cruk-react-components and its peer dependencies react, react-dom and styled-
|
|
|
14
14
|
|
|
15
15
|
```sh
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"react": "^
|
|
18
|
-
"react-dom": "^
|
|
19
|
-
"styled-components": "^
|
|
17
|
+
"react": "^19",
|
|
18
|
+
"react-dom": "^19",
|
|
19
|
+
"styled-components": "^6"
|
|
20
20
|
}
|
|
21
21
|
```
|
|
22
22
|
|
|
@@ -152,10 +152,23 @@ and see if it can successfully build the library before running the release scri
|
|
|
152
152
|
|
|
153
153
|
### Releases
|
|
154
154
|
|
|
155
|
-
|
|
155
|
+
#### Pre-release
|
|
156
156
|
|
|
157
|
-
|
|
157
|
+
Please update the version number in the package.json and follow the semver standards for version numbers.
|
|
158
|
+
Run `nvm use` to make sure that you are on the correct version of node.
|
|
158
159
|
Run `npm i` to make sure that the correct version in the lockfile.
|
|
159
160
|
Update the CHANGELOG.md which should list the changes for the release, instructions are at the bottom of the file.
|
|
160
|
-
|
|
161
|
-
|
|
161
|
+
These changes need to be merged into master.
|
|
162
|
+
|
|
163
|
+
#### Releasing
|
|
164
|
+
|
|
165
|
+
Make sure that you have the correct permissions for the @cruk org on NPM.
|
|
166
|
+
Run the release script with `npm run release` this should use `release-it` to allow you to select the same version number as stated in the package JSON and it should take care of the rest:
|
|
167
|
+
|
|
168
|
+
- it runs npm ci
|
|
169
|
+
- it does the build
|
|
170
|
+
- it makes and pushes the tag
|
|
171
|
+
- it releases the build lib to NPM
|
|
172
|
+
- it requestions if you want to document the release on github and autogenerates the release notes.
|
|
173
|
+
|
|
174
|
+
Agree to all these steps release-it walks through and when Github opens up with the release click on the `Publish` button. If anything goes wrong release-it should roll back.
|
|
@@ -3,7 +3,7 @@ import { type StoryObj } from "@storybook/react";
|
|
|
3
3
|
import { type AddressLookupProps } from ".";
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component:
|
|
6
|
+
component: ({ apiKey, countries, errorMessage, hasError, isValid, isValidVisible, isInvalidVisible, label, hintText, ref, onAddressError, onAddressSelected, onChange, onBlur, ...props }: AddressLookupProps) => React.JSX.Element;
|
|
7
7
|
args: {
|
|
8
8
|
disabled: boolean;
|
|
9
9
|
errorMessage: string;
|
|
@@ -34,5 +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
|
-
export declare const AddressLookup:
|
|
37
|
+
export declare const AddressLookup: ({ apiKey, countries, errorMessage, hasError, isValid, isValidVisible, isInvalidVisible, label, hintText, ref, onAddressError, onAddressSelected, onChange, onBlur, ...props }: AddressLookupProps) => React.JSX.Element;
|
|
38
38
|
export default AddressLookup;
|
|
@@ -3,7 +3,7 @@ import { type StoryObj } from "@storybook/react";
|
|
|
3
3
|
import Box from ".";
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component:
|
|
6
|
+
component: ({ ...props }: import(".").BoxProps) => React.JSX.Element;
|
|
7
7
|
args: {};
|
|
8
8
|
tags: string[];
|
|
9
9
|
};
|
|
@@ -14,5 +14,5 @@ export type BoxProps = SpacingProps & HTMLAttributes<HTMLElement> & {
|
|
|
14
14
|
* The more specific the the target the higher priority the css will have.
|
|
15
15
|
* 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
16
|
*/
|
|
17
|
-
export declare const Box:
|
|
17
|
+
export declare const Box: ({ ...props }: BoxProps) => React.JSX.Element;
|
|
18
18
|
export default Box;
|
|
@@ -3,7 +3,7 @@ import { type StoryObj } from "@storybook/react";
|
|
|
3
3
|
import { Button } from "./";
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component:
|
|
6
|
+
component: (props: import("./").ButtonProps) => React.JSX.Element;
|
|
7
7
|
args: {
|
|
8
8
|
appearance: string;
|
|
9
9
|
disabled: boolean;
|
|
@@ -24,5 +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:
|
|
27
|
+
export declare const Button: (props: ButtonProps) => React.JSX.Element;
|
|
28
28
|
export default Button;
|
|
@@ -3,7 +3,7 @@ import { type StoryObj } from "@storybook/react";
|
|
|
3
3
|
import CheckBox, { type CheckBoxProps } from ".";
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component:
|
|
6
|
+
component: (props: CheckBoxProps) => React.JSX.Element;
|
|
7
7
|
args: {
|
|
8
8
|
id: string;
|
|
9
9
|
disabled: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { type InputHTMLAttributes, type Ref, type ReactNode
|
|
1
|
+
import React, { type InputHTMLAttributes, type Ref, type ReactNode } from "react";
|
|
2
2
|
export type CheckBoxProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
3
|
-
ref?: Ref<HTMLInputElement
|
|
3
|
+
ref?: Ref<HTMLInputElement>;
|
|
4
4
|
/** flag for error styling */
|
|
5
5
|
hasError?: boolean;
|
|
6
6
|
/** error message text */
|
|
@@ -12,5 +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
|
-
export declare const Checkbox:
|
|
15
|
+
export declare const Checkbox: (props: CheckBoxProps) => React.JSX.Element;
|
|
16
16
|
export default Checkbox;
|
|
@@ -3,14 +3,22 @@ export declare const transitionDurationSeconds = 0.5;
|
|
|
3
3
|
export declare const FlippingIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
4
4
|
$open: boolean;
|
|
5
5
|
}>> & string;
|
|
6
|
-
export declare const DefaultHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<
|
|
7
|
-
|
|
6
|
+
export declare const DefaultHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").ButtonHTMLAttributes<HTMLElement> & {
|
|
7
|
+
appearance?: import("../../types").ButtonAppearanceType;
|
|
8
|
+
full?: boolean;
|
|
9
|
+
href?: string;
|
|
10
|
+
size?: "m" | "l";
|
|
11
|
+
css?: unknown;
|
|
12
|
+
as?: import("react").ElementType;
|
|
13
|
+
isIconButton?: boolean;
|
|
14
|
+
ref?: import("react").Ref<HTMLElement>;
|
|
15
|
+
children?: import("react").ReactNode;
|
|
8
16
|
}, {
|
|
9
17
|
theme: ThemeType;
|
|
10
18
|
$textColor?: string;
|
|
11
19
|
$textSize?: FontSizeType;
|
|
12
20
|
$textFontFamily?: string;
|
|
13
|
-
}>> & string & Omit<
|
|
21
|
+
}>> & string & Omit<(props: import("../Button").ButtonProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
14
22
|
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>, {
|
|
15
23
|
$contentHeight: string;
|
|
16
24
|
$openStatus: boolean;
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
import { type ThemeType } from "../../types";
|
|
2
2
|
export declare const Fieldset: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, never>> & string;
|
|
3
|
-
export declare const TextAsLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<
|
|
4
|
-
|
|
3
|
+
export declare const TextAsLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../Spacing").SpacingProps & import("react").HTMLAttributes<HTMLElement> & {
|
|
4
|
+
textColor?: string;
|
|
5
|
+
textAlign?: "left" | "right" | "center" | "justify";
|
|
6
|
+
textSize?: import("../../types").FontSizeType;
|
|
7
|
+
textWeight?: number | string;
|
|
8
|
+
textFontFamily?: string;
|
|
9
|
+
as?: import("react").ElementType;
|
|
10
|
+
wordBreak?: import("../../types").WordBreakType;
|
|
11
|
+
overflowWrap?: import("../../types").OverflowWrapType;
|
|
12
|
+
ref?: import("react").Ref<HTMLElement>;
|
|
5
13
|
}, {
|
|
6
14
|
theme: ThemeType;
|
|
7
|
-
}>> & string & Omit<
|
|
15
|
+
}>> & string & Omit<(props: import("../Text").TextProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
8
16
|
export declare const DateTextFieldWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
9
17
|
theme: ThemeType;
|
|
10
18
|
}>> & string;
|
|
11
|
-
export declare const LargeDateTextFieldWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<
|
|
19
|
+
export declare const LargeDateTextFieldWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme"> & {
|
|
12
20
|
theme: ThemeType;
|
|
13
|
-
}, "ref"> & {
|
|
14
|
-
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;
|
|
15
21
|
}, never>> & string;
|
|
16
22
|
export declare const ErrorTextWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ThemeType } from "../../types";
|
|
2
|
+
type ThemeProps = {
|
|
3
|
+
theme: ThemeType;
|
|
4
|
+
};
|
|
5
|
+
export declare const StyledErrorText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../Spacing").SpacingProps & import("react").HTMLAttributes<HTMLElement> & {
|
|
6
|
+
textColor?: string;
|
|
7
|
+
textAlign?: "left" | "right" | "center" | "justify";
|
|
8
|
+
textSize?: import("../../types").FontSizeType;
|
|
9
|
+
textWeight?: number | string;
|
|
10
|
+
textFontFamily?: string;
|
|
11
|
+
as?: import("react").ElementType;
|
|
12
|
+
wordBreak?: import("../../types").WordBreakType;
|
|
13
|
+
overflowWrap?: import("../../types").OverflowWrapType;
|
|
14
|
+
ref?: import("react").Ref<HTMLElement>;
|
|
15
|
+
}, ThemeProps>> & string & Omit<(props: import("../Text").TextProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
16
|
+
export default StyledErrorText;
|
|
@@ -5,18 +5,12 @@ type ThemeProps = {
|
|
|
5
5
|
export declare const StyledFooter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, ThemeProps>> & string;
|
|
6
6
|
export declare const FooterContentWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ThemeProps>> & string;
|
|
7
7
|
export declare const FooterSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ThemeProps>> & string;
|
|
8
|
-
export declare const FooterSectionLogo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<
|
|
9
|
-
|
|
10
|
-
}, never>> & string;
|
|
11
|
-
export declare const FooterSectionLinks: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme"> & ThemeProps, "ref"> & {
|
|
12
|
-
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
13
|
-
}, never>> & string;
|
|
8
|
+
export declare const FooterSectionLogo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme"> & ThemeProps, never>> & string;
|
|
9
|
+
export declare const FooterSectionLinks: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme"> & ThemeProps, never>> & string;
|
|
14
10
|
export declare const StyledNav: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, ThemeProps>> & string;
|
|
15
11
|
export declare const StyledUL: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, never>> & string;
|
|
16
12
|
export declare const StyledLI: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, ThemeProps>> & string;
|
|
17
|
-
export declare const FooterSectionAddress: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<
|
|
18
|
-
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
19
|
-
}, never>> & string;
|
|
13
|
+
export declare const FooterSectionAddress: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme"> & ThemeProps, never>> & string;
|
|
20
14
|
export declare const StyledRegulatorLogo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>> & string;
|
|
21
15
|
export declare const StyledAddress: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
|
|
22
16
|
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const GlobalStyle: import("react").ForwardRefExoticComponent<Omit<JSX.LibraryManagedAttributes<T, import("styled-components").ExecutionProps>, "ref"> & import("react").RefAttributes<import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>>> & {};
|
|
2
|
+
export default GlobalStyle;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const GlobalStyleNoFontFace: import("react").ForwardRefExoticComponent<Omit<JSX.LibraryManagedAttributes<T, import("styled-components").ExecutionProps>, "ref"> & import("react").RefAttributes<import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>>> & {};
|
|
2
|
+
export default GlobalStyleNoFontFace;
|
|
@@ -3,7 +3,7 @@ import { type StoryObj } from "@storybook/react";
|
|
|
3
3
|
import InfoBox from ".";
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component:
|
|
6
|
+
component: ({ children, titleText, titleTextColor, descriptionText, descriptionTextColor, icon, ref, ...spacingAndHTMLElementProps }: import(".").InfoBoxProps) => React.JSX.Element;
|
|
7
7
|
args: {
|
|
8
8
|
titleText: string;
|
|
9
9
|
titleTextColor: string;
|
|
@@ -24,5 +24,5 @@ export type InfoBoxProps = SpacingProps & HTMLAttributes<HTMLElement> & {
|
|
|
24
24
|
|
|
25
25
|
The more specific the the target the higher priority the css will have. For example `margin` will be overridden by the `marginVertical` or `marginHorizontal` props. `marginTop`, `marginBottom`, `marginLeft`, `marginRight` will override the the `marginVertical` and `marginHorizontal` props.
|
|
26
26
|
*/
|
|
27
|
-
export declare const InfoBox:
|
|
27
|
+
export declare const InfoBox: ({ children, titleText, titleTextColor, descriptionText, descriptionTextColor, icon, ref, ...spacingAndHTMLElementProps }: InfoBoxProps) => React.JSX.Element;
|
|
28
28
|
export default InfoBox;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type ThemeType } from "../../types";
|
|
2
|
+
import { type BoxProps } from "../Box";
|
|
3
|
+
type InfoBoxProps = BoxProps & {
|
|
4
|
+
css?: string;
|
|
5
|
+
theme: ThemeType;
|
|
6
|
+
};
|
|
7
|
+
export declare const StyledInfoBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../Spacing").SpacingProps & import("react").HTMLAttributes<HTMLElement> & {
|
|
8
|
+
backgroundColor?: string;
|
|
9
|
+
ref?: import("react").Ref<HTMLDivElement>;
|
|
10
|
+
children?: import("react").ReactNode;
|
|
11
|
+
as?: import("react").ElementType;
|
|
12
|
+
}, InfoBoxProps>> & string & Omit<({ ...props }: BoxProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
13
|
+
export default StyledInfoBox;
|
|
@@ -3,7 +3,10 @@ import { type StoryObj } from "@storybook/react";
|
|
|
3
3
|
import Link from ".";
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component:
|
|
6
|
+
component: {
|
|
7
|
+
(props: import(".").LinkProps): React.JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
7
10
|
args: {
|
|
8
11
|
appearance: undefined;
|
|
9
12
|
href: string;
|
|
@@ -22,5 +22,8 @@ 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:
|
|
25
|
+
export declare const Link: {
|
|
26
|
+
(props: LinkProps): React.JSX.Element;
|
|
27
|
+
displayName: string;
|
|
28
|
+
};
|
|
26
29
|
export default Link;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type AnchorHTMLAttributes } from "react";
|
|
2
|
+
import { type TextProps } from "../Text";
|
|
3
|
+
import { type ThemeType } from "../../types";
|
|
4
|
+
type StyledLinkProps = AnchorHTMLAttributes<HTMLElement> & TextProps & {
|
|
5
|
+
theme: ThemeType;
|
|
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<import("../Spacing").SpacingProps & import("react").HTMLAttributes<HTMLElement> & {
|
|
10
|
+
textColor?: string;
|
|
11
|
+
textAlign?: "left" | "right" | "center" | "justify";
|
|
12
|
+
textSize?: import("../../types").FontSizeType;
|
|
13
|
+
textWeight?: number | string;
|
|
14
|
+
textFontFamily?: string;
|
|
15
|
+
as?: import("react").ElementType;
|
|
16
|
+
wordBreak?: import("../../types").WordBreakType;
|
|
17
|
+
overflowWrap?: import("../../types").OverflowWrapType;
|
|
18
|
+
ref?: import("react").Ref<HTMLElement>;
|
|
19
|
+
}, StyledLinkProps>> & string & Omit<(props: TextProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
20
|
+
export default StyledLink;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type ThemeType } from "../../types";
|
|
2
|
+
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;
|
|
3
|
+
export declare const Content: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../Spacing").SpacingProps & import("react").HTMLAttributes<HTMLElement> & {
|
|
4
|
+
backgroundColor?: string;
|
|
5
|
+
ref?: import("react").Ref<HTMLDivElement>;
|
|
6
|
+
children?: import("react").ReactNode;
|
|
7
|
+
as?: import("react").ElementType;
|
|
8
|
+
}, {
|
|
9
|
+
$backgroundColor?: string;
|
|
10
|
+
$top: string;
|
|
11
|
+
$width: string;
|
|
12
|
+
$maxWidth: string;
|
|
13
|
+
$isAnimated?: boolean;
|
|
14
|
+
theme: ThemeType;
|
|
15
|
+
}>> & string & Omit<({ ...props }: import("../Box").BoxProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
16
|
+
export declare const CloseButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").ButtonHTMLAttributes<HTMLElement> & {
|
|
17
|
+
appearance?: import("../../types").ButtonAppearanceType;
|
|
18
|
+
full?: boolean;
|
|
19
|
+
href?: string;
|
|
20
|
+
size?: "m" | "l";
|
|
21
|
+
css?: unknown;
|
|
22
|
+
as?: import("react").ElementType;
|
|
23
|
+
isIconButton?: boolean;
|
|
24
|
+
ref?: import("react").Ref<HTMLElement>;
|
|
25
|
+
children?: import("react").ReactNode;
|
|
26
|
+
}, {
|
|
27
|
+
theme: ThemeType;
|
|
28
|
+
}>> & string & Omit<(props: import("../Button").ButtonProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
29
|
+
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>, {
|
|
30
|
+
theme: ThemeType;
|
|
31
|
+
$isAnimated?: boolean;
|
|
32
|
+
}>> & string;
|
|
@@ -3,7 +3,7 @@ import { type StoryObj } from "@storybook/react";
|
|
|
3
3
|
import Radio, { type RadioProps } from ".";
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component:
|
|
6
|
+
component: (props: RadioProps) => React.JSX.Element;
|
|
7
7
|
args: {
|
|
8
8
|
id: string;
|
|
9
9
|
value: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { type InputHTMLAttributes, type Ref, type ReactNode
|
|
1
|
+
import React, { type InputHTMLAttributes, type Ref, type ReactNode } from "react";
|
|
2
2
|
export type RadioProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
3
|
-
ref?: Ref<HTMLInputElement
|
|
3
|
+
ref?: Ref<HTMLInputElement>;
|
|
4
4
|
/** flag for error styling */
|
|
5
5
|
hasError?: boolean;
|
|
6
6
|
/** error message text */
|
|
@@ -12,5 +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
|
-
export declare const Radio:
|
|
15
|
+
export declare const Radio: (props: RadioProps) => React.JSX.Element;
|
|
16
16
|
export default Radio;
|
|
@@ -3,9 +3,12 @@ type StyleRadioWidthProp = {
|
|
|
3
3
|
$numberOfAttributes: number;
|
|
4
4
|
theme: ThemeType;
|
|
5
5
|
};
|
|
6
|
-
export declare const StyledRadio: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<
|
|
7
|
-
ref?:
|
|
8
|
-
|
|
6
|
+
export declare const StyledRadio: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").InputHTMLAttributes<HTMLInputElement> & {
|
|
7
|
+
ref?: import("react").Ref<HTMLInputElement>;
|
|
8
|
+
hasError?: boolean;
|
|
9
|
+
errorMessage?: string;
|
|
10
|
+
children?: import("react").ReactNode;
|
|
11
|
+
}, StyleRadioWidthProp>> & string & Omit<(props: import("../Radio").RadioProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
9
12
|
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>, {
|
|
10
13
|
theme: ThemeType;
|
|
11
14
|
}>> & string;
|
|
@@ -3,7 +3,7 @@ import { type StoryObj } from "@storybook/react";
|
|
|
3
3
|
import Select, { type SelectProps } from ".";
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component:
|
|
6
|
+
component: ({ errorMessage, hasError, required, label, hintText, hideRequiredInLabel, ref, ...props }: SelectProps) => React.JSX.Element;
|
|
7
7
|
args: {
|
|
8
8
|
disabled: boolean;
|
|
9
9
|
required: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { type ReactNode, type SelectHTMLAttributes, type Ref
|
|
1
|
+
import React, { type ReactNode, type SelectHTMLAttributes, type Ref } 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>;
|
|
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
|
-
export declare const Select:
|
|
20
|
+
export declare const Select: ({ errorMessage, hasError, required, label, hintText, hideRequiredInLabel, ref, ...props }: SelectProps) => React.JSX.Element;
|
|
21
21
|
export default Select;
|
|
@@ -3,7 +3,7 @@ import { type StoryObj } from "@storybook/react";
|
|
|
3
3
|
import Text from ".";
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component:
|
|
6
|
+
component: (props: import(".").TextProps) => React.JSX.Element;
|
|
7
7
|
args: {
|
|
8
8
|
children: string;
|
|
9
9
|
textColor: string;
|
|
@@ -24,5 +24,5 @@ export type TextProps = SpacingProps & HTMLAttributes<HTMLElement> & {
|
|
|
24
24
|
/** react reference to the DOM element sometime used to scroll to or set focus after an error */
|
|
25
25
|
ref?: Ref<HTMLElement>;
|
|
26
26
|
};
|
|
27
|
-
export declare const Text:
|
|
27
|
+
export declare const Text: (props: TextProps) => React.JSX.Element;
|
|
28
28
|
export default Text;
|
|
@@ -3,7 +3,7 @@ import { type StoryObj } from "@storybook/react";
|
|
|
3
3
|
import TextAreaField from ".";
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component:
|
|
6
|
+
component: ({ errorMessage, hasError, hintText, label, resize, lineCount, ref, ...props }: import(".").TextAreaFieldProps) => React.JSX.Element;
|
|
7
7
|
args: {
|
|
8
8
|
defaultValue: string;
|
|
9
9
|
disabled: boolean;
|
|
@@ -18,5 +18,5 @@ export type TextAreaFieldProps = TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
|
18
18
|
/**
|
|
19
19
|
* TextAreaField lets users enter and edit multiline text.
|
|
20
20
|
*/
|
|
21
|
-
export declare const TextAreaField:
|
|
21
|
+
export declare const TextAreaField: ({ errorMessage, hasError, hintText, label, resize, lineCount, ref, ...props }: TextAreaFieldProps) => React.JSX.Element;
|
|
22
22
|
export default TextAreaField;
|
|
@@ -3,7 +3,7 @@ import { type StoryObj } from "@storybook/react";
|
|
|
3
3
|
import TextField from ".";
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component:
|
|
6
|
+
component: ({ errorMessage, extraBottom, extraLeft, extraRight, extraTop, hasError, hintText, isValid, isValidVisible, isInvalidVisible, label, hideRequiredInLabel, ref, ...props }: import(".").TextFieldProps) => React.JSX.Element;
|
|
7
7
|
args: {
|
|
8
8
|
value: undefined;
|
|
9
9
|
disabled: boolean;
|
|
@@ -30,5 +30,5 @@ export type TextFieldProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
|
30
30
|
/**
|
|
31
31
|
* TextFields let users enter and edit text. For multiline text entry please consider using the TextAreaFieldComponent.
|
|
32
32
|
* */
|
|
33
|
-
export declare const TextField:
|
|
33
|
+
export declare const TextField: ({ errorMessage, extraBottom, extraLeft, extraRight, extraTop, hasError, hintText, isValid, isValidVisible, isInvalidVisible, label, hideRequiredInLabel, ref, ...props }: TextFieldProps) => React.JSX.Element;
|
|
34
34
|
export default TextField;
|
|
@@ -10,12 +10,8 @@ type StyledInputProps = {
|
|
|
10
10
|
$isInvalidVisible?: boolean;
|
|
11
11
|
};
|
|
12
12
|
export declare const Extra: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, ExtraProps>> & string;
|
|
13
|
-
export declare const ExtraLeft: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<
|
|
14
|
-
|
|
15
|
-
}, never>> & string;
|
|
16
|
-
export declare const ExtraRight: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "theme"> & ExtraProps, "ref"> & {
|
|
17
|
-
ref?: ((instance: HTMLSpanElement | 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<HTMLSpanElement> | null | undefined;
|
|
18
|
-
}, ExtraProps>> & string;
|
|
13
|
+
export declare const ExtraLeft: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "theme"> & ExtraProps, never>> & string;
|
|
14
|
+
export declare const ExtraRight: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "theme"> & ExtraProps, ExtraProps>> & string;
|
|
19
15
|
export declare const ExtraWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
20
16
|
export declare const StyledInputWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, StyledInputProps>> & string;
|
|
21
17
|
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>, StyledInputProps>> & string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type ThemeType } from "../types";
|
|
3
|
+
export declare function ThemeCheatSheet({ theme }: {
|
|
4
|
+
theme?: ThemeType;
|
|
5
|
+
}): React.JSX.Element;
|
|
6
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<JSX.LibraryManagedAttributes<T, import("styled-components").ExecutionProps>, "ref"> & React.RefAttributes<typeof ThemeCheatSheet>> & {};
|
|
7
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type DependencyList, type RefObject
|
|
1
|
+
import { type DependencyList, type RefObject } from "react";
|
|
2
2
|
declare const useScrollPosition: (effect: ({ currPos, }: {
|
|
3
3
|
prevPos: {
|
|
4
4
|
x: number;
|
|
@@ -8,6 +8,6 @@ declare const useScrollPosition: (effect: ({ currPos, }: {
|
|
|
8
8
|
x: number;
|
|
9
9
|
y: number;
|
|
10
10
|
};
|
|
11
|
-
}) => void, deps: DependencyList, element: RefObject<HTMLElement
|
|
11
|
+
}) => void, deps: DependencyList, element: RefObject<HTMLElement | null> | null, useWindow: boolean, wait: number) => void;
|
|
12
12
|
export default useScrollPosition;
|
|
13
13
|
export { useScrollPosition };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var r=function(){return r=Object.assign||function(r){for(var t
|
|
1
|
+
var r=function(){return r=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r},r.apply(this,arguments)};function e(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]])}return t}function t(r,e){return Object.defineProperty?Object.defineProperty(r,"raw",{value:e}):r.raw=e,r}"function"==typeof SuppressedError&&SuppressedError;export{r as __assign,t as __makeTemplateObject,e as __rest};
|
|
2
2
|
//# sourceMappingURL=tslib.es6.js.map
|