@itcase/forms 1.0.65 → 1.0.67
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 +7 -3
- package/dist/itcase-forms.esm.js +7 -3
- package/package.json +25 -25
package/dist/itcase-forms.cjs.js
CHANGED
|
@@ -156,6 +156,7 @@ function FieldWrapperBase(props) {
|
|
|
156
156
|
labelTextColor,
|
|
157
157
|
labelTextSize,
|
|
158
158
|
labelTextSizeMobile,
|
|
159
|
+
labelTextSizeTablet,
|
|
159
160
|
labelTextWeight,
|
|
160
161
|
helpText,
|
|
161
162
|
helpTextSize,
|
|
@@ -227,6 +228,7 @@ function FieldWrapperBase(props) {
|
|
|
227
228
|
}, /*#__PURE__*/React__default.default.createElement(Text.Text, {
|
|
228
229
|
size: labelTextSize,
|
|
229
230
|
sizeMobile: labelTextSizeMobile,
|
|
231
|
+
sizeTablet: labelTextSizeTablet,
|
|
230
232
|
textColor: labelTextColor,
|
|
231
233
|
textWeight: labelTextWeight
|
|
232
234
|
}, label, labelHidden && '\u00A0')), desc && /*#__PURE__*/React__default.default.createElement("div", {
|
|
@@ -2811,7 +2813,8 @@ const FinalForm = /*#__PURE__*/React__default.default.forwardRef(function FinalF
|
|
|
2811
2813
|
propsKey: 'elevation'
|
|
2812
2814
|
});
|
|
2813
2815
|
const {
|
|
2814
|
-
styles: formStyles
|
|
2816
|
+
styles: formStyles,
|
|
2817
|
+
wrapper: wrapperStyles
|
|
2815
2818
|
} = useStyles.useStyles(props);
|
|
2816
2819
|
return /*#__PURE__*/React__default.default.createElement(reactFinalForm.Form, {
|
|
2817
2820
|
decorators: [focusOnErrorDecorator],
|
|
@@ -2863,10 +2866,11 @@ const FinalForm = /*#__PURE__*/React__default.default.forwardRef(function FinalF
|
|
|
2863
2866
|
values: true
|
|
2864
2867
|
},
|
|
2865
2868
|
onChange: onChangeFormValues
|
|
2866
|
-
}), Boolean(Object.keys(config).length) && /*#__PURE__*/React__default.default.createElement(React__default.default.Fragment, null, renderFieldsWrapper(
|
|
2869
|
+
}), Boolean(Object.keys(config).length) && /*#__PURE__*/React__default.default.createElement(React__default.default.Fragment, null, renderFieldsWrapper(/*#__PURE__*/React__default.default.createElement(Group$1.Group, {
|
|
2867
2870
|
className: "form__wrapper",
|
|
2868
2871
|
direction: "vertical",
|
|
2869
|
-
gap: fieldsGap || groupGap
|
|
2872
|
+
gap: fieldsGap || groupGap,
|
|
2873
|
+
style: wrapperStyles
|
|
2870
2874
|
}, Object.keys(config).map(key => generateField(config[key], {
|
|
2871
2875
|
key
|
|
2872
2876
|
}, additionalProps[config[key].name])), isLoading && (loader || /*#__PURE__*/React__default.default.createElement(Loader.Loader, {
|
package/dist/itcase-forms.esm.js
CHANGED
|
@@ -142,6 +142,7 @@ function FieldWrapperBase(props) {
|
|
|
142
142
|
labelTextColor,
|
|
143
143
|
labelTextSize,
|
|
144
144
|
labelTextSizeMobile,
|
|
145
|
+
labelTextSizeTablet,
|
|
145
146
|
labelTextWeight,
|
|
146
147
|
helpText,
|
|
147
148
|
helpTextSize,
|
|
@@ -213,6 +214,7 @@ function FieldWrapperBase(props) {
|
|
|
213
214
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
214
215
|
size: labelTextSize,
|
|
215
216
|
sizeMobile: labelTextSizeMobile,
|
|
217
|
+
sizeTablet: labelTextSizeTablet,
|
|
216
218
|
textColor: labelTextColor,
|
|
217
219
|
textWeight: labelTextWeight
|
|
218
220
|
}, label, labelHidden && '\u00A0')), desc && /*#__PURE__*/React.createElement("div", {
|
|
@@ -2797,7 +2799,8 @@ const FinalForm = /*#__PURE__*/React.forwardRef(function FinalForm(props, ref) {
|
|
|
2797
2799
|
propsKey: 'elevation'
|
|
2798
2800
|
});
|
|
2799
2801
|
const {
|
|
2800
|
-
styles: formStyles
|
|
2802
|
+
styles: formStyles,
|
|
2803
|
+
wrapper: wrapperStyles
|
|
2801
2804
|
} = useStyles(props);
|
|
2802
2805
|
return /*#__PURE__*/React.createElement(Form, {
|
|
2803
2806
|
decorators: [focusOnErrorDecorator],
|
|
@@ -2849,10 +2852,11 @@ const FinalForm = /*#__PURE__*/React.forwardRef(function FinalForm(props, ref) {
|
|
|
2849
2852
|
values: true
|
|
2850
2853
|
},
|
|
2851
2854
|
onChange: onChangeFormValues
|
|
2852
|
-
}), Boolean(Object.keys(config).length) && /*#__PURE__*/React.createElement(React.Fragment, null, renderFieldsWrapper(
|
|
2855
|
+
}), Boolean(Object.keys(config).length) && /*#__PURE__*/React.createElement(React.Fragment, null, renderFieldsWrapper(/*#__PURE__*/React.createElement(Group$1, {
|
|
2853
2856
|
className: "form__wrapper",
|
|
2854
2857
|
direction: "vertical",
|
|
2855
|
-
gap: fieldsGap || groupGap
|
|
2858
|
+
gap: fieldsGap || groupGap,
|
|
2859
|
+
style: wrapperStyles
|
|
2856
2860
|
}, Object.keys(config).map(key => generateField(config[key], {
|
|
2857
2861
|
key
|
|
2858
2862
|
}, additionalProps[config[key].name])), isLoading && (loader || /*#__PURE__*/React.createElement(Loader, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/forms",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.67",
|
|
4
4
|
"description": "Forms fields, inputs, etc.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
"registry": "https://registry.npmjs.org/"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@itcase/common": "^1.2.
|
|
34
|
-
"@itcase/ui": "^1.
|
|
35
|
-
"axios": "^1.7.
|
|
33
|
+
"@itcase/common": "^1.2.10",
|
|
34
|
+
"@itcase/ui": "^1.2.10",
|
|
35
|
+
"axios": "^1.7.7",
|
|
36
36
|
"clsx": "^2.1.1",
|
|
37
37
|
"final-form": "^4.20.10",
|
|
38
38
|
"final-form-focus": "^1.1.2",
|
|
39
|
-
"libphonenumber-js": "^1.11.
|
|
39
|
+
"libphonenumber-js": "^1.11.8",
|
|
40
40
|
"lodash": "^4.17.21",
|
|
41
41
|
"luxon": "^3.5.0",
|
|
42
|
-
"postcss": "^8.4.
|
|
42
|
+
"postcss": "^8.4.45",
|
|
43
43
|
"prop-types": "^15.8.1",
|
|
44
44
|
"react": "^18.3.1",
|
|
45
45
|
"react-date-range": "^2.0.1",
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
"react-select": "^5.8.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@itcase/lint": "^1.0.
|
|
54
|
+
"@itcase/lint": "^1.0.13",
|
|
55
55
|
"@babel/core": "^7.25.2",
|
|
56
56
|
"@babel/eslint-parser": "^7.25.1",
|
|
57
|
-
"@babel/preset-env": "^7.25.
|
|
57
|
+
"@babel/preset-env": "^7.25.4",
|
|
58
58
|
"@babel/preset-react": "^7.24.7",
|
|
59
|
-
"@commitlint/cli": "^19.
|
|
60
|
-
"@commitlint/config-conventional": "^19.
|
|
59
|
+
"@commitlint/cli": "^19.5.0",
|
|
60
|
+
"@commitlint/config-conventional": "^19.5.0",
|
|
61
61
|
"@eslint/compat": "^1.1.1",
|
|
62
62
|
"@eslint/eslintrc": "^3.1.0",
|
|
63
63
|
"@ianvs/prettier-plugin-sort-imports": "^4.3.1",
|
|
@@ -74,26 +74,26 @@
|
|
|
74
74
|
"babel-plugin-inline-react-svg": "^2.0.2",
|
|
75
75
|
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
|
76
76
|
"conventional-changelog-conventionalcommits": "^8.0.0",
|
|
77
|
-
"eslint": "9.
|
|
77
|
+
"eslint": "9.10.0",
|
|
78
78
|
"eslint-config-prettier": "9.1.0",
|
|
79
79
|
"eslint-config-standard": "17.1.0",
|
|
80
80
|
"eslint-plugin-babel": "5.3.1",
|
|
81
|
-
"eslint-plugin-import": "2.
|
|
81
|
+
"eslint-plugin-import": "2.30.0",
|
|
82
82
|
"eslint-plugin-n": "17.10.2",
|
|
83
83
|
"eslint-plugin-node": "11.1.0",
|
|
84
84
|
"eslint-plugin-prettier": "5.2.1",
|
|
85
|
-
"eslint-plugin-promise": "7.
|
|
86
|
-
"eslint-plugin-react": "7.
|
|
85
|
+
"eslint-plugin-promise": "7.1.0",
|
|
86
|
+
"eslint-plugin-react": "7.36.1",
|
|
87
87
|
"eslint-plugin-react-hooks": "4.6.2",
|
|
88
88
|
"eslint-plugin-standard": "5.0.0",
|
|
89
|
-
"husky": "^9.1.
|
|
90
|
-
"lint-staged": "^15.2.
|
|
91
|
-
"npm": "^10.8.
|
|
89
|
+
"husky": "^9.1.6",
|
|
90
|
+
"lint-staged": "^15.2.10",
|
|
91
|
+
"npm": "^10.8.3",
|
|
92
92
|
"postcss-aspect-ratio-polyfill": "^2.0.0",
|
|
93
93
|
"postcss-cli": "^11.0.0",
|
|
94
94
|
"postcss-combine-duplicated-selectors": "^10.0.3",
|
|
95
95
|
"postcss-dark-theme-class": "^1.3.0",
|
|
96
|
-
"postcss-discard-duplicates": "^7.0.
|
|
96
|
+
"postcss-discard-duplicates": "^7.0.1",
|
|
97
97
|
"postcss-each": "^1.1.0",
|
|
98
98
|
"postcss-easings": "^4.0.0",
|
|
99
99
|
"postcss-extend-rule": "^4.0.0",
|
|
@@ -101,23 +101,23 @@
|
|
|
101
101
|
"postcss-hexrgba": "^2.1.0",
|
|
102
102
|
"postcss-import": "^16.1.0",
|
|
103
103
|
"postcss-import-ext-glob": "^2.1.1",
|
|
104
|
-
"postcss-mixins": "^
|
|
104
|
+
"postcss-mixins": "^11.0.1",
|
|
105
105
|
"postcss-nested": "^6.2.0",
|
|
106
106
|
"postcss-nested-ancestors": "^3.0.0",
|
|
107
|
-
"postcss-normalize": "^
|
|
107
|
+
"postcss-normalize": "^13.0.0",
|
|
108
108
|
"postcss-prepend-imports": "^1.0.1",
|
|
109
|
-
"postcss-preset-env": "^10.0.
|
|
109
|
+
"postcss-preset-env": "^10.0.3",
|
|
110
110
|
"postcss-pxtorem": "^6.1.0",
|
|
111
111
|
"postcss-responsive-type": "github:ITCase/postcss-responsive-type",
|
|
112
112
|
"postcss-sort-media-queries": "^5.2.0",
|
|
113
113
|
"prettier": "3.3.3",
|
|
114
|
-
"rollup": "^4.
|
|
114
|
+
"rollup": "^4.21.3",
|
|
115
115
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
116
|
-
"semantic-release": "^24.
|
|
117
|
-
"stylelint": "^16.
|
|
116
|
+
"semantic-release": "^24.1.1",
|
|
117
|
+
"stylelint": "^16.9.0",
|
|
118
118
|
"stylelint-config-standard": "^36.0.1",
|
|
119
119
|
"stylelint-no-unsupported-browser-features": "^8.0.1",
|
|
120
120
|
"stylelint-order": "^6.0.4",
|
|
121
|
-
"typescript": "^5.
|
|
121
|
+
"typescript": "^5.6.2"
|
|
122
122
|
}
|
|
123
123
|
}
|