@alfalab/core-components-tab-bar 1.0.3 → 1.1.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/Component.js +1 -3
- package/components/tab/Component.js +1 -1
- package/components/tab/index.css +7 -7
- package/components/tab/index.js +0 -5
- package/cssm/Component.js +0 -3
- package/cssm/components/tab/index.js +0 -6
- package/cssm/index.js +0 -9
- package/cssm/shared/index.d.ts +1 -0
- package/cssm/shared/index.js +9 -0
- package/cssm/utils.d.ts +5 -0
- package/cssm/utils.js +14 -0
- package/esm/Component.js +1 -3
- package/esm/components/tab/Component.js +1 -1
- package/esm/components/tab/index.css +7 -7
- package/esm/components/tab/index.js +0 -5
- package/esm/index.css +3 -3
- package/esm/index.js +0 -7
- package/esm/shared/index.d.ts +1 -0
- package/esm/shared/index.js +1 -0
- package/esm/utils.d.ts +5 -0
- package/esm/utils.js +10 -0
- package/index.css +3 -3
- package/index.js +0 -7
- package/modern/Component.js +1 -3
- package/modern/components/tab/Component.js +1 -1
- package/modern/components/tab/index.css +7 -7
- package/modern/components/tab/index.js +0 -4
- package/modern/index.css +3 -3
- package/modern/index.js +0 -6
- package/modern/shared/index.d.ts +1 -0
- package/modern/shared/index.js +1 -0
- package/modern/utils.d.ts +5 -0
- package/modern/utils.js +10 -0
- package/package.json +2 -2
- package/shared/index.d.ts +1 -0
- package/shared/index.js +9 -0
- package/shared/package.json +3 -0
- package/src/shared/index.ts +1 -0
- package/src/shared/package.json +3 -0
- package/src/utils.ts +8 -0
- package/utils.d.ts +5 -0
- package/utils.js +14 -0
package/Component.js
CHANGED
|
@@ -7,15 +7,13 @@ var React = require('react');
|
|
|
7
7
|
var cn = require('classnames');
|
|
8
8
|
var coreComponentsShared = require('@alfalab/core-components-shared');
|
|
9
9
|
var components_tab_Component = require('./components/tab/Component.js');
|
|
10
|
-
require('@alfalab/core-components-badge');
|
|
11
|
-
require('@alfalab/core-components-typography');
|
|
12
10
|
|
|
13
11
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
14
12
|
|
|
15
13
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
16
14
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
17
15
|
|
|
18
|
-
var styles = {"component":"tab-
|
|
16
|
+
var styles = {"component":"tab-bar__component_16z03","border":"tab-bar__border_16z03"};
|
|
19
17
|
require('./index.css')
|
|
20
18
|
|
|
21
19
|
var TabBarComponent = React.forwardRef(function (_a, ref) {
|
|
@@ -13,7 +13,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
13
13
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
14
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
15
15
|
|
|
16
|
-
var styles = {"component":"tab-
|
|
16
|
+
var styles = {"component":"tab-bar__component_lg08x","selected":"tab-bar__selected_lg08x","icon":"tab-bar__icon_lg08x","label":"tab-bar__label_lg08x","labelSelected":"tab-bar__labelSelected_lg08x","indicator":"tab-bar__indicator_lg08x"};
|
|
17
17
|
require('./index.css')
|
|
18
18
|
|
|
19
19
|
var TabComponent = React.forwardRef(function (_a, ref) {
|
package/components/tab/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ov0x */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-accent-primary: #ef3124;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
--gap-xs: 8px;
|
|
20
20
|
} :root {
|
|
21
21
|
} :root {
|
|
22
|
-
} .tab-
|
|
22
|
+
} .tab-bar__component_lg08x {
|
|
23
23
|
box-sizing: border-box;
|
|
24
24
|
background-color: transparent;
|
|
25
25
|
-webkit-tap-highlight-color: transparent;
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
align-items: center;
|
|
44
44
|
padding: var(--gap-xs) 0;
|
|
45
45
|
color: var(--color-light-neutral-translucent-700);
|
|
46
|
-
} .tab-
|
|
46
|
+
} .tab-bar__selected_lg08x {
|
|
47
47
|
color: var(--color-light-accent-primary);
|
|
48
|
-
} .tab-
|
|
48
|
+
} .tab-bar__icon_lg08x {
|
|
49
49
|
display: flex;
|
|
50
50
|
align-items: center;
|
|
51
51
|
justify-content: center;
|
|
52
52
|
flex-grow: 1;
|
|
53
53
|
width: 100%;
|
|
54
|
-
} .tab-
|
|
54
|
+
} .tab-bar__label_lg08x {
|
|
55
55
|
-webkit-line-clamp: 1;
|
|
56
56
|
display: -webkit-box;
|
|
57
57
|
-webkit-box-orient: vertical;
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
flex-shrink: 0;
|
|
61
61
|
|
|
62
62
|
color: var(--color-light-text-secondary);
|
|
63
|
-
} .tab-
|
|
63
|
+
} .tab-bar__labelSelected_lg08x {
|
|
64
64
|
color: inherit;
|
|
65
|
-
} .tab-
|
|
65
|
+
} .tab-bar__indicator_lg08x {
|
|
66
66
|
position: absolute;
|
|
67
67
|
top: var(--gap-2xs);
|
|
68
68
|
left: calc(50% + var(--gap-2xs));
|
package/components/tab/index.js
CHANGED
|
@@ -3,11 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var components_tab_Component = require('./Component.js');
|
|
6
|
-
require('tslib');
|
|
7
|
-
require('react');
|
|
8
|
-
require('classnames');
|
|
9
|
-
require('@alfalab/core-components-badge');
|
|
10
|
-
require('@alfalab/core-components-typography');
|
|
11
6
|
|
|
12
7
|
|
|
13
8
|
|
package/cssm/Component.js
CHANGED
|
@@ -8,9 +8,6 @@ var cn = require('classnames');
|
|
|
8
8
|
var coreComponentsShared = require('@alfalab/core-components-shared/cssm');
|
|
9
9
|
var components_tab_Component = require('./components/tab/Component.js');
|
|
10
10
|
var styles = require('./index.module.css');
|
|
11
|
-
require('@alfalab/core-components-badge/cssm');
|
|
12
|
-
require('@alfalab/core-components-typography/cssm');
|
|
13
|
-
require('./components/tab/index.module.css');
|
|
14
11
|
|
|
15
12
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
16
13
|
|
|
@@ -3,12 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var components_tab_Component = require('./Component.js');
|
|
6
|
-
require('tslib');
|
|
7
|
-
require('react');
|
|
8
|
-
require('classnames');
|
|
9
|
-
require('@alfalab/core-components-badge/cssm');
|
|
10
|
-
require('@alfalab/core-components-typography/cssm');
|
|
11
|
-
require('./index.module.css');
|
|
12
6
|
|
|
13
7
|
|
|
14
8
|
|
package/cssm/index.js
CHANGED
|
@@ -3,15 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var Component = require('./Component.js');
|
|
6
|
-
require('tslib');
|
|
7
|
-
require('react');
|
|
8
|
-
require('classnames');
|
|
9
|
-
require('@alfalab/core-components-shared/cssm');
|
|
10
|
-
require('./components/tab/Component.js');
|
|
11
|
-
require('@alfalab/core-components-badge/cssm');
|
|
12
|
-
require('@alfalab/core-components-typography/cssm');
|
|
13
|
-
require('./components/tab/index.module.css');
|
|
14
|
-
require('./index.module.css');
|
|
15
6
|
|
|
16
7
|
|
|
17
8
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getTabBarTestIds } from "../utils";
|
package/cssm/utils.d.ts
ADDED
package/cssm/utils.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var coreComponentsShared = require('@alfalab/core-components-shared/cssm');
|
|
6
|
+
|
|
7
|
+
function getTabBarTestIds(dataTestId) {
|
|
8
|
+
return {
|
|
9
|
+
tabBar: dataTestId,
|
|
10
|
+
tab: coreComponentsShared.getDataTestId(dataTestId, 'tab'),
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
exports.getTabBarTestIds = getTabBarTestIds;
|
package/esm/Component.js
CHANGED
|
@@ -3,10 +3,8 @@ import React, { forwardRef, Children, cloneElement } from 'react';
|
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { getDataTestId } from '@alfalab/core-components-shared/esm';
|
|
5
5
|
import { Tab } from './components/tab/Component.js';
|
|
6
|
-
import '@alfalab/core-components-badge/esm';
|
|
7
|
-
import '@alfalab/core-components-typography/esm';
|
|
8
6
|
|
|
9
|
-
var styles = {"component":"tab-
|
|
7
|
+
var styles = {"component":"tab-bar__component_16z03","border":"tab-bar__border_16z03"};
|
|
10
8
|
require('./index.css')
|
|
11
9
|
|
|
12
10
|
var TabBarComponent = forwardRef(function (_a, ref) {
|
|
@@ -4,7 +4,7 @@ import cn from 'classnames';
|
|
|
4
4
|
import { Badge } from '@alfalab/core-components-badge/esm';
|
|
5
5
|
import { Typography } from '@alfalab/core-components-typography/esm';
|
|
6
6
|
|
|
7
|
-
var styles = {"component":"tab-
|
|
7
|
+
var styles = {"component":"tab-bar__component_lg08x","selected":"tab-bar__selected_lg08x","icon":"tab-bar__icon_lg08x","label":"tab-bar__label_lg08x","labelSelected":"tab-bar__labelSelected_lg08x","indicator":"tab-bar__indicator_lg08x"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
var TabComponent = forwardRef(function (_a, ref) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ov0x */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-accent-primary: #ef3124;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
--gap-xs: 8px;
|
|
20
20
|
} :root {
|
|
21
21
|
} :root {
|
|
22
|
-
} .tab-
|
|
22
|
+
} .tab-bar__component_lg08x {
|
|
23
23
|
box-sizing: border-box;
|
|
24
24
|
background-color: transparent;
|
|
25
25
|
-webkit-tap-highlight-color: transparent;
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
align-items: center;
|
|
44
44
|
padding: var(--gap-xs) 0;
|
|
45
45
|
color: var(--color-light-neutral-translucent-700);
|
|
46
|
-
} .tab-
|
|
46
|
+
} .tab-bar__selected_lg08x {
|
|
47
47
|
color: var(--color-light-accent-primary);
|
|
48
|
-
} .tab-
|
|
48
|
+
} .tab-bar__icon_lg08x {
|
|
49
49
|
display: flex;
|
|
50
50
|
align-items: center;
|
|
51
51
|
justify-content: center;
|
|
52
52
|
flex-grow: 1;
|
|
53
53
|
width: 100%;
|
|
54
|
-
} .tab-
|
|
54
|
+
} .tab-bar__label_lg08x {
|
|
55
55
|
-webkit-line-clamp: 1;
|
|
56
56
|
display: -webkit-box;
|
|
57
57
|
-webkit-box-orient: vertical;
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
flex-shrink: 0;
|
|
61
61
|
|
|
62
62
|
color: var(--color-light-text-secondary);
|
|
63
|
-
} .tab-
|
|
63
|
+
} .tab-bar__labelSelected_lg08x {
|
|
64
64
|
color: inherit;
|
|
65
|
-
} .tab-
|
|
65
|
+
} .tab-bar__indicator_lg08x {
|
|
66
66
|
position: absolute;
|
|
67
67
|
top: var(--gap-2xs);
|
|
68
68
|
left: calc(50% + var(--gap-2xs));
|
package/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1y5xt */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-base-bg-primary: #fff;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
} :root {
|
|
19
19
|
} :root {
|
|
20
20
|
--tab-bar-bg-color: var(--color-light-base-bg-primary);
|
|
21
|
-
} .tab-
|
|
21
|
+
} .tab-bar__component_16z03 {
|
|
22
22
|
display: flex;
|
|
23
23
|
justify-content: center;
|
|
24
24
|
height: 64px;
|
|
@@ -27,6 +27,6 @@
|
|
|
27
27
|
box-sizing: border-box;
|
|
28
28
|
overflow: hidden;
|
|
29
29
|
transition: box-shadow 0.2s ease;
|
|
30
|
-
} .tab-
|
|
30
|
+
} .tab-bar__border_16z03 {
|
|
31
31
|
box-shadow: 0 -1px 0 0 var(--color-light-neutral-300);
|
|
32
32
|
}
|
package/esm/index.js
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
1
|
export { TabBar } from './Component.js';
|
|
2
|
-
import 'tslib';
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'classnames';
|
|
5
|
-
import '@alfalab/core-components-shared/esm';
|
|
6
|
-
import './components/tab/Component.js';
|
|
7
|
-
import '@alfalab/core-components-badge/esm';
|
|
8
|
-
import '@alfalab/core-components-typography/esm';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getTabBarTestIds } from "../utils";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getTabBarTestIds } from '../utils.js';
|
package/esm/utils.d.ts
ADDED
package/esm/utils.js
ADDED
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1y5xt */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-base-bg-primary: #fff;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
} :root {
|
|
19
19
|
} :root {
|
|
20
20
|
--tab-bar-bg-color: var(--color-light-base-bg-primary);
|
|
21
|
-
} .tab-
|
|
21
|
+
} .tab-bar__component_16z03 {
|
|
22
22
|
display: flex;
|
|
23
23
|
justify-content: center;
|
|
24
24
|
height: 64px;
|
|
@@ -27,6 +27,6 @@
|
|
|
27
27
|
box-sizing: border-box;
|
|
28
28
|
overflow: hidden;
|
|
29
29
|
transition: box-shadow 0.2s ease;
|
|
30
|
-
} .tab-
|
|
30
|
+
} .tab-bar__border_16z03 {
|
|
31
31
|
box-shadow: 0 -1px 0 0 var(--color-light-neutral-300);
|
|
32
32
|
}
|
package/index.js
CHANGED
|
@@ -3,13 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var Component = require('./Component.js');
|
|
6
|
-
require('tslib');
|
|
7
|
-
require('react');
|
|
8
|
-
require('classnames');
|
|
9
|
-
require('@alfalab/core-components-shared');
|
|
10
|
-
require('./components/tab/Component.js');
|
|
11
|
-
require('@alfalab/core-components-badge');
|
|
12
|
-
require('@alfalab/core-components-typography');
|
|
13
6
|
|
|
14
7
|
|
|
15
8
|
|
package/modern/Component.js
CHANGED
|
@@ -2,10 +2,8 @@ import React, { forwardRef, Children, cloneElement } from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { getDataTestId } from '@alfalab/core-components-shared/modern';
|
|
4
4
|
import { Tab } from './components/tab/Component.js';
|
|
5
|
-
import '@alfalab/core-components-badge/modern';
|
|
6
|
-
import '@alfalab/core-components-typography/modern';
|
|
7
5
|
|
|
8
|
-
const styles = {"component":"tab-
|
|
6
|
+
const styles = {"component":"tab-bar__component_16z03","border":"tab-bar__border_16z03"};
|
|
9
7
|
require('./index.css')
|
|
10
8
|
|
|
11
9
|
const TabBarComponent = forwardRef(({ children, className, selectedId, border, dataTestId, tabClassNames, onChange, ...restProps }, ref) => {
|
|
@@ -3,7 +3,7 @@ import cn from 'classnames';
|
|
|
3
3
|
import { Badge } from '@alfalab/core-components-badge/modern';
|
|
4
4
|
import { Typography } from '@alfalab/core-components-typography/modern';
|
|
5
5
|
|
|
6
|
-
const styles = {"component":"tab-
|
|
6
|
+
const styles = {"component":"tab-bar__component_lg08x","selected":"tab-bar__selected_lg08x","icon":"tab-bar__icon_lg08x","label":"tab-bar__label_lg08x","labelSelected":"tab-bar__labelSelected_lg08x","indicator":"tab-bar__indicator_lg08x"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
const TabComponent = forwardRef(({ showIndicator, indicatorProps, label, icon, id, selected, onChange, onClick, tabClassNames = {}, dataTestId, className, labelClassName, selectedClassName, iconClassName, href, Component = href ? 'a' : 'button', ...restProps }, ref) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ov0x */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-accent-primary: #ef3124;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
--gap-xs: 8px;
|
|
20
20
|
} :root {
|
|
21
21
|
} :root {
|
|
22
|
-
} .tab-
|
|
22
|
+
} .tab-bar__component_lg08x {
|
|
23
23
|
box-sizing: border-box;
|
|
24
24
|
background-color: transparent;
|
|
25
25
|
-webkit-tap-highlight-color: transparent;
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
align-items: center;
|
|
44
44
|
padding: var(--gap-xs) 0;
|
|
45
45
|
color: var(--color-light-neutral-translucent-700);
|
|
46
|
-
} .tab-
|
|
46
|
+
} .tab-bar__selected_lg08x {
|
|
47
47
|
color: var(--color-light-accent-primary);
|
|
48
|
-
} .tab-
|
|
48
|
+
} .tab-bar__icon_lg08x {
|
|
49
49
|
display: flex;
|
|
50
50
|
align-items: center;
|
|
51
51
|
justify-content: center;
|
|
52
52
|
flex-grow: 1;
|
|
53
53
|
width: 100%;
|
|
54
|
-
} .tab-
|
|
54
|
+
} .tab-bar__label_lg08x {
|
|
55
55
|
-webkit-line-clamp: 1;
|
|
56
56
|
display: -webkit-box;
|
|
57
57
|
-webkit-box-orient: vertical;
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
flex-shrink: 0;
|
|
61
61
|
|
|
62
62
|
color: var(--color-light-text-secondary);
|
|
63
|
-
} .tab-
|
|
63
|
+
} .tab-bar__labelSelected_lg08x {
|
|
64
64
|
color: inherit;
|
|
65
|
-
} .tab-
|
|
65
|
+
} .tab-bar__indicator_lg08x {
|
|
66
66
|
position: absolute;
|
|
67
67
|
top: var(--gap-2xs);
|
|
68
68
|
left: calc(50% + var(--gap-2xs));
|
package/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1y5xt */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-base-bg-primary: #fff;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
} :root {
|
|
19
19
|
} :root {
|
|
20
20
|
--tab-bar-bg-color: var(--color-light-base-bg-primary);
|
|
21
|
-
} .tab-
|
|
21
|
+
} .tab-bar__component_16z03 {
|
|
22
22
|
display: flex;
|
|
23
23
|
justify-content: center;
|
|
24
24
|
height: 64px;
|
|
@@ -27,6 +27,6 @@
|
|
|
27
27
|
box-sizing: border-box;
|
|
28
28
|
overflow: hidden;
|
|
29
29
|
transition: box-shadow 0.2s ease;
|
|
30
|
-
} .tab-
|
|
30
|
+
} .tab-bar__border_16z03 {
|
|
31
31
|
box-shadow: 0 -1px 0 0 var(--color-light-neutral-300);
|
|
32
32
|
}
|
package/modern/index.js
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
1
|
export { TabBar } from './Component.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import 'classnames';
|
|
4
|
-
import '@alfalab/core-components-shared/modern';
|
|
5
|
-
import './components/tab/Component.js';
|
|
6
|
-
import '@alfalab/core-components-badge/modern';
|
|
7
|
-
import '@alfalab/core-components-typography/modern';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getTabBarTestIds } from "../utils";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getTabBarTestIds } from '../utils.js';
|
package/modern/utils.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-tab-bar",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"react-dom": ">=16.8.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@alfalab/core-components-typography": "^4.
|
|
18
|
+
"@alfalab/core-components-typography": "^4.5.0",
|
|
19
19
|
"@alfalab/core-components-badge": "^5.5.1",
|
|
20
20
|
"@alfalab/core-components-shared": "^0.9.1",
|
|
21
21
|
"classnames": "^2.3.1",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getTabBarTestIds } from "../utils";
|
package/shared/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getTabBarTestIds } from '../utils';
|
package/src/utils.ts
ADDED
package/utils.d.ts
ADDED
package/utils.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var coreComponentsShared = require('@alfalab/core-components-shared');
|
|
6
|
+
|
|
7
|
+
function getTabBarTestIds(dataTestId) {
|
|
8
|
+
return {
|
|
9
|
+
tabBar: dataTestId,
|
|
10
|
+
tab: coreComponentsShared.getDataTestId(dataTestId, 'tab'),
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
exports.getTabBarTestIds = getTabBarTestIds;
|