@bifrostui/react 2.0.0-beta.0 → 2.0.0-beta.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.
|
@@ -12,5 +12,5 @@ declare const Modal: React.ForwardRefExoticComponent<Omit<ViewProps & {
|
|
|
12
12
|
keepMounted?: boolean;
|
|
13
13
|
} & import("@bifrostui/types").ICommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
14
14
|
ref?: React.Ref<HTMLDivElement>;
|
|
15
|
-
}, keyof import("@bifrostui/types").ICommonProps | "
|
|
15
|
+
}, "open" | keyof import("@bifrostui/types").ICommonProps | "container" | "disablePortal" | "hideBackdrop" | "BackdropProps" | "onClose" | "disableScrollLock" | "keepMounted">, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
16
16
|
export default Modal;
|
package/dist/Tabs/Tabs.js
CHANGED
|
@@ -151,7 +151,7 @@ const Tabs = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
|
|
|
151
151
|
);
|
|
152
152
|
(0, import_react.useEffect)(() => {
|
|
153
153
|
animate();
|
|
154
|
-
}, [value]);
|
|
154
|
+
}, [value, tabs.length, import_react.default.Children.toArray(children).length]);
|
|
155
155
|
(0, import_react.useEffect)(() => {
|
|
156
156
|
const handleResize = (0, import_utils.debounce)(() => {
|
|
157
157
|
animate();
|
|
@@ -12,5 +12,5 @@ declare const Modal: React.ForwardRefExoticComponent<Omit<ViewProps & {
|
|
|
12
12
|
keepMounted?: boolean;
|
|
13
13
|
} & import("@bifrostui/types").ICommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
14
14
|
ref?: React.Ref<HTMLDivElement>;
|
|
15
|
-
}, "open" | keyof import("@bifrostui/types").ICommonProps | "container" | "
|
|
15
|
+
}, "open" | keyof import("@bifrostui/types").ICommonProps | "container" | "onClose" | "disablePortal" | "hideBackdrop" | "BackdropProps" | "disableScrollLock" | "keepMounted">, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
16
16
|
export default Modal;
|
package/es/Tabs/Tabs.js
CHANGED
|
@@ -121,7 +121,7 @@ const Tabs = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
121
121
|
);
|
|
122
122
|
useEffect(() => {
|
|
123
123
|
animate();
|
|
124
|
-
}, [value]);
|
|
124
|
+
}, [value, tabs.length, React.Children.toArray(children).length]);
|
|
125
125
|
useEffect(() => {
|
|
126
126
|
const handleResize = debounce(() => {
|
|
127
127
|
animate();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bifrostui/react",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.2",
|
|
4
4
|
"description": "React components for building mobile application",
|
|
5
5
|
"homepage": "http://bui.taopiaopiao.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"clsx": "^2.1.1",
|
|
34
34
|
"dayjs": "^1.11.7",
|
|
35
35
|
"swiper": "^8.1.5",
|
|
36
|
-
"@bifrostui/icons": "2.0.0-beta.
|
|
37
|
-
"@bifrostui/styles": "2.0.0-beta.
|
|
38
|
-
"@bifrostui/types": "2.0.0-beta.
|
|
39
|
-
"@bifrostui/utils": "2.0.0-beta.
|
|
36
|
+
"@bifrostui/icons": "2.0.0-beta.2",
|
|
37
|
+
"@bifrostui/styles": "2.0.0-beta.2",
|
|
38
|
+
"@bifrostui/types": "2.0.0-beta.2",
|
|
39
|
+
"@bifrostui/utils": "2.0.0-beta.2"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@tarojs/components": "^3.0.0",
|