reaxify 0.0.85 → 0.0.86

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.
Files changed (83) hide show
  1. package/dist/components/Alert/index.cjs.js +1 -0
  2. package/dist/components/Alert/index.es.js +8 -0
  3. package/dist/components/Badge/index.cjs.js +1 -1
  4. package/dist/components/Badge/index.es.js +36 -36
  5. package/dist/components/Button/index.cjs.js +1 -1
  6. package/dist/components/Button/index.es.js +75 -57
  7. package/dist/components/Drawer/index.cjs.js +1 -1
  8. package/dist/components/Drawer/index.es.js +73 -64
  9. package/dist/components/Menu/index.cjs.js +1 -1
  10. package/dist/components/Menu/index.es.js +82 -73
  11. package/dist/components/Modal/index.cjs.js +1 -1
  12. package/dist/components/Modal/index.es.js +65 -53
  13. package/dist/components/Progress/index.cjs.js +1 -1
  14. package/dist/components/Progress/index.es.js +21 -21
  15. package/dist/components/Spacer/index.cjs.js +1 -1
  16. package/dist/components/Spacer/index.es.js +13 -7
  17. package/dist/components/Stack/index.cjs.js +1 -1
  18. package/dist/components/Stack/index.es.js +28 -28
  19. package/dist/components/Switch/index.cjs.js +1 -1
  20. package/dist/components/Switch/index.es.js +1 -1
  21. package/dist/components/Tabs/index.cjs.js +1 -1
  22. package/dist/components/Tabs/index.es.js +9 -9
  23. package/dist/node_modules/@tanstack/hotkeys/dist/match.es.js +4 -4
  24. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.cjs.js +1 -1
  25. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.es.js +2 -2
  26. package/dist/node_modules/react-transition-group/esm/Transition.cjs.js +1 -1
  27. package/dist/node_modules/react-transition-group/esm/Transition.es.js +2 -2
  28. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs.js +1 -1
  29. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.es.js +745 -553
  30. package/dist/reaxify.css +1 -1
  31. package/dist/{axios → src/axios}/AxiosProvider.d.ts +1 -1
  32. package/dist/{components → src/components}/Accordion/index.d.ts +1 -1
  33. package/dist/src/components/Alert/index.d.ts +26 -0
  34. package/dist/{components → src/components}/Badge/index.d.ts +1 -1
  35. package/dist/{components → src/components}/Button/index.d.ts +3 -3
  36. package/dist/{components → src/components}/ButtonGroup/index.d.ts +1 -1
  37. package/dist/{components → src/components}/Card/index.d.ts +1 -1
  38. package/dist/{components → src/components}/Drawer/index.d.ts +4 -2
  39. package/dist/src/components/Fill/index.d.ts +3 -0
  40. package/dist/{components → src/components}/InputGroup/index.d.ts +1 -1
  41. package/dist/{components → src/components}/Menu/index.d.ts +3 -2
  42. package/dist/{components → src/components}/Modal/index.d.ts +3 -2
  43. package/dist/{components → src/components}/Portal/index.d.ts +1 -1
  44. package/dist/{components → src/components}/Progress/index.d.ts +1 -1
  45. package/dist/src/components/Spacer/index.d.ts +6 -0
  46. package/dist/{components → src/components}/Spinner/index.d.ts +1 -1
  47. package/dist/src/components/Stack/index.d.ts +10 -0
  48. package/dist/{components → src/components}/Switch/index.d.ts +1 -1
  49. package/dist/{components → src/components}/Tabs/index.d.ts +1 -1
  50. package/dist/{components → src/components}/Tooltip/index.d.ts +2 -2
  51. package/dist/{components → src/components}/Typography/index.d.ts +1 -1
  52. package/dist/{hooks → src/hooks}/useClasses.d.ts +2 -2
  53. package/dist/{providers → src/providers}/ThemeProvider.d.ts +28 -5
  54. package/dist/{types → src/types}/index.d.ts +6 -1
  55. package/package.json +23 -24
  56. package/dist/components/Spacer/index.d.ts +0 -6
  57. package/dist/components/Stack/index.d.ts +0 -10
  58. /package/dist/{axios → src/axios}/index.d.ts +0 -0
  59. /package/dist/{axios → src/axios}/types.d.ts +0 -0
  60. /package/dist/{axios → src/axios}/useAxios.d.ts +0 -0
  61. /package/dist/{components → src/components}/Skeleton/index.d.ts +0 -0
  62. /package/dist/{components → src/components}/Table/index.d.ts +0 -0
  63. /package/dist/{components → src/components}/index.d.ts +0 -0
  64. /package/dist/{helpers → src/helpers}/cn.d.ts +0 -0
  65. /package/dist/{helpers → src/helpers}/copy.d.ts +0 -0
  66. /package/dist/{helpers → src/helpers}/index.d.ts +0 -0
  67. /package/dist/{helpers → src/helpers}/isEmpty.d.ts +0 -0
  68. /package/dist/{helpers → src/helpers}/isServer.d.ts +0 -0
  69. /package/dist/{helpers → src/helpers}/randomID.d.ts +0 -0
  70. /package/dist/{helpers → src/helpers}/replaceNonDigits.d.ts +0 -0
  71. /package/dist/{helpers → src/helpers}/replacePersianNumbers.d.ts +0 -0
  72. /package/dist/{helpers → src/helpers}/scrollIntoView.d.ts +0 -0
  73. /package/dist/{helpers → src/helpers}/twoDigitNumber.d.ts +0 -0
  74. /package/dist/{helpers → src/helpers}/wait.d.ts +0 -0
  75. /package/dist/{hooks → src/hooks}/index.d.ts +0 -0
  76. /package/dist/{hooks → src/hooks}/useCreateRipple.d.ts +0 -0
  77. /package/dist/{hooks → src/hooks}/useDebounce.d.ts +0 -0
  78. /package/dist/{hooks → src/hooks}/useDocumentVisible.d.ts +0 -0
  79. /package/dist/{hooks → src/hooks}/useIsOffline.d.ts +0 -0
  80. /package/dist/{hooks → src/hooks}/usePersistedState.d.ts +0 -0
  81. /package/dist/{hooks → src/hooks}/useToggle.d.ts +0 -0
  82. /package/dist/{index.d.ts → src/index.d.ts} +0 -0
  83. /package/dist/{providers → src/providers}/index.d.ts +0 -0
