@fluentui/react-button 0.0.0-nightly-20220317-0422.1 → 0.0.0-nightly-20220318-0416.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 +21 -15
- package/CHANGELOG.md +11 -10
- package/dist/react-button.d.ts +2 -2
- package/lib/components/Button/Button.types.d.ts +1 -1
- package/lib/components/Button/Button.types.js.map +1 -1
- package/lib/components/SplitButton/SplitButton.types.d.ts +1 -1
- package/lib/components/SplitButton/SplitButton.types.js.map +1 -1
- package/lib-commonjs/components/Button/Button.types.d.ts +1 -1
- package/lib-commonjs/components/SplitButton/SplitButton.types.d.ts +1 -1
- package/package.json +7 -7
package/CHANGELOG.json
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
"name": "@fluentui/react-button",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
6
|
-
"tag": "@fluentui/react-button_v0.0.0-nightly-
|
7
|
-
"version": "0.0.0-nightly-
|
5
|
+
"date": "Fri, 18 Mar 2022 04:27:17 GMT",
|
6
|
+
"tag": "@fluentui/react-button_v0.0.0-nightly-20220318-0416.1",
|
7
|
+
"version": "0.0.0-nightly-20220318-0416.1",
|
8
8
|
"comments": {
|
9
9
|
"prerelease": [
|
10
10
|
{
|
@@ -19,6 +19,12 @@
|
|
19
19
|
"commit": "e0660222b8d9f4f38a61b718c18d4c67e52c8df9",
|
20
20
|
"comment": "Disabling lint rule for deprecated [component]ClassName exports."
|
21
21
|
},
|
22
|
+
{
|
23
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
24
|
+
"package": "@fluentui/react-button",
|
25
|
+
"commit": "8c862ab1147fd38bc5008c85d1644f992561f89f",
|
26
|
+
"comment": "Button components: Making root a non-nullable slot."
|
27
|
+
},
|
22
28
|
{
|
23
29
|
"author": "Humberto.Morimoto@microsoft.com",
|
24
30
|
"package": "@fluentui/react-button",
|
@@ -40,38 +46,38 @@
|
|
40
46
|
{
|
41
47
|
"author": "beachball",
|
42
48
|
"package": "@fluentui/react-button",
|
43
|
-
"comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightly-
|
44
|
-
"commit": "
|
49
|
+
"comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightly-20220318-0416.1",
|
50
|
+
"commit": "9fe23c6e14ceb14d72b49bf59ded7e05f0dc185d"
|
45
51
|
},
|
46
52
|
{
|
47
53
|
"author": "beachball",
|
48
54
|
"package": "@fluentui/react-button",
|
49
|
-
"comment": "Bump @fluentui/react-aria to v0.0.0-nightly-
|
50
|
-
"commit": "
|
55
|
+
"comment": "Bump @fluentui/react-aria to v0.0.0-nightly-20220318-0416.1",
|
56
|
+
"commit": "9fe23c6e14ceb14d72b49bf59ded7e05f0dc185d"
|
51
57
|
},
|
52
58
|
{
|
53
59
|
"author": "beachball",
|
54
60
|
"package": "@fluentui/react-button",
|
55
|
-
"comment": "Bump @fluentui/react-tabster to v0.0.0-nightly-
|
56
|
-
"commit": "
|
61
|
+
"comment": "Bump @fluentui/react-tabster to v0.0.0-nightly-20220318-0416.1",
|
62
|
+
"commit": "9fe23c6e14ceb14d72b49bf59ded7e05f0dc185d"
|
57
63
|
},
|
58
64
|
{
|
59
65
|
"author": "beachball",
|
60
66
|
"package": "@fluentui/react-button",
|
61
|
-
"comment": "Bump @fluentui/react-theme to v0.0.0-nightly-
|
62
|
-
"commit": "
|
67
|
+
"comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20220318-0416.1",
|
68
|
+
"commit": "9fe23c6e14ceb14d72b49bf59ded7e05f0dc185d"
|
63
69
|
},
|
64
70
|
{
|
65
71
|
"author": "beachball",
|
66
72
|
"package": "@fluentui/react-button",
|
67
|
-
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-
|
68
|
-
"commit": "
|
73
|
+
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20220318-0416.1",
|
74
|
+
"commit": "9fe23c6e14ceb14d72b49bf59ded7e05f0dc185d"
|
69
75
|
},
|
70
76
|
{
|
71
77
|
"author": "beachball",
|
72
78
|
"package": "@fluentui/react-button",
|
73
|
-
"comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-
|
74
|
-
"commit": "
|
79
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20220318-0416.1",
|
80
|
+
"commit": "9fe23c6e14ceb14d72b49bf59ded7e05f0dc185d"
|
75
81
|
}
|
76
82
|
],
|
77
83
|
"none": [
|
package/CHANGELOG.md
CHANGED
@@ -1,27 +1,28 @@
|
|
1
1
|
# Change Log - @fluentui/react-button
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Fri, 18 Mar 2022 04:27:17 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
-
## [0.0.0-nightly-
|
7
|
+
## [0.0.0-nightly-20220318-0416.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v0.0.0-nightly-20220318-0416.1)
|
8
8
|
|
9
|
-
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-rc.5..@fluentui/react-button_v0.0.0-nightly-
|
9
|
+
Fri, 18 Mar 2022 04:27:17 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-rc.5..@fluentui/react-button_v0.0.0-nightly-20220318-0416.1)
|
11
11
|
|
12
12
|
### Changes
|
13
13
|
|
14
14
|
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/not available) by email not defined)
|
15
15
|
- Disabling lint rule for deprecated [component]ClassName exports. ([PR #22131](https://github.com/microsoft/fluentui/pull/22131) by Humberto.Morimoto@microsoft.com)
|
16
|
+
- Button components: Making root a non-nullable slot. ([PR #22147](https://github.com/microsoft/fluentui/pull/22147) by Humberto.Morimoto@microsoft.com)
|
16
17
|
- CompoundButton: Fixing bug where component was iconOnly even when secondaryContent was being provided. ([PR #22107](https://github.com/microsoft/fluentui/pull/22107) by Humberto.Morimoto@microsoft.com)
|
17
18
|
- Removing star exports. ([PR #22111](https://github.com/microsoft/fluentui/pull/22111) by Humberto.Morimoto@microsoft.com)
|
18
19
|
- Add deprecation messages to react-button ([PR #21960](https://github.com/microsoft/fluentui/pull/21960) by seanmonahan@microsoft.com)
|
19
|
-
- Bump @fluentui/keyboard-keys to v0.0.0-nightly-
|
20
|
-
- Bump @fluentui/react-aria to v0.0.0-nightly-
|
21
|
-
- Bump @fluentui/react-tabster to v0.0.0-nightly-
|
22
|
-
- Bump @fluentui/react-theme to v0.0.0-nightly-
|
23
|
-
- Bump @fluentui/react-utilities to v0.0.0-nightly-
|
24
|
-
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-
|
20
|
+
- Bump @fluentui/keyboard-keys to v0.0.0-nightly-20220318-0416.1 ([commit](https://github.com/microsoft/fluentui/commit/9fe23c6e14ceb14d72b49bf59ded7e05f0dc185d) by beachball)
|
21
|
+
- Bump @fluentui/react-aria to v0.0.0-nightly-20220318-0416.1 ([commit](https://github.com/microsoft/fluentui/commit/9fe23c6e14ceb14d72b49bf59ded7e05f0dc185d) by beachball)
|
22
|
+
- Bump @fluentui/react-tabster to v0.0.0-nightly-20220318-0416.1 ([commit](https://github.com/microsoft/fluentui/commit/9fe23c6e14ceb14d72b49bf59ded7e05f0dc185d) by beachball)
|
23
|
+
- Bump @fluentui/react-theme to v0.0.0-nightly-20220318-0416.1 ([commit](https://github.com/microsoft/fluentui/commit/9fe23c6e14ceb14d72b49bf59ded7e05f0dc185d) by beachball)
|
24
|
+
- Bump @fluentui/react-utilities to v0.0.0-nightly-20220318-0416.1 ([commit](https://github.com/microsoft/fluentui/commit/9fe23c6e14ceb14d72b49bf59ded7e05f0dc185d) by beachball)
|
25
|
+
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20220318-0416.1 ([commit](https://github.com/microsoft/fluentui/commit/9fe23c6e14ceb14d72b49bf59ded7e05f0dc185d) by beachball)
|
25
26
|
|
26
27
|
## [9.0.0-rc.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0-rc.5)
|
27
28
|
|
package/dist/react-button.d.ts
CHANGED
@@ -67,7 +67,7 @@ export declare type ButtonSlots = {
|
|
67
67
|
/**
|
68
68
|
* Root of the component that renders as either a `<button>` tag or an `<a>` tag.
|
69
69
|
*/
|
70
|
-
root: Slot<ARIAButtonSlotProps
|
70
|
+
root: NonNullable<Slot<ARIAButtonSlotProps>>;
|
71
71
|
/**
|
72
72
|
* Icon that renders either before or after the `children` as specified by the `iconPosition` prop.
|
73
73
|
*/
|
@@ -173,7 +173,7 @@ export declare type SplitButtonSlots = {
|
|
173
173
|
/**
|
174
174
|
* Root of the component that wraps the primary action button and menu button.
|
175
175
|
*/
|
176
|
-
root: Slot<'div'
|
176
|
+
root: NonNullable<Slot<'div'>>;
|
177
177
|
/**
|
178
178
|
* Button that opens menu with secondary actions in SplitButton.
|
179
179
|
*/
|
@@ -4,7 +4,7 @@ export declare type ButtonSlots = {
|
|
4
4
|
/**
|
5
5
|
* Root of the component that renders as either a `<button>` tag or an `<a>` tag.
|
6
6
|
*/
|
7
|
-
root: Slot<ARIAButtonSlotProps
|
7
|
+
root: NonNullable<Slot<ARIAButtonSlotProps>>;
|
8
8
|
/**
|
9
9
|
* Icon that renders either before or after the `children` as specified by the `iconPosition` prop.
|
10
10
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Button.types.js","sourceRoot":"../src/","sources":["components/Button/Button.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ARIAButtonSlotProps } from '@fluentui/react-aria';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type ButtonSlots = {\n /**\n * Root of the component that renders as either a `<button>` tag or an `<a>` tag.\n */\n root: Slot<ARIAButtonSlotProps
|
1
|
+
{"version":3,"file":"Button.types.js","sourceRoot":"../src/","sources":["components/Button/Button.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ARIAButtonSlotProps } from '@fluentui/react-aria';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type ButtonSlots = {\n /**\n * Root of the component that renders as either a `<button>` tag or an `<a>` tag.\n */\n root: NonNullable<Slot<ARIAButtonSlotProps>>;\n\n /**\n * Icon that renders either before or after the `children` as specified by the `iconPosition` prop.\n */\n icon?: Slot<'span'>;\n};\n\nexport type ButtonCommons = {\n /**\n * A button can have its content and borders styled for greater emphasis or to be subtle.\n * - 'primary': Emphasizes the button as a primary action.\n * - 'outline': Removes background styling.\n * - 'subtle': Minimizes emphasis to blend into the background until hovered or focused.\n * - 'transparent': Removes background and border styling.\n */\n appearance?: 'primary' | 'outline' | 'subtle' | 'transparent';\n\n /**\n * A button can fill the width of its container.\n * @default false\n */\n block: boolean;\n\n /**\n * When set, allows the button to be focusable even when it has been disabled. This is used in scenarios where it\n * is important to keep a consistent tab order for screen reader and keyboard users. The primary example of this\n * pattern is when the disabled button is in a menu or a commandbar and is seldom used for standalone buttons.\n * @default false\n */\n disabledFocusable: boolean;\n\n /**\n * A button can show that it cannot be interacted with.\n * @default false\n */\n disabled: boolean;\n\n /**\n * A button can format its icon to appear before or after its content.\n * @default 'before'\n */\n iconPosition?: 'before' | 'after';\n\n /**\n * A button can be rounded, circular, or square.\n * @default 'rounded'\n */\n shape: 'rounded' | 'circular' | 'square';\n\n /**\n * A button supports different sizes.\n * @default 'medium'\n */\n size: 'small' | 'medium' | 'large';\n};\n\nexport type ButtonProps = ComponentProps<ButtonSlots> & Partial<ButtonCommons>;\n\nexport type ButtonState = ComponentState<ButtonSlots> &\n ButtonCommons & {\n /**\n * A button can contain only an icon.\n * @default false\n */\n iconOnly: boolean;\n };\n"]}
|
@@ -7,7 +7,7 @@ export declare type SplitButtonSlots = {
|
|
7
7
|
/**
|
8
8
|
* Root of the component that wraps the primary action button and menu button.
|
9
9
|
*/
|
10
|
-
root: Slot<'div'
|
10
|
+
root: NonNullable<Slot<'div'>>;
|
11
11
|
/**
|
12
12
|
* Button that opens menu with secondary actions in SplitButton.
|
13
13
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SplitButton.types.js","sourceRoot":"../src/","sources":["components/SplitButton/SplitButton.types.ts"],"names":[],"mappings":"","sourcesContent":["import { Button } from '../Button/Button';\nimport { MenuButton } from '../MenuButton/MenuButton';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { ButtonProps, ButtonState } from '../Button/Button.types';\nimport type { MenuButtonProps, MenuButtonState } from '../MenuButton/MenuButton.types';\n\nexport type SplitButtonSlots = {\n /**\n * Root of the component that wraps the primary action button and menu button.\n */\n root: Slot<'div'
|
1
|
+
{"version":3,"file":"SplitButton.types.js","sourceRoot":"../src/","sources":["components/SplitButton/SplitButton.types.ts"],"names":[],"mappings":"","sourcesContent":["import { Button } from '../Button/Button';\nimport { MenuButton } from '../MenuButton/MenuButton';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { ButtonProps, ButtonState } from '../Button/Button.types';\nimport type { MenuButtonProps, MenuButtonState } from '../MenuButton/MenuButton.types';\n\nexport type SplitButtonSlots = {\n /**\n * Root of the component that wraps the primary action button and menu button.\n */\n root: NonNullable<Slot<'div'>>;\n\n /**\n * Button that opens menu with secondary actions in SplitButton.\n */\n menuButton?: Slot<typeof MenuButton>;\n /**\n * Button to perform primary action in SplitButton.\n */\n primaryActionButton?: Slot<typeof Button>;\n};\n\nexport type SplitButtonProps = ComponentProps<SplitButtonSlots> &\n Omit<ButtonProps, 'root'> &\n Omit<MenuButtonProps, 'root'>;\n\nexport type SplitButtonState = ComponentState<SplitButtonSlots> &\n Omit<ButtonState, 'components' | 'iconOnly' | 'root'> &\n Omit<MenuButtonState, 'components' | 'iconOnly' | 'root'>;\n"]}
|
@@ -4,7 +4,7 @@ export declare type ButtonSlots = {
|
|
4
4
|
/**
|
5
5
|
* Root of the component that renders as either a `<button>` tag or an `<a>` tag.
|
6
6
|
*/
|
7
|
-
root: Slot<ARIAButtonSlotProps
|
7
|
+
root: NonNullable<Slot<ARIAButtonSlotProps>>;
|
8
8
|
/**
|
9
9
|
* Icon that renders either before or after the `children` as specified by the `iconPosition` prop.
|
10
10
|
*/
|
@@ -7,7 +7,7 @@ export declare type SplitButtonSlots = {
|
|
7
7
|
/**
|
8
8
|
* Root of the component that wraps the primary action button and menu button.
|
9
9
|
*/
|
10
|
-
root: Slot<'div'
|
10
|
+
root: NonNullable<Slot<'div'>>;
|
11
11
|
/**
|
12
12
|
* Button that opens menu with secondary actions in SplitButton.
|
13
13
|
*/
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-button",
|
3
|
-
"version": "0.0.0-nightly-
|
3
|
+
"version": "0.0.0-nightly-20220318-0416.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-
|
32
|
+
"@fluentui/react-conformance-griffel": "0.0.0-nightly-20220318-0416.1",
|
33
33
|
"@fluentui/scripts": "^1.0.0"
|
34
34
|
},
|
35
35
|
"dependencies": {
|
36
|
-
"@fluentui/keyboard-keys": "0.0.0-nightly-
|
37
|
-
"@fluentui/react-aria": "0.0.0-nightly-
|
36
|
+
"@fluentui/keyboard-keys": "0.0.0-nightly-20220318-0416.1",
|
37
|
+
"@fluentui/react-aria": "0.0.0-nightly-20220318-0416.1",
|
38
38
|
"@fluentui/react-icons": "^2.0.159-beta.10",
|
39
|
-
"@fluentui/react-tabster": "0.0.0-nightly-
|
40
|
-
"@fluentui/react-theme": "0.0.0-nightly-
|
41
|
-
"@fluentui/react-utilities": "0.0.0-nightly-
|
39
|
+
"@fluentui/react-tabster": "0.0.0-nightly-20220318-0416.1",
|
40
|
+
"@fluentui/react-theme": "0.0.0-nightly-20220318-0416.1",
|
41
|
+
"@fluentui/react-utilities": "0.0.0-nightly-20220318-0416.1",
|
42
42
|
"@griffel/react": "1.0.0",
|
43
43
|
"tslib": "^2.1.0"
|
44
44
|
},
|