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

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 (258) hide show
  1. package/lib/@types/ColorStyles.d.ts +2 -1
  2. package/lib/@types/Position.d.ts +2 -1
  3. package/lib/BaseMask-3d5d581d.d.ts +24 -0
  4. package/lib/BaseNumber-797088d7.d.ts +23 -0
  5. package/lib/Cnpj-1602be21.d.ts +18 -0
  6. package/lib/Cpf-4d6b9079.d.ts +18 -0
  7. package/lib/Currency-b33d3a22.d.ts +18 -0
  8. package/lib/Decimal-55e836d5.d.ts +13 -0
  9. package/lib/Number-9c6aceff.d.ts +20 -0
  10. package/lib/Phone-79e5e3b4.d.ts +18 -0
  11. package/lib/ZipCode-8c2e9d8b.d.ts +13 -0
  12. package/lib/assets/styles/checkbox2.scss +199 -0
  13. package/lib/assets/styles/colorpicker.scss +1 -6
  14. package/lib/assets/styles/colors.scss +48 -12
  15. package/lib/assets/styles/datepicker2.scss +338 -0
  16. package/lib/assets/styles/label.scss +4 -2
  17. package/lib/assets/styles/select.scss +19 -15
  18. package/lib/assets/styles/selectfield.scss +409 -0
  19. package/lib/assets/styles/slot.scss +34 -0
  20. package/lib/assets/styles/textfield.scss +148 -0
  21. package/lib/buttons/ActivateButton.d.ts +1 -0
  22. package/lib/buttons/AddButton.d.ts +1 -0
  23. package/lib/buttons/Button.d.ts +1 -0
  24. package/lib/buttons/CancelButton.d.ts +1 -0
  25. package/lib/buttons/DangerButton.d.ts +1 -0
  26. package/lib/buttons/DefaultButton.d.ts +1 -0
  27. package/lib/buttons/DefaultButton.js +20 -12
  28. package/lib/buttons/DestroyButton.d.ts +1 -0
  29. package/lib/buttons/EditButton.d.ts +1 -0
  30. package/lib/buttons/InactivateButton.d.ts +1 -0
  31. package/lib/buttons/InfoButton.d.ts +1 -0
  32. package/lib/buttons/PrimaryButton.d.ts +1 -0
  33. package/lib/buttons/RestoreButton.d.ts +1 -0
  34. package/lib/buttons/SaveButton.d.ts +1 -0
  35. package/lib/buttons/SuccessButton.d.ts +1 -0
  36. package/lib/buttons/WarningButton.d.ts +1 -0
  37. package/lib/buttons/index.d.ts +1 -0
  38. package/lib/buttons/split_button/index.d.ts +1 -0
  39. package/lib/buttons/types.d.ts +2 -5
  40. package/lib/drawer/Drawer.js +10 -6
  41. package/lib/form/Field.d.ts +1 -1
  42. package/lib/form/FieldArray.d.ts +1 -1
  43. package/lib/form/FieldNumber.d.ts +1 -1
  44. package/lib/form/FieldPeriod.d.ts +1 -1
  45. package/lib/form/helpers.d.ts +1 -1
  46. package/lib/form/index.d.ts +1 -1
  47. package/lib/form/types.d.ts +1 -1
  48. package/lib/form/withFieldHOC.d.ts +1 -1
  49. package/lib/form/withFormSecurity.d.ts +1 -1
  50. package/lib/form2/helpers.d.ts +8 -0
  51. package/lib/form2/helpers.js +41 -0
  52. package/lib/form2/index.d.ts +9 -0
  53. package/lib/form2/index.js +36 -0
  54. package/lib/form2/types.d.ts +125 -0
  55. package/lib/form2/types.js +5 -0
  56. package/lib/form2/useForm/index.d.ts +5 -0
  57. package/lib/form2/useForm/index.js +203 -0
  58. package/lib/icons/helper.d.ts +4 -0
  59. package/lib/icons/helper.js +4 -0
  60. package/lib/icons/index.d.ts +4 -6
  61. package/lib/icons/index.js +14 -9
  62. package/lib/icons/types.d.ts +3 -6
  63. package/lib/index-18a64236.d.ts +23 -0
  64. package/lib/index-368f781f.d.ts +15 -0
  65. package/lib/index-43ad8140.d.ts +41 -0
  66. package/lib/index-772f9f1a.d.ts +44 -0
  67. package/lib/index-8a59cf4b.d.ts +23 -0
  68. package/lib/index-c9247c1f.d.ts +15 -0
  69. package/lib/index.d.ts +1 -0
  70. package/lib/inputs/base/InputTextBase.d.ts +1 -1
  71. package/lib/inputs/base/InputTextBase.js +18 -8
  72. package/lib/inputs/base/helpers.d.ts +1 -1
  73. package/lib/inputs/base/types.d.ts +5 -16
  74. package/lib/inputs/color/index.js +1 -1
  75. package/lib/inputs/color/types.d.ts +1 -1
  76. package/lib/inputs/date/Dialog.d.ts +1 -1
  77. package/lib/inputs/date/Dropdown.d.ts +1 -1
  78. package/lib/inputs/date/index.d.ts +1 -1
  79. package/lib/inputs/date/types.d.ts +2 -2
  80. package/lib/inputs/errorMessage/index.d.ts +1 -1
  81. package/lib/inputs/file/DefaultFile.d.ts +1 -1
  82. package/lib/inputs/file/DefaultFile.js +1 -1
  83. package/lib/inputs/file/DragDropFile.d.ts +1 -1
  84. package/lib/inputs/file/File.d.ts +1 -1
  85. package/lib/inputs/file/FileButtonSettings.d.ts +1 -1
  86. package/lib/inputs/file/helpers.d.ts +1 -1
  87. package/lib/inputs/file/index.d.ts +1 -1
  88. package/lib/inputs/file/types.d.ts +1 -1
  89. package/lib/inputs/inputHOC.d.ts +1 -1
  90. package/lib/inputs/mask/BaseMask.d.ts +1 -1
  91. package/lib/inputs/mask/BaseMask.js +9 -6
  92. package/lib/inputs/mask/Cnpj.d.ts +1 -1
  93. package/lib/inputs/mask/Cpf.d.ts +1 -1
  94. package/lib/inputs/mask/Phone.d.ts +1 -1
  95. package/lib/inputs/mask/ZipCode.d.ts +1 -1
  96. package/lib/inputs/mask/helpers.d.ts +1 -1
  97. package/lib/inputs/mask/helpers.js +1 -1
  98. package/lib/inputs/mask/index.d.ts +1 -1
  99. package/lib/inputs/mask/types.d.ts +2 -2
  100. package/lib/inputs/multiSelect/ActionButtons.d.ts +1 -1
  101. package/lib/inputs/multiSelect/Dropdown.d.ts +1 -1
  102. package/lib/inputs/multiSelect/helper.d.ts +1 -1
  103. package/lib/inputs/multiSelect/index.d.ts +1 -1
  104. package/lib/inputs/multiSelect/types.d.ts +2 -2
  105. package/lib/inputs/number/BaseNumber.d.ts +1 -1
  106. package/lib/inputs/number/BaseNumber.js +3 -2
  107. package/lib/inputs/number/Currency.d.ts +1 -1
  108. package/lib/inputs/number/Decimal.d.ts +1 -1
  109. package/lib/inputs/number/format_number.d.ts +1 -1
  110. package/lib/inputs/number/format_number.js +4 -2
  111. package/lib/inputs/number/index.d.ts +1 -1
  112. package/lib/inputs/number/types.d.ts +4 -4
  113. package/lib/inputs/period/Dialog.d.ts +1 -1
  114. package/lib/inputs/period/Dropdown.d.ts +1 -1
  115. package/lib/inputs/period/PeriodList.d.ts +1 -1
  116. package/lib/inputs/period/helper.d.ts +1 -1
  117. package/lib/inputs/period/index.d.ts +1 -1
  118. package/lib/inputs/period/index.js +8 -10
  119. package/lib/inputs/period/types.d.ts +2 -5
  120. package/lib/inputs/search/index.d.ts +1 -1
  121. package/lib/inputs/select/ActionButtons.d.ts +1 -1
  122. package/lib/inputs/select/Dropdown.d.ts +1 -1
  123. package/lib/inputs/select/helper.d.ts +1 -1
  124. package/lib/inputs/select/index.d.ts +1 -1
  125. package/lib/inputs/select/multiple/Selecteds.d.ts +2 -2
  126. package/lib/inputs/select/multiple/Selecteds.js +3 -1
  127. package/lib/inputs/select/multiple/index.d.ts +1 -1
  128. package/lib/inputs/select/multiple/index.js +3 -2
  129. package/lib/inputs/select/simple/index.d.ts +1 -1
  130. package/lib/inputs/select/simple/index.js +3 -3
  131. package/lib/inputs/select/types.d.ts +2 -1
  132. package/lib/inputs/text/index.d.ts +1 -1
  133. package/lib/inputs/text/types.d.ts +2 -3
  134. package/lib/inputs/textarea/index.d.ts +1 -1
  135. package/lib/inputs/textarea/types.d.ts +1 -1
  136. package/lib/inputs/types.d.ts +2 -2
  137. package/lib/inputs2/checkboxfield/index.d.ts +7 -0
  138. package/lib/inputs2/checkboxfield/index.js +146 -0
  139. package/lib/inputs2/colorfield/index.d.ts +9 -0
  140. package/lib/inputs2/colorfield/index.js +119 -0
  141. package/lib/inputs2/date/base/constants.d.ts +7 -0
  142. package/lib/inputs2/date/base/constants.js +43 -0
  143. package/lib/inputs2/date/base/index.d.ts +12 -0
  144. package/lib/inputs2/date/base/index.js +179 -0
  145. package/lib/inputs2/date/datefield/calendarbox.d.ts +7 -0
  146. package/lib/inputs2/date/datefield/calendarbox.js +115 -0
  147. package/lib/inputs2/date/datefield/context.d.ts +13 -0
  148. package/lib/inputs2/date/datefield/context.js +15 -0
  149. package/lib/inputs2/date/datefield/index.d.ts +9 -0
  150. package/lib/inputs2/date/datefield/index.js +334 -0
  151. package/lib/inputs2/date/datefield/triggers.d.ts +8 -0
  152. package/lib/inputs2/date/datefield/triggers.js +47 -0
  153. package/lib/inputs2/date/datefield/types.d.ts +61 -0
  154. package/lib/inputs2/date/datefield/types.js +5 -0
  155. package/lib/inputs2/date/dateperiodfield/calendarbox.d.ts +7 -0
  156. package/lib/inputs2/date/dateperiodfield/calendarbox.js +136 -0
  157. package/lib/inputs2/date/dateperiodfield/context.d.ts +13 -0
  158. package/lib/inputs2/date/dateperiodfield/context.js +17 -0
  159. package/lib/inputs2/date/dateperiodfield/index.d.ts +9 -0
  160. package/lib/inputs2/date/dateperiodfield/index.js +592 -0
  161. package/lib/inputs2/date/dateperiodfield/triggers.d.ts +6 -0
  162. package/lib/inputs2/date/dateperiodfield/triggers.js +120 -0
  163. package/lib/inputs2/date/dateperiodfield/types.d.ts +99 -0
  164. package/lib/inputs2/date/dateperiodfield/types.js +19 -0
  165. package/lib/inputs2/date/helpers.d.ts +20 -0
  166. package/lib/inputs2/date/helpers.js +62 -0
  167. package/lib/inputs2/date/types.d.ts +59 -0
  168. package/lib/inputs2/date/types.js +19 -0
  169. package/lib/inputs2/index.d.ts +29 -0
  170. package/lib/inputs2/index.js +38 -0
  171. package/lib/inputs2/mask/BaseMask.d.ts +10 -0
  172. package/lib/inputs2/mask/BaseMask.js +95 -0
  173. package/lib/inputs2/mask/Cnpj.d.ts +11 -0
  174. package/lib/inputs2/mask/Cnpj.js +57 -0
  175. package/lib/inputs2/mask/Cpf.d.ts +11 -0
  176. package/lib/inputs2/mask/Cpf.js +53 -0
  177. package/lib/inputs2/mask/Phone.d.ts +11 -0
  178. package/lib/inputs2/mask/Phone.js +26 -0
  179. package/lib/inputs2/mask/ZipCode.d.ts +11 -0
  180. package/lib/inputs2/mask/ZipCode.js +23 -0
  181. package/lib/inputs2/mask/helpers.d.ts +4 -0
  182. package/lib/inputs2/mask/helpers.js +57 -0
  183. package/lib/inputs2/number/BaseNumber.d.ts +10 -0
  184. package/lib/inputs2/number/BaseNumber.js +86 -0
  185. package/lib/inputs2/number/Currency.d.ts +11 -0
  186. package/lib/inputs2/number/Currency.js +47 -0
  187. package/lib/inputs2/number/Decimal.d.ts +11 -0
  188. package/lib/inputs2/number/Decimal.js +36 -0
  189. package/lib/inputs2/number/Number.d.ts +9 -0
  190. package/lib/inputs2/number/Number.js +49 -0
  191. package/lib/inputs2/number/format_number.d.ts +5 -0
  192. package/lib/inputs2/number/format_number.js +29 -0
  193. package/lib/inputs2/selectfield/context.d.ts +38 -0
  194. package/lib/inputs2/selectfield/context.js +15 -0
  195. package/lib/inputs2/selectfield/helpers.d.ts +6 -0
  196. package/lib/inputs2/selectfield/helpers.js +25 -0
  197. package/lib/inputs2/selectfield/index.d.ts +10 -0
  198. package/lib/inputs2/selectfield/index.js +491 -0
  199. package/lib/inputs2/selectfield/item.d.ts +11 -0
  200. package/lib/inputs2/selectfield/item.js +85 -0
  201. package/lib/inputs2/selectfield/listbox.d.ts +7 -0
  202. package/lib/inputs2/selectfield/listbox.js +103 -0
  203. package/lib/inputs2/selectfield/search.d.ts +7 -0
  204. package/lib/inputs2/selectfield/search.js +71 -0
  205. package/lib/inputs2/selectfield/selections.d.ts +10 -0
  206. package/lib/inputs2/selectfield/selections.js +86 -0
  207. package/lib/inputs2/selectfield/triggers.d.ts +8 -0
  208. package/lib/inputs2/selectfield/triggers.js +100 -0
  209. package/lib/inputs2/selectfield/types.d.ts +55 -0
  210. package/lib/inputs2/selectfield/types.js +21 -0
  211. package/lib/inputs2/slot/index.d.ts +14 -0
  212. package/lib/inputs2/slot/index.js +47 -0
  213. package/lib/inputs2/textfield/index.d.ts +8 -0
  214. package/lib/inputs2/textfield/index.js +159 -0
  215. package/lib/internals/types.d.ts +1 -17
  216. package/lib/labels/DangerLabel.d.ts +1 -0
  217. package/lib/labels/DefaultLabel.d.ts +3 -5
  218. package/lib/labels/DefaultLabel.js +15 -7
  219. package/lib/labels/InfoLabel.d.ts +1 -0
  220. package/lib/labels/PrimaryLabel.d.ts +1 -0
  221. package/lib/labels/SuccessLabel.d.ts +1 -0
  222. package/lib/labels/WarningLabel.d.ts +1 -0
  223. package/lib/labels/index.d.ts +3 -2
  224. package/lib/labels/types.d.ts +2 -5
  225. package/lib/list/Header.d.ts +1 -0
  226. package/lib/list/Item.d.ts +3 -5
  227. package/lib/list/Item.js +17 -12
  228. package/lib/list/helpers.d.ts +1 -0
  229. package/lib/list/index.d.ts +1 -0
  230. package/lib/list/types.d.ts +4 -6
  231. package/lib/menus/sidenav/ExpandMenu.d.ts +2 -2
  232. package/lib/menus/sidenav/MenuLink.d.ts +4 -7
  233. package/lib/menus/sidenav/MenuLink.js +20 -11
  234. package/lib/menus/sidenav/NavMenuGroup.d.ts +2 -2
  235. package/lib/menus/sidenav/NavMenuItem.d.ts +4 -7
  236. package/lib/menus/sidenav/NavMenuItem.js +16 -12
  237. package/lib/menus/sidenav/NavSubMenuItem.d.ts +2 -2
  238. package/lib/menus/sidenav/helpers.d.ts +2 -2
  239. package/lib/menus/sidenav/index.d.ts +2 -2
  240. package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +2 -2
  241. package/lib/menus/sidenav/popup_menu_search/index.d.ts +2 -2
  242. package/lib/menus/sidenav/types.d.ts +6 -6
  243. package/lib/popover/PopoverText.js +11 -2
  244. package/lib/popover/types.d.ts +1 -0
  245. package/lib/textContent/index.d.ts +6 -11
  246. package/lib/textContent/index.js +20 -11
  247. package/lib/tooltip/TooltipContent.d.ts +7 -0
  248. package/lib/tooltip/TooltipContent.js +65 -0
  249. package/lib/tooltip/index.d.ts +4 -3
  250. package/lib/tooltip/index.js +36 -53
  251. package/lib/tooltip/types.d.ts +25 -3
  252. package/lib/tooltip/useTooltip.d.ts +30 -0
  253. package/lib/tooltip/useTooltip.js +128 -0
  254. package/package.json +4 -3
  255. package/lib/inputs/base/Label.d.ts +0 -14
  256. package/lib/inputs/base/Label.js +0 -35
  257. package/lib/internals/withTooltip.d.ts +0 -12
  258. package/lib/internals/withTooltip.js +0 -172
