@alfalab/core-components-tabs 8.1.6 → 8.3.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 +34 -34
- package/components/primary-tablist/mobile.css +964 -310
- package/components/scroll-controls/Component.js +1 -1
- package/components/scroll-controls/index.css +16 -16
- package/components/scrollable-container/Component.js +2 -3
- 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 +940 -286
- 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/components/primary-tablist/index.module.css +4 -4
- package/cssm/components/scroll-controls/index.module.css +2 -2
- package/cssm/components/scrollable-container/Component.js +1 -2
- 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 +34 -34
- package/esm/components/primary-tablist/mobile.css +964 -310
- package/esm/components/scroll-controls/Component.js +1 -1
- package/esm/components/scroll-controls/index.css +16 -16
- package/esm/components/scrollable-container/Component.js +3 -3
- 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 +940 -286
- 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-0b61d568.js +4 -0
- package/esm/index.module-9fe41e09.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-5398ae83.js +6 -0
- package/index.module-dd12f95d.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 +34 -34
- package/modern/components/primary-tablist/mobile.css +964 -310
- package/modern/components/scroll-controls/Component.js +1 -1
- package/modern/components/scroll-controls/index.css +16 -16
- package/modern/components/scrollable-container/Component.js +3 -3
- 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 +940 -286
- 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-b71481a6.js +4 -0
- package/modern/index.module-beca0c9d.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 +7 -7
- 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/components/scrollable-container/Component.tsx +2 -2
- 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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
|
-
const styles = {"component":"
|
|
4
|
+
const styles = {"component":"tabs__component_jmq33","hidden":"tabs__hidden_jmq33"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
const Tab = ({ children, hidden, className, disabled, dataTestId }) => children ? (React.createElement("div", { className: cn(styles.component, {
|
|
@@ -14,7 +14,7 @@ import '../../hooks/use-tabs.js';
|
|
|
14
14
|
import '@alfalab/core-components-shared/modern';
|
|
15
15
|
import '../../synthetic-events.js';
|
|
16
16
|
import '../title/Component.js';
|
|
17
|
-
import '../../index.module-
|
|
17
|
+
import '../../index.module-b71481a6.js';
|
|
18
18
|
|
|
19
19
|
const TabsCollapsible = ({ ...restProps }) => (React.createElement(Tabs, { TabList: CollapsiblePrimaryTabList, ...restProps }));
|
|
20
20
|
|
|
@@ -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-b71481a6.js';
|
|
21
21
|
import '@alfalab/core-components-tag/modern/desktop';
|
|
22
22
|
import '../secondary-tablist/Component.js';
|
|
23
|
-
import '../../index.module-
|
|
23
|
+
import '../../index.module-beca0c9d.js';
|
|
24
24
|
|
|
25
25
|
const 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-b71481a6.js';
|
|
21
21
|
import '@alfalab/core-components-tag/modern/mobile';
|
|
22
22
|
import '../secondary-tablist/Component.js';
|
|
23
|
-
import '../../index.module-
|
|
23
|
+
import '../../index.module-beca0c9d.js';
|
|
24
24
|
|
|
25
25
|
const 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-b71481a6.js';
|
|
23
23
|
import '../primary-tablist/Component.mobile.js';
|
|
24
24
|
import '../secondary-tablist/Component.desktop.js';
|
|
25
25
|
import '@alfalab/core-components-tag/modern/desktop';
|
|
26
26
|
import '../secondary-tablist/Component.js';
|
|
27
|
-
import '../../index.module-
|
|
27
|
+
import '../../index.module-beca0c9d.js';
|
|
28
28
|
import '../secondary-tablist/Component.mobile.js';
|
|
29
29
|
import '@alfalab/core-components-tag/modern/mobile';
|
|
30
30
|
|
|
@@ -0,0 +1,25 @@
|
|
|
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 'react';
|
|
6
|
+
import '../components/primary-tablist/Component.js';
|
|
7
|
+
import '@juggle/resize-observer';
|
|
8
|
+
import 'classnames';
|
|
9
|
+
import '@alfalab/core-components-keyboard-focusable/modern';
|
|
10
|
+
import '@alfalab/core-components-shared/modern';
|
|
11
|
+
import '../hooks/use-tabs.js';
|
|
12
|
+
import '../components/scrollable-container/Component.js';
|
|
13
|
+
import 'compute-scroll-into-view';
|
|
14
|
+
import '../components/scroll-controls/Component.js';
|
|
15
|
+
import 'lodash.debounce';
|
|
16
|
+
import '@alfalab/core-components-icon-button/modern';
|
|
17
|
+
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
18
|
+
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
19
|
+
import '../components/scroll-controls/utils.js';
|
|
20
|
+
import '../components/title/Component.js';
|
|
21
|
+
import '../index.module-b71481a6.js';
|
|
22
|
+
import '@alfalab/core-components-tag/modern/desktop';
|
|
23
|
+
import '../components/secondary-tablist/Component.js';
|
|
24
|
+
import '../index.module-beca0c9d.js';
|
|
25
|
+
import '../components/tabs/Component.js';
|
package/modern/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-b71481a6.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/modern/desktop';
|
|
27
27
|
import './components/secondary-tablist/Component.js';
|
|
28
|
-
import './index.module-
|
|
28
|
+
import './index.module-beca0c9d.js';
|
|
29
29
|
import './components/secondary-tablist/Component.mobile.js';
|
|
30
30
|
import '@alfalab/core-components-tag/modern/mobile';
|
|
31
31
|
import './components/tabs/Component.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const styles = {"component":"tabs__component_voi9o","fullWidthScroll":"tabs__fullWidthScroll_voi9o","container":"tabs__container_voi9o","title":"tabs__title_voi9o","disabled":"tabs__disabled_voi9o","focused":"tabs__focused_voi9o","collapsed":"tabs__collapsed_voi9o","selected":"tabs__selected_voi9o","line":"tabs__line_voi9o","option":"tabs__option_voi9o","s":"tabs__s_voi9o","xs":"tabs__xs_voi9o","xxs":"tabs__xxs_voi9o","pickerWrapper":"tabs__pickerWrapper_voi9o","m":"tabs__m_voi9o","l":"tabs__l_voi9o","xl":"tabs__xl_voi9o","rightAddons":"tabs__rightAddons_voi9o"};
|
|
2
|
+
require('./components/primary-tablist/index.css')
|
|
3
|
+
|
|
4
|
+
export { styles as s };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const commonStyles = {"component":"tabs__component_11lo8","fullWidthScroll":"tabs__fullWidthScroll_11lo8","container":"tabs__container_11lo8","title":"tabs__title_11lo8","xxs":"tabs__xxs_11lo8","xs":"tabs__xs_11lo8","s":"tabs__s_11lo8","m":"tabs__m_11lo8","l":"tabs__l_11lo8","xl":"tabs__xl_11lo8"};
|
|
2
|
+
require('./components/secondary-tablist/index.css')
|
|
3
|
+
|
|
4
|
+
export { commonStyles as c };
|
|
@@ -0,0 +1,25 @@
|
|
|
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 'react';
|
|
6
|
+
import 'classnames';
|
|
7
|
+
import '../components/primary-tablist/Component.js';
|
|
8
|
+
import '@juggle/resize-observer';
|
|
9
|
+
import '@alfalab/core-components-keyboard-focusable/modern';
|
|
10
|
+
import '@alfalab/core-components-shared/modern';
|
|
11
|
+
import '../hooks/use-tabs.js';
|
|
12
|
+
import '../components/scrollable-container/Component.js';
|
|
13
|
+
import 'compute-scroll-into-view';
|
|
14
|
+
import '../components/scroll-controls/Component.js';
|
|
15
|
+
import 'lodash.debounce';
|
|
16
|
+
import '@alfalab/core-components-icon-button/modern';
|
|
17
|
+
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
18
|
+
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
19
|
+
import '../components/scroll-controls/utils.js';
|
|
20
|
+
import '../components/title/Component.js';
|
|
21
|
+
import '../index.module-b71481a6.js';
|
|
22
|
+
import '@alfalab/core-components-tag/modern/mobile';
|
|
23
|
+
import '../components/secondary-tablist/Component.js';
|
|
24
|
+
import '../index.module-beca0c9d.js';
|
|
25
|
+
import '../components/tabs/Component.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
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 'lodash.debounce';
|
|
9
9
|
import '@alfalab/core-components-icon-button/modern';
|
|
10
10
|
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
11
11
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
12
|
-
import '
|
|
12
|
+
import '../components/scroll-controls/utils.js';
|
|
13
13
|
import '@alfalab/core-components-shared/modern';
|
|
14
14
|
import '@juggle/resize-observer';
|
|
15
15
|
import '@alfalab/hooks';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-tabs",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.3.0",
|
|
4
4
|
"description": "Tabs components",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,16 +15,16 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@alfalab/core-components-keyboard-focusable": "^4.1.0",
|
|
18
|
-
"@alfalab/core-components-tag": "^
|
|
19
|
-
"@alfalab/core-components-picker-button": "^11.
|
|
20
|
-
"@alfalab/core-components-badge": "^5.
|
|
18
|
+
"@alfalab/core-components-tag": "^7.0.0",
|
|
19
|
+
"@alfalab/core-components-picker-button": "^11.3.0",
|
|
20
|
+
"@alfalab/core-components-badge": "^5.3.0",
|
|
21
21
|
"@alfalab/core-components-mq": "^4.2.0",
|
|
22
22
|
"@alfalab/hooks": "^1.13.0",
|
|
23
|
-
"@alfalab/core-components-shared": "^0.
|
|
24
|
-
"@alfalab/core-components-icon-button": "^6.
|
|
23
|
+
"@alfalab/core-components-shared": "^0.8.0",
|
|
24
|
+
"@alfalab/core-components-icon-button": "^6.4.0",
|
|
25
25
|
"@alfalab/icons-glyph": "^2.108.0",
|
|
26
26
|
"classnames": "^2.3.1",
|
|
27
|
-
"compute-scroll-into-view": "^1.0
|
|
27
|
+
"compute-scroll-into-view": "^3.1.0",
|
|
28
28
|
"lodash.debounce": "^4.0.8",
|
|
29
29
|
"@juggle/resize-observer": "^3.3.1",
|
|
30
30
|
"tslib": "^2.4.0"
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var components_scrollableContainer_Component = require('
|
|
6
|
-
var hooks_useTabs = require('
|
|
7
|
-
var hooks_useCollapsibleElements = require('
|
|
5
|
+
var components_scrollableContainer_Component = require('../components/scrollable-container/Component.js');
|
|
6
|
+
var hooks_useTabs = require('../hooks/use-tabs.js');
|
|
7
|
+
var hooks_useCollapsibleElements = require('../hooks/use-collapsible-elements.js');
|
|
8
8
|
require('react');
|
|
9
9
|
require('classnames');
|
|
10
10
|
require('compute-scroll-into-view');
|
|
11
|
-
require('
|
|
11
|
+
require('../components/scroll-controls/Component.js');
|
|
12
12
|
require('tslib');
|
|
13
13
|
require('lodash.debounce');
|
|
14
14
|
require('@alfalab/core-components-icon-button');
|
|
15
15
|
require('@alfalab/icons-glyph/ChevronLeftMIcon');
|
|
16
16
|
require('@alfalab/icons-glyph/ChevronRightMIcon');
|
|
17
|
-
require('
|
|
17
|
+
require('../components/scroll-controls/utils.js');
|
|
18
18
|
require('@alfalab/core-components-shared');
|
|
19
19
|
require('@juggle/resize-observer');
|
|
20
20
|
require('@alfalab/hooks');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode, useEffect, useRef, useState } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import
|
|
3
|
+
import { compute } from 'compute-scroll-into-view';
|
|
4
4
|
|
|
5
5
|
import { PlatformProps, TabsProps } from '../../typings';
|
|
6
6
|
import { ScrollControls } from '../scroll-controls';
|
|
@@ -69,7 +69,7 @@ export const ScrollableContainer = ({
|
|
|
69
69
|
|
|
70
70
|
useEffect(() => {
|
|
71
71
|
if (activeChild) {
|
|
72
|
-
const actions =
|
|
72
|
+
const actions = compute(activeChild, {
|
|
73
73
|
scrollMode: 'if-needed',
|
|
74
74
|
block: 'nearest',
|
|
75
75
|
inline: 'nearest',
|
package/Component-0f4b9bed.d.ts
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { FC, ReactNode } from "react";
|
|
4
|
-
import { ModalMobileProps, ContentProps } from "./typings-bdb4c6b9";
|
|
5
|
-
import { BottomSheetProps } from "./index-f12ee135";
|
|
6
|
-
import { BaseSelectProps } from "./typings-0f4b9bed";
|
|
7
|
-
type FooterProps = {
|
|
8
|
-
/**
|
|
9
|
-
* Контент футера
|
|
10
|
-
*/
|
|
11
|
-
children?: ReactNode;
|
|
12
|
-
/**
|
|
13
|
-
* Дополнительный класс
|
|
14
|
-
*/
|
|
15
|
-
className?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Фиксирует футер
|
|
18
|
-
*/
|
|
19
|
-
sticky?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Выравнивание элементов футера
|
|
22
|
-
*/
|
|
23
|
-
layout?: "start" | "center" | "space-between" | "column";
|
|
24
|
-
/**
|
|
25
|
-
* Отступы между элементами футера
|
|
26
|
-
*/
|
|
27
|
-
gap?: 16 | 24 | 32;
|
|
28
|
-
};
|
|
29
|
-
declare const ModalMobile: React.ForwardRefExoticComponent<ModalMobileProps & React.RefAttributes<HTMLDivElement>> & {
|
|
30
|
-
Content: React.FC<import("./typings-bdb4c6b9").ContentProps>;
|
|
31
|
-
Header: React.FC<import("./Component-c76d6398").HeaderProps>;
|
|
32
|
-
Footer: React.FC<FooterProps>;
|
|
33
|
-
};
|
|
34
|
-
declare const Content: FC<ContentProps>;
|
|
35
|
-
type SelectMobileProps = Omit<BaseSelectProps, 'Checkmark' | 'onScroll'> & {
|
|
36
|
-
/**
|
|
37
|
-
* Футер
|
|
38
|
-
* @deprecated Используйте bottomSheetProps.actionButton
|
|
39
|
-
*/
|
|
40
|
-
footer?: ReactNode;
|
|
41
|
-
/**
|
|
42
|
-
* Будет ли свайпаться шторка
|
|
43
|
-
* @deprecated Используйте bottomSheetProps.swipeable
|
|
44
|
-
*/
|
|
45
|
-
swipeable?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Отображать в BottomSheet
|
|
48
|
-
*/
|
|
49
|
-
isBottomSheet?: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Дополнительные пропсы шторки
|
|
52
|
-
*/
|
|
53
|
-
bottomSheetProps?: Partial<BottomSheetProps>;
|
|
54
|
-
/**
|
|
55
|
-
* Дополнительные пропсы модалки
|
|
56
|
-
*/
|
|
57
|
-
modalProps?: Partial<React.ComponentProps<typeof ModalMobile>>;
|
|
58
|
-
/**
|
|
59
|
-
* Дополнительные пропсы шапки модалки
|
|
60
|
-
*/
|
|
61
|
-
modalHeaderProps?: Partial<React.ComponentProps<typeof ModalMobile.Header>>;
|
|
62
|
-
/**
|
|
63
|
-
* Дополнительные пропсы футера модалки
|
|
64
|
-
*/
|
|
65
|
-
modalFooterProps?: Partial<React.ComponentProps<typeof ModalMobile.Footer>>;
|
|
66
|
-
};
|
|
67
|
-
declare const BaseSelectMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "Checkmark"> & {
|
|
68
|
-
/**
|
|
69
|
-
* Футер
|
|
70
|
-
* @deprecated Используйте bottomSheetProps.actionButton
|
|
71
|
-
*/
|
|
72
|
-
footer?: ReactNode;
|
|
73
|
-
/**
|
|
74
|
-
* Будет ли свайпаться шторка
|
|
75
|
-
* @deprecated Используйте bottomSheetProps.swipeable
|
|
76
|
-
*/
|
|
77
|
-
swipeable?: boolean | undefined;
|
|
78
|
-
/**
|
|
79
|
-
* Отображать в BottomSheet
|
|
80
|
-
*/
|
|
81
|
-
isBottomSheet?: boolean | undefined;
|
|
82
|
-
/**
|
|
83
|
-
* Дополнительные пропсы шторки
|
|
84
|
-
*/
|
|
85
|
-
bottomSheetProps?: Partial<BottomSheetProps> | undefined;
|
|
86
|
-
/**
|
|
87
|
-
* Дополнительные пропсы модалки
|
|
88
|
-
*/
|
|
89
|
-
modalProps?: Partial<ModalMobileProps & React.RefAttributes<HTMLDivElement>> | undefined;
|
|
90
|
-
/**
|
|
91
|
-
* Дополнительные пропсы шапки модалки
|
|
92
|
-
*/
|
|
93
|
-
modalHeaderProps?: Partial<import("./Component-c76d6398").HeaderProps> | undefined;
|
|
94
|
-
/**
|
|
95
|
-
* Дополнительные пропсы футера модалки
|
|
96
|
-
*/
|
|
97
|
-
modalFooterProps?: Partial<FooterProps> | undefined;
|
|
98
|
-
} & React.RefAttributes<unknown>>;
|
|
99
|
-
export { ModalMobile, Content, SelectMobileProps, BaseSelectMobile };
|
|
100
|
-
export { ModalMobileProps } from "./typings-bdb4c6b9";
|
package/Component-4cd3936b.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { FC, SVGProps } from "react";
|
|
4
|
-
import { OptionShape } from "./shared-4cd3936b";
|
|
5
|
-
import { OptionProps as BaseOptionProps } from "./shared-4cd3936b";
|
|
6
|
-
type OptionProps = Omit<BaseOptionProps, 'option'> & {
|
|
7
|
-
option: OptionShape & {
|
|
8
|
-
icon?: FC<SVGProps<SVGSVGElement>>;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
declare const Option: ({ option, children, ...restProps }: OptionProps) => React.JSX.Element;
|
|
12
|
-
export { Option };
|
package/Component-69921c40.d.ts
DELETED
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { FC, ForwardRefExoticComponent, RefAttributes, HTMLAttributes } from "react";
|
|
4
|
-
import { TextElementType, TextSkeletonProps } from "./types-1b036d4b";
|
|
5
|
-
declare const colors: readonly [
|
|
6
|
-
"tertiary",
|
|
7
|
-
"disabled",
|
|
8
|
-
"accent",
|
|
9
|
-
"primary",
|
|
10
|
-
"attention",
|
|
11
|
-
"positive",
|
|
12
|
-
"secondary",
|
|
13
|
-
"tertiary-inverted",
|
|
14
|
-
"primary-inverted",
|
|
15
|
-
"secondary-inverted",
|
|
16
|
-
"link",
|
|
17
|
-
"negative",
|
|
18
|
-
"static-primary-light",
|
|
19
|
-
"static-secondary-light",
|
|
20
|
-
"static-tertiary-light",
|
|
21
|
-
"static-primary-dark",
|
|
22
|
-
"static-secondary-dark",
|
|
23
|
-
"static-tertiary-dark",
|
|
24
|
-
"static-accent"
|
|
25
|
-
];
|
|
26
|
-
type Color = (typeof colors)[number];
|
|
27
|
-
type NativeProps = HTMLAttributes<HTMLSpanElement>;
|
|
28
|
-
type TextBaseProps = {
|
|
29
|
-
/**
|
|
30
|
-
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/tokens-assets-типографика--docs)
|
|
31
|
-
*/
|
|
32
|
-
view?: "primary-large" | "primary-medium" | "primary-small" | "secondary-large" | "secondary-medium" | "secondary-small" | "component" | "caps";
|
|
33
|
-
/**
|
|
34
|
-
* Цвет текста
|
|
35
|
-
*/
|
|
36
|
-
color?: Color;
|
|
37
|
-
/**
|
|
38
|
-
* Толщина шрифта
|
|
39
|
-
*/
|
|
40
|
-
weight?: "regular" | "medium" | "bold";
|
|
41
|
-
/**
|
|
42
|
-
* Делает цифры моноширинными
|
|
43
|
-
*/
|
|
44
|
-
monospaceNumbers?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* HTML тег
|
|
47
|
-
*/
|
|
48
|
-
tag?: "span" | "div";
|
|
49
|
-
/**
|
|
50
|
-
* Css-класс для стилизации (native prop)
|
|
51
|
-
*/
|
|
52
|
-
className?: string;
|
|
53
|
-
/**
|
|
54
|
-
* Id компонента для тестов
|
|
55
|
-
*/
|
|
56
|
-
dataTestId?: string;
|
|
57
|
-
/**
|
|
58
|
-
* Контент (native prop)
|
|
59
|
-
*/
|
|
60
|
-
children?: React.ReactNode;
|
|
61
|
-
/**
|
|
62
|
-
* Добавляет отступы к тэгу 'p'
|
|
63
|
-
*/
|
|
64
|
-
defaultMargins?: never;
|
|
65
|
-
/**
|
|
66
|
-
* Количество строк (не поддерживает IE)
|
|
67
|
-
*/
|
|
68
|
-
rowLimit?: 1 | 2 | 3;
|
|
69
|
-
/**
|
|
70
|
-
* Показать скелетон
|
|
71
|
-
*/
|
|
72
|
-
showSkeleton?: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* Пропы для скелетона
|
|
75
|
-
*/
|
|
76
|
-
skeletonProps?: TextSkeletonProps;
|
|
77
|
-
};
|
|
78
|
-
type TextPTagProps = Omit<TextBaseProps, "tag" | "defaultMargins"> & {
|
|
79
|
-
tag?: "p";
|
|
80
|
-
defaultMargins?: boolean;
|
|
81
|
-
};
|
|
82
|
-
type TextProps = Omit<NativeProps, "color"> & (TextBaseProps | TextPTagProps);
|
|
83
|
-
type NativeProps$0 = HTMLAttributes<HTMLHeadingElement>;
|
|
84
|
-
type TitleProps = Omit<NativeProps$0, "color"> & {
|
|
85
|
-
/**
|
|
86
|
-
* HTML тег
|
|
87
|
-
*/
|
|
88
|
-
tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div";
|
|
89
|
-
/**
|
|
90
|
-
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
|
|
91
|
-
*/
|
|
92
|
-
view?: "xlarge" | "large" | "medium" | "small" | "xsmall";
|
|
93
|
-
/**
|
|
94
|
-
* Цвет текста
|
|
95
|
-
*/
|
|
96
|
-
color?: Color;
|
|
97
|
-
/**
|
|
98
|
-
* Толщина шрифта
|
|
99
|
-
*/
|
|
100
|
-
weight?: "regular" | "medium" | "bold";
|
|
101
|
-
/**
|
|
102
|
-
* Шрифт текста
|
|
103
|
-
*/
|
|
104
|
-
font?: "styrene" | "system";
|
|
105
|
-
/**
|
|
106
|
-
* Добавляет отступы
|
|
107
|
-
*/
|
|
108
|
-
defaultMargins?: boolean;
|
|
109
|
-
/**
|
|
110
|
-
* Css-класс для стилизации (native prop)
|
|
111
|
-
*/
|
|
112
|
-
className?: string;
|
|
113
|
-
/**
|
|
114
|
-
* Id компонента для тестов
|
|
115
|
-
*/
|
|
116
|
-
dataTestId?: string;
|
|
117
|
-
/**
|
|
118
|
-
* Контент (native prop)
|
|
119
|
-
*/
|
|
120
|
-
children?: React.ReactNode;
|
|
121
|
-
/**
|
|
122
|
-
* Количество строк (не поддерживает IE)
|
|
123
|
-
*/
|
|
124
|
-
rowLimit?: 1 | 2 | 3;
|
|
125
|
-
/**
|
|
126
|
-
* Показать скелетон
|
|
127
|
-
*/
|
|
128
|
-
showSkeleton?: boolean;
|
|
129
|
-
/**
|
|
130
|
-
* Пропы для скелетона
|
|
131
|
-
*/
|
|
132
|
-
skeletonProps?: TextSkeletonProps;
|
|
133
|
-
};
|
|
134
|
-
type TitleMobileProps = Omit<TitleProps, "defaultMargins">;
|
|
135
|
-
declare const Typography: {
|
|
136
|
-
Title: FC<TitleProps>;
|
|
137
|
-
Text: ForwardRefExoticComponent<TextProps & RefAttributes<TextElementType>>;
|
|
138
|
-
TitleResponsive: FC<TitleProps>;
|
|
139
|
-
TitleMobile: FC<TitleMobileProps>;
|
|
140
|
-
};
|
|
141
|
-
declare const typographyPresets: {
|
|
142
|
-
mobile: {
|
|
143
|
-
list: {
|
|
144
|
-
text: {
|
|
145
|
-
primary: {
|
|
146
|
-
tag: string;
|
|
147
|
-
view: string;
|
|
148
|
-
};
|
|
149
|
-
secondary: {
|
|
150
|
-
tag: string;
|
|
151
|
-
color: string;
|
|
152
|
-
view: string;
|
|
153
|
-
};
|
|
154
|
-
};
|
|
155
|
-
};
|
|
156
|
-
};
|
|
157
|
-
};
|
|
158
|
-
declare const TitleResponsive: FC<TitleProps>;
|
|
159
|
-
interface BackArrowAddonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
160
|
-
/**
|
|
161
|
-
* Текст после иконки
|
|
162
|
-
*/
|
|
163
|
-
text?: string;
|
|
164
|
-
/**
|
|
165
|
-
* Дополнительный класс
|
|
166
|
-
*/
|
|
167
|
-
className?: string;
|
|
168
|
-
/**
|
|
169
|
-
* Вид компонента
|
|
170
|
-
*/
|
|
171
|
-
view: 'mobile' | 'desktop';
|
|
172
|
-
/**
|
|
173
|
-
* Прозрачность текста
|
|
174
|
-
*/
|
|
175
|
-
textOpacity?: number;
|
|
176
|
-
/**
|
|
177
|
-
* Обработчик клика
|
|
178
|
-
*/
|
|
179
|
-
onClick?: () => void;
|
|
180
|
-
}
|
|
181
|
-
declare const BackArrowAddon: React.FC<BackArrowAddonProps>;
|
|
182
|
-
export { Typography, typographyPresets, TitleResponsive, BackArrowAddonProps, BackArrowAddon };
|
|
183
|
-
export type { TitleProps, TextProps, Color };
|
|
184
|
-
export * from "./useSkeleton-ebda875c";
|