@fluentui/react-tabs 9.0.0-beta.9 → 9.0.0-rc.4
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 +298 -6
- package/CHANGELOG.md +95 -10
- package/README.md +47 -1
- package/dist/{react-tabs.d.ts → index.d.ts} +46 -55
- package/{lib → dist}/tsdoc-metadata.json +0 -0
- package/lib/components/Tab/Tab.types.js.map +1 -1
- package/lib/components/Tab/useTab.js +3 -0
- package/lib/components/Tab/useTab.js.map +1 -1
- package/lib/components/Tab/useTabAnimatedIndicator.js +6 -6
- package/lib/components/Tab/useTabAnimatedIndicator.js.map +1 -1
- package/lib/components/Tab/useTabStyles.js +117 -181
- package/lib/components/Tab/useTabStyles.js.map +1 -1
- package/lib/components/TabList/TabList.types.js.map +1 -1
- package/lib/components/TabList/useTabList.js +2 -1
- package/lib/components/TabList/useTabList.js.map +1 -1
- package/lib/components/TabList/useTabListStyles.js +10 -5
- package/lib/components/TabList/useTabListStyles.js.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib-commonjs/components/Tab/useTab.js +3 -0
- package/lib-commonjs/components/Tab/useTab.js.map +1 -1
- package/lib-commonjs/components/Tab/useTabAnimatedIndicator.js +7 -7
- package/lib-commonjs/components/Tab/useTabAnimatedIndicator.js.map +1 -1
- package/lib-commonjs/components/Tab/useTabStyles.js +117 -182
- package/lib-commonjs/components/Tab/useTabStyles.js.map +1 -1
- package/lib-commonjs/components/TabList/useTabList.js +2 -1
- package/lib-commonjs/components/TabList/useTabList.js.map +1 -1
- package/lib-commonjs/components/TabList/useTabListStyles.js +11 -6
- package/lib-commonjs/components/TabList/useTabListStyles.js.map +1 -1
- package/lib-commonjs/index.js +1 -13
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +11 -11
- package/lib/Tab.d.ts +0 -1
- package/lib/TabList.d.ts +0 -1
- package/lib/components/Tab/Tab.d.ts +0 -6
- package/lib/components/Tab/Tab.types.d.ts +0 -61
- package/lib/components/Tab/index.d.ts +0 -6
- package/lib/components/Tab/renderTab.d.ts +0 -5
- package/lib/components/Tab/useTab.d.ts +0 -12
- package/lib/components/Tab/useTabAnimatedIndicator.d.ts +0 -5
- package/lib/components/Tab/useTabStyles.d.ts +0 -8
- package/lib/components/TabList/TabList.d.ts +0 -6
- package/lib/components/TabList/TabList.types.d.ts +0 -104
- package/lib/components/TabList/TabListContext.d.ts +0 -3
- package/lib/components/TabList/index.d.ts +0 -5
- package/lib/components/TabList/renderTabList.d.ts +0 -5
- package/lib/components/TabList/useTabList.d.ts +0 -12
- package/lib/components/TabList/useTabListContextValues.d.ts +0 -2
- package/lib/components/TabList/useTabListStyles.d.ts +0 -8
- package/lib/index.d.ts +0 -4
- package/lib/tab.constants.d.ts +0 -62
- package/lib/tab.constants.js +0 -68
- package/lib/tab.constants.js.map +0 -1
- package/lib-commonjs/Tab.d.ts +0 -1
- package/lib-commonjs/TabList.d.ts +0 -1
- package/lib-commonjs/components/Tab/Tab.d.ts +0 -6
- package/lib-commonjs/components/Tab/Tab.types.d.ts +0 -61
- package/lib-commonjs/components/Tab/index.d.ts +0 -6
- package/lib-commonjs/components/Tab/renderTab.d.ts +0 -5
- package/lib-commonjs/components/Tab/useTab.d.ts +0 -12
- package/lib-commonjs/components/Tab/useTabAnimatedIndicator.d.ts +0 -5
- package/lib-commonjs/components/Tab/useTabStyles.d.ts +0 -8
- package/lib-commonjs/components/TabList/TabList.d.ts +0 -6
- package/lib-commonjs/components/TabList/TabList.types.d.ts +0 -104
- package/lib-commonjs/components/TabList/TabListContext.d.ts +0 -3
- package/lib-commonjs/components/TabList/index.d.ts +0 -5
- package/lib-commonjs/components/TabList/renderTabList.d.ts +0 -5
- package/lib-commonjs/components/TabList/useTabList.d.ts +0 -12
- package/lib-commonjs/components/TabList/useTabListContextValues.d.ts +0 -2
- package/lib-commonjs/components/TabList/useTabListStyles.d.ts +0 -8
- package/lib-commonjs/index.d.ts +0 -4
- package/lib-commonjs/tab.constants.d.ts +0 -62
- package/lib-commonjs/tab.constants.js +0 -75
- package/lib-commonjs/tab.constants.js.map +0 -1
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,299 @@
|
|
|
2
2
|
"name": "@fluentui/react-tabs",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Thu, 26 May 2022 21:00:06 GMT",
|
|
6
|
+
"tag": "@fluentui/react-tabs_v9.0.0-rc.4",
|
|
7
|
+
"version": "9.0.0-rc.4",
|
|
8
|
+
"comments": {
|
|
9
|
+
"none": [
|
|
10
|
+
{
|
|
11
|
+
"author": "olfedias@microsoft.com",
|
|
12
|
+
"package": "@fluentui/react-tabs",
|
|
13
|
+
"commit": "7bd33dbd7ddfc579e288c8081b8921be8cf421c5",
|
|
14
|
+
"comment": "improve formatting in stories"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"prerelease": [
|
|
18
|
+
{
|
|
19
|
+
"author": "gcox@microsoft.com",
|
|
20
|
+
"package": "@fluentui/react-tabs",
|
|
21
|
+
"commit": "2062c540d7ec78d424593cb18b0834e511dbc196",
|
|
22
|
+
"comment": "Update README.md"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"author": "beachball",
|
|
26
|
+
"package": "@fluentui/react-tabs",
|
|
27
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-rc.12",
|
|
28
|
+
"commit": "3cf55ce998048554bf6a550de44403843ea8ede0"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"date": "Mon, 23 May 2022 18:56:49 GMT",
|
|
35
|
+
"tag": "@fluentui/react-tabs_v9.0.0-rc.3",
|
|
36
|
+
"version": "9.0.0-rc.3",
|
|
37
|
+
"comments": {
|
|
38
|
+
"prerelease": [
|
|
39
|
+
{
|
|
40
|
+
"author": "esteban.230@hotmail.com",
|
|
41
|
+
"package": "@fluentui/react-tabs",
|
|
42
|
+
"commit": "5ed22515a7542b432ed694f22606ac3718d501cb",
|
|
43
|
+
"comment": "Removing commons type from Label."
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"author": "beachball",
|
|
47
|
+
"package": "@fluentui/react-tabs",
|
|
48
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-rc.11",
|
|
49
|
+
"commit": "d4f80b17690e962d6a24e68959608d1ffe84aef6"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"author": "beachball",
|
|
53
|
+
"package": "@fluentui/react-tabs",
|
|
54
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-rc.9",
|
|
55
|
+
"commit": "d4f80b17690e962d6a24e68959608d1ffe84aef6"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"author": "beachball",
|
|
59
|
+
"package": "@fluentui/react-tabs",
|
|
60
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.7",
|
|
61
|
+
"commit": "d4f80b17690e962d6a24e68959608d1ffe84aef6"
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"date": "Mon, 23 May 2022 12:13:48 GMT",
|
|
68
|
+
"tag": "@fluentui/react-tabs_v9.0.0-rc.2",
|
|
69
|
+
"version": "9.0.0-rc.2",
|
|
70
|
+
"comments": {
|
|
71
|
+
"prerelease": [
|
|
72
|
+
{
|
|
73
|
+
"author": "gcox@microsoft.com",
|
|
74
|
+
"package": "@fluentui/react-tabs",
|
|
75
|
+
"commit": "5a4a2c6b1ed8d4c2abb12a08d1abec71e9055ce6",
|
|
76
|
+
"comment": "Removed TabListCommons and TabCommons types"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"author": "gcox@microsoft.com",
|
|
80
|
+
"package": "@fluentui/react-tabs",
|
|
81
|
+
"commit": "58c5aafd8deb82eaf1ff117d9e2c9029f5658168",
|
|
82
|
+
"comment": "Removed flexgap from useTabStyles"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"author": "gcox@microsoft.com",
|
|
86
|
+
"package": "@fluentui/react-tabs",
|
|
87
|
+
"commit": "3460b40b4faf6c8939680f69878446da23ea20f9",
|
|
88
|
+
"comment": "Updated to focus on current selected tab"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"author": "gcox@microsoft.com",
|
|
92
|
+
"package": "@fluentui/react-tabs",
|
|
93
|
+
"commit": "447a9aa0c3527d42bd071e63777b7afa1a14b273",
|
|
94
|
+
"comment": "Used background rather than border"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"author": "gcox@microsoft.com",
|
|
98
|
+
"package": "@fluentui/react-tabs",
|
|
99
|
+
"commit": "083e54e4374c25be4200c27922c16621431bb2bc",
|
|
100
|
+
"comment": "Moved react-tabs to stable and rc.1"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"author": "martinhochel@microsoft.com",
|
|
104
|
+
"package": "@fluentui/react-tabs",
|
|
105
|
+
"commit": "e7b70cb06f4422e5574993fd2ad44d9073647417",
|
|
106
|
+
"comment": "feat: ship rolluped only dts"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"author": "olfedias@microsoft.com",
|
|
110
|
+
"package": "@fluentui/react-tabs",
|
|
111
|
+
"commit": "f120fe9160ad7311a87af0cfacd8d2fb26275e34",
|
|
112
|
+
"comment": "chore: Update Griffel to latest version"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"author": "gcox@microsoft.com",
|
|
116
|
+
"package": "@fluentui/react-tabs",
|
|
117
|
+
"commit": "42e0900f7a008d83fdca5a6e5620f49951ecedf1",
|
|
118
|
+
"comment": "Remove overflow to allow focus outline to display"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"author": "olfedias@microsoft.com",
|
|
122
|
+
"package": "@fluentui/react-tabs",
|
|
123
|
+
"commit": "60804cec07a495b8a5d1fc66338bf0443b212144",
|
|
124
|
+
"comment": "chore: Update Griffel to latest version"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"author": "gcox@microsoft.com",
|
|
128
|
+
"package": "@fluentui/react-tabs",
|
|
129
|
+
"commit": "48bc32c6df6279b46ba94aab16f8bf650b17bd1e",
|
|
130
|
+
"comment": "Add aria-label for icon only story"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"author": "beachball",
|
|
134
|
+
"package": "@fluentui/react-tabs",
|
|
135
|
+
"comment": "Bump @fluentui/react-context-selector to v9.0.0-rc.9",
|
|
136
|
+
"commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"author": "beachball",
|
|
140
|
+
"package": "@fluentui/react-tabs",
|
|
141
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-rc.10",
|
|
142
|
+
"commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"author": "beachball",
|
|
146
|
+
"package": "@fluentui/react-tabs",
|
|
147
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-rc.8",
|
|
148
|
+
"commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"author": "beachball",
|
|
152
|
+
"package": "@fluentui/react-tabs",
|
|
153
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-rc.9",
|
|
154
|
+
"commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"author": "beachball",
|
|
158
|
+
"package": "@fluentui/react-tabs",
|
|
159
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.6",
|
|
160
|
+
"commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"date": "Thu, 05 May 2022 18:26:30 GMT",
|
|
167
|
+
"tag": "@fluentui/react-tabs_v9.0.0-beta.12",
|
|
168
|
+
"version": "9.0.0-beta.12",
|
|
169
|
+
"comments": {
|
|
170
|
+
"prerelease": [
|
|
171
|
+
{
|
|
172
|
+
"author": "beachball",
|
|
173
|
+
"package": "@fluentui/react-tabs",
|
|
174
|
+
"comment": "Bump @fluentui/react-context-selector to v9.0.0-rc.8",
|
|
175
|
+
"commit": "c5abb9c480ac94d12aa644d68d30773d77f2a159"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"author": "beachball",
|
|
179
|
+
"package": "@fluentui/react-tabs",
|
|
180
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-rc.9",
|
|
181
|
+
"commit": "c5abb9c480ac94d12aa644d68d30773d77f2a159"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"author": "beachball",
|
|
185
|
+
"package": "@fluentui/react-tabs",
|
|
186
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-rc.7",
|
|
187
|
+
"commit": "c5abb9c480ac94d12aa644d68d30773d77f2a159"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"author": "beachball",
|
|
191
|
+
"package": "@fluentui/react-tabs",
|
|
192
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-rc.8",
|
|
193
|
+
"commit": "c5abb9c480ac94d12aa644d68d30773d77f2a159"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"author": "beachball",
|
|
197
|
+
"package": "@fluentui/react-tabs",
|
|
198
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.5",
|
|
199
|
+
"commit": "c5abb9c480ac94d12aa644d68d30773d77f2a159"
|
|
200
|
+
}
|
|
201
|
+
]
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"date": "Wed, 04 May 2022 13:26:52 GMT",
|
|
206
|
+
"tag": "@fluentui/react-tabs_v9.0.0-beta.11",
|
|
207
|
+
"version": "9.0.0-beta.11",
|
|
208
|
+
"comments": {
|
|
209
|
+
"prerelease": [
|
|
210
|
+
{
|
|
211
|
+
"author": "gcox@microsoft.com",
|
|
212
|
+
"package": "@fluentui/react-tabs",
|
|
213
|
+
"commit": "97939a4e5f523b3ef05c815f909819701eee92ea",
|
|
214
|
+
"comment": "Added aria-selected"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"author": "gcox@microsoft.com",
|
|
218
|
+
"package": "@fluentui/react-tabs",
|
|
219
|
+
"commit": "c2562b5382305152a09402a367ec853d603438e7",
|
|
220
|
+
"comment": "Updated to use correct pseudo-elements"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"author": "gcox@microsoft.com",
|
|
224
|
+
"package": "@fluentui/react-tabs",
|
|
225
|
+
"commit": "6c764b820241483c1a9a6e225f758a4c8d4b060e",
|
|
226
|
+
"comment": "Updated to use tokens"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"author": "gcox@microsoft.com",
|
|
230
|
+
"package": "@fluentui/react-tabs",
|
|
231
|
+
"commit": "55e2b1b53e81efa510a5bc15c6ab0398b52ace7f",
|
|
232
|
+
"comment": "Removed unnecessary width and height from indicators"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"author": "gcox@microsoft.com",
|
|
236
|
+
"package": "@fluentui/react-tabs",
|
|
237
|
+
"commit": "17ed5008371df7344540af658209840985dc4754",
|
|
238
|
+
"comment": "Allow tab to animate when value is numeric zero"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"author": "beachball",
|
|
242
|
+
"package": "@fluentui/react-tabs",
|
|
243
|
+
"comment": "Bump @fluentui/react-context-selector to v9.0.0-rc.7",
|
|
244
|
+
"commit": "65f94192ed3b2cde7e52b9c7e12d6f38b81965dd"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"author": "beachball",
|
|
248
|
+
"package": "@fluentui/react-tabs",
|
|
249
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-rc.8",
|
|
250
|
+
"commit": "65f94192ed3b2cde7e52b9c7e12d6f38b81965dd"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"author": "beachball",
|
|
254
|
+
"package": "@fluentui/react-tabs",
|
|
255
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-rc.6",
|
|
256
|
+
"commit": "65f94192ed3b2cde7e52b9c7e12d6f38b81965dd"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"author": "beachball",
|
|
260
|
+
"package": "@fluentui/react-tabs",
|
|
261
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-rc.7",
|
|
262
|
+
"commit": "65f94192ed3b2cde7e52b9c7e12d6f38b81965dd"
|
|
263
|
+
}
|
|
264
|
+
],
|
|
265
|
+
"none": [
|
|
266
|
+
{
|
|
267
|
+
"author": "tristan.watanabe@gmail.com",
|
|
268
|
+
"package": "@fluentui/react-tabs",
|
|
269
|
+
"commit": "f1c470c25de01baef3180067fa99dcc10ec9ebd5",
|
|
270
|
+
"comment": "react-tabs: Move to new common folder."
|
|
271
|
+
}
|
|
272
|
+
]
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"date": "Mon, 25 Apr 2022 09:32:15 GMT",
|
|
277
|
+
"tag": "@fluentui/react-tabs_v9.0.0-beta.10",
|
|
278
|
+
"version": "9.0.0-beta.10",
|
|
279
|
+
"comments": {
|
|
280
|
+
"prerelease": [
|
|
281
|
+
{
|
|
282
|
+
"author": "gcox@microsoft.com",
|
|
283
|
+
"package": "@fluentui/react-tabs",
|
|
284
|
+
"commit": "9b558cf266817f6499fece14e71bd90e98385a6b",
|
|
285
|
+
"comment": "Added styles to support future overflow calcs"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"author": "beachball",
|
|
289
|
+
"package": "@fluentui/react-tabs",
|
|
290
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-rc.7",
|
|
291
|
+
"commit": "02ca1d3c198452c1693067f5f18bd01b2ed5d6e6"
|
|
292
|
+
}
|
|
293
|
+
]
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"date": "Tue, 19 Apr 2022 19:16:56 GMT",
|
|
6
298
|
"tag": "@fluentui/react-tabs_v9.0.0-beta.9",
|
|
7
299
|
"version": "9.0.0-beta.9",
|
|
8
300
|
"comments": {
|
|
@@ -65,31 +357,31 @@
|
|
|
65
357
|
"author": "beachball",
|
|
66
358
|
"package": "@fluentui/react-tabs",
|
|
67
359
|
"comment": "Bump @fluentui/react-context-selector to v9.0.0-rc.6",
|
|
68
|
-
"commit": "
|
|
360
|
+
"commit": "f94b48c825ca8c8b2e3b6755bdd29fe15c7d435d"
|
|
69
361
|
},
|
|
70
362
|
{
|
|
71
363
|
"author": "beachball",
|
|
72
364
|
"package": "@fluentui/react-tabs",
|
|
73
365
|
"comment": "Bump @fluentui/react-tabster to v9.0.0-rc.6",
|
|
74
|
-
"commit": "
|
|
366
|
+
"commit": "f94b48c825ca8c8b2e3b6755bdd29fe15c7d435d"
|
|
75
367
|
},
|
|
76
368
|
{
|
|
77
369
|
"author": "beachball",
|
|
78
370
|
"package": "@fluentui/react-tabs",
|
|
79
371
|
"comment": "Bump @fluentui/react-theme to v9.0.0-rc.5",
|
|
80
|
-
"commit": "
|
|
372
|
+
"commit": "f94b48c825ca8c8b2e3b6755bdd29fe15c7d435d"
|
|
81
373
|
},
|
|
82
374
|
{
|
|
83
375
|
"author": "beachball",
|
|
84
376
|
"package": "@fluentui/react-tabs",
|
|
85
377
|
"comment": "Bump @fluentui/react-utilities to v9.0.0-rc.6",
|
|
86
|
-
"commit": "
|
|
378
|
+
"commit": "f94b48c825ca8c8b2e3b6755bdd29fe15c7d435d"
|
|
87
379
|
},
|
|
88
380
|
{
|
|
89
381
|
"author": "beachball",
|
|
90
382
|
"package": "@fluentui/react-tabs",
|
|
91
383
|
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.4",
|
|
92
|
-
"commit": "
|
|
384
|
+
"commit": "f94b48c825ca8c8b2e3b6755bdd29fe15c7d435d"
|
|
93
385
|
}
|
|
94
386
|
],
|
|
95
387
|
"none": [
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,97 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-tabs
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 26 May 2022 21:00:06 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [9.0.0-rc.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabs_v9.0.0-rc.4)
|
|
8
|
+
|
|
9
|
+
Thu, 26 May 2022 21:00:06 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tabs_v9.0.0-rc.3..@fluentui/react-tabs_v9.0.0-rc.4)
|
|
11
|
+
|
|
12
|
+
### Changes
|
|
13
|
+
|
|
14
|
+
- Update README.md ([PR #23200](https://github.com/microsoft/fluentui/pull/23200) by gcox@microsoft.com)
|
|
15
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.12 ([PR #23267](https://github.com/microsoft/fluentui/pull/23267) by beachball)
|
|
16
|
+
|
|
17
|
+
## [9.0.0-rc.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabs_v9.0.0-rc.3)
|
|
18
|
+
|
|
19
|
+
Mon, 23 May 2022 18:56:49 GMT
|
|
20
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tabs_v9.0.0-rc.2..@fluentui/react-tabs_v9.0.0-rc.3)
|
|
21
|
+
|
|
22
|
+
### Changes
|
|
23
|
+
|
|
24
|
+
- Removing commons type from Label. ([PR #23092](https://github.com/microsoft/fluentui/pull/23092) by esteban.230@hotmail.com)
|
|
25
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.11 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
|
|
26
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.9 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
|
|
27
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.7 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
|
|
28
|
+
|
|
29
|
+
## [9.0.0-rc.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabs_v9.0.0-rc.2)
|
|
30
|
+
|
|
31
|
+
Mon, 23 May 2022 12:13:48 GMT
|
|
32
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tabs_v9.0.0-beta.12..@fluentui/react-tabs_v9.0.0-rc.2)
|
|
33
|
+
|
|
34
|
+
### Changes
|
|
35
|
+
|
|
36
|
+
- Removed TabListCommons and TabCommons types ([PR #22922](https://github.com/microsoft/fluentui/pull/22922) by gcox@microsoft.com)
|
|
37
|
+
- Removed flexgap from useTabStyles ([PR #22920](https://github.com/microsoft/fluentui/pull/22920) by gcox@microsoft.com)
|
|
38
|
+
- Updated to focus on current selected tab ([PR #22900](https://github.com/microsoft/fluentui/pull/22900) by gcox@microsoft.com)
|
|
39
|
+
- Used background rather than border ([PR #22869](https://github.com/microsoft/fluentui/pull/22869) by gcox@microsoft.com)
|
|
40
|
+
- Moved react-tabs to stable and rc.1 ([PR #22923](https://github.com/microsoft/fluentui/pull/22923) by gcox@microsoft.com)
|
|
41
|
+
- feat: ship rolluped only dts ([PR #22828](https://github.com/microsoft/fluentui/pull/22828) by martinhochel@microsoft.com)
|
|
42
|
+
- chore: Update Griffel to latest version ([PR #22894](https://github.com/microsoft/fluentui/pull/22894) by olfedias@microsoft.com)
|
|
43
|
+
- Remove overflow to allow focus outline to display ([PR #22897](https://github.com/microsoft/fluentui/pull/22897) by gcox@microsoft.com)
|
|
44
|
+
- chore: Update Griffel to latest version ([PR #23029](https://github.com/microsoft/fluentui/pull/23029) by olfedias@microsoft.com)
|
|
45
|
+
- Add aria-label for icon only story ([PR #22898](https://github.com/microsoft/fluentui/pull/22898) by gcox@microsoft.com)
|
|
46
|
+
- Bump @fluentui/react-context-selector to v9.0.0-rc.9 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
|
|
47
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.10 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
|
|
48
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.8 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
|
|
49
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.9 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
|
|
50
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.6 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
|
|
51
|
+
|
|
52
|
+
## [9.0.0-beta.12](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabs_v9.0.0-beta.12)
|
|
53
|
+
|
|
54
|
+
Thu, 05 May 2022 18:26:30 GMT
|
|
55
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tabs_v9.0.0-beta.11..@fluentui/react-tabs_v9.0.0-beta.12)
|
|
56
|
+
|
|
57
|
+
### Changes
|
|
58
|
+
|
|
59
|
+
- Bump @fluentui/react-context-selector to v9.0.0-rc.8 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
|
|
60
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.9 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
|
|
61
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.7 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
|
|
62
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.8 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
|
|
63
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.5 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
|
|
64
|
+
|
|
65
|
+
## [9.0.0-beta.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabs_v9.0.0-beta.11)
|
|
66
|
+
|
|
67
|
+
Wed, 04 May 2022 13:26:52 GMT
|
|
68
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tabs_v9.0.0-beta.10..@fluentui/react-tabs_v9.0.0-beta.11)
|
|
69
|
+
|
|
70
|
+
### Changes
|
|
71
|
+
|
|
72
|
+
- Added aria-selected ([PR #22742](https://github.com/microsoft/fluentui/pull/22742) by gcox@microsoft.com)
|
|
73
|
+
- Updated to use correct pseudo-elements ([PR #22768](https://github.com/microsoft/fluentui/pull/22768) by gcox@microsoft.com)
|
|
74
|
+
- Updated to use tokens ([PR #22717](https://github.com/microsoft/fluentui/pull/22717) by gcox@microsoft.com)
|
|
75
|
+
- Removed unnecessary width and height from indicators ([PR #22744](https://github.com/microsoft/fluentui/pull/22744) by gcox@microsoft.com)
|
|
76
|
+
- Allow tab to animate when value is numeric zero ([PR #22754](https://github.com/microsoft/fluentui/pull/22754) by gcox@microsoft.com)
|
|
77
|
+
- Bump @fluentui/react-context-selector to v9.0.0-rc.7 ([PR #22786](https://github.com/microsoft/fluentui/pull/22786) by beachball)
|
|
78
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.8 ([PR #22786](https://github.com/microsoft/fluentui/pull/22786) by beachball)
|
|
79
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.6 ([PR #22786](https://github.com/microsoft/fluentui/pull/22786) by beachball)
|
|
80
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.7 ([PR #22786](https://github.com/microsoft/fluentui/pull/22786) by beachball)
|
|
81
|
+
|
|
82
|
+
## [9.0.0-beta.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabs_v9.0.0-beta.10)
|
|
83
|
+
|
|
84
|
+
Mon, 25 Apr 2022 09:32:15 GMT
|
|
85
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tabs_v9.0.0-beta.9..@fluentui/react-tabs_v9.0.0-beta.10)
|
|
86
|
+
|
|
87
|
+
### Changes
|
|
88
|
+
|
|
89
|
+
- Added styles to support future overflow calcs ([PR #22548](https://github.com/microsoft/fluentui/pull/22548) by gcox@microsoft.com)
|
|
90
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.7 ([PR #22601](https://github.com/microsoft/fluentui/pull/22601) by beachball)
|
|
91
|
+
|
|
7
92
|
## [9.0.0-beta.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabs_v9.0.0-beta.9)
|
|
8
93
|
|
|
9
|
-
Tue, 19 Apr 2022 19:
|
|
94
|
+
Tue, 19 Apr 2022 19:16:56 GMT
|
|
10
95
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tabs_v9.0.0-beta.8..@fluentui/react-tabs_v9.0.0-beta.9)
|
|
11
96
|
|
|
12
97
|
### Changes
|
|
@@ -20,15 +105,15 @@ Tue, 19 Apr 2022 19:14:06 GMT
|
|
|
20
105
|
- react-tabs fit and finish ([PR #22225](https://github.com/microsoft/fluentui/pull/22225) by gcox@microsoft.com)
|
|
21
106
|
- Set subtle tab background to subtle background tokens ([PR #22346](https://github.com/microsoft/fluentui/pull/22346) by gcox@microsoft.com)
|
|
22
107
|
- Updated to decrease gap of small vertical tab per figma change ([PR #22335](https://github.com/microsoft/fluentui/pull/22335) by gcox@microsoft.com)
|
|
23
|
-
- Bump @fluentui/react-context-selector to v9.0.0-rc.6 ([PR #
|
|
24
|
-
- Bump @fluentui/react-tabster to v9.0.0-rc.6 ([PR #
|
|
25
|
-
- Bump @fluentui/react-theme to v9.0.0-rc.5 ([PR #
|
|
26
|
-
- Bump @fluentui/react-utilities to v9.0.0-rc.6 ([PR #
|
|
27
|
-
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.4 ([PR #
|
|
108
|
+
- Bump @fluentui/react-context-selector to v9.0.0-rc.6 ([PR #21995](https://github.com/microsoft/fluentui/pull/21995) by beachball)
|
|
109
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.6 ([PR #21995](https://github.com/microsoft/fluentui/pull/21995) by beachball)
|
|
110
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.5 ([PR #21995](https://github.com/microsoft/fluentui/pull/21995) by beachball)
|
|
111
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.6 ([PR #21995](https://github.com/microsoft/fluentui/pull/21995) by beachball)
|
|
112
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.4 ([PR #21995](https://github.com/microsoft/fluentui/pull/21995) by beachball)
|
|
28
113
|
|
|
29
114
|
## [9.0.0-beta.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabs_v9.0.0-beta.8)
|
|
30
115
|
|
|
31
|
-
Fri, 04 Mar 2022 05:17:30 GMT
|
|
116
|
+
Fri, 04 Mar 2022 05:17:30 GMT
|
|
32
117
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tabs_v9.0.0-beta.7..@fluentui/react-tabs_v9.0.0-beta.8)
|
|
33
118
|
|
|
34
119
|
### Changes
|
|
@@ -41,7 +126,7 @@ Fri, 04 Mar 2022 05:17:30 GMT
|
|
|
41
126
|
|
|
42
127
|
## [9.0.0-beta.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabs_v9.0.0-beta.7)
|
|
43
128
|
|
|
44
|
-
Tue, 01 Mar 2022 02:17:39 GMT
|
|
129
|
+
Tue, 01 Mar 2022 02:17:39 GMT
|
|
45
130
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tabs_v9.0.0-beta.6..@fluentui/react-tabs_v9.0.0-beta.7)
|
|
46
131
|
|
|
47
132
|
### Changes
|
|
@@ -53,7 +138,7 @@ Tue, 01 Mar 2022 02:17:39 GMT
|
|
|
53
138
|
|
|
54
139
|
## [9.0.0-beta.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabs_v9.0.0-beta.6)
|
|
55
140
|
|
|
56
|
-
Fri, 18 Feb 2022 13:35:35 GMT
|
|
141
|
+
Fri, 18 Feb 2022 13:35:35 GMT
|
|
57
142
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tabs_v9.0.0-beta.4..@fluentui/react-tabs_v9.0.0-beta.6)
|
|
58
143
|
|
|
59
144
|
### Changes
|
package/README.md
CHANGED
|
@@ -2,4 +2,50 @@
|
|
|
2
2
|
|
|
3
3
|
**React Tabs components for [Fluent UI React](https://developer.microsoft.com/en-us/fluentui)**
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
- A `TabList` provides single selection from a list of tabs.
|
|
6
|
+
- When a `Tab` is selected, the content associated with the selected tab is displayed and other content is hidden.
|
|
7
|
+
- A `TabList` has options to control how tabs are displayed:
|
|
8
|
+
- horizontal or vertical
|
|
9
|
+
- transparent or subtle appearance
|
|
10
|
+
- small or medium size tabs
|
|
11
|
+
- Each `Tab` typically contains a text header and often includes an icon.
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
To display tabs, declare a `TabList` with a list of `Tab` components as children.
|
|
16
|
+
|
|
17
|
+
Text is typically used within each tab, but you can place any content you like.
|
|
18
|
+
You can add an icon to a tab through the `icon` property.
|
|
19
|
+
|
|
20
|
+
Each `Tab` requires a unique `value`.
|
|
21
|
+
The value is passed as part of the data parameter when a tab is clicked and the `onTabSelect` event is raised.
|
|
22
|
+
The `selectedValue` property allows you to control the selected tab.
|
|
23
|
+
|
|
24
|
+
```tsx
|
|
25
|
+
import { SelectTabData, SelectTabEvent, TabList, Tab } from '@fluentui/react-components';
|
|
26
|
+
import { CalendarMonthRegular } from '@fluentui/react-icons';
|
|
27
|
+
|
|
28
|
+
export const TabExample = () => {
|
|
29
|
+
const [selectedValue, setSelectedValue] = React.useState<TabValue>('conditions');
|
|
30
|
+
|
|
31
|
+
const onTabSelect = (event: SelectTabEvent, data: SelectTabData) => {
|
|
32
|
+
console.log(`The ${data.value} tab was selected`);
|
|
33
|
+
setSelectedValue(data.value);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
return (
|
|
37
|
+
<TabList selectedValue={selectedValue} onTabSelect={onTabSelect}>
|
|
38
|
+
<Tab value="tab1">First Tab</Tab>
|
|
39
|
+
<Tab value="tab2" icon={<CalendarMonthRegular />}>
|
|
40
|
+
Second Tab
|
|
41
|
+
</Tab>
|
|
42
|
+
<Tab value="tab3">Third Tab</Tab>
|
|
43
|
+
<Tab value="tab4">Fourth Tab</Tab>
|
|
44
|
+
</TabList>
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### More information
|
|
50
|
+
|
|
51
|
+
See [SPEC.md](./Spec.md) to learn more specifics how the `TabList` and `Tab` were built.
|
|
@@ -33,67 +33,16 @@ export declare type SelectTabEventHandler = (event: SelectTabEvent, data: Select
|
|
|
33
33
|
*/
|
|
34
34
|
export declare const Tab: ForwardRefComponent<TabProps>;
|
|
35
35
|
|
|
36
|
-
export declare const tabClassName: string;
|
|
37
|
-
|
|
38
36
|
export declare const tabClassNames: SlotClassNames<TabSlots>;
|
|
39
37
|
|
|
40
|
-
declare type TabCommons = {
|
|
41
|
-
/**
|
|
42
|
-
* A tab can be set to disable interaction.
|
|
43
|
-
* @default false
|
|
44
|
-
*/
|
|
45
|
-
disabled?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* The value that identifies this tab when selected.
|
|
48
|
-
*/
|
|
49
|
-
value: TabValue;
|
|
50
|
-
};
|
|
51
|
-
|
|
52
38
|
/**
|
|
53
39
|
* A tab list provides single selection from a set of tabs.
|
|
54
40
|
*/
|
|
55
41
|
export declare const TabList: ForwardRefComponent<TabListProps>;
|
|
56
42
|
|
|
57
|
-
export declare const tabListClassName: string;
|
|
58
|
-
|
|
59
43
|
export declare const tabListClassNames: SlotClassNames<TabListSlots>;
|
|
60
44
|
|
|
61
|
-
declare type
|
|
62
|
-
/**
|
|
63
|
-
* A tab list can supports 'transparent' and 'subtle' appearance.
|
|
64
|
-
*- 'subtle': Minimizes emphasis to blend into the background until hovered or focused.
|
|
65
|
-
*- 'transparent': No background and border styling
|
|
66
|
-
* The appearance affects each of the contained tabs.
|
|
67
|
-
* @default 'transparent'
|
|
68
|
-
*/
|
|
69
|
-
appearance?: 'transparent' | 'subtle';
|
|
70
|
-
/**
|
|
71
|
-
* A tab list can be set to disable interaction.
|
|
72
|
-
* @default false
|
|
73
|
-
*/
|
|
74
|
-
disabled?: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* Raised when a tab is selected.
|
|
77
|
-
*/
|
|
78
|
-
onTabSelect?: SelectTabEventHandler;
|
|
79
|
-
/**
|
|
80
|
-
* The value of the currently selected tab.
|
|
81
|
-
*/
|
|
82
|
-
selectedValue?: TabValue;
|
|
83
|
-
/**
|
|
84
|
-
* A tab list can be either 'small' or 'medium' size.
|
|
85
|
-
* The size affects each of the contained tabs.
|
|
86
|
-
* @default 'medium'
|
|
87
|
-
*/
|
|
88
|
-
size?: 'small' | 'medium';
|
|
89
|
-
/**
|
|
90
|
-
* A tab list can arrange its tabs vertically.
|
|
91
|
-
* @default false
|
|
92
|
-
*/
|
|
93
|
-
vertical?: boolean;
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
export declare type TabListContextValue = Pick<TabListCommons, 'onTabSelect' | 'selectedValue'> & Required<Pick<TabListCommons, 'appearance' | 'disabled' | 'size' | 'vertical'>> & {
|
|
45
|
+
export declare type TabListContextValue = Pick<TabListProps, 'onTabSelect' | 'selectedValue'> & Required<Pick<TabListProps, 'appearance' | 'disabled' | 'size' | 'vertical'>> & {
|
|
97
46
|
/** A callback to allow a tab to register itself with the tab list. */
|
|
98
47
|
onRegister: RegisterTabEventHandler;
|
|
99
48
|
/** A callback to allow a tab to unregister itself with the tab list. */
|
|
@@ -125,12 +74,44 @@ export declare type TabListContextValues = {
|
|
|
125
74
|
/**
|
|
126
75
|
* TabList Props
|
|
127
76
|
*/
|
|
128
|
-
export declare type TabListProps = ComponentProps<TabListSlots> &
|
|
77
|
+
export declare type TabListProps = ComponentProps<TabListSlots> & {
|
|
78
|
+
/**
|
|
79
|
+
* A tab list can supports 'transparent' and 'subtle' appearance.
|
|
80
|
+
*- 'subtle': Minimizes emphasis to blend into the background until hovered or focused.
|
|
81
|
+
*- 'transparent': No background and border styling
|
|
82
|
+
* The appearance affects each of the contained tabs.
|
|
83
|
+
* @default 'transparent'
|
|
84
|
+
*/
|
|
85
|
+
appearance?: 'transparent' | 'subtle';
|
|
129
86
|
/**
|
|
130
87
|
* The value of the tab to be selected by default.
|
|
131
88
|
* Typically useful when the selectedValue is uncontrolled.
|
|
132
89
|
*/
|
|
133
90
|
defaultSelectedValue?: TabValue;
|
|
91
|
+
/**
|
|
92
|
+
* A tab list can be set to disable interaction.
|
|
93
|
+
* @default false
|
|
94
|
+
*/
|
|
95
|
+
disabled?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Raised when a tab is selected.
|
|
98
|
+
*/
|
|
99
|
+
onTabSelect?: SelectTabEventHandler;
|
|
100
|
+
/**
|
|
101
|
+
* The value of the currently selected tab.
|
|
102
|
+
*/
|
|
103
|
+
selectedValue?: TabValue;
|
|
104
|
+
/**
|
|
105
|
+
* A tab list can be either 'small' or 'medium' size.
|
|
106
|
+
* The size affects each of the contained tabs.
|
|
107
|
+
* @default 'medium'
|
|
108
|
+
*/
|
|
109
|
+
size?: 'small' | 'medium';
|
|
110
|
+
/**
|
|
111
|
+
* A tab list can arrange its tabs vertically.
|
|
112
|
+
* @default false
|
|
113
|
+
*/
|
|
114
|
+
vertical?: boolean;
|
|
134
115
|
};
|
|
135
116
|
|
|
136
117
|
export declare type TabListSlots = {
|
|
@@ -148,7 +129,17 @@ export declare type TabListState = ComponentState<Required<TabListSlots>> & TabL
|
|
|
148
129
|
/**
|
|
149
130
|
* Tab Props
|
|
150
131
|
*/
|
|
151
|
-
export declare type TabProps = ComponentProps<Partial<TabSlots>> &
|
|
132
|
+
export declare type TabProps = ComponentProps<Partial<TabSlots>> & {
|
|
133
|
+
/**
|
|
134
|
+
* A tab can be set to disable interaction.
|
|
135
|
+
* @default false
|
|
136
|
+
*/
|
|
137
|
+
disabled?: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* The value that identifies this tab when selected.
|
|
140
|
+
*/
|
|
141
|
+
value: TabValue;
|
|
142
|
+
};
|
|
152
143
|
|
|
153
144
|
export declare type TabRegisterData = {
|
|
154
145
|
/**
|
|
@@ -180,7 +171,7 @@ export declare type TabSlots = {
|
|
|
180
171
|
/**
|
|
181
172
|
* State used in rendering Tab
|
|
182
173
|
*/
|
|
183
|
-
export declare type TabState = ComponentState<TabSlots> &
|
|
174
|
+
export declare type TabState = ComponentState<TabSlots> & Pick<TabProps, 'value'> & Required<Pick<TabProps, 'disabled'>> & {
|
|
184
175
|
/**
|
|
185
176
|
* A tab supports 'transparent' and 'subtle' appearance.
|
|
186
177
|
*/
|