@fluentui/react-text 9.1.10 → 9.1.11
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 +42 -1
- package/CHANGELOG.md +13 -2
- package/lib/components/Body1/Body1.js +6 -9
- package/lib/components/Body1/Body1.js.map +1 -1
- package/lib/components/Caption1/Caption1.js +6 -9
- package/lib/components/Caption1/Caption1.js.map +1 -1
- package/lib/components/Caption2/Caption2.js +6 -9
- package/lib/components/Caption2/Caption2.js.map +1 -1
- package/lib/components/Display/Display.js +6 -9
- package/lib/components/Display/Display.js.map +1 -1
- package/lib/components/LargeTitle/LargeTitle.js +6 -9
- package/lib/components/LargeTitle/LargeTitle.js.map +1 -1
- package/lib/components/Subtitle1/Subtitle1.js +6 -9
- package/lib/components/Subtitle1/Subtitle1.js.map +1 -1
- package/lib/components/Subtitle2/Subtitle2.js +6 -9
- package/lib/components/Subtitle2/Subtitle2.js.map +1 -1
- package/lib/components/Text/Text.js +3 -2
- package/lib/components/Text/Text.js.map +1 -1
- package/lib/components/Text/renderText.js +2 -2
- package/lib/components/Text/renderText.js.map +1 -1
- package/lib/components/Text/useText.js +0 -2
- package/lib/components/Text/useText.js.map +1 -1
- package/lib/components/Text/useTextStyles.js +71 -74
- package/lib/components/Text/useTextStyles.js.map +1 -1
- package/lib/components/Title1/Title1.js +6 -9
- package/lib/components/Title1/Title1.js.map +1 -1
- package/lib/components/Title2/Title2.js +6 -9
- package/lib/components/Title2/Title2.js.map +1 -1
- package/lib/components/Title3/Title3.js +6 -9
- package/lib/components/Title3/Title3.js.map +1 -1
- package/lib/components/wrapper.js.map +1 -1
- package/lib-commonjs/Body1.js +0 -2
- package/lib-commonjs/Body1.js.map +1 -1
- package/lib-commonjs/Caption1.js +0 -2
- package/lib-commonjs/Caption1.js.map +1 -1
- package/lib-commonjs/Caption2.js +0 -2
- package/lib-commonjs/Caption2.js.map +1 -1
- package/lib-commonjs/Display.js +0 -2
- package/lib-commonjs/Display.js.map +1 -1
- package/lib-commonjs/LargeTitle.js +0 -2
- package/lib-commonjs/LargeTitle.js.map +1 -1
- package/lib-commonjs/Subtitle1.js +0 -2
- package/lib-commonjs/Subtitle1.js.map +1 -1
- package/lib-commonjs/Subtitle2.js +0 -2
- package/lib-commonjs/Subtitle2.js.map +1 -1
- package/lib-commonjs/Text.js +0 -2
- package/lib-commonjs/Text.js.map +1 -1
- package/lib-commonjs/Title1.js +0 -2
- package/lib-commonjs/Title1.js.map +1 -1
- package/lib-commonjs/Title2.js +0 -2
- package/lib-commonjs/Title2.js.map +1 -1
- package/lib-commonjs/Title3.js +0 -2
- package/lib-commonjs/Title3.js.map +1 -1
- package/lib-commonjs/components/Body1/Body1.js +6 -13
- package/lib-commonjs/components/Body1/Body1.js.map +1 -1
- package/lib-commonjs/components/Body1/index.js +0 -2
- package/lib-commonjs/components/Body1/index.js.map +1 -1
- package/lib-commonjs/components/Caption1/Caption1.js +6 -13
- package/lib-commonjs/components/Caption1/Caption1.js.map +1 -1
- package/lib-commonjs/components/Caption1/index.js +0 -2
- package/lib-commonjs/components/Caption1/index.js.map +1 -1
- package/lib-commonjs/components/Caption2/Caption2.js +6 -13
- package/lib-commonjs/components/Caption2/Caption2.js.map +1 -1
- package/lib-commonjs/components/Caption2/index.js +0 -2
- package/lib-commonjs/components/Caption2/index.js.map +1 -1
- package/lib-commonjs/components/Display/Display.js +6 -13
- package/lib-commonjs/components/Display/Display.js.map +1 -1
- package/lib-commonjs/components/Display/index.js +0 -2
- package/lib-commonjs/components/Display/index.js.map +1 -1
- package/lib-commonjs/components/LargeTitle/LargeTitle.js +6 -13
- package/lib-commonjs/components/LargeTitle/LargeTitle.js.map +1 -1
- package/lib-commonjs/components/LargeTitle/index.js +0 -2
- package/lib-commonjs/components/LargeTitle/index.js.map +1 -1
- package/lib-commonjs/components/Subtitle1/Subtitle1.js +6 -13
- package/lib-commonjs/components/Subtitle1/Subtitle1.js.map +1 -1
- package/lib-commonjs/components/Subtitle1/index.js +0 -2
- package/lib-commonjs/components/Subtitle1/index.js.map +1 -1
- package/lib-commonjs/components/Subtitle2/Subtitle2.js +6 -13
- package/lib-commonjs/components/Subtitle2/Subtitle2.js.map +1 -1
- package/lib-commonjs/components/Subtitle2/index.js +0 -2
- package/lib-commonjs/components/Subtitle2/index.js.map +1 -1
- package/lib-commonjs/components/Text/Text.js +3 -7
- package/lib-commonjs/components/Text/Text.js.map +1 -1
- package/lib-commonjs/components/Text/Text.types.js.map +1 -1
- package/lib-commonjs/components/Text/index.js +0 -6
- package/lib-commonjs/components/Text/index.js.map +1 -1
- package/lib-commonjs/components/Text/renderText.js +2 -6
- package/lib-commonjs/components/Text/renderText.js.map +1 -1
- package/lib-commonjs/components/Text/useText.js +0 -5
- package/lib-commonjs/components/Text/useText.js.map +1 -1
- package/lib-commonjs/components/Text/useTextStyles.js +71 -78
- package/lib-commonjs/components/Text/useTextStyles.js.map +1 -1
- package/lib-commonjs/components/Title1/Title1.js +6 -13
- package/lib-commonjs/components/Title1/Title1.js.map +1 -1
- package/lib-commonjs/components/Title1/index.js +0 -2
- package/lib-commonjs/components/Title1/index.js.map +1 -1
- package/lib-commonjs/components/Title2/Title2.js +6 -13
- package/lib-commonjs/components/Title2/Title2.js.map +1 -1
- package/lib-commonjs/components/Title2/index.js +0 -2
- package/lib-commonjs/components/Title2/index.js.map +1 -1
- package/lib-commonjs/components/Title3/Title3.js +6 -13
- package/lib-commonjs/components/Title3/Title3.js.map +1 -1
- package/lib-commonjs/components/Title3/index.js +0 -2
- package/lib-commonjs/components/Title3/index.js.map +1 -1
- package/lib-commonjs/components/wrapper.js +0 -5
- package/lib-commonjs/components/wrapper.js.map +1 -1
- package/lib-commonjs/index.js +0 -22
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +5 -5
@@ -6,111 +6,108 @@ export const textClassNames = {
|
|
6
6
|
/**
|
7
7
|
* Styles for the root slot
|
8
8
|
*/
|
9
|
-
|
10
9
|
const useStyles = /*#__PURE__*/__styles({
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
10
|
+
root: {
|
11
|
+
Bahqtrf: "fk6fouc",
|
12
|
+
Be2twd7: "fkhj508",
|
13
|
+
Bg96gwp: "f1i3iumi",
|
14
|
+
Bhrd7zp: "figsok6",
|
15
|
+
fsow6f: "fpgzoln",
|
16
|
+
mc9l5x: "f1w7gpdv",
|
17
|
+
Huce71: "f6juhto",
|
18
|
+
B68tc82: "f1mtd64y",
|
19
|
+
Bmxbyg5: "f1y7q3j9",
|
20
|
+
ygn44y: "f2jf649"
|
22
21
|
},
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
22
|
+
nowrap: {
|
23
|
+
Huce71: "fz5stix",
|
24
|
+
B68tc82: "f1p9o1ba",
|
25
|
+
Bmxbyg5: "f1sil6mw"
|
27
26
|
},
|
28
|
-
|
29
|
-
|
27
|
+
truncate: {
|
28
|
+
ygn44y: "f1cmbuwj"
|
30
29
|
},
|
31
|
-
|
32
|
-
|
30
|
+
block: {
|
31
|
+
mc9l5x: "ftgm304"
|
33
32
|
},
|
34
|
-
|
35
|
-
|
33
|
+
italic: {
|
34
|
+
B80ckks: "f1j4dglz"
|
36
35
|
},
|
37
|
-
|
38
|
-
|
36
|
+
underline: {
|
37
|
+
w71qe1: "f13mvf36"
|
39
38
|
},
|
40
|
-
|
41
|
-
|
39
|
+
strikethrough: {
|
40
|
+
w71qe1: "fv5q2k7"
|
42
41
|
},
|
43
|
-
|
44
|
-
|
42
|
+
strikethroughUnderline: {
|
43
|
+
w71qe1: "f1drk4o6"
|
45
44
|
},
|
46
|
-
|
47
|
-
|
48
|
-
|
45
|
+
base100: {
|
46
|
+
Be2twd7: "f13mqy1h",
|
47
|
+
Bg96gwp: "fcpl73t"
|
49
48
|
},
|
50
|
-
|
51
|
-
|
52
|
-
|
49
|
+
base200: {
|
50
|
+
Be2twd7: "fy9rknc",
|
51
|
+
Bg96gwp: "fwrc4pm"
|
53
52
|
},
|
54
|
-
|
55
|
-
|
56
|
-
|
53
|
+
base400: {
|
54
|
+
Be2twd7: "fod5ikn",
|
55
|
+
Bg96gwp: "faaz57k"
|
57
56
|
},
|
58
|
-
|
59
|
-
|
60
|
-
|
57
|
+
base500: {
|
58
|
+
Be2twd7: "f1pp30po",
|
59
|
+
Bg96gwp: "f106mvju"
|
61
60
|
},
|
62
|
-
|
63
|
-
|
64
|
-
|
61
|
+
base600: {
|
62
|
+
Be2twd7: "f1x0m3f5",
|
63
|
+
Bg96gwp: "fb86gi6"
|
65
64
|
},
|
66
|
-
|
67
|
-
|
68
|
-
|
65
|
+
hero700: {
|
66
|
+
Be2twd7: "fojgt09",
|
67
|
+
Bg96gwp: "fcen8rp"
|
69
68
|
},
|
70
|
-
|
71
|
-
|
72
|
-
|
69
|
+
hero800: {
|
70
|
+
Be2twd7: "fccw675",
|
71
|
+
Bg96gwp: "f1ebx5kk"
|
73
72
|
},
|
74
|
-
|
75
|
-
|
76
|
-
|
73
|
+
hero900: {
|
74
|
+
Be2twd7: "f15afnhw",
|
75
|
+
Bg96gwp: "fr3w3wp"
|
77
76
|
},
|
78
|
-
|
79
|
-
|
80
|
-
|
77
|
+
hero1000: {
|
78
|
+
Be2twd7: "fpyltcb",
|
79
|
+
Bg96gwp: "f1ivgwrt"
|
81
80
|
},
|
82
|
-
|
83
|
-
|
81
|
+
monospace: {
|
82
|
+
Bahqtrf: "f1fedwem"
|
84
83
|
},
|
85
|
-
|
86
|
-
|
84
|
+
numeric: {
|
85
|
+
Bahqtrf: "f1uq0ln5"
|
87
86
|
},
|
88
|
-
|
89
|
-
|
87
|
+
weightMedium: {
|
88
|
+
Bhrd7zp: "fdj6btp"
|
90
89
|
},
|
91
|
-
|
92
|
-
|
90
|
+
weightSemibold: {
|
91
|
+
Bhrd7zp: "fl43uef"
|
93
92
|
},
|
94
|
-
|
95
|
-
|
93
|
+
weightBold: {
|
94
|
+
Bhrd7zp: "flh3ekv"
|
96
95
|
},
|
97
|
-
|
98
|
-
|
96
|
+
alignCenter: {
|
97
|
+
fsow6f: "f17mccla"
|
99
98
|
},
|
100
|
-
|
101
|
-
|
99
|
+
alignEnd: {
|
100
|
+
fsow6f: "f12ymhq5"
|
102
101
|
},
|
103
|
-
|
104
|
-
|
102
|
+
alignJustify: {
|
103
|
+
fsow6f: "f1j59e10"
|
105
104
|
}
|
106
105
|
}, {
|
107
|
-
|
106
|
+
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;}", ".f1mtd64y{overflow-x:visible;}", ".f1y7q3j9{overflow-y:visible;}", ".f2jf649{text-overflow:clip;}", ".fz5stix{white-space:nowrap;}", ".f1p9o1ba{overflow-x:hidden;}", ".f1sil6mw{overflow-y:hidden;}", ".f1cmbuwj{text-overflow:ellipsis;}", ".ftgm304{display:block;}", ".f1j4dglz{font-style:italic;}", ".f13mvf36{text-decoration-line:underline;}", ".fv5q2k7{text-decoration-line:line-through;}", ".f1drk4o6{text-decoration-line: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);}", ".flh3ekv{font-weight:var(--fontWeightBold);}", ".f17mccla{text-align:center;}", ".f12ymhq5{text-align:end;}", ".f1j59e10{text-align:justify;}"]
|
108
107
|
});
|
109
108
|
/**
|
110
109
|
* Apply styling to the Text slots based on the state
|
111
110
|
*/
|
112
|
-
|
113
|
-
|
114
111
|
export const useTextStyles_unstable = state => {
|
115
112
|
const styles = useStyles();
|
116
113
|
state.root.className = mergeClasses(textClassNames.root, 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.weight === 'bold' && styles.weightBold, state.align === 'center' && styles.alignCenter, state.align === 'end' && styles.alignEnd, state.align === 'justify' && styles.alignJustify, state.root.className);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"mappings":"AAAA,mBAAqBA,YAAY,EAAEC,UAAU,QAAQ,gBAAgB;AACrE,SAASC,MAAM,QAAQ,uBAAuB;AAI9C,OAAO,MAAMC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AACd,CAAC","names":["mergeClasses","shorthands","tokens","textClassNames","root","useStyles","useTextStyles_unstable","state","styles","className","wrap","nowrap","truncate","block","italic","underline","strikethrough","strikethroughUnderline","size","base100","base200","base400","base500","base600","hero700","hero800","hero900","hero1000","font","monospace","numeric","weight","weightMedium","weightSemibold","weightBold","align","alignCenter","alignEnd","alignJustify"],"sourceRoot":"../src/","sources":["packages/react-components/react-text/src/components/Text/useTextStyles.ts"],"sourcesContent":["import { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { TextSlots, TextState } from './Text.types';\nimport { SlotClassNames } from '@fluentui/react-utilities';\n\nexport const textClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Text',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeBase300,\n lineHeight: tokens.lineHeightBase300,\n fontWeight: tokens.fontWeightRegular,\n textAlign: 'start',\n display: 'inline',\n whiteSpace: 'normal',\n ...shorthands.overflow('visible'),\n textOverflow: 'clip',\n },\n nowrap: {\n whiteSpace: 'nowrap',\n ...shorthands.overflow('hidden'),\n },\n truncate: {\n textOverflow: 'ellipsis',\n },\n block: {\n display: 'block',\n },\n italic: {\n fontStyle: 'italic',\n },\n underline: {\n textDecorationLine: 'underline',\n },\n strikethrough: {\n textDecorationLine: 'line-through',\n },\n strikethroughUnderline: {\n textDecorationLine: 'line-through underline',\n },\n base100: {\n fontSize: tokens.fontSizeBase100,\n lineHeight: tokens.lineHeightBase100,\n },\n base200: {\n fontSize: tokens.fontSizeBase200,\n lineHeight: tokens.lineHeightBase200,\n },\n base400: {\n fontSize: tokens.fontSizeBase400,\n lineHeight: tokens.lineHeightBase400,\n },\n base500: {\n fontSize: tokens.fontSizeBase500,\n lineHeight: tokens.lineHeightBase500,\n },\n base600: {\n fontSize: tokens.fontSizeBase600,\n lineHeight: tokens.lineHeightBase600,\n },\n hero700: {\n fontSize: tokens.fontSizeHero700,\n lineHeight: tokens.lineHeightHero700,\n },\n hero800: {\n fontSize: tokens.fontSizeHero800,\n lineHeight: tokens.lineHeightHero800,\n },\n hero900: {\n fontSize: tokens.fontSizeHero900,\n lineHeight: tokens.lineHeightHero900,\n },\n hero1000: {\n fontSize: tokens.fontSizeHero1000,\n lineHeight: tokens.lineHeightHero1000,\n },\n monospace: {\n fontFamily: tokens.fontFamilyMonospace,\n },\n numeric: {\n fontFamily: tokens.fontFamilyNumeric,\n },\n weightMedium: {\n fontWeight: tokens.fontWeightMedium,\n },\n weightSemibold: {\n fontWeight: tokens.fontWeightSemibold,\n },\n weightBold: {\n fontWeight: tokens.fontWeightBold,\n },\n alignCenter: {\n textAlign: 'center',\n },\n alignEnd: {\n textAlign: 'end',\n },\n alignJustify: {\n textAlign: 'justify',\n },\n});\n\n/**\n * Apply styling to the Text slots based on the state\n */\nexport const useTextStyles_unstable = (state: TextState): TextState => {\n const styles = useStyles();\n\n state.root.className = mergeClasses(\n textClassNames.root,\n styles.root,\n state.wrap === false && styles.nowrap,\n state.truncate && styles.truncate,\n state.block && styles.block,\n state.italic && styles.italic,\n state.underline && styles.underline,\n state.strikethrough && styles.strikethrough,\n state.underline && state.strikethrough && styles.strikethroughUnderline,\n state.size === 100 && styles.base100,\n state.size === 200 && styles.base200,\n state.size === 400 && styles.base400,\n state.size === 500 && styles.base500,\n state.size === 600 && styles.base600,\n state.size === 700 && styles.hero700,\n state.size === 800 && styles.hero800,\n state.size === 900 && styles.hero900,\n state.size === 1000 && styles.hero1000,\n state.font === 'monospace' && styles.monospace,\n state.font === 'numeric' && styles.numeric,\n state.weight === 'medium' && styles.weightMedium,\n state.weight === 'semibold' && styles.weightSemibold,\n state.weight === 'bold' && styles.weightBold,\n state.align === 'center' && styles.alignCenter,\n state.align === 'end' && styles.alignEnd,\n state.align === 'justify' && styles.alignJustify,\n state.root.className,\n );\n\n return state;\n};\n"]}
|
@@ -7,22 +7,19 @@ export const title1ClassNames = {
|
|
7
7
|
/**
|
8
8
|
* Styles for the root slot
|
9
9
|
*/
|
10
|
-
|
11
10
|
const useStyles = /*#__PURE__*/__styles({
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
11
|
+
root: {
|
12
|
+
Bahqtrf: "fk6fouc",
|
13
|
+
Be2twd7: "fccw675",
|
14
|
+
Bhrd7zp: "fl43uef",
|
15
|
+
Bg96gwp: "f1ebx5kk"
|
17
16
|
}
|
18
17
|
}, {
|
19
|
-
|
18
|
+
d: [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fccw675{font-size:var(--fontSizeHero800);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f1ebx5kk{line-height:var(--lineHeightHero800);}"]
|
20
19
|
});
|
21
20
|
/**
|
22
21
|
* Text wrapper component for the Title 1 typography variant
|
23
22
|
*/
|
24
|
-
|
25
|
-
|
26
23
|
export const Title1 = /*#__PURE__*/createWrapper({
|
27
24
|
useStyles,
|
28
25
|
className: title1ClassNames.root,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"mappings":"AACA,yBAA2B,gBAAgB;AAC3C,SAASA,aAAa,QAA0B,YAAY;AAG5D,SAASC,gBAAgB,QAAQ,uBAAuB;AAExD,OAAO,MAAMC,gBAAgB,GAA8B;EACzDC,IAAI,EAAE;CACP;AAED;;;AAGA,MAAMC,SAAS,gBAAG;EAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAEhB;AAEF;;;AAGA,OAAO,MAAMC,MAAM,gBAAwCL,aAAa,CAAC;EACvEI,SAAS;EACTE,SAAS,EAAEJ,gBAAgB,CAACC,IAAI;EAChCI,WAAW,EAAE;CACd,CAAC","names":["createWrapper","typographyStyles","title1ClassNames","root","useStyles","Title1","className","displayName"],"sourceRoot":"../src/","sources":["packages/react-components/react-text/src/components/Title1/Title1.tsx"],"sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\nexport const title1ClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Title1',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.title1,\n});\n\n/**\n * Text wrapper component for the Title 1 typography variant\n */\nexport const Title1: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: title1ClassNames.root,\n displayName: 'Title1',\n});\n"]}
|
@@ -7,22 +7,19 @@ export const title2ClassNames = {
|
|
7
7
|
/**
|
8
8
|
* Styles for the root slot
|
9
9
|
*/
|
10
|
-
|
11
10
|
const useStyles = /*#__PURE__*/__styles({
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
11
|
+
root: {
|
12
|
+
Bahqtrf: "fk6fouc",
|
13
|
+
Be2twd7: "fojgt09",
|
14
|
+
Bhrd7zp: "fl43uef",
|
15
|
+
Bg96gwp: "fcen8rp"
|
17
16
|
}
|
18
17
|
}, {
|
19
|
-
|
18
|
+
d: [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fojgt09{font-size:var(--fontSizeHero700);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".fcen8rp{line-height:var(--lineHeightHero700);}"]
|
20
19
|
});
|
21
20
|
/**
|
22
21
|
* Text wrapper component for the Title 2 typography variant
|
23
22
|
*/
|
24
|
-
|
25
|
-
|
26
23
|
export const Title2 = /*#__PURE__*/createWrapper({
|
27
24
|
useStyles,
|
28
25
|
className: title2ClassNames.root,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"mappings":"AACA,yBAA2B,gBAAgB;AAC3C,SAASA,aAAa,QAA0B,YAAY;AAG5D,SAASC,gBAAgB,QAAQ,uBAAuB;AAExD,OAAO,MAAMC,gBAAgB,GAA8B;EACzDC,IAAI,EAAE;CACP;AAED;;;AAGA,MAAMC,SAAS,gBAAG;EAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAEhB;AAEF;;;AAGA,OAAO,MAAMC,MAAM,gBAAwCL,aAAa,CAAC;EACvEI,SAAS;EACTE,SAAS,EAAEJ,gBAAgB,CAACC,IAAI;EAChCI,WAAW,EAAE;CACd,CAAC","names":["createWrapper","typographyStyles","title2ClassNames","root","useStyles","Title2","className","displayName"],"sourceRoot":"../src/","sources":["packages/react-components/react-text/src/components/Title2/Title2.tsx"],"sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\nexport const title2ClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Title2',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.title2,\n});\n\n/**\n * Text wrapper component for the Title 2 typography variant\n */\nexport const Title2: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: title2ClassNames.root,\n displayName: 'Title2',\n});\n"]}
|
@@ -7,22 +7,19 @@ export const title3ClassNames = {
|
|
7
7
|
/**
|
8
8
|
* Styles for the root slot
|
9
9
|
*/
|
10
|
-
|
11
10
|
const useStyles = /*#__PURE__*/__styles({
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
11
|
+
root: {
|
12
|
+
Bahqtrf: "fk6fouc",
|
13
|
+
Be2twd7: "f1x0m3f5",
|
14
|
+
Bhrd7zp: "fl43uef",
|
15
|
+
Bg96gwp: "fb86gi6"
|
17
16
|
}
|
18
17
|
}, {
|
19
|
-
|
18
|
+
d: [".fk6fouc{font-family:var(--fontFamilyBase);}", ".f1x0m3f5{font-size:var(--fontSizeBase600);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".fb86gi6{line-height:var(--lineHeightBase600);}"]
|
20
19
|
});
|
21
20
|
/**
|
22
21
|
* Text wrapper component for the Title 3 typography variant
|
23
22
|
*/
|
24
|
-
|
25
|
-
|
26
23
|
export const Title3 = /*#__PURE__*/createWrapper({
|
27
24
|
useStyles,
|
28
25
|
className: title3ClassNames.root,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"mappings":"AACA,yBAA2B,gBAAgB;AAC3C,SAASA,aAAa,QAA0B,YAAY;AAG5D,SAASC,gBAAgB,QAAQ,uBAAuB;AAExD,OAAO,MAAMC,gBAAgB,GAA8B;EACzDC,IAAI,EAAE;CACP;AAED;;;AAGA,MAAMC,SAAS,gBAAG;EAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAEhB;AAEF;;;AAGA,OAAO,MAAMC,MAAM,gBAAwCL,aAAa,CAAC;EACvEI,SAAS;EACTE,SAAS,EAAEJ,gBAAgB,CAACC,IAAI;EAChCI,WAAW,EAAE;CACd,CAAC","names":["createWrapper","typographyStyles","title3ClassNames","root","useStyles","Title3","className","displayName"],"sourceRoot":"../src/","sources":["packages/react-components/react-text/src/components/Title3/Title3.tsx"],"sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\nexport const title3ClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Title3',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.title3,\n});\n\n/**\n * Text wrapper component for the Title 3 typography variant\n */\nexport const Title3: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: title3ClassNames.root,\n displayName: 'Title3',\n});\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,mBAAmB,EAAEC,gBAAgB,EAAEC,sBAAsB,QAAQ,SAAS;AAMvF,OAAM,SAAUC,aAAa,CAACC,OAI7B;EACC,MAAM;IAAEC,SAAS;IAAEC,SAAS;IAAEC;EAAW,CAAE,GAAGH,OAAO;EACrD,MAAMI,OAAO,gBAA0CV,KAAK,CAACW,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAI;IACrF,MAAMC,MAAM,GAAGP,SAAS,EAAE;IAC1B,MAAMQ,KAAK,GAAGZ,gBAAgB,CAACS,KAAkB,EAAEC,GAAG,CAAC;IAEvDT,sBAAsB,CAACW,KAAK,CAAC;IAE7BA,KAAK,CAACC,IAAI,CAACR,SAAS,GAAGP,YAAY,CAACO,SAAS,EAAEO,KAAK,CAACC,IAAI,CAACR,SAAS,EAAEM,MAAM,CAACE,IAAI,EAAEJ,KAAK,CAACJ,SAAS,CAAC;IAElG,OAAON,mBAAmB,CAACa,KAAK,CAAC;EACnC,CAAC,CAAC;EACFL,OAAO,CAACD,WAAW,GAAGA,WAAW;EAEjC,OAAOC,OAAO;AAChB","names":["React","mergeClasses","renderText_unstable","useText_unstable","useTextStyles_unstable","createWrapper","options","useStyles","className","displayName","Wrapper","forwardRef","props","ref","styles","state","root"],"sourceRoot":"../src/","sources":["packages/react-components/react-text/src/components/wrapper.tsx"],"sourcesContent":["import * as React from 'react';\nimport { mergeClasses } from '@griffel/react';\nimport { renderText_unstable, useText_unstable, useTextStyles_unstable } from '../Text';\nimport type { TextProps } from '../Text';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\nexport type TextWrapperProps = Omit<TextProps, 'font' | 'size'>;\n\nexport function createWrapper(options: {\n className: string;\n displayName: string;\n useStyles: () => Record<'root', string>;\n}): React.FunctionComponent<TextWrapperProps> {\n const { useStyles, className, displayName } = options;\n const Wrapper: ForwardRefComponent<TextWrapperProps> = React.forwardRef((props, ref) => {\n const styles = useStyles();\n const state = useText_unstable(props as TextProps, ref);\n\n useTextStyles_unstable(state);\n\n state.root.className = mergeClasses(className, state.root.className, styles.root, props.className);\n\n return renderText_unstable(state);\n });\n Wrapper.displayName = displayName;\n\n return Wrapper;\n}\n"]}
|
package/lib-commonjs/Body1.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["packages/react-components/react-text/src/Body1.ts"],"
|
1
|
+
{"version":3,"mappings":";;;;;;AAAAA","names":["tslib_1"],"sourceRoot":"../src/","sources":["packages/react-components/react-text/src/Body1.ts"],"sourcesContent":["export * from './components/Body1/index';\n"]}
|
package/lib-commonjs/Caption1.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["packages/react-components/react-text/src/Caption1.ts"],"
|
1
|
+
{"version":3,"mappings":";;;;;;AAAAA","names":["tslib_1"],"sourceRoot":"../src/","sources":["packages/react-components/react-text/src/Caption1.ts"],"sourcesContent":["export * from './components/Caption1/index';\n"]}
|
package/lib-commonjs/Caption2.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["packages/react-components/react-text/src/Caption2.ts"],"
|
1
|
+
{"version":3,"mappings":";;;;;;AAAAA","names":["tslib_1"],"sourceRoot":"../src/","sources":["packages/react-components/react-text/src/Caption2.ts"],"sourcesContent":["export * from './components/Caption2/index';\n"]}
|
package/lib-commonjs/Display.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["packages/react-components/react-text/src/Display.ts"],"
|
1
|
+
{"version":3,"mappings":";;;;;;AAAAA","names":["tslib_1"],"sourceRoot":"../src/","sources":["packages/react-components/react-text/src/Display.ts"],"sourcesContent":["export * from './components/Display/index';\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["packages/react-components/react-text/src/LargeTitle.ts"],"
|
1
|
+
{"version":3,"mappings":";;;;;;AAAAA","names":["tslib_1"],"sourceRoot":"../src/","sources":["packages/react-components/react-text/src/LargeTitle.ts"],"sourcesContent":["export * from './components/LargeTitle/index';\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["packages/react-components/react-text/src/Subtitle1.ts"],"
|
1
|
+
{"version":3,"mappings":";;;;;;AAAAA","names":["tslib_1"],"sourceRoot":"../src/","sources":["packages/react-components/react-text/src/Subtitle1.ts"],"sourcesContent":["export * from './components/Subtitle1/index';\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["packages/react-components/react-text/src/Subtitle2.ts"],"
|
1
|
+
{"version":3,"mappings":";;;;;;AAAAA","names":["tslib_1"],"sourceRoot":"../src/","sources":["packages/react-components/react-text/src/Subtitle2.ts"],"sourcesContent":["export * from './components/Subtitle2/index';\n"]}
|
package/lib-commonjs/Text.js
CHANGED
package/lib-commonjs/Text.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["packages/react-components/react-text/src/Text.ts"],"
|
1
|
+
{"version":3,"mappings":";;;;;;AAAAA","names":["tslib_1"],"sourceRoot":"../src/","sources":["packages/react-components/react-text/src/Text.ts"],"sourcesContent":["export * from './components/Text/index';\n"]}
|
package/lib-commonjs/Title1.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["packages/react-components/react-text/src/Title1.ts"],"
|
1
|
+
{"version":3,"mappings":";;;;;;AAAAA","names":["tslib_1"],"sourceRoot":"../src/","sources":["packages/react-components/react-text/src/Title1.ts"],"sourcesContent":["export * from './components/Title1/index';\n"]}
|
package/lib-commonjs/Title2.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["packages/react-components/react-text/src/Title2.ts"],"
|
1
|
+
{"version":3,"mappings":";;;;;;AAAAA","names":["tslib_1"],"sourceRoot":"../src/","sources":["packages/react-components/react-text/src/Title2.ts"],"sourcesContent":["export * from './components/Title2/index';\n"]}
|
package/lib-commonjs/Title3.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["packages/react-components/react-text/src/Title3.ts"],"
|
1
|
+
{"version":3,"mappings":";;;;;;AAAAA","names":["tslib_1"],"sourceRoot":"../src/","sources":["packages/react-components/react-text/src/Title3.ts"],"sourcesContent":["export * from './components/Title3/index';\n"]}
|
@@ -4,35 +4,28 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.Body1 = exports.body1ClassNames = void 0;
|
7
|
-
|
8
7
|
const react_1 = /*#__PURE__*/require("@griffel/react");
|
9
|
-
|
10
8
|
const wrapper_1 = /*#__PURE__*/require("../wrapper");
|
11
|
-
|
12
9
|
const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
|
13
|
-
|
14
10
|
exports.body1ClassNames = {
|
15
11
|
root: 'fui-Body1'
|
16
12
|
};
|
17
13
|
/**
|
18
14
|
* Styles for the root slot
|
19
15
|
*/
|
20
|
-
|
21
16
|
const useStyles = /*#__PURE__*/react_1.__styles({
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
17
|
+
root: {
|
18
|
+
Bahqtrf: "fk6fouc",
|
19
|
+
Be2twd7: "fkhj508",
|
20
|
+
Bhrd7zp: "figsok6",
|
21
|
+
Bg96gwp: "f1i3iumi"
|
27
22
|
}
|
28
23
|
}, {
|
29
|
-
|
24
|
+
d: [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}"]
|
30
25
|
});
|
31
26
|
/**
|
32
27
|
* Text wrapper component for the Body1 typography variant
|
33
28
|
*/
|
34
|
-
|
35
|
-
|
36
29
|
exports.Body1 = /*#__PURE__*/wrapper_1.createWrapper({
|
37
30
|
useStyles,
|
38
31
|
className: exports.body1ClassNames.root,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"mappings":";;;;;;AACA;AACA;AAGA;AAEaA,uBAAe,GAA8B;EACxDC,IAAI,EAAE;CACP;AAED;;;AAGA,MAAMC,SAAS,gBAAGC,gBAAU;EAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAE1B;AAEF;;;AAGaH,aAAK,gBAAwCI,uBAAa,CAAC;EACtEF,SAAS;EACTG,SAAS,EAAEL,uBAAe,CAACC,IAAI;EAC/BK,WAAW,EAAE;CACd,CAAC","names":["exports","root","useStyles","react_1","wrapper_1","className","displayName"],"sourceRoot":"../src/","sources":["packages/react-components/react-text/src/components/Body1/Body1.tsx"],"sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\nexport const body1ClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Body1',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.body1,\n});\n\n/**\n * Text wrapper component for the Body1 typography variant\n */\nexport const Body1: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: body1ClassNames.root,\n displayName: 'Body1',\n});\n"]}
|