linear-react-components-ui 1.1.24-beta.1 → 1.1.24-beta.3

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.
Files changed (101) hide show
  1. package/lib/BaseMask-ce8dedc1.d.ts +24 -0
  2. package/lib/Cnpj-aa8c3e13.d.ts +18 -0
  3. package/lib/Cpf-d58b5482.d.ts +18 -0
  4. package/lib/Phone-8a912d9e.d.ts +18 -0
  5. package/lib/ZipCode-d4a08d23.d.ts +13 -0
  6. package/lib/assets/styles/numberfield.scss +18 -0
  7. package/lib/assets/styles/radiofield.scss +185 -0
  8. package/lib/assets/styles/textfield.scss +0 -1
  9. package/lib/buttons/DefaultButton.js +7 -17
  10. package/lib/dialog/base/index.js +1 -1
  11. package/lib/form2/index.d.ts +1 -1
  12. package/lib/form2/useForm/index.js +3 -4
  13. package/lib/icons/helper.d.ts +0 -4
  14. package/lib/icons/helper.js +0 -4
  15. package/lib/index-287b0453.d.ts +23 -0
  16. package/lib/index-35ba9ed8.d.ts +15 -0
  17. package/lib/index-4529c2ba.d.ts +44 -0
  18. package/lib/index-474db0eb.d.ts +23 -0
  19. package/lib/index-5b2c554c.d.ts +41 -0
  20. package/lib/index-ecafc8c6.d.ts +30 -0
  21. package/lib/inputs/base/InputTextBase.js +2 -4
  22. package/lib/inputs/base/types.d.ts +1 -1
  23. package/lib/inputs/color/types.d.ts +1 -1
  24. package/lib/inputs/date/types.d.ts +1 -1
  25. package/lib/inputs/file/DefaultFile.js +1 -1
  26. package/lib/inputs/mask/types.d.ts +1 -1
  27. package/lib/inputs/multiSelect/types.d.ts +1 -1
  28. package/lib/inputs/number/types.d.ts +2 -2
  29. package/lib/inputs2/checkboxfield/index.d.ts +1 -1
  30. package/lib/inputs2/checkboxfield/index.js +2 -6
  31. package/lib/inputs2/colorfield/index.d.ts +2 -2
  32. package/lib/inputs2/date/base/index.js +2 -6
  33. package/lib/inputs2/date/datefield/calendarbox.d.ts +1 -1
  34. package/lib/inputs2/date/datefield/context.d.ts +1 -0
  35. package/lib/inputs2/date/datefield/index.d.ts +1 -0
  36. package/lib/inputs2/date/datefield/index.js +6 -4
  37. package/lib/inputs2/date/datefield/types.d.ts +2 -0
  38. package/lib/inputs2/date/dateperiodfield/calendarbox.d.ts +1 -1
  39. package/lib/inputs2/date/dateperiodfield/calendarbox.js +28 -0
  40. package/lib/inputs2/date/dateperiodfield/context.d.ts +1 -0
  41. package/lib/inputs2/date/dateperiodfield/index.d.ts +1 -0
  42. package/lib/inputs2/date/dateperiodfield/index.js +8 -7
  43. package/lib/inputs2/date/dateperiodfield/types.d.ts +2 -0
  44. package/lib/inputs2/date/helpers.d.ts +1 -0
  45. package/lib/inputs2/date/types.d.ts +2 -1
  46. package/lib/inputs2/index.d.ts +18 -15
  47. package/lib/inputs2/index.js +9 -13
  48. package/lib/inputs2/mask/BaseMask.d.ts +2 -2
  49. package/lib/inputs2/mask/Cnpj.d.ts +3 -3
  50. package/lib/inputs2/mask/Cpf.d.ts +3 -3
  51. package/lib/inputs2/mask/Phone.d.ts +3 -3
  52. package/lib/inputs2/mask/ZipCode.d.ts +3 -3
  53. package/lib/inputs2/numberfield/currency.d.ts +13 -0
  54. package/lib/inputs2/{number/BaseNumber.js → numberfield/currency.js} +63 -58
  55. package/lib/inputs2/numberfield/decimal.d.ts +13 -0
  56. package/lib/inputs2/numberfield/decimal.js +85 -0
  57. package/lib/inputs2/numberfield/helpers.d.ts +30 -0
  58. package/lib/inputs2/numberfield/helpers.js +53 -0
  59. package/lib/inputs2/numberfield/index.d.ts +12 -0
  60. package/lib/inputs2/numberfield/index.js +104 -0
  61. package/lib/inputs2/numberfield/types.d.ts +36 -0
  62. package/lib/inputs2/numberfield/types.js +5 -0
  63. package/lib/inputs2/{number/Number.d.ts → radiofield/index.d.ts} +4 -4
  64. package/lib/inputs2/radiofield/index.js +143 -0
  65. package/lib/inputs2/radiofield/types.d.ts +33 -0
  66. package/lib/inputs2/radiofield/types.js +5 -0
  67. package/lib/inputs2/selectfield/index.d.ts +1 -1
  68. package/lib/inputs2/selectfield/index.js +8 -10
  69. package/lib/inputs2/selectfield/item.d.ts +1 -1
  70. package/lib/inputs2/selectfield/listbox.d.ts +1 -1
  71. package/lib/inputs2/selectfield/search.d.ts +1 -1
  72. package/lib/inputs2/selectfield/selections.d.ts +1 -1
  73. package/lib/inputs2/selectfield/types.d.ts +1 -2
  74. package/lib/inputs2/slot/index.d.ts +2 -2
  75. package/lib/inputs2/textfield/index.d.ts +1 -1
  76. package/lib/inputs2/textfield/index.js +9 -12
  77. package/lib/popover/PopoverText.js +2 -11
  78. package/lib/popover/index.js +1 -1
  79. package/lib/popover/types.d.ts +0 -1
  80. package/package.json +1 -1
  81. package/lib/BaseMask-04df8f20.d.ts +0 -24
  82. package/lib/BaseNumber-c609c5a0.d.ts +0 -23
  83. package/lib/Cnpj-5471cb1f.d.ts +0 -18
  84. package/lib/Cpf-71c4f0f4.d.ts +0 -18
  85. package/lib/Currency-38d14ff7.d.ts +0 -18
  86. package/lib/Decimal-85d45244.d.ts +0 -13
  87. package/lib/Number-db3c092d.d.ts +0 -20
  88. package/lib/Phone-4c4142e4.d.ts +0 -18
  89. package/lib/ZipCode-dc7dd4da.d.ts +0 -13
  90. package/lib/index-379b7504.d.ts +0 -44
  91. package/lib/index-7cb5e8b3.d.ts +0 -41
  92. package/lib/index-809a7899.d.ts +0 -23
  93. package/lib/index-de21a05e.d.ts +0 -23
  94. package/lib/inputs2/number/BaseNumber.d.ts +0 -10
  95. package/lib/inputs2/number/Currency.d.ts +0 -11
  96. package/lib/inputs2/number/Currency.js +0 -47
  97. package/lib/inputs2/number/Decimal.d.ts +0 -11
  98. package/lib/inputs2/number/Decimal.js +0 -36
  99. package/lib/inputs2/number/Number.js +0 -49
  100. package/lib/inputs2/number/format_number.d.ts +0 -5
  101. package/lib/inputs2/number/format_number.js +0 -29
