@fluentui/react-text 9.3.19 → 9.3.21

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 CHANGED
@@ -2,7 +2,79 @@
2
2
  "name": "@fluentui/react-text",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 01 Aug 2023 10:14:29 GMT",
5
+ "date": "Wed, 09 Aug 2023 13:11:48 GMT",
6
+ "tag": "@fluentui/react-text_v9.3.21",
7
+ "version": "9.3.21",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "olfedias@microsoft.com",
12
+ "package": "@fluentui/react-text",
13
+ "commit": "b090c0339983847a62b9dc6187d08dc8c4b1d55f",
14
+ "comment": "chore: Update Griffel to latest version"
15
+ },
16
+ {
17
+ "author": "bernardo.sunderhus@gmail.com",
18
+ "package": "@fluentui/react-text",
19
+ "commit": "d5ece238df797e84a59affc6162b0fa5cc46649d",
20
+ "comment": "chore(cxe-prg): migrate to new slot API"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-text",
25
+ "comment": "Bump @fluentui/react-shared-contexts to v9.7.2",
26
+ "commit": "d0e28b405dc91c4682aec72dd784767a3ce95c78"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-text",
31
+ "comment": "Bump @fluentui/react-theme to v9.1.11",
32
+ "commit": "d0e28b405dc91c4682aec72dd784767a3ce95c78"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui/react-text",
37
+ "comment": "Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.14",
38
+ "commit": "d0e28b405dc91c4682aec72dd784767a3ce95c78"
39
+ }
40
+ ]
41
+ }
42
+ },
43
+ {
44
+ "date": "Fri, 04 Aug 2023 08:52:58 GMT",
45
+ "tag": "@fluentui/react-text_v9.3.20",
46
+ "version": "9.3.20",
47
+ "comments": {
48
+ "patch": [
49
+ {
50
+ "author": "beachball",
51
+ "package": "@fluentui/react-text",
52
+ "comment": "Bump @fluentui/react-shared-contexts to v9.7.1",
53
+ "commit": "0bf7d9438c1d0ff90cd2b28bc4cceb4f807afbca"
54
+ },
55
+ {
56
+ "author": "beachball",
57
+ "package": "@fluentui/react-text",
58
+ "comment": "Bump @fluentui/react-theme to v9.1.10",
59
+ "commit": "0bf7d9438c1d0ff90cd2b28bc4cceb4f807afbca"
60
+ },
61
+ {
62
+ "author": "beachball",
63
+ "package": "@fluentui/react-text",
64
+ "comment": "Bump @fluentui/react-utilities to v9.11.0",
65
+ "commit": "0bf7d9438c1d0ff90cd2b28bc4cceb4f807afbca"
66
+ },
67
+ {
68
+ "author": "beachball",
69
+ "package": "@fluentui/react-text",
70
+ "comment": "Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.13",
71
+ "commit": "0bf7d9438c1d0ff90cd2b28bc4cceb4f807afbca"
72
+ }
73
+ ]
74
+ }
75
+ },
76
+ {
77
+ "date": "Tue, 01 Aug 2023 10:17:21 GMT",
6
78
  "tag": "@fluentui/react-text_v9.3.19",
7
79
  "version": "9.3.19",
8
80
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,37 @@
1
1
  # Change Log - @fluentui/react-text
2
2
 
3
- This log was last generated on Tue, 01 Aug 2023 10:14:29 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 09 Aug 2023 13:11:48 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.3.21](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.3.21)
8
+
9
+ Wed, 09 Aug 2023 13:11:48 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.3.20..@fluentui/react-text_v9.3.21)
11
+
12
+ ### Patches
13
+
14
+ - chore: Update Griffel to latest version ([PR #28684](https://github.com/microsoft/fluentui/pull/28684) by olfedias@microsoft.com)
15
+ - chore(cxe-prg): migrate to new slot API ([PR #28752](https://github.com/microsoft/fluentui/pull/28752) by bernardo.sunderhus@gmail.com)
16
+ - Bump @fluentui/react-shared-contexts to v9.7.2 ([commit](https://github.com/microsoft/fluentui/commit/d0e28b405dc91c4682aec72dd784767a3ce95c78) by beachball)
17
+ - Bump @fluentui/react-theme to v9.1.11 ([commit](https://github.com/microsoft/fluentui/commit/d0e28b405dc91c4682aec72dd784767a3ce95c78) by beachball)
18
+ - Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.14 ([commit](https://github.com/microsoft/fluentui/commit/d0e28b405dc91c4682aec72dd784767a3ce95c78) by beachball)
19
+
20
+ ## [9.3.20](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.3.20)
21
+
22
+ Fri, 04 Aug 2023 08:52:58 GMT
23
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.3.19..@fluentui/react-text_v9.3.20)
24
+
25
+ ### Patches
26
+
27
+ - Bump @fluentui/react-shared-contexts to v9.7.1 ([commit](https://github.com/microsoft/fluentui/commit/0bf7d9438c1d0ff90cd2b28bc4cceb4f807afbca) by beachball)
28
+ - Bump @fluentui/react-theme to v9.1.10 ([commit](https://github.com/microsoft/fluentui/commit/0bf7d9438c1d0ff90cd2b28bc4cceb4f807afbca) by beachball)
29
+ - Bump @fluentui/react-utilities to v9.11.0 ([commit](https://github.com/microsoft/fluentui/commit/0bf7d9438c1d0ff90cd2b28bc4cceb4f807afbca) by beachball)
30
+ - Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.13 ([commit](https://github.com/microsoft/fluentui/commit/0bf7d9438c1d0ff90cd2b28bc4cceb4f807afbca) by beachball)
31
+
7
32
  ## [9.3.19](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.3.19)
8
33
 
9
- Tue, 01 Aug 2023 10:14:29 GMT
34
+ Tue, 01 Aug 2023 10:17:21 GMT
10
35
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.3.18..@fluentui/react-text_v9.3.19)
11
36
 
12
37
  ### Patches
@@ -1,8 +1,8 @@
1
1
  /** @jsxRuntime classic */ /** @jsx createElement */ import { createElement } from '@fluentui/react-jsx-runtime';
2
- import { getSlotsNext } from '@fluentui/react-utilities';
2
+ import { assertSlots } from '@fluentui/react-utilities';
3
3
  /**
4
4
  * Render the final JSX of Text
5
5
  */ export const renderText_unstable = (state)=>{
6
- const { slots , slotProps } = getSlotsNext(state);
7
- return /*#__PURE__*/ createElement(slots.root, slotProps.root);
6
+ assertSlots(state);
7
+ return /*#__PURE__*/ createElement(state.root, null);
8
8
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["renderText.tsx"],"sourcesContent":["/** @jsxRuntime classic */\n/** @jsx createElement */\n\nimport { createElement } from '@fluentui/react-jsx-runtime';\n\nimport { getSlotsNext } 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 } = getSlotsNext<TextSlots>(state);\n\n return <slots.root {...slotProps.root} />;\n};\n"],"names":["createElement","getSlotsNext","renderText_unstable","state","slots","slotProps","root"],"mappings":"AAAA,wBAAwB,GACxB,uBAAuB,GAEvB,SAASA,aAAa,QAAQ,8BAA8B;AAE5D,SAASC,YAAY,QAAQ,4BAA4B;AAGzD;;CAEC,GACD,OAAO,MAAMC,sBAAsB,CAACC,QAAqB;IACvD,MAAM,EAAEC,MAAK,EAAEC,UAAS,EAAE,GAAGJ,aAAwBE;IAErD,qBAAO,AAbT,cAaUC,MAAME,IAAI,EAAKD,UAAUC,IAAI;AACvC,EAAE"}
1
+ {"version":3,"sources":["renderText.tsx"],"sourcesContent":["/** @jsxRuntime classic */\n/** @jsx createElement */\n\nimport { createElement } from '@fluentui/react-jsx-runtime';\n\nimport { assertSlots } 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 assertSlots<TextSlots>(state);\n\n return <state.root />;\n};\n"],"names":["createElement","assertSlots","renderText_unstable","state","root"],"mappings":"AAAA,wBAAwB,GACxB,uBAAuB,GAEvB,SAASA,aAAa,QAAQ,8BAA8B;AAE5D,SAASC,WAAW,QAAQ,4BAA4B;AAGxD;;CAEC,GACD,OAAO,MAAMC,sBAAsB,CAACC,QAAqB;IACvDF,YAAuBE;IAEvB,qBAAO,AAbT,cAaUA,MAAMC,IAAI;AACpB,EAAE"}
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { getNativeElementProps } from '@fluentui/react-utilities';
2
+ import { getNativeElementProps, slot } from '@fluentui/react-utilities';
3
3
  /**
4
4
  * Create the state required to render Text.
5
5
  *
@@ -26,10 +26,12 @@ import { getNativeElementProps } from '@fluentui/react-utilities';
26
26
  components: {
27
27
  root: 'span'
28
28
  },
29
- root: getNativeElementProps(as, {
29
+ root: slot.always(getNativeElementProps(as, {
30
30
  ref,
31
31
  ...props,
32
32
  as
33
+ }), {
34
+ elementType: 'span'
33
35
  })
34
36
  };
35
37
  return state;
@@ -1 +1 @@
1
- {"version":3,"sources":["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"],"names":["React","getNativeElementProps","useText_unstable","props","ref","wrap","truncate","block","italic","underline","strikethrough","size","font","weight","align","as","state","components","root"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,qBAAqB,QAAQ,4BAA4B;AAGlE;;;;;;;;CAQC,GACD,OAAO,MAAMC,mBAAmB,CAACC,OAAkBC,MAA2C;IAC5F,MAAM,EAAEC,KAAI,EAAEC,SAAQ,EAAEC,MAAK,EAAEC,OAAM,EAAEC,UAAS,EAAEC,cAAa,EAAEC,KAAI,EAAEC,KAAI,EAAEC,OAAM,EAAEC,MAAK,EAAE,GAAGX;QACpFA;IAAX,MAAMY,KAAKZ,CAAAA,YAAAA,MAAMY,EAAE,cAARZ,uBAAAA,YAAY,MAAM;IAE7B,MAAMa,QAAmB;QACvBF,OAAOA,kBAAAA,mBAAAA,QAAS,OAAO;QACvBP,OAAOA,kBAAAA,mBAAAA,QAAS,KAAK;QACrBK,MAAMA,iBAAAA,kBAAAA,OAAQ,MAAM;QACpBJ,QAAQA,mBAAAA,oBAAAA,SAAU,KAAK;QACvBG,MAAMA,iBAAAA,kBAAAA,OAAQ,GAAG;QACjBD,eAAeA,0BAAAA,2BAAAA,gBAAiB,KAAK;QACrCJ,UAAUA,qBAAAA,sBAAAA,WAAY,KAAK;QAC3BG,WAAWA,sBAAAA,uBAAAA,YAAa,KAAK;QAC7BI,QAAQA,mBAAAA,oBAAAA,SAAU,SAAS;QAC3BR,MAAMA,iBAAAA,kBAAAA,OAAQ,IAAI;QAElBY,YAAY;YAAEC,MAAM;QAAO;QAE3BA,MAAMjB,sBAAsBc,IAAI;YAC9BX;YACA,GAAGD,KAAK;YACRY;QACF;IACF;IAEA,OAAOC;AACT,EAAE"}
1
+ {"version":3,"sources":["useText.ts"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps, slot } 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: slot.always(\n getNativeElementProps(as, {\n ref,\n ...props,\n as,\n }),\n { elementType: 'span' },\n ),\n };\n\n return state;\n};\n"],"names":["React","getNativeElementProps","slot","useText_unstable","props","ref","wrap","truncate","block","italic","underline","strikethrough","size","font","weight","align","as","state","components","root","always","elementType"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,qBAAqB,EAAEC,IAAI,QAAQ,4BAA4B;AAGxE;;;;;;;;CAQC,GACD,OAAO,MAAMC,mBAAmB,CAACC,OAAkBC,MAA2C;IAC5F,MAAM,EAAEC,KAAI,EAAEC,SAAQ,EAAEC,MAAK,EAAEC,OAAM,EAAEC,UAAS,EAAEC,cAAa,EAAEC,KAAI,EAAEC,KAAI,EAAEC,OAAM,EAAEC,MAAK,EAAE,GAAGX;QACpFA;IAAX,MAAMY,KAAKZ,CAAAA,YAAAA,MAAMY,EAAE,cAARZ,uBAAAA,YAAY,MAAM;IAE7B,MAAMa,QAAmB;QACvBF,OAAOA,kBAAAA,mBAAAA,QAAS,OAAO;QACvBP,OAAOA,kBAAAA,mBAAAA,QAAS,KAAK;QACrBK,MAAMA,iBAAAA,kBAAAA,OAAQ,MAAM;QACpBJ,QAAQA,mBAAAA,oBAAAA,SAAU,KAAK;QACvBG,MAAMA,iBAAAA,kBAAAA,OAAQ,GAAG;QACjBD,eAAeA,0BAAAA,2BAAAA,gBAAiB,KAAK;QACrCJ,UAAUA,qBAAAA,sBAAAA,WAAY,KAAK;QAC3BG,WAAWA,sBAAAA,uBAAAA,YAAa,KAAK;QAC7BI,QAAQA,mBAAAA,oBAAAA,SAAU,SAAS;QAC3BR,MAAMA,iBAAAA,kBAAAA,OAAQ,IAAI;QAElBY,YAAY;YAAEC,MAAM;QAAO;QAE3BA,MAAMjB,KAAKkB,MAAM,CACfnB,sBAAsBe,IAAI;YACxBX;YACA,GAAGD,KAAK;YACRY;QACF,IACA;YAAEK,aAAa;QAAO;IAE1B;IAEA,OAAOJ;AACT,EAAE"}
@@ -9,6 +9,6 @@ Object.defineProperty(exports, "renderText_unstable", {
9
9
  const _reactJsxRuntime = require("@fluentui/react-jsx-runtime");
10
10
  const _reactUtilities = require("@fluentui/react-utilities");
11
11
  const renderText_unstable = (state)=>{
12
- const { slots , slotProps } = (0, _reactUtilities.getSlotsNext)(state);
13
- return /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(slots.root, slotProps.root);
12
+ (0, _reactUtilities.assertSlots)(state);
13
+ return /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(state.root, null);
14
14
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["renderText.js"],"sourcesContent":["/** @jsxRuntime classic */ /** @jsx createElement */ import { createElement } from '@fluentui/react-jsx-runtime';\nimport { getSlotsNext } from '@fluentui/react-utilities';\n/**\n * Render the final JSX of Text\n */ export const renderText_unstable = (state)=>{\n const { slots , slotProps } = getSlotsNext(state);\n return /*#__PURE__*/ createElement(slots.root, slotProps.root);\n};\n"],"names":["renderText_unstable","state","slots","slotProps","getSlotsNext","createElement","root"],"mappings":"AAAA,wBAAwB,GAAG,uBAAuB;;;;+BAIjCA;;aAAAA;;iCAJkE;gCACtD;AAGlB,MAAMA,sBAAsB,CAACC,QAAQ;IAC5C,MAAM,EAAEC,MAAK,EAAGC,UAAS,EAAG,GAAGC,IAAAA,4BAAY,EAACH;IAC5C,OAAO,WAAW,GAAGI,IAAAA,8BAAa,EAACH,MAAMI,IAAI,EAAEH,UAAUG,IAAI;AACjE"}
1
+ {"version":3,"sources":["renderText.js"],"sourcesContent":["/** @jsxRuntime classic */ /** @jsx createElement */ import { createElement } from '@fluentui/react-jsx-runtime';\nimport { assertSlots } from '@fluentui/react-utilities';\n/**\n * Render the final JSX of Text\n */ export const renderText_unstable = (state)=>{\n assertSlots(state);\n return /*#__PURE__*/ createElement(state.root, null);\n};\n"],"names":["renderText_unstable","state","assertSlots","createElement","root"],"mappings":"AAAA,wBAAwB,GAAG,uBAAuB;;;;+BAIjCA;;aAAAA;;iCAJkE;gCACvD;AAGjB,MAAMA,sBAAsB,CAACC,QAAQ;IAC5CC,IAAAA,2BAAW,EAACD;IACZ,OAAO,WAAW,GAAGE,IAAAA,8BAAa,EAACF,MAAMG,IAAI,EAAE,IAAI;AACvD"}
@@ -27,10 +27,12 @@ const useText_unstable = (props, ref)=>{
27
27
  components: {
28
28
  root: 'span'
29
29
  },
30
- root: (0, _reactUtilities.getNativeElementProps)(as, {
30
+ root: _reactUtilities.slot.always((0, _reactUtilities.getNativeElementProps)(as, {
31
31
  ref,
32
32
  ...props,
33
33
  as
34
+ }), {
35
+ elementType: 'span'
34
36
  })
35
37
  };
36
38
  return state;
@@ -1 +1 @@
1
- {"version":3,"sources":["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 */ export const useText_unstable = (props, ref)=>{\n const { wrap , truncate , block , italic , underline , strikethrough , size , font , weight , align } = 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"],"names":["useText_unstable","props","ref","wrap","truncate","block","italic","underline","strikethrough","size","font","weight","align","_props_as","as","state","components","root","getNativeElementProps"],"mappings":";;;;+BAUiBA;;aAAAA;;;6DAVM;gCACe;AAS3B,MAAMA,mBAAmB,CAACC,OAAOC,MAAM;IAC9C,MAAM,EAAEC,KAAI,EAAGC,SAAQ,EAAGC,MAAK,EAAGC,OAAM,EAAGC,UAAS,EAAGC,cAAa,EAAGC,KAAI,EAAGC,KAAI,EAAGC,OAAM,EAAGC,MAAK,EAAG,GAAGX;IACzG,IAAIY;IACJ,MAAMC,KAAK,AAACD,CAAAA,YAAYZ,MAAMa,EAAE,AAAD,MAAO,IAAI,IAAID,cAAc,KAAK,IAAIA,YAAY,MAAM;IACvF,MAAME,QAAQ;QACVH,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;YACRC,MAAM;QACV;QACAA,MAAMC,IAAAA,qCAAqB,EAACJ,IAAI;YAC5BZ;YACA,GAAGD,KAAK;YACRa;QACJ;IACJ;IACA,OAAOC;AACX"}
1
+ {"version":3,"sources":["useText.js"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps, slot } 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 */ export const useText_unstable = (props, ref)=>{\n const { wrap , truncate , block , italic , underline , strikethrough , size , font , weight , align } = 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: slot.always(getNativeElementProps(as, {\n ref,\n ...props,\n as\n }), {\n elementType: 'span'\n })\n };\n return state;\n};\n"],"names":["useText_unstable","props","ref","wrap","truncate","block","italic","underline","strikethrough","size","font","weight","align","_props_as","as","state","components","root","slot","always","getNativeElementProps","elementType"],"mappings":";;;;+BAUiBA;;aAAAA;;;6DAVM;gCACqB;AASjC,MAAMA,mBAAmB,CAACC,OAAOC,MAAM;IAC9C,MAAM,EAAEC,KAAI,EAAGC,SAAQ,EAAGC,MAAK,EAAGC,OAAM,EAAGC,UAAS,EAAGC,cAAa,EAAGC,KAAI,EAAGC,KAAI,EAAGC,OAAM,EAAGC,MAAK,EAAG,GAAGX;IACzG,IAAIY;IACJ,MAAMC,KAAK,AAACD,CAAAA,YAAYZ,MAAMa,EAAE,AAAD,MAAO,IAAI,IAAID,cAAc,KAAK,IAAIA,YAAY,MAAM;IACvF,MAAME,QAAQ;QACVH,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;YACRC,MAAM;QACV;QACAA,MAAMC,oBAAI,CAACC,MAAM,CAACC,IAAAA,qCAAqB,EAACN,IAAI;YACxCZ;YACA,GAAGD,KAAK;YACRa;QACJ,IAAI;YACAO,aAAa;QACjB;IACJ;IACA,OAAON;AACX"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-text",
3
- "version": "9.3.19",
3
+ "version": "9.3.21",
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",
@@ -33,11 +33,11 @@
33
33
  "@fluentui/scripts-tasks": "*"
34
34
  },
35
35
  "dependencies": {
36
- "@fluentui/react-shared-contexts": "^9.7.0",
37
- "@fluentui/react-theme": "^9.1.9",
38
- "@fluentui/react-utilities": "^9.10.1",
39
- "@fluentui/react-jsx-runtime": "9.0.0-alpha.12",
40
- "@griffel/react": "^1.5.7",
36
+ "@fluentui/react-shared-contexts": "^9.7.2",
37
+ "@fluentui/react-theme": "^9.1.11",
38
+ "@fluentui/react-utilities": "^9.11.0",
39
+ "@fluentui/react-jsx-runtime": "9.0.0-alpha.14",
40
+ "@griffel/react": "^1.5.14",
41
41
  "@swc/helpers": "^0.4.14"
42
42
  },
43
43
  "peerDependencies": {