@aic-kits/react 0.0.21 → 0.1.2
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/Art/BrandArt.d.ts +3 -0
- package/dist/components/Art/EmojiArt.d.ts +3 -0
- package/dist/components/Art/IconArt.d.ts +3 -0
- package/dist/components/Art/ImageArt.d.ts +3 -0
- package/dist/components/Art/SvgArt.d.ts +3 -0
- package/dist/components/Art/index.d.ts +11 -0
- package/dist/components/Art/types.d.ts +75 -0
- package/dist/components/Art/utils.d.ts +16 -0
- package/dist/components/Base/index.d.ts +4 -0
- package/dist/components/Base/types.d.ts +15 -0
- package/dist/components/Button/StyledButton.d.ts +30 -0
- package/dist/components/Button/index.d.ts +54 -0
- package/dist/components/Button/utils.d.ts +3 -0
- package/dist/components/Divider/StyledDivider.d.ts +12 -0
- package/dist/components/Divider/index.d.ts +21 -0
- package/dist/components/Header/index.d.ts +4 -0
- package/dist/components/Header/types.d.ts +57 -0
- package/dist/components/Input/StyledInput.d.ts +11 -0
- package/dist/components/Input/index.d.ts +54 -0
- package/dist/components/List/index.d.ts +46 -0
- package/dist/components/Loading/StyledLoading.d.ts +10 -0
- package/dist/components/Loading/index.d.ts +4 -0
- package/dist/components/Loading/types.d.ts +28 -0
- package/dist/components/Skeleton/SkeletonBackground.d.ts +11 -0
- package/dist/components/Skeleton/SkeletonWrapper.d.ts +37 -0
- package/dist/components/Skeleton/index.d.ts +4 -0
- package/dist/components/Skeleton/types.d.ts +19 -0
- package/dist/components/Touchable/index.d.ts +4 -0
- package/dist/components/Touchable/types.d.ts +21 -0
- package/dist/components/Vimeo/Player.d.ts +26 -0
- package/dist/components/Vimeo/constants.d.ts +17 -0
- package/dist/components/Vimeo/index.d.ts +5 -0
- package/dist/components/Vimeo/types.d.ts +115 -0
- package/dist/components/Vimeo/utils.d.ts +17 -0
- package/dist/components/index.d.ts +11 -0
- package/dist/index.cjs +181 -25
- package/dist/index.js +4508 -3368
- package/dist/theme/components/art.d.ts +5 -0
- package/dist/theme/components/base.d.ts +8 -0
- package/dist/theme/components/button.d.ts +12 -0
- package/dist/theme/components/divider.d.ts +6 -0
- package/dist/theme/components/header.d.ts +7 -0
- package/dist/theme/components/index.d.ts +37 -0
- package/dist/theme/components/input.d.ts +14 -0
- package/dist/theme/components/list.d.ts +6 -0
- package/dist/theme/components/loading.d.ts +16 -0
- package/dist/theme/components/skeleton.d.ts +22 -0
- package/dist/theme/components/touchable.d.ts +14 -0
- package/dist/theme/components/vimeo.d.ts +15 -0
- package/dist/theme/getTheme.d.ts +10 -21
- package/dist/theme/index.d.ts +2 -0
- package/package.json +2 -2
- package/dist/components/Example.d.ts +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Theme } from '../';
|
|
2
|
+
export interface ButtonThemeConfig {
|
|
3
|
+
squircleBorderRadii: {
|
|
4
|
+
circle: string;
|
|
5
|
+
rounded: string;
|
|
6
|
+
square: string;
|
|
7
|
+
};
|
|
8
|
+
loadingConfig: {
|
|
9
|
+
size: string;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export declare const buttonTheme: (_theme: Theme) => ButtonThemeConfig;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Theme } from '../';
|
|
2
|
+
import { ArtThemeConfig } from './art';
|
|
3
|
+
import { BaseThemeConfig } from './base';
|
|
4
|
+
import { ButtonThemeConfig } from './button';
|
|
5
|
+
import { DividerThemeConfig } from './divider';
|
|
6
|
+
import { HeaderThemeConfig } from './header';
|
|
7
|
+
import { InputThemeConfig } from './input';
|
|
8
|
+
import { ListThemeConfig } from './list';
|
|
9
|
+
import { LoadingThemeConfig } from './loading';
|
|
10
|
+
import { SkeletonThemeConfig } from './skeleton';
|
|
11
|
+
import { TouchableThemeConfig } from './touchable';
|
|
12
|
+
import { VimeoThemeConfig } from './vimeo';
|
|
13
|
+
export interface ComponentsTheme {
|
|
14
|
+
art: ArtThemeConfig;
|
|
15
|
+
base: BaseThemeConfig;
|
|
16
|
+
button: ButtonThemeConfig;
|
|
17
|
+
divider: DividerThemeConfig;
|
|
18
|
+
header: HeaderThemeConfig;
|
|
19
|
+
input: InputThemeConfig;
|
|
20
|
+
list: ListThemeConfig;
|
|
21
|
+
loading: LoadingThemeConfig;
|
|
22
|
+
skeleton: SkeletonThemeConfig;
|
|
23
|
+
touchable: TouchableThemeConfig;
|
|
24
|
+
vimeo: VimeoThemeConfig;
|
|
25
|
+
}
|
|
26
|
+
export declare const getComponentsTheme: (theme: Theme) => ComponentsTheme;
|
|
27
|
+
export * from './art';
|
|
28
|
+
export * from './base';
|
|
29
|
+
export * from './button';
|
|
30
|
+
export * from './divider';
|
|
31
|
+
export * from './header';
|
|
32
|
+
export * from './input';
|
|
33
|
+
export * from './list';
|
|
34
|
+
export * from './loading';
|
|
35
|
+
export * from './skeleton';
|
|
36
|
+
export * from './touchable';
|
|
37
|
+
export * from './vimeo';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Theme } from '..';
|
|
2
|
+
export interface InputThemeConfig {
|
|
3
|
+
defaultBorderColor: string;
|
|
4
|
+
activeBorderColor: string;
|
|
5
|
+
errorColor: string;
|
|
6
|
+
disabledBgColor: string;
|
|
7
|
+
defaultBgColor: string;
|
|
8
|
+
borderRadius: string;
|
|
9
|
+
padding: {
|
|
10
|
+
vertical: string;
|
|
11
|
+
horizontal: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export declare const inputTheme: (_theme: Theme) => InputThemeConfig;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Theme } from '../';
|
|
2
|
+
export type LoadingSize = 'small' | 'medium' | 'large';
|
|
3
|
+
export interface LoadingThemeConfig {
|
|
4
|
+
sizes: Record<LoadingSize, string>;
|
|
5
|
+
strokeWidths: Record<LoadingSize, string>;
|
|
6
|
+
arc: {
|
|
7
|
+
minAngle: number;
|
|
8
|
+
maxAngle: number;
|
|
9
|
+
};
|
|
10
|
+
animation: {
|
|
11
|
+
loopInterval: number;
|
|
12
|
+
showingDuration: number;
|
|
13
|
+
contentShowingDuration: number;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export declare const loadingTheme: (_theme: Theme) => LoadingThemeConfig;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Theme } from '..';
|
|
2
|
+
export interface SkeletonThemeConfig {
|
|
3
|
+
animation: {
|
|
4
|
+
duration: number;
|
|
5
|
+
gradient: {
|
|
6
|
+
start: string;
|
|
7
|
+
middle: string;
|
|
8
|
+
end: string;
|
|
9
|
+
};
|
|
10
|
+
transition: {
|
|
11
|
+
fadeInDuration: number;
|
|
12
|
+
fadeOutDuration: number;
|
|
13
|
+
contentFadeDuration: number;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
borderRadius: {
|
|
17
|
+
rectangle: string;
|
|
18
|
+
rounded: string;
|
|
19
|
+
circle: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export declare const skeletonTheme: (_theme: Theme) => SkeletonThemeConfig;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Theme } from '../';
|
|
2
|
+
export type TouchableHapticFeedbackType = 'soft' | 'light' | 'medium' | 'heavy' | 'none';
|
|
3
|
+
export interface TouchableThemeConfig {
|
|
4
|
+
animation: {
|
|
5
|
+
minScale: number;
|
|
6
|
+
maxScale: number;
|
|
7
|
+
minOpacity: number;
|
|
8
|
+
maxOpacity: number;
|
|
9
|
+
springConfig: {
|
|
10
|
+
mass: number;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export declare const touchableTheme: (_theme: Theme) => TouchableThemeConfig;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Theme } from '..';
|
|
2
|
+
export interface VimeoThemeConfig {
|
|
3
|
+
defaultAccentColor: string;
|
|
4
|
+
aspectRatio: number;
|
|
5
|
+
playerSettings: {
|
|
6
|
+
autoplay: boolean;
|
|
7
|
+
muted: boolean;
|
|
8
|
+
loop: boolean;
|
|
9
|
+
title: boolean;
|
|
10
|
+
byline: boolean;
|
|
11
|
+
portrait: boolean;
|
|
12
|
+
controls: boolean;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export declare const vimeoTheme: (_theme: Theme) => VimeoThemeConfig;
|
package/dist/theme/getTheme.d.ts
CHANGED
|
@@ -1,30 +1,19 @@
|
|
|
1
|
-
import { BorderWidths, Radii, ColorPalette, Spaces, Fonts } from './common';
|
|
2
|
-
|
|
3
|
-
text: {
|
|
4
|
-
fontSizes: import('./common').FontSizes;
|
|
5
|
-
lineHeights: import('./common').LineHeights;
|
|
6
|
-
fontWeights: {
|
|
7
|
-
thin: number;
|
|
8
|
-
black: number;
|
|
9
|
-
medium: number;
|
|
10
|
-
"extra-light": number;
|
|
11
|
-
light: number;
|
|
12
|
-
regular: number;
|
|
13
|
-
semibold: number;
|
|
14
|
-
bold: number;
|
|
15
|
-
extrabold: number;
|
|
16
|
-
};
|
|
17
|
-
fonts: Fonts;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
1
|
+
import { BorderWidths, Radii, ColorPalette, Spaces, Fonts, getFontSizes, getLineHeights, getFontWeights } from './common';
|
|
2
|
+
import { ComponentsTheme } from './components';
|
|
20
3
|
export interface Theme {
|
|
21
4
|
space: Spaces;
|
|
22
5
|
colors: ColorPalette;
|
|
23
6
|
radii: Radii;
|
|
24
7
|
borderWidths: BorderWidths;
|
|
25
8
|
fonts: Fonts;
|
|
26
|
-
__hd__:
|
|
9
|
+
__hd__: {
|
|
10
|
+
text: {
|
|
11
|
+
fontSizes: ReturnType<typeof getFontSizes>;
|
|
12
|
+
lineHeights: ReturnType<typeof getLineHeights>;
|
|
13
|
+
fontWeights: ReturnType<typeof getFontWeights>;
|
|
14
|
+
fonts: Fonts;
|
|
15
|
+
};
|
|
16
|
+
} & ComponentsTheme;
|
|
27
17
|
}
|
|
28
18
|
export declare function getTheme(): Theme;
|
|
29
19
|
export declare const defaultTheme: Theme;
|
|
30
|
-
export {};
|
package/dist/theme/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aic-kits/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"vite-plugin-dts": "^4.3.0",
|
|
46
46
|
"vitest": "^2.1.8"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "8c2da6fb666bdfd637fdb0e702831241df975fd8"
|
|
49
49
|
}
|
|
File without changes
|