@bifrostui/react 1.2.1 → 1.2.3
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.js +1 -1
- package/dist/ActionSheet/ActionSheet.types.js +1 -15
- package/dist/ActionSheet/ActionSheetItem.js +1 -1
- package/dist/ActionSheet/ActionSheetItem.types.js +1 -15
- package/dist/Alert/Alert.js +1 -1
- package/dist/Alert/Alert.types.js +1 -15
- package/dist/Avatar/Avatar.js +1 -1
- package/dist/Avatar/Avatar.types.js +1 -15
- package/dist/Avatar/AvatarGroup.js +1 -1
- package/dist/Avatar/AvatarGroup.types.js +1 -15
- package/dist/Backdrop/Backdrop.js +1 -1
- package/dist/Backdrop/Backdrop.types.js +1 -15
- package/dist/Badge/Badge.js +1 -1
- package/dist/Badge/Badge.types.js +1 -15
- package/dist/Button/Button.js +1 -1
- package/dist/Button/Button.types.js +1 -15
- package/dist/Calendar/Calendar.js +1 -1
- package/dist/Calendar/Calendar.types.js +1 -15
- package/dist/Card/Card.js +1 -1
- package/dist/Card/Card.types.js +1 -15
- package/dist/Card/CardContent.js +1 -1
- package/dist/Card/CardContent.types.js +1 -15
- package/dist/Card/CardFooter.js +1 -1
- package/dist/Card/CardFooter.types.js +1 -15
- package/dist/Card/CardHeader.js +1 -1
- package/dist/Card/CardHeader.types.js +1 -15
- package/dist/Checkbox/Checkbox.types.js +1 -15
- package/dist/CitySelector/CitySelector.js +1 -1
- package/dist/CitySelector/CitySelector.miniapp.js +1 -1
- package/dist/CitySelector/CitySelector.types.js +1 -15
- package/dist/CitySelector/CitySelectorCore.js +1 -1
- package/dist/Countdown/Countdown.types.js +1 -15
- package/dist/Divider/Divider.types.js +1 -15
- package/dist/Drawer/Drawer.js +1 -1
- package/dist/Drawer/Drawer.types.js +1 -15
- package/dist/Fade/Fade.js +1 -1
- package/dist/Fade/Fade.types.js +1 -15
- package/dist/IconButton/IconButton.js +1 -1
- package/dist/IconButton/IconButton.types.js +1 -15
- package/dist/Image/Image.js +1 -1
- package/dist/Image/Image.types.js +1 -15
- package/dist/Input/Input.types.js +1 -15
- package/dist/List/List.js +1 -1
- package/dist/List/List.types.js +1 -15
- package/dist/List/ListItem.js +1 -1
- package/dist/List/ListItem.types.js +1 -15
- package/dist/List/ListItemContent.js +1 -1
- package/dist/List/ListItemContent.types.js +1 -15
- package/dist/List/ListItemExtra.js +1 -1
- package/dist/List/ListItemExtra.types.js +1 -15
- package/dist/List/ListItemFooter.js +1 -1
- package/dist/List/ListItemFooter.types.js +1 -15
- package/dist/List/ListItemHeader.js +1 -1
- package/dist/List/ListItemHeader.types.js +1 -15
- package/dist/Loading/Loading.js +1 -1
- package/dist/Loading/Loading.types.js +1 -15
- package/dist/Modal/Modal.js +1 -1
- package/dist/Modal/Modal.miniapp.d.ts +1 -1
- package/dist/Modal/Modal.miniapp.js +1 -1
- package/dist/Modal/Modal.types.js +1 -15
- package/dist/NavBar/NavBar.js +1 -1
- package/dist/NavBar/NavBar.types.js +1 -15
- package/dist/Picker/Picker.js +1 -1
- package/dist/Picker/Picker.types.js +1 -15
- package/dist/Picker/PickerPanel.js +1 -1
- package/dist/Portal/Portal.js +1 -1
- package/dist/Portal/Portal.types.js +1 -15
- package/dist/Portal/PortalCore.js +1 -1
- package/dist/Progress/Progress.js +1 -1
- package/dist/Progress/Progress.types.js +1 -15
- package/dist/Radio/Radio.types.js +1 -15
- package/dist/Rating/Rating.types.js +1 -15
- package/dist/ScrollView/ScrollView.types.js +1 -15
- package/dist/Select/Select.js +1 -1
- package/dist/Select/Select.types.js +1 -15
- package/dist/Select/SelectOption.js +1 -1
- package/dist/Skeleton/Skeleton.js +1 -1
- package/dist/Skeleton/Skeleton.types.js +1 -15
- package/dist/Slide/Slide.js +1 -1
- package/dist/Slide/Slide.types.js +1 -15
- package/dist/Slider/Slider.js +1 -1
- package/dist/Slider/Slider.types.js +1 -15
- package/dist/Stack/Stack.js +1 -1
- package/dist/Stack/Stack.types.js +1 -15
- package/dist/Steps/Step.types.js +1 -15
- package/dist/Steps/Steps.types.js +1 -15
- package/dist/Swiper/Swiper.types.js +1 -15
- package/dist/Switch/Switch.types.js +1 -15
- package/dist/TabBar/TabBar.js +1 -1
- package/dist/TabBar/TabBarItem.js +1 -1
- package/dist/TabBar/index.types.js +1 -15
- package/dist/Tabs/Tab.js +1 -1
- package/dist/Tabs/Tab.types.js +1 -15
- package/dist/Tabs/TabPanel.types.js +1 -15
- package/dist/Tabs/Tabs.js +14 -2
- package/dist/Tabs/Tabs.types.js +1 -15
- package/dist/Tag/Tag.js +1 -1
- package/dist/Tag/Tag.types.js +1 -15
- package/dist/Tag/TagGroup.js +1 -1
- package/dist/Tag/TagGroup.types.js +1 -15
- package/dist/TextArea/TextArea.js +1 -1
- package/dist/TextArea/TextArea.types.js +1 -15
- package/dist/Transition/Transition.js +1 -1
- package/dist/Transition/Transition.miniapp.js +1 -1
- package/dist/Transition/Transition.types.js +1 -15
- package/es/ActionSheet/ActionSheet.js +1 -1
- package/es/ActionSheet/ActionSheet.types.js +1 -0
- package/es/ActionSheet/ActionSheetItem.js +1 -1
- package/es/ActionSheet/ActionSheetItem.types.js +1 -0
- package/es/Alert/Alert.js +1 -1
- package/es/Alert/Alert.types.js +1 -0
- package/es/Avatar/Avatar.js +1 -1
- package/es/Avatar/Avatar.types.js +1 -0
- package/es/Avatar/AvatarGroup.js +1 -1
- package/es/Avatar/AvatarGroup.types.js +1 -0
- package/es/Backdrop/Backdrop.js +1 -1
- package/es/Backdrop/Backdrop.types.js +1 -0
- package/es/Badge/Badge.js +1 -1
- package/es/Badge/Badge.types.js +1 -0
- package/es/Button/Button.js +1 -1
- package/es/Button/Button.types.js +1 -0
- package/es/Calendar/Calendar.js +1 -1
- package/es/Calendar/Calendar.types.js +1 -0
- package/es/Card/Card.js +1 -1
- package/es/Card/Card.types.js +1 -0
- package/es/Card/CardContent.js +1 -1
- package/es/Card/CardContent.types.js +1 -0
- package/es/Card/CardFooter.js +1 -1
- package/es/Card/CardFooter.types.js +1 -0
- package/es/Card/CardHeader.js +1 -1
- package/es/Card/CardHeader.types.js +1 -0
- package/es/Checkbox/Checkbox.types.js +1 -0
- package/es/CitySelector/CitySelector.js +1 -1
- package/es/CitySelector/CitySelector.miniapp.js +1 -1
- package/es/CitySelector/CitySelector.types.js +1 -0
- package/es/CitySelector/CitySelectorCore.js +1 -1
- package/es/Countdown/Countdown.types.js +1 -0
- package/es/Divider/Divider.types.js +1 -0
- package/es/Drawer/Drawer.js +1 -1
- package/es/Drawer/Drawer.types.js +1 -0
- package/es/Fade/Fade.js +1 -1
- package/es/Fade/Fade.types.js +1 -0
- package/es/IconButton/IconButton.js +1 -1
- package/es/IconButton/IconButton.types.js +1 -0
- package/es/Image/Image.js +1 -1
- package/es/Image/Image.types.js +1 -0
- package/es/Input/Input.types.js +1 -0
- package/es/List/List.js +1 -1
- package/es/List/List.types.js +1 -0
- package/es/List/ListItem.js +1 -1
- package/es/List/ListItem.types.js +1 -0
- package/es/List/ListItemContent.js +1 -1
- package/es/List/ListItemContent.types.js +1 -0
- package/es/List/ListItemExtra.js +1 -1
- package/es/List/ListItemExtra.types.js +1 -0
- package/es/List/ListItemFooter.js +1 -1
- package/es/List/ListItemFooter.types.js +1 -0
- package/es/List/ListItemHeader.js +1 -1
- package/es/List/ListItemHeader.types.js +1 -0
- package/es/Loading/Loading.js +1 -1
- package/es/Loading/Loading.types.js +1 -0
- package/es/Modal/Modal.js +1 -1
- package/es/Modal/Modal.miniapp.js +1 -1
- package/es/Modal/Modal.types.js +1 -0
- package/es/NavBar/NavBar.js +1 -1
- package/es/NavBar/NavBar.types.js +1 -0
- package/es/Picker/Picker.js +1 -1
- package/es/Picker/Picker.types.js +1 -0
- package/es/Picker/PickerPanel.js +1 -1
- package/es/Portal/Portal.js +1 -1
- package/es/Portal/Portal.types.js +1 -0
- package/es/Portal/PortalCore.js +1 -1
- package/es/Progress/Progress.js +1 -1
- package/es/Progress/Progress.types.js +1 -0
- package/es/Radio/Radio.types.js +1 -0
- package/es/Rating/Rating.types.js +1 -0
- package/es/ScrollView/ScrollView.types.js +1 -0
- package/es/Select/Select.js +1 -1
- package/es/Select/Select.types.js +1 -0
- package/es/Select/SelectOption.js +1 -1
- package/es/Skeleton/Skeleton.js +1 -1
- package/es/Skeleton/Skeleton.types.js +1 -0
- package/es/Slide/Slide.js +1 -1
- package/es/Slide/Slide.types.js +1 -0
- package/es/Slider/Slider.js +1 -1
- package/es/Slider/Slider.types.js +1 -0
- package/es/Stack/Stack.js +1 -1
- package/es/Stack/Stack.types.js +1 -0
- package/es/Steps/Step.types.js +1 -0
- package/es/Steps/Steps.types.js +1 -0
- package/es/Swiper/Swiper.types.js +1 -0
- package/es/Switch/Switch.types.js +1 -0
- package/es/TabBar/TabBar.js +1 -1
- package/es/TabBar/TabBarItem.js +1 -1
- package/es/TabBar/index.types.js +1 -0
- package/es/Tabs/Tab.js +1 -1
- package/es/Tabs/Tab.types.js +1 -0
- package/es/Tabs/TabPanel.types.js +1 -0
- package/es/Tabs/Tabs.js +14 -2
- package/es/Tabs/Tabs.types.js +1 -0
- package/es/Tag/Tag.js +1 -1
- package/es/Tag/Tag.types.js +1 -0
- package/es/Tag/TagGroup.js +1 -1
- package/es/Tag/TagGroup.types.js +1 -0
- package/es/TextArea/TextArea.js +1 -1
- package/es/TextArea/TextArea.types.js +1 -0
- package/es/Transition/Transition.js +1 -1
- package/es/Transition/Transition.miniapp.js +1 -1
- package/es/Transition/Transition.types.js +1 -0
- package/package.json +5 -5
package/dist/TabBar/TabBar.js
CHANGED
|
@@ -61,7 +61,7 @@ var import_clsx = __toESM(require("clsx"));
|
|
|
61
61
|
var import_TabBarContext = __toESM(require("./TabBarContext"));
|
|
62
62
|
var import_TabBar = require("./TabBar.css");
|
|
63
63
|
const prefixCls = "bui-tab-bar";
|
|
64
|
-
const TabBar = import_react.default.forwardRef((props, ref) => {
|
|
64
|
+
const TabBar = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
|
|
65
65
|
const _a = props || {}, {
|
|
66
66
|
current,
|
|
67
67
|
activeColor,
|
|
@@ -62,7 +62,7 @@ var import_clsx = __toESM(require("clsx"));
|
|
|
62
62
|
var import_TabBarItem = require("./TabBarItem.css");
|
|
63
63
|
var import_TabBarContext = __toESM(require("./TabBarContext"));
|
|
64
64
|
const prefixCls = "bui-tab-bar-item";
|
|
65
|
-
const TabBarItem = import_react.default.forwardRef(
|
|
65
|
+
const TabBarItem = /* @__PURE__ */ import_react.default.forwardRef(
|
|
66
66
|
(props, ref) => {
|
|
67
67
|
var _b;
|
|
68
68
|
const { currentIndex, activeColor, color, onChange } = (0, import_react.useContext)(import_TabBarContext.default);
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __copyProps = (to, from, except, desc) => {
|
|
6
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
-
for (let key of __getOwnPropNames(from))
|
|
8
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
-
}
|
|
11
|
-
return to;
|
|
12
|
-
};
|
|
13
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
-
var index_types_exports = {};
|
|
15
|
-
module.exports = __toCommonJS(index_types_exports);
|
|
1
|
+
export {};
|
package/dist/Tabs/Tab.js
CHANGED
|
@@ -65,7 +65,7 @@ var import_react = __toESM(require("react"));
|
|
|
65
65
|
var import_TabsContext = __toESM(require("./TabsContext"));
|
|
66
66
|
var import_Tab2 = require("./Tab.css");
|
|
67
67
|
const prefixCls = "bui-tab";
|
|
68
|
-
const Tab = import_react.default.forwardRef((props, ref) => {
|
|
68
|
+
const Tab = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
|
|
69
69
|
const _a = props, { className, children, index, disabled, onClick } = _a, others = __objRest(_a, ["className", "children", "index", "disabled", "onClick"]);
|
|
70
70
|
const tabsContext = import_react.default.useContext(import_TabsContext.default);
|
|
71
71
|
const { value, align, triggerChange } = tabsContext;
|
package/dist/Tabs/Tab.types.js
CHANGED
|
@@ -1,15 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __copyProps = (to, from, except, desc) => {
|
|
6
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
-
for (let key of __getOwnPropNames(from))
|
|
8
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
-
}
|
|
11
|
-
return to;
|
|
12
|
-
};
|
|
13
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
-
var Tab_types_exports = {};
|
|
15
|
-
module.exports = __toCommonJS(Tab_types_exports);
|
|
1
|
+
export {};
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __copyProps = (to, from, except, desc) => {
|
|
6
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
-
for (let key of __getOwnPropNames(from))
|
|
8
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
-
}
|
|
11
|
-
return to;
|
|
12
|
-
};
|
|
13
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
-
var TabPanel_types_exports = {};
|
|
15
|
-
module.exports = __toCommonJS(TabPanel_types_exports);
|
|
1
|
+
export {};
|
package/dist/Tabs/Tabs.js
CHANGED
|
@@ -64,7 +64,7 @@ var import_Tabs = require("./Tabs.css");
|
|
|
64
64
|
var import_TabsContext = require("./TabsContext");
|
|
65
65
|
var import_bound = __toESM(require("./utils/bound"));
|
|
66
66
|
const prefixCls = "bui-tabs";
|
|
67
|
-
const Tabs = import_react.default.forwardRef((props, ref) => {
|
|
67
|
+
const Tabs = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
|
|
68
68
|
const _a = props, { children, className, value, tabs, align, onChange } = _a, others = __objRest(_a, ["children", "className", "value", "tabs", "align", "onChange"]);
|
|
69
69
|
const [active, setActive] = (0, import_react.useState)("");
|
|
70
70
|
const tabsRef = (0, import_react.useRef)(null);
|
|
@@ -147,8 +147,20 @@ const Tabs = import_react.default.forwardRef((props, ref) => {
|
|
|
147
147
|
const safeValue = () => {
|
|
148
148
|
var _a2;
|
|
149
149
|
let defaultIndex = value;
|
|
150
|
+
const childs = import_react.default.Children.toArray(children);
|
|
151
|
+
const hasSameChild = !!childs.length && childs.some(
|
|
152
|
+
(child) => {
|
|
153
|
+
var _a3;
|
|
154
|
+
return import_react.default.isValidElement(child) && child.type === import_Tab.default && ((_a3 = child == null ? void 0 : child.props) == null ? void 0 : _a3.index) === value;
|
|
155
|
+
}
|
|
156
|
+
);
|
|
150
157
|
if (!!tabs.length && !tabs.some((item) => item.index === value)) {
|
|
151
158
|
defaultIndex = (_a2 = tabs[0]) == null ? void 0 : _a2.index;
|
|
159
|
+
} else if (children && !hasSameChild) {
|
|
160
|
+
const childNode = childs[0];
|
|
161
|
+
if (import_react.default.isValidElement(childNode)) {
|
|
162
|
+
defaultIndex = childNode.props.index;
|
|
163
|
+
}
|
|
152
164
|
}
|
|
153
165
|
return defaultIndex;
|
|
154
166
|
};
|
|
@@ -194,7 +206,7 @@ const Tabs = import_react.default.forwardRef((props, ref) => {
|
|
|
194
206
|
const providerValue = (0, import_react.useMemo)(() => {
|
|
195
207
|
const v = safeValue();
|
|
196
208
|
return { value: v, align, triggerChange: handleClick };
|
|
197
|
-
}, [value, align, handleClick]);
|
|
209
|
+
}, [value, align, children, handleClick]);
|
|
198
210
|
return /* @__PURE__ */ import_react.default.createElement("div", __spreadValues({ ref, className: (0, import_clsx.default)(prefixCls, className) }, others), /* @__PURE__ */ import_react.default.createElement(
|
|
199
211
|
"div",
|
|
200
212
|
{
|
package/dist/Tabs/Tabs.types.js
CHANGED
|
@@ -1,15 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __copyProps = (to, from, except, desc) => {
|
|
6
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
-
for (let key of __getOwnPropNames(from))
|
|
8
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
-
}
|
|
11
|
-
return to;
|
|
12
|
-
};
|
|
13
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
-
var Tabs_types_exports = {};
|
|
15
|
-
module.exports = __toCommonJS(Tabs_types_exports);
|
|
1
|
+
export {};
|
package/dist/Tag/Tag.js
CHANGED
|
@@ -73,7 +73,7 @@ const colorHandler = (color, opacity = 1) => {
|
|
|
73
73
|
return (0, import_utils.convertHexToRGBA)(color, opacity);
|
|
74
74
|
};
|
|
75
75
|
const prefixCls = "bui-tag";
|
|
76
|
-
const Tag = import_react.default.forwardRef((props, ref) => {
|
|
76
|
+
const Tag = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
|
|
77
77
|
const _a = props, {
|
|
78
78
|
className,
|
|
79
79
|
style,
|
package/dist/Tag/Tag.types.js
CHANGED
|
@@ -1,15 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __copyProps = (to, from, except, desc) => {
|
|
6
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
-
for (let key of __getOwnPropNames(from))
|
|
8
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
-
}
|
|
11
|
-
return to;
|
|
12
|
-
};
|
|
13
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
-
var Tag_types_exports = {};
|
|
15
|
-
module.exports = __toCommonJS(Tag_types_exports);
|
|
1
|
+
export {};
|
package/dist/Tag/TagGroup.js
CHANGED
|
@@ -60,7 +60,7 @@ var import_clsx = __toESM(require("clsx"));
|
|
|
60
60
|
var import_react = __toESM(require("react"));
|
|
61
61
|
var import_TagGroup2 = require("./TagGroup.css");
|
|
62
62
|
const prefixCls = "bui-tag-group";
|
|
63
|
-
const Tag = import_react.default.forwardRef((props, ref) => {
|
|
63
|
+
const Tag = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
|
|
64
64
|
const _a = props, { className, onClick, children } = _a, others = __objRest(_a, ["className", "onClick", "children"]);
|
|
65
65
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
66
66
|
"div",
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __copyProps = (to, from, except, desc) => {
|
|
6
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
-
for (let key of __getOwnPropNames(from))
|
|
8
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
-
}
|
|
11
|
-
return to;
|
|
12
|
-
};
|
|
13
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
-
var TagGroup_types_exports = {};
|
|
15
|
-
module.exports = __toCommonJS(TagGroup_types_exports);
|
|
1
|
+
export {};
|
|
@@ -65,7 +65,7 @@ var import_react = __toESM(require("react"));
|
|
|
65
65
|
var import_TextArea2 = require("./TextArea.css");
|
|
66
66
|
const prefixCls = "bui-textarea";
|
|
67
67
|
const DEFAULT_ROWS = 2;
|
|
68
|
-
const TextArea = import_react.default.forwardRef(
|
|
68
|
+
const TextArea = /* @__PURE__ */ import_react.default.forwardRef(
|
|
69
69
|
(props, ref) => {
|
|
70
70
|
const _a = props, {
|
|
71
71
|
className,
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __copyProps = (to, from, except, desc) => {
|
|
6
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
-
for (let key of __getOwnPropNames(from))
|
|
8
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
-
}
|
|
11
|
-
return to;
|
|
12
|
-
};
|
|
13
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
-
var TextArea_types_exports = {};
|
|
15
|
-
module.exports = __toCommonJS(TextArea_types_exports);
|
|
1
|
+
export {};
|
|
@@ -50,7 +50,7 @@ __export(Transition_exports, {
|
|
|
50
50
|
module.exports = __toCommonJS(Transition_exports);
|
|
51
51
|
var import_react = __toESM(require("react"));
|
|
52
52
|
var import_TransitionCore = __toESM(require("./TransitionCore"));
|
|
53
|
-
const Transition = import_react.default.forwardRef(
|
|
53
|
+
const Transition = /* @__PURE__ */ import_react.default.forwardRef(
|
|
54
54
|
(props, ref) => {
|
|
55
55
|
return /* @__PURE__ */ import_react.default.createElement(import_TransitionCore.default, __spreadProps(__spreadValues({}, props), { ref, nextTick: setTimeout }));
|
|
56
56
|
}
|
|
@@ -51,7 +51,7 @@ module.exports = __toCommonJS(Transition_miniapp_exports);
|
|
|
51
51
|
var import_taro = __toESM(require("@tarojs/taro"));
|
|
52
52
|
var import_react = __toESM(require("react"));
|
|
53
53
|
var import_TransitionCore = __toESM(require("./TransitionCore"));
|
|
54
|
-
const Transition = import_react.default.forwardRef(
|
|
54
|
+
const Transition = /* @__PURE__ */ import_react.default.forwardRef(
|
|
55
55
|
(props, ref) => {
|
|
56
56
|
return /* @__PURE__ */ import_react.default.createElement(import_TransitionCore.default, __spreadProps(__spreadValues({}, props), { nextTick: import_taro.default.nextTick, ref }));
|
|
57
57
|
}
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __copyProps = (to, from, except, desc) => {
|
|
6
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
-
for (let key of __getOwnPropNames(from))
|
|
8
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
-
}
|
|
11
|
-
return to;
|
|
12
|
-
};
|
|
13
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
-
var Transition_types_exports = {};
|
|
15
|
-
module.exports = __toCommonJS(Transition_types_exports);
|
|
1
|
+
export {};
|
|
@@ -35,7 +35,7 @@ const prefixCls = "bui-action-sheet";
|
|
|
35
35
|
const ActionSheetCancel = ({ children, onClick }) => {
|
|
36
36
|
return /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-item ${prefixCls}-cancel`, onClick }, children);
|
|
37
37
|
};
|
|
38
|
-
const ActionSheet = React.forwardRef(
|
|
38
|
+
const ActionSheet = /* @__PURE__ */ React.forwardRef(
|
|
39
39
|
(props, ref) => {
|
|
40
40
|
const _a = props, {
|
|
41
41
|
open,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -31,7 +31,7 @@ import React, { useContext } from "react";
|
|
|
31
31
|
import ActionSheetContext from "./ActionSheetContext";
|
|
32
32
|
import "./ActionSheetItem.css";
|
|
33
33
|
const prefixCls = "bui-action-sheet-item";
|
|
34
|
-
const ActionSheetItem = React.forwardRef(
|
|
34
|
+
const ActionSheetItem = /* @__PURE__ */ React.forwardRef(
|
|
35
35
|
(props, ref) => {
|
|
36
36
|
const _a = props, {
|
|
37
37
|
className,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/es/Alert/Alert.js
CHANGED
|
@@ -100,7 +100,7 @@ const AlertAction = (props) => {
|
|
|
100
100
|
/* @__PURE__ */ React.createElement(CloseIcon, null)
|
|
101
101
|
);
|
|
102
102
|
};
|
|
103
|
-
const Alert = React.forwardRef((props, ref) => {
|
|
103
|
+
const Alert = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
104
104
|
const _a = props, {
|
|
105
105
|
color,
|
|
106
106
|
className,
|
package/es/Alert/Alert.types.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/es/Avatar/Avatar.js
CHANGED
|
@@ -34,7 +34,7 @@ import React from "react";
|
|
|
34
34
|
import Image from "../Image";
|
|
35
35
|
import "./Avatar.css";
|
|
36
36
|
const prefixCls = "bui-avatar";
|
|
37
|
-
const Avatar = React.forwardRef((props, ref) => {
|
|
37
|
+
const Avatar = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
38
38
|
const _a = props, {
|
|
39
39
|
className,
|
|
40
40
|
onClick,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/es/Avatar/AvatarGroup.js
CHANGED
|
@@ -34,7 +34,7 @@ import React, { cloneElement } from "react";
|
|
|
34
34
|
import Avatar from "./Avatar";
|
|
35
35
|
import "./AvatarGroup.css";
|
|
36
36
|
const prefixCls = "bui-avatar-group";
|
|
37
|
-
const AvatarGroup = React.forwardRef(
|
|
37
|
+
const AvatarGroup = /* @__PURE__ */ React.forwardRef(
|
|
38
38
|
(props, ref) => {
|
|
39
39
|
const _a = props, {
|
|
40
40
|
className,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/es/Backdrop/Backdrop.js
CHANGED
|
@@ -31,7 +31,7 @@ import React from "react";
|
|
|
31
31
|
import Fade from "../Fade";
|
|
32
32
|
import "./Backdrop.css";
|
|
33
33
|
const prefixCls = "bui-backdrop";
|
|
34
|
-
const Backdrop = React.forwardRef(
|
|
34
|
+
const Backdrop = /* @__PURE__ */ React.forwardRef(
|
|
35
35
|
(props, ref) => {
|
|
36
36
|
const _a = props, {
|
|
37
37
|
children,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/es/Badge/Badge.js
CHANGED
|
@@ -30,7 +30,7 @@ import clsx from "clsx";
|
|
|
30
30
|
import React from "react";
|
|
31
31
|
import "./Badge.css";
|
|
32
32
|
const prefixCls = "bui-badge";
|
|
33
|
-
const Badge = React.forwardRef((props, ref) => {
|
|
33
|
+
const Badge = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
34
34
|
const _a = props, {
|
|
35
35
|
className,
|
|
36
36
|
onClick,
|
package/es/Badge/Badge.types.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/es/Button/Button.js
CHANGED
|
@@ -33,7 +33,7 @@ const prefixCls = "bui-btn";
|
|
|
33
33
|
const ButtonIcon = ({ children, iconPosition }) => {
|
|
34
34
|
return /* @__PURE__ */ React.createElement("span", { className: `${prefixCls}-icon-${iconPosition}` }, children);
|
|
35
35
|
};
|
|
36
|
-
const Button = React.forwardRef(
|
|
36
|
+
const Button = /* @__PURE__ */ React.forwardRef(
|
|
37
37
|
(props, ref) => {
|
|
38
38
|
const _a = props, {
|
|
39
39
|
className,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/es/Calendar/Calendar.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/es/Card/Card.js
CHANGED
|
@@ -30,7 +30,7 @@ import clsx from "clsx";
|
|
|
30
30
|
import React from "react";
|
|
31
31
|
import "./Card.css";
|
|
32
32
|
const prefixCls = "bui-card";
|
|
33
|
-
const Card = React.forwardRef((props, ref) => {
|
|
33
|
+
const Card = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
34
34
|
const _a = props, { className, onClick, children } = _a, others = __objRest(_a, ["className", "onClick", "children"]);
|
|
35
35
|
return /* @__PURE__ */ React.createElement(
|
|
36
36
|
"div",
|
package/es/Card/Card.types.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/es/Card/CardContent.js
CHANGED
|
@@ -30,7 +30,7 @@ import clsx from "clsx";
|
|
|
30
30
|
import React from "react";
|
|
31
31
|
import "./CardContent.css";
|
|
32
32
|
const prefixCls = "bui-card-content";
|
|
33
|
-
const CardContent = React.forwardRef(
|
|
33
|
+
const CardContent = /* @__PURE__ */ React.forwardRef(
|
|
34
34
|
(props, ref) => {
|
|
35
35
|
const _a = props, { className, children } = _a, others = __objRest(_a, ["className", "children"]);
|
|
36
36
|
return /* @__PURE__ */ React.createElement("div", __spreadValues({ className: clsx(prefixCls, className), ref }, others), children);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/es/Card/CardFooter.js
CHANGED
|
@@ -30,7 +30,7 @@ import clsx from "clsx";
|
|
|
30
30
|
import React from "react";
|
|
31
31
|
import "./CardFooter.css";
|
|
32
32
|
const prefixCls = "bui-card-footer";
|
|
33
|
-
const CardFooter = React.forwardRef(
|
|
33
|
+
const CardFooter = /* @__PURE__ */ React.forwardRef(
|
|
34
34
|
(props, ref) => {
|
|
35
35
|
const _a = props, { className, children } = _a, others = __objRest(_a, ["className", "children"]);
|
|
36
36
|
return /* @__PURE__ */ React.createElement("div", __spreadValues({ className: clsx(prefixCls, className), ref }, others), children);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/es/Card/CardHeader.js
CHANGED
|
@@ -31,7 +31,7 @@ import clsx from "clsx";
|
|
|
31
31
|
import React from "react";
|
|
32
32
|
import "./CardHeader.css";
|
|
33
33
|
const prefixCls = "bui-card-header";
|
|
34
|
-
const CardHeader = React.forwardRef(
|
|
34
|
+
const CardHeader = /* @__PURE__ */ React.forwardRef(
|
|
35
35
|
(props, ref) => {
|
|
36
36
|
const _a = props, { title, subtitle, className, extra, endIcon, onClick } = _a, others = __objRest(_a, ["title", "subtitle", "className", "extra", "endIcon", "onClick"]);
|
|
37
37
|
const chevron = (() => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import React, { useEffect, useState } from "react";
|
|
21
21
|
import CitySelectorCore from "./CitySelectorCore";
|
|
22
|
-
const CitySelector = React.forwardRef(
|
|
22
|
+
const CitySelector = /* @__PURE__ */ React.forwardRef(
|
|
23
23
|
(props, ref) => {
|
|
24
24
|
const { cities } = props;
|
|
25
25
|
const [height, setHeight] = useState("");
|
|
@@ -21,7 +21,7 @@ import React, { useEffect, useRef, useState } from "react";
|
|
|
21
21
|
import Taro from "@tarojs/taro";
|
|
22
22
|
import CitySelectorCore from "./CitySelectorCore";
|
|
23
23
|
import "./miniapp.css";
|
|
24
|
-
const CitySelector = React.forwardRef(
|
|
24
|
+
const CitySelector = /* @__PURE__ */ React.forwardRef(
|
|
25
25
|
(props, ref) => {
|
|
26
26
|
const { cities } = props;
|
|
27
27
|
const containerTop = useRef(0);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/es/Drawer/Drawer.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/es/Fade/Fade.js
CHANGED
|
@@ -46,7 +46,7 @@ const defaultTimeout = {
|
|
|
46
46
|
enter: duration.enteringScreen,
|
|
47
47
|
exit: duration.leavingScreen
|
|
48
48
|
};
|
|
49
|
-
const Fade = React.forwardRef((props, ref) => {
|
|
49
|
+
const Fade = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
50
50
|
const _a = props, {
|
|
51
51
|
appear,
|
|
52
52
|
children,
|
package/es/Fade/Fade.types.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -31,7 +31,7 @@ import clsx from "clsx";
|
|
|
31
31
|
import React from "react";
|
|
32
32
|
import "./IconButton.css";
|
|
33
33
|
const prefixCls = "bui-icon-btn";
|
|
34
|
-
const IconButton = React.forwardRef(
|
|
34
|
+
const IconButton = /* @__PURE__ */ React.forwardRef(
|
|
35
35
|
(props, ref) => {
|
|
36
36
|
var _b, _c;
|
|
37
37
|
const _a = props, {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/es/Image/Image.js
CHANGED
|
@@ -34,7 +34,7 @@ import clsx from "clsx";
|
|
|
34
34
|
import React, { useLayoutEffect, useState } from "react";
|
|
35
35
|
import "./index.css";
|
|
36
36
|
const prefixCls = "bui-image";
|
|
37
|
-
const Image = React.forwardRef((props, ref) => {
|
|
37
|
+
const Image = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
38
38
|
const [loaded, setLoaded] = useState(false);
|
|
39
39
|
const [failed, setFailed] = useState(false);
|
|
40
40
|
const _a = props, {
|
package/es/Image/Image.types.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/es/Input/Input.types.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/es/List/List.js
CHANGED
|
@@ -31,7 +31,7 @@ import React from "react";
|
|
|
31
31
|
import ListContext from "./ListContext";
|
|
32
32
|
import "./List.css";
|
|
33
33
|
const prefixCls = "bui-list";
|
|
34
|
-
const List = React.forwardRef((props, ref) => {
|
|
34
|
+
const List = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
35
35
|
const _a = props, {
|
|
36
36
|
hideDivider,
|
|
37
37
|
children,
|
package/es/List/List.types.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/es/List/ListItem.js
CHANGED
|
@@ -33,7 +33,7 @@ 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 = React.forwardRef((props, ref) => {
|
|
36
|
+
const ListItem = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
37
37
|
const _a = props, {
|
|
38
38
|
children,
|
|
39
39
|
className,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -30,7 +30,7 @@ import clsx from "clsx";
|
|
|
30
30
|
import React from "react";
|
|
31
31
|
import "./ListItemContent.css";
|
|
32
32
|
const prefixCls = "bui-list-item-content";
|
|
33
|
-
const ListItemContent = React.forwardRef(
|
|
33
|
+
const ListItemContent = /* @__PURE__ */ React.forwardRef(
|
|
34
34
|
(props, ref) => {
|
|
35
35
|
const _a = props, {
|
|
36
36
|
children,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/es/List/ListItemExtra.js
CHANGED
|
@@ -30,7 +30,7 @@ import clsx from "clsx";
|
|
|
30
30
|
import React from "react";
|
|
31
31
|
import "./ListItemExtra.css";
|
|
32
32
|
const prefixCls = "bui-list-item-extra";
|
|
33
|
-
const ListItemExtra = React.forwardRef(
|
|
33
|
+
const ListItemExtra = /* @__PURE__ */ React.forwardRef(
|
|
34
34
|
(props, ref) => {
|
|
35
35
|
const _a = props, { children, className, component: Component } = _a, others = __objRest(_a, ["children", "className", "component"]);
|
|
36
36
|
return /* @__PURE__ */ React.createElement(Component, __spreadValues({ className: clsx(prefixCls, className), ref }, others), children);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -30,7 +30,7 @@ import clsx from "clsx";
|
|
|
30
30
|
import React from "react";
|
|
31
31
|
import "./ListItemFooter.css";
|
|
32
32
|
const prefixCls = "bui-list-item-footer";
|
|
33
|
-
const ListItemFooter = React.forwardRef(
|
|
33
|
+
const ListItemFooter = /* @__PURE__ */ React.forwardRef(
|
|
34
34
|
(props, ref) => {
|
|
35
35
|
const _a = props, { children, className, component: Component } = _a, others = __objRest(_a, ["children", "className", "component"]);
|
|
36
36
|
return /* @__PURE__ */ React.createElement(Component, __spreadValues({ className: clsx(prefixCls, className), ref }, others), children);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -30,7 +30,7 @@ import clsx from "clsx";
|
|
|
30
30
|
import React from "react";
|
|
31
31
|
import "./ListItemHeader.css";
|
|
32
32
|
const prefixCls = "bui-list-item-header";
|
|
33
|
-
const ListItemHeader = React.forwardRef(
|
|
33
|
+
const ListItemHeader = /* @__PURE__ */ React.forwardRef(
|
|
34
34
|
(props, ref) => {
|
|
35
35
|
const _a = props, { children, className, component: Component } = _a, others = __objRest(_a, ["children", "className", "component"]);
|
|
36
36
|
return /* @__PURE__ */ React.createElement(Component, __spreadValues({ className: clsx(prefixCls, className), ref }, others), children);
|