@fluentui/react-switch 0.0.0-nightly946f57cad420220203.1 → 0.0.0-nightly96d9c9354420220210.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.
package/CHANGELOG.json CHANGED
@@ -2,15 +2,15 @@
2
2
  "name": "@fluentui/react-switch",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 03 Feb 2022 04:16:55 GMT",
6
- "tag": "@fluentui/react-switch_v0.0.0-nightly946f57cad420220203.1",
7
- "version": "0.0.0-nightly946f57cad420220203.1",
5
+ "date": "Thu, 10 Feb 2022 04:16:36 GMT",
6
+ "tag": "@fluentui/react-switch_v0.0.0-nightly96d9c9354420220210.1",
7
+ "version": "0.0.0-nightly96d9c9354420220210.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-switch",
13
- "commit": "1d230926e10b3b722bd932be1ec39faaf340671c",
13
+ "commit": "df0f6db42df4395871de937d79a23fc5c3d82831",
14
14
  "comment": "Release nightly v9"
15
15
  },
16
16
  {
@@ -31,6 +31,18 @@
31
31
  "commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
32
32
  "comment": "Remove component's shorthandProps array"
33
33
  },
34
+ {
35
+ "author": "behowell@microsoft.com",
36
+ "package": "@fluentui/react-switch",
37
+ "commit": "53b01d71e335715fda91b33e3d7bbd9d471d5ed3",
38
+ "comment": "Refactor component Slot typings"
39
+ },
40
+ {
41
+ "author": "mgodbolt@microsoft.com",
42
+ "package": "@fluentui/react-switch",
43
+ "commit": "839ec14849e112b85aa321d034739ec421199141",
44
+ "comment": "remove export of commons types"
45
+ },
34
46
  {
35
47
  "author": "olfedias@microsoft.com",
36
48
  "package": "@fluentui/react-switch",
@@ -55,29 +67,35 @@
55
67
  "commit": "317209bb5cd57c40f35bc42060acb7e3cce5ec95",
56
68
  "comment": "BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet"
57
69
  },
70
+ {
71
+ "author": "lingfangao@hotmail.com",
72
+ "package": "@fluentui/react-switch",
73
+ "commit": "c00913d50e2dd15bbfbb0757cefe43b192ff1d7f",
74
+ "comment": "Bump Fluent UI dependencies to 9.0.0-rc"
75
+ },
58
76
  {
59
77
  "author": "beachball",
60
78
  "package": "@fluentui/react-switch",
61
- "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly946f57cad420220203.1",
62
- "commit": "1d230926e10b3b722bd932be1ec39faaf340671c"
79
+ "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly96d9c9354420220210.1",
80
+ "commit": "df0f6db42df4395871de937d79a23fc5c3d82831"
63
81
  },
64
82
  {
65
83
  "author": "beachball",
66
84
  "package": "@fluentui/react-switch",
67
- "comment": "Bump @fluentui/react-tabster to v0.0.0-nightly946f57cad420220203.1",
68
- "commit": "1d230926e10b3b722bd932be1ec39faaf340671c"
85
+ "comment": "Bump @fluentui/react-tabster to v0.0.0-nightly96d9c9354420220210.1",
86
+ "commit": "df0f6db42df4395871de937d79a23fc5c3d82831"
69
87
  },
70
88
  {
71
89
  "author": "beachball",
72
90
  "package": "@fluentui/react-switch",
73
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly946f57cad420220203.1",
74
- "commit": "1d230926e10b3b722bd932be1ec39faaf340671c"
91
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly96d9c9354420220210.1",
92
+ "commit": "df0f6db42df4395871de937d79a23fc5c3d82831"
75
93
  },
76
94
  {
77
95
  "author": "beachball",
78
96
  "package": "@fluentui/react-switch",
79
- "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly946f57cad420220203.1",
80
- "commit": "1d230926e10b3b722bd932be1ec39faaf340671c"
97
+ "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly96d9c9354420220210.1",
98
+ "commit": "df0f6db42df4395871de937d79a23fc5c3d82831"
81
99
  }
82
100
  ],
83
101
  "none": [
package/CHANGELOG.md CHANGED
@@ -1,28 +1,31 @@
1
1
  # Change Log - @fluentui/react-switch
2
2
 
3
- This log was last generated on Thu, 03 Feb 2022 04:16:55 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 10 Feb 2022 04:16:36 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly946f57cad420220203.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v0.0.0-nightly946f57cad420220203.1)
7
+ ## [0.0.0-nightly96d9c9354420220210.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v0.0.0-nightly96d9c9354420220210.1)
8
8
 