package/dist/reaxify.css CHANGED
@@ -1 +1 @@
1
- /*! tailwindcss v4.1.16 | 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
+ /*! 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 } from '../types';
1
+ import { ChildrenProps } from '../../types';
2
2
  import { AxiosConfig } from './types';
3
3
  type Props = Partial<AxiosConfig> & ChildrenProps;
4
4
  export declare const AxiosContext: import('react').Context<AxiosConfig>;
@@ -1,4 +1,4 @@
1
- import { ChildrenProps, ComponentPropsWithAs } from '../../types';
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;
@@ -1,4 +1,4 @@
1
- import { BadgeVariant, Color, ComponentPropsWithAs, Size } from '../../types';
1
+ import { BadgeVariant, Color, ComponentPropsWithAs, Size } from '../../../types';
2
2
  import { ElementType } from 'react';
3
3
  type BadgeProps = {
4
4
  variant?: BadgeVariant;
@@ -1,9 +1,9 @@
1
- import { ButtonVariant, Color, ComponentPropsWithAs, Size } from '../../types';
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 | null;
6
- size?: 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 '../../types';
1
+ import { ComponentPropsWithAs } from '../../../types';
2
2
  import { ElementType } from 'react';
3
3
  import { ButtonProps } from '../Button';
4
4
  type ButtonGroupProps = {
@@ -1,4 +1,4 @@
1
- import { ComponentPropsWithAs } from '../../types';
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 '../../types';
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;
@@ -0,0 +1,3 @@
1
+ import { ComponentPropsWithAs } from '../../../types';
2
+ import { ElementType } from 'react';
3
+ export default function Fill<E extends ElementType = "div">({ className, ...props }: ComponentPropsWithAs<E>): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { ComponentPropsWithAs } from '../../types';
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 '../../types';
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 '../../types';
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 '../../types';
1
+ import { ChildrenProps } from '../../../types';
2
2
  export default function Portal({ children }: ChildrenProps): import('react').ReactPortal | null;
@@ -1,4 +1,4 @@
1
- import { Color } from '../../types';
1
+ import { Color } from '../../../types';
2
2
  import { ComponentProps } from 'react';
3
3
  type ValueAnimation = {
4
4
  value: number;
@@ -0,0 +1,6 @@
1
+ import { ComponentPropsWithoutAs } from '../../../types';
2
+ type SpacerProps = ComponentPropsWithoutAs<"div", {
3
+ children?: never;
4
+ }>;
5
+ export default function Spacer({ className, ...props }: SpacerProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1,4 +1,4 @@
1
- import { Color, ComponentPropsWithoutAs, Size } from '../../types';
1
+ import { Color, ComponentPropsWithoutAs, Size } from '../../../types';
2
2
  type Props = {
3
3
  color?: Color | null;
4
4
  size?: Size;
@@ -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, Size } from '../../types';
1
+ import { Color, ComponentPropsWithoutAs, Size } from '../../../types';
2
2
  import { Dispatch } from 'react';
3
3
  type Props = {
4
4
  checked?: boolean;
@@ -1,4 +1,4 @@
1
- import { ChildrenProps } from '../../types';
1
+ import { ChildrenProps } from '../../../types';
2
2
  import { ComponentProps, Dispatch } from 'react';
3
3
  import { default as Button } from '../Button';
4
4
  type TabsProps = {
@@ -1,4 +1,4 @@
1
- import { Color, ComponentPropsWithoutAs } from '../../types';
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 '../../types';
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 '../providers/ThemeProvider';
2
- import { DeepPartial } from '../types';
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 '../types';
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,28 @@ export type ThemeProviderContextType = {
32
33
  button: {
33
34
  base: string;
34
35
  color: ColorClasses<Record<ButtonVariant, string>>;
35
- size: SizeClasses;
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
+ };
38
58
  buttonGroup: {
39
59
  base: string;
40
60
  orientation: {
@@ -136,11 +156,14 @@ export type ThemeProviderContextType = {
136
156
  };
137
157
  stack: {
138
158
  base: string;
139
- variants: {
140
- horizontal: string;
141
- vertical: string;
159
+ directions: {
160
+ row: string;
161
+ column: string;
142
162
  };
143
163
  };
164
+ fill: {
165
+ base: string;
166
+ };
144
167
  table: {
145
168
  base: string;
146
169
  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.85",
4
+ "version": "0.0.86",
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.3.1"
58
+ "tailwind-merge": "^3.5.0"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "axios": ">=1.0.0",
@@ -63,35 +63,34 @@
63
63
  "react-dom": ">=19.0.0"
64
64
  },
65
65
  "devDependencies": {
66
- "@chromatic-com/storybook": "^1.9.0",
67
- "@storybook/addon-essentials": "^8.6.11",
68
- "@storybook/addon-interactions": "^8.6.11",
69
- "@storybook/addon-links": "^8.6.11",
70
- "@storybook/addon-onboarding": "^8.6.11",
71
- "@storybook/blocks": "^8.6.11",
72
- "@storybook/react": "^8.6.11",
73
- "@storybook/react-vite": "^8.6.11",
74
- "@storybook/test": "^8.6.11",
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": "^18.2.43",
77
- "@types/react-dom": "^18.2.17",
76
+ "@types/react": "^19.2.14",
77
+ "@types/react-dom": "^19.2.3",
78
78
  "@types/react-transition-group": "^4.4.11",
79
- "@typescript-eslint/eslint-plugin": "^6.14.0",
80
- "@typescript-eslint/parser": "^6.14.0",
81
- "@vitejs/plugin-react-swc": "^3.5.0",
79
+ "@typescript-eslint/eslint-plugin": "^8.59.0",
80
+ "@typescript-eslint/parser": "^8.59.0",
81
+ "@vitejs/plugin-react-swc": "^4.3.0",
82
82
  "axios": "^1.13.1",
83
- "eslint": "^8.55.0",
84
- "eslint-plugin-react-hooks": "^4.6.0",
85
- "eslint-plugin-react-refresh": "^0.4.5",
86
- "eslint-plugin-storybook": "^0.10.1",
83
+ "eslint": "^10.2.1",
84
+ "eslint-plugin-react-hooks": "^7.1.1",
85
+ "eslint-plugin-react-refresh": "^0.5.2",
87
86
  "react": "^19.2.0",
88
87
  "react-dom": "^19.2.0",
89
- "storybook": "^8.6.11",
88
+ "storybook": "^8.6.14",
90
89
  "tailwindcss": "^4.1.16",
91
- "typescript": "^5.7.2",
90
+ "typescript": "^6.0.3",
92
91
  "vite": "^6.3.5",
93
92
  "vite-plugin-dts": "^4.5.4",
94
- "vite-plugin-static-copy": "^3.1.1",
95
- "vite-tsconfig-paths": "^5.1.4"
93
+ "vite-plugin-static-copy": "^4.1.0",
94
+ "vite-tsconfig-paths": "^6.1.1"
96
95
  }
97
96
  }
@@ -1,6 +0,0 @@
1
- import { ComponentPropsWithoutAs } from '../../types';
2
- type SkeletonProps = ComponentPropsWithoutAs<"span", {
3
- children?: never;
4
- }>;
5
- export default function Spacer({ className, ...props }: SkeletonProps): import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -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