@cruk/cruk-react-components 2.0.1 → 3.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/lib/components/AddressLookup/AddressLookUp.test.cypress.d.ts +1 -1
- package/lib/components/AddressLookup/AddressLookup.stories.d.ts +36 -7
- package/lib/components/AddressLookup/index.d.ts +61 -61
- package/lib/components/AddressLookup/styles.d.ts +14 -14
- package/lib/components/Avatar/Avatar.stories.d.ts +33 -20
- package/lib/components/Avatar/Avatar.test.cypress.d.ts +1 -1
- package/lib/components/Avatar/index.d.ts +15 -15
- package/lib/components/Avatar/styles.d.ts +7 -7
- package/lib/components/Badge/Badge.stories.d.ts +26 -16
- package/lib/components/Badge/Badge.test.cypress.d.ts +1 -1
- package/lib/components/Badge/index.d.ts +28 -28
- package/lib/components/Badge/styles.d.ts +11 -11
- package/lib/components/Box/Box.stories.d.ts +20 -13
- package/lib/components/Box/Box.test.cypress.d.ts +1 -1
- package/lib/components/Box/index.d.ts +17 -17
- package/lib/components/Box/styles.d.ts +8 -8
- package/lib/components/Button/Button.stories.d.ts +39 -15
- package/lib/components/Button/Button.test.cypress.d.ts +1 -1
- package/lib/components/Button/index.d.ts +46 -46
- package/lib/components/Button/styles.d.ts +15 -13
- package/lib/components/Carousel/Carousel.stories.d.ts +15 -7
- package/lib/components/Carousel/Carousel.test.cypress.d.ts +1 -1
- package/lib/components/Carousel/Dots.d.ts +12 -12
- package/lib/components/Carousel/index.d.ts +20 -20
- package/lib/components/Carousel/styles.d.ts +33 -33
- package/lib/components/Checkbox/CheckBox.test.cypress.d.ts +1 -1
- package/lib/components/Checkbox/Checkbox.stories.d.ts +26 -8
- package/lib/components/Checkbox/index.d.ts +23 -23
- package/lib/components/Checkbox/styles.d.ts +16 -13
- package/lib/components/Collapse/Collapse.stories.d.ts +23 -13
- package/lib/components/Collapse/Collapse.test.cypress.d.ts +1 -1
- package/lib/components/Collapse/index.d.ts +29 -29
- package/lib/components/Collapse/styles.d.ts +26 -26
- package/lib/components/DateField/DateField.stories.d.ts +29 -10
- package/lib/components/DateField/DateField.test.cypress.d.ts +1 -1
- package/lib/components/DateField/index.d.ts +32 -32
- package/lib/components/DateField/styles.d.ts +9 -4
- package/lib/components/Divider.d.ts +6 -6
- package/lib/components/ErrorText/ErrorText.stories.d.ts +16 -7
- package/lib/components/ErrorText/ErrorText.test.cypress.d.ts +1 -1
- package/lib/components/ErrorText/index.d.ts +13 -13
- package/lib/components/ErrorText/styles.d.ts +7 -3
- package/lib/components/Flex.d.ts +3 -3
- package/lib/components/Fontface.d.ts +2 -2
- package/lib/components/Footer/Footer.stories.d.ts +13 -7
- package/lib/components/Footer/Footer.test.cypress.d.ts +1 -1
- package/lib/components/Footer/index.d.ts +11 -11
- package/lib/components/Footer/styles.d.ts +16 -11
- package/lib/components/GlobalStyle.d.ts +9 -9
- package/lib/components/GlobalStyleNoFontFace.d.ts +9 -9
- package/lib/components/Header/Header.stories.d.ts +20 -7
- package/lib/components/Header/Header.test.cypress.d.ts +1 -1
- package/lib/components/Header/index.d.ts +37 -37
- package/lib/components/Header/styles.d.ts +37 -31
- package/lib/components/Heading/Heading.stories.d.ts +31 -25
- package/lib/components/Heading/Heading.test.cypress.d.ts +1 -1
- package/lib/components/Heading/index.d.ts +32 -32
- package/lib/components/Heading/styles.d.ts +50 -50
- package/lib/components/Icon/Icon.stories.d.ts +15 -6
- package/lib/components/Icon/Icon.test.cypress.d.ts +1 -1
- package/lib/components/Icon/iconList.d.ts +268 -268
- package/lib/components/Icon/index.d.ts +23 -23
- package/lib/components/Icon/styles.d.ts +5 -5
- package/lib/components/IconFa/IconFa.stories.d.ts +16 -7
- package/lib/components/IconFa/IconFa.test.cypress.d.ts +1 -1
- package/lib/components/IconFa/index.d.ts +17 -17
- package/lib/components/IconFa/styles.d.ts +5 -5
- package/lib/components/InfoBox/InfoBox.stories.d.ts +22 -9
- package/lib/components/InfoBox/InfoBox.test.cypress.d.ts +1 -1
- package/lib/components/InfoBox/index.d.ts +27 -27
- package/lib/components/InfoBox/styles.d.ts +14 -14
- package/lib/components/LabelWrapper/index.d.ts +19 -19
- package/lib/components/LabelWrapper/styles.d.ts +6 -6
- package/lib/components/LegendWrapper/LegendWrapper.stories.d.ts +21 -11
- package/lib/components/LegendWrapper/LegendWrapper.test.cypress.d.ts +1 -1
- package/lib/components/LegendWrapper/index.d.ts +22 -22
- package/lib/components/LegendWrapper/styles.d.ts +12 -12
- package/lib/components/Link/Link.stories.d.ts +33 -14
- package/lib/components/Link/Link.test.cypress.d.ts +1 -1
- package/lib/components/Link/index.d.ts +37 -37
- package/lib/components/Link/styles.d.ts +22 -18
- package/lib/components/Loader/Loader.stories.d.ts +13 -6
- package/lib/components/Loader/Loader.test.cypress.d.ts +1 -1
- package/lib/components/Loader/index.d.ts +7 -7
- package/lib/components/Loader/styles.d.ts +7 -2
- package/lib/components/Modal/Modal.stories.d.ts +13 -7
- package/lib/components/Modal/Modal.test.cypress.d.ts +1 -1
- package/lib/components/Modal/index.d.ts +32 -32
- package/lib/components/Modal/styles.d.ts +27 -24
- package/lib/components/Pagination/Pagination.stories.d.ts +20 -8
- package/lib/components/Pagination/Pagination.test.cypress.d.ts +1 -1
- package/lib/components/Pagination/index.d.ts +24 -24
- package/lib/components/Pagination/styles.d.ts +14 -10
- package/lib/components/PopOver/PopOver.test.cypress.d.ts +1 -1
- package/lib/components/PopOver/Popover.stories.d.ts +18 -7
- package/lib/components/PopOver/index.d.ts +26 -24
- package/lib/components/PopOver/styles.d.ts +11 -10
- package/lib/components/ProgressBar/ProgressBar.stories.d.ts +19 -10
- package/lib/components/ProgressBar/ProgressBar.test.cypress.d.ts +1 -1
- package/lib/components/ProgressBar/index.d.ts +24 -24
- package/lib/components/ProgressBar/styles.d.ts +30 -30
- package/lib/components/Radio/Radio.stories.d.ts +28 -8
- package/lib/components/Radio/Radio.test.cypress.d.ts +1 -1
- package/lib/components/Radio/index.d.ts +23 -23
- package/lib/components/Radio/styles.d.ts +21 -19
- package/lib/components/RadioConsent/Radio.stories.d.ts +21 -7
- package/lib/components/RadioConsent/RadioConsent.test.cypress.d.ts +1 -1
- package/lib/components/RadioConsent/index.d.ts +24 -24
- package/lib/components/RadioConsent/styles.d.ts +16 -16
- package/lib/components/Select/Select.test.cypress.d.ts +1 -1
- package/lib/components/Select/Selelct.stories.d.ts +24 -10
- package/lib/components/Select/index.d.ts +21 -21
- package/lib/components/Select/styles.d.ts +9 -9
- package/lib/components/Spacing/index.d.ts +19 -19
- package/lib/components/Step/Step.stories.d.ts +17 -7
- package/lib/components/Step/Step.test.cypress.d.ts +1 -1
- package/lib/components/Step/index.d.ts +15 -15
- package/lib/components/Step/styles.d.ts +17 -13
- package/lib/components/TestWrapper.d.ts +12 -12
- package/lib/components/Text/Text.stories.d.ts +17 -7
- package/lib/components/Text/Text.test.cypress.d.ts +1 -1
- package/lib/components/Text/index.d.ts +26 -26
- package/lib/components/Text/styles.d.ts +22 -22
- package/lib/components/TextAreaField/TextAreaField.stories.d.ts +29 -10
- package/lib/components/TextAreaField/TextAreaField.test.cypress.d.ts +1 -1
- package/lib/components/TextAreaField/index.d.ts +22 -22
- package/lib/components/TextAreaField/styles.d.ts +10 -10
- package/lib/components/TextField/TextField.stories.d.ts +27 -12
- package/lib/components/TextField/TextField.test.cypress.d.ts +1 -1
- package/lib/components/TextField/index.d.ts +34 -34
- package/lib/components/TextField/styles.d.ts +18 -18
- package/lib/components/ThemeCheatSheet.d.ts +7 -7
- package/lib/components/Totaliser/Totaliser.stories.d.ts +27 -19
- package/lib/components/Totaliser/Totaliser.test.cypress.d.ts +1 -1
- package/lib/components/Totaliser/index.d.ts +22 -22
- package/lib/components/Totaliser/styles.d.ts +20 -16
- package/lib/components/UserBlock/UserBlock.stories.d.ts +23 -16
- package/lib/components/UserBlock/UserBlock.test.cypress.d.ts +1 -1
- package/lib/components/UserBlock/index.d.ts +18 -18
- package/lib/components/UserBlock/styles.d.ts +9 -4
- package/lib/components/index.d.ts +73 -73
- package/lib/docs/Docs.d.ts +2 -2
- package/lib/docs/index.d.ts +1 -1
- package/lib/es/{node_modules/tslib/tslib.es6.js → _virtual/_tslib.js} +1 -1
- package/lib/es/_virtual/_tslib.js.map +1 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/index.js +1 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/index.js.map +1 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/safe.js.map +1 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/Combination.js +1 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/Combination.js.map +1 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/Lock.js +1 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/Lock.js.map +1 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/Trap.js +1 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/Trap.js.map +1 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/index.js +1 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/medium.js +1 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/medium.js.map +1 -1
- package/lib/es/node_modules/use-sidecar/dist/es2015/medium.js +1 -1
- package/lib/es/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -1
- package/lib/es/src/components/AddressLookup/index.js +1 -1
- package/lib/es/src/components/AddressLookup/styles.js +1 -1
- package/lib/es/src/components/Avatar/index.js +1 -1
- package/lib/es/src/components/Avatar/styles.js +1 -1
- package/lib/es/src/components/Badge/index.js +1 -1
- package/lib/es/src/components/Badge/styles.js +1 -1
- package/lib/es/src/components/Box/index.js +1 -1
- package/lib/es/src/components/Box/styles.js +1 -1
- package/lib/es/src/components/Button/index.js +1 -1
- package/lib/es/src/components/Button/styles.js +1 -1
- package/lib/es/src/components/Carousel/Dots.js +1 -1
- package/lib/es/src/components/Carousel/styles.js +1 -1
- package/lib/es/src/components/Checkbox/index.js +1 -1
- package/lib/es/src/components/Checkbox/styles.js +1 -1
- package/lib/es/src/components/Collapse/index.js +1 -1
- package/lib/es/src/components/Collapse/styles.js +1 -1
- package/lib/es/src/components/DateField/styles.js +1 -1
- package/lib/es/src/components/Divider.js +1 -1
- package/lib/es/src/components/ErrorText/index.js +1 -1
- package/lib/es/src/components/ErrorText/styles.js +1 -1
- package/lib/es/src/components/Flex.js +1 -1
- package/lib/es/src/components/Footer/index.js +1 -1
- package/lib/es/src/components/Footer/styles.js +1 -1
- package/lib/es/src/components/GlobalStyle.js +1 -1
- package/lib/es/src/components/GlobalStyleNoFontFace.js +1 -1
- package/lib/es/src/components/Header/index.js +1 -1
- package/lib/es/src/components/Header/styles.js +1 -1
- package/lib/es/src/components/Heading/index.js +1 -1
- package/lib/es/src/components/Heading/styles.js +1 -1
- package/lib/es/src/components/Icon/index.js +1 -1
- package/lib/es/src/components/Icon/styles.js +1 -1
- package/lib/es/src/components/IconFa/index.js +1 -1
- package/lib/es/src/components/IconFa/styles.js +1 -1
- package/lib/es/src/components/InfoBox/index.js +1 -1
- package/lib/es/src/components/InfoBox/styles.js +1 -1
- package/lib/es/src/components/LabelWrapper/index.js +1 -1
- package/lib/es/src/components/LabelWrapper/styles.js +1 -1
- package/lib/es/src/components/LegendWrapper/index.js +1 -1
- package/lib/es/src/components/LegendWrapper/styles.js +1 -1
- package/lib/es/src/components/Link/index.js +1 -1
- package/lib/es/src/components/Link/styles.js +1 -1
- package/lib/es/src/components/Loader/index.js +1 -1
- package/lib/es/src/components/Loader/styles.js +1 -1
- package/lib/es/src/components/Modal/index.js +1 -1
- package/lib/es/src/components/Modal/styles.js +1 -1
- package/lib/es/src/components/Pagination/index.js +1 -1
- package/lib/es/src/components/Pagination/styles.js +1 -1
- package/lib/es/src/components/PopOver/README.md.js +1 -1
- package/lib/es/src/components/PopOver/README.md.js.map +1 -1
- package/lib/es/src/components/PopOver/index.js +1 -1
- package/lib/es/src/components/PopOver/styles.js +1 -1
- package/lib/es/src/components/ProgressBar/index.js +1 -1
- package/lib/es/src/components/ProgressBar/styles.js +1 -1
- package/lib/es/src/components/Radio/index.js +1 -1
- package/lib/es/src/components/Radio/styles.js +1 -1
- package/lib/es/src/components/RadioConsent/index.js +1 -1
- package/lib/es/src/components/RadioConsent/styles.js +1 -1
- package/lib/es/src/components/Select/index.js +1 -1
- package/lib/es/src/components/Select/styles.js +1 -1
- package/lib/es/src/components/Step/index.js +1 -1
- package/lib/es/src/components/Step/styles.js +1 -1
- package/lib/es/src/components/Text/index.js +1 -1
- package/lib/es/src/components/Text/styles.js +1 -1
- package/lib/es/src/components/TextAreaField/index.js +1 -1
- package/lib/es/src/components/TextAreaField/styles.js +1 -1
- package/lib/es/src/components/TextField/index.js +1 -1
- package/lib/es/src/components/TextField/styles.js +1 -1
- package/lib/es/src/components/Totaliser/index.js +1 -1
- package/lib/es/src/components/Totaliser/styles.js +1 -1
- package/lib/es/src/components/UserBlock/index.js +1 -1
- package/lib/es/src/components/UserBlock/styles.js +1 -1
- package/lib/es/src/themes/bowelbabe.js +1 -1
- package/lib/es/src/themes/su2c.js +1 -1
- package/lib/hocs/MdxProvider.d.ts +6 -6
- package/lib/hooks/useEffectBrowser.d.ts +3 -3
- package/lib/hooks/useKey.d.ts +6 -6
- package/lib/hooks/useLayoutEffectBrowser.d.ts +4 -4
- package/lib/hooks/useScrollPosition.d.ts +13 -13
- package/lib/themes/bowelbabe.d.ts +13 -13
- package/lib/themes/cruk.d.ts +13 -13
- package/lib/themes/su2c.d.ts +13 -13
- package/lib/types.d.ts +232 -232
- package/lib/utils/Helper.d.ts +6 -6
- package/lib/utils/__tests__/testHelpers.jest.d.ts +1 -1
- package/lib/utils/debounce.d.ts +2 -2
- package/package.json +21 -15
- package/lib/es/node_modules/detect-node-es/esm/node.js +0 -2
- package/lib/es/node_modules/detect-node-es/esm/node.js.map +0 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/AutoFocusInside.js +0 -2
- package/lib/es/node_modules/react-focus-lock/dist/es2015/AutoFocusInside.js.map +0 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/FreeFocusInside.js +0 -2
- package/lib/es/node_modules/react-focus-lock/dist/es2015/FreeFocusInside.js.map +0 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/MoveFocusInside.js +0 -2
- package/lib/es/node_modules/react-focus-lock/dist/es2015/MoveFocusInside.js.map +0 -1
- package/lib/es/node_modules/tslib/tslib.es6.js.map +0 -1
|
@@ -1,8 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { StoryObj } from "@storybook/react";
|
|
3
|
+
import Radio from ".";
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: React.ForwardRefExoticComponent<Pick<React.InputHTMLAttributes<HTMLInputElement> & {
|
|
7
|
+
ref?: React.Ref<HTMLInputElement> | undefined;
|
|
8
|
+
hasError?: boolean | undefined;
|
|
9
|
+
errorMessage?: string | undefined;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
}, "errorMessage" | "hasError" | keyof React.InputHTMLAttributes<HTMLInputElement>> & React.RefAttributes<HTMLInputElement>>;
|
|
12
|
+
args: {
|
|
13
|
+
id: string;
|
|
14
|
+
value: string;
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
hasError: boolean;
|
|
17
|
+
errorMessage: string;
|
|
18
|
+
};
|
|
19
|
+
tags: string[];
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
|
22
|
+
type Story = StoryObj<typeof Radio>;
|
|
23
|
+
export declare const Default: Story;
|
|
24
|
+
export declare const RadioWithError: Story;
|
|
25
|
+
export declare const RadioSU2C: Story;
|
|
26
|
+
export declare const RadioErrorSU2C: Story;
|
|
27
|
+
export declare const RadioBowelbabe: Story;
|
|
28
|
+
export declare const RadioErrorBowelbabe: Story;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import React, { InputHTMLAttributes, Ref, ReactNode } from "react";
|
|
2
|
-
export type RadioProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
3
|
-
ref?: Ref<HTMLInputElement>;
|
|
4
|
-
/** flag for error styling */
|
|
5
|
-
hasError?: boolean;
|
|
6
|
-
/** error message text */
|
|
7
|
-
errorMessage?: string;
|
|
8
|
-
children?: ReactNode;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* A single radio button which should be part of a field set of radio buttons
|
|
12
|
-
*
|
|
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
|
-
*/
|
|
15
|
-
declare const Radio: React.ForwardRefExoticComponent<Pick<React.InputHTMLAttributes<HTMLInputElement> & {
|
|
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
|
-
}, keyof React.InputHTMLAttributes<HTMLInputElement> | "hasError" | "errorMessage"> & React.RefAttributes<HTMLInputElement>>;
|
|
23
|
-
export default Radio;
|
|
1
|
+
import React, { InputHTMLAttributes, Ref, ReactNode } from "react";
|
|
2
|
+
export type RadioProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
3
|
+
ref?: Ref<HTMLInputElement>;
|
|
4
|
+
/** flag for error styling */
|
|
5
|
+
hasError?: boolean;
|
|
6
|
+
/** error message text */
|
|
7
|
+
errorMessage?: string;
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* A single radio button which should be part of a field set of radio buttons
|
|
12
|
+
*
|
|
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
|
+
*/
|
|
15
|
+
declare const Radio: React.ForwardRefExoticComponent<Pick<React.InputHTMLAttributes<HTMLInputElement> & {
|
|
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
|
+
}, keyof React.InputHTMLAttributes<HTMLInputElement> | "hasError" | "errorMessage"> & React.RefAttributes<HTMLInputElement>>;
|
|
23
|
+
export default Radio;
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import { ThemeType } from "../../types";
|
|
2
|
-
type ThemeProp = {
|
|
3
|
-
theme: ThemeType;
|
|
4
|
-
};
|
|
5
|
-
export declare const CheckWrapper: import("styled-components").StyledComponent<"div", any,
|
|
6
|
-
export declare const Check: import("styled-components").StyledComponent<"span", any,
|
|
7
|
-
type
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
export declare const StyledLabel: import("styled-components").StyledComponent<"label", any,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import { ThemeType } from "../../types";
|
|
2
|
+
type ThemeProp = {
|
|
3
|
+
theme: ThemeType;
|
|
4
|
+
};
|
|
5
|
+
export declare const CheckWrapper: import("styled-components").StyledComponent<"div", any, ThemeProp, never>;
|
|
6
|
+
export declare const Check: import("styled-components").StyledComponent<"span", any, ThemeProp, never>;
|
|
7
|
+
type StyledLabelProps = {
|
|
8
|
+
hasError: boolean;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
checked: boolean;
|
|
11
|
+
theme: ThemeType;
|
|
12
|
+
};
|
|
13
|
+
export declare const StyledLabel: import("styled-components").StyledComponent<"label", any, StyledLabelProps, never>;
|
|
14
|
+
export declare const VerticalAlign: import("styled-components").StyledComponent<"span", any, ThemeProp, never>;
|
|
15
|
+
export declare const SelectedBorder: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
16
|
+
type StyledInputType = {
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
theme: ThemeType;
|
|
19
|
+
};
|
|
20
|
+
export declare const StyledInput: import("styled-components").StyledComponent<"input", any, StyledInputType, never>;
|
|
21
|
+
export {};
|
|
@@ -1,7 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { StoryObj } from "@storybook/react";
|
|
3
|
+
import RadioConsent, { RadioConsentProps } from ".";
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: React.FunctionComponent<RadioConsentProps>;
|
|
7
|
+
args: {
|
|
8
|
+
legend: string;
|
|
9
|
+
name: string;
|
|
10
|
+
attributes: {
|
|
11
|
+
option: string;
|
|
12
|
+
value: string;
|
|
13
|
+
}[];
|
|
14
|
+
};
|
|
15
|
+
tags: string[];
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
|
18
|
+
type Story = StoryObj<typeof RadioConsent>;
|
|
19
|
+
export declare const RadioConsentDefault: Story;
|
|
20
|
+
export declare const RadioConsentSU2C: Story;
|
|
21
|
+
export declare const RadioConsentBowelbabe: Story;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import React, { FunctionComponent } from "react";
|
|
2
|
-
export type RadioConsentProps = {
|
|
3
|
-
/** because each radio has its own label this is the consent group label text */
|
|
4
|
-
legend: string;
|
|
5
|
-
/** array of option for radio constent group where option is the option name and value is the option value */
|
|
6
|
-
attributes: Array<{
|
|
7
|
-
value: string;
|
|
8
|
-
option: string;
|
|
9
|
-
}>;
|
|
10
|
-
/** on change handler callback passed change event */
|
|
11
|
-
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
12
|
-
/** set the value of selected option */
|
|
13
|
-
selectedValue?: string;
|
|
14
|
-
/** name of field this is what groups all the options together */
|
|
15
|
-
name: string;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* RadioConsent is a component for showing a bunch of yes/no radios predominantly used for notification selections where a unselected state is usefull for analytics.
|
|
20
|
-
*
|
|
21
|
-
* This is always a controlled component that will only change state with the selectedValue prop
|
|
22
|
-
*/
|
|
23
|
-
declare const RadioConsent: FunctionComponent<RadioConsentProps>;
|
|
24
|
-
export default RadioConsent;
|
|
1
|
+
import React, { FunctionComponent } from "react";
|
|
2
|
+
export type RadioConsentProps = {
|
|
3
|
+
/** because each radio has its own label this is the consent group label text */
|
|
4
|
+
legend: string;
|
|
5
|
+
/** array of option for radio constent group where option is the option name and value is the option value */
|
|
6
|
+
attributes: Array<{
|
|
7
|
+
value: string;
|
|
8
|
+
option: string;
|
|
9
|
+
}>;
|
|
10
|
+
/** on change handler callback passed change event */
|
|
11
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
12
|
+
/** set the value of selected option */
|
|
13
|
+
selectedValue?: string;
|
|
14
|
+
/** name of field this is what groups all the options together */
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* RadioConsent is a component for showing a bunch of yes/no radios predominantly used for notification selections where a unselected state is usefull for analytics.
|
|
20
|
+
*
|
|
21
|
+
* This is always a controlled component that will only change state with the selectedValue prop
|
|
22
|
+
*/
|
|
23
|
+
declare const RadioConsent: FunctionComponent<RadioConsentProps>;
|
|
24
|
+
export default RadioConsent;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ThemeType } from "../../types";
|
|
3
|
-
type ThemeProp = {
|
|
4
|
-
theme: ThemeType;
|
|
5
|
-
};
|
|
6
|
-
export declare const StyledRadio: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("react").InputHTMLAttributes<HTMLInputElement> & {
|
|
7
|
-
ref?: import("react").Ref<HTMLInputElement> | undefined;
|
|
8
|
-
hasError?: boolean | undefined;
|
|
9
|
-
errorMessage?: string | undefined;
|
|
10
|
-
children?: import("react").ReactNode;
|
|
11
|
-
}, keyof import("react").InputHTMLAttributes<HTMLInputElement> | "hasError" | "errorMessage"> & import("react").RefAttributes<HTMLInputElement>>, any, {
|
|
12
|
-
numberOfAttributes: number;
|
|
13
|
-
} & ThemeProp, never>;
|
|
14
|
-
export declare const StyledLegend: import("styled-components").StyledComponent<"legend", any, {}, never>;
|
|
15
|
-
export declare const StyledFieldSet: import("styled-components").StyledComponent<"fieldset", any,
|
|
16
|
-
export {};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ThemeType } from "../../types";
|
|
3
|
+
type ThemeProp = {
|
|
4
|
+
theme: ThemeType;
|
|
5
|
+
};
|
|
6
|
+
export declare const StyledRadio: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("react").InputHTMLAttributes<HTMLInputElement> & {
|
|
7
|
+
ref?: import("react").Ref<HTMLInputElement> | undefined;
|
|
8
|
+
hasError?: boolean | undefined;
|
|
9
|
+
errorMessage?: string | undefined;
|
|
10
|
+
children?: import("react").ReactNode;
|
|
11
|
+
}, keyof import("react").InputHTMLAttributes<HTMLInputElement> | "hasError" | "errorMessage"> & import("react").RefAttributes<HTMLInputElement>>, any, {
|
|
12
|
+
numberOfAttributes: number;
|
|
13
|
+
} & ThemeProp, never>;
|
|
14
|
+
export declare const StyledLegend: import("styled-components").StyledComponent<"legend", any, {}, never>;
|
|
15
|
+
export declare const StyledFieldSet: import("styled-components").StyledComponent<"fieldset", any, ThemeProp, never>;
|
|
16
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,10 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { StoryObj } from "@storybook/react";
|
|
3
|
+
import Select, { SelectProps } from ".";
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: React.FunctionComponent<SelectProps>;
|
|
7
|
+
args: {
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
required: boolean;
|
|
10
|
+
label: string;
|
|
11
|
+
hintText: string;
|
|
12
|
+
hasError: boolean;
|
|
13
|
+
errorMessage: undefined;
|
|
14
|
+
};
|
|
15
|
+
tags: string[];
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
|
18
|
+
type Story = StoryObj<typeof Select>;
|
|
19
|
+
export declare const SelectDefault: Story;
|
|
20
|
+
export declare const SelectWithError: Story;
|
|
21
|
+
export declare const SelectSU2C: Story;
|
|
22
|
+
export declare const SelectWithErrorSU2C: Story;
|
|
23
|
+
export declare const SelectBowelbabe: Story;
|
|
24
|
+
export declare const SelectWithErrorBowelbabe: Story;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { FunctionComponent, ReactNode, SelectHTMLAttributes, Ref } from "react";
|
|
2
|
-
export type SelectProps = SelectHTMLAttributes<HTMLSelectElement> & {
|
|
3
|
-
/** error message text */
|
|
4
|
-
errorMessage?: string;
|
|
5
|
-
/** flag for error styling of component */
|
|
6
|
-
hasError?: boolean;
|
|
7
|
-
/** label text */
|
|
8
|
-
label: string;
|
|
9
|
-
/** hind text or custom component */
|
|
10
|
-
hintText?: ReactNode;
|
|
11
|
-
/** flag to stop (required) appearing in label, useful for compound form components like DateInput */
|
|
12
|
-
hideRequiredInLabel?: boolean;
|
|
13
|
-
/** react DOM reference of object used scrolling to it with errors etc */
|
|
14
|
-
ref?: Ref<HTMLSelectElement>;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Select components are used for collecting user provided information from a list of options.
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
declare const Select: FunctionComponent<SelectProps>;
|
|
21
|
-
export default Select;
|
|
1
|
+
import { FunctionComponent, ReactNode, SelectHTMLAttributes, Ref } from "react";
|
|
2
|
+
export type SelectProps = SelectHTMLAttributes<HTMLSelectElement> & {
|
|
3
|
+
/** error message text */
|
|
4
|
+
errorMessage?: string;
|
|
5
|
+
/** flag for error styling of component */
|
|
6
|
+
hasError?: boolean;
|
|
7
|
+
/** label text */
|
|
8
|
+
label: string;
|
|
9
|
+
/** hind text or custom component */
|
|
10
|
+
hintText?: ReactNode;
|
|
11
|
+
/** flag to stop (required) appearing in label, useful for compound form components like DateInput */
|
|
12
|
+
hideRequiredInLabel?: boolean;
|
|
13
|
+
/** react DOM reference of object used scrolling to it with errors etc */
|
|
14
|
+
ref?: Ref<HTMLSelectElement>;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Select components are used for collecting user provided information from a list of options.
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
declare const Select: FunctionComponent<SelectProps>;
|
|
21
|
+
export default Select;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ThemeType } from "../../types";
|
|
2
|
-
type StyledSelectProps = {
|
|
3
|
-
hasError: boolean;
|
|
4
|
-
errorMessage?: string;
|
|
5
|
-
theme: ThemeType;
|
|
6
|
-
};
|
|
7
|
-
declare const StyledSelect: import("styled-components").StyledComponent<"select", any, StyledSelectProps, never>;
|
|
8
|
-
export default StyledSelect;
|
|
9
|
-
export { StyledSelect };
|
|
1
|
+
import { ThemeType } from "../../types";
|
|
2
|
+
type StyledSelectProps = {
|
|
3
|
+
hasError: boolean;
|
|
4
|
+
errorMessage?: string;
|
|
5
|
+
theme: ThemeType;
|
|
6
|
+
};
|
|
7
|
+
declare const StyledSelect: import("styled-components").StyledComponent<"select", any, StyledSelectProps, never>;
|
|
8
|
+
export default StyledSelect;
|
|
9
|
+
export { StyledSelect };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { SpaceType, ThemeType } from "../../types";
|
|
2
|
-
export type SpacingProps = {
|
|
3
|
-
margin?: SpaceType;
|
|
4
|
-
marginTop?: SpaceType;
|
|
5
|
-
marginRight?: SpaceType;
|
|
6
|
-
marginBottom?: SpaceType;
|
|
7
|
-
marginLeft?: SpaceType;
|
|
8
|
-
marginVertical?: SpaceType;
|
|
9
|
-
marginHorizontal?: SpaceType;
|
|
10
|
-
padding?: SpaceType;
|
|
11
|
-
paddingTop?: SpaceType;
|
|
12
|
-
paddingRight?: SpaceType;
|
|
13
|
-
paddingBottom?: SpaceType;
|
|
14
|
-
paddingLeft?: SpaceType;
|
|
15
|
-
paddingVertical?: SpaceType;
|
|
16
|
-
paddingHorizontal?: SpaceType;
|
|
17
|
-
};
|
|
18
|
-
export declare const Spacing: (props: SpacingProps, theme: ThemeType) => string;
|
|
19
|
-
export default Spacing;
|
|
1
|
+
import { SpaceType, ThemeType } from "../../types";
|
|
2
|
+
export type SpacingProps = {
|
|
3
|
+
margin?: SpaceType;
|
|
4
|
+
marginTop?: SpaceType;
|
|
5
|
+
marginRight?: SpaceType;
|
|
6
|
+
marginBottom?: SpaceType;
|
|
7
|
+
marginLeft?: SpaceType;
|
|
8
|
+
marginVertical?: SpaceType;
|
|
9
|
+
marginHorizontal?: SpaceType;
|
|
10
|
+
padding?: SpaceType;
|
|
11
|
+
paddingTop?: SpaceType;
|
|
12
|
+
paddingRight?: SpaceType;
|
|
13
|
+
paddingBottom?: SpaceType;
|
|
14
|
+
paddingLeft?: SpaceType;
|
|
15
|
+
paddingVertical?: SpaceType;
|
|
16
|
+
paddingHorizontal?: SpaceType;
|
|
17
|
+
};
|
|
18
|
+
export declare const Spacing: (props: SpacingProps, theme: ThemeType) => string;
|
|
19
|
+
export default Spacing;
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { StoryObj } from "@storybook/react";
|
|
3
|
+
import Step, { StepProps } from ".";
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: React.FunctionComponent<StepProps>;
|
|
7
|
+
args: {
|
|
8
|
+
current: number;
|
|
9
|
+
steps: string[];
|
|
10
|
+
};
|
|
11
|
+
tags: string[];
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
14
|
+
type Story = StoryObj<typeof Step>;
|
|
15
|
+
export declare const StepDefault: Story;
|
|
16
|
+
export declare const StepSU2C: Story;
|
|
17
|
+
export declare const StepBowelbabe: Story;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { FunctionComponent, ReactNode } from "react";
|
|
2
|
-
export type StepProps = {
|
|
3
|
-
/** current step number */
|
|
4
|
-
current: number;
|
|
5
|
-
/** list of step */
|
|
6
|
-
steps: string[];
|
|
7
|
-
children?: ReactNode;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* Visually show where a user is in a multi-step process. Calculate the number of steps and the width of each step required to fit the progress bar in the parent container.
|
|
12
|
-
* Step display progress through a sequence by breaking it up into multiple logical steps. They may also be used for navigation.
|
|
13
|
-
*/
|
|
14
|
-
declare const Step: FunctionComponent<StepProps>;
|
|
15
|
-
export default Step;
|
|
1
|
+
import { FunctionComponent, ReactNode } from "react";
|
|
2
|
+
export type StepProps = {
|
|
3
|
+
/** current step number */
|
|
4
|
+
current: number;
|
|
5
|
+
/** list of step */
|
|
6
|
+
steps: string[];
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* Visually show where a user is in a multi-step process. Calculate the number of steps and the width of each step required to fit the progress bar in the parent container.
|
|
12
|
+
* Step display progress through a sequence by breaking it up into multiple logical steps. They may also be used for navigation.
|
|
13
|
+
*/
|
|
14
|
+
declare const Step: FunctionComponent<StepProps>;
|
|
15
|
+
export default Step;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { ThemeType } from "../../types";
|
|
2
|
+
export declare const StepWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
type StepListProps = {
|
|
4
|
+
total: number;
|
|
5
|
+
};
|
|
6
|
+
type ThemeProps = {
|
|
7
|
+
theme: ThemeType;
|
|
8
|
+
};
|
|
9
|
+
export declare const StepList: import("styled-components").StyledComponent<"ul", any, StepListProps, never>;
|
|
10
|
+
export declare const StepBar: import("styled-components").StyledComponent<"span", any, ThemeProps, never>;
|
|
11
|
+
export declare const StepTick: import("styled-components").StyledComponent<"span", any, ThemeProps, never>;
|
|
12
|
+
type StepItemProps = {
|
|
13
|
+
active: boolean;
|
|
14
|
+
done: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare const StepItem: import("styled-components").StyledComponent<"li", any, StepItemProps, never>;
|
|
17
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import { ThemeType } from "src/types";
|
|
3
|
-
type TestThemeWrapperProps = {
|
|
4
|
-
theme?: ThemeType;
|
|
5
|
-
children?: ReactNode;
|
|
6
|
-
};
|
|
7
|
-
export declare const TestThemeWrapper: ({ children, theme, }: TestThemeWrapperProps) => JSX.Element;
|
|
8
|
-
type TestWrapperProps = {
|
|
9
|
-
children?: ReactNode;
|
|
10
|
-
};
|
|
11
|
-
export declare const TestWrapper: ({ children }: TestWrapperProps) => JSX.Element;
|
|
12
|
-
export default TestWrapper;
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { ThemeType } from "src/types";
|
|
3
|
+
type TestThemeWrapperProps = {
|
|
4
|
+
theme?: ThemeType;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export declare const TestThemeWrapper: ({ children, theme, }: TestThemeWrapperProps) => JSX.Element;
|
|
8
|
+
type TestWrapperProps = {
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
};
|
|
11
|
+
export declare const TestWrapper: ({ children }: TestWrapperProps) => JSX.Element;
|
|
12
|
+
export default TestWrapper;
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { StoryObj } from "@storybook/react";
|
|
3
|
+
import Text, { TextProps } from ".";
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: React.FunctionComponent<TextProps>;
|
|
7
|
+
args: {
|
|
8
|
+
children: string;
|
|
9
|
+
textColor: string;
|
|
10
|
+
};
|
|
11
|
+
tags: string[];
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
14
|
+
type Story = StoryObj<typeof Text>;
|
|
15
|
+
export declare const TextDefault: Story;
|
|
16
|
+
export declare const TextSU2C: Story;
|
|
17
|
+
export declare const TextBowelbabe: Story;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { FunctionComponent, HTMLAttributes, Ref, ElementType } from "react";
|
|
2
|
-
import { SpacingProps } from "../Spacing";
|
|
3
|
-
import { WordBreakType, FontSizeType, ColorKeyType, OverflowWrapType } from "../../types";
|
|
4
|
-
/**
|
|
5
|
-
* Text is to be used as the main paragraph component (or span using as="span"). Using the Text component is preferred to simply adding text to a div and styling that div, this will guarantee we are always using the correct font and default text colour.
|
|
6
|
-
*/
|
|
7
|
-
export type TextProps = SpacingProps & HTMLAttributes<HTMLElement> & {
|
|
8
|
-
/** text colour */
|
|
9
|
-
textColor?: ColorKeyType | string;
|
|
10
|
-
/** text horizontal alignment */
|
|
11
|
-
textAlign?: "left" | "right" | "center" | "justify";
|
|
12
|
-
/** font size FontSizeType t-shirt sizes */
|
|
13
|
-
textSize?: FontSizeType;
|
|
14
|
-
/** font weight theme.typography{fontWeightHeavy/fontWeightNormal/fontWeightMedium/fontWeightLight/fontWeightVLight} is better than a random number */
|
|
15
|
-
textWeight?: number;
|
|
16
|
-
/** styled-components polymorphism where you can set this to "span", "p" or "h2" it default to "p" */
|
|
17
|
-
as?: ElementType;
|
|
18
|
-
/** word-break behaviour */
|
|
19
|
-
wordBreak?: WordBreakType;
|
|
20
|
-
/** overflow-wrap behaviour */
|
|
21
|
-
overflowWrap?: OverflowWrapType;
|
|
22
|
-
/** react reference to the DOM element sometime used to scroll to or set focus after an error */
|
|
23
|
-
ref?: Ref<HTMLElement>;
|
|
24
|
-
};
|
|
25
|
-
export declare const Text: FunctionComponent<TextProps>;
|
|
26
|
-
export default Text;
|
|
1
|
+
import { FunctionComponent, HTMLAttributes, Ref, ElementType } from "react";
|
|
2
|
+
import { SpacingProps } from "../Spacing";
|
|
3
|
+
import { WordBreakType, FontSizeType, ColorKeyType, OverflowWrapType } from "../../types";
|
|
4
|
+
/**
|
|
5
|
+
* Text is to be used as the main paragraph component (or span using as="span"). Using the Text component is preferred to simply adding text to a div and styling that div, this will guarantee we are always using the correct font and default text colour.
|
|
6
|
+
*/
|
|
7
|
+
export type TextProps = SpacingProps & HTMLAttributes<HTMLElement> & {
|
|
8
|
+
/** text colour */
|
|
9
|
+
textColor?: ColorKeyType | string;
|
|
10
|
+
/** text horizontal alignment */
|
|
11
|
+
textAlign?: "left" | "right" | "center" | "justify";
|
|
12
|
+
/** font size FontSizeType t-shirt sizes */
|
|
13
|
+
textSize?: FontSizeType;
|
|
14
|
+
/** font weight theme.typography{fontWeightHeavy/fontWeightNormal/fontWeightMedium/fontWeightLight/fontWeightVLight} is better than a random number */
|
|
15
|
+
textWeight?: number;
|
|
16
|
+
/** styled-components polymorphism where you can set this to "span", "p" or "h2" it default to "p" */
|
|
17
|
+
as?: ElementType;
|
|
18
|
+
/** word-break behaviour */
|
|
19
|
+
wordBreak?: WordBreakType;
|
|
20
|
+
/** overflow-wrap behaviour */
|
|
21
|
+
overflowWrap?: OverflowWrapType;
|
|
22
|
+
/** react reference to the DOM element sometime used to scroll to or set focus after an error */
|
|
23
|
+
ref?: Ref<HTMLElement>;
|
|
24
|
+
};
|
|
25
|
+
export declare const Text: FunctionComponent<TextProps>;
|
|
26
|
+
export default Text;
|