@fluentui/react-button 0.0.0-nightly-20220516-0419.1 → 0.0.0-nightly-20220519-0420.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,9 +2,9 @@
2
2
  "name": "@fluentui/react-button",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 16 May 2022 04:32:42 GMT",
6
- "tag": "@fluentui/react-button_v0.0.0-nightly-20220516-0419.1",
7
- "version": "0.0.0-nightly-20220516-0419.1",
5
+ "date": "Thu, 19 May 2022 04:30:59 GMT",
6
+ "tag": "@fluentui/react-button_v0.0.0-nightly-20220519-0420.1",
7
+ "version": "0.0.0-nightly-20220519-0420.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
@@ -19,35 +19,41 @@
19
19
  "commit": "606dca4330f71a3a3ac466a30b3db1664ad0c55d",
20
20
  "comment": "Removing Common types from all button components."
21
21
  },
22
+ {
23
+ "author": "Humberto.Morimoto@microsoft.com",
24
+ "package": "@fluentui/react-button",
25
+ "commit": "be57c96ae39842da3bc38740b7823eeee68cc3ea",
26
+ "comment": "Removing ToggleButtonCommons type in @fluentui/react-button."
27
+ },
22
28
  {
23
29
  "author": "beachball",
24
30
  "package": "@fluentui/react-button",
25
- "comment": "Bump @fluentui/react-aria to v0.0.0-nightly-20220516-0419.1",
26
- "commit": "737cd1292dec6412494b80cf051d7e51e2a0993f"
31
+ "comment": "Bump @fluentui/react-aria to v0.0.0-nightly-20220519-0420.1",
32
+ "commit": "54a7d23bd4e12f3341618cd1bcac4c4367ed6168"
27
33
  },
28
34
  {
29
35
  "author": "beachball",
30
36
  "package": "@fluentui/react-button",
31
- "comment": "Bump @fluentui/react-tabster to v0.0.0-nightly-20220516-0419.1",
32
- "commit": "737cd1292dec6412494b80cf051d7e51e2a0993f"
37
+ "comment": "Bump @fluentui/react-tabster to v0.0.0-nightly-20220519-0420.1",
38
+ "commit": "54a7d23bd4e12f3341618cd1bcac4c4367ed6168"
33
39
  },
34
40
  {
35
41
  "author": "beachball",
36
42
  "package": "@fluentui/react-button",
37
- "comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20220516-0419.1",
38
- "commit": "737cd1292dec6412494b80cf051d7e51e2a0993f"
43
+ "comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20220519-0420.1",
44
+ "commit": "54a7d23bd4e12f3341618cd1bcac4c4367ed6168"
39
45
  },
40
46
  {
41
47
  "author": "beachball",
42
48
  "package": "@fluentui/react-button",
43
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20220516-0419.1",
44
- "commit": "737cd1292dec6412494b80cf051d7e51e2a0993f"
49
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20220519-0420.1",
50
+ "commit": "54a7d23bd4e12f3341618cd1bcac4c4367ed6168"
45
51
  },
46
52
  {
47
53
  "author": "beachball",
48
54
  "package": "@fluentui/react-button",
49
- "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20220516-0419.1",
50
- "commit": "737cd1292dec6412494b80cf051d7e51e2a0993f"
55
+ "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20220519-0420.1",
56
+ "commit": "54a7d23bd4e12f3341618cd1bcac4c4367ed6168"
51
57
  }
52
58
  ]
53
59
  }
package/CHANGELOG.md CHANGED
@@ -1,23 +1,24 @@
1
1
  # Change Log - @fluentui/react-button
2
2
 
3
- This log was last generated on Mon, 16 May 2022 04:32:42 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 19 May 2022 04:30:59 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly-20220516-0419.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v0.0.0-nightly-20220516-0419.1)
7
+ ## [0.0.0-nightly-20220519-0420.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v0.0.0-nightly-20220519-0420.1)
8
8
 
9
- Mon, 16 May 2022 04:32:42 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-rc.9..@fluentui/react-button_v0.0.0-nightly-20220516-0419.1)
9
+ Thu, 19 May 2022 04:30:59 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-rc.9..@fluentui/react-button_v0.0.0-nightly-20220519-0420.1)
11
11
 
