@fluentui/react-switch 9.1.8 → 9.1.10

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,85 @@
2
2
  "name": "@fluentui/react-switch",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 06 Apr 2023 23:59:53 GMT",
5
+ "date": "Mon, 17 Apr 2023 17:50:09 GMT",
6
+ "tag": "@fluentui/react-switch_v9.1.10",
7
+ "version": "9.1.10",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "behowell@microsoft.com",
12
+ "package": "@fluentui/react-switch",
13
+ "commit": "273116e8efaf4230474a0f214e9adbb5f556e5de",
14
+ "comment": "chore: Remove deprecated SwitchField_unstable shim component"
15
+ },
16
+ {
17
+ "author": "behowell@microsoft.com",
18
+ "package": "@fluentui/react-switch",
19
+ "commit": "36f98c3a49334e4ea9b22774691560d11010f2e7",
20
+ "comment": "chore: Update react-field dependency version"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-switch",
25
+ "comment": "Bump @fluentui/react-field to v9.1.0",
26
+ "commit": "35d247e0b6a8c2b22e69942afbabe18043e59585"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-switch",
31
+ "comment": "Bump @fluentui/react-label to v9.1.9",
32
+ "commit": "35d247e0b6a8c2b22e69942afbabe18043e59585"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui/react-switch",
37
+ "comment": "Bump @fluentui/react-tabster to v9.6.5",
38
+ "commit": "35d247e0b6a8c2b22e69942afbabe18043e59585"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@fluentui/react-switch",
43
+ "comment": "Bump @fluentui/react-utilities to v9.8.0",
44
+ "commit": "35d247e0b6a8c2b22e69942afbabe18043e59585"
45
+ }
46
+ ]
47
+ }
48
+ },
49
+ {
50
+ "date": "Wed, 12 Apr 2023 09:31:45 GMT",
51
+ "tag": "@fluentui/react-switch_v9.1.9",
52
+ "version": "9.1.9",
53
+ "comments": {
54
+ "patch": [
55
+ {
56
+ "author": "beachball",
57
+ "package": "@fluentui/react-switch",
58
+ "comment": "Bump @fluentui/react-field to v9.0.0-beta.2",
59
+ "commit": "45cb6089b0f5f464ae0dd9e9cba7e199a9d67cd8"
60
+ },
61
+ {
62
+ "author": "beachball",
63
+ "package": "@fluentui/react-switch",
64
+ "comment": "Bump @fluentui/react-label to v9.1.8",
65
+ "commit": "45cb6089b0f5f464ae0dd9e9cba7e199a9d67cd8"
66
+ },
67
+ {
68
+ "author": "beachball",
69
+ "package": "@fluentui/react-switch",
70
+ "comment": "Bump @fluentui/react-tabster to v9.6.4",
71
+ "commit": "45cb6089b0f5f464ae0dd9e9cba7e199a9d67cd8"
72
+ },
73
+ {
74
+ "author": "beachball",
75
+ "package": "@fluentui/react-switch",
76
+ "comment": "Bump @fluentui/react-utilities to v9.7.4",
77
+ "commit": "45cb6089b0f5f464ae0dd9e9cba7e199a9d67cd8"
78
+ }
79
+ ]
80
+ }
81
+ },
82
+ {
83
+ "date": "Fri, 07 Apr 2023 00:01:44 GMT",
6
84
  "tag": "@fluentui/react-switch_v9.1.8",
7
85
  "version": "9.1.8",
8
86
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,38 @@
1
1
  # Change Log - @fluentui/react-switch
2
2
 
3
- This log was last generated on Thu, 06 Apr 2023 23:59:53 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 17 Apr 2023 17:50:09 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.1.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.1.10)
8
+
9
+ Mon, 17 Apr 2023 17:50:09 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.1.9..@fluentui/react-switch_v9.1.10)
11
+
12
+ ### Patches
13
+
14
+ - chore: Remove deprecated SwitchField_unstable shim component ([PR #27492](https://github.com/microsoft/fluentui/pull/27492) by behowell@microsoft.com)
15
+ - chore: Update react-field dependency version ([PR #27493](https://github.com/microsoft/fluentui/pull/27493) by behowell@microsoft.com)
16
+ - Bump @fluentui/react-field to v9.1.0 ([PR #27564](https://github.com/microsoft/fluentui/pull/27564) by beachball)
17
+ - Bump @fluentui/react-label to v9.1.9 ([PR #27564](https://github.com/microsoft/fluentui/pull/27564) by beachball)
18
+ - Bump @fluentui/react-tabster to v9.6.5 ([PR #27564](https://github.com/microsoft/fluentui/pull/27564) by beachball)
19
+ - Bump @fluentui/react-utilities to v9.8.0 ([PR #27564](https://github.com/microsoft/fluentui/pull/27564) by beachball)
20
+
21
+ ## [9.1.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.1.9)
22
+
23
+ Wed, 12 Apr 2023 09:31:45 GMT
24
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.1.8..@fluentui/react-switch_v9.1.9)
25
+
26
+ ### Patches
27
+
28
+ - Bump @fluentui/react-field to v9.0.0-beta.2 ([PR #27274](https://github.com/microsoft/fluentui/pull/27274) by beachball)
29
+ - Bump @fluentui/react-label to v9.1.8 ([PR #27274](https://github.com/microsoft/fluentui/pull/27274) by beachball)
30
+ - Bump @fluentui/react-tabster to v9.6.4 ([PR #27274](https://github.com/microsoft/fluentui/pull/27274) by beachball)
31
+ - Bump @fluentui/react-utilities to v9.7.4 ([PR #27274](https://github.com/microsoft/fluentui/pull/27274) by beachball)
32
+
7
33
  ## [9.1.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.1.8)
8
34
 
9
- Thu, 06 Apr 2023 23:59:53 GMT
35
+ Fri, 07 Apr 2023 00:01:44 GMT
10
36
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.1.7..@fluentui/react-switch_v9.1.8)
11
37
 
12
38
  ### Patches
package/dist/index.d.ts CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  import type { ComponentProps } from '@fluentui/react-utilities';
4
4
  import type { ComponentState } from '@fluentui/react-utilities';
5
- import { DeprecatedFieldProps } from '@fluentui/react-field';
6
5
  import type { ForwardRefComponent } from '@fluentui/react-utilities';
7
6
  import { Label } from '@fluentui/react-label';
8
7
  import * as React_2 from 'react';
@@ -26,22 +25,6 @@ export declare const switchClassName: string;
26
25
 
27
26
  export declare const switchClassNames: SlotClassNames<SwitchSlots>;
28
27
 
29
- /** @deprecated Use Field with Switch: `<Field><Switch /></Field>` */
30
- export declare const SwitchField_unstable: ForwardRefComponent<SwitchFieldProps_unstable>;
31
-
32
- /** @deprecated Use Field with Switch: `<Field><Switch /></Field>` */
33
- export declare const switchFieldClassNames: {
34
- control: string;
35
- root: string;
36
- label: string;
37
- validationMessage: string;
38
- validationMessageIcon: string;
39
- hint: string;
40
- };
41
-
42
- /** @deprecated Use Field with Switch: `<Field><Switch /></Field>` */
43
- export declare type SwitchFieldProps_unstable = DeprecatedFieldProps<SwitchProps>;
44
-
45
28
  export declare type SwitchOnChangeData = {
46
29
  checked: boolean;
47
30
  };
package/lib/index.js CHANGED
@@ -1,6 +1,4 @@
1
1
  export { Switch, renderSwitch_unstable,
2
2
  // eslint-disable-next-line deprecation/deprecation
3
3
  switchClassName, switchClassNames, useSwitchStyles_unstable, useSwitch_unstable } from './Switch';
4
- // eslint-disable-next-line deprecation/deprecation
5
- export { SwitchField as SwitchField_unstable, switchFieldClassNames } from './SwitchField';
6
4
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["Switch","renderSwitch_unstable","switchClassName","switchClassNames","useSwitchStyles_unstable","useSwitch_unstable","SwitchField","SwitchField_unstable","switchFieldClassNames"],"sources":["../src/index.ts"],"sourcesContent":["export {\n Switch,\n renderSwitch_unstable,\n // eslint-disable-next-line deprecation/deprecation\n switchClassName,\n switchClassNames,\n useSwitchStyles_unstable,\n useSwitch_unstable,\n} from './Switch';\nexport type { SwitchOnChangeData, SwitchProps, SwitchSlots, SwitchState } from './Switch';\n\n// eslint-disable-next-line deprecation/deprecation\nexport { SwitchField as SwitchField_unstable, switchFieldClassNames } from './SwitchField';\n// eslint-disable-next-line deprecation/deprecation\nexport type { SwitchFieldProps as SwitchFieldProps_unstable } from './SwitchField';\n"],"mappings":"AAAA,SACEA,MAAM,EACNC,qBAAqB;AACrB;AACAC,eAAe,EACfC,gBAAgB,EAChBC,wBAAwB,EACxBC,kBAAkB,QACb;AAGP;AACA,SAASC,WAAA,IAAeC,oBAAoB,EAAEC,qBAAqB,QAAQ"}
1
+ {"version":3,"names":["Switch","renderSwitch_unstable","switchClassName","switchClassNames","useSwitchStyles_unstable","useSwitch_unstable"],"sources":["../src/index.ts"],"sourcesContent":["export {\n Switch,\n renderSwitch_unstable,\n // eslint-disable-next-line deprecation/deprecation\n switchClassName,\n switchClassNames,\n useSwitchStyles_unstable,\n useSwitch_unstable,\n} from './Switch';\nexport type { SwitchOnChangeData, SwitchProps, SwitchSlots, SwitchState } from './Switch';\n"],"mappings":"AAAA,SACEA,MAAM,EACNC,qBAAqB;AACrB;AACAC,eAAe,EACfC,gBAAgB,EAChBC,wBAAwB,EACxBC,kBAAkB,QACb"}
@@ -15,12 +15,9 @@ _export(exports, {
15
15
  switchClassName: ()=>_switch.switchClassName,
16
16
  switchClassNames: ()=>_switch.switchClassNames,
17
17
  useSwitchStyles_unstable: ()=>_switch.useSwitchStyles_unstable,
18
- useSwitch_unstable: ()=>_switch.useSwitch_unstable,
19
- SwitchField_unstable: ()=>_switchField.SwitchField,
20
- switchFieldClassNames: ()=>_switchField.switchFieldClassNames
18
+ useSwitch_unstable: ()=>_switch.useSwitch_unstable
21
19
  });
22
20
  const _switch = require("./Switch");
23
- const _switchField = require("./SwitchField");
24
21
  //# sourceMappingURL=index.js.map
25
22
 
26
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../lib/index.js"],"sourcesContent":["export { Switch, renderSwitch_unstable,\n// eslint-disable-next-line deprecation/deprecation\nswitchClassName, switchClassNames, useSwitchStyles_unstable, useSwitch_unstable } from './Switch';\n// eslint-disable-next-line deprecation/deprecation\nexport { SwitchField as SwitchField_unstable, switchFieldClassNames } from './SwitchField';\n//# sourceMappingURL=index.js.map"],"names":["Switch","renderSwitch_unstable","switchClassName","switchClassNames","useSwitchStyles_unstable","useSwitch_unstable","SwitchField_unstable","SwitchField","switchFieldClassNames"],"mappings":";;;;;;;;;;;IAASA,MAAM,MAANA,cAAM;IAAEC,qBAAqB,MAArBA,6BAAqB;IACtC,mDAAmD;IACnDC,eAAe,MAAfA,uBAAe;IAAEC,gBAAgB,MAAhBA,wBAAgB;IAAEC,wBAAwB,MAAxBA,gCAAwB;IAAEC,kBAAkB,MAAlBA,0BAAkB;IAEvDC,oBAAoB,MAAnCC,wBAAW;IAA0BC,qBAAqB,MAArBA,kCAAqB;;wBAFoB;6BAEZ;CAC3E,iCAAiC"}
1
+ {"version":3,"sources":["../lib/index.js"],"sourcesContent":["export { Switch, renderSwitch_unstable,\n// eslint-disable-next-line deprecation/deprecation\nswitchClassName, switchClassNames, useSwitchStyles_unstable, useSwitch_unstable } from './Switch';\n//# sourceMappingURL=index.js.map"],"names":["Switch","renderSwitch_unstable","switchClassName","switchClassNames","useSwitchStyles_unstable","useSwitch_unstable"],"mappings":";;;;;;;;;;;IAASA,MAAM,MAANA,cAAM;IAAEC,qBAAqB,MAArBA,6BAAqB;IACtC,mDAAmD;IACnDC,eAAe,MAAfA,uBAAe;IAAEC,gBAAgB,MAAhBA,wBAAgB;IAAEC,wBAAwB,MAAxBA,gCAAwB;IAAEC,kBAAkB,MAAlBA,0BAAkB;;wBAAQ;CACvF,iCAAiC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-switch",
3
- "version": "9.1.8",
3
+ "version": "9.1.10",
4
4
  "description": "Fluent UI React Switch component.",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -32,13 +32,13 @@
32
32
  "@fluentui/scripts-tasks": "*"
33
33
  },
34
34
  "dependencies": {
35
- "@fluentui/react-field": "9.0.0-beta.1",
35
+ "@fluentui/react-field": "^9.1.0",
36
36
  "@fluentui/react-icons": "^2.0.196",
37
- "@fluentui/react-label": "^9.1.7",
37
+ "@fluentui/react-label": "^9.1.9",
38
38
  "@fluentui/react-shared-contexts": "^9.3.3",
39
- "@fluentui/react-tabster": "^9.6.3",
39
+ "@fluentui/react-tabster": "^9.6.5",
40
40
  "@fluentui/react-theme": "^9.1.7",
41
- "@fluentui/react-utilities": "^9.7.3",
41
+ "@fluentui/react-utilities": "^9.8.0",
42
42
  "@griffel/react": "^1.5.2",
43
43
  "@swc/helpers": "^0.4.14"
44
44
  },
@@ -1,2 +0,0 @@
1
- export * from './components/SwitchField/index';
2
- //# sourceMappingURL=SwitchField.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["../src/SwitchField.ts"],"sourcesContent":["export * from './components/SwitchField/index';\n"],"mappings":"AAAA,cAAc"}
@@ -1,7 +0,0 @@
1
- /* eslint-disable deprecation/deprecation */import { getDeprecatedFieldClassNames, makeDeprecatedField } from '@fluentui/react-field';
2
- import { Switch, switchClassNames } from '../../Switch';
3
- /** @deprecated Use Field with Switch: `<Field><Switch /></Field>` */
4
- export const switchFieldClassNames = /*#__PURE__*/getDeprecatedFieldClassNames(switchClassNames.root);
5
- /** @deprecated Use Field with Switch: `<Field><Switch /></Field>` */
6
- export const SwitchField = /*#__PURE__*/makeDeprecatedField(Switch);
7
- //# sourceMappingURL=SwitchField.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["getDeprecatedFieldClassNames","makeDeprecatedField","Switch","switchClassNames","switchFieldClassNames","root","SwitchField"],"sources":["../../../src/components/SwitchField/SwitchField.tsx"],"sourcesContent":["/* eslint-disable deprecation/deprecation */\nimport { DeprecatedFieldProps, getDeprecatedFieldClassNames, makeDeprecatedField } from '@fluentui/react-field';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { Switch, switchClassNames, SwitchProps } from '../../Switch';\n\n/** @deprecated Use Field with Switch: `<Field><Switch /></Field>` */\nexport type SwitchFieldProps = DeprecatedFieldProps<SwitchProps>;\n/** @deprecated Use Field with Switch: `<Field><Switch /></Field>` */\nexport const switchFieldClassNames = getDeprecatedFieldClassNames(switchClassNames.root);\n/** @deprecated Use Field with Switch: `<Field><Switch /></Field>` */\nexport const SwitchField: ForwardRefComponent<SwitchFieldProps> = makeDeprecatedField(Switch);\n"],"mappings":"AAAA,4CACA,SAA+BA,4BAA4B,EAAEC,mBAAmB,QAAQ;AAExF,SAASC,MAAM,EAAEC,gBAAgB,QAAqB;AAItD;AACA,OAAO,MAAMC,qBAAA,gBAAwBJ,4BAAA,CAA6BG,gBAAA,CAAiBE,IAAI;AACvF;AACA,OAAO,MAAMC,WAAA,gBAAqDL,mBAAA,CAAoBC,MAAA"}
@@ -1,2 +0,0 @@
1
- export * from './SwitchField';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["../../../src/components/SwitchField/index.ts"],"sourcesContent":["export * from './SwitchField';\n"],"mappings":"AAAA,cAAc"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
6
- _exportStar(require("./components/SwitchField/index"), exports);
7
- //# sourceMappingURL=SwitchField.js.map
8
-
9
- //# sourceMappingURL=SwitchField.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../lib/SwitchField.js"],"sourcesContent":["export * from './components/SwitchField/index';\n//# sourceMappingURL=SwitchField.js.map"],"names":[],"mappings":";;;;;oBAAc;CACd,uCAAuC"}
@@ -1,20 +0,0 @@
1
- /* eslint-disable deprecation/deprecation */ "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- function _export(target, all) {
6
- for(var name in all)Object.defineProperty(target, name, {
7
- enumerable: true,
8
- get: all[name]
9
- });
10
- }
11
- _export(exports, {
12
- switchFieldClassNames: ()=>switchFieldClassNames,
13
- SwitchField: ()=>SwitchField
14
- });
15
- const _reactField = require("@fluentui/react-field");
16
- const _switch = require("../../Switch");
17
- const switchFieldClassNames = /*#__PURE__*/ (0, _reactField.getDeprecatedFieldClassNames)(_switch.switchClassNames.root);
18
- const SwitchField = /*#__PURE__*/ (0, _reactField.makeDeprecatedField)(_switch.Switch); //# sourceMappingURL=SwitchField.js.map
19
-
20
- //# sourceMappingURL=SwitchField.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../lib/components/SwitchField/SwitchField.js"],"sourcesContent":["/* eslint-disable deprecation/deprecation */import { getDeprecatedFieldClassNames, makeDeprecatedField } from '@fluentui/react-field';\nimport { Switch, switchClassNames } from '../../Switch';\n/** @deprecated Use Field with Switch: `<Field><Switch /></Field>` */\nexport const switchFieldClassNames = /*#__PURE__*/getDeprecatedFieldClassNames(switchClassNames.root);\n/** @deprecated Use Field with Switch: `<Field><Switch /></Field>` */\nexport const SwitchField = /*#__PURE__*/makeDeprecatedField(Switch);\n//# sourceMappingURL=SwitchField.js.map"],"names":["switchFieldClassNames","SwitchField","getDeprecatedFieldClassNames","switchClassNames","root","makeDeprecatedField","Switch"],"mappings":"AAAA,0CAA0C;;;;;;;;;;;IAG7BA,qBAAqB,MAArBA;IAEAC,WAAW,MAAXA;;4BALiG;wBACrE;AAElC,MAAMD,wBAAwB,WAAW,GAAEE,IAAAA,wCAA4B,EAACC,wBAAgB,CAACC,IAAI;AAE7F,MAAMH,cAAc,WAAW,GAAEI,IAAAA,+BAAmB,EAACC,cAAM,GAClE,uCAAuC"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
6
- _exportStar(require("./SwitchField"), exports);
7
- //# sourceMappingURL=index.js.map
8
-
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../lib/components/SwitchField/index.js"],"sourcesContent":["export * from './SwitchField';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;oBAAc;CACd,iCAAiC"}