@fluentui/react-switch 0.0.0-nightly-20230223-0420.1 → 0.0.0-nightly-20230223-2115.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.
Files changed (41) hide show
  1. package/.swcrc +33 -0
  2. package/CHANGELOG.json +15 -15
  3. package/CHANGELOG.md +10 -10
  4. package/lib/Switch.js.map +1 -1
  5. package/lib/SwitchField.js.map +1 -1
  6. package/lib/components/Switch/Switch.js.map +1 -1
  7. package/lib/components/Switch/Switch.types.js +1 -1
  8. package/lib/components/Switch/Switch.types.js.map +1 -1
  9. package/lib/components/Switch/index.js.map +1 -1
  10. package/lib/components/Switch/renderSwitch.js +2 -11
  11. package/lib/components/Switch/renderSwitch.js.map +1 -1
  12. package/lib/components/Switch/useSwitch.js +5 -3
  13. package/lib/components/Switch/useSwitch.js.map +1 -1
  14. package/lib/components/Switch/useSwitchStyles.js.map +1 -1
  15. package/lib/components/SwitchField/SwitchField.js +1 -2
  16. package/lib/components/SwitchField/SwitchField.js.map +1 -1
  17. package/lib/components/SwitchField/index.js.map +1 -1
  18. package/lib/index.js.map +1 -1
  19. package/lib-commonjs/Switch.js +5 -4
  20. package/lib-commonjs/Switch.js.map +1 -1
  21. package/lib-commonjs/SwitchField.js +5 -4
  22. package/lib-commonjs/SwitchField.js.map +1 -1
  23. package/lib-commonjs/components/Switch/Switch.js +16 -15
  24. package/lib-commonjs/components/Switch/Switch.js.map +1 -1
  25. package/lib-commonjs/components/Switch/Switch.types.js +5 -2
  26. package/lib-commonjs/components/Switch/Switch.types.js.map +1 -1
  27. package/lib-commonjs/components/Switch/index.js +9 -8
  28. package/lib-commonjs/components/Switch/index.js.map +1 -1
  29. package/lib-commonjs/components/Switch/renderSwitch.js +16 -29
  30. package/lib-commonjs/components/Switch/renderSwitch.js.map +1 -1
  31. package/lib-commonjs/components/Switch/useSwitch.js +78 -85
  32. package/lib-commonjs/components/Switch/useSwitch.js.map +1 -1
  33. package/lib-commonjs/components/Switch/useSwitchStyles.js +176 -89
  34. package/lib-commonjs/components/Switch/useSwitchStyles.js.map +1 -1
  35. package/lib-commonjs/components/SwitchField/SwitchField.js +17 -11
  36. package/lib-commonjs/components/SwitchField/SwitchField.js.map +1 -1
  37. package/lib-commonjs/components/SwitchField/index.js +5 -4
  38. package/lib-commonjs/components/SwitchField/index.js.map +1 -1
  39. package/lib-commonjs/index.js +23 -56
  40. package/lib-commonjs/index.js.map +1 -1
  41. package/package.json +9 -9
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
5
4
  });
