@fluentui/react-text 0.0.0-nightly-20230804-0415.1 → 0.0.0-nightly-20230808-0415.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 CHANGED
@@ -2,9 +2,9 @@
2
2
  "name": "@fluentui/react-text",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 04 Aug 2023 04:21:58 GMT",
6
- "tag": "@fluentui/react-text_v0.0.0-nightly-20230804-0415.1",
7
- "version": "0.0.0-nightly-20230804-0415.1",
5
+ "date": "Tue, 08 Aug 2023 04:22:13 GMT",
6
+ "tag": "@fluentui/react-text_v0.0.0-nightly-20230808-0415.1",
7
+ "version": "0.0.0-nightly-20230808-0415.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
@@ -16,38 +16,71 @@
16
16
  {
17
17
  "author": "beachball",
18
18
  "package": "@fluentui/react-text",
19
- "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20230804-0415.1",
20
- "commit": "ad95d1723b836488f78769eb56b64caf31baab57"
19
+ "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20230808-0415.1",
20
+ "commit": "307bdb0a82868b26dbcb9a7aa2318bda66c1cd64"
21
21
  },
22
22
  {
23
23
  "author": "beachball",
24
24
  "package": "@fluentui/react-text",
25
- "comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20230804-0415.1",
26
- "commit": "ad95d1723b836488f78769eb56b64caf31baab57"
25
+ "comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20230808-0415.1",
26
+ "commit": "307bdb0a82868b26dbcb9a7aa2318bda66c1cd64"
27
27
  },
28
28
  {
29
29
  "author": "beachball",
30
30
  "package": "@fluentui/react-text",
31
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20230804-0415.1",
32
- "commit": "ad95d1723b836488f78769eb56b64caf31baab57"
31
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20230808-0415.1",
32
+ "commit": "307bdb0a82868b26dbcb9a7aa2318bda66c1cd64"
33
33
  },
34
34
  {
35
35
  "author": "beachball",
36
36
  "package": "@fluentui/react-text",
37
- "comment": "Bump @fluentui/react-jsx-runtime to v0.0.0-nightly-20230804-0415.1",
38
- "commit": "ad95d1723b836488f78769eb56b64caf31baab57"
37
+ "comment": "Bump @fluentui/react-jsx-runtime to v0.0.0-nightly-20230808-0415.1",
38
+ "commit": "307bdb0a82868b26dbcb9a7aa2318bda66c1cd64"
39
39
  },
40
40
  {
41
41
  "author": "beachball",
42
42
  "package": "@fluentui/react-text",
43
- "comment": "Bump @fluentui/react-conformance to v0.0.0-nightly-20230804-0415.1",
44
- "commit": "ad95d1723b836488f78769eb56b64caf31baab57"
43
+ "comment": "Bump @fluentui/react-conformance to v0.0.0-nightly-20230808-0415.1",
44
+ "commit": "307bdb0a82868b26dbcb9a7aa2318bda66c1cd64"
45
45
  },
46
46
  {
47
47
  "author": "beachball",
48
48
  "package": "@fluentui/react-text",
49
- "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230804-0415.1",
50
- "commit": "ad95d1723b836488f78769eb56b64caf31baab57"
49
+ "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230808-0415.1",
50
+ "commit": "307bdb0a82868b26dbcb9a7aa2318bda66c1cd64"
51
+ }
52
+ ]
53
+ }
54
+ },
55
+ {
56
+ "date": "Fri, 04 Aug 2023 08:52:58 GMT",
57
+ "tag": "@fluentui/react-text_v9.3.20",
58
+ "version": "9.3.20",
59
+ "comments": {
60
+ "patch": [
61
+ {
62
+ "author": "beachball",
63
+ "package": "@fluentui/react-text",
64
+ "comment": "Bump @fluentui/react-shared-contexts to v9.7.1",
65
+ "commit": "0bf7d9438c1d0ff90cd2b28bc4cceb4f807afbca"
66
+ },
67
+ {
68
+ "author": "beachball",
69
+ "package": "@fluentui/react-text",
70
+ "comment": "Bump @fluentui/react-theme to v9.1.10",
71
+ "commit": "0bf7d9438c1d0ff90cd2b28bc4cceb4f807afbca"
72
+ },
73
+ {
74
+ "author": "beachball",
75
+ "package": "@fluentui/react-text",
76
+ "comment": "Bump @fluentui/react-utilities to v9.11.0",
77
+ "commit": "0bf7d9438c1d0ff90cd2b28bc4cceb4f807afbca"
78
+ },
79
+ {
80
+ "author": "beachball",
81
+ "package": "@fluentui/react-text",
82
+ "comment": "Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.13",
83
+ "commit": "0bf7d9438c1d0ff90cd2b28bc4cceb4f807afbca"
51
84
  }
52
85
  ]
53
86
  }
package/CHANGELOG.md CHANGED
@@ -1,23 +1,35 @@
1
1
  # Change Log - @fluentui/react-text
2
2
 
3
- This log was last generated on Fri, 04 Aug 2023 04:21:58 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 08 Aug 2023 04:22:13 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly-20230804-0415.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v0.0.0-nightly-20230804-0415.1)
7
+ ## [0.0.0-nightly-20230808-0415.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v0.0.0-nightly-20230808-0415.1)
8
8
 
9
- Fri, 04 Aug 2023 04:21:58 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.3.19..@fluentui/react-text_v0.0.0-nightly-20230804-0415.1)
9
+ Tue, 08 Aug 2023 04:22:13 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.3.20..@fluentui/react-text_v0.0.0-nightly-20230808-0415.1)
11
11
 
12
12
  ### Changes
13
13
 