@@ -0,0 +1,203 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _lodash = _interopRequireDefault(require("lodash"));
9
+ var _helpers = require("../helpers");
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
+ const useForm = _ref => {
12
+ let {
13
+ initialValues,
14
+ validators = {},
15
+ options = {
16
+ validationMode: 'default'
17
+ }
18
+ } = _ref;
19
+ const [values, setValues] = _react.default.useState(initialValues);
20
+ const [errors, setErrors] = _react.default.useState({});
21
+ const [changed, setChanged] = _react.default.useState({});
22
+ const [touched, setTouched] = _react.default.useState({});
23
+ const fieldsRef = _react.default.useRef({});
24
+ const initialValuesRef = _react.default.useRef(initialValues);
25
+ const valuesToCompareInChangedRef = _react.default.useRef(initialValues);
26
+ const flattenedValidators = _react.default.useMemo(() => {
27
+ return (0, _helpers.flattenValidators)(validators);
28
+ }, [validators]);
29
+ const validateField = (name, value) => {
30
+ const validatorsForField = _lodash.default.get(flattenedValidators, name) ?? [];
31
+ const fieldErrors = validatorsForField.map(validator => validator(value, values)).filter(message => Boolean(message));
32
+ setErrors(prevErrorsState => {
33
+ const updatedErrorsState = _lodash.default.cloneDeep(prevErrorsState);
34
+ _lodash.default.set(updatedErrorsState, name, fieldErrors);
35
+ return updatedErrorsState;
36
+ });
37
+ };
38
+ const validateAllFields = () => {
39
+ const allValidationErrors = {};
40
+ Object.keys(flattenedValidators).forEach(path => {
41
+ const value = _lodash.default.get(values, path);
42
+ const fieldValidators = _lodash.default.get(flattenedValidators, path) ?? [];
43
+ const fieldErrors = fieldValidators.map(validator => validator(value, values)).filter(message => Boolean(message));
44
+ if (fieldErrors.length) {
45
+ _lodash.default.set(allValidationErrors, path, fieldErrors);
46
+ }
47
+ });
48
+ setErrors(allValidationErrors);
49
+ return allValidationErrors;
50
+ };
51
+ const checkFormIsValid = _react.default.useCallback(() => {
52
+ return Object.keys(flattenedValidators).every(path => {
53
+ const value = _lodash.default.get(values, path);
54
+ const fieldValidators = _lodash.default.get(flattenedValidators, path) ?? [];
55
+ return fieldValidators.every(validator => !validator(value, values));
56
+ });
57
+ }, [values, flattenedValidators]);
58
+ const getFieldError = name => {
59
+ const fieldErrors = _lodash.default.get(errors, name) ?? [];
60
+ return fieldErrors;
61
+ };
62
+ const setExternalErrors = externalErrors => {
63
+ setErrors(prevStateErrors => {
64
+ const newErrorsState = _lodash.default.cloneDeep(prevStateErrors);
65
+ Object.entries(externalErrors).forEach(_ref2 => {
66
+ let [key, value] = _ref2;
67
+ _lodash.default.set(newErrorsState, key, value);
68
+ });
69
+ return newErrorsState;
70
+ });
71
+ };
72
+ const getFieldValue = name => {
73
+ return _lodash.default.get(values, name);
74
+ };
75
+ const setFieldValue = (name, value) => {
76
+ setValues(prevStateValues => {
77
+ const updatedValuesState = _lodash.default.cloneDeep(prevStateValues);
78
+ _lodash.default.set(updatedValuesState, name, value);
79
+ const valueToCompare = _lodash.default.get(valuesToCompareInChangedRef.current, name);
80
+ const hasChanged = !_lodash.default.isEqual(valueToCompare, value);
81
+ setChanged(prevStateChanged => {
82
+ const updatedChangedState = _lodash.default.cloneDeep(prevStateChanged);
83
+ _lodash.default.set(updatedChangedState, name, hasChanged);
84
+ return updatedChangedState;
85
+ });
86
+ return updatedValuesState;
87
+ });
88
+ };
89
+ const setFieldFocus = (name, fieldFocusOptions) => {
90
+ const field = fieldsRef.current[name];
91
+ field?.focus?.();
92
+ if (fieldFocusOptions?.shouldSelect) {
93
+ field?.select?.();
94
+ }
95
+ };
96
+ const compareField = _react.default.useCallback((name, valueToCompare) => {
97
+ return _lodash.default.isEqual(_lodash.default.get(values, name), valueToCompare);
98
+ }, [values]);
99
+ const cleanErrors = fieldsToClean => {
100
+ const newErrorsState = _lodash.default.cloneDeep(errors);
101
+ const fields = fieldsToClean ?? Object.keys(errors);
102
+ fields.forEach(key => {
103
+ _lodash.default.set(newErrorsState, key, []);
104
+ });
105
+ setErrors(newErrorsState);
106
+ };
107
+ const reset = (inputsToReset, internalReset) => {
108
+ const newValuesState = _lodash.default.cloneDeep(values);
109
+ const newTouchedState = _lodash.default.cloneDeep(touched);
110
+ const newChangedState = _lodash.default.cloneDeep(changed);
111
+ const newErrorsState = _lodash.default.cloneDeep(errors);
112
+ const inputs = inputsToReset ?? Object.keys(initialValuesRef.current);
113
+ inputs.forEach(key => {
114
+ const initialValue = _lodash.default.get(initialValuesRef.current, key);
115
+ _lodash.default.set(newValuesState, key, initialValue);
116
+ _lodash.default.set(newTouchedState, key, false);
117
+ _lodash.default.set(newChangedState, key, false);
118
+ _lodash.default.set(newErrorsState, key, []);
119
+ });
120
+ setValues(newValuesState);
121
+ setTouched(newTouchedState);
122
+ setChanged(newChangedState);
123
+ setErrors(newErrorsState);
124
+ if (!internalReset) {
125
+ valuesToCompareInChangedRef.current = initialValuesRef.current;
126
+ }
127
+ };
128
+ const changeValues = _react.default.useCallback(fieldValues => {
129
+ reset(undefined, true);
130
+ setValues(prevStateValues => {
131
+ const newValuesState = (0, _helpers.deepMergeValues)(prevStateValues, fieldValues);
132
+ valuesToCompareInChangedRef.current = newValuesState;
133
+ return newValuesState;
134
+ });
135
+ }, []);
136
+ const register = (name, externalRef) => {
137
+ return {
138
+ name,
139
+ ref: (0, _helpers.mergeRefs)(inputElement => {
140
+ fieldsRef.current[name] = inputElement;
141
+ }, externalRef),
142
+ value: _lodash.default.get(values, name, _lodash.default.get(initialValuesRef.current, name, '')),
143
+ onChange: event => {
144
+ const {
145
+ value
146
+ } = event.target;
147
+ const inputValue = !_lodash.default.isNumber(value) ? value : _lodash.default.toNumber(value);
148
+ setValues(prevStateValues => {
149
+ 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);
152
+ setChanged(prevStateChanged => {
153
+ const updatedChangedState = _lodash.default.cloneDeep(prevStateChanged);
154
+ _lodash.default.set(updatedChangedState, name, hasChanged);
155
+ return updatedChangedState;
156
+ });
157
+ if (options.validationMode === 'default' && _lodash.default.get(touched, name)) {
158
+ validateField(name, inputValue);
159
+ }
160
+ return updatedValues;
161
+ });
162
+ },
163
+ onBlur: () => {
164
+ setTouched(prevStateTouched => {
165
+ const updated = _lodash.default.cloneDeep(prevStateTouched);
166
+ _lodash.default.set(updated, name, true);
167
+ return updated;
168
+ });
169
+ if (options.validationMode === 'default') {
170
+ validateField(name, _lodash.default.get(values, name));
171
+ }
172
+ }
173
+ };
174
+ };
175
+ const handleSubmit = callback => event => {
176
+ event.preventDefault();
177
+ const validationErrors = validateAllFields();
178
+ const hasErrors = !_lodash.default.isEmpty(validationErrors);
179
+ if (hasErrors) return;
180
+ callback(values);
181
+ };
182
+ const isValid = _react.default.useMemo(() => checkFormIsValid(), [checkFormIsValid]);
183
+ return {
184
+ reset,
185
+ changed,
186
+ values,
187
+ errors,
188
+ touched,
189
+ isValid,
190
+ register,
191
+ cleanErrors,
192
+ changeValues,
193
+ compareField,
194
+ handleSubmit,
195
+ getFieldValue,
196
+ getFieldError,
197
+ setFieldFocus,
198
+ setFieldValue,
199
+ setExternalErrors,
200
+ initialValues: initialValuesRef.current
201
+ };
202
+ };
203
+ var _default = exports.default = useForm;
@@ -631,6 +631,10 @@ declare const _default: {
631
631
  viewbox: string;
632
632
  paths: string[];
633
633
  };
