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

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 (270) 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/button.scss +1 -1
  11. package/lib/assets/styles/calendar.scss +137 -32
  12. package/lib/assets/styles/datepicker2.scss +8 -10
  13. package/lib/assets/styles/dialog.scss +1 -1
  14. package/lib/assets/styles/fieldset.scss +1 -1
  15. package/lib/assets/styles/file.scss +8 -0
  16. package/lib/assets/styles/filefield.scss +42 -0
  17. package/lib/assets/styles/gridlayout.scss +20 -19
  18. package/lib/assets/styles/multiSelect.scss +6 -6
  19. package/lib/assets/styles/numberfield.scss +18 -0
  20. package/lib/assets/styles/radiofield.scss +185 -0
  21. package/lib/assets/styles/selectfield.scss +6 -4
  22. package/lib/assets/styles/table.scss +6 -0
  23. package/lib/assets/styles/tabs.scss +6 -2
  24. package/lib/assets/styles/textfield.scss +66 -28
  25. package/lib/avatar/index.js +9 -11
  26. package/lib/badge/index.js +4 -4
  27. package/lib/buttons/Button.js +1 -2
  28. package/lib/buttons/DangerButton.js +1 -1
  29. package/lib/buttons/DefaultButton.js +6 -15
  30. package/lib/buttons/InfoButton.js +1 -1
  31. package/lib/buttons/PrimaryButton.js +1 -1
  32. package/lib/buttons/SuccessButton.js +1 -1
  33. package/lib/buttons/WarningButton.js +1 -1
  34. package/lib/buttons/button_container/index.js +1 -1
  35. package/lib/buttons/split_button/index.js +2 -2
  36. package/lib/calendar/base/helpers.js +2 -2
  37. package/lib/calendar/base/index.js +123 -44
  38. package/lib/checkbox/index.js +2 -3
  39. package/lib/dialog/Custom.js +2 -3
  40. package/lib/dialog/Question.js +5 -4
  41. package/lib/dialog/base/Content.js +5 -6
  42. package/lib/dialog/base/Header.js +3 -4
  43. package/lib/dialog/base/index.js +33 -23
  44. package/lib/dialog/form/index.js +52 -12
  45. package/lib/dialog/types.d.ts +4 -0
  46. package/lib/dialog/wizard/index.js +1 -2
  47. package/lib/dialog/wizard/progressbar.js +1 -1
  48. package/lib/dialog/wizard/step.js +1 -1
  49. package/lib/dialog/wizard/useWizard.js +1 -2
  50. package/lib/drawer/Content.js +1 -2
  51. package/lib/drawer/Drawer.js +6 -7
  52. package/lib/drawer/Header.js +2 -3
  53. package/lib/dropdown/Popup.js +7 -7
  54. package/lib/dropdown/helper.js +1 -1
  55. package/lib/dropdown/withDropdown.js +3 -4
  56. package/lib/fieldset/index.js +8 -9
  57. package/lib/form/Field.js +2 -3
  58. package/lib/form/FieldArray.js +2 -3
  59. package/lib/form/FieldNumber.js +4 -5
  60. package/lib/form/FieldPeriod.js +3 -4
  61. package/lib/form/index.js +3 -4
  62. package/lib/form/withFieldHOC.js +1 -2
  63. package/lib/form/withFormSecurity.js +1 -2
  64. package/lib/form2/helpers.js +1 -1
  65. package/lib/form2/index.d.ts +1 -1
  66. package/lib/form2/types.d.ts +7 -3
  67. package/lib/form2/useForm/index.js +22 -15
  68. package/lib/gridlayout/GridCol.js +5 -5
  69. package/lib/gridlayout/GridRow.js +1 -4
  70. package/lib/hint/index.js +1 -7
  71. package/lib/icons/helper.d.ts +16 -0
  72. package/lib/icons/helper.js +16 -0
  73. package/lib/icons/index.js +9 -9
  74. package/lib/index-19761a50.d.ts +26 -0
  75. package/lib/index-208e7f62.d.ts +44 -0
  76. package/lib/index-35ba9ed8.d.ts +15 -0
  77. package/lib/index-3b70931d.d.ts +44 -0
  78. package/lib/index-7dfa8924.d.ts +22 -0
  79. package/lib/index-9e576346.d.ts +23 -0
  80. package/lib/index-ecafc8c6.d.ts +30 -0
  81. package/lib/index-efe0a0e4.d.ts +41 -0
  82. package/lib/inputs/base/InputTextBase.js +9 -8
  83. package/lib/inputs/base/helpers.js +3 -7
  84. package/lib/inputs/base/types.d.ts +1 -1
  85. package/lib/inputs/color/index.js +2 -3
  86. package/lib/inputs/date/Dropdown.js +6 -4
  87. package/lib/inputs/date/index.js +31 -19
  88. package/lib/inputs/errorMessage/index.js +2 -3
  89. package/lib/inputs/file/DefaultFile.js +31 -31
  90. package/lib/inputs/file/DragDropFile.js +18 -17
  91. package/lib/inputs/file/File.js +6 -5
  92. package/lib/inputs/file/FileButtonSettings.js +0 -1
  93. package/lib/inputs/file/index.js +0 -1
  94. package/lib/inputs/inputHOC.js +1 -2
  95. package/lib/inputs/mask/BaseMask.js +1 -2
  96. package/lib/inputs/mask/Cnpj.js +1 -2
  97. package/lib/inputs/mask/Cpf.js +1 -2
  98. package/lib/inputs/multiSelect/ActionButtons.js +1 -2
  99. package/lib/inputs/multiSelect/Dropdown.js +12 -12
  100. package/lib/inputs/multiSelect/helper.js +2 -1
  101. package/lib/inputs/multiSelect/index.js +28 -11
  102. package/lib/inputs/number/BaseNumber.js +1 -1
  103. package/lib/inputs/number/index.js +3 -3
  104. package/lib/inputs/period/Dropdown.js +7 -4
  105. package/lib/inputs/period/PeriodList.js +1 -1
  106. package/lib/inputs/period/helper.js +1 -3
  107. package/lib/inputs/period/index.js +66 -40
  108. package/lib/inputs/period/types.d.ts +4 -1
  109. package/lib/inputs/search/index.js +8 -5
  110. package/lib/inputs/select/ActionButtons.js +1 -1
  111. package/lib/inputs/select/Dropdown.js +3 -4
  112. package/lib/inputs/select/helper.js +13 -10
  113. package/lib/inputs/select/multiple/Selecteds.js +2 -2
  114. package/lib/inputs/select/multiple/index.js +14 -11
  115. package/lib/inputs/select/simple/index.js +19 -13
  116. package/lib/inputs/textarea/index.js +1 -1
  117. package/lib/inputs/types.d.ts +1 -0
  118. package/lib/inputs2/checkboxfield/index.d.ts +1 -1
  119. package/lib/inputs2/checkboxfield/index.js +18 -15
  120. package/lib/inputs2/colorfield/index.d.ts +2 -2
  121. package/lib/inputs2/colorfield/index.js +5 -5
  122. package/lib/inputs2/date/base/constants.js +2 -1
  123. package/lib/inputs2/date/base/index.js +6 -8
  124. package/lib/inputs2/date/datefield/calendarbox.d.ts +1 -1
  125. package/lib/inputs2/date/datefield/calendarbox.js +3 -2
  126. package/lib/inputs2/date/datefield/context.d.ts +1 -0
  127. package/lib/inputs2/date/datefield/index.d.ts +1 -0
  128. package/lib/inputs2/date/datefield/index.js +44 -33
  129. package/lib/inputs2/date/datefield/triggers.js +1 -2
  130. package/lib/inputs2/date/datefield/types.d.ts +2 -0
  131. package/lib/inputs2/date/dateperiodfield/calendarbox.d.ts +1 -1
  132. package/lib/inputs2/date/dateperiodfield/calendarbox.js +8 -6
  133. package/lib/inputs2/date/dateperiodfield/context.d.ts +1 -0
  134. package/lib/inputs2/date/dateperiodfield/index.d.ts +1 -0
  135. package/lib/inputs2/date/dateperiodfield/index.js +66 -48
  136. package/lib/inputs2/date/dateperiodfield/triggers.js +19 -14
  137. package/lib/inputs2/date/dateperiodfield/types.d.ts +2 -0
  138. package/lib/inputs2/date/helpers.d.ts +1 -0
  139. package/lib/inputs2/date/types.d.ts +2 -1
  140. package/lib/inputs2/{number/Number.d.ts → filefield/index.d.ts} +2 -2
  141. package/lib/inputs2/filefield/index.js +174 -0
  142. package/lib/inputs2/index.d.ts +20 -14
  143. package/lib/inputs2/index.js +10 -11
  144. package/lib/inputs2/mask/BaseMask.d.ts +2 -2
  145. package/lib/inputs2/mask/BaseMask.js +7 -7
  146. package/lib/inputs2/mask/Cnpj.d.ts +3 -3
  147. package/lib/inputs2/mask/Cnpj.js +4 -5
  148. package/lib/inputs2/mask/Cpf.d.ts +3 -3
  149. package/lib/inputs2/mask/Cpf.js +4 -5
  150. package/lib/inputs2/mask/Phone.d.ts +3 -3
  151. package/lib/inputs2/mask/Phone.js +1 -2
  152. package/lib/inputs2/mask/ZipCode.d.ts +3 -3
  153. package/lib/inputs2/mask/ZipCode.js +1 -2
  154. package/lib/inputs2/numberfield/currency.d.ts +13 -0
  155. package/lib/inputs2/numberfield/currency.js +91 -0
  156. package/lib/inputs2/numberfield/decimal.d.ts +13 -0
  157. package/lib/inputs2/{number/BaseNumber.js → numberfield/decimal.js} +57 -58
  158. package/lib/inputs2/numberfield/helpers.d.ts +30 -0
  159. package/lib/inputs2/numberfield/helpers.js +53 -0
  160. package/lib/inputs2/numberfield/index.d.ts +12 -0
  161. package/lib/inputs2/numberfield/index.js +104 -0
  162. package/lib/inputs2/numberfield/types.d.ts +36 -0
  163. package/lib/inputs2/numberfield/types.js +5 -0
  164. package/lib/inputs2/{number/BaseNumber.d.ts → radiofield/index.d.ts} +4 -5
  165. package/lib/inputs2/radiofield/index.js +144 -0
  166. package/lib/inputs2/radiofield/types.d.ts +33 -0
  167. package/lib/inputs2/radiofield/types.js +5 -0
  168. package/lib/inputs2/selectfield/context.d.ts +1 -0
  169. package/lib/inputs2/selectfield/index.d.ts +2 -1
  170. package/lib/inputs2/selectfield/index.js +118 -58
  171. package/lib/inputs2/selectfield/item.d.ts +2 -1
  172. package/lib/inputs2/selectfield/item.js +8 -4
  173. package/lib/inputs2/selectfield/listbox.d.ts +1 -1
  174. package/lib/inputs2/selectfield/listbox.js +24 -10
  175. package/lib/inputs2/selectfield/options.d.ts +9 -0
  176. package/lib/inputs2/selectfield/options.js +26 -0
  177. package/lib/inputs2/selectfield/search.d.ts +1 -1
  178. package/lib/inputs2/selectfield/search.js +3 -4
  179. package/lib/inputs2/selectfield/selections.d.ts +1 -1
  180. package/lib/inputs2/selectfield/selections.js +3 -2
  181. package/lib/inputs2/selectfield/triggers.js +17 -8
  182. package/lib/inputs2/selectfield/types.d.ts +0 -1
  183. package/lib/inputs2/slot/index.d.ts +2 -2
  184. package/lib/inputs2/{number/Decimal.d.ts → textareafield/index.d.ts} +2 -5
  185. package/lib/inputs2/textareafield/index.js +194 -0
  186. package/lib/inputs2/textfield/index.d.ts +1 -1
  187. package/lib/inputs2/textfield/index.js +18 -17
  188. package/lib/labelMessages/index.js +4 -6
  189. package/lib/labels/DefaultLabel.js +2 -6
  190. package/lib/labels/label_container/index.js +1 -1
  191. package/lib/list/Header.js +1 -1
  192. package/lib/list/Item.js +10 -12
  193. package/lib/list/index.js +2 -4
  194. package/lib/menus/float/MenuItem.js +3 -4
  195. package/lib/menus/float/SubMenuContainer.js +2 -3
  196. package/lib/menus/float/index.js +1 -1
  197. package/lib/menus/sidenav/ExpandMenu.js +1 -1
  198. package/lib/menus/sidenav/MenuLink.js +1 -2
  199. package/lib/menus/sidenav/NavMenuGroup.js +2 -3
  200. package/lib/menus/sidenav/NavMenuItem.js +10 -9
  201. package/lib/menus/sidenav/NavSubMenuItem.js +2 -3
  202. package/lib/menus/sidenav/helpers.js +1 -1
  203. package/lib/menus/sidenav/index.js +6 -7
  204. package/lib/menus/sidenav/popup_menu_search/index.js +1 -2
  205. package/lib/panel/Content.js +9 -8
  206. package/lib/panel/Default.js +3 -4
  207. package/lib/panel/Header.js +4 -5
  208. package/lib/permissionValidations.js +1 -1
  209. package/lib/popover/PopoverText.js +1 -2
  210. package/lib/popover/index.js +1 -1
  211. package/lib/progress/Bar.js +6 -6
  212. package/lib/radio/index.js +3 -4
  213. package/lib/shortcuts/index.js +1 -1
  214. package/lib/skeleton/SkeletonContainer.js +1 -2
  215. package/lib/skeleton/index.js +1 -4
  216. package/lib/spinner/index.js +3 -4
  217. package/lib/split/Split.js +2 -3
  218. package/lib/split/SplitSide.js +4 -5
  219. package/lib/table/Body.js +4 -5
  220. package/lib/table/Header.js +9 -7
  221. package/lib/table/HeaderColumn.js +2 -3
  222. package/lib/table/Row.js +4 -5
  223. package/lib/table/RowColumn.js +2 -3
  224. package/lib/table/index.js +20 -16
  225. package/lib/table/types.d.ts +1 -0
  226. package/lib/tabs/DropdownTabs.js +2 -3
  227. package/lib/tabs/Menu.js +1 -1
  228. package/lib/tabs/MenuTabs.js +4 -9
  229. package/lib/tabs/Panel.js +8 -7
  230. package/lib/tabs/context.js +7 -5
  231. package/lib/tabs/index.js +3 -4
  232. package/lib/textContent/index.js +2 -3
  233. package/lib/toolbar/ButtonBar.js +2 -3
  234. package/lib/toolbar/LabelBar.js +1 -2
  235. package/lib/toolbar/index.js +1 -1
  236. package/lib/tooltip/TooltipContent.js +8 -9
  237. package/lib/tooltip/useTooltip.js +8 -8
  238. package/lib/treetable/Body.js +2 -3
  239. package/lib/treetable/Header.js +3 -4
  240. package/lib/treetable/Row.js +9 -10
  241. package/lib/treeview/Header.js +1 -1
  242. package/lib/treeview/Node.js +5 -6
  243. package/lib/treeview/index.js +5 -6
  244. package/lib/uitour/index.js +9 -8
  245. package/package.json +1 -1
  246. package/lib/BaseMask-04df8f20.d.ts +0 -24
  247. package/lib/BaseNumber-c609c5a0.d.ts +0 -23
  248. package/lib/Cnpj-5471cb1f.d.ts +0 -18
  249. package/lib/Cpf-71c4f0f4.d.ts +0 -18
  250. package/lib/Currency-38d14ff7.d.ts +0 -18
  251. package/lib/Decimal-85d45244.d.ts +0 -13
  252. package/lib/Number-db3c092d.d.ts +0 -20
  253. package/lib/Phone-4c4142e4.d.ts +0 -18
  254. package/lib/ZipCode-dc7dd4da.d.ts +0 -13
  255. package/lib/calendar/base/Day.d.ts +0 -8
  256. package/lib/calendar/base/Day.js +0 -36
  257. package/lib/calendar/base/Month.d.ts +0 -8
  258. package/lib/calendar/base/Month.js +0 -39
  259. package/lib/calendar/base/Week.d.ts +0 -8
  260. package/lib/calendar/base/Week.js +0 -35
  261. package/lib/index-379b7504.d.ts +0 -44
  262. package/lib/index-7cb5e8b3.d.ts +0 -41
  263. package/lib/index-809a7899.d.ts +0 -23
  264. package/lib/index-de21a05e.d.ts +0 -23
  265. package/lib/inputs2/number/Currency.d.ts +0 -11
  266. package/lib/inputs2/number/Currency.js +0 -47
  267. package/lib/inputs2/number/Decimal.js +0 -36
  268. package/lib/inputs2/number/Number.js +0 -49
  269. package/lib/inputs2/number/format_number.d.ts +0 -5
  270. package/lib/inputs2/number/format_number.js +0 -29
