@wix/editor-react-components 1.2289.0 → 1.2290.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 +12 -10
- package/dist/site/components/AudioPlayer/manifest.js +1 -1
- package/dist/site/components/BoxContainer/component.js +1 -1
- package/dist/site/components/BoxContainer/manifest.js +1 -1
- package/dist/site/components/Breadcrumbs/component.js +2 -2
- package/dist/site/components/Breadcrumbs/manifest.js +1 -1
- package/dist/site/components/Button/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/DatePicker/component.js +3290 -9827
- package/dist/site/components/DatePicker/manifest.js +1 -1
- package/dist/site/components/Dropdown/component.js +1 -1
- package/dist/site/components/Dropdown/manifest.js +1 -1
- package/dist/site/components/HTMLComponent/component.js +1 -1
- package/dist/site/components/HipaaIcon/component.js +1 -1
- package/dist/site/components/HipaaIcon/manifest.js +1 -1
- package/dist/site/components/LinkBar/component.js +1 -1
- 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 +1 -1
- package/dist/site/components/Lottie/manifest.js +1 -1
- package/dist/site/components/Menu/component.js +1 -1
- 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/Repeater/component.js +1 -1
- package/dist/site/components/Repeater/manifest.js +1 -1
- package/dist/site/components/ShareButtons/component.js +1 -1
- package/dist/site/components/ShareButtons/manifest.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 +171 -170
- package/dist/site/components/TextInput/manifest.js +1 -1
- package/dist/site/components/TimePicker/TimePicker.d.ts +3 -0
- package/dist/site/components/TimePicker/TimePicker.types.d.ts +29 -0
- package/dist/site/components/TimePicker/component.d.ts +2 -0
- package/dist/site/components/TimePicker/component.js +146 -0
- package/dist/site/components/TimePicker/component.preview.d.ts +2 -0
- package/dist/site/components/TimePicker/components/TimePickerField.d.ts +4 -0
- package/dist/site/components/TimePicker/constants.d.ts +32 -0
- package/dist/site/components/TimePicker/css.css +64 -0
- package/dist/site/components/TimePicker/hooks/useTimePickerValue.d.ts +10 -0
- package/dist/site/components/TimePicker/index.d.ts +2 -0
- package/dist/site/components/TimePicker/index.js +6 -0
- package/dist/site/components/TimePicker/manifest.d.ts +5 -0
- package/dist/site/components/TimePicker/manifest.js +113 -0
- package/dist/site/components/TimePicker/timePickerUtils.d.ts +15 -0
- package/dist/site/components/chunks/AnimatedIcon.js +1 -1
- package/dist/site/components/chunks/Button.js +1 -1
- package/dist/site/components/chunks/Button2.js +10 -829
- package/dist/site/components/chunks/DateField.js +6763 -0
- package/dist/site/components/chunks/Group.js +42 -155
- package/dist/site/components/chunks/I18nProvider.js +3 -3
- package/dist/site/components/chunks/Input.js +5 -5
- package/dist/site/components/chunks/Patterns.js +1 -1
- package/dist/site/components/chunks/TextEffectsShared.js +1 -1
- package/dist/site/components/chunks/constants10.js +14 -12
- package/dist/site/components/chunks/constants11.js +9 -9
- package/dist/site/components/chunks/constants12.js +10 -8
- package/dist/site/components/chunks/constants13.js +9 -13
- package/dist/site/components/chunks/constants14.js +14 -17
- package/dist/site/components/chunks/constants15.js +17 -12
- package/dist/site/components/chunks/constants16.js +11 -13
- package/dist/site/components/chunks/constants17.js +20 -66
- package/dist/site/components/chunks/constants18.js +67 -17
- package/dist/site/components/chunks/constants19.js +15 -50
- package/dist/site/components/chunks/constants2.js +30 -50
- package/dist/site/components/chunks/constants20.js +43 -45
- package/dist/site/components/chunks/constants21.js +48 -297
- package/dist/site/components/chunks/constants22.js +299 -41
- package/dist/site/components/chunks/constants23.js +44 -29
- package/dist/site/components/chunks/constants24.js +32 -17
- package/dist/site/components/chunks/constants25.js +16 -402
- package/dist/site/components/chunks/constants26.js +393 -73
- package/dist/site/components/chunks/constants27.js +80 -15
- package/dist/site/components/chunks/constants28.js +11 -42
- package/dist/site/components/chunks/constants29.js +44 -23
- package/dist/site/components/chunks/constants3.js +49 -14
- package/dist/site/components/chunks/constants30.js +28 -10
- package/dist/site/components/chunks/constants31.js +10 -132
- package/dist/site/components/chunks/constants32.js +112 -147
- package/dist/site/components/chunks/constants33.js +152 -49
- package/dist/site/components/chunks/constants34.js +53 -71
- package/dist/site/components/chunks/constants35.js +73 -77
- package/dist/site/components/chunks/constants36.js +76 -57
- package/dist/site/components/chunks/constants37.js +72 -0
- package/dist/site/components/chunks/constants4.js +10 -19
- package/dist/site/components/chunks/constants5.js +14 -14
- package/dist/site/components/chunks/constants6.js +11 -10
- package/dist/site/components/chunks/constants7.js +14 -14
- package/dist/site/components/chunks/constants8.js +22 -65
- package/dist/site/components/chunks/constants9.js +65 -20
- package/dist/site/components/chunks/filterDOMProps.js +7 -7
- package/dist/site/components/chunks/manifestBase.js +1 -1
- package/dist/site/components/chunks/useFocusable.js +118 -0
- package/dist/site/components/chunks/useLocalizedStringFormatter.js +1 -1
- package/dist/site/components/chunks/usePress.js +825 -0
- package/dist/site/components/chunks/utils.js +1 -1
- package/dist/site/components/extensions.js +9 -4
- package/package.json +3 -3
|
@@ -1,408 +1,22 @@
|
|
|
1
|
-
import { useRef, useState, useEffect } from "react";
|
|
2
|
-
const DISABLED_ANIMATION_NAME = "none";
|
|
3
|
-
const AnimationPhase = {
|
|
4
|
-
Enter: "enter",
|
|
5
|
-
EnterActive: "enterActive",
|
|
6
|
-
EnterDone: "enterDone",
|
|
7
|
-
Exit: "exit",
|
|
8
|
-
ExitActive: "exitActive",
|
|
9
|
-
ExitDone: "exitDone"
|
|
10
|
-
};
|
|
11
|
-
const useAnimationState = (animationConfigMap, initialAnimationState) => {
|
|
12
|
-
const afterAnimationInitRef = useRef(null);
|
|
13
|
-
const afterAnimationActiveRef = useRef(null);
|
|
14
|
-
const [animationState, setAnimationState] = useState(initialAnimationState);
|
|
15
|
-
const abortAnimationCallbacks = () => {
|
|
16
|
-
afterAnimationInitRef.current = null;
|
|
17
|
-
afterAnimationActiveRef.current = null;
|
|
18
|
-
};
|
|
19
|
-
const initEnterAnimation = (animationName, onAnimationDone) => {
|
|
20
|
-
abortAnimationCallbacks();
|
|
21
|
-
if (animationName === DISABLED_ANIMATION_NAME) {
|
|
22
|
-
return onAnimationDone == null ? void 0 : onAnimationDone();
|
|
23
|
-
}
|
|
24
|
-
setAnimationState({
|
|
25
|
-
name: animationName,
|
|
26
|
-
phase: AnimationPhase.Enter
|
|
27
|
-
});
|
|
28
|
-
afterAnimationInitRef.current = () => {
|
|
29
|
-
setAnimationState({
|
|
30
|
-
name: animationName,
|
|
31
|
-
phase: AnimationPhase.EnterActive
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
afterAnimationActiveRef.current = () => {
|
|
35
|
-
setAnimationState({
|
|
36
|
-
name: animationName,
|
|
37
|
-
phase: AnimationPhase.EnterDone
|
|
38
|
-
});
|
|
39
|
-
onAnimationDone == null ? void 0 : onAnimationDone();
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
const skipToEnterDone = (animationName) => {
|
|
43
|
-
abortAnimationCallbacks();
|
|
44
|
-
if (animationName === DISABLED_ANIMATION_NAME) {
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
setAnimationState({
|
|
48
|
-
name: animationName,
|
|
49
|
-
phase: AnimationPhase.EnterDone
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
const initExitAnimation = (animationName, onAnimationDone) => {
|
|
53
|
-
abortAnimationCallbacks();
|
|
54
|
-
if (animationName === DISABLED_ANIMATION_NAME) {
|
|
55
|
-
return onAnimationDone == null ? void 0 : onAnimationDone();
|
|
56
|
-
}
|
|
57
|
-
setAnimationState({
|
|
58
|
-
name: animationName,
|
|
59
|
-
phase: AnimationPhase.Exit
|
|
60
|
-
});
|
|
61
|
-
afterAnimationInitRef.current = () => {
|
|
62
|
-
setAnimationState({
|
|
63
|
-
name: animationName,
|
|
64
|
-
phase: AnimationPhase.ExitActive
|
|
65
|
-
});
|
|
66
|
-
};
|
|
67
|
-
afterAnimationActiveRef.current = () => {
|
|
68
|
-
setAnimationState({
|
|
69
|
-
name: animationName,
|
|
70
|
-
phase: AnimationPhase.ExitDone
|
|
71
|
-
});
|
|
72
|
-
onAnimationDone == null ? void 0 : onAnimationDone();
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
useEffect(() => {
|
|
76
|
-
const { name } = animationState;
|
|
77
|
-
const { duration: animationDuration } = animationConfigMap[name];
|
|
78
|
-
const isInitPhase = animationState.phase === AnimationPhase.Enter || animationState.phase === AnimationPhase.Exit;
|
|
79
|
-
const isActivePhase = animationState.phase === AnimationPhase.EnterActive || animationState.phase === AnimationPhase.ExitActive;
|
|
80
|
-
if (isInitPhase) {
|
|
81
|
-
window.requestAnimationFrame(() => {
|
|
82
|
-
var _a;
|
|
83
|
-
(_a = afterAnimationInitRef.current) == null ? void 0 : _a.call(afterAnimationInitRef);
|
|
84
|
-
afterAnimationInitRef.current = null;
|
|
85
|
-
});
|
|
86
|
-
} else if (isActivePhase) {
|
|
87
|
-
setTimeout(() => {
|
|
88
|
-
var _a;
|
|
89
|
-
(_a = afterAnimationActiveRef.current) == null ? void 0 : _a.call(afterAnimationActiveRef);
|
|
90
|
-
afterAnimationActiveRef.current = null;
|
|
91
|
-
}, animationDuration);
|
|
92
|
-
}
|
|
93
|
-
}, [animationState.phase]);
|
|
94
|
-
return {
|
|
95
|
-
animationState,
|
|
96
|
-
initEnterAnimation,
|
|
97
|
-
initExitAnimation,
|
|
98
|
-
skipToEnterDone
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
const MenuOrientation = {
|
|
102
|
-
Horizontal: "horizontal",
|
|
103
|
-
Vertical: "vertical"
|
|
104
|
-
};
|
|
105
|
-
const VerticalDropdownDisplay = {
|
|
106
|
-
AlwaysOpen: "alwaysOpen"
|
|
107
|
-
};
|
|
108
|
-
const MenuAnimationName = {
|
|
109
|
-
None: DISABLED_ANIMATION_NAME,
|
|
110
|
-
Calm: "calm",
|
|
111
|
-
Underline: "underline",
|
|
112
|
-
Wash: "wash",
|
|
113
|
-
Bullet: "bullet",
|
|
114
|
-
Wave: "wave",
|
|
115
|
-
Bounce: "bounce",
|
|
116
|
-
Tint: "tint",
|
|
117
|
-
TextWash: "textWash",
|
|
118
|
-
Wobble: "wobble",
|
|
119
|
-
Brackets: "brackets",
|
|
120
|
-
Float: "float",
|
|
121
|
-
Shape: "shape",
|
|
122
|
-
Expand: "expand",
|
|
123
|
-
Circle: "circle",
|
|
124
|
-
Shadow: "shadow",
|
|
125
|
-
LineRise: "lineRise",
|
|
126
|
-
Overline: "overline",
|
|
127
|
-
CenterLine: "centerLine",
|
|
128
|
-
Skew: "skew",
|
|
129
|
-
Point: "point",
|
|
130
|
-
Blur: "blur"
|
|
131
|
-
};
|
|
132
|
-
const DropdownAnimationName = {
|
|
133
|
-
None: DISABLED_ANIMATION_NAME,
|
|
134
|
-
RevealFromTop: "revealFromTop",
|
|
135
|
-
FadeIn: "fadeIn"
|
|
136
|
-
};
|
|
137
|
-
const HamburgerMenuAnimationName = {
|
|
138
|
-
None: DISABLED_ANIMATION_NAME,
|
|
139
|
-
RevealFromRight: "revealFromRight",
|
|
140
|
-
FadeIn: "fadeIn"
|
|
141
|
-
};
|
|
142
|
-
const DisplayNames = {
|
|
143
|
-
root: {
|
|
144
|
-
elementDisplayName: "Menu",
|
|
145
|
-
actions: {
|
|
146
|
-
manageMenu: "Manage Menu",
|
|
147
|
-
design: "Design",
|
|
148
|
-
settings: "Settings"
|
|
149
|
-
},
|
|
150
|
-
customActions: {
|
|
151
|
-
format: {
|
|
152
|
-
displayName: "Change Format"
|
|
153
|
-
},
|
|
154
|
-
animatedIcon: {
|
|
155
|
-
displayName: "Customize Icon"
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
presets: {
|
|
159
|
-
horizontalScrollNavbar: "Horizontal Scroll Navigation Bar",
|
|
160
|
-
horizontalHugNavbar: "Horizontal Hug Navigation Bar",
|
|
161
|
-
verticalNavbar: "Vertical Navigation Bar",
|
|
162
|
-
hamburgerMenu: "Hamburger menu"
|
|
163
|
-
},
|
|
164
|
-
states: {
|
|
165
|
-
hamburgerDialog: "Hamburger menu",
|
|
166
|
-
dropdown: "Dropdown"
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
navbar: {
|
|
170
|
-
elementDisplayName: "Menu bar",
|
|
171
|
-
displayGroups: {
|
|
172
|
-
dividerBorderGroup: "Dividers"
|
|
173
|
-
},
|
|
174
|
-
cssCustomProperties: {
|
|
175
|
-
"vertical-dropdown-display": "Items display",
|
|
176
|
-
"items-width": "Item width",
|
|
177
|
-
"container-align": "Item alignment",
|
|
178
|
-
"menu-items-row-gap": "Space between menu items",
|
|
179
|
-
"menu-items-column-gap": "Space between menu items"
|
|
180
|
-
},
|
|
181
|
-
actions: {
|
|
182
|
-
manageMenu: "Manage Menu"
|
|
183
|
-
},
|
|
184
|
-
options: {
|
|
185
|
-
alwaysOpen: "Open",
|
|
186
|
-
expandCollapse: "Closed",
|
|
187
|
-
fitToText: "Fit to text",
|
|
188
|
-
fillMenu: "Fill menu"
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
item: {
|
|
192
|
-
elementDisplayName: "Menu items",
|
|
193
|
-
cssProperties: {
|
|
194
|
-
justifyContent: "Text alignment",
|
|
195
|
-
background: "Background",
|
|
196
|
-
columnGap: "Space between menu items and icons",
|
|
197
|
-
"item-icon-size": "Size"
|
|
198
|
-
},
|
|
199
|
-
displayGroups: {
|
|
200
|
-
iconGroup: "Icons"
|
|
201
|
-
},
|
|
202
|
-
states: {
|
|
203
|
-
hover: "Hover",
|
|
204
|
-
selected: "Selected"
|
|
205
|
-
}
|
|
206
|
-
},
|
|
207
|
-
dropdown: {
|
|
208
|
-
elementDisplayName: "Dropdowns",
|
|
209
|
-
cssCustomProperties: {
|
|
210
|
-
anchor: "Dropdown width",
|
|
211
|
-
align: "Dropdown position",
|
|
212
|
-
"items-width": "Item width",
|
|
213
|
-
"columns-number": "Number of columns",
|
|
214
|
-
"space-above": "Space above dropdowns",
|
|
215
|
-
"horizontal-margin": "Dropdown margin",
|
|
216
|
-
"item-position": "Dropdown box position"
|
|
217
|
-
},
|
|
218
|
-
options: {
|
|
219
|
-
menuItem: "Fit to items",
|
|
220
|
-
menuStretched: "Fit to menu",
|
|
221
|
-
screen: "Stretch to page",
|
|
222
|
-
start: "Start",
|
|
223
|
-
center: "Middle",
|
|
224
|
-
end: "End",
|
|
225
|
-
fitToText: "Fit to text",
|
|
226
|
-
fillDropdown: "Fill dropdowns",
|
|
227
|
-
afterItems: "After items",
|
|
228
|
-
beforeItems: "Before items",
|
|
229
|
-
aboveItems: "Above items",
|
|
230
|
-
belowItems: "Below items"
|
|
231
|
-
},
|
|
232
|
-
displayGroups: {
|
|
233
|
-
gapGroup: "Space between items"
|
|
234
|
-
}
|
|
235
|
-
},
|
|
236
|
-
dropdownItem: {
|
|
237
|
-
elementDisplayName: "Dropdown items"
|
|
238
|
-
},
|
|
239
|
-
dropdownSubItem: {
|
|
240
|
-
elementDisplayName: "Dropdown sub-items"
|
|
241
|
-
},
|
|
242
|
-
scrollButton: {
|
|
243
|
-
elementDisplayName: "Scroll button",
|
|
244
|
-
cssProperties: {
|
|
245
|
-
background: "Background"
|
|
246
|
-
},
|
|
247
|
-
cssCustomProperties: {
|
|
248
|
-
"scroll-button-icon-size": "Size"
|
|
249
|
-
},
|
|
250
|
-
displayGroups: {
|
|
251
|
-
scrollButtonGroup: "Icon"
|
|
252
|
-
}
|
|
253
|
-
},
|
|
254
|
-
hamburgerMenu: {
|
|
255
|
-
elementDisplayName: "Hamburger menu",
|
|
256
|
-
cssCustomProperties: {
|
|
257
|
-
"hamburger-wrapper-width": "Width",
|
|
258
|
-
"wrapper-position": "Position",
|
|
259
|
-
"menu-position": "Menu Position",
|
|
260
|
-
"close-button-position": "Close button position",
|
|
261
|
-
"overlay-background": "Overlay Background"
|
|
262
|
-
},
|
|
263
|
-
options: {
|
|
264
|
-
third: "Third of page",
|
|
265
|
-
twoThirds: "Two thirds of page",
|
|
266
|
-
half: "Half page",
|
|
267
|
-
full: "Full page",
|
|
268
|
-
start: "Start",
|
|
269
|
-
middle: "Middle",
|
|
270
|
-
end: "End",
|
|
271
|
-
top: "Top",
|
|
272
|
-
bottom: "Bottom"
|
|
273
|
-
}
|
|
274
|
-
},
|
|
275
|
-
hamburgerOpenButton: {
|
|
276
|
-
elementDisplayName: "Hamburger button"
|
|
277
|
-
},
|
|
278
|
-
hamburgerCloseButton: {
|
|
279
|
-
elementDisplayName: "Close Button"
|
|
280
|
-
}
|
|
281
|
-
};
|
|
282
1
|
const selectors = {
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
hamburgerMenuHeaderContent: "hamburger-menu-header-content",
|
|
293
|
-
hamburgerMenuOpenButton: "hamburger-open-button",
|
|
294
|
-
hamburgerMenuCloseButton: "hamburger-close-button"
|
|
295
|
-
};
|
|
296
|
-
const elementKeys = {
|
|
297
|
-
navbar: "navbar",
|
|
298
|
-
hamburgerMenu: "hamburgerMenu",
|
|
299
|
-
hamburgerOpenButton: "hamburgerOpenButton",
|
|
300
|
-
hamburgerCloseButton: "hamburgerCloseButton",
|
|
301
|
-
item: "item",
|
|
302
|
-
subItem: "subItem",
|
|
303
|
-
scrollButton: "scrollButton",
|
|
304
|
-
dropdown: "dropdown"
|
|
305
|
-
};
|
|
306
|
-
const presets = {
|
|
307
|
-
horizontalScrollNavbar: "horizontalScrollNavbar",
|
|
308
|
-
horizontalHugNavbar: "horizontalHugNavbar",
|
|
309
|
-
verticalNavbar: "verticalNavbar",
|
|
310
|
-
hamburgerMenu: "hamburgerMenu"
|
|
311
|
-
};
|
|
312
|
-
const states = {
|
|
313
|
-
dropdown: "dropdown",
|
|
314
|
-
hamburgerDialog: "hamburgerDialog",
|
|
315
|
-
hamburgerDialogDropdown: "hamburgerDialogDropdown"
|
|
316
|
-
};
|
|
317
|
-
const DesignStates = {
|
|
318
|
-
item: {
|
|
319
|
-
hover: {
|
|
320
|
-
displayName: DisplayNames.item.states.hover,
|
|
321
|
-
className: "menu__item--hover"
|
|
322
|
-
},
|
|
323
|
-
selected: {
|
|
324
|
-
displayName: DisplayNames.item.states.selected,
|
|
325
|
-
className: "menu__item--selected"
|
|
326
|
-
}
|
|
327
|
-
},
|
|
328
|
-
dropdownItem: {
|
|
329
|
-
hover: {
|
|
330
|
-
displayName: "Hover",
|
|
331
|
-
className: "menu__dropdown-item--hover"
|
|
332
|
-
},
|
|
333
|
-
selected: {
|
|
334
|
-
displayName: "Selected",
|
|
335
|
-
className: "menu__dropdown-item--selected"
|
|
336
|
-
}
|
|
337
|
-
},
|
|
338
|
-
dropdownSubItem: {
|
|
339
|
-
hover: {
|
|
340
|
-
displayName: "Hover",
|
|
341
|
-
className: "menu__dropdown-sub-item--hover"
|
|
342
|
-
},
|
|
343
|
-
selected: {
|
|
344
|
-
displayName: "Selected",
|
|
345
|
-
className: "menu__dropdown-sub-item--selected"
|
|
346
|
-
}
|
|
347
|
-
},
|
|
348
|
-
scrollButton: {
|
|
349
|
-
hover: {
|
|
350
|
-
displayName: "Hover",
|
|
351
|
-
className: "menu__scroll-button--hover"
|
|
352
|
-
}
|
|
2
|
+
root: "multi-state-box",
|
|
3
|
+
stateContainer: "state-container"
|
|
4
|
+
};
|
|
5
|
+
const DISPLAY_NAMES = {
|
|
6
|
+
component: "Multi-State Box",
|
|
7
|
+
data: {
|
|
8
|
+
states: "State",
|
|
9
|
+
activeStateName: "Active state",
|
|
10
|
+
stateName: "State name"
|
|
353
11
|
}
|
|
354
12
|
};
|
|
355
|
-
const
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
menuItem: "0",
|
|
360
|
-
menuStretched: "1",
|
|
361
|
-
screen: "2"
|
|
362
|
-
};
|
|
363
|
-
const ARIA_LABEL_NAMESPACE = "ariaLabels";
|
|
364
|
-
const translationsKeys = {
|
|
365
|
-
menuNavAriaLabel: "dropDownMenu_AriaLabel_TopLevel_SiteNavigation",
|
|
366
|
-
dropdownButtonAriaLabel: "menu_dropdown_chevron_button_aria_label"
|
|
367
|
-
};
|
|
368
|
-
const defaultTranslations = {
|
|
369
|
-
menuNavAriaLabel: "Site",
|
|
370
|
-
dropdownButtonAriaLabel: "More pages"
|
|
371
|
-
};
|
|
372
|
-
const MenuParts = {
|
|
373
|
-
Navbar: "navbar",
|
|
374
|
-
DropdownContainer: "dropdown-container",
|
|
375
|
-
DropdownButton: "dropdown-button",
|
|
376
|
-
DropdownIcon: "dropdown-icon",
|
|
377
|
-
Label: "label",
|
|
378
|
-
DropdownItem: "dropdown-item",
|
|
379
|
-
DropdownItemLabel: "dropdown-item-label",
|
|
380
|
-
DropdownSubItem: "dropdown-subitem",
|
|
381
|
-
DropdownSubItemLabel: "dropdown-subitem-label",
|
|
382
|
-
MenuItem: "menu-item",
|
|
383
|
-
MenuItemContent: "menu-item-content",
|
|
384
|
-
MenuItemLink: "menu-item-link",
|
|
385
|
-
ScrollBackwardButton: "scroll-backward-button",
|
|
386
|
-
ScrollForwardButton: "scroll-forward-button"
|
|
13
|
+
const DESCRIPTIONS = {
|
|
14
|
+
data: {
|
|
15
|
+
activeStateName: "To trigger states from CMS or code, use the connect icon to bind this property"
|
|
16
|
+
}
|
|
387
17
|
};
|
|
388
18
|
export {
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
MenuAnimationName as M,
|
|
393
|
-
VerticalDropdownDisplay as V,
|
|
394
|
-
MenuOrientation as a,
|
|
395
|
-
MenuParts as b,
|
|
396
|
-
ARIA_LABEL_NAMESPACE as c,
|
|
397
|
-
defaultTranslations as d,
|
|
398
|
-
DesignStates as e,
|
|
399
|
-
DisplayNames as f,
|
|
400
|
-
DropdownAnchorPositions as g,
|
|
401
|
-
DropdownAppliedStyleProperties as h,
|
|
402
|
-
elementKeys as i,
|
|
403
|
-
states as j,
|
|
404
|
-
presets as p,
|
|
405
|
-
selectors as s,
|
|
406
|
-
translationsKeys as t,
|
|
407
|
-
useAnimationState as u
|
|
19
|
+
DESCRIPTIONS as D,
|
|
20
|
+
DISPLAY_NAMES as a,
|
|
21
|
+
selectors as s
|
|
408
22
|
};
|