@transferwise/components 41.2.0 → 41.2.1-inter.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/build/es/no-polyfill/accordion/AccordionItem/AccordionItem.js +1 -1
- package/build/es/no-polyfill/actionButton/ActionButton.js +1 -1
- package/build/es/no-polyfill/alert/Alert.js +1 -1
- package/build/es/no-polyfill/avatar/Avatar.js +1 -1
- package/build/es/no-polyfill/avatarWrapper/AvatarWrapper.js +1 -1
- package/build/es/no-polyfill/body/Body.js +1 -0
- package/build/es/no-polyfill/body/Body.spec.js +1 -0
- package/build/es/no-polyfill/body/Body.story.js +1 -0
- package/build/es/no-polyfill/body/index.js +1 -0
- package/build/es/no-polyfill/card/Card.js +1 -1
- package/build/es/no-polyfill/checkbox/Checkbox.js +1 -1
- package/build/es/no-polyfill/chips/Chip.js +1 -1
- package/build/es/no-polyfill/circularButton/CircularButton.js +1 -1
- package/build/es/no-polyfill/common/Option/Option.js +1 -1
- package/build/es/no-polyfill/common/index.js +1 -1
- package/build/es/no-polyfill/common/propsValues/typography.js +1 -0
- package/build/es/no-polyfill/dateLookup/dateHeader/DateHeader.js +1 -1
- package/build/es/no-polyfill/dateLookup/dayCalendar/table/DayCalendarTable.js +1 -1
- package/build/es/no-polyfill/dateLookup/monthCalendar/table/MonthCalendarTable.js +1 -1
- package/build/es/no-polyfill/dateLookup/tableLink/TableLink.js +1 -1
- package/build/es/no-polyfill/drawer/Drawer.js +1 -1
- package/build/es/no-polyfill/dynamicFieldDefinitionList/DynamicFieldDefinitionList.js +1 -1
- package/build/es/no-polyfill/dynamicFieldDefinitionList/FormattedValue/FormattedValue.js +1 -1
- package/build/es/no-polyfill/flowNavigation/animatedLabel/AnimatedLabel.js +1 -1
- package/build/es/no-polyfill/header/Header.js +2 -2
- package/build/es/no-polyfill/index.js +2 -2
- package/build/es/no-polyfill/instructionsList/InstructionsList.js +3 -3
- package/build/es/no-polyfill/link/Link.js +2 -3
- package/build/es/no-polyfill/link/Link.story.js +1 -1
- package/build/es/no-polyfill/modal/Modal.js +1 -1
- package/build/es/no-polyfill/moneyInput/MoneyInput.js +1 -1
- package/build/es/no-polyfill/nudge/Nudge.js +1 -1
- package/build/es/no-polyfill/popover/Popover.js +1 -1
- package/build/es/no-polyfill/progressBar/ProgressBar.js +1 -1
- package/build/es/no-polyfill/radio/Radio.js +1 -1
- package/build/es/no-polyfill/select/Select.js +4 -4
- package/build/es/no-polyfill/select/option/Option.js +1 -1
- package/build/es/no-polyfill/snackbar/Snackbar.js +1 -1
- package/build/es/no-polyfill/stepper/Stepper.js +1 -1
- package/build/es/no-polyfill/summary/Summary.js +1 -1
- package/build/es/no-polyfill/tabs/Tab.js +1 -1
- package/build/es/no-polyfill/tile/Tile.js +1 -1
- package/build/es/no-polyfill/title/Title.js +1 -0
- package/build/es/no-polyfill/title/Title.spec.js +1 -0
- package/build/es/no-polyfill/title/Title.story.js +1 -0
- package/build/es/no-polyfill/title/index.js +1 -0
- package/build/es/no-polyfill/typeahead/typeaheadOption/TypeaheadOption.js +1 -1
- package/build/es/no-polyfill/upload/Upload.js +1 -1
- package/build/es/no-polyfill/upload/steps/completeStep/completeStep.js +1 -1
- package/build/es/no-polyfill/upload/steps/mediaUploadStep/mediaUploadStep.js +1 -1
- package/build/es/no-polyfill/upload/steps/processingStep/processingStep.js +1 -1
- package/build/es/no-polyfill/upload/steps/uploadImageStep/uploadImageStep.js +1 -1
- package/build/es/no-polyfill/uploadInput/uploadButton/UploadButton.js +1 -1
- package/build/es/no-polyfill/uploadInput/uploadItem/UploadItem.js +2 -2
- package/build/es/polyfill/accordion/AccordionItem/AccordionItem.js +1 -1
- package/build/es/polyfill/actionButton/ActionButton.js +1 -1
- package/build/es/polyfill/alert/Alert.js +1 -1
- package/build/es/polyfill/avatar/Avatar.js +1 -1
- package/build/es/polyfill/avatarWrapper/AvatarWrapper.js +1 -1
- package/build/es/polyfill/body/Body.js +1 -0
- package/build/es/polyfill/body/Body.spec.js +1 -0
- package/build/es/polyfill/body/Body.story.js +1 -0
- package/build/es/polyfill/body/index.js +1 -0
- package/build/es/polyfill/card/Card.js +1 -1
- package/build/es/polyfill/checkbox/Checkbox.js +1 -1
- package/build/es/polyfill/chips/Chip.js +1 -1
- package/build/es/polyfill/circularButton/CircularButton.js +1 -1
- package/build/es/polyfill/common/Option/Option.js +1 -1
- package/build/es/polyfill/common/index.js +1 -1
- package/build/es/polyfill/common/propsValues/typography.js +1 -0
- package/build/es/polyfill/dateLookup/dateHeader/DateHeader.js +1 -1
- package/build/es/polyfill/dateLookup/dayCalendar/table/DayCalendarTable.js +1 -1
- package/build/es/polyfill/dateLookup/monthCalendar/table/MonthCalendarTable.js +1 -1
- package/build/es/polyfill/dateLookup/tableLink/TableLink.js +1 -1
- package/build/es/polyfill/drawer/Drawer.js +1 -1
- package/build/es/polyfill/dynamicFieldDefinitionList/DynamicFieldDefinitionList.js +1 -1
- package/build/es/polyfill/dynamicFieldDefinitionList/FormattedValue/FormattedValue.js +1 -1
- package/build/es/polyfill/flowNavigation/animatedLabel/AnimatedLabel.js +1 -1
- package/build/es/polyfill/header/Header.js +2 -2
- package/build/es/polyfill/index.js +2 -2
- package/build/es/polyfill/instructionsList/InstructionsList.js +3 -3
- package/build/es/polyfill/link/Link.js +2 -3
- package/build/es/polyfill/link/Link.story.js +1 -1
- package/build/es/polyfill/modal/Modal.js +1 -1
- package/build/es/polyfill/moneyInput/MoneyInput.js +1 -1
- package/build/es/polyfill/nudge/Nudge.js +1 -1
- package/build/es/polyfill/popover/Popover.js +1 -1
- package/build/es/polyfill/progressBar/ProgressBar.js +1 -1
- package/build/es/polyfill/radio/Radio.js +1 -1
- package/build/es/polyfill/select/Select.js +4 -4
- package/build/es/polyfill/select/option/Option.js +1 -1
- package/build/es/polyfill/snackbar/Snackbar.js +1 -1
- package/build/es/polyfill/stepper/Stepper.js +1 -1
- package/build/es/polyfill/summary/Summary.js +1 -1
- package/build/es/polyfill/tabs/Tab.js +1 -1
- package/build/es/polyfill/tile/Tile.js +1 -1
- package/build/es/polyfill/title/Title.js +1 -0
- package/build/es/polyfill/title/Title.spec.js +1 -0
- package/build/es/polyfill/title/Title.story.js +1 -0
- package/build/es/polyfill/title/index.js +1 -0
- package/build/es/polyfill/typeahead/typeaheadOption/TypeaheadOption.js +1 -1
- package/build/es/polyfill/upload/Upload.js +1 -1
- package/build/es/polyfill/upload/steps/completeStep/completeStep.js +1 -1
- package/build/es/polyfill/upload/steps/mediaUploadStep/mediaUploadStep.js +1 -1
- package/build/es/polyfill/upload/steps/processingStep/processingStep.js +1 -1
- package/build/es/polyfill/upload/steps/uploadImageStep/uploadImageStep.js +1 -1
- package/build/es/polyfill/uploadInput/uploadButton/UploadButton.js +1 -1
- package/build/es/polyfill/uploadInput/uploadItem/UploadItem.js +2 -2
- package/build/main.css +1 -1
- package/build/styles/accordion/Accordion.css +1 -1
- package/build/styles/actionButton/ActionButton.css +1 -1
- package/build/styles/avatar/Avatar.css +1 -1
- package/build/styles/chips/Chip.css +1 -1
- package/build/styles/circularButton/CircularButton.css +1 -1
- package/build/styles/common/Option/Option.css +1 -1
- package/build/styles/dateLookup/DateLookup.css +1 -1
- package/build/styles/drawer/Drawer.css +1 -1
- package/build/styles/flowNavigation/animatedLabel/AnimatedLabel.css +1 -1
- package/build/styles/header/Header.css +1 -1
- package/build/styles/lab/mobileNav/MobileNav.css +1 -1
- package/build/styles/link/Link.css +1 -1
- package/build/styles/main.css +1 -1
- package/build/styles/modal/Modal.css +1 -1
- package/build/styles/navigationOption/NavigationOption.css +1 -1
- package/build/styles/nudge/Nudge.css +1 -1
- package/build/styles/popover/Popover.css +1 -1
- package/build/styles/select/Select.css +1 -1
- package/build/styles/snackbar/Snackbar.css +1 -1
- package/build/styles/stepper/Stepper.css +1 -1
- package/build/styles/summary/Summary.css +1 -1
- package/build/styles/tabs/Tabs.css +1 -1
- package/build/styles/tile/Tile.css +1 -1
- package/build/styles/typeahead/Typeahead.css +1 -1
- package/build/styles/uploadInput/uploadButton/UploadButton.css +1 -1
- package/build/styles/uploadInput/uploadItem/UploadItem.css +1 -1
- package/build/types/body/Body.d.ts +14 -0
- package/build/types/body/Body.spec.d.ts +1 -0
- package/build/types/body/Body.story.d.ts +8 -0
- package/build/types/body/index.d.ts +1 -0
- package/build/types/checkboxButton/CheckboxButton.d.ts +1 -1
- package/build/types/checkboxButton/CheckboxButton.story.d.ts +1 -1
- package/build/types/common/index.d.ts +1 -0
- package/build/types/common/panel/Panel.d.ts +1 -1
- package/build/types/common/propsValues/typography.d.ts +27 -0
- package/build/types/common/responsivePanel/ResponsivePanel.d.ts +1 -1
- package/build/types/header/Header.d.ts +1 -1
- package/build/types/header/Header.story.d.ts +1 -1
- package/build/types/index.d.ts +4 -2
- package/build/types/link/Link.d.ts +6 -5
- package/build/types/link/Link.story.d.ts +2 -2
- package/build/types/select/searchBox/SearchBox.d.ts +1 -1
- package/build/types/title/Title.d.ts +14 -0
- package/build/types/title/Title.spec.d.ts +1 -0
- package/build/types/title/Title.story.d.ts +8 -0
- package/build/types/title/index.d.ts +1 -0
- package/build/types/tooltip/Tooltip.story.d.ts +1 -1
- package/build/umd/no-polyfill/main.js +1 -1
- package/build/umd/polyfill/main.js +1 -1
- package/package.json +4 -4
- package/build/styles/actionOption/ActionOption.css +0 -1
- package/build/styles/progressBar/ProgressBar.css +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const _default: {
|
|
3
|
-
component: import("react").ForwardRefExoticComponent<Pick<import("./CheckboxButton").CheckboxButtonProps, "id" | "children" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "value" | "className" | "open" | "list" | "role" | "onMouseDown" | "
|
|
3
|
+
component: import("react").ForwardRefExoticComponent<Pick<import("./CheckboxButton").CheckboxButtonProps, "id" | "children" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "value" | "className" | "open" | "list" | "role" | "onMouseDown" | "as" | "type" | "htmlFor" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "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" | "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" | "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" | "css" | "key" | "classID" | "height" | "name" | "useMap" | "width" | "wmode" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "required" | "size" | "src" | "step" | "href" | "hrefLang" | "integrity" | "media" | "rel" | "sizes" | "charSet" | "download" | "target" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "playsInline" | "preload" | "dateTime" | "acceptCharset" | "action" | "encType" | "method" | "noValidate" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "challenge" | "keyType" | "keyParams" | "content" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "start" | "selected" | "async" | "defer" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "wrap" | "default" | "kind" | "srcLang" | "poster"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
4
4
|
title: string;
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
@@ -4,6 +4,7 @@ export * from "./theme";
|
|
|
4
4
|
export * from "./direction";
|
|
5
5
|
export * from "./propsValues/control";
|
|
6
6
|
export * from "./propsValues/size";
|
|
7
|
+
export * from "./propsValues/typography";
|
|
7
8
|
export * from "./propsValues/width";
|
|
8
9
|
export * from "./propsValues/position";
|
|
9
10
|
export * from "./propsValues/scroll";
|
|
@@ -16,7 +16,7 @@ declare const Panel: import("react").ForwardRefExoticComponent<{
|
|
|
16
16
|
altAxis?: boolean | undefined;
|
|
17
17
|
open?: boolean | undefined;
|
|
18
18
|
onClose?: ((event: Event | SyntheticEvent) => void) | undefined;
|
|
19
|
-
position?: "
|
|
19
|
+
position?: "left" | "right" | "top" | "bottom" | undefined;
|
|
20
20
|
anchorRef: RefObject<Element>;
|
|
21
21
|
anchorWidth?: boolean | undefined;
|
|
22
22
|
} & {
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare enum Typography {
|
|
2
|
+
SCREEN_TITLE = "screen-title",
|
|
3
|
+
SECTION_TITLE = "section-title",
|
|
4
|
+
SUBSECTION_TITLE = "subsection-title",
|
|
5
|
+
BODY_TITLE = "body-title",
|
|
6
|
+
GROUP_TITLE = "group-title",
|
|
7
|
+
BODY_LARGE = "body-large",
|
|
8
|
+
BODY_DEFAULT = "body-default",
|
|
9
|
+
BODY_DEFAULT_BOLD = "body-default-bold",
|
|
10
|
+
BODY_LARGE_BOLD = "body-large-bold",
|
|
11
|
+
LINK_LARGE = "link-large",
|
|
12
|
+
LINK_DEFAULT = "link-default"
|
|
13
|
+
}
|
|
14
|
+
export declare type ScreenTitle = 'screen-title';
|
|
15
|
+
export declare type SectionTitle = 'section-title';
|
|
16
|
+
export declare type SubsectionTitle = 'subsection-title';
|
|
17
|
+
export declare type BodyTitle = 'body-title';
|
|
18
|
+
export declare type GroupTitle = 'group-title';
|
|
19
|
+
export declare type TitleTypes = ScreenTitle | SectionTitle | SubsectionTitle | BodyTitle | GroupTitle;
|
|
20
|
+
export declare type BodyTypes = BodyLargeBold | BodyDefault | BodyLarge | BodyDefaultBold;
|
|
21
|
+
export declare type BodyDefault = 'body-default';
|
|
22
|
+
export declare type BodyLargeBold = 'body-large-bold';
|
|
23
|
+
export declare type BodyDefaultBold = 'body-default-bold';
|
|
24
|
+
export declare type BodyLarge = 'body-large';
|
|
25
|
+
export declare type LinkDefault = 'link-default';
|
|
26
|
+
export declare type LinkLarge = 'link-large';
|
|
27
|
+
export declare type TypographyTypes = ScreenTitle | SectionTitle | SubsectionTitle | BodyTitle | GroupTitle | BodyDefault | BodyLargeBold | BodyDefaultBold | BodyLarge | LinkDefault | LinkLarge;
|
|
@@ -5,7 +5,7 @@ declare const ResponsivePanel: import("react").ForwardRefExoticComponent<{
|
|
|
5
5
|
altAxis?: boolean | undefined;
|
|
6
6
|
open?: boolean | undefined;
|
|
7
7
|
onClose?: ((event: Event | import("react").SyntheticEvent<Element, Event>) => void) | undefined;
|
|
8
|
-
position?: "
|
|
8
|
+
position?: "left" | "right" | "top" | "bottom" | undefined;
|
|
9
9
|
anchorRef: import("react").RefObject<Element>;
|
|
10
10
|
anchorWidth?: boolean | undefined;
|
|
11
11
|
} & {
|
|
@@ -24,5 +24,5 @@ export declare type HeaderProps = CommonProps & {
|
|
|
24
24
|
* Neptune Web: https://transferwise.github.io/neptune-web/components/content/Header
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
|
-
export declare const Header: ({ action, as
|
|
27
|
+
export declare const Header: ({ action, as, title, className }: HeaderProps) => JSX.Element;
|
|
28
28
|
export default Header;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const _default: {
|
|
3
|
-
component: ({ action, as
|
|
3
|
+
component: ({ action, as, title, className }: import("./Header").HeaderProps) => JSX.Element;
|
|
4
4
|
title: string;
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
package/build/types/index.d.ts
CHANGED
|
@@ -3,10 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export type { UploadedFile, UploadError, UploadResponse } from './uploadInput/types';
|
|
5
5
|
export type { ModalProps } from './modal';
|
|
6
|
-
export type { LayoutDirection } from './common';
|
|
6
|
+
export type { LayoutDirection, TypographyTypes, TitleTypes, BodyTypes } from './common';
|
|
7
7
|
/**
|
|
8
8
|
* Components
|
|
9
9
|
*/
|
|
10
|
+
export { default as Title } from './title';
|
|
11
|
+
export { default as Body } from './body';
|
|
10
12
|
export { default as Accordion } from './accordion';
|
|
11
13
|
export { default as ActionButton } from './actionButton';
|
|
12
14
|
export { default as ActionOption } from './actionOption';
|
|
@@ -85,7 +87,7 @@ export { useDirection, useLayout } from './common/hooks';
|
|
|
85
87
|
/**
|
|
86
88
|
* Enums
|
|
87
89
|
*/
|
|
88
|
-
export { Direction, Size, Width, Sentiment, Priority, ControlType, Type, Theme, DateMode, MonthFormat, Position, Scroll, ProfileType, Breakpoint, Layout, Status, MarkdownNodeType, } from './common';
|
|
90
|
+
export { Direction, Size, Width, Sentiment, Priority, ControlType, Type, Theme, DateMode, MonthFormat, Position, Scroll, ProfileType, Breakpoint, Layout, Status, MarkdownNodeType, Typography, } from './common';
|
|
89
91
|
export { AvatarType } from './avatar';
|
|
90
92
|
export { InfoPresentation } from './info';
|
|
91
93
|
export { UploadStep } from './upload';
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
declare type Props =
|
|
1
|
+
import { AnchorHTMLAttributes } from 'react';
|
|
2
|
+
import { LinkLarge, LinkDefault } from '../common';
|
|
3
|
+
declare type Props = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
4
|
+
type?: LinkLarge | LinkDefault;
|
|
5
|
+
};
|
|
4
6
|
/**
|
|
5
7
|
* Standard Link component with navigate away icon
|
|
6
8
|
*
|
|
7
9
|
* Documentation: https://transferwise.github.io/neptune-web/components/content/Link
|
|
8
|
-
*
|
|
9
10
|
*/
|
|
10
|
-
declare const Link: ({ className, children,
|
|
11
|
+
declare const Link: ({ className, children, type, ...props }: Props) => JSX.Element;
|
|
11
12
|
export default Link;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const _default: {
|
|
3
|
-
component: ({ className, children,
|
|
4
|
-
|
|
3
|
+
component: ({ className, children, type, ...props }: import("react").AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
4
|
+
type?: "link-default" | "link-large" | undefined;
|
|
5
5
|
}) => JSX.Element;
|
|
6
6
|
title: string;
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
2
|
declare const SearchBox: import("react").ForwardRefExoticComponent<{
|
|
3
3
|
classNames?: Record<string, string> | undefined;
|
|
4
|
-
} & Pick<InputHTMLAttributes<HTMLInputElement>, "value" | "
|
|
4
|
+
} & Pick<InputHTMLAttributes<HTMLInputElement>, "value" | "placeholder" | "onChange" | "onClick"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
5
5
|
export default SearchBox;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LabelHTMLAttributes, LiHTMLAttributes } from 'react';
|
|
2
|
+
import { TitleTypes, Heading } from '../common';
|
|
3
|
+
declare type Props = LabelHTMLAttributes<HTMLHeadingElement | HTMLSpanElement | HTMLLabelElement> & LiHTMLAttributes<HTMLLIElement> & {
|
|
4
|
+
/**
|
|
5
|
+
* Default value will based one `type` prop
|
|
6
|
+
*/
|
|
7
|
+
as?: 'span' | 'label' | 'li' | Heading;
|
|
8
|
+
/**
|
|
9
|
+
* Default value: {@link DEFAULT_TYPE}
|
|
10
|
+
*/
|
|
11
|
+
type?: TitleTypes;
|
|
12
|
+
};
|
|
13
|
+
declare function Title({ as, type, className, ...props }: Props): JSX.Element;
|
|
14
|
+
export default Title;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Title';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const _default: {
|
|
3
3
|
component: ({ position, children, label, className, }: {
|
|
4
|
-
position?: "
|
|
4
|
+
position?: "left" | "right" | "top" | "bottom" | undefined;
|
|
5
5
|
label: import("react").ReactNode;
|
|
6
6
|
} & {
|
|
7
7
|
children?: import("react").ReactNode;
|