@alfalab/core-components-tabs 8.1.2 → 8.1.4
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/{modern/Component-dd8ca091.d.ts → Component-0f4b9bed.d.ts} +1 -1
- package/{esm/Component-9211a437.d.ts → Component-89f0cb07.d.ts} +2 -2
- package/Component-8b2c2707.d.ts +1 -1
- package/Component.desktop-0aa4e915.d.ts +5 -0
- package/Component.desktop-785df74d.d.ts +1 -1
- package/Component.mobile-16b1285a.d.ts +5 -0
- package/Component.mobile-d7e9f69d.d.ts +1 -1
- package/collapsible.js +1 -1
- package/components/primary-tablist/Component.collapsible.js +1 -1
- package/components/primary-tablist/Component.desktop.js +1 -1
- package/components/primary-tablist/Component.mobile.js +2 -2
- package/components/primary-tablist/Component.responsive.js +1 -1
- package/components/primary-tablist/index.css +30 -31
- package/components/primary-tablist/mobile.css +33 -34
- package/components/scroll-controls/Component.js +1 -1
- package/components/scroll-controls/index.css +14 -14
- package/components/scrollable-container/Component.js +1 -1
- package/components/scrollable-container/index.css +6 -6
- package/components/secondary-tablist/Component.desktop.js +1 -1
- package/components/secondary-tablist/Component.mobile.js +2 -2
- package/components/secondary-tablist/Component.responsive.js +1 -1
- 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.collapsible.js +1 -1
- package/components/tabs/Component.desktop.js +2 -2
- package/components/tabs/Component.mobile.js +2 -2
- package/components/tabs/Component.responsive.js +2 -2
- package/{esm/Component-dd8ca091.d.ts → cssm/Component-0f4b9bed.d.ts} +1 -1
- package/{Component-9211a437.d.ts → cssm/Component-89f0cb07.d.ts} +2 -2
- package/cssm/Component-8b2c2707.d.ts +1 -1
- package/cssm/Component.desktop-0aa4e915.d.ts +5 -0
- package/cssm/Component.desktop-785df74d.d.ts +1 -1
- package/cssm/Component.mobile-16b1285a.d.ts +5 -0
- package/cssm/Component.mobile-d7e9f69d.d.ts +1 -1
- package/cssm/components/primary-tablist/index.module.css +0 -1
- package/cssm/desktop-89f0cb07.d.ts +2 -0
- package/cssm/hook-8abfea97.d.ts +8 -8
- package/cssm/hooks/use-collapsible-elements.js +2 -3
- package/cssm/index-8b2c2707.d.ts +2 -2
- package/cssm/index-c44170fe.d.ts +117 -9
- package/cssm/index-c76d6398.d.ts +2 -2
- package/cssm/index-ebda875c.d.ts +21 -86
- package/cssm/index-f12ee135.d.ts +1 -1
- package/cssm/mobile-89f0cb07.d.ts +2 -0
- package/cssm/shared-4cd3936b.d.ts +4 -4
- package/cssm/{typings-dd8ca091.d.ts → typings-0f4b9bed.d.ts} +4 -0
- package/{esm/typings-9211a437.d.ts → cssm/typings-89f0cb07.d.ts} +5 -7
- package/cssm/{utils-dd8ca091.d.ts → utils-0f4b9bed.d.ts} +1 -1
- package/desktop-89f0cb07.d.ts +2 -0
- package/desktop.js +2 -2
- package/{Component-dd8ca091.d.ts → esm/Component-0f4b9bed.d.ts} +1 -1
- package/{cssm/Component-9211a437.d.ts → esm/Component-89f0cb07.d.ts} +2 -2
- package/esm/Component-8b2c2707.d.ts +1 -1
- package/esm/Component.desktop-0aa4e915.d.ts +5 -0
- package/esm/Component.desktop-785df74d.d.ts +1 -1
- package/esm/Component.mobile-16b1285a.d.ts +5 -0
- package/esm/Component.mobile-d7e9f69d.d.ts +1 -1
- package/esm/collapsible.js +1 -1
- package/esm/components/primary-tablist/Component.collapsible.js +1 -1
- package/esm/components/primary-tablist/Component.desktop.js +1 -1
- package/esm/components/primary-tablist/Component.mobile.js +2 -2
- package/esm/components/primary-tablist/Component.responsive.js +1 -1
- package/esm/components/primary-tablist/index.css +30 -31
- package/esm/components/primary-tablist/mobile.css +33 -34
- package/esm/components/scroll-controls/Component.js +1 -1
- package/esm/components/scroll-controls/index.css +14 -14
- package/esm/components/scrollable-container/Component.js +1 -1
- package/esm/components/scrollable-container/index.css +6 -6
- package/esm/components/secondary-tablist/Component.desktop.js +1 -1
- package/esm/components/secondary-tablist/Component.mobile.js +2 -2
- package/esm/components/secondary-tablist/Component.responsive.js +1 -1
- 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.collapsible.js +1 -1
- package/esm/components/tabs/Component.desktop.js +2 -2
- package/esm/components/tabs/Component.mobile.js +2 -2
- package/esm/components/tabs/Component.responsive.js +2 -2
- package/esm/desktop-89f0cb07.d.ts +2 -0
- package/esm/desktop.js +2 -2
- package/esm/hook-8abfea97.d.ts +8 -8
- package/esm/hooks/use-collapsible-elements.js +2 -3
- package/esm/index-8b2c2707.d.ts +2 -2
- package/esm/index-c44170fe.d.ts +117 -9
- package/esm/index-c76d6398.d.ts +2 -2
- package/esm/index-f12ee135.d.ts +1 -1
- package/esm/index.js +2 -2
- package/esm/index.module-6ca3e651.js +4 -0
- package/esm/index.module-b8f71248.js +4 -0
- package/esm/mobile-89f0cb07.d.ts +2 -0
- package/esm/mobile.js +2 -2
- package/esm/shared-4cd3936b.d.ts +4 -4
- package/esm/{typings-dd8ca091.d.ts → typings-0f4b9bed.d.ts} +4 -0
- package/{modern/typings-9211a437.d.ts → esm/typings-89f0cb07.d.ts} +5 -7
- package/esm/{utils-dd8ca091.d.ts → utils-0f4b9bed.d.ts} +1 -1
- package/hook-8abfea97.d.ts +8 -8
- package/hooks/use-collapsible-elements.js +2 -3
- package/index-8b2c2707.d.ts +2 -2
- package/index-c44170fe.d.ts +117 -9
- package/index-c76d6398.d.ts +2 -2
- package/index-f12ee135.d.ts +1 -1
- package/index.js +2 -2
- package/index.module-a1834bb1.js +6 -0
- package/index.module-aa1bbee7.js +6 -0
- package/mobile-89f0cb07.d.ts +2 -0
- package/mobile.js +2 -2
- package/{cssm/Component-dd8ca091.d.ts → modern/Component-0f4b9bed.d.ts} +1 -1
- package/modern/{Component-9211a437.d.ts → Component-89f0cb07.d.ts} +2 -2
- package/modern/Component-8b2c2707.d.ts +1 -1
- package/modern/Component.desktop-0aa4e915.d.ts +5 -0
- package/modern/Component.desktop-785df74d.d.ts +1 -1
- package/modern/Component.mobile-16b1285a.d.ts +5 -0
- package/modern/Component.mobile-d7e9f69d.d.ts +1 -1
- package/modern/collapsible.js +1 -1
- package/modern/components/primary-tablist/Component.collapsible.js +1 -1
- package/modern/components/primary-tablist/Component.desktop.js +1 -1
- package/modern/components/primary-tablist/Component.mobile.js +2 -2
- package/modern/components/primary-tablist/Component.responsive.js +1 -1
- package/modern/components/primary-tablist/index.css +30 -31
- package/modern/components/primary-tablist/mobile.css +33 -34
- package/modern/components/scroll-controls/Component.js +1 -1
- package/modern/components/scroll-controls/index.css +14 -14
- package/modern/components/scrollable-container/Component.js +1 -1
- package/modern/components/scrollable-container/index.css +6 -6
- 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.collapsible.js +1 -1
- package/modern/components/tabs/Component.desktop.js +2 -2
- package/modern/components/tabs/Component.mobile.js +2 -2
- package/modern/components/tabs/Component.responsive.js +2 -2
- package/modern/desktop-89f0cb07.d.ts +2 -0
- package/modern/desktop.js +2 -2
- package/modern/hook-8abfea97.d.ts +8 -8
- package/modern/hooks/use-collapsible-elements.js +2 -3
- package/modern/index-8b2c2707.d.ts +2 -2
- package/modern/index-c44170fe.d.ts +117 -9
- package/modern/index-c76d6398.d.ts +2 -2
- package/modern/index-f12ee135.d.ts +1 -1
- package/modern/index.js +2 -2
- package/modern/index.module-361f7c8f.js +4 -0
- package/modern/index.module-446f354e.js +4 -0
- package/modern/mobile-89f0cb07.d.ts +2 -0
- package/modern/mobile.js +2 -2
- package/modern/shared-4cd3936b.d.ts +4 -4
- package/modern/{typings-dd8ca091.d.ts → typings-0f4b9bed.d.ts} +4 -0
- package/{cssm/typings-9211a437.d.ts → modern/typings-89f0cb07.d.ts} +5 -7
- package/modern/{utils-dd8ca091.d.ts → utils-0f4b9bed.d.ts} +1 -1
- package/package.json +4 -4
- package/shared-4cd3936b.d.ts +4 -4
- package/src/components/primary-tablist/index.module.css +0 -1
- package/src/hooks/use-collapsible-elements.ts +2 -6
- package/{typings-dd8ca091.d.ts → typings-0f4b9bed.d.ts} +4 -0
- package/{typings-9211a437.d.ts → typings-89f0cb07.d.ts} +5 -7
- package/{utils-dd8ca091.d.ts → utils-0f4b9bed.d.ts} +1 -1
- package/Component.desktop-2e2b2125.d.ts +0 -6
- package/Component.mobile-755fbaa3.d.ts +0 -6
- package/Component.responsive-785df74d.d.ts +0 -26
- package/cssm/Component.desktop-2e2b2125.d.ts +0 -6
- package/cssm/Component.mobile-755fbaa3.d.ts +0 -6
- package/cssm/Component.responsive-785df74d.d.ts +0 -26
- package/cssm/desktop-2e2b2125.d.ts +0 -2
- package/cssm/mobile-755fbaa3.d.ts +0 -2
- package/desktop-2e2b2125.d.ts +0 -2
- package/esm/Component.desktop-2e2b2125.d.ts +0 -6
- package/esm/Component.mobile-755fbaa3.d.ts +0 -6
- package/esm/Component.responsive-785df74d.d.ts +0 -26
- package/esm/desktop-2e2b2125.d.ts +0 -2
- package/esm/index.module-b71c96ac.js +0 -4
- package/esm/index.module-e27d67ec.js +0 -4
- package/esm/mobile-755fbaa3.d.ts +0 -2
- package/index.module-22089ba7.js +0 -6
- package/index.module-ad26a796.js +0 -6
- package/mobile-755fbaa3.d.ts +0 -2
- package/modern/Component.desktop-2e2b2125.d.ts +0 -6
- package/modern/Component.mobile-755fbaa3.d.ts +0 -6
- package/modern/Component.responsive-785df74d.d.ts +0 -26
- package/modern/desktop-2e2b2125.d.ts +0 -2
- package/modern/index.module-9374bba1.js +0 -4
- package/modern/index.module-ba38ee10.js +0 -4
- package/modern/mobile-755fbaa3.d.ts +0 -2
- /package/{Component-63dec22f.d.ts → Component-69921c40.d.ts} +0 -0
- /package/cssm/{Component-63dec22f.d.ts → Component-69921c40.d.ts} +0 -0
- /package/cssm/{mobile-96988a65.d.ts → mobile-d7e9f69d.d.ts} +0 -0
- /package/esm/{Component-63dec22f.d.ts → Component-69921c40.d.ts} +0 -0
- /package/esm/{mobile-96988a65.d.ts → mobile-d7e9f69d.d.ts} +0 -0
- /package/{mobile-96988a65.d.ts → mobile-d7e9f69d.d.ts} +0 -0
- /package/modern/{Component-63dec22f.d.ts → Component-69921c40.d.ts} +0 -0
- /package/modern/{mobile-96988a65.d.ts → mobile-d7e9f69d.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: oyglf */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
4
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
/* size l */
|
|
43
43
|
|
|
44
44
|
/* size xl */
|
|
45
|
-
} .
|
|
45
|
+
} .tabs__scrollableContainerWrapper_x7mkg {
|
|
46
46
|
display: flex;
|
|
47
|
-
} .
|
|
47
|
+
} .tabs__container_x7mkg {
|
|
48
48
|
position: relative;
|
|
49
49
|
overflow-x: auto;
|
|
50
50
|
overflow-y: hidden;
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
/* focus-outline fix */
|
|
56
56
|
margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
|
|
57
57
|
padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs)
|
|
58
|
-
} .
|
|
58
|
+
} .tabs__container_x7mkg::-webkit-scrollbar {
|
|
59
59
|
display: none;
|
|
60
|
-
} .
|
|
60
|
+
} .tabs__container_x7mkg > * {
|
|
61
61
|
flex-shrink: 0;
|
|
62
|
-
} .
|
|
62
|
+
} .tabs__fullWidthScroll_x7mkg {
|
|
63
63
|
padding-left: 0;
|
|
64
64
|
margin: var(--gap-2xs-neg) var(--gap-m-neg);
|
|
65
65
|
}
|
|
@@ -2,7 +2,7 @@ import { __rest, __assign } from 'tslib';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { TagDesktop } from '@alfalab/core-components-tag/esm/desktop';
|
|
4
4
|
import { SecondaryTabList } from './Component.js';
|
|
5
|
-
import { c as commonStyles } from '../../index.module-
|
|
5
|
+
import { c as commonStyles } from '../../index.module-6ca3e651.js';
|
|
6
6
|
import 'classnames';
|
|
7
7
|
import '../../hooks/use-tabs.js';
|
|
8
8
|
import '@alfalab/core-components-shared/esm';
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { TagMobile } from '@alfalab/core-components-tag/esm/mobile';
|
|
5
5
|
import { SecondaryTabList } from './Component.js';
|
|
6
|
-
import { c as commonStyles } from '../../index.module-
|
|
6
|
+
import { c as commonStyles } from '../../index.module-6ca3e651.js';
|
|
7
7
|
import '../../hooks/use-tabs.js';
|
|
8
8
|
import '@alfalab/core-components-shared/esm';
|
|
9
9
|
import '../scrollable-container/Component.js';
|
|
@@ -15,7 +15,7 @@ import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
|
15
15
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
16
16
|
import '../scroll-controls/utils.js';
|
|
17
17
|
|
|
18
|
-
var mobileStyles = {"title":"
|
|
18
|
+
var mobileStyles = {"title":"tabs__title_1ql23 tabs__title_6o1gl","mobile":"tabs__mobile_1ql23"};
|
|
19
19
|
require('./mobile.css')
|
|
20
20
|
|
|
21
21
|
var styles = __assign(__assign({}, commonStyles), mobileStyles);
|
|
@@ -16,7 +16,7 @@ import '@alfalab/core-components-icon-button/esm';
|
|
|
16
16
|
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
17
17
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
18
18
|
import '../scroll-controls/utils.js';
|
|
19
|
-
import '../../index.module-
|
|
19
|
+
import '../../index.module-6ca3e651.js';
|
|
20
20
|
import '@alfalab/core-components-tag/esm/mobile';
|
|
21
21
|
|
|
22
22
|
var SecondaryTabListResponsive = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 7t346 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
4
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -50,29 +50,29 @@
|
|
|
50
50
|
|
|
51
51
|
/* size xl */
|
|
52
52
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
53
|
-
} .
|
|
53
|
+
} .tabs__component_6o1gl {
|
|
54
54
|
position: relative;
|
|
55
55
|
display: inline-flex;
|
|
56
|
-
} .
|
|
56
|
+
} .tabs__fullWidthScroll_6o1gl {
|
|
57
57
|
margin: 0 var(--gap-m);
|
|
58
|
-
} .
|
|
58
|
+
} .tabs__container_6o1gl {
|
|
59
59
|
overflow: hidden;
|
|
60
60
|
|
|
61
61
|
/* focus-outline fix */
|
|
62
62
|
margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
|
|
63
63
|
padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs);
|
|
64
|
-
} .
|
|
64
|
+
} .tabs__title_6o1gl {
|
|
65
65
|
white-space: nowrap;
|
|
66
|
-
} /* sizes */ .
|
|
66
|
+
} /* sizes */ .tabs__xxs_6o1gl .tabs__title_6o1gl + .tabs__title_6o1gl {
|
|
67
67
|
margin-left: var(--secondary-tablist-xxs-gaps);
|
|
68
|
-
} .
|
|
68
|
+
} .tabs__xs_6o1gl .tabs__title_6o1gl + .tabs__title_6o1gl {
|
|
69
69
|
margin-left: var(--secondary-tablist-xs-gaps);
|
|
70
|
-
} .
|
|
70
|
+
} .tabs__s_6o1gl .tabs__title_6o1gl + .tabs__title_6o1gl {
|
|
71
71
|
margin-left: var(--secondary-tablist-s-gaps);
|
|
72
|
-
} .
|
|
72
|
+
} .tabs__m_6o1gl .tabs__title_6o1gl + .tabs__title_6o1gl {
|
|
73
73
|
margin-left: var(--secondary-tablist-m-gaps);
|
|
74
|
-
} .
|
|
74
|
+
} .tabs__l_6o1gl .tabs__title_6o1gl + .tabs__title_6o1gl {
|
|
75
75
|
margin-left: var(--secondary-tablist-l-gaps);
|
|
76
|
-
} .
|
|
76
|
+
} .tabs__xl_6o1gl .tabs__title_6o1gl + .tabs__title_6o1gl {
|
|
77
77
|
margin-left: var(--secondary-tablist-xl-gaps);
|
|
78
78
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: tm4s7 */
|
|
2
2
|
:root {
|
|
3
3
|
}/* deprecated */:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
4
|
}:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -51,30 +51,30 @@
|
|
|
51
51
|
|
|
52
52
|
/* size xl */
|
|
53
53
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
54
|
-
}.
|
|
54
|
+
}.tabs__component_6o1gl {
|
|
55
55
|
position: relative;
|
|
56
56
|
display: inline-flex;
|
|
57
|
-
}.
|
|
57
|
+
}.tabs__fullWidthScroll_6o1gl {
|
|
58
58
|
margin: 0 var(--gap-m);
|
|
59
|
-
}.
|
|
59
|
+
}.tabs__container_6o1gl {
|
|
60
60
|
overflow: hidden;
|
|
61
61
|
|
|
62
62
|
/* focus-outline fix */
|
|
63
63
|
margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
|
|
64
64
|
padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs);
|
|
65
|
-
}.
|
|
65
|
+
}.tabs__title_6o1gl {
|
|
66
66
|
white-space: nowrap;
|
|
67
|
-
}/* sizes */.
|
|
67
|
+
}/* sizes */.tabs__xxs_6o1gl .tabs__title_6o1gl + .tabs__title_6o1gl {
|
|
68
68
|
margin-left: var(--secondary-tablist-xxs-gaps);
|
|
69
|
-
}.
|
|
69
|
+
}.tabs__xs_6o1gl .tabs__title_6o1gl + .tabs__title_6o1gl {
|
|
70
70
|
margin-left: var(--secondary-tablist-xs-gaps);
|
|
71
|
-
}.
|
|
71
|
+
}.tabs__s_6o1gl .tabs__title_6o1gl + .tabs__title_6o1gl {
|
|
72
72
|
margin-left: var(--secondary-tablist-s-gaps);
|
|
73
|
-
}.
|
|
73
|
+
}.tabs__m_6o1gl .tabs__title_6o1gl + .tabs__title_6o1gl {
|
|
74
74
|
margin-left: var(--secondary-tablist-m-gaps);
|
|
75
|
-
}.
|
|
75
|
+
}.tabs__l_6o1gl .tabs__title_6o1gl + .tabs__title_6o1gl {
|
|
76
76
|
margin-left: var(--secondary-tablist-l-gaps);
|
|
77
|
-
}.
|
|
77
|
+
}.tabs__xl_6o1gl .tabs__title_6o1gl + .tabs__title_6o1gl {
|
|
78
78
|
margin-left: var(--secondary-tablist-xl-gaps);
|
|
79
79
|
} :root {
|
|
80
80
|
--color-dark-indigo: #0b1f35;
|
|
@@ -979,7 +979,7 @@
|
|
|
979
979
|
|
|
980
980
|
/* size xl */
|
|
981
981
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
982
|
-
} .
|
|
983
|
-
} .
|
|
982
|
+
} .tabs__title_1ql23 {
|
|
983
|
+
} .tabs__mobile_1ql23 .tabs__title_1ql23 + .tabs__title_1ql23 {
|
|
984
984
|
margin-left: var(--secondary-tablist-mobile-gaps);
|
|
985
985
|
}
|
|
@@ -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_1ekcu","hidden":"tabs__hidden_1ekcu"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
var Tab = function (_a) {
|
|
@@ -15,7 +15,7 @@ import '../../hooks/use-tabs.js';
|
|
|
15
15
|
import '@alfalab/core-components-shared/esm';
|
|
16
16
|
import '../../synthetic-events.js';
|
|
17
17
|
import '../title/Component.js';
|
|
18
|
-
import '../../index.module-
|
|
18
|
+
import '../../index.module-b8f71248.js';
|
|
19
19
|
|
|
20
20
|
var TabsCollapsible = function (_a) {
|
|
21
21
|
var restProps = __rest(_a, []);
|
|
@@ -17,10 +17,10 @@ import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
|
17
17
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
18
18
|
import '../scroll-controls/utils.js';
|
|
19
19
|
import '../title/Component.js';
|
|
20
|
-
import '../../index.module-
|
|
20
|
+
import '../../index.module-b8f71248.js';
|
|
21
21
|
import '@alfalab/core-components-tag/esm/desktop';
|
|
22
22
|
import '../secondary-tablist/Component.js';
|
|
23
|
-
import '../../index.module-
|
|
23
|
+
import '../../index.module-6ca3e651.js';
|
|
24
24
|
|
|
25
25
|
var views = {
|
|
26
26
|
primary: PrimaryTabListDesktop,
|
|
@@ -17,10 +17,10 @@ import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
|
17
17
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
18
18
|
import '../scroll-controls/utils.js';
|
|
19
19
|
import '../title/Component.js';
|
|
20
|
-
import '../../index.module-
|
|
20
|
+
import '../../index.module-b8f71248.js';
|
|
21
21
|
import '@alfalab/core-components-tag/esm/mobile';
|
|
22
22
|
import '../secondary-tablist/Component.js';
|
|
23
|
-
import '../../index.module-
|
|
23
|
+
import '../../index.module-6ca3e651.js';
|
|
24
24
|
|
|
25
25
|
var views = {
|
|
26
26
|
primary: PrimaryTabListMobile,
|
|
@@ -19,12 +19,12 @@ import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
|
19
19
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
20
20
|
import '../scroll-controls/utils.js';
|
|
21
21
|
import '../title/Component.js';
|
|
22
|
-
import '../../index.module-
|
|
22
|
+
import '../../index.module-b8f71248.js';
|
|
23
23
|
import '../primary-tablist/Component.mobile.js';
|
|
24
24
|
import '../secondary-tablist/Component.desktop.js';
|
|
25
25
|
import '@alfalab/core-components-tag/esm/desktop';
|
|
26
26
|
import '../secondary-tablist/Component.js';
|
|
27
|
-
import '../../index.module-
|
|
27
|
+
import '../../index.module-6ca3e651.js';
|
|
28
28
|
import '../secondary-tablist/Component.mobile.js';
|
|
29
29
|
import '@alfalab/core-components-tag/esm/mobile';
|
|
30
30
|
|
package/esm/desktop.js
CHANGED
|
@@ -18,8 +18,8 @@ import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
|
18
18
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
19
19
|
import './components/scroll-controls/utils.js';
|
|
20
20
|
import './components/title/Component.js';
|
|
21
|
-
import './index.module-
|
|
21
|
+
import './index.module-b8f71248.js';
|
|
22
22
|
import '@alfalab/core-components-tag/esm/desktop';
|
|
23
23
|
import './components/secondary-tablist/Component.js';
|
|
24
|
-
import './index.module-
|
|
24
|
+
import './index.module-6ca3e651.js';
|
|
25
25
|
import './components/tabs/Component.js';
|
package/esm/hook-8abfea97.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseSelectProps, OptionShape } from "./typings-
|
|
2
|
+
import { BaseSelectProps, OptionShape } from "./typings-0f4b9bed";
|
|
3
3
|
type UseSelectWithApplyProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Список выбранных пунктов
|
|
@@ -44,20 +44,20 @@ type UseSelectWithApplyProps = {
|
|
|
44
44
|
};
|
|
45
45
|
declare const SELECT_ALL_KEY = "select_all";
|
|
46
46
|
declare function useSelectWithApply({ options, selected, onChange, OptionsList, optionsListProps, showClear, showSelectAll, showHeaderWithSelectAll, showSearch, searchProps, }: UseSelectWithApplyProps): {
|
|
47
|
-
OptionsList: import("react").ForwardRefExoticComponent<import("./typings-
|
|
47
|
+
OptionsList: import("react").ForwardRefExoticComponent<import("./typings-0f4b9bed").OptionsListProps & {
|
|
48
48
|
showClear?: boolean | undefined;
|
|
49
49
|
onClose?: (() => void) | undefined; /**
|
|
50
50
|
* Компонент выпадающего меню
|
|
51
51
|
*/
|
|
52
52
|
selectedDraft?: OptionShape[] | undefined;
|
|
53
|
-
OptionsList?: import("react").FC<import("./typings-
|
|
54
|
-
Footer?: import("react").FC<import("./Component-
|
|
53
|
+
OptionsList?: import("react").FC<import("./typings-0f4b9bed").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
54
|
+
Footer?: import("react").FC<import("./Component-0f4b9bed").FooterProps> | undefined;
|
|
55
55
|
Header?: import("react").FC<import("./Component-ebda875c").HeaderProps> | undefined;
|
|
56
56
|
headerProps?: import("./Component-ebda875c").HeaderProps | undefined;
|
|
57
57
|
showHeaderWithSelectAll?: boolean | undefined;
|
|
58
58
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
59
59
|
optionsListProps: {
|
|
60
|
-
OptionsList: import("react").FC<import("./typings-
|
|
60
|
+
OptionsList: import("react").FC<import("./typings-0f4b9bed").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
61
61
|
showClear: boolean;
|
|
62
62
|
onClear: () => void;
|
|
63
63
|
onApply: () => void;
|
|
@@ -72,11 +72,11 @@ declare function useSelectWithApply({ options, selected, onChange, OptionsList,
|
|
|
72
72
|
};
|
|
73
73
|
allowUnselect: boolean;
|
|
74
74
|
multiple: boolean;
|
|
75
|
-
options: (OptionShape | import("./typings-
|
|
75
|
+
options: (OptionShape | import("./typings-0f4b9bed").GroupShape | {
|
|
76
76
|
key: string;
|
|
77
77
|
content: string;
|
|
78
78
|
})[];
|
|
79
|
-
onChange: (payload: import("./typings-
|
|
79
|
+
onChange: (payload: import("./typings-0f4b9bed").BaseSelectChangePayload) => void;
|
|
80
80
|
selected: string | OptionShape | (string | OptionShape)[] | null | undefined;
|
|
81
81
|
showSearch: boolean | undefined;
|
|
82
82
|
searchProps: {
|
|
@@ -86,5 +86,5 @@ declare function useSelectWithApply({ options, selected, onChange, OptionsList,
|
|
|
86
86
|
accessor?: ((option: OptionShape) => string) | undefined;
|
|
87
87
|
} | undefined;
|
|
88
88
|
};
|
|
89
|
-
export * from "./Component-
|
|
89
|
+
export * from "./Component-0f4b9bed";
|
|
90
90
|
export { UseSelectWithApplyProps, SELECT_ALL_KEY, useSelectWithApply };
|
|
@@ -36,9 +36,8 @@ var useCollapsibleElements = function (selectors, deps) {
|
|
|
36
36
|
collapseElements(inlineSize);
|
|
37
37
|
}
|
|
38
38
|
else {
|
|
39
|
-
//
|
|
40
|
-
|
|
41
|
-
collapseElements(inlineSize);
|
|
39
|
+
// old browser compatibility. See https://caniuse.com/mdn-api_resizeobserverentry_contentboxsize
|
|
40
|
+
collapseElements(entries[0].contentRect.width);
|
|
42
41
|
}
|
|
43
42
|
};
|
|
44
43
|
var ResizeObserver$1 = window.ResizeObserver || ResizeObserver;
|
package/esm/index-8b2c2707.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { ButtonProps } from "./typings-
|
|
3
|
+
import { ButtonProps } from "./typings-89f0cb07";
|
|
4
4
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
5
5
|
export { Button };
|
|
6
|
-
export type { ButtonProps } from "./typings-
|
|
6
|
+
export type { ButtonProps } from "./typings-89f0cb07";
|
package/esm/index-c44170fe.d.ts
CHANGED
|
@@ -1,6 +1,119 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
|
-
|
|
3
|
+
import { HTMLAttributes, ReactNode } from "react";
|
|
4
|
+
type StyleColors = {
|
|
5
|
+
default: {
|
|
6
|
+
[key: string]: string;
|
|
7
|
+
};
|
|
8
|
+
inverted: {
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
type BaseFormControlProps = HTMLAttributes<HTMLDivElement> & {
|
|
13
|
+
/**
|
|
14
|
+
* Растягивает компонент на ширину контейнера
|
|
15
|
+
*/
|
|
16
|
+
block?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Размер компонента
|
|
19
|
+
*/
|
|
20
|
+
size?: "s" | "m" | "l" | "xl";
|
|
21
|
+
/**
|
|
22
|
+
* Набор цветов для компонента
|
|
23
|
+
*/
|
|
24
|
+
colors?: "default" | "inverted";
|
|
25
|
+
/**
|
|
26
|
+
* Заблокированное состояние
|
|
27
|
+
*/
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Cостояние только для чтения
|
|
31
|
+
*/
|
|
32
|
+
readOnly?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Заполненное состояние
|
|
35
|
+
*/
|
|
36
|
+
filled?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Выбранное (фокус) состояние
|
|
39
|
+
*/
|
|
40
|
+
focused?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Отображение ошибки
|
|
43
|
+
*/
|
|
44
|
+
error?: ReactNode | boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Текст подсказки
|
|
47
|
+
*/
|
|
48
|
+
hint?: ReactNode;
|
|
49
|
+
/**
|
|
50
|
+
* Лейбл компонента
|
|
51
|
+
*/
|
|
52
|
+
label?: ReactNode;
|
|
53
|
+
/**
|
|
54
|
+
* Вид лейбла внутри / снаружи
|
|
55
|
+
*/
|
|
56
|
+
labelView?: "inner" | "outer";
|
|
57
|
+
/**
|
|
58
|
+
* Слот слева
|
|
59
|
+
*/
|
|
60
|
+
leftAddons?: ReactNode;
|
|
61
|
+
/**
|
|
62
|
+
* Слот справа
|
|
63
|
+
*/
|
|
64
|
+
rightAddons?: ReactNode;
|
|
65
|
+
/**
|
|
66
|
+
* Слот под полем
|
|
67
|
+
*/
|
|
68
|
+
bottomAddons?: ReactNode;
|
|
69
|
+
/**
|
|
70
|
+
* Дополнительный класс
|
|
71
|
+
*/
|
|
72
|
+
className?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Дополнительный класс для поля
|
|
75
|
+
*/
|
|
76
|
+
fieldClassName?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Дополнительный класс для поля
|
|
79
|
+
*/
|
|
80
|
+
inputWrapperClassName?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Дополнительный класс для лейбла
|
|
83
|
+
*/
|
|
84
|
+
labelClassName?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Дополнительный класс для аддонов
|
|
87
|
+
*/
|
|
88
|
+
addonsClassName?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Свойства для обертки левых аддонов
|
|
91
|
+
*/
|
|
92
|
+
leftAddonsProps?: HTMLAttributes<HTMLDivElement>;
|
|
93
|
+
/**
|
|
94
|
+
* Свойства для обертки правых аддонов
|
|
95
|
+
*/
|
|
96
|
+
rightAddonsProps?: HTMLAttributes<HTMLDivElement>;
|
|
97
|
+
/**
|
|
98
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
99
|
+
*/
|
|
100
|
+
dataTestId?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Компонент поля (инпут, textarea и пр.)
|
|
103
|
+
*/
|
|
104
|
+
children?: ReactNode;
|
|
105
|
+
/**
|
|
106
|
+
* Основные стили компонента.
|
|
107
|
+
*/
|
|
108
|
+
styles: {
|
|
109
|
+
[key: string]: string;
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* Стили компонента для default и inverted режима.
|
|
113
|
+
*/
|
|
114
|
+
colorStyles?: StyleColors;
|
|
115
|
+
};
|
|
116
|
+
type FormControlProps = Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
|
|
4
117
|
/**
|
|
5
118
|
* Контрольная точка, с нее начинается desktop версия
|
|
6
119
|
* @default 1024
|
|
@@ -11,13 +124,8 @@ type InputProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles"> &
|
|
|
11
124
|
*/
|
|
12
125
|
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
13
126
|
};
|
|
14
|
-
declare const
|
|
127
|
+
declare const FormControl: React.ForwardRefExoticComponent<Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
|
|
15
128
|
breakpoint?: number | undefined;
|
|
16
129
|
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
17
|
-
} & React.RefAttributes<
|
|
18
|
-
|
|
19
|
-
declare const InputDesktop: React.ForwardRefExoticComponent<InputDesktopProps & React.RefAttributes<HTMLInputElement>>;
|
|
20
|
-
type InputMobileProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles">;
|
|
21
|
-
declare const InputMobile: React.ForwardRefExoticComponent<InputMobileProps & React.RefAttributes<HTMLInputElement>>;
|
|
22
|
-
export { InputProps, Input, InputDesktopProps, InputDesktop, InputMobileProps, InputMobile };
|
|
23
|
-
export * from "./Component.desktop-785df74d";
|
|
130
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
131
|
+
export { FormControlProps, FormControl };
|
package/esm/index-c76d6398.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ type NavigationBarProps = {
|
|
|
44
44
|
/**
|
|
45
45
|
* Подзаголовок (доступен только в мобильной версии)
|
|
46
46
|
*/
|
|
47
|
-
subtitle?:
|
|
47
|
+
subtitle?: ReactNode;
|
|
48
48
|
/**
|
|
49
49
|
* Размер заголовка (compact доступен только в мобильной версии)
|
|
50
50
|
*/
|
|
@@ -136,5 +136,5 @@ type NavigationBarProps = {
|
|
|
136
136
|
};
|
|
137
137
|
declare const NavigationBar: React.ForwardRefExoticComponent<NavigationBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
138
138
|
export { NavigationBar };
|
|
139
|
-
export * from "./Component-
|
|
139
|
+
export * from "./Component-69921c40";
|
|
140
140
|
export type { NavigationBarProps };
|
package/esm/index-f12ee135.d.ts
CHANGED
package/esm/index.js
CHANGED
|
@@ -20,12 +20,12 @@ import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
|
20
20
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
21
21
|
import './components/scroll-controls/utils.js';
|
|
22
22
|
import './components/title/Component.js';
|
|
23
|
-
import './index.module-
|
|
23
|
+
import './index.module-b8f71248.js';
|
|
24
24
|
import './components/primary-tablist/Component.mobile.js';
|
|
25
25
|
import './components/secondary-tablist/Component.desktop.js';
|
|
26
26
|
import '@alfalab/core-components-tag/esm/desktop';
|
|
27
27
|
import './components/secondary-tablist/Component.js';
|
|
28
|
-
import './index.module-
|
|
28
|
+
import './index.module-6ca3e651.js';
|
|
29
29
|
import './components/secondary-tablist/Component.mobile.js';
|
|
30
30
|
import '@alfalab/core-components-tag/esm/mobile';
|
|
31
31
|
import './components/tabs/Component.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var commonStyles = {"component":"tabs__component_6o1gl","fullWidthScroll":"tabs__fullWidthScroll_6o1gl","container":"tabs__container_6o1gl","title":"tabs__title_6o1gl","xxs":"tabs__xxs_6o1gl","xs":"tabs__xs_6o1gl","s":"tabs__s_6o1gl","m":"tabs__m_6o1gl","l":"tabs__l_6o1gl","xl":"tabs__xl_6o1gl"};
|
|
2
|
+
require('./components/secondary-tablist/index.css')
|
|
3
|
+
|
|
4
|
+
export { commonStyles as c };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var commonStyles = {"component":"tabs__component_vtb9t","fullWidthScroll":"tabs__fullWidthScroll_vtb9t","container":"tabs__container_vtb9t","title":"tabs__title_vtb9t","disabled":"tabs__disabled_vtb9t","focused":"tabs__focused_vtb9t","collapsed":"tabs__collapsed_vtb9t","selected":"tabs__selected_vtb9t","line":"tabs__line_vtb9t","option":"tabs__option_vtb9t","s":"tabs__s_vtb9t","xs":"tabs__xs_vtb9t","xxs":"tabs__xxs_vtb9t","pickerWrapper":"tabs__pickerWrapper_vtb9t","m":"tabs__m_vtb9t","l":"tabs__l_vtb9t","xl":"tabs__xl_vtb9t","rightAddons":"tabs__rightAddons_vtb9t"};
|
|
2
|
+
require('./components/primary-tablist/index.css')
|
|
3
|
+
|
|
4
|
+
export { commonStyles as c };
|
package/esm/mobile.js
CHANGED
|
@@ -18,8 +18,8 @@ import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
|
18
18
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
19
19
|
import './components/scroll-controls/utils.js';
|
|
20
20
|
import './components/title/Component.js';
|
|
21
|
-
import './index.module-
|
|
21
|
+
import './index.module-b8f71248.js';
|
|
22
22
|
import '@alfalab/core-components-tag/esm/mobile';
|
|
23
23
|
import './components/secondary-tablist/Component.js';
|
|
24
|
-
import './index.module-
|
|
24
|
+
import './index.module-6ca3e651.js';
|
|
25
25
|
import './components/tabs/Component.js';
|
package/esm/shared-4cd3936b.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
|
-
import { BaseSelectProps, OptionProps, OptionShape } from "./typings-
|
|
4
|
+
import { BaseSelectProps, OptionProps, OptionShape } from "./typings-0f4b9bed";
|
|
5
5
|
import { BottomSheetProps } from "./index-f12ee135";
|
|
6
6
|
import { UseSelectWithApplyProps } from "./hook-8abfea97";
|
|
7
7
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
@@ -100,8 +100,8 @@ type FooterProps = {
|
|
|
100
100
|
};
|
|
101
101
|
declare const Footer: ({ handleApply, handleClear, showClear }: FooterProps) => React.JSX.Element;
|
|
102
102
|
export * from "./index-ebda875c";
|
|
103
|
-
export * from "./Component-
|
|
103
|
+
export * from "./Component-0f4b9bed";
|
|
104
104
|
export { useSelectWithLoading, useLazyLoading, AdditionalMobileProps, SelectMobileProps, SelectMobile, FooterProps, Footer };
|
|
105
105
|
export * from "./hook-8abfea97";
|
|
106
|
-
export * from "./typings-
|
|
107
|
-
export * from "./utils-
|
|
106
|
+
export * from "./typings-0f4b9bed";
|
|
107
|
+
export * from "./utils-0f4b9bed";
|
|
@@ -459,6 +459,10 @@ type OptionsListProps = {
|
|
|
459
459
|
* Обработчик отмены изменений
|
|
460
460
|
*/
|
|
461
461
|
onClear?: () => void;
|
|
462
|
+
/**
|
|
463
|
+
* Указать индекс пункта для hover состояния
|
|
464
|
+
*/
|
|
465
|
+
setHighlightedIndex?: (index: number) => void;
|
|
462
466
|
};
|
|
463
467
|
type OptgroupProps = {
|
|
464
468
|
/**
|
|
@@ -69,6 +69,8 @@ type ComponentProps = {
|
|
|
69
69
|
* Дочерние элементы.
|
|
70
70
|
*/
|
|
71
71
|
children?: ReactNode;
|
|
72
|
+
};
|
|
73
|
+
type PrivateButtonProps = {
|
|
72
74
|
/**
|
|
73
75
|
* Основные стили компонента.
|
|
74
76
|
*/
|
|
@@ -80,16 +82,12 @@ type ComponentProps = {
|
|
|
80
82
|
*/
|
|
81
83
|
colorStylesMap: StyleColors;
|
|
82
84
|
};
|
|
83
|
-
type
|
|
84
|
-
type
|
|
85
|
-
type BaseButtonProps = Partial<AnchorBaseButtonProps | NativeBaseButtonProps>;
|
|
86
|
-
type AnchorButtonProps = Omit<BaseButtonProps, 'styles' | 'colorStylesMap'> & AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
87
|
-
type NativeButtonProps = Omit<BaseButtonProps, 'styles' | 'colorStylesMap'> & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
88
|
-
type ButtonProps = Partial<AnchorButtonProps | NativeButtonProps> & {
|
|
85
|
+
type CommonButtonProps = ComponentProps & Partial<AnchorHTMLAttributes<HTMLAnchorElement> | ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
86
|
+
type ButtonProps = CommonButtonProps & {
|
|
89
87
|
/**
|
|
90
88
|
* Контрольная точка, с нее начинается desktop версия
|
|
91
89
|
* @default 1024
|
|
92
90
|
*/
|
|
93
91
|
breakpoint?: number;
|
|
94
92
|
};
|
|
95
|
-
export { StyleColors, ComponentProps,
|
|
93
|
+
export { StyleColors, ComponentProps, PrivateButtonProps, CommonButtonProps, ButtonProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode, RefObject } from 'react';
|
|
2
|
-
import { BaseSelectProps, GroupShape, OptionShape } from "./typings-
|
|
2
|
+
import { BaseSelectProps, GroupShape, OptionShape } from "./typings-0f4b9bed";
|
|
3
3
|
declare const isGroup: (item: OptionShape | GroupShape) => item is GroupShape;
|
|
4
4
|
declare const isOptionShape: (item: OptionShape | string | null) => item is OptionShape;
|
|
5
5
|
declare const joinOptions: ({ selected, selectedMultiple, }: {
|