@cruk/cruk-react-components 1.2.2 → 1.2.5
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 +17 -3
- package/lib/cjs/node_modules/@babel/runtime/helpers/esm/defineProperty.js +1 -1
- package/lib/cjs/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +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/objectWithoutPropertiesLoose.js.map +1 -1
- package/lib/cjs/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +2 -0
- package/lib/cjs/node_modules/@babel/runtime/helpers/esm/toPrimitive.js.map +1 -0
- package/lib/cjs/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +2 -0
- package/lib/cjs/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js.map +1 -0
- package/lib/cjs/node_modules/@babel/runtime/helpers/esm/typeof.js +2 -0
- package/lib/cjs/node_modules/@babel/runtime/helpers/esm/typeof.js.map +1 -0
- package/lib/cjs/node_modules/@fortawesome/free-solid-svg-icons/index.mjs.js +2 -0
- package/lib/cjs/node_modules/@fortawesome/free-solid-svg-icons/index.mjs.js.map +1 -0
- 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/solver.js +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/auto-focus.js +2 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/auto-focus.js.map +1 -0
- package/lib/cjs/node_modules/react-focus-lock/dist/es2015/Lock.js +1 -1
- package/lib/cjs/node_modules/react-focus-lock/dist/es2015/Lock.js.map +1 -1
- package/lib/cjs/node_modules/react-focus-lock/dist/es2015/medium.js.map +1 -1
- package/lib/cjs/node_modules/react-intersection-observer/react-intersection-observer.modern.mjs.js.map +1 -1
- package/lib/cjs/node_modules/tslib/tslib.es6.js.map +1 -1
- package/lib/cjs/src/components/AddressLookup/index.js +1 -1
- package/lib/cjs/src/components/Avatar/README.md.js +1 -1
- package/lib/cjs/src/components/Avatar/README.md.js.map +1 -1
- package/lib/cjs/src/components/Button/styles.js +1 -1
- package/lib/cjs/src/components/Carousel/Dots.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/Header/index.js +1 -1
- package/lib/cjs/src/components/Header/styles.js +1 -1
- package/lib/cjs/src/components/Link/index.js +1 -1
- package/lib/cjs/src/components/Modal/index.js +1 -1
- package/lib/cjs/src/components/ProgressBar/styles.js +1 -1
- package/lib/cjs/src/components/Radio/styles.js +1 -1
- package/lib/cjs/src/components/Select/styles.js +1 -1
- package/lib/cjs/src/components/TextField/styles.js +1 -1
- package/lib/components/AddressLookup/index.d.ts +27 -2
- package/lib/components/Avatar/index.d.ts +1 -1
- package/lib/components/Avatar/styles.d.ts +1 -1
- package/lib/components/Badge/index.d.ts +1 -1
- package/lib/components/Badge/styles.d.ts +1 -1
- package/lib/components/Box/index.d.ts +1 -1
- package/lib/components/Button/index.d.ts +20 -2
- package/lib/components/Button/styles.d.ts +1 -1
- package/lib/components/Carousel/Dots.d.ts +1 -1
- package/lib/components/Carousel/index.d.ts +1 -1
- package/lib/components/Carousel/styles.d.ts +4 -4
- package/lib/components/Checkbox/index.d.ts +9 -2
- package/lib/components/Checkbox/styles.d.ts +1 -1
- package/lib/components/Collapse/index.d.ts +1 -1
- package/lib/components/Collapse/styles.d.ts +11 -1
- package/lib/components/DateField/index.d.ts +1 -1
- package/lib/components/Divider.d.ts +1 -1
- package/lib/components/ErrorText/index.d.ts +1 -1
- package/lib/components/Footer/index.d.ts +1 -1
- package/lib/components/Header/index.d.ts +1 -1
- package/lib/components/Header/styles.d.ts +15 -8
- package/lib/components/Heading/index.d.ts +1 -1
- package/lib/components/Icon/index.d.ts +2 -1
- package/lib/components/IconFa/index.d.ts +2 -1
- package/lib/components/InfoBox/index.d.ts +1 -1
- package/lib/components/LabelWrapper/index.d.ts +1 -1
- package/lib/components/LegendWrapper/index.d.ts +1 -1
- package/lib/components/LegendWrapper/styles.d.ts +1 -1
- package/lib/components/Link/index.d.ts +22 -2
- package/lib/components/Loader/index.d.ts +1 -0
- package/lib/components/Modal/index.d.ts +1 -1
- package/lib/components/Modal/styles.d.ts +12 -2
- package/lib/components/Pagination/index.d.ts +1 -1
- package/lib/components/Pagination/styles.d.ts +1 -1
- package/lib/components/PopOver/index.d.ts +1 -1
- package/lib/components/ProgressBar/index.d.ts +1 -1
- package/lib/components/ProgressBar/styles.d.ts +4 -4
- package/lib/components/Radio/index.d.ts +9 -2
- package/lib/components/Radio/styles.d.ts +3 -3
- package/lib/components/RadioConsent/index.d.ts +1 -1
- package/lib/components/RadioConsent/styles.d.ts +7 -2
- package/lib/components/Select/index.d.ts +1 -1
- package/lib/components/Select/styles.d.ts +1 -1
- package/lib/components/Spacing/index.d.ts +1 -1
- package/lib/components/Step/index.d.ts +1 -1
- package/lib/components/Step/styles.d.ts +2 -2
- package/lib/components/TestWrapper.d.ts +2 -2
- package/lib/components/Text/index.d.ts +1 -1
- package/lib/components/Text/styles.d.ts +1 -1
- package/lib/components/TextAreaField/index.d.ts +1 -1
- package/lib/components/TextAreaField/styles.d.ts +1 -1
- package/lib/components/TextField/index.d.ts +1 -1
- package/lib/components/TextField/styles.d.ts +2 -2
- package/lib/components/ThemeCheatSheet.d.ts +3 -1
- package/lib/components/Totaliser/index.d.ts +1 -1
- package/lib/components/Totaliser/styles.d.ts +2 -1
- package/lib/components/UserBlock/index.d.ts +1 -1
- package/lib/es/node_modules/@babel/runtime/helpers/esm/defineProperty.js +1 -1
- package/lib/es/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +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/objectWithoutPropertiesLoose.js.map +1 -1
- package/lib/es/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +2 -0
- package/lib/es/node_modules/@babel/runtime/helpers/esm/toPrimitive.js.map +1 -0
- package/lib/es/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +2 -0
- package/lib/es/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js.map +1 -0
- package/lib/es/node_modules/@babel/runtime/helpers/esm/typeof.js +2 -0
- package/lib/es/node_modules/@babel/runtime/helpers/esm/typeof.js.map +1 -0
- package/lib/es/node_modules/@fortawesome/free-solid-svg-icons/index.mjs.js +2 -0
- package/lib/es/node_modules/@fortawesome/free-solid-svg-icons/index.mjs.js.map +1 -0
- 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/solver.js +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/auto-focus.js +2 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/auto-focus.js.map +1 -0
- 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/medium.js.map +1 -1
- package/lib/es/node_modules/react-intersection-observer/react-intersection-observer.modern.mjs.js.map +1 -1
- package/lib/es/node_modules/tslib/tslib.es6.js.map +1 -1
- package/lib/es/src/components/AddressLookup/index.js +1 -1
- package/lib/es/src/components/Avatar/README.md.js +1 -1
- package/lib/es/src/components/Avatar/README.md.js.map +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/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/Header/index.js +1 -1
- package/lib/es/src/components/Header/styles.js +1 -1
- package/lib/es/src/components/Link/index.js +1 -1
- package/lib/es/src/components/Modal/index.js +1 -1
- package/lib/es/src/components/ProgressBar/styles.js +1 -1
- package/lib/es/src/components/Radio/styles.js +1 -1
- package/lib/es/src/components/Select/styles.js +1 -1
- package/lib/es/src/components/TextField/styles.js +1 -1
- package/lib/hocs/MdxProvider.d.ts +1 -1
- package/lib/types.d.ts +21 -21
- package/package.json +25 -26
- package/lib/cjs/node_modules/@fortawesome/free-solid-svg-icons/index.es.js +0 -8
- package/lib/cjs/node_modules/@fortawesome/free-solid-svg-icons/index.es.js.map +0 -1
- package/lib/es/node_modules/@fortawesome/free-solid-svg-icons/index.es.js +0 -7
- package/lib/es/node_modules/@fortawesome/free-solid-svg-icons/index.es.js.map +0 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ICONS } from "./iconList";
|
|
2
3
|
export declare const ICON_NAMES: {
|
|
3
4
|
[key: string]: string;
|
|
4
5
|
};
|
|
5
|
-
export
|
|
6
|
+
export type IconProps = {
|
|
6
7
|
/** name defines the visible icon */
|
|
7
8
|
name: keyof typeof ICONS;
|
|
8
9
|
/** color of icon, inherits current text colour by default */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { IconDefinition } from "@fortawesome/fontawesome-common-types";
|
|
2
|
-
export
|
|
3
|
+
export type IconFaProps = {
|
|
3
4
|
/** imported icon definition from "@fortawesome/free-solid-svg-icons" or "@fortawesome/free-brands-svg-icons" */
|
|
4
5
|
faIcon: IconDefinition;
|
|
5
6
|
/** color of icon, inherits current text colour by default */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FunctionComponent, HTMLAttributes, Ref, ReactNode, ElementType } from "react";
|
|
2
2
|
import { SpacingProps } from "../Spacing";
|
|
3
|
-
export
|
|
3
|
+
export type InfoBoxProps = SpacingProps & HTMLAttributes<HTMLElement> & {
|
|
4
4
|
/** background color of wrapping element, this will add default padding */
|
|
5
5
|
backgroundColor?: string;
|
|
6
6
|
/** Title text */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LabelHTMLAttributes, ReactNode } from "react";
|
|
2
|
-
|
|
2
|
+
type LabelWrapperProps = LabelHTMLAttributes<HTMLLabelElement> & {
|
|
3
3
|
/** label text */
|
|
4
4
|
label: string;
|
|
5
5
|
/** hint text or react element in it's place */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
export
|
|
2
|
+
export type LegendWrapperProps = HTMLAttributes<HTMLLegendElement> & {
|
|
3
3
|
children?: ReactNode;
|
|
4
4
|
/** legend text */
|
|
5
5
|
legendText: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { AnchorHTMLAttributes, Ref, ElementType, ReactNode } from "react";
|
|
2
2
|
import { TextProps } from "../Text";
|
|
3
|
-
export
|
|
3
|
+
export type LinkProps = AnchorHTMLAttributes<HTMLElement> & TextProps & {
|
|
4
4
|
/** link text hover colour */
|
|
5
5
|
textHoverColor?: string;
|
|
6
6
|
/** link appearance variant, undefined is a standarding link withing a text block */
|
|
@@ -22,5 +22,25 @@ export declare type LinkProps = AnchorHTMLAttributes<HTMLElement> & TextProps &
|
|
|
22
22
|
* If you want something that looks like a link but behaves like a button ie. nothing to do with navigation, please consider using Link with as='button'
|
|
23
23
|
*
|
|
24
24
|
* If you want something that looks like a button but behaves like a link ie. it takes the user to a new location, please consider using Button and simply passing it an href, it will automatically turn into a link. */
|
|
25
|
-
export declare const Link: React.ForwardRefExoticComponent<Pick<
|
|
25
|
+
export declare const Link: React.ForwardRefExoticComponent<Pick<React.AnchorHTMLAttributes<HTMLElement> & import("../Spacing").SpacingProps & React.HTMLAttributes<HTMLElement> & {
|
|
26
|
+
textColor?: string | undefined;
|
|
27
|
+
textAlign?: "left" | "right" | "center" | "justify" | undefined;
|
|
28
|
+
textSize?: import("..").FontSizeType | undefined;
|
|
29
|
+
textWeight?: number | undefined;
|
|
30
|
+
as?: any;
|
|
31
|
+
wordBreak?: import("..").WordBreakType | undefined;
|
|
32
|
+
overflowWrap?: import("..").OverflowWrapType | undefined;
|
|
33
|
+
ref?: React.Ref<HTMLElement> | undefined;
|
|
34
|
+
} & {
|
|
35
|
+
/** link text hover colour */
|
|
36
|
+
textHoverColor?: string | undefined;
|
|
37
|
+
/** link appearance variant, undefined is a standarding link withing a text block */
|
|
38
|
+
appearance?: "primary" | "secondary" | undefined;
|
|
39
|
+
/** styled-components polymorphism where you can use the styling of a link but convert to another element like a button */
|
|
40
|
+
ref?: React.Ref<HTMLElement> | undefined;
|
|
41
|
+
/** styled-component polymorphic feature so you take the styling of a link and cast the component to be a "span" for example */
|
|
42
|
+
as?: React.ElementType<any> | undefined;
|
|
43
|
+
/** Component children */
|
|
44
|
+
children?: ReactNode;
|
|
45
|
+
}, "slot" | "style" | "title" | "download" | "href" | "hrefLang" | "media" | "ping" | "rel" | "target" | "type" | "referrerPolicy" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginVertical" | "marginHorizontal" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingVertical" | "paddingHorizontal" | "textColor" | "textAlign" | "textSize" | "textWeight" | "as" | "wordBreak" | "overflowWrap" | "textHoverColor" | "appearance"> & React.RefAttributes<HTMLElement>>;
|
|
26
46
|
export default Link;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { SpacingProps } from "../Spacing";
|
|
3
|
-
export
|
|
3
|
+
export type ModalProps = SpacingProps & {
|
|
4
4
|
/** modal name used for aria-label */
|
|
5
5
|
modalName: string;
|
|
6
6
|
/** callback function called on modal close */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ThemeType } from "../../types";
|
|
3
|
-
|
|
3
|
+
type ContentProps = {
|
|
4
4
|
backgroundColor?: string;
|
|
5
5
|
theme: ThemeType;
|
|
6
6
|
top: string;
|
|
@@ -10,5 +10,15 @@ declare type ContentProps = {
|
|
|
10
10
|
export declare const Background: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
11
|
export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
12
|
export declare const Content: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../Box").BoxProps>, any, ContentProps, never>;
|
|
13
|
-
export declare const CloseButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("
|
|
13
|
+
export declare const CloseButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("react").ButtonHTMLAttributes<HTMLElement> & {
|
|
14
|
+
appearance?: import("../../types").ButtonAppearanceType | undefined;
|
|
15
|
+
full?: boolean | undefined;
|
|
16
|
+
href?: string | undefined;
|
|
17
|
+
size?: "m" | "l" | undefined;
|
|
18
|
+
css?: any;
|
|
19
|
+
as?: import("react").ElementType<any> | undefined;
|
|
20
|
+
isIconButton?: boolean | undefined;
|
|
21
|
+
ref?: import("react").Ref<HTMLElement> | undefined;
|
|
22
|
+
children?: import("react").ReactNode;
|
|
23
|
+
}, "css" | "as" | keyof import("react").ButtonHTMLAttributes<HTMLElement> | "appearance" | "full" | "href" | "size" | "isIconButton"> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
|
|
14
24
|
export {};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { ThemeType } from "../../types";
|
|
2
|
-
|
|
2
|
+
type ThemeProp = {
|
|
3
3
|
theme: ThemeType;
|
|
4
4
|
};
|
|
5
|
-
|
|
5
|
+
type LineProgressBarProps = {
|
|
6
6
|
percentage: number;
|
|
7
7
|
barColor?: string;
|
|
8
8
|
isSecondary?: boolean;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
type LineProgressWrapperProps = {
|
|
11
11
|
percentage: number;
|
|
12
12
|
secondaryPercentage: number;
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
type CircleWrapperProps = {
|
|
15
15
|
circleSize: string;
|
|
16
16
|
};
|
|
17
17
|
export declare const ProgressBarWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { InputHTMLAttributes, Ref, ReactNode } from "react";
|
|
2
|
-
export
|
|
2
|
+
export type RadioProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
3
3
|
ref?: Ref<HTMLInputElement>;
|
|
4
4
|
/** flag for error styling */
|
|
5
5
|
hasError?: boolean;
|
|
@@ -12,5 +12,12 @@ export declare type RadioProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
|
12
12
|
*
|
|
13
13
|
* The value or children becomes the label, if you want an outer label for a radio or group of radios please use a LegendWrapper component
|
|
14
14
|
*/
|
|
15
|
-
declare const Radio: React.ForwardRefExoticComponent<Pick<
|
|
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>>;
|
|
16
23
|
export default Radio;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ThemeType } from "../../types";
|
|
2
|
-
|
|
2
|
+
type ThemeProp = {
|
|
3
3
|
theme: ThemeType;
|
|
4
4
|
};
|
|
5
5
|
export declare const CheckWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
6
|
export declare const Check: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
7
|
-
|
|
7
|
+
type CheckedProp = {
|
|
8
8
|
checked: boolean;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
type DisabledProp = {
|
|
11
11
|
disabled: boolean;
|
|
12
12
|
};
|
|
13
13
|
export declare const StyledLabel: import("styled-components").StyledComponent<"label", any, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FunctionComponent } from "react";
|
|
2
|
-
export
|
|
2
|
+
export type RadioConsentProps = {
|
|
3
3
|
/** because each radio has its own label this is the consent group label text */
|
|
4
4
|
legend: string;
|
|
5
5
|
/** array of option for radio constent group where option is the option name and value is the option value */
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ThemeType } from "../../types";
|
|
3
|
-
|
|
3
|
+
type ThemeProp = {
|
|
4
4
|
theme: ThemeType;
|
|
5
5
|
};
|
|
6
|
-
export declare const StyledRadio: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("
|
|
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, {
|
|
7
12
|
numberOfAttributes: number;
|
|
8
13
|
} & ThemeProp, never>;
|
|
9
14
|
export declare const StyledLegend: import("styled-components").StyledComponent<"legend", any, {}, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent, ReactNode, SelectHTMLAttributes, Ref } from "react";
|
|
2
|
-
export
|
|
2
|
+
export type SelectProps = SelectHTMLAttributes<HTMLSelectElement> & {
|
|
3
3
|
/** error message text */
|
|
4
4
|
errorMessage?: string;
|
|
5
5
|
/** flag for error styling of component */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare const StepWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
-
|
|
2
|
+
type StepListProps = {
|
|
3
3
|
total: number;
|
|
4
4
|
};
|
|
5
5
|
export declare const StepList: import("styled-components").StyledComponent<"ul", any, StepListProps, never>;
|
|
6
6
|
export declare const StepBar: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
7
7
|
export declare const StepTick: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
8
|
-
|
|
8
|
+
type StepItemProps = {
|
|
9
9
|
active: boolean;
|
|
10
10
|
done: boolean;
|
|
11
11
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { ThemeType } from "src/types";
|
|
3
|
-
|
|
3
|
+
type TestThemeWrapperProps = {
|
|
4
4
|
theme?: ThemeType;
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
};
|
|
7
7
|
export declare const TestThemeWrapper: ({ children, theme, }: TestThemeWrapperProps) => JSX.Element;
|
|
8
|
-
|
|
8
|
+
type TestWrapperProps = {
|
|
9
9
|
children?: ReactNode;
|
|
10
10
|
};
|
|
11
11
|
export declare const TestWrapper: ({ children }: TestWrapperProps) => JSX.Element;
|
|
@@ -4,7 +4,7 @@ import { WordBreakType, FontSizeType, ColorKeyType, OverflowWrapType } from "../
|
|
|
4
4
|
/**
|
|
5
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
6
|
*/
|
|
7
|
-
export
|
|
7
|
+
export type TextProps = SpacingProps & HTMLAttributes<HTMLElement> & {
|
|
8
8
|
/** text colour */
|
|
9
9
|
textColor?: ColorKeyType | string;
|
|
10
10
|
/** text horizontal alignment */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SpacingProps } from "../Spacing";
|
|
2
2
|
import { WordBreakType, FontSizeType, ThemeType, ColorKeyType, OverflowWrapType } from "../../types";
|
|
3
|
-
export
|
|
3
|
+
export type TextStyledProps = SpacingProps & {
|
|
4
4
|
textColor?: ColorKeyType;
|
|
5
5
|
textAlign?: "left" | "right" | "center" | "justify";
|
|
6
6
|
textSize?: FontSizeType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent, ReactNode, TextareaHTMLAttributes, Ref } from "react";
|
|
2
|
-
export
|
|
2
|
+
export type TextAreaFieldProps = TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
3
3
|
/** error message text */
|
|
4
4
|
errorMessage?: string;
|
|
5
5
|
/** flag for error styling */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent, InputHTMLAttributes, ReactNode, Ref } from "react";
|
|
2
|
-
export
|
|
2
|
+
export type TextFieldProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
3
3
|
/** error message text */
|
|
4
4
|
errorMessage?: string;
|
|
5
5
|
/** custom component/text that appears underneath the input field */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const BubbleWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
3
|
export declare const ProgressBarWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
3
4
|
isCompact?: boolean | undefined;
|
|
@@ -6,7 +7,7 @@ export declare const Total: import("styled-components").StyledComponent<"p", any
|
|
|
6
7
|
export declare const BubbleText: import("styled-components").StyledComponent<"p", any, {}, never>;
|
|
7
8
|
export declare const GiftAid: import("styled-components").StyledComponent<"p", any, {}, never>;
|
|
8
9
|
export declare const Summary: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
9
|
-
|
|
10
|
+
type TotaliserWrapperProps = {
|
|
10
11
|
isCompact: boolean;
|
|
11
12
|
};
|
|
12
13
|
export declare const TotaliserWrapper: import("styled-components").StyledComponent<"div", any, TotaliserWrapperProps, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode, HTMLAttributes } from "react";
|
|
2
|
-
export
|
|
2
|
+
export type UserBlockProps = HTMLAttributes<HTMLElement> & {
|
|
3
3
|
/** name component or text */
|
|
4
4
|
name?: ReactNode;
|
|
5
5
|
/** string name used in avatar component */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function
|
|
1
|
+
import e from"./toPropertyKey.js";function r(r,t,o){return(t=e(t))in r?Object.defineProperty(r,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[t]=o,r}export{r as default};
|
|
2
2
|
//# sourceMappingURL=defineProperty.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defineProperty.js","sources":["../../../../../../../node_modules/@babel/runtime/helpers/esm/defineProperty.js"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"defineProperty.js","sources":["../../../../../../../node_modules/@babel/runtime/helpers/esm/defineProperty.js"],"sourcesContent":["import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}"],"names":["_defineProperty","obj","key","value","toPropertyKey","Object","defineProperty","enumerable","configurable","writable"],"mappings":"kCACe,SAASA,EAAgBC,EAAKC,EAAKC,GAYhD,OAXAD,EAAME,EAAcF,MACTD,EACTI,OAAOC,eAAeL,EAAKC,EAAK,CAC9BC,MAAOA,EACPI,YAAY,EACZC,cAAc,EACdC,UAAU,IAGZR,EAAIC,GAAOC,EAENF,CACT"}
|
|
@@ -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 ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n
|
|
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 for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\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,IAYtB,OAXAA,EAAWC,OAAOC,OAASD,OAAOC,OAAOC,OAAS,SAAUC,GAC1D,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CACzC,IAAIG,EAASF,UAAUD,GACvB,IAAK,IAAII,KAAOD,EACVP,OAAOS,UAAUC,eAAeC,KAAKJ,EAAQC,KAC/CL,EAAOK,GAAOD,EAAOC,GAG1B,CACD,OAAOL,CACX,EACSJ,EAASa,MAAMC,KAAMR,UAC9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"objectWithoutPropertiesLoose.js","sources":["../../../../../../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"],"sourcesContent":["export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n
|
|
1
|
+
{"version":3,"file":"objectWithoutPropertiesLoose.js","sources":["../../../../../../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"],"sourcesContent":["export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}"],"names":["_objectWithoutPropertiesLoose","source","excluded","key","i","target","sourceKeys","Object","keys","length","indexOf"],"mappings":"AAAe,SAASA,EAA8BC,EAAQC,GAC5D,GAAc,MAAVD,EAAgB,MAAO,GAC3B,IAEIE,EAAKC,EAFLC,EAAS,CAAA,EACTC,EAAaC,OAAOC,KAAKP,GAE7B,IAAKG,EAAI,EAAGA,EAAIE,EAAWG,OAAQL,IACjCD,EAAMG,EAAWF,GACbF,EAASQ,QAAQP,IAAQ,IAC7BE,EAAOF,GAAOF,EAAOE,IAEvB,OAAOE,CACT"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import r from"./typeof.js";function t(t,e){if("object"!==r(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}export{t as default};
|
|
2
|
+
//# sourceMappingURL=toPrimitive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toPrimitive.js","sources":["../../../../../../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js"],"sourcesContent":["import _typeof from \"./typeof.js\";\nexport default function _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}"],"names":["_toPrimitive","input","hint","_typeof","prim","Symbol","toPrimitive","undefined","res","call","TypeError","String","Number"],"mappings":"2BACe,SAASA,EAAaC,EAAOC,GAC1C,GAAuB,WAAnBC,EAAQF,IAAiC,OAAVA,EAAgB,OAAOA,EAC1D,IAAIG,EAAOH,EAAMI,OAAOC,aACxB,QAAaC,IAATH,EAAoB,CACtB,IAAII,EAAMJ,EAAKK,KAAKR,EAAOC,GAAQ,WACnC,GAAqB,WAAjBC,EAAQK,GAAmB,OAAOA,EACtC,MAAM,IAAIE,UAAU,+CACrB,CACD,OAAiB,WAATR,EAAoBS,OAASC,QAAQX,EAC/C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toPropertyKey.js","sources":["../../../../../../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js"],"sourcesContent":["import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}"],"names":["_toPropertyKey","arg","key","toPrimitive","_typeof","String"],"mappings":"2DAEe,SAASA,EAAeC,GACrC,IAAIC,EAAMC,EAAYF,EAAK,UAC3B,MAAwB,WAAjBG,EAAQF,GAAoBA,EAAMG,OAAOH,EAClD"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},o(t)}export{o as default};
|
|
2
|
+
//# sourceMappingURL=typeof.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typeof.js","sources":["../../../../../../../node_modules/@babel/runtime/helpers/esm/typeof.js"],"sourcesContent":["export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}"],"names":["_typeof","obj","Symbol","iterator","constructor","prototype"],"mappings":"AAAe,SAASA,EAAQC,GAG9B,OAAOD,EAAU,mBAAqBE,QAAU,iBAAmBA,OAAOC,SAAW,SAAUF,GAC7F,cAAcA,CACf,EAAG,SAAUA,GACZ,OAAOA,GAAO,mBAAqBC,QAAUD,EAAIG,cAAgBF,QAAUD,IAAQC,OAAOG,UAAY,gBAAkBJ,CAC5H,EAAKD,EAAQC,EACb"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var c={prefix:"fas",iconName:"caret-right",icon:[256,512,[],"f0da","M246.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-9.2-9.2-22.9-11.9-34.9-6.9s-19.8 16.6-19.8 29.6l0 256c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l128-128z"]},e={prefix:"fas",iconName:"caret-left",icon:[256,512,[],"f0d9","M9.4 278.6c-12.5-12.5-12.5-32.8 0-45.3l128-128c9.2-9.2 22.9-11.9 34.9-6.9s19.8 16.6 19.8 29.6l0 256c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9l-128-128z"]},i={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},s={prefix:"fas",iconName:"xmark",icon:[320,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3 265.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256 310.6 150.6z"]},f=s,o={prefix:"fas",iconName:"chevron-right",icon:[384,512,[9002],"f054","M342.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L274.7 256 105.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},a={prefix:"fas",iconName:"check",icon:[512,512,[10003,10004],"f00c","M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7 425.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]};export{e as faCaretLeft,c as faCaretRight,a as faCheck,i as faChevronDown,o as faChevronRight,f as faClose,s as faXmark};
|
|
2
|
+
//# sourceMappingURL=index.mjs.js.map
|