@eightshift/ui-components 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/dist/Button-eebLs4cp.js +54 -0
- package/dist/{Checkbox-BLcVbhiO.js → Checkbox-BN0TEda-.js} +7 -7
- package/dist/{ColorSwatch-Cmlex_kT.js → ColorSwatch-BrowHhTG.js} +4 -4
- package/dist/{FieldError-wtMA4667.js → FieldError-ILxgMZy5.js} +2 -2
- package/dist/{FocusScope-1u9yyfIN.js → FocusScope-B9b0VMib.js} +2 -2
- package/dist/GeistMonoVF.woff2 +0 -0
- package/dist/GeistVF.woff2 +0 -0
- package/dist/{GridList-BZPXp3_O.js → GridList-CzpWxJsS.js} +18 -18
- package/dist/{Group-DyqpTRPe.js → Group-Dkdm2-E7.js} +3 -3
- package/dist/{Input-jsbb4ugq.js → Input-BJA4rmIo.js} +7 -7
- package/dist/{Label-BPzS-sR7.js → Label-9x5iLJ-Y.js} +1 -1
- package/dist/{ListBox-w9gDaJkV.js → ListBox-D3Vr4vvC.js} +18 -18
- package/dist/{Select-49a62830.esm-C-RFtLiD.js → Select-49a62830.esm-CKPmlkza.js} +1 -1
- package/dist/{SelectionManager-mefd0ThJ.js → SelectionManager-sedvcM-1.js} +8 -8
- package/dist/{Separator-DHn0CwdK.js → Separator-B6rnDabE.js} +3 -3
- package/dist/{Slider-Pyh2V4bY.js → Slider-C5U5N7uM.js} +11 -11
- package/dist/{Text-BM136LvS.js → Text-Cyxp9ewv.js} +1 -1
- package/dist/{VisuallyHidden-BYRI1Lfo.js → VisuallyHidden-BPJVSUyp.js} +2 -2
- package/dist/_commonjsHelpers-DWwsNxpa.js +8 -0
- package/dist/assets/fonts.css +1 -0
- package/dist/assets/style.css +1 -1
- package/dist/assets/wp.css +1 -0
- package/dist/{button-BkkdyHfJ.js → button-idVI4jmd.js} +45 -64
- package/dist/components/base-control/base-control.js +29 -39
- package/dist/components/breakpoint-preview/breakpoint-preview.js +7 -7
- package/dist/components/button/button.js +6 -5
- package/dist/components/checkbox/checkbox.js +9 -7
- package/dist/components/color-pickers/color-picker.js +27 -36
- package/dist/components/color-pickers/color-swatch.js +6 -6
- package/dist/components/color-pickers/gradient-editor.js +10 -6
- package/dist/components/color-pickers/solid-color-picker.js +35 -38
- package/dist/components/component-toggle/component-toggle.js +52 -6
- package/dist/components/container-panel/container-panel.js +55 -6
- package/dist/components/draggable-list/draggable-list-item.js +74 -0
- package/dist/components/draggable-list/draggable-list.js +157 -0
- package/dist/components/expandable/expandable.js +19 -12
- package/dist/components/input-field/input-field.js +15 -10
- package/dist/components/layout/hstack.js +40 -0
- package/dist/components/layout/vstack.js +40 -0
- package/dist/components/link-input/link-input.js +35 -31
- package/dist/components/list-box/list-box.js +11 -6
- package/dist/components/matrix-align/matrix-align.js +12 -7
- package/dist/components/menu/menu.js +26 -21
- package/dist/components/notice/notice.js +11 -7
- package/dist/components/number-picker/number-picker.js +19 -13
- package/dist/components/option-select/option-select.js +231 -0
- package/dist/components/placeholders/file-placeholder.js +53 -0
- package/dist/components/placeholders/image-placeholder.js +88 -0
- package/dist/components/placeholders/media-placeholder.js +62 -0
- package/dist/components/popover/popover.js +4 -4
- package/dist/components/radio/radio.js +56 -38
- package/dist/components/repeater/repeater-item.js +46 -39
- package/dist/components/repeater/repeater.js +82 -56
- package/dist/components/responsive/responsive-legacy.js +17 -12
- package/dist/components/responsive/responsive.js +227 -160
- package/dist/components/responsive-preview/responsive-preview.js +5 -3
- package/dist/components/rich-label/rich-label.js +12 -8
- package/dist/components/select/async-multi-select.js +9 -6
- package/dist/components/select/async-single-select.js +7 -2
- package/dist/components/select/custom-select-default-components.js +3 -3
- package/dist/components/select/multi-select-components.js +2 -2
- package/dist/components/select/multi-select.js +9 -6
- package/dist/components/select/react-select-component-wrappers.js +1 -1
- package/dist/components/select/single-select.js +7 -2
- package/dist/components/select/styles.js +4 -4
- package/dist/components/slider/column-config-slider.js +18 -34
- package/dist/components/slider/slider.js +19 -26
- package/dist/components/slider/utils.js +44 -1
- package/dist/components/spacer/spacer.js +21 -11
- package/dist/components/tabs/tabs.js +21 -20
- package/dist/components/toggle/switch.js +18 -12
- package/dist/components/toggle/toggle.js +8 -2
- package/dist/components/toggle-button/toggle-button.js +25 -13
- package/dist/components/tooltip/tooltip.js +4 -4
- package/dist/{context-jMy6xdVq.js → context-BAcFg5GO.js} +1 -1
- package/dist/{default-i18n-BhE-OUmt.js → default-i18n-Bk1GxDHz.js} +1 -1
- package/dist/{focusSafely-C3K8zAKj.js → focusSafely-B0hyd-S4.js} +1 -1
- package/dist/fonts.js +1 -0
- package/dist/icons/icons.js +184 -164
- package/dist/icons/jsx-svg.js +4957 -0
- package/dist/{index-Bfb9bWcb.js → index-BDk0TPWz.js} +1 -1
- package/dist/{index-a301f526.esm-Bioi4cGX.js → index-a301f526.esm-BzTuHLdr.js} +1 -1
- package/dist/index.js +30 -4
- package/dist/{intlStrings-CUhoK9EN.js → intlStrings-Ctkp0HDc.js} +1 -1
- package/dist/lite-pbIeT7tm.js +8 -0
- package/dist/{multi-select-components-CjVpCNko.js → multi-select-components-nORKdJ-2.js} +3 -3
- package/dist/{popover-Dx3vKXUX.js → popover-o2Q28Ljn.js} +19 -14
- package/dist/{react-select-async.esm-TFb_ZX6C.js → react-select-async.esm-CLj9uZTq.js} +3 -3
- package/dist/{react-select.esm-BjRWqf0E.js → react-select.esm-3tyTZmrx.js} +3 -3
- package/dist/{textSelection-BosCCRVE.js → textSelection-BRZdHY-4.js} +1 -1
- package/dist/{tooltip-CkCndvTI.js → tooltip-T6H9uF-Z.js} +10 -10
- package/dist/{useButton-CuG5UzUw.js → useButton-D-xACzEY.js} +3 -3
- package/dist/{useEvent-DHv-yhOH.js → useEvent-XlYPKgwX.js} +1 -1
- package/dist/{useFocusRing-Cc-4eouh.js → useFocusRing-CRx_hYC4.js} +1 -1
- package/dist/{useFocusable-5q1Gek1J.js → useFocusable-CHfpEdlE.js} +2 -2
- package/dist/{useFormReset-Buc9YJcv.js → useFormReset-aHn6-wRk.js} +1 -1
- package/dist/{useFormValidationState-BAPPNXic.js → useFormValidationState-CdYmOaXI.js} +2 -2
- package/dist/{useHasTabbableChild-D3uUNhJ0.js → useHasTabbableChild-domoFB7A.js} +2 -2
- package/dist/{useLabel-CGlkoFG0.js → useLabel-DVhXVhtH.js} +2 -2
- package/dist/{useLabels-Dg62M_3P.js → useLabels-C7E5SkOi.js} +1 -1
- package/dist/{useListState-Domq0blV.js → useListState-BRsq7O1C.js} +1 -1
- package/dist/{useLocalizedStringFormatter-Prmz0h0A.js → useLocalizedStringFormatter-WsEL47qR.js} +1 -1
- package/dist/{useNumberFieldState-BLU3uhSR.js → useNumberFieldState-ZH2Qyyxh.js} +9 -9
- package/dist/{useNumberFormatter-BLc2xjZn.js → useNumberFormatter-mhdYLxWQ.js} +1 -1
- package/dist/{usePress-BQgVor4T.js → usePress-B42RawCH.js} +3 -3
- package/dist/{useToggle-C9ETOBaZ.js → useToggle-CExfZM8x.js} +4 -4
- package/dist/{useToggleState-DJ_z5E2S.js → useToggleState-DghG5ImG.js} +1 -1
- package/dist/utilities/array-helpers.js +30 -0
- package/dist/utilities/index.js +8 -0
- package/dist/utilities/text-helpers.js +30 -4
- package/dist/{utils-BsiH7-5Y.js → utils-DIBzm1e4.js} +1 -1
- package/dist/wp.js +1 -0
- package/package.json +11 -4
- package/dist/_commonjsHelpers-CUmg6egw.js +0 -6
- package/dist/utilities/classnames.js +0 -16
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { forwardRef, useContext, useLayoutEffect, useRef, useState, useMemo, useCallback, createContext } from "react";
|
|
3
|
-
import { r as reactDomExports } from "./index-
|
|
3
|
+
import { r as reactDomExports } from "./index-BDk0TPWz.js";
|
|
4
4
|
function _typeof(o) {
|
|
5
5
|
"@babel/helpers - typeof";
|
|
6
6
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
package/dist/index.js
CHANGED
|
@@ -1,24 +1,30 @@
|
|
|
1
1
|
import { AnimatedVisibility } from "./components/animated-visibility/animated-visibility.js";
|
|
2
2
|
import { BaseControl } from "./components/base-control/base-control.js";
|
|
3
3
|
import { BreakpointPreview } from "./components/breakpoint-preview/breakpoint-preview.js";
|
|
4
|
-
import { B, a } from "./button-
|
|
4
|
+
import { B, a } from "./button-idVI4jmd.js";
|
|
5
5
|
import { Checkbox } from "./components/checkbox/checkbox.js";
|
|
6
6
|
import { ComponentToggle } from "./components/component-toggle/component-toggle.js";
|
|
7
7
|
import { ContainerPanel } from "./components/container-panel/container-panel.js";
|
|
8
8
|
import { ColorSwatch } from "./components/color-pickers/color-swatch.js";
|
|
9
9
|
import { ColorPicker } from "./components/color-pickers/color-picker.js";
|
|
10
10
|
import { ColumnConfigSlider, ColumnConfigSliderOutput } from "./components/slider/column-config-slider.js";
|
|
11
|
+
import { DraggableList } from "./components/draggable-list/draggable-list.js";
|
|
12
|
+
import { DraggableListItem } from "./components/draggable-list/draggable-list-item.js";
|
|
11
13
|
import { Expandable } from "./components/expandable/expandable.js";
|
|
14
|
+
import { FilePlaceholder } from "./components/placeholders/file-placeholder.js";
|
|
12
15
|
import { GradientEditor } from "./components/color-pickers/gradient-editor.js";
|
|
16
|
+
import { HStack } from "./components/layout/hstack.js";
|
|
13
17
|
import { RichLabel } from "./components/rich-label/rich-label.js";
|
|
14
18
|
import { InputField } from "./components/input-field/input-field.js";
|
|
19
|
+
import { ImagePlaceholder } from "./components/placeholders/image-placeholder.js";
|
|
15
20
|
import { LinkInput } from "./components/link-input/link-input.js";
|
|
16
21
|
import { ListBox } from "./components/list-box/list-box.js";
|
|
17
22
|
import { MatrixAlign } from "./components/matrix-align/matrix-align.js";
|
|
23
|
+
import { MediaPlaceholder } from "./components/placeholders/media-placeholder.js";
|
|
18
24
|
import { Menu, MenuItem, MenuSection, MenuSeparator, SubMenuItem } from "./components/menu/menu.js";
|
|
19
25
|
import { Notice } from "./components/notice/notice.js";
|
|
20
26
|
import { NumberPicker } from "./components/number-picker/number-picker.js";
|
|
21
|
-
import { P, T } from "./popover-
|
|
27
|
+
import { P, T } from "./popover-o2Q28Ljn.js";
|
|
22
28
|
import { RadioButton, RadioButtonGroup } from "./components/radio/radio.js";
|
|
23
29
|
import { Repeater } from "./components/repeater/repeater.js";
|
|
24
30
|
import { RepeaterItem } from "./components/repeater/repeater-item.js";
|
|
@@ -29,6 +35,7 @@ import { AsyncMultiSelect } from "./components/select/async-multi-select.js";
|
|
|
29
35
|
import { AsyncSelect } from "./components/select/async-single-select.js";
|
|
30
36
|
import { MultiSelect } from "./components/select/multi-select.js";
|
|
31
37
|
import { RSClearIndicator, RSDropdownIndicator, RSMultiValue, RSMultiValueContainer, RSMultiValueLabel, RSMultiValueRemove, RSOption, RSSingleValue } from "./components/select/react-select-component-wrappers.js";
|
|
38
|
+
import { OptionSelect } from "./components/option-select/option-select.js";
|
|
32
39
|
import { Select } from "./components/select/single-select.js";
|
|
33
40
|
import { Slider } from "./components/slider/slider.js";
|
|
34
41
|
import { SolidColorPicker } from "./components/color-pickers/solid-color-picker.js";
|
|
@@ -37,10 +44,15 @@ import { Tab, TabList, TabPanel, Tabs } from "./components/tabs/tabs.js";
|
|
|
37
44
|
import { Toggle } from "./components/toggle/toggle.js";
|
|
38
45
|
import { Switch } from "./components/toggle/switch.js";
|
|
39
46
|
import { ToggleButton } from "./components/toggle-button/toggle-button.js";
|
|
40
|
-
import { D, T as T2 } from "./tooltip-
|
|
47
|
+
import { D, T as T2 } from "./tooltip-T6H9uF-Z.js";
|
|
48
|
+
import { VStack } from "./components/layout/vstack.js";
|
|
49
|
+
import { getColumnConfigOutputText } from "./components/slider/utils.js";
|
|
41
50
|
import { blockIcons, icons, illustrations } from "./icons/icons.js";
|
|
42
51
|
import { BlockIcon } from "./icons/block-icon.js";
|
|
43
52
|
import { GenericColorSwatch } from "./icons/generic-color-swatch.js";
|
|
53
|
+
import { JsxSvg } from "./icons/jsx-svg.js";
|
|
54
|
+
import { arrayMoveMultiple } from "./utilities/array-helpers.js";
|
|
55
|
+
import { camelCase, lowerFirst, upperFirst } from "./utilities/text-helpers.js";
|
|
44
56
|
export {
|
|
45
57
|
AnimatedVisibility,
|
|
46
58
|
AsyncMultiSelect,
|
|
@@ -58,13 +70,20 @@ export {
|
|
|
58
70
|
ComponentToggle,
|
|
59
71
|
ContainerPanel,
|
|
60
72
|
D as DecorativeTooltip,
|
|
73
|
+
DraggableList,
|
|
74
|
+
DraggableListItem,
|
|
61
75
|
Expandable,
|
|
76
|
+
FilePlaceholder,
|
|
62
77
|
GenericColorSwatch,
|
|
63
78
|
GradientEditor,
|
|
79
|
+
HStack,
|
|
80
|
+
ImagePlaceholder,
|
|
64
81
|
InputField,
|
|
82
|
+
JsxSvg,
|
|
65
83
|
LinkInput,
|
|
66
84
|
ListBox,
|
|
67
85
|
MatrixAlign,
|
|
86
|
+
MediaPlaceholder,
|
|
68
87
|
Menu,
|
|
69
88
|
MenuItem,
|
|
70
89
|
MenuSection,
|
|
@@ -72,6 +91,7 @@ export {
|
|
|
72
91
|
MultiSelect,
|
|
73
92
|
Notice,
|
|
74
93
|
NumberPicker,
|
|
94
|
+
OptionSelect,
|
|
75
95
|
P as Popover,
|
|
76
96
|
RSClearIndicator,
|
|
77
97
|
RSDropdownIndicator,
|
|
@@ -103,7 +123,13 @@ export {
|
|
|
103
123
|
ToggleButton,
|
|
104
124
|
T2 as Tooltip,
|
|
105
125
|
T as TriggeredPopover,
|
|
126
|
+
VStack,
|
|
127
|
+
arrayMoveMultiple,
|
|
106
128
|
blockIcons,
|
|
129
|
+
camelCase,
|
|
130
|
+
getColumnConfigOutputText,
|
|
107
131
|
icons,
|
|
108
|
-
illustrations
|
|
132
|
+
illustrations,
|
|
133
|
+
lowerFirst,
|
|
134
|
+
upperFirst
|
|
109
135
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $ as $9446cca9a3875146$export$7d15b64cf5a3a4c4, b as $9446cca9a3875146$export$b6268554fba451f } from "./number-rWqELA8W.js";
|
|
2
|
-
import { a as $5b160d28a433310d$export$c17fa47878dc55b6, b as $6db58dc88e78b024$export$2f817fcdc4b89ae0 } from "./useLocalizedStringFormatter-
|
|
2
|
+
import { a as $5b160d28a433310d$export$c17fa47878dc55b6, b as $6db58dc88e78b024$export$2f817fcdc4b89ae0 } from "./useLocalizedStringFormatter-WsEL47qR.js";
|
|
3
3
|
import { $ as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 } from "./NumberFormatter-LzoKy975.js";
|
|
4
4
|
var $2d805fd52bb48883$exports = {};
|
|
5
5
|
$2d805fd52bb48883$exports = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default, { useMemo, useLayoutEffect, useEffect, useRef, useCallback, useState, createContext, memo, useReducer, useContext } from "react";
|
|
3
|
-
import { r as reactDomExports } from "./index-
|
|
4
|
-
import {
|
|
3
|
+
import { r as reactDomExports } from "./index-BDk0TPWz.js";
|
|
4
|
+
import { c as clsx } from "./lite-pbIeT7tm.js";
|
|
5
5
|
function useCombinedRefs() {
|
|
6
6
|
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
7
7
|
refs[_key] = arguments[_key];
|
|
@@ -3636,7 +3636,7 @@ const getMultiValue = (ComponentToRender) => {
|
|
|
3636
3636
|
{
|
|
3637
3637
|
style,
|
|
3638
3638
|
ref: setNodeRef,
|
|
3639
|
-
className:
|
|
3639
|
+
className: clsx(
|
|
3640
3640
|
"focus:es-uic-outline-none",
|
|
3641
3641
|
// Make non-dragged tiles have no pointer events, so you don't see hover styles on things like the remove button.
|
|
3642
3642
|
CSS.Translate.toString(transform) && "[&_>_div]:es-uic-pointer-events-none",
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { l as $df56164dff5785e2$export$4338b53315abf666, d as $3ef42575df84b30b$export$9d1611c77c2fe928, f as $8ae05eaa5c114e9c$export$7f54fc3180508a52, e as $bdb11010cef70236$export$f680877a34711e37, g as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, n as $ff5963eb1fccf552$export$e08e3b67e392101e, o as $b5e257d569688ac6$export$535bd6ca7f90a273, k as $bdb11010cef70236$export$b4cc09c592e8fdb8, a as $64fa3d84918910a7$export$29f1550f4b0d4415, q as $64fa3d84918910a7$export$45fda7c47f93fd48, t as $64fa3d84918910a7$export$94b6d0abf7d33e8c, r as $64fa3d84918910a7$export$6d3443f2c48bfc20, c as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a, s as $64fa3d84918910a7$export$c62b8e45d58ddad9 } from "./utils-
|
|
2
|
+
import { l as $df56164dff5785e2$export$4338b53315abf666, d as $3ef42575df84b30b$export$9d1611c77c2fe928, f as $8ae05eaa5c114e9c$export$7f54fc3180508a52, e as $bdb11010cef70236$export$f680877a34711e37, g as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, n as $ff5963eb1fccf552$export$e08e3b67e392101e, o as $b5e257d569688ac6$export$535bd6ca7f90a273, k as $bdb11010cef70236$export$b4cc09c592e8fdb8, a as $64fa3d84918910a7$export$29f1550f4b0d4415, q as $64fa3d84918910a7$export$45fda7c47f93fd48, t as $64fa3d84918910a7$export$94b6d0abf7d33e8c, r as $64fa3d84918910a7$export$6d3443f2c48bfc20, c as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a, s as $64fa3d84918910a7$export$c62b8e45d58ddad9 } from "./utils-DIBzm1e4.js";
|
|
3
3
|
import { d as $4e85f108e88277b8$export$d688439359537581 } from "./RSPContexts-CrNYmadY.js";
|
|
4
|
-
import { b as $dd149f63282afbbf$export$f6211563215e3b37, c as $2a41e45df1593e64$export$d39e1813b3bdd0e1, a as $fc909762b330b746$export$61c6a8c84e605fb6, d as $44f671af83e7d9e0$export$2de4954e8ae13b9f } from "./tooltip-
|
|
4
|
+
import { b as $dd149f63282afbbf$export$f6211563215e3b37, c as $2a41e45df1593e64$export$d39e1813b3bdd0e1, a as $fc909762b330b746$export$61c6a8c84e605fb6, d as $44f671af83e7d9e0$export$2de4954e8ae13b9f } from "./tooltip-T6H9uF-Z.js";
|
|
5
5
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-DG2RfOUr.js";
|
|
6
6
|
import React__default, { useRef, useContext, useEffect, useMemo, createContext, useState, forwardRef } from "react";
|
|
7
7
|
import { $ as $62d8ded9296f3872$export$cfa2225e87938781, a as $5e3802645cc19319$export$1c3ebcada18427bf } from "./ariaHideOutside-ByKBPHmX.js";
|
|
8
|
-
import { c as $9bf71ea28793e738$export$1258395f99bf9cbf, $ as $9bf71ea28793e738$export$20e40289641fbbb6 } from "./FocusScope-
|
|
9
|
-
import { l as $e7801be82b4b2a53$export$4debdb1a3f0fa79e, g as $431fbd86ca7dc216$export$b204af158042fbac, d as $9ab94262bd0047c7$export$420e68273165f4ec, j as $c87311424ea30a05$export$fedb369cb70207f1, h as $6a99195332edec8b$export$80f3e147d781571c } from "./focusSafely-
|
|
10
|
-
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-
|
|
11
|
-
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-
|
|
12
|
-
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-
|
|
13
|
-
import { e as $ae1eeba8b9eafd08$export$5165eccb35aaadb5 } from "./usePress-
|
|
14
|
-
import { $ as $dbSRa$reactdom } from "./index-
|
|
15
|
-
import {
|
|
16
|
-
import { _ as __ } from "./default-i18n-
|
|
17
|
-
import { B as Button } from "./button-
|
|
8
|
+
import { c as $9bf71ea28793e738$export$1258395f99bf9cbf, $ as $9bf71ea28793e738$export$20e40289641fbbb6 } from "./FocusScope-B9b0VMib.js";
|
|
9
|
+
import { l as $e7801be82b4b2a53$export$4debdb1a3f0fa79e, g as $431fbd86ca7dc216$export$b204af158042fbac, d as $9ab94262bd0047c7$export$420e68273165f4ec, j as $c87311424ea30a05$export$fedb369cb70207f1, h as $6a99195332edec8b$export$80f3e147d781571c } from "./focusSafely-B0hyd-S4.js";
|
|
10
|
+
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-C7E5SkOi.js";
|
|
11
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-WsEL47qR.js";
|
|
12
|
+
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-BPJVSUyp.js";
|
|
13
|
+
import { e as $ae1eeba8b9eafd08$export$5165eccb35aaadb5 } from "./usePress-B42RawCH.js";
|
|
14
|
+
import { $ as $dbSRa$reactdom } from "./index-BDk0TPWz.js";
|
|
15
|
+
import { c as clsx } from "./lite-pbIeT7tm.js";
|
|
16
|
+
import { _ as __ } from "./default-i18n-Bk1GxDHz.js";
|
|
17
|
+
import { B as Button } from "./button-idVI4jmd.js";
|
|
18
18
|
const $f1ab8c75478c6f73$export$3351871ee4b288b8 = /* @__PURE__ */ React__default.forwardRef(({ children, ...props }, ref) => {
|
|
19
19
|
let isRegistered = useRef(false);
|
|
20
20
|
let prevContext = useContext($ae1eeba8b9eafd08$export$5165eccb35aaadb5);
|
|
@@ -891,6 +891,7 @@ const $de32f1b87079253c$export$3ddf2d174ce01153 = /* @__PURE__ */ forwardRef($de
|
|
|
891
891
|
* @param {number} props.containerPadding - Space that should be left between the popover and the edge of the container (the default container is browser window).
|
|
892
892
|
* @param {boolean} props.shouldFlip - If `true`, the popover should flip when there is not enough space.
|
|
893
893
|
* @param {Function} [props.shouldCloseOnInteractOutside=() => true] - Allows ignoring close events for certain elements. `(element: HTMLElement) => boolean`.
|
|
894
|
+
* @param {boolean} [props.hidden] - If `true`, the component is not rendered.
|
|
894
895
|
*
|
|
895
896
|
* @returns {JSX.Element} The Popover component.
|
|
896
897
|
*
|
|
@@ -942,8 +943,12 @@ const Popover = (props) => {
|
|
|
942
943
|
containerPadding,
|
|
943
944
|
shouldFlip,
|
|
944
945
|
shouldCloseOnInteractOutside = () => true,
|
|
946
|
+
hidden,
|
|
945
947
|
...other
|
|
946
948
|
} = props;
|
|
949
|
+
if (hidden) {
|
|
950
|
+
return null;
|
|
951
|
+
}
|
|
947
952
|
return /* @__PURE__ */ jsx(
|
|
948
953
|
$07b14b47974efb58$export$5b6b19405a83ff9d,
|
|
949
954
|
{
|
|
@@ -957,7 +962,7 @@ const Popover = (props) => {
|
|
|
957
962
|
offset,
|
|
958
963
|
crossOffset,
|
|
959
964
|
containerPadding,
|
|
960
|
-
className: ({ isEntering, isExiting }) =>
|
|
965
|
+
className: ({ isEntering, isExiting }) => clsx(
|
|
961
966
|
"es-uic-rounded-md es-uic-border es-uic-border-gray-200 es-uic-bg-white es-uic-shadow-lg es-uic-outline-none",
|
|
962
967
|
isEntering && "es-uic-outline es-uic-animate-in es-uic-fade-in-0 es-uic-slide-in-from-top-2 es-uic-fill-mode-forwards",
|
|
963
968
|
isExiting && "es-uic-outline es-uic-animate-out es-uic-fade-out-0 es-uic-slide-out-to-top-2 es-uic-fill-mode-forwards",
|
|
@@ -967,7 +972,7 @@ const Popover = (props) => {
|
|
|
967
972
|
children: /* @__PURE__ */ jsx(
|
|
968
973
|
$de32f1b87079253c$export$3ddf2d174ce01153,
|
|
969
974
|
{
|
|
970
|
-
className:
|
|
975
|
+
className: clsx("es-uic-p-1 es-uic-text-sm es-uic-outline-none", className),
|
|
971
976
|
...other,
|
|
972
977
|
children
|
|
973
978
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as _objectWithoutProperties, b as _slicedToArray, h as handleInputChange, d as _objectSpread2, e as _defineProperty, _ as _extends } from "./index-a301f526.esm-
|
|
1
|
+
import { a as _objectWithoutProperties, b as _slicedToArray, h as handleInputChange, d as _objectSpread2, e as _defineProperty, _ as _extends } from "./index-a301f526.esm-BzTuHLdr.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { useRef, useState, useEffect, useCallback, forwardRef } from "react";
|
|
4
|
-
import { u as useStateManager, S as Select } from "./Select-49a62830.esm-
|
|
5
|
-
import "./index-
|
|
4
|
+
import { u as useStateManager, S as Select } from "./Select-49a62830.esm-CKPmlkza.js";
|
|
5
|
+
import "./index-BDk0TPWz.js";
|
|
6
6
|
var _excluded = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading", "onInputChange", "filterOption"];
|
|
7
7
|
function useAsync(_ref) {
|
|
8
8
|
var _ref$defaultOptions = _ref.defaultOptions, propsDefaultOptions = _ref$defaultOptions === void 0 ? false : _ref$defaultOptions, _ref$cacheOptions = _ref.cacheOptions, cacheOptions = _ref$cacheOptions === void 0 ? false : _ref$cacheOptions, propsLoadOptions = _ref.loadOptions;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as useStateManager, S as Select } from "./Select-49a62830.esm-
|
|
2
|
-
import { _ as _extends } from "./index-a301f526.esm-
|
|
1
|
+
import { u as useStateManager, S as Select } from "./Select-49a62830.esm-CKPmlkza.js";
|
|
2
|
+
import { _ as _extends } from "./index-a301f526.esm-BzTuHLdr.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
|
-
import "./index-
|
|
5
|
+
import "./index-BDk0TPWz.js";
|
|
6
6
|
var StateManagedSelect = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
7
7
|
var baseSelectProps = useStateManager(props);
|
|
8
8
|
return /* @__PURE__ */ React.createElement(Select, _extends({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useRef, useCallback, useEffect } from "react";
|
|
2
|
-
import { j as $c87311424ea30a05$export$fedb369cb70207f1, g as $431fbd86ca7dc216$export$b204af158042fbac, k as $bbed8b41f857bcc0$export$24490316f764c430 } from "./focusSafely-
|
|
2
|
+
import { j as $c87311424ea30a05$export$fedb369cb70207f1, g as $431fbd86ca7dc216$export$b204af158042fbac, k as $bbed8b41f857bcc0$export$24490316f764c430 } from "./focusSafely-B0hyd-S4.js";
|
|
3
3
|
function $03deb23ff14920c4$export$4eaf04e54aa8eed6() {
|
|
4
4
|
let globalListeners = useRef(/* @__PURE__ */ new Map());
|
|
5
5
|
let addGlobalListener = useCallback((eventTarget, type, listener, options) => {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { g as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, o as $b5e257d569688ac6$export$535bd6ca7f90a273, d as $3ef42575df84b30b$export$9d1611c77c2fe928, e as $bdb11010cef70236$export$f680877a34711e37, a as $64fa3d84918910a7$export$29f1550f4b0d4415, c as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a, q as $64fa3d84918910a7$export$45fda7c47f93fd48, r as $64fa3d84918910a7$export$6d3443f2c48bfc20 } from "./utils-
|
|
2
|
+
import { g as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, o as $b5e257d569688ac6$export$535bd6ca7f90a273, d as $3ef42575df84b30b$export$9d1611c77c2fe928, e as $bdb11010cef70236$export$f680877a34711e37, a as $64fa3d84918910a7$export$29f1550f4b0d4415, c as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a, q as $64fa3d84918910a7$export$45fda7c47f93fd48, r as $64fa3d84918910a7$export$6d3443f2c48bfc20 } from "./utils-DIBzm1e4.js";
|
|
3
3
|
import React__default, { useEffect, useState, useRef, useCallback, useContext, useMemo, forwardRef, createContext } from "react";
|
|
4
|
-
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c, b as $e6afbd83fe6ebbd2$export$13f3202a3e5ddd5 } from "./useFocusable-
|
|
5
|
-
import { p as $c87311424ea30a05$export$78551043582a6a98, $ as $6179b936705e76d3$export$ae780daf29e6d456, t as $507fabe10e71c6fb$export$630ff653c5ada6a9, a as $507fabe10e71c6fb$export$b9b3dfddab17db27, e as $458b0a5536c1a7cf$export$40bfa8c7b0832715, d as $9ab94262bd0047c7$export$420e68273165f4ec } from "./focusSafely-
|
|
4
|
+
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c, b as $e6afbd83fe6ebbd2$export$13f3202a3e5ddd5 } from "./useFocusable-CHfpEdlE.js";
|
|
5
|
+
import { p as $c87311424ea30a05$export$78551043582a6a98, $ as $6179b936705e76d3$export$ae780daf29e6d456, t as $507fabe10e71c6fb$export$630ff653c5ada6a9, a as $507fabe10e71c6fb$export$b9b3dfddab17db27, e as $458b0a5536c1a7cf$export$40bfa8c7b0832715, d as $9ab94262bd0047c7$export$420e68273165f4ec } from "./focusSafely-B0hyd-S4.js";
|
|
6
6
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-DG2RfOUr.js";
|
|
7
|
-
import { $ as $dbSRa$reactdom } from "./index-
|
|
7
|
+
import { $ as $dbSRa$reactdom } from "./index-BDk0TPWz.js";
|
|
8
8
|
import { $ as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./number-rWqELA8W.js";
|
|
9
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
10
|
-
import {
|
|
9
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-BAcFg5GO.js";
|
|
10
|
+
import { c as clsx } from "./lite-pbIeT7tm.js";
|
|
11
11
|
function $9daab02d461809db$var$hasResizeObserver() {
|
|
12
12
|
return typeof window.ResizeObserver !== "undefined";
|
|
13
13
|
}
|
|
@@ -978,9 +978,9 @@ const Tooltip = (props) => {
|
|
|
978
978
|
triggerRef,
|
|
979
979
|
offset,
|
|
980
980
|
crossOffset,
|
|
981
|
-
className: ({ isEntering, isExiting }) =>
|
|
981
|
+
className: ({ isEntering, isExiting }) => clsx(
|
|
982
982
|
"es-uic-group",
|
|
983
|
-
"es-uic-z-20 es-uic-select-none es-uic-rounded-md es-uic-border es-uic-px-1.5 es-uic-py-0.5 es-uic-text-sm es-uic-shadow es-uic-backdrop-blur-xl es-uic-will-change-[transform,opacity]",
|
|
983
|
+
"es-uic-z-20 es-uic-select-none es-uic-rounded-md es-uic-border es-uic-px-1.5 es-uic-py-0.5 es-uic-text-sm es-uic-shadow es-uic-backdrop-blur-xl es-uic-will-change-[transform,opacity] es-uic-fill-mode-forwards",
|
|
984
984
|
theme === "light" && "es-uic-border-gray-200 es-uic-bg-white/60 es-uic-text-gray-700",
|
|
985
985
|
theme === "dark" && "es-uic-border-gray-600 es-uic-bg-black/60 es-uic-text-gray-100",
|
|
986
986
|
isEntering && "es-uic-duration-300 es-uic-ease-out es-uic-animate-in es-uic-fade-in",
|
|
@@ -996,7 +996,7 @@ const Tooltip = (props) => {
|
|
|
996
996
|
width: 8,
|
|
997
997
|
height: 8,
|
|
998
998
|
viewBox: "0 0 8 8",
|
|
999
|
-
className:
|
|
999
|
+
className: clsx(
|
|
1000
1000
|
"es-uic-m-px es-uic-stroke-none es-uic-drop-shadow-sm",
|
|
1001
1001
|
theme === "light" && "es-uic-fill-gray-200",
|
|
1002
1002
|
theme === "dark" && "es-uic-fill-gray-600",
|
|
@@ -1075,7 +1075,7 @@ const DecorativeTooltip = (props) => {
|
|
|
1075
1075
|
"div",
|
|
1076
1076
|
{
|
|
1077
1077
|
ref,
|
|
1078
|
-
className:
|
|
1078
|
+
className: clsx("es-uic-inline", wrapperClassName),
|
|
1079
1079
|
...$3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, focusWithinProps),
|
|
1080
1080
|
children
|
|
1081
1081
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-
|
|
1
|
+
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-DIBzm1e4.js";
|
|
2
2
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-DG2RfOUr.js";
|
|
3
|
-
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-
|
|
4
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-
|
|
3
|
+
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-CHfpEdlE.js";
|
|
4
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-B42RawCH.js";
|
|
5
5
|
function $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {
|
|
6
6
|
let {
|
|
7
7
|
elementType = "button",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-
|
|
1
|
+
import { f as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-DIBzm1e4.js";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
3
|
function $e9faafb641e167db$export$90fc3a17d93f704c(ref, event, handler, options) {
|
|
4
4
|
let handleEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(handler);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as $507fabe10e71c6fb$export$b9b3dfddab17db27, b as $507fabe10e71c6fb$export$ec71b4b83ac08ec3, c as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, d as $9ab94262bd0047c7$export$420e68273165f4ec } from "./focusSafely-
|
|
1
|
+
import { a as $507fabe10e71c6fb$export$b9b3dfddab17db27, b as $507fabe10e71c6fb$export$ec71b4b83ac08ec3, c as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, d as $9ab94262bd0047c7$export$420e68273165f4ec } from "./focusSafely-B0hyd-S4.js";
|
|
2
2
|
import { useRef, useState, useCallback } from "react";
|
|
3
3
|
function $f7dceffc5ad7768b$export$4e328f61c538687f(props = {}) {
|
|
4
4
|
let { autoFocus = false, isTextInput, within } = props;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, h as $6a99195332edec8b$export$80f3e147d781571c, l as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./focusSafely-
|
|
2
|
-
import { l as $df56164dff5785e2$export$4338b53315abf666, d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-
|
|
1
|
+
import { c as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, h as $6a99195332edec8b$export$80f3e147d781571c, l as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./focusSafely-B0hyd-S4.js";
|
|
2
|
+
import { l as $df56164dff5785e2$export$4338b53315abf666, d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-DIBzm1e4.js";
|
|
3
3
|
import React__default, { useRef, useEffect, useContext } from "react";
|
|
4
4
|
function $93925083ecbb358c$export$48d1ea6320830260(handler) {
|
|
5
5
|
if (!handler)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-
|
|
1
|
+
import { f as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-DIBzm1e4.js";
|
|
2
2
|
import { useRef, useEffect } from "react";
|
|
3
3
|
function $99facab73266f662$export$5add1d006293d136(ref, initialValue, onReset) {
|
|
4
4
|
let resetValue = useRef(initialValue);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect, createContext, useMemo, useContext, useState, useRef } from "react";
|
|
2
|
-
import { i as $507fabe10e71c6fb$export$8397ddfc504fdb9a } from "./focusSafely-
|
|
3
|
-
import { g as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, f as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-
|
|
2
|
+
import { i as $507fabe10e71c6fb$export$8397ddfc504fdb9a } from "./focusSafely-B0hyd-S4.js";
|
|
3
|
+
import { g as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, f as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-DIBzm1e4.js";
|
|
4
4
|
function $e93e671b31057976$export$b8473d3665f3a75a(props, state, ref) {
|
|
5
5
|
let { validationBehavior, focus } = props;
|
|
6
6
|
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-
|
|
1
|
+
import { a as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-B9b0VMib.js";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import { g as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./utils-
|
|
3
|
+
import { g as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./utils-DIBzm1e4.js";
|
|
4
4
|
function $83013635b024ae3d$export$eac1895992b9f3d6(ref, options) {
|
|
5
5
|
let isDisabled = options === null || options === void 0 ? void 0 : options.isDisabled;
|
|
6
6
|
let [hasTabbableChild, setHasTabbableChild] = useState(false);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { e as $bdb11010cef70236$export$f680877a34711e37 } from "./utils-
|
|
2
|
-
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-
|
|
1
|
+
import { e as $bdb11010cef70236$export$f680877a34711e37 } from "./utils-DIBzm1e4.js";
|
|
2
|
+
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-C7E5SkOi.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 { e as $bdb11010cef70236$export$f680877a34711e37 } from "./utils-
|
|
1
|
+
import { e as $bdb11010cef70236$export$f680877a34711e37 } from "./utils-DIBzm1e4.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,4 +1,4 @@
|
|
|
1
|
-
import { $ as $7af3f5b51489e0b5$export$253fe78d46329472, a as $7613b1592d41b092$export$6cd28814d92fa9c9, b as $d496c0a20b6e58ec$export$6c8a5aaad13c9852 } from "./SelectionManager-
|
|
1
|
+
import { $ as $7af3f5b51489e0b5$export$253fe78d46329472, a as $7613b1592d41b092$export$6cd28814d92fa9c9, b as $d496c0a20b6e58ec$export$6c8a5aaad13c9852 } from "./SelectionManager-sedvcM-1.js";
|
|
2
2
|
import { useMemo, useCallback, useRef, useEffect } from "react";
|
|
3
3
|
class $a02d57049d202695$export$d085fb9e920b5ca7 {
|
|
4
4
|
*[Symbol.iterator]() {
|
package/dist/{useLocalizedStringFormatter-Prmz0h0A.js → useLocalizedStringFormatter-WsEL47qR.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
1
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-BAcFg5GO.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,15 +1,15 @@
|
|
|
1
|
-
import { f as $8ae05eaa5c114e9c$export$7f54fc3180508a52, d as $3ef42575df84b30b$export$9d1611c77c2fe928, e as $bdb11010cef70236$export$f680877a34711e37, n as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./utils-
|
|
1
|
+
import { f as $8ae05eaa5c114e9c$export$7f54fc3180508a52, d as $3ef42575df84b30b$export$9d1611c77c2fe928, e as $bdb11010cef70236$export$f680877a34711e37, n as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./utils-DIBzm1e4.js";
|
|
2
2
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-DG2RfOUr.js";
|
|
3
|
-
import { c as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, d as $9ab94262bd0047c7$export$420e68273165f4ec, x as $c87311424ea30a05$export$186c6964ca17d99, u as $c87311424ea30a05$export$a11b0059900ceec8, j as $c87311424ea30a05$export$fedb369cb70207f1, e as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./focusSafely-
|
|
4
|
-
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-
|
|
3
|
+
import { c as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, d as $9ab94262bd0047c7$export$420e68273165f4ec, x as $c87311424ea30a05$export$186c6964ca17d99, u as $c87311424ea30a05$export$a11b0059900ceec8, j as $c87311424ea30a05$export$fedb369cb70207f1, e as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./focusSafely-B0hyd-S4.js";
|
|
4
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-aHn6-wRk.js";
|
|
5
5
|
import { useCallback, useEffect, useRef, useMemo, useState } from "react";
|
|
6
|
-
import { c as $e5be200c675c3b3a$export$a763b9476acd3eb, $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10 } from "./useFormValidationState-
|
|
7
|
-
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-
|
|
8
|
-
import { b as $2d73ec29415bd339$export$712718f7aec83d5 } from "./Input-
|
|
9
|
-
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-
|
|
10
|
-
import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "./useNumberFormatter-
|
|
6
|
+
import { c as $e5be200c675c3b3a$export$a763b9476acd3eb, $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10 } from "./useFormValidationState-CdYmOaXI.js";
|
|
7
|
+
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-XlYPKgwX.js";
|
|
8
|
+
import { b as $2d73ec29415bd339$export$712718f7aec83d5 } from "./Input-BJA4rmIo.js";
|
|
9
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-WsEL47qR.js";
|
|
10
|
+
import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "./useNumberFormatter-mhdYLxWQ.js";
|
|
11
11
|
import { a as $319e236875307eab$export$d10ae4f68404609a, $ as $319e236875307eab$export$a9b970dcc4ae71a9 } from "./LiveAnnouncer-IsokfWQ5.js";
|
|
12
|
-
import { $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6 } from "./textSelection-
|
|
12
|
+
import { $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6 } from "./textSelection-BRZdHY-4.js";
|
|
13
13
|
import { a as $9446cca9a3875146$export$cb6e0bb50bc19463, $ as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./number-rWqELA8W.js";
|
|
14
14
|
import { $ as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 } from "./NumberFormatter-LzoKy975.js";
|
|
15
15
|
function $7d0a636d7a4dcefd$export$2123ff2b87c81ca(props, ref) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
1
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-BAcFg5GO.js";
|
|
2
2
|
import { $ as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 } from "./NumberFormatter-LzoKy975.js";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
function $a916eb452884faea$export$b7a616150fdb9f44(options = {}) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6, a as $14c0b72509d70225$export$b0d6fa1ab32e3295, b as $14c0b72509d70225$export$16a4697467175487 } from "./textSelection-
|
|
1
|
+
import { $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6, a as $14c0b72509d70225$export$b0d6fa1ab32e3295, b as $14c0b72509d70225$export$16a4697467175487 } from "./textSelection-BRZdHY-4.js";
|
|
2
2
|
import React__default, { useContext, createContext, useState, useRef, useMemo, useEffect } from "react";
|
|
3
|
-
import { f as $8ae05eaa5c114e9c$export$7f54fc3180508a52, d as $3ef42575df84b30b$export$9d1611c77c2fe928, n as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./utils-
|
|
4
|
-
import { n as $c87311424ea30a05$export$b7d78993b74f766d, o as $c87311424ea30a05$export$9ac100e40613ea10, p as $c87311424ea30a05$export$78551043582a6a98, q as $c87311424ea30a05$export$7bef049ce92e4224, m as $7215afc6de606d6b$export$de79e2c695e052f3, r as $6a7db85432448f7f$export$29bf1b5f2c56cf63, g as $431fbd86ca7dc216$export$b204af158042fbac, s as $6a7db85432448f7f$export$60278871457622de, f as $431fbd86ca7dc216$export$f21a1ffae260145a, l as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./focusSafely-
|
|
3
|
+
import { f as $8ae05eaa5c114e9c$export$7f54fc3180508a52, d as $3ef42575df84b30b$export$9d1611c77c2fe928, n as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./utils-DIBzm1e4.js";
|
|
4
|
+
import { n as $c87311424ea30a05$export$b7d78993b74f766d, o as $c87311424ea30a05$export$9ac100e40613ea10, p as $c87311424ea30a05$export$78551043582a6a98, q as $c87311424ea30a05$export$7bef049ce92e4224, m as $7215afc6de606d6b$export$de79e2c695e052f3, r as $6a7db85432448f7f$export$29bf1b5f2c56cf63, g as $431fbd86ca7dc216$export$b204af158042fbac, s as $6a7db85432448f7f$export$60278871457622de, f as $431fbd86ca7dc216$export$f21a1ffae260145a, l as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./focusSafely-B0hyd-S4.js";
|
|
5
5
|
const $ea8dcbcb9ea1b556$var$RouterContext = /* @__PURE__ */ createContext({
|
|
6
6
|
isNative: true,
|
|
7
7
|
open: $ea8dcbcb9ea1b556$var$openSyntheticLink,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-
|
|
1
|
+
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-DIBzm1e4.js";
|
|
2
2
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-DG2RfOUr.js";
|
|
3
|
-
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-
|
|
4
|
-
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-
|
|
5
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-
|
|
3
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-aHn6-wRk.js";
|
|
4
|
+
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-CHfpEdlE.js";
|
|
5
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-B42RawCH.js";
|
|
6
6
|
function $d2c8e2b0480f3f34$export$cbe85ee05b554577(props, state, ref) {
|
|
7
7
|
let { isDisabled = false, isReadOnly = false, value, name, children, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, validationState = "valid", isInvalid } = props;
|
|
8
8
|
let onChange = (e) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./focusSafely-
|
|
1
|
+
import { e as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./focusSafely-B0hyd-S4.js";
|
|
2
2
|
function $3017fa7ffdddec74$export$8042c6c013fd5226(props = {}) {
|
|
3
3
|
let { isReadOnly } = props;
|
|
4
4
|
let [isSelected, setSelected] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.isSelected, props.defaultSelected || false, props.onChange);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Move multiple array items to a different position with direction control. Returns a new array with the items moved.
|
|
3
|
+
*
|
|
4
|
+
* @param {Array} array - The original array.
|
|
5
|
+
* @param {Array} fromIndices - An array of indices of the items to move.
|
|
6
|
+
* @param {number} to - The index to move the items to.
|
|
7
|
+
* @param {'before' | 'after'} direction - The direction to move the items ('before' or 'after').
|
|
8
|
+
*
|
|
9
|
+
* @returns {Array} - The array with the items moved.
|
|
10
|
+
*
|
|
11
|
+
* @preserve
|
|
12
|
+
*/
|
|
13
|
+
const arrayMoveMultiple = (array, fromIndices, to, direction = "before") => {
|
|
14
|
+
let newArray = array.slice();
|
|
15
|
+
fromIndices.sort((a, b) => b - a);
|
|
16
|
+
const itemsToMove = fromIndices.map((index) => newArray.splice(index, 1)[0]);
|
|
17
|
+
let insertAt = to;
|
|
18
|
+
if (direction === "after") {
|
|
19
|
+
insertAt += 1;
|
|
20
|
+
const minFromIndex = Math.min(...fromIndices);
|
|
21
|
+
if (to >= minFromIndex) {
|
|
22
|
+
insertAt -= 1;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
newArray.splice(insertAt, 0, ...itemsToMove.reverse());
|
|
26
|
+
return newArray;
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
arrayMoveMultiple
|
|
30
|
+
};
|
|
@@ -33,7 +33,7 @@ function deCap(match, endOfWord) {
|
|
|
33
33
|
/**
|
|
34
34
|
* Returns the string with its first character converted to uppercase.
|
|
35
35
|
*
|
|
36
|
-
* @param {string}
|
|
36
|
+
* @param {string} input - String to convert.
|
|
37
37
|
*
|
|
38
38
|
* @return {string} string with its first character converted to uppercase.
|
|
39
39
|
*
|
|
@@ -42,7 +42,20 @@ function deCap(match, endOfWord) {
|
|
|
42
42
|
*
|
|
43
43
|
* @preserve
|
|
44
44
|
*/
|
|
45
|
-
const upperFirst = (
|
|
45
|
+
const upperFirst = (input) => {
|
|
46
|
+
if (typeof input === "undefined") {
|
|
47
|
+
return "";
|
|
48
|
+
}
|
|
49
|
+
if (input === true) {
|
|
50
|
+
return "True";
|
|
51
|
+
} else if (input === false) {
|
|
52
|
+
return "False";
|
|
53
|
+
}
|
|
54
|
+
if (input.length < 2) {
|
|
55
|
+
return input.toUpperCase();
|
|
56
|
+
}
|
|
57
|
+
return input.charAt(0).toUpperCase() + input.slice(1);
|
|
58
|
+
};
|
|
46
59
|
/**
|
|
47
60
|
* Returns a camelCase-formatted string.
|
|
48
61
|
*
|
|
@@ -62,7 +75,7 @@ const camelCase = (input) => lowerFirst(stringCamelCase(input ?? ""));
|
|
|
62
75
|
/**
|
|
63
76
|
* Returns the string with its first character converted to lowercase.
|
|
64
77
|
*
|
|
65
|
-
* @param {string}
|
|
78
|
+
* @param {string} input - String to convert.
|
|
66
79
|
*
|
|
67
80
|
* @return {string} string with its first character converted to lowercase.
|
|
68
81
|
*
|
|
@@ -71,7 +84,20 @@ const camelCase = (input) => lowerFirst(stringCamelCase(input ?? ""));
|
|
|
71
84
|
*
|
|
72
85
|
* @preserve
|
|
73
86
|
*/
|
|
74
|
-
const lowerFirst = (
|
|
87
|
+
const lowerFirst = (input) => {
|
|
88
|
+
if (typeof input === "undefined") {
|
|
89
|
+
return "";
|
|
90
|
+
}
|
|
91
|
+
if (input === true) {
|
|
92
|
+
return "true";
|
|
93
|
+
} else if (input === false) {
|
|
94
|
+
return "false";
|
|
95
|
+
}
|
|
96
|
+
if ((input == null ? void 0 : input.length) < 2) {
|
|
97
|
+
return input.toLowerCase();
|
|
98
|
+
}
|
|
99
|
+
return input.charAt(0).toLowerCase() + input.slice(1);
|
|
100
|
+
};
|
|
75
101
|
export {
|
|
76
102
|
camelCase,
|
|
77
103
|
lowerFirst,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default, { useRef, useCallback, useState, useContext, useEffect, useMemo, createContext } from "react";
|
|
2
|
-
import { $ as $dbSRa$reactdom } from "./index-
|
|
2
|
+
import { $ as $dbSRa$reactdom } from "./index-BDk0TPWz.js";
|
|
3
3
|
const $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c = typeof document !== "undefined" ? React__default.useLayoutEffect : () => {
|
|
4
4
|
};
|
|
5
5
|
function $8ae05eaa5c114e9c$export$7f54fc3180508a52(fn) {
|
package/dist/wp.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './assets/wp.css';
|