@wix/editor-react-components 1.2326.0 → 1.2328.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/AccordionComponent/component.js +1 -1
- package/dist/site/components/AccordionComponent/manifest.js +1 -1
- package/dist/site/components/AudioPlayer/component.js +1 -1
- package/dist/site/components/AudioPlayer/manifest.js +1 -1
- package/dist/site/components/Breadcrumbs/component.js +1 -1
- package/dist/site/components/Breadcrumbs/manifest.js +1 -1
- package/dist/site/components/CheckboxGroup/CheckboxGroup.d.ts +3 -0
- package/dist/site/components/CheckboxGroup/CheckboxGroup.types.d.ts +24 -0
- package/dist/site/components/CheckboxGroup/component.d.ts +2 -0
- package/dist/site/components/CheckboxGroup/component.js +269 -0
- package/dist/site/components/CheckboxGroup/component.preview.d.ts +4 -0
- package/dist/site/components/CheckboxGroup/constants.d.ts +112 -0
- package/dist/site/components/CheckboxGroup/css.css +212 -0
- package/dist/site/components/CheckboxGroup/index.d.ts +2 -0
- package/dist/site/components/CheckboxGroup/index.js +6 -0
- package/dist/site/components/CheckboxGroup/manifest.d.ts +5 -0
- package/dist/site/components/CheckboxGroup/manifest.js +297 -0
- package/dist/site/components/chunks/constants35.js +98 -68
- package/dist/site/components/chunks/constants36.js +73 -77
- package/dist/site/components/chunks/constants37.js +76 -57
- package/dist/site/components/chunks/constants38.js +72 -0
- package/dist/site/components/chunks/index10.js +27 -6
- package/dist/site/components/extensions.js +56 -51
- package/package.json +2 -2
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
import { E as ELEMENTS, b as DISPLAY_GROUPS, C as CSS_PROPERTIES, N as NativeStateType, D as DATA, a as ACTIONS, L as LAYOUT, A as Archetype } from "../chunks/chunk-JPMZBG44.js";
|
|
2
|
+
import { D as DesignStates, c as DisplayNames, d as defaultValues, s as selectors } from "../chunks/constants35.js";
|
|
3
|
+
import { w as withSpec, g as getSelector } from "../chunks/manifest.js";
|
|
4
|
+
import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
|
|
5
|
+
import { m as manifestFocusable, a as manifestChangeable } from "../chunks/manifestSdkMixins.js";
|
|
6
|
+
const manifest = {
|
|
7
|
+
id: "aa224b85-e2af-462b-9a15-5de3a753bea8",
|
|
8
|
+
type: "wixEditorElements.CheckboxGroup__DEV__v3",
|
|
9
|
+
description: 'A group of checkboxes where visitors can select several options at once. Options can be set in the editor or fed by a connected data source, and the checked set can be bound to a multi-value field. Turn on "select all" to add a parent checkbox that toggles every option.',
|
|
10
|
+
installation: {
|
|
11
|
+
initialSize: {
|
|
12
|
+
width: {
|
|
13
|
+
sizingType: LAYOUT.SIZING_TYPE.pixels,
|
|
14
|
+
pixels: 240
|
|
15
|
+
},
|
|
16
|
+
height: {
|
|
17
|
+
sizingType: LAYOUT.SIZING_TYPE.content
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
editorElement: {
|
|
22
|
+
selector: getSelector(selectors.root),
|
|
23
|
+
displayName: DisplayNames.root.elementDisplayName,
|
|
24
|
+
archetype: Archetype.Checkbox,
|
|
25
|
+
layout: {
|
|
26
|
+
resizeDirection: LAYOUT.RESIZE_DIRECTION.horizontalAndVertical,
|
|
27
|
+
contentResizeDirection: LAYOUT.CONTENT_RESIZE_DIRECTION.horizontalAndVertical,
|
|
28
|
+
disableStretching: true,
|
|
29
|
+
disablePositioning: false
|
|
30
|
+
},
|
|
31
|
+
actions: {
|
|
32
|
+
manageItems: {
|
|
33
|
+
displayName: DisplayNames.root.data.options,
|
|
34
|
+
execution: {
|
|
35
|
+
actionType: ACTIONS.ACTION_TYPE.data,
|
|
36
|
+
data: {
|
|
37
|
+
dataItemKey: "options"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
data: {
|
|
43
|
+
options: {
|
|
44
|
+
dataType: DATA.DATA_TYPE.arrayItems,
|
|
45
|
+
displayName: DisplayNames.root.data.options,
|
|
46
|
+
[DATA.DATA_TYPE.arrayItems]: {
|
|
47
|
+
data: {
|
|
48
|
+
items: {
|
|
49
|
+
label: {
|
|
50
|
+
dataType: DATA.DATA_TYPE.text,
|
|
51
|
+
displayName: DisplayNames.root.data.optionLabel
|
|
52
|
+
},
|
|
53
|
+
value: {
|
|
54
|
+
dataType: DATA.DATA_TYPE.text,
|
|
55
|
+
displayName: DisplayNames.root.data.optionValue
|
|
56
|
+
},
|
|
57
|
+
checked: {
|
|
58
|
+
dataType: DATA.DATA_TYPE.booleanValue,
|
|
59
|
+
displayName: DisplayNames.root.data.optionChecked,
|
|
60
|
+
defaultValue: false
|
|
61
|
+
},
|
|
62
|
+
disabled: {
|
|
63
|
+
dataType: DATA.DATA_TYPE.booleanValue,
|
|
64
|
+
displayName: DisplayNames.root.data.optionDisabled,
|
|
65
|
+
defaultValue: false
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
value: {
|
|
72
|
+
dataType: DATA.DATA_TYPE.arrayItems,
|
|
73
|
+
displayName: DisplayNames.root.data.value,
|
|
74
|
+
[DATA.DATA_TYPE.arrayItems]: {
|
|
75
|
+
dataItem: {
|
|
76
|
+
dataType: DATA.DATA_TYPE.text,
|
|
77
|
+
displayName: DisplayNames.root.data.optionValue
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
label: {
|
|
82
|
+
dataType: DATA.DATA_TYPE.text,
|
|
83
|
+
displayName: DisplayNames.root.data.label,
|
|
84
|
+
defaultValue: defaultValues.label
|
|
85
|
+
},
|
|
86
|
+
tooltip: {
|
|
87
|
+
dataType: DATA.DATA_TYPE.text,
|
|
88
|
+
displayName: DisplayNames.root.data.tooltip,
|
|
89
|
+
defaultValue: defaultValues.tooltip
|
|
90
|
+
},
|
|
91
|
+
displayLabel: {
|
|
92
|
+
dataType: DATA.DATA_TYPE.booleanValue,
|
|
93
|
+
displayName: DisplayNames.root.data.displayLabel,
|
|
94
|
+
defaultValue: defaultValues.displayLabel
|
|
95
|
+
},
|
|
96
|
+
selectAll: {
|
|
97
|
+
dataType: DATA.DATA_TYPE.booleanValue,
|
|
98
|
+
displayName: DisplayNames.root.data.selectAll,
|
|
99
|
+
defaultValue: defaultValues.selectAll
|
|
100
|
+
},
|
|
101
|
+
selectAllLabel: {
|
|
102
|
+
dataType: DATA.DATA_TYPE.text,
|
|
103
|
+
displayName: DisplayNames.root.data.selectAllLabel,
|
|
104
|
+
defaultValue: defaultValues.selectAllLabel
|
|
105
|
+
},
|
|
106
|
+
required: {
|
|
107
|
+
dataType: DATA.DATA_TYPE.booleanValue,
|
|
108
|
+
displayName: DisplayNames.root.data.required,
|
|
109
|
+
defaultValue: defaultValues.required
|
|
110
|
+
},
|
|
111
|
+
readOnly: {
|
|
112
|
+
dataType: DATA.DATA_TYPE.booleanValue,
|
|
113
|
+
displayName: DisplayNames.root.data.readOnly,
|
|
114
|
+
defaultValue: defaultValues.readOnly
|
|
115
|
+
},
|
|
116
|
+
disabled: {
|
|
117
|
+
dataType: DATA.DATA_TYPE.booleanValue,
|
|
118
|
+
displayName: DisplayNames.root.data.disabled,
|
|
119
|
+
defaultValue: defaultValues.disabled
|
|
120
|
+
},
|
|
121
|
+
a11y: {
|
|
122
|
+
dataType: DATA.DATA_TYPE.a11y,
|
|
123
|
+
[DATA.DATA_TYPE.a11y]: {
|
|
124
|
+
attributes: [DATA.A11Y_ATTRIBUTES.ariaLabel]
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
direction: {
|
|
128
|
+
dataType: DATA.DATA_TYPE.direction
|
|
129
|
+
},
|
|
130
|
+
...manifestChangeable(),
|
|
131
|
+
...manifestFocusable()
|
|
132
|
+
},
|
|
133
|
+
displayGroups: {
|
|
134
|
+
optionsGroup: {
|
|
135
|
+
displayName: DisplayNames.root.data.options,
|
|
136
|
+
groupType: DISPLAY_GROUPS.GROUP_TYPE.listItem,
|
|
137
|
+
listItem: {
|
|
138
|
+
arrayItems: "options",
|
|
139
|
+
label: "label"
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
cssCustomProperties: {
|
|
144
|
+
checkboxesSpacing: {
|
|
145
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.rowGap,
|
|
146
|
+
displayName: DisplayNames.root.cssCustomProperties.checkboxesSpacing,
|
|
147
|
+
defaultValue: "6px"
|
|
148
|
+
},
|
|
149
|
+
labelSpacing: {
|
|
150
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.rowGap,
|
|
151
|
+
displayName: DisplayNames.root.cssCustomProperties.labelSpacing,
|
|
152
|
+
defaultValue: "16px"
|
|
153
|
+
},
|
|
154
|
+
checkboxTextSpacing: {
|
|
155
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.columnGap,
|
|
156
|
+
displayName: DisplayNames.root.cssCustomProperties.checkboxTextSpacing,
|
|
157
|
+
defaultValue: "13px"
|
|
158
|
+
},
|
|
159
|
+
alignment: {
|
|
160
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.justifyContent,
|
|
161
|
+
displayName: DisplayNames.root.cssCustomProperties.alignment
|
|
162
|
+
},
|
|
163
|
+
labelAlignment: {
|
|
164
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.justifyContent,
|
|
165
|
+
displayName: DisplayNames.root.cssCustomProperties.labelAlignment
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
elements: {
|
|
169
|
+
indicator: {
|
|
170
|
+
elementType: ELEMENTS.ELEMENT_TYPE.inlineElement,
|
|
171
|
+
inlineElement: {
|
|
172
|
+
displayName: DisplayNames.indicator.elementDisplayName,
|
|
173
|
+
selector: getSelector(selectors.indicator),
|
|
174
|
+
behaviors: {
|
|
175
|
+
selectable: false,
|
|
176
|
+
removable: false
|
|
177
|
+
},
|
|
178
|
+
states: {
|
|
179
|
+
hover: withSpec({
|
|
180
|
+
spec: IS_SUPPORT_DESIGN_STATE_SPEC,
|
|
181
|
+
displayName: DesignStates.indicator.hover.displayName,
|
|
182
|
+
className: DesignStates.indicator.hover.className,
|
|
183
|
+
pseudoClass: NativeStateType.hover
|
|
184
|
+
}),
|
|
185
|
+
focus: withSpec({
|
|
186
|
+
spec: IS_SUPPORT_DESIGN_STATE_SPEC,
|
|
187
|
+
displayName: DesignStates.indicator.focus.displayName,
|
|
188
|
+
className: DesignStates.indicator.focus.className,
|
|
189
|
+
pseudoClass: NativeStateType.focus
|
|
190
|
+
}),
|
|
191
|
+
disabled: withSpec({
|
|
192
|
+
spec: IS_SUPPORT_DESIGN_STATE_SPEC,
|
|
193
|
+
displayName: DesignStates.indicator.disabled.displayName,
|
|
194
|
+
className: DesignStates.indicator.disabled.className,
|
|
195
|
+
pseudoClass: NativeStateType.disabled,
|
|
196
|
+
props: { disabled: true }
|
|
197
|
+
}),
|
|
198
|
+
invalid: withSpec({
|
|
199
|
+
spec: IS_SUPPORT_DESIGN_STATE_SPEC,
|
|
200
|
+
displayName: DesignStates.indicator.invalid.displayName,
|
|
201
|
+
className: DesignStates.indicator.invalid.className,
|
|
202
|
+
pseudoClass: NativeStateType.invalid
|
|
203
|
+
})
|
|
204
|
+
},
|
|
205
|
+
cssProperties: {
|
|
206
|
+
borderRadius: {
|
|
207
|
+
defaultValue: "2px"
|
|
208
|
+
},
|
|
209
|
+
boxShadow: {}
|
|
210
|
+
},
|
|
211
|
+
cssCustomProperties: {
|
|
212
|
+
backgroundColor: {
|
|
213
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.backgroundColor,
|
|
214
|
+
displayName: DisplayNames.indicator.cssCustomProperties.backgroundColor
|
|
215
|
+
},
|
|
216
|
+
borderColor: {
|
|
217
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.borderColor,
|
|
218
|
+
displayName: DisplayNames.indicator.cssCustomProperties.borderColor
|
|
219
|
+
},
|
|
220
|
+
borderWidth: {
|
|
221
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.borderWidth,
|
|
222
|
+
displayName: DisplayNames.indicator.cssCustomProperties.borderWidth,
|
|
223
|
+
defaultValue: "1px"
|
|
224
|
+
},
|
|
225
|
+
checkmarkColor: {
|
|
226
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.fill,
|
|
227
|
+
displayName: DisplayNames.indicator.cssCustomProperties.checkMarkColor
|
|
228
|
+
},
|
|
229
|
+
checkboxSize: {
|
|
230
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.width,
|
|
231
|
+
displayName: DisplayNames.indicator.cssCustomProperties.size,
|
|
232
|
+
defaultValue: "16px"
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
displayGroups: {
|
|
236
|
+
borderGroup: {
|
|
237
|
+
displayName: DisplayNames.indicator.displayGroups.borderGroup,
|
|
238
|
+
groupType: DISPLAY_GROUPS.GROUP_TYPE.border,
|
|
239
|
+
border: {
|
|
240
|
+
color: "borderColor",
|
|
241
|
+
width: "borderWidth"
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
optionLabel: {
|
|
248
|
+
elementType: ELEMENTS.ELEMENT_TYPE.inlineElement,
|
|
249
|
+
inlineElement: {
|
|
250
|
+
displayName: DisplayNames.optionLabel.elementDisplayName,
|
|
251
|
+
selector: getSelector(selectors.label),
|
|
252
|
+
behaviors: {
|
|
253
|
+
selectable: false,
|
|
254
|
+
removable: false
|
|
255
|
+
},
|
|
256
|
+
cssProperties: {
|
|
257
|
+
color: {},
|
|
258
|
+
font: {}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
groupLabel: {
|
|
263
|
+
elementType: ELEMENTS.ELEMENT_TYPE.inlineElement,
|
|
264
|
+
inlineElement: {
|
|
265
|
+
displayName: DisplayNames.groupLabel.elementDisplayName,
|
|
266
|
+
selector: getSelector(selectors.groupLabel),
|
|
267
|
+
behaviors: {
|
|
268
|
+
selectable: false,
|
|
269
|
+
removable: false
|
|
270
|
+
},
|
|
271
|
+
cssProperties: {
|
|
272
|
+
color: {},
|
|
273
|
+
font: {}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
resources: {
|
|
280
|
+
client: {
|
|
281
|
+
componentUrl: "./site/components/CheckboxGroup/component.tsx",
|
|
282
|
+
dependencies: {
|
|
283
|
+
serviceDependencies: ["@wix/viewer-service-environment"]
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
editor: {
|
|
287
|
+
componentUrl: "./site/components/CheckboxGroup/component.preview.tsx"
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
moduleConfiguration: {
|
|
291
|
+
package: { name: "@wix/editor-react-components", version: "^1.0.0" },
|
|
292
|
+
component: { path: "site/components/CheckboxGroup" }
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
export {
|
|
296
|
+
manifest as default
|
|
297
|
+
};
|
|
@@ -1,87 +1,117 @@
|
|
|
1
|
-
const semanticClassNames = {
|
|
2
|
-
root: "breadcrumbs",
|
|
3
|
-
itemLabel: "breadcrumbs-item-label",
|
|
4
|
-
separator: "breadcrumbs-separator",
|
|
5
|
-
animatedHomeIcon: "animated-icon"
|
|
6
|
-
};
|
|
7
1
|
const DisplayNames = {
|
|
8
2
|
root: {
|
|
9
|
-
elementDisplayName: "
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
elementDisplayName: "Checkbox Group",
|
|
4
|
+
data: {
|
|
5
|
+
options: "Options",
|
|
6
|
+
optionLabel: "Label",
|
|
7
|
+
optionValue: "Value",
|
|
8
|
+
optionChecked: "Checked by default",
|
|
9
|
+
optionDisabled: "Disabled",
|
|
10
|
+
value: "Selected values",
|
|
11
|
+
label: "Label",
|
|
12
|
+
tooltip: "Tooltip",
|
|
13
|
+
displayLabel: "Show label",
|
|
14
|
+
required: "Required",
|
|
15
|
+
readOnly: "Read only",
|
|
16
|
+
disabled: "Disabled",
|
|
17
|
+
selectAll: "Select all",
|
|
18
|
+
selectAllLabel: "Select all label"
|
|
19
|
+
},
|
|
20
|
+
cssCustomProperties: {
|
|
21
|
+
checkboxesSpacing: "Space between checkboxes",
|
|
22
|
+
labelSpacing: "Space between field and field title",
|
|
23
|
+
checkboxTextSpacing: "Space between checkbox and text",
|
|
24
|
+
alignment: "Alignment",
|
|
25
|
+
labelAlignment: "Label alignment"
|
|
12
26
|
}
|
|
13
27
|
},
|
|
14
|
-
|
|
15
|
-
elementDisplayName: "
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
28
|
+
indicator: {
|
|
29
|
+
elementDisplayName: "Indicator",
|
|
30
|
+
cssCustomProperties: {
|
|
31
|
+
backgroundColor: "Background color",
|
|
32
|
+
borderColor: "Border color",
|
|
33
|
+
borderWidth: "Border width",
|
|
34
|
+
checkMarkColor: "Checkmark color",
|
|
35
|
+
size: "Checkbox size"
|
|
36
|
+
},
|
|
37
|
+
displayGroups: {
|
|
38
|
+
borderGroup: "Border"
|
|
39
|
+
}
|
|
19
40
|
},
|
|
20
|
-
|
|
21
|
-
elementDisplayName: "
|
|
41
|
+
optionLabel: {
|
|
42
|
+
elementDisplayName: "Option label"
|
|
22
43
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
displayHomepageAs: "Display homepage as",
|
|
26
|
-
horizontalSpacing: "Space between items",
|
|
27
|
-
verticalSpacing: "Space between rows",
|
|
28
|
-
alignment: "Alignment",
|
|
29
|
-
separatorOptions: {
|
|
30
|
-
slash: "Forward slash",
|
|
31
|
-
arrow: "Arrow"
|
|
32
|
-
},
|
|
33
|
-
homepageModeOptions: {
|
|
34
|
-
text: "Text",
|
|
35
|
-
icon: "Icon"
|
|
36
|
-
},
|
|
37
|
-
defaultState: "Default state",
|
|
38
|
-
defaultStateOptions: {
|
|
39
|
-
fullTrail: "Full trail",
|
|
40
|
-
hideHomepage: "Hide homepage",
|
|
41
|
-
hideCurrentPage: "Hide current page"
|
|
42
|
-
},
|
|
43
|
-
overflowItems: "Overflow items",
|
|
44
|
-
overflowItemsOptions: {
|
|
45
|
-
wrap: "Wrap",
|
|
46
|
-
collapse: "Collapse (with ellipses)"
|
|
47
|
-
},
|
|
48
|
-
beforeEllipsis: "Items before ellipses",
|
|
49
|
-
afterEllipsis: "Items after ellipses"
|
|
44
|
+
groupLabel: {
|
|
45
|
+
elementDisplayName: "Group label"
|
|
50
46
|
}
|
|
51
47
|
};
|
|
52
48
|
const DesignStates = {
|
|
53
|
-
|
|
54
|
-
hover: {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
49
|
+
indicator: {
|
|
50
|
+
hover: {
|
|
51
|
+
displayName: "Hover",
|
|
52
|
+
className: "checkbox-group__indicator--hover"
|
|
53
|
+
},
|
|
54
|
+
focus: {
|
|
55
|
+
displayName: "Focus",
|
|
56
|
+
className: "checkbox-group__indicator--focus"
|
|
57
|
+
},
|
|
58
|
+
disabled: {
|
|
59
|
+
displayName: "Disabled",
|
|
60
|
+
className: "checkbox-group__indicator--disabled"
|
|
61
|
+
},
|
|
62
|
+
invalid: {
|
|
63
|
+
displayName: "Invalid",
|
|
64
|
+
className: "checkbox-group__indicator--invalid"
|
|
58
65
|
}
|
|
59
66
|
}
|
|
60
67
|
};
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
68
|
+
const defaultOptions = [
|
|
69
|
+
{ value: "option-1", label: "Option 1", checked: false, disabled: false },
|
|
70
|
+
{ value: "option-2", label: "Option 2", checked: false, disabled: false },
|
|
71
|
+
{ value: "option-3", label: "Option 3", checked: false, disabled: false }
|
|
72
|
+
];
|
|
73
|
+
const defaultValues = {
|
|
74
|
+
label: "Label",
|
|
75
|
+
tooltip: "",
|
|
76
|
+
displayLabel: true,
|
|
77
|
+
selectAllLabel: "Select all",
|
|
78
|
+
required: false,
|
|
79
|
+
readOnly: false,
|
|
80
|
+
disabled: false,
|
|
81
|
+
selectAll: false
|
|
65
82
|
};
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
|
|
83
|
+
const TestIds = {
|
|
84
|
+
root: "checkbox-group-root",
|
|
85
|
+
group: "checkbox-group-group",
|
|
86
|
+
legend: "checkbox-group-legend",
|
|
87
|
+
requiredIndicator: "checkbox-group-required-indicator",
|
|
88
|
+
selectAll: "checkbox-group-select-all",
|
|
89
|
+
option: "checkbox-group-option",
|
|
90
|
+
control: "checkbox-group-control",
|
|
91
|
+
indicator: "checkbox-group-indicator",
|
|
92
|
+
optionLabel: "checkbox-group-option-label",
|
|
93
|
+
tooltipButton: "checkbox-group-tooltip-button"
|
|
69
94
|
};
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
|
|
95
|
+
const selectors = {
|
|
96
|
+
root: "checkbox-group",
|
|
97
|
+
indicator: "checkbox-group__indicator",
|
|
98
|
+
label: "checkbox-group__label",
|
|
99
|
+
groupLabel: "checkbox-group__group-label"
|
|
73
100
|
};
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
101
|
+
const semanticClassNames = {
|
|
102
|
+
groupLabel: "checkbox-group__group-label",
|
|
103
|
+
option: "checkbox-group__option",
|
|
104
|
+
control: "checkbox-group__control",
|
|
105
|
+
indicator: "checkbox-group__indicator",
|
|
106
|
+
label: "checkbox-group__label",
|
|
107
|
+
requiredIndicator: "checkbox-group__required-indicator"
|
|
78
108
|
};
|
|
79
109
|
export {
|
|
80
110
|
DesignStates as D,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
111
|
+
TestIds as T,
|
|
112
|
+
defaultOptions as a,
|
|
113
|
+
semanticClassNames as b,
|
|
114
|
+
DisplayNames as c,
|
|
115
|
+
defaultValues as d,
|
|
116
|
+
selectors as s
|
|
87
117
|
};
|
|
@@ -1,91 +1,87 @@
|
|
|
1
|
-
const
|
|
2
|
-
root: "
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
progressBar: "progressBar",
|
|
7
|
-
progressTrack: "progressTrack",
|
|
8
|
-
volumeControls: "volumeControls",
|
|
9
|
-
muteButton: "muteButton",
|
|
10
|
-
volumeSlider: "volumeSlider",
|
|
11
|
-
volumeTrack: "volumeTrack",
|
|
12
|
-
timeDisplay: "timeDisplay",
|
|
13
|
-
audioTitle: "audioTitle",
|
|
14
|
-
title: "title",
|
|
15
|
-
artistName: "artistName",
|
|
16
|
-
coverMedia: "coverMedia"
|
|
17
|
-
};
|
|
18
|
-
const dataDefaults = {
|
|
19
|
-
loop: false,
|
|
20
|
-
volume: 100
|
|
21
|
-
};
|
|
22
|
-
const borderDefaultValue = "0px none rgba(0, 0, 0, 1)";
|
|
23
|
-
const ARIA_LABELS = {
|
|
24
|
-
playButton: "Play",
|
|
25
|
-
pauseButton: "Pause",
|
|
26
|
-
muteButton: "Mute",
|
|
27
|
-
unmuteButton: "Unmute",
|
|
28
|
-
progressBar: "Seek",
|
|
29
|
-
volumeSlider: "Volume",
|
|
30
|
-
volumeControls: "Volume controls"
|
|
31
|
-
};
|
|
32
|
-
const DesignStates = {
|
|
33
|
-
controls: {
|
|
34
|
-
hover: {
|
|
35
|
-
displayName: "Hover",
|
|
36
|
-
className: "audio-player__controls--hover"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
1
|
+
const semanticClassNames = {
|
|
2
|
+
root: "breadcrumbs",
|
|
3
|
+
itemLabel: "breadcrumbs-item-label",
|
|
4
|
+
separator: "breadcrumbs-separator",
|
|
5
|
+
animatedHomeIcon: "animated-icon"
|
|
39
6
|
};
|
|
40
7
|
const DisplayNames = {
|
|
41
8
|
root: {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
},
|
|
46
|
-
cssCustomProperties: {
|
|
47
|
-
"content-horizontal-alignment": "Alignment",
|
|
48
|
-
"vertical-spacing": "Vertical spacing",
|
|
49
|
-
"audio-title-gap": "Space between track details"
|
|
9
|
+
elementDisplayName: "Breadcrumbs",
|
|
10
|
+
customActions: {
|
|
11
|
+
replaceHomeIcon: "Customize Icon"
|
|
50
12
|
}
|
|
51
13
|
},
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
cssCustomProperties: {
|
|
55
|
-
"progress-fill-color": "Progress bar color",
|
|
56
|
-
"volume-control-color": "Volume control color",
|
|
57
|
-
"time-display-color": "Time display",
|
|
58
|
-
"play-icon-color": "Play icon color",
|
|
59
|
-
"play-icon-size": "Play icon size"
|
|
60
|
-
},
|
|
61
|
-
displayGroups: {
|
|
62
|
-
fillColors: "Fill colors",
|
|
63
|
-
icon: "Icon"
|
|
64
|
-
}
|
|
14
|
+
item: {
|
|
15
|
+
elementDisplayName: "Items"
|
|
65
16
|
},
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
audioTitle: "Audio title",
|
|
69
|
-
artistName: "Artist name",
|
|
70
|
-
progressBar: "Progress bar",
|
|
71
|
-
timeDisplay: "Time display",
|
|
72
|
-
volumeControls: "Volume control"
|
|
17
|
+
separator: {
|
|
18
|
+
elementDisplayName: "Separators"
|
|
73
19
|
},
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
displayMode: "Display mode",
|
|
77
|
-
loop: "Plays in a loop",
|
|
78
|
-
volume: "Volume"
|
|
20
|
+
homeIcon: {
|
|
21
|
+
elementDisplayName: "Home"
|
|
79
22
|
},
|
|
80
|
-
|
|
81
|
-
|
|
23
|
+
data: {
|
|
24
|
+
separator: "Separator",
|
|
25
|
+
displayHomepageAs: "Display homepage as",
|
|
26
|
+
horizontalSpacing: "Space between items",
|
|
27
|
+
verticalSpacing: "Space between rows",
|
|
28
|
+
alignment: "Alignment",
|
|
29
|
+
separatorOptions: {
|
|
30
|
+
slash: "Forward slash",
|
|
31
|
+
arrow: "Arrow"
|
|
32
|
+
},
|
|
33
|
+
homepageModeOptions: {
|
|
34
|
+
text: "Text",
|
|
35
|
+
icon: "Icon"
|
|
36
|
+
},
|
|
37
|
+
defaultState: "Default state",
|
|
38
|
+
defaultStateOptions: {
|
|
39
|
+
fullTrail: "Full trail",
|
|
40
|
+
hideHomepage: "Hide homepage",
|
|
41
|
+
hideCurrentPage: "Hide current page"
|
|
42
|
+
},
|
|
43
|
+
overflowItems: "Overflow items",
|
|
44
|
+
overflowItemsOptions: {
|
|
45
|
+
wrap: "Wrap",
|
|
46
|
+
collapse: "Collapse (with ellipses)"
|
|
47
|
+
},
|
|
48
|
+
beforeEllipsis: "Items before ellipses",
|
|
49
|
+
afterEllipsis: "Items after ellipses"
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
const DesignStates = {
|
|
53
|
+
item: {
|
|
54
|
+
hover: { displayName: "Hover", className: "breadcrumbs__item--hover" },
|
|
55
|
+
selected: {
|
|
56
|
+
displayName: "Selected",
|
|
57
|
+
className: "breadcrumbs__item--selected"
|
|
58
|
+
}
|
|
82
59
|
}
|
|
83
60
|
};
|
|
61
|
+
const componentMetadata = {
|
|
62
|
+
id: "992fd74f-46fe-4cc3-b803-d70f75a11fbc",
|
|
63
|
+
type: "wixEditorElements.Breadcrumbs",
|
|
64
|
+
description: "A navigation component that displays the user's location within a site's hierarchy as a trail of links, allowing navigation back to any ancestor page."
|
|
65
|
+
};
|
|
66
|
+
const separatorValues = {
|
|
67
|
+
slash: "slash",
|
|
68
|
+
arrow: "arrow"
|
|
69
|
+
};
|
|
70
|
+
const homepageModeValues = {
|
|
71
|
+
text: "text",
|
|
72
|
+
icon: "icon"
|
|
73
|
+
};
|
|
74
|
+
const defaultStateValues = {
|
|
75
|
+
fullTrail: "fullTrail",
|
|
76
|
+
hideHomepage: "hideHomepage",
|
|
77
|
+
hideCurrentPage: "hideCurrentPage"
|
|
78
|
+
};
|
|
84
79
|
export {
|
|
85
|
-
ARIA_LABELS as A,
|
|
86
80
|
DesignStates as D,
|
|
87
81
|
DisplayNames as a,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
82
|
+
separatorValues as b,
|
|
83
|
+
componentMetadata as c,
|
|
84
|
+
defaultStateValues as d,
|
|
85
|
+
homepageModeValues as h,
|
|
86
|
+
semanticClassNames as s
|
|
91
87
|
};
|