@eightshift/ui-components 1.3.2 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Button-DTARR6Ff.js → Button-uYE9D_E3.js} +6 -5
- package/dist/{ColorSwatch-5bZ_yIMB.js → ColorSwatch-Bev-9Vbr.js} +4 -4
- package/dist/{Dialog-DJgS0mAg.js → Dialog-CGE2ficT.js} +17 -15
- package/dist/{FieldError-CviphIN5.js → FieldError-CBPJ4Xx8.js} +2 -2
- package/dist/{FocusScope-BjM5iOQC.js → FocusScope-CVd6C65L.js} +24 -8
- package/dist/{GridList-DjRnMEae.js → GridList-PBJsm70G.js} +156 -116
- package/dist/{Group-BQu67pVS.js → Group-WZgNv9RE.js} +3 -3
- package/dist/Hidden-YSmyVF_5.js +45 -0
- package/dist/{Input-DWRQF0ro.js → Input-CaS4qmLb.js} +10 -9
- package/dist/{Label-BXvY41yE.js → Label-yZgqvhXc.js} +3 -2
- package/dist/ListBox-MZyPpwvj.js +567 -0
- package/dist/{Select-49a62830.esm-BnlXlUnT.js → Select-49a62830.esm-CqLHaIei.js} +1 -1
- package/dist/{SelectionManager-JxXmb3-k.js → SelectionManager-CvRaua4m.js} +1580 -1484
- package/dist/{Separator-CX64zwq8.js → Separator-C7Few7L6.js} +80 -62
- package/dist/{Slider-Clme2C36.js → Slider-D8a63VhT.js} +14 -12
- package/dist/{Text-qjognpzK.js → Text-D8qh3_U7.js} +1 -1
- package/dist/{VisuallyHidden-BZPezMV5.js → VisuallyHidden-DD480kAb.js} +2 -2
- package/dist/_commonjsHelpers-CUmg6egw.js +6 -0
- package/dist/{ariaHideOutside-BZ5z6iCD.js → ariaHideOutside-BzxkODNq.js} +1 -9
- package/dist/assets/style.css +1 -1
- package/dist/assets/wp-ui-enhancements.css +1 -1
- package/dist/components/animated-visibility/animated-visibility.js +311 -198
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/button/button.js +274 -9
- package/dist/components/checkbox/checkbox.js +171 -1
- package/dist/components/color-pickers/color-picker.js +1 -1
- package/dist/components/color-pickers/color-swatch.js +3 -3
- package/dist/components/color-pickers/gradient-editor.js +3 -3
- package/dist/components/color-pickers/solid-color-picker.js +46 -32
- package/dist/components/component-toggle/component-toggle.js +2 -2
- package/dist/components/container-panel/container-panel.js +2 -2
- package/dist/components/draggable-list/draggable-list-item.js +3 -3
- package/dist/components/draggable-list/draggable-list.js +3671 -6
- package/dist/components/expandable/expandable.js +7 -4
- package/dist/components/index.js +4 -4
- package/dist/components/input-field/input-field.js +7 -7
- package/dist/components/link-input/link-input.js +1519 -489
- package/dist/components/list-box/list-box.js +2 -2
- package/dist/components/matrix-align/matrix-align.js +3 -3
- package/dist/components/menu/menu.js +164 -466
- package/dist/components/modal/modal.js +7 -7
- package/dist/components/number-picker/number-picker.js +22 -17
- package/dist/components/option-select/option-select.js +2 -2
- package/dist/components/placeholders/file-placeholder.js +1 -1
- package/dist/components/popover/popover.js +3 -3
- package/dist/components/radio/radio.js +13 -13
- package/dist/components/repeater/repeater-context.js +5 -0
- package/dist/components/repeater/repeater-item.js +46 -91
- package/dist/components/repeater/repeater.js +5130 -175
- package/dist/components/responsive/responsive-legacy.js +3 -3
- package/dist/components/responsive/responsive.js +3 -3
- package/dist/components/responsive-preview/responsive-preview.js +1 -1
- package/dist/components/select/async-multi-select.js +3 -3
- package/dist/components/select/async-single-select.js +2 -2
- package/dist/components/select/custom-select-default-components.js +1 -1
- package/dist/components/select/multi-select-components.js +1 -1
- package/dist/components/select/multi-select.js +5 -5
- package/dist/components/select/react-select-component-wrappers.js +1 -1
- package/dist/components/select/single-select.js +2 -2
- package/dist/components/select/styles.js +1 -1
- package/dist/components/slider/column-config-slider.js +3 -3
- package/dist/components/slider/slider.js +3 -3
- package/dist/components/slider/utils.js +1 -1
- package/dist/components/tabs/tabs.js +46 -71
- package/dist/components/toggle/switch.js +6 -6
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +7 -7
- package/dist/components/tooltip/tooltip.js +3 -3
- package/dist/{context-BG_1RnbC.js → context-Bon2Gyx5.js} +1 -1
- package/dist/{default-i18n-BqwLkgZv.js → default-i18n-BqWys-1G.js} +1 -1
- package/dist/{focusSafely-DGZ4R5fj.js → focusSafely-PMGZgZ9-.js} +33 -26
- package/dist/getScrollParent-B3XgpXBL.js +10 -0
- package/dist/icons/icons.js +205 -0
- package/dist/icons/jsx-svg.js +2 -2
- package/dist/{index-CAPcSs9K.js → index-BTCzc3zb.js} +1 -1
- package/dist/{index-a301f526.esm-ByOfDxiG.js → index-a301f526.esm-B9tWL9yi.js} +80 -603
- package/dist/index.js +4 -4
- package/dist/{intlStrings-CkuKCPkT.js → intlStrings-KQxgp5tS.js} +14 -9
- package/dist/{multi-select-components-7vKCF8dG.js → multi-select-components-DTvEidE3.js} +1 -1
- package/dist/react-jsx-parser.min-CAGfntg1.js +13425 -0
- package/dist/{react-select-async.esm-5zW9Dv9E.js → react-select-async.esm-8Rba_3KV.js} +3 -3
- package/dist/{react-select.esm-Bi6uzjbT.js → react-select.esm-DkSeQzOP.js} +3 -3
- package/dist/{textSelection-BLyBtNe2.js → textSelection-DS7-670U.js} +1 -1
- package/dist/{tooltip-DSk8I1SO.js → tooltip-C9mg1CP5.js} +54 -18
- package/dist/{useButton-EJ9c8fmq.js → useButton-BPY4yXUo.js} +3 -3
- package/dist/{useEvent-Cxq_BzP_.js → useEvent-DDLT851Z.js} +1 -1
- package/dist/{useFocusRing-Dg5Y_10S.js → useFocusRing-DsxEaA2J.js} +1 -1
- package/dist/{useFocusable-CQZyQp4q.js → useFocusable-BFKHuYS9.js} +2 -2
- package/dist/{useFormReset-DJMtIgSL.js → useFormReset-BCPbwfnH.js} +1 -1
- package/dist/{useFormValidationState-DDC_nImg.js → useFormValidationState-DC5jbhBW.js} +2 -2
- package/dist/{useHasTabbableChild-M3O3VIil.js → useHasTabbableChild-Byd7ylXD.js} +2 -2
- package/dist/{useLabel-6NqYraET.js → useLabel-DuJhImKc.js} +2 -2
- package/dist/{useLabels-D2RG7TdI.js → useLabels-JaBafrnV.js} +1 -1
- package/dist/{useListData-BpYQj7kK.js → useListData-B5Pk32vd.js} +6 -3
- package/dist/{useListState-IllYYnXV.js → useListState-Csx05BmT.js} +6 -3
- package/dist/{useLocalizedStringFormatter-Cwm_siat.js → useLocalizedStringFormatter-CVIIVTgz.js} +1 -1
- package/dist/useMenuTrigger-CMgzyMKW.js +246 -0
- package/dist/{useNumberFieldState-CVJOJnF1.js → useNumberFieldState-BVFqhboT.js} +12 -11
- package/dist/{useNumberFormatter-DVZRQXk3.js → useNumberFormatter-BEeBSV-N.js} +1 -1
- package/dist/{usePress-CiXj8dLE.js → usePress-CY8MpqYD.js} +58 -16
- package/dist/useSingleSelectListState-CzZUgAt0.js +37 -0
- package/dist/{useToggle-CV-IX6nL.js → useToggle-CJp2Fh_L.js} +4 -4
- package/dist/{useToggleState-DHIdITtQ.js → useToggleState-B4--Ski0.js} +1 -1
- package/dist/{utils-DC-UMp1n.js → utils-B4IdLYb8.js} +48 -85
- package/package.json +24 -21
- package/dist/Checkbox-CiJIVbAP.js +0 -174
- package/dist/ListBox-DTKMdjQC.js +0 -4216
- package/dist/_commonjsHelpers-DWwsNxpa.js +0 -8
- package/dist/button-IxfzzzbP.js +0 -277
- package/dist/react-jsx-parser.min-DhrYeqLL.js +0 -4563
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import { D as DecorativeTooltip } from "../../tooltip-
|
|
3
|
+
import { D as DecorativeTooltip } from "../../tooltip-C9mg1CP5.js";
|
|
4
4
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
5
|
-
import { _ as __, s as sprintf } from "../../default-i18n-
|
|
5
|
+
import { _ as __, s as sprintf } from "../../default-i18n-BqWys-1G.js";
|
|
6
6
|
import { BreakpointPreview } from "../breakpoint-preview/breakpoint-preview.js";
|
|
7
7
|
import { upperFirst } from "../../utilities/es-dash.js";
|
|
8
8
|
import { icons } from "../../icons/icons.js";
|
|
9
|
-
import {
|
|
9
|
+
import { Button } from "../button/button.js";
|
|
10
10
|
import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
|
|
11
11
|
import { ToggleButton } from "../toggle-button/toggle-button.js";
|
|
12
12
|
import { BaseControl } from "../base-control/base-control.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import { D as DecorativeTooltip } from "../../tooltip-
|
|
3
|
+
import { D as DecorativeTooltip } from "../../tooltip-C9mg1CP5.js";
|
|
4
4
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
5
|
-
import { _ as __, s as sprintf } from "../../default-i18n-
|
|
5
|
+
import { _ as __, s as sprintf } from "../../default-i18n-BqWys-1G.js";
|
|
6
6
|
import { BreakpointPreview } from "../breakpoint-preview/breakpoint-preview.js";
|
|
7
7
|
import { upperFirst } from "../../utilities/es-dash.js";
|
|
8
8
|
import { icons } from "../../icons/icons.js";
|
|
9
9
|
import { Menu, MenuItem, MenuSeparator, SubMenuItem } from "../menu/menu.js";
|
|
10
10
|
import { ResponsivePreview } from "../responsive-preview/responsive-preview.js";
|
|
11
|
-
import {
|
|
11
|
+
import { ButtonGroup, Button } from "../button/button.js";
|
|
12
12
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
13
13
|
import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
|
|
14
14
|
import { ToggleButton } from "../toggle-button/toggle-button.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { _ as __ } from "../../default-i18n-
|
|
2
|
+
import { _ as __ } from "../../default-i18n-BqWys-1G.js";
|
|
3
3
|
import { upperFirst } from "../../utilities/es-dash.js";
|
|
4
4
|
import { BreakpointPreview } from "../breakpoint-preview/breakpoint-preview.js";
|
|
5
5
|
import { icons } from "../../icons/icons.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useId } from "react";
|
|
3
|
-
import { A as AsyncSelect$1 } from "../../react-select-async.esm-
|
|
4
|
-
import { D as DndContext, g as getDragEndHandler, S as SortableContext, a as getMultiValue, b as getMultiValueRemove } from "../../multi-select-components-
|
|
3
|
+
import { A as AsyncSelect$1 } from "../../react-select-async.esm-8Rba_3KV.js";
|
|
4
|
+
import { D as DndContext, g as getDragEndHandler, S as SortableContext, a as getMultiValue, b as getMultiValueRemove } from "../../multi-select-components-DTvEidE3.js";
|
|
5
5
|
import { r as restrictToParentElement } from "../../modifiers.esm-BuJQPI1X.js";
|
|
6
6
|
import { CustomSelectDefaultMultiValueRemove, CustomSelectDefaultDropdownIndicator, CustomSelectDefaultClearIndicator } from "./custom-select-default-components.js";
|
|
7
7
|
import { BaseControl } from "../base-control/base-control.js";
|
|
8
8
|
import { eightshiftSelectClasses } from "./styles.js";
|
|
9
|
-
import { c as components } from "../../index-a301f526.esm-
|
|
9
|
+
import { c as components } from "../../index-a301f526.esm-B9tWL9yi.js";
|
|
10
10
|
/**
|
|
11
11
|
* Multi-select menu with async loading and re-ordering.
|
|
12
12
|
*
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { A as AsyncSelect$1 } from "../../react-select-async.esm-
|
|
2
|
+
import { A as AsyncSelect$1 } from "../../react-select-async.esm-8Rba_3KV.js";
|
|
3
3
|
import { CustomSelectDefaultDropdownIndicator, CustomSelectDefaultClearIndicator } from "./custom-select-default-components.js";
|
|
4
4
|
import { BaseControl } from "../base-control/base-control.js";
|
|
5
5
|
import { eightshiftSelectClasses } from "./styles.js";
|
|
6
|
-
import { c as components } from "../../index-a301f526.esm-
|
|
6
|
+
import { c as components } from "../../index-a301f526.esm-B9tWL9yi.js";
|
|
7
7
|
/**
|
|
8
8
|
* Select menu with async loading.
|
|
9
9
|
*
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import { icons } from "../../icons/icons.js";
|
|
4
4
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
5
|
-
import { c as components } from "../../index-a301f526.esm-
|
|
5
|
+
import { c as components } from "../../index-a301f526.esm-B9tWL9yi.js";
|
|
6
6
|
/**
|
|
7
7
|
* Default dropdown indicator for CustomSelect.
|
|
8
8
|
*
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useId } from "react";
|
|
3
|
-
import { S as StateManagedSelect$1 } from "../../react-select.esm-
|
|
4
|
-
import { D as DndContext, g as getDragEndHandler, S as SortableContext, a as getMultiValue, b as getMultiValueRemove } from "../../multi-select-components-
|
|
3
|
+
import { S as StateManagedSelect$1 } from "../../react-select.esm-DkSeQzOP.js";
|
|
4
|
+
import { D as DndContext, g as getDragEndHandler, S as SortableContext, a as getMultiValue, b as getMultiValueRemove } from "../../multi-select-components-DTvEidE3.js";
|
|
5
5
|
import { r as restrictToParentElement } from "../../modifiers.esm-BuJQPI1X.js";
|
|
6
6
|
import { CustomSelectDefaultMultiValueRemove, CustomSelectDefaultDropdownIndicator, CustomSelectDefaultClearIndicator } from "./custom-select-default-components.js";
|
|
7
7
|
import { getValue, customOnChange } from "./shared.js";
|
|
8
8
|
import { BaseControl } from "../base-control/base-control.js";
|
|
9
9
|
import { eightshiftSelectClasses } from "./styles.js";
|
|
10
|
-
import { c as components } from "../../index-a301f526.esm-
|
|
10
|
+
import { c as components } from "../../index-a301f526.esm-B9tWL9yi.js";
|
|
11
11
|
/**
|
|
12
12
|
* Multi-select menu with re-orderable items.
|
|
13
13
|
*
|
|
@@ -85,7 +85,7 @@ const MultiSelect = (props) => {
|
|
|
85
85
|
...additionalProps
|
|
86
86
|
} = props;
|
|
87
87
|
const idBase = useId();
|
|
88
|
-
const value = rawValue.map((item, index) => ({
|
|
88
|
+
const value = getValue(simpleValue, rawValue, options).map((item, index) => ({
|
|
89
89
|
...item,
|
|
90
90
|
id: `${idBase}-${index}`
|
|
91
91
|
}));
|
|
@@ -112,7 +112,7 @@ const MultiSelect = (props) => {
|
|
|
112
112
|
isMulti: true,
|
|
113
113
|
unstyled: true,
|
|
114
114
|
options: options.map((item) => ({ id: item.value, ...item })),
|
|
115
|
-
value
|
|
115
|
+
value,
|
|
116
116
|
onChange: (v) => customOnChange(simpleValue, v, onChange),
|
|
117
117
|
closeMenuOnSelect: !keepMenuOpenAfterSelect,
|
|
118
118
|
isClearable: clearable,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { S as StateManagedSelect$1 } from "../../react-select.esm-
|
|
2
|
+
import { S as StateManagedSelect$1 } from "../../react-select.esm-DkSeQzOP.js";
|
|
3
3
|
import { CustomSelectDefaultDropdownIndicator, CustomSelectDefaultClearIndicator } from "./custom-select-default-components.js";
|
|
4
4
|
import { getValue, customOnChange } from "./shared.js";
|
|
5
5
|
import { BaseControl } from "../base-control/base-control.js";
|
|
6
6
|
import { eightshiftSelectClasses } from "./styles.js";
|
|
7
|
-
import { c as components } from "../../index-a301f526.esm-
|
|
7
|
+
import { c as components } from "../../index-a301f526.esm-B9tWL9yi.js";
|
|
8
8
|
/**
|
|
9
9
|
* Select menu.
|
|
10
10
|
*
|
|
@@ -8,7 +8,7 @@ const selectInputStyles = "focus:es-uic-outline-none [&_input]:!es-uic-shadow-no
|
|
|
8
8
|
const valueContainerStyles = "es-uic-gap-1 es-uic-ml-1 es-uic-my-1 !es-uic-overflow-visible";
|
|
9
9
|
const singleValueStyles = "es-uic-ml-0.5";
|
|
10
10
|
const multiValueStyles = clsx(
|
|
11
|
-
"es-uic-bg-gray-100 es-uic-rounded es-uic-p-1 es-uic-border es-uic-border-gray-100 hover:border-gray-300 es-uic-items-center es-uic-gap-1.5 es-uic-transition es-uic-overflow-visible",
|
|
11
|
+
"es-uic-bg-gray-100 es-uic-rounded es-uic-p-1 es-uic-border es-uic-border-gray-100 hover:border-gray-300 es-uic-items-center es-uic-gap-1.5 es-uic-transition es-uic-overflow-visible es-uic-max-w-40",
|
|
12
12
|
"[:focus-visible_&]:es-uic-outline-none [:focus-visible_&]:es-uic-ring",
|
|
13
13
|
"[:focus-visible_&]:es-uic-ring-teal-500 [:focus-visible_&]:es-uic-ring-opacity-50"
|
|
14
14
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { _ as __ } from "../../default-i18n-
|
|
3
|
-
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-
|
|
4
|
-
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 __ } from "../../default-i18n-BqWys-1G.js";
|
|
3
|
+
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-yZgqvhXc.js";
|
|
4
|
+
import { $ as $6f909507e6374d18$export$472062a354075cee, a as $6f909507e6374d18$export$105594979f116971, b as $6f909507e6374d18$export$2c1b491743890dec, c as $6f909507e6374d18$export$a590f758a961cb5b } from "../../Slider-D8a63VhT.js";
|
|
5
5
|
import { BaseControl } from "../base-control/base-control.js";
|
|
6
6
|
import { icons } from "../../icons/icons.js";
|
|
7
7
|
import { getColumnConfigOutputText } from "./utils.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { $ as $64fa3d84918910a7$export$fabf2dc03a41866e } from "../../utils-
|
|
3
|
-
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5, a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "../../Label-
|
|
4
|
-
import { $ as $6f909507e6374d18$export$472062a354075cee, c as $6f909507e6374d18$export$a590f758a961cb5b, a as $6f909507e6374d18$export$105594979f116971, b as $6f909507e6374d18$export$2c1b491743890dec, d as $6f909507e6374d18$export$1e7083018727fa60 } from "../../Slider-
|
|
2
|
+
import { $ as $64fa3d84918910a7$export$fabf2dc03a41866e } from "../../utils-B4IdLYb8.js";
|
|
3
|
+
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5, a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "../../Label-yZgqvhXc.js";
|
|
4
|
+
import { $ as $6f909507e6374d18$export$472062a354075cee, c as $6f909507e6374d18$export$a590f758a961cb5b, a as $6f909507e6374d18$export$105594979f116971, b as $6f909507e6374d18$export$2c1b491743890dec, d as $6f909507e6374d18$export$1e7083018727fa60 } from "../../Slider-D8a63VhT.js";
|
|
5
5
|
import { BaseControl } from "../base-control/base-control.js";
|
|
6
6
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
7
7
|
import { NumberPicker } from "../number-picker/number-picker.js";
|
|
@@ -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-BqWys-1G.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,16 +1,17 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { c as $880e95eb8b93ba9a$export$ecf600387e221c37, i as $ae20dd8cbca75726$export$d6daf82dcd84e87c, d as $e1995378a142960e$export$18af5c7a9e9b3664, e as $e1995378a142960e$export$bf788dd355e3a401, f as $e1995378a142960e$export$fb8073518f34e6ec, g as $7135fc7d473fd974$export$4feb769f8ddf26c5, j as $7135fc7d473fd974$export$90e00781bc59d8f9 } from "../../SelectionManager-CvRaua4m.js";
|
|
3
|
+
import { c as $3ef42575df84b30b$export$9d1611c77c2fe928, e as $bdb11010cef70236$export$f680877a34711e37, l as $df56164dff5785e2$export$4338b53315abf666, b as $64fa3d84918910a7$export$4d86445c2cf5e3, a as $64fa3d84918910a7$export$29f1550f4b0d4415, j as $64fa3d84918910a7$export$2881499e37b75b9a, $ as $64fa3d84918910a7$export$fabf2dc03a41866e } from "../../utils-B4IdLYb8.js";
|
|
4
|
+
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "../../Hidden-YSmyVF_5.js";
|
|
4
5
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
|
|
5
6
|
import React__default, { useMemo, useRef, useEffect, forwardRef, useContext, createContext, useId, cloneElement } from "react";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { $ as $
|
|
9
|
-
import { $ as $
|
|
10
|
-
import { $ as $
|
|
11
|
-
import {
|
|
12
|
-
import { $ as $
|
|
13
|
-
import { _ as __, s as sprintf } from "../../default-i18n-
|
|
7
|
+
import { a as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 } from "../../usePress-CY8MpqYD.js";
|
|
8
|
+
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "../../useLabels-JaBafrnV.js";
|
|
9
|
+
import { $ as $83013635b024ae3d$export$eac1895992b9f3d6 } from "../../useHasTabbableChild-Byd7ylXD.js";
|
|
10
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-Bon2Gyx5.js";
|
|
11
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-DsxEaA2J.js";
|
|
12
|
+
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../focusSafely-PMGZgZ9-.js";
|
|
13
|
+
import { $ as $a0d645289fe9b86b$export$e7f05e985daf4b5f } from "../../useSingleSelectListState-CzZUgAt0.js";
|
|
14
|
+
import { _ as __, s as sprintf } from "../../default-i18n-BqWys-1G.js";
|
|
14
15
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
15
16
|
import { Notice } from "../notice/notice.js";
|
|
16
17
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
@@ -157,37 +158,6 @@ function $58d314389b21fa3f$export$773e389e644c5874(props, state, ref) {
|
|
|
157
158
|
}
|
|
158
159
|
};
|
|
159
160
|
}
|
|
160
|
-
function $a0d645289fe9b86b$export$e7f05e985daf4b5f(props) {
|
|
161
|
-
var _props_defaultSelectedKey;
|
|
162
|
-
let [selectedKey, setSelectedKey] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.selectedKey, (_props_defaultSelectedKey = props.defaultSelectedKey) !== null && _props_defaultSelectedKey !== void 0 ? _props_defaultSelectedKey : null, props.onSelectionChange);
|
|
163
|
-
let selectedKeys = useMemo(() => selectedKey != null ? [
|
|
164
|
-
selectedKey
|
|
165
|
-
] : [], [
|
|
166
|
-
selectedKey
|
|
167
|
-
]);
|
|
168
|
-
let { collection, disabledKeys, selectionManager } = $e72dd72e1c76a225$export$2f645645f7bca764({
|
|
169
|
-
...props,
|
|
170
|
-
selectionMode: "single",
|
|
171
|
-
disallowEmptySelection: true,
|
|
172
|
-
allowDuplicateSelectionEvents: true,
|
|
173
|
-
selectedKeys,
|
|
174
|
-
onSelectionChange: (keys) => {
|
|
175
|
-
var _keys_values_next_value;
|
|
176
|
-
let key = (_keys_values_next_value = keys.values().next().value) !== null && _keys_values_next_value !== void 0 ? _keys_values_next_value : null;
|
|
177
|
-
if (key === selectedKey && props.onSelectionChange) props.onSelectionChange(key);
|
|
178
|
-
setSelectedKey(key);
|
|
179
|
-
}
|
|
180
|
-
});
|
|
181
|
-
let selectedItem = selectedKey != null ? collection.getItem(selectedKey) : null;
|
|
182
|
-
return {
|
|
183
|
-
collection,
|
|
184
|
-
disabledKeys,
|
|
185
|
-
selectionManager,
|
|
186
|
-
selectedKey,
|
|
187
|
-
setSelectedKey,
|
|
188
|
-
selectedItem
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
161
|
function $76f919a04c5a7d14$export$4ba071daf4e486(props) {
|
|
192
162
|
var _props_defaultSelectedKey;
|
|
193
163
|
let state = $a0d645289fe9b86b$export$e7f05e985daf4b5f({
|
|
@@ -217,9 +187,10 @@ function $76f919a04c5a7d14$export$4ba071daf4e486(props) {
|
|
|
217
187
|
function $76f919a04c5a7d14$var$findDefaultSelectedKey(collection, disabledKeys) {
|
|
218
188
|
let selectedKey = null;
|
|
219
189
|
if (collection) {
|
|
190
|
+
var _collection_getItem_props, _collection_getItem, _collection_getItem_props1, _collection_getItem1;
|
|
220
191
|
selectedKey = collection.getFirstKey();
|
|
221
|
-
while (disabledKeys.has(selectedKey) && selectedKey !== collection.getLastKey()) selectedKey = collection.getKeyAfter(selectedKey);
|
|
222
|
-
if (disabledKeys.has(selectedKey) && selectedKey === collection.getLastKey()) selectedKey = collection.getFirstKey();
|
|
192
|
+
while ((disabledKeys.has(selectedKey) || ((_collection_getItem = collection.getItem(selectedKey)) === null || _collection_getItem === void 0 ? void 0 : (_collection_getItem_props = _collection_getItem.props) === null || _collection_getItem_props === void 0 ? void 0 : _collection_getItem_props.isDisabled)) && selectedKey !== collection.getLastKey()) selectedKey = collection.getKeyAfter(selectedKey);
|
|
193
|
+
if ((disabledKeys.has(selectedKey) || ((_collection_getItem1 = collection.getItem(selectedKey)) === null || _collection_getItem1 === void 0 ? void 0 : (_collection_getItem_props1 = _collection_getItem1.props) === null || _collection_getItem_props1 === void 0 ? void 0 : _collection_getItem_props1.isDisabled)) && selectedKey === collection.getLastKey()) selectedKey = collection.getFirstKey();
|
|
223
194
|
}
|
|
224
195
|
return selectedKey;
|
|
225
196
|
}
|
|
@@ -227,7 +198,6 @@ const $5e8ad37a45e1c704$export$cfa7aa87c26e7d1f = /* @__PURE__ */ createContext(
|
|
|
227
198
|
const $5e8ad37a45e1c704$export$364712098d2aa57c = /* @__PURE__ */ createContext(null);
|
|
228
199
|
function $5e8ad37a45e1c704$var$Tabs(props, ref) {
|
|
229
200
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $5e8ad37a45e1c704$export$cfa7aa87c26e7d1f);
|
|
230
|
-
let { collection, document } = $7135fc7d473fd974$export$7cd71aa5ddd6dc4e();
|
|
231
201
|
let { children, orientation = "horizontal" } = props;
|
|
232
202
|
children = useMemo(() => typeof children === "function" ? children({
|
|
233
203
|
orientation,
|
|
@@ -236,9 +206,9 @@ function $5e8ad37a45e1c704$var$Tabs(props, ref) {
|
|
|
236
206
|
children,
|
|
237
207
|
orientation
|
|
238
208
|
]);
|
|
239
|
-
return /* @__PURE__ */ React__default.createElement(
|
|
240
|
-
|
|
241
|
-
},
|
|
209
|
+
return /* @__PURE__ */ React__default.createElement($e1995378a142960e$export$bf788dd355e3a401, {
|
|
210
|
+
content: children
|
|
211
|
+
}, (collection) => /* @__PURE__ */ React__default.createElement($5e8ad37a45e1c704$var$TabsInner, {
|
|
242
212
|
props,
|
|
243
213
|
collection,
|
|
244
214
|
tabsRef: ref
|
|
@@ -293,14 +263,15 @@ function $5e8ad37a45e1c704$var$TabsInner({ props, tabsRef: ref, collection }) {
|
|
|
293
263
|
}
|
|
294
264
|
const $5e8ad37a45e1c704$export$b2539bed5023c21c = /* @__PURE__ */ forwardRef($5e8ad37a45e1c704$var$Tabs);
|
|
295
265
|
function $5e8ad37a45e1c704$var$TabList(props, ref) {
|
|
296
|
-
let
|
|
297
|
-
return
|
|
266
|
+
let state = useContext($5e8ad37a45e1c704$export$364712098d2aa57c);
|
|
267
|
+
return state ? /* @__PURE__ */ React__default.createElement($5e8ad37a45e1c704$var$TabListInner, {
|
|
298
268
|
props,
|
|
299
269
|
forwardedRef: ref
|
|
300
|
-
});
|
|
270
|
+
}) : /* @__PURE__ */ React__default.createElement($e1995378a142960e$export$fb8073518f34e6ec, props);
|
|
301
271
|
}
|
|
302
272
|
function $5e8ad37a45e1c704$var$TabListInner({ props, forwardedRef: ref }) {
|
|
303
273
|
let state = useContext($5e8ad37a45e1c704$export$364712098d2aa57c);
|
|
274
|
+
let { CollectionRoot } = useContext($7135fc7d473fd974$export$4feb769f8ddf26c5);
|
|
304
275
|
let { orientation = "horizontal", keyboardActivation = "automatic" } = $64fa3d84918910a7$export$fabf2dc03a41866e($5e8ad37a45e1c704$export$cfa7aa87c26e7d1f);
|
|
305
276
|
let objectRef = $df56164dff5785e2$export$4338b53315abf666(ref);
|
|
306
277
|
let { tabListProps } = $58d314389b21fa3f$export$773e389e644c5874({
|
|
@@ -325,32 +296,26 @@ function $5e8ad37a45e1c704$var$TabListInner({ props, forwardedRef: ref }) {
|
|
|
325
296
|
ref: objectRef,
|
|
326
297
|
...renderProps,
|
|
327
298
|
"data-orientation": orientation || void 0
|
|
328
|
-
},
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
item,
|
|
333
|
-
state
|
|
334
|
-
})));
|
|
299
|
+
}, /* @__PURE__ */ React__default.createElement(CollectionRoot, {
|
|
300
|
+
collection: state.collection,
|
|
301
|
+
persistedKeys: $7135fc7d473fd974$export$90e00781bc59d8f9(state.selectionManager.focusedKey)
|
|
302
|
+
}));
|
|
335
303
|
}
|
|
336
304
|
const $5e8ad37a45e1c704$export$e51a686c67fdaa2d = /* @__PURE__ */ forwardRef($5e8ad37a45e1c704$var$TabList);
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
const $5e8ad37a45e1c704$export$3e41faf802a29e71 = /* @__PURE__ */ forwardRef($5e8ad37a45e1c704$var$Tab);
|
|
341
|
-
function $5e8ad37a45e1c704$var$TabInner({ item, state }) {
|
|
342
|
-
let ref = $df56164dff5785e2$export$4338b53315abf666(item.props.ref);
|
|
305
|
+
const $5e8ad37a45e1c704$export$3e41faf802a29e71 = /* @__PURE__ */ $e1995378a142960e$export$18af5c7a9e9b3664("item", (props, forwardedRef, item) => {
|
|
306
|
+
let state = useContext($5e8ad37a45e1c704$export$364712098d2aa57c);
|
|
307
|
+
let ref = $df56164dff5785e2$export$4338b53315abf666(forwardedRef);
|
|
343
308
|
let { tabProps, isSelected, isDisabled, isPressed } = $0175d55c2a017ebc$export$fdf4756d5b8ef90a({
|
|
344
309
|
key: item.key,
|
|
345
|
-
...
|
|
310
|
+
...props
|
|
346
311
|
}, state, ref);
|
|
347
312
|
let { focusProps, isFocused, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f();
|
|
348
313
|
let { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456({
|
|
349
314
|
isDisabled
|
|
350
315
|
});
|
|
351
316
|
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
352
|
-
...
|
|
353
|
-
|
|
317
|
+
...props,
|
|
318
|
+
id: void 0,
|
|
354
319
|
defaultClassName: "react-aria-Tab",
|
|
355
320
|
values: {
|
|
356
321
|
isSelected,
|
|
@@ -358,8 +323,7 @@ function $5e8ad37a45e1c704$var$TabInner({ item, state }) {
|
|
|
358
323
|
isFocused,
|
|
359
324
|
isFocusVisible,
|
|
360
325
|
isPressed,
|
|
361
|
-
isHovered
|
|
362
|
-
state
|
|
326
|
+
isHovered
|
|
363
327
|
}
|
|
364
328
|
});
|
|
365
329
|
let ElementType = item.props.href ? "a" : "div";
|
|
@@ -373,7 +337,7 @@ function $5e8ad37a45e1c704$var$TabInner({ item, state }) {
|
|
|
373
337
|
"data-pressed": isPressed || void 0,
|
|
374
338
|
"data-hovered": isHovered || void 0
|
|
375
339
|
});
|
|
376
|
-
}
|
|
340
|
+
});
|
|
377
341
|
function $5e8ad37a45e1c704$var$TabPanel(props, forwardedRef) {
|
|
378
342
|
const state = useContext($5e8ad37a45e1c704$export$364712098d2aa57c);
|
|
379
343
|
let ref = $df56164dff5785e2$export$4338b53315abf666(forwardedRef);
|
|
@@ -402,9 +366,20 @@ function $5e8ad37a45e1c704$var$TabPanel(props, forwardedRef) {
|
|
|
402
366
|
// @ts-ignore
|
|
403
367
|
inert: !isSelected ? "true" : void 0,
|
|
404
368
|
"data-inert": !isSelected ? "true" : void 0
|
|
405
|
-
}
|
|
369
|
+
}, /* @__PURE__ */ React__default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
|
|
370
|
+
values: [
|
|
371
|
+
[
|
|
372
|
+
$5e8ad37a45e1c704$export$cfa7aa87c26e7d1f,
|
|
373
|
+
null
|
|
374
|
+
],
|
|
375
|
+
[
|
|
376
|
+
$5e8ad37a45e1c704$export$364712098d2aa57c,
|
|
377
|
+
null
|
|
378
|
+
]
|
|
379
|
+
]
|
|
380
|
+
}, renderProps.children));
|
|
406
381
|
}
|
|
407
|
-
const $5e8ad37a45e1c704$export$3d96ec278d3efce4 = /* @__PURE__ */ $
|
|
382
|
+
const $5e8ad37a45e1c704$export$3d96ec278d3efce4 = /* @__PURE__ */ $f39a9eba43920ace$export$86427a43e3e48ebb($5e8ad37a45e1c704$var$TabPanel);
|
|
408
383
|
/**
|
|
409
384
|
* Main tab container.
|
|
410
385
|
*
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415, l as $df56164dff5785e2$export$4338b53315abf666, m as $5dc95899b306f630$export$c9058316764c140e, i as $64fa3d84918910a7$export$ef03459518577ad4,
|
|
2
|
+
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415, l as $df56164dff5785e2$export$4338b53315abf666, m as $5dc95899b306f630$export$c9058316764c140e, i as $64fa3d84918910a7$export$ef03459518577ad4, b as $64fa3d84918910a7$export$4d86445c2cf5e3, c as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "../../utils-B4IdLYb8.js";
|
|
3
3
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
|
|
4
4
|
import React__default, { forwardRef, createContext } from "react";
|
|
5
|
-
import { $ as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "../../useToggleState-
|
|
6
|
-
import { $ as $d2c8e2b0480f3f34$export$cbe85ee05b554577 } from "../../useToggle-
|
|
7
|
-
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-
|
|
8
|
-
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../focusSafely-
|
|
9
|
-
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "../../VisuallyHidden-
|
|
5
|
+
import { $ as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "../../useToggleState-B4--Ski0.js";
|
|
6
|
+
import { $ as $d2c8e2b0480f3f34$export$cbe85ee05b554577 } from "../../useToggle-CJp2Fh_L.js";
|
|
7
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-DsxEaA2J.js";
|
|
8
|
+
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../focusSafely-PMGZgZ9-.js";
|
|
9
|
+
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "../../VisuallyHidden-DD480kAb.js";
|
|
10
10
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
11
11
|
function $b418ec0c85c52f27$export$d853f7095ae95f88(props, state, ref) {
|
|
12
12
|
let { labelProps, inputProps, isSelected, isPressed, isDisabled, isReadOnly } = $d2c8e2b0480f3f34$export$cbe85ee05b554577(props, state, ref);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-
|
|
2
|
+
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-yZgqvhXc.js";
|
|
3
3
|
import { Switch } from "./switch.js";
|
|
4
4
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
5
5
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { n as $ff5963eb1fccf552$export$e08e3b67e392101e,
|
|
2
|
+
import { n as $ff5963eb1fccf552$export$e08e3b67e392101e, c as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "../../utils-B4IdLYb8.js";
|
|
3
3
|
import React__default, { forwardRef, createContext } from "react";
|
|
4
|
-
import { $ as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "../../useToggleState-
|
|
5
|
-
import { $ as $701a24aa0da5b062$export$ea18c227d4417cc3 } from "../../useButton-
|
|
6
|
-
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-
|
|
7
|
-
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../focusSafely-
|
|
4
|
+
import { $ as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "../../useToggleState-B4--Ski0.js";
|
|
5
|
+
import { $ as $701a24aa0da5b062$export$ea18c227d4417cc3 } from "../../useButton-BPY4yXUo.js";
|
|
6
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-DsxEaA2J.js";
|
|
7
|
+
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../focusSafely-PMGZgZ9-.js";
|
|
8
8
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
9
|
-
import { T as Tooltip } from "../../tooltip-
|
|
9
|
+
import { T as Tooltip } from "../../tooltip-C9mg1CP5.js";
|
|
10
10
|
function $55f54f7887471b58$export$51e84d46ca0bc451(props, state, ref) {
|
|
11
11
|
const { isSelected } = state;
|
|
12
12
|
const { isPressed, buttonProps } = $701a24aa0da5b062$export$ea18c227d4417cc3({
|
|
@@ -106,7 +106,7 @@ const ToggleButton = (props) => {
|
|
|
106
106
|
button: "es-uic-h-7 es-uic-min-w-7",
|
|
107
107
|
iconButtonPadding: "es-uic-px-1",
|
|
108
108
|
buttonPadding: "es-uic-px-2",
|
|
109
|
-
iconSize: "[&>svg]:es-uic-size-4"
|
|
109
|
+
iconSize: "[&>svg]:es-uic-size-4.5"
|
|
110
110
|
},
|
|
111
111
|
default: {
|
|
112
112
|
iconButton: "es-uic-size-9",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import { D, T } from "../../tooltip-
|
|
2
|
+
import { D, T } from "../../tooltip-C9mg1CP5.js";
|
|
3
3
|
import "../../lite-DVmmD_-j.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import "../../focusSafely-
|
|
6
|
-
import "../../utils-
|
|
5
|
+
import "../../focusSafely-PMGZgZ9-.js";
|
|
6
|
+
import "../../utils-B4IdLYb8.js";
|
|
7
7
|
export {
|
|
8
8
|
D as DecorativeTooltip,
|
|
9
9
|
T as Tooltip
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default, { useState, useEffect, useContext } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { d as $b5e257d569688ac6$export$535bd6ca7f90a273 } from "./utils-B4IdLYb8.js";
|
|
3
3
|
const $148a7a147e38ea7f$var$RTL_SCRIPTS = /* @__PURE__ */ new Set([
|
|
4
4
|
"Arab",
|
|
5
5
|
"Syrc",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, f as $8ae05eaa5c114e9c$export$7f54fc3180508a52,
|
|
1
|
+
import { g as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, f as $8ae05eaa5c114e9c$export$7f54fc3180508a52, d as $b5e257d569688ac6$export$535bd6ca7f90a273 } from "./utils-B4IdLYb8.js";
|
|
2
2
|
import { useState, useRef, useEffect, useCallback, useMemo } from "react";
|
|
3
3
|
const $431fbd86ca7dc216$export$b204af158042fbac = (el) => {
|
|
4
4
|
var _el_ownerDocument;
|
|
@@ -70,34 +70,41 @@ function $c87311424ea30a05$var$testPlatform(re) {
|
|
|
70
70
|
var _window_navigator_userAgentData;
|
|
71
71
|
return typeof window !== "undefined" && window.navigator != null ? re.test(((_window_navigator_userAgentData = window.navigator["userAgentData"]) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.platform) || window.navigator.platform) : false;
|
|
72
72
|
}
|
|
73
|
-
function $c87311424ea30a05$
|
|
74
|
-
|
|
73
|
+
function $c87311424ea30a05$var$cached(fn) {
|
|
74
|
+
let res = null;
|
|
75
|
+
return () => {
|
|
76
|
+
if (res == null) res = fn();
|
|
77
|
+
return res;
|
|
78
|
+
};
|
|
75
79
|
}
|
|
76
|
-
|
|
80
|
+
const $c87311424ea30a05$export$9ac100e40613ea10 = $c87311424ea30a05$var$cached(function() {
|
|
81
|
+
return $c87311424ea30a05$var$testPlatform(/^Mac/i);
|
|
82
|
+
});
|
|
83
|
+
const $c87311424ea30a05$export$186c6964ca17d99 = $c87311424ea30a05$var$cached(function() {
|
|
77
84
|
return $c87311424ea30a05$var$testPlatform(/^iPhone/i);
|
|
78
|
-
}
|
|
79
|
-
|
|
85
|
+
});
|
|
86
|
+
const $c87311424ea30a05$export$7bef049ce92e4224 = $c87311424ea30a05$var$cached(function() {
|
|
80
87
|
return $c87311424ea30a05$var$testPlatform(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
81
88
|
$c87311424ea30a05$export$9ac100e40613ea10() && navigator.maxTouchPoints > 1;
|
|
82
|
-
}
|
|
83
|
-
|
|
89
|
+
});
|
|
90
|
+
const $c87311424ea30a05$export$fedb369cb70207f1 = $c87311424ea30a05$var$cached(function() {
|
|
84
91
|
return $c87311424ea30a05$export$186c6964ca17d99() || $c87311424ea30a05$export$7bef049ce92e4224();
|
|
85
|
-
}
|
|
86
|
-
|
|
92
|
+
});
|
|
93
|
+
const $c87311424ea30a05$export$e1865c3bedcd822b = $c87311424ea30a05$var$cached(function() {
|
|
87
94
|
return $c87311424ea30a05$export$9ac100e40613ea10() || $c87311424ea30a05$export$fedb369cb70207f1();
|
|
88
|
-
}
|
|
89
|
-
|
|
95
|
+
});
|
|
96
|
+
const $c87311424ea30a05$export$78551043582a6a98 = $c87311424ea30a05$var$cached(function() {
|
|
90
97
|
return $c87311424ea30a05$var$testUserAgent(/AppleWebKit/i) && !$c87311424ea30a05$export$6446a186d09e379e();
|
|
91
|
-
}
|
|
92
|
-
|
|
98
|
+
});
|
|
99
|
+
const $c87311424ea30a05$export$6446a186d09e379e = $c87311424ea30a05$var$cached(function() {
|
|
93
100
|
return $c87311424ea30a05$var$testUserAgent(/Chrome/i);
|
|
94
|
-
}
|
|
95
|
-
|
|
101
|
+
});
|
|
102
|
+
const $c87311424ea30a05$export$a11b0059900ceec8 = $c87311424ea30a05$var$cached(function() {
|
|
96
103
|
return $c87311424ea30a05$var$testUserAgent(/Android/i);
|
|
97
|
-
}
|
|
98
|
-
|
|
104
|
+
});
|
|
105
|
+
const $c87311424ea30a05$export$b7d78993b74f766d = $c87311424ea30a05$var$cached(function() {
|
|
99
106
|
return $c87311424ea30a05$var$testUserAgent(/Firefox/i);
|
|
100
|
-
}
|
|
107
|
+
});
|
|
101
108
|
let $bbed8b41f857bcc0$var$transitionsByElement = /* @__PURE__ */ new Map();
|
|
102
109
|
let $bbed8b41f857bcc0$var$transitionCallbacks = /* @__PURE__ */ new Set();
|
|
103
110
|
function $bbed8b41f857bcc0$var$setupGlobalEvents() {
|
|
@@ -671,15 +678,15 @@ export {
|
|
|
671
678
|
$bbed8b41f857bcc0$export$24490316f764c430 as k,
|
|
672
679
|
$e7801be82b4b2a53$export$4debdb1a3f0fa79e as l,
|
|
673
680
|
$7215afc6de606d6b$export$de79e2c695e052f3 as m,
|
|
674
|
-
$c87311424ea30a05$export$
|
|
675
|
-
$c87311424ea30a05$export$
|
|
676
|
-
$c87311424ea30a05$export$
|
|
681
|
+
$c87311424ea30a05$export$9ac100e40613ea10 as n,
|
|
682
|
+
$c87311424ea30a05$export$78551043582a6a98 as o,
|
|
683
|
+
$c87311424ea30a05$export$b7d78993b74f766d as p,
|
|
677
684
|
$c87311424ea30a05$export$7bef049ce92e4224 as q,
|
|
678
685
|
$6a7db85432448f7f$export$29bf1b5f2c56cf63 as r,
|
|
679
686
|
$6a7db85432448f7f$export$60278871457622de as s,
|
|
680
|
-
$507fabe10e71c6fb$export$
|
|
681
|
-
$
|
|
682
|
-
$c87311424ea30a05$export$
|
|
683
|
-
$
|
|
687
|
+
$507fabe10e71c6fb$export$98e20ec92f614cfe as t,
|
|
688
|
+
$507fabe10e71c6fb$export$630ff653c5ada6a9 as u,
|
|
689
|
+
$c87311424ea30a05$export$a11b0059900ceec8 as v,
|
|
690
|
+
$c87311424ea30a05$export$e1865c3bedcd822b as w,
|
|
684
691
|
$c87311424ea30a05$export$186c6964ca17d99 as x
|
|
685
692
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { $ as $cc38e7bd3fc7b213$export$2bb74740c4e19def } from "./isScrollable-Dh9D9IOd.js";
|
|
2
|
+
function $62d8ded9296f3872$export$cfa2225e87938781(node, checkForOverflow) {
|
|
3
|
+
let scrollableNode = node;
|
|
4
|
+
if ($cc38e7bd3fc7b213$export$2bb74740c4e19def(scrollableNode, checkForOverflow)) scrollableNode = scrollableNode.parentElement;
|
|
5
|
+
while (scrollableNode && !$cc38e7bd3fc7b213$export$2bb74740c4e19def(scrollableNode, checkForOverflow)) scrollableNode = scrollableNode.parentElement;
|
|
6
|
+
return scrollableNode || document.scrollingElement || document.documentElement;
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
$62d8ded9296f3872$export$cfa2225e87938781 as $
|
|
10
|
+
};
|