@wix/editor-react-components 1.2885.0 → 1.2886.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.
- package/dist/site/components/Combobox/Combobox.d.ts +3 -0
- package/dist/site/components/{Dropdown/Dropdown.types.d.ts → Combobox/Combobox.types.d.ts} +8 -8
- package/dist/site/components/Combobox/component.d.ts +2 -0
- package/dist/site/components/{Dropdown → Combobox}/component.js +65 -58
- package/dist/site/components/{Dropdown → Combobox}/constants.d.ts +21 -21
- package/dist/site/components/{Dropdown → Combobox}/css.css +20 -20
- package/dist/site/components/Combobox/index.d.ts +2 -0
- package/dist/site/components/Combobox/index.js +6 -0
- package/dist/site/components/{Dropdown → Combobox}/manifest.js +12 -11
- package/dist/site/components/DatePicker/component.js +2 -2
- package/dist/site/components/DatePicker/constants.d.ts +1 -1
- package/dist/site/components/DatePicker/manifest.js +4 -3
- package/dist/site/components/TextField/TextField.d.ts +4 -0
- package/dist/site/components/{TextInput/TextInput.types.d.ts → TextField/TextField.types.d.ts} +4 -4
- package/dist/site/components/TextField/component.d.ts +1 -0
- package/dist/site/components/{TextInput → TextField}/component.js +8 -8
- package/dist/site/components/TextField/component.preview.d.ts +1 -0
- package/dist/site/components/{TextInput → TextField}/constants.d.ts +9 -9
- package/dist/site/components/{TextInput → TextField}/css.css +10 -10
- package/dist/site/components/TextField/index.d.ts +2 -0
- package/dist/site/components/TextField/index.js +6 -0
- package/dist/site/components/{TextInput → TextField}/manifest.js +12 -11
- package/dist/site/components/TimePicker/constants.d.ts +1 -1
- package/dist/site/components/TimePicker/manifest.js +2 -1
- package/dist/site/components/chunks/constants2.js +1 -1
- package/dist/site/components/chunks/constants3.js +10 -10
- package/dist/site/components/chunks/constants36.js +138 -70
- package/dist/site/components/chunks/constants37.js +70 -138
- package/dist/site/components/extensions.js +4 -4
- package/package.json +2 -2
- package/dist/site/components/Dropdown/Dropdown.d.ts +0 -3
- package/dist/site/components/Dropdown/component.d.ts +0 -2
- package/dist/site/components/Dropdown/index.d.ts +0 -2
- package/dist/site/components/Dropdown/index.js +0 -6
- package/dist/site/components/TextInput/TextInput.d.ts +0 -4
- package/dist/site/components/TextInput/component.d.ts +0 -1
- package/dist/site/components/TextInput/component.preview.d.ts +0 -1
- package/dist/site/components/TextInput/index.d.ts +0 -2
- package/dist/site/components/TextInput/index.js +0 -6
- /package/dist/site/components/{Dropdown → Combobox}/manifest.d.ts +0 -0
- /package/dist/site/components/{TextInput → TextField}/manifest.d.ts +0 -0
|
@@ -1,165 +1,97 @@
|
|
|
1
|
-
const COMPONENT_TYPE = "wixEditorElements.
|
|
1
|
+
const COMPONENT_TYPE = "wixEditorElements.Combobox";
|
|
2
|
+
const DesignStates = {
|
|
3
|
+
input: {
|
|
4
|
+
hover: { displayName: "Hover", className: "combobox__input--hover" },
|
|
5
|
+
focus: { displayName: "Focus", className: "combobox__input--focus" },
|
|
6
|
+
error: { displayName: "Error", className: "combobox__input--error" },
|
|
7
|
+
disabled: {
|
|
8
|
+
displayName: "Disabled",
|
|
9
|
+
className: "combobox__input--disabled"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
option: {
|
|
13
|
+
hover: { displayName: "Hover", className: "combobox__option--hover" },
|
|
14
|
+
selected: {
|
|
15
|
+
displayName: "Selected",
|
|
16
|
+
className: "combobox__option--selected"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
const FunctionalStateKeys = {
|
|
21
|
+
previewList: "previewList",
|
|
22
|
+
previewError: "previewError"
|
|
23
|
+
};
|
|
2
24
|
const DisplayNames = {
|
|
3
25
|
root: {
|
|
4
|
-
elementDisplayName: "
|
|
26
|
+
elementDisplayName: "Combobox",
|
|
5
27
|
data: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
28
|
+
options: "Options",
|
|
29
|
+
optionLabel: "Label",
|
|
30
|
+
optionValue: "Value",
|
|
31
|
+
value: "Selected value",
|
|
32
|
+
disabled: "Disabled",
|
|
33
|
+
placeholder: "Placeholder",
|
|
11
34
|
label: "Label",
|
|
12
|
-
helperText: "Helper text",
|
|
13
|
-
errorMessage: "Error message",
|
|
14
35
|
readOnly: "Read only",
|
|
15
|
-
|
|
36
|
+
helperText: "Helper text",
|
|
37
|
+
errorMessage: "Error message"
|
|
16
38
|
},
|
|
17
|
-
|
|
18
|
-
|
|
39
|
+
// Tooltip copy for the Design panel's info icon on these data props —
|
|
40
|
+
// https://wix.slack.com/archives/C0BBFFEG6HL/p1791456026776399
|
|
41
|
+
descriptions: {
|
|
42
|
+
value: "This field's current value. Connect it to your context to save the data your visitors provide. A value typed in this panel stays fixed.",
|
|
43
|
+
helperText: "A hint shown under this field, like a format example. It's always visible, so keep it short.",
|
|
44
|
+
errorMessage: "The message shown when this field is invalid. Connect it to your context so it appears only when something's wrong. A message typed in this panel always shows."
|
|
19
45
|
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
disabled: "Disabled",
|
|
24
|
-
error: "Error",
|
|
25
|
-
selected: "Selected",
|
|
26
|
-
today: "Today"
|
|
46
|
+
cssCustomProperties: {
|
|
47
|
+
placeholderColor: "Placeholder color",
|
|
48
|
+
optionsGap: "Space between options"
|
|
27
49
|
},
|
|
28
50
|
elements: {
|
|
29
51
|
label: "Label",
|
|
52
|
+
input: "Input",
|
|
53
|
+
list: "List",
|
|
54
|
+
option: "Option",
|
|
30
55
|
helperText: "Helper text",
|
|
31
|
-
errorMessage: "Error message"
|
|
32
|
-
dateInput: "Date input",
|
|
33
|
-
calendarButton: "Calendar button",
|
|
34
|
-
popover: "Popover",
|
|
35
|
-
calendarHeader: "Calendar header",
|
|
36
|
-
weekdays: "Weekdays",
|
|
37
|
-
dates: "Dates"
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
const Descriptions = {
|
|
42
|
-
root: {
|
|
43
|
-
data: {
|
|
44
|
-
value: "This field's current value. Connect it to your context to save the data your visitors provide. A value typed in this panel stays fixed.",
|
|
45
|
-
helperText: "A hint shown under this field, like a format example. It's always visible, so keep it short.",
|
|
46
|
-
errorMessage: "The message shown when this field is invalid. Connect it to your context so it appears only when something's wrong. A message typed in this panel always shows.",
|
|
47
|
-
onKeyDown: "Fires before the date picker handles the key, also while the calendar is open. preventDefault() cancels that handling. Cancelling Escape or Tab can trap keyboard focus. Cancelling arrows, Page Up/Down, Home, End, Backspace, Delete or digits stops visitors editing the date by keyboard.",
|
|
48
|
-
onKeyUp: "Fires when a key is released, including while the calendar is open. It only reports the key: calling preventDefault() doesn't change how the date picker responds."
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
const defaultValues = {
|
|
53
|
-
label: "",
|
|
54
|
-
helperText: "",
|
|
55
|
-
readOnly: false,
|
|
56
|
-
disabled: false
|
|
57
|
-
};
|
|
58
|
-
const DesignStates = {
|
|
59
|
-
root: {
|
|
60
|
-
disabled: {
|
|
61
|
-
displayName: DisplayNames.root.designStates.disabled,
|
|
62
|
-
className: "datePicker--disabled"
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
dateInput: {
|
|
66
|
-
hover: {
|
|
67
|
-
displayName: DisplayNames.root.designStates.hover,
|
|
68
|
-
className: "datePicker__date-input--hover"
|
|
69
|
-
},
|
|
70
|
-
focus: {
|
|
71
|
-
displayName: DisplayNames.root.designStates.focus,
|
|
72
|
-
className: "datePicker__date-input--focus"
|
|
73
|
-
},
|
|
74
|
-
error: {
|
|
75
|
-
displayName: DisplayNames.root.designStates.error,
|
|
76
|
-
className: "datePicker__date-input--error"
|
|
77
|
-
},
|
|
78
|
-
disabled: {
|
|
79
|
-
displayName: DisplayNames.root.designStates.disabled,
|
|
80
|
-
className: "datePicker__date-input--disabled"
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
calendarButton: {
|
|
84
|
-
hover: {
|
|
85
|
-
displayName: DisplayNames.root.designStates.hover,
|
|
86
|
-
className: "datePicker__calendar-button--hover"
|
|
87
|
-
},
|
|
88
|
-
selected: {
|
|
89
|
-
displayName: DisplayNames.root.designStates.selected,
|
|
90
|
-
className: "datePicker__calendar-button--selected"
|
|
56
|
+
errorMessage: "Error message"
|
|
91
57
|
},
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
className: "datePicker__calendar-button--focus"
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
dates: {
|
|
98
|
-
hover: {
|
|
99
|
-
displayName: DisplayNames.root.designStates.hover,
|
|
100
|
-
className: "datePicker__date--hover"
|
|
101
|
-
},
|
|
102
|
-
selected: {
|
|
103
|
-
displayName: DisplayNames.root.designStates.selected,
|
|
104
|
-
className: "datePicker__date--selected"
|
|
105
|
-
},
|
|
106
|
-
today: {
|
|
107
|
-
displayName: DisplayNames.root.designStates.today,
|
|
108
|
-
className: "datePicker__date--today"
|
|
58
|
+
presets: {
|
|
59
|
+
baseCombobox: "Base Combobox"
|
|
109
60
|
},
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
className: "datePicker__date--focus"
|
|
61
|
+
displayGroups: {
|
|
62
|
+
optionsGroup: "Manage options"
|
|
113
63
|
}
|
|
114
64
|
}
|
|
115
65
|
};
|
|
116
|
-
const
|
|
117
|
-
|
|
118
|
-
|
|
66
|
+
const TestIds = {
|
|
67
|
+
root: "combobox-root",
|
|
68
|
+
label: "combobox-label",
|
|
69
|
+
input: "combobox-input",
|
|
70
|
+
list: "combobox-list",
|
|
71
|
+
helperText: "combobox-helper-text",
|
|
72
|
+
errorMessage: "combobox-error-message"
|
|
73
|
+
};
|
|
74
|
+
const editorElementClassNames = {
|
|
75
|
+
root: "combobox",
|
|
76
|
+
label: "combobox-label",
|
|
77
|
+
input: "combobox-input",
|
|
78
|
+
list: "combobox-list",
|
|
79
|
+
option: "combobox-option",
|
|
80
|
+
helperText: "combobox-helper-text",
|
|
81
|
+
errorMessage: "combobox-error-message"
|
|
119
82
|
};
|
|
120
|
-
const ARIA_LABEL_NAMESPACE = "ariaLabels";
|
|
121
83
|
const AriaLabels = {
|
|
122
84
|
root: {
|
|
123
|
-
legacyKey: "
|
|
124
|
-
default: "
|
|
125
|
-
},
|
|
126
|
-
openCalendar: {
|
|
127
|
-
legacyKey: "datePicker_open_calendar",
|
|
128
|
-
default: "Open calendar"
|
|
85
|
+
legacyKey: "Dropdown_AriaLabel",
|
|
86
|
+
default: "Dropdown"
|
|
129
87
|
}
|
|
130
88
|
};
|
|
131
|
-
const TestIds = {
|
|
132
|
-
root: "datepicker-root",
|
|
133
|
-
group: "datepicker-group",
|
|
134
|
-
field: "datepicker-field",
|
|
135
|
-
calendarButton: "datepicker-calendar-button",
|
|
136
|
-
calendar: "datepicker-calendar",
|
|
137
|
-
helperText: "datepicker-helper-text",
|
|
138
|
-
errorMessage: "datepicker-error-message"
|
|
139
|
-
};
|
|
140
|
-
const selectors = {
|
|
141
|
-
root: "datePicker",
|
|
142
|
-
label: "datePicker__label",
|
|
143
|
-
helperText: "datePicker__helper-text",
|
|
144
|
-
dateInput: "datePicker__date-input",
|
|
145
|
-
segment: "datePicker__segment",
|
|
146
|
-
calendarButton: "datePicker__calendar-button",
|
|
147
|
-
popover: "datePicker__popover",
|
|
148
|
-
calendarHeader: "datePicker__calendar-header",
|
|
149
|
-
navButton: "datePicker__nav-button",
|
|
150
|
-
weekday: "datePicker__weekday",
|
|
151
|
-
date: "datePicker__date",
|
|
152
|
-
errorMessage: "datePicker__error-message"
|
|
153
|
-
};
|
|
154
89
|
export {
|
|
155
|
-
|
|
90
|
+
AriaLabels as A,
|
|
156
91
|
COMPONENT_TYPE as C,
|
|
157
92
|
DesignStates as D,
|
|
158
93
|
FunctionalStateKeys as F,
|
|
159
94
|
TestIds as T,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
Descriptions as c,
|
|
163
|
-
defaultValues as d,
|
|
164
|
-
selectors as s
|
|
95
|
+
DisplayNames as a,
|
|
96
|
+
editorElementClassNames as e
|
|
165
97
|
};
|
|
@@ -10,7 +10,7 @@ import manifest$W from "./Checkbox/manifest.js";
|
|
|
10
10
|
import manifest$V from "./CheckboxGroup/manifest.js";
|
|
11
11
|
import manifest$U from "./CollapsibleText/manifest.js";
|
|
12
12
|
import manifest$T from "./DatePicker/manifest.js";
|
|
13
|
-
import manifest$S from "./
|
|
13
|
+
import manifest$S from "./Combobox/manifest.js";
|
|
14
14
|
import manifest$R from "./GoogleMap/manifest.js";
|
|
15
15
|
import manifest$Q from "./HipaaIcon/manifest.js";
|
|
16
16
|
import { H as HIPAA_SETTINGS_PANEL_ID } from "./chunks/constants33.js";
|
|
@@ -59,7 +59,7 @@ import manifest$a from "./TextEffectsRetro/manifest.js";
|
|
|
59
59
|
import manifest$9 from "./TextEffectsShook/manifest.js";
|
|
60
60
|
import manifest$8 from "./TextEffectsSticker/manifest.js";
|
|
61
61
|
import manifest$7 from "./TextEffectsStriped/manifest.js";
|
|
62
|
-
import manifest$6 from "./
|
|
62
|
+
import manifest$6 from "./TextField/manifest.js";
|
|
63
63
|
import manifest$5 from "./TextMarquee/manifest.js";
|
|
64
64
|
import manifest$4 from "./TimePicker/manifest.js";
|
|
65
65
|
import manifest$3 from "./TransparentVideo/manifest.js";
|
|
@@ -450,7 +450,7 @@ const componentManifests = {
|
|
|
450
450
|
CheckboxGroup: manifest$V,
|
|
451
451
|
CollapsibleText: manifest$U,
|
|
452
452
|
DatePicker: manifest$T,
|
|
453
|
-
|
|
453
|
+
Combobox: manifest$S,
|
|
454
454
|
GoogleMap: manifest$R,
|
|
455
455
|
HipaaIcon: manifest$Q,
|
|
456
456
|
HeadingTextBlock: manifest$P,
|
|
@@ -498,7 +498,7 @@ const componentManifests = {
|
|
|
498
498
|
TextEffectsShook: manifest$9,
|
|
499
499
|
TextEffectsSticker: manifest$8,
|
|
500
500
|
TextEffectsStriped: manifest$7,
|
|
501
|
-
|
|
501
|
+
TextField: manifest$6,
|
|
502
502
|
TextMarquee: manifest$5,
|
|
503
503
|
TimePicker: manifest$4,
|
|
504
504
|
TransparentVideo: manifest$3,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/editor-react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2886.0",
|
|
4
4
|
"description": "React components for the Wix Editor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -228,5 +228,5 @@
|
|
|
228
228
|
"registry": "https://registry.npmjs.org/",
|
|
229
229
|
"access": "public"
|
|
230
230
|
},
|
|
231
|
-
"falconPackageHash": "
|
|
231
|
+
"falconPackageHash": "a9fc780e5d939a0277229d2a43b22cf34207e9d2203fe9ceec00cc50"
|
|
232
232
|
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { DropdownProps } from './Dropdown.types';
|
|
3
|
-
export default function Dropdown({ className, direction, disabled, elementProps, errorMessage, helperText, id, label, onValueChange, options, placeholder, previewError, previewList, readOnly, value, wix, ...rest }: DropdownProps): React.JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './TextInput';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './TextInput';
|
|
File without changes
|
|
File without changes
|