6
- const tslib_1 = /*#__PURE__*/require("tslib");
7
- tslib_1.__exportStar(require("./SwitchField"), exports);
5
+ const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
6
+ _exportStar(require("./SwitchField"), exports);
7
+ //# sourceMappingURL=index.js.map
8
+
8
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"mappings":";;;;;;AAAAA","names":["tslib_1"],"sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-switch/src/components/SwitchField/index.ts"],"sourcesContent":["export * from './SwitchField';\n"]}
1
+ {"version":3,"sources":["../../../lib/components/SwitchField/index.js"],"sourcesContent":["export * from './SwitchField';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;oBAAc;CACd,iCAAiC"}
@@ -1,59 +1,26 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.switchFieldClassNames = exports.SwitchField_unstable = exports.useSwitch_unstable = exports.useSwitchStyles_unstable = exports.switchClassNames = exports.switchClassName = exports.renderSwitch_unstable = exports.Switch = void 0;
7
- var Switch_1 = /*#__PURE__*/require("./Switch");
8
- Object.defineProperty(exports, "Switch", {
9
- enumerable: true,
10
- get: function () {
11
- return Switch_1.Switch;
12
- }
13
- });
14
- Object.defineProperty(exports, "renderSwitch_unstable", {
15
- enumerable: true,
16
- get: function () {
17
- return Switch_1.renderSwitch_unstable;
18
- }
19
- });
20
- // eslint-disable-next-line deprecation/deprecation
21
- Object.defineProperty(exports, "switchClassName", {
22
- enumerable: true,
23
- get: function () {
24
- return Switch_1.switchClassName;
25
- }
26
- });
27
- Object.defineProperty(exports, "switchClassNames", {
28
- enumerable: true,
29
- get: function () {
30
- return Switch_1.switchClassNames;
31
- }
32
- });
33
- Object.defineProperty(exports, "useSwitchStyles_unstable", {
34
- enumerable: true,
35
- get: function () {
36
- return Switch_1.useSwitchStyles_unstable;
37
- }
38
- });
39
- Object.defineProperty(exports, "useSwitch_unstable", {
40
- enumerable: true,
41
- get: function () {
42
- return Switch_1.useSwitch_unstable;
43
- }
44
- });
45
- // eslint-disable-next-line deprecation/deprecation
46
- var SwitchField_1 = /*#__PURE__*/require("./SwitchField");
47
- Object.defineProperty(exports, "SwitchField_unstable", {
48
- enumerable: true,
49
- get: function () {
50
- return SwitchField_1.SwitchField;
51
- }
52
- });
53
- Object.defineProperty(exports, "switchFieldClassNames", {
54
- enumerable: true,
55
- get: function () {
56
- return SwitchField_1.switchFieldClassNames;
57
- }
58
- });
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
+ Switch: ()=>_switch.Switch,
13
+ renderSwitch_unstable: ()=>_switch.renderSwitch_unstable,
14
+ // eslint-disable-next-line deprecation/deprecation
15
+ switchClassName: ()=>_switch.switchClassName,
16
+ switchClassNames: ()=>_switch.switchClassNames,
17
+ useSwitchStyles_unstable: ()=>_switch.useSwitchStyles_unstable,
18
+ useSwitch_unstable: ()=>_switch.useSwitch_unstable,
19
+ SwitchField_unstable: ()=>_switchField.SwitchField,
20
+ switchFieldClassNames: ()=>_switchField.switchFieldClassNames
21
+ });
22
+ const _switch = require("./Switch");
23
+ const _switchField = require("./SwitchField");
24
+ //# sourceMappingURL=index.js.map
25
+
59
26
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"mappings":";;;;;;AAAA;AACEA;EAAAC;EAAAC;IAAA,sBAAM;EAAA;AAAA;AACNF;EAAAC;EAAAC;IAAA,qCAAqB;EAAA;AAAA;AACrB;AACAF;EAAAC;EAAAC;IAAA,+BAAe;EAAA;AAAA;AACfF;EAAAC;EAAAC;IAAA,gCAAgB;EAAA;AAAA;AAChBF;EAAAC;EAAAC;IAAA,wCAAwB;EAAA;AAAA;AACxBF;EAAAC;EAAAC;IAAA,kCAAkB;EAAA;AAAA;AAIpB;AACA;AAASF;EAAAC;EAAAC;IAAA,gCAAW;EAAA;AAAA;AAA0BF;EAAAC;EAAAC;IAAA,0CAAqB;EAAA;AAAA","names":["Object","enumerable","get"],"sourceRoot":"","sources":["../../../../../../../packages/react-components/react-switch/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"]}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-switch",
3
- "version": "0.0.0-nightly-20230223-0420.1",
3
+ "version": "0.0.0-nightly-20230223-2115.1",
4
4
  "description": "Fluent UI React Switch component.",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -22,24 +22,24 @@
22
22
  "test": "jest --passWithNoTests",
23
23
  "storybook": "start-storybook",
24
24
  "type-check": "tsc -b tsconfig.json",
25
- "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor"
25
+ "generate-api": "just-scripts generate-api"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@fluentui/eslint-plugin": "*",
29
29
  "@fluentui/react-conformance": "*",
30
- "@fluentui/react-conformance-griffel": "0.0.0-nightly-20230223-0420.1",
30
+ "@fluentui/react-conformance-griffel": "0.0.0-nightly-20230223-2115.1",
31
31
  "@fluentui/scripts-api-extractor": "*",
32
32
  "@fluentui/scripts-tasks": "*"
33
33
  },
34
34
  "dependencies": {
35
- "@fluentui/react-field": "0.0.0-nightly-20230223-0420.1",
35
+ "@fluentui/react-field": "0.0.0-nightly-20230223-2115.1",
36
36
  "@fluentui/react-icons": "^2.0.175",
37
- "@fluentui/react-label": "0.0.0-nightly-20230223-0420.1",
38
- "@fluentui/react-tabster": "0.0.0-nightly-20230223-0420.1",
39
- "@fluentui/react-theme": "0.0.0-nightly-20230223-0420.1",
40
- "@fluentui/react-utilities": "0.0.0-nightly-20230223-0420.1",
37
+ "@fluentui/react-label": "0.0.0-nightly-20230223-2115.1",
38
+ "@fluentui/react-tabster": "0.0.0-nightly-20230223-2115.1",
39
+ "@fluentui/react-theme": "0.0.0-nightly-20230223-2115.1",
40
+ "@fluentui/react-utilities": "0.0.0-nightly-20230223-2115.1",
41
41
  "@griffel/react": "^1.5.2",
42
- "tslib": "^2.1.0"
42
+ "@swc/helpers": "^0.4.14"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@types/react": ">=16.8.0 <19.0.0",