@eightshift/ui-components 6.0.6 → 6.0.9
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-BXjXzdW_.js → Button-JRIu2BnS.js} +8 -8
- package/dist/{Dialog-D8bjn-nh.js → Dialog-Dd1yqNus.js} +31 -27
- package/dist/{FieldError-DwBG6m1U.js → FieldError-DmVwL6Dj.js} +2 -2
- package/dist/{FocusScope-BMk5oZCk.js → FocusScope-Dri1oBcH.js} +2 -2
- package/dist/{Heading-BmRX4BRL.js → Heading-eA6LXIKB.js} +1 -1
- package/dist/{Input-CNNksOWg.js → Input-Cuw9UbNb.js} +14 -24
- package/dist/{Label-D8a3eYb-.js → Label-DPWyf-gp.js} +1 -1
- package/dist/{List-BGHOoFf0.js → List-CWheI3JH.js} +1 -1
- package/dist/{ListBox-Dd37zMvs.js → ListBox-DT1sFY3e.js} +17 -16
- package/dist/{OverlayArrow-DokC40S3.js → OverlayArrow-DVJTTfZM.js} +67 -123
- package/dist/{RadioGroup-BVFvITWO.js → RadioGroup-Cp5cdBI_.js} +14 -14
- package/dist/{SearchField-CHYnN-jt.js → SearchField-CLhr5PGZ.js} +44 -37
- package/dist/{SelectionManager-N8X7T_4D.js → SelectionManager-DbBiF5M8.js} +41 -68
- package/dist/{SharedElementTransition-BDT84GtD.js → SharedElementTransition-B_vnQ1uR.js} +1 -1
- package/dist/{Slider-CL5CM9S8.js → Slider-CZV3HhHY.js} +119 -83
- package/dist/{Text-ztX6G1zR.js → Text-Dae33gHp.js} +1 -1
- package/dist/{VisuallyHidden-DTUuKFiI.js → VisuallyHidden-eaCBtXhE.js} +2 -2
- package/dist/animation-DY7CNkr6.js +67 -0
- package/dist/assets/style-admin.css +38 -45
- package/dist/assets/style-editor.css +38 -45
- package/dist/assets/style.css +38 -45
- package/dist/assets/wp-overrides/allow-full-width-blocks.css +1 -1
- package/dist/assets/wp-overrides/fix-label-text-case.css +1 -1
- package/dist/assets/wp-overrides/increase-sidebar-width.css +1 -1
- package/dist/assets/wp-overrides/make-block-messages-nicer.css +1 -1
- package/dist/assets/wp-overrides/replace-fonts.css +1 -1
- package/dist/assets/wp-overrides/restyle-tooltips.css +1 -1
- package/dist/assets/wp-overrides/round-corners.css +1 -1
- package/dist/assets/wp-overrides/unify-button-sizes.css +1 -1
- package/dist/{color-swatch-BEBLRxTy.js → color-swatch-CZj0jHZd.js} +4 -4
- package/dist/components/animated-visibility/animated-visibility.js +2 -2
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/button/button.js +5 -5
- package/dist/components/checkbox/checkbox.js +10 -10
- package/dist/components/color-pickers/color-picker.js +1 -1
- package/dist/components/color-pickers/color-swatch.js +1 -1
- package/dist/components/color-pickers/gradient-editor.js +2 -2
- package/dist/components/color-pickers/solid-color-picker.js +17 -17
- package/dist/components/draggable/draggable.js +43 -44
- package/dist/components/draggable-list/draggable-list.js +11 -16
- package/dist/components/expandable/expandable.js +13 -12
- package/dist/components/index.js +1 -1
- package/dist/components/input-field/input-field.js +8 -8
- package/dist/components/link-input/link-input.js +25 -25
- package/dist/components/matrix-align/matrix-align.js +1 -1
- package/dist/components/menu/menu.js +1 -1
- package/dist/components/modal/modal.js +19 -12
- package/dist/components/number-picker/number-picker.js +9 -9
- package/dist/components/options-panel/options-panel.js +1 -1
- package/dist/components/popover/popover.js +5 -5
- package/dist/components/radio/radio.js +2 -2
- package/dist/components/repeater/repeater-item.js +3 -2
- package/dist/components/repeater/repeater.js +23 -23
- package/dist/components/responsive/mini-responsive.js +1 -1
- package/dist/components/select/async-multi-select.js +10 -10
- package/dist/components/select/async-select.js +10 -10
- package/dist/components/select/multi-select.js +10 -10
- package/dist/components/select/shared.js +3 -3
- package/dist/components/select/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/smart-image/smart-image.js +1 -1
- package/dist/components/smart-image/worker-inline.js +1 -1
- package/dist/components/tabs/tabs.js +36 -17
- package/dist/components/toggle/switch.js +7 -7
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +6 -6
- package/dist/components/tooltip/tooltip.js +10 -8
- package/dist/{context-BQvmiUqb.js → context-DYYO3Ns3.js} +9 -6
- package/dist/{filterDOMProps-D2C6R0DK.js → filterDOMProps-eGTqWSTd.js} +1 -1
- package/dist/{general-ChNQK6O9.js → general-C8Q0dvEx.js} +15 -14
- package/dist/{index-oFgxU4zs.js → index-sSixe2j_.js} +20 -20
- package/dist/index.js +1 -1
- package/dist/{proxy-DkQpcQgI.js → proxy-Bj4KTTJt.js} +190 -119
- package/dist/{shared-DOxXagm0.js → shared-Bg9lx3pE.js} +20 -20
- package/dist/{textSelection-CwHUtNVX.js → textSelection-Cq_Br7RW.js} +1 -1
- package/dist/{useAsyncList-D52mQcrH.js → useAsyncList-DsZvQXls.js} +5 -2
- package/dist/{useButton-DdZrS1Kz.js → useButton-CeuyDay5.js} +4 -4
- package/dist/{useEvent-BD7Olibq.js → useEvent-DoWvho2u.js} +2 -3
- package/dist/{useFilter-bhxeEDg8.js → useFilter-DYtfYPua.js} +1 -1
- package/dist/{useFocusRing-D3b7Kh4P.js → useFocusRing-WEswknAY.js} +1 -1
- package/dist/{useFormReset-WUv2PdFO.js → useFormReset-BDF1K4E4.js} +2 -3
- package/dist/{useFormValidation-DQeXkyLm.js → useFormValidation-Dqzjv4jX.js} +2 -5
- package/dist/{useHover-Bycb7BsD.js → useHover-CG39Ci3A.js} +164 -66
- package/dist/{useLabel-Bnv4-T24.js → useLabel--3fT2XKM.js} +2 -2
- package/dist/{useLabels-B49ptFDX.js → useLabels-vzdDMGCX.js} +1 -1
- package/dist/{useListState-ZKhRO8ML.js → useListState-Bya9g7W8.js} +1 -1
- package/dist/{useLocalizedStringFormatter-NETP-8H8.js → useLocalizedStringFormatter-M3L6Ge2c.js} +3 -3
- package/dist/{useNumberField-D2fUHql3.js → useNumberField-D6lsi3Vu.js} +91 -24
- package/dist/{useNumberFormatter-DGvuRCn7.js → useNumberFormatter-BWOyCamK.js} +1 -1
- package/dist/{usePress-B8OteQMu.js → usePress-B9w0X4Ur.js} +168 -180
- package/dist/{useSingleSelectListState-BBTu4shO.js → useSingleSelectListState-D9SqGLJ0.js} +2 -2
- package/dist/{useToggle-BZhaYwZl.js → useToggle-Deq2xxQV.js} +5 -5
- package/dist/{useToggleState-VkXJjsru.js → useToggleState-j3o1PvdS.js} +1 -1
- package/dist/utilities/general.js +1 -1
- package/dist/utilities/index.js +1 -1
- package/dist/{utils-DGpXyJOJ.js → utils-HC9_3Crc.js} +20 -31
- package/dist/workers/image-analysis.worker.js +1 -1
- package/package.json +19 -19
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { j as $a11501f3d1d39e6c$export$ea8f71083e90600f, k as $49c51c25361d4cd2$export$ee0f7cc6afcd1c18, l as $337b884510726a0d$export$14c98a7594375490, m as $5e3802645cc19319$export$1c3ebcada18427bf, n as $de32f1b87079253c$export$d2f961adcb0afbe, o as $86ea4cb521eb2e37$export$2317d149ed6f78c4, p as $337b884510726a0d$export$c6fdb837b070b4ff, h as $de32f1b87079253c$export$2e1e1122cf0cba88, g as $de32f1b87079253c$export$3ddf2d174ce01153 } from "../../Dialog-
|
|
3
|
-
import { $ as $5cb03073d3f54797$export$a8a3e93435678ff9 } from "../../Heading-
|
|
4
|
-
import {
|
|
5
|
-
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-
|
|
6
|
-
import { c as $21f1aa98acb08317$export$c57958e35f31ed73, d as $cc38e7bd3fc7b213$export$2bb74740c4e19def } from "../../SelectionManager-
|
|
2
|
+
import { j as $a11501f3d1d39e6c$export$ea8f71083e90600f, k as $49c51c25361d4cd2$export$ee0f7cc6afcd1c18, l as $337b884510726a0d$export$14c98a7594375490, m as $5e3802645cc19319$export$1c3ebcada18427bf, n as $de32f1b87079253c$export$d2f961adcb0afbe, o as $86ea4cb521eb2e37$export$2317d149ed6f78c4, p as $337b884510726a0d$export$c6fdb837b070b4ff, h as $de32f1b87079253c$export$2e1e1122cf0cba88, g as $de32f1b87079253c$export$3ddf2d174ce01153 } from "../../Dialog-Dd1yqNus.js";
|
|
3
|
+
import { $ as $5cb03073d3f54797$export$a8a3e93435678ff9 } from "../../Heading-eA6LXIKB.js";
|
|
4
|
+
import { l as $b5e257d569688ac6$export$535bd6ca7f90a273, a as $3ef42575df84b30b$export$9d1611c77c2fe928, $ as $64fa3d84918910a7$export$29f1550f4b0d4415, j as $df56164dff5785e2$export$4338b53315abf666, k as $5dc95899b306f630$export$c9058316764c140e, g as $64fa3d84918910a7$export$4d86445c2cf5e3, h as $64fa3d84918910a7$export$2881499e37b75b9a } from "../../utils-HC9_3Crc.js";
|
|
5
|
+
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-eGTqWSTd.js";
|
|
6
|
+
import { c as $21f1aa98acb08317$export$c57958e35f31ed73, d as $cc38e7bd3fc7b213$export$2bb74740c4e19def } from "../../SelectionManager-DbBiF5M8.js";
|
|
7
7
|
import $dbSRa$react__default, { useState, useEffect, forwardRef, useContext, createContext, useRef, useMemo } from "react";
|
|
8
|
-
import { $ as $
|
|
8
|
+
import { $ as $d3f049242431219c$export$45fda7c47f93fd48, a as $d3f049242431219c$export$6d3443f2c48bfc20 } from "../../animation-DY7CNkr6.js";
|
|
9
|
+
import { $ as $fc909762b330b746$export$61c6a8c84e605fb6 } from "../../OverlayArrow-DVJTTfZM.js";
|
|
9
10
|
import { Button } from "../button/button.js";
|
|
10
11
|
import { _ as __ } from "../../default-i18n-CnQeC5Pl.js";
|
|
11
12
|
import { c as clsx } from "../../clsx-DgYk2OaC.js";
|
|
@@ -268,6 +269,9 @@ function $f3f84453ead64de5$var$ModalContent(props) {
|
|
|
268
269
|
* @param {string} [props.contentContainerClassName] - Classes to pass to the modal content container.
|
|
269
270
|
* @param {Function} [props.shouldCloseOnInteractOutside=() => true] - Allows ignoring close events for certain elements. `(element: HTMLElement) => boolean`.
|
|
270
271
|
* @param {Function} [props.onOpenChange] - Function called when the modal's open state changes. `(isOpen: boolean) => void`
|
|
272
|
+
* @param {ModalWidth} [props.width='default'] - Determines the modal width.
|
|
273
|
+
*
|
|
274
|
+
* @typedef {'default' | 'wide'} ModalWidth
|
|
271
275
|
*
|
|
272
276
|
* @returns {JSX.Element} The Modal component.
|
|
273
277
|
*
|
|
@@ -316,6 +320,7 @@ const ModalInternal = (props) => {
|
|
|
316
320
|
actionsClassName,
|
|
317
321
|
overlayClassName,
|
|
318
322
|
contentContainerClassName,
|
|
323
|
+
width = "default",
|
|
319
324
|
...rest
|
|
320
325
|
} = props;
|
|
321
326
|
return /* @__PURE__ */ jsx(
|
|
@@ -328,7 +333,7 @@ const ModalInternal = (props) => {
|
|
|
328
333
|
onOpenChange,
|
|
329
334
|
isKeyboardDismissDisabled: noKeyboardDismiss,
|
|
330
335
|
className: ({ isEntering, isExiting }) => clsx(
|
|
331
|
-
"es:fixed es:inset-0 es:z-9999 es:flex es:min-h-full es:items-center es:justify-center es:overflow-
|
|
336
|
+
"es:fixed es:inset-0 es:z-9999 es:flex es:min-h-full es:items-center es:justify-center es:overflow-hidden es:p-4",
|
|
332
337
|
!noBackdrop && "es:bg-accent-950/20 es:backdrop-blur-xs",
|
|
333
338
|
isEntering && "es:motion-opacity-in es:motion-duration-150",
|
|
334
339
|
isExiting && "es:motion-opacity-out es:motion-duration-150",
|
|
@@ -339,9 +344,11 @@ const ModalInternal = (props) => {
|
|
|
339
344
|
$f3f84453ead64de5$export$2b77a92f1a5ad772,
|
|
340
345
|
{
|
|
341
346
|
className: ({ isEntering, isExiting }) => clsx(
|
|
342
|
-
"es:w-full es:
|
|
343
|
-
|
|
344
|
-
|
|
347
|
+
"es:w-full es:overflow-y-hidden es:rounded-3xl es:inset-ring es:inset-ring-surface-400/30 es:bg-white es:bg-linear-to-b es:from-accent-300/3 es:to-accent-300/1 es:text-left es:align-middle es:shadow-xl es:text-surface-900",
|
|
348
|
+
width === "default" && "es:max-w-lg",
|
|
349
|
+
width === "wide" && "es:max-w-[80vw]",
|
|
350
|
+
isEntering && "es:motion-scale-in-95 es:motion-fade-in es:motion-translate-y-in-[2rem] es:motion-duration-300 es:motion-ease-spring-smooth/scale",
|
|
351
|
+
isExiting && "es:motion-scale-out-95 es:motion-fade-out es:motion-translate-y-out-[2rem] es:motion-duration-250 es:motion-ease-spring-smooth/scale",
|
|
345
352
|
className
|
|
346
353
|
),
|
|
347
354
|
children: /* @__PURE__ */ jsx(
|
|
@@ -350,7 +357,7 @@ const ModalInternal = (props) => {
|
|
|
350
357
|
className: clsx("es:relative es:text-sm es:outline-hidden", (!title || headerActions) && "es:pt-8"),
|
|
351
358
|
"aria-label": ariaLabel,
|
|
352
359
|
children: ({ close }) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
353
|
-
/* @__PURE__ */ jsxs(HStack, { className: clsx(title && "es:
|
|
360
|
+
/* @__PURE__ */ jsxs(HStack, { className: clsx(title && "es:p-6 es:pb-3 es:justify-between", headerClassName), children: [
|
|
354
361
|
title && /* @__PURE__ */ jsx(
|
|
355
362
|
$5cb03073d3f54797$export$a8a3e93435678ff9,
|
|
356
363
|
{
|
|
@@ -375,7 +382,7 @@ const ModalInternal = (props) => {
|
|
|
375
382
|
)
|
|
376
383
|
] })
|
|
377
384
|
] }),
|
|
378
|
-
children && /* @__PURE__ */ jsx("div", { className: clsx("es:
|
|
385
|
+
children && /* @__PURE__ */ jsx("div", { className: clsx("es:px-6 es:space-y-2.5 es:overflow-y-auto es:max-h-[70vh]", !actions && "es:mb-6", contentContainerClassName), children }),
|
|
379
386
|
actions && /* @__PURE__ */ jsx(HStack, { className: clsx("es:justify-end es:px-6 es:py-4", actionsClassName), children: actions })
|
|
380
387
|
] })
|
|
381
388
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import $dbSRa$react__default, { forwardRef, createContext, useRef } from "react";
|
|
3
3
|
import "../../default-i18n-CnQeC5Pl.js";
|
|
4
|
-
import { a as $a049562f99e7db0e$export$f9c6924e160136d1, b as $3985021b0ad6602f$export$37fb8590cf2c088c, c as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4, $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-
|
|
5
|
-
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-
|
|
6
|
-
import { a as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "../../Button-
|
|
7
|
-
import { $ as $64fa3d84918910a7$export$29f1550f4b0d4415, d as $64fa3d84918910a7$export$fabf2dc03a41866e, e as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, f as $64fa3d84918910a7$export$ef03459518577ad4, g as $64fa3d84918910a7$export$4d86445c2cf5e3, h as $64fa3d84918910a7$export$2881499e37b75b9a } from "../../utils-
|
|
8
|
-
import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-
|
|
4
|
+
import { a as $a049562f99e7db0e$export$f9c6924e160136d1, b as $3985021b0ad6602f$export$37fb8590cf2c088c, c as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4, $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-Cuw9UbNb.js";
|
|
5
|
+
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-DPWyf-gp.js";
|
|
6
|
+
import { a as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "../../Button-JRIu2BnS.js";
|
|
7
|
+
import { $ as $64fa3d84918910a7$export$29f1550f4b0d4415, d as $64fa3d84918910a7$export$fabf2dc03a41866e, e as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, f as $64fa3d84918910a7$export$ef03459518577ad4, g as $64fa3d84918910a7$export$4d86445c2cf5e3, h as $64fa3d84918910a7$export$2881499e37b75b9a } from "../../utils-HC9_3Crc.js";
|
|
8
|
+
import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-DmVwL6Dj.js";
|
|
9
9
|
import { $ as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "../../Form-Cq3fu75_.js";
|
|
10
|
-
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-
|
|
11
|
-
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-
|
|
12
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-
|
|
13
|
-
import { $ as $de67e98908f0c6ee$export$7f629e9dc1ecf37c, a as $81397a9303501bda$export$23f548e970bdf099 } from "../../useNumberField-
|
|
10
|
+
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-Dae33gHp.js";
|
|
11
|
+
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-eGTqWSTd.js";
|
|
12
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-DYYO3Ns3.js";
|
|
13
|
+
import { $ as $de67e98908f0c6ee$export$7f629e9dc1ecf37c, a as $81397a9303501bda$export$23f548e970bdf099 } from "../../useNumberField-D6lsi3Vu.js";
|
|
14
14
|
import { ButtonGroup, Button } from "../button/button.js";
|
|
15
15
|
import { icons } from "../../icons/icons.js";
|
|
16
16
|
import { c as clsx } from "../../clsx-DgYk2OaC.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { c as clsx } from "../../clsx-DgYk2OaC.js";
|
|
3
3
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
4
|
-
import { $ as $5cb03073d3f54797$export$a8a3e93435678ff9 } from "../../Heading-
|
|
4
|
+
import { $ as $5cb03073d3f54797$export$a8a3e93435678ff9 } from "../../Heading-eA6LXIKB.js";
|
|
5
5
|
import { cloneElement } from "react";
|
|
6
6
|
/**
|
|
7
7
|
* Component that provides a container panel for options, with an optional title.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { $ as $07b14b47974efb58$export$5b6b19405a83ff9d, g as $de32f1b87079253c$export$3ddf2d174ce01153, h as $de32f1b87079253c$export$2e1e1122cf0cba88 } from "../../Dialog-
|
|
2
|
+
import { $ as $07b14b47974efb58$export$5b6b19405a83ff9d, g as $de32f1b87079253c$export$3ddf2d174ce01153, h as $de32f1b87079253c$export$2e1e1122cf0cba88 } from "../../Dialog-Dd1yqNus.js";
|
|
3
3
|
import { c as clsx } from "../../clsx-DgYk2OaC.js";
|
|
4
4
|
import { _ as __ } from "../../default-i18n-CnQeC5Pl.js";
|
|
5
5
|
import { Button } from "../button/button.js";
|
|
@@ -108,17 +108,17 @@ const Popover = (props) => {
|
|
|
108
108
|
crossOffset,
|
|
109
109
|
containerPadding,
|
|
110
110
|
className: ({ isEntering, isExiting }) => clsx(
|
|
111
|
-
"es:rounded-2xl es:bg-linear-to-br es:from-surface-50/
|
|
112
|
-
"es:backdrop-blur-
|
|
111
|
+
"es:rounded-2xl es:bg-linear-to-br es:from-surface-50/85 es:to-surface-50/85 es:inset-ring es:inset-ring-surface-500/15 es:shadow-xl es:outline-hidden",
|
|
112
|
+
"es:backdrop-blur-xl es:backdrop-brightness-110 es:backdrop-saturate-125",
|
|
113
113
|
"es:inset-shadow-xs es:inset-shadow-white/50",
|
|
114
114
|
"es:placement-bottom:origin-top-left es:placement-top:origin-bottom-left",
|
|
115
115
|
"es:placement-left:origin-right es:placement-right:origin-left",
|
|
116
116
|
"es:motion-duration-250 es:motion-ease-spring-bouncy",
|
|
117
117
|
isEntering && "es:*:pointer-events-none",
|
|
118
118
|
"es:placement-bottom:origin-top-left es:placement-top:origin-bottom-left",
|
|
119
|
-
isEntering && "es:motion-scale-x-in-95 es:motion-scale-y-in-85 es:motion-opacity-in-0
|
|
119
|
+
isEntering && "es:motion-scale-x-in-95 es:motion-scale-y-in-85 es:motion-opacity-in-0",
|
|
120
120
|
isEntering && "es:placement-top:motion-translate-y-in-[0.5rem] es:placement-bottom:motion-translate-y-in-[-0.5rem]",
|
|
121
|
-
isExiting && "es:motion-scale-x-out-95 es:motion-scale-y-out-85 es:motion-opacity-out-0
|
|
121
|
+
isExiting && "es:motion-scale-x-out-95 es:motion-scale-y-out-85 es:motion-opacity-out-0",
|
|
122
122
|
isExiting && "es:placement-top:motion-translate-y-out-[0.5rem] es:placement-bottom:motion-translate-y-out-[-0.5rem]",
|
|
123
123
|
wrapperClassName
|
|
124
124
|
),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-
|
|
3
|
-
import { a as $b6c3ddc6086f204d$export$d7b12c4107be0d61, $ as $b6c3ddc6086f204d$export$a98f0dcb43a68a25 } from "../../RadioGroup-
|
|
2
|
+
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-DPWyf-gp.js";
|
|
3
|
+
import { a as $b6c3ddc6086f204d$export$d7b12c4107be0d61, $ as $b6c3ddc6086f204d$export$a98f0dcb43a68a25 } from "../../RadioGroup-Cp5cdBI_.js";
|
|
4
4
|
import { c as clsx } from "../../clsx-DgYk2OaC.js";
|
|
5
5
|
import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
|
|
6
6
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
@@ -30,7 +30,7 @@ import { RepeaterContext } from "./repeater-context.js";
|
|
|
30
30
|
*/
|
|
31
31
|
const RepeaterItem = (props) => {
|
|
32
32
|
const { children, icon, label, subtitle, "aria-label": ariaLabel, className, actions, textValue, expandDisabled, menuOptions, noMenuButton, ...rest } = props;
|
|
33
|
-
const { deleteItem, duplicateItem, isDragged, isOutOfBounds,
|
|
33
|
+
const { deleteItem, duplicateItem, isDragged, isOutOfBounds, canDelete, canAdd, allOpen, setAllOpen, setOpenItems, isItemOpen, index, noDuplicateButton } = useContext(RepeaterContext);
|
|
34
34
|
return /* @__PURE__ */ jsx(
|
|
35
35
|
Expandable,
|
|
36
36
|
{
|
|
@@ -49,7 +49,7 @@ const RepeaterItem = (props) => {
|
|
|
49
49
|
if (allOpen && !open) {
|
|
50
50
|
setAllOpen(false);
|
|
51
51
|
}
|
|
52
|
-
setOpenItems((prev) => ({ ...prev, [
|
|
52
|
+
setOpenItems((prev) => ({ ...prev, [index]: open }));
|
|
53
53
|
},
|
|
54
54
|
customOpenButton: ({ open, toggleOpen, tooltip, disabled }) => {
|
|
55
55
|
return /* @__PURE__ */ jsxs("div", { className: "es:flex es:items-center es:gap-px", children: [
|
|
@@ -82,6 +82,7 @@ const RepeaterItem = (props) => {
|
|
|
82
82
|
disabled: !canDelete,
|
|
83
83
|
icon: icons.trash,
|
|
84
84
|
onPress: () => deleteItem(),
|
|
85
|
+
danger: true,
|
|
85
86
|
children: __("Remove", "eightshift-ui-components")
|
|
86
87
|
}
|
|
87
88
|
)
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { useState } from "react";
|
|
3
3
|
import { _ as __ } from "../../default-i18n-CnQeC5Pl.js";
|
|
4
4
|
import { Button } from "../button/button.js";
|
|
5
5
|
import { icons } from "../../icons/icons.js";
|
|
6
6
|
import { BaseControl } from "../base-control/base-control.js";
|
|
7
7
|
import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
|
|
8
8
|
import { RepeaterContext } from "./repeater-context.js";
|
|
9
|
-
import {
|
|
10
|
-
import { L as List, a as arrayRemove, b as arrayMove } from "../../List-BGHOoFf0.js";
|
|
9
|
+
import { L as List, a as arrayRemove, b as arrayMove } from "../../List-CWheI3JH.js";
|
|
11
10
|
import { Menu, MenuItem, MenuSeparator } from "../menu/menu.js";
|
|
11
|
+
import { c as clsx } from "../../clsx-DgYk2OaC.js";
|
|
12
12
|
/**
|
|
13
13
|
* A component that allows re-ordering a list of items with additional sub-options.
|
|
14
14
|
*
|
|
@@ -67,7 +67,6 @@ import { Menu, MenuItem, MenuSeparator } from "../menu/menu.js";
|
|
|
67
67
|
* @preserve
|
|
68
68
|
*/
|
|
69
69
|
const Repeater = (props) => {
|
|
70
|
-
const itemIdBase = `item-${useId().replaceAll(":", "")}`;
|
|
71
70
|
const {
|
|
72
71
|
children,
|
|
73
72
|
onChange,
|
|
@@ -95,7 +94,7 @@ const Repeater = (props) => {
|
|
|
95
94
|
} = props;
|
|
96
95
|
const [allOpen, setAllOpen] = useState(false);
|
|
97
96
|
const [openItems, setOpenItems] = useState({});
|
|
98
|
-
if (typeof
|
|
97
|
+
if (typeof items === "undefined" || items === null || !Array.isArray(items)) {
|
|
99
98
|
console.warn(__("Repeater: 'items' are not an array or are undefined!", "eightshift-ui-components"));
|
|
100
99
|
}
|
|
101
100
|
const canDelete = items.length > (minItems ?? 0);
|
|
@@ -137,7 +136,7 @@ const Repeater = (props) => {
|
|
|
137
136
|
Button,
|
|
138
137
|
{
|
|
139
138
|
onPress: () => {
|
|
140
|
-
const newItem = {
|
|
139
|
+
const newItem = { ...addDefaultItem };
|
|
141
140
|
onChange([...items, newItem]);
|
|
142
141
|
if (onAfterItemAdd) {
|
|
143
142
|
onAfterItemAdd(newItem);
|
|
@@ -145,15 +144,14 @@ const Repeater = (props) => {
|
|
|
145
144
|
},
|
|
146
145
|
size: "small",
|
|
147
146
|
icon: icons.add,
|
|
148
|
-
className:
|
|
147
|
+
className: !hideEmptyState && items.length < 1 && "es:invisible",
|
|
149
148
|
tooltip: __("Add item", "eightshift-ui-components"),
|
|
150
|
-
disabled: addDisabled || !canAdd
|
|
151
|
-
type: "simple"
|
|
149
|
+
disabled: addDisabled || !canAdd
|
|
152
150
|
}
|
|
153
151
|
),
|
|
154
152
|
addButton && /* @__PURE__ */ jsx("div", { className: clsx(!hideEmptyState && items.length < 1 && "es:invisible"), children: addButton({
|
|
155
153
|
addItem: (additional = {}) => {
|
|
156
|
-
const newItem = {
|
|
154
|
+
const newItem = { ...addDefaultItem, ...additional };
|
|
157
155
|
onChange([...items, newItem]);
|
|
158
156
|
if (onAfterItemAdd) {
|
|
159
157
|
onAfterItemAdd(newItem);
|
|
@@ -167,18 +165,16 @@ const Repeater = (props) => {
|
|
|
167
165
|
/* @__PURE__ */ jsx(
|
|
168
166
|
List,
|
|
169
167
|
{
|
|
170
|
-
values: items.map((item) => ({ ...item, disabled: openItems?.[
|
|
168
|
+
values: items.map((item, index) => ({ ...item, disabled: openItems?.[index] })),
|
|
171
169
|
onChange: ({ oldIndex, newIndex }) => onChange(newIndex === -1 ? arrayRemove(items, oldIndex) : arrayMove(items, oldIndex, newIndex)),
|
|
172
170
|
renderList: ({ children: children2, props: props2 }) => {
|
|
173
|
-
const { key, ...rest } = props2;
|
|
174
171
|
return /* @__PURE__ */ jsx(
|
|
175
172
|
"ul",
|
|
176
173
|
{
|
|
177
|
-
className: clsx("es:w-full es:list-none es:m-0! es:flex es:flex-col es:gap-
|
|
178
|
-
...
|
|
174
|
+
className: clsx("es:w-full es:list-none es:m-0! es:flex es:flex-col es:gap-0.75", className),
|
|
175
|
+
...props2,
|
|
179
176
|
children: children2
|
|
180
|
-
}
|
|
181
|
-
key
|
|
177
|
+
}
|
|
182
178
|
);
|
|
183
179
|
},
|
|
184
180
|
renderItem: ({ value: item, index, isDragged, isSelected, isOutOfBounds, props: props2 }) => {
|
|
@@ -195,13 +191,13 @@ const Repeater = (props) => {
|
|
|
195
191
|
...item,
|
|
196
192
|
index,
|
|
197
193
|
deleteItem: () => {
|
|
198
|
-
onChange([...items].filter((i) => i
|
|
194
|
+
onChange([...items].filter((_, i) => i !== index));
|
|
199
195
|
if (onAfterItemRemove) {
|
|
200
196
|
onAfterItemRemove(item);
|
|
201
197
|
}
|
|
202
198
|
},
|
|
203
199
|
duplicateItem: () => {
|
|
204
|
-
const newItem = { ...item
|
|
200
|
+
const newItem = { ...item };
|
|
205
201
|
onChange([...items, newItem]);
|
|
206
202
|
if (onAfterItemAdd) {
|
|
207
203
|
onAfterItemAdd(newItem);
|
|
@@ -215,18 +211,22 @@ const Repeater = (props) => {
|
|
|
215
211
|
allOpen,
|
|
216
212
|
setAllOpen,
|
|
217
213
|
setOpenItems,
|
|
218
|
-
isItemOpen: openItems?.[
|
|
214
|
+
isItemOpen: openItems?.[index] ?? allOpen,
|
|
219
215
|
noDuplicateButton
|
|
220
216
|
},
|
|
221
217
|
children: children({
|
|
222
218
|
...item,
|
|
223
219
|
updateData: (newValue) => {
|
|
224
|
-
const updated = [...items]
|
|
220
|
+
const updated = [...items];
|
|
221
|
+
updated[index] = {
|
|
222
|
+
...updated[index],
|
|
223
|
+
...newValue
|
|
224
|
+
};
|
|
225
225
|
onChange(updated);
|
|
226
226
|
},
|
|
227
227
|
itemIndex: index,
|
|
228
228
|
deleteItem: () => {
|
|
229
|
-
onChange([...items].filter((i) => i
|
|
229
|
+
onChange([...items].filter((_, i) => i !== index));
|
|
230
230
|
if (onAfterItemRemove) {
|
|
231
231
|
onAfterItemRemove(item);
|
|
232
232
|
}
|
|
@@ -248,7 +248,7 @@ const Repeater = (props) => {
|
|
|
248
248
|
Button,
|
|
249
249
|
{
|
|
250
250
|
onPress: () => {
|
|
251
|
-
const newItem = {
|
|
251
|
+
const newItem = { ...addDefaultItem };
|
|
252
252
|
onChange([...items, newItem]);
|
|
253
253
|
if (onAfterItemAdd) {
|
|
254
254
|
onAfterItemAdd(newItem);
|
|
@@ -263,7 +263,7 @@ const Repeater = (props) => {
|
|
|
263
263
|
),
|
|
264
264
|
addButton && !hideEmptyState && addButton({
|
|
265
265
|
addItem: (additional = {}) => {
|
|
266
|
-
const newItem = {
|
|
266
|
+
const newItem = { ...addDefaultItem, ...additional };
|
|
267
267
|
onChange([...items, newItem]);
|
|
268
268
|
if (onAfterItemAdd) {
|
|
269
269
|
onAfterItemAdd(newItem);
|
|
@@ -12,7 +12,7 @@ import { ButtonGroup, Button } from "../button/button.js";
|
|
|
12
12
|
import { BaseControl } from "../base-control/base-control.js";
|
|
13
13
|
import { TriggeredPopover } from "../popover/popover.js";
|
|
14
14
|
import { OptionSelect } from "../option-select/option-select.js";
|
|
15
|
-
import { $ as $514c0188e459b4c0$export$5f1af8db9871e1d6 } from "../../Text-
|
|
15
|
+
import { $ as $514c0188e459b4c0$export$5f1af8db9871e1d6 } from "../../Text-Dae33gHp.js";
|
|
16
16
|
/**
|
|
17
17
|
* A compact, inline version of `Responsive`. Allows the user to set different values for different breakpoints.
|
|
18
18
|
*
|
|
@@ -2,13 +2,13 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { s as sprintf } from "../../sprintf-DmNrJSYG.js";
|
|
3
3
|
import { _ as __, a as _n } from "../../default-i18n-CnQeC5Pl.js";
|
|
4
4
|
import { BaseControl } from "../base-control/base-control.js";
|
|
5
|
-
import { $ as $d2f53cda644affe3$export$2f2b9559550c7bbc, a as $440f4836bcb56932$export$b94867ecbd698f21 } from "../../SearchField-
|
|
6
|
-
import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-
|
|
7
|
-
import { $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-
|
|
8
|
-
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-
|
|
9
|
-
import { $ as $eed445e0843c11d0$export$41f133550aa26f48 } from "../../ListBox-
|
|
10
|
-
import { $ as $07b14b47974efb58$export$5b6b19405a83ff9d } from "../../Dialog-
|
|
11
|
-
import { $ as $82d7e5349645de74$export$ef9b1a59e592288f, a as $82d7e5349645de74$export$e288731fd71264f0, S as SelectClearButton, O as OptionItemBase } from "../../shared-
|
|
5
|
+
import { $ as $d2f53cda644affe3$export$2f2b9559550c7bbc, a as $440f4836bcb56932$export$b94867ecbd698f21 } from "../../SearchField-CLhr5PGZ.js";
|
|
6
|
+
import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-JRIu2BnS.js";
|
|
7
|
+
import { $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-Cuw9UbNb.js";
|
|
8
|
+
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-DPWyf-gp.js";
|
|
9
|
+
import { $ as $eed445e0843c11d0$export$41f133550aa26f48 } from "../../ListBox-DT1sFY3e.js";
|
|
10
|
+
import { $ as $07b14b47974efb58$export$5b6b19405a83ff9d } from "../../Dialog-Dd1yqNus.js";
|
|
11
|
+
import { $ as $82d7e5349645de74$export$ef9b1a59e592288f, a as $82d7e5349645de74$export$e288731fd71264f0, S as SelectClearButton, O as OptionItemBase } from "../../shared-Bg9lx3pE.js";
|
|
12
12
|
import { useRef, cloneElement } from "react";
|
|
13
13
|
import { icons } from "../../icons/icons.js";
|
|
14
14
|
import "../../react-jsx-parser.min-B_hvYYa1.js";
|
|
@@ -21,7 +21,7 @@ import { c as cva } from "../../index-BHpUy2Ix.js";
|
|
|
21
21
|
import { TriggeredPopover } from "../popover/popover.js";
|
|
22
22
|
import { DraggableList } from "../draggable-list/draggable-list.js";
|
|
23
23
|
import { DraggableListItem } from "../draggable-list/draggable-list-item.js";
|
|
24
|
-
import { $ as $f86e6c1ec7da6ebb$export$bc3384a35de93d66 } from "../../useAsyncList-
|
|
24
|
+
import { $ as $f86e6c1ec7da6ebb$export$bc3384a35de93d66 } from "../../useAsyncList-DsZvQXls.js";
|
|
25
25
|
/**
|
|
26
26
|
* Async multi-select menu.
|
|
27
27
|
*
|
|
@@ -415,9 +415,9 @@ const AsyncMultiSelect = (props) => {
|
|
|
415
415
|
"es:transition-plus",
|
|
416
416
|
"es:motion-duration-300 es:motion-ease-spring-bouncy",
|
|
417
417
|
"es:placement-bottom:origin-top-left es:placement-top:origin-bottom-left",
|
|
418
|
-
isEntering && "es:motion-scale-x-in-95 es:motion-scale-y-in-85 es:motion-opacity-in-0
|
|
418
|
+
isEntering && "es:motion-scale-x-in-95 es:motion-scale-y-in-85 es:motion-opacity-in-0",
|
|
419
419
|
isEntering && "es:placement-top:motion-translate-y-in-[0.5rem] es:placement-bottom:motion-translate-y-in-[-0.5rem]",
|
|
420
|
-
isExiting && "es:motion-scale-x-out-95 es:motion-scale-y-out-85 es:motion-opacity-out-0
|
|
420
|
+
isExiting && "es:motion-scale-x-out-95 es:motion-scale-y-out-85 es:motion-opacity-out-0",
|
|
421
421
|
isExiting && "es:placement-top:motion-translate-y-out-[0.5rem] es:placement-bottom:motion-translate-y-out-[-0.5rem]"
|
|
422
422
|
),
|
|
423
423
|
placement: "bottom left",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { _ as __ } from "../../default-i18n-CnQeC5Pl.js";
|
|
3
3
|
import { BaseControl } from "../base-control/base-control.js";
|
|
4
|
-
import { $ as $d2f53cda644affe3$export$2f2b9559550c7bbc, a as $440f4836bcb56932$export$b94867ecbd698f21 } from "../../SearchField-
|
|
5
|
-
import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-
|
|
6
|
-
import { $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-
|
|
7
|
-
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-
|
|
8
|
-
import { $ as $eed445e0843c11d0$export$41f133550aa26f48 } from "../../ListBox-
|
|
9
|
-
import { $ as $07b14b47974efb58$export$5b6b19405a83ff9d } from "../../Dialog-
|
|
10
|
-
import { $ as $82d7e5349645de74$export$ef9b1a59e592288f, a as $82d7e5349645de74$export$e288731fd71264f0, S as SelectClearButton, O as OptionItemBase } from "../../shared-
|
|
4
|
+
import { $ as $d2f53cda644affe3$export$2f2b9559550c7bbc, a as $440f4836bcb56932$export$b94867ecbd698f21 } from "../../SearchField-CLhr5PGZ.js";
|
|
5
|
+
import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-JRIu2BnS.js";
|
|
6
|
+
import { $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-Cuw9UbNb.js";
|
|
7
|
+
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-DPWyf-gp.js";
|
|
8
|
+
import { $ as $eed445e0843c11d0$export$41f133550aa26f48 } from "../../ListBox-DT1sFY3e.js";
|
|
9
|
+
import { $ as $07b14b47974efb58$export$5b6b19405a83ff9d } from "../../Dialog-Dd1yqNus.js";
|
|
10
|
+
import { $ as $82d7e5349645de74$export$ef9b1a59e592288f, a as $82d7e5349645de74$export$e288731fd71264f0, S as SelectClearButton, O as OptionItemBase } from "../../shared-Bg9lx3pE.js";
|
|
11
11
|
import { useRef, cloneElement } from "react";
|
|
12
12
|
import { icons } from "../../icons/icons.js";
|
|
13
13
|
import "../../react-jsx-parser.min-B_hvYYa1.js";
|
|
@@ -17,7 +17,7 @@ import { unescapeHTML } from "../../utilities/text-helpers.js";
|
|
|
17
17
|
import { randomId } from "../../utilities/hash.js";
|
|
18
18
|
import { c as clsx } from "../../clsx-DgYk2OaC.js";
|
|
19
19
|
import { c as cva } from "../../index-BHpUy2Ix.js";
|
|
20
|
-
import { $ as $f86e6c1ec7da6ebb$export$bc3384a35de93d66 } from "../../useAsyncList-
|
|
20
|
+
import { $ as $f86e6c1ec7da6ebb$export$bc3384a35de93d66 } from "../../useAsyncList-DsZvQXls.js";
|
|
21
21
|
/**
|
|
22
22
|
* Select menu with async loading.
|
|
23
23
|
*
|
|
@@ -337,9 +337,9 @@ const AsyncSelect = (props) => {
|
|
|
337
337
|
"es:transition-plus",
|
|
338
338
|
"es:motion-duration-300 es:motion-ease-spring-bouncy",
|
|
339
339
|
"es:placement-bottom:origin-top-left es:placement-top:origin-bottom-left",
|
|
340
|
-
isEntering && "es:motion-scale-x-in-95 es:motion-scale-y-in-85 es:motion-opacity-in-0
|
|
340
|
+
isEntering && "es:motion-scale-x-in-95 es:motion-scale-y-in-85 es:motion-opacity-in-0",
|
|
341
341
|
isEntering && "es:placement-top:motion-translate-y-in-[0.5rem] es:placement-bottom:motion-translate-y-in-[-0.5rem]",
|
|
342
|
-
isExiting && "es:motion-scale-x-out-95 es:motion-scale-y-out-85 es:motion-opacity-out-0
|
|
342
|
+
isExiting && "es:motion-scale-x-out-95 es:motion-scale-y-out-85 es:motion-opacity-out-0",
|
|
343
343
|
isExiting && "es:placement-top:motion-translate-y-out-[0.5rem] es:placement-bottom:motion-translate-y-out-[-0.5rem]"
|
|
344
344
|
),
|
|
345
345
|
placement: "bottom left",
|
|
@@ -2,13 +2,13 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { s as sprintf } from "../../sprintf-DmNrJSYG.js";
|
|
3
3
|
import { _ as __, a as _n } from "../../default-i18n-CnQeC5Pl.js";
|
|
4
4
|
import { BaseControl } from "../base-control/base-control.js";
|
|
5
|
-
import { $ as $d2f53cda644affe3$export$2f2b9559550c7bbc, a as $440f4836bcb56932$export$b94867ecbd698f21 } from "../../SearchField-
|
|
6
|
-
import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-
|
|
7
|
-
import { $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-
|
|
8
|
-
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-
|
|
9
|
-
import { $ as $eed445e0843c11d0$export$41f133550aa26f48 } from "../../ListBox-
|
|
10
|
-
import { $ as $07b14b47974efb58$export$5b6b19405a83ff9d } from "../../Dialog-
|
|
11
|
-
import { g as getValue, $ as $82d7e5349645de74$export$ef9b1a59e592288f, a as $82d7e5349645de74$export$e288731fd71264f0, S as SelectClearButton, O as OptionItemBase } from "../../shared-
|
|
5
|
+
import { $ as $d2f53cda644affe3$export$2f2b9559550c7bbc, a as $440f4836bcb56932$export$b94867ecbd698f21 } from "../../SearchField-CLhr5PGZ.js";
|
|
6
|
+
import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-JRIu2BnS.js";
|
|
7
|
+
import { $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-Cuw9UbNb.js";
|
|
8
|
+
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-DPWyf-gp.js";
|
|
9
|
+
import { $ as $eed445e0843c11d0$export$41f133550aa26f48 } from "../../ListBox-DT1sFY3e.js";
|
|
10
|
+
import { $ as $07b14b47974efb58$export$5b6b19405a83ff9d } from "../../Dialog-Dd1yqNus.js";
|
|
11
|
+
import { g as getValue, $ as $82d7e5349645de74$export$ef9b1a59e592288f, a as $82d7e5349645de74$export$e288731fd71264f0, S as SelectClearButton, O as OptionItemBase } from "../../shared-Bg9lx3pE.js";
|
|
12
12
|
import { useRef, cloneElement, isValidElement } from "react";
|
|
13
13
|
import { icons } from "../../icons/icons.js";
|
|
14
14
|
import "../../react-jsx-parser.min-B_hvYYa1.js";
|
|
@@ -19,7 +19,7 @@ import { TriggeredPopover } from "../popover/popover.js";
|
|
|
19
19
|
import { DraggableList } from "../draggable-list/draggable-list.js";
|
|
20
20
|
import { DraggableListItem } from "../draggable-list/draggable-list-item.js";
|
|
21
21
|
import { randomId } from "../../utilities/hash.js";
|
|
22
|
-
import { $ as $bb77f239b46e8c72$export$3274cf84b703fff } from "../../useFilter-
|
|
22
|
+
import { $ as $bb77f239b46e8c72$export$3274cf84b703fff } from "../../useFilter-DYtfYPua.js";
|
|
23
23
|
/**
|
|
24
24
|
* Multi-select menu.
|
|
25
25
|
*
|
|
@@ -366,9 +366,9 @@ const MultiSelect = (props) => {
|
|
|
366
366
|
"es:transition-plus",
|
|
367
367
|
"es:motion-duration-300 es:motion-ease-spring-bouncy",
|
|
368
368
|
"es:placement-bottom:origin-top-left es:placement-top:origin-bottom-left",
|
|
369
|
-
isEntering && "es:motion-scale-x-in-95 es:motion-scale-y-in-85 es:motion-opacity-in-0
|
|
369
|
+
isEntering && "es:motion-scale-x-in-95 es:motion-scale-y-in-85 es:motion-opacity-in-0",
|
|
370
370
|
isEntering && "es:placement-top:motion-translate-y-in-[0.5rem] es:placement-bottom:motion-translate-y-in-[-0.5rem]",
|
|
371
|
-
isExiting && "es:motion-scale-x-out-95 es:motion-scale-y-out-85 es:motion-opacity-out-0
|
|
371
|
+
isExiting && "es:motion-scale-x-out-95 es:motion-scale-y-out-85 es:motion-opacity-out-0",
|
|
372
372
|
isExiting && "es:placement-top:motion-translate-y-out-[0.5rem] es:placement-bottom:motion-translate-y-out-[-0.5rem]"
|
|
373
373
|
),
|
|
374
374
|
placement: "bottom left",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../../default-i18n-CnQeC5Pl.js";
|
|
3
|
-
import "../../Button-
|
|
4
|
-
import "../../ListBox-
|
|
5
|
-
import { O, S, g, m } from "../../shared-
|
|
3
|
+
import "../../Button-JRIu2BnS.js";
|
|
4
|
+
import "../../ListBox-DT1sFY3e.js";
|
|
5
|
+
import { O, S, g, m } from "../../shared-Bg9lx3pE.js";
|
|
6
6
|
import "../../icons/icons.js";
|
|
7
7
|
import "react";
|
|
8
8
|
import "../../react-jsx-parser.min-B_hvYYa1.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { _ as __ } from "../../default-i18n-CnQeC5Pl.js";
|
|
3
3
|
import { BaseControl } from "../base-control/base-control.js";
|
|
4
|
-
import { $ as $d2f53cda644affe3$export$2f2b9559550c7bbc, a as $440f4836bcb56932$export$b94867ecbd698f21 } from "../../SearchField-
|
|
5
|
-
import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-
|
|
6
|
-
import { $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-
|
|
7
|
-
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-
|
|
8
|
-
import { $ as $eed445e0843c11d0$export$41f133550aa26f48 } from "../../ListBox-
|
|
9
|
-
import { $ as $07b14b47974efb58$export$5b6b19405a83ff9d } from "../../Dialog-
|
|
10
|
-
import { $ as $82d7e5349645de74$export$ef9b1a59e592288f, a as $82d7e5349645de74$export$e288731fd71264f0, S as SelectClearButton, O as OptionItemBase } from "../../shared-
|
|
4
|
+
import { $ as $d2f53cda644affe3$export$2f2b9559550c7bbc, a as $440f4836bcb56932$export$b94867ecbd698f21 } from "../../SearchField-CLhr5PGZ.js";
|
|
5
|
+
import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-JRIu2BnS.js";
|
|
6
|
+
import { $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-Cuw9UbNb.js";
|
|
7
|
+
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-DPWyf-gp.js";
|
|
8
|
+
import { $ as $eed445e0843c11d0$export$41f133550aa26f48 } from "../../ListBox-DT1sFY3e.js";
|
|
9
|
+
import { $ as $07b14b47974efb58$export$5b6b19405a83ff9d } from "../../Dialog-Dd1yqNus.js";
|
|
10
|
+
import { $ as $82d7e5349645de74$export$ef9b1a59e592288f, a as $82d7e5349645de74$export$e288731fd71264f0, S as SelectClearButton, O as OptionItemBase } from "../../shared-Bg9lx3pE.js";
|
|
11
11
|
import { useRef, cloneElement } from "react";
|
|
12
12
|
import { icons } from "../../icons/icons.js";
|
|
13
13
|
import "../../react-jsx-parser.min-B_hvYYa1.js";
|
|
@@ -15,7 +15,7 @@ import { c as clsx } from "../../clsx-DgYk2OaC.js";
|
|
|
15
15
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
16
16
|
import { c as cva } from "../../index-BHpUy2Ix.js";
|
|
17
17
|
import { randomId } from "../../utilities/hash.js";
|
|
18
|
-
import { $ as $bb77f239b46e8c72$export$3274cf84b703fff } from "../../useFilter-
|
|
18
|
+
import { $ as $bb77f239b46e8c72$export$3274cf84b703fff } from "../../useFilter-DYtfYPua.js";
|
|
19
19
|
/**
|
|
20
20
|
* Select menu.
|
|
21
21
|
*
|
|
@@ -287,9 +287,9 @@ const Select = (props) => {
|
|
|
287
287
|
"es:transition-plus",
|
|
288
288
|
"es:motion-duration-300 es:motion-ease-spring-bouncy",
|
|
289
289
|
"es:placement-bottom:origin-top-left es:placement-top:origin-bottom-left",
|
|
290
|
-
isEntering && "es:motion-scale-x-in-95 es:motion-scale-y-in-85 es:motion-opacity-in-0
|
|
290
|
+
isEntering && "es:motion-scale-x-in-95 es:motion-scale-y-in-85 es:motion-opacity-in-0",
|
|
291
291
|
isEntering && "es:placement-top:motion-translate-y-in-[0.5rem] es:placement-bottom:motion-translate-y-in-[-0.5rem]",
|
|
292
|
-
isExiting && "es:motion-scale-x-out-95 es:motion-scale-y-out-85 es:motion-opacity-out-0
|
|
292
|
+
isExiting && "es:motion-scale-x-out-95 es:motion-scale-y-out-85 es:motion-opacity-out-0",
|
|
293
293
|
isExiting && "es:placement-top:motion-translate-y-out-[0.5rem] es:placement-bottom:motion-translate-y-out-[-0.5rem]"
|
|
294
294
|
),
|
|
295
295
|
placement: "bottom left",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { s as sprintf } from "../../sprintf-DmNrJSYG.js";
|
|
3
3
|
import { _ as __ } from "../../default-i18n-CnQeC5Pl.js";
|
|
4
|
-
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-
|
|
5
|
-
import { $ as $6f909507e6374d18$export$472062a354075cee, a as $6f909507e6374d18$export$105594979f116971, b as $6f909507e6374d18$export$2c1b491743890dec, c as $6f909507e6374d18$export$a590f758a961cb5b } from "../../Slider-
|
|
4
|
+
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-DPWyf-gp.js";
|
|
5
|
+
import { $ as $6f909507e6374d18$export$472062a354075cee, a as $6f909507e6374d18$export$105594979f116971, b as $6f909507e6374d18$export$2c1b491743890dec, c as $6f909507e6374d18$export$a590f758a961cb5b } from "../../Slider-CZV3HhHY.js";
|
|
6
6
|
import { BaseControl } from "../base-control/base-control.js";
|
|
7
7
|
import { icons } from "../../icons/icons.js";
|
|
8
8
|
import { getColumnConfigOutputText } from "./utils.js";
|
|
9
9
|
import { c as clsx } from "../../clsx-DgYk2OaC.js";
|
|
10
|
-
import { A as AnimatePresence, m as motion } from "../../proxy-
|
|
10
|
+
import { A as AnimatePresence, m as motion } from "../../proxy-Bj4KTTJt.js";
|
|
11
11
|
/**
|
|
12
12
|
* A two-thumb slider for selecting a range of columns.
|
|
13
13
|
*
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-
|
|
3
|
-
import { $ as $6f909507e6374d18$export$472062a354075cee, a as $6f909507e6374d18$export$105594979f116971, b as $6f909507e6374d18$export$2c1b491743890dec, c as $6f909507e6374d18$export$a590f758a961cb5b } from "../../Slider-
|
|
2
|
+
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-DPWyf-gp.js";
|
|
3
|
+
import { $ as $6f909507e6374d18$export$472062a354075cee, a as $6f909507e6374d18$export$105594979f116971, b as $6f909507e6374d18$export$2c1b491743890dec, c as $6f909507e6374d18$export$a590f758a961cb5b } from "../../Slider-CZV3HhHY.js";
|
|
4
4
|
import { BaseControl } from "../base-control/base-control.js";
|
|
5
5
|
import { c as clsx } from "../../clsx-DgYk2OaC.js";
|
|
6
6
|
import { NumberPicker } from "../number-picker/number-picker.js";
|
|
7
7
|
import { generateMarkers, generateGridTemplate } from "./utils.js";
|
|
8
8
|
import { HStack } from "../layout/hstack.js";
|
|
9
|
-
import { A as AnimatePresence, m as motion } from "../../proxy-
|
|
9
|
+
import { A as AnimatePresence, m as motion } from "../../proxy-Bj4KTTJt.js";
|
|
10
10
|
/**
|
|
11
11
|
* A single/multi-thumb slider component.
|
|
12
12
|
*
|
|
@@ -8,7 +8,7 @@ import { DecorativeTooltip } from "../tooltip/tooltip.js";
|
|
|
8
8
|
import { useImageAnalysisWorker } from "../../utilities/web-workers.js";
|
|
9
9
|
import workerInline from "./worker-inline.js";
|
|
10
10
|
import { cyrb64Hash } from "../../utilities/hash.js";
|
|
11
|
-
import { b as analyzeImage } from "../../general-
|
|
11
|
+
import { b as analyzeImage } from "../../general-C8Q0dvEx.js";
|
|
12
12
|
/**
|
|
13
13
|
* @typedef {Object} CustomImageProps
|
|
14
14
|
* @property {JSX.Element} [props.renderError] - Component to render if image analysis fails. `(error) => JSX:Element`.
|