@fluentui/react-button 0.0.0-nightlya372ad979820211103.1 → 0.0.0-nightlya54302c0b220211124.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.json +103 -28
- package/CHANGELOG.md +30 -14
- package/dist/react-button.d.ts +14 -1
- package/lib/common/isConformant.js +1 -1
- package/lib/common/isConformant.js.map +1 -1
- package/lib/components/Button/Button.js +2 -2
- package/lib/components/Button/Button.js.map +1 -1
- 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.js +10 -9
- package/lib/components/Button/renderButton.js.map +1 -1
- package/lib/components/Button/useButton.js +20 -24
- package/lib/components/Button/useButton.js.map +1 -1
- package/lib/components/Button/useButtonStyles.d.ts +1 -0
- package/lib/components/Button/useButtonStyles.js +27 -24
- package/lib/components/Button/useButtonStyles.js.map +1 -1
- package/lib/components/CompoundButton/CompoundButton.js +2 -2
- package/lib/components/CompoundButton/CompoundButton.js.map +1 -1
- 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.js +10 -9
- package/lib/components/CompoundButton/renderCompoundButton.js.map +1 -1
- package/lib/components/CompoundButton/useCompoundButton.js +8 -8
- package/lib/components/CompoundButton/useCompoundButton.js.map +1 -1
- package/lib/components/CompoundButton/useCompoundButtonStyles.d.ts +1 -0
- package/lib/components/CompoundButton/useCompoundButtonStyles.js +40 -37
- package/lib/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
- package/lib/components/MenuButton/MenuButton.js +2 -2
- package/lib/components/MenuButton/MenuButton.js.map +1 -1
- package/lib/components/MenuButton/MenuButton.types.d.ts +5 -1
- 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.js +10 -9
- package/lib/components/MenuButton/renderMenuButton.js.map +1 -1
- package/lib/components/MenuButton/useMenuButton.js +8 -8
- package/lib/components/MenuButton/useMenuButton.js.map +1 -1
- package/lib/components/MenuButton/useMenuButtonStyles.d.ts +1 -0
- package/lib/components/MenuButton/useMenuButtonStyles.js +5 -3
- package/lib/components/MenuButton/useMenuButtonStyles.js.map +1 -1
- package/lib/components/SplitButton/SplitButton.js +2 -2
- package/lib/components/SplitButton/SplitButton.js.map +1 -1
- 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.js +6 -7
- package/lib/components/SplitButton/renderSplitButton.js.map +1 -1
- package/lib/components/SplitButton/useSplitButton.js +41 -45
- package/lib/components/SplitButton/useSplitButton.js.map +1 -1
- package/lib/components/SplitButton/useSplitButtonStyles.d.ts +1 -0
- package/lib/components/SplitButton/useSplitButtonStyles.js +36 -33
- package/lib/components/SplitButton/useSplitButtonStyles.js.map +1 -1
- package/lib/components/ToggleButton/ToggleButton.js +2 -2
- 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/useToggleButton.js +27 -29
- package/lib/components/ToggleButton/useToggleButton.js.map +1 -1
- package/lib/components/ToggleButton/useToggleButtonStyles.d.ts +1 -0
- package/lib/components/ToggleButton/useToggleButtonStyles.js +13 -10
- package/lib/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
- package/lib-commonjs/Button.js +1 -1
- package/lib-commonjs/CompoundButton.js +1 -1
- package/lib-commonjs/MenuButton.js +1 -1
- package/lib-commonjs/SplitButton.js +1 -1
- package/lib-commonjs/ToggleButton.js +1 -1
- package/lib-commonjs/common/isConformant.js +3 -3
- package/lib-commonjs/common/isConformant.js.map +1 -1
- package/lib-commonjs/components/Button/Button.js +6 -6
- package/lib-commonjs/components/Button/Button.js.map +1 -1
- package/lib-commonjs/components/Button/index.d.ts +1 -1
- package/lib-commonjs/components/Button/index.js +8 -2
- package/lib-commonjs/components/Button/index.js.map +1 -1
- package/lib-commonjs/components/Button/renderButton.js +12 -12
- package/lib-commonjs/components/Button/renderButton.js.map +1 -1
- package/lib-commonjs/components/Button/useButton.js +22 -26
- package/lib-commonjs/components/Button/useButton.js.map +1 -1
- package/lib-commonjs/components/Button/useButtonStyles.d.ts +1 -0
- package/lib-commonjs/components/Button/useButtonStyles.js +29 -26
- package/lib-commonjs/components/Button/useButtonStyles.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/CompoundButton.js +6 -6
- package/lib-commonjs/components/CompoundButton/CompoundButton.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/index.d.ts +1 -1
- package/lib-commonjs/components/CompoundButton/index.js +8 -2
- package/lib-commonjs/components/CompoundButton/index.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/renderCompoundButton.js +12 -12
- package/lib-commonjs/components/CompoundButton/renderCompoundButton.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/useCompoundButton.js +10 -11
- package/lib-commonjs/components/CompoundButton/useCompoundButton.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.d.ts +1 -0
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js +43 -40
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
- package/lib-commonjs/components/MenuButton/MenuButton.js +6 -6
- package/lib-commonjs/components/MenuButton/MenuButton.js.map +1 -1
- package/lib-commonjs/components/MenuButton/MenuButton.types.d.ts +5 -1
- package/lib-commonjs/components/MenuButton/index.d.ts +1 -1
- package/lib-commonjs/components/MenuButton/index.js +8 -2
- package/lib-commonjs/components/MenuButton/index.js.map +1 -1
- package/lib-commonjs/components/MenuButton/renderMenuButton.js +12 -12
- package/lib-commonjs/components/MenuButton/renderMenuButton.js.map +1 -1
- package/lib-commonjs/components/MenuButton/useMenuButton.js +12 -13
- package/lib-commonjs/components/MenuButton/useMenuButton.js.map +1 -1
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.d.ts +1 -0
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js +9 -6
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js.map +1 -1
- package/lib-commonjs/components/SplitButton/SplitButton.js +6 -6
- package/lib-commonjs/components/SplitButton/SplitButton.js.map +1 -1
- package/lib-commonjs/components/SplitButton/index.d.ts +1 -1
- package/lib-commonjs/components/SplitButton/index.js +8 -2
- package/lib-commonjs/components/SplitButton/index.js.map +1 -1
- package/lib-commonjs/components/SplitButton/renderSplitButton.js +8 -10
- package/lib-commonjs/components/SplitButton/renderSplitButton.js.map +1 -1
- package/lib-commonjs/components/SplitButton/useSplitButton.js +44 -49
- package/lib-commonjs/components/SplitButton/useSplitButton.js.map +1 -1
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.d.ts +1 -0
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js +39 -36
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/ToggleButton.js +6 -6
- 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 +8 -2
- package/lib-commonjs/components/ToggleButton/index.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/useToggleButton.js +31 -34
- package/lib-commonjs/components/ToggleButton/useToggleButton.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.d.ts +1 -0
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js +17 -13
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
- package/lib-commonjs/index.js +1 -1
- package/package.json +10 -12
package/CHANGELOG.json
CHANGED
@@ -2,16 +2,79 @@
|
|
2
2
|
"name": "@fluentui/react-button",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "Wed,
|
6
|
-
"tag": "@fluentui/react-button_v0.0.0-
|
7
|
-
"version": "0.0.0-
|
5
|
+
"date": "Wed, 24 Nov 2021 04:12:44 GMT",
|
6
|
+
"tag": "@fluentui/react-button_v0.0.0-nightlya54302c0b220211124.1",
|
7
|
+
"version": "0.0.0-nightlya54302c0b220211124.1",
|
8
8
|
"comments": {
|
9
9
|
"prerelease": [
|
10
10
|
{
|
11
|
-
"author": "
|
11
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
12
|
+
"package": "@fluentui/react-button",
|
13
|
+
"commit": "8825574c42f414c26f9d49238be02ca7dcb44cfe",
|
14
|
+
"comment": "MenuButton: Removing tight coupling with Menu by replicating type locally."
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"author": "ololubek@microsoft.com",
|
18
|
+
"package": "@fluentui/react-button",
|
19
|
+
"commit": "ecab13cfd6ac22657020db8f86eb89f952b0f953",
|
20
|
+
"comment": "update react-icons dependency"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"author": "beachball",
|
24
|
+
"package": "@fluentui/react-button",
|
25
|
+
"comment": "Bump @fluentui/react-aria to v0.0.0-nightlya54302c0b220211124.1",
|
26
|
+
"commit": "e3c1bd15060ac276670338660c7965b877e333f4"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"author": "beachball",
|
30
|
+
"package": "@fluentui/react-button",
|
31
|
+
"comment": "Bump @fluentui/react-make-styles to v0.0.0-nightlya54302c0b220211124.1",
|
32
|
+
"commit": "e3c1bd15060ac276670338660c7965b877e333f4"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"author": "beachball",
|
36
|
+
"package": "@fluentui/react-button",
|
37
|
+
"comment": "Bump @fluentui/react-tabster to v0.0.0-nightlya54302c0b220211124.1",
|
38
|
+
"commit": "e3c1bd15060ac276670338660c7965b877e333f4"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"author": "beachball",
|
12
42
|
"package": "@fluentui/react-button",
|
13
|
-
"
|
14
|
-
"
|
43
|
+
"comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightlya54302c0b220211124.1",
|
44
|
+
"commit": "e3c1bd15060ac276670338660c7965b877e333f4"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"author": "beachball",
|
48
|
+
"package": "@fluentui/react-button",
|
49
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlya54302c0b220211124.1",
|
50
|
+
"commit": "e3c1bd15060ac276670338660c7965b877e333f4"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"author": "beachball",
|
54
|
+
"package": "@fluentui/react-button",
|
55
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlya54302c0b220211124.1",
|
56
|
+
"commit": "e3c1bd15060ac276670338660c7965b877e333f4"
|
57
|
+
}
|
58
|
+
]
|
59
|
+
}
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"date": "Fri, 12 Nov 2021 13:25:16 GMT",
|
63
|
+
"tag": "@fluentui/react-button_v9.0.0-beta.4",
|
64
|
+
"version": "9.0.0-beta.4",
|
65
|
+
"comments": {
|
66
|
+
"prerelease": [
|
67
|
+
{
|
68
|
+
"author": "olfedias@microsoft.com",
|
69
|
+
"package": "@fluentui/react-button",
|
70
|
+
"commit": "7eb7d2daebaa11dbdcd555b0b962407013a7ca80",
|
71
|
+
"comment": "export static classes for components"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"author": "gcox@microsoft.com",
|
75
|
+
"package": "@fluentui/react-button",
|
76
|
+
"commit": "c9bd5b5a02ae94a8239ce1b56cac2f0d0dbd3586",
|
77
|
+
"comment": "Updated beta and RC components to ES2019"
|
15
78
|
},
|
16
79
|
{
|
17
80
|
"author": "Humberto.Morimoto@microsoft.com",
|
@@ -28,64 +91,76 @@
|
|
28
91
|
{
|
29
92
|
"author": "beachball",
|
30
93
|
"package": "@fluentui/react-button",
|
31
|
-
"comment": "Bump @fluentui/
|
32
|
-
"commit": "
|
94
|
+
"comment": "Bump @fluentui/react-aria to v9.0.0-beta.3",
|
95
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
33
96
|
},
|
34
97
|
{
|
35
98
|
"author": "beachball",
|
36
99
|
"package": "@fluentui/react-button",
|
37
|
-
"comment": "Bump @fluentui/react-
|
38
|
-
"commit": "
|
100
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.3",
|
101
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
39
102
|
},
|
40
103
|
{
|
41
104
|
"author": "beachball",
|
42
105
|
"package": "@fluentui/react-button",
|
43
|
-
"comment": "Bump @fluentui/react-
|
44
|
-
"commit": "
|
106
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-beta.4",
|
107
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
45
108
|
},
|
46
109
|
{
|
47
110
|
"author": "beachball",
|
48
111
|
"package": "@fluentui/react-button",
|
49
|
-
"comment": "Bump @fluentui/react-
|
50
|
-
"commit": "
|
112
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.3",
|
113
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
51
114
|
},
|
52
115
|
{
|
53
116
|
"author": "beachball",
|
54
117
|
"package": "@fluentui/react-button",
|
55
|
-
"comment": "Bump @fluentui/
|
56
|
-
"commit": "
|
118
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.3",
|
119
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
57
120
|
},
|
58
121
|
{
|
59
122
|
"author": "beachball",
|
60
123
|
"package": "@fluentui/react-button",
|
61
|
-
"comment": "Bump @fluentui/
|
62
|
-
"commit": "
|
124
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3",
|
125
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
63
126
|
},
|
64
127
|
{
|
65
128
|
"author": "beachball",
|
66
129
|
"package": "@fluentui/react-button",
|
67
|
-
"comment": "Bump @fluentui/
|
68
|
-
"commit": "
|
130
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3",
|
131
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
69
132
|
},
|
70
133
|
{
|
71
134
|
"author": "beachball",
|
72
135
|
"package": "@fluentui/react-button",
|
73
|
-
"comment": "Bump @fluentui/react-
|
74
|
-
"commit": "
|
75
|
-
},
|
76
|
-
{
|
77
|
-
"author": "beachball",
|
78
|
-
"package": "@fluentui/react-button",
|
79
|
-
"comment": "Bump @fluentui/react-menu to v0.0.0-nightlya372ad979820211103.1",
|
80
|
-
"commit": "ff9c0a60767a2dbd1afdc71659a5daee5f2068dd"
|
136
|
+
"comment": "Bump @fluentui/react-menu to v9.0.0-beta.4",
|
137
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
81
138
|
}
|
82
139
|
],
|
83
140
|
"none": [
|
141
|
+
{
|
142
|
+
"author": "mgodbolt@microsoft.com",
|
143
|
+
"package": "@fluentui/react-button",
|
144
|
+
"commit": "d28932cc68561cf46a56a4300b6e18d7de8af14b",
|
145
|
+
"comment": "adding toggle and split button docs"
|
146
|
+
},
|
84
147
|
{
|
85
148
|
"author": "mgodbolt@microsoft.com",
|
86
149
|
"package": "@fluentui/react-button",
|
87
150
|
"commit": "7fafe76eb2c09f9d17a03c11ba73729d91ef411e",
|
88
151
|
"comment": "update docs descriptions"
|
152
|
+
},
|
153
|
+
{
|
154
|
+
"author": "mgodbolt@microsoft.com",
|
155
|
+
"package": "@fluentui/react-button",
|
156
|
+
"commit": "73857e89e8c403370ba723415121f2ce1e530fff",
|
157
|
+
"comment": "add docs for menu and compound button"
|
158
|
+
},
|
159
|
+
{
|
160
|
+
"author": "lingfangao@hotmail.com",
|
161
|
+
"package": "@fluentui/react-button",
|
162
|
+
"commit": "00f70581480b536e723fb69edf0ae617beac4807",
|
163
|
+
"comment": "Remove beta release tag"
|
89
164
|
}
|
90
165
|
]
|
91
166
|
}
|
package/CHANGELOG.md
CHANGED
@@ -1,28 +1,44 @@
|
|
1
1
|
# Change Log - @fluentui/react-button
|
2
2
|
|
3
|
-
This log was last generated on Wed,
|
3
|
+
This log was last generated on Wed, 24 Nov 2021 04:12:44 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
-
## [0.0.0-
|
7
|
+
## [0.0.0-nightlya54302c0b220211124.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v0.0.0-nightlya54302c0b220211124.1)
|
8
8
|
|
9
|
-
Wed,
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-beta.
|
9
|
+
Wed, 24 Nov 2021 04:12:44 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-beta.4..@fluentui/react-button_v0.0.0-nightlya54302c0b220211124.1)
|
11
11
|
|
12
12
|
### Changes
|
13
13
|
|
14
|
-
-
|
14
|
+
- MenuButton: Removing tight coupling with Menu by replicating type locally. ([PR #20635](https://github.com/microsoft/fluentui/pull/20635) by Humberto.Morimoto@microsoft.com)
|
15
|
+
- update react-icons dependency ([PR #20563](https://github.com/microsoft/fluentui/pull/20563) by ololubek@microsoft.com)
|
16
|
+
- Bump @fluentui/react-aria to v0.0.0-nightlya54302c0b220211124.1 ([commit](https://github.com/microsoft/fluentui/commit/e3c1bd15060ac276670338660c7965b877e333f4) by beachball)
|
17
|
+
- Bump @fluentui/react-make-styles to v0.0.0-nightlya54302c0b220211124.1 ([commit](https://github.com/microsoft/fluentui/commit/e3c1bd15060ac276670338660c7965b877e333f4) by beachball)
|
18
|
+
- Bump @fluentui/react-tabster to v0.0.0-nightlya54302c0b220211124.1 ([commit](https://github.com/microsoft/fluentui/commit/e3c1bd15060ac276670338660c7965b877e333f4) by beachball)
|
19
|
+
- Bump @fluentui/babel-make-styles to v0.0.0-nightlya54302c0b220211124.1 ([commit](https://github.com/microsoft/fluentui/commit/e3c1bd15060ac276670338660c7965b877e333f4) by beachball)
|
20
|
+
- Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlya54302c0b220211124.1 ([commit](https://github.com/microsoft/fluentui/commit/e3c1bd15060ac276670338660c7965b877e333f4) by beachball)
|
21
|
+
- Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlya54302c0b220211124.1 ([commit](https://github.com/microsoft/fluentui/commit/e3c1bd15060ac276670338660c7965b877e333f4) by beachball)
|
22
|
+
|
23
|
+
## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0-beta.4)
|
24
|
+
|
25
|
+
Fri, 12 Nov 2021 13:25:16 GMT
|
26
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-beta.3..@fluentui/react-button_v9.0.0-beta.4)
|
27
|
+
|
28
|
+
### Changes
|
29
|
+
|
30
|
+
- export static classes for components ([PR #20454](https://github.com/microsoft/fluentui/pull/20454) by olfedias@microsoft.com)
|
31
|
+
- Updated beta and RC components to ES2019 ([PR #20405](https://github.com/microsoft/fluentui/pull/20405) by gcox@microsoft.com)
|
15
32
|
- react-button: Removing use of enzyme in the converged package. ([PR #20342](https://github.com/microsoft/fluentui/pull/20342) by Humberto.Morimoto@microsoft.com)
|
16
33
|
- Fixing incomplete comment. ([PR #20273](https://github.com/microsoft/fluentui/pull/20273) by Humberto.Morimoto@microsoft.com)
|
17
|
-
- Bump @fluentui/
|
18
|
-
- Bump @fluentui/react-
|
19
|
-
- Bump @fluentui/react-
|
20
|
-
- Bump @fluentui/react-
|
21
|
-
- Bump @fluentui/
|
22
|
-
- Bump @fluentui/
|
23
|
-
- Bump @fluentui/
|
24
|
-
- Bump @fluentui/react-
|
25
|
-
- Bump @fluentui/react-menu to v0.0.0-nightlya372ad979820211103.1 ([commit](https://github.com/microsoft/fluentui/commit/ff9c0a60767a2dbd1afdc71659a5daee5f2068dd) by beachball)
|
34
|
+
- Bump @fluentui/react-aria to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
35
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
36
|
+
- Bump @fluentui/react-tabster to v9.0.0-beta.4 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
37
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
38
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
39
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
40
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
41
|
+
- Bump @fluentui/react-menu to v9.0.0-beta.4 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
26
42
|
|
27
43
|
## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0-beta.3)
|
28
44
|
|
package/dist/react-button.d.ts
CHANGED
@@ -3,7 +3,6 @@ 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
5
|
import type { IntrinsicShorthandProps } from '@fluentui/react-utilities';
|
6
|
-
import type { MenuTriggerChildProps } from '@fluentui/react-menu';
|
7
6
|
import type { ObjectShorthandProps } from '@fluentui/react-utilities';
|
8
7
|
import * as React_2 from 'react';
|
9
8
|
|
@@ -12,6 +11,8 @@ import * as React_2 from 'react';
|
|
12
11
|
*/
|
13
12
|
export declare const Button: ForwardRefComponent<ButtonProps>;
|
14
13
|
|
14
|
+
export declare const buttonClassName = "fui-Button";
|
15
|
+
|
15
16
|
export declare type ButtonCommons = {
|
16
17
|
/**
|
17
18
|
* A button can have its content and borders styled for greater emphasis or to be subtle.
|
@@ -81,6 +82,8 @@ export declare type ButtonState = ComponentState<ButtonSlots> & ButtonCommons &
|
|
81
82
|
*/
|
82
83
|
export declare const CompoundButton: ForwardRefComponent<CompoundButtonProps>;
|
83
84
|
|
85
|
+
export declare const compoundButtonClassName = "fui-CompoundButton";
|
86
|
+
|
84
87
|
export declare type CompoundButtonProps = ComponentProps<CompoundButtonSlots> & Partial<ButtonCommons>;
|
85
88
|
|
86
89
|
export declare type CompoundButtonSlots = ButtonSlots & {
|
@@ -101,6 +104,8 @@ export declare type CompoundButtonState = ComponentState<CompoundButtonSlots> &
|
|
101
104
|
*/
|
102
105
|
export declare const MenuButton: ForwardRefComponent<MenuButtonProps>;
|
103
106
|
|
107
|
+
export declare const menuButtonClassName = "fui-MenuButton";
|
108
|
+
|
104
109
|
export declare type MenuButtonProps = ComponentProps<MenuButtonSlots> & Partial<Omit<ButtonCommons, 'iconPosition'>> & Partial<MenuTriggerChildProps>;
|
105
110
|
|
106
111
|
export declare type MenuButtonSlots = ButtonSlots & {
|
@@ -112,6 +117,10 @@ export declare type MenuButtonSlots = ButtonSlots & {
|
|
112
117
|
|
113
118
|
export declare type MenuButtonState = ComponentState<MenuButtonSlots> & Omit<ButtonState, keyof ButtonSlots | 'components' | 'iconPosition'>;
|
114
119
|
|
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
|
+
|
115
124
|
/**
|
116
125
|
* Renders a Button component by passing the state defined props to the appropriate slots.
|
117
126
|
*/
|
@@ -140,6 +149,8 @@ export declare const renderSplitButton: (state: SplitButtonState) => JSX.Element
|
|
140
149
|
*/
|
141
150
|
export declare const SplitButton: ForwardRefComponent<SplitButtonProps>;
|
142
151
|
|
152
|
+
export declare const splitButtonClassName = "fui-SplitButton";
|
153
|
+
|
143
154
|
export declare type SplitButtonProps = ComponentProps<SplitButtonSlots> & Omit<ButtonProps, 'root'> & Omit<MenuButtonProps, 'root'>;
|
144
155
|
|
145
156
|
export declare type SplitButtonSlots = {
|
@@ -164,6 +175,8 @@ export declare type SplitButtonState = ComponentState<SplitButtonSlots> & Omit<B
|
|
164
175
|
*/
|
165
176
|
export declare const ToggleButton: ForwardRefComponent<ToggleButtonProps>;
|
166
177
|
|
178
|
+
export declare const toggleButtonClassName = "fui-ToggleButton";
|
179
|
+
|
167
180
|
export declare type ToggleButtonCommons = {
|
168
181
|
/**
|
169
182
|
* Defines the controlled checked state of the `ToggleButton`.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { isConformant as baseIsConformant } from '@fluentui/react-conformance';
|
2
2
|
import makeStylesTests from '@fluentui/react-conformance-make-styles';
|
3
3
|
export function isConformant(testInfo) {
|
4
|
-
|
4
|
+
const defaultOptions = {
|
5
5
|
asPropHandlesRef: true,
|
6
6
|
componentPath: module.parent.filename.replace('.test', ''),
|
7
7
|
disabledTests: ['has-docblock', 'kebab-aria-attributes'],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":"AAAA,SAAS,YAAY,IAAI,gBAAzB,QAAiD,6BAAjD;AAEA,OAAO,eAAP,MAA4B,yCAA5B;AAEA,OAAM,SAAU,YAAV,CACJ,QADI,EACqF;AAEzF,
|
1
|
+
{"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":"AAAA,SAAS,YAAY,IAAI,gBAAzB,QAAiD,6BAAjD;AAEA,OAAO,eAAP,MAA4B,yCAA5B;AAEA,OAAM,SAAU,YAAV,CACJ,QADI,EACqF;AAEzF,QAAM,cAAc,GAAyC;AAC3D,IAAA,gBAAgB,EAAE,IADyC;AAE3D,IAAA,aAAa,EAAE,MAAO,CAAC,MAAR,CAAgB,QAAhB,CAAyB,OAAzB,CAAiC,OAAjC,EAA0C,EAA1C,CAF4C;AAG3D,IAAA,aAAa,EAAE,CAAC,cAAD,EAAiB,uBAAjB,CAH4C;AAI3D,IAAA,UAAU,EAAE,eAJ+C;AAK3D,IAAA,eAAe,EAAE;AAL0C,GAA7D;AAQA,EAAA,gBAAgB,CAAC,cAAD,EAAiB,QAAjB,CAAhB;AACD","sourceRoot":""}
|
@@ -6,8 +6,8 @@ import { useButtonStyles } from './useButtonStyles';
|
|
6
6
|
* Buttons give people a way to trigger an action.
|
7
7
|
*/
|
8
8
|
|
9
|
-
export
|
10
|
-
|
9
|
+
export const Button = /*#__PURE__*/React.forwardRef((props, ref) => {
|
10
|
+
const state = useButton(props, ref);
|
11
11
|
useButtonStyles(state);
|
12
12
|
return renderButton(state); // Casting is required due to lack of distributive union to support unions on @types/react
|
13
13
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,YAAT,QAA6B,gBAA7B;AACA,SAAS,SAAT,QAA0B,aAA1B;AACA,SAAS,eAAT,QAAgC,mBAAhC;AAIA;;AAEG;;AACH,OAAO,
|
1
|
+
{"version":3,"sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,YAAT,QAA6B,gBAA7B;AACA,SAAS,SAAT,QAA0B,aAA1B;AACA,SAAS,eAAT,QAAgC,mBAAhC;AAIA;;AAEG;;AACH,OAAO,MAAM,MAAM,gBAAqC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACtF,QAAM,KAAK,GAAG,SAAS,CAAC,KAAD,EAAQ,GAAR,CAAvB;AAEA,EAAA,eAAe,CAAC,KAAD,CAAf;AAEA,SAAO,YAAY,CAAC,KAAD,CAAnB,CALsF,CAMtF;AACD,CAPuD,CAAjD;AASP,MAAM,CAAC,WAAP,GAAqB,QAArB","sourceRoot":""}
|
@@ -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 { useButtonStyles } from './useButtonStyles';
|
5
|
+
export { buttonClassName, useButtonStyles } 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,MAAM,mBAAmB,CAAC"}
|
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,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
@@ -1,17 +1,18 @@
|
|
1
|
-
import { __assign } from "tslib";
|
2
1
|
import * as React from 'react';
|
3
2
|
import { getSlots } from '@fluentui/react-utilities';
|
4
3
|
/**
|
5
4
|
* Renders a Button component by passing the state defined props to the appropriate slots.
|
6
5
|
*/
|
7
6
|
|
8
|
-
export
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
7
|
+
export const renderButton = state => {
|
8
|
+
const {
|
9
|
+
slots,
|
10
|
+
slotProps
|
11
|
+
} = getSlots(state, ['root', 'icon']);
|
12
|
+
const {
|
13
|
+
iconOnly,
|
14
|
+
iconPosition
|
15
|
+
} = state;
|
16
|
+
return /*#__PURE__*/React.createElement(slots.root, Object.assign({}, slotProps.root), iconPosition !== 'after' && /*#__PURE__*/React.createElement(slots.icon, Object.assign({}, slotProps.icon)), !iconOnly && state.root.children, iconPosition === 'after' && /*#__PURE__*/React.createElement(slots.icon, Object.assign({}, slotProps.icon)));
|
16
17
|
};
|
17
18
|
//# sourceMappingURL=renderButton.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Button/renderButton.tsx"],"names":[],"mappings":"
|
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,YAAY,GAAI,KAAD,IAAuB;AACjD,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAc,KAAd,EAAqB,CAAC,MAAD,EAAS,MAAT,CAArB,CAArC;AACA,QAAM;AAAE,IAAA,QAAF;AAAY,IAAA;AAAZ,MAA6B,KAAnC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,EACG,YAAY,KAAK,OAAjB,iBAA4B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CAD/B,EAEG,CAAC,QAAD,IAAa,KAAK,CAAC,IAAN,CAAW,QAF3B,EAGG,YAAY,KAAK,OAAjB,iBAA4B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CAH/B,CADF;AAOD,CAXM","sourceRoot":""}
|
@@ -6,32 +6,28 @@ 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
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
shape = _e === void 0 ? 'rounded' : _e,
|
23
|
-
_f = props.size,
|
24
|
-
size = _f === void 0 ? 'medium' : _f;
|
25
|
-
var iconShorthand = resolveShorthand(icon);
|
9
|
+
export const useButton = (props, ref) => {
|
10
|
+
const {
|
11
|
+
appearance,
|
12
|
+
as,
|
13
|
+
block = false,
|
14
|
+
disabled = false,
|
15
|
+
disabledFocusable = false,
|
16
|
+
icon,
|
17
|
+
iconPosition = 'before',
|
18
|
+
shape = 'rounded',
|
19
|
+
size = 'medium'
|
20
|
+
} = props;
|
21
|
+
const iconShorthand = resolveShorthand(icon);
|
26
22
|
return {
|
27
23
|
// Props passed at the top-level
|
28
|
-
appearance
|
29
|
-
block
|
30
|
-
disabled
|
31
|
-
disabledFocusable
|
32
|
-
iconPosition
|
33
|
-
shape
|
34
|
-
size
|
24
|
+
appearance,
|
25
|
+
block,
|
26
|
+
disabled,
|
27
|
+
disabledFocusable,
|
28
|
+
iconPosition,
|
29
|
+
shape,
|
30
|
+
size,
|
35
31
|
// State calculated from a set of props
|
36
32
|
iconOnly: Boolean((iconShorthand === null || iconShorthand === void 0 ? void 0 : iconShorthand.children) && !props.children),
|
37
33
|
// Slots definition
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Button/useButton.ts"],"names":[],"mappings":"AACA,SAAS,aAAT,QAA8B,sBAA9B;AACA,SAAS,qBAAT,EAAgC,gBAAhC,QAAwD,2BAAxD;AAGA;;;;AAIG;;AACH,OAAO,
|
1
|
+
{"version":3,"sources":["../../../src/components/Button/useButton.ts"],"names":[],"mappings":"AACA,SAAS,aAAT,QAA8B,sBAA9B;AACA,SAAS,qBAAT,EAAgC,gBAAhC,QAAwD,2BAAxD;AAGA;;;;AAIG;;AACH,OAAO,MAAM,SAAS,GAAG,CAAC,KAAD,EAAqB,GAArB,KAA2F;AAClH,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,CAAC,KAAD,EAAQ;AACnB,MAAA,QAAQ,EAAE,IADS;AAEnB,MAAA,YAAY,EAAE;AACZ;AACA,QAAA,GAAG,EAAE,GAFO;AAGZ,QAAA,IAAI,EAAE;AAHM;AAFK,KAAR,CAFY,CAnBtB;AA8BL,IAAA,IAAI,EAAE;AA9BD,GAAP;AAgCD,CA9CM","sourceRoot":""}
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { __styles, mergeClasses } from '@fluentui/react-make-styles';
|
2
|
-
import { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';
|
2
|
+
import { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';
|
3
|
+
export const buttonClassName = 'fui-Button'; // TODO: These are named in design specs but not hoisted to global/alias yet.
|
3
4
|
// We're tracking these here to determine how we can hoist them.
|
4
5
|
|
5
|
-
export
|
6
|
+
export const buttonSpacing = {
|
6
7
|
smallest: '2px',
|
7
8
|
smaller: '4px',
|
8
9
|
small: '6px',
|
@@ -11,7 +12,7 @@ export var buttonSpacing = {
|
|
11
12
|
larger: '16px'
|
12
13
|
};
|
13
14
|
|
14
|
-
|
15
|
+
const useRootStyles = /*#__PURE__*/__styles({
|
15
16
|
"base": {
|
16
17
|
"Bt984gj": "f122n59",
|
17
18
|
"mc9l5x": "ftuwxu6",
|
@@ -177,7 +178,7 @@ var useRootStyles = /*#__PURE__*/__styles({
|
|
177
178
|
"a": [".fzgy25m:active{background:var(--colorNeutralBackground1Pressed);}", ".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}", ".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}", ".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}", ".fumykes:active{border-bottom-color:var(--colorNeutralStroke1Pressed);}", ".f1r2dosr:active{color:var(--colorNeutralForeground1);}", ".fb0xa7e:active{outline-style:none;}", ".flt377r:active{background:var(--colorTransparentBackgroundPressed);}", ".f4ihffn:active{background:var(--colorBrandBackgroundPressed);}", ".ff472gp:active{border-top-color:transparent;}", ".f4yyc7m:active{border-right-color:transparent;}", ".ft2aflc:active{border-left-color:transparent;}", ".fggejwh:active{border-bottom-color:transparent;}", ".f18otbis:active{color:var(--colorNeutralForegroundOnBrand);}", ".f1be4e1d:active{background:var(--colorSubtleBackgroundPressed);}", ".f19au66r:active{color:var(--colorNeutralForeground2BrandPressed);}"]
|
178
179
|
});
|
179
180
|
|
180
|
-
|
181
|
+
const useRootDisabledStyles = /*#__PURE__*/__styles({
|
181
182
|
"base": {
|
182
183
|
"ayd6f0": "fqst6tg",
|
183
184
|
"g2u3we": "f1jj8ep1",
|
@@ -260,7 +261,7 @@ var useRootDisabledStyles = /*#__PURE__*/__styles({
|
|
260
261
|
"a": [".fkqx3al:active{background:var(--colorNeutralBackgroundDisabled);}", ".fdi4vxw:active{border-top-color:var(--colorNeutralStrokeDisabled);}", ".f4ryxzl:active{border-right-color:var(--colorNeutralStrokeDisabled);}", ".fkdgpbx:active{border-left-color:var(--colorNeutralStrokeDisabled);}", ".fcmhn06:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}", ".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}", ".fq67hom:active{cursor:not-allowed;}", ".flt377r:active{background:var(--colorTransparentBackgroundPressed);}", ".ff472gp:active{border-top-color:transparent;}", ".f4yyc7m:active{border-right-color:transparent;}", ".ft2aflc:active{border-left-color:transparent;}", ".fggejwh:active{border-bottom-color:transparent;}", ".f17oliv9:active{background:none;}"]
|
261
262
|
});
|
262
263
|
|
263
|
-
|
264
|
+
const useRootFocusStyles = /*#__PURE__*/__styles({
|
264
265
|
"base": {
|
265
266
|
"B486eqv": "f2hkw1w",
|
266
267
|
"Bnmjwt4": "flfsvnh",
|
@@ -270,7 +271,7 @@ var useRootFocusStyles = /*#__PURE__*/__styles({
|
|
270
271
|
"B32s92o": "f4mghqd",
|
271
272
|
"B5hngm5": "fhcq1yo",
|
272
273
|
"Bh48x57": "f19j8a82",
|
273
|
-
"D4py6b":
|
274
|
+
"D4py6b": "f9ycirn",
|
274
275
|
"Bgwpjed": "fpt6wn7"
|
275
276
|
},
|
276
277
|
"circular": {
|
@@ -284,7 +285,7 @@ var useRootFocusStyles = /*#__PURE__*/__styles({
|
|
284
285
|
"Jopkrh": ["fhoxsto", "f19qf7vm"],
|
285
286
|
"hhrs2v": "f1tl0rof",
|
286
287
|
"B7jbng7": ["f19qf7vm", "fhoxsto"],
|
287
|
-
"D4py6b":
|
288
|
+
"D4py6b": "f15m8qn2"
|
288
289
|
},
|
289
290
|
"square": {
|
290
291
|
"B486eqv": "f2hkw1w",
|
@@ -304,10 +305,10 @@ var useRootFocusStyles = /*#__PURE__*/__styles({
|
|
304
305
|
}
|
305
306
|
}, {
|
306
307
|
"i": [".f2hkw1w:focus-visible{outline-style:none;}"],
|
307
|
-
"d": ["[data-keyboard-nav] .flfsvnh:focus{border-top-color:transparent;}", "[data-keyboard-nav] .f1781m5e:focus{border-right-color:transparent;}", "[data-keyboard-nav] .flvaaa9:focus{border-left-color:transparent;}", "[data-keyboard-nav] .f50u1b5:focus{border-bottom-color:transparent;}", "[data-keyboard-nav] .f4mghqd:focus{outline-width:2px;}", "[data-keyboard-nav] .fhcq1yo:focus{outline-style:solid;}", "[data-keyboard-nav] .f19j8a82:focus{outline-color:transparent;}", "[data-keyboard-nav] .f9ycirn:focus{box-shadow:var(--shadow4),0 0 0 2px var(--colorStrokeFocus2);}", "[data-keyboard-nav] .
|
308
|
+
"d": ["[data-keyboard-nav] .flfsvnh:focus{border-top-color:transparent;}", "[data-keyboard-nav] .f1781m5e:focus{border-right-color:transparent;}", "[data-keyboard-nav] .flvaaa9:focus{border-left-color:transparent;}", "[data-keyboard-nav] .f50u1b5:focus{border-bottom-color:transparent;}", "[data-keyboard-nav] .f4mghqd:focus{outline-width:2px;}", "[data-keyboard-nav] .fhcq1yo:focus{outline-style:solid;}", "[data-keyboard-nav] .f19j8a82:focus{outline-color:transparent;}", "[data-keyboard-nav] .f9ycirn:focus{box-shadow:var(--shadow4),0 0 0 2px var(--colorStrokeFocus2);}", "[data-keyboard-nav] .fpt6wn7:focus{z-index:1;}", "[data-keyboard-nav] .f6dohij:focus{border-radius:var(--borderRadiusCircular);}", "[data-keyboard-nav] .fbugrqt:focus{border-top-color:var(--colorNeutralForegroundOnBrand);}", "[data-keyboard-nav] .fhoxsto:focus{border-right-color:var(--colorNeutralForegroundOnBrand);}", "[data-keyboard-nav] .f19qf7vm:focus{border-left-color:var(--colorNeutralForegroundOnBrand);}", "[data-keyboard-nav] .f1tl0rof:focus{border-bottom-color:var(--colorNeutralForegroundOnBrand);}", "[data-keyboard-nav] .f15m8qn2:focus{box-shadow:var(--shadow2),0 0 0 2px var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f1x6jsgk:focus{border-radius:var(--borderRadiusNone);}", "[data-keyboard-nav] .f1cqgkc0:focus{border-radius:var(--borderRadiusSmall);}", "[data-keyboard-nav] .fhf9ij9:focus{border-radius:var(--borderRadiusMedium);}", "[data-keyboard-nav] .fnsjjqm:focus{border-radius:var(--borderRadiusLarge);}"]
|
308
309
|
});
|
309
310
|
|
310
|
-
|
311
|
+
const useRootIconOnlyStyles = /*#__PURE__*/__styles({
|
311
312
|
"small": {
|
312
313
|
"z8tnut": "f10ra9hq",
|
313
314
|
"z189sj": ["f8wuabp", "fycuoez"],
|
@@ -336,7 +337,7 @@ var useRootIconOnlyStyles = /*#__PURE__*/__styles({
|
|
336
337
|
"d": [".f10ra9hq{padding-top:4px;}", ".f8wuabp{padding-right:4px;}", ".fycuoez{padding-left:4px;}", ".f1y2xyjm{padding-bottom:4px;}", ".f107v6xj{min-width:28px;}", ".f17iyk3w{max-width:28px;}", ".fwbmr0d{min-width:32px;}", ".f44c6la{max-width:32px;}", ".f1xp5gbu{padding-top:6px;}", ".f1sgzk6v{padding-right:6px;}", ".f1bg5zqg{padding-left:6px;}", ".f1d7kygh{padding-bottom:6px;}", ".f12clzc2{min-width:40px;}", ".fjy1crr{max-width:40px;}"]
|
337
338
|
});
|
338
339
|
|
339
|
-
|
340
|
+
const useIconStyles = /*#__PURE__*/__styles({
|
340
341
|
"base": {
|
341
342
|
"Bt984gj": "f122n59",
|
342
343
|
"mc9l5x": "ftuwxu6",
|
@@ -361,20 +362,22 @@ var useIconStyles = /*#__PURE__*/__styles({
|
|
361
362
|
"d": [".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".ftuwxu6{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", ".f4d9j23{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}", ".fe5j1ua{font-size:20px;}", ".fjamq6b{height:20px;}", ".f64fuq3{width:20px;}", ".f1rt2boy{font-size:24px;}", ".frvgh55{height:24px;}", ".fq4mcun{width:24px;}"]
|
362
363
|
});
|
363
364
|
|
364
|
-
export
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
365
|
+
export const useButtonStyles = state => {
|
366
|
+
const rootStyles = useRootStyles();
|
367
|
+
const rootDisabledStyles = useRootDisabledStyles();
|
368
|
+
const rootFocusStyles = useRootFocusStyles();
|
369
|
+
const rootIconOnlyStyles = useRootIconOnlyStyles();
|
370
|
+
const iconStyles = useIconStyles();
|
371
|
+
const {
|
372
|
+
appearance,
|
373
|
+
block,
|
374
|
+
disabled,
|
375
|
+
disabledFocusable,
|
376
|
+
iconOnly,
|
377
|
+
shape,
|
378
|
+
size
|
379
|
+
} = state;
|
380
|
+
state.root.className = mergeClasses(buttonClassName, // Root styles
|
378
381
|
rootStyles.base, block && rootStyles.block, appearance && rootStyles[appearance], rootStyles[size], rootStyles[shape], // Disabled styles
|
379
382
|
(disabled || disabledFocusable) && rootDisabledStyles.base, appearance && (disabled || disabledFocusable) && rootDisabledStyles[appearance], // Focus styles
|
380
383
|
rootFocusStyles.base, appearance === 'primary' && rootFocusStyles.primary, rootFocusStyles[size], rootFocusStyles[shape], // Icon-only styles
|