@alfalab/core-components-tabs 7.3.2 → 7.3.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/{Component-97288072.d.ts → Component-3885b0d7.d.ts} +0 -0
- package/Component-3e68f8db.d.ts +2 -2
- package/Component-3fe0d3e6.d.ts +8 -0
- package/{Component-85892853.d.ts → Component-cac440c1.d.ts} +1 -1
- package/components/primary-tablist/Component.desktop.js +2 -2
- package/components/primary-tablist/Component.js +1 -1
- package/components/primary-tablist/Component.mobile.js +3 -3
- package/components/primary-tablist/Component.responsive.js +2 -2
- package/components/primary-tablist/index.css +38 -68
- package/components/primary-tablist/mobile.css +150 -163
- package/components/scrollable-container/Component.js +1 -1
- package/components/scrollable-container/index.css +14 -13
- package/components/secondary-tablist/Component.desktop.js +2 -2
- package/components/secondary-tablist/Component.js +1 -1
- package/components/secondary-tablist/Component.mobile.js +3 -3
- package/components/secondary-tablist/Component.responsive.js +2 -2
- package/components/secondary-tablist/index.css +20 -26
- package/components/secondary-tablist/mobile.css +130 -142
- package/components/tab/Component.js +1 -1
- package/components/tab/index.css +3 -3
- package/components/tabs/Component.desktop.js +3 -3
- package/components/tabs/Component.mobile.js +3 -3
- package/components/tabs/Component.responsive.js +3 -3
- package/components/title/Component.js +1 -1
- package/components/title/index.js +1 -1
- package/cssm/{Component-97288072.d.ts → Component-3885b0d7.d.ts} +0 -0
- package/cssm/Component-3e68f8db.d.ts +2 -2
- package/cssm/Component-3fe0d3e6.d.ts +8 -0
- package/{esm/Component-85892853.d.ts → cssm/Component-cac440c1.d.ts} +1 -1
- package/cssm/components/primary-tablist/index.module.css +37 -67
- package/cssm/components/primary-tablist/mobile.module.css +12 -12
- package/cssm/components/scrollable-container/index.module.css +13 -12
- package/cssm/components/secondary-tablist/index.module.css +19 -25
- package/cssm/components/secondary-tablist/mobile.module.css +11 -8
- package/cssm/index-3e68f8db.d.ts +4 -4
- package/cssm/index-3fe0d3e6.d.ts +2 -0
- package/cssm/index-48646db0.d.ts +1 -1
- package/cssm/index-7ca84eff.d.ts +6 -0
- package/cssm/index-ebda875c.d.ts +1 -1
- package/cssm/{typings-85892853.d.ts → typings-cac440c1.d.ts} +1 -5
- package/cssm/{utils-85892853.d.ts → utils-cac440c1.d.ts} +1 -1
- package/cssm/vars.css +9 -2
- package/desktop.js +3 -3
- package/esm/{Component-97288072.d.ts → Component-3885b0d7.d.ts} +0 -0
- package/esm/Component-3e68f8db.d.ts +2 -2
- package/esm/Component-3fe0d3e6.d.ts +8 -0
- package/{cssm/Component-85892853.d.ts → esm/Component-cac440c1.d.ts} +1 -1
- package/esm/components/primary-tablist/Component.desktop.js +2 -2
- package/esm/components/primary-tablist/Component.js +1 -1
- package/esm/components/primary-tablist/Component.mobile.js +3 -3
- package/esm/components/primary-tablist/Component.responsive.js +2 -2
- package/esm/components/primary-tablist/index.css +38 -68
- package/esm/components/primary-tablist/mobile.css +150 -163
- package/esm/components/scrollable-container/Component.js +1 -1
- package/esm/components/scrollable-container/index.css +14 -13
- package/esm/components/secondary-tablist/Component.desktop.js +2 -2
- package/esm/components/secondary-tablist/Component.js +1 -1
- package/esm/components/secondary-tablist/Component.mobile.js +3 -3
- package/esm/components/secondary-tablist/Component.responsive.js +2 -2
- package/esm/components/secondary-tablist/index.css +20 -26
- package/esm/components/secondary-tablist/mobile.css +130 -142
- package/esm/components/tab/Component.js +1 -1
- package/esm/components/tab/index.css +3 -3
- package/esm/components/tabs/Component.desktop.js +3 -3
- package/esm/components/tabs/Component.mobile.js +3 -3
- package/esm/components/tabs/Component.responsive.js +3 -3
- package/esm/components/title/Component.js +1 -1
- package/esm/components/title/index.js +1 -1
- package/esm/desktop.js +3 -3
- package/esm/hooks/use-collapsible-elements.js +1 -1
- package/esm/hooks/use-tablist-titles.js +1 -1
- package/esm/index-3e68f8db.d.ts +4 -4
- package/esm/index-3fe0d3e6.d.ts +2 -0
- package/esm/index-48646db0.d.ts +1 -1
- package/esm/index-7ca84eff.d.ts +6 -0
- package/esm/index-ebda875c.d.ts +1 -1
- package/esm/index.js +3 -3
- package/esm/index.module-ba97f96d.js +4 -0
- package/esm/index.module-da19acab.js +4 -0
- package/esm/mobile.js +3 -3
- package/esm/responsive.js +3 -3
- package/esm/synthetic-events.js +1 -1
- package/esm/{tslib.es6-b7cce272.d.ts → tslib.es6-ef625021.d.ts} +0 -0
- package/esm/{tslib.es6-b7cce272.js → tslib.es6-ef625021.js} +0 -0
- package/esm/{typings-85892853.d.ts → typings-cac440c1.d.ts} +1 -5
- package/esm/{utils-85892853.d.ts → utils-cac440c1.d.ts} +1 -1
- package/hooks/use-collapsible-elements.js +1 -1
- package/hooks/use-tablist-titles.js +1 -1
- package/index-3e68f8db.d.ts +4 -4
- package/index-3fe0d3e6.d.ts +2 -0
- package/index-48646db0.d.ts +1 -1
- package/index-7ca84eff.d.ts +6 -0
- package/index-ebda875c.d.ts +1 -1
- package/index.js +3 -3
- package/index.module-3b1c7c9a.js +6 -0
- package/index.module-88a600f7.js +6 -0
- package/mobile.js +3 -3
- package/modern/{Component-97288072.d.ts → Component-3885b0d7.d.ts} +0 -0
- package/modern/Component-3e68f8db.d.ts +2 -2
- package/modern/Component-3fe0d3e6.d.ts +8 -0
- package/modern/{Component-85892853.d.ts → Component-cac440c1.d.ts} +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 +38 -68
- package/modern/components/primary-tablist/mobile.css +150 -163
- package/modern/components/scrollable-container/Component.js +1 -1
- package/modern/components/scrollable-container/index.css +14 -13
- 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 +20 -26
- package/modern/components/secondary-tablist/mobile.css +130 -142
- package/modern/components/tab/Component.js +1 -1
- package/modern/components/tab/index.css +3 -3
- 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.js +2 -2
- package/modern/index-3e68f8db.d.ts +4 -4
- package/modern/index-3fe0d3e6.d.ts +2 -0
- package/modern/index-48646db0.d.ts +1 -1
- package/modern/index-7ca84eff.d.ts +6 -0
- package/modern/index-ebda875c.d.ts +1 -1
- package/modern/index.js +2 -2
- package/modern/index.module-08b2503f.js +4 -0
- package/modern/index.module-a4ad700d.js +4 -0
- package/modern/mobile.js +2 -2
- package/modern/responsive.js +2 -2
- package/modern/{typings-85892853.d.ts → typings-cac440c1.d.ts} +1 -5
- package/modern/{utils-85892853.d.ts → utils-cac440c1.d.ts} +1 -1
- package/package.json +2 -2
- package/responsive.js +3 -3
- package/synthetic-events.js +1 -1
- package/{tslib.es6-310680f9.d.ts → tslib.es6-860bcbc6.d.ts} +0 -0
- package/{tslib.es6-310680f9.js → tslib.es6-860bcbc6.js} +0 -0
- package/{typings-85892853.d.ts → typings-cac440c1.d.ts} +1 -5
- package/{utils-85892853.d.ts → utils-cac440c1.d.ts} +1 -1
- package/esm/index.module-260b2e11.js +0 -4
- package/esm/index.module-6cb75603.js +0 -4
- package/index.module-26e594f4.js +0 -6
- package/index.module-3d214349.js +0 -6
- package/modern/index.module-651ee496.js +0 -4
- package/modern/index.module-c197fcff.js +0 -4
package/esm/desktop.js
CHANGED
|
@@ -5,7 +5,7 @@ export { Tab } from './components/tab/Component.js';
|
|
|
5
5
|
export { TabsDesktop } from './components/tabs/Component.desktop.js';
|
|
6
6
|
export { useTabs } from './hooks/use-tabs.js';
|
|
7
7
|
export { useCollapsibleElements } from './hooks/use-collapsible-elements.js';
|
|
8
|
-
import './tslib.es6-
|
|
8
|
+
import './tslib.es6-ef625021.js';
|
|
9
9
|
import 'react';
|
|
10
10
|
import './components/primary-tablist/Component.js';
|
|
11
11
|
import 'classnames';
|
|
@@ -16,10 +16,10 @@ import './hooks/use-tablist-titles.js';
|
|
|
16
16
|
import '@alfalab/hooks';
|
|
17
17
|
import './synthetic-events.js';
|
|
18
18
|
import './components/title/Component.js';
|
|
19
|
-
import './index.module-
|
|
19
|
+
import './index.module-ba97f96d.js';
|
|
20
20
|
import 'compute-scroll-into-view';
|
|
21
21
|
import './components/secondary-tablist/Component.js';
|
|
22
22
|
import '@alfalab/core-components-tag/esm';
|
|
23
|
-
import './index.module-
|
|
23
|
+
import './index.module-da19acab.js';
|
|
24
24
|
import './components/tabs/Component.js';
|
|
25
25
|
import '@juggle/resize-observer';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as __spreadArray } from '../tslib.es6-
|
|
1
|
+
import { b as __spreadArray } from '../tslib.es6-ef625021.js';
|
|
2
2
|
import { useState, useRef } from 'react';
|
|
3
3
|
import { ResizeObserver } from '@juggle/resize-observer';
|
|
4
4
|
import { useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
|
package/esm/index-3e68f8db.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
import { FormControlProps } from "./Component-e67996e9";
|
|
5
|
-
import { BaseSelectProps, OptionProps, OptionShape } from "./typings-
|
|
6
|
-
type SelectFieldProps = FormControlProps & Record<string, unknown>;
|
|
5
|
+
import { BaseSelectProps, OptionProps, OptionShape } from "./typings-cac440c1";
|
|
6
|
+
type SelectFieldProps = Omit<FormControlProps, "size"> & Record<string, unknown>;
|
|
7
7
|
type SelectProps = Omit<BaseSelectProps, "fieldProps"> & {
|
|
8
8
|
/**
|
|
9
9
|
* Пропсы, которые будут прокинуты в компонент поля
|
|
@@ -94,5 +94,5 @@ declare const Skeleton: React.FC<SkeletonProps>;
|
|
|
94
94
|
export { SelectFieldProps, SelectProps, Select, useSelectWithLoading, useLazyLoading, SkeletonProps, Skeleton };
|
|
95
95
|
export * from "./hook-edac5428";
|
|
96
96
|
export * from "./index-48646db0";
|
|
97
|
-
export * from "./typings-
|
|
98
|
-
export * from "./utils-
|
|
97
|
+
export * from "./typings-cac440c1";
|
|
98
|
+
export * from "./utils-cac440c1";
|
package/esm/index-3fe0d3e6.d.ts
CHANGED
package/esm/index-48646db0.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./Component-
|
|
1
|
+
export * from "./Component-cac440c1";
|
|
2
2
|
export * from "./index-ebda875c";
|
package/esm/index-7ca84eff.d.ts
CHANGED
|
@@ -24,6 +24,12 @@ type BottomSheetProps = {
|
|
|
24
24
|
* Кнопка действия (обычно, это кнопка закрытия)
|
|
25
25
|
*/
|
|
26
26
|
actionButton?: ReactNode;
|
|
27
|
+
/**
|
|
28
|
+
* Нода, компонент или функция возвращающая их
|
|
29
|
+
*
|
|
30
|
+
* Контейнер к которому будут добавляться порталы
|
|
31
|
+
*/
|
|
32
|
+
container?: BaseModalProps["container"];
|
|
27
33
|
/**
|
|
28
34
|
* Дополнительный класс
|
|
29
35
|
*/
|
package/esm/index-ebda875c.d.ts
CHANGED
package/esm/index.js
CHANGED
|
@@ -4,7 +4,7 @@ export { SecondaryTabListResponsive } from './components/secondary-tablist/Compo
|
|
|
4
4
|
export { Tab } from './components/tab/Component.js';
|
|
5
5
|
export { TabsResponsive } from './components/tabs/Component.responsive.js';
|
|
6
6
|
export { useTabs } from './hooks/use-tabs.js';
|
|
7
|
-
import './tslib.es6-
|
|
7
|
+
import './tslib.es6-ef625021.js';
|
|
8
8
|
import 'react';
|
|
9
9
|
import '@alfalab/hooks';
|
|
10
10
|
import './components/primary-tablist/Component.desktop.js';
|
|
@@ -19,11 +19,11 @@ import '@juggle/resize-observer';
|
|
|
19
19
|
import './synthetic-events.js';
|
|
20
20
|
import './components/title/Component.js';
|
|
21
21
|
import 'compute-scroll-into-view';
|
|
22
|
-
import './index.module-
|
|
22
|
+
import './index.module-ba97f96d.js';
|
|
23
23
|
import './components/primary-tablist/Component.mobile.js';
|
|
24
24
|
import './components/secondary-tablist/Component.desktop.js';
|
|
25
25
|
import './components/secondary-tablist/Component.js';
|
|
26
26
|
import '@alfalab/core-components-tag/esm';
|
|
27
|
-
import './index.module-
|
|
27
|
+
import './index.module-da19acab.js';
|
|
28
28
|
import './components/secondary-tablist/Component.mobile.js';
|
|
29
29
|
import './components/tabs/Component.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var commonStyles = {"component":"tabs__component_mcuzy","fullWidthScroll":"tabs__fullWidthScroll_mcuzy","container":"tabs__container_mcuzy","title":"tabs__title_mcuzy","disabled":"tabs__disabled_mcuzy","focused":"tabs__focused_mcuzy","collapsed":"tabs__collapsed_mcuzy","selected":"tabs__selected_mcuzy","line":"tabs__line_mcuzy","s":"tabs__s_mcuzy","xs":"tabs__xs_mcuzy","xxs":"tabs__xxs_mcuzy","pickerWrapper":"tabs__pickerWrapper_mcuzy","option":"tabs__option_mcuzy","m":"tabs__m_mcuzy","l":"tabs__l_mcuzy","xl":"tabs__xl_mcuzy","rightAddons":"tabs__rightAddons_mcuzy"};
|
|
2
|
+
require('./components/primary-tablist/index.css')
|
|
3
|
+
|
|
4
|
+
export { commonStyles as c };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var commonStyles = {"component":"tabs__component_lu2o6","fullWidthScroll":"tabs__fullWidthScroll_lu2o6","container":"tabs__container_lu2o6","title":"tabs__title_lu2o6","xxs":"tabs__xxs_lu2o6","xs":"tabs__xs_lu2o6","s":"tabs__s_lu2o6","m":"tabs__m_lu2o6","l":"tabs__l_lu2o6","xl":"tabs__xl_lu2o6"};
|
|
2
|
+
require('./components/secondary-tablist/index.css')
|
|
3
|
+
|
|
4
|
+
export { commonStyles as c };
|
package/esm/mobile.js
CHANGED
|
@@ -4,7 +4,7 @@ export { SecondaryTabListMobile } from './components/secondary-tablist/Component
|
|
|
4
4
|
export { Tab } from './components/tab/Component.js';
|
|
5
5
|
export { TabsMobile } from './components/tabs/Component.mobile.js';
|
|
6
6
|
export { useTabs } from './hooks/use-tabs.js';
|
|
7
|
-
import './tslib.es6-
|
|
7
|
+
import './tslib.es6-ef625021.js';
|
|
8
8
|
import 'react';
|
|
9
9
|
import 'classnames';
|
|
10
10
|
import './components/primary-tablist/Component.js';
|
|
@@ -18,8 +18,8 @@ import '@juggle/resize-observer';
|
|
|
18
18
|
import './synthetic-events.js';
|
|
19
19
|
import './components/title/Component.js';
|
|
20
20
|
import 'compute-scroll-into-view';
|
|
21
|
-
import './index.module-
|
|
21
|
+
import './index.module-ba97f96d.js';
|
|
22
22
|
import './components/secondary-tablist/Component.js';
|
|
23
23
|
import '@alfalab/core-components-tag/esm';
|
|
24
|
-
import './index.module-
|
|
24
|
+
import './index.module-da19acab.js';
|
|
25
25
|
import './components/tabs/Component.js';
|
package/esm/responsive.js
CHANGED
|
@@ -5,7 +5,7 @@ export { Tab } from './components/tab/Component.js';
|
|
|
5
5
|
export { TabsResponsive } from './components/tabs/Component.responsive.js';
|
|
6
6
|
export { useTabs } from './hooks/use-tabs.js';
|
|
7
7
|
export { useCollapsibleElements } from './hooks/use-collapsible-elements.js';
|
|
8
|
-
import './tslib.es6-
|
|
8
|
+
import './tslib.es6-ef625021.js';
|
|
9
9
|
import 'react';
|
|
10
10
|
import '@alfalab/hooks';
|
|
11
11
|
import './components/primary-tablist/Component.desktop.js';
|
|
@@ -19,11 +19,11 @@ import '@juggle/resize-observer';
|
|
|
19
19
|
import './synthetic-events.js';
|
|
20
20
|
import './components/title/Component.js';
|
|
21
21
|
import 'compute-scroll-into-view';
|
|
22
|
-
import './index.module-
|
|
22
|
+
import './index.module-ba97f96d.js';
|
|
23
23
|
import './components/primary-tablist/Component.mobile.js';
|
|
24
24
|
import './components/secondary-tablist/Component.desktop.js';
|
|
25
25
|
import './components/secondary-tablist/Component.js';
|
|
26
26
|
import '@alfalab/core-components-tag/esm';
|
|
27
|
-
import './index.module-
|
|
27
|
+
import './index.module-da19acab.js';
|
|
28
28
|
import './components/secondary-tablist/Component.mobile.js';
|
|
29
29
|
import './components/tabs/Component.js';
|
package/esm/synthetic-events.js
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -250,10 +250,6 @@ type FieldProps = {
|
|
|
250
250
|
* Дополнительный класс
|
|
251
251
|
*/
|
|
252
252
|
className?: string;
|
|
253
|
-
/**
|
|
254
|
-
* Размер компонента
|
|
255
|
-
*/
|
|
256
|
-
size?: 's' | 'm' | 'l' | 'xl';
|
|
257
253
|
/**
|
|
258
254
|
* Выбранный пункт
|
|
259
255
|
*/
|
|
@@ -328,7 +324,7 @@ type FieldProps = {
|
|
|
328
324
|
* Идентификатор для систем автоматизированного тестирования
|
|
329
325
|
*/
|
|
330
326
|
dataTestId?: string;
|
|
331
|
-
}
|
|
327
|
+
} & Record<string, any>;
|
|
332
328
|
type ArrowProps = {
|
|
333
329
|
/**
|
|
334
330
|
* Дополнительный класс
|
|
@@ -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-cac440c1";
|
|
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, }: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require('../tslib.es6-
|
|
3
|
+
var tslib_es6 = require('../tslib.es6-860bcbc6.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var hooks = require('@alfalab/hooks');
|
|
6
6
|
var hooks_useCollapsibleElements = require('./use-collapsible-elements.js');
|
package/index-3e68f8db.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
import { FormControlProps } from "./Component-e67996e9";
|
|
5
|
-
import { BaseSelectProps, OptionProps, OptionShape } from "./typings-
|
|
6
|
-
type SelectFieldProps = FormControlProps & Record<string, unknown>;
|
|
5
|
+
import { BaseSelectProps, OptionProps, OptionShape } from "./typings-cac440c1";
|
|
6
|
+
type SelectFieldProps = Omit<FormControlProps, "size"> & Record<string, unknown>;
|
|
7
7
|
type SelectProps = Omit<BaseSelectProps, "fieldProps"> & {
|
|
8
8
|
/**
|
|
9
9
|
* Пропсы, которые будут прокинуты в компонент поля
|
|
@@ -94,5 +94,5 @@ declare const Skeleton: React.FC<SkeletonProps>;
|
|
|
94
94
|
export { SelectFieldProps, SelectProps, Select, useSelectWithLoading, useLazyLoading, SkeletonProps, Skeleton };
|
|
95
95
|
export * from "./hook-edac5428";
|
|
96
96
|
export * from "./index-48646db0";
|
|
97
|
-
export * from "./typings-
|
|
98
|
-
export * from "./utils-
|
|
97
|
+
export * from "./typings-cac440c1";
|
|
98
|
+
export * from "./utils-cac440c1";
|
package/index-3fe0d3e6.d.ts
CHANGED
package/index-48646db0.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./Component-
|
|
1
|
+
export * from "./Component-cac440c1";
|
|
2
2
|
export * from "./index-ebda875c";
|
package/index-7ca84eff.d.ts
CHANGED
|
@@ -24,6 +24,12 @@ type BottomSheetProps = {
|
|
|
24
24
|
* Кнопка действия (обычно, это кнопка закрытия)
|
|
25
25
|
*/
|
|
26
26
|
actionButton?: ReactNode;
|
|
27
|
+
/**
|
|
28
|
+
* Нода, компонент или функция возвращающая их
|
|
29
|
+
*
|
|
30
|
+
* Контейнер к которому будут добавляться порталы
|
|
31
|
+
*/
|
|
32
|
+
container?: BaseModalProps["container"];
|
|
27
33
|
/**
|
|
28
34
|
* Дополнительный класс
|
|
29
35
|
*/
|
package/index-ebda875c.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -6,7 +6,7 @@ var components_secondaryTablist_Component_responsive = require('./components/sec
|
|
|
6
6
|
var components_tab_Component = require('./components/tab/Component.js');
|
|
7
7
|
var components_tabs_Component_responsive = require('./components/tabs/Component.responsive.js');
|
|
8
8
|
var hooks_useTabs = require('./hooks/use-tabs.js');
|
|
9
|
-
require('./tslib.es6-
|
|
9
|
+
require('./tslib.es6-860bcbc6.js');
|
|
10
10
|
require('react');
|
|
11
11
|
require('@alfalab/hooks');
|
|
12
12
|
require('./components/primary-tablist/Component.desktop.js');
|
|
@@ -21,12 +21,12 @@ require('@juggle/resize-observer');
|
|
|
21
21
|
require('./synthetic-events.js');
|
|
22
22
|
require('./components/title/Component.js');
|
|
23
23
|
require('compute-scroll-into-view');
|
|
24
|
-
require('./index.module-
|
|
24
|
+
require('./index.module-88a600f7.js');
|
|
25
25
|
require('./components/primary-tablist/Component.mobile.js');
|
|
26
26
|
require('./components/secondary-tablist/Component.desktop.js');
|
|
27
27
|
require('./components/secondary-tablist/Component.js');
|
|
28
28
|
require('@alfalab/core-components-tag');
|
|
29
|
-
require('./index.module-
|
|
29
|
+
require('./index.module-3b1c7c9a.js');
|
|
30
30
|
require('./components/secondary-tablist/Component.mobile.js');
|
|
31
31
|
require('./components/tabs/Component.js');
|
|
32
32
|
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var commonStyles = {"component":"tabs__component_lu2o6","fullWidthScroll":"tabs__fullWidthScroll_lu2o6","container":"tabs__container_lu2o6","title":"tabs__title_lu2o6","xxs":"tabs__xxs_lu2o6","xs":"tabs__xs_lu2o6","s":"tabs__s_lu2o6","m":"tabs__m_lu2o6","l":"tabs__l_lu2o6","xl":"tabs__xl_lu2o6"};
|
|
4
|
+
require('./components/secondary-tablist/index.css')
|
|
5
|
+
|
|
6
|
+
exports.commonStyles = commonStyles;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var commonStyles = {"component":"tabs__component_mcuzy","fullWidthScroll":"tabs__fullWidthScroll_mcuzy","container":"tabs__container_mcuzy","title":"tabs__title_mcuzy","disabled":"tabs__disabled_mcuzy","focused":"tabs__focused_mcuzy","collapsed":"tabs__collapsed_mcuzy","selected":"tabs__selected_mcuzy","line":"tabs__line_mcuzy","s":"tabs__s_mcuzy","xs":"tabs__xs_mcuzy","xxs":"tabs__xxs_mcuzy","pickerWrapper":"tabs__pickerWrapper_mcuzy","option":"tabs__option_mcuzy","m":"tabs__m_mcuzy","l":"tabs__l_mcuzy","xl":"tabs__xl_mcuzy","rightAddons":"tabs__rightAddons_mcuzy"};
|
|
4
|
+
require('./components/primary-tablist/index.css')
|
|
5
|
+
|
|
6
|
+
exports.commonStyles = commonStyles;
|
package/mobile.js
CHANGED
|
@@ -6,7 +6,7 @@ var components_secondaryTablist_Component_mobile = require('./components/seconda
|
|
|
6
6
|
var components_tab_Component = require('./components/tab/Component.js');
|
|
7
7
|
var components_tabs_Component_mobile = require('./components/tabs/Component.mobile.js');
|
|
8
8
|
var hooks_useTabs = require('./hooks/use-tabs.js');
|
|
9
|
-
require('./tslib.es6-
|
|
9
|
+
require('./tslib.es6-860bcbc6.js');
|
|
10
10
|
require('react');
|
|
11
11
|
require('classnames');
|
|
12
12
|
require('./components/primary-tablist/Component.js');
|
|
@@ -20,10 +20,10 @@ require('@juggle/resize-observer');
|
|
|
20
20
|
require('./synthetic-events.js');
|
|
21
21
|
require('./components/title/Component.js');
|
|
22
22
|
require('compute-scroll-into-view');
|
|
23
|
-
require('./index.module-
|
|
23
|
+
require('./index.module-88a600f7.js');
|
|
24
24
|
require('./components/secondary-tablist/Component.js');
|
|
25
25
|
require('@alfalab/core-components-tag');
|
|
26
|
-
require('./index.module-
|
|
26
|
+
require('./index.module-3b1c7c9a.js');
|
|
27
27
|
require('./components/tabs/Component.js');
|
|
28
28
|
|
|
29
29
|
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { FC, SVGProps } from 'react';
|
|
3
|
-
import { OptionShape } from "./typings-
|
|
4
|
-
import { OptionProps as BaseOptionProps } from "./typings-
|
|
3
|
+
import { OptionShape } from "./typings-cac440c1";
|
|
4
|
+
import { OptionProps as BaseOptionProps } from "./typings-cac440c1";
|
|
5
5
|
type OptionProps = Omit<BaseOptionProps, 'option'> & {
|
|
6
6
|
option: OptionShape & {
|
|
7
7
|
icon?: FC<SVGProps<SVGSVGElement>>;
|
|
@@ -75,6 +75,10 @@ type TextBaseProps = {
|
|
|
75
75
|
* Добавляет отступы к тэгу 'p'
|
|
76
76
|
*/
|
|
77
77
|
defaultMargins?: never;
|
|
78
|
+
/**
|
|
79
|
+
* Количество строк (не поддерживает IE)
|
|
80
|
+
*/
|
|
81
|
+
rowLimit?: 1 | 2 | 3;
|
|
78
82
|
};
|
|
79
83
|
type TextPTagProps = Omit<TextBaseProps, "tag" | "defaultMargins"> & {
|
|
80
84
|
tag?: "p";
|
|
@@ -119,6 +123,10 @@ type TitleProps = Omit<NativeProps$0, "color"> & {
|
|
|
119
123
|
* Контент (native prop)
|
|
120
124
|
*/
|
|
121
125
|
children?: React.ReactNode;
|
|
126
|
+
/**
|
|
127
|
+
* Количество строк (не поддерживает IE)
|
|
128
|
+
*/
|
|
129
|
+
rowLimit?: 1 | 2 | 3;
|
|
122
130
|
};
|
|
123
131
|
type TitleMobileProps = Omit<TitleProps, "defaultMargins">;
|
|
124
132
|
declare const Typography: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PrimaryTabList } from './Component.js';
|
|
3
|
-
import { c as commonStyles } from '../../index.module-
|
|
3
|
+
import { c as commonStyles } from '../../index.module-a4ad700d.js';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import '@alfalab/core-components-badge/modern';
|
|
6
6
|
import '@alfalab/core-components-keyboard-focusable/modern';
|
|
@@ -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 { c as commonStyles } from '../../index.module-
|
|
4
|
+
import { c as commonStyles } from '../../index.module-a4ad700d.js';
|
|
5
5
|
import '@alfalab/core-components-badge/modern';
|
|
6
6
|
import '@alfalab/core-components-keyboard-focusable/modern';
|
|
7
7
|
import '@alfalab/core-components-picker-button/modern/desktop';
|
|
@@ -15,7 +15,7 @@ import '../scrollable-container/Component.js';
|
|
|
15
15
|
import 'compute-scroll-into-view';
|
|
16
16
|
import '../title/Component.js';
|
|
17
17
|
|
|
18
|
-
const mobileStyles = {"title":"
|
|
18
|
+
const mobileStyles = {"title":"tabs__title_1awe6 tabs__title_mcuzy","mobile":"tabs__mobile_1awe6"};
|
|
19
19
|
require('./mobile.css')
|
|
20
20
|
|
|
21
21
|
const styles = {
|
|
@@ -15,7 +15,7 @@ import '../../synthetic-events.js';
|
|
|
15
15
|
import '../scrollable-container/Component.js';
|
|
16
16
|
import 'compute-scroll-into-view';
|
|
17
17
|
import '../title/Component.js';
|
|
18
|
-
import '../../index.module-
|
|
18
|
+
import '../../index.module-a4ad700d.js';
|
|
19
19
|
|
|
20
20
|
const PrimaryTabListResponsive = ({ size, defaultMatch = 'desktop', collapsible, collapsedTabsIds, fullWidthScroll, ...restProps }) => {
|
|
21
21
|
const [view] = useMedia([
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1mbt0 */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
3
4
|
--color-light-border-accent: #ef3124;
|
|
4
5
|
--color-light-border-link: #007aff;
|
|
5
6
|
--color-light-border-primary: #dbdee1;
|
|
6
7
|
--color-light-text-primary: #0b1f35;
|
|
7
8
|
--color-light-text-secondary: rgba(11, 31, 53, 0.7);
|
|
8
9
|
--color-light-text-tertiary: rgba(11, 31, 53, 0.3);
|
|
9
|
-
}
|
|
10
|
-
:root {
|
|
10
|
+
} :root {
|
|
11
|
+
} :root {
|
|
12
|
+
} :root {
|
|
11
13
|
|
|
12
14
|
/* Hard */
|
|
13
15
|
|
|
14
16
|
/* Up */
|
|
15
17
|
|
|
16
18
|
/* Hard up */
|
|
17
|
-
}
|
|
18
|
-
:root {
|
|
19
|
+
} :root {
|
|
20
|
+
} :root {
|
|
19
21
|
--gap-2xs: 4px;
|
|
20
22
|
--gap-xs: 8px;
|
|
21
23
|
--gap-s: 12px;
|
|
@@ -23,16 +25,13 @@
|
|
|
23
25
|
--gap-l: 20px;
|
|
24
26
|
--gap-2xl: 32px;
|
|
25
27
|
--gap-2xs-neg: -4px;
|
|
26
|
-
}
|
|
27
|
-
:root {
|
|
28
|
+
} :root {
|
|
28
29
|
--font-family-system: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
|
|
29
30
|
sans-serif;
|
|
30
|
-
}
|
|
31
|
-
:root {
|
|
31
|
+
} :root {
|
|
32
32
|
--focus-color: var(--color-light-border-link);
|
|
33
33
|
--disabled-cursor: not-allowed;
|
|
34
|
-
}
|
|
35
|
-
:root {
|
|
34
|
+
} :root {
|
|
36
35
|
--primary-tablist-color: var(--color-light-text-secondary);
|
|
37
36
|
--primary-tablist-hover-color: var(--color-light-text-primary);
|
|
38
37
|
--primary-tablist-selected-color: var(--color-light-text-primary);
|
|
@@ -84,13 +83,11 @@
|
|
|
84
83
|
/* size l */
|
|
85
84
|
|
|
86
85
|
/* size xl */
|
|
87
|
-
}
|
|
88
|
-
.tabs__component_vx28z {
|
|
86
|
+
} .tabs__component_mcuzy {
|
|
89
87
|
position: relative;
|
|
90
88
|
display: inline-flex;
|
|
91
89
|
min-width: 100%
|
|
92
|
-
}
|
|
93
|
-
.tabs__component_vx28z:before {
|
|
90
|
+
} .tabs__component_mcuzy:before {
|
|
94
91
|
content: '';
|
|
95
92
|
display: block;
|
|
96
93
|
position: absolute;
|
|
@@ -98,20 +95,17 @@
|
|
|
98
95
|
height: 1px;
|
|
99
96
|
width: 100%;
|
|
100
97
|
background-color: var(--primary-tablist-bottom-border-color);
|
|
101
|
-
}
|
|
102
|
-
.tabs__fullWidthScroll_vx28z {
|
|
98
|
+
} .tabs__fullWidthScroll_mcuzy {
|
|
103
99
|
min-width: calc(100% - 2 * var(--gap-m));
|
|
104
100
|
margin: 0 var(--gap-m);
|
|
105
|
-
}
|
|
106
|
-
.tabs__container_vx28z {
|
|
101
|
+
} .tabs__container_mcuzy {
|
|
107
102
|
position: relative;
|
|
108
103
|
overflow: hidden;
|
|
109
104
|
|
|
110
105
|
/* focus-outline fix */
|
|
111
106
|
margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
|
|
112
107
|
padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs);
|
|
113
|
-
}
|
|
114
|
-
.tabs__title_vx28z {
|
|
108
|
+
} .tabs__title_mcuzy {
|
|
115
109
|
display: flex;
|
|
116
110
|
align-items: center;
|
|
117
111
|
height: 100%;
|
|
@@ -128,100 +122,76 @@
|
|
|
128
122
|
user-select: none;
|
|
129
123
|
cursor: pointer;
|
|
130
124
|
outline: none
|
|
131
|
-
}
|
|
132
|
-
.tabs__title_vx28z:not(.tabs__disabled_vx28z):hover {
|
|
125
|
+
} .tabs__title_mcuzy:not(.tabs__disabled_mcuzy):hover {
|
|
133
126
|
color: var(--primary-tablist-hover-color);
|
|
134
|
-
}
|
|
135
|
-
.tabs__focused_vx28z {
|
|
127
|
+
} .tabs__focused_mcuzy {
|
|
136
128
|
outline: 2px solid var(--focus-color);
|
|
137
129
|
outline-offset: 2px;
|
|
138
|
-
}
|
|
139
|
-
.tabs__collapsed_vx28z {
|
|
130
|
+
} .tabs__collapsed_mcuzy {
|
|
140
131
|
order: 99;
|
|
141
132
|
visibility: collapse;
|
|
142
|
-
}
|
|
143
|
-
.tabs__selected_vx28z {
|
|
133
|
+
} .tabs__selected_mcuzy {
|
|
144
134
|
cursor: default;
|
|
145
135
|
color: var(--primary-tablist-selected-color);
|
|
146
|
-
}
|
|
147
|
-
.tabs__disabled_vx28z {
|
|
136
|
+
} .tabs__disabled_mcuzy {
|
|
148
137
|
cursor: var(--disabled-cursor);
|
|
149
138
|
color: var(--primary-tablist-disabled-color);
|
|
150
|
-
}
|
|
151
|
-
.tabs__line_vx28z {
|
|
139
|
+
} .tabs__line_mcuzy {
|
|
152
140
|
position: absolute;
|
|
153
141
|
height: 3px;
|
|
154
142
|
bottom: 0;
|
|
155
143
|
left: 0;
|
|
156
144
|
background-color: var(--primary-tablist-line-color);
|
|
157
145
|
transition: transform 0.2s ease, width 0.2s ease;
|
|
158
|
-
}
|
|
159
|
-
/* sizes */
|
|
160
|
-
.tabs__s_vx28z .tabs__title_vx28z, .tabs__xs_vx28z .tabs__title_vx28z, .tabs__xxs_vx28z .tabs__title_vx28z {
|
|
146
|
+
} /* sizes */ .tabs__s_mcuzy .tabs__title_mcuzy, .tabs__xs_mcuzy .tabs__title_mcuzy, .tabs__xxs_mcuzy .tabs__title_mcuzy {
|
|
161
147
|
padding: var(--primary-tablist-s-padding);
|
|
162
148
|
font-size: var(--primary-tablist-s-font-size);
|
|
163
149
|
font-weight: var(--primary-tablist-s-font-weight);
|
|
164
150
|
font-family: var(--primary-tablist-s-font-family);
|
|
165
151
|
line-height: 24px;
|
|
166
|
-
}
|
|
167
|
-
.tabs__s_vx28z .tabs__title_vx28z + .tabs__title_vx28z, .tabs__xs_vx28z .tabs__title_vx28z + .tabs__title_vx28z, .tabs__xxs_vx28z .tabs__title_vx28z + .tabs__title_vx28z {
|
|
152
|
+
} .tabs__s_mcuzy .tabs__title_mcuzy + .tabs__title_mcuzy, .tabs__xs_mcuzy .tabs__title_mcuzy + .tabs__title_mcuzy, .tabs__xxs_mcuzy .tabs__title_mcuzy + .tabs__title_mcuzy {
|
|
168
153
|
margin-left: var(--primary-tablist-s-gaps);
|
|
169
|
-
}
|
|
170
|
-
.tabs__s_vx28z .tabs__pickerWrapper_vx28z, .tabs__xs_vx28z .tabs__pickerWrapper_vx28z, .tabs__xxs_vx28z .tabs__pickerWrapper_vx28z {
|
|
154
|
+
} .tabs__s_mcuzy .tabs__pickerWrapper_mcuzy, .tabs__xs_mcuzy .tabs__pickerWrapper_mcuzy, .tabs__xxs_mcuzy .tabs__pickerWrapper_mcuzy {
|
|
171
155
|
margin-left: var(--primary-tablist-s-gaps);
|
|
172
|
-
}
|
|
173
|
-
.tabs__s_vx28z .tabs__option_vx28z, .tabs__xs_vx28z .tabs__option_vx28z, .tabs__xxs_vx28z .tabs__option_vx28z {
|
|
156
|
+
} .tabs__s_mcuzy .tabs__option_mcuzy, .tabs__xs_mcuzy .tabs__option_mcuzy, .tabs__xxs_mcuzy .tabs__option_mcuzy {
|
|
174
157
|
padding: 0;
|
|
175
|
-
}
|
|
176
|
-
.tabs__m_vx28z .tabs__title_vx28z {
|
|
158
|
+
} .tabs__m_mcuzy .tabs__title_mcuzy {
|
|
177
159
|
padding: var(--primary-tablist-m-padding);
|
|
178
160
|
font-size: var(--primary-tablist-m-font-size);
|
|
179
161
|
font-weight: var(--primary-tablist-m-font-weight);
|
|
180
162
|
font-family: var(--primary-tablist-m-font-family);
|
|
181
163
|
line-height: 24px;
|
|
182
|
-
}
|
|
183
|
-
.tabs__m_vx28z .tabs__title_vx28z + .tabs__title_vx28z {
|
|
164
|
+
} .tabs__m_mcuzy .tabs__title_mcuzy + .tabs__title_mcuzy {
|
|
184
165
|
margin-left: var(--primary-tablist-m-gaps);
|
|
185
|
-
}
|
|
186
|
-
.tabs__m_vx28z .tabs__pickerWrapper_vx28z {
|
|
166
|
+
} .tabs__m_mcuzy .tabs__pickerWrapper_mcuzy {
|
|
187
167
|
margin-left: var(--primary-tablist-m-gaps);
|
|
188
|
-
}
|
|
189
|
-
.tabs__m_vx28z .tabs__option_vx28z {
|
|
168
|
+
} .tabs__m_mcuzy .tabs__option_mcuzy {
|
|
190
169
|
padding: 0;
|
|
191
|
-
}
|
|
192
|
-
.tabs__l_vx28z .tabs__title_vx28z {
|
|
170
|
+
} .tabs__l_mcuzy .tabs__title_mcuzy {
|
|
193
171
|
padding: var(--primary-tablist-l-padding);
|
|
194
172
|
font-size: var(--primary-tablist-l-font-size);
|
|
195
173
|
font-weight: var(--primary-tablist-l-font-weight);
|
|
196
174
|
font-family: var(--primary-tablist-l-font-family);
|
|
197
175
|
line-height: 24px;
|
|
198
|
-
}
|
|
199
|
-
.tabs__l_vx28z .tabs__title_vx28z + .tabs__title_vx28z {
|
|
176
|
+
} .tabs__l_mcuzy .tabs__title_mcuzy + .tabs__title_mcuzy {
|
|
200
177
|
margin-left: var(--primary-tablist-l-gaps);
|
|
201
|
-
}
|
|
202
|
-
.tabs__l_vx28z .tabs__pickerWrapper_vx28z {
|
|
178
|
+
} .tabs__l_mcuzy .tabs__pickerWrapper_mcuzy {
|
|
203
179
|
margin-left: var(--primary-tablist-l-gaps);
|
|
204
|
-
}
|
|
205
|
-
.tabs__l_vx28z .tabs__option_vx28z {
|
|
180
|
+
} .tabs__l_mcuzy .tabs__option_mcuzy {
|
|
206
181
|
padding: 0;
|
|
207
|
-
}
|
|
208
|
-
.tabs__xl_vx28z .tabs__title_vx28z {
|
|
182
|
+
} .tabs__xl_mcuzy .tabs__title_mcuzy {
|
|
209
183
|
padding: var(--primary-tablist-xl-padding);
|
|
210
184
|
font-size: var(--primary-tablist-xl-font-size);
|
|
211
185
|
font-weight: var(--primary-tablist-xl-font-weight);
|
|
212
186
|
font-family: var(--primary-tablist-xl-font-family);
|
|
213
187
|
line-height: 32px;
|
|
214
|
-
}
|
|
215
|
-
.tabs__xl_vx28z .tabs__title_vx28z + .tabs__title_vx28z {
|
|
188
|
+
} .tabs__xl_mcuzy .tabs__title_mcuzy + .tabs__title_mcuzy {
|
|
216
189
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
217
|
-
}
|
|
218
|
-
.tabs__xl_vx28z .tabs__pickerWrapper_vx28z {
|
|
190
|
+
} .tabs__xl_mcuzy .tabs__pickerWrapper_mcuzy {
|
|
219
191
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
220
|
-
}
|
|
221
|
-
.tabs__xl_vx28z .tabs__option_vx28z {
|
|
192
|
+
} .tabs__xl_mcuzy .tabs__option_mcuzy {
|
|
222
193
|
padding: 0;
|
|
223
|
-
}
|
|
224
|
-
.tabs__rightAddons_vx28z {
|
|
194
|
+
} .tabs__rightAddons_mcuzy {
|
|
225
195
|
display: flex;
|
|
226
196
|
justify-content: center;
|
|
227
197
|
align-items: center;
|