@transferwise/components 0.0.0-experimental-fd70ead → 0.0.0-experimental-fd17016
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/i18n/cs.json +3 -0
- package/build/i18n/de.json +3 -0
- package/build/i18n/es.json +3 -0
- package/build/i18n/fr.json +3 -0
- package/build/i18n/hu.json +3 -0
- package/build/i18n/id.json +3 -0
- package/build/i18n/it.json +3 -0
- package/build/i18n/ja.json +3 -0
- package/build/i18n/pl.json +3 -0
- package/build/i18n/pt.json +3 -0
- package/build/i18n/ro.json +3 -0
- package/build/i18n/ru.json +3 -0
- package/build/i18n/th.json +3 -0
- package/build/i18n/tr.json +3 -0
- package/build/i18n/uk.json +3 -0
- package/build/i18n/zh-CN.json +3 -0
- package/build/index.esm.js +42 -0
- package/build/index.esm.js.map +1 -1
- package/build/index.js +42 -0
- package/build/index.js.map +1 -1
- package/build/types/inputs/Input.d.ts +4 -8
- package/build/types/inputs/Input.d.ts.map +1 -1
- package/build/types/inputs/TextArea.d.ts +4 -7
- package/build/types/inputs/TextArea.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/i18n/cs.json +3 -0
- package/src/i18n/de.json +3 -0
- package/src/i18n/es.json +3 -0
- package/src/i18n/fr.json +3 -0
- package/src/i18n/hu.json +3 -0
- package/src/i18n/id.json +3 -0
- package/src/i18n/it.json +3 -0
- package/src/i18n/ja.json +3 -0
- package/src/i18n/pl.json +3 -0
- package/src/i18n/pt.json +3 -0
- package/src/i18n/ro.json +3 -0
- package/src/i18n/ru.json +3 -0
- package/src/i18n/th.json +3 -0
- package/src/i18n/tr.json +3 -0
- package/src/i18n/uk.json +3 -0
- package/src/i18n/zh-CN.json +3 -0
- package/src/inputs/Input.tsx +8 -7
- package/src/inputs/TextArea.tsx +7 -6
- package/build/i18n/zh-HK.json +0 -41
- package/src/i18n/zh-HK.json +0 -41
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { SizeLarge, SizeMedium, SizeSmall } from '../common';
|
|
3
3
|
import { Merge } from '../utils';
|
|
4
|
-
export
|
|
4
|
+
export interface InputProps extends Merge<React.ComponentPropsWithRef<'input'>, {
|
|
5
5
|
size?: 'auto' | SizeSmall | SizeMedium | SizeLarge;
|
|
6
6
|
'aria-invalid'?: boolean;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}, "size" | "aria-invalid"> & {
|
|
11
|
-
size?: "auto" | "sm" | "md" | "lg" | undefined;
|
|
12
|
-
'aria-invalid'?: boolean | undefined;
|
|
13
|
-
}, "id" | "size" | "form" | "slot" | "style" | "title" | "pattern" | "key" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "disabled" | "enterKeyHint" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "list" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "placeholder" | "readOnly" | "required" | "src" | "step" | "type" | "value" | "width" | "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "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" | "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"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
7
|
+
}> {
|
|
8
|
+
}
|
|
9
|
+
export declare const Input: import("react").ForwardRefExoticComponent<Pick<InputProps, "id" | "size" | "form" | "slot" | "style" | "title" | "pattern" | "key" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "disabled" | "enterKeyHint" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "list" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "placeholder" | "readOnly" | "required" | "src" | "step" | "type" | "value" | "width" | "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "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" | "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"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
14
10
|
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/inputs/Input.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAIjC,MAAM,
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/inputs/Input.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAIjC,MAAM,WAAW,UACf,SAAQ,KAAK,CACX,KAAK,CAAC,qBAAqB,CAAC,OAAO,CAAC,EACpC;IACE,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;IACnD,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CACF;CAAG;AAEN,eAAO,MAAM,KAAK,+gKAWhB,CAAC"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Merge } from '../utils';
|
|
3
|
-
export
|
|
3
|
+
export interface TextAreaProps extends Merge<React.ComponentPropsWithRef<'textarea'>, {
|
|
4
4
|
'aria-invalid'?: boolean;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}, "aria-invalid"> & {
|
|
9
|
-
'aria-invalid'?: boolean | undefined;
|
|
10
|
-
}, "id" | "form" | "slot" | "style" | "title" | "key" | "autoComplete" | "disabled" | "maxLength" | "minLength" | "name" | "placeholder" | "readOnly" | "required" | "value" | "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "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" | "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" | "cols" | "dirName" | "rows" | "wrap"> & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
5
|
+
}> {
|
|
6
|
+
}
|
|
7
|
+
export declare const TextArea: import("react").ForwardRefExoticComponent<Pick<TextAreaProps, "id" | "form" | "slot" | "style" | "title" | "key" | "autoComplete" | "disabled" | "maxLength" | "minLength" | "name" | "placeholder" | "readOnly" | "required" | "value" | "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "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" | "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" | "cols" | "dirName" | "rows" | "wrap"> & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
11
8
|
//# sourceMappingURL=TextArea.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../src/inputs/TextArea.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAIjC,MAAM,
|
|
1
|
+
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../src/inputs/TextArea.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAIjC,MAAM,WAAW,aACf,SAAQ,KAAK,CACX,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,EACvC;IACE,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CACF;CAAG;AAEN,eAAO,MAAM,QAAQ,szJAWnB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@transferwise/components",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-fd17016",
|
|
4
4
|
"description": "Neptune React components",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -78,13 +78,13 @@
|
|
|
78
78
|
"storybook": "^7.0.6",
|
|
79
79
|
"@transferwise/less-config": "3.0.6",
|
|
80
80
|
"@transferwise/neptune-css": "14.5.2",
|
|
81
|
-
"@wise/components-theming": "0.
|
|
81
|
+
"@wise/components-theming": "0.8.3"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
84
|
"@transferwise/icons": "^3.7.0",
|
|
85
85
|
"@transferwise/neptune-css": "^14.5.2",
|
|
86
86
|
"@wise/art": "^2",
|
|
87
|
-
"@wise/components-theming": "0.
|
|
87
|
+
"@wise/components-theming": "^0.8.3",
|
|
88
88
|
"currency-flags": "^4.0.2",
|
|
89
89
|
"react": ">=16.14",
|
|
90
90
|
"react-dom": ">=16.14",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"@popperjs/core": "^2.6.0",
|
|
102
102
|
"@react-spring/web": "~9.6.1",
|
|
103
103
|
"@transferwise/formatting": "^2.1.0",
|
|
104
|
-
"@transferwise/neptune-validation": "
|
|
104
|
+
"@transferwise/neptune-validation": "^3.1.0",
|
|
105
105
|
"@types/lodash.throttle": "^4.1.7",
|
|
106
106
|
"classnames": "^2.2.6",
|
|
107
107
|
"commonmark": "0.29.1",
|
package/src/i18n/cs.json
CHANGED
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
"neptune.DateInput.month.label": "Měsíc",
|
|
7
7
|
"neptune.DateInput.year.label": "Rok",
|
|
8
8
|
"neptune.MoneyInput.Select.placeholder": "Vybrat možnost...",
|
|
9
|
+
"neptune.Pagination.ariaLabel": "Navigace v Pagination",
|
|
10
|
+
"neptune.PaginationLink.ariaLabel.active": "Přejít na stránku {pageNumber}",
|
|
11
|
+
"neptune.PaginationLink.ariaLabel.inactive": "Současná stránka, stránka {pageNumber}",
|
|
9
12
|
"neptune.Select.searchPlaceholder": "Hledat...",
|
|
10
13
|
"neptune.Summary.statusDone": "Položka dokončena",
|
|
11
14
|
"neptune.Summary.statusNotDone": "Položka k dokončení",
|
package/src/i18n/de.json
CHANGED
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
"neptune.DateInput.month.label": "Monat",
|
|
7
7
|
"neptune.DateInput.year.label": "Jahr",
|
|
8
8
|
"neptune.MoneyInput.Select.placeholder": "Wähle eine der Möglichkeiten aus...",
|
|
9
|
+
"neptune.Pagination.ariaLabel": "Seitennummer-Navigation",
|
|
10
|
+
"neptune.PaginationLink.ariaLabel.active": "Weiter zur Seite {pageNumber}",
|
|
11
|
+
"neptune.PaginationLink.ariaLabel.inactive": "Aktuelle Seite – Seite {pageNumber}",
|
|
9
12
|
"neptune.Select.searchPlaceholder": "Wird gesucht...",
|
|
10
13
|
"neptune.Summary.statusDone": "Schritt erledigt",
|
|
11
14
|
"neptune.Summary.statusNotDone": "Schritt noch zu erledigen",
|
package/src/i18n/es.json
CHANGED
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
"neptune.DateInput.month.label": "Mes",
|
|
7
7
|
"neptune.DateInput.year.label": "Año",
|
|
8
8
|
"neptune.MoneyInput.Select.placeholder": "Selecciona una opción...",
|
|
9
|
+
"neptune.Pagination.ariaLabel": "Navegación por las páginas",
|
|
10
|
+
"neptune.PaginationLink.ariaLabel.active": "Ve a la página {pageNumber}",
|
|
11
|
+
"neptune.PaginationLink.ariaLabel.inactive": "Página actual, página {pageNumber}",
|
|
9
12
|
"neptune.Select.searchPlaceholder": "Buscar...",
|
|
10
13
|
"neptune.Summary.statusDone": "Apartado listo",
|
|
11
14
|
"neptune.Summary.statusNotDone": "Apartado a completar",
|
package/src/i18n/fr.json
CHANGED
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
"neptune.DateInput.month.label": "Mois",
|
|
7
7
|
"neptune.DateInput.year.label": "Année",
|
|
8
8
|
"neptune.MoneyInput.Select.placeholder": "Sélectionner une option...",
|
|
9
|
+
"neptune.Pagination.ariaLabel": "Navigation par pagination",
|
|
10
|
+
"neptune.PaginationLink.ariaLabel.active": "Aller à la page {pageNumber}",
|
|
11
|
+
"neptune.PaginationLink.ariaLabel.inactive": "Page actuelle, page {pageNumber}",
|
|
9
12
|
"neptune.Select.searchPlaceholder": "Recherche...",
|
|
10
13
|
"neptune.Summary.statusDone": "Validé",
|
|
11
14
|
"neptune.Summary.statusNotDone": "À compléter",
|
package/src/i18n/hu.json
CHANGED
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
"neptune.DateInput.month.label": "Hónap",
|
|
7
7
|
"neptune.DateInput.year.label": "Év",
|
|
8
8
|
"neptune.MoneyInput.Select.placeholder": "Válassz ki egy lehetőséget...",
|
|
9
|
+
"neptune.Pagination.ariaLabel": "Lapszámos navigáció",
|
|
10
|
+
"neptune.PaginationLink.ariaLabel.active": "Ugrás a(z) {pageNumber}. oldalra",
|
|
11
|
+
"neptune.PaginationLink.ariaLabel.inactive": "Jelenlegi oldal, {pageNumber}. oldal",
|
|
9
12
|
"neptune.Select.searchPlaceholder": "Keresés...",
|
|
10
13
|
"neptune.Summary.statusDone": "Kész",
|
|
11
14
|
"neptune.Summary.statusNotDone": "Hátravan",
|
package/src/i18n/id.json
CHANGED
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
"neptune.DateInput.month.label": "Bulan",
|
|
7
7
|
"neptune.DateInput.year.label": "Tahun",
|
|
8
8
|
"neptune.MoneyInput.Select.placeholder": "Pilih opsi...",
|
|
9
|
+
"neptune.Pagination.ariaLabel": "Halaman navigasi",
|
|
10
|
+
"neptune.PaginationLink.ariaLabel.active": "Lanjut ke halaman {pageNumber}",
|
|
11
|
+
"neptune.PaginationLink.ariaLabel.inactive": "Halaman saat ini, halaman {pageNumber}",
|
|
9
12
|
"neptune.Select.searchPlaceholder": "Cari...",
|
|
10
13
|
"neptune.Summary.statusDone": "Item selesai",
|
|
11
14
|
"neptune.Summary.statusNotDone": "Item yang harus dilakukan",
|
package/src/i18n/it.json
CHANGED
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
"neptune.DateInput.month.label": "Mese",
|
|
7
7
|
"neptune.DateInput.year.label": "Anno",
|
|
8
8
|
"neptune.MoneyInput.Select.placeholder": "Seleziona un'opzione...",
|
|
9
|
+
"neptune.Pagination.ariaLabel": "Navigazione",
|
|
10
|
+
"neptune.PaginationLink.ariaLabel.active": "Via a pagina {pageNumber}",
|
|
11
|
+
"neptune.PaginationLink.ariaLabel.inactive": "Pagina corrente, pagina {pageNumber}",
|
|
9
12
|
"neptune.Select.searchPlaceholder": "Cerca...",
|
|
10
13
|
"neptune.Summary.statusDone": "Completato",
|
|
11
14
|
"neptune.Summary.statusNotDone": "Da completare",
|
package/src/i18n/ja.json
CHANGED
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
"neptune.DateInput.month.label": "月",
|
|
7
7
|
"neptune.DateInput.year.label": "年",
|
|
8
8
|
"neptune.MoneyInput.Select.placeholder": "選択してください...",
|
|
9
|
+
"neptune.Pagination.ariaLabel": "ページネーションナビゲーション",
|
|
10
|
+
"neptune.PaginationLink.ariaLabel.active": "{pageNumber}のページへ移動します",
|
|
11
|
+
"neptune.PaginationLink.ariaLabel.inactive": "現在のページ、{pageNumber}ページ",
|
|
9
12
|
"neptune.Select.searchPlaceholder": "検索... ",
|
|
10
13
|
"neptune.Summary.statusDone": "完了",
|
|
11
14
|
"neptune.Summary.statusNotDone": "未対応",
|
package/src/i18n/pl.json
CHANGED
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
"neptune.DateInput.month.label": "Miesiąc",
|
|
7
7
|
"neptune.DateInput.year.label": "Rok",
|
|
8
8
|
"neptune.MoneyInput.Select.placeholder": "Wybierz opcję...",
|
|
9
|
+
"neptune.Pagination.ariaLabel": "Nawigacja w paginacji",
|
|
10
|
+
"neptune.PaginationLink.ariaLabel.active": "Przejdź do strony {pageNumber}",
|
|
11
|
+
"neptune.PaginationLink.ariaLabel.inactive": "Obecna strona, strona {pageNumber}",
|
|
9
12
|
"neptune.Select.searchPlaceholder": "Wyszukaj...",
|
|
10
13
|
"neptune.Summary.statusDone": "Czynność wykonana",
|
|
11
14
|
"neptune.Summary.statusNotDone": "Czynność do wykonania",
|
package/src/i18n/pt.json
CHANGED
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
"neptune.DateInput.month.label": "Mês",
|
|
7
7
|
"neptune.DateInput.year.label": "Ano",
|
|
8
8
|
"neptune.MoneyInput.Select.placeholder": "Escolha uma opção...",
|
|
9
|
+
"neptune.Pagination.ariaLabel": "Navegação pelas páginas",
|
|
10
|
+
"neptune.PaginationLink.ariaLabel.active": "Ir para a página {pageNumber}",
|
|
11
|
+
"neptune.PaginationLink.ariaLabel.inactive": "Página atual, página {pageNumber}",
|
|
9
12
|
"neptune.Select.searchPlaceholder": "Buscar...",
|
|
10
13
|
"neptune.Summary.statusDone": "Pronto",
|
|
11
14
|
"neptune.Summary.statusNotDone": "Não iniciado",
|
package/src/i18n/ro.json
CHANGED
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
"neptune.DateInput.month.label": "Lună",
|
|
7
7
|
"neptune.DateInput.year.label": "An",
|
|
8
8
|
"neptune.MoneyInput.Select.placeholder": "Selectează o opţiune...",
|
|
9
|
+
"neptune.Pagination.ariaLabel": "Navigare prin pagină",
|
|
10
|
+
"neptune.PaginationLink.ariaLabel.active": "Du-te la pagina {pageNumber}",
|
|
11
|
+
"neptune.PaginationLink.ariaLabel.inactive": "Pagina curentă, pagina {pageNumber}",
|
|
9
12
|
"neptune.Select.searchPlaceholder": "Caută...",
|
|
10
13
|
"neptune.Summary.statusDone": "Finalizat",
|
|
11
14
|
"neptune.Summary.statusNotDone": "De făcut",
|
package/src/i18n/ru.json
CHANGED
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
"neptune.DateInput.month.label": "Месяц",
|
|
7
7
|
"neptune.DateInput.year.label": "Год",
|
|
8
8
|
"neptune.MoneyInput.Select.placeholder": "Выберите вариант...",
|
|
9
|
+
"neptune.Pagination.ariaLabel": "Постраничная навигация",
|
|
10
|
+
"neptune.PaginationLink.ariaLabel.active": "Перейти на страницу {pageNumber}",
|
|
11
|
+
"neptune.PaginationLink.ariaLabel.inactive": "Текущая страница, страница {pageNumber}",
|
|
9
12
|
"neptune.Select.searchPlaceholder": "Поиск...",
|
|
10
13
|
"neptune.Summary.statusDone": "Этап завершен",
|
|
11
14
|
"neptune.Summary.statusNotDone": "Этап к выполнению",
|
package/src/i18n/th.json
CHANGED
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
"neptune.DateInput.month.label": "เดือน",
|
|
7
7
|
"neptune.DateInput.year.label": "ปี",
|
|
8
8
|
"neptune.MoneyInput.Select.placeholder": "เลือกตัวเลือก...",
|
|
9
|
+
"neptune.Pagination.ariaLabel": "การนำทางเลขหน้า",
|
|
10
|
+
"neptune.PaginationLink.ariaLabel.active": "ไปที่หน้า {pageNumber}",
|
|
11
|
+
"neptune.PaginationLink.ariaLabel.inactive": "หน้าปัจจุบัน หน้า {pageNumber}",
|
|
9
12
|
"neptune.Select.searchPlaceholder": "ค้นหา...",
|
|
10
13
|
"neptune.Summary.statusDone": "รายการที่ทำแล้ว",
|
|
11
14
|
"neptune.Summary.statusNotDone": "รายการที่ต้องทำ",
|
package/src/i18n/tr.json
CHANGED
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
"neptune.DateInput.month.label": "Ay",
|
|
7
7
|
"neptune.DateInput.year.label": "Yıl",
|
|
8
8
|
"neptune.MoneyInput.Select.placeholder": "Bir seçenek seçin...",
|
|
9
|
+
"neptune.Pagination.ariaLabel": "Sayfalandırma gezintisi",
|
|
10
|
+
"neptune.PaginationLink.ariaLabel.active": "{pageNumber} numaralı sayfaya git",
|
|
11
|
+
"neptune.PaginationLink.ariaLabel.inactive": "Mevcut sayfa, sayfa {pageNumber}",
|
|
9
12
|
"neptune.Select.searchPlaceholder": "Ara...",
|
|
10
13
|
"neptune.Summary.statusDone": "Tamamlanan aşama",
|
|
11
14
|
"neptune.Summary.statusNotDone": "Yapılacak",
|
package/src/i18n/uk.json
CHANGED
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
"neptune.DateInput.month.label": "Місяць",
|
|
7
7
|
"neptune.DateInput.year.label": "Рік",
|
|
8
8
|
"neptune.MoneyInput.Select.placeholder": "Виберіть варіант…",
|
|
9
|
+
"neptune.Pagination.ariaLabel": "Перехід за сторінками",
|
|
10
|
+
"neptune.PaginationLink.ariaLabel.active": "Перейти на сторінку {pageNumber}",
|
|
11
|
+
"neptune.PaginationLink.ariaLabel.inactive": "Ця сторінка, сторінка {pageNumber}",
|
|
9
12
|
"neptune.Select.searchPlaceholder": "Пошук…",
|
|
10
13
|
"neptune.Summary.statusDone": "Виконано",
|
|
11
14
|
"neptune.Summary.statusNotDone": "Не виконано",
|
package/src/i18n/zh-CN.json
CHANGED
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
"neptune.DateInput.month.label": "月",
|
|
7
7
|
"neptune.DateInput.year.label": "年",
|
|
8
8
|
"neptune.MoneyInput.Select.placeholder": "请选择...",
|
|
9
|
+
"neptune.Pagination.ariaLabel": "分页导航",
|
|
10
|
+
"neptune.PaginationLink.ariaLabel.active": "转到第 {pageNumber} 页",
|
|
11
|
+
"neptune.PaginationLink.ariaLabel.inactive": "当前页面,第 {pageNumber} 页",
|
|
9
12
|
"neptune.Select.searchPlaceholder": "搜索",
|
|
10
13
|
"neptune.Summary.statusDone": "已完成",
|
|
11
14
|
"neptune.Summary.statusNotDone": "未完成",
|
package/src/inputs/Input.tsx
CHANGED
|
@@ -6,13 +6,14 @@ import { Merge } from '../utils';
|
|
|
6
6
|
|
|
7
7
|
import { formControlClassNameBase } from './_common';
|
|
8
8
|
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
export interface InputProps
|
|
10
|
+
extends Merge<
|
|
11
|
+
React.ComponentPropsWithRef<'input'>,
|
|
12
|
+
{
|
|
13
|
+
size?: 'auto' | SizeSmall | SizeMedium | SizeLarge;
|
|
14
|
+
'aria-invalid'?: boolean;
|
|
15
|
+
}
|
|
16
|
+
> {}
|
|
16
17
|
|
|
17
18
|
export const Input = forwardRef(function Input(
|
|
18
19
|
{ size = 'auto', className, ...restProps }: InputProps,
|
package/src/inputs/TextArea.tsx
CHANGED
|
@@ -5,12 +5,13 @@ import { Merge } from '../utils';
|
|
|
5
5
|
|
|
6
6
|
import { formControlClassNameBase } from './_common';
|
|
7
7
|
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
export interface TextAreaProps
|
|
9
|
+
extends Merge<
|
|
10
|
+
React.ComponentPropsWithRef<'textarea'>,
|
|
11
|
+
{
|
|
12
|
+
'aria-invalid'?: boolean;
|
|
13
|
+
}
|
|
14
|
+
> {}
|
|
14
15
|
|
|
15
16
|
export const TextArea = forwardRef(function TextArea(
|
|
16
17
|
{ className, ...restProps }: TextAreaProps,
|
package/build/i18n/zh-HK.json
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"neptune.Chips.ariaLabel": "清除{choice}",
|
|
3
|
-
"neptune.ClearButton.ariaLabel": "清除",
|
|
4
|
-
"neptune.CloseButton.ariaLabel": "關閉",
|
|
5
|
-
"neptune.DateInput.day.label": "日",
|
|
6
|
-
"neptune.DateInput.month.label": "月",
|
|
7
|
-
"neptune.DateInput.year.label": "年",
|
|
8
|
-
"neptune.MoneyInput.Select.placeholder": "選擇一個選項…",
|
|
9
|
-
"neptune.Select.searchPlaceholder": "搜尋…",
|
|
10
|
-
"neptune.Summary.statusDone": "已完成事項",
|
|
11
|
-
"neptune.Summary.statusNotDone": "未完成事項",
|
|
12
|
-
"neptune.Summary.statusPending": "待處理事項",
|
|
13
|
-
"neptune.Upload.csButtonText": "上載另一個檔案?",
|
|
14
|
-
"neptune.Upload.csFailureText": "上載失敗,請重試。",
|
|
15
|
-
"neptune.Upload.csSuccessText": "上載完成!",
|
|
16
|
-
"neptune.Upload.csTooLargeMessage": "請提供小於5MB的檔案",
|
|
17
|
-
"neptune.Upload.csWrongTypeMessage": "不支持檔案類型,請使用其他檔案重試",
|
|
18
|
-
"neptune.Upload.psButtonText": "取消",
|
|
19
|
-
"neptune.Upload.psProcessingText": "上載中...",
|
|
20
|
-
"neptune.Upload.usButtonText": "或者選擇一個檔案",
|
|
21
|
-
"neptune.Upload.usDropMessage": "拖放檔案以開始上載",
|
|
22
|
-
"neptune.Upload.usPlaceholder": "拖放不超過5MB的檔案",
|
|
23
|
-
"neptune.UploadButton.allFileTypes": "所有檔案類型",
|
|
24
|
-
"neptune.UploadButton.dropFiles": "拖放檔案以開始上載",
|
|
25
|
-
"neptune.UploadButton.instructions": "{fileTypes},小於{size}MB",
|
|
26
|
-
"neptune.UploadButton.uploadFile": "上載檔案",
|
|
27
|
-
"neptune.UploadButton.uploadFiles": "上載檔案",
|
|
28
|
-
"neptune.UploadInput.deleteModalBody": "移除此檔案會把它從我們的系統中刪除。",
|
|
29
|
-
"neptune.UploadInput.deleteModalCancelButtonText": "取消",
|
|
30
|
-
"neptune.UploadInput.deleteModalConfirmButtonText": "移除",
|
|
31
|
-
"neptune.UploadInput.deleteModalTitle": "你確定要移除此檔案嗎?",
|
|
32
|
-
"neptune.UploadInput.fileIsTooLarge": "檔案太大",
|
|
33
|
-
"neptune.UploadInput.fileTypeNotSupported": "不支持檔案類型",
|
|
34
|
-
"neptune.UploadInput.maximumFilesAlreadyUploaded": "抱歉,這次上載失敗,因為我們每次最多只能接受{maxFilesAllowed}個檔案。",
|
|
35
|
-
"neptune.UploadItem.deleting": "刪除中…",
|
|
36
|
-
"neptune.UploadItem.removeFile": "移除檔案{filename}",
|
|
37
|
-
"neptune.UploadItem.uploaded": "已上載",
|
|
38
|
-
"neptune.UploadItem.uploadedFile": "已上載檔案",
|
|
39
|
-
"neptune.UploadItem.uploading": "上載中...",
|
|
40
|
-
"neptune.UploadItem.uploadingFailed": "上載失敗"
|
|
41
|
-
}
|
package/src/i18n/zh-HK.json
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"neptune.Chips.ariaLabel": "清除{choice}",
|
|
3
|
-
"neptune.ClearButton.ariaLabel": "清除",
|
|
4
|
-
"neptune.CloseButton.ariaLabel": "關閉",
|
|
5
|
-
"neptune.DateInput.day.label": "日",
|
|
6
|
-
"neptune.DateInput.month.label": "月",
|
|
7
|
-
"neptune.DateInput.year.label": "年",
|
|
8
|
-
"neptune.MoneyInput.Select.placeholder": "選擇一個選項…",
|
|
9
|
-
"neptune.Select.searchPlaceholder": "搜尋…",
|
|
10
|
-
"neptune.Summary.statusDone": "已完成事項",
|
|
11
|
-
"neptune.Summary.statusNotDone": "未完成事項",
|
|
12
|
-
"neptune.Summary.statusPending": "待處理事項",
|
|
13
|
-
"neptune.Upload.csButtonText": "上載另一個檔案?",
|
|
14
|
-
"neptune.Upload.csFailureText": "上載失敗,請重試。",
|
|
15
|
-
"neptune.Upload.csSuccessText": "上載完成!",
|
|
16
|
-
"neptune.Upload.csTooLargeMessage": "請提供小於5MB的檔案",
|
|
17
|
-
"neptune.Upload.csWrongTypeMessage": "不支持檔案類型,請使用其他檔案重試",
|
|
18
|
-
"neptune.Upload.psButtonText": "取消",
|
|
19
|
-
"neptune.Upload.psProcessingText": "上載中...",
|
|
20
|
-
"neptune.Upload.usButtonText": "或者選擇一個檔案",
|
|
21
|
-
"neptune.Upload.usDropMessage": "拖放檔案以開始上載",
|
|
22
|
-
"neptune.Upload.usPlaceholder": "拖放不超過5MB的檔案",
|
|
23
|
-
"neptune.UploadButton.allFileTypes": "所有檔案類型",
|
|
24
|
-
"neptune.UploadButton.dropFiles": "拖放檔案以開始上載",
|
|
25
|
-
"neptune.UploadButton.instructions": "{fileTypes},小於{size}MB",
|
|
26
|
-
"neptune.UploadButton.uploadFile": "上載檔案",
|
|
27
|
-
"neptune.UploadButton.uploadFiles": "上載檔案",
|
|
28
|
-
"neptune.UploadInput.deleteModalBody": "移除此檔案會把它從我們的系統中刪除。",
|
|
29
|
-
"neptune.UploadInput.deleteModalCancelButtonText": "取消",
|
|
30
|
-
"neptune.UploadInput.deleteModalConfirmButtonText": "移除",
|
|
31
|
-
"neptune.UploadInput.deleteModalTitle": "你確定要移除此檔案嗎?",
|
|
32
|
-
"neptune.UploadInput.fileIsTooLarge": "檔案太大",
|
|
33
|
-
"neptune.UploadInput.fileTypeNotSupported": "不支持檔案類型",
|
|
34
|
-
"neptune.UploadInput.maximumFilesAlreadyUploaded": "抱歉,這次上載失敗,因為我們每次最多只能接受{maxFilesAllowed}個檔案。",
|
|
35
|
-
"neptune.UploadItem.deleting": "刪除中…",
|
|
36
|
-
"neptune.UploadItem.removeFile": "移除檔案{filename}",
|
|
37
|
-
"neptune.UploadItem.uploaded": "已上載",
|
|
38
|
-
"neptune.UploadItem.uploadedFile": "已上載檔案",
|
|
39
|
-
"neptune.UploadItem.uploading": "上載中...",
|
|
40
|
-
"neptune.UploadItem.uploadingFailed": "上載失敗"
|
|
41
|
-
}
|