@@ -9,8 +9,7 @@ var _lodash = _interopRequireDefault(require("lodash"));
9
9
  var _withFieldHOC = _interopRequireDefault(require("./withFieldHOC"));
10
10
  var _helpers = require("./helpers");
11
11
  var constants = _interopRequireWildcard(require("../internals/constants"));
12
- 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); }
13
- 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 _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); }
14
13
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
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); }
16
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; }
@@ -31,18 +30,18 @@ const getEventProps = _ref => {
31
30
  } = _ref;
32
31
  return {
33
32
  onBlur: e => {
34
- if (component?.name !== 'NumberField' && handlerFieldChange) handlerFieldChange(e);
33
+ if ((component === null || component === void 0 ? void 0 : component.name) !== 'NumberField' && handlerFieldChange) handlerFieldChange(e);
35
34
  if (validators && handlerFieldValidate) handlerFieldValidate(name, e.target.value, validators);
36
35
  if (onBlur) onBlur(e);
37
36
  },
38
37
  onKeyDown: e => {
39
38
  if ([constants.keyCodes.ENTER].includes(e.keyCode)) {
40
- if (validators) handlerFieldValidate?.(name, e.target.value, validators);
39
+ if (validators) handlerFieldValidate === null || handlerFieldValidate === void 0 ? void 0 : handlerFieldValidate(name, e.target.value, validators);
41
40
  if (onKeyDown) onKeyDown(e);
42
41
  }
43
42
  },
44
43
  onChange: e => {
45
- if (component?.name === 'NumberField') {
44
+ if ((component === null || component === void 0 ? void 0 : component.name) === 'NumberField') {
46
45
  if (validators && e.target && handlerFieldValidate) {
47
46
  handlerFieldValidate(name, e.target.value, validators);
48
47
  }
@@ -9,8 +9,7 @@ var _lodash = _interopRequireDefault(require("lodash"));
9
9
  var _withFieldHOC = _interopRequireDefault(require("./withFieldHOC"));
10
10
  var _helpers = require("./helpers");
11
11
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
- 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); }
13
- 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 _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); }
14
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); }
15
14
  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
