@fluentui/react-text 9.0.0-rc.5 → 9.0.0-rc.6

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.
Files changed (70) hide show
  1. package/CHANGELOG.json +60 -1
  2. package/CHANGELOG.md +15 -2
  3. package/dist/react-text.d.ts +51 -0
  4. package/lib/components/Body/Body.d.ts +6 -0
  5. package/lib/components/Body/Body.js +8 -1
  6. package/lib/components/Body/Body.js.map +1 -1
  7. package/lib/components/Caption/Caption.d.ts +6 -0
  8. package/lib/components/Caption/Caption.js +8 -1
  9. package/lib/components/Caption/Caption.js.map +1 -1
  10. package/lib/components/Display/Display.d.ts +6 -0
  11. package/lib/components/Display/Display.js +8 -1
  12. package/lib/components/Display/Display.js.map +1 -1
  13. package/lib/components/Headline/Headline.d.ts +6 -0
  14. package/lib/components/Headline/Headline.js +8 -1
  15. package/lib/components/Headline/Headline.js.map +1 -1
  16. package/lib/components/LargeTitle/LargeTitle.d.ts +6 -0
  17. package/lib/components/LargeTitle/LargeTitle.js +8 -1
  18. package/lib/components/LargeTitle/LargeTitle.js.map +1 -1
  19. package/lib/components/Subheadline/Subheadline.d.ts +6 -0
  20. package/lib/components/Subheadline/Subheadline.js +8 -1
  21. package/lib/components/Subheadline/Subheadline.js.map +1 -1
  22. package/lib/components/Text/useTextStyles.d.ts +6 -1
  23. package/lib/components/Text/useTextStyles.js +8 -1
  24. package/lib/components/Text/useTextStyles.js.map +1 -1
  25. package/lib/components/Title1/Title1.d.ts +6 -0
  26. package/lib/components/Title1/Title1.js +8 -1
  27. package/lib/components/Title1/Title1.js.map +1 -1
  28. package/lib/components/Title2/Title2.d.ts +6 -0
  29. package/lib/components/Title2/Title2.js +8 -1
  30. package/lib/components/Title2/Title2.js.map +1 -1
  31. package/lib/components/Title3/Title3.d.ts +6 -0
  32. package/lib/components/Title3/Title3.js +8 -1
  33. package/lib/components/Title3/Title3.js.map +1 -1
  34. package/lib/index.d.ts +11 -10
  35. package/lib/index.js +11 -10
  36. package/lib/index.js.map +1 -1
  37. package/lib-commonjs/components/Body/Body.d.ts +6 -0
  38. package/lib-commonjs/components/Body/Body.js +9 -2
  39. package/lib-commonjs/components/Body/Body.js.map +1 -1
  40. package/lib-commonjs/components/Caption/Caption.d.ts +6 -0
  41. package/lib-commonjs/components/Caption/Caption.js +9 -2
  42. package/lib-commonjs/components/Caption/Caption.js.map +1 -1
  43. package/lib-commonjs/components/Display/Display.d.ts +6 -0
  44. package/lib-commonjs/components/Display/Display.js +9 -2
  45. package/lib-commonjs/components/Display/Display.js.map +1 -1
  46. package/lib-commonjs/components/Headline/Headline.d.ts +6 -0
  47. package/lib-commonjs/components/Headline/Headline.js +9 -2
  48. package/lib-commonjs/components/Headline/Headline.js.map +1 -1
  49. package/lib-commonjs/components/LargeTitle/LargeTitle.d.ts +6 -0
  50. package/lib-commonjs/components/LargeTitle/LargeTitle.js +9 -2
  51. package/lib-commonjs/components/LargeTitle/LargeTitle.js.map +1 -1
  52. package/lib-commonjs/components/Subheadline/Subheadline.d.ts +6 -0
  53. package/lib-commonjs/components/Subheadline/Subheadline.js +9 -2
  54. package/lib-commonjs/components/Subheadline/Subheadline.js.map +1 -1
  55. package/lib-commonjs/components/Text/useTextStyles.d.ts +6 -1
  56. package/lib-commonjs/components/Text/useTextStyles.js +9 -2
  57. package/lib-commonjs/components/Text/useTextStyles.js.map +1 -1
  58. package/lib-commonjs/components/Title1/Title1.d.ts +6 -0
  59. package/lib-commonjs/components/Title1/Title1.js +9 -2
  60. package/lib-commonjs/components/Title1/Title1.js.map +1 -1
  61. package/lib-commonjs/components/Title2/Title2.d.ts +6 -0
  62. package/lib-commonjs/components/Title2/Title2.js +9 -2
  63. package/lib-commonjs/components/Title2/Title2.js.map +1 -1
  64. package/lib-commonjs/components/Title3/Title3.d.ts +6 -0
  65. package/lib-commonjs/components/Title3/Title3.js +9 -2
  66. package/lib-commonjs/components/Title3/Title3.js.map +1 -1
  67. package/lib-commonjs/index.d.ts +11 -10
  68. package/lib-commonjs/index.js +219 -11
  69. package/lib-commonjs/index.js.map +1 -1
  70. package/package.json +6 -16
