@aic-kits/react 0.10.3 → 0.11.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,5 +1,5 @@
1
1
  import { Scale } from './scale';
2
- export type FontSize = '2xs' | 'xs' | 'small' | 'medium' | 'large' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl';
2
+ export type FontSize = '2xs' | 'xs' | 'small' | 'medium' | 'large' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';
3
3
  export type FontWeight = 'extra-light' | 'thin' | 'light' | 'regular' | 'medium' | 'semibold' | 'bold' | 'extrabold' | 'black';
4
4
  /** Type representing the available font typefaces. */
5
5
  export type Typeface = 'neutral' | 'heading';
@@ -10,6 +10,7 @@ import { InputThemeConfig } from './input';
10
10
  import { ListThemeConfig } from './list';
11
11
  import { LoadingThemeConfig } from './loading';
12
12
  import { SkeletonThemeConfig } from './skeleton';
13
+ import { TagThemeConfig } from './tag';
13
14
  import { TouchableThemeConfig } from './touchable';
14
15
  import { VimeoThemeConfig } from './vimeo';
15
16
  export interface ComponentsTheme {
@@ -26,6 +27,7 @@ export interface ComponentsTheme {
26
27
  vimeo: VimeoThemeConfig;
27
28
  carousel: CarouselThemeConfig;
28
29
  accordion: AccordionThemeConfig;
30
+ tag: TagThemeConfig;
29
31
  }
30
32
  export declare const getComponentsTheme: (theme: Theme) => ComponentsTheme;
31
33
  export * from './art';
@@ -41,3 +43,4 @@ export * from './touchable';
41
43
  export * from './vimeo';
42
44
  export * from './carousel';
43
45
  export * from './accordion';
46
+ export * from './tag';
@@ -0,0 +1,19 @@
1
+ import { Theme } from '../';
2
+ import { Color, FontSize, Radius, Space, Size } from '../common';
3
+ export type TagSize = 'sm' | 'md' | 'lg';
4
+ export type TagVariant = 'solid' | 'outlined';
5
+ export interface TagSizeConfig {
6
+ paddingVertical: Space;
7
+ paddingHorizontal: Space;
8
+ fontSize: FontSize;
9
+ gap: Space;
10
+ iconSize: Size;
11
+ }
12
+ export interface TagThemeConfig {
13
+ defaultVariant: 'solid' | 'outlined';
14
+ defaultColor: Color;
15
+ defaultRadius: Radius;
16
+ defaultSize: TagSize;
17
+ sizes: Record<TagSize, TagSizeConfig>;
18
+ }
19
+ export declare const tagTheme: (_theme: Theme) => TagThemeConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aic-kits/react",
3
- "version": "0.10.3",
3
+ "version": "0.11.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": "5e0d099ab2bbae362ad062f692318f18230baf71"
49
+ "gitHead": "6eb7148c3601f72e33c4d442ed05ca47f3d9f7b2"
50
50
  }