@tidbcloud/uikit 2.0.0-beta.65 → 2.0.0-beta.66
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/CHANGELOG.md
CHANGED
|
@@ -8,7 +8,7 @@ function MediaQuery(props) {
|
|
|
8
8
|
const { children, smallerThan, largerThan, query, styles: styles$1, className } = useProps.useProps("MediaQuery", {}, props);
|
|
9
9
|
const { classes, cx } = styles.default({ smallerThan, largerThan, query, styles: styles$1 });
|
|
10
10
|
if (children === void 0) {
|
|
11
|
-
return
|
|
11
|
+
return null;
|
|
12
12
|
}
|
|
13
13
|
const child = React.Children.only(children);
|
|
14
14
|
if (typeof child === "object" && child !== null && "props" in child) {
|
|
@@ -15,4 +15,4 @@ export interface MediaQueryProps {
|
|
|
15
15
|
/** Styles applied to child when breakpoint matches */
|
|
16
16
|
styles: CSSObject | ((theme: MantineTheme) => CSSObject);
|
|
17
17
|
}
|
|
18
|
-
export declare function MediaQuery(props: MediaQueryProps):
|
|
18
|
+
export declare function MediaQuery(props: MediaQueryProps): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -15,4 +15,4 @@ export interface MediaQueryProps {
|
|
|
15
15
|
/** Styles applied to child when breakpoint matches */
|
|
16
16
|
styles: CSSObject | ((theme: MantineTheme) => CSSObject);
|
|
17
17
|
}
|
|
18
|
-
export declare function MediaQuery(props: MediaQueryProps):
|
|
18
|
+
export declare function MediaQuery(props: MediaQueryProps): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -6,7 +6,7 @@ function MediaQuery(props) {
|
|
|
6
6
|
const { children, smallerThan, largerThan, query, styles, className } = useProps("MediaQuery", {}, props);
|
|
7
7
|
const { classes, cx } = useStyles({ smallerThan, largerThan, query, styles });
|
|
8
8
|
if (children === void 0) {
|
|
9
|
-
return
|
|
9
|
+
return null;
|
|
10
10
|
}
|
|
11
11
|
const child = Children.only(children);
|
|
12
12
|
if (typeof child === "object" && child !== null && "props" in child) {
|