@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.
Files changed (136) hide show
  1. package/dist/site/components/AccordionComponent/component.js +1 -1
  2. package/dist/site/components/AccordionComponent/manifest.js +1 -1
  3. package/dist/site/components/AnimatedIcon/manifest.js +1 -1
  4. package/dist/site/components/AudioPlayer/component.js +12 -10
  5. package/dist/site/components/AudioPlayer/manifest.js +1 -1
  6. package/dist/site/components/BoxContainer/component.js +1 -1
  7. package/dist/site/components/BoxContainer/manifest.js +1 -1
  8. package/dist/site/components/Breadcrumbs/component.js +2 -2
  9. package/dist/site/components/Breadcrumbs/manifest.js +1 -1
  10. package/dist/site/components/Button/manifest.js +1 -1
  11. package/dist/site/components/CollapsibleText/component.js +1 -1
  12. package/dist/site/components/CollapsibleText/manifest.js +1 -1
  13. package/dist/site/components/DatePicker/component.js +3290 -9827
  14. package/dist/site/components/DatePicker/manifest.js +1 -1
  15. package/dist/site/components/Dropdown/component.js +1 -1
  16. package/dist/site/components/Dropdown/manifest.js +1 -1
  17. package/dist/site/components/HTMLComponent/component.js +1 -1
  18. package/dist/site/components/HipaaIcon/component.js +1 -1
  19. package/dist/site/components/HipaaIcon/manifest.js +1 -1
  20. package/dist/site/components/LinkBar/component.js +1 -1
  21. package/dist/site/components/LinkBar/manifest.js +1 -1
  22. package/dist/site/components/Logo/component.js +1 -1
  23. package/dist/site/components/Logo/manifest.js +1 -1
  24. package/dist/site/components/Logo/sdk.js +1 -1
  25. package/dist/site/components/Lottie/component.js +1 -1
  26. package/dist/site/components/Lottie/manifest.js +1 -1
  27. package/dist/site/components/Menu/component.js +1 -1
  28. package/dist/site/components/Menu/manifest.js +1 -1
  29. package/dist/site/components/MultiStateBox/component.js +1 -1
  30. package/dist/site/components/MultiStateBox/manifest.js +1 -1
  31. package/dist/site/components/ProgressBar/component.js +1 -1
  32. package/dist/site/components/ProgressBar/manifest.js +1 -1
  33. package/dist/site/components/ProgressBar/sdk.js +1 -1
  34. package/dist/site/components/Repeater/component.js +1 -1
  35. package/dist/site/components/Repeater/manifest.js +1 -1
  36. package/dist/site/components/ShareButtons/component.js +1 -1
  37. package/dist/site/components/ShareButtons/manifest.js +1 -1
  38. package/dist/site/components/Tabs/component.js +1 -1
  39. package/dist/site/components/Tabs/manifest.js +1 -1
  40. package/dist/site/components/TextBox/component.js +1 -1
  41. package/dist/site/components/TextBox/manifest.js +1 -1
  42. package/dist/site/components/TextEffects3d/component.js +1 -1
  43. package/dist/site/components/TextEffects3d/manifest.js +1 -1
  44. package/dist/site/components/TextEffectsBauhaus/component.js +1 -1
  45. package/dist/site/components/TextEffectsBauhaus/manifest.js +1 -1
  46. package/dist/site/components/TextEffectsGlass/component.js +1 -1
  47. package/dist/site/components/TextEffectsGlass/manifest.js +1 -1
  48. package/dist/site/components/TextEffectsGlitch/component.js +1 -1
  49. package/dist/site/components/TextEffectsGlitch/manifest.js +1 -1
  50. package/dist/site/components/TextEffectsLetterPress/component.js +1 -1
  51. package/dist/site/components/TextEffectsLetterPress/manifest.js +1 -1
  52. package/dist/site/components/TextEffectsMatrix/component.js +1 -1
  53. package/dist/site/components/TextEffectsMatrix/manifest.js +1 -1
  54. package/dist/site/components/TextEffectsNeonSign/component.js +1 -1
  55. package/dist/site/components/TextEffectsNeonSign/manifest.js +1 -1
  56. package/dist/site/components/TextEffectsNoisy/component.js +1 -1
  57. package/dist/site/components/TextEffectsNoisy/manifest.js +1 -1
  58. package/dist/site/components/TextEffectsOutlineOut/component.js +2 -2
  59. package/dist/site/components/TextEffectsOutlineOut/manifest.js +1 -1
  60. package/dist/site/components/TextEffectsRetro/component.js +1 -1
  61. package/dist/site/components/TextEffectsRetro/manifest.js +1 -1
  62. package/dist/site/components/TextEffectsShook/component.js +1 -1
  63. package/dist/site/components/TextEffectsShook/manifest.js +1 -1
  64. package/dist/site/components/TextEffectsSticker/component.js +1 -1
  65. package/dist/site/components/TextEffectsSticker/manifest.js +2 -2
  66. package/dist/site/components/TextEffectsStriped/component.js +1 -1
  67. package/dist/site/components/TextEffectsStriped/manifest.js +1 -1
  68. package/dist/site/components/TextInput/component.js +171 -170
  69. package/dist/site/components/TextInput/manifest.js +1 -1
  70. package/dist/site/components/TimePicker/TimePicker.d.ts +3 -0
  71. package/dist/site/components/TimePicker/TimePicker.types.d.ts +29 -0
  72. package/dist/site/components/TimePicker/component.d.ts +2 -0
  73. package/dist/site/components/TimePicker/component.js +146 -0
  74. package/dist/site/components/TimePicker/component.preview.d.ts +2 -0
  75. package/dist/site/components/TimePicker/components/TimePickerField.d.ts +4 -0
  76. package/dist/site/components/TimePicker/constants.d.ts +32 -0
  77. package/dist/site/components/TimePicker/css.css +64 -0
  78. package/dist/site/components/TimePicker/hooks/useTimePickerValue.d.ts +10 -0
  79. package/dist/site/components/TimePicker/index.d.ts +2 -0
  80. package/dist/site/components/TimePicker/index.js +6 -0
  81. package/dist/site/components/TimePicker/manifest.d.ts +5 -0
  82. package/dist/site/components/TimePicker/manifest.js +113 -0
  83. package/dist/site/components/TimePicker/timePickerUtils.d.ts +15 -0
  84. package/dist/site/components/chunks/AnimatedIcon.js +1 -1
  85. package/dist/site/components/chunks/Button.js +1 -1
  86. package/dist/site/components/chunks/Button2.js +10 -829
  87. package/dist/site/components/chunks/DateField.js +6763 -0
  88. package/dist/site/components/chunks/Group.js +42 -155
  89. package/dist/site/components/chunks/I18nProvider.js +3 -3
  90. package/dist/site/components/chunks/Input.js +5 -5
  91. package/dist/site/components/chunks/Patterns.js +1 -1
  92. package/dist/site/components/chunks/TextEffectsShared.js +1 -1
  93. package/dist/site/components/chunks/constants10.js +14 -12
  94. package/dist/site/components/chunks/constants11.js +9 -9
  95. package/dist/site/components/chunks/constants12.js +10 -8
  96. package/dist/site/components/chunks/constants13.js +9 -13
  97. package/dist/site/components/chunks/constants14.js +14 -17
  98. package/dist/site/components/chunks/constants15.js +17 -12
  99. package/dist/site/components/chunks/constants16.js +11 -13
  100. package/dist/site/components/chunks/constants17.js +20 -66
  101. package/dist/site/components/chunks/constants18.js +67 -17
  102. package/dist/site/components/chunks/constants19.js +15 -50
  103. package/dist/site/components/chunks/constants2.js +30 -50
  104. package/dist/site/components/chunks/constants20.js +43 -45
  105. package/dist/site/components/chunks/constants21.js +48 -297
  106. package/dist/site/components/chunks/constants22.js +299 -41
  107. package/dist/site/components/chunks/constants23.js +44 -29
  108. package/dist/site/components/chunks/constants24.js +32 -17
  109. package/dist/site/components/chunks/constants25.js +16 -402
  110. package/dist/site/components/chunks/constants26.js +393 -73
  111. package/dist/site/components/chunks/constants27.js +80 -15
  112. package/dist/site/components/chunks/constants28.js +11 -42
  113. package/dist/site/components/chunks/constants29.js +44 -23
  114. package/dist/site/components/chunks/constants3.js +49 -14
  115. package/dist/site/components/chunks/constants30.js +28 -10
  116. package/dist/site/components/chunks/constants31.js +10 -132
  117. package/dist/site/components/chunks/constants32.js +112 -147
  118. package/dist/site/components/chunks/constants33.js +152 -49
  119. package/dist/site/components/chunks/constants34.js +53 -71
  120. package/dist/site/components/chunks/constants35.js +73 -77
  121. package/dist/site/components/chunks/constants36.js +76 -57
  122. package/dist/site/components/chunks/constants37.js +72 -0
  123. package/dist/site/components/chunks/constants4.js +10 -19
  124. package/dist/site/components/chunks/constants5.js +14 -14
  125. package/dist/site/components/chunks/constants6.js +11 -10
  126. package/dist/site/components/chunks/constants7.js +14 -14
  127. package/dist/site/components/chunks/constants8.js +22 -65
  128. package/dist/site/components/chunks/constants9.js +65 -20
  129. package/dist/site/components/chunks/filterDOMProps.js +7 -7
  130. package/dist/site/components/chunks/manifestBase.js +1 -1
  131. package/dist/site/components/chunks/useFocusable.js +118 -0
  132. package/dist/site/components/chunks/useLocalizedStringFormatter.js +1 -1
  133. package/dist/site/components/chunks/usePress.js +825 -0
  134. package/dist/site/components/chunks/utils.js +1 -1
  135. package/dist/site/components/extensions.js +9 -4
  136. package/package.json +3 -3
