@salutejs/plasma-web 1.401.0-canary.1421.10953636107.0 → 1.401.0-canary.1421.10954838350.0
Sign up to get free protection for your applications and to get access to all the features.
- package/api/plasma-web.api.md +193 -0
- package/components/Mask/Mask.d.ts +190 -0
- package/components/Mask/Mask.js +9 -0
- package/components/Mask/index.d.ts +1 -0
- package/components/Mask/index.js +12 -0
- package/components/TextField/TextField.d.ts +11 -5
- package/components/TextField/TextField.js +2 -2
- package/css/cjs/components/Mask/Mask.js +11 -0
- package/css/cjs/components/Mask/Mask.js.map +1 -0
- package/css/cjs/components/TextField/TextField.js +1 -0
- package/css/cjs/components/TextField/TextField.js.map +1 -1
- package/css/cjs/index.js +2 -0
- package/css/cjs/index.js.map +1 -1
- package/css/es/components/Mask/Mask.js +7 -0
- package/css/es/components/Mask/Mask.js.map +1 -0
- package/css/es/components/TextField/TextField.js +1 -1
- package/css/es/components/TextField/TextField.js.map +1 -1
- package/css/es/index.js +1 -0
- package/css/es/index.js.map +1 -1
- package/css/index.d.ts +2 -0
- package/es/components/Mask/Mask.js +3 -0
- package/es/components/Mask/index.js +1 -0
- package/es/components/TextField/TextField.js +1 -1
- package/es/index.js +2 -1
- package/index.d.ts +1 -0
- package/index.js +11 -0
- package/package.json +3 -3
- package/temp/plasma-web.api.md +193 -0
- /package/css/cjs/components/{TextField/TextField.css → Mask/Mask.css} +0 -0
- /package/css/es/components/{TextField/TextField.css → Mask/Mask.css} +0 -0
package/api/plasma-web.api.md
CHANGED
@@ -151,10 +151,12 @@ import { InputHTMLAttributes } from '@salutejs/plasma-core';
|
|
151
151
|
import { InputHTMLAttributes as InputHTMLAttributes_2 } from '@salutejs/plasma-new-hope/types/types';
|
152
152
|
import { InputHTMLAttributes as InputHTMLAttributes_3 } from 'react';
|
153
153
|
import { JSXElementConstructor } from 'react';
|
154
|
+
import { KeyboardEvent as KeyboardEvent_2 } from 'react';
|
154
155
|
import { LineSkeletonProps } from '@salutejs/plasma-new-hope/styled-components';
|
155
156
|
import { LinkCustomProps } from '@salutejs/plasma-new-hope/types/components/Link/Link';
|
156
157
|
import { List } from '@salutejs/plasma-hope';
|
157
158
|
import { ListItem } from '@salutejs/plasma-hope';
|
159
|
+
import { MaskProps } from '@salutejs/plasma-new-hope/types/components/Mask/Mask.types';
|
158
160
|
import { MaxLinesProps } from '@salutejs/plasma-core';
|
159
161
|
import { mediaQuery } from '@salutejs/plasma-hope';
|
160
162
|
import { MediaQueryFunction } from '@salutejs/plasma-hope';
|
@@ -1844,6 +1846,197 @@ export { List }
|
|
1844
1846
|
|
1845
1847
|
export { ListItem }
|
1846
1848
|
|
1849
|
+
// @public (undocumented)
|
1850
|
+
export const Mask: ForwardRefExoticComponent<(Omit<PropsType< {
|
1851
|
+
view: {
|
1852
|
+
default: PolymorphicClassName;
|
1853
|
+
positive: PolymorphicClassName;
|
1854
|
+
warning: PolymorphicClassName;
|
1855
|
+
negative: PolymorphicClassName;
|
1856
|
+
};
|
1857
|
+
size: {
|
1858
|
+
l: PolymorphicClassName;
|
1859
|
+
m: PolymorphicClassName;
|
1860
|
+
s: PolymorphicClassName;
|
1861
|
+
xs: PolymorphicClassName;
|
1862
|
+
};
|
1863
|
+
labelPlacement: {
|
1864
|
+
inner: PolymorphicClassName;
|
1865
|
+
outer: PolymorphicClassName;
|
1866
|
+
};
|
1867
|
+
disabled: {
|
1868
|
+
true: PolymorphicClassName;
|
1869
|
+
};
|
1870
|
+
readOnly: {
|
1871
|
+
true: PolymorphicClassName;
|
1872
|
+
};
|
1873
|
+
}> & {
|
1874
|
+
size?: string | undefined;
|
1875
|
+
view?: string | undefined;
|
1876
|
+
readOnly?: boolean | undefined;
|
1877
|
+
disabled?: boolean | undefined;
|
1878
|
+
} & {
|
1879
|
+
label?: string | undefined;
|
1880
|
+
labelPlacement?: "outer" | "inner" | undefined;
|
1881
|
+
leftHelper?: string | undefined;
|
1882
|
+
contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
|
1883
|
+
contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
|
1884
|
+
textBefore?: string | undefined;
|
1885
|
+
textAfter?: string | undefined;
|
1886
|
+
onSearch?: ((value: string, event?: KeyboardEvent_2<HTMLInputElement> | undefined) => void) | undefined;
|
1887
|
+
} & {
|
1888
|
+
requiredPlacement?: "right" | "left" | undefined;
|
1889
|
+
} & {
|
1890
|
+
required: true;
|
1891
|
+
optional?: false | undefined;
|
1892
|
+
} & {
|
1893
|
+
chips?: undefined;
|
1894
|
+
onChangeChips?: undefined;
|
1895
|
+
enumerationType?: "plain" | undefined;
|
1896
|
+
onSearch?: ((value: string, event?: KeyboardEvent_2<HTMLInputElement> | undefined) => void) | undefined;
|
1897
|
+
} & Omit<InputHTMLAttributes_2<HTMLInputElement>, "size" | "required"> & RefAttributes<HTMLInputElement> & MaskProps, "ref"> | Omit<PropsType< {
|
1898
|
+
view: {
|
1899
|
+
default: PolymorphicClassName;
|
1900
|
+
positive: PolymorphicClassName;
|
1901
|
+
warning: PolymorphicClassName;
|
1902
|
+
negative: PolymorphicClassName;
|
1903
|
+
};
|
1904
|
+
size: {
|
1905
|
+
l: PolymorphicClassName;
|
1906
|
+
m: PolymorphicClassName;
|
1907
|
+
s: PolymorphicClassName;
|
1908
|
+
xs: PolymorphicClassName;
|
1909
|
+
};
|
1910
|
+
labelPlacement: {
|
1911
|
+
inner: PolymorphicClassName;
|
1912
|
+
outer: PolymorphicClassName;
|
1913
|
+
};
|
1914
|
+
disabled: {
|
1915
|
+
true: PolymorphicClassName;
|
1916
|
+
};
|
1917
|
+
readOnly: {
|
1918
|
+
true: PolymorphicClassName;
|
1919
|
+
};
|
1920
|
+
}> & {
|
1921
|
+
size?: string | undefined;
|
1922
|
+
view?: string | undefined;
|
1923
|
+
readOnly?: boolean | undefined;
|
1924
|
+
disabled?: boolean | undefined;
|
1925
|
+
} & {
|
1926
|
+
label?: string | undefined;
|
1927
|
+
labelPlacement?: "outer" | "inner" | undefined;
|
1928
|
+
leftHelper?: string | undefined;
|
1929
|
+
contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
|
1930
|
+
contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
|
1931
|
+
textBefore?: string | undefined;
|
1932
|
+
textAfter?: string | undefined;
|
1933
|
+
onSearch?: ((value: string, event?: KeyboardEvent_2<HTMLInputElement> | undefined) => void) | undefined;
|
1934
|
+
} & {
|
1935
|
+
requiredPlacement?: "right" | "left" | undefined;
|
1936
|
+
} & {
|
1937
|
+
required: true;
|
1938
|
+
optional?: false | undefined;
|
1939
|
+
} & {
|
1940
|
+
enumerationType: "chip";
|
1941
|
+
onSearch?: undefined;
|
1942
|
+
chips?: TextFieldPrimitiveValue[] | undefined;
|
1943
|
+
onChangeChips?: ((value: TextFieldPrimitiveValue[]) => void) | undefined;
|
1944
|
+
} & Omit<InputHTMLAttributes_2<HTMLInputElement>, "size" | "required"> & RefAttributes<HTMLInputElement> & MaskProps, "ref"> | Omit<PropsType< {
|
1945
|
+
view: {
|
1946
|
+
default: PolymorphicClassName;
|
1947
|
+
positive: PolymorphicClassName;
|
1948
|
+
warning: PolymorphicClassName;
|
1949
|
+
negative: PolymorphicClassName;
|
1950
|
+
};
|
1951
|
+
size: {
|
1952
|
+
l: PolymorphicClassName;
|
1953
|
+
m: PolymorphicClassName;
|
1954
|
+
s: PolymorphicClassName;
|
1955
|
+
xs: PolymorphicClassName;
|
1956
|
+
};
|
1957
|
+
labelPlacement: {
|
1958
|
+
inner: PolymorphicClassName;
|
1959
|
+
outer: PolymorphicClassName;
|
1960
|
+
};
|
1961
|
+
disabled: {
|
1962
|
+
true: PolymorphicClassName;
|
1963
|
+
};
|
1964
|
+
readOnly: {
|
1965
|
+
true: PolymorphicClassName;
|
1966
|
+
};
|
1967
|
+
}> & {
|
1968
|
+
size?: string | undefined;
|
1969
|
+
view?: string | undefined;
|
1970
|
+
readOnly?: boolean | undefined;
|
1971
|
+
disabled?: boolean | undefined;
|
1972
|
+
} & {
|
1973
|
+
label?: string | undefined;
|
1974
|
+
labelPlacement?: "outer" | "inner" | undefined;
|
1975
|
+
leftHelper?: string | undefined;
|
1976
|
+
contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
|
1977
|
+
contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
|
1978
|
+
textBefore?: string | undefined;
|
1979
|
+
textAfter?: string | undefined;
|
1980
|
+
onSearch?: ((value: string, event?: KeyboardEvent_2<HTMLInputElement> | undefined) => void) | undefined;
|
1981
|
+
} & {
|
1982
|
+
requiredPlacement?: "right" | "left" | undefined;
|
1983
|
+
} & {
|
1984
|
+
optional?: true | undefined;
|
1985
|
+
required?: false | undefined;
|
1986
|
+
} & {
|
1987
|
+
chips?: undefined;
|
1988
|
+
onChangeChips?: undefined;
|
1989
|
+
enumerationType?: "plain" | undefined;
|
1990
|
+
onSearch?: ((value: string, event?: KeyboardEvent_2<HTMLInputElement> | undefined) => void) | undefined;
|
1991
|
+
} & Omit<InputHTMLAttributes_2<HTMLInputElement>, "size" | "required"> & RefAttributes<HTMLInputElement> & MaskProps, "ref"> | Omit<PropsType< {
|
1992
|
+
view: {
|
1993
|
+
default: PolymorphicClassName;
|
1994
|
+
positive: PolymorphicClassName;
|
1995
|
+
warning: PolymorphicClassName;
|
1996
|
+
negative: PolymorphicClassName;
|
1997
|
+
};
|
1998
|
+
size: {
|
1999
|
+
l: PolymorphicClassName;
|
2000
|
+
m: PolymorphicClassName;
|
2001
|
+
s: PolymorphicClassName;
|
2002
|
+
xs: PolymorphicClassName;
|
2003
|
+
};
|
2004
|
+
labelPlacement: {
|
2005
|
+
inner: PolymorphicClassName;
|
2006
|
+
outer: PolymorphicClassName;
|
2007
|
+
};
|
2008
|
+
disabled: {
|
2009
|
+
true: PolymorphicClassName;
|
2010
|
+
};
|
2011
|
+
readOnly: {
|
2012
|
+
true: PolymorphicClassName;
|
2013
|
+
};
|
2014
|
+
}> & {
|
2015
|
+
size?: string | undefined;
|
2016
|
+
view?: string | undefined;
|
2017
|
+
readOnly?: boolean | undefined;
|
2018
|
+
disabled?: boolean | undefined;
|
2019
|
+
} & {
|
2020
|
+
label?: string | undefined;
|
2021
|
+
labelPlacement?: "outer" | "inner" | undefined;
|
2022
|
+
leftHelper?: string | undefined;
|
2023
|
+
contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
|
2024
|
+
contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
|
2025
|
+
textBefore?: string | undefined;
|
2026
|
+
textAfter?: string | undefined;
|
2027
|
+
onSearch?: ((value: string, event?: KeyboardEvent_2<HTMLInputElement> | undefined) => void) | undefined;
|
2028
|
+
} & {
|
2029
|
+
requiredPlacement?: "right" | "left" | undefined;
|
2030
|
+
} & {
|
2031
|
+
optional?: true | undefined;
|
2032
|
+
required?: false | undefined;
|
2033
|
+
} & {
|
2034
|
+
enumerationType: "chip";
|
2035
|
+
onSearch?: undefined;
|
2036
|
+
chips?: TextFieldPrimitiveValue[] | undefined;
|
2037
|
+
onChangeChips?: ((value: TextFieldPrimitiveValue[]) => void) | undefined;
|
2038
|
+
} & Omit<InputHTMLAttributes_2<HTMLInputElement>, "size" | "required"> & RefAttributes<HTMLInputElement> & MaskProps, "ref">) & RefAttributes<HTMLInputElement>>;
|
2039
|
+
|
1847
2040
|
export { MaxLinesProps }
|
1848
2041
|
|
1849
2042
|
export { mediaQuery }
|
@@ -0,0 +1,190 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export declare const Mask: import("react").ForwardRefExoticComponent<(Omit<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
3
|
+
view: {
|
4
|
+
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
5
|
+
positive: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
6
|
+
warning: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
7
|
+
negative: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
8
|
+
};
|
9
|
+
size: {
|
10
|
+
l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
11
|
+
m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
12
|
+
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
13
|
+
xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
14
|
+
};
|
15
|
+
labelPlacement: {
|
16
|
+
inner: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
17
|
+
outer: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
18
|
+
};
|
19
|
+
disabled: {
|
20
|
+
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
21
|
+
};
|
22
|
+
readOnly: {
|
23
|
+
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
24
|
+
};
|
25
|
+
}> & {
|
26
|
+
size?: string | undefined;
|
27
|
+
view?: string | undefined;
|
28
|
+
readOnly?: boolean | undefined;
|
29
|
+
disabled?: boolean | undefined;
|
30
|
+
} & {
|
31
|
+
label?: string | undefined;
|
32
|
+
labelPlacement?: "outer" | "inner" | undefined;
|
33
|
+
leftHelper?: string | undefined;
|
34
|
+
contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
35
|
+
contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
36
|
+
textBefore?: string | undefined;
|
37
|
+
textAfter?: string | undefined;
|
38
|
+
onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
|
39
|
+
} & {
|
40
|
+
requiredPlacement?: "right" | "left" | undefined;
|
41
|
+
} & {
|
42
|
+
required: true;
|
43
|
+
optional?: false | undefined;
|
44
|
+
} & {
|
45
|
+
chips?: undefined;
|
46
|
+
onChangeChips?: undefined;
|
47
|
+
enumerationType?: "plain" | undefined;
|
48
|
+
onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
|
49
|
+
} & Omit<import("@salutejs/plasma-new-hope/types/types").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement> & import("@salutejs/plasma-new-hope/types/components/Mask/Mask.types").MaskProps, "ref"> | Omit<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
50
|
+
view: {
|
51
|
+
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
52
|
+
positive: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
53
|
+
warning: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
54
|
+
negative: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
55
|
+
};
|
56
|
+
size: {
|
57
|
+
l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
58
|
+
m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
59
|
+
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
60
|
+
xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
61
|
+
};
|
62
|
+
labelPlacement: {
|
63
|
+
inner: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
64
|
+
outer: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
65
|
+
};
|
66
|
+
disabled: {
|
67
|
+
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
68
|
+
};
|
69
|
+
readOnly: {
|
70
|
+
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
71
|
+
};
|
72
|
+
}> & {
|
73
|
+
size?: string | undefined;
|
74
|
+
view?: string | undefined;
|
75
|
+
readOnly?: boolean | undefined;
|
76
|
+
disabled?: boolean | undefined;
|
77
|
+
} & {
|
78
|
+
label?: string | undefined;
|
79
|
+
labelPlacement?: "outer" | "inner" | undefined;
|
80
|
+
leftHelper?: string | undefined;
|
81
|
+
contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
82
|
+
contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
83
|
+
textBefore?: string | undefined;
|
84
|
+
textAfter?: string | undefined;
|
85
|
+
onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
|
86
|
+
} & {
|
87
|
+
requiredPlacement?: "right" | "left" | undefined;
|
88
|
+
} & {
|
89
|
+
required: true;
|
90
|
+
optional?: false | undefined;
|
91
|
+
} & {
|
92
|
+
enumerationType: "chip";
|
93
|
+
onSearch?: undefined;
|
94
|
+
chips?: import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
|
95
|
+
onChangeChips?: ((value: import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
|
96
|
+
} & Omit<import("@salutejs/plasma-new-hope/types/types").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement> & import("@salutejs/plasma-new-hope/types/components/Mask/Mask.types").MaskProps, "ref"> | Omit<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
97
|
+
view: {
|
98
|
+
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
99
|
+
positive: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
100
|
+
warning: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
101
|
+
negative: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
102
|
+
};
|
103
|
+
size: {
|
104
|
+
l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
105
|
+
m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
106
|
+
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
107
|
+
xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
108
|
+
};
|
109
|
+
labelPlacement: {
|
110
|
+
inner: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
111
|
+
outer: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
112
|
+
};
|
113
|
+
disabled: {
|
114
|
+
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
115
|
+
};
|
116
|
+
readOnly: {
|
117
|
+
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
118
|
+
};
|
119
|
+
}> & {
|
120
|
+
size?: string | undefined;
|
121
|
+
view?: string | undefined;
|
122
|
+
readOnly?: boolean | undefined;
|
123
|
+
disabled?: boolean | undefined;
|
124
|
+
} & {
|
125
|
+
label?: string | undefined;
|
126
|
+
labelPlacement?: "outer" | "inner" | undefined;
|
127
|
+
leftHelper?: string | undefined;
|
128
|
+
contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
129
|
+
contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
130
|
+
textBefore?: string | undefined;
|
131
|
+
textAfter?: string | undefined;
|
132
|
+
onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
|
133
|
+
} & {
|
134
|
+
requiredPlacement?: "right" | "left" | undefined;
|
135
|
+
} & {
|
136
|
+
optional?: true | undefined;
|
137
|
+
required?: false | undefined;
|
138
|
+
} & {
|
139
|
+
chips?: undefined;
|
140
|
+
onChangeChips?: undefined;
|
141
|
+
enumerationType?: "plain" | undefined;
|
142
|
+
onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
|
143
|
+
} & Omit<import("@salutejs/plasma-new-hope/types/types").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement> & import("@salutejs/plasma-new-hope/types/components/Mask/Mask.types").MaskProps, "ref"> | Omit<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
144
|
+
view: {
|
145
|
+
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
146
|
+
positive: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
147
|
+
warning: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
148
|
+
negative: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
149
|
+
};
|
150
|
+
size: {
|
151
|
+
l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
152
|
+
m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
153
|
+
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
154
|
+
xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
155
|
+
};
|
156
|
+
labelPlacement: {
|
157
|
+
inner: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
158
|
+
outer: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
159
|
+
};
|
160
|
+
disabled: {
|
161
|
+
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
162
|
+
};
|
163
|
+
readOnly: {
|
164
|
+
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
165
|
+
};
|
166
|
+
}> & {
|
167
|
+
size?: string | undefined;
|
168
|
+
view?: string | undefined;
|
169
|
+
readOnly?: boolean | undefined;
|
170
|
+
disabled?: boolean | undefined;
|
171
|
+
} & {
|
172
|
+
label?: string | undefined;
|
173
|
+
labelPlacement?: "outer" | "inner" | undefined;
|
174
|
+
leftHelper?: string | undefined;
|
175
|
+
contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
176
|
+
contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
177
|
+
textBefore?: string | undefined;
|
178
|
+
textAfter?: string | undefined;
|
179
|
+
onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
|
180
|
+
} & {
|
181
|
+
requiredPlacement?: "right" | "left" | undefined;
|
182
|
+
} & {
|
183
|
+
optional?: true | undefined;
|
184
|
+
required?: false | undefined;
|
185
|
+
} & {
|
186
|
+
enumerationType: "chip";
|
187
|
+
onSearch?: undefined;
|
188
|
+
chips?: import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
|
189
|
+
onChangeChips?: ((value: import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
|
190
|
+
} & Omit<import("@salutejs/plasma-new-hope/types/types").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement> & import("@salutejs/plasma-new-hope/types/components/Mask/Mask.types").MaskProps, "ref">) & import("react").RefAttributes<HTMLInputElement>>;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.Mask = void 0;
|
7
|
+
var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
|
8
|
+
var _TextField = /*#__PURE__*/require("../TextField/TextField");
|
9
|
+
var Mask = exports.Mask = /*#__PURE__*/(0, _styledComponents.composeMask)(_TextField.TextFieldComponent);
|
@@ -0,0 +1 @@
|
|
1
|
+
export { Mask } from './Mask';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import type { TextFieldProps as TextFieldPropsOld } from '@salutejs/plasma-hope';
|
3
|
-
declare const TextFieldComponent: React.FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
3
|
+
export declare const TextFieldComponent: React.FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
4
4
|
view: {
|
5
5
|
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
6
6
|
positive: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
@@ -45,7 +45,8 @@ declare const TextFieldComponent: React.FunctionComponent<import("@salutejs/plas
|
|
45
45
|
} & {
|
46
46
|
chips?: undefined;
|
47
47
|
onChangeChips?: undefined;
|
48
|
-
enumerationType?: "plain" | undefined;
|
48
|
+
enumerationType?: "plain" | undefined;
|
49
|
+
/**
|
49
50
|
* Флаг обязательности поля
|
50
51
|
*/
|
51
52
|
onSearch?: ((value: string, event?: React.KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
|
@@ -70,7 +71,9 @@ declare const TextFieldComponent: React.FunctionComponent<import("@salutejs/plas
|
|
70
71
|
optional?: false | undefined;
|
71
72
|
} & {
|
72
73
|
enumerationType: "chip";
|
73
|
-
onSearch?: undefined;
|
74
|
+
onSearch?: undefined; /**
|
75
|
+
* Флаг обязательности поля
|
76
|
+
*/
|
74
77
|
chips?: import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
|
75
78
|
onChangeChips?: ((value: import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
|
76
79
|
} & Omit<import("@salutejs/plasma-new-hope/types/types").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & React.RefAttributes<HTMLInputElement>) | ({
|
@@ -95,7 +98,8 @@ declare const TextFieldComponent: React.FunctionComponent<import("@salutejs/plas
|
|
95
98
|
} & {
|
96
99
|
chips?: undefined;
|
97
100
|
onChangeChips?: undefined;
|
98
|
-
enumerationType?: "plain" | undefined;
|
101
|
+
enumerationType?: "plain" | undefined;
|
102
|
+
/**
|
99
103
|
* Флаг обязательности поля
|
100
104
|
*/
|
101
105
|
onSearch?: ((value: string, event?: React.KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
|
@@ -120,7 +124,9 @@ declare const TextFieldComponent: React.FunctionComponent<import("@salutejs/plas
|
|
120
124
|
required?: false | undefined;
|
121
125
|
} & {
|
122
126
|
enumerationType: "chip";
|
123
|
-
onSearch?: undefined;
|
127
|
+
onSearch?: undefined; /**
|
128
|
+
* Флаг обязательности поля
|
129
|
+
*/
|
124
130
|
chips?: import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
|
125
131
|
onChangeChips?: ((value: import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
|
126
132
|
} & Omit<import("@salutejs/plasma-new-hope/types/types").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & React.RefAttributes<HTMLInputElement>))>;
|
@@ -4,7 +4,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
5
5
|
value: true
|
6
6
|
});
|
7
|
-
exports.TextField = void 0;
|
7
|
+
exports.TextFieldComponent = exports.TextField = void 0;
|
8
8
|
var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
|
9
9
|
var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
|
10
10
|
var _TextField = /*#__PURE__*/require("./TextField.config");
|
@@ -15,7 +15,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
15
15
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
16
16
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
17
17
|
var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.textFieldConfig, _TextField.config);
|
18
|
-
var TextFieldComponent = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
|
18
|
+
var TextFieldComponent = exports.TextFieldComponent = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
|
19
19
|
var statusToView = {
|
20
20
|
success: 'positive',
|
21
21
|
warning: 'warning',
|
@@ -0,0 +1,11 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
+
|
5
|
+
var plasmaNewHope = require('@salutejs/plasma-new-hope');
|
6
|
+
var TextField = require('../TextField/TextField.js');
|
7
|
+
|
8
|
+
var Mask = /*#__PURE__*/plasmaNewHope.composeMask(TextField.TextFieldComponent);
|
9
|
+
|
10
|
+
exports.Mask = Mask;
|
11
|
+
//# sourceMappingURL=Mask.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Mask.js","sources":["../../../../src-css/components/Mask/Mask.ts"],"sourcesContent":["import { composeMask } from '@salutejs/plasma-new-hope';\n\nimport { TextFieldComponent } from '../TextField/TextField';\n\nexport const Mask = composeMask(TextFieldComponent);\n"],"names":["Mask","composeMask","TextFieldComponent"],"mappings":";;;;;;;IAIaA,IAAI,gBAAGC,yBAAW,CAACC,4BAAkB;;;;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TextField.js","sources":["../../../../src-css/components/TextField/TextField.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport type { TextFieldProps as TextFieldPropsOld } from '@salutejs/plasma-hope';\nimport { textFieldConfig, component, mergeConfig } from '@salutejs/plasma-new-hope';\n\nimport { config } from './TextField.config';\n\nconst mergedConfig = mergeConfig(textFieldConfig, config);\
|
1
|
+
{"version":3,"file":"TextField.js","sources":["../../../../src-css/components/TextField/TextField.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport type { TextFieldProps as TextFieldPropsOld } from '@salutejs/plasma-hope';\nimport { textFieldConfig, component, mergeConfig } from '@salutejs/plasma-new-hope';\n\nimport { config } from './TextField.config';\n\nconst mergedConfig = mergeConfig(textFieldConfig, config);\nexport const TextFieldComponent = component(mergedConfig);\n\ntype newHopeTextFieldProps = React.ComponentProps<typeof TextFieldComponent>;\n\ntype RequiredProps = {\n /**\n * Задает выравнивание индикатора обязательности поля\n * @default right\n */\n requiredPlacement?: 'left' | 'right';\n} & (\n | {\n /**\n * Флаг обязательности поля\n */\n required: true;\n /**\n * Флаг необязательности поля\n */\n optional?: never | false;\n }\n | {\n /**\n * Флаг необязательности поля\n */\n optional?: true;\n /**\n * Флаг обязательности поля\n */\n required?: never | false;\n }\n);\n\ntype TextFieldProps = TextFieldPropsOld & RequiredProps;\n\nexport type CustomTextFieldProps = TextFieldProps &\n Pick<newHopeTextFieldProps, 'enumerationType' | 'chips' | 'onChangeChips'>;\n\nconst statusToView: Record<NonNullable<TextFieldProps['status']>, NonNullable<newHopeTextFieldProps['view']>> = {\n success: 'positive',\n warning: 'warning',\n error: 'negative',\n};\nconst animatedHintToLabelPlacement: Record<\n NonNullable<TextFieldProps['animatedHint']>,\n NonNullable<newHopeTextFieldProps['labelPlacement']>\n> = {\n placeholder: 'outer',\n label: 'inner',\n};\n\n/**\n * Поле ввода текста.\n */\nexport const TextField = forwardRef<HTMLInputElement, CustomTextFieldProps>((props, ref) => {\n const {\n status,\n\n label,\n placeholder,\n animatedHint,\n helperText,\n\n enumerationType,\n chips,\n onSearch,\n onChangeChips,\n\n size = 'l',\n\n ...rest\n } = props;\n\n /** TODO: #1064 Remove In plasma-2.0 */\n /* eslint-disable no-underscore-dangle */\n const _view = status ? statusToView[status] : 'default';\n let _labelPlacement = animatedHint ? animatedHintToLabelPlacement[animatedHint] : 'outer';\n let _label = label ? String(label) : undefined;\n if (size !== 'l' && _labelPlacement === 'inner') {\n _label = undefined;\n _labelPlacement = 'outer';\n }\n if (size === 'l' && animatedHint === 'placeholder' && !label) {\n _label = placeholder;\n _labelPlacement = 'inner';\n }\n\n if (enumerationType === 'chip') {\n return (\n <TextFieldComponent\n {...rest}\n view={_view}\n labelPlacement={_labelPlacement}\n label={_label}\n size={size}\n placeholder={placeholder}\n leftHelper={helperText}\n ref={ref}\n enumerationType=\"chip\"\n chips={chips}\n onChangeChips={onChangeChips}\n />\n );\n }\n\n return (\n <TextFieldComponent\n {...rest}\n view={_view}\n labelPlacement={_labelPlacement}\n label={_label}\n size={size}\n placeholder={placeholder}\n leftHelper={helperText}\n ref={ref}\n enumerationType=\"plain\"\n onSearch={onSearch}\n />\n );\n});\n"],"names":["mergedConfig","mergeConfig","textFieldConfig","config","TextFieldComponent","component","statusToView","success","warning","error","animatedHintToLabelPlacement","placeholder","label","TextField","forwardRef","props","ref","status","animatedHint","helperText","enumerationType","chips","onSearch","onChangeChips","_props$size","size","rest","_objectWithoutProperties","_excluded","_view","_labelPlacement","_label","String","undefined","React","createElement","_extends","view","labelPlacement","leftHelper"],"mappings":"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"}
|
package/css/cjs/index.js
CHANGED
@@ -33,6 +33,7 @@ var IconButton = require('./components/IconButton/IconButton.js');
|
|
33
33
|
var Image = require('./components/Image/Image.js');
|
34
34
|
var Indicator = require('./components/Indicator/Indicator.js');
|
35
35
|
var Link = require('./components/Link/Link.js');
|
36
|
+
var Mask = require('./components/Mask/Mask.js');
|
36
37
|
var ModalBase = require('./components/ModalBase/ModalBase.js');
|
37
38
|
var Notification = require('./components/Notification/Notification.js');
|
38
39
|
var Pagination = require('./components/Pagination/Pagination.js');
|
@@ -243,6 +244,7 @@ exports.IconButton = IconButton.IconButton;
|
|
243
244
|
exports.Image = Image.Image;
|
244
245
|
exports.Indicator = Indicator.Indicator;
|
245
246
|
exports.Link = Link.Link;
|
247
|
+
exports.Mask = Mask.Mask;
|
246
248
|
exports.ModalBase = ModalBase.ModalBase;
|
247
249
|
exports.Notification = Notification.Notification;
|
248
250
|
exports.NotificationsProvider = Notification.NotificationsProvider;
|
package/css/cjs/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Mask.js","sources":["../../../../src-css/components/Mask/Mask.ts"],"sourcesContent":["import { composeMask } from '@salutejs/plasma-new-hope';\n\nimport { TextFieldComponent } from '../TextField/TextField';\n\nexport const Mask = composeMask(TextFieldComponent);\n"],"names":["Mask","composeMask","TextFieldComponent"],"mappings":";;;IAIaA,IAAI,gBAAGC,WAAW,CAACC,kBAAkB;;;;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TextField.js","sources":["../../../../src-css/components/TextField/TextField.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport type { TextFieldProps as TextFieldPropsOld } from '@salutejs/plasma-hope';\nimport { textFieldConfig, component, mergeConfig } from '@salutejs/plasma-new-hope';\n\nimport { config } from './TextField.config';\n\nconst mergedConfig = mergeConfig(textFieldConfig, config);\
|
1
|
+
{"version":3,"file":"TextField.js","sources":["../../../../src-css/components/TextField/TextField.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport type { TextFieldProps as TextFieldPropsOld } from '@salutejs/plasma-hope';\nimport { textFieldConfig, component, mergeConfig } from '@salutejs/plasma-new-hope';\n\nimport { config } from './TextField.config';\n\nconst mergedConfig = mergeConfig(textFieldConfig, config);\nexport const TextFieldComponent = component(mergedConfig);\n\ntype newHopeTextFieldProps = React.ComponentProps<typeof TextFieldComponent>;\n\ntype RequiredProps = {\n /**\n * Задает выравнивание индикатора обязательности поля\n * @default right\n */\n requiredPlacement?: 'left' | 'right';\n} & (\n | {\n /**\n * Флаг обязательности поля\n */\n required: true;\n /**\n * Флаг необязательности поля\n */\n optional?: never | false;\n }\n | {\n /**\n * Флаг необязательности поля\n */\n optional?: true;\n /**\n * Флаг обязательности поля\n */\n required?: never | false;\n }\n);\n\ntype TextFieldProps = TextFieldPropsOld & RequiredProps;\n\nexport type CustomTextFieldProps = TextFieldProps &\n Pick<newHopeTextFieldProps, 'enumerationType' | 'chips' | 'onChangeChips'>;\n\nconst statusToView: Record<NonNullable<TextFieldProps['status']>, NonNullable<newHopeTextFieldProps['view']>> = {\n success: 'positive',\n warning: 'warning',\n error: 'negative',\n};\nconst animatedHintToLabelPlacement: Record<\n NonNullable<TextFieldProps['animatedHint']>,\n NonNullable<newHopeTextFieldProps['labelPlacement']>\n> = {\n placeholder: 'outer',\n label: 'inner',\n};\n\n/**\n * Поле ввода текста.\n */\nexport const TextField = forwardRef<HTMLInputElement, CustomTextFieldProps>((props, ref) => {\n const {\n status,\n\n label,\n placeholder,\n animatedHint,\n helperText,\n\n enumerationType,\n chips,\n onSearch,\n onChangeChips,\n\n size = 'l',\n\n ...rest\n } = props;\n\n /** TODO: #1064 Remove In plasma-2.0 */\n /* eslint-disable no-underscore-dangle */\n const _view = status ? statusToView[status] : 'default';\n let _labelPlacement = animatedHint ? animatedHintToLabelPlacement[animatedHint] : 'outer';\n let _label = label ? String(label) : undefined;\n if (size !== 'l' && _labelPlacement === 'inner') {\n _label = undefined;\n _labelPlacement = 'outer';\n }\n if (size === 'l' && animatedHint === 'placeholder' && !label) {\n _label = placeholder;\n _labelPlacement = 'inner';\n }\n\n if (enumerationType === 'chip') {\n return (\n <TextFieldComponent\n {...rest}\n view={_view}\n labelPlacement={_labelPlacement}\n label={_label}\n size={size}\n placeholder={placeholder}\n leftHelper={helperText}\n ref={ref}\n enumerationType=\"chip\"\n chips={chips}\n onChangeChips={onChangeChips}\n />\n );\n }\n\n return (\n <TextFieldComponent\n {...rest}\n view={_view}\n labelPlacement={_labelPlacement}\n label={_label}\n size={size}\n placeholder={placeholder}\n leftHelper={helperText}\n ref={ref}\n enumerationType=\"plain\"\n onSearch={onSearch}\n />\n );\n});\n"],"names":["mergedConfig","mergeConfig","textFieldConfig","config","TextFieldComponent","component","statusToView","success","warning","error","animatedHintToLabelPlacement","placeholder","label","TextField","forwardRef","props","ref","status","animatedHint","helperText","enumerationType","chips","onSearch","onChangeChips","_props$size","size","rest","_objectWithoutProperties","_excluded","_view","_labelPlacement","_label","String","undefined","React","createElement","_extends","view","labelPlacement","leftHelper"],"mappings":";;;;;;AAMA,IAAMA,YAAY,gBAAGC,WAAW,CAACC,eAAe,EAAEC,MAAM,CAAC,CAAA;IAC5CC,kBAAkB,gBAAGC,SAAS,CAACL,YAAY,EAAC;AAsCzD,IAAMM,YAAuG,GAAG;AAC5GC,EAAAA,OAAO,EAAE,UAAU;AACnBC,EAAAA,OAAO,EAAE,SAAS;AAClBC,EAAAA,KAAK,EAAE,UAAA;AACX,CAAC,CAAA;AACD,IAAMC,4BAGL,GAAG;AACAC,EAAAA,WAAW,EAAE,OAAO;AACpBC,EAAAA,KAAK,EAAE,OAAA;AACX,CAAC,CAAA;;AAED;AACA;AACA;AACO,IAAMC,SAAS,gBAAGC,UAAU,CAAyC,UAACC,KAAK,EAAEC,GAAG,EAAK;AACxF,EAAA,IACIC,MAAM,GAeNF,KAAK,CAfLE,MAAM;IAENL,KAAK,GAaLG,KAAK,CAbLH,KAAK;IACLD,WAAW,GAYXI,KAAK,CAZLJ,WAAW;IACXO,YAAY,GAWZH,KAAK,CAXLG,YAAY;IACZC,UAAU,GAUVJ,KAAK,CAVLI,UAAU;IAEVC,eAAe,GAQfL,KAAK,CARLK,eAAe;IACfC,KAAK,GAOLN,KAAK,CAPLM,KAAK;IACLC,QAAQ,GAMRP,KAAK,CANLO,QAAQ;IACRC,aAAa,GAKbR,KAAK,CALLQ,aAAa;IAAAC,WAAA,GAKbT,KAAK,CAHLU,IAAI;AAAJA,IAAAA,IAAI,GAAAD,WAAA,KAAG,KAAA,CAAA,GAAA,GAAG,GAAAA,WAAA;AAEPE,IAAAA,IAAI,GAAAC,wBAAA,CACPZ,KAAK,EAAAa,SAAA,CAAA,CAAA;;AAET;AACA;EACA,IAAMC,KAAK,GAAGZ,MAAM,GAAGX,YAAY,CAACW,MAAM,CAAC,GAAG,SAAS,CAAA;EACvD,IAAIa,eAAe,GAAGZ,YAAY,GAAGR,4BAA4B,CAACQ,YAAY,CAAC,GAAG,OAAO,CAAA;EACzF,IAAIa,MAAM,GAAGnB,KAAK,GAAGoB,MAAM,CAACpB,KAAK,CAAC,GAAGqB,SAAS,CAAA;AAC9C,EAAA,IAAIR,IAAI,KAAK,GAAG,IAAIK,eAAe,KAAK,OAAO,EAAE;AAC7CC,IAAAA,MAAM,GAAGE,SAAS,CAAA;AAClBH,IAAAA,eAAe,GAAG,OAAO,CAAA;AAC7B,GAAA;EACA,IAAIL,IAAI,KAAK,GAAG,IAAIP,YAAY,KAAK,aAAa,IAAI,CAACN,KAAK,EAAE;AAC1DmB,IAAAA,MAAM,GAAGpB,WAAW,CAAA;AACpBmB,IAAAA,eAAe,GAAG,OAAO,CAAA;AAC7B,GAAA;EAEA,IAAIV,eAAe,KAAK,MAAM,EAAE;IAC5B,oBACIc,KAAA,CAAAC,aAAA,CAAC/B,kBAAkB,EAAAgC,QAAA,KACXV,IAAI,EAAA;AACRW,MAAAA,IAAI,EAAER,KAAM;AACZS,MAAAA,cAAc,EAAER,eAAgB;AAChClB,MAAAA,KAAK,EAAEmB,MAAO;AACdN,MAAAA,IAAI,EAAEA,IAAK;AACXd,MAAAA,WAAW,EAAEA,WAAY;AACzB4B,MAAAA,UAAU,EAAEpB,UAAW;AACvBH,MAAAA,GAAG,EAAEA,GAAI;AACTI,MAAAA,eAAe,EAAC,MAAM;AACtBC,MAAAA,KAAK,EAAEA,KAAM;AACbE,MAAAA,aAAa,EAAEA,aAAAA;AAAc,KAAA,CAChC,CAAC,CAAA;AAEV,GAAA;EAEA,oBACIW,KAAA,CAAAC,aAAA,CAAC/B,kBAAkB,EAAAgC,QAAA,KACXV,IAAI,EAAA;AACRW,IAAAA,IAAI,EAAER,KAAM;AACZS,IAAAA,cAAc,EAAER,eAAgB;AAChClB,IAAAA,KAAK,EAAEmB,MAAO;AACdN,IAAAA,IAAI,EAAEA,IAAK;AACXd,IAAAA,WAAW,EAAEA,WAAY;AACzB4B,IAAAA,UAAU,EAAEpB,UAAW;AACvBH,IAAAA,GAAG,EAAEA,GAAI;AACTI,IAAAA,eAAe,EAAC,OAAO;AACvBE,IAAAA,QAAQ,EAAEA,QAAAA;AAAS,GAAA,CACtB,CAAC,CAAA;AAEV,CAAC;;;;"}
|
package/css/es/index.js
CHANGED
@@ -29,6 +29,7 @@ export { IconButton } from './components/IconButton/IconButton.js';
|
|
29
29
|
export { Image } from './components/Image/Image.js';
|
30
30
|
export { Indicator } from './components/Indicator/Indicator.js';
|
31
31
|
export { Link } from './components/Link/Link.js';
|
32
|
+
export { Mask } from './components/Mask/Mask.js';
|
32
33
|
export { ModalBase } from './components/ModalBase/ModalBase.js';
|
33
34
|
export { Notification, NotificationsProvider } from './components/Notification/Notification.js';
|
34
35
|
export { Pagination } from './components/Pagination/Pagination.js';
|
package/css/es/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/css/index.d.ts
CHANGED
@@ -24,6 +24,7 @@ export * from '../components/IconButton';
|
|
24
24
|
export * from '../components/Image';
|
25
25
|
export * from '../components/Indicator';
|
26
26
|
export * from '../components/Link';
|
27
|
+
export * from '../components/Mask';
|
27
28
|
export * from '../components/ModalBase';
|
28
29
|
export * from '../components/Notification';
|
29
30
|
export * from '../components/Overlay';
|
@@ -76,6 +77,7 @@ export * from '../components/IconButton';
|
|
76
77
|
export * from '../components/Image';
|
77
78
|
export * from '../components/Indicator';
|
78
79
|
export * from '../components/Link';
|
80
|
+
export * from '../components/Mask';
|
79
81
|
export * from '../components/ModalBase';
|
80
82
|
export * from '../components/Notification';
|
81
83
|
export * from '../components/Overlay';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { Mask } from './Mask';
|
@@ -6,7 +6,7 @@ import React, { forwardRef } from 'react';
|
|
6
6
|
import { textFieldConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/styled-components';
|
7
7
|
import { config } from './TextField.config';
|
8
8
|
var mergedConfig = /*#__PURE__*/mergeConfig(textFieldConfig, config);
|
9
|
-
var TextFieldComponent = /*#__PURE__*/component(mergedConfig);
|
9
|
+
export var TextFieldComponent = /*#__PURE__*/component(mergedConfig);
|
10
10
|
var statusToView = {
|
11
11
|
success: 'positive',
|
12
12
|
warning: 'warning',
|
package/es/index.js
CHANGED
@@ -67,4 +67,5 @@ export * from './components/Toolbar';
|
|
67
67
|
export * from './components/DatePicker';
|
68
68
|
export * from './components/Autocomplete';
|
69
69
|
export * from './components/EmptyState';
|
70
|
-
export * from './components/TextFieldGroup';
|
70
|
+
export * from './components/TextFieldGroup';
|
71
|
+
export * from './components/Mask';
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
@@ -772,4 +772,15 @@ Object.keys(_TextFieldGroup).forEach(function (key) {
|
|
772
772
|
return _TextFieldGroup[key];
|
773
773
|
}
|
774
774
|
});
|
775
|
+
});
|
776
|
+
var _Mask = /*#__PURE__*/require("./components/Mask");
|
777
|
+
Object.keys(_Mask).forEach(function (key) {
|
778
|
+
if (key === "default" || key === "__esModule") return;
|
779
|
+
if (key in exports && exports[key] === _Mask[key]) return;
|
780
|
+
Object.defineProperty(exports, key, {
|
781
|
+
enumerable: true,
|
782
|
+
get: function get() {
|
783
|
+
return _Mask[key];
|
784
|
+
}
|
785
|
+
});
|
775
786
|
});
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/plasma-web",
|
3
|
-
"version": "1.401.0-canary.1421.
|
3
|
+
"version": "1.401.0-canary.1421.10954838350.0",
|
4
4
|
"description": "Salute Design System / React UI kit for web applications",
|
5
5
|
"author": "Salute Frontend Team <salute.developers@gmail.com>",
|
6
6
|
"license": "MIT",
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"dependencies": {
|
22
22
|
"@salutejs/plasma-core": "1.180.0",
|
23
23
|
"@salutejs/plasma-hope": "1.312.0",
|
24
|
-
"@salutejs/plasma-new-hope": "0.149.0-canary.1421.
|
24
|
+
"@salutejs/plasma-new-hope": "0.149.0-canary.1421.10954838350.0",
|
25
25
|
"@salutejs/plasma-themes": "0.18.0",
|
26
26
|
"@salutejs/plasma-tokens-b2b": "1.42.0",
|
27
27
|
"@salutejs/plasma-tokens-b2c": "0.52.0",
|
@@ -112,5 +112,5 @@
|
|
112
112
|
"Fanil Zubairov"
|
113
113
|
],
|
114
114
|
"sideEffects": false,
|
115
|
-
"gitHead": "
|
115
|
+
"gitHead": "96245492dc261ce5b5f162351a3e640e038de52f"
|
116
116
|
}
|
package/temp/plasma-web.api.md
CHANGED
@@ -151,10 +151,12 @@ import { InputHTMLAttributes } from '@salutejs/plasma-core';
|
|
151
151
|
import { InputHTMLAttributes as InputHTMLAttributes_2 } from '@salutejs/plasma-new-hope/types/types';
|
152
152
|
import { InputHTMLAttributes as InputHTMLAttributes_3 } from 'react';
|
153
153
|
import { JSXElementConstructor } from 'react';
|
154
|
+
import { KeyboardEvent as KeyboardEvent_2 } from 'react';
|
154
155
|
import { LineSkeletonProps } from '@salutejs/plasma-new-hope/styled-components';
|
155
156
|
import { LinkCustomProps } from '@salutejs/plasma-new-hope/types/components/Link/Link';
|
156
157
|
import { List } from '@salutejs/plasma-hope';
|
157
158
|
import { ListItem } from '@salutejs/plasma-hope';
|
159
|
+
import { MaskProps } from '@salutejs/plasma-new-hope/types/components/Mask/Mask.types';
|
158
160
|
import { MaxLinesProps } from '@salutejs/plasma-core';
|
159
161
|
import { mediaQuery } from '@salutejs/plasma-hope';
|
160
162
|
import { MediaQueryFunction } from '@salutejs/plasma-hope';
|
@@ -1844,6 +1846,197 @@ export { List }
|
|
1844
1846
|
|
1845
1847
|
export { ListItem }
|
1846
1848
|
|
1849
|
+
// @public (undocumented)
|
1850
|
+
export const Mask: ForwardRefExoticComponent<(Omit<PropsType< {
|
1851
|
+
view: {
|
1852
|
+
default: PolymorphicClassName;
|
1853
|
+
positive: PolymorphicClassName;
|
1854
|
+
warning: PolymorphicClassName;
|
1855
|
+
negative: PolymorphicClassName;
|
1856
|
+
};
|
1857
|
+
size: {
|
1858
|
+
l: PolymorphicClassName;
|
1859
|
+
m: PolymorphicClassName;
|
1860
|
+
s: PolymorphicClassName;
|
1861
|
+
xs: PolymorphicClassName;
|
1862
|
+
};
|
1863
|
+
labelPlacement: {
|
1864
|
+
inner: PolymorphicClassName;
|
1865
|
+
outer: PolymorphicClassName;
|
1866
|
+
};
|
1867
|
+
disabled: {
|
1868
|
+
true: PolymorphicClassName;
|
1869
|
+
};
|
1870
|
+
readOnly: {
|
1871
|
+
true: PolymorphicClassName;
|
1872
|
+
};
|
1873
|
+
}> & {
|
1874
|
+
size?: string | undefined;
|
1875
|
+
view?: string | undefined;
|
1876
|
+
readOnly?: boolean | undefined;
|
1877
|
+
disabled?: boolean | undefined;
|
1878
|
+
} & {
|
1879
|
+
label?: string | undefined;
|
1880
|
+
labelPlacement?: "outer" | "inner" | undefined;
|
1881
|
+
leftHelper?: string | undefined;
|
1882
|
+
contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
|
1883
|
+
contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
|
1884
|
+
textBefore?: string | undefined;
|
1885
|
+
textAfter?: string | undefined;
|
1886
|
+
onSearch?: ((value: string, event?: KeyboardEvent_2<HTMLInputElement> | undefined) => void) | undefined;
|
1887
|
+
} & {
|
1888
|
+
requiredPlacement?: "right" | "left" | undefined;
|
1889
|
+
} & {
|
1890
|
+
required: true;
|
1891
|
+
optional?: false | undefined;
|
1892
|
+
} & {
|
1893
|
+
chips?: undefined;
|
1894
|
+
onChangeChips?: undefined;
|
1895
|
+
enumerationType?: "plain" | undefined;
|
1896
|
+
onSearch?: ((value: string, event?: KeyboardEvent_2<HTMLInputElement> | undefined) => void) | undefined;
|
1897
|
+
} & Omit<InputHTMLAttributes_2<HTMLInputElement>, "size" | "required"> & RefAttributes<HTMLInputElement> & MaskProps, "ref"> | Omit<PropsType< {
|
1898
|
+
view: {
|
1899
|
+
default: PolymorphicClassName;
|
1900
|
+
positive: PolymorphicClassName;
|
1901
|
+
warning: PolymorphicClassName;
|
1902
|
+
negative: PolymorphicClassName;
|
1903
|
+
};
|
1904
|
+
size: {
|
1905
|
+
l: PolymorphicClassName;
|
1906
|
+
m: PolymorphicClassName;
|
1907
|
+
s: PolymorphicClassName;
|
1908
|
+
xs: PolymorphicClassName;
|
1909
|
+
};
|
1910
|
+
labelPlacement: {
|
1911
|
+
inner: PolymorphicClassName;
|
1912
|
+
outer: PolymorphicClassName;
|
1913
|
+
};
|
1914
|
+
disabled: {
|
1915
|
+
true: PolymorphicClassName;
|
1916
|
+
};
|
1917
|
+
readOnly: {
|
1918
|
+
true: PolymorphicClassName;
|
1919
|
+
};
|
1920
|
+
}> & {
|
1921
|
+
size?: string | undefined;
|
1922
|
+
view?: string | undefined;
|
1923
|
+
readOnly?: boolean | undefined;
|
1924
|
+
disabled?: boolean | undefined;
|
1925
|
+
} & {
|
1926
|
+
label?: string | undefined;
|
1927
|
+
labelPlacement?: "outer" | "inner" | undefined;
|
1928
|
+
leftHelper?: string | undefined;
|
1929
|
+
contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
|
1930
|
+
contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
|
1931
|
+
textBefore?: string | undefined;
|
1932
|
+
textAfter?: string | undefined;
|
1933
|
+
onSearch?: ((value: string, event?: KeyboardEvent_2<HTMLInputElement> | undefined) => void) | undefined;
|
1934
|
+
} & {
|
1935
|
+
requiredPlacement?: "right" | "left" | undefined;
|
1936
|
+
} & {
|
1937
|
+
required: true;
|
1938
|
+
optional?: false | undefined;
|
1939
|
+
} & {
|
1940
|
+
enumerationType: "chip";
|
1941
|
+
onSearch?: undefined;
|
1942
|
+
chips?: TextFieldPrimitiveValue[] | undefined;
|
1943
|
+
onChangeChips?: ((value: TextFieldPrimitiveValue[]) => void) | undefined;
|
1944
|
+
} & Omit<InputHTMLAttributes_2<HTMLInputElement>, "size" | "required"> & RefAttributes<HTMLInputElement> & MaskProps, "ref"> | Omit<PropsType< {
|
1945
|
+
view: {
|
1946
|
+
default: PolymorphicClassName;
|
1947
|
+
positive: PolymorphicClassName;
|
1948
|
+
warning: PolymorphicClassName;
|
1949
|
+
negative: PolymorphicClassName;
|
1950
|
+
};
|
1951
|
+
size: {
|
1952
|
+
l: PolymorphicClassName;
|
1953
|
+
m: PolymorphicClassName;
|
1954
|
+
s: PolymorphicClassName;
|
1955
|
+
xs: PolymorphicClassName;
|
1956
|
+
};
|
1957
|
+
labelPlacement: {
|
1958
|
+
inner: PolymorphicClassName;
|
1959
|
+
outer: PolymorphicClassName;
|
1960
|
+
};
|
1961
|
+
disabled: {
|
1962
|
+
true: PolymorphicClassName;
|
1963
|
+
};
|
1964
|
+
readOnly: {
|
1965
|
+
true: PolymorphicClassName;
|
1966
|
+
};
|
1967
|
+
}> & {
|
1968
|
+
size?: string | undefined;
|
1969
|
+
view?: string | undefined;
|
1970
|
+
readOnly?: boolean | undefined;
|
1971
|
+
disabled?: boolean | undefined;
|
1972
|
+
} & {
|
1973
|
+
label?: string | undefined;
|
1974
|
+
labelPlacement?: "outer" | "inner" | undefined;
|
1975
|
+
leftHelper?: string | undefined;
|
1976
|
+
contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
|
1977
|
+
contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
|
1978
|
+
textBefore?: string | undefined;
|
1979
|
+
textAfter?: string | undefined;
|
1980
|
+
onSearch?: ((value: string, event?: KeyboardEvent_2<HTMLInputElement> | undefined) => void) | undefined;
|
1981
|
+
} & {
|
1982
|
+
requiredPlacement?: "right" | "left" | undefined;
|
1983
|
+
} & {
|
1984
|
+
optional?: true | undefined;
|
1985
|
+
required?: false | undefined;
|
1986
|
+
} & {
|
1987
|
+
chips?: undefined;
|
1988
|
+
onChangeChips?: undefined;
|
1989
|
+
enumerationType?: "plain" | undefined;
|
1990
|
+
onSearch?: ((value: string, event?: KeyboardEvent_2<HTMLInputElement> | undefined) => void) | undefined;
|
1991
|
+
} & Omit<InputHTMLAttributes_2<HTMLInputElement>, "size" | "required"> & RefAttributes<HTMLInputElement> & MaskProps, "ref"> | Omit<PropsType< {
|
1992
|
+
view: {
|
1993
|
+
default: PolymorphicClassName;
|
1994
|
+
positive: PolymorphicClassName;
|
1995
|
+
warning: PolymorphicClassName;
|
1996
|
+
negative: PolymorphicClassName;
|
1997
|
+
};
|
1998
|
+
size: {
|
1999
|
+
l: PolymorphicClassName;
|
2000
|
+
m: PolymorphicClassName;
|
2001
|
+
s: PolymorphicClassName;
|
2002
|
+
xs: PolymorphicClassName;
|
2003
|
+
};
|
2004
|
+
labelPlacement: {
|
2005
|
+
inner: PolymorphicClassName;
|
2006
|
+
outer: PolymorphicClassName;
|
2007
|
+
};
|
2008
|
+
disabled: {
|
2009
|
+
true: PolymorphicClassName;
|
2010
|
+
};
|
2011
|
+
readOnly: {
|
2012
|
+
true: PolymorphicClassName;
|
2013
|
+
};
|
2014
|
+
}> & {
|
2015
|
+
size?: string | undefined;
|
2016
|
+
view?: string | undefined;
|
2017
|
+
readOnly?: boolean | undefined;
|
2018
|
+
disabled?: boolean | undefined;
|
2019
|
+
} & {
|
2020
|
+
label?: string | undefined;
|
2021
|
+
labelPlacement?: "outer" | "inner" | undefined;
|
2022
|
+
leftHelper?: string | undefined;
|
2023
|
+
contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
|
2024
|
+
contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
|
2025
|
+
textBefore?: string | undefined;
|
2026
|
+
textAfter?: string | undefined;
|
2027
|
+
onSearch?: ((value: string, event?: KeyboardEvent_2<HTMLInputElement> | undefined) => void) | undefined;
|
2028
|
+
} & {
|
2029
|
+
requiredPlacement?: "right" | "left" | undefined;
|
2030
|
+
} & {
|
2031
|
+
optional?: true | undefined;
|
2032
|
+
required?: false | undefined;
|
2033
|
+
} & {
|
2034
|
+
enumerationType: "chip";
|
2035
|
+
onSearch?: undefined;
|
2036
|
+
chips?: TextFieldPrimitiveValue[] | undefined;
|
2037
|
+
onChangeChips?: ((value: TextFieldPrimitiveValue[]) => void) | undefined;
|
2038
|
+
} & Omit<InputHTMLAttributes_2<HTMLInputElement>, "size" | "required"> & RefAttributes<HTMLInputElement> & MaskProps, "ref">) & RefAttributes<HTMLInputElement>>;
|
2039
|
+
|
1847
2040
|
export { MaxLinesProps }
|
1848
2041
|
|
1849
2042
|
export { mediaQuery }
|
File without changes
|
File without changes
|