15
  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; }
@@ -91,8 +90,8 @@ const FieldPeriod = props => {
91
90
  });
92
91
  },
93
92
  value: {
94
- initial: _lodash.default.get(data, `${name}.${nameDateInitial}`),
95
- final: _lodash.default.get(data, `${name}.${nameDateFinal}`)
93
+ initial: _lodash.default.get(data, "".concat(name, ".").concat(nameDateInitial)),
94
+ final: _lodash.default.get(data, "".concat(name, ".").concat(nameDateFinal))
96
95
  }
97
96
  }));
98
97
  }
package/lib/form/index.js CHANGED
@@ -40,8 +40,7 @@ require("../assets/styles/form.scss");
40
40
  var _dialog = require("../dialog");
41
41
  var _withFormSecurity = require("./withFormSecurity");
42
42
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
43
- 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); }
44
- 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; }
43
+ 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); }
45
44
  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); }
46
45
  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; }
47
46
  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; }
@@ -264,7 +263,7 @@ const Form = _ref => {
264
263
  }
265
264
  }, [submitOnPressEnterKey]);
266
265
  (0, _react.useEffect)(() => {
267
- const validatorsQuantity = Object.values(fieldsValidators.current).reduce((acc, currentValue) => acc + (currentValue?.length || 0), 0);
266
+ const validatorsQuantity = Object.values(fieldsValidators.current).reduce((acc, currentValue) => acc + ((currentValue === null || currentValue === void 0 ? void 0 : currentValue.length) || 0), 0);
268
267
  if (fieldsValidators.current && onValidateForm && oldFieldsValidatorsQuantity !== validatorsQuantity) {
269
268
  setOldFieldsValidatorsQuantity(validatorsQuantity);
270
269
  onValidateForm(checkIsValid(usedData, true, fieldsValidators.current));
@@ -295,7 +294,7 @@ const Form = _ref => {
295
294
  style: style
296
295
  }, formProps(), {
297
296
  role: "presentation",
298
- className: `form-component ${customClass}`
297
+ className: "form-component ".concat(customClass)
299
298
  }), children)), /*#__PURE__*/_react.default.createElement(_dialog.DialogQuestion, {
300
299
  zIndex: "99999999",
301
300
  title: securityTitle || 'Dados Alterados',
@@ -6,8 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
8
  var _helpers = require("./helpers");
9
- 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); }
10
- 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; }
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); }
11
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); }
12
11
  const withFieldHOC = WrappedComponent => {
13
12
  const EnhancedComponent = props => {
@@ -5,8 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = exports.FormSecurityContext = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
- 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); }
9
- 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; }
8
+ 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
9
  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
