@eightshift/ui-components 5.0.9 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Collection-uTAXq9Br.js → Collection-BRJOMbOa.js} +12 -7
- package/dist/{Dialog-CmAxaSUv.js → Dialog-D6EdDPeu.js} +8 -8
- package/dist/{useFormValidation-Dy0PXJg5.js → Form-Bnyyv3Im.js} +6 -4
- package/dist/{Group-DDPhPPTQ.js → Group-LBogWgyp.js} +2 -2
- package/dist/{Input-BmDS8Juy.js → Input-DfSBLhDx.js} +1 -1
- package/dist/List-BLeHBkfx.js +590 -0
- package/dist/{ListBox-_nDFq8-H.js → ListBox-BY3gwI8c.js} +3 -3
- package/dist/Select-BebwUgKB.js +764 -0
- package/dist/Separator-CTQWg_HO.js +1111 -0
- package/dist/TextField-o2U-uBWv.js +133 -0
- package/dist/assets/style-admin.css +268 -150
- package/dist/assets/style-editor.css +268 -150
- package/dist/assets/style.css +268 -150
- package/dist/assets/wp-font-enhancements.css +1 -1
- package/dist/assets/wp-ui-enhancements.css +1 -1
- package/dist/components/breakpoint-preview/breakpoint-preview.js +3 -4
- package/dist/components/button/button.js +3 -3
- package/dist/components/checkbox/checkbox.js +1 -2
- package/dist/components/color-pickers/color-picker.js +7 -9
- package/dist/components/color-pickers/color-swatch.js +1 -1
- package/dist/components/color-pickers/gradient-editor.js +19 -25
- package/dist/components/color-pickers/solid-color-picker.js +27 -27
- package/dist/components/component-toggle/component-toggle.js +1 -1
- package/dist/components/draggable/draggable-handle.js +2 -2
- package/dist/components/draggable/draggable.js +5 -5
- package/dist/components/draggable-list/draggable-list-item.js +2 -2
- package/dist/components/draggable-list/draggable-list.js +5 -5
- package/dist/components/expandable/expandable.js +1 -1
- package/dist/components/index.js +5 -5
- package/dist/components/input-field/input-field.js +13 -129
- package/dist/components/item-collection/item-collection.js +1 -1
- package/dist/components/link-input/link-input.js +1463 -17
- package/dist/components/matrix-align/matrix-align.js +11 -14
- package/dist/components/menu/menu.js +4 -8
- package/dist/components/modal/modal.js +3 -3
- package/dist/components/number-picker/number-picker.js +9 -10
- package/dist/components/option-select/option-select.js +140 -156
- package/dist/components/placeholders/file-placeholder.js +1 -1
- package/dist/components/placeholders/image-placeholder.js +3 -3
- package/dist/components/placeholders/media-placeholder.js +2 -2
- package/dist/components/popover/popover.js +10 -5
- package/dist/components/radio/radio.js +4 -5
- package/dist/components/repeater/repeater-item.js +1 -1
- package/dist/components/repeater/repeater.js +6 -6
- package/dist/components/responsive/mini-responsive.js +45 -47
- package/dist/components/responsive/responsive-legacy.js +51 -55
- package/dist/components/responsive/responsive.js +47 -49
- package/dist/components/responsive-preview/responsive-preview.js +12 -15
- package/dist/components/select/async-multi-select.js +4 -4
- package/dist/components/select/async-single-select.js +1 -1
- package/dist/components/select/multi-select-components.js +1 -1
- package/dist/components/select/multi-select.js +4 -4
- package/dist/components/select/shared.js +2 -2
- package/dist/components/select/single-select.js +1 -1
- package/dist/components/select/styles.js +3 -3
- package/dist/components/select/v2/async-select.js +215 -158
- package/dist/components/select/v2/shared.js +29 -20
- package/dist/components/select/v2/single-select.js +202 -851
- package/dist/components/slider/column-config-slider.js +2 -2
- package/dist/components/slider/slider.js +2 -2
- package/dist/components/slider/utils.js +1 -1
- package/dist/components/tabs/tabs.js +7 -8
- package/dist/components/toggle/switch.js +4 -3
- package/dist/components/toggle-button/toggle-button.js +1 -1
- package/dist/{default-i18n-CT_oS1Fy.js → default-i18n-OFa3zAyB.js} +5 -9
- package/dist/icons/jsx-svg.js +35 -5
- package/dist/index.js +4 -4
- package/dist/{multi-select-components-Sp-JEFEX.js → multi-select-components-BcKzA24f.js} +3 -3
- package/dist/{react-jsx-parser.min-DZCiis5V.js → react-jsx-parser.min-LF707GK8.js} +312 -332
- package/dist/useAsyncList-fLtZMvJO.js +420 -0
- package/dist/useFilter-BR5z1A4Q.js +50 -0
- package/dist/{useListState-9Hq_FiRF.js → useListState-BrZ2XvDS.js} +1 -1
- package/dist/{useNumberField-D0u2bh8g.js → useNumberField-y0dLc_6m.js} +2 -2
- package/dist/{useSingleSelectListState-DqhemUIh.js → useSingleSelectListState-Bh46cRXs.js} +1 -1
- package/dist/utilities/array-helpers.js +4 -7
- package/dist/utilities/es-dash.js +21 -3
- package/dist/utilities/index.js +2 -1
- package/dist/utilities/text-helpers.js +3 -3
- package/package.json +9 -9
- package/dist/ComboBox-BANSEKnb.js +0 -1915
- package/dist/Form-Cq3fu75_.js +0 -5
- package/dist/List-CZMUbkFU.js +0 -593
- package/dist/Separator-BN3mjL6q.js +0 -332
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { _ as __ } from "../../default-i18n-
|
|
2
|
+
import { _ as __ } from "../../default-i18n-OFa3zAyB.js";
|
|
3
3
|
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-JS_ob-kh.js";
|
|
4
4
|
import { $ as $6f909507e6374d18$export$472062a354075cee, a as $6f909507e6374d18$export$105594979f116971, b as $6f909507e6374d18$export$2c1b491743890dec, c as $6f909507e6374d18$export$a590f758a961cb5b } from "../../Slider-uOPcIpqS.js";
|
|
5
5
|
import { BaseControl } from "../base-control/base-control.js";
|
|
@@ -155,7 +155,7 @@ const ColumnConfigSlider = (props) => {
|
|
|
155
155
|
$6f909507e6374d18$export$2c1b491743890dec,
|
|
156
156
|
{
|
|
157
157
|
index: i,
|
|
158
|
-
"aria-label": thumbLabels
|
|
158
|
+
"aria-label": thumbLabels?.[i],
|
|
159
159
|
isDisabled: i === 0 && disableOffset || i === 1 && disableWidth,
|
|
160
160
|
className: clsx(
|
|
161
161
|
"es:static! es:row-span-1 es:row-start-1 es:h-6 es:w-1.5 es:rounded-full es:border es:transition es:duration-300",
|
|
@@ -103,7 +103,7 @@ const Slider = (props) => {
|
|
|
103
103
|
step,
|
|
104
104
|
isDisabled: disabled,
|
|
105
105
|
orientation: vertical ? "vertical" : "horizontal",
|
|
106
|
-
className: clsx("es:w-full",
|
|
106
|
+
className: clsx("es:w-full", markerEntries?.some(([_, value2]) => value2?.length > 0) && "es:pb-3.5"),
|
|
107
107
|
onChangeEnd,
|
|
108
108
|
...other,
|
|
109
109
|
children: /* @__PURE__ */ jsx(
|
|
@@ -280,7 +280,7 @@ const Slider = (props) => {
|
|
|
280
280
|
$6f909507e6374d18$export$2c1b491743890dec,
|
|
281
281
|
{
|
|
282
282
|
index: i,
|
|
283
|
-
"aria-label": thumbLabels
|
|
283
|
+
"aria-label": thumbLabels?.[i],
|
|
284
284
|
className: clsx(
|
|
285
285
|
"es:absolute es:size-3.5 es:rounded-full es:border es:transition es:duration-300",
|
|
286
286
|
vertical ? "es:translate-x-1/2!" : "es:translate-y-1/2!",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __, s as sprintf, a as _n } from "../../default-i18n-
|
|
1
|
+
import { _ as __, s as sprintf, a as _n } from "../../default-i18n-OFa3zAyB.js";
|
|
2
2
|
/**
|
|
3
3
|
* Generates an array of markers based on the provided minimum and maximum values and step.
|
|
4
4
|
* If the step is less than 10, only markers divisible by 5 and 10 are included.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { c as $880e95eb8b93ba9a$export$ecf600387e221c37, i as $ae20dd8cbca75726$export$d6daf82dcd84e87c, d as $e1995378a142960e$export$18af5c7a9e9b3664, f as $e1995378a142960e$export$fb8073518f34e6ec, g as $7135fc7d473fd974$export$4feb769f8ddf26c5, j as $7135fc7d473fd974$export$a164736487e3f0ae, e as $e1995378a142960e$export$bf788dd355e3a401, k as $7135fc7d473fd974$export$90e00781bc59d8f9 } from "../../Collection-
|
|
2
|
+
import { c as $880e95eb8b93ba9a$export$ecf600387e221c37, i as $ae20dd8cbca75726$export$d6daf82dcd84e87c, d as $e1995378a142960e$export$18af5c7a9e9b3664, f as $e1995378a142960e$export$fb8073518f34e6ec, g as $7135fc7d473fd974$export$4feb769f8ddf26c5, j as $7135fc7d473fd974$export$a164736487e3f0ae, e as $e1995378a142960e$export$bf788dd355e3a401, k as $7135fc7d473fd974$export$90e00781bc59d8f9 } from "../../Collection-BRJOMbOa.js";
|
|
3
3
|
import { k as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, d as $3ef42575df84b30b$export$9d1611c77c2fe928, e as $bdb11010cef70236$export$f680877a34711e37, l as $df56164dff5785e2$export$4338b53315abf666, b as $64fa3d84918910a7$export$4d86445c2cf5e3, i as $64fa3d84918910a7$export$2881499e37b75b9a, a as $64fa3d84918910a7$export$29f1550f4b0d4415, $ as $64fa3d84918910a7$export$fabf2dc03a41866e } from "../../utils-CZt7LCbO.js";
|
|
4
4
|
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "../../Hidden-rE6uR-lr.js";
|
|
5
5
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
|
|
6
|
-
import { b as $cdc5a6778b766db2$export$a9d04c5684123369 } from "../../useListState-
|
|
6
|
+
import { b as $cdc5a6778b766db2$export$a9d04c5684123369 } from "../../useListState-BrZ2XvDS.js";
|
|
7
7
|
import React__default, { useState, useMemo, useRef, useEffect, forwardRef, useContext, createContext, isValidElement, useId, cloneElement } from "react";
|
|
8
8
|
import { a as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 } from "../../usePress-DWBuejBp.js";
|
|
9
9
|
import { a as $f645667febf57a63$export$4c014de7c8940b4c, $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../useHover-C2SkI1Fn.js";
|
|
@@ -11,8 +11,8 @@ import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "../../useLabels-
|
|
|
11
11
|
import { a as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "../../FocusScope-BEPI2m7u.js";
|
|
12
12
|
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-BbYZoHvX.js";
|
|
13
13
|
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-Bv0UJQl8.js";
|
|
14
|
-
import { $ as $a0d645289fe9b86b$export$e7f05e985daf4b5f } from "../../useSingleSelectListState-
|
|
15
|
-
import { _ as __, s as sprintf } from "../../default-i18n-
|
|
14
|
+
import { $ as $a0d645289fe9b86b$export$e7f05e985daf4b5f } from "../../useSingleSelectListState-Bh46cRXs.js";
|
|
15
|
+
import { _ as __, s as sprintf } from "../../default-i18n-OFa3zAyB.js";
|
|
16
16
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
17
17
|
import { c as cva } from "../../index-BljRBEr_.js";
|
|
18
18
|
import { Notice } from "../notice/notice.js";
|
|
@@ -467,10 +467,9 @@ const Tabs2 = (props) => {
|
|
|
467
467
|
let tabCounter = 1;
|
|
468
468
|
const preparedChildren = Array.isArray(children) ? children : [children];
|
|
469
469
|
const childrenWithIds = preparedChildren.reduce((acc, child, index) => {
|
|
470
|
-
var _a, _b, _c;
|
|
471
470
|
if (child.type.displayName === "TabList") {
|
|
472
|
-
const childItems = Array.isArray(
|
|
473
|
-
tabCounter = (
|
|
471
|
+
const childItems = Array.isArray(child?.props?.children) ? child?.props?.children : [child?.props?.children].filter(Boolean);
|
|
472
|
+
tabCounter = (childItems?.length ?? 0) + 1;
|
|
474
473
|
if (childItems.length < 1) {
|
|
475
474
|
return acc;
|
|
476
475
|
}
|
|
@@ -482,7 +481,7 @@ const Tabs2 = (props) => {
|
|
|
482
481
|
key: index,
|
|
483
482
|
type
|
|
484
483
|
},
|
|
485
|
-
childItems
|
|
484
|
+
childItems?.map(
|
|
486
485
|
(innerChild, i) => cloneElement(innerChild, {
|
|
487
486
|
id: `tab-${baseId}-${i + 1}`,
|
|
488
487
|
key: i,
|
|
@@ -127,7 +127,7 @@ const Switch2 = (props) => {
|
|
|
127
127
|
"es:group-focus-visible:ring-2 es:group-focus-visible:ring-accent-500/50 es:group-focus-visible:border-accent-600",
|
|
128
128
|
!checked && !disabled && "es:border-secondary-400 es:inset-ring-secondary-100 es:from-white es:to-secondary-100",
|
|
129
129
|
checked && !disabled && "es:border-accent-700/75 es:inset-ring-accent-500 es:to-accent-500 es:from-accent-600 es:shadow-accent-600/30",
|
|
130
|
-
disabled && "es:cursor-default es:border-secondary-300 es:from-white es:to-secondary-50 es:inset-ring-
|
|
130
|
+
disabled && "es:cursor-default es:border-secondary-300 es:from-white es:to-secondary-50 es:inset-ring-0 es:inset-shadow-secondary-100",
|
|
131
131
|
!disabled && "es:shadow-sm"
|
|
132
132
|
),
|
|
133
133
|
children: /* @__PURE__ */ jsx(
|
|
@@ -135,12 +135,13 @@ const Switch2 = (props) => {
|
|
|
135
135
|
{
|
|
136
136
|
className: clsx(
|
|
137
137
|
"es:block es:size-3 es:rounded-full es:border es:will-change-transform es:bg-radial",
|
|
138
|
-
"es:transition es:motion-ease-spring-
|
|
138
|
+
"es:transition es:motion-ease-spring-bouncy es:ease-[var(--motion-spring-bouncy)] es:duration-200",
|
|
139
139
|
!checked && "es:scale-95",
|
|
140
140
|
!checked && !disabled && "es:border-secondary-500 es:from-secondary-500 es:to-secondary-600",
|
|
141
141
|
checked && "es:translate-x-4",
|
|
142
142
|
checked && !disabled && "es:border-accent-600/20 es:from-white es:to-accent-500/30 es:from-40% es:bg-white es:shadow-sm es:shadow-accent-900/60",
|
|
143
|
-
disabled && "es:border-secondary-
|
|
143
|
+
disabled && "es:border-secondary-300",
|
|
144
|
+
checked && disabled && "es:bg-secondary-200",
|
|
144
145
|
isIndeterminate && "es:translate-x-2 es:scale-100"
|
|
145
146
|
)
|
|
146
147
|
}
|
|
@@ -302,7 +302,7 @@ const ToggleButton2 = (props) => {
|
|
|
302
302
|
}
|
|
303
303
|
);
|
|
304
304
|
let tooltip = rawTooltip;
|
|
305
|
-
if (rawTooltip === true &&
|
|
305
|
+
if (rawTooltip === true && ariaLabel?.length > 0) {
|
|
306
306
|
tooltip = ariaLabel;
|
|
307
307
|
}
|
|
308
308
|
const component = /* @__PURE__ */ jsxs(
|
|
@@ -501,14 +501,13 @@ const createI18n = (initialData, initialDomain, hooks) => {
|
|
|
501
501
|
};
|
|
502
502
|
const getLocaleData = (domain = "default") => tannin.data[domain];
|
|
503
503
|
const doSetLocaleData = (data, domain = "default") => {
|
|
504
|
-
var _a;
|
|
505
504
|
tannin.data[domain] = {
|
|
506
505
|
...tannin.data[domain],
|
|
507
506
|
...data
|
|
508
507
|
};
|
|
509
508
|
tannin.data[domain][""] = {
|
|
510
509
|
...DEFAULT_LOCALE_DATA[""],
|
|
511
|
-
...
|
|
510
|
+
...tannin.data[domain]?.[""]
|
|
512
511
|
};
|
|
513
512
|
delete tannin.pluralForms[domain];
|
|
514
513
|
};
|
|
@@ -517,7 +516,6 @@ const createI18n = (initialData, initialDomain, hooks) => {
|
|
|
517
516
|
notifyListeners();
|
|
518
517
|
};
|
|
519
518
|
const addLocaleData = (data, domain = "default") => {
|
|
520
|
-
var _a;
|
|
521
519
|
tannin.data[domain] = {
|
|
522
520
|
...tannin.data[domain],
|
|
523
521
|
...data,
|
|
@@ -525,8 +523,8 @@ const createI18n = (initialData, initialDomain, hooks) => {
|
|
|
525
523
|
// a plural forms expression).
|
|
526
524
|
"": {
|
|
527
525
|
...DEFAULT_LOCALE_DATA[""],
|
|
528
|
-
...
|
|
529
|
-
...data
|
|
526
|
+
...tannin.data[domain]?.[""],
|
|
527
|
+
...data?.[""]
|
|
530
528
|
}
|
|
531
529
|
};
|
|
532
530
|
delete tannin.pluralForms[domain];
|
|
@@ -604,9 +602,8 @@ const createI18n = (initialData, initialDomain, hooks) => {
|
|
|
604
602
|
return "rtl" === _x("ltr", "text direction");
|
|
605
603
|
};
|
|
606
604
|
const hasTranslation = (single, context, domain) => {
|
|
607
|
-
var _a, _b;
|
|
608
605
|
const key = context ? context + "" + single : single;
|
|
609
|
-
let result = !!
|
|
606
|
+
let result = !!tannin.data?.[domain !== null && domain !== void 0 ? domain : "default"]?.[key];
|
|
610
607
|
if (hooks) {
|
|
611
608
|
result = /** @type { boolean } */
|
|
612
609
|
/** @type {*} */
|
|
@@ -827,11 +824,10 @@ function createRunHook(hooks, storeKey, returnFirstArg, async) {
|
|
|
827
824
|
}
|
|
828
825
|
function createCurrentHook(hooks, storeKey) {
|
|
829
826
|
return function currentHook() {
|
|
830
|
-
var _a;
|
|
831
827
|
var _currentArray$at$name;
|
|
832
828
|
const hooksStore = hooks[storeKey];
|
|
833
829
|
const currentArray = Array.from(hooksStore.__current);
|
|
834
|
-
return (_currentArray$at$name =
|
|
830
|
+
return (_currentArray$at$name = currentArray.at(-1)?.name) !== null && _currentArray$at$name !== void 0 ? _currentArray$at$name : null;
|
|
835
831
|
};
|
|
836
832
|
}
|
|
837
833
|
function createDoingHook(hooks, storeKey) {
|
package/dist/icons/jsx-svg.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { s as svgToJsxString, a as source_default } from "../react-jsx-parser.min-
|
|
2
|
+
import { s as svgToJsxString, a as source_default } from "../react-jsx-parser.min-LF707GK8.js";
|
|
3
3
|
/**
|
|
4
4
|
* Renders SVG string as JSX SVGs.
|
|
5
5
|
*
|
|
@@ -24,13 +24,12 @@ import { s as svgToJsxString, a as source_default } from "../react-jsx-parser.mi
|
|
|
24
24
|
* @preserve
|
|
25
25
|
*/
|
|
26
26
|
const JsxSvg = (props) => {
|
|
27
|
-
var _a;
|
|
28
27
|
const { svg, className, customProps, customPropBindings, "aria-hidden": ariaHiddenProp, ariaHidden, noIdRandomization, idRandomizationPrefix = "icon", ...rest } = props;
|
|
29
28
|
if (!svg || typeof svg !== "string") {
|
|
30
29
|
return null;
|
|
31
30
|
}
|
|
32
31
|
let jsxString = svgToJsxString(svg);
|
|
33
|
-
if (
|
|
32
|
+
if (className?.length > 0) {
|
|
34
33
|
jsxString = jsxString.replace("<svg ", `<svg className="${className}" `);
|
|
35
34
|
}
|
|
36
35
|
if (ariaHiddenProp || ariaHidden) {
|
|
@@ -40,7 +39,7 @@ const JsxSvg = (props) => {
|
|
|
40
39
|
jsxString = jsxString.replace("<svg ", `<svg ${customProps} `);
|
|
41
40
|
}
|
|
42
41
|
if (!noIdRandomization) {
|
|
43
|
-
const matches =
|
|
42
|
+
const matches = Array.from(jsxString?.matchAll(/id=[\'"]([a-zA-Z0-9\-\_]*)[\'"]/g), (m) => m?.[1])?.filter(Boolean);
|
|
44
43
|
matches.forEach((match) => {
|
|
45
44
|
const newId = Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
|
|
46
45
|
jsxString = jsxString.replaceAll(match, `${idRandomizationPrefix}-${newId}`);
|
|
@@ -53,7 +52,38 @@ const JsxSvg = (props) => {
|
|
|
53
52
|
jsx: jsxString,
|
|
54
53
|
bindings: customPropBindings,
|
|
55
54
|
components: {
|
|
56
|
-
|
|
55
|
+
animateMotion: "animateMotion",
|
|
56
|
+
animateTransform: "animateTransform",
|
|
57
|
+
clipPath: "clipPath",
|
|
58
|
+
feBlend: "feBlend",
|
|
59
|
+
feColorMatrix: "feColorMatrix",
|
|
60
|
+
feComponentTransfer: "feComponentTransfer",
|
|
61
|
+
feComposite: "feComposite",
|
|
62
|
+
feConvolveMatrix: "feConvolveMatrix",
|
|
63
|
+
feDiffuseLighting: "feDiffuseLighting",
|
|
64
|
+
feDisplacementMap: "feDisplacementMap",
|
|
65
|
+
feDistantLight: "feDistantLight",
|
|
66
|
+
feDropShadow: "feDropShadow",
|
|
67
|
+
feFlood: "feFlood",
|
|
68
|
+
feFuncA: "feFuncA",
|
|
69
|
+
feFuncB: "feFuncB",
|
|
70
|
+
feFuncG: "feFuncG",
|
|
71
|
+
feFuncR: "feFuncR",
|
|
72
|
+
feGaussianBlur: "feGaussianBlur",
|
|
73
|
+
feImage: "feImage",
|
|
74
|
+
feMerge: "feMerge",
|
|
75
|
+
feMergeNode: "feMergeNode",
|
|
76
|
+
feMorphology: "feMorphology",
|
|
77
|
+
feOffset: "feOffset",
|
|
78
|
+
fePointLight: "fePointLight",
|
|
79
|
+
feSpecularLighting: "feSpecularLighting",
|
|
80
|
+
feSpotLight: "feSpotLight",
|
|
81
|
+
feTile: "feTile",
|
|
82
|
+
feTurbulence: "feTurbulence",
|
|
83
|
+
foreignObject: "foreignObject",
|
|
84
|
+
linearGradient: "linearGradient",
|
|
85
|
+
radialGradient: "radialGradient",
|
|
86
|
+
textPath: "textPath"
|
|
57
87
|
},
|
|
58
88
|
...rest
|
|
59
89
|
}
|
package/dist/index.js
CHANGED
|
@@ -38,8 +38,8 @@ import { ResponsiveLegacy } from "./components/responsive/responsive-legacy.js";
|
|
|
38
38
|
import { ResponsivePreview } from "./components/responsive-preview/responsive-preview.js";
|
|
39
39
|
import { AsyncMultiSelect } from "./components/select/async-multi-select.js";
|
|
40
40
|
import { AsyncSelect } from "./components/select/async-single-select.js";
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
41
|
+
import { AsyncSelectNext } from "./components/select/v2/async-select.js";
|
|
42
|
+
import { SelectNext } from "./components/select/v2/single-select.js";
|
|
43
43
|
import { Modal } from "./components/modal/modal.js";
|
|
44
44
|
import { MultiSelect } from "./components/select/multi-select.js";
|
|
45
45
|
import { RSClearIndicator, RSDropdownIndicator, RSMultiValue, RSMultiValueContainer, RSMultiValueLabel, RSMultiValueRemove, RSOption, RSSingleValue } from "./components/select/react-select-component-wrappers.js";
|
|
@@ -60,6 +60,7 @@ export {
|
|
|
60
60
|
AnimatedVisibility,
|
|
61
61
|
AsyncMultiSelect,
|
|
62
62
|
AsyncSelect,
|
|
63
|
+
AsyncSelectNext,
|
|
63
64
|
BaseControl,
|
|
64
65
|
BreakpointPreview,
|
|
65
66
|
Button,
|
|
@@ -121,6 +122,7 @@ export {
|
|
|
121
122
|
ResponsivePreview,
|
|
122
123
|
RichLabel,
|
|
123
124
|
Select,
|
|
125
|
+
SelectNext,
|
|
124
126
|
Slider,
|
|
125
127
|
SolidColorPicker,
|
|
126
128
|
Spacer,
|
|
@@ -135,7 +137,5 @@ export {
|
|
|
135
137
|
Tooltip,
|
|
136
138
|
TriggeredPopover,
|
|
137
139
|
VStack,
|
|
138
|
-
__ExperimentalAsyncSelect,
|
|
139
|
-
__ExperimentalSelect,
|
|
140
140
|
getColumnConfigOutputText
|
|
141
141
|
};
|
|
@@ -3676,10 +3676,10 @@ const getDragEndHandler = (onChange, items) => {
|
|
|
3676
3676
|
if (!active || !over) {
|
|
3677
3677
|
return;
|
|
3678
3678
|
}
|
|
3679
|
-
if (
|
|
3679
|
+
if (active?.id !== over?.id && items) {
|
|
3680
3680
|
const mappedItems = items.map(({ id }) => id);
|
|
3681
|
-
const oldIndex =
|
|
3682
|
-
const newIndex =
|
|
3681
|
+
const oldIndex = mappedItems?.indexOf(active.id) ?? -1;
|
|
3682
|
+
const newIndex = mappedItems?.indexOf(over.id) ?? -1;
|
|
3683
3683
|
onChange(arrayMove([...items], oldIndex, newIndex));
|
|
3684
3684
|
}
|
|
3685
3685
|
};
|