@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
|
@@ -103,7 +103,9 @@ const propTypes = {
|
|
|
103
103
|
closingConfirmation: _propTypes.default.bool,
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
|
-
* Wraps children into [Form](#!/Form) if not empty
|
|
106
|
+
* Wraps children into [Form](#!/Form) if not empty.<br>
|
|
107
|
+
* **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
|
|
108
|
+
*
|
|
107
109
|
* @since 0.0.66
|
|
108
110
|
*/
|
|
109
111
|
form: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.element]),
|
|
@@ -137,10 +137,12 @@ FormFieldText.propTypes = {
|
|
|
137
137
|
autoComplete: _propTypes.default.oneOf(['on', 'off']),
|
|
138
138
|
|
|
139
139
|
/**
|
|
140
|
-
* If 'true', a field will be multiple
|
|
140
|
+
* If 'true', a field will be multiple. You can also limit the number of fields with a value like { max: 5 }.
|
|
141
141
|
* @since 1.12.0
|
|
142
142
|
*/
|
|
143
|
-
multi: _propTypes.default.bool,
|
|
143
|
+
multi: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.shape({
|
|
144
|
+
max: _propTypes.default.number.isRequired
|
|
145
|
+
})]),
|
|
144
146
|
|
|
145
147
|
/**
|
|
146
148
|
* @ignore
|
package/cjs/index.js
CHANGED