@salutejs/plasma-new-hope 0.139.0-canary.1352.10686935940.0 → 0.139.0-canary.1352.10698100498.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. package/cjs/components/TextArea/TextArea.js +4 -2
  2. package/cjs/components/TextArea/TextArea.js.map +1 -1
  3. package/cjs/components/TextField/TextField.js +2 -3
  4. package/cjs/components/TextField/TextField.js.map +1 -1
  5. package/emotion/cjs/components/TextArea/TextArea.js +5 -3
  6. package/emotion/cjs/components/TextField/TextField.js +3 -4
  7. package/emotion/cjs/components/TextField/TextField.template-doc.mdx +1 -1
  8. package/emotion/cjs/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +13 -1
  9. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +12 -0
  10. package/emotion/cjs/examples/plasma_web/components/TextArea/TextArea.stories.tsx +13 -1
  11. package/emotion/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +12 -0
  12. package/emotion/es/components/TextArea/TextArea.js +5 -3
  13. package/emotion/es/components/TextField/TextField.js +3 -4
  14. package/emotion/es/components/TextField/TextField.template-doc.mdx +1 -1
  15. package/emotion/es/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +13 -1
  16. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +12 -0
  17. package/emotion/es/examples/plasma_web/components/TextArea/TextArea.stories.tsx +13 -1
  18. package/emotion/es/examples/plasma_web/components/TextField/TextField.stories.tsx +12 -0
  19. package/es/components/TextArea/TextArea.js +4 -2
  20. package/es/components/TextArea/TextArea.js.map +1 -1
  21. package/es/components/TextField/TextField.js +2 -3
  22. package/es/components/TextField/TextField.js.map +1 -1
  23. package/package.json +2 -2
  24. package/styled-components/cjs/components/TextArea/TextArea.js +4 -2
  25. package/styled-components/cjs/components/TextField/TextField.js +2 -3
  26. package/styled-components/cjs/components/TextField/TextField.template-doc.mdx +1 -1
  27. package/styled-components/cjs/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +13 -1
  28. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +12 -0
  29. package/styled-components/cjs/examples/plasma_web/components/TextArea/TextArea.stories.tsx +13 -1
  30. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +12 -0
  31. package/styled-components/es/components/TextArea/TextArea.js +4 -2
  32. package/styled-components/es/components/TextField/TextField.js +2 -3
  33. package/styled-components/es/components/TextField/TextField.template-doc.mdx +1 -1
  34. package/styled-components/es/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +13 -1
  35. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +12 -0
  36. package/styled-components/es/examples/plasma_web/components/TextArea/TextArea.stories.tsx +13 -1
  37. package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +12 -0
  38. package/types/components/Autocomplete/Autocomplete.d.ts +2 -2
  39. package/types/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  40. package/types/components/Autocomplete/Autocomplete.types.d.ts +1 -1
  41. package/types/components/Autocomplete/Autocomplete.types.d.ts.map +1 -1
  42. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts +59 -7
  43. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
  44. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +59 -7
  45. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
  46. package/types/components/Range/Range.styles.d.ts +59 -7
  47. package/types/components/Range/Range.styles.d.ts.map +1 -1
  48. package/types/components/Slider/components/Double/Double.styles.d.ts +59 -7
  49. package/types/components/Slider/components/Double/Double.styles.d.ts.map +1 -1
  50. package/types/components/TextArea/TextArea.types.d.ts +30 -18
  51. package/types/components/TextArea/TextArea.types.d.ts.map +1 -1
  52. package/types/components/TextField/TextField.types.d.ts +27 -15
  53. package/types/components/TextField/TextField.types.d.ts.map +1 -1
  54. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts +1 -1
  55. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  56. package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts +135 -3
  57. package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts.map +1 -1
  58. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +59 -7
  59. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +1 -1
  60. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts +1 -1
  61. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  62. package/types/examples/plasma_web/components/TextArea/TextArea.d.ts +135 -3
  63. package/types/examples/plasma_web/components/TextArea/TextArea.d.ts.map +1 -1
  64. package/types/examples/plasma_web/components/TextField/TextField.d.ts +59 -7
  65. package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +1 -1
