@fluentui/react-switch 9.0.0-nightly.46b9ea7036.0 → 9.0.0-rc.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 (42) hide show
  1. package/CHANGELOG.json +265 -30
  2. package/CHANGELOG.md +69 -17
  3. package/Spec.md +4 -4
  4. package/dist/react-switch.d.ts +14 -17
  5. package/lib/components/Switch/Switch.js +7 -7
  6. package/lib/components/Switch/Switch.js.map +1 -1
  7. package/lib/components/Switch/Switch.types.d.ts +10 -9
  8. package/lib/components/Switch/renderSwitch.d.ts +1 -1
  9. package/lib/components/Switch/renderSwitch.js +12 -8
  10. package/lib/components/Switch/renderSwitch.js.map +1 -1
  11. package/lib/components/Switch/useSwitch.d.ts +2 -6
  12. package/lib/components/Switch/useSwitch.js +21 -25
  13. package/lib/components/Switch/useSwitch.js.map +1 -1
  14. package/lib/components/Switch/useSwitchState.js +48 -56
  15. package/lib/components/Switch/useSwitchState.js.map +1 -1
  16. package/lib/components/Switch/useSwitchStyles.d.ts +2 -1
  17. package/lib/components/Switch/useSwitchStyles.js +69 -63
  18. package/lib/components/Switch/useSwitchStyles.js.map +1 -1
  19. package/lib-commonjs/Switch.js +1 -1
  20. package/lib-commonjs/components/Switch/Switch.js +8 -8
  21. package/lib-commonjs/components/Switch/Switch.js.map +1 -1
  22. package/lib-commonjs/components/Switch/Switch.types.d.ts +10 -9
  23. package/lib-commonjs/components/Switch/index.js +1 -1
  24. package/lib-commonjs/components/Switch/renderSwitch.d.ts +1 -1
  25. package/lib-commonjs/components/Switch/renderSwitch.js +16 -14
  26. package/lib-commonjs/components/Switch/renderSwitch.js.map +1 -1
  27. package/lib-commonjs/components/Switch/useSwitch.d.ts +2 -6
  28. package/lib-commonjs/components/Switch/useSwitch.js +26 -31
  29. package/lib-commonjs/components/Switch/useSwitch.js.map +1 -1
  30. package/lib-commonjs/components/Switch/useSwitchState.js +51 -59
  31. package/lib-commonjs/components/Switch/useSwitchState.js.map +1 -1
  32. package/lib-commonjs/components/Switch/useSwitchStyles.d.ts +2 -1
  33. package/lib-commonjs/components/Switch/useSwitchStyles.js +78 -71
  34. package/lib-commonjs/components/Switch/useSwitchStyles.js.map +1 -1
  35. package/lib-commonjs/index.js +1 -1
  36. package/package.json +10 -15
  37. package/lib/common/isConformant.d.ts +0 -4
  38. package/lib/common/isConformant.js +0 -12
  39. package/lib/common/isConformant.js.map +0 -1
  40. package/lib-commonjs/common/isConformant.d.ts +0 -4
  41. package/lib-commonjs/common/isConformant.js +0 -23
  42. package/lib-commonjs/common/isConformant.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-switch",
3
- "version": "9.0.0-nightly.46b9ea7036.0",
3
+ "version": "9.0.0-rc.1",
4
4
  "description": "Fluent UI React Switch component.",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -19,20 +19,16 @@
19
19
  "just": "just-scripts",
20
20
  "lint": "just-scripts lint",
21
21
  "start": "yarn storybook",
22
- "test": "jest",
22
+ "test": "jest --passWithNoTests",
23
23
  "docs": "api-extractor run --config=config/api-extractor.local.json --local",
24
- "build:local": "tsc -p . --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output dist/react-switch/src && yarn docs",
25
- "storybook": "start-storybook"
24
+ "build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output ./dist/packages/react-switch/src && yarn docs",
25
+ "storybook": "node ../../scripts/storybook/runner",
26
+ "type-check": "tsc -b tsconfig.json"
26
27
  },
27
28
  "devDependencies": {
28
- "@fluentui/babel-make-styles": "9.0.0-nightly.46b9ea7036.0",
29
29
  "@fluentui/eslint-plugin": "*",
30
- "@fluentui/jest-serializer-make-styles": "9.0.0-nightly.46b9ea7036.0",
31
30
  "@fluentui/react-conformance": "*",
32
- "@fluentui/react-conformance-make-styles": "9.0.0-nightly.46b9ea7036.0",
33
- "@fluentui/react-label": "9.0.0-nightly.46b9ea7036.0",
34
- "@fluentui/react-provider": "9.0.0-nightly.46b9ea7036.0",
35
- "@fluentui/react-theme": "9.0.0-nightly.46b9ea7036.0",
31
+ "@fluentui/react-conformance-griffel": "9.0.0-beta.1",
36
32
  "@fluentui/scripts": "^1.0.0",
37
33
  "@types/enzyme": "3.10.3",
38
34
  "@types/enzyme-adapter-react-16": "1.0.3",
@@ -46,10 +42,10 @@
46
42
  "react-test-renderer": "^16.3.0"
47
43
  },
