@aic-kits/react 0.26.3 → 0.27.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/Tooltip/index.d.ts +4 -0
- package/dist/components/Tooltip/types.d.ts +27 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.cjs +61 -61
- package/dist/index.js +1937 -1862
- package/dist/theme/components/index.d.ts +3 -0
- package/dist/theme/components/tooltip.d.ts +34 -0
- package/package.json +2 -2
|
@@ -16,6 +16,7 @@ import { ProgressThemeConfig, ProgressSize, ProgressVariant } from './progress';
|
|
|
16
16
|
import { SelectThemeConfig, SelectSize, SelectVariant } from './select';
|
|
17
17
|
import { SkeletonThemeConfig } from './skeleton';
|
|
18
18
|
import { TagThemeConfig } from './tag';
|
|
19
|
+
import { TooltipThemeConfig } from './tooltip';
|
|
19
20
|
import { TouchableThemeConfig } from './touchable';
|
|
20
21
|
import { VimeoThemeConfig } from './vimeo';
|
|
21
22
|
export interface ComponentsTheme {
|
|
@@ -38,6 +39,7 @@ export interface ComponentsTheme {
|
|
|
38
39
|
select: SelectThemeConfig;
|
|
39
40
|
progress: ProgressThemeConfig;
|
|
40
41
|
avatar: AvatarThemeConfig;
|
|
42
|
+
tooltip: TooltipThemeConfig;
|
|
41
43
|
}
|
|
42
44
|
export declare const getComponentsTheme: (theme: Theme) => ComponentsTheme;
|
|
43
45
|
export * from './art';
|
|
@@ -59,4 +61,5 @@ export * from './checkbox';
|
|
|
59
61
|
export * from './select';
|
|
60
62
|
export * from './progress';
|
|
61
63
|
export * from './avatar';
|
|
64
|
+
export * from './tooltip';
|
|
62
65
|
export type { SelectSize, SelectVariant, ProgressSize, ProgressVariant };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Theme } from '../';
|
|
2
|
+
import { Color, FontSize, Radius, Space, Shadow } from '../common';
|
|
3
|
+
export type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';
|
|
4
|
+
export interface TooltipPositioningConfig {
|
|
5
|
+
top?: string;
|
|
6
|
+
bottom?: string;
|
|
7
|
+
left?: string;
|
|
8
|
+
right?: string;
|
|
9
|
+
transform?: string;
|
|
10
|
+
mt?: Space;
|
|
11
|
+
mb?: Space;
|
|
12
|
+
ml?: Space;
|
|
13
|
+
mr?: Space;
|
|
14
|
+
}
|
|
15
|
+
export interface TooltipThemeConfig {
|
|
16
|
+
defaultBackgroundColor: Color;
|
|
17
|
+
defaultTextColor: Color;
|
|
18
|
+
defaultPlacement: TooltipPlacement;
|
|
19
|
+
container: {
|
|
20
|
+
padding: Space;
|
|
21
|
+
borderRadius: Radius;
|
|
22
|
+
shadow: Shadow;
|
|
23
|
+
zIndex: number;
|
|
24
|
+
maxWidth: string;
|
|
25
|
+
};
|
|
26
|
+
text: {
|
|
27
|
+
fontSize: FontSize;
|
|
28
|
+
};
|
|
29
|
+
positioning: {
|
|
30
|
+
spacing: Space;
|
|
31
|
+
placements: Record<TooltipPlacement, TooltipPositioningConfig>;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export declare const tooltipTheme: (_theme: Theme) => TooltipThemeConfig;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aic-kits/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"vite-plugin-dts": "^4.3.0",
|
|
54
54
|
"vitest": "^2.1.8"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "ba01aca6b0765e79dbfe8029563b45d6330d1d29"
|
|
57
57
|
}
|