@atlaskit/tabs 14.0.0 → 14.0.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/tabs
2
2
 
3
+ ## 14.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 14.0.0
4
10
 
5
11
  ### Major Changes
@@ -30,7 +30,7 @@ var tabsStyles = (0, _styles.getTabsStyles)();
30
30
  var analyticsAttributes = {
31
31
  componentName: 'tabs',
32
32
  packageName: "@atlaskit/tabs",
33
- packageVersion: "14.0.0"
33
+ packageVersion: "14.0.1"
34
34
  };
35
35
  var getTabPanelWithContext = function getTabPanelWithContext(_ref) {
36
36
  var tabPanel = _ref.tabPanel,
@@ -19,7 +19,7 @@ const tabsStyles = getTabsStyles();
19
19
  const analyticsAttributes = {
20
20
  componentName: 'tabs',
21
21
  packageName: "@atlaskit/tabs",
22
- packageVersion: "14.0.0"
22
+ packageVersion: "14.0.1"
23
23
  };
24
24
  const getTabPanelWithContext = ({
25
25
  tabPanel,
@@ -24,7 +24,7 @@ var tabsStyles = getTabsStyles();
24
24
  var analyticsAttributes = {
25
25
  componentName: 'tabs',
26
26
  packageName: "@atlaskit/tabs",
27
- packageVersion: "14.0.0"
27
+ packageVersion: "14.0.1"
28
28
  };
29
29
  var getTabPanelWithContext = function getTabPanelWithContext(_ref) {
30
30
  var tabPanel = _ref.tabPanel,
@@ -38,11 +38,11 @@ export interface TabPanelProps {
38
38
  */
39
39
  export interface TabData {
40
40
  /**
41
- * String to be put inside a tab
41
+ * String to be put inside a tab.
42
42
  */
43
43
  label?: string;
44
44
  /**
45
- * String to be put inside a tab panel
45
+ * String to be put inside a tab panel.
46
46
  */
47
47
  content?: ReactNode;
48
48
  /**
@@ -118,7 +118,7 @@ export type TabAttributesType = {
118
118
  */
119
119
  id: string;
120
120
  /**
121
- * The id of the tab panel that this tab links.
121
+ * The ID of the tab panel that this tab links.
122
122
  */
123
123
  'aria-controls': string;
124
124
  /**
@@ -38,11 +38,11 @@ export interface TabPanelProps {
38
38
  */
39
39
  export interface TabData {
40
40
  /**
41
- * String to be put inside a tab
41
+ * String to be put inside a tab.
42
42
  */
43
43
  label?: string;
44
44
  /**
45
- * String to be put inside a tab panel
45
+ * String to be put inside a tab panel.
46
46
  */
47
47
  content?: ReactNode;
48
48
  /**
@@ -118,7 +118,7 @@ export type TabAttributesType = {
118
118
  */
119
119
  id: string;
120
120
  /**
121
- * The id of the tab panel that this tab links.
121
+ * The ID of the tab panel that this tab links.
122
122
  */
123
123
  'aria-controls': string;
124
124
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tabs",
3
- "version": "14.0.0",
3
+ "version": "14.0.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/"
@@ -36,10 +36,10 @@
36
36
  "dependencies": {
37
37
  "@atlaskit/analytics-next": "^9.1.0",
38
38
  "@atlaskit/codemod-utils": "^4.2.0",
39
- "@atlaskit/ds-explorations": "^3.0.0",
40
- "@atlaskit/primitives": "^1.10.0",
39
+ "@atlaskit/ds-explorations": "^3.2.0",
40
+ "@atlaskit/primitives": "^2.0.0",
41
41
  "@atlaskit/theme": "^12.6.0",
42
- "@atlaskit/tokens": "^1.28.0",
42
+ "@atlaskit/tokens": "^1.35.0",
43
43
  "@babel/runtime": "^7.0.0",
44
44
  "@emotion/react": "^11.7.1"
45
45
  },
@@ -48,10 +48,10 @@
48
48
  },
49
49
  "devDependencies": {
50
50
  "@af/accessibility-testing": "*",
51
+ "@af/integration-testing": "*",
51
52
  "@atlaskit/ds-lib": "^2.2.0",
52
53
  "@atlaskit/ssr": "*",
53
54
  "@atlaskit/visual-regression": "*",
54
- "@atlaskit/webdriver-runner": "*",
55
55
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
56
56
  "@testing-library/react": "^12.1.5",
57
57
  "jscodeshift": "^0.13.0",
@@ -1,109 +0,0 @@
1
- ## API Report File for "@atlaskit/tabs"
2
-
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
-
5
- ```ts
6
-
7
- import { jsx } from '@emotion/react';
8
- import { KeyboardEvent as KeyboardEvent_2 } from 'react';
9
- import { MouseEvent as MouseEvent_2 } from 'react';
10
- import { ReactNode } from 'react';
11
- import UIAnalyticsEvent from '@atlaskit/analytics-next/UIAnalyticsEvent';
12
- import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next/withAnalyticsEvents';
13
-
14
- // @public (undocumented)
15
- type OnChangeCallback = (index: SelectedType, analyticsEvent: UIAnalyticsEvent) => void;
16
-
17
- // @public (undocumented)
18
- type SelectedType = number;
19
-
20
- // @public
21
- export function Tab({ children, testId }: TabProps): jsx.JSX.Element;
22
-
23
- // @public (undocumented)
24
- export type TabAttributesType = {
25
- onClick: () => void;
26
- id: string;
27
- 'aria-controls': string;
28
- 'aria-posinset': number;
29
- 'aria-selected': boolean;
30
- 'aria-setsize': number;
31
- onMouseDown: (e: MouseEvent_2<HTMLElement>) => void;
32
- onKeyDown: (e: KeyboardEvent_2<HTMLElement>) => void;
33
- role: 'tab';
34
- tabIndex: number;
35
- };
36
-
37
- // @public @deprecated (undocumented)
38
- export interface TabData {
39
- [key: string]: any;
40
- content?: ReactNode;
41
- label?: string;
42
- testId?: string;
43
- }
44
-
45
- // @public
46
- export const TabList: ({ children }: TabListProps) => jsx.JSX.Element;
47
-
48
- // @public (undocumented)
49
- export type TabListAttributesType = {
50
- selected: SelectedType;
51
- tabsId: string;
52
- onChange: (index: SelectedType) => void;
53
- };
54
-
55
- // @public (undocumented)
56
- export interface TabListProps {
57
- children: ReactNode;
58
- }
59
-
60
- // @public
61
- export const TabPanel: ({ children, testId }: TabPanelProps) => jsx.JSX.Element;
62
-
63
- // @public (undocumented)
64
- export type TabPanelAttributesType = {
65
- role: 'tabpanel';
66
- id: string;
67
- hidden?: boolean;
68
- 'aria-labelledby': string;
69
- onMouseDown: (e: MouseEvent_2<HTMLElement>) => void;
70
- tabIndex: number;
71
- };
72
-
73
- // @public (undocumented)
74
- export interface TabPanelProps {
75
- children: ReactNode;
76
- testId?: string;
77
- }
78
-
79
- // @public (undocumented)
80
- export interface TabProps {
81
- children: ReactNode;
82
- testId?: string;
83
- }
84
-
85
- // @public
86
- const Tabs: (props: TabsProps) => jsx.JSX.Element;
87
- export default Tabs;
88
-
89
- // @public (undocumented)
90
- export interface TabsProps extends WithAnalyticsEventsProps {
91
- analyticsContext?: Record<string, any>;
92
- children: ReactNode;
93
- defaultSelected?: SelectedType;
94
- id: string;
95
- onChange?: OnChangeCallback;
96
- selected?: SelectedType;
97
- shouldUnmountTabPanelOnChange?: boolean;
98
- testId?: string;
99
- }
100
-
101
- // @public (undocumented)
102
- export const useTab: () => TabAttributesType;
103
-
104
- // @public (undocumented)
105
- export const useTabPanel: () => TabPanelAttributesType;
106
-
107
- // (No @packageDocumentation comment for this package)
108
-
109
- ```