634
+ clipboard: {
635
+ viewbox: string;
636
+ paths: string[];
637
+ };
634
638
  };
635
639
 
636
640
  export { _default as default };
@@ -636,5 +636,9 @@ var _default = exports.default = {
636
636
  earth: {
637
637
  viewbox: '0 0 16 16',
638
638
  paths: ['M8 0c-4.418 0-8 3.582-8 8s3.582 8 8 8 8-3.582 8-8-3.582-8-8-8zM8 15c-0.984 0-1.92-0.203-2.769-0.57l3.643-4.098c0.081-0.092 0.126-0.21 0.126-0.332v-1.5c0-0.276-0.224-0.5-0.5-0.5-1.765 0-3.628-1.835-3.646-1.854-0.094-0.094-0.221-0.146-0.354-0.146h-2c-0.276 0-0.5 0.224-0.5 0.5v3c0 0.189 0.107 0.363 0.276 0.447l1.724 0.862v2.936c-1.813-1.265-3-3.366-3-5.745 0-1.074 0.242-2.091 0.674-3h1.826c0.133 0 0.26-0.053 0.354-0.146l2-2c0.094-0.094 0.146-0.221 0.146-0.354v-1.21c0.634-0.189 1.305-0.29 2-0.29 1.1 0 2.141 0.254 3.067 0.706-0.065 0.055-0.128 0.112-0.188 0.172-0.567 0.567-0.879 1.32-0.879 2.121s0.312 1.555 0.879 2.121c0.569 0.569 1.332 0.879 2.119 0.879 0.049 0 0.099-0.001 0.149-0.004 0.216 0.809 0.605 2.917-0.131 5.818-0.007 0.027-0.011 0.055-0.013 0.082-1.271 1.298-3.042 2.104-5.002 2.104z']
639
+ },
640
+ clipboard: {
641
+ viewbox: '0 0 16 16',
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']
639
643
  }
640
644
  };
