@wix/editor-react-components 1.2254.0 → 1.2255.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 +4 -81
- 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/CollapsibleText/component.js +1 -1
- package/dist/site/components/CollapsibleText/manifest.js +1 -1
- package/dist/site/components/Dropdown/Dropdown.d.ts +3 -0
- package/dist/site/components/Dropdown/Dropdown.types.d.ts +91 -0
- package/dist/site/components/Dropdown/component.d.ts +2 -0
- package/dist/site/components/Dropdown/component.js +31100 -0
- package/dist/site/components/Dropdown/component.preview.d.ts +4 -0
- package/dist/site/components/Dropdown/components/DropdownChips.d.ts +7 -0
- package/dist/site/components/Dropdown/components/DropdownList.d.ts +17 -0
- package/dist/site/components/Dropdown/components/DropdownTrigger.d.ts +18 -0
- package/dist/site/components/Dropdown/constants.d.ts +140 -0
- package/dist/site/components/Dropdown/css.css +255 -0
- package/dist/site/components/Dropdown/dropdownUtils.d.ts +24 -0
- package/dist/site/components/Dropdown/hooks/useChipOverflow.d.ts +9 -0
- package/dist/site/components/Dropdown/hooks/useDropdownQuery.d.ts +15 -0
- package/dist/site/components/Dropdown/hooks/useDropdownSelection.d.ts +16 -0
- package/dist/site/components/Dropdown/index.d.ts +2 -0
- package/dist/site/components/Dropdown/index.js +6 -0
- package/dist/site/components/Dropdown/manifest.d.ts +5 -0
- package/dist/site/components/Dropdown/manifest.js +418 -0
- package/dist/site/components/Line/manifest.js +3 -39
- package/dist/site/components/chunks/_baseSlice.js +43 -0
- package/dist/site/components/chunks/constants29.js +114 -46
- package/dist/site/components/chunks/constants30.js +53 -71
- package/dist/site/components/chunks/constants31.js +73 -77
- package/dist/site/components/chunks/constants32.js +76 -57
- package/dist/site/components/chunks/constants33.js +72 -0
- package/dist/site/components/chunks/isArray.js +12 -0
- package/dist/site/components/chunks/isArrayLike.js +88 -0
- package/dist/site/components/chunks/isObjectLike.js +5 -15
- package/dist/site/components/chunks/manifestSdkMixins.js +13 -0
- package/dist/site/components/chunks/useConsentPolicyProps.js +5 -5
- package/dist/site/components/extensions.js +51 -46
- package/package.json +3 -2
|
@@ -1,69 +1,137 @@
|
|
|
1
|
-
const
|
|
2
|
-
root:
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const DesignStates = {
|
|
2
|
+
root: {
|
|
3
|
+
hover: { displayName: "Hover", className: "dropdown--hover" },
|
|
4
|
+
disabled: { displayName: "Disabled", className: "dropdown--disabled" }
|
|
5
|
+
}
|
|
5
6
|
};
|
|
6
7
|
const DisplayNames = {
|
|
7
8
|
root: {
|
|
8
|
-
elementDisplayName: "
|
|
9
|
-
actions: {
|
|
10
|
-
settings: "Settings",
|
|
11
|
-
design: "Design"
|
|
12
|
-
},
|
|
9
|
+
elementDisplayName: "Dropdown",
|
|
13
10
|
data: {
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
options: "Options",
|
|
12
|
+
optionLabel: "Label",
|
|
13
|
+
optionValue: "Value",
|
|
14
|
+
value: "Selected value",
|
|
15
|
+
values: "Selected values",
|
|
16
|
+
inputValue: "Search query",
|
|
17
|
+
open: "Open",
|
|
18
|
+
isDisabled: "Disabled",
|
|
19
|
+
placeholder: "Placeholder",
|
|
20
|
+
searchable: "Allow search",
|
|
21
|
+
multiple: "Allow multiple selection",
|
|
22
|
+
clearable: "Show clear button",
|
|
23
|
+
autoHighlight: "Highlight first match",
|
|
24
|
+
openOnInputClick: "Open list on click",
|
|
25
|
+
inline: "Show options inline",
|
|
26
|
+
grid: "Show options in a grid",
|
|
27
|
+
columns: "Columns",
|
|
28
|
+
limit: "Max visible options",
|
|
29
|
+
label: "Label",
|
|
30
|
+
required: "Required",
|
|
31
|
+
readOnly: "Read only",
|
|
32
|
+
description: "Helper text",
|
|
33
|
+
triggerMode: {
|
|
34
|
+
displayName: "Apply filter",
|
|
16
35
|
options: {
|
|
17
|
-
|
|
18
|
-
|
|
36
|
+
onSelection: "On selection",
|
|
37
|
+
onApply: "On button click"
|
|
19
38
|
}
|
|
20
39
|
},
|
|
21
|
-
|
|
22
|
-
readMoreText: "Expand button text",
|
|
23
|
-
readLessText: "Collapse button text",
|
|
24
|
-
linkText: "Link text"
|
|
25
|
-
},
|
|
26
|
-
elements: {
|
|
27
|
-
text: "Text",
|
|
28
|
-
button: "Button"
|
|
40
|
+
applyButtonLabel: "Apply button text"
|
|
29
41
|
},
|
|
30
42
|
cssCustomProperties: {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
43
|
+
width: "Width",
|
|
44
|
+
maxWidth: "Max width",
|
|
45
|
+
backgroundColor: "Background",
|
|
46
|
+
borderColor: "Border color",
|
|
47
|
+
borderWidth: "Border width",
|
|
48
|
+
paddingTop: "Padding top",
|
|
49
|
+
paddingBottom: "Padding bottom",
|
|
50
|
+
paddingInlineStart: "Padding start",
|
|
51
|
+
paddingInlineEnd: "Padding end",
|
|
52
|
+
gap: "Spacing",
|
|
53
|
+
textAlign: "Value alignment",
|
|
54
|
+
font: "Value font",
|
|
55
|
+
textColor: "Value color",
|
|
56
|
+
labelFont: "Label font",
|
|
57
|
+
labelColor: "Label color",
|
|
58
|
+
helperFont: "Helper text font",
|
|
59
|
+
helperColor: "Helper text color",
|
|
60
|
+
optionTextColor: "Option text color",
|
|
61
|
+
optionHoverBackgroundColor: "Option hover background"
|
|
62
|
+
},
|
|
63
|
+
displayGroups: {
|
|
64
|
+
optionsGroup: "Manage options",
|
|
65
|
+
sizeGroup: "Size",
|
|
66
|
+
backgroundGroup: "Background",
|
|
67
|
+
cornersGroup: "Corner radius",
|
|
68
|
+
paddingGroup: "Padding"
|
|
39
69
|
}
|
|
40
70
|
}
|
|
41
71
|
};
|
|
42
72
|
const defaultValues = {
|
|
43
|
-
|
|
73
|
+
placeholder: "Select a value",
|
|
74
|
+
inputValue: "",
|
|
75
|
+
open: false,
|
|
76
|
+
isDisabled: false,
|
|
77
|
+
searchable: false,
|
|
78
|
+
multiple: false,
|
|
79
|
+
clearable: false,
|
|
80
|
+
autoHighlight: false,
|
|
81
|
+
openOnInputClick: true,
|
|
82
|
+
inline: false,
|
|
83
|
+
grid: false,
|
|
84
|
+
columns: 3,
|
|
85
|
+
limit: -1,
|
|
86
|
+
label: "",
|
|
87
|
+
required: false,
|
|
88
|
+
readOnly: false,
|
|
89
|
+
name: "",
|
|
90
|
+
description: "",
|
|
91
|
+
triggerMode: "onSelection",
|
|
92
|
+
applyButtonLabel: "Apply",
|
|
93
|
+
noResultsText: "No results"
|
|
44
94
|
};
|
|
45
|
-
var
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
return
|
|
49
|
-
})(
|
|
95
|
+
var TriggerModeValues = /* @__PURE__ */ ((TriggerModeValues2) => {
|
|
96
|
+
TriggerModeValues2["OnSelection"] = "onSelection";
|
|
97
|
+
TriggerModeValues2["OnApply"] = "onApply";
|
|
98
|
+
return TriggerModeValues2;
|
|
99
|
+
})(TriggerModeValues || {});
|
|
100
|
+
const ALL_VALUE = "";
|
|
50
101
|
const TestIds = {
|
|
51
|
-
root: "
|
|
52
|
-
|
|
102
|
+
root: "dropdown-root",
|
|
103
|
+
label: "dropdown-label",
|
|
104
|
+
trigger: "dropdown-trigger",
|
|
105
|
+
listbox: "dropdown-listbox",
|
|
106
|
+
clear: "dropdown-clear",
|
|
107
|
+
applyButton: "dropdown-apply-button",
|
|
108
|
+
description: "dropdown-description"
|
|
109
|
+
};
|
|
110
|
+
const selectors = {
|
|
111
|
+
root: "dropdown"
|
|
53
112
|
};
|
|
54
|
-
const FALLBACK_LINE_HEIGHT = 22.4;
|
|
55
|
-
const LINE_HEIGHT_ROUNDING_ERROR_TOLERANCE = 1;
|
|
56
113
|
const semanticClassNames = {
|
|
57
|
-
root: "
|
|
58
|
-
|
|
114
|
+
root: "dropdown",
|
|
115
|
+
trigger: "dropdown__trigger",
|
|
116
|
+
listbox: "dropdown__listbox",
|
|
117
|
+
option: "dropdown__option",
|
|
118
|
+
applyButton: "dropdown__apply-button"
|
|
119
|
+
};
|
|
120
|
+
const ARIA_LABEL_NAMESPACE = "ariaLabels";
|
|
121
|
+
const AriaLabels = {
|
|
122
|
+
root: { key: "Dropdown_AriaLabel", default: "Dropdown" },
|
|
123
|
+
clear: { key: "Dropdown_AriaLabel_Clear", default: "Clear" },
|
|
124
|
+
removeItem: { key: "Dropdown_AriaLabel_RemoveItem", default: "Remove" }
|
|
59
125
|
};
|
|
60
126
|
export {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
FALLBACK_LINE_HEIGHT as F,
|
|
64
|
-
LINE_HEIGHT_ROUNDING_ERROR_TOLERANCE as L,
|
|
127
|
+
ALL_VALUE as A,
|
|
128
|
+
DesignStates as D,
|
|
65
129
|
TestIds as T,
|
|
130
|
+
TriggerModeValues as a,
|
|
131
|
+
ARIA_LABEL_NAMESPACE as b,
|
|
132
|
+
AriaLabels as c,
|
|
66
133
|
defaultValues as d,
|
|
67
|
-
|
|
134
|
+
selectors as e,
|
|
135
|
+
DisplayNames as f,
|
|
68
136
|
semanticClassNames as s
|
|
69
137
|
};
|
|
@@ -1,87 +1,69 @@
|
|
|
1
|
-
const
|
|
2
|
-
root: "
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
animatedHomeIcon: "animated-icon"
|
|
1
|
+
const manifestClasses = {
|
|
2
|
+
root: "collapsible-text",
|
|
3
|
+
text: "text",
|
|
4
|
+
expandControl: "expand-control"
|
|
6
5
|
};
|
|
7
6
|
const DisplayNames = {
|
|
8
7
|
root: {
|
|
9
|
-
elementDisplayName: "
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
},
|
|
14
|
-
item: {
|
|
15
|
-
elementDisplayName: "Items"
|
|
16
|
-
},
|
|
17
|
-
separator: {
|
|
18
|
-
elementDisplayName: "Separators"
|
|
19
|
-
},
|
|
20
|
-
homeIcon: {
|
|
21
|
-
elementDisplayName: "Home"
|
|
22
|
-
},
|
|
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"
|
|
8
|
+
elementDisplayName: "Collapsible Text",
|
|
9
|
+
actions: {
|
|
10
|
+
settings: "Settings",
|
|
11
|
+
design: "Design"
|
|
32
12
|
},
|
|
33
|
-
|
|
13
|
+
data: {
|
|
14
|
+
expandMode: {
|
|
15
|
+
displayName: "Choose what the button does",
|
|
16
|
+
options: {
|
|
17
|
+
button: "Expands",
|
|
18
|
+
link: "Links"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
34
21
|
text: "Text",
|
|
35
|
-
|
|
22
|
+
readMoreText: "Expand button text",
|
|
23
|
+
readLessText: "Collapse button text",
|
|
24
|
+
linkText: "Link text"
|
|
36
25
|
},
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
hideHomepage: "Hide homepage",
|
|
41
|
-
hideCurrentPage: "Hide current page"
|
|
42
|
-
},
|
|
43
|
-
overflowItems: "Overflow items",
|
|
44
|
-
overflowItemsOptions: {
|
|
45
|
-
wrap: "Wrap",
|
|
46
|
-
collapse: "Collapse (with ellipses)"
|
|
26
|
+
elements: {
|
|
27
|
+
text: "Text",
|
|
28
|
+
button: "Button"
|
|
47
29
|
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
className: "breadcrumbs__item--selected"
|
|
30
|
+
cssCustomProperties: {
|
|
31
|
+
maxLines: "Lines displayed",
|
|
32
|
+
expandControlSpacing: "Space between text and button",
|
|
33
|
+
paragraphAlign: "Paragraph Alignment",
|
|
34
|
+
textColor: "Text color",
|
|
35
|
+
textFont: "Font",
|
|
36
|
+
textLineHeight: "Line spacing",
|
|
37
|
+
textTextDecoration: "Text Decoration",
|
|
38
|
+
textTextTransform: "Case"
|
|
58
39
|
}
|
|
59
40
|
}
|
|
60
41
|
};
|
|
61
|
-
const
|
|
62
|
-
|
|
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."
|
|
42
|
+
const defaultValues = {
|
|
43
|
+
expandMode: "button"
|
|
65
44
|
};
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
45
|
+
var ExpandModeValues = /* @__PURE__ */ ((ExpandModeValues2) => {
|
|
46
|
+
ExpandModeValues2["Link"] = "link";
|
|
47
|
+
ExpandModeValues2["Expand"] = "button";
|
|
48
|
+
return ExpandModeValues2;
|
|
49
|
+
})(ExpandModeValues || {});
|
|
50
|
+
const TestIds = {
|
|
51
|
+
root: "collapsible-text-root",
|
|
52
|
+
textWrapper: "collapsible-text-text-wrapper"
|
|
69
53
|
};
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
fullTrail: "fullTrail",
|
|
76
|
-
hideHomepage: "hideHomepage",
|
|
77
|
-
hideCurrentPage: "hideCurrentPage"
|
|
54
|
+
const FALLBACK_LINE_HEIGHT = 22.4;
|
|
55
|
+
const LINE_HEIGHT_ROUNDING_ERROR_TOLERANCE = 1;
|
|
56
|
+
const semanticClassNames = {
|
|
57
|
+
root: "collapsible-text",
|
|
58
|
+
text: "collapsible-text__text"
|
|
78
59
|
};
|
|
79
60
|
export {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
61
|
+
DisplayNames as D,
|
|
62
|
+
ExpandModeValues as E,
|
|
63
|
+
FALLBACK_LINE_HEIGHT as F,
|
|
64
|
+
LINE_HEIGHT_ROUNDING_ERROR_TOLERANCE as L,
|
|
65
|
+
TestIds as T,
|
|
66
|
+
defaultValues as d,
|
|
67
|
+
manifestClasses as m,
|
|
86
68
|
semanticClassNames as s
|
|
87
69
|
};
|
|
@@ -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
|
};
|
|
@@ -1,72 +1,91 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
defaultState: "Choose the default state"
|
|
18
|
-
},
|
|
19
|
-
defaultStateOptions: {
|
|
20
|
-
allClosed: "All items closed",
|
|
21
|
-
firstOpened: "First item opened",
|
|
22
|
-
allOpened: "All items opened"
|
|
23
|
-
},
|
|
24
|
-
displayGroups: {
|
|
25
|
-
accordionItems: "Accordion Items"
|
|
26
|
-
},
|
|
27
|
-
layout: {
|
|
28
|
-
itemsGap: "Space between items"
|
|
29
|
-
}
|
|
1
|
+
const selectors = {
|
|
2
|
+
root: "audioPlayer",
|
|
3
|
+
controls: "controls",
|
|
4
|
+
playButton: "playButton",
|
|
5
|
+
playIcon: "playIcon",
|
|
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"
|
|
30
17
|
};
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
allowMultipleOpen: false,
|
|
35
|
-
titleHtmlTag: "h3"
|
|
18
|
+
const dataDefaults = {
|
|
19
|
+
loop: false,
|
|
20
|
+
volume: 100
|
|
36
21
|
};
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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"
|
|
42
31
|
};
|
|
43
|
-
const CONTAINER_INITIAL_HEIGHT = 240;
|
|
44
32
|
const DesignStates = {
|
|
45
|
-
|
|
33
|
+
controls: {
|
|
46
34
|
hover: {
|
|
47
35
|
displayName: "Hover",
|
|
48
|
-
className: "
|
|
36
|
+
className: "audio-player__controls--hover"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
const DisplayNames = {
|
|
41
|
+
root: {
|
|
42
|
+
displayName: "Audio Player",
|
|
43
|
+
cssProperties: {
|
|
44
|
+
color: "Background color"
|
|
49
45
|
},
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
46
|
+
cssCustomProperties: {
|
|
47
|
+
"content-horizontal-alignment": "Alignment",
|
|
48
|
+
"vertical-spacing": "Vertical spacing",
|
|
49
|
+
"audio-title-gap": "Space between track details"
|
|
53
50
|
}
|
|
54
51
|
},
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
52
|
+
controls: {
|
|
53
|
+
displayName: "Playback controls",
|
|
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"
|
|
59
60
|
},
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
displayGroups: {
|
|
62
|
+
fillColors: "Fill colors",
|
|
63
|
+
icon: "Icon"
|
|
63
64
|
}
|
|
65
|
+
},
|
|
66
|
+
elements: {
|
|
67
|
+
coverMedia: "Cover art",
|
|
68
|
+
audioTitle: "Audio title",
|
|
69
|
+
artistName: "Artist name",
|
|
70
|
+
progressBar: "Progress bar",
|
|
71
|
+
timeDisplay: "Time display",
|
|
72
|
+
volumeControls: "Volume control"
|
|
73
|
+
},
|
|
74
|
+
data: {
|
|
75
|
+
coverImage: "Image",
|
|
76
|
+
displayMode: "Display mode",
|
|
77
|
+
loop: "Plays in a loop",
|
|
78
|
+
volume: "Volume"
|
|
79
|
+
},
|
|
80
|
+
displayGroups: {
|
|
81
|
+
playbackOptions: "Playback"
|
|
64
82
|
}
|
|
65
83
|
};
|
|
66
84
|
export {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
85
|
+
ARIA_LABELS as A,
|
|
86
|
+
DesignStates as D,
|
|
87
|
+
DisplayNames as a,
|
|
88
|
+
borderDefaultValue as b,
|
|
89
|
+
dataDefaults as d,
|
|
90
|
+
selectors as s
|
|
72
91
|
};
|