@fluentui/react-switch 0.0.0-nightly-20230223-2115.1 → 0.0.0-nightly-20230227-0424.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/CHANGELOG.json +15 -15
  2. package/CHANGELOG.md +10 -10
  3. package/lib/Switch.js.map +1 -1
  4. package/lib/SwitchField.js.map +1 -1
  5. package/lib/components/Switch/Switch.js.map +1 -1
  6. package/lib/components/Switch/Switch.types.js +1 -1
  7. package/lib/components/Switch/Switch.types.js.map +1 -1
  8. package/lib/components/Switch/index.js.map +1 -1
  9. package/lib/components/Switch/renderSwitch.js +11 -2
  10. package/lib/components/Switch/renderSwitch.js.map +1 -1
  11. package/lib/components/Switch/useSwitch.js +3 -5
  12. package/lib/components/Switch/useSwitch.js.map +1 -1
  13. package/lib/components/Switch/useSwitchStyles.js.map +1 -1
  14. package/lib/components/SwitchField/SwitchField.js +2 -1
  15. package/lib/components/SwitchField/SwitchField.js.map +1 -1
  16. package/lib/components/SwitchField/index.js.map +1 -1
  17. package/lib/index.js.map +1 -1
  18. package/lib-commonjs/Switch.js +4 -5
  19. package/lib-commonjs/Switch.js.map +1 -1
  20. package/lib-commonjs/SwitchField.js +4 -5
  21. package/lib-commonjs/SwitchField.js.map +1 -1
  22. package/lib-commonjs/components/Switch/Switch.js +15 -16
  23. package/lib-commonjs/components/Switch/Switch.js.map +1 -1
  24. package/lib-commonjs/components/Switch/Switch.types.js +2 -5
  25. package/lib-commonjs/components/Switch/Switch.types.js.map +1 -1
  26. package/lib-commonjs/components/Switch/index.js +8 -9
  27. package/lib-commonjs/components/Switch/index.js.map +1 -1
  28. package/lib-commonjs/components/Switch/renderSwitch.js +29 -16
  29. package/lib-commonjs/components/Switch/renderSwitch.js.map +1 -1
  30. package/lib-commonjs/components/Switch/useSwitch.js +85 -78
  31. package/lib-commonjs/components/Switch/useSwitch.js.map +1 -1
  32. package/lib-commonjs/components/Switch/useSwitchStyles.js +89 -176
  33. package/lib-commonjs/components/Switch/useSwitchStyles.js.map +1 -1
  34. package/lib-commonjs/components/SwitchField/SwitchField.js +11 -17
  35. package/lib-commonjs/components/SwitchField/SwitchField.js.map +1 -1
  36. package/lib-commonjs/components/SwitchField/index.js +4 -5
  37. package/lib-commonjs/components/SwitchField/index.js.map +1 -1
  38. package/lib-commonjs/index.js +56 -23
  39. package/lib-commonjs/index.js.map +1 -1
  40. package/package.json +9 -9
  41. package/.swcrc +0 -33
@@ -1,9 +1,8 @@
1
1
  "use strict";
2
+
2
3
  Object.defineProperty(exports, "__esModule", {
3
- value: true
4
+ value: true
4
5
  });
5
- const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
6
- _exportStar(require("./SwitchField"), exports);
7
- //# sourceMappingURL=index.js.map
8
-
6
+ const tslib_1 = /*#__PURE__*/require("tslib");
7
+ tslib_1.__exportStar(require("./SwitchField"), exports);
9
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../lib/components/SwitchField/index.js"],"sourcesContent":["export * from './SwitchField';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;oBAAc;CACd,iCAAiC"}
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,26 +1,59 @@
1
1
  "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
- 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
2
 
3
+ 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
+ });
26
59
  //# 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,"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"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-switch",
3
- "version": "0.0.0-nightly-20230223-2115.1",
3
+ "version": "0.0.0-nightly-20230227-0424.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": "just-scripts generate-api"
25
+ "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor"
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-2115.1",
30
+ "@fluentui/react-conformance-griffel": "0.0.0-nightly-20230227-0424.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-2115.1",
35
+ "@fluentui/react-field": "0.0.0-nightly-20230227-0424.1",
36
36
  "@fluentui/react-icons": "^2.0.175",
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",
37
+ "@fluentui/react-label": "0.0.0-nightly-20230227-0424.1",
38
+ "@fluentui/react-tabster": "0.0.0-nightly-20230227-0424.1",
39
+ "@fluentui/react-theme": "0.0.0-nightly-20230227-0424.1",
40
+ "@fluentui/react-utilities": "0.0.0-nightly-20230227-0424.1",
41
41
  "@griffel/react": "^1.5.2",
42
- "@swc/helpers": "^0.4.14"
42
+ "tslib": "^2.1.0"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@types/react": ">=16.8.0 <19.0.0",
package/.swcrc DELETED
@@ -1,33 +0,0 @@
1
- {
2
- "$schema": "https://json.schemastore.org/swcrc",
3
- "env": {
4
- "targets": {
5
- "chrome": "84",
6
- "edge": "84",
7
- "firefox": "75",
8
- "opera": "73",
9
- "safari": "14.1"
10
- }
11
- },
12
- "exclude": [
13
- "/testing",
14
- "/**/*.cy.ts",
15
- "/**/*.cy.tsx",
16
- "/**/*.spec.ts",
17
- "/**/*.spec.tsx",
18
- "/**/*.test.ts",
19
- "/**/*.test.tsx"
20
- ],
21
- "jsc": {
22
- "parser": {
23
- "syntax": "typescript",
24
- "tsx": true,
25
- "decorators": false,
26
- "dynamicImport": false
27
- },
28
- "target": "es2019",
29
- "externalHelpers": true
30
- },
31
- "minify": false,
32
- "sourceMaps": true
33
- }