@eightshift/ui-components 7.2.1 → 7.3.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/Autocomplete-pLMPWMFq.js +451 -0
- package/dist/Button-Biwg7zwt.js +223 -0
- package/dist/Dialog-C1sh8jbh.js +2474 -0
- package/dist/{Disclosure-NYWFw9RJ.js → Disclosure-B_SHgiUz.js} +50 -51
- package/dist/FocusScope-lGkM8AO8.js +734 -0
- package/dist/Form-BxIJCHYd.js +5 -0
- package/dist/Heading-B2EsUuu6.js +16 -0
- package/dist/{Hidden-8TB37dpK.js → Hidden-DYY00jLm.js} +10 -10
- package/dist/I18nProvider-Cm6dj5jY.js +93 -0
- package/dist/Label-B1TkoVOG.js +17 -0
- package/dist/ListBox-BquE0m8z.js +584 -0
- package/dist/{NumberFormatter-m5VW6MTK.js → NumberFormatter-JHF0Tadk.js} +24 -26
- package/dist/PortalProvider-BYcv24il.js +13 -0
- package/dist/RadioGroup-BxjLooWU.js +324 -0
- package/dist/SearchField-BkAU0HLm.js +322 -0
- package/dist/SelectionIndicator-Bx_EYBXD.js +13 -0
- package/dist/{Slider-DW1RuMVp.js → Slider-DSv6fyZ6.js} +321 -363
- package/dist/Text-C8pfwn0W.js +16 -0
- package/dist/{VisuallyHidden-CfsnJHZb.js → VisuallyHidden-KcXlGa5p.js} +12 -12
- package/dist/{animation-Bd2peown.js → animation-BJ-2VKdB.js} +12 -12
- package/dist/assets/style-admin.css +1 -1
- package/dist/assets/style-editor.css +1 -1
- package/dist/assets/style.css +1 -1
- package/dist/{button-D9cbyHeZ.js → button-CawAzlko.js} +21 -73
- package/dist/{checkbox-BO5RZmO8.js → checkbox-t7VrqXv2.js} +59 -62
- package/dist/{color-swatch-D2ZBkuTt.js → color-swatch-gU09x9Ga.js} +417 -414
- package/dist/components/base-control/base-control.js +2 -2
- package/dist/components/base-control/container.js +1 -1
- package/dist/components/breakpoint-preview/breakpoint-preview.js +1 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/color-pickers/color-picker.js +2 -2
- package/dist/components/color-pickers/color-swatch.js +1 -1
- package/dist/components/color-pickers/gradient-editor.js +1 -1
- package/dist/components/color-pickers/solid-color-picker.js +1 -1
- package/dist/components/component-toggle/component-toggle.js +4 -4
- package/dist/components/container-panel/container-panel.js +5 -5
- package/dist/components/draggable/draggable-handle.js +1 -1
- package/dist/components/draggable/draggable.js +1 -1
- package/dist/components/draggable-list/draggable-list-item.js +1 -1
- package/dist/components/draggable-list/draggable-list.js +2 -2
- package/dist/components/expandable/expandable.js +7 -7
- package/dist/components/index.js +15 -15
- package/dist/components/input-field/input-field.js +1 -1
- package/dist/components/item-collection/item-collection.js +1 -1
- package/dist/components/link-input/link-input.js +1 -1
- package/dist/components/matrix-align/matrix-align.js +5 -5
- package/dist/components/menu/menu.js +11 -11
- package/dist/components/modal/modal.js +1 -1
- package/dist/components/number-picker/number-picker.js +1 -1
- package/dist/components/option-select/option-select.js +3 -3
- package/dist/components/options-panel/options-panel.js +3 -3
- package/dist/components/placeholders/file-picker-shell.js +1 -1
- package/dist/components/placeholders/file-placeholder.js +1 -1
- package/dist/components/popover/popover.js +6 -6
- package/dist/components/portal-provider/portal-provider.js +2 -2
- package/dist/components/radio/radio.js +9 -9
- package/dist/components/repeater/repeater-item.js +2 -2
- package/dist/components/repeater/repeater.js +3 -3
- package/dist/components/responsive/mini-responsive.js +6 -6
- package/dist/components/responsive/responsive-legacy.js +5 -5
- package/dist/components/responsive/responsive.js +5 -5
- package/dist/components/responsive-preview/responsive-preview.js +2 -2
- package/dist/components/select/async-multi-select.js +27 -26
- package/dist/components/select/async-select.js +27 -26
- package/dist/components/select/multi-select.js +33 -32
- package/dist/components/select/shared.js +1 -1
- package/dist/components/select/single-select.js +33 -32
- package/dist/components/select/styles.js +1 -1
- package/dist/components/slider/column-config-slider.js +8 -8
- package/dist/components/slider/slider.js +8 -8
- package/dist/components/slider/utils.js +1 -1
- package/dist/components/smart-image/smart-image.js +1 -1
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/toggle/switch.js +1 -1
- package/dist/components/toggle/toggle.js +3 -3
- package/dist/components/toggle-button/toggle-button.js +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/{draggable-CTDVJ4zd.js → draggable-Cxv-OueQ.js} +1 -1
- package/dist/filterDOMProps-BfW758QC.js +69 -0
- package/dist/{gradient-editor-CD5Sho6A.js → gradient-editor-CInqVF8v.js} +6 -6
- package/dist/icons/index.js +1 -1
- package/dist/icons/jsx-svg.js +1 -1
- package/dist/index.js +15 -15
- package/dist/{input-field-_OCWbftf.js → input-field-BdFrxQ-R.js} +46 -47
- package/dist/keyboard-CT41mQzR.js +55 -0
- package/dist/{link-input-BnjtzMbF.js → link-input-BDFhSSvH.js} +324 -356
- package/dist/{modal-snrElwty.js → modal-CJDaBdPh.js} +100 -92
- package/dist/{number-ZZIxJukn.js → number-MWRvGfyE.js} +10 -10
- package/dist/{number-picker-Dhtx4409.js → number-picker-BrxrB-xq.js} +43 -42
- package/dist/{shared-BpAYSi3F.js → shared-CI4kcnm8.js} +482 -502
- package/dist/{smart-image-CBNbxJ57.js → smart-image-eGdMu9s9.js} +2 -2
- package/dist/{solid-color-picker-DukArNH-.js → solid-color-picker-DXgX-OAm.js} +926 -935
- package/dist/{switch-DmsvyQPa.js → switch-DNHFoCCx.js} +28 -28
- package/dist/{tabs-Cy6gB0RL.js → tabs-C2tPOEYr.js} +145 -149
- package/dist/textSelection-BhX_2zV9.js +45 -0
- package/dist/{toggle-button-BlzUGfGy.js → toggle-button-DYDp11rq.js} +35 -35
- package/dist/{tooltip-BzJzYlcc.js → tooltip-C-hT6tN9.js} +162 -162
- package/dist/{useAsyncList-BNzwKoX4.js → useAsyncList-DsOh1xIx.js} +54 -74
- package/dist/{useButton-ra1ZSZ4z.js → useButton-BMZc4fTX.js} +11 -11
- package/dist/{SelectionManager-B8lLv6Ue.js → useCollection-CBVYSuGz.js} +1689 -1777
- package/dist/{useEvent-DkZVfgsS.js → useEvent-ypAU33vv.js} +5 -5
- package/dist/useField-BXf__jxy.js +32 -0
- package/dist/{useFilter-OiMnf6sb.js → useFilter-CfKEbIwL.js} +5 -5
- package/dist/{useFocusRing-DuYL4cdO.js → useFocusRing-BgYY-7ko.js} +23 -23
- package/dist/useFormReset-BuMc_O4y.js +17 -0
- package/dist/{FieldError-BWDbP5Db.js → useFormValidation-BcME9D0E.js} +63 -66
- package/dist/useHover-lyApu3ba.js +975 -0
- package/dist/{useLabel-2EohW5l6.js → useLabel-Rv8cIIKk.js} +8 -8
- package/dist/{useLabels-B2p7RXi5.js → useLabels-xOYtkA8o.js} +5 -5
- package/dist/useListState-u6DfeXHi.js +135 -0
- package/dist/{useLocalizedStringFormatter-Dv2diN3k.js → useLocalizedStringFormatter-CR-bmorj.js} +45 -45
- package/dist/{useNumberField-2xbi3jRV.js → useNumberFieldState-xL-ecwNz.js} +665 -619
- package/dist/useNumberFormatter-CR1PAFPG.js +10 -0
- package/dist/useOverlayTriggerState-AeCx45Gv.js +551 -0
- package/dist/usePress-Dnx5rBoD.js +593 -0
- package/dist/useTextField-BW3ZwGyz.js +159 -0
- package/dist/{useToggle-ecIirvIM.js → useToggle-BF5wptMP.js} +19 -20
- package/dist/useToggleState-D5P01lch.js +22 -0
- package/dist/useToolbar-BT25-MJg.js +55 -0
- package/dist/utilities/debounce-throttle.js +1 -1
- package/dist/utilities/es-dash.js +1 -1
- package/dist/utilities/index.js +3 -3
- package/dist/{utils-B_uiqNa4.js → utils-JFcCNFzy.js} +121 -122
- package/package.json +13 -13
- package/dist/Button-h6xF_WrP.js +0 -225
- package/dist/Dialog-i5VLQw1o.js +0 -2488
- package/dist/FocusScope-CgwbGOBB.js +0 -746
- package/dist/Form-DTMkbrQY.js +0 -5
- package/dist/Heading-Hol-wS_B.js +0 -16
- package/dist/Input-BURqyJXW.js +0 -161
- package/dist/Label-DFXXxMKY.js +0 -17
- package/dist/ListBox-BHUJxpwh.js +0 -600
- package/dist/OverlayArrow-BoloUPQM.js +0 -573
- package/dist/PortalProvider-DinZZCKX.js +0 -14
- package/dist/RSPContexts-C_z0bI8W.js +0 -12
- package/dist/RadioGroup-BwlGtCja.js +0 -329
- package/dist/SearchField-Cm1i5mLj.js +0 -764
- package/dist/SelectionIndicator-31L6EI9F.js +0 -13
- package/dist/Text-O6VBBDlP.js +0 -16
- package/dist/context-C-XNeJ_l.js +0 -93
- package/dist/filterDOMProps-_2_3GD-K.js +0 -69
- package/dist/textSelection-Dv6WPj0Z.js +0 -45
- package/dist/useField-D0WrzR2F.js +0 -32
- package/dist/useFormReset-DdkykzAn.js +0 -18
- package/dist/useHover-qaMm3XFO.js +0 -982
- package/dist/useListState-CD_5vfyy.js +0 -147
- package/dist/useNumberFormatter-C2Cm2mNj.js +0 -10
- package/dist/usePress-ZP1TjkFf.js +0 -678
- package/dist/useToggleState-IIDbiKPl.js +0 -23
- /package/dist/{List-DWlgW2Ex.js → List---tsVJlI.js} +0 -0
- /package/dist/{build-module-Bsx62nlm.js → build-module-K6vi4xE0.js} +0 -0
- /package/dist/{debounce-throttle-DXxSAKpq.js → debounce-throttle-LSPAPFtq.js} +0 -0
- /package/dist/{dist-2gkv7_1U.js → dist-jw8wvxoG.js} +0 -0
- /package/dist/{es-dash-HqXWZZ3_.js → es-dash-BuShf_ht.js} +0 -0
- /package/dist/{jsx-svg-DgKbriN1.js → jsx-svg-DT1SBWuP.js} +0 -0
- /package/dist/{utilities-lwX686oD.js → utilities-DV0KKJNR.js} +0 -0
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-BUU5J41u.js";
|
|
2
|
-
import { n as $
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as $
|
|
6
|
-
import { t as $
|
|
7
|
-
import { t as $
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { t as $
|
|
2
|
+
import { c as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, i as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$df3a06d6289f983e, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$ef03459518577ad4, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a, u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-JFcCNFzy.js";
|
|
3
|
+
import { t as $e969f22b6713ca4a$export$ae780daf29e6d456 } from "./useHover-lyApu3ba.js";
|
|
4
|
+
import { n as $4b38b5b75ecc6208$export$698f465ec27e93df } from "./Autocomplete-pLMPWMFq.js";
|
|
5
|
+
import { t as $d7f64c32b702fe2c$export$86427a43e3e48ebb } from "./Hidden-DYY00jLm.js";
|
|
6
|
+
import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-BfW758QC.js";
|
|
7
|
+
import { t as $0c4a58759813079a$export$4e328f61c538687f } from "./useFocusRing-BgYY-7ko.js";
|
|
8
|
+
import { n as $43a3b93638fe5db9$export$b04be29aa201d4f5, t as $43a3b93638fe5db9$export$75b6ee27786ba447 } from "./Label-B1TkoVOG.js";
|
|
9
|
+
import { n as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-C8pfwn0W.js";
|
|
10
|
+
import { a as $1f3c3b1a70cec653$export$ff05c3ac10437e03 } from "./useFormValidation-BcME9D0E.js";
|
|
11
|
+
import { t as $cdaed739b1139372$export$c24727297075ec6a } from "./Form-BxIJCHYd.js";
|
|
12
|
+
import { a as $3a442827418ebe87$export$f9c6924e160136d1, n as $41fb335299a4a39e$export$37fb8590cf2c088c, r as $41fb335299a4a39e$export$f5b8910cec6cf069, t as $054f71d2330da2e3$export$712718f7aec83d5 } from "./useTextField-BW3ZwGyz.js";
|
|
13
13
|
import { BaseControl } from "./components/base-control/base-control.js";
|
|
14
|
-
import { t as cva } from "./dist-
|
|
14
|
+
import { t as cva } from "./dist-jw8wvxoG.js";
|
|
15
15
|
import React, { createContext, forwardRef, useCallback, useRef, useState } from "react";
|
|
16
16
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
|
-
//#region node_modules/react-aria-components/dist/TextArea.mjs
|
|
18
|
-
var $
|
|
19
|
-
var $
|
|
17
|
+
//#region node_modules/react-aria-components/dist/private/TextArea.mjs
|
|
18
|
+
var $bd263d78e9bf3c56$export$2dc6166a7e65358c = createContext({});
|
|
19
|
+
var $bd263d78e9bf3c56$var$filterHoverProps = (props) => {
|
|
20
20
|
let { onHoverStart, onHoverChange, onHoverEnd, ...otherProps } = props;
|
|
21
21
|
return otherProps;
|
|
22
22
|
};
|
|
23
|
-
var $
|
|
24
|
-
[props, ref] = $
|
|
25
|
-
let { hoverProps, isHovered } = $
|
|
26
|
-
let { isFocused, isFocusVisible, focusProps } = $
|
|
23
|
+
var $bd263d78e9bf3c56$export$f5c9f3c2c4054eec = forwardRef(function TextArea(props, ref) {
|
|
24
|
+
[props, ref] = $7230ffa83bc0c2cf$export$29f1550f4b0d4415(props, ref, $bd263d78e9bf3c56$export$2dc6166a7e65358c);
|
|
25
|
+
let { hoverProps, isHovered } = $e969f22b6713ca4a$export$ae780daf29e6d456(props);
|
|
26
|
+
let { isFocused, isFocusVisible, focusProps } = $0c4a58759813079a$export$4e328f61c538687f({
|
|
27
27
|
isTextInput: true,
|
|
28
28
|
autoFocus: props.autoFocus
|
|
29
29
|
});
|
|
30
30
|
let isInvalid = !!props["aria-invalid"] && props["aria-invalid"] !== "false";
|
|
31
|
-
let renderProps = $
|
|
31
|
+
let renderProps = $7230ffa83bc0c2cf$export$4d86445c2cf5e3({
|
|
32
32
|
...props,
|
|
33
33
|
values: {
|
|
34
34
|
isHovered,
|
|
@@ -39,8 +39,8 @@ var $216918bed6669f72$export$f5c9f3c2c4054eec = forwardRef(function TextArea(pro
|
|
|
39
39
|
},
|
|
40
40
|
defaultClassName: "react-aria-TextArea"
|
|
41
41
|
});
|
|
42
|
-
return React.createElement($
|
|
43
|
-
...$
|
|
42
|
+
return React.createElement($7230ffa83bc0c2cf$export$df3a06d6289f983e.textarea, {
|
|
43
|
+
...$bbaa08b3cd72f041$export$9d1611c77c2fe928($bd263d78e9bf3c56$var$filterHoverProps(props), focusProps, hoverProps),
|
|
44
44
|
...renderProps,
|
|
45
45
|
ref,
|
|
46
46
|
"data-focused": isFocused || void 0,
|
|
@@ -51,19 +51,18 @@ var $216918bed6669f72$export$f5c9f3c2c4054eec = forwardRef(function TextArea(pro
|
|
|
51
51
|
});
|
|
52
52
|
});
|
|
53
53
|
//#endregion
|
|
54
|
-
//#region node_modules/react-aria-components/dist/TextField.mjs
|
|
55
|
-
var $
|
|
56
|
-
var $
|
|
57
|
-
[props, ref] = $
|
|
58
|
-
let { validationBehavior: formValidationBehavior } = $
|
|
59
|
-
|
|
60
|
-
let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== void 0 ? _ref : "native";
|
|
54
|
+
//#region node_modules/react-aria-components/dist/private/TextField.mjs
|
|
55
|
+
var $b8dcdc58eeae0d40$export$2129e27b3ef0d483 = createContext(null);
|
|
56
|
+
var $b8dcdc58eeae0d40$export$2c73285ae9390cec = $d7f64c32b702fe2c$export$86427a43e3e48ebb(function TextField(props, ref) {
|
|
57
|
+
[props, ref] = $7230ffa83bc0c2cf$export$29f1550f4b0d4415(props, ref, $b8dcdc58eeae0d40$export$2129e27b3ef0d483);
|
|
58
|
+
let { validationBehavior: formValidationBehavior } = $7230ffa83bc0c2cf$export$fabf2dc03a41866e($cdaed739b1139372$export$c24727297075ec6a) || {};
|
|
59
|
+
let validationBehavior = props.validationBehavior ?? formValidationBehavior ?? "native";
|
|
61
60
|
let inputRef = useRef(null);
|
|
62
|
-
[props, inputRef] = $
|
|
63
|
-
let [labelRef, label] = $
|
|
61
|
+
[props, inputRef] = $7230ffa83bc0c2cf$export$29f1550f4b0d4415(props, inputRef, $4b38b5b75ecc6208$export$698f465ec27e93df);
|
|
62
|
+
let [labelRef, label] = $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8(!props["aria-label"] && !props["aria-labelledby"]);
|
|
64
63
|
let [inputElementType, setInputElementType] = useState("input");
|
|
65
|
-
let { labelProps, inputProps, descriptionProps, errorMessageProps, ...validation } = $
|
|
66
|
-
...$
|
|
64
|
+
let { labelProps, inputProps, descriptionProps, errorMessageProps, ...validation } = $054f71d2330da2e3$export$712718f7aec83d5({
|
|
65
|
+
...$7230ffa83bc0c2cf$export$ef03459518577ad4(props),
|
|
67
66
|
inputElementType,
|
|
68
67
|
label,
|
|
69
68
|
validationBehavior
|
|
@@ -72,7 +71,7 @@ var $bcdf0525bf22703d$export$2c73285ae9390cec = $f39a9eba43920ace$export$86427a4
|
|
|
72
71
|
inputRef.current = el;
|
|
73
72
|
if (el) setInputElementType(el instanceof HTMLTextAreaElement ? "textarea" : "input");
|
|
74
73
|
}, [inputRef]);
|
|
75
|
-
let renderProps = $
|
|
74
|
+
let renderProps = $7230ffa83bc0c2cf$export$4d86445c2cf5e3({
|
|
76
75
|
...props,
|
|
77
76
|
values: {
|
|
78
77
|
isDisabled: props.isDisabled || false,
|
|
@@ -82,9 +81,9 @@ var $bcdf0525bf22703d$export$2c73285ae9390cec = $f39a9eba43920ace$export$86427a4
|
|
|
82
81
|
},
|
|
83
82
|
defaultClassName: "react-aria-TextField"
|
|
84
83
|
});
|
|
85
|
-
let DOMProps = $
|
|
84
|
+
let DOMProps = $8e9d2fae0ecb9001$export$457c3d6518dd4c6f(props, { global: true });
|
|
86
85
|
delete DOMProps.id;
|
|
87
|
-
return React.createElement($
|
|
86
|
+
return React.createElement($7230ffa83bc0c2cf$export$df3a06d6289f983e.div, {
|
|
88
87
|
...DOMProps,
|
|
89
88
|
...renderProps,
|
|
90
89
|
ref,
|
|
@@ -93,29 +92,29 @@ var $bcdf0525bf22703d$export$2c73285ae9390cec = $f39a9eba43920ace$export$86427a4
|
|
|
93
92
|
"data-invalid": validation.isInvalid || void 0,
|
|
94
93
|
"data-readonly": props.isReadOnly || void 0,
|
|
95
94
|
"data-required": props.isRequired || void 0
|
|
96
|
-
}, React.createElement($
|
|
97
|
-
[$
|
|
95
|
+
}, React.createElement($7230ffa83bc0c2cf$export$2881499e37b75b9a, { values: [
|
|
96
|
+
[$43a3b93638fe5db9$export$75b6ee27786ba447, {
|
|
98
97
|
...labelProps,
|
|
99
98
|
ref: labelRef
|
|
100
99
|
}],
|
|
101
|
-
[$
|
|
100
|
+
[$41fb335299a4a39e$export$37fb8590cf2c088c, {
|
|
102
101
|
...inputProps,
|
|
103
102
|
ref: inputOrTextAreaRef
|
|
104
103
|
}],
|
|
105
|
-
[$
|
|
104
|
+
[$bd263d78e9bf3c56$export$2dc6166a7e65358c, {
|
|
106
105
|
...inputProps,
|
|
107
106
|
ref: inputOrTextAreaRef
|
|
108
107
|
}],
|
|
109
|
-
[$
|
|
108
|
+
[$3a442827418ebe87$export$f9c6924e160136d1, {
|
|
110
109
|
role: "presentation",
|
|
111
110
|
isInvalid: validation.isInvalid,
|
|
112
111
|
isDisabled: props.isDisabled || false
|
|
113
112
|
}],
|
|
114
|
-
[$
|
|
113
|
+
[$efe09c6d1c304b50$export$9afb8bc826b033ea, { slots: {
|
|
115
114
|
description: descriptionProps,
|
|
116
115
|
errorMessage: errorMessageProps
|
|
117
116
|
} }],
|
|
118
|
-
[$
|
|
117
|
+
[$1f3c3b1a70cec653$export$ff05c3ac10437e03, validation]
|
|
119
118
|
] }, renderProps.children));
|
|
120
119
|
});
|
|
121
120
|
//#endregion
|
|
@@ -243,7 +242,7 @@ var inputClass = cva([
|
|
|
243
242
|
var InputField = (props) => {
|
|
244
243
|
const { icon, label, subtitle, help, actions, inline, value, onChange, type = "text", disabled, readOnly, className, flat, size, wrapperClassName, hidden, monospaceFont, ...other } = props;
|
|
245
244
|
if (hidden) return null;
|
|
246
|
-
return jsx($
|
|
245
|
+
return jsx($b8dcdc58eeae0d40$export$2c73285ae9390cec, {
|
|
247
246
|
value: value ?? "",
|
|
248
247
|
onChange,
|
|
249
248
|
isDisabled: disabled,
|
|
@@ -256,9 +255,9 @@ var InputField = (props) => {
|
|
|
256
255
|
subtitle,
|
|
257
256
|
actions,
|
|
258
257
|
inline,
|
|
259
|
-
labelAs: $
|
|
258
|
+
labelAs: $43a3b93638fe5db9$export$b04be29aa201d4f5,
|
|
260
259
|
help,
|
|
261
|
-
children: [type !== "multiline" && jsx($
|
|
260
|
+
children: [type !== "multiline" && jsx($41fb335299a4a39e$export$f5b8910cec6cf069, {
|
|
262
261
|
...other,
|
|
263
262
|
type,
|
|
264
263
|
className: clsx(inputClass({
|
|
@@ -272,7 +271,7 @@ var InputField = (props) => {
|
|
|
272
271
|
if (type === "search" && e.key === "Escape") onChange("");
|
|
273
272
|
if (props.onKeyUp) props.onKeyUp(e);
|
|
274
273
|
}
|
|
275
|
-
}), type === "multiline" && jsx($
|
|
274
|
+
}), type === "multiline" && jsx($bd263d78e9bf3c56$export$f5c9f3c2c4054eec, {
|
|
276
275
|
...other,
|
|
277
276
|
className: clsx(inputClass({
|
|
278
277
|
disabled,
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { O as $2add3ce32c6007eb$export$9ac100e40613ea10, V as $23f2114a1b82827e$export$cd4e5573fbe2b576, W as $d447af545b77c9f1$export$b204af158042fbac } from "./useHover-lyApu3ba.js";
|
|
2
|
+
//#region node_modules/react-aria/dist/private/utils/constants.mjs
|
|
3
|
+
var $8b2399d051d06d4c$export$447a38995de2c711 = "react-aria-clear-focus";
|
|
4
|
+
var $8b2399d051d06d4c$export$831c820ad60f9d12 = "react-aria-focus";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region node_modules/react-aria/dist/private/focus/virtualFocus.mjs
|
|
7
|
+
function $b72f3f7b3b5f42c6$export$76e4e37e5339496d(to) {
|
|
8
|
+
let from = $b72f3f7b3b5f42c6$export$759df0d867455a91($d447af545b77c9f1$export$b204af158042fbac(to));
|
|
9
|
+
if (from !== to) {
|
|
10
|
+
if (from) $b72f3f7b3b5f42c6$export$6c5dc7e81d2cc29a(from, to);
|
|
11
|
+
if (to) $b72f3f7b3b5f42c6$export$2b35b76d2e30e129(to, from);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
function $b72f3f7b3b5f42c6$export$6c5dc7e81d2cc29a(from, to) {
|
|
15
|
+
from.dispatchEvent(new FocusEvent("blur", { relatedTarget: to }));
|
|
16
|
+
from.dispatchEvent(new FocusEvent("focusout", {
|
|
17
|
+
bubbles: true,
|
|
18
|
+
relatedTarget: to
|
|
19
|
+
}));
|
|
20
|
+
}
|
|
21
|
+
function $b72f3f7b3b5f42c6$export$2b35b76d2e30e129(to, from) {
|
|
22
|
+
to.dispatchEvent(new FocusEvent("focus", { relatedTarget: from }));
|
|
23
|
+
to.dispatchEvent(new FocusEvent("focusin", {
|
|
24
|
+
bubbles: true,
|
|
25
|
+
relatedTarget: from
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
28
|
+
function $b72f3f7b3b5f42c6$export$759df0d867455a91(document) {
|
|
29
|
+
let activeElement = $23f2114a1b82827e$export$cd4e5573fbe2b576(document);
|
|
30
|
+
let activeDescendant = activeElement?.getAttribute("aria-activedescendant");
|
|
31
|
+
if (activeDescendant) return document.getElementById(activeDescendant) || activeElement;
|
|
32
|
+
return activeElement;
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region node_modules/react-aria/dist/private/utils/keyboard.mjs
|
|
36
|
+
function $bb39c0fc1c19b34c$export$16792effe837dba3(e) {
|
|
37
|
+
if ($2add3ce32c6007eb$export$9ac100e40613ea10()) return e.metaKey;
|
|
38
|
+
return e.ctrlKey;
|
|
39
|
+
}
|
|
40
|
+
var $bb39c0fc1c19b34c$var$nonTextInputTypes = new Set([
|
|
41
|
+
"checkbox",
|
|
42
|
+
"radio",
|
|
43
|
+
"range",
|
|
44
|
+
"color",
|
|
45
|
+
"file",
|
|
46
|
+
"image",
|
|
47
|
+
"button",
|
|
48
|
+
"submit",
|
|
49
|
+
"reset"
|
|
50
|
+
]);
|
|
51
|
+
function $bb39c0fc1c19b34c$export$c57958e35f31ed73(target) {
|
|
52
|
+
return target instanceof HTMLInputElement && !$bb39c0fc1c19b34c$var$nonTextInputTypes.has(target.type) || target instanceof HTMLTextAreaElement || target instanceof HTMLElement && target.isContentEditable;
|
|
53
|
+
}
|
|
54
|
+
//#endregion
|
|
55
|
+
export { $b72f3f7b3b5f42c6$export$759df0d867455a91 as a, $8b2399d051d06d4c$export$831c820ad60f9d12 as c, $b72f3f7b3b5f42c6$export$6c5dc7e81d2cc29a as i, $bb39c0fc1c19b34c$export$c57958e35f31ed73 as n, $b72f3f7b3b5f42c6$export$76e4e37e5339496d as o, $b72f3f7b3b5f42c6$export$2b35b76d2e30e129 as r, $8b2399d051d06d4c$export$447a38995de2c711 as s, $bb39c0fc1c19b34c$export$16792effe837dba3 as t };
|