@eightshift/ui-components 1.9.1 → 2.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/README.md +0 -7
- package/dist/{Button-BEIi9mB_.js → Button-OQ5EIPvt.js} +8 -8
- package/dist/{SelectionManager-DGbP8Ntl.js → Collection-CJM_asJz.js} +345 -197
- package/dist/{Color-CZxTZUqH.js → Color-B0HgM8f4.js} +1 -1
- package/dist/{ColorSwatch-Iijp9hzP.js → ColorSwatch-Dv3Wxdl_.js} +6 -7
- package/dist/{ComboBox-DVPU5XzU.js → ComboBox-BnlZjJ3T.js} +21 -22
- package/dist/{Dialog-17uxPRe5.js → Dialog-CIh-hX93.js} +77 -65
- package/dist/{FieldError-huHsqqMP.js → FieldError-D7A6s7O5.js} +2 -2
- package/dist/{FocusScope-7r2_SUa9.js → FocusScope-Cs5_OoeA.js} +6 -4
- package/dist/{Group-k_oyd3Te.js → Group-D6tr3U_n.js} +5 -6
- package/dist/{Heading-DRBzKYHb.js → Heading-DiYTXoIW.js} +3 -4
- package/dist/{Hidden-5cXbU70C.js → Hidden-DnOd_jPX.js} +2 -2
- package/dist/{Input-DCmTv_Qw.js → Input-Se0m3ubj.js} +13 -11
- package/dist/{Label-D8G0GMsc.js → Label-Ca9uelsn.js} +4 -5
- package/dist/{List-C7L49CxW.js → List-Br274SP1.js} +16 -8
- package/dist/{ListBox-BxZwDp9o.js → ListBox-D9dFEh5A.js} +36 -23
- package/dist/{OverlayArrow-Dca2JXYU.js → OverlayArrow-1jx-ZyCR.js} +75 -13
- package/dist/{Select-aab027f3.esm-OvJ8lZs8.js → Select-aab027f3.esm-HFNIFFya.js} +4 -4
- package/dist/{Separator-B_VdRHCf.js → Separator-BhZycTUp.js} +9 -7
- package/dist/{Slider-CgEZmlNY.js → Slider-BZNaJylD.js} +20 -24
- package/dist/{Text-Cld9rkzJ.js → Text-aOUPPvTO.js} +3 -4
- package/dist/{VisuallyHidden-D0lsNfi4.js → VisuallyHidden-ClTQo25k.js} +2 -2
- package/dist/assets/index.css +37 -0
- package/dist/assets/style-admin.css +5287 -0
- package/dist/assets/style-editor.css +5287 -0
- package/dist/assets/style.css +5293 -1
- package/dist/assets/wp-font-enhancements.css +8 -1
- package/dist/assets/wp-ui-enhancements.css +299 -1
- package/dist/components/animated-visibility/animated-visibility.js +17 -21
- package/dist/components/base-control/base-control.js +7 -7
- package/dist/components/breakpoint-preview/breakpoint-preview.js +50 -50
- package/dist/components/button/button.js +190 -86
- package/dist/components/checkbox/checkbox.js +44 -27
- package/dist/components/color-pickers/color-picker.js +13 -9
- package/dist/components/color-pickers/color-swatch.js +4 -4
- package/dist/components/color-pickers/gradient-editor.js +25 -24
- package/dist/components/color-pickers/solid-color-picker.js +197 -229
- package/dist/components/component-toggle/component-toggle.js +3 -3
- package/dist/components/container-panel/container-panel.js +17 -17
- package/dist/components/draggable/draggable-handle.js +6 -6
- package/dist/components/draggable/draggable.js +1414 -699
- package/dist/components/draggable-list/draggable-list-item.js +3 -3
- package/dist/components/draggable-list/draggable-list.js +12 -12
- package/dist/components/expandable/expandable.js +66 -78
- package/dist/components/index.js +2 -3
- package/dist/components/input-field/input-field.js +35 -22
- package/dist/components/layout/hstack.js +1 -1
- package/dist/components/layout/vstack.js +1 -1
- package/dist/components/link-input/link-input.js +69 -57
- package/dist/components/matrix-align/matrix-align.js +34 -86
- package/dist/components/menu/menu.js +22 -23
- package/dist/components/modal/modal.js +24 -25
- package/dist/components/notice/notice.js +32 -32
- package/dist/components/number-picker/number-picker.js +41 -40
- package/dist/components/option-select/option-select.js +9 -4
- package/dist/components/options-panel/options-panel.js +63 -28
- package/dist/components/placeholders/file-placeholder.js +6 -17
- package/dist/components/placeholders/image-placeholder.js +17 -17
- package/dist/components/placeholders/media-placeholder.js +12 -12
- package/dist/components/popover/popover.js +6 -5
- package/dist/components/radio/radio.js +60 -43
- package/dist/components/repeater/repeater-item.js +10 -10
- package/dist/components/repeater/repeater.js +8 -8
- package/dist/components/responsive/mini-responsive.js +41 -41
- package/dist/components/responsive/responsive-legacy.js +33 -33
- package/dist/components/responsive/responsive.js +48 -48
- package/dist/components/responsive-preview/responsive-preview.js +4 -4
- package/dist/components/rich-label/rich-label.js +13 -11
- package/dist/components/select/async-multi-select.js +3 -3
- package/dist/components/select/async-single-select.js +2 -2
- package/dist/components/select/custom-select-default-components.js +3 -3
- package/dist/components/select/multi-select-components.js +1 -1
- package/dist/components/select/multi-select.js +3 -3
- package/dist/components/select/react-select-component-wrappers.js +1 -1
- package/dist/components/select/single-select.js +2 -2
- package/dist/components/select/styles.js +21 -21
- package/dist/components/select/v2/async-select.js +37 -47
- package/dist/components/select/v2/shared.js +8 -8
- package/dist/components/select/v2/single-select.js +44 -48
- package/dist/components/slider/column-config-slider.js +25 -25
- package/dist/components/slider/slider.js +173 -182
- package/dist/components/spacer/spacer.js +21 -21
- package/dist/components/tabs/tabs.js +111 -63
- package/dist/components/toggle/switch.js +27 -21
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +160 -83
- package/dist/components/tooltip/tooltip.js +25 -28
- package/dist/{context-DtrQ3I5U.js → context-CDOs-GuR.js} +1 -1
- package/dist/{focusSafely-ChK5oW-0.js → focusSafely-CiqTTjWy.js} +18 -17
- package/dist/icons/icons.js +52 -0
- package/dist/{index-641ee5b8.esm-DRaWil7u.js → index-641ee5b8.esm-DbdaYaxR.js} +45 -45
- package/dist/{index-D0mHceYg.js → index-BRp93Yfa.js} +24 -31
- package/dist/index-CcCn9HWX.js +44 -0
- package/dist/index.js +2 -3
- package/dist/{multi-select-components-2Ax71j9a.js → multi-select-components-CkF3LyTF.js} +4 -4
- package/dist/{react-select-async.esm-BZwl7Ddb.js → react-select-async.esm-DcVLw9X5.js} +3 -3
- package/dist/{react-select.esm-DI0eSkd8.js → react-select.esm-OZ0cmTjg.js} +3 -3
- package/dist/style-admin.js +1 -0
- package/dist/style-editor.js +1 -0
- package/dist/style.js +1 -1
- package/dist/{textSelection-CdZPiDxh.js → textSelection-BlTDSskG.js} +2 -2
- package/dist/{useButton-C5e_EJlC.js → useButton-CmLbE5vg.js} +3 -3
- package/dist/{useEvent-BW_vevRp.js → useEvent-cLDJlznQ.js} +1 -1
- package/dist/{useFocusRing-Dbj6MsFR.js → useFocusRing-CGp3guTX.js} +1 -1
- package/dist/{useFocusable-C2xrPFl6.js → useFocusable-087cO5Ct.js} +9 -6
- package/dist/{useFormReset-DDCE2RPv.js → useFormReset-NpLM2e3G.js} +1 -1
- package/dist/{useFormValidation-BxnASugK.js → useFormValidation-BWwmZQE2.js} +3 -3
- package/dist/{useLabel-C3sAYsiC.js → useLabel-C85N3Hzw.js} +2 -2
- package/dist/{useLabels-WnPbJUyQ.js → useLabels-C_2wWraB.js} +1 -1
- package/dist/{useListState-BmTFGt2_.js → useListState-Z7FB_NzO.js} +1 -1
- package/dist/{useLocalizedStringFormatter-BurzRhbk.js → useLocalizedStringFormatter-BQ4TF72x.js} +1 -1
- package/dist/{useNumberField-D_Azw6A1.js → useNumberField-Bm6_BVl9.js} +10 -10
- package/dist/{useNumberFormatter-B58dTQ-c.js → useNumberFormatter-DlUVKkO7.js} +1 -1
- package/dist/{usePress-DZ9pn6Jl.js → usePress-rg_OQIGW.js} +15 -14
- package/dist/{useSingleSelectListState-Dr843geC.js → useSingleSelectListState-Cu3xtEJS.js} +2 -2
- package/dist/{useToggle-Dq9VpeCd.js → useToggle-DzlgBLAJ.js} +4 -4
- package/dist/{useToggleState-DA_b3LG_.js → useToggleState-DhSBQxkp.js} +1 -1
- package/dist/{utils-BmaSD6gC.js → utils-39D0mStj.js} +41 -93
- package/package.json +41 -38
- package/dist/GeistMonoVF.woff2 +0 -0
- package/dist/GeistVF.woff2 +0 -0
- package/dist/assets/fonts.css +0 -1
- package/dist/components/list-box/list-box.js +0 -157
- package/dist/fonts.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { forwardRef, useContext, useLayoutEffect, useRef, useState, useMemo, useCallback, createContext } from "react";
|
|
3
|
-
import { r as reactDomExports } from "./index-
|
|
3
|
+
import { r as reactDomExports } from "./index-BRp93Yfa.js";
|
|
4
4
|
function _typeof(o) {
|
|
5
5
|
"@babel/helpers - typeof";
|
|
6
6
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
@@ -98,7 +98,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
98
98
|
if (null == r) return {};
|
|
99
99
|
var t = {};
|
|
100
100
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
101
|
-
if (e.
|
|
101
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
102
102
|
t[n] = r[n];
|
|
103
103
|
}
|
|
104
104
|
return t;
|
|
@@ -107,8 +107,8 @@ function _objectWithoutProperties(e, t) {
|
|
|
107
107
|
if (null == e) return {};
|
|
108
108
|
var o, r, i = _objectWithoutPropertiesLoose(e, t);
|
|
109
109
|
if (Object.getOwnPropertySymbols) {
|
|
110
|
-
var
|
|
111
|
-
for (r = 0; r <
|
|
110
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
111
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
112
112
|
}
|
|
113
113
|
return i;
|
|
114
114
|
}
|
|
@@ -121,7 +121,6 @@ function _extends() {
|
|
|
121
121
|
return n;
|
|
122
122
|
}, _extends.apply(null, arguments);
|
|
123
123
|
}
|
|
124
|
-
var isDevelopment$2 = false;
|
|
125
124
|
function sheetForTag(tag) {
|
|
126
125
|
if (tag.sheet) {
|
|
127
126
|
return tag.sheet;
|
|
@@ -162,7 +161,7 @@ var StyleSheet = /* @__PURE__ */ function() {
|
|
|
162
161
|
_this.container.insertBefore(tag, before);
|
|
163
162
|
_this.tags.push(tag);
|
|
164
163
|
};
|
|
165
|
-
this.isSpeedy = options2.speedy === void 0 ?
|
|
164
|
+
this.isSpeedy = options2.speedy === void 0 ? true : options2.speedy;
|
|
166
165
|
this.tags = [];
|
|
167
166
|
this.ctr = 0;
|
|
168
167
|
this.nonce = options2.nonce;
|
|
@@ -1394,7 +1393,6 @@ var unitlessKeys = {
|
|
|
1394
1393
|
strokeOpacity: 1,
|
|
1395
1394
|
strokeWidth: 1
|
|
1396
1395
|
};
|
|
1397
|
-
var isDevelopment$1 = false;
|
|
1398
1396
|
var hyphenateRegex = /[A-Z]|^ms/g;
|
|
1399
1397
|
var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
|
|
1400
1398
|
var isCustomProperty = function isCustomProperty2(property) {
|
|
@@ -1427,7 +1425,6 @@ var processStyleValue = function processStyleValue2(key, value) {
|
|
|
1427
1425
|
}
|
|
1428
1426
|
return value;
|
|
1429
1427
|
};
|
|
1430
|
-
var noComponentSelectorMessage = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
|
|
1431
1428
|
function handleInterpolation(mergedProps, registered, interpolation) {
|
|
1432
1429
|
if (interpolation == null) {
|
|
1433
1430
|
return "";
|
|
@@ -1498,9 +1495,6 @@ function createStringFromObject(mergedProps, registered, obj) {
|
|
|
1498
1495
|
string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";";
|
|
1499
1496
|
}
|
|
1500
1497
|
} else {
|
|
1501
|
-
if (key === "NO_COMPONENT_SELECTOR" && isDevelopment$1) {
|
|
1502
|
-
throw new Error(noComponentSelectorMessage);
|
|
1503
|
-
}
|
|
1504
1498
|
if (Array.isArray(value) && typeof value[0] === "string" && registered == null) {
|
|
1505
1499
|
for (var _i = 0; _i < value.length; _i++) {
|
|
1506
1500
|
if (isProcessableValue(value[_i])) {
|
|
@@ -1567,7 +1561,6 @@ var syncFallback = function syncFallback2(create) {
|
|
|
1567
1561
|
};
|
|
1568
1562
|
var useInsertionEffect = React["useInsertionEffect"] ? React["useInsertionEffect"] : false;
|
|
1569
1563
|
var useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect || syncFallback;
|
|
1570
|
-
var isDevelopment = false;
|
|
1571
1564
|
var EmotionCacheContext = /* @__PURE__ */ React.createContext(
|
|
1572
1565
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1573
1566
|
// because this module is primarily intended for the browser and node
|
|
@@ -1624,7 +1617,7 @@ var Emotion = /* @__PURE__ */ withEmotionCache(function(props, cache, ref) {
|
|
|
1624
1617
|
className += cache.key + "-" + serialized.name;
|
|
1625
1618
|
var newProps = {};
|
|
1626
1619
|
for (var _key2 in props) {
|
|
1627
|
-
if (hasOwn.call(props, _key2) && _key2 !== "css" && _key2 !== typePropName &&
|
|
1620
|
+
if (hasOwn.call(props, _key2) && _key2 !== "css" && _key2 !== typePropName && true) {
|
|
1628
1621
|
newProps[_key2] = props[_key2];
|
|
1629
1622
|
}
|
|
1630
1623
|
}
|
|
@@ -1657,7 +1650,7 @@ var jsx = function jsx2(type, props) {
|
|
|
1657
1650
|
var JSX;
|
|
1658
1651
|
/* @__PURE__ */ (function(_JSX) {
|
|
1659
1652
|
})(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
|
|
1660
|
-
})(jsx
|
|
1653
|
+
})(jsx);
|
|
1661
1654
|
function css$2() {
|
|
1662
1655
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1663
1656
|
args[_key] = arguments[_key];
|
|
@@ -1918,6 +1911,9 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
1918
1911
|
y
|
|
1919
1912
|
});
|
|
1920
1913
|
}
|
|
1914
|
+
function rectsAreEqual(a, b) {
|
|
1915
|
+
return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
|
|
1916
|
+
}
|
|
1921
1917
|
function observeMove(element, onMove) {
|
|
1922
1918
|
let io = null;
|
|
1923
1919
|
let timeoutId;
|
|
@@ -1936,12 +1932,13 @@ function observeMove(element, onMove) {
|
|
|
1936
1932
|
threshold = 1;
|
|
1937
1933
|
}
|
|
1938
1934
|
cleanup();
|
|
1935
|
+
const elementRectForRootMargin = element.getBoundingClientRect();
|
|
1939
1936
|
const {
|
|
1940
1937
|
left,
|
|
1941
1938
|
top,
|
|
1942
1939
|
width,
|
|
1943
1940
|
height
|
|
1944
|
-
} =
|
|
1941
|
+
} = elementRectForRootMargin;
|
|
1945
1942
|
if (!skip) {
|
|
1946
1943
|
onMove();
|
|
1947
1944
|
}
|
|
@@ -1972,6 +1969,9 @@ function observeMove(element, onMove) {
|
|
|
1972
1969
|
refresh(false, ratio);
|
|
1973
1970
|
}
|
|
1974
1971
|
}
|
|
1972
|
+
if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
|
|
1973
|
+
refresh();
|
|
1974
|
+
}
|
|
1975
1975
|
isFirstUpdate = false;
|
|
1976
1976
|
}
|
|
1977
1977
|
try {
|
|
@@ -2035,7 +2035,7 @@ function autoUpdate(reference, floating, update, options2) {
|
|
|
2035
2035
|
}
|
|
2036
2036
|
function frameLoop() {
|
|
2037
2037
|
const nextRefRect = getBoundingClientRect(reference);
|
|
2038
|
-
if (prevRefRect && (
|
|
2038
|
+
if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
|
|
2039
2039
|
update();
|
|
2040
2040
|
}
|
|
2041
2041
|
prevRefRect = nextRefRect;
|
|
@@ -3084,28 +3084,28 @@ var defaultComponents = function defaultComponents2(props) {
|
|
|
3084
3084
|
return _objectSpread2(_objectSpread2({}, components), props.components);
|
|
3085
3085
|
};
|
|
3086
3086
|
export {
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3087
|
+
indicatorSeparatorCSS as A,
|
|
3088
|
+
inputCSS as B,
|
|
3089
|
+
loadingIndicatorCSS as C,
|
|
3090
|
+
loadingMessageCSS as D,
|
|
3091
|
+
menuCSS as E,
|
|
3092
|
+
menuListCSS as F,
|
|
3093
|
+
menuPortalCSS as G,
|
|
3094
|
+
multiValueCSS as H,
|
|
3095
|
+
multiValueLabelCSS as I,
|
|
3096
|
+
multiValueRemoveCSS as J,
|
|
3097
|
+
noOptionsMessageCSS as K,
|
|
3098
|
+
optionCSS as L,
|
|
3099
|
+
placeholderCSS as M,
|
|
3100
|
+
css2 as N,
|
|
3101
|
+
valueContainerCSS as O,
|
|
3102
|
+
notNullish as P,
|
|
3103
|
+
scrollIntoView as Q,
|
|
3104
|
+
noop as R,
|
|
3105
|
+
MenuPlacer as S,
|
|
3106
|
+
removeProps as T,
|
|
3107
|
+
jsx as U,
|
|
3108
|
+
css$2 as V,
|
|
3109
3109
|
supportsPassiveEvents as W,
|
|
3110
3110
|
_extends as _,
|
|
3111
3111
|
_objectWithoutProperties as a,
|
|
@@ -3124,14 +3124,14 @@ export {
|
|
|
3124
3124
|
defaultComponents as n,
|
|
3125
3125
|
isDocumentElement as o,
|
|
3126
3126
|
cleanValue as p,
|
|
3127
|
-
|
|
3128
|
-
|
|
3127
|
+
clearIndicatorCSS as q,
|
|
3128
|
+
containerCSS as r,
|
|
3129
3129
|
singleValueAsValue as s,
|
|
3130
3130
|
toPropertyKey as t,
|
|
3131
|
-
|
|
3131
|
+
css$1 as u,
|
|
3132
3132
|
valueTernary as v,
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3133
|
+
dropdownIndicatorCSS as w,
|
|
3134
|
+
groupCSS as x,
|
|
3135
|
+
groupHeadingCSS as y,
|
|
3136
|
+
indicatorsContainerCSS as z
|
|
3137
3137
|
};
|
|
@@ -268,7 +268,6 @@ function requireScheduler_development() {
|
|
|
268
268
|
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
|
|
269
269
|
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
270
270
|
}
|
|
271
|
-
var enableSchedulerDebugging = false;
|
|
272
271
|
var enableProfiling = false;
|
|
273
272
|
var frameYieldMs = 5;
|
|
274
273
|
function push(heap, node) {
|
|
@@ -429,7 +428,7 @@ function requireScheduler_development() {
|
|
|
429
428
|
var currentTime = initialTime2;
|
|
430
429
|
advanceTimers(currentTime);
|
|
431
430
|
currentTask = peek(taskQueue);
|
|
432
|
-
while (currentTask !== null &&
|
|
431
|
+
while (currentTask !== null && true) {
|
|
433
432
|
if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) {
|
|
434
433
|
break;
|
|
435
434
|
}
|
|
@@ -6869,9 +6868,6 @@ function requireReactDom_production_min() {
|
|
|
6869
6868
|
hl(a, b);
|
|
6870
6869
|
(a = a.alternate) && hl(a, b);
|
|
6871
6870
|
}
|
|
6872
|
-
function jl() {
|
|
6873
|
-
return null;
|
|
6874
|
-
}
|
|
6875
6871
|
var kl = "function" === typeof reportError ? reportError : function(a) {
|
|
6876
6872
|
console.error(a);
|
|
6877
6873
|
};
|
|
@@ -7044,7 +7040,7 @@ function requireReactDom_production_min() {
|
|
|
7044
7040
|
var ul = { bundleType: tl.bundleType, version: tl.version, rendererPackageName: tl.rendererPackageName, rendererConfig: tl.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, overrideProps: null, overridePropsDeletePath: null, overridePropsRenamePath: null, setErrorHandler: null, setSuspenseHandler: null, scheduleUpdate: null, currentDispatcherRef: ua.ReactCurrentDispatcher, findHostInstanceByFiber: function(a) {
|
|
7045
7041
|
a = Zb(a);
|
|
7046
7042
|
return null === a ? null : a.stateNode;
|
|
7047
|
-
}, findFiberByHostInstance: tl.findFiberByHostInstance
|
|
7043
|
+
}, findFiberByHostInstance: tl.findFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, reconcilerVersion: "18.3.1-next-f1338f8080-20240426" };
|
|
7048
7044
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
7049
7045
|
var vl = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
7050
7046
|
if (!vl.isDisabled && vl.supportsFiber) try {
|
|
@@ -7214,8 +7210,6 @@ function requireReactDom_development() {
|
|
|
7214
7210
|
var enableNewReconciler = false;
|
|
7215
7211
|
var enableLazyContextPropagation = false;
|
|
7216
7212
|
var enableLegacyHidden = false;
|
|
7217
|
-
var enableSuspenseAvoidThisFallback = false;
|
|
7218
|
-
var disableCommentsAsDOMContainers = true;
|
|
7219
7213
|
var enableCustomElementPropertySupport = false;
|
|
7220
7214
|
var warnAboutStringRefs = true;
|
|
7221
7215
|
var enableSchedulingProfiler = true;
|
|
@@ -10502,7 +10496,6 @@ function requireReactDom_development() {
|
|
|
10502
10496
|
/* */
|
|
10503
10497
|
16384
|
|
10504
10498
|
);
|
|
10505
|
-
var LifecycleEffectMask = Passive | Update | Callback | Ref | Snapshot | StoreConsistency;
|
|
10506
10499
|
var HostEffectMask = (
|
|
10507
10500
|
/* */
|
|
10508
10501
|
32767
|
|
@@ -11504,7 +11497,7 @@ function requireReactDom_development() {
|
|
|
11504
11497
|
return getHighestPriorityLanes(root2.pendingLanes);
|
|
11505
11498
|
}
|
|
11506
11499
|
function getLanesToRetrySynchronouslyOnError(root2) {
|
|
11507
|
-
var everythingButOffscreen = root2.pendingLanes &
|
|
11500
|
+
var everythingButOffscreen = root2.pendingLanes & -1073741825;
|
|
11508
11501
|
if (everythingButOffscreen !== NoLanes) {
|
|
11509
11502
|
return everythingButOffscreen;
|
|
11510
11503
|
}
|
|
@@ -14589,7 +14582,7 @@ function requireReactDom_development() {
|
|
|
14589
14582
|
} else if (shouldWarnDev && true && // Convince Flow we've calculated it (it's DEV-only in this method.)
|
|
14590
14583
|
typeof isCustomComponentTag === "boolean") {
|
|
14591
14584
|
var serverValue = void 0;
|
|
14592
|
-
var propertyInfo =
|
|
14585
|
+
var propertyInfo = getPropertyInfo(propKey);
|
|
14593
14586
|
if (rawProps[SUPPRESS_HYDRATION_WARNING] === true) ;
|
|
14594
14587
|
else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING || // Controlled attributes are not validated
|
|
14595
14588
|
// TODO: Only ignore them on controlled tags.
|
|
@@ -14612,7 +14605,7 @@ function requireReactDom_development() {
|
|
|
14612
14605
|
warnForPropDifference(propKey, serverValue, expectedStyle);
|
|
14613
14606
|
}
|
|
14614
14607
|
}
|
|
14615
|
-
} else if (isCustomComponentTag &&
|
|
14608
|
+
} else if (isCustomComponentTag && true) {
|
|
14616
14609
|
extraAttributeNames.delete(propKey.toLowerCase());
|
|
14617
14610
|
serverValue = getValueForAttribute(domElement, propKey, nextProp);
|
|
14618
14611
|
if (nextProp !== serverValue) {
|
|
@@ -16137,7 +16130,7 @@ function requireReactDom_development() {
|
|
|
16137
16130
|
}
|
|
16138
16131
|
}
|
|
16139
16132
|
function insertNonHydratedInstance(returnFiber, fiber) {
|
|
16140
|
-
fiber.flags = fiber.flags &
|
|
16133
|
+
fiber.flags = fiber.flags & -4097 | Placement;
|
|
16141
16134
|
warnNonhydratedInstance(returnFiber, fiber);
|
|
16142
16135
|
}
|
|
16143
16136
|
function tryHydrate(fiber, nextInstance) {
|
|
@@ -17798,7 +17791,7 @@ function requireReactDom_development() {
|
|
|
17798
17791
|
return payload;
|
|
17799
17792
|
}
|
|
17800
17793
|
case CaptureUpdate: {
|
|
17801
|
-
workInProgress2.flags = workInProgress2.flags &
|
|
17794
|
+
workInProgress2.flags = workInProgress2.flags & -65537 | DidCapture;
|
|
17802
17795
|
}
|
|
17803
17796
|
// Intentional fallthrough
|
|
17804
17797
|
case UpdateState: {
|
|
@@ -18326,9 +18319,9 @@ function requireReactDom_development() {
|
|
|
18326
18319
|
function bailoutHooks(current2, workInProgress2, lanes) {
|
|
18327
18320
|
workInProgress2.updateQueue = current2.updateQueue;
|
|
18328
18321
|
if ((workInProgress2.mode & StrictEffectsMode) !== NoMode) {
|
|
18329
|
-
workInProgress2.flags &=
|
|
18322
|
+
workInProgress2.flags &= -50333701;
|
|
18330
18323
|
} else {
|
|
18331
|
-
workInProgress2.flags &=
|
|
18324
|
+
workInProgress2.flags &= -2053;
|
|
18332
18325
|
}
|
|
18333
18326
|
current2.lanes = removeLanes(current2.lanes, lanes);
|
|
18334
18327
|
}
|
|
@@ -20649,7 +20642,7 @@ function requireReactDom_development() {
|
|
|
20649
20642
|
var newState = instance.state = oldState;
|
|
20650
20643
|
processUpdateQueue(workInProgress2, newProps, instance, renderLanes2);
|
|
20651
20644
|
newState = workInProgress2.memoizedState;
|
|
20652
|
-
if (unresolvedOldProps === unresolvedNewProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing() &&
|
|
20645
|
+
if (unresolvedOldProps === unresolvedNewProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing() && true) {
|
|
20653
20646
|
if (typeof instance.componentDidUpdate === "function") {
|
|
20654
20647
|
if (unresolvedOldProps !== current2.memoizedProps || oldState !== current2.memoizedState) {
|
|
20655
20648
|
workInProgress2.flags |= Update;
|
|
@@ -20881,7 +20874,7 @@ function requireReactDom_development() {
|
|
|
20881
20874
|
} else {
|
|
20882
20875
|
suspenseBoundary.flags |= DidCapture;
|
|
20883
20876
|
sourceFiber.flags |= ForceUpdateForLegacySuspense;
|
|
20884
|
-
sourceFiber.flags &=
|
|
20877
|
+
sourceFiber.flags &= -52805;
|
|
20885
20878
|
if (sourceFiber.tag === ClassComponent) {
|
|
20886
20879
|
var currentSourceFiber = sourceFiber.alternate;
|
|
20887
20880
|
if (currentSourceFiber === null) {
|
|
@@ -20917,7 +20910,7 @@ function requireReactDom_development() {
|
|
|
20917
20910
|
}
|
|
20918
20911
|
var suspenseBoundary = getNearestSuspenseBoundaryToCapture(returnFiber);
|
|
20919
20912
|
if (suspenseBoundary !== null) {
|
|
20920
|
-
suspenseBoundary.flags &=
|
|
20913
|
+
suspenseBoundary.flags &= -257;
|
|
20921
20914
|
markSuspenseBoundaryShouldCapture(suspenseBoundary, returnFiber, sourceFiber, root2, rootRenderLanes);
|
|
20922
20915
|
if (suspenseBoundary.mode & ConcurrentMode) {
|
|
20923
20916
|
attachPingListener(root2, wakeable, rootRenderLanes);
|
|
@@ -21488,7 +21481,7 @@ function requireReactDom_development() {
|
|
|
21488
21481
|
workInProgress2.child = child;
|
|
21489
21482
|
var node = child;
|
|
21490
21483
|
while (node) {
|
|
21491
|
-
node.flags = node.flags &
|
|
21484
|
+
node.flags = node.flags & -3 | Hydrating;
|
|
21492
21485
|
node = node.sibling;
|
|
21493
21486
|
}
|
|
21494
21487
|
}
|
|
@@ -21800,7 +21793,7 @@ function requireReactDom_development() {
|
|
|
21800
21793
|
var didSuspend = (workInProgress2.flags & DidCapture) !== NoFlags;
|
|
21801
21794
|
if (didSuspend || shouldRemainOnFallback(suspenseContext, current2)) {
|
|
21802
21795
|
showFallback = true;
|
|
21803
|
-
workInProgress2.flags &=
|
|
21796
|
+
workInProgress2.flags &= -129;
|
|
21804
21797
|
} else {
|
|
21805
21798
|
if (current2 === null || current2.memoizedState !== null) {
|
|
21806
21799
|
{
|
|
@@ -22079,7 +22072,7 @@ function requireReactDom_development() {
|
|
|
22079
22072
|
}
|
|
22080
22073
|
} else {
|
|
22081
22074
|
if (workInProgress2.flags & ForceClientRender) {
|
|
22082
|
-
workInProgress2.flags &=
|
|
22075
|
+
workInProgress2.flags &= -257;
|
|
22083
22076
|
var _capturedValue2 = createCapturedValue(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));
|
|
22084
22077
|
return retrySuspenseComponentWithoutHydrating(current2, workInProgress2, renderLanes2, _capturedValue2);
|
|
22085
22078
|
} else if (workInProgress2.memoizedState !== null) {
|
|
@@ -23073,7 +23066,7 @@ function requireReactDom_development() {
|
|
|
23073
23066
|
var _offscreenFiber2 = workInProgress2.child;
|
|
23074
23067
|
_offscreenFiber2.flags |= Visibility;
|
|
23075
23068
|
if ((workInProgress2.mode & ConcurrentMode) !== NoMode) {
|
|
23076
|
-
var hasInvisibleChildContext = current2 === null && (workInProgress2.memoizedProps.unstable_avoidThisFallback !== true ||
|
|
23069
|
+
var hasInvisibleChildContext = current2 === null && (workInProgress2.memoizedProps.unstable_avoidThisFallback !== true || true);
|
|
23077
23070
|
if (hasInvisibleChildContext || hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext)) {
|
|
23078
23071
|
renderDidSuspend();
|
|
23079
23072
|
} else {
|
|
@@ -23233,7 +23226,7 @@ function requireReactDom_development() {
|
|
|
23233
23226
|
var _prevState = current2.memoizedState;
|
|
23234
23227
|
var prevIsHidden = _prevState !== null;
|
|
23235
23228
|
if (prevIsHidden !== nextIsHidden && // LegacyHidden doesn't do any hiding — it only pre-renders.
|
|
23236
|
-
|
|
23229
|
+
true) {
|
|
23237
23230
|
workInProgress2.flags |= Visibility;
|
|
23238
23231
|
}
|
|
23239
23232
|
}
|
|
@@ -23270,7 +23263,7 @@ function requireReactDom_development() {
|
|
|
23270
23263
|
}
|
|
23271
23264
|
var flags = workInProgress2.flags;
|
|
23272
23265
|
if (flags & ShouldCapture) {
|
|
23273
|
-
workInProgress2.flags = flags &
|
|
23266
|
+
workInProgress2.flags = flags & -65537 | DidCapture;
|
|
23274
23267
|
if ((workInProgress2.mode & ProfileMode) !== NoMode) {
|
|
23275
23268
|
transferActualDuration(workInProgress2);
|
|
23276
23269
|
}
|
|
@@ -23285,7 +23278,7 @@ function requireReactDom_development() {
|
|
|
23285
23278
|
resetWorkInProgressVersions();
|
|
23286
23279
|
var _flags = workInProgress2.flags;
|
|
23287
23280
|
if ((_flags & ShouldCapture) !== NoFlags && (_flags & DidCapture) === NoFlags) {
|
|
23288
|
-
workInProgress2.flags = _flags &
|
|
23281
|
+
workInProgress2.flags = _flags & -65537 | DidCapture;
|
|
23289
23282
|
return workInProgress2;
|
|
23290
23283
|
}
|
|
23291
23284
|
return null;
|
|
@@ -23305,7 +23298,7 @@ function requireReactDom_development() {
|
|
|
23305
23298
|
}
|
|
23306
23299
|
var _flags2 = workInProgress2.flags;
|
|
23307
23300
|
if (_flags2 & ShouldCapture) {
|
|
23308
|
-
workInProgress2.flags = _flags2 &
|
|
23301
|
+
workInProgress2.flags = _flags2 & -65537 | DidCapture;
|
|
23309
23302
|
if ((workInProgress2.mode & ProfileMode) !== NoMode) {
|
|
23310
23303
|
transferActualDuration(workInProgress2);
|
|
23311
23304
|
}
|
|
@@ -24101,7 +24094,7 @@ function requireReactDom_development() {
|
|
|
24101
24094
|
var parent = parentFiber.stateNode;
|
|
24102
24095
|
if (parentFiber.flags & ContentReset) {
|
|
24103
24096
|
resetTextContent(parent);
|
|
24104
|
-
parentFiber.flags &=
|
|
24097
|
+
parentFiber.flags &= -33;
|
|
24105
24098
|
}
|
|
24106
24099
|
var before = getHostSibling(finishedWork);
|
|
24107
24100
|
insertOrAppendPlacementNode(finishedWork, before, parent);
|
|
@@ -24627,10 +24620,10 @@ function requireReactDom_development() {
|
|
|
24627
24620
|
} catch (error2) {
|
|
24628
24621
|
captureCommitPhaseError(finishedWork, finishedWork.return, error2);
|
|
24629
24622
|
}
|
|
24630
|
-
finishedWork.flags &=
|
|
24623
|
+
finishedWork.flags &= -3;
|
|
24631
24624
|
}
|
|
24632
24625
|
if (flags & Hydrating) {
|
|
24633
|
-
finishedWork.flags &=
|
|
24626
|
+
finishedWork.flags &= -4097;
|
|
24634
24627
|
}
|
|
24635
24628
|
}
|
|
24636
24629
|
function commitLayoutEffects(finishedWork, root2, committedLanes) {
|
|
@@ -27943,7 +27936,7 @@ function requireReactDom_development() {
|
|
|
27943
27936
|
return new ReactDOMHydrationRoot(root2);
|
|
27944
27937
|
}
|
|
27945
27938
|
function isValidContainer(node) {
|
|
27946
|
-
return !!(node && (node.nodeType === ELEMENT_NODE || node.nodeType === DOCUMENT_NODE || node.nodeType === DOCUMENT_FRAGMENT_NODE ||
|
|
27939
|
+
return !!(node && (node.nodeType === ELEMENT_NODE || node.nodeType === DOCUMENT_NODE || node.nodeType === DOCUMENT_FRAGMENT_NODE || false));
|
|
27947
27940
|
}
|
|
27948
27941
|
function isValidContainerLegacy(node) {
|
|
27949
27942
|
return !!(node && (node.nodeType === ELEMENT_NODE || node.nodeType === DOCUMENT_NODE || node.nodeType === DOCUMENT_FRAGMENT_NODE || node.nodeType === COMMENT_NODE && node.nodeValue === " react-mount-point-unstable "));
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { c as clsx } from "./utils-39D0mStj.js";
|
|
2
|
+
const falsyToString = (value) => typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
|
|
3
|
+
const cx = clsx;
|
|
4
|
+
const cva = (base, config) => (props) => {
|
|
5
|
+
var _config_compoundVariants;
|
|
6
|
+
if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
7
|
+
const { variants, defaultVariants } = config;
|
|
8
|
+
const getVariantClassNames = Object.keys(variants).map((variant) => {
|
|
9
|
+
const variantProp = props === null || props === void 0 ? void 0 : props[variant];
|
|
10
|
+
const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
|
|
11
|
+
if (variantProp === null) return null;
|
|
12
|
+
const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
|
|
13
|
+
return variants[variant][variantKey];
|
|
14
|
+
});
|
|
15
|
+
const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param) => {
|
|
16
|
+
let [key, value] = param;
|
|
17
|
+
if (value === void 0) {
|
|
18
|
+
return acc;
|
|
19
|
+
}
|
|
20
|
+
acc[key] = value;
|
|
21
|
+
return acc;
|
|
22
|
+
}, {});
|
|
23
|
+
const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param) => {
|
|
24
|
+
let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;
|
|
25
|
+
return Object.entries(compoundVariantOptions).every((param2) => {
|
|
26
|
+
let [key, value] = param2;
|
|
27
|
+
return Array.isArray(value) ? value.includes({
|
|
28
|
+
...defaultVariants,
|
|
29
|
+
...propsWithoutUndefined
|
|
30
|
+
}[key]) : {
|
|
31
|
+
...defaultVariants,
|
|
32
|
+
...propsWithoutUndefined
|
|
33
|
+
}[key] === value;
|
|
34
|
+
}) ? [
|
|
35
|
+
...acc,
|
|
36
|
+
cvClass,
|
|
37
|
+
cvClassName
|
|
38
|
+
] : acc;
|
|
39
|
+
}, []);
|
|
40
|
+
return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
cva as c
|
|
44
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -22,7 +22,6 @@ import { InputField } from "./components/input-field/input-field.js";
|
|
|
22
22
|
import { ImagePlaceholder } from "./components/placeholders/image-placeholder.js";
|
|
23
23
|
import { ItemCollection } from "./components/item-collection/item-collection.js";
|
|
24
24
|
import { LinkInput } from "./components/link-input/link-input.js";
|
|
25
|
-
import { ListBox } from "./components/list-box/list-box.js";
|
|
26
25
|
import { MatrixAlign } from "./components/matrix-align/matrix-align.js";
|
|
27
26
|
import { MediaPlaceholder } from "./components/placeholders/media-placeholder.js";
|
|
28
27
|
import { Menu, MenuItem, MenuSection, MenuSeparator, SubMenuItem } from "./components/menu/menu.js";
|
|
@@ -44,7 +43,7 @@ import { Modal } from "./components/modal/modal.js";
|
|
|
44
43
|
import { MultiSelect } from "./components/select/multi-select.js";
|
|
45
44
|
import { RSClearIndicator, RSDropdownIndicator, RSMultiValue, RSMultiValueContainer, RSMultiValueLabel, RSMultiValueRemove, RSOption, RSSingleValue } from "./components/select/react-select-component-wrappers.js";
|
|
46
45
|
import { OptionSelect } from "./components/option-select/option-select.js";
|
|
47
|
-
import { OptionsPanel, OptionsPanelHeader, OptionsPanelSection } from "./components/options-panel/options-panel.js";
|
|
46
|
+
import { OptionsPanel, OptionsPanelHeader, OptionsPanelIntro, OptionsPanelSection } from "./components/options-panel/options-panel.js";
|
|
48
47
|
import { Select } from "./components/select/single-select.js";
|
|
49
48
|
import { Slider } from "./components/slider/slider.js";
|
|
50
49
|
import { SolidColorPicker } from "./components/color-pickers/solid-color-picker.js";
|
|
@@ -86,7 +85,6 @@ export {
|
|
|
86
85
|
InputField,
|
|
87
86
|
ItemCollection,
|
|
88
87
|
LinkInput,
|
|
89
|
-
ListBox,
|
|
90
88
|
MatrixAlign,
|
|
91
89
|
MediaPlaceholder,
|
|
92
90
|
Menu,
|
|
@@ -101,6 +99,7 @@ export {
|
|
|
101
99
|
OptionSelect,
|
|
102
100
|
OptionsPanel,
|
|
103
101
|
OptionsPanelHeader,
|
|
102
|
+
OptionsPanelIntro,
|
|
104
103
|
OptionsPanelSection,
|
|
105
104
|
Popover,
|
|
106
105
|
RSClearIndicator,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default, { useMemo, useLayoutEffect, useEffect, useRef, useCallback, useState, createContext, memo, useReducer, useContext } from "react";
|
|
3
|
-
import { r as reactDomExports } from "./index-
|
|
3
|
+
import { r as reactDomExports } from "./index-BRp93Yfa.js";
|
|
4
4
|
import { c as clsx } from "./lite-DVmmD_-j.js";
|
|
5
5
|
function useCombinedRefs() {
|
|
6
6
|
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -3704,11 +3704,11 @@ const getMultiValue = (ComponentToRender) => {
|
|
|
3704
3704
|
style,
|
|
3705
3705
|
ref: setNodeRef,
|
|
3706
3706
|
className: clsx(
|
|
3707
|
-
"focus:
|
|
3707
|
+
"es:focus:outline-hidden",
|
|
3708
3708
|
// Make non-dragged tiles have no pointer events, so you don't see hover styles on things like the remove button.
|
|
3709
|
-
CSS.Translate.toString(transform) && "[&_>_div]:
|
|
3709
|
+
CSS.Translate.toString(transform) && "es:[&_>_div]:pointer-events-none",
|
|
3710
3710
|
// Make the currently grabbed item into a fancy holo-like thing.
|
|
3711
|
-
isDragging && "es
|
|
3711
|
+
isDragging && "es:z-50 es:blur-[0.5px] es:[&_>_div]:border! es:[&_>_div]:border-dotted es:[&_>_div]:border-accent-500! es:[&_>_div]:bg-accent-100/20! es:[&_>_div]:text-accent-900/15! es:[&_>_div_[role=button]]:opacity-0"
|
|
3712
3712
|
),
|
|
3713
3713
|
...attributes,
|
|
3714
3714
|
...listeners,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as _objectWithoutProperties, b as _slicedToArray, h as handleInputChange, d as _objectSpread2, e as _defineProperty, _ as _extends } from "./index-641ee5b8.esm-
|
|
1
|
+
import { a as _objectWithoutProperties, b as _slicedToArray, h as handleInputChange, d as _objectSpread2, e as _defineProperty, _ as _extends } from "./index-641ee5b8.esm-DbdaYaxR.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { useRef, useState, useEffect, useCallback, forwardRef } from "react";
|
|
4
|
-
import { u as useStateManager, S as Select } from "./Select-aab027f3.esm-
|
|
5
|
-
import "./index-
|
|
4
|
+
import { u as useStateManager, S as Select } from "./Select-aab027f3.esm-HFNIFFya.js";
|
|
5
|
+
import "./index-BRp93Yfa.js";
|
|
6
6
|
var _excluded = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading", "onInputChange", "filterOption"];
|
|
7
7
|
function useAsync(_ref) {
|
|
8
8
|
var _ref$defaultOptions = _ref.defaultOptions, propsDefaultOptions = _ref$defaultOptions === void 0 ? false : _ref$defaultOptions, _ref$cacheOptions = _ref.cacheOptions, cacheOptions = _ref$cacheOptions === void 0 ? false : _ref$cacheOptions, propsLoadOptions = _ref.loadOptions;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as useStateManager, S as Select } from "./Select-aab027f3.esm-
|
|
2
|
-
import { _ as _extends } from "./index-641ee5b8.esm-
|
|
1
|
+
import { u as useStateManager, S as Select } from "./Select-aab027f3.esm-HFNIFFya.js";
|
|
2
|
+
import { _ as _extends } from "./index-641ee5b8.esm-DbdaYaxR.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
|
-
import "./index-
|
|
5
|
+
import "./index-BRp93Yfa.js";
|
|
6
6
|
var StateManagedSelect = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
7
7
|
var baseSelectProps = useStateManager(props);
|
|
8
8
|
return /* @__PURE__ */ React.createElement(Select, _extends({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './assets/style-admin.css';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './assets/index.css';import './assets/style-editor.css';/* empty css */
|
package/dist/style.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import './assets/style.css'
|
|
1
|
+
import './assets/index.css';import './assets/style.css';/* empty css */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useRef, useCallback, useEffect } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { m as $c87311424ea30a05$export$fedb369cb70207f1, g as $431fbd86ca7dc216$export$b204af158042fbac, n as $bbed8b41f857bcc0$export$24490316f764c430 } from "./focusSafely-CiqTTjWy.js";
|
|
3
3
|
function $03deb23ff14920c4$export$4eaf04e54aa8eed6() {
|
|
4
4
|
let globalListeners = useRef(/* @__PURE__ */ new Map());
|
|
5
5
|
let addGlobalListener = useCallback((eventTarget, type, listener, options) => {
|
|
@@ -13,7 +13,7 @@ function $03deb23ff14920c4$export$4eaf04e54aa8eed6() {
|
|
|
13
13
|
fn,
|
|
14
14
|
options
|
|
15
15
|
});
|
|
16
|
-
eventTarget.addEventListener(type,
|
|
16
|
+
eventTarget.addEventListener(type, fn, options);
|
|
17
17
|
}, []);
|
|
18
18
|
let removeGlobalListener = useCallback((eventTarget, type, listener, options) => {
|
|
19
19
|
var _globalListeners_current_get;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-
|
|
1
|
+
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-39D0mStj.js";
|
|
2
2
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
3
|
-
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-
|
|
4
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-
|
|
3
|
+
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-087cO5Ct.js";
|
|
4
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-rg_OQIGW.js";
|
|
5
5
|
function $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {
|
|
6
6
|
let {
|
|
7
7
|
elementType = "button",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-
|
|
1
|
+
import { g as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-39D0mStj.js";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
3
|
function $e9faafb641e167db$export$90fc3a17d93f704c(ref, event, handler, options) {
|
|
4
4
|
let handleEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(handler);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as $507fabe10e71c6fb$export$b9b3dfddab17db27, b as $507fabe10e71c6fb$export$ec71b4b83ac08ec3, c as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, d as $9ab94262bd0047c7$export$420e68273165f4ec } from "./focusSafely-
|
|
1
|
+
import { a as $507fabe10e71c6fb$export$b9b3dfddab17db27, b as $507fabe10e71c6fb$export$ec71b4b83ac08ec3, c as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, d as $9ab94262bd0047c7$export$420e68273165f4ec } from "./focusSafely-CiqTTjWy.js";
|
|
2
2
|
import { useRef, useState, useCallback } from "react";
|
|
3
3
|
function $f7dceffc5ad7768b$export$4e328f61c538687f(props = {}) {
|
|
4
4
|
let { autoFocus = false, isTextInput, within } = props;
|