12
12
  ### Changes
13
13
 
14
14
  - chore: Update Griffel to latest version ([PR #22894](https://github.com/microsoft/fluentui/pull/22894) by olfedias@microsoft.com)
15
15
  - Removing Common types from all button components. ([PR #22904](https://github.com/microsoft/fluentui/pull/22904) by humberto_makoto@hotmail.com)
16
- - Bump @fluentui/react-aria to v0.0.0-nightly-20220516-0419.1 ([commit](https://github.com/microsoft/fluentui/commit/737cd1292dec6412494b80cf051d7e51e2a0993f) by beachball)
17
- - Bump @fluentui/react-tabster to v0.0.0-nightly-20220516-0419.1 ([commit](https://github.com/microsoft/fluentui/commit/737cd1292dec6412494b80cf051d7e51e2a0993f) by beachball)
18
- - Bump @fluentui/react-theme to v0.0.0-nightly-20220516-0419.1 ([commit](https://github.com/microsoft/fluentui/commit/737cd1292dec6412494b80cf051d7e51e2a0993f) by beachball)
19
- - Bump @fluentui/react-utilities to v0.0.0-nightly-20220516-0419.1 ([commit](https://github.com/microsoft/fluentui/commit/737cd1292dec6412494b80cf051d7e51e2a0993f) by beachball)
20
- - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20220516-0419.1 ([commit](https://github.com/microsoft/fluentui/commit/737cd1292dec6412494b80cf051d7e51e2a0993f) by beachball)
16
+ - Removing ToggleButtonCommons type in @fluentui/react-button. ([PR #23067](https://github.com/microsoft/fluentui/pull/23067) by Humberto.Morimoto@microsoft.com)
17
+ - Bump @fluentui/react-aria to v0.0.0-nightly-20220519-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/54a7d23bd4e12f3341618cd1bcac4c4367ed6168) by beachball)
18
+ - Bump @fluentui/react-tabster to v0.0.0-nightly-20220519-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/54a7d23bd4e12f3341618cd1bcac4c4367ed6168) by beachball)
19
+ - Bump @fluentui/react-theme to v0.0.0-nightly-20220519-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/54a7d23bd4e12f3341618cd1bcac4c4367ed6168) by beachball)
20
+ - Bump @fluentui/react-utilities to v0.0.0-nightly-20220519-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/54a7d23bd4e12f3341618cd1bcac4c4367ed6168) by beachball)
21
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20220519-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/54a7d23bd4e12f3341618cd1bcac4c4367ed6168) by beachball)
21
22
 
22
23
  ## [9.0.0-rc.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0-rc.9)
23
24
 
package/dist/index.d.ts CHANGED
@@ -207,26 +207,25 @@ export declare const toggleButtonClassName: string;
207
207
 
208
208
  export declare const toggleButtonClassNames: SlotClassNames<ButtonSlots>;
209
209
 
210
- declare type ToggleButtonCommons = {
210
+ export declare type ToggleButtonProps = ButtonProps & {
211
+ /**
212
+ * Defines whether the `ToggleButton` is initially in a checked state or not when rendered.
213
+ *
214
+ * @default false
215
+ */
216
+ defaultChecked?: boolean;
211
217
  /**
212
218
  * Defines the controlled checked state of the `ToggleButton`.
213
219
  * If passed, `ToggleButton` ignores the `defaultChecked` property.
214
220
  * This should only be used if the checked state is to be controlled at a higher level and there is a plan to pass the
215
221
  * correct value based on handling `onClick` events and re-rendering.
222
+ *
216
223
  * @default false
217
224
  */
218
- checked: boolean;
219
- };
220
-
221
- export declare type ToggleButtonProps = ButtonProps & Partial<ToggleButtonCommons> & {
222
- /**
223
- * Defines whether the `ToggleButton` is initially in a checked state or not when rendered.
224
- * @default false
225
- */
226
- defaultChecked?: boolean;
225
+ checked?: boolean;
227
226
  };
228
227
 
229
- export declare type ToggleButtonState = ButtonState & ToggleButtonCommons;
228
+ export declare type ToggleButtonState = ButtonState & Required<Pick<ToggleButtonProps, 'checked'>>;
230
229
 
231
230
  /**
232
231
  * Given user props, defines default props for the Button, calls useButtonState, and returns processed state.
@@ -1 +1 @@
1
- {"version":3,"file":"ToggleButton.types.js","sourceRoot":"../src/","sources":["components/ToggleButton/ToggleButton.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonProps, ButtonState } from '../Button/Button.types';\n\ntype ToggleButtonCommons = {\n /**\n * Defines the controlled checked state of the `ToggleButton`.\n * If passed, `ToggleButton` ignores the `defaultChecked` property.\n * This should only be used if the checked state is to be controlled at a higher level and there is a plan to pass the\n * correct value based on handling `onClick` events and re-rendering.\n * @default false\n */\n checked: boolean;\n};\n\nexport type ToggleButtonProps = ButtonProps &\n Partial<ToggleButtonCommons> & {\n /**\n * Defines whether the `ToggleButton` is initially in a checked state or not when rendered.\n * @default false\n */\n defaultChecked?: boolean;\n };\n\nexport type ToggleButtonState = ButtonState & ToggleButtonCommons;\n"]}
1
+ {"version":3,"file":"ToggleButton.types.js","sourceRoot":"../src/","sources":["components/ToggleButton/ToggleButton.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonProps, ButtonState } from '../Button/Button.types';\n\nexport type ToggleButtonProps = ButtonProps & {\n /**\n * Defines whether the `ToggleButton` is initially in a checked state or not when rendered.\n *\n * @default false\n */\n defaultChecked?: boolean;\n\n /**\n * Defines the controlled checked state of the `ToggleButton`.\n * If passed, `ToggleButton` ignores the `defaultChecked` property.\n * This should only be used if the checked state is to be controlled at a higher level and there is a plan to pass the\n * correct value based on handling `onClick` events and re-rendering.\n *\n * @default false\n */\n checked?: boolean;\n};\n\nexport type ToggleButtonState = ButtonState & Required<Pick<ToggleButtonProps, 'checked'>>;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-button",
3
- "version": "0.0.0-nightly-20220516-0419.1",
3
+ "version": "0.0.0-nightly-20220519-0420.1",
4
4
  "description": "Fluent UI React Button component.",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -29,16 +29,16 @@
29
29
  "@fluentui/a11y-testing": "^0.1.0",
30
30
  "@fluentui/eslint-plugin": "*",
31
31
  "@fluentui/react-conformance": "*",
32
- "@fluentui/react-conformance-griffel": "0.0.0-nightly-20220516-0419.1",
32
+ "@fluentui/react-conformance-griffel": "0.0.0-nightly-20220519-0420.1",
33
33
  "@fluentui/scripts": "^1.0.0"
34
34
  },
35
35
  "dependencies": {
36
- "@fluentui/keyboard-keys": "0.0.0-nightly-20220516-0419.0",
37
- "@fluentui/react-aria": "0.0.0-nightly-20220516-0419.1",
36
+ "@fluentui/keyboard-keys": "0.0.0-nightly-20220519-0420.0",
37
+ "@fluentui/react-aria": "0.0.0-nightly-20220519-0420.1",
38
38
  "@fluentui/react-icons": "^2.0.166-rc.3",
39
- "@fluentui/react-tabster": "0.0.0-nightly-20220516-0419.1",
40
- "@fluentui/react-theme": "0.0.0-nightly-20220516-0419.1",
41
- "@fluentui/react-utilities": "0.0.0-nightly-20220516-0419.1",
39
+ "@fluentui/react-tabster": "0.0.0-nightly-20220519-0420.1",
40
+ "@fluentui/react-theme": "0.0.0-nightly-20220519-0420.1",
41
+ "@fluentui/react-utilities": "0.0.0-nightly-20220519-0420.1",
42
42
  "@griffel/react": "1.0.4",
43
43
  "tslib": "^2.1.0"
44
44
  },