@fluentui/react-field 0.0.0-nightly-20230417-0419.1 → 0.0.0-nightly-20230419-0423.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-field",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 17 Apr 2023 04:25:02 GMT",
6
- "tag": "@fluentui/react-field_v0.0.0-nightly-20230417-0419.1",
7
- "version": "0.0.0-nightly-20230417-0419.1",
5
+ "date": "Wed, 19 Apr 2023 04:31:09 GMT",
6
+ "tag": "@fluentui/react-field_v0.0.0-nightly-20230419-0423.1",
7
+ "version": "0.0.0-nightly-20230419-0423.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
@@ -16,32 +16,79 @@
16
16
  {
17
17
  "author": "beachball",
18
18
  "package": "@fluentui/react-field",
19
- "comment": "Bump @fluentui/react-context-selector to v0.0.0-nightly-20230417-0419.1",
20
- "commit": "bb0386ad4bfe6b30d15a35e03571fb3d14b6efc3"
19
+ "comment": "Bump @fluentui/react-context-selector to v0.0.0-nightly-20230419-0423.1",
20
+ "commit": "6ddf2ae2968cadd0aa45d3d661b779093482f578"
21
21
  },
22
22
  {
23
23
  "author": "beachball",
24
24
  "package": "@fluentui/react-field",
25
- "comment": "Bump @fluentui/react-label to v0.0.0-nightly-20230417-0419.1",
26
- "commit": "bb0386ad4bfe6b30d15a35e03571fb3d14b6efc3"
25
+ "comment": "Bump @fluentui/react-jsx-runtime to v0.0.0-nightly-20230419-0423.1",
26
+ "commit": "6ddf2ae2968cadd0aa45d3d661b779093482f578"
27
27
  },
28
28
  {
29
29
  "author": "beachball",
30
30
  "package": "@fluentui/react-field",
31
- "comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20230417-0419.1",
32
- "commit": "bb0386ad4bfe6b30d15a35e03571fb3d14b6efc3"
31
+ "comment": "Bump @fluentui/react-label to v0.0.0-nightly-20230419-0423.1",
32
+ "commit": "6ddf2ae2968cadd0aa45d3d661b779093482f578"
33
33
  },
34
34
  {
35
35
  "author": "beachball",
36
36
  "package": "@fluentui/react-field",
37
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20230417-0419.1",
38
- "commit": "bb0386ad4bfe6b30d15a35e03571fb3d14b6efc3"
37
+ "comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20230419-0423.1",
38
+ "commit": "6ddf2ae2968cadd0aa45d3d661b779093482f578"
39
39
  },
