linear-react-components-ui 1.1.24-beta.2 → 1.1.24-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/BaseMask-0c14ef51.d.ts +24 -0
- package/lib/Cnpj-bde01dd0.d.ts +18 -0
- package/lib/Cpf-3fa496ad.d.ts +18 -0
- package/lib/Phone-2bb0b397.d.ts +18 -0
- package/lib/ZipCode-09460e18.d.ts +13 -0
- package/lib/assets/styles/numberfield.scss +18 -0
- package/lib/buttons/DefaultButton.js +17 -7
- package/lib/dialog/base/index.js +2 -2
- package/lib/form2/index.d.ts +1 -1
- package/lib/form2/useForm/index.js +3 -4
- package/lib/icons/helper.d.ts +20 -0
- package/lib/icons/helper.js +20 -0
- package/lib/index-3b70931d.d.ts +44 -0
- package/lib/index-789dd9a5.d.ts +41 -0
- package/lib/index-7ad68789.d.ts +15 -0
- package/lib/index-9e576346.d.ts +23 -0
- package/lib/index-c512803d.d.ts +23 -0
- package/lib/index-ecafc8c6.d.ts +30 -0
- package/lib/inputs/base/InputTextBase.js +4 -2
- package/lib/inputs/base/types.d.ts +1 -1
- package/lib/inputs/color/types.d.ts +1 -1
- package/lib/inputs/date/types.d.ts +1 -1
- package/lib/inputs/file/DefaultFile.js +1 -1
- package/lib/inputs/mask/types.d.ts +1 -1
- package/lib/inputs/multiSelect/types.d.ts +1 -1
- package/lib/inputs/number/types.d.ts +2 -2
- package/lib/inputs2/checkboxfield/index.d.ts +1 -1
- package/lib/inputs2/checkboxfield/index.js +6 -2
- package/lib/inputs2/colorfield/index.d.ts +2 -2
- package/lib/inputs2/date/base/index.js +6 -2
- package/lib/inputs2/date/datefield/calendarbox.d.ts +1 -1
- package/lib/inputs2/date/dateperiodfield/calendarbox.d.ts +1 -1
- package/lib/inputs2/date/dateperiodfield/calendarbox.js +0 -28
- package/lib/inputs2/index.d.ts +15 -15
- package/lib/inputs2/index.js +7 -13
- package/lib/inputs2/mask/BaseMask.d.ts +2 -2
- package/lib/inputs2/mask/Cnpj.d.ts +3 -3
- package/lib/inputs2/mask/Cpf.d.ts +3 -3
- package/lib/inputs2/mask/Phone.d.ts +3 -3
- package/lib/inputs2/mask/ZipCode.d.ts +3 -3
- package/lib/inputs2/numberfield/currency.d.ts +13 -0
- package/lib/inputs2/{number/BaseNumber.js → numberfield/currency.js} +63 -58
- package/lib/inputs2/numberfield/decimal.d.ts +13 -0
- package/lib/inputs2/numberfield/decimal.js +85 -0
- package/lib/inputs2/numberfield/helpers.d.ts +30 -0
- package/lib/inputs2/numberfield/helpers.js +53 -0
- package/lib/inputs2/numberfield/index.d.ts +12 -0
- package/lib/inputs2/numberfield/index.js +104 -0
- package/lib/inputs2/numberfield/types.d.ts +36 -0
- package/lib/inputs2/numberfield/types.js +5 -0
- package/lib/inputs2/radiofield/index.d.ts +1 -1
- package/lib/inputs2/selectfield/index.d.ts +1 -1
- package/lib/inputs2/selectfield/index.js +7 -5
- package/lib/inputs2/selectfield/item.d.ts +1 -1
- package/lib/inputs2/selectfield/listbox.d.ts +1 -1
- package/lib/inputs2/selectfield/search.d.ts +1 -1
- package/lib/inputs2/selectfield/selections.d.ts +1 -1
- package/lib/inputs2/selectfield/types.d.ts +1 -1
- package/lib/inputs2/slot/index.d.ts +2 -2
- package/lib/inputs2/textfield/index.d.ts +1 -1
- package/lib/inputs2/textfield/index.js +12 -9
- package/lib/popover/PopoverText.js +11 -2
- package/lib/popover/index.js +1 -0
- package/lib/popover/types.d.ts +1 -0
- package/package.json +1 -1
- package/lib/BaseMask-4885b7c4.d.ts +0 -24
- package/lib/BaseNumber-ba047ec3.d.ts +0 -23
- package/lib/Cnpj-501f8fed.d.ts +0 -18
- package/lib/Cpf-0e03d85a.d.ts +0 -18
- package/lib/Currency-d8dae30c.d.ts +0 -18
- package/lib/Decimal-deda637f.d.ts +0 -13
- package/lib/Number-4783f0de.d.ts +0 -20
- package/lib/Phone-99e92c22.d.ts +0 -18
- package/lib/ZipCode-3d092264.d.ts +0 -13
- package/lib/index-6f287e6c.d.ts +0 -23
- package/lib/index-a0c1207e.d.ts +0 -15
- package/lib/index-a68cfaf7.d.ts +0 -23
- package/lib/index-f6f0d3a8.d.ts +0 -44
- package/lib/index-f9981b49.d.ts +0 -41
- package/lib/inputs2/number/BaseNumber.d.ts +0 -10
- package/lib/inputs2/number/Currency.d.ts +0 -11
- package/lib/inputs2/number/Currency.js +0 -47
- package/lib/inputs2/number/Decimal.d.ts +0 -11
- package/lib/inputs2/number/Decimal.js +0 -36
- package/lib/inputs2/number/Number.d.ts +0 -9
- package/lib/inputs2/number/Number.js +0 -49
- package/lib/inputs2/number/format_number.d.ts +0 -5
- package/lib/inputs2/number/format_number.js +0 -29
package/lib/index-a0c1207e.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
import { RadioFieldInputProps } from './inputs2/radiofield/types.js';
|
|
3
|
-
|
|
4
|
-
declare const Input: React__default.ForwardRefExoticComponent<Pick<RadioFieldInputProps, "form" | "label" | "slot" | "style" | "title" | "pattern" | "key" | "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" | "align" | "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" | "onResize" | "onResizeCapture" | "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" | "customClass" | "permissionAttr" | "size" | "skeletonize" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "tooltip" | "tooltipWidth" | "tooltipPosition" | "checked" | "required" | "labelUppercase" | "hint" | "hintPosition" | "themePopover" | "popoverAlign" | "width" | "height" | "readOnly" | "list" | "step" | "maxLength" | "textAlign" | "onDeniedActions" | "gridLayout" | "accept" | "autoComplete" | "max" | "min" | "src" | "alt" | "errors" | "customClassLabel" | "customClassWrapper" | "customClassInputContainer" | "capture" | "crossOrigin" | "enterKeyHint" | "minLength" | "getFieldValue"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
5
|
-
|
|
6
|
-
declare const index_Input: typeof Input;
|
|
7
|
-
declare const index_RadioFieldInputProps: typeof RadioFieldInputProps;
|
|
8
|
-
declare namespace index {
|
|
9
|
-
export {
|
|
10
|
-
index_Input as Input,
|
|
11
|
-
index_RadioFieldInputProps as RadioFieldInputProps,
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export { Input as I, index as i };
|
package/lib/index-a68cfaf7.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
import { LeftSlot, RightSlot } from './inputs2/slot/index.js';
|
|
3
|
-
import { Item } from './inputs2/selectfield/item.js';
|
|
4
|
-
import { SelectFieldInputProps } from './inputs2/selectfield/types.js';
|
|
5
|
-
|
|
6
|
-
declare const Input: React__default.ForwardRefExoticComponent<Pick<SelectFieldInputProps, "form" | "label" | "slot" | "style" | "title" | "pattern" | "key" | "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" | "align" | "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" | "onResize" | "onResizeCapture" | "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" | "customClass" | "permissionAttr" | "size" | "skeletonize" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "tooltip" | "tooltipWidth" | "tooltipPosition" | "checked" | "required" | "hint" | "hintPosition" | "themePopover" | "popoverAlign" | "width" | "height" | "multiple" | "readOnly" | "list" | "step" | "maxLength" | "textAlign" | "onDeniedActions" | "gridLayout" | "accept" | "autoComplete" | "showClearButton" | "searchOnDropdown" | "undigitable" | "openDropdownOnFocus" | "onSearch" | "striped" | "max" | "min" | "src" | "alt" | "errors" | "customClassLabel" | "customClassWrapper" | "customClassInputContainer" | "capture" | "crossOrigin" | "enterKeyHint" | "minLength" | "externalSearch" | "notFoundFilterLabel" | "searchInputPlaceholder" | "multipleInputLabelEmpty" | "multipleInputLabelManySelection" | "dropdownAlignButton"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
7
|
-
|
|
8
|
-
declare const index_Input: typeof Input;
|
|
9
|
-
declare const index_Item: typeof Item;
|
|
10
|
-
declare const index_LeftSlot: typeof LeftSlot;
|
|
11
|
-
declare const index_RightSlot: typeof RightSlot;
|
|
12
|
-
declare const index_SelectFieldInputProps: typeof SelectFieldInputProps;
|
|
13
|
-
declare namespace index {
|
|
14
|
-
export {
|
|
15
|
-
index_Input as Input,
|
|
16
|
-
index_Item as Item,
|
|
17
|
-
index_LeftSlot as LeftSlot,
|
|
18
|
-
index_RightSlot as RightSlot,
|
|
19
|
-
index_SelectFieldInputProps as SelectFieldInputProps,
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export { Input as I, index as i };
|
package/lib/index-f6f0d3a8.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
import { TextAlign } from './@types/Align.js';
|
|
3
|
-
import { ColorTheme } from './@types/ColorStyles.js';
|
|
4
|
-
import { HintPosition, Position } from './@types/Position.js';
|
|
5
|
-
import { PermissionAttr, OnDenied } from './@types/PermissionAttr.js';
|
|
6
|
-
import { LeftSlot, RightSlot } from './inputs2/slot/index.js';
|
|
7
|
-
import { ITooltipCommonProps } from './tooltip/types.js';
|
|
8
|
-
|
|
9
|
-
interface TextFieldInputProps extends React__default.ComponentProps<'input'>, ITooltipCommonProps {
|
|
10
|
-
hint?: string | string[];
|
|
11
|
-
label?: string;
|
|
12
|
-
errors?: string[];
|
|
13
|
-
gridLayout?: string;
|
|
14
|
-
customClass?: string;
|
|
15
|
-
customClassLabel?: string;
|
|
16
|
-
customClassWrapper?: string;
|
|
17
|
-
customClassInputContainer?: string;
|
|
18
|
-
rounded?: boolean;
|
|
19
|
-
readOnly?: boolean;
|
|
20
|
-
skeletonize?: boolean;
|
|
21
|
-
labelUppercase?: boolean;
|
|
22
|
-
textAlign?: TextAlign;
|
|
23
|
-
hintPosition?: HintPosition;
|
|
24
|
-
themePopover?: ColorTheme;
|
|
25
|
-
popoverAlign?: Extract<Position, 'left' | 'right'>;
|
|
26
|
-
permissionAttr?: PermissionAttr;
|
|
27
|
-
onDeniedActions?: OnDenied;
|
|
28
|
-
}
|
|
29
|
-
declare const Input: React__default.ForwardRefExoticComponent<Pick<TextFieldInputProps, "form" | "label" | "slot" | "style" | "title" | "pattern" | "key" | "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" | "align" | "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" | "onResize" | "onResizeCapture" | "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" | "customClass" | "permissionAttr" | "size" | "skeletonize" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "tooltip" | "tooltipWidth" | "tooltipPosition" | "checked" | "required" | "labelUppercase" | "hint" | "hintPosition" | "themePopover" | "popoverAlign" | "width" | "height" | "multiple" | "readOnly" | "list" | "step" | "maxLength" | "textAlign" | "rounded" | "onDeniedActions" | "gridLayout" | "accept" | "autoComplete" | "max" | "min" | "src" | "alt" | "errors" | "customClassLabel" | "customClassWrapper" | "customClassInputContainer" | "capture" | "crossOrigin" | "enterKeyHint" | "minLength"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
30
|
-
|
|
31
|
-
declare const index_Input: typeof Input;
|
|
32
|
-
declare const index_LeftSlot: typeof LeftSlot;
|
|
33
|
-
declare const index_RightSlot: typeof RightSlot;
|
|
34
|
-
type index_TextFieldInputProps = TextFieldInputProps;
|
|
35
|
-
declare namespace index {
|
|
36
|
-
export {
|
|
37
|
-
index_Input as Input,
|
|
38
|
-
index_LeftSlot as LeftSlot,
|
|
39
|
-
index_RightSlot as RightSlot,
|
|
40
|
-
index_TextFieldInputProps as TextFieldInputProps,
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export { Input as I, TextFieldInputProps as T, index as i };
|
package/lib/index-f9981b49.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
import { Size } from './@types/Size.js';
|
|
3
|
-
import { ColorTheme } from './@types/ColorStyles.js';
|
|
4
|
-
import { ITooltipCommonProps } from './tooltip/types.js';
|
|
5
|
-
import { HintPosition, Position } from './@types/Position.js';
|
|
6
|
-
import { PermissionAttr, OnDenied } from './@types/PermissionAttr.js';
|
|
7
|
-
|
|
8
|
-
type InputHTMLProps = Omit<React__default.ComponentProps<'input'>, 'size' | 'type'>;
|
|
9
|
-
interface CheckboxFieldInputProps extends InputHTMLProps, ITooltipCommonProps {
|
|
10
|
-
hint?: string | string[];
|
|
11
|
-
label?: string;
|
|
12
|
-
size?: Exclude<Size, 'mini'>;
|
|
13
|
-
variant?: 'default' | 'secondary';
|
|
14
|
-
errors?: string[];
|
|
15
|
-
gridLayout?: string;
|
|
16
|
-
customClass?: string;
|
|
17
|
-
customClassLabel?: string;
|
|
18
|
-
customClassWrapper?: string;
|
|
19
|
-
customClassInputContainer?: string;
|
|
20
|
-
rounded?: boolean;
|
|
21
|
-
readOnly?: boolean;
|
|
22
|
-
skeletonize?: boolean;
|
|
23
|
-
labelUppercase?: boolean;
|
|
24
|
-
hintPosition?: HintPosition;
|
|
25
|
-
themePopover?: ColorTheme;
|
|
26
|
-
popoverAlign?: Extract<Position, 'left' | 'right'>;
|
|
27
|
-
permissionAttr?: PermissionAttr;
|
|
28
|
-
onDeniedActions?: OnDenied;
|
|
29
|
-
}
|
|
30
|
-
declare const Input: React__default.ForwardRefExoticComponent<Pick<CheckboxFieldInputProps, "form" | "label" | "slot" | "style" | "title" | "pattern" | "key" | "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" | "align" | "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" | "onResize" | "onResizeCapture" | "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" | "customClass" | "permissionAttr" | "size" | "skeletonize" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "tooltip" | "tooltipWidth" | "tooltipPosition" | "checked" | "required" | "labelUppercase" | "hint" | "hintPosition" | "themePopover" | "popoverAlign" | "width" | "height" | "multiple" | "readOnly" | "list" | "step" | "maxLength" | "rounded" | "onDeniedActions" | "gridLayout" | "accept" | "autoComplete" | "max" | "min" | "src" | "alt" | "errors" | "customClassLabel" | "customClassWrapper" | "customClassInputContainer" | "capture" | "crossOrigin" | "enterKeyHint" | "minLength" | "variant"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
31
|
-
|
|
32
|
-
type index_CheckboxFieldInputProps = CheckboxFieldInputProps;
|
|
33
|
-
declare const index_Input: typeof Input;
|
|
34
|
-
declare namespace index {
|
|
35
|
-
export {
|
|
36
|
-
index_CheckboxFieldInputProps as CheckboxFieldInputProps,
|
|
37
|
-
index_Input as Input,
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export { CheckboxFieldInputProps as C, Input as I, index as i };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
import 'imask';
|
|
3
|
-
import '../../index-f6f0d3a8.js';
|
|
4
|
-
export { a as BaseNumberFieldProps, I as Input } from '../../BaseNumber-ba047ec3.js';
|
|
5
|
-
import '../../@types/Align.js';
|
|
6
|
-
import '../../@types/ColorStyles.js';
|
|
7
|
-
import '../../@types/Position.js';
|
|
8
|
-
import '../../@types/PermissionAttr.js';
|
|
9
|
-
import '../slot/index.js';
|
|
10
|
-
import '../../tooltip/types.js';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
import '../../BaseNumber-ba047ec3.js';
|
|
3
|
-
export { I as Input } from '../../Currency-d8dae30c.js';
|
|
4
|
-
import 'imask';
|
|
5
|
-
import '../../index-f6f0d3a8.js';
|
|
6
|
-
import '../../@types/Align.js';
|
|
7
|
-
import '../../@types/ColorStyles.js';
|
|
8
|
-
import '../../@types/Position.js';
|
|
9
|
-
import '../../@types/PermissionAttr.js';
|
|
10
|
-
import '../slot/index.js';
|
|
11
|
-
import '../../tooltip/types.js';
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Input = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _slot = require("../slot");
|
|
9
|
-
var _BaseNumber = require("./BaseNumber");
|
|
10
|
-
const _excluded = ["currencySymbol", "min", "max", "maskOptions"];
|
|
11
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
12
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
14
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
15
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
16
|
-
const Input = exports.Input = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
17
|
-
const {
|
|
18
|
-
currencySymbol = 'R$',
|
|
19
|
-
min,
|
|
20
|
-
max,
|
|
21
|
-
maskOptions = {
|
|
22
|
-
scale: 2,
|
|
23
|
-
thousandsSeparator: '',
|
|
24
|
-
radix: ',',
|
|
25
|
-
normalizeZeros: false,
|
|
26
|
-
padFractionalZeros: true,
|
|
27
|
-
min: 0
|
|
28
|
-
}
|
|
29
|
-
} = props,
|
|
30
|
-
rest = _objectWithoutProperties(props, _excluded);
|
|
31
|
-
return /*#__PURE__*/_react.default.createElement(_BaseNumber.Input, _extends({}, rest, {
|
|
32
|
-
ref: ref,
|
|
33
|
-
min: min,
|
|
34
|
-
max: max,
|
|
35
|
-
maskOptions: maskOptions
|
|
36
|
-
}), /*#__PURE__*/_react.default.createElement(_slot.LeftSlot, {
|
|
37
|
-
style: {
|
|
38
|
-
placeContent: 'center'
|
|
39
|
-
}
|
|
40
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
41
|
-
style: {
|
|
42
|
-
padding: '0 5px'
|
|
43
|
-
},
|
|
44
|
-
className: "currency-symbol"
|
|
45
|
-
}, currencySymbol)));
|
|
46
|
-
});
|
|
47
|
-
Input.displayName = 'CurrencyInputField';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
import '../../BaseNumber-ba047ec3.js';
|
|
3
|
-
export { I as Input } from '../../Decimal-deda637f.js';
|
|
4
|
-
import 'imask';
|
|
5
|
-
import '../../index-f6f0d3a8.js';
|
|
6
|
-
import '../../@types/Align.js';
|
|
7
|
-
import '../../@types/ColorStyles.js';
|
|
8
|
-
import '../../@types/Position.js';
|
|
9
|
-
import '../../@types/PermissionAttr.js';
|
|
10
|
-
import '../slot/index.js';
|
|
11
|
-
import '../../tooltip/types.js';
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Input = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _BaseNumber = require("./BaseNumber");
|
|
9
|
-
const _excluded = ["min", "max", "maskOptions"];
|
|
10
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
11
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
12
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
13
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
14
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
15
|
-
const Input = exports.Input = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
16
|
-
const {
|
|
17
|
-
min,
|
|
18
|
-
max,
|
|
19
|
-
maskOptions = {
|
|
20
|
-
scale: 2,
|
|
21
|
-
normalizeZeros: false,
|
|
22
|
-
padFractionalZeros: true,
|
|
23
|
-
thousandsSeparator: '',
|
|
24
|
-
radix: ',',
|
|
25
|
-
min: 0
|
|
26
|
-
}
|
|
27
|
-
} = props,
|
|
28
|
-
rest = _objectWithoutProperties(props, _excluded);
|
|
29
|
-
return /*#__PURE__*/_react.default.createElement(_BaseNumber.Input, _extends({}, rest, {
|
|
30
|
-
ref: ref,
|
|
31
|
-
min: min,
|
|
32
|
-
max: max,
|
|
33
|
-
maskOptions: maskOptions
|
|
34
|
-
}));
|
|
35
|
-
});
|
|
36
|
-
Input.displayName = 'DecimalInputField';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
import '../../index-f6f0d3a8.js';
|
|
3
|
-
export { I as Input, a as NumberFieldProps } from '../../Number-4783f0de.js';
|
|
4
|
-
import '../../@types/Align.js';
|
|
5
|
-
import '../../@types/ColorStyles.js';
|
|
6
|
-
import '../../@types/Position.js';
|
|
7
|
-
import '../../@types/PermissionAttr.js';
|
|
8
|
-
import '../slot/index.js';
|
|
9
|
-
import '../../tooltip/types.js';
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Input = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactImask = require("react-imask");
|
|
9
|
-
var _textfield = require("../textfield");
|
|
10
|
-
const _excluded = ["min", "max", "name", "defaultValue", "children"];
|
|
11
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
12
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
14
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
15
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
16
|
-
const Input = exports.Input = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
17
|
-
const {
|
|
18
|
-
min,
|
|
19
|
-
max,
|
|
20
|
-
name,
|
|
21
|
-
defaultValue,
|
|
22
|
-
children = ''
|
|
23
|
-
} = props,
|
|
24
|
-
rest = _objectWithoutProperties(props, _excluded);
|
|
25
|
-
const defaultMaskOptions = {
|
|
26
|
-
min: min,
|
|
27
|
-
max: max,
|
|
28
|
-
mask: Number,
|
|
29
|
-
scale: 0,
|
|
30
|
-
normalizeZeros: false,
|
|
31
|
-
padFractionalZeros: false
|
|
32
|
-
};
|
|
33
|
-
const {
|
|
34
|
-
ref: maskInputRef
|
|
35
|
-
} = (0, _reactImask.useIMask)(defaultMaskOptions, {
|
|
36
|
-
defaultValue: defaultValue?.toString()
|
|
37
|
-
});
|
|
38
|
-
return /*#__PURE__*/_react.default.createElement(_textfield.Input, _extends({}, rest, {
|
|
39
|
-
type: "text",
|
|
40
|
-
name: name,
|
|
41
|
-
textAlign: "right",
|
|
42
|
-
ref: el => {
|
|
43
|
-
if (maskInputRef) maskInputRef.current = el;
|
|
44
|
-
if (typeof ref === 'function') ref(el);else if (ref) ref.current = el;
|
|
45
|
-
},
|
|
46
|
-
defaultValue: defaultValue
|
|
47
|
-
}), children);
|
|
48
|
-
});
|
|
49
|
-
Input.displayName = 'NumberInputField';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
declare const numberToPtBR: (value?: string | number) => string | undefined;
|
|
2
|
-
declare const numberToEnUS: (value: string | number) => string | number;
|
|
3
|
-
declare const formatOnlyNumbers: (value: string) => string;
|
|
4
|
-
|
|
5
|
-
export { formatOnlyNumbers, numberToEnUS, numberToPtBR };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.numberToPtBR = exports.numberToEnUS = exports.formatOnlyNumbers = void 0;
|
|
7
|
-
const ptBRRegex = /\b\d{1,3}(?:\.\d{3})*,\d+\b/;
|
|
8
|
-
const numberToPtBR = value => {
|
|
9
|
-
if (value !== undefined && typeof value === 'number') {
|
|
10
|
-
return value.toLocaleString('pt-BR');
|
|
11
|
-
}
|
|
12
|
-
return value;
|
|
13
|
-
};
|
|
14
|
-
exports.numberToPtBR = numberToPtBR;
|
|
15
|
-
const numberToEnUS = value => {
|
|
16
|
-
let formattedNumber;
|
|
17
|
-
const isPTBR = ptBRRegex.test(String(value));
|
|
18
|
-
if (isPTBR) {
|
|
19
|
-
formattedNumber = String(value).replaceAll('.', '').replaceAll(',', '.');
|
|
20
|
-
return formattedNumber;
|
|
21
|
-
}
|
|
22
|
-
return value;
|
|
23
|
-
};
|
|
24
|
-
exports.numberToEnUS = numberToEnUS;
|
|
25
|
-
const formatOnlyNumbers = value => {
|
|
26
|
-
const teste = value.replace(/[._\-/()\s+]/g, '');
|
|
27
|
-
return teste;
|
|
28
|
-
};
|
|
29
|
-
exports.formatOnlyNumbers = formatOnlyNumbers;
|