@@ -1,23 +0,0 @@
1
- import React__default from 'react';
2
- import { LeftSlot, RightSlot } from './inputs2/slot/index.js';
3
- import { T as TextFieldInputProps } from './index-379b7504.js';
4
-
5
- interface ColorFieldInputProps extends TextFieldInputProps {
6
- isTypeText?: boolean;
7
- }
8
- declare const Input: React__default.ForwardRefExoticComponent<Pick<ColorFieldInputProps, "form" | "label" | "slot" | "style" | "title" | "children" | "pattern" | "className" | "customClass" | "key" | "width" | "height" | "align" | "name" | "onClick" | "size" | "disabled" | "color" | "tooltip" | "tooltipPosition" | "tooltipWidth" | "hidden" | "multiple" | "id" | "value" | "readOnly" | "permissionAttr" | "skeletonize" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "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" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "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" | "list" | "step" | "labelUppercase" | "maxLength" | "required" | "hint" | "hintPosition" | "textAlign" | "rounded" | "onDeniedActions" | "gridLayout" | "accept" | "autoComplete" | "themePopover" | "popoverAlign" | "checked" | "max" | "min" | "src" | "alt" | "errors" | "customClassLabel" | "customClassWrapper" | "customClassInputContainer" | "capture" | "crossOrigin" | "enterKeyHint" | "minLength" | "isTypeText"> & React__default.RefAttributes<HTMLInputElement>>;
9
-
10
- type index_ColorFieldInputProps = ColorFieldInputProps;
11
- declare const index_Input: typeof Input;
12
- declare const index_LeftSlot: typeof LeftSlot;
13
- declare const index_RightSlot: typeof RightSlot;
14
- declare namespace index {
15
- export {
16
- index_ColorFieldInputProps as ColorFieldInputProps,
17
- index_Input as Input,
18
- index_LeftSlot as LeftSlot,
19
- index_RightSlot as RightSlot,
20
- };
21
- }
22
-
23
- export { ColorFieldInputProps as C, Input as I, index as i };
@@ -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" | "children" | "pattern" | "className" | "customClass" | "key" | "width" | "height" | "align" | "name" | "onClick" | "size" | "disabled" | "color" | "tooltip" | "tooltipPosition" | "tooltipWidth" | "hidden" | "multiple" | "id" | "value" | "readOnly" | "permissionAttr" | "skeletonize" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "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" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "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" | "list" | "step" | "maxLength" | "required" | "hint" | "hintPosition" | "textAlign" | "onDeniedActions" | "gridLayout" | "accept" | "autoComplete" | "themePopover" | "popoverAlign" | "checked" | "showClearButton" | "searchOnDropdown" | "undigitable" | "openDropdownOnFocus" | "onSearch" | "striped" | "max" | "min" | "src" | "alt" | "errors" | "customClassLabel" | "customClassWrapper" | "customClassInputContainer" | "capture" | "crossOrigin" | "enterKeyHint" | "minLength" | "externalSearch" | "notFoundFilterLabel" | "searchInputPlaceholder" | "multipleInputLabelEmpty" | "multipleInputLabelOneSelection" | "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 };
@@ -1,10 +0,0 @@
1
- import 'react';
2
- import 'imask';
3
- import '../../index-379b7504.js';
4
- export { a as BaseNumberFieldProps, I as Input } from '../../BaseNumber-c609c5a0.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-c609c5a0.js';
3
- export { I as Input } from '../../Currency-38d14ff7.js';
4
- import 'imask';
5
- import '../../index-379b7504.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-c609c5a0.js';
3
- export { I as Input } from '../../Decimal-85d45244.js';
4
- import 'imask';
5
- import '../../index-379b7504.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,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;