@cruk/cruk-react-components 6.2.3 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +185 -7
- package/lib/index.css +4248 -0
- package/lib/index.css.map +1 -0
- 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.d.ts +8 -9
- package/lib/src/components/AddressLookup/index.js +1 -1
- package/lib/src/components/AddressLookup/index.js.map +1 -1
- package/lib/src/components/AllThemesWrapper.d.ts +3 -3
- package/lib/src/components/Avatar/index.d.ts +10 -8
- package/lib/src/components/Avatar/index.js +1 -1
- package/lib/src/components/Avatar/index.js.map +1 -1
- package/lib/src/components/Badge/index.d.ts +12 -16
- package/lib/src/components/Badge/index.js +1 -1
- package/lib/src/components/Badge/index.js.map +1 -1
- package/lib/src/components/Box/index.d.ts +7 -7
- package/lib/src/components/Box/index.js +1 -1
- package/lib/src/components/Box/index.js.map +1 -1
- package/lib/src/components/Button/index.d.ts +7 -16
- package/lib/src/components/Button/index.js +1 -1
- package/lib/src/components/Button/index.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.d.ts +23 -13
- package/lib/src/components/Carousel/index.js +1 -1
- package/lib/src/components/Carousel/index.js.map +1 -1
- package/lib/src/components/Checkbox/index.d.ts +7 -8
- package/lib/src/components/Checkbox/index.js +1 -1
- package/lib/src/components/Checkbox/index.js.map +1 -1
- package/lib/src/components/Collapse/index.d.ts +2 -2
- package/lib/src/components/Collapse/index.js +1 -1
- package/lib/src/components/Collapse/index.js.map +1 -1
- package/lib/src/components/DateField/index.d.ts +5 -6
- package/lib/src/components/DateField/index.js +1 -1
- package/lib/src/components/DateField/index.js.map +1 -1
- package/lib/src/components/ErrorText/index.d.ts +7 -6
- package/lib/src/components/ErrorText/index.js +1 -1
- package/lib/src/components/ErrorText/index.js.map +1 -1
- package/lib/src/components/Footer/index.d.ts +8 -6
- package/lib/src/components/Footer/index.js +1 -1
- package/lib/src/components/Footer/index.js.map +1 -1
- package/lib/src/components/Header/index.d.ts +19 -18
- package/lib/src/components/Header/index.js +1 -1
- package/lib/src/components/Header/index.js.map +1 -1
- package/lib/src/components/Heading/index.d.ts +5 -17
- package/lib/src/components/Heading/index.js +1 -1
- package/lib/src/components/Heading/index.js.map +1 -1
- package/lib/src/components/IconFa/index.d.ts +9 -9
- package/lib/src/components/IconFa/index.js +1 -1
- package/lib/src/components/IconFa/index.js.map +1 -1
- package/lib/src/components/InfoBox/index.d.ts +13 -16
- package/lib/src/components/InfoBox/index.js +1 -1
- package/lib/src/components/InfoBox/index.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/LegendWrapper/index.js +1 -1
- package/lib/src/components/LegendWrapper/index.js.map +1 -1
- package/lib/src/components/Link/index.d.ts +6 -10
- package/lib/src/components/Link/index.js +1 -1
- package/lib/src/components/Link/index.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/Modal/TestModalWithContent.d.ts +3 -1
- package/lib/src/components/Modal/TestModalWithState.d.ts +3 -1
- package/lib/src/components/Modal/index.d.ts +14 -17
- package/lib/src/components/Modal/index.js +1 -1
- package/lib/src/components/Modal/index.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/PopOver/index.d.ts +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/ProgressBar/index.d.ts +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/Radio/index.js +1 -1
- package/lib/src/components/Radio/index.js.map +1 -1
- package/lib/src/components/RadioConsent/index.d.ts +8 -9
- package/lib/src/components/RadioConsent/index.js +1 -1
- package/lib/src/components/RadioConsent/index.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/Step/index.d.ts +7 -8
- package/lib/src/components/Step/index.js +1 -1
- package/lib/src/components/Step/index.js.map +1 -1
- package/lib/src/components/Text/index.d.ts +7 -27
- package/lib/src/components/Text/index.js +1 -1
- package/lib/src/components/Text/index.js.map +1 -1
- package/lib/src/components/TextAreaField/index.d.ts +5 -6
- package/lib/src/components/TextAreaField/index.js +1 -1
- package/lib/src/components/TextAreaField/index.js.map +1 -1
- package/lib/src/components/TextField/index.d.ts +3 -1
- package/lib/src/components/TextField/index.js +1 -1
- package/lib/src/components/TextField/index.js.map +1 -1
- package/lib/src/components/Totaliser/index.d.ts +5 -6
- package/lib/src/components/Totaliser/index.js +1 -1
- package/lib/src/components/Totaliser/index.js.map +1 -1
- package/lib/src/components/UserBlock/index.d.ts +3 -1
- package/lib/src/components/UserBlock/index.js +1 -1
- package/lib/src/components/UserBlock/index.js.map +1 -1
- package/lib/src/components/index.d.ts +34 -10
- package/lib/src/components/index.js +1 -1
- package/lib/src/types.d.ts +45 -172
- package/lib/src/types.js +2 -0
- package/lib/src/types.js.map +1 -0
- package/lib/src/utils/Helper.d.ts +3 -0
- package/lib/src/utils/Helper.js +1 -1
- package/lib/src/utils/Helper.js.map +1 -1
- package/lib/src/utils/themeUtils.d.ts +4 -3
- package/lib/src/utils/themeUtils.js +1 -1
- package/lib/src/utils/themeUtils.js.map +1 -1
- package/package.json +11 -9
- package/lib/src/components/AddressLookup/styles.d.ts +0 -17
- package/lib/src/components/AddressLookup/styles.js +0 -2
- package/lib/src/components/AddressLookup/styles.js.map +0 -1
- package/lib/src/components/Avatar/styles.d.ts +0 -6
- package/lib/src/components/Avatar/styles.js +0 -2
- package/lib/src/components/Avatar/styles.js.map +0 -1
- package/lib/src/components/Badge/styles.d.ts +0 -10
- package/lib/src/components/Badge/styles.js +0 -2
- package/lib/src/components/Badge/styles.js.map +0 -1
- package/lib/src/components/Box/styles.d.ts +0 -9
- package/lib/src/components/Box/styles.js +0 -2
- package/lib/src/components/Box/styles.js.map +0 -1
- package/lib/src/components/Button/styles.d.ts +0 -13
- package/lib/src/components/Button/styles.js +0 -2
- package/lib/src/components/Button/styles.js.map +0 -1
- package/lib/src/components/Carousel/styles.d.ts +0 -30
- package/lib/src/components/Carousel/styles.js +0 -2
- package/lib/src/components/Carousel/styles.js.map +0 -1
- package/lib/src/components/Checkbox/styles.d.ts +0 -17
- package/lib/src/components/Checkbox/styles.js +0 -2
- package/lib/src/components/Checkbox/styles.js.map +0 -1
- package/lib/src/components/Collapse/styles.d.ts +0 -26
- package/lib/src/components/Collapse/styles.js +0 -2
- package/lib/src/components/Collapse/styles.js.map +0 -1
- package/lib/src/components/DateField/styles.d.ts +0 -25
- package/lib/src/components/DateField/styles.js +0 -2
- package/lib/src/components/DateField/styles.js.map +0 -1
- package/lib/src/components/Divider.d.ts +0 -5
- package/lib/src/components/Divider.js +0 -2
- package/lib/src/components/Divider.js.map +0 -1
- package/lib/src/components/ErrorText/styles.d.ts +0 -16
- package/lib/src/components/ErrorText/styles.js +0 -2
- package/lib/src/components/ErrorText/styles.js.map +0 -1
- package/lib/src/components/Flex.d.ts +0 -8
- package/lib/src/components/Flex.js +0 -2
- package/lib/src/components/Flex.js.map +0 -1
- package/lib/src/components/Fontface.d.ts +0 -4
- package/lib/src/components/Fontface.js +0 -2
- package/lib/src/components/Fontface.js.map +0 -1
- package/lib/src/components/Footer/styles.d.ts +0 -16
- package/lib/src/components/Footer/styles.js +0 -2
- package/lib/src/components/Footer/styles.js.map +0 -1
- package/lib/src/components/GlobalStyle.d.ts +0 -2
- package/lib/src/components/GlobalStyle.js +0 -2
- package/lib/src/components/GlobalStyle.js.map +0 -1
- package/lib/src/components/GlobalStyleNoFontFace.d.ts +0 -2
- package/lib/src/components/GlobalStyleNoFontFace.js +0 -2
- package/lib/src/components/GlobalStyleNoFontFace.js.map +0 -1
- package/lib/src/components/Header/styles.d.ts +0 -33
- package/lib/src/components/Header/styles.js +0 -2
- package/lib/src/components/Header/styles.js.map +0 -1
- package/lib/src/components/Heading/styles.d.ts +0 -17
- package/lib/src/components/Heading/styles.js +0 -2
- package/lib/src/components/Heading/styles.js.map +0 -1
- package/lib/src/components/IconFa/styles.d.ts +0 -7
- package/lib/src/components/IconFa/styles.js +0 -2
- package/lib/src/components/IconFa/styles.js.map +0 -1
- package/lib/src/components/InfoBox/styles.d.ts +0 -13
- package/lib/src/components/InfoBox/styles.js +0 -2
- package/lib/src/components/InfoBox/styles.js.map +0 -1
- package/lib/src/components/LabelWrapper/styles.d.ts +0 -16
- package/lib/src/components/LabelWrapper/styles.js +0 -2
- package/lib/src/components/LabelWrapper/styles.js.map +0 -1
- package/lib/src/components/LegendWrapper/styles.d.ts +0 -15
- package/lib/src/components/LegendWrapper/styles.js +0 -2
- package/lib/src/components/LegendWrapper/styles.js.map +0 -1
- package/lib/src/components/Link/styles.d.ts +0 -20
- package/lib/src/components/Link/styles.js +0 -2
- package/lib/src/components/Link/styles.js.map +0 -1
- package/lib/src/components/Loader/styles.d.ts +0 -7
- package/lib/src/components/Loader/styles.js +0 -2
- package/lib/src/components/Loader/styles.js.map +0 -1
- package/lib/src/components/Modal/styles.d.ts +0 -32
- package/lib/src/components/Modal/styles.js +0 -2
- package/lib/src/components/Modal/styles.js.map +0 -1
- package/lib/src/components/Pagination/styles.d.ts +0 -12
- package/lib/src/components/Pagination/styles.js +0 -2
- package/lib/src/components/Pagination/styles.js.map +0 -1
- package/lib/src/components/PopOver/styles.d.ts +0 -11
- package/lib/src/components/PopOver/styles.js +0 -2
- package/lib/src/components/PopOver/styles.js.map +0 -1
- package/lib/src/components/ProgressBar/styles.d.ts +0 -32
- package/lib/src/components/ProgressBar/styles.js +0 -2
- package/lib/src/components/ProgressBar/styles.js.map +0 -1
- package/lib/src/components/Radio/styles.d.ts +0 -21
- package/lib/src/components/Radio/styles.js +0 -2
- package/lib/src/components/Radio/styles.js.map +0 -1
- package/lib/src/components/RadioConsent/styles.d.ts +0 -10
- package/lib/src/components/RadioConsent/styles.js +0 -2
- package/lib/src/components/RadioConsent/styles.js.map +0 -1
- package/lib/src/components/Select/styles.d.ts +0 -9
- package/lib/src/components/Select/styles.js +0 -2
- package/lib/src/components/Select/styles.js.map +0 -1
- package/lib/src/components/Spacing/index.d.ts +0 -68
- package/lib/src/components/Spacing/index.js +0 -2
- package/lib/src/components/Spacing/index.js.map +0 -1
- package/lib/src/components/Step/styles.d.ts +0 -16
- package/lib/src/components/Step/styles.js +0 -2
- package/lib/src/components/Step/styles.js.map +0 -1
- package/lib/src/components/Text/styles.d.ts +0 -15
- package/lib/src/components/Text/styles.js +0 -2
- package/lib/src/components/Text/styles.js.map +0 -1
- package/lib/src/components/TextAreaField/styles.d.ts +0 -10
- package/lib/src/components/TextAreaField/styles.js +0 -2
- package/lib/src/components/TextAreaField/styles.js.map +0 -1
- package/lib/src/components/TextField/styles.d.ts +0 -18
- package/lib/src/components/TextField/styles.js +0 -2
- package/lib/src/components/TextField/styles.js.map +0 -1
- package/lib/src/components/ThemeCheatSheet.d.ts +0 -7
- package/lib/src/components/Totaliser/styles.d.ts +0 -27
- package/lib/src/components/Totaliser/styles.js +0 -2
- package/lib/src/components/Totaliser/styles.js.map +0 -1
- package/lib/src/components/UserBlock/styles.d.ts +0 -9
- package/lib/src/components/UserBlock/styles.js +0 -2
- package/lib/src/components/UserBlock/styles.js.map +0 -1
- package/lib/src/themes/bowelbabe.d.ts +0 -14
- package/lib/src/themes/bowelbabe.js +0 -2
- package/lib/src/themes/bowelbabe.js.map +0 -1
- package/lib/src/themes/cruk.d.ts +0 -14
- package/lib/src/themes/cruk.js +0 -2
- package/lib/src/themes/cruk.js.map +0 -1
- package/lib/src/themes/rfl.d.ts +0 -14
- package/lib/src/themes/rfl.js +0 -2
- package/lib/src/themes/rfl.js.map +0 -1
- package/lib/src/themes/su2c.d.ts +0 -14
- package/lib/src/themes/su2c.js +0 -2
- package/lib/src/themes/su2c.js.map +0 -1
- package/lib/vite.config.d.ts +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/Select/index.tsx"],"sourcesContent":["import React, {\n type ReactNode,\n type SelectHTMLAttributes,\n type Ref,\n} from \"react\";\
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/Select/index.tsx"],"sourcesContent":["import React, {\n type ReactNode,\n type SelectHTMLAttributes,\n type Ref,\n} from \"react\";\n\nimport { LabelWrapper } from \"../LabelWrapper\";\nimport { ErrorText } from \"../ErrorText\";\n\nexport type SelectProps = SelectHTMLAttributes<HTMLSelectElement> & {\n /** error message text */\n errorMessage?: string;\n /** flag for error styling of component */\n hasError?: boolean;\n /** label text */\n label: string;\n /** hind text or custom component */\n hintText?: ReactNode;\n /** flag to stop (optional) appearing in label, useful for compound form components like DateInput */\n hideRequiredIndicationInLabel?: boolean;\n /** react DOM reference of object used scrolling to it with errors etc */\n ref?: Ref<HTMLSelectElement>;\n};\n\n/**\n * Select components are used for collecting user provided information from a list of options.\n *\n */\nexport const Select = ({\n errorMessage,\n hasError,\n required,\n label,\n hintText,\n hideRequiredIndicationInLabel,\n ref,\n ...props\n}: SelectProps) => {\n return (\n <LabelWrapper\n label={label}\n hintText={hintText}\n required={(!hideRequiredIndicationInLabel && required) || false}\n >\n <select\n className=\"component-select\"\n {...props}\n ref={ref}\n required={required}\n aria-invalid={hasError || !!errorMessage || false}\n aria-describedby={\n !!props.id && !!errorMessage ? `${props.id}-error` : undefined\n }\n />\n {!!errorMessage && (\n <ErrorText\n marginTop=\"xxs\"\n id={props.id ? `${props.id}-error` : undefined}\n >\n {errorMessage}\n </ErrorText>\n )}\n </LabelWrapper>\n );\n};\n\nexport default Select;\n"],"names":["Select","_a","errorMessage","hasError","required","label","hintText","hideRequiredIndicationInLabel","ref","props","__rest","React","LabelWrapper","createElement","__assign","className","id","concat","undefined","ErrorText","marginTop"],"mappings":"+MA4BO,IAAMA,EAAS,SAACC,GACrB,IAAAC,EAAYD,EAAAC,aACZC,EAAQF,EAAAE,SACRC,EAAQH,EAAAG,SACRC,EAAKJ,EAAAI,MACLC,EAAQL,EAAAK,SACRC,EAA6BN,EAAAM,8BAC7BC,QACGC,EAAKC,EAAAT,EARa,CAAA,eAAA,WAAA,WAAA,QAAA,WAAA,gCAAA,QAUrB,OACEU,gBAACC,EAAY,CACXP,MAAOA,EACPC,SAAUA,EACVF,UAAYG,GAAiCH,IAAa,GAE1DO,EAAAE,cAAA,SAAAC,EAAA,CACEC,UAAU,oBACNN,EAAK,CACTD,IAAKA,EACLJ,SAAUA,EAAQ,eACJD,KAAcD,IAAgB,qBAExCO,EAAMO,IAAQd,EAAe,GAAAe,OAAGR,EAAMO,GAAE,eAAWE,OAGtDhB,GACDS,gBAACQ,EAAS,CACRC,UAAU,MACVJ,GAAIP,EAAMO,GAAK,GAAAC,OAAGR,EAAMO,kBAAaE,GAEpChB,GAKX"}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import React, { type 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
2
|
/**
|
|
10
3
|
*
|
|
11
4
|
* 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
5
|
* Step display progress through a sequence by breaking it up into multiple logical steps. They may also be used for navigation.
|
|
13
6
|
*/
|
|
14
|
-
export declare function Step({ steps, current, children }:
|
|
7
|
+
export declare function Step({ steps, current, children, }: {
|
|
8
|
+
/** current step number */
|
|
9
|
+
current: number;
|
|
10
|
+
/** list of step */
|
|
11
|
+
steps: string[];
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
}): React.JSX.Element;
|
|
15
14
|
export default Step;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"react";function t(t){var a=t.steps,s=void 0===a?[]:a,r=t.current,c=void 0===r?1:r,n=t.children,i=Array.isArray(s)?Object.keys(s).length:0,l="".concat(i>0?100/i:100,"%");return e.createElement("div",{className:"component-step"},e.createElement("ul",{className:"step-list"},Array.isArray(s)&&s.map(function(t,a){return e.createElement("li",{className:"step-item",key:"step".concat(a),"data-is-active":a+1===c,"data-is-done":a+1<c,style:{"--_step-item-width":l}},e.createElement("span",{className:"step-bar"},a+1<c&&e.createElement("span",{className:"step-tick"})),t)})),n)}export{t as Step,t as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/Step/index.tsx"],"sourcesContent":["import React, { type ReactNode } from \"react\";\
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/Step/index.tsx"],"sourcesContent":["import React, { type ReactNode } from \"react\";\n\n/**\n *\n * 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.\n * Step display progress through a sequence by breaking it up into multiple logical steps. They may also be used for navigation.\n */\nexport function Step({\n steps = [],\n current = 1,\n children,\n}: {\n /** current step number */\n current: number;\n /** list of step */\n steps: string[];\n children?: ReactNode;\n}) {\n const totalSteps: number = Array.isArray(steps)\n ? Object.keys(steps).length\n : 0;\n const itemWidth = `${totalSteps > 0 ? 100 / totalSteps : 100}%`;\n\n return (\n <div className=\"component-step\">\n <ul className=\"step-list\">\n {Array.isArray(steps) &&\n steps.map((step, i) => (\n <li\n className=\"step-item\"\n key={`step${i}`}\n data-is-active={i + 1 === current}\n data-is-done={i + 1 < current}\n style={{ \"--_step-item-width\": itemWidth } as React.CSSProperties}\n >\n <span className=\"step-bar\">\n {i + 1 < current && <span className=\"step-tick\" />}\n </span>\n {step}\n </li>\n ))}\n </ul>\n {children}\n </div>\n );\n}\nexport default Step;\n"],"names":["Step","_a","_b","steps","_c","current","children","totalSteps","Array","isArray","Object","keys","length","itemWidth","concat","React","createElement","className","map","step","i","key","style"],"mappings":"qBAOM,SAAUA,EAAKC,GACnB,IAAAC,EAAAD,EAAAE,MAAAA,OAAK,IAAAD,EAAG,KACRE,EAAAH,EAAAI,QAAAA,OAAO,IAAAD,EAAG,EAACA,EACXE,EAAQL,EAAAK,SAQFC,EAAqBC,MAAMC,QAAQN,GACrCO,OAAOC,KAAKR,GAAOS,OACnB,EACEC,EAAY,GAAAC,OAAGP,EAAa,EAAI,IAAMA,EAAa,SAEzD,OACEQ,EAAAC,cAAA,MAAA,CAAKC,UAAU,kBACbF,EAAAC,cAAA,KAAA,CAAIC,UAAU,aACXT,MAAMC,QAAQN,IACbA,EAAMe,IAAI,SAACC,EAAMC,GAAM,OACrBL,sBACEE,UAAU,YACVI,IAAK,OAAAP,OAAOM,GAAG,iBACCA,EAAI,IAAMf,EAAO,eACnBe,EAAI,EAAIf,EACtBiB,MAAO,CAAE,qBAAsBT,IAE/BE,EAAAC,cAAA,OAAA,CAAMC,UAAU,YACbG,EAAI,EAAIf,GAAWU,EAAAC,cAAA,OAAA,CAAMC,UAAU,eAErCE,EAXkB,IAe1Bb,EAGP"}
|
|
@@ -1,28 +1,8 @@
|
|
|
1
|
-
import React, { type
|
|
2
|
-
import { type SpacingProps } from "
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
/** text colour */
|
|
9
|
-
textColor?: 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 | string;
|
|
16
|
-
/** font family theme.typography{fontFamilyBase/fontFamilyHeadings} is better than a random string */
|
|
17
|
-
textFontFamily?: string;
|
|
18
|
-
/** styled-components polymorphism where you can set this to "span", "p" or "h2" it default to "p" */
|
|
19
|
-
as?: ElementType;
|
|
20
|
-
/** word-break behaviour */
|
|
21
|
-
wordBreak?: WordBreakType;
|
|
22
|
-
/** overflow-wrap behaviour */
|
|
23
|
-
overflowWrap?: OverflowWrapType;
|
|
24
|
-
/** react reference to the DOM element sometime used to scroll to or set focus after an error */
|
|
25
|
-
ref?: Ref<HTMLElement>;
|
|
26
|
-
};
|
|
27
|
-
export declare const Text: (props: TextProps) => React.JSX.Element;
|
|
1
|
+
import React, { type Ref, type HTMLAttributes } from "react";
|
|
2
|
+
import { type ColourProps, type SpacingProps, type TextProps } from "../../types";
|
|
3
|
+
export declare const Text: ({ textColor, backgroundColor, textAlign, textSize, textWeight, textFontFamily, wordBreak, overflowWrap, margin, marginTop, marginRight, marginBottom, marginLeft, marginVertical, marginHorizontal, padding, paddingTop, paddingRight, paddingBottom, paddingLeft, paddingVertical, paddingHorizontal, as, ref, ...htmlAttributes }: HTMLAttributes<HTMLElement> & ColourProps & SpacingProps & TextProps & {
|
|
4
|
+
as?: "span" | "div" | "p" | "address";
|
|
5
|
+
ref?: Ref<HTMLSpanElement | HTMLDivElement | HTMLParagraphElement>;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
}) => React.JSX.Element;
|
|
28
8
|
export default Text;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{__rest as a,__assign as t}from"../../../node_modules/tslib/tslib.es6.js";import o from"react";import{removeEmpty as r}from"../../utils/Helper.js";var e=function(e){var i=e.textColor,n=e.backgroundColor,d=e.textAlign,p=e.textSize,g=e.textWeight,m=e.textFontFamily,l=e.wordBreak,s=e.overflowWrap,c=e.margin,x=e.marginTop,f=e.marginRight,h=e.marginBottom,v=e.marginLeft,z=e.marginVertical,b=e.marginHorizontal,u=e.padding,w=e.paddingTop,j=e.paddingRight,B=e.paddingBottom,k=e.paddingLeft,E=e.paddingVertical,F=e.paddingHorizontal,H=e.as,C=e.ref,L=a(e,["textColor","backgroundColor","textAlign","textSize","textWeight","textFontFamily","wordBreak","overflowWrap","margin","marginTop","marginRight","marginBottom","marginLeft","marginVertical","marginHorizontal","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingVertical","paddingHorizontal","as","ref"]),N=r({"data-color":i,"data-bg-color":n,"data-text-size":p,"data-text-align":d,"data-text-weight":g,"data-text-font-family":m,"data-word-break":l,"data-overflow-wrap":s,"data-margin":c,"data-margin-top":x,"data-margin-right":f,"data-margin-bottom":h,"data-margin-left":v,"data-margin-vertical":z,"data-margin-horizontal":b,"data-padding":u,"data-padding-top":w,"data-padding-right":j,"data-padding-bottom":B,"data-padding-left":k,"data-padding-vertical":E,"data-padding-horizontal":F});return o.createElement(o.Fragment,null,(!H||"p"===H)&&o.createElement("p",t({className:["component-text","text-props","spacing-props","color-props"].join(" "),ref:C},L,N)),"div"===H&&o.createElement("div",t({className:["component-text","text-props","spacing-props","color-props"].join(" "),ref:C},L,N)),"span"===H&&o.createElement("span",t({className:["component-text","text-props","spacing-props","color-props"].join(" "),ref:C},L,N)),"address"===H&&o.createElement("address",t({className:["component-text","text-props","spacing-props","color-props"].join(" "),ref:C},L,N)))};export{e as Text,e as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/Text/index.tsx"],"sourcesContent":["import React, { type
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/Text/index.tsx"],"sourcesContent":["import React, { type Ref, type HTMLAttributes } from \"react\";\n\nimport { removeEmpty } from \"../../utils/Helper\";\n\nimport {\n type ColourProps,\n type SpacingProps,\n type TextProps,\n} from \"../../types\";\n\nexport const Text = ({\n textColor,\n backgroundColor,\n textAlign,\n textSize,\n textWeight,\n textFontFamily,\n wordBreak,\n overflowWrap,\n margin,\n marginTop,\n marginRight,\n marginBottom,\n marginLeft,\n marginVertical,\n marginHorizontal,\n padding,\n paddingTop,\n paddingRight,\n paddingBottom,\n paddingLeft,\n paddingVertical,\n paddingHorizontal,\n as,\n ref,\n ...htmlAttributes\n}: HTMLAttributes<HTMLElement> &\n ColourProps &\n SpacingProps &\n TextProps & {\n as?: \"span\" | \"div\" | \"p\" | \"address\";\n ref?: Ref<HTMLSpanElement | HTMLDivElement | HTMLParagraphElement>;\n style?: React.CSSProperties;\n }) => {\n const convertedProps = {\n \"data-color\": textColor,\n \"data-bg-color\": backgroundColor,\n \"data-text-size\": textSize,\n \"data-text-align\": textAlign,\n \"data-text-weight\": textWeight,\n \"data-text-font-family\": textFontFamily,\n \"data-word-break\": wordBreak,\n \"data-overflow-wrap\": overflowWrap,\n \"data-margin\": margin,\n \"data-margin-top\": marginTop,\n \"data-margin-right\": marginRight,\n \"data-margin-bottom\": marginBottom,\n \"data-margin-left\": marginLeft,\n \"data-margin-vertical\": marginVertical,\n \"data-margin-horizontal\": marginHorizontal,\n \"data-padding\": padding,\n \"data-padding-top\": paddingTop,\n \"data-padding-right\": paddingRight,\n \"data-padding-bottom\": paddingBottom,\n \"data-padding-left\": paddingLeft,\n \"data-padding-vertical\": paddingVertical,\n \"data-padding-horizontal\": paddingHorizontal,\n };\n\n const convertedPropsFiltered = removeEmpty(convertedProps);\n\n return (\n <>\n {(!as || as === \"p\") && (\n <p\n className={[\n \"component-text\",\n \"text-props\",\n \"spacing-props\",\n \"color-props\",\n ].join(\" \")}\n ref={ref as Ref<HTMLParagraphElement>}\n {...htmlAttributes}\n {...convertedPropsFiltered}\n />\n )}\n {as === \"div\" && (\n <div\n className={[\n \"component-text\",\n \"text-props\",\n \"spacing-props\",\n \"color-props\",\n ].join(\" \")}\n ref={ref as Ref<HTMLDivElement>}\n {...htmlAttributes}\n {...convertedPropsFiltered}\n />\n )}\n {as === \"span\" && (\n <span\n className={[\n \"component-text\",\n \"text-props\",\n \"spacing-props\",\n \"color-props\",\n ].join(\" \")}\n ref={ref as Ref<HTMLSpanElement>}\n {...htmlAttributes}\n {...convertedPropsFiltered}\n />\n )}\n {as === \"address\" && (\n <address\n className={[\n \"component-text\",\n \"text-props\",\n \"spacing-props\",\n \"color-props\",\n ].join(\" \")}\n ref={ref as Ref<HTMLSpanElement>}\n {...htmlAttributes}\n {...convertedPropsFiltered}\n />\n )}\n </>\n );\n};\n\nexport default Text;\n"],"names":["Text","_a","textColor","backgroundColor","textAlign","textSize","textWeight","textFontFamily","wordBreak","overflowWrap","margin","marginTop","marginRight","marginBottom","marginLeft","marginVertical","marginHorizontal","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingVertical","paddingHorizontal","as","ref","htmlAttributes","__rest","convertedPropsFiltered","removeEmpty","React","createElement","Fragment","__assign","className","join"],"mappings":"yJAUO,IAAMA,EAAO,SAACC,GACnB,IAAAC,EAASD,EAAAC,UACTC,oBACAC,EAASH,EAAAG,UACTC,EAAQJ,EAAAI,SACRC,EAAUL,EAAAK,WACVC,EAAcN,EAAAM,eACdC,cACAC,EAAYR,EAAAQ,aACZC,EAAMT,EAAAS,OACNC,EAASV,EAAAU,UACTC,EAAWX,EAAAW,YACXC,iBACAC,EAAUb,EAAAa,WACVC,EAAcd,EAAAc,eACdC,EAAgBf,EAAAe,iBAChBC,EAAOhB,EAAAgB,QACPC,eACAC,EAAYlB,EAAAkB,aACZC,EAAanB,EAAAmB,cACbC,EAAWpB,EAAAoB,YACXC,EAAerB,EAAAqB,gBACfC,sBACAC,EAAEvB,EAAAuB,GACFC,EAAGxB,EAAAwB,IACAC,EAAcC,EAAA1B,EAzBE,yUA2Db2B,EAAyBC,EAzBR,CACrB,aAAc3B,EACd,gBAAiBC,EACjB,iBAAkBE,EAClB,kBAAmBD,EACnB,mBAAoBE,EACpB,wBAAyBC,EACzB,kBAAmBC,EACnB,qBAAsBC,EACtB,cAAeC,EACf,kBAAmBC,EACnB,oBAAqBC,EACrB,qBAAsBC,EACtB,mBAAoBC,EACpB,uBAAwBC,EACxB,yBAA0BC,EAC1B,eAAgBC,EAChB,mBAAoBC,EACpB,qBAAsBC,EACtB,sBAAuBC,EACvB,oBAAqBC,EACrB,wBAAyBC,EACzB,0BAA2BC,IAK7B,OACEO,EAAAC,cAAAD,EAAAE,SAAA,OACKR,GAAa,MAAPA,IACPM,EAAAC,cAAA,IAAAE,EAAA,CACEC,UAAW,CACT,iBACA,aACA,gBACA,eACAC,KAAK,KACPV,IAAKA,GACDC,EACAE,IAGA,QAAPJ,GACCM,EAAAC,cAAA,MAAAE,EAAA,CACEC,UAAW,CACT,iBACA,aACA,gBACA,eACAC,KAAK,KACPV,IAAKA,GACDC,EACAE,IAGA,SAAPJ,GACCM,EAAAC,cAAA,OAAAE,EAAA,CACEC,UAAW,CACT,iBACA,aACA,gBACA,eACAC,KAAK,KACPV,IAAKA,GACDC,EACAE,IAGA,YAAPJ,GACCM,EAAAC,cAAA,UAAAE,EAAA,CACEC,UAAW,CACT,iBACA,aACA,gBACA,eACAC,KAAK,KACPV,IAAKA,GACDC,EACAE,IAKd"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import React, { type ReactNode, type TextareaHTMLAttributes, type Ref } from "react";
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* TextAreaField lets users enter and edit multiline text.
|
|
4
|
+
*/
|
|
5
|
+
export declare const TextAreaField: ({ errorMessage, hasError, hintText, label, resize, lineCount, ref, ...props }: TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
3
6
|
/** error message text */
|
|
4
7
|
errorMessage?: string;
|
|
5
8
|
/** flag for error styling */
|
|
@@ -14,9 +17,5 @@ export type TextAreaFieldProps = TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
|
14
17
|
lineCount?: number;
|
|
15
18
|
/** react reference to the DOM element sometime used to scroll to or set focus after an error */
|
|
16
19
|
ref?: Ref<HTMLTextAreaElement>;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* TextAreaField lets users enter and edit multiline text.
|
|
20
|
-
*/
|
|
21
|
-
export declare const TextAreaField: ({ errorMessage, hasError, hintText, label, resize, lineCount, ref, ...props }: TextAreaFieldProps) => React.JSX.Element;
|
|
20
|
+
}) => React.JSX.Element;
|
|
22
21
|
export default TextAreaField;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as e,__assign as r}from"../../../node_modules/tslib/tslib.es6.js";import t from"react";import{ErrorText as i}from"../ErrorText/index.js";import{LabelWrapper as a}from"../LabelWrapper/index.js";var o=function(o){var n=o.errorMessage,s=o.hasError,l=o.hintText,d=o.label,m=o.resize,c=void 0===m?"vertical":m,p=o.lineCount,x=void 0===p?3:p,f=o.ref,u=e(o,["errorMessage","hasError","hintText","label","resize","lineCount","ref"]),h=s||!!(null==n?void 0:n.length);return t.createElement(a,{label:d,hintText:l,required:u.required||!1},t.createElement("textarea",r({className:"component-textarea-field"},u,{"aria-invalid":h,"aria-describedby":u.id&&n?"".concat(u.id,"-error"):void 0,style:{resize:c,height:"".concat(1.5*x,"em")},ref:f,"data-hj-suppress":!0})),!!n&&t.createElement(i,{marginTop:"xxs",id:u.id?"".concat(u.id,"-error"):void 0},n))};export{o as TextAreaField,o as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/TextAreaField/index.tsx"],"sourcesContent":["import React, {\n type ReactNode,\n type TextareaHTMLAttributes,\n type Ref,\n} from \"react\";\
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/TextAreaField/index.tsx"],"sourcesContent":["import React, {\n type ReactNode,\n type TextareaHTMLAttributes,\n type Ref,\n} from \"react\";\n\nimport { ErrorText } from \"../ErrorText\";\nimport { LabelWrapper } from \"../LabelWrapper\";\n\n/**\n * TextAreaField lets users enter and edit multiline text.\n */\nexport const TextAreaField = ({\n errorMessage,\n hasError,\n hintText,\n label,\n resize = \"vertical\",\n lineCount = 3,\n ref,\n ...props\n}: TextareaHTMLAttributes<HTMLTextAreaElement> & {\n /** error message text */\n errorMessage?: string;\n /** flag for error styling */\n hasError?: boolean;\n /** hint text */\n hintText?: ReactNode;\n /** label text */\n label: string;\n /** resize behaviour using the resize button on the bottom right of the component */\n resize?: \"both\" | \"vertical\" | \"horizontal\" | \"none\";\n /** number of visible lines of text before scroll is required this affect the height of the input field */\n lineCount?: number;\n /** react reference to the DOM element sometime used to scroll to or set focus after an error */\n ref?: Ref<HTMLTextAreaElement>;\n}) => {\n const invalid = hasError || !!errorMessage?.length;\n return (\n <LabelWrapper\n label={label}\n hintText={hintText}\n required={props.required || false}\n >\n <textarea\n className=\"component-textarea-field\"\n {...props}\n aria-invalid={invalid}\n aria-describedby={\n !!props.id && !!errorMessage ? `${props.id}-error` : undefined\n }\n style={{\n resize: resize,\n height: `${lineCount * 1.5}em`,\n }}\n ref={ref}\n data-hj-suppress\n />\n {!!errorMessage && (\n <ErrorText\n marginTop=\"xxs\"\n id={props.id ? `${props.id}-error` : undefined}\n >\n {errorMessage}\n </ErrorText>\n )}\n </LabelWrapper>\n );\n};\n\nexport default TextAreaField;\n"],"names":["TextAreaField","_a","errorMessage","hasError","hintText","label","_b","resize","_c","lineCount","ref","props","__rest","invalid","length","React","createElement","LabelWrapper","required","__assign","className","id","concat","undefined","style","height","ErrorText","marginTop"],"mappings":"+MAYO,IAAMA,EAAgB,SAACC,GAC5B,IAAAC,EAAYD,EAAAC,aACZC,aACAC,EAAQH,EAAAG,SACRC,EAAKJ,EAAAI,MACLC,EAAAL,EAAAM,OAAAA,OAAM,IAAAD,EAAG,WAAUA,EACnBE,EAAAP,EAAAQ,UAAAA,aAAY,EAACD,EACbE,EAAGT,EAAAS,IACAC,EAAKC,EAAAX,EARoB,2EAyBtBY,EAAUV,MAAcD,aAAY,EAAZA,EAAcY,QAC5C,OACEC,EAAAC,cAACC,GACCZ,MAAOA,EACPD,SAAUA,EACVc,SAAUP,EAAMO,WAAY,GAE5BH,EAAAC,cAAA,WAAAG,EAAA,CACEC,UAAU,4BACNT,EAAK,CAAA,eACKE,EAAO,mBAEjBF,EAAMU,IAAQnB,EAAe,GAAAoB,OAAGX,EAAMU,GAAE,eAAWE,EAEvDC,MAAO,CACLjB,OAAQA,EACRkB,OAAQ,GAAAH,OAAe,IAAZb,EAAe,OAE5BC,IAAKA,EAAG,oBAAA,OAGPR,GACDa,gBAACW,EAAS,CACRC,UAAU,MACVN,GAAIV,EAAMU,GAAK,GAAAC,OAAGX,EAAMU,kBAAaE,GAEpCrB,GAKX"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React, { type InputHTMLAttributes, type ReactNode, type Ref } from "react";
|
|
2
|
+
import { type fontSizes } from "../../types";
|
|
2
3
|
export type TextFieldProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
4
|
+
textSize?: (typeof fontSizes)[number];
|
|
3
5
|
/** error message text */
|
|
4
6
|
errorMessage?: string;
|
|
5
7
|
/** custom component/text that appears underneath the input field */
|
|
@@ -30,5 +32,5 @@ export type TextFieldProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
|
30
32
|
/**
|
|
31
33
|
* TextFields let users enter and edit text. For multiline text entry please consider using the TextAreaFieldComponent.
|
|
32
34
|
* */
|
|
33
|
-
export declare const TextField: ({ errorMessage, extraBottom, extraLeft, extraRight, extraTop, hasError, hintText, isValid, isValidVisible, isInvalidVisible, label, hideRequiredIndicationInLabel, ref, ...props }: TextFieldProps) => React.JSX.Element;
|
|
35
|
+
export declare const TextField: ({ textSize, errorMessage, extraBottom, extraLeft, extraRight, extraTop, hasError, hintText, isValid, isValidVisible, isInvalidVisible, label, hideRequiredIndicationInLabel, ref, ...props }: TextFieldProps) => React.JSX.Element;
|
|
34
36
|
export default TextField;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as e,__assign as
|
|
1
|
+
import{__rest as e,__assign as a}from"../../../node_modules/tslib/tslib.es6.js";import t from"react";import{ErrorText as i}from"../ErrorText/index.js";import{LabelWrapper as r}from"../LabelWrapper/index.js";var l=function(l){var s=l.textSize,n=l.errorMessage,d=l.extraBottom,o=l.extraLeft,m=l.extraRight,c=l.extraTop,p=l.hasError,x=l.hintText,b=l.isValid,v=l.isValidVisible,u=l.isInvalidVisible,h=l.label,E=l.hideRequiredIndicationInLabel,f=l.ref,g=e(l,["textSize","errorMessage","extraBottom","extraLeft","extraRight","extraTop","hasError","hintText","isValid","isValidVisible","isInvalidVisible","label","hideRequiredIndicationInLabel","ref"]),I=void 0!==b?b:!p&&!(null==n?void 0:n.length),N=t.createElement(t.Fragment,null,!!o&&t.createElement("span",{className:["extra","extra-left"].join(" ")},o),t.createElement("span",{className:"input-wrapper","data-is-valid-visible":v||!1,"data-is-invalid-visible":u||!1},t.createElement("input",a({className:"input text-props","aria-invalid":!I,"aria-describedby":g.id&&n?"".concat(g.id,"-error"):void 0,"data-is-valid-visible":v||!1,"data-is-invalid-visible":u||!1,"data-text-size":s},g,{"data-hj-suppress":!0,ref:f}))),!!m&&t.createElement("span",{className:["extra-right","extra"].join(" ")},m));return t.createElement(r,{label:h,hintText:x,required:g.required||!1,hideRequiredIndicationInLabel:E},t.createElement("span",{className:"component-text-field"},!!c&&t.createElement("span",{className:"extra"},c),m||o?t.createElement("span",{className:"extra-wrapper"},N):N,!!d&&t.createElement("span",{className:"extra"},d),!!(null==n?void 0:n.length)&&t.createElement(i,{marginTop:"xxs",id:g.id?"".concat(g.id,"-error"):void 0},n)))};export{l as TextField,l as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/TextField/index.tsx"],"sourcesContent":["import React, {\n type InputHTMLAttributes,\n type ReactNode,\n type Ref,\n} from \"react\";\
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/TextField/index.tsx"],"sourcesContent":["import React, {\n type InputHTMLAttributes,\n type ReactNode,\n type Ref,\n} from \"react\";\n\nimport { ErrorText } from \"../ErrorText\";\nimport { LabelWrapper } from \"../LabelWrapper\";\n\nimport { type fontSizes } from \"../../types\";\n\nexport type TextFieldProps = InputHTMLAttributes<HTMLInputElement> & {\n textSize?: (typeof fontSizes)[number];\n /** error message text */\n errorMessage?: string;\n /** custom component/text that appears underneath the input field */\n extraBottom?: ReactNode;\n /** custom component/text that appears to the left of the input field for example prefixes like \"£\" */\n extraLeft?: ReactNode;\n /** custom component/text that appears to the right of the input field for example a search button */\n extraRight?: ReactNode;\n /** custom component/text that appears above the input field for example a url domain */\n extraTop?: ReactNode;\n /** flag for error styling */\n hasError?: boolean;\n /** flag which controls the whether a cross icon or check icon is displayed to the right of the input field */\n isValid?: boolean;\n /** flag to hide or show the check icon when valid */\n isValidVisible?: boolean;\n /** flag to hide or show the cross icon when invalid */\n isInvalidVisible?: boolean;\n /** hint text */\n hintText?: ReactNode;\n /** label text */\n label: string;\n /** flag to stop (optional) appearing in label, useful for compound form components like DateInput */\n hideRequiredIndicationInLabel?: boolean;\n /** react reference to the DOM element sometime used to scroll to or set focus after an error */\n ref?: Ref<HTMLInputElement>;\n};\n\n/**\n * TextFields let users enter and edit text. For multiline text entry please consider using the TextAreaFieldComponent.\n * */\nexport const TextField = ({\n textSize,\n errorMessage,\n extraBottom,\n extraLeft,\n extraRight,\n extraTop,\n hasError,\n hintText,\n isValid,\n isValidVisible,\n isInvalidVisible,\n label,\n hideRequiredIndicationInLabel,\n ref,\n ...props\n}: TextFieldProps) => {\n const isValidCalculated =\n typeof isValid !== \"undefined\"\n ? isValid\n : !hasError && !errorMessage?.length;\n\n const renderContent = (\n <>\n {!!extraLeft && (\n <span className={[\"extra\", \"extra-left\"].join(\" \")}>{extraLeft}</span>\n )}\n <span\n className=\"input-wrapper\"\n data-is-valid-visible={isValidVisible || false}\n data-is-invalid-visible={isInvalidVisible || false}\n >\n <input\n className=\"input text-props\"\n aria-invalid={!isValidCalculated}\n aria-describedby={\n !!props.id && !!errorMessage ? `${props.id}-error` : undefined\n }\n data-is-valid-visible={isValidVisible || false}\n data-is-invalid-visible={isInvalidVisible || false}\n data-text-size={textSize}\n {...props}\n data-hj-suppress\n ref={ref}\n />\n </span>\n {!!extraRight && (\n <span className={[\"extra-right\", \"extra\"].join(\" \")}>{extraRight}</span>\n )}\n </>\n );\n\n return (\n <LabelWrapper\n label={label}\n hintText={hintText}\n required={props.required || false}\n hideRequiredIndicationInLabel={hideRequiredIndicationInLabel}\n >\n <span className=\"component-text-field\">\n {!!extraTop && <span className=\"extra\">{extraTop}</span>}\n {!!extraRight || !!extraLeft ? (\n <span className=\"extra-wrapper\">{renderContent}</span>\n ) : (\n renderContent\n )}\n {!!extraBottom && <span className=\"extra\">{extraBottom}</span>}\n {!!errorMessage?.length && (\n <ErrorText\n marginTop=\"xxs\"\n id={props.id ? `${props.id}-error` : undefined}\n >\n {errorMessage}\n </ErrorText>\n )}\n </span>\n </LabelWrapper>\n );\n};\n\nexport default TextField;\n"],"names":["TextField","_a","textSize","errorMessage","extraBottom","extraLeft","extraRight","extraTop","hasError","hintText","isValid","isValidVisible","isInvalidVisible","label","hideRequiredIndicationInLabel","ref","props","__rest","isValidCalculated","length","renderContent","React","createElement","Fragment","className","join","__assign","id","undefined","LabelWrapper","required","ErrorText","marginTop"],"mappings":"+MA4CO,IAAMA,EAAY,SAACC,GACxB,IAAAC,aACAC,iBACAC,gBACAC,cACAC,eACAC,aACAC,aACAC,aACAC,YACAC,mBACAC,qBACAC,UACAC,kCACAC,QACGC,EAAKC,EAAAhB,EAfgB,CAAA,WAAA,eAAA,cAAA,YAAA,aAAA,WAAA,WAAA,WAAA,UAAA,iBAAA,mBAAA,QAAA,gCAAA,QAiBlBiB,OACe,IAAZR,EACHA,GACCF,KAAaL,aAAY,EAAZA,EAAcgB,QAE5BC,EACJC,EAAAC,cAAAD,EAAAE,SAAA,OACKlB,GACDgB,wBAAMG,UAAW,CAAC,QAAS,cAAcC,KAAK,MAAOpB,GAEvDgB,EAAAC,cAAA,OAAA,CACEE,UAAU,gBAAe,wBACFb,IAAkB,EAAK,0BACrBC,IAAoB,GAE7CS,EAAAC,cAAA,QAAAI,EAAA,CACEF,UAAU,mBAAkB,gBACbN,EAAiB,mBAE5BF,EAAMW,IAAQxB,EAAe,UAAGa,EAAMW,GAAE,eAAWC,0BAEhCjB,IAAkB,EAAK,0BACrBC,IAAoB,EAAK,iBAClCV,GACZc,yBAEJD,IAAKA,QAGNT,GACDe,wBAAMG,UAAW,CAAC,cAAe,SAASC,KAAK,MAAOnB,IAK5D,OACEe,gBAACQ,EAAY,CACXhB,MAAOA,EACPJ,SAAUA,EACVqB,SAAUd,EAAMc,WAAY,EAC5BhB,8BAA+BA,GAE/BO,EAAAC,cAAA,OAAA,CAAME,UAAU,0BACXjB,GAAYc,EAAAC,cAAA,OAAA,CAAME,UAAU,SAASjB,GACrCD,GAAgBD,EACjBgB,EAAAC,cAAA,OAAA,CAAME,UAAU,iBAAiBJ,GAAqB,IAIrDhB,GAAeiB,EAAAC,cAAA,OAAA,CAAME,UAAU,SAASpB,MACxCD,aAAY,EAAZA,EAAcgB,SACfE,gBAACU,EAAS,CACRC,UAAU,MACVL,GAAIX,EAAMW,GAAK,UAAGX,EAAMW,GAAE,eAAWC,GAEpCzB,IAMb"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import React, { type ReactNode } from "react";
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Think Blue Peter, used to display total raised and if target prop is passed will display percentage of target reached.
|
|
4
|
+
* */
|
|
5
|
+
export declare function Totaliser({ total, additionalAmount, giftAid, target, isCompact, summaryMessage, children, }: {
|
|
3
6
|
/** financial total as a number */
|
|
4
7
|
total: number;
|
|
5
8
|
/** additional donation amount as a number */
|
|
@@ -14,9 +17,5 @@ export type TotaliserProps = {
|
|
|
14
17
|
summaryMessage?: ReactNode;
|
|
15
18
|
/** component children */
|
|
16
19
|
children?: ReactNode;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Think Blue Peter, used to display total raised and if target prop is passed will display tercentage of target reached.
|
|
20
|
-
* */
|
|
21
|
-
export declare function Totaliser({ total, additionalAmount, giftAid, target, isCompact, summaryMessage, children, }: TotaliserProps): React.JSX.Element;
|
|
20
|
+
}): React.JSX.Element;
|
|
22
21
|
export default Totaliser;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"react";import{calculatePercentRounded as a,formatMoneyWithCommas as t}from"../../utils/Helper.js";import{Text as r}from"../Text/index.js";import{Badge as m}from"../Badge/index.js";import{Box as n}from"../Box/index.js";import{ProgressBar as s}from"../ProgressBar/index.js";function l(l){var c=l.total,o=l.additionalAmount,i=l.giftAid,p=l.target,d=void 0===p?null:p,E=l.isCompact,g=l.summaryMessage,u=void 0===g?void 0:g,f=l.children,x=a(+c,d||0),N=a(o?+c+(o||0):0,d||0),v="".concat(x,"% of the £").concat(t(d||0)," target");return e.createElement("div",{className:"component-totaliser"},E?e.createElement(n,{marginHorizontal:"none",marginRight:"xxs",marginBottom:"none"},e.createElement(m,null,"£".concat(t(c)))):e.createElement("div",{className:"bubble-wrapper"},e.createElement("p",{className:"bubble-text"},"Total raised"),e.createElement("p",{className:"total"},"£",t(c)),e.createElement("p",{className:"gift-aid"},"+ £",t(i||0)," Gift Aid")),(!!d||!!u)&&e.createElement(e.Fragment,null,e.createElement("div",{className:"progress-bar-wrapper","data-is-compact":E||!1},e.createElement(s,{percentage:x,secondaryPercentage:N}),E?e.createElement("div",{className:"compact-wrapper"},null!==d&&e.createElement("span",{className:"summary"},e.createElement(r,{as:"span"},v))):u?e.createElement("span",{className:"summary"},u):e.createElement("span",{className:"summary"},e.createElement(r,{as:"span"},v)))),f)}export{l as Totaliser,l as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/Totaliser/index.tsx"],"sourcesContent":["import React, { type ReactNode } from \"react\";\
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/Totaliser/index.tsx"],"sourcesContent":["import React, { type ReactNode } from \"react\";\n\nimport {\n calculatePercentRounded,\n formatMoneyWithCommas,\n} from \"../../utils/Helper\";\n\nimport { Text } from \"../Text\";\nimport { Badge } from \"../Badge\";\nimport { Box } from \"../Box\";\n\nimport { ProgressBar } from \"../ProgressBar\";\n\n// TODO figure out how we want to handle AriaAttributes\n\n/**\n * Think Blue Peter, used to display total raised and if target prop is passed will display percentage of target reached.\n * */\nexport function Totaliser({\n total,\n additionalAmount,\n giftAid,\n target = null,\n isCompact,\n summaryMessage = undefined,\n children,\n}: {\n /** financial total as a number */\n total: number;\n /** additional donation amount as a number */\n additionalAmount?: number;\n /** git aid total as a number */\n giftAid?: number;\n /** money target as a number */\n target?: number | null;\n /** flag for low height compact appearance */\n isCompact?: boolean;\n /** component for custom summary message underneath total graph only visible if there is a target */\n summaryMessage?: ReactNode;\n /** component children */\n children?: ReactNode;\n}) {\n const percentageOfTotal = calculatePercentRounded(+total, target || 0);\n const withAdditionalPercentageOfTotal = calculatePercentRounded(\n additionalAmount ? +total + (additionalAmount || 0) : 0,\n target || 0,\n );\n\n const summaryString = `${percentageOfTotal}% of the £${formatMoneyWithCommas(\n target || 0,\n )} target`;\n\n return (\n <div className=\"component-totaliser\">\n {!isCompact ? (\n <div className=\"bubble-wrapper\">\n <p className=\"bubble-text\">Total raised</p>\n <p className=\"total\">£{formatMoneyWithCommas(total)}</p>\n <p className=\"gift-aid\">\n + £{formatMoneyWithCommas(giftAid || 0)} Gift Aid\n </p>\n </div>\n ) : (\n <Box marginHorizontal=\"none\" marginRight=\"xxs\" marginBottom=\"none\">\n <Badge>{`£${formatMoneyWithCommas(total)}`}</Badge>\n </Box>\n )}\n {/* We don't want to show the default summaryMessage if there is no target, because the summary is associated with the target progress bar */}\n {/* However, if we explicitly pass a summaryMessage string/component, then we want to always display it even if the target is zero */}\n\n {(!!target || !!summaryMessage) && (\n <>\n <div\n className=\"progress-bar-wrapper\"\n data-is-compact={isCompact || false}\n >\n <ProgressBar\n percentage={percentageOfTotal}\n secondaryPercentage={withAdditionalPercentageOfTotal}\n />\n {!isCompact ? (\n summaryMessage ? (\n <span className=\"summary\">{summaryMessage}</span>\n ) : (\n <span className=\"summary\">\n <Text as=\"span\">{summaryString}</Text>\n </span>\n )\n ) : (\n <div className=\"compact-wrapper\">\n {target !== null && (\n <span className=\"summary\">\n <Text as=\"span\">{summaryString}</Text>\n </span>\n )}\n </div>\n )}\n </div>\n </>\n )}\n {children}\n </div>\n );\n}\n\nexport default Totaliser;\n"],"names":["Totaliser","_a","total","additionalAmount","giftAid","_b","target","isCompact","_c","summaryMessage","undefined","children","percentageOfTotal","calculatePercentRounded","withAdditionalPercentageOfTotal","summaryString","concat","formatMoneyWithCommas","React","createElement","className","Box","marginHorizontal","marginRight","marginBottom","Badge","Fragment","ProgressBar","percentage","secondaryPercentage","Text","as"],"mappings":"8RAkBM,SAAUA,EAAUC,OACxBC,EAAKD,EAAAC,MACLC,EAAgBF,EAAAE,iBAChBC,EAAOH,EAAAG,QACPC,EAAAJ,EAAAK,OAAAA,OAAM,IAAAD,EAAG,OACTE,EAASN,EAAAM,UACTC,EAAAP,EAAAQ,eAAAA,OAAc,IAAAD,OAAGE,EAASF,EAC1BG,EAAQV,EAAAU,SAiBFC,EAAoBC,GAAyBX,EAAOI,GAAU,GAC9DQ,EAAkCD,EACtCV,GAAoBD,GAASC,GAAoB,GAAK,EACtDG,GAAU,GAGNS,EAAgB,GAAAC,OAAGJ,EAAiB,cAAAI,OAAaC,EACrDX,GAAU,GACX,WAED,OACEY,EAAAC,cAAA,MAAA,CAAKC,UAAU,uBACXb,EASAW,EAAAC,cAACE,EAAG,CAACC,iBAAiB,OAAOC,YAAY,MAAMC,aAAa,QAC1DN,EAAAC,cAACM,EAAK,KAAE,IAAAT,OAAIC,EAAsBf,MATpCgB,EAAAC,cAAA,MAAA,CAAKC,UAAU,kBACbF,EAAAC,cAAA,IAAA,CAAGC,UAAU,eAAa,gBAC1BF,EAAAC,cAAA,IAAA,CAAGC,UAAU,aAAUH,EAAsBf,IAC7CgB,EAAAC,cAAA,IAAA,CAAGC,UAAU,kBACPH,EAAsBb,GAAW,GACnC,iBAUJE,KAAYG,IACdS,EAAAC,cAAAD,EAAAQ,SAAA,KACER,EAAAC,cAAA,MAAA,CACEC,UAAU,uBAAsB,kBACfb,IAAa,GAE9BW,EAAAC,cAACQ,GACCC,WAAYhB,EACZiB,oBAAqBf,IAErBP,EASAW,EAAAC,cAAA,MAAA,CAAKC,UAAU,mBACD,OAAXd,GACCY,EAAAC,cAAA,OAAA,CAAMC,UAAU,WACdF,EAAAC,cAACW,EAAI,CAACC,GAAG,QAAQhB,KAXvBN,EACES,EAAAC,cAAA,OAAA,CAAMC,UAAU,WAAWX,GAE3BS,EAAAC,cAAA,OAAA,CAAMC,UAAU,WACdF,EAAAC,cAACW,EAAI,CAACC,GAAG,QAAQhB,MAe5BJ,EAGP"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { type ReactNode, type HTMLAttributes } from "react";
|
|
2
|
+
import { type ThemeNameType } from "../../types";
|
|
2
3
|
export type UserBlockProps = HTMLAttributes<HTMLElement> & {
|
|
3
4
|
/** name component or text */
|
|
4
5
|
name?: ReactNode;
|
|
@@ -10,9 +11,10 @@ export type UserBlockProps = HTMLAttributes<HTMLElement> & {
|
|
|
10
11
|
extra?: ReactNode;
|
|
11
12
|
/** size of avatar component */
|
|
12
13
|
size?: "s" | "m" | "l" | "xl";
|
|
14
|
+
themeName: ThemeNameType;
|
|
13
15
|
};
|
|
14
16
|
/**
|
|
15
17
|
* Display an avatar with title and subtitle
|
|
16
18
|
*/
|
|
17
|
-
export declare function UserBlock({ name, avatarName, avatarUrl, extra, size, }: UserBlockProps): React.JSX.Element;
|
|
19
|
+
export declare function UserBlock({ name, avatarName, avatarUrl, extra, size, themeName, }: UserBlockProps): React.JSX.Element;
|
|
18
20
|
export default UserBlock;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"react";import{Avatar as a}from"../Avatar/index.js";function t(t){var m=t.name,r=t.avatarName,n=t.avatarUrl,o=t.extra,s=t.size,l=void 0===s?"l":s,c=t.themeName,i=void 0===c?"cruk":c;return e.createElement("div",{className:"component-user-block"},e.createElement(a,{name:r||("string"==typeof m?m:"Anonymous"),url:n||void 0,size:l,themeName:i}),e.createElement("div",{className:"details"},e.createElement("p",{className:"name"},m||"Anonymous"),!!o&&e.createElement("p",{className:"extra"},o)))}export{t as UserBlock,t as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/UserBlock/index.tsx"],"sourcesContent":["import React, { type ReactNode, type HTMLAttributes } from \"react\";\
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/UserBlock/index.tsx"],"sourcesContent":["import React, { type ReactNode, type HTMLAttributes } from \"react\";\n\nimport { Avatar } from \"../Avatar\";\n\nimport { type ThemeNameType } from \"../../types\";\n\nexport type UserBlockProps = HTMLAttributes<HTMLElement> & {\n /** name component or text */\n name?: ReactNode;\n /** string name used in avatar component */\n avatarName?: string | null;\n /** avatar image url */\n avatarUrl?: string | null;\n /** extra content component appears underneath name */\n extra?: ReactNode;\n /** size of avatar component */\n size?: \"s\" | \"m\" | \"l\" | \"xl\";\n themeName: ThemeNameType;\n};\n\n/**\n * Display an avatar with title and subtitle\n */\nexport function UserBlock({\n name,\n avatarName,\n avatarUrl,\n extra,\n size = \"l\",\n themeName = \"cruk\",\n}: UserBlockProps) {\n // name is a reserved html prop so we make sure we don't pass it into the styled component\n // or it will end up in the markup\n return (\n <div className=\"component-user-block\">\n <Avatar\n name={avatarName || (typeof name === \"string\" ? name : \"Anonymous\")}\n url={avatarUrl || undefined}\n size={size}\n themeName={themeName}\n />\n <div className=\"details\">\n <p className=\"name\">{name || \"Anonymous\"}</p>\n {!!extra && <p className=\"extra\">{extra}</p>}\n </div>\n </div>\n );\n}\n\nexport default UserBlock;\n"],"names":["UserBlock","_a","name","avatarName","avatarUrl","extra","_b","size","_c","themeName","React","createElement","className","Avatar","url","undefined"],"mappings":"iEAuBM,SAAUA,EAAUC,OACxBC,EAAID,EAAAC,KACJC,EAAUF,EAAAE,WACVC,EAASH,EAAAG,UACTC,EAAKJ,EAAAI,MACLC,SAAAC,OAAI,IAAAD,EAAG,IAAGA,EACVE,cAAAC,OAAS,IAAAD,EAAG,OAAMA,EAIlB,OACEE,EAAAC,cAAA,MAAA,CAAKC,UAAU,wBACbF,EAAAC,cAACE,EAAM,CACLX,KAAMC,IAA+B,iBAATD,EAAoBA,EAAO,aACvDY,IAAKV,QAAaW,EAClBR,KAAMA,EACNE,UAAWA,IAEbC,EAAAC,cAAA,MAAA,CAAKC,UAAU,WACbF,EAAAC,cAAA,IAAA,CAAGC,UAAU,QAAQV,GAAQ,eAC1BG,GAASK,EAAAC,cAAA,IAAA,CAAGC,UAAU,SAASP,IAI1C"}
|
|
@@ -1,42 +1,66 @@
|
|
|
1
|
+
import "./global-styles.css";
|
|
1
2
|
export { AddressLookup } from "./AddressLookup";
|
|
3
|
+
import "./AddressLookup/styles.css";
|
|
2
4
|
export { Avatar } from "./Avatar";
|
|
5
|
+
import "./Avatar/styles.css";
|
|
3
6
|
export { Badge } from "./Badge";
|
|
7
|
+
import "./Badge/styles.css";
|
|
4
8
|
export { Box } from "./Box";
|
|
9
|
+
import "./Box/styles.css";
|
|
5
10
|
export { Button } from "./Button";
|
|
11
|
+
import "./Button/styles.css";
|
|
6
12
|
export { Carousel } from "./Carousel";
|
|
13
|
+
import "./Carousel/styles.css";
|
|
7
14
|
export { Checkbox } from "./Checkbox";
|
|
15
|
+
import "./Checkbox/styles.css";
|
|
8
16
|
export { Collapse } from "./Collapse";
|
|
17
|
+
import "./Collapse/styles.css";
|
|
9
18
|
export { DateField } from "./DateField";
|
|
10
|
-
|
|
19
|
+
import "./DateField/styles.css";
|
|
11
20
|
export { ErrorText } from "./ErrorText";
|
|
12
|
-
|
|
13
|
-
export { Flex } from "./Flex";
|
|
21
|
+
import "./ErrorText/styles.css";
|
|
14
22
|
export { Footer } from "./Footer";
|
|
15
|
-
|
|
16
|
-
export { GlobalStyleNoFontFace } from "./GlobalStyleNoFontFace";
|
|
23
|
+
import "./Footer/styles.css";
|
|
17
24
|
export { Header } from "./Header";
|
|
25
|
+
import "./Header/styles.css";
|
|
18
26
|
export { Heading } from "./Heading";
|
|
27
|
+
import "./Heading/styles.css";
|
|
19
28
|
export { IconFa } from "./IconFa";
|
|
29
|
+
import "./IconFa/styles.css";
|
|
30
|
+
export { InfoBox } from "./InfoBox";
|
|
31
|
+
import "./InfoBox/styles.css";
|
|
20
32
|
export { LabelWrapper } from "./LabelWrapper";
|
|
33
|
+
import "./LabelWrapper/styles.css";
|
|
21
34
|
export { LegendWrapper } from "./LegendWrapper";
|
|
35
|
+
import "./LegendWrapper/styles.css";
|
|
22
36
|
export { Link } from "./Link";
|
|
37
|
+
import "./Link/styles.css";
|
|
23
38
|
export { Loader } from "./Loader";
|
|
39
|
+
import "./Loader/styles.css";
|
|
24
40
|
export { Modal } from "./Modal";
|
|
41
|
+
import "./Modal/styles.css";
|
|
25
42
|
export { Pagination } from "./Pagination";
|
|
43
|
+
import "./Pagination/styles.css";
|
|
26
44
|
export { PopOver } from "./PopOver";
|
|
45
|
+
import "./PopOver/styles.css";
|
|
27
46
|
export { ProgressBar } from "./ProgressBar";
|
|
47
|
+
import "./ProgressBar/styles.css";
|
|
28
48
|
export { Radio } from "./Radio";
|
|
49
|
+
import "./Radio/styles.css";
|
|
29
50
|
export { RadioConsent } from "./RadioConsent";
|
|
51
|
+
import "./RadioConsent/styles.css";
|
|
30
52
|
export { Select } from "./Select";
|
|
53
|
+
import "./Select/styles.css";
|
|
31
54
|
export { Step } from "./Step";
|
|
55
|
+
import "./Step/styles.css";
|
|
32
56
|
export { Text } from "./Text";
|
|
57
|
+
import "./Text/styles.css";
|
|
33
58
|
export { TextAreaField } from "./TextAreaField";
|
|
59
|
+
import "./TextAreaField/styles.css";
|
|
34
60
|
export { TextField } from "./TextField";
|
|
61
|
+
import "./TextField/styles.css";
|
|
35
62
|
export { Totaliser } from "./Totaliser";
|
|
63
|
+
import "./Totaliser/styles.css";
|
|
36
64
|
export { UserBlock } from "./UserBlock";
|
|
37
|
-
|
|
38
|
-
export { bowelbabeTheme } from "../themes/bowelbabe";
|
|
39
|
-
export { crukTheme } from "../themes/cruk";
|
|
40
|
-
export { su2cTheme } from "../themes/su2c";
|
|
41
|
-
export { rflTheme } from "../themes/rfl";
|
|
65
|
+
import "./UserBlock/styles.css";
|
|
42
66
|
export * from "../types";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{AddressLookup}from"./AddressLookup/index.js";export{Avatar}from"./Avatar/index.js";export{Badge}from"./Badge/index.js";export{Box}from"./Box/index.js";export{Button}from"./Button/index.js";export{Carousel}from"./Carousel/index.js";export{Checkbox}from"./Checkbox/index.js";export{Collapse}from"./Collapse/index.js";export{DateField}from"./DateField/index.js";export{
|
|
1
|
+
export{AddressLookup}from"./AddressLookup/index.js";export{Avatar}from"./Avatar/index.js";export{Badge}from"./Badge/index.js";export{Box}from"./Box/index.js";export{Button}from"./Button/index.js";export{Carousel}from"./Carousel/index.js";export{Checkbox}from"./Checkbox/index.js";export{Collapse}from"./Collapse/index.js";export{DateField}from"./DateField/index.js";export{ErrorText}from"./ErrorText/index.js";export{Footer}from"./Footer/index.js";export{Header}from"./Header/index.js";export{Heading}from"./Heading/index.js";export{IconFa}from"./IconFa/index.js";export{InfoBox}from"./InfoBox/index.js";export{LabelWrapper}from"./LabelWrapper/index.js";export{LegendWrapper}from"./LegendWrapper/index.js";export{Link}from"./Link/index.js";export{Loader}from"./Loader/index.js";export{Modal}from"./Modal/index.js";export{Pagination}from"./Pagination/index.js";export{PopOver}from"./PopOver/index.js";export{ProgressBar}from"./ProgressBar/index.js";export{Radio}from"./Radio/index.js";export{RadioConsent}from"./RadioConsent/index.js";export{Select}from"./Select/index.js";export{Step}from"./Step/index.js";export{Text}from"./Text/index.js";export{TextAreaField}from"./TextAreaField/index.js";export{TextField}from"./TextField/index.js";export{Totaliser}from"./Totaliser/index.js";export{UserBlock}from"./UserBlock/index.js";export{colours,fontAligns,fontFamilyStyles,fontSizes,fontWeights,overflowWraps,spaces,themeNames,wordBreaks}from"../types.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|