@spark-ui/components 10.0.13 → 10.1.1
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/CHANGELOG.md +16 -0
- package/dist/avatar/index.d.mts +66 -0
- package/dist/avatar/index.d.ts +66 -0
- package/dist/avatar/index.js +1242 -0
- package/dist/avatar/index.js.map +1 -0
- package/dist/avatar/index.mjs +265 -0
- package/dist/avatar/index.mjs.map +1 -0
- package/dist/tabs/index.js +2 -3
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +2 -3
- package/dist/tabs/index.mjs.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [10.1.1](https://github.com/leboncoin/spark-web/compare/v10.1.0...v10.1.1) (2025-04-08)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **components:** improved tabs trigger focus speed ([71a1ef7](https://github.com/leboncoin/spark-web/commit/71a1ef75efb87100ec9e301ecf0a5ba13a62d8e3))
|
|
11
|
+
|
|
12
|
+
# [10.1.0](https://github.com/leboncoin/spark-web/compare/v10.0.13...v10.1.0) (2025-04-08)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
- **components:** avatar feedbacks after testing session ([4dcd7cb](https://github.com/leboncoin/spark-web/commit/4dcd7cb80b4285107877f7501794fd5dd41736c2))
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
- **components:** avatar component ([ef7c3e2](https://github.com/leboncoin/spark-web/commit/ef7c3e2ced314d11285ad83d4cf7228028e7f781))
|
|
21
|
+
|
|
6
22
|
## [10.0.13](https://github.com/leboncoin/spark-web/compare/v10.0.12...v10.0.13) (2025-04-03)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @spark-ui/components
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
4
|
+
|
|
5
|
+
interface AvatarImageProps$1 extends React.ImgHTMLAttributes<HTMLImageElement> {
|
|
6
|
+
asChild?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const AvatarImage: {
|
|
9
|
+
({ className, asChild, src, ...props }: AvatarImageProps$1): react_jsx_runtime.JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
interface AvatarActionProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
14
|
+
asChild?: boolean;
|
|
15
|
+
angle?: number;
|
|
16
|
+
ariaLabel: string;
|
|
17
|
+
}
|
|
18
|
+
declare const AvatarAction: {
|
|
19
|
+
({ className, children, asChild, angle, ariaLabel, ...props }: AvatarActionProps): react_jsx_runtime.JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
interface AvatarOnlineBadgeProps extends ComponentPropsWithoutRef<'div'> {
|
|
24
|
+
angle?: number;
|
|
25
|
+
}
|
|
26
|
+
declare const AvatarOnlineBadge: {
|
|
27
|
+
({ angle, ...props }: AvatarOnlineBadgeProps): react_jsx_runtime.JSX.Element | null;
|
|
28
|
+
displayName: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
interface AvatarImageProps extends React.ImgHTMLAttributes<HTMLDivElement> {
|
|
32
|
+
asChild?: boolean;
|
|
33
|
+
}
|
|
34
|
+
declare const AvatarUser: {
|
|
35
|
+
({ asChild, children, className, ...props }: AvatarImageProps): react_jsx_runtime.JSX.Element;
|
|
36
|
+
displayName: string;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
interface AvatarPlaceholderProps extends React.ImgHTMLAttributes<HTMLDivElement> {
|
|
40
|
+
className?: string;
|
|
41
|
+
children?: React.ReactNode;
|
|
42
|
+
}
|
|
43
|
+
declare const AvatarPlaceholder: {
|
|
44
|
+
({ className, children, ...props }: AvatarPlaceholderProps): react_jsx_runtime.JSX.Element;
|
|
45
|
+
displayName: string;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
interface AvatarProps extends react.HTMLAttributes<HTMLDivElement> {
|
|
49
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
50
|
+
isOnline?: boolean;
|
|
51
|
+
onlineText?: string;
|
|
52
|
+
username: string;
|
|
53
|
+
asChild?: boolean;
|
|
54
|
+
design?: 'circle' | 'square';
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
interface AvatarComponent extends React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>> {
|
|
58
|
+
Image: typeof AvatarImage;
|
|
59
|
+
Action: typeof AvatarAction;
|
|
60
|
+
OnlineBadge: typeof AvatarOnlineBadge;
|
|
61
|
+
User: typeof AvatarUser;
|
|
62
|
+
Placeholder: typeof AvatarPlaceholder;
|
|
63
|
+
}
|
|
64
|
+
declare const AvatarComponent: AvatarComponent;
|
|
65
|
+
|
|
66
|
+
export { AvatarComponent as Avatar, AvatarComponent };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
4
|
+
|
|
5
|
+
interface AvatarImageProps$1 extends React.ImgHTMLAttributes<HTMLImageElement> {
|
|
6
|
+
asChild?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const AvatarImage: {
|
|
9
|
+
({ className, asChild, src, ...props }: AvatarImageProps$1): react_jsx_runtime.JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
interface AvatarActionProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
14
|
+
asChild?: boolean;
|
|
15
|
+
angle?: number;
|
|
16
|
+
ariaLabel: string;
|
|
17
|
+
}
|
|
18
|
+
declare const AvatarAction: {
|
|
19
|
+
({ className, children, asChild, angle, ariaLabel, ...props }: AvatarActionProps): react_jsx_runtime.JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
interface AvatarOnlineBadgeProps extends ComponentPropsWithoutRef<'div'> {
|
|
24
|
+
angle?: number;
|
|
25
|
+
}
|
|
26
|
+
declare const AvatarOnlineBadge: {
|
|
27
|
+
({ angle, ...props }: AvatarOnlineBadgeProps): react_jsx_runtime.JSX.Element | null;
|
|
28
|
+
displayName: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
interface AvatarImageProps extends React.ImgHTMLAttributes<HTMLDivElement> {
|
|
32
|
+
asChild?: boolean;
|
|
33
|
+
}
|
|
34
|
+
declare const AvatarUser: {
|
|
35
|
+
({ asChild, children, className, ...props }: AvatarImageProps): react_jsx_runtime.JSX.Element;
|
|
36
|
+
displayName: string;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
interface AvatarPlaceholderProps extends React.ImgHTMLAttributes<HTMLDivElement> {
|
|
40
|
+
className?: string;
|
|
41
|
+
children?: React.ReactNode;
|
|
42
|
+
}
|
|
43
|
+
declare const AvatarPlaceholder: {
|
|
44
|
+
({ className, children, ...props }: AvatarPlaceholderProps): react_jsx_runtime.JSX.Element;
|
|
45
|
+
displayName: string;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
interface AvatarProps extends react.HTMLAttributes<HTMLDivElement> {
|
|
49
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
50
|
+
isOnline?: boolean;
|
|
51
|
+
onlineText?: string;
|
|
52
|
+
username: string;
|
|
53
|
+
asChild?: boolean;
|
|
54
|
+
design?: 'circle' | 'square';
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
interface AvatarComponent extends React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>> {
|
|
58
|
+
Image: typeof AvatarImage;
|
|
59
|
+
Action: typeof AvatarAction;
|
|
60
|
+
OnlineBadge: typeof AvatarOnlineBadge;
|
|
61
|
+
User: typeof AvatarUser;
|
|
62
|
+
Placeholder: typeof AvatarPlaceholder;
|
|
63
|
+
}
|
|
64
|
+
declare const AvatarComponent: AvatarComponent;
|
|
65
|
+
|
|
66
|
+
export { AvatarComponent as Avatar, AvatarComponent };
|