@aic-kits/react 0.16.8 → 0.17.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/Text/StyledText.d.ts +1 -0
- package/dist/components/Text/types.d.ts +4 -0
- package/dist/index.cjs +74 -74
- package/dist/index.js +2682 -2626
- package/dist/utils/responsiveness.d.ts +59 -1
- package/package.json +2 -2
|
@@ -8,6 +8,7 @@ interface StyledTextProps {
|
|
|
8
8
|
$textAlign?: WithResponsiveValue<'left' | 'right' | 'center' | 'justify'>;
|
|
9
9
|
$textTransform?: WithResponsiveValue<'none' | 'capitalize' | 'uppercase' | 'lowercase'>;
|
|
10
10
|
$textDecoration?: WithResponsiveValue<'none' | 'underline' | 'line-through' | 'underline line-through'>;
|
|
11
|
+
$numberOfLines?: WithResponsiveValue<number>;
|
|
11
12
|
}
|
|
12
13
|
declare const StyledText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('styled-components/dist/types').Substitute<import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>>, {
|
|
13
14
|
as?: "p" | "span";
|
|
@@ -47,6 +47,10 @@ export interface TextProps extends Omit<HTMLAttributes<HTMLParagraphElement>, 'c
|
|
|
47
47
|
* The tag to render the text in.
|
|
48
48
|
*/
|
|
49
49
|
as?: 'p' | 'span';
|
|
50
|
+
/**
|
|
51
|
+
* The number of lines to render the text in.
|
|
52
|
+
*/
|
|
53
|
+
numberOfLines?: WithResponsiveValue<number>;
|
|
50
54
|
}
|
|
51
55
|
export interface TagStyle {
|
|
52
56
|
pattern: RegExp;
|