@medusajs/ui 2.2.0 → 2.2.1-next-20231110080228
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/cjs/components/avatar/avatar.d.ts +1 -10
- package/dist/cjs/components/badge/badge.d.ts +2 -20
- package/dist/cjs/components/button/button.d.ts +1 -10
- package/dist/cjs/components/currency-input/currency-input.d.ts +1 -10
- package/dist/cjs/components/heading/heading.d.ts +1 -10
- package/dist/cjs/components/hint/hint.d.ts +1 -10
- package/dist/cjs/components/icon-badge/icon-badge.d.ts +1 -10
- package/dist/cjs/components/icon-button/icon-button.d.ts +1 -10
- package/dist/cjs/components/input/input.d.ts +1 -10
- package/dist/cjs/components/label/label.d.ts +1 -10
- package/dist/cjs/components/switch/switch.d.ts +1 -10
- package/dist/cjs/components/text/text.d.ts +1 -10
- package/dist/esm/components/avatar/avatar.d.ts +1 -10
- package/dist/esm/components/badge/badge.d.ts +2 -20
- package/dist/esm/components/button/button.d.ts +1 -10
- package/dist/esm/components/currency-input/currency-input.d.ts +1 -10
- package/dist/esm/components/heading/heading.d.ts +1 -10
- package/dist/esm/components/hint/hint.d.ts +1 -10
- package/dist/esm/components/icon-badge/icon-badge.d.ts +1 -10
- package/dist/esm/components/icon-button/icon-button.d.ts +1 -10
- package/dist/esm/components/input/input.d.ts +1 -10
- package/dist/esm/components/label/label.d.ts +1 -10
- package/dist/esm/components/switch/switch.d.ts +1 -10
- package/dist/esm/components/text/text.d.ts +1 -10
- package/package.json +6 -13
|
@@ -4,16 +4,7 @@ import * as React from "react";
|
|
|
4
4
|
declare const avatarVariants: (props?: ({
|
|
5
5
|
variant?: "squared" | "rounded" | null | undefined;
|
|
6
6
|
size?: "base" | "large" | null | undefined;
|
|
7
|
-
} & (
|
|
8
|
-
class: import("clsx").ClassValue;
|
|
9
|
-
className?: undefined;
|
|
10
|
-
} | {
|
|
11
|
-
class?: undefined;
|
|
12
|
-
className: import("clsx").ClassValue;
|
|
13
|
-
} | {
|
|
14
|
-
class?: undefined;
|
|
15
|
-
className?: undefined;
|
|
16
|
-
})) | undefined) => string;
|
|
7
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
17
8
|
interface AvatarProps extends Omit<React.ComponentPropsWithoutRef<typeof Primitives.Root>, "asChild" | "children" | "size">, VariantProps<typeof avatarVariants> {
|
|
18
9
|
src?: string;
|
|
19
10
|
fallback: string;
|
|
@@ -2,29 +2,11 @@ import { VariantProps } from "class-variance-authority";
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const badgeColorVariants: (props?: ({
|
|
4
4
|
color?: "green" | "red" | "blue" | "orange" | "grey" | "purple" | null | undefined;
|
|
5
|
-
} & (
|
|
6
|
-
class: import("clsx").ClassValue;
|
|
7
|
-
className?: undefined;
|
|
8
|
-
} | {
|
|
9
|
-
class?: undefined;
|
|
10
|
-
className: import("clsx").ClassValue;
|
|
11
|
-
} | {
|
|
12
|
-
class?: undefined;
|
|
13
|
-
className?: undefined;
|
|
14
|
-
})) | undefined) => string;
|
|
5
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
15
6
|
declare const badgeSizeVariants: (props?: ({
|
|
16
7
|
size?: "base" | "large" | "small" | null | undefined;
|
|
17
8
|
rounded?: "base" | "full" | null | undefined;
|
|
18
|
-
} & (
|
|
19
|
-
class: import("clsx").ClassValue;
|
|
20
|
-
className?: undefined;
|
|
21
|
-
} | {
|
|
22
|
-
class?: undefined;
|
|
23
|
-
className: import("clsx").ClassValue;
|
|
24
|
-
} | {
|
|
25
|
-
class?: undefined;
|
|
26
|
-
className?: undefined;
|
|
27
|
-
})) | undefined) => string;
|
|
9
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
28
10
|
interface BadgeProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "color">, VariantProps<typeof badgeSizeVariants>, VariantProps<typeof badgeColorVariants> {
|
|
29
11
|
asChild?: boolean;
|
|
30
12
|
}
|
|
@@ -3,16 +3,7 @@ import * as React from "react";
|
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
4
|
variant?: "primary" | "secondary" | "transparent" | "danger" | null | undefined;
|
|
5
5
|
size?: "base" | "large" | "xlarge" | null | undefined;
|
|
6
|
-
} & (
|
|
7
|
-
class: import("clsx").ClassValue;
|
|
8
|
-
className?: undefined;
|
|
9
|
-
} | {
|
|
10
|
-
class?: undefined;
|
|
11
|
-
className: import("clsx").ClassValue;
|
|
12
|
-
} | {
|
|
13
|
-
class?: undefined;
|
|
14
|
-
className?: undefined;
|
|
15
|
-
})) | undefined) => string;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
16
7
|
interface ButtonProps extends React.ComponentPropsWithoutRef<"button">, VariantProps<typeof buttonVariants> {
|
|
17
8
|
isLoading?: boolean;
|
|
18
9
|
asChild?: boolean;
|
|
@@ -3,16 +3,7 @@ import Primitive from "react-currency-input-field";
|
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
declare const currencyInputVariants: (props?: ({
|
|
5
5
|
size?: "base" | "small" | null | undefined;
|
|
6
|
-
} & (
|
|
7
|
-
class: import("clsx").ClassValue;
|
|
8
|
-
className?: undefined;
|
|
9
|
-
} | {
|
|
10
|
-
class?: undefined;
|
|
11
|
-
className: import("clsx").ClassValue;
|
|
12
|
-
} | {
|
|
13
|
-
class?: undefined;
|
|
14
|
-
className?: undefined;
|
|
15
|
-
})) | undefined) => string;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
16
7
|
interface CurrencyInputProps extends Omit<React.ComponentPropsWithoutRef<typeof Primitive>, "prefix" | "suffix" | "size">, VariantProps<typeof currencyInputVariants> {
|
|
17
8
|
symbol: string;
|
|
18
9
|
code: string;
|
|
@@ -2,16 +2,7 @@ import { type VariantProps } from "class-variance-authority";
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const headingVariants: (props?: ({
|
|
4
4
|
level?: "h2" | "h3" | "h1" | null | undefined;
|
|
5
|
-
} & (
|
|
6
|
-
class: import("clsx").ClassValue;
|
|
7
|
-
className?: undefined;
|
|
8
|
-
} | {
|
|
9
|
-
class?: undefined;
|
|
10
|
-
className: import("clsx").ClassValue;
|
|
11
|
-
} | {
|
|
12
|
-
class?: undefined;
|
|
13
|
-
className?: undefined;
|
|
14
|
-
})) | undefined) => string;
|
|
5
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
15
6
|
type HeadingProps = VariantProps<typeof headingVariants> & React.HTMLAttributes<HTMLHeadingElement>;
|
|
16
7
|
declare const Heading: ({ level, className, ...props }: HeadingProps) => React.JSX.Element;
|
|
17
8
|
export { Heading, headingVariants };
|
|
@@ -2,14 +2,5 @@ import { VariantProps } from "class-variance-authority";
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const Hint: React.ForwardRefExoticComponent<VariantProps<(props?: ({
|
|
4
4
|
variant?: "error" | "info" | null | undefined;
|
|
5
|
-
} & (
|
|
6
|
-
class: import("clsx").ClassValue;
|
|
7
|
-
className?: undefined;
|
|
8
|
-
} | {
|
|
9
|
-
class?: undefined;
|
|
10
|
-
className: import("clsx").ClassValue;
|
|
11
|
-
} | {
|
|
12
|
-
class?: undefined;
|
|
13
|
-
className?: undefined;
|
|
14
|
-
})) | undefined) => string> & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
5
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string> & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
15
6
|
export { Hint };
|
|
@@ -3,16 +3,7 @@ import * as React from "react";
|
|
|
3
3
|
import { badgeColorVariants } from "../badge";
|
|
4
4
|
declare const iconBadgeVariants: (props?: ({
|
|
5
5
|
size?: "base" | "large" | null | undefined;
|
|
6
|
-
} & (
|
|
7
|
-
class: import("clsx").ClassValue;
|
|
8
|
-
className?: undefined;
|
|
9
|
-
} | {
|
|
10
|
-
class?: undefined;
|
|
11
|
-
className: import("clsx").ClassValue;
|
|
12
|
-
} | {
|
|
13
|
-
class?: undefined;
|
|
14
|
-
className?: undefined;
|
|
15
|
-
})) | undefined) => string;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
16
7
|
interface IconBadgeProps extends Omit<React.ComponentPropsWithoutRef<"span">, "color">, VariantProps<typeof badgeColorVariants>, VariantProps<typeof iconBadgeVariants> {
|
|
17
8
|
asChild?: boolean;
|
|
18
9
|
}
|
|
@@ -3,16 +3,7 @@ import * as React from "react";
|
|
|
3
3
|
declare const iconButtonVariants: (props?: ({
|
|
4
4
|
variant?: "primary" | "transparent" | null | undefined;
|
|
5
5
|
size?: "base" | "large" | "xlarge" | null | undefined;
|
|
6
|
-
} & (
|
|
7
|
-
class: import("clsx").ClassValue;
|
|
8
|
-
className?: undefined;
|
|
9
|
-
} | {
|
|
10
|
-
class?: undefined;
|
|
11
|
-
className: import("clsx").ClassValue;
|
|
12
|
-
} | {
|
|
13
|
-
class?: undefined;
|
|
14
|
-
className?: undefined;
|
|
15
|
-
})) | undefined) => string;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
16
7
|
interface IconButtonProps extends React.ComponentPropsWithoutRef<"button">, VariantProps<typeof iconButtonVariants> {
|
|
17
8
|
asChild?: boolean;
|
|
18
9
|
isLoading?: boolean;
|
|
@@ -3,14 +3,5 @@ import * as React from "react";
|
|
|
3
3
|
declare const inputBaseStyles: string;
|
|
4
4
|
declare const Input: React.ForwardRefExoticComponent<VariantProps<(props?: ({
|
|
5
5
|
size?: "base" | "small" | null | undefined;
|
|
6
|
-
} & (
|
|
7
|
-
class: import("clsx").ClassValue;
|
|
8
|
-
className?: undefined;
|
|
9
|
-
} | {
|
|
10
|
-
class?: undefined;
|
|
11
|
-
className: import("clsx").ClassValue;
|
|
12
|
-
} | {
|
|
13
|
-
class?: undefined;
|
|
14
|
-
className?: undefined;
|
|
15
|
-
})) | undefined) => string> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & React.RefAttributes<HTMLInputElement>>;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & React.RefAttributes<HTMLInputElement>>;
|
|
16
7
|
export { Input, inputBaseStyles };
|
|
@@ -3,16 +3,7 @@ import * as React from "react";
|
|
|
3
3
|
declare const labelVariants: (props?: ({
|
|
4
4
|
size?: "base" | "large" | "small" | "xsmall" | null | undefined;
|
|
5
5
|
weight?: "regular" | "plus" | null | undefined;
|
|
6
|
-
} & (
|
|
7
|
-
class: import("clsx").ClassValue;
|
|
8
|
-
className?: undefined;
|
|
9
|
-
} | {
|
|
10
|
-
class?: undefined;
|
|
11
|
-
className: import("clsx").ClassValue;
|
|
12
|
-
} | {
|
|
13
|
-
class?: undefined;
|
|
14
|
-
className?: undefined;
|
|
15
|
-
})) | undefined) => string;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
16
7
|
interface LabelProps extends React.ComponentPropsWithoutRef<"label">, VariantProps<typeof labelVariants> {
|
|
17
8
|
}
|
|
18
9
|
declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
@@ -3,16 +3,7 @@ import { VariantProps } from "class-variance-authority";
|
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
declare const switchVariants: (props?: ({
|
|
5
5
|
size?: "base" | "small" | null | undefined;
|
|
6
|
-
} & (
|
|
7
|
-
class: import("clsx").ClassValue;
|
|
8
|
-
className?: undefined;
|
|
9
|
-
} | {
|
|
10
|
-
class?: undefined;
|
|
11
|
-
className: import("clsx").ClassValue;
|
|
12
|
-
} | {
|
|
13
|
-
class?: undefined;
|
|
14
|
-
className?: undefined;
|
|
15
|
-
})) | undefined) => string;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
16
7
|
interface SwitchProps extends Omit<React.ComponentPropsWithoutRef<typeof Primitives.Root>, "asChild">, VariantProps<typeof switchVariants> {
|
|
17
8
|
}
|
|
18
9
|
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -5,16 +5,7 @@ declare const textVariants: (props?: ({
|
|
|
5
5
|
weight?: "regular" | "plus" | null | undefined;
|
|
6
6
|
family?: "sans" | "mono" | null | undefined;
|
|
7
7
|
leading?: "normal" | "compact" | null | undefined;
|
|
8
|
-
} & (
|
|
9
|
-
class: import("clsx").ClassValue;
|
|
10
|
-
className?: undefined;
|
|
11
|
-
} | {
|
|
12
|
-
class?: undefined;
|
|
13
|
-
className: import("clsx").ClassValue;
|
|
14
|
-
} | {
|
|
15
|
-
class?: undefined;
|
|
16
|
-
className?: undefined;
|
|
17
|
-
})) | undefined) => string;
|
|
8
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
18
9
|
interface TextProps extends React.ComponentPropsWithoutRef<"p">, VariantProps<typeof textVariants> {
|
|
19
10
|
asChild?: boolean;
|
|
20
11
|
as?: "p" | "span" | "div";
|
|
@@ -4,16 +4,7 @@ import * as React from "react";
|
|
|
4
4
|
declare const avatarVariants: (props?: ({
|
|
5
5
|
variant?: "squared" | "rounded" | null | undefined;
|
|
6
6
|
size?: "base" | "large" | null | undefined;
|
|
7
|
-
} & (
|
|
8
|
-
class: import("clsx").ClassValue;
|
|
9
|
-
className?: undefined;
|
|
10
|
-
} | {
|
|
11
|
-
class?: undefined;
|
|
12
|
-
className: import("clsx").ClassValue;
|
|
13
|
-
} | {
|
|
14
|
-
class?: undefined;
|
|
15
|
-
className?: undefined;
|
|
16
|
-
})) | undefined) => string;
|
|
7
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
17
8
|
interface AvatarProps extends Omit<React.ComponentPropsWithoutRef<typeof Primitives.Root>, "asChild" | "children" | "size">, VariantProps<typeof avatarVariants> {
|
|
18
9
|
src?: string;
|
|
19
10
|
fallback: string;
|
|
@@ -2,29 +2,11 @@ import { VariantProps } from "class-variance-authority";
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const badgeColorVariants: (props?: ({
|
|
4
4
|
color?: "green" | "red" | "blue" | "orange" | "grey" | "purple" | null | undefined;
|
|
5
|
-
} & (
|
|
6
|
-
class: import("clsx").ClassValue;
|
|
7
|
-
className?: undefined;
|
|
8
|
-
} | {
|
|
9
|
-
class?: undefined;
|
|
10
|
-
className: import("clsx").ClassValue;
|
|
11
|
-
} | {
|
|
12
|
-
class?: undefined;
|
|
13
|
-
className?: undefined;
|
|
14
|
-
})) | undefined) => string;
|
|
5
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
15
6
|
declare const badgeSizeVariants: (props?: ({
|
|
16
7
|
size?: "base" | "large" | "small" | null | undefined;
|
|
17
8
|
rounded?: "base" | "full" | null | undefined;
|
|
18
|
-
} & (
|
|
19
|
-
class: import("clsx").ClassValue;
|
|
20
|
-
className?: undefined;
|
|
21
|
-
} | {
|
|
22
|
-
class?: undefined;
|
|
23
|
-
className: import("clsx").ClassValue;
|
|
24
|
-
} | {
|
|
25
|
-
class?: undefined;
|
|
26
|
-
className?: undefined;
|
|
27
|
-
})) | undefined) => string;
|
|
9
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
28
10
|
interface BadgeProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "color">, VariantProps<typeof badgeSizeVariants>, VariantProps<typeof badgeColorVariants> {
|
|
29
11
|
asChild?: boolean;
|
|
30
12
|
}
|
|
@@ -3,16 +3,7 @@ import * as React from "react";
|
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
4
|
variant?: "primary" | "secondary" | "transparent" | "danger" | null | undefined;
|
|
5
5
|
size?: "base" | "large" | "xlarge" | null | undefined;
|
|
6
|
-
} & (
|
|
7
|
-
class: import("clsx").ClassValue;
|
|
8
|
-
className?: undefined;
|
|
9
|
-
} | {
|
|
10
|
-
class?: undefined;
|
|
11
|
-
className: import("clsx").ClassValue;
|
|
12
|
-
} | {
|
|
13
|
-
class?: undefined;
|
|
14
|
-
className?: undefined;
|
|
15
|
-
})) | undefined) => string;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
16
7
|
interface ButtonProps extends React.ComponentPropsWithoutRef<"button">, VariantProps<typeof buttonVariants> {
|
|
17
8
|
isLoading?: boolean;
|
|
18
9
|
asChild?: boolean;
|
|
@@ -3,16 +3,7 @@ import Primitive from "react-currency-input-field";
|
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
declare const currencyInputVariants: (props?: ({
|
|
5
5
|
size?: "base" | "small" | null | undefined;
|
|
6
|
-
} & (
|
|
7
|
-
class: import("clsx").ClassValue;
|
|
8
|
-
className?: undefined;
|
|
9
|
-
} | {
|
|
10
|
-
class?: undefined;
|
|
11
|
-
className: import("clsx").ClassValue;
|
|
12
|
-
} | {
|
|
13
|
-
class?: undefined;
|
|
14
|
-
className?: undefined;
|
|
15
|
-
})) | undefined) => string;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
16
7
|
interface CurrencyInputProps extends Omit<React.ComponentPropsWithoutRef<typeof Primitive>, "prefix" | "suffix" | "size">, VariantProps<typeof currencyInputVariants> {
|
|
17
8
|
symbol: string;
|
|
18
9
|
code: string;
|
|
@@ -2,16 +2,7 @@ import { type VariantProps } from "class-variance-authority";
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const headingVariants: (props?: ({
|
|
4
4
|
level?: "h2" | "h3" | "h1" | null | undefined;
|
|
5
|
-
} & (
|
|
6
|
-
class: import("clsx").ClassValue;
|
|
7
|
-
className?: undefined;
|
|
8
|
-
} | {
|
|
9
|
-
class?: undefined;
|
|
10
|
-
className: import("clsx").ClassValue;
|
|
11
|
-
} | {
|
|
12
|
-
class?: undefined;
|
|
13
|
-
className?: undefined;
|
|
14
|
-
})) | undefined) => string;
|
|
5
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
15
6
|
type HeadingProps = VariantProps<typeof headingVariants> & React.HTMLAttributes<HTMLHeadingElement>;
|
|
16
7
|
declare const Heading: ({ level, className, ...props }: HeadingProps) => React.JSX.Element;
|
|
17
8
|
export { Heading, headingVariants };
|
|
@@ -2,14 +2,5 @@ import { VariantProps } from "class-variance-authority";
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const Hint: React.ForwardRefExoticComponent<VariantProps<(props?: ({
|
|
4
4
|
variant?: "error" | "info" | null | undefined;
|
|
5
|
-
} & (
|
|
6
|
-
class: import("clsx").ClassValue;
|
|
7
|
-
className?: undefined;
|
|
8
|
-
} | {
|
|
9
|
-
class?: undefined;
|
|
10
|
-
className: import("clsx").ClassValue;
|
|
11
|
-
} | {
|
|
12
|
-
class?: undefined;
|
|
13
|
-
className?: undefined;
|
|
14
|
-
})) | undefined) => string> & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
5
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string> & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
15
6
|
export { Hint };
|
|
@@ -3,16 +3,7 @@ import * as React from "react";
|
|
|
3
3
|
import { badgeColorVariants } from "../badge";
|
|
4
4
|
declare const iconBadgeVariants: (props?: ({
|
|
5
5
|
size?: "base" | "large" | null | undefined;
|
|
6
|
-
} & (
|
|
7
|
-
class: import("clsx").ClassValue;
|
|
8
|
-
className?: undefined;
|
|
9
|
-
} | {
|
|
10
|
-
class?: undefined;
|
|
11
|
-
className: import("clsx").ClassValue;
|
|
12
|
-
} | {
|
|
13
|
-
class?: undefined;
|
|
14
|
-
className?: undefined;
|
|
15
|
-
})) | undefined) => string;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
16
7
|
interface IconBadgeProps extends Omit<React.ComponentPropsWithoutRef<"span">, "color">, VariantProps<typeof badgeColorVariants>, VariantProps<typeof iconBadgeVariants> {
|
|
17
8
|
asChild?: boolean;
|
|
18
9
|
}
|
|
@@ -3,16 +3,7 @@ import * as React from "react";
|
|
|
3
3
|
declare const iconButtonVariants: (props?: ({
|
|
4
4
|
variant?: "primary" | "transparent" | null | undefined;
|
|
5
5
|
size?: "base" | "large" | "xlarge" | null | undefined;
|
|
6
|
-
} & (
|
|
7
|
-
class: import("clsx").ClassValue;
|
|
8
|
-
className?: undefined;
|
|
9
|
-
} | {
|
|
10
|
-
class?: undefined;
|
|
11
|
-
className: import("clsx").ClassValue;
|
|
12
|
-
} | {
|
|
13
|
-
class?: undefined;
|
|
14
|
-
className?: undefined;
|
|
15
|
-
})) | undefined) => string;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
16
7
|
interface IconButtonProps extends React.ComponentPropsWithoutRef<"button">, VariantProps<typeof iconButtonVariants> {
|
|
17
8
|
asChild?: boolean;
|
|
18
9
|
isLoading?: boolean;
|
|
@@ -3,14 +3,5 @@ import * as React from "react";
|
|
|
3
3
|
declare const inputBaseStyles: string;
|
|
4
4
|
declare const Input: React.ForwardRefExoticComponent<VariantProps<(props?: ({
|
|
5
5
|
size?: "base" | "small" | null | undefined;
|
|
6
|
-
} & (
|
|
7
|
-
class: import("clsx").ClassValue;
|
|
8
|
-
className?: undefined;
|
|
9
|
-
} | {
|
|
10
|
-
class?: undefined;
|
|
11
|
-
className: import("clsx").ClassValue;
|
|
12
|
-
} | {
|
|
13
|
-
class?: undefined;
|
|
14
|
-
className?: undefined;
|
|
15
|
-
})) | undefined) => string> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & React.RefAttributes<HTMLInputElement>>;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & React.RefAttributes<HTMLInputElement>>;
|
|
16
7
|
export { Input, inputBaseStyles };
|
|
@@ -3,16 +3,7 @@ import * as React from "react";
|
|
|
3
3
|
declare const labelVariants: (props?: ({
|
|
4
4
|
size?: "base" | "large" | "small" | "xsmall" | null | undefined;
|
|
5
5
|
weight?: "regular" | "plus" | null | undefined;
|
|
6
|
-
} & (
|
|
7
|
-
class: import("clsx").ClassValue;
|
|
8
|
-
className?: undefined;
|
|
9
|
-
} | {
|
|
10
|
-
class?: undefined;
|
|
11
|
-
className: import("clsx").ClassValue;
|
|
12
|
-
} | {
|
|
13
|
-
class?: undefined;
|
|
14
|
-
className?: undefined;
|
|
15
|
-
})) | undefined) => string;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
16
7
|
interface LabelProps extends React.ComponentPropsWithoutRef<"label">, VariantProps<typeof labelVariants> {
|
|
17
8
|
}
|
|
18
9
|
declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
@@ -3,16 +3,7 @@ import { VariantProps } from "class-variance-authority";
|
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
declare const switchVariants: (props?: ({
|
|
5
5
|
size?: "base" | "small" | null | undefined;
|
|
6
|
-
} & (
|
|
7
|
-
class: import("clsx").ClassValue;
|
|
8
|
-
className?: undefined;
|
|
9
|
-
} | {
|
|
10
|
-
class?: undefined;
|
|
11
|
-
className: import("clsx").ClassValue;
|
|
12
|
-
} | {
|
|
13
|
-
class?: undefined;
|
|
14
|
-
className?: undefined;
|
|
15
|
-
})) | undefined) => string;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
16
7
|
interface SwitchProps extends Omit<React.ComponentPropsWithoutRef<typeof Primitives.Root>, "asChild">, VariantProps<typeof switchVariants> {
|
|
17
8
|
}
|
|
18
9
|
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -5,16 +5,7 @@ declare const textVariants: (props?: ({
|
|
|
5
5
|
weight?: "regular" | "plus" | null | undefined;
|
|
6
6
|
family?: "sans" | "mono" | null | undefined;
|
|
7
7
|
leading?: "normal" | "compact" | null | undefined;
|
|
8
|
-
} & (
|
|
9
|
-
class: import("clsx").ClassValue;
|
|
10
|
-
className?: undefined;
|
|
11
|
-
} | {
|
|
12
|
-
class?: undefined;
|
|
13
|
-
className: import("clsx").ClassValue;
|
|
14
|
-
} | {
|
|
15
|
-
class?: undefined;
|
|
16
|
-
className?: undefined;
|
|
17
|
-
})) | undefined) => string;
|
|
8
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
18
9
|
interface TextProps extends React.ComponentPropsWithoutRef<"p">, VariantProps<typeof textVariants> {
|
|
19
10
|
asChild?: boolean;
|
|
20
11
|
as?: "p" | "span" | "div";
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medusajs/ui",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1-next-20231110080228",
|
|
4
4
|
"author": "Kasper Kristensen <kasper@medusajs.com>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "https://github.com/medusajs/
|
|
9
|
-
"directory": "packages/ui"
|
|
8
|
+
"url": "https://github.com/medusajs/medusa.git",
|
|
9
|
+
"directory": "packages/design-system/ui"
|
|
10
10
|
},
|
|
11
11
|
"main": "./dist/cjs/index.js",
|
|
12
12
|
"types": "./dist/cjs/index.d.ts",
|
|
@@ -42,8 +42,6 @@
|
|
|
42
42
|
"typecheck": "tsc --noEmit"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@medusajs/eslint-config-ui": "*",
|
|
46
|
-
"@medusajs/tsconfig-ui": "*",
|
|
47
45
|
"@medusajs/ui-preset": "^1.0.2",
|
|
48
46
|
"@storybook/addon-essentials": "^7.0.23",
|
|
49
47
|
"@storybook/addon-interactions": "^7.0.23",
|
|
@@ -69,8 +67,8 @@
|
|
|
69
67
|
"jsdom": "^22.1.0",
|
|
70
68
|
"postcss": "^8.4.24",
|
|
71
69
|
"prop-types": "^15.8.1",
|
|
72
|
-
"react": "18.2.0",
|
|
73
|
-
"react-dom": "18.2.0",
|
|
70
|
+
"react": "^18.2.0",
|
|
71
|
+
"react-dom": "^18.2.0",
|
|
74
72
|
"resize-observer-polyfill": "^1.5.1",
|
|
75
73
|
"rimraf": "^5.0.1",
|
|
76
74
|
"storybook": "^7.0.23",
|
|
@@ -82,7 +80,7 @@
|
|
|
82
80
|
"vitest": "^0.32.2"
|
|
83
81
|
},
|
|
84
82
|
"dependencies": {
|
|
85
|
-
"@medusajs/icons": "
|
|
83
|
+
"@medusajs/icons": "^1.1.0",
|
|
86
84
|
"@radix-ui/react-accordion": "^1.1.2",
|
|
87
85
|
"@radix-ui/react-alert-dialog": "^1.0.4",
|
|
88
86
|
"@radix-ui/react-avatar": "^1.0.3",
|
|
@@ -115,11 +113,6 @@
|
|
|
115
113
|
"react": "^18.0.0",
|
|
116
114
|
"react-dom": "^18.0.0"
|
|
117
115
|
},
|
|
118
|
-
"eslintConfig": {
|
|
119
|
-
"extends": [
|
|
120
|
-
"plugin:storybook/recommended"
|
|
121
|
-
]
|
|
122
|
-
},
|
|
123
116
|
"browserslist": [
|
|
124
117
|
"last 3 chrome versions",
|
|
125
118
|
"last 3 firefox versions",
|