@fluentui/react-text 0.0.0-nightly-20230223-2115.1 → 0.0.0-nightly-20230227-0424.1
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 +9 -9
- package/CHANGELOG.md +7 -7
- package/lib/Body1.js.map +1 -1
- package/lib/Body1Strong.js.map +1 -1
- package/lib/Body1Stronger.js.map +1 -1
- package/lib/Body2.js.map +1 -1
- package/lib/Caption1.js.map +1 -1
- package/lib/Caption1Strong.js.map +1 -1
- package/lib/Caption1Stronger.js.map +1 -1
- package/lib/Caption2.js.map +1 -1
- package/lib/Caption2Strong.js.map +1 -1
- package/lib/Display.js.map +1 -1
- package/lib/LargeTitle.js.map +1 -1
- package/lib/Subtitle1.js.map +1 -1
- package/lib/Subtitle2.js.map +1 -1
- package/lib/Subtitle2Stronger.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/Text/Text.js.map +1 -1
- 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 +3 -2
- package/lib/components/Text/renderText.js.map +1 -1
- package/lib/components/Text/useText.js +12 -12
- package/lib/components/Text/useText.js.map +1 -1
- package/lib/components/Text/useTextStyles.js.map +1 -1
- package/lib/components/presets/Body1/Body1.js.map +1 -1
- package/lib/components/presets/Body1/index.js.map +1 -1
- package/lib/components/presets/Body1Strong/Body1Strong.js.map +1 -1
- package/lib/components/presets/Body1Strong/index.js.map +1 -1
- package/lib/components/presets/Body1Stronger/Body1Stronger.js.map +1 -1
- package/lib/components/presets/Body1Stronger/index.js.map +1 -1
- package/lib/components/presets/Body2/Body2.js.map +1 -1
- package/lib/components/presets/Body2/index.js.map +1 -1
- package/lib/components/presets/Caption1/Caption1.js.map +1 -1
- package/lib/components/presets/Caption1/index.js.map +1 -1
- package/lib/components/presets/Caption1Strong/Caption1Strong.js.map +1 -1
- package/lib/components/presets/Caption1Strong/index.js.map +1 -1
- package/lib/components/presets/Caption1Stronger/Caption1Stronger.js.map +1 -1
- package/lib/components/presets/Caption1Stronger/index.js.map +1 -1
- package/lib/components/presets/Caption2/Caption2.js.map +1 -1
- package/lib/components/presets/Caption2/index.js.map +1 -1
- package/lib/components/presets/Caption2Strong/Caption2Strong.js.map +1 -1
- package/lib/components/presets/Caption2Strong/index.js.map +1 -1
- package/lib/components/presets/Display/Display.js.map +1 -1
- package/lib/components/presets/Display/index.js.map +1 -1
- package/lib/components/presets/LargeTitle/LargeTitle.js.map +1 -1
- package/lib/components/presets/LargeTitle/index.js.map +1 -1
- package/lib/components/presets/Subtitle1/Subtitle1.js.map +1 -1
- package/lib/components/presets/Subtitle1/index.js.map +1 -1
- package/lib/components/presets/Subtitle2/Subtitle2.js.map +1 -1
- package/lib/components/presets/Subtitle2/index.js.map +1 -1
- package/lib/components/presets/Subtitle2Stronger/Subtitle2Stronger.js.map +1 -1
- package/lib/components/presets/Subtitle2Stronger/index.js.map +1 -1
- package/lib/components/presets/Title1/Title1.js.map +1 -1
- package/lib/components/presets/Title1/index.js.map +1 -1
- package/lib/components/presets/Title2/Title2.js.map +1 -1
- package/lib/components/presets/Title2/index.js.map +1 -1
- package/lib/components/presets/Title3/Title3.js.map +1 -1
- package/lib/components/presets/Title3/index.js.map +1 -1
- package/lib/components/presets/createPreset.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/Body1.js +4 -5
- package/lib-commonjs/Body1.js.map +1 -1
- package/lib-commonjs/Body1Strong.js +4 -5
- package/lib-commonjs/Body1Strong.js.map +1 -1
- package/lib-commonjs/Body1Stronger.js +4 -5
- package/lib-commonjs/Body1Stronger.js.map +1 -1
- package/lib-commonjs/Body2.js +4 -5
- package/lib-commonjs/Body2.js.map +1 -1
- package/lib-commonjs/Caption1.js +4 -5
- package/lib-commonjs/Caption1.js.map +1 -1
- package/lib-commonjs/Caption1Strong.js +4 -5
- package/lib-commonjs/Caption1Strong.js.map +1 -1
- package/lib-commonjs/Caption1Stronger.js +4 -5
- package/lib-commonjs/Caption1Stronger.js.map +1 -1
- package/lib-commonjs/Caption2.js +4 -5
- package/lib-commonjs/Caption2.js.map +1 -1
- package/lib-commonjs/Caption2Strong.js +4 -5
- package/lib-commonjs/Caption2Strong.js.map +1 -1
- package/lib-commonjs/Display.js +4 -5
- package/lib-commonjs/Display.js.map +1 -1
- package/lib-commonjs/LargeTitle.js +4 -5
- package/lib-commonjs/LargeTitle.js.map +1 -1
- package/lib-commonjs/Subtitle1.js +4 -5
- package/lib-commonjs/Subtitle1.js.map +1 -1
- package/lib-commonjs/Subtitle2.js +4 -5
- package/lib-commonjs/Subtitle2.js.map +1 -1
- package/lib-commonjs/Subtitle2Stronger.js +4 -5
- package/lib-commonjs/Subtitle2Stronger.js.map +1 -1
- package/lib-commonjs/Text.js +4 -5
- package/lib-commonjs/Text.js.map +1 -1
- package/lib-commonjs/Title1.js +4 -5
- package/lib-commonjs/Title1.js.map +1 -1
- package/lib-commonjs/Title2.js +4 -5
- package/lib-commonjs/Title2.js.map +1 -1
- package/lib-commonjs/Title3.js +4 -5
- package/lib-commonjs/Title3.js.map +1 -1
- package/lib-commonjs/components/Text/Text.js +16 -16
- package/lib-commonjs/components/Text/Text.js.map +1 -1
- package/lib-commonjs/components/Text/Text.types.js +2 -3
- package/lib-commonjs/components/Text/Text.types.js.map +1 -1
- package/lib-commonjs/components/Text/index.js +8 -9
- package/lib-commonjs/components/Text/index.js.map +1 -1
- package/lib-commonjs/components/Text/renderText.js +18 -15
- package/lib-commonjs/components/Text/renderText.js.map +1 -1
- package/lib-commonjs/components/Text/useText.js +51 -34
- package/lib-commonjs/components/Text/useText.js.map +1 -1
- package/lib-commonjs/components/Text/useTextStyles.js +114 -163
- package/lib-commonjs/components/Text/useTextStyles.js.map +1 -1
- package/lib-commonjs/components/presets/Body1/Body1.js +25 -34
- package/lib-commonjs/components/presets/Body1/Body1.js.map +1 -1
- package/lib-commonjs/components/presets/Body1/index.js +4 -5
- package/lib-commonjs/components/presets/Body1/index.js.map +1 -1
- package/lib-commonjs/components/presets/Body1Strong/Body1Strong.js +25 -34
- package/lib-commonjs/components/presets/Body1Strong/Body1Strong.js.map +1 -1
- package/lib-commonjs/components/presets/Body1Strong/index.js +4 -5
- package/lib-commonjs/components/presets/Body1Strong/index.js.map +1 -1
- package/lib-commonjs/components/presets/Body1Stronger/Body1Stronger.js +25 -34
- package/lib-commonjs/components/presets/Body1Stronger/Body1Stronger.js.map +1 -1
- package/lib-commonjs/components/presets/Body1Stronger/index.js +4 -5
- package/lib-commonjs/components/presets/Body1Stronger/index.js.map +1 -1
- package/lib-commonjs/components/presets/Body2/Body2.js +25 -34
- package/lib-commonjs/components/presets/Body2/Body2.js.map +1 -1
- package/lib-commonjs/components/presets/Body2/index.js +4 -5
- package/lib-commonjs/components/presets/Body2/index.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1/Caption1.js +25 -34
- package/lib-commonjs/components/presets/Caption1/Caption1.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1/index.js +4 -5
- package/lib-commonjs/components/presets/Caption1/index.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1Strong/Caption1Strong.js +25 -34
- package/lib-commonjs/components/presets/Caption1Strong/Caption1Strong.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1Strong/index.js +4 -5
- package/lib-commonjs/components/presets/Caption1Strong/index.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1Stronger/Caption1Stronger.js +25 -34
- package/lib-commonjs/components/presets/Caption1Stronger/Caption1Stronger.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1Stronger/index.js +4 -5
- package/lib-commonjs/components/presets/Caption1Stronger/index.js.map +1 -1
- package/lib-commonjs/components/presets/Caption2/Caption2.js +25 -34
- package/lib-commonjs/components/presets/Caption2/Caption2.js.map +1 -1
- package/lib-commonjs/components/presets/Caption2/index.js +4 -5
- package/lib-commonjs/components/presets/Caption2/index.js.map +1 -1
- package/lib-commonjs/components/presets/Caption2Strong/Caption2Strong.js +25 -34
- package/lib-commonjs/components/presets/Caption2Strong/Caption2Strong.js.map +1 -1
- package/lib-commonjs/components/presets/Caption2Strong/index.js +4 -5
- package/lib-commonjs/components/presets/Caption2Strong/index.js.map +1 -1
- package/lib-commonjs/components/presets/Display/Display.js +25 -34
- package/lib-commonjs/components/presets/Display/Display.js.map +1 -1
- package/lib-commonjs/components/presets/Display/index.js +4 -5
- package/lib-commonjs/components/presets/Display/index.js.map +1 -1
- package/lib-commonjs/components/presets/LargeTitle/LargeTitle.js +25 -34
- package/lib-commonjs/components/presets/LargeTitle/LargeTitle.js.map +1 -1
- package/lib-commonjs/components/presets/LargeTitle/index.js +4 -5
- package/lib-commonjs/components/presets/LargeTitle/index.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle1/Subtitle1.js +25 -34
- package/lib-commonjs/components/presets/Subtitle1/Subtitle1.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle1/index.js +4 -5
- package/lib-commonjs/components/presets/Subtitle1/index.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle2/Subtitle2.js +25 -34
- package/lib-commonjs/components/presets/Subtitle2/Subtitle2.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle2/index.js +4 -5
- package/lib-commonjs/components/presets/Subtitle2/index.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle2Stronger/Subtitle2Stronger.js +25 -34
- package/lib-commonjs/components/presets/Subtitle2Stronger/Subtitle2Stronger.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle2Stronger/index.js +4 -5
- package/lib-commonjs/components/presets/Subtitle2Stronger/index.js.map +1 -1
- package/lib-commonjs/components/presets/Title1/Title1.js +25 -34
- package/lib-commonjs/components/presets/Title1/Title1.js.map +1 -1
- package/lib-commonjs/components/presets/Title1/index.js +4 -5
- package/lib-commonjs/components/presets/Title1/index.js.map +1 -1
- package/lib-commonjs/components/presets/Title2/Title2.js +25 -34
- package/lib-commonjs/components/presets/Title2/Title2.js.map +1 -1
- package/lib-commonjs/components/presets/Title2/index.js +4 -5
- package/lib-commonjs/components/presets/Title2/index.js.map +1 -1
- package/lib-commonjs/components/presets/Title3/Title3.js +25 -34
- package/lib-commonjs/components/presets/Title3/Title3.js.map +1 -1
- package/lib-commonjs/components/presets/Title3/index.js +4 -5
- package/lib-commonjs/components/presets/Title3/index.js.map +1 -1
- package/lib-commonjs/components/presets/createPreset.js +22 -21
- package/lib-commonjs/components/presets/createPreset.js.map +1 -1
- package/lib-commonjs/index.js +256 -69
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +6 -6
- package/.swcrc +0 -33
@@ -1,43 +1,34 @@
|
|
1
1
|
"use strict";
|
2
|
+
|
2
3
|
Object.defineProperty(exports, "__esModule", {
|
3
|
-
|
4
|
-
});
|
5
|
-
function _export(target, all) {
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
7
|
-
enumerable: true,
|
8
|
-
get: all[name]
|
9
|
-
});
|
10
|
-
}
|
11
|
-
_export(exports, {
|
12
|
-
subtitle2StrongerClassNames: ()=>subtitle2StrongerClassNames,
|
13
|
-
Subtitle2Stronger: ()=>Subtitle2Stronger
|
4
|
+
value: true
|
14
5
|
});
|
15
|
-
|
16
|
-
const
|
17
|
-
const
|
18
|
-
|
6
|
+
exports.Subtitle2Stronger = exports.subtitle2StrongerClassNames = void 0;
|
7
|
+
const react_1 = /*#__PURE__*/require("@griffel/react");
|
8
|
+
const createPreset_1 = /*#__PURE__*/require("../createPreset");
|
9
|
+
const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
|
10
|
+
exports.subtitle2StrongerClassNames = {
|
11
|
+
root: 'fui-Subtitle2Stronger'
|
19
12
|
};
|
20
13
|
/**
|
21
14
|
* Styles for the root slot
|
22
|
-
*/
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
15
|
+
*/
|
16
|
+
const useStyles = /*#__PURE__*/react_1.__styles({
|
17
|
+
root: {
|
18
|
+
Bahqtrf: "fk6fouc",
|
19
|
+
Be2twd7: "fod5ikn",
|
20
|
+
Bhrd7zp: "flh3ekv",
|
21
|
+
Bg96gwp: "faaz57k"
|
22
|
+
}
|
29
23
|
}, {
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
24
|
+
d: [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".flh3ekv{font-weight:var(--fontWeightBold);}", ".faaz57k{line-height:var(--lineHeightBase400);}"]
|
25
|
+
});
|
26
|
+
/**
|
27
|
+
* Text preset component for the Subtitle2Stronger typography variant
|
28
|
+
*/
|
29
|
+
exports.Subtitle2Stronger = /*#__PURE__*/createPreset_1.createPreset({
|
30
|
+
useStyles,
|
31
|
+
className: exports.subtitle2StrongerClassNames.root,
|
32
|
+
displayName: 'Subtitle2Stronger'
|
36
33
|
});
|
37
|
-
const Subtitle2Stronger = /*#__PURE__*/ (0, _createPreset.createPreset)({
|
38
|
-
useStyles,
|
39
|
-
className: subtitle2StrongerClassNames.root,
|
40
|
-
displayName: 'Subtitle2Stronger'
|
41
|
-
}); //# sourceMappingURL=Subtitle2Stronger.js.map
|
42
|
-
|
43
34
|
//# sourceMappingURL=Subtitle2Stronger.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"mappings":";;;;;;AACA;AACA;AAGA;AAEaA,mCAA2B,GAA8B;EACpEC,IAAI,EAAE;CACP;AAED;;;AAGA,MAAMC,SAAS,gBAAGC,gBAAU;EAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAE1B;AAEF;;;AAGaH,yBAAiB,gBAAuCI,2BAAY,CAAC;EAChFF,SAAS;EACTG,SAAS,EAAEL,mCAA2B,CAACC,IAAI;EAC3CK,WAAW,EAAE;CACd,CAAC","names":["exports","root","useStyles","react_1","createPreset_1","className","displayName"],"sourceRoot":"","sources":["../../../../../../../../../../packages/react-components/react-text/src/components/presets/Subtitle2Stronger/Subtitle2Stronger.tsx"],"sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createPreset } from '../createPreset';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport type { TextSlots, TextPresetProps } from '../../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\nexport const subtitle2StrongerClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Subtitle2Stronger',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.subtitle2Stronger,\n});\n\n/**\n * Text preset component for the Subtitle2Stronger typography variant\n */\nexport const Subtitle2Stronger: FunctionComponent<TextPresetProps> = createPreset({\n useStyles,\n className: subtitle2StrongerClassNames.root,\n displayName: 'Subtitle2Stronger',\n});\n"]}
|
@@ -1,9 +1,8 @@
|
|
1
1
|
"use strict";
|
2
|
+
|
2
3
|
Object.defineProperty(exports, "__esModule", {
|
3
|
-
|
4
|
+
value: true
|
4
5
|
});
|
5
|
-
const
|
6
|
-
|
7
|
-
//# sourceMappingURL=index.js.map
|
8
|
-
|
6
|
+
const tslib_1 = /*#__PURE__*/require("tslib");
|
7
|
+
tslib_1.__exportStar(require("./Subtitle2Stronger"), exports);
|
9
8
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"mappings":";;;;;;AAAAA","names":["tslib_1"],"sourceRoot":"","sources":["../../../../../../../../../../packages/react-components/react-text/src/components/presets/Subtitle2Stronger/index.ts"],"sourcesContent":["export * from './Subtitle2Stronger';\n"]}
|
@@ -1,43 +1,34 @@
|
|
1
1
|
"use strict";
|
2
|
+
|
2
3
|
Object.defineProperty(exports, "__esModule", {
|
3
|
-
|
4
|
-
});
|
5
|
-
function _export(target, all) {
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
7
|
-
enumerable: true,
|
8
|
-
get: all[name]
|
9
|
-
});
|
10
|
-
}
|
11
|
-
_export(exports, {
|
12
|
-
title1ClassNames: ()=>title1ClassNames,
|
13
|
-
Title1: ()=>Title1
|
4
|
+
value: true
|
14
5
|
});
|
15
|
-
|
16
|
-
const
|
17
|
-
const
|
18
|
-
|
6
|
+
exports.Title1 = exports.title1ClassNames = void 0;
|
7
|
+
const react_1 = /*#__PURE__*/require("@griffel/react");
|
8
|
+
const createPreset_1 = /*#__PURE__*/require("../createPreset");
|
9
|
+
const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
|
10
|
+
exports.title1ClassNames = {
|
11
|
+
root: 'fui-Title1'
|
19
12
|
};
|
20
13
|
/**
|
21
14
|
* Styles for the root slot
|
22
|
-
*/
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
15
|
+
*/
|
16
|
+
const useStyles = /*#__PURE__*/react_1.__styles({
|
17
|
+
root: {
|
18
|
+
Bahqtrf: "fk6fouc",
|
19
|
+
Be2twd7: "fccw675",
|
20
|
+
Bhrd7zp: "fl43uef",
|
21
|
+
Bg96gwp: "f1ebx5kk"
|
22
|
+
}
|
29
23
|
}, {
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
24
|
+
d: [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fccw675{font-size:var(--fontSizeHero800);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f1ebx5kk{line-height:var(--lineHeightHero800);}"]
|
25
|
+
});
|
26
|
+
/**
|
27
|
+
* Text preset component for the Title 1 typography variant
|
28
|
+
*/
|
29
|
+
exports.Title1 = /*#__PURE__*/createPreset_1.createPreset({
|
30
|
+
useStyles,
|
31
|
+
className: exports.title1ClassNames.root,
|
32
|
+
displayName: 'Title1'
|
36
33
|
});
|
37
|
-
const Title1 = /*#__PURE__*/ (0, _createPreset.createPreset)({
|
38
|
-
useStyles,
|
39
|
-
className: title1ClassNames.root,
|
40
|
-
displayName: 'Title1'
|
41
|
-
}); //# sourceMappingURL=Title1.js.map
|
42
|
-
|
43
34
|
//# sourceMappingURL=Title1.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"mappings":";;;;;;AACA;AACA;AAGA;AAEaA,wBAAgB,GAA8B;EACzDC,IAAI,EAAE;CACP;AAED;;;AAGA,MAAMC,SAAS,gBAAGC,gBAAU;EAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAE1B;AAEF;;;AAGaH,cAAM,gBAAuCI,2BAAY,CAAC;EACrEF,SAAS;EACTG,SAAS,EAAEL,wBAAgB,CAACC,IAAI;EAChCK,WAAW,EAAE;CACd,CAAC","names":["exports","root","useStyles","react_1","createPreset_1","className","displayName"],"sourceRoot":"","sources":["../../../../../../../../../../packages/react-components/react-text/src/components/presets/Title1/Title1.tsx"],"sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createPreset } from '../createPreset';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport type { TextSlots, TextPresetProps } 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 preset component for the Title 1 typography variant\n */\nexport const Title1: FunctionComponent<TextPresetProps> = createPreset({\n useStyles,\n className: title1ClassNames.root,\n displayName: 'Title1',\n});\n"]}
|
@@ -1,9 +1,8 @@
|
|
1
1
|
"use strict";
|
2
|
+
|
2
3
|
Object.defineProperty(exports, "__esModule", {
|
3
|
-
|
4
|
+
value: true
|
4
5
|
});
|
5
|
-
const
|
6
|
-
|
7
|
-
//# sourceMappingURL=index.js.map
|
8
|
-
|
6
|
+
const tslib_1 = /*#__PURE__*/require("tslib");
|
7
|
+
tslib_1.__exportStar(require("./Title1"), exports);
|
9
8
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"mappings":";;;;;;AAAAA","names":["tslib_1"],"sourceRoot":"","sources":["../../../../../../../../../../packages/react-components/react-text/src/components/presets/Title1/index.ts"],"sourcesContent":["export * from './Title1';\n"]}
|
@@ -1,43 +1,34 @@
|
|
1
1
|
"use strict";
|
2
|
+
|
2
3
|
Object.defineProperty(exports, "__esModule", {
|
3
|
-
|
4
|
-
});
|
5
|
-
function _export(target, all) {
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
7
|
-
enumerable: true,
|
8
|
-
get: all[name]
|
9
|
-
});
|
10
|
-
}
|
11
|
-
_export(exports, {
|
12
|
-
title2ClassNames: ()=>title2ClassNames,
|
13
|
-
Title2: ()=>Title2
|
4
|
+
value: true
|
14
5
|
});
|
15
|
-
|
16
|
-
const
|
17
|
-
const
|
18
|
-
|
6
|
+
exports.Title2 = exports.title2ClassNames = void 0;
|
7
|
+
const react_1 = /*#__PURE__*/require("@griffel/react");
|
8
|
+
const createPreset_1 = /*#__PURE__*/require("../createPreset");
|
9
|
+
const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
|
10
|
+
exports.title2ClassNames = {
|
11
|
+
root: 'fui-Title2'
|
19
12
|
};
|
20
13
|
/**
|
21
14
|
* Styles for the root slot
|
22
|
-
*/
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
15
|
+
*/
|
16
|
+
const useStyles = /*#__PURE__*/react_1.__styles({
|
17
|
+
root: {
|
18
|
+
Bahqtrf: "fk6fouc",
|
19
|
+
Be2twd7: "fojgt09",
|
20
|
+
Bhrd7zp: "fl43uef",
|
21
|
+
Bg96gwp: "fcen8rp"
|
22
|
+
}
|
29
23
|
}, {
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
24
|
+
d: [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fojgt09{font-size:var(--fontSizeHero700);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".fcen8rp{line-height:var(--lineHeightHero700);}"]
|
25
|
+
});
|
26
|
+
/**
|
27
|
+
* Text preset component for the Title 2 typography variant
|
28
|
+
*/
|
29
|
+
exports.Title2 = /*#__PURE__*/createPreset_1.createPreset({
|
30
|
+
useStyles,
|
31
|
+
className: exports.title2ClassNames.root,
|
32
|
+
displayName: 'Title2'
|
36
33
|
});
|
37
|
-
const Title2 = /*#__PURE__*/ (0, _createPreset.createPreset)({
|
38
|
-
useStyles,
|
39
|
-
className: title2ClassNames.root,
|
40
|
-
displayName: 'Title2'
|
41
|
-
}); //# sourceMappingURL=Title2.js.map
|
42
|
-
|
43
34
|
//# sourceMappingURL=Title2.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"mappings":";;;;;;AACA;AACA;AAGA;AAEaA,wBAAgB,GAA8B;EACzDC,IAAI,EAAE;CACP;AAED;;;AAGA,MAAMC,SAAS,gBAAGC,gBAAU;EAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAE1B;AAEF;;;AAGaH,cAAM,gBAAuCI,2BAAY,CAAC;EACrEF,SAAS;EACTG,SAAS,EAAEL,wBAAgB,CAACC,IAAI;EAChCK,WAAW,EAAE;CACd,CAAC","names":["exports","root","useStyles","react_1","createPreset_1","className","displayName"],"sourceRoot":"","sources":["../../../../../../../../../../packages/react-components/react-text/src/components/presets/Title2/Title2.tsx"],"sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createPreset } from '../createPreset';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport type { TextSlots, TextPresetProps } 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 preset component for the Title 2 typography variant\n */\nexport const Title2: FunctionComponent<TextPresetProps> = createPreset({\n useStyles,\n className: title2ClassNames.root,\n displayName: 'Title2',\n});\n"]}
|
@@ -1,9 +1,8 @@
|
|
1
1
|
"use strict";
|
2
|
+
|
2
3
|
Object.defineProperty(exports, "__esModule", {
|
3
|
-
|
4
|
+
value: true
|
4
5
|
});
|
5
|
-
const
|
6
|
-
|
7
|
-
//# sourceMappingURL=index.js.map
|
8
|
-
|
6
|
+
const tslib_1 = /*#__PURE__*/require("tslib");
|
7
|
+
tslib_1.__exportStar(require("./Title2"), exports);
|
9
8
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"mappings":";;;;;;AAAAA","names":["tslib_1"],"sourceRoot":"","sources":["../../../../../../../../../../packages/react-components/react-text/src/components/presets/Title2/index.ts"],"sourcesContent":["export * from './Title2';\n"]}
|
@@ -1,43 +1,34 @@
|
|
1
1
|
"use strict";
|
2
|
+
|
2
3
|
Object.defineProperty(exports, "__esModule", {
|
3
|
-
|
4
|
-
});
|
5
|
-
function _export(target, all) {
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
7
|
-
enumerable: true,
|
8
|
-
get: all[name]
|
9
|
-
});
|
10
|
-
}
|
11
|
-
_export(exports, {
|
12
|
-
title3ClassNames: ()=>title3ClassNames,
|
13
|
-
Title3: ()=>Title3
|
4
|
+
value: true
|
14
5
|
});
|
15
|
-
|
16
|
-
const
|
17
|
-
const
|
18
|
-
|
6
|
+
exports.Title3 = exports.title3ClassNames = void 0;
|
7
|
+
const react_1 = /*#__PURE__*/require("@griffel/react");
|
8
|
+
const createPreset_1 = /*#__PURE__*/require("../createPreset");
|
9
|
+
const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
|
10
|
+
exports.title3ClassNames = {
|
11
|
+
root: 'fui-Title3'
|
19
12
|
};
|
20
13
|
/**
|
21
14
|
* Styles for the root slot
|
22
|
-
*/
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
15
|
+
*/
|
16
|
+
const useStyles = /*#__PURE__*/react_1.__styles({
|
17
|
+
root: {
|
18
|
+
Bahqtrf: "fk6fouc",
|
19
|
+
Be2twd7: "f1x0m3f5",
|
20
|
+
Bhrd7zp: "fl43uef",
|
21
|
+
Bg96gwp: "fb86gi6"
|
22
|
+
}
|
29
23
|
}, {
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
24
|
+
d: [".fk6fouc{font-family:var(--fontFamilyBase);}", ".f1x0m3f5{font-size:var(--fontSizeBase600);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".fb86gi6{line-height:var(--lineHeightBase600);}"]
|
25
|
+
});
|
26
|
+
/**
|
27
|
+
* Text preset component for the Title 3 typography variant
|
28
|
+
*/
|
29
|
+
exports.Title3 = /*#__PURE__*/createPreset_1.createPreset({
|
30
|
+
useStyles,
|
31
|
+
className: exports.title3ClassNames.root,
|
32
|
+
displayName: 'Title3'
|
36
33
|
});
|
37
|
-
const Title3 = /*#__PURE__*/ (0, _createPreset.createPreset)({
|
38
|
-
useStyles,
|
39
|
-
className: title3ClassNames.root,
|
40
|
-
displayName: 'Title3'
|
41
|
-
}); //# sourceMappingURL=Title3.js.map
|
42
|
-
|
43
34
|
//# sourceMappingURL=Title3.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"mappings":";;;;;;AACA;AACA;AAGA;AAEaA,wBAAgB,GAA8B;EACzDC,IAAI,EAAE;CACP;AAED;;;AAGA,MAAMC,SAAS,gBAAGC,gBAAU;EAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAE1B;AAEF;;;AAGaH,cAAM,gBAAuCI,2BAAY,CAAC;EACrEF,SAAS;EACTG,SAAS,EAAEL,wBAAgB,CAACC,IAAI;EAChCK,WAAW,EAAE;CACd,CAAC","names":["exports","root","useStyles","react_1","createPreset_1","className","displayName"],"sourceRoot":"","sources":["../../../../../../../../../../packages/react-components/react-text/src/components/presets/Title3/Title3.tsx"],"sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createPreset } from '../createPreset';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport type { TextSlots, TextPresetProps } 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 preset component for the Title 3 typography variant\n */\nexport const Title3: FunctionComponent<TextPresetProps> = createPreset({\n useStyles,\n className: title3ClassNames.root,\n displayName: 'Title3',\n});\n"]}
|
@@ -1,9 +1,8 @@
|
|
1
1
|
"use strict";
|
2
|
+
|
2
3
|
Object.defineProperty(exports, "__esModule", {
|
3
|
-
|
4
|
+
value: true
|
4
5
|
});
|
5
|
-
const
|
6
|
-
|
7
|
-
//# sourceMappingURL=index.js.map
|
8
|
-
|
6
|
+
const tslib_1 = /*#__PURE__*/require("tslib");
|
7
|
+
tslib_1.__exportStar(require("./Title3"), exports);
|
9
8
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"mappings":";;;;;;AAAAA","names":["tslib_1"],"sourceRoot":"","sources":["../../../../../../../../../../packages/react-components/react-text/src/components/presets/Title3/index.ts"],"sourcesContent":["export * from './Title3';\n"]}
|
@@ -1,26 +1,27 @@
|
|
1
1
|
"use strict";
|
2
|
+
|
2
3
|
Object.defineProperty(exports, "__esModule", {
|
3
|
-
|
4
|
-
});
|
5
|
-
Object.defineProperty(exports, "createPreset", {
|
6
|
-
enumerable: true,
|
7
|
-
get: ()=>createPreset
|
4
|
+
value: true
|
8
5
|
});
|
9
|
-
|
10
|
-
const
|
11
|
-
const
|
12
|
-
const
|
6
|
+
exports.createPreset = void 0;
|
7
|
+
const React = /*#__PURE__*/require("react");
|
8
|
+
const react_1 = /*#__PURE__*/require("@griffel/react");
|
9
|
+
const Text_1 = /*#__PURE__*/require("../Text");
|
13
10
|
function createPreset(options) {
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
11
|
+
const {
|
12
|
+
useStyles,
|
13
|
+
className,
|
14
|
+
displayName
|
15
|
+
} = options;
|
16
|
+
const Wrapper = React.forwardRef((props, ref) => {
|
17
|
+
const styles = useStyles();
|
18
|
+
const state = Text_1.useText_unstable(props, ref);
|
19
|
+
Text_1.useTextStyles_unstable(state);
|
20
|
+
state.root.className = react_1.mergeClasses(className, state.root.className, styles.root, props.className);
|
21
|
+
return Text_1.renderText_unstable(state);
|
22
|
+
});
|
23
|
+
Wrapper.displayName = displayName;
|
24
|
+
return Wrapper;
|
25
|
+
}
|
26
|
+
exports.createPreset = createPreset;
|
26
27
|
//# sourceMappingURL=createPreset.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"mappings":";;;;;;AAAA;AACA;AACA;AAIA,SAAgBA,YAAY,CAACC,OAI5B;EACC,MAAM;IAAEC,SAAS;IAAEC,SAAS;IAAEC;EAAW,CAAE,GAAGH,OAAO;EACrD,MAAMI,OAAO,GAAyCC,KAAK,CAACC,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAI;IACpF,MAAMC,MAAM,GAAGR,SAAS,EAAE;IAC1B,MAAMS,KAAK,GAAGC,uBAAgB,CAACJ,KAAkB,EAAEC,GAAG,CAAC;IAEvDG,6BAAsB,CAACD,KAAK,CAAC;IAE7BA,KAAK,CAACE,IAAI,CAACV,SAAS,GAAGW,oBAAY,CAACX,SAAS,EAAEQ,KAAK,CAACE,IAAI,CAACV,SAAS,EAAEO,MAAM,CAACG,IAAI,EAAEL,KAAK,CAACL,SAAS,CAAC;IAElG,OAAOS,0BAAmB,CAACD,KAAK,CAAC;EACnC,CAAC,CAAC;EACFN,OAAO,CAACD,WAAW,GAAGA,WAAW;EAEjC,OAAOC,OAAO;AAChB;AAnBAU","names":["createPreset","options","useStyles","className","displayName","Wrapper","React","forwardRef","props","ref","styles","state","Text_1","root","react_1","exports"],"sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-text/src/components/presets/createPreset.ts"],"sourcesContent":["import * as React from 'react';\nimport { mergeClasses } from '@griffel/react';\nimport { renderText_unstable, useText_unstable, useTextStyles_unstable } from '../Text';\nimport type { TextProps, TextPresetProps } from '../Text';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\nexport function createPreset(options: {\n className: string;\n displayName: string;\n useStyles: () => Record<'root', string>;\n}): React.FunctionComponent<TextPresetProps> {\n const { useStyles, className, displayName } = options;\n const Wrapper: ForwardRefComponent<TextPresetProps> = 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"]}
|