rsuite 5.59.0 → 5.59.1
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/AvatarGroup/styles/index.css +2 -0
- package/AvatarGroup/styles/index.less +2 -0
- package/CHANGELOG.md +14 -0
- package/CheckPicker/styles/index.css +2 -0
- package/CheckTree/styles/index.css +2 -0
- package/CheckTreePicker/styles/index.css +2 -0
- package/Checkbox/styles/index.css +2 -0
- package/Checkbox/styles/index.less +2 -0
- package/MultiCascadeTree/styles/index.css +2 -0
- package/MultiCascader/styles/index.css +2 -0
- package/Placeholder/styles/index.css +42 -6
- package/Placeholder/styles/index.less +18 -9
- package/Placeholder/styles/mixin.less +7 -0
- package/Sidenav/styles/index.css +3 -0
- package/Sidenav/styles/index.less +4 -0
- package/TagInput/styles/index.css +2 -0
- package/TagPicker/styles/index.css +2 -0
- package/cjs/Avatar/Avatar.js +16 -8
- package/cjs/Avatar/useImage.js +0 -1
- package/cjs/AvatarGroup/AvatarGroup.d.ts +1 -0
- package/cjs/AvatarGroup/AvatarGroup.js +12 -12
- package/cjs/Checkbox/Checkbox.js +1 -1
- package/cjs/Form/Form.js +40 -56
- package/cjs/Form/FormContext.d.ts +1 -1
- package/cjs/Form/{useFormClassNames.d.ts → hooks/useFormClassNames.d.ts} +2 -2
- package/cjs/Form/{useFormClassNames.js → hooks/useFormClassNames.js} +2 -2
- package/cjs/Form/hooks/useFormError.d.ts +6 -0
- package/cjs/Form/hooks/useFormError.js +31 -0
- package/cjs/Form/hooks/useFormValue.d.ts +6 -0
- package/cjs/Form/hooks/useFormValue.js +31 -0
- package/cjs/Form/index.d.ts +1 -1
- package/cjs/Form/index.js +3 -9
- package/cjs/FormControl/FormControl.js +1 -1
- package/cjs/FormControl/useRegisterModel.d.ts +1 -1
- package/cjs/Placeholder/PlaceholderGraph.d.ts +13 -1
- package/cjs/Placeholder/PlaceholderGrid.d.ts +27 -1
- package/cjs/Placeholder/PlaceholderGrid.js +10 -13
- package/cjs/Placeholder/PlaceholderParagraph.d.ts +24 -1
- package/cjs/Placeholder/PlaceholderParagraph.js +13 -9
- package/dist/rsuite-no-reset-rtl.css +49 -6
- package/dist/rsuite-no-reset-rtl.min.css +1 -1
- package/dist/rsuite-no-reset-rtl.min.css.map +1 -1
- package/dist/rsuite-no-reset.css +49 -6
- package/dist/rsuite-no-reset.min.css +1 -1
- package/dist/rsuite-no-reset.min.css.map +1 -1
- package/dist/rsuite-rtl.css +49 -6
- package/dist/rsuite-rtl.min.css +1 -1
- package/dist/rsuite-rtl.min.css.map +1 -1
- package/dist/rsuite.css +49 -6
- package/dist/rsuite.js +98 -34
- package/dist/rsuite.js.map +1 -1
- package/dist/rsuite.min.css +1 -1
- package/dist/rsuite.min.css.map +1 -1
- package/dist/rsuite.min.js +1 -1
- package/dist/rsuite.min.js.map +1 -1
- package/esm/Avatar/Avatar.js +12 -4
- package/esm/Avatar/useImage.js +0 -1
- package/esm/AvatarGroup/AvatarGroup.d.ts +1 -0
- package/esm/AvatarGroup/AvatarGroup.js +12 -12
- package/esm/Checkbox/Checkbox.js +1 -1
- package/esm/Form/Form.js +40 -56
- package/esm/Form/FormContext.d.ts +1 -1
- package/esm/Form/{useFormClassNames.d.ts → hooks/useFormClassNames.d.ts} +2 -2
- package/esm/Form/{useFormClassNames.js → hooks/useFormClassNames.js} +2 -2
- package/esm/Form/hooks/useFormError.d.ts +6 -0
- package/esm/Form/hooks/useFormError.js +26 -0
- package/esm/Form/hooks/useFormValue.d.ts +6 -0
- package/esm/Form/hooks/useFormValue.js +26 -0
- package/esm/Form/index.d.ts +1 -1
- package/esm/Form/index.js +1 -1
- package/esm/FormControl/FormControl.js +1 -1
- package/esm/FormControl/useRegisterModel.d.ts +1 -1
- package/esm/Placeholder/PlaceholderGraph.d.ts +13 -1
- package/esm/Placeholder/PlaceholderGrid.d.ts +27 -1
- package/esm/Placeholder/PlaceholderGrid.js +10 -13
- package/esm/Placeholder/PlaceholderParagraph.d.ts +24 -1
- package/esm/Placeholder/PlaceholderParagraph.js +12 -8
- package/package.json +2 -2
- /package/cjs/Form/{useSchemaModel.d.ts → hooks/useSchemaModel.d.ts} +0 -0
- /package/cjs/Form/{useSchemaModel.js → hooks/useSchemaModel.js} +0 -0
- /package/esm/Form/{useSchemaModel.d.ts → hooks/useSchemaModel.d.ts} +0 -0
- /package/esm/Form/{useSchemaModel.js → hooks/useSchemaModel.js} +0 -0
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
+
import _taggedTemplateLiteralLoose from "@babel/runtime/helpers/esm/taggedTemplateLiteralLoose";
|
|
3
4
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
+
var _templateObject;
|
|
4
6
|
import React, { useMemo } from 'react';
|
|
5
7
|
import PropTypes from 'prop-types';
|
|
6
8
|
import { useClassNames } from '../utils';
|
|
@@ -19,11 +21,13 @@ var PlaceholderParagraph = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
19
21
|
rowHeight = _props$rowHeight === void 0 ? 10 : _props$rowHeight,
|
|
20
22
|
_props$rowMargin = props.rowMargin,
|
|
21
23
|
rowMargin = _props$rowMargin === void 0 ? 20 : _props$rowMargin,
|
|
24
|
+
_props$rowSpacing = props.rowSpacing,
|
|
25
|
+
rowSpacing = _props$rowSpacing === void 0 ? rowMargin : _props$rowSpacing,
|
|
22
26
|
graph = props.graph,
|
|
23
27
|
active = props.active,
|
|
24
28
|
_props$classPrefix = props.classPrefix,
|
|
25
29
|
classPrefix = _props$classPrefix === void 0 ? 'placeholder' : _props$classPrefix,
|
|
26
|
-
rest = _objectWithoutPropertiesLoose(props, ["as", "className", "rows", "rowHeight", "rowMargin", "graph", "active", "classPrefix"]);
|
|
30
|
+
rest = _objectWithoutPropertiesLoose(props, ["as", "className", "rows", "rowHeight", "rowMargin", "rowSpacing", "graph", "active", "classPrefix"]);
|
|
27
31
|
var _useClassNames = useClassNames(classPrefix),
|
|
28
32
|
merge = _useClassNames.merge,
|
|
29
33
|
prefix = _useClassNames.prefix,
|
|
@@ -33,17 +37,17 @@ var PlaceholderParagraph = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
33
37
|
var rowArr = [];
|
|
34
38
|
for (var i = 0; i < rows; i++) {
|
|
35
39
|
var styles = {
|
|
36
|
-
width: Math.random() * 75 + 25 + "%",
|
|
37
40
|
height: rowHeight,
|
|
38
|
-
marginTop: i > 0 ?
|
|
41
|
+
marginTop: i > 0 ? rowSpacing : Number(rowSpacing) / 2
|
|
39
42
|
};
|
|
40
|
-
rowArr.push( /*#__PURE__*/React.createElement("
|
|
43
|
+
rowArr.push( /*#__PURE__*/React.createElement("div", {
|
|
41
44
|
key: i,
|
|
42
|
-
style: styles
|
|
45
|
+
style: styles,
|
|
46
|
+
className: prefix(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["row"])))
|
|
43
47
|
}));
|
|
44
48
|
}
|
|
45
49
|
return rowArr;
|
|
46
|
-
}, [rowHeight,
|
|
50
|
+
}, [prefix, rowHeight, rowSpacing, rows]);
|
|
47
51
|
var classes = merge(className, withClassPrefix('paragraph', {
|
|
48
52
|
active: active
|
|
49
53
|
}));
|
|
@@ -56,7 +60,7 @@ var PlaceholderParagraph = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
56
60
|
}, /*#__PURE__*/React.createElement("span", {
|
|
57
61
|
className: prefix('paragraph-graph-inner')
|
|
58
62
|
})), /*#__PURE__*/React.createElement("div", {
|
|
59
|
-
className: prefix('paragraph-
|
|
63
|
+
className: prefix('paragraph-group')
|
|
60
64
|
}, rowElements));
|
|
61
65
|
});
|
|
62
66
|
PlaceholderParagraph.displayName = 'PlaceholderParagraph';
|
|
@@ -65,7 +69,7 @@ PlaceholderParagraph.propTypes = {
|
|
|
65
69
|
classPrefix: PropTypes.string,
|
|
66
70
|
rows: PropTypes.number,
|
|
67
71
|
rowHeight: PropTypes.number,
|
|
68
|
-
|
|
72
|
+
rowSpacing: PropTypes.number,
|
|
69
73
|
graph: PropTypes.oneOfType([PropTypes.bool, oneOf(['circle', 'square', 'image'])]),
|
|
70
74
|
active: PropTypes.bool
|
|
71
75
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rsuite",
|
|
3
|
-
"version": "5.59.
|
|
3
|
+
"version": "5.59.1",
|
|
4
4
|
"description": "A suite of react components",
|
|
5
5
|
"main": "cjs/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"react-use-set": "^1.0.0",
|
|
40
40
|
"react-window": "^1.8.8",
|
|
41
41
|
"rsuite-table": "^5.18.2",
|
|
42
|
-
"schema-typed": "^2.1
|
|
42
|
+
"schema-typed": "^2.2.1"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": ">=16.8.0",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|