@alfalab/core-components-tabs 7.2.4 → 7.2.5
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-0d7ca9a7.d.ts +40 -0
- package/Component-3e68f8db.d.ts +11 -0
- package/Component-3fe0d3e6.d.ts +234 -0
- package/Component-85892853.d.ts +5 -0
- package/Component-97288072.d.ts +49 -0
- package/Component-bdb4c6b9.d.ts +12 -0
- package/Component-db573794.d.ts +33 -0
- package/Component-e67996e9.d.ts +168 -0
- package/Component-ebda875c.d.ts +135 -0
- package/Context-bdb4c6b9.d.ts +4 -0
- package/ResponsiveContext-baf4875b.d.ts +5 -0
- package/components/primary-tablist/Component.desktop.js +3 -3
- package/components/primary-tablist/Component.js +2 -2
- package/components/primary-tablist/Component.mobile.js +4 -4
- package/components/primary-tablist/Component.responsive.js +3 -3
- package/components/primary-tablist/index.css +29 -29
- package/components/primary-tablist/mobile.css +32 -32
- package/components/scrollable-container/Component.js +1 -1
- package/components/scrollable-container/index.css +5 -5
- package/components/secondary-tablist/Component.desktop.js +2 -2
- package/components/secondary-tablist/Component.js +1 -1
- package/components/secondary-tablist/Component.mobile.js +3 -3
- package/components/secondary-tablist/Component.responsive.js +2 -2
- package/components/secondary-tablist/index.css +11 -11
- package/components/secondary-tablist/mobile.css +13 -13
- package/components/tab/Component.js +1 -1
- package/components/tab/index.css +3 -3
- package/components/tabs/Component.desktop.js +4 -4
- package/components/tabs/Component.mobile.js +4 -4
- package/components/tabs/Component.responsive.js +4 -4
- package/components/title/Component.js +1 -1
- package/components/title/index.js +1 -1
- package/cssm/Component-0d7ca9a7.d.ts +40 -0
- package/cssm/Component-3e68f8db.d.ts +11 -0
- package/cssm/Component-3fe0d3e6.d.ts +234 -0
- package/cssm/Component-85892853.d.ts +5 -0
- package/cssm/Component-97288072.d.ts +49 -0
- package/cssm/Component-bdb4c6b9.d.ts +12 -0
- package/cssm/Component-db573794.d.ts +33 -0
- package/cssm/Component-e67996e9.d.ts +168 -0
- package/cssm/Component-ebda875c.d.ts +135 -0
- package/cssm/Context-bdb4c6b9.d.ts +4 -0
- package/cssm/ResponsiveContext-baf4875b.d.ts +5 -0
- package/cssm/components/primary-tablist/Component.desktop.js +1 -1
- package/cssm/components/primary-tablist/Component.js +1 -1
- package/cssm/components/primary-tablist/Component.mobile.js +1 -1
- package/cssm/components/primary-tablist/Component.responsive.js +1 -1
- package/cssm/components/tabs/Component.desktop.js +1 -1
- package/cssm/components/tabs/Component.mobile.js +1 -1
- package/cssm/components/tabs/Component.responsive.js +1 -1
- package/cssm/desktop.js +1 -1
- package/cssm/getDataTestId-3fe0d3e6.d.ts +2 -0
- package/cssm/hook-edac5428.d.ts +54 -0
- package/cssm/index-0d7ca9a7.d.ts +27 -0
- package/cssm/index-136acbb1.d.ts +28 -0
- package/cssm/index-3e68f8db.d.ts +98 -0
- package/cssm/index-3fe0d3e6.d.ts +1 -0
- package/cssm/index-48646db0.d.ts +2 -0
- package/cssm/index-7ca84eff.d.ts +196 -0
- package/cssm/index-bdb4c6b9.d.ts +2 -0
- package/cssm/index-e67996e9.d.ts +1 -0
- package/cssm/index-ebda875c.d.ts +3 -0
- package/cssm/index.js +1 -1
- package/cssm/mobile.js +1 -1
- package/cssm/responsive.js +1 -1
- package/cssm/typings-85892853.d.ts +553 -0
- package/cssm/typings-bdb4c6b9.d.ts +52 -0
- package/cssm/utils-1574ad8b.d.ts +28 -0
- package/cssm/utils-85892853.d.ts +38 -0
- package/desktop.js +4 -4
- package/esm/Component-0d7ca9a7.d.ts +40 -0
- package/esm/Component-3e68f8db.d.ts +11 -0
- package/esm/Component-3fe0d3e6.d.ts +234 -0
- package/esm/Component-85892853.d.ts +5 -0
- package/esm/Component-97288072.d.ts +49 -0
- package/esm/Component-bdb4c6b9.d.ts +12 -0
- package/esm/Component-db573794.d.ts +33 -0
- package/esm/Component-e67996e9.d.ts +168 -0
- package/esm/Component-ebda875c.d.ts +135 -0
- package/esm/Context-bdb4c6b9.d.ts +4 -0
- package/esm/ResponsiveContext-baf4875b.d.ts +5 -0
- package/esm/components/primary-tablist/Component.desktop.js +3 -3
- package/esm/components/primary-tablist/Component.js +2 -2
- package/esm/components/primary-tablist/Component.mobile.js +4 -4
- package/esm/components/primary-tablist/Component.responsive.js +3 -3
- package/esm/components/primary-tablist/index.css +29 -29
- package/esm/components/primary-tablist/mobile.css +32 -32
- package/esm/components/scrollable-container/Component.js +1 -1
- package/esm/components/scrollable-container/index.css +5 -5
- package/esm/components/secondary-tablist/Component.desktop.js +2 -2
- package/esm/components/secondary-tablist/Component.js +1 -1
- package/esm/components/secondary-tablist/Component.mobile.js +3 -3
- package/esm/components/secondary-tablist/Component.responsive.js +2 -2
- package/esm/components/secondary-tablist/index.css +11 -11
- package/esm/components/secondary-tablist/mobile.css +13 -13
- package/esm/components/tab/Component.js +1 -1
- package/esm/components/tab/index.css +3 -3
- package/esm/components/tabs/Component.desktop.js +4 -4
- package/esm/components/tabs/Component.mobile.js +4 -4
- package/esm/components/tabs/Component.responsive.js +4 -4
- package/esm/components/title/Component.js +1 -1
- package/esm/components/title/index.js +1 -1
- package/esm/desktop.js +4 -4
- package/esm/getDataTestId-3fe0d3e6.d.ts +2 -0
- package/esm/hook-edac5428.d.ts +54 -0
- package/esm/hooks/use-collapsible-elements.js +1 -1
- package/esm/hooks/use-tablist-titles.js +1 -1
- package/esm/index-0d7ca9a7.d.ts +27 -0
- package/esm/index-136acbb1.d.ts +28 -0
- package/esm/index-3e68f8db.d.ts +98 -0
- package/esm/index-3fe0d3e6.d.ts +1 -0
- package/esm/index-48646db0.d.ts +2 -0
- package/esm/index-7ca84eff.d.ts +196 -0
- package/esm/index-bdb4c6b9.d.ts +2 -0
- package/esm/index-e67996e9.d.ts +1 -0
- package/esm/index-ebda875c.d.ts +3 -0
- package/esm/index.js +4 -4
- package/esm/index.module-06a4ba0a.js +4 -0
- package/esm/index.module-fff420f1.js +4 -0
- package/esm/mobile.js +4 -4
- package/esm/responsive.js +4 -4
- package/esm/synthetic-events.js +1 -1
- package/esm/{tslib.es6-c7045249.d.ts → tslib.es6-442504cd.d.ts} +0 -0
- package/esm/{tslib.es6-c7045249.js → tslib.es6-442504cd.js} +0 -0
- package/esm/typings-85892853.d.ts +553 -0
- package/esm/typings-bdb4c6b9.d.ts +52 -0
- package/esm/utils-1574ad8b.d.ts +28 -0
- package/esm/utils-85892853.d.ts +38 -0
- package/getDataTestId-3fe0d3e6.d.ts +2 -0
- package/hook-edac5428.d.ts +54 -0
- package/hooks/use-collapsible-elements.js +1 -1
- package/hooks/use-tablist-titles.js +1 -1
- package/index-0d7ca9a7.d.ts +27 -0
- package/index-136acbb1.d.ts +28 -0
- package/index-3e68f8db.d.ts +98 -0
- package/index-3fe0d3e6.d.ts +1 -0
- package/index-48646db0.d.ts +2 -0
- package/index-7ca84eff.d.ts +196 -0
- package/index-bdb4c6b9.d.ts +2 -0
- package/index-e67996e9.d.ts +1 -0
- package/index-ebda875c.d.ts +3 -0
- package/index.js +4 -4
- package/index.module-a1b32357.js +6 -0
- package/index.module-cfa18052.js +6 -0
- package/mobile.js +4 -4
- package/modern/Component-0d7ca9a7.d.ts +40 -0
- package/modern/Component-3e68f8db.d.ts +11 -0
- package/modern/Component-3fe0d3e6.d.ts +234 -0
- package/modern/Component-85892853.d.ts +5 -0
- package/modern/Component-97288072.d.ts +49 -0
- package/modern/Component-bdb4c6b9.d.ts +12 -0
- package/modern/Component-db573794.d.ts +33 -0
- package/modern/Component-e67996e9.d.ts +168 -0
- package/modern/Component-ebda875c.d.ts +135 -0
- package/modern/Context-bdb4c6b9.d.ts +4 -0
- package/modern/ResponsiveContext-baf4875b.d.ts +5 -0
- package/modern/components/primary-tablist/Component.desktop.js +2 -2
- package/modern/components/primary-tablist/Component.js +1 -1
- package/modern/components/primary-tablist/Component.mobile.js +3 -3
- package/modern/components/primary-tablist/Component.responsive.js +2 -2
- package/modern/components/primary-tablist/index.css +29 -29
- package/modern/components/primary-tablist/mobile.css +32 -32
- package/modern/components/scrollable-container/Component.js +1 -1
- package/modern/components/scrollable-container/index.css +5 -5
- package/modern/components/secondary-tablist/Component.desktop.js +1 -1
- package/modern/components/secondary-tablist/Component.mobile.js +2 -2
- package/modern/components/secondary-tablist/Component.responsive.js +1 -1
- package/modern/components/secondary-tablist/index.css +11 -11
- package/modern/components/secondary-tablist/mobile.css +13 -13
- package/modern/components/tab/Component.js +1 -1
- package/modern/components/tab/index.css +3 -3
- package/modern/components/tabs/Component.desktop.js +3 -3
- package/modern/components/tabs/Component.mobile.js +3 -3
- package/modern/components/tabs/Component.responsive.js +3 -3
- package/modern/desktop.js +3 -3
- package/modern/getDataTestId-3fe0d3e6.d.ts +2 -0
- package/modern/hook-edac5428.d.ts +54 -0
- package/modern/index-0d7ca9a7.d.ts +27 -0
- package/modern/index-136acbb1.d.ts +28 -0
- package/modern/index-3e68f8db.d.ts +98 -0
- package/modern/index-3fe0d3e6.d.ts +1 -0
- package/modern/index-48646db0.d.ts +2 -0
- package/modern/index-7ca84eff.d.ts +196 -0
- package/modern/index-bdb4c6b9.d.ts +2 -0
- package/modern/index-e67996e9.d.ts +1 -0
- package/modern/index-ebda875c.d.ts +3 -0
- package/modern/index.js +3 -3
- package/modern/index.module-06a4ba0a.js +4 -0
- package/modern/index.module-fff420f1.js +4 -0
- package/modern/mobile.js +3 -3
- package/modern/responsive.js +3 -3
- package/modern/typings-85892853.d.ts +553 -0
- package/modern/typings-bdb4c6b9.d.ts +52 -0
- package/modern/utils-1574ad8b.d.ts +28 -0
- package/modern/utils-85892853.d.ts +38 -0
- package/package.json +1 -1
- package/responsive.js +4 -4
- package/synthetic-events.js +1 -1
- package/{tslib.es6-f581fd25.d.ts → tslib.es6-e85b77d3.d.ts} +0 -0
- package/{tslib.es6-f581fd25.js → tslib.es6-e85b77d3.js} +0 -0
- package/typings-85892853.d.ts +553 -0
- package/typings-bdb4c6b9.d.ts +52 -0
- package/utils-1574ad8b.d.ts +28 -0
- package/utils-85892853.d.ts +38 -0
- package/esm/index.module-0d5bb957.js +0 -4
- package/esm/index.module-464ce309.js +0 -4
- package/index.module-1f2c27dd.js +0 -6
- package/index.module-4ae8ce0c.js +0 -6
- package/modern/index.module-0d5bb957.js +0 -4
- package/modern/index.module-464ce309.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: cw4b5 */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -44,35 +44,35 @@
|
|
|
44
44
|
/* size xl */
|
|
45
45
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.tabs__component_1bxy3 {
|
|
48
48
|
position: relative;
|
|
49
49
|
display: inline-flex;
|
|
50
50
|
}
|
|
51
|
-
.
|
|
51
|
+
.tabs__fullWidthScroll_1bxy3 {
|
|
52
52
|
margin: 0 var(--gap-m);
|
|
53
53
|
}
|
|
54
|
-
.
|
|
54
|
+
.tabs__container_1bxy3 {
|
|
55
55
|
overflow: hidden;
|
|
56
56
|
}
|
|
57
|
-
.
|
|
57
|
+
.tabs__title_1bxy3 {
|
|
58
58
|
white-space: nowrap;
|
|
59
59
|
}
|
|
60
60
|
/* sizes */
|
|
61
|
-
.
|
|
61
|
+
.tabs__xxs_1bxy3 .tabs__title_1bxy3 + .tabs__title_1bxy3 {
|
|
62
62
|
margin-left: var(--secondary-tablist-xxs-gaps);
|
|
63
63
|
}
|
|
64
|
-
.
|
|
64
|
+
.tabs__xs_1bxy3 .tabs__title_1bxy3 + .tabs__title_1bxy3 {
|
|
65
65
|
margin-left: var(--secondary-tablist-xs-gaps);
|
|
66
66
|
}
|
|
67
|
-
.
|
|
67
|
+
.tabs__s_1bxy3 .tabs__title_1bxy3 + .tabs__title_1bxy3 {
|
|
68
68
|
margin-left: var(--secondary-tablist-s-gaps);
|
|
69
69
|
}
|
|
70
|
-
.
|
|
70
|
+
.tabs__m_1bxy3 .tabs__title_1bxy3 + .tabs__title_1bxy3 {
|
|
71
71
|
margin-left: var(--secondary-tablist-m-gaps);
|
|
72
72
|
}
|
|
73
|
-
.
|
|
73
|
+
.tabs__l_1bxy3 .tabs__title_1bxy3 + .tabs__title_1bxy3 {
|
|
74
74
|
margin-left: var(--secondary-tablist-l-gaps);
|
|
75
75
|
}
|
|
76
|
-
.
|
|
76
|
+
.tabs__xl_1bxy3 .tabs__title_1bxy3 + .tabs__title_1bxy3 {
|
|
77
77
|
margin-left: var(--secondary-tablist-xl-gaps);
|
|
78
78
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1mjp4 */
|
|
2
2
|
:root {
|
|
3
3
|
}:root {
|
|
4
4
|
}:root {
|
|
@@ -49,26 +49,26 @@
|
|
|
49
49
|
|
|
50
50
|
/* size xl */
|
|
51
51
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
52
|
-
}.
|
|
52
|
+
}.tabs__component_1bxy3 {
|
|
53
53
|
position: relative;
|
|
54
54
|
display: inline-flex;
|
|
55
|
-
}.
|
|
55
|
+
}.tabs__fullWidthScroll_1bxy3 {
|
|
56
56
|
margin: 0 var(--gap-m);
|
|
57
|
-
}.
|
|
57
|
+
}.tabs__container_1bxy3 {
|
|
58
58
|
overflow: hidden;
|
|
59
|
-
}.
|
|
59
|
+
}.tabs__title_1bxy3 {
|
|
60
60
|
white-space: nowrap;
|
|
61
|
-
}/* sizes */.
|
|
61
|
+
}/* sizes */.tabs__xxs_1bxy3 .tabs__title_1bxy3 + .tabs__title_1bxy3 {
|
|
62
62
|
margin-left: var(--secondary-tablist-xxs-gaps);
|
|
63
|
-
}.
|
|
63
|
+
}.tabs__xs_1bxy3 .tabs__title_1bxy3 + .tabs__title_1bxy3 {
|
|
64
64
|
margin-left: var(--secondary-tablist-xs-gaps);
|
|
65
|
-
}.
|
|
65
|
+
}.tabs__s_1bxy3 .tabs__title_1bxy3 + .tabs__title_1bxy3 {
|
|
66
66
|
margin-left: var(--secondary-tablist-s-gaps);
|
|
67
|
-
}.
|
|
67
|
+
}.tabs__m_1bxy3 .tabs__title_1bxy3 + .tabs__title_1bxy3 {
|
|
68
68
|
margin-left: var(--secondary-tablist-m-gaps);
|
|
69
|
-
}.
|
|
69
|
+
}.tabs__l_1bxy3 .tabs__title_1bxy3 + .tabs__title_1bxy3 {
|
|
70
70
|
margin-left: var(--secondary-tablist-l-gaps);
|
|
71
|
-
}.
|
|
71
|
+
}.tabs__xl_1bxy3 .tabs__title_1bxy3 + .tabs__title_1bxy3 {
|
|
72
72
|
margin-left: var(--secondary-tablist-xl-gaps);
|
|
73
73
|
}
|
|
74
74
|
:root {
|
|
@@ -885,8 +885,8 @@
|
|
|
885
885
|
/* size xl */
|
|
886
886
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
887
887
|
}
|
|
888
|
-
.
|
|
888
|
+
.tabs__title_etw6z {
|
|
889
889
|
}
|
|
890
|
-
.
|
|
890
|
+
.tabs__mobile_etw6z .tabs__title_etw6z + .tabs__title_etw6z {
|
|
891
891
|
margin-left: var(--secondary-tablist-mobile-gaps);
|
|
892
892
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
|
-
var styles = {"component":"
|
|
4
|
+
var styles = {"component":"tabs__component_rlmfg","hidden":"tabs__hidden_rlmfg"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
var Tab = function (_a) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-442504cd.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import 'classnames';
|
|
4
|
-
import '@alfalab/core-components/picker-button/desktop';
|
|
5
4
|
import '@alfalab/core-components-badge/esm';
|
|
6
5
|
import '@alfalab/core-components-keyboard-focusable/esm';
|
|
6
|
+
import '@alfalab/core-components-picker-button/esm/desktop';
|
|
7
7
|
import '@alfalab/hooks';
|
|
8
8
|
import '@juggle/resize-observer';
|
|
9
9
|
import '../../hooks/use-collapsible-elements.js';
|
|
@@ -14,11 +14,11 @@ import 'compute-scroll-into-view';
|
|
|
14
14
|
import '../scrollable-container/Component.js';
|
|
15
15
|
import '../title/Component.js';
|
|
16
16
|
import '../primary-tablist/Component.js';
|
|
17
|
-
import '../../index.module-
|
|
17
|
+
import '../../index.module-06a4ba0a.js';
|
|
18
18
|
import { PrimaryTabListDesktop } from '../primary-tablist/Component.desktop.js';
|
|
19
19
|
import '@alfalab/core-components-tag/esm';
|
|
20
20
|
import '../secondary-tablist/Component.js';
|
|
21
|
-
import '../../index.module-
|
|
21
|
+
import '../../index.module-fff420f1.js';
|
|
22
22
|
import { SecondaryTabListDesktop } from '../secondary-tablist/Component.desktop.js';
|
|
23
23
|
import { Tabs } from './Component.js';
|
|
24
24
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-442504cd.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import 'classnames';
|
|
4
|
-
import '@alfalab/core-components/picker-button/desktop';
|
|
5
4
|
import '@alfalab/core-components-badge/esm';
|
|
6
5
|
import '@alfalab/core-components-keyboard-focusable/esm';
|
|
6
|
+
import '@alfalab/core-components-picker-button/esm/desktop';
|
|
7
7
|
import '@alfalab/hooks';
|
|
8
8
|
import '@juggle/resize-observer';
|
|
9
9
|
import '../../hooks/use-collapsible-elements.js';
|
|
@@ -14,10 +14,10 @@ import 'compute-scroll-into-view';
|
|
|
14
14
|
import '../scrollable-container/Component.js';
|
|
15
15
|
import '../title/Component.js';
|
|
16
16
|
import '../primary-tablist/Component.js';
|
|
17
|
-
import '../../index.module-
|
|
17
|
+
import '../../index.module-06a4ba0a.js';
|
|
18
18
|
import '@alfalab/core-components-tag/esm';
|
|
19
19
|
import '../secondary-tablist/Component.js';
|
|
20
|
-
import '../../index.module-
|
|
20
|
+
import '../../index.module-fff420f1.js';
|
|
21
21
|
import { Tabs } from './Component.js';
|
|
22
22
|
import { PrimaryTabListMobile } from '../primary-tablist/Component.mobile.js';
|
|
23
23
|
import { SecondaryTabListMobile } from '../secondary-tablist/Component.mobile.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-442504cd.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import 'classnames';
|
|
4
|
-
import '@alfalab/core-components/picker-button/desktop';
|
|
5
4
|
import '@alfalab/core-components-badge/esm';
|
|
6
5
|
import '@alfalab/core-components-keyboard-focusable/esm';
|
|
6
|
+
import '@alfalab/core-components-picker-button/esm/desktop';
|
|
7
7
|
import '@alfalab/hooks';
|
|
8
8
|
import '@juggle/resize-observer';
|
|
9
9
|
import '../../hooks/use-collapsible-elements.js';
|
|
@@ -14,11 +14,11 @@ import 'compute-scroll-into-view';
|
|
|
14
14
|
import '../scrollable-container/Component.js';
|
|
15
15
|
import '../title/Component.js';
|
|
16
16
|
import '../primary-tablist/Component.js';
|
|
17
|
-
import '../../index.module-
|
|
17
|
+
import '../../index.module-06a4ba0a.js';
|
|
18
18
|
import '../primary-tablist/Component.desktop.js';
|
|
19
19
|
import '@alfalab/core-components-tag/esm';
|
|
20
20
|
import '../secondary-tablist/Component.js';
|
|
21
|
-
import '../../index.module-
|
|
21
|
+
import '../../index.module-fff420f1.js';
|
|
22
22
|
import '../secondary-tablist/Component.desktop.js';
|
|
23
23
|
import { Tabs } from './Component.js';
|
|
24
24
|
import '../primary-tablist/Component.mobile.js';
|
package/esm/desktop.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import './tslib.es6-
|
|
1
|
+
import './tslib.es6-442504cd.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
|
-
import '@alfalab/core-components/picker-button/desktop';
|
|
5
4
|
import '@alfalab/core-components-badge/esm';
|
|
6
5
|
import '@alfalab/core-components-keyboard-focusable/esm';
|
|
6
|
+
import '@alfalab/core-components-picker-button/esm/desktop';
|
|
7
7
|
import '@alfalab/hooks';
|
|
8
8
|
import '@juggle/resize-observer';
|
|
9
9
|
export { useCollapsibleElements } from './hooks/use-collapsible-elements.js';
|
|
@@ -14,11 +14,11 @@ import 'compute-scroll-into-view';
|
|
|
14
14
|
export { ScrollableContainer } from './components/scrollable-container/Component.js';
|
|
15
15
|
import './components/title/Component.js';
|
|
16
16
|
import './components/primary-tablist/Component.js';
|
|
17
|
-
import './index.module-
|
|
17
|
+
import './index.module-06a4ba0a.js';
|
|
18
18
|
export { PrimaryTabListDesktop } from './components/primary-tablist/Component.desktop.js';
|
|
19
19
|
import '@alfalab/core-components-tag/esm';
|
|
20
20
|
import './components/secondary-tablist/Component.js';
|
|
21
|
-
import './index.module-
|
|
21
|
+
import './index.module-fff420f1.js';
|
|
22
22
|
export { SecondaryTabListDesktop } from './components/secondary-tablist/Component.desktop.js';
|
|
23
23
|
export { Tab } from './components/tab/Component.js';
|
|
24
24
|
import './components/tabs/Component.js';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BaseSelectProps, OptionShape } from "./index-3e68f8db";
|
|
3
|
+
type useSelectWithApplyProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Список выбранных пунктов
|
|
6
|
+
*/
|
|
7
|
+
selected: BaseSelectProps['selected'];
|
|
8
|
+
/**
|
|
9
|
+
* Список вариантов выбора
|
|
10
|
+
*/
|
|
11
|
+
options: BaseSelectProps['options'];
|
|
12
|
+
/**
|
|
13
|
+
* Обработчик выбора
|
|
14
|
+
*/
|
|
15
|
+
onChange: BaseSelectProps['onChange'];
|
|
16
|
+
/**
|
|
17
|
+
* Компонент выпадающего меню
|
|
18
|
+
*/
|
|
19
|
+
OptionsList?: BaseSelectProps['OptionsList'];
|
|
20
|
+
/**
|
|
21
|
+
* Показывать кнопку очистки
|
|
22
|
+
*/
|
|
23
|
+
showClear?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Показывать пункт "Выбрать все"
|
|
26
|
+
*/
|
|
27
|
+
showSelectAll?: boolean;
|
|
28
|
+
};
|
|
29
|
+
declare const SELECT_ALL_KEY = "select_all";
|
|
30
|
+
declare function useSelectWithApply({ options, selected, onChange, OptionsList, showClear, showSelectAll, }: useSelectWithApplyProps): {
|
|
31
|
+
OptionsList: import("react").ForwardRefExoticComponent<import("./index-3e68f8db").OptionsListProps & {
|
|
32
|
+
showClear?: boolean | undefined;
|
|
33
|
+
onClose?: (() => void) | undefined;
|
|
34
|
+
selectedDraft?: OptionShape[] | undefined;
|
|
35
|
+
OptionsList?: import("react").FC<import("./index-3e68f8db").OptionsListProps & import("react").RefAttributes<unknown>> | undefined;
|
|
36
|
+
} & import("react").RefAttributes<unknown>>;
|
|
37
|
+
optionsListProps: {
|
|
38
|
+
OptionsList: import("react").FC<import("./index-3e68f8db").OptionsListProps> | undefined;
|
|
39
|
+
showClear: boolean;
|
|
40
|
+
onClear: () => void;
|
|
41
|
+
onApply: () => void;
|
|
42
|
+
onClose: () => void;
|
|
43
|
+
selectedDraft: OptionShape[];
|
|
44
|
+
};
|
|
45
|
+
allowUnselect: boolean;
|
|
46
|
+
multiple: boolean;
|
|
47
|
+
options: (OptionShape | import("./index-3e68f8db").GroupShape | {
|
|
48
|
+
key: string;
|
|
49
|
+
content: string;
|
|
50
|
+
})[];
|
|
51
|
+
onChange: (payload: import("./index-3e68f8db").BaseSelectChangePayload) => void;
|
|
52
|
+
selected: string | OptionShape | (string | OptionShape)[] | null | undefined;
|
|
53
|
+
};
|
|
54
|
+
export { SELECT_ALL_KEY, useSelectWithApply };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as __spreadArray } from '../tslib.es6-
|
|
1
|
+
import { b as __spreadArray } from '../tslib.es6-442504cd.js';
|
|
2
2
|
import { useState, useRef } from 'react';
|
|
3
3
|
import { useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
|
|
4
4
|
import { ResizeObserver } from '@juggle/resize-observer';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4
|
+
import { ButtonProps } from "./index-ebda875c";
|
|
5
|
+
import { AdditionalMobileProps } from "./index-3e68f8db";
|
|
6
|
+
import { PickerButtonDesktopProps } from "./Component-0d7ca9a7";
|
|
7
|
+
type PickerButtonMatchMedia = "desktop" | "mobile";
|
|
8
|
+
type PickerButtonProps = PickerButtonDesktopProps & AdditionalMobileProps & {
|
|
9
|
+
/**
|
|
10
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
11
|
+
* @default 1024
|
|
12
|
+
*/
|
|
13
|
+
breakpoint?: number;
|
|
14
|
+
};
|
|
15
|
+
declare const PickerButton: React.ForwardRefExoticComponent<Omit<import("./index-3e68f8db").BaseSelectProps, "placeholder" | "onFocus" | "size" | "selected" | "multiple" | "hint" | "options" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "fieldProps" | "Arrow" | "Field"> & Pick<ButtonProps, "rightAddons" | "leftAddons" | "view" | "loading"> & {
|
|
16
|
+
options: ((import("./index-3e68f8db").OptionShape | import("./index-3e68f8db").GroupShape) & {
|
|
17
|
+
icon?: React.FC<React.SVGProps<SVGSVGElement>> | undefined;
|
|
18
|
+
})[];
|
|
19
|
+
size?: import("./Component-0d7ca9a7").PickerButtonSize | undefined;
|
|
20
|
+
variant?: import("./Component-0d7ca9a7").PickerButtonVariant | undefined;
|
|
21
|
+
} & AdditionalMobileProps & {
|
|
22
|
+
breakpoint?: number | undefined;
|
|
23
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
24
|
+
type PickerButtonMobileProps = Omit<PickerButtonDesktopProps, "OptionsList" | "Checkmark" | "onScroll"> & AdditionalMobileProps;
|
|
25
|
+
declare const PickerButtonMobile: React.ForwardRefExoticComponent<Omit<PickerButtonDesktopProps, "onScroll" | "OptionsList" | "Checkmark"> & AdditionalMobileProps & React.RefAttributes<HTMLInputElement>>;
|
|
26
|
+
export { PickerButtonMatchMedia, PickerButtonProps, PickerButton, PickerButtonMobileProps, PickerButtonMobile };
|
|
27
|
+
export type { PickerButtonDesktopProps, PickerButtonSize, PickerButtonVariant } from "./Component-0d7ca9a7";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FC, ReactNode } from "react";
|
|
3
|
+
/**
|
|
4
|
+
* Набор констант для z-index соответствующих классов компонентов.
|
|
5
|
+
* Значения выбраны по приоритету.
|
|
6
|
+
*/
|
|
7
|
+
declare const stackingOrder: {
|
|
8
|
+
FOCUSED: number;
|
|
9
|
+
DEFAULT: number;
|
|
10
|
+
POPOVER: number;
|
|
11
|
+
MODAL: number;
|
|
12
|
+
TOAST: number;
|
|
13
|
+
};
|
|
14
|
+
declare const StackingContext: import("react").Context<number>;
|
|
15
|
+
type StackProps = {
|
|
16
|
+
/**
|
|
17
|
+
* Render prop, в который передается функция.
|
|
18
|
+
* Функция принимает аргумент со значением z-index из текущего контекста.
|
|
19
|
+
*/
|
|
20
|
+
children: (value: number) => ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Исходное значение для z-index.
|
|
23
|
+
* @default 5
|
|
24
|
+
*/
|
|
25
|
+
value?: number;
|
|
26
|
+
};
|
|
27
|
+
declare const Stack: FC<StackProps>;
|
|
28
|
+
export { stackingOrder, StackingContext, StackProps, Stack };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
import { FormControlProps } from "./Component-e67996e9";
|
|
5
|
+
import { BaseSelectProps, OptionProps, OptionShape } from "./typings-85892853";
|
|
6
|
+
type SelectFieldProps = FormControlProps & Record<string, unknown>;
|
|
7
|
+
type SelectProps = Omit<BaseSelectProps, "fieldProps"> & {
|
|
8
|
+
/**
|
|
9
|
+
* Пропсы, которые будут прокинуты в компонент поля
|
|
10
|
+
*/
|
|
11
|
+
fieldProps?: SelectFieldProps;
|
|
12
|
+
};
|
|
13
|
+
declare const Select: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "fieldProps"> & {
|
|
14
|
+
fieldProps?: SelectFieldProps | undefined;
|
|
15
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
17
|
+
type useSelectWithLoadingProps = {
|
|
18
|
+
loading?: boolean;
|
|
19
|
+
visibleOptions?: BaseSelectProps["visibleOptions"];
|
|
20
|
+
Option?: React.FC<OptionProps>;
|
|
21
|
+
};
|
|
22
|
+
declare function useSelectWithLoading({ loading, visibleOptions, Option }: useSelectWithLoadingProps): {
|
|
23
|
+
Option: (props: OptionProps) => JSX.Element;
|
|
24
|
+
options: OptionShape[];
|
|
25
|
+
} | null;
|
|
26
|
+
type OptionsFetcherResponse = {
|
|
27
|
+
options: OptionShape[];
|
|
28
|
+
hasMore: boolean;
|
|
29
|
+
};
|
|
30
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
31
|
+
type useLazyLoadingProps = {
|
|
32
|
+
/** Количество элементов на "странице" */
|
|
33
|
+
limit?: number;
|
|
34
|
+
/** Начальный номер "страницы" */
|
|
35
|
+
initialOffset?: number;
|
|
36
|
+
/** Скелетон загружаемых элементов */
|
|
37
|
+
skeleton?: React.ReactNode;
|
|
38
|
+
/** Компонент пункта меню */
|
|
39
|
+
Option?: React.FC<OptionProps>;
|
|
40
|
+
/**
|
|
41
|
+
* Функция-загрузчик опций.
|
|
42
|
+
* @param offset - текущая страница
|
|
43
|
+
* @param limit - количество элементов на странице
|
|
44
|
+
* @param queryString - строчные данные, пробрасываемые для поиска из кастомного инпута, расположенного в заголовке OptionsList
|
|
45
|
+
* @returns Promise<{
|
|
46
|
+
* options - список опций следующей "страницы". Они аппендятся к предыдущим
|
|
47
|
+
* hasMore - указывает, есть ли еще незагруженные элементы (в случае false перестает загружать "следующую страницу")
|
|
48
|
+
* }>
|
|
49
|
+
*/
|
|
50
|
+
optionsFetcher(offset: number, limit: number, queryString?: string): Promise<OptionsFetcherResponse>;
|
|
51
|
+
};
|
|
52
|
+
declare function useLazyLoading({ limit, initialOffset, optionsFetcher, skeleton, Option }: useLazyLoadingProps): {
|
|
53
|
+
optionsProps: {
|
|
54
|
+
Option: (props: OptionProps) => JSX.Element;
|
|
55
|
+
options: OptionShape[];
|
|
56
|
+
optionsListProps: {
|
|
57
|
+
ref: React.RefObject<HTMLDivElement>;
|
|
58
|
+
inputProps: {
|
|
59
|
+
onChange: (event: React.ChangeEvent<HTMLInputElement>, payload: {
|
|
60
|
+
value: string;
|
|
61
|
+
}) => void;
|
|
62
|
+
value: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
onOpen: (payload: {
|
|
66
|
+
open?: boolean;
|
|
67
|
+
}) => void;
|
|
68
|
+
};
|
|
69
|
+
reset: () => void;
|
|
70
|
+
};
|
|
71
|
+
type SkeletonProps = {
|
|
72
|
+
/**
|
|
73
|
+
* Флаг, явно задающий состояние, при котором контент закрывается прелоадером
|
|
74
|
+
*/
|
|
75
|
+
visible?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Флаг явного включения анимации скелета
|
|
78
|
+
*/
|
|
79
|
+
animate?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Дополнительный класс
|
|
82
|
+
*/
|
|
83
|
+
className?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
86
|
+
*/
|
|
87
|
+
dataTestId?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Дочерние элементы.
|
|
90
|
+
*/
|
|
91
|
+
children?: ReactNode;
|
|
92
|
+
};
|
|
93
|
+
declare const Skeleton: React.FC<SkeletonProps>;
|
|
94
|
+
export { SelectFieldProps, SelectProps, Select, useSelectWithLoading, useLazyLoading, SkeletonProps, Skeleton };
|
|
95
|
+
export * from "./hook-edac5428";
|
|
96
|
+
export * from "./index-48646db0";
|
|
97
|
+
export * from "./typings-85892853";
|
|
98
|
+
export * from "./utils-85892853";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./getDataTestId-3fe0d3e6";
|