@aic-kits/react 0.18.0 → 0.19.0
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/Avatar/Avatar.d.ts +3 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Avatar/types.d.ts +19 -0
- package/dist/components/Avatar/utils.d.ts +3 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.cjs +61 -61
- package/dist/index.js +1467 -1424
- package/dist/theme/components/avatar.d.ts +12 -0
- package/dist/theme/components/index.d.ts +3 -0
- package/package.json +2 -2
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Theme } from '../';
|
|
2
|
+
import { Color, FontSize } from '../common';
|
|
3
|
+
export type AvatarSize = 'sm' | 'md' | 'lg';
|
|
4
|
+
export interface AvatarThemeConfig {
|
|
5
|
+
defaultSize: AvatarSize;
|
|
6
|
+
defaultFallbackTextSize: FontSize;
|
|
7
|
+
fallbackBackgroundColor: Color;
|
|
8
|
+
sizes: Record<AvatarSize, {
|
|
9
|
+
fallbackTextSize: FontSize;
|
|
10
|
+
}>;
|
|
11
|
+
}
|
|
12
|
+
export declare const avatarTheme: (_theme: Theme) => AvatarThemeConfig;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Theme } from '../';
|
|
2
2
|
import { AccordionThemeConfig } from './accordion';
|
|
3
3
|
import { ArtThemeConfig } from './art';
|
|
4
|
+
import { AvatarThemeConfig } from './avatar';
|
|
4
5
|
import { BaseThemeConfig } from './base';
|
|
5
6
|
import { ButtonThemeConfig } from './button';
|
|
6
7
|
import { CarouselThemeConfig } from './carousel';
|
|
@@ -36,6 +37,7 @@ export interface ComponentsTheme {
|
|
|
36
37
|
checkbox: CheckboxThemeConfig;
|
|
37
38
|
select: SelectThemeConfig;
|
|
38
39
|
progress: ProgressThemeConfig;
|
|
40
|
+
avatar: AvatarThemeConfig;
|
|
39
41
|
}
|
|
40
42
|
export declare const getComponentsTheme: (theme: Theme) => ComponentsTheme;
|
|
41
43
|
export * from './art';
|
|
@@ -56,4 +58,5 @@ export * from './tag';
|
|
|
56
58
|
export * from './checkbox';
|
|
57
59
|
export * from './select';
|
|
58
60
|
export * from './progress';
|
|
61
|
+
export * from './avatar';
|
|
59
62
|
export type { SelectSize, SelectVariant, ProgressSize, ProgressVariant };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aic-kits/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"vite-plugin-dts": "^4.3.0",
|
|
47
47
|
"vitest": "^2.1.8"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "2862cff59986f65982fc8bb0d2f8afee4e0a4e2f"
|
|
50
50
|
}
|