@atlaskit/tabs 13.4.0 → 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 +6 -0
- package/dist/cjs/components/tabs.js +1 -1
- 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 +11 -4
- package/types/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -21,7 +21,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
21
21
|
var analyticsAttributes = {
|
|
22
22
|
componentName: 'tabs',
|
|
23
23
|
packageName: "@atlaskit/tabs",
|
|
24
|
-
packageVersion: "13.4.
|
|
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.4.
|
|
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.4.
|
|
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": {
|
|
@@ -27,7 +35,7 @@
|
|
|
27
35
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
28
36
|
"@atlaskit/ds-explorations": "^2.1.0",
|
|
29
37
|
"@atlaskit/theme": "^12.5.0",
|
|
30
|
-
"@atlaskit/tokens": "^1.
|
|
38
|
+
"@atlaskit/tokens": "^1.4.0",
|
|
31
39
|
"@babel/runtime": "^7.0.0",
|
|
32
40
|
"@emotion/react": "^11.7.1"
|
|
33
41
|
},
|
|
@@ -46,12 +54,11 @@
|
|
|
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": {
|