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,32 +1,34 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { t as useRender } from "../useRender-CryVdCjs.js";
|
|
2
3
|
import { getStateAttributesProps } from "../internals/getStateAttributesProps.js";
|
|
3
4
|
import { F as windowResize, S as listNavigation, t as cancelOpen, w as none, y as itemPress } from "../internals/reasons.js";
|
|
4
5
|
import { n as resolveClass, t as resolveStyle } from "../resolveStyle-XCSFDHAL.js";
|
|
5
6
|
import { createChangeEventDetails } from "../internals/createBaseUIEventDetails.js";
|
|
6
7
|
import { transitionStatusMapping } from "../internals/stateAttributesMapping.js";
|
|
7
|
-
import { composeEventHandlers } from "../internals/composeEventHandlers.js";
|
|
8
|
-
import { t as runOnceAnimationsFinish } from "../runOnceAnimationsFinish-
|
|
9
|
-
import {
|
|
10
|
-
import { t as createAnchorPositioning } from "../createAnchorPositioning-
|
|
11
|
-
import { t as InternalBackdrop } from "../InternalBackdrop-
|
|
12
|
-
import { t as createAnchoredPopupScrollLock } from "../createAnchoredPopupScrollLock-
|
|
13
|
-
import { t as createClickInteraction } from "../createClickInteraction-
|
|
8
|
+
import { composeEventHandlers, liveEventHandler } from "../internals/composeEventHandlers.js";
|
|
9
|
+
import { t as runOnceAnimationsFinish } from "../runOnceAnimationsFinish-CYq38H8J.js";
|
|
10
|
+
import { h as ownerWindow, m as ownerDocument, n as contains } from "../dom-D8_aB1yy.js";
|
|
11
|
+
import { t as createAnchorPositioning } from "../createAnchorPositioning-DrQYe7RS.js";
|
|
12
|
+
import { t as InternalBackdrop } from "../InternalBackdrop-D_2zAWnl.js";
|
|
13
|
+
import { t as createAnchoredPopupScrollLock } from "../createAnchoredPopupScrollLock-q6gnOSmv.js";
|
|
14
|
+
import { t as createClickInteraction } from "../createClickInteraction-D7oc1Vco.js";
|
|
14
15
|
import { c as useFloatingTree, i as createFloatingNode, n as FloatingTreeContext, r as FloatingTreeStore, s as useFloatingParentNodeId, t as FloatingParentNodeContext } from "../FloatingTree-z1JPD1dR.js";
|
|
15
|
-
import { a as createPopupPresence, n as createTriggerRegistration, o as createDismiss, t as PopupStore } from "../PopupStore-
|
|
16
|
-
import { t as createTransitionStatus } from "../createTransitionStatus-
|
|
17
|
-
import { a as triggerOpenStateMapping, i as pressableTriggerOpenStateMapping, n as popupStateMapping, o as PopupPortal, r as popupTransitionStateMapping } from "../popupStateMapping-
|
|
18
|
-
import { t as FocusManager } from "../FocusManager-
|
|
19
|
-
import { t as TriggerFocusGuards } from "../TriggerFocusGuards-sbGwf45f.js";
|
|
20
|
-
import { a as stopButtonInteraction, i as preventDisabledButtonKeyDown, n as handleNonNativeButtonKeyUp, r as preventButtonInteraction, t as handleNonNativeButtonKeyDown } from "../buttonSemantics-BSwDxJhh.js";
|
|
16
|
+
import { a as createPopupPresence, n as createTriggerRegistration, o as createDismiss, t as PopupStore } from "../PopupStore-evylvVnN.js";
|
|
17
|
+
import { t as createTransitionStatus } from "../createTransitionStatus-184v7j3-.js";
|
|
18
|
+
import { a as triggerOpenStateMapping, i as pressableTriggerOpenStateMapping, n as popupStateMapping, o as PopupPortal, r as popupTransitionStateMapping } from "../popupStateMapping-VHqr6M4H.js";
|
|
19
|
+
import { t as FocusManager } from "../FocusManager-D-xgblGs.js";
|
|
21
20
|
import { t as setRef } from "../setRef-Bt70sW7c.js";
|
|
21
|
+
import { t as TriggerFocusGuards } from "../TriggerFocusGuards-B9GNbLrL.js";
|
|
22
|
+
import { a as stopButtonInteraction, i as preventDisabledButtonKeyDown, n as handleNonNativeButtonKeyUp, r as preventButtonInteraction, t as handleNonNativeButtonKeyDown } from "../buttonSemantics-BSwDxJhh.js";
|
|
22
23
|
import { n as useDirection } from "../DirectionContext-YORWLF08.js";
|
|
23
24
|
import { fieldStateAttributesMapping } from "../internals/field-constants.js";
|
|
24
|
-
import {
|
|
25
|
-
import { n as useFormContext } from "../FormContext-
|
|
26
|
-
import { a as
|
|
27
|
-
import { r as useLabelableContext } from "../LabelableContext-
|
|
25
|
+
import { r as useFieldRootContext } from "../FieldRootContext-Bfpna6gA.js";
|
|
26
|
+
import { n as useFormContext } from "../FormContext-CYwo_ZnB.js";
|
|
27
|
+
import { a as findItemIndex, i as defaultItemEquality, n as areItemArraysEqual, o as findSelectionIndex, r as compareItemEquality, s as removeItem, t as isSolidAccessor } from "../isSolidAccessor-CZpzAH5l.js";
|
|
28
|
+
import { r as useLabelableContext } from "../LabelableContext-BTeF0IWb.js";
|
|
29
|
+
import { t as mergeStyleValue } from "../mergeStyleValue-DecVaoac.js";
|
|
28
30
|
import { n as useToolbarRootContext } from "../ToolbarRootContext-DD-qe7s8.js";
|
|
29
|
-
import {
|
|
31
|
+
import { escape, memo, mergeProps, ssr, ssrAttribute, ssrElement, ssrGroup, ssrHydrationKey, ssrStyle } from "@solidjs/web";
|
|
30
32
|
import { For, Show, createContext, createEffect, createMemo, createSignal, createUniqueId, flush, merge, omit, onCleanup, untrack, useContext } from "solid-js";
|
|
31
33
|
//#region src/select/utils/value.ts
|
|
32
34
|
function serializeValue(value, itemToStringValue) {
|
|
@@ -559,15 +561,7 @@ function SelectRoot(props) {
|
|
|
559
561
|
});
|
|
560
562
|
const presence = createPopupPresence(store, () => store.track().popupElement, { onUnmount: () => store.resetAfterClose() });
|
|
561
563
|
const selectedIndex = createMemo(() => {
|
|
562
|
-
|
|
563
|
-
const current = value();
|
|
564
|
-
if (multiple()) {
|
|
565
|
-
if (!Array.isArray(current) || current.length === 0) return null;
|
|
566
|
-
const index = findItemIndex(values, current[current.length - 1], comparator());
|
|
567
|
-
return index === -1 ? null : index;
|
|
568
|
-
}
|
|
569
|
-
const index = findItemIndex(values, current, comparator());
|
|
570
|
-
return index === -1 ? null : index;
|
|
564
|
+
return findSelectionIndex(store.collection.values(), value(), comparator(), multiple());
|
|
571
565
|
});
|
|
572
566
|
function setValue(nextValue, details) {
|
|
573
567
|
props.onValueChange?.(nextValue, details);
|
|
@@ -594,7 +588,7 @@ function SelectRoot(props) {
|
|
|
594
588
|
handleNavigation(event);
|
|
595
589
|
}
|
|
596
590
|
function handleNavigation(event) {
|
|
597
|
-
if (disabled() ||
|
|
591
|
+
if (disabled() || ![
|
|
598
592
|
"ArrowDown",
|
|
599
593
|
"ArrowUp",
|
|
600
594
|
"Home",
|
|
@@ -622,7 +616,7 @@ function SelectRoot(props) {
|
|
|
622
616
|
store.setTyping(false);
|
|
623
617
|
}
|
|
624
618
|
function handleTypeahead(event) {
|
|
625
|
-
if (disabled() || readOnly() || !store.open() && multiple() || event.key.length !== 1 || event.ctrlKey || event.metaKey || event.altKey) return;
|
|
619
|
+
if (disabled() || readOnly() && !store.open() || !store.open() && multiple() || event.key.length !== 1 || event.ctrlKey || event.metaKey || event.altKey) return;
|
|
626
620
|
if (typed && event.key === " ") {
|
|
627
621
|
event.preventDefault();
|
|
628
622
|
event.stopPropagation();
|
|
@@ -928,7 +922,7 @@ function SelectLabel(props) {
|
|
|
928
922
|
const classValue = createMemo(() => resolveClass(props.class, state()));
|
|
929
923
|
const styleValue = createMemo(() => resolveStyle(props.style, state()));
|
|
930
924
|
const stateAttributes = createMemo(() => getStateAttributesProps(state(), fieldStateAttributesMapping));
|
|
931
|
-
const others = omit(allProps, "
|
|
925
|
+
const others = omit(allProps, "render", "class", "id", "onClick", "onPointerDown", "ref", "style");
|
|
932
926
|
function focusTrigger(event) {
|
|
933
927
|
const target = event.composedPath()[0];
|
|
934
928
|
if (target instanceof Element && target.closest("button,input,select,textarea,a[href]")) return;
|
|
@@ -938,8 +932,8 @@ function SelectLabel(props) {
|
|
|
938
932
|
function preventPointerFocus(event) {
|
|
939
933
|
event.preventDefault();
|
|
940
934
|
}
|
|
941
|
-
const onClick = composeEventHandlers(() => internalProps.onClick,
|
|
942
|
-
const onPointerDown = composeEventHandlers(() => internalProps.onPointerDown,
|
|
935
|
+
const onClick = composeEventHandlers(liveEventHandler(() => internalProps.onClick), focusTrigger);
|
|
936
|
+
const onPointerDown = composeEventHandlers(liveEventHandler(() => internalProps.onPointerDown), preventPointerFocus);
|
|
943
937
|
createEffect(id, (currentId) => {
|
|
944
938
|
context.store.setLabelId(currentId);
|
|
945
939
|
const unregister = labelable.registerLabelId(currentId);
|
|
@@ -948,10 +942,7 @@ function SelectLabel(props) {
|
|
|
948
942
|
if (untrack(() => context.store.labelId()) === currentId) context.store.setLabelId(void 0);
|
|
949
943
|
};
|
|
950
944
|
});
|
|
951
|
-
return
|
|
952
|
-
get component() {
|
|
953
|
-
return props.as ?? "div";
|
|
954
|
-
},
|
|
945
|
+
return useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true))(mergeProps({
|
|
955
946
|
ref: [internalProps.ref],
|
|
956
947
|
get id() {
|
|
957
948
|
return id();
|
|
@@ -1005,10 +996,10 @@ function SelectTrigger(props) {
|
|
|
1005
996
|
const stateAttributes = createMemo(() => getStateAttributesProps(state(), selectTriggerStateMapping));
|
|
1006
997
|
const ariaLabelledBy = createMemo(() => internalProps["aria-labelledby"] ?? labelable.labelId() ?? context.store.labelId());
|
|
1007
998
|
const ariaDescribedBy = createMemo(() => labelable.getAriaDescribedBy(internalProps["aria-describedby"]));
|
|
1008
|
-
const others = omit(allProps, "aria-describedby", "aria-labelledby", "
|
|
999
|
+
const others = omit(allProps, "aria-describedby", "aria-labelledby", "render", "class", "disabled", "id", "nativeButton", "onBlur", "onClick", "onFocus", "onKeyDown", "onKeyUp", "onMouseDown", "onPointerDown", "ref", "style");
|
|
1009
1000
|
const click = createClickInteraction({
|
|
1010
1001
|
context: context.store.context.floatingRoot,
|
|
1011
|
-
enabled: () => !disabled()
|
|
1002
|
+
enabled: () => !disabled(),
|
|
1012
1003
|
event: () => "mousedown"
|
|
1013
1004
|
});
|
|
1014
1005
|
let pointerType = "";
|
|
@@ -1064,13 +1055,13 @@ function SelectTrigger(props) {
|
|
|
1064
1055
|
pointerType = "keyboard";
|
|
1065
1056
|
context.handleKeyDown(event);
|
|
1066
1057
|
}
|
|
1067
|
-
const onBlur = composeEventHandlers(() => internalProps.onBlur,
|
|
1068
|
-
const onClick = composeEventHandlers(() => untrack(() => disabled() ? preventButtonInteraction : void 0), () => internalProps.onClick,
|
|
1069
|
-
const onFocus = composeEventHandlers(() => internalProps.onFocus,
|
|
1070
|
-
const onKeyDown = composeEventHandlers(() => untrack(() => disabled() ? preventDisabledButtonKeyDown : void 0), () => internalProps.onKeyDown,
|
|
1071
|
-
const onKeyUp = composeEventHandlers(() => untrack(() => disabled() ? stopButtonInteraction : void 0), () => internalProps.onKeyUp, () => untrack(() => nativeButton() ? void 0 : handleNonNativeButtonKeyUp));
|
|
1072
|
-
const onMouseDown = composeEventHandlers(() => untrack(() => disabled() ? stopButtonInteraction : void 0), () => internalProps.onMouseDown,
|
|
1073
|
-
const onPointerDown = composeEventHandlers(() => untrack(() => disabled() ? preventButtonInteraction : void 0), () => internalProps.onPointerDown,
|
|
1058
|
+
const onBlur = composeEventHandlers(liveEventHandler(() => internalProps.onBlur), handleBlur);
|
|
1059
|
+
const onClick = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? preventButtonInteraction : void 0)), liveEventHandler(() => internalProps.onClick), handleClick);
|
|
1060
|
+
const onFocus = composeEventHandlers(liveEventHandler(() => internalProps.onFocus), handleFocus);
|
|
1061
|
+
const onKeyDown = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? preventDisabledButtonKeyDown : void 0)), liveEventHandler(() => internalProps.onKeyDown), handleKeyDown, liveEventHandler(() => untrack(() => nativeButton() ? void 0 : handleNonNativeButtonKeyDown)));
|
|
1062
|
+
const onKeyUp = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? stopButtonInteraction : void 0)), liveEventHandler(() => internalProps.onKeyUp), liveEventHandler(() => untrack(() => nativeButton() ? void 0 : handleNonNativeButtonKeyUp)));
|
|
1063
|
+
const onMouseDown = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? stopButtonInteraction : void 0)), liveEventHandler(() => internalProps.onMouseDown), handleMouseDown);
|
|
1064
|
+
const onPointerDown = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? preventButtonInteraction : void 0)), liveEventHandler(() => internalProps.onPointerDown), handlePointerDown);
|
|
1074
1065
|
createEffect(() => ({
|
|
1075
1066
|
id: id(),
|
|
1076
1067
|
element: element()
|
|
@@ -1078,7 +1069,7 @@ function SelectTrigger(props) {
|
|
|
1078
1069
|
context.setTriggerElement(current.element);
|
|
1079
1070
|
labelable.registerControlId(labelSource, current.id);
|
|
1080
1071
|
return () => {
|
|
1081
|
-
if (context.triggerElement
|
|
1072
|
+
if (untrack(context.triggerElement) === current.element) context.setTriggerElement(null);
|
|
1082
1073
|
};
|
|
1083
1074
|
});
|
|
1084
1075
|
onCleanup(() => {
|
|
@@ -1086,10 +1077,7 @@ function SelectTrigger(props) {
|
|
|
1086
1077
|
removeMouseUp?.();
|
|
1087
1078
|
labelable.registerControlId(labelSource, void 0);
|
|
1088
1079
|
});
|
|
1089
|
-
const trigger =
|
|
1090
|
-
get component() {
|
|
1091
|
-
return props.as ?? "button";
|
|
1092
|
-
},
|
|
1080
|
+
const trigger = useRender(props, () => state(), (props) => ssrElement("button", props, void 0, true))(mergeProps({
|
|
1093
1081
|
ref: [((value) => setElement(value)), internalProps.ref],
|
|
1094
1082
|
get id() {
|
|
1095
1083
|
return id();
|
|
@@ -1186,7 +1174,7 @@ function SelectValue(props) {
|
|
|
1186
1174
|
const classValue = createMemo(() => resolveClass(props.class, state()));
|
|
1187
1175
|
const styleValue = createMemo(() => resolveStyle(props.style, state()));
|
|
1188
1176
|
const stateAttributes = createMemo(() => getStateAttributesProps(state(), { value: () => null }));
|
|
1189
|
-
const others = omit(allProps, "
|
|
1177
|
+
const others = omit(allProps, "render", "children", "class", "placeholder", "ref", "style");
|
|
1190
1178
|
const content = createMemo(() => {
|
|
1191
1179
|
const child = props.children;
|
|
1192
1180
|
if (typeof child === "function") return isSolidAccessor(child) ? untrack(() => child()) : child(context.value());
|
|
@@ -1197,41 +1185,17 @@ function SelectValue(props) {
|
|
|
1197
1185
|
return resolveSelectedLabel(current, context.items(), context.itemToStringLabel());
|
|
1198
1186
|
});
|
|
1199
1187
|
const ref = [((element) => context.setValueElement(element)), internalProps.ref];
|
|
1200
|
-
return
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
get fallback() {
|
|
1205
|
-
return ssrElement("span", () => {
|
|
1206
|
-
return mergeProps({
|
|
1207
|
-
get ["class"]() {
|
|
1208
|
-
return classValue();
|
|
1209
|
-
},
|
|
1210
|
-
get style() {
|
|
1211
|
-
return styleValue();
|
|
1212
|
-
}
|
|
1213
|
-
}, stateAttributes, others);
|
|
1214
|
-
}, () => {
|
|
1215
|
-
return scope(() => {
|
|
1216
|
-
return escape(content());
|
|
1217
|
-
});
|
|
1218
|
-
}, true);
|
|
1188
|
+
return useRender(props, () => state(), (props) => ssrElement("span", props, void 0, true))(mergeProps({
|
|
1189
|
+
ref,
|
|
1190
|
+
get ["class"]() {
|
|
1191
|
+
return classValue();
|
|
1219
1192
|
},
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
return classValue();
|
|
1227
|
-
},
|
|
1228
|
-
get style() {
|
|
1229
|
-
return styleValue();
|
|
1230
|
-
}
|
|
1231
|
-
}, stateAttributes, others, { get children() {
|
|
1232
|
-
return content();
|
|
1233
|
-
} }))
|
|
1234
|
-
});
|
|
1193
|
+
get style() {
|
|
1194
|
+
return styleValue();
|
|
1195
|
+
}
|
|
1196
|
+
}, stateAttributes, others, { get children() {
|
|
1197
|
+
return content();
|
|
1198
|
+
} }));
|
|
1235
1199
|
}
|
|
1236
1200
|
//#endregion
|
|
1237
1201
|
//#region src/select/icon/SelectIcon.tsx
|
|
@@ -1244,44 +1208,19 @@ function SelectIcon(props) {
|
|
|
1244
1208
|
const classValue = createMemo(() => resolveClass(props.class, state()));
|
|
1245
1209
|
const styleValue = createMemo(() => resolveStyle(props.style, state()));
|
|
1246
1210
|
const stateAttributes = createMemo(() => getStateAttributesProps(state(), triggerOpenStateMapping));
|
|
1247
|
-
const others = omit(allProps, "
|
|
1248
|
-
return
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
return ssrElement("span", () => {
|
|
1254
|
-
return mergeProps({
|
|
1255
|
-
"aria-hidden": "true",
|
|
1256
|
-
get ["class"]() {
|
|
1257
|
-
return classValue();
|
|
1258
|
-
},
|
|
1259
|
-
get style() {
|
|
1260
|
-
return styleValue();
|
|
1261
|
-
}
|
|
1262
|
-
}, stateAttributes, others);
|
|
1263
|
-
}, () => {
|
|
1264
|
-
return () => {
|
|
1265
|
-
return escape(props.children ?? "▼");
|
|
1266
|
-
};
|
|
1267
|
-
}, true);
|
|
1211
|
+
const others = omit(allProps, "render", "class", "ref", "style");
|
|
1212
|
+
return useRender(props, () => state(), (props) => ssrElement("span", props, void 0, true))(mergeProps({
|
|
1213
|
+
ref: [internalProps.ref],
|
|
1214
|
+
"aria-hidden": "true",
|
|
1215
|
+
get ["class"]() {
|
|
1216
|
+
return classValue();
|
|
1268
1217
|
},
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
get ["class"]() {
|
|
1276
|
-
return classValue();
|
|
1277
|
-
},
|
|
1278
|
-
get style() {
|
|
1279
|
-
return styleValue();
|
|
1280
|
-
}
|
|
1281
|
-
}, stateAttributes, others, { get children() {
|
|
1282
|
-
return props.children ?? "▼";
|
|
1283
|
-
} }))
|
|
1284
|
-
});
|
|
1218
|
+
get style() {
|
|
1219
|
+
return styleValue();
|
|
1220
|
+
}
|
|
1221
|
+
}, stateAttributes, others, { get children() {
|
|
1222
|
+
return props.children ?? "▼";
|
|
1223
|
+
} }));
|
|
1285
1224
|
}
|
|
1286
1225
|
//#endregion
|
|
1287
1226
|
//#region src/select/portal/SelectPortalContext.ts
|
|
@@ -1301,7 +1240,7 @@ function SelectPortal(props) {
|
|
|
1301
1240
|
const state = {};
|
|
1302
1241
|
const classValue = createMemo(() => resolveClass(props.class, state));
|
|
1303
1242
|
const styleValue = createMemo(() => resolveStyle(props.style, state));
|
|
1304
|
-
const others = omit(allProps, "
|
|
1243
|
+
const others = omit(allProps, "render", "class", "container", "ref", "style");
|
|
1305
1244
|
return Show({
|
|
1306
1245
|
get when() {
|
|
1307
1246
|
return shouldRender();
|
|
@@ -1311,8 +1250,8 @@ function SelectPortal(props) {
|
|
|
1311
1250
|
value: true,
|
|
1312
1251
|
get children() {
|
|
1313
1252
|
return PopupPortal(mergeProps({
|
|
1314
|
-
get
|
|
1315
|
-
return props.
|
|
1253
|
+
get render() {
|
|
1254
|
+
return props.render;
|
|
1316
1255
|
},
|
|
1317
1256
|
get container() {
|
|
1318
1257
|
return internalProps.container;
|
|
@@ -1349,15 +1288,12 @@ function SelectBackdrop(props) {
|
|
|
1349
1288
|
"-webkit-user-select": "none"
|
|
1350
1289
|
}, resolveStyle(props.style, state())));
|
|
1351
1290
|
const stateAttributes = createMemo(() => getStateAttributesProps(state(), popupTransitionStateMapping));
|
|
1352
|
-
const others = omit(allProps, "
|
|
1291
|
+
const others = omit(allProps, "render", "class", "ref", "style");
|
|
1353
1292
|
let backdrop = null;
|
|
1354
1293
|
onCleanup(() => {
|
|
1355
1294
|
if (context.backdropElement() === backdrop) context.setBackdropElement(null);
|
|
1356
1295
|
});
|
|
1357
|
-
return
|
|
1358
|
-
get component() {
|
|
1359
|
-
return props.as ?? "div";
|
|
1360
|
-
},
|
|
1296
|
+
return useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true))(mergeProps({
|
|
1361
1297
|
ref: [((element) => {
|
|
1362
1298
|
backdrop = element;
|
|
1363
1299
|
context.setBackdropElement(element);
|
|
@@ -1434,7 +1370,7 @@ function SelectPositioner(props) {
|
|
|
1434
1370
|
transition: context.store.track().transitionStatus === "starting" ? "none" : void 0
|
|
1435
1371
|
}, resolveStyle(props.style, state())));
|
|
1436
1372
|
const stateAttributes = createMemo(() => getStateAttributesProps(state(), selectPositionerStateMapping));
|
|
1437
|
-
const others = omit(allProps, "align", "alignItemWithTrigger", "alignOffset", "anchor", "arrowPadding", "
|
|
1373
|
+
const others = omit(allProps, "align", "alignItemWithTrigger", "alignOffset", "anchor", "arrowPadding", "render", "class", "collisionAvoidance", "collisionBoundary", "collisionPadding", "disableAnchorTracking", "positionMethod", "ref", "side", "sideOffset", "sticky", "style");
|
|
1438
1374
|
let previousSize = 0;
|
|
1439
1375
|
createAnchoredPopupScrollLock({
|
|
1440
1376
|
enabled: () => context.store.open() && (alignItemWithTriggerActive() || context.modal()),
|
|
@@ -1456,7 +1392,7 @@ function SelectPositioner(props) {
|
|
|
1456
1392
|
}), ({ size, values }) => {
|
|
1457
1393
|
const oldSize = previousSize;
|
|
1458
1394
|
previousSize = size;
|
|
1459
|
-
if (oldSize === 0 ||
|
|
1395
|
+
if (oldSize === 0 || values.length === 0) return;
|
|
1460
1396
|
untrack(() => {
|
|
1461
1397
|
const current = context.value();
|
|
1462
1398
|
if (context.multiple()) {
|
|
@@ -1472,7 +1408,7 @@ function SelectPositioner(props) {
|
|
|
1472
1408
|
context.setValue(next, createChangeEventDetails(none));
|
|
1473
1409
|
if (next === null) context.setSelectedItemText(null);
|
|
1474
1410
|
}
|
|
1475
|
-
if (context.store.open() && alignItemWithTriggerActive()) {
|
|
1411
|
+
if (size !== oldSize && context.store.open() && alignItemWithTriggerActive()) {
|
|
1476
1412
|
context.store.setScrollUpVisible(false);
|
|
1477
1413
|
context.store.setScrollDownVisible(false);
|
|
1478
1414
|
element()?.style.removeProperty("height");
|
|
@@ -1513,6 +1449,7 @@ function SelectPositioner(props) {
|
|
|
1513
1449
|
}
|
|
1514
1450
|
});
|
|
1515
1451
|
}
|
|
1452
|
+
const Render = useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true));
|
|
1516
1453
|
return SelectPositionerContext({
|
|
1517
1454
|
value: positionerContext,
|
|
1518
1455
|
get children() {
|
|
@@ -1525,10 +1462,7 @@ function SelectPositioner(props) {
|
|
|
1525
1462
|
get children() {
|
|
1526
1463
|
return ModalBackdrop({});
|
|
1527
1464
|
}
|
|
1528
|
-
}),
|
|
1529
|
-
get component() {
|
|
1530
|
-
return props.as ?? "div";
|
|
1531
|
-
},
|
|
1465
|
+
}), Render(mergeProps({
|
|
1532
1466
|
ref: [((value) => {
|
|
1533
1467
|
setElement(value);
|
|
1534
1468
|
context.store.setPositionerElement(value);
|
|
@@ -1595,7 +1529,7 @@ function SelectPopup(props) {
|
|
|
1595
1529
|
}, resolveStyle(props.style, state())));
|
|
1596
1530
|
const stateAttributes = createMemo(() => getStateAttributesProps(state(), selectPopupStateMapping));
|
|
1597
1531
|
const id = createMemo(() => internalProps.id ?? `${context.id()}-list`);
|
|
1598
|
-
const others = omit(allProps, "
|
|
1532
|
+
const others = omit(allProps, "render", "class", "finalFocus", "id", "onBlur", "onKeyDown", "onScroll", "ref", "style");
|
|
1599
1533
|
let popupElement = null;
|
|
1600
1534
|
let initialPlaced = false;
|
|
1601
1535
|
let reachedMaxHeight = false;
|
|
@@ -1647,14 +1581,14 @@ function SelectPopup(props) {
|
|
|
1647
1581
|
reachedMaxHeight = roundedHeight >= maximumHeight - 1;
|
|
1648
1582
|
setArrowVisibility(scroller);
|
|
1649
1583
|
}
|
|
1650
|
-
const onBlur = composeEventHandlers(() => internalProps.onBlur, () => context.handleTypeaheadBlur);
|
|
1651
|
-
const onKeyDown = composeEventHandlers(() => internalProps.onKeyDown, (
|
|
1584
|
+
const onBlur = composeEventHandlers(liveEventHandler(() => internalProps.onBlur), liveEventHandler(() => context.handleTypeaheadBlur));
|
|
1585
|
+
const onKeyDown = composeEventHandlers(liveEventHandler(() => internalProps.onKeyDown), (event) => {
|
|
1652
1586
|
const handler = context.store.state.popupProps.onKeyDown;
|
|
1653
1587
|
if (typeof handler === "function") Reflect.apply(handler, event.currentTarget, [event]);
|
|
1654
|
-
}, (
|
|
1588
|
+
}, (event) => {
|
|
1655
1589
|
if (insideToolbar && COMPOSITE_KEYS.has(event.key)) event.stopPropagation();
|
|
1656
1590
|
});
|
|
1657
|
-
const onScroll = composeEventHandlers(() => internalProps.onScroll, (
|
|
1591
|
+
const onScroll = composeEventHandlers(liveEventHandler(() => internalProps.onScroll), (event) => {
|
|
1658
1592
|
if (!context.store.listElement()) handleScroll(event.currentTarget);
|
|
1659
1593
|
});
|
|
1660
1594
|
createEffect(() => id(), (currentId) => context.store.setPopupId(currentId));
|
|
@@ -1835,10 +1769,7 @@ function SelectPopup(props) {
|
|
|
1835
1769
|
}
|
|
1836
1770
|
function PopupElement() {
|
|
1837
1771
|
const list = () => context.store.listElement();
|
|
1838
|
-
return
|
|
1839
|
-
get component() {
|
|
1840
|
-
return props.as ?? "div";
|
|
1841
|
-
},
|
|
1772
|
+
return Render(mergeProps({
|
|
1842
1773
|
ref: [((element) => {
|
|
1843
1774
|
popupElement = element;
|
|
1844
1775
|
context.store.setPopupElement(element);
|
|
@@ -1856,8 +1787,8 @@ function SelectPopup(props) {
|
|
|
1856
1787
|
get ["data-rootownerid"]() {
|
|
1857
1788
|
return context.node.id;
|
|
1858
1789
|
},
|
|
1859
|
-
get ["aria-
|
|
1860
|
-
return list() ? void 0
|
|
1790
|
+
get ["aria-readonly"]() {
|
|
1791
|
+
return !list() && context.readOnly() ? "true" : void 0;
|
|
1861
1792
|
},
|
|
1862
1793
|
get ["aria-multiselectable"]() {
|
|
1863
1794
|
return !list() && context.multiple() ? "true" : void 0;
|
|
@@ -1873,6 +1804,7 @@ function SelectPopup(props) {
|
|
|
1873
1804
|
onScroll
|
|
1874
1805
|
}, stateAttributes, others));
|
|
1875
1806
|
}
|
|
1807
|
+
const Render = useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true));
|
|
1876
1808
|
return FocusManager({
|
|
1877
1809
|
get context() {
|
|
1878
1810
|
return context.store.context.floatingRoot;
|
|
@@ -1967,16 +1899,13 @@ function SelectList(props) {
|
|
|
1967
1899
|
...positioner.alignItemWithTriggerActive() ? SELECT_LIST_FUNCTIONAL_STYLES : {},
|
|
1968
1900
|
"scrollbar-width": context.store.hasScrollArrows() && context.store.openMethod() !== "touch" ? "none" : void 0
|
|
1969
1901
|
}, resolveStyle(props.style, state)));
|
|
1970
|
-
const others = omit(allProps, "
|
|
1971
|
-
const onScroll = composeEventHandlers(() => internalProps.onScroll, (
|
|
1902
|
+
const others = omit(allProps, "render", "class", "id", "onScroll", "ref", "style");
|
|
1903
|
+
const onScroll = composeEventHandlers(liveEventHandler(() => internalProps.onScroll), (event) => context.handleScroll(event.currentTarget));
|
|
1972
1904
|
let listElement = null;
|
|
1973
1905
|
onCleanup(() => {
|
|
1974
1906
|
if (context.store.listElement() === listElement) context.store.setListElement(null);
|
|
1975
1907
|
});
|
|
1976
|
-
return
|
|
1977
|
-
get component() {
|
|
1978
|
-
return props.as ?? "div";
|
|
1979
|
-
},
|
|
1908
|
+
return useRender(props, () => state, (props) => ssrElement("div", props, void 0, true))(mergeProps({
|
|
1980
1909
|
ref: [((element) => {
|
|
1981
1910
|
listElement = element;
|
|
1982
1911
|
context.store.setListElement(element);
|
|
@@ -1985,6 +1914,9 @@ function SelectList(props) {
|
|
|
1985
1914
|
return internalProps.id ?? `${context.id()}-list`;
|
|
1986
1915
|
},
|
|
1987
1916
|
role: "listbox",
|
|
1917
|
+
get ["aria-readonly"]() {
|
|
1918
|
+
return context.readOnly() ? "true" : void 0;
|
|
1919
|
+
},
|
|
1988
1920
|
get ["aria-multiselectable"]() {
|
|
1989
1921
|
return context.multiple() ? "true" : void 0;
|
|
1990
1922
|
},
|
|
@@ -2043,7 +1975,7 @@ function SelectItem(props) {
|
|
|
2043
1975
|
const classValue = createMemo(() => resolveClass(props.class, state()));
|
|
2044
1976
|
const styleValue = createMemo(() => resolveStyle(props.style, state()));
|
|
2045
1977
|
const stateAttributes = createMemo(() => getStateAttributesProps(state()));
|
|
2046
|
-
const others = omit(allProps, "
|
|
1978
|
+
const others = omit(allProps, "render", "class", "disabled", "id", "label", "nativeButton", "onBlur", "onClick", "onFocus", "onKeyDown", "onKeyUp", "onMouseMove", "onMouseUp", "onPointerDown", "onPointerEnter", "onPointerMove", "ref", "style", "value");
|
|
2047
1979
|
let pointerType = "mouse";
|
|
2048
1980
|
let allowMouseSelection = false;
|
|
2049
1981
|
let dispatchedClickHandled = false;
|
|
@@ -2131,18 +2063,18 @@ function SelectItem(props) {
|
|
|
2131
2063
|
element()?.click();
|
|
2132
2064
|
allowMouseSelection = false;
|
|
2133
2065
|
}
|
|
2134
|
-
const onBlur = composeEventHandlers(() => internalProps.onBlur,
|
|
2135
|
-
const onClick = composeEventHandlers(() => untrack(() => disabled() ? preventButtonInteraction : void 0), () => internalProps.onClick,
|
|
2136
|
-
const onFocus = composeEventHandlers(() => internalProps.onFocus,
|
|
2137
|
-
const onKeyDown = composeEventHandlers(() => internalProps.onKeyDown,
|
|
2138
|
-
const onKeyUp = composeEventHandlers(() => internalProps.onKeyUp,
|
|
2139
|
-
const onMouseUp = composeEventHandlers(() => internalProps.onMouseUp,
|
|
2140
|
-
const onMouseMove = composeEventHandlers(() => internalProps.onMouseMove,
|
|
2141
|
-
const onPointerDown = composeEventHandlers(() => internalProps.onPointerDown,
|
|
2142
|
-
const onPointerEnter = composeEventHandlers(() => internalProps.onPointerEnter, (
|
|
2066
|
+
const onBlur = composeEventHandlers(liveEventHandler(() => internalProps.onBlur), handleBlur);
|
|
2067
|
+
const onClick = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? preventButtonInteraction : void 0)), liveEventHandler(() => internalProps.onClick), handleClick);
|
|
2068
|
+
const onFocus = composeEventHandlers(liveEventHandler(() => internalProps.onFocus), handleFocus);
|
|
2069
|
+
const onKeyDown = composeEventHandlers(liveEventHandler(() => internalProps.onKeyDown), handleKeyDown);
|
|
2070
|
+
const onKeyUp = composeEventHandlers(liveEventHandler(() => internalProps.onKeyUp), handleKeyUp);
|
|
2071
|
+
const onMouseUp = composeEventHandlers(liveEventHandler(() => internalProps.onMouseUp), handleMouseUp);
|
|
2072
|
+
const onMouseMove = composeEventHandlers(liveEventHandler(() => internalProps.onMouseMove), handleMouseMove);
|
|
2073
|
+
const onPointerDown = composeEventHandlers(liveEventHandler(() => internalProps.onPointerDown), handlePointerDown);
|
|
2074
|
+
const onPointerEnter = composeEventHandlers(liveEventHandler(() => internalProps.onPointerEnter), (event) => {
|
|
2143
2075
|
pointerType = event.pointerType;
|
|
2144
2076
|
});
|
|
2145
|
-
const onPointerMove = composeEventHandlers(() => internalProps.onPointerMove,
|
|
2077
|
+
const onPointerMove = composeEventHandlers(liveEventHandler(() => internalProps.onPointerMove), handlePointerMove);
|
|
2146
2078
|
createEffect(() => ({
|
|
2147
2079
|
index: index(),
|
|
2148
2080
|
selectedByFocus: selectedByFocus(),
|
|
@@ -2156,19 +2088,18 @@ function SelectItem(props) {
|
|
|
2156
2088
|
if (context.firstItemText() === untrack(textElement)) context.setFirstItemText(null);
|
|
2157
2089
|
if (context.selectedItemText() === untrack(textElement)) context.setSelectedItemText(null);
|
|
2158
2090
|
});
|
|
2091
|
+
const itemContext = {
|
|
2092
|
+
selected,
|
|
2093
|
+
selectedByFocus,
|
|
2094
|
+
index,
|
|
2095
|
+
textElement,
|
|
2096
|
+
setTextElement
|
|
2097
|
+
};
|
|
2098
|
+
const Render = useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true));
|
|
2159
2099
|
return SelectItemContext({
|
|
2160
|
-
value:
|
|
2161
|
-
selected,
|
|
2162
|
-
selectedByFocus,
|
|
2163
|
-
index,
|
|
2164
|
-
textElement,
|
|
2165
|
-
setTextElement
|
|
2166
|
-
},
|
|
2100
|
+
value: itemContext,
|
|
2167
2101
|
get children() {
|
|
2168
|
-
return
|
|
2169
|
-
get component() {
|
|
2170
|
-
return props.as ?? "div";
|
|
2171
|
-
},
|
|
2102
|
+
return Render(mergeProps({
|
|
2172
2103
|
ref: [((value) => {
|
|
2173
2104
|
setElement(value);
|
|
2174
2105
|
context.store.collection.touch();
|
|
@@ -2236,7 +2167,7 @@ function SelectItemIndicator(props) {
|
|
|
2236
2167
|
const classValue = createMemo(() => resolveClass(props.class, state()));
|
|
2237
2168
|
const styleValue = createMemo(() => resolveStyle(props.style, state()));
|
|
2238
2169
|
const stateAttributes = createMemo(() => getStateAttributesProps(state(), transitionStatusMapping));
|
|
2239
|
-
const others = omit(allProps, "
|
|
2170
|
+
const others = omit(allProps, "render", "class", "keepMounted", "ref", "style");
|
|
2240
2171
|
let element;
|
|
2241
2172
|
createEffect(() => ({
|
|
2242
2173
|
selected: item.selected(),
|
|
@@ -2250,15 +2181,13 @@ function SelectItemIndicator(props) {
|
|
|
2250
2181
|
}, controller.signal);
|
|
2251
2182
|
return () => controller.abort();
|
|
2252
2183
|
});
|
|
2184
|
+
const Render = useRender(props, () => state(), (props) => ssrElement("span", props, void 0, true));
|
|
2253
2185
|
return Show({
|
|
2254
2186
|
get when() {
|
|
2255
2187
|
return shouldRender();
|
|
2256
2188
|
},
|
|
2257
2189
|
get children() {
|
|
2258
|
-
return
|
|
2259
|
-
get component() {
|
|
2260
|
-
return props.as ?? "span";
|
|
2261
|
-
},
|
|
2190
|
+
return Render(mergeProps({
|
|
2262
2191
|
ref: [((value) => element = value), internalProps.ref],
|
|
2263
2192
|
"aria-hidden": "true",
|
|
2264
2193
|
get ["class"]() {
|
|
@@ -2284,7 +2213,7 @@ function SelectItemText(props) {
|
|
|
2284
2213
|
const state = {};
|
|
2285
2214
|
const classValue = createMemo(() => resolveClass(props.class, state));
|
|
2286
2215
|
const styleValue = createMemo(() => resolveStyle(props.style, state));
|
|
2287
|
-
const others = omit(allProps, "
|
|
2216
|
+
const others = omit(allProps, "render", "class", "ref", "style");
|
|
2288
2217
|
createEffect(() => ({
|
|
2289
2218
|
index: item.index(),
|
|
2290
2219
|
selected: item.selectedByFocus(),
|
|
@@ -2301,10 +2230,7 @@ function SelectItemText(props) {
|
|
|
2301
2230
|
if (root.selectedItemText() === text) root.setSelectedItemText(null);
|
|
2302
2231
|
});
|
|
2303
2232
|
});
|
|
2304
|
-
return
|
|
2305
|
-
get component() {
|
|
2306
|
-
return props.as ?? "div";
|
|
2307
|
-
},
|
|
2233
|
+
return useRender(props, () => state, (props) => ssrElement("div", props, void 0, true))(mergeProps({
|
|
2308
2234
|
ref: [((element) => item.setTextElement(element)), internalProps.ref],
|
|
2309
2235
|
get ["class"]() {
|
|
2310
2236
|
return classValue();
|
|
@@ -2331,20 +2257,18 @@ function SelectArrow(props) {
|
|
|
2331
2257
|
const classValue = createMemo(() => resolveClass(props.class, state()));
|
|
2332
2258
|
const styleValue = createMemo(() => mergeStyleValue(positioner.arrowStyles(), resolveStyle(props.style, state())));
|
|
2333
2259
|
const stateAttributes = createMemo(() => getStateAttributesProps(state(), popupStateMapping));
|
|
2334
|
-
const others = omit(allProps, "
|
|
2260
|
+
const others = omit(allProps, "render", "class", "ref", "style");
|
|
2335
2261
|
let arrow = null;
|
|
2336
2262
|
onCleanup(() => {
|
|
2337
2263
|
if (arrow) positioner.setArrowElement(null);
|
|
2338
2264
|
});
|
|
2265
|
+
const Render = useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true));
|
|
2339
2266
|
return Show({
|
|
2340
2267
|
get when() {
|
|
2341
2268
|
return !positioner.alignItemWithTriggerActive();
|
|
2342
2269
|
},
|
|
2343
2270
|
get children() {
|
|
2344
|
-
return
|
|
2345
|
-
get component() {
|
|
2346
|
-
return props.as ?? "div";
|
|
2347
|
-
},
|
|
2271
|
+
return Render(mergeProps({
|
|
2348
2272
|
ref: [((element) => {
|
|
2349
2273
|
arrow = element;
|
|
2350
2274
|
positioner.setArrowElement(element);
|
|
@@ -2382,7 +2306,7 @@ function SelectScrollArrow(props) {
|
|
|
2382
2306
|
const classValue = createMemo(() => resolveClass(props.class, state()));
|
|
2383
2307
|
const styleValue = createMemo(() => mergeStyleValue({ position: "absolute" }, resolveStyle(props.style, state())));
|
|
2384
2308
|
const stateAttributes = createMemo(() => getStateAttributesProps(state(), transitionStatusMapping));
|
|
2385
|
-
const others = omit(allProps, "
|
|
2309
|
+
const others = omit(allProps, "render", "class", "direction", "keepMounted", "onMouseLeave", "onMouseMove", "ref", "style");
|
|
2386
2310
|
let element = null;
|
|
2387
2311
|
let timer;
|
|
2388
2312
|
function stop() {
|
|
@@ -2408,8 +2332,8 @@ function SelectScrollArrow(props) {
|
|
|
2408
2332
|
if (items.length > 0) scroller.scrollTop = getTargetScrollTop(items, isUp(), offset, scroller.clientHeight, element?.offsetHeight ?? 0, maximum);
|
|
2409
2333
|
timer = setTimeout(scrollNext, 40);
|
|
2410
2334
|
}
|
|
2411
|
-
const onMouseLeave = composeEventHandlers(() => internalProps.onMouseLeave,
|
|
2412
|
-
const onMouseMove = composeEventHandlers(() => internalProps.onMouseMove,
|
|
2335
|
+
const onMouseLeave = composeEventHandlers(liveEventHandler(() => internalProps.onMouseLeave), stop);
|
|
2336
|
+
const onMouseMove = composeEventHandlers(liveEventHandler(() => internalProps.onMouseMove), start);
|
|
2413
2337
|
root.scrollArrowsMounted.count += 1;
|
|
2414
2338
|
root.store.setHasScrollArrows(true);
|
|
2415
2339
|
createEffect(() => ({
|
|
@@ -2431,15 +2355,13 @@ function SelectScrollArrow(props) {
|
|
|
2431
2355
|
if (isUp()) positioner.setScrollUpArrow(null);
|
|
2432
2356
|
else positioner.setScrollDownArrow(null);
|
|
2433
2357
|
});
|
|
2358
|
+
const Render = useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true));
|
|
2434
2359
|
return Show({
|
|
2435
2360
|
get when() {
|
|
2436
2361
|
return shouldRender();
|
|
2437
2362
|
},
|
|
2438
2363
|
get children() {
|
|
2439
|
-
return
|
|
2440
|
-
get component() {
|
|
2441
|
-
return props.as ?? "div";
|
|
2442
|
-
},
|
|
2364
|
+
return Render(mergeProps({
|
|
2443
2365
|
ref: [((value) => {
|
|
2444
2366
|
element = value;
|
|
2445
2367
|
if (isUp()) positioner.setScrollUpArrow(value);
|
|
@@ -2516,17 +2438,15 @@ function SelectGroup(props) {
|
|
|
2516
2438
|
const state = {};
|
|
2517
2439
|
const classValue = createMemo(() => resolveClass(props.class, state));
|
|
2518
2440
|
const styleValue = createMemo(() => resolveStyle(props.style, state));
|
|
2519
|
-
const others = omit(allProps, "
|
|
2441
|
+
const others = omit(allProps, "render", "class", "ref", "style");
|
|
2442
|
+
const Render = useRender(props, () => state, (props) => ssrElement("div", props, void 0, true));
|
|
2520
2443
|
return SelectGroupContext({
|
|
2521
2444
|
value: {
|
|
2522
2445
|
labelId,
|
|
2523
2446
|
setLabelId
|
|
2524
2447
|
},
|
|
2525
2448
|
get children() {
|
|
2526
|
-
return
|
|
2527
|
-
get component() {
|
|
2528
|
-
return props.as ?? "div";
|
|
2529
|
-
},
|
|
2449
|
+
return Render(mergeProps({
|
|
2530
2450
|
ref: [internalProps.ref],
|
|
2531
2451
|
role: "group",
|
|
2532
2452
|
get ["aria-labelledby"]() {
|
|
@@ -2554,21 +2474,19 @@ function SelectGroupLabel(props) {
|
|
|
2554
2474
|
const state = {};
|
|
2555
2475
|
const classValue = createMemo(() => resolveClass(props.class, state));
|
|
2556
2476
|
const styleValue = createMemo(() => resolveStyle(props.style, state));
|
|
2557
|
-
const others = omit(allProps, "
|
|
2477
|
+
const others = omit(allProps, "render", "class", "id", "ref", "style");
|
|
2558
2478
|
createEffect(id, (currentId) => {
|
|
2559
2479
|
context.setLabelId(currentId);
|
|
2560
2480
|
return () => {
|
|
2561
2481
|
if (context.labelId() === currentId) context.setLabelId(void 0);
|
|
2562
2482
|
};
|
|
2563
2483
|
});
|
|
2564
|
-
return
|
|
2565
|
-
get component() {
|
|
2566
|
-
return props.as ?? "div";
|
|
2567
|
-
},
|
|
2484
|
+
return useRender(props, () => state, (props) => ssrElement("div", props, void 0, true))(mergeProps({
|
|
2568
2485
|
ref: [internalProps.ref],
|
|
2569
2486
|
get id() {
|
|
2570
2487
|
return id();
|
|
2571
2488
|
},
|
|
2489
|
+
"aria-hidden": "true",
|
|
2572
2490
|
get ["class"]() {
|
|
2573
2491
|
return classValue();
|
|
2574
2492
|
},
|
|
@@ -2588,11 +2506,8 @@ function SelectSeparator(props) {
|
|
|
2588
2506
|
const classValue = createMemo(() => resolveClass(props.class, state()));
|
|
2589
2507
|
const styleValue = createMemo(() => resolveStyle(props.style, state()));
|
|
2590
2508
|
const stateAttributes = createMemo(() => getStateAttributesProps(state()));
|
|
2591
|
-
const others = omit(allProps, "
|
|
2592
|
-
return
|
|
2593
|
-
get component() {
|
|
2594
|
-
return props.as ?? "div";
|
|
2595
|
-
},
|
|
2509
|
+
const others = omit(allProps, "render", "class", "orientation", "ref", "style");
|
|
2510
|
+
return useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true))(mergeProps({
|
|
2596
2511
|
ref: [internalProps.ref],
|
|
2597
2512
|
role: "presentation",
|
|
2598
2513
|
get ["class"]() {
|