@@ -4,12 +4,10 @@ import '../@types/PointerEvents.js';
4
4
  import '../@types/SizePixels.js';
5
5
  import '../@types/Icon.js';
6
6
  import './helper.js';
7
- import '../@types/Position.js';
8
7
  import '../@types/ColorStyles.js';
8
+ import '../tooltip/types.js';
9
+ import '../@types/Position.js';
9
10
 
10
- declare const _default: {
11
- (props: IconProps): JSX.Element;
12
- displayName: string;
13
- };
11
+ declare const Icon: ({ name, onClick, svgStruct, size, style, visible, disabled, customClass, customClassForContainer, colorStyle, color, viewBox, pointerEvents, tooltip, tooltipPosition, tooltipWidth, }: IconProps) => JSX.Element | null;
14
12
 
15
- export { _default as default };
13
+ export { Icon as default };
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
8
  var _helper = _interopRequireDefault(require("./helper"));
9
- var _withTooltip = _interopRequireDefault(require("../internals/withTooltip"));
10
9
  require("../assets/styles/icon.scss");
10
+ var _tooltip = require("../tooltip");
11
11
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
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
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; }
@@ -28,11 +28,13 @@ const Icon = _ref => {
28
28
  color,
29
29
  viewBox,
30
30
  pointerEvents = 'none',
31
- targetRef,
32
- tooltip
31
+ tooltip,
32
+ tooltipPosition,
33
+ tooltipWidth
33
34
  } = _ref;
