@wix/editor-react-components 1.2781.0 → 1.2783.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.
@@ -114,6 +114,7 @@ const manifest = {
114
114
  elements: {
115
115
  label: {
116
116
  cssProperties: {
117
+ marginBottom: zero,
117
118
  textAlign: { defaultValue: "start" },
118
119
  font: presetFont("16px"),
119
120
  color: presetColor
@@ -157,6 +158,7 @@ const manifest = {
157
158
  },
158
159
  helperText: {
159
160
  cssProperties: {
161
+ marginTop: zero,
160
162
  textAlign: { defaultValue: "start" },
161
163
  font: presetFont("14px"),
162
164
  color: presetColor
@@ -164,6 +166,7 @@ const manifest = {
164
166
  },
165
167
  errorMessage: {
166
168
  cssProperties: {
169
+ marginTop: zero,
167
170
  textAlign: { defaultValue: "start" },
168
171
  font: presetFont("14px"),
169
172
  color: presetColor
@@ -188,7 +191,7 @@ const manifest = {
188
191
  displayName: DisplayNames.root.elements.label,
189
192
  selector: getSelector(selectors.label),
190
193
  behaviors: { selectable: false },
191
- cssProperties: alignedTypography,
194
+ cssProperties: { marginBottom: {}, ...alignedTypography },
192
195
  cssCustomProperties: textShadow
193
196
  }
194
197
  },
@@ -290,7 +293,7 @@ const manifest = {
290
293
  displayName: DisplayNames.root.elements.helperText,
291
294
  selector: getSelector(selectors.helperText),
292
295
  behaviors: { selectable: false },
293
- cssProperties: alignedTypography,
296
+ cssProperties: { marginTop: {}, ...alignedTypography },
294
297
  cssCustomProperties: textShadow
295
298
  }
296
299
  },
@@ -300,7 +303,7 @@ const manifest = {
300
303
  displayName: DisplayNames.root.elements.errorMessage,
301
304
  selector: getSelector(selectors.errorMessage),
302
305
  behaviors: { selectable: false },
303
- cssProperties: alignedTypography,
306
+ cssProperties: { marginTop: {}, ...alignedTypography },
304
307
  cssCustomProperties: textShadow
305
308
  }
306
309
  }
@@ -36,6 +36,7 @@ export type ITextInputMapperProps = {
36
36
  /** Controlled value. Omission renders an empty input; edits require a parent update. */
37
37
  value?: string;
38
38
  onValueChange?: (value: string) => void;
39
+ onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
39
40
  label?: string;
40
41
  placeholder?: string;
41
42
  helperText?: string;
@@ -212,6 +212,7 @@ const TextInput = (props) => {
212
212
  disabled,
213
213
  autoFocus,
214
214
  onValueChange = noop,
215
+ onKeyDown,
215
216
  a11y,
216
217
  contentRef,
217
218
  elementProps,
@@ -274,6 +275,7 @@ const TextInput = (props) => {
274
275
  placeholder,
275
276
  className: inputClasses,
276
277
  id: `input_${id}`,
278
+ onKeyDown,
277
279
  "aria-invalid": ariaInvalid,
278
280
  ...ariaLabel && { "aria-label": ariaLabel },
279
281
  ...customAccessibleNameId && {
@@ -1,4 +1,5 @@
1
1
  import { I as INTERACTIONS, D as DATA, b as DISPLAY_GROUPS, E as ELEMENTS, C as CSS_PROPERTIES, N as NativeStateType, L as LAYOUT, A as Archetype } from "../chunks/chunk-EVX7ZUBD.js";
2
+ import { D as DomEventType } from "../chunks/types.impl.js";
2
3
  import { D as DesignStates, a as DisplayNames, F as FunctionalStateKeys, c as componentClassNames } from "../chunks/constants3.js";
3
4
  import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
4
5
  const designState = (s, pseudoClass) => ({
@@ -335,6 +336,13 @@ const manifest = {
335
336
  [DATA.DATA_TYPE.function]: {
336
337
  parameters: [{ dataType: DATA.DATA_TYPE.text }]
337
338
  }
339
+ },
340
+ onKeyDown: {
341
+ displayName: "On Key Down",
342
+ dataType: DATA.DATA_TYPE.function,
343
+ [DATA.DATA_TYPE.function]: {
344
+ parameters: [{ domEvent: DomEventType.KEYBOARD }]
345
+ }
338
346
  }
339
347
  },
340
348
  interactions: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/editor-react-components",
3
- "version": "1.2781.0",
3
+ "version": "1.2783.0",
4
4
  "description": "React components for the Wix Editor",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -222,5 +222,5 @@
222
222
  "registry": "https://registry.npmjs.org/",
223
223
  "access": "public"
224
224
  },
225
- "falconPackageHash": "281b7062494ff299030adafe7e033604a02cd75af7e9e31a914f1c0b"
225
+ "falconPackageHash": "1b5468b66f87cdeb99ce9b4ebcfc919e55de5f6b89ab37d921efb858"
226
226
  }