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