9
- Thu, 03 Feb 2022 04:16:55 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-beta.5..@fluentui/react-switch_v0.0.0-nightly946f57cad420220203.1)
9
+ Thu, 10 Feb 2022 04:16:36 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-beta.5..@fluentui/react-switch_v0.0.0-nightly96d9c9354420220210.1)
11
11
 
12
12
  ### Changes
13
13
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/1d230926e10b3b722bd932be1ec39faaf340671c) by email not defined)
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/df0f6db42df4395871de937d79a23fc5c3d82831) by email not defined)
15
15
  - Replace make-styles packages with griffel equivalents. ([PR #21424](https://github.com/microsoft/fluentui/pull/21424) by olfedias@microsoft.com)
16
16
  - Updating based on changes to composition types. ([PR #20891](https://github.com/microsoft/fluentui/pull/20891) by Humberto.Morimoto@microsoft.com)
17
17
  - Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
18
+ - Refactor component Slot typings ([PR #21518](https://github.com/microsoft/fluentui/pull/21518) by behowell@microsoft.com)
19
+ - remove export of commons types ([PR #21660](https://github.com/microsoft/fluentui/pull/21660) by mgodbolt@microsoft.com)
18
20
  - update styles to not use CSS shorthands ([PR #20844](https://github.com/microsoft/fluentui/pull/20844) by olfedias@microsoft.com)
19
21
  - Replacing use of functions in makeStyles with direct use of tokens. ([PR #21056](https://github.com/microsoft/fluentui/pull/21056) by Humberto.Morimoto@microsoft.com)
20
22
  - Updating packages based on changes to focusIndicator functions to remove functions from makeStyles in @fluentui/react-tabster. ([PR #21035](https://github.com/microsoft/fluentui/pull/21035) by Humberto.Morimoto@microsoft.com)
21
23
  - BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet ([PR #21365](https://github.com/microsoft/fluentui/pull/21365) by behowell@microsoft.com)
22
- - Bump @fluentui/react-shared-contexts to v0.0.0-nightly946f57cad420220203.1 ([commit](https://github.com/microsoft/fluentui/commit/1d230926e10b3b722bd932be1ec39faaf340671c) by beachball)
23
- - Bump @fluentui/react-tabster to v0.0.0-nightly946f57cad420220203.1 ([commit](https://github.com/microsoft/fluentui/commit/1d230926e10b3b722bd932be1ec39faaf340671c) by beachball)
24
- - Bump @fluentui/react-utilities to v0.0.0-nightly946f57cad420220203.1 ([commit](https://github.com/microsoft/fluentui/commit/1d230926e10b3b722bd932be1ec39faaf340671c) by beachball)
25
- - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly946f57cad420220203.1 ([commit](https://github.com/microsoft/fluentui/commit/1d230926e10b3b722bd932be1ec39faaf340671c) by beachball)
24
+ - Bump Fluent UI dependencies to 9.0.0-rc ([PR #21623](https://github.com/microsoft/fluentui/pull/21623) by lingfangao@hotmail.com)
25
+ - Bump @fluentui/react-shared-contexts to v0.0.0-nightly96d9c9354420220210.1 ([commit](https://github.com/microsoft/fluentui/commit/df0f6db42df4395871de937d79a23fc5c3d82831) by beachball)
26
+ - Bump @fluentui/react-tabster to v0.0.0-nightly96d9c9354420220210.1 ([commit](https://github.com/microsoft/fluentui/commit/df0f6db42df4395871de937d79a23fc5c3d82831) by beachball)
27
+ - Bump @fluentui/react-utilities to v0.0.0-nightly96d9c9354420220210.1 ([commit](https://github.com/microsoft/fluentui/commit/df0f6db42df4395871de937d79a23fc5c3d82831) by beachball)
28
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly96d9c9354420220210.1 ([commit](https://github.com/microsoft/fluentui/commit/df0f6db42df4395871de937d79a23fc5c3d82831) by beachball)
26
29
 
27
30
  ## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-beta.5)
28
31
 
@@ -1,8 +1,8 @@
1
1
  import type { ComponentProps } from '@fluentui/react-utilities';
2
2
  import type { ComponentState } from '@fluentui/react-utilities';
3
3
  import type { ForwardRefComponent } from '@fluentui/react-utilities';
4
- import type { IntrinsicSlotProps } from '@fluentui/react-utilities';
5
4
  import * as React_2 from 'react';
5
+ import type { Slot } from '@fluentui/react-utilities';
6
6
 
7
7
  /**
8
8
  * Render the final JSX of Switch
@@ -16,7 +16,7 @@ export declare const Switch: ForwardRefComponent<SwitchProps>;
16
16
 
17
17
  export declare const switchClassName = "fui-Switch";
18
18
 
19
- export declare interface SwitchCommons {
19
+ declare interface SwitchCommons {
20
20
  /**
21
21
  * The starting value for a uncontrolled Switch. If `true` then the Switch will be enabled.
22
22
  * Mutually exclusive with `checked` prop.
@@ -43,34 +43,34 @@ export declare interface SwitchCommons {
43
43
  }) => void;
44
44
  }
45
45
 
46
- export declare interface SwitchProps extends Omit<ComponentProps<SwitchSlots>, 'onChange'>, SwitchCommons {
46
+ export declare interface SwitchProps extends Omit<ComponentProps<Partial<SwitchSlots>>, 'onChange'>, SwitchCommons {
47
47
  }
48
48
 
49
49
  export declare type SwitchSlots = {
50
50
  /**
51
51
  * The root of the Switch.
52
52
  */
53
- root: IntrinsicSlotProps<'div'>;
53
+ root: Slot<'div'>;
54
54
  /**
55
55
  * The bar indicating the status of the Switch.
56
56
  */
57
- track: IntrinsicSlotProps<'div'>;
57
+ track: NonNullable<Slot<'div'>>;
58
58
  /**
59
59
  * The wrapper around the thumb. It is used as the active area for the thumb to position itself.
60
60
  */
61
- thumbWrapper: IntrinsicSlotProps<'div'>;
61
+ thumbWrapper: NonNullable<Slot<'div'>>;
62
62
  /**
63
63
  * The circular icon indicating the status of the Switch.
64
64
  */
65
- thumb: IntrinsicSlotProps<'div'>;
65
+ thumb: NonNullable<Slot<'div'>>;
66
66
  /**
67
67
  * The hidden input that handles the Switch's internal functionality.
68
68
  */
69
- input: IntrinsicSlotProps<'input'>;
69
+ input: NonNullable<Slot<'input'>>;
70
70
  /**
71
71
  * The area in which the Switch's rail allows for the thumb to be dragged.
72
72
  */
73
- activeRail: IntrinsicSlotProps<'div'>;
73
+ activeRail: NonNullable<Slot<'div'>>;
74
74
  };
75
75
 
76
76
  export declare interface SwitchState extends ComponentState<SwitchSlots>, SwitchCommons {
@@ -1,32 +1,32 @@
1
1
  import * as React from 'react';
2
- import type { ComponentProps, ComponentState, IntrinsicSlotProps } from '@fluentui/react-utilities';
2
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
3
3
  export declare type SwitchSlots = {
4
4
  /**
5
5
  * The root of the Switch.
6
6
  */
7
- root: IntrinsicSlotProps<'div'>;
7
+ root: Slot<'div'>;
8
8
  /**
9
9
  * The bar indicating the status of the Switch.
10
10
  */
11
- track: IntrinsicSlotProps<'div'>;
11
+ track: NonNullable<Slot<'div'>>;
12
12
  /**
13
13
  * The wrapper around the thumb. It is used as the active area for the thumb to position itself.
14
14
  */
15
- thumbWrapper: IntrinsicSlotProps<'div'>;
15
+ thumbWrapper: NonNullable<Slot<'div'>>;
16
16
  /**
17
17
  * The circular icon indicating the status of the Switch.
18
18
  */
19
- thumb: IntrinsicSlotProps<'div'>;
19
+ thumb: NonNullable<Slot<'div'>>;
20
20
  /**
21
21
  * The hidden input that handles the Switch's internal functionality.
22
22
  */
23
- input: IntrinsicSlotProps<'input'>;
23
+ input: NonNullable<Slot<'input'>>;
24
24
  /**
25
25
  * The area in which the Switch's rail allows for the thumb to be dragged.
26
26
  */
27
- activeRail: IntrinsicSlotProps<'div'>;
27
+ activeRail: NonNullable<Slot<'div'>>;
28
28
  };
29
- export interface SwitchCommons {
29
+ interface SwitchCommons {
30
30
  /**
31
31
  * The starting value for a uncontrolled Switch. If `true` then the Switch will be enabled.
32
32
  * Mutually exclusive with `checked` prop.
@@ -52,7 +52,8 @@ export interface SwitchCommons {
52
52
  checked: boolean;
53
53
  }) => void;
54
54
  }
55
- export interface SwitchProps extends Omit<ComponentProps<SwitchSlots>, 'onChange'>, SwitchCommons {
55
+ export interface SwitchProps extends Omit<ComponentProps<Partial<SwitchSlots>>, 'onChange'>, SwitchCommons {
56
56
  }
57
57
  export interface SwitchState extends ComponentState<SwitchSlots>, SwitchCommons {
58
58
  }
59
+ export {};
@@ -1,32 +1,32 @@
1
1
  import * as React from 'react';
2
- import type { ComponentProps, ComponentState, IntrinsicSlotProps } from '@fluentui/react-utilities';
2
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
3
3
  export declare type SwitchSlots = {
4
4
  /**
5
5
  * The root of the Switch.
6
6
  */
7
- root: IntrinsicSlotProps<'div'>;
7
+ root: Slot<'div'>;
8
8
  /**
9
9
  * The bar indicating the status of the Switch.
10
10
  */
11
- track: IntrinsicSlotProps<'div'>;
11
+ track: NonNullable<Slot<'div'>>;
12
12
  /**
13
13
  * The wrapper around the thumb. It is used as the active area for the thumb to position itself.
14
14
  */
15
- thumbWrapper: IntrinsicSlotProps<'div'>;
15
+ thumbWrapper: NonNullable<Slot<'div'>>;
16
16
  /**
17
17
  * The circular icon indicating the status of the Switch.
18
18
  */
19
- thumb: IntrinsicSlotProps<'div'>;
19
+ thumb: NonNullable<Slot<'div'>>;
20
20
  /**
21
21
  * The hidden input that handles the Switch's internal functionality.
22
22
  */
23
- input: IntrinsicSlotProps<'input'>;
23
+ input: NonNullable<Slot<'input'>>;
24
24
  /**
25
25
  * The area in which the Switch's rail allows for the thumb to be dragged.
26
26
  */
27
- activeRail: IntrinsicSlotProps<'div'>;
27
+ activeRail: NonNullable<Slot<'div'>>;
28
28
  };
29
- export interface SwitchCommons {
29
+ interface SwitchCommons {
30
30
  /**
31
31
  * The starting value for a uncontrolled Switch. If `true` then the Switch will be enabled.
32
32
  * Mutually exclusive with `checked` prop.
@@ -52,7 +52,8 @@ export interface SwitchCommons {
52
52
  checked: boolean;
53
53
  }) => void;
54
54
  }
55
- export interface SwitchProps extends Omit<ComponentProps<SwitchSlots>, 'onChange'>, SwitchCommons {
55
+ export interface SwitchProps extends Omit<ComponentProps<Partial<SwitchSlots>>, 'onChange'>, SwitchCommons {
56
56
  }
57
57
  export interface SwitchState extends ComponentState<SwitchSlots>, SwitchCommons {
58
58
  }
59
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-switch",
3
- "version": "0.0.0-nightly946f57cad420220203.1",
3
+ "version": "0.0.0-nightly96d9c9354420220210.1",
4
4
  "description": "Fluent UI React Switch component.",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -28,7 +28,7 @@
28
28
  "devDependencies": {
29
29
  "@fluentui/eslint-plugin": "*",
30
30
  "@fluentui/react-conformance": "*",
31
- "@fluentui/react-conformance-griffel": "0.0.0-nightly946f57cad420220203.1",
31
+ "@fluentui/react-conformance-griffel": "0.0.0-nightly96d9c9354420220210.1",
32
32
  "@fluentui/scripts": "^1.0.0",
33
33
  "@types/enzyme": "3.10.3",
34
34
  "@types/enzyme-adapter-react-16": "1.0.3",
@@ -42,9 +42,9 @@
42
42
  "react-test-renderer": "^16.3.0"
43
43
  },
44
44
  "dependencies": {
45
- "@fluentui/react-shared-contexts": "0.0.0-nightly946f57cad420220203.1",
46
- "@fluentui/react-tabster": "0.0.0-nightly946f57cad420220203.1",
47
- "@fluentui/react-utilities": "0.0.0-nightly946f57cad420220203.1",
45
+ "@fluentui/react-shared-contexts": "0.0.0-nightly96d9c9354420220210.1",
46
+ "@fluentui/react-tabster": "0.0.0-nightly96d9c9354420220210.1",
47
+ "@fluentui/react-utilities": "0.0.0-nightly96d9c9354420220210.1",
48
48
  "@griffel/react": "1.0.0",
49
49
  "tslib": "^2.1.0"
50
50
  },