@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.
- package/dist/components/Art/BrandArt.d.ts +3 -0
- package/dist/components/Art/EmojiArt.d.ts +3 -0
- package/dist/components/Art/IconArt.d.ts +3 -0
- package/dist/components/Art/ImageArt.d.ts +3 -0
- package/dist/components/Art/SvgArt.d.ts +3 -0
- package/dist/components/Art/index.d.ts +11 -0
- package/dist/components/Art/types.d.ts +75 -0
- package/dist/components/Art/utils.d.ts +16 -0
- package/dist/components/Base/BaseFooter.d.ts +8 -0
- package/dist/components/Base/index.d.ts +4 -0
- package/dist/components/Base/types.d.ts +44 -0
- package/dist/components/Box/StyledBox.d.ts +37 -0
- package/dist/components/Box/config.d.ts +478 -0
- package/dist/components/Box/index.d.ts +9 -0
- package/dist/components/Box/types.d.ts +49 -0
- package/dist/components/Button/StyledButton.d.ts +25 -0
- package/dist/components/Button/index.d.ts +54 -0
- package/dist/components/Button/utils.d.ts +3 -0
- package/dist/components/Loading/StyledLoading.d.ts +10 -0
- package/dist/components/Loading/index.d.ts +4 -0
- package/dist/components/Loading/types.d.ts +28 -0
- package/dist/components/Text/StyledText.d.ts +12 -0
- package/dist/components/Text/constants.d.ts +2 -0
- package/dist/components/Text/index.d.ts +6 -0
- package/dist/components/Text/types.d.ts +49 -0
- package/dist/components/Text/withRichText.d.ts +5 -0
- package/dist/components/Touchable/index.d.ts +4 -0
- package/dist/components/Touchable/types.d.ts +21 -0
- package/dist/components/index.d.ts +7 -1
- package/dist/index.cjs +155 -31
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6037 -411
- package/dist/theme/ThemeProvider.d.ts +16 -0
- package/dist/theme/common/borders.d.ts +8 -0
- package/dist/theme/common/colors.d.ts +4 -0
- package/dist/theme/common/gradient.d.ts +4 -0
- package/dist/theme/common/index.d.ts +36 -0
- package/dist/theme/common/scale.d.ts +11 -0
- package/dist/theme/common/shadows.d.ts +5 -0
- package/dist/theme/common/sizes.d.ts +4 -0
- package/dist/theme/common/spaces.d.ts +4 -0
- package/dist/theme/common/text.d.ts +15 -0
- package/dist/theme/components/art.d.ts +5 -0
- package/dist/theme/components/base.d.ts +8 -0
- package/dist/theme/components/button.d.ts +12 -0
- package/dist/theme/components/index.d.ts +19 -0
- package/dist/theme/components/loading.d.ts +16 -0
- package/dist/theme/components/touchable.d.ts +14 -0
- package/dist/theme/getTheme.d.ts +19 -0
- package/dist/theme/index.d.ts +7 -0
- package/dist/theme/styled.d.ts +135 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/ssr.d.ts +1 -0
- package/package.json +10 -3
- package/dist/components/Example.d.ts +0 -1
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { Color, FontSize, FontWeight, Typeface } from '../../theme';
|
|
3
|
+
export interface TextProps extends HTMLAttributes<HTMLParagraphElement> {
|
|
4
|
+
/**
|
|
5
|
+
* Text content.
|
|
6
|
+
*/
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Size of the text.
|
|
10
|
+
*/
|
|
11
|
+
fontSize?: FontSize;
|
|
12
|
+
/**
|
|
13
|
+
* Font weight of the text.
|
|
14
|
+
*/
|
|
15
|
+
fontWeight?: FontWeight;
|
|
16
|
+
/**
|
|
17
|
+
* Visual color to apply to the text.
|
|
18
|
+
*/
|
|
19
|
+
color?: Color;
|
|
20
|
+
/**
|
|
21
|
+
* Specifies the alignment of the text.
|
|
22
|
+
*/
|
|
23
|
+
textAlign?: 'left' | 'right' | 'center' | 'justify';
|
|
24
|
+
/**
|
|
25
|
+
* Transform the text.
|
|
26
|
+
*/
|
|
27
|
+
textTransform?: 'none' | 'capitalize' | 'uppercase' | 'lowercase';
|
|
28
|
+
/**
|
|
29
|
+
* Specifies the decoration of the text.
|
|
30
|
+
*/
|
|
31
|
+
textDecoration?: 'none' | 'underline' | 'line-through' | 'underline line-through';
|
|
32
|
+
/**
|
|
33
|
+
* Testing id of the component.
|
|
34
|
+
*/
|
|
35
|
+
'data-testid'?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The typeface to render the text in:
|
|
38
|
+
* - `neutral`: The default typeface for the platform.
|
|
39
|
+
*/
|
|
40
|
+
typeface?: Typeface;
|
|
41
|
+
/**
|
|
42
|
+
* Whether to render the text with rich text formatting.
|
|
43
|
+
*/
|
|
44
|
+
useRichText?: boolean;
|
|
45
|
+
}
|
|
46
|
+
export interface TagStyle {
|
|
47
|
+
pattern: RegExp;
|
|
48
|
+
props: Partial<TextProps>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TouchableHapticFeedbackType } from '../../theme';
|
|
3
|
+
import { BoxProps } from '../Box';
|
|
4
|
+
export interface TouchableProps extends React.HTMLAttributes<HTMLDivElement>, BoxProps {
|
|
5
|
+
/**
|
|
6
|
+
* Haptic feedback type (not used in web, but kept for API compatibility)
|
|
7
|
+
*/
|
|
8
|
+
hapticFeedback?: TouchableHapticFeedbackType;
|
|
9
|
+
/**
|
|
10
|
+
* Touchable's content.
|
|
11
|
+
*/
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Additional styles.
|
|
15
|
+
*/
|
|
16
|
+
style?: React.CSSProperties;
|
|
17
|
+
/**
|
|
18
|
+
* Testing id of the component.
|
|
19
|
+
*/
|
|
20
|
+
'data-testid'?: string;
|
|
21
|
+
}
|