40
40
  {
41
41
  "author": "beachball",
42
42
  "package": "@fluentui/react-field",
43
- "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230417-0419.1",
44
- "commit": "bb0386ad4bfe6b30d15a35e03571fb3d14b6efc3"
43
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20230419-0423.1",
44
+ "commit": "6ddf2ae2968cadd0aa45d3d661b779093482f578"
45
+ },
46
+ {
47
+ "author": "beachball",
48
+ "package": "@fluentui/react-field",
49
+ "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230419-0423.1",
50
+ "commit": "6ddf2ae2968cadd0aa45d3d661b779093482f578"
51
+ }
52
+ ]
53
+ }
54
+ },
55
+ {
56
+ "date": "Mon, 17 Apr 2023 17:53:50 GMT",
57
+ "tag": "@fluentui/react-field_v9.1.0",
58
+ "version": "9.1.0",
59
+ "comments": {
60
+ "patch": [
61
+ {
62
+ "author": "behowell@microsoft.com",
63
+ "package": "@fluentui/react-field",
64
+ "commit": "273116e8efaf4230474a0f214e9adbb5f556e5de",
65
+ "comment": "chore: Remove utilities for deprecated shim InputField, etc. components"
66
+ }
67
+ ],
68
+ "minor": [
69
+ {
70
+ "author": "behowell@microsoft.com",
71
+ "package": "@fluentui/react-field",
72
+ "commit": "36f98c3a49334e4ea9b22774691560d11010f2e7",
73
+ "comment": "feat: Release Field component as stable"
74
+ },
75
+ {
76
+ "author": "beachball",
77
+ "package": "@fluentui/react-field",
78
+ "comment": "Bump @fluentui/react-context-selector to v9.1.18",
79
+ "commit": "35d247e0b6a8c2b22e69942afbabe18043e59585"
80
+ },
81
+ {
82
+ "author": "beachball",
83
+ "package": "@fluentui/react-field",
84
+ "comment": "Bump @fluentui/react-label to v9.1.9",
85
+ "commit": "35d247e0b6a8c2b22e69942afbabe18043e59585"
86
+ },
87
+ {
88
+ "author": "beachball",
89
+ "package": "@fluentui/react-field",
90
+ "comment": "Bump @fluentui/react-utilities to v9.8.0",
91
+ "commit": "35d247e0b6a8c2b22e69942afbabe18043e59585"
45
92
  }
46
93
  ]
47
94
  }
package/CHANGELOG.md CHANGED
@@ -1,22 +1,39 @@
1
1
  # Change Log - @fluentui/react-field
2
2
 
3
- This log was last generated on Mon, 17 Apr 2023 04:25:02 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 19 Apr 2023 04:31:09 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly-20230417-0419.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-field_v0.0.0-nightly-20230417-0419.1)
7
+ ## [0.0.0-nightly-20230419-0423.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-field_v0.0.0-nightly-20230419-0423.1)
8
8
 
