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,12 +1,13 @@
|
|
|
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 triggerPress, w as none } from "../internals/reasons.js";
|
|
4
5
|
import { n as resolveClass, t as resolveStyle } from "../resolveStyle-XCSFDHAL.js";
|
|
5
|
-
import { n as createCollapsibleTransitionStatus, t as createCollapsiblePanel } from "../createCollapsiblePanel-
|
|
6
|
+
import { n as createCollapsibleTransitionStatus, t as createCollapsiblePanel } from "../createCollapsiblePanel-B45kTe6v.js";
|
|
6
7
|
import { createChangeEventDetails } from "../internals/createBaseUIEventDetails.js";
|
|
7
8
|
import { transitionStatusMapping } from "../internals/stateAttributesMapping.js";
|
|
8
9
|
import { composeEventHandlers } from "../internals/composeEventHandlers.js";
|
|
9
|
-
import {
|
|
10
|
+
import { memo, mergeProps, ssrElement } from "@solidjs/web";
|
|
10
11
|
import { Show, createContext, createEffect, createMemo, createSignal, createUniqueId, flush, omit, onCleanup, untrack, useContext } from "solid-js";
|
|
11
12
|
//#region src/collapsible/root/CollapsibleRootContext.ts
|
|
12
13
|
var MISSING_CONTEXT = Symbol("CollapsibleRootContext");
|
|
@@ -43,7 +44,7 @@ function CollapsibleRoot(props) {
|
|
|
43
44
|
const [uncontrolledOpen, setUncontrolledOpen] = createSignal(untrack(() => rootProps.defaultOpen ?? false));
|
|
44
45
|
const [registeredPanelId, setPanelIdState] = createSignal();
|
|
45
46
|
const defaultPanelId = `base-ui-${createUniqueId()}`;
|
|
46
|
-
const others = omit(allProps, "
|
|
47
|
+
const others = omit(allProps, "render", "class", "defaultOpen", "disabled", "onOpenChange", "open", "style");
|
|
47
48
|
const open = createMemo(() => controlled ? rootProps.open ?? false : uncontrolledOpen());
|
|
48
49
|
const disabled = createMemo(() => rootProps.disabled ?? false);
|
|
49
50
|
const transition = createCollapsibleTransitionStatus(() => open());
|
|
@@ -68,24 +69,23 @@ function CollapsibleRoot(props) {
|
|
|
68
69
|
flush();
|
|
69
70
|
return true;
|
|
70
71
|
}
|
|
72
|
+
const context = {
|
|
73
|
+
defaultPanelId,
|
|
74
|
+
disabled,
|
|
75
|
+
mounted: transition.mounted,
|
|
76
|
+
open,
|
|
77
|
+
panelId,
|
|
78
|
+
requestOpenChange,
|
|
79
|
+
setMounted: transition.setMounted,
|
|
80
|
+
setPanelIdState,
|
|
81
|
+
state,
|
|
82
|
+
transitionStatus: transition.transitionStatus
|
|
83
|
+
};
|
|
84
|
+
const Render = useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true));
|
|
71
85
|
return CollapsibleRootContext({
|
|
72
|
-
value:
|
|
73
|
-
defaultPanelId,
|
|
74
|
-
disabled,
|
|
75
|
-
mounted: transition.mounted,
|
|
76
|
-
open,
|
|
77
|
-
panelId,
|
|
78
|
-
requestOpenChange,
|
|
79
|
-
setMounted: transition.setMounted,
|
|
80
|
-
setPanelIdState,
|
|
81
|
-
state,
|
|
82
|
-
transitionStatus: transition.transitionStatus
|
|
83
|
-
},
|
|
86
|
+
value: context,
|
|
84
87
|
get children() {
|
|
85
|
-
return
|
|
86
|
-
get component() {
|
|
87
|
-
return props.as ?? "div";
|
|
88
|
-
},
|
|
88
|
+
return Render(mergeProps({
|
|
89
89
|
get ["class"]() {
|
|
90
90
|
return classValue();
|
|
91
91
|
},
|
|
@@ -102,7 +102,7 @@ function CollapsibleRoot(props) {
|
|
|
102
102
|
function CollapsibleTrigger(props) {
|
|
103
103
|
const context = useCollapsibleRootContext();
|
|
104
104
|
const internalProps = props;
|
|
105
|
-
const others = omit(props, "
|
|
105
|
+
const others = omit(props, "render", "class", "disabled", "nativeButton", "onClick", "onKeyDown", "onKeyUp", "onMouseDown", "onPointerDown", "ref", "style");
|
|
106
106
|
const disabled = createMemo(() => props.disabled ?? context.disabled());
|
|
107
107
|
const nativeButton = createMemo(() => props.nativeButton ?? true);
|
|
108
108
|
const state = context.state;
|
|
@@ -118,10 +118,7 @@ function CollapsibleTrigger(props) {
|
|
|
118
118
|
const onKeyUp = composeEventHandlers(() => untrack(() => disabled() ? stopInteraction : void 0), () => internalProps.onKeyUp, () => untrack(() => nativeButton() ? void 0 : handleNonNativeKeyUp));
|
|
119
119
|
const ariaDisabled = createMemo(() => nativeButton() ? disabled() ? "true" : "false" : disabled() ? "true" : void 0);
|
|
120
120
|
const ariaExpanded = createMemo(() => context.open() ? "true" : "false");
|
|
121
|
-
return
|
|
122
|
-
get component() {
|
|
123
|
-
return props.as ?? "button";
|
|
124
|
-
},
|
|
121
|
+
return useRender(props, () => state(), (props) => ssrElement("button", props, void 0, true))(mergeProps({
|
|
125
122
|
ref: [internalProps.ref],
|
|
126
123
|
get ["class"]() {
|
|
127
124
|
return classValue();
|
|
@@ -216,7 +213,7 @@ function CollapsiblePanel(props) {
|
|
|
216
213
|
const id = createMemo(() => registeredId() ?? context.defaultPanelId);
|
|
217
214
|
const hiddenUntilFound = createMemo(() => internalProps.hiddenUntilFound ?? false);
|
|
218
215
|
const keepMounted = createMemo(() => internalProps.keepMounted ?? false);
|
|
219
|
-
const others = omit(allProps, "
|
|
216
|
+
const others = omit(allProps, "render", "class", "hiddenUntilFound", "id", "keepMounted", "ref", "style");
|
|
220
217
|
const controller = createCollapsiblePanel({
|
|
221
218
|
element: panelElement,
|
|
222
219
|
hiddenUntilFound,
|
|
@@ -252,31 +249,27 @@ function CollapsiblePanel(props) {
|
|
|
252
249
|
if (current.hiddenUntilFound && current.keepMounted === false && false);
|
|
253
250
|
});
|
|
254
251
|
onCleanup(() => setPanelElement(void 0));
|
|
255
|
-
const
|
|
256
|
-
ref: [internalProps.ref, ((element) => setPanelElement(element))],
|
|
257
|
-
id: id(),
|
|
258
|
-
class: classValue(),
|
|
259
|
-
style: styleValue(),
|
|
260
|
-
hidden: hiddenValue(),
|
|
261
|
-
...stateAttributes(),
|
|
262
|
-
...others
|
|
263
|
-
});
|
|
252
|
+
const Render = useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true));
|
|
264
253
|
return Show({
|
|
265
254
|
get when() {
|
|
266
255
|
return controller.shouldRender();
|
|
267
256
|
},
|
|
268
257
|
get children() {
|
|
269
|
-
return
|
|
270
|
-
|
|
271
|
-
|
|
258
|
+
return Render(mergeProps({
|
|
259
|
+
ref: [internalProps.ref, (element) => setPanelElement(element)],
|
|
260
|
+
get id() {
|
|
261
|
+
return id();
|
|
262
|
+
},
|
|
263
|
+
get ["class"]() {
|
|
264
|
+
return classValue();
|
|
272
265
|
},
|
|
273
|
-
get
|
|
274
|
-
return
|
|
266
|
+
get style() {
|
|
267
|
+
return styleValue();
|
|
275
268
|
},
|
|
276
|
-
|
|
277
|
-
return
|
|
278
|
-
}
|
|
279
|
-
});
|
|
269
|
+
get hidden() {
|
|
270
|
+
return hiddenValue();
|
|
271
|
+
}
|
|
272
|
+
}, stateAttributes, others));
|
|
280
273
|
}
|
|
281
274
|
});
|
|
282
275
|
}
|
|
@@ -1,27 +1,30 @@
|
|
|
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 { E as pointer, S as listNavigation, b as keyboard, n as chipRemovePress, w as none } 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 { A as getFilter, C as getIndexAfterChipRemoval, D as ComboboxTrigger, E as useRequiredComboboxChipsContext, M as
|
|
10
|
-
import { t as createTransitionStatus } from "../createTransitionStatus-
|
|
9
|
+
import { t as runOnceAnimationsFinish } from "../runOnceAnimationsFinish-CYq38H8J.js";
|
|
10
|
+
import { A as getFilter, C as getIndexAfterChipRemoval, D as ComboboxTrigger, E as useRequiredComboboxChipsContext, F as stringifyAsLabel, M as hasNullItemLabel, N as resolveMultipleLabels, O as AriaCombobox, P as resolveSelectedLabel, S as getChipNavigationKeys, T as ComboboxChipsContext, _ as ComboboxClear, a as ComboboxItem, b as handleInputPress, c as ComboboxGroup, d as ComboboxPositioner, f as ComboboxBackdrop, g as ComboboxCollection, h as ComboboxList, i as ComboboxRow, j as flattenItems, k as useComboboxRootContext, l as ComboboxArrow, m as ComboboxStatus, n as ComboboxSeparator, o as useComboboxItemContext, p as ComboboxPortal, r as ComboboxEmpty, s as ComboboxGroupLabel, t as useFilteredItems, u as ComboboxPopup, v as ComboboxIcon, w as ComboboxChipRegistry, x as ComboboxInput, y as ComboboxInputGroup } from "../useFilteredItems-DCxq20Is.js";
|
|
11
|
+
import { t as createTransitionStatus } from "../createTransitionStatus-184v7j3-.js";
|
|
11
12
|
import { a as stopButtonInteraction, n as handleNonNativeButtonKeyUp, r as preventButtonInteraction, t as handleNonNativeButtonKeyDown } from "../buttonSemantics-BSwDxJhh.js";
|
|
12
13
|
import { n as useDirection } from "../DirectionContext-YORWLF08.js";
|
|
13
14
|
import { fieldStateAttributesMapping } from "../internals/field-constants.js";
|
|
14
|
-
import { n as isSolidAccessor, o as findItemIndex } from "../mergeStyleValue-
|
|
15
|
-
import { r as useLabelableContext } from "../LabelableContext-
|
|
16
|
-
import {
|
|
15
|
+
import { a as defaultItemEquality, i as compareItemEquality, n as isSolidAccessor, o as findItemIndex } from "../mergeStyleValue-BwJ10_X2.js";
|
|
16
|
+
import { r as useLabelableContext } from "../LabelableContext-BTeF0IWb.js";
|
|
17
|
+
import { memo, mergeProps, ssrElement } from "@solidjs/web";
|
|
17
18
|
import { Show, createContext, createEffect, createMemo, createSignal, flush, omit, onCleanup, untrack, useContext } from "solid-js";
|
|
18
19
|
//#region src/combobox/root/ComboboxRoot.tsx
|
|
19
20
|
/**
|
|
20
21
|
* Groups all parts of the combobox.
|
|
21
22
|
* Doesn't render its own HTML element.
|
|
22
23
|
*/
|
|
23
|
-
function ComboboxRoot(
|
|
24
|
-
const
|
|
24
|
+
function ComboboxRoot(rawProps) {
|
|
25
|
+
const props = rawProps;
|
|
26
|
+
const others = omit(props, "multiple", "value", "defaultValue", "onValueChange", "autoComplete", "items");
|
|
27
|
+
const collection = createMemo(() => props.items && !Array.isArray(props.items) ? props.items : void 0);
|
|
25
28
|
return AriaCombobox(mergeProps({
|
|
26
29
|
get selectionMode() {
|
|
27
30
|
return props.multiple ? "multiple" : "single";
|
|
@@ -37,6 +40,14 @@ function ComboboxRoot(props) {
|
|
|
37
40
|
},
|
|
38
41
|
get formAutoComplete() {
|
|
39
42
|
return props.autoComplete;
|
|
43
|
+
},
|
|
44
|
+
get items() {
|
|
45
|
+
return memo(() => {
|
|
46
|
+
return !!collection();
|
|
47
|
+
})() ? collection().data : props.items;
|
|
48
|
+
},
|
|
49
|
+
get itemCollection() {
|
|
50
|
+
return collection();
|
|
40
51
|
}
|
|
41
52
|
}, others));
|
|
42
53
|
}
|
|
@@ -58,7 +69,7 @@ function ComboboxLabel(props) {
|
|
|
58
69
|
const classValue = createMemo(() => resolveClass(props.class, state()));
|
|
59
70
|
const styleValue = createMemo(() => resolveStyle(props.style, state()));
|
|
60
71
|
const stateAttributes = createMemo(() => getStateAttributesProps(state(), fieldStateAttributesMapping));
|
|
61
|
-
const others = omit(allProps, "
|
|
72
|
+
const others = omit(allProps, "render", "class", "id", "onClick", "onPointerDown", "ref", "style");
|
|
62
73
|
function focusControl(event) {
|
|
63
74
|
const target = event.composedPath()[0];
|
|
64
75
|
if (target instanceof Element && target.closest("button,input,select,textarea,a[href]")) return;
|
|
@@ -78,10 +89,7 @@ function ComboboxLabel(props) {
|
|
|
78
89
|
if (untrack(() => context.store.labelId()) === currentId) context.store.setLabelId(void 0);
|
|
79
90
|
};
|
|
80
91
|
});
|
|
81
|
-
return
|
|
82
|
-
get component() {
|
|
83
|
-
return props.as ?? "div";
|
|
84
|
-
},
|
|
92
|
+
return useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true))(mergeProps({
|
|
85
93
|
ref: [internalProps.ref],
|
|
86
94
|
get id() {
|
|
87
95
|
return id();
|
|
@@ -108,8 +116,9 @@ function ComboboxValue(props) {
|
|
|
108
116
|
const child = props.children;
|
|
109
117
|
if (typeof child === "function") return isSolidAccessor(child) ? untrack(() => child()) : child(context.selectedValue());
|
|
110
118
|
if (child != null) return child;
|
|
111
|
-
if (!context.hasSelectedValue() && props.placeholder != null && !hasNullItemLabel(context.items())) return props.placeholder;
|
|
119
|
+
if (!context.hasSelectedValue() && props.placeholder != null && (context.hasItemCollection() || !hasNullItemLabel(context.items()))) return props.placeholder;
|
|
112
120
|
const current = context.selectedValue();
|
|
121
|
+
if (context.hasItemCollection() && current == null) return "";
|
|
113
122
|
if (context.multiple() && Array.isArray(current)) return resolveMultipleLabels(current, context.items(), context.itemToStringLabel());
|
|
114
123
|
return resolveSelectedLabel(current, context.items(), context.itemToStringLabel());
|
|
115
124
|
});
|
|
@@ -130,7 +139,7 @@ function ComboboxItemIndicator(props) {
|
|
|
130
139
|
const classValue = createMemo(() => resolveClass(props.class, state()));
|
|
131
140
|
const styleValue = createMemo(() => resolveStyle(props.style, state()));
|
|
132
141
|
const stateAttributes = createMemo(() => getStateAttributesProps(state(), transitionStatusMapping));
|
|
133
|
-
const others = omit(allProps, "
|
|
142
|
+
const others = omit(allProps, "render", "class", "keepMounted", "ref", "style");
|
|
134
143
|
let element;
|
|
135
144
|
createEffect(() => ({
|
|
136
145
|
selected: item.selected(),
|
|
@@ -144,15 +153,13 @@ function ComboboxItemIndicator(props) {
|
|
|
144
153
|
}, controller.signal);
|
|
145
154
|
return () => controller.abort();
|
|
146
155
|
});
|
|
156
|
+
const Render = useRender(props, () => state(), (props) => ssrElement("span", props, void 0, true));
|
|
147
157
|
return Show({
|
|
148
158
|
get when() {
|
|
149
159
|
return shouldRender();
|
|
150
160
|
},
|
|
151
161
|
get children() {
|
|
152
|
-
return
|
|
153
|
-
get component() {
|
|
154
|
-
return props.as ?? "span";
|
|
155
|
-
},
|
|
162
|
+
return Render(mergeProps({
|
|
156
163
|
ref: [((value) => element = value), internalProps.ref],
|
|
157
164
|
"aria-hidden": "true",
|
|
158
165
|
get ["class"]() {
|
|
@@ -179,7 +186,7 @@ function ComboboxChips(props) {
|
|
|
179
186
|
const state = {};
|
|
180
187
|
const classValue = createMemo(() => resolveClass(props.class, state));
|
|
181
188
|
const styleValue = createMemo(() => resolveStyle(props.style, state));
|
|
182
|
-
const others = omit(allProps, "
|
|
189
|
+
const others = omit(allProps, "render", "class", "onMouseDown", "ref", "style");
|
|
183
190
|
const onMouseDown = composeEventHandlers(() => internalProps.onMouseDown, () => (event) => handleInputPress(event, context, context.disabled(), context.readOnly()));
|
|
184
191
|
createEffect(() => context.store.open(), (open) => {
|
|
185
192
|
if (open) setHighlightedChipIndex(void 0);
|
|
@@ -188,6 +195,7 @@ function ComboboxChips(props) {
|
|
|
188
195
|
onCleanup(() => {
|
|
189
196
|
if (context.store.chipsContainerElement === container) context.store.chipsContainerElement = null;
|
|
190
197
|
});
|
|
198
|
+
const Render = useRender(props, () => state, (props) => ssrElement("div", props, void 0, true));
|
|
191
199
|
return ComboboxChipsContext({
|
|
192
200
|
value: {
|
|
193
201
|
highlightedChipIndex,
|
|
@@ -195,10 +203,7 @@ function ComboboxChips(props) {
|
|
|
195
203
|
chips
|
|
196
204
|
},
|
|
197
205
|
get children() {
|
|
198
|
-
return
|
|
199
|
-
get component() {
|
|
200
|
-
return props.as ?? "div";
|
|
201
|
-
},
|
|
206
|
+
return Render(mergeProps({
|
|
202
207
|
ref: [((element) => {
|
|
203
208
|
container = element;
|
|
204
209
|
context.store.chipsContainerElement = element;
|
|
@@ -244,7 +249,7 @@ function ComboboxChip(props) {
|
|
|
244
249
|
const classValue = createMemo(() => resolveClass(props.class, state()));
|
|
245
250
|
const styleValue = createMemo(() => resolveStyle(props.style, state()));
|
|
246
251
|
const stateAttributes = createMemo(() => getStateAttributesProps(state()));
|
|
247
|
-
const others = omit(allProps, "
|
|
252
|
+
const others = omit(allProps, "render", "class", "onKeyDown", "ref", "style");
|
|
248
253
|
function resolveNextIndex(event) {
|
|
249
254
|
const current = index();
|
|
250
255
|
const [previousChipKey, nextChipKey] = getChipNavigationKeys(direction());
|
|
@@ -293,13 +298,11 @@ function ComboboxChip(props) {
|
|
|
293
298
|
else chips.chips.elements()[nextIndex]?.focus();
|
|
294
299
|
}
|
|
295
300
|
const onKeyDown = composeEventHandlers(() => internalProps.onKeyDown, () => handleKeyDown);
|
|
301
|
+
const Render = useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true));
|
|
296
302
|
return ComboboxChipContext({
|
|
297
303
|
value: { index },
|
|
298
304
|
get children() {
|
|
299
|
-
return
|
|
300
|
-
get component() {
|
|
301
|
-
return props.as ?? "div";
|
|
302
|
-
},
|
|
305
|
+
return Render(mergeProps({
|
|
303
306
|
ref: [((value) => {
|
|
304
307
|
setElement(value);
|
|
305
308
|
chips.chips.touch();
|
|
@@ -336,7 +339,7 @@ function ComboboxChipRemove(props) {
|
|
|
336
339
|
const classValue = createMemo(() => resolveClass(props.class, state()));
|
|
337
340
|
const styleValue = createMemo(() => resolveStyle(props.style, state()));
|
|
338
341
|
const stateAttributes = createMemo(() => getStateAttributesProps(state()));
|
|
339
|
-
const others = omit(allProps, "
|
|
342
|
+
const others = omit(allProps, "render", "class", "disabled", "nativeButton", "onClick", "onKeyDown", "onKeyUp", "onMouseDown", "ref", "style");
|
|
340
343
|
/**
|
|
341
344
|
* Drops the highlight when the removed item is the highlighted one. An item filtered out of
|
|
342
345
|
* the visible list cannot be the active index, so a miss needs no clearing.
|
|
@@ -375,10 +378,7 @@ function ComboboxChipRemove(props) {
|
|
|
375
378
|
const onKeyDown = composeEventHandlers(() => internalProps.onKeyDown, () => handleKeyDown, () => untrack(() => nativeButton() ? void 0 : handleNonNativeButtonKeyDown));
|
|
376
379
|
const onKeyUp = composeEventHandlers(() => untrack(() => disabled() ? stopButtonInteraction : void 0), () => internalProps.onKeyUp, () => untrack(() => nativeButton() ? void 0 : handleNonNativeButtonKeyUp));
|
|
377
380
|
const onMouseDown = composeEventHandlers(() => internalProps.onMouseDown, () => (event) => event.preventDefault());
|
|
378
|
-
return
|
|
379
|
-
get component() {
|
|
380
|
-
return props.as ?? "button";
|
|
381
|
-
},
|
|
381
|
+
return useRender(props, () => state(), (props) => ssrElement("button", props, void 0, true))(mergeProps({
|
|
382
382
|
ref: [internalProps.ref],
|
|
383
383
|
get type() {
|
|
384
384
|
return nativeButton() ? "button" : void 0;
|
|
@@ -445,6 +445,34 @@ function useFilter(options = {}) {
|
|
|
445
445
|
};
|
|
446
446
|
}
|
|
447
447
|
//#endregion
|
|
448
|
+
//#region src/combobox/items/createItems.ts
|
|
449
|
+
function createComboboxItems(data, options) {
|
|
450
|
+
let index;
|
|
451
|
+
function find(value, compare) {
|
|
452
|
+
if (!index) {
|
|
453
|
+
index = /* @__PURE__ */ new Map();
|
|
454
|
+
for (const item of flattenItems(data)) {
|
|
455
|
+
if (item == null) continue;
|
|
456
|
+
const key = options.getValue(item);
|
|
457
|
+
if (!index.has(key)) index.set(key, item);
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
const exact = index.get(value);
|
|
461
|
+
if (exact !== void 0 || compare === defaultItemEquality) return exact;
|
|
462
|
+
for (const [key, item] of index) if (compareItemEquality(key, value, compare)) return item;
|
|
463
|
+
}
|
|
464
|
+
return {
|
|
465
|
+
data,
|
|
466
|
+
value: (item) => item == null ? item : options.getValue(item),
|
|
467
|
+
itemLabel: options.getLabel,
|
|
468
|
+
hasValue: (value, compare) => find(value, compare) !== void 0,
|
|
469
|
+
label(value, compare, fallback) {
|
|
470
|
+
const item = find(value, compare);
|
|
471
|
+
return item === void 0 ? stringifyAsLabel(value, fallback) : options.getLabel(item);
|
|
472
|
+
}
|
|
473
|
+
};
|
|
474
|
+
}
|
|
475
|
+
//#endregion
|
|
448
476
|
//#region src/combobox/index.parts.ts
|
|
449
477
|
var index_parts_exports = /* @__PURE__ */ __exportAll({
|
|
450
478
|
Arrow: () => ComboboxArrow,
|
|
@@ -473,8 +501,9 @@ var index_parts_exports = /* @__PURE__ */ __exportAll({
|
|
|
473
501
|
Status: () => ComboboxStatus,
|
|
474
502
|
Trigger: () => ComboboxTrigger,
|
|
475
503
|
Value: () => ComboboxValue,
|
|
504
|
+
createItems: () => createComboboxItems,
|
|
476
505
|
useFilter: () => useFilter,
|
|
477
506
|
useFilteredItems: () => useFilteredItems
|
|
478
507
|
});
|
|
479
508
|
//#endregion
|
|
480
|
-
export { index_parts_exports as Combobox };
|
|
509
|
+
export { index_parts_exports as Combobox, createComboboxItems };
|
|
@@ -279,9 +279,14 @@ function createSwipeDismiss(options) {
|
|
|
279
279
|
return isHTMLElement(target) ? target : null;
|
|
280
280
|
}
|
|
281
281
|
function findGestureScrollableTouchTarget(target, root) {
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
282
|
+
const find = (axis) => {
|
|
283
|
+
const scrollTarget = findScrollableTouchTarget(target, root, axis);
|
|
284
|
+
const doc = ownerDocument(scrollTarget);
|
|
285
|
+
return scrollTarget === doc.body || scrollTarget === doc.documentElement ? null : scrollTarget;
|
|
286
|
+
};
|
|
287
|
+
if (hasHorizontal() && !hasVertical()) return find("horizontal");
|
|
288
|
+
if (hasVertical() && !hasHorizontal()) return find("vertical");
|
|
289
|
+
return find("vertical") ?? find("horizontal");
|
|
285
290
|
}
|
|
286
291
|
function startSwipeAtPosition(event, position, startOptions) {
|
|
287
292
|
swipeFromScrollable = false;
|
|
@@ -1,14 +1,15 @@
|
|
|
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 triggerPress, t as cancelOpen } 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 { composeEventHandlers } from "../internals/composeEventHandlers.js";
|
|
7
8
|
import { n as contains, r as getEventTarget } from "../dom-Crg_2R-j.js";
|
|
8
|
-
import { i as pressableTriggerOpenStateMapping } from "../popupStateMapping-
|
|
9
|
-
import { C as useMenuRootContext, E as useContextMenuRootContext, S as MenuRootContext, T as ContextMenuRootContext, a as MenuRadioGroup, b as mergeMenuStyles, c as MenuCheckboxItem, d as MenuGroupLabel, f as MenuGroup, h as MenuPositioner, i as MenuRadioItem, l as MenuItem, m as MenuPopup, n as MenuSubmenuRoot, o as MenuLinkItem, p as MenuArrow, r as MenuRadioItemIndicator, s as MenuCheckboxItemIndicator, t as MenuSubmenuTrigger, v as MenuPortal, x as MenuRoot, y as MenuBackdrop } from "../MenuSubmenuTrigger-
|
|
10
|
-
import { t as Separator } from "../Separator-
|
|
11
|
-
import {
|
|
9
|
+
import { i as pressableTriggerOpenStateMapping } from "../popupStateMapping-B2KsiiLb.js";
|
|
10
|
+
import { C as useMenuRootContext, E as useContextMenuRootContext, S as MenuRootContext, T as ContextMenuRootContext, a as MenuRadioGroup, b as mergeMenuStyles, c as MenuCheckboxItem, d as MenuGroupLabel, f as MenuGroup, h as MenuPositioner, i as MenuRadioItem, l as MenuItem, m as MenuPopup, n as MenuSubmenuRoot, o as MenuLinkItem, p as MenuArrow, r as MenuRadioItemIndicator, s as MenuCheckboxItemIndicator, t as MenuSubmenuTrigger, v as MenuPortal, x as MenuRoot, y as MenuBackdrop } from "../MenuSubmenuTrigger-rR8ZN7YR.js";
|
|
11
|
+
import { t as Separator } from "../Separator-DTvtnxzP.js";
|
|
12
|
+
import { mergeProps, ssrElement } from "@solidjs/web";
|
|
12
13
|
import { createEffect, createMemo, createSignal, omit, onCleanup } from "solid-js";
|
|
13
14
|
//#region src/context-menu/root/ContextMenuRoot.tsx
|
|
14
15
|
/** Groups all parts of a context menu without rendering an element. */
|
|
@@ -96,7 +97,7 @@ function ContextMenuTrigger(props) {
|
|
|
96
97
|
const classValue = createMemo(() => resolveClass(props.class, state()));
|
|
97
98
|
const styleValue = createMemo(() => mergeMenuStyles({ "-webkit-touch-callout": "none" }, resolveStyle(props.style, state())));
|
|
98
99
|
const stateAttributes = createMemo(() => getStateAttributesProps(state(), pressableTriggerOpenStateMapping));
|
|
99
|
-
const others = omit(allProps, "
|
|
100
|
+
const others = omit(allProps, "render", "class", "onContextMenu", "onTouchCancel", "onTouchEnd", "onTouchMove", "onTouchStart", "ref", "style");
|
|
100
101
|
let touchPosition = null;
|
|
101
102
|
let longPressTimer;
|
|
102
103
|
let allowMouseUpTimer;
|
|
@@ -199,10 +200,7 @@ function ContextMenuTrigger(props) {
|
|
|
199
200
|
clearTimeout(allowMouseUpTimer);
|
|
200
201
|
mouseUpController?.abort();
|
|
201
202
|
});
|
|
202
|
-
return
|
|
203
|
-
get component() {
|
|
204
|
-
return props.as ?? "div";
|
|
205
|
-
},
|
|
203
|
+
return useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true))(mergeProps({
|
|
206
204
|
ref: [((value) => setElement(value)), internalProps.ref],
|
|
207
205
|
get ["class"]() {
|
|
208
206
|
return classValue();
|
package/dist/lib/server/{createAnchorPositioning-C-cVOPwz.js → createAnchorPositioning-B5Y0WEev.js}
RENAMED
|
@@ -286,7 +286,7 @@ function createAnchorPositioning(options) {
|
|
|
286
286
|
}),
|
|
287
287
|
baseArrow(() => ({
|
|
288
288
|
element: currentArrowElement ?? ownerDocument(currentFloatingElement).createElement("div"),
|
|
289
|
-
padding: arrowPadding,
|
|
289
|
+
padding: currentArrowElement ? arrowPadding : 0,
|
|
290
290
|
offsetParent: "floating"
|
|
291
291
|
})),
|
|
292
292
|
{
|
|
@@ -294,18 +294,22 @@ function createAnchorPositioning(options) {
|
|
|
294
294
|
fn(state) {
|
|
295
295
|
const renderedSide = getSide(state.placement);
|
|
296
296
|
const arrow = currentArrowElement;
|
|
297
|
+
const renderedAlign = getAlignment(state.placement);
|
|
298
|
+
const vertical = renderedSide === "top" || renderedSide === "bottom";
|
|
297
299
|
const arrowX = state.middlewareData.arrow?.x ?? 0;
|
|
298
300
|
const arrowY = state.middlewareData.arrow?.y ?? 0;
|
|
299
301
|
const transformX = arrowX + (arrow?.clientWidth ?? 0) / 2;
|
|
300
302
|
const transformY = arrowY + (arrow?.clientHeight ?? 0) / 2;
|
|
303
|
+
let crossOrigin = `${vertical ? transformX : transformY}px`;
|
|
304
|
+
if (!arrow && renderedAlign && Math.abs(vertical ? state.middlewareData.shift?.x ?? 0 : state.middlewareData.shift?.y ?? 0) <= 1) crossOrigin = renderedAlign === "start" === (vertical && state.platform.isRTL?.(state.elements.floating) === true) ? "100%" : "0%";
|
|
301
305
|
const sideOffsetValue = typeof sideOffset === "function" ? sideOffset(offsetData(state, requestedSide(), rtl())) : sideOffset;
|
|
302
306
|
const adjacent = {
|
|
303
|
-
top: `${
|
|
304
|
-
bottom: `${
|
|
305
|
-
left: `calc(100% + ${sideOffsetValue}px) ${
|
|
306
|
-
right: `${-sideOffsetValue}px ${
|
|
307
|
+
top: `${crossOrigin} calc(100% + ${sideOffsetValue}px)`,
|
|
308
|
+
bottom: `${crossOrigin} ${-sideOffsetValue}px`,
|
|
309
|
+
left: `calc(100% + ${sideOffsetValue}px) ${crossOrigin}`,
|
|
310
|
+
right: `${-sideOffsetValue}px ${crossOrigin}`
|
|
307
311
|
}[renderedSide];
|
|
308
|
-
const overlap = `${
|
|
312
|
+
const overlap = `${crossOrigin} ${state.rects.reference.y + state.rects.reference.height / 2 - state.y}px`;
|
|
309
313
|
const overlaps = Math.abs(state.middlewareData.shift?.y ?? 0) > sideOffsetValue;
|
|
310
314
|
state.elements.floating.style.setProperty("--transform-origin", crossAxis && ["top", "bottom"].includes(renderedSide) && overlaps ? overlap : adjacent);
|
|
311
315
|
return {};
|
|
@@ -330,6 +334,7 @@ function createAnchorPositioning(options) {
|
|
|
330
334
|
middleware,
|
|
331
335
|
transform: () => !options.adaptiveOriginMiddleware?.(),
|
|
332
336
|
autoUpdate: () => ({
|
|
337
|
+
ancestorScroll: !(options.disableAnchorTracking?.() ?? false),
|
|
333
338
|
elementResize: !(options.disableAnchorTracking?.() ?? false) && typeof ResizeObserver !== "undefined",
|
|
334
339
|
layoutShift: !(options.disableAnchorTracking?.() ?? false) && typeof IntersectionObserver !== "undefined"
|
|
335
340
|
})
|
package/dist/lib/server/{createCollapsiblePanel-DTyVJz0G.js → createCollapsiblePanel-B45kTe6v.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as runOnceAnimationsFinish } from "./runOnceAnimationsFinish-
|
|
1
|
+
import { t as runOnceAnimationsFinish } from "./runOnceAnimationsFinish-CYq38H8J.js";
|
|
2
2
|
import { createEffect, createMemo, createSignal, onCleanup, untrack } from "solid-js";
|
|
3
3
|
//#region src/collapsible/root/createCollapsibleTransitionStatus.ts
|
|
4
4
|
/** Adds an idle phase and a frame boundary before Collapsible exit styles apply. */
|
package/dist/lib/server/{createFocusInteraction-EIS0QOel.js → createFocusInteraction-DMyKsniI.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as triggerFocus } from "./internals/reasons.js";
|
|
2
2
|
import { createChangeEventDetails } from "./internals/createBaseUIEventDetails.js";
|
|
3
|
-
import { n as contains, p as ownerDocument, t as activeElement } from "./dom-Crg_2R-j.js";
|
|
4
|
-
import { onCleanup } from "solid-js";
|
|
3
|
+
import { m as ownerWindow, n as contains, p as ownerDocument, t as activeElement } from "./dom-Crg_2R-j.js";
|
|
4
|
+
import { createEffect, onCleanup } from "solid-js";
|
|
5
5
|
//#region src/internals/overlay/createFocusInteraction.ts
|
|
6
6
|
function matchesFocusVisible(element) {
|
|
7
7
|
try {
|
|
@@ -15,6 +15,7 @@ function createFocusInteraction(options) {
|
|
|
15
15
|
let closeTimer;
|
|
16
16
|
let blockFocus = false;
|
|
17
17
|
let blockedReference = null;
|
|
18
|
+
let focusedReference = null;
|
|
18
19
|
const unsubscribe = options.context.context.events.on("openchange", (details) => {
|
|
19
20
|
if (!details.open && (details.reason === "escape-key" || details.reason === "trigger-press")) {
|
|
20
21
|
blockFocus = true;
|
|
@@ -28,10 +29,27 @@ function createFocusInteraction(options) {
|
|
|
28
29
|
clearTimeout(closeTimer);
|
|
29
30
|
});
|
|
30
31
|
const enabled = () => options.enabled?.() ?? true;
|
|
32
|
+
createEffect(() => ({
|
|
33
|
+
enabled: enabled(),
|
|
34
|
+
reference: options.context.track().domReferenceElement
|
|
35
|
+
}), (state) => {
|
|
36
|
+
if (!state.enabled) return;
|
|
37
|
+
const windowNode = ownerWindow(state.reference);
|
|
38
|
+
const onWindowBlur = () => {
|
|
39
|
+
const reference = focusedReference ?? options.context.state.domReferenceElement;
|
|
40
|
+
if (!options.context.state.open && reference === activeElement(ownerDocument(reference))) {
|
|
41
|
+
blockFocus = true;
|
|
42
|
+
blockedReference = reference;
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
windowNode.addEventListener("blur", onWindowBlur);
|
|
46
|
+
return () => windowNode.removeEventListener("blur", onWindowBlur);
|
|
47
|
+
});
|
|
31
48
|
return {
|
|
32
49
|
onFocus(event) {
|
|
33
50
|
if (!enabled()) return;
|
|
34
51
|
const trigger = event.currentTarget;
|
|
52
|
+
focusedReference = trigger;
|
|
35
53
|
if (blockFocus && blockedReference !== trigger) {
|
|
36
54
|
blockFocus = false;
|
|
37
55
|
blockedReference = null;
|
|
@@ -42,10 +60,12 @@ function createFocusInteraction(options) {
|
|
|
42
60
|
const delay = options.context.state.open ? 0 : options.delay?.() ?? 0;
|
|
43
61
|
clearTimeout(openTimer);
|
|
44
62
|
openTimer = setTimeout(() => {
|
|
63
|
+
if (!enabled() || blockFocus && blockedReference === trigger) return;
|
|
45
64
|
options.context.setOpen(true, createChangeEventDetails(triggerFocus, event, trigger));
|
|
46
65
|
}, delay);
|
|
47
66
|
},
|
|
48
67
|
onBlur(event) {
|
|
68
|
+
focusedReference = null;
|
|
49
69
|
clearTimeout(openTimer);
|
|
50
70
|
clearTimeout(closeTimer);
|
|
51
71
|
if (blockedReference === event.currentTarget) {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { r as useLabelableContext } from "./LabelableContext-BTeF0IWb.js";
|
|
2
|
+
import { createEffect, onCleanup } from "solid-js";
|
|
3
|
+
//#region src/internals/labelable-provider/createLabelableId.ts
|
|
4
|
+
/** Keep the server label/control pair associated until explicit IDs register on the client. */
|
|
5
|
+
function createLabelableId(id, fallback, enabled = () => true) {
|
|
6
|
+
const context = useLabelableContext();
|
|
7
|
+
const source = Symbol("LabelableId");
|
|
8
|
+
createEffect(() => ({
|
|
9
|
+
id: id(),
|
|
10
|
+
enabled: enabled()
|
|
11
|
+
}), (current) => {
|
|
12
|
+
context.registerControlId(source, current.enabled ? current.id === void 0 ? context.defaultControlId ?? fallback : current.id : void 0);
|
|
13
|
+
});
|
|
14
|
+
onCleanup(() => context.registerControlId(source, void 0));
|
|
15
|
+
return () => (enabled() ? context.controlId() : void 0) ?? id() ?? fallback;
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { createLabelableId as t };
|
package/dist/lib/server/{createPopupAutoResize-DO50jjNX.js → createPopupAutoResize-ImBjwdj_.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as runOnceAnimationsFinish } from "./runOnceAnimationsFinish-
|
|
1
|
+
import { t as runOnceAnimationsFinish } from "./runOnceAnimationsFinish-CYq38H8J.js";
|
|
2
2
|
import { c as isHTMLElement, m as ownerWindow } from "./dom-Crg_2R-j.js";
|
|
3
3
|
import { createEffect, untrack } from "solid-js";
|
|
4
4
|
//#region src/internals/overlay/createPopupAutoResize.ts
|
package/dist/lib/server/{createTransitionStatus-BTlrerSS.js → createTransitionStatus-184v7j3-.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createEffect, createSignal, untrack } from "solid-js";
|
|
2
2
|
//#region src/internals/createTransitionStatus.ts
|
|
3
3
|
/** Tracks mount retention and CSS starting/ending states for a visibility accessor. */
|
|
4
|
-
function createTransitionStatus(open) {
|
|
4
|
+
function createTransitionStatus(open, animateInitialOpen = false) {
|
|
5
5
|
const [mounted, setMounted] = createSignal(untrack(open), { ownedWrite: true });
|
|
6
|
-
const [transitionStatus, setTransitionStatus] = createSignal(void 0, { ownedWrite: true });
|
|
6
|
+
const [transitionStatus, setTransitionStatus] = createSignal(untrack(open) && animateInitialOpen ? "starting" : void 0, { ownedWrite: true });
|
|
7
7
|
createEffect(() => ({
|
|
8
8
|
open: open(),
|
|
9
9
|
mounted: mounted(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { a as DialogTitle, c as DialogDescription, i as DialogTrigger, l as DialogClose, n as createDialogHandle, o as DialogPortal, p as DialogRoot, r as DialogViewport, t as DialogHandle } from "../DialogHandle-
|
|
3
|
-
import { n as DialogBackdrop, t as DialogPopup } from "../DialogPopup-
|
|
2
|
+
import { a as DialogTitle, c as DialogDescription, i as DialogTrigger, l as DialogClose, n as createDialogHandle, o as DialogPortal, p as DialogRoot, r as DialogViewport, t as DialogHandle } from "../DialogHandle-nJSSy_jM.js";
|
|
3
|
+
import { n as DialogBackdrop, t as DialogPopup } from "../DialogPopup-Da1aIxVA.js";
|
|
4
4
|
//#region src/dialog/index.parts.ts
|
|
5
5
|
var index_parts_exports = /* @__PURE__ */ __exportAll({
|
|
6
6
|
Backdrop: () => DialogBackdrop,
|