@itcase/forms 1.1.8 → 1.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/itcase-forms.cjs.js
CHANGED
|
@@ -22,6 +22,8 @@ var fileSelector = require('file-selector');
|
|
|
22
22
|
var castArray = require('lodash/castArray');
|
|
23
23
|
var reactDropzone = require('react-dropzone');
|
|
24
24
|
var common = require('@itcase/common');
|
|
25
|
+
var Button = require('@itcase/ui/components/Button');
|
|
26
|
+
var Group$1 = require('@itcase/ui/components/Group');
|
|
25
27
|
var Loader = require('@itcase/ui/components/Loader');
|
|
26
28
|
var Title = require('@itcase/ui/components/Title');
|
|
27
29
|
var Input = require('@itcase/ui/components/Input');
|
|
@@ -32,8 +34,6 @@ var Switch = require('@itcase/ui/components/Switch');
|
|
|
32
34
|
var Textarea = require('@itcase/ui/components/Textarea');
|
|
33
35
|
var reactImask = require('react-imask');
|
|
34
36
|
var Chips = require('@itcase/ui/components/Chips');
|
|
35
|
-
var Button = require('@itcase/ui/components/Button');
|
|
36
|
-
var Group$1 = require('@itcase/ui/components/Group');
|
|
37
37
|
var Notification = require('@itcase/ui/components/Notification');
|
|
38
38
|
var createDecorator = require('final-form-focus');
|
|
39
39
|
|
|
@@ -226,6 +226,9 @@ function FieldWrapperBase(props) {
|
|
|
226
226
|
const {
|
|
227
227
|
styles: formFieldStyles
|
|
228
228
|
} = useStyles.useStyles(props);
|
|
229
|
+
const errorTextSize = props[`${errorKey}MessageTextSize`];
|
|
230
|
+
const errorTextColor = props[`${errorKey}MessageTextColor`];
|
|
231
|
+
const errorTextWeight = props[`${errorKey}MessageTextWeight`];
|
|
229
232
|
return /*#__PURE__*/React__default.default.createElement(Tag, {
|
|
230
233
|
className: clsx__default.default(formFieldClass, 'form__item', 'form-field', type && `form-field_type_${type}`, sizeClass, fillClass, shapeClass, isDisabled && `form-field_state_disabled`, isHidden && `form-field_state_hidden`, directionClass, widthClass),
|
|
231
234
|
"data-test-id": `${inputName}Field`,
|
|
@@ -264,9 +267,9 @@ function FieldWrapperBase(props) {
|
|
|
264
267
|
}, isErrorState && errorMessage && /*#__PURE__*/React__default.default.createElement(Text.Text, {
|
|
265
268
|
id: `${inputName}-error`,
|
|
266
269
|
className: "form-field__message-item form-field__message-item_type-error",
|
|
267
|
-
size:
|
|
268
|
-
textColor:
|
|
269
|
-
textWeight:
|
|
270
|
+
size: errorTextSize,
|
|
271
|
+
textColor: errorTextColor,
|
|
272
|
+
textWeight: errorTextWeight,
|
|
270
273
|
dataTestId: `${inputName}FieldMessageError`
|
|
271
274
|
}, errorMessage), Boolean(helpText) && (!isErrorState || !errorMessage) && /*#__PURE__*/React__default.default.createElement(Text.Text, {
|
|
272
275
|
className: "form-field__message-item form-field__message-item_type_help-text",
|
|
@@ -867,10 +870,8 @@ const defaultDropzoneProps = {
|
|
|
867
870
|
hintTitle: 'Перетащите изображение или выберите файл с компьютера',
|
|
868
871
|
hintTitleTextColor: 'surfaceTextPrimary',
|
|
869
872
|
hintTitleTextSize: 'm',
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
removeThumbTextHoverColor: 'errorTextPrimaryHover',
|
|
873
|
-
removeThumbTextSize: 's',
|
|
873
|
+
removeThumbAppearance: 'dangerPrimary sizeM',
|
|
874
|
+
removeThumbShape: 'rounded',
|
|
874
875
|
shape: 'rounded',
|
|
875
876
|
showFilename: true,
|
|
876
877
|
thumbBorderColor: 'surfaceBorderTertiary',
|
|
@@ -1049,10 +1050,9 @@ const FileInputDropzone = /*#__PURE__*/React__default.default.memo(function File
|
|
|
1049
1050
|
hintTitleTextSize,
|
|
1050
1051
|
hintTitleTextWeight,
|
|
1051
1052
|
hintTitleTextWrap,
|
|
1053
|
+
removeThumbAppearance,
|
|
1054
|
+
removeThumbShape,
|
|
1052
1055
|
removeThumbText,
|
|
1053
|
-
removeThumbTextColor,
|
|
1054
|
-
removeThumbTextHoverColor,
|
|
1055
|
-
removeThumbTextSize,
|
|
1056
1056
|
removeThumbTextWeight,
|
|
1057
1057
|
shapeClass,
|
|
1058
1058
|
thumbBorderColorClass,
|
|
@@ -1066,11 +1066,11 @@ const FileInputDropzone = /*#__PURE__*/React__default.default.memo(function File
|
|
|
1066
1066
|
thumbNameTextWrap
|
|
1067
1067
|
} = propsGenerator;
|
|
1068
1068
|
return /*#__PURE__*/React__default.default.createElement(React__default.default.Fragment, null, /*#__PURE__*/React__default.default.createElement("div", getRootProps({
|
|
1069
|
-
className: `form-dropzone__dropzone dropzone ${className}
|
|
1069
|
+
className: `form-dropzone__dropzone dropzone ${className} form-dropzone__dropzone_size_${size} ${shapeClass}`
|
|
1070
1070
|
}), /*#__PURE__*/React__default.default.createElement("input", Object.assign({}, getInputProps(), {
|
|
1071
1071
|
name: inputName
|
|
1072
1072
|
})), /*#__PURE__*/React__default.default.createElement("div", {
|
|
1073
|
-
className: clsx__default.default('form-dropzone__dropzone-wrapper', thumbColumn && `form-dropzone__dropzone-wrapper_column_${thumbColumn}`, fillClass
|
|
1073
|
+
className: clsx__default.default('form-dropzone__dropzone-wrapper', thumbColumn && `form-dropzone__dropzone-wrapper_column_${thumbColumn}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, borderColorClass && `border-color_${borderColorClass}`, borderColorHoverClass && `border-color_hover_${borderColorHoverClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderTypeClass)
|
|
1074
1074
|
}, filesList.map((file, index) => /*#__PURE__*/React__default.default.createElement("aside", {
|
|
1075
1075
|
className: clsx__default.default('form-dropzone__thumb', fillClass, thumbDirectionClass, thumbBorderWidthClass, thumbBorderColorClass, thumbBorderColorHoverClass, thumbBorderTypeClass),
|
|
1076
1076
|
key: file.id || `${file.name}_${index}`
|
|
@@ -1105,15 +1105,15 @@ const FileInputDropzone = /*#__PURE__*/React__default.default.memo(function File
|
|
|
1105
1105
|
itemFill: "surfaceItemAccent",
|
|
1106
1106
|
set: "simple"
|
|
1107
1107
|
})), /*#__PURE__*/React__default.default.createElement("div", {
|
|
1108
|
-
className:
|
|
1109
|
-
|
|
1110
|
-
}, /*#__PURE__*/React__default.default.createElement(Text.Text, {
|
|
1108
|
+
className: clsx__default.default('form-dropzone__thumb-remove')
|
|
1109
|
+
}, /*#__PURE__*/React__default.default.createElement(Button.Button, {
|
|
1111
1110
|
className: "form-dropzone__thumb-remove-text",
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1111
|
+
appearance: removeThumbAppearance,
|
|
1112
|
+
label: removeThumbText || 'Удалить',
|
|
1113
|
+
labelTextWeight: removeThumbTextWeight,
|
|
1114
|
+
shape: removeThumbShape,
|
|
1115
|
+
onClick: event => removeFile(event, index)
|
|
1116
|
+
})))), !filesList.length ? /*#__PURE__*/React__default.default.createElement("div", {
|
|
1117
1117
|
className: "form-dropzone__hint"
|
|
1118
1118
|
}, /*#__PURE__*/React__default.default.createElement(Text.Text, {
|
|
1119
1119
|
className: "form-dropzone__hint-title",
|
|
@@ -1121,7 +1121,7 @@ const FileInputDropzone = /*#__PURE__*/React__default.default.memo(function File
|
|
|
1121
1121
|
textColor: hintTitleTextColor,
|
|
1122
1122
|
textWeight: hintTitleTextWeight,
|
|
1123
1123
|
textWrap: hintTitleTextWrap
|
|
1124
|
-
}, hintTitle || 'Select a file or drag in form'), /*#__PURE__*/React__default.default.createElement(Text.Text, {
|
|
1124
|
+
}, hintTitle || 'Select a file or drag in form'), hintDescription && /*#__PURE__*/React__default.default.createElement(Text.Text, {
|
|
1125
1125
|
className: "form-dropzone__hint-text",
|
|
1126
1126
|
size: hintDescriptionTextSize,
|
|
1127
1127
|
textColor: hintDescriptionTextColor,
|
|
@@ -1135,7 +1135,7 @@ const FileInputDropzone = /*#__PURE__*/React__default.default.memo(function File
|
|
|
1135
1135
|
textColor: hintTitleTextColor,
|
|
1136
1136
|
textWeight: hintTitleTextWeight,
|
|
1137
1137
|
textWrap: hintTitleTextWrap
|
|
1138
|
-
}, hintTitle || 'Select a file or drag in form'), /*#__PURE__*/React__default.default.createElement(Text.Text, {
|
|
1138
|
+
}, hintTitle || 'Select a file or drag in form'), hintDescription && /*#__PURE__*/React__default.default.createElement(Text.Text, {
|
|
1139
1139
|
className: "form-dropzone__hint-text",
|
|
1140
1140
|
size: hintDescriptionTextSize,
|
|
1141
1141
|
textColor: hintDescriptionTextColor,
|
|
@@ -1252,8 +1252,8 @@ const FileInput = /*#__PURE__*/React__default.default.memo(function FileInput(pr
|
|
|
1252
1252
|
borderColorHover,
|
|
1253
1253
|
borderType,
|
|
1254
1254
|
borderWidth,
|
|
1255
|
-
errorMessageTextColor
|
|
1256
|
-
errorMessageTextSize
|
|
1255
|
+
errorMessageTextColor,
|
|
1256
|
+
errorMessageTextSize,
|
|
1257
1257
|
errorMessageTextWeight,
|
|
1258
1258
|
hintDescriptionTextColor,
|
|
1259
1259
|
hintDescriptionTextSize,
|
|
@@ -1263,11 +1263,10 @@ const FileInput = /*#__PURE__*/React__default.default.memo(function FileInput(pr
|
|
|
1263
1263
|
hintTitleTextSize,
|
|
1264
1264
|
hintTitleTextWeight,
|
|
1265
1265
|
hintTitleTextWrap,
|
|
1266
|
+
removeThumbAppearance,
|
|
1266
1267
|
removeThumbText,
|
|
1267
|
-
removeThumbTextColor,
|
|
1268
|
-
removeThumbTextHoverColor,
|
|
1269
|
-
removeThumbTextSize,
|
|
1270
1268
|
removeThumbTextWeight,
|
|
1269
|
+
removeThumbShape,
|
|
1271
1270
|
shape,
|
|
1272
1271
|
thumbBorderColor,
|
|
1273
1272
|
thumbBorderColorHover,
|
|
@@ -1358,11 +1357,10 @@ const FileInput = /*#__PURE__*/React__default.default.memo(function FileInput(pr
|
|
|
1358
1357
|
inputName: input.name,
|
|
1359
1358
|
inputValue: input.value,
|
|
1360
1359
|
metaTouched: meta.touched,
|
|
1360
|
+
removeThumbAppearance: removeThumbAppearance,
|
|
1361
1361
|
removeThumbText: removeThumbText,
|
|
1362
|
-
removeThumbTextColor: removeThumbTextColor,
|
|
1363
|
-
removeThumbTextHoverColor: removeThumbTextHoverColor,
|
|
1364
|
-
removeThumbTextSize: removeThumbTextSize,
|
|
1365
1362
|
removeThumbTextWeight: removeThumbTextWeight,
|
|
1363
|
+
removeThumbShape: removeThumbShape,
|
|
1366
1364
|
shape: shape,
|
|
1367
1365
|
showFilename: showFilename,
|
|
1368
1366
|
thumbBorderColor: thumbBorderColor,
|
package/dist/itcase-forms.esm.js
CHANGED
|
@@ -21,6 +21,8 @@ import { fromEvent } from 'file-selector';
|
|
|
21
21
|
import castArray from 'lodash/castArray';
|
|
22
22
|
import { useDropzone, ErrorCode } from 'react-dropzone';
|
|
23
23
|
import { createFileFromDataURL } from '@itcase/common';
|
|
24
|
+
import { Button } from '@itcase/ui/components/Button';
|
|
25
|
+
import { Group as Group$1 } from '@itcase/ui/components/Group';
|
|
24
26
|
import { Loader } from '@itcase/ui/components/Loader';
|
|
25
27
|
import { Title } from '@itcase/ui/components/Title';
|
|
26
28
|
import { Input } from '@itcase/ui/components/Input';
|
|
@@ -31,8 +33,6 @@ import { Switch } from '@itcase/ui/components/Switch';
|
|
|
31
33
|
import { Textarea } from '@itcase/ui/components/Textarea';
|
|
32
34
|
import { useIMask } from 'react-imask';
|
|
33
35
|
import { Chips } from '@itcase/ui/components/Chips';
|
|
34
|
-
import { Button } from '@itcase/ui/components/Button';
|
|
35
|
-
import { Group as Group$1 } from '@itcase/ui/components/Group';
|
|
36
36
|
import { NotificationItem } from '@itcase/ui/components/Notification';
|
|
37
37
|
import createDecorator from 'final-form-focus';
|
|
38
38
|
|
|
@@ -215,6 +215,9 @@ function FieldWrapperBase(props) {
|
|
|
215
215
|
const {
|
|
216
216
|
styles: formFieldStyles
|
|
217
217
|
} = useStyles(props);
|
|
218
|
+
const errorTextSize = props[`${errorKey}MessageTextSize`];
|
|
219
|
+
const errorTextColor = props[`${errorKey}MessageTextColor`];
|
|
220
|
+
const errorTextWeight = props[`${errorKey}MessageTextWeight`];
|
|
218
221
|
return /*#__PURE__*/React$1.createElement(Tag, {
|
|
219
222
|
className: clsx(formFieldClass, 'form__item', 'form-field', type && `form-field_type_${type}`, sizeClass, fillClass, shapeClass, isDisabled && `form-field_state_disabled`, isHidden && `form-field_state_hidden`, directionClass, widthClass),
|
|
220
223
|
"data-test-id": `${inputName}Field`,
|
|
@@ -253,9 +256,9 @@ function FieldWrapperBase(props) {
|
|
|
253
256
|
}, isErrorState && errorMessage && /*#__PURE__*/React$1.createElement(Text, {
|
|
254
257
|
id: `${inputName}-error`,
|
|
255
258
|
className: "form-field__message-item form-field__message-item_type-error",
|
|
256
|
-
size:
|
|
257
|
-
textColor:
|
|
258
|
-
textWeight:
|
|
259
|
+
size: errorTextSize,
|
|
260
|
+
textColor: errorTextColor,
|
|
261
|
+
textWeight: errorTextWeight,
|
|
259
262
|
dataTestId: `${inputName}FieldMessageError`
|
|
260
263
|
}, errorMessage), Boolean(helpText) && (!isErrorState || !errorMessage) && /*#__PURE__*/React$1.createElement(Text, {
|
|
261
264
|
className: "form-field__message-item form-field__message-item_type_help-text",
|
|
@@ -856,10 +859,8 @@ const defaultDropzoneProps = {
|
|
|
856
859
|
hintTitle: 'Перетащите изображение или выберите файл с компьютера',
|
|
857
860
|
hintTitleTextColor: 'surfaceTextPrimary',
|
|
858
861
|
hintTitleTextSize: 'm',
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
removeThumbTextHoverColor: 'errorTextPrimaryHover',
|
|
862
|
-
removeThumbTextSize: 's',
|
|
862
|
+
removeThumbAppearance: 'dangerPrimary sizeM',
|
|
863
|
+
removeThumbShape: 'rounded',
|
|
863
864
|
shape: 'rounded',
|
|
864
865
|
showFilename: true,
|
|
865
866
|
thumbBorderColor: 'surfaceBorderTertiary',
|
|
@@ -1038,10 +1039,9 @@ const FileInputDropzone = /*#__PURE__*/React$1.memo(function FileInputDropzone(p
|
|
|
1038
1039
|
hintTitleTextSize,
|
|
1039
1040
|
hintTitleTextWeight,
|
|
1040
1041
|
hintTitleTextWrap,
|
|
1042
|
+
removeThumbAppearance,
|
|
1043
|
+
removeThumbShape,
|
|
1041
1044
|
removeThumbText,
|
|
1042
|
-
removeThumbTextColor,
|
|
1043
|
-
removeThumbTextHoverColor,
|
|
1044
|
-
removeThumbTextSize,
|
|
1045
1045
|
removeThumbTextWeight,
|
|
1046
1046
|
shapeClass,
|
|
1047
1047
|
thumbBorderColorClass,
|
|
@@ -1055,11 +1055,11 @@ const FileInputDropzone = /*#__PURE__*/React$1.memo(function FileInputDropzone(p
|
|
|
1055
1055
|
thumbNameTextWrap
|
|
1056
1056
|
} = propsGenerator;
|
|
1057
1057
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("div", getRootProps({
|
|
1058
|
-
className: `form-dropzone__dropzone dropzone ${className}
|
|
1058
|
+
className: `form-dropzone__dropzone dropzone ${className} form-dropzone__dropzone_size_${size} ${shapeClass}`
|
|
1059
1059
|
}), /*#__PURE__*/React$1.createElement("input", Object.assign({}, getInputProps(), {
|
|
1060
1060
|
name: inputName
|
|
1061
1061
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
1062
|
-
className: clsx('form-dropzone__dropzone-wrapper', thumbColumn && `form-dropzone__dropzone-wrapper_column_${thumbColumn}`, fillClass
|
|
1062
|
+
className: clsx('form-dropzone__dropzone-wrapper', thumbColumn && `form-dropzone__dropzone-wrapper_column_${thumbColumn}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, borderColorClass && `border-color_${borderColorClass}`, borderColorHoverClass && `border-color_hover_${borderColorHoverClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderTypeClass)
|
|
1063
1063
|
}, filesList.map((file, index) => /*#__PURE__*/React$1.createElement("aside", {
|
|
1064
1064
|
className: clsx('form-dropzone__thumb', fillClass, thumbDirectionClass, thumbBorderWidthClass, thumbBorderColorClass, thumbBorderColorHoverClass, thumbBorderTypeClass),
|
|
1065
1065
|
key: file.id || `${file.name}_${index}`
|
|
@@ -1094,15 +1094,15 @@ const FileInputDropzone = /*#__PURE__*/React$1.memo(function FileInputDropzone(p
|
|
|
1094
1094
|
itemFill: "surfaceItemAccent",
|
|
1095
1095
|
set: "simple"
|
|
1096
1096
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
1097
|
-
className:
|
|
1098
|
-
|
|
1099
|
-
}, /*#__PURE__*/React$1.createElement(Text, {
|
|
1097
|
+
className: clsx('form-dropzone__thumb-remove')
|
|
1098
|
+
}, /*#__PURE__*/React$1.createElement(Button, {
|
|
1100
1099
|
className: "form-dropzone__thumb-remove-text",
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1100
|
+
appearance: removeThumbAppearance,
|
|
1101
|
+
label: removeThumbText || 'Удалить',
|
|
1102
|
+
labelTextWeight: removeThumbTextWeight,
|
|
1103
|
+
shape: removeThumbShape,
|
|
1104
|
+
onClick: event => removeFile(event, index)
|
|
1105
|
+
})))), !filesList.length ? /*#__PURE__*/React$1.createElement("div", {
|
|
1106
1106
|
className: "form-dropzone__hint"
|
|
1107
1107
|
}, /*#__PURE__*/React$1.createElement(Text, {
|
|
1108
1108
|
className: "form-dropzone__hint-title",
|
|
@@ -1110,7 +1110,7 @@ const FileInputDropzone = /*#__PURE__*/React$1.memo(function FileInputDropzone(p
|
|
|
1110
1110
|
textColor: hintTitleTextColor,
|
|
1111
1111
|
textWeight: hintTitleTextWeight,
|
|
1112
1112
|
textWrap: hintTitleTextWrap
|
|
1113
|
-
}, hintTitle || 'Select a file or drag in form'), /*#__PURE__*/React$1.createElement(Text, {
|
|
1113
|
+
}, hintTitle || 'Select a file or drag in form'), hintDescription && /*#__PURE__*/React$1.createElement(Text, {
|
|
1114
1114
|
className: "form-dropzone__hint-text",
|
|
1115
1115
|
size: hintDescriptionTextSize,
|
|
1116
1116
|
textColor: hintDescriptionTextColor,
|
|
@@ -1124,7 +1124,7 @@ const FileInputDropzone = /*#__PURE__*/React$1.memo(function FileInputDropzone(p
|
|
|
1124
1124
|
textColor: hintTitleTextColor,
|
|
1125
1125
|
textWeight: hintTitleTextWeight,
|
|
1126
1126
|
textWrap: hintTitleTextWrap
|
|
1127
|
-
}, hintTitle || 'Select a file or drag in form'), /*#__PURE__*/React$1.createElement(Text, {
|
|
1127
|
+
}, hintTitle || 'Select a file or drag in form'), hintDescription && /*#__PURE__*/React$1.createElement(Text, {
|
|
1128
1128
|
className: "form-dropzone__hint-text",
|
|
1129
1129
|
size: hintDescriptionTextSize,
|
|
1130
1130
|
textColor: hintDescriptionTextColor,
|
|
@@ -1241,8 +1241,8 @@ const FileInput = /*#__PURE__*/React$1.memo(function FileInput(props) {
|
|
|
1241
1241
|
borderColorHover,
|
|
1242
1242
|
borderType,
|
|
1243
1243
|
borderWidth,
|
|
1244
|
-
errorMessageTextColor
|
|
1245
|
-
errorMessageTextSize
|
|
1244
|
+
errorMessageTextColor,
|
|
1245
|
+
errorMessageTextSize,
|
|
1246
1246
|
errorMessageTextWeight,
|
|
1247
1247
|
hintDescriptionTextColor,
|
|
1248
1248
|
hintDescriptionTextSize,
|
|
@@ -1252,11 +1252,10 @@ const FileInput = /*#__PURE__*/React$1.memo(function FileInput(props) {
|
|
|
1252
1252
|
hintTitleTextSize,
|
|
1253
1253
|
hintTitleTextWeight,
|
|
1254
1254
|
hintTitleTextWrap,
|
|
1255
|
+
removeThumbAppearance,
|
|
1255
1256
|
removeThumbText,
|
|
1256
|
-
removeThumbTextColor,
|
|
1257
|
-
removeThumbTextHoverColor,
|
|
1258
|
-
removeThumbTextSize,
|
|
1259
1257
|
removeThumbTextWeight,
|
|
1258
|
+
removeThumbShape,
|
|
1260
1259
|
shape,
|
|
1261
1260
|
thumbBorderColor,
|
|
1262
1261
|
thumbBorderColorHover,
|
|
@@ -1347,11 +1346,10 @@ const FileInput = /*#__PURE__*/React$1.memo(function FileInput(props) {
|
|
|
1347
1346
|
inputName: input.name,
|
|
1348
1347
|
inputValue: input.value,
|
|
1349
1348
|
metaTouched: meta.touched,
|
|
1349
|
+
removeThumbAppearance: removeThumbAppearance,
|
|
1350
1350
|
removeThumbText: removeThumbText,
|
|
1351
|
-
removeThumbTextColor: removeThumbTextColor,
|
|
1352
|
-
removeThumbTextHoverColor: removeThumbTextHoverColor,
|
|
1353
|
-
removeThumbTextSize: removeThumbTextSize,
|
|
1354
1351
|
removeThumbTextWeight: removeThumbTextWeight,
|
|
1352
|
+
removeThumbShape: removeThumbShape,
|
|
1355
1353
|
shape: shape,
|
|
1356
1354
|
showFilename: showFilename,
|
|
1357
1355
|
thumbBorderColor: thumbBorderColor,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/forms",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.10",
|
|
4
4
|
"description": "Forms fields, inputs, etc.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"registry": "https://registry.npmjs.org/"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@itcase/common": "^1.2.
|
|
35
|
+
"@itcase/common": "^1.2.26",
|
|
36
36
|
"@itcase/config": "^1.0.47",
|
|
37
37
|
"@itcase/icons": "^1.1.1",
|
|
38
|
-
"@itcase/storybook-config": "^1.1.
|
|
38
|
+
"@itcase/storybook-config": "^1.1.12",
|
|
39
39
|
"@itcase/tokens-am": "^1.1.9",
|
|
40
40
|
"@itcase/tokens-baikal": "^1.1.9",
|
|
41
|
-
"@itcase/ui": "^1.8.
|
|
41
|
+
"@itcase/ui": "^1.8.19",
|
|
42
42
|
"axios": "^1.9.0",
|
|
43
43
|
"clsx": "^2.1.1",
|
|
44
44
|
"final-form": "^4.20.10",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"react-select": "^5.10.1"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@itcase/lint": "^1.1.
|
|
60
|
-
"@babel/core": "^7.27.
|
|
61
|
-
"@babel/eslint-parser": "^7.27.
|
|
59
|
+
"@itcase/lint": "^1.1.10",
|
|
60
|
+
"@babel/core": "^7.27.4",
|
|
61
|
+
"@babel/eslint-parser": "^7.27.5",
|
|
62
62
|
"@babel/preset-env": "^7.27.2",
|
|
63
63
|
"@babel/preset-react": "^7.27.1",
|
|
64
64
|
"@commitlint/cli": "^19.8.1",
|
|
@@ -76,15 +76,15 @@
|
|
|
76
76
|
"babel-plugin-inline-react-svg": "^2.0.2",
|
|
77
77
|
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
|
78
78
|
"conventional-changelog-conventionalcommits": "^9.0.0",
|
|
79
|
-
"eslint": "9.
|
|
79
|
+
"eslint": "9.28.0",
|
|
80
80
|
"husky": "^9.1.7",
|
|
81
81
|
"lint-staged": "^16.1.0",
|
|
82
|
-
"postcss": "^8.5.
|
|
82
|
+
"postcss": "^8.5.4",
|
|
83
83
|
"prettier": "3.5.3",
|
|
84
84
|
"rollup": "^4.41.1",
|
|
85
85
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
86
86
|
"semantic-release": "^24.2.5",
|
|
87
|
-
"stylelint": "^16.
|
|
87
|
+
"stylelint": "^16.20.0",
|
|
88
88
|
"typescript": "^5.8.3",
|
|
89
89
|
"yup": "^1.6.1"
|
|
90
90
|
}
|