@eightshift/ui-components 8.2.0 → 8.4.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/README.md +10 -0
- package/dist/{Autocomplete-CO9aIsTe.js → Autocomplete-Dqkum3dO.js} +3 -3
- package/dist/{Button-DO3oQfCq.js → Button-DHgs_rCq.js} +3 -3
- package/dist/{Dialog-Bdqjmtt2.js → Dialog-CldDJ_4u.js} +109 -41
- package/dist/{Disclosure-BTSsPhG9.js → Disclosure-BHNgL5Is.js} +4 -4
- package/dist/{FocusScope-Cj6cUR6X.js → FocusScope-CUuL5wjz.js} +6 -3
- package/dist/{ListBox-CBvtIFuB.js → ListBox-CZXso3mJ.js} +9 -37
- package/dist/{RadioGroup-Dxzko0ma.js → RadioGroup-BTByPMrl.js} +8 -8
- package/dist/{SearchField-zY9JqR1c.js → SearchField-DkX1vqMN.js} +5 -5
- package/dist/{Slider-BXc72kE0.js → Slider-Dw-JjfLx.js} +5 -5
- package/dist/{Text-i-ZK4MiL.js → Text-CA2_mHEB.js} +3 -2
- package/dist/{VisuallyHidden-CsM0VnV1.js → VisuallyHidden-ZZwHZDro.js} +1 -1
- package/dist/assets/style-admin.css +1 -1
- package/dist/assets/style-editor.css +1 -1
- package/dist/assets/style.css +1 -1
- package/dist/assets/wp-overrides/make-block-messages-nicer.css +1 -1
- package/dist/{build-module-DG6ZK7Ty.js → build-module-BISCoQjQ.js} +4 -4
- package/dist/{button-C7mc6eS1.js → button-ldR_tlvk.js} +53 -5
- package/dist/{checkbox-DlG5DILl.js → checkbox-DDyLJRY8.js} +6 -6
- package/dist/{color-swatch-D6xMLGU-.js → color-swatch-DmhdOhe4.js} +1 -1
- package/dist/components/base-control/base-control.d.ts +1 -1
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/color-pickers/color-picker.js +2 -2
- package/dist/components/color-pickers/color-swatch.js +1 -1
- package/dist/components/color-pickers/gradient-editor.js +1 -1
- package/dist/components/color-pickers/solid-color-picker.js +1 -1
- package/dist/components/component-toggle/component-toggle.d.ts +1 -1
- package/dist/components/component-toggle/component-toggle.js +4 -4
- package/dist/components/container-panel/container-panel.js +3 -3
- package/dist/components/contextual-help/contextual-help.js +3 -3
- package/dist/components/draggable/draggable.js +1 -1
- package/dist/components/draggable-list/draggable-list.js +1 -1
- package/dist/components/expandable/expandable.js +3 -3
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +17 -16
- package/dist/components/input-field/input-field.d.ts +1 -1
- package/dist/components/input-field/input-field.js +1 -1
- package/dist/components/item-collection/item-collection.js +1 -1
- package/dist/components/link-input/link-input.js +1 -1
- package/dist/components/matrix-align/matrix-align.js +2 -2
- package/dist/components/menu/menu.d.ts +8 -29
- package/dist/components/menu/menu.js +3 -3
- package/dist/components/modal/modal.js +1 -1
- package/dist/components/number-picker/number-picker.d.ts +1 -1
- package/dist/components/number-picker/number-picker.js +1 -1
- package/dist/components/option-select/option-select.js +3 -3
- package/dist/components/placeholders/file-placeholder.js +1 -1
- package/dist/components/popover/popover.js +5 -5
- package/dist/components/prompt-popover/prompt-popover.d.ts +56 -0
- package/dist/components/prompt-popover/prompt-popover.js +81 -0
- package/dist/components/radio/radio.d.ts +2 -1
- package/dist/components/radio/radio.js +1 -1
- package/dist/components/repeater/repeater-item.js +2 -2
- package/dist/components/repeater/repeater.js +2 -2
- package/dist/components/responsive/mini-responsive.js +4 -4
- package/dist/components/responsive/responsive-legacy.js +4 -4
- package/dist/components/responsive/responsive.js +4 -4
- package/dist/components/responsive-preview/responsive-preview.js +1 -1
- package/dist/components/rich-label/rich-label.d.ts +1 -1
- package/dist/components/rich-label/rich-label.js +2 -2
- package/dist/components/select/async-multi-select.js +9 -9
- package/dist/components/select/async-select.js +9 -9
- package/dist/components/select/multi-select.js +10 -10
- package/dist/components/select/shared.d.ts +2 -2
- package/dist/components/select/shared.js +1 -1
- package/dist/components/select/single-select.js +10 -10
- package/dist/components/select/styles.d.ts +2 -2
- package/dist/components/slider/column-config-slider.js +3 -3
- package/dist/components/slider/slider.js +4 -4
- package/dist/components/slider/utils.js +1 -1
- package/dist/components/smart-image/smart-image.d.ts +1 -1
- package/dist/components/smart-image/smart-image.js +2 -2
- package/dist/components/tabs/tabs.d.ts +16 -64
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/toggle/switch.d.ts +1 -1
- package/dist/components/toggle/switch.js +1 -1
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.d.ts +2 -2
- package/dist/components/toggle-button/toggle-button.js +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/{draggable-BUfOpGSZ.js → draggable-oS68xcYX.js} +1 -1
- package/dist/{gradient-editor-_q3XF10i.js → gradient-editor-DP8ioFX1.js} +5 -5
- package/dist/index.js +17 -16
- package/dist/{input-field-QzBpjm-m.js → input-field-C-XvZeCZ.js} +5 -5
- package/dist/{keyboard-BxnnQA2Z.js → keyboard-Cdqi5ZQQ.js} +1 -1
- package/dist/{link-input-CElQp3lP.js → link-input-DdwuqoMg.js} +18 -18
- package/dist/{modal-BeacK9N_.js → modal-DZco5MDu.js} +7 -7
- package/dist/{number-picker-CK_OHBXw.js → number-picker-XqKW0BNi.js} +5 -5
- package/dist/{react-C6Y6cCOx.js → react-O71mlJXS.js} +56 -51
- package/dist/{shared-DBCipn_m.js → shared-YXMIX2ka.js} +13 -13
- package/dist/{solid-color-picker-2-X3ridX.js → solid-color-picker-D5LEdmDM.js} +30 -15
- package/dist/{switch-B87lQ1V0.js → switch-Bo6nmed_.js} +7 -7
- package/dist/{tabs-DgkJUkIX.js → tabs-DE-qb7Kt.js} +7 -7
- package/dist/{textSelection-5Qk8tLtm.js → textSelection-C17LWYmO.js} +1 -1
- package/dist/{toggle-button-B2-f2rU6.js → toggle-button-Cb4yCEua.js} +36 -6
- package/dist/{tooltip-AzOLps8g.js → tooltip-CT-vzIdz.js} +2 -2
- package/dist/{useButton-BIrfoiY8.js → useButton-V65TBDGM.js} +2 -2
- package/dist/{useCollection-LQlZnc1u.js → useCollection-DqUS7tjk.js} +19 -9
- package/dist/useEvent-C9zwSNzZ.js +18 -0
- package/dist/{useFilter-BFaOw4yi.js → useFilter-C75IzdIZ.js} +1 -1
- package/dist/{useFocusRing-ZXFsftJJ.js → useFocusRing-JidySWlU.js} +1 -1
- package/dist/{useFormReset-DDJhIIfG.js → useFormReset-Sp8-miDa.js} +1 -1
- package/dist/{useFormValidation-BfnJKcdX.js → useFormValidation-CpmQEh8J.js} +1 -1
- package/dist/{useHover-CbyH227W.js → useHover-CaY3sRjL.js} +44 -17
- package/dist/{useListState-I22DfnmE.js → useListState-CzB3v6M9.js} +3 -10
- package/dist/{useNumberFieldState-C1gD0RuW.js → useNumberFieldState-DC3XY3DQ.js} +7 -7
- package/dist/{useOverlayTriggerState-Cpc_IbQf.js → useOverlayTriggerState-BKmSTK_5.js} +5 -3
- package/dist/{usePress-BF7otjax.js → usePress-CUCWcP-m.js} +22 -11
- package/dist/{useTextField-CnTuCBMs.js → useTextField-C3QIkMON.js} +4 -4
- package/dist/{useToggle-Cgv5UXaB.js → useToggle-bbGRUbo4.js} +4 -4
- package/dist/{useToggleState-Cy1E36QZ.js → useToggleState-D_rLMrVW.js} +1 -1
- package/dist/utilities/array-helpers.d.ts +1 -1
- package/package.json +13 -12
- package/dist/useEvent-Bih8lvtM.js +0 -22
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-DQoRUQAf.js";
|
|
2
2
|
import { n as $43a3b93638fe5db9$export$b04be29aa201d4f5 } from "../../Label-C4bJkVti.js";
|
|
3
|
-
import { t as Switch } from "../../switch-
|
|
3
|
+
import { t as Switch } from "../../switch-Bo6nmed_.js";
|
|
4
4
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -4,10 +4,10 @@ import { ToggleButton as ReactAriaToggleButton } from 'react-aria-components';
|
|
|
4
4
|
import { Tooltip } from '../tooltip/tooltip';
|
|
5
5
|
import type { Prettify } from '../../utilities/types';
|
|
6
6
|
declare const componentClasses: (props?: ({
|
|
7
|
-
size?: "
|
|
7
|
+
size?: "default" | "large" | "small" | null | undefined;
|
|
8
8
|
selected?: boolean | null | undefined;
|
|
9
9
|
flat?: boolean | null | undefined;
|
|
10
|
-
type?: "default" | "ghost" | "simple" | null | undefined;
|
|
10
|
+
type?: "default" | "ghost" | "outline" | "simple" | null | undefined;
|
|
11
11
|
disabled?: boolean | null | undefined;
|
|
12
12
|
hasIcon?: boolean | null | undefined;
|
|
13
13
|
iconOnly?: boolean | null | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ToggleButton } from "../../toggle-button-
|
|
1
|
+
import { t as ToggleButton } from "../../toggle-button-Cb4yCEua.js";
|
|
2
2
|
export { ToggleButton };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as Tooltip, t as DecorativeTooltip } from "../../tooltip-
|
|
1
|
+
import { n as Tooltip, t as DecorativeTooltip } from "../../tooltip-CT-vzIdz.js";
|
|
2
2
|
export { DecorativeTooltip, Tooltip };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as __ } from "./build-module-
|
|
1
|
+
import { t as __ } from "./build-module-BISCoQjQ.js";
|
|
2
2
|
import { DraggableContext } from "./components/draggable/draggable-context.js";
|
|
3
3
|
import { createContext, createElement, forwardRef, memo, startTransition, useCallback, useContext, useEffect, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-DQoRUQAf.js";
|
|
2
|
-
import { t as SolidColorPicker } from "./solid-color-picker-
|
|
3
|
-
import { t as ColorSwatch } from "./color-swatch-
|
|
4
|
-
import { t as NumberPicker } from "./number-picker-
|
|
5
|
-
import { n as ButtonGroup, t as Button } from "./button-
|
|
2
|
+
import { t as SolidColorPicker } from "./solid-color-picker-D5LEdmDM.js";
|
|
3
|
+
import { t as ColorSwatch } from "./color-swatch-DmhdOhe4.js";
|
|
4
|
+
import { t as NumberPicker } from "./number-picker-XqKW0BNi.js";
|
|
5
|
+
import { n as ButtonGroup, t as Button } from "./button-ldR_tlvk.js";
|
|
6
6
|
import { BaseControl } from "./components/base-control/base-control.js";
|
|
7
7
|
import { isColorDark } from "./utilities/general.js";
|
|
8
8
|
import { t as sprintf } from "./sprintf-xJRAt4p0.js";
|
|
9
|
-
import { t as __ } from "./build-module-
|
|
9
|
+
import { t as __ } from "./build-module-BISCoQjQ.js";
|
|
10
10
|
import { add } from "./icons/ui-icons/add.js";
|
|
11
11
|
import { angle } from "./icons/ui-icons/angle.js";
|
|
12
12
|
import { centerPoint } from "./icons/ui-icons/center-point.js";
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { AnimatedVisibility } from "./components/animated-visibility/animated-visibility.js";
|
|
2
|
-
import { t as LinkInput } from "./link-input-
|
|
3
|
-
import { t as Checkbox } from "./checkbox-
|
|
4
|
-
import { t as SolidColorPicker } from "./solid-color-picker-
|
|
5
|
-
import { t as ColorSwatch } from "./color-swatch-
|
|
6
|
-
import { i as Tabs, n as TabList, r as TabPanel, t as Tab } from "./tabs-
|
|
7
|
-
import { n as Tooltip, t as DecorativeTooltip } from "./tooltip-
|
|
8
|
-
import { t as Modal } from "./modal-
|
|
9
|
-
import { t as NumberPicker } from "./number-picker-
|
|
10
|
-
import { t as Switch } from "./switch-
|
|
11
|
-
import { t as InputField } from "./input-field-
|
|
12
|
-
import { t as ToggleButton } from "./toggle-button-
|
|
13
|
-
import { n as ButtonGroup, t as Button } from "./button-
|
|
2
|
+
import { t as LinkInput } from "./link-input-DdwuqoMg.js";
|
|
3
|
+
import { t as Checkbox } from "./checkbox-DDyLJRY8.js";
|
|
4
|
+
import { t as SolidColorPicker } from "./solid-color-picker-D5LEdmDM.js";
|
|
5
|
+
import { t as ColorSwatch } from "./color-swatch-DmhdOhe4.js";
|
|
6
|
+
import { i as Tabs, n as TabList, r as TabPanel, t as Tab } from "./tabs-DE-qb7Kt.js";
|
|
7
|
+
import { n as Tooltip, t as DecorativeTooltip } from "./tooltip-CT-vzIdz.js";
|
|
8
|
+
import { t as Modal } from "./modal-DZco5MDu.js";
|
|
9
|
+
import { t as NumberPicker } from "./number-picker-XqKW0BNi.js";
|
|
10
|
+
import { t as Switch } from "./switch-Bo6nmed_.js";
|
|
11
|
+
import { t as InputField } from "./input-field-C-XvZeCZ.js";
|
|
12
|
+
import { t as ToggleButton } from "./toggle-button-Cb4yCEua.js";
|
|
13
|
+
import { n as ButtonGroup, t as Button } from "./button-ldR_tlvk.js";
|
|
14
14
|
import { RichLabel } from "./components/rich-label/rich-label.js";
|
|
15
15
|
import { BaseControl } from "./components/base-control/base-control.js";
|
|
16
16
|
import { BreakpointPreview } from "./components/breakpoint-preview/breakpoint-preview.js";
|
|
@@ -29,12 +29,12 @@ import { ContextualHelp } from "./components/contextual-help/contextual-help.js"
|
|
|
29
29
|
import { DraggableList } from "./components/draggable-list/draggable-list.js";
|
|
30
30
|
import { DraggableListItem, DraggableListItemHandle } from "./components/draggable-list/draggable-list-item.js";
|
|
31
31
|
import { DraggableContext } from "./components/draggable/draggable-context.js";
|
|
32
|
-
import { t as Draggable } from "./draggable-
|
|
32
|
+
import { t as Draggable } from "./draggable-oS68xcYX.js";
|
|
33
33
|
import { DraggableHandle } from "./components/draggable/draggable-handle.js";
|
|
34
34
|
import { SmartImage } from "./components/smart-image/smart-image.js";
|
|
35
35
|
import { FilePickerShell } from "./components/placeholders/file-picker-shell.js";
|
|
36
36
|
import { FilePlaceholder } from "./components/placeholders/file-placeholder.js";
|
|
37
|
-
import { t as GradientEditor } from "./gradient-editor-
|
|
37
|
+
import { t as GradientEditor } from "./gradient-editor-DP8ioFX1.js";
|
|
38
38
|
import { MatrixAlign } from "./components/matrix-align/matrix-align.js";
|
|
39
39
|
import { RadioButton, RadioButtonGroup } from "./components/radio/radio.js";
|
|
40
40
|
import { OptionSelect } from "./components/option-select/option-select.js";
|
|
@@ -46,6 +46,8 @@ import { MediaPlaceholder } from "./components/placeholders/media-placeholder.js
|
|
|
46
46
|
import { ResponsivePreview } from "./components/responsive-preview/responsive-preview.js";
|
|
47
47
|
import { MiniResponsive } from "./components/responsive/mini-responsive.js";
|
|
48
48
|
import { Notice } from "./components/notice/notice.js";
|
|
49
|
+
import { VStack } from "./components/layout/vstack.js";
|
|
50
|
+
import { PromptPopover } from "./components/prompt-popover/prompt-popover.js";
|
|
49
51
|
import { PortalProvider } from "./components/portal-provider/portal-provider.js";
|
|
50
52
|
import { Repeater } from "./components/repeater/repeater.js";
|
|
51
53
|
import { RepeaterItem } from "./components/repeater/repeater-item.js";
|
|
@@ -56,6 +58,5 @@ import { AsyncSelect } from "./components/select/async-select.js";
|
|
|
56
58
|
import { MultiSelect } from "./components/select/multi-select.js";
|
|
57
59
|
import { OptionsPanel, OptionsPanelHeader, OptionsPanelIntro, OptionsPanelSection } from "./components/options-panel/options-panel.js";
|
|
58
60
|
import { Select } from "./components/select/single-select.js";
|
|
59
|
-
import { VStack } from "./components/layout/vstack.js";
|
|
60
61
|
import "./components/index.js";
|
|
61
|
-
export { AnimatedVisibility, AsyncMultiSelect, AsyncSelect, BaseControl, BreakpointPreview, Button, ButtonGroup, Checkbox, ColorPicker, ColorSwatch, ColumnConfigSlider, ColumnConfigSliderOutput, ComponentToggle, TypedContainer as Container, TypedContainerGroup as ContainerGroup, ContainerPanel, ContextualHelp, DecorativeTooltip, Draggable, DraggableContext, DraggableHandle, DraggableList, DraggableListItem, DraggableListItemHandle, Expandable, FilePickerShell, FilePlaceholder, GradientEditor, HStack, ImagePlaceholder, InputField, ItemCollection, LinkInput, MatrixAlign, MediaPlaceholder, Menu, MenuItem, MenuSection, MenuSectionHeader, MenuSeparator, MiniResponsive, Modal, MultiSelect, Notice, NumberPicker, OptionSelect, OptionsPanel, OptionsPanelHeader, OptionsPanelIntro, OptionsPanelSection, Popover, PortalProvider, RadioButton, RadioButtonGroup, Repeater, RepeaterItem, Responsive, ResponsiveLegacy, ResponsivePreview, RichLabel, Select, Slider, SmartImage, SolidColorPicker, Spacer, SubMenuItem, Switch, Tab, TabList, TabPanel, Tabs, Toggle, ToggleButton, Tooltip, TriggeredPopover, VStack, getColumnConfigOutputText };
|
|
62
|
+
export { AnimatedVisibility, AsyncMultiSelect, AsyncSelect, BaseControl, BreakpointPreview, Button, ButtonGroup, Checkbox, ColorPicker, ColorSwatch, ColumnConfigSlider, ColumnConfigSliderOutput, ComponentToggle, TypedContainer as Container, TypedContainerGroup as ContainerGroup, ContainerPanel, ContextualHelp, DecorativeTooltip, Draggable, DraggableContext, DraggableHandle, DraggableList, DraggableListItem, DraggableListItemHandle, Expandable, FilePickerShell, FilePlaceholder, GradientEditor, HStack, ImagePlaceholder, InputField, ItemCollection, LinkInput, MatrixAlign, MediaPlaceholder, Menu, MenuItem, MenuSection, MenuSectionHeader, MenuSeparator, MiniResponsive, Modal, MultiSelect, Notice, NumberPicker, OptionSelect, OptionsPanel, OptionsPanelHeader, OptionsPanelIntro, OptionsPanelSection, Popover, PortalProvider, PromptPopover, RadioButton, RadioButtonGroup, Repeater, RepeaterItem, Responsive, ResponsiveLegacy, ResponsivePreview, RichLabel, Select, Slider, SmartImage, SolidColorPicker, Spacer, SubMenuItem, Switch, Tab, TabList, TabPanel, Tabs, Toggle, ToggleButton, Tooltip, TriggeredPopover, VStack, getColumnConfigOutputText };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-DQoRUQAf.js";
|
|
2
2
|
import { c as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, i as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$df3a06d6289f983e, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$ef03459518577ad4, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a, u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-ClM91CuL.js";
|
|
3
|
-
import { t as $e969f22b6713ca4a$export$ae780daf29e6d456 } from "./useHover-
|
|
4
|
-
import { n as $4b38b5b75ecc6208$export$698f465ec27e93df } from "./Autocomplete-
|
|
3
|
+
import { t as $e969f22b6713ca4a$export$ae780daf29e6d456 } from "./useHover-CaY3sRjL.js";
|
|
4
|
+
import { n as $4b38b5b75ecc6208$export$698f465ec27e93df } from "./Autocomplete-Dqkum3dO.js";
|
|
5
5
|
import { t as $d7f64c32b702fe2c$export$86427a43e3e48ebb } from "./Hidden-C4Saxkx9.js";
|
|
6
6
|
import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-CgeMQsGa.js";
|
|
7
|
-
import { t as $0c4a58759813079a$export$4e328f61c538687f } from "./useFocusRing-
|
|
7
|
+
import { t as $0c4a58759813079a$export$4e328f61c538687f } from "./useFocusRing-JidySWlU.js";
|
|
8
8
|
import { n as $43a3b93638fe5db9$export$b04be29aa201d4f5, t as $43a3b93638fe5db9$export$75b6ee27786ba447 } from "./Label-C4bJkVti.js";
|
|
9
|
-
import { n as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-
|
|
9
|
+
import { n as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-CA2_mHEB.js";
|
|
10
10
|
import { n as $1f3c3b1a70cec653$export$ff05c3ac10437e03 } from "./useField-B_ibsWst.js";
|
|
11
11
|
import { t as $cdaed739b1139372$export$c24727297075ec6a } from "./Form-BWMVEpwR.js";
|
|
12
|
-
import { a as $3a442827418ebe87$export$f9c6924e160136d1, n as $41fb335299a4a39e$export$37fb8590cf2c088c, r as $41fb335299a4a39e$export$f5b8910cec6cf069, t as $054f71d2330da2e3$export$712718f7aec83d5 } from "./useTextField-
|
|
12
|
+
import { a as $3a442827418ebe87$export$f9c6924e160136d1, n as $41fb335299a4a39e$export$37fb8590cf2c088c, r as $41fb335299a4a39e$export$f5b8910cec6cf069, t as $054f71d2330da2e3$export$712718f7aec83d5 } from "./useTextField-C3QIkMON.js";
|
|
13
13
|
import { BaseControl } from "./components/base-control/base-control.js";
|
|
14
14
|
import { t as cva } from "./dist-DpXluZqJ.js";
|
|
15
15
|
import $3ARPR$react, { createContext, forwardRef, useCallback, useRef, useState } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { O as $2add3ce32c6007eb$export$9ac100e40613ea10, V as $23f2114a1b82827e$export$cd4e5573fbe2b576, q as $d447af545b77c9f1$export$b204af158042fbac } from "./useHover-CaY3sRjL.js";
|
|
2
2
|
//#region node_modules/react-aria/dist/private/utils/constants.mjs
|
|
3
3
|
var $8b2399d051d06d4c$export$447a38995de2c711 = "react-aria-clear-focus";
|
|
4
4
|
var $8b2399d051d06d4c$export$831c820ad60f9d12 = "react-aria-focus";
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-DQoRUQAf.js";
|
|
2
2
|
import { AnimatedVisibility } from "./components/animated-visibility/animated-visibility.js";
|
|
3
3
|
import { c as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, g as $a4e76a5424781910$export$e08e3b67e392101e, i as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$df3a06d6289f983e, p as $390e54f620492c70$export$f680877a34711e37, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$ef03459518577ad4, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a, u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-ClM91CuL.js";
|
|
4
|
-
import { r as $b72f3f7b3b5f42c6$export$2b35b76d2e30e129 } from "./keyboard-
|
|
5
|
-
import { A as $2add3ce32c6007eb$export$e1865c3bedcd822b,
|
|
6
|
-
import { n as $4b38b5b75ecc6208$export$698f465ec27e93df } from "./Autocomplete-
|
|
7
|
-
import { t as $600b3cf69ae46262$export$90fc3a17d93f704c } from "./useEvent-
|
|
4
|
+
import { r as $b72f3f7b3b5f42c6$export$2b35b76d2e30e129 } from "./keyboard-Cdqi5ZQQ.js";
|
|
5
|
+
import { A as $2add3ce32c6007eb$export$e1865c3bedcd822b, S as $caaf0dd3060ed57c$export$9a302a45f65d0572, U as $23f2114a1b82827e$export$e58f029f0fbfdb29, V as $23f2114a1b82827e$export$cd4e5573fbe2b576, d as $3e6197669829fe11$export$40bfa8c7b0832715, f as $fe16bffc7a557bf0$export$7f54fc3180508a52, m as $8f5a2122b0992be3$export$8397ddfc504fdb9a, q as $d447af545b77c9f1$export$b204af158042fbac, s as $8296dad1a4c5e0dc$export$8f71654801c2f7cd, z as $23f2114a1b82827e$export$4282f70798064fe0 } from "./useHover-CaY3sRjL.js";
|
|
6
|
+
import { n as $4b38b5b75ecc6208$export$698f465ec27e93df } from "./Autocomplete-Dqkum3dO.js";
|
|
7
|
+
import { t as $600b3cf69ae46262$export$90fc3a17d93f704c } from "./useEvent-C9zwSNzZ.js";
|
|
8
8
|
import { t as $e8ac3c3f5d4bae7f$export$d6875122194c7b44 } from "./useLabels-Dcg-cEyM.js";
|
|
9
9
|
import { t as $cf2482eff2eeeec2$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-CTCqjYu4.js";
|
|
10
|
-
import {
|
|
10
|
+
import { _ as $42ceafc619f9c3ba$export$bf788dd355e3a401, a as $cd5ea4b915021f1d$export$1005530eda016c13, c as $d667c2af82d35a98$export$d6daf82dcd84e87c } from "./useCollection-DqUS7tjk.js";
|
|
11
11
|
import { t as $d7f64c32b702fe2c$export$86427a43e3e48ebb } from "./Hidden-C4Saxkx9.js";
|
|
12
12
|
import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-CgeMQsGa.js";
|
|
13
13
|
import { n as $43a3b93638fe5db9$export$b04be29aa201d4f5, t as $43a3b93638fe5db9$export$75b6ee27786ba447 } from "./Label-C4bJkVti.js";
|
|
14
|
-
import { n as $7705c033048f6da7$export$353f5b6fc5456de1, r as $a46cf152bb926da5$export$a9b970dcc4ae71a9, t as $7705c033048f6da7$export$24d547caef80ccd1 } from "./Button-
|
|
15
|
-
import { n as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-
|
|
16
|
-
import { _ as $58196c8d6a1f38fc$export$1c3ebcada18427bf, d as $542a13ca2fa5b484$export$9b9a0cd73afb7ca4, l as $f19b83c1486f45cc$export$dc9c12ed27dd1b49, r as $f2ff30fde7b014be$export$d2f961adcb0afbe, u as $542a13ca2fa5b484$export$5b6b19405a83ff9d,
|
|
14
|
+
import { n as $7705c033048f6da7$export$353f5b6fc5456de1, r as $a46cf152bb926da5$export$a9b970dcc4ae71a9, t as $7705c033048f6da7$export$24d547caef80ccd1 } from "./Button-DHgs_rCq.js";
|
|
15
|
+
import { n as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-CA2_mHEB.js";
|
|
16
|
+
import { S as $ae8f8d98b2b18f2f$export$a05409b8bb224a5a, _ as $58196c8d6a1f38fc$export$1c3ebcada18427bf, d as $542a13ca2fa5b484$export$9b9a0cd73afb7ca4, l as $f19b83c1486f45cc$export$dc9c12ed27dd1b49, r as $f2ff30fde7b014be$export$d2f961adcb0afbe, u as $542a13ca2fa5b484$export$5b6b19405a83ff9d, y as $2efe10d3f1f9e31e$export$77d5aafae4e095b2 } from "./Dialog-CldDJ_4u.js";
|
|
17
17
|
import { n as $1f3c3b1a70cec653$export$ff05c3ac10437e03 } from "./useField-B_ibsWst.js";
|
|
18
|
-
import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10, n as $fd2148440a13ec26$export$a763b9476acd3eb } from "./useFormValidation-
|
|
18
|
+
import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10, n as $fd2148440a13ec26$export$a763b9476acd3eb } from "./useFormValidation-CpmQEh8J.js";
|
|
19
19
|
import { t as $cdaed739b1139372$export$c24727297075ec6a } from "./Form-BWMVEpwR.js";
|
|
20
|
-
import { t as $3274bf1495747a7b$export$5add1d006293d136 } from "./useFormReset-
|
|
21
|
-
import { a as $3a442827418ebe87$export$f9c6924e160136d1, i as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, n as $41fb335299a4a39e$export$37fb8590cf2c088c, r as $41fb335299a4a39e$export$f5b8910cec6cf069, t as $054f71d2330da2e3$export$712718f7aec83d5 } from "./useTextField-
|
|
22
|
-
import { i as $928221da08ecbc62$export$a11e76429ed99b4, n as $928221da08ecbc62$export$7c5906fe4f1f2af2, o as $cd088b5c0d7b27b4$export$3585ede4d035bf14, r as $928221da08ecbc62$export$7ff8f37d2d81a48d, s as $cd088b5c0d7b27b4$export$9145995848b05025, t as $928221da08ecbc62$export$41f133550aa26f48 } from "./ListBox-
|
|
23
|
-
import { r as $f664a81d022446b5$export$d085fb9e920b5ca7, t as $b14b6f590b50af39$export$2f645645f7bca764 } from "./useListState-
|
|
24
|
-
import { r as $970072cf4b13fde3$export$683480f191c0e3ea, t as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6 } from "./useOverlayTriggerState-
|
|
25
|
-
import { t as $ef182bb9912241d8$export$3274cf84b703fff } from "./useFilter-
|
|
26
|
-
import { n as Tooltip } from "./tooltip-
|
|
20
|
+
import { t as $3274bf1495747a7b$export$5add1d006293d136 } from "./useFormReset-Sp8-miDa.js";
|
|
21
|
+
import { a as $3a442827418ebe87$export$f9c6924e160136d1, i as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, n as $41fb335299a4a39e$export$37fb8590cf2c088c, r as $41fb335299a4a39e$export$f5b8910cec6cf069, t as $054f71d2330da2e3$export$712718f7aec83d5 } from "./useTextField-C3QIkMON.js";
|
|
22
|
+
import { i as $928221da08ecbc62$export$a11e76429ed99b4, n as $928221da08ecbc62$export$7c5906fe4f1f2af2, o as $cd088b5c0d7b27b4$export$3585ede4d035bf14, r as $928221da08ecbc62$export$7ff8f37d2d81a48d, s as $cd088b5c0d7b27b4$export$9145995848b05025, t as $928221da08ecbc62$export$41f133550aa26f48 } from "./ListBox-CZXso3mJ.js";
|
|
23
|
+
import { r as $f664a81d022446b5$export$d085fb9e920b5ca7, t as $b14b6f590b50af39$export$2f645645f7bca764 } from "./useListState-CzB3v6M9.js";
|
|
24
|
+
import { r as $970072cf4b13fde3$export$683480f191c0e3ea, t as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6 } from "./useOverlayTriggerState-BKmSTK_5.js";
|
|
25
|
+
import { t as $ef182bb9912241d8$export$3274cf84b703fff } from "./useFilter-C75IzdIZ.js";
|
|
26
|
+
import { n as Tooltip } from "./tooltip-CT-vzIdz.js";
|
|
27
27
|
import { t as $c73d3f3d5ec90946$export$bc3384a35de93d66 } from "./useAsyncList-CjKVLGN0.js";
|
|
28
28
|
import { RichLabel } from "./components/rich-label/rich-label.js";
|
|
29
29
|
import { BaseControl } from "./components/base-control/base-control.js";
|
|
30
30
|
import { randomId } from "./utilities/hash.js";
|
|
31
|
-
import { t as __ } from "./build-module-
|
|
31
|
+
import { t as __ } from "./build-module-BISCoQjQ.js";
|
|
32
32
|
import { t as cva } from "./dist-DpXluZqJ.js";
|
|
33
33
|
import { Spinner } from "./icons/spinner.js";
|
|
34
34
|
import { anchor } from "./icons/ui-icons/anchor.js";
|
|
@@ -954,7 +954,7 @@ function $bf505c7417d9b616$export$8c18d1b4f7232bbf(props, state) {
|
|
|
954
954
|
allowRepeats: true
|
|
955
955
|
});
|
|
956
956
|
let onBlur = (e) => {
|
|
957
|
-
let blurFromButton = buttonRef
|
|
957
|
+
let blurFromButton = $23f2114a1b82827e$export$4282f70798064fe0(buttonRef.current, e.relatedTarget);
|
|
958
958
|
let blurIntoPopover = $23f2114a1b82827e$export$4282f70798064fe0(popoverRef.current, e.relatedTarget);
|
|
959
959
|
if (blurFromButton || blurIntoPopover) return;
|
|
960
960
|
if (props.onBlur) props.onBlur(e);
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-DQoRUQAf.js";
|
|
2
2
|
import { d as $4064df0d6f9620e1$export$c9058316764c140e, l as $03e8ab2d84d7657a$export$4338b53315abf666, m as $c7eafbbe1ea5834e$export$535bd6ca7f90a273, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$df3a06d6289f983e, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a, u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-ClM91CuL.js";
|
|
3
|
-
import { n as $bb39c0fc1c19b34c$export$c57958e35f31ed73 } from "./keyboard-
|
|
4
|
-
import { D as $2add3ce32c6007eb$export$78551043582a6a98, U as $23f2114a1b82827e$export$e58f029f0fbfdb29, V as $23f2114a1b82827e$export$cd4e5573fbe2b576, j as $2add3ce32c6007eb$export$fedb369cb70207f1 } from "./useHover-
|
|
5
|
-
import {
|
|
3
|
+
import { n as $bb39c0fc1c19b34c$export$c57958e35f31ed73 } from "./keyboard-Cdqi5ZQQ.js";
|
|
4
|
+
import { D as $2add3ce32c6007eb$export$78551043582a6a98, U as $23f2114a1b82827e$export$e58f029f0fbfdb29, V as $23f2114a1b82827e$export$cd4e5573fbe2b576, j as $2add3ce32c6007eb$export$fedb369cb70207f1 } from "./useHover-CaY3sRjL.js";
|
|
5
|
+
import { d as $901761b40e390936$export$2bb74740c4e19def } from "./useCollection-DqUS7tjk.js";
|
|
6
6
|
import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-CgeMQsGa.js";
|
|
7
7
|
import { t as $2ec61d1d4f780267$export$a8a3e93435678ff9 } from "./Heading-BQje2nS2.js";
|
|
8
|
-
import { _ as $58196c8d6a1f38fc$export$1c3ebcada18427bf, f as $d7a937236970dc7f$export$14c98a7594375490, g as $77844860df94ba23$export$ea8f71083e90600f, h as $0644e3663365bfe5$export$ee0f7cc6afcd1c18, m as $081058010ef8962e$export$2317d149ed6f78c4, n as $f2ff30fde7b014be$export$3ddf2d174ce01153, p as $d7a937236970dc7f$export$c6fdb837b070b4ff, r as $f2ff30fde7b014be$export$d2f961adcb0afbe, t as $f2ff30fde7b014be$export$2e1e1122cf0cba88 } from "./Dialog-
|
|
9
|
-
import { t as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6 } from "./useOverlayTriggerState-
|
|
8
|
+
import { _ as $58196c8d6a1f38fc$export$1c3ebcada18427bf, f as $d7a937236970dc7f$export$14c98a7594375490, g as $77844860df94ba23$export$ea8f71083e90600f, h as $0644e3663365bfe5$export$ee0f7cc6afcd1c18, m as $081058010ef8962e$export$2317d149ed6f78c4, n as $f2ff30fde7b014be$export$3ddf2d174ce01153, p as $d7a937236970dc7f$export$c6fdb837b070b4ff, r as $f2ff30fde7b014be$export$d2f961adcb0afbe, t as $f2ff30fde7b014be$export$2e1e1122cf0cba88 } from "./Dialog-CldDJ_4u.js";
|
|
9
|
+
import { t as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6 } from "./useOverlayTriggerState-BKmSTK_5.js";
|
|
10
10
|
import { n as $fcc7165e876206c6$export$6d3443f2c48bfc20, t as $fcc7165e876206c6$export$45fda7c47f93fd48 } from "./animation-COc9P6ap.js";
|
|
11
|
-
import { t as Button } from "./button-
|
|
12
|
-
import { t as __ } from "./build-module-
|
|
11
|
+
import { t as Button } from "./button-ldR_tlvk.js";
|
|
12
|
+
import { t as __ } from "./build-module-BISCoQjQ.js";
|
|
13
13
|
import { clear } from "./icons/ui-icons/clear.js";
|
|
14
14
|
import { HStack } from "./components/layout/hstack.js";
|
|
15
15
|
import $3ARPR$react, { createContext, forwardRef, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
@@ -3,13 +3,13 @@ import { c as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, i as $7230ffa83bc0c2cf$
|
|
|
3
3
|
import { t as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7 } from "./I18nProvider-R_4IDnf9.js";
|
|
4
4
|
import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-CgeMQsGa.js";
|
|
5
5
|
import { n as $43a3b93638fe5db9$export$b04be29aa201d4f5, t as $43a3b93638fe5db9$export$75b6ee27786ba447 } from "./Label-C4bJkVti.js";
|
|
6
|
-
import { n as $cd2fa56213693c5e$export$23f548e970bdf099, t as $3d0ee518c6f3d04f$export$7f629e9dc1ecf37c } from "./useNumberFieldState-
|
|
7
|
-
import { t as $7705c033048f6da7$export$24d547caef80ccd1 } from "./Button-
|
|
8
|
-
import { n as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-
|
|
6
|
+
import { n as $cd2fa56213693c5e$export$23f548e970bdf099, t as $3d0ee518c6f3d04f$export$7f629e9dc1ecf37c } from "./useNumberFieldState-DC3XY3DQ.js";
|
|
7
|
+
import { t as $7705c033048f6da7$export$24d547caef80ccd1 } from "./Button-DHgs_rCq.js";
|
|
8
|
+
import { n as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-CA2_mHEB.js";
|
|
9
9
|
import { n as $1f3c3b1a70cec653$export$ff05c3ac10437e03 } from "./useField-B_ibsWst.js";
|
|
10
10
|
import { t as $cdaed739b1139372$export$c24727297075ec6a } from "./Form-BWMVEpwR.js";
|
|
11
|
-
import { a as $3a442827418ebe87$export$f9c6924e160136d1, i as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, n as $41fb335299a4a39e$export$37fb8590cf2c088c, r as $41fb335299a4a39e$export$f5b8910cec6cf069 } from "./useTextField-
|
|
12
|
-
import { n as ButtonGroup, t as Button } from "./button-
|
|
11
|
+
import { a as $3a442827418ebe87$export$f9c6924e160136d1, i as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, n as $41fb335299a4a39e$export$37fb8590cf2c088c, r as $41fb335299a4a39e$export$f5b8910cec6cf069 } from "./useTextField-C3QIkMON.js";
|
|
12
|
+
import { n as ButtonGroup, t as Button } from "./button-ldR_tlvk.js";
|
|
13
13
|
import { BaseControl } from "./components/base-control/base-control.js";
|
|
14
14
|
import { t as cva } from "./dist-DpXluZqJ.js";
|
|
15
15
|
import { chevronDown } from "./icons/ui-icons/chevron-down.js";
|
|
@@ -862,15 +862,16 @@ var generateLinearEasing = (easing, duration, resolution = 10) => {
|
|
|
862
862
|
* to prevent infinite loops
|
|
863
863
|
*/
|
|
864
864
|
var maxGeneratorDuration = 2e4;
|
|
865
|
-
function calcGeneratorDuration(generator) {
|
|
865
|
+
function calcGeneratorDuration(generator, timeStep = 50, maxDuration = maxGeneratorDuration, keyframes) {
|
|
866
866
|
let duration = 0;
|
|
867
|
-
const timeStep = 50;
|
|
868
867
|
let state = generator.next(duration);
|
|
869
|
-
|
|
868
|
+
keyframes?.push(state.value);
|
|
869
|
+
while (!state.done && duration < maxDuration) {
|
|
870
870
|
duration += timeStep;
|
|
871
871
|
state = generator.next(duration);
|
|
872
|
+
keyframes?.push(state.value);
|
|
872
873
|
}
|
|
873
|
-
return duration >=
|
|
874
|
+
return duration >= maxDuration ? Infinity : duration;
|
|
874
875
|
}
|
|
875
876
|
//#endregion
|
|
876
877
|
//#region node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs
|
|
@@ -952,9 +953,9 @@ function findSpring({ duration = springDefaults.duration, bounce = springDefault
|
|
|
952
953
|
derivative = (undampedFreq) => {
|
|
953
954
|
const delta = undampedFreq * dampingRatio * duration;
|
|
954
955
|
const d = delta * velocity + velocity;
|
|
955
|
-
const e =
|
|
956
|
+
const e = dampingRatio * dampingRatio * undampedFreq * undampedFreq * duration;
|
|
956
957
|
const f = Math.exp(-delta);
|
|
957
|
-
const g = calcAngularFreq(
|
|
958
|
+
const g = calcAngularFreq(undampedFreq * undampedFreq, dampingRatio);
|
|
958
959
|
return (-envelope(undampedFreq) + safeMin > 0 ? -1 : 1) * ((d - e) * f) / g;
|
|
959
960
|
};
|
|
960
961
|
} else {
|
|
@@ -977,7 +978,7 @@ function findSpring({ duration = springDefaults.duration, bounce = springDefault
|
|
|
977
978
|
duration
|
|
978
979
|
};
|
|
979
980
|
else {
|
|
980
|
-
const stiffness =
|
|
981
|
+
const stiffness = undampedFreq * undampedFreq * mass;
|
|
981
982
|
return {
|
|
982
983
|
stiffness,
|
|
983
984
|
damping: dampingRatio * 2 * Math.sqrt(mass * stiffness),
|
|
@@ -1056,6 +1057,7 @@ function spring(optionsOrVisualDuration = springDefaults.visualDuration, bounce
|
|
|
1056
1057
|
const dampingRatio = damping / (2 * Math.sqrt(stiffness * mass));
|
|
1057
1058
|
const initialDelta = target - origin;
|
|
1058
1059
|
const undampedAngularFreq = millisecondsToSeconds(Math.sqrt(stiffness / mass));
|
|
1060
|
+
const decay = dampingRatio * undampedAngularFreq;
|
|
1059
1061
|
/**
|
|
1060
1062
|
* If we're working on a granular scale, use smaller defaults for determining
|
|
1061
1063
|
* when the spring is finished.
|
|
@@ -1068,21 +1070,36 @@ function spring(optionsOrVisualDuration = springDefaults.visualDuration, bounce
|
|
|
1068
1070
|
restDelta || (restDelta = isGranularScale ? springDefaults.restDelta.granular : springDefaults.restDelta.default);
|
|
1069
1071
|
let resolveSpring;
|
|
1070
1072
|
let resolveVelocity;
|
|
1071
|
-
let angularFreq;
|
|
1072
|
-
let A;
|
|
1073
|
-
let sinCoeff;
|
|
1074
|
-
let cosCoeff;
|
|
1075
1073
|
if (dampingRatio < 1) {
|
|
1076
|
-
angularFreq = calcAngularFreq(undampedAngularFreq, dampingRatio);
|
|
1077
|
-
A = (initialVelocity +
|
|
1074
|
+
const angularFreq = calcAngularFreq(undampedAngularFreq, dampingRatio);
|
|
1075
|
+
const A = (initialVelocity + decay * initialDelta) / angularFreq;
|
|
1076
|
+
const sinCoeff = decay * A + initialDelta * angularFreq;
|
|
1077
|
+
const cosCoeff = decay * initialDelta - A * angularFreq;
|
|
1078
|
+
/**
|
|
1079
|
+
* The underdamped hot path needs both position and velocity every
|
|
1080
|
+
* frame and they share the same exp/sin/cos terms, so sample both
|
|
1081
|
+
* at once, memoized by t, to only calculate them once per frame.
|
|
1082
|
+
*/
|
|
1083
|
+
let sampledT = -1;
|
|
1084
|
+
let position = 0;
|
|
1085
|
+
let velocityAtT = 0;
|
|
1086
|
+
const sample = (t) => {
|
|
1087
|
+
if (t !== sampledT) {
|
|
1088
|
+
sampledT = t;
|
|
1089
|
+
const envelope = Math.exp(-decay * t);
|
|
1090
|
+
const sin = Math.sin(angularFreq * t);
|
|
1091
|
+
const cos = Math.cos(angularFreq * t);
|
|
1092
|
+
position = target - envelope * (A * sin + initialDelta * cos);
|
|
1093
|
+
velocityAtT = envelope * (sinCoeff * sin + cosCoeff * cos);
|
|
1094
|
+
}
|
|
1095
|
+
};
|
|
1078
1096
|
resolveSpring = (t) => {
|
|
1079
|
-
|
|
1080
|
-
return
|
|
1097
|
+
sample(t);
|
|
1098
|
+
return position;
|
|
1081
1099
|
};
|
|
1082
|
-
sinCoeff = dampingRatio * undampedAngularFreq * A + initialDelta * angularFreq;
|
|
1083
|
-
cosCoeff = dampingRatio * undampedAngularFreq * initialDelta - A * angularFreq;
|
|
1084
1100
|
resolveVelocity = (t) => {
|
|
1085
|
-
|
|
1101
|
+
sample(t);
|
|
1102
|
+
return velocityAtT;
|
|
1086
1103
|
};
|
|
1087
1104
|
} else if (dampingRatio === 1) {
|
|
1088
1105
|
resolveSpring = (t) => target - Math.exp(-undampedAngularFreq * t) * (initialDelta + (initialVelocity + undampedAngularFreq * initialDelta) * t);
|
|
@@ -1091,15 +1108,15 @@ function spring(optionsOrVisualDuration = springDefaults.visualDuration, bounce
|
|
|
1091
1108
|
} else {
|
|
1092
1109
|
const dampedAngularFreq = undampedAngularFreq * Math.sqrt(dampingRatio * dampingRatio - 1);
|
|
1093
1110
|
resolveSpring = (t) => {
|
|
1094
|
-
const envelope = Math.exp(-
|
|
1111
|
+
const envelope = Math.exp(-decay * t);
|
|
1095
1112
|
const freqForT = Math.min(dampedAngularFreq * t, 300);
|
|
1096
|
-
return target - envelope * ((initialVelocity +
|
|
1113
|
+
return target - envelope * ((initialVelocity + decay * initialDelta) * Math.sinh(freqForT) + dampedAngularFreq * initialDelta * Math.cosh(freqForT)) / dampedAngularFreq;
|
|
1097
1114
|
};
|
|
1098
|
-
const P = (initialVelocity +
|
|
1099
|
-
const sinhCoeff =
|
|
1100
|
-
const coshCoeff =
|
|
1115
|
+
const P = (initialVelocity + decay * initialDelta) / dampedAngularFreq;
|
|
1116
|
+
const sinhCoeff = decay * P - initialDelta * dampedAngularFreq;
|
|
1117
|
+
const coshCoeff = decay * initialDelta - P * dampedAngularFreq;
|
|
1101
1118
|
resolveVelocity = (t) => {
|
|
1102
|
-
const envelope = Math.exp(-
|
|
1119
|
+
const envelope = Math.exp(-decay * t);
|
|
1103
1120
|
const freqForT = Math.min(dampedAngularFreq * t, 300);
|
|
1104
1121
|
return envelope * (sinhCoeff * Math.sinh(freqForT) + coshCoeff * Math.cosh(freqForT));
|
|
1105
1122
|
};
|
|
@@ -1108,21 +1125,6 @@ function spring(optionsOrVisualDuration = springDefaults.visualDuration, bounce
|
|
|
1108
1125
|
calculatedDuration: isResolvedFromDuration ? duration || null : null,
|
|
1109
1126
|
velocity: (t) => secondsToMilliseconds(resolveVelocity(t)),
|
|
1110
1127
|
next: (t) => {
|
|
1111
|
-
/**
|
|
1112
|
-
* For underdamped physics springs we need both position and
|
|
1113
|
-
* velocity each tick. Compute shared trig values once to avoid
|
|
1114
|
-
* duplicate Math.exp/sin/cos calls on the hot path.
|
|
1115
|
-
*/
|
|
1116
|
-
if (!isResolvedFromDuration && dampingRatio < 1) {
|
|
1117
|
-
const envelope = Math.exp(-dampingRatio * undampedAngularFreq * t);
|
|
1118
|
-
const sin = Math.sin(angularFreq * t);
|
|
1119
|
-
const cos = Math.cos(angularFreq * t);
|
|
1120
|
-
const current = target - envelope * (A * sin + initialDelta * cos);
|
|
1121
|
-
const currentVelocity = secondsToMilliseconds(envelope * (sinCoeff * sin + cosCoeff * cos));
|
|
1122
|
-
state.done = Math.abs(currentVelocity) <= restSpeed && Math.abs(target - current) <= restDelta;
|
|
1123
|
-
state.value = state.done ? target : current;
|
|
1124
|
-
return state;
|
|
1125
|
-
}
|
|
1126
1128
|
const current = resolveSpring(t);
|
|
1127
1129
|
if (!isResolvedFromDuration) {
|
|
1128
1130
|
const currentVelocity = secondsToMilliseconds(resolveVelocity(t));
|
|
@@ -1148,13 +1150,6 @@ spring.applyToOptions = (options) => {
|
|
|
1148
1150
|
return options;
|
|
1149
1151
|
};
|
|
1150
1152
|
//#endregion
|
|
1151
|
-
//#region node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs
|
|
1152
|
-
var velocitySampleDuration = 5;
|
|
1153
|
-
function getGeneratorVelocity(resolveValue, t, current) {
|
|
1154
|
-
const prevT = Math.max(t - velocitySampleDuration, 0);
|
|
1155
|
-
return velocityPerSecond(current - resolveValue(prevT), t - prevT);
|
|
1156
|
-
}
|
|
1157
|
-
//#endregion
|
|
1158
1153
|
//#region node_modules/motion-dom/dist/es/animation/generators/inertia.mjs
|
|
1159
1154
|
function inertia({ keyframes, velocity = 0, power = .8, timeConstant = 325, bounceDamping = 10, bounceStiffness = 500, modifyTarget, min, max, restDelta = .5, restSpeed }) {
|
|
1160
1155
|
const origin = keyframes[0];
|
|
@@ -1162,7 +1157,7 @@ function inertia({ keyframes, velocity = 0, power = .8, timeConstant = 325, boun
|
|
|
1162
1157
|
done: false,
|
|
1163
1158
|
value: origin
|
|
1164
1159
|
};
|
|
1165
|
-
const isOutOfBounds = (v) =>
|
|
1160
|
+
const isOutOfBounds = (v) => v < min || v > max;
|
|
1166
1161
|
const nearestBoundary = (v) => {
|
|
1167
1162
|
if (min === void 0) return max;
|
|
1168
1163
|
if (max === void 0) return min;
|
|
@@ -1177,12 +1172,10 @@ function inertia({ keyframes, velocity = 0, power = .8, timeConstant = 325, boun
|
|
|
1177
1172
|
*/
|
|
1178
1173
|
if (target !== ideal) amplitude = target - origin;
|
|
1179
1174
|
const calcDelta = (t) => -amplitude * Math.exp(-t / timeConstant);
|
|
1180
|
-
const calcLatest = (t) => target + calcDelta(t);
|
|
1181
1175
|
const applyFriction = (t) => {
|
|
1182
1176
|
const delta = calcDelta(t);
|
|
1183
|
-
const latest = calcLatest(t);
|
|
1184
1177
|
state.done = Math.abs(delta) <= restDelta;
|
|
1185
|
-
state.value = state.done ? target :
|
|
1178
|
+
state.value = state.done ? target : target + delta;
|
|
1186
1179
|
};
|
|
1187
1180
|
/**
|
|
1188
1181
|
* Ideally this would resolve for t in a stateless way, we could
|
|
@@ -1197,7 +1190,12 @@ function inertia({ keyframes, velocity = 0, power = .8, timeConstant = 325, boun
|
|
|
1197
1190
|
timeReachedBoundary = t;
|
|
1198
1191
|
spring$1 = spring({
|
|
1199
1192
|
keyframes: [state.value, nearestBoundary(state.value)],
|
|
1200
|
-
|
|
1193
|
+
/**
|
|
1194
|
+
* The friction curve is target + calcDelta(t), so its exact
|
|
1195
|
+
* derivative is -calcDelta(t) / timeConstant in units/ms,
|
|
1196
|
+
* converted here to the units/second expected by spring.
|
|
1197
|
+
*/
|
|
1198
|
+
velocity: -calcDelta(t) / timeConstant * 1e3,
|
|
1201
1199
|
damping: bounceDamping,
|
|
1202
1200
|
stiffness: bounceStiffness,
|
|
1203
1201
|
restDelta,
|
|
@@ -1349,6 +1347,13 @@ function keyframes({ duration = 300, keyframes: keyframeValues, times, ease = "e
|
|
|
1349
1347
|
};
|
|
1350
1348
|
}
|
|
1351
1349
|
//#endregion
|
|
1350
|
+
//#region node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs
|
|
1351
|
+
var velocitySampleDuration = 5;
|
|
1352
|
+
function getGeneratorVelocity(resolveValue, t, current) {
|
|
1353
|
+
const prevT = Math.max(t - velocitySampleDuration, 0);
|
|
1354
|
+
return velocityPerSecond(current - resolveValue(prevT), t - prevT);
|
|
1355
|
+
}
|
|
1356
|
+
//#endregion
|
|
1352
1357
|
//#region node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs
|
|
1353
1358
|
var isNotNull = (value) => value !== null;
|
|
1354
1359
|
function getFinalKeyframe(keyframes, { repeat, repeatType = "loop" }, finalKeyframe, speed = 1) {
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-DQoRUQAf.js";
|
|
2
2
|
import { AnimatedVisibility } from "./components/animated-visibility/animated-visibility.js";
|
|
3
3
|
import { c as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, g as $a4e76a5424781910$export$e08e3b67e392101e, i as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$df3a06d6289f983e, p as $390e54f620492c70$export$f680877a34711e37, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$ef03459518577ad4, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a, u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-ClM91CuL.js";
|
|
4
|
-
import { U as $23f2114a1b82827e$export$e58f029f0fbfdb29, d as $3e6197669829fe11$export$40bfa8c7b0832715, m as $8f5a2122b0992be3$export$8397ddfc504fdb9a, s as $8296dad1a4c5e0dc$export$8f71654801c2f7cd, z as $23f2114a1b82827e$export$4282f70798064fe0 } from "./useHover-
|
|
4
|
+
import { U as $23f2114a1b82827e$export$e58f029f0fbfdb29, d as $3e6197669829fe11$export$40bfa8c7b0832715, m as $8f5a2122b0992be3$export$8397ddfc504fdb9a, s as $8296dad1a4c5e0dc$export$8f71654801c2f7cd, z as $23f2114a1b82827e$export$4282f70798064fe0 } from "./useHover-CaY3sRjL.js";
|
|
5
5
|
import { t as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7 } from "./I18nProvider-R_4IDnf9.js";
|
|
6
6
|
import { t as $cf2482eff2eeeec2$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-CTCqjYu4.js";
|
|
7
|
-
import {
|
|
7
|
+
import { _ as $42ceafc619f9c3ba$export$bf788dd355e3a401, l as $f5a4a9a3486154da$export$e32c88dfddc6e1d8 } from "./useCollection-DqUS7tjk.js";
|
|
8
8
|
import { t as $d7f64c32b702fe2c$export$86427a43e3e48ebb } from "./Hidden-C4Saxkx9.js";
|
|
9
9
|
import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-CgeMQsGa.js";
|
|
10
|
-
import { t as $0c4a58759813079a$export$4e328f61c538687f } from "./useFocusRing-
|
|
10
|
+
import { t as $0c4a58759813079a$export$4e328f61c538687f } from "./useFocusRing-JidySWlU.js";
|
|
11
11
|
import { t as $43a3b93638fe5db9$export$75b6ee27786ba447 } from "./Label-C4bJkVti.js";
|
|
12
|
-
import { n as $7705c033048f6da7$export$353f5b6fc5456de1, t as $7705c033048f6da7$export$24d547caef80ccd1 } from "./Button-
|
|
13
|
-
import { n as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-
|
|
14
|
-
import {
|
|
15
|
-
import { n as $ea3928288112382f$export$a966af930f325cab } from "./VisuallyHidden-
|
|
12
|
+
import { n as $7705c033048f6da7$export$353f5b6fc5456de1, t as $7705c033048f6da7$export$24d547caef80ccd1 } from "./Button-DHgs_rCq.js";
|
|
13
|
+
import { n as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-CA2_mHEB.js";
|
|
14
|
+
import { S as $ae8f8d98b2b18f2f$export$a05409b8bb224a5a, d as $542a13ca2fa5b484$export$9b9a0cd73afb7ca4, l as $f19b83c1486f45cc$export$dc9c12ed27dd1b49, r as $f2ff30fde7b014be$export$d2f961adcb0afbe, x as $673d46fce3e5717d$export$a16aca283550c30d } from "./Dialog-CldDJ_4u.js";
|
|
15
|
+
import { n as $ea3928288112382f$export$a966af930f325cab } from "./VisuallyHidden-ZZwHZDro.js";
|
|
16
16
|
import { n as $1f3c3b1a70cec653$export$ff05c3ac10437e03, t as $191c9b6d48a0a4e2$export$294aa081a6c6f55d } from "./useField-B_ibsWst.js";
|
|
17
|
-
import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10, t as $860f7da480e22816$export$b8473d3665f3a75a } from "./useFormValidation-
|
|
17
|
+
import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10, t as $860f7da480e22816$export$b8473d3665f3a75a } from "./useFormValidation-CpmQEh8J.js";
|
|
18
18
|
import { t as $cdaed739b1139372$export$c24727297075ec6a } from "./Form-BWMVEpwR.js";
|
|
19
|
-
import { t as $3274bf1495747a7b$export$5add1d006293d136 } from "./useFormReset-
|
|
20
|
-
import { i as $928221da08ecbc62$export$a11e76429ed99b4, n as $928221da08ecbc62$export$7c5906fe4f1f2af2, r as $928221da08ecbc62$export$7ff8f37d2d81a48d } from "./ListBox-
|
|
21
|
-
import { t as $b14b6f590b50af39$export$2f645645f7bca764 } from "./useListState-
|
|
22
|
-
import { t as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6 } from "./useOverlayTriggerState-
|
|
23
|
-
import { t as __ } from "./build-module-
|
|
19
|
+
import { t as $3274bf1495747a7b$export$5add1d006293d136 } from "./useFormReset-Sp8-miDa.js";
|
|
20
|
+
import { i as $928221da08ecbc62$export$a11e76429ed99b4, n as $928221da08ecbc62$export$7c5906fe4f1f2af2, r as $928221da08ecbc62$export$7ff8f37d2d81a48d } from "./ListBox-CZXso3mJ.js";
|
|
21
|
+
import { t as $b14b6f590b50af39$export$2f645645f7bca764 } from "./useListState-CzB3v6M9.js";
|
|
22
|
+
import { t as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6 } from "./useOverlayTriggerState-BKmSTK_5.js";
|
|
23
|
+
import { t as __ } from "./build-module-BISCoQjQ.js";
|
|
24
24
|
import { Icon } from "./icons/icon.js";
|
|
25
25
|
import { check } from "./icons/ui-icons/check.js";
|
|
26
26
|
import { clear } from "./icons/ui-icons/clear.js";
|