solid-baseui 0.1.0-alpha.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/LICENSE +26 -0
- package/README.md +150 -0
- package/dist/lib/client/CSPContext-faVzToiT.js +10 -0
- package/dist/lib/client/CheckboxGroupContext-1CRRHK0T.js +8 -0
- package/dist/lib/client/DialogHandle-DrN2YWCv.js +518 -0
- package/dist/lib/client/DialogPopup-ZlqmGfdk.js +136 -0
- package/dist/lib/client/DirectionContext-BwMabICS.js +7 -0
- package/dist/lib/client/FieldControl-Bc-z2og6.js +116 -0
- package/dist/lib/client/FieldItemContext-Bwzf-4tL.js +7 -0
- package/dist/lib/client/FieldRootContext-izCEh80D.js +32 -0
- package/dist/lib/client/FieldsetRootContext-BgThSAcd.js +13 -0
- package/dist/lib/client/FloatingTree-23B7KKPD.js +83 -0
- package/dist/lib/client/FocusManager-grSdNHqW.js +360 -0
- package/dist/lib/client/FormContext-BB05lWOI.js +16 -0
- package/dist/lib/client/InternalBackdrop-cSK13gaM.js +160 -0
- package/dist/lib/client/LabelableContext-DKsB0fIx.js +48 -0
- package/dist/lib/client/MenuSubmenuTrigger-QZkQ0F2v.js +1570 -0
- package/dist/lib/client/MenubarContext-BYt3fkt-.js +13 -0
- package/dist/lib/client/PopupHandle-CcJG4NMy.js +101 -0
- package/dist/lib/client/PopupStore-DjB-wO88.js +468 -0
- package/dist/lib/client/PopupViewport-DgrIqQea.js +152 -0
- package/dist/lib/client/RadioGroupContext-CZexBsPa.js +9 -0
- package/dist/lib/client/Separator-9DboD_Si.js +25 -0
- package/dist/lib/client/ToggleGroupContext-_THxLgJU.js +9 -0
- package/dist/lib/client/ToolbarGroupContext-Dpc3_mFx.js +9 -0
- package/dist/lib/client/ToolbarItemOwnerContext-DtVqVnSE.js +9 -0
- package/dist/lib/client/ToolbarRootContext-88yZoAOy.js +13 -0
- package/dist/lib/client/TriggerFocusGuards-CQ-JuASy.js +56 -0
- package/dist/lib/client/accordion/index.js +2 -0
- package/dist/lib/client/accordion-sOXt9AlG.js +399 -0
- package/dist/lib/client/alert-dialog/index.js +2 -0
- package/dist/lib/client/alert-dialog-BH_3ndio.js +30 -0
- package/dist/lib/client/autocomplete/index.js +2 -0
- package/dist/lib/client/autocomplete-Cob_FZEP.js +113 -0
- package/dist/lib/client/avatar/index.js +2 -0
- package/dist/lib/client/avatar-AF9vyD4q.js +146 -0
- package/dist/lib/client/button/index.js +2 -0
- package/dist/lib/client/button-DpUi-2g8.js +82 -0
- package/dist/lib/client/buttonSemantics-paljfpOX.js +39 -0
- package/dist/lib/client/checkbox/index.js +2 -0
- package/dist/lib/client/checkbox-BbAwOptH.js +441 -0
- package/dist/lib/client/checkbox-group/index.js +2 -0
- package/dist/lib/client/checkbox-group-CSSp_805.js +128 -0
- package/dist/lib/client/collapsible/index.js +2 -0
- package/dist/lib/client/collapsible-BIbje_ub.js +232 -0
- package/dist/lib/client/combobox/index.js +2 -0
- package/dist/lib/client/combobox-8O-vgTLL.js +352 -0
- package/dist/lib/client/compositeNavigation-sxniYTc7.js +58 -0
- package/dist/lib/client/constants-BYjBUIIi.js +424 -0
- package/dist/lib/client/context-menu/index.js +2 -0
- package/dist/lib/client/context-menu-BTMkXtrs.js +217 -0
- package/dist/lib/client/createAnchorPositioning-DcxDXUgB.js +1058 -0
- package/dist/lib/client/createAnchoredPopupScrollLock-Cx0cbh1_.js +19 -0
- package/dist/lib/client/createClickInteraction-CTaIFBiV.js +45 -0
- package/dist/lib/client/createCollapsiblePanel-DeDu0O2t.js +231 -0
- package/dist/lib/client/createFocusInteraction-D4w1-235.js +50 -0
- package/dist/lib/client/createPopupAutoResize-CGNiLhGq.js +60 -0
- package/dist/lib/client/createTransitionStatus-B1L-whed.js +53 -0
- package/dist/lib/client/csp-provider/index.js +2 -0
- package/dist/lib/client/csp-provider-C7nRHDKK.js +16 -0
- package/dist/lib/client/dialog/index.js +2 -0
- package/dist/lib/client/dialog-DkaQwIgP.js +19 -0
- package/dist/lib/client/direction-provider/index.js +3 -0
- package/dist/lib/client/direction-provider-DYhRN-8f.js +13 -0
- package/dist/lib/client/dom-BEAeQ9Eb.js +58 -0
- package/dist/lib/client/drawer/index.js +2 -0
- package/dist/lib/client/drawer-Ce2cChLt.js +1550 -0
- package/dist/lib/client/field/index.js +2 -0
- package/dist/lib/client/field-C-o7jzKW.js +469 -0
- package/dist/lib/client/fieldset/index.js +2 -0
- package/dist/lib/client/fieldset-BQTAWv2L.js +65 -0
- package/dist/lib/client/form/index.js +2 -0
- package/dist/lib/client/form-BINBiW5L.js +106 -0
- package/dist/lib/client/form-types-DFBxc1LF.js +8 -0
- package/dist/lib/client/index.js +43 -0
- package/dist/lib/client/input/index.js +2 -0
- package/dist/lib/client/input-gb0ejxkm.js +7 -0
- package/dist/lib/client/internals/composeEventHandlers.js +50 -0
- package/dist/lib/client/internals/createBaseUIEventDetails.js +31 -0
- package/dist/lib/client/internals/csp-context/index.js +2 -0
- package/dist/lib/client/internals/direction-context/index.js +2 -0
- package/dist/lib/client/internals/field-constants.js +56 -0
- package/dist/lib/client/internals/field-root-context/index.js +2 -0
- package/dist/lib/client/internals/form-context/index.js +2 -0
- package/dist/lib/client/internals/getStateAttributesProps.js +21 -0
- package/dist/lib/client/internals/labelable-provider/index.js +19 -0
- package/dist/lib/client/internals/mergeStyles.js +9 -0
- package/dist/lib/client/internals/reasons.js +2 -0
- package/dist/lib/client/internals/stateAttributesMapping.js +8 -0
- package/dist/lib/client/internals/types.js +0 -0
- package/dist/lib/client/menu/index.js +2 -0
- package/dist/lib/client/menu-DeMT08oD.js +326 -0
- package/dist/lib/client/menubar/index.js +2 -0
- package/dist/lib/client/menubar-C4aomSYv.js +185 -0
- package/dist/lib/client/mergeStyleValue-C4ITiiIV.js +42 -0
- package/dist/lib/client/meter/index.js +2 -0
- package/dist/lib/client/meter-xSU37Q0m.js +171 -0
- package/dist/lib/client/navigation-menu/index.js +2 -0
- package/dist/lib/client/navigation-menu-ZILQmdn6.js +1083 -0
- package/dist/lib/client/number-field/index.js +2 -0
- package/dist/lib/client/number-field-B8CsTb_8.js +1035 -0
- package/dist/lib/client/otp-field/index.js +2 -0
- package/dist/lib/client/otp-field-DBkMcnog.js +582 -0
- package/dist/lib/client/platform-Bk5Q32mf.js +13 -0
- package/dist/lib/client/popover/index.js +2 -0
- package/dist/lib/client/popover-CQwyp-fs.js +929 -0
- package/dist/lib/client/popupStateMapping-C9eZl19i.js +367 -0
- package/dist/lib/client/preview-card/index.js +2 -0
- package/dist/lib/client/preview-card-D_2Q8lpC.js +625 -0
- package/dist/lib/client/progress/index.js +2 -0
- package/dist/lib/client/progress-D7r0xAC9.js +188 -0
- package/dist/lib/client/radio/index.js +2 -0
- package/dist/lib/client/radio-CzGQ81z1.js +299 -0
- package/dist/lib/client/radio-group/index.js +2 -0
- package/dist/lib/client/radio-group-DpHlBKA6.js +193 -0
- package/dist/lib/client/reasons-Co5CzjKq.js +41 -0
- package/dist/lib/client/resolveStyle-XcgAuaKR.js +11 -0
- package/dist/lib/client/rolldown-runtime-Dy4uBu1J.js +11 -0
- package/dist/lib/client/runOnceAnimationsFinish-15EM-Z4l.js +48 -0
- package/dist/lib/client/safePolygon--bbKn0c8.js +316 -0
- package/dist/lib/client/scroll-area/index.js +2 -0
- package/dist/lib/client/scroll-area-CffM4U0R.js +701 -0
- package/dist/lib/client/scrollable-SRNYlhF7.js +42 -0
- package/dist/lib/client/select/index.js +2 -0
- package/dist/lib/client/select-IFhiEg73.js +1940 -0
- package/dist/lib/client/separator/index.js +2 -0
- package/dist/lib/client/setRef-fXF6OIo3.js +7 -0
- package/dist/lib/client/slider/index.js +2 -0
- package/dist/lib/client/slider-BCagYmGp.js +921 -0
- package/dist/lib/client/switch/index.js +2 -0
- package/dist/lib/client/switch-RIJeDnvS.js +308 -0
- package/dist/lib/client/tabs/index.js +2 -0
- package/dist/lib/client/tabs-fOAKs7r3.js +696 -0
- package/dist/lib/client/toast/index.js +2 -0
- package/dist/lib/client/toast-D2P8UqUs.js +1108 -0
- package/dist/lib/client/toggle/index.js +2 -0
- package/dist/lib/client/toggle-group/index.js +2 -0
- package/dist/lib/client/toggle-group-0Aue0owJ.js +129 -0
- package/dist/lib/client/toggle-momVEIBL.js +138 -0
- package/dist/lib/client/toolbar/index.js +2 -0
- package/dist/lib/client/toolbar-Du22aKCv.js +492 -0
- package/dist/lib/client/tooltip/index.js +2 -0
- package/dist/lib/client/tooltip-CyK61fl1.js +844 -0
- package/dist/lib/client/types/index.js +0 -0
- package/dist/lib/client/useFilteredItems-DTekHz39.js +2223 -0
- package/dist/lib/client/withoutComponentBinding-CcCW7fSc.js +13 -0
- package/dist/lib/server/CSPContext-DOxR0PO7.js +10 -0
- package/dist/lib/server/CheckboxGroupContext-DTP679kK.js +8 -0
- package/dist/lib/server/DialogHandle-ATZlm9RC.js +689 -0
- package/dist/lib/server/DialogPopup-BebI-w5P.js +159 -0
- package/dist/lib/server/DirectionContext-YORWLF08.js +10 -0
- package/dist/lib/server/FieldControl-Y_kI7ARp.js +174 -0
- package/dist/lib/server/FieldItemContext-x-C7ZlmX.js +7 -0
- package/dist/lib/server/FieldRootContext-IC-LWzVp.js +34 -0
- package/dist/lib/server/FieldsetRootContext-DyNqCjK6.js +14 -0
- package/dist/lib/server/FloatingTree-z1JPD1dR.js +101 -0
- package/dist/lib/server/FocusManager-BrbZVWME.js +538 -0
- package/dist/lib/server/FormContext-pvESt85v.js +17 -0
- package/dist/lib/server/InternalBackdrop-C_iDPVR-.js +260 -0
- package/dist/lib/server/LabelableContext-DZP3rgAY.js +59 -0
- package/dist/lib/server/MenuSubmenuTrigger-DA4gsv6z.js +2072 -0
- package/dist/lib/server/MenubarContext-C-62rMnO.js +14 -0
- package/dist/lib/server/PopupHandle-DthPgNjy.js +115 -0
- package/dist/lib/server/PopupStore-DEs3FAEe.js +645 -0
- package/dist/lib/server/PopupViewport-3r_KTFwX.js +220 -0
- package/dist/lib/server/RadioGroupContext-D5xmTkDz.js +10 -0
- package/dist/lib/server/Separator-vhhYxWGr.js +31 -0
- package/dist/lib/server/ToggleGroupContext-COor8gYc.js +10 -0
- package/dist/lib/server/ToolbarGroupContext-CzdHxijX.js +10 -0
- package/dist/lib/server/ToolbarItemOwnerContext-L5dsZ_vS.js +10 -0
- package/dist/lib/server/ToolbarRootContext-DD-qe7s8.js +14 -0
- package/dist/lib/server/TriggerFocusGuards-sbGwf45f.js +63 -0
- package/dist/lib/server/accordion/index.js +566 -0
- package/dist/lib/server/alert-dialog/index.js +36 -0
- package/dist/lib/server/autocomplete/index.js +173 -0
- package/dist/lib/server/avatar/index.js +199 -0
- package/dist/lib/server/button/index.js +119 -0
- package/dist/lib/server/buttonSemantics-BSwDxJhh.js +49 -0
- package/dist/lib/server/checkbox/index.js +537 -0
- package/dist/lib/server/checkbox-group/index.js +198 -0
- package/dist/lib/server/collapsible/index.js +307 -0
- package/dist/lib/server/combobox/index.js +480 -0
- package/dist/lib/server/compositeNavigation-BRVT1C38.js +68 -0
- package/dist/lib/server/constants-9H__9xbS.js +706 -0
- package/dist/lib/server/context-menu/index.js +263 -0
- package/dist/lib/server/createAnchorPositioning-C-cVOPwz.js +381 -0
- package/dist/lib/server/createAnchoredPopupScrollLock-DFuUrykR.js +20 -0
- package/dist/lib/server/createClickInteraction-BYsMgvup.js +68 -0
- package/dist/lib/server/createCollapsiblePanel-DTyVJz0G.js +297 -0
- package/dist/lib/server/createFocusInteraction-EIS0QOel.js +77 -0
- package/dist/lib/server/createPopupAutoResize-DO50jjNX.js +111 -0
- package/dist/lib/server/createTransitionStatus-BTlrerSS.js +61 -0
- package/dist/lib/server/csp-provider/index.js +15 -0
- package/dist/lib/server/dialog/index.js +19 -0
- package/dist/lib/server/direction-provider/index.js +13 -0
- package/dist/lib/server/dom-Crg_2R-j.js +67 -0
- package/dist/lib/server/drawer/index.js +2351 -0
- package/dist/lib/server/field/index.js +677 -0
- package/dist/lib/server/fieldset/index.js +91 -0
- package/dist/lib/server/form/index.js +136 -0
- package/dist/lib/server/form-types-P7-SCWyr.js +8 -0
- package/dist/lib/server/index.js +43 -0
- package/dist/lib/server/input/index.js +11 -0
- package/dist/lib/server/internals/composeEventHandlers.js +60 -0
- package/dist/lib/server/internals/createBaseUIEventDetails.js +33 -0
- package/dist/lib/server/internals/csp-context/index.js +2 -0
- package/dist/lib/server/internals/direction-context/index.js +2 -0
- package/dist/lib/server/internals/field-constants.js +64 -0
- package/dist/lib/server/internals/field-root-context/index.js +2 -0
- package/dist/lib/server/internals/form-context/index.js +2 -0
- package/dist/lib/server/internals/getStateAttributesProps.js +23 -0
- package/dist/lib/server/internals/labelable-provider/index.js +20 -0
- package/dist/lib/server/internals/mergeStyles.js +15 -0
- package/dist/lib/server/internals/reasons.js +76 -0
- package/dist/lib/server/internals/stateAttributesMapping.js +15 -0
- package/dist/lib/server/internals/types.js +1 -0
- package/dist/lib/server/menu/index.js +423 -0
- package/dist/lib/server/menubar/index.js +242 -0
- package/dist/lib/server/mergeStyleValue-Db8bRCM4.js +67 -0
- package/dist/lib/server/meter/index.js +217 -0
- package/dist/lib/server/navigation-menu/index.js +1436 -0
- package/dist/lib/server/number-field/index.js +1497 -0
- package/dist/lib/server/otp-field/index.js +811 -0
- package/dist/lib/server/platform-DYukKUir.js +13 -0
- package/dist/lib/server/popover/index.js +1187 -0
- package/dist/lib/server/popupStateMapping-nKoUwoke.js +459 -0
- package/dist/lib/server/preview-card/index.js +797 -0
- package/dist/lib/server/progress/index.js +252 -0
- package/dist/lib/server/radio/index.js +364 -0
- package/dist/lib/server/radio-group/index.js +282 -0
- package/dist/lib/server/resolveStyle-XCSFDHAL.js +11 -0
- package/dist/lib/server/rolldown-runtime-D7D4PA-g.js +13 -0
- package/dist/lib/server/runOnceAnimationsFinish-DCHzXWZU.js +59 -0
- package/dist/lib/server/safePolygon-CAm5RJGv.js +474 -0
- package/dist/lib/server/scroll-area/index.js +993 -0
- package/dist/lib/server/scrollable-CjsSxbGr.js +54 -0
- package/dist/lib/server/select/index.js +2630 -0
- package/dist/lib/server/separator/index.js +2 -0
- package/dist/lib/server/setRef-Bt70sW7c.js +7 -0
- package/dist/lib/server/slider/index.js +1333 -0
- package/dist/lib/server/switch/index.js +389 -0
- package/dist/lib/server/tabs/index.js +1007 -0
- package/dist/lib/server/toast/index.js +1588 -0
- package/dist/lib/server/toggle/index.js +201 -0
- package/dist/lib/server/toggle-group/index.js +192 -0
- package/dist/lib/server/toolbar/index.js +685 -0
- package/dist/lib/server/tooltip/index.js +1092 -0
- package/dist/lib/server/types/index.js +1 -0
- package/dist/lib/server/useFilteredItems-DvuctLt3.js +3157 -0
- package/dist/lib/server/withoutComponentBinding-BHaWr5kU.js +20 -0
- package/dist/lib/types/accordion/header/AccordionHeader.d.ts +12 -0
- package/dist/lib/types/accordion/index.d.ts +6 -0
- package/dist/lib/types/accordion/index.parts.d.ts +5 -0
- package/dist/lib/types/accordion/item/AccordionItem.d.ts +29 -0
- package/dist/lib/types/accordion/item/AccordionItemContext.d.ts +22 -0
- package/dist/lib/types/accordion/item/AccordionItemDataAttributes.d.ts +5 -0
- package/dist/lib/types/accordion/item/stateAttributesMapping.d.ts +13 -0
- package/dist/lib/types/accordion/panel/AccordionPanel.d.ts +20 -0
- package/dist/lib/types/accordion/panel/AccordionPanelCssVars.d.ts +4 -0
- package/dist/lib/types/accordion/root/AccordionRoot.d.ts +46 -0
- package/dist/lib/types/accordion/root/AccordionRootContext.d.ts +22 -0
- package/dist/lib/types/accordion/root/stateAttributesMapping.d.ts +3 -0
- package/dist/lib/types/accordion/trigger/AccordionTrigger.d.ts +27 -0
- package/dist/lib/types/accordion/trigger/AccordionTriggerDataAttributes.d.ts +4 -0
- package/dist/lib/types/alert-dialog/handle.d.ts +6 -0
- package/dist/lib/types/alert-dialog/index.d.ts +10 -0
- package/dist/lib/types/alert-dialog/index.parts.d.ts +10 -0
- package/dist/lib/types/alert-dialog/root/AlertDialogRoot.d.ts +29 -0
- package/dist/lib/types/alert-dialog/trigger/AlertDialogTrigger.d.ts +19 -0
- package/dist/lib/types/autocomplete/index.d.ts +24 -0
- package/dist/lib/types/autocomplete/index.parts.d.ts +23 -0
- package/dist/lib/types/autocomplete/input-group/AutocompleteInputGroup.d.ts +26 -0
- package/dist/lib/types/autocomplete/item/AutocompleteItem.d.ts +18 -0
- package/dist/lib/types/autocomplete/root/AutocompleteRoot.d.ts +195 -0
- package/dist/lib/types/autocomplete/root/utils/useFilter.d.ts +9 -0
- package/dist/lib/types/autocomplete/separator/AutocompleteSeparator.d.ts +17 -0
- package/dist/lib/types/autocomplete/trigger/AutocompleteTrigger.d.ts +24 -0
- package/dist/lib/types/autocomplete/value/AutocompleteValue.d.ts +15 -0
- package/dist/lib/types/avatar/fallback/AvatarFallback.d.ts +16 -0
- package/dist/lib/types/avatar/image/AvatarImage.d.ts +17 -0
- package/dist/lib/types/avatar/image/createImageLoadingStatus.d.ts +10 -0
- package/dist/lib/types/avatar/index.d.ts +4 -0
- package/dist/lib/types/avatar/index.parts.d.ts +3 -0
- package/dist/lib/types/avatar/root/AvatarRoot.d.ts +13 -0
- package/dist/lib/types/avatar/root/AvatarRootContext.d.ts +10 -0
- package/dist/lib/types/button/Button.d.ts +34 -0
- package/dist/lib/types/button/index.d.ts +2 -0
- package/dist/lib/types/checkbox/index.d.ts +3 -0
- package/dist/lib/types/checkbox/index.parts.d.ts +2 -0
- package/dist/lib/types/checkbox/indicator/CheckboxIndicator.d.ts +20 -0
- package/dist/lib/types/checkbox/root/CheckboxRoot.d.ts +56 -0
- package/dist/lib/types/checkbox/root/CheckboxRootContext.d.ts +7 -0
- package/dist/lib/types/checkbox/utils/getCheckboxStateAttributesMapping.d.ts +3 -0
- package/dist/lib/types/checkbox-group/CheckboxGroup.d.ts +32 -0
- package/dist/lib/types/checkbox-group/CheckboxGroupContext.d.ts +30 -0
- package/dist/lib/types/checkbox-group/index.d.ts +2 -0
- package/dist/lib/types/collapsible/index.d.ts +4 -0
- package/dist/lib/types/collapsible/index.parts.d.ts +3 -0
- package/dist/lib/types/collapsible/panel/CollapsiblePanel.d.ts +25 -0
- package/dist/lib/types/collapsible/panel/createCollapsiblePanel.d.ts +26 -0
- package/dist/lib/types/collapsible/root/CollapsibleRoot.d.ts +34 -0
- package/dist/lib/types/collapsible/root/CollapsibleRootContext.d.ts +19 -0
- package/dist/lib/types/collapsible/root/createCollapsibleTransitionStatus.d.ts +9 -0
- package/dist/lib/types/collapsible/root/stateAttributesMapping.d.ts +14 -0
- package/dist/lib/types/collapsible/trigger/CollapsibleTrigger.d.ts +28 -0
- package/dist/lib/types/combobox/arrow/ComboboxArrow.d.ts +16 -0
- package/dist/lib/types/combobox/backdrop/ComboboxBackdrop.d.ts +14 -0
- package/dist/lib/types/combobox/chip/ComboboxChip.d.ts +17 -0
- package/dist/lib/types/combobox/chip/ComboboxChipContext.d.ts +8 -0
- package/dist/lib/types/combobox/chip-remove/ComboboxChipRemove.d.ts +26 -0
- package/dist/lib/types/combobox/chips/ComboboxChips.d.ts +16 -0
- package/dist/lib/types/combobox/chips/ComboboxChipsContext.d.ts +26 -0
- package/dist/lib/types/combobox/clear/ComboboxClear.d.ts +35 -0
- package/dist/lib/types/combobox/collection/ComboboxCollection.d.ts +19 -0
- package/dist/lib/types/combobox/empty/ComboboxEmpty.d.ts +16 -0
- package/dist/lib/types/combobox/group/ComboboxGroup.d.ts +19 -0
- package/dist/lib/types/combobox/group/ComboboxGroupContext.d.ts +9 -0
- package/dist/lib/types/combobox/group-label/ComboboxGroupLabel.d.ts +11 -0
- package/dist/lib/types/combobox/icon/ComboboxIcon.d.ts +12 -0
- package/dist/lib/types/combobox/index.d.ts +29 -0
- package/dist/lib/types/combobox/index.parts.d.ts +28 -0
- package/dist/lib/types/combobox/input/ComboboxInput.d.ts +36 -0
- package/dist/lib/types/combobox/input-group/ComboboxInputGroup.d.ts +24 -0
- package/dist/lib/types/combobox/item/ComboboxItem.d.ts +40 -0
- package/dist/lib/types/combobox/item/ComboboxItemContext.d.ts +9 -0
- package/dist/lib/types/combobox/item-indicator/ComboboxItemIndicator.d.ts +22 -0
- package/dist/lib/types/combobox/label/ComboboxLabel.d.ts +22 -0
- package/dist/lib/types/combobox/list/ComboboxList.d.ts +24 -0
- package/dist/lib/types/combobox/popup/ComboboxPopup.d.ts +35 -0
- package/dist/lib/types/combobox/portal/ComboboxPortal.d.ts +25 -0
- package/dist/lib/types/combobox/portal/ComboboxPortalContext.d.ts +5 -0
- package/dist/lib/types/combobox/positioner/ComboboxPositioner.d.ts +37 -0
- package/dist/lib/types/combobox/positioner/ComboboxPositionerContext.d.ts +11 -0
- package/dist/lib/types/combobox/root/AriaCombobox.d.ts +82 -0
- package/dist/lib/types/combobox/root/ComboboxRoot.d.ts +180 -0
- package/dist/lib/types/combobox/root/ComboboxRootContext.d.ts +99 -0
- package/dist/lib/types/combobox/root/utils/useFilter.d.ts +25 -0
- package/dist/lib/types/combobox/root/utils/useFilteredItems.d.ts +5 -0
- package/dist/lib/types/combobox/row/ComboboxRow.d.ts +14 -0
- package/dist/lib/types/combobox/row/ComboboxRowContext.d.ts +3 -0
- package/dist/lib/types/combobox/separator/ComboboxSeparator.d.ts +21 -0
- package/dist/lib/types/combobox/status/ComboboxStatus.d.ts +17 -0
- package/dist/lib/types/combobox/store/ComboboxItemRegistry.d.ts +39 -0
- package/dist/lib/types/combobox/store/ComboboxStore.d.ts +65 -0
- package/dist/lib/types/combobox/trigger/ComboboxTrigger.d.ts +36 -0
- package/dist/lib/types/combobox/types.d.ts +15 -0
- package/dist/lib/types/combobox/utils/ComboboxInternalDismissButton.d.ts +9 -0
- package/dist/lib/types/combobox/utils/comboboxPopupId.d.ts +5 -0
- package/dist/lib/types/combobox/utils/createInitialLiveRegionTextMutation.d.ts +7 -0
- package/dist/lib/types/combobox/utils/handleInputPress.d.ts +7 -0
- package/dist/lib/types/combobox/utils/parts.d.ts +4 -0
- package/dist/lib/types/combobox/utils/stateAttributesMapping.d.ts +58 -0
- package/dist/lib/types/combobox/value/ComboboxValue.d.ts +20 -0
- package/dist/lib/types/context-menu/index.d.ts +19 -0
- package/dist/lib/types/context-menu/index.parts.d.ts +19 -0
- package/dist/lib/types/context-menu/root/ContextMenuRoot.d.ts +21 -0
- package/dist/lib/types/context-menu/root/ContextMenuRootContext.d.ts +19 -0
- package/dist/lib/types/context-menu/trigger/ContextMenuTrigger.d.ts +21 -0
- package/dist/lib/types/csp-provider/CSPProvider.d.ts +14 -0
- package/dist/lib/types/csp-provider/index.d.ts +2 -0
- package/dist/lib/types/dialog/backdrop/DialogBackdrop.d.ts +18 -0
- package/dist/lib/types/dialog/close/DialogClose.d.ts +26 -0
- package/dist/lib/types/dialog/description/DialogDescription.d.ts +11 -0
- package/dist/lib/types/dialog/index.d.ts +10 -0
- package/dist/lib/types/dialog/index.parts.d.ts +10 -0
- package/dist/lib/types/dialog/popup/DialogPopup.d.ts +24 -0
- package/dist/lib/types/dialog/portal/DialogPortal.d.ts +17 -0
- package/dist/lib/types/dialog/portal/DialogPortalContext.d.ts +8 -0
- package/dist/lib/types/dialog/root/DialogRoot.d.ts +44 -0
- package/dist/lib/types/dialog/root/DialogRootContext.d.ts +38 -0
- package/dist/lib/types/dialog/store/DialogHandle.d.ts +11 -0
- package/dist/lib/types/dialog/store/DialogStore.d.ts +20 -0
- package/dist/lib/types/dialog/title/DialogTitle.d.ts +11 -0
- package/dist/lib/types/dialog/trigger/DialogTrigger.d.ts +30 -0
- package/dist/lib/types/dialog/utils/mergeDialogStyles.d.ts +2 -0
- package/dist/lib/types/dialog/utils/stateAttributesMapping.d.ts +20 -0
- package/dist/lib/types/dialog/viewport/DialogViewport.d.ts +16 -0
- package/dist/lib/types/direction-provider/DirectionProvider.d.ts +13 -0
- package/dist/lib/types/direction-provider/index.d.ts +4 -0
- package/dist/lib/types/drawer/backdrop/DrawerBackdrop.d.ts +24 -0
- package/dist/lib/types/drawer/backdrop/DrawerBackdropCssVars.d.ts +7 -0
- package/dist/lib/types/drawer/content/DrawerContent.d.ts +14 -0
- package/dist/lib/types/drawer/content/DrawerContentDataAttributes.d.ts +1 -0
- package/dist/lib/types/drawer/handle.d.ts +14 -0
- package/dist/lib/types/drawer/indent/DrawerIndent.d.ts +16 -0
- package/dist/lib/types/drawer/indent-background/DrawerIndentBackground.d.ts +23 -0
- package/dist/lib/types/drawer/index.d.ts +17 -0
- package/dist/lib/types/drawer/index.parts.d.ts +16 -0
- package/dist/lib/types/drawer/popup/DrawerPopup.d.ts +46 -0
- package/dist/lib/types/drawer/popup/DrawerPopupCssVars.d.ts +37 -0
- package/dist/lib/types/drawer/popup/DrawerPopupDataAttributes.d.ts +25 -0
- package/dist/lib/types/drawer/provider/DrawerProvider.d.ts +15 -0
- package/dist/lib/types/drawer/provider/DrawerProviderContext.d.ts +21 -0
- package/dist/lib/types/drawer/root/DrawerRoot.d.ts +65 -0
- package/dist/lib/types/drawer/root/DrawerRootContext.d.ts +68 -0
- package/dist/lib/types/drawer/root/createDrawerSnapPoints.d.ts +24 -0
- package/dist/lib/types/drawer/swipe-area/DrawerSwipeArea.d.ts +43 -0
- package/dist/lib/types/drawer/swipe-area/DrawerSwipeAreaDataAttributes.d.ts +15 -0
- package/dist/lib/types/drawer/viewport/DrawerViewport.d.ts +31 -0
- package/dist/lib/types/drawer/viewport/DrawerViewportContext.d.ts +12 -0
- package/dist/lib/types/drawer/viewport/DrawerViewportCssVars.d.ts +8 -0
- package/dist/lib/types/drawer/virtual-keyboard-provider/DrawerVirtualKeyboardContext.d.ts +14 -0
- package/dist/lib/types/drawer/virtual-keyboard-provider/DrawerVirtualKeyboardProvider.d.ts +14 -0
- package/dist/lib/types/field/control/FieldControl.d.ts +35 -0
- package/dist/lib/types/field/description/FieldDescription.d.ts +16 -0
- package/dist/lib/types/field/error/FieldError.d.ts +19 -0
- package/dist/lib/types/field/index.d.ts +8 -0
- package/dist/lib/types/field/index.parts.d.ts +8 -0
- package/dist/lib/types/field/item/FieldItem.d.ts +16 -0
- package/dist/lib/types/field/item/FieldItemContext.d.ts +6 -0
- package/dist/lib/types/field/label/FieldLabel.d.ts +24 -0
- package/dist/lib/types/field/root/FieldRoot.d.ts +30 -0
- package/dist/lib/types/field/root/createFieldValidation.d.ts +22 -0
- package/dist/lib/types/field/validity/FieldValidity.d.ts +16 -0
- package/dist/lib/types/fieldset/index.d.ts +3 -0
- package/dist/lib/types/fieldset/index.parts.d.ts +2 -0
- package/dist/lib/types/fieldset/legend/FieldsetLegend.d.ts +21 -0
- package/dist/lib/types/fieldset/root/FieldsetRoot.d.ts +21 -0
- package/dist/lib/types/fieldset/root/FieldsetRootContext.d.ts +11 -0
- package/dist/lib/types/form/Form.d.ts +39 -0
- package/dist/lib/types/form/index.d.ts +2 -0
- package/dist/lib/types/index.d.ts +41 -0
- package/dist/lib/types/input/Input.d.ts +20 -0
- package/dist/lib/types/input/index.d.ts +2 -0
- package/dist/lib/types/internals/buttonSemantics.d.ts +10 -0
- package/dist/lib/types/internals/clamp.d.ts +1 -0
- package/dist/lib/types/internals/composeEventHandlers.d.ts +11 -0
- package/dist/lib/types/internals/constants.d.ts +4 -0
- package/dist/lib/types/internals/createBaseUIEventDetails.d.ts +57 -0
- package/dist/lib/types/internals/createTransitionStatus.d.ts +9 -0
- package/dist/lib/types/internals/csp-context/CSPContext.d.ts +7 -0
- package/dist/lib/types/internals/csp-context/index.d.ts +2 -0
- package/dist/lib/types/internals/direction-context/DirectionContext.d.ts +6 -0
- package/dist/lib/types/internals/direction-context/index.d.ts +2 -0
- package/dist/lib/types/internals/field-constants.d.ts +44 -0
- package/dist/lib/types/internals/field-root-context/FieldRootContext.d.ts +31 -0
- package/dist/lib/types/internals/field-root-context/index.d.ts +2 -0
- package/dist/lib/types/internals/filter.d.ts +18 -0
- package/dist/lib/types/internals/form-context/FormContext.d.ts +13 -0
- package/dist/lib/types/internals/form-context/index.d.ts +3 -0
- package/dist/lib/types/internals/form-types.d.ts +11 -0
- package/dist/lib/types/internals/getStateAttributesProps.d.ts +4 -0
- package/dist/lib/types/internals/installOwnedEventHandlers.d.ts +3 -0
- package/dist/lib/types/internals/isSolidAccessor.d.ts +6 -0
- package/dist/lib/types/internals/itemEquality.d.ts +17 -0
- package/dist/lib/types/internals/labelable-provider/LabelableContext.d.ts +18 -0
- package/dist/lib/types/internals/labelable-provider/LabelableProvider.d.ts +11 -0
- package/dist/lib/types/internals/labelable-provider/index.d.ts +2 -0
- package/dist/lib/types/internals/mergeStyleValue.d.ts +8 -0
- package/dist/lib/types/internals/mergeStyles.d.ts +6 -0
- package/dist/lib/types/internals/overlay/FloatingRootStore.d.ts +49 -0
- package/dist/lib/types/internals/overlay/FloatingTree.d.ts +48 -0
- package/dist/lib/types/internals/overlay/FocusGuard.d.ts +2 -0
- package/dist/lib/types/internals/overlay/FocusManager.d.ts +30 -0
- package/dist/lib/types/internals/overlay/InternalBackdrop.d.ts +6 -0
- package/dist/lib/types/internals/overlay/PopupHandle.d.ts +47 -0
- package/dist/lib/types/internals/overlay/PopupPortal.d.ts +37 -0
- package/dist/lib/types/internals/overlay/PopupStore.d.ts +89 -0
- package/dist/lib/types/internals/overlay/PopupTriggerMap.d.ts +11 -0
- package/dist/lib/types/internals/overlay/PopupViewport.d.ts +16 -0
- package/dist/lib/types/internals/overlay/ReactiveStore.d.ts +26 -0
- package/dist/lib/types/internals/overlay/TriggerFocusGuards.d.ts +14 -0
- package/dist/lib/types/internals/overlay/adaptiveOrigin.d.ts +2 -0
- package/dist/lib/types/internals/overlay/compositeNavigation.d.ts +20 -0
- package/dist/lib/types/internals/overlay/createAnchorPositioning.d.ts +57 -0
- package/dist/lib/types/internals/overlay/createAnchoredPopupScrollLock.d.ts +12 -0
- package/dist/lib/types/internals/overlay/createClickInteraction.d.ts +20 -0
- package/dist/lib/types/internals/overlay/createClientPoint.d.ts +12 -0
- package/dist/lib/types/internals/overlay/createContextMenuInteraction.d.ts +17 -0
- package/dist/lib/types/internals/overlay/createDelayGroup.d.ts +18 -0
- package/dist/lib/types/internals/overlay/createDismiss.d.ts +27 -0
- package/dist/lib/types/internals/overlay/createFloatingPosition.d.ts +22 -0
- package/dist/lib/types/internals/overlay/createFocusInteraction.d.ts +14 -0
- package/dist/lib/types/internals/overlay/createHoverInteraction.d.ts +30 -0
- package/dist/lib/types/internals/overlay/createInitialPositioning.d.ts +3 -0
- package/dist/lib/types/internals/overlay/createListNavigation.d.ts +26 -0
- package/dist/lib/types/internals/overlay/createPopupAutoResize.d.ts +18 -0
- package/dist/lib/types/internals/overlay/createPopupPresence.d.ts +18 -0
- package/dist/lib/types/internals/overlay/createSwipeDismiss.d.ts +107 -0
- package/dist/lib/types/internals/overlay/createTypeahead.d.ts +20 -0
- package/dist/lib/types/internals/overlay/dom.d.ts +19 -0
- package/dist/lib/types/internals/overlay/eventEmitter.d.ts +7 -0
- package/dist/lib/types/internals/overlay/getElementAtPoint.d.ts +8 -0
- package/dist/lib/types/internals/overlay/index.d.ts +37 -0
- package/dist/lib/types/internals/overlay/inlineRect.d.ts +32 -0
- package/dist/lib/types/internals/overlay/markOthers.d.ts +6 -0
- package/dist/lib/types/internals/overlay/popupStateMapping.d.ts +46 -0
- package/dist/lib/types/internals/overlay/safePolygon.d.ts +24 -0
- package/dist/lib/types/internals/overlay/scrollLock.d.ts +10 -0
- package/dist/lib/types/internals/overlay/tabbable.d.ts +11 -0
- package/dist/lib/types/internals/platform.d.ts +1 -0
- package/dist/lib/types/internals/reason-parts.d.ts +35 -0
- package/dist/lib/types/internals/reasons.d.ts +4 -0
- package/dist/lib/types/internals/resolveClass.d.ts +3 -0
- package/dist/lib/types/internals/resolveStyle.d.ts +3 -0
- package/dist/lib/types/internals/runOnceAnimationsFinish.d.ts +4 -0
- package/dist/lib/types/internals/scrollable.d.ts +18 -0
- package/dist/lib/types/internals/setRef.d.ts +2 -0
- package/dist/lib/types/internals/stateAttributesMapping.d.ts +8 -0
- package/dist/lib/types/internals/types.d.ts +2 -0
- package/dist/lib/types/internals/valueLabel.d.ts +28 -0
- package/dist/lib/types/internals/withoutComponentBinding.d.ts +7 -0
- package/dist/lib/types/menu/arrow/MenuArrow.d.ts +16 -0
- package/dist/lib/types/menu/backdrop/MenuBackdrop.d.ts +14 -0
- package/dist/lib/types/menu/checkbox-item/MenuCheckboxItem.d.ts +37 -0
- package/dist/lib/types/menu/checkbox-item/MenuCheckboxItemContext.d.ts +6 -0
- package/dist/lib/types/menu/checkbox-item-indicator/MenuCheckboxItemIndicator.d.ts +18 -0
- package/dist/lib/types/menu/group/MenuGroup.d.ts +11 -0
- package/dist/lib/types/menu/group/MenuGroupContext.d.ts +9 -0
- package/dist/lib/types/menu/group-label/MenuGroupLabel.d.ts +11 -0
- package/dist/lib/types/menu/index.d.ts +20 -0
- package/dist/lib/types/menu/index.parts.d.ts +21 -0
- package/dist/lib/types/menu/item/MenuItem.d.ts +28 -0
- package/dist/lib/types/menu/item/createMenuItem.d.ts +24 -0
- package/dist/lib/types/menu/link-item/MenuLinkItem.d.ts +25 -0
- package/dist/lib/types/menu/popup/MenuPopup.d.ts +28 -0
- package/dist/lib/types/menu/portal/MenuPortal.d.ts +17 -0
- package/dist/lib/types/menu/portal/MenuPortalContext.d.ts +8 -0
- package/dist/lib/types/menu/positioner/MenuPositioner.d.ts +39 -0
- package/dist/lib/types/menu/positioner/MenuPositionerContext.d.ts +5 -0
- package/dist/lib/types/menu/radio-group/MenuRadioGroup.d.ts +24 -0
- package/dist/lib/types/menu/radio-group/MenuRadioGroupContext.d.ts +11 -0
- package/dist/lib/types/menu/radio-item/MenuRadioItem.d.ts +30 -0
- package/dist/lib/types/menu/radio-item/MenuRadioItemContext.d.ts +6 -0
- package/dist/lib/types/menu/radio-item-indicator/MenuRadioItemIndicator.d.ts +18 -0
- package/dist/lib/types/menu/root/MenuRoot.d.ts +56 -0
- package/dist/lib/types/menu/root/MenuRootContext.d.ts +23 -0
- package/dist/lib/types/menu/store/MenuCollection.d.ts +19 -0
- package/dist/lib/types/menu/store/MenuHandle.d.ts +10 -0
- package/dist/lib/types/menu/store/MenuStore.d.ts +110 -0
- package/dist/lib/types/menu/submenu-root/MenuSubmenuRoot.d.ts +17 -0
- package/dist/lib/types/menu/submenu-root/MenuSubmenuRootContext.d.ts +8 -0
- package/dist/lib/types/menu/submenu-trigger/MenuSubmenuTrigger.d.ts +33 -0
- package/dist/lib/types/menu/trigger/MenuTrigger.d.ts +36 -0
- package/dist/lib/types/menu/utils/mergeMenuStyles.d.ts +2 -0
- package/dist/lib/types/menu/utils/stateAttributesMapping.d.ts +39 -0
- package/dist/lib/types/menu/viewport/MenuViewport.d.ts +15 -0
- package/dist/lib/types/menubar/Menubar.d.ts +23 -0
- package/dist/lib/types/menubar/MenubarContext.d.ts +34 -0
- package/dist/lib/types/menubar/index.d.ts +2 -0
- package/dist/lib/types/meter/index.d.ts +6 -0
- package/dist/lib/types/meter/index.parts.d.ts +5 -0
- package/dist/lib/types/meter/indicator/MeterIndicator.d.ts +12 -0
- package/dist/lib/types/meter/label/MeterLabel.d.ts +17 -0
- package/dist/lib/types/meter/root/MeterRoot.d.ts +28 -0
- package/dist/lib/types/meter/root/MeterRootContext.d.ts +12 -0
- package/dist/lib/types/meter/track/MeterTrack.d.ts +12 -0
- package/dist/lib/types/meter/value/MeterValue.d.ts +16 -0
- package/dist/lib/types/navigation-menu/arrow/NavigationMenuArrow.d.ts +16 -0
- package/dist/lib/types/navigation-menu/backdrop/NavigationMenuBackdrop.d.ts +14 -0
- package/dist/lib/types/navigation-menu/composite/NavigationMenuCompositeContext.d.ts +22 -0
- package/dist/lib/types/navigation-menu/content/NavigationMenuContent.d.ts +21 -0
- package/dist/lib/types/navigation-menu/icon/NavigationMenuIcon.d.ts +12 -0
- package/dist/lib/types/navigation-menu/index.d.ts +14 -0
- package/dist/lib/types/navigation-menu/index.parts.d.ts +13 -0
- package/dist/lib/types/navigation-menu/item/NavigationMenuItem.d.ts +15 -0
- package/dist/lib/types/navigation-menu/item/NavigationMenuItemContext.d.ts +8 -0
- package/dist/lib/types/navigation-menu/link/NavigationMenuLink.d.ts +20 -0
- package/dist/lib/types/navigation-menu/list/NavigationMenuList.d.ts +12 -0
- package/dist/lib/types/navigation-menu/popup/NavigationMenuPopup.d.ts +23 -0
- package/dist/lib/types/navigation-menu/portal/NavigationMenuPortal.d.ts +17 -0
- package/dist/lib/types/navigation-menu/portal/NavigationMenuPortalContext.d.ts +8 -0
- package/dist/lib/types/navigation-menu/positioner/NavigationMenuPositioner.d.ts +37 -0
- package/dist/lib/types/navigation-menu/positioner/NavigationMenuPositionerContext.d.ts +5 -0
- package/dist/lib/types/navigation-menu/root/NavigationMenuRoot.d.ts +39 -0
- package/dist/lib/types/navigation-menu/root/NavigationMenuRootContext.d.ts +19 -0
- package/dist/lib/types/navigation-menu/store/NavigationMenuStore.d.ts +64 -0
- package/dist/lib/types/navigation-menu/trigger/NavigationMenuTrigger.d.ts +27 -0
- package/dist/lib/types/navigation-menu/utils/mergeNavigationMenuStyles.d.ts +2 -0
- package/dist/lib/types/navigation-menu/viewport/NavigationMenuViewport.d.ts +11 -0
- package/dist/lib/types/number-field/decrement/NumberFieldDecrement.d.ts +12 -0
- package/dist/lib/types/number-field/group/NumberFieldGroup.d.ts +12 -0
- package/dist/lib/types/number-field/increment/NumberFieldIncrement.d.ts +12 -0
- package/dist/lib/types/number-field/increment/NumberFieldStepperButton.d.ts +26 -0
- package/dist/lib/types/number-field/index.d.ts +8 -0
- package/dist/lib/types/number-field/index.parts.d.ts +7 -0
- package/dist/lib/types/number-field/input/NumberFieldInput.d.ts +25 -0
- package/dist/lib/types/number-field/root/NumberFieldRoot.d.ts +55 -0
- package/dist/lib/types/number-field/root/NumberFieldRootContext.d.ts +39 -0
- package/dist/lib/types/number-field/root/createPressAndHold.d.ts +24 -0
- package/dist/lib/types/number-field/scrub-area/NumberFieldScrubArea.d.ts +20 -0
- package/dist/lib/types/number-field/scrub-area/NumberFieldScrubAreaContext.d.ts +13 -0
- package/dist/lib/types/number-field/scrub-area-cursor/NumberFieldScrubAreaCursor.d.ts +12 -0
- package/dist/lib/types/number-field/utils/format.d.ts +2 -0
- package/dist/lib/types/number-field/utils/getViewportRect.d.ts +6 -0
- package/dist/lib/types/number-field/utils/parse.d.ts +40 -0
- package/dist/lib/types/number-field/utils/platform.d.ts +3 -0
- package/dist/lib/types/number-field/utils/stateAttributesMapping.d.ts +10 -0
- package/dist/lib/types/number-field/utils/types.d.ts +16 -0
- package/dist/lib/types/number-field/utils/validate.d.ts +9 -0
- package/dist/lib/types/otp-field/index.d.ts +3 -0
- package/dist/lib/types/otp-field/index.parts.d.ts +3 -0
- package/dist/lib/types/otp-field/input/OTPFieldInput.d.ts +29 -0
- package/dist/lib/types/otp-field/root/OTPFieldRoot.d.ts +56 -0
- package/dist/lib/types/otp-field/root/OTPFieldRootContext.d.ts +45 -0
- package/dist/lib/types/otp-field/utils/otp.d.ts +14 -0
- package/dist/lib/types/otp-field/utils/stateAttributesMapping.d.ts +5 -0
- package/dist/lib/types/popover/arrow/PopoverArrow.d.ts +16 -0
- package/dist/lib/types/popover/backdrop/PopoverBackdrop.d.ts +14 -0
- package/dist/lib/types/popover/close/PopoverClose.d.ts +25 -0
- package/dist/lib/types/popover/description/PopoverDescription.d.ts +11 -0
- package/dist/lib/types/popover/index.d.ts +12 -0
- package/dist/lib/types/popover/index.parts.d.ts +12 -0
- package/dist/lib/types/popover/popup/PopoverPopup.d.ts +26 -0
- package/dist/lib/types/popover/portal/PopoverPortal.d.ts +17 -0
- package/dist/lib/types/popover/portal/PopoverPortalContext.d.ts +8 -0
- package/dist/lib/types/popover/positioner/PopoverPositioner.d.ts +38 -0
- package/dist/lib/types/popover/positioner/PopoverPositionerContext.d.ts +5 -0
- package/dist/lib/types/popover/root/PopoverRoot.d.ts +38 -0
- package/dist/lib/types/popover/root/PopoverRootContext.d.ts +25 -0
- package/dist/lib/types/popover/store/PopoverHandle.d.ts +10 -0
- package/dist/lib/types/popover/store/PopoverStore.d.ts +65 -0
- package/dist/lib/types/popover/title/PopoverTitle.d.ts +11 -0
- package/dist/lib/types/popover/trigger/PopoverTrigger.d.ts +33 -0
- package/dist/lib/types/popover/utils/ClosePartContext.d.ts +10 -0
- package/dist/lib/types/popover/utils/mergePopoverStyles.d.ts +2 -0
- package/dist/lib/types/popover/utils/stateAttributesMapping.d.ts +26 -0
- package/dist/lib/types/popover/viewport/PopoverViewport.d.ts +15 -0
- package/dist/lib/types/preview-card/arrow/PreviewCardArrow.d.ts +16 -0
- package/dist/lib/types/preview-card/backdrop/PreviewCardBackdrop.d.ts +14 -0
- package/dist/lib/types/preview-card/index.d.ts +9 -0
- package/dist/lib/types/preview-card/index.parts.d.ts +9 -0
- package/dist/lib/types/preview-card/popup/PreviewCardPopup.d.ts +23 -0
- package/dist/lib/types/preview-card/portal/PreviewCardPortal.d.ts +17 -0
- package/dist/lib/types/preview-card/portal/PreviewCardPortalContext.d.ts +8 -0
- package/dist/lib/types/preview-card/positioner/PreviewCardPositioner.d.ts +38 -0
- package/dist/lib/types/preview-card/positioner/PreviewCardPositionerContext.d.ts +5 -0
- package/dist/lib/types/preview-card/root/PreviewCardRoot.d.ts +37 -0
- package/dist/lib/types/preview-card/root/PreviewCardRootContext.d.ts +12 -0
- package/dist/lib/types/preview-card/store/PreviewCardHandle.d.ts +10 -0
- package/dist/lib/types/preview-card/store/PreviewCardStore.d.ts +34 -0
- package/dist/lib/types/preview-card/trigger/PreviewCardTrigger.d.ts +20 -0
- package/dist/lib/types/preview-card/utils/mergePreviewCardStyles.d.ts +2 -0
- package/dist/lib/types/preview-card/utils/stateAttributesMapping.d.ts +32 -0
- package/dist/lib/types/preview-card/viewport/PreviewCardViewport.d.ts +14 -0
- package/dist/lib/types/progress/index.d.ts +6 -0
- package/dist/lib/types/progress/index.parts.d.ts +6 -0
- package/dist/lib/types/progress/indicator/ProgressIndicator.d.ts +12 -0
- package/dist/lib/types/progress/label/ProgressLabel.d.ts +17 -0
- package/dist/lib/types/progress/root/ProgressRoot.d.ts +31 -0
- package/dist/lib/types/progress/root/ProgressRootContext.d.ts +13 -0
- package/dist/lib/types/progress/root/stateAttributesMapping.d.ts +3 -0
- package/dist/lib/types/progress/track/ProgressTrack.d.ts +12 -0
- package/dist/lib/types/progress/value/ProgressValue.d.ts +16 -0
- package/dist/lib/types/radio/index.d.ts +3 -0
- package/dist/lib/types/radio/index.parts.d.ts +2 -0
- package/dist/lib/types/radio/indicator/RadioIndicator.d.ts +20 -0
- package/dist/lib/types/radio/root/RadioRoot.d.ts +39 -0
- package/dist/lib/types/radio/root/RadioRootContext.d.ts +7 -0
- package/dist/lib/types/radio-group/RadioGroup.d.ts +43 -0
- package/dist/lib/types/radio-group/RadioGroupContext.d.ts +33 -0
- package/dist/lib/types/radio-group/index.d.ts +2 -0
- package/dist/lib/types/scroll-area/constants.d.ts +2 -0
- package/dist/lib/types/scroll-area/content/ScrollAreaContent.d.ts +12 -0
- package/dist/lib/types/scroll-area/corner/ScrollAreaCorner.d.ts +11 -0
- package/dist/lib/types/scroll-area/index.d.ts +7 -0
- package/dist/lib/types/scroll-area/index.parts.d.ts +6 -0
- package/dist/lib/types/scroll-area/root/ScrollAreaRoot.d.ts +58 -0
- package/dist/lib/types/scroll-area/root/ScrollAreaRootContext.d.ts +44 -0
- package/dist/lib/types/scroll-area/root/stateAttributes.d.ts +3 -0
- package/dist/lib/types/scroll-area/scrollbar/ScrollAreaScrollbar.d.ts +28 -0
- package/dist/lib/types/scroll-area/scrollbar/ScrollAreaScrollbarContext.d.ts +7 -0
- package/dist/lib/types/scroll-area/thumb/ScrollAreaThumb.d.ts +22 -0
- package/dist/lib/types/scroll-area/utils/dom.d.ts +2 -0
- package/dist/lib/types/scroll-area/utils/eventTarget.d.ts +2 -0
- package/dist/lib/types/scroll-area/utils/getOffset.d.ts +1 -0
- package/dist/lib/types/scroll-area/utils/scrollEdges.d.ts +1 -0
- package/dist/lib/types/scroll-area/viewport/ScrollAreaViewport.d.ts +22 -0
- package/dist/lib/types/scroll-area/viewport/ScrollAreaViewportContext.d.ts +7 -0
- package/dist/lib/types/select/arrow/SelectArrow.d.ts +16 -0
- package/dist/lib/types/select/backdrop/SelectBackdrop.d.ts +14 -0
- package/dist/lib/types/select/group/SelectGroup.d.ts +11 -0
- package/dist/lib/types/select/group/SelectGroupContext.d.ts +9 -0
- package/dist/lib/types/select/group-label/SelectGroupLabel.d.ts +11 -0
- package/dist/lib/types/select/icon/SelectIcon.d.ts +12 -0
- package/dist/lib/types/select/index.d.ts +20 -0
- package/dist/lib/types/select/index.parts.d.ts +19 -0
- package/dist/lib/types/select/item/SelectItem.d.ts +32 -0
- package/dist/lib/types/select/item/SelectItemContext.d.ts +12 -0
- package/dist/lib/types/select/item-indicator/SelectItemIndicator.d.ts +18 -0
- package/dist/lib/types/select/item-text/SelectItemText.d.ts +11 -0
- package/dist/lib/types/select/label/SelectLabel.d.ts +17 -0
- package/dist/lib/types/select/list/SelectList.d.ts +16 -0
- package/dist/lib/types/select/popup/SelectPopup.d.ts +26 -0
- package/dist/lib/types/select/portal/SelectPortal.d.ts +16 -0
- package/dist/lib/types/select/portal/SelectPortalContext.d.ts +4 -0
- package/dist/lib/types/select/positioner/SelectPositioner.d.ts +37 -0
- package/dist/lib/types/select/positioner/SelectPositionerContext.d.ts +16 -0
- package/dist/lib/types/select/root/SelectRoot.d.ts +52 -0
- package/dist/lib/types/select/root/SelectRootContext.d.ts +63 -0
- package/dist/lib/types/select/scroll-arrow/SelectScrollArrow.d.ts +22 -0
- package/dist/lib/types/select/scroll-down-arrow/SelectScrollDownArrow.d.ts +15 -0
- package/dist/lib/types/select/scroll-up-arrow/SelectScrollUpArrow.d.ts +15 -0
- package/dist/lib/types/select/separator/SelectSeparator.d.ts +17 -0
- package/dist/lib/types/select/store/SelectCollection.d.ts +25 -0
- package/dist/lib/types/select/store/SelectStore.d.ts +82 -0
- package/dist/lib/types/select/trigger/SelectTrigger.d.ts +35 -0
- package/dist/lib/types/select/types.d.ts +10 -0
- package/dist/lib/types/select/utils/equality.d.ts +2 -0
- package/dist/lib/types/select/utils/mergeSelectStyles.d.ts +1 -0
- package/dist/lib/types/select/utils/scrollEdges.d.ts +3 -0
- package/dist/lib/types/select/utils/stateAttributesMapping.d.ts +37 -0
- package/dist/lib/types/select/utils/value.d.ts +7 -0
- package/dist/lib/types/select/value/SelectValue.d.ts +18 -0
- package/dist/lib/types/separator/Separator.d.ts +19 -0
- package/dist/lib/types/separator/index.d.ts +2 -0
- package/dist/lib/types/slider/control/SliderControl.d.ts +18 -0
- package/dist/lib/types/slider/index.d.ts +8 -0
- package/dist/lib/types/slider/index.parts.d.ts +7 -0
- package/dist/lib/types/slider/indicator/SliderIndicator.d.ts +12 -0
- package/dist/lib/types/slider/label/SliderLabel.d.ts +17 -0
- package/dist/lib/types/slider/root/SliderRoot.d.ts +57 -0
- package/dist/lib/types/slider/root/SliderRootContext.d.ts +63 -0
- package/dist/lib/types/slider/stateAttributesMapping.d.ts +14 -0
- package/dist/lib/types/slider/thumb/SliderThumb.d.ts +31 -0
- package/dist/lib/types/slider/thumb/SliderThumbDataAttributes.d.ts +11 -0
- package/dist/lib/types/slider/thumb/prehydrationScript.d.ts +1 -0
- package/dist/lib/types/slider/track/SliderTrack.d.ts +12 -0
- package/dist/lib/types/slider/utils/dom.d.ts +4 -0
- package/dist/lib/types/slider/utils/getPushedThumbValues.d.ts +1 -0
- package/dist/lib/types/slider/utils/getSliderValue.d.ts +1 -0
- package/dist/lib/types/slider/utils/math.d.ts +4 -0
- package/dist/lib/types/slider/utils/resolveThumbCollision.d.ts +7 -0
- package/dist/lib/types/slider/utils/roundValueToStep.d.ts +2 -0
- package/dist/lib/types/slider/utils/validateMinimumDistance.d.ts +1 -0
- package/dist/lib/types/slider/value/SliderValue.d.ts +16 -0
- package/dist/lib/types/switch/index.d.ts +3 -0
- package/dist/lib/types/switch/index.parts.d.ts +2 -0
- package/dist/lib/types/switch/root/SwitchRoot.d.ts +55 -0
- package/dist/lib/types/switch/root/SwitchRootContext.d.ts +7 -0
- package/dist/lib/types/switch/stateAttributesMapping.d.ts +9 -0
- package/dist/lib/types/switch/thumb/SwitchThumb.d.ts +12 -0
- package/dist/lib/types/tabs/index.d.ts +6 -0
- package/dist/lib/types/tabs/index.parts.d.ts +5 -0
- package/dist/lib/types/tabs/indicator/TabsIndicator.d.ts +22 -0
- package/dist/lib/types/tabs/indicator/TabsIndicatorCssVars.d.ts +8 -0
- package/dist/lib/types/tabs/indicator/prehydrationScript.d.ts +1 -0
- package/dist/lib/types/tabs/list/TabsList.d.ts +21 -0
- package/dist/lib/types/tabs/list/TabsListContext.d.ts +14 -0
- package/dist/lib/types/tabs/panel/TabsPanel.d.ts +30 -0
- package/dist/lib/types/tabs/panel/TabsPanelDataAttributes.d.ts +6 -0
- package/dist/lib/types/tabs/root/TabsRoot.d.ts +38 -0
- package/dist/lib/types/tabs/root/TabsRootContext.d.ts +43 -0
- package/dist/lib/types/tabs/root/TabsRootDataAttributes.d.ts +4 -0
- package/dist/lib/types/tabs/root/stateAttributesMapping.d.ts +8 -0
- package/dist/lib/types/tabs/tab/TabsTab.d.ts +59 -0
- package/dist/lib/types/tabs/tab/TabsTabDataAttributes.d.ts +6 -0
- package/dist/lib/types/toast/action/ToastAction.d.ts +30 -0
- package/dist/lib/types/toast/arrow/ToastArrow.d.ts +18 -0
- package/dist/lib/types/toast/close/ToastClose.d.ts +29 -0
- package/dist/lib/types/toast/content/ToastContent.d.ts +15 -0
- package/dist/lib/types/toast/createToastManager.d.ts +15 -0
- package/dist/lib/types/toast/description/ToastDescription.d.ts +16 -0
- package/dist/lib/types/toast/index.d.ts +17 -0
- package/dist/lib/types/toast/index.parts.d.ts +11 -0
- package/dist/lib/types/toast/portal/ToastPortal.d.ts +20 -0
- package/dist/lib/types/toast/positioner/ToastPositioner.d.ts +42 -0
- package/dist/lib/types/toast/positioner/ToastPositionerContext.d.ts +6 -0
- package/dist/lib/types/toast/provider/ToastProvider.d.ts +28 -0
- package/dist/lib/types/toast/provider/ToastProviderContext.d.ts +5 -0
- package/dist/lib/types/toast/root/ToastRoot.d.ts +39 -0
- package/dist/lib/types/toast/root/ToastRootContext.d.ts +14 -0
- package/dist/lib/types/toast/store/ToastStore.d.ts +60 -0
- package/dist/lib/types/toast/title/ToastTitle.d.ts +13 -0
- package/dist/lib/types/toast/types.d.ts +77 -0
- package/dist/lib/types/toast/useToastManager.d.ts +11 -0
- package/dist/lib/types/toast/utils/createToastLabelPart.d.ts +17 -0
- package/dist/lib/types/toast/utils/focusVisible.d.ts +6 -0
- package/dist/lib/types/toast/utils/generateToastId.d.ts +5 -0
- package/dist/lib/types/toast/utils/isRenderableNode.d.ts +6 -0
- package/dist/lib/types/toast/utils/mergeToastStyles.d.ts +2 -0
- package/dist/lib/types/toast/utils/resolvePromiseOptions.d.ts +2 -0
- package/dist/lib/types/toast/viewport/ToastViewport.d.ts +13 -0
- package/dist/lib/types/toggle/Toggle.d.ts +40 -0
- package/dist/lib/types/toggle/index.d.ts +2 -0
- package/dist/lib/types/toggle-group/ToggleGroup.d.ts +37 -0
- package/dist/lib/types/toggle-group/ToggleGroupContext.d.ts +25 -0
- package/dist/lib/types/toggle-group/index.d.ts +2 -0
- package/dist/lib/types/toolbar/ToolbarItemOwnerContext.d.ts +10 -0
- package/dist/lib/types/toolbar/button/ToolbarButton.d.ts +32 -0
- package/dist/lib/types/toolbar/createToolbarItem.d.ts +13 -0
- package/dist/lib/types/toolbar/group/ToolbarGroup.d.ts +16 -0
- package/dist/lib/types/toolbar/group/ToolbarGroupContext.d.ts +8 -0
- package/dist/lib/types/toolbar/index.d.ts +8 -0
- package/dist/lib/types/toolbar/index.parts.d.ts +7 -0
- package/dist/lib/types/toolbar/input/ToolbarInput.d.ts +29 -0
- package/dist/lib/types/toolbar/link/ToolbarLink.d.ts +14 -0
- package/dist/lib/types/toolbar/root/ToolbarRoot.d.ts +29 -0
- package/dist/lib/types/toolbar/root/ToolbarRootContext.d.ts +23 -0
- package/dist/lib/types/toolbar/separator/ToolbarSeparator.d.ts +16 -0
- package/dist/lib/types/tooltip/arrow/TooltipArrow.d.ts +17 -0
- package/dist/lib/types/tooltip/index.d.ts +9 -0
- package/dist/lib/types/tooltip/index.parts.d.ts +9 -0
- package/dist/lib/types/tooltip/popup/TooltipPopup.d.ts +23 -0
- package/dist/lib/types/tooltip/portal/TooltipPortal.d.ts +17 -0
- package/dist/lib/types/tooltip/portal/TooltipPortalContext.d.ts +8 -0
- package/dist/lib/types/tooltip/positioner/TooltipPositioner.d.ts +37 -0
- package/dist/lib/types/tooltip/positioner/TooltipPositionerContext.d.ts +14 -0
- package/dist/lib/types/tooltip/provider/TooltipProvider.d.ts +15 -0
- package/dist/lib/types/tooltip/provider/TooltipProviderContext.d.ts +10 -0
- package/dist/lib/types/tooltip/root/TooltipRoot.d.ts +40 -0
- package/dist/lib/types/tooltip/root/TooltipRootContext.d.ts +11 -0
- package/dist/lib/types/tooltip/store/TooltipHandle.d.ts +10 -0
- package/dist/lib/types/tooltip/store/TooltipStore.d.ts +60 -0
- package/dist/lib/types/tooltip/trigger/TooltipTrigger.d.ts +35 -0
- package/dist/lib/types/tooltip/utils/mergeTooltipStyles.d.ts +2 -0
- package/dist/lib/types/tooltip/utils/stateAttributesMapping.d.ts +68 -0
- package/dist/lib/types/tooltip/viewport/TooltipViewport.d.ts +14 -0
- package/dist/lib/types/types/index.d.ts +29 -0
- package/package.json +583 -0
|
@@ -0,0 +1,1058 @@
|
|
|
1
|
+
import { m as e, p as t } from "./dom-BEAeQ9Eb.js";
|
|
2
|
+
import { createEffect as n, createMemo as r, createSignal as i } from "solid-js";
|
|
3
|
+
//#region node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
4
|
+
var a = Math.min, o = Math.max, s = Math.round, c = Math.floor, l = (e) => ({
|
|
5
|
+
x: e,
|
|
6
|
+
y: e
|
|
7
|
+
}), u = {
|
|
8
|
+
left: "right",
|
|
9
|
+
right: "left",
|
|
10
|
+
bottom: "top",
|
|
11
|
+
top: "bottom"
|
|
12
|
+
};
|
|
13
|
+
function d(e, t, n) {
|
|
14
|
+
return o(e, a(t, n));
|
|
15
|
+
}
|
|
16
|
+
function f(e, t) {
|
|
17
|
+
return typeof e == "function" ? e(t) : e;
|
|
18
|
+
}
|
|
19
|
+
function p(e) {
|
|
20
|
+
return e.split("-")[0];
|
|
21
|
+
}
|
|
22
|
+
function m(e) {
|
|
23
|
+
return e.split("-")[1];
|
|
24
|
+
}
|
|
25
|
+
function h(e) {
|
|
26
|
+
return e === "x" ? "y" : "x";
|
|
27
|
+
}
|
|
28
|
+
function g(e) {
|
|
29
|
+
return e === "y" ? "height" : "width";
|
|
30
|
+
}
|
|
31
|
+
function _(e) {
|
|
32
|
+
let t = e[0];
|
|
33
|
+
return t === "t" || t === "b" ? "y" : "x";
|
|
34
|
+
}
|
|
35
|
+
function v(e) {
|
|
36
|
+
return h(_(e));
|
|
37
|
+
}
|
|
38
|
+
function y(e, t, n) {
|
|
39
|
+
n === void 0 && (n = !1);
|
|
40
|
+
let r = m(e), i = v(e), a = g(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
41
|
+
return t.reference[a] > t.floating[a] && (o = O(o)), [o, O(o)];
|
|
42
|
+
}
|
|
43
|
+
function b(e) {
|
|
44
|
+
let t = O(e);
|
|
45
|
+
return [
|
|
46
|
+
x(e),
|
|
47
|
+
t,
|
|
48
|
+
x(t)
|
|
49
|
+
];
|
|
50
|
+
}
|
|
51
|
+
function x(e) {
|
|
52
|
+
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
53
|
+
}
|
|
54
|
+
var S = ["left", "right"], C = ["right", "left"], w = ["top", "bottom"], T = ["bottom", "top"];
|
|
55
|
+
function E(e, t, n) {
|
|
56
|
+
switch (e) {
|
|
57
|
+
case "top":
|
|
58
|
+
case "bottom": return n ? t ? C : S : t ? S : C;
|
|
59
|
+
case "left":
|
|
60
|
+
case "right": return t ? w : T;
|
|
61
|
+
default: return [];
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
function D(e, t, n, r) {
|
|
65
|
+
let i = m(e), a = E(p(e), n === "start", r);
|
|
66
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(x)))), a;
|
|
67
|
+
}
|
|
68
|
+
function O(e) {
|
|
69
|
+
let t = p(e);
|
|
70
|
+
return u[t] + e.slice(t.length);
|
|
71
|
+
}
|
|
72
|
+
function k(e) {
|
|
73
|
+
return {
|
|
74
|
+
top: e.top ?? 0,
|
|
75
|
+
right: e.right ?? 0,
|
|
76
|
+
bottom: e.bottom ?? 0,
|
|
77
|
+
left: e.left ?? 0
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function A(e) {
|
|
81
|
+
return typeof e == "number" ? {
|
|
82
|
+
top: e,
|
|
83
|
+
right: e,
|
|
84
|
+
bottom: e,
|
|
85
|
+
left: e
|
|
86
|
+
} : k(e);
|
|
87
|
+
}
|
|
88
|
+
function j(e) {
|
|
89
|
+
let { x: t, y: n, width: r, height: i } = e;
|
|
90
|
+
return {
|
|
91
|
+
width: r,
|
|
92
|
+
height: i,
|
|
93
|
+
top: n,
|
|
94
|
+
left: t,
|
|
95
|
+
right: t + r,
|
|
96
|
+
bottom: n + i,
|
|
97
|
+
x: t,
|
|
98
|
+
y: n
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
//#endregion
|
|
102
|
+
//#region node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
103
|
+
function M(e, t, n) {
|
|
104
|
+
let { reference: r, floating: i } = e, a = _(t), o = v(t), s = g(o), c = p(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, h;
|
|
105
|
+
switch (c) {
|
|
106
|
+
case "top":
|
|
107
|
+
h = {
|
|
108
|
+
x: u,
|
|
109
|
+
y: r.y - i.height
|
|
110
|
+
};
|
|
111
|
+
break;
|
|
112
|
+
case "bottom":
|
|
113
|
+
h = {
|
|
114
|
+
x: u,
|
|
115
|
+
y: r.y + r.height
|
|
116
|
+
};
|
|
117
|
+
break;
|
|
118
|
+
case "right":
|
|
119
|
+
h = {
|
|
120
|
+
x: r.x + r.width,
|
|
121
|
+
y: d
|
|
122
|
+
};
|
|
123
|
+
break;
|
|
124
|
+
case "left":
|
|
125
|
+
h = {
|
|
126
|
+
x: r.x - i.width,
|
|
127
|
+
y: d
|
|
128
|
+
};
|
|
129
|
+
break;
|
|
130
|
+
default: h = {
|
|
131
|
+
x: r.x,
|
|
132
|
+
y: r.y
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
let y = m(t);
|
|
136
|
+
return y && (h[o] += f * (y === "end" ? 1 : -1) * (n && l ? -1 : 1)), h;
|
|
137
|
+
}
|
|
138
|
+
async function N(e, t) {
|
|
139
|
+
t === void 0 && (t = {});
|
|
140
|
+
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: p = 0 } = f(t, e), m = A(p), h = o[d ? u === "floating" ? "reference" : "floating" : u], g = j(await i.getClippingRect({
|
|
141
|
+
element: await (i.isElement == null ? void 0 : i.isElement(h)) ?? !0 ? h : h.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
142
|
+
boundary: c,
|
|
143
|
+
rootBoundary: l,
|
|
144
|
+
strategy: s
|
|
145
|
+
})), _ = u === "floating" ? {
|
|
146
|
+
x: n,
|
|
147
|
+
y: r,
|
|
148
|
+
width: a.floating.width,
|
|
149
|
+
height: a.floating.height
|
|
150
|
+
} : a.reference, v = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), y = await (i.isElement == null ? void 0 : i.isElement(v)) && await (i.getScale == null ? void 0 : i.getScale(v)) || {
|
|
151
|
+
x: 1,
|
|
152
|
+
y: 1
|
|
153
|
+
}, b = j(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
154
|
+
elements: o,
|
|
155
|
+
rect: _,
|
|
156
|
+
offsetParent: v,
|
|
157
|
+
strategy: s
|
|
158
|
+
}) : _);
|
|
159
|
+
return {
|
|
160
|
+
top: (g.top - b.top + m.top) / y.y,
|
|
161
|
+
bottom: (b.bottom - g.bottom + m.bottom) / y.y,
|
|
162
|
+
left: (g.left - b.left + m.left) / y.x,
|
|
163
|
+
right: (b.right - g.right + m.right) / y.x
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
var ee = 50, te = async (e, t, n) => {
|
|
167
|
+
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
168
|
+
...o,
|
|
169
|
+
detectOverflow: N
|
|
170
|
+
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
171
|
+
reference: e,
|
|
172
|
+
floating: t,
|
|
173
|
+
strategy: i
|
|
174
|
+
}), { x: u, y: d } = M(l, r, c), f = r, p = 0, m = {};
|
|
175
|
+
for (let n = 0; n < a.length; n++) {
|
|
176
|
+
let h = a[n];
|
|
177
|
+
if (!h) continue;
|
|
178
|
+
let { name: g, fn: _ } = h, { x: v, y, data: b, reset: x } = await _({
|
|
179
|
+
x: u,
|
|
180
|
+
y: d,
|
|
181
|
+
initialPlacement: r,
|
|
182
|
+
placement: f,
|
|
183
|
+
strategy: i,
|
|
184
|
+
middlewareData: m,
|
|
185
|
+
rects: l,
|
|
186
|
+
platform: s,
|
|
187
|
+
elements: {
|
|
188
|
+
reference: e,
|
|
189
|
+
floating: t
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
u = v ?? u, d = y ?? d, m[g] = {
|
|
193
|
+
...m[g],
|
|
194
|
+
...b
|
|
195
|
+
}, x && p < ee && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
|
|
196
|
+
reference: e,
|
|
197
|
+
floating: t,
|
|
198
|
+
strategy: i
|
|
199
|
+
}) : x.rects), {x: u, y: d} = M(l, f, c)), n = -1);
|
|
200
|
+
}
|
|
201
|
+
return {
|
|
202
|
+
x: u,
|
|
203
|
+
y: d,
|
|
204
|
+
placement: f,
|
|
205
|
+
strategy: i,
|
|
206
|
+
middlewareData: m
|
|
207
|
+
};
|
|
208
|
+
}, ne = function(e) {
|
|
209
|
+
return e === void 0 && (e = {}), {
|
|
210
|
+
name: "flip",
|
|
211
|
+
options: e,
|
|
212
|
+
async fn(t) {
|
|
213
|
+
var n;
|
|
214
|
+
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: m = "bestFit", fallbackAxisSideDirection: h = "none", flipAlignment: g = !0, ...v } = f(e, t);
|
|
215
|
+
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
216
|
+
let x = p(r), S = _(o), C = p(o) === o, w = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), T = d || (C || !g ? [O(o)] : b(o)), E = h !== "none";
|
|
217
|
+
!d && E && T.push(...D(o, g, h, w));
|
|
218
|
+
let k = [o, ...T], A = await s.detectOverflow(t, v), j = [], M = i.flip?.overflows || [];
|
|
219
|
+
if (l && j.push(A[x]), u) {
|
|
220
|
+
let e = y(r, a, w);
|
|
221
|
+
j.push(A[e[0]], A[e[1]]);
|
|
222
|
+
}
|
|
223
|
+
if (M = [...M, {
|
|
224
|
+
placement: r,
|
|
225
|
+
overflows: j
|
|
226
|
+
}], !j.every((e) => e <= 0)) {
|
|
227
|
+
let e = (i.flip?.index || 0) + 1, t = k[e];
|
|
228
|
+
if (t && (u !== "alignment" || S === _(t) || M.every((e) => _(e.placement) !== S || e.overflows[0] > 0))) return {
|
|
229
|
+
data: {
|
|
230
|
+
index: e,
|
|
231
|
+
overflows: M
|
|
232
|
+
},
|
|
233
|
+
reset: { placement: t }
|
|
234
|
+
};
|
|
235
|
+
let n = M.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
|
|
236
|
+
if (!n) switch (m) {
|
|
237
|
+
case "bestFit": {
|
|
238
|
+
let e = M.filter((e) => {
|
|
239
|
+
if (E) {
|
|
240
|
+
let t = _(e.placement);
|
|
241
|
+
return t === S || t === "y";
|
|
242
|
+
}
|
|
243
|
+
return !0;
|
|
244
|
+
}).map((e) => [e.placement, e.overflows.filter((e) => e > 0).reduce((e, t) => e + t, 0)]).sort((e, t) => e[1] - t[1])[0]?.[0];
|
|
245
|
+
e && (n = e);
|
|
246
|
+
break;
|
|
247
|
+
}
|
|
248
|
+
case "initialPlacement": n = o;
|
|
249
|
+
}
|
|
250
|
+
if (r !== n) return { reset: { placement: n } };
|
|
251
|
+
}
|
|
252
|
+
return {};
|
|
253
|
+
}
|
|
254
|
+
};
|
|
255
|
+
}, re = /*#__PURE__*/ new Set(["left", "top"]);
|
|
256
|
+
async function ie(e, t) {
|
|
257
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = p(n), s = m(n), c = _(n) === "y", l = re.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = f(t, e), { mainAxis: h, crossAxis: g, alignmentAxis: v } = typeof d == "number" ? {
|
|
258
|
+
mainAxis: d,
|
|
259
|
+
crossAxis: 0,
|
|
260
|
+
alignmentAxis: null
|
|
261
|
+
} : {
|
|
262
|
+
mainAxis: d.mainAxis || 0,
|
|
263
|
+
crossAxis: d.crossAxis || 0,
|
|
264
|
+
alignmentAxis: d.alignmentAxis
|
|
265
|
+
};
|
|
266
|
+
return s && typeof v == "number" && (g = s === "end" ? v * -1 : v), c ? {
|
|
267
|
+
x: g * u,
|
|
268
|
+
y: h * l
|
|
269
|
+
} : {
|
|
270
|
+
x: h * l,
|
|
271
|
+
y: g * u
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
var ae = function(e) {
|
|
275
|
+
return e === void 0 && (e = 0), {
|
|
276
|
+
name: "offset",
|
|
277
|
+
options: e,
|
|
278
|
+
async fn(t) {
|
|
279
|
+
var n;
|
|
280
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await ie(t, e);
|
|
281
|
+
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
282
|
+
x: r + s.x,
|
|
283
|
+
y: i + s.y,
|
|
284
|
+
data: {
|
|
285
|
+
...s,
|
|
286
|
+
placement: a
|
|
287
|
+
}
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
};
|
|
291
|
+
}, oe = function(e) {
|
|
292
|
+
return e === void 0 && (e = {}), {
|
|
293
|
+
name: "shift",
|
|
294
|
+
options: e,
|
|
295
|
+
async fn(t) {
|
|
296
|
+
let { x: n, y: r, placement: i, platform: a } = t, { mainAxis: o = !0, crossAxis: s = !1, limiter: c = { fn: (e) => {
|
|
297
|
+
let { x: t, y: n } = e;
|
|
298
|
+
return {
|
|
299
|
+
x: t,
|
|
300
|
+
y: n
|
|
301
|
+
};
|
|
302
|
+
} }, ...l } = f(e, t), u = {
|
|
303
|
+
x: n,
|
|
304
|
+
y: r
|
|
305
|
+
}, p = await a.detectOverflow(t, l), m = _(i), g = h(m), v = u[g], y = u[m], b = (e, t) => d(t + p[e === "y" ? "top" : "left"], t, t - p[e === "y" ? "bottom" : "right"]);
|
|
306
|
+
o && (v = b(g, v)), s && (y = b(m, y));
|
|
307
|
+
let x = c.fn({
|
|
308
|
+
...t,
|
|
309
|
+
[g]: v,
|
|
310
|
+
[m]: y
|
|
311
|
+
});
|
|
312
|
+
return {
|
|
313
|
+
...x,
|
|
314
|
+
data: {
|
|
315
|
+
x: x.x - n,
|
|
316
|
+
y: x.y - r,
|
|
317
|
+
enabled: {
|
|
318
|
+
[g]: o,
|
|
319
|
+
[m]: s
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
}, se = function(e) {
|
|
326
|
+
return e === void 0 && (e = {}), {
|
|
327
|
+
options: e,
|
|
328
|
+
fn(t) {
|
|
329
|
+
let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } = f(e, t), u = {
|
|
330
|
+
x: n,
|
|
331
|
+
y: r
|
|
332
|
+
}, d = _(i), m = h(d), g = u[m], v = u[d], y = f(s, t), b = typeof y == "number" ? {
|
|
333
|
+
mainAxis: y,
|
|
334
|
+
crossAxis: 0
|
|
335
|
+
} : {
|
|
336
|
+
mainAxis: y.mainAxis ?? 0,
|
|
337
|
+
crossAxis: y.crossAxis ?? 0
|
|
338
|
+
};
|
|
339
|
+
if (c) {
|
|
340
|
+
let e = m === "y" ? "height" : "width", t = a.reference[m] - a.floating[e] + b.mainAxis, n = a.reference[m] + a.reference[e] - b.mainAxis;
|
|
341
|
+
g < t ? g = t : g > n && (g = n);
|
|
342
|
+
}
|
|
343
|
+
if (l) {
|
|
344
|
+
let e = m === "y" ? "width" : "height", t = re.has(p(i)), n = a.reference[d] - a.floating[e] + (t && o.offset?.[d] || 0) + (t ? 0 : b.crossAxis), r = a.reference[d] + a.reference[e] + (t ? 0 : o.offset?.[d] || 0) - (t ? b.crossAxis : 0);
|
|
345
|
+
v < n ? v = n : v > r && (v = r);
|
|
346
|
+
}
|
|
347
|
+
return {
|
|
348
|
+
[m]: g,
|
|
349
|
+
[d]: v
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
}, ce = function(e) {
|
|
354
|
+
return e === void 0 && (e = {}), {
|
|
355
|
+
name: "size",
|
|
356
|
+
options: e,
|
|
357
|
+
async fn(t) {
|
|
358
|
+
let { placement: n, rects: r, platform: i, elements: s } = t, { apply: c = () => {}, ...l } = f(e, t), u = await i.detectOverflow(t, l), d = p(n), h = m(n), g = _(n) === "y", { width: v, height: y } = r.floating, b, x;
|
|
359
|
+
d === "top" || d === "bottom" ? (b = d, x = h === (await (i.isRTL == null ? void 0 : i.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (x = d, b = h === "end" ? "top" : "bottom");
|
|
360
|
+
let S = y - u.top - u.bottom, C = v - u.left - u.right, w = a(y - u[b], S), T = a(v - u[x], C), E = t.middlewareData.shift, D = !E, O = w, k = T;
|
|
361
|
+
E != null && E.enabled.x && (k = C), E != null && E.enabled.y && (O = S), D && !h && (g ? k = v - 2 * o(u.left, u.right) : O = y - 2 * o(u.top, u.bottom)), await c({
|
|
362
|
+
...t,
|
|
363
|
+
availableWidth: k,
|
|
364
|
+
availableHeight: O
|
|
365
|
+
});
|
|
366
|
+
let A = await i.getDimensions(s.floating);
|
|
367
|
+
return v !== A.width || y !== A.height ? { reset: { rects: !0 } } : {};
|
|
368
|
+
}
|
|
369
|
+
};
|
|
370
|
+
};
|
|
371
|
+
//#endregion
|
|
372
|
+
//#region node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
373
|
+
function P() {
|
|
374
|
+
return typeof window < "u";
|
|
375
|
+
}
|
|
376
|
+
function F(e) {
|
|
377
|
+
return le(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
378
|
+
}
|
|
379
|
+
function I(e) {
|
|
380
|
+
var t;
|
|
381
|
+
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
382
|
+
}
|
|
383
|
+
function L(e) {
|
|
384
|
+
return ((le(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
385
|
+
}
|
|
386
|
+
function le(e) {
|
|
387
|
+
return P() ? e instanceof Node || e instanceof I(e).Node : !1;
|
|
388
|
+
}
|
|
389
|
+
function R(e) {
|
|
390
|
+
return P() ? e instanceof Element || e instanceof I(e).Element : !1;
|
|
391
|
+
}
|
|
392
|
+
function z(e) {
|
|
393
|
+
return P() ? e instanceof HTMLElement || e instanceof I(e).HTMLElement : !1;
|
|
394
|
+
}
|
|
395
|
+
function ue(e) {
|
|
396
|
+
return !P() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof I(e).ShadowRoot;
|
|
397
|
+
}
|
|
398
|
+
function B(e) {
|
|
399
|
+
let { overflow: t, overflowX: n, overflowY: r, display: i } = K(e);
|
|
400
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
401
|
+
}
|
|
402
|
+
function de(e) {
|
|
403
|
+
return /^(table|td|th)$/.test(F(e));
|
|
404
|
+
}
|
|
405
|
+
function V(e) {
|
|
406
|
+
try {
|
|
407
|
+
if (e.matches(":popover-open")) return !0;
|
|
408
|
+
} catch {}
|
|
409
|
+
try {
|
|
410
|
+
return e.matches(":modal");
|
|
411
|
+
} catch {
|
|
412
|
+
return !1;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
var fe = /transform|translate|scale|rotate|perspective|filter/, pe = /paint|layout|strict|content/, H = (e) => !!e && e !== "none", me;
|
|
416
|
+
function U(e) {
|
|
417
|
+
let t = R(e) ? K(e) : e;
|
|
418
|
+
return H(t.transform) || H(t.translate) || H(t.scale) || H(t.rotate) || H(t.perspective) || !W() && (H(t.backdropFilter) || H(t.filter)) || fe.test(t.willChange || "") || pe.test(t.contain || "");
|
|
419
|
+
}
|
|
420
|
+
function he(e) {
|
|
421
|
+
let t = J(e);
|
|
422
|
+
for (; z(t) && !G(t);) {
|
|
423
|
+
if (U(t)) return t;
|
|
424
|
+
if (V(t)) return null;
|
|
425
|
+
t = J(t);
|
|
426
|
+
}
|
|
427
|
+
return null;
|
|
428
|
+
}
|
|
429
|
+
function W() {
|
|
430
|
+
return me ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), me;
|
|
431
|
+
}
|
|
432
|
+
function G(e) {
|
|
433
|
+
return /^(html|body|#document)$/.test(F(e));
|
|
434
|
+
}
|
|
435
|
+
function K(e) {
|
|
436
|
+
return I(e).getComputedStyle(e);
|
|
437
|
+
}
|
|
438
|
+
function q(e) {
|
|
439
|
+
return R(e) ? {
|
|
440
|
+
scrollLeft: e.scrollLeft,
|
|
441
|
+
scrollTop: e.scrollTop
|
|
442
|
+
} : {
|
|
443
|
+
scrollLeft: e.scrollX,
|
|
444
|
+
scrollTop: e.scrollY
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
function J(e) {
|
|
448
|
+
if (F(e) === "html") return e;
|
|
449
|
+
let t = e.assignedSlot || e.parentNode || ue(e) && e.host || L(e);
|
|
450
|
+
return ue(t) ? t.host : t;
|
|
451
|
+
}
|
|
452
|
+
function ge(e) {
|
|
453
|
+
let t = J(e);
|
|
454
|
+
return G(t) ? (e.ownerDocument || e).body : z(t) && B(t) ? t : ge(t);
|
|
455
|
+
}
|
|
456
|
+
function Y(e, t, n) {
|
|
457
|
+
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
458
|
+
let r = ge(e), i = r === e.ownerDocument?.body, a = I(r);
|
|
459
|
+
if (i) {
|
|
460
|
+
let e = _e(a);
|
|
461
|
+
return t.concat(a, a.visualViewport || [], B(r) ? r : [], e && n ? Y(e) : []);
|
|
462
|
+
}
|
|
463
|
+
return t.concat(r, Y(r, [], n));
|
|
464
|
+
}
|
|
465
|
+
function _e(e) {
|
|
466
|
+
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
467
|
+
}
|
|
468
|
+
//#endregion
|
|
469
|
+
//#region node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
470
|
+
function ve(e) {
|
|
471
|
+
let t = K(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = z(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, c = s(n) !== a || s(r) !== o;
|
|
472
|
+
return c && (n = a, r = o), {
|
|
473
|
+
width: n,
|
|
474
|
+
height: r,
|
|
475
|
+
$: c
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
function ye(e) {
|
|
479
|
+
return R(e) ? e : e.contextElement;
|
|
480
|
+
}
|
|
481
|
+
function X(e) {
|
|
482
|
+
let t = ye(e);
|
|
483
|
+
if (!z(t)) return l(1);
|
|
484
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = ve(t), o = (a ? s(n.width) : n.width) / r, c = (a ? s(n.height) : n.height) / i;
|
|
485
|
+
return (!o || !Number.isFinite(o)) && (o = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
486
|
+
x: o,
|
|
487
|
+
y: c
|
|
488
|
+
};
|
|
489
|
+
}
|
|
490
|
+
var be = /*#__PURE__*/ l(0);
|
|
491
|
+
function xe(e) {
|
|
492
|
+
let t = I(e);
|
|
493
|
+
return !W() || !t.visualViewport ? be : {
|
|
494
|
+
x: t.visualViewport.offsetLeft,
|
|
495
|
+
y: t.visualViewport.offsetTop
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
function Se(e, t, n) {
|
|
499
|
+
return t === void 0 && (t = !1), !!n && t && n === I(e);
|
|
500
|
+
}
|
|
501
|
+
function Z(e, t, n, r) {
|
|
502
|
+
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
503
|
+
let i = e.getBoundingClientRect(), a = ye(e), o = l(1);
|
|
504
|
+
t && (r ? R(r) && (o = X(r)) : o = X(e));
|
|
505
|
+
let s = Se(a, n, r) ? xe(a) : l(0), c = (i.left + s.x) / o.x, u = (i.top + s.y) / o.y, d = i.width / o.x, f = i.height / o.y;
|
|
506
|
+
if (a && r) {
|
|
507
|
+
let e = I(a), t = R(r) ? I(r) : r, n = e, i = _e(n);
|
|
508
|
+
for (; i && t !== n;) {
|
|
509
|
+
let e = X(i), t = i.getBoundingClientRect(), r = K(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
510
|
+
c *= e.x, u *= e.y, d *= e.x, f *= e.y, c += a, u += o, n = I(i), i = _e(n);
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
return j({
|
|
514
|
+
width: d,
|
|
515
|
+
height: f,
|
|
516
|
+
x: c,
|
|
517
|
+
y: u
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
function Q(e, t) {
|
|
521
|
+
let n = q(e).scrollLeft;
|
|
522
|
+
return t ? t.left + n : Z(L(e)).left + n;
|
|
523
|
+
}
|
|
524
|
+
function Ce(e, t) {
|
|
525
|
+
let n = e.getBoundingClientRect();
|
|
526
|
+
return {
|
|
527
|
+
x: n.left + t.scrollLeft - Q(e, n),
|
|
528
|
+
y: n.top + t.scrollTop
|
|
529
|
+
};
|
|
530
|
+
}
|
|
531
|
+
function we(e) {
|
|
532
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = L(r), s = t ? V(t.floating) : !1;
|
|
533
|
+
if (r === o || s && a) return n;
|
|
534
|
+
let c = {
|
|
535
|
+
scrollLeft: 0,
|
|
536
|
+
scrollTop: 0
|
|
537
|
+
}, u = l(1), d = l(0), f = z(r);
|
|
538
|
+
if ((f || !a) && ((F(r) !== "body" || B(o)) && (c = q(r)), f)) {
|
|
539
|
+
let e = Z(r);
|
|
540
|
+
u = X(r), d.x = e.x + r.clientLeft, d.y = e.y + r.clientTop;
|
|
541
|
+
}
|
|
542
|
+
let p = o && !f && !a ? Ce(o, c) : l(0);
|
|
543
|
+
return {
|
|
544
|
+
width: n.width * u.x,
|
|
545
|
+
height: n.height * u.y,
|
|
546
|
+
x: n.x * u.x - c.scrollLeft * u.x + d.x + p.x,
|
|
547
|
+
y: n.y * u.y - c.scrollTop * u.y + d.y + p.y
|
|
548
|
+
};
|
|
549
|
+
}
|
|
550
|
+
function Te(e) {
|
|
551
|
+
return e.getClientRects ? Array.from(e.getClientRects()) : [];
|
|
552
|
+
}
|
|
553
|
+
function Ee(e) {
|
|
554
|
+
let t = q(e), n = e.ownerDocument.body, r = o(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = o(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + Q(e), s = -t.scrollTop;
|
|
555
|
+
return K(n).direction === "rtl" && (a += o(e.clientWidth, n.clientWidth) - r), {
|
|
556
|
+
width: r,
|
|
557
|
+
height: i,
|
|
558
|
+
x: a,
|
|
559
|
+
y: s
|
|
560
|
+
};
|
|
561
|
+
}
|
|
562
|
+
var De = 25;
|
|
563
|
+
function Oe(e, t, n) {
|
|
564
|
+
n === void 0 && (n = "viewport");
|
|
565
|
+
let r = n === "layoutViewport", i = I(e), a = L(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
|
|
566
|
+
if (o) {
|
|
567
|
+
let e = !W() || t === "fixed";
|
|
568
|
+
r ? e || (l = -o.offsetLeft, u = -o.offsetTop) : (s = o.width, c = o.height, e && (l = o.offsetLeft, u = o.offsetTop));
|
|
569
|
+
}
|
|
570
|
+
if (Q(a) <= 0) {
|
|
571
|
+
let e = a.ownerDocument, t = e.body, n = getComputedStyle(t), r = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, i = Math.abs(a.clientWidth - t.clientWidth - r), o = getComputedStyle(a).scrollbarGutter === "stable both-edges" ? i / 2 : i;
|
|
572
|
+
o <= De && (s -= o);
|
|
573
|
+
}
|
|
574
|
+
return {
|
|
575
|
+
width: s,
|
|
576
|
+
height: c,
|
|
577
|
+
x: l,
|
|
578
|
+
y: u
|
|
579
|
+
};
|
|
580
|
+
}
|
|
581
|
+
function ke(e, t) {
|
|
582
|
+
let n = Z(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = X(e);
|
|
583
|
+
return {
|
|
584
|
+
width: e.clientWidth * a.x,
|
|
585
|
+
height: e.clientHeight * a.y,
|
|
586
|
+
x: i * a.x,
|
|
587
|
+
y: r * a.y
|
|
588
|
+
};
|
|
589
|
+
}
|
|
590
|
+
function Ae(e, t, n) {
|
|
591
|
+
let r;
|
|
592
|
+
if (t === "viewport" || t === "layoutViewport") r = Oe(e, n, t);
|
|
593
|
+
else if (t === "document") r = Ee(L(e));
|
|
594
|
+
else if (R(t)) r = ke(t, n);
|
|
595
|
+
else {
|
|
596
|
+
let n = xe(e);
|
|
597
|
+
r = {
|
|
598
|
+
x: t.x - n.x,
|
|
599
|
+
y: t.y - n.y,
|
|
600
|
+
width: t.width,
|
|
601
|
+
height: t.height
|
|
602
|
+
};
|
|
603
|
+
}
|
|
604
|
+
return j(r);
|
|
605
|
+
}
|
|
606
|
+
function je(e, t) {
|
|
607
|
+
let n = t.get(e);
|
|
608
|
+
if (n) return n;
|
|
609
|
+
let r = Y(e, [], !1).filter((e) => R(e) && F(e) !== "body"), i = null, a = K(e).position === "fixed", o = a ? J(e) : e;
|
|
610
|
+
for (; R(o) && !G(o);) {
|
|
611
|
+
let e = K(o), t = U(o), n = i ? i.position : a ? "fixed" : "";
|
|
612
|
+
!t && (n === "fixed" || n === "absolute" && e.position === "static") ? r = r.filter((e) => e !== o) : i = e, o = J(o);
|
|
613
|
+
}
|
|
614
|
+
return t.set(e, r), r;
|
|
615
|
+
}
|
|
616
|
+
function Me(e) {
|
|
617
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, s = [...n === "clippingAncestors" ? V(t) ? [] : je(t, this._c) : [].concat(n), r], c = Ae(t, s[0], i), l = c.top, u = c.right, d = c.bottom, f = c.left;
|
|
618
|
+
for (let e = 1; e < s.length; e++) {
|
|
619
|
+
let n = Ae(t, s[e], i);
|
|
620
|
+
l = o(n.top, l), u = a(n.right, u), d = a(n.bottom, d), f = o(n.left, f);
|
|
621
|
+
}
|
|
622
|
+
return {
|
|
623
|
+
width: u - f,
|
|
624
|
+
height: d - l,
|
|
625
|
+
x: f,
|
|
626
|
+
y: l
|
|
627
|
+
};
|
|
628
|
+
}
|
|
629
|
+
function Ne(e) {
|
|
630
|
+
let { width: t, height: n } = ve(e);
|
|
631
|
+
return {
|
|
632
|
+
width: t,
|
|
633
|
+
height: n
|
|
634
|
+
};
|
|
635
|
+
}
|
|
636
|
+
function Pe(e, t, n) {
|
|
637
|
+
let r = z(t), i = L(t), a = n === "fixed", o = Z(e, !0, a, t), s = {
|
|
638
|
+
scrollLeft: 0,
|
|
639
|
+
scrollTop: 0
|
|
640
|
+
}, c = l(0);
|
|
641
|
+
if ((r || !a) && ((F(t) !== "body" || B(i)) && (s = q(t)), r)) {
|
|
642
|
+
let e = Z(t, !0, a, t);
|
|
643
|
+
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
644
|
+
}
|
|
645
|
+
!r && i && (c.x = Q(i));
|
|
646
|
+
let u = i && !r && !a ? Ce(i, s) : l(0);
|
|
647
|
+
return {
|
|
648
|
+
x: o.left + s.scrollLeft - c.x - u.x,
|
|
649
|
+
y: o.top + s.scrollTop - c.y - u.y,
|
|
650
|
+
width: o.width,
|
|
651
|
+
height: o.height
|
|
652
|
+
};
|
|
653
|
+
}
|
|
654
|
+
function Fe(e) {
|
|
655
|
+
return K(e).position === "static";
|
|
656
|
+
}
|
|
657
|
+
function Ie(e, t) {
|
|
658
|
+
if (!z(e) || K(e).position === "fixed") return null;
|
|
659
|
+
if (t) return t(e);
|
|
660
|
+
let n = e.offsetParent;
|
|
661
|
+
return L(e) === n && (n = n.ownerDocument.body), n;
|
|
662
|
+
}
|
|
663
|
+
function Le(e, t) {
|
|
664
|
+
let n = I(e);
|
|
665
|
+
if (V(e)) return n;
|
|
666
|
+
if (!z(e)) {
|
|
667
|
+
let t = J(e);
|
|
668
|
+
for (; t && !G(t);) {
|
|
669
|
+
if (R(t) && !Fe(t)) return t;
|
|
670
|
+
t = J(t);
|
|
671
|
+
}
|
|
672
|
+
return n;
|
|
673
|
+
}
|
|
674
|
+
let r = Ie(e, t);
|
|
675
|
+
for (; r && de(r) && Fe(r);) r = Ie(r, t);
|
|
676
|
+
return r && G(r) && Fe(r) && !U(r) ? n : r || he(e) || n;
|
|
677
|
+
}
|
|
678
|
+
var Re = async function(e) {
|
|
679
|
+
let t = this.getOffsetParent || Le, n = this.getDimensions, r = await n(e.floating);
|
|
680
|
+
return {
|
|
681
|
+
reference: Pe(e.reference, await t(e.floating), e.strategy),
|
|
682
|
+
floating: {
|
|
683
|
+
x: 0,
|
|
684
|
+
y: 0,
|
|
685
|
+
width: r.width,
|
|
686
|
+
height: r.height
|
|
687
|
+
}
|
|
688
|
+
};
|
|
689
|
+
};
|
|
690
|
+
function ze(e) {
|
|
691
|
+
return K(e).direction === "rtl";
|
|
692
|
+
}
|
|
693
|
+
var Be = {
|
|
694
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: we,
|
|
695
|
+
getDocumentElement: L,
|
|
696
|
+
getClippingRect: Me,
|
|
697
|
+
getOffsetParent: Le,
|
|
698
|
+
getElementRects: Re,
|
|
699
|
+
getClientRects: Te,
|
|
700
|
+
getDimensions: Ne,
|
|
701
|
+
getScale: X,
|
|
702
|
+
isElement: R,
|
|
703
|
+
isRTL: ze
|
|
704
|
+
};
|
|
705
|
+
function Ve(e, t) {
|
|
706
|
+
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
707
|
+
}
|
|
708
|
+
function He(e, t, n) {
|
|
709
|
+
let r = null, i, s = L(e);
|
|
710
|
+
function l() {
|
|
711
|
+
var e;
|
|
712
|
+
clearTimeout(i), (e = r) == null || e.disconnect(), r = null;
|
|
713
|
+
}
|
|
714
|
+
function u(n, d) {
|
|
715
|
+
n === void 0 && (n = !1), d === void 0 && (d = 1), l();
|
|
716
|
+
let f = e.getBoundingClientRect(), { left: p, top: m, width: h, height: g } = f;
|
|
717
|
+
if (n || t(), !h || !g) return;
|
|
718
|
+
let _ = c(m), v = c(s.clientWidth - (p + h)), y = c(s.clientHeight - (m + g)), b = c(p), x = {
|
|
719
|
+
rootMargin: -_ + "px " + -v + "px " + -y + "px " + -b + "px",
|
|
720
|
+
threshold: o(0, a(1, d)) || 1
|
|
721
|
+
}, S = !0;
|
|
722
|
+
function C(t) {
|
|
723
|
+
let n = t[0].intersectionRatio;
|
|
724
|
+
if (!Ve(f, e.getBoundingClientRect())) return u();
|
|
725
|
+
if (n !== d) {
|
|
726
|
+
if (!S) return u();
|
|
727
|
+
n ? u(!1, n) : i = setTimeout(() => {
|
|
728
|
+
u(!1, 1e-7);
|
|
729
|
+
}, 1e3);
|
|
730
|
+
}
|
|
731
|
+
S = !1;
|
|
732
|
+
}
|
|
733
|
+
try {
|
|
734
|
+
r = new IntersectionObserver(C, {
|
|
735
|
+
...x,
|
|
736
|
+
root: s.ownerDocument
|
|
737
|
+
});
|
|
738
|
+
} catch {
|
|
739
|
+
r = new IntersectionObserver(C, x);
|
|
740
|
+
}
|
|
741
|
+
r.observe(e);
|
|
742
|
+
}
|
|
743
|
+
let d = I(e), f = () => u(n);
|
|
744
|
+
return d.addEventListener("resize", f), u(!0), () => {
|
|
745
|
+
d.removeEventListener("resize", f), l();
|
|
746
|
+
};
|
|
747
|
+
}
|
|
748
|
+
function Ue(e, t, n, r) {
|
|
749
|
+
r === void 0 && (r = {});
|
|
750
|
+
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = ye(e), u = i || a ? [...l ? Y(l) : [], ...t ? Y(t) : []] : [];
|
|
751
|
+
u.forEach((e) => {
|
|
752
|
+
i && e.addEventListener("scroll", n), a && e.addEventListener("resize", n);
|
|
753
|
+
});
|
|
754
|
+
let d = l && s ? He(l, n, a) : null, f = -1, p = null;
|
|
755
|
+
o && (p = new ResizeObserver((e) => {
|
|
756
|
+
let [r] = e;
|
|
757
|
+
r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
758
|
+
var e;
|
|
759
|
+
(e = p) == null || e.observe(t);
|
|
760
|
+
})), n();
|
|
761
|
+
}), l && !c && p.observe(l), t && p.observe(t));
|
|
762
|
+
let m, h = c ? Z(e) : null;
|
|
763
|
+
c && g();
|
|
764
|
+
function g() {
|
|
765
|
+
let t = Z(e);
|
|
766
|
+
h && !Ve(h, t) && n(), h = t, m = requestAnimationFrame(g);
|
|
767
|
+
}
|
|
768
|
+
return n(), () => {
|
|
769
|
+
var e;
|
|
770
|
+
u.forEach((e) => {
|
|
771
|
+
i && e.removeEventListener("scroll", n), a && e.removeEventListener("resize", n);
|
|
772
|
+
}), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
773
|
+
};
|
|
774
|
+
}
|
|
775
|
+
var We = N, Ge = ae, Ke = oe, qe = ne, Je = ce, Ye = se, Xe = (e, t, n) => {
|
|
776
|
+
let r = /* @__PURE__ */ new Map(), i = n ?? {}, a = {
|
|
777
|
+
...Be,
|
|
778
|
+
...i.platform,
|
|
779
|
+
_c: r
|
|
780
|
+
};
|
|
781
|
+
return te(e, t, {
|
|
782
|
+
...i,
|
|
783
|
+
platform: a
|
|
784
|
+
});
|
|
785
|
+
}, Ze = {
|
|
786
|
+
x: 0,
|
|
787
|
+
y: 0,
|
|
788
|
+
placement: "bottom",
|
|
789
|
+
strategy: "absolute",
|
|
790
|
+
middlewareData: {},
|
|
791
|
+
isPositioned: !1
|
|
792
|
+
};
|
|
793
|
+
function Qe(t) {
|
|
794
|
+
let [a, o] = i(Ze, { ownedWrite: !0 }), s = async () => {}, c = 0;
|
|
795
|
+
return n(() => ({
|
|
796
|
+
reference: t.reference(),
|
|
797
|
+
floating: t.floating(),
|
|
798
|
+
open: t.open?.(),
|
|
799
|
+
placement: t.placement?.() ?? "bottom",
|
|
800
|
+
strategy: t.strategy?.() ?? "absolute",
|
|
801
|
+
middleware: t.middleware?.().filter((e) => e != null) ?? [],
|
|
802
|
+
autoUpdateOptions: t.autoUpdate?.() ?? {}
|
|
803
|
+
}), (e) => {
|
|
804
|
+
let t = ++c;
|
|
805
|
+
if (!e.reference || !e.floating) {
|
|
806
|
+
s = async () => {}, o({
|
|
807
|
+
...Ze,
|
|
808
|
+
placement: e.placement,
|
|
809
|
+
strategy: e.strategy
|
|
810
|
+
});
|
|
811
|
+
return;
|
|
812
|
+
}
|
|
813
|
+
let n = 0;
|
|
814
|
+
if (s = async () => {
|
|
815
|
+
let r = ++n, i = await Xe(e.reference, e.floating, {
|
|
816
|
+
placement: e.placement,
|
|
817
|
+
strategy: e.strategy,
|
|
818
|
+
middleware: e.middleware
|
|
819
|
+
});
|
|
820
|
+
c === t && n === r && o({
|
|
821
|
+
...i,
|
|
822
|
+
isPositioned: e.open !== !1
|
|
823
|
+
});
|
|
824
|
+
}, e.open === !1 && o((e) => ({
|
|
825
|
+
...e,
|
|
826
|
+
isPositioned: !1
|
|
827
|
+
})), e.autoUpdateOptions === !1) {
|
|
828
|
+
s();
|
|
829
|
+
return;
|
|
830
|
+
}
|
|
831
|
+
return Ue(e.reference, e.floating, () => void s(), e.autoUpdateOptions);
|
|
832
|
+
}), {
|
|
833
|
+
state: a,
|
|
834
|
+
styles: r(() => {
|
|
835
|
+
let n = a();
|
|
836
|
+
if (!n.isPositioned) return {
|
|
837
|
+
position: "fixed",
|
|
838
|
+
top: "0px",
|
|
839
|
+
left: "0px"
|
|
840
|
+
};
|
|
841
|
+
if (t.transform?.() ?? !0) {
|
|
842
|
+
let r = e(t.floating()).devicePixelRatio || 1, i = Math.round(n.x * r) / r, a = Math.round(n.y * r) / r;
|
|
843
|
+
return {
|
|
844
|
+
position: n.strategy,
|
|
845
|
+
top: 0,
|
|
846
|
+
left: 0,
|
|
847
|
+
transform: `translate(${i}px, ${a}px)`,
|
|
848
|
+
"will-change": r >= 1.5 ? "transform" : void 0
|
|
849
|
+
};
|
|
850
|
+
}
|
|
851
|
+
return {
|
|
852
|
+
position: n.strategy,
|
|
853
|
+
left: `${Math.round(n.x)}px`,
|
|
854
|
+
top: `${Math.round(n.y)}px`
|
|
855
|
+
};
|
|
856
|
+
}),
|
|
857
|
+
update: () => s()
|
|
858
|
+
};
|
|
859
|
+
}
|
|
860
|
+
//#endregion
|
|
861
|
+
//#region src/internals/overlay/createAnchorPositioning.ts
|
|
862
|
+
function $(e) {
|
|
863
|
+
return e.split("-")[0];
|
|
864
|
+
}
|
|
865
|
+
function $e(e) {
|
|
866
|
+
return e.split("-")[1];
|
|
867
|
+
}
|
|
868
|
+
function et(e) {
|
|
869
|
+
return typeof e == "number" ? {
|
|
870
|
+
top: e,
|
|
871
|
+
right: e,
|
|
872
|
+
bottom: e,
|
|
873
|
+
left: e
|
|
874
|
+
} : {
|
|
875
|
+
top: e.top ?? 0,
|
|
876
|
+
right: e.right ?? 0,
|
|
877
|
+
bottom: e.bottom ?? 0,
|
|
878
|
+
left: e.left ?? 0
|
|
879
|
+
};
|
|
880
|
+
}
|
|
881
|
+
function tt(e) {
|
|
882
|
+
return {
|
|
883
|
+
name: "arrow",
|
|
884
|
+
options: e,
|
|
885
|
+
async fn(t) {
|
|
886
|
+
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0, offsetParent: d = "real" } = typeof e == "function" ? e(t) : e;
|
|
887
|
+
if (!l) return {};
|
|
888
|
+
let f = ["top", "bottom"].includes($(i)) ? "x" : "y", p = f === "x" ? "width" : "height", m = f === "x" ? "left" : "top", h = f === "x" ? "right" : "bottom", g = f === "x" ? "clientWidth" : "clientHeight", _ = await o.getDimensions(l), v = {
|
|
889
|
+
x: n,
|
|
890
|
+
y: r
|
|
891
|
+
}, y = a.reference[p] + a.reference[f] - v[f] - a.floating[p], b = v[f] - a.reference[f], x = d === "real" ? await o.getOffsetParent?.(l) : s.floating, S = s.floating[g] || a.floating[p];
|
|
892
|
+
(!S || !await o.isElement?.(x)) && (S = s.floating[g] || a.floating[p]);
|
|
893
|
+
let C = y / 2 - b / 2, w = et(u), T = S / 2 - _[p] / 2 - 1, E = Math.min(w[m], T), D = Math.min(w[h], T), O = E, k = S - _[p] - D, A = S / 2 - _[p] / 2 + C, j = Math.max(O, Math.min(A, k)), M = !c.arrow && $e(i) != null && A !== j && a.reference[p] / 2 - (A < O ? E : D) - _[p] / 2 < 0, N = M ? A < O ? A - O : A - k : 0;
|
|
894
|
+
return {
|
|
895
|
+
[f]: v[f] + N,
|
|
896
|
+
data: {
|
|
897
|
+
[f]: j,
|
|
898
|
+
centerOffset: A - j - N,
|
|
899
|
+
...M ? { alignmentOffset: N } : void 0
|
|
900
|
+
},
|
|
901
|
+
reset: M
|
|
902
|
+
};
|
|
903
|
+
}
|
|
904
|
+
};
|
|
905
|
+
}
|
|
906
|
+
var nt = {
|
|
907
|
+
name: "hide",
|
|
908
|
+
async fn(e) {
|
|
909
|
+
let { width: t, height: n, x: r, y: i } = e.rects.reference, a = t === 0 && n === 0 && r === 0 && i === 0, o = await We(e, { elementContext: "reference" });
|
|
910
|
+
return { data: { referenceHidden: a || o.top - n >= 0 || o.right - t >= 0 || o.bottom - n >= 0 || o.left - t >= 0 } };
|
|
911
|
+
}
|
|
912
|
+
};
|
|
913
|
+
function rt(e, t) {
|
|
914
|
+
return e === "inline-start" ? t ? "right" : "left" : e === "inline-end" ? t ? "left" : "right" : e;
|
|
915
|
+
}
|
|
916
|
+
function it(e, t, n) {
|
|
917
|
+
return e !== "inline-start" && e !== "inline-end" ? t : t === "right" ? n ? "inline-start" : "inline-end" : t === "left" ? n ? "inline-end" : "inline-start" : t;
|
|
918
|
+
}
|
|
919
|
+
function at(e, t, n) {
|
|
920
|
+
return {
|
|
921
|
+
side: it(t, $(e.placement), n),
|
|
922
|
+
align: $e(e.placement) ?? "center",
|
|
923
|
+
anchor: {
|
|
924
|
+
width: e.rects.reference.width,
|
|
925
|
+
height: e.rects.reference.height
|
|
926
|
+
},
|
|
927
|
+
positioner: {
|
|
928
|
+
width: e.rects.floating.width,
|
|
929
|
+
height: e.rects.floating.height
|
|
930
|
+
}
|
|
931
|
+
};
|
|
932
|
+
}
|
|
933
|
+
function ot(a) {
|
|
934
|
+
let [o, s] = i(null, { ownedWrite: !0 }), [c, l] = i("100vw", { ownedWrite: !0 }), [u, d] = i("100vh", { ownedWrite: !0 }), [f, p] = i(void 0, { ownedWrite: !0 }), [m, h] = i(void 0, { ownedWrite: !0 }), g = () => a.direction?.() === "rtl", _ = () => a.side?.() ?? "bottom", v = () => a.align?.() ?? "center", y = r(() => {
|
|
935
|
+
let e = rt(_(), g()), t = v();
|
|
936
|
+
return t === "center" ? e : `${e}-${t}`;
|
|
937
|
+
}), b = r(() => {
|
|
938
|
+
let n = a.collisionAvoidance?.() ?? {}, r = n.side ?? "flip", i = n.align ?? "flip", s = n.fallbackAxisSide ?? "end", c = a.sticky?.() ?? !1, u = a.shiftCrossAxis?.() ?? !1, f = et(a.collisionPadding?.() ?? 5), m = a.collisionBoundary?.(), y = {
|
|
939
|
+
boundary: m === "clipping-ancestors" || m === void 0 ? "clippingAncestors" : m,
|
|
940
|
+
padding: f
|
|
941
|
+
}, b = a.sideOffset?.() ?? 0, x = a.alignOffset?.() ?? 0, S = o(), C = a.floating(), w = a.arrowPadding?.() ?? 5, T = Ge((e) => {
|
|
942
|
+
let t = at(e, _(), g()), n = typeof b == "function" ? b(t) : b, r = typeof x == "function" ? x(t) : x;
|
|
943
|
+
return {
|
|
944
|
+
mainAxis: n,
|
|
945
|
+
crossAxis: r,
|
|
946
|
+
alignmentAxis: r
|
|
947
|
+
};
|
|
948
|
+
}), E = i === "none" && r !== "shift", D = !E && (c || u || r === "shift"), O = _(), k = r === "none" ? null : qe({
|
|
949
|
+
...y,
|
|
950
|
+
padding: {
|
|
951
|
+
top: f.top + 1 + +(O === "bottom"),
|
|
952
|
+
right: f.right + 1 + +(O === "left"),
|
|
953
|
+
bottom: f.bottom + 1 + +(O === "top"),
|
|
954
|
+
left: f.left + 1 + +(O === "right")
|
|
955
|
+
},
|
|
956
|
+
mainAxis: !u && r === "flip",
|
|
957
|
+
crossAxis: i === "flip" && "alignment",
|
|
958
|
+
fallbackAxisSideDirection: s
|
|
959
|
+
}), A = E ? null : Ke({
|
|
960
|
+
...y,
|
|
961
|
+
rootBoundary: a.shiftRootBoundary?.(),
|
|
962
|
+
mainAxis: i !== "none",
|
|
963
|
+
crossAxis: D,
|
|
964
|
+
limiter: c || u ? void 0 : Ye((e) => {
|
|
965
|
+
let t = S;
|
|
966
|
+
if (!t) return {};
|
|
967
|
+
let n = t.getBoundingClientRect(), r = ["top", "bottom"].includes($(e.placement)) ? "y" : "x", i = r === "y" ? n.width : n.height, a = r === "y" ? f.left + f.right : f.top + f.bottom;
|
|
968
|
+
return { offset: i / 2 + a / 2 };
|
|
969
|
+
})
|
|
970
|
+
}), j = r === "shift" || i === "shift" || v() === "center" ? [A, k] : [k, A];
|
|
971
|
+
return [
|
|
972
|
+
a.inlineMiddleware?.(),
|
|
973
|
+
T,
|
|
974
|
+
...j,
|
|
975
|
+
Je({
|
|
976
|
+
...y,
|
|
977
|
+
apply({ elements: t, availableWidth: n, availableHeight: r, rects: i }) {
|
|
978
|
+
if (!a.mounted()) return;
|
|
979
|
+
t.floating.style.setProperty("--available-width", `${n}px`), t.floating.style.setProperty("--available-height", `${r}px`), l(`${n}px`), d(`${r}px`);
|
|
980
|
+
let o = e(t.floating).devicePixelRatio || 1, { x: s, y: c, width: u, height: f } = i.reference, m = (Math.round((s + u) * o) - Math.round(s * o)) / o, g = (Math.round((c + f) * o) - Math.round(c * o)) / o;
|
|
981
|
+
t.floating.style.setProperty("--anchor-width", `${m}px`), t.floating.style.setProperty("--anchor-height", `${g}px`), p(`${m}px`), h(`${g}px`);
|
|
982
|
+
}
|
|
983
|
+
}),
|
|
984
|
+
tt(() => ({
|
|
985
|
+
element: S ?? t(C).createElement("div"),
|
|
986
|
+
padding: w,
|
|
987
|
+
offsetParent: "floating"
|
|
988
|
+
})),
|
|
989
|
+
{
|
|
990
|
+
name: "transformOrigin",
|
|
991
|
+
fn(e) {
|
|
992
|
+
let t = $(e.placement), n = S, r = e.middlewareData.arrow?.x ?? 0, i = e.middlewareData.arrow?.y ?? 0, a = r + (n?.clientWidth ?? 0) / 2, o = i + (n?.clientHeight ?? 0) / 2, s = typeof b == "function" ? b(at(e, _(), g())) : b, c = {
|
|
993
|
+
top: `${a}px calc(100% + ${s}px)`,
|
|
994
|
+
bottom: `${a}px ${-s}px`,
|
|
995
|
+
left: `calc(100% + ${s}px) ${o}px`,
|
|
996
|
+
right: `${-s}px ${o}px`
|
|
997
|
+
}[t], l = `${a}px ${e.rects.reference.y + e.rects.reference.height / 2 - e.y}px`, u = Math.abs(e.middlewareData.shift?.y ?? 0) > s;
|
|
998
|
+
return e.elements.floating.style.setProperty("--transform-origin", D && ["top", "bottom"].includes(t) && u ? l : c), {};
|
|
999
|
+
}
|
|
1000
|
+
},
|
|
1001
|
+
nt,
|
|
1002
|
+
a.adaptiveOriginMiddleware?.()
|
|
1003
|
+
];
|
|
1004
|
+
});
|
|
1005
|
+
n(() => a.floating(), (e) => {
|
|
1006
|
+
e && (e.style.setProperty("--available-width", "100vw"), e.style.setProperty("--available-height", "100vh"));
|
|
1007
|
+
});
|
|
1008
|
+
let x = Qe({
|
|
1009
|
+
reference: () => a.mounted() ? a.reference() : null,
|
|
1010
|
+
floating: a.floating,
|
|
1011
|
+
open: a.mounted,
|
|
1012
|
+
placement: y,
|
|
1013
|
+
strategy: () => a.positionMethod?.() ?? "absolute",
|
|
1014
|
+
middleware: b,
|
|
1015
|
+
transform: () => !a.adaptiveOriginMiddleware?.(),
|
|
1016
|
+
autoUpdate: () => ({
|
|
1017
|
+
elementResize: !(a.disableAnchorTracking?.() ?? !1) && typeof ResizeObserver < "u",
|
|
1018
|
+
layoutShift: !(a.disableAnchorTracking?.() ?? !1) && typeof IntersectionObserver < "u"
|
|
1019
|
+
})
|
|
1020
|
+
}), S = r(() => {
|
|
1021
|
+
let e = x.state(), t = {
|
|
1022
|
+
"--available-width": c(),
|
|
1023
|
+
"--available-height": u(),
|
|
1024
|
+
"--anchor-width": f(),
|
|
1025
|
+
"--anchor-height": m()
|
|
1026
|
+
}, n = e.middlewareData.adaptiveOrigin;
|
|
1027
|
+
return n && e.isPositioned ? {
|
|
1028
|
+
...t,
|
|
1029
|
+
position: e.strategy,
|
|
1030
|
+
[n.sideX ?? "left"]: `${e.x}px`,
|
|
1031
|
+
[n.sideY ?? "top"]: `${e.y}px`
|
|
1032
|
+
} : {
|
|
1033
|
+
...t,
|
|
1034
|
+
...x.styles(),
|
|
1035
|
+
opacity: e.isPositioned ? void 0 : 0
|
|
1036
|
+
};
|
|
1037
|
+
}), C = r(() => it(_(), $(x.state().placement), g())), w = r(() => $e(x.state().placement) ?? "center"), T = r(() => {
|
|
1038
|
+
let e = x.state().middlewareData.arrow;
|
|
1039
|
+
return {
|
|
1040
|
+
position: "absolute",
|
|
1041
|
+
top: e?.y === void 0 ? void 0 : `${e.y}px`,
|
|
1042
|
+
left: e?.x === void 0 ? void 0 : `${e.x}px`
|
|
1043
|
+
};
|
|
1044
|
+
});
|
|
1045
|
+
return {
|
|
1046
|
+
state: x.state,
|
|
1047
|
+
styles: S,
|
|
1048
|
+
arrowStyles: T,
|
|
1049
|
+
renderedSide: C,
|
|
1050
|
+
renderedAlign: w,
|
|
1051
|
+
anchorHidden: () => !!x.state().middlewareData.hide?.referenceHidden,
|
|
1052
|
+
arrowUncentered: () => (x.state().middlewareData.arrow?.centerOffset ?? 0) !== 0,
|
|
1053
|
+
setArrowElement: s,
|
|
1054
|
+
update: x.update
|
|
1055
|
+
};
|
|
1056
|
+
}
|
|
1057
|
+
//#endregion
|
|
1058
|
+
export { ot as t };
|