@fluentui/react-text 0.0.0-nightly-20230223-2115.1 → 0.0.0-nightly-20230228-0425.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,13 +1,12 @@
|
|
1
1
|
"use strict";
|
2
|
+
|
2
3
|
Object.defineProperty(exports, "__esModule", {
|
3
|
-
|
4
|
+
value: true
|
4
5
|
});
|
5
|
-
const
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
//# sourceMappingURL=index.js.map
|
12
|
-
|
6
|
+
const tslib_1 = /*#__PURE__*/require("tslib");
|
7
|
+
tslib_1.__exportStar(require("./Text"), exports);
|
8
|
+
tslib_1.__exportStar(require("./Text.types"), exports);
|
9
|
+
tslib_1.__exportStar(require("./renderText"), exports);
|
10
|
+
tslib_1.__exportStar(require("./useText"), exports);
|
11
|
+
tslib_1.__exportStar(require("./useTextStyles"), exports);
|
13
12
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"mappings":";;;;;;AAAAA;AACAA;AACAA;AACAA;AACAA","names":["tslib_1"],"sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-text/src/components/Text/index.ts"],"sourcesContent":["export * from './Text';\nexport * from './Text.types';\nexport * from './renderText';\nexport * from './useText';\nexport * from './useTextStyles';\n"]}
|
@@ -1,19 +1,22 @@
|
|
1
1
|
"use strict";
|
2
|
+
|
2
3
|
Object.defineProperty(exports, "__esModule", {
|
3
|
-
|
4
|
-
});
|
5
|
-
Object.defineProperty(exports, "renderText_unstable", {
|
6
|
-
enumerable: true,
|
7
|
-
get: ()=>renderText_unstable
|
4
|
+
value: true
|
8
5
|
});
|
9
|
-
|
10
|
-
const
|
11
|
-
const
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
6
|
+
exports.renderText_unstable = void 0;
|
7
|
+
const React = /*#__PURE__*/require("react");
|
8
|
+
const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
|
9
|
+
/**
|
10
|
+
* Render the final JSX of Text
|
11
|
+
*/
|
12
|
+
const renderText_unstable = state => {
|
13
|
+
const {
|
14
|
+
slots,
|
15
|
+
slotProps
|
16
|
+
} = react_utilities_1.getSlots(state);
|
17
|
+
return React.createElement(slots.root, {
|
18
|
+
...slotProps.root
|
19
|
+
});
|
20
|
+
};
|
21
|
+
exports.renderText_unstable = renderText_unstable;
|
19
22
|
//# sourceMappingURL=renderText.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"mappings":";;;;;;AAAA;AACA;AAGA;;;AAGO,MAAMA,mBAAmB,GAAIC,KAAgB,IAAI;EACtD,MAAM;IAAEC,KAAK;IAAEC;EAAS,CAAE,GAAGC,0BAAQ,CAAYH,KAAK,CAAC;EAEvD,OAAOI,oBAACH,KAAK,CAACI,IAAI;IAAA,GAAKH,SAAS,CAACG;EAAI,EAAI;AAC3C,CAAC;AAJYC,2BAAmB","names":["renderText_unstable","state","slots","slotProps","react_utilities_1","React","root","exports"],"sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-text/src/components/Text/renderText.tsx"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { TextSlots, TextState } from './Text.types';\n\n/**\n * Render the final JSX of Text\n */\nexport const renderText_unstable = (state: TextState) => {\n const { slots, slotProps } = getSlots<TextSlots>(state);\n\n return <slots.root {...slotProps.root} />;\n};\n"]}
|
@@ -1,38 +1,55 @@
|
|
1
1
|
"use strict";
|
2
|
+
|
2
3
|
Object.defineProperty(exports, "__esModule", {
|
3
|
-
|
4
|
-
});
|
5
|
-
Object.defineProperty(exports, "useText_unstable", {
|
6
|
-
enumerable: true,
|
7
|
-
get: ()=>useText_unstable
|
4
|
+
value: true
|
8
5
|
});
|
9
|
-
|
10
|
-
const
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
6
|
+
exports.useText_unstable = void 0;
|
7
|
+
const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
|
8
|
+
/**
|
9
|
+
* Create the state required to render Text.
|
10
|
+
*
|
11
|
+
* The returned state can be modified with hooks such as useTextStyles_unstable,
|
12
|
+
* before being passed to renderText_unstable.
|
13
|
+
*
|
14
|
+
* @param props - props from this instance of Text
|
15
|
+
* @param ref - reference to root HTMLElement of Text
|
16
|
+
*/
|
17
|
+
const useText_unstable = (props, ref) => {
|
18
|
+
var _a;
|
19
|
+
const {
|
20
|
+
wrap,
|
21
|
+
truncate,
|
22
|
+
block,
|
23
|
+
italic,
|
24
|
+
underline,
|
25
|
+
strikethrough,
|
26
|
+
size,
|
27
|
+
font,
|
28
|
+
weight,
|
29
|
+
align
|
30
|
+
} = props;
|
31
|
+
const as = (_a = props.as) !== null && _a !== void 0 ? _a : 'span';
|
32
|
+
const state = {
|
33
|
+
align: align !== null && align !== void 0 ? align : 'start',
|
34
|
+
block: block !== null && block !== void 0 ? block : false,
|
35
|
+
font: font !== null && font !== void 0 ? font : 'base',
|
36
|
+
italic: italic !== null && italic !== void 0 ? italic : false,
|
37
|
+
size: size !== null && size !== void 0 ? size : 300,
|
38
|
+
strikethrough: strikethrough !== null && strikethrough !== void 0 ? strikethrough : false,
|
39
|
+
truncate: truncate !== null && truncate !== void 0 ? truncate : false,
|
40
|
+
underline: underline !== null && underline !== void 0 ? underline : false,
|
41
|
+
weight: weight !== null && weight !== void 0 ? weight : 'regular',
|
42
|
+
wrap: wrap !== null && wrap !== void 0 ? wrap : true,
|
43
|
+
components: {
|
44
|
+
root: 'span'
|
45
|
+
},
|
46
|
+
root: react_utilities_1.getNativeElementProps(as, {
|
47
|
+
ref,
|
48
|
+
...props,
|
49
|
+
as
|
50
|
+
})
|
51
|
+
};
|
52
|
+
return state;
|
53
|
+
};
|
54
|
+
exports.useText_unstable = useText_unstable;
|
38
55
|
//# sourceMappingURL=useText.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"mappings":";;;;;;AACA;AAGA;;;;;;;;;AASO,MAAMA,gBAAgB,GAAG,CAACC,KAAgB,EAAEC,GAA2B,KAAe;;EAC3F,MAAM;IAAEC,IAAI;IAAEC,QAAQ;IAAEC,KAAK;IAAEC,MAAM;IAAEC,SAAS;IAAEC,aAAa;IAAEC,IAAI;IAAEC,IAAI;IAAEC,MAAM;IAAEC;EAAK,CAAE,GAAGX,KAAK;EACpG,MAAMY,EAAE,GAAG,WAAK,CAACA,EAAE,mCAAI,MAAM;EAE7B,MAAMC,KAAK,GAAc;IACvBF,KAAK,EAAEA,KAAK,aAALA,KAAK,cAALA,KAAK,GAAI,OAAO;IACvBP,KAAK,EAAEA,KAAK,aAALA,KAAK,cAALA,KAAK,GAAI,KAAK;IACrBK,IAAI,EAAEA,IAAI,aAAJA,IAAI,cAAJA,IAAI,GAAI,MAAM;IACpBJ,MAAM,EAAEA,MAAM,aAANA,MAAM,cAANA,MAAM,GAAI,KAAK;IACvBG,IAAI,EAAEA,IAAI,aAAJA,IAAI,cAAJA,IAAI,GAAI,GAAG;IACjBD,aAAa,EAAEA,aAAa,aAAbA,aAAa,cAAbA,aAAa,GAAI,KAAK;IACrCJ,QAAQ,EAAEA,QAAQ,aAARA,QAAQ,cAARA,QAAQ,GAAI,KAAK;IAC3BG,SAAS,EAAEA,SAAS,aAATA,SAAS,cAATA,SAAS,GAAI,KAAK;IAC7BI,MAAM,EAAEA,MAAM,aAANA,MAAM,cAANA,MAAM,GAAI,SAAS;IAC3BR,IAAI,EAAEA,IAAI,aAAJA,IAAI,cAAJA,IAAI,GAAI,IAAI;IAElBY,UAAU,EAAE;MAAEC,IAAI,EAAE;IAAM,CAAE;IAE5BA,IAAI,EAAEC,uCAAqB,CAACJ,EAAE,EAAE;MAC9BX,GAAG;MACH,GAAGD,KAAK;MACRY;KACD;GACF;EAED,OAAOC,KAAK;AACd,CAAC;AA1BYI,wBAAgB","names":["useText_unstable","props","ref","wrap","truncate","block","italic","underline","strikethrough","size","font","weight","align","as","state","components","root","react_utilities_1","exports"],"sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-text/src/components/Text/useText.ts"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport type { TextProps, TextState } from './Text.types';\n\n/**\n * Create the state required to render Text.\n *\n * The returned state can be modified with hooks such as useTextStyles_unstable,\n * before being passed to renderText_unstable.\n *\n * @param props - props from this instance of Text\n * @param ref - reference to root HTMLElement of Text\n */\nexport const useText_unstable = (props: TextProps, ref: React.Ref<HTMLElement>): TextState => {\n const { wrap, truncate, block, italic, underline, strikethrough, size, font, weight, align } = props;\n const as = props.as ?? 'span';\n\n const state: TextState = {\n align: align ?? 'start',\n block: block ?? false,\n font: font ?? 'base',\n italic: italic ?? false,\n size: size ?? 300,\n strikethrough: strikethrough ?? false,\n truncate: truncate ?? false,\n underline: underline ?? false,\n weight: weight ?? 'regular',\n wrap: wrap ?? true,\n\n components: { root: 'span' },\n\n root: getNativeElementProps(as, {\n ref,\n ...props,\n as,\n }),\n };\n\n return state;\n};\n"]}
|
@@ -1,172 +1,123 @@
|
|
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
|
-
textClassNames: ()=>textClassNames,
|
13
|
-
useTextStyles_unstable: ()=>useTextStyles_unstable
|
4
|
+
value: true
|
14
5
|
});
|
15
|
-
|
16
|
-
const
|
17
|
-
|
6
|
+
exports.useTextStyles_unstable = exports.textClassNames = void 0;
|
7
|
+
const react_1 = /*#__PURE__*/require("@griffel/react");
|
8
|
+
const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
|
9
|
+
exports.textClassNames = {
|
10
|
+
root: 'fui-Text'
|
18
11
|
};
|
19
12
|
/**
|
20
13
|
* Styles for the root slot
|
21
|
-
*/
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
14
|
+
*/
|
15
|
+
const useStyles = /*#__PURE__*/react_1.__styles({
|
16
|
+
root: {
|
17
|
+
Bahqtrf: "fk6fouc",
|
18
|
+
Be2twd7: "fkhj508",
|
19
|
+
Bg96gwp: "f1i3iumi",
|
20
|
+
Bhrd7zp: "figsok6",
|
21
|
+
fsow6f: "fpgzoln",
|
22
|
+
mc9l5x: "f1w7gpdv",
|
23
|
+
Huce71: "f6juhto",
|
24
|
+
B68tc82: "f1mtd64y",
|
25
|
+
Bmxbyg5: "f1y7q3j9",
|
26
|
+
ygn44y: "f2jf649"
|
27
|
+
},
|
28
|
+
nowrap: {
|
29
|
+
Huce71: "fz5stix",
|
30
|
+
B68tc82: "f1p9o1ba",
|
31
|
+
Bmxbyg5: "f1sil6mw"
|
32
|
+
},
|
33
|
+
truncate: {
|
34
|
+
ygn44y: "f1cmbuwj"
|
35
|
+
},
|
36
|
+
block: {
|
37
|
+
mc9l5x: "ftgm304"
|
38
|
+
},
|
39
|
+
italic: {
|
40
|
+
B80ckks: "f1j4dglz"
|
41
|
+
},
|
42
|
+
underline: {
|
43
|
+
w71qe1: "f13mvf36"
|
44
|
+
},
|
45
|
+
strikethrough: {
|
46
|
+
w71qe1: "fv5q2k7"
|
47
|
+
},
|
48
|
+
strikethroughUnderline: {
|
49
|
+
w71qe1: "f1drk4o6"
|
50
|
+
},
|
51
|
+
base100: {
|
52
|
+
Be2twd7: "f13mqy1h",
|
53
|
+
Bg96gwp: "fcpl73t"
|
54
|
+
},
|
55
|
+
base200: {
|
56
|
+
Be2twd7: "fy9rknc",
|
57
|
+
Bg96gwp: "fwrc4pm"
|
58
|
+
},
|
59
|
+
base400: {
|
60
|
+
Be2twd7: "fod5ikn",
|
61
|
+
Bg96gwp: "faaz57k"
|
62
|
+
},
|
63
|
+
base500: {
|
64
|
+
Be2twd7: "f1pp30po",
|
65
|
+
Bg96gwp: "f106mvju"
|
66
|
+
},
|
67
|
+
base600: {
|
68
|
+
Be2twd7: "f1x0m3f5",
|
69
|
+
Bg96gwp: "fb86gi6"
|
70
|
+
},
|
71
|
+
hero700: {
|
72
|
+
Be2twd7: "fojgt09",
|
73
|
+
Bg96gwp: "fcen8rp"
|
74
|
+
},
|
75
|
+
hero800: {
|
76
|
+
Be2twd7: "fccw675",
|
77
|
+
Bg96gwp: "f1ebx5kk"
|
78
|
+
},
|
79
|
+
hero900: {
|
80
|
+
Be2twd7: "f15afnhw",
|
81
|
+
Bg96gwp: "fr3w3wp"
|
82
|
+
},
|
83
|
+
hero1000: {
|
84
|
+
Be2twd7: "fpyltcb",
|
85
|
+
Bg96gwp: "f1ivgwrt"
|
86
|
+
},
|
87
|
+
monospace: {
|
88
|
+
Bahqtrf: "f1fedwem"
|
89
|
+
},
|
90
|
+
numeric: {
|
91
|
+
Bahqtrf: "f1uq0ln5"
|
92
|
+
},
|
93
|
+
weightMedium: {
|
94
|
+
Bhrd7zp: "fdj6btp"
|
95
|
+
},
|
96
|
+
weightSemibold: {
|
97
|
+
Bhrd7zp: "fl43uef"
|
98
|
+
},
|
99
|
+
weightBold: {
|
100
|
+
Bhrd7zp: "flh3ekv"
|
101
|
+
},
|
102
|
+
alignCenter: {
|
103
|
+
fsow6f: "f17mccla"
|
104
|
+
},
|
105
|
+
alignEnd: {
|
106
|
+
fsow6f: "f12ymhq5"
|
107
|
+
},
|
108
|
+
alignJustify: {
|
109
|
+
fsow6f: "f1j59e10"
|
110
|
+
}
|
117
111
|
}, {
|
118
|
-
|
119
|
-
".fk6fouc{font-family:var(--fontFamilyBase);}",
|
120
|
-
".fkhj508{font-size:var(--fontSizeBase300);}",
|
121
|
-
".f1i3iumi{line-height:var(--lineHeightBase300);}",
|
122
|
-
".figsok6{font-weight:var(--fontWeightRegular);}",
|
123
|
-
".fpgzoln{text-align:start;}",
|
124
|
-
".f1w7gpdv{display:inline;}",
|
125
|
-
".f6juhto{white-space:normal;}",
|
126
|
-
".f1mtd64y{overflow-x:visible;}",
|
127
|
-
".f1y7q3j9{overflow-y:visible;}",
|
128
|
-
".f2jf649{text-overflow:clip;}",
|
129
|
-
".fz5stix{white-space:nowrap;}",
|
130
|
-
".f1p9o1ba{overflow-x:hidden;}",
|
131
|
-
".f1sil6mw{overflow-y:hidden;}",
|
132
|
-
".f1cmbuwj{text-overflow:ellipsis;}",
|
133
|
-
".ftgm304{display:block;}",
|
134
|
-
".f1j4dglz{font-style:italic;}",
|
135
|
-
".f13mvf36{text-decoration-line:underline;}",
|
136
|
-
".fv5q2k7{text-decoration-line:line-through;}",
|
137
|
-
".f1drk4o6{text-decoration-line:line-through underline;}",
|
138
|
-
".f13mqy1h{font-size:var(--fontSizeBase100);}",
|
139
|
-
".fcpl73t{line-height:var(--lineHeightBase100);}",
|
140
|
-
".fy9rknc{font-size:var(--fontSizeBase200);}",
|
141
|
-
".fwrc4pm{line-height:var(--lineHeightBase200);}",
|
142
|
-
".fod5ikn{font-size:var(--fontSizeBase400);}",
|
143
|
-
".faaz57k{line-height:var(--lineHeightBase400);}",
|
144
|
-
".f1pp30po{font-size:var(--fontSizeBase500);}",
|
145
|
-
".f106mvju{line-height:var(--lineHeightBase500);}",
|
146
|
-
".f1x0m3f5{font-size:var(--fontSizeBase600);}",
|
147
|
-
".fb86gi6{line-height:var(--lineHeightBase600);}",
|
148
|
-
".fojgt09{font-size:var(--fontSizeHero700);}",
|
149
|
-
".fcen8rp{line-height:var(--lineHeightHero700);}",
|
150
|
-
".fccw675{font-size:var(--fontSizeHero800);}",
|
151
|
-
".f1ebx5kk{line-height:var(--lineHeightHero800);}",
|
152
|
-
".f15afnhw{font-size:var(--fontSizeHero900);}",
|
153
|
-
".fr3w3wp{line-height:var(--lineHeightHero900);}",
|
154
|
-
".fpyltcb{font-size:var(--fontSizeHero1000);}",
|
155
|
-
".f1ivgwrt{line-height:var(--lineHeightHero1000);}",
|
156
|
-
".f1fedwem{font-family:var(--fontFamilyMonospace);}",
|
157
|
-
".f1uq0ln5{font-family:var(--fontFamilyNumeric);}",
|
158
|
-
".fdj6btp{font-weight:var(--fontWeightMedium);}",
|
159
|
-
".fl43uef{font-weight:var(--fontWeightSemibold);}",
|
160
|
-
".flh3ekv{font-weight:var(--fontWeightBold);}",
|
161
|
-
".f17mccla{text-align:center;}",
|
162
|
-
".f12ymhq5{text-align:end;}",
|
163
|
-
".f1j59e10{text-align:justify;}"
|
164
|
-
]
|
112
|
+
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;}"]
|
165
113
|
});
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
114
|
+
/**
|
115
|
+
* Apply styling to the Text slots based on the state
|
116
|
+
*/
|
117
|
+
const useTextStyles_unstable = state => {
|
118
|
+
const styles = useStyles();
|
119
|
+
state.root.className = react_1.mergeClasses(exports.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);
|
120
|
+
return state;
|
121
|
+
};
|
122
|
+
exports.useTextStyles_unstable = useTextStyles_unstable;
|
172
123
|
//# sourceMappingURL=useTextStyles.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"mappings":"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","names":["exports","root","useStyles","react_1","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":"","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"]}
|
@@ -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
|
-
body1ClassNames: ()=>body1ClassNames,
|
13
|
-
Body1: ()=>Body1
|
4
|
+
value: true
|
14
5
|
});
|
15
|
-
|
16
|
-
const
|
17
|
-
const
|
18
|
-
|
6
|
+
exports.Body1 = exports.body1ClassNames = 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.body1ClassNames = {
|
11
|
+
root: 'fui-Body1'
|
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: "fkhj508",
|
20
|
+
Bhrd7zp: "figsok6",
|
21
|
+
Bg96gwp: "f1i3iumi"
|
22
|
+
}
|
29
23
|
}, {
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
24
|
+
d: [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}"]
|
25
|
+
});
|
26
|
+
/**
|
27
|
+
* Text preset component for the Body1 typography variant
|
28
|
+
*/
|
29
|
+
exports.Body1 = /*#__PURE__*/createPreset_1.createPreset({
|
30
|
+
useStyles,
|
31
|
+
className: exports.body1ClassNames.root,
|
32
|
+
displayName: 'Body1'
|
36
33
|
});
|
37
|
-
const Body1 = /*#__PURE__*/ (0, _createPreset.createPreset)({
|
38
|
-
useStyles,
|
39
|
-
className: body1ClassNames.root,
|
40
|
-
displayName: 'Body1'
|
41
|
-
}); //# sourceMappingURL=Body1.js.map
|
42
|
-
|
43
34
|
//# sourceMappingURL=Body1.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
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,gBAAuCI,2BAAY,CAAC;EACpEF,SAAS;EACTG,SAAS,EAAEL,uBAAe,CAACC,IAAI;EAC/BK,WAAW,EAAE;CACd,CAAC","names":["exports","root","useStyles","react_1","createPreset_1","className","displayName"],"sourceRoot":"","sources":["../../../../../../../../../../packages/react-components/react-text/src/components/presets/Body1/Body1.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 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 preset component for the Body1 typography variant\n */\nexport const Body1: FunctionComponent<TextPresetProps> = createPreset({\n useStyles,\n className: body1ClassNames.root,\n displayName: 'Body1',\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("./Body1"), 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/Body1/index.ts"],"sourcesContent":["export * from './Body1';\n"]}
|