@atlaskit/tabs 13.4.4 → 13.4.6
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.md +53 -40
- package/dist/cjs/components/tab-list.js +14 -13
- package/dist/cjs/components/tab-panel.js +16 -7
- package/dist/cjs/components/tab.js +25 -7
- package/dist/cjs/components/tabs.js +15 -17
- package/dist/cjs/internal/styles.js +2 -2
- package/dist/es2019/components/tab-list.js +12 -12
- package/dist/es2019/components/tab-panel.js +17 -6
- package/dist/es2019/components/tab.js +27 -7
- package/dist/es2019/components/tabs.js +14 -16
- package/dist/esm/components/tab-list.js +15 -14
- package/dist/esm/components/tab-panel.js +16 -6
- package/dist/esm/components/tab.js +26 -7
- package/dist/esm/components/tabs.js +16 -18
- package/dist/esm/internal/styles.js +2 -2
- package/dist/types/components/tab-list.d.ts +1 -1
- package/dist/types-ts4.5/components/tab-list.d.ts +1 -1
- package/package.json +5 -4
- package/report.api.md +1 -1
- package/tmp/api-report-tmp.d.ts +1 -1
- package/dist/types/performance/examples.d.ts +0 -24
- package/dist/types-ts4.5/performance/examples.d.ts +0 -24
package/CHANGELOG.md
CHANGED
|
@@ -1,34 +1,47 @@
|
|
|
1
1
|
# @atlaskit/tabs
|
|
2
2
|
|
|
3
|
+
## 13.4.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#39749](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39749) [`e6b69f455c3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e6b69f455c3) - Connect yarn changeset to packages, upgrade adf-schema
|
|
8
|
+
|
|
9
|
+
## 13.4.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#38753](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38753) [`e7f99a81404`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e7f99a81404) - Update to use `xcss` where possible. There should be no difference in behaviour.
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 13.4.4
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
6
19
|
|
|
7
|
-
- [`56b444b56a8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56b444b56a8) - Fix a bug where text descenders were cut off at high zoom levels on Windows
|
|
20
|
+
- [#38209](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38209) [`56b444b56a8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56b444b56a8) - Fix a bug where text descenders were cut off at high zoom levels on Windows
|
|
8
21
|
|
|
9
22
|
## 13.4.3
|
|
10
23
|
|
|
11
24
|
### Patch Changes
|
|
12
25
|
|
|
13
|
-
- [`599bfe90ee3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/599bfe90ee3) - Internal change to use shape tokens. There is no expected visual change.
|
|
26
|
+
- [#35441](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35441) [`599bfe90ee3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/599bfe90ee3) - Internal change to use shape tokens. There is no expected visual change.
|
|
14
27
|
|
|
15
28
|
## 13.4.2
|
|
16
29
|
|
|
17
30
|
### Patch Changes
|
|
18
31
|
|
|
19
|
-
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
32
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793) [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
20
33
|
|
|
21
34
|
## 13.4.1
|
|
22
35
|
|
|
23
36
|
### Patch Changes
|
|
24
37
|
|
|
25
|
-
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
38
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649) [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
26
39
|
|
|
27
40
|
## 13.4.0
|
|
28
41
|
|
|
29
42
|
### Minor Changes
|
|
30
43
|
|
|
31
|
-
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
44
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
32
45
|
|
|
33
46
|
### Patch Changes
|
|
34
47
|
|
|
@@ -38,7 +51,7 @@
|
|
|
38
51
|
|
|
39
52
|
### Patch Changes
|
|
40
53
|
|
|
41
|
-
- [`7156bd737b4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7156bd737b4) - Internal changes to some tokens. Should be a no-op.
|
|
54
|
+
- [#30849](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30849) [`7156bd737b4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7156bd737b4) - Internal changes to some tokens. Should be a no-op.
|
|
42
55
|
|
|
43
56
|
## 13.3.12
|
|
44
57
|
|
|
@@ -56,14 +69,14 @@
|
|
|
56
69
|
|
|
57
70
|
### Patch Changes
|
|
58
71
|
|
|
59
|
-
- [`eadbf13d8c0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/eadbf13d8c0) - Updated usages of `Text`, `Box`, `Stack`, and `Inline` primitives to reflect their updated APIs. There are no visual or behaviour changes.
|
|
72
|
+
- [#27891](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27891) [`eadbf13d8c0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/eadbf13d8c0) - Updated usages of `Text`, `Box`, `Stack`, and `Inline` primitives to reflect their updated APIs. There are no visual or behaviour changes.
|
|
60
73
|
- Updated dependencies
|
|
61
74
|
|
|
62
75
|
## 13.3.9
|
|
63
76
|
|
|
64
77
|
### Patch Changes
|
|
65
78
|
|
|
66
|
-
- [`b0f6dd0bc35`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b0f6dd0bc35) - Updated to use typography tokens. There is no expected behaviour or visual change.
|
|
79
|
+
- [#28064](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28064) [`b0f6dd0bc35`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b0f6dd0bc35) - Updated to use typography tokens. There is no expected behaviour or visual change.
|
|
67
80
|
|
|
68
81
|
## 13.3.8
|
|
69
82
|
|
|
@@ -87,38 +100,38 @@
|
|
|
87
100
|
|
|
88
101
|
### Patch Changes
|
|
89
102
|
|
|
90
|
-
- [`0637c50e226`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0637c50e226) - Updated Tabs compnent to prefer to use focus-visible over focus css selectors.
|
|
103
|
+
- [#25984](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/25984) [`0637c50e226`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0637c50e226) - Updated Tabs compnent to prefer to use focus-visible over focus css selectors.
|
|
91
104
|
|
|
92
105
|
## 13.3.4
|
|
93
106
|
|
|
94
107
|
### Patch Changes
|
|
95
108
|
|
|
96
|
-
- [`e35fc41dc33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e35fc41dc33) - Internal change to use updated primtive spacing prop values. No expected behaviour change.
|
|
109
|
+
- [#25860](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/25860) [`e35fc41dc33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e35fc41dc33) - Internal change to use updated primtive spacing prop values. No expected behaviour change.
|
|
97
110
|
- Updated dependencies
|
|
98
111
|
|
|
99
112
|
## 13.3.3
|
|
100
113
|
|
|
101
114
|
### Patch Changes
|
|
102
115
|
|
|
103
|
-
- [`9827dcb82b8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9827dcb82b8) - No-op change to introduce spacing tokens to design system components.
|
|
116
|
+
- [#26303](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26303) [`9827dcb82b8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9827dcb82b8) - No-op change to introduce spacing tokens to design system components.
|
|
104
117
|
|
|
105
118
|
## 13.3.2
|
|
106
119
|
|
|
107
120
|
### Patch Changes
|
|
108
121
|
|
|
109
|
-
- [`0d42cd1c926`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0d42cd1c926) - Internal changes to the way styles are applied. There should be no noticeable changes to consumers.
|
|
122
|
+
- [#24710](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24710) [`0d42cd1c926`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0d42cd1c926) - Internal changes to the way styles are applied. There should be no noticeable changes to consumers.
|
|
110
123
|
|
|
111
124
|
## 13.3.1
|
|
112
125
|
|
|
113
126
|
### Patch Changes
|
|
114
127
|
|
|
115
|
-
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
128
|
+
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874) [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
116
129
|
|
|
117
130
|
## 13.3.0
|
|
118
131
|
|
|
119
132
|
### Minor Changes
|
|
120
133
|
|
|
121
|
-
- [`7ec1c1a023f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7ec1c1a023f) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
|
|
134
|
+
- [#24004](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24004) [`7ec1c1a023f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7ec1c1a023f) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
|
|
122
135
|
|
|
123
136
|
### Patch Changes
|
|
124
137
|
|
|
@@ -128,13 +141,13 @@
|
|
|
128
141
|
|
|
129
142
|
### Patch Changes
|
|
130
143
|
|
|
131
|
-
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
144
|
+
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492) [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
132
145
|
|
|
133
146
|
## 13.2.12
|
|
134
147
|
|
|
135
148
|
### Patch Changes
|
|
136
149
|
|
|
137
|
-
- [`f0056770cce`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f0056770cce) - Internal code change turning on new linting rules.
|
|
150
|
+
- [#23381](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23381) [`f0056770cce`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f0056770cce) - Internal code change turning on new linting rules.
|
|
138
151
|
|
|
139
152
|
## 13.2.11
|
|
140
153
|
|
|
@@ -146,7 +159,7 @@
|
|
|
146
159
|
|
|
147
160
|
### Patch Changes
|
|
148
161
|
|
|
149
|
-
- [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
162
|
+
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650) [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
150
163
|
|
|
151
164
|
## 13.2.9
|
|
152
165
|
|
|
@@ -158,7 +171,7 @@
|
|
|
158
171
|
|
|
159
172
|
### Patch Changes
|
|
160
173
|
|
|
161
|
-
- [`62edf20ab1e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/62edf20ab1e) - Migrates all usage of brand tokens to either selected or information tokens. This change is purely for semantic reasons, there are no visual or behavioural changes.
|
|
174
|
+
- [#19618](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19618) [`62edf20ab1e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/62edf20ab1e) - Migrates all usage of brand tokens to either selected or information tokens. This change is purely for semantic reasons, there are no visual or behavioural changes.
|
|
162
175
|
- Updated dependencies
|
|
163
176
|
|
|
164
177
|
## 13.2.7
|
|
@@ -171,7 +184,7 @@
|
|
|
171
184
|
|
|
172
185
|
### Patch Changes
|
|
173
186
|
|
|
174
|
-
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - The no-unsafe-design-token-usage eslint rule now respects the new token naming conventions when auto-fixing by correctly formatting token ids.
|
|
187
|
+
- [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752) [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - The no-unsafe-design-token-usage eslint rule now respects the new token naming conventions when auto-fixing by correctly formatting token ids.
|
|
175
188
|
- Updated dependencies
|
|
176
189
|
|
|
177
190
|
## 13.2.5
|
|
@@ -184,7 +197,7 @@
|
|
|
184
197
|
|
|
185
198
|
### Patch Changes
|
|
186
199
|
|
|
187
|
-
- [`f460cc7c411`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f460cc7c411) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving bundle size.
|
|
200
|
+
- [#15998](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15998) [`f460cc7c411`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f460cc7c411) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving bundle size.
|
|
188
201
|
- Updated dependencies
|
|
189
202
|
|
|
190
203
|
## 13.2.3
|
|
@@ -209,7 +222,7 @@
|
|
|
209
222
|
|
|
210
223
|
### Minor Changes
|
|
211
224
|
|
|
212
|
-
- [`cc54bf994d6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cc54bf994d6) - Instrumented Tabs with the new theming package, `@atlaskit/tokens`.
|
|
225
|
+
- [#13302](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13302) [`cc54bf994d6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cc54bf994d6) - Instrumented Tabs with the new theming package, `@atlaskit/tokens`.
|
|
213
226
|
|
|
214
227
|
New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha).
|
|
215
228
|
These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes.
|
|
@@ -223,33 +236,33 @@
|
|
|
223
236
|
|
|
224
237
|
### Patch Changes
|
|
225
238
|
|
|
226
|
-
- [`9a84a3ceb82`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9a84a3ceb82) - Internal code changes.
|
|
239
|
+
- [#12837](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12837) [`9a84a3ceb82`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9a84a3ceb82) - Internal code changes.
|
|
227
240
|
- Updated dependencies
|
|
228
241
|
|
|
229
242
|
## 13.1.3
|
|
230
243
|
|
|
231
244
|
### Patch Changes
|
|
232
245
|
|
|
233
|
-
- [`378d1cef00f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/378d1cef00f) - Bump `@atlaskit/theme` to version `^11.3.0`.
|
|
246
|
+
- [#12880](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12880) [`378d1cef00f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/378d1cef00f) - Bump `@atlaskit/theme` to version `^11.3.0`.
|
|
234
247
|
|
|
235
248
|
## 13.1.2
|
|
236
249
|
|
|
237
250
|
### Patch Changes
|
|
238
251
|
|
|
239
|
-
- [`ecbf4a3267f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ecbf4a3267f) - [ux] Fix tabs focus ring in the windows high contrast mode
|
|
252
|
+
- [#12328](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12328) [`ecbf4a3267f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ecbf4a3267f) - [ux] Fix tabs focus ring in the windows high contrast mode
|
|
240
253
|
- Updated dependencies
|
|
241
254
|
|
|
242
255
|
## 13.1.1
|
|
243
256
|
|
|
244
257
|
### Patch Changes
|
|
245
258
|
|
|
246
|
-
- [`d6f7ff383cf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6f7ff383cf) - Updates to development dependency `storybook-addon-performance`
|
|
259
|
+
- [#12167](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12167) [`d6f7ff383cf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6f7ff383cf) - Updates to development dependency `storybook-addon-performance`
|
|
247
260
|
|
|
248
261
|
## 13.1.0
|
|
249
262
|
|
|
250
263
|
### Minor Changes
|
|
251
264
|
|
|
252
|
-
- [`4f40ecb4471`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4f40ecb4471) - [ux] Added `Home` and `End` keys handlers for tablist. Changed arrow keys handlers to make tabs cycled. Now when you press the left arrow key on the first tab the last tab will be selected and when you press right arrow key on the last tab the first tab will be selected
|
|
265
|
+
- [#10569](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10569) [`4f40ecb4471`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4f40ecb4471) - [ux] Added `Home` and `End` keys handlers for tablist. Changed arrow keys handlers to make tabs cycled. Now when you press the left arrow key on the first tab the last tab will be selected and when you press right arrow key on the last tab the first tab will be selected
|
|
253
266
|
|
|
254
267
|
### Patch Changes
|
|
255
268
|
|
|
@@ -265,7 +278,7 @@
|
|
|
265
278
|
|
|
266
279
|
### Major Changes
|
|
267
280
|
|
|
268
|
-
- [`c17fe6144f8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c17fe6144f8) - ### Major Changes
|
|
281
|
+
- [#9756](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9756) [`c17fe6144f8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c17fe6144f8) - ### Major Changes
|
|
269
282
|
|
|
270
283
|
In this version, `Tabs` has had a pretty substantial rewrite. As well as now being dramatically faster and more lightweight, it has a brand new flexible composable API and a bunch of accessibility improvements.
|
|
271
284
|
|
|
@@ -450,7 +463,7 @@
|
|
|
450
463
|
|
|
451
464
|
Run `npx @atlaskit/codemod-cli -h` for more details on usage.
|
|
452
465
|
For Atlassians,
|
|
453
|
-
refer to the [documentation](https://
|
|
466
|
+
refer to the [documentation](https://hello.atlassian.net/wiki/spaces/AF/pages/2627171992/Codemods) for more details on the codemod CLI.
|
|
454
467
|
|
|
455
468
|
### Patch Changes
|
|
456
469
|
|
|
@@ -462,31 +475,31 @@
|
|
|
462
475
|
|
|
463
476
|
### Patch Changes
|
|
464
477
|
|
|
465
|
-
- [`79c23df6340`](https://bitbucket.org/atlassian/atlassian-frontend/commits/79c23df6340) - Use injected package name and version for analytics instead of version.json.
|
|
478
|
+
- [#8644](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8644) [`79c23df6340`](https://bitbucket.org/atlassian/atlassian-frontend/commits/79c23df6340) - Use injected package name and version for analytics instead of version.json.
|
|
466
479
|
|
|
467
480
|
## 12.1.2
|
|
468
481
|
|
|
469
482
|
### Patch Changes
|
|
470
483
|
|
|
471
|
-
- [`e795d0a849`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e795d0a849) - The `Tabs` component now uses emotion instead of styled-components for it's internal styling.
|
|
484
|
+
- [#6930](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/6930) [`e795d0a849`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e795d0a849) - The `Tabs` component now uses emotion instead of styled-components for it's internal styling.
|
|
472
485
|
|
|
473
486
|
## 12.1.1
|
|
474
487
|
|
|
475
488
|
### Patch Changes
|
|
476
489
|
|
|
477
|
-
- [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
490
|
+
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857) [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
478
491
|
|
|
479
492
|
## 12.1.0
|
|
480
493
|
|
|
481
494
|
### Minor Changes
|
|
482
495
|
|
|
483
|
-
- [`98c957d889`](https://bitbucket.org/atlassian/atlassian-frontend/commits/98c957d889) - [ux] Content of tabs will be preserved on the DOM while switching between tabs
|
|
496
|
+
- [#6228](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/6228) [`98c957d889`](https://bitbucket.org/atlassian/atlassian-frontend/commits/98c957d889) - [ux] Content of tabs will be preserved on the DOM while switching between tabs
|
|
484
497
|
|
|
485
498
|
## 12.0.6
|
|
486
499
|
|
|
487
500
|
### Patch Changes
|
|
488
501
|
|
|
489
|
-
- [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
502
|
+
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497) [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
490
503
|
This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
|
|
491
504
|
Also add `typescript` to `devDependencies` to denote version that the package was built with.
|
|
492
505
|
|
|
@@ -500,13 +513,13 @@
|
|
|
500
513
|
|
|
501
514
|
### Patch Changes
|
|
502
515
|
|
|
503
|
-
- [`6360c46009`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6360c46009) - Reenable integration tests for Edge browser
|
|
516
|
+
- [#4707](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4707) [`6360c46009`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6360c46009) - Reenable integration tests for Edge browser
|
|
504
517
|
|
|
505
518
|
## 12.0.3
|
|
506
519
|
|
|
507
520
|
### Patch Changes
|
|
508
521
|
|
|
509
|
-
- [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
522
|
+
- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885) [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
510
523
|
|
|
511
524
|
Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
|
|
512
525
|
to prevent duplicates of tslib being bundled.
|
|
@@ -515,19 +528,19 @@
|
|
|
515
528
|
|
|
516
529
|
### Patch Changes
|
|
517
530
|
|
|
518
|
-
- [`954cc87b62`](https://bitbucket.org/atlassian/atlassian-frontend/commits/954cc87b62) - The readme and package information has been updated to point to the new design system website.
|
|
531
|
+
- [#3293](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3293) [`954cc87b62`](https://bitbucket.org/atlassian/atlassian-frontend/commits/954cc87b62) - The readme and package information has been updated to point to the new design system website.
|
|
519
532
|
|
|
520
533
|
## 12.0.1
|
|
521
534
|
|
|
522
535
|
### Patch Changes
|
|
523
536
|
|
|
524
|
-
- [`db053b24d8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/db053b24d8) - Update all the theme imports to be tree-shakable
|
|
537
|
+
- [#3428](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3428) [`db053b24d8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/db053b24d8) - Update all the theme imports to be tree-shakable
|
|
525
538
|
|
|
526
539
|
## 12.0.0
|
|
527
540
|
|
|
528
541
|
### Major Changes
|
|
529
542
|
|
|
530
|
-
- [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
|
|
543
|
+
- [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335) [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
|
|
531
544
|
For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
532
545
|
|
|
533
546
|
### Patch Changes
|
|
@@ -538,13 +551,13 @@
|
|
|
538
551
|
|
|
539
552
|
### Patch Changes
|
|
540
553
|
|
|
541
|
-
- [`54a9514fcf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54a9514fcf) - Build and supporting files will no longer be published to npm
|
|
554
|
+
- [#2866](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2866) [`54a9514fcf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54a9514fcf) - Build and supporting files will no longer be published to npm
|
|
542
555
|
|
|
543
556
|
## 11.2.10
|
|
544
557
|
|
|
545
558
|
### Patch Changes
|
|
546
559
|
|
|
547
|
-
- [`54d82b49f0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54d82b49f0) - Remove unused dependencies
|
|
560
|
+
- [#2137](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2137) [`54d82b49f0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54d82b49f0) - Remove unused dependencies
|
|
548
561
|
|
|
549
562
|
## 11.2.9
|
|
550
563
|
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _react2 = require("@emotion/react");
|
|
9
|
-
var _dsExplorations = require("@atlaskit/ds-explorations");
|
|
10
9
|
var _components = require("@atlaskit/theme/components");
|
|
11
10
|
var _hooks = require("../hooks");
|
|
12
11
|
var _context = require("../internal/context");
|
|
@@ -14,6 +13,12 @@ var _styles = require("../internal/styles");
|
|
|
14
13
|
var _utils = require("../internal/utils");
|
|
15
14
|
/** @jsx jsx */
|
|
16
15
|
|
|
16
|
+
var baseStyles = (0, _react2.css)({
|
|
17
|
+
display: 'flex',
|
|
18
|
+
padding: "var(--ds-space-0, 0px)",
|
|
19
|
+
position: 'relative'
|
|
20
|
+
});
|
|
21
|
+
|
|
17
22
|
/**
|
|
18
23
|
* __TabList__
|
|
19
24
|
*
|
|
@@ -23,8 +28,8 @@ var _utils = require("../internal/utils");
|
|
|
23
28
|
* - [Code](https://atlassian.design/components/tabs/code)
|
|
24
29
|
* - [Usage](https://atlassian.design/components/tabs/usage)
|
|
25
30
|
*/
|
|
26
|
-
var TabList = function TabList(
|
|
27
|
-
var children =
|
|
31
|
+
var TabList = function TabList(_ref) {
|
|
32
|
+
var children = _ref.children;
|
|
28
33
|
var _useGlobalTheme = (0, _components.useGlobalTheme)(),
|
|
29
34
|
mode = _useGlobalTheme.mode;
|
|
30
35
|
var _useTabList = (0, _hooks.useTabList)(),
|
|
@@ -75,10 +80,10 @@ var TabList = function TabList(props) {
|
|
|
75
80
|
}, [length, selectTabByIndex]);
|
|
76
81
|
|
|
77
82
|
// Memoized so the function isn't recreated each time
|
|
78
|
-
var getTabWithContext = (0, _react.useCallback)(function (
|
|
79
|
-
var tab =
|
|
80
|
-
isSelected =
|
|
81
|
-
index =
|
|
83
|
+
var getTabWithContext = (0, _react.useCallback)(function (_ref2) {
|
|
84
|
+
var tab = _ref2.tab,
|
|
85
|
+
isSelected = _ref2.isSelected,
|
|
86
|
+
index = _ref2.index;
|
|
82
87
|
return (0, _react2.jsx)(_context.TabContext.Provider, {
|
|
83
88
|
value: {
|
|
84
89
|
onClick: function onClick() {
|
|
@@ -102,16 +107,12 @@ var TabList = function TabList(props) {
|
|
|
102
107
|
// The other styles applied through the CSS prop are there for styling children
|
|
103
108
|
// through inheritance. This is important for custom cases that use the useTab(),
|
|
104
109
|
// which applies accessibility atributes that we use as a styling hook.
|
|
105
|
-
(0, _react2.jsx)(
|
|
106
|
-
as: "div",
|
|
110
|
+
(0, _react2.jsx)("div", {
|
|
107
111
|
role: "tablist",
|
|
108
|
-
display: "flex",
|
|
109
|
-
position: "relative",
|
|
110
|
-
padding: "space.0",
|
|
111
112
|
ref: ref
|
|
112
113
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
113
114
|
,
|
|
114
|
-
css: tabListStyles
|
|
115
|
+
css: [baseStyles, tabListStyles]
|
|
115
116
|
}, childrenArray.map(function (child, index) {
|
|
116
117
|
return getTabWithContext({
|
|
117
118
|
tab: child,
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports.default = void 0;
|
|
8
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
7
|
var _react = require("react");
|
|
10
8
|
var _react2 = require("@emotion/react");
|
|
11
|
-
var
|
|
9
|
+
var _primitives = require("@atlaskit/primitives");
|
|
12
10
|
var _hooks = require("../hooks");
|
|
13
11
|
/** @jsx jsx */
|
|
14
12
|
|
|
@@ -25,11 +23,22 @@ var _hooks = require("../hooks");
|
|
|
25
23
|
var TabPanel = function TabPanel(_ref) {
|
|
26
24
|
var children = _ref.children,
|
|
27
25
|
testId = _ref.testId;
|
|
28
|
-
var
|
|
29
|
-
|
|
26
|
+
var _useTabPanel = (0, _hooks.useTabPanel)(),
|
|
27
|
+
role = _useTabPanel.role,
|
|
28
|
+
id = _useTabPanel.id,
|
|
29
|
+
hidden = _useTabPanel.hidden,
|
|
30
|
+
ariaLabelledBy = _useTabPanel['aria-labelledby'],
|
|
31
|
+
onMouseDown = _useTabPanel.onMouseDown,
|
|
32
|
+
tabIndex = _useTabPanel.tabIndex;
|
|
33
|
+
return (0, _react2.jsx)(_primitives.Box, {
|
|
30
34
|
testId: testId,
|
|
31
|
-
|
|
32
|
-
|
|
35
|
+
role: role,
|
|
36
|
+
id: id,
|
|
37
|
+
hidden: hidden,
|
|
38
|
+
"aria-labelledby": ariaLabelledBy,
|
|
39
|
+
onMouseDown: onMouseDown,
|
|
40
|
+
tabIndex: tabIndex
|
|
41
|
+
}, (0, _react2.jsx)(_react.Fragment, null, children));
|
|
33
42
|
};
|
|
34
43
|
var _default = TabPanel;
|
|
35
44
|
exports.default = _default;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports.default = Tab;
|
|
8
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
7
|
var _react = require("@emotion/react");
|
|
10
8
|
var _dsExplorations = require("@atlaskit/ds-explorations");
|
|
9
|
+
var _primitives = require("@atlaskit/primitives");
|
|
11
10
|
var _hooks = require("../hooks");
|
|
12
11
|
/** @jsx jsx */
|
|
13
12
|
|
|
@@ -23,11 +22,30 @@ var _hooks = require("../hooks");
|
|
|
23
22
|
function Tab(_ref) {
|
|
24
23
|
var children = _ref.children,
|
|
25
24
|
testId = _ref.testId;
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
var _useTab = (0, _hooks.useTab)(),
|
|
26
|
+
onClick = _useTab.onClick,
|
|
27
|
+
id = _useTab.id,
|
|
28
|
+
ariaControls = _useTab['aria-controls'],
|
|
29
|
+
ariaPosinset = _useTab['aria-posinset'],
|
|
30
|
+
ariaSelected = _useTab['aria-selected'],
|
|
31
|
+
ariaSetsize = _useTab['aria-setsize'],
|
|
32
|
+
onMouseDown = _useTab.onMouseDown,
|
|
33
|
+
onKeyDown = _useTab.onKeyDown,
|
|
34
|
+
role = _useTab.role,
|
|
35
|
+
tabIndex = _useTab.tabIndex;
|
|
36
|
+
return (0, _react.jsx)(_primitives.Box, {
|
|
37
|
+
testId: testId,
|
|
38
|
+
onClick: onClick,
|
|
39
|
+
id: id,
|
|
40
|
+
"aria-controls": ariaControls,
|
|
41
|
+
"aria-posinset": ariaPosinset,
|
|
42
|
+
"aria-selected": ariaSelected,
|
|
43
|
+
"aria-setsize": ariaSetsize,
|
|
44
|
+
onMouseDown: onMouseDown,
|
|
45
|
+
onKeyDown: onKeyDown,
|
|
46
|
+
role: role,
|
|
47
|
+
tabIndex: tabIndex
|
|
48
|
+
}, (0, _react.jsx)(_dsExplorations.UNSAFE_Text, {
|
|
31
49
|
shouldTruncate: true,
|
|
32
50
|
UNSAFE_style: {
|
|
33
51
|
color: 'inherit'
|
|
@@ -11,17 +11,24 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
11
11
|
var _react = require("react");
|
|
12
12
|
var _react2 = require("@emotion/react");
|
|
13
13
|
var _usePlatformLeafEventHandler = require("@atlaskit/analytics-next/usePlatformLeafEventHandler");
|
|
14
|
-
var _dsExplorations = require("@atlaskit/ds-explorations");
|
|
15
14
|
var _components = require("@atlaskit/theme/components");
|
|
16
15
|
var _context = require("../internal/context");
|
|
17
16
|
var _styles = require("../internal/styles");
|
|
18
17
|
var _utils = require("../internal/utils");
|
|
19
|
-
function ownKeys(
|
|
20
|
-
function _objectSpread(
|
|
18
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /** @jsx jsx */
|
|
20
|
+
var baseStyles = (0, _react2.css)({
|
|
21
|
+
display: 'flex',
|
|
22
|
+
maxWidth: '100%',
|
|
23
|
+
minHeight: '0%',
|
|
24
|
+
flexBasis: '100%',
|
|
25
|
+
flexDirection: 'column',
|
|
26
|
+
flexGrow: 1
|
|
27
|
+
});
|
|
21
28
|
var analyticsAttributes = {
|
|
22
29
|
componentName: 'tabs',
|
|
23
30
|
packageName: "@atlaskit/tabs",
|
|
24
|
-
packageVersion: "13.4.
|
|
31
|
+
packageVersion: "13.4.6"
|
|
25
32
|
};
|
|
26
33
|
var getTabPanelWithContext = function getTabPanelWithContext(_ref) {
|
|
27
34
|
var tabPanel = _ref.tabPanel,
|
|
@@ -118,21 +125,12 @@ var Tabs = function Tabs(props) {
|
|
|
118
125
|
// Only styles that affect the Tabs container itself have been applied via primitives.
|
|
119
126
|
// The other styles applied through the CSS prop are there for styling children
|
|
120
127
|
// through inheritance. This is important for custom cases that use the useTabPanel(),
|
|
121
|
-
// which applies accessibility
|
|
122
|
-
(0, _react2.jsx)(
|
|
123
|
-
|
|
124
|
-
testId: testId,
|
|
125
|
-
display: "flex",
|
|
126
|
-
flexDirection: "column",
|
|
127
|
-
UNSAFE_style: {
|
|
128
|
-
maxWidth: '100%',
|
|
129
|
-
minHeight: '0%',
|
|
130
|
-
flexBasis: '100%',
|
|
131
|
-
flexGrow: 1
|
|
132
|
-
}
|
|
128
|
+
// which applies accessibility attributes that we use as a styling hook.
|
|
129
|
+
(0, _react2.jsx)("div", {
|
|
130
|
+
"data-testid": testId
|
|
133
131
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
134
132
|
,
|
|
135
|
-
css: tabsStyles
|
|
133
|
+
css: [baseStyles, tabsStyles]
|
|
136
134
|
}, (0, _react2.jsx)(_context.TabListContext.Provider, {
|
|
137
135
|
value: {
|
|
138
136
|
selected: selected,
|
|
@@ -8,8 +8,8 @@ exports.getTabsStyles = exports.getTabStyles = exports.getTabListStyles = void 0
|
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _colors = require("./colors");
|
|
11
|
-
function ownKeys(
|
|
12
|
-
function _objectSpread(
|
|
11
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
13
|
var tabLeftRightPadding = "var(--ds-space-100, 8px)";
|
|
14
14
|
var tabTopBottomPadding = "var(--ds-space-050, 4px)";
|
|
15
15
|
// TODO this should probably be `border.width.indicator`
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { Children, createRef, useCallback, useMemo } from 'react';
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
4
|
-
import { UNSAFE_Box as Box } from '@atlaskit/ds-explorations';
|
|
3
|
+
import { css, jsx } from '@emotion/react';
|
|
5
4
|
import { useGlobalTheme } from '@atlaskit/theme/components';
|
|
6
5
|
import { useTabList } from '../hooks';
|
|
7
6
|
import { TabContext } from '../internal/context';
|
|
8
7
|
import { getTabListStyles } from '../internal/styles';
|
|
9
8
|
import { onMouseDownBlur } from '../internal/utils';
|
|
9
|
+
const baseStyles = css({
|
|
10
|
+
display: 'flex',
|
|
11
|
+
padding: "var(--ds-space-0, 0px)",
|
|
12
|
+
position: 'relative'
|
|
13
|
+
});
|
|
14
|
+
|
|
10
15
|
/**
|
|
11
16
|
* __TabList__
|
|
12
17
|
*
|
|
@@ -16,10 +21,9 @@ import { onMouseDownBlur } from '../internal/utils';
|
|
|
16
21
|
* - [Code](https://atlassian.design/components/tabs/code)
|
|
17
22
|
* - [Usage](https://atlassian.design/components/tabs/usage)
|
|
18
23
|
*/
|
|
19
|
-
const TabList =
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} = props;
|
|
24
|
+
const TabList = ({
|
|
25
|
+
children
|
|
26
|
+
}) => {
|
|
23
27
|
const {
|
|
24
28
|
mode
|
|
25
29
|
} = useGlobalTheme();
|
|
@@ -94,16 +98,12 @@ const TabList = props => {
|
|
|
94
98
|
// The other styles applied through the CSS prop are there for styling children
|
|
95
99
|
// through inheritance. This is important for custom cases that use the useTab(),
|
|
96
100
|
// which applies accessibility atributes that we use as a styling hook.
|
|
97
|
-
jsx(
|
|
98
|
-
as: "div",
|
|
101
|
+
jsx("div", {
|
|
99
102
|
role: "tablist",
|
|
100
|
-
display: "flex",
|
|
101
|
-
position: "relative",
|
|
102
|
-
padding: "space.0",
|
|
103
103
|
ref: ref
|
|
104
104
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
105
105
|
,
|
|
106
|
-
css: tabListStyles
|
|
106
|
+
css: [baseStyles, tabListStyles]
|
|
107
107
|
}, childrenArray.map((child, index) => getTabWithContext({
|
|
108
108
|
tab: child,
|
|
109
109
|
index,
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
/** @jsx jsx */
|
|
3
2
|
import { Fragment } from 'react';
|
|
4
3
|
import { jsx } from '@emotion/react';
|
|
5
|
-
import {
|
|
4
|
+
import { Box } from '@atlaskit/primitives';
|
|
6
5
|
import { useTabPanel } from '../hooks';
|
|
7
6
|
// Note this is not being memoized as children is an unstable reference
|
|
8
7
|
/**
|
|
@@ -18,10 +17,22 @@ const TabPanel = ({
|
|
|
18
17
|
children,
|
|
19
18
|
testId
|
|
20
19
|
}) => {
|
|
21
|
-
const
|
|
22
|
-
|
|
20
|
+
const {
|
|
21
|
+
role,
|
|
22
|
+
id,
|
|
23
|
+
hidden,
|
|
24
|
+
'aria-labelledby': ariaLabelledBy,
|
|
25
|
+
onMouseDown,
|
|
26
|
+
tabIndex
|
|
27
|
+
} = useTabPanel();
|
|
28
|
+
return jsx(Box, {
|
|
23
29
|
testId: testId,
|
|
24
|
-
|
|
25
|
-
|
|
30
|
+
role: role,
|
|
31
|
+
id: id,
|
|
32
|
+
hidden: hidden,
|
|
33
|
+
"aria-labelledby": ariaLabelledBy,
|
|
34
|
+
onMouseDown: onMouseDown,
|
|
35
|
+
tabIndex: tabIndex
|
|
36
|
+
}, jsx(Fragment, null, children));
|
|
26
37
|
};
|
|
27
38
|
export default TabPanel;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
/** @jsx jsx */
|
|
3
2
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import {
|
|
3
|
+
import { UNSAFE_Text as Text } from '@atlaskit/ds-explorations';
|
|
4
|
+
import { Box } from '@atlaskit/primitives';
|
|
5
5
|
import { useTab } from '../hooks';
|
|
6
6
|
/**
|
|
7
7
|
* __Tab__
|
|
@@ -16,11 +16,31 @@ export default function Tab({
|
|
|
16
16
|
children,
|
|
17
17
|
testId
|
|
18
18
|
}) {
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
const {
|
|
20
|
+
onClick,
|
|
21
|
+
id,
|
|
22
|
+
'aria-controls': ariaControls,
|
|
23
|
+
'aria-posinset': ariaPosinset,
|
|
24
|
+
'aria-selected': ariaSelected,
|
|
25
|
+
'aria-setsize': ariaSetsize,
|
|
26
|
+
onMouseDown,
|
|
27
|
+
onKeyDown,
|
|
28
|
+
role,
|
|
29
|
+
tabIndex
|
|
30
|
+
} = useTab();
|
|
31
|
+
return jsx(Box, {
|
|
32
|
+
testId: testId,
|
|
33
|
+
onClick: onClick,
|
|
34
|
+
id: id,
|
|
35
|
+
"aria-controls": ariaControls,
|
|
36
|
+
"aria-posinset": ariaPosinset,
|
|
37
|
+
"aria-selected": ariaSelected,
|
|
38
|
+
"aria-setsize": ariaSetsize,
|
|
39
|
+
onMouseDown: onMouseDown,
|
|
40
|
+
onKeyDown: onKeyDown,
|
|
41
|
+
role: role,
|
|
42
|
+
tabIndex: tabIndex
|
|
43
|
+
}, jsx(Text, {
|
|
24
44
|
shouldTruncate: true,
|
|
25
45
|
UNSAFE_style: {
|
|
26
46
|
color: 'inherit'
|
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { Children, Fragment, useCallback, useMemo, useRef, useState } from 'react';
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
3
|
+
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatformLeafEventHandler';
|
|
5
|
-
import { UNSAFE_Box as Box } from '@atlaskit/ds-explorations';
|
|
6
5
|
import { useGlobalTheme } from '@atlaskit/theme/components';
|
|
7
6
|
import { TabListContext, TabPanelContext } from '../internal/context';
|
|
8
7
|
import { getTabsStyles } from '../internal/styles';
|
|
9
8
|
import { onMouseDownBlur } from '../internal/utils';
|
|
9
|
+
const baseStyles = css({
|
|
10
|
+
display: 'flex',
|
|
11
|
+
maxWidth: '100%',
|
|
12
|
+
minHeight: '0%',
|
|
13
|
+
flexBasis: '100%',
|
|
14
|
+
flexDirection: 'column',
|
|
15
|
+
flexGrow: 1
|
|
16
|
+
});
|
|
10
17
|
const analyticsAttributes = {
|
|
11
18
|
componentName: 'tabs',
|
|
12
19
|
packageName: "@atlaskit/tabs",
|
|
13
|
-
packageVersion: "13.4.
|
|
20
|
+
packageVersion: "13.4.6"
|
|
14
21
|
};
|
|
15
22
|
const getTabPanelWithContext = ({
|
|
16
23
|
tabPanel,
|
|
@@ -97,21 +104,12 @@ const Tabs = props => {
|
|
|
97
104
|
// Only styles that affect the Tabs container itself have been applied via primitives.
|
|
98
105
|
// The other styles applied through the CSS prop are there for styling children
|
|
99
106
|
// through inheritance. This is important for custom cases that use the useTabPanel(),
|
|
100
|
-
// which applies accessibility
|
|
101
|
-
jsx(
|
|
102
|
-
|
|
103
|
-
testId: testId,
|
|
104
|
-
display: "flex",
|
|
105
|
-
flexDirection: "column",
|
|
106
|
-
UNSAFE_style: {
|
|
107
|
-
maxWidth: '100%',
|
|
108
|
-
minHeight: '0%',
|
|
109
|
-
flexBasis: '100%',
|
|
110
|
-
flexGrow: 1
|
|
111
|
-
}
|
|
107
|
+
// which applies accessibility attributes that we use as a styling hook.
|
|
108
|
+
jsx("div", {
|
|
109
|
+
"data-testid": testId
|
|
112
110
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
113
111
|
,
|
|
114
|
-
css: tabsStyles
|
|
112
|
+
css: [baseStyles, tabsStyles]
|
|
115
113
|
}, jsx(TabListContext.Provider, {
|
|
116
114
|
value: {
|
|
117
115
|
selected,
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { Children, createRef, useCallback, useMemo } from 'react';
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
4
|
-
import { UNSAFE_Box as Box } from '@atlaskit/ds-explorations';
|
|
3
|
+
import { css, jsx } from '@emotion/react';
|
|
5
4
|
import { useGlobalTheme } from '@atlaskit/theme/components';
|
|
6
5
|
import { useTabList } from '../hooks';
|
|
7
6
|
import { TabContext } from '../internal/context';
|
|
8
7
|
import { getTabListStyles } from '../internal/styles';
|
|
9
8
|
import { onMouseDownBlur } from '../internal/utils';
|
|
9
|
+
var baseStyles = css({
|
|
10
|
+
display: 'flex',
|
|
11
|
+
padding: "var(--ds-space-0, 0px)",
|
|
12
|
+
position: 'relative'
|
|
13
|
+
});
|
|
14
|
+
|
|
10
15
|
/**
|
|
11
16
|
* __TabList__
|
|
12
17
|
*
|
|
@@ -16,8 +21,8 @@ import { onMouseDownBlur } from '../internal/utils';
|
|
|
16
21
|
* - [Code](https://atlassian.design/components/tabs/code)
|
|
17
22
|
* - [Usage](https://atlassian.design/components/tabs/usage)
|
|
18
23
|
*/
|
|
19
|
-
var TabList = function TabList(
|
|
20
|
-
var children =
|
|
24
|
+
var TabList = function TabList(_ref) {
|
|
25
|
+
var children = _ref.children;
|
|
21
26
|
var _useGlobalTheme = useGlobalTheme(),
|
|
22
27
|
mode = _useGlobalTheme.mode;
|
|
23
28
|
var _useTabList = useTabList(),
|
|
@@ -68,10 +73,10 @@ var TabList = function TabList(props) {
|
|
|
68
73
|
}, [length, selectTabByIndex]);
|
|
69
74
|
|
|
70
75
|
// Memoized so the function isn't recreated each time
|
|
71
|
-
var getTabWithContext = useCallback(function (
|
|
72
|
-
var tab =
|
|
73
|
-
isSelected =
|
|
74
|
-
index =
|
|
76
|
+
var getTabWithContext = useCallback(function (_ref2) {
|
|
77
|
+
var tab = _ref2.tab,
|
|
78
|
+
isSelected = _ref2.isSelected,
|
|
79
|
+
index = _ref2.index;
|
|
75
80
|
return jsx(TabContext.Provider, {
|
|
76
81
|
value: {
|
|
77
82
|
onClick: function onClick() {
|
|
@@ -95,16 +100,12 @@ var TabList = function TabList(props) {
|
|
|
95
100
|
// The other styles applied through the CSS prop are there for styling children
|
|
96
101
|
// through inheritance. This is important for custom cases that use the useTab(),
|
|
97
102
|
// which applies accessibility atributes that we use as a styling hook.
|
|
98
|
-
jsx(
|
|
99
|
-
as: "div",
|
|
103
|
+
jsx("div", {
|
|
100
104
|
role: "tablist",
|
|
101
|
-
display: "flex",
|
|
102
|
-
position: "relative",
|
|
103
|
-
padding: "space.0",
|
|
104
105
|
ref: ref
|
|
105
106
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
106
107
|
,
|
|
107
|
-
css: tabListStyles
|
|
108
|
+
css: [baseStyles, tabListStyles]
|
|
108
109
|
}, childrenArray.map(function (child, index) {
|
|
109
110
|
return getTabWithContext({
|
|
110
111
|
tab: child,
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
/** @jsx jsx */
|
|
3
2
|
import { Fragment } from 'react';
|
|
4
3
|
import { jsx } from '@emotion/react';
|
|
5
|
-
import {
|
|
4
|
+
import { Box } from '@atlaskit/primitives';
|
|
6
5
|
import { useTabPanel } from '../hooks';
|
|
7
6
|
// Note this is not being memoized as children is an unstable reference
|
|
8
7
|
/**
|
|
@@ -17,10 +16,21 @@ import { useTabPanel } from '../hooks';
|
|
|
17
16
|
var TabPanel = function TabPanel(_ref) {
|
|
18
17
|
var children = _ref.children,
|
|
19
18
|
testId = _ref.testId;
|
|
20
|
-
var
|
|
21
|
-
|
|
19
|
+
var _useTabPanel = useTabPanel(),
|
|
20
|
+
role = _useTabPanel.role,
|
|
21
|
+
id = _useTabPanel.id,
|
|
22
|
+
hidden = _useTabPanel.hidden,
|
|
23
|
+
ariaLabelledBy = _useTabPanel['aria-labelledby'],
|
|
24
|
+
onMouseDown = _useTabPanel.onMouseDown,
|
|
25
|
+
tabIndex = _useTabPanel.tabIndex;
|
|
26
|
+
return jsx(Box, {
|
|
22
27
|
testId: testId,
|
|
23
|
-
|
|
24
|
-
|
|
28
|
+
role: role,
|
|
29
|
+
id: id,
|
|
30
|
+
hidden: hidden,
|
|
31
|
+
"aria-labelledby": ariaLabelledBy,
|
|
32
|
+
onMouseDown: onMouseDown,
|
|
33
|
+
tabIndex: tabIndex
|
|
34
|
+
}, jsx(Fragment, null, children));
|
|
25
35
|
};
|
|
26
36
|
export default TabPanel;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
/** @jsx jsx */
|
|
3
2
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import {
|
|
3
|
+
import { UNSAFE_Text as Text } from '@atlaskit/ds-explorations';
|
|
4
|
+
import { Box } from '@atlaskit/primitives';
|
|
5
5
|
import { useTab } from '../hooks';
|
|
6
6
|
/**
|
|
7
7
|
* __Tab__
|
|
@@ -15,11 +15,30 @@ import { useTab } from '../hooks';
|
|
|
15
15
|
export default function Tab(_ref) {
|
|
16
16
|
var children = _ref.children,
|
|
17
17
|
testId = _ref.testId;
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
var _useTab = useTab(),
|
|
19
|
+
onClick = _useTab.onClick,
|
|
20
|
+
id = _useTab.id,
|
|
21
|
+
ariaControls = _useTab['aria-controls'],
|
|
22
|
+
ariaPosinset = _useTab['aria-posinset'],
|
|
23
|
+
ariaSelected = _useTab['aria-selected'],
|
|
24
|
+
ariaSetsize = _useTab['aria-setsize'],
|
|
25
|
+
onMouseDown = _useTab.onMouseDown,
|
|
26
|
+
onKeyDown = _useTab.onKeyDown,
|
|
27
|
+
role = _useTab.role,
|
|
28
|
+
tabIndex = _useTab.tabIndex;
|
|
29
|
+
return jsx(Box, {
|
|
30
|
+
testId: testId,
|
|
31
|
+
onClick: onClick,
|
|
32
|
+
id: id,
|
|
33
|
+
"aria-controls": ariaControls,
|
|
34
|
+
"aria-posinset": ariaPosinset,
|
|
35
|
+
"aria-selected": ariaSelected,
|
|
36
|
+
"aria-setsize": ariaSetsize,
|
|
37
|
+
onMouseDown: onMouseDown,
|
|
38
|
+
onKeyDown: onKeyDown,
|
|
39
|
+
role: role,
|
|
40
|
+
tabIndex: tabIndex
|
|
41
|
+
}, jsx(Text, {
|
|
23
42
|
shouldTruncate: true,
|
|
24
43
|
UNSAFE_style: {
|
|
25
44
|
color: 'inherit'
|
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _toArray from "@babel/runtime/helpers/toArray";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
|
-
function ownKeys(
|
|
5
|
-
function _objectSpread(
|
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
6
|
/** @jsx jsx */
|
|
7
7
|
import { Children, Fragment, useCallback, useMemo, useRef, useState } from 'react';
|
|
8
|
-
import { jsx } from '@emotion/react';
|
|
8
|
+
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatformLeafEventHandler';
|
|
10
|
-
import { UNSAFE_Box as Box } from '@atlaskit/ds-explorations';
|
|
11
10
|
import { useGlobalTheme } from '@atlaskit/theme/components';
|
|
12
11
|
import { TabListContext, TabPanelContext } from '../internal/context';
|
|
13
12
|
import { getTabsStyles } from '../internal/styles';
|
|
14
13
|
import { onMouseDownBlur } from '../internal/utils';
|
|
14
|
+
var baseStyles = css({
|
|
15
|
+
display: 'flex',
|
|
16
|
+
maxWidth: '100%',
|
|
17
|
+
minHeight: '0%',
|
|
18
|
+
flexBasis: '100%',
|
|
19
|
+
flexDirection: 'column',
|
|
20
|
+
flexGrow: 1
|
|
21
|
+
});
|
|
15
22
|
var analyticsAttributes = {
|
|
16
23
|
componentName: 'tabs',
|
|
17
24
|
packageName: "@atlaskit/tabs",
|
|
18
|
-
packageVersion: "13.4.
|
|
25
|
+
packageVersion: "13.4.6"
|
|
19
26
|
};
|
|
20
27
|
var getTabPanelWithContext = function getTabPanelWithContext(_ref) {
|
|
21
28
|
var tabPanel = _ref.tabPanel,
|
|
@@ -112,21 +119,12 @@ var Tabs = function Tabs(props) {
|
|
|
112
119
|
// Only styles that affect the Tabs container itself have been applied via primitives.
|
|
113
120
|
// The other styles applied through the CSS prop are there for styling children
|
|
114
121
|
// through inheritance. This is important for custom cases that use the useTabPanel(),
|
|
115
|
-
// which applies accessibility
|
|
116
|
-
jsx(
|
|
117
|
-
|
|
118
|
-
testId: testId,
|
|
119
|
-
display: "flex",
|
|
120
|
-
flexDirection: "column",
|
|
121
|
-
UNSAFE_style: {
|
|
122
|
-
maxWidth: '100%',
|
|
123
|
-
minHeight: '0%',
|
|
124
|
-
flexBasis: '100%',
|
|
125
|
-
flexGrow: 1
|
|
126
|
-
}
|
|
122
|
+
// which applies accessibility attributes that we use as a styling hook.
|
|
123
|
+
jsx("div", {
|
|
124
|
+
"data-testid": testId
|
|
127
125
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
128
126
|
,
|
|
129
|
-
css: tabsStyles
|
|
127
|
+
css: [baseStyles, tabsStyles]
|
|
130
128
|
}, jsx(TabListContext.Provider, {
|
|
131
129
|
value: {
|
|
132
130
|
selected: selected,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import { css } from '@emotion/react';
|
|
5
5
|
import { getTabColors, getTabLineColor, getTabPanelFocusColor } from './colors';
|
|
6
6
|
var tabLeftRightPadding = "var(--ds-space-100, 8px)";
|
|
@@ -9,5 +9,5 @@ import { TabListProps } from '../types';
|
|
|
9
9
|
* - [Code](https://atlassian.design/components/tabs/code)
|
|
10
10
|
* - [Usage](https://atlassian.design/components/tabs/usage)
|
|
11
11
|
*/
|
|
12
|
-
declare const TabList: (
|
|
12
|
+
declare const TabList: ({ children }: TabListProps) => jsx.JSX.Element;
|
|
13
13
|
export default TabList;
|
|
@@ -9,5 +9,5 @@ import { TabListProps } from '../types';
|
|
|
9
9
|
* - [Code](https://atlassian.design/components/tabs/code)
|
|
10
10
|
* - [Usage](https://atlassian.design/components/tabs/usage)
|
|
11
11
|
*/
|
|
12
|
-
declare const TabList: (
|
|
12
|
+
declare const TabList: ({ children }: TabListProps) => jsx.JSX.Element;
|
|
13
13
|
export default TabList;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/tabs",
|
|
3
|
-
"version": "13.4.
|
|
3
|
+
"version": "13.4.6",
|
|
4
4
|
"description": "Tabs are used to organize content by grouping similar information on the same page.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -33,9 +33,10 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
35
35
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
36
|
-
"@atlaskit/ds-explorations": "^2.
|
|
37
|
-
"@atlaskit/
|
|
38
|
-
"@atlaskit/
|
|
36
|
+
"@atlaskit/ds-explorations": "^2.3.0",
|
|
37
|
+
"@atlaskit/primitives": "^1.6.0",
|
|
38
|
+
"@atlaskit/theme": "^12.6.0",
|
|
39
|
+
"@atlaskit/tokens": "^1.25.0",
|
|
39
40
|
"@babel/runtime": "^7.0.0",
|
|
40
41
|
"@emotion/react": "^11.7.1"
|
|
41
42
|
},
|
package/report.api.md
CHANGED
|
@@ -57,7 +57,7 @@ export interface TabData {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
// @public
|
|
60
|
-
export const TabList: (
|
|
60
|
+
export const TabList: ({ children }: TabListProps) => jsx.JSX.Element;
|
|
61
61
|
|
|
62
62
|
// @public (undocumented)
|
|
63
63
|
export type TabListAttributesType = {
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ export interface TabData {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
// @public
|
|
46
|
-
export const TabList: (
|
|
46
|
+
export const TabList: ({ children }: TabListProps) => jsx.JSX.Element;
|
|
47
47
|
|
|
48
48
|
// @public (undocumented)
|
|
49
49
|
export type TabListAttributesType = {
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { PublicInteractionTask } from 'storybook-addon-performance';
|
|
3
|
-
export declare const performance: {
|
|
4
|
-
(): JSX.Element;
|
|
5
|
-
story: {
|
|
6
|
-
name: string;
|
|
7
|
-
parameters: {
|
|
8
|
-
performance: {
|
|
9
|
-
interactions: PublicInteractionTask[];
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export declare const heavyPerformance: {
|
|
15
|
-
(): JSX.Element;
|
|
16
|
-
story: {
|
|
17
|
-
name: string;
|
|
18
|
-
parameters: {
|
|
19
|
-
performance: {
|
|
20
|
-
interactions: PublicInteractionTask[];
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { PublicInteractionTask } from 'storybook-addon-performance';
|
|
3
|
-
export declare const performance: {
|
|
4
|
-
(): JSX.Element;
|
|
5
|
-
story: {
|
|
6
|
-
name: string;
|
|
7
|
-
parameters: {
|
|
8
|
-
performance: {
|
|
9
|
-
interactions: PublicInteractionTask[];
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export declare const heavyPerformance: {
|
|
15
|
-
(): JSX.Element;
|
|
16
|
-
story: {
|
|
17
|
-
name: string;
|
|
18
|
-
parameters: {
|
|
19
|
-
performance: {
|
|
20
|
-
interactions: PublicInteractionTask[];
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
};
|