@fluentui/react-switch 0.0.0-nightly050f89bf0020211102.1 → 0.0.0-nightly442708a36520211209.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 (36) hide show
  1. package/CHANGELOG.json +142 -24
  2. package/CHANGELOG.md +44 -15
  3. package/Spec.md +4 -4
  4. package/dist/react-switch.d.ts +2 -0
  5. package/lib/components/Switch/Switch.js +2 -2
  6. package/lib/components/Switch/Switch.js.map +1 -1
  7. package/lib/components/Switch/renderSwitch.js +6 -7
  8. package/lib/components/Switch/renderSwitch.js.map +1 -1
  9. package/lib/components/Switch/useSwitch.js +22 -21
  10. package/lib/components/Switch/useSwitch.js.map +1 -1
  11. package/lib/components/Switch/useSwitchState.js +48 -56
  12. package/lib/components/Switch/useSwitchState.js.map +1 -1
  13. package/lib/components/Switch/useSwitchStyles.d.ts +1 -0
  14. package/lib/components/Switch/useSwitchStyles.js +66 -46
  15. package/lib/components/Switch/useSwitchStyles.js.map +1 -1
  16. package/lib-commonjs/Switch.js +1 -1
  17. package/lib-commonjs/components/Switch/Switch.js +6 -6
  18. package/lib-commonjs/components/Switch/Switch.js.map +1 -1
  19. package/lib-commonjs/components/Switch/index.js +1 -1
  20. package/lib-commonjs/components/Switch/renderSwitch.js +9 -11
  21. package/lib-commonjs/components/Switch/renderSwitch.js.map +1 -1
  22. package/lib-commonjs/components/Switch/useSwitch.js +23 -23
  23. package/lib-commonjs/components/Switch/useSwitch.js.map +1 -1
  24. package/lib-commonjs/components/Switch/useSwitchState.js +51 -59
  25. package/lib-commonjs/components/Switch/useSwitchState.js.map +1 -1
  26. package/lib-commonjs/components/Switch/useSwitchStyles.d.ts +1 -0
  27. package/lib-commonjs/components/Switch/useSwitchStyles.js +68 -48
  28. package/lib-commonjs/components/Switch/useSwitchStyles.js.map +1 -1
  29. package/lib-commonjs/index.js +1 -1
  30. package/package.json +12 -15
  31. package/lib/common/isConformant.d.ts +0 -4
  32. package/lib/common/isConformant.js +0 -12
  33. package/lib/common/isConformant.js.map +0 -1
  34. package/lib-commonjs/common/isConformant.d.ts +0 -4
  35. package/lib-commonjs/common/isConformant.js +0 -23
  36. package/lib-commonjs/common/isConformant.js.map +0 -1
@@ -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":""}