@@ -1,310 +1,61 @@
1
- import { C as CSS_PROPERTIES } from "./chunk-JPMZBG44.js";
2
- var PagesToShare = /* @__PURE__ */ ((PagesToShare2) => {
3
- PagesToShare2["home"] = "home";
4
- PagesToShare2["current"] = "current";
5
- return PagesToShare2;
6
- })(PagesToShare || {});
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 DEFAULT_ANIMATION_DURATION = 0.2;
2
+ const AnimatedSvgIds = {
3
+ animatedSvg: "animatedSvg",
4
+ animatedTagPath: "animatedPath",
5
+ animateTagForward: "animateForward",
6
+ animateTagBackward: "animateBackward"
7
+ };
8
+ var AnimationDirection = /* @__PURE__ */ ((AnimationDirection2) => {
9
+ AnimationDirection2["FORWARD"] = "Forward";
10
+ AnimationDirection2["BACKWARD"] = "Backward";
11
+ return AnimationDirection2;
12
+ })(AnimationDirection || {});
13
+ const AnimatedDataAttributes = {
14
+ [
15
+ "Forward"
16
+ /* FORWARD */
17
+ ]: "data-animated-end-path",
18
+ [
19
+ "Backward"
20
+ /* BACKWARD */
21
+ ]: "data-animated-start-path"
16
22
  };
