@theroutingcompany/components 0.0.107 → 0.0.108-alpha.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/package.json
CHANGED
|
@@ -2,6 +2,7 @@ import type * as Polymorphic from '@radix-ui/react-polymorphic';
|
|
|
2
2
|
import { type BoxProps } from 'components/Box';
|
|
3
3
|
import { type ComponentPropsWithoutRef } from 'react';
|
|
4
4
|
import { type LayoutProps, type SizeProps, type SpaceProps } from 'styled-system';
|
|
5
|
+
export type TextDecoration = 'line-through' | 'underline' | 'overline' | 'none' | 'inherit' | 'initial' | 'revert' | 'revert-layer' | 'unset';
|
|
5
6
|
export type TextType = 'body' | 'number';
|
|
6
7
|
export type TextSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
7
8
|
export type FontStyle = 'normal' | 'italic';
|
|
@@ -14,6 +15,7 @@ interface TextBaseProps {
|
|
|
14
15
|
truncate?: boolean;
|
|
15
16
|
size?: TextSize;
|
|
16
17
|
style?: React.CSSProperties;
|
|
18
|
+
textDecoration?: TextDecoration;
|
|
17
19
|
}
|
|
18
20
|
interface BodyTextProps extends TextBaseProps {
|
|
19
21
|
variant: 'body';
|
|
@@ -28,6 +30,7 @@ export type TextProps = Partial<NumberTextProps | BodyTextProps> & {
|
|
|
28
30
|
weak?: boolean;
|
|
29
31
|
negative?: boolean;
|
|
30
32
|
bold?: boolean;
|
|
33
|
+
textDecoration?: TextDecoration;
|
|
31
34
|
italic?: boolean;
|
|
32
35
|
as?: TextElements;
|
|
33
36
|
color?: string;
|