@salutejs/plasma-new-hope 0.91.0-canary.1263.9626910632.0 → 0.91.0-canary.1263.9643629084.0
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +2 -2
- package/styled-components/cjs/types/TextareaHTMLAttributes.js +5 -0
- package/styled-components/es/types/TextareaHTMLAttributes.js +1 -0
- 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 +1 -1
- package/types/components/TextArea/TextArea.types.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts +1 -1
- package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts.map +1 -1
- package/types/examples/plasma_web/components/TextArea/TextArea.d.ts +1 -1
- package/types/examples/plasma_web/components/TextArea/TextArea.d.ts.map +1 -1
- package/types/examples/sds_engineer/components/TextArea/TextArea.d.ts +1 -1
- package/types/examples/sds_engineer/components/TextArea/TextArea.d.ts.map +1 -1
- package/types/types/TextareaHTMLAttributes.d.ts +52 -0
- package/types/types/TextareaHTMLAttributes.d.ts.map +1 -0
- package/types/types/index.d.ts +1 -0
- package/types/types/index.d.ts.map +1 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/plasma-new-hope",
|
3
|
-
"version": "0.91.0-canary.1263.
|
3
|
+
"version": "0.91.0-canary.1263.9643629084.0",
|
4
4
|
"description": "Salute Design System blueprint",
|
5
5
|
"main": "cjs/index.js",
|
6
6
|
"module": "es/index.js",
|
@@ -105,5 +105,5 @@
|
|
105
105
|
"react-popper": "2.3.0",
|
106
106
|
"storeon": "3.1.5"
|
107
107
|
},
|
108
|
-
"gitHead": "
|
108
|
+
"gitHead": "256f005743df13c0eb6628e00de4809431152574"
|
109
109
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -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<import("
|
5
|
+
export declare const textAreaRoot: (Root: RootProps<HTMLTextAreaElement, TextAreaProps>) => React.ForwardRefExoticComponent<import("../../types").TextareaHTMLAttributes<HTMLTextAreaElement> & import("./TextArea.types").TextAreaPropsExtends & 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<import("
|
9
|
+
layout: (Root: RootProps<HTMLTextAreaElement, TextAreaProps>) => React.ForwardRefExoticComponent<import("../../types").TextareaHTMLAttributes<HTMLTextAreaElement> & import("./TextArea.types").TextAreaPropsExtends & 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,oMAkJ1E,CAAC;AAEP,eAAO,MAAM,cAAc;;;mBApJQ,UAAU,mBAAmB,EAAE,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;CA4K/E,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { TextareaHTMLAttributes } from '
|
2
|
+
import { TextareaHTMLAttributes } from '../../types';
|
3
3
|
export interface TextAreaPropsBase {
|
4
4
|
/**
|
5
5
|
* Статус компонента: заполнен успешно / с предупреждением / с ошибкой.
|
@@ -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,
|
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,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,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;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,sBAAsB,CAAC,mBAAmB,CAAC,GAAG,oBAAoB,CAAC"}
|
@@ -15,5 +15,5 @@ export declare const TextArea: import("react").FunctionComponent<import("../../.
|
|
15
15
|
disabled: {
|
16
16
|
true: import("@linaria/core").LinariaClassName;
|
17
17
|
};
|
18
|
-
}> & import("
|
18
|
+
}> & import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends & import("react").RefAttributes<HTMLTextAreaElement>>;
|
19
19
|
//# 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;;;;;;;;;;;;;;;;kNAA0B,CAAC"}
|
@@ -15,5 +15,5 @@ export declare const TextArea: import("react").FunctionComponent<import("../../.
|
|
15
15
|
disabled: {
|
16
16
|
true: import("@linaria/core").LinariaClassName;
|
17
17
|
};
|
18
|
-
}> & import("
|
18
|
+
}> & import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends & import("react").RefAttributes<HTMLTextAreaElement>>;
|
19
19
|
//# 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;;;;;;;;;;;;;;;;kNAA0B,CAAC"}
|
@@ -12,5 +12,5 @@ export declare const TextArea: import("react").FunctionComponent<import("../../.
|
|
12
12
|
disabled: {
|
13
13
|
true: import("@linaria/core").LinariaClassName;
|
14
14
|
};
|
15
|
-
}> & import("
|
15
|
+
}> & import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends & import("react").RefAttributes<HTMLTextAreaElement>>;
|
16
16
|
//# 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;;;;;;;;;;;;;kNAA0B,CAAC"}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { DisabledProps } from '../mixins';
|
3
|
+
export interface TextareaHTMLAttributes<T> extends DisabledProps, React.TextareaHTMLAttributes<T> {
|
4
|
+
autoComplete?: string;
|
5
|
+
autoFocus?: boolean;
|
6
|
+
cols?: number;
|
7
|
+
dirName?: string;
|
8
|
+
form?: string;
|
9
|
+
/**
|
10
|
+
* Минимальная длина значения поля
|
11
|
+
*/
|
12
|
+
minLength?: number;
|
13
|
+
/**
|
14
|
+
* Максимальная длина значения поля
|
15
|
+
*/
|
16
|
+
maxLength?: number;
|
17
|
+
/**
|
18
|
+
* Определяет уникальное имя элемента формы
|
19
|
+
*/
|
20
|
+
name?: string;
|
21
|
+
/**
|
22
|
+
* Выводит текст внутри поля формы, который исчезает при получении фокуса
|
23
|
+
*/
|
24
|
+
placeholder?: string;
|
25
|
+
/**
|
26
|
+
* Элемент формы не может изменяться пользователем
|
27
|
+
*/
|
28
|
+
readOnly?: boolean;
|
29
|
+
/**
|
30
|
+
* Флаг обязательности поля
|
31
|
+
*/
|
32
|
+
required?: boolean;
|
33
|
+
rows?: number;
|
34
|
+
/**
|
35
|
+
* Определяет значение элемента формы
|
36
|
+
*/
|
37
|
+
value?: string | ReadonlyArray<string> | number;
|
38
|
+
wrap?: string;
|
39
|
+
/**
|
40
|
+
* Обработчик изменения элемента формы
|
41
|
+
*/
|
42
|
+
onChange?: React.TextareaHTMLAttributes<T>['onChange'];
|
43
|
+
/**
|
44
|
+
* Обработчик фокуса на элементе формы
|
45
|
+
*/
|
46
|
+
onFocus?: React.TextareaHTMLAttributes<T>['onFocus'];
|
47
|
+
/**
|
48
|
+
* Обработчик блюра на элементе формы
|
49
|
+
*/
|
50
|
+
onBlur?: React.TextareaHTMLAttributes<T>['onBlur'];
|
51
|
+
}
|
52
|
+
//# sourceMappingURL=TextareaHTMLAttributes.d.ts.map
|
@@ -0,0 +1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|
package/types/types/index.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
export type { AsProps } from './AsProps';
|
2
2
|
export type { NumericRange, CreateArrayWithLengthX } from './Range';
|
3
3
|
export type { InputHTMLAttributes } from './InputHTMLAttributes';
|
4
|
+
export type { TextareaHTMLAttributes } from './TextareaHTMLAttributes';
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,YAAY,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AACpE,YAAY,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,YAAY,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AACpE,YAAY,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,YAAY,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
|