17
- const valueToPlatformId = {
18
- "Shares on Facebook": platformIds.facebook,
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
26
- };
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
23
  const TestIds = {
48
- buttonsContainer: `${shareButtonsBaseId}-buttonsContainer`
49
- };
50
- const TranslationKeys = {
51
- ariaLabel: "ShareButtons_AriaLabel"
52
- };
53
- const translationKeys = [
54
- "wixui_ShareButtons_toast_link_copied",
55
- "wixui_ShareButtons_manage_copy_link_default_text",
56
- "ShareButtons_AriaLabel"
57
- ];
58
- const dataHooks = {
59
- presetWrapper: "share-buttons-preset-wrapper"
60
- };
61
- const DisplayNames = {
62
- elementDisplayName: "Share Buttons",
63
- presets: {
64
- horizontal: "Horizontal",
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"
94
- }
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
- }
24
+ animatedSvg: "animated-svg",
25
+ animateTagForward: "animate-tag-forward",
26
+ animateTagBackward: "animate-tag-backward"
113
27
  };
114
28
  const DesignStates = {
115
29
  root: {
116
- hover: { displayName: "Hover", className: "share-buttons--hover" }
30
+ hover: { displayName: "Hover", className: "animated-icon--hover" },
31
+ disabled: { displayName: "Disabled", className: "animated-icon--disabled" },
32
+ selected: { displayName: "Selected", className: "animated-icon--selected" }
117
33
  }
118
34
  };