34
35
  const isUsingColorStyle = colorStyle !== 'default';
35
36
  const colorFromProp = isUsingColorStyle || !color ? undefined : color;
37
+ const containerRef = (0, _react.useRef)(null);
36
38
  const refSvg = (0, _react.useRef)(null);
37
39
  const viewBoxFromIconOrSvgStrcut = name ? listIcon[name].viewbox : svgStruct?.viewbox;
38
40
  const getPaths = () => name ? listIcon[name].paths : svgStruct?.paths;
@@ -63,11 +65,14 @@ const Icon = _ref => {
63
65
  if (!name && !svgStruct) throw new Error('One of the "name" and "svgStruct" props must be filled');
64
66
  if (!visible) return null;
65
67
  if (!tooltip) return getSvg();
66
- return /*#__PURE__*/_react.default.createElement("div", {
68
+ return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
67
69
  className: `icon-component-container ${customClassForContainer}`,
68
- ref: r => {
69
- if (targetRef && r) targetRef(r);
70
- }
71
- }, getSvg());
70
+ ref: containerRef
71
+ }, getSvg()), /*#__PURE__*/_react.default.createElement(_tooltip.Tooltip, {
72
+ targetRef: containerRef,
73
+ text: tooltip,
74
+ width: tooltipWidth,
75
+ position: tooltipPosition
76
+ }));
72
77
  };
