@wix/editor-react-components 1.2774.0 → 1.2776.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/AudioPlayer/component.js +5 -4
- package/dist/site/components/Breadcrumbs/component.js +1 -1
- package/dist/site/components/Button/component.js +1 -1
- package/dist/site/components/Checkbox/component.js +1 -1
- package/dist/site/components/CheckboxGroup/component.js +1 -1
- package/dist/site/components/CollapsibleText/component.js +1 -1
- package/dist/site/components/DatePicker/component.js +622 -7
- package/dist/site/components/Lottie/component.js +1 -1
- package/dist/site/components/Menu/component.js +1 -1
- package/dist/site/components/RadioButtons/component.js +1 -1
- package/dist/site/components/Slideshow/component.js +1 -1
- package/dist/site/components/TextBox/component.js +1 -1
- package/dist/site/components/TextInput/component.js +3 -2
- package/dist/site/components/TextMarquee/component.js +6 -6
- package/dist/site/components/TimePicker/TimePicker.types.d.ts +14 -39
- package/dist/site/components/TimePicker/component.js +81 -547
- package/dist/site/components/TimePicker/component.preview.d.ts +7 -2
- package/dist/site/components/TimePicker/components/TimePickerField.d.ts +1 -2
- package/dist/site/components/TimePicker/constants.d.ts +35 -68
- package/dist/site/components/TimePicker/css.css +17 -169
- package/dist/site/components/TimePicker/hooks/useTimePickerValue.d.ts +3 -5
- package/dist/site/components/TimePicker/manifest.js +246 -152
- package/dist/site/components/TimePicker/timePickerUtils.d.ts +8 -8
- package/dist/site/components/chunks/Button.js +466 -1055
- package/dist/site/components/chunks/Button2.js +284 -471
- package/dist/site/components/chunks/DateField.js +51 -673
- package/dist/site/components/chunks/Group.js +46 -160
- package/dist/site/components/chunks/I18nProvider.js +1 -1
- package/dist/site/components/chunks/Input.js +2 -2
- package/dist/site/components/chunks/constants2.js +40 -70
- package/dist/site/components/chunks/constants27.js +1 -1
- package/dist/site/components/chunks/filterDOMProps.js +13 -13
- package/dist/site/components/chunks/useFocusable.js +70 -0
- package/dist/site/components/chunks/usePress.js +825 -0
- package/package.json +2 -2
- package/dist/site/components/TimePicker/hooks/useTimeConstraints.d.ts +0 -8
- package/dist/site/components/chunks/VisuallyHidden.js +0 -47
- package/dist/site/components/chunks/{RequiredIndicator.js → useValidatedField.js} +19 -19
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/editor-react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2776.0",
|
|
4
4
|
"description": "React components for the Wix Editor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -222,5 +222,5 @@
|
|
|
222
222
|
"registry": "https://registry.npmjs.org/",
|
|
223
223
|
"access": "public"
|
|
224
224
|
},
|
|
225
|
-
"falconPackageHash": "
|
|
225
|
+
"falconPackageHash": "9088cc47e98064a2fa85848fe7d6c4be2d774e12800999a64c2d8682"
|
|
226
226
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TimePickerProps } from '../TimePicker.types';
|
|
2
|
-
export declare const useTimeConstraints: (params: {
|
|
3
|
-
minTime: TimePickerProps["minTime"];
|
|
4
|
-
maxTime: TimePickerProps["maxTime"];
|
|
5
|
-
}) => {
|
|
6
|
-
minValue: import('react-aria').TimeValue | undefined;
|
|
7
|
-
maxValue: import('react-aria').TimeValue | undefined;
|
|
8
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { a as $bbaa08b3cd72f041$export$9d1611c77c2fe928, N as $2c9edc598a03d523$export$420e68273165f4ec } from "./Group.js";
|
|
2
|
-
import React__default, { useState, useMemo } from "react";
|
|
3
|
-
const $ea3928288112382f$var$styles = {
|
|
4
|
-
border: 0,
|
|
5
|
-
clip: "rect(0 0 0 0)",
|
|
6
|
-
clipPath: "inset(50%)",
|
|
7
|
-
height: "1px",
|
|
8
|
-
margin: "-1px",
|
|
9
|
-
overflow: "hidden",
|
|
10
|
-
padding: 0,
|
|
11
|
-
position: "absolute",
|
|
12
|
-
width: "1px",
|
|
13
|
-
whiteSpace: "nowrap"
|
|
14
|
-
};
|
|
15
|
-
function $ea3928288112382f$export$a966af930f325cab(props = {}) {
|
|
16
|
-
let { style, isFocusable } = props;
|
|
17
|
-
let [isFocused, setFocused] = useState(false);
|
|
18
|
-
let { focusWithinProps } = $2c9edc598a03d523$export$420e68273165f4ec({
|
|
19
|
-
isDisabled: !isFocusable,
|
|
20
|
-
onFocusWithinChange: (val) => setFocused(val)
|
|
21
|
-
});
|
|
22
|
-
let combinedStyles = useMemo(() => {
|
|
23
|
-
if (isFocused) return style;
|
|
24
|
-
else if (style) return {
|
|
25
|
-
...$ea3928288112382f$var$styles,
|
|
26
|
-
...style
|
|
27
|
-
};
|
|
28
|
-
else return $ea3928288112382f$var$styles;
|
|
29
|
-
}, [
|
|
30
|
-
isFocused
|
|
31
|
-
]);
|
|
32
|
-
return {
|
|
33
|
-
visuallyHiddenProps: {
|
|
34
|
-
...focusWithinProps,
|
|
35
|
-
style: combinedStyles
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function $ea3928288112382f$export$439d29a4e110a164(props) {
|
|
40
|
-
let { children, elementType: Element = "div", isFocusable, style, ...otherProps } = props;
|
|
41
|
-
let { visuallyHiddenProps } = $ea3928288112382f$export$a966af930f325cab(props);
|
|
42
|
-
return /* @__PURE__ */ React__default.createElement(Element, $bbaa08b3cd72f041$export$9d1611c77c2fe928(otherProps, visuallyHiddenProps), children);
|
|
43
|
-
}
|
|
44
|
-
export {
|
|
45
|
-
$ea3928288112382f$export$439d29a4e110a164 as $,
|
|
46
|
-
$ea3928288112382f$export$a966af930f325cab as a
|
|
47
|
-
};
|
|
@@ -5,6 +5,25 @@ import { c as clsx } from "./clsx.js";
|
|
|
5
5
|
const InfoCircleSmall = ({ size, ...props }) => /* @__PURE__ */ React.createElement("svg", { viewBox: "0 0 18 18", fill: "currentColor", width: size || "18", height: size || "18", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M9,16 C5.13400675,16 2,12.8659932 2,9 C2,5.13400675 5.13400675,2 9,2 C12.8659932,2 16,5.13400675 16,9 C16,12.8659932 12.8659932,16 9,16 Z M9,15 C12.3137085,15 15,12.3137085 15,9 C15,5.6862915 12.3137085,3 9,3 C5.6862915,3 3,5.6862915 3,9 C3,12.3137085 5.6862915,15 9,15 Z M8,8 L10,8 L10,12 L11,13 L7,13 L8,12 L8,8.85714286 L7,8.85714286 L8,8 Z M9,5 C9.55228475,5 10,5.44771525 10,6 C10,6.55228475 9.55228475,7 9,7 C8.44771525,7 8,6.55228475 8,6 C8,5.44771525 8.44771525,5 9,5 Z" }));
|
|
6
6
|
InfoCircleSmall.displayName = "InfoCircleSmall";
|
|
7
7
|
var InfoCircleSmall_default = InfoCircleSmall;
|
|
8
|
+
const Asterisk = ({ size, ...props }) => /* @__PURE__ */ React.createElement("svg", { viewBox: "0 0 7 7", fill: "currentColor", width: size || "7", height: size || "7", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M1.809 7 1 6.397 2.74 3.94 0 3.026l.31-.974L3 2.948V0h1v2.976l2.69-.924.31.975-2.719.934L6 6.397 5.19 7 3.503 4.609 1.809 7Z" }));
|
|
9
|
+
Asterisk.displayName = "Asterisk";
|
|
10
|
+
var Asterisk_default = Asterisk;
|
|
11
|
+
const requiredIndicator = "requiredIndicator__j5mIH";
|
|
12
|
+
const styles = {
|
|
13
|
+
requiredIndicator
|
|
14
|
+
};
|
|
15
|
+
const RequiredIndicator = ({
|
|
16
|
+
className,
|
|
17
|
+
"data-testid": dataTestId
|
|
18
|
+
}) => /* @__PURE__ */ jsx(
|
|
19
|
+
Asterisk_default,
|
|
20
|
+
{
|
|
21
|
+
className: clsx(styles.requiredIndicator, className),
|
|
22
|
+
"data-testid": dataTestId,
|
|
23
|
+
"aria-hidden": "true",
|
|
24
|
+
focusable: "false"
|
|
25
|
+
}
|
|
26
|
+
);
|
|
8
27
|
const sameValidity = (a, b) => a !== null && a.valid === b.valid && a.validationMessage === b.validationMessage;
|
|
9
28
|
function useValidatedField({
|
|
10
29
|
value,
|
|
@@ -81,25 +100,6 @@ function useValidatedField({
|
|
|
81
100
|
}, [isGateControlled]);
|
|
82
101
|
return { validity, showValidityIndication: showIndication, handleBlur };
|
|
83
102
|
}
|
|
84
|
-
const Asterisk = ({ size, ...props }) => /* @__PURE__ */ React.createElement("svg", { viewBox: "0 0 7 7", fill: "currentColor", width: size || "7", height: size || "7", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M1.809 7 1 6.397 2.74 3.94 0 3.026l.31-.974L3 2.948V0h1v2.976l2.69-.924.31.975-2.719.934L6 6.397 5.19 7 3.503 4.609 1.809 7Z" }));
|
|
85
|
-
Asterisk.displayName = "Asterisk";
|
|
86
|
-
var Asterisk_default = Asterisk;
|
|
87
|
-
const requiredIndicator = "requiredIndicator__j5mIH";
|
|
88
|
-
const styles = {
|
|
89
|
-
requiredIndicator
|
|
90
|
-
};
|
|
91
|
-
const RequiredIndicator = ({
|
|
92
|
-
className,
|
|
93
|
-
"data-testid": dataTestId
|
|
94
|
-
}) => /* @__PURE__ */ jsx(
|
|
95
|
-
Asterisk_default,
|
|
96
|
-
{
|
|
97
|
-
className: clsx(styles.requiredIndicator, className),
|
|
98
|
-
"data-testid": dataTestId,
|
|
99
|
-
"aria-hidden": "true",
|
|
100
|
-
focusable: "false"
|
|
101
|
-
}
|
|
102
|
-
);
|
|
103
103
|
export {
|
|
104
104
|
InfoCircleSmall_default as I,
|
|
105
105
|
RequiredIndicator as R,
|