@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
@@ -1,5 +1,11 @@
1
1
  # @tidbcloud/uikit
2
2
 
3
+ ## 2.0.0-beta.66
4
+
5
+ ### Patch Changes
6
+
7
+ - fix MediaQuery type error
8
+
3
9
  ## 2.0.0-beta.65
4
10
 
5
11
  ### Patch Changes
@@ -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 void 0;
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): string | number | boolean | Iterable<React.ReactNode> | React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined;
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): string | number | boolean | Iterable<React.ReactNode> | React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined;
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 void 0;
9
+ return null;
10
10
  }
11
11
  const child = Children.only(children);
12
12
  if (typeof child === "object" && child !== null && "props" in child) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tidbcloud/uikit",
3
- "version": "2.0.0-beta.65",
3
+ "version": "2.0.0-beta.66",
4
4
  "description": "tidbcloud uikit",
5
5
  "type": "module",
6
6
  "main": "dist/primitive/index.cjs",