@aic-kits/react 0.0.21 → 0.1.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.
Files changed (32) hide show
  1. package/dist/components/Art/BrandArt.d.ts +3 -0
  2. package/dist/components/Art/EmojiArt.d.ts +3 -0
  3. package/dist/components/Art/IconArt.d.ts +3 -0
  4. package/dist/components/Art/ImageArt.d.ts +3 -0
  5. package/dist/components/Art/SvgArt.d.ts +3 -0
  6. package/dist/components/Art/index.d.ts +11 -0
  7. package/dist/components/Art/types.d.ts +75 -0
  8. package/dist/components/Art/utils.d.ts +16 -0
  9. package/dist/components/Base/BaseFooter.d.ts +8 -0
  10. package/dist/components/Base/index.d.ts +4 -0
  11. package/dist/components/Base/types.d.ts +44 -0
  12. package/dist/components/Button/StyledButton.d.ts +25 -0
  13. package/dist/components/Button/index.d.ts +54 -0
  14. package/dist/components/Button/utils.d.ts +3 -0
  15. package/dist/components/Loading/StyledLoading.d.ts +10 -0
  16. package/dist/components/Loading/index.d.ts +4 -0
  17. package/dist/components/Loading/types.d.ts +28 -0
  18. package/dist/components/Touchable/index.d.ts +4 -0
  19. package/dist/components/Touchable/types.d.ts +21 -0
  20. package/dist/components/index.d.ts +5 -0
  21. package/dist/index.cjs +96 -25
  22. package/dist/index.js +3551 -3032
  23. package/dist/theme/components/art.d.ts +5 -0
  24. package/dist/theme/components/base.d.ts +8 -0
  25. package/dist/theme/components/button.d.ts +12 -0
  26. package/dist/theme/components/index.d.ts +19 -0
  27. package/dist/theme/components/loading.d.ts +16 -0
  28. package/dist/theme/components/touchable.d.ts +14 -0
  29. package/dist/theme/getTheme.d.ts +10 -21
  30. package/dist/theme/index.d.ts +2 -0
  31. package/package.json +2 -2
  32. package/dist/components/Example.d.ts +0 -0
@@ -0,0 +1,5 @@
1
+ import { Theme } from '../';
2
+ export interface ArtThemeConfig {
3
+ defaultSize: string;
4
+ }
5
+ export declare const artTheme: (_theme: Theme) => ArtThemeConfig;
@@ -0,0 +1,8 @@
1
+ import { Theme } from '../';
2
+ export interface BaseThemeConfig {
3
+ defaultBackgroundColor: string;
4
+ defaultHeaderParams: {
5
+ backgroundColor: string;
6
+ };
7
+ }
8
+ export declare const baseTheme: (_theme: Theme) => BaseThemeConfig;
@@ -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,19 @@
1
+ import { Theme } from '../';
2
+ import { ArtThemeConfig } from './art';
3
+ import { BaseThemeConfig } from './base';
4
+ import { ButtonThemeConfig } from './button';
5
+ import { LoadingThemeConfig } from './loading';
6
+ import { TouchableThemeConfig } from './touchable';
7
+ export interface ComponentsTheme {
8
+ base: BaseThemeConfig;
9
+ art: ArtThemeConfig;
10
+ button: ButtonThemeConfig;
11
+ loading: LoadingThemeConfig;
12
+ touchable: TouchableThemeConfig;
13
+ }
14
+ export declare const getComponentsTheme: (theme: Theme) => ComponentsTheme;
15
+ export * from './art';
16
+ export * from './base';
17
+ export * from './button';
18
+ export * from './loading';
19
+ export * from './touchable';
@@ -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,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;
@@ -1,30 +1,19 @@
1
- import { BorderWidths, Radii, ColorPalette, Spaces, Fonts } from './common';
2
- declare const hd: {
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__: typeof 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 {};
@@ -2,4 +2,6 @@ import { default as ThemeProvider, useTheme } from './ThemeProvider';
2
2
  export { ThemeProvider, useTheme };
3
3
  export * from './common';
4
4
  export * from './getTheme';
5
+ export * from './ThemeProvider';
5
6
  export * from './styled';
7
+ export * from './components';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aic-kits/react",
3
- "version": "0.0.21",
3
+ "version": "0.1.0",
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": "27947a68100d3e48f929dae705c7b3464443f465"
48
+ "gitHead": "9ea26368cfdd345b4e6f5df4f076d7c2b453a10b"
49
49
  }
File without changes