@fluentui/react-switch 0.0.0-nightlya21bfaceec20220202.1 → 0.0.0-nightlyb2b3ec1da320220209.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": "Wed,
|
6
|
-
"tag": "@fluentui/react-switch_v0.0.0-
|
7
|
-
"version": "0.0.0-
|
5
|
+
"date": "Wed, 09 Feb 2022 04:13:03 GMT",
|
6
|
+
"tag": "@fluentui/react-switch_v0.0.0-nightlyb2b3ec1da320220209.1",
|
7
|
+
"version": "0.0.0-nightlyb2b3ec1da320220209.1",
|
8
8
|
"comments": {
|
9
9
|
"prerelease": [
|
10
10
|
{
|
11
11
|
"author": "email not defined",
|
12
12
|
"package": "@fluentui/react-switch",
|
13
|
-
"commit": "
|
13
|
+
"commit": "066f84c7bef7f4df47448557396199d8b7f26480",
|
14
14
|
"comment": "Release nightly v9"
|
15
15
|
},
|
16
16
|
{
|
@@ -31,6 +31,12 @@
|
|
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
|
+
},
|
34
40
|
{
|
35
41
|
"author": "olfedias@microsoft.com",
|
36
42
|
"package": "@fluentui/react-switch",
|
@@ -58,26 +64,26 @@
|
|
58
64
|
{
|
59
65
|
"author": "beachball",
|
60
66
|
"package": "@fluentui/react-switch",
|
61
|
-
"comment": "Bump @fluentui/react-shared-contexts to v0.0.0-
|
62
|
-
"commit": "
|
67
|
+
"comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightlyb2b3ec1da320220209.1",
|
68
|
+
"commit": "066f84c7bef7f4df47448557396199d8b7f26480"
|
63
69
|
},
|
64
70
|
{
|
65
71
|
"author": "beachball",
|
66
72
|
"package": "@fluentui/react-switch",
|
67
|
-
"comment": "Bump @fluentui/react-tabster to v0.0.0-
|
68
|
-
"commit": "
|
73
|
+
"comment": "Bump @fluentui/react-tabster to v0.0.0-nightlyb2b3ec1da320220209.1",
|
74
|
+
"commit": "066f84c7bef7f4df47448557396199d8b7f26480"
|
69
75
|
},
|
70
76
|
{
|
71
77
|
"author": "beachball",
|
72
78
|
"package": "@fluentui/react-switch",
|
73
|
-
"comment": "Bump @fluentui/react-utilities to v0.0.0-
|
74
|
-
"commit": "
|
79
|
+
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightlyb2b3ec1da320220209.1",
|
80
|
+
"commit": "066f84c7bef7f4df47448557396199d8b7f26480"
|
75
81
|
},
|
76
82
|
{
|
77
83
|
"author": "beachball",
|
78
84
|
"package": "@fluentui/react-switch",
|
79
|
-
"comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-
|
80
|
-
"commit": "
|
85
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightlyb2b3ec1da320220209.1",
|
86
|
+
"commit": "066f84c7bef7f4df47448557396199d8b7f26480"
|
81
87
|
}
|
82
88
|
],
|
83
89
|
"none": [
|
package/CHANGELOG.md
CHANGED
@@ -1,28 +1,29 @@
|
|
1
1
|
# Change Log - @fluentui/react-switch
|
2
2
|
|
3
|
-
This log was last generated on Wed,
|
3
|
+
This log was last generated on Wed, 09 Feb 2022 04:13:03 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
-
## [0.0.0-
|
7
|
+
## [0.0.0-nightlyb2b3ec1da320220209.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v0.0.0-nightlyb2b3ec1da320220209.1)
|
8
8
|
|
9
|
-
Wed,
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-beta.5..@fluentui/react-switch_v0.0.0-
|
9
|
+
Wed, 09 Feb 2022 04:13:03 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-beta.5..@fluentui/react-switch_v0.0.0-nightlyb2b3ec1da320220209.1)
|
11
11
|
|
12
12
|
### Changes
|
13
13
|
|
14
|
-
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/
|
14
|
+
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/066f84c7bef7f4df47448557396199d8b7f26480) 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)
|
18
19
|
- update styles to not use CSS shorthands ([PR #20844](https://github.com/microsoft/fluentui/pull/20844) by olfedias@microsoft.com)
|
19
20
|
- 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
21
|
- 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
22
|
- 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-
|
23
|
-
- Bump @fluentui/react-tabster to v0.0.0-
|
24
|
-
- Bump @fluentui/react-utilities to v0.0.0-
|
25
|
-
- Bump @fluentui/react-conformance-griffel to v0.0.0-
|
23
|
+
- Bump @fluentui/react-shared-contexts to v0.0.0-nightlyb2b3ec1da320220209.1 ([commit](https://github.com/microsoft/fluentui/commit/066f84c7bef7f4df47448557396199d8b7f26480) by beachball)
|
24
|
+
- Bump @fluentui/react-tabster to v0.0.0-nightlyb2b3ec1da320220209.1 ([commit](https://github.com/microsoft/fluentui/commit/066f84c7bef7f4df47448557396199d8b7f26480) by beachball)
|
25
|
+
- Bump @fluentui/react-utilities to v0.0.0-nightlyb2b3ec1da320220209.1 ([commit](https://github.com/microsoft/fluentui/commit/066f84c7bef7f4df47448557396199d8b7f26480) by beachball)
|
26
|
+
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightlyb2b3ec1da320220209.1 ([commit](https://github.com/microsoft/fluentui/commit/066f84c7bef7f4df47448557396199d8b7f26480) by beachball)
|
26
27
|
|
27
28
|
## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-beta.5)
|
28
29
|
|
package/dist/react-switch.d.ts
CHANGED
@@ -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
|
@@ -43,34 +43,34 @@ export declare interface SwitchCommons {
|
|
43
43
|
}) => void;
|
44
44
|
}
|
45
45
|
|
46
|
-
export declare interface SwitchProps extends Omit<ComponentProps<SwitchSlots
|
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:
|
53
|
+
root: Slot<'div'>;
|
54
54
|
/**
|
55
55
|
* The bar indicating the status of the Switch.
|
56
56
|
*/
|
57
|
-
track:
|
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:
|
61
|
+
thumbWrapper: NonNullable<Slot<'div'>>;
|
62
62
|
/**
|
63
63
|
* The circular icon indicating the status of the Switch.
|
64
64
|
*/
|
65
|
-
thumb:
|
65
|
+
thumb: NonNullable<Slot<'div'>>;
|
66
66
|
/**
|
67
67
|
* The hidden input that handles the Switch's internal functionality.
|
68
68
|
*/
|
69
|
-
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:
|
73
|
+
activeRail: NonNullable<Slot<'div'>>;
|
74
74
|
};
|
75
75
|
|
76
76
|
export declare interface SwitchState extends ComponentState<SwitchSlots>, SwitchCommons {
|
@@ -1,30 +1,30 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import type { ComponentProps, ComponentState,
|
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:
|
7
|
+
root: Slot<'div'>;
|
8
8
|
/**
|
9
9
|
* The bar indicating the status of the Switch.
|
10
10
|
*/
|
11
|
-
track:
|
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:
|
15
|
+
thumbWrapper: NonNullable<Slot<'div'>>;
|
16
16
|
/**
|
17
17
|
* The circular icon indicating the status of the Switch.
|
18
18
|
*/
|
19
|
-
thumb:
|
19
|
+
thumb: NonNullable<Slot<'div'>>;
|
20
20
|
/**
|
21
21
|
* The hidden input that handles the Switch's internal functionality.
|
22
22
|
*/
|
23
|
-
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:
|
27
|
+
activeRail: NonNullable<Slot<'div'>>;
|
28
28
|
};
|
29
29
|
export interface SwitchCommons {
|
30
30
|
/**
|
@@ -52,7 +52,7 @@ export interface SwitchCommons {
|
|
52
52
|
checked: boolean;
|
53
53
|
}) => void;
|
54
54
|
}
|
55
|
-
export interface SwitchProps extends Omit<ComponentProps<SwitchSlots
|
55
|
+
export interface SwitchProps extends Omit<ComponentProps<Partial<SwitchSlots>>, 'onChange'>, SwitchCommons {
|
56
56
|
}
|
57
57
|
export interface SwitchState extends ComponentState<SwitchSlots>, SwitchCommons {
|
58
58
|
}
|
@@ -1,30 +1,30 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import type { ComponentProps, ComponentState,
|
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:
|
7
|
+
root: Slot<'div'>;
|
8
8
|
/**
|
9
9
|
* The bar indicating the status of the Switch.
|
10
10
|
*/
|
11
|
-
track:
|
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:
|
15
|
+
thumbWrapper: NonNullable<Slot<'div'>>;
|
16
16
|
/**
|
17
17
|
* The circular icon indicating the status of the Switch.
|
18
18
|
*/
|
19
|
-
thumb:
|
19
|
+
thumb: NonNullable<Slot<'div'>>;
|
20
20
|
/**
|
21
21
|
* The hidden input that handles the Switch's internal functionality.
|
22
22
|
*/
|
23
|
-
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:
|
27
|
+
activeRail: NonNullable<Slot<'div'>>;
|
28
28
|
};
|
29
29
|
export interface SwitchCommons {
|
30
30
|
/**
|
@@ -52,7 +52,7 @@ export interface SwitchCommons {
|
|
52
52
|
checked: boolean;
|
53
53
|
}) => void;
|
54
54
|
}
|
55
|
-
export interface SwitchProps extends Omit<ComponentProps<SwitchSlots
|
55
|
+
export interface SwitchProps extends Omit<ComponentProps<Partial<SwitchSlots>>, 'onChange'>, SwitchCommons {
|
56
56
|
}
|
57
57
|
export interface SwitchState extends ComponentState<SwitchSlots>, SwitchCommons {
|
58
58
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-switch",
|
3
|
-
"version": "0.0.0-
|
3
|
+
"version": "0.0.0-nightlyb2b3ec1da320220209.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-
|
31
|
+
"@fluentui/react-conformance-griffel": "0.0.0-nightlyb2b3ec1da320220209.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-
|
46
|
-
"@fluentui/react-tabster": "0.0.0-
|
47
|
-
"@fluentui/react-utilities": "0.0.0-
|
45
|
+
"@fluentui/react-shared-contexts": "0.0.0-nightlyb2b3ec1da320220209.1",
|
46
|
+
"@fluentui/react-tabster": "0.0.0-nightlyb2b3ec1da320220209.1",
|
47
|
+
"@fluentui/react-utilities": "0.0.0-nightlyb2b3ec1da320220209.1",
|
48
48
|
"@griffel/react": "1.0.0",
|
49
49
|
"tslib": "^2.1.0"
|
50
50
|
},
|