@wix/editor-react-components 1.2452.0 → 1.2453.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/AccordionItem.d.ts +1 -1
- package/dist/site/components/AccordionComponent/component.js +59 -34
- package/dist/site/components/AccordionComponent/manifestConfigs/iconPositionConfig.d.ts +2 -2
- package/dist/site/components/AccordionComponent/types.d.ts +9 -3
- package/dist/site/components/AudioPlayer/component.js +92 -35
- package/dist/site/components/AudioPlayer/manifestConfigs/controlsConfig.d.ts +8 -8
- package/dist/site/components/AudioPlayer/manifestConfigs/coverMediaConfig.d.ts +1 -1
- package/dist/site/components/AudioPlayer/types.d.ts +26 -0
- package/dist/site/components/Breadcrumbs/BreadcrumbItem.d.ts +1 -1
- package/dist/site/components/Breadcrumbs/Separator.d.ts +3 -1
- package/dist/site/components/Breadcrumbs/component.js +20 -11
- package/dist/site/components/Breadcrumbs/types.d.ts +10 -7
- package/dist/site/components/Button/Button.types.d.ts +5 -0
- package/dist/site/components/Checkbox/Checkbox.types.d.ts +8 -0
- package/dist/site/components/Checkbox/component.js +7 -3
- package/dist/site/components/CheckboxGroup/CheckboxGroup.types.d.ts +12 -0
- package/dist/site/components/CheckboxGroup/component.js +41 -31
- package/dist/site/components/CollapsibleText/component.js +7 -5
- package/dist/site/components/CollapsibleText/types.d.ts +1 -0
- package/dist/site/components/DatePicker/DatePicker.types.d.ts +28 -0
- package/dist/site/components/DatePicker/component.js +128 -88
- package/dist/site/components/DatePicker/components/DatePickerCalendar.d.ts +3 -1
- package/dist/site/components/DatePicker/components/DatePickerField.d.ts +9 -1
- package/dist/site/components/DatePicker/components/DatePickerLabel.d.ts +2 -1
- package/dist/site/components/Dropdown/Dropdown.types.d.ts +25 -0
- package/dist/site/components/Dropdown/component.js +36 -23
- package/dist/site/components/Dropdown/components/DropdownChips.d.ts +2 -1
- package/dist/site/components/Dropdown/components/DropdownList.d.ts +3 -1
- package/dist/site/components/Dropdown/components/DropdownTrigger.d.ts +3 -1
- package/dist/site/components/LegacyAppWidget/component.js +3 -2
- package/dist/site/components/LegacyAppWidget/components/AppWidget.types.d.ts +4 -2
- package/dist/site/components/LegacyContainer/component.d.ts +3 -1
- package/dist/site/components/LegacyContainer/component.js +2 -0
- package/dist/site/components/LegacyContainer/components/Container.types.d.ts +2 -1
- package/dist/site/components/LegacyMultiStateBox/LegacyMultiStateBox.types.d.ts +2 -0
- package/dist/site/components/Line/manifestConfigs/shapeConfig.d.ts +2 -2
- package/dist/site/components/Line/manifestConfigs/typeConfig.d.ts +2 -2
- package/dist/site/components/Lottie/component.js +4 -1
- package/dist/site/components/Lottie/types.d.ts +6 -0
- package/dist/site/components/Menu/Menu.types.d.ts +33 -3
- package/dist/site/components/Menu/component.js +62 -30
- package/dist/site/components/Menu/components/MenuContent/MenuItem/MenuItemLabel.d.ts +1 -0
- package/dist/site/components/Menu/components/Submenu/types.d.ts +2 -0
- package/dist/site/components/Menu/manifestConfigs/dropdownConfig.d.ts +45 -45
- package/dist/site/components/ProgressBar/ProgressBar.d.ts +9 -8
- package/dist/site/components/ProgressBar/component.js +8 -3
- package/dist/site/components/RadioButtons/RadioButtons.types.d.ts +12 -0
- package/dist/site/components/RadioButtons/component.js +61 -54
- package/dist/site/components/ShareButtons/ShareButtons.types.d.ts +13 -0
- package/dist/site/components/ShareButtons/component.js +23 -8
- package/dist/site/components/ShareButtons/constants.d.ts +1 -1
- package/dist/site/components/Slideshow/SlideIndicators.d.ts +2 -5
- package/dist/site/components/Slideshow/Slideshow.d.ts +10 -7
- package/dist/site/components/Slideshow/component.js +23 -12
- package/dist/site/components/Tabs/Tabs.d.ts +9 -0
- package/dist/site/components/Tabs/component.js +23 -10
- package/dist/site/components/Tabs/components/ScrollControls/ScrollControls.d.ts +3 -0
- package/dist/site/components/TestComp/TestComp.d.ts +3 -0
- package/dist/site/components/TestComp/component.js +39 -9
- package/dist/site/components/TextBox/TextBox.types.d.ts +12 -0
- package/dist/site/components/TextBox/component.js +9 -4
- package/dist/site/components/TextEffectsShared/manifestBase.d.ts +15 -15
- package/dist/site/components/TimePicker/TimePicker.types.d.ts +16 -0
- package/dist/site/components/TimePicker/component.js +59 -33
- package/dist/site/components/TimePicker/components/TimePickerField.d.ts +3 -1
- package/dist/site/components/TransparentVideo/useTransparentVideo.d.ts +1 -1
- package/dist/site/components/chunks/Button.js +7 -4
- package/dist/site/components/chunks/ResponsiveBox.js +9 -6
- package/dist/site/components/chunks/ResponsiveContainer.js +8 -2
- package/dist/site/components/chunks/types.impl.js +0 -18
- package/package.json +4 -4
|
@@ -34,6 +34,7 @@ const styles = {
|
|
|
34
34
|
const noop = () => {
|
|
35
35
|
};
|
|
36
36
|
function TextBoxComponent(props) {
|
|
37
|
+
var _a, _b, _c;
|
|
37
38
|
const environmentService = useService(EnvironmentDefinition);
|
|
38
39
|
const {
|
|
39
40
|
id,
|
|
@@ -56,7 +57,8 @@ function TextBoxComponent(props) {
|
|
|
56
57
|
onBlur = noop,
|
|
57
58
|
onValidate,
|
|
58
59
|
onValidityChange,
|
|
59
|
-
wix
|
|
60
|
+
wix,
|
|
61
|
+
elementProps
|
|
60
62
|
} = props;
|
|
61
63
|
const isControlled = props.value !== void 0;
|
|
62
64
|
const defaultValue = props.defaultValue ?? defaultValues.defaultValue;
|
|
@@ -137,7 +139,8 @@ function TextBoxComponent(props) {
|
|
|
137
139
|
className: clsx(
|
|
138
140
|
styles.label,
|
|
139
141
|
selectors.label,
|
|
140
|
-
formatClassNames(semanticClassNames.label)
|
|
142
|
+
formatClassNames(semanticClassNames.label),
|
|
143
|
+
(_a = elementProps == null ? void 0 : elementProps.label) == null ? void 0 : _a.className
|
|
141
144
|
),
|
|
142
145
|
"data-testid": TestIds.label,
|
|
143
146
|
children: [
|
|
@@ -175,7 +178,8 @@ function TextBoxComponent(props) {
|
|
|
175
178
|
className: clsx(
|
|
176
179
|
styles.input,
|
|
177
180
|
selectors.input,
|
|
178
|
-
formatClassNames(semanticClassNames.input)
|
|
181
|
+
formatClassNames(semanticClassNames.input),
|
|
182
|
+
(_b = elementProps == null ? void 0 : elementProps.input) == null ? void 0 : _b.className
|
|
179
183
|
),
|
|
180
184
|
...isControlled ? { value: props.value } : { defaultValue },
|
|
181
185
|
onValueChange: handleValueChange,
|
|
@@ -196,7 +200,8 @@ function TextBoxComponent(props) {
|
|
|
196
200
|
className: clsx(
|
|
197
201
|
styles.description,
|
|
198
202
|
selectors.description,
|
|
199
|
-
formatClassNames(semanticClassNames.description)
|
|
203
|
+
formatClassNames(semanticClassNames.description),
|
|
204
|
+
(_c = elementProps == null ? void 0 : elementProps.description) == null ? void 0 : _c.className
|
|
200
205
|
),
|
|
201
206
|
"data-testid": TestIds.description,
|
|
202
207
|
children: description2
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
export declare const textEffectsInstallation: {
|
|
2
2
|
initialSize: {
|
|
3
3
|
width: {
|
|
4
|
-
sizingType: import('@wix/
|
|
4
|
+
sizingType: import('@wix/component-protocol/schema').SizingType;
|
|
5
5
|
};
|
|
6
6
|
height: {
|
|
7
|
-
sizingType: import('@wix/
|
|
7
|
+
sizingType: import('@wix/component-protocol/schema').SizingType;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
11
|
export declare const textEffectsLayout: {
|
|
12
|
-
resizeDirection: import('@wix/
|
|
13
|
-
contentResizeDirection: import('@wix/
|
|
12
|
+
resizeDirection: import('@wix/component-protocol/schema').ResizeDirection;
|
|
13
|
+
contentResizeDirection: import('@wix/component-protocol/schema').ContentResizeDirection;
|
|
14
14
|
disableStretching: boolean;
|
|
15
15
|
disablePositioning: boolean;
|
|
16
16
|
};
|
|
17
17
|
export declare const textEffectsCommonData: {
|
|
18
18
|
direction: {
|
|
19
|
-
dataType: import('@wix/
|
|
19
|
+
dataType: import('@wix/component-protocol/schema').DataType;
|
|
20
20
|
};
|
|
21
21
|
patternScope: {
|
|
22
22
|
displayName: string;
|
|
23
|
-
dataType: import('@wix/
|
|
23
|
+
dataType: import('@wix/component-protocol/schema').DataType;
|
|
24
24
|
textEnum: {
|
|
25
25
|
options: ({
|
|
26
26
|
value: "none";
|
|
@@ -36,9 +36,9 @@ export declare const textEffectsCommonData: {
|
|
|
36
36
|
defaultValue: "none";
|
|
37
37
|
};
|
|
38
38
|
a11y: {
|
|
39
|
-
dataType: import('@wix/
|
|
39
|
+
dataType: import('@wix/component-protocol/schema').DataType;
|
|
40
40
|
a11y: {
|
|
41
|
-
attributes: import('@wix/
|
|
41
|
+
attributes: import('@wix/component-protocol/schema').A11yAttributes[];
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
44
|
};
|
|
@@ -58,12 +58,12 @@ export declare const textEffectsBaseCssProperties: {
|
|
|
58
58
|
textTransform: {};
|
|
59
59
|
};
|
|
60
60
|
export declare const textEffectsInteractions: {
|
|
61
|
-
triggers: import('@wix/
|
|
61
|
+
triggers: import('@wix/component-protocol/schema').InteractionsTrigger[];
|
|
62
62
|
};
|
|
63
63
|
export declare const textEffectsPatternCssCustomProperties: {
|
|
64
64
|
'rotation-pattern-intensity': {
|
|
65
65
|
displayName: string;
|
|
66
|
-
cssPropertyType: import('@wix/
|
|
66
|
+
cssPropertyType: import('@wix/component-protocol/schema').CssPropertyEnumCssPropertyType;
|
|
67
67
|
number: {
|
|
68
68
|
min: string;
|
|
69
69
|
max: string;
|
|
@@ -71,7 +71,7 @@ export declare const textEffectsPatternCssCustomProperties: {
|
|
|
71
71
|
};
|
|
72
72
|
'offset-pattern-intensity': {
|
|
73
73
|
displayName: string;
|
|
74
|
-
cssPropertyType: import('@wix/
|
|
74
|
+
cssPropertyType: import('@wix/component-protocol/schema').CssPropertyEnumCssPropertyType;
|
|
75
75
|
number: {
|
|
76
76
|
min: string;
|
|
77
77
|
max: string;
|
|
@@ -79,9 +79,9 @@ export declare const textEffectsPatternCssCustomProperties: {
|
|
|
79
79
|
};
|
|
80
80
|
'pattern-preset': {
|
|
81
81
|
displayName: string;
|
|
82
|
-
cssPropertyType: import('@wix/
|
|
82
|
+
cssPropertyType: import('@wix/component-protocol/schema').CssPropertyEnumCssPropertyType;
|
|
83
83
|
customEnum: {
|
|
84
|
-
cssPropertyType: import('@wix/
|
|
84
|
+
cssPropertyType: import('@wix/component-protocol/schema').CssPropertyEnumCssPropertyType;
|
|
85
85
|
options: ({
|
|
86
86
|
value: "Fridge Magnet" | "Wave" | "Bounce";
|
|
87
87
|
displayName: "Fridge Magnet" | "Wave" | "Bounce";
|
|
@@ -93,9 +93,9 @@ export declare const textEffectsPatternCssCustomProperties: {
|
|
|
93
93
|
};
|
|
94
94
|
'is-capitalize': {
|
|
95
95
|
displayName: string;
|
|
96
|
-
cssPropertyType: import('@wix/
|
|
96
|
+
cssPropertyType: import('@wix/component-protocol/schema').CssPropertyEnumCssPropertyType;
|
|
97
97
|
customEnum: {
|
|
98
|
-
cssPropertyType: import('@wix/
|
|
98
|
+
cssPropertyType: import('@wix/component-protocol/schema').CssPropertyEnumCssPropertyType;
|
|
99
99
|
options: {
|
|
100
100
|
value: string;
|
|
101
101
|
displayName: string;
|
|
@@ -8,6 +8,20 @@ export type TranslationKey = keyof typeof TranslationKeys;
|
|
|
8
8
|
export type TimePickerGranularity = 'hour' | 'minute' | 'second';
|
|
9
9
|
/** `auto` defers to the locale; `12`/`24` force the hour cycle. */
|
|
10
10
|
export type TimePickerHourCycle = 'auto' | '12' | '24';
|
|
11
|
+
export type TimePickerElementProps = {
|
|
12
|
+
label?: {
|
|
13
|
+
className?: string;
|
|
14
|
+
};
|
|
15
|
+
timeInput?: {
|
|
16
|
+
className?: string;
|
|
17
|
+
};
|
|
18
|
+
description?: {
|
|
19
|
+
className?: string;
|
|
20
|
+
};
|
|
21
|
+
segment?: {
|
|
22
|
+
className?: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
11
25
|
export type TimePickerProps = Omit<SdkFunctionChangeableProps, 'onChange'> & SdkFunctionFocusableProps & FieldValidationProps<string> & {
|
|
12
26
|
/** Fires with the selected ISO time string (`HH:MM[:SS]`), or `''` when cleared. */
|
|
13
27
|
onChange?: (value: string) => void;
|
|
@@ -58,4 +72,6 @@ export type TimePickerProps = Omit<SdkFunctionChangeableProps, 'onChange'> & Sdk
|
|
|
58
72
|
/** Spread on the preset wrapper. */
|
|
59
73
|
presetsWrapperProps?: Record<string, unknown>;
|
|
60
74
|
};
|
|
75
|
+
/** Per-element className overrides injected by the platform. */
|
|
76
|
+
elementProps?: TimePickerElementProps;
|
|
61
77
|
};
|
|
@@ -12,7 +12,7 @@ import { a as getDataAttributes } from "../chunks/dataUtils.js";
|
|
|
12
12
|
import { g as getTranslation } from "../chunks/getTranslation.js";
|
|
13
13
|
import { d as directionStyles } from "../chunks/direction.module.js";
|
|
14
14
|
import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
|
|
15
|
-
import { E as EMPTY_VALUE,
|
|
15
|
+
import { E as EMPTY_VALUE, s as selectors, T as TestIds, a as TRANSLATIONS_NAMESPACE, d as defaultValues, V as VALUE_MISSING_MESSAGE, H as HourCycleValues, D as DefaultTranslations, b as TranslationKeys } from "../chunks/constants2.js";
|
|
16
16
|
import { u as useValidatedField, R as RequiredIndicator } from "../chunks/RequiredIndicator.js";
|
|
17
17
|
import { D as DismissSmall_default } from "../chunks/DismissSmall.js";
|
|
18
18
|
import { I as InfoCircleSmall_default } from "../chunks/InfoCircleSmall.js";
|
|
@@ -100,29 +100,37 @@ const useTimeConstraints = (params) => {
|
|
|
100
100
|
[minTimeStr, maxTimeStr]
|
|
101
101
|
);
|
|
102
102
|
};
|
|
103
|
-
const renderSegments = (segment2) => /* @__PURE__ */ jsx(
|
|
104
|
-
$40825cdb76e74f70$export$336ab7fa954c4b5f,
|
|
105
|
-
{
|
|
106
|
-
segment: segment2,
|
|
107
|
-
className: clsx(styles.segment, selectors.segment)
|
|
108
|
-
}
|
|
109
|
-
);
|
|
110
103
|
const TimePickerField = ({
|
|
111
|
-
clearButton: clearButton2
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
104
|
+
clearButton: clearButton2,
|
|
105
|
+
elementProps
|
|
106
|
+
}) => {
|
|
107
|
+
var _a, _b;
|
|
108
|
+
const segmentClassName = clsx(
|
|
109
|
+
styles.segment,
|
|
110
|
+
selectors.segment,
|
|
111
|
+
(_a = elementProps == null ? void 0 : elementProps.segment) == null ? void 0 : _a.className
|
|
112
|
+
);
|
|
113
|
+
const renderSegments = (seg) => /* @__PURE__ */ jsx($40825cdb76e74f70$export$336ab7fa954c4b5f, { segment: seg, className: segmentClassName });
|
|
114
|
+
return /* @__PURE__ */ jsxs(
|
|
115
|
+
$a049562f99e7db0e$export$eb2fcfdbd7ba97d4,
|
|
116
|
+
{
|
|
117
|
+
className: clsx(
|
|
118
|
+
styles.group,
|
|
119
|
+
selectors.group,
|
|
120
|
+
(_b = elementProps == null ? void 0 : elementProps.timeInput) == null ? void 0 : _b.className
|
|
121
|
+
),
|
|
122
|
+
"data-testid": TestIds.group,
|
|
123
|
+
children: [
|
|
124
|
+
/* @__PURE__ */ jsx($40825cdb76e74f70$export$7edc06cf1783b30f, { className: styles.field, "data-testid": TestIds.field, children: renderSegments }),
|
|
125
|
+
clearButton2
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
);
|
|
129
|
+
};
|
|
123
130
|
const noop = () => {
|
|
124
131
|
};
|
|
125
132
|
function TimePicker(props) {
|
|
133
|
+
var _a, _b;
|
|
126
134
|
const environmentService = useService(EnvironmentDefinition);
|
|
127
135
|
const { translate } = useService(TranslationsDefinition);
|
|
128
136
|
const translateByKey = translate(TRANSLATIONS_NAMESPACE);
|
|
@@ -144,7 +152,8 @@ function TimePicker(props) {
|
|
|
144
152
|
showValidityIndication,
|
|
145
153
|
onValidate,
|
|
146
154
|
onValidityChange,
|
|
147
|
-
wix
|
|
155
|
+
wix,
|
|
156
|
+
elementProps
|
|
148
157
|
} = props;
|
|
149
158
|
const label2 = readString(props.label);
|
|
150
159
|
const description2 = readString(props.description);
|
|
@@ -237,16 +246,26 @@ function TimePicker(props) {
|
|
|
237
246
|
onBlur: handleBlur,
|
|
238
247
|
children: [
|
|
239
248
|
label2 || tooltip2 ? /* @__PURE__ */ jsxs("div", { className: styles.labelRow, children: [
|
|
240
|
-
label2 ? /* @__PURE__ */ jsxs(
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
249
|
+
label2 ? /* @__PURE__ */ jsxs(
|
|
250
|
+
$01b77f81d0f07f68$export$b04be29aa201d4f5,
|
|
251
|
+
{
|
|
252
|
+
className: clsx(
|
|
253
|
+
styles.label,
|
|
254
|
+
selectors.label,
|
|
255
|
+
(_a = elementProps == null ? void 0 : elementProps.label) == null ? void 0 : _a.className
|
|
256
|
+
),
|
|
257
|
+
children: [
|
|
258
|
+
label2,
|
|
259
|
+
isRequired && /* @__PURE__ */ jsx(
|
|
260
|
+
RequiredIndicator,
|
|
261
|
+
{
|
|
262
|
+
className: selectors.requiredIndicator,
|
|
263
|
+
"data-testid": TestIds.requiredIndicator
|
|
264
|
+
}
|
|
265
|
+
)
|
|
266
|
+
]
|
|
267
|
+
}
|
|
268
|
+
) : null,
|
|
250
269
|
tooltip2 ? /* @__PURE__ */ jsxs($4e3b923658d69c60$export$8c610744efcf8a1d, { delay: 0, children: [
|
|
251
270
|
/* @__PURE__ */ jsx(
|
|
252
271
|
$d2b4bc8c273e7be6$export$353f5b6fc5456de1,
|
|
@@ -268,14 +287,21 @@ function TimePicker(props) {
|
|
|
268
287
|
)
|
|
269
288
|
] }) : null
|
|
270
289
|
] }) : null,
|
|
271
|
-
/* @__PURE__ */ jsx(
|
|
290
|
+
/* @__PURE__ */ jsx(
|
|
291
|
+
TimePickerField,
|
|
292
|
+
{
|
|
293
|
+
clearButton: clearButton2,
|
|
294
|
+
elementProps
|
|
295
|
+
}
|
|
296
|
+
),
|
|
272
297
|
description2 ? /* @__PURE__ */ jsx(
|
|
273
298
|
$514c0188e459b4c0$export$5f1af8db9871e1d6,
|
|
274
299
|
{
|
|
275
300
|
slot: "description",
|
|
276
301
|
className: clsx(
|
|
277
302
|
styles.description,
|
|
278
|
-
selectors.description
|
|
303
|
+
selectors.description,
|
|
304
|
+
(_b = elementProps == null ? void 0 : elementProps.description) == null ? void 0 : _b.className
|
|
279
305
|
),
|
|
280
306
|
children: description2
|
|
281
307
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
2
|
+
import { TimePickerElementProps } from '../TimePicker.types';
|
|
3
|
+
export declare const TimePickerField: ({ clearButton, elementProps, }: {
|
|
3
4
|
clearButton: React.ReactNode;
|
|
5
|
+
elementProps?: TimePickerElementProps;
|
|
4
6
|
}) => React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MouseEvent } from 'react';
|
|
2
2
|
import { TransparentVideoProps, VideoEndType } from './TransparentVideo.types';
|
|
3
3
|
export declare function useTransparentVideo(props: TransparentVideoProps): {
|
|
4
|
-
a11y: Pick<typeof import('@wix/
|
|
4
|
+
a11y: Pick<typeof import('@wix/component-protocol/schema').A11yAttributes, "ariaLabel"> | undefined;
|
|
5
5
|
className: string | undefined;
|
|
6
6
|
canvasRef: import('react').RefObject<HTMLCanvasElement>;
|
|
7
7
|
isMuted: boolean;
|
|
@@ -25,13 +25,13 @@ const styles = {
|
|
|
25
25
|
button
|
|
26
26
|
};
|
|
27
27
|
const AnimatedButtonIcon = forwardRef(
|
|
28
|
-
({ svg, duration }, ref) => /* @__PURE__ */ jsx(
|
|
28
|
+
({ svg, duration, className }, ref) => /* @__PURE__ */ jsx(
|
|
29
29
|
AnimatedIconWithReducedMotion,
|
|
30
30
|
{
|
|
31
31
|
id: "animated-icon",
|
|
32
32
|
duration,
|
|
33
33
|
svg,
|
|
34
|
-
className: clsx("animated-icon", styles.icon),
|
|
34
|
+
className: clsx("animated-icon", styles.icon, className),
|
|
35
35
|
ref
|
|
36
36
|
}
|
|
37
37
|
)
|
|
@@ -197,6 +197,7 @@ function useButtonA11y({
|
|
|
197
197
|
return a11yAttr;
|
|
198
198
|
}
|
|
199
199
|
const Button = (props) => {
|
|
200
|
+
var _a;
|
|
200
201
|
const {
|
|
201
202
|
id,
|
|
202
203
|
link: link2,
|
|
@@ -254,7 +255,8 @@ const Button = (props) => {
|
|
|
254
255
|
const labelClassName = clsx(
|
|
255
256
|
"label",
|
|
256
257
|
styles.label,
|
|
257
|
-
formatClassNames(semanticClassNames.buttonLabel)
|
|
258
|
+
formatClassNames(semanticClassNames.buttonLabel),
|
|
259
|
+
(_a = elementProps == null ? void 0 : elementProps.label) == null ? void 0 : _a.className
|
|
258
260
|
);
|
|
259
261
|
const linkClassName = styles.link;
|
|
260
262
|
const { isLink, eventHandlers } = useButtonEventHandlers({
|
|
@@ -287,7 +289,8 @@ const Button = (props) => {
|
|
|
287
289
|
{
|
|
288
290
|
ref: iconAnimatedRef,
|
|
289
291
|
svg: animatedIconProps == null ? void 0 : animatedIconProps.svg,
|
|
290
|
-
duration: animatedIconProps == null ? void 0 : animatedIconProps.duration
|
|
292
|
+
duration: animatedIconProps == null ? void 0 : animatedIconProps.duration,
|
|
293
|
+
className: animatedIconProps == null ? void 0 : animatedIconProps.className
|
|
291
294
|
}
|
|
292
295
|
)
|
|
293
296
|
] });
|
|
@@ -22,6 +22,7 @@ const styles = {
|
|
|
22
22
|
"css-background": "css-background__Ttjm0"
|
|
23
23
|
};
|
|
24
24
|
const ResponsiveBox = (props, ref) => {
|
|
25
|
+
var _a;
|
|
25
26
|
const {
|
|
26
27
|
id,
|
|
27
28
|
className,
|
|
@@ -45,7 +46,8 @@ const ResponsiveBox = (props, ref) => {
|
|
|
45
46
|
observeChildListChange,
|
|
46
47
|
containerProps,
|
|
47
48
|
shouldUseContainerLayoutClass,
|
|
48
|
-
lang
|
|
49
|
+
lang,
|
|
50
|
+
elementProps
|
|
49
51
|
} = props;
|
|
50
52
|
const {
|
|
51
53
|
"aria-label-interactions": ariaLabelInteractions,
|
|
@@ -65,12 +67,12 @@ const ResponsiveBox = (props, ref) => {
|
|
|
65
67
|
React.useImperativeHandle(ref, () => {
|
|
66
68
|
return {
|
|
67
69
|
focus: () => {
|
|
68
|
-
var
|
|
69
|
-
(
|
|
70
|
+
var _a2;
|
|
71
|
+
(_a2 = rootElementRef.current) == null ? void 0 : _a2.focus();
|
|
70
72
|
},
|
|
71
73
|
blur: () => {
|
|
72
|
-
var
|
|
73
|
-
(
|
|
74
|
+
var _a2;
|
|
75
|
+
(_a2 = rootElementRef.current) == null ? void 0 : _a2.blur();
|
|
74
76
|
}
|
|
75
77
|
};
|
|
76
78
|
});
|
|
@@ -135,7 +137,8 @@ const ResponsiveBox = (props, ref) => {
|
|
|
135
137
|
// workaround so the viewer finds the class and doesn't throw; doesn't affect layout
|
|
136
138
|
shouldUseContainerLayoutClass
|
|
137
139
|
)
|
|
138
|
-
}
|
|
140
|
+
},
|
|
141
|
+
(_a = elementProps == null ? void 0 : elementProps.innerBox) == null ? void 0 : _a.className
|
|
139
142
|
)
|
|
140
143
|
}
|
|
141
144
|
),
|
|
@@ -33,8 +33,10 @@ const ResponsiveContainer = ({
|
|
|
33
33
|
ariaLive,
|
|
34
34
|
ariaAttributes,
|
|
35
35
|
tabIndex: tabIndexFromProps,
|
|
36
|
-
tagName = "div"
|
|
36
|
+
tagName = "div",
|
|
37
|
+
elementProps
|
|
37
38
|
}, ref) => {
|
|
39
|
+
var _a;
|
|
38
40
|
const hasOverflowWrapper = !shouldOmitWrapperLayers && hasOverflow;
|
|
39
41
|
let tabIndexWithOverflow = -1;
|
|
40
42
|
if (hasScrollOverflow && tabIndexFromProps !== void 0) {
|
|
@@ -51,7 +53,11 @@ const ResponsiveContainer = ({
|
|
|
51
53
|
) : reactChildren,
|
|
52
54
|
[hasOverflowWrapper, overlowWrapperClassName, extraRootClass]
|
|
53
55
|
);
|
|
54
|
-
const classes =
|
|
56
|
+
const classes = clsx(
|
|
57
|
+
containerLayoutClassName,
|
|
58
|
+
!hasOverflow && extraRootClass,
|
|
59
|
+
(_a = elementProps == null ? void 0 : elementProps.innerBox) == null ? void 0 : _a.className
|
|
60
|
+
);
|
|
55
61
|
const childProps = {
|
|
56
62
|
ref,
|
|
57
63
|
"data-testid": TestIds.content,
|
|
@@ -144,7 +144,6 @@ var BackOfficeHostingPlatforms;
|
|
|
144
144
|
BackOfficeHostingPlatforms2["PAYMENTS_BO"] = "PAYMENTS_BO";
|
|
145
145
|
BackOfficeHostingPlatforms2["SYMPHONY"] = "SYMPHONY";
|
|
146
146
|
BackOfficeHostingPlatforms2["BMR"] = "BMR";
|
|
147
|
-
BackOfficeHostingPlatforms2["WIXEL_DASHBOARD"] = "WIXEL_DASHBOARD";
|
|
148
147
|
})(BackOfficeHostingPlatforms || (BackOfficeHostingPlatforms = {}));
|
|
149
148
|
var BackOfficeScriptAssetType;
|
|
150
149
|
(function(BackOfficeScriptAssetType2) {
|
|
@@ -430,23 +429,6 @@ var AuthType;
|
|
|
430
429
|
AuthType2["OAUTH2"] = "OAUTH2";
|
|
431
430
|
AuthType2["API_KEY"] = "API_KEY";
|
|
432
431
|
})(AuthType || (AuthType = {}));
|
|
433
|
-
var DispatchHttpMethod;
|
|
434
|
-
(function(DispatchHttpMethod2) {
|
|
435
|
-
DispatchHttpMethod2["UNKNOWN_DISPATCH_HTTP_METHOD"] = "UNKNOWN_DISPATCH_HTTP_METHOD";
|
|
436
|
-
DispatchHttpMethod2["GET"] = "GET";
|
|
437
|
-
DispatchHttpMethod2["POST"] = "POST";
|
|
438
|
-
DispatchHttpMethod2["PUT"] = "PUT";
|
|
439
|
-
DispatchHttpMethod2["PATCH"] = "PATCH";
|
|
440
|
-
DispatchHttpMethod2["DELETE"] = "DELETE";
|
|
441
|
-
DispatchHttpMethod2["HEAD"] = "HEAD";
|
|
442
|
-
DispatchHttpMethod2["OPTIONS"] = "OPTIONS";
|
|
443
|
-
})(DispatchHttpMethod || (DispatchHttpMethod = {}));
|
|
444
|
-
var IdentityHttpMethod;
|
|
445
|
-
(function(IdentityHttpMethod2) {
|
|
446
|
-
IdentityHttpMethod2["UNKNOWN_IDENTITY_HTTP_METHOD"] = "UNKNOWN_IDENTITY_HTTP_METHOD";
|
|
447
|
-
IdentityHttpMethod2["GET"] = "GET";
|
|
448
|
-
IdentityHttpMethod2["POST"] = "POST";
|
|
449
|
-
})(IdentityHttpMethod || (IdentityHttpMethod = {}));
|
|
450
432
|
var ScopeSeparator;
|
|
451
433
|
(function(ScopeSeparator2) {
|
|
452
434
|
ScopeSeparator2["UNKNOWN_SCOPE_SEPARATOR"] = "UNKNOWN_SCOPE_SEPARATOR";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/editor-react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2453.0",
|
|
4
4
|
"description": "React components for the Wix Editor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -77,12 +77,12 @@
|
|
|
77
77
|
"@radix-ui/react-accordion": "^1.2.11",
|
|
78
78
|
"@vimeo/player": "^2.20.1",
|
|
79
79
|
"@vis.gl/react-google-maps": "^1.5.2",
|
|
80
|
-
"@wix/ambassador-devcenter-v1-component-type-data": "^1.0.
|
|
80
|
+
"@wix/ambassador-devcenter-v1-component-type-data": "^1.0.472",
|
|
81
81
|
"@wix/design-system-illustrations": "^2.19.0",
|
|
82
82
|
"@wix/sdk": "^1.21.13",
|
|
83
83
|
"@wix/services-manager-react": "^0.1.27",
|
|
84
84
|
"@wix/site-service-rendering-context": "^1.0.1",
|
|
85
|
-
"@wix/site-ui": "1.
|
|
85
|
+
"@wix/site-ui": "1.197.0",
|
|
86
86
|
"@wix/video": "^1.85.0",
|
|
87
87
|
"@wix/viewer-service-consent-policy": "^1.0.100",
|
|
88
88
|
"@wix/web-bi-logger": "^2.1.29",
|
|
@@ -197,5 +197,5 @@
|
|
|
197
197
|
"registry": "https://registry.npmjs.org/",
|
|
198
198
|
"access": "public"
|
|
199
199
|
},
|
|
200
|
-
"falconPackageHash": "
|
|
200
|
+
"falconPackageHash": "bdef7128379bb6419472f9b30875a25413dd4626add5516e096c0b7a"
|
|
201
201
|
}
|