@eightshift/ui-components 5.1.4 → 5.2.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/{Button-DH22t_SM.js → Button-RTwMSBs-.js} +20 -26
- package/dist/{Collection-BRJOMbOa.js → Collection-D_KhdLDC.js} +40 -23
- package/dist/{Color-CNqKeT8D.js → Color-WxFE7lQB.js} +2 -2
- package/dist/{ColorSwatch-Dt3lRApA.js → ColorSwatch-xVS3rMYS.js} +9 -7
- package/dist/{Dialog-D6EdDPeu.js → Dialog-Xf6AsnV-.js} +86 -62
- package/dist/{FieldError-DHrSdE_Q.js → FieldError-B8BgFmIQ.js} +2 -2
- package/dist/{FocusScope-BEPI2m7u.js → FocusScope-BnwM-e8R.js} +24 -22
- package/dist/{Form-Bnyyv3Im.js → Form-BeMxJA29.js} +13 -3
- package/dist/{Input-DfSBLhDx.js → Group-C4cXobNT.js} +56 -11
- package/dist/{Heading-ba38ScjJ.js → Heading-bh1HU5HH.js} +1 -1
- package/dist/{Label-JS_ob-kh.js → Label-DWVaNd2E.js} +1 -1
- package/dist/{List-BLeHBkfx.js → List-CwJTORxj.js} +1 -1
- package/dist/{ListBox-BY3gwI8c.js → ListBox-BeC97FZ4.js} +62 -38
- package/dist/{OverlayArrow-BUfV-5P3.js → OverlayArrow-EZ0v_ljk.js} +6 -6
- package/dist/{Select-BebwUgKB.js → Select-DEQf8ZWI.js} +96 -58
- package/dist/{Select-aab027f3.esm-BKIJGje-.js → Select-ef7c0426.esm-D6WOCaYm.js} +11 -6
- package/dist/{Separator-CTQWg_HO.js → Separator-Fl7qSeN-.js} +37 -20
- package/dist/{Slider-uOPcIpqS.js → Slider-BQFSEhvk.js} +28 -21
- package/dist/{Text-BuJgePCv.js → Text-AxKZjtFm.js} +1 -1
- package/dist/{TextField-o2U-uBWv.js → TextField-x_eEa_qR.js} +20 -10
- package/dist/{VisuallyHidden-BYi0pekx.js → VisuallyHidden-D9s7FTtC.js} +2 -2
- package/dist/assets/style-admin.css +227 -3
- package/dist/assets/style-editor.css +227 -3
- package/dist/assets/style.css +227 -3
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/button/button.js +11 -10
- package/dist/components/checkbox/checkbox.js +17 -12
- package/dist/components/color-pickers/color-picker.js +1 -1
- package/dist/components/color-pickers/color-swatch.js +3 -3
- package/dist/components/color-pickers/gradient-editor.js +3 -2
- package/dist/components/color-pickers/solid-color-picker.js +85 -49
- package/dist/components/component-toggle/component-toggle.js +2 -1
- package/dist/components/draggable/draggable-handle.js +1 -1
- package/dist/components/draggable/draggable.js +191 -170
- 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 +18 -18
- package/dist/components/index.js +5 -1
- package/dist/components/input-field/input-field.js +3 -3
- package/dist/components/item-collection/item-collection.js +1 -1
- package/dist/components/link-input/link-input.js +45 -34
- package/dist/components/matrix-align/matrix-align.js +1 -1
- package/dist/components/menu/menu.js +3 -3
- package/dist/components/modal/modal.js +39 -13
- package/dist/components/number-picker/number-picker.js +15 -13
- package/dist/components/option-select/option-select.js +1 -1
- package/dist/components/options-panel/options-panel.js +1 -1
- package/dist/components/placeholders/file-placeholder.js +1 -1
- package/dist/components/popover/popover.js +2 -2
- package/dist/components/radio/radio.js +45 -22
- package/dist/components/repeater/repeater-item.js +1 -1
- package/dist/components/repeater/repeater.js +2 -2
- package/dist/components/responsive/mini-responsive.js +3 -2
- package/dist/components/responsive/responsive-legacy.js +2 -1
- package/dist/components/responsive/responsive.js +2 -1
- package/dist/components/responsive-preview/responsive-preview.js +1 -1
- 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 +1 -1
- 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/shared.js +19 -1
- package/dist/components/select/single-select.js +2 -2
- package/dist/components/select/v2/async-multi-select.js +421 -0
- package/dist/components/select/v2/async-select.js +10 -10
- package/dist/components/select/v2/multi-select.js +403 -0
- package/dist/components/select/v2/shared.js +44 -8
- package/dist/components/select/v2/single-select.js +10 -10
- package/dist/components/slider/column-config-slider.js +3 -3
- package/dist/components/slider/slider.js +3 -3
- package/dist/components/slider/utils.js +2 -1
- package/dist/components/tabs/tabs.js +33 -23
- package/dist/components/toggle/switch.js +11 -8
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +14 -8
- package/dist/components/tooltip/tooltip.js +9 -7
- package/dist/{context-BbYZoHvX.js → context-DMOmz986.js} +1 -1
- package/dist/{default-i18n-OFa3zAyB.js → default-i18n-DY6EfUSA.js} +21 -284
- package/dist/filterDOMProps-D2C6R0DK.js +71 -0
- package/dist/icons/icons.js +1 -1
- package/dist/{index-641ee5b8.esm-BPU8rMZr.js → index-641ee5b8.esm-Bu-mgopl.js} +1 -1
- package/dist/{index-CFozsmNS.js → index-CBHA_HDD.js} +3 -1
- package/dist/{index-BljRBEr_.js → index-Dq3gT5pW.js} +1 -1
- package/dist/index.js +4 -0
- package/dist/{multi-select-components-BcKzA24f.js → multi-select-components-rCCyCaKO.js} +1 -1
- package/dist/{number-CHmNj-oR.js → number-7sOvrqo0.js} +7 -2
- package/dist/{react-select-async.esm-D937XTWW.js → react-select-async.esm-XYrsKYb2.js} +3 -3
- package/dist/{react-select.esm-Ciai3aKf.js → react-select.esm-CCSPY6XR.js} +3 -3
- package/dist/sprintf-DmNrJSYG.js +51 -0
- package/dist/{textSelection-8DpK8fJl.js → textSelection-D5tWX1rJ.js} +1 -1
- package/dist/{useAsyncList-fLtZMvJO.js → useAsyncList-ZqaIH2gh.js} +1 -1
- package/dist/{useButton-lRcWnvOB.js → useButton-BtJSiQi3.js} +13 -5
- package/dist/useDragAndDrop-CddFteYC.js +3917 -0
- package/dist/{useEvent-ICdlokG-.js → useEvent-BifIGnVS.js} +1 -1
- package/dist/{useFilter-BR5z1A4Q.js → useFilter-Cl2ggwwq.js} +1 -1
- package/dist/{useFocusRing-Bv0UJQl8.js → useFocusRing-D5BfOWag.js} +3 -3
- package/dist/{useFormReset-D2YaWRIA.js → useFormReset-yV9VVy9R.js} +3 -4
- package/dist/{useHover-C2SkI1Fn.js → useHover-44IApaa2.js} +67 -34
- package/dist/{useLabel-BPCd5c7-.js → useLabel-C8umX0gk.js} +2 -2
- package/dist/{useLabels-B7-lUnAF.js → useLabels-Cdxi6JSa.js} +1 -1
- package/dist/{useListState-BrZ2XvDS.js → useListState-BSkHuB7-.js} +1 -1
- package/dist/{useLocalizedStringFormatter-C9GO0IDB.js → useLocalizedStringFormatter-eaZiN2tE.js} +1 -1
- package/dist/{useNumberField-y0dLc_6m.js → useNumberField-JhWPy1JY.js} +23 -16
- package/dist/{useNumberFormatter-CZ9QUnRt.js → useNumberFormatter-BCmkV-7c.js} +1 -1
- package/dist/{usePress-DWBuejBp.js → usePress-BnrkvZ7e.js} +20 -5
- package/dist/{useSingleSelectListState-Bh46cRXs.js → useSingleSelectListState-CzJFsSHr.js} +2 -2
- package/dist/{useToggle-yGuUBU7q.js → useToggle-OaIBlwRu.js} +21 -8
- package/dist/{useToggleState-ibcBUHnB.js → useToggleState-BF8hvidm.js} +5 -1
- package/dist/{utils-CZt7LCbO.js → utils-cvK1vxO7.js} +9 -7
- package/package.json +18 -18
- package/dist/Group-LBogWgyp.js +0 -48
- package/dist/_commonjsHelpers-CUmg6egw.js +0 -6
- package/dist/filterDOMProps-EDDcM64A.js +0 -28
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
const $65484d02dcb7eb3e$var$DOMPropNames = /* @__PURE__ */ new Set([
|
|
2
|
+
"id"
|
|
3
|
+
]);
|
|
4
|
+
const $65484d02dcb7eb3e$var$labelablePropNames = /* @__PURE__ */ new Set([
|
|
5
|
+
"aria-label",
|
|
6
|
+
"aria-labelledby",
|
|
7
|
+
"aria-describedby",
|
|
8
|
+
"aria-details"
|
|
9
|
+
]);
|
|
10
|
+
const $65484d02dcb7eb3e$var$linkPropNames = /* @__PURE__ */ new Set([
|
|
11
|
+
"href",
|
|
12
|
+
"hrefLang",
|
|
13
|
+
"target",
|
|
14
|
+
"rel",
|
|
15
|
+
"download",
|
|
16
|
+
"ping",
|
|
17
|
+
"referrerPolicy"
|
|
18
|
+
]);
|
|
19
|
+
const $65484d02dcb7eb3e$var$globalAttrs = /* @__PURE__ */ new Set([
|
|
20
|
+
"dir",
|
|
21
|
+
"lang",
|
|
22
|
+
"hidden",
|
|
23
|
+
"inert",
|
|
24
|
+
"translate"
|
|
25
|
+
]);
|
|
26
|
+
const $65484d02dcb7eb3e$var$globalEvents = /* @__PURE__ */ new Set([
|
|
27
|
+
"onClick",
|
|
28
|
+
"onAuxClick",
|
|
29
|
+
"onContextMenu",
|
|
30
|
+
"onDoubleClick",
|
|
31
|
+
"onMouseDown",
|
|
32
|
+
"onMouseEnter",
|
|
33
|
+
"onMouseLeave",
|
|
34
|
+
"onMouseMove",
|
|
35
|
+
"onMouseOut",
|
|
36
|
+
"onMouseOver",
|
|
37
|
+
"onMouseUp",
|
|
38
|
+
"onTouchCancel",
|
|
39
|
+
"onTouchEnd",
|
|
40
|
+
"onTouchMove",
|
|
41
|
+
"onTouchStart",
|
|
42
|
+
"onPointerDown",
|
|
43
|
+
"onPointerMove",
|
|
44
|
+
"onPointerUp",
|
|
45
|
+
"onPointerCancel",
|
|
46
|
+
"onPointerEnter",
|
|
47
|
+
"onPointerLeave",
|
|
48
|
+
"onPointerOver",
|
|
49
|
+
"onPointerOut",
|
|
50
|
+
"onGotPointerCapture",
|
|
51
|
+
"onLostPointerCapture",
|
|
52
|
+
"onScroll",
|
|
53
|
+
"onWheel",
|
|
54
|
+
"onAnimationStart",
|
|
55
|
+
"onAnimationEnd",
|
|
56
|
+
"onAnimationIteration",
|
|
57
|
+
"onTransitionCancel",
|
|
58
|
+
"onTransitionEnd",
|
|
59
|
+
"onTransitionRun",
|
|
60
|
+
"onTransitionStart"
|
|
61
|
+
]);
|
|
62
|
+
const $65484d02dcb7eb3e$var$propRe = /^(data-.*)$/;
|
|
63
|
+
function $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, opts = {}) {
|
|
64
|
+
let { labelable, isLink, global, events = global, propNames } = opts;
|
|
65
|
+
let filteredProps = {};
|
|
66
|
+
for (const prop in props) if (Object.prototype.hasOwnProperty.call(props, prop) && ($65484d02dcb7eb3e$var$DOMPropNames.has(prop) || labelable && $65484d02dcb7eb3e$var$labelablePropNames.has(prop) || isLink && $65484d02dcb7eb3e$var$linkPropNames.has(prop) || global && $65484d02dcb7eb3e$var$globalAttrs.has(prop) || events && $65484d02dcb7eb3e$var$globalEvents.has(prop) || prop.endsWith("Capture") && $65484d02dcb7eb3e$var$globalEvents.has(prop.slice(0, -7)) || (propNames === null || propNames === void 0 ? void 0 : propNames.has(prop)) || $65484d02dcb7eb3e$var$propRe.test(prop))) filteredProps[prop] = props[prop];
|
|
67
|
+
return filteredProps;
|
|
68
|
+
}
|
|
69
|
+
export {
|
|
70
|
+
$65484d02dcb7eb3e$export$457c3d6518dd4c6f as $
|
|
71
|
+
};
|
package/dist/icons/icons.js
CHANGED
|
@@ -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-CBHA_HDD.js";
|
|
4
4
|
function _typeof(o) {
|
|
5
5
|
"@babel/helpers - typeof";
|
|
6
6
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-CUmg6egw.js";
|
|
2
1
|
import React__default from "react";
|
|
2
|
+
function getDefaultExportFromCjs(x) {
|
|
3
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
4
|
+
}
|
|
3
5
|
var reactDom = { exports: {} };
|
|
4
6
|
var reactDom_production_min = {};
|
|
5
7
|
var scheduler = { exports: {} };
|
package/dist/index.js
CHANGED
|
@@ -36,10 +36,12 @@ import { RepeaterItem } from "./components/repeater/repeater-item.js";
|
|
|
36
36
|
import { Responsive } from "./components/responsive/responsive.js";
|
|
37
37
|
import { ResponsiveLegacy } from "./components/responsive/responsive-legacy.js";
|
|
38
38
|
import { ResponsivePreview } from "./components/responsive-preview/responsive-preview.js";
|
|
39
|
+
import { __AsyncMultiSelectNext } from "./components/select/v2/async-multi-select.js";
|
|
39
40
|
import { AsyncMultiSelect } from "./components/select/async-multi-select.js";
|
|
40
41
|
import { AsyncSelect } from "./components/select/async-single-select.js";
|
|
41
42
|
import { AsyncSelectNext } from "./components/select/v2/async-select.js";
|
|
42
43
|
import { SelectNext } from "./components/select/v2/single-select.js";
|
|
44
|
+
import { __MultiSelectNext } from "./components/select/v2/multi-select.js";
|
|
43
45
|
import { Modal } from "./components/modal/modal.js";
|
|
44
46
|
import { MultiSelect } from "./components/select/multi-select.js";
|
|
45
47
|
import { RSClearIndicator, RSDropdownIndicator, RSMultiValue, RSMultiValueContainer, RSMultiValueLabel, RSMultiValueRemove, RSOption, RSSingleValue } from "./components/select/react-select-component-wrappers.js";
|
|
@@ -137,5 +139,7 @@ export {
|
|
|
137
139
|
Tooltip,
|
|
138
140
|
TriggeredPopover,
|
|
139
141
|
VStack,
|
|
142
|
+
__AsyncMultiSelectNext,
|
|
143
|
+
__MultiSelectNext,
|
|
140
144
|
getColumnConfigOutputText
|
|
141
145
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default, { useLayoutEffect, useEffect, useRef, useMemo, useCallback, useState, createContext, memo, useReducer, useContext } from "react";
|
|
3
|
-
import { r as reactDomExports } from "./index-
|
|
3
|
+
import { r as reactDomExports } from "./index-CBHA_HDD.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++) {
|
|
@@ -4,9 +4,14 @@ function $9446cca9a3875146$export$7d15b64cf5a3a4c4(value, min = -Infinity, max =
|
|
|
4
4
|
}
|
|
5
5
|
function $9446cca9a3875146$export$e1a7b8e69ef6c52f(value, step) {
|
|
6
6
|
let roundedValue = value;
|
|
7
|
+
let precision = 0;
|
|
7
8
|
let stepString = step.toString();
|
|
8
|
-
let
|
|
9
|
-
|
|
9
|
+
let eIndex = stepString.toLowerCase().indexOf("e-");
|
|
10
|
+
if (eIndex > 0) precision = Math.abs(Math.floor(Math.log10(Math.abs(step)))) + eIndex;
|
|
11
|
+
else {
|
|
12
|
+
let pointIndex = stepString.indexOf(".");
|
|
13
|
+
if (pointIndex >= 0) precision = stepString.length - pointIndex;
|
|
14
|
+
}
|
|
10
15
|
if (precision > 0) {
|
|
11
16
|
let pow = Math.pow(10, precision);
|
|
12
17
|
roundedValue = Math.round(roundedValue * pow) / pow;
|
|
@@ -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-Bu-mgopl.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-
|
|
5
|
-
import "./index-
|
|
4
|
+
import { u as useStateManager, S as Select } from "./Select-ef7c0426.esm-D6WOCaYm.js";
|
|
5
|
+
import "./index-CBHA_HDD.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-
|
|
2
|
-
import { _ as _extends } from "./index-641ee5b8.esm-
|
|
1
|
+
import { u as useStateManager, S as Select } from "./Select-ef7c0426.esm-D6WOCaYm.js";
|
|
2
|
+
import { _ as _extends } from "./index-641ee5b8.esm-Bu-mgopl.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
|
-
import "./index-
|
|
5
|
+
import "./index-CBHA_HDD.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,51 @@
|
|
|
1
|
+
var PATTERN = /%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;
|
|
2
|
+
function sprintf$1(string, ...args) {
|
|
3
|
+
var i = 0;
|
|
4
|
+
if (Array.isArray(args[0])) {
|
|
5
|
+
args = /** @type {import('../types').SprintfArgs<T>[]} */
|
|
6
|
+
/** @type {unknown} */
|
|
7
|
+
args[0];
|
|
8
|
+
}
|
|
9
|
+
return string.replace(PATTERN, function() {
|
|
10
|
+
var index, name, precision, type, value;
|
|
11
|
+
index = arguments[3];
|
|
12
|
+
name = arguments[5];
|
|
13
|
+
precision = arguments[7];
|
|
14
|
+
type = arguments[9];
|
|
15
|
+
if (type === "%") {
|
|
16
|
+
return "%";
|
|
17
|
+
}
|
|
18
|
+
if (precision === "*") {
|
|
19
|
+
precision = args[i];
|
|
20
|
+
i++;
|
|
21
|
+
}
|
|
22
|
+
if (name === void 0) {
|
|
23
|
+
if (index === void 0) {
|
|
24
|
+
index = i + 1;
|
|
25
|
+
}
|
|
26
|
+
i++;
|
|
27
|
+
value = args[index - 1];
|
|
28
|
+
} else if (args[0] && typeof args[0] === "object" && args[0].hasOwnProperty(name)) {
|
|
29
|
+
value = args[0][name];
|
|
30
|
+
}
|
|
31
|
+
if (type === "f") {
|
|
32
|
+
value = parseFloat(value) || 0;
|
|
33
|
+
} else if (type === "d") {
|
|
34
|
+
value = parseInt(value) || 0;
|
|
35
|
+
}
|
|
36
|
+
if (precision !== void 0) {
|
|
37
|
+
if (type === "f") {
|
|
38
|
+
value = value.toFixed(precision);
|
|
39
|
+
} else if (type === "s") {
|
|
40
|
+
value = value.substr(0, precision);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return value !== void 0 && value !== null ? value : "";
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
function sprintf(format, ...args) {
|
|
47
|
+
return sprintf$1(format, ...args);
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
sprintf as s
|
|
51
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as $c87311424ea30a05$export$fedb369cb70207f1, c as $431fbd86ca7dc216$export$b204af158042fbac, d as $bbed8b41f857bcc0$export$24490316f764c430 } from "./useHover-44IApaa2.js";
|
|
2
2
|
let $14c0b72509d70225$var$state = "default";
|
|
3
3
|
let $14c0b72509d70225$var$savedUserSelect = "";
|
|
4
4
|
let $14c0b72509d70225$var$modifiedElementMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -386,7 +386,7 @@ function $f86e6c1ec7da6ebb$export$bc3384a35de93d66(options) {
|
|
|
386
386
|
}, load);
|
|
387
387
|
},
|
|
388
388
|
loadMore() {
|
|
389
|
-
if (data.state === "loadingMore" || data.state === "filtering" || data.cursor == null) return;
|
|
389
|
+
if (data.state === "loading" || data.state === "loadingMore" || data.state === "filtering" || data.cursor == null) return;
|
|
390
390
|
dispatchFetch({
|
|
391
391
|
type: "loadingMore"
|
|
392
392
|
}, load);
|
|
@@ -1,13 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-
|
|
3
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-
|
|
4
|
-
import {
|
|
1
|
+
import { b as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-cvK1vxO7.js";
|
|
2
|
+
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-D2C6R0DK.js";
|
|
3
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-BnrkvZ7e.js";
|
|
4
|
+
import { $ as $f645667febf57a63$export$4c014de7c8940b4c } from "./useHover-44IApaa2.js";
|
|
5
5
|
function $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {
|
|
6
6
|
let { elementType = "button", isDisabled, onPress, onPressStart, onPressEnd, onPressUp, onPressChange, preventFocusOnPress, allowFocusWhenDisabled, onClick, href, target, rel, type = "button" } = props;
|
|
7
7
|
let additionalProps;
|
|
8
8
|
if (elementType === "button") additionalProps = {
|
|
9
9
|
type,
|
|
10
|
-
disabled: isDisabled
|
|
10
|
+
disabled: isDisabled,
|
|
11
|
+
form: props.form,
|
|
12
|
+
formAction: props.formAction,
|
|
13
|
+
formEncType: props.formEncType,
|
|
14
|
+
formMethod: props.formMethod,
|
|
15
|
+
formNoValidate: props.formNoValidate,
|
|
16
|
+
formTarget: props.formTarget,
|
|
17
|
+
name: props.name,
|
|
18
|
+
value: props.value
|
|
11
19
|
};
|
|
12
20
|
else additionalProps = {
|
|
13
21
|
role: "button",
|