@fluentui/react-text 0.0.0-nightly-20221227-0422.1 → 0.0.0-nightly-20221229-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/components/Body1/Body1.js +0 -3
- package/lib/components/Body1/Body1.js.map +1 -1
- package/lib/components/Caption1/Caption1.js +0 -3
- package/lib/components/Caption1/Caption1.js.map +1 -1
- package/lib/components/Caption2/Caption2.js +0 -3
- package/lib/components/Caption2/Caption2.js.map +1 -1
- package/lib/components/Display/Display.js +0 -3
- package/lib/components/Display/Display.js.map +1 -1
- package/lib/components/LargeTitle/LargeTitle.js +0 -3
- package/lib/components/LargeTitle/LargeTitle.js.map +1 -1
- package/lib/components/Subtitle1/Subtitle1.js +0 -3
- package/lib/components/Subtitle1/Subtitle1.js.map +1 -1
- package/lib/components/Subtitle2/Subtitle2.js +0 -3
- package/lib/components/Subtitle2/Subtitle2.js.map +1 -1
- package/lib/components/Text/Text.js +3 -2
- package/lib/components/Text/Text.js.map +1 -1
- package/lib/components/Text/renderText.js +2 -2
- package/lib/components/Text/renderText.js.map +1 -1
- package/lib/components/Text/useText.js +0 -2
- package/lib/components/Text/useText.js.map +1 -1
- package/lib/components/Text/useTextStyles.js +0 -3
- package/lib/components/Text/useTextStyles.js.map +1 -1
- package/lib/components/Title1/Title1.js +0 -3
- package/lib/components/Title1/Title1.js.map +1 -1
- package/lib/components/Title2/Title2.js +0 -3
- package/lib/components/Title2/Title2.js.map +1 -1
- package/lib/components/Title3/Title3.js +0 -3
- package/lib/components/Title3/Title3.js.map +1 -1
- package/lib/components/wrapper.js.map +1 -1
- package/lib-commonjs/Body1.js +0 -2
- package/lib-commonjs/Body1.js.map +1 -1
- package/lib-commonjs/Caption1.js +0 -2
- package/lib-commonjs/Caption1.js.map +1 -1
- package/lib-commonjs/Caption2.js +0 -2
- package/lib-commonjs/Caption2.js.map +1 -1
- package/lib-commonjs/Display.js +0 -2
- package/lib-commonjs/Display.js.map +1 -1
- package/lib-commonjs/LargeTitle.js +0 -2
- package/lib-commonjs/LargeTitle.js.map +1 -1
- package/lib-commonjs/Subtitle1.js +0 -2
- package/lib-commonjs/Subtitle1.js.map +1 -1
- package/lib-commonjs/Subtitle2.js +0 -2
- package/lib-commonjs/Subtitle2.js.map +1 -1
- package/lib-commonjs/Text.js +0 -2
- package/lib-commonjs/Text.js.map +1 -1
- package/lib-commonjs/Title1.js +0 -2
- package/lib-commonjs/Title1.js.map +1 -1
- package/lib-commonjs/Title2.js +0 -2
- package/lib-commonjs/Title2.js.map +1 -1
- package/lib-commonjs/Title3.js +0 -2
- package/lib-commonjs/Title3.js.map +1 -1
- package/lib-commonjs/components/Body1/Body1.js +0 -7
- package/lib-commonjs/components/Body1/Body1.js.map +1 -1
- package/lib-commonjs/components/Body1/index.js +0 -2
- package/lib-commonjs/components/Body1/index.js.map +1 -1
- package/lib-commonjs/components/Caption1/Caption1.js +0 -7
- package/lib-commonjs/components/Caption1/Caption1.js.map +1 -1
- package/lib-commonjs/components/Caption1/index.js +0 -2
- package/lib-commonjs/components/Caption1/index.js.map +1 -1
- package/lib-commonjs/components/Caption2/Caption2.js +0 -7
- package/lib-commonjs/components/Caption2/Caption2.js.map +1 -1
- package/lib-commonjs/components/Caption2/index.js +0 -2
- package/lib-commonjs/components/Caption2/index.js.map +1 -1
- package/lib-commonjs/components/Display/Display.js +0 -7
- package/lib-commonjs/components/Display/Display.js.map +1 -1
- package/lib-commonjs/components/Display/index.js +0 -2
- package/lib-commonjs/components/Display/index.js.map +1 -1
- package/lib-commonjs/components/LargeTitle/LargeTitle.js +0 -7
- package/lib-commonjs/components/LargeTitle/LargeTitle.js.map +1 -1
- package/lib-commonjs/components/LargeTitle/index.js +0 -2
- package/lib-commonjs/components/LargeTitle/index.js.map +1 -1
- package/lib-commonjs/components/Subtitle1/Subtitle1.js +0 -7
- package/lib-commonjs/components/Subtitle1/Subtitle1.js.map +1 -1
- package/lib-commonjs/components/Subtitle1/index.js +0 -2
- package/lib-commonjs/components/Subtitle1/index.js.map +1 -1
- package/lib-commonjs/components/Subtitle2/Subtitle2.js +0 -7
- package/lib-commonjs/components/Subtitle2/Subtitle2.js.map +1 -1
- package/lib-commonjs/components/Subtitle2/index.js +0 -2
- package/lib-commonjs/components/Subtitle2/index.js.map +1 -1
- package/lib-commonjs/components/Text/Text.js +3 -7
- package/lib-commonjs/components/Text/Text.js.map +1 -1
- package/lib-commonjs/components/Text/Text.types.js.map +1 -1
- package/lib-commonjs/components/Text/index.js +0 -6
- package/lib-commonjs/components/Text/index.js.map +1 -1
- package/lib-commonjs/components/Text/renderText.js +2 -6
- package/lib-commonjs/components/Text/renderText.js.map +1 -1
- package/lib-commonjs/components/Text/useText.js +0 -5
- package/lib-commonjs/components/Text/useText.js.map +1 -1
- package/lib-commonjs/components/Text/useTextStyles.js +0 -7
- package/lib-commonjs/components/Text/useTextStyles.js.map +1 -1
- package/lib-commonjs/components/Title1/Title1.js +0 -7
- package/lib-commonjs/components/Title1/Title1.js.map +1 -1
- package/lib-commonjs/components/Title1/index.js +0 -2
- package/lib-commonjs/components/Title1/index.js.map +1 -1
- package/lib-commonjs/components/Title2/Title2.js +0 -7
- package/lib-commonjs/components/Title2/Title2.js.map +1 -1
- package/lib-commonjs/components/Title2/index.js +0 -2
- package/lib-commonjs/components/Title2/index.js.map +1 -1
- package/lib-commonjs/components/Title3/Title3.js +0 -7
- package/lib-commonjs/components/Title3/Title3.js.map +1 -1
- package/lib-commonjs/components/Title3/index.js +0 -2
- package/lib-commonjs/components/Title3/index.js.map +1 -1
- package/lib-commonjs/components/wrapper.js +0 -5
- package/lib-commonjs/components/wrapper.js.map +1 -1
- package/lib-commonjs/index.js +0 -22
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +4 -4
@@ -4,23 +4,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.renderText_unstable = void 0;
|
7
|
-
|
8
7
|
const React = /*#__PURE__*/require("react");
|
9
|
-
|
10
8
|
const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
|
11
9
|
/**
|
12
10
|
* Render the final JSX of Text
|
13
11
|
*/
|
14
|
-
|
15
|
-
|
16
12
|
const renderText_unstable = state => {
|
17
13
|
const {
|
18
14
|
slots,
|
19
15
|
slotProps
|
20
16
|
} = react_utilities_1.getSlots(state);
|
21
|
-
return React.createElement(slots.root, {
|
17
|
+
return React.createElement(slots.root, {
|
18
|
+
...slotProps.root
|
22
19
|
});
|
23
20
|
};
|
24
|
-
|
25
21
|
exports.renderText_unstable = renderText_unstable;
|
26
22
|
//# sourceMappingURL=renderText.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
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"]}
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.useText_unstable = void 0;
|
7
|
-
|
8
7
|
const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
|
9
8
|
/**
|
10
9
|
* Create the state required to render Text.
|
@@ -15,11 +14,8 @@ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
|
|
15
14
|
* @param props - props from this instance of Text
|
16
15
|
* @param ref - reference to root HTMLElement of Text
|
17
16
|
*/
|
18
|
-
|
19
|
-
|
20
17
|
const useText_unstable = (props, ref) => {
|
21
18
|
var _a;
|
22
|
-
|
23
19
|
const {
|
24
20
|
wrap,
|
25
21
|
truncate,
|
@@ -55,6 +51,5 @@ const useText_unstable = (props, ref) => {
|
|
55
51
|
};
|
56
52
|
return state;
|
57
53
|
};
|
58
|
-
|
59
54
|
exports.useText_unstable = useText_unstable;
|
60
55
|
//# sourceMappingURL=useText.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
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"]}
|
@@ -4,18 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.useTextStyles_unstable = exports.textClassNames = void 0;
|
7
|
-
|
8
7
|
const react_1 = /*#__PURE__*/require("@griffel/react");
|
9
|
-
|
10
8
|
const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
|
11
|
-
|
12
9
|
exports.textClassNames = {
|
13
10
|
root: 'fui-Text'
|
14
11
|
};
|
15
12
|
/**
|
16
13
|
* Styles for the root slot
|
17
14
|
*/
|
18
|
-
|
19
15
|
const useStyles = /*#__PURE__*/react_1.__styles({
|
20
16
|
"root": {
|
21
17
|
"Bahqtrf": "fk6fouc",
|
@@ -118,13 +114,10 @@ const useStyles = /*#__PURE__*/react_1.__styles({
|
|
118
114
|
/**
|
119
115
|
* Apply styling to the Text slots based on the state
|
120
116
|
*/
|
121
|
-
|
122
|
-
|
123
117
|
const useTextStyles_unstable = state => {
|
124
118
|
const styles = useStyles();
|
125
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);
|
126
120
|
return state;
|
127
121
|
};
|
128
|
-
|
129
122
|
exports.useTextStyles_unstable = useTextStyles_unstable;
|
130
123
|
//# sourceMappingURL=useTextStyles.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
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"]}
|
@@ -4,20 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.Title1 = exports.title1ClassNames = void 0;
|
7
|
-
|
8
7
|
const react_1 = /*#__PURE__*/require("@griffel/react");
|
9
|
-
|
10
8
|
const wrapper_1 = /*#__PURE__*/require("../wrapper");
|
11
|
-
|
12
9
|
const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
|
13
|
-
|
14
10
|
exports.title1ClassNames = {
|
15
11
|
root: 'fui-Title1'
|
16
12
|
};
|
17
13
|
/**
|
18
14
|
* Styles for the root slot
|
19
15
|
*/
|
20
|
-
|
21
16
|
const useStyles = /*#__PURE__*/react_1.__styles({
|
22
17
|
"root": {
|
23
18
|
"Bahqtrf": "fk6fouc",
|
@@ -31,8 +26,6 @@ const useStyles = /*#__PURE__*/react_1.__styles({
|
|
31
26
|
/**
|
32
27
|
* Text wrapper component for the Title 1 typography variant
|
33
28
|
*/
|
34
|
-
|
35
|
-
|
36
29
|
exports.Title1 = /*#__PURE__*/wrapper_1.createWrapper({
|
37
30
|
useStyles,
|
38
31
|
className: exports.title1ClassNames.root,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"mappings":";;;;;;AACA;AACA;AAGA;AAEaA,wBAAgB,GAA8B;EACzDC,IAAI,EAAE;CACP;AAED;;;AAGA,MAAMC,SAAS,gBAAGC,gBAAU;EAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAE1B;AAEF;;;AAGaH,cAAM,gBAAwCI,uBAAa,CAAC;EACvEF,SAAS;EACTG,SAAS,EAAEL,wBAAgB,CAACC,IAAI;EAChCK,WAAW,EAAE;CACd,CAAC","names":["exports","root","useStyles","react_1","wrapper_1","className","displayName"],"sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-text/src/components/Title1/Title1.tsx"],"sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\nexport const title1ClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Title1',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.title1,\n});\n\n/**\n * Text wrapper component for the Title 1 typography variant\n */\nexport const Title1: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: title1ClassNames.root,\n displayName: 'Title1',\n});\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../../../../../../../packages/react-components/react-text/src/components/Title1/index.ts"],"
|
1
|
+
{"version":3,"mappings":";;;;;;AAAAA","names":["tslib_1"],"sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-text/src/components/Title1/index.ts"],"sourcesContent":["export * from './Title1';\n"]}
|
@@ -4,20 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.Title2 = exports.title2ClassNames = void 0;
|
7
|
-
|
8
7
|
const react_1 = /*#__PURE__*/require("@griffel/react");
|
9
|
-
|
10
8
|
const wrapper_1 = /*#__PURE__*/require("../wrapper");
|
11
|
-
|
12
9
|
const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
|
13
|
-
|
14
10
|
exports.title2ClassNames = {
|
15
11
|
root: 'fui-Title2'
|
16
12
|
};
|
17
13
|
/**
|
18
14
|
* Styles for the root slot
|
19
15
|
*/
|
20
|
-
|
21
16
|
const useStyles = /*#__PURE__*/react_1.__styles({
|
22
17
|
"root": {
|
23
18
|
"Bahqtrf": "fk6fouc",
|
@@ -31,8 +26,6 @@ const useStyles = /*#__PURE__*/react_1.__styles({
|
|
31
26
|
/**
|
32
27
|
* Text wrapper component for the Title 2 typography variant
|
33
28
|
*/
|
34
|
-
|
35
|
-
|
36
29
|
exports.Title2 = /*#__PURE__*/wrapper_1.createWrapper({
|
37
30
|
useStyles,
|
38
31
|
className: exports.title2ClassNames.root,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"mappings":";;;;;;AACA;AACA;AAGA;AAEaA,wBAAgB,GAA8B;EACzDC,IAAI,EAAE;CACP;AAED;;;AAGA,MAAMC,SAAS,gBAAGC,gBAAU;EAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAE1B;AAEF;;;AAGaH,cAAM,gBAAwCI,uBAAa,CAAC;EACvEF,SAAS;EACTG,SAAS,EAAEL,wBAAgB,CAACC,IAAI;EAChCK,WAAW,EAAE;CACd,CAAC","names":["exports","root","useStyles","react_1","wrapper_1","className","displayName"],"sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-text/src/components/Title2/Title2.tsx"],"sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\nexport const title2ClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Title2',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.title2,\n});\n\n/**\n * Text wrapper component for the Title 2 typography variant\n */\nexport const Title2: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: title2ClassNames.root,\n displayName: 'Title2',\n});\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../../../../../../../packages/react-components/react-text/src/components/Title2/index.ts"],"
|
1
|
+
{"version":3,"mappings":";;;;;;AAAAA","names":["tslib_1"],"sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-text/src/components/Title2/index.ts"],"sourcesContent":["export * from './Title2';\n"]}
|
@@ -4,20 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.Title3 = exports.title3ClassNames = void 0;
|
7
|
-
|
8
7
|
const react_1 = /*#__PURE__*/require("@griffel/react");
|
9
|
-
|
10
8
|
const wrapper_1 = /*#__PURE__*/require("../wrapper");
|
11
|
-
|
12
9
|
const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
|
13
|
-
|
14
10
|
exports.title3ClassNames = {
|
15
11
|
root: 'fui-Title3'
|
16
12
|
};
|
17
13
|
/**
|
18
14
|
* Styles for the root slot
|
19
15
|
*/
|
20
|
-
|
21
16
|
const useStyles = /*#__PURE__*/react_1.__styles({
|
22
17
|
"root": {
|
23
18
|
"Bahqtrf": "fk6fouc",
|
@@ -31,8 +26,6 @@ const useStyles = /*#__PURE__*/react_1.__styles({
|
|
31
26
|
/**
|
32
27
|
* Text wrapper component for the Title 3 typography variant
|
33
28
|
*/
|
34
|
-
|
35
|
-
|
36
29
|
exports.Title3 = /*#__PURE__*/wrapper_1.createWrapper({
|
37
30
|
useStyles,
|
38
31
|
className: exports.title3ClassNames.root,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"mappings":";;;;;;AACA;AACA;AAGA;AAEaA,wBAAgB,GAA8B;EACzDC,IAAI,EAAE;CACP;AAED;;;AAGA,MAAMC,SAAS,gBAAGC,gBAAU;EAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAE1B;AAEF;;;AAGaH,cAAM,gBAAwCI,uBAAa,CAAC;EACvEF,SAAS;EACTG,SAAS,EAAEL,wBAAgB,CAACC,IAAI;EAChCK,WAAW,EAAE;CACd,CAAC","names":["exports","root","useStyles","react_1","wrapper_1","className","displayName"],"sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-text/src/components/Title3/Title3.tsx"],"sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\nexport const title3ClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Title3',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.title3,\n});\n\n/**\n * Text wrapper component for the Title 3 typography variant\n */\nexport const Title3: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: title3ClassNames.root,\n displayName: 'Title3',\n});\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../../../../../../../packages/react-components/react-text/src/components/Title3/index.ts"],"
|
1
|
+
{"version":3,"mappings":";;;;;;AAAAA","names":["tslib_1"],"sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-text/src/components/Title3/index.ts"],"sourcesContent":["export * from './Title3';\n"]}
|
@@ -4,13 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.createWrapper = void 0;
|
7
|
-
|
8
7
|
const React = /*#__PURE__*/require("react");
|
9
|
-
|
10
8
|
const react_1 = /*#__PURE__*/require("@griffel/react");
|
11
|
-
|
12
9
|
const Text_1 = /*#__PURE__*/require("../Text");
|
13
|
-
|
14
10
|
function createWrapper(options) {
|
15
11
|
const {
|
16
12
|
useStyles,
|
@@ -27,6 +23,5 @@ function createWrapper(options) {
|
|
27
23
|
Wrapper.displayName = displayName;
|
28
24
|
return Wrapper;
|
29
25
|
}
|
30
|
-
|
31
26
|
exports.createWrapper = createWrapper;
|
32
27
|
//# sourceMappingURL=wrapper.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"mappings":";;;;;;AAAA;AACA;AACA;AAMA,SAAgBA,aAAa,CAACC,OAI7B;EACC,MAAM;IAAEC,SAAS;IAAEC,SAAS;IAAEC;EAAW,CAAE,GAAGH,OAAO;EACrD,MAAMI,OAAO,GAA0CC,KAAK,CAACC,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAI;IACrF,MAAMC,MAAM,GAAGR,SAAS,EAAE;IAC1B,MAAMS,KAAK,GAAGC,uBAAgB,CAACJ,KAAkB,EAAEC,GAAG,CAAC;IAEvDG,6BAAsB,CAACD,KAAK,CAAC;IAE7BA,KAAK,CAACE,IAAI,CAACV,SAAS,GAAGW,oBAAY,CAACX,SAAS,EAAEQ,KAAK,CAACE,IAAI,CAACV,SAAS,EAAEO,MAAM,CAACG,IAAI,EAAEL,KAAK,CAACL,SAAS,CAAC;IAElG,OAAOS,0BAAmB,CAACD,KAAK,CAAC;EACnC,CAAC,CAAC;EACFN,OAAO,CAACD,WAAW,GAAGA,WAAW;EAEjC,OAAOC,OAAO;AAChB;AAnBAU","names":["createWrapper","options","useStyles","className","displayName","Wrapper","React","forwardRef","props","ref","styles","state","Text_1","root","react_1","exports"],"sourceRoot":"","sources":["../../../../../../../../packages/react-components/react-text/src/components/wrapper.tsx"],"sourcesContent":["import * as React from 'react';\nimport { mergeClasses } from '@griffel/react';\nimport { renderText_unstable, useText_unstable, useTextStyles_unstable } from '../Text';\nimport type { TextProps } from '../Text';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\nexport type TextWrapperProps = Omit<TextProps, 'font' | 'size'>;\n\nexport function createWrapper(options: {\n className: string;\n displayName: string;\n useStyles: () => Record<'root', string>;\n}): React.FunctionComponent<TextWrapperProps> {\n const { useStyles, className, displayName } = options;\n const Wrapper: ForwardRefComponent<TextWrapperProps> = React.forwardRef((props, ref) => {\n const styles = useStyles();\n const state = useText_unstable(props as TextProps, ref);\n\n useTextStyles_unstable(state);\n\n state.root.className = mergeClasses(className, state.root.className, styles.root, props.className);\n\n return renderText_unstable(state);\n });\n Wrapper.displayName = displayName;\n\n return Wrapper;\n}\n"]}
|
package/lib-commonjs/index.js
CHANGED
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.caption2ClassNames = exports.Caption2 = exports.caption1ClassNames = exports.Caption1 = exports.body1ClassNames = exports.Body1 = exports.subtitle2ClassNames = exports.Subtitle2 = exports.subtitle1ClassNames = exports.Subtitle1 = exports.title3ClassNames = exports.Title3 = exports.title2ClassNames = exports.Title2 = exports.title1ClassNames = exports.Title1 = exports.largeTitleClassNames = exports.LargeTitle = exports.displayClassNames = exports.Display = exports.useText_unstable = exports.useTextStyles_unstable = exports.textClassNames = exports.renderText_unstable = exports.Text = void 0;
|
7
|
-
|
8
7
|
var Text_1 = /*#__PURE__*/require("./Text");
|
9
|
-
|
10
8
|
Object.defineProperty(exports, "Text", {
|
11
9
|
enumerable: true,
|
12
10
|
get: function () {
|
@@ -37,9 +35,7 @@ Object.defineProperty(exports, "useText_unstable", {
|
|
37
35
|
return Text_1.useText_unstable;
|
38
36
|
}
|
39
37
|
});
|
40
|
-
|
41
38
|
var Display_1 = /*#__PURE__*/require("./Display");
|
42
|
-
|
43
39
|
Object.defineProperty(exports, "Display", {
|
44
40
|
enumerable: true,
|
45
41
|
get: function () {
|
@@ -52,9 +48,7 @@ Object.defineProperty(exports, "displayClassNames", {
|
|
52
48
|
return Display_1.displayClassNames;
|
53
49
|
}
|
54
50
|
});
|
55
|
-
|
56
51
|
var LargeTitle_1 = /*#__PURE__*/require("./LargeTitle");
|
57
|
-
|
58
52
|
Object.defineProperty(exports, "LargeTitle", {
|
59
53
|
enumerable: true,
|
60
54
|
get: function () {
|
@@ -67,9 +61,7 @@ Object.defineProperty(exports, "largeTitleClassNames", {
|
|
67
61
|
return LargeTitle_1.largeTitleClassNames;
|
68
62
|
}
|
69
63
|
});
|
70
|
-
|
71
64
|
var Title1_1 = /*#__PURE__*/require("./Title1");
|
72
|
-
|
73
65
|
Object.defineProperty(exports, "Title1", {
|
74
66
|
enumerable: true,
|
75
67
|
get: function () {
|
@@ -82,9 +74,7 @@ Object.defineProperty(exports, "title1ClassNames", {
|
|
82
74
|
return Title1_1.title1ClassNames;
|
83
75
|
}
|
84
76
|
});
|
85
|
-
|
86
77
|
var Title2_1 = /*#__PURE__*/require("./Title2");
|
87
|
-
|
88
78
|
Object.defineProperty(exports, "Title2", {
|
89
79
|
enumerable: true,
|
90
80
|
get: function () {
|
@@ -97,9 +87,7 @@ Object.defineProperty(exports, "title2ClassNames", {
|
|
97
87
|
return Title2_1.title2ClassNames;
|
98
88
|
}
|
99
89
|
});
|
100
|
-
|
101
90
|
var Title3_1 = /*#__PURE__*/require("./Title3");
|
102
|
-
|
103
91
|
Object.defineProperty(exports, "Title3", {
|
104
92
|
enumerable: true,
|
105
93
|
get: function () {
|
@@ -112,9 +100,7 @@ Object.defineProperty(exports, "title3ClassNames", {
|
|
112
100
|
return Title3_1.title3ClassNames;
|
113
101
|
}
|
114
102
|
});
|
115
|
-
|
116
103
|
var Subtitle1_1 = /*#__PURE__*/require("./Subtitle1");
|
117
|
-
|
118
104
|
Object.defineProperty(exports, "Subtitle1", {
|
119
105
|
enumerable: true,
|
120
106
|
get: function () {
|
@@ -127,9 +113,7 @@ Object.defineProperty(exports, "subtitle1ClassNames", {
|
|
127
113
|
return Subtitle1_1.subtitle1ClassNames;
|
128
114
|
}
|
129
115
|
});
|
130
|
-
|
131
116
|
var Subtitle2_1 = /*#__PURE__*/require("./Subtitle2");
|
132
|
-
|
133
117
|
Object.defineProperty(exports, "Subtitle2", {
|
134
118
|
enumerable: true,
|
135
119
|
get: function () {
|
@@ -142,9 +126,7 @@ Object.defineProperty(exports, "subtitle2ClassNames", {
|
|
142
126
|
return Subtitle2_1.subtitle2ClassNames;
|
143
127
|
}
|
144
128
|
});
|
145
|
-
|
146
129
|
var Body1_1 = /*#__PURE__*/require("./Body1");
|
147
|
-
|
148
130
|
Object.defineProperty(exports, "Body1", {
|
149
131
|
enumerable: true,
|
150
132
|
get: function () {
|
@@ -157,9 +139,7 @@ Object.defineProperty(exports, "body1ClassNames", {
|
|
157
139
|
return Body1_1.body1ClassNames;
|
158
140
|
}
|
159
141
|
});
|
160
|
-
|
161
142
|
var Caption1_1 = /*#__PURE__*/require("./Caption1");
|
162
|
-
|
163
143
|
Object.defineProperty(exports, "Caption1", {
|
164
144
|
enumerable: true,
|
165
145
|
get: function () {
|
@@ -172,9 +152,7 @@ Object.defineProperty(exports, "caption1ClassNames", {
|
|
172
152
|
return Caption1_1.caption1ClassNames;
|
173
153
|
}
|
174
154
|
});
|
175
|
-
|
176
155
|
var Caption2_1 = /*#__PURE__*/require("./Caption2");
|
177
|
-
|
178
156
|
Object.defineProperty(exports, "Caption2", {
|
179
157
|
enumerable: true,
|
180
158
|
get: function () {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"mappings":";;;;;;AAAA;AAASA;EAAAC;EAAAC;IAAA,kBAAI;EAAA;AAAA;AAAEF;EAAAC;EAAAC;IAAA,iCAAmB;EAAA;AAAA;AAAEF;EAAAC;EAAAC;IAAA,4BAAc;EAAA;AAAA;AAAEF;EAAAC;EAAAC;IAAA,oCAAsB;EAAA;AAAA;AAAEF;EAAAC;EAAAC;IAAA,8BAAgB;EAAA;AAAA;AAE5F;AAASF;EAAAC;EAAAC;IAAA,wBAAO;EAAA;AAAA;AAAEF;EAAAC;EAAAC;IAAA,kCAAiB;EAAA;AAAA;AACnC;AAASF;EAAAC;EAAAC;IAAA,8BAAU;EAAA;AAAA;AAAEF;EAAAC;EAAAC;IAAA,wCAAoB;EAAA;AAAA;AACzC;AAASF;EAAAC;EAAAC;IAAA,sBAAM;EAAA;AAAA;AAAEF;EAAAC;EAAAC;IAAA,gCAAgB;EAAA;AAAA;AACjC;AAASF;EAAAC;EAAAC;IAAA,sBAAM;EAAA;AAAA;AAAEF;EAAAC;EAAAC;IAAA,gCAAgB;EAAA;AAAA;AACjC;AAASF;EAAAC;EAAAC;IAAA,sBAAM;EAAA;AAAA;AAAEF;EAAAC;EAAAC;IAAA,gCAAgB;EAAA;AAAA;AACjC;AAASF;EAAAC;EAAAC;IAAA,4BAAS;EAAA;AAAA;AAAEF;EAAAC;EAAAC;IAAA,sCAAmB;EAAA;AAAA;AACvC;AAASF;EAAAC;EAAAC;IAAA,4BAAS;EAAA;AAAA;AAAEF;EAAAC;EAAAC;IAAA,sCAAmB;EAAA;AAAA;AACvC;AAASF;EAAAC;EAAAC;IAAA,oBAAK;EAAA;AAAA;AAAEF;EAAAC;EAAAC;IAAA,8BAAe;EAAA;AAAA;AAC/B;AAASF;EAAAC;EAAAC;IAAA,0BAAQ;EAAA;AAAA;AAAEF;EAAAC;EAAAC;IAAA,oCAAkB;EAAA;AAAA;AACrC;AAASF;EAAAC;EAAAC;IAAA,0BAAQ;EAAA;AAAA;AAAEF;EAAAC;EAAAC;IAAA,oCAAkB;EAAA;AAAA","names":["Object","enumerable","get"],"sourceRoot":"","sources":["../../../../../../../packages/react-components/react-text/src/index.ts"],"sourcesContent":["export { Text, renderText_unstable, textClassNames, useTextStyles_unstable, useText_unstable } from './Text';\nexport type { TextProps, TextSlots, TextState } from './Text';\nexport { Display, displayClassNames } from './Display';\nexport { LargeTitle, largeTitleClassNames } from './LargeTitle';\nexport { Title1, title1ClassNames } from './Title1';\nexport { Title2, title2ClassNames } from './Title2';\nexport { Title3, title3ClassNames } from './Title3';\nexport { Subtitle1, subtitle1ClassNames } from './Subtitle1';\nexport { Subtitle2, subtitle2ClassNames } from './Subtitle2';\nexport { Body1, body1ClassNames } from './Body1';\nexport { Caption1, caption1ClassNames } from './Caption1';\nexport { Caption2, caption2ClassNames } from './Caption2';\n"]}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-text",
|
3
|
-
"version": "0.0.0-nightly-
|
3
|
+
"version": "0.0.0-nightly-20221229-0425.1",
|
4
4
|
"description": "Text is a typography and styling abstraction component that can be used to ensure the consistency of all text across your application.",
|
5
5
|
"main": "lib-commonjs/index.js",
|
6
6
|
"module": "lib/index.js",
|
@@ -27,13 +27,13 @@
|
|
27
27
|
"devDependencies": {
|
28
28
|
"@fluentui/eslint-plugin": "*",
|
29
29
|
"@fluentui/react-conformance": "*",
|
30
|
-
"@fluentui/react-conformance-griffel": "0.0.0-nightly-
|
30
|
+
"@fluentui/react-conformance-griffel": "0.0.0-nightly-20221229-0425.1",
|
31
31
|
"@fluentui/scripts": "^1.0.0"
|
32
32
|
},
|
33
33
|
"dependencies": {
|
34
34
|
"@griffel/react": "^1.4.2",
|
35
|
-
"@fluentui/react-theme": "0.0.0-nightly-
|
36
|
-
"@fluentui/react-utilities": "0.0.0-nightly-
|
35
|
+
"@fluentui/react-theme": "0.0.0-nightly-20221229-0425.1",
|
36
|
+
"@fluentui/react-utilities": "0.0.0-nightly-20221229-0425.1",
|
37
37
|
"tslib": "^2.1.0"
|
38
38
|
},
|
39
39
|
"peerDependencies": {
|