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,8 +1,9 @@
|
|
|
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 { n as resolveClass, t as resolveStyle } from "../resolveStyle-XCSFDHAL.js";
|
|
4
5
|
import { mergeStyles } from "../internals/mergeStyles.js";
|
|
5
|
-
import {
|
|
6
|
+
import { escape, memo, mergeProps, ssr, ssrElement, ssrHydrationKey, ssrStyle } from "@solidjs/web";
|
|
6
7
|
import { createContext, createEffect, createMemo, createSignal, createUniqueId, omit, useContext } from "solid-js";
|
|
7
8
|
//#region src/progress/root/ProgressRootContext.ts
|
|
8
9
|
var MISSING_CONTEXT = Symbol("ProgressRootContext");
|
|
@@ -43,7 +44,7 @@ function ProgressRoot(props) {
|
|
|
43
44
|
const rootProps = props;
|
|
44
45
|
const allProps = props;
|
|
45
46
|
const [labelId, setLabelId] = createSignal();
|
|
46
|
-
const others = omit(allProps, "
|
|
47
|
+
const others = omit(allProps, "render", "children", "class", "format", "getAriaValueText", "locale", "max", "min", "style", "value");
|
|
47
48
|
const min = createMemo(() => rootProps.min ?? 0);
|
|
48
49
|
const max = createMemo(() => rootProps.max ?? 100);
|
|
49
50
|
const percentageValue = createMemo(() => {
|
|
@@ -70,19 +71,18 @@ function ProgressRoot(props) {
|
|
|
70
71
|
const classValue = createMemo(() => resolveClass(props.class, state()));
|
|
71
72
|
const styleValue = createMemo(() => resolveStyle(props.style, state()));
|
|
72
73
|
const stateAttributes = createMemo(() => getStateAttributesProps(state(), progressStateAttributesMapping));
|
|
74
|
+
const context = {
|
|
75
|
+
formattedValue,
|
|
76
|
+
percentageValue,
|
|
77
|
+
setLabelId,
|
|
78
|
+
state,
|
|
79
|
+
value: () => rootProps.value
|
|
80
|
+
};
|
|
81
|
+
const Render = useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true));
|
|
73
82
|
return ProgressRootContext({
|
|
74
|
-
value:
|
|
75
|
-
formattedValue,
|
|
76
|
-
percentageValue,
|
|
77
|
-
setLabelId,
|
|
78
|
-
state,
|
|
79
|
-
value: () => rootProps.value
|
|
80
|
-
},
|
|
83
|
+
value: context,
|
|
81
84
|
get children() {
|
|
82
|
-
return
|
|
83
|
-
get component() {
|
|
84
|
-
return props.as ?? "div";
|
|
85
|
-
},
|
|
85
|
+
return Render(mergeProps({
|
|
86
86
|
get ["class"]() {
|
|
87
87
|
return classValue();
|
|
88
88
|
},
|
|
@@ -121,15 +121,12 @@ function clamp(value, min, max) {
|
|
|
121
121
|
/** Contains the progress indicator. */
|
|
122
122
|
function ProgressTrack(props) {
|
|
123
123
|
const context = useProgressRootContext();
|
|
124
|
-
const others = omit(props, "
|
|
124
|
+
const others = omit(props, "render", "class", "style");
|
|
125
125
|
const state = createMemo(() => context.state());
|
|
126
126
|
const classValue = createMemo(() => resolveClass(props.class, state()));
|
|
127
127
|
const styleValue = createMemo(() => resolveStyle(props.style, state()));
|
|
128
128
|
const stateAttributes = createMemo(() => getStateAttributesProps(state(), progressStateAttributesMapping));
|
|
129
|
-
return
|
|
130
|
-
get component() {
|
|
131
|
-
return props.as ?? "div";
|
|
132
|
-
},
|
|
129
|
+
return useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true))(mergeProps({
|
|
133
130
|
get ["class"]() {
|
|
134
131
|
return classValue();
|
|
135
132
|
},
|
|
@@ -143,7 +140,7 @@ function ProgressTrack(props) {
|
|
|
143
140
|
/** Visualizes the task's completion status. */
|
|
144
141
|
function ProgressIndicator(props) {
|
|
145
142
|
const context = useProgressRootContext();
|
|
146
|
-
const others = omit(props, "
|
|
143
|
+
const others = omit(props, "render", "class", "style");
|
|
147
144
|
const state = createMemo(() => context.state());
|
|
148
145
|
const classValue = createMemo(() => resolveClass(props.class, state()));
|
|
149
146
|
const internalStyle = createMemo(() => {
|
|
@@ -162,10 +159,7 @@ function ProgressIndicator(props) {
|
|
|
162
159
|
return mergeStyles(internal, external === false ? void 0 : external);
|
|
163
160
|
});
|
|
164
161
|
const stateAttributes = createMemo(() => getStateAttributesProps(state(), progressStateAttributesMapping));
|
|
165
|
-
return
|
|
166
|
-
get component() {
|
|
167
|
-
return props.as ?? "div";
|
|
168
|
-
},
|
|
162
|
+
return useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true))(mergeProps({
|
|
169
163
|
get ["class"]() {
|
|
170
164
|
return classValue();
|
|
171
165
|
},
|
|
@@ -180,7 +174,7 @@ function ProgressIndicator(props) {
|
|
|
180
174
|
function ProgressValue(props) {
|
|
181
175
|
const valueProps = props;
|
|
182
176
|
const context = useProgressRootContext();
|
|
183
|
-
const others = omit(props, "
|
|
177
|
+
const others = omit(props, "render", "children", "class", "style");
|
|
184
178
|
const state = createMemo(() => context.state());
|
|
185
179
|
const classValue = createMemo(() => resolveClass(props.class, state()));
|
|
186
180
|
const styleValue = createMemo(() => resolveStyle(props.style, state()));
|
|
@@ -190,10 +184,7 @@ function ProgressValue(props) {
|
|
|
190
184
|
if (typeof valueProps.children === "function") return valueProps.children(indeterminate ? "indeterminate" : context.formattedValue(), context.value());
|
|
191
185
|
return indeterminate ? null : context.formattedValue();
|
|
192
186
|
});
|
|
193
|
-
return
|
|
194
|
-
get component() {
|
|
195
|
-
return props.as ?? "span";
|
|
196
|
-
},
|
|
187
|
+
return useRender(props, () => state(), (props) => ssrElement("span", props, void 0, true))(mergeProps({
|
|
197
188
|
get ["class"]() {
|
|
198
189
|
return classValue();
|
|
199
190
|
},
|
|
@@ -211,7 +202,7 @@ function ProgressValue(props) {
|
|
|
211
202
|
function ProgressLabel(props) {
|
|
212
203
|
const context = useProgressRootContext();
|
|
213
204
|
const generatedId = `base-ui-${createUniqueId()}`;
|
|
214
|
-
const others = omit(props, "
|
|
205
|
+
const others = omit(props, "render", "class", "id", "style");
|
|
215
206
|
const id = createMemo(() => props.id ?? generatedId);
|
|
216
207
|
const state = createMemo(() => context.state());
|
|
217
208
|
const classValue = createMemo(() => resolveClass(props.class, state()));
|
|
@@ -223,10 +214,7 @@ function ProgressLabel(props) {
|
|
|
223
214
|
context.setLabelId((registeredId) => registeredId === currentId ? void 0 : registeredId);
|
|
224
215
|
};
|
|
225
216
|
});
|
|
226
|
-
return
|
|
227
|
-
get component() {
|
|
228
|
-
return props.as ?? "span";
|
|
229
|
-
},
|
|
217
|
+
return useRender(props, () => state(), (props) => ssrElement("span", props, void 0, true))(mergeProps({
|
|
230
218
|
get id() {
|
|
231
219
|
return id();
|
|
232
220
|
},
|
|
@@ -1,16 +1,17 @@
|
|
|
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 { n as resolveClass, t as resolveStyle } from "../resolveStyle-XCSFDHAL.js";
|
|
4
5
|
import { transitionStatusMapping } from "../internals/stateAttributesMapping.js";
|
|
5
6
|
import { composeEventHandlers } from "../internals/composeEventHandlers.js";
|
|
6
|
-
import { t as runOnceAnimationsFinish } from "../runOnceAnimationsFinish-
|
|
7
|
-
import { t as createTransitionStatus } from "../createTransitionStatus-
|
|
7
|
+
import { t as runOnceAnimationsFinish } from "../runOnceAnimationsFinish-CYq38H8J.js";
|
|
8
|
+
import { t as createTransitionStatus } from "../createTransitionStatus-184v7j3-.js";
|
|
8
9
|
import { fieldStateAttributesMapping } from "../internals/field-constants.js";
|
|
9
10
|
import { n as useFieldRootContext } from "../FieldRootContext-IC-LWzVp.js";
|
|
10
|
-
import { r as useLabelableContext } from "../LabelableContext-
|
|
11
|
+
import { r as useLabelableContext } from "../LabelableContext-BTeF0IWb.js";
|
|
11
12
|
import { n as useFieldItemContext } from "../FieldItemContext-x-C7ZlmX.js";
|
|
12
13
|
import { n as useRadioGroupContext } from "../RadioGroupContext-D5xmTkDz.js";
|
|
13
|
-
import {
|
|
14
|
+
import { escape, memo, mergeProps, ssr, ssrAttribute, ssrElement, ssrGroup, ssrHydrationKey, ssrStyle } from "@solidjs/web";
|
|
14
15
|
import { Show, createContext, createEffect, createMemo, createSignal, createUniqueId, omit, onCleanup, onSettled, untrack, useContext } from "solid-js";
|
|
15
16
|
//#region src/radio/root/RadioRootContext.ts
|
|
16
17
|
var MISSING_CONTEXT = Symbol("RadioRootContext");
|
|
@@ -77,7 +78,7 @@ function RadioRoot(props) {
|
|
|
77
78
|
const [rootElement, setRootElement] = createSignal();
|
|
78
79
|
const [inputElement, setInputElement] = createSignal();
|
|
79
80
|
const [fallbackAriaLabelledBy, setFallbackAriaLabelledBy] = createSignal();
|
|
80
|
-
const others = omit(allProps, "aria-describedby", "aria-labelledby", "
|
|
81
|
+
const others = omit(allProps, "aria-describedby", "aria-labelledby", "render", "class", "disabled", "id", "inputRef", "nativeButton", "onClick", "onFocus", "onKeyDown", "onKeyUp", "readOnly", "ref", "required", "style", "value");
|
|
81
82
|
const nativeButton = createMemo(() => internalProps.nativeButton ?? false);
|
|
82
83
|
const disabled = createMemo(() => field.disabled() || item.disabled() || (group?.disabled() ?? false) || (internalProps.disabled ?? false));
|
|
83
84
|
const readOnly = createMemo(() => (group?.readOnly() ?? false) || (internalProps.readOnly ?? false));
|
|
@@ -93,6 +94,7 @@ function RadioRoot(props) {
|
|
|
93
94
|
checked: checked()
|
|
94
95
|
}));
|
|
95
96
|
const classValue = createMemo(() => resolveClass(props.class, state()));
|
|
97
|
+
const Render = useRender(props, () => state(), (props) => ssrElement("span", props, void 0, true));
|
|
96
98
|
const styleValue = createMemo(() => resolveStyle(props.style, state()));
|
|
97
99
|
const stateAttributes = createMemo(() => getStateAttributesProps(state(), radioStateAttributesMapping));
|
|
98
100
|
const ariaLabelledBy = createMemo(() => internalProps["aria-labelledby"] ?? labelable.labelId() ?? fallbackAriaLabelledBy());
|
|
@@ -186,10 +188,7 @@ function RadioRoot(props) {
|
|
|
186
188
|
return RadioRootContext({
|
|
187
189
|
value: state,
|
|
188
190
|
get children() {
|
|
189
|
-
return [
|
|
190
|
-
get component() {
|
|
191
|
-
return props.as ?? "span";
|
|
192
|
-
},
|
|
191
|
+
return [Render(mergeProps({
|
|
193
192
|
ref: [((element) => setRootElement(element)), internalProps.ref],
|
|
194
193
|
get id() {
|
|
195
194
|
return rootId();
|
|
@@ -286,14 +285,13 @@ var indicatorStateAttributesMapping = {
|
|
|
286
285
|
return value ? { "data-checked": "" } : { "data-unchecked": "" };
|
|
287
286
|
}
|
|
288
287
|
};
|
|
289
|
-
var IndicatorDynamic = Dynamic;
|
|
290
288
|
/** Indicates whether the enclosing radio is selected. */
|
|
291
289
|
function RadioIndicator(props) {
|
|
292
290
|
let indicatorElement;
|
|
293
291
|
let latestChecked = false;
|
|
294
292
|
const rootState = useRadioRootContext();
|
|
295
293
|
const internalProps = props;
|
|
296
|
-
const others = omit(props, "
|
|
294
|
+
const others = omit(props, "render", "class", "keepMounted", "ref", "style");
|
|
297
295
|
const checked = createMemo(() => rootState().checked);
|
|
298
296
|
const transition = createTransitionStatus(() => checked());
|
|
299
297
|
const shouldRender = createMemo(() => (internalProps.keepMounted ?? false) || transition.mounted());
|
|
@@ -301,6 +299,7 @@ function RadioIndicator(props) {
|
|
|
301
299
|
...rootState(),
|
|
302
300
|
transitionStatus: transition.transitionStatus()
|
|
303
301
|
}));
|
|
302
|
+
const Render = useRender(props, () => state(), (props) => ssrElement("span", props, void 0, true));
|
|
304
303
|
const classValue = createMemo(() => shouldRender() ? resolveClass(props.class, state()) : void 0);
|
|
305
304
|
const styleValue = createMemo(() => shouldRender() ? resolveStyle(props.style, state()) : void 0);
|
|
306
305
|
const stateAttributes = createMemo(() => getStateAttributesProps(state(), indicatorStateAttributesMapping));
|
|
@@ -322,35 +321,15 @@ function RadioIndicator(props) {
|
|
|
322
321
|
return shouldRender();
|
|
323
322
|
},
|
|
324
323
|
get children() {
|
|
325
|
-
return
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
get fallback() {
|
|
330
|
-
return ssrElement("span", () => {
|
|
331
|
-
return mergeProps({
|
|
332
|
-
get ["class"]() {
|
|
333
|
-
return classValue();
|
|
334
|
-
},
|
|
335
|
-
get style() {
|
|
336
|
-
return styleValue();
|
|
337
|
-
}
|
|
338
|
-
}, stateAttributes, others);
|
|
339
|
-
}, void 0, true);
|
|
324
|
+
return Render(mergeProps({
|
|
325
|
+
ref: [internalProps.ref, ((element) => indicatorElement = element)],
|
|
326
|
+
get ["class"]() {
|
|
327
|
+
return classValue();
|
|
340
328
|
},
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
ref: [internalProps.ref, ((element) => indicatorElement = element)],
|
|
346
|
-
get ["class"]() {
|
|
347
|
-
return classValue();
|
|
348
|
-
},
|
|
349
|
-
get style() {
|
|
350
|
-
return styleValue();
|
|
351
|
-
}
|
|
352
|
-
}, stateAttributes, others))
|
|
353
|
-
});
|
|
329
|
+
get style() {
|
|
330
|
+
return styleValue();
|
|
331
|
+
}
|
|
332
|
+
}, stateAttributes, others));
|
|
354
333
|
}
|
|
355
334
|
});
|
|
356
335
|
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
+
import { t as useRender } from "../useRender-CryVdCjs.js";
|
|
1
2
|
import { getStateAttributesProps } from "../internals/getStateAttributesProps.js";
|
|
2
3
|
import { n as resolveClass, t as resolveStyle } from "../resolveStyle-XCSFDHAL.js";
|
|
3
4
|
import { composeEventHandlers } from "../internals/composeEventHandlers.js";
|
|
4
5
|
import { n as useDirection } from "../DirectionContext-YORWLF08.js";
|
|
5
6
|
import { fieldStateAttributesMapping } from "../internals/field-constants.js";
|
|
6
7
|
import { n as useFieldRootContext } from "../FieldRootContext-IC-LWzVp.js";
|
|
7
|
-
import { n as useFormContext } from "../FormContext-
|
|
8
|
-
import { r as useLabelableContext } from "../LabelableContext-
|
|
8
|
+
import { n as useFormContext } from "../FormContext-CYwo_ZnB.js";
|
|
9
|
+
import { r as useLabelableContext } from "../LabelableContext-BTeF0IWb.js";
|
|
9
10
|
import { n as useFieldsetRootContext } from "../FieldsetRootContext-DyNqCjK6.js";
|
|
10
11
|
import { t as RadioGroupContext } from "../RadioGroupContext-D5xmTkDz.js";
|
|
11
|
-
import {
|
|
12
|
+
import { mergeProps, ssrElement } from "@solidjs/web";
|
|
12
13
|
import { createEffect, createMemo, createSignal, createUniqueId, omit, onCleanup, onSettled, untrack } from "solid-js";
|
|
13
14
|
//#region src/radio-group/RadioGroup.tsx
|
|
14
15
|
/** Provides shared selection, form, and keyboard state to a series of radios. */
|
|
@@ -33,7 +34,7 @@ function RadioGroup(props) {
|
|
|
33
34
|
let previousValue = untrack(() => controlled ? internalProps.value : uncontrolledValue());
|
|
34
35
|
let lastRepresentative;
|
|
35
36
|
let lastInputRef;
|
|
36
|
-
const others = omit(allProps, "aria-describedby", "aria-labelledby", "
|
|
37
|
+
const others = omit(allProps, "aria-describedby", "aria-labelledby", "render", "class", "defaultValue", "disabled", "form", "inputRef", "name", "onBlur", "onFocus", "onKeyDown", "onValueChange", "readOnly", "ref", "required", "style", "value");
|
|
37
38
|
const checkedValue = createMemo(() => controlled ? internalProps.value : uncontrolledValue());
|
|
38
39
|
const disabled = createMemo(() => field.disabled() || (internalProps.disabled ?? false));
|
|
39
40
|
const readOnly = createMemo(() => internalProps.readOnly ?? false);
|
|
@@ -47,6 +48,7 @@ function RadioGroup(props) {
|
|
|
47
48
|
required: required()
|
|
48
49
|
}));
|
|
49
50
|
const classValue = createMemo(() => resolveClass(props.class, state()));
|
|
51
|
+
const Render = useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true));
|
|
50
52
|
const styleValue = createMemo(() => resolveStyle(props.style, state()));
|
|
51
53
|
const stateAttributes = createMemo(() => getStateAttributesProps(state(), fieldStateAttributesMapping));
|
|
52
54
|
const ariaLabelledBy = createMemo(() => internalProps["aria-labelledby"] ?? labelable.labelId() ?? fieldset?.legendId());
|
|
@@ -216,10 +218,7 @@ function RadioGroup(props) {
|
|
|
216
218
|
return RadioGroupContext({
|
|
217
219
|
value: context,
|
|
218
220
|
get children() {
|
|
219
|
-
return
|
|
220
|
-
get component() {
|
|
221
|
-
return props.as ?? "div";
|
|
222
|
-
},
|
|
221
|
+
return Render(mergeProps({
|
|
223
222
|
ref: [((element) => setRootElement(element)), internalProps.ref],
|
|
224
223
|
get ["class"]() {
|
|
225
224
|
return classValue();
|
package/dist/lib/server/{runOnceAnimationsFinish-DCHzXWZU.js → runOnceAnimationsFinish-CYq38H8J.js}
RENAMED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { flush } from "solid-js";
|
|
1
2
|
//#region src/internals/runOnceAnimationsFinish.ts
|
|
2
3
|
/** Runs a callback after current or replacement animations on an element finish. */
|
|
3
4
|
function runOnceAnimationsFinish(element, callback, signal, options = {}) {
|
|
@@ -7,7 +8,7 @@ function runOnceAnimationsFinish(element, callback, signal, options = {}) {
|
|
|
7
8
|
if (!signal?.aborted) callback();
|
|
8
9
|
return;
|
|
9
10
|
}
|
|
10
|
-
const execute = () => waitForAnimations(element, callback, signal);
|
|
11
|
+
const execute = () => waitForAnimations(element, () => flush(callback), signal);
|
|
11
12
|
if (options.waitForStartingStyleRemoved) {
|
|
12
13
|
const attribute = "data-starting-style";
|
|
13
14
|
if (element.hasAttribute(attribute)) {
|
|
@@ -195,6 +195,11 @@ function createHoverInteraction(options) {
|
|
|
195
195
|
restTimer = setTimeout(() => openPopup(event, state.reference, true), restMs);
|
|
196
196
|
};
|
|
197
197
|
const onLeave = (event) => {
|
|
198
|
+
clearOpenTimers();
|
|
199
|
+
if (!open()) {
|
|
200
|
+
clearClose();
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
198
203
|
const relatedTarget = event.relatedTarget;
|
|
199
204
|
const triggers = options.context.context.triggerElements;
|
|
200
205
|
if (contains(options.floating(), relatedTarget) || relatedTarget && (triggers.hasElement(relatedTarget) && !relatedTarget.hasAttribute("data-trigger-disabled") || triggers.hasMatchingElement((trigger) => !trigger.hasAttribute("data-trigger-disabled") && contains(trigger, relatedTarget)))) {
|
|
@@ -1,11 +1,12 @@
|
|
|
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 { n as resolveClass, t as resolveStyle } from "../resolveStyle-XCSFDHAL.js";
|
|
4
5
|
import { composeEventHandlers } from "../internals/composeEventHandlers.js";
|
|
5
6
|
import { n as useDirection } from "../DirectionContext-YORWLF08.js";
|
|
6
7
|
import { n as useCSPContext } from "../CSPContext-DOxR0PO7.js";
|
|
7
8
|
import { mergeStyles } from "../internals/mergeStyles.js";
|
|
8
|
-
import {
|
|
9
|
+
import { escape, memo, mergeProps, ssr, ssrAttribute, ssrElement, ssrHydrationKey } from "@solidjs/web";
|
|
9
10
|
import { Show, createContext, createEffect, createMemo, createRoot, createSignal, createUniqueId, omit, onCleanup, onSettled, untrack, useContext } from "solid-js";
|
|
10
11
|
import { makeResizeObserver } from "@solid-primitives/resize-observer";
|
|
11
12
|
import { makeEventListener } from "@solid-primitives/event-listener";
|
|
@@ -115,7 +116,7 @@ function ScrollAreaRoot(props) {
|
|
|
115
116
|
let savedSnapType = null;
|
|
116
117
|
let scrollXTimer;
|
|
117
118
|
let scrollYTimer;
|
|
118
|
-
const others = omit(allProps, "
|
|
119
|
+
const others = omit(allProps, "render", "children", "class", "onPointerDown", "onPointerEnter", "onPointerLeave", "onPointerMove", "overflowEdgeThreshold", "ref", "style");
|
|
119
120
|
const overflowEdgeThreshold = createMemo(() => normalizeOverflowEdgeThreshold(internalProps.overflowEdgeThreshold));
|
|
120
121
|
const state = createMemo(() => {
|
|
121
122
|
const hidden = hiddenState();
|
|
@@ -294,6 +295,7 @@ function ScrollAreaRoot(props) {
|
|
|
294
295
|
if (thumb?.hasPointerCapture?.(activePointerId)) thumb.releasePointerCapture(activePointerId);
|
|
295
296
|
}
|
|
296
297
|
});
|
|
298
|
+
const Render = useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true));
|
|
297
299
|
return ScrollAreaRootContext({
|
|
298
300
|
value: context,
|
|
299
301
|
get children() {
|
|
@@ -304,10 +306,7 @@ function ScrollAreaRoot(props) {
|
|
|
304
306
|
})() && (_v$ = ssrHydrationKey(), _v$2 = () => {
|
|
305
307
|
return ssrAttribute("nonce", escape(csp.nonce(), true));
|
|
306
308
|
}, ssr(_tmpl$, _v$, _v$2)));
|
|
307
|
-
}),
|
|
308
|
-
get component() {
|
|
309
|
-
return props.as ?? "div";
|
|
310
|
-
},
|
|
309
|
+
}), Render(mergeProps({
|
|
311
310
|
ref: [((element) => {
|
|
312
311
|
rootElement = element;
|
|
313
312
|
}), internalProps.ref],
|
|
@@ -389,7 +388,7 @@ function ScrollAreaViewport(props) {
|
|
|
389
388
|
const root = useScrollAreaRootContext();
|
|
390
389
|
const direction = useDirection();
|
|
391
390
|
const internalProps = props;
|
|
392
|
-
const others = omit(props, "
|
|
391
|
+
const others = omit(props, "render", "children", "class", "onKeyDown", "onPointerEnter", "onPointerMove", "onScroll", "onWheel", "ref", "style");
|
|
393
392
|
const state = createMemo(() => root.state());
|
|
394
393
|
const classValue = createMemo(() => ["base-ui-disable-scrollbar", resolveClass(props.class, state())]);
|
|
395
394
|
const styleValue = createMemo(() => {
|
|
@@ -565,13 +564,11 @@ function ScrollAreaViewport(props) {
|
|
|
565
564
|
if (animationTimer !== void 0) clearTimeout(animationTimer);
|
|
566
565
|
if (root.viewportElement() === ownElement) root.setViewportElement(void 0);
|
|
567
566
|
});
|
|
567
|
+
const Render = useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true));
|
|
568
568
|
return ScrollAreaViewportContext({
|
|
569
569
|
value: context,
|
|
570
570
|
get children() {
|
|
571
|
-
return
|
|
572
|
-
get component() {
|
|
573
|
-
return props.as ?? "div";
|
|
574
|
-
},
|
|
571
|
+
return Render(mergeProps({
|
|
575
572
|
ref: [((element) => {
|
|
576
573
|
ownElement = element;
|
|
577
574
|
root.setViewportElement(element);
|
|
@@ -649,7 +646,7 @@ function ScrollAreaScrollbar(props) {
|
|
|
649
646
|
const internalProps = props;
|
|
650
647
|
const allProps = props;
|
|
651
648
|
const [element, setElement] = createSignal();
|
|
652
|
-
const others = omit(allProps, "
|
|
649
|
+
const others = omit(allProps, "render", "children", "class", "keepMounted", "onMouseDown", "onPointerCancel", "onPointerDown", "onPointerUp", "orientation", "ref", "style");
|
|
653
650
|
const orientation = createMemo(() => internalProps.orientation ?? "vertical");
|
|
654
651
|
const vertical = createMemo(() => orientation() === "vertical");
|
|
655
652
|
const isHidden = createMemo(() => vertical() ? root.hiddenState().y : root.hiddenState().x);
|
|
@@ -766,9 +763,11 @@ function ScrollAreaScrollbar(props) {
|
|
|
766
763
|
});
|
|
767
764
|
root.handlePointerDown(event, orientation());
|
|
768
765
|
}
|
|
766
|
+
const onMouseDown = composeEventHandlers(() => internalProps.onMouseDown, () => (event) => event.preventDefault());
|
|
769
767
|
const onPointerDown = composeEventHandlers(() => internalProps.onPointerDown, () => handlePointerDown);
|
|
770
768
|
const onPointerUp = composeEventHandlers(() => internalProps.onPointerUp, () => root.handlePointerUp);
|
|
771
769
|
const onPointerCancel = composeEventHandlers(() => internalProps.onPointerCancel, () => root.handlePointerUp);
|
|
770
|
+
const Render = useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true));
|
|
772
771
|
return Show({
|
|
773
772
|
get when() {
|
|
774
773
|
return shouldRender();
|
|
@@ -777,10 +776,7 @@ function ScrollAreaScrollbar(props) {
|
|
|
777
776
|
return ScrollAreaScrollbarContext({
|
|
778
777
|
value: orientation,
|
|
779
778
|
get children() {
|
|
780
|
-
return
|
|
781
|
-
get component() {
|
|
782
|
-
return props.as ?? "div";
|
|
783
|
-
},
|
|
779
|
+
return Render(mergeProps({
|
|
784
780
|
ref: [((current) => setElement(current)), internalProps.ref],
|
|
785
781
|
get ["class"]() {
|
|
786
782
|
return classValue();
|
|
@@ -791,6 +787,8 @@ function ScrollAreaScrollbar(props) {
|
|
|
791
787
|
get ["data-id"]() {
|
|
792
788
|
return `${root.rootId}-scrollbar`;
|
|
793
789
|
},
|
|
790
|
+
"aria-hidden": "true",
|
|
791
|
+
onMouseDown,
|
|
794
792
|
onPointerDown,
|
|
795
793
|
onPointerUp,
|
|
796
794
|
onPointerCancel
|
|
@@ -809,7 +807,7 @@ function ScrollAreaContent(props) {
|
|
|
809
807
|
const viewport = useScrollAreaViewportContext();
|
|
810
808
|
const root = useScrollAreaRootContext();
|
|
811
809
|
const internalProps = props;
|
|
812
|
-
const others = omit(props, "
|
|
810
|
+
const others = omit(props, "render", "children", "class", "ref", "style");
|
|
813
811
|
const state = createMemo(() => root.state());
|
|
814
812
|
const classValue = createMemo(() => resolveClass(props.class, state()));
|
|
815
813
|
const styleValue = createMemo(() => {
|
|
@@ -840,10 +838,7 @@ function ScrollAreaContent(props) {
|
|
|
840
838
|
if (observedElement === element) observedElement = void 0;
|
|
841
839
|
};
|
|
842
840
|
});
|
|
843
|
-
return
|
|
844
|
-
get component() {
|
|
845
|
-
return props.as ?? "div";
|
|
846
|
-
},
|
|
841
|
+
return useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true))(mergeProps({
|
|
847
842
|
ref: [((element) => setContentElement(element)), internalProps.ref],
|
|
848
843
|
get ["class"]() {
|
|
849
844
|
return classValue();
|
|
@@ -865,7 +860,7 @@ function ScrollAreaThumb(props) {
|
|
|
865
860
|
const internalProps = props;
|
|
866
861
|
const allProps = props;
|
|
867
862
|
const [element, setElement] = createSignal();
|
|
868
|
-
const others = omit(allProps, "
|
|
863
|
+
const others = omit(allProps, "render", "children", "class", "onPointerCancel", "onPointerDown", "onPointerMove", "onPointerUp", "ref", "style");
|
|
869
864
|
const vertical = createMemo(() => orientation() === "vertical");
|
|
870
865
|
const state = createMemo(() => ({
|
|
871
866
|
scrolling: vertical() ? root.scrollingY() : root.scrollingX(),
|
|
@@ -898,10 +893,7 @@ function ScrollAreaThumb(props) {
|
|
|
898
893
|
const onPointerMove = composeEventHandlers(() => internalProps.onPointerMove, () => root.handlePointerMove);
|
|
899
894
|
const onPointerUp = composeEventHandlers(() => internalProps.onPointerUp, () => root.handlePointerUp);
|
|
900
895
|
const onPointerCancel = composeEventHandlers(() => internalProps.onPointerCancel, () => root.handlePointerUp);
|
|
901
|
-
return
|
|
902
|
-
get component() {
|
|
903
|
-
return props.as ?? "div";
|
|
904
|
-
},
|
|
896
|
+
return useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true))(mergeProps({
|
|
905
897
|
ref: [((current) => setElement(current)), internalProps.ref],
|
|
906
898
|
get ["class"]() {
|
|
907
899
|
return classValue();
|
|
@@ -925,7 +917,7 @@ function ScrollAreaCorner(props) {
|
|
|
925
917
|
const internalProps = props;
|
|
926
918
|
const allProps = props;
|
|
927
919
|
const [element, setElement] = createSignal();
|
|
928
|
-
const others = omit(allProps, "
|
|
920
|
+
const others = omit(allProps, "render", "children", "class", "ref", "style");
|
|
929
921
|
const state = {};
|
|
930
922
|
const shouldRender = createMemo(() => !root.hiddenState().corner);
|
|
931
923
|
const classValue = createMemo(() => resolveClass(props.class, state));
|
|
@@ -957,22 +949,21 @@ function ScrollAreaCorner(props) {
|
|
|
957
949
|
if (untrack(root.cornerElement) === current.element) root.setCornerElement(void 0);
|
|
958
950
|
};
|
|
959
951
|
});
|
|
952
|
+
const Render = useRender(props, () => state, (props) => ssrElement("div", props, void 0, true));
|
|
960
953
|
return Show({
|
|
961
954
|
get when() {
|
|
962
955
|
return shouldRender();
|
|
963
956
|
},
|
|
964
957
|
get children() {
|
|
965
|
-
return
|
|
966
|
-
get component() {
|
|
967
|
-
return props.as ?? "div";
|
|
968
|
-
},
|
|
958
|
+
return Render(mergeProps({
|
|
969
959
|
ref: [((current) => setElement(current)), internalProps.ref],
|
|
970
960
|
get ["class"]() {
|
|
971
961
|
return classValue();
|
|
972
962
|
},
|
|
973
963
|
get style() {
|
|
974
964
|
return styleValue();
|
|
975
|
-
}
|
|
965
|
+
},
|
|
966
|
+
"aria-hidden": "true"
|
|
976
967
|
}, others, { get children() {
|
|
977
968
|
return internalProps.children;
|
|
978
969
|
} }));
|