@plesk/ui-library 3.29.1 → 3.29.2
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/cjs/components/Drawer/Drawer.js +3 -1
- package/cjs/components/FormFieldText/FormFieldText.js +4 -2
- package/cjs/index.js +1 -1
- package/dist/plesk-ui-library-rtl.css +1 -1
- package/dist/plesk-ui-library-rtl.css.map +1 -1
- package/dist/plesk-ui-library.css +1 -1
- package/dist/plesk-ui-library.css.map +1 -1
- package/dist/plesk-ui-library.js +8 -4
- package/dist/plesk-ui-library.js.map +1 -1
- package/dist/plesk-ui-library.min.js +2 -2
- package/dist/plesk-ui-library.min.js.map +1 -1
- package/esm/components/Drawer/Drawer.js +3 -1
- package/esm/components/FormFieldText/FormFieldText.js +4 -2
- package/esm/index.js +1 -1
- package/package.json +1 -1
- package/styleguide/build/bundle.50b6043f.js +2 -0
- package/styleguide/build/{bundle.73fec982.js.LICENSE.txt → bundle.50b6043f.js.LICENSE.txt} +0 -0
- package/styleguide/index.html +2 -2
- package/types/src/components/Form/Form.d.ts +168 -2
- package/types/src/components/Form/types.d.ts +1 -97
- package/styleguide/build/bundle.73fec982.js +0 -2
|
@@ -76,7 +76,9 @@ const propTypes = {
|
|
|
76
76
|
closingConfirmation: PropTypes.bool,
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
|
-
* Wraps children into [Form](#!/Form) if not empty
|
|
79
|
+
* Wraps children into [Form](#!/Form) if not empty.<br>
|
|
80
|
+
* **Note:** in case of *element* you should take care of providing additional form props from [Drawer](#!/Drawer) through your custom component. See example below for more details
|
|
81
|
+
*
|
|
80
82
|
* @since 0.0.66
|
|
81
83
|
*/
|
|
82
84
|
form: PropTypes.oneOfType([PropTypes.object, PropTypes.element]),
|
|
@@ -116,10 +116,12 @@ FormFieldText.propTypes = {
|
|
|
116
116
|
autoComplete: PropTypes.oneOf(['on', 'off']),
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
|
-
* If 'true', a field will be multiple
|
|
119
|
+
* If 'true', a field will be multiple. You can also limit the number of fields with a value like { max: 5 }.
|
|
120
120
|
* @since 1.12.0
|
|
121
121
|
*/
|
|
122
|
-
multi: PropTypes.bool,
|
|
122
|
+
multi: PropTypes.oneOfType([PropTypes.bool, PropTypes.shape({
|
|
123
|
+
max: PropTypes.number.isRequired
|
|
124
|
+
})]),
|
|
123
125
|
|
|
124
126
|
/**
|
|
125
127
|
* @ignore
|
package/esm/index.js
CHANGED