@bifrostui/react 1.4.7 → 2.0.0-beta.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/ActionSheet/ActionSheet.css +2 -2
- package/dist/ActionSheet/ActionSheetItem.js +3 -8
- package/dist/Avatar/Avatar.js +3 -8
- package/dist/Avatar/AvatarGroup.js +2 -6
- package/dist/Badge/Badge.js +3 -8
- package/dist/Button/Button.css +77 -78
- package/dist/Button/Button.d.ts +1 -1
- package/dist/Button/Button.js +4 -10
- package/dist/Button/Button.types.d.ts +8 -7
- package/dist/Calendar/Calendar.js +6 -14
- package/dist/Card/Card.css +1 -1
- package/dist/Card/CardContent.css +1 -2
- package/dist/Card/CardFooter.css +2 -4
- package/dist/Card/CardHeader.css +4 -5
- package/dist/Checkbox/Checkbox.js +2 -6
- package/dist/Checkbox/CheckboxGroup.js +4 -7
- package/dist/CollapsePanel/CollapsePanelItem.js +45 -46
- package/dist/Countdown/Countdown.js +5 -12
- package/dist/Divider/Divider.js +8 -5
- package/dist/Drawer/Drawer.js +4 -10
- package/dist/Fade/Fade.js +52 -56
- package/dist/IconButton/IconButton.js +5 -12
- package/dist/Image/Image.js +112 -119
- package/dist/Input/Input.js +4 -10
- package/dist/List/List.js +3 -8
- package/dist/List/ListItem.js +42 -44
- package/dist/List/ListItemContent.js +1 -4
- package/dist/List/ListItemExtra.js +9 -4
- package/dist/List/ListItemFooter.js +9 -4
- package/dist/List/ListItemHeader.js +9 -4
- package/dist/Loading/Loading.js +13 -4
- package/dist/Modal/Modal.js +0 -6
- package/dist/Modal/Modal.miniapp.d.ts +1 -1
- package/dist/Modal/Modal.miniapp.js +4 -10
- package/dist/NavBar/NavBar.js +0 -1
- package/dist/Popover/Popover.css +5 -5
- package/dist/Radio/Radio.css +0 -1
- package/dist/Radio/Radio.js +2 -6
- package/dist/Radio/RadioGroup.js +0 -3
- package/dist/Rating/Rating.js +8 -18
- package/dist/Select/Select.js +4 -8
- package/dist/Skeleton/Skeleton.js +5 -9
- package/dist/Slide/Slide.js +69 -74
- package/dist/Slider/Slider.js +6 -14
- package/dist/Steps/Step.js +81 -82
- package/dist/Steps/Steps.d.ts +1 -1
- package/dist/Steps/Steps.js +57 -60
- package/dist/Switch/Switch.js +75 -78
- package/dist/TabBar/TabBar.js +3 -8
- package/dist/Tabs/Tab.css +10 -16
- package/dist/Tabs/Tab.js +15 -7
- package/dist/Tabs/Tabs.css +13 -22
- package/dist/Tabs/Tabs.js +26 -42
- package/dist/Tabs/Tabs.types.d.ts +0 -10
- package/dist/Tag/Tag.css +1 -1
- package/dist/Tag/Tag.js +2 -6
- package/dist/TextArea/TextArea.js +5 -12
- package/dist/Tooltip/Tooltip.css +5 -5
- package/dist/Transition/TransitionCore.js +3 -8
- package/es/ActionSheet/ActionSheet.css +2 -2
- package/es/ActionSheet/ActionSheetItem.js +3 -8
- package/es/Avatar/Avatar.js +3 -8
- package/es/Avatar/AvatarGroup.js +2 -6
- package/es/Badge/Badge.js +3 -8
- package/es/Button/Button.css +77 -78
- package/es/Button/Button.d.ts +1 -1
- package/es/Button/Button.js +3 -9
- package/es/Button/Button.types.d.ts +8 -7
- package/es/Calendar/Calendar.js +6 -14
- package/es/Card/Card.css +1 -1
- package/es/Card/CardContent.css +1 -2
- package/es/Card/CardFooter.css +2 -4
- package/es/Card/CardHeader.css +4 -5
- package/es/Checkbox/Checkbox.js +2 -6
- package/es/Checkbox/CheckboxGroup.js +4 -7
- package/es/CollapsePanel/CollapsePanelItem.js +45 -46
- package/es/Countdown/Countdown.js +5 -12
- package/es/Divider/Divider.js +8 -5
- package/es/Drawer/Drawer.js +4 -10
- package/es/Fade/Fade.js +52 -56
- package/es/IconButton/IconButton.js +5 -12
- package/es/Image/Image.js +112 -119
- package/es/Input/Input.js +4 -10
- package/es/List/List.js +3 -8
- package/es/List/ListItem.js +42 -44
- package/es/List/ListItemContent.js +1 -4
- package/es/List/ListItemExtra.js +9 -4
- package/es/List/ListItemFooter.js +9 -4
- package/es/List/ListItemHeader.js +9 -4
- package/es/Loading/Loading.js +13 -4
- package/es/Modal/Modal.js +0 -6
- package/es/Modal/Modal.miniapp.js +4 -10
- package/es/NavBar/NavBar.js +0 -1
- package/es/Popover/Popover.css +5 -5
- package/es/Radio/Radio.css +0 -1
- package/es/Radio/Radio.js +2 -6
- package/es/Radio/RadioGroup.js +0 -3
- package/es/Rating/Rating.js +8 -18
- package/es/Select/Select.js +4 -8
- package/es/Skeleton/Skeleton.js +5 -9
- package/es/Slide/Slide.js +69 -74
- package/es/Slider/Slider.js +6 -14
- package/es/Steps/Step.js +81 -82
- package/es/Steps/Steps.d.ts +1 -1
- package/es/Steps/Steps.js +57 -60
- package/es/Switch/Switch.js +75 -78
- package/es/TabBar/TabBar.js +3 -8
- package/es/Tabs/Tab.css +10 -16
- package/es/Tabs/Tab.js +15 -7
- package/es/Tabs/Tabs.css +13 -22
- package/es/Tabs/Tabs.js +28 -55
- package/es/Tabs/Tabs.types.d.ts +0 -10
- package/es/Tag/Tag.css +1 -1
- package/es/Tag/Tag.js +2 -6
- package/es/TextArea/TextArea.js +5 -12
- package/es/Tooltip/Tooltip.css +5 -5
- package/es/Transition/TransitionCore.js +3 -8
- package/package.json +6 -6
package/es/List/ListItem.js
CHANGED
|
@@ -33,52 +33,50 @@ import ListContext from "./ListContext";
|
|
|
33
33
|
import ListItemFooter from "./ListItemFooter";
|
|
34
34
|
import "./ListItem.css";
|
|
35
35
|
const prefixCls = "bui-list-item";
|
|
36
|
-
const ListItem = /* @__PURE__ */ React.forwardRef(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
endIcon,
|
|
44
|
-
component: Component
|
|
45
|
-
} = _a, others = __objRest(_a, [
|
|
46
|
-
"children",
|
|
47
|
-
"className",
|
|
48
|
-
"hideDivider",
|
|
49
|
-
"disabled",
|
|
50
|
-
"onClick",
|
|
51
|
-
"endIcon",
|
|
52
|
-
"component"
|
|
53
|
-
]);
|
|
54
|
-
let chevron;
|
|
55
|
-
if (typeof endIcon === "boolean") {
|
|
56
|
-
chevron = endIcon && /* @__PURE__ */ React.createElement(ArrowForwardIcon, { size: "small" });
|
|
57
|
-
} else if (React.isValidElement(endIcon)) {
|
|
58
|
-
chevron = endIcon;
|
|
59
|
-
} else {
|
|
60
|
-
chevron = onClick && /* @__PURE__ */ React.createElement(ArrowForwardIcon, { size: "small" });
|
|
61
|
-
}
|
|
62
|
-
const context = React.useContext(ListContext);
|
|
63
|
-
return /* @__PURE__ */ React.createElement(
|
|
64
|
-
Component,
|
|
65
|
-
__spreadValues({
|
|
66
|
-
className: clsx(prefixCls, className, {
|
|
67
|
-
[`${prefixCls}-divider`]: !(hideDivider || context.hideDivider),
|
|
68
|
-
[`${prefixCls}-disabled`]: disabled
|
|
69
|
-
}),
|
|
36
|
+
const ListItem = /* @__PURE__ */ React.forwardRef(
|
|
37
|
+
(_a, ref) => {
|
|
38
|
+
var _b = _a, {
|
|
39
|
+
children,
|
|
40
|
+
className,
|
|
41
|
+
hideDivider = false,
|
|
42
|
+
disabled,
|
|
70
43
|
onClick,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
44
|
+
endIcon,
|
|
45
|
+
component: Component = "div"
|
|
46
|
+
} = _b, others = __objRest(_b, [
|
|
47
|
+
"children",
|
|
48
|
+
"className",
|
|
49
|
+
"hideDivider",
|
|
50
|
+
"disabled",
|
|
51
|
+
"onClick",
|
|
52
|
+
"endIcon",
|
|
53
|
+
"component"
|
|
54
|
+
]);
|
|
55
|
+
let chevron;
|
|
56
|
+
if (typeof endIcon === "boolean") {
|
|
57
|
+
chevron = endIcon && /* @__PURE__ */ React.createElement(ArrowForwardIcon, { size: "small" });
|
|
58
|
+
} else if (React.isValidElement(endIcon)) {
|
|
59
|
+
chevron = endIcon;
|
|
60
|
+
} else {
|
|
61
|
+
chevron = onClick && /* @__PURE__ */ React.createElement(ArrowForwardIcon, { size: "small" });
|
|
62
|
+
}
|
|
63
|
+
const context = React.useContext(ListContext);
|
|
64
|
+
return /* @__PURE__ */ React.createElement(
|
|
65
|
+
Component,
|
|
66
|
+
__spreadValues({
|
|
67
|
+
className: clsx(prefixCls, className, {
|
|
68
|
+
[`${prefixCls}-divider`]: !(hideDivider || context.hideDivider),
|
|
69
|
+
[`${prefixCls}-disabled`]: disabled
|
|
70
|
+
}),
|
|
71
|
+
onClick,
|
|
72
|
+
ref
|
|
73
|
+
}, others),
|
|
74
|
+
children,
|
|
75
|
+
chevron && /* @__PURE__ */ React.createElement(ListItemFooter, null, chevron)
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
);
|
|
77
79
|
ListItem.displayName = "BuiListItem";
|
|
78
|
-
ListItem.defaultProps = {
|
|
79
|
-
component: "div",
|
|
80
|
-
hideDivider: false
|
|
81
|
-
};
|
|
82
80
|
var ListItem_default = ListItem;
|
|
83
81
|
export {
|
|
84
82
|
ListItem_default as default
|
|
@@ -35,7 +35,7 @@ const ListItemContent = /* @__PURE__ */ React.forwardRef(
|
|
|
35
35
|
const _a = props, {
|
|
36
36
|
children,
|
|
37
37
|
className,
|
|
38
|
-
component: Component,
|
|
38
|
+
component: Component = "div",
|
|
39
39
|
primary,
|
|
40
40
|
secondary
|
|
41
41
|
} = _a, others = __objRest(_a, [
|
|
@@ -49,9 +49,6 @@ const ListItemContent = /* @__PURE__ */ React.forwardRef(
|
|
|
49
49
|
}
|
|
50
50
|
);
|
|
51
51
|
ListItemContent.displayName = "BuiListItemContent";
|
|
52
|
-
ListItemContent.defaultProps = {
|
|
53
|
-
component: "div"
|
|
54
|
-
};
|
|
55
52
|
var ListItemContent_default = ListItemContent;
|
|
56
53
|
export {
|
|
57
54
|
ListItemContent_default as default
|
package/es/List/ListItemExtra.js
CHANGED
|
@@ -32,14 +32,19 @@ import "./ListItemExtra.css";
|
|
|
32
32
|
const prefixCls = "bui-list-item-extra";
|
|
33
33
|
const ListItemExtra = /* @__PURE__ */ React.forwardRef(
|
|
34
34
|
(props, ref) => {
|
|
35
|
-
const _a = props, {
|
|
35
|
+
const _a = props, {
|
|
36
|
+
children,
|
|
37
|
+
className,
|
|
38
|
+
component: Component = "div"
|
|
39
|
+
} = _a, others = __objRest(_a, [
|
|
40
|
+
"children",
|
|
41
|
+
"className",
|
|
42
|
+
"component"
|
|
43
|
+
]);
|
|
36
44
|
return /* @__PURE__ */ React.createElement(Component, __spreadValues({ className: clsx(prefixCls, className), ref }, others), children);
|
|
37
45
|
}
|
|
38
46
|
);
|
|
39
47
|
ListItemExtra.displayName = "BuiListItemExtra";
|
|
40
|
-
ListItemExtra.defaultProps = {
|
|
41
|
-
component: "div"
|
|
42
|
-
};
|
|
43
48
|
var ListItemExtra_default = ListItemExtra;
|
|
44
49
|
export {
|
|
45
50
|
ListItemExtra_default as default
|
|
@@ -32,14 +32,19 @@ import "./ListItemFooter.css";
|
|
|
32
32
|
const prefixCls = "bui-list-item-footer";
|
|
33
33
|
const ListItemFooter = /* @__PURE__ */ React.forwardRef(
|
|
34
34
|
(props, ref) => {
|
|
35
|
-
const _a = props, {
|
|
35
|
+
const _a = props, {
|
|
36
|
+
children,
|
|
37
|
+
className,
|
|
38
|
+
component: Component = "div"
|
|
39
|
+
} = _a, others = __objRest(_a, [
|
|
40
|
+
"children",
|
|
41
|
+
"className",
|
|
42
|
+
"component"
|
|
43
|
+
]);
|
|
36
44
|
return /* @__PURE__ */ React.createElement(Component, __spreadValues({ className: clsx(prefixCls, className), ref }, others), children);
|
|
37
45
|
}
|
|
38
46
|
);
|
|
39
47
|
ListItemFooter.displayName = "BuiListItemFooter";
|
|
40
|
-
ListItemFooter.defaultProps = {
|
|
41
|
-
component: "div"
|
|
42
|
-
};
|
|
43
48
|
var ListItemFooter_default = ListItemFooter;
|
|
44
49
|
export {
|
|
45
50
|
ListItemFooter_default as default
|
|
@@ -32,14 +32,19 @@ import "./ListItemHeader.css";
|
|
|
32
32
|
const prefixCls = "bui-list-item-header";
|
|
33
33
|
const ListItemHeader = /* @__PURE__ */ React.forwardRef(
|
|
34
34
|
(props, ref) => {
|
|
35
|
-
const _a = props, {
|
|
35
|
+
const _a = props, {
|
|
36
|
+
children,
|
|
37
|
+
className,
|
|
38
|
+
component: Component = "div"
|
|
39
|
+
} = _a, others = __objRest(_a, [
|
|
40
|
+
"children",
|
|
41
|
+
"className",
|
|
42
|
+
"component"
|
|
43
|
+
]);
|
|
36
44
|
return /* @__PURE__ */ React.createElement(Component, __spreadValues({ className: clsx(prefixCls, className), ref }, others), children);
|
|
37
45
|
}
|
|
38
46
|
);
|
|
39
47
|
ListItemHeader.displayName = "BuiListItemHeader";
|
|
40
|
-
ListItemHeader.defaultProps = {
|
|
41
|
-
component: "div"
|
|
42
|
-
};
|
|
43
48
|
var ListItemHeader_default = ListItemHeader;
|
|
44
49
|
export {
|
|
45
50
|
ListItemHeader_default as default
|
package/es/Loading/Loading.js
CHANGED
|
@@ -32,7 +32,19 @@ import { LoadingThreeQuartersOutlinedIcon } from "@bifrostui/icons";
|
|
|
32
32
|
import "./Loading.css";
|
|
33
33
|
const prefixCls = "bui-loading";
|
|
34
34
|
const Loading = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
35
|
-
const _a = props, {
|
|
35
|
+
const _a = props, {
|
|
36
|
+
className,
|
|
37
|
+
icon,
|
|
38
|
+
IconProps,
|
|
39
|
+
children,
|
|
40
|
+
direction = "vertical"
|
|
41
|
+
} = _a, otherProps = __objRest(_a, [
|
|
42
|
+
"className",
|
|
43
|
+
"icon",
|
|
44
|
+
"IconProps",
|
|
45
|
+
"children",
|
|
46
|
+
"direction"
|
|
47
|
+
]);
|
|
36
48
|
const renderIcon = () => {
|
|
37
49
|
return icon != null ? icon : /* @__PURE__ */ React.createElement(
|
|
38
50
|
LoadingThreeQuartersOutlinedIcon,
|
|
@@ -52,9 +64,6 @@ const Loading = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
52
64
|
);
|
|
53
65
|
});
|
|
54
66
|
Loading.displayName = "BuiLoading";
|
|
55
|
-
Loading.defaultProps = {
|
|
56
|
-
direction: "vertical"
|
|
57
|
-
};
|
|
58
67
|
var Loading_default = Loading;
|
|
59
68
|
export {
|
|
60
69
|
Loading_default as default
|
package/es/Modal/Modal.js
CHANGED
|
@@ -106,12 +106,6 @@ const Modal = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
106
106
|
) : null, (open || keepMounted) && children));
|
|
107
107
|
});
|
|
108
108
|
Modal.displayName = "BuiModal";
|
|
109
|
-
Modal.defaultProps = {
|
|
110
|
-
open: false,
|
|
111
|
-
disablePortal: false,
|
|
112
|
-
disableScrollLock: false,
|
|
113
|
-
hideBackdrop: false
|
|
114
|
-
};
|
|
115
109
|
var Modal_default = Modal;
|
|
116
110
|
export {
|
|
117
111
|
Modal_default as default
|
|
@@ -41,13 +41,13 @@ const Modal = /* @__PURE__ */ React.forwardRef(
|
|
|
41
41
|
(props, ref) => {
|
|
42
42
|
const _a = props, {
|
|
43
43
|
className,
|
|
44
|
-
open,
|
|
44
|
+
open = false,
|
|
45
45
|
BackdropProps,
|
|
46
46
|
children,
|
|
47
47
|
container,
|
|
48
|
-
disablePortal,
|
|
49
|
-
disableScrollLock,
|
|
50
|
-
hideBackdrop,
|
|
48
|
+
disablePortal = false,
|
|
49
|
+
disableScrollLock = false,
|
|
50
|
+
hideBackdrop = false,
|
|
51
51
|
onClose,
|
|
52
52
|
keepMounted
|
|
53
53
|
} = _a, others = __objRest(_a, [
|
|
@@ -103,12 +103,6 @@ const Modal = /* @__PURE__ */ React.forwardRef(
|
|
|
103
103
|
}
|
|
104
104
|
);
|
|
105
105
|
Modal.displayName = "BuiModal";
|
|
106
|
-
Modal.defaultProps = {
|
|
107
|
-
open: false,
|
|
108
|
-
disablePortal: false,
|
|
109
|
-
disableScrollLock: false,
|
|
110
|
-
hideBackdrop: false
|
|
111
|
-
};
|
|
112
106
|
var Modal_miniapp_default = Modal;
|
|
113
107
|
export {
|
|
114
108
|
Modal_miniapp_default as default
|
package/es/NavBar/NavBar.js
CHANGED
|
@@ -103,7 +103,6 @@ const NavBar = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
103
103
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, renderNavBar(), renderPlaceholder());
|
|
104
104
|
});
|
|
105
105
|
NavBar.displayName = "BuiNavBar";
|
|
106
|
-
NavBar.defaultProps = {};
|
|
107
106
|
var NavBar_default = NavBar;
|
|
108
107
|
export {
|
|
109
108
|
NavBar_default as default
|
package/es/Popover/Popover.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.bui-popover {
|
|
2
2
|
--arrow-size: var(--bui-popover-arrow-size, 8PX);
|
|
3
|
-
--
|
|
3
|
+
--location-position: var(--bui-popover-location-position, 8PX);
|
|
4
4
|
--max-width: var(--bui-popover-max-width, 350px);
|
|
5
5
|
--content-min-width: var(--bui-popover-content-min-width, 30px);
|
|
6
6
|
--content-padding: var(--bui-popover-content-padding, 6px 8px);
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
position: absolute;
|
|
17
17
|
}
|
|
18
18
|
.bui-popover .bui-popover-arrow.location-left {
|
|
19
|
-
left: var(--
|
|
19
|
+
left: var(--location-position);
|
|
20
20
|
}
|
|
21
21
|
.bui-popover .bui-popover-arrow.location-right {
|
|
22
|
-
right: var(--
|
|
22
|
+
right: var(--location-position);
|
|
23
23
|
}
|
|
24
24
|
.bui-popover .bui-popover-arrow.location-top {
|
|
25
|
-
top: var(--
|
|
25
|
+
top: var(--location-position);
|
|
26
26
|
}
|
|
27
27
|
.bui-popover .bui-popover-arrow.location-bottom {
|
|
28
|
-
bottom: var(--
|
|
28
|
+
bottom: var(--location-position);
|
|
29
29
|
}
|
|
30
30
|
.bui-popover.popover-top .location-center,
|
|
31
31
|
.bui-popover.popover-bottom .location-center {
|
package/es/Radio/Radio.css
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
.bui-radio {
|
|
2
2
|
--label-color: var(--bui-radio-label-color, var(--bui-color-fg-default));
|
|
3
3
|
--label-font-size: var(--bui-radio-label-font-size, var(--bui-text-size-1));
|
|
4
|
-
--icon-font-size: var(--bui-radio-icon-font-size, var(--bui-title-size-2));
|
|
5
4
|
--icon-padding: var(--bui-radio-icon-padding, 5px);
|
|
6
5
|
display: inline-flex;
|
|
7
6
|
align-items: center;
|
package/es/Radio/Radio.js
CHANGED
|
@@ -39,7 +39,7 @@ const prefixCls = "bui-radio";
|
|
|
39
39
|
const Radio = forwardRef((props, ref) => {
|
|
40
40
|
const _a = props, {
|
|
41
41
|
className,
|
|
42
|
-
defaultChecked,
|
|
42
|
+
defaultChecked = false,
|
|
43
43
|
checked,
|
|
44
44
|
inputProps,
|
|
45
45
|
inputRef,
|
|
@@ -48,7 +48,7 @@ const Radio = forwardRef((props, ref) => {
|
|
|
48
48
|
disabled,
|
|
49
49
|
icon,
|
|
50
50
|
checkedIcon,
|
|
51
|
-
labelPlacement,
|
|
51
|
+
labelPlacement = "right",
|
|
52
52
|
onChange,
|
|
53
53
|
children
|
|
54
54
|
} = _a, others = __objRest(_a, [
|
|
@@ -147,10 +147,6 @@ const Radio = forwardRef((props, ref) => {
|
|
|
147
147
|
);
|
|
148
148
|
});
|
|
149
149
|
Radio.displayName = "BuiRadio";
|
|
150
|
-
Radio.defaultProps = {
|
|
151
|
-
defaultChecked: false,
|
|
152
|
-
labelPlacement: "right"
|
|
153
|
-
};
|
|
154
150
|
var Radio_default = Radio;
|
|
155
151
|
export {
|
|
156
152
|
Radio_default as default
|
package/es/Radio/RadioGroup.js
CHANGED
package/es/Rating/Rating.js
CHANGED
|
@@ -39,18 +39,18 @@ const classes = {
|
|
|
39
39
|
const Rating = forwardRef((props, ref) => {
|
|
40
40
|
const _a = props, {
|
|
41
41
|
className,
|
|
42
|
-
size,
|
|
42
|
+
size = "medium",
|
|
43
43
|
defaultValue,
|
|
44
|
-
allowHalf,
|
|
45
|
-
icon,
|
|
46
|
-
checkedIcon,
|
|
47
|
-
count,
|
|
48
|
-
readOnly,
|
|
49
|
-
disabled,
|
|
44
|
+
allowHalf = false,
|
|
45
|
+
icon = /* @__PURE__ */ React.createElement(StarFilledIcon, { htmlColor: "#ced1d6" }),
|
|
46
|
+
checkedIcon = /* @__PURE__ */ React.createElement(StarFilledIcon, { color: "warning" }),
|
|
47
|
+
count = 5,
|
|
48
|
+
readOnly = false,
|
|
49
|
+
disabled = false,
|
|
50
50
|
value,
|
|
51
51
|
onChange,
|
|
52
52
|
name,
|
|
53
|
-
disableClear
|
|
53
|
+
disableClear = false
|
|
54
54
|
} = _a, others = __objRest(_a, [
|
|
55
55
|
"className",
|
|
56
56
|
"size",
|
|
@@ -134,16 +134,6 @@ const Rating = forwardRef((props, ref) => {
|
|
|
134
134
|
);
|
|
135
135
|
});
|
|
136
136
|
Rating.displayName = "BuiRating";
|
|
137
|
-
Rating.defaultProps = {
|
|
138
|
-
size: "medium",
|
|
139
|
-
count: 5,
|
|
140
|
-
icon: /* @__PURE__ */ React.createElement(StarFilledIcon, { htmlColor: "#ced1d6" }),
|
|
141
|
-
checkedIcon: /* @__PURE__ */ React.createElement(StarFilledIcon, { color: "warning" }),
|
|
142
|
-
readOnly: false,
|
|
143
|
-
disabled: false,
|
|
144
|
-
allowHalf: false,
|
|
145
|
-
disableClear: false
|
|
146
|
-
};
|
|
147
137
|
var Rating_default = Rating;
|
|
148
138
|
export {
|
|
149
139
|
Rating_default as default
|
package/es/Select/Select.js
CHANGED
|
@@ -57,12 +57,14 @@ const Select = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
57
57
|
inputProps,
|
|
58
58
|
BackdropProps,
|
|
59
59
|
value,
|
|
60
|
-
defaultValue,
|
|
60
|
+
defaultValue = "",
|
|
61
61
|
disabled,
|
|
62
62
|
placeholder,
|
|
63
63
|
icon,
|
|
64
64
|
open,
|
|
65
|
-
scrollContainer
|
|
65
|
+
scrollContainer = () => {
|
|
66
|
+
return isMini ? null : document.body;
|
|
67
|
+
},
|
|
66
68
|
onChange,
|
|
67
69
|
onClose,
|
|
68
70
|
onOpen,
|
|
@@ -248,12 +250,6 @@ const Select = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
248
250
|
));
|
|
249
251
|
});
|
|
250
252
|
Select.displayName = "BuiSelect";
|
|
251
|
-
Select.defaultProps = {
|
|
252
|
-
defaultValue: "",
|
|
253
|
-
scrollContainer: () => {
|
|
254
|
-
return isMini ? null : document.body;
|
|
255
|
-
}
|
|
256
|
-
};
|
|
257
253
|
var Select_default = Select;
|
|
258
254
|
export {
|
|
259
255
|
Select_default as default
|
package/es/Skeleton/Skeleton.js
CHANGED
|
@@ -31,16 +31,16 @@ import React from "react";
|
|
|
31
31
|
import "./Skeleton.css";
|
|
32
32
|
const prefixCls = "bui-skeleton";
|
|
33
33
|
const Skeleton = /* @__PURE__ */ React.forwardRef(
|
|
34
|
-
(
|
|
35
|
-
|
|
34
|
+
(_a, ref) => {
|
|
35
|
+
var _b = _a, {
|
|
36
36
|
className,
|
|
37
37
|
style,
|
|
38
|
-
animation,
|
|
38
|
+
animation = "wave",
|
|
39
39
|
width,
|
|
40
40
|
height,
|
|
41
|
-
variant,
|
|
41
|
+
variant = "text",
|
|
42
42
|
children
|
|
43
|
-
} =
|
|
43
|
+
} = _b, others = __objRest(_b, [
|
|
44
44
|
"className",
|
|
45
45
|
"style",
|
|
46
46
|
"animation",
|
|
@@ -69,10 +69,6 @@ const Skeleton = /* @__PURE__ */ React.forwardRef(
|
|
|
69
69
|
}
|
|
70
70
|
);
|
|
71
71
|
Skeleton.displayName = "BuiSkeleton";
|
|
72
|
-
Skeleton.defaultProps = {
|
|
73
|
-
animation: "wave",
|
|
74
|
-
variant: "text"
|
|
75
|
-
};
|
|
76
72
|
var Skeleton_default = Skeleton;
|
|
77
73
|
export {
|
|
78
74
|
Skeleton_default as default
|
package/es/Slide/Slide.js
CHANGED
|
@@ -46,82 +46,77 @@ const defaultTimeout = {
|
|
|
46
46
|
enter: duration.enteringScreen,
|
|
47
47
|
exit: duration.leavingScreen
|
|
48
48
|
};
|
|
49
|
-
const Slide = /* @__PURE__ */ React.forwardRef(
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
children,
|
|
54
|
-
style,
|
|
55
|
-
easing: easingProp,
|
|
56
|
-
timeout,
|
|
57
|
-
direction,
|
|
58
|
-
delay
|
|
59
|
-
} = _a, others = __objRest(_a, [
|
|
60
|
-
"appear",
|
|
61
|
-
"in",
|
|
62
|
-
"children",
|
|
63
|
-
"style",
|
|
64
|
-
"easing",
|
|
65
|
-
"timeout",
|
|
66
|
-
"direction",
|
|
67
|
-
"delay"
|
|
68
|
-
]);
|
|
69
|
-
const transitions = createTransitions();
|
|
70
|
-
const nodeRef = useForkRef(ref, children == null ? void 0 : children.ref);
|
|
71
|
-
const getTranslateValue = (_direction) => {
|
|
72
|
-
if (_direction === "left") {
|
|
73
|
-
return "translateX(100%)";
|
|
74
|
-
}
|
|
75
|
-
if (_direction === "right") {
|
|
76
|
-
return "translateX(-100%)";
|
|
77
|
-
}
|
|
78
|
-
if (_direction === "up") {
|
|
79
|
-
return "translateY(100%)";
|
|
80
|
-
}
|
|
81
|
-
return "translateY(-100%)";
|
|
82
|
-
};
|
|
83
|
-
if (!children)
|
|
84
|
-
return null;
|
|
85
|
-
return /* @__PURE__ */ React.createElement(
|
|
86
|
-
Transition,
|
|
87
|
-
__spreadProps(__spreadValues({}, others), {
|
|
88
|
-
appear,
|
|
49
|
+
const Slide = /* @__PURE__ */ React.forwardRef(
|
|
50
|
+
(_a, ref) => {
|
|
51
|
+
var _b = _a, {
|
|
52
|
+
appear = true,
|
|
89
53
|
in: inProp,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
54
|
+
children,
|
|
55
|
+
style,
|
|
56
|
+
easing: easingProp = defaultEasing,
|
|
57
|
+
timeout = defaultTimeout,
|
|
58
|
+
direction = "down",
|
|
59
|
+
delay = 0
|
|
60
|
+
} = _b, others = __objRest(_b, [
|
|
61
|
+
"appear",
|
|
62
|
+
"in",
|
|
63
|
+
"children",
|
|
64
|
+
"style",
|
|
65
|
+
"easing",
|
|
66
|
+
"timeout",
|
|
67
|
+
"direction",
|
|
68
|
+
"delay"
|
|
69
|
+
]);
|
|
70
|
+
const transitions = createTransitions();
|
|
71
|
+
const nodeRef = useForkRef(ref, children == null ? void 0 : children.ref);
|
|
72
|
+
const getTranslateValue = (_direction) => {
|
|
73
|
+
if (_direction === "left") {
|
|
74
|
+
return "translateX(100%)";
|
|
75
|
+
}
|
|
76
|
+
if (_direction === "right") {
|
|
77
|
+
return "translateX(-100%)";
|
|
78
|
+
}
|
|
79
|
+
if (_direction === "up") {
|
|
80
|
+
return "translateY(100%)";
|
|
81
|
+
}
|
|
82
|
+
return "translateY(-100%)";
|
|
83
|
+
};
|
|
84
|
+
if (!children)
|
|
85
|
+
return null;
|
|
86
|
+
return /* @__PURE__ */ React.createElement(
|
|
87
|
+
Transition,
|
|
88
|
+
__spreadProps(__spreadValues({}, others), {
|
|
89
|
+
appear,
|
|
90
|
+
in: inProp,
|
|
91
|
+
timeout,
|
|
92
|
+
delay,
|
|
93
|
+
ref: nodeRef
|
|
94
|
+
}),
|
|
95
|
+
(state, childProps) => {
|
|
96
|
+
const transition = transitions.create(
|
|
97
|
+
"transform",
|
|
98
|
+
getTransitionProps(
|
|
99
|
+
{ timeout, style, easing: easingProp, delay },
|
|
100
|
+
{
|
|
101
|
+
mode: state
|
|
102
|
+
}
|
|
103
|
+
)
|
|
104
|
+
);
|
|
105
|
+
const transform = state === "entering" || state === "entered" ? "none" : getTranslateValue(direction);
|
|
106
|
+
return React.cloneElement(children, __spreadValues({
|
|
107
|
+
style: __spreadValues(__spreadValues({
|
|
108
|
+
visibility: state === "exited" ? "hidden" : "visible",
|
|
109
|
+
transition,
|
|
110
|
+
WebkitTransition: transition,
|
|
111
|
+
transform,
|
|
112
|
+
WebkitTransform: transform
|
|
113
|
+
}, style), children.props.style)
|
|
114
|
+
}, childProps));
|
|
115
|
+
}
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
);
|
|
117
119
|
Slide.displayName = "BuiSlide";
|
|
118
|
-
Slide.defaultProps = {
|
|
119
|
-
appear: true,
|
|
120
|
-
easing: defaultEasing,
|
|
121
|
-
timeout: defaultTimeout,
|
|
122
|
-
direction: "down",
|
|
123
|
-
delay: 0
|
|
124
|
-
};
|
|
125
120
|
var Slide_default = Slide;
|
|
126
121
|
export {
|
|
127
122
|
Slide_default as default
|
package/es/Slider/Slider.js
CHANGED
|
@@ -79,15 +79,15 @@ const Slider = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
79
79
|
className,
|
|
80
80
|
defaultValue,
|
|
81
81
|
value: valueProp,
|
|
82
|
-
min,
|
|
83
|
-
max,
|
|
84
|
-
step,
|
|
85
|
-
tipVisible,
|
|
86
|
-
tooltipRender,
|
|
82
|
+
min = 0,
|
|
83
|
+
max = 100,
|
|
84
|
+
step = 1,
|
|
85
|
+
tipVisible = false,
|
|
86
|
+
tooltipRender = (value2) => value2,
|
|
87
87
|
disabled,
|
|
88
88
|
startIcon,
|
|
89
89
|
endIcon,
|
|
90
|
-
disableSwap,
|
|
90
|
+
disableSwap = false,
|
|
91
91
|
onChange
|
|
92
92
|
} = _a, others = __objRest(_a, [
|
|
93
93
|
"className",
|
|
@@ -296,14 +296,6 @@ const Slider = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
296
296
|
);
|
|
297
297
|
});
|
|
298
298
|
Slider.displayName = "BuiSlider";
|
|
299
|
-
Slider.defaultProps = {
|
|
300
|
-
min: 0,
|
|
301
|
-
max: 100,
|
|
302
|
-
step: 1,
|
|
303
|
-
disableSwap: false,
|
|
304
|
-
tipVisible: false,
|
|
305
|
-
tooltipRender: (value) => value
|
|
306
|
-
};
|
|
307
299
|
var Slider_default = Slider;
|
|
308
300
|
export {
|
|
309
301
|
Slider_default as default
|