@@ -15,7 +15,24 @@ export declare const TextArea: import("react").FunctionComponent<import("../../.
15
15
  disabled: {
16
16
  true: import("@linaria/core").LinariaClassName;
17
17
  };
18
- }> & ((Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "rows" | "cols"> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends & {
18
+ }> & ((Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "required" | "rows" | "cols"> & {
19
+ status?: "" | "error" | "success" | "warning" | undefined;
20
+ label?: string | undefined;
21
+ labelPlacement?: "inner" | "outer" | undefined;
22
+ contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
23
+ resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
24
+ helperText?: string | undefined;
25
+ leftHelper?: string | undefined;
26
+ rightHelper?: string | undefined;
27
+ } & {
28
+ requiredPlacement?: "left" | "right" | undefined;
29
+ } & {
30
+ required: true;
31
+ optional?: false | undefined;
32
+ } & {
33
+ size?: string | undefined;
34
+ view?: string | undefined;
35
+ } & {
19
36
  autoResize?: boolean | undefined;
20
37
  maxAuto?: number | undefined;
21
38
  minAuto?: number | undefined;
@@ -25,7 +42,24 @@ export declare const TextArea: import("react").FunctionComponent<import("../../.
25
42
  } & {
26
43
  rows?: undefined;
27
44
  cols?: undefined;
28
- } & import("react").RefAttributes<HTMLTextAreaElement>) | (Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "rows" | "cols"> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends & {
45
+ } & import("react").RefAttributes<HTMLTextAreaElement>) | (Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "required" | "rows" | "cols"> & {
46
+ status?: "" | "error" | "success" | "warning" | undefined;
47
+ label?: string | undefined;
48
+ labelPlacement?: "inner" | "outer" | undefined;
49
+ contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
50
+ resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
51
+ helperText?: string | undefined;
52
+ leftHelper?: string | undefined;
53
+ rightHelper?: string | undefined;
54
+ } & {
55
+ requiredPlacement?: "left" | "right" | undefined;
56
+ } & {
57
+ required: true;
58
+ optional?: false | undefined;
59
+ } & {
60
+ size?: string | undefined;
61
+ view?: string | undefined;
62
+ } & {
29
63
  height?: string | number | undefined;
30
64
  width?: string | number | undefined;
31
65
  } & {
@@ -35,7 +69,105 @@ export declare const TextArea: import("react").FunctionComponent<import("../../.
35
69
  } & {
36
70
  rows?: undefined;
37
71
  cols?: undefined;
38
- } & import("react").RefAttributes<HTMLTextAreaElement>) | (Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "rows" | "cols"> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends & {
72
+ } & import("react").RefAttributes<HTMLTextAreaElement>) | (Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "required" | "rows" | "cols"> & {
73
+ status?: "" | "error" | "success" | "warning" | undefined;
74
+ label?: string | undefined;
75
+ labelPlacement?: "inner" | "outer" | undefined;
76
+ contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
77
+ resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
78
+ helperText?: string | undefined;
79
+ leftHelper?: string | undefined;
80
+ rightHelper?: string | undefined;
81
+ } & {
82
+ requiredPlacement?: "left" | "right" | undefined;
83
+ } & {
84
+ required: true;
85
+ optional?: false | undefined;
86
+ } & {
87
+ size?: string | undefined;
88
+ view?: string | undefined;
89
+ } & {
90
+ rows?: number | undefined;
91
+ cols?: number | undefined;
92
+ } & {
93
+ autoResize?: undefined;
94
+ maxAuto?: undefined;
95
+ minAuto?: undefined;
96
+ } & {
97
+ height?: undefined;
98
+ width?: undefined;
99
+ } & import("react").RefAttributes<HTMLTextAreaElement>) | (Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "required" | "rows" | "cols"> & {
100
+ status?: "" | "error" | "success" | "warning" | undefined;
101
+ label?: string | undefined;
102
+ labelPlacement?: "inner" | "outer" | undefined;
103
+ contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
104
+ resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
105
+ helperText?: string | undefined;
106
+ leftHelper?: string | undefined;
107
+ rightHelper?: string | undefined;
108
+ } & {
109
+ requiredPlacement?: "left" | "right" | undefined;
110
+ } & {
111
+ optional?: true | undefined;
112
+ required?: false | undefined;
113
+ } & {
114
+ size?: string | undefined;
115
+ view?: string | undefined;
116
+ } & {
117
+ autoResize?: boolean | undefined;
118
+ maxAuto?: number | undefined;
119
+ minAuto?: number | undefined;
120
+ } & {
121
+ height?: undefined;
122
+ width?: undefined;
123
+ } & {
124
+ rows?: undefined;
125
+ cols?: undefined;
126
+ } & import("react").RefAttributes<HTMLTextAreaElement>) | (Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "required" | "rows" | "cols"> & {
127
+ status?: "" | "error" | "success" | "warning" | undefined;
128
+ label?: string | undefined;
129
+ labelPlacement?: "inner" | "outer" | undefined;
130
+ contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
131
+ resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
132
+ helperText?: string | undefined;
133
+ leftHelper?: string | undefined;
134
+ rightHelper?: string | undefined;
135
+ } & {
136
+ requiredPlacement?: "left" | "right" | undefined;
137
+ } & {
138
+ optional?: true | undefined;
139
+ required?: false | undefined;
140
+ } & {
141
+ size?: string | undefined;
142
+ view?: string | undefined;
143
+ } & {
144
+ height?: string | number | undefined;
145
+ width?: string | number | undefined;
146
+ } & {
147
+ autoResize?: undefined;
148
+ maxAuto?: undefined;
149
+ minAuto?: undefined;
150
+ } & {
151
+ rows?: undefined;
152
+ cols?: undefined;
153
+ } & import("react").RefAttributes<HTMLTextAreaElement>) | (Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "required" | "rows" | "cols"> & {
154
+ status?: "" | "error" | "success" | "warning" | undefined;
155
+ label?: string | undefined;
156
+ labelPlacement?: "inner" | "outer" | undefined;
157
+ contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
158
+ resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
159
+ helperText?: string | undefined;
160
+ leftHelper?: string | undefined;
161
+ rightHelper?: string | undefined;
162
+ } & {
163
+ requiredPlacement?: "left" | "right" | undefined;
164
+ } & {
165
+ optional?: true | undefined;
166
+ required?: false | undefined;
167
+ } & {
168
+ size?: string | undefined;
169
+ view?: string | undefined;
170
+ } & {
39
171
  rows?: number | undefined;
40
172
  cols?: number | undefined;
41
173
  } & {
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDAA0B,CAAC"}
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"}
@@ -35,16 +35,42 @@ export declare const TextField: import("react").FunctionComponent<import("../../
35
35
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
36
36
  textBefore?: string | undefined;
37
37
  textAfter?: string | undefined;
38
- optional?: boolean | undefined;
39
- required?: boolean | undefined;
40
- requiredPlacement?: "left" | "right" | undefined;
41
38
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
39
+ } & {
40
+ requiredPlacement?: "left" | "right" | undefined;
41
+ } & {
42
+ required: true;
43
+ optional?: false | undefined;
42
44
  } & {
43
45
  chips?: undefined;
44
46
  onChangeChips?: undefined;
45
47
  enumerationType?: "plain" | undefined;
46
48
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
47
- } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
49
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
50
+ size?: string | undefined;
51
+ view?: string | undefined;
52
+ readOnly?: boolean | undefined;
53
+ disabled?: boolean | undefined;
54
+ } & {
55
+ label?: string | undefined;
56
+ labelPlacement?: "inner" | "outer" | undefined;
57
+ leftHelper?: string | undefined;
58
+ contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
59
+ contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
60
+ textBefore?: string | undefined;
61
+ textAfter?: string | undefined;
62
+ onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
63
+ } & {
64
+ requiredPlacement?: "left" | "right" | undefined;
65
+ } & {
66
+ required: true;
67
+ optional?: false | undefined;
68
+ } & {
69
+ enumerationType: "chip";
70
+ onSearch?: undefined;
71
+ chips?: import("../../../../components/TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
72
+ onChangeChips?: ((value: import("../../../../components/TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
73
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
48
74
  size?: string | undefined;
49
75
  view?: string | undefined;
50
76
  readOnly?: boolean | undefined;
@@ -57,14 +83,40 @@ export declare const TextField: import("react").FunctionComponent<import("../../
57
83
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
58
84
  textBefore?: string | undefined;
59
85
  textAfter?: string | undefined;
60
- optional?: boolean | undefined;
61
- required?: boolean | undefined;
86
+ onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
87
+ } & {
62
88
  requiredPlacement?: "left" | "right" | undefined;
89
+ } & {
90
+ optional?: true | undefined;
91
+ required?: false | undefined;
92
+ } & {
93
+ chips?: undefined;
94
+ onChangeChips?: undefined;
95
+ enumerationType?: "plain" | undefined;
96
+ onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
97
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
98
+ size?: string | undefined;
99
+ view?: string | undefined;
100
+ readOnly?: boolean | undefined;
101
+ disabled?: boolean | undefined;
102
+ } & {
103
+ label?: string | undefined;
104
+ labelPlacement?: "inner" | "outer" | undefined;
105
+ leftHelper?: string | undefined;
106
+ contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
107
+ contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
108
+ textBefore?: string | undefined;
109
+ textAfter?: string | undefined;
63
110
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
111
+ } & {
112
+ requiredPlacement?: "left" | "right" | undefined;
113
+ } & {
114
+ optional?: true | undefined;
115
+ required?: false | undefined;
64
116
  } & {
65
117
  enumerationType: "chip";
66
118
  onSearch?: undefined;
67
119
  chips?: import("../../../../components/TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
68
120
  onChangeChips?: ((value: import("../../../../components/TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
69
- } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & import("react").RefAttributes<HTMLInputElement>))>;
121
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>))>;
70
122
  //# sourceMappingURL=TextField.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/TextField/TextField.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4HAA0B,CAAC"}
1
+ {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/TextField/TextField.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yIAA0B,CAAC"}