solid-baseui 0.1.0-alpha.0 → 0.1.0-alpha.2
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/CHANGELOG.md +72 -0
- package/README.md +133 -15
- package/dist/lib/client/DialogHandle-DluOK_7u.js +521 -0
- package/dist/lib/client/DialogPopup-CfEb3F54.js +138 -0
- package/dist/lib/client/FieldControl-eDe-Jnp9.js +142 -0
- package/dist/lib/client/{FieldRootContext-izCEh80D.js → FieldRootContext-D3fuVjs3.js} +1 -1
- package/dist/lib/client/{FocusManager-grSdNHqW.js → FocusManager-q7z7PMV1.js} +94 -91
- package/dist/lib/client/{FormContext-BB05lWOI.js → FormContext-CwLBtm_d.js} +1 -0
- package/dist/lib/client/{InternalBackdrop-cSK13gaM.js → InternalBackdrop-B8_lfUvf.js} +1 -1
- package/dist/lib/client/{LabelableContext-DKsB0fIx.js → LabelableContext-CmQF-TX2.js} +3 -6
- package/dist/lib/client/MenuSubmenuTrigger-DMb5CwTF.js +1584 -0
- package/dist/lib/client/{PopupHandle-CcJG4NMy.js → PopupHandle-DyX5gY1e.js} +17 -11
- package/dist/lib/client/{PopupStore-DjB-wO88.js → PopupStore-BjRwcvbG.js} +138 -115
- package/dist/lib/client/PopupViewport-BanYHrD-.js +154 -0
- package/dist/lib/client/Separator-D5oJzlA3.js +27 -0
- package/dist/lib/client/TriggerFocusGuards-Fzspp3Y1.js +51 -0
- package/dist/lib/client/accordion/index.js +1 -1
- package/dist/lib/client/accordion-CA2DfX67.js +381 -0
- package/dist/lib/client/alert-dialog/index.js +1 -1
- package/dist/lib/client/{alert-dialog-BH_3ndio.js → alert-dialog-Bup88Dpx.js} +2 -2
- package/dist/lib/client/autocomplete/index.js +1 -1
- package/dist/lib/client/{autocomplete-Cob_FZEP.js → autocomplete-oyy_uRpU.js} +30 -25
- package/dist/lib/client/avatar/index.js +1 -1
- package/dist/lib/client/avatar-DNZ4fnBd.js +191 -0
- package/dist/lib/client/button/index.js +1 -1
- package/dist/lib/client/button-BJZYmCVv.js +88 -0
- package/dist/lib/client/checkbox/index.js +1 -1
- package/dist/lib/client/checkbox-group/index.js +1 -1
- package/dist/lib/client/checkbox-group-DGyrciZJ.js +135 -0
- package/dist/lib/client/checkbox-sQHYTbpB.js +425 -0
- package/dist/lib/client/collapsible/index.js +1 -1
- package/dist/lib/client/collapsible-BENbFFCc.js +230 -0
- package/dist/lib/client/combobox/index.js +2 -2
- package/dist/lib/client/combobox-BGH8QLXH.js +401 -0
- package/dist/lib/client/compositeNavigation-DCt1sQon.js +82 -0
- package/dist/lib/client/{constants-BYjBUIIi.js → constants-ByOMFJAe.js} +105 -101
- package/dist/lib/client/context-menu/index.js +1 -1
- package/dist/lib/client/context-menu-xQ1sBCET.js +220 -0
- package/dist/lib/client/{createAnchorPositioning-DcxDXUgB.js → createAnchorPositioning-DCXIApS1.js} +149 -146
- package/dist/lib/client/{createAnchoredPopupScrollLock-Cx0cbh1_.js → createAnchoredPopupScrollLock-BxKpJbCE.js} +2 -2
- package/dist/lib/client/{createClickInteraction-CTaIFBiV.js → createClickInteraction-BeBsTqtY.js} +1 -1
- package/dist/lib/client/{createCollapsiblePanel-DeDu0O2t.js → createCollapsiblePanel-BQ8r4RTi.js} +1 -1
- package/dist/lib/client/createFocusInteraction-DQPWkZe2.js +60 -0
- package/dist/lib/client/createLabelableId-DxJRwMUJ.js +14 -0
- package/dist/lib/client/{createPopupAutoResize-CGNiLhGq.js → createPopupAutoResize-CSNpMz5v.js} +4 -4
- package/dist/lib/client/{createTransitionStatus-B1L-whed.js → createTransitionStatus-BL_cPSEA.js} +12 -12
- package/dist/lib/client/dialog/index.js +1 -1
- package/dist/lib/client/{dialog-DkaQwIgP.js → dialog-C0EF0a5u.js} +2 -2
- package/dist/lib/client/{dom-BEAeQ9Eb.js → dom-lDdayFF_.js} +25 -15
- package/dist/lib/client/drawer/index.js +1 -1
- package/dist/lib/client/drawer-uKoNBwDU.js +1540 -0
- package/dist/lib/client/field/index.js +1 -1
- package/dist/lib/client/field-DIMrgpBW.js +483 -0
- package/dist/lib/client/fieldset/index.js +1 -1
- package/dist/lib/client/fieldset-Byqk3noT.js +70 -0
- package/dist/lib/client/form/index.js +1 -1
- package/dist/lib/client/form-Bqq8wSLY.js +109 -0
- package/dist/lib/client/index.js +44 -42
- package/dist/lib/client/input/index.js +1 -1
- package/dist/lib/client/{input-gb0ejxkm.js → input-YthuKwIE.js} +1 -1
- package/dist/lib/client/internals/composeEventHandlers.js +14 -8
- package/dist/lib/client/internals/field-root-context/index.js +2 -2
- package/dist/lib/client/internals/form-context/index.js +1 -1
- package/dist/lib/client/internals/labelable-provider/index.js +1 -1
- package/dist/lib/client/{mergeStyleValue-C4ITiiIV.js → isSolidAccessor-BH_FevwH.js} +8 -15
- package/dist/lib/client/menu/index.js +1 -1
- package/dist/lib/client/menu-4rNLN6aX.js +334 -0
- package/dist/lib/client/menubar/index.js +1 -1
- package/dist/lib/client/menubar-nFQGtNmY.js +163 -0
- package/dist/lib/client/mergeStyleValue-Dcd36yxZ.js +12 -0
- package/dist/lib/client/meter/index.js +1 -1
- package/dist/lib/client/meter-BvWdppcx.js +178 -0
- package/dist/lib/client/navigation-menu/index.js +1 -1
- package/dist/lib/client/navigation-menu-BbRyun3a.js +1070 -0
- package/dist/lib/client/number-field/index.js +1 -1
- package/dist/lib/client/number-field-hT_H0hVu.js +1043 -0
- package/dist/lib/client/otp-field/index.js +1 -1
- package/dist/lib/client/otp-field-lsy2iGID.js +584 -0
- package/dist/lib/client/popover/index.js +1 -1
- package/dist/lib/client/popover-Cmvmuf1L.js +940 -0
- package/dist/lib/client/popupStateMapping-nhukB8NK.js +371 -0
- package/dist/lib/client/preview-card/index.js +1 -1
- package/dist/lib/client/preview-card-Dtu8AnBN.js +632 -0
- package/dist/lib/client/progress/index.js +1 -1
- package/dist/lib/client/progress-AVKxvgpc.js +195 -0
- package/dist/lib/client/radio/index.js +1 -1
- package/dist/lib/client/radio-CeCU-Qqi.js +284 -0
- package/dist/lib/client/radio-group/index.js +1 -1
- package/dist/lib/client/radio-group-NbuJvjQe.js +195 -0
- package/dist/lib/client/runOnceAnimationsFinish-CFADb4CN.js +49 -0
- package/dist/lib/client/{safePolygon--bbKn0c8.js → safePolygon-DVAR5dQD.js} +74 -70
- package/dist/lib/client/scroll-area/index.js +1 -1
- package/dist/lib/client/scroll-area-DqbvoAd7.js +717 -0
- package/dist/lib/client/{scrollable-SRNYlhF7.js → scrollable-BVaDUXng.js} +12 -12
- package/dist/lib/client/select/index.js +1 -1
- package/dist/lib/client/select-Dad51Xbn.js +1934 -0
- package/dist/lib/client/separator/index.js +1 -1
- package/dist/lib/client/slider/index.js +1 -1
- package/dist/lib/client/slider-CLSKFq_M.js +927 -0
- package/dist/lib/client/switch/index.js +1 -1
- package/dist/lib/client/switch-Bzuu5EIg.js +306 -0
- package/dist/lib/client/tabs/index.js +1 -1
- package/dist/lib/client/tabs-DWiBDv8D.js +695 -0
- package/dist/lib/client/toast/index.js +1 -1
- package/dist/lib/client/toast-DmtPJW2k.js +1118 -0
- package/dist/lib/client/toggle/index.js +1 -1
- package/dist/lib/client/toggle-CAe-Z8Xn.js +142 -0
- package/dist/lib/client/toggle-group/index.js +1 -1
- package/dist/lib/client/toggle-group-BbQg5s-m.js +134 -0
- package/dist/lib/client/toolbar/index.js +1 -1
- package/dist/lib/client/toolbar-BXT_g-oX.js +504 -0
- package/dist/lib/client/tooltip/index.js +1 -1
- package/dist/lib/client/tooltip-h2r2_Xuo.js +850 -0
- package/dist/lib/client/use-render/index.js +2 -0
- package/dist/lib/client/useFilteredItems-BX0BEuSI.js +2301 -0
- package/dist/lib/client/useRender-CxZ8PI-g.js +12 -0
- package/dist/lib/server/{DialogHandle-ATZlm9RC.js → DialogHandle-BGIISmG7.js} +37 -46
- package/dist/lib/server/{DialogPopup-BebI-w5P.js → DialogPopup-C2ZDGf42.js} +12 -15
- package/dist/lib/server/{FieldControl-Y_kI7ARp.js → FieldControl-CDMMyvuj.js} +62 -26
- package/dist/lib/server/{FieldRootContext-IC-LWzVp.js → FieldRootContext-Bfpna6gA.js} +3 -3
- package/dist/lib/server/{FocusManager-BrbZVWME.js → FocusManager-D-xgblGs.js} +9 -5
- package/dist/lib/server/{FormContext-pvESt85v.js → FormContext-CYwo_ZnB.js} +1 -0
- package/dist/lib/server/{InternalBackdrop-C_iDPVR-.js → InternalBackdrop-D_2zAWnl.js} +1 -1
- package/dist/lib/server/{LabelableContext-DZP3rgAY.js → LabelableContext-BTeF0IWb.js} +4 -6
- package/dist/lib/server/{MenuSubmenuTrigger-DA4gsv6z.js → MenuSubmenuTrigger-BMQKlOvU.js} +177 -210
- package/dist/lib/server/{PopupHandle-DthPgNjy.js → PopupHandle-QNj4mED2.js} +14 -5
- package/dist/lib/server/{PopupStore-DEs3FAEe.js → PopupStore-evylvVnN.js} +42 -15
- package/dist/lib/server/{PopupViewport-3r_KTFwX.js → PopupViewport-BDttjORN.js} +38 -28
- package/dist/lib/server/{Separator-vhhYxWGr.js → Separator-DTvtnxzP.js} +4 -6
- package/dist/lib/server/TriggerFocusGuards-B9GNbLrL.js +61 -0
- package/dist/lib/server/accordion/index.js +39 -77
- package/dist/lib/server/alert-dialog/index.js +2 -2
- package/dist/lib/server/autocomplete/index.js +14 -5
- package/dist/lib/server/avatar/index.js +90 -51
- package/dist/lib/server/button/index.js +14 -15
- package/dist/lib/server/checkbox/index.js +37 -64
- package/dist/lib/server/checkbox-group/index.js +21 -11
- package/dist/lib/server/collapsible/index.js +42 -49
- package/dist/lib/server/combobox/index.js +79 -50
- package/dist/lib/server/{compositeNavigation-BRVT1C38.js → compositeNavigation-D5jKM4yk.js} +32 -1
- package/dist/lib/server/{constants-9H__9xbS.js → constants-ByqXubhO.js} +10 -5
- package/dist/lib/server/context-menu/index.js +14 -16
- package/dist/lib/server/{createAnchorPositioning-C-cVOPwz.js → createAnchorPositioning-DrQYe7RS.js} +12 -7
- package/dist/lib/server/{createAnchoredPopupScrollLock-DFuUrykR.js → createAnchoredPopupScrollLock-q6gnOSmv.js} +2 -2
- package/dist/lib/server/{createClickInteraction-BYsMgvup.js → createClickInteraction-D7oc1Vco.js} +1 -1
- package/dist/lib/server/{createCollapsiblePanel-DTyVJz0G.js → createCollapsiblePanel-B45kTe6v.js} +1 -1
- package/dist/lib/server/{createFocusInteraction-EIS0QOel.js → createFocusInteraction-DFKr4G7a.js} +22 -2
- package/dist/lib/server/createLabelableId-WMUKtY6s.js +18 -0
- package/dist/lib/server/{createPopupAutoResize-DO50jjNX.js → createPopupAutoResize-Cg0-lLf4.js} +2 -2
- package/dist/lib/server/{createTransitionStatus-BTlrerSS.js → createTransitionStatus-184v7j3-.js} +2 -2
- package/dist/lib/server/dialog/index.js +2 -2
- package/dist/lib/server/{dom-Crg_2R-j.js → dom-D8_aB1yy.js} +14 -1
- package/dist/lib/server/drawer/index.js +96 -100
- package/dist/lib/server/field/index.js +110 -98
- package/dist/lib/server/fieldset/index.js +13 -16
- package/dist/lib/server/form/index.js +18 -14
- package/dist/lib/server/index.js +5 -3
- package/dist/lib/server/input/index.js +1 -1
- package/dist/lib/server/internals/composeEventHandlers.js +15 -9
- package/dist/lib/server/internals/field-root-context/index.js +1 -1
- package/dist/lib/server/internals/form-context/index.js +1 -1
- package/dist/lib/server/internals/labelable-provider/index.js +1 -1
- package/dist/lib/server/{mergeStyleValue-Db8bRCM4.js → isSolidAccessor-CZpzAH5l.js} +7 -21
- package/dist/lib/server/menu/index.js +30 -29
- package/dist/lib/server/menubar/index.js +10 -35
- package/dist/lib/server/mergeStyleValue-DecVaoac.js +20 -0
- package/dist/lib/server/meter/index.js +20 -32
- package/dist/lib/server/navigation-menu/index.js +67 -138
- package/dist/lib/server/number-field/index.js +64 -62
- package/dist/lib/server/otp-field/index.js +19 -22
- package/dist/lib/server/popover/index.js +61 -77
- package/dist/lib/server/{popupStateMapping-nKoUwoke.js → popupStateMapping-VHqr6M4H.js} +19 -17
- package/dist/lib/server/preview-card/index.js +39 -50
- package/dist/lib/server/progress/index.js +21 -33
- package/dist/lib/server/radio/index.js +24 -45
- package/dist/lib/server/radio-group/index.js +12 -13
- package/dist/lib/server/{runOnceAnimationsFinish-DCHzXWZU.js → runOnceAnimationsFinish-CYq38H8J.js} +2 -1
- package/dist/lib/server/{safePolygon-CAm5RJGv.js → safePolygon-B8QtiIZ3.js} +6 -1
- package/dist/lib/server/scroll-area/index.js +40 -49
- package/dist/lib/server/{scrollable-CjsSxbGr.js → scrollable-C9Pgq8T5.js} +1 -1
- package/dist/lib/server/select/index.js +128 -213
- package/dist/lib/server/separator/index.js +1 -1
- package/dist/lib/server/slider/index.js +39 -52
- package/dist/lib/server/switch/index.js +22 -32
- package/dist/lib/server/tabs/index.js +197 -137
- package/dist/lib/server/toast/index.js +78 -95
- package/dist/lib/server/toggle/index.js +11 -13
- package/dist/lib/server/toggle-group/index.js +11 -9
- package/dist/lib/server/toolbar/index.js +76 -93
- package/dist/lib/server/tooltip/index.js +53 -57
- package/dist/lib/server/use-render/index.js +2 -0
- package/dist/lib/server/{useFilteredItems-DvuctLt3.js → useFilteredItems-BmhL0nf1.js} +335 -316
- package/dist/lib/server/useRender-CryVdCjs.js +16 -0
- package/dist/lib/types/accordion/header/AccordionHeader.d.ts +1 -1
- package/dist/lib/types/accordion/item/AccordionItem.d.ts +1 -1
- package/dist/lib/types/accordion/panel/AccordionPanel.d.ts +1 -1
- package/dist/lib/types/accordion/root/AccordionRoot.d.ts +2 -7
- package/dist/lib/types/accordion/trigger/AccordionTrigger.d.ts +7 -7
- package/dist/lib/types/alert-dialog/trigger/AlertDialogTrigger.d.ts +1 -2
- package/dist/lib/types/autocomplete/trigger/AutocompleteTrigger.d.ts +1 -0
- package/dist/lib/types/avatar/fallback/AvatarFallback.d.ts +2 -2
- package/dist/lib/types/avatar/image/AvatarImage.d.ts +9 -3
- package/dist/lib/types/avatar/image/createImageLoadingStatus.d.ts +3 -2
- package/dist/lib/types/avatar/root/AvatarRoot.d.ts +1 -1
- package/dist/lib/types/button/Button.d.ts +1 -1
- package/dist/lib/types/checkbox-group/CheckboxGroupContext.d.ts +4 -1
- package/dist/lib/types/collapsible/panel/CollapsiblePanel.d.ts +1 -1
- package/dist/lib/types/collapsible/root/CollapsibleRoot.d.ts +1 -1
- package/dist/lib/types/collapsible/trigger/CollapsibleTrigger.d.ts +1 -1
- package/dist/lib/types/combobox/chip/ComboboxChip.d.ts +2 -0
- package/dist/lib/types/combobox/index.d.ts +2 -0
- package/dist/lib/types/combobox/index.parts.d.ts +1 -0
- package/dist/lib/types/combobox/items/createItems.d.ts +42 -0
- package/dist/lib/types/combobox/root/AriaCombobox.d.ts +4 -0
- package/dist/lib/types/combobox/root/ComboboxRoot.d.ts +17 -8
- package/dist/lib/types/combobox/root/ComboboxRootContext.d.ts +2 -0
- package/dist/lib/types/combobox/store/ComboboxStore.d.ts +1 -0
- package/dist/lib/types/combobox/trigger/ComboboxTrigger.d.ts +1 -0
- package/dist/lib/types/combobox/utils/handleInputPress.d.ts +1 -1
- package/dist/lib/types/dialog/backdrop/DialogBackdrop.d.ts +1 -1
- package/dist/lib/types/dialog/description/DialogDescription.d.ts +1 -1
- package/dist/lib/types/dialog/title/DialogTitle.d.ts +1 -1
- package/dist/lib/types/dialog/viewport/DialogViewport.d.ts +1 -1
- package/dist/lib/types/drawer/backdrop/DrawerBackdrop.d.ts +1 -1
- package/dist/lib/types/drawer/content/DrawerContent.d.ts +1 -1
- package/dist/lib/types/drawer/indent/DrawerIndent.d.ts +1 -1
- package/dist/lib/types/drawer/indent-background/DrawerIndentBackground.d.ts +1 -1
- package/dist/lib/types/field/control/FieldControl.d.ts +5 -5
- package/dist/lib/types/field/root/FieldRoot.d.ts +1 -1
- package/dist/lib/types/field/root/createFieldValidation.d.ts +3 -2
- package/dist/lib/types/fieldset/legend/FieldsetLegend.d.ts +1 -1
- package/dist/lib/types/fieldset/root/FieldsetRoot.d.ts +1 -1
- package/dist/lib/types/index.d.ts +1 -0
- package/dist/lib/types/internals/composeEventHandlers.d.ts +9 -2
- package/dist/lib/types/internals/createTransitionStatus.d.ts +1 -1
- package/dist/lib/types/internals/field-root-context/FieldRootContext.d.ts +1 -0
- package/dist/lib/types/internals/form-context/FormContext.d.ts +1 -0
- package/dist/lib/types/internals/labelable-provider/LabelableContext.d.ts +1 -0
- package/dist/lib/types/internals/labelable-provider/createLabelableId.d.ts +3 -0
- package/dist/lib/types/internals/overlay/PopupPortal.d.ts +4 -2
- package/dist/lib/types/internals/overlay/createPopupPresence.d.ts +1 -0
- package/dist/lib/types/internals/overlay/dom.d.ts +2 -0
- package/dist/lib/types/menu/root/MenuRootContext.d.ts +1 -0
- package/dist/lib/types/meter/indicator/MeterIndicator.d.ts +1 -1
- package/dist/lib/types/meter/label/MeterLabel.d.ts +1 -1
- package/dist/lib/types/meter/root/MeterRoot.d.ts +1 -1
- package/dist/lib/types/meter/track/MeterTrack.d.ts +1 -1
- package/dist/lib/types/meter/value/MeterValue.d.ts +1 -1
- package/dist/lib/types/navigation-menu/trigger/NavigationMenuTrigger.d.ts +1 -0
- package/dist/lib/types/number-field/input/NumberFieldInput.d.ts +5 -5
- package/dist/lib/types/number-field/root/NumberFieldRootContext.d.ts +1 -0
- package/dist/lib/types/popover/arrow/PopoverArrow.d.ts +1 -1
- package/dist/lib/types/popover/backdrop/PopoverBackdrop.d.ts +1 -1
- package/dist/lib/types/popover/description/PopoverDescription.d.ts +1 -1
- package/dist/lib/types/popover/positioner/PopoverPositioner.d.ts +1 -1
- package/dist/lib/types/popover/title/PopoverTitle.d.ts +1 -1
- package/dist/lib/types/preview-card/arrow/PreviewCardArrow.d.ts +1 -1
- package/dist/lib/types/preview-card/backdrop/PreviewCardBackdrop.d.ts +1 -1
- package/dist/lib/types/preview-card/positioner/PreviewCardPositioner.d.ts +1 -1
- package/dist/lib/types/progress/indicator/ProgressIndicator.d.ts +1 -1
- package/dist/lib/types/progress/label/ProgressLabel.d.ts +1 -1
- package/dist/lib/types/progress/root/ProgressRoot.d.ts +1 -1
- package/dist/lib/types/progress/track/ProgressTrack.d.ts +1 -1
- package/dist/lib/types/progress/value/ProgressValue.d.ts +1 -1
- package/dist/lib/types/radio/indicator/RadioIndicator.d.ts +2 -2
- package/dist/lib/types/scroll-area/content/ScrollAreaContent.d.ts +1 -1
- package/dist/lib/types/scroll-area/corner/ScrollAreaCorner.d.ts +1 -1
- package/dist/lib/types/scroll-area/root/ScrollAreaRoot.d.ts +1 -1
- package/dist/lib/types/scroll-area/scrollbar/ScrollAreaScrollbar.d.ts +2 -1
- package/dist/lib/types/scroll-area/thumb/ScrollAreaThumb.d.ts +1 -1
- package/dist/lib/types/scroll-area/viewport/ScrollAreaViewport.d.ts +1 -1
- package/dist/lib/types/separator/Separator.d.ts +1 -1
- package/dist/lib/types/slider/track/SliderTrack.d.ts +2 -2
- package/dist/lib/types/tabs/indicator/prehydrationScript.d.ts +1 -1
- package/dist/lib/types/tabs/list/TabsList.d.ts +1 -1
- package/dist/lib/types/tabs/panel/TabsPanel.d.ts +1 -1
- package/dist/lib/types/tabs/root/TabsRoot.d.ts +1 -1
- package/dist/lib/types/tabs/tab/TabsTab.d.ts +1 -1
- package/dist/lib/types/toast/createToastManager.d.ts +2 -2
- package/dist/lib/types/toast/store/ToastStore.d.ts +1 -1
- package/dist/lib/types/toast/useToastManager.d.ts +1 -1
- package/dist/lib/types/toggle/Toggle.d.ts +1 -1
- package/dist/lib/types/toggle-group/ToggleGroup.d.ts +1 -1
- package/dist/lib/types/toolbar/group/ToolbarGroup.d.ts +1 -1
- package/dist/lib/types/toolbar/link/ToolbarLink.d.ts +10 -3
- package/dist/lib/types/toolbar/root/ToolbarRoot.d.ts +10 -4
- package/dist/lib/types/toolbar/separator/ToolbarSeparator.d.ts +1 -1
- package/dist/lib/types/tooltip/arrow/TooltipArrow.d.ts +1 -1
- package/dist/lib/types/tooltip/positioner/TooltipPositioner.d.ts +1 -1
- package/dist/lib/types/types/index.d.ts +7 -3
- package/dist/lib/types/use-render/index.d.ts +2 -0
- package/dist/lib/types/use-render/useRender.d.ts +10 -0
- package/package.json +24 -11
- package/dist/lib/client/DialogHandle-DrN2YWCv.js +0 -518
- package/dist/lib/client/DialogPopup-ZlqmGfdk.js +0 -136
- package/dist/lib/client/FieldControl-Bc-z2og6.js +0 -116
- package/dist/lib/client/MenuSubmenuTrigger-QZkQ0F2v.js +0 -1570
- package/dist/lib/client/PopupViewport-DgrIqQea.js +0 -152
- package/dist/lib/client/Separator-9DboD_Si.js +0 -25
- package/dist/lib/client/TriggerFocusGuards-CQ-JuASy.js +0 -56
- package/dist/lib/client/accordion-sOXt9AlG.js +0 -399
- package/dist/lib/client/avatar-AF9vyD4q.js +0 -146
- package/dist/lib/client/button-DpUi-2g8.js +0 -82
- package/dist/lib/client/checkbox-BbAwOptH.js +0 -441
- package/dist/lib/client/checkbox-group-CSSp_805.js +0 -128
- package/dist/lib/client/collapsible-BIbje_ub.js +0 -232
- package/dist/lib/client/combobox-8O-vgTLL.js +0 -352
- package/dist/lib/client/compositeNavigation-sxniYTc7.js +0 -58
- package/dist/lib/client/context-menu-BTMkXtrs.js +0 -217
- package/dist/lib/client/createFocusInteraction-D4w1-235.js +0 -50
- package/dist/lib/client/drawer-Ce2cChLt.js +0 -1550
- package/dist/lib/client/field-C-o7jzKW.js +0 -469
- package/dist/lib/client/fieldset-BQTAWv2L.js +0 -65
- package/dist/lib/client/form-BINBiW5L.js +0 -106
- package/dist/lib/client/menu-DeMT08oD.js +0 -326
- package/dist/lib/client/menubar-C4aomSYv.js +0 -185
- package/dist/lib/client/meter-xSU37Q0m.js +0 -171
- package/dist/lib/client/navigation-menu-ZILQmdn6.js +0 -1083
- package/dist/lib/client/number-field-B8CsTb_8.js +0 -1035
- package/dist/lib/client/otp-field-DBkMcnog.js +0 -582
- package/dist/lib/client/popover-CQwyp-fs.js +0 -929
- package/dist/lib/client/popupStateMapping-C9eZl19i.js +0 -367
- package/dist/lib/client/preview-card-D_2Q8lpC.js +0 -625
- package/dist/lib/client/progress-D7r0xAC9.js +0 -188
- package/dist/lib/client/radio-CzGQ81z1.js +0 -299
- package/dist/lib/client/radio-group-DpHlBKA6.js +0 -193
- package/dist/lib/client/runOnceAnimationsFinish-15EM-Z4l.js +0 -48
- package/dist/lib/client/scroll-area-CffM4U0R.js +0 -701
- package/dist/lib/client/select-IFhiEg73.js +0 -1940
- package/dist/lib/client/slider-BCagYmGp.js +0 -921
- package/dist/lib/client/switch-RIJeDnvS.js +0 -308
- package/dist/lib/client/tabs-fOAKs7r3.js +0 -696
- package/dist/lib/client/toast-D2P8UqUs.js +0 -1108
- package/dist/lib/client/toggle-group-0Aue0owJ.js +0 -129
- package/dist/lib/client/toggle-momVEIBL.js +0 -138
- package/dist/lib/client/toolbar-Du22aKCv.js +0 -492
- package/dist/lib/client/tooltip-CyK61fl1.js +0 -844
- package/dist/lib/client/useFilteredItems-DTekHz39.js +0 -2223
- package/dist/lib/client/withoutComponentBinding-CcCW7fSc.js +0 -13
- package/dist/lib/server/TriggerFocusGuards-sbGwf45f.js +0 -63
- package/dist/lib/server/withoutComponentBinding-BHaWr5kU.js +0 -20
- package/dist/lib/types/internals/withoutComponentBinding.d.ts +0 -7
|
@@ -0,0 +1,850 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { t } from "./useRender-CxZ8PI-g.js";
|
|
3
|
+
import { getStateAttributesProps as n } from "./internals/getStateAttributesProps.js";
|
|
4
|
+
import { N as r, P as i, d as a, s as o, w as s } from "./reasons-Co5CzjKq.js";
|
|
5
|
+
import { n as c, t as l } from "./resolveStyle-XcgAuaKR.js";
|
|
6
|
+
import { createChangeEventDetails as u } from "./internals/createBaseUIEventDetails.js";
|
|
7
|
+
import { transitionStatusMapping as d } from "./internals/stateAttributesMapping.js";
|
|
8
|
+
import { composeEventHandlers as f, liveEventHandler as p } from "./internals/composeEventHandlers.js";
|
|
9
|
+
import { h as m, i as h, n as g, o as _ } from "./dom-lDdayFF_.js";
|
|
10
|
+
import { t as v } from "./PopupViewport-BanYHrD-.js";
|
|
11
|
+
import { t as y } from "./createAnchorPositioning-DCXIApS1.js";
|
|
12
|
+
import { c as b, i as ee, n as x, r as te, s as S, t as ne } from "./FloatingTree-23B7KKPD.js";
|
|
13
|
+
import { a as C, n as w, o as re, t as T } from "./PopupStore-BjRwcvbG.js";
|
|
14
|
+
import { t as E } from "./createFocusInteraction-DQPWkZe2.js";
|
|
15
|
+
import { n as ie, r as ae, t as oe } from "./safePolygon-DVAR5dQD.js";
|
|
16
|
+
import { a as se, o as ce } from "./popupStateMapping-nhukB8NK.js";
|
|
17
|
+
import { i as le, n as ue, r as D, t as O } from "./PopupHandle-DyX5gY1e.js";
|
|
18
|
+
import { t as k } from "./setRef-fXF6OIo3.js";
|
|
19
|
+
import { n as A } from "./DirectionContext-BwMabICS.js";
|
|
20
|
+
import { createComponent as j, getNextElement as M, memo as N, mergeProps as P, runHydrationEvents as F, spread as I, template as L } from "@solidjs/web";
|
|
21
|
+
import { $REFRESH as R, Show as de, createContext as z, createEffect as B, createMemo as V, createRoot as fe, createSignal as H, createUniqueId as U, omit as W, onCleanup as G, untrack as K, useContext as q } from "solid-js";
|
|
22
|
+
//#region src/internals/overlay/createClientPoint.ts
|
|
23
|
+
function pe(e) {
|
|
24
|
+
let t = null, n = null, r, i = !1, a = () => {
|
|
25
|
+
e.context.set("positionReference", e.context.state.referenceElement);
|
|
26
|
+
}, o = (r, o = !1) => {
|
|
27
|
+
if (!(e.enabled?.() ?? !0) || e.axis() === "none") {
|
|
28
|
+
a();
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
let s = e.context.context.data.openEvent;
|
|
32
|
+
if (e.context.state.open && (!s || ![
|
|
33
|
+
"mouseenter",
|
|
34
|
+
"mousemove",
|
|
35
|
+
"pointerenter",
|
|
36
|
+
"pointermove"
|
|
37
|
+
].includes(s.type))) {
|
|
38
|
+
a();
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
if (g(e.context.state.floatingElement, h(r))) {
|
|
42
|
+
i = !0;
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
if (o) i = !1;
|
|
46
|
+
else if (i) return;
|
|
47
|
+
t = r.clientX, n = r.clientY;
|
|
48
|
+
let c = o && _(r.currentTarget) ? r.currentTarget : e.context.state.domReferenceElement;
|
|
49
|
+
if (!c) return;
|
|
50
|
+
let l = {
|
|
51
|
+
contextElement: c,
|
|
52
|
+
getBoundingClientRect() {
|
|
53
|
+
let r = c.getBoundingClientRect(), i = e.axis(), a = i === "y" ? r.left : t ?? r.left, o = i === "x" ? r.top : n ?? r.top, s = i === "y" || i === "none" ? r.width : 0, l = i === "x" || i === "none" ? r.height : 0;
|
|
54
|
+
return {
|
|
55
|
+
x: a,
|
|
56
|
+
y: o,
|
|
57
|
+
left: a,
|
|
58
|
+
top: o,
|
|
59
|
+
right: a + s,
|
|
60
|
+
bottom: o + l,
|
|
61
|
+
width: s,
|
|
62
|
+
height: l,
|
|
63
|
+
toJSON: () => ({})
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
e.context.set("positionReference", l);
|
|
68
|
+
};
|
|
69
|
+
return B(() => ({
|
|
70
|
+
axis: e.axis(),
|
|
71
|
+
enabled: e.enabled?.() ?? !0,
|
|
72
|
+
open: e.context.track().open,
|
|
73
|
+
reference: e.context.track().domReferenceElement,
|
|
74
|
+
openEvent: e.context.context.data.openEvent
|
|
75
|
+
}), (e) => {
|
|
76
|
+
if (r?.(), r = void 0, !e.enabled || e.axis === "none") {
|
|
77
|
+
a();
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
if (!e.open || !e.reference) return;
|
|
81
|
+
if (!e.openEvent || ![
|
|
82
|
+
"mouseenter",
|
|
83
|
+
"mousemove",
|
|
84
|
+
"pointerenter",
|
|
85
|
+
"pointermove"
|
|
86
|
+
].includes(e.openEvent.type)) {
|
|
87
|
+
a();
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
let t = m(e.reference);
|
|
91
|
+
i = !1;
|
|
92
|
+
let n = (e) => o(e);
|
|
93
|
+
return t.addEventListener("mousemove", n), r = () => t.removeEventListener("mousemove", n), r;
|
|
94
|
+
}), G(() => {
|
|
95
|
+
r?.(), e.context.set("positionReference", null);
|
|
96
|
+
}), { onMouseMove: (e) => o(e, !0) };
|
|
97
|
+
}
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region src/internals/overlay/createDelayGroup.ts
|
|
100
|
+
function J(e) {
|
|
101
|
+
return typeof e == "number" ? {
|
|
102
|
+
open: e,
|
|
103
|
+
close: e
|
|
104
|
+
} : {
|
|
105
|
+
open: e?.open ?? 0,
|
|
106
|
+
close: e?.close ?? 0
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
function Y(e) {
|
|
110
|
+
let t = null, n = /* @__PURE__ */ new Set(), r = !1, i = /* @__PURE__ */ new Map(), a = () => {
|
|
111
|
+
for (let [e, t] of i) t.setInstant?.(n.has(e));
|
|
112
|
+
}, o = () => {
|
|
113
|
+
let t = J(e.delay());
|
|
114
|
+
return r ? {
|
|
115
|
+
open: 0,
|
|
116
|
+
close: t.close
|
|
117
|
+
} : t;
|
|
118
|
+
}, s = () => t, c;
|
|
119
|
+
return G(() => clearTimeout(c)), {
|
|
120
|
+
delay: o,
|
|
121
|
+
currentId: s,
|
|
122
|
+
isInstant: (e) => n.has(e),
|
|
123
|
+
subscribe(e, t, r) {
|
|
124
|
+
return i.set(e, {
|
|
125
|
+
closeSibling: t,
|
|
126
|
+
setInstant: r
|
|
127
|
+
}), r?.(n.has(e)), () => i.delete(e);
|
|
128
|
+
},
|
|
129
|
+
open(e, o) {
|
|
130
|
+
clearTimeout(c);
|
|
131
|
+
let s = t;
|
|
132
|
+
if (s && s !== e) {
|
|
133
|
+
n = /* @__PURE__ */ new Set([
|
|
134
|
+
...i.keys(),
|
|
135
|
+
s,
|
|
136
|
+
e
|
|
137
|
+
]);
|
|
138
|
+
for (let [t, n] of i) t !== e && n.closeSibling !== o && n.closeSibling();
|
|
139
|
+
}
|
|
140
|
+
t = e, r = !0, a();
|
|
141
|
+
},
|
|
142
|
+
close(i) {
|
|
143
|
+
let o = new Set(n);
|
|
144
|
+
o.delete(i), n = o, a(), t === i && (clearTimeout(c), c = setTimeout(() => {
|
|
145
|
+
t === i && (t = null, n = /* @__PURE__ */ new Set(), r = !1, a());
|
|
146
|
+
}, e.timeout?.() ?? 400));
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
//#endregion
|
|
151
|
+
//#region src/tooltip/provider/TooltipProviderContext.ts
|
|
152
|
+
var X = Symbol("TooltipProviderContext"), Z = z(X);
|
|
153
|
+
function me() {
|
|
154
|
+
let e = q(Z);
|
|
155
|
+
return e === X ? void 0 : e;
|
|
156
|
+
}
|
|
157
|
+
//#endregion
|
|
158
|
+
//#region src/tooltip/provider/TooltipProvider.tsx
|
|
159
|
+
function he(e) {
|
|
160
|
+
let t = {
|
|
161
|
+
delay: () => e.delay,
|
|
162
|
+
group: Y({
|
|
163
|
+
delay: () => ({
|
|
164
|
+
open: e.delay,
|
|
165
|
+
close: e.closeDelay
|
|
166
|
+
}),
|
|
167
|
+
timeout: () => e.timeout ?? 400
|
|
168
|
+
})
|
|
169
|
+
};
|
|
170
|
+
return j(Z, {
|
|
171
|
+
value: t,
|
|
172
|
+
get children() {
|
|
173
|
+
return e.children;
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
//#endregion
|
|
178
|
+
//#region src/tooltip/store/TooltipStore.ts
|
|
179
|
+
var Q = class extends T {
|
|
180
|
+
triggerData = /* @__PURE__ */ new Map();
|
|
181
|
+
disabledAccessor;
|
|
182
|
+
disableHoverablePopupAccessor;
|
|
183
|
+
trackCursorAxisAccessor;
|
|
184
|
+
lastReasonAccessor;
|
|
185
|
+
setLastReason;
|
|
186
|
+
instantPhaseAccessor;
|
|
187
|
+
setInstantPhaseSignal;
|
|
188
|
+
closeOnClickAccessor;
|
|
189
|
+
setCloseOnClick;
|
|
190
|
+
closeDelayAccessor;
|
|
191
|
+
setCloseDelay;
|
|
192
|
+
delayGroup;
|
|
193
|
+
delayGroupId;
|
|
194
|
+
delayGroupOwner;
|
|
195
|
+
constructor(e) {
|
|
196
|
+
super(e), this.disabledAccessor = e.disabled, this.disableHoverablePopupAccessor = e.disableHoverablePopup, this.trackCursorAxisAccessor = e.trackCursorAxis;
|
|
197
|
+
let [t, n] = H(null, { ownedWrite: !0 });
|
|
198
|
+
this.lastReasonAccessor = t, this.setLastReason = n;
|
|
199
|
+
let [r, i] = H(!1, { ownedWrite: !0 });
|
|
200
|
+
this.instantPhaseAccessor = r, this.setInstantPhaseSignal = i;
|
|
201
|
+
let [a, o] = H(!0, { ownedWrite: !0 });
|
|
202
|
+
this.closeOnClickAccessor = a, this.setCloseOnClick = o;
|
|
203
|
+
let [s, c] = H(0, { ownedWrite: !0 });
|
|
204
|
+
this.closeDelayAccessor = s, this.setCloseDelay = c;
|
|
205
|
+
}
|
|
206
|
+
open() {
|
|
207
|
+
return !(this.disabledAccessor?.() ?? !1) && super.open();
|
|
208
|
+
}
|
|
209
|
+
rawOpen() {
|
|
210
|
+
return super.open();
|
|
211
|
+
}
|
|
212
|
+
disabled() {
|
|
213
|
+
return this.disabledAccessor();
|
|
214
|
+
}
|
|
215
|
+
disableHoverablePopup() {
|
|
216
|
+
return this.disableHoverablePopupAccessor();
|
|
217
|
+
}
|
|
218
|
+
trackCursorAxis() {
|
|
219
|
+
return this.trackCursorAxisAccessor();
|
|
220
|
+
}
|
|
221
|
+
lastOpenChangeReason() {
|
|
222
|
+
return this.lastReasonAccessor();
|
|
223
|
+
}
|
|
224
|
+
isInstantPhase() {
|
|
225
|
+
return this.instantPhaseAccessor();
|
|
226
|
+
}
|
|
227
|
+
setInstantPhase(e) {
|
|
228
|
+
this.setInstantPhaseSignal(e);
|
|
229
|
+
}
|
|
230
|
+
closeOnClick() {
|
|
231
|
+
return this.closeOnClickAccessor();
|
|
232
|
+
}
|
|
233
|
+
closeDelay() {
|
|
234
|
+
return this.closeDelayAccessor();
|
|
235
|
+
}
|
|
236
|
+
configureDelayGroup(e, t, n) {
|
|
237
|
+
this.delayGroup = e, this.delayGroupId = t, this.delayGroupOwner = n;
|
|
238
|
+
}
|
|
239
|
+
syncDelayGroup(e) {
|
|
240
|
+
!this.delayGroup || this.delayGroupId === void 0 || (e ? this.delayGroup.open(this.delayGroupId, this.delayGroupOwner) : this.delayGroup.close(this.delayGroupId));
|
|
241
|
+
}
|
|
242
|
+
setTriggerData(e, t) {
|
|
243
|
+
this.triggerData.set(e, t);
|
|
244
|
+
}
|
|
245
|
+
removeTriggerData(e) {
|
|
246
|
+
this.triggerData.delete(e);
|
|
247
|
+
}
|
|
248
|
+
syncTriggerData(e, t) {
|
|
249
|
+
let n = this.triggerData.get(e ?? "");
|
|
250
|
+
this.setCloseOnClick(n?.closeOnClick ?? !0), this.setCloseDelay(n?.closeDelay ?? 0), n && t && this.set("payload", n.payload);
|
|
251
|
+
}
|
|
252
|
+
setOpen(e, t) {
|
|
253
|
+
if (e && this.disabled()) return !1;
|
|
254
|
+
let n = super.setOpen(e, t);
|
|
255
|
+
return n && (this.setLastReason(t.reason), this.syncDelayGroup(this.open())), n;
|
|
256
|
+
}
|
|
257
|
+
cancelPendingOpen(e) {
|
|
258
|
+
this.context.floatingRoot.dispatchOpenChange(!1, u(i, e));
|
|
259
|
+
}
|
|
260
|
+
}, ge = class extends ue {
|
|
261
|
+
disabled() {
|
|
262
|
+
return !1;
|
|
263
|
+
}
|
|
264
|
+
disableHoverablePopup() {
|
|
265
|
+
return !1;
|
|
266
|
+
}
|
|
267
|
+
trackCursorAxis() {
|
|
268
|
+
return "none";
|
|
269
|
+
}
|
|
270
|
+
closeOnClick() {
|
|
271
|
+
return !0;
|
|
272
|
+
}
|
|
273
|
+
closeDelay() {
|
|
274
|
+
return 0;
|
|
275
|
+
}
|
|
276
|
+
setTriggerData(e, t) {}
|
|
277
|
+
removeTriggerData(e) {}
|
|
278
|
+
syncTriggerData(e, t) {}
|
|
279
|
+
cancelPendingOpen(e) {}
|
|
280
|
+
}, _e = Symbol("TooltipRootContext"), ve = z(_e);
|
|
281
|
+
function $(e = !1) {
|
|
282
|
+
let t = q(ve);
|
|
283
|
+
if (t === _e) {
|
|
284
|
+
if (e) return;
|
|
285
|
+
throw Error("Base UI: TooltipRootContext is missing. Tooltip parts must be placed within <Tooltip.Root>.");
|
|
286
|
+
}
|
|
287
|
+
return t;
|
|
288
|
+
}
|
|
289
|
+
//#endregion
|
|
290
|
+
//#region src/tooltip/root/TooltipRoot.tsx
|
|
291
|
+
function ye(e) {
|
|
292
|
+
let t = b(), n = S(), r = me(), i = t ?? new te(), c = U(), l = Symbol("TooltipRoot"), d = U(), f = K(() => e.open !== void 0), p = K(() => e.triggerId !== void 0), m = new Q({
|
|
293
|
+
controlledOpen: () => f ? e.open : void 0,
|
|
294
|
+
controlledTriggerId: () => p ? e.triggerId : void 0,
|
|
295
|
+
disabled: () => e.disabled ?? !1,
|
|
296
|
+
disableHoverablePopup: () => e.disableHoverablePopup ?? !1,
|
|
297
|
+
trackCursorAxis: () => e.trackCursorAxis ?? "none",
|
|
298
|
+
floatingId: d,
|
|
299
|
+
nested: n !== null,
|
|
300
|
+
nodeId: c,
|
|
301
|
+
onOpenChange: () => e.onOpenChange,
|
|
302
|
+
onOpenChangeComplete: () => e.onOpenChangeComplete
|
|
303
|
+
});
|
|
304
|
+
m.update({
|
|
305
|
+
open: f ? !!K(() => e.open) : !!K(() => e.defaultOpen),
|
|
306
|
+
activeTriggerId: K(() => e.defaultTriggerId ?? null)
|
|
307
|
+
});
|
|
308
|
+
let h = m.access((e) => e.payload), g = ee({
|
|
309
|
+
tree: i,
|
|
310
|
+
id: c,
|
|
311
|
+
parentId: n,
|
|
312
|
+
context: () => m.context.floatingRoot
|
|
313
|
+
}), _ = C(m, () => m.track().popupElement), v = {
|
|
314
|
+
store: m,
|
|
315
|
+
tree: i,
|
|
316
|
+
presence: _
|
|
317
|
+
};
|
|
318
|
+
m.configureTriggerUnmount({ closeOnActiveTriggerUnmount: !0 }), D(() => e.handle, m);
|
|
319
|
+
let y = re({
|
|
320
|
+
context: m.context.floatingRoot,
|
|
321
|
+
tree: () => i,
|
|
322
|
+
enabled: () => !m.disabled(),
|
|
323
|
+
referencePress: () => m.closeOnClick()
|
|
324
|
+
}), w = pe({
|
|
325
|
+
context: m.context.floatingRoot,
|
|
326
|
+
axis: () => m.trackCursorAxis(),
|
|
327
|
+
enabled: () => !m.disabled() && m.trackCursorAxis() !== "none"
|
|
328
|
+
});
|
|
329
|
+
function T(e) {
|
|
330
|
+
m.closeOnClick() && (m.open() ? y.onReferencePress(e) : m.cancelPendingOpen(e));
|
|
331
|
+
}
|
|
332
|
+
if (m.setInteractionProps({
|
|
333
|
+
activeTriggerProps: {
|
|
334
|
+
onClick: T,
|
|
335
|
+
onKeyDown: y.onKeyDown,
|
|
336
|
+
onMouseMove: w.onMouseMove,
|
|
337
|
+
onPointerDown: T
|
|
338
|
+
},
|
|
339
|
+
inactiveTriggerProps: {
|
|
340
|
+
onClick: T,
|
|
341
|
+
onKeyDown: y.onKeyDown,
|
|
342
|
+
onMouseMove: w.onMouseMove,
|
|
343
|
+
onPointerDown: T
|
|
344
|
+
},
|
|
345
|
+
popupProps: { onKeyDown: y.onKeyDown }
|
|
346
|
+
}), B(() => ({
|
|
347
|
+
open: m.open(),
|
|
348
|
+
activeTriggerId: m.activeTriggerId()
|
|
349
|
+
}), () => K(() => m.reconcileTriggers())), B(() => ({
|
|
350
|
+
disabled: m.disabled(),
|
|
351
|
+
rawOpen: m.rawOpen()
|
|
352
|
+
}), (e) => {
|
|
353
|
+
e.disabled && e.rawOpen && m.setOpen(!1, u(o));
|
|
354
|
+
}), r) {
|
|
355
|
+
let e = !0, t = () => {
|
|
356
|
+
!m.open() && !_.mounted() || queueMicrotask(() => {
|
|
357
|
+
e && r.group.currentId() !== l && (m.open() ? m.setOpen(!1, u(s)) : _.mounted() && !m.state.preventUnmountingOnClose && _.forceUnmount());
|
|
358
|
+
});
|
|
359
|
+
}, n = r.group.subscribe(l, t, (e) => m.setInstantPhase(e));
|
|
360
|
+
m.configureDelayGroup(r.group, l, t), m.syncDelayGroup(K(() => m.open())), G(() => {
|
|
361
|
+
e = !1, n();
|
|
362
|
+
}), f && B(() => m.open(), (e) => queueMicrotask(() => m.syncDelayGroup(e)));
|
|
363
|
+
}
|
|
364
|
+
let E = null;
|
|
365
|
+
B(() => ({
|
|
366
|
+
transitionStatus: m.track().transitionStatus,
|
|
367
|
+
instantPhase: m.isInstantPhase(),
|
|
368
|
+
reason: m.lastOpenChangeReason(),
|
|
369
|
+
instantType: m.track().instantType
|
|
370
|
+
}), (e) => {
|
|
371
|
+
e.transitionStatus === "ending" && e.reason === "none" || e.transitionStatus !== "ending" && e.instantPhase ? e.instantType !== "delay" && (E = e.instantType, m.set("instantType", "delay")) : E !== null && (m.set("instantType", E), E = null);
|
|
372
|
+
}), B(() => ({
|
|
373
|
+
open: m.open(),
|
|
374
|
+
activeTriggerId: m.activeTriggerId()
|
|
375
|
+
}), (e) => {
|
|
376
|
+
e.open && e.activeTriggerId == null && m.set("payload", void 0);
|
|
377
|
+
});
|
|
378
|
+
let ie = {
|
|
379
|
+
unmount: _.forceUnmount,
|
|
380
|
+
close() {
|
|
381
|
+
m.setOpen(!1, u(a));
|
|
382
|
+
}
|
|
383
|
+
};
|
|
384
|
+
B(() => e.actionsRef, (e) => e?.(ie));
|
|
385
|
+
function ae() {
|
|
386
|
+
let t = V(() => e.children), n = K(t), r = n;
|
|
387
|
+
return typeof n == "function" && (r = n.name === "bound read" && Object.prototype.hasOwnProperty.call(n, R) ? N(() => t()) : K(() => n({ payload: h }))), r;
|
|
388
|
+
}
|
|
389
|
+
return G(() => m.clearInteractionProps()), j(ve, {
|
|
390
|
+
value: v,
|
|
391
|
+
get children() {
|
|
392
|
+
return j(x, {
|
|
393
|
+
value: i,
|
|
394
|
+
get children() {
|
|
395
|
+
return j(ne, {
|
|
396
|
+
get value() {
|
|
397
|
+
return g.id ?? null;
|
|
398
|
+
},
|
|
399
|
+
get children() {
|
|
400
|
+
return j(ae, {});
|
|
401
|
+
}
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
//#endregion
|
|
409
|
+
//#region src/tooltip/trigger/TooltipTrigger.tsx
|
|
410
|
+
var be = /* @__PURE__ */ L("<button>"), xe = 600, Se = "data-base-ui-tooltip-trigger";
|
|
411
|
+
function Ce(e) {
|
|
412
|
+
let a = $(!0), o = me(), s = e;
|
|
413
|
+
if (!a && !K(() => s.handle)) throw Error("Base UI: <Tooltip.Trigger> must be either used within a <Tooltip.Root> component or provided with a handle.");
|
|
414
|
+
let d = e, m = `base-ui-${U()}`, v = V(() => s.id || m), [y, b] = H(null, { ownedWrite: !0 }), ee = le(() => s.handle), x = V(() => ee() ?? a?.store ?? new ge()), te = V(() => s.disabled ?? x().disabled()), S = V(() => x().disabled() || (s.disabled ?? !1)), ne = V(() => x().open() && x().activeTriggerId() === v()), C = V(() => ({ open: ne() })), re = t(e, () => C(), (e) => (() => {
|
|
415
|
+
var t = M(be);
|
|
416
|
+
return I(t, e, !1), F(), t;
|
|
417
|
+
})()), T = V(() => c(e.class, C())), ie = V(() => l(e.style, C())), ce = V(() => n(C(), se)), ue = W(d, "render", "class", "closeDelay", "closeOnClick", "delay", "disabled", "handle", "id", "onBlur", "onClick", "onFocus", "onKeyDown", "onMouseLeave", "onMouseMove", "onMouseOver", "onPointerDown", "onPointerEnter", "payload", "ref", "style"), D, O, k = !1, A = "", N, L = V(() => ({
|
|
418
|
+
payload: s.payload,
|
|
419
|
+
closeOnClick: s.closeOnClick ?? !0,
|
|
420
|
+
closeDelay: s.closeDelay ?? 0
|
|
421
|
+
}));
|
|
422
|
+
w(x, v, y, () => ({ payload: s.payload })), B(() => {
|
|
423
|
+
let e = x();
|
|
424
|
+
return {
|
|
425
|
+
store: e,
|
|
426
|
+
id: v(),
|
|
427
|
+
data: L(),
|
|
428
|
+
activeId: e.activeTriggerId(),
|
|
429
|
+
open: e.open()
|
|
430
|
+
};
|
|
431
|
+
}, (e) => (e.store.setTriggerData(e.id, e.data), e.store.syncTriggerData(e.activeId, e.open), () => e.store.removeTriggerData(e.id)));
|
|
432
|
+
function R() {
|
|
433
|
+
return o ? o.group.currentId() === null ? s.delay ?? o.delay() ?? xe : 0 : s.delay ?? xe;
|
|
434
|
+
}
|
|
435
|
+
function de() {
|
|
436
|
+
return s.closeDelay === void 0 ? o?.group.delay().close ?? 0 : s.closeDelay;
|
|
437
|
+
}
|
|
438
|
+
B(() => ({
|
|
439
|
+
store: x(),
|
|
440
|
+
element: y()
|
|
441
|
+
}), (e) => {
|
|
442
|
+
if (!(e.store instanceof Q) || !e.element) {
|
|
443
|
+
D = void 0, O = void 0;
|
|
444
|
+
return;
|
|
445
|
+
}
|
|
446
|
+
let t = e.store;
|
|
447
|
+
return fe((e) => (O = ae({
|
|
448
|
+
context: t.context.floatingRoot,
|
|
449
|
+
reference: y,
|
|
450
|
+
floating: () => t.track().positionerElement,
|
|
451
|
+
tree: () => a?.tree,
|
|
452
|
+
enabled: () => !S(),
|
|
453
|
+
floatingEnabled: () => !S() && t.activeTriggerId() === v(),
|
|
454
|
+
delay: () => ({
|
|
455
|
+
open: R(),
|
|
456
|
+
close: de()
|
|
457
|
+
}),
|
|
458
|
+
restMs: () => R(),
|
|
459
|
+
handleClose: () => t.disableHoverablePopup() || t.trackCursorAxis() === "both" ? void 0 : oe(),
|
|
460
|
+
mouseOnly: () => !0,
|
|
461
|
+
shouldOpen: () => !k
|
|
462
|
+
}), D = E({
|
|
463
|
+
context: t.context.floatingRoot,
|
|
464
|
+
enabled: () => !S()
|
|
465
|
+
}), () => {
|
|
466
|
+
e(), D = void 0, O = void 0;
|
|
467
|
+
}));
|
|
468
|
+
});
|
|
469
|
+
function z(e) {
|
|
470
|
+
let t = y(), n = we(e);
|
|
471
|
+
return !!(t && n && n !== t && g(t, n));
|
|
472
|
+
}
|
|
473
|
+
function q(e) {
|
|
474
|
+
let t = k, n = h(e), i = _(n) ? n : e.target;
|
|
475
|
+
k = _(i) && z(i), k && (O?.cancelPendingOpen(), clearTimeout(N));
|
|
476
|
+
let a = x();
|
|
477
|
+
if (k && a.open() && a instanceof Q && a.lastOpenChangeReason() === "trigger-hover") {
|
|
478
|
+
a.setOpen(!1, u(r, e));
|
|
479
|
+
return;
|
|
480
|
+
}
|
|
481
|
+
let o = y();
|
|
482
|
+
if (t && !k && o && _(i) && g(o, i) && !S() && !a.open() && Te(A)) {
|
|
483
|
+
let t = () => {
|
|
484
|
+
!k && !S() && !a.open() && a.setOpen(!0, u(r, e, o));
|
|
485
|
+
}, n = R();
|
|
486
|
+
clearTimeout(N), n === 0 ? t() : N = setTimeout(t, n);
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
function pe(e) {
|
|
490
|
+
let t = h(e);
|
|
491
|
+
(!_(t) || !z(t)) && D?.onFocus(e);
|
|
492
|
+
}
|
|
493
|
+
function J(e) {
|
|
494
|
+
let t = x();
|
|
495
|
+
(s.closeOnClick ?? !0) && (clearTimeout(N), t.open() ? t.setOpen(!1, u(i, e, y() ?? void 0)) : (t.cancelPendingOpen(e), O?.cancelPendingOpen()));
|
|
496
|
+
}
|
|
497
|
+
function Y(e) {
|
|
498
|
+
let t = x();
|
|
499
|
+
if (!(t instanceof Q)) return;
|
|
500
|
+
let n = (t.activeTriggerId() === v() ? t.state.activeTriggerProps : t.state.inactiveTriggerProps)[e];
|
|
501
|
+
return typeof n == "function" ? n : void 0;
|
|
502
|
+
}
|
|
503
|
+
function X(e) {
|
|
504
|
+
A = e.pointerType, J(e);
|
|
505
|
+
}
|
|
506
|
+
function Z(e) {
|
|
507
|
+
A = e.pointerType;
|
|
508
|
+
}
|
|
509
|
+
function he() {
|
|
510
|
+
return Y("onKeyDown");
|
|
511
|
+
}
|
|
512
|
+
function _e() {
|
|
513
|
+
return Y("onMouseMove");
|
|
514
|
+
}
|
|
515
|
+
let ve = f(p(() => s.onBlur), (e) => D?.onBlur(e)), ye = f(p(() => s.onClick), J), Se = f(p(() => s.onFocus), pe), Ce = f(p(() => s.onKeyDown), p(he)), Ee = f(p(() => s.onMouseLeave), () => {
|
|
516
|
+
k = !1, A = "", clearTimeout(N), D?.onPointerLeave();
|
|
517
|
+
}), De = f(p(() => s.onMouseMove), p(_e)), Oe = f(p(() => s.onMouseOver), q), ke = f(p(() => s.onPointerDown), X), Ae = f(p(() => s.onPointerEnter), Z);
|
|
518
|
+
return G(() => clearTimeout(N)), j(re, P({
|
|
519
|
+
ref: [((e) => b(e)), s.ref],
|
|
520
|
+
get id() {
|
|
521
|
+
return v();
|
|
522
|
+
},
|
|
523
|
+
type: "button",
|
|
524
|
+
get "data-trigger-disabled"() {
|
|
525
|
+
return te() ? "" : void 0;
|
|
526
|
+
},
|
|
527
|
+
get "data-base-ui-tooltip-trigger"() {
|
|
528
|
+
return te() ? void 0 : "";
|
|
529
|
+
},
|
|
530
|
+
get class() {
|
|
531
|
+
return T();
|
|
532
|
+
},
|
|
533
|
+
get style() {
|
|
534
|
+
return ie();
|
|
535
|
+
},
|
|
536
|
+
onBlur: ve,
|
|
537
|
+
onClick: ye,
|
|
538
|
+
onFocus: Se,
|
|
539
|
+
onKeyDown: Ce,
|
|
540
|
+
onMouseLeave: Ee,
|
|
541
|
+
onMouseMove: De,
|
|
542
|
+
onMouseOver: Oe,
|
|
543
|
+
onPointerDown: ke,
|
|
544
|
+
onPointerEnter: Ae
|
|
545
|
+
}, ce, ue));
|
|
546
|
+
}
|
|
547
|
+
function we(e) {
|
|
548
|
+
let t = e;
|
|
549
|
+
for (; t;) {
|
|
550
|
+
let e = t.closest(`[${Se}]`);
|
|
551
|
+
if (e) return e;
|
|
552
|
+
let n = t.getRootNode();
|
|
553
|
+
t = "host" in n && _(n.host) ? n.host : null;
|
|
554
|
+
}
|
|
555
|
+
return null;
|
|
556
|
+
}
|
|
557
|
+
function Te(e) {
|
|
558
|
+
return e === "" || e === "mouse" || e === "pen";
|
|
559
|
+
}
|
|
560
|
+
//#endregion
|
|
561
|
+
//#region src/tooltip/portal/TooltipPortalContext.ts
|
|
562
|
+
var Ee = Symbol("TooltipPortalContext"), De = z(Ee);
|
|
563
|
+
function Oe() {
|
|
564
|
+
let e = q(De);
|
|
565
|
+
if (e === Ee) throw Error("Base UI: <Tooltip.Portal> is missing.");
|
|
566
|
+
return e;
|
|
567
|
+
}
|
|
568
|
+
//#endregion
|
|
569
|
+
//#region src/tooltip/portal/TooltipPortal.tsx
|
|
570
|
+
function ke(e) {
|
|
571
|
+
let t = $(), n = e, r = e, i = V(() => n.keepMounted ?? !1), a = V(() => t.presence.mounted() || i()), o = {}, s = V(() => c(e.class, o)), u = V(() => l(e.style, o)), d = W(r, "render", "class", "container", "keepMounted", "ref", "style"), f = { keepMounted: i };
|
|
572
|
+
return j(de, {
|
|
573
|
+
get when() {
|
|
574
|
+
return a();
|
|
575
|
+
},
|
|
576
|
+
get children() {
|
|
577
|
+
return j(De, {
|
|
578
|
+
value: f,
|
|
579
|
+
get children() {
|
|
580
|
+
return j(ce, P({
|
|
581
|
+
get render() {
|
|
582
|
+
return e.render;
|
|
583
|
+
},
|
|
584
|
+
lite: !0,
|
|
585
|
+
get container() {
|
|
586
|
+
return n.container;
|
|
587
|
+
},
|
|
588
|
+
ref: (e) => {
|
|
589
|
+
n.ref && k(n.ref, e);
|
|
590
|
+
},
|
|
591
|
+
get class() {
|
|
592
|
+
return s();
|
|
593
|
+
},
|
|
594
|
+
get style() {
|
|
595
|
+
return u();
|
|
596
|
+
}
|
|
597
|
+
}, d, { get children() {
|
|
598
|
+
return e.children;
|
|
599
|
+
} }));
|
|
600
|
+
}
|
|
601
|
+
});
|
|
602
|
+
}
|
|
603
|
+
});
|
|
604
|
+
}
|
|
605
|
+
//#endregion
|
|
606
|
+
//#region src/tooltip/utils/mergeTooltipStyles.ts
|
|
607
|
+
function Ae(e, t) {
|
|
608
|
+
if (typeof t == "string") {
|
|
609
|
+
let n = Object.entries(e).filter((e) => e[1] != null).map(([e, t]) => `${e}:${String(t)}`).join(";");
|
|
610
|
+
return n ? `${n};${t}` : t;
|
|
611
|
+
}
|
|
612
|
+
return {
|
|
613
|
+
...e,
|
|
614
|
+
...t || void 0
|
|
615
|
+
};
|
|
616
|
+
}
|
|
617
|
+
//#endregion
|
|
618
|
+
//#region src/tooltip/utils/stateAttributesMapping.ts
|
|
619
|
+
var je = { "data-open": "" }, Me = { "data-closed": "" }, Ne = { "data-anchor-hidden": "" }, Pe = { "data-uncentered": "" }, Fe = { "data-transitioning": "" }, Ie = {
|
|
620
|
+
open: (e) => e ? je : Me,
|
|
621
|
+
side: (e) => ({ "data-side": e }),
|
|
622
|
+
align: (e) => ({ "data-align": e }),
|
|
623
|
+
anchorHidden: (e) => e ? Ne : null,
|
|
624
|
+
instant: (e) => e ? { "data-instant": e } : null
|
|
625
|
+
}, Le = {
|
|
626
|
+
open: (e) => e ? je : Me,
|
|
627
|
+
side: (e) => ({ "data-side": e }),
|
|
628
|
+
align: (e) => ({ "data-align": e }),
|
|
629
|
+
instant: (e) => e ? { "data-instant": e } : null,
|
|
630
|
+
...d
|
|
631
|
+
}, Re = {
|
|
632
|
+
open: (e) => e ? je : Me,
|
|
633
|
+
side: (e) => ({ "data-side": e }),
|
|
634
|
+
align: (e) => ({ "data-align": e }),
|
|
635
|
+
uncentered: (e) => e ? Pe : null,
|
|
636
|
+
instant: (e) => e ? { "data-instant": e } : null
|
|
637
|
+
}, ze = {
|
|
638
|
+
activationDirection: (e) => e === void 0 ? null : { "data-activation-direction": e },
|
|
639
|
+
transitioning: (e) => e ? Fe : null,
|
|
640
|
+
instant: (e) => e ? { "data-instant": e } : null
|
|
641
|
+
}, Be = Symbol("TooltipPositionerContext"), Ve = z(Be);
|
|
642
|
+
function He() {
|
|
643
|
+
let e = q(Ve);
|
|
644
|
+
if (e === Be) throw Error("Base UI: TooltipPositionerContext is missing. TooltipPositioner parts must be placed within <Tooltip.Positioner>.");
|
|
645
|
+
return e;
|
|
646
|
+
}
|
|
647
|
+
//#endregion
|
|
648
|
+
//#region src/tooltip/positioner/TooltipPositioner.tsx
|
|
649
|
+
var Ue = /* @__PURE__ */ L("<div>");
|
|
650
|
+
function We(e) {
|
|
651
|
+
let r = $();
|
|
652
|
+
Oe();
|
|
653
|
+
let i = A(), a = e, o = e, [s, u] = H(null, { ownedWrite: !0 }), d = y({
|
|
654
|
+
reference: () => Ge(a.anchor) ?? r.store.context.floatingRoot.referenceElement(),
|
|
655
|
+
floating: s,
|
|
656
|
+
mounted: r.presence.mounted,
|
|
657
|
+
direction: i,
|
|
658
|
+
positionMethod: () => a.positionMethod ?? "absolute",
|
|
659
|
+
side: () => a.side ?? "top",
|
|
660
|
+
sideOffset: () => a.sideOffset ?? 0,
|
|
661
|
+
align: () => a.align ?? "center",
|
|
662
|
+
alignOffset: () => a.alignOffset ?? 0,
|
|
663
|
+
collisionBoundary: () => a.collisionBoundary ?? "clipping-ancestors",
|
|
664
|
+
collisionPadding: () => a.collisionPadding ?? 5,
|
|
665
|
+
arrowPadding: () => a.arrowPadding ?? 5,
|
|
666
|
+
sticky: () => a.sticky ?? !1,
|
|
667
|
+
disableAnchorTracking: () => a.disableAnchorTracking ?? !1,
|
|
668
|
+
collisionAvoidance: () => a.collisionAvoidance ?? { fallbackAxisSide: "end" },
|
|
669
|
+
adaptiveOriginMiddleware: () => r.store.track().adaptiveOriginMiddleware
|
|
670
|
+
}), f = ie(() => r.store.open(), () => d.state().isPositioned), p = V(() => ({
|
|
671
|
+
open: r.store.open(),
|
|
672
|
+
side: d.renderedSide(),
|
|
673
|
+
align: d.renderedAlign(),
|
|
674
|
+
anchorHidden: d.anchorHidden(),
|
|
675
|
+
instant: r.store.trackCursorAxis() === "none" ? r.store.track().instantType ?? (f() ? "initial" : void 0) : "tracking-cursor"
|
|
676
|
+
})), m = t(e, () => p(), (e) => (() => {
|
|
677
|
+
var t = M(Ue);
|
|
678
|
+
return I(t, e, !1), F(), t;
|
|
679
|
+
})()), h = V(() => c(e.class, p())), g = V(() => Ae({
|
|
680
|
+
...d.styles(),
|
|
681
|
+
"pointer-events": !r.store.open() || r.store.trackCursorAxis() === "both" || r.store.disableHoverablePopup() ? "none" : void 0
|
|
682
|
+
}, l(e.style, p()))), _ = V(() => n(p(), Ie)), v = W(o, "align", "alignOffset", "anchor", "arrowPadding", "render", "class", "collisionAvoidance", "collisionBoundary", "collisionPadding", "disableAnchorTracking", "positionMethod", "ref", "side", "sideOffset", "sticky", "style"), b = {
|
|
683
|
+
side: d.renderedSide,
|
|
684
|
+
align: d.renderedAlign,
|
|
685
|
+
arrowStyles: d.arrowStyles,
|
|
686
|
+
arrowUncentered: d.arrowUncentered,
|
|
687
|
+
setArrowElement: d.setArrowElement
|
|
688
|
+
};
|
|
689
|
+
return B(() => d.state().placement, (e) => {
|
|
690
|
+
r.store.context.floatingRoot.context.data.placement = e;
|
|
691
|
+
}), G(() => {
|
|
692
|
+
r.store.state.positionerElement === s() && r.store.setPositionerElement(null), delete r.store.context.floatingRoot.context.data.placement;
|
|
693
|
+
}), j(Ve, {
|
|
694
|
+
value: b,
|
|
695
|
+
get children() {
|
|
696
|
+
return j(m, P({
|
|
697
|
+
ref: [((e) => {
|
|
698
|
+
u(e), r.store.setPositionerElement(e);
|
|
699
|
+
}), a.ref],
|
|
700
|
+
role: "presentation",
|
|
701
|
+
get hidden() {
|
|
702
|
+
return !r.presence.mounted();
|
|
703
|
+
},
|
|
704
|
+
get class() {
|
|
705
|
+
return h();
|
|
706
|
+
},
|
|
707
|
+
get style() {
|
|
708
|
+
return g();
|
|
709
|
+
}
|
|
710
|
+
}, _, v));
|
|
711
|
+
}
|
|
712
|
+
});
|
|
713
|
+
}
|
|
714
|
+
function Ge(e) {
|
|
715
|
+
return typeof e == "function" ? e() : e && "current" in e ? e.current : e;
|
|
716
|
+
}
|
|
717
|
+
//#endregion
|
|
718
|
+
//#region src/tooltip/popup/TooltipPopup.tsx
|
|
719
|
+
var Ke = /* @__PURE__ */ L("<div>");
|
|
720
|
+
function qe(e) {
|
|
721
|
+
let r = $(), i = He(), a = e, o = e, s = V(() => ({
|
|
722
|
+
open: r.store.open(),
|
|
723
|
+
side: i.side(),
|
|
724
|
+
align: i.align(),
|
|
725
|
+
instant: r.store.track().instantType,
|
|
726
|
+
transitionStatus: r.store.track().transitionStatus
|
|
727
|
+
})), u = t(e, () => s(), (e) => (() => {
|
|
728
|
+
var t = M(Ke);
|
|
729
|
+
return I(t, e, !1), F(), t;
|
|
730
|
+
})()), d = V(() => c(e.class, s())), m = V(() => l(e.style, s())), h = V(() => n(s(), Le)), g = W(o, "render", "class", "onKeyDown", "ref", "style"), _ = f(p(() => a.onKeyDown), p(() => {
|
|
731
|
+
let e = r.store.state.popupProps.onKeyDown;
|
|
732
|
+
return typeof e == "function" ? e : void 0;
|
|
733
|
+
})), v = null;
|
|
734
|
+
return G(() => {
|
|
735
|
+
r.store.state.popupElement === v && r.store.setPopupElement(null);
|
|
736
|
+
}), j(u, P({
|
|
737
|
+
ref: [((e) => {
|
|
738
|
+
v = e, r.store.setPopupElement(e);
|
|
739
|
+
}), a.ref],
|
|
740
|
+
tabIndex: -1,
|
|
741
|
+
"data-base-ui-focusable": "",
|
|
742
|
+
get hidden() {
|
|
743
|
+
return !r.presence.mounted();
|
|
744
|
+
},
|
|
745
|
+
get class() {
|
|
746
|
+
return d();
|
|
747
|
+
},
|
|
748
|
+
get style() {
|
|
749
|
+
return m();
|
|
750
|
+
},
|
|
751
|
+
onKeyDown: _
|
|
752
|
+
}, h, g));
|
|
753
|
+
}
|
|
754
|
+
//#endregion
|
|
755
|
+
//#region src/tooltip/viewport/TooltipViewport.tsx
|
|
756
|
+
var Je = /* @__PURE__ */ L("<div>");
|
|
757
|
+
function Ye(e) {
|
|
758
|
+
let r = $(), i = He(), a = e, o = e, [s, u] = H(), [d, f] = H(!1), p = V(() => ({
|
|
759
|
+
activationDirection: s(),
|
|
760
|
+
transitioning: d(),
|
|
761
|
+
instant: r.store.track().instantType
|
|
762
|
+
})), m = t(e, () => p(), (e) => (() => {
|
|
763
|
+
var t = M(Je);
|
|
764
|
+
return I(t, e, !1), F(), t;
|
|
765
|
+
})()), h = V(() => c(e.class, p())), g = V(() => l(e.style, p())), _ = V(() => n(p(), ze)), y = W(o, "render", "children", "class", "ref", "style");
|
|
766
|
+
return j(m, P({
|
|
767
|
+
ref: [a.ref],
|
|
768
|
+
get class() {
|
|
769
|
+
return h();
|
|
770
|
+
},
|
|
771
|
+
get style() {
|
|
772
|
+
return g();
|
|
773
|
+
}
|
|
774
|
+
}, _, y, { get children() {
|
|
775
|
+
return j(v, {
|
|
776
|
+
get store() {
|
|
777
|
+
return r.store;
|
|
778
|
+
},
|
|
779
|
+
get side() {
|
|
780
|
+
return i.side();
|
|
781
|
+
},
|
|
782
|
+
onStateChange: (e) => {
|
|
783
|
+
u(e.activationDirection), f(e.transitioning);
|
|
784
|
+
},
|
|
785
|
+
get children() {
|
|
786
|
+
return e.children;
|
|
787
|
+
}
|
|
788
|
+
});
|
|
789
|
+
} }));
|
|
790
|
+
}
|
|
791
|
+
//#endregion
|
|
792
|
+
//#region src/tooltip/arrow/TooltipArrow.tsx
|
|
793
|
+
var Xe = /* @__PURE__ */ L("<div>");
|
|
794
|
+
function Ze(e) {
|
|
795
|
+
let r = $(), i = He(), a = e, o = e, s = V(() => ({
|
|
796
|
+
open: r.store.open(),
|
|
797
|
+
side: i.side(),
|
|
798
|
+
align: i.align(),
|
|
799
|
+
uncentered: i.arrowUncentered(),
|
|
800
|
+
instant: r.store.track().instantType
|
|
801
|
+
})), u = t(e, () => s(), (e) => (() => {
|
|
802
|
+
var t = M(Xe);
|
|
803
|
+
return I(t, e, !1), F(), t;
|
|
804
|
+
})()), d = V(() => c(e.class, s())), f = V(() => Ae(i.arrowStyles(), l(e.style, s()))), p = V(() => n(s(), Re)), m = W(o, "render", "class", "ref", "style");
|
|
805
|
+
return G(() => i.setArrowElement(null)), j(u, P({
|
|
806
|
+
ref: [((e) => i.setArrowElement(e)), a.ref],
|
|
807
|
+
"aria-hidden": "true",
|
|
808
|
+
get class() {
|
|
809
|
+
return d();
|
|
810
|
+
},
|
|
811
|
+
get style() {
|
|
812
|
+
return f();
|
|
813
|
+
}
|
|
814
|
+
}, p, m));
|
|
815
|
+
}
|
|
816
|
+
//#endregion
|
|
817
|
+
//#region src/tooltip/store/TooltipHandle.ts
|
|
818
|
+
var Qe = class extends O {
|
|
819
|
+
constructor() {
|
|
820
|
+
super("Tooltip", !0, new ge());
|
|
821
|
+
}
|
|
822
|
+
open(e) {
|
|
823
|
+
this.openByTrigger(e);
|
|
824
|
+
}
|
|
825
|
+
close() {
|
|
826
|
+
this.closePopup();
|
|
827
|
+
}
|
|
828
|
+
get isOpen() {
|
|
829
|
+
return this.attachedStore?.open() ?? !1;
|
|
830
|
+
}
|
|
831
|
+
};
|
|
832
|
+
function $e() {
|
|
833
|
+
return new Qe();
|
|
834
|
+
}
|
|
835
|
+
//#endregion
|
|
836
|
+
//#region src/tooltip/index.parts.ts
|
|
837
|
+
var et = /* @__PURE__ */ e({
|
|
838
|
+
Arrow: () => Ze,
|
|
839
|
+
Handle: () => Qe,
|
|
840
|
+
Popup: () => qe,
|
|
841
|
+
Portal: () => ke,
|
|
842
|
+
Positioner: () => We,
|
|
843
|
+
Provider: () => he,
|
|
844
|
+
Root: () => ye,
|
|
845
|
+
Trigger: () => Ce,
|
|
846
|
+
Viewport: () => Ye,
|
|
847
|
+
createHandle: () => $e
|
|
848
|
+
});
|
|
849
|
+
//#endregion
|
|
850
|
+
export { et as t };
|