9
- Mon, 17 Apr 2023 04:25:02 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-field_v9.0.0-beta.2..@fluentui/react-field_v0.0.0-nightly-20230417-0419.1)
9
+ Wed, 19 Apr 2023 04:31:09 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-field_v9.1.0..@fluentui/react-field_v0.0.0-nightly-20230419-0423.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-context-selector to v0.0.0-nightly-20230417-0419.1 ([commit](https://github.com/microsoft/fluentui/commit/bb0386ad4bfe6b30d15a35e03571fb3d14b6efc3) by beachball)
16
- - Bump @fluentui/react-label to v0.0.0-nightly-20230417-0419.1 ([commit](https://github.com/microsoft/fluentui/commit/bb0386ad4bfe6b30d15a35e03571fb3d14b6efc3) by beachball)
17
- - Bump @fluentui/react-theme to v0.0.0-nightly-20230417-0419.1 ([commit](https://github.com/microsoft/fluentui/commit/bb0386ad4bfe6b30d15a35e03571fb3d14b6efc3) by beachball)
18
- - Bump @fluentui/react-utilities to v0.0.0-nightly-20230417-0419.1 ([commit](https://github.com/microsoft/fluentui/commit/bb0386ad4bfe6b30d15a35e03571fb3d14b6efc3) by beachball)
19
- - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230417-0419.1 ([commit](https://github.com/microsoft/fluentui/commit/bb0386ad4bfe6b30d15a35e03571fb3d14b6efc3) by beachball)
15
+ - Bump @fluentui/react-context-selector to v0.0.0-nightly-20230419-0423.1 ([commit](https://github.com/microsoft/fluentui/commit/6ddf2ae2968cadd0aa45d3d661b779093482f578) by beachball)
16
+ - Bump @fluentui/react-jsx-runtime to v0.0.0-nightly-20230419-0423.1 ([commit](https://github.com/microsoft/fluentui/commit/6ddf2ae2968cadd0aa45d3d661b779093482f578) by beachball)
17
+ - Bump @fluentui/react-label to v0.0.0-nightly-20230419-0423.1 ([commit](https://github.com/microsoft/fluentui/commit/6ddf2ae2968cadd0aa45d3d661b779093482f578) by beachball)
18
+ - Bump @fluentui/react-theme to v0.0.0-nightly-20230419-0423.1 ([commit](https://github.com/microsoft/fluentui/commit/6ddf2ae2968cadd0aa45d3d661b779093482f578) by beachball)
19
+ - Bump @fluentui/react-utilities to v0.0.0-nightly-20230419-0423.1 ([commit](https://github.com/microsoft/fluentui/commit/6ddf2ae2968cadd0aa45d3d661b779093482f578) by beachball)
20
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230419-0423.1 ([commit](https://github.com/microsoft/fluentui/commit/6ddf2ae2968cadd0aa45d3d661b779093482f578) by beachball)
21
+
22
+ ## [9.1.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-field_v9.1.0)
23
+
24
+ Mon, 17 Apr 2023 17:53:50 GMT
25
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-field_v9.0.0-beta.2..@fluentui/react-field_v9.1.0)
26
+
27
+ ### Minor changes
28
+
29
+ - feat: Release Field component as stable ([PR #27493](https://github.com/microsoft/fluentui/pull/27493) by behowell@microsoft.com)
30
+ - Bump @fluentui/react-context-selector to v9.1.18 ([PR #27564](https://github.com/microsoft/fluentui/pull/27564) by beachball)
31
+ - Bump @fluentui/react-label to v9.1.9 ([PR #27564](https://github.com/microsoft/fluentui/pull/27564) by beachball)
32
+ - Bump @fluentui/react-utilities to v9.8.0 ([PR #27564](https://github.com/microsoft/fluentui/pull/27564) by beachball)
33
+
34
+ ### Patches
35
+
36
+ - chore: Remove utilities for deprecated shim InputField, etc. components ([PR #27492](https://github.com/microsoft/fluentui/pull/27492) by behowell@microsoft.com)
20
37
 
21
38
  ## [9.0.0-beta.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-field_v9.0.0-beta.2)
22
39
 
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
- import { getSlots } from '@fluentui/react-utilities';
1
+ /** @jsxRuntime classic */ /** @jsx createElement */import { createElement } from '@fluentui/react-jsx-runtime';
2
+ import { getSlotsNext } from '@fluentui/react-utilities';
3
3
  import { FieldContextProvider, getFieldControlProps } from '../../contexts/index';
4
4
  /**
5
5
  * Render the final JSX of Field
@@ -8,15 +8,15 @@ export const renderField_unstable = (state, contextValues) => {
8
8
  const {
9
9
  slots,
10
10
  slotProps
11
- } = getSlots(state);
11
+ } = getSlotsNext(state);
12
12
  let {
13
13
  children
14
14
  } = state;
15
15
  if (typeof children === 'function') {
16
16
  children = children(getFieldControlProps(contextValues.field) || {});
17
17
  }
18
- return /*#__PURE__*/React.createElement(FieldContextProvider, {
18
+ return /*#__PURE__*/createElement(FieldContextProvider, {
19
19
  value: contextValues === null || contextValues === void 0 ? void 0 : contextValues.field
20
- }, /*#__PURE__*/React.createElement(slots.root, slotProps.root, slots.label && /*#__PURE__*/React.createElement(slots.label, slotProps.label), children, slots.validationMessage && /*#__PURE__*/React.createElement(slots.validationMessage, slotProps.validationMessage, slots.validationMessageIcon && /*#__PURE__*/React.createElement(slots.validationMessageIcon, slotProps.validationMessageIcon), slotProps.validationMessage.children), slots.hint && /*#__PURE__*/React.createElement(slots.hint, slotProps.hint)));
20
+ }, /*#__PURE__*/createElement(slots.root, slotProps.root, slots.label && /*#__PURE__*/createElement(slots.label, slotProps.label), children, slots.validationMessage && /*#__PURE__*/createElement(slots.validationMessage, slotProps.validationMessage, slots.validationMessageIcon && /*#__PURE__*/createElement(slots.validationMessageIcon, slotProps.validationMessageIcon), slotProps.validationMessage.children), slots.hint && /*#__PURE__*/createElement(slots.hint, slotProps.hint)));
21
21
  };
22
22
  //# sourceMappingURL=renderField.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","getSlots","FieldContextProvider","getFieldControlProps","renderField_unstable","state","contextValues","slots","slotProps","children","field","createElement","value","root","label","validationMessage","validationMessageIcon","hint"],"sources":["../../../src/components/Field/renderField.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { getSlots } from '@fluentui/react-utilities';\nimport { FieldContextProvider, getFieldControlProps } from '../../contexts/index';\nimport type { FieldContextValues, FieldSlots, FieldState } from './Field.types';\n\n/**\n * Render the final JSX of Field\n */\nexport const renderField_unstable = (state: FieldState, contextValues: FieldContextValues) => {\n const { slots, slotProps } = getSlots<FieldSlots>(state);\n\n let { children } = state;\n if (typeof children === 'function') {\n children = children(getFieldControlProps(contextValues.field) || {});\n }\n\n return (\n <FieldContextProvider value={contextValues?.field}>\n <slots.root {...slotProps.root}>\n {slots.label && <slots.label {...slotProps.label} />}\n {children}\n {slots.validationMessage && (\n <slots.validationMessage {...slotProps.validationMessage}>\n {slots.validationMessageIcon && <slots.validationMessageIcon {...slotProps.validationMessageIcon} />}\n {slotProps.validationMessage.children}\n </slots.validationMessage>\n )}\n {slots.hint && <slots.hint {...slotProps.hint} />}\n </slots.root>\n </FieldContextProvider>\n );\n};\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AAEvB,SAASC,QAAQ,QAAQ;AACzB,SAASC,oBAAoB,EAAEC,oBAAoB,QAAQ;AAG3D;;;AAGA,OAAO,MAAMC,oBAAA,GAAuBA,CAACC,KAAA,EAAmBC,aAAA,KAAsC;EAC5F,MAAM;IAAEC,KAAA;IAAOC;EAAS,CAAE,GAAGP,QAAA,CAAqBI,KAAA;EAElD,IAAI;IAAEI;EAAQ,CAAE,GAAGJ,KAAA;EACnB,IAAI,OAAOI,QAAA,KAAa,YAAY;IAClCA,QAAA,GAAWA,QAAA,CAASN,oBAAA,CAAqBG,aAAA,CAAcI,KAAK,KAAK,CAAC;EACpE;EAEA,oBACEV,KAAA,CAAAW,aAAA,CAACT,oBAAA;IAAqBU,KAAA,EAAON,aAAA,aAAAA,aAAA,uBAAAA,aAAA,CAAeI;kBAC1CV,KAAA,CAAAW,aAAA,CAACJ,KAAA,CAAMM,IAAI,EAAKL,SAAA,CAAUK,IAAI,EAC3BN,KAAA,CAAMO,KAAK,iBAAId,KAAA,CAAAW,aAAA,CAACJ,KAAA,CAAMO,KAAK,EAAKN,SAAA,CAAUM,KAAK,GAC/CL,QAAA,EACAF,KAAA,CAAMQ,iBAAiB,iBACtBf,KAAA,CAAAW,aAAA,CAACJ,KAAA,CAAMQ,iBAAiB,EAAKP,SAAA,CAAUO,iBAAiB,EACrDR,KAAA,CAAMS,qBAAqB,iBAAIhB,KAAA,CAAAW,aAAA,CAACJ,KAAA,CAAMS,qBAAqB,EAAKR,SAAA,CAAUQ,qBAAqB,GAC/FR,SAAA,CAAUO,iBAAiB,CAACN,QAAQ,GAGxCF,KAAA,CAAMU,IAAI,iBAAIjB,KAAA,CAAAW,aAAA,CAACJ,KAAA,CAAMU,IAAI,EAAKT,SAAA,CAAUS,IAAI;AAIrD"}
1
+ {"version":3,"names":["createElement","getSlotsNext","FieldContextProvider","getFieldControlProps","renderField_unstable","state","contextValues","slots","slotProps","children","field","value","root","label","validationMessage","validationMessageIcon","hint"],"sources":["../../../src/components/Field/renderField.tsx"],"sourcesContent":["/** @jsxRuntime classic */\n/** @jsx createElement */\n\nimport { createElement } from '@fluentui/react-jsx-runtime';\n\nimport { getSlotsNext } from '@fluentui/react-utilities';\nimport { FieldContextProvider, getFieldControlProps } from '../../contexts/index';\nimport type { FieldContextValues, FieldSlots, FieldState } from './Field.types';\n\n/**\n * Render the final JSX of Field\n */\nexport const renderField_unstable = (state: FieldState, contextValues: FieldContextValues) => {\n const { slots, slotProps } = getSlotsNext<FieldSlots>(state);\n\n let { children } = state;\n if (typeof children === 'function') {\n children = children(getFieldControlProps(contextValues.field) || {});\n }\n\n return (\n <FieldContextProvider value={contextValues?.field}>\n <slots.root {...slotProps.root}>\n {slots.label && <slots.label {...slotProps.label} />}\n {children}\n {slots.validationMessage && (\n <slots.validationMessage {...slotProps.validationMessage}>\n {slots.validationMessageIcon && <slots.validationMessageIcon {...slotProps.validationMessageIcon} />}\n {slotProps.validationMessage.children}\n </slots.validationMessage>\n )}\n {slots.hint && <slots.hint {...slotProps.hint} />}\n </slots.root>\n </FieldContextProvider>\n );\n};\n"],"mappings":"AAAA,2BACA,yBAEA,SAASA,aAAa,QAAQ;AAE9B,SAASC,YAAY,QAAQ;AAC7B,SAASC,oBAAoB,EAAEC,oBAAoB,QAAQ;AAG3D;;;AAGA,OAAO,MAAMC,oBAAA,GAAuBA,CAACC,KAAA,EAAmBC,aAAA,KAAsC;EAC5F,MAAM;IAAEC,KAAA;IAAOC;EAAS,CAAE,GAAGP,YAAA,CAAyBI,KAAA;EAEtD,IAAI;IAAEI;EAAQ,CAAE,GAAGJ,KAAA;EACnB,IAAI,OAAOI,QAAA,KAAa,YAAY;IAClCA,QAAA,GAAWA,QAAA,CAASN,oBAAA,CAAqBG,aAAA,CAAcI,KAAK,KAAK,CAAC;EACpE;EAEA,oBACEV,aApBJ,CAoBKE,oBAAA;IAAqBS,KAAA,EAAOL,aAAA,aAAAA,aAAA,uBAAAA,aAAA,CAAeI;kBAC1CV,aArBN,CAqBOO,KAAA,CAAMK,IAAI,EAAKJ,SAAA,CAAUI,IAAI,EAC3BL,KAAA,CAAMM,KAAK,iBAAIb,aAtBxB,CAsByBO,KAAA,CAAMM,KAAK,EAAKL,SAAA,CAAUK,KAAK,GAC/CJ,QAAA,EACAF,KAAA,CAAMO,iBAAiB,iBACtBd,aAzBV,CAyBWO,KAAA,CAAMO,iBAAiB,EAAKN,SAAA,CAAUM,iBAAiB,EACrDP,KAAA,CAAMQ,qBAAqB,iBAAIf,aA1B5C,CA0B6CO,KAAA,CAAMQ,qBAAqB,EAAKP,SAAA,CAAUO,qBAAqB,GAC/FP,SAAA,CAAUM,iBAAiB,CAACL,QAAQ,GAGxCF,KAAA,CAAMS,IAAI,iBAAIhB,aA9BvB,CA8BwBO,KAAA,CAAMS,IAAI,EAAKR,SAAA,CAAUQ,IAAI;AAIrD"}
@@ -1,4 +1,4 @@
1
- "use strict";
1
+ /** @jsxRuntime classic */ /** @jsx createElement */ "use strict";
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
@@ -6,19 +6,18 @@ Object.defineProperty(exports, "renderField_unstable", {
6
6
  enumerable: true,
7
7
  get: ()=>renderField_unstable
8
8
  });
9
- const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
- const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
9
+ const _reactJsxRuntime = require("@fluentui/react-jsx-runtime");
11
10
  const _reactUtilities = require("@fluentui/react-utilities");
12
11
  const _index = require("../../contexts/index");
13
12
  const renderField_unstable = (state, contextValues)=>{
14
- const { slots , slotProps } = (0, _reactUtilities.getSlots)(state);
13
+ const { slots , slotProps } = (0, _reactUtilities.getSlotsNext)(state);
15
14
  let { children } = state;
16
15
  if (typeof children === 'function') {
17
16
  children = children((0, _index.getFieldControlProps)(contextValues.field) || {});
18
17
  }
19
- return /*#__PURE__*/ _react.createElement(_index.FieldContextProvider, {
18
+ return /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(_index.FieldContextProvider, {
20
19
  value: contextValues === null || contextValues === void 0 ? void 0 : contextValues.field
21
- }, /*#__PURE__*/ _react.createElement(slots.root, slotProps.root, slots.label && /*#__PURE__*/ _react.createElement(slots.label, slotProps.label), children, slots.validationMessage && /*#__PURE__*/ _react.createElement(slots.validationMessage, slotProps.validationMessage, slots.validationMessageIcon && /*#__PURE__*/ _react.createElement(slots.validationMessageIcon, slotProps.validationMessageIcon), slotProps.validationMessage.children), slots.hint && /*#__PURE__*/ _react.createElement(slots.hint, slotProps.hint)));
20
+ }, /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(slots.root, slotProps.root, slots.label && /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(slots.label, slotProps.label), children, slots.validationMessage && /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(slots.validationMessage, slotProps.validationMessage, slots.validationMessageIcon && /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(slots.validationMessageIcon, slotProps.validationMessageIcon), slotProps.validationMessage.children), slots.hint && /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(slots.hint, slotProps.hint)));
22
21
  }; //# sourceMappingURL=renderField.js.map
23
22
 
24
23
  //# sourceMappingURL=renderField.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../lib/components/Field/renderField.js"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport { FieldContextProvider, getFieldControlProps } from '../../contexts/index';\n/**\n * Render the final JSX of Field\n */\nexport const renderField_unstable = (state, contextValues) => {\n const {\n slots,\n slotProps\n } = getSlots(state);\n let {\n children\n } = state;\n if (typeof children === 'function') {\n children = children(getFieldControlProps(contextValues.field) || {});\n }\n return /*#__PURE__*/React.createElement(FieldContextProvider, {\n value: contextValues === null || contextValues === void 0 ? void 0 : contextValues.field\n }, /*#__PURE__*/React.createElement(slots.root, slotProps.root, slots.label && /*#__PURE__*/React.createElement(slots.label, slotProps.label), children, slots.validationMessage && /*#__PURE__*/React.createElement(slots.validationMessage, slotProps.validationMessage, slots.validationMessageIcon && /*#__PURE__*/React.createElement(slots.validationMessageIcon, slotProps.validationMessageIcon), slotProps.validationMessage.children), slots.hint && /*#__PURE__*/React.createElement(slots.hint, slotProps.hint)));\n};\n//# sourceMappingURL=renderField.js.map"],"names":["renderField_unstable","state","contextValues","slots","slotProps","getSlots","children","getFieldControlProps","field","React","createElement","FieldContextProvider","value","root","label","validationMessage","validationMessageIcon","hint"],"mappings":";;;;+BAMaA;;aAAAA;;;6DANU;gCACE;uBACkC;AAIpD,MAAMA,uBAAuB,CAACC,OAAOC,gBAAkB;IAC5D,MAAM,EACJC,MAAK,EACLC,UAAS,EACV,GAAGC,IAAAA,wBAAQ,EAACJ;IACb,IAAI,EACFK,SAAQ,EACT,GAAGL;IACJ,IAAI,OAAOK,aAAa,YAAY;QAClCA,WAAWA,SAASC,IAAAA,2BAAoB,EAACL,cAAcM,KAAK,KAAK,CAAC;IACpE,CAAC;IACD,OAAO,WAAW,GAAEC,OAAMC,aAAa,CAACC,2BAAoB,EAAE;QAC5DC,OAAOV,kBAAkB,IAAI,IAAIA,kBAAkB,KAAK,IAAI,KAAK,IAAIA,cAAcM,KAAK;IAC1F,GAAG,WAAW,GAAEC,OAAMC,aAAa,CAACP,MAAMU,IAAI,EAAET,UAAUS,IAAI,EAAEV,MAAMW,KAAK,IAAI,WAAW,GAAEL,OAAMC,aAAa,CAACP,MAAMW,KAAK,EAAEV,UAAUU,KAAK,GAAGR,UAAUH,MAAMY,iBAAiB,IAAI,WAAW,GAAEN,OAAMC,aAAa,CAACP,MAAMY,iBAAiB,EAAEX,UAAUW,iBAAiB,EAAEZ,MAAMa,qBAAqB,IAAI,WAAW,GAAEP,OAAMC,aAAa,CAACP,MAAMa,qBAAqB,EAAEZ,UAAUY,qBAAqB,GAAGZ,UAAUW,iBAAiB,CAACT,QAAQ,GAAGH,MAAMc,IAAI,IAAI,WAAW,GAAER,OAAMC,aAAa,CAACP,MAAMc,IAAI,EAAEb,UAAUa,IAAI;AAC5f,GACA,uCAAuC"}
1
+ {"version":3,"sources":["../../../lib/components/Field/renderField.js"],"sourcesContent":["/** @jsxRuntime classic */ /** @jsx createElement */import { createElement } from '@fluentui/react-jsx-runtime';\nimport { getSlotsNext } from '@fluentui/react-utilities';\nimport { FieldContextProvider, getFieldControlProps } from '../../contexts/index';\n/**\n * Render the final JSX of Field\n */\nexport const renderField_unstable = (state, contextValues) => {\n const {\n slots,\n slotProps\n } = getSlotsNext(state);\n let {\n children\n } = state;\n if (typeof children === 'function') {\n children = children(getFieldControlProps(contextValues.field) || {});\n }\n return /*#__PURE__*/createElement(FieldContextProvider, {\n value: contextValues === null || contextValues === void 0 ? void 0 : contextValues.field\n }, /*#__PURE__*/createElement(slots.root, slotProps.root, slots.label && /*#__PURE__*/createElement(slots.label, slotProps.label), children, slots.validationMessage && /*#__PURE__*/createElement(slots.validationMessage, slotProps.validationMessage, slots.validationMessageIcon && /*#__PURE__*/createElement(slots.validationMessageIcon, slotProps.validationMessageIcon), slotProps.validationMessage.children), slots.hint && /*#__PURE__*/createElement(slots.hint, slotProps.hint)));\n};\n//# sourceMappingURL=renderField.js.map"],"names":["renderField_unstable","state","contextValues","slots","slotProps","getSlotsNext","children","getFieldControlProps","field","createElement","FieldContextProvider","value","root","label","validationMessage","validationMessageIcon","hint"],"mappings":"AAAA,wBAAwB,GAAG,uBAAuB;;;;+BAMrCA;;aAAAA;;iCANqE;gCACrD;uBAC8B;AAIpD,MAAMA,uBAAuB,CAACC,OAAOC,gBAAkB;IAC5D,MAAM,EACJC,MAAK,EACLC,UAAS,EACV,GAAGC,IAAAA,4BAAY,EAACJ;IACjB,IAAI,EACFK,SAAQ,EACT,GAAGL;IACJ,IAAI,OAAOK,aAAa,YAAY;QAClCA,WAAWA,SAASC,IAAAA,2BAAoB,EAACL,cAAcM,KAAK,KAAK,CAAC;IACpE,CAAC;IACD,OAAO,WAAW,GAAEC,IAAAA,8BAAa,EAACC,2BAAoB,EAAE;QACtDC,OAAOT,kBAAkB,IAAI,IAAIA,kBAAkB,KAAK,IAAI,KAAK,IAAIA,cAAcM,KAAK;IAC1F,GAAG,WAAW,GAAEC,IAAAA,8BAAa,EAACN,MAAMS,IAAI,EAAER,UAAUQ,IAAI,EAAET,MAAMU,KAAK,IAAI,WAAW,GAAEJ,IAAAA,8BAAa,EAACN,MAAMU,KAAK,EAAET,UAAUS,KAAK,GAAGP,UAAUH,MAAMW,iBAAiB,IAAI,WAAW,GAAEL,IAAAA,8BAAa,EAACN,MAAMW,iBAAiB,EAAEV,UAAUU,iBAAiB,EAAEX,MAAMY,qBAAqB,IAAI,WAAW,GAAEN,IAAAA,8BAAa,EAACN,MAAMY,qBAAqB,EAAEX,UAAUW,qBAAqB,GAAGX,UAAUU,iBAAiB,CAACR,QAAQ,GAAGH,MAAMa,IAAI,IAAI,WAAW,GAAEP,IAAAA,8BAAa,EAACN,MAAMa,IAAI,EAAEZ,UAAUY,IAAI;AAC9d,GACA,uCAAuC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-field",
3
- "version": "0.0.0-nightly-20230417-0419.1",
3
+ "version": "0.0.0-nightly-20230419-0423.1",
4
4
  "description": "Fluent UI Field components",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -27,16 +27,17 @@
27
27
  "devDependencies": {
28
28
  "@fluentui/eslint-plugin": "*",
29
29
  "@fluentui/react-conformance": "*",
30
- "@fluentui/react-conformance-griffel": "0.0.0-nightly-20230417-0419.1",
30
+ "@fluentui/react-conformance-griffel": "0.0.0-nightly-20230419-0423.1",
31
31
  "@fluentui/scripts-api-extractor": "*",
32
32
  "@fluentui/scripts-tasks": "*"
33
33
  },
34
34
  "dependencies": {
35
- "@fluentui/react-context-selector": "0.0.0-nightly-20230417-0419.1",
35
+ "@fluentui/react-context-selector": "0.0.0-nightly-20230419-0423.1",
36
36
  "@fluentui/react-icons": "^2.0.196",
37
- "@fluentui/react-label": "0.0.0-nightly-20230417-0419.1",
38
- "@fluentui/react-theme": "0.0.0-nightly-20230417-0419.1",
39
- "@fluentui/react-utilities": "0.0.0-nightly-20230417-0419.1",
37
+ "@fluentui/react-jsx-runtime": "0.0.0-nightly-20230419-0423.1",
38
+ "@fluentui/react-label": "0.0.0-nightly-20230419-0423.1",
39
+ "@fluentui/react-theme": "0.0.0-nightly-20230419-0423.1",
40
+ "@fluentui/react-utilities": "0.0.0-nightly-20230419-0423.1",
40
41
  "@griffel/react": "^1.5.2",
41
42
  "@swc/helpers": "^0.4.14"
42
43
  },