@eightshift/ui-components 5.0.0 → 5.0.1
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/Button-wERNNG0T.js +185 -0
- package/dist/Collection-CKsHTyhc.js +2363 -0
- package/dist/Color-BhgbJF5x.js +2452 -0
- package/dist/ColorSwatch-Bcn6oRSg.js +64 -0
- package/dist/ComboBox-D1LPUwWP.js +1906 -0
- package/dist/Dialog-D190gMbE.js +2298 -0
- package/dist/FieldError-DeUh5Wkw.js +42 -0
- package/dist/FocusScope-C-plSxbS.js +831 -0
- package/dist/Form-Cq3fu75_.js +5 -0
- package/dist/Group-C5iZpSAM.js +48 -0
- package/dist/Heading-D-Pboe4p.js +16 -0
- package/dist/Hidden-rE6uR-lr.js +41 -0
- package/dist/Input--mF4XVE1.js +133 -0
- package/dist/Label-Fp6AwSRn.js +17 -0
- package/dist/List-CZMUbkFU.js +593 -0
- package/dist/ListBox-4oW9kh3R.js +582 -0
- package/dist/NumberFormatter-DA8u1Ot7.js +140 -0
- package/dist/OverlayArrow-BpB9uB_I.js +637 -0
- package/dist/RSPContexts-2lR5GG9p.js +14 -0
- package/dist/Select-aab027f3.esm-BKIJGje-.js +2469 -0
- package/dist/Separator-B88tj5YD.js +323 -0
- package/dist/Slider-CyJzC1bp.js +853 -0
- package/dist/Text-DRpwWot2.js +16 -0
- package/dist/VisuallyHidden-DsKYcRQ_.js +48 -0
- package/dist/_commonjsHelpers-CUmg6egw.js +6 -0
- package/dist/assets/index.css +57 -0
- package/dist/assets/style-admin.css +5864 -0
- package/dist/assets/style-editor.css +5864 -0
- package/dist/assets/style.css +5870 -0
- package/dist/assets/wp-font-enhancements.css +8 -0
- package/dist/assets/wp-ui-enhancements.css +377 -0
- package/dist/components/animated-visibility/animated-visibility.js +105 -0
- package/dist/components/base-control/base-control.js +86 -0
- package/dist/components/breakpoint-preview/breakpoint-preview.js +161 -0
- package/dist/components/button/button.js +387 -0
- package/dist/components/checkbox/checkbox.js +320 -0
- package/dist/components/color-pickers/color-picker.js +272 -0
- package/dist/components/color-pickers/color-swatch.js +59 -0
- package/dist/components/color-pickers/gradient-editor.js +534 -0
- package/dist/components/color-pickers/solid-color-picker.js +1567 -0
- package/dist/components/component-toggle/component-toggle.js +161 -0
- package/dist/components/container-panel/container-panel.js +131 -0
- package/dist/components/draggable/draggable-context.js +5 -0
- package/dist/components/draggable/draggable-handle.js +46 -0
- package/dist/components/draggable/draggable.js +6979 -0
- package/dist/components/draggable-list/draggable-list-context.js +5 -0
- package/dist/components/draggable-list/draggable-list-item.js +77 -0
- package/dist/components/draggable-list/draggable-list.js +151 -0
- package/dist/components/expandable/expandable.js +342 -0
- package/dist/components/index.js +137 -0
- package/dist/components/input-field/input-field.js +231 -0
- package/dist/components/item-collection/item-collection.js +59 -0
- package/dist/components/layout/hstack.js +30 -0
- package/dist/components/layout/vstack.js +30 -0
- package/dist/components/link-input/link-input.js +291 -0
- package/dist/components/matrix-align/matrix-align.js +134 -0
- package/dist/components/menu/menu.js +285 -0
- package/dist/components/modal/modal.js +305 -0
- package/dist/components/notice/notice.js +123 -0
- package/dist/components/number-picker/number-picker.js +292 -0
- package/dist/components/option-select/option-select.js +264 -0
- package/dist/components/options-panel/options-panel.js +158 -0
- package/dist/components/placeholders/file-placeholder.js +42 -0
- package/dist/components/placeholders/image-placeholder.js +88 -0
- package/dist/components/placeholders/media-placeholder.js +63 -0
- package/dist/components/popover/popover.js +207 -0
- package/dist/components/radio/radio.js +579 -0
- package/dist/components/repeater/repeater-context.js +5 -0
- package/dist/components/repeater/repeater-item.js +119 -0
- package/dist/components/repeater/repeater.js +280 -0
- package/dist/components/responsive/mini-responsive.js +498 -0
- package/dist/components/responsive/responsive-legacy.js +343 -0
- package/dist/components/responsive/responsive.js +583 -0
- package/dist/components/responsive-preview/responsive-preview.js +123 -0
- package/dist/components/rich-label/rich-label.js +66 -0
- package/dist/components/select/async-multi-select.js +157 -0
- package/dist/components/select/async-single-select.js +137 -0
- package/dist/components/select/custom-select-default-components.js +38 -0
- package/dist/components/select/multi-select-components.js +8 -0
- package/dist/components/select/multi-select.js +151 -0
- package/dist/components/select/react-select-component-wrappers.js +90 -0
- package/dist/components/select/shared.js +26 -0
- package/dist/components/select/single-select.js +131 -0
- package/dist/components/select/styles.js +49 -0
- package/dist/components/select/v2/async-select.js +297 -0
- package/dist/components/select/v2/shared.js +24 -0
- package/dist/components/select/v2/single-select.js +991 -0
- package/dist/components/slider/column-config-slider.js +210 -0
- package/dist/components/slider/slider.js +345 -0
- package/dist/components/slider/utils.js +94 -0
- package/dist/components/spacer/spacer.js +97 -0
- package/dist/components/tabs/tabs.js +704 -0
- package/dist/components/toggle/switch.js +156 -0
- package/dist/components/toggle/toggle.js +64 -0
- package/dist/components/toggle-button/toggle-button.js +343 -0
- package/dist/components/tooltip/tooltip.js +527 -0
- package/dist/context-BYWrbm1z.js +92 -0
- package/dist/default-i18n-CT_oS1Fy.js +922 -0
- package/dist/filterDOMProps-EDDcM64A.js +28 -0
- package/dist/icons/block-icon.js +42 -0
- package/dist/icons/generic-color-swatch.js +113 -0
- package/dist/icons/icons.js +30371 -0
- package/dist/icons/index.js +11 -0
- package/dist/icons/jsx-svg.js +50 -0
- package/dist/index-641ee5b8.esm-BPU8rMZr.js +3137 -0
- package/dist/index-CFozsmNS.js +28321 -0
- package/dist/index-wl5606BX.js +44 -0
- package/dist/index.js +139 -0
- package/dist/lite-DVmmD_-j.js +7 -0
- package/dist/modifiers.esm-BuJQPI1X.js +31 -0
- package/dist/multi-select-components-Sp-JEFEX.js +3744 -0
- package/dist/number-GajL10e1.js +36 -0
- package/dist/react-jsx-parser.min-DZCiis5V.js +11753 -0
- package/dist/react-select-async.esm-D937XTWW.js +107 -0
- package/dist/react-select.esm-Ciai3aKf.js +15 -0
- package/dist/style-admin.js +1 -0
- package/dist/style-editor.js +1 -0
- package/dist/style.js +1 -0
- package/dist/textSelection-CCcyjiRP.js +46 -0
- package/dist/useButton-BOHxkGQF.js +50 -0
- package/dist/useEvent-D5o_CqDH.js +23 -0
- package/dist/useFocusRing-nMG2uzxS.js +107 -0
- package/dist/useFormReset-DlmRL87g.js +22 -0
- package/dist/useFormValidation-D0_aaK-e.js +224 -0
- package/dist/useHover-VO5tcIli.js +890 -0
- package/dist/useLabel-BKH4fVA4.js +27 -0
- package/dist/useLabels-ntF3rFY0.js +23 -0
- package/dist/useListState-Cq2Nvr-v.js +161 -0
- package/dist/useLocalizedStringFormatter-CGzwx1a0.js +121 -0
- package/dist/useNumberField-C9dmERhP.js +1207 -0
- package/dist/useNumberFormatter-MrRLgvhj.js +13 -0
- package/dist/usePress-DjNo5790.js +677 -0
- package/dist/useSingleSelectListState--r3AAhRj.js +38 -0
- package/dist/useToggle-CQaXLe-O.js +59 -0
- package/dist/useToggleState-C3DLdez5.js +19 -0
- package/dist/utilities/array-helpers.js +56 -0
- package/dist/utilities/debounce-throttle.js +123 -0
- package/dist/utilities/es-dash.js +382 -0
- package/dist/utilities/index.js +27 -0
- package/dist/utilities/text-helpers.js +136 -0
- package/dist/utils-B94NDG0v.js +370 -0
- package/dist/wp/wp-font-enhancements.js +1 -0
- package/dist/wp/wp-ui-enhancements.js +1 -0
- package/package.json +8 -8
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3, d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-B94NDG0v.js";
|
|
2
|
+
import React__default, { forwardRef, createContext } from "react";
|
|
3
|
+
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-VO5tcIli.js";
|
|
4
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-nMG2uzxS.js";
|
|
5
|
+
const $a049562f99e7db0e$export$f9c6924e160136d1 = /* @__PURE__ */ createContext({});
|
|
6
|
+
const $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 = /* @__PURE__ */ forwardRef(function Group(props, ref) {
|
|
7
|
+
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $a049562f99e7db0e$export$f9c6924e160136d1);
|
|
8
|
+
let { isDisabled, isInvalid, onHoverStart, onHoverChange, onHoverEnd, ...otherProps } = props;
|
|
9
|
+
let { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456({
|
|
10
|
+
onHoverStart,
|
|
11
|
+
onHoverChange,
|
|
12
|
+
onHoverEnd,
|
|
13
|
+
isDisabled
|
|
14
|
+
});
|
|
15
|
+
let { isFocused, isFocusVisible, focusProps } = $f7dceffc5ad7768b$export$4e328f61c538687f({
|
|
16
|
+
within: true
|
|
17
|
+
});
|
|
18
|
+
isDisabled !== null && isDisabled !== void 0 ? isDisabled : isDisabled = !!props["aria-disabled"] && props["aria-disabled"] !== "false";
|
|
19
|
+
isInvalid !== null && isInvalid !== void 0 ? isInvalid : isInvalid = !!props["aria-invalid"] && props["aria-invalid"] !== "false";
|
|
20
|
+
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
21
|
+
...props,
|
|
22
|
+
values: {
|
|
23
|
+
isHovered,
|
|
24
|
+
isFocusWithin: isFocused,
|
|
25
|
+
isFocusVisible,
|
|
26
|
+
isDisabled,
|
|
27
|
+
isInvalid
|
|
28
|
+
},
|
|
29
|
+
defaultClassName: "react-aria-Group"
|
|
30
|
+
});
|
|
31
|
+
var _props_role, _props_slot;
|
|
32
|
+
return /* @__PURE__ */ React__default.createElement("div", {
|
|
33
|
+
...$3ef42575df84b30b$export$9d1611c77c2fe928(otherProps, focusProps, hoverProps),
|
|
34
|
+
...renderProps,
|
|
35
|
+
ref,
|
|
36
|
+
role: (_props_role = props.role) !== null && _props_role !== void 0 ? _props_role : "group",
|
|
37
|
+
slot: (_props_slot = props.slot) !== null && _props_slot !== void 0 ? _props_slot : void 0,
|
|
38
|
+
"data-focus-within": isFocused || void 0,
|
|
39
|
+
"data-hovered": isHovered || void 0,
|
|
40
|
+
"data-focus-visible": isFocusVisible || void 0,
|
|
41
|
+
"data-disabled": isDisabled || void 0,
|
|
42
|
+
"data-invalid": isInvalid || void 0
|
|
43
|
+
}, renderProps.children);
|
|
44
|
+
});
|
|
45
|
+
export {
|
|
46
|
+
$a049562f99e7db0e$export$eb2fcfdbd7ba97d4 as $,
|
|
47
|
+
$a049562f99e7db0e$export$f9c6924e160136d1 as a
|
|
48
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { $ as $4e85f108e88277b8$export$d688439359537581 } from "./RSPContexts-2lR5GG9p.js";
|
|
2
|
+
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./utils-B94NDG0v.js";
|
|
3
|
+
import React__default, { forwardRef } from "react";
|
|
4
|
+
const $5cb03073d3f54797$export$a8a3e93435678ff9 = /* @__PURE__ */ forwardRef(function Heading(props, ref) {
|
|
5
|
+
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $4e85f108e88277b8$export$d688439359537581);
|
|
6
|
+
let { children, level = 3, className, ...domProps } = props;
|
|
7
|
+
let Element = `h${level}`;
|
|
8
|
+
return /* @__PURE__ */ React__default.createElement(Element, {
|
|
9
|
+
...domProps,
|
|
10
|
+
ref,
|
|
11
|
+
className: className !== null && className !== void 0 ? className : "react-aria-Heading"
|
|
12
|
+
}, children);
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
$5cb03073d3f54797$export$a8a3e93435678ff9 as $
|
|
16
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React__default, { forwardRef, useContext, createContext } from "react";
|
|
2
|
+
if (typeof HTMLTemplateElement !== "undefined") {
|
|
3
|
+
const getFirstChild = Object.getOwnPropertyDescriptor(Node.prototype, "firstChild").get;
|
|
4
|
+
Object.defineProperty(HTMLTemplateElement.prototype, "firstChild", {
|
|
5
|
+
configurable: true,
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
if (this.dataset.reactAriaHidden) return this.content.firstChild;
|
|
9
|
+
else return getFirstChild.call(this);
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
const $f39a9eba43920ace$export$94b6d0abf7d33e8c = /* @__PURE__ */ createContext(false);
|
|
14
|
+
function $f39a9eba43920ace$export$8dc98ba7eadeaa56(props) {
|
|
15
|
+
let isHidden = useContext($f39a9eba43920ace$export$94b6d0abf7d33e8c);
|
|
16
|
+
if (isHidden)
|
|
17
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, props.children);
|
|
18
|
+
let children = /* @__PURE__ */ React__default.createElement($f39a9eba43920ace$export$94b6d0abf7d33e8c.Provider, {
|
|
19
|
+
value: true
|
|
20
|
+
}, props.children);
|
|
21
|
+
return /* @__PURE__ */ React__default.createElement("template", {
|
|
22
|
+
"data-react-aria-hidden": true
|
|
23
|
+
}, children);
|
|
24
|
+
}
|
|
25
|
+
function $f39a9eba43920ace$export$86427a43e3e48ebb(fn) {
|
|
26
|
+
let Wrapper = (props, ref) => {
|
|
27
|
+
let isHidden = useContext($f39a9eba43920ace$export$94b6d0abf7d33e8c);
|
|
28
|
+
if (isHidden) return null;
|
|
29
|
+
return fn(props, ref);
|
|
30
|
+
};
|
|
31
|
+
Wrapper.displayName = fn.displayName || fn.name;
|
|
32
|
+
return forwardRef(Wrapper);
|
|
33
|
+
}
|
|
34
|
+
function $f39a9eba43920ace$export$b5d7cc18bb8d2b59() {
|
|
35
|
+
return useContext($f39a9eba43920ace$export$94b6d0abf7d33e8c);
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
$f39a9eba43920ace$export$86427a43e3e48ebb as $,
|
|
39
|
+
$f39a9eba43920ace$export$8dc98ba7eadeaa56 as a,
|
|
40
|
+
$f39a9eba43920ace$export$b5d7cc18bb8d2b59 as b
|
|
41
|
+
};
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { b as $458b0a5536c1a7cf$export$40bfa8c7b0832715, a as $f645667febf57a63$export$4c014de7c8940b4c, f as $431fbd86ca7dc216$export$f21a1ffae260145a, $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-VO5tcIli.js";
|
|
2
|
+
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "./utils-B94NDG0v.js";
|
|
3
|
+
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
4
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-DlmRL87g.js";
|
|
5
|
+
import React__default, { useEffect, createContext } from "react";
|
|
6
|
+
import { a as $2baaea4c71418dea$export$294aa081a6c6f55d } from "./FieldError-DeUh5Wkw.js";
|
|
7
|
+
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, a as $e93e671b31057976$export$b8473d3665f3a75a } from "./useFormValidation-D0_aaK-e.js";
|
|
8
|
+
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-rE6uR-lr.js";
|
|
9
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-nMG2uzxS.js";
|
|
10
|
+
function $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {
|
|
11
|
+
let { inputElementType = "input", isDisabled = false, isRequired = false, isReadOnly = false, type = "text", validationBehavior = "aria" } = props;
|
|
12
|
+
let [value, setValue] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.value, props.defaultValue || "", props.onChange);
|
|
13
|
+
let { focusableProps } = $f645667febf57a63$export$4c014de7c8940b4c(props, ref);
|
|
14
|
+
let validationState = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
|
|
15
|
+
...props,
|
|
16
|
+
value
|
|
17
|
+
});
|
|
18
|
+
let { isInvalid, validationErrors, validationDetails } = validationState.displayValidation;
|
|
19
|
+
let { labelProps, fieldProps, descriptionProps, errorMessageProps } = $2baaea4c71418dea$export$294aa081a6c6f55d({
|
|
20
|
+
...props,
|
|
21
|
+
isInvalid,
|
|
22
|
+
errorMessage: props.errorMessage || validationErrors
|
|
23
|
+
});
|
|
24
|
+
let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
|
|
25
|
+
labelable: true
|
|
26
|
+
});
|
|
27
|
+
const inputOnlyProps = {
|
|
28
|
+
type,
|
|
29
|
+
pattern: props.pattern
|
|
30
|
+
};
|
|
31
|
+
$99facab73266f662$export$5add1d006293d136(ref, value, setValue);
|
|
32
|
+
$e93e671b31057976$export$b8473d3665f3a75a(props, validationState, ref);
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
if (ref.current instanceof $431fbd86ca7dc216$export$f21a1ffae260145a(ref.current).HTMLTextAreaElement) {
|
|
35
|
+
let input = ref.current;
|
|
36
|
+
Object.defineProperty(input, "defaultValue", {
|
|
37
|
+
get: () => input.value,
|
|
38
|
+
set: () => {
|
|
39
|
+
},
|
|
40
|
+
configurable: true
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
}, [
|
|
44
|
+
ref
|
|
45
|
+
]);
|
|
46
|
+
return {
|
|
47
|
+
labelProps,
|
|
48
|
+
inputProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, inputElementType === "input" ? inputOnlyProps : void 0, {
|
|
49
|
+
disabled: isDisabled,
|
|
50
|
+
readOnly: isReadOnly,
|
|
51
|
+
required: isRequired && validationBehavior === "native",
|
|
52
|
+
"aria-required": isRequired && validationBehavior === "aria" || void 0,
|
|
53
|
+
"aria-invalid": isInvalid || void 0,
|
|
54
|
+
"aria-errormessage": props["aria-errormessage"],
|
|
55
|
+
"aria-activedescendant": props["aria-activedescendant"],
|
|
56
|
+
"aria-autocomplete": props["aria-autocomplete"],
|
|
57
|
+
"aria-haspopup": props["aria-haspopup"],
|
|
58
|
+
"aria-controls": props["aria-controls"],
|
|
59
|
+
value,
|
|
60
|
+
onChange: (e) => setValue(e.target.value),
|
|
61
|
+
autoComplete: props.autoComplete,
|
|
62
|
+
autoCapitalize: props.autoCapitalize,
|
|
63
|
+
maxLength: props.maxLength,
|
|
64
|
+
minLength: props.minLength,
|
|
65
|
+
name: props.name,
|
|
66
|
+
placeholder: props.placeholder,
|
|
67
|
+
inputMode: props.inputMode,
|
|
68
|
+
autoCorrect: props.autoCorrect,
|
|
69
|
+
spellCheck: props.spellCheck,
|
|
70
|
+
[parseInt(React__default.version, 10) >= 17 ? "enterKeyHint" : "enterkeyhint"]: props.enterKeyHint,
|
|
71
|
+
// Clipboard events
|
|
72
|
+
onCopy: props.onCopy,
|
|
73
|
+
onCut: props.onCut,
|
|
74
|
+
onPaste: props.onPaste,
|
|
75
|
+
// Composition events
|
|
76
|
+
onCompositionEnd: props.onCompositionEnd,
|
|
77
|
+
onCompositionStart: props.onCompositionStart,
|
|
78
|
+
onCompositionUpdate: props.onCompositionUpdate,
|
|
79
|
+
// Selection events
|
|
80
|
+
onSelect: props.onSelect,
|
|
81
|
+
// Input events
|
|
82
|
+
onBeforeInput: props.onBeforeInput,
|
|
83
|
+
onInput: props.onInput,
|
|
84
|
+
...focusableProps,
|
|
85
|
+
...fieldProps
|
|
86
|
+
}),
|
|
87
|
+
descriptionProps,
|
|
88
|
+
errorMessageProps,
|
|
89
|
+
isInvalid,
|
|
90
|
+
validationErrors,
|
|
91
|
+
validationDetails
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
const $3985021b0ad6602f$export$37fb8590cf2c088c = /* @__PURE__ */ createContext({});
|
|
95
|
+
let $3985021b0ad6602f$var$filterHoverProps = (props) => {
|
|
96
|
+
let { onHoverStart, onHoverChange, onHoverEnd, ...otherProps } = props;
|
|
97
|
+
return otherProps;
|
|
98
|
+
};
|
|
99
|
+
const $3985021b0ad6602f$export$f5b8910cec6cf069 = /* @__PURE__ */ $f39a9eba43920ace$export$86427a43e3e48ebb(function Input(props, ref) {
|
|
100
|
+
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $3985021b0ad6602f$export$37fb8590cf2c088c);
|
|
101
|
+
let { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
102
|
+
let { isFocused, isFocusVisible, focusProps } = $f7dceffc5ad7768b$export$4e328f61c538687f({
|
|
103
|
+
isTextInput: true,
|
|
104
|
+
autoFocus: props.autoFocus
|
|
105
|
+
});
|
|
106
|
+
let isInvalid = !!props["aria-invalid"] && props["aria-invalid"] !== "false";
|
|
107
|
+
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
108
|
+
...props,
|
|
109
|
+
values: {
|
|
110
|
+
isHovered,
|
|
111
|
+
isFocused,
|
|
112
|
+
isFocusVisible,
|
|
113
|
+
isDisabled: props.disabled || false,
|
|
114
|
+
isInvalid
|
|
115
|
+
},
|
|
116
|
+
defaultClassName: "react-aria-Input"
|
|
117
|
+
});
|
|
118
|
+
return /* @__PURE__ */ React__default.createElement("input", {
|
|
119
|
+
...$3ef42575df84b30b$export$9d1611c77c2fe928($3985021b0ad6602f$var$filterHoverProps(props), focusProps, hoverProps),
|
|
120
|
+
...renderProps,
|
|
121
|
+
ref,
|
|
122
|
+
"data-focused": isFocused || void 0,
|
|
123
|
+
"data-disabled": props.disabled || void 0,
|
|
124
|
+
"data-hovered": isHovered || void 0,
|
|
125
|
+
"data-focus-visible": isFocusVisible || void 0,
|
|
126
|
+
"data-invalid": isInvalid || void 0
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
export {
|
|
130
|
+
$3985021b0ad6602f$export$f5b8910cec6cf069 as $,
|
|
131
|
+
$3985021b0ad6602f$export$37fb8590cf2c088c as a,
|
|
132
|
+
$2d73ec29415bd339$export$712718f7aec83d5 as b
|
|
133
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./utils-B94NDG0v.js";
|
|
2
|
+
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-rE6uR-lr.js";
|
|
3
|
+
import React__default, { createContext } from "react";
|
|
4
|
+
const $01b77f81d0f07f68$export$75b6ee27786ba447 = /* @__PURE__ */ createContext({});
|
|
5
|
+
const $01b77f81d0f07f68$export$b04be29aa201d4f5 = /* @__PURE__ */ $f39a9eba43920ace$export$86427a43e3e48ebb(function Label(props, ref) {
|
|
6
|
+
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $01b77f81d0f07f68$export$75b6ee27786ba447);
|
|
7
|
+
let { elementType: ElementType = "label", ...labelProps } = props;
|
|
8
|
+
return /* @__PURE__ */ React__default.createElement(ElementType, {
|
|
9
|
+
className: "react-aria-Label",
|
|
10
|
+
...labelProps,
|
|
11
|
+
ref
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
$01b77f81d0f07f68$export$b04be29aa201d4f5 as $,
|
|
16
|
+
$01b77f81d0f07f68$export$75b6ee27786ba447 as a
|
|
17
|
+
};
|