@bifrostui/react 1.5.2 → 1.5.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/DatePicker/DatePicker.d.ts +1 -1
- package/dist/Fade/Fade.miniapp.js +2 -4
- package/dist/Fade/index.css +2 -0
- package/dist/Modal/Modal.miniapp.d.ts +1 -1
- package/dist/Slide/Slide.miniapp.js +2 -4
- package/es/DatePicker/DatePicker.d.ts +1 -1
- package/es/Fade/Fade.miniapp.js +2 -4
- package/es/Fade/index.css +2 -0
- package/es/Modal/Modal.miniapp.d.ts +1 -1
- package/es/Slide/Slide.miniapp.js +2 -4
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DatePickerProps } from './DatePicker.types';
|
|
3
|
-
declare const DatePicker: React.ForwardRefExoticComponent<Omit<DatePickerProps<"div", Omit<import("../Picker").PickerProps<"div", import("..").DrawerProps>, "
|
|
3
|
+
declare const DatePicker: React.ForwardRefExoticComponent<Omit<DatePickerProps<"div", Omit<import("../Picker").PickerProps<"div", import("..").DrawerProps>, "value" | "defaultValue" | "onChange" | "onClose" | "onConfirm">>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
4
|
export default DatePicker;
|
|
@@ -113,10 +113,8 @@ const Fade = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
|
|
|
113
113
|
"onExiting",
|
|
114
114
|
"onExited"
|
|
115
115
|
]);
|
|
116
|
-
const isFirstMount = (0, import_react.useRef)(
|
|
117
|
-
const [isMounted, setIsMounted] = (0, import_react.useState)(
|
|
118
|
-
() => !mountOnEnter || !unmountOnExit
|
|
119
|
-
);
|
|
116
|
+
const isFirstMount = (0, import_react.useRef)(inProp || !mountOnEnter);
|
|
117
|
+
const [isMounted, setIsMounted] = (0, import_react.useState)(inProp || !mountOnEnter);
|
|
120
118
|
const elementRef = (0, import_react.useRef)(null);
|
|
121
119
|
const handleRef = (0, import_utils.useForkRef)(ref, children == null ? void 0 : children.ref, elementRef);
|
|
122
120
|
const shouldAnimateOnFirstMount = inProp && appear;
|
package/dist/Fade/index.css
CHANGED
|
@@ -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;
|
|
@@ -125,10 +125,8 @@ const Slide = /* @__PURE__ */ import_react.default.forwardRef(
|
|
|
125
125
|
"onExited"
|
|
126
126
|
]);
|
|
127
127
|
var _a2;
|
|
128
|
-
const isFirstMount = (0, import_react.useRef)(
|
|
129
|
-
const [isMounted, setIsMounted] = (0, import_react.useState)(
|
|
130
|
-
() => !mountOnEnter || !unmountOnExit
|
|
131
|
-
);
|
|
128
|
+
const isFirstMount = (0, import_react.useRef)(inProp || !mountOnEnter);
|
|
129
|
+
const [isMounted, setIsMounted] = (0, import_react.useState)(inProp || !mountOnEnter);
|
|
132
130
|
const elementRef = (0, import_react.useRef)(null);
|
|
133
131
|
const handleRef = (0, import_utils.useForkRef)(ref, children == null ? void 0 : children.ref, elementRef);
|
|
134
132
|
const shouldAnimateOnFirstMount = inProp && appear;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DatePickerProps } from './DatePicker.types';
|
|
3
|
-
declare const DatePicker: React.ForwardRefExoticComponent<Omit<DatePickerProps<"div", Omit<import("../Picker").PickerProps<"div", import("..").DrawerProps>, "
|
|
3
|
+
declare const DatePicker: React.ForwardRefExoticComponent<Omit<DatePickerProps<"div", Omit<import("../Picker").PickerProps<"div", import("..").DrawerProps>, "defaultValue" | "onChange" | "value" | "onClose" | "onConfirm">>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
4
|
export default DatePicker;
|
package/es/Fade/Fade.miniapp.js
CHANGED
|
@@ -89,10 +89,8 @@ const Fade = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
89
89
|
"onExiting",
|
|
90
90
|
"onExited"
|
|
91
91
|
]);
|
|
92
|
-
const isFirstMount = useRef(
|
|
93
|
-
const [isMounted, setIsMounted] = useState(
|
|
94
|
-
() => !mountOnEnter || !unmountOnExit
|
|
95
|
-
);
|
|
92
|
+
const isFirstMount = useRef(inProp || !mountOnEnter);
|
|
93
|
+
const [isMounted, setIsMounted] = useState(inProp || !mountOnEnter);
|
|
96
94
|
const elementRef = useRef(null);
|
|
97
95
|
const handleRef = useForkRef(ref, children == null ? void 0 : children.ref, elementRef);
|
|
98
96
|
const shouldAnimateOnFirstMount = inProp && appear;
|
package/es/Fade/index.css
CHANGED
|
@@ -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" | "disablePortal" | "hideBackdrop" | "BackdropProps" | "onClose" | "disableScrollLock" | "keepMounted">, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
16
16
|
export default Modal;
|
|
@@ -101,10 +101,8 @@ const Slide = /* @__PURE__ */ React.forwardRef(
|
|
|
101
101
|
"onExited"
|
|
102
102
|
]);
|
|
103
103
|
var _a2;
|
|
104
|
-
const isFirstMount = useRef(
|
|
105
|
-
const [isMounted, setIsMounted] = useState(
|
|
106
|
-
() => !mountOnEnter || !unmountOnExit
|
|
107
|
-
);
|
|
104
|
+
const isFirstMount = useRef(inProp || !mountOnEnter);
|
|
105
|
+
const [isMounted, setIsMounted] = useState(inProp || !mountOnEnter);
|
|
108
106
|
const elementRef = useRef(null);
|
|
109
107
|
const handleRef = useForkRef(ref, children == null ? void 0 : children.ref, elementRef);
|
|
110
108
|
const shouldAnimateOnFirstMount = inProp && appear;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bifrostui/react",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
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": "^1.2.1",
|
|
34
34
|
"dayjs": "^1.11.7",
|
|
35
35
|
"swiper": "^8.1.5",
|
|
36
|
-
"@bifrostui/icons": "1.5.
|
|
37
|
-
"@bifrostui/styles": "1.5.
|
|
38
|
-
"@bifrostui/types": "1.5.
|
|
39
|
-
"@bifrostui/utils": "1.5.
|
|
36
|
+
"@bifrostui/icons": "1.5.3",
|
|
37
|
+
"@bifrostui/styles": "1.5.3",
|
|
38
|
+
"@bifrostui/types": "1.5.3",
|
|
39
|
+
"@bifrostui/utils": "1.5.3"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@tarojs/components": "^3.0.0",
|