@alfalab/core-components-tabs 7.6.0 → 7.6.2
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-abcc39aa.d.ts → Component-2aef4eba.d.ts} +2 -2
- package/Component-3885b0d7.d.ts +69 -4
- package/Component-ebda875c.d.ts +9 -139
- package/{esm/Component.mobile-e81c389f.d.ts → Component.mobile-b2c0420d.d.ts} +2 -5
- package/{esm/Component.responsive-abcc39aa.d.ts → Component.responsive-2aef4eba.d.ts} +4 -4
- package/components/primary-tablist/Component.desktop.js +1 -1
- package/components/primary-tablist/Component.mobile.js +2 -2
- package/components/primary-tablist/Component.responsive.js +1 -1
- package/components/primary-tablist/index.css +29 -29
- package/components/primary-tablist/mobile.css +40 -32
- package/components/scrollable-container/Component.js +1 -1
- package/components/scrollable-container/index.css +5 -5
- 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 +21 -13
- package/components/tab/Component.js +1 -1
- package/components/tab/index.css +3 -3
- package/components/tabs/Component.desktop.js +2 -2
- package/components/tabs/Component.mobile.js +2 -2
- package/components/tabs/Component.responsive.js +2 -2
- package/{esm/Component-abcc39aa.d.ts → cssm/Component-2aef4eba.d.ts} +2 -2
- package/cssm/Component-3885b0d7.d.ts +69 -4
- package/cssm/Component-ebda875c.d.ts +9 -139
- package/{Component.mobile-e81c389f.d.ts → cssm/Component.mobile-b2c0420d.d.ts} +2 -5
- package/cssm/{Component.responsive-abcc39aa.d.ts → Component.responsive-2aef4eba.d.ts} +4 -4
- package/cssm/hook-3e68f8db.d.ts +15 -4
- package/cssm/{index-abcc39aa.d.ts → index-2aef4eba.d.ts} +3 -2
- package/cssm/index-3e68f8db.d.ts +1 -0
- package/cssm/index-701e77da.d.ts +4 -0
- package/desktop.js +2 -2
- package/{modern/Component-abcc39aa.d.ts → esm/Component-2aef4eba.d.ts} +2 -2
- package/esm/Component-3885b0d7.d.ts +69 -4
- package/esm/Component-ebda875c.d.ts +9 -139
- package/{cssm/Component.mobile-e81c389f.d.ts → esm/Component.mobile-b2c0420d.d.ts} +2 -5
- package/{Component.responsive-abcc39aa.d.ts → esm/Component.responsive-2aef4eba.d.ts} +4 -4
- package/esm/components/primary-tablist/Component.desktop.js +1 -1
- package/esm/components/primary-tablist/Component.mobile.js +2 -2
- package/esm/components/primary-tablist/Component.responsive.js +1 -1
- package/esm/components/primary-tablist/index.css +29 -29
- package/esm/components/primary-tablist/mobile.css +40 -32
- package/esm/components/scrollable-container/Component.js +1 -1
- package/esm/components/scrollable-container/index.css +5 -5
- package/esm/components/secondary-tablist/Component.desktop.js +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 +21 -13
- package/esm/components/tab/Component.js +1 -1
- package/esm/components/tab/index.css +3 -3
- 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.js +2 -2
- package/esm/hook-3e68f8db.d.ts +15 -4
- package/esm/{index-abcc39aa.d.ts → index-2aef4eba.d.ts} +3 -2
- package/esm/index-3e68f8db.d.ts +1 -0
- package/esm/index-701e77da.d.ts +4 -0
- package/esm/index.js +2 -2
- package/esm/index.module-a01a44bb.js +4 -0
- package/esm/index.module-cb6197d8.js +4 -0
- package/esm/mobile.js +2 -2
- package/esm/responsive.js +2 -2
- package/hook-3e68f8db.d.ts +15 -4
- package/{index-abcc39aa.d.ts → index-2aef4eba.d.ts} +3 -2
- package/index-3e68f8db.d.ts +1 -0
- package/index-701e77da.d.ts +4 -0
- package/index.js +2 -2
- package/index.module-44b9585d.js +6 -0
- package/index.module-77258299.js +6 -0
- package/mobile.js +2 -2
- package/{cssm/Component-abcc39aa.d.ts → modern/Component-2aef4eba.d.ts} +2 -2
- package/modern/Component-3885b0d7.d.ts +69 -4
- package/modern/Component-ebda875c.d.ts +9 -139
- package/modern/{Component.mobile-e81c389f.d.ts → Component.mobile-b2c0420d.d.ts} +2 -5
- package/modern/{Component.responsive-abcc39aa.d.ts → Component.responsive-2aef4eba.d.ts} +4 -4
- 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 +29 -29
- package/modern/components/primary-tablist/mobile.css +40 -32
- package/modern/components/scrollable-container/Component.js +1 -1
- package/modern/components/scrollable-container/index.css +5 -5
- package/modern/components/secondary-tablist/Component.desktop.js +1 -1
- package/modern/components/secondary-tablist/Component.mobile.js +2 -2
- package/modern/components/secondary-tablist/Component.responsive.js +1 -1
- package/modern/components/secondary-tablist/index.css +11 -11
- package/modern/components/secondary-tablist/mobile.css +21 -13
- 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/hook-3e68f8db.d.ts +15 -4
- package/modern/{index-abcc39aa.d.ts → index-2aef4eba.d.ts} +3 -2
- package/modern/index-3e68f8db.d.ts +1 -0
- package/modern/index-701e77da.d.ts +4 -0
- package/modern/index.js +2 -2
- package/modern/index.module-71e56d00.js +4 -0
- package/modern/index.module-cd918b29.js +4 -0
- package/modern/mobile.js +2 -2
- package/modern/responsive.js +2 -2
- package/package.json +4 -4
- package/responsive.js +2 -2
- package/esm/index.module-72f734ce.js +0 -4
- package/esm/index.module-bd9d6b19.js +0 -4
- package/index.module-0f7a6fdd.js +0 -6
- package/index.module-56173cf5.js +0 -6
- package/modern/index.module-2b4e7121.js +0 -4
- package/modern/index.module-e78fc797.js +0 -4
|
@@ -5,7 +5,7 @@ import { ButtonProps } from "./index-ebda875c";
|
|
|
5
5
|
import { BaseSelectProps } from "./index-3e68f8db";
|
|
6
6
|
type PickerButtonSize = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
7
7
|
type PickerButtonVariant = 'default' | 'compact';
|
|
8
|
-
type PickerButtonDesktopProps = Omit<BaseSelectProps, '
|
|
8
|
+
type PickerButtonDesktopProps = Omit<BaseSelectProps, 'placeholder' | 'Arrow' | 'autocomplete' | 'size' | 'onFocus' | 'selected' | 'closeOnSelect' | 'multiple' | 'hint' | 'allowUnselect' | 'options'> & Pick<ButtonProps, 'view' | 'loading' | 'leftAddons' | 'rightAddons'> & {
|
|
9
9
|
options: Array<BaseSelectProps['options'][0] & {
|
|
10
10
|
/**
|
|
11
11
|
* Иконка, отображающаяся слева от текстового представления пункта
|
|
@@ -26,7 +26,7 @@ type PickerButtonDesktopProps = Omit<BaseSelectProps, 'Field' | 'placeholder' |
|
|
|
26
26
|
*/
|
|
27
27
|
showArrow?: boolean;
|
|
28
28
|
};
|
|
29
|
-
declare const PickerButtonDesktop: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "placeholder" | "onFocus" | "size" | "selected" | "multiple" | "hint" | "options" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "
|
|
29
|
+
declare const PickerButtonDesktop: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "placeholder" | "onFocus" | "size" | "selected" | "multiple" | "hint" | "options" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "Arrow"> & Pick<ButtonProps, "rightAddons" | "leftAddons" | "view" | "loading"> & {
|
|
30
30
|
options: Array<BaseSelectProps['options'][0] & {
|
|
31
31
|
/**
|
|
32
32
|
* Иконка, отображающаяся слева от текстового представления пункта
|
package/Component-3885b0d7.d.ts
CHANGED
|
@@ -1,6 +1,71 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
import { BottomSheetProps } from "./index-f12ee135";
|
|
5
|
+
import { BaseSelectProps } from "./typings-5e1b8383";
|
|
6
|
+
type SelectMobileProps = Omit<BaseSelectProps, 'Checkmark' | 'onScroll'> & {
|
|
7
|
+
/**
|
|
8
|
+
* Футер
|
|
9
|
+
* @deprecated Используйте bottomSheetProps.actionButton
|
|
10
|
+
*/
|
|
11
|
+
footer?: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Будет ли свайпаться шторка
|
|
14
|
+
* @deprecated Используйте bottomSheetProps.swipeable
|
|
15
|
+
*/
|
|
16
|
+
swipeable?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Отображать в BottomSheet
|
|
19
|
+
*/
|
|
20
|
+
isBottomSheet?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Дополнительные пропсы шторки
|
|
23
|
+
*/
|
|
24
|
+
bottomSheetProps?: Partial<BottomSheetProps>;
|
|
25
|
+
/**
|
|
26
|
+
* Дополнительные пропсы модалки
|
|
27
|
+
*/
|
|
28
|
+
modalProps?: Partial<React.ComponentProps<typeof ModalMobile>>;
|
|
29
|
+
/**
|
|
30
|
+
* Дополнительные пропсы шапки модалки
|
|
31
|
+
*/
|
|
32
|
+
modalHeaderProps?: Partial<React.ComponentProps<typeof ModalMobile.Header>>;
|
|
33
|
+
/**
|
|
34
|
+
* Дополнительные пропсы футера модалки
|
|
35
|
+
*/
|
|
36
|
+
modalFooterProps?: Partial<React.ComponentProps<typeof ModalMobile.Footer>>;
|
|
37
|
+
};
|
|
38
|
+
declare const BaseSelectMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "Checkmark"> & {
|
|
39
|
+
/**
|
|
40
|
+
* Футер
|
|
41
|
+
* @deprecated Используйте bottomSheetProps.actionButton
|
|
42
|
+
*/
|
|
43
|
+
footer?: ReactNode;
|
|
44
|
+
/**
|
|
45
|
+
* Будет ли свайпаться шторка
|
|
46
|
+
* @deprecated Используйте bottomSheetProps.swipeable
|
|
47
|
+
*/
|
|
48
|
+
swipeable?: boolean | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Отображать в BottomSheet
|
|
51
|
+
*/
|
|
52
|
+
isBottomSheet?: boolean | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Дополнительные пропсы шторки
|
|
55
|
+
*/
|
|
56
|
+
bottomSheetProps?: Partial<BottomSheetProps> | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Дополнительные пропсы модалки
|
|
59
|
+
*/
|
|
60
|
+
modalProps?: Partial<import("./typings-bdb4c6b9").ModalMobileProps & React.RefAttributes<HTMLDivElement>> | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Дополнительные пропсы шапки модалки
|
|
63
|
+
*/
|
|
64
|
+
modalHeaderProps?: Partial<import("./Component-5e1b8383").HeaderProps> | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Дополнительные пропсы футера модалки
|
|
67
|
+
*/
|
|
68
|
+
modalFooterProps?: Partial<import("./Component.mobile-b2c0420d").FooterProps> | undefined;
|
|
69
|
+
} & React.RefAttributes<unknown>>;
|
|
70
|
+
export * from "./Component.mobile-b2c0420d";
|
|
71
|
+
export { SelectMobileProps, BaseSelectMobile };
|
package/Component-ebda875c.d.ts
CHANGED
|
@@ -1,142 +1,12 @@
|
|
|
1
|
-
/// <reference types="react-transition-group" />
|
|
2
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react-transition-group" />
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*/
|
|
11
|
-
children?: ReactNode;
|
|
12
|
-
/**
|
|
13
|
-
* Компонент бэкдропа
|
|
14
|
-
*/
|
|
15
|
-
Backdrop?: FC<BackdropProps>;
|
|
16
|
-
/**
|
|
17
|
-
* Свойства для Бэкдропа
|
|
18
|
-
*/
|
|
19
|
-
backdropProps?: Partial<BackdropProps> & Record<string, unknown>;
|
|
20
|
-
/**
|
|
21
|
-
* Нода, компонент или функция возвращающая их
|
|
22
|
-
*
|
|
23
|
-
* Контейнер к которому будут добавляться порталы
|
|
24
|
-
*/
|
|
25
|
-
container?: PortalProps['getPortalContainer'];
|
|
26
|
-
/**
|
|
27
|
-
* Отключает автоматический перевод фокуса на модалку при открытии
|
|
28
|
-
* @default false
|
|
29
|
-
*/
|
|
30
|
-
disableAutoFocus?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Отключает ловушку фокуса
|
|
33
|
-
* @default false
|
|
34
|
-
*/
|
|
35
|
-
disableFocusLock?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Отключает восстановление фокуса на предыдущем элементе после закрытия модалки
|
|
38
|
-
* @default false
|
|
39
|
-
*/
|
|
40
|
-
disableRestoreFocus?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Отключает вызов `callback` при нажатии Escape
|
|
43
|
-
* @default false
|
|
44
|
-
*/
|
|
45
|
-
disableEscapeKeyDown?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Отключает вызов `callback` при клике на бэкдроп
|
|
48
|
-
* @default false
|
|
49
|
-
*/
|
|
50
|
-
disableBackdropClick?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Отключает блокировку скролла при открытии модального окна
|
|
53
|
-
* @default false
|
|
54
|
-
*/
|
|
55
|
-
disableBlockingScroll?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Содержимое модалки всегда в DOM
|
|
58
|
-
* @default false
|
|
59
|
-
*/
|
|
60
|
-
keepMounted?: boolean;
|
|
61
|
-
/**
|
|
62
|
-
* Управление видимостью модалки
|
|
63
|
-
*/
|
|
64
|
-
open: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Дополнительный класс
|
|
67
|
-
*/
|
|
68
|
-
className?: string;
|
|
69
|
-
/**
|
|
70
|
-
* Дополнительный класс
|
|
71
|
-
*/
|
|
72
|
-
contentClassName?: string;
|
|
73
|
-
/**
|
|
74
|
-
* Дополнительный класс для обертки (Modal)
|
|
75
|
-
*/
|
|
76
|
-
wrapperClassName?: string;
|
|
77
|
-
/**
|
|
78
|
-
* Обработчик скролла контента
|
|
79
|
-
*/
|
|
80
|
-
scrollHandler?: 'wrapper' | 'content' | MutableRefObject<HTMLDivElement | null>;
|
|
81
|
-
/**
|
|
82
|
-
* Пропсы для анимации (CSSTransition)
|
|
83
|
-
*/
|
|
84
|
-
transitionProps?: Partial<TransitionProps>;
|
|
85
|
-
/**
|
|
86
|
-
* Рендерить ли в контейнер через портал.
|
|
87
|
-
* @default true
|
|
88
|
-
*/
|
|
89
|
-
usePortal?: boolean;
|
|
90
|
-
/**
|
|
91
|
-
* Обработчик события нажатия на бэкдроп
|
|
92
|
-
*/
|
|
93
|
-
onBackdropClick?: (event: MouseEvent) => void;
|
|
94
|
-
/**
|
|
95
|
-
* Обработчик события нажатия на Escape
|
|
96
|
-
*
|
|
97
|
-
* Если `disableEscapeKeyDown` - false и модальное окно в фокусе
|
|
98
|
-
*/
|
|
99
|
-
onEscapeKeyDown?: (event: KeyboardEvent) => void;
|
|
100
|
-
/**
|
|
101
|
-
* Обработчик закрытия
|
|
102
|
-
*/
|
|
103
|
-
onClose?: (event: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>, reason?: 'backdropClick' | 'escapeKeyDown' | 'closerClick') => void;
|
|
104
|
-
/**
|
|
105
|
-
* Обработчик события onEntered компонента Transition
|
|
106
|
-
*/
|
|
107
|
-
onMount?: () => void;
|
|
108
|
-
/**
|
|
109
|
-
* Обработчик события onExited компонента Transition
|
|
110
|
-
*/
|
|
111
|
-
onUnmount?: () => void;
|
|
112
|
-
/**
|
|
113
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
114
|
-
*/
|
|
115
|
-
dataTestId?: string;
|
|
116
|
-
/**
|
|
117
|
-
* z-index компонента
|
|
118
|
-
*/
|
|
119
|
-
zIndex?: number;
|
|
120
|
-
/**
|
|
121
|
-
* Реф, который должен быть установлен компонентной области
|
|
122
|
-
*/
|
|
123
|
-
componentRef?: MutableRefObject<HTMLDivElement | null>;
|
|
124
|
-
};
|
|
125
|
-
type BaseModalContext = {
|
|
126
|
-
parentRef: React.RefObject<HTMLDivElement>;
|
|
127
|
-
componentRef: React.RefObject<HTMLDivElement>;
|
|
128
|
-
hasFooter?: boolean;
|
|
129
|
-
hasHeader?: boolean;
|
|
130
|
-
hasScroll?: boolean;
|
|
131
|
-
headerHighlighted?: boolean;
|
|
132
|
-
footerHighlighted?: boolean;
|
|
133
|
-
headerOffset?: number;
|
|
134
|
-
setHeaderOffset: (offset: number) => void;
|
|
135
|
-
contentRef: Ref<HTMLElement>;
|
|
136
|
-
setHasHeader: (exists: boolean) => void;
|
|
137
|
-
setHasFooter: (exists: boolean) => void;
|
|
138
|
-
onClose: Required<BaseModalProps>['onClose'];
|
|
4
|
+
import { CheckboxProps } from "./index-ebda875c";
|
|
5
|
+
type HeaderProps = {
|
|
6
|
+
checked?: boolean;
|
|
7
|
+
indeterminate?: boolean;
|
|
8
|
+
onChange?: CheckboxProps['onChange'];
|
|
9
|
+
mobile?: boolean;
|
|
139
10
|
};
|
|
140
|
-
declare const
|
|
141
|
-
|
|
142
|
-
export { BaseModalProps, BaseModalContext, BaseModal };
|
|
11
|
+
declare const Header: React.FC<HeaderProps>;
|
|
12
|
+
export { HeaderProps, Header };
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { FC, ReactNode } from "react";
|
|
4
|
-
import { NavigationBarProps } from "./index-e81c389f";
|
|
5
4
|
import { ContentProps, ModalMobileProps } from "./typings-bdb4c6b9";
|
|
6
|
-
type HeaderProps = Omit<NavigationBarProps, "size" | "view" | "parentRef">;
|
|
7
|
-
declare const Header: FC<HeaderProps>;
|
|
8
5
|
declare const Content: FC<ContentProps>;
|
|
9
6
|
type FooterProps = {
|
|
10
7
|
/**
|
|
@@ -31,8 +28,8 @@ type FooterProps = {
|
|
|
31
28
|
declare const Footer: FC<FooterProps>;
|
|
32
29
|
declare const ModalMobile: React.ForwardRefExoticComponent<ModalMobileProps & React.RefAttributes<HTMLDivElement>> & {
|
|
33
30
|
Content: React.FC<import("./typings-bdb4c6b9").ContentProps>;
|
|
34
|
-
Header: React.FC<HeaderProps>;
|
|
31
|
+
Header: React.FC<import("./Component-5e1b8383").HeaderProps>;
|
|
35
32
|
Footer: React.FC<FooterProps>;
|
|
36
33
|
Closer: React.FC<import("./index-e81c389f").CloserProps>;
|
|
37
34
|
};
|
|
38
|
-
export {
|
|
35
|
+
export { Content, FooterProps, Footer, ModalMobile };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { AdditionalMobileProps } from "./index-3e68f8db";
|
|
4
|
-
import { PickerButtonDesktopProps } from "./Component-
|
|
4
|
+
import { PickerButtonDesktopProps } from "./Component-2aef4eba";
|
|
5
5
|
import { ButtonProps } from "./index-ebda875c";
|
|
6
6
|
type PickerButtonMobileProps = Omit<PickerButtonDesktopProps, "OptionsList" | "Checkmark" | "onScroll"> & AdditionalMobileProps;
|
|
7
7
|
declare const PickerButtonMobile: React.ForwardRefExoticComponent<Omit<PickerButtonDesktopProps, "onScroll" | "OptionsList" | "Checkmark"> & AdditionalMobileProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -13,12 +13,12 @@ type PickerButtonResponsiveProps = PickerButtonDesktopProps & AdditionalMobilePr
|
|
|
13
13
|
*/
|
|
14
14
|
breakpoint?: number;
|
|
15
15
|
};
|
|
16
|
-
declare const PickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("./index-3e68f8db").BaseSelectProps, "placeholder" | "onFocus" | "size" | "selected" | "multiple" | "hint" | "options" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "
|
|
16
|
+
declare const PickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("./index-3e68f8db").BaseSelectProps, "placeholder" | "onFocus" | "size" | "selected" | "multiple" | "hint" | "options" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "Arrow"> & Pick<ButtonProps, "rightAddons" | "leftAddons" | "view" | "loading"> & {
|
|
17
17
|
options: ((import("./index-3e68f8db").OptionShape | import("./index-3e68f8db").GroupShape) & {
|
|
18
18
|
icon?: React.FC<React.SVGProps<SVGSVGElement>> | undefined;
|
|
19
19
|
})[];
|
|
20
|
-
size?: import("./Component-
|
|
21
|
-
variant?: import("./Component-
|
|
20
|
+
size?: import("./Component-2aef4eba").PickerButtonSize | undefined;
|
|
21
|
+
variant?: import("./Component-2aef4eba").PickerButtonVariant | undefined;
|
|
22
22
|
showArrow?: boolean | undefined;
|
|
23
23
|
} & AdditionalMobileProps & {
|
|
24
24
|
/**
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var tslib = require('tslib');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var components_primaryTablist_Component = require('./Component.js');
|
|
8
|
-
var index_module = require('../../index.module-
|
|
8
|
+
var index_module = require('../../index.module-77258299.js');
|
|
9
9
|
require('classnames');
|
|
10
10
|
require('@alfalab/core-components-badge');
|
|
11
11
|
require('@alfalab/core-components-keyboard-focusable');
|
|
@@ -6,7 +6,7 @@ var tslib = require('tslib');
|
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var cn = require('classnames');
|
|
8
8
|
var components_primaryTablist_Component = require('./Component.js');
|
|
9
|
-
var index_module = require('../../index.module-
|
|
9
|
+
var index_module = require('../../index.module-77258299.js');
|
|
10
10
|
require('@alfalab/core-components-badge');
|
|
11
11
|
require('@alfalab/core-components-keyboard-focusable');
|
|
12
12
|
require('@alfalab/core-components-picker-button/desktop');
|
|
@@ -25,7 +25,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
25
25
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
26
26
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
27
27
|
|
|
28
|
-
var mobileStyles = {"title":"
|
|
28
|
+
var mobileStyles = {"title":"tabs__title_1t2w8 tabs__title_no3qa","mobile":"tabs__mobile_1t2w8"};
|
|
29
29
|
require('./mobile.css')
|
|
30
30
|
|
|
31
31
|
var styles = tslib.__assign(tslib.__assign({}, index_module.commonStyles), mobileStyles);
|
|
@@ -20,7 +20,7 @@ require('../../synthetic-events.js');
|
|
|
20
20
|
require('../scrollable-container/Component.js');
|
|
21
21
|
require('compute-scroll-into-view');
|
|
22
22
|
require('../title/Component.js');
|
|
23
|
-
require('../../index.module-
|
|
23
|
+
require('../../index.module-77258299.js');
|
|
24
24
|
|
|
25
25
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
26
26
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 19tag */
|
|
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_no3qa {
|
|
87
87
|
position: relative;
|
|
88
88
|
display: inline-flex;
|
|
89
89
|
min-width: 100%
|
|
90
|
-
} .
|
|
90
|
+
} .tabs__component_no3qa: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_no3qa {
|
|
99
99
|
min-width: calc(100% - 2 * var(--gap-m));
|
|
100
100
|
margin: 0 var(--gap-m);
|
|
101
|
-
} .
|
|
101
|
+
} .tabs__container_no3qa {
|
|
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_no3qa {
|
|
109
109
|
display: flex;
|
|
110
110
|
align-items: center;
|
|
111
111
|
height: 100%;
|
|
@@ -122,76 +122,76 @@
|
|
|
122
122
|
user-select: none;
|
|
123
123
|
cursor: pointer;
|
|
124
124
|
outline: none
|
|
125
|
-
} .
|
|
125
|
+
} .tabs__title_no3qa:not(.tabs__disabled_no3qa):hover {
|
|
126
126
|
color: var(--primary-tablist-hover-color);
|
|
127
|
-
} .
|
|
127
|
+
} .tabs__focused_no3qa {
|
|
128
128
|
outline: 2px solid var(--focus-color);
|
|
129
129
|
outline-offset: 2px;
|
|
130
|
-
} .
|
|
130
|
+
} .tabs__collapsed_no3qa {
|
|
131
131
|
order: 99;
|
|
132
132
|
visibility: collapse;
|
|
133
|
-
} .
|
|
133
|
+
} .tabs__selected_no3qa {
|
|
134
134
|
cursor: default;
|
|
135
135
|
color: var(--primary-tablist-selected-color);
|
|
136
|
-
} .
|
|
136
|
+
} .tabs__disabled_no3qa {
|
|
137
137
|
cursor: var(--disabled-cursor);
|
|
138
138
|
color: var(--primary-tablist-disabled-color);
|
|
139
|
-
} .
|
|
139
|
+
} .tabs__line_no3qa {
|
|
140
140
|
position: absolute;
|
|
141
141
|
height: 3px;
|
|
142
142
|
bottom: 0;
|
|
143
143
|
left: 0;
|
|
144
144
|
background-color: var(--primary-tablist-line-color);
|
|
145
145
|
transition: transform 0.2s ease, width 0.2s ease;
|
|
146
|
-
} /* sizes */ .
|
|
146
|
+
} /* sizes */ .tabs__s_no3qa .tabs__title_no3qa, .tabs__xs_no3qa .tabs__title_no3qa, .tabs__xxs_no3qa .tabs__title_no3qa {
|
|
147
147
|
padding: var(--primary-tablist-s-padding);
|
|
148
148
|
font-size: var(--primary-tablist-s-font-size);
|
|
149
149
|
font-weight: var(--primary-tablist-s-font-weight);
|
|
150
150
|
font-family: var(--primary-tablist-s-font-family);
|
|
151
151
|
line-height: 24px;
|
|
152
|
-
} .
|
|
152
|
+
} .tabs__s_no3qa .tabs__title_no3qa + .tabs__title_no3qa, .tabs__xs_no3qa .tabs__title_no3qa + .tabs__title_no3qa, .tabs__xxs_no3qa .tabs__title_no3qa + .tabs__title_no3qa {
|
|
153
153
|
margin-left: var(--primary-tablist-s-gaps);
|
|
154
|
-
} .
|
|
154
|
+
} .tabs__s_no3qa .tabs__pickerWrapper_no3qa, .tabs__xs_no3qa .tabs__pickerWrapper_no3qa, .tabs__xxs_no3qa .tabs__pickerWrapper_no3qa {
|
|
155
155
|
margin-left: var(--primary-tablist-s-gaps);
|
|
156
|
-
} .
|
|
156
|
+
} .tabs__s_no3qa .tabs__option_no3qa, .tabs__xs_no3qa .tabs__option_no3qa, .tabs__xxs_no3qa .tabs__option_no3qa {
|
|
157
157
|
padding: 0;
|
|
158
|
-
} .
|
|
158
|
+
} .tabs__m_no3qa .tabs__title_no3qa {
|
|
159
159
|
padding: var(--primary-tablist-m-padding);
|
|
160
160
|
font-size: var(--primary-tablist-m-font-size);
|
|
161
161
|
font-weight: var(--primary-tablist-m-font-weight);
|
|
162
162
|
font-family: var(--primary-tablist-m-font-family);
|
|
163
163
|
line-height: 24px;
|
|
164
|
-
} .
|
|
164
|
+
} .tabs__m_no3qa .tabs__title_no3qa + .tabs__title_no3qa {
|
|
165
165
|
margin-left: var(--primary-tablist-m-gaps);
|
|
166
|
-
} .
|
|
166
|
+
} .tabs__m_no3qa .tabs__pickerWrapper_no3qa {
|
|
167
167
|
margin-left: var(--primary-tablist-m-gaps);
|
|
168
|
-
} .
|
|
168
|
+
} .tabs__m_no3qa .tabs__option_no3qa {
|
|
169
169
|
padding: 0;
|
|
170
|
-
} .
|
|
170
|
+
} .tabs__l_no3qa .tabs__title_no3qa {
|
|
171
171
|
padding: var(--primary-tablist-l-padding);
|
|
172
172
|
font-size: var(--primary-tablist-l-font-size);
|
|
173
173
|
font-weight: var(--primary-tablist-l-font-weight);
|
|
174
174
|
font-family: var(--primary-tablist-l-font-family);
|
|
175
175
|
line-height: 24px;
|
|
176
|
-
} .
|
|
176
|
+
} .tabs__l_no3qa .tabs__title_no3qa + .tabs__title_no3qa {
|
|
177
177
|
margin-left: var(--primary-tablist-l-gaps);
|
|
178
|
-
} .
|
|
178
|
+
} .tabs__l_no3qa .tabs__pickerWrapper_no3qa {
|
|
179
179
|
margin-left: var(--primary-tablist-l-gaps);
|
|
180
|
-
} .
|
|
180
|
+
} .tabs__l_no3qa .tabs__option_no3qa {
|
|
181
181
|
padding: 0;
|
|
182
|
-
} .
|
|
182
|
+
} .tabs__xl_no3qa .tabs__title_no3qa {
|
|
183
183
|
padding: var(--primary-tablist-xl-padding);
|
|
184
184
|
font-size: var(--primary-tablist-xl-font-size);
|
|
185
185
|
font-weight: var(--primary-tablist-xl-font-weight);
|
|
186
186
|
font-family: var(--primary-tablist-xl-font-family);
|
|
187
187
|
line-height: 32px;
|
|
188
|
-
} .
|
|
188
|
+
} .tabs__xl_no3qa .tabs__title_no3qa + .tabs__title_no3qa {
|
|
189
189
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
190
|
-
} .
|
|
190
|
+
} .tabs__xl_no3qa .tabs__pickerWrapper_no3qa {
|
|
191
191
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
192
|
-
} .
|
|
192
|
+
} .tabs__xl_no3qa .tabs__option_no3qa {
|
|
193
193
|
padding: 0;
|
|
194
|
-
} .
|
|
194
|
+
} .tabs__rightAddons_no3qa {
|
|
195
195
|
display: flex;
|
|
196
196
|
justify-content: center;
|
|
197
197
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 9mt3v */
|
|
2
2
|
:root {
|
|
3
3
|
}/* deprecated */:root {
|
|
4
4
|
--color-light-border-accent: #ef3124;
|
|
@@ -90,11 +90,11 @@
|
|
|
90
90
|
/* size l */
|
|
91
91
|
|
|
92
92
|
/* size xl */
|
|
93
|
-
}.
|
|
93
|
+
}.tabs__component_no3qa {
|
|
94
94
|
position: relative;
|
|
95
95
|
display: inline-flex;
|
|
96
96
|
min-width: 100%
|
|
97
|
-
}.
|
|
97
|
+
}.tabs__component_no3qa:before {
|
|
98
98
|
content: '';
|
|
99
99
|
display: block;
|
|
100
100
|
position: absolute;
|
|
@@ -102,17 +102,17 @@
|
|
|
102
102
|
height: 1px;
|
|
103
103
|
width: 100%;
|
|
104
104
|
background-color: var(--primary-tablist-bottom-border-color);
|
|
105
|
-
}.
|
|
105
|
+
}.tabs__fullWidthScroll_no3qa {
|
|
106
106
|
min-width: calc(100% - 2 * var(--gap-m));
|
|
107
107
|
margin: 0 var(--gap-m);
|
|
108
|
-
}.
|
|
108
|
+
}.tabs__container_no3qa {
|
|
109
109
|
position: relative;
|
|
110
110
|
overflow: hidden;
|
|
111
111
|
|
|
112
112
|
/* focus-outline fix */
|
|
113
113
|
margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
|
|
114
114
|
padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs);
|
|
115
|
-
}.
|
|
115
|
+
}.tabs__title_no3qa {
|
|
116
116
|
display: flex;
|
|
117
117
|
align-items: center;
|
|
118
118
|
height: 100%;
|
|
@@ -129,76 +129,76 @@
|
|
|
129
129
|
user-select: none;
|
|
130
130
|
cursor: pointer;
|
|
131
131
|
outline: none
|
|
132
|
-
}.
|
|
132
|
+
}.tabs__title_no3qa:not(.tabs__disabled_no3qa):hover {
|
|
133
133
|
color: var(--primary-tablist-hover-color);
|
|
134
|
-
}.
|
|
134
|
+
}.tabs__focused_no3qa {
|
|
135
135
|
outline: 2px solid var(--focus-color);
|
|
136
136
|
outline-offset: 2px;
|
|
137
|
-
}.
|
|
137
|
+
}.tabs__collapsed_no3qa {
|
|
138
138
|
order: 99;
|
|
139
139
|
visibility: collapse;
|
|
140
|
-
}.
|
|
140
|
+
}.tabs__selected_no3qa {
|
|
141
141
|
cursor: default;
|
|
142
142
|
color: var(--primary-tablist-selected-color);
|
|
143
|
-
}.
|
|
143
|
+
}.tabs__disabled_no3qa {
|
|
144
144
|
cursor: var(--disabled-cursor);
|
|
145
145
|
color: var(--primary-tablist-disabled-color);
|
|
146
|
-
}.
|
|
146
|
+
}.tabs__line_no3qa {
|
|
147
147
|
position: absolute;
|
|
148
148
|
height: 3px;
|
|
149
149
|
bottom: 0;
|
|
150
150
|
left: 0;
|
|
151
151
|
background-color: var(--primary-tablist-line-color);
|
|
152
152
|
transition: transform 0.2s ease, width 0.2s ease;
|
|
153
|
-
}/* sizes */.
|
|
153
|
+
}/* sizes */.tabs__s_no3qa .tabs__title_no3qa, .tabs__xs_no3qa .tabs__title_no3qa, .tabs__xxs_no3qa .tabs__title_no3qa {
|
|
154
154
|
padding: var(--primary-tablist-s-padding);
|
|
155
155
|
font-size: var(--primary-tablist-s-font-size);
|
|
156
156
|
font-weight: var(--primary-tablist-s-font-weight);
|
|
157
157
|
font-family: var(--primary-tablist-s-font-family);
|
|
158
158
|
line-height: 24px;
|
|
159
|
-
}.
|
|
159
|
+
}.tabs__s_no3qa .tabs__title_no3qa + .tabs__title_no3qa, .tabs__xs_no3qa .tabs__title_no3qa + .tabs__title_no3qa, .tabs__xxs_no3qa .tabs__title_no3qa + .tabs__title_no3qa {
|
|
160
160
|
margin-left: var(--primary-tablist-s-gaps);
|
|
161
|
-
}.
|
|
161
|
+
}.tabs__s_no3qa .tabs__pickerWrapper_no3qa, .tabs__xs_no3qa .tabs__pickerWrapper_no3qa, .tabs__xxs_no3qa .tabs__pickerWrapper_no3qa {
|
|
162
162
|
margin-left: var(--primary-tablist-s-gaps);
|
|
163
|
-
}.
|
|
163
|
+
}.tabs__s_no3qa .tabs__option_no3qa, .tabs__xs_no3qa .tabs__option_no3qa, .tabs__xxs_no3qa .tabs__option_no3qa {
|
|
164
164
|
padding: 0;
|
|
165
|
-
}.
|
|
165
|
+
}.tabs__m_no3qa .tabs__title_no3qa {
|
|
166
166
|
padding: var(--primary-tablist-m-padding);
|
|
167
167
|
font-size: var(--primary-tablist-m-font-size);
|
|
168
168
|
font-weight: var(--primary-tablist-m-font-weight);
|
|
169
169
|
font-family: var(--primary-tablist-m-font-family);
|
|
170
170
|
line-height: 24px;
|
|
171
|
-
}.
|
|
171
|
+
}.tabs__m_no3qa .tabs__title_no3qa + .tabs__title_no3qa {
|
|
172
172
|
margin-left: var(--primary-tablist-m-gaps);
|
|
173
|
-
}.
|
|
173
|
+
}.tabs__m_no3qa .tabs__pickerWrapper_no3qa {
|
|
174
174
|
margin-left: var(--primary-tablist-m-gaps);
|
|
175
|
-
}.
|
|
175
|
+
}.tabs__m_no3qa .tabs__option_no3qa {
|
|
176
176
|
padding: 0;
|
|
177
|
-
}.
|
|
177
|
+
}.tabs__l_no3qa .tabs__title_no3qa {
|
|
178
178
|
padding: var(--primary-tablist-l-padding);
|
|
179
179
|
font-size: var(--primary-tablist-l-font-size);
|
|
180
180
|
font-weight: var(--primary-tablist-l-font-weight);
|
|
181
181
|
font-family: var(--primary-tablist-l-font-family);
|
|
182
182
|
line-height: 24px;
|
|
183
|
-
}.
|
|
183
|
+
}.tabs__l_no3qa .tabs__title_no3qa + .tabs__title_no3qa {
|
|
184
184
|
margin-left: var(--primary-tablist-l-gaps);
|
|
185
|
-
}.
|
|
185
|
+
}.tabs__l_no3qa .tabs__pickerWrapper_no3qa {
|
|
186
186
|
margin-left: var(--primary-tablist-l-gaps);
|
|
187
|
-
}.
|
|
187
|
+
}.tabs__l_no3qa .tabs__option_no3qa {
|
|
188
188
|
padding: 0;
|
|
189
|
-
}.
|
|
189
|
+
}.tabs__xl_no3qa .tabs__title_no3qa {
|
|
190
190
|
padding: var(--primary-tablist-xl-padding);
|
|
191
191
|
font-size: var(--primary-tablist-xl-font-size);
|
|
192
192
|
font-weight: var(--primary-tablist-xl-font-weight);
|
|
193
193
|
font-family: var(--primary-tablist-xl-font-family);
|
|
194
194
|
line-height: 32px;
|
|
195
|
-
}.
|
|
195
|
+
}.tabs__xl_no3qa .tabs__title_no3qa + .tabs__title_no3qa {
|
|
196
196
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
197
|
-
}.
|
|
197
|
+
}.tabs__xl_no3qa .tabs__pickerWrapper_no3qa {
|
|
198
198
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
199
|
-
}.
|
|
199
|
+
}.tabs__xl_no3qa .tabs__option_no3qa {
|
|
200
200
|
padding: 0;
|
|
201
|
-
}.
|
|
201
|
+
}.tabs__rightAddons_no3qa {
|
|
202
202
|
display: flex;
|
|
203
203
|
justify-content: center;
|
|
204
204
|
align-items: center;
|
|
@@ -516,6 +516,10 @@
|
|
|
516
516
|
--color-dark-bg-secondary-inverted-tint-7: rgb(244, 245, 246);
|
|
517
517
|
--color-dark-bg-secondary-inverted-tint-15: rgb(245, 246, 246);
|
|
518
518
|
--color-dark-bg-tertiary-tint-7: rgb(59, 59, 61);
|
|
519
|
+
--color-dark-border-key-alpha-7: rgba(255, 255, 255, 0.07);
|
|
520
|
+
--color-dark-border-key-alpha-15: rgba(255, 255, 255, 0.15);
|
|
521
|
+
--color-dark-border-key-inverted-alpha-7: rgba(0, 0, 0, 0.07);
|
|
522
|
+
--color-dark-border-key-inverted-alpha-15: rgba(0, 0, 0, 0.15);
|
|
519
523
|
--color-dark-border-underline-alpha-30: rgba(70, 70, 73, 0.3);
|
|
520
524
|
--color-dark-border-underline-inverted-alpha-30: rgba(197, 197, 199, 0.3);
|
|
521
525
|
--color-dark-graphic-accent-alpha-30: rgba(239, 49, 36, 0.3);
|
|
@@ -668,6 +672,10 @@
|
|
|
668
672
|
--color-light-bg-secondary-inverted-shade-7: rgb(30, 30, 32);
|
|
669
673
|
--color-light-bg-secondary-inverted-shade-15: rgb(27, 27, 29);
|
|
670
674
|
--color-light-bg-tertiary-shade-7: rgb(217, 217, 219);
|
|
675
|
+
--color-light-border-key-alpha-7: rgba(0, 0, 0, 0.07);
|
|
676
|
+
--color-light-border-key-alpha-15: rgba(0, 0, 0, 0.15);
|
|
677
|
+
--color-light-border-key-inverted-alpha-7: rgba(255, 255, 255, 0.07);
|
|
678
|
+
--color-light-border-key-inverted-alpha-15: rgba(255, 255, 255, 0.15);
|
|
671
679
|
--color-light-border-underline-alpha-30: rgba(197, 197, 199, 0.3);
|
|
672
680
|
--color-light-border-underline-inverted-alpha-30: rgba(70, 70, 73, 0.3);
|
|
673
681
|
--color-light-graphic-accent-alpha-30: rgba(239, 49, 36, 0.3);
|
|
@@ -1090,13 +1098,13 @@
|
|
|
1090
1098
|
|
|
1091
1099
|
/* size xl */
|
|
1092
1100
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
1093
|
-
} .
|
|
1094
|
-
} .
|
|
1101
|
+
} .tabs__title_1t2w8 {
|
|
1102
|
+
} .tabs__mobile_1t2w8 .tabs__title_1t2w8 {
|
|
1095
1103
|
padding: var(--primary-tablist-mobile-padding);
|
|
1096
1104
|
font-size: var(--primary-tablist-mobile-font-size);
|
|
1097
1105
|
font-weight: var(--primary-tablist-mobile-font-weight);
|
|
1098
1106
|
font-family: var(--primary-tablist-mobile-font-family);
|
|
1099
1107
|
line-height: var(--primary-tablist-mobile-line-height)
|
|
1100
|
-
} .
|
|
1108
|
+
} .tabs__mobile_1t2w8 .tabs__title_1t2w8 + .tabs__title_1t2w8 {
|
|
1101
1109
|
margin-left: var(--primary-tablist-mobile-gaps);
|
|
1102
1110
|
}
|