@eightshift/ui-components 5.6.1 → 6.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-CQ5ZZJ2w.js → Button-BXjXzdW_.js} +13 -13
- package/dist/{Dialog-BMgMUQuN.js → Dialog-D8bjn-nh.js} +404 -77
- package/dist/{FieldError-B8BgFmIQ.js → FieldError-DwBG6m1U.js} +2 -2
- package/dist/{FocusScope-B5vxRkHm.js → FocusScope-BMk5oZCk.js} +8 -8
- package/dist/{Heading-B5aEynOM.js → Heading-BmRX4BRL.js} +3 -3
- package/dist/{Hidden-rE6uR-lr.js → Hidden-Rfj-STx7.js} +4 -4
- package/dist/{Input-8yja_IHC.js → Input-CNNksOWg.js} +11 -11
- package/dist/{Label-DWVaNd2E.js → Label-D8a3eYb-.js} +4 -4
- package/dist/{List-BiAnh5G5.js → List-BGHOoFf0.js} +8 -8
- package/dist/{ListBox-DggfiuO_.js → ListBox-Dd37zMvs.js} +40 -41
- package/dist/{OverlayArrow-DraDOoRn.js → OverlayArrow-DokC40S3.js} +6 -6
- package/dist/{PortalProvider---wyKpMr.js → PortalProvider-CHPnqDSH.js} +2 -2
- package/dist/RadioGroup-BVFvITWO.js +371 -0
- package/dist/{SearchField-DWGdCvnn.js → SearchField-CHYnN-jt.js} +16 -16
- package/dist/{SelectionManager-B6-b5NM2.js → SelectionManager-N8X7T_4D.js} +44 -46
- package/dist/{SharedElementTransition-fML-zIv6.js → SharedElementTransition-BDT84GtD.js} +3 -3
- package/dist/{Slider-DfU6bRtH.js → Slider-CL5CM9S8.js} +23 -23
- package/dist/{Text-AxKZjtFm.js → Text-ztX6G1zR.js} +3 -3
- package/dist/{VisuallyHidden-CgnIuZJ2.js → VisuallyHidden-DTUuKFiI.js} +4 -4
- package/dist/assets/style-admin.css +12156 -2
- package/dist/assets/style-editor.css +12156 -2
- package/dist/assets/style.css +12162 -2
- package/dist/assets/wp-overrides/allow-full-width-blocks.css +6 -0
- package/dist/assets/wp-overrides/fix-label-text-case.css +29 -0
- package/dist/assets/wp-overrides/increase-sidebar-width.css +4 -0
- package/dist/assets/wp-overrides/make-block-messages-nicer.css +155 -0
- package/dist/assets/wp-overrides/replace-fonts.css +8 -0
- package/dist/assets/wp-overrides/restyle-tooltips.css +194 -0
- package/dist/assets/wp-overrides/round-corners.css +200 -0
- package/dist/assets/wp-overrides/unify-button-sizes.css +5 -0
- package/dist/clsx-DgYk2OaC.js +16 -0
- package/dist/{Color-WxFE7lQB.js → color-swatch-CFIuSPcO.js} +124 -6
- package/dist/components/animated-visibility/animated-visibility.js +25 -17
- package/dist/components/base-control/base-control.js +8 -5
- package/dist/components/base-control/container.js +204 -0
- package/dist/components/button/button.js +249 -155
- package/dist/components/checkbox/checkbox.js +96 -37
- package/dist/components/color-pickers/color-picker.js +16 -7
- package/dist/components/color-pickers/color-swatch.js +5 -57
- package/dist/components/color-pickers/gradient-editor.js +161 -138
- package/dist/components/color-pickers/solid-color-picker.js +308 -206
- package/dist/components/component-toggle/component-toggle.js +12 -8
- package/dist/components/container-panel/container-panel.js +54 -31
- package/dist/components/draggable/draggable-handle.js +8 -7
- package/dist/components/draggable/draggable.js +2 -2
- package/dist/components/draggable-list/draggable-list-item.js +21 -12
- package/dist/components/draggable-list/draggable-list.js +19 -21
- package/dist/components/expandable/expandable.js +56 -28
- package/dist/components/index.js +7 -21
- package/dist/components/input-field/input-field.js +112 -35
- package/dist/components/item-collection/item-collection.js +1 -1
- package/dist/components/link-input/link-input.js +181 -121
- package/dist/components/matrix-align/matrix-align.js +54 -20
- package/dist/components/menu/menu.js +26 -34
- package/dist/components/modal/modal.js +31 -28
- package/dist/components/notice/notice.js +45 -28
- package/dist/components/number-picker/number-picker.js +151 -101
- package/dist/components/option-select/option-select.js +40 -4
- package/dist/components/options-panel/options-panel.js +52 -25
- package/dist/components/placeholders/file-picker-shell.js +10 -9
- package/dist/components/placeholders/file-placeholder.js +14 -6
- package/dist/components/placeholders/image-placeholder.js +14 -4
- package/dist/components/placeholders/media-placeholder.js +11 -4
- package/dist/components/popover/popover.js +14 -11
- package/dist/components/portal-provider/portal-provider.js +1 -1
- package/dist/components/radio/radio.js +118 -429
- package/dist/components/repeater/repeater-item.js +7 -10
- package/dist/components/repeater/repeater.js +9 -15
- package/dist/components/responsive/mini-responsive.js +53 -61
- package/dist/components/responsive/responsive-legacy.js +1 -1
- package/dist/components/responsive/responsive.js +27 -27
- package/dist/components/responsive-preview/responsive-preview.js +1 -1
- package/dist/components/rich-label/rich-label.js +5 -5
- package/dist/components/select/async-multi-select.js +467 -100
- package/dist/components/select/{v2/async-select.js → async-select.js} +182 -105
- package/dist/components/select/multi-select.js +437 -83
- package/dist/components/select/shared.js +14 -42
- package/dist/components/select/single-select.js +349 -54
- package/dist/components/slider/column-config-slider.js +138 -45
- package/dist/components/slider/slider.js +265 -205
- package/dist/components/slider/utils.js +32 -1
- package/dist/components/smart-image/smart-image.js +25 -4
- package/dist/components/smart-image/worker-inline.js +1 -1
- package/dist/components/spacer/spacer.js +2 -2
- package/dist/components/tabs/tabs.js +370 -101
- package/dist/components/toggle/switch.js +174 -39
- package/dist/components/toggle/toggle.js +6 -3
- package/dist/components/toggle-button/toggle-button.js +140 -56
- package/dist/components/tooltip/tooltip.js +27 -26
- package/dist/{context-DMOmz986.js → context-BQvmiUqb.js} +3 -3
- package/dist/{default-i18n-DBm-GqWM.js → default-i18n-CnQeC5Pl.js} +10 -10
- package/dist/{general-Ck8IV7xJ.js → general-B6pOveVp.js} +11 -10
- package/dist/icons/icons.js +28 -9
- package/dist/icons/jsx-svg.js +1 -1
- package/dist/icons/spinner.js +3 -1
- package/dist/{index-Dq3gT5pW.js → index-BHpUy2Ix.js} +1 -1
- package/dist/{index-D8-Zjpbd.js → index-oFgxU4zs.js} +3 -3
- package/dist/index.js +6 -20
- package/dist/proxy-0B6wWuDe.js +7409 -0
- package/dist/{react-jsx-parser.min-VUl-CuCv.js → react-jsx-parser.min-B_hvYYa1.js} +5 -5
- package/dist/{Select-BvggcFOX.js → shared-DwjRce5e.js} +170 -36
- package/dist/{textSelection-DbCKqaw8.js → textSelection-CwHUtNVX.js} +1 -1
- package/dist/{useButton-v9ngEj50.js → useButton-DdZrS1Kz.js} +3 -3
- package/dist/{useEvent-BifIGnVS.js → useEvent-BD7Olibq.js} +1 -1
- package/dist/{useFilter-BlkUH1Ma.js → useFilter-bhxeEDg8.js} +1 -1
- package/dist/{useFocusRing-Cgm0R4Cf.js → useFocusRing-D3b7Kh4P.js} +1 -1
- package/dist/{useFormReset-yV9VVy9R.js → useFormReset-WUv2PdFO.js} +1 -1
- package/dist/{useFormValidation-CeNsUGWK.js → useFormValidation-DQeXkyLm.js} +2 -2
- package/dist/{useHover-BRDW3y7-.js → useHover-Bycb7BsD.js} +7 -7
- package/dist/{useLabel-C8umX0gk.js → useLabel-Bnv4-T24.js} +2 -2
- package/dist/{useLabels-Cdxi6JSa.js → useLabels-B49ptFDX.js} +1 -1
- package/dist/{useListState-RdLrYsMP.js → useListState-ZKhRO8ML.js} +1 -1
- package/dist/{useLocalizedStringFormatter-eaZiN2tE.js → useLocalizedStringFormatter-NETP-8H8.js} +1 -1
- package/dist/{useNumberField-D16dDfYF.js → useNumberField-D2fUHql3.js} +10 -10
- package/dist/{useNumberFormatter-BCmkV-7c.js → useNumberFormatter-DGvuRCn7.js} +1 -1
- package/dist/{usePress-DJskZBH9.js → usePress-B8OteQMu.js} +6 -6
- package/dist/{useSingleSelectListState-n0AVMr3Y.js → useSingleSelectListState-BBTu4shO.js} +2 -2
- package/dist/{useToggle-DSBDAfdw.js → useToggle-BZhaYwZl.js} +4 -4
- package/dist/{useToggleState-CzN79ary.js → useToggleState-VkXJjsru.js} +1 -1
- package/dist/utilities/general.js +1 -1
- package/dist/utilities/index.js +1 -1
- package/dist/{utils-cvK1vxO7.js → utils-DGpXyJOJ.js} +29 -42
- package/dist/workers/image-analysis.worker.js +3 -3
- package/package.json +26 -22
- package/dist/ColorSwatch-xVS3rMYS.js +0 -66
- package/dist/Select-ef7c0426.esm-CmTkSxDx.js +0 -2474
- package/dist/Separator-B-xeqOkC.js +0 -344
- package/dist/assets/wp-font-enhancements.css +0 -2
- package/dist/assets/wp-ui-enhancements.css +0 -2
- package/dist/components/select/async-single-select.js +0 -138
- package/dist/components/select/custom-select-default-components.js +0 -38
- package/dist/components/select/multi-select-components.js +0 -8
- package/dist/components/select/react-select-component-wrappers.js +0 -90
- package/dist/components/select/styles.js +0 -49
- package/dist/components/select/v2/async-multi-select.js +0 -432
- package/dist/components/select/v2/multi-select.js +0 -403
- package/dist/components/select/v2/shared.js +0 -69
- package/dist/components/select/v2/single-select.js +0 -358
- package/dist/index-641ee5b8.esm-DVp0njHa.js +0 -3139
- package/dist/modifiers.esm-BuJQPI1X.js +0 -31
- package/dist/multi-select-components-CT_W0Cy9.js +0 -3744
- package/dist/react-select-async.esm-Zl1LPaPb.js +0 -107
- package/dist/react-select.esm-Bu36HujU.js +0 -15
- package/dist/useDragAndDrop-C08ZXv4F.js +0 -3925
- package/dist/wp/wp-font-enhancements.js +0 -1
- package/dist/wp/wp-ui-enhancements.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import $dbSRa$react__default, { Fragment } from "react";
|
|
2
2
|
function getLocator(source, options) {
|
|
3
3
|
if (options === void 0) {
|
|
4
4
|
options = {};
|
|
@@ -11398,7 +11398,7 @@ var resolvePath = (object, path) => resolveArrayPath(object, pathToArrayPath(pat
|
|
|
11398
11398
|
function handleNaN(child) {
|
|
11399
11399
|
return Number.isNaN(child) ? "NaN" : child;
|
|
11400
11400
|
}
|
|
11401
|
-
class JsxParser extends
|
|
11401
|
+
class JsxParser extends $dbSRa$react__default.Component {
|
|
11402
11402
|
static displayName = "JsxParser";
|
|
11403
11403
|
static defaultProps = {
|
|
11404
11404
|
allowUnknownElements: true,
|
|
@@ -11453,7 +11453,7 @@ class JsxParser extends React__default.Component {
|
|
|
11453
11453
|
return this.#parseExpression(expression.expression, scope);
|
|
11454
11454
|
case "JSXText":
|
|
11455
11455
|
const key = this.props.disableKeyGeneration ? void 0 : randomHash();
|
|
11456
|
-
return this.props.disableFragments ? expression.value : /* @__PURE__ */
|
|
11456
|
+
return this.props.disableFragments ? expression.value : /* @__PURE__ */ $dbSRa$react__default.createElement(Fragment, {
|
|
11457
11457
|
key
|
|
11458
11458
|
}, expression.value);
|
|
11459
11459
|
case "ArrayExpression":
|
|
@@ -11718,13 +11718,13 @@ class JsxParser extends React__default.Component {
|
|
|
11718
11718
|
if (lowerName === "option") {
|
|
11719
11719
|
children = children.props.children;
|
|
11720
11720
|
}
|
|
11721
|
-
return
|
|
11721
|
+
return $dbSRa$react__default.createElement(component || lowerName, props, children);
|
|
11722
11722
|
};
|
|
11723
11723
|
render() {
|
|
11724
11724
|
const jsx = (this.props.jsx || "").trim().replace(/<!DOCTYPE([^>]*)>/g, "");
|
|
11725
11725
|
this.ParsedChildren = this.#parseJSX(jsx);
|
|
11726
11726
|
const className = [.../* @__PURE__ */ new Set(["jsx-parser", ...String(this.props.className).split(" ")])].filter(Boolean).join(" ");
|
|
11727
|
-
return this.props.renderInWrapper ? /* @__PURE__ */
|
|
11727
|
+
return this.props.renderInWrapper ? /* @__PURE__ */ $dbSRa$react__default.createElement("div", {
|
|
11728
11728
|
className
|
|
11729
11729
|
}, this.ParsedChildren) : this.ParsedChildren;
|
|
11730
11730
|
}
|
|
@@ -1,25 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { a as $
|
|
1
|
+
import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
|
|
2
|
+
import { _ as __ } from "./default-i18n-CnQeC5Pl.js";
|
|
3
|
+
import { a as $d2b4bc8c273e7be6$export$24d547caef80ccd1, $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "./Button-BXjXzdW_.js";
|
|
4
|
+
import { c as $eed445e0843c11d0$export$7ff8f37d2d81a48d, d as $eed445e0843c11d0$export$7c5906fe4f1f2af2, e as $eed445e0843c11d0$export$a11e76429ed99b4 } from "./ListBox-Dd37zMvs.js";
|
|
5
|
+
import { a as $3ef42575df84b30b$export$9d1611c77c2fe928, b as $bdb11010cef70236$export$f680877a34711e37, o as $ff5963eb1fccf552$export$e08e3b67e392101e, $ as $64fa3d84918910a7$export$29f1550f4b0d4415, d as $64fa3d84918910a7$export$fabf2dc03a41866e, g as $64fa3d84918910a7$export$4d86445c2cf5e3, e as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, f as $64fa3d84918910a7$export$ef03459518577ad4, h as $64fa3d84918910a7$export$2881499e37b75b9a } from "./utils-DGpXyJOJ.js";
|
|
6
|
+
import { a as $2baaea4c71418dea$export$294aa081a6c6f55d, $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "./FieldError-DwBG6m1U.js";
|
|
4
7
|
import { $ as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "./Form-Cq3fu75_.js";
|
|
5
|
-
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "./Label-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-rE6uR-lr.js";
|
|
8
|
+
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "./Label-D8a3eYb-.js";
|
|
9
|
+
import { i as $325a3faab7a68acd$export$a16aca283550c30d, t as $2a25aae57d74318e$export$a05409b8bb224a5a, w as $168583247155ddda$export$dc9c12ed27dd1b49, n as $de32f1b87079253c$export$d2f961adcb0afbe, x as $07b14b47974efb58$export$9b9a0cd73afb7ca4 } from "./Dialog-D8bjn-nh.js";
|
|
10
|
+
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-ztX6G1zR.js";
|
|
11
|
+
import { s as $fb3050f43d946246$export$e32c88dfddc6e1d8, g as $e1995378a142960e$export$bf788dd355e3a401 } from "./SelectionManager-N8X7T_4D.js";
|
|
12
|
+
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-Rfj-STx7.js";
|
|
11
13
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-D2C6R0DK.js";
|
|
12
|
-
import { $ as $fc909762b330b746$export$61c6a8c84e605fb6, f as $9daab02d461809db$export$683480f191c0e3ea } from "./OverlayArrow-
|
|
13
|
-
import
|
|
14
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
15
|
-
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-
|
|
16
|
-
import { a as $e93e671b31057976$export$b8473d3665f3a75a, $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10 } from "./useFormValidation-
|
|
17
|
-
import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "./useListState-
|
|
18
|
-
import { v as $507fabe10e71c6fb$export$8397ddfc504fdb9a, a as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-
|
|
19
|
-
import { a as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
14
|
+
import { $ as $fc909762b330b746$export$61c6a8c84e605fb6, f as $9daab02d461809db$export$683480f191c0e3ea } from "./OverlayArrow-DokC40S3.js";
|
|
15
|
+
import $dbSRa$react__default, { useMemo, useRef, useCallback, useState, forwardRef, createContext, useContext, Fragment } from "react";
|
|
16
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-BQvmiUqb.js";
|
|
17
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-NETP-8H8.js";
|
|
18
|
+
import { a as $e93e671b31057976$export$b8473d3665f3a75a, $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10 } from "./useFormValidation-DQeXkyLm.js";
|
|
19
|
+
import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "./useListState-ZKhRO8ML.js";
|
|
20
|
+
import { v as $507fabe10e71c6fb$export$8397ddfc504fdb9a, a as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-Bycb7BsD.js";
|
|
21
|
+
import { a as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-D3b7Kh4P.js";
|
|
22
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-WUv2PdFO.js";
|
|
23
|
+
import { a as $5c3e21d68f1c4674$export$a966af930f325cab } from "./VisuallyHidden-DTUuKFiI.js";
|
|
24
|
+
import { icons } from "./icons/icons.js";
|
|
25
|
+
import "./react-jsx-parser.min-B_hvYYa1.js";
|
|
26
|
+
import { AnimatedVisibility } from "./components/animated-visibility/animated-visibility.js";
|
|
27
|
+
import { c as clsx } from "./clsx-DgYk2OaC.js";
|
|
23
28
|
function $33bf17300c498528$export$a2f47a3d2973640(options = {}) {
|
|
24
29
|
let { locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
25
30
|
return useMemo(() => new Intl.ListFormat(locale, options), [
|
|
@@ -227,17 +232,17 @@ function $bdd25dc72710631f$export$cbd84cdb2e668835(props) {
|
|
|
227
232
|
...props,
|
|
228
233
|
selectRef: state.collection.size <= 300 ? selectRef : inputRef
|
|
229
234
|
}, state, triggerRef);
|
|
230
|
-
if (state.collection.size <= 300) return /* @__PURE__ */
|
|
235
|
+
if (state.collection.size <= 300) return /* @__PURE__ */ $dbSRa$react__default.createElement("div", {
|
|
231
236
|
...containerProps,
|
|
232
237
|
"data-testid": "hidden-select-container"
|
|
233
|
-
}, /* @__PURE__ */
|
|
238
|
+
}, /* @__PURE__ */ $dbSRa$react__default.createElement("label", null, label, /* @__PURE__ */ $dbSRa$react__default.createElement("select", {
|
|
234
239
|
...selectProps,
|
|
235
240
|
ref: selectRef
|
|
236
|
-
}, /* @__PURE__ */
|
|
241
|
+
}, /* @__PURE__ */ $dbSRa$react__default.createElement("option", null), [
|
|
237
242
|
...state.collection.getKeys()
|
|
238
243
|
].map((key) => {
|
|
239
244
|
let item = state.collection.getItem(key);
|
|
240
|
-
if (item && item.type === "item") return /* @__PURE__ */
|
|
245
|
+
if (item && item.type === "item") return /* @__PURE__ */ $dbSRa$react__default.createElement("option", {
|
|
241
246
|
key: item.key,
|
|
242
247
|
value: item.key
|
|
243
248
|
}, item.textValue);
|
|
@@ -261,7 +266,7 @@ function $bdd25dc72710631f$export$cbd84cdb2e668835(props) {
|
|
|
261
266
|
value: value !== null && value !== void 0 ? value : ""
|
|
262
267
|
};
|
|
263
268
|
if (validationBehavior === "native")
|
|
264
|
-
return /* @__PURE__ */
|
|
269
|
+
return /* @__PURE__ */ $dbSRa$react__default.createElement("input", {
|
|
265
270
|
key: i,
|
|
266
271
|
...inputProps,
|
|
267
272
|
ref: i === 0 ? inputRef : null,
|
|
@@ -273,13 +278,13 @@ function $bdd25dc72710631f$export$cbd84cdb2e668835(props) {
|
|
|
273
278
|
onChange: () => {
|
|
274
279
|
}
|
|
275
280
|
});
|
|
276
|
-
return /* @__PURE__ */
|
|
281
|
+
return /* @__PURE__ */ $dbSRa$react__default.createElement("input", {
|
|
277
282
|
key: i,
|
|
278
283
|
...inputProps,
|
|
279
284
|
ref: i === 0 ? inputRef : null
|
|
280
285
|
});
|
|
281
286
|
});
|
|
282
|
-
return /* @__PURE__ */
|
|
287
|
+
return /* @__PURE__ */ $dbSRa$react__default.createElement($dbSRa$react__default.Fragment, null, res);
|
|
283
288
|
}
|
|
284
289
|
return null;
|
|
285
290
|
}
|
|
@@ -690,9 +695,9 @@ const $82d7e5349645de74$export$ef9b1a59e592288f = /* @__PURE__ */ forwardRef(fun
|
|
|
690
695
|
isInvalid,
|
|
691
696
|
isRequired
|
|
692
697
|
]);
|
|
693
|
-
return /* @__PURE__ */
|
|
698
|
+
return /* @__PURE__ */ $dbSRa$react__default.createElement($e1995378a142960e$export$bf788dd355e3a401, {
|
|
694
699
|
content
|
|
695
|
-
}, (collection) => /* @__PURE__ */
|
|
700
|
+
}, (collection) => /* @__PURE__ */ $dbSRa$react__default.createElement($82d7e5349645de74$var$SelectInner, {
|
|
696
701
|
props,
|
|
697
702
|
collection,
|
|
698
703
|
selectRef: ref
|
|
@@ -758,7 +763,7 @@ function $82d7e5349645de74$var$SelectInner({ props, selectRef: ref, collection }
|
|
|
758
763
|
});
|
|
759
764
|
delete DOMProps.id;
|
|
760
765
|
let scrollRef = useRef(null);
|
|
761
|
-
return /* @__PURE__ */
|
|
766
|
+
return /* @__PURE__ */ $dbSRa$react__default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
|
|
762
767
|
values: [
|
|
763
768
|
[
|
|
764
769
|
$82d7e5349645de74$export$7540cee5be7dc19b,
|
|
@@ -832,7 +837,7 @@ function $82d7e5349645de74$var$SelectInner({ props, selectRef: ref, collection }
|
|
|
832
837
|
validation
|
|
833
838
|
]
|
|
834
839
|
]
|
|
835
|
-
}, /* @__PURE__ */
|
|
840
|
+
}, /* @__PURE__ */ $dbSRa$react__default.createElement("div", {
|
|
836
841
|
...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, focusProps),
|
|
837
842
|
ref,
|
|
838
843
|
slot: props.slot || void 0,
|
|
@@ -842,7 +847,7 @@ function $82d7e5349645de74$var$SelectInner({ props, selectRef: ref, collection }
|
|
|
842
847
|
"data-disabled": props.isDisabled || void 0,
|
|
843
848
|
"data-invalid": validation.isInvalid || void 0,
|
|
844
849
|
"data-required": props.isRequired || void 0
|
|
845
|
-
}, renderProps.children, /* @__PURE__ */
|
|
850
|
+
}, renderProps.children, /* @__PURE__ */ $dbSRa$react__default.createElement($bdd25dc72710631f$export$cbd84cdb2e668835, {
|
|
846
851
|
...hiddenSelectProps,
|
|
847
852
|
autoComplete: props.autoComplete
|
|
848
853
|
})));
|
|
@@ -890,7 +895,7 @@ const $82d7e5349645de74$export$e288731fd71264f0 = /* @__PURE__ */ $f39a9eba43920
|
|
|
890
895
|
if (parts.length === 0) return null;
|
|
891
896
|
let index = 0;
|
|
892
897
|
return parts.map((part) => {
|
|
893
|
-
if (part.type === "element") return /* @__PURE__ */
|
|
898
|
+
if (part.type === "element") return /* @__PURE__ */ $dbSRa$react__default.createElement(Fragment, {
|
|
894
899
|
key: index
|
|
895
900
|
}, rendered[index++]);
|
|
896
901
|
else return part.value;
|
|
@@ -923,17 +928,146 @@ const $82d7e5349645de74$export$e288731fd71264f0 = /* @__PURE__ */ $f39a9eba43920
|
|
|
923
928
|
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
|
|
924
929
|
global: true
|
|
925
930
|
});
|
|
926
|
-
return /* @__PURE__ */
|
|
931
|
+
return /* @__PURE__ */ $dbSRa$react__default.createElement("span", {
|
|
927
932
|
ref,
|
|
928
933
|
...DOMProps,
|
|
929
934
|
...renderProps,
|
|
930
935
|
"data-placeholder": state.selectedItems.length === 0 || void 0
|
|
931
|
-
}, /* @__PURE__ */
|
|
936
|
+
}, /* @__PURE__ */ $dbSRa$react__default.createElement($514c0188e459b4c0$export$9afb8bc826b033ea.Provider, {
|
|
932
937
|
value: void 0
|
|
933
938
|
}, renderProps.children));
|
|
934
939
|
});
|
|
940
|
+
const OptionItemBase = (props) => /* @__PURE__ */ jsx(
|
|
941
|
+
$eed445e0843c11d0$export$a11e76429ed99b4,
|
|
942
|
+
{
|
|
943
|
+
...props,
|
|
944
|
+
textValue: props?.value?.label,
|
|
945
|
+
className: ({ isSelected }) => clsx(
|
|
946
|
+
"es:select-none",
|
|
947
|
+
"es:min-h-11",
|
|
948
|
+
"es:scroll-m-2 es:scroll-p-2",
|
|
949
|
+
"es:flex es:items-center-safe es:gap-2",
|
|
950
|
+
"es:transition-plus es:ease-out es:duration-400",
|
|
951
|
+
"es:px-3 es:py-1.75",
|
|
952
|
+
"es:not-has-any-icon:pl-3.5",
|
|
953
|
+
isSelected && [
|
|
954
|
+
"es:bg-accent-50",
|
|
955
|
+
"es:rounded-2xl",
|
|
956
|
+
"es:before-selected:rounded-b-md",
|
|
957
|
+
"es:after-selected:rounded-t-md",
|
|
958
|
+
"es:focus-visible:bg-white/90 es:focus-visible:rounded-3xl es:focus-visible:text-accent-700",
|
|
959
|
+
"es:pressed:rounded-4xl",
|
|
960
|
+
"es:hover:bg-accent-100 es:hover:text-accent-800",
|
|
961
|
+
"es:text-accent-800"
|
|
962
|
+
],
|
|
963
|
+
!isSelected && [
|
|
964
|
+
"es:bg-surface-50/90",
|
|
965
|
+
"es:rounded-md",
|
|
966
|
+
"es:first:rounded-t-xl es:last:rounded-b-xl",
|
|
967
|
+
"es:after-current:rounded-t-xl es:before-current:rounded-b-xl",
|
|
968
|
+
"es:hover:rounded-2xl es:pressed:rounded-3xl",
|
|
969
|
+
"es:focus-visible:bg-white/90 es:focus-visible:rounded-2xl es:focus-visible:text-accent-950",
|
|
970
|
+
"es:hover:bg-surface-100/90 es:hover:text-accent-900",
|
|
971
|
+
"es:text-accent-950"
|
|
972
|
+
],
|
|
973
|
+
"es:any-focus:outline-hidden"
|
|
974
|
+
),
|
|
975
|
+
children: ({ isSelected }) => /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
976
|
+
props.extraPre,
|
|
977
|
+
props.children,
|
|
978
|
+
props.selectIndicator && /* @__PURE__ */ jsx(
|
|
979
|
+
"div",
|
|
980
|
+
{
|
|
981
|
+
className: clsx(
|
|
982
|
+
"es:transition es:rounded-3xl es:size-5",
|
|
983
|
+
"es:flex es:items-center es:justify-center es:shrink-0",
|
|
984
|
+
"es:ml-auto es:overflow-clip",
|
|
985
|
+
isSelected && "es:bg-accent-700/15 es:text-accent-900",
|
|
986
|
+
!isSelected && "es:bg-surface-800/7"
|
|
987
|
+
),
|
|
988
|
+
children: /* @__PURE__ */ jsx(
|
|
989
|
+
AnimatedVisibility,
|
|
990
|
+
{
|
|
991
|
+
transition: "scaleRotateFade",
|
|
992
|
+
visible: isSelected,
|
|
993
|
+
className: "es:transition-none es:icon:size-3 es:icon:stroke-[1.5]",
|
|
994
|
+
noInitial: true,
|
|
995
|
+
children: icons.check
|
|
996
|
+
}
|
|
997
|
+
)
|
|
998
|
+
}
|
|
999
|
+
),
|
|
1000
|
+
props.extraAfter
|
|
1001
|
+
] })
|
|
1002
|
+
}
|
|
1003
|
+
);
|
|
1004
|
+
/**
|
|
1005
|
+
* Handles getting the current value.
|
|
1006
|
+
*
|
|
1007
|
+
* @param {boolean} simpleValue - Whether `simpleValue` is set.
|
|
1008
|
+
* @param {string|{label: string, value: string, metadata: Object<string, any>[]}} value - Current value.
|
|
1009
|
+
* @param {{label: string, value: string}[]} options - Options passed to the component.
|
|
1010
|
+
*
|
|
1011
|
+
* @returns Appropriate output for the given input combination.
|
|
1012
|
+
*
|
|
1013
|
+
* @preserve
|
|
1014
|
+
*/
|
|
1015
|
+
const getValue = (simpleValue, value, options) => {
|
|
1016
|
+
if (Array.isArray(value)) {
|
|
1017
|
+
if (simpleValue) {
|
|
1018
|
+
return value.map((value2) => options?.find(({ value: itemValue }) => itemValue === value2));
|
|
1019
|
+
}
|
|
1020
|
+
return value;
|
|
1021
|
+
}
|
|
1022
|
+
if (simpleValue) {
|
|
1023
|
+
return options?.find(({ value: itemValue }) => itemValue === value);
|
|
1024
|
+
}
|
|
1025
|
+
return value;
|
|
1026
|
+
};
|
|
1027
|
+
const moveArrayItem = (array, itemToMove, targetItem, position = "before") => {
|
|
1028
|
+
const result = [...array];
|
|
1029
|
+
const sourceIndex = result.indexOf(itemToMove);
|
|
1030
|
+
const targetIndex = result.indexOf(targetItem);
|
|
1031
|
+
if (sourceIndex === -1 || targetIndex === -1) {
|
|
1032
|
+
return result;
|
|
1033
|
+
}
|
|
1034
|
+
result.splice(sourceIndex, 1);
|
|
1035
|
+
let adjustedTargetIndex;
|
|
1036
|
+
if (position === "after") {
|
|
1037
|
+
adjustedTargetIndex = sourceIndex < targetIndex ? targetIndex : targetIndex + 1;
|
|
1038
|
+
} else if (position === "before") {
|
|
1039
|
+
adjustedTargetIndex = sourceIndex < targetIndex ? targetIndex - 1 : targetIndex;
|
|
1040
|
+
}
|
|
1041
|
+
result.splice(adjustedTargetIndex, 0, itemToMove);
|
|
1042
|
+
return result;
|
|
1043
|
+
};
|
|
1044
|
+
const SelectClearButton = ({ multi = false }) => {
|
|
1045
|
+
const state = useContext($82d7e5349645de74$export$ef445b55be0601bd);
|
|
1046
|
+
const isEmpty = multi ? state?.value === null || state?.value?.length === 0 : state?.value === null;
|
|
1047
|
+
return /* @__PURE__ */ jsx(
|
|
1048
|
+
$d2b4bc8c273e7be6$export$353f5b6fc5456de1,
|
|
1049
|
+
{
|
|
1050
|
+
"aria-label": __("Clear value", "eightshift-ui-components"),
|
|
1051
|
+
className: clsx(
|
|
1052
|
+
"es:flex es:items-center es:justify-center",
|
|
1053
|
+
"es:rounded-md es:hover:rounded-lg es:pressed:rounded-xl",
|
|
1054
|
+
"es:text-secondary-600 es:hover:bg-red-700/4 es:hover:text-red-700 es:disabled:text-secondary-300",
|
|
1055
|
+
"es:h-7 es:px-1",
|
|
1056
|
+
"es:any-focus:outline-hidden es:focus-visible:ring-2 es:focus-visible:ring-accent-500/50",
|
|
1057
|
+
"es:transition-plus",
|
|
1058
|
+
isEmpty ? "es:hidden" : "es:flex"
|
|
1059
|
+
),
|
|
1060
|
+
onPress: () => state?.setValue(null),
|
|
1061
|
+
slot: null,
|
|
1062
|
+
children: icons.clear
|
|
1063
|
+
}
|
|
1064
|
+
);
|
|
1065
|
+
};
|
|
935
1066
|
export {
|
|
936
1067
|
$82d7e5349645de74$export$ef9b1a59e592288f as $,
|
|
1068
|
+
OptionItemBase as O,
|
|
1069
|
+
SelectClearButton as S,
|
|
937
1070
|
$82d7e5349645de74$export$e288731fd71264f0 as a,
|
|
938
|
-
|
|
1071
|
+
getValue as g,
|
|
1072
|
+
moveArrayItem as m
|
|
939
1073
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as $c87311424ea30a05$export$fedb369cb70207f1, c as $431fbd86ca7dc216$export$b204af158042fbac, d as $bbed8b41f857bcc0$export$24490316f764c430 } from "./useHover-
|
|
1
|
+
import { b as $c87311424ea30a05$export$fedb369cb70207f1, c as $431fbd86ca7dc216$export$b204af158042fbac, d as $bbed8b41f857bcc0$export$24490316f764c430 } from "./useHover-Bycb7BsD.js";
|
|
2
2
|
let $14c0b72509d70225$var$state = "default";
|
|
3
3
|
let $14c0b72509d70225$var$savedUserSelect = "";
|
|
4
4
|
let $14c0b72509d70225$var$modifiedElementMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-DGpXyJOJ.js";
|
|
2
2
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-D2C6R0DK.js";
|
|
3
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-
|
|
4
|
-
import { $ as $f645667febf57a63$export$4c014de7c8940b4c } from "./useHover-
|
|
3
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-B8OteQMu.js";
|
|
4
|
+
import { $ as $f645667febf57a63$export$4c014de7c8940b4c } from "./useHover-Bycb7BsD.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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-DGpXyJOJ.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 {
|
|
1
|
+
import { i as $325a3faab7a68acd$export$a16aca283550c30d } from "./Dialog-D8bjn-nh.js";
|
|
2
2
|
import { useCallback, useMemo } from "react";
|
|
3
3
|
function $bb77f239b46e8c72$export$3274cf84b703fff(options) {
|
|
4
4
|
let collator = $325a3faab7a68acd$export$a16aca283550c30d({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as $03deb23ff14920c4$export$4eaf04e54aa8eed6, f as $8a9cb279dc87e130$export$715c682d09d639cc, c as $431fbd86ca7dc216$export$b204af158042fbac, g as $d4ee10de306f2510$export$cd4e5573fbe2b576, h as $d4ee10de306f2510$export$e58f029f0fbfdb29, i as $d4ee10de306f2510$export$4282f70798064fe0, j as $8a9cb279dc87e130$export$c2b7abe5d61ec696, k as $8a9cb279dc87e130$export$525bc4921d56d4a, l as $507fabe10e71c6fb$export$b9b3dfddab17db27, m as $507fabe10e71c6fb$export$ec71b4b83ac08ec3, n as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6 } from "./useHover-
|
|
1
|
+
import { e as $03deb23ff14920c4$export$4eaf04e54aa8eed6, f as $8a9cb279dc87e130$export$715c682d09d639cc, c as $431fbd86ca7dc216$export$b204af158042fbac, g as $d4ee10de306f2510$export$cd4e5573fbe2b576, h as $d4ee10de306f2510$export$e58f029f0fbfdb29, i as $d4ee10de306f2510$export$4282f70798064fe0, j as $8a9cb279dc87e130$export$c2b7abe5d61ec696, k as $8a9cb279dc87e130$export$525bc4921d56d4a, l as $507fabe10e71c6fb$export$b9b3dfddab17db27, m as $507fabe10e71c6fb$export$ec71b4b83ac08ec3, n as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6 } from "./useHover-Bycb7BsD.js";
|
|
2
2
|
import { useRef, useCallback, useState } from "react";
|
|
3
3
|
function $9ab94262bd0047c7$export$420e68273165f4ec(props) {
|
|
4
4
|
let { isDisabled, onBlurWithin, onFocusWithin, onFocusWithinChange } = props;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-DGpXyJOJ.js";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
3
|
function $99facab73266f662$export$5add1d006293d136(ref, initialValue, onReset) {
|
|
4
4
|
let handleReset = $8ae05eaa5c114e9c$export$7f54fc3180508a52(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo, useContext, createContext, useState, useRef, useEffect } from "react";
|
|
2
|
-
import { v as $507fabe10e71c6fb$export$8397ddfc504fdb9a } from "./useHover-
|
|
3
|
-
import {
|
|
2
|
+
import { v as $507fabe10e71c6fb$export$8397ddfc504fdb9a } from "./useHover-Bycb7BsD.js";
|
|
3
|
+
import { j as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, c as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-DGpXyJOJ.js";
|
|
4
4
|
const $e5be200c675c3b3a$export$aca958c65c314e6c = {
|
|
5
5
|
badInput: false,
|
|
6
6
|
customError: false,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import $dbSRa$react__default, { useRef, useCallback, useEffect, useState, useContext, useMemo } from "react";
|
|
2
|
+
import { j as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, c as $8ae05eaa5c114e9c$export$7f54fc3180508a52, m as $b5e257d569688ac6$export$535bd6ca7f90a273, k as $df56164dff5785e2$export$4338b53315abf666, a as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-DGpXyJOJ.js";
|
|
3
3
|
const $431fbd86ca7dc216$export$b204af158042fbac = (el) => {
|
|
4
4
|
var _el_ownerDocument;
|
|
5
5
|
return (_el_ownerDocument = el === null || el === void 0 ? void 0 : el.ownerDocument) !== null && _el_ownerDocument !== void 0 ? _el_ownerDocument : document;
|
|
@@ -729,21 +729,21 @@ function $46d819fcbaf35654$export$8f71654801c2f7cd(props) {
|
|
|
729
729
|
}
|
|
730
730
|
};
|
|
731
731
|
}
|
|
732
|
-
let $f645667febf57a63$export$f9762fab77588ecb = /* @__PURE__ */
|
|
732
|
+
let $f645667febf57a63$export$f9762fab77588ecb = /* @__PURE__ */ $dbSRa$react__default.createContext(null);
|
|
733
733
|
function $f645667febf57a63$var$useFocusableContext(ref) {
|
|
734
734
|
let context = useContext($f645667febf57a63$export$f9762fab77588ecb) || {};
|
|
735
735
|
$e7801be82b4b2a53$export$4debdb1a3f0fa79e(context, ref);
|
|
736
736
|
let { ref: _, ...otherProps } = context;
|
|
737
737
|
return otherProps;
|
|
738
738
|
}
|
|
739
|
-
const $f645667febf57a63$export$13f3202a3e5ddd5 = /* @__PURE__ */
|
|
739
|
+
const $f645667febf57a63$export$13f3202a3e5ddd5 = /* @__PURE__ */ $dbSRa$react__default.forwardRef(function FocusableProvider(props, ref) {
|
|
740
740
|
let { children, ...otherProps } = props;
|
|
741
741
|
let objRef = $df56164dff5785e2$export$4338b53315abf666(ref);
|
|
742
742
|
let context = {
|
|
743
743
|
...otherProps,
|
|
744
744
|
ref: objRef
|
|
745
745
|
};
|
|
746
|
-
return /* @__PURE__ */
|
|
746
|
+
return /* @__PURE__ */ $dbSRa$react__default.createElement($f645667febf57a63$export$f9762fab77588ecb.Provider, {
|
|
747
747
|
value: context
|
|
748
748
|
}, children);
|
|
749
749
|
});
|
|
@@ -899,8 +899,8 @@ export {
|
|
|
899
899
|
$e7801be82b4b2a53$export$4debdb1a3f0fa79e as I,
|
|
900
900
|
$c87311424ea30a05$export$e1865c3bedcd822b as J,
|
|
901
901
|
$f645667febf57a63$export$f9762fab77588ecb as K,
|
|
902
|
-
$
|
|
903
|
-
$
|
|
902
|
+
$c87311424ea30a05$export$186c6964ca17d99 as L,
|
|
903
|
+
$507fabe10e71c6fb$export$98e20ec92f614cfe as M,
|
|
904
904
|
$458b0a5536c1a7cf$export$40bfa8c7b0832715 as a,
|
|
905
905
|
$c87311424ea30a05$export$fedb369cb70207f1 as b,
|
|
906
906
|
$431fbd86ca7dc216$export$b204af158042fbac as c,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-
|
|
1
|
+
import { b as $bdb11010cef70236$export$f680877a34711e37 } from "./utils-DGpXyJOJ.js";
|
|
2
|
+
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-B49ptFDX.js";
|
|
3
3
|
function $d191a55c9702f145$export$8467354a121f1b9f(props) {
|
|
4
4
|
let { id, label, "aria-labelledby": ariaLabelledby, "aria-label": ariaLabel, labelElementType = "label" } = props;
|
|
5
5
|
id = $bdb11010cef70236$export$f680877a34711e37(id);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as $bdb11010cef70236$export$f680877a34711e37 } from "./utils-DGpXyJOJ.js";
|
|
2
2
|
function $313b98861ee5dd6c$export$d6875122194c7b44(props, defaultLabel) {
|
|
3
3
|
let { id, "aria-label": label, "aria-labelledby": labelledBy } = props;
|
|
4
4
|
id = $bdb11010cef70236$export$f680877a34711e37(id);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { version, useMemo, useCallback, useRef, useEffect } from "react";
|
|
2
|
-
import { $ as $7af3f5b51489e0b5$export$253fe78d46329472, a as $7613b1592d41b092$export$6cd28814d92fa9c9, b as $d496c0a20b6e58ec$export$6c8a5aaad13c9852 } from "./SelectionManager-
|
|
2
|
+
import { $ as $7af3f5b51489e0b5$export$253fe78d46329472, a as $7613b1592d41b092$export$6cd28814d92fa9c9, b as $d496c0a20b6e58ec$export$6c8a5aaad13c9852 } from "./SelectionManager-N8X7T_4D.js";
|
|
3
3
|
function $cdc5a6778b766db2$export$a9d04c5684123369(value) {
|
|
4
4
|
const pieces = version.split(".");
|
|
5
5
|
const major = parseInt(pieces[0], 10);
|
package/dist/{useLocalizedStringFormatter-eaZiN2tE.js → useLocalizedStringFormatter-NETP-8H8.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
1
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-BQvmiUqb.js";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
const $5b160d28a433310d$var$localeSymbol = Symbol.for("react-aria.i18n.locale");
|
|
4
4
|
const $5b160d28a433310d$var$stringsSymbol = Symbol.for("react-aria.i18n.strings");
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { a as $458b0a5536c1a7cf$export$40bfa8c7b0832715, e as $03deb23ff14920c4$export$4eaf04e54aa8eed6, n as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6,
|
|
1
|
+
import { a as $458b0a5536c1a7cf$export$40bfa8c7b0832715, e as $03deb23ff14920c4$export$4eaf04e54aa8eed6, n as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, L as $c87311424ea30a05$export$186c6964ca17d99, s as $c87311424ea30a05$export$a11b0059900ceec8, b as $c87311424ea30a05$export$fedb369cb70207f1 } from "./useHover-Bycb7BsD.js";
|
|
2
2
|
import { a as $9446cca9a3875146$export$cb6e0bb50bc19463, $ as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./number-7sOvrqo0.js";
|
|
3
|
-
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, b as $e5be200c675c3b3a$export$a763b9476acd3eb } from "./useFormValidation-
|
|
3
|
+
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, b as $e5be200c675c3b3a$export$a763b9476acd3eb } from "./useFormValidation-DQeXkyLm.js";
|
|
4
4
|
import { $ as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 } from "./NumberFormatter-DA8u1Ot7.js";
|
|
5
5
|
import { useCallback, useEffect, useRef, useState, useMemo } from "react";
|
|
6
|
-
import {
|
|
6
|
+
import { c as $8ae05eaa5c114e9c$export$7f54fc3180508a52, a as $3ef42575df84b30b$export$9d1611c77c2fe928, b as $bdb11010cef70236$export$f680877a34711e37, o as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./utils-DGpXyJOJ.js";
|
|
7
7
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-D2C6R0DK.js";
|
|
8
|
-
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-
|
|
9
|
-
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusRing-
|
|
10
|
-
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-
|
|
11
|
-
import { d as $2d73ec29415bd339$export$712718f7aec83d5 } from "./Input-
|
|
12
|
-
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-
|
|
13
|
-
import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "./useNumberFormatter-
|
|
14
|
-
import { d as $319e236875307eab$export$d10ae4f68404609a, c as $319e236875307eab$export$a9b970dcc4ae71a9 } from "./Button-
|
|
8
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-WUv2PdFO.js";
|
|
9
|
+
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusRing-D3b7Kh4P.js";
|
|
10
|
+
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-BD7Olibq.js";
|
|
11
|
+
import { d as $2d73ec29415bd339$export$712718f7aec83d5 } from "./Input-CNNksOWg.js";
|
|
12
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-NETP-8H8.js";
|
|
13
|
+
import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "./useNumberFormatter-DGvuRCn7.js";
|
|
14
|
+
import { d as $319e236875307eab$export$d10ae4f68404609a, c as $319e236875307eab$export$a9b970dcc4ae71a9 } from "./Button-BXjXzdW_.js";
|
|
15
15
|
const $6c7bd7858deea686$var$CURRENCY_SIGN_REGEX = new RegExp("^.*\\(.*\\).*$");
|
|
16
16
|
const $6c7bd7858deea686$var$NUMBERING_SYSTEMS = [
|
|
17
17
|
"latn",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
1
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-BQvmiUqb.js";
|
|
2
2
|
import { $ as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 } from "./NumberFormatter-DA8u1Ot7.js";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
function $a916eb452884faea$export$b7a616150fdb9f44(options = {}) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { D as $c87311424ea30a05$export$b7d78993b74f766d, C as $c87311424ea30a05$export$78551043582a6a98, B as $c87311424ea30a05$export$9ac100e40613ea10, E as $c87311424ea30a05$export$7bef049ce92e4224, z as $7215afc6de606d6b$export$de79e2c695e052f3, e as $03deb23ff14920c4$export$4eaf04e54aa8eed6, j as $8a9cb279dc87e130$export$c2b7abe5d61ec696, k as $8a9cb279dc87e130$export$525bc4921d56d4a, i as $d4ee10de306f2510$export$4282f70798064fe0, h as $d4ee10de306f2510$export$e58f029f0fbfdb29, F as $6a7db85432448f7f$export$29bf1b5f2c56cf63, c as $431fbd86ca7dc216$export$b204af158042fbac, G as $8a9cb279dc87e130$export$cabe61c495ee3649, H as $6a7db85432448f7f$export$60278871457622de, x as $431fbd86ca7dc216$export$f21a1ffae260145a, I as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./useHover-
|
|
2
|
-
import { $ as $14c0b72509d70225$export$b0d6fa1ab32e3295, a as $14c0b72509d70225$export$16a4697467175487 } from "./textSelection-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { r as reactDomExports } from "./index-
|
|
1
|
+
import { D as $c87311424ea30a05$export$b7d78993b74f766d, C as $c87311424ea30a05$export$78551043582a6a98, B as $c87311424ea30a05$export$9ac100e40613ea10, E as $c87311424ea30a05$export$7bef049ce92e4224, z as $7215afc6de606d6b$export$de79e2c695e052f3, e as $03deb23ff14920c4$export$4eaf04e54aa8eed6, j as $8a9cb279dc87e130$export$c2b7abe5d61ec696, k as $8a9cb279dc87e130$export$525bc4921d56d4a, i as $d4ee10de306f2510$export$4282f70798064fe0, h as $d4ee10de306f2510$export$e58f029f0fbfdb29, F as $6a7db85432448f7f$export$29bf1b5f2c56cf63, c as $431fbd86ca7dc216$export$b204af158042fbac, G as $8a9cb279dc87e130$export$cabe61c495ee3649, H as $6a7db85432448f7f$export$60278871457622de, x as $431fbd86ca7dc216$export$f21a1ffae260145a, I as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./useHover-Bycb7BsD.js";
|
|
2
|
+
import { $ as $14c0b72509d70225$export$b0d6fa1ab32e3295, a as $14c0b72509d70225$export$16a4697467175487 } from "./textSelection-CwHUtNVX.js";
|
|
3
|
+
import $dbSRa$react__default, { useContext, createContext, useState, useRef, useMemo, useEffect } from "react";
|
|
4
|
+
import { c as $8ae05eaa5c114e9c$export$7f54fc3180508a52, a as $3ef42575df84b30b$export$9d1611c77c2fe928, o as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./utils-DGpXyJOJ.js";
|
|
5
|
+
import { r as reactDomExports } from "./index-oFgxU4zs.js";
|
|
6
6
|
const $ea8dcbcb9ea1b556$var$RouterContext = /* @__PURE__ */ createContext({
|
|
7
7
|
isNative: true,
|
|
8
8
|
open: $ea8dcbcb9ea1b556$var$openSyntheticLink,
|
|
@@ -92,7 +92,7 @@ function _class_private_field_init(obj, privateMap, value) {
|
|
|
92
92
|
_check_private_redeclaration(obj, privateMap);
|
|
93
93
|
privateMap.set(obj, value);
|
|
94
94
|
}
|
|
95
|
-
const $ae1eeba8b9eafd08$export$5165eccb35aaadb5 =
|
|
95
|
+
const $ae1eeba8b9eafd08$export$5165eccb35aaadb5 = $dbSRa$react__default.createContext({
|
|
96
96
|
register: () => {
|
|
97
97
|
}
|
|
98
98
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "./useListState-
|
|
2
|
-
import { a as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-
|
|
1
|
+
import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "./useListState-ZKhRO8ML.js";
|
|
2
|
+
import { a as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-Bycb7BsD.js";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
function $a0d645289fe9b86b$export$e7f05e985daf4b5f(props) {
|
|
5
5
|
var _props_defaultSelectedKey;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-DGpXyJOJ.js";
|
|
2
2
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-D2C6R0DK.js";
|
|
3
|
-
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-
|
|
4
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-
|
|
5
|
-
import { $ as $f645667febf57a63$export$4c014de7c8940b4c } from "./useHover-
|
|
3
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-WUv2PdFO.js";
|
|
4
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-B8OteQMu.js";
|
|
5
|
+
import { $ as $f645667febf57a63$export$4c014de7c8940b4c } from "./useHover-Bycb7BsD.js";
|
|
6
6
|
function $d2c8e2b0480f3f34$export$cbe85ee05b554577(props, state, ref) {
|
|
7
7
|
let { isDisabled = false, isReadOnly = false, value, name, form, children, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, validationState = "valid", isInvalid, onPressStart, onPressEnd, onPressChange, onPress, onPressUp, onClick } = props;
|
|
8
8
|
let onChange = (e) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-
|
|
1
|
+
import { a as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-Bycb7BsD.js";
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
function $3017fa7ffdddec74$export$8042c6c013fd5226(props = {}) {
|
|
4
4
|
let { isReadOnly } = props;
|
package/dist/utilities/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { arrayMoveMultiple, fixIds } from "./array-helpers.js";
|
|
|
2
2
|
import { camelCase, has, isEmpty, isEqual, isObject, isPlainObject, isString, kebabCase, lowerFirst, pascalCase, snakeCase, upperFirst } from "./es-dash.js";
|
|
3
3
|
import { truncate, truncateEnd, truncateMiddle, unescapeHTML } from "./text-helpers.js";
|
|
4
4
|
import { debounce, throttle } from "./debounce-throttle.js";
|
|
5
|
-
import { a, b, d, c, g, i } from "../general-
|
|
5
|
+
import { a, b, d, c, g, i } from "../general-B6pOveVp.js";
|
|
6
6
|
import { c as c2 } from "../lite-DVmmD_-j.js";
|
|
7
7
|
import { cyrb64Hash, simpleHash } from "./hash.js";
|
|
8
8
|
export {
|