@itcase/forms 1.0.83 → 1.1.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.
- package/dist/itcase-forms.cjs.js +9 -9
- package/dist/itcase-forms.esm.js +9 -9
- package/package.json +17 -17
package/dist/itcase-forms.cjs.js
CHANGED
|
@@ -2547,22 +2547,22 @@ ChipsField.propTypes = {
|
|
|
2547
2547
|
};
|
|
2548
2548
|
|
|
2549
2549
|
const formTypes = {
|
|
2550
|
-
|
|
2550
|
+
code: 'code',
|
|
2551
|
+
text: 'text',
|
|
2552
|
+
textarea: 'textarea',
|
|
2551
2553
|
custom: 'custom',
|
|
2552
|
-
|
|
2554
|
+
checkbox: 'checkbox',
|
|
2553
2555
|
chips: 'chips',
|
|
2554
|
-
|
|
2556
|
+
choice: 'choice',
|
|
2555
2557
|
datePicker: 'datePicker',
|
|
2556
2558
|
dateRangePicker: 'dateRangePicker',
|
|
2557
2559
|
fileInput: 'fileInput',
|
|
2558
2560
|
group: 'group',
|
|
2561
|
+
maskedInput: 'maskedInput',
|
|
2559
2562
|
radioGroup: 'radioGroup',
|
|
2560
2563
|
segmented: 'segmented',
|
|
2561
2564
|
select: 'select',
|
|
2562
|
-
switch: 'switch'
|
|
2563
|
-
text: 'text',
|
|
2564
|
-
textarea: 'textarea',
|
|
2565
|
-
maskedInput: 'maskedInput'
|
|
2565
|
+
switch: 'switch'
|
|
2566
2566
|
};
|
|
2567
2567
|
function generateField(field, config, props) {
|
|
2568
2568
|
switch (field.type) {
|
|
@@ -2657,8 +2657,8 @@ function generateField(field, config, props) {
|
|
|
2657
2657
|
}, field, props), Object.entries(field.group).map(([key, value]) => {
|
|
2658
2658
|
const groupProps = {
|
|
2659
2659
|
...value,
|
|
2660
|
-
|
|
2661
|
-
|
|
2660
|
+
classNameGroupItem: value.classNameGroupItem || 'form__group-item',
|
|
2661
|
+
showMessage: field.showMessage
|
|
2662
2662
|
};
|
|
2663
2663
|
return generateField(groupProps, {
|
|
2664
2664
|
key: key + '_form_group'
|
package/dist/itcase-forms.esm.js
CHANGED
|
@@ -2535,22 +2535,22 @@ ChipsField.propTypes = {
|
|
|
2535
2535
|
};
|
|
2536
2536
|
|
|
2537
2537
|
const formTypes = {
|
|
2538
|
-
|
|
2538
|
+
code: 'code',
|
|
2539
|
+
text: 'text',
|
|
2540
|
+
textarea: 'textarea',
|
|
2539
2541
|
custom: 'custom',
|
|
2540
|
-
|
|
2542
|
+
checkbox: 'checkbox',
|
|
2541
2543
|
chips: 'chips',
|
|
2542
|
-
|
|
2544
|
+
choice: 'choice',
|
|
2543
2545
|
datePicker: 'datePicker',
|
|
2544
2546
|
dateRangePicker: 'dateRangePicker',
|
|
2545
2547
|
fileInput: 'fileInput',
|
|
2546
2548
|
group: 'group',
|
|
2549
|
+
maskedInput: 'maskedInput',
|
|
2547
2550
|
radioGroup: 'radioGroup',
|
|
2548
2551
|
segmented: 'segmented',
|
|
2549
2552
|
select: 'select',
|
|
2550
|
-
switch: 'switch'
|
|
2551
|
-
text: 'text',
|
|
2552
|
-
textarea: 'textarea',
|
|
2553
|
-
maskedInput: 'maskedInput'
|
|
2553
|
+
switch: 'switch'
|
|
2554
2554
|
};
|
|
2555
2555
|
function generateField(field, config, props) {
|
|
2556
2556
|
switch (field.type) {
|
|
@@ -2645,8 +2645,8 @@ function generateField(field, config, props) {
|
|
|
2645
2645
|
}, field, props), Object.entries(field.group).map(([key, value]) => {
|
|
2646
2646
|
const groupProps = {
|
|
2647
2647
|
...value,
|
|
2648
|
-
|
|
2649
|
-
|
|
2648
|
+
classNameGroupItem: value.classNameGroupItem || 'form__group-item',
|
|
2649
|
+
showMessage: field.showMessage
|
|
2650
2650
|
};
|
|
2651
2651
|
return generateField(groupProps, {
|
|
2652
2652
|
key: key + '_form_group'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/forms",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Forms fields, inputs, etc.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"registry": "https://registry.npmjs.org/"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@itcase/common": "^1.2.
|
|
34
|
-
"@itcase/config": "^1.0.
|
|
35
|
-
"@itcase/ui": "^1.
|
|
36
|
-
"axios": "^1.
|
|
33
|
+
"@itcase/common": "^1.2.23",
|
|
34
|
+
"@itcase/config": "^1.0.43",
|
|
35
|
+
"@itcase/ui": "^1.8.1",
|
|
36
|
+
"axios": "^1.9.0",
|
|
37
37
|
"clsx": "^2.1.1",
|
|
38
38
|
"final-form": "^4.20.10",
|
|
39
39
|
"final-form-focus": "^1.1.2",
|
|
40
|
-
"libphonenumber-js": "^1.12.
|
|
40
|
+
"libphonenumber-js": "^1.12.8",
|
|
41
41
|
"lodash": "^4.17.21",
|
|
42
42
|
"luxon": "^3.6.1",
|
|
43
43
|
"prop-types": "^15.8.1",
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
"react-select": "^5.10.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@itcase/lint": "^1.1.
|
|
55
|
-
"@babel/core": "^7.
|
|
56
|
-
"@babel/eslint-parser": "^7.27.
|
|
57
|
-
"@babel/preset-env": "^7.
|
|
58
|
-
"@babel/preset-react": "^7.
|
|
59
|
-
"@commitlint/cli": "^19.8.
|
|
60
|
-
"@commitlint/config-conventional": "^19.8.
|
|
54
|
+
"@itcase/lint": "^1.1.9",
|
|
55
|
+
"@babel/core": "^7.27.1",
|
|
56
|
+
"@babel/eslint-parser": "^7.27.1",
|
|
57
|
+
"@babel/preset-env": "^7.27.2",
|
|
58
|
+
"@babel/preset-react": "^7.27.1",
|
|
59
|
+
"@commitlint/cli": "^19.8.1",
|
|
60
|
+
"@commitlint/config-conventional": "^19.8.1",
|
|
61
61
|
"@rollup/plugin-babel": "^6.0.4",
|
|
62
62
|
"@rollup/plugin-commonjs": "^28.0.3",
|
|
63
63
|
"@rollup/plugin-json": "^6.1.0",
|
|
@@ -71,15 +71,15 @@
|
|
|
71
71
|
"babel-plugin-inline-react-svg": "^2.0.2",
|
|
72
72
|
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
|
73
73
|
"conventional-changelog-conventionalcommits": "^8.0.0",
|
|
74
|
-
"eslint": "9.
|
|
74
|
+
"eslint": "9.26.0",
|
|
75
75
|
"husky": "^9.1.7",
|
|
76
|
-
"lint-staged": "^
|
|
76
|
+
"lint-staged": "^16.0.0",
|
|
77
77
|
"postcss": "^8.5.3",
|
|
78
78
|
"prettier": "3.5.3",
|
|
79
|
-
"rollup": "^4.
|
|
79
|
+
"rollup": "^4.40.2",
|
|
80
80
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
81
81
|
"semantic-release": "^24.2.3",
|
|
82
|
-
"stylelint": "^16.
|
|
82
|
+
"stylelint": "^16.19.1",
|
|
83
83
|
"typescript": "^5.8.3"
|
|
84
84
|
}
|
|
85
85
|
}
|