73
- var _default = exports.default = (0, _withTooltip.default)(Icon);
78
+ var _default = exports.default = Icon;
@@ -2,9 +2,10 @@ import { CSSProperties } from 'react';
2
2
  import { PointerEvents } from '../@types/PointerEvents.js';
3
3
  import { SizePixels } from '../@types/SizePixels.js';
4
4
  import { IconNames } from '../@types/Icon.js';
5
- import { Position } from '../@types/Position.js';
6
5
  import { ColorStyles } from '../@types/ColorStyles.js';
6
+ import { ITooltipCommonProps } from '../tooltip/types.js';
7
7
  import './helper.js';
8
+ import '../@types/Position.js';
8
9
 
9
10
  type ListIconType = {
10
11
  [name: string]: {
@@ -16,7 +17,7 @@ type SvgStruct = {
16
17
  viewbox: string;
17
18
  paths: Array<string>;
18
19
  };
19
- type BaseIconProps = {
20
+ type BaseIconProps = ITooltipCommonProps & {
20
21
  size?: SizePixels;
21
22
  customClass?: string;
22
23
  customClassForContainer?: string;
@@ -26,10 +27,6 @@ type BaseIconProps = {
26
27
  pointerEvents?: PointerEvents;
27
28
  viewBox?: string;
28
29
  onClick?: () => void;
29
- tooltipPosition?: Exclude<Position, 'center'>;
30
- tooltipWidth?: string | number;
31
- tooltip?: string;
32
- targetRef?: (ref: HTMLDivElement) => void;
33
30
  };
34
31
  type ColorProps = ({
35
32
  colorStyle?: ColorStyles | 'default';
@@ -0,0 +1,23 @@
1
+ import React__default from 'react';
2
+ import { LeftSlot, RightSlot } from './inputs2/slot/index.js';
3
+ import { Item } from './inputs2/selectfield/item.js';
4
+ import { SelectFieldInputProps } from './inputs2/selectfield/types.js';
5
+
6
+ declare const Input: React__default.ForwardRefExoticComponent<Pick<SelectFieldInputProps, "className" | "disabled" | "size" | "onClick" | "width" | "height" | "color" | "src" | "children" | "customClass" | "label" | "style" | "id" | "key" | "form" | "slot" | "title" | "pattern" | "name" | "tooltip" | "tooltipPosition" | "tooltipWidth" | "list" | "hidden" | "multiple" | "onKeyPress" | "role" | "tabIndex" | "alt" | "align" | "value" | "readOnly" | "permissionAttr" | "skeletonize" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "step" | "maxLength" | "required" | "hint" | "hintPosition" | "textAlign" | "onDeniedActions" | "gridLayout" | "accept" | "autoComplete" | "themePopover" | "popoverAlign" | "checked" | "showClearButton" | "searchOnDropdown" | "undigitable" | "openDropdownOnFocus" | "onSearch" | "striped" | "max" | "min" | "errors" | "customClassLabel" | "customClassWrapper" | "customClassInputContainer" | "capture" | "crossOrigin" | "enterKeyHint" | "minLength" | "externalSearch" | "notFoundFilterLabel" | "searchInputPlaceholder" | "multipleInputLabelEmpty" | "multipleInputLabelOneSelection" | "multipleInputLabelManySelection" | "dropdownAlignButton"> & React__default.RefAttributes<HTMLInputElement>>;
7
+
8
+ declare const index_Input: typeof Input;
9
+ declare const index_Item: typeof Item;
10
+ declare const index_LeftSlot: typeof LeftSlot;
11
+ declare const index_RightSlot: typeof RightSlot;
12
+ declare const index_SelectFieldInputProps: typeof SelectFieldInputProps;
13
+ declare namespace index {
14
+ export {
15
+ index_Input as Input,
16
+ index_Item as Item,
17
+ index_LeftSlot as LeftSlot,
18
+ index_RightSlot as RightSlot,
19
+ index_SelectFieldInputProps as SelectFieldInputProps,
20
+ };
21
+ }
22
+
23
+ export { Input as I, index as i };
@@ -0,0 +1,15 @@
1
+ import React__default from 'react';
2
+ import { DateFieldInputProps } from './inputs2/date/datefield/types.js';
3
+
4
+ declare const Input: React__default.ForwardRefExoticComponent<DateFieldInputProps & React__default.RefAttributes<HTMLInputElement>>;
5
+
6
+ declare const index_DateFieldInputProps: typeof DateFieldInputProps;
7
+ declare const index_Input: typeof Input;
8
+ declare namespace index {
9
+ export {
10
+ index_DateFieldInputProps as DateFieldInputProps,
11
+ index_Input as Input,
12
+ };
13
+ }
14
+
15
+ export { Input as I, index as i };
@@ -0,0 +1,41 @@
1
+ import React__default from 'react';
2
+ import { Size } from './@types/Size.js';
3
+ import { ColorTheme } from './@types/ColorStyles.js';
4
+ import { ITooltipCommonProps } from './tooltip/types.js';
5
+ import { HintPosition, Position } from './@types/Position.js';
6
+ import { PermissionAttr, OnDenied } from './@types/PermissionAttr.js';
7
+
8
+ type InputHTMLProps = Omit<React__default.ComponentProps<'input'>, 'size' | 'type'>;
9
+ interface CheckboxFieldInputProps extends InputHTMLProps, ITooltipCommonProps {
10
+ hint?: string;
11
+ label?: string;
12
+ size?: Exclude<Size, 'mini'>;
13
+ variant?: 'default' | 'secondary';
14
+ errors?: string[];
15
+ gridLayout?: string;
16
+ customClass?: string;
17
+ customClassLabel?: string;
18
+ customClassWrapper?: string;
19
+ customClassInputContainer?: string;
20
+ rounded?: boolean;
21
+ readOnly?: boolean;
22
+ skeletonize?: boolean;
23
+ labelUppercase?: boolean;
24
+ hintPosition?: HintPosition;
25
+ themePopover?: ColorTheme;
26
+ popoverAlign?: Extract<Position, 'left' | 'right'>;
27
+ permissionAttr?: PermissionAttr;
28
+ onDeniedActions?: OnDenied;
29
+ }
30
+ declare const Input: React__default.ForwardRefExoticComponent<Pick<CheckboxFieldInputProps, "className" | "disabled" | "size" | "onClick" | "width" | "height" | "color" | "src" | "children" | "customClass" | "label" | "style" | "id" | "key" | "form" | "slot" | "title" | "pattern" | "name" | "tooltip" | "tooltipPosition" | "tooltipWidth" | "list" | "hidden" | "multiple" | "onKeyPress" | "role" | "tabIndex" | "alt" | "align" | "value" | "readOnly" | "permissionAttr" | "skeletonize" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "step" | "labelUppercase" | "maxLength" | "required" | "hint" | "hintPosition" | "rounded" | "onDeniedActions" | "gridLayout" | "accept" | "autoComplete" | "themePopover" | "popoverAlign" | "checked" | "max" | "min" | "errors" | "customClassLabel" | "customClassWrapper" | "customClassInputContainer" | "capture" | "crossOrigin" | "enterKeyHint" | "minLength" | "variant"> & React__default.RefAttributes<HTMLInputElement>>;
31
+
32
+ type index_CheckboxFieldInputProps = CheckboxFieldInputProps;
33
+ declare const index_Input: typeof Input;
34
+ declare namespace index {
35
+ export {
36
+ index_CheckboxFieldInputProps as CheckboxFieldInputProps,
37
+ index_Input as Input,
38
+ };
39
+ }
40
+
41
+ export { CheckboxFieldInputProps as C, Input as I, index as i };
@@ -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 TextFieldInputProps extends React__default.ComponentProps<'input'>, ITooltipCommonProps {
10
+ hint?: string;
11
+ label?: string;
12
+ errors?: string[];
13
+ gridLayout?: string;
14
+ customClass?: string;
15
+ customClassLabel?: string;
16
+ customClassWrapper?: string;
17
+ customClassInputContainer?: string;
18
+ rounded?: boolean;
19
+ readOnly?: boolean;
20
+ skeletonize?: boolean;
21
+ labelUppercase?: boolean;
22
+ textAlign?: TextAlign;
23
+ hintPosition?: HintPosition;
24
+ themePopover?: ColorTheme;
25
+ popoverAlign?: Extract<Position, 'left' | 'right'>;
26
+ permissionAttr?: PermissionAttr;
27
+ onDeniedActions?: OnDenied;
28
+ }
29
+ declare const Input: React__default.ForwardRefExoticComponent<Pick<TextFieldInputProps, "className" | "disabled" | "size" | "onClick" | "width" | "height" | "color" | "src" | "children" | "customClass" | "label" | "style" | "id" | "key" | "form" | "slot" | "title" | "pattern" | "name" | "tooltip" | "tooltipPosition" | "tooltipWidth" | "list" | "hidden" | "multiple" | "onKeyPress" | "role" | "tabIndex" | "alt" | "align" | "value" | "readOnly" | "permissionAttr" | "skeletonize" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "step" | "labelUppercase" | "maxLength" | "required" | "hint" | "hintPosition" | "textAlign" | "rounded" | "onDeniedActions" | "gridLayout" | "accept" | "autoComplete" | "themePopover" | "popoverAlign" | "checked" | "max" | "min" | "errors" | "customClassLabel" | "customClassWrapper" | "customClassInputContainer" | "capture" | "crossOrigin" | "enterKeyHint" | "minLength"> & React__default.RefAttributes<HTMLInputElement>>;
30
+
31
+ declare const index_Input: typeof Input;
32
+ declare const index_LeftSlot: typeof LeftSlot;
33
+ declare const index_RightSlot: typeof RightSlot;
34
+ type index_TextFieldInputProps = TextFieldInputProps;
35
+ declare namespace index {
36
+ export {
37
+ index_Input as Input,
38
+ index_LeftSlot as LeftSlot,
39
+ index_RightSlot as RightSlot,
40
+ index_TextFieldInputProps as TextFieldInputProps,
41
+ };
42
+ }
43
+
44
+ export { Input as I, TextFieldInputProps as T, index as i };
@@ -0,0 +1,23 @@
1
+ import React__default from 'react';
2
+ import { LeftSlot, RightSlot } from './inputs2/slot/index.js';
3
+ import { T as TextFieldInputProps } from './index-772f9f1a.js';
4
+
5
+ interface ColorFieldInputProps extends TextFieldInputProps {
6
+ isTypeText?: boolean;
7
+ }
8
+ declare const Input: React__default.ForwardRefExoticComponent<Pick<ColorFieldInputProps, "className" | "disabled" | "size" | "onClick" | "width" | "height" | "color" | "src" | "children" | "customClass" | "label" | "style" | "id" | "key" | "form" | "slot" | "title" | "pattern" | "name" | "tooltip" | "tooltipPosition" | "tooltipWidth" | "list" | "hidden" | "multiple" | "onKeyPress" | "role" | "tabIndex" | "alt" | "align" | "value" | "readOnly" | "permissionAttr" | "skeletonize" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "step" | "labelUppercase" | "maxLength" | "required" | "hint" | "hintPosition" | "textAlign" | "rounded" | "onDeniedActions" | "gridLayout" | "accept" | "autoComplete" | "themePopover" | "popoverAlign" | "checked" | "max" | "min" | "errors" | "customClassLabel" | "customClassWrapper" | "customClassInputContainer" | "capture" | "crossOrigin" | "enterKeyHint" | "minLength" | "isTypeText"> & React__default.RefAttributes<HTMLInputElement>>;
9
+
10
+ type index_ColorFieldInputProps = ColorFieldInputProps;
11
+ declare const index_Input: typeof Input;
12
+ declare const index_LeftSlot: typeof LeftSlot;
13
+ declare const index_RightSlot: typeof RightSlot;
14
+ declare namespace index {
15
+ export {
16
+ index_ColorFieldInputProps as ColorFieldInputProps,
17
+ index_Input as Input,
18
+ index_LeftSlot as LeftSlot,
19
+ index_RightSlot as RightSlot,
20
+ };
21
+ }
22
+
23
+ export { ColorFieldInputProps as C, Input as I, index as i };
@@ -0,0 +1,15 @@
1
+ import React__default from 'react';
2
+ import { DatePeriodFieldProps } from './inputs2/date/dateperiodfield/types.js';
3
+
4
+ declare const Input: React__default.ForwardRefExoticComponent<DatePeriodFieldProps & React__default.RefAttributes<HTMLInputElement>>;
5
+
6
+ declare const index_DatePeriodFieldProps: typeof DatePeriodFieldProps;
7
+ declare const index_Input: typeof Input;
8
+ declare namespace index {
9
+ export {
10
+ index_DatePeriodFieldProps as DatePeriodFieldProps,
11
+ index_Input as Input,
12
+ };
13
+ }
14
+
15
+ export { Input as I, index as i };
package/lib/index.d.ts CHANGED
@@ -23,6 +23,7 @@ import './toolbar/Separator.js';
23
23
  import './toolbar/ButtonBar.js';
24
24
  import './toolbar/LabelBar.js';
25
25
  import './buttons/types.js';
26
+ import './tooltip/types.js';
26
27
  import './labels/types.js';
27
28
  import './icons/types.js';
28
29
  import './@types/PointerEvents.js';
@@ -3,7 +3,7 @@ import 'react';
3
3
  import '../../@types/Align.js';
4
4
  import '../../@types/Period.js';
5
5
  import '../../@types/PermissionAttr.js';
6
- import '../../internals/types.js';
6
+ import '../../tooltip/types.js';
7
7
  import '../../@types/Position.js';
8
8
 
9
9
  declare const _default: (props: IBaseProps) => JSX.Element;