@wix/editor-react-components 1.2782.0 → 1.2784.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.
@@ -117,6 +117,30 @@
117
117
  transform: rotate(var(--disabled-icon-rotation, var(--icon-rotation)));
118
118
  }
119
119
 
120
+ :is(.root__IB9QF, #_-1-__0K-05):where(:disabled) {
121
+ background: #e5e7eb;
122
+ }
123
+
124
+ .root__IB9QF:where(:disabled) .label__EtLji:is(.label__EtLji, #_-1-__0K-05) {
125
+ color: #6b7280;
126
+ }
127
+
128
+ .root__IB9QF:where(:disabled) .icon__ZzsS5.icon__ZzsS5:is(.icon__ZzsS5, #_-1-__0K-05) {
129
+ --fill: #6b7280;
130
+ }
131
+
132
+ :is(.root__IB9QF, #_-1-__0K-05):where(.editorPreview__aTsVL):disabled {
133
+ background: #e5e7eb;
134
+ }
135
+
136
+ .root__IB9QF:where(.editorPreview__aTsVL):disabled .label__EtLji:is(.label__EtLji, #_-1-__0K-05) {
137
+ color: #6b7280;
138
+ }
139
+
140
+ .root__IB9QF:where(.editorPreview__aTsVL):disabled .icon__ZzsS5.icon__ZzsS5:is(.icon__ZzsS5, #_-1-__0K-05) {
141
+ --fill: #6b7280;
142
+ }
143
+
120
144
  .button__i8gkO {
121
145
  min-width: min-content !important;
122
146
  }
@@ -83,7 +83,7 @@ const manifest = {
83
83
  disablePositioning: false
84
84
  },
85
85
  cssProperties: {
86
- background: {},
86
+ background: { statesDefaultValues: { disabled: "#E5E7EB" } },
87
87
  boxShadow: {},
88
88
  borderInlineStart: {},
89
89
  borderInlineEnd: {},
@@ -255,7 +255,7 @@ const manifest = {
255
255
  display: displayConfig
256
256
  },
257
257
  font: { displayName: DisplayNames.label.cssProperties.font },
258
- color: {},
258
+ color: { statesDefaultValues: { disabled: "#6B7280" } },
259
259
  letterSpacing: {},
260
260
  lineHeight: {},
261
261
  textDecorationLine: {
@@ -295,6 +295,9 @@ const manifest = {
295
295
  behaviors: {
296
296
  selectable: false,
297
297
  removable: true
298
+ },
299
+ cssCustomProperties: {
300
+ fill: { statesDefaultValues: { disabled: "#6B7280" } }
298
301
  }
299
302
  }
300
303
  }
@@ -243,6 +243,30 @@
243
243
  transform: rotate(var(--disabled-icon-rotation, var(--icon-rotation)));
244
244
  }
245
245
 
246
+ :is(.root__IB9QF, #_-1-__0K-05):where(:disabled) {
247
+ background: #e5e7eb;
248
+ }
249
+
250
+ .root__IB9QF:where(:disabled) .label__EtLji:is(.label__EtLji, #_-1-__0K-05) {
251
+ color: #6b7280;
252
+ }
253
+
254
+ .root__IB9QF:where(:disabled) .icon__ZzsS5.icon__ZzsS5:is(.icon__ZzsS5, #_-1-__0K-05) {
255
+ --fill: #6b7280;
256
+ }
257
+
258
+ :is(.root__IB9QF, #_-1-__0K-05):where(.editorPreview__aTsVL):disabled {
259
+ background: #e5e7eb;
260
+ }
261
+
262
+ .root__IB9QF:where(.editorPreview__aTsVL):disabled .label__EtLji:is(.label__EtLji, #_-1-__0K-05) {
263
+ color: #6b7280;
264
+ }
265
+
266
+ .root__IB9QF:where(.editorPreview__aTsVL):disabled .icon__ZzsS5.icon__ZzsS5:is(.icon__ZzsS5, #_-1-__0K-05) {
267
+ --fill: #6b7280;
268
+ }
269
+
246
270
  .button__i8gkO {
247
271
  min-width: min-content !important;
248
272
  }
@@ -157,6 +157,30 @@
157
157
  transform: rotate(var(--disabled-icon-rotation, var(--icon-rotation)));
158
158
  }
159
159
 
