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,929 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { getStateAttributesProps as t } from "./internals/getStateAttributesProps.js";
|
|
3
|
+
import { d as n, i as r } from "./reasons-Co5CzjKq.js";
|
|
4
|
+
import { n as i, t as a } from "./resolveStyle-XcgAuaKR.js";
|
|
5
|
+
import { createChangeEventDetails as o } from "./internals/createBaseUIEventDetails.js";
|
|
6
|
+
import { composeEventHandlers as s } from "./internals/composeEventHandlers.js";
|
|
7
|
+
import { t as c } from "./runOnceAnimationsFinish-15EM-Z4l.js";
|
|
8
|
+
import { c as l } from "./dom-BEAeQ9Eb.js";
|
|
9
|
+
import { t as u } from "./PopupViewport-DgrIqQea.js";
|
|
10
|
+
import { t as d } from "./createAnchorPositioning-DcxDXUgB.js";
|
|
11
|
+
import { t as f } from "./InternalBackdrop-cSK13gaM.js";
|
|
12
|
+
import { t as p } from "./createAnchoredPopupScrollLock-Cx0cbh1_.js";
|
|
13
|
+
import { t as m } from "./createClickInteraction-CTaIFBiV.js";
|
|
14
|
+
import { c as h, i as g, n as _, r as v, s as y, t as b } from "./FloatingTree-23B7KKPD.js";
|
|
15
|
+
import { a as x, n as S, o as C, t as w } from "./PopupStore-DjB-wO88.js";
|
|
16
|
+
import { n as T, r as E, t as D } from "./safePolygon--bbKn0c8.js";
|
|
17
|
+
import { a as ee, i as te, n as O, o as k, r as A } from "./popupStateMapping-C9eZl19i.js";
|
|
18
|
+
import { t as j } from "./FocusManager-grSdNHqW.js";
|
|
19
|
+
import { i as M, n as N, r as ne, t as P } from "./PopupHandle-CcJG4NMy.js";
|
|
20
|
+
import { t as re } from "./TriggerFocusGuards-CQ-JuASy.js";
|
|
21
|
+
import { a as F, i as ie, n as ae, r as I, t as oe } from "./buttonSemantics-paljfpOX.js";
|
|
22
|
+
import { t as se } from "./setRef-fXF6OIo3.js";
|
|
23
|
+
import { n as L } from "./DirectionContext-BwMabICS.js";
|
|
24
|
+
import { n as ce } from "./ToolbarRootContext-88yZoAOy.js";
|
|
25
|
+
import { Dynamic as R, createComponent as z, memo as B, mergeProps as V } from "@solidjs/web";
|
|
26
|
+
import { $REFRESH as le, Show as H, createContext as U, createEffect as W, createMemo as G, createSignal as K, createUniqueId as q, omit as J, onCleanup as Y, untrack as X, useContext as Z } from "solid-js";
|
|
27
|
+
//#region src/popover/store/PopoverStore.ts
|
|
28
|
+
var ue = class extends w {
|
|
29
|
+
triggerData = /* @__PURE__ */ new Map();
|
|
30
|
+
openMethodAccessor;
|
|
31
|
+
setOpenMethodSignal;
|
|
32
|
+
openReasonAccessor;
|
|
33
|
+
setOpenReason;
|
|
34
|
+
instantTypeAccessor;
|
|
35
|
+
setInstantTypeSignal;
|
|
36
|
+
stickIfOpenAccessor;
|
|
37
|
+
setStickIfOpenSignal;
|
|
38
|
+
focusManagerModalAccessor;
|
|
39
|
+
setFocusManagerModalSignal;
|
|
40
|
+
disabledAccessor;
|
|
41
|
+
setDisabledSignal;
|
|
42
|
+
openOnHoverAccessor;
|
|
43
|
+
setOpenOnHoverSignal;
|
|
44
|
+
patientClickTimer;
|
|
45
|
+
constructor(e = {}) {
|
|
46
|
+
super(e);
|
|
47
|
+
let [t, n] = K(null, { ownedWrite: !0 });
|
|
48
|
+
this.openMethodAccessor = t, this.setOpenMethodSignal = n;
|
|
49
|
+
let [r, i] = K(null, { ownedWrite: !0 });
|
|
50
|
+
this.openReasonAccessor = r, this.setOpenReason = i;
|
|
51
|
+
let [a, o] = K(void 0, { ownedWrite: !0 });
|
|
52
|
+
this.instantTypeAccessor = a, this.setInstantTypeSignal = o;
|
|
53
|
+
let [s, c] = K(!0, { ownedWrite: !0 });
|
|
54
|
+
this.stickIfOpenAccessor = s, this.setStickIfOpenSignal = c;
|
|
55
|
+
let [l, u] = K(!1, { ownedWrite: !0 });
|
|
56
|
+
this.focusManagerModalAccessor = l, this.setFocusManagerModalSignal = u;
|
|
57
|
+
let [d, f] = K(!1, { ownedWrite: !0 });
|
|
58
|
+
this.disabledAccessor = d, this.setDisabledSignal = f;
|
|
59
|
+
let [p, m] = K(!1, { ownedWrite: !0 });
|
|
60
|
+
this.openOnHoverAccessor = p, this.setOpenOnHoverSignal = m;
|
|
61
|
+
}
|
|
62
|
+
openMethod() {
|
|
63
|
+
return this.openMethodAccessor();
|
|
64
|
+
}
|
|
65
|
+
setOpenMethod(e) {
|
|
66
|
+
this.setOpenMethodSignal(e);
|
|
67
|
+
}
|
|
68
|
+
openChangeReason() {
|
|
69
|
+
return this.openReasonAccessor();
|
|
70
|
+
}
|
|
71
|
+
instantType() {
|
|
72
|
+
return this.instantTypeAccessor();
|
|
73
|
+
}
|
|
74
|
+
setInstantType(e) {
|
|
75
|
+
this.setInstantTypeSignal(e);
|
|
76
|
+
}
|
|
77
|
+
stickIfOpen() {
|
|
78
|
+
return this.stickIfOpenAccessor();
|
|
79
|
+
}
|
|
80
|
+
focusManagerModal() {
|
|
81
|
+
return this.focusManagerModalAccessor();
|
|
82
|
+
}
|
|
83
|
+
setFocusManagerModal(e) {
|
|
84
|
+
this.setFocusManagerModalSignal(e);
|
|
85
|
+
}
|
|
86
|
+
disabled() {
|
|
87
|
+
return this.disabledAccessor();
|
|
88
|
+
}
|
|
89
|
+
openOnHover() {
|
|
90
|
+
return this.openOnHoverAccessor();
|
|
91
|
+
}
|
|
92
|
+
closeDelay() {
|
|
93
|
+
return this.track().closeDelay;
|
|
94
|
+
}
|
|
95
|
+
floatingElement() {
|
|
96
|
+
let e = this.track();
|
|
97
|
+
return e.positionerElement ?? e.popupElement;
|
|
98
|
+
}
|
|
99
|
+
setTriggerData(e, t) {
|
|
100
|
+
this.triggerData.set(e, t);
|
|
101
|
+
}
|
|
102
|
+
removeTriggerData(e) {
|
|
103
|
+
this.triggerData.delete(e);
|
|
104
|
+
}
|
|
105
|
+
syncTriggerData(e = this.activeTriggerId(), t = this.open()) {
|
|
106
|
+
let n = this.triggerData.get(e ?? "");
|
|
107
|
+
this.setDisabledSignal(n?.disabled ?? !1), this.setOpenOnHoverSignal(n?.openOnHover ?? !1), this.set("closeDelay", n?.closeDelay ?? 0), n && t && this.set("payload", n.payload);
|
|
108
|
+
}
|
|
109
|
+
resetAfterUnmount() {
|
|
110
|
+
clearTimeout(this.patientClickTimer), this.setStickIfOpenSignal(!0), this.setOpenReason(null);
|
|
111
|
+
}
|
|
112
|
+
dispose() {
|
|
113
|
+
clearTimeout(this.patientClickTimer);
|
|
114
|
+
}
|
|
115
|
+
reconcileTriggers() {
|
|
116
|
+
super.reconcileTriggers(), this.syncTriggerData();
|
|
117
|
+
}
|
|
118
|
+
setOpen(e, t) {
|
|
119
|
+
return !e && t.reason === "close-press" && t.trigger == null && this.activeTriggerId() != null && (t.trigger = this.context.triggerElements.getById(this.activeTriggerId()) ?? this.state.activeTriggerElement ?? void 0), super.setOpen(e, t) ? (this.setOpenReason(t.reason), t.reason === "trigger-hover" ? (this.setStickIfOpenSignal(!0), clearTimeout(this.patientClickTimer), this.patientClickTimer = setTimeout(() => this.setStickIfOpenSignal(!1), 500)) : e || clearTimeout(this.patientClickTimer), t.reason === "trigger-press" && t.event instanceof MouseEvent && t.event.detail === 0 ? this.setInstantTypeSignal("click") : !e && (t.reason === "escape-key" || t.reason === "none") ? this.setInstantTypeSignal("dismiss") : t.reason === "focus-out" ? this.setInstantTypeSignal("focus") : this.setInstantTypeSignal(void 0), this.syncTriggerData(), !0) : !1;
|
|
120
|
+
}
|
|
121
|
+
}, Q = class extends N {
|
|
122
|
+
openMethod() {
|
|
123
|
+
return null;
|
|
124
|
+
}
|
|
125
|
+
setOpenMethod(e) {}
|
|
126
|
+
openChangeReason() {
|
|
127
|
+
return null;
|
|
128
|
+
}
|
|
129
|
+
instantType() {}
|
|
130
|
+
setInstantType(e) {}
|
|
131
|
+
stickIfOpen() {
|
|
132
|
+
return !0;
|
|
133
|
+
}
|
|
134
|
+
focusManagerModal() {
|
|
135
|
+
return !1;
|
|
136
|
+
}
|
|
137
|
+
setFocusManagerModal(e) {}
|
|
138
|
+
disabled() {
|
|
139
|
+
return !1;
|
|
140
|
+
}
|
|
141
|
+
openOnHover() {
|
|
142
|
+
return !1;
|
|
143
|
+
}
|
|
144
|
+
closeDelay() {
|
|
145
|
+
return 0;
|
|
146
|
+
}
|
|
147
|
+
floatingElement() {
|
|
148
|
+
return null;
|
|
149
|
+
}
|
|
150
|
+
isMountedByTrigger(e) {
|
|
151
|
+
return !1;
|
|
152
|
+
}
|
|
153
|
+
setTriggerData(e, t) {}
|
|
154
|
+
removeTriggerData(e) {}
|
|
155
|
+
syncTriggerData(e, t) {}
|
|
156
|
+
}, de = Symbol("PopoverRootContext"), fe = U(de);
|
|
157
|
+
function $(e = !1) {
|
|
158
|
+
let t = Z(fe);
|
|
159
|
+
if (t === de) {
|
|
160
|
+
if (e) return;
|
|
161
|
+
throw Error("Base UI: PopoverRootContext is missing. Popover parts must be placed within <Popover.Root>.");
|
|
162
|
+
}
|
|
163
|
+
return t;
|
|
164
|
+
}
|
|
165
|
+
//#endregion
|
|
166
|
+
//#region src/popover/root/PopoverRoot.tsx
|
|
167
|
+
function pe(e) {
|
|
168
|
+
let t = h(), r = y(), i = t ?? new v(), a = q(), s = q(), c = X(() => e.open !== void 0), l = X(() => e.triggerId !== void 0), u = G(() => e.modal ?? !1), d = new ue({
|
|
169
|
+
controlledOpen: () => c ? e.open : void 0,
|
|
170
|
+
controlledTriggerId: () => l ? e.triggerId : void 0,
|
|
171
|
+
floatingId: s,
|
|
172
|
+
nested: r !== null,
|
|
173
|
+
nodeId: a,
|
|
174
|
+
onOpenChange: () => e.onOpenChange,
|
|
175
|
+
onOpenChangeComplete: () => e.onOpenChangeComplete
|
|
176
|
+
});
|
|
177
|
+
d.update({
|
|
178
|
+
open: c ? !!X(() => e.open) : !!X(() => e.defaultOpen),
|
|
179
|
+
activeTriggerId: X(() => e.defaultTriggerId ?? null)
|
|
180
|
+
});
|
|
181
|
+
let f = d.access((e) => e.payload), p = g({
|
|
182
|
+
tree: i,
|
|
183
|
+
id: a,
|
|
184
|
+
parentId: r,
|
|
185
|
+
context: () => d.context.floatingRoot
|
|
186
|
+
}), [m, S] = K(), [w, T] = K(), [E, D] = K(null, { ownedWrite: !0 }), [ee, te] = K(null, { ownedWrite: !0 }), [O, k] = K(null, { ownedWrite: !0 }), [A, j] = K(null, { ownedWrite: !0 }), M = x(d, () => d.track().popupElement, { onUnmount: () => d.resetAfterUnmount() }), N = {
|
|
187
|
+
store: d,
|
|
188
|
+
tree: i,
|
|
189
|
+
modal: u,
|
|
190
|
+
titleId: m,
|
|
191
|
+
setTitleId: S,
|
|
192
|
+
descriptionId: w,
|
|
193
|
+
setDescriptionId: T,
|
|
194
|
+
backdropElement: E,
|
|
195
|
+
setBackdropElement: D,
|
|
196
|
+
internalBackdropElement: ee,
|
|
197
|
+
setInternalBackdropElement: te,
|
|
198
|
+
beforeContentGuard: O,
|
|
199
|
+
setBeforeContentGuard: k,
|
|
200
|
+
afterTriggerGuard: A,
|
|
201
|
+
setAfterTriggerGuard: j,
|
|
202
|
+
presence: M
|
|
203
|
+
};
|
|
204
|
+
d.context.floatingRoot.context.data.insideElements = () => [E(), ee()], d.configureTriggerUnmount({ closeOnActiveTriggerUnmount: !1 }), ne(() => e.handle, d);
|
|
205
|
+
let P = C({
|
|
206
|
+
context: d.context.floatingRoot,
|
|
207
|
+
tree: () => i,
|
|
208
|
+
outsidePressEvent: () => ({
|
|
209
|
+
mouse: u() === "trap-focus" ? "sloppy" : "intentional",
|
|
210
|
+
touch: "sloppy"
|
|
211
|
+
})
|
|
212
|
+
});
|
|
213
|
+
d.setInteractionProps({
|
|
214
|
+
activeTriggerProps: { onKeyDown: P.onKeyDown },
|
|
215
|
+
inactiveTriggerProps: { onKeyDown: P.onKeyDown },
|
|
216
|
+
popupProps: { onKeyDown: P.onKeyDown }
|
|
217
|
+
}), W(() => ({
|
|
218
|
+
open: d.open(),
|
|
219
|
+
activeTriggerId: d.activeTriggerId()
|
|
220
|
+
}), () => X(() => d.reconcileTriggers()));
|
|
221
|
+
let re = {
|
|
222
|
+
unmount: M.forceUnmount,
|
|
223
|
+
close() {
|
|
224
|
+
d.setOpen(!1, o(n));
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
W(() => e.actionsRef, (e) => {
|
|
228
|
+
e?.(re);
|
|
229
|
+
});
|
|
230
|
+
function F() {
|
|
231
|
+
let t = G(() => e.children), n = X(t), r = n;
|
|
232
|
+
return typeof n == "function" && (r = n.name === "bound read" && Object.prototype.hasOwnProperty.call(n, le) ? B(() => t()) : X(() => n({ payload: f }))), r;
|
|
233
|
+
}
|
|
234
|
+
return Y(() => {
|
|
235
|
+
d.dispose(), d.clearInteractionProps(), delete d.context.floatingRoot.context.data.insideElements;
|
|
236
|
+
}), z(fe, {
|
|
237
|
+
value: N,
|
|
238
|
+
get children() {
|
|
239
|
+
return z(_, {
|
|
240
|
+
value: i,
|
|
241
|
+
get children() {
|
|
242
|
+
return z(b, {
|
|
243
|
+
get value() {
|
|
244
|
+
return p.id ?? null;
|
|
245
|
+
},
|
|
246
|
+
get children() {
|
|
247
|
+
return z(F, {});
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
//#endregion
|
|
256
|
+
//#region src/popover/trigger/PopoverTrigger.tsx
|
|
257
|
+
function me(e) {
|
|
258
|
+
let n = $(!0), r = e;
|
|
259
|
+
if (!n && !X(() => r.handle)) throw Error("Base UI: <Popover.Trigger> must be either used within a <Popover.Root> component or provided with a handle.");
|
|
260
|
+
let o = e, c = `base-ui-${q()}`, l = G(() => r.id || c), u = G(() => r.disabled ?? !1), d = G(() => r.nativeButton ?? !0), f = G(() => r.openOnHover ?? !1), p = G(() => r.delay ?? 300), m = G(() => r.closeDelay ?? 0), [h, g] = K(null, { ownedWrite: !0 }), _ = M(() => r.handle), v = G(() => _() ?? n?.store), y = G(() => {
|
|
261
|
+
let e = v();
|
|
262
|
+
return e instanceof ue ? e : void 0;
|
|
263
|
+
}), b = G(() => {
|
|
264
|
+
let e = v();
|
|
265
|
+
return !!(e?.open() && e.activeTriggerId() === l());
|
|
266
|
+
}), x = G(() => ({
|
|
267
|
+
disabled: u(),
|
|
268
|
+
open: b()
|
|
269
|
+
})), C = G(() => i(e.class, x())), w = G(() => a(e.style, x())), T = G(() => t(x(), v()?.openChangeReason() === "trigger-press" ? te : ee)), E = J(o, "as", "class", "closeDelay", "delay", "disabled", "handle", "id", "nativeButton", "onClick", "onKeyDown", "onKeyUp", "onMouseDown", "onPointerDown", "openOnHover", "payload", "ref", "style"), D, O = "", k = "";
|
|
270
|
+
S(v, l, h, () => ({ payload: r.payload }));
|
|
271
|
+
let A = G(() => ({
|
|
272
|
+
payload: r.payload,
|
|
273
|
+
disabled: u(),
|
|
274
|
+
openOnHover: f(),
|
|
275
|
+
closeDelay: m()
|
|
276
|
+
}));
|
|
277
|
+
W(() => {
|
|
278
|
+
let e = v();
|
|
279
|
+
return e ? {
|
|
280
|
+
store: e,
|
|
281
|
+
id: l(),
|
|
282
|
+
data: A(),
|
|
283
|
+
activeId: e.activeTriggerId(),
|
|
284
|
+
open: e.open()
|
|
285
|
+
} : void 0;
|
|
286
|
+
}, (e) => {
|
|
287
|
+
if (e) return e.store.setTriggerData(e.id, e.data), e.store.syncTriggerData(e.activeId, e.open), () => e.store.removeTriggerData(e.id);
|
|
288
|
+
});
|
|
289
|
+
function j(e) {
|
|
290
|
+
O = e.pointerType, D?.onPointerDown(e);
|
|
291
|
+
}
|
|
292
|
+
function N(e) {
|
|
293
|
+
D?.onMouseDown(e);
|
|
294
|
+
}
|
|
295
|
+
function ne() {
|
|
296
|
+
k = O, O = "";
|
|
297
|
+
}
|
|
298
|
+
function P(e) {
|
|
299
|
+
let t = y();
|
|
300
|
+
t && (t.open() || t.setOpenMethod(k || (e.detail === 0 ? "keyboard" : ge() ? "touch" : "mouse")), D?.onClick(e));
|
|
301
|
+
}
|
|
302
|
+
function se(e) {
|
|
303
|
+
O = "keyboard";
|
|
304
|
+
let t = v(), n = t?.state.popupElement, r = t ? t.state[t.activeTriggerId() === l() ? "activeTriggerProps" : "inactiveTriggerProps"].onKeyDown : void 0, i = e.currentTarget;
|
|
305
|
+
n && i && n.ownerDocument !== i.ownerDocument && typeof r == "function" && r(e);
|
|
306
|
+
}
|
|
307
|
+
let L = s(() => X(() => u() ? I : void 0), () => ne, () => r.onClick, () => P), ce = s(() => X(() => u() ? I : void 0), () => r.onPointerDown, () => j), le = s(() => X(() => u() ? F : void 0), () => r.onMouseDown, () => N), U = s(() => X(() => u() ? ie : void 0), () => r.onKeyDown, () => se, () => X(() => d() ? void 0 : oe)), Y = s(() => X(() => u() ? F : void 0), () => r.onKeyUp, () => X(() => d() ? void 0 : ae));
|
|
308
|
+
function Z() {
|
|
309
|
+
return z(H, {
|
|
310
|
+
keyed: !0,
|
|
311
|
+
get when() {
|
|
312
|
+
return y();
|
|
313
|
+
},
|
|
314
|
+
children: (e) => z(he, {
|
|
315
|
+
store: e,
|
|
316
|
+
element: h,
|
|
317
|
+
id: l,
|
|
318
|
+
disabled: u,
|
|
319
|
+
openOnHover: f,
|
|
320
|
+
delay: p,
|
|
321
|
+
closeDelay: m,
|
|
322
|
+
tree: () => n?.tree,
|
|
323
|
+
setClickHandlers: (e) => D = e
|
|
324
|
+
})
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
let Q = z(R, V({
|
|
328
|
+
get component() {
|
|
329
|
+
return e.as ?? "button";
|
|
330
|
+
},
|
|
331
|
+
ref: [((e) => g(e)), r.ref],
|
|
332
|
+
get id() {
|
|
333
|
+
return l();
|
|
334
|
+
},
|
|
335
|
+
get type() {
|
|
336
|
+
return d() ? "button" : void 0;
|
|
337
|
+
},
|
|
338
|
+
get role() {
|
|
339
|
+
return d() ? void 0 : "button";
|
|
340
|
+
},
|
|
341
|
+
get tabIndex() {
|
|
342
|
+
return !d() && u() ? -1 : 0;
|
|
343
|
+
},
|
|
344
|
+
get disabled() {
|
|
345
|
+
return (B(() => !!d())() ? u() : d()) || void 0;
|
|
346
|
+
},
|
|
347
|
+
get "aria-disabled"() {
|
|
348
|
+
return !d() && u() ? "true" : void 0;
|
|
349
|
+
},
|
|
350
|
+
"aria-haspopup": "dialog",
|
|
351
|
+
get "aria-expanded"() {
|
|
352
|
+
return b() ? "true" : "false";
|
|
353
|
+
},
|
|
354
|
+
get "aria-controls"() {
|
|
355
|
+
return v()?.triggerPopupId(l());
|
|
356
|
+
},
|
|
357
|
+
"data-base-ui-click-trigger": "",
|
|
358
|
+
get "data-trigger-disabled"() {
|
|
359
|
+
return u() ? "" : void 0;
|
|
360
|
+
},
|
|
361
|
+
get class() {
|
|
362
|
+
return C();
|
|
363
|
+
},
|
|
364
|
+
get style() {
|
|
365
|
+
return w();
|
|
366
|
+
},
|
|
367
|
+
onClick: L,
|
|
368
|
+
onKeyDown: U,
|
|
369
|
+
onKeyUp: Y,
|
|
370
|
+
onMouseDown: le,
|
|
371
|
+
onPointerDown: ce
|
|
372
|
+
}, T, E));
|
|
373
|
+
return [z(Z, {}), z(H, {
|
|
374
|
+
get when() {
|
|
375
|
+
return y();
|
|
376
|
+
},
|
|
377
|
+
fallback: Q,
|
|
378
|
+
children: (e) => z(re, {
|
|
379
|
+
get context() {
|
|
380
|
+
return e().context.floatingRoot;
|
|
381
|
+
},
|
|
382
|
+
get enabled() {
|
|
383
|
+
return B(() => !!e().isMountedByTrigger(l()))() ? !e().focusManagerModal() : e().isMountedByTrigger(l());
|
|
384
|
+
},
|
|
385
|
+
trigger: h,
|
|
386
|
+
positioner: () => e().track().positionerElement,
|
|
387
|
+
beforeContentGuard: () => n?.beforeContentGuard() ?? null,
|
|
388
|
+
afterGuardRef: (e) => n?.setAfterTriggerGuard(e),
|
|
389
|
+
children: Q
|
|
390
|
+
})
|
|
391
|
+
})];
|
|
392
|
+
}
|
|
393
|
+
function he(e) {
|
|
394
|
+
let t = X(() => e.store), n = X(() => e.setClickHandlers), r = X(() => e.element), i = X(() => e.tree), a = X(() => e.delay);
|
|
395
|
+
return n(m({
|
|
396
|
+
context: t.context.floatingRoot,
|
|
397
|
+
enabled: () => !e.disabled(),
|
|
398
|
+
stickIfOpen: () => t.stickIfOpen()
|
|
399
|
+
})), Y(() => n(void 0)), E({
|
|
400
|
+
context: t.context.floatingRoot,
|
|
401
|
+
reference: r,
|
|
402
|
+
floating: () => t.floatingElement(),
|
|
403
|
+
tree: i,
|
|
404
|
+
enabled: () => !e.disabled() && e.openOnHover() && (t.openMethod() !== "touch" || t.openChangeReason() !== "trigger-press"),
|
|
405
|
+
floatingEnabled: () => !1,
|
|
406
|
+
delay: () => ({ close: e.closeDelay() }),
|
|
407
|
+
restMs: a,
|
|
408
|
+
restOnly: () => !0,
|
|
409
|
+
handleClose: () => D(),
|
|
410
|
+
mouseOnly: () => !0
|
|
411
|
+
}), null;
|
|
412
|
+
}
|
|
413
|
+
function ge() {
|
|
414
|
+
if (typeof navigator > "u") return !1;
|
|
415
|
+
let e = navigator.platform.toLowerCase();
|
|
416
|
+
return /^i(os$|p)/.test(e) || e === "macintel" && navigator.maxTouchPoints > 1;
|
|
417
|
+
}
|
|
418
|
+
//#endregion
|
|
419
|
+
//#region src/popover/portal/PopoverPortalContext.ts
|
|
420
|
+
var _e = Symbol("PopoverPortalContext"), ve = U(_e);
|
|
421
|
+
function ye() {
|
|
422
|
+
let e = Z(ve);
|
|
423
|
+
if (e === _e) throw Error("Base UI: <Popover.Portal> is missing.");
|
|
424
|
+
return e;
|
|
425
|
+
}
|
|
426
|
+
//#endregion
|
|
427
|
+
//#region src/popover/portal/PopoverPortal.tsx
|
|
428
|
+
function be(e) {
|
|
429
|
+
let t = $(), n = e, r = e, o = G(() => n.keepMounted ?? !1), s = G(() => t.presence.mounted() || o()), c = {}, l = G(() => i(e.class, c)), u = G(() => a(e.style, c)), d = J(r, "as", "class", "container", "keepMounted", "ref", "style"), f = { keepMounted: o };
|
|
430
|
+
return z(H, {
|
|
431
|
+
get when() {
|
|
432
|
+
return s();
|
|
433
|
+
},
|
|
434
|
+
get children() {
|
|
435
|
+
return z(ve, {
|
|
436
|
+
value: f,
|
|
437
|
+
get children() {
|
|
438
|
+
return z(k, V({
|
|
439
|
+
get as() {
|
|
440
|
+
return e.as;
|
|
441
|
+
},
|
|
442
|
+
get container() {
|
|
443
|
+
return n.container;
|
|
444
|
+
},
|
|
445
|
+
ref: (e) => {
|
|
446
|
+
n.ref && se(n.ref, e);
|
|
447
|
+
},
|
|
448
|
+
get class() {
|
|
449
|
+
return l();
|
|
450
|
+
},
|
|
451
|
+
get style() {
|
|
452
|
+
return u();
|
|
453
|
+
}
|
|
454
|
+
}, d, { get children() {
|
|
455
|
+
return e.children;
|
|
456
|
+
} }));
|
|
457
|
+
}
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
});
|
|
461
|
+
}
|
|
462
|
+
//#endregion
|
|
463
|
+
//#region src/popover/utils/mergePopoverStyles.ts
|
|
464
|
+
function xe(e, t) {
|
|
465
|
+
if (typeof t == "string") {
|
|
466
|
+
let n = Object.entries(e).filter((e) => e[1] != null).map(([e, t]) => `${e}:${String(t)}`).join(";");
|
|
467
|
+
return n ? `${n};${t}` : t;
|
|
468
|
+
}
|
|
469
|
+
return {
|
|
470
|
+
...e,
|
|
471
|
+
...t || void 0
|
|
472
|
+
};
|
|
473
|
+
}
|
|
474
|
+
//#endregion
|
|
475
|
+
//#region src/popover/utils/stateAttributesMapping.ts
|
|
476
|
+
var Se = O, Ce = A, we = { activationDirection: (e) => e ? { "data-activation-direction": e } : null }, Te = Symbol("PopoverPositionerContext"), Ee = U(Te);
|
|
477
|
+
function De() {
|
|
478
|
+
let e = Z(Ee);
|
|
479
|
+
if (e === Te) throw Error("Base UI: <Popover.Positioner> is missing.");
|
|
480
|
+
return e;
|
|
481
|
+
}
|
|
482
|
+
//#endregion
|
|
483
|
+
//#region src/popover/positioner/PopoverPositioner.tsx
|
|
484
|
+
function Oe(e) {
|
|
485
|
+
ye();
|
|
486
|
+
let n = $(), r = L(), o = e, s = e, [l, u] = K(null, { ownedWrite: !0 }), m = G(() => ke(o.anchor) ?? n.store.context.floatingRoot.referenceElement()), h = d({
|
|
487
|
+
reference: m,
|
|
488
|
+
floating: l,
|
|
489
|
+
mounted: n.presence.mounted,
|
|
490
|
+
direction: r,
|
|
491
|
+
positionMethod: () => o.positionMethod ?? "absolute",
|
|
492
|
+
side: () => o.side ?? "bottom",
|
|
493
|
+
sideOffset: () => o.sideOffset ?? 0,
|
|
494
|
+
align: () => o.align ?? "center",
|
|
495
|
+
alignOffset: () => o.alignOffset ?? 0,
|
|
496
|
+
collisionBoundary: () => o.collisionBoundary ?? "clipping-ancestors",
|
|
497
|
+
collisionPadding: () => o.collisionPadding ?? 5,
|
|
498
|
+
arrowPadding: () => o.arrowPadding ?? 5,
|
|
499
|
+
sticky: () => o.sticky ?? !1,
|
|
500
|
+
disableAnchorTracking: () => o.disableAnchorTracking ?? !1,
|
|
501
|
+
collisionAvoidance: () => o.collisionAvoidance ?? { fallbackAxisSide: "end" },
|
|
502
|
+
adaptiveOriginMiddleware: () => n.store.track().adaptiveOriginMiddleware
|
|
503
|
+
}), g = T(() => n.store.open(), () => h.state().isPositioned), _ = G(() => ({
|
|
504
|
+
open: n.store.open(),
|
|
505
|
+
side: h.renderedSide(),
|
|
506
|
+
align: h.renderedAlign(),
|
|
507
|
+
anchorHidden: h.anchorHidden(),
|
|
508
|
+
instant: n.store.instantType() ?? (g() ? "initial" : void 0)
|
|
509
|
+
})), v = G(() => i(e.class, _())), y = G(() => xe({
|
|
510
|
+
...h.styles(),
|
|
511
|
+
"pointer-events": n.store.open() ? void 0 : "none"
|
|
512
|
+
}, a(e.style, _()))), b = G(() => t(_(), Se)), x = J(s, "align", "alignOffset", "anchor", "arrowPadding", "as", "class", "collisionAvoidance", "collisionBoundary", "collisionPadding", "disableAnchorTracking", "positionMethod", "ref", "side", "sideOffset", "sticky", "style"), S = G(() => n.modal() === !0 && n.store.openChangeReason() !== "trigger-hover"), C = null, w;
|
|
513
|
+
p({
|
|
514
|
+
enabled: () => n.store.open() && S(),
|
|
515
|
+
touchOpen: () => n.store.openMethod() === "touch",
|
|
516
|
+
positioner: l,
|
|
517
|
+
reference: () => n.store.track().activeTriggerElement
|
|
518
|
+
}), W(() => h.state().placement, (e) => {
|
|
519
|
+
n.store.context.floatingRoot.context.data.placement = e;
|
|
520
|
+
}), W(() => ({
|
|
521
|
+
trigger: n.store.track().activeTriggerElement,
|
|
522
|
+
positioner: l()
|
|
523
|
+
}), ({ trigger: e, positioner: t }) => {
|
|
524
|
+
let r = C;
|
|
525
|
+
if (e && (C = e), !r || !e || r === e || !t) return;
|
|
526
|
+
n.store.setInstantType(void 0), w?.abort();
|
|
527
|
+
let i = new AbortController();
|
|
528
|
+
return w = i, c(t, () => n.store.setInstantType("trigger-change"), i.signal), () => i.abort();
|
|
529
|
+
}), Y(() => {
|
|
530
|
+
w?.abort(), delete n.store.context.floatingRoot.context.data.placement, n.store.state.positionerElement === X(l) && n.store.setPositionerElement(null);
|
|
531
|
+
});
|
|
532
|
+
function E() {
|
|
533
|
+
let e = null;
|
|
534
|
+
return Y(() => {
|
|
535
|
+
n.internalBackdropElement() === e && n.setInternalBackdropElement(null);
|
|
536
|
+
}), z(f, {
|
|
537
|
+
ref: (t) => {
|
|
538
|
+
e = t, n.setInternalBackdropElement(t);
|
|
539
|
+
},
|
|
540
|
+
get cutout() {
|
|
541
|
+
return n.store.track().activeTriggerElement;
|
|
542
|
+
},
|
|
543
|
+
get open() {
|
|
544
|
+
return n.store.open();
|
|
545
|
+
}
|
|
546
|
+
});
|
|
547
|
+
}
|
|
548
|
+
return z(Ee, {
|
|
549
|
+
value: h,
|
|
550
|
+
get children() {
|
|
551
|
+
return [z(H, {
|
|
552
|
+
get when() {
|
|
553
|
+
return B(() => !!n.presence.mounted())() ? S() : n.presence.mounted();
|
|
554
|
+
},
|
|
555
|
+
get children() {
|
|
556
|
+
return z(E, {});
|
|
557
|
+
}
|
|
558
|
+
}), z(R, V({
|
|
559
|
+
get component() {
|
|
560
|
+
return e.as ?? "div";
|
|
561
|
+
},
|
|
562
|
+
ref: [((e) => {
|
|
563
|
+
u(e), n.store.setPositionerElement(e);
|
|
564
|
+
}), o.ref],
|
|
565
|
+
role: "presentation",
|
|
566
|
+
get hidden() {
|
|
567
|
+
return !n.presence.mounted();
|
|
568
|
+
},
|
|
569
|
+
get class() {
|
|
570
|
+
return v();
|
|
571
|
+
},
|
|
572
|
+
get style() {
|
|
573
|
+
return y();
|
|
574
|
+
}
|
|
575
|
+
}, b, x))];
|
|
576
|
+
}
|
|
577
|
+
});
|
|
578
|
+
}
|
|
579
|
+
function ke(e) {
|
|
580
|
+
return typeof e == "function" ? e() : e && "current" in e ? e.current : e;
|
|
581
|
+
}
|
|
582
|
+
//#endregion
|
|
583
|
+
//#region src/popover/utils/ClosePartContext.ts
|
|
584
|
+
var Ae = Symbol("PopoverClosePartContext"), je = U(Ae);
|
|
585
|
+
function Me() {
|
|
586
|
+
let [e, t] = K(0, { ownedWrite: !0 });
|
|
587
|
+
return {
|
|
588
|
+
hasClosePart: () => e() > 0,
|
|
589
|
+
register() {
|
|
590
|
+
t((e) => e + 1);
|
|
591
|
+
let e = !0;
|
|
592
|
+
return () => {
|
|
593
|
+
e && (e = !1, t((e) => Math.max(0, e - 1)));
|
|
594
|
+
};
|
|
595
|
+
}
|
|
596
|
+
};
|
|
597
|
+
}
|
|
598
|
+
function Ne() {
|
|
599
|
+
let e = Z(je);
|
|
600
|
+
if (e === Ae) return;
|
|
601
|
+
let t = e.register();
|
|
602
|
+
Y(t);
|
|
603
|
+
}
|
|
604
|
+
//#endregion
|
|
605
|
+
//#region src/popover/popup/PopoverPopup.tsx
|
|
606
|
+
var Pe = /* @__PURE__ */ new Set([
|
|
607
|
+
"ArrowUp",
|
|
608
|
+
"ArrowDown",
|
|
609
|
+
"ArrowLeft",
|
|
610
|
+
"ArrowRight",
|
|
611
|
+
"Home",
|
|
612
|
+
"End"
|
|
613
|
+
]);
|
|
614
|
+
function Fe(e) {
|
|
615
|
+
let n = $(), r = De(), o = ce(!0) !== void 0, c = Me(), u = e, d = e, f = G(() => ({
|
|
616
|
+
open: n.store.open(),
|
|
617
|
+
side: r.renderedSide(),
|
|
618
|
+
align: r.renderedAlign(),
|
|
619
|
+
transitionStatus: n.store.track().transitionStatus,
|
|
620
|
+
instant: n.store.instantType()
|
|
621
|
+
})), p = G(() => i(e.class, f())), m = G(() => a(e.style, f())), h = G(() => t(f(), Ce)), g = G(() => u.id ?? n.store.context.floatingId), _ = G(() => n.modal() !== !1 && c.hasClosePart()), v = G(() => u.initialFocus ?? ((e) => e !== "touch" || n.store.state.popupElement)), y = J(d, "as", "class", "finalFocus", "id", "initialFocus", "onKeyDown", "ref", "style"), b = s(() => u.onKeyDown, () => (e) => {
|
|
622
|
+
let t = n.store.state.popupProps.onKeyDown;
|
|
623
|
+
typeof t == "function" && t(e);
|
|
624
|
+
}, () => (e) => {
|
|
625
|
+
o && Pe.has(e.key) && e.stopPropagation();
|
|
626
|
+
}), x = null;
|
|
627
|
+
E({
|
|
628
|
+
context: n.store.context.floatingRoot,
|
|
629
|
+
reference: () => n.store.track().activeTriggerElement,
|
|
630
|
+
floating: () => n.store.track().positionerElement,
|
|
631
|
+
tree: () => n.tree,
|
|
632
|
+
enabled: () => !1,
|
|
633
|
+
floatingEnabled: () => n.store.openOnHover() && !n.store.disabled(),
|
|
634
|
+
delay: () => ({ close: n.store.closeDelay() }),
|
|
635
|
+
handleClose: () => D(),
|
|
636
|
+
mouseOnly: () => !0
|
|
637
|
+
}), W(() => g(), (e) => n.store.setPopupId(e)), W(() => _(), (e) => n.store.setFocusManagerModal(e)), Y(() => {
|
|
638
|
+
n.store.setFocusManagerModal(!1), n.store.state.popupElement === x && n.store.setPopupElement(null);
|
|
639
|
+
});
|
|
640
|
+
function S() {
|
|
641
|
+
return z(R, V({
|
|
642
|
+
get component() {
|
|
643
|
+
return e.as ?? "div";
|
|
644
|
+
},
|
|
645
|
+
ref: [((e) => {
|
|
646
|
+
x = e, n.store.setPopupElement(e);
|
|
647
|
+
}), u.ref],
|
|
648
|
+
get id() {
|
|
649
|
+
return g();
|
|
650
|
+
},
|
|
651
|
+
role: "dialog",
|
|
652
|
+
tabIndex: -1,
|
|
653
|
+
"data-base-ui-focusable": "",
|
|
654
|
+
get "aria-labelledby"() {
|
|
655
|
+
return n.titleId();
|
|
656
|
+
},
|
|
657
|
+
get "aria-describedby"() {
|
|
658
|
+
return n.descriptionId();
|
|
659
|
+
},
|
|
660
|
+
get class() {
|
|
661
|
+
return p();
|
|
662
|
+
},
|
|
663
|
+
get style() {
|
|
664
|
+
return m();
|
|
665
|
+
},
|
|
666
|
+
onKeyDown: b
|
|
667
|
+
}, h, y));
|
|
668
|
+
}
|
|
669
|
+
return z(j, {
|
|
670
|
+
get context() {
|
|
671
|
+
return n.store.context.floatingRoot;
|
|
672
|
+
},
|
|
673
|
+
get tree() {
|
|
674
|
+
return n.tree;
|
|
675
|
+
},
|
|
676
|
+
get disabled() {
|
|
677
|
+
return !n.presence.mounted() || n.store.openChangeReason() === "trigger-hover";
|
|
678
|
+
},
|
|
679
|
+
get initialFocus() {
|
|
680
|
+
return v();
|
|
681
|
+
},
|
|
682
|
+
get returnFocus() {
|
|
683
|
+
return u.finalFocus;
|
|
684
|
+
},
|
|
685
|
+
get modal() {
|
|
686
|
+
return _();
|
|
687
|
+
},
|
|
688
|
+
restoreFocus: "popup",
|
|
689
|
+
get openInteractionType() {
|
|
690
|
+
return n.store.openMethod();
|
|
691
|
+
},
|
|
692
|
+
get previousFocusableElement() {
|
|
693
|
+
return B(() => !!l(n.store.track().activeTriggerElement))() ? n.store.track().activeTriggerElement : null;
|
|
694
|
+
},
|
|
695
|
+
get nextFocusableElement() {
|
|
696
|
+
return n.afterTriggerGuard;
|
|
697
|
+
},
|
|
698
|
+
get beforeContentGuardRef() {
|
|
699
|
+
return n.setBeforeContentGuard;
|
|
700
|
+
},
|
|
701
|
+
get children() {
|
|
702
|
+
return z(je, {
|
|
703
|
+
value: c,
|
|
704
|
+
get children() {
|
|
705
|
+
return z(S, {});
|
|
706
|
+
}
|
|
707
|
+
});
|
|
708
|
+
}
|
|
709
|
+
});
|
|
710
|
+
}
|
|
711
|
+
//#endregion
|
|
712
|
+
//#region src/popover/arrow/PopoverArrow.tsx
|
|
713
|
+
function Ie(e) {
|
|
714
|
+
let n = $(), r = De(), o = e, s = e, c = G(() => ({
|
|
715
|
+
open: n.store.open(),
|
|
716
|
+
side: r.renderedSide(),
|
|
717
|
+
align: r.renderedAlign(),
|
|
718
|
+
uncentered: r.arrowUncentered()
|
|
719
|
+
})), l = G(() => i(e.class, c())), u = G(() => xe(r.arrowStyles(), a(e.style, c()))), d = G(() => t(c(), O)), f = J(s, "as", "class", "ref", "style"), p = null;
|
|
720
|
+
return Y(() => {
|
|
721
|
+
p && r.setArrowElement(null);
|
|
722
|
+
}), z(R, V({
|
|
723
|
+
get component() {
|
|
724
|
+
return e.as ?? "div";
|
|
725
|
+
},
|
|
726
|
+
ref: [((e) => {
|
|
727
|
+
p = e, r.setArrowElement(e);
|
|
728
|
+
}), o.ref],
|
|
729
|
+
"aria-hidden": "true",
|
|
730
|
+
get class() {
|
|
731
|
+
return l();
|
|
732
|
+
},
|
|
733
|
+
get style() {
|
|
734
|
+
return u();
|
|
735
|
+
}
|
|
736
|
+
}, d, f));
|
|
737
|
+
}
|
|
738
|
+
//#endregion
|
|
739
|
+
//#region src/popover/backdrop/PopoverBackdrop.tsx
|
|
740
|
+
function Le(e) {
|
|
741
|
+
let n = $(), r = e, o = e, s = G(() => ({
|
|
742
|
+
open: n.store.open(),
|
|
743
|
+
transitionStatus: n.store.track().transitionStatus
|
|
744
|
+
})), c = G(() => i(e.class, s())), l = G(() => xe({
|
|
745
|
+
"pointer-events": n.store.openChangeReason() === "trigger-hover" ? "none" : void 0,
|
|
746
|
+
"user-select": "none",
|
|
747
|
+
"-webkit-user-select": "none"
|
|
748
|
+
}, a(e.style, s()))), u = G(() => t(s(), Ce)), d = J(o, "as", "class", "ref", "style"), f = null;
|
|
749
|
+
return Y(() => {
|
|
750
|
+
n.backdropElement() === f && n.setBackdropElement(null);
|
|
751
|
+
}), z(R, V({
|
|
752
|
+
get component() {
|
|
753
|
+
return e.as ?? "div";
|
|
754
|
+
},
|
|
755
|
+
ref: [((e) => {
|
|
756
|
+
f = e, n.setBackdropElement(e);
|
|
757
|
+
}), r.ref],
|
|
758
|
+
role: "presentation",
|
|
759
|
+
get hidden() {
|
|
760
|
+
return !n.presence.mounted();
|
|
761
|
+
},
|
|
762
|
+
get class() {
|
|
763
|
+
return c();
|
|
764
|
+
},
|
|
765
|
+
get style() {
|
|
766
|
+
return l();
|
|
767
|
+
}
|
|
768
|
+
}, u, d));
|
|
769
|
+
}
|
|
770
|
+
//#endregion
|
|
771
|
+
//#region src/popover/title/PopoverTitle.tsx
|
|
772
|
+
function Re(e) {
|
|
773
|
+
let t = $(), n = e, r = e, o = `base-ui-${q()}`, s = G(() => n.id || o), c = {}, l = G(() => i(e.class, c)), u = G(() => a(e.style, c)), d = J(r, "as", "class", "id", "ref", "style");
|
|
774
|
+
return W(() => s(), (e) => (t.setTitleId(e), () => t.setTitleId((t) => t === e ? void 0 : t))), z(R, V({
|
|
775
|
+
get component() {
|
|
776
|
+
return e.as ?? "h2";
|
|
777
|
+
},
|
|
778
|
+
ref: [n.ref],
|
|
779
|
+
get id() {
|
|
780
|
+
return s();
|
|
781
|
+
},
|
|
782
|
+
get class() {
|
|
783
|
+
return l();
|
|
784
|
+
},
|
|
785
|
+
get style() {
|
|
786
|
+
return u();
|
|
787
|
+
}
|
|
788
|
+
}, d));
|
|
789
|
+
}
|
|
790
|
+
//#endregion
|
|
791
|
+
//#region src/popover/description/PopoverDescription.tsx
|
|
792
|
+
function ze(e) {
|
|
793
|
+
let t = $(), n = e, r = e, o = `base-ui-${q()}`, s = G(() => n.id || o), c = {}, l = G(() => i(e.class, c)), u = G(() => a(e.style, c)), d = J(r, "as", "class", "id", "ref", "style");
|
|
794
|
+
return W(() => s(), (e) => (t.setDescriptionId(e), () => t.setDescriptionId((t) => t === e ? void 0 : t))), z(R, V({
|
|
795
|
+
get component() {
|
|
796
|
+
return e.as ?? "p";
|
|
797
|
+
},
|
|
798
|
+
ref: [n.ref],
|
|
799
|
+
get id() {
|
|
800
|
+
return s();
|
|
801
|
+
},
|
|
802
|
+
get class() {
|
|
803
|
+
return l();
|
|
804
|
+
},
|
|
805
|
+
get style() {
|
|
806
|
+
return u();
|
|
807
|
+
}
|
|
808
|
+
}, d));
|
|
809
|
+
}
|
|
810
|
+
//#endregion
|
|
811
|
+
//#region src/popover/close/PopoverClose.tsx
|
|
812
|
+
function Be(e) {
|
|
813
|
+
let t = $();
|
|
814
|
+
Ne();
|
|
815
|
+
let n = e, c = e, l = G(() => n.disabled ?? !1), u = G(() => n.nativeButton ?? !0), d = {}, f = G(() => i(e.class, d)), p = G(() => a(e.style, d)), m = J(c, "as", "class", "disabled", "nativeButton", "onClick", "onKeyDown", "onKeyUp", "onMouseDown", "onPointerDown", "ref", "style");
|
|
816
|
+
function h(e) {
|
|
817
|
+
t.store.open() && t.store.setOpen(!1, o(r, e));
|
|
818
|
+
}
|
|
819
|
+
let g = s(() => X(() => l() ? I : void 0), () => n.onClick, () => h), _ = s(() => X(() => l() ? I : void 0), () => n.onPointerDown), v = s(() => X(() => l() ? F : void 0), () => n.onMouseDown), y = s(() => X(() => l() ? ie : void 0), () => n.onKeyDown, () => X(() => u() ? void 0 : oe)), b = s(() => X(() => l() ? F : void 0), () => n.onKeyUp, () => X(() => u() ? void 0 : ae));
|
|
820
|
+
return z(R, V({
|
|
821
|
+
get component() {
|
|
822
|
+
return e.as ?? "button";
|
|
823
|
+
},
|
|
824
|
+
ref: [n.ref],
|
|
825
|
+
get type() {
|
|
826
|
+
return u() ? "button" : void 0;
|
|
827
|
+
},
|
|
828
|
+
get role() {
|
|
829
|
+
return u() ? void 0 : "button";
|
|
830
|
+
},
|
|
831
|
+
get tabIndex() {
|
|
832
|
+
return !u() && l() ? -1 : 0;
|
|
833
|
+
},
|
|
834
|
+
get disabled() {
|
|
835
|
+
return (B(() => !!u())() ? l() : u()) || void 0;
|
|
836
|
+
},
|
|
837
|
+
get "aria-disabled"() {
|
|
838
|
+
return !u() && l() ? "true" : void 0;
|
|
839
|
+
},
|
|
840
|
+
get class() {
|
|
841
|
+
return f();
|
|
842
|
+
},
|
|
843
|
+
get style() {
|
|
844
|
+
return p();
|
|
845
|
+
},
|
|
846
|
+
onClick: g,
|
|
847
|
+
onKeyDown: y,
|
|
848
|
+
onKeyUp: b,
|
|
849
|
+
onMouseDown: v,
|
|
850
|
+
onPointerDown: _
|
|
851
|
+
}, m));
|
|
852
|
+
}
|
|
853
|
+
//#endregion
|
|
854
|
+
//#region src/popover/viewport/PopoverViewport.tsx
|
|
855
|
+
function Ve(e) {
|
|
856
|
+
let n = $(), r = De(), o = L(), s = e, c = e, [l, d] = K({
|
|
857
|
+
activationDirection: void 0,
|
|
858
|
+
transitioning: !1
|
|
859
|
+
}, { ownedWrite: !0 }), f = G(() => ({
|
|
860
|
+
...l(),
|
|
861
|
+
instant: n.store.instantType()
|
|
862
|
+
})), p = G(() => i(e.class, f())), m = G(() => a(e.style, f())), h = G(() => t(f(), we)), g = J(c, "as", "children", "class", "ref", "style");
|
|
863
|
+
return z(R, V({
|
|
864
|
+
get component() {
|
|
865
|
+
return e.as ?? "div";
|
|
866
|
+
},
|
|
867
|
+
ref: [s.ref],
|
|
868
|
+
get class() {
|
|
869
|
+
return p();
|
|
870
|
+
},
|
|
871
|
+
get style() {
|
|
872
|
+
return m();
|
|
873
|
+
}
|
|
874
|
+
}, h, g, { get children() {
|
|
875
|
+
return z(u, {
|
|
876
|
+
get store() {
|
|
877
|
+
return n.store;
|
|
878
|
+
},
|
|
879
|
+
get side() {
|
|
880
|
+
return r.renderedSide();
|
|
881
|
+
},
|
|
882
|
+
get direction() {
|
|
883
|
+
return o();
|
|
884
|
+
},
|
|
885
|
+
onStateChange: d,
|
|
886
|
+
get children() {
|
|
887
|
+
return e.children;
|
|
888
|
+
}
|
|
889
|
+
});
|
|
890
|
+
} }));
|
|
891
|
+
}
|
|
892
|
+
//#endregion
|
|
893
|
+
//#region src/popover/store/PopoverHandle.ts
|
|
894
|
+
var He = class extends P {
|
|
895
|
+
constructor() {
|
|
896
|
+
super("Popover", !0, new Q());
|
|
897
|
+
}
|
|
898
|
+
open(e) {
|
|
899
|
+
this.openByTrigger(e);
|
|
900
|
+
}
|
|
901
|
+
close() {
|
|
902
|
+
this.closePopup();
|
|
903
|
+
}
|
|
904
|
+
get isOpen() {
|
|
905
|
+
return this.attachedStore?.open() ?? !1;
|
|
906
|
+
}
|
|
907
|
+
};
|
|
908
|
+
function Ue() {
|
|
909
|
+
return new He();
|
|
910
|
+
}
|
|
911
|
+
//#endregion
|
|
912
|
+
//#region src/popover/index.parts.ts
|
|
913
|
+
var We = /* @__PURE__ */ e({
|
|
914
|
+
Arrow: () => Ie,
|
|
915
|
+
Backdrop: () => Le,
|
|
916
|
+
Close: () => Be,
|
|
917
|
+
Description: () => ze,
|
|
918
|
+
Handle: () => He,
|
|
919
|
+
Popup: () => Fe,
|
|
920
|
+
Portal: () => be,
|
|
921
|
+
Positioner: () => Oe,
|
|
922
|
+
Root: () => pe,
|
|
923
|
+
Title: () => Re,
|
|
924
|
+
Trigger: () => me,
|
|
925
|
+
Viewport: () => Ve,
|
|
926
|
+
createHandle: () => Ue
|
|
927
|
+
});
|
|
928
|
+
//#endregion
|
|
929
|
+
export { We as t };
|