@alfalab/core-components-tabs 8.1.6 → 8.2.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/collapsible/index.d.ts +2 -0
- package/{collapsible.js → collapsible/index.js} +10 -10
- package/collapsible/package.json +3 -0
- package/components/primary-tablist/Component.collapsible.js +9 -9
- package/components/primary-tablist/Component.desktop.js +2 -2
- package/components/primary-tablist/Component.mobile.js +3 -3
- package/components/primary-tablist/Component.responsive.js +1 -1
- package/components/primary-tablist/index.css +30 -30
- package/components/primary-tablist/mobile.css +33 -33
- 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/cssm/collapsible/index.d.ts +2 -0
- package/cssm/{collapsible.js → collapsible/index.js} +11 -11
- package/cssm/desktop/index.d.ts +4 -0
- package/cssm/desktop/index.js +40 -0
- package/cssm/mobile/index.d.ts +4 -0
- package/cssm/mobile/index.js +42 -0
- package/cssm/shared/index.d.ts +4 -0
- package/cssm/{shared.js → shared/index.js} +7 -7
- package/desktop/index.d.ts +4 -0
- package/desktop/index.js +37 -0
- package/desktop/package.json +3 -0
- package/esm/collapsible/index.d.ts +2 -0
- package/esm/collapsible/index.js +20 -0
- package/esm/components/primary-tablist/Component.collapsible.js +9 -9
- package/esm/components/primary-tablist/Component.desktop.js +2 -2
- package/esm/components/primary-tablist/Component.mobile.js +3 -3
- package/esm/components/primary-tablist/Component.responsive.js +1 -1
- package/esm/components/primary-tablist/index.css +30 -30
- package/esm/components/primary-tablist/mobile.css +33 -33
- 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/index.d.ts +4 -0
- package/esm/desktop/index.js +26 -0
- package/esm/index.js +2 -2
- package/esm/index.module-0eaed9a1.js +4 -0
- package/esm/index.module-9c24fafb.js +4 -0
- package/esm/mobile/index.d.ts +4 -0
- package/esm/mobile/index.js +26 -0
- package/esm/shared/index.d.ts +4 -0
- package/esm/{shared.js → shared/index.js} +5 -5
- package/index.js +2 -2
- package/index.module-177df2c1.js +6 -0
- package/index.module-2f940b9f.js +6 -0
- package/mobile/index.d.ts +4 -0
- package/mobile/index.js +37 -0
- package/mobile/package.json +3 -0
- package/modern/collapsible/index.d.ts +2 -0
- package/modern/collapsible/index.js +19 -0
- package/modern/components/primary-tablist/Component.collapsible.js +9 -9
- package/modern/components/primary-tablist/Component.desktop.js +2 -2
- package/modern/components/primary-tablist/Component.mobile.js +3 -3
- package/modern/components/primary-tablist/Component.responsive.js +1 -1
- package/modern/components/primary-tablist/index.css +30 -30
- package/modern/components/primary-tablist/mobile.css +33 -33
- 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/index.d.ts +4 -0
- package/modern/desktop/index.js +25 -0
- package/modern/index.js +2 -2
- package/modern/index.module-4070c7f9.js +4 -0
- package/modern/index.module-a791a93d.js +4 -0
- package/modern/mobile/index.d.ts +4 -0
- package/modern/mobile/index.js +25 -0
- package/modern/shared/index.d.ts +4 -0
- package/modern/{shared.js → shared/index.js} +5 -5
- package/package.json +5 -5
- package/shared/index.d.ts +4 -0
- package/{shared.js → shared/index.js} +5 -5
- package/shared/package.json +3 -0
- package/src/collapsible/index.ts +2 -0
- package/src/collapsible/package.json +3 -0
- package/src/desktop/index.ts +4 -0
- package/src/desktop/package.json +3 -0
- package/src/mobile/index.ts +4 -0
- package/src/mobile/package.json +3 -0
- package/src/shared/index.ts +4 -0
- package/src/shared/package.json +3 -0
- package/Component-0f4b9bed.d.ts +0 -100
- package/Component-4cd3936b.d.ts +0 -12
- package/Component-69921c40.d.ts +0 -184
- package/Component-89f0cb07.d.ts +0 -38
- package/Component-8b2c2707.d.ts +0 -14
- package/Component-bdb4c6b9.d.ts +0 -12
- package/Component-c76d6398.d.ts +0 -5
- package/Component-ebda875c.d.ts +0 -12
- package/Component.desktop-0aa4e915.d.ts +0 -5
- package/Component.desktop-785df74d.d.ts +0 -6
- package/Component.mobile-16b1285a.d.ts +0 -5
- package/Component.mobile-d7e9f69d.d.ts +0 -6
- package/Component.mobile-ebda875c.d.ts +0 -6
- package/Context-bdb4c6b9.d.ts +0 -4
- package/ResponsiveContext-baf4875b.d.ts +0 -5
- package/collapsible.d.ts +0 -2
- package/consts-f777ba1a.d.ts +0 -2
- package/cssm/Component-0f4b9bed.d.ts +0 -100
- package/cssm/Component-4cd3936b.d.ts +0 -12
- package/cssm/Component-69921c40.d.ts +0 -184
- package/cssm/Component-89f0cb07.d.ts +0 -38
- package/cssm/Component-8b2c2707.d.ts +0 -14
- package/cssm/Component-bdb4c6b9.d.ts +0 -12
- package/cssm/Component-c76d6398.d.ts +0 -5
- package/cssm/Component-ebda875c.d.ts +0 -12
- package/cssm/Component.desktop-0aa4e915.d.ts +0 -5
- package/cssm/Component.desktop-785df74d.d.ts +0 -6
- package/cssm/Component.mobile-16b1285a.d.ts +0 -5
- package/cssm/Component.mobile-d7e9f69d.d.ts +0 -6
- package/cssm/Component.mobile-ebda875c.d.ts +0 -6
- package/cssm/Context-bdb4c6b9.d.ts +0 -4
- package/cssm/ResponsiveContext-baf4875b.d.ts +0 -5
- package/cssm/collapsible.d.ts +0 -2
- package/cssm/consts-f777ba1a.d.ts +0 -2
- package/cssm/desktop-89f0cb07.d.ts +0 -2
- package/cssm/desktop.d.ts +0 -4
- package/cssm/desktop.js +0 -40
- package/cssm/hook-8abfea97.d.ts +0 -90
- package/cssm/index-136acbb1.d.ts +0 -28
- package/cssm/index-8b2c2707.d.ts +0 -6
- package/cssm/index-bdb4c6b9.d.ts +0 -2
- package/cssm/index-c44170fe.d.ts +0 -131
- package/cssm/index-c76d6398.d.ts +0 -140
- package/cssm/index-ebda875c.d.ts +0 -40
- package/cssm/index-f12ee135.d.ts +0 -324
- package/cssm/mobile-89f0cb07.d.ts +0 -2
- package/cssm/mobile-d7e9f69d.d.ts +0 -2
- package/cssm/mobile.d.ts +0 -4
- package/cssm/mobile.js +0 -42
- package/cssm/shared-4cd3936b.d.ts +0 -107
- package/cssm/shared.d.ts +0 -4
- package/cssm/types-1b036d4b.d.ts +0 -13
- package/cssm/types-4480ac4f.d.ts +0 -3
- package/cssm/typings-0f4b9bed.d.ts +0 -576
- package/cssm/typings-89f0cb07.d.ts +0 -93
- package/cssm/typings-bdb4c6b9.d.ts +0 -52
- package/cssm/useSkeleton-ebda875c.d.ts +0 -12
- package/cssm/utils-0f4b9bed.d.ts +0 -41
- package/cssm/utils-1574ad8b.d.ts +0 -29
- package/desktop-89f0cb07.d.ts +0 -2
- package/desktop.d.ts +0 -4
- package/desktop.js +0 -37
- package/esm/Component-0f4b9bed.d.ts +0 -100
- package/esm/Component-4cd3936b.d.ts +0 -12
- package/esm/Component-69921c40.d.ts +0 -184
- package/esm/Component-89f0cb07.d.ts +0 -38
- package/esm/Component-8b2c2707.d.ts +0 -14
- package/esm/Component-bdb4c6b9.d.ts +0 -12
- package/esm/Component-c76d6398.d.ts +0 -5
- package/esm/Component-ebda875c.d.ts +0 -12
- package/esm/Component.desktop-0aa4e915.d.ts +0 -5
- package/esm/Component.desktop-785df74d.d.ts +0 -6
- package/esm/Component.mobile-16b1285a.d.ts +0 -5
- package/esm/Component.mobile-d7e9f69d.d.ts +0 -6
- package/esm/Component.mobile-ebda875c.d.ts +0 -6
- package/esm/Context-bdb4c6b9.d.ts +0 -4
- package/esm/ResponsiveContext-baf4875b.d.ts +0 -5
- package/esm/collapsible.d.ts +0 -2
- package/esm/collapsible.js +0 -20
- package/esm/consts-f777ba1a.d.ts +0 -2
- package/esm/desktop-89f0cb07.d.ts +0 -2
- package/esm/desktop.d.ts +0 -4
- package/esm/desktop.js +0 -26
- package/esm/hook-8abfea97.d.ts +0 -90
- package/esm/index-136acbb1.d.ts +0 -28
- package/esm/index-8b2c2707.d.ts +0 -6
- package/esm/index-bdb4c6b9.d.ts +0 -2
- package/esm/index-c44170fe.d.ts +0 -131
- package/esm/index-c76d6398.d.ts +0 -140
- package/esm/index-ebda875c.d.ts +0 -105
- package/esm/index-f12ee135.d.ts +0 -324
- package/esm/index.module-072f7a03.js +0 -4
- package/esm/index.module-64994e8d.js +0 -4
- package/esm/mobile-89f0cb07.d.ts +0 -2
- package/esm/mobile-d7e9f69d.d.ts +0 -2
- package/esm/mobile.d.ts +0 -4
- package/esm/mobile.js +0 -26
- package/esm/shared-4cd3936b.d.ts +0 -107
- package/esm/shared.d.ts +0 -4
- package/esm/types-1b036d4b.d.ts +0 -13
- package/esm/types-4480ac4f.d.ts +0 -3
- package/esm/typings-0f4b9bed.d.ts +0 -576
- package/esm/typings-89f0cb07.d.ts +0 -93
- package/esm/typings-bdb4c6b9.d.ts +0 -52
- package/esm/useSkeleton-ebda875c.d.ts +0 -12
- package/esm/utils-0f4b9bed.d.ts +0 -41
- package/esm/utils-1574ad8b.d.ts +0 -29
- package/hook-8abfea97.d.ts +0 -90
- package/index-136acbb1.d.ts +0 -28
- package/index-8b2c2707.d.ts +0 -6
- package/index-bdb4c6b9.d.ts +0 -2
- package/index-c44170fe.d.ts +0 -131
- package/index-c76d6398.d.ts +0 -140
- package/index-ebda875c.d.ts +0 -40
- package/index-f12ee135.d.ts +0 -324
- package/index.module-5f6b14c2.js +0 -6
- package/index.module-e4f107c7.js +0 -6
- package/mobile-89f0cb07.d.ts +0 -2
- package/mobile-d7e9f69d.d.ts +0 -2
- package/mobile.d.ts +0 -4
- package/mobile.js +0 -37
- package/modern/Component-0f4b9bed.d.ts +0 -100
- package/modern/Component-4cd3936b.d.ts +0 -12
- package/modern/Component-69921c40.d.ts +0 -184
- package/modern/Component-89f0cb07.d.ts +0 -38
- package/modern/Component-8b2c2707.d.ts +0 -14
- package/modern/Component-bdb4c6b9.d.ts +0 -12
- package/modern/Component-c76d6398.d.ts +0 -5
- package/modern/Component-ebda875c.d.ts +0 -12
- package/modern/Component.desktop-0aa4e915.d.ts +0 -5
- package/modern/Component.desktop-785df74d.d.ts +0 -6
- package/modern/Component.mobile-16b1285a.d.ts +0 -5
- package/modern/Component.mobile-d7e9f69d.d.ts +0 -6
- package/modern/Component.mobile-ebda875c.d.ts +0 -6
- package/modern/Context-bdb4c6b9.d.ts +0 -4
- package/modern/ResponsiveContext-baf4875b.d.ts +0 -5
- package/modern/collapsible.d.ts +0 -2
- package/modern/collapsible.js +0 -19
- package/modern/consts-f777ba1a.d.ts +0 -2
- package/modern/desktop-89f0cb07.d.ts +0 -2
- package/modern/desktop.d.ts +0 -4
- package/modern/desktop.js +0 -25
- package/modern/hook-8abfea97.d.ts +0 -90
- package/modern/index-136acbb1.d.ts +0 -28
- package/modern/index-8b2c2707.d.ts +0 -6
- package/modern/index-bdb4c6b9.d.ts +0 -2
- package/modern/index-c44170fe.d.ts +0 -131
- package/modern/index-c76d6398.d.ts +0 -140
- package/modern/index-ebda875c.d.ts +0 -105
- package/modern/index-f12ee135.d.ts +0 -324
- package/modern/index.module-5e57388f.js +0 -4
- package/modern/index.module-633b90f6.js +0 -4
- package/modern/mobile-89f0cb07.d.ts +0 -2
- package/modern/mobile-d7e9f69d.d.ts +0 -2
- package/modern/mobile.d.ts +0 -4
- package/modern/mobile.js +0 -25
- package/modern/shared-4cd3936b.d.ts +0 -107
- package/modern/shared.d.ts +0 -4
- package/modern/types-1b036d4b.d.ts +0 -13
- package/modern/types-4480ac4f.d.ts +0 -3
- package/modern/typings-0f4b9bed.d.ts +0 -576
- package/modern/typings-89f0cb07.d.ts +0 -93
- package/modern/typings-bdb4c6b9.d.ts +0 -52
- package/modern/useSkeleton-ebda875c.d.ts +0 -12
- package/modern/utils-0f4b9bed.d.ts +0 -41
- package/modern/utils-1574ad8b.d.ts +0 -29
- package/shared-4cd3936b.d.ts +0 -107
- package/shared.d.ts +0 -4
- package/src/collapsible.ts +0 -2
- package/src/desktop.ts +0 -4
- package/src/mobile.ts +0 -4
- package/src/shared.ts +0 -4
- package/types-1b036d4b.d.ts +0 -13
- package/types-4480ac4f.d.ts +0 -3
- package/typings-0f4b9bed.d.ts +0 -576
- package/typings-89f0cb07.d.ts +0 -93
- package/typings-bdb4c6b9.d.ts +0 -52
- package/useSkeleton-ebda875c.d.ts +0 -12
- package/utils-0f4b9bed.d.ts +0 -41
- package/utils-1574ad8b.d.ts +0 -29
|
@@ -20,12 +20,12 @@ import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
|
20
20
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
21
21
|
import '../scroll-controls/utils.js';
|
|
22
22
|
import '../title/Component.js';
|
|
23
|
-
import '../../index.module-
|
|
23
|
+
import '../../index.module-0eaed9a1.js';
|
|
24
24
|
import '../primary-tablist/Component.mobile.js';
|
|
25
25
|
import '../secondary-tablist/Component.desktop.js';
|
|
26
26
|
import '@alfalab/core-components-tag/esm/desktop';
|
|
27
27
|
import '../secondary-tablist/Component.js';
|
|
28
|
-
import '../../index.module-
|
|
28
|
+
import '../../index.module-9c24fafb.js';
|
|
29
29
|
import '../secondary-tablist/Component.mobile.js';
|
|
30
30
|
import '@alfalab/core-components-tag/esm/mobile';
|
|
31
31
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export { PrimaryTabListDesktop } from '../components/primary-tablist/Component.desktop.js';
|
|
2
|
+
export { SecondaryTabListDesktop } from '../components/secondary-tablist/Component.desktop.js';
|
|
3
|
+
export { Tab } from '../components/tab/Component.js';
|
|
4
|
+
export { TabsDesktop } from '../components/tabs/Component.desktop.js';
|
|
5
|
+
import 'tslib';
|
|
6
|
+
import 'react';
|
|
7
|
+
import '../components/primary-tablist/Component.js';
|
|
8
|
+
import '@juggle/resize-observer';
|
|
9
|
+
import 'classnames';
|
|
10
|
+
import '@alfalab/core-components-keyboard-focusable/esm';
|
|
11
|
+
import '@alfalab/core-components-shared/esm';
|
|
12
|
+
import '../hooks/use-tabs.js';
|
|
13
|
+
import '../components/scrollable-container/Component.js';
|
|
14
|
+
import 'compute-scroll-into-view';
|
|
15
|
+
import '../components/scroll-controls/Component.js';
|
|
16
|
+
import 'lodash.debounce';
|
|
17
|
+
import '@alfalab/core-components-icon-button/esm';
|
|
18
|
+
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
19
|
+
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
20
|
+
import '../components/scroll-controls/utils.js';
|
|
21
|
+
import '../components/title/Component.js';
|
|
22
|
+
import '../index.module-0eaed9a1.js';
|
|
23
|
+
import '@alfalab/core-components-tag/esm/desktop';
|
|
24
|
+
import '../components/secondary-tablist/Component.js';
|
|
25
|
+
import '../index.module-9c24fafb.js';
|
|
26
|
+
import '../components/tabs/Component.js';
|
package/esm/index.js
CHANGED
|
@@ -21,12 +21,12 @@ import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
|
21
21
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
22
22
|
import './components/scroll-controls/utils.js';
|
|
23
23
|
import './components/title/Component.js';
|
|
24
|
-
import './index.module-
|
|
24
|
+
import './index.module-0eaed9a1.js';
|
|
25
25
|
import './components/primary-tablist/Component.mobile.js';
|
|
26
26
|
import './components/secondary-tablist/Component.desktop.js';
|
|
27
27
|
import '@alfalab/core-components-tag/esm/desktop';
|
|
28
28
|
import './components/secondary-tablist/Component.js';
|
|
29
|
-
import './index.module-
|
|
29
|
+
import './index.module-9c24fafb.js';
|
|
30
30
|
import './components/secondary-tablist/Component.mobile.js';
|
|
31
31
|
import '@alfalab/core-components-tag/esm/mobile';
|
|
32
32
|
import './components/tabs/Component.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var styles = {"component":"tabs__component_h18s1","fullWidthScroll":"tabs__fullWidthScroll_h18s1","container":"tabs__container_h18s1","title":"tabs__title_h18s1","disabled":"tabs__disabled_h18s1","focused":"tabs__focused_h18s1","collapsed":"tabs__collapsed_h18s1","selected":"tabs__selected_h18s1","line":"tabs__line_h18s1","option":"tabs__option_h18s1","s":"tabs__s_h18s1","xs":"tabs__xs_h18s1","xxs":"tabs__xxs_h18s1","pickerWrapper":"tabs__pickerWrapper_h18s1","m":"tabs__m_h18s1","l":"tabs__l_h18s1","xl":"tabs__xl_h18s1","rightAddons":"tabs__rightAddons_h18s1"};
|
|
2
|
+
require('./components/primary-tablist/index.css')
|
|
3
|
+
|
|
4
|
+
export { styles as s };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var commonStyles = {"component":"tabs__component_tladl","fullWidthScroll":"tabs__fullWidthScroll_tladl","container":"tabs__container_tladl","title":"tabs__title_tladl","xxs":"tabs__xxs_tladl","xs":"tabs__xs_tladl","s":"tabs__s_tladl","m":"tabs__m_tladl","l":"tabs__l_tladl","xl":"tabs__xl_tladl"};
|
|
2
|
+
require('./components/secondary-tablist/index.css')
|
|
3
|
+
|
|
4
|
+
export { commonStyles as c };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export { PrimaryTabListMobile } from '../components/primary-tablist/Component.mobile.js';
|
|
2
|
+
export { SecondaryTabListMobile } from '../components/secondary-tablist/Component.mobile.js';
|
|
3
|
+
export { Tab } from '../components/tab/Component.js';
|
|
4
|
+
export { TabsMobile } from '../components/tabs/Component.mobile.js';
|
|
5
|
+
import 'tslib';
|
|
6
|
+
import 'react';
|
|
7
|
+
import 'classnames';
|
|
8
|
+
import '../components/primary-tablist/Component.js';
|
|
9
|
+
import '@juggle/resize-observer';
|
|
10
|
+
import '@alfalab/core-components-keyboard-focusable/esm';
|
|
11
|
+
import '@alfalab/core-components-shared/esm';
|
|
12
|
+
import '../hooks/use-tabs.js';
|
|
13
|
+
import '../components/scrollable-container/Component.js';
|
|
14
|
+
import 'compute-scroll-into-view';
|
|
15
|
+
import '../components/scroll-controls/Component.js';
|
|
16
|
+
import 'lodash.debounce';
|
|
17
|
+
import '@alfalab/core-components-icon-button/esm';
|
|
18
|
+
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
19
|
+
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
20
|
+
import '../components/scroll-controls/utils.js';
|
|
21
|
+
import '../components/title/Component.js';
|
|
22
|
+
import '../index.module-0eaed9a1.js';
|
|
23
|
+
import '@alfalab/core-components-tag/esm/mobile';
|
|
24
|
+
import '../components/secondary-tablist/Component.js';
|
|
25
|
+
import '../index.module-9c24fafb.js';
|
|
26
|
+
import '../components/tabs/Component.js';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export { ScrollableContainer } from '
|
|
2
|
-
export { useTabs } from '
|
|
3
|
-
export { useCollapsibleElements } from '
|
|
1
|
+
export { ScrollableContainer } from '../components/scrollable-container/Component.js';
|
|
2
|
+
export { useTabs } from '../hooks/use-tabs.js';
|
|
3
|
+
export { useCollapsibleElements } from '../hooks/use-collapsible-elements.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import 'compute-scroll-into-view';
|
|
7
|
-
import '
|
|
7
|
+
import '../components/scroll-controls/Component.js';
|
|
8
8
|
import 'tslib';
|
|
9
9
|
import 'lodash.debounce';
|
|
10
10
|
import '@alfalab/core-components-icon-button/esm';
|
|
11
11
|
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
12
12
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
13
|
-
import '
|
|
13
|
+
import '../components/scroll-controls/utils.js';
|
|
14
14
|
import '@alfalab/core-components-shared/esm';
|
|
15
15
|
import '@juggle/resize-observer';
|
|
16
16
|
import '@alfalab/hooks';
|
package/index.js
CHANGED
|
@@ -25,12 +25,12 @@ require('@alfalab/icons-glyph/ChevronLeftMIcon');
|
|
|
25
25
|
require('@alfalab/icons-glyph/ChevronRightMIcon');
|
|
26
26
|
require('./components/scroll-controls/utils.js');
|
|
27
27
|
require('./components/title/Component.js');
|
|
28
|
-
require('./index.module-
|
|
28
|
+
require('./index.module-2f940b9f.js');
|
|
29
29
|
require('./components/primary-tablist/Component.mobile.js');
|
|
30
30
|
require('./components/secondary-tablist/Component.desktop.js');
|
|
31
31
|
require('@alfalab/core-components-tag/desktop');
|
|
32
32
|
require('./components/secondary-tablist/Component.js');
|
|
33
|
-
require('./index.module-
|
|
33
|
+
require('./index.module-177df2c1.js');
|
|
34
34
|
require('./components/secondary-tablist/Component.mobile.js');
|
|
35
35
|
require('@alfalab/core-components-tag/mobile');
|
|
36
36
|
require('./components/tabs/Component.js');
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var commonStyles = {"component":"tabs__component_tladl","fullWidthScroll":"tabs__fullWidthScroll_tladl","container":"tabs__container_tladl","title":"tabs__title_tladl","xxs":"tabs__xxs_tladl","xs":"tabs__xs_tladl","s":"tabs__s_tladl","m":"tabs__m_tladl","l":"tabs__l_tladl","xl":"tabs__xl_tladl"};
|
|
4
|
+
require('./components/secondary-tablist/index.css')
|
|
5
|
+
|
|
6
|
+
exports.commonStyles = commonStyles;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var styles = {"component":"tabs__component_h18s1","fullWidthScroll":"tabs__fullWidthScroll_h18s1","container":"tabs__container_h18s1","title":"tabs__title_h18s1","disabled":"tabs__disabled_h18s1","focused":"tabs__focused_h18s1","collapsed":"tabs__collapsed_h18s1","selected":"tabs__selected_h18s1","line":"tabs__line_h18s1","option":"tabs__option_h18s1","s":"tabs__s_h18s1","xs":"tabs__xs_h18s1","xxs":"tabs__xxs_h18s1","pickerWrapper":"tabs__pickerWrapper_h18s1","m":"tabs__m_h18s1","l":"tabs__l_h18s1","xl":"tabs__xl_h18s1","rightAddons":"tabs__rightAddons_h18s1"};
|
|
4
|
+
require('./components/primary-tablist/index.css')
|
|
5
|
+
|
|
6
|
+
exports.styles = styles;
|
package/mobile/index.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var components_primaryTablist_Component_mobile = require('../components/primary-tablist/Component.mobile.js');
|
|
6
|
+
var components_secondaryTablist_Component_mobile = require('../components/secondary-tablist/Component.mobile.js');
|
|
7
|
+
var components_tab_Component = require('../components/tab/Component.js');
|
|
8
|
+
var components_tabs_Component_mobile = require('../components/tabs/Component.mobile.js');
|
|
9
|
+
require('tslib');
|
|
10
|
+
require('react');
|
|
11
|
+
require('classnames');
|
|
12
|
+
require('../components/primary-tablist/Component.js');
|
|
13
|
+
require('@juggle/resize-observer');
|
|
14
|
+
require('@alfalab/core-components-keyboard-focusable');
|
|
15
|
+
require('@alfalab/core-components-shared');
|
|
16
|
+
require('../hooks/use-tabs.js');
|
|
17
|
+
require('../components/scrollable-container/Component.js');
|
|
18
|
+
require('compute-scroll-into-view');
|
|
19
|
+
require('../components/scroll-controls/Component.js');
|
|
20
|
+
require('lodash.debounce');
|
|
21
|
+
require('@alfalab/core-components-icon-button');
|
|
22
|
+
require('@alfalab/icons-glyph/ChevronLeftMIcon');
|
|
23
|
+
require('@alfalab/icons-glyph/ChevronRightMIcon');
|
|
24
|
+
require('../components/scroll-controls/utils.js');
|
|
25
|
+
require('../components/title/Component.js');
|
|
26
|
+
require('../index.module-2f940b9f.js');
|
|
27
|
+
require('@alfalab/core-components-tag/mobile');
|
|
28
|
+
require('../components/secondary-tablist/Component.js');
|
|
29
|
+
require('../index.module-177df2c1.js');
|
|
30
|
+
require('../components/tabs/Component.js');
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
exports.PrimaryTabListMobile = components_primaryTablist_Component_mobile.PrimaryTabListMobile;
|
|
35
|
+
exports.SecondaryTabListMobile = components_secondaryTablist_Component_mobile.SecondaryTabListMobile;
|
|
36
|
+
exports.Tab = components_tab_Component.Tab;
|
|
37
|
+
exports.TabsMobile = components_tabs_Component_mobile.TabsMobile;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { TabsCollapsible } from '../components/tabs/Component.collapsible.js';
|
|
2
|
+
export { Tab } from '../components/tab/Component.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '../components/primary-tablist/Component.collapsible.js';
|
|
5
|
+
import 'classnames';
|
|
6
|
+
import '@alfalab/core-components-badge/modern';
|
|
7
|
+
import '@alfalab/core-components-keyboard-focusable/modern';
|
|
8
|
+
import '@alfalab/core-components-picker-button/modern/desktop';
|
|
9
|
+
import '../hooks/use-tablist-titles.js';
|
|
10
|
+
import '@alfalab/core-components-mq/modern';
|
|
11
|
+
import '../hooks/use-collapsible-elements.js';
|
|
12
|
+
import '@juggle/resize-observer';
|
|
13
|
+
import '@alfalab/hooks';
|
|
14
|
+
import '../hooks/use-tabs.js';
|
|
15
|
+
import '@alfalab/core-components-shared/modern';
|
|
16
|
+
import '../synthetic-events.js';
|
|
17
|
+
import '../components/title/Component.js';
|
|
18
|
+
import '../index.module-4070c7f9.js';
|
|
19
|
+
import '../components/tabs/Component.js';
|
|
@@ -6,7 +6,7 @@ import { PickerButtonDesktop } from '@alfalab/core-components-picker-button/mode
|
|
|
6
6
|
import { useTablistTitles } from '../../hooks/use-tablist-titles.js';
|
|
7
7
|
import { createSyntheticMouseEvent } from '../../synthetic-events.js';
|
|
8
8
|
import { Title } from '../title/Component.js';
|
|
9
|
-
import {
|
|
9
|
+
import { s as styles } from '../../index.module-4070c7f9.js';
|
|
10
10
|
import '@alfalab/core-components-mq/modern';
|
|
11
11
|
import '../../hooks/use-collapsible-elements.js';
|
|
12
12
|
import '@juggle/resize-observer';
|
|
@@ -35,7 +35,7 @@ const CollapsiblePrimaryTabList = ({ size = 'm', className, containerClassName,
|
|
|
35
35
|
options.push({
|
|
36
36
|
key: title.title,
|
|
37
37
|
value: title.id,
|
|
38
|
-
content: React.createElement(Title, { ...title, styles:
|
|
38
|
+
content: React.createElement(Title, { ...title, styles: styles, isOption: true }),
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
return options;
|
|
@@ -48,14 +48,14 @@ const CollapsiblePrimaryTabList = ({ size = 'm', className, containerClassName,
|
|
|
48
48
|
onChange(syntheticMouseEvent, { selectedId: payload.selected.value });
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
-
const renderContent = () => (React.createElement("div", { role: 'tablist', "data-test-id": dataTestId, className: cn(
|
|
52
|
-
[
|
|
51
|
+
const renderContent = () => (React.createElement("div", { role: 'tablist', "data-test-id": dataTestId, className: cn(styles.component, className, size && styles[size], {
|
|
52
|
+
[styles.fullWidthScroll]: fullWidthScroll,
|
|
53
53
|
}) },
|
|
54
|
-
tablistTitles.map(({ dataTestId: _, ...restTitleProps }, index) => (React.createElement(KeyboardFocusable, { key: restTitleProps.id }, (ref, focused) => (React.createElement(Title, { ...getTabListItemProps(index, ref), ...restTitleProps, focused: focused, styles:
|
|
55
|
-
collapsedOptions.length ? (React.createElement("span", { ref: addonRef, role: 'menu', className:
|
|
56
|
-
React.createElement(PickerButtonDesktop, { fieldClassName:
|
|
57
|
-
React.createElement("div", { className:
|
|
58
|
-
return (React.createElement("div", { ref: containerRef, className: cn(
|
|
54
|
+
tablistTitles.map(({ dataTestId: _, ...restTitleProps }, index) => (React.createElement(KeyboardFocusable, { key: restTitleProps.id }, (ref, focused) => (React.createElement(Title, { ...getTabListItemProps(index, ref), ...restTitleProps, focused: focused, styles: styles }))))),
|
|
55
|
+
collapsedOptions.length ? (React.createElement("span", { ref: addonRef, role: 'menu', className: styles.pickerWrapper },
|
|
56
|
+
React.createElement(PickerButtonDesktop, { fieldClassName: styles.title, optionClassName: cn(styles.pickerOption, size && styles[size]), options: collapsedOptions, onChange: handleOptionsChange, rightAddons: collapsedAddonsLength ? (React.createElement(Badge, { view: 'count', content: collapsedAddonsLength })) : null, size: 'm', view: 'ghost', label: '\u0415\u0449\u0451', popoverPosition: 'bottom-end' }))) : null,
|
|
57
|
+
React.createElement("div", { className: styles.line, ref: lineRef })));
|
|
58
|
+
return (React.createElement("div", { ref: containerRef, className: cn(styles.container, containerClassName) }, renderContent()));
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
export { CollapsiblePrimaryTabList };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PrimaryTabList } from './Component.js';
|
|
3
|
-
import {
|
|
3
|
+
import { s as styles } from '../../index.module-4070c7f9.js';
|
|
4
4
|
import '@juggle/resize-observer';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import '@alfalab/core-components-keyboard-focusable/modern';
|
|
@@ -16,6 +16,6 @@ import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
|
16
16
|
import '../scroll-controls/utils.js';
|
|
17
17
|
import '../title/Component.js';
|
|
18
18
|
|
|
19
|
-
const PrimaryTabListDesktop = ({ size = 'm', ...restProps }) => (React.createElement(PrimaryTabList, { ...restProps, size: size, styles:
|
|
19
|
+
const PrimaryTabListDesktop = ({ size = 'm', ...restProps }) => (React.createElement(PrimaryTabList, { ...restProps, size: size, styles: styles, platform: 'desktop' }));
|
|
20
20
|
|
|
21
21
|
export { PrimaryTabListDesktop };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { PrimaryTabList } from './Component.js';
|
|
4
|
-
import {
|
|
4
|
+
import { s as styles$1 } from '../../index.module-4070c7f9.js';
|
|
5
5
|
import '@juggle/resize-observer';
|
|
6
6
|
import '@alfalab/core-components-keyboard-focusable/modern';
|
|
7
7
|
import '@alfalab/core-components-shared/modern';
|
|
@@ -16,11 +16,11 @@ import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
|
16
16
|
import '../scroll-controls/utils.js';
|
|
17
17
|
import '../title/Component.js';
|
|
18
18
|
|
|
19
|
-
const mobileStyles = {"title":"
|
|
19
|
+
const mobileStyles = {"title":"tabs__title_vbdu8 tabs__title_h18s1","mobile":"tabs__mobile_vbdu8"};
|
|
20
20
|
require('./mobile.css')
|
|
21
21
|
|
|
22
22
|
const styles = {
|
|
23
|
-
...
|
|
23
|
+
...styles$1,
|
|
24
24
|
...mobileStyles,
|
|
25
25
|
};
|
|
26
26
|
const PrimaryTabListMobile = ({ className, ...restProps }) => (React.createElement(PrimaryTabList, { ...restProps, styles: styles, className: cn(className, styles.mobile), platform: 'mobile' }));
|
|
@@ -17,7 +17,7 @@ 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-4070c7f9.js';
|
|
21
21
|
|
|
22
22
|
const PrimaryTabListResponsive = ({ size, breakpoint = 1024, fullWidthScroll, defaultMatchMediaValue, ...restProps }) => {
|
|
23
23
|
const [isDesktop] = useMatchMedia(`(min-width: ${breakpoint}px)`, defaultMatchMediaValue);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 15maf */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-accent: #ef3124;
|
|
@@ -83,11 +83,11 @@
|
|
|
83
83
|
/* size l */
|
|
84
84
|
|
|
85
85
|
/* size xl */
|
|
86
|
-
} .
|
|
86
|
+
} .tabs__component_h18s1 {
|
|
87
87
|
position: relative;
|
|
88
88
|
display: inline-flex;
|
|
89
89
|
min-width: 100%
|
|
90
|
-
} .
|
|
90
|
+
} .tabs__component_h18s1:before {
|
|
91
91
|
content: '';
|
|
92
92
|
display: block;
|
|
93
93
|
position: absolute;
|
|
@@ -95,17 +95,17 @@
|
|
|
95
95
|
height: 1px;
|
|
96
96
|
width: 100%;
|
|
97
97
|
background-color: var(--primary-tablist-bottom-border-color);
|
|
98
|
-
} .
|
|
98
|
+
} .tabs__fullWidthScroll_h18s1 {
|
|
99
99
|
min-width: calc(100% - 2 * var(--gap-m));
|
|
100
100
|
margin: 0 var(--gap-m);
|
|
101
|
-
} .
|
|
101
|
+
} .tabs__container_h18s1 {
|
|
102
102
|
position: relative;
|
|
103
103
|
overflow: hidden;
|
|
104
104
|
|
|
105
105
|
/* focus-outline fix */
|
|
106
106
|
margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
|
|
107
107
|
padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs);
|
|
108
|
-
} .
|
|
108
|
+
} .tabs__title_h18s1 {
|
|
109
109
|
display: flex;
|
|
110
110
|
align-items: center;
|
|
111
111
|
height: 100%;
|
|
@@ -121,78 +121,78 @@
|
|
|
121
121
|
-webkit-user-select: none;
|
|
122
122
|
user-select: none;
|
|
123
123
|
outline: none
|
|
124
|
-
} .
|
|
124
|
+
} .tabs__title_h18s1:not(.tabs__disabled_h18s1):hover {
|
|
125
125
|
color: var(--primary-tablist-hover-color);
|
|
126
|
-
} .
|
|
126
|
+
} .tabs__focused_h18s1 {
|
|
127
127
|
outline: 2px solid var(--focus-color);
|
|
128
128
|
outline-offset: 2px;
|
|
129
|
-
} .
|
|
129
|
+
} .tabs__collapsed_h18s1 {
|
|
130
130
|
order: 99;
|
|
131
131
|
visibility: collapse;
|
|
132
|
-
} .
|
|
132
|
+
} .tabs__selected_h18s1 {
|
|
133
133
|
cursor: default;
|
|
134
134
|
color: var(--primary-tablist-selected-color);
|
|
135
|
-
} .
|
|
135
|
+
} .tabs__disabled_h18s1 {
|
|
136
136
|
cursor: var(--disabled-cursor);
|
|
137
137
|
color: var(--primary-tablist-disabled-color);
|
|
138
|
-
} .
|
|
138
|
+
} .tabs__line_h18s1 {
|
|
139
139
|
position: absolute;
|
|
140
140
|
height: 3px;
|
|
141
141
|
bottom: 0;
|
|
142
142
|
left: 0;
|
|
143
143
|
background-color: var(--primary-tablist-line-color);
|
|
144
144
|
transition: transform 0.2s ease, width 0.2s ease;
|
|
145
|
-
} .
|
|
145
|
+
} .tabs__option_h18s1 {
|
|
146
146
|
color: var(--color-light-text-primary);
|
|
147
|
-
} /* sizes */ .
|
|
147
|
+
} /* sizes */ .tabs__s_h18s1 .tabs__title_h18s1, .tabs__xs_h18s1 .tabs__title_h18s1, .tabs__xxs_h18s1 .tabs__title_h18s1 {
|
|
148
148
|
padding: var(--primary-tablist-s-padding);
|
|
149
149
|
font-size: var(--primary-tablist-s-font-size);
|
|
150
150
|
font-weight: var(--primary-tablist-s-font-weight);
|
|
151
151
|
font-family: var(--primary-tablist-s-font-family);
|
|
152
152
|
line-height: 24px;
|
|
153
|
-
} .
|
|
153
|
+
} .tabs__s_h18s1 .tabs__title_h18s1 + .tabs__title_h18s1, .tabs__xs_h18s1 .tabs__title_h18s1 + .tabs__title_h18s1, .tabs__xxs_h18s1 .tabs__title_h18s1 + .tabs__title_h18s1 {
|
|
154
154
|
margin-left: var(--primary-tablist-s-gaps);
|
|
155
|
-
} .
|
|
155
|
+
} .tabs__s_h18s1 .tabs__pickerWrapper_h18s1, .tabs__xs_h18s1 .tabs__pickerWrapper_h18s1, .tabs__xxs_h18s1 .tabs__pickerWrapper_h18s1 {
|
|
156
156
|
margin-left: var(--primary-tablist-s-gaps);
|
|
157
|
-
} .
|
|
157
|
+
} .tabs__s_h18s1 .tabs__option_h18s1, .tabs__xs_h18s1 .tabs__option_h18s1, .tabs__xxs_h18s1 .tabs__option_h18s1 {
|
|
158
158
|
padding: 0;
|
|
159
|
-
} .
|
|
159
|
+
} .tabs__m_h18s1 .tabs__title_h18s1 {
|
|
160
160
|
padding: var(--primary-tablist-m-padding);
|
|
161
161
|
font-size: var(--primary-tablist-m-font-size);
|
|
162
162
|
font-weight: var(--primary-tablist-m-font-weight);
|
|
163
163
|
font-family: var(--primary-tablist-m-font-family);
|
|
164
164
|
line-height: 24px;
|
|
165
|
-
} .
|
|
165
|
+
} .tabs__m_h18s1 .tabs__title_h18s1 + .tabs__title_h18s1 {
|
|
166
166
|
margin-left: var(--primary-tablist-m-gaps);
|
|
167
|
-
} .
|
|
167
|
+
} .tabs__m_h18s1 .tabs__pickerWrapper_h18s1 {
|
|
168
168
|
margin-left: var(--primary-tablist-m-gaps);
|
|
169
|
-
} .
|
|
169
|
+
} .tabs__m_h18s1 .tabs__option_h18s1 {
|
|
170
170
|
padding: 0;
|
|
171
|
-
} .
|
|
171
|
+
} .tabs__l_h18s1 .tabs__title_h18s1 {
|
|
172
172
|
padding: var(--primary-tablist-l-padding);
|
|
173
173
|
font-size: var(--primary-tablist-l-font-size);
|
|
174
174
|
font-weight: var(--primary-tablist-l-font-weight);
|
|
175
175
|
font-family: var(--primary-tablist-l-font-family);
|
|
176
176
|
line-height: 24px;
|
|
177
|
-
} .
|
|
177
|
+
} .tabs__l_h18s1 .tabs__title_h18s1 + .tabs__title_h18s1 {
|
|
178
178
|
margin-left: var(--primary-tablist-l-gaps);
|
|
179
|
-
} .
|
|
179
|
+
} .tabs__l_h18s1 .tabs__pickerWrapper_h18s1 {
|
|
180
180
|
margin-left: var(--primary-tablist-l-gaps);
|
|
181
|
-
} .
|
|
181
|
+
} .tabs__l_h18s1 .tabs__option_h18s1 {
|
|
182
182
|
padding: 0;
|
|
183
|
-
} .
|
|
183
|
+
} .tabs__xl_h18s1 .tabs__title_h18s1 {
|
|
184
184
|
padding: var(--primary-tablist-xl-padding);
|
|
185
185
|
font-size: var(--primary-tablist-xl-font-size);
|
|
186
186
|
font-weight: var(--primary-tablist-xl-font-weight);
|
|
187
187
|
font-family: var(--primary-tablist-xl-font-family);
|
|
188
188
|
line-height: 32px;
|
|
189
|
-
} .
|
|
189
|
+
} .tabs__xl_h18s1 .tabs__title_h18s1 + .tabs__title_h18s1 {
|
|
190
190
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
191
|
-
} .
|
|
191
|
+
} .tabs__xl_h18s1 .tabs__pickerWrapper_h18s1 {
|
|
192
192
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
193
|
-
} .
|
|
193
|
+
} .tabs__xl_h18s1 .tabs__option_h18s1 {
|
|
194
194
|
padding: 0;
|
|
195
|
-
} .
|
|
195
|
+
} .tabs__rightAddons_h18s1 {
|
|
196
196
|
display: flex;
|
|
197
197
|
justify-content: center;
|
|
198
198
|
align-items: center;
|