@aic-kits/react 0.4.0 → 0.5.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.
@@ -0,0 +1,32 @@
1
+ import { Color, Radius, Size, Space } from '../common';
2
+ import { Theme } from '../getTheme';
3
+ export interface CarouselThemeConfig {
4
+ pagination: {
5
+ container: {
6
+ marginTop: Space;
7
+ padding: Space;
8
+ borderRadius: Radius;
9
+ backgroundColor: Color;
10
+ gap: Space;
11
+ };
12
+ dotSize: Size;
13
+ inactiveColor: Color;
14
+ activeColor: Color;
15
+ dotBorderRadius: Radius;
16
+ };
17
+ navigation: {
18
+ marginHorizontal: Space;
19
+ buttonColor: Color;
20
+ buttonBackgroundColor: Color;
21
+ buttonBorderRadius: Radius;
22
+ buttonPadding: Space;
23
+ iconSize: Size;
24
+ };
25
+ autoScroll: {
26
+ defaultSpeed: number;
27
+ };
28
+ container: {
29
+ defaultItemSpacing: Space;
30
+ };
31
+ }
32
+ export declare const carouselTheme: (_theme: Theme) => CarouselThemeConfig;
@@ -2,6 +2,7 @@ import { Theme } from '../';
2
2
  import { ArtThemeConfig } from './art';
3
3
  import { BaseThemeConfig } from './base';
4
4
  import { ButtonThemeConfig } from './button';
5
+ import { CarouselThemeConfig } from './carousel';
5
6
  import { DividerThemeConfig } from './divider';
6
7
  import { HeaderThemeConfig } from './header';
7
8
  import { InputThemeConfig } from './input';
@@ -22,6 +23,7 @@ export interface ComponentsTheme {
22
23
  skeleton: SkeletonThemeConfig;
23
24
  touchable: TouchableThemeConfig;
24
25
  vimeo: VimeoThemeConfig;
26
+ carousel: CarouselThemeConfig;
25
27
  }
26
28
  export declare const getComponentsTheme: (theme: Theme) => ComponentsTheme;
27
29
  export * from './art';
@@ -35,3 +37,4 @@ export * from './loading';
35
37
  export * from './skeleton';
36
38
  export * from './touchable';
37
39
  export * from './vimeo';
40
+ export * from './carousel';
@@ -1,3 +1,4 @@
1
+ import { keyframes as keyframesBase, css as cssBase } from 'styled-components';
1
2
  import { StyledTarget } from 'styled-components/dist/types';
2
3
  export declare const styled: (<Target extends import('styled-components').WebTarget, InjectedProps extends object = import('styled-components/dist/types').BaseObject>(tag: Target) => import('styled-components').StyledInstance<"web", Target, Target extends import('styled-components/dist/types').KnownTarget ? React.ComponentPropsWithRef<Target> & InjectedProps : InjectedProps, import('styled-components/dist/types').BaseObject>) & {
3
4
  object: import('styled-components').StyledInstance<"web", "object", React.DetailedHTMLProps<React.ObjectHTMLAttributes<HTMLObjectElement>, HTMLObjectElement>, import('styled-components/dist/types').BaseObject>;
@@ -134,4 +135,6 @@ export declare const styled: (<Target extends import('styled-components').WebTar
134
135
  tspan: import('styled-components').StyledInstance<"web", "tspan", React.SVGProps<SVGTSpanElement>, import('styled-components/dist/types').BaseObject>;
135
136
  use: import('styled-components').StyledInstance<"web", "use", React.SVGProps<SVGUseElement>, import('styled-components/dist/types').BaseObject>;
136
137
  };
138
+ export declare const keyframes: typeof keyframesBase;
139
+ export declare const css: typeof cssBase;
137
140
  export declare const shouldForwardProp: (prop: string, _elementToBeCreated: StyledTarget<"web">) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aic-kits/react",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -27,6 +27,7 @@
27
27
  "prepublishOnly": "yarn build"
28
28
  },
29
29
  "dependencies": {
30
+ "@phosphor-icons/react": "^2.1.7",
30
31
  "lodash": "^4.17.21",
31
32
  "styled-components": "^6.1.16"
32
33
  },
@@ -45,5 +46,5 @@
45
46
  "vite-plugin-dts": "^4.3.0",
46
47
  "vitest": "^2.1.8"
47
48
  },
48
- "gitHead": "b579eb24795331f64da96f0d67eef5c93d0c23ca"
49
+ "gitHead": "02c7b78e9f62424d2ad39de427c72a6168ee6972"
49
50
  }