@atlaskit/tabs 13.3.13 → 13.4.1
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 +16 -0
- package/dist/cjs/components/tabs.js +2 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/tabs.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/tabs.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/internal/colors.d.ts +2 -2
- package/dist/types/types.d.ts +5 -5
- package/hooks/package.json +2 -2
- package/package.json +20 -13
- package/report.api.md +13 -0
- package/types/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/tabs
|
|
2
2
|
|
|
3
|
+
## 13.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
8
|
+
|
|
9
|
+
## 13.4.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 13.3.13
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -17,11 +17,11 @@ var _context = require("../internal/context");
|
|
|
17
17
|
var _styles = require("../internal/styles");
|
|
18
18
|
var _utils = require("../internal/utils");
|
|
19
19
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
20
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
20
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } /** @jsx jsx */
|
|
21
21
|
var analyticsAttributes = {
|
|
22
22
|
componentName: 'tabs',
|
|
23
23
|
packageName: "@atlaskit/tabs",
|
|
24
|
-
packageVersion: "13.
|
|
24
|
+
packageVersion: "13.4.1"
|
|
25
25
|
};
|
|
26
26
|
var getTabPanelWithContext = function getTabPanelWithContext(_ref) {
|
|
27
27
|
var tabPanel = _ref.tabPanel,
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
|
@@ -15,7 +15,7 @@ import { onMouseDownBlur } from '../internal/utils';
|
|
|
15
15
|
var analyticsAttributes = {
|
|
16
16
|
componentName: 'tabs',
|
|
17
17
|
packageName: "@atlaskit/tabs",
|
|
18
|
-
packageVersion: "13.
|
|
18
|
+
packageVersion: "13.4.1"
|
|
19
19
|
};
|
|
20
20
|
var getTabPanelWithContext = function getTabPanelWithContext(_ref) {
|
|
21
21
|
var tabPanel = _ref.tabPanel,
|
package/dist/esm/version.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ThemeModes } from '@atlaskit/theme/types';
|
|
2
|
-
export
|
|
2
|
+
export type TabColors = {
|
|
3
3
|
labelColor: string;
|
|
4
4
|
activeLabelColor: string;
|
|
5
5
|
hoverLabelColor: string;
|
|
@@ -7,7 +7,7 @@ export declare type TabColors = {
|
|
|
7
7
|
focusBorderColor: string;
|
|
8
8
|
};
|
|
9
9
|
export declare const getTabColors: (mode: ThemeModes) => TabColors;
|
|
10
|
-
export
|
|
10
|
+
export type TabLineColors = {
|
|
11
11
|
lineColor: string;
|
|
12
12
|
hoveredColor: string;
|
|
13
13
|
activeColor: string;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -56,8 +56,8 @@ export interface TabData {
|
|
|
56
56
|
*/
|
|
57
57
|
[key: string]: any;
|
|
58
58
|
}
|
|
59
|
-
export
|
|
60
|
-
export
|
|
59
|
+
export type SelectedType = number;
|
|
60
|
+
export type OnChangeCallback = (index: SelectedType, analyticsEvent: UIAnalyticsEvent) => void;
|
|
61
61
|
export interface TabsProps extends WithAnalyticsEventsProps {
|
|
62
62
|
/**
|
|
63
63
|
* The index of the tab that will be selected by default when the component mounts.
|
|
@@ -108,7 +108,7 @@ export interface TabListProps {
|
|
|
108
108
|
*/
|
|
109
109
|
children: ReactNode;
|
|
110
110
|
}
|
|
111
|
-
export
|
|
111
|
+
export type TabAttributesType = {
|
|
112
112
|
/**
|
|
113
113
|
* Changes the selected tab.
|
|
114
114
|
*/
|
|
@@ -152,7 +152,7 @@ export declare type TabAttributesType = {
|
|
|
152
152
|
*/
|
|
153
153
|
tabIndex: number;
|
|
154
154
|
};
|
|
155
|
-
export
|
|
155
|
+
export type TabListAttributesType = {
|
|
156
156
|
/**
|
|
157
157
|
* The index of the selected tab.
|
|
158
158
|
*/
|
|
@@ -167,7 +167,7 @@ export declare type TabListAttributesType = {
|
|
|
167
167
|
*/
|
|
168
168
|
onChange: (index: SelectedType) => void;
|
|
169
169
|
};
|
|
170
|
-
export
|
|
170
|
+
export type TabPanelAttributesType = {
|
|
171
171
|
/**
|
|
172
172
|
* Role is "tabpanel".
|
|
173
173
|
*/
|
package/hooks/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/tabs",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.4.1",
|
|
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/"
|
|
@@ -12,6 +12,14 @@
|
|
|
12
12
|
"module": "dist/esm/index.js",
|
|
13
13
|
"module:es2019": "dist/es2019/index.js",
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
|
+
"typesVersions": {
|
|
16
|
+
">=4.5 <4.9": {
|
|
17
|
+
"*": [
|
|
18
|
+
"dist/types-ts4.5/*",
|
|
19
|
+
"dist/types-ts4.5/index.d.ts"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
15
23
|
"sideEffects": false,
|
|
16
24
|
"atlaskit:src": "src/index.tsx",
|
|
17
25
|
"atlassian": {
|
|
@@ -23,11 +31,11 @@
|
|
|
23
31
|
}
|
|
24
32
|
},
|
|
25
33
|
"dependencies": {
|
|
26
|
-
"@atlaskit/analytics-next": "^9.
|
|
27
|
-
"@atlaskit/codemod-utils": "^4.
|
|
28
|
-
"@atlaskit/ds-explorations": "^2.
|
|
29
|
-
"@atlaskit/theme": "^12.
|
|
30
|
-
"@atlaskit/tokens": "^1.
|
|
34
|
+
"@atlaskit/analytics-next": "^9.1.0",
|
|
35
|
+
"@atlaskit/codemod-utils": "^4.2.0",
|
|
36
|
+
"@atlaskit/ds-explorations": "^2.1.0",
|
|
37
|
+
"@atlaskit/theme": "^12.5.0",
|
|
38
|
+
"@atlaskit/tokens": "^1.4.0",
|
|
31
39
|
"@babel/runtime": "^7.0.0",
|
|
32
40
|
"@emotion/react": "^11.7.1"
|
|
33
41
|
},
|
|
@@ -35,23 +43,22 @@
|
|
|
35
43
|
"react": "^16.8.0"
|
|
36
44
|
},
|
|
37
45
|
"devDependencies": {
|
|
38
|
-
"@atlaskit/button": "^16.
|
|
46
|
+
"@atlaskit/button": "^16.7.0",
|
|
39
47
|
"@atlaskit/docs": "*",
|
|
40
|
-
"@atlaskit/ds-lib": "^2.
|
|
41
|
-
"@atlaskit/section-message": "^6.
|
|
42
|
-
"@atlaskit/spinner": "^15.
|
|
48
|
+
"@atlaskit/ds-lib": "^2.2.0",
|
|
49
|
+
"@atlaskit/section-message": "^6.4.0",
|
|
50
|
+
"@atlaskit/spinner": "^15.5.0",
|
|
43
51
|
"@atlaskit/ssr": "*",
|
|
44
|
-
"@atlaskit/tooltip": "^17.
|
|
52
|
+
"@atlaskit/tooltip": "^17.8.0",
|
|
45
53
|
"@atlaskit/visual-regression": "*",
|
|
46
54
|
"@atlaskit/webdriver-runner": "*",
|
|
47
55
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
48
56
|
"@testing-library/react": "^12.1.5",
|
|
49
|
-
"enzyme": "^3.10.0",
|
|
50
57
|
"jscodeshift": "^0.13.0",
|
|
51
58
|
"react-dom": "^16.8.0",
|
|
52
59
|
"react-lorem-component": "^0.13.0",
|
|
53
60
|
"storybook-addon-performance": "^0.16.0",
|
|
54
|
-
"typescript": "4.
|
|
61
|
+
"typescript": "~4.9.5",
|
|
55
62
|
"wait-for-expect": "^1.2.0"
|
|
56
63
|
},
|
|
57
64
|
"techstack": {
|
package/report.api.md
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
### Table of contents
|
|
9
9
|
|
|
10
10
|
- [Main Entry Types](#main-entry-types)
|
|
11
|
+
- [Peer Dependencies](#peer-dependencies)
|
|
11
12
|
|
|
12
13
|
### Main Entry Types
|
|
13
14
|
|
|
@@ -121,3 +122,15 @@ export const useTabPanel: () => TabPanelAttributesType;
|
|
|
121
122
|
```
|
|
122
123
|
|
|
123
124
|
<!--SECTION END: Main Entry Types-->
|
|
125
|
+
|
|
126
|
+
### Peer Dependencies
|
|
127
|
+
|
|
128
|
+
<!--SECTION START: Peer Dependencies-->
|
|
129
|
+
|
|
130
|
+
```json
|
|
131
|
+
{
|
|
132
|
+
"react": "^16.8.0"
|
|
133
|
+
}
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
<!--SECTION END: Peer Dependencies-->
|