@aic-kits/react 0.0.18 → 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 (55) 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/Box/StyledBox.d.ts +37 -0
  13. package/dist/components/Box/config.d.ts +478 -0
  14. package/dist/components/Box/index.d.ts +9 -0
  15. package/dist/components/Box/types.d.ts +49 -0
  16. package/dist/components/Button/StyledButton.d.ts +25 -0
  17. package/dist/components/Button/index.d.ts +54 -0
  18. package/dist/components/Button/utils.d.ts +3 -0
  19. package/dist/components/Loading/StyledLoading.d.ts +10 -0
  20. package/dist/components/Loading/index.d.ts +4 -0
  21. package/dist/components/Loading/types.d.ts +28 -0
  22. package/dist/components/Text/StyledText.d.ts +12 -0
  23. package/dist/components/Text/constants.d.ts +2 -0
  24. package/dist/components/Text/index.d.ts +6 -0
  25. package/dist/components/Text/types.d.ts +49 -0
  26. package/dist/components/Text/withRichText.d.ts +5 -0
  27. package/dist/components/Touchable/index.d.ts +4 -0
  28. package/dist/components/Touchable/types.d.ts +21 -0
  29. package/dist/components/index.d.ts +7 -1
  30. package/dist/index.cjs +155 -31
  31. package/dist/index.d.ts +1 -0
  32. package/dist/index.js +6037 -411
  33. package/dist/theme/ThemeProvider.d.ts +16 -0
  34. package/dist/theme/common/borders.d.ts +8 -0
  35. package/dist/theme/common/colors.d.ts +4 -0
  36. package/dist/theme/common/gradient.d.ts +4 -0
  37. package/dist/theme/common/index.d.ts +36 -0
  38. package/dist/theme/common/scale.d.ts +11 -0
  39. package/dist/theme/common/shadows.d.ts +5 -0
  40. package/dist/theme/common/sizes.d.ts +4 -0
  41. package/dist/theme/common/spaces.d.ts +4 -0
  42. package/dist/theme/common/text.d.ts +15 -0
  43. package/dist/theme/components/art.d.ts +5 -0
  44. package/dist/theme/components/base.d.ts +8 -0
  45. package/dist/theme/components/button.d.ts +12 -0
  46. package/dist/theme/components/index.d.ts +19 -0
  47. package/dist/theme/components/loading.d.ts +16 -0
  48. package/dist/theme/components/touchable.d.ts +14 -0
  49. package/dist/theme/getTheme.d.ts +19 -0
  50. package/dist/theme/index.d.ts +7 -0
  51. package/dist/theme/styled.d.ts +135 -0
  52. package/dist/utils/index.d.ts +1 -0
  53. package/dist/utils/ssr.d.ts +1 -0
  54. package/package.json +10 -3
  55. package/dist/components/Example.d.ts +0 -1
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { BrandArtProps } from './types';
3
+ export declare const BrandArt: ({ art, width, height, style, "data-testid": testId, ...rest }: BrandArtProps) => React.ReactElement;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { EmojiArtProps } from './types';
3
+ export declare const EmojiArt: ({ art, width, height, style, "data-testid": testId, ...rest }: EmojiArtProps) => React.ReactElement;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { IconArtProps } from './types';
3
+ export declare const IconArt: ({ art, width, height, color, style, "data-testid": testId, ...rest }: IconArtProps) => React.ReactElement;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { ImageArtProps } from './types';
3
+ export declare const ImageArt: ({ art, width, height, style, "data-testid": testId, ...rest }: ImageArtProps) => React.ReactElement;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { SvgArtProps } from './types';
3
+ export declare const SvgArt: ({ art, width, height, style, "data-testid": testId, ...rest }: SvgArtProps) => React.ReactElement;
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ import { BrandArt as Brand } from './BrandArt';
3
+ import { EmojiArt as Emoji } from './EmojiArt';
4
+ import { IconArt as Icon } from './IconArt';
5
+ import { ImageArt as Image } from './ImageArt';
6
+ import { SvgArt as Svg } from './SvgArt';
7
+ import { ArtProps } from './types';
8
+ export declare const Art: (props: ArtProps) => React.ReactElement;
9
+ export * from './types';
10
+ export * from './utils';
11
+ export { Image, Svg, Emoji, Icon, Brand };
@@ -0,0 +1,75 @@
1
+ import { default as React } from 'react';
2
+ import { BoxProps } from '../Box';
3
+ export interface BaseArtProps extends BoxProps {
4
+ /**
5
+ * Width of the art
6
+ */
7
+ width?: string | number;
8
+ /**
9
+ * Height of the art
10
+ */
11
+ height?: string | number;
12
+ /**
13
+ * Testing id of the component
14
+ */
15
+ 'data-testid'?: string;
16
+ /**
17
+ * Additional styles
18
+ */
19
+ style?: React.CSSProperties;
20
+ }
21
+ export interface IconArtProps extends BaseArtProps {
22
+ /**
23
+ * Type of the art
24
+ */
25
+ type?: 'icon';
26
+ /**
27
+ * Icon name
28
+ */
29
+ art: string;
30
+ /**
31
+ * Color of the icon
32
+ */
33
+ color?: string;
34
+ }
35
+ export interface EmojiArtProps extends BaseArtProps {
36
+ /**
37
+ * Type of the art
38
+ */
39
+ type?: 'emoji';
40
+ /**
41
+ * Emoji character
42
+ */
43
+ art: string;
44
+ }
45
+ export interface SvgArtProps extends BaseArtProps {
46
+ /**
47
+ * Type of the art
48
+ */
49
+ type?: 'svg';
50
+ /**
51
+ * SVG content
52
+ */
53
+ art: string;
54
+ }
55
+ export interface ImageArtProps extends BaseArtProps {
56
+ /**
57
+ * Type of the art
58
+ */
59
+ type?: 'image';
60
+ /**
61
+ * Image URL
62
+ */
63
+ art: string;
64
+ }
65
+ export interface BrandArtProps extends BaseArtProps {
66
+ /**
67
+ * Type of the art
68
+ */
69
+ type: 'brand';
70
+ /**
71
+ * Brand name
72
+ */
73
+ art: string;
74
+ }
75
+ export type ArtProps = IconArtProps | EmojiArtProps | SvgArtProps | ImageArtProps | BrandArtProps;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Check if an art is an emoji
3
+ */
4
+ export declare const isEmoji: (art: string) => boolean;
5
+ /**
6
+ * Check if an art is an icon
7
+ */
8
+ export declare const isIcon: (art: string) => boolean;
9
+ /**
10
+ * Check if an art is an image
11
+ */
12
+ export declare const isImage: (art: string) => boolean;
13
+ /**
14
+ * Check if an art is an SVG
15
+ */
16
+ export declare const isSvg: (art: string) => boolean;
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ import { Color } from '../../theme';
3
+ import { BaseFooterProps } from './types';
4
+ interface FooterProps extends BaseFooterProps {
5
+ backgroundColor?: Color;
6
+ }
7
+ export declare const BaseFooter: React.FC<FooterProps>;
8
+ export {};
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { BaseProps } from './types';
3
+ export declare const Base: React.FC<BaseProps>;
4
+ export * from './types';
@@ -0,0 +1,44 @@
1
+ import { default as React } from 'react';
2
+ import { Color } from '../../theme';
3
+ import { BoxProps } from '../Box';
4
+ export type BaseButtonParams = {
5
+ /**
6
+ * The title of the button
7
+ */
8
+ title: string;
9
+ /**
10
+ * The onPress event handler
11
+ */
12
+ onClick?: React.MouseEventHandler<HTMLButtonElement>;
13
+ /**
14
+ * The loading state of the button
15
+ *
16
+ * @default false
17
+ */
18
+ loading?: boolean;
19
+ };
20
+ export interface BaseFooterProps {
21
+ /**
22
+ * The params for the primary button
23
+ */
24
+ primaryButton?: BaseButtonParams;
25
+ /**
26
+ * The params for the secondary button
27
+ */
28
+ secondaryButton?: BaseButtonParams;
29
+ }
30
+ export interface BaseProps extends BoxProps, BaseFooterProps {
31
+ /**
32
+ * The background color of the Base component
33
+ */
34
+ backgroundColor?: Color;
35
+ /**
36
+ * The params for the header
37
+ */
38
+ header?: {
39
+ title?: string;
40
+ showBackButton?: boolean;
41
+ onBackButtonClick?: React.MouseEventHandler<HTMLButtonElement>;
42
+ backgroundColor?: Color;
43
+ } | false;
44
+ }
@@ -0,0 +1,37 @@
1
+ import { Theme } from '../../theme';
2
+ import { ConfigType } from './config';
3
+ import { CustomBoxProps, FlexStyleProps, StyleProps } from './types';
4
+ export declare const getThemeValue: (theme: Theme, key: keyof StyleProps, props: StyleProps) => {
5
+ [x: string]: string;
6
+ } | {
7
+ [x: string]: number;
8
+ } | undefined;
9
+ export declare const mapStylePropToThemeValue: (theme: Theme, props: StyleProps) => {};
10
+ export declare const configKeys: Array<keyof ConfigType>;
11
+ export declare const genBoxStyle: (theme: Theme, props: StyleProps & FlexStyleProps & CustomBoxProps) => {
12
+ alignContent?: import("csstype").Property.AlignContent | undefined;
13
+ alignItems?: import("csstype").Property.AlignItems | undefined;
14
+ alignSelf?: import("csstype").Property.AlignSelf | undefined;
15
+ display?: import("csstype").Property.Display | undefined;
16
+ flex?: import("csstype").Property.Flex<string | number> | undefined;
17
+ flexBasis?: import("csstype").Property.FlexBasis<string | number> | undefined;
18
+ flexDirection?: import("csstype").Property.FlexDirection | undefined;
19
+ flexGrow?: import("csstype").Property.FlexGrow | undefined;
20
+ flexShrink?: import("csstype").Property.FlexShrink | undefined;
21
+ flexWrap?: import("csstype").Property.FlexWrap | undefined;
22
+ justifyContent?: import("csstype").Property.JustifyContent | undefined;
23
+ position?: import("csstype").Property.Position | undefined;
24
+ top?: import("csstype").Property.Top<string | number> | undefined;
25
+ right?: import("csstype").Property.Right<string | number> | undefined;
26
+ bottom?: import("csstype").Property.Bottom<string | number> | undefined;
27
+ left?: import("csstype").Property.Left<string | number> | undefined;
28
+ overflow?: import("csstype").Property.Overflow | undefined;
29
+ width?: import("csstype").Property.Width<string | number> | undefined;
30
+ minWidth?: import("csstype").Property.MinWidth<string | number> | undefined;
31
+ maxWidth?: import("csstype").Property.MaxWidth<string | number> | undefined;
32
+ height?: import("csstype").Property.Height<string | number> | undefined;
33
+ minHeight?: import("csstype").Property.MinHeight<string | number> | undefined;
34
+ maxHeight?: import("csstype").Property.MaxHeight<string | number> | undefined;
35
+ opacity?: import("csstype").Property.Opacity | undefined;
36
+ };
37
+ export declare const StyledBox: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyleProps & FlexStyleProps & CustomBoxProps>> & string;