@salutejs/plasma-new-hope 0.92.0-canary.1252.9663899697.0 → 0.92.0-canary.1261.9663085538.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Segment/SegmentProvider/SegmentProvider.js +1 -4
- package/cjs/components/Segment/SegmentProvider/SegmentProvider.js.map +1 -1
- package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js +2 -9
- package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js.map +1 -1
- package/cjs/components/TextArea/TextArea.js +6 -4
- package/cjs/components/TextArea/TextArea.js.map +1 -1
- package/cjs/components/TextArea/hooks/useAutoResize.js +10 -4
- package/cjs/components/TextArea/hooks/useAutoResize.js.map +1 -1
- package/es/components/Segment/SegmentProvider/SegmentProvider.js +1 -4
- package/es/components/Segment/SegmentProvider/SegmentProvider.js.map +1 -1
- package/es/components/Segment/ui/SegmentGroup/SegmentGroup.js +2 -9
- package/es/components/Segment/ui/SegmentGroup/SegmentGroup.js.map +1 -1
- package/es/components/TextArea/TextArea.js +7 -5
- package/es/components/TextArea/TextArea.js.map +1 -1
- package/es/components/TextArea/hooks/useAutoResize.js +10 -4
- package/es/components/TextArea/hooks/useAutoResize.js.map +1 -1
- package/package.json +2 -2
- package/styled-components/cjs/components/Segment/Segment.template-doc.mdx +1 -6
- package/styled-components/cjs/components/Segment/SegmentProvider/SegmentProvider.js +1 -4
- package/styled-components/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js +2 -9
- package/styled-components/cjs/components/TextArea/TextArea.js +11 -4
- package/styled-components/cjs/components/TextArea/TextArea.template-doc.mdx +45 -6
- package/styled-components/cjs/components/TextArea/hooks/useAutoResize.js +10 -4
- package/styled-components/es/components/Segment/Segment.template-doc.mdx +1 -6
- package/styled-components/es/components/Segment/SegmentProvider/SegmentProvider.js +1 -4
- package/styled-components/es/components/Segment/ui/SegmentGroup/SegmentGroup.js +2 -9
- package/styled-components/es/components/TextArea/TextArea.js +12 -4
- package/styled-components/es/components/TextArea/TextArea.template-doc.mdx +45 -6
- package/styled-components/es/components/TextArea/hooks/useAutoResize.js +10 -4
- package/types/components/Segment/SegmentProvider/SegmentProvider.d.ts.map +1 -1
- package/types/components/Segment/SegmentProvider/SegmentProvider.types.d.ts +3 -4
- package/types/components/Segment/SegmentProvider/SegmentProvider.types.d.ts.map +1 -1
- package/types/components/Segment/ui/SegmentGroup/SegmentGroup.d.ts +0 -2
- package/types/components/Segment/ui/SegmentGroup/SegmentGroup.d.ts.map +1 -1
- package/types/components/Segment/ui/SegmentGroup/SegmentGroup.types.d.ts +0 -5
- package/types/components/Segment/ui/SegmentGroup/SegmentGroup.types.d.ts.map +1 -1
- package/types/components/TextArea/TextArea.d.ts +2 -2
- package/types/components/TextArea/TextArea.d.ts.map +1 -1
- package/types/components/TextArea/TextArea.types.d.ts +49 -23
- package/types/components/TextArea/TextArea.types.d.ts.map +1 -1
- package/types/components/TextArea/hooks/useAutoResize.d.ts +1 -1
- package/types/components/TextArea/hooks/useAutoResize.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Segment/Segment.d.ts +0 -1
- package/types/examples/plasma_b2c/components/Segment/Segment.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts +31 -1
- package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Segment/Segment.d.ts +0 -1
- package/types/examples/plasma_web/components/Segment/Segment.d.ts.map +1 -1
- package/types/examples/plasma_web/components/TextArea/TextArea.d.ts +31 -1
- package/types/examples/plasma_web/components/TextArea/TextArea.d.ts.map +1 -1
- package/types/examples/sds_engineer/components/Segment/Segment.d.ts +0 -1
- package/types/examples/sds_engineer/components/Segment/Segment.d.ts.map +1 -1
- package/types/examples/sds_engineer/components/TextArea/TextArea.d.ts +31 -1
- package/types/examples/sds_engineer/components/TextArea/TextArea.d.ts.map +1 -1
@@ -1,12 +1,11 @@
|
|
1
|
-
import type {
|
1
|
+
import type { SetStateAction } from 'react';
|
2
2
|
export declare type SegmentSelectionMode = 'single' | 'multiple';
|
3
3
|
export declare type SegmentContextType = {
|
4
4
|
disabledGroup: boolean;
|
5
|
-
setDisabledGroup:
|
5
|
+
setDisabledGroup: (value: SetStateAction<boolean>) => void;
|
6
6
|
selectedSegmentItems: string[];
|
7
|
-
setSelectedSegmentItems: Dispatch<SetStateAction<string[]>>;
|
8
7
|
handleSelect: (label: string) => void;
|
9
8
|
selectionMode: SegmentSelectionMode;
|
10
|
-
setSelectionMode:
|
9
|
+
setSelectionMode: (mode: SegmentSelectionMode) => void;
|
11
10
|
};
|
12
11
|
//# sourceMappingURL=SegmentProvider.types.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SegmentProvider.types.d.ts","sourceRoot":"","sources":["../../../../src/components/Segment/SegmentProvider/SegmentProvider.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
1
|
+
{"version":3,"file":"SegmentProvider.types.d.ts","sourceRoot":"","sources":["../../../../src/components/Segment/SegmentProvider/SegmentProvider.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,oBAAY,oBAAoB,GAAG,QAAQ,GAAG,UAAU,CAAC;AAEzD,oBAAY,kBAAkB,GAAG;IAC7B,aAAa,EAAE,OAAO,CAAC;IACvB,gBAAgB,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IAC3D,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,aAAa,EAAE,oBAAoB,CAAC;IACpC,gBAAgB,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;CAC1D,CAAC"}
|
@@ -3,7 +3,6 @@ import type { RootProps } from '../../../../engines/types';
|
|
3
3
|
import type { SegmentGroupProps } from './SegmentGroup.types';
|
4
4
|
export declare const segmentGroupRoot: (Root: RootProps<HTMLDivElement, SegmentGroupProps>) => React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
5
5
|
selectionMode?: "multiple" | "single" | undefined;
|
6
|
-
defaultSelected?: string[] | undefined;
|
7
6
|
disabled?: boolean | undefined;
|
8
7
|
stretch?: boolean | undefined;
|
9
8
|
pilled?: boolean | undefined;
|
@@ -16,7 +15,6 @@ export declare const segmentGroupConfig: {
|
|
16
15
|
tag: string;
|
17
16
|
layout: (Root: RootProps<HTMLDivElement, SegmentGroupProps>) => React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
18
17
|
selectionMode?: "multiple" | "single" | undefined;
|
19
|
-
defaultSelected?: string[] | undefined;
|
20
18
|
disabled?: boolean | undefined;
|
21
19
|
stretch?: boolean | undefined;
|
22
20
|
pilled?: boolean | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SegmentGroup.d.ts","sourceRoot":"","sources":["../../../../../src/components/Segment/ui/SegmentGroup/SegmentGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0E,MAAM,OAAO,CAAC;AAI/F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAY3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAG9D,eAAO,MAAM,gBAAgB,SAAU,UAAU,cAAc,EAAE,iBAAiB,CAAC
|
1
|
+
{"version":3,"file":"SegmentGroup.d.ts","sourceRoot":"","sources":["../../../../../src/components/Segment/ui/SegmentGroup/SegmentGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0E,MAAM,OAAO,CAAC;AAI/F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAY3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAG9D,eAAO,MAAM,gBAAgB,SAAU,UAAU,cAAc,EAAE,iBAAiB,CAAC;;;;;;;;wCAqJ7E,CAAC;AAEP,eAAO,MAAM,kBAAkB;;;mBAvJQ,UAAU,cAAc,EAAE,iBAAiB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwLlF,CAAC"}
|
@@ -4,11 +4,6 @@ declare type CustomSegmentGroupProps = {
|
|
4
4
|
* Сегмент множественного или одиночного выбора
|
5
5
|
*/
|
6
6
|
selectionMode?: 'multiple' | 'single';
|
7
|
-
/**
|
8
|
-
* Выбранные по умолчанию сегменты.
|
9
|
-
* Передается массив value сегментов, выбранных по умолчанию
|
10
|
-
*/
|
11
|
-
defaultSelected?: Array<string>;
|
12
7
|
/**
|
13
8
|
* Группа сегментов неактивна
|
14
9
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SegmentGroup.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Segment/ui/SegmentGroup/SegmentGroup.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,aAAK,uBAAuB,GAAG;IAC3B;;OAEG;IACH,aAAa,CAAC,EAAE,UAAU,GAAG,QAAQ,CAAC;IACtC
|
1
|
+
{"version":3,"file":"SegmentGroup.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Segment/ui/SegmentGroup/SegmentGroup.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,aAAK,uBAAuB,GAAG;IAC3B;;OAEG;IACH,aAAa,CAAC,EAAE,UAAU,GAAG,QAAQ,CAAC;IACtC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAY,iBAAiB,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG,uBAAuB,CAAC"}
|
@@ -2,11 +2,11 @@ import React from 'react';
|
|
2
2
|
import type { RootProps } from '../../engines/types';
|
3
3
|
import type { TextAreaProps } from './TextArea.types';
|
4
4
|
export declare const getDynamicLabelClasses: (props: TextAreaProps, focused: boolean) => (string | undefined)[];
|
5
|
-
export declare const textAreaRoot: (Root: RootProps<HTMLTextAreaElement, TextAreaProps>) => React.ForwardRefExoticComponent<
|
5
|
+
export declare const textAreaRoot: (Root: RootProps<HTMLTextAreaElement, TextAreaProps>) => React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
6
6
|
export declare const textAreaConfig: {
|
7
7
|
name: string;
|
8
8
|
tag: string;
|
9
|
-
layout: (Root: RootProps<HTMLTextAreaElement, TextAreaProps>) => React.ForwardRefExoticComponent<
|
9
|
+
layout: (Root: RootProps<HTMLTextAreaElement, TextAreaProps>) => React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
10
10
|
base: import("@linaria/core").LinariaClassName;
|
11
11
|
variations: {
|
12
12
|
size: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuD,MAAM,OAAO,CAAC;AAK5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAmBrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AA6BtD,eAAO,MAAM,sBAAsB,UAAW,aAAa,WAAW,OAAO,2BA4B5E,CAAC;AAEF,eAAO,MAAM,YAAY,SAAU,UAAU,mBAAmB,EAAE,aAAa,CAAC,
|
1
|
+
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuD,MAAM,OAAO,CAAC;AAK5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAmBrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AA6BtD,eAAO,MAAM,sBAAsB,UAAW,aAAa,WAAW,OAAO,2BA4B5E,CAAC;AAEF,eAAO,MAAM,YAAY,SAAU,UAAU,mBAAmB,EAAE,aAAa,CAAC,8FAiJ1E,CAAC;AAEP,eAAO,MAAM,cAAc;;;mBAnJQ,UAAU,mBAAmB,EAAE,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;CA2K/E,CAAC"}
|
@@ -1,5 +1,52 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { TextareaHTMLAttributes } from '../../types';
|
3
|
+
declare type Only<T, U, R> = {
|
4
|
+
[P in keyof T]: T[P];
|
5
|
+
} & {
|
6
|
+
[P in keyof U]?: never;
|
7
|
+
} & {
|
8
|
+
[P in keyof R]?: never;
|
9
|
+
};
|
10
|
+
declare type OneOf<T, U, R> = Only<T, U, R> | Only<U, T, R> | Only<R, T, U>;
|
11
|
+
export declare type TextAreaPropsAutoResize = {
|
12
|
+
/**
|
13
|
+
* Автоматическая высота поля ввода.
|
14
|
+
*/
|
15
|
+
autoResize?: boolean;
|
16
|
+
/**
|
17
|
+
* Максимальная высота поля ввода в автоматическом режиме (в абсолютных единицах).
|
18
|
+
* @example maxAuto="5", maxAuto={5}
|
19
|
+
*/
|
20
|
+
maxAuto?: number;
|
21
|
+
/**
|
22
|
+
* Минимальная высота поля ввода в автоматическом режиме (в абсолютных единицах).
|
23
|
+
* @example minAuto="5", minAuto={5}
|
24
|
+
*/
|
25
|
+
minAuto?: number;
|
26
|
+
};
|
27
|
+
export declare type TextAreaPropsHeightWidth = {
|
28
|
+
/**
|
29
|
+
* Высота текстового поля, значения в rem. Отвечает за ВСЮ высоту компонента.
|
30
|
+
* @example height="10", height={10}
|
31
|
+
*/
|
32
|
+
height?: number | string;
|
33
|
+
/**
|
34
|
+
* Ширина текстового поля, значения в rem. Отвечает за ВСЮ ширину компонента.
|
35
|
+
* @example width="10", width={10}
|
36
|
+
*/
|
37
|
+
width?: number | string;
|
38
|
+
};
|
39
|
+
export declare type TextAreaPropsRowsCols = {
|
40
|
+
/**
|
41
|
+
* Высота текстового поля (в абсолютных единицах) – фиксированное число отображаемых строк без прокрутки.
|
42
|
+
*/
|
43
|
+
rows?: number;
|
44
|
+
/**
|
45
|
+
* Ширина текстового поля (в абсолютных единицах) – фиксированное число столбцов.
|
46
|
+
*/
|
47
|
+
cols?: number;
|
48
|
+
};
|
49
|
+
export declare type TextAreaDimensionsProps = OneOf<TextAreaPropsAutoResize, TextAreaPropsHeightWidth, TextAreaPropsRowsCols>;
|
3
50
|
export interface TextAreaPropsBase {
|
4
51
|
/**
|
5
52
|
* Статус компонента: заполнен успешно / с предупреждением / с ошибкой.
|
@@ -23,16 +70,6 @@ export interface TextAreaPropsBase {
|
|
23
70
|
* @deprecated устаревшее свойство
|
24
71
|
*/
|
25
72
|
resize?: 'none' | 'both' | 'horizontal' | 'vertical';
|
26
|
-
/**
|
27
|
-
* Высота текстового поля, значения в rem
|
28
|
-
* @example height="10", height={10}
|
29
|
-
*/
|
30
|
-
height?: number | string;
|
31
|
-
/**
|
32
|
-
* Ширина текстового поля, значения в rem
|
33
|
-
* @example width="10", width={10}
|
34
|
-
*/
|
35
|
-
width?: number | string;
|
36
73
|
/**
|
37
74
|
* Вспомогательный текст снизу слева для поля ввода.
|
38
75
|
* @deprecated свойство устарело, необходимо использовать `leftHelper`.
|
@@ -46,18 +83,6 @@ export interface TextAreaPropsBase {
|
|
46
83
|
* Вспомогательный текст снизу справа для поля ввода.
|
47
84
|
*/
|
48
85
|
rightHelper?: string;
|
49
|
-
/**
|
50
|
-
* Автоматическая высота поля ввода.
|
51
|
-
*/
|
52
|
-
autoResize?: boolean;
|
53
|
-
/**
|
54
|
-
* Максимальная высота поля ввода в автоматическом режиме(в rem).
|
55
|
-
*/
|
56
|
-
maxAuto?: number;
|
57
|
-
/**
|
58
|
-
* Минимальная высота поля ввода в автоматическом режиме(в rem).
|
59
|
-
*/
|
60
|
-
minAuto?: number;
|
61
86
|
}
|
62
87
|
export interface TextAreaPropsExtends extends TextAreaPropsBase {
|
63
88
|
/**
|
@@ -69,5 +94,6 @@ export interface TextAreaPropsExtends extends TextAreaPropsBase {
|
|
69
94
|
*/
|
70
95
|
view?: string;
|
71
96
|
}
|
72
|
-
export declare type TextAreaProps = TextareaHTMLAttributes<HTMLTextAreaElement> & TextAreaPropsExtends;
|
97
|
+
export declare type TextAreaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'rows' | 'cols'> & TextAreaPropsExtends & TextAreaDimensionsProps;
|
98
|
+
export {};
|
73
99
|
//# sourceMappingURL=TextArea.types.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TextArea.types.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.types.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,
|
1
|
+
{"version":3,"file":"TextArea.types.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.types.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,aAAK,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI;KAChB,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACvB,GACG;KACK,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK;CACzB,GACD;KACK,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK;CACzB,CAAC;AAEN,aAAK,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAEpE,oBAAY,uBAAuB,GAAG;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,oBAAY,wBAAwB,GAAG;IACnC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B,CAAC;AAEF,oBAAY,qBAAqB,GAAG;IAChC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAY,uBAAuB,GAAG,KAAK,CAAC,uBAAuB,EAAE,wBAAwB,EAAE,qBAAqB,CAAC,CAAC;AAEtH,MAAM,WAAW,iBAAiB;IAC9B;;;OAGG;IACH,MAAM,CAAC,EAAE,EAAE,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IAC9C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACnC;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAClC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,YAAY,GAAG,UAAU,CAAC;IACrD;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;IAC3D;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,oBAAY,aAAa,GAAG,IAAI,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,GAC1F,oBAAoB,GACpB,uBAAuB,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { MutableRefObject } from 'react';
|
2
2
|
export declare const ROOT_FONT_SIZE = 16;
|
3
|
-
export declare const useAutoResize: <T extends HTMLTextAreaElement>(active: boolean, ref: MutableRefObject<T | null>, value?: string | number | readonly string[] | undefined,
|
3
|
+
export declare const useAutoResize: <T extends HTMLTextAreaElement>(active: boolean, ref: MutableRefObject<T | null>, value?: string | number | readonly string[] | undefined, minAuto?: number | undefined, maxAuto?: number | undefined) => void;
|
4
4
|
//# sourceMappingURL=useAutoResize.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useAutoResize.d.ts","sourceRoot":"","sources":["../../../../src/components/TextArea/hooks/useAutoResize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAE5D,eAAO,MAAM,cAAc,KAAK,CAAC;AAEjC,eAAO,MAAM,aAAa,0CACd,OAAO,
|
1
|
+
{"version":3,"file":"useAutoResize.d.ts","sourceRoot":"","sources":["../../../../src/components/TextArea/hooks/useAutoResize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAE5D,eAAO,MAAM,cAAc,KAAK,CAAC;AAEjC,eAAO,MAAM,aAAa,0CACd,OAAO,+JAoClB,CAAC"}
|
@@ -24,7 +24,6 @@ export declare const SegmentGroup: import("react").FunctionComponent<import("../
|
|
24
24
|
};
|
25
25
|
}> & import("react").HTMLAttributes<HTMLDivElement> & {
|
26
26
|
selectionMode?: "multiple" | "single" | undefined;
|
27
|
-
defaultSelected?: string[] | undefined;
|
28
27
|
disabled?: boolean | undefined;
|
29
28
|
stretch?: boolean | undefined;
|
30
29
|
pilled?: boolean | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Segment.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Segment/Segment.ts"],"names":[],"mappings":";AASA,eAAO,MAAM,YAAY
|
1
|
+
{"version":3,"file":"Segment.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Segment/Segment.ts"],"names":[],"mappings":";AASA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAAsC,CAAC;AAChE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;oDAAqC,CAAC"}
|
@@ -15,5 +15,35 @@ export declare const TextArea: import("react").FunctionComponent<import("../../.
|
|
15
15
|
disabled: {
|
16
16
|
true: import("@linaria/core").LinariaClassName;
|
17
17
|
};
|
18
|
-
}> & import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends &
|
18
|
+
}> & ((Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "rows" | "cols"> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends & {
|
19
|
+
autoResize?: boolean | undefined;
|
20
|
+
maxAuto?: number | undefined;
|
21
|
+
minAuto?: number | undefined;
|
22
|
+
} & {
|
23
|
+
height?: undefined;
|
24
|
+
width?: undefined;
|
25
|
+
} & {
|
26
|
+
rows?: undefined;
|
27
|
+
cols?: undefined;
|
28
|
+
} & import("react").RefAttributes<HTMLTextAreaElement>) | (Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "rows" | "cols"> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends & {
|
29
|
+
height?: string | number | undefined;
|
30
|
+
width?: string | number | undefined;
|
31
|
+
} & {
|
32
|
+
autoResize?: undefined;
|
33
|
+
maxAuto?: undefined;
|
34
|
+
minAuto?: undefined;
|
35
|
+
} & {
|
36
|
+
rows?: undefined;
|
37
|
+
cols?: undefined;
|
38
|
+
} & import("react").RefAttributes<HTMLTextAreaElement>) | (Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "rows" | "cols"> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends & {
|
39
|
+
rows?: number | undefined;
|
40
|
+
cols?: number | undefined;
|
41
|
+
} & {
|
42
|
+
autoResize?: undefined;
|
43
|
+
maxAuto?: undefined;
|
44
|
+
minAuto?: undefined;
|
45
|
+
} & {
|
46
|
+
height?: undefined;
|
47
|
+
width?: undefined;
|
48
|
+
} & import("react").RefAttributes<HTMLTextAreaElement>))>;
|
19
49
|
//# sourceMappingURL=TextArea.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/TextArea/TextArea.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,QAAQ
|
1
|
+
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/TextArea/TextArea.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDAA0B,CAAC"}
|
@@ -21,7 +21,6 @@ export declare const SegmentGroup: import("react").FunctionComponent<import("../
|
|
21
21
|
};
|
22
22
|
}> & import("react").HTMLAttributes<HTMLDivElement> & {
|
23
23
|
selectionMode?: "multiple" | "single" | undefined;
|
24
|
-
defaultSelected?: string[] | undefined;
|
25
24
|
disabled?: boolean | undefined;
|
26
25
|
stretch?: boolean | undefined;
|
27
26
|
pilled?: boolean | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Segment.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Segment/Segment.ts"],"names":[],"mappings":";AASA,eAAO,MAAM,YAAY
|
1
|
+
{"version":3,"file":"Segment.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Segment/Segment.ts"],"names":[],"mappings":";AASA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAAsC,CAAC;AAChE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;oDAAqC,CAAC"}
|
@@ -15,5 +15,35 @@ export declare const TextArea: import("react").FunctionComponent<import("../../.
|
|
15
15
|
disabled: {
|
16
16
|
true: import("@linaria/core").LinariaClassName;
|
17
17
|
};
|
18
|
-
}> & import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends &
|
18
|
+
}> & ((Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "rows" | "cols"> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends & {
|
19
|
+
autoResize?: boolean | undefined;
|
20
|
+
maxAuto?: number | undefined;
|
21
|
+
minAuto?: number | undefined;
|
22
|
+
} & {
|
23
|
+
height?: undefined;
|
24
|
+
width?: undefined;
|
25
|
+
} & {
|
26
|
+
rows?: undefined;
|
27
|
+
cols?: undefined;
|
28
|
+
} & import("react").RefAttributes<HTMLTextAreaElement>) | (Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "rows" | "cols"> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends & {
|
29
|
+
height?: string | number | undefined;
|
30
|
+
width?: string | number | undefined;
|
31
|
+
} & {
|
32
|
+
autoResize?: undefined;
|
33
|
+
maxAuto?: undefined;
|
34
|
+
minAuto?: undefined;
|
35
|
+
} & {
|
36
|
+
rows?: undefined;
|
37
|
+
cols?: undefined;
|
38
|
+
} & import("react").RefAttributes<HTMLTextAreaElement>) | (Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "rows" | "cols"> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends & {
|
39
|
+
rows?: number | undefined;
|
40
|
+
cols?: number | undefined;
|
41
|
+
} & {
|
42
|
+
autoResize?: undefined;
|
43
|
+
maxAuto?: undefined;
|
44
|
+
minAuto?: undefined;
|
45
|
+
} & {
|
46
|
+
height?: undefined;
|
47
|
+
width?: undefined;
|
48
|
+
} & import("react").RefAttributes<HTMLTextAreaElement>))>;
|
19
49
|
//# sourceMappingURL=TextArea.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/TextArea/TextArea.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,QAAQ
|
1
|
+
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/TextArea/TextArea.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDAA0B,CAAC"}
|
@@ -21,7 +21,6 @@ export declare const SegmentGroup: import("react").FunctionComponent<import("../
|
|
21
21
|
};
|
22
22
|
}> & import("react").HTMLAttributes<HTMLDivElement> & {
|
23
23
|
selectionMode?: "multiple" | "single" | undefined;
|
24
|
-
defaultSelected?: string[] | undefined;
|
25
24
|
disabled?: boolean | undefined;
|
26
25
|
stretch?: boolean | undefined;
|
27
26
|
pilled?: boolean | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Segment.d.ts","sourceRoot":"","sources":["../../../../../src/examples/sds_engineer/components/Segment/Segment.ts"],"names":[],"mappings":";AASA,eAAO,MAAM,YAAY
|
1
|
+
{"version":3,"file":"Segment.d.ts","sourceRoot":"","sources":["../../../../../src/examples/sds_engineer/components/Segment/Segment.ts"],"names":[],"mappings":";AASA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAAsC,CAAC;AAChE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;oDAAqC,CAAC"}
|
@@ -12,5 +12,35 @@ export declare const TextArea: import("react").FunctionComponent<import("../../.
|
|
12
12
|
disabled: {
|
13
13
|
true: import("@linaria/core").LinariaClassName;
|
14
14
|
};
|
15
|
-
}> & import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends &
|
15
|
+
}> & ((Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "rows" | "cols"> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends & {
|
16
|
+
autoResize?: boolean | undefined;
|
17
|
+
maxAuto?: number | undefined;
|
18
|
+
minAuto?: number | undefined;
|
19
|
+
} & {
|
20
|
+
height?: undefined;
|
21
|
+
width?: undefined;
|
22
|
+
} & {
|
23
|
+
rows?: undefined;
|
24
|
+
cols?: undefined;
|
25
|
+
} & import("react").RefAttributes<HTMLTextAreaElement>) | (Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "rows" | "cols"> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends & {
|
26
|
+
height?: string | number | undefined;
|
27
|
+
width?: string | number | undefined;
|
28
|
+
} & {
|
29
|
+
autoResize?: undefined;
|
30
|
+
maxAuto?: undefined;
|
31
|
+
minAuto?: undefined;
|
32
|
+
} & {
|
33
|
+
rows?: undefined;
|
34
|
+
cols?: undefined;
|
35
|
+
} & import("react").RefAttributes<HTMLTextAreaElement>) | (Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "rows" | "cols"> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends & {
|
36
|
+
rows?: number | undefined;
|
37
|
+
cols?: number | undefined;
|
38
|
+
} & {
|
39
|
+
autoResize?: undefined;
|
40
|
+
maxAuto?: undefined;
|
41
|
+
minAuto?: undefined;
|
42
|
+
} & {
|
43
|
+
height?: undefined;
|
44
|
+
width?: undefined;
|
45
|
+
} & import("react").RefAttributes<HTMLTextAreaElement>))>;
|
16
46
|
//# sourceMappingURL=TextArea.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../../src/examples/sds_engineer/components/TextArea/TextArea.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,QAAQ
|
1
|
+
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../../src/examples/sds_engineer/components/TextArea/TextArea.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDAA0B,CAAC"}
|