polaris-react-extended 13.10.6 → 13.10.9
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.
|
@@ -7,35 +7,35 @@ type FontWeight = 'regular' | 'medium' | 'semibold' | 'bold';
|
|
|
7
7
|
type Tone = 'base' | 'disabled' | 'inherit' | 'success' | 'critical' | 'caution' | 'subdued' | 'text-inverse' | 'text-inverse-secondary' | 'magic' | 'magic-subdued';
|
|
8
8
|
type TextDecorationLine = 'line-through';
|
|
9
9
|
export interface TextProps {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
10
|
+
/** Adjust horizontal alignment of text */
|
|
11
|
+
alignment?: Alignment;
|
|
12
|
+
/** The element type */
|
|
13
|
+
as?: Element;
|
|
14
|
+
/** Prevent text from overflowing */
|
|
15
|
+
breakWord?: boolean;
|
|
16
|
+
/** Text to display */
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
/** Adjust tone of text */
|
|
19
|
+
tone?: Tone;
|
|
20
|
+
/** Adjust weight of text */
|
|
21
|
+
fontWeight?: FontWeight;
|
|
22
|
+
/** HTML id attribute */
|
|
23
|
+
id?: string;
|
|
24
|
+
/** Use a numeric font variant with monospace appearance */
|
|
25
|
+
numeric?: boolean;
|
|
26
|
+
/** Truncate text overflow with ellipsis */
|
|
27
|
+
truncate?: boolean;
|
|
28
|
+
/** Typographic style of text */
|
|
29
|
+
variant?: Variant;
|
|
30
|
+
/** Visually hide the text */
|
|
31
|
+
visuallyHidden?: boolean;
|
|
32
|
+
/** Add a line-through to the text */
|
|
33
|
+
textDecorationLine?: TextDecorationLine;
|
|
34
|
+
/** Custom class name to apply to the text element */
|
|
35
|
+
className?: string;
|
|
36
|
+
/** Custom styles to apply to the text element */
|
|
37
|
+
style?: React.CSSProperties;
|
|
38
38
|
}
|
|
39
39
|
export declare const Text: ({ alignment, as, breakWord, children, tone, fontWeight, id, numeric, truncate, variant, visuallyHidden, textDecorationLine, className: customClassName, style, }: TextProps) => React.JSX.Element;
|
|
40
|
-
export {};
|
|
41
|
-
//# sourceMappingURL=Text.d.ts.map
|
|
40
|
+
export { };
|
|
41
|
+
//# sourceMappingURL=Text.d.ts.map
|
package/package.json
CHANGED