@fluentui/react-text 9.3.1 → 9.3.3
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/.swcrc +30 -0
- package/CHANGELOG.json +61 -1
- package/CHANGELOG.md +25 -2
- 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 +1 -3
- package/lib/components/Text/renderText.js.map +1 -1
- package/lib/components/Text/useText.js +3 -2
- 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 +5 -4
- package/lib-commonjs/Body1.js.map +1 -1
- package/lib-commonjs/Body1Strong.js +5 -4
- package/lib-commonjs/Body1Strong.js.map +1 -1
- package/lib-commonjs/Body1Stronger.js +5 -4
- package/lib-commonjs/Body1Stronger.js.map +1 -1
- package/lib-commonjs/Body2.js +5 -4
- package/lib-commonjs/Body2.js.map +1 -1
- package/lib-commonjs/Caption1.js +5 -4
- package/lib-commonjs/Caption1.js.map +1 -1
- package/lib-commonjs/Caption1Strong.js +5 -4
- package/lib-commonjs/Caption1Strong.js.map +1 -1
- package/lib-commonjs/Caption1Stronger.js +5 -4
- package/lib-commonjs/Caption1Stronger.js.map +1 -1
- package/lib-commonjs/Caption2.js +5 -4
- package/lib-commonjs/Caption2.js.map +1 -1
- package/lib-commonjs/Caption2Strong.js +5 -4
- package/lib-commonjs/Caption2Strong.js.map +1 -1
- package/lib-commonjs/Display.js +5 -4
- package/lib-commonjs/Display.js.map +1 -1
- package/lib-commonjs/LargeTitle.js +5 -4
- package/lib-commonjs/LargeTitle.js.map +1 -1
- package/lib-commonjs/Subtitle1.js +5 -4
- package/lib-commonjs/Subtitle1.js.map +1 -1
- package/lib-commonjs/Subtitle2.js +5 -4
- package/lib-commonjs/Subtitle2.js.map +1 -1
- package/lib-commonjs/Subtitle2Stronger.js +5 -4
- package/lib-commonjs/Subtitle2Stronger.js.map +1 -1
- package/lib-commonjs/Text.js +5 -4
- package/lib-commonjs/Text.js.map +1 -1
- package/lib-commonjs/Title1.js +5 -4
- package/lib-commonjs/Title1.js.map +1 -1
- package/lib-commonjs/Title2.js +5 -4
- package/lib-commonjs/Title2.js.map +1 -1
- package/lib-commonjs/Title3.js +5 -4
- package/lib-commonjs/Title3.js.map +1 -1
- package/lib-commonjs/components/Text/Text.js +19 -21
- package/lib-commonjs/components/Text/Text.js.map +1 -1
- package/lib-commonjs/components/Text/Text.types.js +3 -2
- package/lib-commonjs/components/Text/Text.types.js.map +1 -1
- package/lib-commonjs/components/Text/index.js +9 -8
- package/lib-commonjs/components/Text/index.js.map +1 -1
- package/lib-commonjs/components/Text/renderText.js +13 -18
- package/lib-commonjs/components/Text/renderText.js.map +1 -1
- package/lib-commonjs/components/Text/useText.js +35 -51
- package/lib-commonjs/components/Text/useText.js.map +1 -1
- package/lib-commonjs/components/Text/useTextStyles.js +163 -114
- package/lib-commonjs/components/Text/useTextStyles.js.map +1 -1
- package/lib-commonjs/components/presets/Body1/Body1.js +34 -25
- package/lib-commonjs/components/presets/Body1/Body1.js.map +1 -1
- package/lib-commonjs/components/presets/Body1/index.js +5 -4
- package/lib-commonjs/components/presets/Body1/index.js.map +1 -1
- package/lib-commonjs/components/presets/Body1Strong/Body1Strong.js +34 -25
- package/lib-commonjs/components/presets/Body1Strong/Body1Strong.js.map +1 -1
- package/lib-commonjs/components/presets/Body1Strong/index.js +5 -4
- package/lib-commonjs/components/presets/Body1Strong/index.js.map +1 -1
- package/lib-commonjs/components/presets/Body1Stronger/Body1Stronger.js +34 -25
- package/lib-commonjs/components/presets/Body1Stronger/Body1Stronger.js.map +1 -1
- package/lib-commonjs/components/presets/Body1Stronger/index.js +5 -4
- package/lib-commonjs/components/presets/Body1Stronger/index.js.map +1 -1
- package/lib-commonjs/components/presets/Body2/Body2.js +34 -25
- package/lib-commonjs/components/presets/Body2/Body2.js.map +1 -1
- package/lib-commonjs/components/presets/Body2/index.js +5 -4
- package/lib-commonjs/components/presets/Body2/index.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1/Caption1.js +34 -25
- package/lib-commonjs/components/presets/Caption1/Caption1.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1/index.js +5 -4
- package/lib-commonjs/components/presets/Caption1/index.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1Strong/Caption1Strong.js +34 -25
- package/lib-commonjs/components/presets/Caption1Strong/Caption1Strong.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1Strong/index.js +5 -4
- package/lib-commonjs/components/presets/Caption1Strong/index.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1Stronger/Caption1Stronger.js +34 -25
- package/lib-commonjs/components/presets/Caption1Stronger/Caption1Stronger.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1Stronger/index.js +5 -4
- package/lib-commonjs/components/presets/Caption1Stronger/index.js.map +1 -1
- package/lib-commonjs/components/presets/Caption2/Caption2.js +34 -25
- package/lib-commonjs/components/presets/Caption2/Caption2.js.map +1 -1
- package/lib-commonjs/components/presets/Caption2/index.js +5 -4
- package/lib-commonjs/components/presets/Caption2/index.js.map +1 -1
- package/lib-commonjs/components/presets/Caption2Strong/Caption2Strong.js +34 -25
- package/lib-commonjs/components/presets/Caption2Strong/Caption2Strong.js.map +1 -1
- package/lib-commonjs/components/presets/Caption2Strong/index.js +5 -4
- package/lib-commonjs/components/presets/Caption2Strong/index.js.map +1 -1
- package/lib-commonjs/components/presets/Display/Display.js +34 -25
- package/lib-commonjs/components/presets/Display/Display.js.map +1 -1
- package/lib-commonjs/components/presets/Display/index.js +5 -4
- package/lib-commonjs/components/presets/Display/index.js.map +1 -1
- package/lib-commonjs/components/presets/LargeTitle/LargeTitle.js +34 -25
- package/lib-commonjs/components/presets/LargeTitle/LargeTitle.js.map +1 -1
- package/lib-commonjs/components/presets/LargeTitle/index.js +5 -4
- package/lib-commonjs/components/presets/LargeTitle/index.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle1/Subtitle1.js +34 -25
- package/lib-commonjs/components/presets/Subtitle1/Subtitle1.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle1/index.js +5 -4
- package/lib-commonjs/components/presets/Subtitle1/index.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle2/Subtitle2.js +34 -25
- package/lib-commonjs/components/presets/Subtitle2/Subtitle2.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle2/index.js +5 -4
- package/lib-commonjs/components/presets/Subtitle2/index.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle2Stronger/Subtitle2Stronger.js +34 -25
- package/lib-commonjs/components/presets/Subtitle2Stronger/Subtitle2Stronger.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle2Stronger/index.js +5 -4
- package/lib-commonjs/components/presets/Subtitle2Stronger/index.js.map +1 -1
- package/lib-commonjs/components/presets/Title1/Title1.js +34 -25
- package/lib-commonjs/components/presets/Title1/Title1.js.map +1 -1
- package/lib-commonjs/components/presets/Title1/index.js +5 -4
- package/lib-commonjs/components/presets/Title1/index.js.map +1 -1
- package/lib-commonjs/components/presets/Title2/Title2.js +34 -25
- package/lib-commonjs/components/presets/Title2/Title2.js.map +1 -1
- package/lib-commonjs/components/presets/Title2/index.js +5 -4
- package/lib-commonjs/components/presets/Title2/index.js.map +1 -1
- package/lib-commonjs/components/presets/Title3/Title3.js +34 -25
- package/lib-commonjs/components/presets/Title3/Title3.js.map +1 -1
- package/lib-commonjs/components/presets/Title3/index.js +5 -4
- package/lib-commonjs/components/presets/Title3/index.js.map +1 -1
- package/lib-commonjs/components/presets/createPreset.js +21 -22
- package/lib-commonjs/components/presets/createPreset.js.map +1 -1
- package/lib-commonjs/index.js +69 -256
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +8 -7
- package/lib-amd/Body1.js +0 -6
- package/lib-amd/Body1.js.map +0 -1
- package/lib-amd/Body1Strong.js +0 -6
- package/lib-amd/Body1Strong.js.map +0 -1
- package/lib-amd/Body1Stronger.js +0 -6
- package/lib-amd/Body1Stronger.js.map +0 -1
- package/lib-amd/Body2.js +0 -6
- package/lib-amd/Body2.js.map +0 -1
- package/lib-amd/Caption1.js +0 -6
- package/lib-amd/Caption1.js.map +0 -1
- package/lib-amd/Caption1Strong.js +0 -6
- package/lib-amd/Caption1Strong.js.map +0 -1
- package/lib-amd/Caption1Stronger.js +0 -6
- package/lib-amd/Caption1Stronger.js.map +0 -1
- package/lib-amd/Caption2.js +0 -6
- package/lib-amd/Caption2.js.map +0 -1
- package/lib-amd/Caption2Strong.js +0 -6
- package/lib-amd/Caption2Strong.js.map +0 -1
- package/lib-amd/Display.js +0 -6
- package/lib-amd/Display.js.map +0 -1
- package/lib-amd/LargeTitle.js +0 -6
- package/lib-amd/LargeTitle.js.map +0 -1
- package/lib-amd/Subtitle1.js +0 -6
- package/lib-amd/Subtitle1.js.map +0 -1
- package/lib-amd/Subtitle2.js +0 -6
- package/lib-amd/Subtitle2.js.map +0 -1
- package/lib-amd/Subtitle2Stronger.js +0 -6
- package/lib-amd/Subtitle2Stronger.js.map +0 -1
- package/lib-amd/Text.js +0 -6
- package/lib-amd/Text.js.map +0 -1
- package/lib-amd/Title1.js +0 -6
- package/lib-amd/Title1.js.map +0 -1
- package/lib-amd/Title2.js +0 -6
- package/lib-amd/Title2.js.map +0 -1
- package/lib-amd/Title3.js +0 -6
- package/lib-amd/Title3.js.map +0 -1
- package/lib-amd/components/Text/Text.js +0 -18
- package/lib-amd/components/Text/Text.js.map +0 -1
- package/lib-amd/components/Text/Text.types.js +0 -5
- package/lib-amd/components/Text/Text.types.js.map +0 -1
- package/lib-amd/components/Text/index.js +0 -10
- package/lib-amd/components/Text/index.js.map +0 -1
- package/lib-amd/components/Text/renderText.js +0 -14
- package/lib-amd/components/Text/renderText.js.map +0 -1
- package/lib-amd/components/Text/useText.js +0 -36
- package/lib-amd/components/Text/useText.js.map +0 -1
- package/lib-amd/components/Text/useTextStyles.js +0 -103
- package/lib-amd/components/Text/useTextStyles.js.map +0 -1
- package/lib-amd/components/presets/Body1/Body1.js +0 -23
- package/lib-amd/components/presets/Body1/Body1.js.map +0 -1
- package/lib-amd/components/presets/Body1/index.js +0 -6
- package/lib-amd/components/presets/Body1/index.js.map +0 -1
- package/lib-amd/components/presets/Body1Strong/Body1Strong.js +0 -23
- package/lib-amd/components/presets/Body1Strong/Body1Strong.js.map +0 -1
- package/lib-amd/components/presets/Body1Strong/index.js +0 -6
- package/lib-amd/components/presets/Body1Strong/index.js.map +0 -1
- package/lib-amd/components/presets/Body1Stronger/Body1Stronger.js +0 -23
- package/lib-amd/components/presets/Body1Stronger/Body1Stronger.js.map +0 -1
- package/lib-amd/components/presets/Body1Stronger/index.js +0 -6
- package/lib-amd/components/presets/Body1Stronger/index.js.map +0 -1
- package/lib-amd/components/presets/Body2/Body2.js +0 -23
- package/lib-amd/components/presets/Body2/Body2.js.map +0 -1
- package/lib-amd/components/presets/Body2/index.js +0 -6
- package/lib-amd/components/presets/Body2/index.js.map +0 -1
- package/lib-amd/components/presets/Caption1/Caption1.js +0 -23
- package/lib-amd/components/presets/Caption1/Caption1.js.map +0 -1
- package/lib-amd/components/presets/Caption1/index.js +0 -6
- package/lib-amd/components/presets/Caption1/index.js.map +0 -1
- package/lib-amd/components/presets/Caption1Strong/Caption1Strong.js +0 -23
- package/lib-amd/components/presets/Caption1Strong/Caption1Strong.js.map +0 -1
- package/lib-amd/components/presets/Caption1Strong/index.js +0 -6
- package/lib-amd/components/presets/Caption1Strong/index.js.map +0 -1
- package/lib-amd/components/presets/Caption1Stronger/Caption1Stronger.js +0 -23
- package/lib-amd/components/presets/Caption1Stronger/Caption1Stronger.js.map +0 -1
- package/lib-amd/components/presets/Caption1Stronger/index.js +0 -6
- package/lib-amd/components/presets/Caption1Stronger/index.js.map +0 -1
- package/lib-amd/components/presets/Caption2/Caption2.js +0 -23
- package/lib-amd/components/presets/Caption2/Caption2.js.map +0 -1
- package/lib-amd/components/presets/Caption2/index.js +0 -6
- package/lib-amd/components/presets/Caption2/index.js.map +0 -1
- package/lib-amd/components/presets/Caption2Strong/Caption2Strong.js +0 -23
- package/lib-amd/components/presets/Caption2Strong/Caption2Strong.js.map +0 -1
- package/lib-amd/components/presets/Caption2Strong/index.js +0 -6
- package/lib-amd/components/presets/Caption2Strong/index.js.map +0 -1
- package/lib-amd/components/presets/Display/Display.js +0 -23
- package/lib-amd/components/presets/Display/Display.js.map +0 -1
- package/lib-amd/components/presets/Display/index.js +0 -6
- package/lib-amd/components/presets/Display/index.js.map +0 -1
- package/lib-amd/components/presets/LargeTitle/LargeTitle.js +0 -23
- package/lib-amd/components/presets/LargeTitle/LargeTitle.js.map +0 -1
- package/lib-amd/components/presets/LargeTitle/index.js +0 -6
- package/lib-amd/components/presets/LargeTitle/index.js.map +0 -1
- package/lib-amd/components/presets/Subtitle1/Subtitle1.js +0 -23
- package/lib-amd/components/presets/Subtitle1/Subtitle1.js.map +0 -1
- package/lib-amd/components/presets/Subtitle1/index.js +0 -6
- package/lib-amd/components/presets/Subtitle1/index.js.map +0 -1
- package/lib-amd/components/presets/Subtitle2/Subtitle2.js +0 -23
- package/lib-amd/components/presets/Subtitle2/Subtitle2.js.map +0 -1
- package/lib-amd/components/presets/Subtitle2/index.js +0 -6
- package/lib-amd/components/presets/Subtitle2/index.js.map +0 -1
- package/lib-amd/components/presets/Subtitle2Stronger/Subtitle2Stronger.js +0 -23
- package/lib-amd/components/presets/Subtitle2Stronger/Subtitle2Stronger.js.map +0 -1
- package/lib-amd/components/presets/Subtitle2Stronger/index.js +0 -6
- package/lib-amd/components/presets/Subtitle2Stronger/index.js.map +0 -1
- package/lib-amd/components/presets/Title1/Title1.js +0 -23
- package/lib-amd/components/presets/Title1/Title1.js.map +0 -1
- package/lib-amd/components/presets/Title1/index.js +0 -6
- package/lib-amd/components/presets/Title1/index.js.map +0 -1
- package/lib-amd/components/presets/Title2/Title2.js +0 -23
- package/lib-amd/components/presets/Title2/Title2.js.map +0 -1
- package/lib-amd/components/presets/Title2/index.js +0 -6
- package/lib-amd/components/presets/Title2/index.js.map +0 -1
- package/lib-amd/components/presets/Title3/Title3.js +0 -23
- package/lib-amd/components/presets/Title3/Title3.js.map +0 -1
- package/lib-amd/components/presets/Title3/index.js +0 -6
- package/lib-amd/components/presets/Title3/index.js.map +0 -1
- package/lib-amd/components/presets/createPreset.js +0 -19
- package/lib-amd/components/presets/createPreset.js.map +0 -1
- package/lib-amd/index.js +0 -45
- package/lib-amd/index.js.map +0 -1
@@ -1,27 +1,25 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
4
|
-
|
3
|
+
value: true
|
4
|
+
});
|
5
|
+
Object.defineProperty(exports, "Text", {
|
6
|
+
enumerable: true,
|
7
|
+
get: ()=>Text
|
5
8
|
});
|
6
|
-
|
7
|
-
const
|
8
|
-
const
|
9
|
-
const
|
10
|
-
const
|
11
|
-
const
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
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
|
9
|
+
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
10
|
+
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
11
|
+
const _useText = require("./useText");
|
12
|
+
const _renderText = require("./renderText");
|
13
|
+
const _useTextStyles = require("./useTextStyles");
|
14
|
+
const _reactSharedContexts = require("@fluentui/react-shared-contexts");
|
15
|
+
const Text = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
|
16
|
+
const state = (0, _useText.useText_unstable)(props, ref);
|
17
|
+
(0, _useTextStyles.useTextStyles_unstable)(state);
|
18
|
+
const { useTextStyles_unstable: useCustomStyles } = (0, _reactSharedContexts.useCustomStyleHooks_unstable)();
|
19
|
+
useCustomStyles(state);
|
20
|
+
return (0, _renderText.renderText_unstable)(state);
|
21
|
+
// Work around some small mismatches in inferred types which don't matter in practice
|
24
22
|
});
|
23
|
+
Text.displayName = 'Text'; //# sourceMappingURL=Text.js.map
|
25
24
|
|
26
|
-
exports.Text.displayName = 'Text';
|
27
25
|
//# sourceMappingURL=Text.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["../../../lib/components/Text/Text.js"],"sourcesContent":["import * as React from 'react';\nimport { useText_unstable } from './useText';\nimport { renderText_unstable } from './renderText';\nimport { useTextStyles_unstable } from './useTextStyles';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n/**\n * Typography and styling abstraction component used to ensure consistency of text.\n */\nexport const Text = /*#__PURE__*/React.forwardRef((props, ref) => {\n const state = useText_unstable(props, ref);\n useTextStyles_unstable(state);\n const {\n useTextStyles_unstable: useCustomStyles\n } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n return renderText_unstable(state);\n // Work around some small mismatches in inferred types which don't matter in practice\n});\n\nText.displayName = 'Text';\n//# sourceMappingURL=Text.js.map"],"names":["Text","React","forwardRef","props","ref","state","useText_unstable","useTextStyles_unstable","useCustomStyles","useCustomStyleHooks_unstable","renderText_unstable","displayName"],"mappings":";;;;+BAQaA;;aAAAA;;;6DARU;yBACU;4BACG;+BACG;qCACM;AAItC,MAAMA,OAAO,WAAW,GAAEC,OAAMC,UAAU,CAAC,CAACC,OAAOC,MAAQ;IAChE,MAAMC,QAAQC,IAAAA,yBAAgB,EAACH,OAAOC;IACtCG,IAAAA,qCAAsB,EAACF;IACvB,MAAM,EACJE,wBAAwBC,gBAAe,EACxC,GAAGC,IAAAA,iDAA4B;IAChCD,gBAAgBH;IAChB,OAAOK,IAAAA,+BAAmB,EAACL;AAC3B,qFAAqF;AACvF;AAEAL,KAAKW,WAAW,GAAG,QACnB,gCAAgC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["../../../lib/components/Text/Text.types.js"],"sourcesContent":["export {};\n//# sourceMappingURL=Text.types.js.map"],"names":[],"mappings":";;;;CACA,sCAAsC"}
|
@@ -1,12 +1,13 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
4
|
-
|
3
|
+
value: true
|
5
4
|
});
|
6
|
-
const
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
5
|
+
const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
|
6
|
+
_exportStar(require("./Text"), exports);
|
7
|
+
_exportStar(require("./Text.types"), exports);
|
8
|
+
_exportStar(require("./renderText"), exports);
|
9
|
+
_exportStar(require("./useText"), exports);
|
10
|
+
_exportStar(require("./useTextStyles"), exports);
|
11
|
+
//# sourceMappingURL=index.js.map
|
12
|
+
|
12
13
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["../../../lib/components/Text/index.js"],"sourcesContent":["export * from './Text';\nexport * from './Text.types';\nexport * from './renderText';\nexport * from './useText';\nexport * from './useTextStyles';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;oBAAc;oBACA;oBACA;oBACA;oBACA;CACd,iCAAiC"}
|
@@ -1,22 +1,17 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
4
|
-
|
3
|
+
value: true
|
4
|
+
});
|
5
|
+
Object.defineProperty(exports, "renderText_unstable", {
|
6
|
+
enumerable: true,
|
7
|
+
get: ()=>renderText_unstable
|
5
8
|
});
|
6
|
-
|
7
|
-
const
|
8
|
-
const
|
9
|
-
|
10
|
-
|
11
|
-
*/
|
12
|
-
|
13
|
-
|
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;
|
9
|
+
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
10
|
+
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
11
|
+
const _reactUtilities = require("@fluentui/react-utilities");
|
12
|
+
const renderText_unstable = (state)=>{
|
13
|
+
const { slots , slotProps } = (0, _reactUtilities.getSlots)(state);
|
14
|
+
return /*#__PURE__*/ _react.createElement(slots.root, slotProps.root);
|
15
|
+
}; //# sourceMappingURL=renderText.js.map
|
16
|
+
|
22
17
|
//# sourceMappingURL=renderText.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["../../../lib/components/Text/renderText.js"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\n/**\n * Render the final JSX of Text\n */\nexport const renderText_unstable = state => {\n const {\n slots,\n slotProps\n } = getSlots(state);\n return /*#__PURE__*/React.createElement(slots.root, slotProps.root);\n};\n//# sourceMappingURL=renderText.js.map"],"names":["renderText_unstable","state","slots","slotProps","getSlots","React","createElement","root"],"mappings":";;;;+BAKaA;;aAAAA;;;6DALU;gCACE;AAIlB,MAAMA,sBAAsBC,CAAAA,QAAS;IAC1C,MAAM,EACJC,MAAK,EACLC,UAAS,EACV,GAAGC,IAAAA,wBAAQ,EAACH;IACb,OAAO,WAAW,GAAEI,OAAMC,aAAa,CAACJ,MAAMK,IAAI,EAAEJ,UAAUI,IAAI;AACpE,GACA,sCAAsC"}
|
@@ -1,55 +1,39 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
4
|
-
|
3
|
+
value: true
|
4
|
+
});
|
5
|
+
Object.defineProperty(exports, "useText_unstable", {
|
6
|
+
enumerable: true,
|
7
|
+
get: ()=>useText_unstable
|
5
8
|
});
|
6
|
-
|
7
|
-
const
|
8
|
-
|
9
|
-
|
10
|
-
|
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
|
-
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;
|
9
|
+
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
10
|
+
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
11
|
+
const _reactUtilities = require("@fluentui/react-utilities");
|
12
|
+
const useText_unstable = (props, ref)=>{
|
13
|
+
const { wrap , truncate , block , italic , underline , strikethrough , size , font , weight , align } = props;
|
14
|
+
var _props_as;
|
15
|
+
const as = (_props_as = props.as) !== null && _props_as !== void 0 ? _props_as : 'span';
|
16
|
+
const state = {
|
17
|
+
align: align !== null && align !== void 0 ? align : 'start',
|
18
|
+
block: block !== null && block !== void 0 ? block : false,
|
19
|
+
font: font !== null && font !== void 0 ? font : 'base',
|
20
|
+
italic: italic !== null && italic !== void 0 ? italic : false,
|
21
|
+
size: size !== null && size !== void 0 ? size : 300,
|
22
|
+
strikethrough: strikethrough !== null && strikethrough !== void 0 ? strikethrough : false,
|
23
|
+
truncate: truncate !== null && truncate !== void 0 ? truncate : false,
|
24
|
+
underline: underline !== null && underline !== void 0 ? underline : false,
|
25
|
+
weight: weight !== null && weight !== void 0 ? weight : 'regular',
|
26
|
+
wrap: wrap !== null && wrap !== void 0 ? wrap : true,
|
27
|
+
components: {
|
28
|
+
root: 'span'
|
29
|
+
},
|
30
|
+
root: (0, _reactUtilities.getNativeElementProps)(as, {
|
31
|
+
ref,
|
32
|
+
...props,
|
33
|
+
as
|
34
|
+
})
|
35
|
+
};
|
36
|
+
return state;
|
37
|
+
}; //# sourceMappingURL=useText.js.map
|
38
|
+
|
55
39
|
//# sourceMappingURL=useText.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["../../../lib/components/Text/useText.js"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\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, ref) => {\n const {\n wrap,\n truncate,\n block,\n italic,\n underline,\n strikethrough,\n size,\n font,\n weight,\n align\n } = props;\n var _props_as;\n const as = (_props_as = props.as) !== null && _props_as !== void 0 ? _props_as : 'span';\n const state = {\n align: align !== null && align !== void 0 ? align : 'start',\n block: block !== null && block !== void 0 ? block : false,\n font: font !== null && font !== void 0 ? font : 'base',\n italic: italic !== null && italic !== void 0 ? italic : false,\n size: size !== null && size !== void 0 ? size : 300,\n strikethrough: strikethrough !== null && strikethrough !== void 0 ? strikethrough : false,\n truncate: truncate !== null && truncate !== void 0 ? truncate : false,\n underline: underline !== null && underline !== void 0 ? underline : false,\n weight: weight !== null && weight !== void 0 ? weight : 'regular',\n wrap: wrap !== null && wrap !== void 0 ? wrap : true,\n components: {\n root: 'span'\n },\n root: getNativeElementProps(as, {\n ref,\n ...props,\n as\n })\n };\n return state;\n};\n//# sourceMappingURL=useText.js.map"],"names":["useText_unstable","props","ref","wrap","truncate","block","italic","underline","strikethrough","size","font","weight","align","_props_as","as","state","components","root","getNativeElementProps"],"mappings":";;;;+BAWaA;;aAAAA;;;6DAXU;gCACe;AAU/B,MAAMA,mBAAmB,CAACC,OAAOC,MAAQ;IAC9C,MAAM,EACJC,KAAI,EACJC,SAAQ,EACRC,MAAK,EACLC,OAAM,EACNC,UAAS,EACTC,cAAa,EACbC,KAAI,EACJC,KAAI,EACJC,OAAM,EACNC,MAAK,EACN,GAAGX;IACJ,IAAIY;IACJ,MAAMC,KAAK,AAACD,CAAAA,YAAYZ,MAAMa,EAAE,AAAD,MAAO,IAAI,IAAID,cAAc,KAAK,IAAIA,YAAY,MAAM;IACvF,MAAME,QAAQ;QACZH,OAAOA,UAAU,IAAI,IAAIA,UAAU,KAAK,IAAIA,QAAQ,OAAO;QAC3DP,OAAOA,UAAU,IAAI,IAAIA,UAAU,KAAK,IAAIA,QAAQ,KAAK;QACzDK,MAAMA,SAAS,IAAI,IAAIA,SAAS,KAAK,IAAIA,OAAO,MAAM;QACtDJ,QAAQA,WAAW,IAAI,IAAIA,WAAW,KAAK,IAAIA,SAAS,KAAK;QAC7DG,MAAMA,SAAS,IAAI,IAAIA,SAAS,KAAK,IAAIA,OAAO,GAAG;QACnDD,eAAeA,kBAAkB,IAAI,IAAIA,kBAAkB,KAAK,IAAIA,gBAAgB,KAAK;QACzFJ,UAAUA,aAAa,IAAI,IAAIA,aAAa,KAAK,IAAIA,WAAW,KAAK;QACrEG,WAAWA,cAAc,IAAI,IAAIA,cAAc,KAAK,IAAIA,YAAY,KAAK;QACzEI,QAAQA,WAAW,IAAI,IAAIA,WAAW,KAAK,IAAIA,SAAS,SAAS;QACjER,MAAMA,SAAS,IAAI,IAAIA,SAAS,KAAK,IAAIA,OAAO,IAAI;QACpDa,YAAY;YACVC,MAAM;QACR;QACAA,MAAMC,IAAAA,qCAAqB,EAACJ,IAAI;YAC9BZ;YACA,GAAGD,KAAK;YACRa;QACF;IACF;IACA,OAAOC;AACT,GACA,mCAAmC"}
|
@@ -1,123 +1,172 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
4
|
-
|
3
|
+
value: true
|
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
|
5
14
|
});
|
6
|
-
|
7
|
-
const
|
8
|
-
|
9
|
-
exports.textClassNames = {
|
10
|
-
root: 'fui-Text'
|
15
|
+
const _react = require("@griffel/react");
|
16
|
+
const textClassNames = {
|
17
|
+
root: 'fui-Text'
|
11
18
|
};
|
12
19
|
/**
|
13
20
|
* Styles for the root slot
|
14
|
-
*/
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
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
|
-
}
|
21
|
+
*/ const useStyles = /*#__PURE__*/ (0, _react["__styles"])({
|
22
|
+
root: {
|
23
|
+
Bahqtrf: "fk6fouc",
|
24
|
+
Be2twd7: "fkhj508",
|
25
|
+
Bg96gwp: "f1i3iumi",
|
26
|
+
Bhrd7zp: "figsok6",
|
27
|
+
fsow6f: "fpgzoln",
|
28
|
+
mc9l5x: "f1w7gpdv",
|
29
|
+
Huce71: "f6juhto",
|
30
|
+
B68tc82: "f1mtd64y",
|
31
|
+
Bmxbyg5: "f1y7q3j9",
|
32
|
+
ygn44y: "f2jf649"
|
33
|
+
},
|
34
|
+
nowrap: {
|
35
|
+
Huce71: "fz5stix",
|
36
|
+
B68tc82: "f1p9o1ba",
|
37
|
+
Bmxbyg5: "f1sil6mw"
|
38
|
+
},
|
39
|
+
truncate: {
|
40
|
+
ygn44y: "f1cmbuwj"
|
41
|
+
},
|
42
|
+
block: {
|
43
|
+
mc9l5x: "ftgm304"
|
44
|
+
},
|
45
|
+
italic: {
|
46
|
+
B80ckks: "f1j4dglz"
|
47
|
+
},
|
48
|
+
underline: {
|
49
|
+
w71qe1: "f13mvf36"
|
50
|
+
},
|
51
|
+
strikethrough: {
|
52
|
+
w71qe1: "fv5q2k7"
|
53
|
+
},
|
54
|
+
strikethroughUnderline: {
|
55
|
+
w71qe1: "f1drk4o6"
|
56
|
+
},
|
57
|
+
base100: {
|
58
|
+
Be2twd7: "f13mqy1h",
|
59
|
+
Bg96gwp: "fcpl73t"
|
60
|
+
},
|
61
|
+
base200: {
|
62
|
+
Be2twd7: "fy9rknc",
|
63
|
+
Bg96gwp: "fwrc4pm"
|
64
|
+
},
|
65
|
+
base400: {
|
66
|
+
Be2twd7: "fod5ikn",
|
67
|
+
Bg96gwp: "faaz57k"
|
68
|
+
},
|
69
|
+
base500: {
|
70
|
+
Be2twd7: "f1pp30po",
|
71
|
+
Bg96gwp: "f106mvju"
|
72
|
+
},
|
73
|
+
base600: {
|
74
|
+
Be2twd7: "f1x0m3f5",
|
75
|
+
Bg96gwp: "fb86gi6"
|
76
|
+
},
|
77
|
+
hero700: {
|
78
|
+
Be2twd7: "fojgt09",
|
79
|
+
Bg96gwp: "fcen8rp"
|
80
|
+
},
|
81
|
+
hero800: {
|
82
|
+
Be2twd7: "fccw675",
|
83
|
+
Bg96gwp: "f1ebx5kk"
|
84
|
+
},
|
85
|
+
hero900: {
|
86
|
+
Be2twd7: "f15afnhw",
|
87
|
+
Bg96gwp: "fr3w3wp"
|
88
|
+
},
|
89
|
+
hero1000: {
|
90
|
+
Be2twd7: "fpyltcb",
|
91
|
+
Bg96gwp: "f1ivgwrt"
|
92
|
+
},
|
93
|
+
monospace: {
|
94
|
+
Bahqtrf: "f1fedwem"
|
95
|
+
},
|
96
|
+
numeric: {
|
97
|
+
Bahqtrf: "f1uq0ln5"
|
98
|
+
},
|
99
|
+
weightMedium: {
|
100
|
+
Bhrd7zp: "fdj6btp"
|
101
|
+
},
|
102
|
+
weightSemibold: {
|
103
|
+
Bhrd7zp: "fl43uef"
|
104
|
+
},
|
105
|
+
weightBold: {
|
106
|
+
Bhrd7zp: "flh3ekv"
|
107
|
+
},
|
108
|
+
alignCenter: {
|
109
|
+
fsow6f: "f17mccla"
|
110
|
+
},
|
111
|
+
alignEnd: {
|
112
|
+
fsow6f: "f12ymhq5"
|
113
|
+
},
|
114
|
+
alignJustify: {
|
115
|
+
fsow6f: "f1j59e10"
|
116
|
+
}
|
111
117
|
}, {
|
112
|
-
|
118
|
+
d: [
|
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
|
+
]
|
113
165
|
});
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
return state;
|
121
|
-
};
|
122
|
-
exports.useTextStyles_unstable = useTextStyles_unstable;
|
166
|
+
const useTextStyles_unstable = (state)=>{
|
167
|
+
const styles = useStyles();
|
168
|
+
state.root.className = (0, _react.mergeClasses)(textClassNames.root, styles.root, state.wrap === false && styles.nowrap, state.truncate && styles.truncate, state.block && styles.block, state.italic && styles.italic, state.underline && styles.underline, state.strikethrough && styles.strikethrough, state.underline && state.strikethrough && styles.strikethroughUnderline, state.size === 100 && styles.base100, state.size === 200 && styles.base200, state.size === 400 && styles.base400, state.size === 500 && styles.base500, state.size === 600 && styles.base600, state.size === 700 && styles.hero700, state.size === 800 && styles.hero800, state.size === 900 && styles.hero900, state.size === 1000 && styles.hero1000, state.font === 'monospace' && styles.monospace, state.font === 'numeric' && styles.numeric, state.weight === 'medium' && styles.weightMedium, state.weight === 'semibold' && styles.weightSemibold, state.weight === 'bold' && styles.weightBold, state.align === 'center' && styles.alignCenter, state.align === 'end' && styles.alignEnd, state.align === 'justify' && styles.alignJustify, state.root.className);
|
169
|
+
return state;
|
170
|
+
}; //# sourceMappingURL=useTextStyles.js.map
|
171
|
+
|
123
172
|
//# sourceMappingURL=useTextStyles.js.map
|