linear-react-components-ui 1.1.24-beta.0 → 1.1.24-beta.10

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 (265) hide show
  1. package/lib/BaseMask-0c14ef51.d.ts +24 -0
  2. package/lib/Cnpj-bde01dd0.d.ts +18 -0
  3. package/lib/Cpf-3fa496ad.d.ts +18 -0
  4. package/lib/Phone-2bb0b397.d.ts +18 -0
  5. package/lib/ZipCode-09460e18.d.ts +13 -0
  6. package/lib/alerts/AlertProvider.js +1 -2
  7. package/lib/alerts/BaseAlert.js +1 -1
  8. package/lib/alerts/Message.js +2 -3
  9. package/lib/alerts/withAlert.js +1 -2
  10. package/lib/assets/styles/calendar.scss +140 -35
  11. package/lib/assets/styles/datepicker2.scss +3 -9
  12. package/lib/assets/styles/file.scss +8 -0
  13. package/lib/assets/styles/filefield.scss +42 -0
  14. package/lib/assets/styles/numberfield.scss +18 -0
  15. package/lib/assets/styles/periodpicker.scss +1 -1
  16. package/lib/assets/styles/radiofield.scss +185 -0
  17. package/lib/assets/styles/selectfield.scss +1 -3
  18. package/lib/assets/styles/table.scss +6 -0
  19. package/lib/assets/styles/textfield.scss +61 -27
  20. package/lib/avatar/index.js +9 -11
  21. package/lib/badge/index.js +4 -4
  22. package/lib/buttons/Button.js +1 -2
  23. package/lib/buttons/DangerButton.js +1 -1
  24. package/lib/buttons/DefaultButton.js +22 -21
  25. package/lib/buttons/InfoButton.js +1 -1
  26. package/lib/buttons/PrimaryButton.js +1 -1
  27. package/lib/buttons/SuccessButton.js +1 -1
  28. package/lib/buttons/WarningButton.js +1 -1
  29. package/lib/buttons/button_container/index.js +1 -1
  30. package/lib/buttons/split_button/index.js +2 -2
  31. package/lib/calendar/base/helpers.js +2 -2
  32. package/lib/calendar/base/index.js +123 -44
  33. package/lib/checkbox/index.js +2 -3
  34. package/lib/dialog/Custom.js +2 -3
  35. package/lib/dialog/Question.js +5 -4
  36. package/lib/dialog/base/Content.js +5 -6
  37. package/lib/dialog/base/Header.js +3 -4
  38. package/lib/dialog/base/index.js +33 -23
  39. package/lib/dialog/form/index.js +52 -12
  40. package/lib/dialog/types.d.ts +4 -0
  41. package/lib/dialog/wizard/index.js +1 -2
  42. package/lib/dialog/wizard/progressbar.js +1 -1
  43. package/lib/dialog/wizard/step.js +1 -1
  44. package/lib/dialog/wizard/useWizard.js +1 -2
  45. package/lib/drawer/Content.js +1 -2
  46. package/lib/drawer/Drawer.js +6 -7
  47. package/lib/drawer/Header.js +2 -3
  48. package/lib/dropdown/Popup.js +7 -7
  49. package/lib/dropdown/helper.js +1 -1
  50. package/lib/dropdown/withDropdown.js +3 -4
  51. package/lib/fieldset/index.js +8 -9
  52. package/lib/form/Field.js +2 -3
  53. package/lib/form/FieldArray.js +2 -3
  54. package/lib/form/FieldNumber.js +4 -5
  55. package/lib/form/FieldPeriod.js +3 -4
  56. package/lib/form/index.js +3 -4
  57. package/lib/form/withFieldHOC.js +1 -2
  58. package/lib/form/withFormSecurity.js +1 -2
  59. package/lib/form2/helpers.js +1 -1
  60. package/lib/form2/index.d.ts +1 -1
  61. package/lib/form2/types.d.ts +7 -3
  62. package/lib/form2/useForm/index.js +22 -15
  63. package/lib/gridlayout/GridCol.js +5 -5
  64. package/lib/gridlayout/GridRow.js +1 -4
  65. package/lib/hint/index.js +1 -7
  66. package/lib/icons/helper.d.ts +16 -0
  67. package/lib/icons/helper.js +16 -0
  68. package/lib/icons/index.js +9 -9
  69. package/lib/index-208e7f62.d.ts +44 -0
  70. package/lib/index-3b70931d.d.ts +44 -0
  71. package/lib/index-442d51a2.d.ts +15 -0
  72. package/lib/index-4e511971.d.ts +26 -0
  73. package/lib/index-7dfa8924.d.ts +22 -0
  74. package/lib/index-9e576346.d.ts +23 -0
  75. package/lib/index-d3b6a19a.d.ts +41 -0
  76. package/lib/index-ecafc8c6.d.ts +30 -0
  77. package/lib/inputs/base/InputTextBase.js +9 -8
  78. package/lib/inputs/base/helpers.js +3 -7
  79. package/lib/inputs/base/types.d.ts +1 -1
  80. package/lib/inputs/color/index.js +2 -3
  81. package/lib/inputs/date/Dropdown.js +6 -4
  82. package/lib/inputs/date/index.js +34 -22
  83. package/lib/inputs/errorMessage/index.js +2 -3
  84. package/lib/inputs/file/DefaultFile.js +31 -31
  85. package/lib/inputs/file/DragDropFile.js +18 -17
  86. package/lib/inputs/file/File.js +6 -5
  87. package/lib/inputs/file/FileButtonSettings.js +0 -1
  88. package/lib/inputs/file/index.js +0 -1
  89. package/lib/inputs/inputHOC.js +1 -2
  90. package/lib/inputs/mask/BaseMask.js +1 -2
  91. package/lib/inputs/mask/Cnpj.js +1 -2
  92. package/lib/inputs/mask/Cpf.js +1 -2
  93. package/lib/inputs/multiSelect/ActionButtons.js +1 -2
  94. package/lib/inputs/multiSelect/Dropdown.js +11 -11
  95. package/lib/inputs/multiSelect/helper.js +2 -1
  96. package/lib/inputs/multiSelect/index.js +10 -9
  97. package/lib/inputs/number/BaseNumber.js +1 -1
  98. package/lib/inputs/number/index.js +3 -3
  99. package/lib/inputs/period/Dropdown.js +7 -4
  100. package/lib/inputs/period/PeriodList.js +3 -12
  101. package/lib/inputs/period/helper.js +1 -3
  102. package/lib/inputs/period/index.js +116 -113
  103. package/lib/inputs/period/types.d.ts +4 -1
  104. package/lib/inputs/search/index.js +8 -5
  105. package/lib/inputs/select/ActionButtons.js +1 -1
  106. package/lib/inputs/select/Dropdown.js +3 -4
  107. package/lib/inputs/select/helper.js +13 -10
  108. package/lib/inputs/select/multiple/Selecteds.js +2 -2
  109. package/lib/inputs/select/multiple/index.js +14 -11
  110. package/lib/inputs/select/simple/index.js +19 -13
  111. package/lib/inputs/textarea/index.js +1 -1
  112. package/lib/inputs/types.d.ts +1 -0
  113. package/lib/inputs2/checkboxfield/index.d.ts +1 -1
  114. package/lib/inputs2/checkboxfield/index.js +18 -15
  115. package/lib/inputs2/colorfield/index.d.ts +2 -2
  116. package/lib/inputs2/colorfield/index.js +5 -5
  117. package/lib/inputs2/date/base/constants.js +2 -1
  118. package/lib/inputs2/date/base/index.js +6 -8
  119. package/lib/inputs2/date/datefield/calendarbox.d.ts +1 -1
  120. package/lib/inputs2/date/datefield/calendarbox.js +3 -2
  121. package/lib/inputs2/date/datefield/context.d.ts +1 -0
  122. package/lib/inputs2/date/datefield/index.d.ts +1 -0
  123. package/lib/inputs2/date/datefield/index.js +44 -33
  124. package/lib/inputs2/date/datefield/triggers.js +1 -2
  125. package/lib/inputs2/date/datefield/types.d.ts +2 -0
  126. package/lib/inputs2/date/dateperiodfield/calendarbox.d.ts +1 -1
  127. package/lib/inputs2/date/dateperiodfield/calendarbox.js +8 -6
  128. package/lib/inputs2/date/dateperiodfield/context.d.ts +1 -0
  129. package/lib/inputs2/date/dateperiodfield/index.d.ts +1 -0
  130. package/lib/inputs2/date/dateperiodfield/index.js +66 -48
  131. package/lib/inputs2/date/dateperiodfield/triggers.js +19 -14
  132. package/lib/inputs2/date/dateperiodfield/types.d.ts +2 -0
  133. package/lib/inputs2/date/helpers.d.ts +1 -0
  134. package/lib/inputs2/date/types.d.ts +2 -1
  135. package/lib/inputs2/{number/Number.d.ts → filefield/index.d.ts} +2 -2
  136. package/lib/inputs2/filefield/index.js +174 -0
  137. package/lib/inputs2/index.d.ts +20 -14
  138. package/lib/inputs2/index.js +10 -11
  139. package/lib/inputs2/mask/BaseMask.d.ts +2 -2
  140. package/lib/inputs2/mask/BaseMask.js +7 -7
  141. package/lib/inputs2/mask/Cnpj.d.ts +3 -3
  142. package/lib/inputs2/mask/Cnpj.js +4 -5
  143. package/lib/inputs2/mask/Cpf.d.ts +3 -3
  144. package/lib/inputs2/mask/Cpf.js +4 -5
  145. package/lib/inputs2/mask/Phone.d.ts +3 -3
  146. package/lib/inputs2/mask/Phone.js +1 -2
  147. package/lib/inputs2/mask/ZipCode.d.ts +3 -3
  148. package/lib/inputs2/mask/ZipCode.js +1 -2
  149. package/lib/inputs2/numberfield/currency.d.ts +13 -0
  150. package/lib/inputs2/numberfield/currency.js +91 -0
  151. package/lib/inputs2/numberfield/decimal.d.ts +13 -0
  152. package/lib/inputs2/{number/BaseNumber.js → numberfield/decimal.js} +57 -58
  153. package/lib/inputs2/numberfield/helpers.d.ts +30 -0
  154. package/lib/inputs2/numberfield/helpers.js +53 -0
  155. package/lib/inputs2/numberfield/index.d.ts +12 -0
  156. package/lib/inputs2/numberfield/index.js +104 -0
  157. package/lib/inputs2/numberfield/types.d.ts +36 -0
  158. package/lib/inputs2/numberfield/types.js +5 -0
  159. package/lib/inputs2/{number/BaseNumber.d.ts → radiofield/index.d.ts} +4 -5
  160. package/lib/inputs2/radiofield/index.js +144 -0
  161. package/lib/inputs2/radiofield/types.d.ts +33 -0
  162. package/lib/inputs2/radiofield/types.js +5 -0
  163. package/lib/inputs2/selectfield/context.d.ts +1 -0
  164. package/lib/inputs2/selectfield/index.d.ts +2 -1
  165. package/lib/inputs2/selectfield/index.js +118 -58
  166. package/lib/inputs2/selectfield/item.d.ts +2 -1
  167. package/lib/inputs2/selectfield/item.js +8 -4
  168. package/lib/inputs2/selectfield/listbox.d.ts +1 -1
  169. package/lib/inputs2/selectfield/listbox.js +24 -10
  170. package/lib/inputs2/selectfield/options.d.ts +9 -0
  171. package/lib/inputs2/selectfield/options.js +26 -0
  172. package/lib/inputs2/selectfield/search.d.ts +1 -1
  173. package/lib/inputs2/selectfield/search.js +3 -4
  174. package/lib/inputs2/selectfield/selections.d.ts +1 -1
  175. package/lib/inputs2/selectfield/selections.js +3 -2
  176. package/lib/inputs2/selectfield/triggers.js +17 -8
  177. package/lib/inputs2/selectfield/types.d.ts +0 -1
  178. package/lib/inputs2/slot/index.d.ts +2 -2
  179. package/lib/inputs2/{number/Decimal.d.ts → textareafield/index.d.ts} +2 -5
  180. package/lib/inputs2/textareafield/index.js +194 -0
  181. package/lib/inputs2/textfield/index.d.ts +1 -1
  182. package/lib/inputs2/textfield/index.js +18 -17
  183. package/lib/labelMessages/index.js +4 -6
  184. package/lib/labels/DefaultLabel.js +2 -6
  185. package/lib/labels/label_container/index.js +1 -1
  186. package/lib/list/Header.js +1 -1
  187. package/lib/list/Item.js +10 -12
  188. package/lib/list/index.js +2 -4
  189. package/lib/menus/float/MenuItem.js +3 -4
  190. package/lib/menus/float/SubMenuContainer.js +2 -3
  191. package/lib/menus/float/index.js +1 -1
  192. package/lib/menus/sidenav/ExpandMenu.js +1 -1
  193. package/lib/menus/sidenav/MenuLink.js +1 -2
  194. package/lib/menus/sidenav/NavMenuGroup.js +2 -3
  195. package/lib/menus/sidenav/NavMenuItem.js +10 -9
  196. package/lib/menus/sidenav/NavSubMenuItem.js +2 -3
  197. package/lib/menus/sidenav/helpers.js +1 -1
  198. package/lib/menus/sidenav/index.js +6 -7
  199. package/lib/menus/sidenav/popup_menu_search/index.js +1 -2
  200. package/lib/panel/Content.js +9 -8
  201. package/lib/panel/Default.js +3 -4
  202. package/lib/panel/Header.js +4 -5
  203. package/lib/permissionValidations.js +1 -1
  204. package/lib/popover/PopoverText.js +1 -2
  205. package/lib/popover/index.js +2 -1
  206. package/lib/progress/Bar.js +6 -6
  207. package/lib/radio/index.js +3 -4
  208. package/lib/shortcuts/index.js +1 -1
  209. package/lib/skeleton/SkeletonContainer.js +1 -2
  210. package/lib/skeleton/index.js +1 -4
  211. package/lib/spinner/index.js +3 -4
  212. package/lib/split/Split.js +2 -3
  213. package/lib/split/SplitSide.js +4 -5
  214. package/lib/table/Body.js +4 -5
  215. package/lib/table/Header.js +9 -7
  216. package/lib/table/HeaderColumn.js +2 -3
  217. package/lib/table/Row.js +4 -5
  218. package/lib/table/RowColumn.js +2 -3
  219. package/lib/table/index.js +20 -16
  220. package/lib/table/types.d.ts +1 -0
  221. package/lib/tabs/DropdownTabs.js +2 -3
  222. package/lib/tabs/Menu.js +1 -1
  223. package/lib/tabs/MenuTabs.js +4 -9
  224. package/lib/tabs/Panel.js +8 -7
  225. package/lib/tabs/context.js +7 -5
  226. package/lib/tabs/index.js +1 -2
  227. package/lib/textContent/index.js +2 -3
  228. package/lib/toolbar/ButtonBar.js +2 -3
  229. package/lib/toolbar/LabelBar.js +1 -2
  230. package/lib/toolbar/index.js +1 -1
  231. package/lib/tooltip/TooltipContent.js +8 -9
  232. package/lib/tooltip/useTooltip.js +8 -8
  233. package/lib/treetable/Body.js +2 -3
  234. package/lib/treetable/Header.js +3 -4
  235. package/lib/treetable/Row.js +9 -10
  236. package/lib/treeview/Header.js +1 -1
  237. package/lib/treeview/Node.js +5 -6
  238. package/lib/treeview/index.js +5 -6
  239. package/lib/uitour/index.js +9 -8
  240. package/package.json +1 -1
  241. package/lib/BaseMask-3d5d581d.d.ts +0 -24
  242. package/lib/BaseNumber-797088d7.d.ts +0 -23
  243. package/lib/Cnpj-1602be21.d.ts +0 -18
  244. package/lib/Cpf-4d6b9079.d.ts +0 -18
  245. package/lib/Currency-b33d3a22.d.ts +0 -18
  246. package/lib/Decimal-55e836d5.d.ts +0 -13
  247. package/lib/Number-9c6aceff.d.ts +0 -20
  248. package/lib/Phone-79e5e3b4.d.ts +0 -18
  249. package/lib/ZipCode-8c2e9d8b.d.ts +0 -13
  250. package/lib/calendar/base/Day.d.ts +0 -8
  251. package/lib/calendar/base/Day.js +0 -36
  252. package/lib/calendar/base/Month.d.ts +0 -8
  253. package/lib/calendar/base/Month.js +0 -39
  254. package/lib/calendar/base/Week.d.ts +0 -8
  255. package/lib/calendar/base/Week.js +0 -35
  256. package/lib/index-18a64236.d.ts +0 -23
  257. package/lib/index-43ad8140.d.ts +0 -41
  258. package/lib/index-772f9f1a.d.ts +0 -44
  259. package/lib/index-8a59cf4b.d.ts +0 -23
  260. package/lib/inputs2/number/Currency.d.ts +0 -11
  261. package/lib/inputs2/number/Currency.js +0 -47
  262. package/lib/inputs2/number/Decimal.js +0 -36
  263. package/lib/inputs2/number/Number.js +0 -49
  264. package/lib/inputs2/number/format_number.d.ts +0 -5
  265. package/lib/inputs2/number/format_number.js +0 -29
