linear-react-components-ui 1.1.27-rc.1 → 2.0.0-beta.1

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 (768) hide show
  1. package/package.json +347 -85
  2. package/lib/@types/Align.d.ts +0 -4
  3. package/lib/@types/Align.js +0 -5
  4. package/lib/@types/ButtonTypes.d.ts +0 -3
  5. package/lib/@types/ButtonTypes.js +0 -5
  6. package/lib/@types/ColorStyles.d.ts +0 -4
  7. package/lib/@types/ColorStyles.js +0 -5
  8. package/lib/@types/DataCombo.d.ts +0 -3
  9. package/lib/@types/DataCombo.js +0 -5
  10. package/lib/@types/Icon.d.ts +0 -5
  11. package/lib/@types/Icon.js +0 -5
  12. package/lib/@types/LabelStyles.d.ts +0 -3
  13. package/lib/@types/LabelStyles.js +0 -5
  14. package/lib/@types/Period.d.ts +0 -6
  15. package/lib/@types/Period.js +0 -5
  16. package/lib/@types/PermissionAttr.d.ts +0 -14
  17. package/lib/@types/PermissionAttr.js +0 -5
  18. package/lib/@types/PointerEvents.d.ts +0 -3
  19. package/lib/@types/PointerEvents.js +0 -5
  20. package/lib/@types/Position.d.ts +0 -4
  21. package/lib/@types/Position.js +0 -5
  22. package/lib/@types/PositionAlert.d.ts +0 -3
  23. package/lib/@types/PositionAlert.js +0 -5
  24. package/lib/@types/Size.d.ts +0 -3
  25. package/lib/@types/Size.js +0 -5
  26. package/lib/@types/SizePixels.d.ts +0 -3
  27. package/lib/@types/SizePixels.js +0 -5
  28. package/lib/@types/StorageMock.d.ts +0 -5
  29. package/lib/@types/StorageMock.js +0 -5
  30. package/lib/BaseMask-78847f45.d.ts +0 -24
  31. package/lib/Cnpj-8366781f.d.ts +0 -18
  32. package/lib/Cpf-3dfd54eb.d.ts +0 -18
  33. package/lib/Phone-1962c0f2.d.ts +0 -18
  34. package/lib/ZipCode-be9c5b3b.d.ts +0 -13
  35. package/lib/alerts/AlertContainer.d.ts +0 -18
  36. package/lib/alerts/AlertContainer.js +0 -80
  37. package/lib/alerts/AlertProvider.d.ts +0 -9
  38. package/lib/alerts/AlertProvider.js +0 -72
  39. package/lib/alerts/BaseAlert.d.ts +0 -9
  40. package/lib/alerts/BaseAlert.js +0 -34
  41. package/lib/alerts/Message.d.ts +0 -9
  42. package/lib/alerts/Message.js +0 -113
  43. package/lib/alerts/helpers.d.ts +0 -9
  44. package/lib/alerts/helpers.js +0 -9
  45. package/lib/alerts/index.d.ts +0 -11
  46. package/lib/alerts/index.js +0 -16
  47. package/lib/alerts/types.d.ts +0 -51
  48. package/lib/alerts/types.js +0 -5
  49. package/lib/alerts/withAlert.d.ts +0 -9
  50. package/lib/alerts/withAlert.js +0 -23
  51. package/lib/assets/fonts/Roboto-Black.woff +0 -0
  52. package/lib/assets/fonts/Roboto-Black.woff2 +0 -0
  53. package/lib/assets/fonts/Roboto-Bold.woff +0 -0
  54. package/lib/assets/fonts/Roboto-Bold.woff2 +0 -0
  55. package/lib/assets/fonts/Roboto-Light.woff +0 -0
  56. package/lib/assets/fonts/Roboto-Light.woff2 +0 -0
  57. package/lib/assets/fonts/Roboto-Medium.woff +0 -0
  58. package/lib/assets/fonts/Roboto-Medium.woff2 +0 -0
  59. package/lib/assets/fonts/Roboto-Regular.woff +0 -0
  60. package/lib/assets/fonts/Roboto-Regular.woff2 +0 -0
  61. package/lib/assets/fonts/Roboto-Thin.woff +0 -0
  62. package/lib/assets/fonts/Roboto-Thin.woff2 +0 -0
  63. package/lib/assets/fonts/TitilliumWeb-Black.woff +0 -0
  64. package/lib/assets/fonts/TitilliumWeb-Black.woff2 +0 -0
  65. package/lib/assets/fonts/TitilliumWeb-Bold.woff +0 -0
  66. package/lib/assets/fonts/TitilliumWeb-Bold.woff2 +0 -0
  67. package/lib/assets/fonts/TitilliumWeb-ExtraLight.woff +0 -0
  68. package/lib/assets/fonts/TitilliumWeb-ExtraLight.woff2 +0 -0
  69. package/lib/assets/fonts/TitilliumWeb-Light.woff +0 -0
  70. package/lib/assets/fonts/TitilliumWeb-Light.woff2 +0 -0
  71. package/lib/assets/fonts/TitilliumWeb-Regular.woff +0 -0
  72. package/lib/assets/fonts/TitilliumWeb-Regular.woff2 +0 -0
  73. package/lib/assets/fonts/TitilliumWeb-SemiBold.woff +0 -0
  74. package/lib/assets/fonts/TitilliumWeb-SemiBold.woff2 +0 -0
  75. package/lib/assets/images/logo.png +0 -0
  76. package/lib/assets/styles/alerts.scss +0 -149
  77. package/lib/assets/styles/avatar.scss +0 -42
  78. package/lib/assets/styles/badge.scss +0 -48
  79. package/lib/assets/styles/button.scss +0 -373
  80. package/lib/assets/styles/calendar.scss +0 -311
  81. package/lib/assets/styles/checkbox.scss +0 -108
  82. package/lib/assets/styles/checkbox2.scss +0 -199
  83. package/lib/assets/styles/colorpicker.scss +0 -12
  84. package/lib/assets/styles/colors.scss +0 -180
  85. package/lib/assets/styles/commons.scss +0 -138
  86. package/lib/assets/styles/datepicker.scss +0 -36
  87. package/lib/assets/styles/datepicker2.scss +0 -336
  88. package/lib/assets/styles/dialog.scss +0 -200
  89. package/lib/assets/styles/drawers.scss +0 -158
  90. package/lib/assets/styles/dropdown.scss +0 -179
  91. package/lib/assets/styles/effects.scss +0 -821
  92. package/lib/assets/styles/error.scss +0 -9
  93. package/lib/assets/styles/fieldset.scss +0 -96
  94. package/lib/assets/styles/file.scss +0 -229
  95. package/lib/assets/styles/filefield.scss +0 -42
  96. package/lib/assets/styles/floatMenu.scss +0 -15
  97. package/lib/assets/styles/fonts.scss +0 -86
  98. package/lib/assets/styles/form.scss +0 -23
  99. package/lib/assets/styles/gridlayout.scss +0 -2055
  100. package/lib/assets/styles/hint.scss +0 -30
  101. package/lib/assets/styles/icon.scss +0 -42
  102. package/lib/assets/styles/input.scss +0 -156
  103. package/lib/assets/styles/label.scss +0 -118
  104. package/lib/assets/styles/labelMessages.scss +0 -81
  105. package/lib/assets/styles/list.scss +0 -124
  106. package/lib/assets/styles/multiSelect.scss +0 -125
  107. package/lib/assets/styles/noPermission.scss +0 -25
  108. package/lib/assets/styles/numberfield.scss +0 -18
  109. package/lib/assets/styles/numbers.scss +0 -5
  110. package/lib/assets/styles/panel.scss +0 -95
  111. package/lib/assets/styles/periodpicker.scss +0 -109
  112. package/lib/assets/styles/popover.scss +0 -44
  113. package/lib/assets/styles/progress.scss +0 -72
  114. package/lib/assets/styles/radio.scss +0 -183
  115. package/lib/assets/styles/radiofield.scss +0 -185
  116. package/lib/assets/styles/search.scss +0 -13
  117. package/lib/assets/styles/select.scss +0 -159
  118. package/lib/assets/styles/selectfield.scss +0 -411
  119. package/lib/assets/styles/shortcuts.scss +0 -59
  120. package/lib/assets/styles/sidenav.scss +0 -409
  121. package/lib/assets/styles/skeleton.scss +0 -48
  122. package/lib/assets/styles/slot.scss +0 -34
  123. package/lib/assets/styles/spinner.scss +0 -34
  124. package/lib/assets/styles/split.scss +0 -80
  125. package/lib/assets/styles/table.scss +0 -185
  126. package/lib/assets/styles/tabs.scss +0 -308
  127. package/lib/assets/styles/textContent.scss +0 -9
  128. package/lib/assets/styles/textfield.scss +0 -186
  129. package/lib/assets/styles/toolbar.scss +0 -74
  130. package/lib/assets/styles/tooltip.scss +0 -96
  131. package/lib/assets/styles/treetable.scss +0 -100
  132. package/lib/assets/styles/treeview.scss +0 -112
  133. package/lib/assets/styles/uitour.scss +0 -112
  134. package/lib/assets/styles/wizard.scss +0 -186
  135. package/lib/avatar/index.d.ts +0 -12
  136. package/lib/avatar/index.js +0 -89
  137. package/lib/avatar/types.d.ts +0 -31
  138. package/lib/avatar/types.js +0 -5
  139. package/lib/badge/index.d.ts +0 -6
  140. package/lib/badge/index.js +0 -30
  141. package/lib/badge/types.d.ts +0 -13
  142. package/lib/badge/types.js +0 -5
  143. package/lib/buttons/ActivateButton.d.ts +0 -12
  144. package/lib/buttons/ActivateButton.js +0 -14
  145. package/lib/buttons/AddButton.d.ts +0 -12
  146. package/lib/buttons/AddButton.js +0 -18
  147. package/lib/buttons/Button.d.ts +0 -15
  148. package/lib/buttons/Button.js +0 -22
  149. package/lib/buttons/ButtonGroups.d.ts +0 -8
  150. package/lib/buttons/ButtonGroups.js +0 -17
  151. package/lib/buttons/CancelButton.d.ts +0 -12
  152. package/lib/buttons/CancelButton.js +0 -23
  153. package/lib/buttons/DangerButton.d.ts +0 -12
  154. package/lib/buttons/DangerButton.js +0 -23
  155. package/lib/buttons/DefaultButton.d.ts +0 -15
  156. package/lib/buttons/DefaultButton.js +0 -184
  157. package/lib/buttons/DestroyButton.d.ts +0 -12
  158. package/lib/buttons/DestroyButton.js +0 -22
  159. package/lib/buttons/EditButton.d.ts +0 -12
  160. package/lib/buttons/EditButton.js +0 -14
  161. package/lib/buttons/InactivateButton.d.ts +0 -12
  162. package/lib/buttons/InactivateButton.js +0 -14
  163. package/lib/buttons/InfoButton.d.ts +0 -12
  164. package/lib/buttons/InfoButton.js +0 -23
  165. package/lib/buttons/PrimaryButton.d.ts +0 -12
  166. package/lib/buttons/PrimaryButton.js +0 -23
  167. package/lib/buttons/RestoreButton.d.ts +0 -12
  168. package/lib/buttons/RestoreButton.js +0 -14
  169. package/lib/buttons/SaveButton.d.ts +0 -12
  170. package/lib/buttons/SaveButton.js +0 -23
  171. package/lib/buttons/SuccessButton.d.ts +0 -12
  172. package/lib/buttons/SuccessButton.js +0 -23
  173. package/lib/buttons/WarningButton.d.ts +0 -12
  174. package/lib/buttons/WarningButton.js +0 -23
  175. package/lib/buttons/button_container/index.d.ts +0 -12
  176. package/lib/buttons/button_container/index.js +0 -30
  177. package/lib/buttons/index.d.ts +0 -27
  178. package/lib/buttons/index.js +0 -108
  179. package/lib/buttons/split_button/index.d.ts +0 -12
  180. package/lib/buttons/split_button/index.js +0 -63
  181. package/lib/buttons/types.d.ts +0 -50
  182. package/lib/buttons/types.js +0 -5
  183. package/lib/calendar/DangerCalendar.d.ts +0 -8
  184. package/lib/calendar/DangerCalendar.js +0 -18
  185. package/lib/calendar/InfoCalendar.d.ts +0 -8
  186. package/lib/calendar/InfoCalendar.js +0 -18
  187. package/lib/calendar/PrimaryCalendar.d.ts +0 -8
  188. package/lib/calendar/PrimaryCalendar.js +0 -18
  189. package/lib/calendar/SuccessCalendar.d.ts +0 -8
  190. package/lib/calendar/SuccessCalendar.js +0 -18
  191. package/lib/calendar/WarningCalendar.d.ts +0 -8
  192. package/lib/calendar/WarningCalendar.js +0 -18
  193. package/lib/calendar/base/helpers.d.ts +0 -62
  194. package/lib/calendar/base/helpers.js +0 -117
  195. package/lib/calendar/base/index.d.ts +0 -8
  196. package/lib/calendar/base/index.js +0 -206
  197. package/lib/calendar/index.d.ts +0 -14
  198. package/lib/calendar/index.js +0 -44
  199. package/lib/calendar/types.d.ts +0 -30
  200. package/lib/calendar/types.js +0 -5
  201. package/lib/checkbox/index.d.ts +0 -13
  202. package/lib/checkbox/index.js +0 -146
  203. package/lib/checkbox/types.d.ts +0 -48
  204. package/lib/checkbox/types.js +0 -5
  205. package/lib/dialog/Alert.d.ts +0 -9
  206. package/lib/dialog/Alert.js +0 -32
  207. package/lib/dialog/Custom.d.ts +0 -9
  208. package/lib/dialog/Custom.js +0 -55
  209. package/lib/dialog/Error.d.ts +0 -9
  210. package/lib/dialog/Error.js +0 -32
  211. package/lib/dialog/Information.d.ts +0 -9
  212. package/lib/dialog/Information.js +0 -32
  213. package/lib/dialog/Question.d.ts +0 -9
  214. package/lib/dialog/Question.js +0 -63
  215. package/lib/dialog/Warning.d.ts +0 -9
  216. package/lib/dialog/Warning.js +0 -32
  217. package/lib/dialog/base/Content.d.ts +0 -9
  218. package/lib/dialog/base/Content.js +0 -22
  219. package/lib/dialog/base/Footer.d.ts +0 -9
  220. package/lib/dialog/base/Footer.js +0 -12
  221. package/lib/dialog/base/Header.d.ts +0 -9
  222. package/lib/dialog/base/Header.js +0 -57
  223. package/lib/dialog/base/index.d.ts +0 -15
  224. package/lib/dialog/base/index.js +0 -203
  225. package/lib/dialog/base/style.js +0 -13
  226. package/lib/dialog/form/index.d.ts +0 -10
  227. package/lib/dialog/form/index.js +0 -127
  228. package/lib/dialog/index.d.ts +0 -16
  229. package/lib/dialog/index.js +0 -51
  230. package/lib/dialog/types.d.ts +0 -116
  231. package/lib/dialog/types.js +0 -5
  232. package/lib/dialog/wizard/index.d.ts +0 -13
  233. package/lib/dialog/wizard/index.js +0 -79
  234. package/lib/dialog/wizard/progressbar.d.ts +0 -14
  235. package/lib/dialog/wizard/progressbar.js +0 -38
  236. package/lib/dialog/wizard/step.d.ts +0 -9
  237. package/lib/dialog/wizard/step.js +0 -22
  238. package/lib/dialog/wizard/useWizard.d.ts +0 -9
  239. package/lib/dialog/wizard/useWizard.js +0 -47
  240. package/lib/drawer/Content.d.ts +0 -10
  241. package/lib/drawer/Content.js +0 -25
  242. package/lib/drawer/Drawer.d.ts +0 -10
  243. package/lib/drawer/Drawer.js +0 -144
  244. package/lib/drawer/Header.d.ts +0 -10
  245. package/lib/drawer/Header.js +0 -75
  246. package/lib/drawer/helpers.d.ts +0 -10
  247. package/lib/drawer/helpers.js +0 -10
  248. package/lib/drawer/index.d.ts +0 -12
  249. package/lib/drawer/index.js +0 -25
  250. package/lib/drawer/types.d.ts +0 -42
  251. package/lib/drawer/types.js +0 -5
  252. package/lib/dropdown/Popup.d.ts +0 -6
  253. package/lib/dropdown/Popup.js +0 -90
  254. package/lib/dropdown/helper.d.ts +0 -4
  255. package/lib/dropdown/helper.js +0 -16
  256. package/lib/dropdown/types.d.ts +0 -48
  257. package/lib/dropdown/types.js +0 -5
  258. package/lib/dropdown/withDropdown.d.ts +0 -10
  259. package/lib/dropdown/withDropdown.js +0 -92
  260. package/lib/fieldset/index.d.ts +0 -8
  261. package/lib/fieldset/index.js +0 -82
  262. package/lib/fieldset/types.d.ts +0 -30
  263. package/lib/fieldset/types.js +0 -5
  264. package/lib/form/Field.d.ts +0 -14
  265. package/lib/form/Field.js +0 -134
  266. package/lib/form/FieldArray.d.ts +0 -14
  267. package/lib/form/FieldArray.js +0 -101
  268. package/lib/form/FieldNumber.d.ts +0 -14
  269. package/lib/form/FieldNumber.js +0 -76
  270. package/lib/form/FieldPeriod.d.ts +0 -14
  271. package/lib/form/FieldPeriod.js +0 -100
  272. package/lib/form/helpers.d.ts +0 -19
  273. package/lib/form/helpers.js +0 -50
  274. package/lib/form/index.d.ts +0 -18
  275. package/lib/form/index.js +0 -307
  276. package/lib/form/types.d.ts +0 -255
  277. package/lib/form/types.js +0 -5
  278. package/lib/form/withFieldHOC.d.ts +0 -14
  279. package/lib/form/withFieldHOC.js +0 -72
  280. package/lib/form/withFormSecurity.d.ts +0 -15
  281. package/lib/form/withFormSecurity.js +0 -54
  282. package/lib/form2/helpers.d.ts +0 -8
  283. package/lib/form2/helpers.js +0 -41
  284. package/lib/form2/index.d.ts +0 -9
  285. package/lib/form2/index.js +0 -36
  286. package/lib/form2/types.d.ts +0 -129
  287. package/lib/form2/types.js +0 -5
  288. package/lib/form2/useForm/index.d.ts +0 -5
  289. package/lib/form2/useForm/index.js +0 -210
  290. package/lib/gridlayout/GridCol.d.ts +0 -6
  291. package/lib/gridlayout/GridCol.js +0 -34
  292. package/lib/gridlayout/GridRow.d.ts +0 -6
  293. package/lib/gridlayout/GridRow.js +0 -31
  294. package/lib/gridlayout/index.d.ts +0 -8
  295. package/lib/gridlayout/index.js +0 -16
  296. package/lib/gridlayout/types.d.ts +0 -20
  297. package/lib/gridlayout/types.js +0 -5
  298. package/lib/hint/helpers.d.ts +0 -3
  299. package/lib/hint/helpers.js +0 -21
  300. package/lib/hint/index.d.ts +0 -7
  301. package/lib/hint/index.js +0 -30
  302. package/lib/hint/types.d.ts +0 -14
  303. package/lib/hint/types.js +0 -5
  304. package/lib/icons/helper.d.ts +0 -668
  305. package/lib/icons/helper.js +0 -672
  306. package/lib/icons/index.d.ts +0 -13
  307. package/lib/icons/index.js +0 -78
  308. package/lib/icons/types.d.ts +0 -46
  309. package/lib/icons/types.js +0 -5
  310. package/lib/index-02a27c19.d.ts +0 -26
  311. package/lib/index-053f615b.d.ts +0 -26
  312. package/lib/index-25b80f32.d.ts +0 -22
  313. package/lib/index-368f781f.d.ts +0 -15
  314. package/lib/index-696662fe.d.ts +0 -15
  315. package/lib/index-6f5c772d.d.ts +0 -23
  316. package/lib/index-6fcf446c.d.ts +0 -26
  317. package/lib/index-7159df18.d.ts +0 -21
  318. package/lib/index-c9247c1f.d.ts +0 -15
  319. package/lib/index-ecafc8c6.d.ts +0 -30
  320. package/lib/index.d.ts +0 -40
  321. package/lib/index.js +0 -69
  322. package/lib/inputs/base/InputTextBase.d.ts +0 -11
  323. package/lib/inputs/base/InputTextBase.js +0 -278
  324. package/lib/inputs/base/helpers.d.ts +0 -17
  325. package/lib/inputs/base/helpers.js +0 -42
  326. package/lib/inputs/base/types.d.ts +0 -92
  327. package/lib/inputs/base/types.js +0 -5
  328. package/lib/inputs/color/index.d.ts +0 -7
  329. package/lib/inputs/color/index.js +0 -94
  330. package/lib/inputs/color/types.d.ts +0 -19
  331. package/lib/inputs/color/types.js +0 -5
  332. package/lib/inputs/date/Dialog.d.ts +0 -13
  333. package/lib/inputs/date/Dialog.js +0 -26
  334. package/lib/inputs/date/Dropdown.d.ts +0 -13
  335. package/lib/inputs/date/Dropdown.js +0 -40
  336. package/lib/inputs/date/helpers.d.ts +0 -37
  337. package/lib/inputs/date/helpers.js +0 -48
  338. package/lib/inputs/date/index.d.ts +0 -13
  339. package/lib/inputs/date/index.js +0 -300
  340. package/lib/inputs/date/types.d.ts +0 -64
  341. package/lib/inputs/date/types.js +0 -5
  342. package/lib/inputs/errorMessage/index.d.ts +0 -16
  343. package/lib/inputs/errorMessage/index.js +0 -25
  344. package/lib/inputs/file/DefaultFile.d.ts +0 -13
  345. package/lib/inputs/file/DefaultFile.js +0 -80
  346. package/lib/inputs/file/DragDropFile.d.ts +0 -13
  347. package/lib/inputs/file/DragDropFile.js +0 -273
  348. package/lib/inputs/file/File.d.ts +0 -13
  349. package/lib/inputs/file/File.js +0 -64
  350. package/lib/inputs/file/FileButtonSettings.d.ts +0 -13
  351. package/lib/inputs/file/FileButtonSettings.js +0 -33
  352. package/lib/inputs/file/helpers.d.ts +0 -13
  353. package/lib/inputs/file/helpers.js +0 -21
  354. package/lib/inputs/file/index.d.ts +0 -16
  355. package/lib/inputs/file/index.js +0 -23
  356. package/lib/inputs/file/types.d.ts +0 -57
  357. package/lib/inputs/file/types.js +0 -5
  358. package/lib/inputs/inputHOC.d.ts +0 -16
  359. package/lib/inputs/inputHOC.js +0 -43
  360. package/lib/inputs/mask/BaseMask.d.ts +0 -12
  361. package/lib/inputs/mask/BaseMask.js +0 -171
  362. package/lib/inputs/mask/Cnpj.d.ts +0 -15
  363. package/lib/inputs/mask/Cnpj.js +0 -59
  364. package/lib/inputs/mask/Cpf.d.ts +0 -15
  365. package/lib/inputs/mask/Cpf.js +0 -56
  366. package/lib/inputs/mask/Phone.d.ts +0 -12
  367. package/lib/inputs/mask/Phone.js +0 -19
  368. package/lib/inputs/mask/ZipCode.d.ts +0 -12
  369. package/lib/inputs/mask/ZipCode.js +0 -14
  370. package/lib/inputs/mask/helpers.d.ts +0 -15
  371. package/lib/inputs/mask/helpers.js +0 -119
  372. package/lib/inputs/mask/index.d.ts +0 -17
  373. package/lib/inputs/mask/index.js +0 -37
  374. package/lib/inputs/mask/types.d.ts +0 -80
  375. package/lib/inputs/mask/types.js +0 -5
  376. package/lib/inputs/multiSelect/ActionButtons.d.ts +0 -13
  377. package/lib/inputs/multiSelect/ActionButtons.js +0 -50
  378. package/lib/inputs/multiSelect/Dropdown.d.ts +0 -13
  379. package/lib/inputs/multiSelect/Dropdown.js +0 -137
  380. package/lib/inputs/multiSelect/helper.d.ts +0 -13
  381. package/lib/inputs/multiSelect/helper.js +0 -21
  382. package/lib/inputs/multiSelect/index.d.ts +0 -13
  383. package/lib/inputs/multiSelect/index.js +0 -237
  384. package/lib/inputs/multiSelect/types.d.ts +0 -67
  385. package/lib/inputs/multiSelect/types.js +0 -5
  386. package/lib/inputs/number/BaseNumber.d.ts +0 -17
  387. package/lib/inputs/number/BaseNumber.js +0 -78
  388. package/lib/inputs/number/Currency.d.ts +0 -17
  389. package/lib/inputs/number/Currency.js +0 -29
  390. package/lib/inputs/number/Decimal.d.ts +0 -17
  391. package/lib/inputs/number/Decimal.js +0 -11
  392. package/lib/inputs/number/format_number.d.ts +0 -5
  393. package/lib/inputs/number/format_number.js +0 -29
  394. package/lib/inputs/number/index.d.ts +0 -19
  395. package/lib/inputs/number/index.js +0 -64
  396. package/lib/inputs/number/types.d.ts +0 -39
  397. package/lib/inputs/number/types.js +0 -5
  398. package/lib/inputs/period/Dialog.d.ts +0 -14
  399. package/lib/inputs/period/Dialog.js +0 -27
  400. package/lib/inputs/period/Dropdown.d.ts +0 -14
  401. package/lib/inputs/period/Dropdown.js +0 -39
  402. package/lib/inputs/period/PeriodList.d.ts +0 -14
  403. package/lib/inputs/period/PeriodList.js +0 -52
  404. package/lib/inputs/period/helper.d.ts +0 -22
  405. package/lib/inputs/period/helper.js +0 -64
  406. package/lib/inputs/period/index.d.ts +0 -14
  407. package/lib/inputs/period/index.js +0 -544
  408. package/lib/inputs/period/types.d.ts +0 -78
  409. package/lib/inputs/period/types.js +0 -5
  410. package/lib/inputs/search/index.d.ts +0 -16
  411. package/lib/inputs/search/index.js +0 -132
  412. package/lib/inputs/select/ActionButtons.d.ts +0 -16
  413. package/lib/inputs/select/ActionButtons.js +0 -39
  414. package/lib/inputs/select/Dropdown.d.ts +0 -16
  415. package/lib/inputs/select/Dropdown.js +0 -113
  416. package/lib/inputs/select/helper.d.ts +0 -25
  417. package/lib/inputs/select/helper.js +0 -111
  418. package/lib/inputs/select/index.d.ts +0 -13
  419. package/lib/inputs/select/index.js +0 -42
  420. package/lib/inputs/select/multiple/Selecteds.d.ts +0 -13
  421. package/lib/inputs/select/multiple/Selecteds.js +0 -27
  422. package/lib/inputs/select/multiple/index.d.ts +0 -13
  423. package/lib/inputs/select/multiple/index.js +0 -289
  424. package/lib/inputs/select/simple/index.d.ts +0 -13
  425. package/lib/inputs/select/simple/index.js +0 -318
  426. package/lib/inputs/select/types.d.ts +0 -125
  427. package/lib/inputs/select/types.js +0 -5
  428. package/lib/inputs/text/index.d.ts +0 -12
  429. package/lib/inputs/text/index.js +0 -13
  430. package/lib/inputs/text/types.d.ts +0 -24
  431. package/lib/inputs/text/types.js +0 -5
  432. package/lib/inputs/textarea/index.d.ts +0 -12
  433. package/lib/inputs/textarea/index.js +0 -25
  434. package/lib/inputs/textarea/types.d.ts +0 -16
  435. package/lib/inputs/textarea/types.js +0 -5
  436. package/lib/inputs/types.d.ts +0 -159
  437. package/lib/inputs/types.js +0 -5
  438. package/lib/inputs2/checkboxfield/base.d.ts +0 -29
  439. package/lib/inputs2/checkboxfield/base.js +0 -134
  440. package/lib/inputs2/checkboxfield/index.d.ts +0 -8
  441. package/lib/inputs2/checkboxfield/index.js +0 -57
  442. package/lib/inputs2/colorfield/index.d.ts +0 -10
  443. package/lib/inputs2/colorfield/index.js +0 -119
  444. package/lib/inputs2/date/base/constants.d.ts +0 -7
  445. package/lib/inputs2/date/base/constants.js +0 -44
  446. package/lib/inputs2/date/base/index.d.ts +0 -12
  447. package/lib/inputs2/date/base/index.js +0 -177
  448. package/lib/inputs2/date/datefield/base.d.ts +0 -13
  449. package/lib/inputs2/date/datefield/base.js +0 -330
  450. package/lib/inputs2/date/datefield/calendarbox.d.ts +0 -7
  451. package/lib/inputs2/date/datefield/calendarbox.js +0 -116
  452. package/lib/inputs2/date/datefield/context.d.ts +0 -14
  453. package/lib/inputs2/date/datefield/context.js +0 -15
  454. package/lib/inputs2/date/datefield/index.d.ts +0 -10
  455. package/lib/inputs2/date/datefield/index.js +0 -57
  456. package/lib/inputs2/date/datefield/triggers.d.ts +0 -8
  457. package/lib/inputs2/date/datefield/triggers.js +0 -46
  458. package/lib/inputs2/date/datefield/types.d.ts +0 -65
  459. package/lib/inputs2/date/datefield/types.js +0 -5
  460. package/lib/inputs2/date/dateperiodfield/base.d.ts +0 -13
  461. package/lib/inputs2/date/dateperiodfield/base.js +0 -595
  462. package/lib/inputs2/date/dateperiodfield/calendarbox.d.ts +0 -7
  463. package/lib/inputs2/date/dateperiodfield/calendarbox.js +0 -138
  464. package/lib/inputs2/date/dateperiodfield/context.d.ts +0 -14
  465. package/lib/inputs2/date/dateperiodfield/context.js +0 -17
  466. package/lib/inputs2/date/dateperiodfield/index.d.ts +0 -10
  467. package/lib/inputs2/date/dateperiodfield/index.js +0 -57
  468. package/lib/inputs2/date/dateperiodfield/triggers.d.ts +0 -6
  469. package/lib/inputs2/date/dateperiodfield/triggers.js +0 -125
  470. package/lib/inputs2/date/dateperiodfield/types.d.ts +0 -103
  471. package/lib/inputs2/date/dateperiodfield/types.js +0 -19
  472. package/lib/inputs2/date/helpers.d.ts +0 -21
  473. package/lib/inputs2/date/helpers.js +0 -62
  474. package/lib/inputs2/date/types.d.ts +0 -60
  475. package/lib/inputs2/date/types.js +0 -19
  476. package/lib/inputs2/filefield/index.d.ts +0 -10
  477. package/lib/inputs2/filefield/index.js +0 -174
  478. package/lib/inputs2/index.d.ts +0 -38
  479. package/lib/inputs2/index.js +0 -37
  480. package/lib/inputs2/mask/BaseMask.d.ts +0 -11
  481. package/lib/inputs2/mask/BaseMask.js +0 -95
  482. package/lib/inputs2/mask/Cnpj.d.ts +0 -12
  483. package/lib/inputs2/mask/Cnpj.js +0 -56
  484. package/lib/inputs2/mask/Cpf.d.ts +0 -12
  485. package/lib/inputs2/mask/Cpf.js +0 -52
  486. package/lib/inputs2/mask/Phone.d.ts +0 -12
  487. package/lib/inputs2/mask/Phone.js +0 -25
  488. package/lib/inputs2/mask/ZipCode.d.ts +0 -12
  489. package/lib/inputs2/mask/ZipCode.js +0 -22
  490. package/lib/inputs2/mask/helpers.d.ts +0 -4
  491. package/lib/inputs2/mask/helpers.js +0 -57
  492. package/lib/inputs2/numberfield/currency.d.ts +0 -14
  493. package/lib/inputs2/numberfield/currency.js +0 -91
  494. package/lib/inputs2/numberfield/decimal.d.ts +0 -14
  495. package/lib/inputs2/numberfield/decimal.js +0 -85
  496. package/lib/inputs2/numberfield/helpers.d.ts +0 -30
  497. package/lib/inputs2/numberfield/helpers.js +0 -53
  498. package/lib/inputs2/numberfield/index.d.ts +0 -13
  499. package/lib/inputs2/numberfield/index.js +0 -121
  500. package/lib/inputs2/numberfield/types.d.ts +0 -37
  501. package/lib/inputs2/numberfield/types.js +0 -5
  502. package/lib/inputs2/radiofield/base.d.ts +0 -12
  503. package/lib/inputs2/radiofield/base.js +0 -156
  504. package/lib/inputs2/radiofield/index.d.ts +0 -9
  505. package/lib/inputs2/radiofield/index.js +0 -55
  506. package/lib/inputs2/radiofield/types.d.ts +0 -36
  507. package/lib/inputs2/radiofield/types.js +0 -5
  508. package/lib/inputs2/selectfield/base.d.ts +0 -11
  509. package/lib/inputs2/selectfield/base.js +0 -513
  510. package/lib/inputs2/selectfield/context.d.ts +0 -39
  511. package/lib/inputs2/selectfield/context.js +0 -15
  512. package/lib/inputs2/selectfield/helpers.d.ts +0 -6
  513. package/lib/inputs2/selectfield/helpers.js +0 -25
  514. package/lib/inputs2/selectfield/index.d.ts +0 -11
  515. package/lib/inputs2/selectfield/index.js +0 -84
  516. package/lib/inputs2/selectfield/item.d.ts +0 -12
  517. package/lib/inputs2/selectfield/item.js +0 -89
  518. package/lib/inputs2/selectfield/listbox.d.ts +0 -7
  519. package/lib/inputs2/selectfield/listbox.js +0 -117
  520. package/lib/inputs2/selectfield/options.d.ts +0 -9
  521. package/lib/inputs2/selectfield/options.js +0 -26
  522. package/lib/inputs2/selectfield/search.d.ts +0 -7
  523. package/lib/inputs2/selectfield/search.js +0 -70
  524. package/lib/inputs2/selectfield/selections.d.ts +0 -10
  525. package/lib/inputs2/selectfield/selections.js +0 -87
  526. package/lib/inputs2/selectfield/triggers.d.ts +0 -8
  527. package/lib/inputs2/selectfield/triggers.js +0 -109
  528. package/lib/inputs2/selectfield/types.d.ts +0 -56
  529. package/lib/inputs2/selectfield/types.js +0 -21
  530. package/lib/inputs2/slot/index.d.ts +0 -14
  531. package/lib/inputs2/slot/index.js +0 -47
  532. package/lib/inputs2/textareafield/base.d.ts +0 -26
  533. package/lib/inputs2/textareafield/base.js +0 -166
  534. package/lib/inputs2/textareafield/index.d.ts +0 -9
  535. package/lib/inputs2/textareafield/index.js +0 -70
  536. package/lib/inputs2/textfield/base.d.ts +0 -26
  537. package/lib/inputs2/textfield/base.js +0 -131
  538. package/lib/inputs2/textfield/index.d.ts +0 -9
  539. package/lib/inputs2/textfield/index.js +0 -70
  540. package/lib/internals/colorStyles.d.ts +0 -9
  541. package/lib/internals/colorStyles.js +0 -14
  542. package/lib/internals/constants.d.ts +0 -14
  543. package/lib/internals/constants.js +0 -18
  544. package/lib/internals/types.d.ts +0 -9
  545. package/lib/internals/types.js +0 -5
  546. package/lib/labelMessages/index.d.ts +0 -9
  547. package/lib/labelMessages/index.js +0 -58
  548. package/lib/labelMessages/types.d.ts +0 -20
  549. package/lib/labelMessages/types.js +0 -5
  550. package/lib/labels/DangerLabel.d.ts +0 -12
  551. package/lib/labels/DangerLabel.js +0 -18
  552. package/lib/labels/DefaultLabel.d.ts +0 -12
  553. package/lib/labels/DefaultLabel.js +0 -59
  554. package/lib/labels/InfoLabel.d.ts +0 -12
  555. package/lib/labels/InfoLabel.js +0 -18
  556. package/lib/labels/PrimaryLabel.d.ts +0 -12
  557. package/lib/labels/PrimaryLabel.js +0 -18
  558. package/lib/labels/SuccessLabel.d.ts +0 -12
  559. package/lib/labels/SuccessLabel.js +0 -18
  560. package/lib/labels/WarningLabel.d.ts +0 -12
  561. package/lib/labels/WarningLabel.js +0 -18
  562. package/lib/labels/index.d.ts +0 -19
  563. package/lib/labels/index.js +0 -52
  564. package/lib/labels/label_container/index.d.ts +0 -12
  565. package/lib/labels/label_container/index.js +0 -22
  566. package/lib/labels/types.d.ts +0 -23
  567. package/lib/labels/types.js +0 -5
  568. package/lib/list/Header.d.ts +0 -11
  569. package/lib/list/Header.js +0 -23
  570. package/lib/list/Item.d.ts +0 -11
  571. package/lib/list/Item.js +0 -165
  572. package/lib/list/Separator.d.ts +0 -3
  573. package/lib/list/Separator.js +0 -12
  574. package/lib/list/helpers.d.ts +0 -16
  575. package/lib/list/helpers.js +0 -14
  576. package/lib/list/index.d.ts +0 -14
  577. package/lib/list/index.js +0 -180
  578. package/lib/list/types.d.ts +0 -71
  579. package/lib/list/types.js +0 -5
  580. package/lib/menus/float/MenuItem.d.ts +0 -9
  581. package/lib/menus/float/MenuItem.js +0 -68
  582. package/lib/menus/float/SubMenuContainer.js +0 -76
  583. package/lib/menus/float/helpers.d.ts +0 -9
  584. package/lib/menus/float/helpers.js +0 -10
  585. package/lib/menus/float/index.d.ts +0 -40
  586. package/lib/menus/float/index.js +0 -68
  587. package/lib/menus/float/types.d.ts +0 -30
  588. package/lib/menus/float/types.js +0 -5
  589. package/lib/menus/index.d.ts +0 -12
  590. package/lib/menus/index.js +0 -9
  591. package/lib/menus/sidenav/ExpandMenu.d.ts +0 -12
  592. package/lib/menus/sidenav/ExpandMenu.js +0 -27
  593. package/lib/menus/sidenav/MenuLink.d.ts +0 -12
  594. package/lib/menus/sidenav/MenuLink.js +0 -37
  595. package/lib/menus/sidenav/NavMenuGroup.d.ts +0 -12
  596. package/lib/menus/sidenav/NavMenuGroup.js +0 -25
  597. package/lib/menus/sidenav/NavMenuItem.d.ts +0 -12
  598. package/lib/menus/sidenav/NavMenuItem.js +0 -151
  599. package/lib/menus/sidenav/NavSubMenuItem.d.ts +0 -12
  600. package/lib/menus/sidenav/NavSubMenuItem.js +0 -42
  601. package/lib/menus/sidenav/helpers.d.ts +0 -14
  602. package/lib/menus/sidenav/helpers.js +0 -18
  603. package/lib/menus/sidenav/index.d.ts +0 -16
  604. package/lib/menus/sidenav/index.js +0 -183
  605. package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +0 -12
  606. package/lib/menus/sidenav/popup_menu_search/EmptyList.js +0 -26
  607. package/lib/menus/sidenav/popup_menu_search/index.d.ts +0 -12
  608. package/lib/menus/sidenav/popup_menu_search/index.js +0 -115
  609. package/lib/menus/sidenav/types.d.ts +0 -90
  610. package/lib/menus/sidenav/types.js +0 -5
  611. package/lib/noPermission/index.d.ts +0 -3
  612. package/lib/noPermission/index.js +0 -23
  613. package/lib/panel/Content.d.ts +0 -10
  614. package/lib/panel/Content.js +0 -83
  615. package/lib/panel/DangerPanel.d.ts +0 -10
  616. package/lib/panel/DangerPanel.js +0 -15
  617. package/lib/panel/Default.d.ts +0 -10
  618. package/lib/panel/Default.js +0 -66
  619. package/lib/panel/Header.d.ts +0 -10
  620. package/lib/panel/Header.js +0 -74
  621. package/lib/panel/InfoPanel.d.ts +0 -10
  622. package/lib/panel/InfoPanel.js +0 -15
  623. package/lib/panel/PrimaryPanel.d.ts +0 -10
  624. package/lib/panel/PrimaryPanel.js +0 -15
  625. package/lib/panel/SuccessPanel.d.ts +0 -10
  626. package/lib/panel/SuccessPanel.js +0 -15
  627. package/lib/panel/ToolBar.d.ts +0 -10
  628. package/lib/panel/ToolBar.js +0 -22
  629. package/lib/panel/WarningPanel.d.ts +0 -10
  630. package/lib/panel/WarningPanel.js +0 -15
  631. package/lib/panel/helpers.d.ts +0 -11
  632. package/lib/panel/helpers.js +0 -25
  633. package/lib/panel/index.d.ts +0 -18
  634. package/lib/panel/index.js +0 -59
  635. package/lib/panel/types.d.ts +0 -47
  636. package/lib/panel/types.js +0 -5
  637. package/lib/permissionValidations.d.ts +0 -14
  638. package/lib/permissionValidations.js +0 -59
  639. package/lib/popover/PopoverText.d.ts +0 -11
  640. package/lib/popover/PopoverText.js +0 -28
  641. package/lib/popover/PopoverTitle.d.ts +0 -11
  642. package/lib/popover/PopoverTitle.js +0 -17
  643. package/lib/popover/index.d.ts +0 -13
  644. package/lib/popover/index.js +0 -70
  645. package/lib/popover/types.d.ts +0 -36
  646. package/lib/popover/types.js +0 -5
  647. package/lib/progress/Bar.d.ts +0 -6
  648. package/lib/progress/Bar.js +0 -74
  649. package/lib/progress/index.d.ts +0 -7
  650. package/lib/progress/index.js +0 -38
  651. package/lib/progress/types.d.ts +0 -37
  652. package/lib/progress/types.js +0 -5
  653. package/lib/radio/index.d.ts +0 -16
  654. package/lib/radio/index.js +0 -114
  655. package/lib/radio/types.d.ts +0 -28
  656. package/lib/radio/types.js +0 -5
  657. package/lib/shortcuts/index.d.ts +0 -7
  658. package/lib/shortcuts/index.js +0 -28
  659. package/lib/shortcuts/types.d.ts +0 -12
  660. package/lib/shortcuts/types.js +0 -5
  661. package/lib/skeleton/SkeletonContainer.d.ts +0 -7
  662. package/lib/skeleton/SkeletonContainer.js +0 -22
  663. package/lib/skeleton/index.d.ts +0 -8
  664. package/lib/skeleton/index.js +0 -51
  665. package/lib/skeleton/types.d.ts +0 -21
  666. package/lib/skeleton/types.js +0 -5
  667. package/lib/spinner/SpinnerLoading.d.ts +0 -7
  668. package/lib/spinner/SpinnerLoading.js +0 -220
  669. package/lib/spinner/index.d.ts +0 -7
  670. package/lib/spinner/index.js +0 -59
  671. package/lib/spinner/types.d.ts +0 -20
  672. package/lib/spinner/types.js +0 -5
  673. package/lib/split/Split.d.ts +0 -6
  674. package/lib/split/Split.js +0 -291
  675. package/lib/split/SplitSide.d.ts +0 -6
  676. package/lib/split/SplitSide.js +0 -41
  677. package/lib/split/helpers.d.ts +0 -10
  678. package/lib/split/helpers.js +0 -10
  679. package/lib/split/index.d.ts +0 -8
  680. package/lib/split/index.js +0 -17
  681. package/lib/split/types.d.ts +0 -34
  682. package/lib/split/types.js +0 -5
  683. package/lib/table/Body.d.ts +0 -8
  684. package/lib/table/Body.js +0 -70
  685. package/lib/table/Header.d.ts +0 -8
  686. package/lib/table/Header.js +0 -92
  687. package/lib/table/HeaderColumn.d.ts +0 -8
  688. package/lib/table/HeaderColumn.js +0 -54
  689. package/lib/table/Row.d.ts +0 -8
  690. package/lib/table/Row.js +0 -88
  691. package/lib/table/RowColumn.d.ts +0 -8
  692. package/lib/table/RowColumn.js +0 -80
  693. package/lib/table/helpers.d.ts +0 -10
  694. package/lib/table/helpers.js +0 -15
  695. package/lib/table/index.d.ts +0 -13
  696. package/lib/table/index.js +0 -152
  697. package/lib/table/types.d.ts +0 -100
  698. package/lib/table/types.js +0 -5
  699. package/lib/tabs/DropdownTabs.d.ts +0 -11
  700. package/lib/tabs/DropdownTabs.js +0 -86
  701. package/lib/tabs/Menu.d.ts +0 -11
  702. package/lib/tabs/Menu.js +0 -48
  703. package/lib/tabs/MenuTabs.d.ts +0 -11
  704. package/lib/tabs/MenuTabs.js +0 -90
  705. package/lib/tabs/Panel.d.ts +0 -11
  706. package/lib/tabs/Panel.js +0 -85
  707. package/lib/tabs/context.d.ts +0 -12
  708. package/lib/tabs/context.js +0 -131
  709. package/lib/tabs/index.d.ts +0 -12
  710. package/lib/tabs/index.js +0 -75
  711. package/lib/tabs/tabHelpers.d.ts +0 -12
  712. package/lib/tabs/tabHelpers.js +0 -70
  713. package/lib/tabs/types.d.ts +0 -105
  714. package/lib/tabs/types.js +0 -5
  715. package/lib/tabs/useTabs.d.ts +0 -11
  716. package/lib/tabs/useTabs.js +0 -11
  717. package/lib/textContent/index.d.ts +0 -17
  718. package/lib/textContent/index.js +0 -46
  719. package/lib/toolbar/ButtonBar.d.ts +0 -12
  720. package/lib/toolbar/ButtonBar.js +0 -65
  721. package/lib/toolbar/LabelBar.d.ts +0 -12
  722. package/lib/toolbar/LabelBar.js +0 -57
  723. package/lib/toolbar/Separator.d.ts +0 -3
  724. package/lib/toolbar/Separator.js +0 -12
  725. package/lib/toolbar/ToolBarGroup.d.ts +0 -12
  726. package/lib/toolbar/ToolBarGroup.js +0 -19
  727. package/lib/toolbar/helpers.d.ts +0 -12
  728. package/lib/toolbar/helpers.js +0 -9
  729. package/lib/toolbar/index.d.ts +0 -16
  730. package/lib/toolbar/index.js +0 -65
  731. package/lib/toolbar/types.d.ts +0 -47
  732. package/lib/toolbar/types.js +0 -5
  733. package/lib/tooltip/TooltipContent.d.ts +0 -7
  734. package/lib/tooltip/TooltipContent.js +0 -64
  735. package/lib/tooltip/index.d.ts +0 -7
  736. package/lib/tooltip/index.js +0 -46
  737. package/lib/tooltip/types.d.ts +0 -39
  738. package/lib/tooltip/types.js +0 -5
  739. package/lib/tooltip/useTooltip.d.ts +0 -30
  740. package/lib/tooltip/useTooltip.js +0 -153
  741. package/lib/treetable/Body.d.ts +0 -3
  742. package/lib/treetable/Body.js +0 -33
  743. package/lib/treetable/Header.d.ts +0 -3
  744. package/lib/treetable/Header.js +0 -23
  745. package/lib/treetable/Row.d.ts +0 -9
  746. package/lib/treetable/Row.js +0 -236
  747. package/lib/treetable/helpers.d.ts +0 -21
  748. package/lib/treetable/helpers.js +0 -32
  749. package/lib/treetable/index.d.ts +0 -10
  750. package/lib/treetable/index.js +0 -28
  751. package/lib/treetable/types.d.js +0 -5
  752. package/lib/treeview/Header.d.ts +0 -7
  753. package/lib/treeview/Header.js +0 -21
  754. package/lib/treeview/Node.d.ts +0 -7
  755. package/lib/treeview/Node.js +0 -244
  756. package/lib/treeview/constants.d.ts +0 -7
  757. package/lib/treeview/constants.js +0 -9
  758. package/lib/treeview/index.d.ts +0 -9
  759. package/lib/treeview/index.js +0 -319
  760. package/lib/treeview/types.d.ts +0 -108
  761. package/lib/treeview/types.js +0 -5
  762. package/lib/types.d-b477e076.d.ts +0 -47
  763. package/lib/uitour/helpers.d.ts +0 -8
  764. package/lib/uitour/helpers.js +0 -12
  765. package/lib/uitour/index.d.ts +0 -7
  766. package/lib/uitour/index.js +0 -256
  767. package/lib/uitour/types.d.ts +0 -38
  768. package/lib/uitour/types.js +0 -5
