@fluentui/react-text 0.0.0-nightly-20230317-1454.1 → 0.0.0-nightly-20230321-0440.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 +11 -11
- package/CHANGELOG.md +8 -8
- package/lib/Body1.js +1 -1
- package/lib/Body1.js.map +1 -1
- package/lib/Body1Strong.js +1 -1
- package/lib/Body1Strong.js.map +1 -1
- package/lib/Body1Stronger.js +1 -1
- package/lib/Body1Stronger.js.map +1 -1
- package/lib/Body2.js +1 -1
- package/lib/Body2.js.map +1 -1
- package/lib/Caption1.js +1 -1
- package/lib/Caption1.js.map +1 -1
- package/lib/Caption1Strong.js +1 -1
- package/lib/Caption1Strong.js.map +1 -1
- package/lib/Caption1Stronger.js +1 -1
- package/lib/Caption1Stronger.js.map +1 -1
- package/lib/Caption2.js +1 -1
- package/lib/Caption2.js.map +1 -1
- package/lib/Caption2Strong.js +1 -1
- package/lib/Caption2Strong.js.map +1 -1
- package/lib/Display.js +1 -1
- package/lib/Display.js.map +1 -1
- package/lib/LargeTitle.js +1 -1
- package/lib/LargeTitle.js.map +1 -1
- package/lib/Subtitle1.js +1 -1
- package/lib/Subtitle1.js.map +1 -1
- package/lib/Subtitle2.js +1 -1
- package/lib/Subtitle2.js.map +1 -1
- package/lib/Subtitle2Stronger.js +1 -1
- package/lib/Subtitle2Stronger.js.map +1 -1
- package/lib/Text.js +1 -1
- package/lib/Text.js.map +1 -1
- package/lib/Title1.js +1 -1
- package/lib/Title1.js.map +1 -1
- package/lib/Title2.js +1 -1
- package/lib/Title2.js.map +1 -1
- package/lib/Title3.js +1 -1
- package/lib/Title3.js.map +1 -1
- package/lib/components/Text/Text.js +6 -6
- 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 +5 -5
- package/lib/components/Text/index.js.map +1 -1
- package/lib/components/Text/renderText.js +5 -3
- package/lib/components/Text/renderText.js.map +1 -1
- package/lib/components/Text/useText.js +14 -14
- package/lib/components/Text/useText.js.map +1 -1
- package/lib/components/Text/useTextStyles.js +4 -4
- package/lib/components/Text/useTextStyles.js.map +1 -1
- package/lib/components/presets/Body1/Body1.js +5 -5
- package/lib/components/presets/Body1/Body1.js.map +1 -1
- package/lib/components/presets/Body1/index.js +1 -1
- package/lib/components/presets/Body1/index.js.map +1 -1
- package/lib/components/presets/Body1Strong/Body1Strong.js +5 -5
- package/lib/components/presets/Body1Strong/Body1Strong.js.map +1 -1
- package/lib/components/presets/Body1Strong/index.js +1 -1
- package/lib/components/presets/Body1Strong/index.js.map +1 -1
- package/lib/components/presets/Body1Stronger/Body1Stronger.js +5 -5
- package/lib/components/presets/Body1Stronger/Body1Stronger.js.map +1 -1
- package/lib/components/presets/Body1Stronger/index.js +1 -1
- package/lib/components/presets/Body1Stronger/index.js.map +1 -1
- package/lib/components/presets/Body2/Body2.js +5 -5
- package/lib/components/presets/Body2/Body2.js.map +1 -1
- package/lib/components/presets/Body2/index.js +1 -1
- package/lib/components/presets/Body2/index.js.map +1 -1
- package/lib/components/presets/Caption1/Caption1.js +5 -5
- package/lib/components/presets/Caption1/Caption1.js.map +1 -1
- package/lib/components/presets/Caption1/index.js +1 -1
- package/lib/components/presets/Caption1/index.js.map +1 -1
- package/lib/components/presets/Caption1Strong/Caption1Strong.js +5 -5
- package/lib/components/presets/Caption1Strong/Caption1Strong.js.map +1 -1
- package/lib/components/presets/Caption1Strong/index.js +1 -1
- package/lib/components/presets/Caption1Strong/index.js.map +1 -1
- package/lib/components/presets/Caption1Stronger/Caption1Stronger.js +5 -5
- package/lib/components/presets/Caption1Stronger/Caption1Stronger.js.map +1 -1
- package/lib/components/presets/Caption1Stronger/index.js +1 -1
- package/lib/components/presets/Caption1Stronger/index.js.map +1 -1
- package/lib/components/presets/Caption2/Caption2.js +5 -5
- package/lib/components/presets/Caption2/Caption2.js.map +1 -1
- package/lib/components/presets/Caption2/index.js +1 -1
- package/lib/components/presets/Caption2/index.js.map +1 -1
- package/lib/components/presets/Caption2Strong/Caption2Strong.js +5 -5
- package/lib/components/presets/Caption2Strong/Caption2Strong.js.map +1 -1
- package/lib/components/presets/Caption2Strong/index.js +1 -1
- package/lib/components/presets/Caption2Strong/index.js.map +1 -1
- package/lib/components/presets/Display/Display.js +5 -5
- package/lib/components/presets/Display/Display.js.map +1 -1
- package/lib/components/presets/Display/index.js +1 -1
- package/lib/components/presets/Display/index.js.map +1 -1
- package/lib/components/presets/LargeTitle/LargeTitle.js +5 -5
- package/lib/components/presets/LargeTitle/LargeTitle.js.map +1 -1
- package/lib/components/presets/LargeTitle/index.js +1 -1
- package/lib/components/presets/LargeTitle/index.js.map +1 -1
- package/lib/components/presets/Subtitle1/Subtitle1.js +5 -5
- package/lib/components/presets/Subtitle1/Subtitle1.js.map +1 -1
- package/lib/components/presets/Subtitle1/index.js +1 -1
- package/lib/components/presets/Subtitle1/index.js.map +1 -1
- package/lib/components/presets/Subtitle2/Subtitle2.js +5 -5
- package/lib/components/presets/Subtitle2/Subtitle2.js.map +1 -1
- package/lib/components/presets/Subtitle2/index.js +1 -1
- package/lib/components/presets/Subtitle2/index.js.map +1 -1
- package/lib/components/presets/Subtitle2Stronger/Subtitle2Stronger.js +5 -5
- package/lib/components/presets/Subtitle2Stronger/Subtitle2Stronger.js.map +1 -1
- package/lib/components/presets/Subtitle2Stronger/index.js +1 -1
- package/lib/components/presets/Subtitle2Stronger/index.js.map +1 -1
- package/lib/components/presets/Title1/Title1.js +5 -5
- package/lib/components/presets/Title1/Title1.js.map +1 -1
- package/lib/components/presets/Title1/index.js +1 -1
- package/lib/components/presets/Title1/index.js.map +1 -1
- package/lib/components/presets/Title2/Title2.js +5 -5
- package/lib/components/presets/Title2/Title2.js.map +1 -1
- package/lib/components/presets/Title2/index.js +1 -1
- package/lib/components/presets/Title2/index.js.map +1 -1
- package/lib/components/presets/Title3/Title3.js +5 -5
- package/lib/components/presets/Title3/Title3.js.map +1 -1
- package/lib/components/presets/Title3/index.js +1 -1
- package/lib/components/presets/Title3/index.js.map +1 -1
- package/lib/components/presets/createPreset.js +3 -3
- package/lib/components/presets/createPreset.js.map +1 -1
- package/lib/index.js +18 -18
- 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 +21 -19
- 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 -13
- 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 +8 -7
- package/.swcrc +0 -39
package/lib-commonjs/Title3.js
CHANGED
@@ -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=Title3.js.map
|
8
|
-
|
6
|
+
const tslib_1 = /*#__PURE__*/require("tslib");
|
7
|
+
tslib_1.__exportStar(require("./components/presets/Title3/index"), exports);
|
9
8
|
//# sourceMappingURL=Title3.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"names":["tslib_1","__exportStar","require","exports"],"sources":["../../../../../../../packages/react-components/react-text/src/Title3.ts"],"sourcesContent":["export * from './components/presets/Title3/index';\n"],"mappings":";;;;;;AAAAA,OAAA,CAAAC,YAAA,CAAAC,OAAA,uCAAAC,OAAA"}
|
@@ -1,25 +1,27 @@
|
|
1
1
|
"use strict";
|
2
|
+
|
2
3
|
Object.defineProperty(exports, "__esModule", {
|
3
|
-
|
4
|
-
});
|
5
|
-
Object.defineProperty(exports, "Text", {
|
6
|
-
enumerable: true,
|
7
|
-
get: ()=>Text
|
4
|
+
value: true
|
8
5
|
});
|
9
|
-
|
10
|
-
const
|
11
|
-
const
|
12
|
-
const
|
13
|
-
const
|
14
|
-
const
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
6
|
+
exports.Text = void 0;
|
7
|
+
const React = /*#__PURE__*/require("react");
|
8
|
+
const useText_1 = /*#__PURE__*/require("./useText");
|
9
|
+
const renderText_1 = /*#__PURE__*/require("./renderText");
|
10
|
+
const useTextStyles_1 = /*#__PURE__*/require("./useTextStyles");
|
11
|
+
const react_shared_contexts_1 = /*#__PURE__*/require("@fluentui/react-shared-contexts");
|
12
|
+
/**
|
13
|
+
* Typography and styling abstraction component used to ensure consistency of text.
|
14
|
+
*/
|
15
|
+
exports.Text = /*#__PURE__*/React.forwardRef((props, ref) => {
|
16
|
+
const state = useText_1.useText_unstable(props, ref);
|
17
|
+
useTextStyles_1.useTextStyles_unstable(state);
|
18
|
+
const {
|
19
|
+
useTextStyles_unstable: useCustomStyles
|
20
|
+
} = react_shared_contexts_1.useCustomStyleHooks_unstable();
|
21
|
+
useCustomStyles(state);
|
22
|
+
return renderText_1.renderText_unstable(state);
|
23
|
+
// Work around some small mismatches in inferred types which don't matter in practice
|
22
24
|
});
|
23
|
-
Text.displayName = "Text"; //# sourceMappingURL=Text.js.map
|
24
25
|
|
26
|
+
exports.Text.displayName = 'Text';
|
25
27
|
//# sourceMappingURL=Text.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"names":["React","require","useText_1","renderText_1","useTextStyles_1","react_shared_contexts_1","exports","Text","forwardRef","props","ref","state","useText_unstable","useTextStyles_unstable","useCustomStyles","useCustomStyleHooks_unstable","renderText_unstable","displayName"],"sources":["../../../../../../../../../packages/react-components/react-text/src/components/Text/Text.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useText_unstable } from './useText';\nimport { renderText_unstable } from './renderText';\nimport { useTextStyles_unstable } from './useTextStyles';\nimport type { TextProps } from './Text.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * Typography and styling abstraction component used to ensure consistency of text.\n */\nexport const Text: ForwardRefComponent<TextProps> = React.forwardRef((props, ref) => {\n const state = useText_unstable(props, ref);\n\n useTextStyles_unstable(state);\n\n const { useTextStyles_unstable: useCustomStyles } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n\n return renderText_unstable(state);\n // Work around some small mismatches in inferred types which don't matter in practice\n}) as ForwardRefComponent<TextProps>;\n\nText.displayName = 'Text';\n"],"mappings":";;;;;;AAAA,MAAAA,KAAA,gBAAAC,OAAA;AACA,MAAAC,SAAA,gBAAAD,OAAA;AACA,MAAAE,YAAA,gBAAAF,OAAA;AACA,MAAAG,eAAA,gBAAAH,OAAA;AAGA,MAAAI,uBAAA,gBAAAJ,OAAA;AAEA;;;AAGaK,OAAA,CAAAC,IAAI,gBAAmCP,KAAK,CAACQ,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAI;EAClF,MAAMC,KAAK,GAAGT,SAAA,CAAAU,gBAAgB,CAACH,KAAK,EAAEC,GAAG,CAAC;EAE1CN,eAAA,CAAAS,sBAAsB,CAACF,KAAK,CAAC;EAE7B,MAAM;IAAEE,sBAAsB,EAAEC;EAAe,CAAE,GAAGT,uBAAA,CAAAU,4BAA4B,EAAE;EAClFD,eAAe,CAACH,KAAK,CAAC;EAEtB,OAAOR,YAAA,CAAAa,mBAAmB,CAACL,KAAK,CAAC;EACjC;AACF,CAAC,CAAmC;;AAEpCL,OAAA,CAAAC,IAAI,CAACU,WAAW,GAAG,MAAM"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"names":[],"sources":["../../../../../../../../../packages/react-components/react-text/src/components/Text/Text.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\n/**\n * Text slots\n */\nexport type TextSlots = {\n root: Slot<'span', 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'pre'>;\n};\n\n/**\n * Text Props\n */\nexport type TextProps = ComponentProps<TextSlots> & {\n /**\n * Aligns text based on the parent container.\n *\n * @default start\n */\n align?: 'start' | 'center' | 'end' | 'justify';\n\n /**\n * Applies a block display for the content.\n *\n * @default false\n */\n block?: boolean;\n\n /**\n * Applies the font family to the content.\n *\n * @default base\n */\n font?: 'base' | 'monospace' | 'numeric';\n\n /**\n * Applies the italic font style to the content.\n *\n * @default false\n */\n italic?: boolean;\n\n /**\n * Applies font size and line height based on the theme typography tokens.\n *\n * @default 300\n */\n size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000;\n\n /**\n * Applies the strikethrough text decoration to the content.\n *\n * @default false\n */\n strikethrough?: boolean;\n\n /**\n * Truncate overflowing text for block displays.\n *\n * @default false\n */\n\n truncate?: boolean;\n\n /**\n * Applies the underline text decoration to the content.\n *\n * @default false\n */\n underline?: boolean;\n\n /**\n * Applies font weight to the content.\n *\n * @default regular\n */\n weight?: 'regular' | 'medium' | 'semibold' | 'bold';\n\n /**\n * Wraps the text content on white spaces.\n *\n * @default true\n */\n wrap?: boolean;\n};\n\n/**\n * TextPreset Props\n */\nexport type TextPresetProps = Omit<TextProps, 'font' | 'size' | 'weight'>;\n\n/**\n * State used in rendering Text\n */\nexport type TextState = ComponentState<TextSlots> &\n Required<\n Pick<\n TextProps,\n 'align' | 'block' | 'font' | 'italic' | 'size' | 'strikethrough' | 'truncate' | 'underline' | 'weight' | 'wrap'\n >\n >;\n"],"mappings":""}
|
@@ -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,"names":["tslib_1","__exportStar","require","exports"],"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"],"mappings":";;;;;;AAAAA,OAAA,CAAAC,YAAA,CAAAC,OAAA,YAAAC,OAAA;AACAH,OAAA,CAAAC,YAAA,CAAAC,OAAA,kBAAAC,OAAA;AACAH,OAAA,CAAAC,YAAA,CAAAC,OAAA,kBAAAC,OAAA;AACAH,OAAA,CAAAC,YAAA,CAAAC,OAAA,eAAAC,OAAA;AACAH,OAAA,CAAAC,YAAA,CAAAC,OAAA,qBAAAC,OAAA"}
|
@@ -1,17 +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
|
-
|
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;
|
17
22
|
//# sourceMappingURL=renderText.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"names":["React","require","react_utilities_1","renderText_unstable","state","slots","slotProps","getSlots","createElement","root","exports"],"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"],"mappings":";;;;;;AAAA,MAAAA,KAAA,gBAAAC,OAAA;AACA,MAAAC,iBAAA,gBAAAD,OAAA;AAGA;;;AAGO,MAAME,mBAAmB,GAAIC,KAAgB,IAAI;EACtD,MAAM;IAAEC,KAAK;IAAEC;EAAS,CAAE,GAAGJ,iBAAA,CAAAK,QAAQ,CAAYH,KAAK,CAAC;EAEvD,OAAOJ,KAAA,CAAAQ,aAAA,CAACH,KAAK,CAACI,IAAI;IAAA,GAAKH,SAAS,CAACG;EAAI,EAAI;AAC3C,CAAC;AAJYC,OAAA,CAAAP,mBAAmB,GAAAA,mBAAA"}
|
@@ -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,"names":["react_utilities_1","require","useText_unstable","props","ref","wrap","truncate","block","italic","underline","strikethrough","size","font","weight","align","as","_a","state","components","root","getNativeElementProps","exports"],"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"],"mappings":";;;;;;AACA,MAAAA,iBAAA,gBAAAC,OAAA;AAGA;;;;;;;;;AASO,MAAMC,gBAAgB,GAAGA,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,CAAAC,EAAA,GAAAb,KAAK,CAACY,EAAE,cAAAC,EAAA,cAAAA,EAAA,GAAI,MAAM;EAE7B,MAAMC,KAAK,GAAc;IACvBH,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;IAElBa,UAAU,EAAE;MAAEC,IAAI,EAAE;IAAM,CAAE;IAE5BA,IAAI,EAAEnB,iBAAA,CAAAoB,qBAAqB,CAACL,EAAE,EAAE;MAC9BX,GAAG;MACH,GAAGD,KAAK;MACRY;KACD;GACF;EAED,OAAOE,KAAK;AACd,CAAC;AA1BYI,OAAA,CAAAnB,gBAAgB,GAAAA,gBAAA"}
|
@@ -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
|