solid-baseui 0.1.0-alpha.0 → 0.1.0-alpha.1
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 +30 -0
- package/README.md +95 -8
- package/dist/lib/client/DialogHandle-BGyIbcvg.js +521 -0
- package/dist/lib/client/DialogPopup-Df7MC358.js +138 -0
- package/dist/lib/client/FieldControl-C0PATyKV.js +142 -0
- package/dist/lib/client/{FocusManager-grSdNHqW.js → FocusManager-NP1uPXTi.js} +5 -5
- package/dist/lib/client/{FormContext-BB05lWOI.js → FormContext-CwLBtm_d.js} +1 -0
- package/dist/lib/client/{LabelableContext-DKsB0fIx.js → LabelableContext-CmQF-TX2.js} +3 -6
- package/dist/lib/client/MenuSubmenuTrigger-yfncqM-D.js +1584 -0
- package/dist/lib/client/{PopupHandle-CcJG4NMy.js → PopupHandle-CQI6Om1Z.js} +1 -1
- package/dist/lib/client/{PopupStore-DjB-wO88.js → PopupStore-Du0O57fL.js} +118 -98
- package/dist/lib/client/{PopupViewport-DgrIqQea.js → PopupViewport-IS4XU03s.js} +2 -2
- package/dist/lib/client/Separator-D5oJzlA3.js +27 -0
- package/dist/lib/client/TriggerFocusGuards-Cs8LVBj5.js +51 -0
- package/dist/lib/client/accordion/index.js +1 -1
- package/dist/lib/client/accordion-BFeZFpJZ.js +381 -0
- package/dist/lib/client/alert-dialog/index.js +1 -1
- package/dist/lib/client/{alert-dialog-BH_3ndio.js → alert-dialog-BxGUF8_Q.js} +2 -2
- package/dist/lib/client/autocomplete/index.js +1 -1
- package/dist/lib/client/{autocomplete-Cob_FZEP.js → autocomplete-C9QA98XD.js} +30 -25
- package/dist/lib/client/avatar/index.js +1 -1
- package/dist/lib/client/avatar-BQoEzzav.js +191 -0
- package/dist/lib/client/button/index.js +1 -1
- package/dist/lib/client/button-akYS6FyY.js +88 -0
- package/dist/lib/client/checkbox/index.js +1 -1
- package/dist/lib/client/checkbox-DOXtzBhA.js +425 -0
- package/dist/lib/client/checkbox-group/index.js +1 -1
- package/dist/lib/client/checkbox-group-CwMDoSTK.js +135 -0
- package/dist/lib/client/collapsible/index.js +1 -1
- package/dist/lib/client/collapsible-t8YReaIp.js +230 -0
- package/dist/lib/client/combobox/index.js +2 -2
- package/dist/lib/client/combobox-6DhOdzit.js +399 -0
- package/dist/lib/client/{constants-BYjBUIIi.js → constants-cOVxAoxB.js} +5 -1
- package/dist/lib/client/context-menu/index.js +1 -1
- package/dist/lib/client/context-menu-CplDpqmi.js +220 -0
- package/dist/lib/client/{createAnchorPositioning-DcxDXUgB.js → createAnchorPositioning-D96gu-Dz.js} +148 -145
- package/dist/lib/client/{createCollapsiblePanel-DeDu0O2t.js → createCollapsiblePanel-BQ8r4RTi.js} +1 -1
- package/dist/lib/client/createFocusInteraction--s9_qBf3.js +60 -0
- package/dist/lib/client/createLabelableId-DxJRwMUJ.js +14 -0
- package/dist/lib/client/{createPopupAutoResize-CGNiLhGq.js → createPopupAutoResize-Dn-stj-8.js} +1 -1
- 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-B9tR9X48.js} +2 -2
- package/dist/lib/client/drawer/index.js +1 -1
- package/dist/lib/client/drawer-dyr3_sKQ.js +1539 -0
- package/dist/lib/client/field/index.js +1 -1
- package/dist/lib/client/field-CjUAjp1m.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-6Ne_bWQX.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-_QHvSSqM.js} +1 -1
- 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/menu/index.js +1 -1
- package/dist/lib/client/menu-DLqUBmMK.js +334 -0
- package/dist/lib/client/menubar/index.js +1 -1
- package/dist/lib/client/menubar-DhPRUQZ6.js +163 -0
- package/dist/lib/client/{mergeStyleValue-C4ITiiIV.js → mergeStyleValue-DhTA9Nwe.js} +7 -3
- 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-mVHV41Ky.js +1070 -0
- package/dist/lib/client/number-field/index.js +1 -1
- package/dist/lib/client/number-field-DusLw_0X.js +1043 -0
- package/dist/lib/client/otp-field/index.js +1 -1
- package/dist/lib/client/otp-field-D-B9tZzF.js +584 -0
- package/dist/lib/client/popover/index.js +1 -1
- package/dist/lib/client/popover-Cv7xn0nW.js +938 -0
- package/dist/lib/client/popupStateMapping-C6jQ_LKo.js +371 -0
- package/dist/lib/client/preview-card/index.js +1 -1
- package/dist/lib/client/preview-card-FTN_aafM.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-DA_oZhQT.js +284 -0
- package/dist/lib/client/radio-group/index.js +1 -1
- package/dist/lib/client/radio-group-CWtQxWDl.js +195 -0
- package/dist/lib/client/runOnceAnimationsFinish-CFADb4CN.js +49 -0
- package/dist/lib/client/{safePolygon--bbKn0c8.js → safePolygon-DJG0VIVo.js} +4 -0
- package/dist/lib/client/scroll-area/index.js +1 -1
- package/dist/lib/client/scroll-area-NCr49LkD.js +717 -0
- package/dist/lib/client/select/index.js +1 -1
- package/dist/lib/client/select-DSPJt7Rk.js +1933 -0
- package/dist/lib/client/separator/index.js +1 -1
- package/dist/lib/client/slider/index.js +1 -1
- package/dist/lib/client/slider-CWq9hxFf.js +927 -0
- package/dist/lib/client/switch/index.js +1 -1
- package/dist/lib/client/switch-CPl7QHKI.js +306 -0
- package/dist/lib/client/tabs/index.js +1 -1
- package/dist/lib/client/tabs-Bn4rZDyZ.js +692 -0
- package/dist/lib/client/toast/index.js +1 -1
- package/dist/lib/client/toast-7LdqZWOs.js +1118 -0
- package/dist/lib/client/toggle/index.js +1 -1
- package/dist/lib/client/toggle-CsC37e3e.js +142 -0
- package/dist/lib/client/toggle-group/index.js +1 -1
- package/dist/lib/client/toggle-group-DSWb9HxN.js +134 -0
- package/dist/lib/client/toolbar/index.js +1 -1
- package/dist/lib/client/toolbar-DcCi3HNp.js +504 -0
- package/dist/lib/client/tooltip/index.js +1 -1
- package/dist/lib/client/tooltip-D-PkGco9.js +849 -0
- package/dist/lib/client/use-render/index.js +2 -0
- package/dist/lib/client/useFilteredItems-B7z2CGMV.js +2270 -0
- package/dist/lib/client/useRender-CxZ8PI-g.js +12 -0
- package/dist/lib/server/{DialogHandle-ATZlm9RC.js → DialogHandle-nJSSy_jM.js} +24 -33
- package/dist/lib/server/{DialogPopup-BebI-w5P.js → DialogPopup-Da1aIxVA.js} +10 -13
- package/dist/lib/server/{FieldControl-Y_kI7ARp.js → FieldControl-BDeNR3ug.js} +56 -20
- package/dist/lib/server/{FocusManager-BrbZVWME.js → FocusManager-1LfoCsya.js} +1 -3
- package/dist/lib/server/{FormContext-pvESt85v.js → FormContext-CYwo_ZnB.js} +1 -0
- package/dist/lib/server/{LabelableContext-DZP3rgAY.js → LabelableContext-BTeF0IWb.js} +4 -6
- package/dist/lib/server/{MenuSubmenuTrigger-DA4gsv6z.js → MenuSubmenuTrigger-rR8ZN7YR.js} +133 -166
- package/dist/lib/server/{PopupHandle-DthPgNjy.js → PopupHandle-Ct6wywmP.js} +1 -1
- package/dist/lib/server/{PopupStore-DEs3FAEe.js → PopupStore-kHjFPiQ5.js} +38 -14
- package/dist/lib/server/{PopupViewport-3r_KTFwX.js → PopupViewport-DftN5VUp.js} +2 -2
- package/dist/lib/server/{Separator-vhhYxWGr.js → Separator-DTvtnxzP.js} +4 -6
- package/dist/lib/server/TriggerFocusGuards-CvoGfft9.js +61 -0
- package/dist/lib/server/accordion/index.js +32 -70
- 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 +8 -9
- package/dist/lib/server/checkbox/index.js +30 -57
- package/dist/lib/server/checkbox-group/index.js +20 -10
- package/dist/lib/server/collapsible/index.js +36 -43
- package/dist/lib/server/combobox/index.js +64 -35
- package/dist/lib/server/{constants-9H__9xbS.js → constants-D7ciIzsV.js} +8 -3
- package/dist/lib/server/context-menu/index.js +7 -9
- package/dist/lib/server/{createAnchorPositioning-C-cVOPwz.js → createAnchorPositioning-B5Y0WEev.js} +11 -6
- package/dist/lib/server/{createCollapsiblePanel-DTyVJz0G.js → createCollapsiblePanel-B45kTe6v.js} +1 -1
- package/dist/lib/server/{createFocusInteraction-EIS0QOel.js → createFocusInteraction-DMyKsniI.js} +22 -2
- package/dist/lib/server/createLabelableId-WMUKtY6s.js +18 -0
- package/dist/lib/server/{createPopupAutoResize-DO50jjNX.js → createPopupAutoResize-ImBjwdj_.js} +1 -1
- 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/drawer/index.js +63 -71
- package/dist/lib/server/field/index.js +105 -93
- package/dist/lib/server/fieldset/index.js +13 -16
- package/dist/lib/server/form/index.js +16 -12
- package/dist/lib/server/index.js +5 -3
- package/dist/lib/server/input/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/menu/index.js +21 -20
- package/dist/lib/server/menubar/index.js +6 -31
- package/dist/lib/server/{mergeStyleValue-Db8bRCM4.js → mergeStyleValue-BwJ10_X2.js} +6 -1
- package/dist/lib/server/meter/index.js +20 -32
- package/dist/lib/server/navigation-menu/index.js +53 -124
- package/dist/lib/server/number-field/index.js +44 -42
- package/dist/lib/server/otp-field/index.js +11 -14
- package/dist/lib/server/popover/index.js +42 -59
- package/dist/lib/server/{popupStateMapping-nKoUwoke.js → popupStateMapping-B2KsiiLb.js} +18 -16
- package/dist/lib/server/preview-card/index.js +30 -41
- package/dist/lib/server/progress/index.js +21 -33
- package/dist/lib/server/radio/index.js +18 -39
- package/dist/lib/server/radio-group/index.js +7 -8
- package/dist/lib/server/{runOnceAnimationsFinish-DCHzXWZU.js → runOnceAnimationsFinish-CYq38H8J.js} +2 -1
- package/dist/lib/server/{safePolygon-CAm5RJGv.js → safePolygon-C1GNJbKR.js} +5 -0
- package/dist/lib/server/scroll-area/index.js +23 -32
- package/dist/lib/server/select/index.js +95 -181
- package/dist/lib/server/separator/index.js +1 -1
- package/dist/lib/server/slider/index.js +25 -38
- package/dist/lib/server/switch/index.js +13 -23
- package/dist/lib/server/tabs/index.js +185 -129
- package/dist/lib/server/toast/index.js +49 -66
- package/dist/lib/server/toggle/index.js +4 -6
- package/dist/lib/server/toggle-group/index.js +9 -7
- package/dist/lib/server/toolbar/index.js +62 -79
- package/dist/lib/server/tooltip/index.js +28 -37
- package/dist/lib/server/use-render/index.js +2 -0
- package/dist/lib/server/{useFilteredItems-DvuctLt3.js → useFilteredItems-DCxq20Is.js} +164 -189
- 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 +1 -1
- 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/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 +12 -8
- package/dist/lib/types/combobox/root/ComboboxRootContext.d.ts +2 -0
- package/dist/lib/types/combobox/trigger/ComboboxTrigger.d.ts +1 -0
- 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/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/createTransitionStatus.d.ts +1 -1
- 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/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/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/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 +1 -1
- package/dist/lib/types/toolbar/root/ToolbarRoot.d.ts +1 -1
- 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/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/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,33 @@
|
|
|
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
8
|
import { composeEventHandlers } from "../internals/composeEventHandlers.js";
|
|
8
|
-
import { t as runOnceAnimationsFinish } from "../runOnceAnimationsFinish-
|
|
9
|
+
import { t as runOnceAnimationsFinish } from "../runOnceAnimationsFinish-CYq38H8J.js";
|
|
9
10
|
import { m as ownerWindow, n as contains, p as ownerDocument } from "../dom-Crg_2R-j.js";
|
|
10
|
-
import { t as createAnchorPositioning } from "../createAnchorPositioning-
|
|
11
|
+
import { t as createAnchorPositioning } from "../createAnchorPositioning-B5Y0WEev.js";
|
|
11
12
|
import { t as InternalBackdrop } from "../InternalBackdrop-C_iDPVR-.js";
|
|
12
13
|
import { t as createAnchoredPopupScrollLock } from "../createAnchoredPopupScrollLock-DFuUrykR.js";
|
|
13
14
|
import { t as createClickInteraction } from "../createClickInteraction-BYsMgvup.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-kHjFPiQ5.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-B2KsiiLb.js";
|
|
19
|
+
import { t as FocusManager } from "../FocusManager-1LfoCsya.js";
|
|
21
20
|
import { t as setRef } from "../setRef-Bt70sW7c.js";
|
|
21
|
+
import { t as TriggerFocusGuards } from "../TriggerFocusGuards-CvoGfft9.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
25
|
import { n as useFieldRootContext } from "../FieldRootContext-IC-LWzVp.js";
|
|
25
|
-
import { n as useFormContext } from "../FormContext-
|
|
26
|
-
import { a as defaultItemEquality, c as removeItem, i as compareItemEquality, n as isSolidAccessor, o as findItemIndex, r as areItemArraysEqual, t as mergeStyleValue } from "../mergeStyleValue-
|
|
27
|
-
import { r as useLabelableContext } from "../LabelableContext-
|
|
26
|
+
import { n as useFormContext } from "../FormContext-CYwo_ZnB.js";
|
|
27
|
+
import { a as defaultItemEquality, c as removeItem, i as compareItemEquality, n as isSolidAccessor, o as findItemIndex, r as areItemArraysEqual, s as findSelectionIndex, t as mergeStyleValue } from "../mergeStyleValue-BwJ10_X2.js";
|
|
28
|
+
import { r as useLabelableContext } from "../LabelableContext-BTeF0IWb.js";
|
|
28
29
|
import { n as useToolbarRootContext } from "../ToolbarRootContext-DD-qe7s8.js";
|
|
29
|
-
import {
|
|
30
|
+
import { escape, memo, mergeProps, ssr, ssrAttribute, ssrElement, ssrGroup, ssrHydrationKey, ssrStyle } from "@solidjs/web";
|
|
30
31
|
import { For, Show, createContext, createEffect, createMemo, createSignal, createUniqueId, flush, merge, omit, onCleanup, untrack, useContext } from "solid-js";
|
|
31
32
|
//#region src/select/utils/value.ts
|
|
32
33
|
function serializeValue(value, itemToStringValue) {
|
|
@@ -559,15 +560,7 @@ function SelectRoot(props) {
|
|
|
559
560
|
});
|
|
560
561
|
const presence = createPopupPresence(store, () => store.track().popupElement, { onUnmount: () => store.resetAfterClose() });
|
|
561
562
|
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;
|
|
563
|
+
return findSelectionIndex(store.collection.values(), value(), comparator(), multiple());
|
|
571
564
|
});
|
|
572
565
|
function setValue(nextValue, details) {
|
|
573
566
|
props.onValueChange?.(nextValue, details);
|
|
@@ -594,7 +587,7 @@ function SelectRoot(props) {
|
|
|
594
587
|
handleNavigation(event);
|
|
595
588
|
}
|
|
596
589
|
function handleNavigation(event) {
|
|
597
|
-
if (disabled() ||
|
|
590
|
+
if (disabled() || ![
|
|
598
591
|
"ArrowDown",
|
|
599
592
|
"ArrowUp",
|
|
600
593
|
"Home",
|
|
@@ -622,7 +615,7 @@ function SelectRoot(props) {
|
|
|
622
615
|
store.setTyping(false);
|
|
623
616
|
}
|
|
624
617
|
function handleTypeahead(event) {
|
|
625
|
-
if (disabled() || readOnly() || !store.open() && multiple() || event.key.length !== 1 || event.ctrlKey || event.metaKey || event.altKey) return;
|
|
618
|
+
if (disabled() || readOnly() && !store.open() || !store.open() && multiple() || event.key.length !== 1 || event.ctrlKey || event.metaKey || event.altKey) return;
|
|
626
619
|
if (typed && event.key === " ") {
|
|
627
620
|
event.preventDefault();
|
|
628
621
|
event.stopPropagation();
|
|
@@ -928,7 +921,7 @@ function SelectLabel(props) {
|
|
|
928
921
|
const classValue = createMemo(() => resolveClass(props.class, state()));
|
|
929
922
|
const styleValue = createMemo(() => resolveStyle(props.style, state()));
|
|
930
923
|
const stateAttributes = createMemo(() => getStateAttributesProps(state(), fieldStateAttributesMapping));
|
|
931
|
-
const others = omit(allProps, "
|
|
924
|
+
const others = omit(allProps, "render", "class", "id", "onClick", "onPointerDown", "ref", "style");
|
|
932
925
|
function focusTrigger(event) {
|
|
933
926
|
const target = event.composedPath()[0];
|
|
934
927
|
if (target instanceof Element && target.closest("button,input,select,textarea,a[href]")) return;
|
|
@@ -948,10 +941,7 @@ function SelectLabel(props) {
|
|
|
948
941
|
if (untrack(() => context.store.labelId()) === currentId) context.store.setLabelId(void 0);
|
|
949
942
|
};
|
|
950
943
|
});
|
|
951
|
-
return
|
|
952
|
-
get component() {
|
|
953
|
-
return props.as ?? "div";
|
|
954
|
-
},
|
|
944
|
+
return useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true))(mergeProps({
|
|
955
945
|
ref: [internalProps.ref],
|
|
956
946
|
get id() {
|
|
957
947
|
return id();
|
|
@@ -1005,10 +995,10 @@ function SelectTrigger(props) {
|
|
|
1005
995
|
const stateAttributes = createMemo(() => getStateAttributesProps(state(), selectTriggerStateMapping));
|
|
1006
996
|
const ariaLabelledBy = createMemo(() => internalProps["aria-labelledby"] ?? labelable.labelId() ?? context.store.labelId());
|
|
1007
997
|
const ariaDescribedBy = createMemo(() => labelable.getAriaDescribedBy(internalProps["aria-describedby"]));
|
|
1008
|
-
const others = omit(allProps, "aria-describedby", "aria-labelledby", "
|
|
998
|
+
const others = omit(allProps, "aria-describedby", "aria-labelledby", "render", "class", "disabled", "id", "nativeButton", "onBlur", "onClick", "onFocus", "onKeyDown", "onKeyUp", "onMouseDown", "onPointerDown", "ref", "style");
|
|
1009
999
|
const click = createClickInteraction({
|
|
1010
1000
|
context: context.store.context.floatingRoot,
|
|
1011
|
-
enabled: () => !disabled()
|
|
1001
|
+
enabled: () => !disabled(),
|
|
1012
1002
|
event: () => "mousedown"
|
|
1013
1003
|
});
|
|
1014
1004
|
let pointerType = "";
|
|
@@ -1078,7 +1068,7 @@ function SelectTrigger(props) {
|
|
|
1078
1068
|
context.setTriggerElement(current.element);
|
|
1079
1069
|
labelable.registerControlId(labelSource, current.id);
|
|
1080
1070
|
return () => {
|
|
1081
|
-
if (context.triggerElement
|
|
1071
|
+
if (untrack(context.triggerElement) === current.element) context.setTriggerElement(null);
|
|
1082
1072
|
};
|
|
1083
1073
|
});
|
|
1084
1074
|
onCleanup(() => {
|
|
@@ -1086,10 +1076,7 @@ function SelectTrigger(props) {
|
|
|
1086
1076
|
removeMouseUp?.();
|
|
1087
1077
|
labelable.registerControlId(labelSource, void 0);
|
|
1088
1078
|
});
|
|
1089
|
-
const trigger =
|
|
1090
|
-
get component() {
|
|
1091
|
-
return props.as ?? "button";
|
|
1092
|
-
},
|
|
1079
|
+
const trigger = useRender(props, () => state(), (props) => ssrElement("button", props, void 0, true))(mergeProps({
|
|
1093
1080
|
ref: [((value) => setElement(value)), internalProps.ref],
|
|
1094
1081
|
get id() {
|
|
1095
1082
|
return id();
|
|
@@ -1186,7 +1173,7 @@ function SelectValue(props) {
|
|
|
1186
1173
|
const classValue = createMemo(() => resolveClass(props.class, state()));
|
|
1187
1174
|
const styleValue = createMemo(() => resolveStyle(props.style, state()));
|
|
1188
1175
|
const stateAttributes = createMemo(() => getStateAttributesProps(state(), { value: () => null }));
|
|
1189
|
-
const others = omit(allProps, "
|
|
1176
|
+
const others = omit(allProps, "render", "children", "class", "placeholder", "ref", "style");
|
|
1190
1177
|
const content = createMemo(() => {
|
|
1191
1178
|
const child = props.children;
|
|
1192
1179
|
if (typeof child === "function") return isSolidAccessor(child) ? untrack(() => child()) : child(context.value());
|
|
@@ -1197,41 +1184,17 @@ function SelectValue(props) {
|
|
|
1197
1184
|
return resolveSelectedLabel(current, context.items(), context.itemToStringLabel());
|
|
1198
1185
|
});
|
|
1199
1186
|
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);
|
|
1187
|
+
return useRender(props, () => state(), (props) => ssrElement("span", props, void 0, true))(mergeProps({
|
|
1188
|
+
ref,
|
|
1189
|
+
get ["class"]() {
|
|
1190
|
+
return classValue();
|
|
1219
1191
|
},
|
|
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
|
-
});
|
|
1192
|
+
get style() {
|
|
1193
|
+
return styleValue();
|
|
1194
|
+
}
|
|
1195
|
+
}, stateAttributes, others, { get children() {
|
|
1196
|
+
return content();
|
|
1197
|
+
} }));
|
|
1235
1198
|
}
|
|
1236
1199
|
//#endregion
|
|
1237
1200
|
//#region src/select/icon/SelectIcon.tsx
|
|
@@ -1244,44 +1207,19 @@ function SelectIcon(props) {
|
|
|
1244
1207
|
const classValue = createMemo(() => resolveClass(props.class, state()));
|
|
1245
1208
|
const styleValue = createMemo(() => resolveStyle(props.style, state()));
|
|
1246
1209
|
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);
|
|
1210
|
+
const others = omit(allProps, "render", "class", "ref", "style");
|
|
1211
|
+
return useRender(props, () => state(), (props) => ssrElement("span", props, void 0, true))(mergeProps({
|
|
1212
|
+
ref: [internalProps.ref],
|
|
1213
|
+
"aria-hidden": "true",
|
|
1214
|
+
get ["class"]() {
|
|
1215
|
+
return classValue();
|
|
1268
1216
|
},
|
|
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
|
-
});
|
|
1217
|
+
get style() {
|
|
1218
|
+
return styleValue();
|
|
1219
|
+
}
|
|
1220
|
+
}, stateAttributes, others, { get children() {
|
|
1221
|
+
return props.children ?? "▼";
|
|
1222
|
+
} }));
|
|
1285
1223
|
}
|
|
1286
1224
|
//#endregion
|
|
1287
1225
|
//#region src/select/portal/SelectPortalContext.ts
|
|
@@ -1301,7 +1239,7 @@ function SelectPortal(props) {
|
|
|
1301
1239
|
const state = {};
|
|
1302
1240
|
const classValue = createMemo(() => resolveClass(props.class, state));
|
|
1303
1241
|
const styleValue = createMemo(() => resolveStyle(props.style, state));
|
|
1304
|
-
const others = omit(allProps, "
|
|
1242
|
+
const others = omit(allProps, "render", "class", "container", "ref", "style");
|
|
1305
1243
|
return Show({
|
|
1306
1244
|
get when() {
|
|
1307
1245
|
return shouldRender();
|
|
@@ -1311,8 +1249,8 @@ function SelectPortal(props) {
|
|
|
1311
1249
|
value: true,
|
|
1312
1250
|
get children() {
|
|
1313
1251
|
return PopupPortal(mergeProps({
|
|
1314
|
-
get
|
|
1315
|
-
return props.
|
|
1252
|
+
get render() {
|
|
1253
|
+
return props.render;
|
|
1316
1254
|
},
|
|
1317
1255
|
get container() {
|
|
1318
1256
|
return internalProps.container;
|
|
@@ -1349,15 +1287,12 @@ function SelectBackdrop(props) {
|
|
|
1349
1287
|
"-webkit-user-select": "none"
|
|
1350
1288
|
}, resolveStyle(props.style, state())));
|
|
1351
1289
|
const stateAttributes = createMemo(() => getStateAttributesProps(state(), popupTransitionStateMapping));
|
|
1352
|
-
const others = omit(allProps, "
|
|
1290
|
+
const others = omit(allProps, "render", "class", "ref", "style");
|
|
1353
1291
|
let backdrop = null;
|
|
1354
1292
|
onCleanup(() => {
|
|
1355
1293
|
if (context.backdropElement() === backdrop) context.setBackdropElement(null);
|
|
1356
1294
|
});
|
|
1357
|
-
return
|
|
1358
|
-
get component() {
|
|
1359
|
-
return props.as ?? "div";
|
|
1360
|
-
},
|
|
1295
|
+
return useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true))(mergeProps({
|
|
1361
1296
|
ref: [((element) => {
|
|
1362
1297
|
backdrop = element;
|
|
1363
1298
|
context.setBackdropElement(element);
|
|
@@ -1434,7 +1369,7 @@ function SelectPositioner(props) {
|
|
|
1434
1369
|
transition: context.store.track().transitionStatus === "starting" ? "none" : void 0
|
|
1435
1370
|
}, resolveStyle(props.style, state())));
|
|
1436
1371
|
const stateAttributes = createMemo(() => getStateAttributesProps(state(), selectPositionerStateMapping));
|
|
1437
|
-
const others = omit(allProps, "align", "alignItemWithTrigger", "alignOffset", "anchor", "arrowPadding", "
|
|
1372
|
+
const others = omit(allProps, "align", "alignItemWithTrigger", "alignOffset", "anchor", "arrowPadding", "render", "class", "collisionAvoidance", "collisionBoundary", "collisionPadding", "disableAnchorTracking", "positionMethod", "ref", "side", "sideOffset", "sticky", "style");
|
|
1438
1373
|
let previousSize = 0;
|
|
1439
1374
|
createAnchoredPopupScrollLock({
|
|
1440
1375
|
enabled: () => context.store.open() && (alignItemWithTriggerActive() || context.modal()),
|
|
@@ -1456,7 +1391,7 @@ function SelectPositioner(props) {
|
|
|
1456
1391
|
}), ({ size, values }) => {
|
|
1457
1392
|
const oldSize = previousSize;
|
|
1458
1393
|
previousSize = size;
|
|
1459
|
-
if (oldSize === 0 ||
|
|
1394
|
+
if (oldSize === 0 || values.length === 0) return;
|
|
1460
1395
|
untrack(() => {
|
|
1461
1396
|
const current = context.value();
|
|
1462
1397
|
if (context.multiple()) {
|
|
@@ -1472,7 +1407,7 @@ function SelectPositioner(props) {
|
|
|
1472
1407
|
context.setValue(next, createChangeEventDetails(none));
|
|
1473
1408
|
if (next === null) context.setSelectedItemText(null);
|
|
1474
1409
|
}
|
|
1475
|
-
if (context.store.open() && alignItemWithTriggerActive()) {
|
|
1410
|
+
if (size !== oldSize && context.store.open() && alignItemWithTriggerActive()) {
|
|
1476
1411
|
context.store.setScrollUpVisible(false);
|
|
1477
1412
|
context.store.setScrollDownVisible(false);
|
|
1478
1413
|
element()?.style.removeProperty("height");
|
|
@@ -1513,6 +1448,7 @@ function SelectPositioner(props) {
|
|
|
1513
1448
|
}
|
|
1514
1449
|
});
|
|
1515
1450
|
}
|
|
1451
|
+
const Render = useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true));
|
|
1516
1452
|
return SelectPositionerContext({
|
|
1517
1453
|
value: positionerContext,
|
|
1518
1454
|
get children() {
|
|
@@ -1525,10 +1461,7 @@ function SelectPositioner(props) {
|
|
|
1525
1461
|
get children() {
|
|
1526
1462
|
return ModalBackdrop({});
|
|
1527
1463
|
}
|
|
1528
|
-
}),
|
|
1529
|
-
get component() {
|
|
1530
|
-
return props.as ?? "div";
|
|
1531
|
-
},
|
|
1464
|
+
}), Render(mergeProps({
|
|
1532
1465
|
ref: [((value) => {
|
|
1533
1466
|
setElement(value);
|
|
1534
1467
|
context.store.setPositionerElement(value);
|
|
@@ -1595,7 +1528,7 @@ function SelectPopup(props) {
|
|
|
1595
1528
|
}, resolveStyle(props.style, state())));
|
|
1596
1529
|
const stateAttributes = createMemo(() => getStateAttributesProps(state(), selectPopupStateMapping));
|
|
1597
1530
|
const id = createMemo(() => internalProps.id ?? `${context.id()}-list`);
|
|
1598
|
-
const others = omit(allProps, "
|
|
1531
|
+
const others = omit(allProps, "render", "class", "finalFocus", "id", "onBlur", "onKeyDown", "onScroll", "ref", "style");
|
|
1599
1532
|
let popupElement = null;
|
|
1600
1533
|
let initialPlaced = false;
|
|
1601
1534
|
let reachedMaxHeight = false;
|
|
@@ -1835,10 +1768,7 @@ function SelectPopup(props) {
|
|
|
1835
1768
|
}
|
|
1836
1769
|
function PopupElement() {
|
|
1837
1770
|
const list = () => context.store.listElement();
|
|
1838
|
-
return
|
|
1839
|
-
get component() {
|
|
1840
|
-
return props.as ?? "div";
|
|
1841
|
-
},
|
|
1771
|
+
return Render(mergeProps({
|
|
1842
1772
|
ref: [((element) => {
|
|
1843
1773
|
popupElement = element;
|
|
1844
1774
|
context.store.setPopupElement(element);
|
|
@@ -1856,8 +1786,8 @@ function SelectPopup(props) {
|
|
|
1856
1786
|
get ["data-rootownerid"]() {
|
|
1857
1787
|
return context.node.id;
|
|
1858
1788
|
},
|
|
1859
|
-
get ["aria-
|
|
1860
|
-
return list() ? void 0
|
|
1789
|
+
get ["aria-readonly"]() {
|
|
1790
|
+
return !list() && context.readOnly() ? "true" : void 0;
|
|
1861
1791
|
},
|
|
1862
1792
|
get ["aria-multiselectable"]() {
|
|
1863
1793
|
return !list() && context.multiple() ? "true" : void 0;
|
|
@@ -1873,6 +1803,7 @@ function SelectPopup(props) {
|
|
|
1873
1803
|
onScroll
|
|
1874
1804
|
}, stateAttributes, others));
|
|
1875
1805
|
}
|
|
1806
|
+
const Render = useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true));
|
|
1876
1807
|
return FocusManager({
|
|
1877
1808
|
get context() {
|
|
1878
1809
|
return context.store.context.floatingRoot;
|
|
@@ -1967,16 +1898,13 @@ function SelectList(props) {
|
|
|
1967
1898
|
...positioner.alignItemWithTriggerActive() ? SELECT_LIST_FUNCTIONAL_STYLES : {},
|
|
1968
1899
|
"scrollbar-width": context.store.hasScrollArrows() && context.store.openMethod() !== "touch" ? "none" : void 0
|
|
1969
1900
|
}, resolveStyle(props.style, state)));
|
|
1970
|
-
const others = omit(allProps, "
|
|
1901
|
+
const others = omit(allProps, "render", "class", "id", "onScroll", "ref", "style");
|
|
1971
1902
|
const onScroll = composeEventHandlers(() => internalProps.onScroll, () => (event) => context.handleScroll(event.currentTarget));
|
|
1972
1903
|
let listElement = null;
|
|
1973
1904
|
onCleanup(() => {
|
|
1974
1905
|
if (context.store.listElement() === listElement) context.store.setListElement(null);
|
|
1975
1906
|
});
|
|
1976
|
-
return
|
|
1977
|
-
get component() {
|
|
1978
|
-
return props.as ?? "div";
|
|
1979
|
-
},
|
|
1907
|
+
return useRender(props, () => state, (props) => ssrElement("div", props, void 0, true))(mergeProps({
|
|
1980
1908
|
ref: [((element) => {
|
|
1981
1909
|
listElement = element;
|
|
1982
1910
|
context.store.setListElement(element);
|
|
@@ -1985,6 +1913,9 @@ function SelectList(props) {
|
|
|
1985
1913
|
return internalProps.id ?? `${context.id()}-list`;
|
|
1986
1914
|
},
|
|
1987
1915
|
role: "listbox",
|
|
1916
|
+
get ["aria-readonly"]() {
|
|
1917
|
+
return context.readOnly() ? "true" : void 0;
|
|
1918
|
+
},
|
|
1988
1919
|
get ["aria-multiselectable"]() {
|
|
1989
1920
|
return context.multiple() ? "true" : void 0;
|
|
1990
1921
|
},
|
|
@@ -2043,7 +1974,7 @@ function SelectItem(props) {
|
|
|
2043
1974
|
const classValue = createMemo(() => resolveClass(props.class, state()));
|
|
2044
1975
|
const styleValue = createMemo(() => resolveStyle(props.style, state()));
|
|
2045
1976
|
const stateAttributes = createMemo(() => getStateAttributesProps(state()));
|
|
2046
|
-
const others = omit(allProps, "
|
|
1977
|
+
const others = omit(allProps, "render", "class", "disabled", "id", "label", "nativeButton", "onBlur", "onClick", "onFocus", "onKeyDown", "onKeyUp", "onMouseMove", "onMouseUp", "onPointerDown", "onPointerEnter", "onPointerMove", "ref", "style", "value");
|
|
2047
1978
|
let pointerType = "mouse";
|
|
2048
1979
|
let allowMouseSelection = false;
|
|
2049
1980
|
let dispatchedClickHandled = false;
|
|
@@ -2156,19 +2087,18 @@ function SelectItem(props) {
|
|
|
2156
2087
|
if (context.firstItemText() === untrack(textElement)) context.setFirstItemText(null);
|
|
2157
2088
|
if (context.selectedItemText() === untrack(textElement)) context.setSelectedItemText(null);
|
|
2158
2089
|
});
|
|
2090
|
+
const itemContext = {
|
|
2091
|
+
selected,
|
|
2092
|
+
selectedByFocus,
|
|
2093
|
+
index,
|
|
2094
|
+
textElement,
|
|
2095
|
+
setTextElement
|
|
2096
|
+
};
|
|
2097
|
+
const Render = useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true));
|
|
2159
2098
|
return SelectItemContext({
|
|
2160
|
-
value:
|
|
2161
|
-
selected,
|
|
2162
|
-
selectedByFocus,
|
|
2163
|
-
index,
|
|
2164
|
-
textElement,
|
|
2165
|
-
setTextElement
|
|
2166
|
-
},
|
|
2099
|
+
value: itemContext,
|
|
2167
2100
|
get children() {
|
|
2168
|
-
return
|
|
2169
|
-
get component() {
|
|
2170
|
-
return props.as ?? "div";
|
|
2171
|
-
},
|
|
2101
|
+
return Render(mergeProps({
|
|
2172
2102
|
ref: [((value) => {
|
|
2173
2103
|
setElement(value);
|
|
2174
2104
|
context.store.collection.touch();
|
|
@@ -2236,7 +2166,7 @@ function SelectItemIndicator(props) {
|
|
|
2236
2166
|
const classValue = createMemo(() => resolveClass(props.class, state()));
|
|
2237
2167
|
const styleValue = createMemo(() => resolveStyle(props.style, state()));
|
|
2238
2168
|
const stateAttributes = createMemo(() => getStateAttributesProps(state(), transitionStatusMapping));
|
|
2239
|
-
const others = omit(allProps, "
|
|
2169
|
+
const others = omit(allProps, "render", "class", "keepMounted", "ref", "style");
|
|
2240
2170
|
let element;
|
|
2241
2171
|
createEffect(() => ({
|
|
2242
2172
|
selected: item.selected(),
|
|
@@ -2250,15 +2180,13 @@ function SelectItemIndicator(props) {
|
|
|
2250
2180
|
}, controller.signal);
|
|
2251
2181
|
return () => controller.abort();
|
|
2252
2182
|
});
|
|
2183
|
+
const Render = useRender(props, () => state(), (props) => ssrElement("span", props, void 0, true));
|
|
2253
2184
|
return Show({
|
|
2254
2185
|
get when() {
|
|
2255
2186
|
return shouldRender();
|
|
2256
2187
|
},
|
|
2257
2188
|
get children() {
|
|
2258
|
-
return
|
|
2259
|
-
get component() {
|
|
2260
|
-
return props.as ?? "span";
|
|
2261
|
-
},
|
|
2189
|
+
return Render(mergeProps({
|
|
2262
2190
|
ref: [((value) => element = value), internalProps.ref],
|
|
2263
2191
|
"aria-hidden": "true",
|
|
2264
2192
|
get ["class"]() {
|
|
@@ -2284,7 +2212,7 @@ function SelectItemText(props) {
|
|
|
2284
2212
|
const state = {};
|
|
2285
2213
|
const classValue = createMemo(() => resolveClass(props.class, state));
|
|
2286
2214
|
const styleValue = createMemo(() => resolveStyle(props.style, state));
|
|
2287
|
-
const others = omit(allProps, "
|
|
2215
|
+
const others = omit(allProps, "render", "class", "ref", "style");
|
|
2288
2216
|
createEffect(() => ({
|
|
2289
2217
|
index: item.index(),
|
|
2290
2218
|
selected: item.selectedByFocus(),
|
|
@@ -2301,10 +2229,7 @@ function SelectItemText(props) {
|
|
|
2301
2229
|
if (root.selectedItemText() === text) root.setSelectedItemText(null);
|
|
2302
2230
|
});
|
|
2303
2231
|
});
|
|
2304
|
-
return
|
|
2305
|
-
get component() {
|
|
2306
|
-
return props.as ?? "div";
|
|
2307
|
-
},
|
|
2232
|
+
return useRender(props, () => state, (props) => ssrElement("div", props, void 0, true))(mergeProps({
|
|
2308
2233
|
ref: [((element) => item.setTextElement(element)), internalProps.ref],
|
|
2309
2234
|
get ["class"]() {
|
|
2310
2235
|
return classValue();
|
|
@@ -2331,20 +2256,18 @@ function SelectArrow(props) {
|
|
|
2331
2256
|
const classValue = createMemo(() => resolveClass(props.class, state()));
|
|
2332
2257
|
const styleValue = createMemo(() => mergeStyleValue(positioner.arrowStyles(), resolveStyle(props.style, state())));
|
|
2333
2258
|
const stateAttributes = createMemo(() => getStateAttributesProps(state(), popupStateMapping));
|
|
2334
|
-
const others = omit(allProps, "
|
|
2259
|
+
const others = omit(allProps, "render", "class", "ref", "style");
|
|
2335
2260
|
let arrow = null;
|
|
2336
2261
|
onCleanup(() => {
|
|
2337
2262
|
if (arrow) positioner.setArrowElement(null);
|
|
2338
2263
|
});
|
|
2264
|
+
const Render = useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true));
|
|
2339
2265
|
return Show({
|
|
2340
2266
|
get when() {
|
|
2341
2267
|
return !positioner.alignItemWithTriggerActive();
|
|
2342
2268
|
},
|
|
2343
2269
|
get children() {
|
|
2344
|
-
return
|
|
2345
|
-
get component() {
|
|
2346
|
-
return props.as ?? "div";
|
|
2347
|
-
},
|
|
2270
|
+
return Render(mergeProps({
|
|
2348
2271
|
ref: [((element) => {
|
|
2349
2272
|
arrow = element;
|
|
2350
2273
|
positioner.setArrowElement(element);
|
|
@@ -2382,7 +2305,7 @@ function SelectScrollArrow(props) {
|
|
|
2382
2305
|
const classValue = createMemo(() => resolveClass(props.class, state()));
|
|
2383
2306
|
const styleValue = createMemo(() => mergeStyleValue({ position: "absolute" }, resolveStyle(props.style, state())));
|
|
2384
2307
|
const stateAttributes = createMemo(() => getStateAttributesProps(state(), transitionStatusMapping));
|
|
2385
|
-
const others = omit(allProps, "
|
|
2308
|
+
const others = omit(allProps, "render", "class", "direction", "keepMounted", "onMouseLeave", "onMouseMove", "ref", "style");
|
|
2386
2309
|
let element = null;
|
|
2387
2310
|
let timer;
|
|
2388
2311
|
function stop() {
|
|
@@ -2431,15 +2354,13 @@ function SelectScrollArrow(props) {
|
|
|
2431
2354
|
if (isUp()) positioner.setScrollUpArrow(null);
|
|
2432
2355
|
else positioner.setScrollDownArrow(null);
|
|
2433
2356
|
});
|
|
2357
|
+
const Render = useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true));
|
|
2434
2358
|
return Show({
|
|
2435
2359
|
get when() {
|
|
2436
2360
|
return shouldRender();
|
|
2437
2361
|
},
|
|
2438
2362
|
get children() {
|
|
2439
|
-
return
|
|
2440
|
-
get component() {
|
|
2441
|
-
return props.as ?? "div";
|
|
2442
|
-
},
|
|
2363
|
+
return Render(mergeProps({
|
|
2443
2364
|
ref: [((value) => {
|
|
2444
2365
|
element = value;
|
|
2445
2366
|
if (isUp()) positioner.setScrollUpArrow(value);
|
|
@@ -2516,17 +2437,15 @@ function SelectGroup(props) {
|
|
|
2516
2437
|
const state = {};
|
|
2517
2438
|
const classValue = createMemo(() => resolveClass(props.class, state));
|
|
2518
2439
|
const styleValue = createMemo(() => resolveStyle(props.style, state));
|
|
2519
|
-
const others = omit(allProps, "
|
|
2440
|
+
const others = omit(allProps, "render", "class", "ref", "style");
|
|
2441
|
+
const Render = useRender(props, () => state, (props) => ssrElement("div", props, void 0, true));
|
|
2520
2442
|
return SelectGroupContext({
|
|
2521
2443
|
value: {
|
|
2522
2444
|
labelId,
|
|
2523
2445
|
setLabelId
|
|
2524
2446
|
},
|
|
2525
2447
|
get children() {
|
|
2526
|
-
return
|
|
2527
|
-
get component() {
|
|
2528
|
-
return props.as ?? "div";
|
|
2529
|
-
},
|
|
2448
|
+
return Render(mergeProps({
|
|
2530
2449
|
ref: [internalProps.ref],
|
|
2531
2450
|
role: "group",
|
|
2532
2451
|
get ["aria-labelledby"]() {
|
|
@@ -2554,21 +2473,19 @@ function SelectGroupLabel(props) {
|
|
|
2554
2473
|
const state = {};
|
|
2555
2474
|
const classValue = createMemo(() => resolveClass(props.class, state));
|
|
2556
2475
|
const styleValue = createMemo(() => resolveStyle(props.style, state));
|
|
2557
|
-
const others = omit(allProps, "
|
|
2476
|
+
const others = omit(allProps, "render", "class", "id", "ref", "style");
|
|
2558
2477
|
createEffect(id, (currentId) => {
|
|
2559
2478
|
context.setLabelId(currentId);
|
|
2560
2479
|
return () => {
|
|
2561
2480
|
if (context.labelId() === currentId) context.setLabelId(void 0);
|
|
2562
2481
|
};
|
|
2563
2482
|
});
|
|
2564
|
-
return
|
|
2565
|
-
get component() {
|
|
2566
|
-
return props.as ?? "div";
|
|
2567
|
-
},
|
|
2483
|
+
return useRender(props, () => state, (props) => ssrElement("div", props, void 0, true))(mergeProps({
|
|
2568
2484
|
ref: [internalProps.ref],
|
|
2569
2485
|
get id() {
|
|
2570
2486
|
return id();
|
|
2571
2487
|
},
|
|
2488
|
+
"aria-hidden": "true",
|
|
2572
2489
|
get ["class"]() {
|
|
2573
2490
|
return classValue();
|
|
2574
2491
|
},
|
|
@@ -2588,11 +2505,8 @@ function SelectSeparator(props) {
|
|
|
2588
2505
|
const classValue = createMemo(() => resolveClass(props.class, state()));
|
|
2589
2506
|
const styleValue = createMemo(() => resolveStyle(props.style, state()));
|
|
2590
2507
|
const stateAttributes = createMemo(() => getStateAttributesProps(state()));
|
|
2591
|
-
const others = omit(allProps, "
|
|
2592
|
-
return
|
|
2593
|
-
get component() {
|
|
2594
|
-
return props.as ?? "div";
|
|
2595
|
-
},
|
|
2508
|
+
const others = omit(allProps, "render", "class", "orientation", "ref", "style");
|
|
2509
|
+
return useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true))(mergeProps({
|
|
2596
2510
|
ref: [internalProps.ref],
|
|
2597
2511
|
role: "presentation",
|
|
2598
2512
|
get ["class"]() {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Separator } from "../Separator-
|
|
1
|
+
import { t as Separator } from "../Separator-DTvtnxzP.js";
|
|
2
2
|
export { Separator };
|