119
- const DefaultValues = {
120
- buttonsSpacing: "10px",
121
- rowsSpacing: "10px",
122
- align: "center",
123
- buttonWidth: "fit-content",
124
- iconTextSpacing: "10px",
125
- iconPosition: "row",
126
- contentAlignment: "start",
127
- pageToShare: "home",
128
- horizontalPresetWidth: 400
129
- };
130
- const ButtonWidthOptions = [
131
- {
132
- value: "fit-content",
133
- displayName: "Fit to text"
134
- },
135
- {
136
- value: "100%",
137
- displayName: "Equal"
138
- }
139
- ];
140
- const ColumnFlexDirectionAppliedStyles = [
141
- {
142
- property: "--align-items-value",
143
- value: "var(--horizontal-alignment)"
144
- },
145
- {
146
- property: "--justify-content-value",
147
- value: "center"
148
- }
149
- ];
150
- const RowFlexDirectionAppliedStyles = [
151
- {
152
- property: "--justify-content-value",
153
- value: "var(--horizontal-alignment)"
154
- },
155
- {
156
- property: "--align-items-value",
157
- value: "center"
158
- }
159
- ];
160
- const IconPositionOptions = [
161
- {
162
- value: "row",
163
- displayName: "Before text",
164
- appliedStyles: RowFlexDirectionAppliedStyles
165
- },
166
- {
167
- value: "row-reverse",
168
- displayName: "After text",
169
- appliedStyles: RowFlexDirectionAppliedStyles
170
- },
171
- {
172
- value: "column-reverse",
173
- displayName: "Below text",
174
- appliedStyles: ColumnFlexDirectionAppliedStyles
175
- },
176
- {
177
- value: "column",
178
- displayName: "Above text",
179
- appliedStyles: ColumnFlexDirectionAppliedStyles
180
- }
181
- ];
182
- const PageToShareOptions = [
183
- { value: "home", displayName: "Homepage" },
184
- { value: "current", displayName: "Current page" }
185
- ];
186
- const DefaultButtons = [
187
- {
188
- unavailable: false,
189
- label: "Facebook",
190
- description: "Shares on Facebook",
191
- isHidden: false,
192
- platformId: "wixui_ShareButtons_facebook",
193
- illustration: {
194
- type: "Builder.VectorArt",
195
- uri: "11062b_30fe5729438347de94ad9836fa5e803e.svg"
196
- },
197
- disabled: false,
198
- type: "IShareButton",
199
- value: "wixui_ShareButtons_manage_facebook_share_address",
200
- isDefault: false
201
- },
202
- {
203
- unavailable: false,
204
- label: "X",
205
- description: "Shares on X",
206
- isHidden: false,
207
- platformId: "wixui_ShareButtons_twitter",
208
- illustration: {
209
- type: "Builder.VectorArt",
210
- uri: "11062b_2a5163bb94b641168e0a22e56b23e8d4.svg"
211
- },
212
- disabled: false,
213
- type: "IShareButton",
214
- value: "wixui_ShareButtons_manage_twitter_share_address",
215
- isDefault: false
216
- },
217
- {
218
- unavailable: false,
219
- label: "WhatsApp",
220
- description: "Shares on WhatsApp",
221
- isHidden: false,
222
- platformId: "wixui_ShareButtons_whatsapp",
223
- illustration: {
224
- type: "Builder.VectorArt",
225
- uri: "11062b_65971442c3364e5c9d0e5d430674994b.svg"
226
- },
227
- disabled: false,
228
- type: "IShareButton",
229
- value: "wixui_ShareButtons_manage_whatsapp_share_address",
230
- isDefault: false
231
- },
232
- {
233
- unavailable: false,
234
- label: "LinkedIn",
235
- description: "Shares on LinkedIn",
236
- isHidden: false,
237
- platformId: "wixui_ShareButtons_linkedin",
238
- illustration: {
239
- type: "Builder.VectorArt",
240
- uri: "11062b_8cf74ad49bb74f728899d6b43e02e4c0.svg"
241
- },
242
- disabled: false,
243
- type: "IShareButton",
244
- value: "wixui_ShareButtons_manage_linkedin_share_address",
245
- isDefault: false
246
- },
247
- {
248
- unavailable: false,
249
- label: "Pinterest",
250
- description: "Shares on Pinterest",
251
- isHidden: false,
252
- platformId: "wixui_ShareButtons_pinterest",
253
- illustration: {
254
- type: "Builder.VectorArt",
255
- uri: "11062b_04de07b936da4bffbe6c9d2daaffeceb.svg"
35
+ const DisplayNames = {
36
+ root: {
37
+ elementDisplayName: "Animated Icon",
38
+ customActions: {
39
+ animatedIcon: {
40
+ displayName: "Icon"
41
+ }
256
42
  },
257
- disabled: false,
258
- type: "IShareButton",
259
- value: "wixui_ShareButtons_manage_pinterest_share_address",
260
- isDefault: false
261
- },
262
- {
263
- unavailable: false,
264
- label: "Copy link",
265
- description: "Copies link",
266
- isHidden: false,
267
- platformId: "wixui_ShareButtons_copyButton",
268
- illustration: {
269
- type: "Builder.VectorArt",
270
- uri: "11062b_c5c2820390524c06b5aa2793b0eb464d.svg"
43
+ data: {
44
+ duration: "Duration"
271
45
  },
272
- disabled: false,
273
- type: "IShareButton",
274
- value: "wixui_ShareButtons_manage_copy_link_share_address",
275
- isDefault: false
46
+ cssCustomProperties: {
47
+ size: "Size",
48
+ fill: "Color",
49
+ rotation: "Rotation"
50
+ }
276
51
  }
277
- ];
278
- const DisplayConfig = {
279
- displayValues: [
280
- CSS_PROPERTIES.DISPLAY_VALUE.none,
281
- CSS_PROPERTIES.DISPLAY_VALUE.inline_block
282
- ]
283
52
  };
284
53
  export {
285
- ButtonWidthOptions as B,
286
- COPY_CONFIRMATION_TIMEOUT as C,
287
- DefaultValues as D,
288
- HAS_CUSTOM_FOCUS_CLASSNAME as H,
289
- IconPositionOptions as I,
290
- PagesToShare as P,
291
- TOOLTIP_SUCCESS_TEXT as T,
292
- TOOLTIP_FAILED_TEXT as a,
293
- linkCopiedTranslationKey as b,
294
- defaultRootAriaLabel as c,
295
- dataHooks as d,
296
- TestIds as e,
297
- TranslationKeys as f,
298
- shareUrlPrefixes as g,
299
- DesignStates as h,
300
- DisplayNames as i,
301
- DisplayConfig as j,
302
- PageToShareOptions as k,
303
- linkCopiedFailedTranslationKey as l,
304
- DefaultButtons as m,
305
- noButtonsErrorMessage as n,
306
- platformIds as p,
307
- sharerData as s,
308
- translationKeys as t,
309
- valueToPlatformId as v
54
+ AnimatedSvgIds as A,
55
+ DEFAULT_ANIMATION_DURATION as D,
56
+ TestIds as T,
57
+ AnimatedDataAttributes as a,
58
+ AnimationDirection as b,
59
+ DesignStates as c,
60
+ DisplayNames as d
310
61
  };