48
44
  "dependencies": {
49
- "@fluentui/react-make-styles": "9.0.0-nightly.46b9ea7036.0",
50
- "@fluentui/react-shared-contexts": "9.0.0-nightly.46b9ea7036.0",
51
- "@fluentui/react-tabster": "9.0.0-nightly.46b9ea7036.0",
52
- "@fluentui/react-utilities": "9.0.0-nightly.46b9ea7036.0",
45
+ "@fluentui/react-shared-contexts": "9.0.0-rc.1",
46
+ "@fluentui/react-tabster": "9.0.0-rc.1",
47
+ "@fluentui/react-utilities": "9.0.0-rc.1",
48
+ "@griffel/react": "1.0.0",
53
49
  "tslib": "^2.1.0"
54
50
  },
55
51
  "peerDependencies": {
@@ -59,7 +55,6 @@
59
55
  "react-dom": ">=16.8.0 <18.0.0"
60
56
  },
61
57
  "beachball": {
62
- "tag": "beta",
63
58
  "disallowedChangeTypes": [
64
59
  "major",
65
60
  "minor",
@@ -1,4 +0,0 @@
1
- import type { IsConformantOptions } from '@fluentui/react-conformance';
2
- export declare function isConformant<TProps = {}>(testInfo: Omit<IsConformantOptions<TProps>, 'componentPath'> & {
3
- componentPath?: string;
4
- }): void;
@@ -1,12 +0,0 @@
1
- import { isConformant as baseIsConformant } from '@fluentui/react-conformance';
2
- import makeStylesTests from '@fluentui/react-conformance-make-styles';
3
- export function isConformant(testInfo) {
4
- var defaultOptions = {
5
- asPropHandlesRef: true,
6
- componentPath: module.parent.filename.replace('.test', ''),
7
- extraTests: makeStylesTests,
8
- skipAsPropTests: true
9
- };
10
- baseIsConformant(defaultOptions, testInfo);
11
- }
12
- //# sourceMappingURL=isConformant.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":"AAAA,SAAS,YAAY,IAAI,gBAAzB,QAAiD,6BAAjD;AAEA,OAAO,eAAP,MAA4B,yCAA5B;AAEA,OAAM,SAAU,YAAV,CACJ,QADI,EACqF;AAEzF,MAAM,cAAc,GAAyC;AAC3D,IAAA,gBAAgB,EAAE,IADyC;AAE3D,IAAA,aAAa,EAAE,MAAO,CAAC,MAAR,CAAgB,QAAhB,CAAyB,OAAzB,CAAiC,OAAjC,EAA0C,EAA1C,CAF4C;AAG3D,IAAA,UAAU,EAAE,eAH+C;AAI3D,IAAA,eAAe,EAAE;AAJ0C,GAA7D;AAOA,EAAA,gBAAgB,CAAC,cAAD,EAAiB,QAAjB,CAAhB;AACD","sourceRoot":""}
@@ -1,4 +0,0 @@
1
- import type { IsConformantOptions } from '@fluentui/react-conformance';
2
- export declare function isConformant<TProps = {}>(testInfo: Omit<IsConformantOptions<TProps>, 'componentPath'> & {
3
- componentPath?: string;
4
- }): void;
@@ -1,23 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.isConformant = void 0;
7
-
8
- var react_conformance_1 = /*#__PURE__*/require("@fluentui/react-conformance");
9
-
10
- var react_conformance_make_styles_1 = /*#__PURE__*/require("@fluentui/react-conformance-make-styles");
11
-
12
- function isConformant(testInfo) {
13
- var defaultOptions = {
14
- asPropHandlesRef: true,
15
- componentPath: module.parent.filename.replace('.test', ''),
16
- extraTests: react_conformance_make_styles_1.default,
17
- skipAsPropTests: true
18
- };
19
- react_conformance_1.isConformant(defaultOptions, testInfo);
20
- }
21
-
22
- exports.isConformant = isConformant;
23
- //# sourceMappingURL=isConformant.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAEA,IAAA,+BAAA,gBAAA,OAAA,CAAA,yCAAA,CAAA;;AAEA,SAAgB,YAAhB,CACE,QADF,EAC2F;AAEzF,MAAM,cAAc,GAAyC;AAC3D,IAAA,gBAAgB,EAAE,IADyC;AAE3D,IAAA,aAAa,EAAE,MAAO,CAAC,MAAR,CAAgB,QAAhB,CAAyB,OAAzB,CAAiC,OAAjC,EAA0C,EAA1C,CAF4C;AAG3D,IAAA,UAAU,EAAE,+BAAA,CAAA,OAH+C;AAI3D,IAAA,eAAe,EAAE;AAJ0C,GAA7D;AAOA,EAAA,mBAAA,CAAA,YAAA,CAAiB,cAAjB,EAAiC,QAAjC;AACD;;AAXD,OAAA,CAAA,YAAA,GAAA,YAAA","sourceRoot":""}