@mezzanine-ui/react 1.0.1 → 1.0.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.
package/Badge/Badge.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { BadgeCountVariant } from '@mezzanine-ui/core/badge';
1
+ import { BadgeProps } from './typings';
2
2
  /**
3
3
  * 徽章元件,用於顯示數字計數、狀態圓點或文字標籤。
4
4
  *
@@ -27,33 +27,5 @@ import { BadgeCountVariant } from '@mezzanine-ui/core/badge';
27
27
  *
28
28
  * @see {@link BadgeContainer} 搭配容器元件使用絕對定位覆疊效果
29
29
  */
30
- declare const Badge: import("react").ForwardRefExoticComponent<(Omit<Omit<NativeElementPropsWithoutKeyAndRef<"span">, "children"> & {
31
- children?: never;
32
- count: number;
33
- overflowCount?: number;
34
- size?: never;
35
- text?: never;
36
- variant: BadgeCountVariant;
37
- }, "ref"> | Omit<Omit<NativeElementPropsWithoutKeyAndRef<"span">, "children"> & {
38
- children?: never;
39
- count?: never;
40
- overflowCount?: never;
41
- size?: import("@mezzanine-ui/core/badge").BadgeTextSize;
42
- text?: string;
43
- variant: import("@mezzanine-ui/core/badge").BadgeDotVariant;
44
- }, "ref"> | Omit<Omit<NativeElementPropsWithoutKeyAndRef<"span">, "children"> & {
45
- children?: import("react").ReactNode;
46
- count?: never;
47
- overflowCount?: never;
48
- size?: never;
49
- text?: never;
50
- variant: import("@mezzanine-ui/core/badge").BadgeDotVariant;
51
- }, "ref"> | Omit<Omit<NativeElementPropsWithoutKeyAndRef<"span">, "children"> & {
52
- children?: never;
53
- count?: never;
54
- overflowCount?: never;
55
- size?: import("@mezzanine-ui/core/badge").BadgeTextSize;
56
- text: string;
57
- variant: import("@mezzanine-ui/core/badge").BadgeTextVariant;
58
- }, "ref">) & import("react").RefAttributes<HTMLSpanElement>>;
30
+ declare const Badge: import("react").ForwardRefExoticComponent<BadgeProps & import("react").RefAttributes<HTMLSpanElement>>;
59
31
  export default Badge;
@@ -1,6 +1,6 @@
1
1
  import { BadgeCountVariant, BadgeDotVariant, BadgeTextSize, BadgeTextVariant } from '@mezzanine-ui/core/badge';
2
2
  import { ReactNode } from 'react';
3
- import { NativeElementPropsWithoutKeyAndRef } from 'react/src/utils/jsx-types';
3
+ import { NativeElementPropsWithoutKeyAndRef } from '../utils/jsx-types';
4
4
  export type BadgeProps = Omit<NativeElementPropsWithoutKeyAndRef<'span'>, 'children'> & BadgeVariantProps;
5
5
  type BadgeVariantProps = BadgeCountProps | BadgeDotWithTextProps | BadgeDotProps | BadgeTextProps;
6
6
  type BadgeCountProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mezzanine-ui/react",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "React components for mezzanine-ui",
5
5
  "author": "Mezzanine",
6
6
  "repository": {
@@ -32,9 +32,9 @@
32
32
  "@floating-ui/dom": "^1.7.4",
33
33
  "@floating-ui/react-dom": "^2.1.6",
34
34
  "@hello-pangea/dnd": "^18.0.1",
35
- "@mezzanine-ui/core": "1.0.0",
36
- "@mezzanine-ui/icons": "1.0.0",
37
- "@mezzanine-ui/system": "1.0.0",
35
+ "@mezzanine-ui/core": "1.0.2",
36
+ "@mezzanine-ui/icons": "1.0.2",
37
+ "@mezzanine-ui/system": "1.0.2",
38
38
  "@tanstack/react-virtual": "^3.13.13",
39
39
  "@types/react-transition-group": "^4.4.12",
40
40
  "clsx": "^2.1.1",