@atlaskit/tabs 17.0.2 → 17.2.0
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 +20 -0
- package/dist/cjs/components/tab-list.js +1 -1
- package/dist/cjs/components/tab.js +2 -7
- package/dist/cjs/components/tabs.js +2 -2
- package/dist/es2019/components/tab-list.js +1 -1
- package/dist/es2019/components/tab.js +1 -5
- package/dist/es2019/components/tabs.js +2 -2
- package/dist/esm/components/tab-list.js +1 -1
- package/dist/esm/components/tab.js +1 -5
- package/dist/esm/components/tabs.js +2 -2
- package/package.json +11 -11
- package/__perf__/default.tsx +0 -22
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/tabs
|
|
2
2
|
|
|
3
|
+
## 17.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#109060](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109060)
|
|
8
|
+
[`4660ec858a305`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4660ec858a305) -
|
|
9
|
+
Update `React` from v16 to v18
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 17.1.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- [#104842](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/104842)
|
|
20
|
+
[`72f5b10de1847`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/72f5b10de1847) -
|
|
21
|
+
Migrated from primitives components to primitives/compiled components
|
|
22
|
+
|
|
3
23
|
## 17.0.2
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -8,15 +8,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _focusRing = _interopRequireDefault(require("@atlaskit/focus-ring"));
|
|
11
|
-
var
|
|
11
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
12
12
|
var _hooks = require("../hooks");
|
|
13
13
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
14
14
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
|
-
/**
|
|
16
|
-
* TODO - https://product-fabric.atlassian.net/browse/DSP-21564
|
|
17
|
-
* Will be moved to @atlaskit/primitives/compiled, VRs will be updated.
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
15
|
/**
|
|
21
16
|
* __Tab__
|
|
22
17
|
*
|
|
@@ -53,7 +48,7 @@ var Tab = /*#__PURE__*/(0, _react.forwardRef)(function Tab(_ref, ref) {
|
|
|
53
48
|
role: role,
|
|
54
49
|
tabIndex: tabIndex,
|
|
55
50
|
ref: ref
|
|
56
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
51
|
+
}, /*#__PURE__*/_react.default.createElement(_compiled.Text, {
|
|
57
52
|
weight: "medium",
|
|
58
53
|
color: "inherit",
|
|
59
54
|
maxLines: 1
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* tabs.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* tabs.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -25,7 +25,7 @@ var tabsStyles = null;
|
|
|
25
25
|
var analyticsAttributes = {
|
|
26
26
|
componentName: 'tabs',
|
|
27
27
|
packageName: "@atlaskit/tabs",
|
|
28
|
-
packageVersion: "17.0
|
|
28
|
+
packageVersion: "17.2.0"
|
|
29
29
|
};
|
|
30
30
|
var getTabPanelWithContext = function getTabPanelWithContext(_ref) {
|
|
31
31
|
var tabPanel = _ref.tabPanel,
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
import FocusRing from '@atlaskit/focus-ring';
|
|
3
|
-
|
|
4
|
-
* TODO - https://product-fabric.atlassian.net/browse/DSP-21564
|
|
5
|
-
* Will be moved to @atlaskit/primitives/compiled, VRs will be updated.
|
|
6
|
-
*/
|
|
7
|
-
import { Text } from '@atlaskit/primitives';
|
|
3
|
+
import { Text } from '@atlaskit/primitives/compiled';
|
|
8
4
|
import { useTab } from '../hooks';
|
|
9
5
|
/**
|
|
10
6
|
* __Tab__
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* tabs.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* tabs.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
2
2
|
import "./tabs.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -10,7 +10,7 @@ const tabsStyles = null;
|
|
|
10
10
|
const analyticsAttributes = {
|
|
11
11
|
componentName: 'tabs',
|
|
12
12
|
packageName: "@atlaskit/tabs",
|
|
13
|
-
packageVersion: "17.0
|
|
13
|
+
packageVersion: "17.2.0"
|
|
14
14
|
};
|
|
15
15
|
const getTabPanelWithContext = ({
|
|
16
16
|
tabPanel,
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
import FocusRing from '@atlaskit/focus-ring';
|
|
3
|
-
|
|
4
|
-
* TODO - https://product-fabric.atlassian.net/browse/DSP-21564
|
|
5
|
-
* Will be moved to @atlaskit/primitives/compiled, VRs will be updated.
|
|
6
|
-
*/
|
|
7
|
-
import { Text } from '@atlaskit/primitives';
|
|
3
|
+
import { Text } from '@atlaskit/primitives/compiled';
|
|
8
4
|
import { useTab } from '../hooks';
|
|
9
5
|
/**
|
|
10
6
|
* __Tab__
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* tabs.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* tabs.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _toArray from "@babel/runtime/helpers/toArray";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
@@ -15,7 +15,7 @@ var tabsStyles = null;
|
|
|
15
15
|
var analyticsAttributes = {
|
|
16
16
|
componentName: 'tabs',
|
|
17
17
|
packageName: "@atlaskit/tabs",
|
|
18
|
-
packageVersion: "17.0
|
|
18
|
+
packageVersion: "17.2.0"
|
|
19
19
|
};
|
|
20
20
|
var getTabPanelWithContext = function getTabPanelWithContext(_ref) {
|
|
21
21
|
var tabPanel = _ref.tabPanel,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/tabs",
|
|
3
|
-
"version": "17.0
|
|
3
|
+
"version": "17.2.0",
|
|
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,14 +33,14 @@
|
|
|
33
33
|
"runReact18": true
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@atlaskit/analytics-next": "^10.
|
|
36
|
+
"@atlaskit/analytics-next": "^10.3.0",
|
|
37
37
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
38
|
-
"@atlaskit/css": "^0.
|
|
39
|
-
"@atlaskit/focus-ring": "^2.
|
|
38
|
+
"@atlaskit/css": "^0.8.0",
|
|
39
|
+
"@atlaskit/focus-ring": "^2.1.0",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
41
|
-
"@atlaskit/primitives": "^13.
|
|
42
|
-
"@atlaskit/theme": "^14.
|
|
43
|
-
"@atlaskit/tokens": "^3.
|
|
41
|
+
"@atlaskit/primitives": "^13.4.0",
|
|
42
|
+
"@atlaskit/theme": "^14.1.0",
|
|
43
|
+
"@atlaskit/tokens": "^3.3.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
45
45
|
"@compiled/react": "^0.18.1"
|
|
46
46
|
},
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
"@af/accessibility-testing": "*",
|
|
52
52
|
"@af/integration-testing": "*",
|
|
53
53
|
"@af/visual-regression": "*",
|
|
54
|
-
"@atlaskit/ds-lib": "^3.
|
|
54
|
+
"@atlaskit/ds-lib": "^3.5.0",
|
|
55
55
|
"@atlaskit/ssr": "*",
|
|
56
|
-
"@atlaskit/tooltip": "^19.
|
|
56
|
+
"@atlaskit/tooltip": "^19.1.0",
|
|
57
57
|
"@atlaskit/visual-regression": "*",
|
|
58
|
-
"@testing-library/react": "^
|
|
58
|
+
"@testing-library/react": "^13.4.0",
|
|
59
59
|
"jscodeshift": "^0.13.0",
|
|
60
|
-
"react-dom": "^
|
|
60
|
+
"react-dom": "^18.2.0",
|
|
61
61
|
"react-lorem-component": "^0.13.0",
|
|
62
62
|
"storybook-addon-performance": "^0.17.3",
|
|
63
63
|
"typescript": "~5.4.2"
|
package/__perf__/default.tsx
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import Tabs, { Tab, TabList, TabPanel } from '../src';
|
|
4
|
-
|
|
5
|
-
export default () => (
|
|
6
|
-
<Tabs id="test">
|
|
7
|
-
<TabList>
|
|
8
|
-
<Tab>Tab 1</Tab>
|
|
9
|
-
<Tab>Tab 2</Tab>
|
|
10
|
-
<Tab>Tab 3</Tab>
|
|
11
|
-
</TabList>
|
|
12
|
-
<TabPanel>
|
|
13
|
-
<div>One</div>
|
|
14
|
-
</TabPanel>
|
|
15
|
-
<TabPanel>
|
|
16
|
-
<div>Two</div>
|
|
17
|
-
</TabPanel>
|
|
18
|
-
<TabPanel>
|
|
19
|
-
<div>Three</div>
|
|
20
|
-
</TabPanel>
|
|
21
|
-
</Tabs>
|
|
22
|
-
);
|