@wix/editor-react-components 1.2481.0 → 1.2483.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,9 @@
1
1
  export declare const selectors: {
2
2
  readonly root: "textInput";
3
+ readonly label: "textInput__label";
4
+ readonly input: "textInput__input";
5
+ readonly prefix: "textInput__prefix";
6
+ readonly helperText: "textInput__helper";
3
7
  readonly requiredIndicator: "textInput__required-indicator";
4
8
  };
5
9
  export declare const TestIds: {
@@ -14,30 +18,38 @@ export declare const TestIds: {
14
18
  */
15
19
  export declare const VALUE_MISSING_MESSAGE = "This field is required";
16
20
  export declare const DesignStates: {
17
- readonly root: {
21
+ readonly input: {
18
22
  readonly hover: {
19
23
  readonly displayName: "Hover";
20
- readonly className: "textInput--hover";
24
+ readonly className: "textInput__input--hover";
21
25
  };
22
26
  readonly focus: {
23
27
  readonly displayName: "Focus";
24
- readonly className: "textInput--focus";
28
+ readonly className: "textInput__input--focus";
25
29
  };
26
30
  readonly error: {
27
31
  readonly displayName: "Error";
28
- readonly className: "textInput--error";
32
+ readonly className: "textInput__input--error";
29
33
  };
30
34
  readonly disabled: {
31
35
  readonly displayName: "Disabled";
32
- readonly className: "textInput--disabled";
36
+ readonly className: "textInput__input--disabled";
33
37
  };
34
38
  };
35
39
  };
36
40
  export declare const DisplayNames: {
37
41
  root: {
38
42
  elementDisplayName: string;
43
+ elements: {
44
+ label: string;
45
+ input: string;
46
+ prefix: string;
47
+ helperText: string;
48
+ };
39
49
  };
40
50
  cssCustomProperties: {
51
+ helperFont: string;
52
+ helperColor: string;
41
53
  textColor: string;
42
54
  placeholderTextColor: string;
43
55
  requiredTextColor: string;
@@ -47,7 +59,6 @@ export declare const DisplayNames: {
47
59
  labelMarginBottom: string;
48
60
  labelPaddingInlineStart: string;
49
61
  labelPaddingInlineEnd: string;
50
- align: string;
51
62
  labelAlign: string;
52
63
  inputAlign: string;
53
64
  };
@@ -70,6 +81,7 @@ export declare const DisplayNames: {
70
81
  label: string;
71
82
  placeholder: string;
72
83
  tooltip: string;
84
+ description: string;
73
85
  autoComplete: string;
74
86
  readOnly: string;
75
87
  required: string;
@@ -28,7 +28,7 @@
28
28
  --textPaddingInlineStart: 0.75rem;
29
29
  --textPaddingInlineEnd: 0.75rem;
30
30
  --textPaddingTop: 0.5rem;
31
- --inputAlign: inherit;
31
+ --inputAlign: left;
32
32
  --labelBottomMargin: 0.5rem;
33
33
  --labelPaddingInlineStart: 0;
34
34
  --labelPaddingInlineEnd: 0;
@@ -49,7 +49,12 @@
49
49
  normal normal normal 14px/1.6em madefor-text, helveticaneuew01-45ligh,
50
50
  helveticaneuew02-45ligh, helveticaneuew10-45ligh, sans-serif;
51
51
  --labelTextColor: #222222;
52
+ --helperFont:
53
+ normal normal normal 14px/1.4em madefor-text, helveticaneuew01-45ligh,
54
+ helveticaneuew02-45ligh, helveticaneuew10-45ligh, sans-serif;
55
+ --helperColor: #868686;
52
56
  --prefixWidth: 50px;
57
+ --inputHeight: 42px;
53
58
  display: flex;
54
59
  flex-direction: column;
55
60
  text-align: var(--align, start);
@@ -87,7 +92,7 @@
87
92
  flex: 1;
88
93
  text-overflow: ellipsis;
89
94
  text-align: var(--inputAlign, "inherit");
90
- min-height: 100%;
95
+ min-height: var(--inputHeight, 42px);
91
96
  border-radius: var(--borderRadius);
92
97
  background: var(--background);
93
98
  color: var(--textColor);
@@ -132,22 +137,22 @@
132
137
  border-color: var(--focusBorderColor, #a3d9f6);
133
138
  border-width: var(--focusBorderWidth, 1px);
134
139
  }
135
- .root__zQlRz.textInput--hover .input__fyTfx {
140
+ .root__zQlRz .input__fyTfx.textInput__input--hover {
136
141
  background-color: var(--hoverBackground, #ffffff);
137
142
  border-color: var(--hoverBorderColor, #a3d9f6);
138
143
  border-width: var(--hoverBorderWidth, 1px);
139
144
  }
140
- .root__zQlRz.textInput--focus .input__fyTfx {
145
+ .root__zQlRz .input__fyTfx.textInput__input--focus {
141
146
  background-color: var(--focusBackground, #ffffff);
142
147
  border-color: var(--focusBorderColor, #a3d9f6);
143
148
  border-width: var(--focusBorderWidth, 1px);
144
149
  }
145
- .root__zQlRz.textInput--error .input__fyTfx {
150
+ .root__zQlRz .input__fyTfx.textInput__input--error {
146
151
  background-color: var(--errorBackground, #ffffff);
147
152
  border-color: var(--errorBorderColor, #e3e3e3);
148
153
  border-width: var(--errorBorderWidth, 1px);
149
154
  }
150
- .root__zQlRz.textInput--disabled .input__fyTfx {
155
+ .root__zQlRz .input__fyTfx.textInput__input--disabled {
151
156
  background-color: var(--disabledBackground, #f5f5f5);
152
157
  color: var(--disabledTextColor, #999);
153
158
  border-color: var(--disabledBorderColor, #e3e3e3);
@@ -165,6 +170,12 @@
165
170
  border-color: #a3d9f6;
166
171
  border-width: 1px;
167
172
  }
173
+ .root__zQlRz .helperText__SfMAH {
174
+ margin: 0.25rem 0 0;
175
+ font: var(--helperFont);
176
+ color: var(--helperColor);
177
+ text-align: var(--align, start);
178
+ }
168
179
  .root__zQlRz .label__mbGIM {
169
180
  display: none;
170
181
  }
@@ -231,4 +242,7 @@
231
242
  margin-inline-start: 0.2em;
232
243
  vertical-align: super;
233
244
  color: inherit;
245
+ }
246
+ .fallbackDirection__HeRgn:not([dir]) {
247
+ direction: var(--wix-opt-in-direction);
234
248
  }