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,326 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { getStateAttributesProps as t } from "./internals/getStateAttributesProps.js";
|
|
3
|
-
import { M as n, P as r, t as i } from "./reasons-Co5CzjKq.js";
|
|
4
|
-
import { n as a, t as o } from "./resolveStyle-XcgAuaKR.js";
|
|
5
|
-
import { createChangeEventDetails as s } from "./internals/createBaseUIEventDetails.js";
|
|
6
|
-
import { composeEventHandlers as c } from "./internals/composeEventHandlers.js";
|
|
7
|
-
import { t as l } from "./PopupViewport-DgrIqQea.js";
|
|
8
|
-
import { n as ee } from "./PopupStore-DjB-wO88.js";
|
|
9
|
-
import { r as u, t as d } from "./safePolygon--bbKn0c8.js";
|
|
10
|
-
import { i as f } from "./popupStateMapping-C9eZl19i.js";
|
|
11
|
-
import { i as p, n as m, t as h } from "./PopupHandle-CcJG4NMy.js";
|
|
12
|
-
import { t as te } from "./TriggerFocusGuards-CQ-JuASy.js";
|
|
13
|
-
import { a as ne, i as re, n as ie, r as ae, t as oe } from "./buttonSemantics-paljfpOX.js";
|
|
14
|
-
import { n as se } from "./DirectionContext-BwMabICS.js";
|
|
15
|
-
import { C as g, _, a as v, c as y, d as b, f as x, g as S, h as C, i as ce, l as le, m as w, n as T, o as E, p as D, r as O, s as k, t as ue, u as de, v as fe, w as A, x as j, y as M } from "./MenuSubmenuTrigger-QZkQ0F2v.js";
|
|
16
|
-
import { n as pe } from "./MenubarContext-BYt3fkt-.js";
|
|
17
|
-
import { t as N } from "./Separator-9DboD_Si.js";
|
|
18
|
-
import { Dynamic as P, createComponent as F, memo as me, mergeProps as I } from "@solidjs/web";
|
|
19
|
-
import { Show as L, createEffect as R, createMemo as z, createSignal as B, createUniqueId as he, omit as V, onCleanup as ge, untrack as H } from "solid-js";
|
|
20
|
-
//#region src/menu/trigger/MenuTrigger.tsx
|
|
21
|
-
function U(e) {
|
|
22
|
-
let l = g(!0), m = pe(!0), h = e;
|
|
23
|
-
if (!l && !H(() => h.handle)) throw Error("Base UI: <Menu.Trigger> must be either used within a <Menu.Root> component or provided with a handle.");
|
|
24
|
-
let se = e, _ = m ? H(() => m.createTriggerId()) : `base-ui-${he()}`, v = z(() => h.id || _), y = z(() => h.nativeButton ?? !0), b = z(() => h.openOnHover ?? !!m?.hasSubmenuOpen()), x = z(() => h.delay ?? 100), S = z(() => h.closeDelay ?? 0), [C, ce] = B(null, { ownedWrite: !0 }), le = p(() => h.handle), w = z(() => le() ?? l?.store), T = z(() => {
|
|
25
|
-
let e = w();
|
|
26
|
-
return e instanceof A ? e : void 0;
|
|
27
|
-
}), E = () => {
|
|
28
|
-
let e = h.handle?.store;
|
|
29
|
-
return e instanceof A ? e : T();
|
|
30
|
-
}, D = z(() => !!(h.disabled || T()?.disabled() || m?.disabled())), O = z(() => {
|
|
31
|
-
let e = w();
|
|
32
|
-
return !!(e?.open() && e.activeTriggerId() === v());
|
|
33
|
-
}), k = z(() => ({
|
|
34
|
-
disabled: D(),
|
|
35
|
-
open: O()
|
|
36
|
-
})), ue = z(() => a(e.class, k())), fe = z(() => o(e.style, k())), j = z(() => t(k(), f)), M = V(se, "as", "class", "closeDelay", "delay", "disabled", "handle", "id", "nativeButton", "onClick", "onBlur", "onFocus", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseMove", "onPointerDown", "openOnHover", "payload", "ref", "style"), N = "", U, W, G = !1, K = !1, q, J = !1, Y = !1, X, Z = m ? {
|
|
37
|
-
token: Symbol("MenubarTrigger"),
|
|
38
|
-
order: 0,
|
|
39
|
-
element: C,
|
|
40
|
-
disabled: D
|
|
41
|
-
} : void 0;
|
|
42
|
-
if (Z) {
|
|
43
|
-
let e = m.registerTrigger(Z);
|
|
44
|
-
R(() => ({
|
|
45
|
-
disabled: D(),
|
|
46
|
-
element: C()
|
|
47
|
-
}), () => m.notifyItemChange()), ge(e);
|
|
48
|
-
}
|
|
49
|
-
ee(w, v, C, () => ({
|
|
50
|
-
payload: h.payload,
|
|
51
|
-
closeDelay: S()
|
|
52
|
-
})), R(() => ({
|
|
53
|
-
store: T(),
|
|
54
|
-
id: v(),
|
|
55
|
-
menubar: m
|
|
56
|
-
}), (e) => {
|
|
57
|
-
if (!e.store) return;
|
|
58
|
-
let t = H(() => e.store.registerMenubarTrigger(e.id, e.menubar));
|
|
59
|
-
return H(() => e.store.forwardMenubarTrigger(e.id, e.menubar)), t;
|
|
60
|
-
}), R(() => ({
|
|
61
|
-
open: O(),
|
|
62
|
-
reason: T()?.openChangeReason()
|
|
63
|
-
}), (e) => {
|
|
64
|
-
clearTimeout(W), G = e.open && e.reason === "trigger-hover", G && (W = setTimeout(() => {
|
|
65
|
-
G = !1;
|
|
66
|
-
}, 500));
|
|
67
|
-
});
|
|
68
|
-
function _e(e, t) {
|
|
69
|
-
clearTimeout(U), e.allowMouseUpTrigger = !1, U = setTimeout(() => {
|
|
70
|
-
e.allowMouseUpTrigger = !0;
|
|
71
|
-
}, 200), X?.();
|
|
72
|
-
let n = t.ownerDocument, r = (n) => {
|
|
73
|
-
clearTimeout(U), e.allowMouseUpTrigger = !1;
|
|
74
|
-
let r = n.target, a = e.track().positionerElement;
|
|
75
|
-
if (t.contains(r) || a?.contains(r) || r?.closest(`[data-rootownerid="${e.rootNodeId()}"]`)) return;
|
|
76
|
-
let o = t.getBoundingClientRect();
|
|
77
|
-
n.clientX >= o.left && n.clientX <= o.right && n.clientY >= o.top && n.clientY <= o.bottom || e.closeTree(n, i);
|
|
78
|
-
};
|
|
79
|
-
n.addEventListener("mouseup", r, { once: !0 }), X = () => n.removeEventListener("mouseup", r);
|
|
80
|
-
}
|
|
81
|
-
function Q(e, t) {
|
|
82
|
-
e.context.triggerElements.add(v(), t), e.forwardTriggerData(v(), t, {
|
|
83
|
-
payload: h.payload,
|
|
84
|
-
closeDelay: S()
|
|
85
|
-
}), e.forwardMenubarTrigger(v(), m), e.activateMenubarTrigger(v());
|
|
86
|
-
}
|
|
87
|
-
function ve(e) {
|
|
88
|
-
let t = E(), n = C();
|
|
89
|
-
if (!t || !n || e.button !== 0) return;
|
|
90
|
-
K = !0;
|
|
91
|
-
let i = O();
|
|
92
|
-
if (Q(t, n), m && i) {
|
|
93
|
-
K = !1;
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
if (i || _e(t, n), t.setOpenMethod(N || "mouse"), i && G) {
|
|
97
|
-
t.setOpen(!0, s(r, e, n));
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
t.setOpen(!i, s(r, e, n));
|
|
101
|
-
}
|
|
102
|
-
function ye(e) {
|
|
103
|
-
if (J && e !== q && e.detail === 0) {
|
|
104
|
-
J = !1;
|
|
105
|
-
return;
|
|
106
|
-
}
|
|
107
|
-
if (Y) return;
|
|
108
|
-
if (e.detail !== 0 && K) {
|
|
109
|
-
K = !1;
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
K = !1;
|
|
113
|
-
let t = E(), n = C();
|
|
114
|
-
!t || !n || (Q(t, n), t.setOpenMethod("keyboard"), t.setPendingFocus("first"), t.setOpen(!O(), s(r, e, n)));
|
|
115
|
-
}
|
|
116
|
-
function be(e) {
|
|
117
|
-
!y() || e.key !== "Enter" || e.target !== e.currentTarget || (e.preventDefault(), e.preventBaseUIHandler(), J = !0, Y = !0, de(e.currentTarget, e, 0, (e) => {
|
|
118
|
-
q = e;
|
|
119
|
-
}), Y = !1, q.baseUIHandlerPrevented || ye(q), setTimeout(() => {
|
|
120
|
-
J = !1, q = void 0;
|
|
121
|
-
}));
|
|
122
|
-
}
|
|
123
|
-
function xe(e) {
|
|
124
|
-
let t = E();
|
|
125
|
-
if (!t) return;
|
|
126
|
-
let n = t.state[t.activeTriggerId() === v() ? "activeTriggerProps" : "inactiveTriggerProps"].onKeyDown;
|
|
127
|
-
typeof n == "function" && n(e);
|
|
128
|
-
}
|
|
129
|
-
function Se(e) {
|
|
130
|
-
E()?.handleTriggerKeyDown(e, e.currentTarget), e.defaultPrevented && e.key.startsWith("Arrow") && e.preventBaseUIHandler();
|
|
131
|
-
}
|
|
132
|
-
function Ce(e) {
|
|
133
|
-
Z && m.setActiveTrigger(Z);
|
|
134
|
-
let t = E(), r = C();
|
|
135
|
-
!m || !t || !r || D() || O() || !m.hasSubmenuOpen() || (Q(t, r), t.setOpenMethod("keyboard"), t.setPendingFocus("first"), t.setOpen(!0, s(n, e, r)));
|
|
136
|
-
}
|
|
137
|
-
let we = c(() => H(() => D() ? ae : void 0), () => h.onClick, () => ye), Te = c(() => h.onFocus, () => Ce), Ee = c(() => h.onBlur), De = c(() => H(() => D() ? ne : void 0), () => h.onMouseDown, () => ve), Oe = c(() => h.onMouseMove, () => () => T()?.setAllowMouseEnter(!0)), ke = c(() => H(() => D() ? ae : void 0), () => h.onPointerDown, () => (e) => {
|
|
138
|
-
N = e.pointerType || "";
|
|
139
|
-
}), Ae = c(() => H(() => D() ? re : void 0), () => h.onKeyDown, () => xe, () => Se, () => be, () => H(() => y() ? void 0 : oe)), je = c(() => H(() => D() ? ne : void 0), () => h.onKeyUp, () => H(() => y() ? void 0 : ie));
|
|
140
|
-
function Me(e) {
|
|
141
|
-
let t = H(() => e.store);
|
|
142
|
-
return u({
|
|
143
|
-
context: t.context.floatingRoot,
|
|
144
|
-
reference: C,
|
|
145
|
-
floating: () => t.track().positionerElement,
|
|
146
|
-
tree: () => t.tree(),
|
|
147
|
-
enabled: () => !D() && b() && t.hoverEnabled(),
|
|
148
|
-
floatingEnabled: () => !m && !D() && b() && t.hoverEnabled(),
|
|
149
|
-
delay: () => ({ close: S() }),
|
|
150
|
-
restMs: () => m ? 0 : x(),
|
|
151
|
-
restOnly: () => !m,
|
|
152
|
-
handleClose: () => d({ blockPointerEvents: !m }),
|
|
153
|
-
mouseOnly: () => !0,
|
|
154
|
-
shouldOpen: () => !m || m.hasSubmenuOpen() && !O()
|
|
155
|
-
}), null;
|
|
156
|
-
}
|
|
157
|
-
let $ = F(P, I({
|
|
158
|
-
get component() {
|
|
159
|
-
return e.as ?? "button";
|
|
160
|
-
},
|
|
161
|
-
ref: [((e) => ce(e)), h.ref],
|
|
162
|
-
get id() {
|
|
163
|
-
return v();
|
|
164
|
-
},
|
|
165
|
-
get type() {
|
|
166
|
-
return y() ? "button" : void 0;
|
|
167
|
-
},
|
|
168
|
-
get role() {
|
|
169
|
-
return m ? "menuitem" : y() ? void 0 : "button";
|
|
170
|
-
},
|
|
171
|
-
get tabIndex() {
|
|
172
|
-
return Z ? m.isTabStop(Z) ? 0 : -1 : !y() && D() ? -1 : 0;
|
|
173
|
-
},
|
|
174
|
-
get disabled() {
|
|
175
|
-
return (me(() => !!y())() ? D() : y()) || void 0;
|
|
176
|
-
},
|
|
177
|
-
get "aria-disabled"() {
|
|
178
|
-
return !y() && D() ? "true" : void 0;
|
|
179
|
-
},
|
|
180
|
-
"aria-haspopup": "menu",
|
|
181
|
-
get "aria-expanded"() {
|
|
182
|
-
return O() ? "true" : "false";
|
|
183
|
-
},
|
|
184
|
-
get "aria-controls"() {
|
|
185
|
-
return w()?.triggerPopupId(v());
|
|
186
|
-
},
|
|
187
|
-
"data-base-ui-click-trigger": "",
|
|
188
|
-
get "data-trigger-disabled"() {
|
|
189
|
-
return D() ? "" : void 0;
|
|
190
|
-
},
|
|
191
|
-
get class() {
|
|
192
|
-
return ue();
|
|
193
|
-
},
|
|
194
|
-
get style() {
|
|
195
|
-
return fe();
|
|
196
|
-
},
|
|
197
|
-
onClick: we,
|
|
198
|
-
onBlur: Ee,
|
|
199
|
-
onFocus: Te,
|
|
200
|
-
onKeyDown: Ae,
|
|
201
|
-
onKeyUp: je,
|
|
202
|
-
onMouseDown: De,
|
|
203
|
-
onMouseMove: Oe,
|
|
204
|
-
onPointerDown: ke
|
|
205
|
-
}, j, M));
|
|
206
|
-
return ge(() => {
|
|
207
|
-
clearTimeout(U), clearTimeout(W), X?.();
|
|
208
|
-
}), m ? [F(L, {
|
|
209
|
-
keyed: !0,
|
|
210
|
-
get when() {
|
|
211
|
-
return T();
|
|
212
|
-
},
|
|
213
|
-
children: (e) => F(Me, { store: e })
|
|
214
|
-
}), $] : [F(L, {
|
|
215
|
-
keyed: !0,
|
|
216
|
-
get when() {
|
|
217
|
-
return T();
|
|
218
|
-
},
|
|
219
|
-
children: (e) => F(Me, { store: e })
|
|
220
|
-
}), F(L, {
|
|
221
|
-
keyed: !0,
|
|
222
|
-
get when() {
|
|
223
|
-
return T();
|
|
224
|
-
},
|
|
225
|
-
fallback: $,
|
|
226
|
-
children: (e) => F(te, {
|
|
227
|
-
get context() {
|
|
228
|
-
return e.context.floatingRoot;
|
|
229
|
-
},
|
|
230
|
-
get enabled() {
|
|
231
|
-
return e.isMountedByTrigger(v());
|
|
232
|
-
},
|
|
233
|
-
trigger: C,
|
|
234
|
-
positioner: () => e.track().positionerElement,
|
|
235
|
-
beforeContentGuard: () => e.beforeContentGuard(),
|
|
236
|
-
afterGuardRef: (t) => e.setAfterTriggerGuard(t),
|
|
237
|
-
children: $
|
|
238
|
-
})
|
|
239
|
-
})];
|
|
240
|
-
}
|
|
241
|
-
//#endregion
|
|
242
|
-
//#region src/menu/viewport/MenuViewport.tsx
|
|
243
|
-
function W(e) {
|
|
244
|
-
let n = g(), r = S(), i = se(), s = e, c = e, [ee, u] = B({
|
|
245
|
-
activationDirection: void 0,
|
|
246
|
-
transitioning: !1
|
|
247
|
-
}, { ownedWrite: !0 }), d = z(() => ({
|
|
248
|
-
...ee(),
|
|
249
|
-
instant: n.store.instantType()
|
|
250
|
-
})), f = z(() => a(e.class, d())), p = z(() => o(e.style, d())), m = z(() => t(d(), _)), h = V(c, "as", "children", "class", "ref", "style");
|
|
251
|
-
return F(P, I({
|
|
252
|
-
get component() {
|
|
253
|
-
return e.as ?? "div";
|
|
254
|
-
},
|
|
255
|
-
ref: [s.ref],
|
|
256
|
-
get class() {
|
|
257
|
-
return f();
|
|
258
|
-
},
|
|
259
|
-
get style() {
|
|
260
|
-
return p();
|
|
261
|
-
}
|
|
262
|
-
}, m, h, { get children() {
|
|
263
|
-
return F(l, {
|
|
264
|
-
get store() {
|
|
265
|
-
return n.store;
|
|
266
|
-
},
|
|
267
|
-
get side() {
|
|
268
|
-
return r.renderedSide();
|
|
269
|
-
},
|
|
270
|
-
get direction() {
|
|
271
|
-
return i();
|
|
272
|
-
},
|
|
273
|
-
onStateChange: u,
|
|
274
|
-
get children() {
|
|
275
|
-
return e.children;
|
|
276
|
-
}
|
|
277
|
-
});
|
|
278
|
-
} }));
|
|
279
|
-
}
|
|
280
|
-
//#endregion
|
|
281
|
-
//#region src/menu/store/MenuHandle.ts
|
|
282
|
-
var G = class extends h {
|
|
283
|
-
constructor() {
|
|
284
|
-
super("Menu", !0, new m());
|
|
285
|
-
}
|
|
286
|
-
open(e) {
|
|
287
|
-
this.openByTrigger(e);
|
|
288
|
-
}
|
|
289
|
-
close() {
|
|
290
|
-
this.closePopup();
|
|
291
|
-
}
|
|
292
|
-
get isOpen() {
|
|
293
|
-
return this.attachedStore?.open() ?? !1;
|
|
294
|
-
}
|
|
295
|
-
};
|
|
296
|
-
function K() {
|
|
297
|
-
return new G();
|
|
298
|
-
}
|
|
299
|
-
//#endregion
|
|
300
|
-
//#region src/menu/index.parts.ts
|
|
301
|
-
var q = /* @__PURE__ */ e({
|
|
302
|
-
Arrow: () => D,
|
|
303
|
-
Backdrop: () => M,
|
|
304
|
-
CheckboxItem: () => y,
|
|
305
|
-
CheckboxItemIndicator: () => k,
|
|
306
|
-
Group: () => x,
|
|
307
|
-
GroupLabel: () => b,
|
|
308
|
-
Handle: () => G,
|
|
309
|
-
Item: () => le,
|
|
310
|
-
LinkItem: () => E,
|
|
311
|
-
Popup: () => w,
|
|
312
|
-
Portal: () => fe,
|
|
313
|
-
Positioner: () => C,
|
|
314
|
-
RadioGroup: () => v,
|
|
315
|
-
RadioItem: () => ce,
|
|
316
|
-
RadioItemIndicator: () => O,
|
|
317
|
-
Root: () => j,
|
|
318
|
-
Separator: () => N,
|
|
319
|
-
SubmenuRoot: () => T,
|
|
320
|
-
SubmenuTrigger: () => ue,
|
|
321
|
-
Trigger: () => U,
|
|
322
|
-
Viewport: () => W,
|
|
323
|
-
createHandle: () => K
|
|
324
|
-
});
|
|
325
|
-
//#endregion
|
|
326
|
-
export { q as t };
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
import { getStateAttributesProps as e } from "./internals/getStateAttributesProps.js";
|
|
2
|
-
import { n as t, t as n } from "./resolveStyle-XcgAuaKR.js";
|
|
3
|
-
import { composeEventHandlers as r } from "./internals/composeEventHandlers.js";
|
|
4
|
-
import { r as i } from "./compositeNavigation-sxniYTc7.js";
|
|
5
|
-
import { i as a, r as o } from "./FloatingTree-23B7KKPD.js";
|
|
6
|
-
import { n as ee } from "./DirectionContext-BwMabICS.js";
|
|
7
|
-
import { t as s } from "./MenubarContext-BYt3fkt-.js";
|
|
8
|
-
import { t as c } from "./withoutComponentBinding-CcCW7fSc.js";
|
|
9
|
-
import { Dynamic as l, createComponent as u, getNextElement as te, mergeProps as d, ref as f, runHydrationEvents as p, spread as ne, template as m } from "@solidjs/web";
|
|
10
|
-
import { createEffect as re, createMemo as h, createSignal as g, createUniqueId as _, omit as ie, onCleanup as ae, untrack as v } from "solid-js";
|
|
11
|
-
//#region src/menubar/Menubar.tsx
|
|
12
|
-
var oe = /* @__PURE__ */ m("<div>"), se = { hasSubmenuOpen: (e) => e ? { "data-has-submenu-open": "" } : null };
|
|
13
|
-
function y(m) {
|
|
14
|
-
let y = ee(), x = m, le = m, ue = `base-ui-${_()}`, S = h(() => x.id || ue), C = h(() => x.modal ?? !0), w = h(() => x.disabled ?? !1), T = h(() => x.orientation ?? "horizontal"), [E, D] = g(null, { ownedWrite: !0 }), [O, k] = g(!1, { ownedWrite: !0 }), [A, de] = g(), [fe, pe] = g(0), j = new o(), M = _();
|
|
15
|
-
a({
|
|
16
|
-
tree: j,
|
|
17
|
-
id: M
|
|
18
|
-
});
|
|
19
|
-
let N = /* @__PURE__ */ new Map(), me = { value: !1 }, P = 0, F = 0, I = 0, L = !1, R = !1, z = h(() => ({
|
|
20
|
-
orientation: T(),
|
|
21
|
-
modal: C(),
|
|
22
|
-
hasSubmenuOpen: O()
|
|
23
|
-
})), B = h(() => t(m.class, z())), V = h(() => n(m.style, z())), H = h(() => e(z(), se)), U = ie(le, "as", "class", "disabled", "id", "loopFocus", "modal", "onFocusIn", "onKeyDown", "orientation", "ref", "style");
|
|
24
|
-
function W() {
|
|
25
|
-
R || (R = !0, queueMicrotask(() => {
|
|
26
|
-
R = !1, pe((e) => e + 1);
|
|
27
|
-
}));
|
|
28
|
-
}
|
|
29
|
-
function he(e) {
|
|
30
|
-
return e.order = P, P += 1, N.set(e.token, e), W(), () => {
|
|
31
|
-
N.delete(e.token), W();
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
function G() {
|
|
35
|
-
return Array.from(N.values()).sort(ce);
|
|
36
|
-
}
|
|
37
|
-
function K() {
|
|
38
|
-
return G().filter(b);
|
|
39
|
-
}
|
|
40
|
-
function ge(e) {
|
|
41
|
-
fe();
|
|
42
|
-
let t = G(), n = t.every((e) => !e.element()), r = n ? t.filter((e) => !e.disabled()) : K(), i = r.find((e) => e.token === A());
|
|
43
|
-
return (n || b(e)) && (i ?? r[0])?.token === e.token;
|
|
44
|
-
}
|
|
45
|
-
function q(e) {
|
|
46
|
-
b(e) && de(e.token);
|
|
47
|
-
}
|
|
48
|
-
function J(e) {
|
|
49
|
-
let t = e.composedPath(), n = t[0];
|
|
50
|
-
return G().find((e) => {
|
|
51
|
-
let r = e.element();
|
|
52
|
-
return r && (t.includes(r) || n instanceof Node && r.contains(n));
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
function Y(e) {
|
|
56
|
-
if (e.defaultPrevented || e.cancelBubble || e.shiftKey || e.ctrlKey || e.altKey || e.metaKey) return;
|
|
57
|
-
let t = K();
|
|
58
|
-
if (t.length === 0) return;
|
|
59
|
-
let n = J(e)?.token ?? A(), r = t.findIndex((e) => e.token === n), a = i({
|
|
60
|
-
list: t.map((e) => e.element()),
|
|
61
|
-
currentIndex: r,
|
|
62
|
-
key: e.key,
|
|
63
|
-
orientation: T(),
|
|
64
|
-
rtl: y() === "rtl",
|
|
65
|
-
loop: x.loopFocus ?? !0
|
|
66
|
-
});
|
|
67
|
-
if (a === r || a < 0) return;
|
|
68
|
-
let o = t[a];
|
|
69
|
-
o && (e.preventDefault(), e.stopPropagation(), q(o), o.element()?.focus({ preventScroll: !0 }));
|
|
70
|
-
}
|
|
71
|
-
let X = r(() => x.onFocusIn, () => (e) => {
|
|
72
|
-
let t = J(e);
|
|
73
|
-
t && q(t);
|
|
74
|
-
}), Z = r(() => x.onKeyDown, () => Y), Q = {
|
|
75
|
-
modal: C,
|
|
76
|
-
disabled: w,
|
|
77
|
-
orientation: T,
|
|
78
|
-
hasSubmenuOpen: O,
|
|
79
|
-
rootElement: E,
|
|
80
|
-
rootId: S,
|
|
81
|
-
tree: j,
|
|
82
|
-
nodeId: M,
|
|
83
|
-
allowMouseUpTrigger: me,
|
|
84
|
-
createTriggerId() {
|
|
85
|
-
F += 1, F === 1 && typeof document < "u" && (I = (E() ?? document.getElementById(S()))?.querySelectorAll("[role=\"menuitem\"][aria-haspopup=\"menu\"]").length ?? 0, I > 0 && !L && (L = !0, queueMicrotask(() => {
|
|
86
|
-
I = 0;
|
|
87
|
-
})));
|
|
88
|
-
let e = I > 0 ? (F - 1) % I + 1 : F;
|
|
89
|
-
return `${S()}-trigger-${e}`;
|
|
90
|
-
},
|
|
91
|
-
isTabStop: ge,
|
|
92
|
-
notifyItemChange: W,
|
|
93
|
-
registerTrigger: he,
|
|
94
|
-
setActiveTrigger: q,
|
|
95
|
-
relayKeyboardEvent: Y
|
|
96
|
-
};
|
|
97
|
-
re(E, (e) => {
|
|
98
|
-
let t = e?.ownerDocument.defaultView?.MutationObserver;
|
|
99
|
-
if (!e || !t) return;
|
|
100
|
-
let n = new t(W);
|
|
101
|
-
return n.observe(e, {
|
|
102
|
-
attributes: !0,
|
|
103
|
-
childList: !0,
|
|
104
|
-
subtree: !0,
|
|
105
|
-
attributeFilter: [
|
|
106
|
-
"class",
|
|
107
|
-
"disabled",
|
|
108
|
-
"hidden",
|
|
109
|
-
"style"
|
|
110
|
-
]
|
|
111
|
-
}), () => n.disconnect();
|
|
112
|
-
});
|
|
113
|
-
let _e = j.events.on("menuopenchange", (e) => {
|
|
114
|
-
!e.nodeId || e.parentNodeId !== M || (e.open ? k(!0) : e.reason !== "sibling-open" && e.reason !== "list-navigation" && k(!1));
|
|
115
|
-
});
|
|
116
|
-
ae(_e);
|
|
117
|
-
let $ = v(() => m.as);
|
|
118
|
-
return $ ? u(s, {
|
|
119
|
-
value: Q,
|
|
120
|
-
get children() {
|
|
121
|
-
return u(l, d({
|
|
122
|
-
get component() {
|
|
123
|
-
return c($);
|
|
124
|
-
},
|
|
125
|
-
ref: [((e) => D(e)), x.ref],
|
|
126
|
-
get id() {
|
|
127
|
-
return S();
|
|
128
|
-
},
|
|
129
|
-
role: "menubar",
|
|
130
|
-
get "aria-orientation"() {
|
|
131
|
-
return T();
|
|
132
|
-
},
|
|
133
|
-
get class() {
|
|
134
|
-
return B();
|
|
135
|
-
},
|
|
136
|
-
get style() {
|
|
137
|
-
return V();
|
|
138
|
-
},
|
|
139
|
-
onFocusIn: X,
|
|
140
|
-
onKeyDown: Z
|
|
141
|
-
}, H, U));
|
|
142
|
-
}
|
|
143
|
-
}) : u(s, {
|
|
144
|
-
value: Q,
|
|
145
|
-
get children() {
|
|
146
|
-
var e = te(oe);
|
|
147
|
-
return f(() => [((e) => D(e)), x.ref], e), ne(e, d({
|
|
148
|
-
get id() {
|
|
149
|
-
return S();
|
|
150
|
-
},
|
|
151
|
-
role: "menubar",
|
|
152
|
-
get "aria-orientation"() {
|
|
153
|
-
return T();
|
|
154
|
-
},
|
|
155
|
-
get class() {
|
|
156
|
-
return B();
|
|
157
|
-
},
|
|
158
|
-
get style() {
|
|
159
|
-
return V();
|
|
160
|
-
},
|
|
161
|
-
onFocusIn: X,
|
|
162
|
-
onKeyDown: Z
|
|
163
|
-
}, H, U), !1), p(), e;
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
function ce(e, t) {
|
|
168
|
-
let n = e.element(), r = t.element();
|
|
169
|
-
if (n && r && n !== r) {
|
|
170
|
-
let e = n.compareDocumentPosition(r);
|
|
171
|
-
if ((e & Node.DOCUMENT_POSITION_DISCONNECTED) === 0) {
|
|
172
|
-
if (e & Node.DOCUMENT_POSITION_FOLLOWING) return -1;
|
|
173
|
-
if (e & Node.DOCUMENT_POSITION_PRECEDING) return 1;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
return e.order - t.order;
|
|
177
|
-
}
|
|
178
|
-
function b(e) {
|
|
179
|
-
let t = e.element();
|
|
180
|
-
if (!t?.isConnected || e.disabled() || t.matches(":disabled")) return !1;
|
|
181
|
-
let n = t.ownerDocument.defaultView?.getComputedStyle(t);
|
|
182
|
-
return !n || n.display === "none" || n.display === "contents" || n.visibility === "hidden" || n.visibility === "collapse" ? !1 : typeof t.checkVisibility != "function" || t.checkVisibility();
|
|
183
|
-
}
|
|
184
|
-
//#endregion
|
|
185
|
-
export { y as t };
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { n as t, t as n } from "./resolveStyle-XcgAuaKR.js";
|
|
3
|
-
import { mergeStyles as r } from "./internals/mergeStyles.js";
|
|
4
|
-
import { Dynamic as i, createComponent as a, effect as o, getNextElement as s, memo as c, mergeProps as l, style as u, template as d } from "@solidjs/web";
|
|
5
|
-
import { createContext as f, createEffect as p, createMemo as m, createSignal as h, createUniqueId as g, omit as _, useContext as v } from "solid-js";
|
|
6
|
-
//#region src/meter/root/MeterRootContext.ts
|
|
7
|
-
var y = Symbol("MeterRootContext"), b = f(y);
|
|
8
|
-
function x() {
|
|
9
|
-
let e = v(b);
|
|
10
|
-
if (e === y) throw Error("Base UI: MeterRootContext is missing. Meter parts must be placed within <Meter.Root>.");
|
|
11
|
-
return e;
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
|
-
//#region src/meter/root/MeterRoot.tsx
|
|
15
|
-
var S = /* @__PURE__ */ d("<span role=presentation>x"), C = {
|
|
16
|
-
"clip-path": "inset(50%)",
|
|
17
|
-
overflow: "hidden",
|
|
18
|
-
"white-space": "nowrap",
|
|
19
|
-
border: 0,
|
|
20
|
-
padding: 0,
|
|
21
|
-
width: "1px",
|
|
22
|
-
height: "1px",
|
|
23
|
-
margin: "-1px",
|
|
24
|
-
position: "fixed",
|
|
25
|
-
top: 0,
|
|
26
|
-
left: 0
|
|
27
|
-
};
|
|
28
|
-
function w(e) {
|
|
29
|
-
let r = e, d = e, [f, p] = h(), g = _(d, "as", "children", "class", "format", "getAriaValueText", "locale", "max", "min", "style", "value"), v = m(() => r.min ?? 0), y = m(() => r.max ?? 100), x = m(() => {
|
|
30
|
-
let e = (r.value - v()) * 100 / (y() - v());
|
|
31
|
-
return T(Number.isNaN(e) ? 0 : e, 0, 100);
|
|
32
|
-
}), w = m(() => T(Number.isNaN(r.value) ? v() : r.value, v(), y())), E = m(() => r.format ? new Intl.NumberFormat(r.locale, r.format).format(w()) : new Intl.NumberFormat(r.locale, { style: "percent" }).format(x() / 100)), D = m(() => r.getAriaValueText ? r.getAriaValueText(E(), r.value) : E()), O = {}, k = m(() => t(e.class, O)), A = m(() => n(e.style, O));
|
|
33
|
-
return a(b, {
|
|
34
|
-
value: {
|
|
35
|
-
formattedValue: E,
|
|
36
|
-
percentageValue: x,
|
|
37
|
-
setLabelId: p,
|
|
38
|
-
value: () => r.value
|
|
39
|
-
},
|
|
40
|
-
get children() {
|
|
41
|
-
return a(i, l({
|
|
42
|
-
get component() {
|
|
43
|
-
return e.as ?? "div";
|
|
44
|
-
},
|
|
45
|
-
get class() {
|
|
46
|
-
return k();
|
|
47
|
-
},
|
|
48
|
-
get style() {
|
|
49
|
-
return A();
|
|
50
|
-
},
|
|
51
|
-
get "aria-labelledby"() {
|
|
52
|
-
return f();
|
|
53
|
-
},
|
|
54
|
-
get "aria-valuemax"() {
|
|
55
|
-
return y();
|
|
56
|
-
},
|
|
57
|
-
get "aria-valuemin"() {
|
|
58
|
-
return v();
|
|
59
|
-
},
|
|
60
|
-
get "aria-valuenow"() {
|
|
61
|
-
return w();
|
|
62
|
-
},
|
|
63
|
-
get "aria-valuetext"() {
|
|
64
|
-
return D();
|
|
65
|
-
},
|
|
66
|
-
role: "meter"
|
|
67
|
-
}, g, { get children() {
|
|
68
|
-
return [c(() => d.children), (() => {
|
|
69
|
-
var e = s(S);
|
|
70
|
-
return o(() => C, (t, n) => {
|
|
71
|
-
u(e, t, n);
|
|
72
|
-
}), e;
|
|
73
|
-
})()];
|
|
74
|
-
} }));
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
function T(e, t, n) {
|
|
79
|
-
return Math.max(t, Math.min(e, n));
|
|
80
|
-
}
|
|
81
|
-
//#endregion
|
|
82
|
-
//#region src/meter/track/MeterTrack.tsx
|
|
83
|
-
function E(e) {
|
|
84
|
-
let r = _(e, "as", "class", "style"), o = {}, s = m(() => t(e.class, o)), c = m(() => n(e.style, o));
|
|
85
|
-
return a(i, l({
|
|
86
|
-
get component() {
|
|
87
|
-
return e.as ?? "div";
|
|
88
|
-
},
|
|
89
|
-
get class() {
|
|
90
|
-
return s();
|
|
91
|
-
},
|
|
92
|
-
get style() {
|
|
93
|
-
return c();
|
|
94
|
-
}
|
|
95
|
-
}, r));
|
|
96
|
-
}
|
|
97
|
-
//#endregion
|
|
98
|
-
//#region src/meter/indicator/MeterIndicator.tsx
|
|
99
|
-
function D(e) {
|
|
100
|
-
let o = x(), s = _(e, "as", "class", "style"), c = {}, u = m(() => t(e.class, c)), d = m(() => ({
|
|
101
|
-
"inset-inline-start": "0",
|
|
102
|
-
height: "inherit",
|
|
103
|
-
width: `${o.percentageValue()}%`
|
|
104
|
-
})), f = m(() => {
|
|
105
|
-
let t = n(e.style, c);
|
|
106
|
-
return typeof t == "string" ? `inset-inline-start:0;height:inherit;width:${o.percentageValue()}%;${t}` : r(d(), t === !1 ? void 0 : t);
|
|
107
|
-
});
|
|
108
|
-
return a(i, l({
|
|
109
|
-
get component() {
|
|
110
|
-
return e.as ?? "div";
|
|
111
|
-
},
|
|
112
|
-
get class() {
|
|
113
|
-
return u();
|
|
114
|
-
},
|
|
115
|
-
get style() {
|
|
116
|
-
return f();
|
|
117
|
-
}
|
|
118
|
-
}, s));
|
|
119
|
-
}
|
|
120
|
-
//#endregion
|
|
121
|
-
//#region src/meter/value/MeterValue.tsx
|
|
122
|
-
function O(e) {
|
|
123
|
-
let r = e, o = x(), s = _(e, "as", "children", "class", "style"), c = {}, u = m(() => t(e.class, c)), d = m(() => n(e.style, c)), f = m(() => typeof r.children == "function" ? r.children(o.formattedValue(), o.value()) : o.formattedValue());
|
|
124
|
-
return a(i, l({
|
|
125
|
-
get component() {
|
|
126
|
-
return e.as ?? "span";
|
|
127
|
-
},
|
|
128
|
-
get class() {
|
|
129
|
-
return u();
|
|
130
|
-
},
|
|
131
|
-
get style() {
|
|
132
|
-
return d();
|
|
133
|
-
},
|
|
134
|
-
"aria-hidden": "true"
|
|
135
|
-
}, s, { get children() {
|
|
136
|
-
return f();
|
|
137
|
-
} }));
|
|
138
|
-
}
|
|
139
|
-
//#endregion
|
|
140
|
-
//#region src/meter/label/MeterLabel.tsx
|
|
141
|
-
function k(e) {
|
|
142
|
-
let r = x(), o = `base-ui-${g()}`, s = _(e, "as", "class", "id", "style"), c = m(() => e.id ?? o), u = {}, d = m(() => t(e.class, u)), f = m(() => n(e.style, u));
|
|
143
|
-
return p(c, (e) => (r.setLabelId(e), () => {
|
|
144
|
-
r.setLabelId((t) => t === e ? void 0 : t);
|
|
145
|
-
})), a(i, l({
|
|
146
|
-
get component() {
|
|
147
|
-
return e.as ?? "span";
|
|
148
|
-
},
|
|
149
|
-
get id() {
|
|
150
|
-
return c();
|
|
151
|
-
},
|
|
152
|
-
get class() {
|
|
153
|
-
return d();
|
|
154
|
-
},
|
|
155
|
-
get style() {
|
|
156
|
-
return f();
|
|
157
|
-
},
|
|
158
|
-
role: "presentation"
|
|
159
|
-
}, s));
|
|
160
|
-
}
|
|
161
|
-
//#endregion
|
|
162
|
-
//#region src/meter/index.parts.ts
|
|
163
|
-
var A = /* @__PURE__ */ e({
|
|
164
|
-
Indicator: () => D,
|
|
165
|
-
Label: () => k,
|
|
166
|
-
Root: () => w,
|
|
167
|
-
Track: () => E,
|
|
168
|
-
Value: () => O
|
|
169
|
-
});
|
|
170
|
-
//#endregion
|
|
171
|
-
export { A as t };
|