14
14
  - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/not available) by fluentui-internal@service.microsoft.com)
15
- - Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20230804-0415.1 ([commit](https://github.com/microsoft/fluentui/commit/ad95d1723b836488f78769eb56b64caf31baab57) by beachball)
16
- - Bump @fluentui/react-theme to v0.0.0-nightly-20230804-0415.1 ([commit](https://github.com/microsoft/fluentui/commit/ad95d1723b836488f78769eb56b64caf31baab57) by beachball)
17
- - Bump @fluentui/react-utilities to v0.0.0-nightly-20230804-0415.1 ([commit](https://github.com/microsoft/fluentui/commit/ad95d1723b836488f78769eb56b64caf31baab57) by beachball)
18
- - Bump @fluentui/react-jsx-runtime to v0.0.0-nightly-20230804-0415.1 ([commit](https://github.com/microsoft/fluentui/commit/ad95d1723b836488f78769eb56b64caf31baab57) by beachball)
19
- - Bump @fluentui/react-conformance to v0.0.0-nightly-20230804-0415.1 ([commit](https://github.com/microsoft/fluentui/commit/ad95d1723b836488f78769eb56b64caf31baab57) by beachball)
20
- - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230804-0415.1 ([commit](https://github.com/microsoft/fluentui/commit/ad95d1723b836488f78769eb56b64caf31baab57) by beachball)
15
+ - Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20230808-0415.1 ([commit](https://github.com/microsoft/fluentui/commit/307bdb0a82868b26dbcb9a7aa2318bda66c1cd64) by beachball)
16
+ - Bump @fluentui/react-theme to v0.0.0-nightly-20230808-0415.1 ([commit](https://github.com/microsoft/fluentui/commit/307bdb0a82868b26dbcb9a7aa2318bda66c1cd64) by beachball)
17
+ - Bump @fluentui/react-utilities to v0.0.0-nightly-20230808-0415.1 ([commit](https://github.com/microsoft/fluentui/commit/307bdb0a82868b26dbcb9a7aa2318bda66c1cd64) by beachball)
18
+ - Bump @fluentui/react-jsx-runtime to v0.0.0-nightly-20230808-0415.1 ([commit](https://github.com/microsoft/fluentui/commit/307bdb0a82868b26dbcb9a7aa2318bda66c1cd64) by beachball)
19
+ - Bump @fluentui/react-conformance to v0.0.0-nightly-20230808-0415.1 ([commit](https://github.com/microsoft/fluentui/commit/307bdb0a82868b26dbcb9a7aa2318bda66c1cd64) by beachball)
20
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230808-0415.1 ([commit](https://github.com/microsoft/fluentui/commit/307bdb0a82868b26dbcb9a7aa2318bda66c1cd64) by beachball)
21
+
22
+ ## [9.3.20](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.3.20)
23
+
24
+ Fri, 04 Aug 2023 08:52:58 GMT
25
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.3.19..@fluentui/react-text_v9.3.20)
26
+
27
+ ### Patches
28
+
29
+ - Bump @fluentui/react-shared-contexts to v9.7.1 ([commit](https://github.com/microsoft/fluentui/commit/0bf7d9438c1d0ff90cd2b28bc4cceb4f807afbca) by beachball)
30
+ - Bump @fluentui/react-theme to v9.1.10 ([commit](https://github.com/microsoft/fluentui/commit/0bf7d9438c1d0ff90cd2b28bc4cceb4f807afbca) by beachball)
31
+ - Bump @fluentui/react-utilities to v9.11.0 ([commit](https://github.com/microsoft/fluentui/commit/0bf7d9438c1d0ff90cd2b28bc4cceb4f807afbca) by beachball)
32
+ - Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.13 ([commit](https://github.com/microsoft/fluentui/commit/0bf7d9438c1d0ff90cd2b28bc4cceb4f807afbca) by beachball)
21
33
 
22
34
  ## [9.3.19](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.3.19)
23
35
 
@@ -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": "0.0.0-nightly-20230804-0415.1",
3
+ "version": "0.0.0-nightly-20230808-0415.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,16 +27,16 @@
27
27
  },
28
28
  "devDependencies": {
29
29
  "@fluentui/eslint-plugin": "*",
30
- "@fluentui/react-conformance": "0.0.0-nightly-20230804-0415.1",
31
- "@fluentui/react-conformance-griffel": "0.0.0-nightly-20230804-0415.1",
30
+ "@fluentui/react-conformance": "0.0.0-nightly-20230808-0415.1",
31
+ "@fluentui/react-conformance-griffel": "0.0.0-nightly-20230808-0415.1",
32
32
  "@fluentui/scripts-api-extractor": "*",
33
33
  "@fluentui/scripts-tasks": "*"
34
34
  },
35
35
  "dependencies": {
36
- "@fluentui/react-shared-contexts": "0.0.0-nightly-20230804-0415.1",
37
- "@fluentui/react-theme": "0.0.0-nightly-20230804-0415.1",
38
- "@fluentui/react-utilities": "0.0.0-nightly-20230804-0415.1",
39
- "@fluentui/react-jsx-runtime": "0.0.0-nightly-20230804-0415.1",
36
+ "@fluentui/react-shared-contexts": "0.0.0-nightly-20230808-0415.1",
37
+ "@fluentui/react-theme": "0.0.0-nightly-20230808-0415.1",
38
+ "@fluentui/react-utilities": "0.0.0-nightly-20230808-0415.1",
39
+ "@fluentui/react-jsx-runtime": "0.0.0-nightly-20230808-0415.1",
40
40
  "@griffel/react": "^1.5.7",
41
41
  "@swc/helpers": "^0.4.14"
42
42
  },