@fluentui/react-text 9.0.0-alpha.9 → 9.0.0-beta.4
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/CHANGELOG.json +744 -1
- package/CHANGELOG.md +254 -2
- package/dist/react-text.d.ts +61 -49
- package/lib/Body.js.map +1 -1
- package/lib/Caption.js.map +1 -1
- package/lib/Display.js.map +1 -1
- package/lib/Headline.js.map +1 -1
- package/lib/LargeTitle.js.map +1 -1
- package/lib/Subheadline.js.map +1 -1
- package/lib/Text.js.map +1 -1
- package/lib/Title1.js.map +1 -1
- package/lib/Title2.js.map +1 -1
- package/lib/Title3.js.map +1 -1
- package/lib/components/Body/Body.d.ts +4 -1
- package/lib/components/Body/Body.js +10 -8
- package/lib/components/Body/Body.js.map +1 -1
- package/lib/components/Body/index.js.map +1 -1
- package/lib/components/Caption/Caption.d.ts +4 -1
- package/lib/components/Caption/Caption.js +10 -8
- package/lib/components/Caption/Caption.js.map +1 -1
- package/lib/components/Caption/index.js.map +1 -1
- package/lib/components/Display/Display.d.ts +4 -1
- package/lib/components/Display/Display.js +10 -8
- package/lib/components/Display/Display.js.map +1 -1
- package/lib/components/Display/index.js.map +1 -1
- package/lib/components/Headline/Headline.d.ts +4 -1
- package/lib/components/Headline/Headline.js +10 -8
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/Headline/index.js.map +1 -1
- package/lib/components/LargeTitle/LargeTitle.d.ts +4 -1
- package/lib/components/LargeTitle/LargeTitle.js +10 -8
- package/lib/components/LargeTitle/LargeTitle.js.map +1 -1
- package/lib/components/LargeTitle/index.js.map +1 -1
- package/lib/components/Subheadline/Subheadline.d.ts +4 -1
- package/lib/components/Subheadline/Subheadline.js +10 -8
- package/lib/components/Subheadline/Subheadline.js.map +1 -1
- package/lib/components/Subheadline/index.js.map +1 -1
- package/lib/components/Text/Text.d.ts +2 -2
- package/lib/components/Text/Text.js +3 -3
- package/lib/components/Text/Text.js.map +1 -1
- package/lib/components/Text/Text.types.d.ts +20 -29
- package/lib/components/Text/Text.types.js.map +1 -1
- package/lib/components/Text/index.js.map +1 -1
- package/lib/components/Text/renderText.js +7 -8
- package/lib/components/Text/renderText.js.map +1 -1
- package/lib/components/Text/useText.d.ts +1 -2
- package/lib/components/Text/useText.js +37 -8
- package/lib/components/Text/useText.js.map +1 -1
- package/lib/components/Text/useTextStyles.d.ts +1 -0
- package/lib/components/Text/useTextStyles.js +32 -31
- package/lib/components/Text/useTextStyles.js.map +1 -1
- package/lib/components/Title1/Title1.d.ts +4 -1
- package/lib/components/Title1/Title1.js +10 -8
- package/lib/components/Title1/Title1.js.map +1 -1
- package/lib/components/Title1/index.js.map +1 -1
- package/lib/components/Title2/Title2.d.ts +4 -1
- package/lib/components/Title2/Title2.js +10 -8
- package/lib/components/Title2/Title2.js.map +1 -1
- package/lib/components/Title2/index.js.map +1 -1
- package/lib/components/Title3/Title3.d.ts +4 -1
- package/lib/components/Title3/Title3.js +10 -8
- package/lib/components/Title3/Title3.js.map +1 -1
- package/lib/components/Title3/index.js.map +1 -1
- package/lib/components/wrapper.d.ts +3 -3
- package/lib/components/wrapper.js +9 -6
- package/lib/components/wrapper.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/typographyStyles/index.js.map +1 -1
- package/lib/typographyStyles/typographyStyles.js +54 -72
- package/lib/typographyStyles/typographyStyles.js.map +1 -1
- package/lib-commonjs/Body.js +1 -1
- package/lib-commonjs/Body.js.map +1 -1
- package/lib-commonjs/Caption.js +1 -1
- package/lib-commonjs/Caption.js.map +1 -1
- package/lib-commonjs/Display.js +1 -1
- package/lib-commonjs/Display.js.map +1 -1
- package/lib-commonjs/Headline.js +1 -1
- package/lib-commonjs/Headline.js.map +1 -1
- package/lib-commonjs/LargeTitle.js +1 -1
- package/lib-commonjs/LargeTitle.js.map +1 -1
- package/lib-commonjs/Subheadline.js +1 -1
- package/lib-commonjs/Subheadline.js.map +1 -1
- package/lib-commonjs/Text.js +1 -1
- package/lib-commonjs/Text.js.map +1 -1
- package/lib-commonjs/Title1.js +1 -1
- package/lib-commonjs/Title1.js.map +1 -1
- package/lib-commonjs/Title2.js +1 -1
- package/lib-commonjs/Title2.js.map +1 -1
- package/lib-commonjs/Title3.js +1 -1
- package/lib-commonjs/Title3.js.map +1 -1
- package/lib-commonjs/components/Body/Body.d.ts +4 -1
- package/lib-commonjs/components/Body/Body.js +9 -7
- package/lib-commonjs/components/Body/Body.js.map +1 -1
- package/lib-commonjs/components/Body/index.js +1 -1
- package/lib-commonjs/components/Body/index.js.map +1 -1
- package/lib-commonjs/components/Caption/Caption.d.ts +4 -1
- package/lib-commonjs/components/Caption/Caption.js +9 -7
- package/lib-commonjs/components/Caption/Caption.js.map +1 -1
- package/lib-commonjs/components/Caption/index.js +1 -1
- package/lib-commonjs/components/Caption/index.js.map +1 -1
- package/lib-commonjs/components/Display/Display.d.ts +4 -1
- package/lib-commonjs/components/Display/Display.js +9 -7
- package/lib-commonjs/components/Display/Display.js.map +1 -1
- package/lib-commonjs/components/Display/index.js +1 -1
- package/lib-commonjs/components/Display/index.js.map +1 -1
- package/lib-commonjs/components/Headline/Headline.d.ts +4 -1
- package/lib-commonjs/components/Headline/Headline.js +9 -7
- package/lib-commonjs/components/Headline/Headline.js.map +1 -1
- package/lib-commonjs/components/Headline/index.js +1 -1
- package/lib-commonjs/components/Headline/index.js.map +1 -1
- package/lib-commonjs/components/LargeTitle/LargeTitle.d.ts +4 -1
- package/lib-commonjs/components/LargeTitle/LargeTitle.js +9 -7
- package/lib-commonjs/components/LargeTitle/LargeTitle.js.map +1 -1
- package/lib-commonjs/components/LargeTitle/index.js +1 -1
- package/lib-commonjs/components/LargeTitle/index.js.map +1 -1
- package/lib-commonjs/components/Subheadline/Subheadline.d.ts +4 -1
- package/lib-commonjs/components/Subheadline/Subheadline.js +9 -7
- package/lib-commonjs/components/Subheadline/Subheadline.js.map +1 -1
- package/lib-commonjs/components/Subheadline/index.js +1 -1
- package/lib-commonjs/components/Subheadline/index.js.map +1 -1
- package/lib-commonjs/components/Text/Text.d.ts +2 -2
- package/lib-commonjs/components/Text/Text.js +7 -7
- package/lib-commonjs/components/Text/Text.js.map +1 -1
- package/lib-commonjs/components/Text/Text.types.d.ts +20 -29
- package/lib-commonjs/components/Text/Text.types.js.map +1 -1
- package/lib-commonjs/components/Text/index.js +1 -1
- package/lib-commonjs/components/Text/index.js.map +1 -1
- package/lib-commonjs/components/Text/renderText.js +8 -10
- package/lib-commonjs/components/Text/renderText.js.map +1 -1
- package/lib-commonjs/components/Text/useText.d.ts +1 -2
- package/lib-commonjs/components/Text/useText.js +38 -9
- package/lib-commonjs/components/Text/useText.js.map +1 -1
- package/lib-commonjs/components/Text/useTextStyles.d.ts +1 -0
- package/lib-commonjs/components/Text/useTextStyles.js +35 -34
- package/lib-commonjs/components/Text/useTextStyles.js.map +1 -1
- package/lib-commonjs/components/Title1/Title1.d.ts +4 -1
- package/lib-commonjs/components/Title1/Title1.js +9 -7
- package/lib-commonjs/components/Title1/Title1.js.map +1 -1
- package/lib-commonjs/components/Title1/index.js +1 -1
- package/lib-commonjs/components/Title1/index.js.map +1 -1
- package/lib-commonjs/components/Title2/Title2.d.ts +4 -1
- package/lib-commonjs/components/Title2/Title2.js +9 -7
- package/lib-commonjs/components/Title2/Title2.js.map +1 -1
- package/lib-commonjs/components/Title2/index.js +1 -1
- package/lib-commonjs/components/Title2/index.js.map +1 -1
- package/lib-commonjs/components/Title3/Title3.d.ts +4 -1
- package/lib-commonjs/components/Title3/Title3.js +9 -7
- package/lib-commonjs/components/Title3/Title3.js.map +1 -1
- package/lib-commonjs/components/Title3/index.js +1 -1
- package/lib-commonjs/components/Title3/index.js.map +1 -1
- package/lib-commonjs/components/wrapper.d.ts +3 -3
- package/lib-commonjs/components/wrapper.js +12 -9
- package/lib-commonjs/components/wrapper.js.map +1 -1
- package/lib-commonjs/index.js +1 -1
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/typographyStyles/index.js +1 -1
- package/lib-commonjs/typographyStyles/index.js.map +1 -1
- package/lib-commonjs/typographyStyles/typographyStyles.js +54 -72
- package/lib-commonjs/typographyStyles/typographyStyles.js.map +1 -1
- package/package.json +11 -10
- package/lib/common/isConformant.d.ts +0 -4
- package/lib/common/isConformant.js +0 -9
- package/lib/common/isConformant.js.map +0 -1
- package/lib-amd/Body.d.ts +0 -1
- package/lib-amd/Body.js +0 -6
- package/lib-amd/Body.js.map +0 -1
- package/lib-amd/Caption.d.ts +0 -1
- package/lib-amd/Caption.js +0 -6
- package/lib-amd/Caption.js.map +0 -1
- package/lib-amd/Display.d.ts +0 -1
- package/lib-amd/Display.js +0 -6
- package/lib-amd/Display.js.map +0 -1
- package/lib-amd/Headline.d.ts +0 -1
- package/lib-amd/Headline.js +0 -6
- package/lib-amd/Headline.js.map +0 -1
- package/lib-amd/LargeTitle.d.ts +0 -1
- package/lib-amd/LargeTitle.js +0 -6
- package/lib-amd/LargeTitle.js.map +0 -1
- package/lib-amd/Subheadline.d.ts +0 -1
- package/lib-amd/Subheadline.js +0 -6
- package/lib-amd/Subheadline.js.map +0 -1
- package/lib-amd/Text.d.ts +0 -1
- package/lib-amd/Text.js +0 -6
- package/lib-amd/Text.js.map +0 -1
- package/lib-amd/Title1.d.ts +0 -1
- package/lib-amd/Title1.js +0 -6
- package/lib-amd/Title1.js.map +0 -1
- package/lib-amd/Title2.d.ts +0 -1
- package/lib-amd/Title2.js +0 -6
- package/lib-amd/Title2.js.map +0 -1
- package/lib-amd/Title3.d.ts +0 -1
- package/lib-amd/Title3.js +0 -6
- package/lib-amd/Title3.js.map +0 -1
- package/lib-amd/common/isConformant.d.ts +0 -4
- package/lib-amd/common/isConformant.js +0 -14
- package/lib-amd/common/isConformant.js.map +0 -1
- package/lib-amd/components/Body/Body.d.ts +0 -4
- package/lib-amd/components/Body/Body.js +0 -16
- package/lib-amd/components/Body/Body.js.map +0 -1
- package/lib-amd/components/Body/index.d.ts +0 -1
- package/lib-amd/components/Body/index.js +0 -6
- package/lib-amd/components/Body/index.js.map +0 -1
- package/lib-amd/components/Caption/Caption.d.ts +0 -4
- package/lib-amd/components/Caption/Caption.js +0 -16
- package/lib-amd/components/Caption/Caption.js.map +0 -1
- package/lib-amd/components/Caption/index.d.ts +0 -1
- package/lib-amd/components/Caption/index.js +0 -6
- package/lib-amd/components/Caption/index.js.map +0 -1
- package/lib-amd/components/Display/Display.d.ts +0 -4
- package/lib-amd/components/Display/Display.js +0 -16
- package/lib-amd/components/Display/Display.js.map +0 -1
- package/lib-amd/components/Display/index.d.ts +0 -1
- package/lib-amd/components/Display/index.js +0 -6
- package/lib-amd/components/Display/index.js.map +0 -1
- package/lib-amd/components/Headline/Headline.d.ts +0 -4
- package/lib-amd/components/Headline/Headline.js +0 -16
- package/lib-amd/components/Headline/Headline.js.map +0 -1
- package/lib-amd/components/Headline/index.d.ts +0 -1
- package/lib-amd/components/Headline/index.js +0 -6
- package/lib-amd/components/Headline/index.js.map +0 -1
- package/lib-amd/components/LargeTitle/LargeTitle.d.ts +0 -4
- package/lib-amd/components/LargeTitle/LargeTitle.js +0 -16
- package/lib-amd/components/LargeTitle/LargeTitle.js.map +0 -1
- package/lib-amd/components/LargeTitle/index.d.ts +0 -1
- package/lib-amd/components/LargeTitle/index.js +0 -6
- package/lib-amd/components/LargeTitle/index.js.map +0 -1
- package/lib-amd/components/Subheadline/Subheadline.d.ts +0 -4
- package/lib-amd/components/Subheadline/Subheadline.js +0 -16
- package/lib-amd/components/Subheadline/Subheadline.js.map +0 -1
- package/lib-amd/components/Subheadline/index.d.ts +0 -1
- package/lib-amd/components/Subheadline/index.js +0 -6
- package/lib-amd/components/Subheadline/index.js.map +0 -1
- package/lib-amd/components/Text/Text.d.ts +0 -6
- package/lib-amd/components/Text/Text.js +0 -15
- package/lib-amd/components/Text/Text.js.map +0 -1
- package/lib-amd/components/Text/Text.types.d.ts +0 -86
- package/lib-amd/components/Text/Text.types.js +0 -5
- package/lib-amd/components/Text/Text.types.js.map +0 -1
- package/lib-amd/components/Text/index.d.ts +0 -5
- package/lib-amd/components/Text/index.js +0 -10
- package/lib-amd/components/Text/index.js.map +0 -1
- package/lib-amd/components/Text/renderText.d.ts +0 -5
- package/lib-amd/components/Text/renderText.js +0 -14
- package/lib-amd/components/Text/renderText.js.map +0 -1
- package/lib-amd/components/Text/useText.d.ts +0 -13
- package/lib-amd/components/Text/useText.js +0 -25
- package/lib-amd/components/Text/useText.js.map +0 -1
- package/lib-amd/components/Text/useTextStyles.d.ts +0 -5
- package/lib-amd/components/Text/useTextStyles.js +0 -110
- package/lib-amd/components/Text/useTextStyles.js.map +0 -1
- package/lib-amd/components/Title1/Title1.d.ts +0 -4
- package/lib-amd/components/Title1/Title1.js +0 -16
- package/lib-amd/components/Title1/Title1.js.map +0 -1
- package/lib-amd/components/Title1/index.d.ts +0 -1
- package/lib-amd/components/Title1/index.js +0 -6
- package/lib-amd/components/Title1/index.js.map +0 -1
- package/lib-amd/components/Title2/Title2.d.ts +0 -4
- package/lib-amd/components/Title2/Title2.js +0 -16
- package/lib-amd/components/Title2/Title2.js.map +0 -1
- package/lib-amd/components/Title2/index.d.ts +0 -1
- package/lib-amd/components/Title2/index.js +0 -6
- package/lib-amd/components/Title2/index.js.map +0 -1
- package/lib-amd/components/Title3/Title3.d.ts +0 -4
- package/lib-amd/components/Title3/Title3.js +0 -16
- package/lib-amd/components/Title3/Title3.js.map +0 -1
- package/lib-amd/components/Title3/index.d.ts +0 -1
- package/lib-amd/components/Title3/index.js +0 -6
- package/lib-amd/components/Title3/index.js.map +0 -1
- package/lib-amd/components/wrapper.d.ts +0 -8
- package/lib-amd/components/wrapper.js +0 -19
- package/lib-amd/components/wrapper.js.map +0 -1
- package/lib-amd/index.d.ts +0 -10
- package/lib-amd/index.js +0 -15
- package/lib-amd/index.js.map +0 -1
- package/lib-amd/typographyStyles/index.d.ts +0 -2
- package/lib-amd/typographyStyles/index.js +0 -7
- package/lib-amd/typographyStyles/index.js.map +0 -1
- package/lib-amd/typographyStyles/typographyStyles.d.ts +0 -14
- package/lib-amd/typographyStyles/typographyStyles.js +0 -72
- package/lib-amd/typographyStyles/typographyStyles.js.map +0 -1
- package/lib-commonjs/common/isConformant.d.ts +0 -4
- package/lib-commonjs/common/isConformant.js +0 -19
- package/lib-commonjs/common/isConformant.js.map +0 -1
@@ -1,86 +1,77 @@
|
|
1
|
-
import
|
2
|
-
import type { ComponentPropsCompat, ComponentStateCompat } from '@fluentui/react-utilities';
|
1
|
+
import type { ComponentProps, ComponentState, IntrinsicShorthandProps } from '@fluentui/react-utilities';
|
3
2
|
/**
|
4
|
-
* Text
|
3
|
+
* Text slots
|
5
4
|
*/
|
6
|
-
export
|
5
|
+
export declare type TextSlots = {
|
6
|
+
root: IntrinsicShorthandProps<'span', 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'pre'>;
|
7
|
+
};
|
8
|
+
export declare type TextCommons = {
|
7
9
|
/**
|
8
10
|
* Wraps the text content on white spaces.
|
9
11
|
*
|
10
12
|
* @defaultValue true
|
11
13
|
*/
|
12
|
-
wrap
|
14
|
+
wrap: boolean;
|
13
15
|
/**
|
14
16
|
* Truncate overflowing text for block displays.
|
15
17
|
*
|
16
18
|
* @defaultValue false
|
17
19
|
*/
|
18
|
-
truncate
|
20
|
+
truncate: boolean;
|
19
21
|
/**
|
20
22
|
* Applies a block display for the content.
|
21
23
|
*
|
22
24
|
* @defaultValue false
|
23
25
|
*/
|
24
|
-
block
|
26
|
+
block: boolean;
|
25
27
|
/**
|
26
28
|
* Applies the italic font style to the content.
|
27
29
|
*
|
28
30
|
* @defaultValue false
|
29
31
|
*/
|
30
|
-
italic
|
32
|
+
italic: boolean;
|
31
33
|
/**
|
32
34
|
* Applies the underline text decoration to the content.
|
33
35
|
*
|
34
36
|
* @defaultValue false
|
35
37
|
*/
|
36
|
-
underline
|
38
|
+
underline: boolean;
|
37
39
|
/**
|
38
40
|
* Applies the strikethrough text decoration to the content.
|
39
41
|
*
|
40
42
|
* @defaultValue false
|
41
43
|
*/
|
42
|
-
strikethrough
|
44
|
+
strikethrough: boolean;
|
43
45
|
/**
|
44
46
|
* Applies font size and line height based on the theme tokens.
|
45
47
|
*
|
46
48
|
* @defaultValue 300
|
47
49
|
*/
|
48
|
-
size
|
50
|
+
size: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000;
|
49
51
|
/**
|
50
52
|
* Applies the font family to the content.
|
51
53
|
*
|
52
54
|
* @defaultValue base
|
53
55
|
*/
|
54
|
-
font
|
56
|
+
font: 'base' | 'monospace' | 'numeric';
|
55
57
|
/**
|
56
58
|
* Applies font weight to the content.
|
57
59
|
*
|
58
60
|
* @defaultValue regular
|
59
61
|
*/
|
60
|
-
weight
|
62
|
+
weight: 'regular' | 'medium' | 'semibold';
|
61
63
|
/**
|
62
64
|
* Aligns text based on the parent container.
|
63
65
|
*
|
64
66
|
* @defaultValue start
|
65
67
|
*/
|
66
|
-
align
|
67
|
-
|
68
|
-
* Component to be rendered as.
|
69
|
-
*
|
70
|
-
* @defaultValue span
|
71
|
-
*/
|
72
|
-
as?: 'span' | 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'pre';
|
73
|
-
}
|
68
|
+
align: 'start' | 'center' | 'end' | 'justify';
|
69
|
+
};
|
74
70
|
/**
|
75
|
-
*
|
71
|
+
* Text Props
|
76
72
|
*/
|
77
|
-
export declare type
|
73
|
+
export declare type TextProps = ComponentProps<TextSlots> & Partial<TextCommons>;
|
78
74
|
/**
|
79
75
|
* State used in rendering Text
|
80
76
|
*/
|
81
|
-
export
|
82
|
-
/**
|
83
|
-
* Ref to the root element
|
84
|
-
*/
|
85
|
-
ref: React.Ref<HTMLElement>;
|
86
|
-
}
|
77
|
+
export declare type TextState = ComponentState<TextSlots> & TextCommons;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":"
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":""}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Text/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,QAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,cAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,cAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,WAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,iBAAA,CAAA,EAAA,OAAA","
|
1
|
+
{"version":3,"sources":["../../../src/components/Text/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,QAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,cAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,cAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,WAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,iBAAA,CAAA,EAAA,OAAA","sourceRoot":""}
|
@@ -5,22 +5,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.renderText = void 0;
|
7
7
|
|
8
|
-
|
8
|
+
const React = /*#__PURE__*/require("react");
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
var react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
|
10
|
+
const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
|
13
11
|
/**
|
14
12
|
* Render the final JSX of Text
|
15
13
|
*/
|
16
14
|
|
17
15
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
return React.createElement(slots.root,
|
16
|
+
const renderText = state => {
|
17
|
+
const {
|
18
|
+
slots,
|
19
|
+
slotProps
|
20
|
+
} = react_utilities_1.getSlots(state);
|
21
|
+
return React.createElement(slots.root, Object.assign({}, slotProps.root));
|
24
22
|
};
|
25
23
|
|
26
24
|
exports.renderText = renderText;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Text/renderText.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"sources":["../../../src/components/Text/renderText.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,UAAU,GAAI,KAAD,IAAqB;AAC7C,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAAoB,KAApB,CAA7B;AAEA,SAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CAAP;AACD,CAJM;;AAAM,OAAA,CAAA,UAAA,GAAU,UAAV","sourceRoot":""}
|
@@ -8,6 +8,5 @@ import type { TextProps, TextState } from './Text.types';
|
|
8
8
|
*
|
9
9
|
* @param props - props from this instance of Text
|
10
10
|
* @param ref - reference to root HTMLElement of Text
|
11
|
-
* @param defaultProps - (optional) default prop values provided by the implementing type
|
12
11
|
*/
|
13
|
-
export declare const useText: (props: TextProps, ref: React.Ref<HTMLElement
|
12
|
+
export declare const useText: (props: TextProps, ref: React.Ref<HTMLElement>) => TextState;
|
@@ -5,9 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.useText = void 0;
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
var mergeProps = /*#__PURE__*/react_utilities_1.makeMergeProps();
|
8
|
+
const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
|
11
9
|
/**
|
12
10
|
* Create the state required to render Text.
|
13
11
|
*
|
@@ -16,14 +14,45 @@ var mergeProps = /*#__PURE__*/react_utilities_1.makeMergeProps();
|
|
16
14
|
*
|
17
15
|
* @param props - props from this instance of Text
|
18
16
|
* @param ref - reference to root HTMLElement of Text
|
19
|
-
* @param defaultProps - (optional) default prop values provided by the implementing type
|
20
17
|
*/
|
21
18
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
19
|
+
|
20
|
+
const useText = (props, ref) => {
|
21
|
+
var _a;
|
22
|
+
|
23
|
+
const {
|
24
|
+
wrap,
|
25
|
+
truncate,
|
26
|
+
block,
|
27
|
+
italic,
|
28
|
+
underline,
|
29
|
+
strikethrough,
|
30
|
+
size,
|
31
|
+
font,
|
32
|
+
weight,
|
33
|
+
align
|
34
|
+
} = props;
|
35
|
+
const as = (_a = props.as) !== null && _a !== void 0 ? _a : 'span';
|
36
|
+
const state = {
|
37
|
+
wrap: wrap !== null && wrap !== void 0 ? wrap : true,
|
38
|
+
truncate: truncate !== null && truncate !== void 0 ? truncate : false,
|
39
|
+
block: block !== null && block !== void 0 ? block : false,
|
40
|
+
italic: italic !== null && italic !== void 0 ? italic : false,
|
41
|
+
underline: underline !== null && underline !== void 0 ? underline : false,
|
42
|
+
strikethrough: strikethrough !== null && strikethrough !== void 0 ? strikethrough : false,
|
43
|
+
size: size !== null && size !== void 0 ? size : 300,
|
44
|
+
font: font !== null && font !== void 0 ? font : 'base',
|
45
|
+
weight: weight !== null && weight !== void 0 ? weight : 'regular',
|
46
|
+
align: align !== null && align !== void 0 ? align : 'start',
|
47
|
+
components: {
|
48
|
+
root: 'span'
|
49
|
+
},
|
50
|
+
root: react_utilities_1.getNativeElementProps(as, {
|
51
|
+
ref,
|
52
|
+
...props,
|
53
|
+
as
|
54
|
+
})
|
55
|
+
};
|
27
56
|
return state;
|
28
57
|
};
|
29
58
|
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Text/useText.ts"],"names":[],"mappings":";;;;;;;AACA,
|
1
|
+
{"version":3,"sources":["../../../src/components/Text/useText.ts"],"names":[],"mappings":";;;;;;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;;;;;;;AAQG;;;AACI,MAAM,OAAO,GAAG,CAAC,KAAD,EAAmB,GAAnB,KAA6D;;;AAClF,QAAM;AAAE,IAAA,IAAF;AAAQ,IAAA,QAAR;AAAkB,IAAA,KAAlB;AAAyB,IAAA,MAAzB;AAAiC,IAAA,SAAjC;AAA4C,IAAA,aAA5C;AAA2D,IAAA,IAA3D;AAAiE,IAAA,IAAjE;AAAuE,IAAA,MAAvE;AAA+E,IAAA;AAA/E,MAAyF,KAA/F;AACA,QAAM,EAAE,GAAA,CAAA,EAAA,GAAG,KAAK,CAAC,EAAT,MAAW,IAAX,IAAW,EAAA,KAAA,KAAA,CAAX,GAAW,EAAX,GAAe,MAAvB;AAEA,QAAM,KAAK,GAAc;AACvB,IAAA,IAAI,EAAE,IAAI,KAAA,IAAJ,IAAA,IAAI,KAAA,KAAA,CAAJ,GAAA,IAAA,GAAQ,IADS;AAEvB,IAAA,QAAQ,EAAE,QAAQ,KAAA,IAAR,IAAA,QAAQ,KAAA,KAAA,CAAR,GAAA,QAAA,GAAY,KAFC;AAGvB,IAAA,KAAK,EAAE,KAAK,KAAA,IAAL,IAAA,KAAK,KAAA,KAAA,CAAL,GAAA,KAAA,GAAS,KAHO;AAIvB,IAAA,MAAM,EAAE,MAAM,KAAA,IAAN,IAAA,MAAM,KAAA,KAAA,CAAN,GAAA,MAAA,GAAU,KAJK;AAKvB,IAAA,SAAS,EAAE,SAAS,KAAA,IAAT,IAAA,SAAS,KAAA,KAAA,CAAT,GAAA,SAAA,GAAa,KALD;AAMvB,IAAA,aAAa,EAAE,aAAa,KAAA,IAAb,IAAA,aAAa,KAAA,KAAA,CAAb,GAAA,aAAA,GAAiB,KANT;AAOvB,IAAA,IAAI,EAAE,IAAI,KAAA,IAAJ,IAAA,IAAI,KAAA,KAAA,CAAJ,GAAA,IAAA,GAAQ,GAPS;AAQvB,IAAA,IAAI,EAAE,IAAI,KAAA,IAAJ,IAAA,IAAI,KAAA,KAAA,CAAJ,GAAA,IAAA,GAAQ,MARS;AASvB,IAAA,MAAM,EAAE,MAAM,KAAA,IAAN,IAAA,MAAM,KAAA,KAAA,CAAN,GAAA,MAAA,GAAU,SATK;AAUvB,IAAA,KAAK,EAAE,KAAK,KAAA,IAAL,IAAA,KAAK,KAAA,KAAA,CAAL,GAAA,KAAA,GAAS,OAVO;AAYvB,IAAA,UAAU,EAAE;AAAE,MAAA,IAAI,EAAE;AAAR,KAZW;AAcvB,IAAA,IAAI,EAAE,iBAAA,CAAA,qBAAA,CAAsB,EAAtB,EAA0B;AAC9B,MAAA,GAD8B;AAE9B,SAAG,KAF2B;AAG9B,MAAA;AAH8B,KAA1B;AAdiB,GAAzB;AAqBA,SAAO,KAAP;AACD,CA1BM;;AAAM,OAAA,CAAA,OAAA,GAAO,OAAP","sourceRoot":""}
|
@@ -3,20 +3,21 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.useTextStyles = void 0;
|
6
|
+
exports.useTextStyles = exports.textClassName = void 0;
|
7
7
|
|
8
|
-
|
8
|
+
const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
|
9
|
+
|
10
|
+
exports.textClassName = 'fui-Text';
|
9
11
|
/**
|
10
12
|
* Styles for the root slot
|
11
13
|
*/
|
12
14
|
|
13
|
-
|
14
|
-
var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
15
|
+
const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
15
16
|
"root": {
|
16
|
-
"Bahqtrf": "
|
17
|
-
"Be2twd7": "
|
18
|
-
"Bg96gwp": "
|
19
|
-
"Bhrd7zp": "
|
17
|
+
"Bahqtrf": "fk6fouc",
|
18
|
+
"Be2twd7": "fkhj508",
|
19
|
+
"Bg96gwp": "f1i3iumi",
|
20
|
+
"Bhrd7zp": "figsok6",
|
20
21
|
"fsow6f": "fpgzoln",
|
21
22
|
"mc9l5x": "f1w7gpdv",
|
22
23
|
"Huce71": "f6juhto",
|
@@ -46,52 +47,52 @@ var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
46
47
|
"dwov6y": "f13legbo"
|
47
48
|
},
|
48
49
|
"base100": {
|
49
|
-
"Be2twd7": "
|
50
|
-
"Bg96gwp": "
|
50
|
+
"Be2twd7": "f13mqy1h",
|
51
|
+
"Bg96gwp": "fcpl73t"
|
51
52
|
},
|
52
53
|
"base200": {
|
53
|
-
"Be2twd7": "
|
54
|
-
"Bg96gwp": "
|
54
|
+
"Be2twd7": "fy9rknc",
|
55
|
+
"Bg96gwp": "fwrc4pm"
|
55
56
|
},
|
56
57
|
"base400": {
|
57
|
-
"Be2twd7": "
|
58
|
-
"Bg96gwp": "
|
58
|
+
"Be2twd7": "fod5ikn",
|
59
|
+
"Bg96gwp": "faaz57k"
|
59
60
|
},
|
60
61
|
"base500": {
|
61
|
-
"Be2twd7": "
|
62
|
-
"Bg96gwp": "
|
62
|
+
"Be2twd7": "f1pp30po",
|
63
|
+
"Bg96gwp": "f106mvju"
|
63
64
|
},
|
64
65
|
"base600": {
|
65
|
-
"Be2twd7": "
|
66
|
-
"Bg96gwp": "
|
66
|
+
"Be2twd7": "f1x0m3f5",
|
67
|
+
"Bg96gwp": "fb86gi6"
|
67
68
|
},
|
68
69
|
"hero700": {
|
69
|
-
"Be2twd7": "
|
70
|
-
"Bg96gwp": "
|
70
|
+
"Be2twd7": "fojgt09",
|
71
|
+
"Bg96gwp": "fcen8rp"
|
71
72
|
},
|
72
73
|
"hero800": {
|
73
|
-
"Be2twd7": "
|
74
|
-
"Bg96gwp": "
|
74
|
+
"Be2twd7": "fccw675",
|
75
|
+
"Bg96gwp": "f1ebx5kk"
|
75
76
|
},
|
76
77
|
"hero900": {
|
77
|
-
"Be2twd7": "
|
78
|
-
"Bg96gwp": "
|
78
|
+
"Be2twd7": "f15afnhw",
|
79
|
+
"Bg96gwp": "fr3w3wp"
|
79
80
|
},
|
80
81
|
"hero1000": {
|
81
|
-
"Be2twd7": "
|
82
|
-
"Bg96gwp": "
|
82
|
+
"Be2twd7": "fpyltcb",
|
83
|
+
"Bg96gwp": "f1ivgwrt"
|
83
84
|
},
|
84
85
|
"monospace": {
|
85
|
-
"Bahqtrf": "
|
86
|
+
"Bahqtrf": "f1fedwem"
|
86
87
|
},
|
87
88
|
"numeric": {
|
88
|
-
"Bahqtrf": "
|
89
|
+
"Bahqtrf": "f1uq0ln5"
|
89
90
|
},
|
90
91
|
"weightMedium": {
|
91
|
-
"Bhrd7zp": "
|
92
|
+
"Bhrd7zp": "fdj6btp"
|
92
93
|
},
|
93
94
|
"weightSemibold": {
|
94
|
-
"Bhrd7zp": "
|
95
|
+
"Bhrd7zp": "fl43uef"
|
95
96
|
},
|
96
97
|
"alignCenter": {
|
97
98
|
"fsow6f": "f17mccla"
|
@@ -103,16 +104,16 @@ var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
103
104
|
"fsow6f": "f1j59e10"
|
104
105
|
}
|
105
106
|
}, {
|
106
|
-
"d": [".
|
107
|
+
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fpgzoln{text-align:start;}", ".f1w7gpdv{display:inline;}", ".f6juhto{white-space:normal;}", ".f1gl81tg{overflow:visible;}", ".f2jf649{text-overflow:clip;}", ".fz5stix{white-space:nowrap;}", ".f1a3p1vp{overflow:hidden;}", ".f1cmbuwj{text-overflow:ellipsis;}", ".ftgm304{display:block;}", ".f1j4dglz{font-style:italic;}", ".fctto54{-webkit-text-decoration:underline;text-decoration:underline;}", ".f1y2xhd0{-webkit-text-decoration:line-through;text-decoration:line-through;}", ".f13legbo{-webkit-text-decoration:line-through underline;text-decoration:line-through underline;}", ".f13mqy1h{font-size:var(--fontSizeBase100);}", ".fcpl73t{line-height:var(--lineHeightBase100);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".faaz57k{line-height:var(--lineHeightBase400);}", ".f1pp30po{font-size:var(--fontSizeBase500);}", ".f106mvju{line-height:var(--lineHeightBase500);}", ".f1x0m3f5{font-size:var(--fontSizeBase600);}", ".fb86gi6{line-height:var(--lineHeightBase600);}", ".fojgt09{font-size:var(--fontSizeHero700);}", ".fcen8rp{line-height:var(--lineHeightHero700);}", ".fccw675{font-size:var(--fontSizeHero800);}", ".f1ebx5kk{line-height:var(--lineHeightHero800);}", ".f15afnhw{font-size:var(--fontSizeHero900);}", ".fr3w3wp{line-height:var(--lineHeightHero900);}", ".fpyltcb{font-size:var(--fontSizeHero1000);}", ".f1ivgwrt{line-height:var(--lineHeightHero1000);}", ".f1fedwem{font-family:var(--fontFamilyMonospace);}", ".f1uq0ln5{font-family:var(--fontFamilyNumeric);}", ".fdj6btp{font-weight:var(--fontWeightMedium);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f17mccla{text-align:center;}", ".f12ymhq5{text-align:end;}", ".f1j59e10{text-align:justify;}"]
|
107
108
|
});
|
108
109
|
/**
|
109
110
|
* Apply styling to the Text slots based on the state
|
110
111
|
*/
|
111
112
|
|
112
113
|
|
113
|
-
|
114
|
-
|
115
|
-
state.className = react_make_styles_1.mergeClasses(styles.root, state.wrap === false && styles.nowrap, state.truncate && styles.truncate, state.block && styles.block, state.italic && styles.italic, state.underline && styles.underline, state.strikethrough && styles.strikethrough, state.underline && state.strikethrough && styles.strikethroughUnderline, state.size === 100 && styles.base100, state.size === 200 && styles.base200, state.size === 400 && styles.base400, state.size === 500 && styles.base500, state.size === 600 && styles.base600, state.size === 700 && styles.hero700, state.size === 800 && styles.hero800, state.size === 900 && styles.hero900, state.size === 1000 && styles.hero1000, state.font === 'monospace' && styles.monospace, state.font === 'numeric' && styles.numeric, state.weight === 'medium' && styles.weightMedium, state.weight === 'semibold' && styles.weightSemibold, state.align === 'center' && styles.alignCenter, state.align === 'end' && styles.alignEnd, state.align === 'justify' && styles.alignJustify, state.className);
|
114
|
+
const useTextStyles = state => {
|
115
|
+
const styles = useStyles();
|
116
|
+
state.root.className = react_make_styles_1.mergeClasses(exports.textClassName, styles.root, state.wrap === false && styles.nowrap, state.truncate && styles.truncate, state.block && styles.block, state.italic && styles.italic, state.underline && styles.underline, state.strikethrough && styles.strikethrough, state.underline && state.strikethrough && styles.strikethroughUnderline, state.size === 100 && styles.base100, state.size === 200 && styles.base200, state.size === 400 && styles.base400, state.size === 500 && styles.base500, state.size === 600 && styles.base600, state.size === 700 && styles.hero700, state.size === 800 && styles.hero800, state.size === 900 && styles.hero900, state.size === 1000 && styles.hero1000, state.font === 'monospace' && styles.monospace, state.font === 'numeric' && styles.numeric, state.weight === 'medium' && styles.weightMedium, state.weight === 'semibold' && styles.weightSemibold, state.align === 'center' && styles.alignCenter, state.align === 'end' && styles.alignEnd, state.align === 'justify' && styles.alignJustify, state.root.className);
|
116
117
|
return state;
|
117
118
|
};
|
118
119
|
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Text/useTextStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,
|
1
|
+
{"version":3,"sources":["../../../src/components/Text/useTextStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAGa,OAAA,CAAA,aAAA,GAAgB,UAAhB;AAEb;;AAEG;;AACH,MAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AA6FA;;AAEG;;;AACI,MAAM,aAAa,GAAI,KAAD,IAAgC;AAC3D,QAAM,MAAM,GAAG,SAAS,EAAxB;AAEA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,mBAAA,CAAA,YAAA,CACrB,OAAA,CAAA,aADqB,EAErB,MAAM,CAAC,IAFc,EAGrB,KAAK,CAAC,IAAN,KAAe,KAAf,IAAwB,MAAM,CAAC,MAHV,EAIrB,KAAK,CAAC,QAAN,IAAkB,MAAM,CAAC,QAJJ,EAKrB,KAAK,CAAC,KAAN,IAAe,MAAM,CAAC,KALD,EAMrB,KAAK,CAAC,MAAN,IAAgB,MAAM,CAAC,MANF,EAOrB,KAAK,CAAC,SAAN,IAAmB,MAAM,CAAC,SAPL,EAQrB,KAAK,CAAC,aAAN,IAAuB,MAAM,CAAC,aART,EASrB,KAAK,CAAC,SAAN,IAAmB,KAAK,CAAC,aAAzB,IAA0C,MAAM,CAAC,sBAT5B,EAUrB,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAVR,EAWrB,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAXR,EAYrB,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAZR,EAarB,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAbR,EAcrB,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAdR,EAerB,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAfR,EAgBrB,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAhBR,EAiBrB,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAjBR,EAkBrB,KAAK,CAAC,IAAN,KAAe,IAAf,IAAuB,MAAM,CAAC,QAlBT,EAmBrB,KAAK,CAAC,IAAN,KAAe,WAAf,IAA8B,MAAM,CAAC,SAnBhB,EAoBrB,KAAK,CAAC,IAAN,KAAe,SAAf,IAA4B,MAAM,CAAC,OApBd,EAqBrB,KAAK,CAAC,MAAN,KAAiB,QAAjB,IAA6B,MAAM,CAAC,YArBf,EAsBrB,KAAK,CAAC,MAAN,KAAiB,UAAjB,IAA+B,MAAM,CAAC,cAtBjB,EAuBrB,KAAK,CAAC,KAAN,KAAgB,QAAhB,IAA4B,MAAM,CAAC,WAvBd,EAwBrB,KAAK,CAAC,KAAN,KAAgB,KAAhB,IAAyB,MAAM,CAAC,QAxBX,EAyBrB,KAAK,CAAC,KAAN,KAAgB,SAAhB,IAA6B,MAAM,CAAC,YAzBf,EA0BrB,KAAK,CAAC,IAAN,CAAW,SA1BU,CAAvB;AA6BA,SAAO,KAAP;AACD,CAjCM;;AAAM,OAAA,CAAA,aAAA,GAAa,aAAb","sourceRoot":""}
|
@@ -1,4 +1,7 @@
|
|
1
|
+
import type { FunctionComponent } from 'react';
|
2
|
+
import { TextWrapperProps } from '../wrapper';
|
3
|
+
export declare const title1ClassName = "fui-Title1";
|
1
4
|
/**
|
2
5
|
* Text wrapper component for the Title 1 typography variant
|
3
6
|
*/
|
4
|
-
export declare const Title1:
|
7
|
+
export declare const Title1: FunctionComponent<TextWrapperProps>;
|
@@ -3,19 +3,20 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.Title1 = void 0;
|
6
|
+
exports.Title1 = exports.title1ClassName = void 0;
|
7
7
|
|
8
|
-
|
8
|
+
const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
|
9
9
|
|
10
|
-
|
10
|
+
const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
|
11
11
|
|
12
|
-
|
12
|
+
const wrapper_1 = /*#__PURE__*/require("../wrapper");
|
13
|
+
|
14
|
+
exports.title1ClassName = 'fui-Title1';
|
13
15
|
/**
|
14
16
|
* Styles for the root slot
|
15
17
|
*/
|
16
18
|
|
17
|
-
|
18
|
-
var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
19
|
+
const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
19
20
|
"root": {}
|
20
21
|
}, {});
|
21
22
|
/**
|
@@ -24,7 +25,8 @@ var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
24
25
|
|
25
26
|
|
26
27
|
exports.Title1 = /*#__PURE__*/wrapper_1.createWrapper({
|
27
|
-
useStyles
|
28
|
+
useStyles,
|
29
|
+
className: exports.title1ClassName,
|
28
30
|
displayName: 'Title1'
|
29
31
|
});
|
30
32
|
//# sourceMappingURL=Title1.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Title1/Title1.tsx"],"names":[],"mappings":";;;;;;;
|
1
|
+
{"version":3,"sources":["../../../src/components/Title1/Title1.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAEa,OAAA,CAAA,eAAA,GAAkB,YAAlB;AAEb;;AAEG;;AACH,MAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA,MAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,MAAA,gBAA8C,SAAA,CAAA,aAAA,CAAc;AACvE,EAAA,SADuE;AAEvE,EAAA,SAAS,EAAE,OAAA,CAAA,eAF4D;AAGvE,EAAA,WAAW,EAAE;AAH0D,CAAd,CAA9C","sourceRoot":""}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Title1/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,UAAA,CAAA,EAAA,OAAA","
|
1
|
+
{"version":3,"sources":["../../../src/components/Title1/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,UAAA,CAAA,EAAA,OAAA","sourceRoot":""}
|
@@ -1,4 +1,7 @@
|
|
1
|
+
import type { FunctionComponent } from 'react';
|
2
|
+
import { TextWrapperProps } from '../wrapper';
|
3
|
+
export declare const title2ClassName = "fui-Title2";
|
1
4
|
/**
|
2
5
|
* Text wrapper component for the Title 2 typography variant
|
3
6
|
*/
|
4
|
-
export declare const Title2:
|
7
|
+
export declare const Title2: FunctionComponent<TextWrapperProps>;
|
@@ -3,19 +3,20 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.Title2 = void 0;
|
6
|
+
exports.Title2 = exports.title2ClassName = void 0;
|
7
7
|
|
8
|
-
|
8
|
+
const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
|
9
9
|
|
10
|
-
|
10
|
+
const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
|
11
11
|
|
12
|
-
|
12
|
+
const wrapper_1 = /*#__PURE__*/require("../wrapper");
|
13
|
+
|
14
|
+
exports.title2ClassName = 'fui-Title2';
|
13
15
|
/**
|
14
16
|
* Styles for the root slot
|
15
17
|
*/
|
16
18
|
|
17
|
-
|
18
|
-
var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
19
|
+
const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
19
20
|
"root": {}
|
20
21
|
}, {});
|
21
22
|
/**
|
@@ -24,7 +25,8 @@ var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
24
25
|
|
25
26
|
|
26
27
|
exports.Title2 = /*#__PURE__*/wrapper_1.createWrapper({
|
27
|
-
useStyles
|
28
|
+
useStyles,
|
29
|
+
className: exports.title2ClassName,
|
28
30
|
displayName: 'Title2'
|
29
31
|
});
|
30
32
|
//# sourceMappingURL=Title2.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Title2/Title2.tsx"],"names":[],"mappings":";;;;;;;
|
1
|
+
{"version":3,"sources":["../../../src/components/Title2/Title2.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAEa,OAAA,CAAA,eAAA,GAAkB,YAAlB;AAEb;;AAEG;;AACH,MAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA,MAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,MAAA,gBAA8C,SAAA,CAAA,aAAA,CAAc;AACvE,EAAA,SADuE;AAEvE,EAAA,SAAS,EAAE,OAAA,CAAA,eAF4D;AAGvE,EAAA,WAAW,EAAE;AAH0D,CAAd,CAA9C","sourceRoot":""}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Title2/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,UAAA,CAAA,EAAA,OAAA","
|
1
|
+
{"version":3,"sources":["../../../src/components/Title2/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,UAAA,CAAA,EAAA,OAAA","sourceRoot":""}
|
@@ -1,4 +1,7 @@
|
|
1
|
+
import type { FunctionComponent } from 'react';
|
2
|
+
import { TextWrapperProps } from '../wrapper';
|
3
|
+
export declare const title3ClassName = "fui-Title3";
|
1
4
|
/**
|
2
5
|
* Text wrapper component for the Title 3 typography variant
|
3
6
|
*/
|
4
|
-
export declare const Title3:
|
7
|
+
export declare const Title3: FunctionComponent<TextWrapperProps>;
|
@@ -3,19 +3,20 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.Title3 = void 0;
|
6
|
+
exports.Title3 = exports.title3ClassName = void 0;
|
7
7
|
|
8
|
-
|
8
|
+
const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
|
9
9
|
|
10
|
-
|
10
|
+
const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
|
11
11
|
|
12
|
-
|
12
|
+
const wrapper_1 = /*#__PURE__*/require("../wrapper");
|
13
|
+
|
14
|
+
exports.title3ClassName = 'fui-Title3';
|
13
15
|
/**
|
14
16
|
* Styles for the root slot
|
15
17
|
*/
|
16
18
|
|
17
|
-
|
18
|
-
var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
19
|
+
const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
19
20
|
"root": {}
|
20
21
|
}, {});
|
21
22
|
/**
|
@@ -24,7 +25,8 @@ var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
24
25
|
|
25
26
|
|
26
27
|
exports.Title3 = /*#__PURE__*/wrapper_1.createWrapper({
|
27
|
-
useStyles
|
28
|
+
useStyles,
|
29
|
+
className: exports.title3ClassName,
|
28
30
|
displayName: 'Title3'
|
29
31
|
});
|
30
32
|
//# sourceMappingURL=Title3.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Title3/Title3.tsx"],"names":[],"mappings":";;;;;;;
|
1
|
+
{"version":3,"sources":["../../../src/components/Title3/Title3.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAEa,OAAA,CAAA,eAAA,GAAkB,YAAlB;AAEb;;AAEG;;AACH,MAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA,MAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,MAAA,gBAA8C,SAAA,CAAA,aAAA,CAAc;AACvE,EAAA,SADuE;AAEvE,EAAA,SAAS,EAAE,OAAA,CAAA,eAF4D;AAGvE,EAAA,WAAW,EAAE;AAH0D,CAAd,CAA9C","sourceRoot":""}
|