10
  const FormSecurityContext = exports.FormSecurityContext = /*#__PURE__*/_react.default.createContext({});
12
11
  const withFormSecurity = WrappedComponent => {
@@ -26,7 +26,7 @@ const flattenValidators = function (validators) {
26
26
  const flattened = {};
27
27
  Object.entries(validators).forEach(_ref => {
28
28
  let [key, value] = _ref;
29
- const fullPath = prefix ? `${prefix}.${key}` : key;
29
+ const fullPath = prefix ? "".concat(prefix, ".").concat(key) : key;
30
30
  if (Array.isArray(value)) {
31
31
  flattened[fullPath] = value;
32
32
  } else if (typeof value === 'object' && value !== null) {
@@ -4,6 +4,6 @@ import './types.js';
4
4
 
5
5
  interface FormElementProps extends React__default.ComponentProps<'form'> {
6
6
  }
7
- declare const Form: React__default.ForwardRefExoticComponent<Pick<FormElementProps, "slot" | "style" | "title" | "children" | "className" | "key" | "align" | "name" | "onClick" | "color" | "hidden" | "target" | "id" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "rel" | "autoComplete" | "acceptCharset" | "action" | "encType" | "method" | "noValidate"> & React__default.RefAttributes<HTMLFormElement>>;
7
+ declare const Form: React__default.ForwardRefExoticComponent<Pick<FormElementProps, "slot" | "style" | "title" | "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" | "name" | "target" | "rel" | "autoComplete" | "acceptCharset" | "action" | "encType" | "method" | "noValidate"> & React__default.RefAttributes<HTMLFormElement>>;
8
8
 
9
9
  export { Form as default };
@@ -55,17 +55,21 @@ interface UseFormReturn<T> {
55
55
  * Indica se o formulário está válido com base nos validadores definidos.
56
56
  */
57
57
  isValid: boolean;
58
+ /**
59
+ * Indica se houve alguma alteração em qualquer campo do formulário em relação ao `initialValues`.
60
+ */
61
+ formHasChange: boolean;
58
62
  /**
59
63
  * Registra um campo no formulário, integrando com `ref`, `value`, `onChange` e `onBlur`.
60
64
  * @param name - Nome do campo.
61
65
  * @param externalRef - Referência externa para o input.
62
66
  */
63
- register: (name: string, externalRef?: React.Ref<HTMLInputElement>) => {
67
+ register: (name: string, externalRef?: React.Ref<HTMLInputElement | HTMLTextAreaElement>) => {
64
68
  name: string;
65
- ref: React.RefCallback<HTMLInputElement>;
69
+ ref: React.RefCallback<HTMLInputElement | HTMLTextAreaElement>;
66
70
  value: any;
67
71
  onBlur: () => void;
68
- onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
72
+ onChange: (event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
69
73
  };
70
74
  /**
71
75
  * Limpa mensagens de erro de campos especificados, ou de todos os campos se nenhum for informado.
@@ -27,7 +27,8 @@ const useForm = _ref => {
27
27
  return (0, _helpers.flattenValidators)(validators);
28
28
  }, [validators]);
29
29
  const validateField = (name, value) => {
30
- const validatorsForField = _lodash.default.get(flattenedValidators, name) ?? [];
30
+ var _$get;
31
+ const validatorsForField = (_$get = _lodash.default.get(flattenedValidators, name)) !== null && _$get !== void 0 ? _$get : [];
31
32
  const fieldErrors = validatorsForField.map(validator => validator(value, values)).filter(message => Boolean(message));
32
33
  setErrors(prevErrorsState => {
33
34
  const updatedErrorsState = _lodash.default.cloneDeep(prevErrorsState);
@@ -38,8 +39,9 @@ const useForm = _ref => {
38
39
  const validateAllFields = () => {
39
40
  const allValidationErrors = {};
40
41
  Object.keys(flattenedValidators).forEach(path => {
42
+ var _$get2;
41
43
  const value = _lodash.default.get(values, path);
42
- const fieldValidators = _lodash.default.get(flattenedValidators, path) ?? [];
44
+ const fieldValidators = (_$get2 = _lodash.default.get(flattenedValidators, path)) !== null && _$get2 !== void 0 ? _$get2 : [];
43
45
  const fieldErrors = fieldValidators.map(validator => validator(value, values)).filter(message => Boolean(message));
44
46
  if (fieldErrors.length) {
45
47
  _lodash.default.set(allValidationErrors, path, fieldErrors);
@@ -50,20 +52,22 @@ const useForm = _ref => {
50
52
  };
51
53
  const checkFormIsValid = _react.default.useCallback(() => {
52
54
  return Object.keys(flattenedValidators).every(path => {
55
+ var _$get3;
53
56
  const value = _lodash.default.get(values, path);
54
- const fieldValidators = _lodash.default.get(flattenedValidators, path) ?? [];
57
+ const fieldValidators = (_$get3 = _lodash.default.get(flattenedValidators, path)) !== null && _$get3 !== void 0 ? _$get3 : [];
55
58
  return fieldValidators.every(validator => !validator(value, values));
56
59
  });
57
60
  }, [values, flattenedValidators]);
58
61
  const getFieldError = name => {
59
- const fieldErrors = _lodash.default.get(errors, name) ?? [];
62
+ var _ref2;
63
+ const fieldErrors = (_ref2 = _lodash.default.get(errors, name)) !== null && _ref2 !== void 0 ? _ref2 : [];
60
64
  return fieldErrors;
61
65
  };
62
66
  const setExternalErrors = externalErrors => {
63
67
  setErrors(prevStateErrors => {
64
68
  const newErrorsState = _lodash.default.cloneDeep(prevStateErrors);
65
- Object.entries(externalErrors).forEach(_ref2 => {
66
- let [key, value] = _ref2;
69
+ Object.entries(externalErrors).forEach(_ref3 => {
70
+ let [key, value] = _ref3;
67
71
  _lodash.default.set(newErrorsState, key, value);
68
72
  });
69
73
  return newErrorsState;
@@ -87,10 +91,12 @@ const useForm = _ref => {
87
91
  });
88
92
  };
89
93
  const setFieldFocus = (name, fieldFocusOptions) => {
94
+ var _field$focus;
90
95
  const field = fieldsRef.current[name];
91
- field?.focus?.();
92
- if (fieldFocusOptions?.shouldSelect) {
93
- field?.select?.();
96
+ field === null || field === void 0 ? void 0 : (_field$focus = field.focus) === null || _field$focus === void 0 ? void 0 : _field$focus.call(field);
97
+ if (fieldFocusOptions !== null && fieldFocusOptions !== void 0 && fieldFocusOptions.shouldSelect) {
98
+ var _field$select;
99
+ field === null || field === void 0 ? void 0 : (_field$select = field.select) === null || _field$select === void 0 ? void 0 : _field$select.call(field);
94
100
  }
95
101
  };
96
102
  const compareField = _react.default.useCallback((name, valueToCompare) => {
@@ -98,7 +104,7 @@ const useForm = _ref => {
98
104
  }, [values]);
99
105
  const cleanErrors = fieldsToClean => {
100
106
  const newErrorsState = _lodash.default.cloneDeep(errors);
101
- const fields = fieldsToClean ?? Object.keys(errors);
107
+ const fields = fieldsToClean !== null && fieldsToClean !== void 0 ? fieldsToClean : Object.keys(errors);
102
108
  fields.forEach(key => {
103
109
  _lodash.default.set(newErrorsState, key, []);
104
110
  });
@@ -109,7 +115,7 @@ const useForm = _ref => {
109
115
  const newTouchedState = _lodash.default.cloneDeep(touched);
110
116
  const newChangedState = _lodash.default.cloneDeep(changed);
111
117
  const newErrorsState = _lodash.default.cloneDeep(errors);
112
- const inputs = inputsToReset ?? Object.keys(initialValuesRef.current);
118
+ const inputs = inputsToReset !== null && inputsToReset !== void 0 ? inputsToReset : Object.keys(initialValuesRef.current);
113
119
  inputs.forEach(key => {
114
120
  const initialValue = _lodash.default.get(initialValuesRef.current, key);
115
121
  _lodash.default.set(newValuesState, key, initialValue);
@@ -144,18 +150,17 @@ const useForm = _ref => {
144
150
  const {
145
151
  value
146
152
  } = event.target;
147
- const inputValue = !_lodash.default.isNumber(value) ? value : _lodash.default.toNumber(value);
148
153
  setValues(prevStateValues => {
149
154
  const updatedValues = _lodash.default.cloneDeep(prevStateValues);
150
- _lodash.default.set(updatedValues, name, inputValue);
151
- const hasChanged = !_lodash.default.isEqual(_lodash.default.get(valuesToCompareInChangedRef.current, name), inputValue);
155
+ _lodash.default.set(updatedValues, name, value);
156
+ const hasChanged = !_lodash.default.isEqual(_lodash.default.get(valuesToCompareInChangedRef.current, name), value);
152
157
  setChanged(prevStateChanged => {
153
158
  const updatedChangedState = _lodash.default.cloneDeep(prevStateChanged);
154
159
  _lodash.default.set(updatedChangedState, name, hasChanged);
155
160
  return updatedChangedState;
156
161
  });
157
162
  if (options.validationMode === 'default' && _lodash.default.get(touched, name)) {
158
- validateField(name, inputValue);
163
+ validateField(name, value);
159
164
  }
160
165
  return updatedValues;
161
166
  });
@@ -180,6 +185,7 @@ const useForm = _ref => {
180
185
  callback(values);
181
186
  };
182
187
  const isValid = _react.default.useMemo(() => checkFormIsValid(), [checkFormIsValid]);
188
+ const formHasChange = _react.default.useMemo(() => Object.values(changed).some(Boolean), [changed]);
183
189
  return {
184
190
  reset,
185
191
  changed,
@@ -187,6 +193,7 @@ const useForm = _ref => {
187
193
  errors,
188
194
  touched,
189
195
  isValid,
196
+ formHasChange,
190
197
  register,
191
198
  cleanErrors,
192
199
  changeValues,
@@ -10,10 +10,10 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
10
10
  const getClass = col => {
11
11
  const cols = col ? col.split(' ') : [];
12
12
  let classes = 'grid-container ';
13
- if (cols[0]) classes += `col-xs-${cols[0]}`;
14
- if (cols[1]) classes += ` col-sm-${cols[1]}`;
15
- if (cols[2]) classes += ` col-md-${cols[2]}`;
16
- if (cols[3]) classes += ` col-lg-${cols[3]}`;
13
+ if (cols[0]) classes += "col-xs-".concat(cols[0]);
14
+ if (cols[1]) classes += " col-sm-".concat(cols[1]);
15
+ if (cols[2]) classes += " col-md-".concat(cols[2]);
16
+ if (cols[3]) classes += " col-lg-".concat(cols[3]);
17
17
  return classes;
18
18
  };
19
19
  const GridCol = props => {
@@ -27,7 +27,7 @@ const GridCol = props => {
27
27
  const gridClasses = getClass(cols || '');
28
28
  if (!visible) return null;
29
29
  return /*#__PURE__*/_react.default.createElement("div", {
30
- className: `${customClass} ${gridClasses}`,
30
+ className: "".concat(customClass, " ").concat(gridClasses),
31
31
  style: style
32
32
  }, children);
33
33
  };
@@ -12,10 +12,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
12
12
  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; }
13
13
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
14
14
  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); }
15
- const getClass = props => `row ${props.customClass}
16
- ${props.withTrim && ' -withtrim'}
17
- ${props.verticalAlign && ` align-items-${props.verticalAlign}`}
18
- ${props.horizontalAlign && ` justify-content-${props.horizontalAlign}`}`;
15
+ const getClass = props => "row ".concat(props.customClass, "\n ").concat(props.withTrim && ' -withtrim', "\n ").concat(props.verticalAlign && " align-items-".concat(props.verticalAlign), "\n ").concat(props.horizontalAlign && " justify-content-".concat(props.horizontalAlign));
19
16
  const GridRow = props => {
20
17
  const {
21
18
  style,
package/lib/hint/index.js CHANGED
@@ -22,13 +22,7 @@ const Hint = _ref => {
22
22
  return /*#__PURE__*/_react.default.createElement("div", {
23
23
  "aria-disabled": disabled,
24
24
  style: style,
25
- className: `
26
- hint-component
27
- ${customClass}
28
- ${skeletonize ? '-skeletonized' : ''}
29
- ${disabled ? '-disabled' : ''}
30
- -${color}
31
- `
25
+ className: "\n hint-component\n ".concat(customClass, "\n ").concat(skeletonize ? '-skeletonized' : '', "\n ").concat(disabled ? '-disabled' : '', "\n -").concat(color, "\n ")
32
26
  }, Array.isArray(description) ? (0, _helpers.showHintList)(description) : /*#__PURE__*/_react.default.createElement("span", {
33
27
  "aria-disabled": disabled
34
28
  }, description));
@@ -635,6 +635,22 @@ declare const _default: {
635
635
  viewbox: string;
636
636
  paths: string[];
637
637
  };
638
+ square: {
639
+ viewbox: string;
640
+ paths: string[];
641
+ };
642
+ typography: {
643
+ viewbox: string;
644
+ paths: string[];
645
+ };
646
+ shrink: {
647
+ viewbox: string;
648
+ paths: string[];
649
+ };
650
+ minus: {
651
+ viewbox: string;
652
+ paths: string[];
653
+ };
638
654
  };
639
655
 
640
656
  export { _default as default };
@@ -640,5 +640,21 @@ var _default = exports.default = {
640
640
  clipboard: {
641
641
  viewbox: '0 0 16 16',
642
642
  paths: ['M14.5 2h-4.5c0-1.105-0.895-2-2-2s-2 0.895-2 2h-4.5c-0.276 0-0.5 0.224-0.5 0.5v13c0 0.276 0.224 0.5 0.5 0.5h13c0.276 0 0.5-0.224 0.5-0.5v-13c0-0.276-0.224-0.5-0.5-0.5zM8 1c0.552 0 1 0.448 1 1s-0.448 1-1 1c-0.552 0-1-0.448-1-1s0.448-1 1-1zM14 15h-12v-12h2v1.5c0 0.276 0.224 0.5 0.5 0.5h7c0.276 0 0.5-0.224 0.5-0.5v-1.5h2v12z', 'M11.5 9h-7c-0.276 0-0.5-0.224-0.5-0.5s0.224-0.5 0.5-0.5h7c0.276 0 0.5 0.224 0.5 0.5s-0.224 0.5-0.5 0.5z', 'M11.5 11h-7c-0.276 0-0.5-0.224-0.5-0.5s0.224-0.5 0.5-0.5h7c0.276 0 0.5 0.224 0.5 0.5s-0.224 0.5-0.5 0.5z', 'M11.5 13h-7c-0.276 0-0.5-0.224-0.5-0.5s0.224-0.5 0.5-0.5h7c0.276 0 0.5 0.224 0.5 0.5s-0.224 0.5-0.5 0.5z']
643
+ },
644
+ square: {
645
+ viewbox: '0 0 16 16',
646
+ paths: ['M0 0h16v16h-16z']
647
+ },
648
+ typography: {
649
+ viewbox: '0 0 16 16',
650
+ paths: ['M1 0v5l2-3h4v13h-2l-1 1h8l-1-1h-2v-13h4l2 3v-5z']
651
+ },
652
+ shrink: {
653
+ viewbox: '0 0 16 16',
654
+ paths: ['M9 7h6.5l-2.5-2.5 3-3-1.5-1.5-3 3-2.5-2.5z', 'M9 9v6.5l2.5-2.5 3 3 1.5-1.5-3-3 2.5-2.5z', 'M7 9h-6.5l2.5 2.5-3 3 1.5 1.5 3-3 2.5 2.5z', 'M7 7v-6.5l-2.5 2.5-3-3-1.5 1.5 3 3-2.5 2.5z']
655
+ },
656
+ minus: {
657
+ viewbox: '0 0 16 16',
658
+ paths: ['M0 5h16v6h-16z']
643
659
  }
644
660
  };
@@ -9,8 +9,7 @@ var _helper = _interopRequireDefault(require("./helper"));
9
9
  require("../assets/styles/icon.scss");
10
10
  var _tooltip = require("../tooltip");
11
11
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
- 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); }
13
- 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 _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); }
14
13
  const listIcon = _helper.default;
15
14
  const disabledIconColor = 'rgb(193, 193, 193)';
16
15
  const Icon = _ref => {
@@ -36,9 +35,10 @@ const Icon = _ref => {
36
35
  const colorFromProp = isUsingColorStyle || !color ? undefined : color;
37
36
  const containerRef = (0, _react.useRef)(null);
38
37
  const refSvg = (0, _react.useRef)(null);
39
- const viewBoxFromIconOrSvgStrcut = name ? listIcon[name].viewbox : svgStruct?.viewbox;
40
- const getPaths = () => name ? listIcon[name].paths : svgStruct?.paths;
38
+ const viewBoxFromIconOrSvgStrcut = name ? listIcon[name].viewbox : svgStruct === null || svgStruct === void 0 ? void 0 : svgStruct.viewbox;
39
+ const getPaths = () => name ? listIcon[name].paths : svgStruct === null || svgStruct === void 0 ? void 0 : svgStruct.paths;
41
40
  const getSvg = () => {
41
+ var _getPaths;
42
42
  return /*#__PURE__*/_react.default.createElement("svg", {
43
43
  "data-testid": "icon",
44
44
  "data-color-style": colorStyle,
@@ -48,14 +48,14 @@ const Icon = _ref => {
48
48
  ref: r => {
49
49
  refSvg.current = r;
50
50
  },
51
- width: `${size}px`,
52
- height: `${size}px`,
51
+ width: "".concat(size, "px"),
52
+ height: "".concat(size, "px"),
53
53
  fill: disabled ? disabledIconColor : colorFromProp,
54
54
  viewBox: viewBox || viewBoxFromIconOrSvgStrcut,
55
- className: `icon-component ${customClass}`,
55
+ className: "icon-component ".concat(customClass),
56
56
  pointerEvents: pointerEvents,
57
57
  style: style
58
- }, getPaths()?.map(value => /*#__PURE__*/_react.default.createElement("path", {
58
+ }, (_getPaths = getPaths()) === null || _getPaths === void 0 ? void 0 : _getPaths.map(value => /*#__PURE__*/_react.default.createElement("path", {
59
59
  "data-testid": "icon-path",
60
60
  d: value,
61
61
  key: value
@@ -66,7 +66,7 @@ const Icon = _ref => {
66
66
  if (!visible) return null;
67
67
  if (!tooltip) return getSvg();
68
68
  return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
69
- className: `icon-component-container ${customClassForContainer}`,
69
+ className: "icon-component-container ".concat(customClassForContainer),
70
70
  ref: containerRef
71
71
  }, getSvg()), /*#__PURE__*/_react.default.createElement(_tooltip.Tooltip, {
72
72
  targetRef: containerRef,
@@ -0,0 +1,26 @@
1
+ import React__default from 'react';
2
+ import { LeftSlot, RightSlot } from './inputs2/slot/index.js';
3
+ import { Options } from './inputs2/selectfield/options.js';
4
+ import { Item } from './inputs2/selectfield/item.js';
5
+ import { SelectFieldInputProps } from './inputs2/selectfield/types.js';
6
+
7
+ declare const Input: React__default.ForwardRefExoticComponent<Pick<SelectFieldInputProps, "form" | "label" | "slot" | "style" | "title" | "pattern" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "align" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "customClass" | "permissionAttr" | "size" | "skeletonize" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "tooltip" | "tooltipWidth" | "tooltipPosition" | "checked" | "required" | "hint" | "hintPosition" | "themePopover" | "popoverAlign" | "width" | "height" | "multiple" | "readOnly" | "list" | "step" | "maxLength" | "textAlign" | "onDeniedActions" | "gridLayout" | "accept" | "autoComplete" | "showClearButton" | "searchOnDropdown" | "undigitable" | "openDropdownOnFocus" | "onSearch" | "striped" | "max" | "min" | "src" | "alt" | "errors" | "capture" | "crossOrigin" | "enterKeyHint" | "minLength" | "customClassLabel" | "customClassWrapper" | "customClassInputContainer" | "externalSearch" | "notFoundFilterLabel" | "searchInputPlaceholder" | "multipleInputLabelEmpty" | "multipleInputLabelManySelection" | "dropdownAlignButton"> & React__default.RefAttributes<HTMLInputElement>>;
8
+
9
+ declare const index_Input: typeof Input;
10
+ declare const index_Item: typeof Item;
11
+ declare const index_LeftSlot: typeof LeftSlot;
12
+ declare const index_Options: typeof Options;
13
+ declare const index_RightSlot: typeof RightSlot;
14
+ declare const index_SelectFieldInputProps: typeof SelectFieldInputProps;
15
+ declare namespace index {
16
+ export {
17
+ index_Input as Input,
18
+ index_Item as Item,
19
+ index_LeftSlot as LeftSlot,
20
+ index_Options as Options,
21
+ index_RightSlot as RightSlot,
22
+ index_SelectFieldInputProps as SelectFieldInputProps,
23
+ };
24
+ }
25
+
26
+ export { Input as I, index as i };
@@ -0,0 +1,44 @@
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 TextAreaFieldInputProps extends React__default.ComponentPropsWithoutRef<'textarea'>, 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<TextAreaFieldInputProps & React__default.RefAttributes<HTMLTextAreaElement>>;
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_TextAreaFieldInputProps = TextAreaFieldInputProps;
35
+ declare namespace index {
36
+ export {
37
+ index_Input as Input,
38
+ index_LeftSlot as LeftSlot,
39
+ index_RightSlot as RightSlot,
40
+ index_TextAreaFieldInputProps as TextAreaFieldInputProps,
41
+ };
42
+ }
43
+
44
+ export { Input as I, TextAreaFieldInputProps as T, index as i };
@@ -0,0 +1,15 @@
1
+ import React__default from 'react';
2
+ import { RadioFieldInputProps } from './inputs2/radiofield/types.js';
3
+
4
+ declare const Input: React__default.ForwardRefExoticComponent<Pick<RadioFieldInputProps, "form" | "label" | "slot" | "style" | "title" | "pattern" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "align" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "customClass" | "permissionAttr" | "size" | "skeletonize" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "tooltip" | "tooltipWidth" | "tooltipPosition" | "checked" | "required" | "labelUppercase" | "hint" | "hintPosition" | "themePopover" | "popoverAlign" | "width" | "height" | "readOnly" | "list" | "step" | "maxLength" | "textAlign" | "onDeniedActions" | "gridLayout" | "accept" | "autoComplete" | "max" | "min" | "src" | "alt" | "errors" | "capture" | "crossOrigin" | "enterKeyHint" | "minLength" | "customClassLabel" | "customClassWrapper" | "customClassInputContainer" | "getFieldValue"> & React__default.RefAttributes<HTMLInputElement>>;
5
+
6
+ declare const index_Input: typeof Input;
7
+ declare const index_RadioFieldInputProps: typeof RadioFieldInputProps;
8
+ declare namespace index {
9
+ export {
10
+ index_Input as Input,
11
+ index_RadioFieldInputProps as RadioFieldInputProps,
12
+ };
13
+ }
14
+
15
+ export { Input as I, index as i };