reaxify 0.0.85 → 0.0.87
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/components/Alert/index.cjs.js +1 -0
- package/dist/components/Alert/index.es.js +8 -0
- package/dist/components/Badge/index.cjs.js +1 -1
- package/dist/components/Badge/index.es.js +36 -36
- package/dist/components/Button/index.cjs.js +1 -1
- package/dist/components/Button/index.es.js +75 -57
- package/dist/components/Drawer/index.cjs.js +1 -1
- package/dist/components/Drawer/index.es.js +73 -64
- package/dist/components/Menu/index.cjs.js +1 -1
- package/dist/components/Menu/index.es.js +82 -73
- package/dist/components/Modal/index.cjs.js +1 -1
- package/dist/components/Modal/index.es.js +65 -53
- package/dist/components/Progress/index.cjs.js +1 -1
- package/dist/components/Progress/index.es.js +21 -21
- package/dist/components/Spacer/index.cjs.js +1 -1
- package/dist/components/Spacer/index.es.js +13 -7
- package/dist/components/Stack/index.cjs.js +1 -1
- package/dist/components/Stack/index.es.js +28 -28
- package/dist/components/Switch/index.cjs.js +1 -1
- package/dist/components/Switch/index.es.js +1 -1
- package/dist/components/Tabs/index.cjs.js +1 -1
- package/dist/components/Tabs/index.es.js +9 -9
- package/dist/node_modules/@tanstack/hotkeys/dist/match.es.js +4 -4
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.cjs.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.es.js +2 -2
- package/dist/node_modules/react-transition-group/esm/Transition.cjs.js +1 -1
- package/dist/node_modules/react-transition-group/esm/Transition.es.js +2 -2
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs.js +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.es.js +745 -553
- package/dist/reaxify.css +1 -1
- package/dist/{axios → src/axios}/AxiosProvider.d.ts +1 -1
- package/dist/{components → src/components}/Accordion/index.d.ts +1 -1
- package/dist/src/components/Alert/index.d.ts +26 -0
- package/dist/src/components/Avatar/index.d.ts +21 -0
- package/dist/{components → src/components}/Badge/index.d.ts +1 -1
- package/dist/{components → src/components}/Button/index.d.ts +3 -3
- package/dist/{components → src/components}/ButtonGroup/index.d.ts +1 -1
- package/dist/{components → src/components}/Card/index.d.ts +1 -1
- package/dist/{components → src/components}/Drawer/index.d.ts +4 -2
- package/dist/src/components/Fill/index.d.ts +3 -0
- package/dist/{components → src/components}/InputGroup/index.d.ts +1 -1
- package/dist/{components → src/components}/Menu/index.d.ts +3 -2
- package/dist/{components → src/components}/Modal/index.d.ts +3 -2
- package/dist/{components → src/components}/Portal/index.d.ts +1 -1
- package/dist/{components → src/components}/Progress/index.d.ts +1 -1
- package/dist/src/components/Spacer/index.d.ts +6 -0
- package/dist/{components → src/components}/Spinner/index.d.ts +1 -1
- package/dist/src/components/Stack/index.d.ts +10 -0
- package/dist/{components → src/components}/Switch/index.d.ts +1 -1
- package/dist/{components → src/components}/Tabs/index.d.ts +1 -1
- package/dist/{components → src/components}/Tooltip/index.d.ts +2 -2
- package/dist/{components → src/components}/Typography/index.d.ts +1 -1
- package/dist/{hooks → src/hooks}/useClasses.d.ts +2 -2
- package/dist/{providers → src/providers}/ThemeProvider.d.ts +49 -5
- package/dist/{types → src/types}/index.d.ts +6 -1
- package/package.json +17 -17
- package/dist/components/Spacer/index.d.ts +0 -6
- package/dist/components/Stack/index.d.ts +0 -10
- /package/dist/{axios → src/axios}/index.d.ts +0 -0
- /package/dist/{axios → src/axios}/types.d.ts +0 -0
- /package/dist/{axios → src/axios}/useAxios.d.ts +0 -0
- /package/dist/{components → src/components}/Skeleton/index.d.ts +0 -0
- /package/dist/{components → src/components}/Table/index.d.ts +0 -0
- /package/dist/{components → src/components}/index.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/cn.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/copy.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/index.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/isEmpty.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/isServer.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/randomID.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/replaceNonDigits.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/replacePersianNumbers.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/scrollIntoView.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/twoDigitNumber.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/wait.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/index.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useCreateRipple.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useDebounce.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useDocumentVisible.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useIsOffline.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/usePersistedState.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useToggle.d.ts +0 -0
- /package/dist/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/{providers → src/providers}/index.d.ts +0 -0
package/dist/reaxify.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tailwindcss v4.
|
|
1
|
+
/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */body:has([data-open=true]){overscroll-behavior:none;overflow:hidden}input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=password]::-ms-reveal{display:none!important}input[type=password]::-ms-clear{display:none!important}input[type=password]::-webkit-clear-button{display:none!important}input[type=password]::-webkit-credentials-auto-fill-button{display:none!important}input[type=password]{-webkit-text-security:disc}textarea::-webkit-scrollbar{display:none}textarea{-ms-overflow-style:none;scrollbar-width:none}strong,b{font-weight:700}.animate-linear-progress-1{animation:3.2s cubic-bezier(.65,.815,.735,.395) infinite linear-progress-1}.animate-linear-progress-2{animation:3.2s cubic-bezier(.165,.84,.44,1) 1.2s infinite linear-progress-2}@keyframes linear-progress-1{0%{width:35%;inset-inline-start:-35%}60%{width:100%;inset-inline-start:100%}to{width:100%;inset-inline-start:100%}}@keyframes linear-progress-2{0%{width:100%;inset-inline-start:-200%}60%{width:10%;inset-inline-start:107%}to{width:10%;inset-inline-start:107%}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChildrenProps, ComponentPropsWithAs } from '
|
|
1
|
+
import { ChildrenProps, ComponentPropsWithAs } from '../../../types';
|
|
2
2
|
import { ComponentProps, Dispatch, ElementType } from 'react';
|
|
3
3
|
type EventKey = string;
|
|
4
4
|
type AccordionSingleProps<T extends EventKey> = {
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AlertVariant, ButtonVariant, Color, ComponentPropsWithAs, ComponentPropsWithoutAs } from '../../../types';
|
|
2
|
+
import { ElementType } from 'react';
|
|
3
|
+
import { default as Typography } from '../Typography';
|
|
4
|
+
type AlertProps = {
|
|
5
|
+
variant?: AlertVariant;
|
|
6
|
+
color?: Color;
|
|
7
|
+
};
|
|
8
|
+
type AlertContextType = {
|
|
9
|
+
buttonVariant?: ButtonVariant;
|
|
10
|
+
color?: Color;
|
|
11
|
+
};
|
|
12
|
+
export declare const AlertContext: import('react').Context<AlertContextType>;
|
|
13
|
+
declare function Alert<E extends ElementType = "div">({ as, variant, color, children, className, ...props }: ComponentPropsWithAs<E, AlertProps>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare namespace Alert {
|
|
15
|
+
var Icon: typeof AlertIcon;
|
|
16
|
+
var Content: typeof AlertContent;
|
|
17
|
+
var Title: typeof AlertTitle;
|
|
18
|
+
var Description: typeof AlertDescription;
|
|
19
|
+
var Action: typeof AlertAction;
|
|
20
|
+
}
|
|
21
|
+
declare function AlertIcon({ children, className, ...props }: ComponentPropsWithoutAs<"div">): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare function AlertContent({ children, className, ...props }: ComponentPropsWithoutAs<"div">): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
declare function AlertTitle({ children, className, ...props }: ComponentPropsWithoutAs<typeof Typography<"h6">>): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
declare function AlertDescription({ children, className, ...props }: ComponentPropsWithoutAs<typeof Typography<"p">>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
declare function AlertAction({ children, className, ...props }: ComponentPropsWithoutAs<"div">): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export default Alert;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentPropsWithAs, ComponentPropsWithoutAs, Size } from '../../../types';
|
|
2
|
+
import { ElementType } from 'react';
|
|
3
|
+
type AvatarProps = {
|
|
4
|
+
size?: Size;
|
|
5
|
+
};
|
|
6
|
+
declare function AvatarGroup<E extends ElementType = "div">({ as, className, children, ...props }: ComponentPropsWithAs<E>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function Avatar<E extends ElementType = "div">({ as, className, size, children, ...props }: ComponentPropsWithAs<E, AvatarProps>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare namespace Avatar {
|
|
9
|
+
var Group: typeof AvatarGroup;
|
|
10
|
+
var Image: typeof AvatarImage;
|
|
11
|
+
var Fallback: typeof AvatarFallback;
|
|
12
|
+
var Badge: typeof AvatarBadge;
|
|
13
|
+
var Count: typeof AvatarCount;
|
|
14
|
+
}
|
|
15
|
+
declare function AvatarImage({ className, onLoad, ...props }: ComponentPropsWithoutAs<"img", {
|
|
16
|
+
loading?: never;
|
|
17
|
+
}>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function AvatarFallback({ className, children, ...props }: ComponentPropsWithoutAs<"div">): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare function AvatarBadge({ className, children, ...props }: ComponentPropsWithoutAs<"span">): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare function AvatarCount({ className, children, ...props }: ComponentPropsWithoutAs<"span">): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export default Avatar;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ButtonVariant, Color, ComponentPropsWithAs
|
|
1
|
+
import { ButtonSize, ButtonVariant, Color, ComponentPropsWithAs } from '../../../types';
|
|
2
2
|
import { ElementType } from 'react';
|
|
3
3
|
export type ButtonProps = {
|
|
4
4
|
variant?: ButtonVariant;
|
|
5
|
-
color?: Color
|
|
6
|
-
size?:
|
|
5
|
+
color?: Color;
|
|
6
|
+
size?: ButtonSize;
|
|
7
7
|
loading?: boolean;
|
|
8
8
|
stopPropagation?: boolean;
|
|
9
9
|
preventDefault?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentPropsWithAs } from '
|
|
1
|
+
import { ComponentPropsWithAs } from '../../../types';
|
|
2
2
|
import { ComponentProps, ElementType } from 'react';
|
|
3
3
|
declare function Card<E extends ElementType = "div">({ as, className, children, ...props }: ComponentPropsWithAs<E>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare namespace Card {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentPropsWithAs, ToggleProps } from '
|
|
1
|
+
import { ComponentPropsWithAs, ToggleProps } from '../../../types';
|
|
2
2
|
import { ComponentProps, ElementType } from 'react';
|
|
3
3
|
import { TransitionStatus } from 'react-transition-group';
|
|
4
4
|
type Anchor = "start" | "end" | "top" | "bottom";
|
|
@@ -6,10 +6,12 @@ type Context = {
|
|
|
6
6
|
duration: number;
|
|
7
7
|
anchor: Anchor;
|
|
8
8
|
transitionState: TransitionStatus;
|
|
9
|
+
preventClose: boolean;
|
|
9
10
|
} & ToggleProps;
|
|
10
11
|
type DrawerBaseProps = {
|
|
11
12
|
anchor?: Anchor;
|
|
12
13
|
duration?: number;
|
|
14
|
+
preventClose?: boolean;
|
|
13
15
|
} & Partial<ToggleProps>;
|
|
14
16
|
type DrawerProps<E extends ElementType> = ComponentPropsWithAs<E, DrawerBaseProps>;
|
|
15
17
|
type DrawerMenuProps = Omit<ComponentProps<"div">, "as" | "ref">;
|
|
@@ -17,7 +19,7 @@ type DrawerHeaderProps = ComponentProps<"div">;
|
|
|
17
19
|
type DrawerBodyProps = ComponentProps<"div">;
|
|
18
20
|
type DrawerFooterProps = ComponentProps<"div">;
|
|
19
21
|
export declare const DrawerContext: import('react').Context<Context>;
|
|
20
|
-
declare function Drawer<E extends ElementType = "div">({ as, ref, open, onClose, duration, anchor, className, children, ...props }: DrawerProps<E>): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare function Drawer<E extends ElementType = "div">({ as, ref, open, onClose, duration, preventClose, anchor, className, children, ...props }: DrawerProps<E>): import("react/jsx-runtime").JSX.Element;
|
|
21
23
|
declare namespace Drawer {
|
|
22
24
|
var Menu: typeof DrawerMenu;
|
|
23
25
|
var Header: typeof DrawerHeader;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentPropsWithAs } from '
|
|
1
|
+
import { ComponentPropsWithAs } from '../../../types';
|
|
2
2
|
import { ElementType } from 'react';
|
|
3
3
|
declare function InputGroup<E extends ElementType = "div">({ as, children, className, ...props }: ComponentPropsWithAs<E>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare namespace InputGroup {
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { ComponentPropsWithAs, ToggleProps } from '
|
|
1
|
+
import { ComponentPropsWithAs, ToggleProps } from '../../../types';
|
|
2
2
|
import { ElementType } from 'react';
|
|
3
3
|
type MenuProps = {
|
|
4
4
|
anchorEl?: HTMLElement | null;
|
|
5
5
|
closeOnClick?: boolean;
|
|
6
|
+
preventClose?: boolean;
|
|
6
7
|
} & ToggleProps;
|
|
7
8
|
type MenuItemProps = {
|
|
8
9
|
closeOnClick?: boolean;
|
|
9
10
|
};
|
|
10
|
-
declare function Menu<E extends ElementType = "div">({ as, ref, open, onClose, closeOnClick, anchorEl, className, children, ...props }: ComponentPropsWithAs<E, MenuProps>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function Menu<E extends ElementType = "div">({ as, ref, open, onClose, closeOnClick, preventClose, anchorEl, className, children, ...props }: ComponentPropsWithAs<E, MenuProps>): import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
declare namespace Menu {
|
|
12
13
|
var Item: typeof MenuItem;
|
|
13
14
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentPropsWithAs, Size, ToggleProps } from '
|
|
1
|
+
import { ComponentPropsWithAs, Size, ToggleProps } from '../../../types';
|
|
2
2
|
import { ComponentProps, ElementType } from 'react';
|
|
3
3
|
import { TransitionStatus } from 'react-transition-group';
|
|
4
4
|
type Context = {
|
|
@@ -9,13 +9,14 @@ type Context = {
|
|
|
9
9
|
type ModalProps = {
|
|
10
10
|
size?: Size;
|
|
11
11
|
duration?: number;
|
|
12
|
+
preventClose?: boolean;
|
|
12
13
|
} & Partial<ToggleProps>;
|
|
13
14
|
type ModalDialogProps = Omit<ComponentProps<"div">, "as" | "ref">;
|
|
14
15
|
type ModalHeaderProps = ComponentProps<"div">;
|
|
15
16
|
type ModalBodyProps = ComponentProps<"div">;
|
|
16
17
|
type ModalFooterProps = ComponentProps<"div">;
|
|
17
18
|
export declare const ModalContext: import('react').Context<Context>;
|
|
18
|
-
declare function Modal<E extends ElementType = "div">({ as, ref, size, open, onClose, duration, className, children, ...props }: ComponentPropsWithAs<E, ModalProps>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare function Modal<E extends ElementType = "div">({ as, ref, size, open, onClose, duration, preventClose, className, children, ...props }: ComponentPropsWithAs<E, ModalProps>): import("react/jsx-runtime").JSX.Element;
|
|
19
20
|
declare namespace Modal {
|
|
20
21
|
var Dialog: typeof ModalDialog;
|
|
21
22
|
var Header: typeof ModalHeader;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ChildrenProps } from '
|
|
1
|
+
import { ChildrenProps } from '../../../types';
|
|
2
2
|
export default function Portal({ children }: ChildrenProps): import('react').ReactPortal | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentPropsWithAs } from '../../../types';
|
|
2
|
+
import { ElementType } from 'react';
|
|
3
|
+
type Directions = "row" | "column";
|
|
4
|
+
type StackProps = {
|
|
5
|
+
direction?: Directions;
|
|
6
|
+
wrap?: boolean | "reverse";
|
|
7
|
+
reverse?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export default function Stack<E extends ElementType = "div">({ as, direction, wrap, reverse, className, children, ...props }: ComponentPropsWithAs<E, StackProps>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Color, ComponentPropsWithoutAs } from '
|
|
1
|
+
import { Color, ComponentPropsWithoutAs } from '../../../types';
|
|
2
2
|
import { ReactElement } from 'react';
|
|
3
3
|
type Placement = "top" | "end" | "bottom" | "start";
|
|
4
4
|
type Props = {
|
|
@@ -6,7 +6,7 @@ type Props = {
|
|
|
6
6
|
color?: Color;
|
|
7
7
|
duration?: number;
|
|
8
8
|
placement?: Placement;
|
|
9
|
-
children?: ReactElement
|
|
9
|
+
children?: ReactElement<any>;
|
|
10
10
|
};
|
|
11
11
|
export default function Tooltip({ title, color, placement, duration, className, children, ...props }: ComponentPropsWithoutAs<"span", Props>): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentPropsWithAs, TypographyVariant } from '
|
|
1
|
+
import { ComponentPropsWithAs, TypographyVariant } from '../../../types';
|
|
2
2
|
type Component = "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | "label";
|
|
3
3
|
type TypographyProps = {
|
|
4
4
|
variant?: TypographyVariant;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ThemeProviderContextType } from '
|
|
2
|
-
import { DeepPartial } from '
|
|
1
|
+
import { ThemeProviderContextType } from '../../providers/ThemeProvider';
|
|
2
|
+
import { DeepPartial } from '../../types';
|
|
3
3
|
type Classes = ThemeProviderContextType["extendClasses"];
|
|
4
4
|
export default function useClasses<T = string>(selector: (extendClasses: Classes) => T): DeepPartial<T> | null;
|
|
5
5
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { BadgeVariant, ButtonVariant, ChildrenProps, Color, DeepPartial, Size, TypographyVariant } from '
|
|
1
|
+
import { AlertVariant, BadgeVariant, ButtonSize, ButtonVariant, ChildrenProps, Color, DeepPartial, Size, TypographyVariant } from '../../types';
|
|
2
2
|
type ColorClasses<T> = Record<Color, T>;
|
|
3
3
|
type SizeClasses = Record<Size, string>;
|
|
4
|
+
type ButtonSizeClasses = Record<ButtonSize, string>;
|
|
4
5
|
type ActiveClasses = {
|
|
5
6
|
active: string;
|
|
6
7
|
inactive: string;
|
|
@@ -32,9 +33,49 @@ export type ThemeProviderContextType = {
|
|
|
32
33
|
button: {
|
|
33
34
|
base: string;
|
|
34
35
|
color: ColorClasses<Record<ButtonVariant, string>>;
|
|
35
|
-
size:
|
|
36
|
+
size: ButtonSizeClasses;
|
|
36
37
|
loading: ActiveClasses;
|
|
37
38
|
};
|
|
39
|
+
alert: {
|
|
40
|
+
base: string;
|
|
41
|
+
color: ColorClasses<Record<AlertVariant, string>>;
|
|
42
|
+
icon: {
|
|
43
|
+
base: string;
|
|
44
|
+
};
|
|
45
|
+
content: {
|
|
46
|
+
base: string;
|
|
47
|
+
};
|
|
48
|
+
title: {
|
|
49
|
+
base: string;
|
|
50
|
+
};
|
|
51
|
+
description: {
|
|
52
|
+
base: string;
|
|
53
|
+
};
|
|
54
|
+
action: {
|
|
55
|
+
base: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
avatar: {
|
|
59
|
+
base: string;
|
|
60
|
+
size: SizeClasses;
|
|
61
|
+
group: {
|
|
62
|
+
base: string;
|
|
63
|
+
};
|
|
64
|
+
image: {
|
|
65
|
+
base: string;
|
|
66
|
+
};
|
|
67
|
+
fallback: {
|
|
68
|
+
base: string;
|
|
69
|
+
size: SizeClasses;
|
|
70
|
+
};
|
|
71
|
+
badge: {
|
|
72
|
+
base: string;
|
|
73
|
+
size: SizeClasses;
|
|
74
|
+
};
|
|
75
|
+
count: {
|
|
76
|
+
base: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
38
79
|
buttonGroup: {
|
|
39
80
|
base: string;
|
|
40
81
|
orientation: {
|
|
@@ -136,11 +177,14 @@ export type ThemeProviderContextType = {
|
|
|
136
177
|
};
|
|
137
178
|
stack: {
|
|
138
179
|
base: string;
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
180
|
+
directions: {
|
|
181
|
+
row: string;
|
|
182
|
+
column: string;
|
|
142
183
|
};
|
|
143
184
|
};
|
|
185
|
+
fill: {
|
|
186
|
+
base: string;
|
|
187
|
+
};
|
|
144
188
|
table: {
|
|
145
189
|
base: string;
|
|
146
190
|
container: {
|
|
@@ -7,6 +7,8 @@ export interface ExtendBadgeVariant {
|
|
|
7
7
|
}
|
|
8
8
|
export interface ExtendButtonVariant {
|
|
9
9
|
}
|
|
10
|
+
export interface ExtendAlertVariant {
|
|
11
|
+
}
|
|
10
12
|
export interface ExtendTypographyVariant {
|
|
11
13
|
}
|
|
12
14
|
export interface ExtendColor {
|
|
@@ -14,15 +16,18 @@ export interface ExtendColor {
|
|
|
14
16
|
export interface ExtendSize {
|
|
15
17
|
}
|
|
16
18
|
type BaseBadgeVariant = "solid" | "outline" | "soft";
|
|
17
|
-
type BaseButtonVariant = "solid" | "outline" | "text";
|
|
19
|
+
type BaseButtonVariant = "solid" | "outline" | "text" | "soft";
|
|
20
|
+
type BaseAlertVariant = "solid" | "outline" | "soft";
|
|
18
21
|
type BaseTypographyVariant = "heading-1" | "heading-2" | "heading-3" | "heading-4" | "heading-5" | "heading-6" | "body-1" | "body-2" | "body-3";
|
|
19
22
|
type BaseColor = "primary" | "secondary" | "success" | "info" | "warning" | "danger" | "dark" | "light";
|
|
20
23
|
type BaseSize = "sm" | "md" | "lg";
|
|
21
24
|
export type BadgeVariant = BaseBadgeVariant | keyof ExtendBadgeVariant;
|
|
22
25
|
export type ButtonVariant = BaseButtonVariant | keyof ExtendButtonVariant;
|
|
26
|
+
export type AlertVariant = BaseAlertVariant | keyof ExtendAlertVariant;
|
|
23
27
|
export type TypographyVariant = BaseTypographyVariant | keyof ExtendTypographyVariant;
|
|
24
28
|
export type Color = BaseColor | keyof ExtendColor;
|
|
25
29
|
export type Size = BaseSize | keyof ExtendSize;
|
|
30
|
+
export type ButtonSize = BaseSize | "icon" | keyof ExtendSize;
|
|
26
31
|
export type ClassNameProps = {
|
|
27
32
|
className?: string;
|
|
28
33
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reaxify",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.87",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"iconsax-react": "^0.0.8",
|
|
56
56
|
"react-animate-height": "^3.2.3",
|
|
57
57
|
"react-transition-group": "^4.4.5",
|
|
58
|
-
"tailwind-merge": "^3.
|
|
58
|
+
"tailwind-merge": "^3.5.0"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"axios": ">=1.0.0",
|
|
@@ -63,18 +63,18 @@
|
|
|
63
63
|
"react-dom": ">=19.0.0"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@chromatic-com/storybook": "^
|
|
67
|
-
"@storybook/addon-essentials": "^8.6.
|
|
68
|
-
"@storybook/addon-interactions": "^8.6.
|
|
69
|
-
"@storybook/addon-links": "^8.6.
|
|
70
|
-
"@storybook/addon-onboarding": "^8.6.
|
|
71
|
-
"@storybook/blocks": "^8.6.
|
|
72
|
-
"@storybook/react": "^8.6.
|
|
73
|
-
"@storybook/react-vite": "^8.6.
|
|
74
|
-
"@storybook/test": "^8.6.
|
|
66
|
+
"@chromatic-com/storybook": "^3.2.4",
|
|
67
|
+
"@storybook/addon-essentials": "^8.6.14",
|
|
68
|
+
"@storybook/addon-interactions": "^8.6.14",
|
|
69
|
+
"@storybook/addon-links": "^8.6.14",
|
|
70
|
+
"@storybook/addon-onboarding": "^8.6.14",
|
|
71
|
+
"@storybook/blocks": "^8.6.14",
|
|
72
|
+
"@storybook/react": "^8.6.14",
|
|
73
|
+
"@storybook/react-vite": "^8.6.14",
|
|
74
|
+
"@storybook/test": "^8.6.15",
|
|
75
75
|
"@tailwindcss/vite": "^4.1.16",
|
|
76
|
-
"@types/react": "^
|
|
77
|
-
"@types/react-dom": "^
|
|
76
|
+
"@types/react": "^19.2.14",
|
|
77
|
+
"@types/react-dom": "^19.2.3",
|
|
78
78
|
"@types/react-transition-group": "^4.4.11",
|
|
79
79
|
"@typescript-eslint/eslint-plugin": "^6.14.0",
|
|
80
80
|
"@typescript-eslint/parser": "^6.14.0",
|
|
@@ -86,12 +86,12 @@
|
|
|
86
86
|
"eslint-plugin-storybook": "^0.10.1",
|
|
87
87
|
"react": "^19.2.0",
|
|
88
88
|
"react-dom": "^19.2.0",
|
|
89
|
-
"storybook": "^8.6.
|
|
89
|
+
"storybook": "^8.6.14",
|
|
90
90
|
"tailwindcss": "^4.1.16",
|
|
91
|
-
"typescript": "^
|
|
91
|
+
"typescript": "^6.0.3",
|
|
92
92
|
"vite": "^6.3.5",
|
|
93
93
|
"vite-plugin-dts": "^4.5.4",
|
|
94
|
-
"vite-plugin-static-copy": "^
|
|
95
|
-
"vite-tsconfig-paths": "^
|
|
94
|
+
"vite-plugin-static-copy": "^4.1.0",
|
|
95
|
+
"vite-tsconfig-paths": "^6.1.1"
|
|
96
96
|
}
|
|
97
97
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithAs } from '../../types';
|
|
2
|
-
import { ElementType } from 'react';
|
|
3
|
-
type Variants = "vertical" | "horizontal";
|
|
4
|
-
type StackProps = {
|
|
5
|
-
variant?: Variants;
|
|
6
|
-
wrap?: boolean | "reverse";
|
|
7
|
-
reverse?: boolean;
|
|
8
|
-
};
|
|
9
|
-
export default function Stack<E extends ElementType = "div">({ as, variant, wrap, reverse, className, children, ...props }: ComponentPropsWithAs<E, StackProps>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|