@cruk/cruk-react-components 1.0.11 → 1.1.2
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/cjs/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
- package/lib/cjs/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -1
- package/lib/cjs/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -1
- package/lib/cjs/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -1
- package/lib/cjs/node_modules/@fortawesome/free-solid-svg-icons/index.es.js +8 -0
- package/lib/cjs/node_modules/@fortawesome/free-solid-svg-icons/index.es.js.map +1 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/constants.js +1 -1
- package/lib/cjs/node_modules/focus-lock/dist/es2015/constants.js.map +1 -1
- package/lib/cjs/node_modules/focus-lock/dist/es2015/focusInside.js +1 -1
- package/lib/cjs/node_modules/focus-lock/dist/es2015/focusInside.js.map +1 -1
- package/lib/cjs/node_modules/focus-lock/dist/es2015/focusIsHidden.js +1 -1
- package/lib/cjs/node_modules/focus-lock/dist/es2015/focusIsHidden.js.map +1 -1
- package/lib/cjs/node_modules/focus-lock/dist/es2015/focusMerge.js +1 -1
- package/lib/cjs/node_modules/focus-lock/dist/es2015/focusMerge.js.map +1 -1
- package/lib/cjs/node_modules/focus-lock/dist/es2015/focusables.js.map +1 -1
- package/lib/cjs/node_modules/focus-lock/dist/es2015/index.js.map +1 -1
- package/lib/cjs/node_modules/focus-lock/dist/es2015/setFocus.js.map +1 -1
- package/lib/cjs/node_modules/focus-lock/dist/es2015/solver.js.map +1 -1
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/DOMutils.js +1 -1
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/DOMutils.js.map +1 -1
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/all-affected.js.map +1 -1
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/array.js.map +1 -1
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/correctFocus.js.map +1 -1
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/getActiveElement.js +1 -1
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/getActiveElement.js.map +1 -1
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/is.js +1 -1
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/is.js.map +1 -1
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/parenting.js +1 -1
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/parenting.js.map +1 -1
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/tabUtils.js +1 -1
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/tabUtils.js.map +1 -1
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/tabbables.js.map +1 -1
- package/lib/cjs/node_modules/react-focus-lock/dist/es2015/Trap.js.map +1 -1
- package/lib/cjs/node_modules/react-intersection-observer/react-intersection-observer.modern.mjs.js +2 -0
- package/lib/cjs/node_modules/react-intersection-observer/react-intersection-observer.modern.mjs.js.map +1 -0
- package/lib/cjs/node_modules/tslib/tslib.es6.js +1 -16
- package/lib/cjs/node_modules/tslib/tslib.es6.js.map +1 -1
- package/lib/cjs/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +1 -1
- package/lib/cjs/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -1
- package/lib/cjs/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -1
- package/lib/cjs/node_modules/use-sidecar/dist/es2015/medium.js +1 -1
- package/lib/cjs/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -1
- package/lib/cjs/src/components/AddressLookup/index.js +1 -1
- package/lib/cjs/src/components/Avatar/index.js +1 -1
- package/lib/cjs/src/components/Button/index.js +1 -1
- package/lib/cjs/src/components/Carousel/index.js +1 -1
- package/lib/cjs/src/components/Checkbox/index.js +1 -1
- package/lib/cjs/src/components/Checkbox/styles.js +1 -1
- package/lib/cjs/src/components/Collapse/index.js +1 -1
- package/lib/cjs/src/components/Collapse/styles.js +1 -1
- package/lib/cjs/src/components/GlobalStyle.js +1 -1
- package/lib/cjs/src/components/Icon/README.md.js +1 -1
- package/lib/cjs/src/components/Icon/README.md.js.map +1 -1
- package/lib/cjs/src/components/IconFa/README.md.js +2 -0
- package/lib/cjs/src/components/IconFa/README.md.js.map +1 -0
- package/lib/cjs/src/components/IconFa/index.js +2 -0
- package/lib/cjs/src/components/IconFa/index.js.map +1 -0
- package/lib/cjs/src/components/IconFa/styles.js +2 -0
- package/lib/cjs/src/components/IconFa/styles.js.map +1 -0
- package/lib/cjs/src/components/Link/README.md.js +1 -1
- package/lib/cjs/src/components/Link/README.md.js.map +1 -1
- package/lib/cjs/src/components/Link/index.js +1 -1
- package/lib/cjs/src/components/Link/styles.js +1 -1
- package/lib/cjs/src/components/Modal/index.js +1 -1
- package/lib/cjs/src/components/index.js +1 -1
- package/lib/cjs/src/themes/cruk.js +1 -1
- package/lib/cjs/src/themes/su2c.js +1 -1
- package/lib/components/AddressLookup/{test.cypress.d.ts → AddressLookUp.test.cypress.d.ts} +0 -0
- package/lib/components/Avatar/{test.cypress.d.ts → Avatar.test.cypress.d.ts} +0 -0
- package/lib/components/Avatar/index.d.ts +2 -2
- package/lib/components/Badge/{test.cypress.d.ts → Badge.test.cypress.d.ts} +0 -0
- package/lib/components/Box/{test.cypress.d.ts → Box.test.cypress.d.ts} +0 -0
- package/lib/components/Button/{test.cypress.d.ts → Button.test.cypress.d.ts} +0 -0
- package/lib/components/Carousel/{test.cypress.d.ts → Carousel.test.cypress.d.ts} +0 -0
- package/lib/components/Checkbox/{test.cypress.d.ts → CheckBox.test.cypress.d.ts} +0 -0
- package/lib/components/Checkbox/styles.d.ts +0 -1
- package/lib/components/Collapse/{test.cypress.d.ts → Collapse.test.cypress.d.ts} +0 -0
- package/lib/components/Collapse/index.d.ts +4 -2
- package/lib/components/Collapse/styles.d.ts +1 -1
- package/lib/components/DateField/{test.cypress.d.ts → DateField.test.cypress.d.ts} +0 -0
- package/lib/components/DateField/index.d.ts +2 -2
- package/lib/components/ErrorText/{test.cypress.d.ts → ErrorText.test.cypress.d.ts} +0 -0
- package/lib/components/Footer/{test.cypress.d.ts → Footer.test.cypress.d.ts} +0 -0
- package/lib/components/Header/{test.cypress.d.ts → Header.test.cypress.d.ts} +0 -0
- package/lib/components/Heading/{test.cypress.d.ts → Heading.test.cypress.d.ts} +0 -0
- package/lib/components/Icon/{test.cypress.d.ts → Icon.test.cypress.d.ts} +0 -0
- package/lib/components/Icon/index.d.ts +1 -1
- package/lib/components/IconFa/IconFa.stories.d.ts +6 -0
- package/lib/components/{LegendWrapper/test.cypress.d.ts → IconFa/IconFa.test.cypress.d.ts} +0 -0
- package/lib/components/IconFa/index.d.ts +17 -0
- package/lib/components/IconFa/styles.d.ts +5 -0
- package/lib/components/{Link/test.cypress.d.ts → LegendWrapper/LegendWrapper.test.cypress.d.ts} +0 -0
- package/lib/components/{Loader/test.cypress.d.ts → Link/Link.test.cypress.d.ts} +0 -0
- package/lib/components/Link/styles.d.ts +1 -1
- package/lib/components/{Modal/test.cypress.d.ts → Loader/Loader.test.cypress.d.ts} +0 -0
- package/lib/components/{Pagination/test.cypress.d.ts → Modal/Modal.test.cypress.d.ts} +0 -0
- package/lib/components/{PopOver/test.cypress.d.ts → Pagination/Pagination.test.cypress.d.ts} +0 -0
- package/lib/components/{ProgressBar/test.cypress.d.ts → PopOver/PopOver.test.cypress.d.ts} +0 -0
- package/lib/components/{Radio/test.cypress.d.ts → ProgressBar/ProgressBar.test.cypress.d.ts} +0 -0
- package/lib/components/{RadioConsent/test.cypress.d.ts → Radio/Radio.test.cypress.d.ts} +0 -0
- package/lib/components/{Select/test.cypress.d.ts → RadioConsent/RadioConsent.test.cypress.d.ts} +0 -0
- package/lib/components/{Step/test.cypress.d.ts → Select/Select.test.cypress.d.ts} +0 -0
- package/lib/components/{Text/test.cypress.d.ts → Step/Step.test.cypress.d.ts} +0 -0
- package/lib/components/{TextAreaField/test.cypress.d.ts → Text/Text.test.cypress.d.ts} +0 -0
- package/lib/components/{TextField/test.cypress.d.ts → TextAreaField/TextAreaField.test.cypress.d.ts} +0 -0
- package/lib/components/{Totaliser/test.cypress.d.ts → TextField/TextField.test.cypress.d.ts} +0 -0
- package/lib/components/{UserBlock/test.cypress.d.ts → Totaliser/Totaliser.test.cypress.d.ts} +0 -0
- package/lib/components/UserBlock/UserBlock.test.cypress.d.ts +1 -0
- package/lib/components/index.d.ts +2 -0
- package/lib/es/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
- package/lib/es/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -1
- package/lib/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -1
- package/lib/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -1
- package/lib/es/node_modules/@fortawesome/free-solid-svg-icons/index.es.js +7 -0
- package/lib/es/node_modules/@fortawesome/free-solid-svg-icons/index.es.js.map +1 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/constants.js +1 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/constants.js.map +1 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/focusInside.js +1 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/focusInside.js.map +1 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/focusIsHidden.js +1 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/focusIsHidden.js.map +1 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/focusMerge.js +1 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/focusMerge.js.map +1 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/focusables.js.map +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/setFocus.js.map +1 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/solver.js.map +1 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/DOMutils.js +1 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/DOMutils.js.map +1 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/all-affected.js.map +1 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/array.js.map +1 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/correctFocus.js.map +1 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/getActiveElement.js +1 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/getActiveElement.js.map +1 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/is.js +1 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/is.js.map +1 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/parenting.js +1 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/parenting.js.map +1 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/tabUtils.js +1 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/tabUtils.js.map +1 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/tabbables.js.map +1 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/Trap.js.map +1 -1
- package/lib/es/node_modules/react-intersection-observer/react-intersection-observer.modern.mjs.js +2 -0
- package/lib/es/node_modules/react-intersection-observer/react-intersection-observer.modern.mjs.js.map +1 -0
- package/lib/es/node_modules/tslib/tslib.es6.js +0 -14
- package/lib/es/node_modules/tslib/tslib.es6.js.map +1 -1
- package/lib/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +1 -1
- package/lib/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -1
- package/lib/es/node_modules/use-callback-ref/dist/es2015/useRef.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/Avatar/index.js +1 -1
- package/lib/es/src/components/Button/index.js +1 -1
- package/lib/es/src/components/Carousel/index.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/GlobalStyle.js +1 -1
- package/lib/es/src/components/Icon/README.md.js +1 -1
- package/lib/es/src/components/Icon/README.md.js.map +1 -1
- package/lib/es/src/components/IconFa/README.md.js +2 -0
- package/lib/es/src/components/IconFa/README.md.js.map +1 -0
- package/lib/es/src/components/IconFa/index.js +2 -0
- package/lib/es/src/components/IconFa/index.js.map +1 -0
- package/lib/es/src/components/IconFa/styles.js +2 -0
- package/lib/es/src/components/IconFa/styles.js.map +1 -0
- package/lib/es/src/components/Link/README.md.js +1 -1
- package/lib/es/src/components/Link/README.md.js.map +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/Modal/index.js +1 -1
- package/lib/es/src/components/index.js +1 -1
- package/lib/es/src/themes/cruk.js +1 -1
- package/lib/es/src/themes/su2c.js +1 -1
- package/lib/hooks/useKey.d.ts +1 -1
- package/lib/types.d.ts +2 -1
- package/lib/utils/Helper.d.ts +1 -1
- package/package.json +40 -36
- package/lib/cjs/node_modules/react-intersection-observer/react-intersection-observer.m.js +0 -2
- package/lib/cjs/node_modules/react-intersection-observer/react-intersection-observer.m.js.map +0 -1
- package/lib/cjs/node_modules/use-sidecar/node_modules/tslib/tslib.es6.js +0 -17
- package/lib/cjs/node_modules/use-sidecar/node_modules/tslib/tslib.es6.js.map +0 -1
- package/lib/es/node_modules/react-intersection-observer/react-intersection-observer.m.js +0 -2
- package/lib/es/node_modules/react-intersection-observer/react-intersection-observer.m.js.map +0 -1
- package/lib/es/node_modules/use-sidecar/node_modules/tslib/tslib.es6.js +0 -16
- package/lib/es/node_modules/use-sidecar/node_modules/tslib/tslib.es6.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../node_modules/tslib/tslib.es6.js"),r=require("./cruk.js"),a=e.__assign(e.__assign({},r.default.utilities),{useBackgroundStyleLinks:!0}),t=e.__assign(e.__assign({},r.default.siteConfig),{logoSrc:"https://
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../node_modules/tslib/tslib.es6.js"),r=require("./cruk.js"),a=e.__assign(e.__assign({},r.default.utilities),{useBackgroundStyleLinks:!0}),t=e.__assign(e.__assign({},r.default.siteConfig),{logoSrc:"https://rcl.assets.cancerresearchuk.org/images/logos/su2c-160.png",footerCopyText:"Stand Up To Cancer and Stand Up To Cancer Brand Marks are registered trademarks of the Entertainment Industry Foundation. Cancer Research UK is a registered charity in England and Wales (1089464), Scotland(SC041666), the Isle of Man (1103) and Jersey (247). A company limited by guarantee. Registered company in England and Wales (4325234) and the Isle of Man (5713F). Registered address: 2 Redman Place, London, E20 1JQ. Donations will be made to Cancer Research UK in support of the Stand Up To Cancer campaign."}),s=e.__assign(e.__assign({},r.default.avatar),{path:"".concat(t.assetPath,"images/avatar/su2c/")}),o=e.__assign(e.__assign({},r.default.button),{borderRadius:"1.5rem",borderRadiusLarge:"2rem",textTransform:"uppercase"}),n=e.__assign({},r.default.breakpoint),c=e.__assign(e.__assign({},r.default.tokenColors),{su2cOrange5:"#FF8E00",su2cOrange3:"#FFB04D",su2cOrange2:"#FFDAAD",su2cOrange1:"#FFF6EB",su2cBlack:"#231F20",su2cGrey1:"#555759",su2cGrey2:"#A5A5A9",su2cRed:"#EF4135",su2cYellow:"#FFC325"}),i=e.__assign(e.__assign({},r.default.colors),{primary:c.su2cOrange5,secondary:c.su2cOrange5,tertiary:c.su2cBlack,textOnPrimary:c.su2cBlack,progressBar:c.su2cOrange5,progressBarSecondary:c.su2cRed,circularProgress:c.su2cOrange3,circularProgressSecondary:c.su2cRed,linkColor:c.su2cOrange5,linkColorHover:c.su2cRed,backgroundLightColor:c.su2cOrange2,loaderColor1:c.su2cOrange5,loaderColor2:c.su2cRed,loaderColor3:c.su2cBlack,paginationText:c.su2cBlack,paginationBackground:c.su2cBlack,totaliserBubbleColor:c.su2cBlack,totaliserBubbleTextColor:c.white,totaliserBubbleTotalColor:c.white,buttonPrimaryBackground:c.su2cOrange5,buttonPrimaryText:c.su2cBlack,buttonPrimaryBorder:c.su2cOrange5,buttonPrimaryBackgroundHover:c.su2cOrange3,buttonPrimaryTextHover:c.su2cBlack,buttonPrimaryBorderHover:c.su2cOrange3,buttonPrimaryDisabledBackground:c.grey_300,buttonPrimaryDisabledText:c.white,buttonPrimaryDisabledBorder:c.grey_300,buttonSecondaryBackground:c.white,buttonSecondaryText:c.su2cOrange5,buttonSecondaryBorder:c.su2cOrange5,buttonSecondaryBackgroundHover:c.su2cOrange1,buttonSecondaryTextHover:c.su2cOrange5,buttonSecondaryBorderHover:c.su2cOrange5,buttonSecondaryDisabledBackground:c.white,buttonSecondaryDisabledText:c.grey_300,buttonSecondaryDisabledBorder:c.grey_300,buttonTertiaryText:c.su2cOrange5,buttonTertiaryTextHover:c.su2cOrange5,buttonTertiaryDisabledText:c.grey_300}),u=e.__assign({},r.default.spacing),d=e.__assign({},r.default.fontSizes),g=e.__assign(e.__assign({},r.default.typography),{customFonts:[{family:"itc_avant_garde_pro_mdbold",urlWoff:"".concat(t.assetPath,"fonts/itc_-_itcavantgardepro-bold-webfont.woff")}],fontFamilyHeadings:"itc_avant_garde_pro_mdbold,Arial,sans-serif",linkTextDecoration:"none",headerLineHeight:"1.5em",headerTextTransform:"uppercase"}),l={name:"su2c",avatar:s,breakpoint:n,button:o,tokenColors:c,colors:i,spacing:u,fontSizes:d,siteConfig:t,typography:g,utilities:a};exports.AVATAR=s,exports.BREAKPOINT=n,exports.BUTTON=o,exports.COLORS=i,exports.FONT_SIZES=d,exports.SITE_CONFIG=t,exports.SPACING=u,exports.TOKEN_COLORS=c,exports.TYPOGRAPHY=g,exports.UTILITIES=a,exports.default=l;
|
|
2
2
|
//# sourceMappingURL=su2c.js.map
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ImgHTMLAttributes } from "react";
|
|
2
2
|
export declare type AvatarProps = ImgHTMLAttributes<HTMLElement> & {
|
|
3
3
|
/** name of user/entity */
|
|
4
4
|
name?: string;
|
|
@@ -11,5 +11,5 @@ export declare type AvatarProps = ImgHTMLAttributes<HTMLElement> & {
|
|
|
11
11
|
*
|
|
12
12
|
* You can use an avatar to display ownership of an item of content. If you pass a URL of an image that will be displayed otherwise the first letter of the name will be used to display a branded avatar.
|
|
13
13
|
*/
|
|
14
|
-
declare const Avatar:
|
|
14
|
+
declare const Avatar: ({ url, name, size, alt, ...rest }: AvatarProps) => JSX.Element;
|
|
15
15
|
export default Avatar;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -7,7 +7,6 @@ declare type StyledLabelProps = {
|
|
|
7
7
|
};
|
|
8
8
|
export declare const CheckWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
9
|
export declare const Check: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
10
|
-
export declare const CheckGlyph: import("styled-components").StyledComponent<"svg", any, {}, never>;
|
|
11
10
|
export declare const StyledLabel: import("styled-components").StyledComponent<"label", any, StyledLabelProps, never>;
|
|
12
11
|
export declare const SelectedBorder: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
12
|
export declare const StyledInput: import("styled-components").StyledComponent<"input", any, {}, never>;
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode, HTMLAttributes } from "react";
|
|
2
2
|
import { FontSizeType } from "../../types";
|
|
3
3
|
export declare type CollapseProps = HTMLAttributes<HTMLElement> & {
|
|
4
4
|
/** id is required for a11y reasons as we use aria attributes which depends on an id */
|
|
@@ -17,11 +17,13 @@ export declare type CollapseProps = HTMLAttributes<HTMLElement> & {
|
|
|
17
17
|
startOpen?: boolean;
|
|
18
18
|
/** callback function that is passed isOpen flag */
|
|
19
19
|
onOpenChange?: (isOpen: boolean) => void;
|
|
20
|
+
/** children */
|
|
21
|
+
children?: ReactNode;
|
|
20
22
|
};
|
|
21
23
|
/**
|
|
22
24
|
*
|
|
23
25
|
* Use a collapse component to show and hide content. It has a default view; however, it can be overwritten by passing a custom component as a prop.
|
|
24
26
|
*
|
|
25
27
|
*/
|
|
26
|
-
declare const Collapse:
|
|
28
|
+
declare const Collapse: ({ id, headerTitleText, headerTitleTextColor, headerTitleTextSize, headerTitleTextFontFamily, headerComponent, startOpen, onOpenChange, children, }: CollapseProps) => JSX.Element;
|
|
27
29
|
export default Collapse;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { FontSizeType } from "../../types";
|
|
3
3
|
export declare const transitionDurationSeconds = 0.5;
|
|
4
|
-
export declare const FlippingIcon: import("styled-components").StyledComponent<
|
|
4
|
+
export declare const FlippingIcon: import("styled-components").StyledComponent<({ faIcon, color, size, ...rest }: import("../IconFa").IconFaProps) => JSX.Element, any, {
|
|
5
5
|
open: boolean;
|
|
6
6
|
}, never>;
|
|
7
7
|
export declare const DefaultHeader: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../Button").Props>, any, {
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InputHTMLAttributes } from "react";
|
|
2
2
|
export declare type DateFieldProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
3
3
|
/** label text */
|
|
4
4
|
label: string;
|
|
@@ -28,5 +28,5 @@ export declare type DateFieldProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
|
28
28
|
/**
|
|
29
29
|
* To be used in forms entering dates like date of birth which are known dates and would take too long to get to with a date picker
|
|
30
30
|
* */
|
|
31
|
-
declare const DateField:
|
|
31
|
+
declare const DateField: ({ label, hintText, day, month, year, dayName, monthName, yearName, dayHasError, monthHasError, yearHasError, errorMessage, onChange, onBlur, onFocus, disabled, required, }: DateFieldProps) => JSX.Element;
|
|
32
32
|
export default DateField;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -17,7 +17,7 @@ export declare type IconProps = {
|
|
|
17
17
|
* System icons are designed to be simple, modern, friendly, and sometimes quirky.
|
|
18
18
|
* Each icon is reduced to its minimal form, expressing essential characteristics.
|
|
19
19
|
*
|
|
20
|
-
* This component
|
|
20
|
+
* This component has been deprecated in favour of IconFa which is more tree-shakable
|
|
21
21
|
* */
|
|
22
22
|
declare const Icon: FunctionComponent<IconProps>;
|
|
23
23
|
export default Icon;
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IconDefinition } from "@fortawesome/free-solid-svg-icons";
|
|
3
|
+
export declare type IconFaProps = {
|
|
4
|
+
/** imported icon definition from "@fortawesome/free-solid-svg-icons" or "@fortawesome/free-brands-svg-icons" */
|
|
5
|
+
faIcon: IconDefinition;
|
|
6
|
+
/** color of icon, inherits current text colour by default */
|
|
7
|
+
color?: string;
|
|
8
|
+
/** size of ion 1.1em by default */
|
|
9
|
+
size?: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* The IconFa component (Icon Font Awesome) displays an icon glyph as an `<svg>` element.
|
|
13
|
+
*
|
|
14
|
+
* This is an svg icon wrapper where a font awesome icon definition can be passed in a long with colour and size
|
|
15
|
+
* */
|
|
16
|
+
declare const IconFa: ({ faIcon, color, size, ...rest }: IconFaProps) => JSX.Element;
|
|
17
|
+
export default IconFa;
|
package/lib/components/{Link/test.cypress.d.ts → LegendWrapper/LegendWrapper.test.cypress.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AnchorHTMLAttributes } from "react";
|
|
2
2
|
import { TextProps } from "../Text";
|
|
3
3
|
import { ThemeType } from "../../types";
|
|
4
|
-
export declare const ChevyWithLevee: import("styled-components").StyledComponent<
|
|
4
|
+
export declare const ChevyWithLevee: import("styled-components").StyledComponent<({ faIcon, color, size, ...rest }: import("../IconFa").IconFaProps) => JSX.Element, any, {}, never>;
|
|
5
5
|
export declare const StyledLink: import("styled-components").StyledComponent<import("react").FunctionComponent<TextProps>, any, AnchorHTMLAttributes<HTMLElement> & import("../Spacing").SpacingProps & import("react").HTMLAttributes<HTMLElement> & {
|
|
6
6
|
textColor?: string | undefined;
|
|
7
7
|
textAlign?: "left" | "right" | "center" | "justify" | undefined;
|
|
File without changes
|
|
File without changes
|
package/lib/components/{PopOver/test.cypress.d.ts → Pagination/Pagination.test.cypress.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
package/lib/components/{Radio/test.cypress.d.ts → ProgressBar/ProgressBar.test.cypress.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
package/lib/components/{Select/test.cypress.d.ts → RadioConsent/RadioConsent.test.cypress.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/components/{TextField/test.cypress.d.ts → TextAreaField/TextAreaField.test.cypress.d.ts}
RENAMED
|
File without changes
|
package/lib/components/{Totaliser/test.cypress.d.ts → TextField/TextField.test.cypress.d.ts}
RENAMED
|
File without changes
|
package/lib/components/{UserBlock/test.cypress.d.ts → Totaliser/Totaliser.test.cypress.d.ts}
RENAMED
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -15,6 +15,7 @@ export { default as GlobalStyle } from "./GlobalStyle";
|
|
|
15
15
|
export { default as Header } from "./Header";
|
|
16
16
|
export { default as Heading } from "./Heading";
|
|
17
17
|
export { default as Icon } from "./Icon";
|
|
18
|
+
export { default as IconFa } from "./IconFa";
|
|
18
19
|
export { default as LabelWrapper } from "./LabelWrapper";
|
|
19
20
|
export { default as LegendWrapper } from "./LegendWrapper";
|
|
20
21
|
export { default as Link } from "./Link";
|
|
@@ -47,6 +48,7 @@ export { default as FooterReadme } from "./Footer/README.md";
|
|
|
47
48
|
export { default as HeadingReadme } from "./Heading/README.md";
|
|
48
49
|
export { default as HeaderReadme } from "./Header/README.md";
|
|
49
50
|
export { default as IconReadme } from "./Icon/README.md";
|
|
51
|
+
export { default as IconFaReadme } from "./IconFa/README.md";
|
|
50
52
|
export { default as LinkReadme } from "./Link/README.md";
|
|
51
53
|
export { default as LegendWrapperReadme } from "./LegendWrapper/README.md";
|
|
52
54
|
export { default as LoaderReadme } from "./Loader/README.md";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function
|
|
1
|
+
function t(){return t=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},t.apply(this,arguments)}export{t as default};
|
|
2
2
|
//# sourceMappingURL=extends.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extends.js","sources":["../../../../../../../node_modules/@babel/runtime/helpers/esm/extends.js"],"sourcesContent":["export default function _extends() {\n _extends = Object.assign
|
|
1
|
+
{"version":3,"file":"extends.js","sources":["../../../../../../../node_modules/@babel/runtime/helpers/esm/extends.js"],"sourcesContent":["export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n return _extends.apply(this, arguments);\n}"],"names":["_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this"],"mappings":"AAAe,SAASA,IActB,OAbAA,EAAWC,OAAOC,OAASD,OAAOC,OAAOC,OAAS,SAAUC,GAC1D,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CACzC,IAAIG,EAASF,UAAUD,GAEvB,IAAK,IAAII,KAAOD,EACVP,OAAOS,UAAUC,eAAeC,KAAKJ,EAAQC,KAC/CL,EAAOK,GAAOD,EAAOC,IAK3B,OAAOL,GAEFJ,EAASa,MAAMC,KAAMR"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function t(e,o){return t=Object.setPrototypeOf
|
|
1
|
+
function t(e,o){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t(e,o)}export{t as default};
|
|
2
2
|
//# sourceMappingURL=setPrototypeOf.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setPrototypeOf.js","sources":["../../../../../../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js"],"sourcesContent":["export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf
|
|
1
|
+
{"version":3,"file":"setPrototypeOf.js","sources":["../../../../../../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js"],"sourcesContent":["export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}"],"names":["_setPrototypeOf","o","p","Object","setPrototypeOf","bind","__proto__"],"mappings":"AAAe,SAASA,EAAgBC,EAAGC,GAKzC,OAJAF,EAAkBG,OAAOC,eAAiBD,OAAOC,eAAeC,OAAS,SAAyBJ,EAAGC,GAEnG,OADAD,EAAEK,UAAYJ,EACPD,GAEFD,EAAgBC,EAAGC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Font Awesome Free 6.1.1 by @fontawesome - https://fontawesome.com
|
|
3
|
+
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
4
|
+
* Copyright 2022 Fonticons, Inc.
|
|
5
|
+
*/
|
|
6
|
+
var c={prefix:"fas",iconName:"check",icon:[448,512,[10004,10003],"f00c","M438.6 105.4C451.1 117.9 451.1 138.1 438.6 150.6L182.6 406.6C170.1 419.1 149.9 419.1 137.4 406.6L9.372 278.6C-3.124 266.1-3.124 245.9 9.372 233.4C21.87 220.9 42.13 220.9 54.63 233.4L159.1 338.7L393.4 105.4C405.9 92.88 426.1 92.88 438.6 105.4H438.6z"]},e={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M224 416c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L224 338.8l169.4-169.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-192 192C240.4 412.9 232.2 416 224 416z"]},i={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M96 480c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L242.8 256L73.38 86.63c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25l-192 192C112.4 476.9 104.2 480 96 480z"]},o={prefix:"fas",iconName:"xmark",icon:[320,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"]},f=o;export{c as faCheck,e as faChevronDown,i as faChevronRight,f as faClose,o as faXmark};
|
|
7
|
+
//# sourceMappingURL=index.es.js.map
|