@@ -1,6 +1,12 @@
1
1
  import type { FunctionComponent } from 'react';
2
2
  import { TextWrapperProps } from '../wrapper';
3
+ import { SlotClassNames } from '@fluentui/react-utilities';
4
+ import { TextSlots } from '../Text/Text.types';
5
+ /**
6
+ * @deprecated Use `title2ClassNames.root` instead.
7
+ */
3
8
  export declare const title2ClassName = "fui-Title2";
9
+ export declare const title2ClassNames: SlotClassNames<TextSlots>;
4
10
  /**
5
11
  * Text wrapper component for the Title 2 typography variant
6
12
  */
@@ -1,7 +1,14 @@
1
1
  import { __styles } from '@griffel/react';
2
2
  import { typographyStyles } from '../../typographyStyles/index';
3
3
  import { createWrapper } from '../wrapper';
4
+ /**
5
+ * @deprecated Use `title2ClassNames.root` instead.
6
+ */
7
+
4
8
  export const title2ClassName = 'fui-Title2';
9
+ export const title2ClassNames = {
10
+ root: 'fui-Title2'
11
+ };
5
12
  /**
6
13
  * Styles for the root slot
7
14
  */
@@ -23,7 +30,7 @@ const useStyles = /*#__PURE__*/__styles({
23
30
 
24
31
  export const Title2 = /*#__PURE__*/createWrapper({
25
32
  useStyles,
26
- className: title2ClassName,
33
+ className: title2ClassNames.root,
27
34
  displayName: 'Title2'
28
35
  });
29
36
  //# sourceMappingURL=Title2.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Title2/Title2.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAEA,OAAO,MAAM,eAAe,GAAG,YAAxB;AAEP;;AAEG;;AACH,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,MAAM,MAAM,gBAAwC,aAAa,CAAC;AACvE,EAAA,SADuE;AAEvE,EAAA,SAAS,EAAE,eAF4D;AAGvE,EAAA,WAAW,EAAE;AAH0D,CAAD,CAAjE","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\n\nexport const title2ClassName = 'fui-Title2';\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: title2ClassName,\n displayName: 'Title2',\n});\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["components/Title2/Title2.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAIA;;AAEG;;AACH,OAAO,MAAM,eAAe,GAAG,YAAxB;AACP,OAAO,MAAM,gBAAgB,GAA8B;AACzD,EAAA,IAAI,EAAE;AADmD,CAApD;AAIP;;AAEG;;AACH,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,MAAM,MAAM,gBAAwC,aAAa,CAAC;AACvE,EAAA,SADuE;AAEvE,EAAA,SAAS,EAAE,gBAAgB,CAAC,IAF2C;AAGvE,EAAA,WAAW,EAAE;AAH0D,CAAD,CAAjE","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\n\n/**\n * @deprecated Use `title2ClassNames.root` instead.\n */\nexport const title2ClassName = 'fui-Title2';\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"],"sourceRoot":"../src/"}
@@ -1,6 +1,12 @@
1
1
  import type { FunctionComponent } from 'react';
2
2
  import { TextWrapperProps } from '../wrapper';
3
+ import { SlotClassNames } from '@fluentui/react-utilities';
4
+ import { TextSlots } from '../Text/Text.types';
5
+ /**
6
+ * @deprecated Use `title3ClassNames.root` instead.
7
+ */
3
8
  export declare const title3ClassName = "fui-Title3";
9
+ export declare const title3ClassNames: SlotClassNames<TextSlots>;
4
10
  /**
5
11
  * Text wrapper component for the Title 3 typography variant
6
12
  */
@@ -1,7 +1,14 @@
1
1
  import { __styles } from '@griffel/react';
2
2
  import { typographyStyles } from '../../typographyStyles/index';
3
3
  import { createWrapper } from '../wrapper';
4
+ /**
5
+ * @deprecated Use `title3ClassNames.root` instead.
6
+ */
7
+
4
8
  export const title3ClassName = 'fui-Title3';
9
+ export const title3ClassNames = {
10
+ root: 'fui-Title3'
11
+ };
5
12
  /**
6
13
  * Styles for the root slot
7
14
  */
@@ -23,7 +30,7 @@ const useStyles = /*#__PURE__*/__styles({
23
30
 
24
31
  export const Title3 = /*#__PURE__*/createWrapper({
25
32
  useStyles,
26
- className: title3ClassName,
33
+ className: title3ClassNames.root,
27
34
  displayName: 'Title3'
28
35
  });
29
36
  //# sourceMappingURL=Title3.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Title3/Title3.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAEA,OAAO,MAAM,eAAe,GAAG,YAAxB;AAEP;;AAEG;;AACH,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,MAAM,MAAM,gBAAwC,aAAa,CAAC;AACvE,EAAA,SADuE;AAEvE,EAAA,SAAS,EAAE,eAF4D;AAGvE,EAAA,WAAW,EAAE;AAH0D,CAAD,CAAjE","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\n\nexport const title3ClassName = 'fui-Title3';\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: title3ClassName,\n displayName: 'Title3',\n});\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["components/Title3/Title3.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAIA;;AAEG;;AACH,OAAO,MAAM,eAAe,GAAG,YAAxB;AACP,OAAO,MAAM,gBAAgB,GAA8B;AACzD,EAAA,IAAI,EAAE;AADmD,CAApD;AAIP;;AAEG;;AACH,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,MAAM,MAAM,gBAAwC,aAAa,CAAC;AACvE,EAAA,SADuE;AAEvE,EAAA,SAAS,EAAE,gBAAgB,CAAC,IAF2C;AAGvE,EAAA,WAAW,EAAE;AAH0D,CAAD,CAAjE","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\n\n/**\n * @deprecated Use `title3ClassNames.root` instead.\n */\nexport const title3ClassName = 'fui-Title3';\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"],"sourceRoot":"../src/"}
package/lib/index.d.ts CHANGED
@@ -1,10 +1,11 @@
1
- export * from './Text';
2
- export * from './Display';
3
- export * from './LargeTitle';
4
- export * from './Title1';
5
- export * from './Title2';
6
- export * from './Title3';
7
- export * from './Headline';
8
- export * from './Subheadline';
9
- export * from './Body';
10
- export * from './Caption';
1
+ export { Text, renderText_unstable, textClassName, textClassNames, useTextStyles_unstable, useText_unstable, } from './Text';
2
+ export type { TextProps, TextSlots, TextState } from './Text';
3
+ export { Display, displayClassName, displayClassNames } from './Display';
4
+ export { LargeTitle, largeTitleClassName, largeTitleClassNames } from './LargeTitle';
5
+ export { Title1, title1ClassName, title1ClassNames } from './Title1';
6
+ export { Title2, title2ClassName, title2ClassNames } from './Title2';
7
+ export { Title3, title3ClassName, title3ClassNames } from './Title3';
8
+ export { Headline, headlineClassName, headlineClassNames } from './Headline';
9
+ export { Subheadline, subheadlineClassName, subheadlineClassNames } from './Subheadline';
10
+ export { Body, bodyClassName, bodyClassNames } from './Body';
11
+ export { Caption, captionClassName, captionClassNames } from './Caption';
package/lib/index.js CHANGED
@@ -1,11 +1,12 @@
1
- export * from './Text';
2
- export * from './Display';
3
- export * from './LargeTitle';
4
- export * from './Title1';
5
- export * from './Title2';
6
- export * from './Title3';
7
- export * from './Headline';
8
- export * from './Subheadline';
9
- export * from './Body';
10
- export * from './Caption';
1
+ /* eslint-disable deprecation/deprecation -- https://github.com/microsoft/fluentui/pull/21960#issuecomment-1068991851 */
2
+ export { Text, renderText_unstable, textClassName, textClassNames, useTextStyles_unstable, useText_unstable } from './Text';
3
+ export { Display, displayClassName, displayClassNames } from './Display';
4
+ export { LargeTitle, largeTitleClassName, largeTitleClassNames } from './LargeTitle';
5
+ export { Title1, title1ClassName, title1ClassNames } from './Title1';
6
+ export { Title2, title2ClassName, title2ClassNames } from './Title2';
7
+ export { Title3, title3ClassName, title3ClassNames } from './Title3';
8
+ export { Headline, headlineClassName, headlineClassNames } from './Headline';
9
+ export { Subheadline, subheadlineClassName, subheadlineClassNames } from './Subheadline';
10
+ export { Body, bodyClassName, bodyClassNames } from './Body';
11
+ export { Caption, captionClassName, captionClassNames } from './Caption';
11
12
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC","sourcesContent":["export * from './Text';\nexport * from './Display';\nexport * from './LargeTitle';\nexport * from './Title1';\nexport * from './Title2';\nexport * from './Title3';\nexport * from './Headline';\nexport * from './Subheadline';\nexport * from './Body';\nexport * from './Caption';\n"]}
1
+ {"version":3,"sources":["index.ts"],"names":[],"mappings":"AAAA;AACA,SACE,IADF,EAEE,mBAFF,EAGE,aAHF,EAIE,cAJF,EAKE,sBALF,EAME,gBANF,QAOO,QAPP;AASA,SAAS,OAAT,EAAkB,gBAAlB,EAAoC,iBAApC,QAA6D,WAA7D;AACA,SAAS,UAAT,EAAqB,mBAArB,EAA0C,oBAA1C,QAAsE,cAAtE;AACA,SAAS,MAAT,EAAiB,eAAjB,EAAkC,gBAAlC,QAA0D,UAA1D;AACA,SAAS,MAAT,EAAiB,eAAjB,EAAkC,gBAAlC,QAA0D,UAA1D;AACA,SAAS,MAAT,EAAiB,eAAjB,EAAkC,gBAAlC,QAA0D,UAA1D;AACA,SAAS,QAAT,EAAmB,iBAAnB,EAAsC,kBAAtC,QAAgE,YAAhE;AACA,SAAS,WAAT,EAAsB,oBAAtB,EAA4C,qBAA5C,QAAyE,eAAzE;AACA,SAAS,IAAT,EAAe,aAAf,EAA8B,cAA9B,QAAoD,QAApD;AACA,SAAS,OAAT,EAAkB,gBAAlB,EAAoC,iBAApC,QAA6D,WAA7D","sourcesContent":["/* eslint-disable deprecation/deprecation -- https://github.com/microsoft/fluentui/pull/21960#issuecomment-1068991851 */\nexport {\n Text,\n renderText_unstable,\n textClassName,\n textClassNames,\n useTextStyles_unstable,\n useText_unstable,\n} from './Text';\nexport type { TextProps, TextSlots, TextState } from './Text';\nexport { Display, displayClassName, displayClassNames } from './Display';\nexport { LargeTitle, largeTitleClassName, largeTitleClassNames } from './LargeTitle';\nexport { Title1, title1ClassName, title1ClassNames } from './Title1';\nexport { Title2, title2ClassName, title2ClassNames } from './Title2';\nexport { Title3, title3ClassName, title3ClassNames } from './Title3';\nexport { Headline, headlineClassName, headlineClassNames } from './Headline';\nexport { Subheadline, subheadlineClassName, subheadlineClassNames } from './Subheadline';\nexport { Body, bodyClassName, bodyClassNames } from './Body';\nexport { Caption, captionClassName, captionClassNames } from './Caption';\n"],"sourceRoot":"../src/"}
@@ -1,6 +1,12 @@
1
1
  import type { FunctionComponent } from 'react';
2
2
  import { TextWrapperProps } from '../wrapper';
3
+ import { SlotClassNames } from '@fluentui/react-utilities';
4
+ import { TextSlots } from '../Text/Text.types';
5
+ /**
6
+ * @deprecated Use `bodyClassNames.root` instead.
7
+ */
3
8
  export declare const bodyClassName = "fui-Body";
9
+ export declare const bodyClassNames: SlotClassNames<TextSlots>;
4
10
  /**
5
11
  * Text wrapper component for the Body typography variant
6
12
  */
@@ -3,15 +3,22 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Body = exports.bodyClassName = void 0;
6
+ exports.Body = exports.bodyClassNames = exports.bodyClassName = void 0;
7
7
 
8
8
  const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
10
  const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
11
11
 
12
12
  const wrapper_1 = /*#__PURE__*/require("../wrapper");
13
+ /**
14
+ * @deprecated Use `bodyClassNames.root` instead.
15
+ */
16
+
13
17
 
14
18
  exports.bodyClassName = 'fui-Body';
19
+ exports.bodyClassNames = {
20
+ root: 'fui-Body'
21
+ };
15
22
  /**
16
23
  * Styles for the root slot
17
24
  */
@@ -24,7 +31,7 @@ const useStyles = /*#__PURE__*/react_1.__styles({}, {});
24
31
 
25
32
  exports.Body = /*#__PURE__*/wrapper_1.createWrapper({
26
33
  useStyles,
27
- className: exports.bodyClassName,
34
+ className: exports.bodyClassNames.root,
28
35
  displayName: 'Body'
29
36
  });
30
37
  //# sourceMappingURL=Body.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Body/Body.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAEa,OAAA,CAAA,aAAA,GAAgB,UAAhB;AAEb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA,QAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,IAAA,gBAA4C,SAAA,CAAA,aAAA,CAAc;AACrE,EAAA,SADqE;AAErE,EAAA,SAAS,EAAE,OAAA,CAAA,aAF0D;AAGrE,EAAA,WAAW,EAAE;AAHwD,CAAd,CAA5C","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\n\nexport const bodyClassName = 'fui-Body';\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.body,\n});\n\n/**\n * Text wrapper component for the Body typography variant\n */\nexport const Body: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: bodyClassName,\n displayName: 'Body',\n});\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["components/Body/Body.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,aAAA,GAAgB,UAAhB;AACA,OAAA,CAAA,cAAA,GAA4C;AACvD,EAAA,IAAI,EAAE;AADiD,CAA5C;AAIb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA,QAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,IAAA,gBAA4C,SAAA,CAAA,aAAA,CAAc;AACrE,EAAA,SADqE;AAErE,EAAA,SAAS,EAAE,OAAA,CAAA,cAAA,CAAe,IAF2C;AAGrE,EAAA,WAAW,EAAE;AAHwD,CAAd,CAA5C","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\n\n/**\n * @deprecated Use `bodyClassNames.root` instead.\n */\nexport const bodyClassName = 'fui-Body';\nexport const bodyClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Body',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.body,\n});\n\n/**\n * Text wrapper component for the Body typography variant\n */\nexport const Body: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: bodyClassNames.root,\n displayName: 'Body',\n});\n"],"sourceRoot":"../src/"}
@@ -1,6 +1,12 @@
1
1
  import type { FunctionComponent } from 'react';
2
2
  import { TextWrapperProps } from '../wrapper';
3
+ import { SlotClassNames } from '@fluentui/react-utilities';
4
+ import { TextSlots } from '../Text/Text.types';
5
+ /**
6
+ * @deprecated Use `captionClassNames.root` instead.
7
+ */
3
8
  export declare const captionClassName = "fui-Caption";
9
+ export declare const captionClassNames: SlotClassNames<TextSlots>;
4
10
  /**
5
11
  * Text wrapper component for the Caption typography variant
6
12
  */
@@ -3,15 +3,22 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Caption = exports.captionClassName = void 0;
6
+ exports.Caption = exports.captionClassNames = exports.captionClassName = void 0;
7
7
 
8
8
  const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
10
  const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
11
11
 
12
12
  const wrapper_1 = /*#__PURE__*/require("../wrapper");
13
+ /**
14
+ * @deprecated Use `captionClassNames.root` instead.
15
+ */
16
+
13
17
 
14
18
  exports.captionClassName = 'fui-Caption';
19
+ exports.captionClassNames = {
20
+ root: 'fui-Caption'
21
+ };
15
22
  /**
16
23
  * Styles for the root slot
17
24
  */
@@ -24,7 +31,7 @@ const useStyles = /*#__PURE__*/react_1.__styles({}, {});
24
31
 
25
32
  exports.Caption = /*#__PURE__*/wrapper_1.createWrapper({
26
33
  useStyles,
27
- className: exports.captionClassName,
34
+ className: exports.captionClassNames.root,
28
35
  displayName: 'Caption'
29
36
  });
30
37
  //# sourceMappingURL=Caption.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Caption/Caption.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAEa,OAAA,CAAA,gBAAA,GAAmB,aAAnB;AAEb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA,QAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,OAAA,gBAA+C,SAAA,CAAA,aAAA,CAAc;AACxE,EAAA,SADwE;AAExE,EAAA,SAAS,EAAE,OAAA,CAAA,gBAF6D;AAGxE,EAAA,WAAW,EAAE;AAH2D,CAAd,CAA/C","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\n\nexport const captionClassName = 'fui-Caption';\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.caption,\n});\n\n/**\n * Text wrapper component for the Caption typography variant\n */\nexport const Caption: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: captionClassName,\n displayName: 'Caption',\n});\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["components/Caption/Caption.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,gBAAA,GAAmB,aAAnB;AACA,OAAA,CAAA,iBAAA,GAA+C;AAC1D,EAAA,IAAI,EAAE;AADoD,CAA/C;AAIb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA,QAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,OAAA,gBAA+C,SAAA,CAAA,aAAA,CAAc;AACxE,EAAA,SADwE;AAExE,EAAA,SAAS,EAAE,OAAA,CAAA,iBAAA,CAAkB,IAF2C;AAGxE,EAAA,WAAW,EAAE;AAH2D,CAAd,CAA/C","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\n\n/**\n * @deprecated Use `captionClassNames.root` instead.\n */\nexport const captionClassName = 'fui-Caption';\nexport const captionClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Caption',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.caption,\n});\n\n/**\n * Text wrapper component for the Caption typography variant\n */\nexport const Caption: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: captionClassNames.root,\n displayName: 'Caption',\n});\n"],"sourceRoot":"../src/"}
@@ -1,6 +1,12 @@
1
1
  import type { FunctionComponent } from 'react';
2
2
  import { TextWrapperProps } from '../wrapper';
3
+ import { SlotClassNames } from '@fluentui/react-utilities';
4
+ import { TextSlots } from '../Text/Text.types';
5
+ /**
6
+ * @deprecated Use `displayClassNames.root` instead.
7
+ */
3
8
  export declare const displayClassName = "fui-Display";
9
+ export declare const displayClassNames: SlotClassNames<TextSlots>;
4
10
  /**
5
11
  * Text wrapper component for the Display typography variant
6
12
  */
@@ -3,15 +3,22 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Display = exports.displayClassName = void 0;
6
+ exports.Display = exports.displayClassNames = exports.displayClassName = void 0;
7
7
 
8
8
  const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
10
  const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
11
11
 
12
12
  const wrapper_1 = /*#__PURE__*/require("../wrapper");
13
+ /**
14
+ * @deprecated Use `displayClassNames.root` instead.
15
+ */
16
+
13
17
 
14
18
  exports.displayClassName = 'fui-Display';
19
+ exports.displayClassNames = {
20
+ root: 'fui-Display'
21
+ };
15
22
  /**
16
23
  * Styles for the root slot
17
24
  */
@@ -24,7 +31,7 @@ const useStyles = /*#__PURE__*/react_1.__styles({}, {});
24
31
 
25
32
  exports.Display = /*#__PURE__*/wrapper_1.createWrapper({
26
33
  useStyles,
27
- className: exports.displayClassName,
34
+ className: exports.displayClassNames.root,
28
35
  displayName: 'Display'
29
36
  });
30
37
  //# sourceMappingURL=Display.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Display/Display.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAEa,OAAA,CAAA,gBAAA,GAAmB,aAAnB;AAEb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA,QAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,OAAA,gBAA+C,SAAA,CAAA,aAAA,CAAc;AACxE,EAAA,SADwE;AAExE,EAAA,SAAS,EAAE,OAAA,CAAA,gBAF6D;AAGxE,EAAA,WAAW,EAAE;AAH2D,CAAd,CAA/C","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\n\nexport const displayClassName = 'fui-Display';\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.display,\n});\n\n/**\n * Text wrapper component for the Display typography variant\n */\nexport const Display: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: displayClassName,\n displayName: 'Display',\n});\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["components/Display/Display.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,gBAAA,GAAmB,aAAnB;AACA,OAAA,CAAA,iBAAA,GAA+C;AAC1D,EAAA,IAAI,EAAE;AADoD,CAA/C;AAIb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA,QAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,OAAA,gBAA+C,SAAA,CAAA,aAAA,CAAc;AACxE,EAAA,SADwE;AAExE,EAAA,SAAS,EAAE,OAAA,CAAA,iBAAA,CAAkB,IAF2C;AAGxE,EAAA,WAAW,EAAE;AAH2D,CAAd,CAA/C","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\n\n/**\n * @deprecated Use `displayClassNames.root` instead.\n */\nexport const displayClassName = 'fui-Display';\nexport const displayClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Display',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.display,\n});\n\n/**\n * Text wrapper component for the Display typography variant\n */\nexport const Display: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: displayClassNames.root,\n displayName: 'Display',\n});\n"],"sourceRoot":"../src/"}
@@ -1,6 +1,12 @@
1
1
  import type { FunctionComponent } from 'react';
2
2
  import { TextWrapperProps } from '../wrapper';
3
+ import { SlotClassNames } from '@fluentui/react-utilities';
4
+ import { TextSlots } from '../Text/Text.types';
5
+ /**
6
+ * @deprecated Use `headlineClassNames.root` instead.
7
+ */
3
8
  export declare const headlineClassName = "fui-Headline";
9
+ export declare const headlineClassNames: SlotClassNames<TextSlots>;
4
10
  /**
5
11
  * Text wrapper component for the Headline typography variant
6
12
  */
@@ -3,15 +3,22 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Headline = exports.headlineClassName = void 0;
6
+ exports.Headline = exports.headlineClassNames = exports.headlineClassName = void 0;
7
7
 
8
8
  const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
10
  const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
11
11
 
12
12
  const wrapper_1 = /*#__PURE__*/require("../wrapper");
13
+ /**
14
+ * @deprecated Use `headlineClassNames.root` instead.
15
+ */
16
+
13
17
 
14
18
  exports.headlineClassName = 'fui-Headline';
19
+ exports.headlineClassNames = {
20
+ root: 'fui-Headline'
21
+ };
15
22
  /**
16
23
  * Styles for the root slot
17
24
  */
@@ -24,7 +31,7 @@ const useStyles = /*#__PURE__*/react_1.__styles({}, {});
24
31
 
25
32
  exports.Headline = /*#__PURE__*/wrapper_1.createWrapper({
26
33
  useStyles,
27
- className: exports.headlineClassName,
34
+ className: exports.headlineClassNames.root,
28
35
  displayName: 'Headline'
29
36
  });
30
37
  //# sourceMappingURL=Headline.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Headline/Headline.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAEa,OAAA,CAAA,iBAAA,GAAoB,cAApB;AAEb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA,QAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,QAAA,gBAAgD,SAAA,CAAA,aAAA,CAAc;AACzE,EAAA,SADyE;AAEzE,EAAA,SAAS,EAAE,OAAA,CAAA,iBAF8D;AAGzE,EAAA,WAAW,EAAE;AAH4D,CAAd,CAAhD","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\n\nexport const headlineClassName = 'fui-Headline';\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.headline,\n});\n\n/**\n * Text wrapper component for the Headline typography variant\n */\nexport const Headline: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: headlineClassName,\n displayName: 'Headline',\n});\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["components/Headline/Headline.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,iBAAA,GAAoB,cAApB;AACA,OAAA,CAAA,kBAAA,GAAgD;AAC3D,EAAA,IAAI,EAAE;AADqD,CAAhD;AAIb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA,QAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,QAAA,gBAAgD,SAAA,CAAA,aAAA,CAAc;AACzE,EAAA,SADyE;AAEzE,EAAA,SAAS,EAAE,OAAA,CAAA,kBAAA,CAAmB,IAF2C;AAGzE,EAAA,WAAW,EAAE;AAH4D,CAAd,CAAhD","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\n\n/**\n * @deprecated Use `headlineClassNames.root` instead.\n */\nexport const headlineClassName = 'fui-Headline';\nexport const headlineClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Headline',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.headline,\n});\n\n/**\n * Text wrapper component for the Headline typography variant\n */\nexport const Headline: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: headlineClassNames.root,\n displayName: 'Headline',\n});\n"],"sourceRoot":"../src/"}
@@ -1,6 +1,12 @@
1
1
  import type { FunctionComponent } from 'react';
2
2
  import { TextWrapperProps } from '../wrapper';
3
+ import { SlotClassNames } from '@fluentui/react-utilities';
4
+ import { TextSlots } from '../Text/Text.types';
5
+ /**
6
+ * @deprecated Use `largeTitleClassNames.root` instead.
7
+ */
3
8
  export declare const largeTitleClassName = "fui-LargeTitle";
9
+ export declare const largeTitleClassNames: SlotClassNames<TextSlots>;
4
10
  /**
5
11
  * Text wrapper component for the Large Title typography variant
6
12
  */
@@ -3,15 +3,22 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.LargeTitle = exports.largeTitleClassName = void 0;
6
+ exports.LargeTitle = exports.largeTitleClassNames = exports.largeTitleClassName = void 0;
7
7
 
8
8
  const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
10
  const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
11
11
 
12
12
  const wrapper_1 = /*#__PURE__*/require("../wrapper");
13
+ /**
14
+ * @deprecated Use `largeTitleClassNames.root` instead.
15
+ */
16
+
13
17
 
14
18
  exports.largeTitleClassName = 'fui-LargeTitle';
19
+ exports.largeTitleClassNames = {
20
+ root: 'fui-LargeTitle'
21
+ };
15
22
  /**
16
23
  * Styles for the root slot
17
24
  */
@@ -24,7 +31,7 @@ const useStyles = /*#__PURE__*/react_1.__styles({}, {});
24
31
 
25
32
  exports.LargeTitle = /*#__PURE__*/wrapper_1.createWrapper({
26
33
  useStyles,
27
- className: exports.largeTitleClassName,
34
+ className: exports.largeTitleClassNames.root,
28
35
  displayName: 'LargeTitle'
29
36
  });
30
37
  //# sourceMappingURL=LargeTitle.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["components/LargeTitle/LargeTitle.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAEa,OAAA,CAAA,mBAAA,GAAsB,gBAAtB;AAEb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA,QAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,UAAA,gBAAkD,SAAA,CAAA,aAAA,CAAc;AAC3E,EAAA,SAD2E;AAE3E,EAAA,SAAS,EAAE,OAAA,CAAA,mBAFgE;AAG3E,EAAA,WAAW,EAAE;AAH8D,CAAd,CAAlD","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\n\nexport const largeTitleClassName = 'fui-LargeTitle';\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.largeTitle,\n});\n\n/**\n * Text wrapper component for the Large Title typography variant\n */\nexport const LargeTitle: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: largeTitleClassName,\n displayName: 'LargeTitle',\n});\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["components/LargeTitle/LargeTitle.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,mBAAA,GAAsB,gBAAtB;AACA,OAAA,CAAA,oBAAA,GAAkD;AAC7D,EAAA,IAAI,EAAE;AADuD,CAAlD;AAIb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA,QAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,UAAA,gBAAkD,SAAA,CAAA,aAAA,CAAc;AAC3E,EAAA,SAD2E;AAE3E,EAAA,SAAS,EAAE,OAAA,CAAA,oBAAA,CAAqB,IAF2C;AAG3E,EAAA,WAAW,EAAE;AAH8D,CAAd,CAAlD","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\n\n/**\n * @deprecated Use `largeTitleClassNames.root` instead.\n */\nexport const largeTitleClassName = 'fui-LargeTitle';\nexport const largeTitleClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-LargeTitle',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.largeTitle,\n});\n\n/**\n * Text wrapper component for the Large Title typography variant\n */\nexport const LargeTitle: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: largeTitleClassNames.root,\n displayName: 'LargeTitle',\n});\n"],"sourceRoot":"../src/"}
@@ -1,6 +1,12 @@
1
1
  import type { FunctionComponent } from 'react';
2
2
  import { TextWrapperProps } from '../wrapper';
3
+ import { SlotClassNames } from '@fluentui/react-utilities';
4
+ import { TextSlots } from '../Text/Text.types';
5
+ /**
6
+ * @deprecated Use `subheadlineClassNames.root` instead.
7
+ */
3
8
  export declare const subheadlineClassName = "fui-Subheadline";
9
+ export declare const subheadlineClassNames: SlotClassNames<TextSlots>;
4
10
  /**
5
11
  * Text wrapper component for the Subheadline typography variant
6
12
  */
@@ -3,15 +3,22 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Subheadline = exports.subheadlineClassName = void 0;
6
+ exports.Subheadline = exports.subheadlineClassNames = exports.subheadlineClassName = void 0;
7
7
 
8
8
  const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
10
  const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
11
11
 
12
12
  const wrapper_1 = /*#__PURE__*/require("../wrapper");
13
+ /**
14
+ * @deprecated Use `subheadlineClassNames.root` instead.
15
+ */
16
+
13
17
 
14
18
  exports.subheadlineClassName = 'fui-Subheadline';
19
+ exports.subheadlineClassNames = {
20
+ root: 'fui-Subheadline'
21
+ };
15
22
  /**
16
23
  * Styles for the root slot
17
24
  */
@@ -24,7 +31,7 @@ const useStyles = /*#__PURE__*/react_1.__styles({}, {});
24
31
 
25
32
  exports.Subheadline = /*#__PURE__*/wrapper_1.createWrapper({
26
33
  useStyles,
27
- className: exports.subheadlineClassName,
34
+ className: exports.subheadlineClassNames.root,
28
35
  displayName: 'Subheadline'
29
36
  });
30
37
  //# sourceMappingURL=Subheadline.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Subheadline/Subheadline.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAEa,OAAA,CAAA,oBAAA,GAAuB,iBAAvB;AAEb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA,QAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,WAAA,gBAAmD,SAAA,CAAA,aAAA,CAAc;AAC5E,EAAA,SAD4E;AAE5E,EAAA,SAAS,EAAE,OAAA,CAAA,oBAFiE;AAG5E,EAAA,WAAW,EAAE;AAH+D,CAAd,CAAnD","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\n\nexport const subheadlineClassName = 'fui-Subheadline';\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.subheadline,\n});\n\n/**\n * Text wrapper component for the Subheadline typography variant\n */\nexport const Subheadline: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: subheadlineClassName,\n displayName: 'Subheadline',\n});\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["components/Subheadline/Subheadline.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,oBAAA,GAAuB,iBAAvB;AACA,OAAA,CAAA,qBAAA,GAAmD;AAC9D,EAAA,IAAI,EAAE;AADwD,CAAnD;AAIb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA,QAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,WAAA,gBAAmD,SAAA,CAAA,aAAA,CAAc;AAC5E,EAAA,SAD4E;AAE5E,EAAA,SAAS,EAAE,OAAA,CAAA,qBAAA,CAAsB,IAF2C;AAG5E,EAAA,WAAW,EAAE;AAH+D,CAAd,CAAnD","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\n\n/**\n * @deprecated Use `subheadlineClassNames.root` instead.\n */\nexport const subheadlineClassName = 'fui-Subheadline';\nexport const subheadlineClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Subheadline',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.subheadline,\n});\n\n/**\n * Text wrapper component for the Subheadline typography variant\n */\nexport const Subheadline: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: subheadlineClassNames.root,\n displayName: 'Subheadline',\n});\n"],"sourceRoot":"../src/"}
@@ -1,5 +1,10 @@
1
- import type { TextState } from './Text.types';
1
+ import type { TextSlots, TextState } from './Text.types';
2
+ import { SlotClassNames } from '@fluentui/react-utilities';
3
+ /**
4
+ * @deprecated Use `textClassNames.root` instead.
5
+ */
2
6
  export declare const textClassName = "fui-Text";
7
+ export declare const textClassNames: SlotClassNames<TextSlots>;
3
8
  /**
4
9
  * Apply styling to the Text slots based on the state
5
10
  */
@@ -3,13 +3,20 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useTextStyles_unstable = exports.textClassName = void 0;
6
+ exports.useTextStyles_unstable = exports.textClassNames = exports.textClassName = void 0;
7
7
 
8
8
  const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
10
  const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
11
+ /**
12
+ * @deprecated Use `textClassNames.root` instead.
13
+ */
14
+
11
15
 
12
16
  exports.textClassName = 'fui-Text';
17
+ exports.textClassNames = {
18
+ root: 'fui-Text'
19
+ };
13
20
  /**
14
21
  * Styles for the root slot
15
22
  */
@@ -117,7 +124,7 @@ const useStyles = /*#__PURE__*/react_1.__styles({
117
124
 
118
125
  const useTextStyles_unstable = state => {
119
126
  const styles = useStyles();
120
- state.root.className = react_1.mergeClasses(exports.textClassName, 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.align === 'center' && styles.alignCenter, state.align === 'end' && styles.alignEnd, state.align === 'justify' && styles.alignJustify, state.root.className);
127
+ 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.align === 'center' && styles.alignCenter, state.align === 'end' && styles.alignEnd, state.align === 'justify' && styles.alignJustify, state.root.className);
121
128
  return state;
122
129
  };
123
130
 
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Text/useTextStyles.ts"],"names":[],"mappings":"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","sourcesContent":["import { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { TextState } from './Text.types';\n\nexport const textClassName = 'fui-Text';\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 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 textClassName,\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.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"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["components/Text/useTextStyles.ts"],"names":[],"mappings":"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","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\n/**\n * @deprecated Use `textClassNames.root` instead.\n */\nexport const textClassName = 'fui-Text';\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 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.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"],"sourceRoot":"../src/"}
@@ -1,6 +1,12 @@
1
1
  import type { FunctionComponent } from 'react';
2
2
  import { TextWrapperProps } from '../wrapper';
3
+ import { SlotClassNames } from '@fluentui/react-utilities';
4
+ import { TextSlots } from '../Text/Text.types';
5
+ /**
6
+ * @deprecated Use `title1ClassNames.root` instead.
7
+ */
3
8
  export declare const title1ClassName = "fui-Title1";
9
+ export declare const title1ClassNames: SlotClassNames<TextSlots>;
4
10
  /**
5
11
  * Text wrapper component for the Title 1 typography variant
6
12
  */