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
|
@@ -1,844 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { getStateAttributesProps as t } from "./internals/getStateAttributesProps.js";
|
|
3
|
-
import { N as n, P as r, d as i, s as a, w as o } from "./reasons-Co5CzjKq.js";
|
|
4
|
-
import { n as s, t as c } from "./resolveStyle-XcgAuaKR.js";
|
|
5
|
-
import { createChangeEventDetails as l } from "./internals/createBaseUIEventDetails.js";
|
|
6
|
-
import { transitionStatusMapping as u } from "./internals/stateAttributesMapping.js";
|
|
7
|
-
import { composeEventHandlers as d } from "./internals/composeEventHandlers.js";
|
|
8
|
-
import { a as f, m as p, n as m, r as h } from "./dom-BEAeQ9Eb.js";
|
|
9
|
-
import { t as g } from "./PopupViewport-DgrIqQea.js";
|
|
10
|
-
import { t as _ } from "./createAnchorPositioning-DcxDXUgB.js";
|
|
11
|
-
import { c as v, i as ee, n as y, r as b, s as x, t as te } from "./FloatingTree-23B7KKPD.js";
|
|
12
|
-
import { a as S, n as ne, o as re, t as C } from "./PopupStore-DjB-wO88.js";
|
|
13
|
-
import { t as w } from "./createFocusInteraction-D4w1-235.js";
|
|
14
|
-
import { n as T, r as E, t as ie } from "./safePolygon--bbKn0c8.js";
|
|
15
|
-
import { a as ae, o as oe } from "./popupStateMapping-C9eZl19i.js";
|
|
16
|
-
import { i as se, n as D, r as O, t as k } from "./PopupHandle-CcJG4NMy.js";
|
|
17
|
-
import { t as A } from "./setRef-fXF6OIo3.js";
|
|
18
|
-
import { n as j } from "./DirectionContext-BwMabICS.js";
|
|
19
|
-
import { Dynamic as M, createComponent as N, memo as ce, mergeProps as P } from "@solidjs/web";
|
|
20
|
-
import { $REFRESH as F, Show as le, createContext as I, createEffect as L, createMemo as R, createRoot as ue, createSignal as z, createUniqueId as B, omit as V, onCleanup as H, untrack as U, useContext as W } from "solid-js";
|
|
21
|
-
//#region src/internals/overlay/createClientPoint.ts
|
|
22
|
-
function de(e) {
|
|
23
|
-
let t = null, n = null, r, i = !1, a = () => {
|
|
24
|
-
e.context.set("positionReference", e.context.state.referenceElement);
|
|
25
|
-
}, o = (r, o = !1) => {
|
|
26
|
-
if (!(e.enabled?.() ?? !0) || e.axis() === "none") {
|
|
27
|
-
a();
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
let s = e.context.context.data.openEvent;
|
|
31
|
-
if (e.context.state.open && (!s || ![
|
|
32
|
-
"mouseenter",
|
|
33
|
-
"mousemove",
|
|
34
|
-
"pointerenter",
|
|
35
|
-
"pointermove"
|
|
36
|
-
].includes(s.type))) {
|
|
37
|
-
a();
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
if (m(e.context.state.floatingElement, h(r))) {
|
|
41
|
-
i = !0;
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
if (o) i = !1;
|
|
45
|
-
else if (i) return;
|
|
46
|
-
t = r.clientX, n = r.clientY;
|
|
47
|
-
let c = e.context.state.domReferenceElement;
|
|
48
|
-
if (!c) return;
|
|
49
|
-
let l = {
|
|
50
|
-
contextElement: c,
|
|
51
|
-
getBoundingClientRect() {
|
|
52
|
-
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;
|
|
53
|
-
return {
|
|
54
|
-
x: a,
|
|
55
|
-
y: o,
|
|
56
|
-
left: a,
|
|
57
|
-
top: o,
|
|
58
|
-
right: a + s,
|
|
59
|
-
bottom: o + l,
|
|
60
|
-
width: s,
|
|
61
|
-
height: l,
|
|
62
|
-
toJSON: () => ({})
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
e.context.set("positionReference", l);
|
|
67
|
-
};
|
|
68
|
-
return L(() => ({
|
|
69
|
-
axis: e.axis(),
|
|
70
|
-
enabled: e.enabled?.() ?? !0,
|
|
71
|
-
open: e.context.track().open,
|
|
72
|
-
reference: e.context.track().domReferenceElement,
|
|
73
|
-
openEvent: e.context.context.data.openEvent
|
|
74
|
-
}), (e) => {
|
|
75
|
-
if (r?.(), r = void 0, !e.enabled || e.axis === "none" || !e.reference) {
|
|
76
|
-
a();
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
if (!e.open) return;
|
|
80
|
-
if (!e.openEvent || ![
|
|
81
|
-
"mouseenter",
|
|
82
|
-
"mousemove",
|
|
83
|
-
"pointerenter",
|
|
84
|
-
"pointermove"
|
|
85
|
-
].includes(e.openEvent.type)) {
|
|
86
|
-
a();
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
let t = p(e.reference);
|
|
90
|
-
i = !1;
|
|
91
|
-
let n = (e) => o(e);
|
|
92
|
-
return t.addEventListener("mousemove", n), r = () => t.removeEventListener("mousemove", n), r;
|
|
93
|
-
}), H(() => {
|
|
94
|
-
r?.(), e.context.set("positionReference", null);
|
|
95
|
-
}), { onMouseMove: (e) => o(e, !0) };
|
|
96
|
-
}
|
|
97
|
-
//#endregion
|
|
98
|
-
//#region src/internals/overlay/createDelayGroup.ts
|
|
99
|
-
function G(e) {
|
|
100
|
-
return typeof e == "number" ? {
|
|
101
|
-
open: e,
|
|
102
|
-
close: e
|
|
103
|
-
} : {
|
|
104
|
-
open: e?.open ?? 0,
|
|
105
|
-
close: e?.close ?? 0
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
function K(e) {
|
|
109
|
-
let t = null, n = /* @__PURE__ */ new Set(), r = !1, i = /* @__PURE__ */ new Map(), a = () => {
|
|
110
|
-
for (let [e, t] of i) t.setInstant?.(n.has(e));
|
|
111
|
-
}, o = () => {
|
|
112
|
-
let t = G(e.delay());
|
|
113
|
-
return r ? {
|
|
114
|
-
open: 0,
|
|
115
|
-
close: t.close
|
|
116
|
-
} : t;
|
|
117
|
-
}, s = () => t, c;
|
|
118
|
-
return H(() => clearTimeout(c)), {
|
|
119
|
-
delay: o,
|
|
120
|
-
currentId: s,
|
|
121
|
-
isInstant: (e) => n.has(e),
|
|
122
|
-
subscribe(e, t, r) {
|
|
123
|
-
return i.set(e, {
|
|
124
|
-
closeSibling: t,
|
|
125
|
-
setInstant: r
|
|
126
|
-
}), r?.(n.has(e)), () => i.delete(e);
|
|
127
|
-
},
|
|
128
|
-
open(e, o) {
|
|
129
|
-
clearTimeout(c);
|
|
130
|
-
let s = t;
|
|
131
|
-
if (s && s !== e) {
|
|
132
|
-
n = /* @__PURE__ */ new Set([
|
|
133
|
-
...i.keys(),
|
|
134
|
-
s,
|
|
135
|
-
e
|
|
136
|
-
]);
|
|
137
|
-
for (let [t, n] of i) t !== e && n.closeSibling !== o && n.closeSibling();
|
|
138
|
-
}
|
|
139
|
-
t = e, r = !0, a();
|
|
140
|
-
},
|
|
141
|
-
close(i) {
|
|
142
|
-
let o = new Set(n);
|
|
143
|
-
o.delete(i), n = o, a(), t === i && (clearTimeout(c), c = setTimeout(() => {
|
|
144
|
-
t === i && (t = null, n = /* @__PURE__ */ new Set(), r = !1, a());
|
|
145
|
-
}, e.timeout?.() ?? 400));
|
|
146
|
-
}
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
//#endregion
|
|
150
|
-
//#region src/tooltip/provider/TooltipProviderContext.ts
|
|
151
|
-
var q = Symbol("TooltipProviderContext"), J = I(q);
|
|
152
|
-
function fe() {
|
|
153
|
-
let e = W(J);
|
|
154
|
-
return e === q ? void 0 : e;
|
|
155
|
-
}
|
|
156
|
-
//#endregion
|
|
157
|
-
//#region src/tooltip/provider/TooltipProvider.tsx
|
|
158
|
-
function pe(e) {
|
|
159
|
-
let t = {
|
|
160
|
-
delay: () => e.delay,
|
|
161
|
-
group: K({
|
|
162
|
-
delay: () => ({
|
|
163
|
-
open: e.delay,
|
|
164
|
-
close: e.closeDelay
|
|
165
|
-
}),
|
|
166
|
-
timeout: () => e.timeout ?? 400
|
|
167
|
-
})
|
|
168
|
-
};
|
|
169
|
-
return N(J, {
|
|
170
|
-
value: t,
|
|
171
|
-
get children() {
|
|
172
|
-
return e.children;
|
|
173
|
-
}
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
//#endregion
|
|
177
|
-
//#region src/tooltip/store/TooltipStore.ts
|
|
178
|
-
var Y = class extends C {
|
|
179
|
-
triggerData = /* @__PURE__ */ new Map();
|
|
180
|
-
disabledAccessor;
|
|
181
|
-
disableHoverablePopupAccessor;
|
|
182
|
-
trackCursorAxisAccessor;
|
|
183
|
-
lastReasonAccessor;
|
|
184
|
-
setLastReason;
|
|
185
|
-
instantPhaseAccessor;
|
|
186
|
-
setInstantPhaseSignal;
|
|
187
|
-
closeOnClickAccessor;
|
|
188
|
-
setCloseOnClick;
|
|
189
|
-
closeDelayAccessor;
|
|
190
|
-
setCloseDelay;
|
|
191
|
-
delayGroup;
|
|
192
|
-
delayGroupId;
|
|
193
|
-
delayGroupOwner;
|
|
194
|
-
constructor(e) {
|
|
195
|
-
super(e), this.disabledAccessor = e.disabled, this.disableHoverablePopupAccessor = e.disableHoverablePopup, this.trackCursorAxisAccessor = e.trackCursorAxis;
|
|
196
|
-
let [t, n] = z(null, { ownedWrite: !0 });
|
|
197
|
-
this.lastReasonAccessor = t, this.setLastReason = n;
|
|
198
|
-
let [r, i] = z(!1, { ownedWrite: !0 });
|
|
199
|
-
this.instantPhaseAccessor = r, this.setInstantPhaseSignal = i;
|
|
200
|
-
let [a, o] = z(!0, { ownedWrite: !0 });
|
|
201
|
-
this.closeOnClickAccessor = a, this.setCloseOnClick = o;
|
|
202
|
-
let [s, c] = z(0, { ownedWrite: !0 });
|
|
203
|
-
this.closeDelayAccessor = s, this.setCloseDelay = c;
|
|
204
|
-
}
|
|
205
|
-
open() {
|
|
206
|
-
return !(this.disabledAccessor?.() ?? !1) && super.open();
|
|
207
|
-
}
|
|
208
|
-
rawOpen() {
|
|
209
|
-
return super.open();
|
|
210
|
-
}
|
|
211
|
-
disabled() {
|
|
212
|
-
return this.disabledAccessor();
|
|
213
|
-
}
|
|
214
|
-
disableHoverablePopup() {
|
|
215
|
-
return this.disableHoverablePopupAccessor();
|
|
216
|
-
}
|
|
217
|
-
trackCursorAxis() {
|
|
218
|
-
return this.trackCursorAxisAccessor();
|
|
219
|
-
}
|
|
220
|
-
lastOpenChangeReason() {
|
|
221
|
-
return this.lastReasonAccessor();
|
|
222
|
-
}
|
|
223
|
-
isInstantPhase() {
|
|
224
|
-
return this.instantPhaseAccessor();
|
|
225
|
-
}
|
|
226
|
-
setInstantPhase(e) {
|
|
227
|
-
this.setInstantPhaseSignal(e);
|
|
228
|
-
}
|
|
229
|
-
closeOnClick() {
|
|
230
|
-
return this.closeOnClickAccessor();
|
|
231
|
-
}
|
|
232
|
-
closeDelay() {
|
|
233
|
-
return this.closeDelayAccessor();
|
|
234
|
-
}
|
|
235
|
-
configureDelayGroup(e, t, n) {
|
|
236
|
-
this.delayGroup = e, this.delayGroupId = t, this.delayGroupOwner = n;
|
|
237
|
-
}
|
|
238
|
-
syncDelayGroup(e) {
|
|
239
|
-
!this.delayGroup || this.delayGroupId === void 0 || (e ? this.delayGroup.open(this.delayGroupId, this.delayGroupOwner) : this.delayGroup.close(this.delayGroupId));
|
|
240
|
-
}
|
|
241
|
-
setTriggerData(e, t) {
|
|
242
|
-
this.triggerData.set(e, t);
|
|
243
|
-
}
|
|
244
|
-
removeTriggerData(e) {
|
|
245
|
-
this.triggerData.delete(e);
|
|
246
|
-
}
|
|
247
|
-
syncTriggerData(e, t) {
|
|
248
|
-
let n = this.triggerData.get(e ?? "");
|
|
249
|
-
this.setCloseOnClick(n?.closeOnClick ?? !0), this.setCloseDelay(n?.closeDelay ?? 0), n && t && this.set("payload", n.payload);
|
|
250
|
-
}
|
|
251
|
-
setOpen(e, t) {
|
|
252
|
-
if (e && this.disabled()) return !1;
|
|
253
|
-
let n = super.setOpen(e, t);
|
|
254
|
-
return n && (this.setLastReason(t.reason), this.syncDelayGroup(this.open())), n;
|
|
255
|
-
}
|
|
256
|
-
cancelPendingOpen(e) {
|
|
257
|
-
this.context.floatingRoot.dispatchOpenChange(!1, l(r, e));
|
|
258
|
-
}
|
|
259
|
-
}, me = class extends D {
|
|
260
|
-
disabled() {
|
|
261
|
-
return !1;
|
|
262
|
-
}
|
|
263
|
-
disableHoverablePopup() {
|
|
264
|
-
return !1;
|
|
265
|
-
}
|
|
266
|
-
trackCursorAxis() {
|
|
267
|
-
return "none";
|
|
268
|
-
}
|
|
269
|
-
closeOnClick() {
|
|
270
|
-
return !0;
|
|
271
|
-
}
|
|
272
|
-
closeDelay() {
|
|
273
|
-
return 0;
|
|
274
|
-
}
|
|
275
|
-
setTriggerData(e, t) {}
|
|
276
|
-
removeTriggerData(e) {}
|
|
277
|
-
syncTriggerData(e, t) {}
|
|
278
|
-
cancelPendingOpen(e) {}
|
|
279
|
-
}, X = Symbol("TooltipRootContext"), Z = I(X);
|
|
280
|
-
function Q(e = !1) {
|
|
281
|
-
let t = W(Z);
|
|
282
|
-
if (t === X) {
|
|
283
|
-
if (e) return;
|
|
284
|
-
throw Error("Base UI: TooltipRootContext is missing. Tooltip parts must be placed within <Tooltip.Root>.");
|
|
285
|
-
}
|
|
286
|
-
return t;
|
|
287
|
-
}
|
|
288
|
-
//#endregion
|
|
289
|
-
//#region src/tooltip/root/TooltipRoot.tsx
|
|
290
|
-
function he(e) {
|
|
291
|
-
let t = v(), n = x(), r = fe(), s = t ?? new b(), c = B(), u = Symbol("TooltipRoot"), d = B(), f = U(() => e.open !== void 0), p = U(() => e.triggerId !== void 0), m = new Y({
|
|
292
|
-
controlledOpen: () => f ? e.open : void 0,
|
|
293
|
-
controlledTriggerId: () => p ? e.triggerId : void 0,
|
|
294
|
-
disabled: () => e.disabled ?? !1,
|
|
295
|
-
disableHoverablePopup: () => e.disableHoverablePopup ?? !1,
|
|
296
|
-
trackCursorAxis: () => e.trackCursorAxis ?? "none",
|
|
297
|
-
floatingId: d,
|
|
298
|
-
nested: n !== null,
|
|
299
|
-
nodeId: c,
|
|
300
|
-
onOpenChange: () => e.onOpenChange,
|
|
301
|
-
onOpenChangeComplete: () => e.onOpenChangeComplete
|
|
302
|
-
});
|
|
303
|
-
m.update({
|
|
304
|
-
open: f ? !!U(() => e.open) : !!U(() => e.defaultOpen),
|
|
305
|
-
activeTriggerId: U(() => e.defaultTriggerId ?? null)
|
|
306
|
-
});
|
|
307
|
-
let h = m.access((e) => e.payload), g = ee({
|
|
308
|
-
tree: s,
|
|
309
|
-
id: c,
|
|
310
|
-
parentId: n,
|
|
311
|
-
context: () => m.context.floatingRoot
|
|
312
|
-
}), _ = S(m, () => m.track().popupElement), ne = {
|
|
313
|
-
store: m,
|
|
314
|
-
tree: s,
|
|
315
|
-
presence: _
|
|
316
|
-
};
|
|
317
|
-
m.configureTriggerUnmount({ closeOnActiveTriggerUnmount: !0 }), O(() => e.handle, m);
|
|
318
|
-
let C = re({
|
|
319
|
-
context: m.context.floatingRoot,
|
|
320
|
-
tree: () => s,
|
|
321
|
-
enabled: () => !m.disabled(),
|
|
322
|
-
referencePress: () => m.closeOnClick()
|
|
323
|
-
}), w = de({
|
|
324
|
-
context: m.context.floatingRoot,
|
|
325
|
-
axis: () => m.trackCursorAxis(),
|
|
326
|
-
enabled: () => !m.disabled() && m.trackCursorAxis() !== "none"
|
|
327
|
-
});
|
|
328
|
-
function T(e) {
|
|
329
|
-
m.closeOnClick() && (m.open() ? C.onReferencePress(e) : m.cancelPendingOpen(e));
|
|
330
|
-
}
|
|
331
|
-
if (m.setInteractionProps({
|
|
332
|
-
activeTriggerProps: {
|
|
333
|
-
onClick: T,
|
|
334
|
-
onKeyDown: C.onKeyDown,
|
|
335
|
-
onMouseMove: w.onMouseMove,
|
|
336
|
-
onPointerDown: T
|
|
337
|
-
},
|
|
338
|
-
inactiveTriggerProps: {
|
|
339
|
-
onClick: T,
|
|
340
|
-
onKeyDown: C.onKeyDown,
|
|
341
|
-
onMouseMove: w.onMouseMove,
|
|
342
|
-
onPointerDown: T
|
|
343
|
-
},
|
|
344
|
-
popupProps: { onKeyDown: C.onKeyDown }
|
|
345
|
-
}), L(() => ({
|
|
346
|
-
open: m.open(),
|
|
347
|
-
activeTriggerId: m.activeTriggerId()
|
|
348
|
-
}), () => U(() => m.reconcileTriggers())), L(() => ({
|
|
349
|
-
disabled: m.disabled(),
|
|
350
|
-
rawOpen: m.rawOpen()
|
|
351
|
-
}), (e) => {
|
|
352
|
-
e.disabled && e.rawOpen && m.setOpen(!1, l(a));
|
|
353
|
-
}), r) {
|
|
354
|
-
let e = !0, t = () => {
|
|
355
|
-
m.open() && queueMicrotask(() => {
|
|
356
|
-
e && r.group.currentId() !== u && m.open() && m.setOpen(!1, l(o));
|
|
357
|
-
});
|
|
358
|
-
}, n = r.group.subscribe(u, t, (e) => m.setInstantPhase(e));
|
|
359
|
-
m.configureDelayGroup(r.group, u, t), m.syncDelayGroup(U(() => m.open())), H(() => {
|
|
360
|
-
e = !1, n();
|
|
361
|
-
}), f && L(() => m.open(), (e) => queueMicrotask(() => m.syncDelayGroup(e)));
|
|
362
|
-
}
|
|
363
|
-
let E = null;
|
|
364
|
-
L(() => ({
|
|
365
|
-
transitionStatus: m.track().transitionStatus,
|
|
366
|
-
instantPhase: m.isInstantPhase(),
|
|
367
|
-
reason: m.lastOpenChangeReason(),
|
|
368
|
-
instantType: m.track().instantType
|
|
369
|
-
}), (e) => {
|
|
370
|
-
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);
|
|
371
|
-
}), L(() => ({
|
|
372
|
-
open: m.open(),
|
|
373
|
-
activeTriggerId: m.activeTriggerId()
|
|
374
|
-
}), (e) => {
|
|
375
|
-
e.open && e.activeTriggerId == null && m.set("payload", void 0);
|
|
376
|
-
});
|
|
377
|
-
let ie = {
|
|
378
|
-
unmount: _.forceUnmount,
|
|
379
|
-
close() {
|
|
380
|
-
m.setOpen(!1, l(i));
|
|
381
|
-
}
|
|
382
|
-
};
|
|
383
|
-
L(() => e.actionsRef, (e) => e?.(ie));
|
|
384
|
-
function ae() {
|
|
385
|
-
let t = R(() => e.children), n = U(t), r = n;
|
|
386
|
-
return typeof n == "function" && (r = n.name === "bound read" && Object.prototype.hasOwnProperty.call(n, F) ? ce(() => t()) : U(() => n({ payload: h }))), r;
|
|
387
|
-
}
|
|
388
|
-
return H(() => m.clearInteractionProps()), N(Z, {
|
|
389
|
-
value: ne,
|
|
390
|
-
get children() {
|
|
391
|
-
return N(y, {
|
|
392
|
-
value: s,
|
|
393
|
-
get children() {
|
|
394
|
-
return N(te, {
|
|
395
|
-
get value() {
|
|
396
|
-
return g.id ?? null;
|
|
397
|
-
},
|
|
398
|
-
get children() {
|
|
399
|
-
return N(ae, {});
|
|
400
|
-
}
|
|
401
|
-
});
|
|
402
|
-
}
|
|
403
|
-
});
|
|
404
|
-
}
|
|
405
|
-
});
|
|
406
|
-
}
|
|
407
|
-
//#endregion
|
|
408
|
-
//#region src/tooltip/trigger/TooltipTrigger.tsx
|
|
409
|
-
var ge = 600, _e = "data-base-ui-tooltip-trigger";
|
|
410
|
-
function ve(e) {
|
|
411
|
-
let i = Q(!0), a = fe(), o = e;
|
|
412
|
-
if (!i && !U(() => o.handle)) throw Error("Base UI: <Tooltip.Trigger> must be either used within a <Tooltip.Root> component or provided with a handle.");
|
|
413
|
-
let u = e, p = `base-ui-${B()}`, g = R(() => o.id || p), [_, v] = z(null, { ownedWrite: !0 }), ee = se(() => o.handle), y = R(() => ee() ?? i?.store ?? new me()), b = R(() => o.disabled ?? y().disabled()), x = R(() => y().disabled() || (o.disabled ?? !1)), te = R(() => y().open() && y().activeTriggerId() === g()), S = R(() => ({ open: te() })), re = R(() => s(e.class, S())), C = R(() => c(e.style, S())), T = R(() => t(S(), ae)), oe = V(u, "as", "class", "closeDelay", "closeOnClick", "delay", "disabled", "handle", "id", "onBlur", "onClick", "onFocus", "onKeyDown", "onMouseLeave", "onMouseMove", "onMouseOver", "onPointerDown", "onPointerEnter", "payload", "ref", "style"), D, O, k = !1, A = "", j, ce = R(() => ({
|
|
414
|
-
payload: o.payload,
|
|
415
|
-
closeOnClick: o.closeOnClick ?? !0,
|
|
416
|
-
closeDelay: o.closeDelay ?? 0
|
|
417
|
-
}));
|
|
418
|
-
ne(y, g, _, () => ({ payload: o.payload })), L(() => {
|
|
419
|
-
let e = y();
|
|
420
|
-
return {
|
|
421
|
-
store: e,
|
|
422
|
-
id: g(),
|
|
423
|
-
data: ce(),
|
|
424
|
-
activeId: e.activeTriggerId(),
|
|
425
|
-
open: e.open()
|
|
426
|
-
};
|
|
427
|
-
}, (e) => (e.store.setTriggerData(e.id, e.data), e.store.syncTriggerData(e.activeId, e.open), () => e.store.removeTriggerData(e.id)));
|
|
428
|
-
function F() {
|
|
429
|
-
return a ? a.group.delay().open === 0 ? 0 : o.delay ?? a.delay() ?? ge : o.delay ?? ge;
|
|
430
|
-
}
|
|
431
|
-
function le() {
|
|
432
|
-
return o.closeDelay === void 0 ? a?.group.delay().close ?? 0 : o.closeDelay;
|
|
433
|
-
}
|
|
434
|
-
L(() => ({
|
|
435
|
-
store: y(),
|
|
436
|
-
element: _()
|
|
437
|
-
}), (e) => {
|
|
438
|
-
if (!(e.store instanceof Y) || !e.element) {
|
|
439
|
-
D = void 0, O = void 0;
|
|
440
|
-
return;
|
|
441
|
-
}
|
|
442
|
-
let t = e.store;
|
|
443
|
-
return ue((e) => (O = E({
|
|
444
|
-
context: t.context.floatingRoot,
|
|
445
|
-
reference: _,
|
|
446
|
-
floating: () => t.track().positionerElement,
|
|
447
|
-
tree: () => i?.tree,
|
|
448
|
-
enabled: () => !x(),
|
|
449
|
-
floatingEnabled: () => !x() && t.activeTriggerId() === g(),
|
|
450
|
-
delay: () => ({
|
|
451
|
-
open: F(),
|
|
452
|
-
close: le()
|
|
453
|
-
}),
|
|
454
|
-
restMs: () => F(),
|
|
455
|
-
handleClose: () => t.disableHoverablePopup() || t.trackCursorAxis() === "both" ? void 0 : ie(),
|
|
456
|
-
mouseOnly: () => !0,
|
|
457
|
-
shouldOpen: () => !k
|
|
458
|
-
}), D = w({
|
|
459
|
-
context: t.context.floatingRoot,
|
|
460
|
-
enabled: () => !x()
|
|
461
|
-
}), () => {
|
|
462
|
-
e(), D = void 0, O = void 0;
|
|
463
|
-
}));
|
|
464
|
-
});
|
|
465
|
-
function I(e) {
|
|
466
|
-
let t = _(), n = ye(e);
|
|
467
|
-
return !!(t && n && n !== t && m(t, n));
|
|
468
|
-
}
|
|
469
|
-
function W(e) {
|
|
470
|
-
let t = k, r = h(e);
|
|
471
|
-
k = f(r) && I(r), k && (O?.cancelPendingOpen(), clearTimeout(j));
|
|
472
|
-
let i = y();
|
|
473
|
-
if (k && i.open() && i instanceof Y && i.lastOpenChangeReason() === "trigger-hover") {
|
|
474
|
-
i.setOpen(!1, l(n, e));
|
|
475
|
-
return;
|
|
476
|
-
}
|
|
477
|
-
let a = _();
|
|
478
|
-
if (t && !k && a && f(r) && m(a, r) && !x() && !i.open() && be(A)) {
|
|
479
|
-
let t = () => {
|
|
480
|
-
!k && !x() && !i.open() && i.setOpen(!0, l(n, e, a));
|
|
481
|
-
}, r = F();
|
|
482
|
-
clearTimeout(j), r === 0 ? t() : j = setTimeout(t, r);
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
function de(e) {
|
|
486
|
-
let t = h(e);
|
|
487
|
-
(!f(t) || !I(t)) && D?.onFocus(e);
|
|
488
|
-
}
|
|
489
|
-
function G(e) {
|
|
490
|
-
let t = y();
|
|
491
|
-
(o.closeOnClick ?? !0) && (t.open() ? t.setOpen(!1, l(r, e, _() ?? void 0)) : (t.cancelPendingOpen(e), O?.cancelPendingOpen()));
|
|
492
|
-
}
|
|
493
|
-
function K(e) {
|
|
494
|
-
let t = y();
|
|
495
|
-
if (!(t instanceof Y)) return;
|
|
496
|
-
let n = (t.activeTriggerId() === g() ? t.state.activeTriggerProps : t.state.inactiveTriggerProps)[e];
|
|
497
|
-
return typeof n == "function" ? n : void 0;
|
|
498
|
-
}
|
|
499
|
-
function q(e) {
|
|
500
|
-
A = e.pointerType, G(e);
|
|
501
|
-
}
|
|
502
|
-
function J(e) {
|
|
503
|
-
A = e.pointerType;
|
|
504
|
-
}
|
|
505
|
-
function pe() {
|
|
506
|
-
return K("onKeyDown");
|
|
507
|
-
}
|
|
508
|
-
function X() {
|
|
509
|
-
return K("onMouseMove");
|
|
510
|
-
}
|
|
511
|
-
let Z = d(() => o.onBlur, () => (e) => D?.onBlur(e)), he = d(() => o.onClick, () => G), _e = d(() => o.onFocus, () => de), ve = d(() => o.onKeyDown, pe), $ = d(() => o.onMouseLeave, () => () => {
|
|
512
|
-
k = !1, A = "", clearTimeout(j), D?.onPointerLeave();
|
|
513
|
-
}), xe = d(() => o.onMouseMove, X), Se = d(() => o.onMouseOver, () => W), Ce = d(() => o.onPointerDown, () => q), we = d(() => o.onPointerEnter, () => J);
|
|
514
|
-
return H(() => clearTimeout(j)), N(M, P({
|
|
515
|
-
get component() {
|
|
516
|
-
return e.as ?? "button";
|
|
517
|
-
},
|
|
518
|
-
ref: [((e) => v(e)), o.ref],
|
|
519
|
-
get id() {
|
|
520
|
-
return g();
|
|
521
|
-
},
|
|
522
|
-
type: "button",
|
|
523
|
-
get "data-trigger-disabled"() {
|
|
524
|
-
return b() ? "" : void 0;
|
|
525
|
-
},
|
|
526
|
-
get "data-base-ui-tooltip-trigger"() {
|
|
527
|
-
return b() ? void 0 : "";
|
|
528
|
-
},
|
|
529
|
-
get class() {
|
|
530
|
-
return re();
|
|
531
|
-
},
|
|
532
|
-
get style() {
|
|
533
|
-
return C();
|
|
534
|
-
},
|
|
535
|
-
onBlur: Z,
|
|
536
|
-
onClick: he,
|
|
537
|
-
onFocus: _e,
|
|
538
|
-
onKeyDown: ve,
|
|
539
|
-
onMouseLeave: $,
|
|
540
|
-
onMouseMove: xe,
|
|
541
|
-
onMouseOver: Se,
|
|
542
|
-
onPointerDown: Ce,
|
|
543
|
-
onPointerEnter: we
|
|
544
|
-
}, T, oe));
|
|
545
|
-
}
|
|
546
|
-
function ye(e) {
|
|
547
|
-
let t = e;
|
|
548
|
-
for (; t;) {
|
|
549
|
-
let e = t.closest(`[${_e}]`);
|
|
550
|
-
if (e) return e;
|
|
551
|
-
let n = t.getRootNode();
|
|
552
|
-
t = "host" in n && f(n.host) ? n.host : null;
|
|
553
|
-
}
|
|
554
|
-
return null;
|
|
555
|
-
}
|
|
556
|
-
function be(e) {
|
|
557
|
-
return e === "" || e === "mouse" || e === "pen";
|
|
558
|
-
}
|
|
559
|
-
//#endregion
|
|
560
|
-
//#region src/tooltip/portal/TooltipPortalContext.ts
|
|
561
|
-
var $ = Symbol("TooltipPortalContext"), xe = I($);
|
|
562
|
-
function Se() {
|
|
563
|
-
let e = W(xe);
|
|
564
|
-
if (e === $) throw Error("Base UI: <Tooltip.Portal> is missing.");
|
|
565
|
-
return e;
|
|
566
|
-
}
|
|
567
|
-
//#endregion
|
|
568
|
-
//#region src/tooltip/portal/TooltipPortal.tsx
|
|
569
|
-
function Ce(e) {
|
|
570
|
-
let t = Q(), n = e, r = e, i = R(() => n.keepMounted ?? !1), a = R(() => t.presence.mounted() || i()), o = {}, l = R(() => s(e.class, o)), u = R(() => c(e.style, o)), d = V(r, "as", "class", "container", "keepMounted", "ref", "style"), f = { keepMounted: i };
|
|
571
|
-
return N(le, {
|
|
572
|
-
get when() {
|
|
573
|
-
return a();
|
|
574
|
-
},
|
|
575
|
-
get children() {
|
|
576
|
-
return N(xe, {
|
|
577
|
-
value: f,
|
|
578
|
-
get children() {
|
|
579
|
-
return N(oe, P({
|
|
580
|
-
get as() {
|
|
581
|
-
return e.as;
|
|
582
|
-
},
|
|
583
|
-
lite: !0,
|
|
584
|
-
get container() {
|
|
585
|
-
return n.container;
|
|
586
|
-
},
|
|
587
|
-
ref: (e) => {
|
|
588
|
-
n.ref && A(n.ref, e);
|
|
589
|
-
},
|
|
590
|
-
get class() {
|
|
591
|
-
return l();
|
|
592
|
-
},
|
|
593
|
-
get style() {
|
|
594
|
-
return u();
|
|
595
|
-
}
|
|
596
|
-
}, d, { get children() {
|
|
597
|
-
return e.children;
|
|
598
|
-
} }));
|
|
599
|
-
}
|
|
600
|
-
});
|
|
601
|
-
}
|
|
602
|
-
});
|
|
603
|
-
}
|
|
604
|
-
//#endregion
|
|
605
|
-
//#region src/tooltip/utils/mergeTooltipStyles.ts
|
|
606
|
-
function we(e, t) {
|
|
607
|
-
if (typeof t == "string") {
|
|
608
|
-
let n = Object.entries(e).filter((e) => e[1] != null).map(([e, t]) => `${e}:${String(t)}`).join(";");
|
|
609
|
-
return n ? `${n};${t}` : t;
|
|
610
|
-
}
|
|
611
|
-
return {
|
|
612
|
-
...e,
|
|
613
|
-
...t || void 0
|
|
614
|
-
};
|
|
615
|
-
}
|
|
616
|
-
//#endregion
|
|
617
|
-
//#region src/tooltip/utils/stateAttributesMapping.ts
|
|
618
|
-
var Te = { "data-open": "" }, Ee = { "data-closed": "" }, De = { "data-anchor-hidden": "" }, Oe = { "data-uncentered": "" }, ke = { "data-transitioning": "" }, Ae = {
|
|
619
|
-
open: (e) => e ? Te : Ee,
|
|
620
|
-
side: (e) => ({ "data-side": e }),
|
|
621
|
-
align: (e) => ({ "data-align": e }),
|
|
622
|
-
anchorHidden: (e) => e ? De : null,
|
|
623
|
-
instant: (e) => e ? { "data-instant": e } : null
|
|
624
|
-
}, je = {
|
|
625
|
-
open: (e) => e ? Te : Ee,
|
|
626
|
-
side: (e) => ({ "data-side": e }),
|
|
627
|
-
align: (e) => ({ "data-align": e }),
|
|
628
|
-
instant: (e) => e ? { "data-instant": e } : null,
|
|
629
|
-
...u
|
|
630
|
-
}, Me = {
|
|
631
|
-
open: (e) => e ? Te : Ee,
|
|
632
|
-
side: (e) => ({ "data-side": e }),
|
|
633
|
-
align: (e) => ({ "data-align": e }),
|
|
634
|
-
uncentered: (e) => e ? Oe : null,
|
|
635
|
-
instant: (e) => e ? { "data-instant": e } : null
|
|
636
|
-
}, Ne = {
|
|
637
|
-
activationDirection: (e) => e === void 0 ? null : { "data-activation-direction": e },
|
|
638
|
-
transitioning: (e) => e ? ke : null,
|
|
639
|
-
instant: (e) => e ? { "data-instant": e } : null
|
|
640
|
-
}, Pe = Symbol("TooltipPositionerContext"), Fe = I(Pe);
|
|
641
|
-
function Ie() {
|
|
642
|
-
let e = W(Fe);
|
|
643
|
-
if (e === Pe) throw Error("Base UI: TooltipPositionerContext is missing. TooltipPositioner parts must be placed within <Tooltip.Positioner>.");
|
|
644
|
-
return e;
|
|
645
|
-
}
|
|
646
|
-
//#endregion
|
|
647
|
-
//#region src/tooltip/positioner/TooltipPositioner.tsx
|
|
648
|
-
function Le(e) {
|
|
649
|
-
Se();
|
|
650
|
-
let n = Q(), r = j(), i = e, a = e, [o, l] = z(null, { ownedWrite: !0 }), u = _({
|
|
651
|
-
reference: () => Re(i.anchor) ?? n.store.context.floatingRoot.referenceElement(),
|
|
652
|
-
floating: o,
|
|
653
|
-
mounted: n.presence.mounted,
|
|
654
|
-
direction: r,
|
|
655
|
-
positionMethod: () => i.positionMethod ?? "absolute",
|
|
656
|
-
side: () => i.side ?? "top",
|
|
657
|
-
sideOffset: () => i.sideOffset ?? 0,
|
|
658
|
-
align: () => i.align ?? "center",
|
|
659
|
-
alignOffset: () => i.alignOffset ?? 0,
|
|
660
|
-
collisionBoundary: () => i.collisionBoundary ?? "clipping-ancestors",
|
|
661
|
-
collisionPadding: () => i.collisionPadding ?? 5,
|
|
662
|
-
arrowPadding: () => i.arrowPadding ?? 5,
|
|
663
|
-
sticky: () => i.sticky ?? !1,
|
|
664
|
-
disableAnchorTracking: () => i.disableAnchorTracking ?? !1,
|
|
665
|
-
collisionAvoidance: () => i.collisionAvoidance ?? { fallbackAxisSide: "end" },
|
|
666
|
-
adaptiveOriginMiddleware: () => n.store.track().adaptiveOriginMiddleware
|
|
667
|
-
}), d = T(() => n.store.open(), () => u.state().isPositioned), f = R(() => ({
|
|
668
|
-
open: n.store.open(),
|
|
669
|
-
side: u.renderedSide(),
|
|
670
|
-
align: u.renderedAlign(),
|
|
671
|
-
anchorHidden: u.anchorHidden(),
|
|
672
|
-
instant: n.store.trackCursorAxis() === "none" ? n.store.track().instantType ?? (d() ? "initial" : void 0) : "tracking-cursor"
|
|
673
|
-
})), p = R(() => s(e.class, f())), m = R(() => we({
|
|
674
|
-
...u.styles(),
|
|
675
|
-
"pointer-events": !n.store.open() || n.store.trackCursorAxis() === "both" || n.store.disableHoverablePopup() ? "none" : void 0
|
|
676
|
-
}, c(e.style, f()))), h = R(() => t(f(), Ae)), g = V(a, "align", "alignOffset", "anchor", "arrowPadding", "as", "class", "collisionAvoidance", "collisionBoundary", "collisionPadding", "disableAnchorTracking", "positionMethod", "ref", "side", "sideOffset", "sticky", "style"), v = {
|
|
677
|
-
side: u.renderedSide,
|
|
678
|
-
align: u.renderedAlign,
|
|
679
|
-
arrowStyles: u.arrowStyles,
|
|
680
|
-
arrowUncentered: u.arrowUncentered,
|
|
681
|
-
setArrowElement: u.setArrowElement
|
|
682
|
-
};
|
|
683
|
-
return L(() => u.state().placement, (e) => {
|
|
684
|
-
n.store.context.floatingRoot.context.data.placement = e;
|
|
685
|
-
}), H(() => {
|
|
686
|
-
n.store.state.positionerElement === o() && n.store.setPositionerElement(null), delete n.store.context.floatingRoot.context.data.placement;
|
|
687
|
-
}), N(Fe, {
|
|
688
|
-
value: v,
|
|
689
|
-
get children() {
|
|
690
|
-
return N(M, P({
|
|
691
|
-
get component() {
|
|
692
|
-
return e.as ?? "div";
|
|
693
|
-
},
|
|
694
|
-
ref: [((e) => {
|
|
695
|
-
l(e), n.store.setPositionerElement(e);
|
|
696
|
-
}), i.ref],
|
|
697
|
-
role: "presentation",
|
|
698
|
-
get hidden() {
|
|
699
|
-
return !n.presence.mounted();
|
|
700
|
-
},
|
|
701
|
-
get class() {
|
|
702
|
-
return p();
|
|
703
|
-
},
|
|
704
|
-
get style() {
|
|
705
|
-
return m();
|
|
706
|
-
}
|
|
707
|
-
}, h, g));
|
|
708
|
-
}
|
|
709
|
-
});
|
|
710
|
-
}
|
|
711
|
-
function Re(e) {
|
|
712
|
-
return typeof e == "function" ? e() : e && "current" in e ? e.current : e;
|
|
713
|
-
}
|
|
714
|
-
//#endregion
|
|
715
|
-
//#region src/tooltip/popup/TooltipPopup.tsx
|
|
716
|
-
function ze(e) {
|
|
717
|
-
let n = Q(), r = Ie(), i = e, a = e, o = R(() => ({
|
|
718
|
-
open: n.store.open(),
|
|
719
|
-
side: r.side(),
|
|
720
|
-
align: r.align(),
|
|
721
|
-
instant: n.store.track().instantType,
|
|
722
|
-
transitionStatus: n.store.track().transitionStatus
|
|
723
|
-
})), l = R(() => s(e.class, o())), u = R(() => c(e.style, o())), f = R(() => t(o(), je)), p = V(a, "as", "class", "onKeyDown", "ref", "style"), m = d(() => i.onKeyDown, () => {
|
|
724
|
-
let e = n.store.state.popupProps.onKeyDown;
|
|
725
|
-
return typeof e == "function" ? e : void 0;
|
|
726
|
-
}), h = null;
|
|
727
|
-
return H(() => {
|
|
728
|
-
n.store.state.popupElement === h && n.store.setPopupElement(null);
|
|
729
|
-
}), N(M, P({
|
|
730
|
-
get component() {
|
|
731
|
-
return e.as ?? "div";
|
|
732
|
-
},
|
|
733
|
-
ref: [((e) => {
|
|
734
|
-
h = e, n.store.setPopupElement(e);
|
|
735
|
-
}), i.ref],
|
|
736
|
-
tabIndex: -1,
|
|
737
|
-
"data-base-ui-focusable": "",
|
|
738
|
-
get hidden() {
|
|
739
|
-
return !n.presence.mounted();
|
|
740
|
-
},
|
|
741
|
-
get class() {
|
|
742
|
-
return l();
|
|
743
|
-
},
|
|
744
|
-
get style() {
|
|
745
|
-
return u();
|
|
746
|
-
},
|
|
747
|
-
onKeyDown: m
|
|
748
|
-
}, f, p));
|
|
749
|
-
}
|
|
750
|
-
//#endregion
|
|
751
|
-
//#region src/tooltip/viewport/TooltipViewport.tsx
|
|
752
|
-
function Be(e) {
|
|
753
|
-
let n = Q(), r = Ie(), i = e, a = e, [o, l] = z(), [u, d] = z(!1), f = R(() => ({
|
|
754
|
-
activationDirection: o(),
|
|
755
|
-
transitioning: u(),
|
|
756
|
-
instant: n.store.track().instantType
|
|
757
|
-
})), p = R(() => s(e.class, f())), m = R(() => c(e.style, f())), h = R(() => t(f(), Ne)), _ = V(a, "as", "children", "class", "ref", "style");
|
|
758
|
-
return N(M, P({
|
|
759
|
-
get component() {
|
|
760
|
-
return e.as ?? "div";
|
|
761
|
-
},
|
|
762
|
-
ref: [i.ref],
|
|
763
|
-
get class() {
|
|
764
|
-
return p();
|
|
765
|
-
},
|
|
766
|
-
get style() {
|
|
767
|
-
return m();
|
|
768
|
-
}
|
|
769
|
-
}, h, _, { get children() {
|
|
770
|
-
return N(g, {
|
|
771
|
-
get store() {
|
|
772
|
-
return n.store;
|
|
773
|
-
},
|
|
774
|
-
get side() {
|
|
775
|
-
return r.side();
|
|
776
|
-
},
|
|
777
|
-
onStateChange: (e) => {
|
|
778
|
-
l(e.activationDirection), d(e.transitioning);
|
|
779
|
-
},
|
|
780
|
-
get children() {
|
|
781
|
-
return e.children;
|
|
782
|
-
}
|
|
783
|
-
});
|
|
784
|
-
} }));
|
|
785
|
-
}
|
|
786
|
-
//#endregion
|
|
787
|
-
//#region src/tooltip/arrow/TooltipArrow.tsx
|
|
788
|
-
function Ve(e) {
|
|
789
|
-
let n = Q(), r = Ie(), i = e, a = e, o = R(() => ({
|
|
790
|
-
open: n.store.open(),
|
|
791
|
-
side: r.side(),
|
|
792
|
-
align: r.align(),
|
|
793
|
-
uncentered: r.arrowUncentered(),
|
|
794
|
-
instant: n.store.track().instantType
|
|
795
|
-
})), l = R(() => s(e.class, o())), u = R(() => we(r.arrowStyles(), c(e.style, o()))), d = R(() => t(o(), Me)), f = V(a, "as", "class", "ref", "style");
|
|
796
|
-
return H(() => r.setArrowElement(null)), N(M, P({
|
|
797
|
-
get component() {
|
|
798
|
-
return e.as ?? "div";
|
|
799
|
-
},
|
|
800
|
-
ref: [((e) => r.setArrowElement(e)), i.ref],
|
|
801
|
-
"aria-hidden": "true",
|
|
802
|
-
get class() {
|
|
803
|
-
return l();
|
|
804
|
-
},
|
|
805
|
-
get style() {
|
|
806
|
-
return u();
|
|
807
|
-
}
|
|
808
|
-
}, d, f));
|
|
809
|
-
}
|
|
810
|
-
//#endregion
|
|
811
|
-
//#region src/tooltip/store/TooltipHandle.ts
|
|
812
|
-
var He = class extends k {
|
|
813
|
-
constructor() {
|
|
814
|
-
super("Tooltip", !0, new me());
|
|
815
|
-
}
|
|
816
|
-
open(e) {
|
|
817
|
-
this.openByTrigger(e);
|
|
818
|
-
}
|
|
819
|
-
close() {
|
|
820
|
-
this.closePopup();
|
|
821
|
-
}
|
|
822
|
-
get isOpen() {
|
|
823
|
-
return this.attachedStore?.open() ?? !1;
|
|
824
|
-
}
|
|
825
|
-
};
|
|
826
|
-
function Ue() {
|
|
827
|
-
return new He();
|
|
828
|
-
}
|
|
829
|
-
//#endregion
|
|
830
|
-
//#region src/tooltip/index.parts.ts
|
|
831
|
-
var We = /* @__PURE__ */ e({
|
|
832
|
-
Arrow: () => Ve,
|
|
833
|
-
Handle: () => He,
|
|
834
|
-
Popup: () => ze,
|
|
835
|
-
Portal: () => Ce,
|
|
836
|
-
Positioner: () => Le,
|
|
837
|
-
Provider: () => pe,
|
|
838
|
-
Root: () => he,
|
|
839
|
-
Trigger: () => ve,
|
|
840
|
-
Viewport: () => Be,
|
|
841
|
-
createHandle: () => Ue
|
|
842
|
-
});
|
|
843
|
-
//#endregion
|
|
844
|
-
export { We as t };
|