@aic-kits/react 0.3.0 → 0.4.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.
@@ -1,4 +1,4 @@
1
- export type Size = 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl';
1
+ export type Size = '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl';
2
2
  export type Sizes = Record<Size, number>;
3
3
  export declare const getSizes: (baseSize: number) => Sizes;
4
4
  export declare const isSize: (value: string) => value is Size;
@@ -1,5 +1,5 @@
1
1
  import { Scale } from './scale';
2
- export type FontSize = 'xs' | 'small' | 'medium' | 'large' | 'xl' | '2xl' | '3xl';
2
+ export type FontSize = '2xs' | 'xs' | 'small' | 'medium' | 'large' | 'xl' | '2xl' | '3xl';
3
3
  export type FontWeight = 'extra-light' | 'thin' | 'light' | 'regular' | 'medium' | 'semibold' | 'bold' | 'extrabold' | 'black';
4
4
  export type Typeface = 'neutral';
5
5
  type Fonts = Record<Typeface, string>;
@@ -1,5 +1,11 @@
1
1
  import { Theme } from '../';
2
+ import { Size } from '../common';
2
3
  export interface ArtThemeConfig {
3
- defaultSize: string;
4
+ defaultSize: Size | string;
5
+ defaultIconSize?: Size | string;
6
+ defaultEmojiSize?: Size | string;
7
+ defaultBrandSize?: Size | string;
8
+ defaultImageSize?: Size | string;
9
+ defaultSvgSize?: Size | string;
4
10
  }
5
11
  export declare const artTheme: (_theme: Theme) => ArtThemeConfig;
@@ -1,5 +1,5 @@
1
1
  import { Theme } from '../';
2
- import { Color } from '../common';
2
+ import { BorderWidth, Color, Space } from '../common';
3
3
  export interface ButtonThemeConfig {
4
4
  squircleBorderRadii: {
5
5
  circle: string;
@@ -9,13 +9,16 @@ export interface ButtonThemeConfig {
9
9
  loadingConfig: {
10
10
  size: string;
11
11
  };
12
- defaultColor?: Color;
13
- defaultTextColor?: Color;
12
+ defaultColor: Color;
13
+ defaultTextColor: Color;
14
+ borderWidth: BorderWidth;
15
+ iconSpacing?: Space;
14
16
  variants?: Record<string, {
15
17
  bgColor?: Color;
16
18
  textColor?: Color;
17
19
  borderColor?: Color;
18
- padding?: string;
20
+ paddingHorizontal?: Space;
21
+ paddingVertical?: Space;
19
22
  }>;
20
23
  }
21
24
  export declare const buttonTheme: (_theme: Theme) => ButtonThemeConfig;
@@ -1,7 +1,7 @@
1
1
  import { Theme } from '..';
2
+ import { Size } from '../common';
2
3
  export interface HeaderThemeConfig {
3
4
  defaultBackgroundColor: string;
5
+ avatarSize?: Size | number;
4
6
  }
5
- export declare const headerTheme: (_theme: Theme) => {
6
- defaultBackgroundColor: string;
7
- };
7
+ export declare const headerTheme: (_theme: Theme) => HeaderThemeConfig;
@@ -1,14 +1,19 @@
1
1
  import { Theme } from '..';
2
+ import { FontSize, Color, Radius, Space, BorderWidth } from '../common';
2
3
  export interface InputThemeConfig {
3
- defaultBorderColor: string;
4
- activeBorderColor: string;
5
- errorColor: string;
6
- disabledBgColor: string;
7
- defaultBgColor: string;
8
- borderRadius: string;
4
+ defaultBorderColor: Color;
5
+ activeBorderColor: Color;
6
+ errorColor: Color;
7
+ disabledBgColor: Color;
8
+ defaultBgColor: Color;
9
+ borderRadius: Radius;
10
+ borderWidth: BorderWidth;
9
11
  padding: {
10
- vertical: string;
11
- horizontal: string;
12
+ vertical: Space;
13
+ horizontal: Space;
12
14
  };
15
+ fontSize: FontSize;
16
+ placeholderColor: Color;
17
+ iconSpacing: Space;
13
18
  }
14
19
  export declare const inputTheme: (_theme: Theme) => InputThemeConfig;
@@ -1,7 +1,8 @@
1
- import { BorderWidths, Radii, ColorPalette, Spaces, Fonts, getFontSizes, getLineHeights, getFontWeights } from './common';
1
+ import { BorderWidths, Radii, ColorPalette, Spaces, Fonts, Sizes, getFontSizes, getLineHeights, getFontWeights } from './common';
2
2
  import { ComponentsTheme } from './components';
3
3
  export interface Theme {
4
- space: Spaces;
4
+ spaces: Spaces;
5
+ sizes: Sizes;
5
6
  colors: ColorPalette;
6
7
  radii: Radii;
7
8
  borderWidths: BorderWidths;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aic-kits/react",
3
- "version": "0.3.0",
3
+ "version": "0.4.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": "d04e9c1d749a6ce1ccf915e2310265a34e77afa0"
48
+ "gitHead": "b579eb24795331f64da96f0d67eef5c93d0c23ca"
49
49
  }