160
+ :is(.root__IB9QF, #_-1-__0K-05):where(:disabled) {
161
+ background: #e5e7eb;
162
+ }
163
+
164
+ .root__IB9QF:where(:disabled) .label__EtLji:is(.label__EtLji, #_-1-__0K-05) {
165
+ color: #6b7280;
166
+ }
167
+
168
+ .root__IB9QF:where(:disabled) .icon__ZzsS5.icon__ZzsS5:is(.icon__ZzsS5, #_-1-__0K-05) {
169
+ --fill: #6b7280;
170
+ }
171
+
172
+ :is(.root__IB9QF, #_-1-__0K-05):where(.editorPreview__aTsVL):disabled {
173
+ background: #e5e7eb;
174
+ }
175
+
176
+ .root__IB9QF:where(.editorPreview__aTsVL):disabled .label__EtLji:is(.label__EtLji, #_-1-__0K-05) {
177
+ color: #6b7280;
178
+ }
179
+
180
+ .root__IB9QF:where(.editorPreview__aTsVL):disabled .icon__ZzsS5.icon__ZzsS5:is(.icon__ZzsS5, #_-1-__0K-05) {
181
+ --fill: #6b7280;
182
+ }
183
+
160
184
  .button__i8gkO {
161
185
  min-width: min-content !important;
162
186
  }
@@ -1017,6 +1017,30 @@
1017
1017
  transform: rotate(var(--disabled-icon-rotation, var(--icon-rotation)));
1018
1018
  }
1019
1019
 
1020
+ :is(.root__IB9QF, #_-1-__0K-05):where(:disabled) {
1021
+ background: #e5e7eb;
1022
+ }
1023
+
1024
+ .root__IB9QF:where(:disabled) .label__EtLji:is(.label__EtLji, #_-1-__0K-05) {
1025
+ color: #6b7280;
1026
+ }
1027
+
1028
+ .root__IB9QF:where(:disabled) .icon__ZzsS5.icon__ZzsS5:is(.icon__ZzsS5, #_-1-__0K-05) {
1029
+ --fill: #6b7280;
1030
+ }
1031
+
1032
+ :is(.root__IB9QF, #_-1-__0K-05):where(.editorPreview__aTsVL):disabled {
1033
+ background: #e5e7eb;
1034
+ }
1035
+
1036
+ .root__IB9QF:where(.editorPreview__aTsVL):disabled .label__EtLji:is(.label__EtLji, #_-1-__0K-05) {
1037
+ color: #6b7280;
1038
+ }
1039
+
1040
+ .root__IB9QF:where(.editorPreview__aTsVL):disabled .icon__ZzsS5.icon__ZzsS5:is(.icon__ZzsS5, #_-1-__0K-05) {
1041
+ --fill: #6b7280;
1042
+ }
1043
+
1020
1044
  .button__i8gkO {
1021
1045
  min-width: min-content !important;
1022
1046
  }
@@ -621,6 +621,30 @@
621
621
  transform: rotate(var(--disabled-icon-rotation, var(--icon-rotation)));
622
622
  }
623
623
 
624
+ :is(.root__IB9QF, #_-1-__0K-05):where(:disabled) {
625
+ background: #e5e7eb;
626
+ }
627
+
628
+ .root__IB9QF:where(:disabled) .label__EtLji:is(.label__EtLji, #_-1-__0K-05) {
629
+ color: #6b7280;
630
+ }
631
+
632
+ .root__IB9QF:where(:disabled) .icon__ZzsS5.icon__ZzsS5:is(.icon__ZzsS5, #_-1-__0K-05) {
633
+ --fill: #6b7280;
634
+ }
635
+
636
+ :is(.root__IB9QF, #_-1-__0K-05):where(.editorPreview__aTsVL):disabled {
637
+ background: #e5e7eb;
638
+ }
639
+
640
+ .root__IB9QF:where(.editorPreview__aTsVL):disabled .label__EtLji:is(.label__EtLji, #_-1-__0K-05) {
641
+ color: #6b7280;
642
+ }
643
+
644
+ .root__IB9QF:where(.editorPreview__aTsVL):disabled .icon__ZzsS5.icon__ZzsS5:is(.icon__ZzsS5, #_-1-__0K-05) {
645
+ --fill: #6b7280;
646
+ }
647
+
624
648
  .button__i8gkO {
625
649
  min-width: min-content !important;
626
650
  }
@@ -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.2782.0",
3
+ "version": "1.2784.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": "255300fe60e40bdb721cf01e5c95936de7e55555c8a440b33735bdf2"
225
+ "falconPackageHash": "745d1ad15952f025b79272ef86d4e209e75d91cc9220a33462f4a70d"
226
226
  }