@@ -1,22 +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 _BaseMask = require("./BaseMask");
9
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
10
- 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); }
11
- const Input = exports.Input = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
12
- return /*#__PURE__*/_react.default.createElement(_BaseMask.Input, _extends({}, props, {
13
- type: "text",
14
- maskOptions: {
15
- mask: '00000-000',
16
- placeholderChar: '_',
17
- lazy: false
18
- },
19
- ref: ref
20
- }));
21
- });
22
- Input.displayName = 'ZipCodeInputField';
@@ -1,4 +0,0 @@
1
- declare function CPFValidation(cpf?: string): boolean;
2
- declare function CNPJValidation(cnpj?: string): boolean;
3
-
4
- export { CNPJValidation, CPFValidation };
@@ -1,57 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.CNPJValidation = CNPJValidation;
7
- exports.CPFValidation = CPFValidation;
8
- var _lodash = require("lodash");
9
- const allEqualDigits = input => input.split('').every(char => char === input[0]);
10
- function CPFValidation(cpf) {
11
- const stringCpf = cpf ? cpf.replace(/[^\d]+/g, '') : '';
12
- let sum = 0;
13
- let split;
14
- if (stringCpf === '' || stringCpf.length < 11) return false;
15
- if (allEqualDigits(stringCpf)) return false;
16
- for (let i = 0; i < 9; i++) {
17
- sum += (0, _lodash.parseInt)(stringCpf.charAt(i), 10) * (10 - i);
18
- }
19
- split = sum * 10 % 11;
20
- if (split === 10 || split === 11) split = 0;
21
- if (split !== (0, _lodash.parseInt)(stringCpf.charAt(9), 10)) return false;
22
- sum = 0;
23
- for (let i = 0; i < 10; i++) {
24
- sum += (0, _lodash.parseInt)(stringCpf.charAt(i), 10) * (11 - i);
25
- }
26
- split = sum * 10 % 11;
27
- if (split === 10 || split === 11) split = 0;
28
- if (split !== (0, _lodash.parseInt)(stringCpf.charAt(10), 10)) return false;
29
- return true;
30
- }
31
- function CNPJValidation(cnpj) {
32
- const stringCnpj = cnpj ? cnpj.replace(/[^\d]+/g, '') : '';
33
- if (stringCnpj === '' || stringCnpj.length !== 14) return false;
34
- if (allEqualDigits(stringCnpj)) return false;
35
- let length = stringCnpj.length - 2;
36
- let numbers = stringCnpj.substring(0, length);
37
- const digits = stringCnpj.substring(length);
38
- let sum = 0;
39
- let pos = length - 7;
40
- for (let i = length; i >= 1; i--) {
41
- sum += (0, _lodash.parseInt)(numbers.charAt(length - i), 10) * pos--;
42
- if (pos < 2) pos = 9;
43
- }
44
- let result = sum % 11 < 2 ? 0 : 11 - sum % 11;
45
- if (result.toString() !== digits.charAt(0)) return false;
46
- length += 1;
47
- numbers = stringCnpj.substring(0, length);
48
- sum = 0;
49
- pos = length - 7;
50
- for (let i = length; i >= 1; i--) {
51
- sum += (0, _lodash.parseInt)(numbers.charAt(length - i), 10) * pos--;
52
- if (pos < 2) pos = 9;
53
- }
54
- result = sum % 11 < 2 ? 0 : 11 - sum % 11;
55
- if (result.toString() !== digits.charAt(1)) return false;
56
- return true;
57
- }
@@ -1,14 +0,0 @@
1
- import React__default from 'react';
2
- import { CurrencyFieldInputProps } from './types.js';
3
- import '../../index-02a27c19.js';
4
- import '../../@types/PermissionAttr.js';
5
- import '../slot/index.js';
6
- import '../textfield/base.js';
7
- import '../../tooltip/types.js';
8
- import '../../@types/Position.js';
9
- import '../../@types/Align.js';
10
- import '../../@types/ColorStyles.js';
11
-
12
- declare const Currency: React__default.ForwardRefExoticComponent<CurrencyFieldInputProps & React__default.RefAttributes<HTMLInputElement>>;
13
-
14
- export { Currency };
@@ -1,91 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.Currency = void 0;
7
- require("../../assets/styles/numberfield.scss");
8
- var _react = _interopRequireDefault(require("react"));
9
- var _lodash = _interopRequireDefault(require("lodash"));
10
- var _reactImask = require("react-imask");
11
- var _2 = require("..");
12
- var _helpers = require("../../form2/helpers");
13
- const _excluded = ["min", "max", "to", "from", "enum", "onChange", "allowNegative", "textAlign", "children", "scale", "normalizeZeros", "padFractionalZeros", "currencySymbol"];
14
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
- 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); }
16
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
17
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
18
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
19
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
20
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
21
- 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; }
22
- 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; }
23
- const Currency = exports.Currency = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
24
- const {
25
- min = undefined,
26
- max = undefined,
27
- to = undefined,
28
- from = undefined,
29
- enum: interval = undefined,
30
- onChange = null,
31
- allowNegative = true,
32
- textAlign = 'right',
33
- children = null,
34
- scale = 2,
35
- normalizeZeros = false,
36
- padFractionalZeros = true,
37
- currencySymbol = 'R$'
38
- } = props,
39
- rest = _objectWithoutProperties(props, _excluded);
40
- const numberInputRef = _react.default.useRef(null);
41
- const {
42
- value: maskedValue,
43
- setValue: setMaskedValue,
44
- unmaskedValue
45
- } = (0, _reactImask.useIMask)({
46
- mask: Number,
47
- unmask: true,
48
- min: !_lodash.default.isNil(min) ? min : allowNegative ? undefined : 0,
49
- enum: interval,
50
- radix: ',',
51
- mapToRadix: ['.'],
52
- thousandsSeparator: '.',
53
- max,
54
- to,
55
- from,
56
- scale,
57
- normalizeZeros,
58
- padFractionalZeros
59
- }, {
60
- ref: numberInputRef,
61
- onAccept: (__, options, event) => {
62
- const parsedValueToFloat = parseFloat(options.unmaskedValue);
63
- const valueToReturn = !_lodash.default.isNaN(parsedValueToFloat) ? parsedValueToFloat : 0;
64
- onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread(_objectSpread({}, event), {}, {
65
- target: _objectSpread(_objectSpread({}, event === null || event === void 0 ? void 0 : event.target), {}, {
66
- name: props === null || props === void 0 ? void 0 : props.name,
67
- value: valueToReturn
68
- })
69
- }));
70
- }
71
- });
72
- _react.default.useEffect(() => {
73
- const valueToString = _lodash.default.toString(props === null || props === void 0 ? void 0 : props.value);
74
- if (!_lodash.default.isNil(props === null || props === void 0 ? void 0 : props.value) && !_lodash.default.isEqual(parseFloat(valueToString), parseFloat(unmaskedValue))) {
75
- setMaskedValue(parseFloat(valueToString).toLocaleString('pt-BR'));
76
- }
77
- }, [props === null || props === void 0 ? void 0 : props.value]);
78
- return /*#__PURE__*/_react.default.createElement(_2.TextField.Input, _extends({}, rest, {
79
- ref: (0, _helpers.mergeRefs)(ref, numberInputRef),
80
- type: "text",
81
- inputMode: "numeric",
82
- value: maskedValue,
83
- textAlign: textAlign,
84
- onChange: () => {}
85
- }), /*#__PURE__*/_react.default.createElement(_2.TextField.LeftSlot, {
86
- className: "currency-left-elements"
87
- }, /*#__PURE__*/_react.default.createElement("span", {
88
- className: "currency-symbol"
89
- }, currencySymbol)), children);
90
- });
91
- Currency.displayName = 'CurrencyFieldInput';
@@ -1,14 +0,0 @@
1
- import React__default from 'react';
2
- import { DecimalFieldInputProps } from './types.js';
3
- import '../../index-02a27c19.js';
4
- import '../../@types/PermissionAttr.js';
5
- import '../slot/index.js';
6
- import '../textfield/base.js';
7
- import '../../tooltip/types.js';
8
- import '../../@types/Position.js';
9
- import '../../@types/Align.js';
10
- import '../../@types/ColorStyles.js';
11
-
12
- declare const Decimal: React__default.ForwardRefExoticComponent<DecimalFieldInputProps & React__default.RefAttributes<HTMLInputElement>>;
13
-
14
- export { Decimal };
@@ -1,85 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.Decimal = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _lodash = _interopRequireDefault(require("lodash"));
9
- var _reactImask = require("react-imask");
10
- var _2 = require("..");
11
- var _helpers = require("../../form2/helpers");
12
- const _excluded = ["min", "max", "to", "from", "enum", "onChange", "allowNegative", "textAlign", "children", "scale", "normalizeZeros", "padFractionalZeros"];
13
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
- 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); }
15
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
18
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
19
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
20
- 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; }
21
- 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; }
22
- const Decimal = exports.Decimal = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
23
- const {
24
- min = undefined,
25
- max = undefined,
26
- to = undefined,
27
- from = undefined,
28
- enum: interval = undefined,
29
- onChange = null,
30
- allowNegative = true,
31
- textAlign = 'right',
32
- children = null,
33
- scale = 2,
34
- normalizeZeros = false,
35
- padFractionalZeros = true
36
- } = props,
37
- rest = _objectWithoutProperties(props, _excluded);
38
- const numberInputRef = _react.default.useRef(null);
39
- const {
40
- value: maskedValue,
41
- setValue: setMaskedValue,
42
- unmaskedValue
43
- } = (0, _reactImask.useIMask)({
44
- mask: Number,
45
- unmask: true,
46
- min: !_lodash.default.isNil(min) ? min : allowNegative ? undefined : 0,
47
- enum: interval,
48
- radix: ',',
49
- mapToRadix: ['.'],
50
- thousandsSeparator: '.',
51
- max,
52
- to,
53
- from,
54
- scale,
55
- normalizeZeros,
56
- padFractionalZeros
57
- }, {
58
- ref: numberInputRef,
59
- onAccept: (__, options, event) => {
60
- const parsedValueToFloat = parseFloat(options.unmaskedValue);
61
- const valueToReturn = !_lodash.default.isNaN(parsedValueToFloat) ? parsedValueToFloat : 0;
62
- onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread(_objectSpread({}, event), {}, {
63
- target: _objectSpread(_objectSpread({}, event === null || event === void 0 ? void 0 : event.target), {}, {
64
- name: props === null || props === void 0 ? void 0 : props.name,
65
- value: valueToReturn
66
- })
67
- }));
68
- }
69
- });
70
- _react.default.useEffect(() => {
71
- const valueToString = _lodash.default.toString(props === null || props === void 0 ? void 0 : props.value);
72
- if (!_lodash.default.isNil(props === null || props === void 0 ? void 0 : props.value) && !_lodash.default.isEqual(parseFloat(valueToString), parseFloat(unmaskedValue))) {
73
- setMaskedValue(parseFloat(valueToString).toLocaleString('pt-BR'));
74
- }
75
- }, [props === null || props === void 0 ? void 0 : props.value]);
76
- return /*#__PURE__*/_react.default.createElement(_2.TextField.Input, _extends({}, rest, {
77
- ref: (0, _helpers.mergeRefs)(ref, numberInputRef),
78
- type: "text",
79
- inputMode: "numeric",
80
- value: maskedValue,
81
- textAlign: textAlign,
82
- onChange: () => {}
83
- }), children);
84
- });
85
- Decimal.displayName = 'DecimalFieldInput';
@@ -1,30 +0,0 @@
1
- /**
2
- * Converte um valor string para um número seguro ou retorna como string limpa.
3
- *
4
- * Esta função sanitiza a entrada removendo todos os caracteres não-dígitos exceto hífens,
5
- * e então converte para número se estiver dentro do intervalo seguro de inteiros do JavaScript.
6
- * Se o valor exceder o intervalo seguro ou a conversão falhar, retorna a string limpa.
7
- *
8
- * @param stringValue - A string de entrada a ser convertida. Pode conter qualquer caractere.
9
- * @param returnAsString - Se true, retorna a string limpa sem tentar conversão para número. Se false,
10
- * tenta converter para número dentro dos limites seguros de inteiros.
11
- *
12
- * @returns {number | string} Retorna:
13
- * - String vazia ('') ou 0 se a entrada estiver vazia/nula (baseado na prop "returnAsString")
14
- * - String limpa se "returnAsString" for true
15
- * - Número se a conversão for bem-sucedida e dentro do intervalo seguro de inteiros
16
- * - String limpa se o número exceder o intervalo seguro ou a conversão falhar
17
- *
18
- * @example
19
- * ```typescript
20
- * convertToSafeNumber("123abc", false); // Retorna: 123
21
- * convertToSafeNumber("123abc", true); // Retorna: "123"
22
- * convertToSafeNumber("-456def", false); // Retorna: -456
23
- * convertToSafeNumber("999999999999999999999", false); // Retorna: "999999999999999999999" (excede intervalo seguro)
24
- * convertToSafeNumber("", false); // Retorna: 0
25
- * convertToSafeNumber("", true); // Retorna: ""
26
- * ```
27
- */
28
- declare const convertToSafeNumber: (stringValue: string, returnAsString: boolean) => number | string;
29
-
30
- export { convertToSafeNumber };
@@ -1,53 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.convertToSafeNumber = void 0;
7
- /**
8
- * Converte um valor string para um número seguro ou retorna como string limpa.
9
- *
10
- * Esta função sanitiza a entrada removendo todos os caracteres não-dígitos exceto hífens,
11
- * e então converte para número se estiver dentro do intervalo seguro de inteiros do JavaScript.
12
- * Se o valor exceder o intervalo seguro ou a conversão falhar, retorna a string limpa.
13
- *
14
- * @param stringValue - A string de entrada a ser convertida. Pode conter qualquer caractere.
15
- * @param returnAsString - Se true, retorna a string limpa sem tentar conversão para número. Se false,
16
- * tenta converter para número dentro dos limites seguros de inteiros.
17
- *
18
- * @returns {number | string} Retorna:
19
- * - String vazia ('') ou 0 se a entrada estiver vazia/nula (baseado na prop "returnAsString")
20
- * - String limpa se "returnAsString" for true
21
- * - Número se a conversão for bem-sucedida e dentro do intervalo seguro de inteiros
22
- * - String limpa se o número exceder o intervalo seguro ou a conversão falhar
23
- *
24
- * @example
25
- * ```typescript
26
- * convertToSafeNumber("123abc", false); // Retorna: 123
27
- * convertToSafeNumber("123abc", true); // Retorna: "123"
28
- * convertToSafeNumber("-456def", false); // Retorna: -456
29
- * convertToSafeNumber("999999999999999999999", false); // Retorna: "999999999999999999999" (excede intervalo seguro)
30
- * convertToSafeNumber("", false); // Retorna: 0
31
- * convertToSafeNumber("", true); // Retorna: ""
32
- * ```
33
- */
34
- const convertToSafeNumber = (stringValue, returnAsString) => {
35
- if (!stringValue || stringValue === '') return returnAsString ? '' : 0;
36
- const cleanValue = stringValue.replace(/[^\d-]/g, '');
37
- if (returnAsString) {
38
- return cleanValue;
39
- }
40
- const {
41
- MAX_SAFE_INTEGER
42
- } = Number;
43
- try {
44
- const numValue = BigInt(cleanValue);
45
- if (numValue > BigInt(MAX_SAFE_INTEGER) || numValue < BigInt(-MAX_SAFE_INTEGER)) {
46
- return cleanValue;
47
- }
48
- return Number(cleanValue);
49
- } catch (error) {
50
- return cleanValue;
51
- }
52
- };
53
- exports.convertToSafeNumber = convertToSafeNumber;
@@ -1,13 +0,0 @@
1
- import 'react';
2
- export { LeftSlot, RightSlot } from '../slot/index.js';
3
- export { Decimal } from './decimal.js';
4
- export { Currency } from './currency.js';
5
- export { CurrencyFieldInputProps, DecimalFieldInputProps, NumberFieldInputProps } from './types.js';
6
- export { I as Input } from '../../index-ecafc8c6.js';
7
- import '../../index-02a27c19.js';
8
- import '../../@types/PermissionAttr.js';
9
- import '../textfield/base.js';
10
- import '../../tooltip/types.js';
11
- import '../../@types/Position.js';
12
- import '../../@types/Align.js';
13
- import '../../@types/ColorStyles.js';
@@ -1,121 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "Currency", {
7
- enumerable: true,
8
- get: function () {
9
- return _currency.Currency;
10
- }
11
- });
12
- Object.defineProperty(exports, "Decimal", {
13
- enumerable: true,
14
- get: function () {
15
- return _decimal.Decimal;
16
- }
17
- });
18
- exports.Input = void 0;
19
- Object.defineProperty(exports, "LeftSlot", {
20
- enumerable: true,
21
- get: function () {
22
- return _slot.LeftSlot;
23
- }
24
- });
25
- Object.defineProperty(exports, "RightSlot", {
26
- enumerable: true,
27
- get: function () {
28
- return _slot.RightSlot;
29
- }
30
- });
31
- var _react = _interopRequireDefault(require("react"));
32
- var _lodash = _interopRequireDefault(require("lodash"));
33
- var _reactImask = require("react-imask");
34
- var _2 = require("..");
35
- var _helpers = require("../../form2/helpers");
36
- var _slot = require("../slot");
37
- var _decimal = require("./decimal");
38
- var _currency = require("./currency");
39
- var _helpers2 = require("./helpers");
40
- const _excluded = ["min", "max", "to", "from", "enum", "onChange", "onBlur", "allowNegative", "returnAsString", "textAlign", "children"];
41
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
42
- 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); }
43
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
44
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
45
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
46
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
47
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
48
- 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; }
49
- 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; }
50
- const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
51
- const {
52
- min = undefined,
53
- max = undefined,
54
- to = undefined,
55
- from = undefined,
56
- enum: interval = undefined,
57
- onChange = null,
58
- onBlur = null,
59
- allowNegative = true,
60
- returnAsString = false,
61
- textAlign = 'right',
62
- children = null
63
- } = props,
64
- rest = _objectWithoutProperties(props, _excluded);
65
- const numberInputRef = _react.default.useRef(null);
66
- const {
67
- value: maskedValue,
68
- setValue: setMaskedValue,
69
- unmaskedValue
70
- } = (0, _reactImask.useIMask)({
71
- mask: Number,
72
- scale: 0,
73
- enum: interval,
74
- min: allowNegative ? undefined : 0,
75
- max,
76
- to,
77
- from
78
- }, {
79
- ref: numberInputRef,
80
- onAccept: (value, __, event) => {
81
- const parsedValue = (0, _helpers2.convertToSafeNumber)(value, returnAsString);
82
- onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread(_objectSpread({}, event), {}, {
83
- target: _objectSpread(_objectSpread({}, event === null || event === void 0 ? void 0 : event.target), {}, {
84
- name: props === null || props === void 0 ? void 0 : props.name,
85
- value: parsedValue
86
- })
87
- }));
88
- }
89
- });
90
- const handleBlur = _react.default.useCallback(event => {
91
- if (!_lodash.default.isNil(min)) {
92
- const currentValue = (0, _helpers2.convertToSafeNumber)(unmaskedValue, false);
93
- if (_lodash.default.isNaN(currentValue) || currentValue < min) {
94
- setMaskedValue(_lodash.default.toString(min));
95
- onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread(_objectSpread({}, event), {}, {
96
- target: _objectSpread(_objectSpread({}, event === null || event === void 0 ? void 0 : event.target), {}, {
97
- name: props === null || props === void 0 ? void 0 : props.name,
98
- value: returnAsString ? _lodash.default.toString(min) : min
99
- })
100
- }));
101
- }
102
- }
103
- onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
104
- }, [min, unmaskedValue, onChange, onBlur, props === null || props === void 0 ? void 0 : props.name, returnAsString]);
105
- _react.default.useEffect(() => {
106
- const floatUnmaskedValue = Number(unmaskedValue || '0');
107
- if (!_lodash.default.isNil(props === null || props === void 0 ? void 0 : props.value) && (!_lodash.default.isEqual(props === null || props === void 0 ? void 0 : props.value, floatUnmaskedValue) || _lodash.default.isEqual(props === null || props === void 0 ? void 0 : props.value, 0))) {
108
- setMaskedValue(_lodash.default.toString(props === null || props === void 0 ? void 0 : props.value));
109
- }
110
- }, [props === null || props === void 0 ? void 0 : props.value]);
111
- return /*#__PURE__*/_react.default.createElement(_2.TextField.Input, _extends({}, rest, {
112
- ref: (0, _helpers.mergeRefs)(ref, numberInputRef),
113
- type: "text",
114
- inputMode: "numeric",
115
- value: maskedValue,
116
- textAlign: textAlign,
117
- onBlur: handleBlur,
118
- onChange: () => {}
119
- }), children);
120
- });
121
- Input.displayName = 'NumberFieldInput';
@@ -1,37 +0,0 @@
1
- import { T as TextFieldInputProps } from '../../index-02a27c19.js';
2
- import 'react';
3
- import '../../@types/PermissionAttr.js';
4
- import '../slot/index.js';
5
- import '../textfield/base.js';
6
- import '../../tooltip/types.js';
7
- import '../../@types/Position.js';
8
- import '../../@types/Align.js';
9
- import '../../@types/ColorStyles.js';
10
-
11
- type BaseInputProps = Omit<TextFieldInputProps, 'type' | 'max' | 'min' | 'enum'>;
12
- type BaseMaskNumberInputProps = {
13
- min?: number;
14
- max?: number;
15
- to?: number;
16
- from?: number;
17
- enum?: string[];
18
- };
19
- interface NumberFieldInputProps extends BaseInputProps, BaseMaskNumberInputProps {
20
- allowNegative?: boolean;
21
- returnAsString?: boolean;
22
- }
23
- interface DecimalFieldInputProps extends BaseInputProps, BaseMaskNumberInputProps {
24
- scale?: number;
25
- allowNegative?: boolean;
26
- normalizeZeros?: boolean;
27
- padFractionalZeros?: boolean;
28
- }
29
- interface CurrencyFieldInputProps extends BaseInputProps, BaseMaskNumberInputProps {
30
- currencySymbol?: string;
31
- scale?: number;
32
- allowNegative?: boolean;
33
- normalizeZeros?: boolean;
34
- padFractionalZeros?: boolean;
35
- }
36
-
37
- export { BaseInputProps, BaseMaskNumberInputProps, CurrencyFieldInputProps, DecimalFieldInputProps, NumberFieldInputProps };
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,12 +0,0 @@
1
- import React__default from 'react';
2
- import { RadioFieldInputProps } from './types.js';
3
- import '../../@types/Size.js';
4
- import '../../@types/Align.js';
5
- import '../../@types/ColorStyles.js';
6
- import '../../tooltip/types.js';
7
- import '../../@types/Position.js';
8
- import '../../@types/PermissionAttr.js';
9
-
10
- declare const InputBase: 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" | "src" | "alt" | "max" | "min" | "fieldId" | "errors" | "capture" | "crossOrigin" | "enterKeyHint" | "minLength" | "customClassLabel" | "customClassWrapper" | "customClassInputContainer" | "getFieldValue"> & React__default.RefAttributes<HTMLInputElement>>;
11
-
12
- export { InputBase };