@alfalab/core-components-input-autocomplete 10.0.1 → 10.0.3
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-63dec22f.d.ts +18 -1
- package/Component.mobile.js +1 -1
- package/Component.modal.mobile.js +1 -1
- package/Component.responsive.js +1 -1
- package/autocomplete-field/Component.js +1 -1
- package/autocomplete-field/index.css +2 -2
- package/autocomplete-mobile-field/Component.js +1 -1
- package/autocomplete-mobile-field/index.css +8 -8
- package/component-50136800.d.ts +1 -1
- package/cssm/Component-63dec22f.d.ts +18 -1
- package/cssm/component-50136800.d.ts +1 -1
- package/cssm/index-f12ee135.d.ts +1 -1
- package/cssm/shared-4cd3936b.d.ts +1 -29
- package/cssm/types-1b036d4b.d.ts +13 -0
- package/cssm/{types-d9f9bbcc.d.ts → types-92653002.d.ts} +9 -1
- package/cssm/useSkeleton-ebda875c.d.ts +12 -0
- package/esm/Component-63dec22f.d.ts +18 -1
- package/esm/Component.mobile.js +1 -1
- package/esm/Component.modal.mobile.js +1 -1
- package/esm/Component.responsive.js +1 -1
- package/esm/autocomplete-field/Component.js +1 -1
- package/esm/autocomplete-field/index.css +2 -2
- package/esm/autocomplete-mobile-field/Component.js +1 -1
- package/esm/autocomplete-mobile-field/index.css +8 -8
- package/esm/component-50136800.d.ts +1 -1
- package/esm/index-f12ee135.d.ts +1 -1
- package/esm/index.js +1 -1
- package/esm/mobile.css +4 -4
- package/esm/mobile.js +1 -1
- package/esm/{mobile.module-d324a3dd.js → mobile.module-ebc4dd54.js} +1 -1
- package/esm/shared-4cd3936b.d.ts +1 -29
- package/esm/types-1b036d4b.d.ts +13 -0
- package/{modern/types-d9f9bbcc.d.ts → esm/types-92653002.d.ts} +9 -1
- package/esm/useSkeleton-ebda875c.d.ts +12 -0
- package/index-f12ee135.d.ts +1 -1
- package/index.js +1 -1
- package/mobile.css +4 -4
- package/mobile.js +1 -1
- package/{mobile.module-2c3c27e1.js → mobile.module-a21f1abf.js} +1 -1
- package/modern/Component-63dec22f.d.ts +18 -1
- package/modern/Component.mobile.js +1 -1
- package/modern/Component.modal.mobile.js +1 -1
- package/modern/Component.responsive.js +1 -1
- package/modern/autocomplete-field/Component.js +1 -1
- package/modern/autocomplete-field/index.css +2 -2
- package/modern/autocomplete-mobile-field/Component.js +1 -1
- package/modern/autocomplete-mobile-field/index.css +8 -8
- package/modern/component-50136800.d.ts +1 -1
- package/modern/index-f12ee135.d.ts +1 -1
- package/modern/index.js +1 -1
- package/modern/mobile.css +4 -4
- package/modern/mobile.js +1 -1
- package/modern/{mobile.module-990d8697.js → mobile.module-2d84bf35.js} +1 -1
- package/modern/shared-4cd3936b.d.ts +1 -29
- package/modern/types-1b036d4b.d.ts +13 -0
- package/{esm/types-d9f9bbcc.d.ts → modern/types-92653002.d.ts} +9 -1
- package/modern/useSkeleton-ebda875c.d.ts +12 -0
- package/package.json +4 -4
- package/shared-4cd3936b.d.ts +1 -29
- package/types-1b036d4b.d.ts +13 -0
- package/{types-d9f9bbcc.d.ts → types-92653002.d.ts} +9 -1
- package/useSkeleton-ebda875c.d.ts +12 -0
package/Component-63dec22f.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { FC, ForwardRefExoticComponent, RefAttributes, HTMLAttributes } from "react";
|
|
4
|
+
import { TextElementType, TextSkeletonProps } from "./types-1b036d4b";
|
|
4
5
|
declare const colors: readonly [
|
|
5
6
|
"tertiary",
|
|
6
7
|
"disabled",
|
|
@@ -23,7 +24,6 @@ declare const colors: readonly [
|
|
|
23
24
|
"static-accent"
|
|
24
25
|
];
|
|
25
26
|
type Color = (typeof colors)[number];
|
|
26
|
-
type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
|
|
27
27
|
type NativeProps = HTMLAttributes<HTMLSpanElement>;
|
|
28
28
|
type TextBaseProps = {
|
|
29
29
|
/**
|
|
@@ -66,6 +66,14 @@ type TextBaseProps = {
|
|
|
66
66
|
* Количество строк (не поддерживает IE)
|
|
67
67
|
*/
|
|
68
68
|
rowLimit?: 1 | 2 | 3;
|
|
69
|
+
/**
|
|
70
|
+
* Показать скелетон
|
|
71
|
+
*/
|
|
72
|
+
showSkeleton?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Пропы для скелетона
|
|
75
|
+
*/
|
|
76
|
+
skeletonProps?: TextSkeletonProps;
|
|
69
77
|
};
|
|
70
78
|
type TextPTagProps = Omit<TextBaseProps, "tag" | "defaultMargins"> & {
|
|
71
79
|
tag?: "p";
|
|
@@ -114,6 +122,14 @@ type TitleProps = Omit<NativeProps$0, "color"> & {
|
|
|
114
122
|
* Количество строк (не поддерживает IE)
|
|
115
123
|
*/
|
|
116
124
|
rowLimit?: 1 | 2 | 3;
|
|
125
|
+
/**
|
|
126
|
+
* Показать скелетон
|
|
127
|
+
*/
|
|
128
|
+
showSkeleton?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Пропы для скелетона
|
|
131
|
+
*/
|
|
132
|
+
skeletonProps?: TextSkeletonProps;
|
|
117
133
|
};
|
|
118
134
|
type TitleMobileProps = Omit<TitleProps, "defaultMargins">;
|
|
119
135
|
declare const Typography: {
|
|
@@ -165,3 +181,4 @@ interface BackArrowAddonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
|
165
181
|
declare const BackArrowAddon: React.FC<BackArrowAddonProps>;
|
|
166
182
|
export { Typography, typographyPresets, TitleResponsive, BackArrowAddonProps, BackArrowAddon };
|
|
167
183
|
export type { TitleProps, TextProps, Color };
|
|
184
|
+
export * from "./useSkeleton-ebda875c";
|
package/Component.mobile.js
CHANGED
|
@@ -11,7 +11,7 @@ var mobile$1 = require('@alfalab/core-components-button/mobile');
|
|
|
11
11
|
var coreComponentsInput = require('@alfalab/core-components-input');
|
|
12
12
|
var mobile = require('@alfalab/core-components-select/mobile');
|
|
13
13
|
var autocompleteMobileField_Component = require('./autocomplete-mobile-field/Component.js');
|
|
14
|
-
var mobile_module = require('./mobile.module-
|
|
14
|
+
var mobile_module = require('./mobile.module-a21f1abf.js');
|
|
15
15
|
require('@alfalab/core-components-form-control/mobile');
|
|
16
16
|
require('@alfalab/hooks');
|
|
17
17
|
|
|
@@ -11,7 +11,7 @@ var mobile$1 = require('@alfalab/core-components-button/mobile');
|
|
|
11
11
|
var coreComponentsInput = require('@alfalab/core-components-input');
|
|
12
12
|
var mobile = require('@alfalab/core-components-select/mobile');
|
|
13
13
|
var autocompleteMobileField_Component = require('./autocomplete-mobile-field/Component.js');
|
|
14
|
-
var mobile_module = require('./mobile.module-
|
|
14
|
+
var mobile_module = require('./mobile.module-a21f1abf.js');
|
|
15
15
|
require('@alfalab/core-components-form-control/mobile');
|
|
16
16
|
require('@alfalab/hooks');
|
|
17
17
|
|
package/Component.responsive.js
CHANGED
|
@@ -18,7 +18,7 @@ require('@alfalab/core-components-input');
|
|
|
18
18
|
require('@alfalab/core-components-select/mobile');
|
|
19
19
|
require('./autocomplete-mobile-field/Component.js');
|
|
20
20
|
require('@alfalab/core-components-form-control/mobile');
|
|
21
|
-
require('./mobile.module-
|
|
21
|
+
require('./mobile.module-a21f1abf.js');
|
|
22
22
|
|
|
23
23
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
24
24
|
|
|
@@ -14,7 +14,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
|
14
14
|
var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
15
15
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
16
16
|
|
|
17
|
-
var styles = {"arrow":"input-
|
|
17
|
+
var styles = {"arrow":"input-autocomplete__arrow_14ho3","error":"input-autocomplete__error_14ho3"};
|
|
18
18
|
require('./index.css')
|
|
19
19
|
|
|
20
20
|
var AutocompleteField = function (_a) {
|
|
@@ -13,7 +13,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
13
13
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
14
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
15
15
|
|
|
16
|
-
var styles = {"component":"input-
|
|
16
|
+
var styles = {"component":"input-autocomplete__component_qxxhu","field":"input-autocomplete__field_qxxhu","disabled":"input-autocomplete__disabled_qxxhu","placeholder":"input-autocomplete__placeholder_qxxhu","contentWrapper":"input-autocomplete__contentWrapper_qxxhu","value":"input-autocomplete__value_qxxhu","focusVisible":"input-autocomplete__focusVisible_qxxhu"};
|
|
17
17
|
require('./index.css')
|
|
18
18
|
|
|
19
19
|
var AutocompleteMobileField = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: zirng */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-link: #0072ef;
|
|
@@ -18,16 +18,16 @@
|
|
|
18
18
|
} :root {
|
|
19
19
|
--focus-color: var(--color-light-border-link);
|
|
20
20
|
--disabled-cursor: not-allowed;
|
|
21
|
-
} .input-
|
|
21
|
+
} .input-autocomplete__component_qxxhu {
|
|
22
22
|
width: 100%;
|
|
23
23
|
outline: none;
|
|
24
|
-
} .input-
|
|
24
|
+
} .input-autocomplete__field_qxxhu:not(.input-autocomplete__disabled_qxxhu) {
|
|
25
25
|
cursor: pointer;
|
|
26
|
-
} .input-
|
|
26
|
+
} .input-autocomplete__disabled_qxxhu {
|
|
27
27
|
cursor: var(--disabled-cursor);
|
|
28
|
-
} .input-
|
|
28
|
+
} .input-autocomplete__placeholder_qxxhu {
|
|
29
29
|
color: var(--color-light-text-secondary);
|
|
30
|
-
} .input-
|
|
30
|
+
} .input-autocomplete__contentWrapper_qxxhu {
|
|
31
31
|
font-size: 16px;
|
|
32
32
|
line-height: 20px;
|
|
33
33
|
font-weight: 400;
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
text-overflow: ellipsis;
|
|
37
37
|
overflow: hidden;
|
|
38
38
|
width: 100%;
|
|
39
|
-
} .input-
|
|
39
|
+
} .input-autocomplete__value_qxxhu {
|
|
40
40
|
overflow: hidden;
|
|
41
41
|
text-overflow: ellipsis;
|
|
42
42
|
text-align: left;
|
|
43
|
-
} .input-
|
|
43
|
+
} .input-autocomplete__focusVisible_qxxhu {
|
|
44
44
|
outline: 2px solid var(--focus-color);
|
|
45
45
|
outline-offset: 2px;
|
|
46
46
|
}
|
package/component-50136800.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { FC, ReactNode, RefObject } from "react";
|
|
|
4
4
|
import { NavigationBarProps } from "./index-c76d6398";
|
|
5
5
|
import { SwipeableHandlers } from "react-swipeable";
|
|
6
6
|
import { BackdropProps } from "./index-ebda875c";
|
|
7
|
-
import { BottomSheetProps } from "./types-
|
|
7
|
+
import { BottomSheetProps } from "./types-92653002";
|
|
8
8
|
type FooterProps = {
|
|
9
9
|
/**
|
|
10
10
|
* Контент футера
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { FC, ForwardRefExoticComponent, RefAttributes, HTMLAttributes } from "react";
|
|
4
|
+
import { TextElementType, TextSkeletonProps } from "./types-1b036d4b";
|
|
4
5
|
declare const colors: readonly [
|
|
5
6
|
"tertiary",
|
|
6
7
|
"disabled",
|
|
@@ -23,7 +24,6 @@ declare const colors: readonly [
|
|
|
23
24
|
"static-accent"
|
|
24
25
|
];
|
|
25
26
|
type Color = (typeof colors)[number];
|
|
26
|
-
type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
|
|
27
27
|
type NativeProps = HTMLAttributes<HTMLSpanElement>;
|
|
28
28
|
type TextBaseProps = {
|
|
29
29
|
/**
|
|
@@ -66,6 +66,14 @@ type TextBaseProps = {
|
|
|
66
66
|
* Количество строк (не поддерживает IE)
|
|
67
67
|
*/
|
|
68
68
|
rowLimit?: 1 | 2 | 3;
|
|
69
|
+
/**
|
|
70
|
+
* Показать скелетон
|
|
71
|
+
*/
|
|
72
|
+
showSkeleton?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Пропы для скелетона
|
|
75
|
+
*/
|
|
76
|
+
skeletonProps?: TextSkeletonProps;
|
|
69
77
|
};
|
|
70
78
|
type TextPTagProps = Omit<TextBaseProps, "tag" | "defaultMargins"> & {
|
|
71
79
|
tag?: "p";
|
|
@@ -114,6 +122,14 @@ type TitleProps = Omit<NativeProps$0, "color"> & {
|
|
|
114
122
|
* Количество строк (не поддерживает IE)
|
|
115
123
|
*/
|
|
116
124
|
rowLimit?: 1 | 2 | 3;
|
|
125
|
+
/**
|
|
126
|
+
* Показать скелетон
|
|
127
|
+
*/
|
|
128
|
+
showSkeleton?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Пропы для скелетона
|
|
131
|
+
*/
|
|
132
|
+
skeletonProps?: TextSkeletonProps;
|
|
117
133
|
};
|
|
118
134
|
type TitleMobileProps = Omit<TitleProps, "defaultMargins">;
|
|
119
135
|
declare const Typography: {
|
|
@@ -165,3 +181,4 @@ interface BackArrowAddonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
|
165
181
|
declare const BackArrowAddon: React.FC<BackArrowAddonProps>;
|
|
166
182
|
export { Typography, typographyPresets, TitleResponsive, BackArrowAddonProps, BackArrowAddon };
|
|
167
183
|
export type { TitleProps, TextProps, Color };
|
|
184
|
+
export * from "./useSkeleton-ebda875c";
|
|
@@ -4,7 +4,7 @@ import { FC, ReactNode, RefObject } from "react";
|
|
|
4
4
|
import { NavigationBarProps } from "./index-c76d6398";
|
|
5
5
|
import { SwipeableHandlers } from "react-swipeable";
|
|
6
6
|
import { BackdropProps } from "./index-ebda875c";
|
|
7
|
-
import { BottomSheetProps } from "./types-
|
|
7
|
+
import { BottomSheetProps } from "./types-92653002";
|
|
8
8
|
type FooterProps = {
|
|
9
9
|
/**
|
|
10
10
|
* Контент футера
|
package/cssm/index-f12ee135.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { ReactNode } from "react";
|
|
4
3
|
import { BaseSelectProps, OptionProps, OptionShape } from "./typings-5e1b8383";
|
|
5
4
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
6
5
|
type useSelectWithLoadingProps = {
|
|
@@ -57,36 +56,9 @@ declare function useLazyLoading({ limit, initialOffset, optionsFetcher, skeleton
|
|
|
57
56
|
};
|
|
58
57
|
reset: () => void;
|
|
59
58
|
};
|
|
60
|
-
type SkeletonProps = {
|
|
61
|
-
/**
|
|
62
|
-
* Флаг, явно задающий состояние, при котором контент закрывается прелоадером
|
|
63
|
-
*/
|
|
64
|
-
visible?: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Флаг явного включения анимации скелета
|
|
67
|
-
*/
|
|
68
|
-
animate?: boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Дополнительный класс
|
|
71
|
-
*/
|
|
72
|
-
className?: string;
|
|
73
|
-
/**
|
|
74
|
-
* Дополнительные инлайн стили
|
|
75
|
-
*/
|
|
76
|
-
style?: React.CSSProperties;
|
|
77
|
-
/**
|
|
78
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
79
|
-
*/
|
|
80
|
-
dataTestId?: string;
|
|
81
|
-
/**
|
|
82
|
-
* Дочерние элементы.
|
|
83
|
-
*/
|
|
84
|
-
children?: ReactNode;
|
|
85
|
-
};
|
|
86
|
-
declare const Skeleton: React.FC<SkeletonProps>;
|
|
87
59
|
export * from "./index-ebda875c";
|
|
88
60
|
export * from "./Component-5e1b8383";
|
|
89
|
-
export { useSelectWithLoading, useLazyLoading
|
|
61
|
+
export { useSelectWithLoading, useLazyLoading };
|
|
90
62
|
export * from "./hook-9ea9e32c";
|
|
91
63
|
export * from "./typings-5e1b8383";
|
|
92
64
|
export * from "./utils-5e1b8383";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
|
|
2
|
+
type WidthUnit = number | string;
|
|
3
|
+
type TextSkeletonProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Кол-во строк текста
|
|
6
|
+
*/
|
|
7
|
+
rows?: number;
|
|
8
|
+
/**
|
|
9
|
+
* Ширина строки
|
|
10
|
+
*/
|
|
11
|
+
width?: WidthUnit | WidthUnit[];
|
|
12
|
+
};
|
|
13
|
+
export { TextElementType, TextSkeletonProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react-transition-group" />
|
|
2
|
-
import { HTMLAttributes, ReactNode, RefObject } from 'react';
|
|
2
|
+
import { HTMLAttributes, ReactElement, ReactNode, RefObject } from 'react';
|
|
3
3
|
import { TransitionProps } from 'react-transition-group/Transition';
|
|
4
4
|
import { BaseModalProps } from "./index-bdb4c6b9";
|
|
5
5
|
import { NavigationBarProps } from "./index-c76d6398";
|
|
@@ -88,6 +88,14 @@ type BottomSheetProps = {
|
|
|
88
88
|
* Дополнительный класс для обертки модального окна
|
|
89
89
|
*/
|
|
90
90
|
modalWrapperClassName?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Дополнительный класс для маркера
|
|
93
|
+
*/
|
|
94
|
+
swipeableMarkerClassName?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Кастомный маркер
|
|
97
|
+
*/
|
|
98
|
+
swipeableMarker?: ReactElement;
|
|
91
99
|
/**
|
|
92
100
|
* TransitionProps, прокидываются в компонент CSSTransitionProps.
|
|
93
101
|
*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { TextSkeletonProps } from "./types-1b036d4b";
|
|
4
|
+
type SkeletonProps = {
|
|
5
|
+
wrapperClassName?: string;
|
|
6
|
+
dataTestId?: string;
|
|
7
|
+
};
|
|
8
|
+
declare function useSkeleton(showSkeleton?: boolean, skeletonProps?: TextSkeletonProps): {
|
|
9
|
+
renderSkeleton: (props: SkeletonProps) => React.JSX.Element | null;
|
|
10
|
+
textRef: React.RefObject<HTMLElement>;
|
|
11
|
+
};
|
|
12
|
+
export { useSkeleton };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { FC, ForwardRefExoticComponent, RefAttributes, HTMLAttributes } from "react";
|
|
4
|
+
import { TextElementType, TextSkeletonProps } from "./types-1b036d4b";
|
|
4
5
|
declare const colors: readonly [
|
|
5
6
|
"tertiary",
|
|
6
7
|
"disabled",
|
|
@@ -23,7 +24,6 @@ declare const colors: readonly [
|
|
|
23
24
|
"static-accent"
|
|
24
25
|
];
|
|
25
26
|
type Color = (typeof colors)[number];
|
|
26
|
-
type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
|
|
27
27
|
type NativeProps = HTMLAttributes<HTMLSpanElement>;
|
|
28
28
|
type TextBaseProps = {
|
|
29
29
|
/**
|
|
@@ -66,6 +66,14 @@ type TextBaseProps = {
|
|
|
66
66
|
* Количество строк (не поддерживает IE)
|
|
67
67
|
*/
|
|
68
68
|
rowLimit?: 1 | 2 | 3;
|
|
69
|
+
/**
|
|
70
|
+
* Показать скелетон
|
|
71
|
+
*/
|
|
72
|
+
showSkeleton?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Пропы для скелетона
|
|
75
|
+
*/
|
|
76
|
+
skeletonProps?: TextSkeletonProps;
|
|
69
77
|
};
|
|
70
78
|
type TextPTagProps = Omit<TextBaseProps, "tag" | "defaultMargins"> & {
|
|
71
79
|
tag?: "p";
|
|
@@ -114,6 +122,14 @@ type TitleProps = Omit<NativeProps$0, "color"> & {
|
|
|
114
122
|
* Количество строк (не поддерживает IE)
|
|
115
123
|
*/
|
|
116
124
|
rowLimit?: 1 | 2 | 3;
|
|
125
|
+
/**
|
|
126
|
+
* Показать скелетон
|
|
127
|
+
*/
|
|
128
|
+
showSkeleton?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Пропы для скелетона
|
|
131
|
+
*/
|
|
132
|
+
skeletonProps?: TextSkeletonProps;
|
|
117
133
|
};
|
|
118
134
|
type TitleMobileProps = Omit<TitleProps, "defaultMargins">;
|
|
119
135
|
declare const Typography: {
|
|
@@ -165,3 +181,4 @@ interface BackArrowAddonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
|
165
181
|
declare const BackArrowAddon: React.FC<BackArrowAddonProps>;
|
|
166
182
|
export { Typography, typographyPresets, TitleResponsive, BackArrowAddonProps, BackArrowAddon };
|
|
167
183
|
export type { TitleProps, TextProps, Color };
|
|
184
|
+
export * from "./useSkeleton-ebda875c";
|
package/esm/Component.mobile.js
CHANGED
|
@@ -7,7 +7,7 @@ import { ButtonMobile } from '@alfalab/core-components-button/esm/mobile';
|
|
|
7
7
|
import { Input } from '@alfalab/core-components-input/esm';
|
|
8
8
|
import { SelectMobile } from '@alfalab/core-components-select/esm/mobile';
|
|
9
9
|
import { AutocompleteMobileField } from './autocomplete-mobile-field/Component.js';
|
|
10
|
-
import { s as styles } from './mobile.module-
|
|
10
|
+
import { s as styles } from './mobile.module-ebc4dd54.js';
|
|
11
11
|
import '@alfalab/core-components-form-control/esm/mobile';
|
|
12
12
|
import '@alfalab/hooks';
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ import { ButtonMobile } from '@alfalab/core-components-button/esm/mobile';
|
|
|
7
7
|
import { Input } from '@alfalab/core-components-input/esm';
|
|
8
8
|
import { SelectModalMobile } from '@alfalab/core-components-select/esm/mobile';
|
|
9
9
|
import { AutocompleteMobileField } from './autocomplete-mobile-field/Component.js';
|
|
10
|
-
import { s as styles } from './mobile.module-
|
|
10
|
+
import { s as styles } from './mobile.module-ebc4dd54.js';
|
|
11
11
|
import '@alfalab/core-components-form-control/esm/mobile';
|
|
12
12
|
import '@alfalab/hooks';
|
|
13
13
|
|
|
@@ -14,7 +14,7 @@ import '@alfalab/core-components-input/esm';
|
|
|
14
14
|
import '@alfalab/core-components-select/esm/mobile';
|
|
15
15
|
import './autocomplete-mobile-field/Component.js';
|
|
16
16
|
import '@alfalab/core-components-form-control/esm/mobile';
|
|
17
|
-
import './mobile.module-
|
|
17
|
+
import './mobile.module-ebc4dd54.js';
|
|
18
18
|
|
|
19
19
|
var InputAutocompleteResponsive = forwardRef(function (_a, ref) {
|
|
20
20
|
var _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, restProps = __rest(_a, ["breakpoint"]);
|
|
@@ -4,7 +4,7 @@ import mergeRefs from 'react-merge-refs';
|
|
|
4
4
|
import cn from 'classnames';
|
|
5
5
|
import { InputDesktop } from '@alfalab/core-components-input/esm/desktop';
|
|
6
6
|
|
|
7
|
-
var styles = {"arrow":"input-
|
|
7
|
+
var styles = {"arrow":"input-autocomplete__arrow_14ho3","error":"input-autocomplete__error_14ho3"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
var AutocompleteField = function (_a) {
|
|
@@ -4,7 +4,7 @@ import cn from 'classnames';
|
|
|
4
4
|
import { FormControlMobile } from '@alfalab/core-components-form-control/esm/mobile';
|
|
5
5
|
import { useFocus } from '@alfalab/hooks';
|
|
6
6
|
|
|
7
|
-
var styles = {"component":"input-
|
|
7
|
+
var styles = {"component":"input-autocomplete__component_qxxhu","field":"input-autocomplete__field_qxxhu","disabled":"input-autocomplete__disabled_qxxhu","placeholder":"input-autocomplete__placeholder_qxxhu","contentWrapper":"input-autocomplete__contentWrapper_qxxhu","value":"input-autocomplete__value_qxxhu","focusVisible":"input-autocomplete__focusVisible_qxxhu"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
var AutocompleteMobileField = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: zirng */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-link: #0072ef;
|
|
@@ -18,16 +18,16 @@
|
|
|
18
18
|
} :root {
|
|
19
19
|
--focus-color: var(--color-light-border-link);
|
|
20
20
|
--disabled-cursor: not-allowed;
|
|
21
|
-
} .input-
|
|
21
|
+
} .input-autocomplete__component_qxxhu {
|
|
22
22
|
width: 100%;
|
|
23
23
|
outline: none;
|
|
24
|
-
} .input-
|
|
24
|
+
} .input-autocomplete__field_qxxhu:not(.input-autocomplete__disabled_qxxhu) {
|
|
25
25
|
cursor: pointer;
|
|
26
|
-
} .input-
|
|
26
|
+
} .input-autocomplete__disabled_qxxhu {
|
|
27
27
|
cursor: var(--disabled-cursor);
|
|
28
|
-
} .input-
|
|
28
|
+
} .input-autocomplete__placeholder_qxxhu {
|
|
29
29
|
color: var(--color-light-text-secondary);
|
|
30
|
-
} .input-
|
|
30
|
+
} .input-autocomplete__contentWrapper_qxxhu {
|
|
31
31
|
font-size: 16px;
|
|
32
32
|
line-height: 20px;
|
|
33
33
|
font-weight: 400;
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
text-overflow: ellipsis;
|
|
37
37
|
overflow: hidden;
|
|
38
38
|
width: 100%;
|
|
39
|
-
} .input-
|
|
39
|
+
} .input-autocomplete__value_qxxhu {
|
|
40
40
|
overflow: hidden;
|
|
41
41
|
text-overflow: ellipsis;
|
|
42
42
|
text-align: left;
|
|
43
|
-
} .input-
|
|
43
|
+
} .input-autocomplete__focusVisible_qxxhu {
|
|
44
44
|
outline: 2px solid var(--focus-color);
|
|
45
45
|
outline-offset: 2px;
|
|
46
46
|
}
|
|
@@ -4,7 +4,7 @@ import { FC, ReactNode, RefObject } from "react";
|
|
|
4
4
|
import { NavigationBarProps } from "./index-c76d6398";
|
|
5
5
|
import { SwipeableHandlers } from "react-swipeable";
|
|
6
6
|
import { BackdropProps } from "./index-ebda875c";
|
|
7
|
-
import { BottomSheetProps } from "./types-
|
|
7
|
+
import { BottomSheetProps } from "./types-92653002";
|
|
8
8
|
type FooterProps = {
|
|
9
9
|
/**
|
|
10
10
|
* Контент футера
|
package/esm/index-f12ee135.d.ts
CHANGED
package/esm/index.js
CHANGED
|
@@ -15,4 +15,4 @@ import '@alfalab/core-components-input/esm';
|
|
|
15
15
|
import '@alfalab/core-components-select/esm/mobile';
|
|
16
16
|
import './autocomplete-mobile-field/Component.js';
|
|
17
17
|
import '@alfalab/core-components-form-control/esm/mobile';
|
|
18
|
-
import './mobile.module-
|
|
18
|
+
import './mobile.module-ebc4dd54.js';
|
package/esm/mobile.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: rksda */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
4
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
--gap-m: 16px;
|
|
17
17
|
} :root {
|
|
18
18
|
} :root {
|
|
19
|
-
} .input-
|
|
19
|
+
} .input-autocomplete__bottomAddonInput_16yca {
|
|
20
20
|
padding: 0 var(--gap-xs) var(--gap-xs);
|
|
21
21
|
box-sizing: border-box;
|
|
22
|
-
} .input-
|
|
22
|
+
} .input-autocomplete__footer_16yca {
|
|
23
23
|
display: flex
|
|
24
|
-
} .input-
|
|
24
|
+
} .input-autocomplete__footer_16yca > button + button {
|
|
25
25
|
margin-left: var(--gap-m);
|
|
26
26
|
}
|
package/esm/mobile.js
CHANGED
|
@@ -11,4 +11,4 @@ import '@alfalab/core-components-select/esm/mobile';
|
|
|
11
11
|
import './autocomplete-mobile-field/Component.js';
|
|
12
12
|
import '@alfalab/core-components-form-control/esm/mobile';
|
|
13
13
|
import '@alfalab/hooks';
|
|
14
|
-
import './mobile.module-
|
|
14
|
+
import './mobile.module-ebc4dd54.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var styles = {"bottomAddonInput":"input-
|
|
1
|
+
var styles = {"bottomAddonInput":"input-autocomplete__bottomAddonInput_16yca","footer":"input-autocomplete__footer_16yca"};
|
|
2
2
|
require('./mobile.css')
|
|
3
3
|
|
|
4
4
|
export { styles as s };
|
package/esm/shared-4cd3936b.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { ReactNode } from "react";
|
|
4
3
|
import { BaseSelectProps, OptionProps, OptionShape } from "./typings-5e1b8383";
|
|
5
4
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
6
5
|
type useSelectWithLoadingProps = {
|
|
@@ -57,36 +56,9 @@ declare function useLazyLoading({ limit, initialOffset, optionsFetcher, skeleton
|
|
|
57
56
|
};
|
|
58
57
|
reset: () => void;
|
|
59
58
|
};
|
|
60
|
-
type SkeletonProps = {
|
|
61
|
-
/**
|
|
62
|
-
* Флаг, явно задающий состояние, при котором контент закрывается прелоадером
|
|
63
|
-
*/
|
|
64
|
-
visible?: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Флаг явного включения анимации скелета
|
|
67
|
-
*/
|
|
68
|
-
animate?: boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Дополнительный класс
|
|
71
|
-
*/
|
|
72
|
-
className?: string;
|
|
73
|
-
/**
|
|
74
|
-
* Дополнительные инлайн стили
|
|
75
|
-
*/
|
|
76
|
-
style?: React.CSSProperties;
|
|
77
|
-
/**
|
|
78
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
79
|
-
*/
|
|
80
|
-
dataTestId?: string;
|
|
81
|
-
/**
|
|
82
|
-
* Дочерние элементы.
|
|
83
|
-
*/
|
|
84
|
-
children?: ReactNode;
|
|
85
|
-
};
|
|
86
|
-
declare const Skeleton: React.FC<SkeletonProps>;
|
|
87
59
|
export * from "./index-ebda875c";
|
|
88
60
|
export * from "./Component-5e1b8383";
|
|
89
|
-
export { useSelectWithLoading, useLazyLoading
|
|
61
|
+
export { useSelectWithLoading, useLazyLoading };
|
|
90
62
|
export * from "./hook-9ea9e32c";
|
|
91
63
|
export * from "./typings-5e1b8383";
|
|
92
64
|
export * from "./utils-5e1b8383";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
|
|
2
|
+
type WidthUnit = number | string;
|
|
3
|
+
type TextSkeletonProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Кол-во строк текста
|
|
6
|
+
*/
|
|
7
|
+
rows?: number;
|
|
8
|
+
/**
|
|
9
|
+
* Ширина строки
|
|
10
|
+
*/
|
|
11
|
+
width?: WidthUnit | WidthUnit[];
|
|
12
|
+
};
|
|
13
|
+
export { TextElementType, TextSkeletonProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react-transition-group" />
|
|
2
|
-
import { HTMLAttributes, ReactNode, RefObject } from 'react';
|
|
2
|
+
import { HTMLAttributes, ReactElement, ReactNode, RefObject } from 'react';
|
|
3
3
|
import { TransitionProps } from 'react-transition-group/Transition';
|
|
4
4
|
import { BaseModalProps } from "./index-bdb4c6b9";
|
|
5
5
|
import { NavigationBarProps } from "./index-c76d6398";
|
|
@@ -88,6 +88,14 @@ type BottomSheetProps = {
|
|
|
88
88
|
* Дополнительный класс для обертки модального окна
|
|
89
89
|
*/
|
|
90
90
|
modalWrapperClassName?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Дополнительный класс для маркера
|
|
93
|
+
*/
|
|
94
|
+
swipeableMarkerClassName?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Кастомный маркер
|
|
97
|
+
*/
|
|
98
|
+
swipeableMarker?: ReactElement;
|
|
91
99
|
/**
|
|
92
100
|
* TransitionProps, прокидываются в компонент CSSTransitionProps.
|
|
93
101
|
*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { TextSkeletonProps } from "./types-1b036d4b";
|
|
4
|
+
type SkeletonProps = {
|
|
5
|
+
wrapperClassName?: string;
|
|
6
|
+
dataTestId?: string;
|
|
7
|
+
};
|
|
8
|
+
declare function useSkeleton(showSkeleton?: boolean, skeletonProps?: TextSkeletonProps): {
|
|
9
|
+
renderSkeleton: (props: SkeletonProps) => React.JSX.Element | null;
|
|
10
|
+
textRef: React.RefObject<HTMLElement>;
|
|
11
|
+
};
|
|
12
|
+
export { useSkeleton };
|
package/index-f12ee135.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -19,7 +19,7 @@ require('@alfalab/core-components-input');
|
|
|
19
19
|
require('@alfalab/core-components-select/mobile');
|
|
20
20
|
require('./autocomplete-mobile-field/Component.js');
|
|
21
21
|
require('@alfalab/core-components-form-control/mobile');
|
|
22
|
-
require('./mobile.module-
|
|
22
|
+
require('./mobile.module-a21f1abf.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
package/mobile.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: rksda */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
4
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
--gap-m: 16px;
|
|
17
17
|
} :root {
|
|
18
18
|
} :root {
|
|
19
|
-
} .input-
|
|
19
|
+
} .input-autocomplete__bottomAddonInput_16yca {
|
|
20
20
|
padding: 0 var(--gap-xs) var(--gap-xs);
|
|
21
21
|
box-sizing: border-box;
|
|
22
|
-
} .input-
|
|
22
|
+
} .input-autocomplete__footer_16yca {
|
|
23
23
|
display: flex
|
|
24
|
-
} .input-
|
|
24
|
+
} .input-autocomplete__footer_16yca > button + button {
|
|
25
25
|
margin-left: var(--gap-m);
|
|
26
26
|
}
|
package/mobile.js
CHANGED
|
@@ -15,7 +15,7 @@ require('@alfalab/core-components-select/mobile');
|
|
|
15
15
|
require('./autocomplete-mobile-field/Component.js');
|
|
16
16
|
require('@alfalab/core-components-form-control/mobile');
|
|
17
17
|
require('@alfalab/hooks');
|
|
18
|
-
require('./mobile.module-
|
|
18
|
+
require('./mobile.module-a21f1abf.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var styles = {"bottomAddonInput":"input-
|
|
3
|
+
var styles = {"bottomAddonInput":"input-autocomplete__bottomAddonInput_16yca","footer":"input-autocomplete__footer_16yca"};
|
|
4
4
|
require('./mobile.css')
|
|
5
5
|
|
|
6
6
|
exports.styles = styles;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { FC, ForwardRefExoticComponent, RefAttributes, HTMLAttributes } from "react";
|
|
4
|
+
import { TextElementType, TextSkeletonProps } from "./types-1b036d4b";
|
|
4
5
|
declare const colors: readonly [
|
|
5
6
|
"tertiary",
|
|
6
7
|
"disabled",
|
|
@@ -23,7 +24,6 @@ declare const colors: readonly [
|
|
|
23
24
|
"static-accent"
|
|
24
25
|
];
|
|
25
26
|
type Color = (typeof colors)[number];
|
|
26
|
-
type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
|
|
27
27
|
type NativeProps = HTMLAttributes<HTMLSpanElement>;
|
|
28
28
|
type TextBaseProps = {
|
|
29
29
|
/**
|
|
@@ -66,6 +66,14 @@ type TextBaseProps = {
|
|
|
66
66
|
* Количество строк (не поддерживает IE)
|
|
67
67
|
*/
|
|
68
68
|
rowLimit?: 1 | 2 | 3;
|
|
69
|
+
/**
|
|
70
|
+
* Показать скелетон
|
|
71
|
+
*/
|
|
72
|
+
showSkeleton?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Пропы для скелетона
|
|
75
|
+
*/
|
|
76
|
+
skeletonProps?: TextSkeletonProps;
|
|
69
77
|
};
|
|
70
78
|
type TextPTagProps = Omit<TextBaseProps, "tag" | "defaultMargins"> & {
|
|
71
79
|
tag?: "p";
|
|
@@ -114,6 +122,14 @@ type TitleProps = Omit<NativeProps$0, "color"> & {
|
|
|
114
122
|
* Количество строк (не поддерживает IE)
|
|
115
123
|
*/
|
|
116
124
|
rowLimit?: 1 | 2 | 3;
|
|
125
|
+
/**
|
|
126
|
+
* Показать скелетон
|
|
127
|
+
*/
|
|
128
|
+
showSkeleton?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Пропы для скелетона
|
|
131
|
+
*/
|
|
132
|
+
skeletonProps?: TextSkeletonProps;
|
|
117
133
|
};
|
|
118
134
|
type TitleMobileProps = Omit<TitleProps, "defaultMargins">;
|
|
119
135
|
declare const Typography: {
|
|
@@ -165,3 +181,4 @@ interface BackArrowAddonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
|
165
181
|
declare const BackArrowAddon: React.FC<BackArrowAddonProps>;
|
|
166
182
|
export { Typography, typographyPresets, TitleResponsive, BackArrowAddonProps, BackArrowAddon };
|
|
167
183
|
export type { TitleProps, TextProps, Color };
|
|
184
|
+
export * from "./useSkeleton-ebda875c";
|
|
@@ -6,7 +6,7 @@ import { ButtonMobile } from '@alfalab/core-components-button/modern/mobile';
|
|
|
6
6
|
import { Input } from '@alfalab/core-components-input/modern';
|
|
7
7
|
import { SelectMobile } from '@alfalab/core-components-select/modern/mobile';
|
|
8
8
|
import { AutocompleteMobileField } from './autocomplete-mobile-field/Component.js';
|
|
9
|
-
import { s as styles } from './mobile.module-
|
|
9
|
+
import { s as styles } from './mobile.module-2d84bf35.js';
|
|
10
10
|
import '@alfalab/core-components-form-control/modern/mobile';
|
|
11
11
|
import '@alfalab/hooks';
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@ import { ButtonMobile } from '@alfalab/core-components-button/modern/mobile';
|
|
|
6
6
|
import { Input } from '@alfalab/core-components-input/modern';
|
|
7
7
|
import { SelectModalMobile } from '@alfalab/core-components-select/modern/mobile';
|
|
8
8
|
import { AutocompleteMobileField } from './autocomplete-mobile-field/Component.js';
|
|
9
|
-
import { s as styles } from './mobile.module-
|
|
9
|
+
import { s as styles } from './mobile.module-2d84bf35.js';
|
|
10
10
|
import '@alfalab/core-components-form-control/modern/mobile';
|
|
11
11
|
import '@alfalab/hooks';
|
|
12
12
|
|
|
@@ -13,7 +13,7 @@ import '@alfalab/core-components-input/modern';
|
|
|
13
13
|
import '@alfalab/core-components-select/modern/mobile';
|
|
14
14
|
import './autocomplete-mobile-field/Component.js';
|
|
15
15
|
import '@alfalab/core-components-form-control/modern/mobile';
|
|
16
|
-
import './mobile.module-
|
|
16
|
+
import './mobile.module-2d84bf35.js';
|
|
17
17
|
|
|
18
18
|
const InputAutocompleteResponsive = forwardRef(({ breakpoint = 1024, ...restProps }, ref) => {
|
|
19
19
|
const [view] = useMedia([
|
|
@@ -3,7 +3,7 @@ import mergeRefs from 'react-merge-refs';
|
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { InputDesktop } from '@alfalab/core-components-input/modern/desktop';
|
|
5
5
|
|
|
6
|
-
const styles = {"arrow":"input-
|
|
6
|
+
const styles = {"arrow":"input-autocomplete__arrow_14ho3","error":"input-autocomplete__error_14ho3"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
const AutocompleteField = ({ label, labelView = 'inner', placeholder, size, Arrow, Input = InputDesktop, value, error, success, hint, disabled, readOnly, onInput, inputProps = {}, innerProps, }) => {
|
|
@@ -3,7 +3,7 @@ import cn from 'classnames';
|
|
|
3
3
|
import { FormControlMobile } from '@alfalab/core-components-form-control/modern/mobile';
|
|
4
4
|
import { useFocus } from '@alfalab/hooks';
|
|
5
5
|
|
|
6
|
-
const styles = {"component":"input-
|
|
6
|
+
const styles = {"component":"input-autocomplete__component_qxxhu","field":"input-autocomplete__field_qxxhu","disabled":"input-autocomplete__disabled_qxxhu","placeholder":"input-autocomplete__placeholder_qxxhu","contentWrapper":"input-autocomplete__contentWrapper_qxxhu","value":"input-autocomplete__value_qxxhu","focusVisible":"input-autocomplete__focusVisible_qxxhu"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
const AutocompleteMobileField = ({ size = 'm', open, disabled, value, innerProps, dataTestId, fieldClassName, labelView = 'inner', placeholder, Arrow, valueRenderer, toggleMenu, setSelectedItems, selectedMultiple, ...restProps }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: zirng */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-link: #0072ef;
|
|
@@ -18,16 +18,16 @@
|
|
|
18
18
|
} :root {
|
|
19
19
|
--focus-color: var(--color-light-border-link);
|
|
20
20
|
--disabled-cursor: not-allowed;
|
|
21
|
-
} .input-
|
|
21
|
+
} .input-autocomplete__component_qxxhu {
|
|
22
22
|
width: 100%;
|
|
23
23
|
outline: none;
|
|
24
|
-
} .input-
|
|
24
|
+
} .input-autocomplete__field_qxxhu:not(.input-autocomplete__disabled_qxxhu) {
|
|
25
25
|
cursor: pointer;
|
|
26
|
-
} .input-
|
|
26
|
+
} .input-autocomplete__disabled_qxxhu {
|
|
27
27
|
cursor: var(--disabled-cursor);
|
|
28
|
-
} .input-
|
|
28
|
+
} .input-autocomplete__placeholder_qxxhu {
|
|
29
29
|
color: var(--color-light-text-secondary);
|
|
30
|
-
} .input-
|
|
30
|
+
} .input-autocomplete__contentWrapper_qxxhu {
|
|
31
31
|
font-size: 16px;
|
|
32
32
|
line-height: 20px;
|
|
33
33
|
font-weight: 400;
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
text-overflow: ellipsis;
|
|
37
37
|
overflow: hidden;
|
|
38
38
|
width: 100%;
|
|
39
|
-
} .input-
|
|
39
|
+
} .input-autocomplete__value_qxxhu {
|
|
40
40
|
overflow: hidden;
|
|
41
41
|
text-overflow: ellipsis;
|
|
42
42
|
text-align: left;
|
|
43
|
-
} .input-
|
|
43
|
+
} .input-autocomplete__focusVisible_qxxhu {
|
|
44
44
|
outline: 2px solid var(--focus-color);
|
|
45
45
|
outline-offset: 2px;
|
|
46
46
|
}
|
|
@@ -4,7 +4,7 @@ import { FC, ReactNode, RefObject } from "react";
|
|
|
4
4
|
import { NavigationBarProps } from "./index-c76d6398";
|
|
5
5
|
import { SwipeableHandlers } from "react-swipeable";
|
|
6
6
|
import { BackdropProps } from "./index-ebda875c";
|
|
7
|
-
import { BottomSheetProps } from "./types-
|
|
7
|
+
import { BottomSheetProps } from "./types-92653002";
|
|
8
8
|
type FooterProps = {
|
|
9
9
|
/**
|
|
10
10
|
* Контент футера
|
package/modern/index.js
CHANGED
|
@@ -14,4 +14,4 @@ import '@alfalab/core-components-input/modern';
|
|
|
14
14
|
import '@alfalab/core-components-select/modern/mobile';
|
|
15
15
|
import './autocomplete-mobile-field/Component.js';
|
|
16
16
|
import '@alfalab/core-components-form-control/modern/mobile';
|
|
17
|
-
import './mobile.module-
|
|
17
|
+
import './mobile.module-2d84bf35.js';
|
package/modern/mobile.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: rksda */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
4
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
--gap-m: 16px;
|
|
17
17
|
} :root {
|
|
18
18
|
} :root {
|
|
19
|
-
} .input-
|
|
19
|
+
} .input-autocomplete__bottomAddonInput_16yca {
|
|
20
20
|
padding: 0 var(--gap-xs) var(--gap-xs);
|
|
21
21
|
box-sizing: border-box;
|
|
22
|
-
} .input-
|
|
22
|
+
} .input-autocomplete__footer_16yca {
|
|
23
23
|
display: flex
|
|
24
|
-
} .input-
|
|
24
|
+
} .input-autocomplete__footer_16yca > button + button {
|
|
25
25
|
margin-left: var(--gap-m);
|
|
26
26
|
}
|
package/modern/mobile.js
CHANGED
|
@@ -10,4 +10,4 @@ import '@alfalab/core-components-select/modern/mobile';
|
|
|
10
10
|
import './autocomplete-mobile-field/Component.js';
|
|
11
11
|
import '@alfalab/core-components-form-control/modern/mobile';
|
|
12
12
|
import '@alfalab/hooks';
|
|
13
|
-
import './mobile.module-
|
|
13
|
+
import './mobile.module-2d84bf35.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const styles = {"bottomAddonInput":"input-
|
|
1
|
+
const styles = {"bottomAddonInput":"input-autocomplete__bottomAddonInput_16yca","footer":"input-autocomplete__footer_16yca"};
|
|
2
2
|
require('./mobile.css')
|
|
3
3
|
|
|
4
4
|
export { styles as s };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { ReactNode } from "react";
|
|
4
3
|
import { BaseSelectProps, OptionProps, OptionShape } from "./typings-5e1b8383";
|
|
5
4
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
6
5
|
type useSelectWithLoadingProps = {
|
|
@@ -57,36 +56,9 @@ declare function useLazyLoading({ limit, initialOffset, optionsFetcher, skeleton
|
|
|
57
56
|
};
|
|
58
57
|
reset: () => void;
|
|
59
58
|
};
|
|
60
|
-
type SkeletonProps = {
|
|
61
|
-
/**
|
|
62
|
-
* Флаг, явно задающий состояние, при котором контент закрывается прелоадером
|
|
63
|
-
*/
|
|
64
|
-
visible?: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Флаг явного включения анимации скелета
|
|
67
|
-
*/
|
|
68
|
-
animate?: boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Дополнительный класс
|
|
71
|
-
*/
|
|
72
|
-
className?: string;
|
|
73
|
-
/**
|
|
74
|
-
* Дополнительные инлайн стили
|
|
75
|
-
*/
|
|
76
|
-
style?: React.CSSProperties;
|
|
77
|
-
/**
|
|
78
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
79
|
-
*/
|
|
80
|
-
dataTestId?: string;
|
|
81
|
-
/**
|
|
82
|
-
* Дочерние элементы.
|
|
83
|
-
*/
|
|
84
|
-
children?: ReactNode;
|
|
85
|
-
};
|
|
86
|
-
declare const Skeleton: React.FC<SkeletonProps>;
|
|
87
59
|
export * from "./index-ebda875c";
|
|
88
60
|
export * from "./Component-5e1b8383";
|
|
89
|
-
export { useSelectWithLoading, useLazyLoading
|
|
61
|
+
export { useSelectWithLoading, useLazyLoading };
|
|
90
62
|
export * from "./hook-9ea9e32c";
|
|
91
63
|
export * from "./typings-5e1b8383";
|
|
92
64
|
export * from "./utils-5e1b8383";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
|
|
2
|
+
type WidthUnit = number | string;
|
|
3
|
+
type TextSkeletonProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Кол-во строк текста
|
|
6
|
+
*/
|
|
7
|
+
rows?: number;
|
|
8
|
+
/**
|
|
9
|
+
* Ширина строки
|
|
10
|
+
*/
|
|
11
|
+
width?: WidthUnit | WidthUnit[];
|
|
12
|
+
};
|
|
13
|
+
export { TextElementType, TextSkeletonProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react-transition-group" />
|
|
2
|
-
import { HTMLAttributes, ReactNode, RefObject } from 'react';
|
|
2
|
+
import { HTMLAttributes, ReactElement, ReactNode, RefObject } from 'react';
|
|
3
3
|
import { TransitionProps } from 'react-transition-group/Transition';
|
|
4
4
|
import { BaseModalProps } from "./index-bdb4c6b9";
|
|
5
5
|
import { NavigationBarProps } from "./index-c76d6398";
|
|
@@ -88,6 +88,14 @@ type BottomSheetProps = {
|
|
|
88
88
|
* Дополнительный класс для обертки модального окна
|
|
89
89
|
*/
|
|
90
90
|
modalWrapperClassName?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Дополнительный класс для маркера
|
|
93
|
+
*/
|
|
94
|
+
swipeableMarkerClassName?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Кастомный маркер
|
|
97
|
+
*/
|
|
98
|
+
swipeableMarker?: ReactElement;
|
|
91
99
|
/**
|
|
92
100
|
* TransitionProps, прокидываются в компонент CSSTransitionProps.
|
|
93
101
|
*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { TextSkeletonProps } from "./types-1b036d4b";
|
|
4
|
+
type SkeletonProps = {
|
|
5
|
+
wrapperClassName?: string;
|
|
6
|
+
dataTestId?: string;
|
|
7
|
+
};
|
|
8
|
+
declare function useSkeleton(showSkeleton?: boolean, skeletonProps?: TextSkeletonProps): {
|
|
9
|
+
renderSkeleton: (props: SkeletonProps) => React.JSX.Element | null;
|
|
10
|
+
textRef: React.RefObject<HTMLElement>;
|
|
11
|
+
};
|
|
12
|
+
export { useSkeleton };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-input-autocomplete",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@alfalab/core-components-button": "^9.0.
|
|
37
|
+
"@alfalab/core-components-button": "^9.0.2",
|
|
38
38
|
"@alfalab/core-components-form-control": "^10.0.0",
|
|
39
|
-
"@alfalab/core-components-input": "^12.0.
|
|
40
|
-
"@alfalab/core-components-select": "^15.0.
|
|
39
|
+
"@alfalab/core-components-input": "^12.0.2",
|
|
40
|
+
"@alfalab/core-components-select": "^15.0.3",
|
|
41
41
|
"@alfalab/hooks": "^1.13.0",
|
|
42
42
|
"classnames": "^2.3.1",
|
|
43
43
|
"lodash.throttle": "^4.1.1",
|
package/shared-4cd3936b.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { ReactNode } from "react";
|
|
4
3
|
import { BaseSelectProps, OptionProps, OptionShape } from "./typings-5e1b8383";
|
|
5
4
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
6
5
|
type useSelectWithLoadingProps = {
|
|
@@ -57,36 +56,9 @@ declare function useLazyLoading({ limit, initialOffset, optionsFetcher, skeleton
|
|
|
57
56
|
};
|
|
58
57
|
reset: () => void;
|
|
59
58
|
};
|
|
60
|
-
type SkeletonProps = {
|
|
61
|
-
/**
|
|
62
|
-
* Флаг, явно задающий состояние, при котором контент закрывается прелоадером
|
|
63
|
-
*/
|
|
64
|
-
visible?: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Флаг явного включения анимации скелета
|
|
67
|
-
*/
|
|
68
|
-
animate?: boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Дополнительный класс
|
|
71
|
-
*/
|
|
72
|
-
className?: string;
|
|
73
|
-
/**
|
|
74
|
-
* Дополнительные инлайн стили
|
|
75
|
-
*/
|
|
76
|
-
style?: React.CSSProperties;
|
|
77
|
-
/**
|
|
78
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
79
|
-
*/
|
|
80
|
-
dataTestId?: string;
|
|
81
|
-
/**
|
|
82
|
-
* Дочерние элементы.
|
|
83
|
-
*/
|
|
84
|
-
children?: ReactNode;
|
|
85
|
-
};
|
|
86
|
-
declare const Skeleton: React.FC<SkeletonProps>;
|
|
87
59
|
export * from "./index-ebda875c";
|
|
88
60
|
export * from "./Component-5e1b8383";
|
|
89
|
-
export { useSelectWithLoading, useLazyLoading
|
|
61
|
+
export { useSelectWithLoading, useLazyLoading };
|
|
90
62
|
export * from "./hook-9ea9e32c";
|
|
91
63
|
export * from "./typings-5e1b8383";
|
|
92
64
|
export * from "./utils-5e1b8383";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
|
|
2
|
+
type WidthUnit = number | string;
|
|
3
|
+
type TextSkeletonProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Кол-во строк текста
|
|
6
|
+
*/
|
|
7
|
+
rows?: number;
|
|
8
|
+
/**
|
|
9
|
+
* Ширина строки
|
|
10
|
+
*/
|
|
11
|
+
width?: WidthUnit | WidthUnit[];
|
|
12
|
+
};
|
|
13
|
+
export { TextElementType, TextSkeletonProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react-transition-group" />
|
|
2
|
-
import { HTMLAttributes, ReactNode, RefObject } from 'react';
|
|
2
|
+
import { HTMLAttributes, ReactElement, ReactNode, RefObject } from 'react';
|
|
3
3
|
import { TransitionProps } from 'react-transition-group/Transition';
|
|
4
4
|
import { BaseModalProps } from "./index-bdb4c6b9";
|
|
5
5
|
import { NavigationBarProps } from "./index-c76d6398";
|
|
@@ -88,6 +88,14 @@ type BottomSheetProps = {
|
|
|
88
88
|
* Дополнительный класс для обертки модального окна
|
|
89
89
|
*/
|
|
90
90
|
modalWrapperClassName?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Дополнительный класс для маркера
|
|
93
|
+
*/
|
|
94
|
+
swipeableMarkerClassName?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Кастомный маркер
|
|
97
|
+
*/
|
|
98
|
+
swipeableMarker?: ReactElement;
|
|
91
99
|
/**
|
|
92
100
|
* TransitionProps, прокидываются в компонент CSSTransitionProps.
|
|
93
101
|
*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { TextSkeletonProps } from "./types-1b036d4b";
|
|
4
|
+
type SkeletonProps = {
|
|
5
|
+
wrapperClassName?: string;
|
|
6
|
+
dataTestId?: string;
|
|
7
|
+
};
|
|
8
|
+
declare function useSkeleton(showSkeleton?: boolean, skeletonProps?: TextSkeletonProps): {
|
|
9
|
+
renderSkeleton: (props: SkeletonProps) => React.JSX.Element | null;
|
|
10
|
+
textRef: React.RefObject<HTMLElement>;
|
|
11
|
+
};
|
|
12
|
+
export { useSkeleton };
|