@wix/editor-react-components 1.2762.0 → 1.2764.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/AnimatedIcon/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/BoxContainer/component.js +3 -3
- package/dist/site/components/BoxContainer/manifest.js +1 -1
- package/dist/site/components/Breadcrumbs/component.js +3 -3
- package/dist/site/components/Breadcrumbs/manifest.js +1 -1
- package/dist/site/components/Button/manifest.js +1 -1
- package/dist/site/components/Checkbox/component.js +1 -1
- package/dist/site/components/Checkbox/manifest.js +1 -1
- package/dist/site/components/CheckboxGroup/component.js +1 -1
- package/dist/site/components/CheckboxGroup/manifest.js +1 -1
- package/dist/site/components/CollapsibleText/component.js +2 -2
- package/dist/site/components/CollapsibleText/manifest.js +1 -1
- package/dist/site/components/DatePicker/component.js +2 -2
- package/dist/site/components/DatePicker/manifest.js +1 -1
- package/dist/site/components/Dropdown/component.js +2 -2
- package/dist/site/components/Dropdown/manifest.js +1 -1
- package/dist/site/components/GoogleMap/component.js +3 -3
- package/dist/site/components/HTMLComponent/component.js +2 -2
- package/dist/site/components/HeadingTextBlock/component.js +1 -1
- package/dist/site/components/HeadingTextBlock/manifest.js +1 -1
- package/dist/site/components/HipaaIcon/component.js +2 -2
- package/dist/site/components/HipaaIcon/manifest.js +1 -1
- package/dist/site/components/Image3/component.js +2 -2
- package/dist/site/components/Image3/component.preview.d.ts +1 -3
- package/dist/site/components/Image3/manifest.js +1 -4
- package/dist/site/components/ImageReveal/component.js +2 -2
- package/dist/site/components/ImageReveal/manifest.js +1 -1
- package/dist/site/components/Line/component.js +1 -1
- package/dist/site/components/LinkBar/component.js +2 -2
- package/dist/site/components/LinkBar/manifest.js +1 -1
- package/dist/site/components/Logo/component.js +1 -1
- package/dist/site/components/Logo/manifest.js +1 -1
- package/dist/site/components/Logo/sdk.js +1 -1
- package/dist/site/components/Lottie/component.js +3 -3
- package/dist/site/components/Lottie/manifest.js +1 -1
- package/dist/site/components/MarkdownBlock/component.js +2 -2
- package/dist/site/components/MarkdownBlock/manifest.js +1 -1
- package/dist/site/components/Menu/component.js +3 -3
- package/dist/site/components/Menu/manifest.js +1 -1
- package/dist/site/components/MultiStateBox/component.js +1 -1
- package/dist/site/components/MultiStateBox/manifest.js +1 -1
- package/dist/site/components/ProgressBar/component.js +1 -1
- package/dist/site/components/ProgressBar/manifest.js +1 -1
- package/dist/site/components/ProgressBar/sdk.js +1 -1
- package/dist/site/components/RadioButtons/component.js +1 -1
- package/dist/site/components/RadioButtons/manifest.js +1 -1
- package/dist/site/components/Repeater/component.js +2 -2
- package/dist/site/components/Repeater/manifest.js +1 -1
- package/dist/site/components/ShareButtons/component.js +2 -2
- package/dist/site/components/ShareButtons/manifest.js +1 -1
- package/dist/site/components/Slideshow/component.js +1 -1
- package/dist/site/components/Tabs/component.js +1 -1
- package/dist/site/components/Tabs/manifest.js +1 -1
- package/dist/site/components/TextBox/component.js +1 -1
- package/dist/site/components/TextBox/manifest.js +1 -1
- package/dist/site/components/TextEffects3d/component.js +1 -1
- package/dist/site/components/TextEffects3d/manifest.js +1 -1
- package/dist/site/components/TextEffectsBauhaus/component.js +1 -1
- package/dist/site/components/TextEffectsBauhaus/manifest.js +1 -1
- package/dist/site/components/TextEffectsGlass/component.js +1 -1
- package/dist/site/components/TextEffectsGlass/manifest.js +1 -1
- package/dist/site/components/TextEffectsGlitch/component.js +1 -1
- package/dist/site/components/TextEffectsGlitch/manifest.js +1 -1
- package/dist/site/components/TextEffectsLetterPress/component.js +1 -1
- package/dist/site/components/TextEffectsLetterPress/manifest.js +1 -1
- package/dist/site/components/TextEffectsMatrix/component.js +1 -1
- package/dist/site/components/TextEffectsMatrix/manifest.js +1 -1
- package/dist/site/components/TextEffectsNeonSign/component.js +1 -1
- package/dist/site/components/TextEffectsNeonSign/manifest.js +1 -1
- package/dist/site/components/TextEffectsNoisy/component.js +1 -1
- package/dist/site/components/TextEffectsNoisy/manifest.js +1 -1
- package/dist/site/components/TextEffectsOutlineOut/component.js +2 -2
- package/dist/site/components/TextEffectsOutlineOut/manifest.js +1 -1
- package/dist/site/components/TextEffectsRetro/component.js +1 -1
- package/dist/site/components/TextEffectsRetro/manifest.js +1 -1
- package/dist/site/components/TextEffectsShook/component.js +1 -1
- package/dist/site/components/TextEffectsShook/manifest.js +1 -1
- package/dist/site/components/TextEffectsSticker/component.js +1 -1
- package/dist/site/components/TextEffectsSticker/manifest.js +2 -2
- package/dist/site/components/TextEffectsStriped/component.js +1 -1
- package/dist/site/components/TextEffectsStriped/manifest.js +1 -1
- package/dist/site/components/TextInput/component.js +2 -2
- package/dist/site/components/TextInput/manifest.js +1 -1
- package/dist/site/components/TextMarquee/component.js +1 -1
- package/dist/site/components/TimePicker/component.js +2 -2
- package/dist/site/components/TimePicker/manifest.js +1 -1
- package/dist/site/components/TransparentVideo/component.js +2 -2
- package/dist/site/components/VideoScrub/VideoScrub.types.d.ts +28 -0
- package/dist/site/components/VideoScrub/component.js +295 -29
- package/dist/site/components/VideoScrub/constants.d.ts +5 -0
- package/dist/site/components/VideoScrub/css.css +21 -1
- package/dist/site/components/VideoScrub/hooks/useTimeframes.d.ts +23 -0
- package/dist/site/components/VideoScrub/manifest.js +102 -6
- package/dist/site/components/VideoScrub/timeframes/index.d.ts +1 -1
- package/dist/site/components/VideoScrub/timeframes/types.d.ts +1 -1
- package/dist/site/components/VideoScrub/timeframes/useActiveTimeframeIndex.d.ts +2 -0
- package/dist/site/components/chunks/AnimatedIcon.js +1 -1
- package/dist/site/components/chunks/Button.js +2 -2
- package/dist/site/components/chunks/Image.js +1 -1
- package/dist/site/components/chunks/Link.js +1 -1
- package/dist/site/components/chunks/Patterns.js +1 -1
- package/dist/site/components/chunks/ResponsiveBox.js +1 -1
- package/dist/site/components/chunks/TextEffectsShared.js +2 -2
- package/dist/site/components/chunks/a11y.js +4 -4
- package/dist/site/components/chunks/constants10.js +20 -65
- package/dist/site/components/chunks/constants11.js +12 -14
- package/dist/site/components/chunks/constants12.js +9 -9
- package/dist/site/components/chunks/constants13.js +8 -10
- package/dist/site/components/chunks/constants14.js +13 -9
- package/dist/site/components/chunks/constants15.js +17 -14
- package/dist/site/components/chunks/constants16.js +12 -17
- package/dist/site/components/chunks/constants17.js +13 -11
- package/dist/site/components/chunks/constants18.js +96 -21
- package/dist/site/components/chunks/constants19.js +50 -92
- package/dist/site/components/chunks/constants2.js +128 -34
- package/dist/site/components/chunks/constants20.js +50 -54
- package/dist/site/components/chunks/constants21.js +52 -49
- package/dist/site/components/chunks/constants22.js +310 -43
- package/dist/site/components/chunks/constants23.js +65 -310
- package/dist/site/components/chunks/constants24.js +99 -70
- package/dist/site/components/chunks/constants25.js +30 -101
- package/dist/site/components/chunks/constants26.js +17 -35
- package/dist/site/components/chunks/constants27.js +447 -16
- package/dist/site/components/chunks/constants28.js +29 -441
- package/dist/site/components/chunks/constants29.js +78 -26
- package/dist/site/components/chunks/constants3.js +84 -118
- package/dist/site/components/chunks/constants30.js +15 -85
- package/dist/site/components/chunks/constants31.js +42 -11
- package/dist/site/components/chunks/constants32.js +45 -41
- package/dist/site/components/chunks/constants33.js +24 -49
- package/dist/site/components/chunks/constants34.js +56 -25
- package/dist/site/components/chunks/constants35.js +13 -58
- package/dist/site/components/chunks/constants36.js +206 -14
- package/dist/site/components/chunks/constants37.js +153 -182
- package/dist/site/components/chunks/constants38.js +49 -162
- package/dist/site/components/chunks/constants39.js +102 -51
- package/dist/site/components/chunks/constants4.js +13 -88
- package/dist/site/components/chunks/constants40.js +39 -69
- package/dist/site/components/chunks/constants41.js +79 -72
- package/dist/site/components/chunks/constants42.js +77 -83
- package/dist/site/components/chunks/constants43.js +56 -75
- package/dist/site/components/chunks/constants5.js +19 -10
- package/dist/site/components/chunks/constants6.js +14 -14
- package/dist/site/components/chunks/constants7.js +10 -11
- package/dist/site/components/chunks/constants8.js +14 -14
- package/dist/site/components/chunks/constants9.js +65 -22
- package/dist/site/components/chunks/customElementInit.js +1 -1
- package/dist/site/components/chunks/index4.js +3 -2133
- package/dist/site/components/chunks/index5.js +2080 -1414
- package/dist/site/components/chunks/index6.js +1467 -3
- package/dist/site/components/chunks/manifestBase.js +1 -1
- package/dist/site/components/chunks/parseHtml.js +1 -1
- package/dist/site/components/chunks/parseSvg.js +1 -1
- package/dist/site/components/chunks/types.js +61 -0
- package/dist/site/components/chunks/useConsentPolicyProps.js +2 -2
- package/dist/site/components/chunks/utils2.js +1 -1
- package/dist/site/components/extensions.js +1 -1
- package/package.json +2 -2
- package/dist/site/components/chunks/constants44.js +0 -72
|
@@ -1,327 +1,82 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const componentName = "ShareButtons";
|
|
8
|
-
const shareButtonsBaseId = `wixui_${componentName}`;
|
|
9
|
-
const platformIds = {
|
|
10
|
-
facebook: `${shareButtonsBaseId}_facebook`,
|
|
11
|
-
twitter: `${shareButtonsBaseId}_twitter`,
|
|
12
|
-
linkedin: `${shareButtonsBaseId}_linkedin`,
|
|
13
|
-
pinterest: `${shareButtonsBaseId}_pinterest`,
|
|
14
|
-
whatsapp: `${shareButtonsBaseId}_whatsapp`,
|
|
15
|
-
copyButton: `${shareButtonsBaseId}_copyButton`
|
|
1
|
+
const semanticClassNames = {
|
|
2
|
+
root: "repeater",
|
|
3
|
+
itemsContainer: "repeater-items-container",
|
|
4
|
+
item: "repeater-item",
|
|
5
|
+
emptyState: "repeater-empty-state",
|
|
6
|
+
emptyStateContent: "repeater-empty-state-content"
|
|
16
7
|
};
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
"Shares on Twitter": platformIds.twitter,
|
|
20
|
-
"Shares on X (Twitter)": platformIds.twitter,
|
|
21
|
-
"Shares on Whatsapp": platformIds.whatsapp,
|
|
22
|
-
"Shares on WhatsApp": platformIds.whatsapp,
|
|
23
|
-
"Shares on LinkedIn": platformIds.linkedin,
|
|
24
|
-
"Shares on Pinterest": platformIds.pinterest,
|
|
25
|
-
"Copies Link": platformIds.copyButton
|
|
8
|
+
const FunctionalStateKeys = {
|
|
9
|
+
empty: "empty"
|
|
26
10
|
};
|
|
27
|
-
const shareUrlPrefixes = {
|
|
28
|
-
[platformIds.facebook]: "https://facebook.com/sharer/sharer.php?u=",
|
|
29
|
-
[platformIds.twitter]: "https://twitter.com/intent/tweet?url=",
|
|
30
|
-
[platformIds.linkedin]: "https://www.linkedin.com/shareArticle?mini=true&url=",
|
|
31
|
-
[platformIds.pinterest]: "https://pinterest.com/pin/create/button/?url=",
|
|
32
|
-
[platformIds.whatsapp]: "https://api.whatsapp.com/send/?phone&text=",
|
|
33
|
-
[platformIds.copyButton]: ""
|
|
34
|
-
};
|
|
35
|
-
const noButtonsErrorMessage = "ShareButtons: `buttons` prop must contain at least one button.";
|
|
36
|
-
const defaultRootAriaLabel = "Share Buttons";
|
|
37
|
-
const sharerData = {
|
|
38
|
-
name: "wix_share_button",
|
|
39
|
-
params: "width = 635, height = 346"
|
|
40
|
-
};
|
|
41
|
-
const COPY_CONFIRMATION_TIMEOUT = 5e3;
|
|
42
|
-
const TOOLTIP_SUCCESS_TEXT = "Link Copied";
|
|
43
|
-
const TOOLTIP_FAILED_TEXT = "Failed to copy link";
|
|
44
|
-
const linkCopiedTranslationKey = "wixui_ShareButtons_toast_link_copied";
|
|
45
|
-
const linkCopiedFailedTranslationKey = "wixui_ShareButtons_toast_link_copied_failed";
|
|
46
|
-
const HAS_CUSTOM_FOCUS_CLASSNAME = "has-custom-focus";
|
|
47
11
|
const TestIds = {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
12
|
+
skeleton: "repeater-skeleton",
|
|
13
|
+
sentinel: "repeater-sentinel",
|
|
14
|
+
emptyState: "repeater-empty-state",
|
|
15
|
+
loadMoreButton: "repeater-load-more-button",
|
|
16
|
+
liveAnnouncer: "repeater-live-announcer"
|
|
52
17
|
};
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
18
|
+
const DEFAULT_ITEMS_PER_ROW = 4;
|
|
19
|
+
const BORDER_DEFAULT = "0px solid rgba(0, 0, 0, 1)";
|
|
20
|
+
const COLUMN_COUNT_CSS_VAR = "--column-count";
|
|
21
|
+
const LOADING_ITEM_COUNT_CSS_VAR = "--loading-item-count";
|
|
22
|
+
const presets = {
|
|
23
|
+
cards: "cards",
|
|
24
|
+
cards_off: "cards_off",
|
|
25
|
+
list: "list",
|
|
26
|
+
slider: "slider",
|
|
27
|
+
slider_vertical: "slider_vertical",
|
|
28
|
+
grid: "grid"
|
|
60
29
|
};
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
vertical: "Vertical"
|
|
66
|
-
},
|
|
67
|
-
cssCustomProperties: {
|
|
68
|
-
"buttons-spacing": "Space between buttons",
|
|
69
|
-
"rows-spacing": "Space between rows",
|
|
70
|
-
"button-width": "Button width"
|
|
71
|
-
},
|
|
72
|
-
data: {
|
|
73
|
-
pageToShare: "What page is shared?",
|
|
74
|
-
buttons: {
|
|
75
|
-
displayName: "Buttons",
|
|
76
|
-
items: {
|
|
77
|
-
label: "Label",
|
|
78
|
-
description: "Description",
|
|
79
|
-
value: "Value",
|
|
80
|
-
disabled: "Disabled",
|
|
81
|
-
isDefault: "Is Default",
|
|
82
|
-
unavailable: "Unavailable",
|
|
83
|
-
platformId: "Platform ID",
|
|
84
|
-
illustration: "Illustration",
|
|
85
|
-
isHidden: "Is Hidden"
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
button: {
|
|
90
|
-
elementDisplayName: "Buttons",
|
|
91
|
-
cssCustomProperties: {
|
|
92
|
-
"icon-text-spacing": "Space between text and icons",
|
|
93
|
-
"icon-position": "Icon position"
|
|
30
|
+
const Descriptions = {
|
|
31
|
+
root: {
|
|
32
|
+
data: {
|
|
33
|
+
items: "Connect the repeater to an array to display the list as individual repeater items."
|
|
94
34
|
}
|
|
95
|
-
},
|
|
96
|
-
label: {
|
|
97
|
-
elementDisplayName: "Text"
|
|
98
|
-
},
|
|
99
|
-
icon: {
|
|
100
|
-
elementDisplayName: "Icons",
|
|
101
|
-
cssCustomProperties: {
|
|
102
|
-
"icon-size": "Size"
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
customActions: {
|
|
106
|
-
format: {
|
|
107
|
-
displayName: "Change Orientation"
|
|
108
|
-
},
|
|
109
|
-
manage: {
|
|
110
|
-
displayName: "Manage Share Buttons"
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
const elementKeys = {
|
|
115
|
-
button: "button",
|
|
116
|
-
label: "label",
|
|
117
|
-
icon: "icon"
|
|
118
|
-
};
|
|
119
|
-
const StaticDisplayFilters = {
|
|
120
|
-
data: { hide: ["buttons"] },
|
|
121
|
-
elements: { hide: [elementKeys.label, elementKeys.icon] }
|
|
122
|
-
};
|
|
123
|
-
const DesignStates = {
|
|
124
|
-
button: {
|
|
125
|
-
hover: { displayName: "Hover", className: "share-buttons__button--hover" }
|
|
126
|
-
},
|
|
127
|
-
label: {
|
|
128
|
-
hover: { displayName: "Hover", className: "share-buttons__label--hover" }
|
|
129
|
-
},
|
|
130
|
-
icon: {
|
|
131
|
-
hover: { displayName: "Hover", className: "share-buttons__icon--hover" }
|
|
132
35
|
}
|
|
133
36
|
};
|
|
134
|
-
const
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
const ButtonWidthOptions = [
|
|
146
|
-
{
|
|
147
|
-
value: "fit-content",
|
|
148
|
-
displayName: "Fit to text"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
value: "100%",
|
|
152
|
-
displayName: "Equal"
|
|
153
|
-
}
|
|
154
|
-
];
|
|
155
|
-
const ColumnFlexDirectionAppliedStyles = [
|
|
156
|
-
{
|
|
157
|
-
property: "--align-items-value",
|
|
158
|
-
value: "var(--horizontal-alignment)"
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
property: "--justify-content-value",
|
|
162
|
-
value: "center"
|
|
163
|
-
}
|
|
164
|
-
];
|
|
165
|
-
const RowFlexDirectionAppliedStyles = [
|
|
166
|
-
{
|
|
167
|
-
property: "--justify-content-value",
|
|
168
|
-
value: "var(--horizontal-alignment)"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
property: "--align-items-value",
|
|
172
|
-
value: "center"
|
|
173
|
-
}
|
|
174
|
-
];
|
|
175
|
-
const IconPositionOptions = [
|
|
176
|
-
{
|
|
177
|
-
value: "row",
|
|
178
|
-
displayName: "Before text",
|
|
179
|
-
appliedStyles: RowFlexDirectionAppliedStyles
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
value: "row-reverse",
|
|
183
|
-
displayName: "After text",
|
|
184
|
-
appliedStyles: RowFlexDirectionAppliedStyles
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
value: "column-reverse",
|
|
188
|
-
displayName: "Below text",
|
|
189
|
-
appliedStyles: ColumnFlexDirectionAppliedStyles
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
value: "column",
|
|
193
|
-
displayName: "Above text",
|
|
194
|
-
appliedStyles: ColumnFlexDirectionAppliedStyles
|
|
195
|
-
}
|
|
196
|
-
];
|
|
197
|
-
const PageToShareOptions = [
|
|
198
|
-
{ value: "home", displayName: "Homepage" },
|
|
199
|
-
{ value: "current", displayName: "Current page" }
|
|
200
|
-
];
|
|
201
|
-
const DefaultButtons = [
|
|
202
|
-
{
|
|
203
|
-
unavailable: false,
|
|
204
|
-
label: "Facebook",
|
|
205
|
-
description: "Shares on Facebook",
|
|
206
|
-
isHidden: false,
|
|
207
|
-
platformId: "wixui_ShareButtons_facebook",
|
|
208
|
-
illustration: {
|
|
209
|
-
type: "Builder.VectorArt",
|
|
210
|
-
uri: "11062b_30fe5729438347de94ad9836fa5e803e.svg"
|
|
211
|
-
},
|
|
212
|
-
disabled: false,
|
|
213
|
-
type: "IShareButton",
|
|
214
|
-
value: "wixui_ShareButtons_manage_facebook_share_address",
|
|
215
|
-
isDefault: false
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
unavailable: false,
|
|
219
|
-
label: "X",
|
|
220
|
-
description: "Shares on X",
|
|
221
|
-
isHidden: false,
|
|
222
|
-
platformId: "wixui_ShareButtons_twitter",
|
|
223
|
-
illustration: {
|
|
224
|
-
type: "Builder.VectorArt",
|
|
225
|
-
uri: "11062b_2a5163bb94b641168e0a22e56b23e8d4.svg"
|
|
37
|
+
const DisplayNames = {
|
|
38
|
+
root: {
|
|
39
|
+
elementDisplayName: "Repeater",
|
|
40
|
+
data: {
|
|
41
|
+
items: "Display Items from",
|
|
42
|
+
emptyState: "Empty State",
|
|
43
|
+
emptyState_title: "Title",
|
|
44
|
+
emptyState_description: "Description",
|
|
45
|
+
isLoading: "Loading State",
|
|
46
|
+
loadMore: "Load More",
|
|
47
|
+
emptyStateContent: "Empty State"
|
|
226
48
|
},
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
value: "wixui_ShareButtons_manage_twitter_share_address",
|
|
230
|
-
isDefault: false
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
unavailable: false,
|
|
234
|
-
label: "WhatsApp",
|
|
235
|
-
description: "Shares on WhatsApp",
|
|
236
|
-
isHidden: false,
|
|
237
|
-
platformId: "wixui_ShareButtons_whatsapp",
|
|
238
|
-
illustration: {
|
|
239
|
-
type: "Builder.VectorArt",
|
|
240
|
-
uri: "11062b_65971442c3364e5c9d0e5d430674994b.svg"
|
|
49
|
+
customActions: {
|
|
50
|
+
presets: "Change Layout"
|
|
241
51
|
},
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
value: "wixui_ShareButtons_manage_whatsapp_share_address",
|
|
245
|
-
isDefault: false
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
unavailable: false,
|
|
249
|
-
label: "LinkedIn",
|
|
250
|
-
description: "Shares on LinkedIn",
|
|
251
|
-
isHidden: false,
|
|
252
|
-
platformId: "wixui_ShareButtons_linkedin",
|
|
253
|
-
illustration: {
|
|
254
|
-
type: "Builder.VectorArt",
|
|
255
|
-
uri: "11062b_8cf74ad49bb74f728899d6b43e02e4c0.svg"
|
|
52
|
+
states: {
|
|
53
|
+
empty: "No Items"
|
|
256
54
|
},
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
value: "wixui_ShareButtons_manage_linkedin_share_address",
|
|
260
|
-
isDefault: false
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
unavailable: false,
|
|
264
|
-
label: "Pinterest",
|
|
265
|
-
description: "Shares on Pinterest",
|
|
266
|
-
isHidden: false,
|
|
267
|
-
platformId: "wixui_ShareButtons_pinterest",
|
|
268
|
-
illustration: {
|
|
269
|
-
type: "Builder.VectorArt",
|
|
270
|
-
uri: "11062b_04de07b936da4bffbe6c9d2daaffeceb.svg"
|
|
55
|
+
elements: {
|
|
56
|
+
emptyState: "Empty State"
|
|
271
57
|
},
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
value: "wixui_ShareButtons_manage_pinterest_share_address",
|
|
275
|
-
isDefault: false
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
unavailable: false,
|
|
279
|
-
label: "Copy link",
|
|
280
|
-
description: "Copies link",
|
|
281
|
-
isHidden: false,
|
|
282
|
-
platformId: "wixui_ShareButtons_copyButton",
|
|
283
|
-
illustration: {
|
|
284
|
-
type: "Builder.VectorArt",
|
|
285
|
-
uri: "11062b_c5c2820390524c06b5aa2793b0eb464d.svg"
|
|
58
|
+
cssProperties: {
|
|
59
|
+
emptyStateBackground: "Background"
|
|
286
60
|
},
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
61
|
+
presets: {
|
|
62
|
+
cards: "Cards",
|
|
63
|
+
cards_off: "Cards Off",
|
|
64
|
+
list: "List",
|
|
65
|
+
slider: "Slider",
|
|
66
|
+
slider_vertical: "Slider Vertical",
|
|
67
|
+
grid: "Advanced grid"
|
|
68
|
+
}
|
|
291
69
|
}
|
|
292
|
-
];
|
|
293
|
-
const DisplayConfig = {
|
|
294
|
-
displayValues: [
|
|
295
|
-
CSS_PROPERTIES.DISPLAY_VALUE.none,
|
|
296
|
-
CSS_PROPERTIES.DISPLAY_VALUE.inline_block
|
|
297
|
-
]
|
|
298
70
|
};
|
|
299
71
|
export {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
defaultRootAriaLabel as c,
|
|
311
|
-
dataHooks as d,
|
|
312
|
-
TestIds as e,
|
|
313
|
-
TranslationKeys as f,
|
|
314
|
-
shareUrlPrefixes as g,
|
|
315
|
-
elementKeys as h,
|
|
316
|
-
DesignStates as i,
|
|
317
|
-
DisplayNames as j,
|
|
318
|
-
DisplayConfig as k,
|
|
319
|
-
linkCopiedFailedTranslationKey as l,
|
|
320
|
-
PageToShareOptions as m,
|
|
321
|
-
noButtonsErrorMessage as n,
|
|
322
|
-
DefaultButtons as o,
|
|
323
|
-
platformIds as p,
|
|
324
|
-
sharerData as s,
|
|
325
|
-
translationKeys as t,
|
|
326
|
-
valueToPlatformId as v
|
|
72
|
+
BORDER_DEFAULT as B,
|
|
73
|
+
COLUMN_COUNT_CSS_VAR as C,
|
|
74
|
+
DEFAULT_ITEMS_PER_ROW as D,
|
|
75
|
+
FunctionalStateKeys as F,
|
|
76
|
+
LOADING_ITEM_COUNT_CSS_VAR as L,
|
|
77
|
+
TestIds as T,
|
|
78
|
+
DisplayNames as a,
|
|
79
|
+
Descriptions as b,
|
|
80
|
+
presets as p,
|
|
81
|
+
semanticClassNames as s
|
|
327
82
|
};
|
|
@@ -1,82 +1,111 @@
|
|
|
1
|
-
const
|
|
2
|
-
root: "repeater",
|
|
3
|
-
itemsContainer: "repeater-items-container",
|
|
4
|
-
item: "repeater-item",
|
|
5
|
-
emptyState: "repeater-empty-state",
|
|
6
|
-
emptyStateContent: "repeater-empty-state-content"
|
|
7
|
-
};
|
|
8
|
-
const FunctionalStateKeys = {
|
|
9
|
-
empty: "empty"
|
|
10
|
-
};
|
|
11
|
-
const TestIds = {
|
|
12
|
-
skeleton: "repeater-skeleton",
|
|
13
|
-
sentinel: "repeater-sentinel",
|
|
14
|
-
emptyState: "repeater-empty-state",
|
|
15
|
-
loadMoreButton: "repeater-load-more-button",
|
|
16
|
-
liveAnnouncer: "repeater-live-announcer"
|
|
17
|
-
};
|
|
18
|
-
const DEFAULT_ITEMS_PER_ROW = 4;
|
|
19
|
-
const BORDER_DEFAULT = "0px solid rgba(0, 0, 0, 1)";
|
|
20
|
-
const COLUMN_COUNT_CSS_VAR = "--column-count";
|
|
21
|
-
const LOADING_ITEM_COUNT_CSS_VAR = "--loading-item-count";
|
|
22
|
-
const presets = {
|
|
23
|
-
cards: "cards",
|
|
24
|
-
cards_off: "cards_off",
|
|
25
|
-
list: "list",
|
|
26
|
-
slider: "slider",
|
|
27
|
-
slider_vertical: "slider_vertical",
|
|
28
|
-
grid: "grid"
|
|
29
|
-
};
|
|
30
|
-
const Descriptions = {
|
|
1
|
+
const DisplayNames = {
|
|
31
2
|
root: {
|
|
3
|
+
elementDisplayName: "Radio Buttons",
|
|
32
4
|
data: {
|
|
33
|
-
|
|
5
|
+
options: "Options",
|
|
6
|
+
optionLabel: "Label",
|
|
7
|
+
optionValue: "Value",
|
|
8
|
+
optionDisabled: "Disabled",
|
|
9
|
+
value: "Selected value",
|
|
10
|
+
firstSelectedByDefault: "Default selection",
|
|
11
|
+
firstSelectedByDefaultNone: "None",
|
|
12
|
+
firstSelectedByDefaultFirst: "First Item",
|
|
13
|
+
label: "Label",
|
|
14
|
+
tooltip: "Tooltip",
|
|
15
|
+
required: "Required",
|
|
16
|
+
readOnly: "Read only",
|
|
17
|
+
disabled: "Disabled"
|
|
18
|
+
},
|
|
19
|
+
cssCustomProperties: {
|
|
20
|
+
orientation: "Orientation",
|
|
21
|
+
radiosSpacing: "Space between radio buttons",
|
|
22
|
+
labelSpacing: "Space between field and field title",
|
|
23
|
+
radioTextSpacing: "Space between radio button and text",
|
|
24
|
+
alignment: "Alignment",
|
|
25
|
+
labelAlignment: "Label alignment"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
radio: {
|
|
29
|
+
elementDisplayName: "Radio button",
|
|
30
|
+
cssCustomProperties: {
|
|
31
|
+
unselectedBackgroundColor: "Unselected background color",
|
|
32
|
+
unselectedBorderColor: "Unselected border color",
|
|
33
|
+
selectedBackgroundColor: "Selected background color",
|
|
34
|
+
selectedBorderColor: "Selected border color",
|
|
35
|
+
dotColor: "Dot color",
|
|
36
|
+
size: "Radio button size"
|
|
34
37
|
}
|
|
38
|
+
},
|
|
39
|
+
optionLabel: {
|
|
40
|
+
elementDisplayName: "Option label"
|
|
41
|
+
},
|
|
42
|
+
groupLabel: {
|
|
43
|
+
elementDisplayName: "Group label"
|
|
35
44
|
}
|
|
36
45
|
};
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
emptyState_description: "Description",
|
|
45
|
-
isLoading: "Loading State",
|
|
46
|
-
loadMore: "Load More",
|
|
47
|
-
emptyStateContent: "Empty State"
|
|
48
|
-
},
|
|
49
|
-
customActions: {
|
|
50
|
-
presets: "Change Layout"
|
|
51
|
-
},
|
|
52
|
-
states: {
|
|
53
|
-
empty: "No Items"
|
|
46
|
+
const DesignStates = {
|
|
47
|
+
radio: {
|
|
48
|
+
hover: { displayName: "Hover", className: "radio-buttons__radio--hover" },
|
|
49
|
+
focus: { displayName: "Focus", className: "radio-buttons__radio--focus" },
|
|
50
|
+
disabled: {
|
|
51
|
+
displayName: "Disabled",
|
|
52
|
+
className: "radio-buttons__radio--disabled"
|
|
54
53
|
},
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
cssProperties: {
|
|
59
|
-
emptyStateBackground: "Background"
|
|
60
|
-
},
|
|
61
|
-
presets: {
|
|
62
|
-
cards: "Cards",
|
|
63
|
-
cards_off: "Cards Off",
|
|
64
|
-
list: "List",
|
|
65
|
-
slider: "Slider",
|
|
66
|
-
slider_vertical: "Slider Vertical",
|
|
67
|
-
grid: "Advanced grid"
|
|
54
|
+
invalid: {
|
|
55
|
+
displayName: "Invalid",
|
|
56
|
+
className: "radio-buttons__radio--invalid"
|
|
68
57
|
}
|
|
69
58
|
}
|
|
70
59
|
};
|
|
60
|
+
const defaultOptions = [
|
|
61
|
+
{ value: "option-1", label: "Option 1", disabled: false },
|
|
62
|
+
{ value: "option-2", label: "Option 2", disabled: false },
|
|
63
|
+
{ value: "option-3", label: "Option 3", disabled: false }
|
|
64
|
+
];
|
|
65
|
+
const defaultValues = {
|
|
66
|
+
label: "Label",
|
|
67
|
+
tooltip: "",
|
|
68
|
+
firstSelectedByDefault: "none",
|
|
69
|
+
required: false,
|
|
70
|
+
readOnly: false,
|
|
71
|
+
disabled: false
|
|
72
|
+
};
|
|
73
|
+
const VALUE_MISSING_MESSAGE = "This field is required";
|
|
74
|
+
const TestIds = {
|
|
75
|
+
root: "radio-buttons-root",
|
|
76
|
+
group: "radio-buttons-group",
|
|
77
|
+
legend: "radio-buttons-legend",
|
|
78
|
+
requiredIndicator: "radio-buttons-required-indicator",
|
|
79
|
+
tooltipButton: "radio-buttons-tooltip-button",
|
|
80
|
+
option: "radio-buttons-option",
|
|
81
|
+
control: "radio-buttons-control",
|
|
82
|
+
indicator: "radio-buttons-indicator",
|
|
83
|
+
optionLabel: "radio-buttons-option-label",
|
|
84
|
+
errorMessage: "radio-buttons-error-message"
|
|
85
|
+
};
|
|
86
|
+
const selectors = {
|
|
87
|
+
root: "radio-buttons",
|
|
88
|
+
radio: "radio-buttons__radio",
|
|
89
|
+
indicator: "radio-buttons__indicator",
|
|
90
|
+
label: "radio-buttons__label",
|
|
91
|
+
groupLabel: "radio-buttons__group-label"
|
|
92
|
+
};
|
|
93
|
+
const semanticClassNames = {
|
|
94
|
+
groupLabel: "radio-buttons__group-label",
|
|
95
|
+
requiredIndicator: "radio-buttons__required-indicator",
|
|
96
|
+
option: "radio-buttons__option",
|
|
97
|
+
radio: "radio-buttons__radio",
|
|
98
|
+
indicator: "radio-buttons__indicator",
|
|
99
|
+
label: "radio-buttons__label",
|
|
100
|
+
errorMessage: "radio-buttons__error-message"
|
|
101
|
+
};
|
|
71
102
|
export {
|
|
72
|
-
|
|
73
|
-
COLUMN_COUNT_CSS_VAR as C,
|
|
74
|
-
DEFAULT_ITEMS_PER_ROW as D,
|
|
75
|
-
FunctionalStateKeys as F,
|
|
76
|
-
LOADING_ITEM_COUNT_CSS_VAR as L,
|
|
103
|
+
DesignStates as D,
|
|
77
104
|
TestIds as T,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
105
|
+
VALUE_MISSING_MESSAGE as V,
|
|
106
|
+
defaultOptions as a,
|
|
107
|
+
semanticClassNames as b,
|
|
108
|
+
DisplayNames as c,
|
|
109
|
+
defaultValues as d,
|
|
110
|
+
selectors as s
|
|
82
111
|
};
|