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
package/dist/lib/client/index.js
CHANGED
|
@@ -1,43 +1,45 @@
|
|
|
1
|
-
import { t as e } from "./
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { t as n } from "./
|
|
4
|
-
import { t as r } from "./
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { t as o } from "./
|
|
8
|
-
import { t as s } from "./
|
|
9
|
-
import { t as c } from "./
|
|
10
|
-
import { t as l } from "./checkbox-
|
|
11
|
-
import { t as u } from "./
|
|
12
|
-
import { t as d } from "./
|
|
13
|
-
import {
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import { t as
|
|
24
|
-
import { t as
|
|
25
|
-
import { t as
|
|
26
|
-
import { t as
|
|
27
|
-
import { t as
|
|
28
|
-
import { t as
|
|
29
|
-
import { t as
|
|
30
|
-
import { t as
|
|
31
|
-
import { t as
|
|
32
|
-
import { t as
|
|
33
|
-
import { t as
|
|
34
|
-
import { t as
|
|
1
|
+
import { t as e } from "./useRender-CxZ8PI-g.js";
|
|
2
|
+
import { t } from "./accordion-CA2DfX67.js";
|
|
3
|
+
import { t as n } from "./tooltip-h2r2_Xuo.js";
|
|
4
|
+
import { t as r } from "./preview-card-Dtu8AnBN.js";
|
|
5
|
+
import { t as i } from "./alert-dialog-Bup88Dpx.js";
|
|
6
|
+
import { n as a } from "./DirectionContext-BwMabICS.js";
|
|
7
|
+
import { t as o } from "./autocomplete-oyy_uRpU.js";
|
|
8
|
+
import { t as s } from "./avatar-DNZ4fnBd.js";
|
|
9
|
+
import { t as c } from "./button-BJZYmCVv.js";
|
|
10
|
+
import { t as l } from "./checkbox-sQHYTbpB.js";
|
|
11
|
+
import { t as u } from "./checkbox-group-DGyrciZJ.js";
|
|
12
|
+
import { t as d } from "./collapsible-BENbFFCc.js";
|
|
13
|
+
import { n as f, t as p } from "./combobox-BGH8QLXH.js";
|
|
14
|
+
import { t as m } from "./context-menu-xQ1sBCET.js";
|
|
15
|
+
import { t as h } from "./Separator-D5oJzlA3.js";
|
|
16
|
+
import { t as g } from "./csp-provider-C7nRHDKK.js";
|
|
17
|
+
import { t as _ } from "./direction-provider-DYhRN-8f.js";
|
|
18
|
+
import { t as v } from "./dialog-C0EF0a5u.js";
|
|
19
|
+
import { t as y } from "./drawer-uKoNBwDU.js";
|
|
20
|
+
import { t as b } from "./field-DIMrgpBW.js";
|
|
21
|
+
import { t as x } from "./fieldset-Byqk3noT.js";
|
|
22
|
+
import { t as S } from "./form-Bqq8wSLY.js";
|
|
23
|
+
import { t as C } from "./input-YthuKwIE.js";
|
|
24
|
+
import { t as w } from "./meter-BvWdppcx.js";
|
|
25
|
+
import { t as T } from "./menu-4rNLN6aX.js";
|
|
26
|
+
import { t as E } from "./menubar-nFQGtNmY.js";
|
|
27
|
+
import { t as D } from "./navigation-menu-BbRyun3a.js";
|
|
28
|
+
import { t as O } from "./number-field-hT_H0hVu.js";
|
|
29
|
+
import { t as k } from "./otp-field-lsy2iGID.js";
|
|
30
|
+
import { t as A } from "./popover-Cmvmuf1L.js";
|
|
31
|
+
import { t as j } from "./progress-AVKxvgpc.js";
|
|
32
|
+
import { t as M } from "./radio-CeCU-Qqi.js";
|
|
33
|
+
import { t as N } from "./radio-group-NbuJvjQe.js";
|
|
34
|
+
import { t as P } from "./scroll-area-DqbvoAd7.js";
|
|
35
|
+
import { t as F } from "./select-Dad51Xbn.js";
|
|
35
36
|
import "./separator/index.js";
|
|
36
|
-
import { t as
|
|
37
|
-
import { t as
|
|
38
|
-
import { t as
|
|
39
|
-
import { n as
|
|
40
|
-
import { t as
|
|
41
|
-
import { t as
|
|
42
|
-
import { t as
|
|
43
|
-
|
|
37
|
+
import { t as I } from "./slider-CLSKFq_M.js";
|
|
38
|
+
import { t as L } from "./switch-Bzuu5EIg.js";
|
|
39
|
+
import { t as R } from "./tabs-DWiBDv8D.js";
|
|
40
|
+
import { n as z, r as B, t as V } from "./toast-DmtPJW2k.js";
|
|
41
|
+
import { t as H } from "./toolbar-BXT_g-oX.js";
|
|
42
|
+
import { t as U } from "./toggle-CAe-Z8Xn.js";
|
|
43
|
+
import { t as W } from "./toggle-group-BbQg5s-m.js";
|
|
44
|
+
import "./use-render/index.js";
|
|
45
|
+
export { t as Accordion, i as AlertDialog, o as Autocomplete, s as Avatar, c as Button, g as CSPProvider, l as Checkbox, u as CheckboxGroup, d as Collapsible, p as Combobox, m as ContextMenu, v as Dialog, _ as DirectionProvider, y as Drawer, b as Field, x as Fieldset, S as Form, C as Input, T as Menu, E as Menubar, w as Meter, D as NavigationMenu, O as NumberField, k as OTPField, A as Popover, r as PreviewCard, j as Progress, M as Radio, N as RadioGroup, P as ScrollArea, F as Select, h as Separator, I as Slider, L as Switch, R as Tabs, B as Toast, U as Toggle, W as ToggleGroup, H as Toolbar, n as Tooltip, f as createComboboxItems, V as createToastManager, a as useDirection, e as useRender, z as useToastManager };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../input-
|
|
1
|
+
import { t as e } from "../input-YthuKwIE.js";
|
|
2
2
|
export { e as Input };
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
//#region src/internals/composeEventHandlers.ts
|
|
2
2
|
function e(...e) {
|
|
3
|
-
return function(
|
|
4
|
-
let i = r(
|
|
5
|
-
for (let
|
|
3
|
+
return function(t) {
|
|
4
|
+
let i = r(t);
|
|
5
|
+
for (let t of e) {
|
|
6
|
+
if (t && typeof t == "object" && "getHandler" in t) {
|
|
7
|
+
let e = t.getHandler;
|
|
8
|
+
t = e();
|
|
9
|
+
}
|
|
10
|
+
if (n(t, this, i), i.baseUIHandlerPrevented) break;
|
|
11
|
+
}
|
|
6
12
|
};
|
|
7
13
|
}
|
|
8
|
-
function t(e
|
|
9
|
-
|
|
14
|
+
function t(e) {
|
|
15
|
+
return { getHandler: e };
|
|
10
16
|
}
|
|
11
|
-
function n(e) {
|
|
12
|
-
|
|
17
|
+
function n(e, t, n) {
|
|
18
|
+
typeof e == "function" ? Reflect.apply(e, t, [n]) : Array.isArray(e) && e.length === 2 && typeof e[0] == "function" && Reflect.apply(e[0], t, [e[1], n]);
|
|
13
19
|
}
|
|
14
20
|
function r(e) {
|
|
15
21
|
let t = e;
|
|
@@ -47,4 +53,4 @@ function a(e) {
|
|
|
47
53
|
});
|
|
48
54
|
}
|
|
49
55
|
//#endregion
|
|
50
|
-
export { e as composeEventHandlers, r as makeEventPreventable };
|
|
56
|
+
export { e as composeEventHandlers, t as liveEventHandler, r as makeEventPreventable };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../../FieldRootContext-
|
|
2
|
-
export {
|
|
1
|
+
import { n as e, r as t } from "../../FieldRootContext-D3fuVjs3.js";
|
|
2
|
+
export { e as FieldRootContext, t as useFieldRootContext };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../../FormContext-
|
|
1
|
+
import { n as e, t } from "../../FormContext-CwLBtm_d.js";
|
|
2
2
|
export { t as FormContext, e as useFormContext };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "../../LabelableContext-
|
|
1
|
+
import { n as e, r as t, t as n } from "../../LabelableContext-CmQF-TX2.js";
|
|
2
2
|
import { createComponent as r } from "@solidjs/web";
|
|
3
3
|
import { untrack as i } from "solid-js";
|
|
4
4
|
//#region src/internals/labelable-provider/LabelableProvider.tsx
|
|
@@ -12,9 +12,13 @@ function r(e, t, r) {
|
|
|
12
12
|
function i(e, t, r) {
|
|
13
13
|
return !e || e.length === 0 ? -1 : e.findIndex((e) => e !== void 0 && n(e, t, r));
|
|
14
14
|
}
|
|
15
|
-
function a(e,
|
|
16
|
-
let
|
|
17
|
-
|
|
15
|
+
function a(e, n, a, o) {
|
|
16
|
+
let s;
|
|
17
|
+
if (o && Array.isArray(n)) {
|
|
18
|
+
let i = a === t ? new Set(n) : null;
|
|
19
|
+
i?.delete(void 0), s = e?.findIndex((e) => i ? i.has(e) && (e !== 0 || n.some((t) => Object.is(e, t))) : r(n, e, a)) ?? -1;
|
|
20
|
+
} else s = i(e, n, a);
|
|
21
|
+
return s === -1 ? null : s;
|
|
18
22
|
}
|
|
19
23
|
function o(e, t, r) {
|
|
20
24
|
return e.filter((e) => !n(t, e, r));
|
|
@@ -28,15 +32,4 @@ function c(t) {
|
|
|
28
32
|
return typeof t == "function" && t.name === "bound read" && Object.prototype.hasOwnProperty.call(t, e);
|
|
29
33
|
}
|
|
30
34
|
//#endregion
|
|
31
|
-
|
|
32
|
-
function l(e, t) {
|
|
33
|
-
return typeof t == "string" ? `${u(e)}${t}` : t ? {
|
|
34
|
-
...e,
|
|
35
|
-
...t
|
|
36
|
-
} : e;
|
|
37
|
-
}
|
|
38
|
-
function u(e) {
|
|
39
|
-
return Object.entries(e).filter((e) => e[1] != null).map(([e, t]) => `${e}:${t};`).join("");
|
|
40
|
-
}
|
|
41
|
-
//#endregion
|
|
42
|
-
export { t as a, o as c, n as i, r as l, c as n, i as o, s as r, a as s, l as t };
|
|
35
|
+
export { i as a, r as c, t as i, s as n, a as o, n as r, o as s, c as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../menu-
|
|
1
|
+
import { t as e } from "../menu-4rNLN6aX.js";
|
|
2
2
|
export { e as Menu };
|
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { t } from "./useRender-CxZ8PI-g.js";
|
|
3
|
+
import { getStateAttributesProps as n } from "./internals/getStateAttributesProps.js";
|
|
4
|
+
import { M as r, P as i, t as ee, u as a } from "./reasons-Co5CzjKq.js";
|
|
5
|
+
import { n as te, t as ne } from "./resolveStyle-XcgAuaKR.js";
|
|
6
|
+
import { createChangeEventDetails as o } from "./internals/createBaseUIEventDetails.js";
|
|
7
|
+
import { composeEventHandlers as s, liveEventHandler as c } from "./internals/composeEventHandlers.js";
|
|
8
|
+
import { n as l } from "./dom-lDdayFF_.js";
|
|
9
|
+
import { t as u } from "./PopupViewport-BanYHrD-.js";
|
|
10
|
+
import { n as re } from "./PopupStore-BjRwcvbG.js";
|
|
11
|
+
import { r as ie, t as ae } from "./safePolygon-DVAR5dQD.js";
|
|
12
|
+
import { i as oe } from "./popupStateMapping-nhukB8NK.js";
|
|
13
|
+
import { i as se, n as d, t as f } from "./PopupHandle-DyX5gY1e.js";
|
|
14
|
+
import { t as ce } from "./TriggerFocusGuards-Fzspp3Y1.js";
|
|
15
|
+
import { a as le, i as ue, n as de, r as p, t as fe } from "./buttonSemantics-paljfpOX.js";
|
|
16
|
+
import { n as m } from "./DirectionContext-BwMabICS.js";
|
|
17
|
+
import { C as h, _ as pe, a as g, c as _, d as v, f as me, g as y, h as b, i as he, l as ge, m as x, n as S, o as C, p as w, r as T, s as E, t as D, u as _e, v as O, w as k, x as A, y as j } from "./MenuSubmenuTrigger-DMb5CwTF.js";
|
|
18
|
+
import { n as ve } from "./MenubarContext-BYt3fkt-.js";
|
|
19
|
+
import { t as M } from "./Separator-D5oJzlA3.js";
|
|
20
|
+
import { createComponent as N, getNextElement as P, memo as ye, mergeProps as F, runHydrationEvents as I, spread as L, template as R } from "@solidjs/web";
|
|
21
|
+
import { Show as z, createEffect as B, createMemo as V, createSignal as be, createUniqueId as xe, omit as Se, onCleanup as Ce, untrack as H } from "solid-js";
|
|
22
|
+
//#region src/menu/trigger/MenuTrigger.tsx
|
|
23
|
+
var we = /* @__PURE__ */ R("<button>");
|
|
24
|
+
function U(e) {
|
|
25
|
+
let u = h(!0), d = ve(!0), f = e;
|
|
26
|
+
if (!u && !H(() => f.handle)) throw Error("Base UI: <Menu.Trigger> must be either used within a <Menu.Root> component or provided with a handle.");
|
|
27
|
+
let m = e, pe = d ? H(() => d.createTriggerId()) : `base-ui-${xe()}`, g = V(() => f.id || pe), _ = V(() => f.nativeButton ?? !0), v = V(() => f.openOnHover ?? !!d?.hasSubmenuOpen()), me = V(() => f.delay ?? 100), y = V(() => f.closeDelay ?? 0), [b, he] = be(null, { ownedWrite: !0 }), ge = se(() => f.handle), x = V(() => ge() ?? u?.store), S = V(() => {
|
|
28
|
+
let e = x();
|
|
29
|
+
return e instanceof k ? e : void 0;
|
|
30
|
+
}), C = () => {
|
|
31
|
+
let e = f.handle?.store;
|
|
32
|
+
return e instanceof k ? e : S();
|
|
33
|
+
}, w = V(() => !!(f.disabled || S()?.disabled() || d?.disabled())), T = V(() => {
|
|
34
|
+
let e = x();
|
|
35
|
+
return !!(e?.open() && e.activeTriggerId() === g());
|
|
36
|
+
}), E = V(() => ({
|
|
37
|
+
disabled: w(),
|
|
38
|
+
open: T()
|
|
39
|
+
})), D = V(() => te(e.class, E())), O = V(() => ne(e.style, E())), A = V(() => n(E(), oe)), j = Se(m, "render", "class", "closeDelay", "delay", "disabled", "handle", "id", "nativeButton", "onClick", "onBlur", "onFocus", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseMove", "onPointerDown", "openOnHover", "payload", "ref", "style"), M = "", R, U, W = !1, G = !1, K, q = !1, J = !1, Y, X = d ? {
|
|
40
|
+
token: Symbol("MenubarTrigger"),
|
|
41
|
+
order: 0,
|
|
42
|
+
element: b,
|
|
43
|
+
disabled: w
|
|
44
|
+
} : void 0;
|
|
45
|
+
if (X) {
|
|
46
|
+
let e = d.registerTrigger(X);
|
|
47
|
+
B(() => ({
|
|
48
|
+
disabled: w(),
|
|
49
|
+
element: b()
|
|
50
|
+
}), () => d.notifyItemChange()), Ce(e);
|
|
51
|
+
}
|
|
52
|
+
re(x, g, b, () => ({
|
|
53
|
+
payload: f.payload,
|
|
54
|
+
closeDelay: y()
|
|
55
|
+
})), B(() => ({
|
|
56
|
+
store: S(),
|
|
57
|
+
id: g(),
|
|
58
|
+
menubar: d
|
|
59
|
+
}), (e) => {
|
|
60
|
+
if (!e.store) return;
|
|
61
|
+
let t = H(() => e.store.registerMenubarTrigger(e.id, e.menubar));
|
|
62
|
+
return H(() => e.store.forwardMenubarTrigger(e.id, e.menubar)), t;
|
|
63
|
+
}), B(() => ({
|
|
64
|
+
open: T(),
|
|
65
|
+
reason: S()?.openChangeReason()
|
|
66
|
+
}), (e) => {
|
|
67
|
+
clearTimeout(U), W = e.open && e.reason === "trigger-hover", W && (U = setTimeout(() => {
|
|
68
|
+
W = !1;
|
|
69
|
+
}, 500));
|
|
70
|
+
});
|
|
71
|
+
function Te(e, t) {
|
|
72
|
+
clearTimeout(R), e.allowMouseUpTrigger = !1, R = setTimeout(() => {
|
|
73
|
+
e.allowMouseUpTrigger = !0;
|
|
74
|
+
}, 200), Y?.();
|
|
75
|
+
let n = t.ownerDocument, r = (n) => {
|
|
76
|
+
clearTimeout(R), e.allowMouseUpTrigger = !1;
|
|
77
|
+
let r = n.target, i = e.track().positionerElement;
|
|
78
|
+
if (t.contains(r) || i?.contains(r) || r?.closest(`[data-rootownerid="${e.rootNodeId()}"]`)) return;
|
|
79
|
+
let a = t.getBoundingClientRect();
|
|
80
|
+
n.clientX >= a.left && n.clientX <= a.right && n.clientY >= a.top && n.clientY <= a.bottom || e.closeTree(n, ee);
|
|
81
|
+
};
|
|
82
|
+
n.addEventListener("mouseup", r, { once: !0 }), Y = () => n.removeEventListener("mouseup", r);
|
|
83
|
+
}
|
|
84
|
+
function Z(e, t) {
|
|
85
|
+
e.context.triggerElements.add(g(), t), e.forwardTriggerData(g(), t, {
|
|
86
|
+
payload: f.payload,
|
|
87
|
+
closeDelay: y()
|
|
88
|
+
}), e.forwardMenubarTrigger(g(), d), e.activateMenubarTrigger(g());
|
|
89
|
+
}
|
|
90
|
+
function Ee(e) {
|
|
91
|
+
let t = C(), n = b();
|
|
92
|
+
if (!t || !n || e.button !== 0) return;
|
|
93
|
+
G = !0;
|
|
94
|
+
let r = T();
|
|
95
|
+
if (Z(t, n), d && r) {
|
|
96
|
+
G = !1;
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
if (r || Te(t, n), t.setOpenMethod(M || "mouse"), r && W) {
|
|
100
|
+
t.setOpen(!0, o(i, e, n));
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
t.setOpen(!r, o(i, e, n));
|
|
104
|
+
}
|
|
105
|
+
function De(e) {
|
|
106
|
+
if (q && e !== K && e.detail === 0) {
|
|
107
|
+
q = !1;
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
if (J) return;
|
|
111
|
+
if (e.detail !== 0 && G) {
|
|
112
|
+
G = !1;
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
G = !1;
|
|
116
|
+
let t = C(), n = b();
|
|
117
|
+
!t || !n || (Z(t, n), t.setOpenMethod("keyboard"), t.setPendingFocus("first"), t.setOpen(!T(), o(i, e, n)));
|
|
118
|
+
}
|
|
119
|
+
function Oe(e) {
|
|
120
|
+
!_() || e.key !== "Enter" || e.target !== e.currentTarget || (e.preventDefault(), e.preventBaseUIHandler(), q = !0, J = !0, _e(e.currentTarget, e, 0, (e) => {
|
|
121
|
+
K = e;
|
|
122
|
+
}), J = !1, K.baseUIHandlerPrevented || De(K), setTimeout(() => {
|
|
123
|
+
q = !1, K = void 0;
|
|
124
|
+
}));
|
|
125
|
+
}
|
|
126
|
+
function ke(e) {
|
|
127
|
+
let t = C();
|
|
128
|
+
if (!t) return;
|
|
129
|
+
let n = t.state[t.activeTriggerId() === g() ? "activeTriggerProps" : "inactiveTriggerProps"].onKeyDown;
|
|
130
|
+
typeof n == "function" && n(e);
|
|
131
|
+
}
|
|
132
|
+
function Ae(e) {
|
|
133
|
+
C()?.handleTriggerKeyDown(e, e.currentTarget), e.defaultPrevented && e.key.startsWith("Arrow") && e.preventBaseUIHandler();
|
|
134
|
+
}
|
|
135
|
+
function je(e) {
|
|
136
|
+
X && d.setActiveTrigger(X);
|
|
137
|
+
let t = C(), n = b(), i = e.relatedTarget;
|
|
138
|
+
if (t?.open() && i?.hasAttribute("data-base-ui-focus-guard") && l(t.state.positionerElement, i)) {
|
|
139
|
+
t.setOpen(!1, o(a, e));
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
!d || !t || !n || w() || T() || !d.hasSubmenuOpen() || (Z(t, n), t.setOpenMethod("keyboard"), t.setPendingFocus("first"), t.setOpen(!0, o(r, e, n)));
|
|
143
|
+
}
|
|
144
|
+
let Me = s(c(() => H(() => w() ? p : void 0)), c(() => f.onClick), De), Ne = s(c(() => f.onFocus), je), Pe = s(c(() => f.onBlur)), Fe = s(c(() => H(() => w() ? le : void 0)), c(() => f.onMouseDown), Ee), Ie = s(c(() => f.onMouseMove), () => S()?.setAllowMouseEnter(!0)), Le = s(c(() => H(() => w() ? p : void 0)), c(() => f.onPointerDown), (e) => {
|
|
145
|
+
M = e.pointerType || "";
|
|
146
|
+
}), Re = s(c(() => H(() => w() ? ue : void 0)), c(() => f.onKeyDown), ke, Ae, Oe, c(() => H(() => _() ? void 0 : fe))), ze = s(c(() => H(() => w() ? le : void 0)), c(() => f.onKeyUp), c(() => H(() => _() ? void 0 : de)));
|
|
147
|
+
function Q(e) {
|
|
148
|
+
let t = H(() => e.store);
|
|
149
|
+
return ie({
|
|
150
|
+
context: t.context.floatingRoot,
|
|
151
|
+
reference: b,
|
|
152
|
+
floating: () => t.track().positionerElement,
|
|
153
|
+
tree: () => t.tree(),
|
|
154
|
+
enabled: () => !w() && v() && t.hoverEnabled(),
|
|
155
|
+
floatingEnabled: () => !d && !w() && v() && t.hoverEnabled(),
|
|
156
|
+
delay: () => ({ close: y() }),
|
|
157
|
+
restMs: () => d ? 0 : me(),
|
|
158
|
+
restOnly: () => !d,
|
|
159
|
+
handleClose: () => ae({ blockPointerEvents: !d }),
|
|
160
|
+
mouseOnly: () => !0,
|
|
161
|
+
shouldOpen: () => !d || d.hasSubmenuOpen() && !T()
|
|
162
|
+
}), null;
|
|
163
|
+
}
|
|
164
|
+
let Be = t(e, () => E(), (e) => (() => {
|
|
165
|
+
var t = P(we);
|
|
166
|
+
return L(t, e, !1), I(), t;
|
|
167
|
+
})()), $ = N(Be, F({
|
|
168
|
+
ref: [((e) => he(e)), f.ref],
|
|
169
|
+
get id() {
|
|
170
|
+
return g();
|
|
171
|
+
},
|
|
172
|
+
get type() {
|
|
173
|
+
return _() ? "button" : void 0;
|
|
174
|
+
},
|
|
175
|
+
get role() {
|
|
176
|
+
return d ? "menuitem" : _() ? void 0 : "button";
|
|
177
|
+
},
|
|
178
|
+
get tabIndex() {
|
|
179
|
+
return X ? d.isTabStop(X) ? 0 : -1 : !_() && w() ? -1 : 0;
|
|
180
|
+
},
|
|
181
|
+
get disabled() {
|
|
182
|
+
return (ye(() => !!_())() ? w() : _()) || void 0;
|
|
183
|
+
},
|
|
184
|
+
get "aria-disabled"() {
|
|
185
|
+
return !_() && w() ? "true" : void 0;
|
|
186
|
+
},
|
|
187
|
+
"aria-haspopup": "menu",
|
|
188
|
+
get "aria-expanded"() {
|
|
189
|
+
return T() ? "true" : "false";
|
|
190
|
+
},
|
|
191
|
+
get "aria-controls"() {
|
|
192
|
+
return x()?.triggerPopupId(g());
|
|
193
|
+
},
|
|
194
|
+
"data-base-ui-click-trigger": "",
|
|
195
|
+
get "data-trigger-disabled"() {
|
|
196
|
+
return w() ? "" : void 0;
|
|
197
|
+
},
|
|
198
|
+
get class() {
|
|
199
|
+
return D();
|
|
200
|
+
},
|
|
201
|
+
get style() {
|
|
202
|
+
return O();
|
|
203
|
+
},
|
|
204
|
+
onClick: Me,
|
|
205
|
+
onBlur: Pe,
|
|
206
|
+
onFocus: Ne,
|
|
207
|
+
onKeyDown: Re,
|
|
208
|
+
onKeyUp: ze,
|
|
209
|
+
onMouseDown: Fe,
|
|
210
|
+
onMouseMove: Ie,
|
|
211
|
+
onPointerDown: Le
|
|
212
|
+
}, A, j));
|
|
213
|
+
return Ce(() => {
|
|
214
|
+
clearTimeout(R), clearTimeout(U), Y?.();
|
|
215
|
+
}), d ? [N(z, {
|
|
216
|
+
keyed: !0,
|
|
217
|
+
get when() {
|
|
218
|
+
return S();
|
|
219
|
+
},
|
|
220
|
+
children: (e) => N(Q, { store: e })
|
|
221
|
+
}), $] : [N(z, {
|
|
222
|
+
keyed: !0,
|
|
223
|
+
get when() {
|
|
224
|
+
return S();
|
|
225
|
+
},
|
|
226
|
+
children: (e) => N(Q, { store: e })
|
|
227
|
+
}), N(z, {
|
|
228
|
+
keyed: !0,
|
|
229
|
+
get when() {
|
|
230
|
+
return S();
|
|
231
|
+
},
|
|
232
|
+
fallback: $,
|
|
233
|
+
children: (e) => N(ce, {
|
|
234
|
+
get context() {
|
|
235
|
+
return e.context.floatingRoot;
|
|
236
|
+
},
|
|
237
|
+
get enabled() {
|
|
238
|
+
return e.isMountedByTrigger(g());
|
|
239
|
+
},
|
|
240
|
+
trigger: b,
|
|
241
|
+
positioner: () => e.track().positionerElement,
|
|
242
|
+
beforeContentGuard: () => e.beforeContentGuard(),
|
|
243
|
+
afterGuardRef: (t) => e.setAfterTriggerGuard(t),
|
|
244
|
+
children: $
|
|
245
|
+
})
|
|
246
|
+
})];
|
|
247
|
+
}
|
|
248
|
+
//#endregion
|
|
249
|
+
//#region src/menu/viewport/MenuViewport.tsx
|
|
250
|
+
var W = /* @__PURE__ */ R("<div>");
|
|
251
|
+
function G(e) {
|
|
252
|
+
let r = h(), i = y(), ee = m(), a = e, o = e, [s, c] = be({
|
|
253
|
+
activationDirection: void 0,
|
|
254
|
+
transitioning: !1
|
|
255
|
+
}, { ownedWrite: !0 }), l = V(() => ({
|
|
256
|
+
...s(),
|
|
257
|
+
instant: r.store.instantType()
|
|
258
|
+
})), re = V(() => te(e.class, l())), ie = V(() => ne(e.style, l())), ae = V(() => n(l(), pe)), oe = Se(o, "render", "children", "class", "ref", "style"), se = t(e, () => l(), (e) => (() => {
|
|
259
|
+
var t = P(W);
|
|
260
|
+
return L(t, e, !1), I(), t;
|
|
261
|
+
})());
|
|
262
|
+
return N(se, F({
|
|
263
|
+
ref: [a.ref],
|
|
264
|
+
get class() {
|
|
265
|
+
return re();
|
|
266
|
+
},
|
|
267
|
+
get style() {
|
|
268
|
+
return ie();
|
|
269
|
+
}
|
|
270
|
+
}, ae, oe, { get children() {
|
|
271
|
+
return N(u, {
|
|
272
|
+
get store() {
|
|
273
|
+
return r.store;
|
|
274
|
+
},
|
|
275
|
+
get side() {
|
|
276
|
+
return i.renderedSide();
|
|
277
|
+
},
|
|
278
|
+
get direction() {
|
|
279
|
+
return ee();
|
|
280
|
+
},
|
|
281
|
+
onStateChange: c,
|
|
282
|
+
get children() {
|
|
283
|
+
return e.children;
|
|
284
|
+
}
|
|
285
|
+
});
|
|
286
|
+
} }));
|
|
287
|
+
}
|
|
288
|
+
//#endregion
|
|
289
|
+
//#region src/menu/store/MenuHandle.ts
|
|
290
|
+
var K = class extends f {
|
|
291
|
+
constructor() {
|
|
292
|
+
super("Menu", !0, new d());
|
|
293
|
+
}
|
|
294
|
+
open(e) {
|
|
295
|
+
this.openByTrigger(e);
|
|
296
|
+
}
|
|
297
|
+
close() {
|
|
298
|
+
this.closePopup();
|
|
299
|
+
}
|
|
300
|
+
get isOpen() {
|
|
301
|
+
return this.attachedStore?.open() ?? !1;
|
|
302
|
+
}
|
|
303
|
+
};
|
|
304
|
+
function q() {
|
|
305
|
+
return new K();
|
|
306
|
+
}
|
|
307
|
+
//#endregion
|
|
308
|
+
//#region src/menu/index.parts.ts
|
|
309
|
+
var J = /* @__PURE__ */ e({
|
|
310
|
+
Arrow: () => w,
|
|
311
|
+
Backdrop: () => j,
|
|
312
|
+
CheckboxItem: () => _,
|
|
313
|
+
CheckboxItemIndicator: () => E,
|
|
314
|
+
Group: () => me,
|
|
315
|
+
GroupLabel: () => v,
|
|
316
|
+
Handle: () => K,
|
|
317
|
+
Item: () => ge,
|
|
318
|
+
LinkItem: () => C,
|
|
319
|
+
Popup: () => x,
|
|
320
|
+
Portal: () => O,
|
|
321
|
+
Positioner: () => b,
|
|
322
|
+
RadioGroup: () => g,
|
|
323
|
+
RadioItem: () => he,
|
|
324
|
+
RadioItemIndicator: () => T,
|
|
325
|
+
Root: () => A,
|
|
326
|
+
Separator: () => M,
|
|
327
|
+
SubmenuRoot: () => S,
|
|
328
|
+
SubmenuTrigger: () => D,
|
|
329
|
+
Trigger: () => U,
|
|
330
|
+
Viewport: () => G,
|
|
331
|
+
createHandle: () => q
|
|
332
|
+
});
|
|
333
|
+
//#endregion
|
|
334
|
+
export { J as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../menubar-
|
|
1
|
+
import { t as e } from "../menubar-nFQGtNmY.js";
|
|
2
2
|
export { e as Menubar };
|