@fluentui/react-button 0.0.0-nightlya9c3d10d9520220113.1 → 0.0.0-nightlyb2b3ec1da320220209.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.json +97 -37
- package/CHANGELOG.md +24 -17
- package/dist/react-button.d.ts +28 -33
- package/lib/components/Button/Button.js +6 -6
- package/lib/components/Button/Button.js.map +1 -1
- package/lib/components/Button/Button.types.d.ts +4 -4
- package/lib/components/Button/index.d.ts +1 -1
- package/lib/components/Button/index.js +1 -1
- package/lib/components/Button/index.js.map +1 -1
- package/lib/components/Button/renderButton.d.ts +1 -1
- package/lib/components/Button/renderButton.js +3 -3
- package/lib/components/Button/renderButton.js.map +1 -1
- package/lib/components/Button/useButton.d.ts +1 -1
- package/lib/components/Button/useButton.js +1 -1
- package/lib/components/Button/useButton.js.map +1 -1
- package/lib/components/Button/useButtonStyles.d.ts +1 -9
- package/lib/components/Button/useButtonStyles.js +8 -18
- package/lib/components/Button/useButtonStyles.js.map +1 -1
- package/lib/components/CompoundButton/CompoundButton.js +6 -6
- package/lib/components/CompoundButton/CompoundButton.js.map +1 -1
- package/lib/components/CompoundButton/CompoundButton.types.d.ts +4 -4
- package/lib/components/CompoundButton/index.d.ts +1 -1
- package/lib/components/CompoundButton/index.js +1 -1
- package/lib/components/CompoundButton/index.js.map +1 -1
- package/lib/components/CompoundButton/renderCompoundButton.d.ts +1 -1
- package/lib/components/CompoundButton/renderCompoundButton.js +4 -4
- package/lib/components/CompoundButton/renderCompoundButton.js.map +1 -1
- package/lib/components/CompoundButton/useCompoundButton.d.ts +1 -1
- package/lib/components/CompoundButton/useCompoundButton.js +3 -3
- package/lib/components/CompoundButton/useCompoundButton.js.map +1 -1
- package/lib/components/CompoundButton/useCompoundButtonStyles.d.ts +1 -1
- package/lib/components/CompoundButton/useCompoundButtonStyles.js +11 -12
- package/lib/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
- package/lib/components/MenuButton/MenuButton.js +6 -6
- package/lib/components/MenuButton/MenuButton.js.map +1 -1
- package/lib/components/MenuButton/MenuButton.types.d.ts +3 -8
- package/lib/components/MenuButton/index.d.ts +1 -1
- package/lib/components/MenuButton/index.js +1 -1
- package/lib/components/MenuButton/index.js.map +1 -1
- package/lib/components/MenuButton/renderMenuButton.d.ts +1 -1
- package/lib/components/MenuButton/renderMenuButton.js +3 -3
- package/lib/components/MenuButton/renderMenuButton.js.map +1 -1
- package/lib/components/MenuButton/useMenuButton.d.ts +1 -1
- package/lib/components/MenuButton/useMenuButton.js +3 -3
- package/lib/components/MenuButton/useMenuButton.js.map +1 -1
- package/lib/components/MenuButton/useMenuButtonStyles.d.ts +1 -1
- package/lib/components/MenuButton/useMenuButtonStyles.js +4 -4
- package/lib/components/MenuButton/useMenuButtonStyles.js.map +1 -1
- package/lib/components/SplitButton/SplitButton.js +6 -6
- package/lib/components/SplitButton/SplitButton.js.map +1 -1
- package/lib/components/SplitButton/SplitButton.types.d.ts +6 -4
- package/lib/components/SplitButton/index.d.ts +1 -1
- package/lib/components/SplitButton/index.js +1 -1
- package/lib/components/SplitButton/index.js.map +1 -1
- package/lib/components/SplitButton/renderSplitButton.d.ts +1 -1
- package/lib/components/SplitButton/renderSplitButton.js +3 -3
- package/lib/components/SplitButton/renderSplitButton.js.map +1 -1
- package/lib/components/SplitButton/useSplitButton.d.ts +1 -1
- package/lib/components/SplitButton/useSplitButton.js +1 -1
- package/lib/components/SplitButton/useSplitButton.js.map +1 -1
- package/lib/components/SplitButton/useSplitButtonStyles.d.ts +1 -1
- package/lib/components/SplitButton/useSplitButtonStyles.js +2 -2
- package/lib/components/SplitButton/useSplitButtonStyles.js.map +1 -1
- package/lib/components/ToggleButton/ToggleButton.js +6 -6
- package/lib/components/ToggleButton/ToggleButton.js.map +1 -1
- package/lib/components/ToggleButton/index.d.ts +1 -1
- package/lib/components/ToggleButton/index.js +1 -1
- package/lib/components/ToggleButton/index.js.map +1 -1
- package/lib/components/ToggleButton/renderToggleButton.d.ts +1 -1
- package/lib/components/ToggleButton/renderToggleButton.js +1 -1
- package/lib/components/ToggleButton/renderToggleButton.js.map +1 -1
- package/lib/components/ToggleButton/useToggleButton.d.ts +1 -1
- package/lib/components/ToggleButton/useToggleButton.js +8 -4
- package/lib/components/ToggleButton/useToggleButton.js.map +1 -1
- package/lib/components/ToggleButton/useToggleButtonStyles.d.ts +1 -1
- package/lib/components/ToggleButton/useToggleButtonStyles.js +4 -4
- package/lib/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
- package/lib-commonjs/components/Button/Button.js +3 -3
- package/lib-commonjs/components/Button/Button.js.map +1 -1
- package/lib-commonjs/components/Button/Button.types.d.ts +4 -4
- package/lib-commonjs/components/Button/index.d.ts +1 -1
- package/lib-commonjs/components/Button/index.js +3 -3
- package/lib-commonjs/components/Button/index.js.map +1 -1
- package/lib-commonjs/components/Button/renderButton.d.ts +1 -1
- package/lib-commonjs/components/Button/renderButton.js +5 -5
- package/lib-commonjs/components/Button/renderButton.js.map +1 -1
- package/lib-commonjs/components/Button/useButton.d.ts +1 -1
- package/lib-commonjs/components/Button/useButton.js +3 -3
- package/lib-commonjs/components/Button/useButton.js.map +1 -1
- package/lib-commonjs/components/Button/useButtonStyles.d.ts +1 -9
- package/lib-commonjs/components/Button/useButtonStyles.js +17 -27
- package/lib-commonjs/components/Button/useButtonStyles.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/CompoundButton.js +3 -3
- package/lib-commonjs/components/CompoundButton/CompoundButton.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/CompoundButton.types.d.ts +4 -4
- package/lib-commonjs/components/CompoundButton/index.d.ts +1 -1
- package/lib-commonjs/components/CompoundButton/index.js +3 -3
- package/lib-commonjs/components/CompoundButton/index.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/renderCompoundButton.d.ts +1 -1
- package/lib-commonjs/components/CompoundButton/renderCompoundButton.js +6 -6
- package/lib-commonjs/components/CompoundButton/renderCompoundButton.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/useCompoundButton.d.ts +1 -1
- package/lib-commonjs/components/CompoundButton/useCompoundButton.js +4 -4
- package/lib-commonjs/components/CompoundButton/useCompoundButton.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.d.ts +1 -1
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js +21 -22
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
- package/lib-commonjs/components/MenuButton/MenuButton.js +3 -3
- package/lib-commonjs/components/MenuButton/MenuButton.js.map +1 -1
- package/lib-commonjs/components/MenuButton/MenuButton.types.d.ts +3 -8
- package/lib-commonjs/components/MenuButton/index.d.ts +1 -1
- package/lib-commonjs/components/MenuButton/index.js +3 -3
- package/lib-commonjs/components/MenuButton/index.js.map +1 -1
- package/lib-commonjs/components/MenuButton/renderMenuButton.d.ts +1 -1
- package/lib-commonjs/components/MenuButton/renderMenuButton.js +5 -5
- package/lib-commonjs/components/MenuButton/renderMenuButton.js.map +1 -1
- package/lib-commonjs/components/MenuButton/useMenuButton.d.ts +1 -1
- package/lib-commonjs/components/MenuButton/useMenuButton.js +4 -4
- package/lib-commonjs/components/MenuButton/useMenuButton.js.map +1 -1
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.d.ts +1 -1
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js +8 -8
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js.map +1 -1
- package/lib-commonjs/components/SplitButton/SplitButton.js +3 -3
- package/lib-commonjs/components/SplitButton/SplitButton.js.map +1 -1
- package/lib-commonjs/components/SplitButton/SplitButton.types.d.ts +6 -4
- package/lib-commonjs/components/SplitButton/index.d.ts +1 -1
- package/lib-commonjs/components/SplitButton/index.js +3 -3
- package/lib-commonjs/components/SplitButton/index.js.map +1 -1
- package/lib-commonjs/components/SplitButton/renderSplitButton.d.ts +1 -1
- package/lib-commonjs/components/SplitButton/renderSplitButton.js +5 -5
- package/lib-commonjs/components/SplitButton/renderSplitButton.js.map +1 -1
- package/lib-commonjs/components/SplitButton/useSplitButton.d.ts +1 -1
- package/lib-commonjs/components/SplitButton/useSplitButton.js +3 -3
- package/lib-commonjs/components/SplitButton/useSplitButton.js.map +1 -1
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.d.ts +1 -1
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js +9 -9
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/ToggleButton.js +3 -3
- package/lib-commonjs/components/ToggleButton/ToggleButton.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/index.d.ts +1 -1
- package/lib-commonjs/components/ToggleButton/index.js +3 -3
- package/lib-commonjs/components/ToggleButton/index.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/renderToggleButton.d.ts +1 -1
- package/lib-commonjs/components/ToggleButton/renderToggleButton.js +3 -3
- package/lib-commonjs/components/ToggleButton/renderToggleButton.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/useToggleButton.d.ts +1 -1
- package/lib-commonjs/components/ToggleButton/useToggleButton.js +9 -5
- package/lib-commonjs/components/ToggleButton/useToggleButton.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.d.ts +1 -1
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js +8 -8
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
- package/package.json +9 -11
package/CHANGELOG.json
CHANGED
@@ -2,40 +2,34 @@
|
|
2
2
|
"name": "@fluentui/react-button",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
6
|
-
"tag": "@fluentui/react-button_v0.0.0-
|
7
|
-
"version": "0.0.0-
|
5
|
+
"date": "Wed, 09 Feb 2022 04:13:05 GMT",
|
6
|
+
"tag": "@fluentui/react-button_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-button",
|
13
|
-
"commit": "
|
13
|
+
"commit": "066f84c7bef7f4df47448557396199d8b7f26480",
|
14
14
|
"comment": "Release nightly v9"
|
15
15
|
},
|
16
16
|
{
|
17
|
-
"author": "
|
18
|
-
"package": "@fluentui/react-button",
|
19
|
-
"commit": "d778282b56baae57cb6b407debdbfb6beca76761",
|
20
|
-
"comment": "Remove fontSize from default menuIcon, as it is already set via css"
|
21
|
-
},
|
22
|
-
{
|
23
|
-
"author": "olfedias@microsoft.com",
|
17
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
24
18
|
"package": "@fluentui/react-button",
|
25
|
-
"commit": "
|
26
|
-
"comment": "
|
19
|
+
"commit": "0bc161458eae5ae8d387172430496ce9829b1bb1",
|
20
|
+
"comment": "Using ComponentSlotProps instead of ObjectShorthandProps."
|
27
21
|
},
|
28
22
|
{
|
29
23
|
"author": "Humberto.Morimoto@microsoft.com",
|
30
24
|
"package": "@fluentui/react-button",
|
31
|
-
"commit": "
|
32
|
-
"comment": "
|
25
|
+
"commit": "940de09b95aa1cefcac9a1f6bbfa9499419e3634",
|
26
|
+
"comment": "Button: Changing border radius of small button to borderRadiusMedium from borderRadiusSmall."
|
33
27
|
},
|
34
28
|
{
|
35
|
-
"author": "
|
29
|
+
"author": "olfedias@microsoft.com",
|
36
30
|
"package": "@fluentui/react-button",
|
37
|
-
"commit": "
|
38
|
-
"comment": "
|
31
|
+
"commit": "0aa74f3ef5a64c647b5903e21af7ff5423d46182",
|
32
|
+
"comment": "Replace make-styles packages with griffel equivalents."
|
39
33
|
},
|
40
34
|
{
|
41
35
|
"author": "ololubek@microsoft.com",
|
@@ -43,6 +37,12 @@
|
|
43
37
|
"commit": "63cbefe55e5db10eedbde19392aa8b6376d6a7f7",
|
44
38
|
"comment": "Update react-icons usage to resizable icons"
|
45
39
|
},
|
40
|
+
{
|
41
|
+
"author": "behowell@microsoft.com",
|
42
|
+
"package": "@fluentui/react-button",
|
43
|
+
"commit": "317209bb5cd57c40f35bc42060acb7e3cce5ec95",
|
44
|
+
"comment": "BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet"
|
45
|
+
},
|
46
46
|
{
|
47
47
|
"author": "ololubek@microsoft.com",
|
48
48
|
"package": "@fluentui/react-button",
|
@@ -55,6 +55,12 @@
|
|
55
55
|
"commit": "0a4c1a9af2f8bb29c3a3544f06964a8554cd692a",
|
56
56
|
"comment": "Replacing use of functions in makeStyles with direct use of tokens."
|
57
57
|
},
|
58
|
+
{
|
59
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
60
|
+
"package": "@fluentui/react-button",
|
61
|
+
"commit": "a21bfaceecf201d0c984fa84704148a24f956901",
|
62
|
+
"comment": "CompoundButton: Updating styles to match latest design spec."
|
63
|
+
},
|
58
64
|
{
|
59
65
|
"author": "behowell@microsoft.com",
|
60
66
|
"package": "@fluentui/react-button",
|
@@ -62,60 +68,114 @@
|
|
62
68
|
"comment": "Remove component's shorthandProps array"
|
63
69
|
},
|
64
70
|
{
|
65
|
-
"author": "
|
71
|
+
"author": "behowell@microsoft.com",
|
72
|
+
"package": "@fluentui/react-button",
|
73
|
+
"commit": "d778282b56baae57cb6b407debdbfb6beca76761",
|
74
|
+
"comment": "Remove fontSize from default menuIcon, as it is already set via css"
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
66
78
|
"package": "@fluentui/react-button",
|
67
|
-
"
|
68
|
-
"
|
79
|
+
"commit": "f5873dc09f0c07d4adf23ad89a5f3afad37a0da9",
|
80
|
+
"comment": "ToggleButton: Stopping aria-pressed from changing when ToggleButton is disabledFocusable."
|
69
81
|
},
|
70
82
|
{
|
71
|
-
"author": "
|
83
|
+
"author": "olfedias@microsoft.com",
|
72
84
|
"package": "@fluentui/react-button",
|
73
|
-
"
|
74
|
-
"
|
85
|
+
"commit": "54118b29fde686ef15fe95a3a97f3fd7edca34a3",
|
86
|
+
"comment": "update styles to not use CSS shorthands"
|
75
87
|
},
|
76
88
|
{
|
77
|
-
"author": "
|
89
|
+
"author": "behowell@microsoft.com",
|
90
|
+
"package": "@fluentui/react-button",
|
91
|
+
"commit": "53b01d71e335715fda91b33e3d7bbd9d471d5ed3",
|
92
|
+
"comment": "Refactor component Slot typings"
|
93
|
+
},
|
94
|
+
{
|
95
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
96
|
+
"package": "@fluentui/react-button",
|
97
|
+
"commit": "00a5d945904c896a0664de6ba72c145a255f0848",
|
98
|
+
"comment": "Updating use of tokens.fontWeight now that we don't need to use casting."
|
99
|
+
},
|
100
|
+
{
|
101
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
102
|
+
"package": "@fluentui/react-button",
|
103
|
+
"commit": "7797d49103b5dd7662ef59f734921f6326b2273d",
|
104
|
+
"comment": "MenuButton: Updating types so it properly supports ref."
|
105
|
+
},
|
106
|
+
{
|
107
|
+
"author": "olfedias@microsoft.com",
|
108
|
+
"package": "@fluentui/react-button",
|
109
|
+
"commit": "b23239743c4f5518bcf7dcad496a36fc16bbd2e5",
|
110
|
+
"comment": "update @fluentui/react-icons package"
|
111
|
+
},
|
112
|
+
{
|
113
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
78
114
|
"package": "@fluentui/react-button",
|
79
|
-
"
|
80
|
-
"
|
115
|
+
"commit": "e0b8e1fa6980077e7b311fd1c72c28d3e4305db0",
|
116
|
+
"comment": "Updating based on changes to composition types."
|
117
|
+
},
|
118
|
+
{
|
119
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
120
|
+
"package": "@fluentui/react-button",
|
121
|
+
"commit": "38c8bed2c707014688ae2ae689033fa36ef23075",
|
122
|
+
"comment": "Updating packages based on changes to focusIndicator functions to remove functions from makeStyles in @fluentui/react-tabster."
|
81
123
|
},
|
82
124
|
{
|
83
125
|
"author": "beachball",
|
84
126
|
"package": "@fluentui/react-button",
|
85
|
-
"comment": "Bump @fluentui/
|
86
|
-
"commit": "
|
127
|
+
"comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightlyb2b3ec1da320220209.1",
|
128
|
+
"commit": "066f84c7bef7f4df47448557396199d8b7f26480"
|
87
129
|
},
|
88
130
|
{
|
89
131
|
"author": "beachball",
|
90
132
|
"package": "@fluentui/react-button",
|
91
|
-
"comment": "Bump @fluentui/react-
|
92
|
-
"commit": "
|
133
|
+
"comment": "Bump @fluentui/react-aria to v0.0.0-nightlyb2b3ec1da320220209.1",
|
134
|
+
"commit": "066f84c7bef7f4df47448557396199d8b7f26480"
|
93
135
|
},
|
94
136
|
{
|
95
137
|
"author": "beachball",
|
96
138
|
"package": "@fluentui/react-button",
|
97
|
-
"comment": "Bump @fluentui/
|
98
|
-
"commit": "
|
139
|
+
"comment": "Bump @fluentui/react-tabster to v0.0.0-nightlyb2b3ec1da320220209.1",
|
140
|
+
"commit": "066f84c7bef7f4df47448557396199d8b7f26480"
|
99
141
|
},
|
100
142
|
{
|
101
143
|
"author": "beachball",
|
102
144
|
"package": "@fluentui/react-button",
|
103
|
-
"comment": "Bump @fluentui/
|
104
|
-
"commit": "
|
145
|
+
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightlyb2b3ec1da320220209.1",
|
146
|
+
"commit": "066f84c7bef7f4df47448557396199d8b7f26480"
|
105
147
|
},
|
106
148
|
{
|
107
149
|
"author": "beachball",
|
108
150
|
"package": "@fluentui/react-button",
|
109
|
-
"comment": "Bump @fluentui/react-conformance-
|
110
|
-
"commit": "
|
151
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightlyb2b3ec1da320220209.1",
|
152
|
+
"commit": "066f84c7bef7f4df47448557396199d8b7f26480"
|
111
153
|
}
|
112
154
|
],
|
113
155
|
"none": [
|
156
|
+
{
|
157
|
+
"author": "olfedias@microsoft.com",
|
158
|
+
"package": "@fluentui/react-button",
|
159
|
+
"commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
|
160
|
+
"comment": "remove inline-style-expand-shorthand from tsconfigs"
|
161
|
+
},
|
162
|
+
{
|
163
|
+
"author": "martinhochel@microsoft.com",
|
164
|
+
"package": "@fluentui/react-button",
|
165
|
+
"commit": "8dfa712156b70414205b87b5b6d099367b0c297d",
|
166
|
+
"comment": "chore: use storybook runner for all vNext packages"
|
167
|
+
},
|
114
168
|
{
|
115
169
|
"author": "tkrasniqi@microsoft.com",
|
116
170
|
"package": "@fluentui/react-button",
|
117
171
|
"commit": "ca886fed17b4a73b9bb3b5a9e54d143062cbfa99",
|
118
172
|
"comment": "Migration to new tsconfig"
|
173
|
+
},
|
174
|
+
{
|
175
|
+
"author": "bsunderhus@microsoft.com",
|
176
|
+
"package": "@fluentui/react-button",
|
177
|
+
"commit": "c0d4e63ee58e60e2c6674efbacc0783cd520984e",
|
178
|
+
"comment": "Updates components with nullRender changes"
|
119
179
|
}
|
120
180
|
]
|
121
181
|
}
|
package/CHANGELOG.md
CHANGED
@@ -1,33 +1,40 @@
|
|
1
1
|
# Change Log - @fluentui/react-button
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Wed, 09 Feb 2022 04:13:05 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-button_v0.0.0-nightlyb2b3ec1da320220209.1)
|
8
8
|
|
9
|
-
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-beta.5..@fluentui/react-button_v0.0.0-
|
9
|
+
Wed, 09 Feb 2022 04:13:05 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-beta.5..@fluentui/react-button_v0.0.0-nightlyb2b3ec1da320220209.1)
|
11
11
|
|
12
12
|
### Changes
|
13
13
|
|
14
|
-
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/
|
15
|
-
-
|
16
|
-
-
|
17
|
-
-
|
18
|
-
- 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)
|
14
|
+
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/066f84c7bef7f4df47448557396199d8b7f26480) by email not defined)
|
15
|
+
- Using ComponentSlotProps instead of ObjectShorthandProps. ([PR #20890](https://github.com/microsoft/fluentui/pull/20890) by Humberto.Morimoto@microsoft.com)
|
16
|
+
- Button: Changing border radius of small button to borderRadiusMedium from borderRadiusSmall. ([PR #21494](https://github.com/microsoft/fluentui/pull/21494) by Humberto.Morimoto@microsoft.com)
|
17
|
+
- Replace make-styles packages with griffel equivalents. ([PR #21436](https://github.com/microsoft/fluentui/pull/21436) by olfedias@microsoft.com)
|
19
18
|
- Update react-icons usage to resizable icons ([PR #21074](https://github.com/microsoft/fluentui/pull/21074) by ololubek@microsoft.com)
|
19
|
+
- 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)
|
20
20
|
- (fix): Update react-icons dependency to latest version ([PR #20943](https://github.com/microsoft/fluentui/pull/20943) by ololubek@microsoft.com)
|
21
21
|
- Replacing use of functions in makeStyles with direct use of tokens. ([PR #21039](https://github.com/microsoft/fluentui/pull/21039) by Humberto.Morimoto@microsoft.com)
|
22
|
+
- CompoundButton: Updating styles to match latest design spec. ([PR #21523](https://github.com/microsoft/fluentui/pull/21523) by Humberto.Morimoto@microsoft.com)
|
22
23
|
- Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
|
23
|
-
-
|
24
|
-
-
|
25
|
-
-
|
26
|
-
-
|
27
|
-
-
|
28
|
-
-
|
29
|
-
-
|
30
|
-
-
|
24
|
+
- Remove fontSize from default menuIcon, as it is already set via css ([PR #21221](https://github.com/microsoft/fluentui/pull/21221) by behowell@microsoft.com)
|
25
|
+
- ToggleButton: Stopping aria-pressed from changing when ToggleButton is disabledFocusable. ([PR #21492](https://github.com/microsoft/fluentui/pull/21492) by Humberto.Morimoto@microsoft.com)
|
26
|
+
- update styles to not use CSS shorthands ([PR #20815](https://github.com/microsoft/fluentui/pull/20815) by olfedias@microsoft.com)
|
27
|
+
- Refactor component Slot typings ([PR #21518](https://github.com/microsoft/fluentui/pull/21518) by behowell@microsoft.com)
|
28
|
+
- Updating use of tokens.fontWeight now that we don't need to use casting. ([PR #21217](https://github.com/microsoft/fluentui/pull/21217) by Humberto.Morimoto@microsoft.com)
|
29
|
+
- MenuButton: Updating types so it properly supports ref. ([PR #21515](https://github.com/microsoft/fluentui/pull/21515) by Humberto.Morimoto@microsoft.com)
|
30
|
+
- update @fluentui/react-icons package ([PR #21498](https://github.com/microsoft/fluentui/pull/21498) by olfedias@microsoft.com)
|
31
|
+
- Updating based on changes to composition types. ([PR #20891](https://github.com/microsoft/fluentui/pull/20891) by Humberto.Morimoto@microsoft.com)
|
32
|
+
- 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)
|
33
|
+
- Bump @fluentui/keyboard-keys to v0.0.0-nightlyb2b3ec1da320220209.1 ([commit](https://github.com/microsoft/fluentui/commit/066f84c7bef7f4df47448557396199d8b7f26480) by beachball)
|
34
|
+
- Bump @fluentui/react-aria to v0.0.0-nightlyb2b3ec1da320220209.1 ([commit](https://github.com/microsoft/fluentui/commit/066f84c7bef7f4df47448557396199d8b7f26480) by beachball)
|
35
|
+
- Bump @fluentui/react-tabster to v0.0.0-nightlyb2b3ec1da320220209.1 ([commit](https://github.com/microsoft/fluentui/commit/066f84c7bef7f4df47448557396199d8b7f26480) by beachball)
|
36
|
+
- Bump @fluentui/react-utilities to v0.0.0-nightlyb2b3ec1da320220209.1 ([commit](https://github.com/microsoft/fluentui/commit/066f84c7bef7f4df47448557396199d8b7f26480) by beachball)
|
37
|
+
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightlyb2b3ec1da320220209.1 ([commit](https://github.com/microsoft/fluentui/commit/066f84c7bef7f4df47448557396199d8b7f26480) by beachball)
|
31
38
|
|
32
39
|
## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0-beta.5)
|
33
40
|
|
package/dist/react-button.d.ts
CHANGED
@@ -1,10 +1,9 @@
|
|
1
|
-
import {
|
1
|
+
import type { ARIAButtonSlotProps } from '@fluentui/react-aria';
|
2
2
|
import type { ComponentProps } from '@fluentui/react-utilities';
|
3
3
|
import type { ComponentState } from '@fluentui/react-utilities';
|
4
4
|
import { ForwardRefComponent } from '@fluentui/react-utilities';
|
5
|
-
import type { IntrinsicShorthandProps } from '@fluentui/react-utilities';
|
6
|
-
import type { ObjectShorthandProps } from '@fluentui/react-utilities';
|
7
5
|
import * as React_2 from 'react';
|
6
|
+
import type { Slot } from '@fluentui/react-utilities';
|
8
7
|
|
9
8
|
/**
|
10
9
|
* Buttons give people a way to trigger an action.
|
@@ -62,11 +61,11 @@ export declare type ButtonSlots = {
|
|
62
61
|
/**
|
63
62
|
* Root of the component that renders as either a `<button>` tag or an `<a>` tag.
|
64
63
|
*/
|
65
|
-
root:
|
64
|
+
root: Slot<ARIAButtonSlotProps>;
|
66
65
|
/**
|
67
66
|
* Icon that renders either before or after the `children` as specified by the `iconPosition` prop.
|
68
67
|
*/
|
69
|
-
icon?:
|
68
|
+
icon?: Slot<'span'>;
|
70
69
|
};
|
71
70
|
|
72
71
|
export declare type ButtonState = ComponentState<ButtonSlots> & ButtonCommons & {
|
@@ -84,17 +83,17 @@ export declare const CompoundButton: ForwardRefComponent<CompoundButtonProps>;
|
|
84
83
|
|
85
84
|
export declare const compoundButtonClassName = "fui-CompoundButton";
|
86
85
|
|
87
|
-
export declare type CompoundButtonProps = ComponentProps<CompoundButtonSlots
|
86
|
+
export declare type CompoundButtonProps = ComponentProps<Partial<CompoundButtonSlots>> & Partial<ButtonCommons>;
|
88
87
|
|
89
88
|
export declare type CompoundButtonSlots = ButtonSlots & {
|
90
89
|
/**
|
91
90
|
* Second line of text that describes the action this button takes.
|
92
91
|
*/
|
93
|
-
secondaryContent?:
|
92
|
+
secondaryContent?: Slot<'span'>;
|
94
93
|
/**
|
95
94
|
* Container that wraps the children and the secondaryContent slot.
|
96
95
|
*/
|
97
|
-
contentContainer:
|
96
|
+
contentContainer: NonNullable<Slot<'span'>>;
|
98
97
|
};
|
99
98
|
|
100
99
|
export declare type CompoundButtonState = ComponentState<CompoundButtonSlots> & Omit<ButtonState, keyof ButtonSlots | 'components'>;
|
@@ -106,42 +105,38 @@ export declare const MenuButton: ForwardRefComponent<MenuButtonProps>;
|
|
106
105
|
|
107
106
|
export declare const menuButtonClassName = "fui-MenuButton";
|
108
107
|
|
109
|
-
export declare type MenuButtonProps = ComponentProps<MenuButtonSlots> & Partial<Omit<ButtonCommons, 'iconPosition'
|
108
|
+
export declare type MenuButtonProps = ComponentProps<MenuButtonSlots> & Partial<Omit<ButtonCommons, 'iconPosition'>>;
|
110
109
|
|
111
110
|
export declare type MenuButtonSlots = ButtonSlots & {
|
112
111
|
/**
|
113
112
|
* Menu icon that indicates that this button has a menu that can be expanded.
|
114
113
|
*/
|
115
|
-
menuIcon?:
|
114
|
+
menuIcon?: Slot<'span'>;
|
116
115
|
};
|
117
116
|
|
118
117
|
export declare type MenuButtonState = ComponentState<MenuButtonSlots> & Omit<ButtonState, keyof ButtonSlots | 'components' | 'iconPosition'>;
|
119
118
|
|
120
|
-
declare type MenuTriggerChildProps = Pick<React_2.HTMLAttributes<HTMLElement>, 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onContextMenu' | 'onKeyDown' | 'aria-haspopup' | 'aria-expanded' | 'id'> & {
|
121
|
-
ref?: React_2.Ref<never>;
|
122
|
-
};
|
123
|
-
|
124
119
|
/**
|
125
120
|
* Renders a Button component by passing the state defined props to the appropriate slots.
|
126
121
|
*/
|
127
|
-
declare const
|
128
|
-
export {
|
129
|
-
export {
|
122
|
+
declare const renderButton_unstable: (state: ButtonState) => JSX.Element;
|
123
|
+
export { renderButton_unstable }
|
124
|
+
export { renderButton_unstable as renderToggleButton_unstable }
|
130
125
|
|
131
126
|
/**
|
132
127
|
* Renders a CompoundButton component by passing the state defined props to the appropriate slots.
|
133
128
|
*/
|
134
|
-
export declare const
|
129
|
+
export declare const renderCompoundButton_unstable: (state: CompoundButtonState) => JSX.Element;
|
135
130
|
|
136
131
|
/**
|
137
132
|
* Renders a MenuButton component by passing the state defined props to the appropriate slots.
|
138
133
|
*/
|
139
|
-
export declare const
|
134
|
+
export declare const renderMenuButton_unstable: (state: MenuButtonState) => JSX.Element;
|
140
135
|
|
141
136
|
/**
|
142
137
|
* Renders a SplitButton component by passing the state defined props to the appropriate slots.
|
143
138
|
*/
|
144
|
-
export declare const
|
139
|
+
export declare const renderSplitButton_unstable: (state: SplitButtonState) => JSX.Element;
|
145
140
|
|
146
141
|
/**
|
147
142
|
* SplitButtons are a grouping of two interactive surfaces where the interacting with the first one triggers a primary
|
@@ -157,15 +152,15 @@ export declare type SplitButtonSlots = {
|
|
157
152
|
/**
|
158
153
|
* Root of the component that wraps the primary action button and menu button.
|
159
154
|
*/
|
160
|
-
root:
|
155
|
+
root: Slot<'div'>;
|
161
156
|
/**
|
162
157
|
* Button that opens menu with secondary actions in SplitButton.
|
163
158
|
*/
|
164
|
-
menuButton?:
|
159
|
+
menuButton?: Slot<typeof MenuButton>;
|
165
160
|
/**
|
166
161
|
* Button to perform primary action in SplitButton.
|
167
162
|
*/
|
168
|
-
primaryActionButton?:
|
163
|
+
primaryActionButton?: Slot<typeof Button>;
|
169
164
|
};
|
170
165
|
|
171
166
|
export declare type SplitButtonState = ComponentState<SplitButtonSlots> & Omit<ButtonState, 'components' | 'iconOnly' | 'root'> & Omit<MenuButtonState, 'components' | 'iconOnly' | 'root'>;
|
@@ -203,34 +198,34 @@ export declare type ToggleButtonState = ButtonState & ToggleButtonCommons;
|
|
203
198
|
* @param props - User provided props to the Button component.
|
204
199
|
* @param ref - User provided ref to be passed to the Button component.
|
205
200
|
*/
|
206
|
-
export declare const
|
201
|
+
export declare const useButton_unstable: (props: ButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => ButtonState;
|
207
202
|
|
208
|
-
export declare const
|
203
|
+
export declare const useButtonStyles_unstable: (state: ButtonState) => ButtonState;
|
209
204
|
|
210
205
|
/**
|
211
206
|
* Given user props, defines default props for the CompoundButton, calls useButtonState, and returns processed state.
|
212
207
|
* @param props - User provided props to the CompoundButton component.
|
213
208
|
* @param ref - User provided ref to be passed to the CompoundButton component.
|
214
209
|
*/
|
215
|
-
export declare const
|
210
|
+
export declare const useCompoundButton_unstable: ({ contentContainer, secondaryContent, ...props }: CompoundButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => CompoundButtonState;
|
216
211
|
|
217
|
-
export declare const
|
212
|
+
export declare const useCompoundButtonStyles_unstable: (state: CompoundButtonState) => CompoundButtonState;
|
218
213
|
|
219
214
|
/**
|
220
215
|
* Given user props, returns the final state for a MenuButton.
|
221
216
|
*/
|
222
|
-
export declare const
|
217
|
+
export declare const useMenuButton_unstable: ({ menuIcon, ...props }: MenuButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => MenuButtonState;
|
223
218
|
|
224
|
-
export declare const
|
219
|
+
export declare const useMenuButtonStyles_unstable: (state: MenuButtonState) => MenuButtonState;
|
225
220
|
|
226
221
|
/**
|
227
222
|
* Given user props, defines default props for the SplitButton and returns processed state.
|
228
223
|
* @param props - User provided props to the SplitButton component.
|
229
224
|
* @param ref - User provided ref to be passed to the SplitButton component.
|
230
225
|
*/
|
231
|
-
export declare const
|
226
|
+
export declare const useSplitButton_unstable: (props: SplitButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => SplitButtonState;
|
232
227
|
|
233
|
-
export declare const
|
228
|
+
export declare const useSplitButtonStyles_unstable: (state: SplitButtonState) => SplitButtonState;
|
234
229
|
|
235
230
|
/**
|
236
231
|
* Given user props, defines default props for the ToggleButton, calls useButtonState and useChecked, and returns
|
@@ -238,8 +233,8 @@ export declare const useSplitButtonStyles: (state: SplitButtonState) => SplitBut
|
|
238
233
|
* @param props - User provided props to the ToggleButton component.
|
239
234
|
* @param ref - User provided ref to be passed to the ToggleButton component.
|
240
235
|
*/
|
241
|
-
export declare const
|
236
|
+
export declare const useToggleButton_unstable: ({ checked, defaultChecked, ...props }: ToggleButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => ToggleButtonState;
|
242
237
|
|
243
|
-
export declare const
|
238
|
+
export declare const useToggleButtonStyles_unstable: (state: ToggleButtonState) => ToggleButtonState;
|
244
239
|
|
245
240
|
export { }
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
2
|
+
import { renderButton_unstable } from './renderButton';
|
3
|
+
import { useButton_unstable } from './useButton';
|
4
|
+
import { useButtonStyles_unstable } from './useButtonStyles';
|
5
5
|
/**
|
6
6
|
* Buttons give people a way to trigger an action.
|
7
7
|
*/
|
8
8
|
|
9
9
|
export const Button = /*#__PURE__*/React.forwardRef((props, ref) => {
|
10
|
-
const state =
|
11
|
-
|
12
|
-
return
|
10
|
+
const state = useButton_unstable(props, ref);
|
11
|
+
useButtonStyles_unstable(state);
|
12
|
+
return renderButton_unstable(state); // Casting is required due to lack of distributive union to support unions on @types/react
|
13
13
|
});
|
14
14
|
Button.displayName = 'Button';
|
15
15
|
//# sourceMappingURL=Button.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,
|
1
|
+
{"version":3,"sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,qBAAT,QAAsC,gBAAtC;AACA,SAAS,kBAAT,QAAmC,aAAnC;AACA,SAAS,wBAAT,QAAyC,mBAAzC;AAIA;;AAEG;;AACH,OAAO,MAAM,MAAM,gBAAqC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACtF,QAAM,KAAK,GAAG,kBAAkB,CAAC,KAAD,EAAQ,GAAR,CAAhC;AAEA,EAAA,wBAAwB,CAAC,KAAD,CAAxB;AAEA,SAAO,qBAAqB,CAAC,KAAD,CAA5B,CALsF,CAMtF;AACD,CAPuD,CAAjD;AASP,MAAM,CAAC,WAAP,GAAqB,QAArB","sourceRoot":""}
|
@@ -1,14 +1,14 @@
|
|
1
|
-
import {
|
2
|
-
import type { ComponentProps, ComponentState,
|
1
|
+
import type { ARIAButtonSlotProps } from '@fluentui/react-aria';
|
2
|
+
import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
|
3
3
|
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:
|
7
|
+
root: Slot<ARIAButtonSlotProps>;
|
8
8
|
/**
|
9
9
|
* Icon that renders either before or after the `children` as specified by the `iconPosition` prop.
|
10
10
|
*/
|
11
|
-
icon?:
|
11
|
+
icon?: Slot<'span'>;
|
12
12
|
};
|
13
13
|
export declare type ButtonCommons = {
|
14
14
|
/**
|
@@ -2,4 +2,4 @@ export * from './Button';
|
|
2
2
|
export * from './Button.types';
|
3
3
|
export * from './renderButton';
|
4
4
|
export * from './useButton';
|
5
|
-
export { buttonClassName,
|
5
|
+
export { buttonClassName, useButtonStyles_unstable } from './useButtonStyles';
|
@@ -2,5 +2,5 @@ export * from './Button';
|
|
2
2
|
export * from './Button.types';
|
3
3
|
export * from './renderButton';
|
4
4
|
export * from './useButton';
|
5
|
-
export { buttonClassName,
|
5
|
+
export { buttonClassName, useButtonStyles_unstable } from './useButtonStyles';
|
6
6
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC"}
|
@@ -2,4 +2,4 @@ import type { ButtonState } from './Button.types';
|
|
2
2
|
/**
|
3
3
|
* Renders a Button component by passing the state defined props to the appropriate slots.
|
4
4
|
*/
|
5
|
-
export declare const
|
5
|
+
export declare const renderButton_unstable: (state: ButtonState) => JSX.Element;
|
@@ -4,7 +4,7 @@ import { getSlots } from '@fluentui/react-utilities';
|
|
4
4
|
* Renders a Button component by passing the state defined props to the appropriate slots.
|
5
5
|
*/
|
6
6
|
|
7
|
-
export const
|
7
|
+
export const renderButton_unstable = state => {
|
8
8
|
const {
|
9
9
|
slots,
|
10
10
|
slotProps
|
@@ -14,8 +14,8 @@ export const renderButton = state => {
|
|
14
14
|
iconPosition
|
15
15
|
} = state;
|
16
16
|
return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
|
17
|
-
}, iconPosition !== 'after' && /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
|
18
|
-
}), !iconOnly && state.root.children, iconPosition === 'after' && /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
|
17
|
+
}, iconPosition !== 'after' && slots.icon && /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
|
18
|
+
}), !iconOnly && state.root.children, iconPosition === 'after' && slots.icon && /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
|
19
19
|
}));
|
20
20
|
};
|
21
21
|
//# sourceMappingURL=renderButton.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Button/renderButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,
|
1
|
+
{"version":3,"sources":["../../../src/components/Button/renderButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,qBAAqB,GAAI,KAAD,IAAuB;AAC1D,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAc,KAAd,CAArC;AACA,QAAM;AAAE,IAAA,QAAF;AAAY,IAAA;AAAZ,MAA6B,KAAnC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACG,YAAY,KAAK,OAAjB,IAA4B,KAAK,CAAC,IAAlC,iBAA0C,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAD7C,EAEG,CAAC,QAAD,IAAa,KAAK,CAAC,IAAN,CAAW,QAF3B,EAGG,YAAY,KAAK,OAAjB,IAA4B,KAAK,CAAC,IAAlC,iBAA0C,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAH7C,CADF;AAOD,CAXM","sourceRoot":""}
|
@@ -5,4 +5,4 @@ import type { ButtonProps, ButtonState } from './Button.types';
|
|
5
5
|
* @param props - User provided props to the Button component.
|
6
6
|
* @param ref - User provided ref to be passed to the Button component.
|
7
7
|
*/
|
8
|
-
export declare const
|
8
|
+
export declare const useButton_unstable: (props: ButtonProps, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => ButtonState;
|
@@ -6,7 +6,7 @@ import { getNativeElementProps, resolveShorthand } from '@fluentui/react-utiliti
|
|
6
6
|
* @param ref - User provided ref to be passed to the Button component.
|
7
7
|
*/
|
8
8
|
|
9
|
-
export const
|
9
|
+
export const useButton_unstable = (props, ref) => {
|
10
10
|
const {
|
11
11
|
appearance,
|
12
12
|
as,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Button/useButton.ts"],"names":[],"mappings":"AACA,SAAS,aAAT,QAA8B,sBAA9B;
|
1
|
+
{"version":3,"sources":["../../../src/components/Button/useButton.ts"],"names":[],"mappings":"AACA,SAAS,aAAT,QAA8B,sBAA9B;AAEA,SAAS,qBAAT,EAAgC,gBAAhC,QAAwD,2BAAxD;AAGA;;;;AAIG;;AACH,OAAO,MAAM,kBAAkB,GAAG,CAChC,KADgC,EAEhC,GAFgC,KAGjB;AACf,QAAM;AACJ,IAAA,UADI;AAEJ,IAAA,EAFI;AAGJ,IAAA,KAAK,GAAG,KAHJ;AAIJ,IAAA,QAAQ,GAAG,KAJP;AAKJ,IAAA,iBAAiB,GAAG,KALhB;AAMJ,IAAA,IANI;AAOJ,IAAA,YAAY,GAAG,QAPX;AAQJ,IAAA,KAAK,GAAG,SARJ;AASJ,IAAA,IAAI,GAAG;AATH,MAUF,KAVJ;AAWA,QAAM,aAAa,GAAG,gBAAgB,CAAC,IAAD,CAAtC;AAEA,SAAO;AACL;AACA,IAAA,UAFK;AAGL,IAAA,KAHK;AAIL,IAAA,QAJK;AAKL,IAAA,iBALK;AAML,IAAA,YANK;AAOL,IAAA,KAPK;AAQL,IAAA,IARK;AAUL;AACA,IAAA,QAAQ,EAAE,OAAO,CAAC,CAAA,aAAa,KAAA,IAAb,IAAA,aAAa,KAAA,KAAA,CAAb,GAAa,KAAA,CAAb,GAAA,aAAa,CAAE,QAAf,KAA2B,CAAC,KAAK,CAAC,QAAnC,CAXZ;AAaL;AACA,IAAA,UAAU,EAAE;AACV,MAAA,IAAI,EAAE,QADI;AAEV,MAAA,IAAI,EAAE;AAFI,KAdP;AAmBL,IAAA,IAAI,EAAE,qBAAqB,CACzB,EAAE,IAAI,QADmB,EAEzB,aAAa,CAAsB,KAAtB,EAA6B;AACxC,MAAA,QAAQ,EAAE,IAD8B;AAExC,MAAA,YAAY,EAAE;AACZ;AACA,QAAA,GAAG,EAAE,GAFO;AAGZ,QAAA,IAAI,EAAE,QAHM,CAGI;;AAHJ;AAF0B,KAA7B,CAFY,CAnBtB;AA8BL,IAAA,IAAI,EAAE;AA9BD,GAAP;AAgCD,CAjDM","sourceRoot":""}
|
@@ -1,11 +1,3 @@
|
|
1
1
|
import type { ButtonState } from './Button.types';
|
2
2
|
export declare const buttonClassName = "fui-Button";
|
3
|
-
export declare const
|
4
|
-
smallest: string;
|
5
|
-
smaller: string;
|
6
|
-
small: string;
|
7
|
-
medium: string;
|
8
|
-
large: string;
|
9
|
-
larger: string;
|
10
|
-
};
|
11
|
-
export declare const useButtonStyles: (state: ButtonState) => ButtonState;
|
3
|
+
export declare const useButtonStyles_unstable: (state: ButtonState) => ButtonState;
|