@wix/editor-react-components 1.2331.0 → 1.2333.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.
@@ -2,8 +2,48 @@ const DesignStates = {
2
2
  root: {
3
3
  hover: { displayName: "Hover", className: "dropdown--hover" },
4
4
  disabled: { displayName: "Disabled", className: "dropdown--disabled" }
5
+ },
6
+ input: {
7
+ hover: { displayName: "Hover", className: "dropdown__input--hover" },
8
+ focus: { displayName: "Focus", className: "dropdown__input--focus" },
9
+ disabled: {
10
+ displayName: "Disabled",
11
+ className: "dropdown__input--disabled"
12
+ }
13
+ },
14
+ trigger: {
15
+ hover: { displayName: "Hover", className: "dropdown__trigger--hover" },
16
+ selected: {
17
+ displayName: "Selected",
18
+ className: "dropdown__trigger--selected"
19
+ }
20
+ },
21
+ clearButton: {
22
+ hover: { displayName: "Hover", className: "dropdown__clear--hover" },
23
+ selected: {
24
+ displayName: "Selected",
25
+ className: "dropdown__clear--selected"
26
+ }
27
+ },
28
+ option: {
29
+ hover: { displayName: "Hover", className: "dropdown__option--hover" },
30
+ selected: {
31
+ displayName: "Selected",
32
+ className: "dropdown__option--selected"
33
+ }
34
+ },
35
+ chip: {
36
+ hover: { displayName: "Hover", className: "dropdown__chip--hover" },
37
+ selected: {
38
+ displayName: "Selected",
39
+ className: "dropdown__chip--selected"
40
+ }
5
41
  }
6
42
  };
43
+ const FunctionalStateKeys = {
44
+ previewList: "previewList",
45
+ previewChips: "previewChips"
46
+ };
7
47
  const DisplayNames = {
8
48
  root: {
9
49
  elementDisplayName: "Dropdown",
@@ -50,6 +90,7 @@ const DisplayNames = {
50
90
  paddingInlineStart: "Padding start",
51
91
  paddingInlineEnd: "Padding end",
52
92
  gap: "Spacing",
93
+ boxShadow: "Shadow",
53
94
  textAlign: "Value alignment",
54
95
  font: "Value font",
55
96
  textColor: "Value color",
@@ -58,7 +99,19 @@ const DisplayNames = {
58
99
  helperFont: "Helper text font",
59
100
  helperColor: "Helper text color",
60
101
  optionTextColor: "Option text color",
61
- optionHoverBackgroundColor: "Option hover background"
102
+ optionHoverBackgroundColor: "Option hover background",
103
+ placeholderColor: "Placeholder color",
104
+ chipBackgroundColor: "Chip background",
105
+ chipTextColor: "Chip text color"
106
+ },
107
+ elements: {
108
+ label: "Label",
109
+ input: "Input",
110
+ trigger: "Button",
111
+ clearButton: "Clear button",
112
+ list: "List",
113
+ option: "Option",
114
+ chip: "Chip"
62
115
  },
63
116
  displayGroups: {
64
117
  optionsGroup: "Manage options",
@@ -81,7 +134,7 @@ const defaultValues = {
81
134
  openOnInputClick: true,
82
135
  inline: false,
83
136
  grid: false,
84
- columns: 3,
137
+ columns: 2,
85
138
  limit: -1,
86
139
  label: "",
87
140
  required: false,
@@ -108,13 +161,25 @@ const TestIds = {
108
161
  description: "dropdown-description"
109
162
  };
110
163
  const selectors = {
111
- root: "dropdown"
164
+ root: "dropdown",
165
+ label: "dropdown-label",
166
+ input: "dropdown-input",
167
+ trigger: "dropdown-trigger",
168
+ clear: "dropdown-clear",
169
+ list: "dropdown-list",
170
+ option: "dropdown-option",
171
+ chip: "dropdown-chip"
112
172
  };
113
173
  const semanticClassNames = {
114
174
  root: "dropdown",
175
+ label: "dropdown__label",
176
+ input: "dropdown__input",
115
177
  trigger: "dropdown__trigger",
178
+ clear: "dropdown__clear",
116
179
  listbox: "dropdown__listbox",
117
180
  option: "dropdown__option",
181
+ chips: "dropdown__chips",
182
+ chip: "dropdown__chip",
118
183
  applyButton: "dropdown__apply-button"
119
184
  };
120
185
  const ARIA_LABEL_NAMESPACE = "ariaLabels";
@@ -126,12 +191,13 @@ const AriaLabels = {
126
191
  export {
127
192
  ALL_VALUE as A,
128
193
  DesignStates as D,
194
+ FunctionalStateKeys as F,
129
195
  TestIds as T,
130
- TriggerModeValues as a,
131
- ARIA_LABEL_NAMESPACE as b,
132
- AriaLabels as c,
196
+ semanticClassNames as a,
197
+ TriggerModeValues as b,
198
+ ARIA_LABEL_NAMESPACE as c,
133
199
  defaultValues as d,
134
- selectors as e,
200
+ AriaLabels as e,
135
201
  DisplayNames as f,
136
- semanticClassNames as s
202
+ selectors as s
137
203
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/editor-react-components",
3
- "version": "1.2331.0",
3
+ "version": "1.2333.0",
4
4
  "description": "React components for the Wix Editor",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -197,5 +197,5 @@
197
197
  "registry": "https://registry.npmjs.org/",
198
198
  "access": "public"
199
199
  },
200
- "falconPackageHash": "0ef5c3b2c1ac1901e7ede2173d234179137ed99a153f1de30a8fca80"
200
+ "falconPackageHash": "2b724ee42a146631e4fd128be150e523cacc495a9d4106acd0220cb3"
201
201
  }