reaxify 0.0.86 → 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.
@@ -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;
@@ -55,6 +55,27 @@ export type ThemeProviderContextType = {
55
55
  base: string;
56
56
  };
57
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
+ };
58
79
  buttonGroup: {
59
80
  base: string;
60
81
  orientation: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "reaxify",
3
3
  "private": false,
4
- "version": "0.0.86",
4
+ "version": "0.0.87",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
7
7
  "files": [
@@ -76,13 +76,14 @@
76
76
  "@types/react": "^19.2.14",
77
77
  "@types/react-dom": "^19.2.3",
78
78
  "@types/react-transition-group": "^4.4.11",
79
- "@typescript-eslint/eslint-plugin": "^8.59.0",
80
- "@typescript-eslint/parser": "^8.59.0",
81
- "@vitejs/plugin-react-swc": "^4.3.0",
79
+ "@typescript-eslint/eslint-plugin": "^6.14.0",
80
+ "@typescript-eslint/parser": "^6.14.0",
81
+ "@vitejs/plugin-react-swc": "^3.5.0",
82
82
  "axios": "^1.13.1",
83
- "eslint": "^10.2.1",
84
- "eslint-plugin-react-hooks": "^7.1.1",
85
- "eslint-plugin-react-refresh": "^0.5.2",
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",
86
87
  "react": "^19.2.0",
87
88
  "react-dom": "^19.2.0",
88
89
  "storybook": "^8.6.14",