@@ -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;
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, "className" | "disabled" | "size" | "onClick" | "width" | "height" | "color" | "src" | "children" | "customClass" | "label" | "style" | "id" | "key" | "form" | "slot" | "title" | "pattern" | "name" | "tooltip" | "tooltipPosition" | "tooltipWidth" | "list" | "hidden" | "multiple" | "onKeyPress" | "role" | "tabIndex" | "alt" | "align" | "value" | "readOnly" | "permissionAttr" | "skeletonize" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "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" | "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" | "step" | "labelUppercase" | "maxLength" | "required" | "hint" | "hintPosition" | "textAlign" | "rounded" | "onDeniedActions" | "gridLayout" | "accept" | "autoComplete" | "themePopover" | "popoverAlign" | "checked" | "max" | "min" | "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 };
@@ -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-772f9f1a.js';
4
-
5
- interface ColorFieldInputProps extends TextFieldInputProps {
6
- isTypeText?: boolean;
7
- }
8
- declare const Input: React__default.ForwardRefExoticComponent<Pick<ColorFieldInputProps, "className" | "disabled" | "size" | "onClick" | "width" | "height" | "color" | "src" | "children" | "customClass" | "label" | "style" | "id" | "key" | "form" | "slot" | "title" | "pattern" | "name" | "tooltip" | "tooltipPosition" | "tooltipWidth" | "list" | "hidden" | "multiple" | "onKeyPress" | "role" | "tabIndex" | "alt" | "align" | "value" | "readOnly" | "permissionAttr" | "skeletonize" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "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" | "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" | "step" | "labelUppercase" | "maxLength" | "required" | "hint" | "hintPosition" | "textAlign" | "rounded" | "onDeniedActions" | "gridLayout" | "accept" | "autoComplete" | "themePopover" | "popoverAlign" | "checked" | "max" | "min" | "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,11 +0,0 @@
1
- import 'react';
2
- import '../../BaseNumber-797088d7.js';
3
- export { I as Input } from '../../Currency-b33d3a22.js';
4
- import 'imask';
5
- import '../../index-772f9f1a.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,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;