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
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { t } from "./useRender-CxZ8PI-g.js";
|
|
3
|
+
import { getStateAttributesProps as n } from "./internals/getStateAttributesProps.js";
|
|
4
|
+
import { P as r, w as i } from "./reasons-Co5CzjKq.js";
|
|
5
|
+
import { n as a, t as o } from "./resolveStyle-XcgAuaKR.js";
|
|
6
|
+
import { n as s, t as c } from "./createCollapsiblePanel-BQ8r4RTi.js";
|
|
7
|
+
import { createChangeEventDetails as l } from "./internals/createBaseUIEventDetails.js";
|
|
8
|
+
import { transitionStatusMapping as u } from "./internals/stateAttributesMapping.js";
|
|
9
|
+
import { composeEventHandlers as d } from "./internals/composeEventHandlers.js";
|
|
10
|
+
import { createComponent as f, getNextElement as p, memo as m, mergeProps as h, runHydrationEvents as g, spread as _, template as v } from "@solidjs/web";
|
|
11
|
+
import { Show as y, createContext as b, createEffect as x, createMemo as S, createSignal as C, createUniqueId as w, flush as T, omit as E, onCleanup as D, untrack as O, useContext as k } from "solid-js";
|
|
12
|
+
//#region src/collapsible/root/CollapsibleRootContext.ts
|
|
13
|
+
var A = Symbol("CollapsibleRootContext"), j = b(A);
|
|
14
|
+
function M() {
|
|
15
|
+
let e = k(j);
|
|
16
|
+
if (e === A) throw Error("Base UI: CollapsibleRootContext is missing. Collapsible parts must be placed within <Collapsible.Root>.");
|
|
17
|
+
return e;
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/collapsible/root/stateAttributesMapping.ts
|
|
21
|
+
var N = { "data-open": "" }, P = { "data-closed": "" }, F = { "data-panel-open": "" }, I = {
|
|
22
|
+
open(e) {
|
|
23
|
+
return e ? N : P;
|
|
24
|
+
},
|
|
25
|
+
...u
|
|
26
|
+
}, L = {
|
|
27
|
+
open(e) {
|
|
28
|
+
return e ? F : null;
|
|
29
|
+
},
|
|
30
|
+
...u
|
|
31
|
+
}, R = /* @__PURE__ */ v("<div>");
|
|
32
|
+
function z(e) {
|
|
33
|
+
let r = e, i = e, c = O(() => i.open !== void 0), [u, d] = C(O(() => i.defaultOpen ?? !1)), [m, v] = C(), y = `base-ui-${w()}`, b = E(r, "render", "class", "defaultOpen", "disabled", "onOpenChange", "open", "style"), x = S(() => c ? i.open ?? !1 : u()), D = S(() => i.disabled ?? !1), k = s(() => x()), A = S(() => {
|
|
34
|
+
let e = m();
|
|
35
|
+
return e === null ? void 0 : e ?? y;
|
|
36
|
+
}), M = S(() => ({
|
|
37
|
+
disabled: D(),
|
|
38
|
+
open: x(),
|
|
39
|
+
transitionStatus: k.transitionStatus()
|
|
40
|
+
})), N = S(() => a(e.class, M())), P = S(() => o(e.style, M())), F = S(() => n(M(), I));
|
|
41
|
+
function L(e, t, n, r) {
|
|
42
|
+
let a = l(n, t);
|
|
43
|
+
return i.onOpenChange?.(e, a), !a.isCanceled && (r?.(), c || d(e), T(), !0);
|
|
44
|
+
}
|
|
45
|
+
let z = {
|
|
46
|
+
defaultPanelId: y,
|
|
47
|
+
disabled: D,
|
|
48
|
+
mounted: k.mounted,
|
|
49
|
+
open: x,
|
|
50
|
+
panelId: A,
|
|
51
|
+
requestOpenChange: L,
|
|
52
|
+
setMounted: k.setMounted,
|
|
53
|
+
setPanelIdState: v,
|
|
54
|
+
state: M,
|
|
55
|
+
transitionStatus: k.transitionStatus
|
|
56
|
+
}, B = t(e, () => M(), (e) => (() => {
|
|
57
|
+
var t = p(R);
|
|
58
|
+
return _(t, e, !1), g(), t;
|
|
59
|
+
})());
|
|
60
|
+
return f(j, {
|
|
61
|
+
value: z,
|
|
62
|
+
get children() {
|
|
63
|
+
return f(B, h({
|
|
64
|
+
get class() {
|
|
65
|
+
return N();
|
|
66
|
+
},
|
|
67
|
+
get style() {
|
|
68
|
+
return P();
|
|
69
|
+
}
|
|
70
|
+
}, F, b));
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region src/collapsible/trigger/CollapsibleTrigger.tsx
|
|
76
|
+
var B = /* @__PURE__ */ v("<button>");
|
|
77
|
+
function V(e) {
|
|
78
|
+
let i = M(), s = e, c = E(e, "render", "class", "disabled", "nativeButton", "onClick", "onKeyDown", "onKeyUp", "onMouseDown", "onPointerDown", "ref", "style"), l = S(() => e.disabled ?? i.disabled()), u = S(() => e.nativeButton ?? !0), v = i.state, y = S(() => a(e.class, v())), b = S(() => o(e.style, v())), x = S(() => n(v(), L)), C = d(() => O(() => l() ? H : void 0), () => s.onClick, () => (e) => {
|
|
79
|
+
i.requestOpenChange(!i.open(), e, r);
|
|
80
|
+
}), w = d(() => O(() => l() ? U : void 0), () => s.onMouseDown), T = d(() => O(() => l() ? H : void 0), () => s.onPointerDown), D = d(() => O(() => l() ? W : void 0), () => s.onKeyDown, () => O(() => u() ? void 0 : G)), k = d(() => O(() => l() ? U : void 0), () => s.onKeyUp, () => O(() => u() ? void 0 : K)), A = S(() => u() ? l() ? "true" : "false" : l() ? "true" : void 0), j = S(() => i.open() ? "true" : "false"), N = t(e, () => v(), (e) => (() => {
|
|
81
|
+
var t = p(B);
|
|
82
|
+
return _(t, e, !1), g(), t;
|
|
83
|
+
})());
|
|
84
|
+
return f(N, h({
|
|
85
|
+
ref: [s.ref],
|
|
86
|
+
get class() {
|
|
87
|
+
return y();
|
|
88
|
+
},
|
|
89
|
+
get style() {
|
|
90
|
+
return b();
|
|
91
|
+
},
|
|
92
|
+
get type() {
|
|
93
|
+
return u() ? "button" : void 0;
|
|
94
|
+
},
|
|
95
|
+
get role() {
|
|
96
|
+
return u() ? void 0 : "button";
|
|
97
|
+
},
|
|
98
|
+
get tabIndex() {
|
|
99
|
+
return u() ? void 0 : 0;
|
|
100
|
+
},
|
|
101
|
+
get "aria-controls"() {
|
|
102
|
+
return m(() => !!i.open())() ? i.panelId() : void 0;
|
|
103
|
+
},
|
|
104
|
+
get "aria-disabled"() {
|
|
105
|
+
return A();
|
|
106
|
+
},
|
|
107
|
+
get "aria-expanded"() {
|
|
108
|
+
return j();
|
|
109
|
+
},
|
|
110
|
+
onClick: C,
|
|
111
|
+
onKeyDown: D,
|
|
112
|
+
onKeyUp: k,
|
|
113
|
+
onMouseDown: w,
|
|
114
|
+
onPointerDown: T
|
|
115
|
+
}, x, c));
|
|
116
|
+
}
|
|
117
|
+
function H(e) {
|
|
118
|
+
e.preventDefault(), e.preventBaseUIHandler();
|
|
119
|
+
}
|
|
120
|
+
function U(e) {
|
|
121
|
+
e.preventBaseUIHandler();
|
|
122
|
+
}
|
|
123
|
+
function W(e) {
|
|
124
|
+
e.key !== "Tab" && e.preventDefault(), e.preventBaseUIHandler();
|
|
125
|
+
}
|
|
126
|
+
function G(e) {
|
|
127
|
+
if (e.target !== e.currentTarget) return;
|
|
128
|
+
let t = e.currentTarget.tagName === "A" && !!e.currentTarget.href;
|
|
129
|
+
if (t || e.key !== "Enter" && e.key !== " ") {
|
|
130
|
+
t && e.key === " " && e.preventDefault();
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
e.defaultPrevented || (e.preventDefault(), e.key === "Enter" && (e.preventBaseUIHandler(), q(e.currentTarget, e)));
|
|
134
|
+
}
|
|
135
|
+
function K(e) {
|
|
136
|
+
e.target === e.currentTarget && !e.defaultPrevented && e.key === " " && (e.preventBaseUIHandler(), q(e.currentTarget, e));
|
|
137
|
+
}
|
|
138
|
+
function q(e, t) {
|
|
139
|
+
let n = e.ownerDocument.defaultView;
|
|
140
|
+
if (!n) return;
|
|
141
|
+
let r = n.PointerEvent ?? n.MouseEvent;
|
|
142
|
+
e.dispatchEvent(new r("click", {
|
|
143
|
+
bubbles: !0,
|
|
144
|
+
cancelable: !0,
|
|
145
|
+
composed: !0,
|
|
146
|
+
detail: 0,
|
|
147
|
+
shiftKey: t.shiftKey,
|
|
148
|
+
ctrlKey: t.ctrlKey,
|
|
149
|
+
altKey: t.altKey,
|
|
150
|
+
metaKey: t.metaKey
|
|
151
|
+
}));
|
|
152
|
+
}
|
|
153
|
+
//#endregion
|
|
154
|
+
//#region src/collapsible/panel/CollapsiblePanel.tsx
|
|
155
|
+
var J = /* @__PURE__ */ v("<div>"), Y = "--collapsible-panel-height", X = "--collapsible-panel-width";
|
|
156
|
+
function Z(e) {
|
|
157
|
+
let r = M(), s = e, l = e, [u, d] = C(), m = S(() => s.id || void 0), v = S(() => m() ?? r.defaultPanelId), b = S(() => s.hiddenUntilFound ?? !1), w = S(() => s.keepMounted ?? !1), T = E(l, "render", "class", "hiddenUntilFound", "id", "keepMounted", "ref", "style"), O = c({
|
|
158
|
+
element: u,
|
|
159
|
+
hiddenUntilFound: b,
|
|
160
|
+
keepMounted: w,
|
|
161
|
+
mounted: r.mounted,
|
|
162
|
+
open: r.open,
|
|
163
|
+
requestBeforeMatchOpen: (e, t) => r.requestOpenChange(!0, e, i, t),
|
|
164
|
+
setMounted: r.setMounted,
|
|
165
|
+
transitionStatus: r.transitionStatus
|
|
166
|
+
}), k = S(() => ({
|
|
167
|
+
...r.state(),
|
|
168
|
+
transitionStatus: O.panelTransitionStatus()
|
|
169
|
+
})), A = S(() => O.shouldRender() ? a(e.class, k()) : void 0), j = S(() => Q(O.dimensions(), O.shouldRender() ? o(e.style, k()) : void 0, O.shouldPreventOpenAnimation())), N = S(() => {
|
|
170
|
+
let e = n(k(), I);
|
|
171
|
+
return O.shouldPersistHiddenTransitionStyles() && (e["data-starting-style"] = ""), e;
|
|
172
|
+
}), P = S(() => O.hidden() ? !b() || "until-found" : void 0);
|
|
173
|
+
x(() => m(), (e) => (r.setPanelIdState((t) => e ?? (t === null ? void 0 : t)), () => {
|
|
174
|
+
r.setPanelIdState((t) => t === e ? null : t);
|
|
175
|
+
})), x(() => ({
|
|
176
|
+
hiddenUntilFound: b(),
|
|
177
|
+
keepMounted: s.keepMounted
|
|
178
|
+
}), (e) => {
|
|
179
|
+
e.hiddenUntilFound && e.keepMounted;
|
|
180
|
+
}), D(() => d(void 0));
|
|
181
|
+
let F = t(e, () => k(), (e) => (() => {
|
|
182
|
+
var t = p(J);
|
|
183
|
+
return _(t, e, !1), g(), t;
|
|
184
|
+
})());
|
|
185
|
+
return f(y, {
|
|
186
|
+
get when() {
|
|
187
|
+
return O.shouldRender();
|
|
188
|
+
},
|
|
189
|
+
get children() {
|
|
190
|
+
return f(F, h({
|
|
191
|
+
ref: [s.ref, (e) => d(e)],
|
|
192
|
+
get id() {
|
|
193
|
+
return v();
|
|
194
|
+
},
|
|
195
|
+
get class() {
|
|
196
|
+
return A();
|
|
197
|
+
},
|
|
198
|
+
get style() {
|
|
199
|
+
return j();
|
|
200
|
+
},
|
|
201
|
+
get hidden() {
|
|
202
|
+
return P();
|
|
203
|
+
}
|
|
204
|
+
}, N, T));
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
function Q(e, t, n) {
|
|
209
|
+
let r = e.height === void 0 ? "auto" : `${e.height}px`, i = e.width === void 0 ? "auto" : `${e.width}px`;
|
|
210
|
+
return typeof t == "string" ? [
|
|
211
|
+
`${Y}:${r}`,
|
|
212
|
+
`${X}:${i}`,
|
|
213
|
+
t,
|
|
214
|
+
n ? "animation-name:none" : ""
|
|
215
|
+
].filter(Boolean).join(";") : {
|
|
216
|
+
[Y]: r,
|
|
217
|
+
[X]: i,
|
|
218
|
+
...t,
|
|
219
|
+
...n ? { "animation-name": "none" } : {}
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
//#endregion
|
|
223
|
+
//#region src/collapsible/index.parts.ts
|
|
224
|
+
var $ = /* @__PURE__ */ e({
|
|
225
|
+
Panel: () => Z,
|
|
226
|
+
Root: () => z,
|
|
227
|
+
Trigger: () => V
|
|
228
|
+
});
|
|
229
|
+
//#endregion
|
|
230
|
+
export { $ as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { n as e, t } from "../combobox-6DhOdzit.js";
|
|
2
|
+
export { t as Combobox, e as createComboboxItems };
|
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { t } from "./useRender-CxZ8PI-g.js";
|
|
3
|
+
import { getStateAttributesProps as n } from "./internals/getStateAttributesProps.js";
|
|
4
|
+
import { E as r, S as i, b as a, n as o, w as s } from "./reasons-Co5CzjKq.js";
|
|
5
|
+
import { n as c, t as l } from "./resolveStyle-XcgAuaKR.js";
|
|
6
|
+
import { createChangeEventDetails as u } from "./internals/createBaseUIEventDetails.js";
|
|
7
|
+
import { transitionStatusMapping as d } from "./internals/stateAttributesMapping.js";
|
|
8
|
+
import { composeEventHandlers as f } from "./internals/composeEventHandlers.js";
|
|
9
|
+
import { t as p } from "./runOnceAnimationsFinish-CFADb4CN.js";
|
|
10
|
+
import { A as m, C as h, D as g, E as _, F as v, M as y, N as b, O as x, P as S, S as C, T as w, _ as T, a as E, b as D, c as O, d as k, f as A, g as j, h as ee, i as te, j as ne, k as M, l as re, m as ie, n as ae, o as oe, p as se, r as ce, s as le, t as ue, u as de, v as fe, w as pe, x as me, y as he } from "./useFilteredItems-B7z2CGMV.js";
|
|
11
|
+
import { t as ge } from "./createTransitionStatus-BL_cPSEA.js";
|
|
12
|
+
import { a as N, n as P, r as F, t as I } from "./buttonSemantics-paljfpOX.js";
|
|
13
|
+
import { n as L } from "./DirectionContext-BwMabICS.js";
|
|
14
|
+
import { fieldStateAttributesMapping as _e } from "./internals/field-constants.js";
|
|
15
|
+
import { a as ve, i as ye, n as be, o as xe } from "./mergeStyleValue-DhTA9Nwe.js";
|
|
16
|
+
import { r as Se } from "./LabelableContext-CmQF-TX2.js";
|
|
17
|
+
import { createComponent as R, getNextElement as z, memo as Ce, mergeProps as B, runHydrationEvents as V, spread as H, template as U } from "@solidjs/web";
|
|
18
|
+
import { Show as we, createContext as Te, createEffect as W, createMemo as G, createSignal as K, flush as Ee, omit as q, onCleanup as J, untrack as Y, useContext as De } from "solid-js";
|
|
19
|
+
//#region src/combobox/root/ComboboxRoot.tsx
|
|
20
|
+
function Oe(e) {
|
|
21
|
+
let t = e, n = q(t, "multiple", "value", "defaultValue", "onValueChange", "autoComplete", "items"), r = G(() => t.items && !Array.isArray(t.items) ? t.items : void 0);
|
|
22
|
+
return R(x, B({
|
|
23
|
+
get selectionMode() {
|
|
24
|
+
return t.multiple ? "multiple" : "single";
|
|
25
|
+
},
|
|
26
|
+
get selectedValue() {
|
|
27
|
+
return t.value;
|
|
28
|
+
},
|
|
29
|
+
get defaultSelectedValue() {
|
|
30
|
+
return t.defaultValue;
|
|
31
|
+
},
|
|
32
|
+
get onSelectedValueChange() {
|
|
33
|
+
return t.onValueChange;
|
|
34
|
+
},
|
|
35
|
+
get formAutoComplete() {
|
|
36
|
+
return t.autoComplete;
|
|
37
|
+
},
|
|
38
|
+
get items() {
|
|
39
|
+
return Ce(() => !!r())() ? r().data : t.items;
|
|
40
|
+
},
|
|
41
|
+
get itemCollection() {
|
|
42
|
+
return r();
|
|
43
|
+
}
|
|
44
|
+
}, n));
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/combobox/label/ComboboxLabel.tsx
|
|
48
|
+
var ke = /* @__PURE__ */ U("<div>");
|
|
49
|
+
function Ae(e) {
|
|
50
|
+
let r = M(), i = Se(), a = e, o = e, s = G(() => `${r.id()}-label`), u = G(() => r.field.state()), d = G(() => c(e.class, u())), p = G(() => l(e.style, u())), m = G(() => n(u(), _e)), h = q(o, "render", "class", "id", "onClick", "onPointerDown", "ref", "style");
|
|
51
|
+
function g(e) {
|
|
52
|
+
let t = e.composedPath()[0];
|
|
53
|
+
t instanceof Element && t.closest("button,input,select,textarea,a[href]") || (!e.defaultPrevented && e.detail > 1 && e.preventDefault(), (r.store.inputInsidePopup() ? r.triggerElement() : r.inputElement() ?? r.triggerElement())?.focus({ focusVisible: !0 }));
|
|
54
|
+
}
|
|
55
|
+
function _(e) {
|
|
56
|
+
e.preventDefault();
|
|
57
|
+
}
|
|
58
|
+
let v = f(() => a.onClick, () => g), y = f(() => a.onPointerDown, () => _);
|
|
59
|
+
W(s, (e) => {
|
|
60
|
+
r.store.setLabelId(e);
|
|
61
|
+
let t = i.registerLabelId(e);
|
|
62
|
+
return () => {
|
|
63
|
+
t(), Y(() => r.store.labelId()) === e && r.store.setLabelId(void 0);
|
|
64
|
+
};
|
|
65
|
+
});
|
|
66
|
+
let b = t(e, () => u(), (e) => (() => {
|
|
67
|
+
var t = z(ke);
|
|
68
|
+
return H(t, e, !1), V(), t;
|
|
69
|
+
})());
|
|
70
|
+
return R(b, B({
|
|
71
|
+
ref: [a.ref],
|
|
72
|
+
get id() {
|
|
73
|
+
return s();
|
|
74
|
+
},
|
|
75
|
+
get class() {
|
|
76
|
+
return d();
|
|
77
|
+
},
|
|
78
|
+
get style() {
|
|
79
|
+
return p();
|
|
80
|
+
},
|
|
81
|
+
onClick: v,
|
|
82
|
+
onPointerDown: y
|
|
83
|
+
}, m, h));
|
|
84
|
+
}
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region src/combobox/value/ComboboxValue.tsx
|
|
87
|
+
function je(e) {
|
|
88
|
+
let t = M();
|
|
89
|
+
return G(() => {
|
|
90
|
+
let n = e.children;
|
|
91
|
+
if (typeof n == "function") return be(n) ? Y(() => n()) : n(t.selectedValue());
|
|
92
|
+
if (n != null) return n;
|
|
93
|
+
if (!t.hasSelectedValue() && e.placeholder != null && (t.hasItemCollection() || !y(t.items()))) return e.placeholder;
|
|
94
|
+
let r = t.selectedValue();
|
|
95
|
+
return t.hasItemCollection() && r == null ? "" : t.multiple() && Array.isArray(r) ? b(r, t.items(), t.itemToStringLabel()) : S(r, t.items(), t.itemToStringLabel());
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region src/combobox/item-indicator/ComboboxItemIndicator.tsx
|
|
100
|
+
var Me = /* @__PURE__ */ U("<span>");
|
|
101
|
+
function Ne(e) {
|
|
102
|
+
let r = oe(), i = e, a = e, o = ge(r.selected), s = G(() => (i.keepMounted ?? !1) || o.mounted()), u = G(() => ({
|
|
103
|
+
selected: r.selected(),
|
|
104
|
+
transitionStatus: o.transitionStatus()
|
|
105
|
+
})), f = G(() => c(e.class, u())), m = G(() => l(e.style, u())), h = G(() => n(u(), d)), g = q(a, "render", "class", "keepMounted", "ref", "style"), _;
|
|
106
|
+
W(() => ({
|
|
107
|
+
selected: r.selected(),
|
|
108
|
+
status: o.transitionStatus(),
|
|
109
|
+
element: _
|
|
110
|
+
}), (e) => {
|
|
111
|
+
if (e.selected || e.status !== "ending" || !e.element) return;
|
|
112
|
+
let t = new AbortController();
|
|
113
|
+
return p(e.element, () => {
|
|
114
|
+
Y(r.selected) || o.setMounted(!1);
|
|
115
|
+
}, t.signal), () => t.abort();
|
|
116
|
+
});
|
|
117
|
+
let v = t(e, () => u(), (e) => (() => {
|
|
118
|
+
var t = z(Me);
|
|
119
|
+
return H(t, e, !1), V(), t;
|
|
120
|
+
})());
|
|
121
|
+
return R(we, {
|
|
122
|
+
get when() {
|
|
123
|
+
return s();
|
|
124
|
+
},
|
|
125
|
+
get children() {
|
|
126
|
+
return R(v, B({
|
|
127
|
+
ref: [((e) => _ = e), i.ref],
|
|
128
|
+
"aria-hidden": "true",
|
|
129
|
+
get class() {
|
|
130
|
+
return f();
|
|
131
|
+
},
|
|
132
|
+
get style() {
|
|
133
|
+
return m();
|
|
134
|
+
}
|
|
135
|
+
}, h, g, { get children() {
|
|
136
|
+
return e.children ?? "✔️";
|
|
137
|
+
} }));
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
//#endregion
|
|
142
|
+
//#region src/combobox/chips/ComboboxChips.tsx
|
|
143
|
+
var Pe = /* @__PURE__ */ U("<div>");
|
|
144
|
+
function Fe(e) {
|
|
145
|
+
let n = M(), r = e, i = e, [a, o] = K(void 0), s = new pe(), u = {}, d = G(() => c(e.class, u)), p = G(() => l(e.style, u)), m = q(i, "render", "class", "onMouseDown", "ref", "style"), h = f(() => r.onMouseDown, () => (e) => D(e, n, n.disabled(), n.readOnly()));
|
|
146
|
+
W(() => n.store.open(), (e) => {
|
|
147
|
+
e && o(void 0);
|
|
148
|
+
});
|
|
149
|
+
let g = null;
|
|
150
|
+
J(() => {
|
|
151
|
+
n.store.chipsContainerElement === g && (n.store.chipsContainerElement = null);
|
|
152
|
+
});
|
|
153
|
+
let _ = t(e, () => u, (e) => (() => {
|
|
154
|
+
var t = z(Pe);
|
|
155
|
+
return H(t, e, !1), V(), t;
|
|
156
|
+
})());
|
|
157
|
+
return R(w, {
|
|
158
|
+
value: {
|
|
159
|
+
highlightedChipIndex: a,
|
|
160
|
+
setHighlightedChipIndex: (e) => o(() => e),
|
|
161
|
+
chips: s
|
|
162
|
+
},
|
|
163
|
+
get children() {
|
|
164
|
+
return R(_, B({
|
|
165
|
+
ref: [((e) => {
|
|
166
|
+
g = e, n.store.chipsContainerElement = e;
|
|
167
|
+
}), r.ref],
|
|
168
|
+
get role() {
|
|
169
|
+
return n.hasSelectionChips() ? "toolbar" : void 0;
|
|
170
|
+
},
|
|
171
|
+
get class() {
|
|
172
|
+
return d();
|
|
173
|
+
},
|
|
174
|
+
get style() {
|
|
175
|
+
return p();
|
|
176
|
+
},
|
|
177
|
+
onMouseDown: h
|
|
178
|
+
}, m));
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
//#endregion
|
|
183
|
+
//#region src/combobox/chip/ComboboxChipContext.ts
|
|
184
|
+
var X = Symbol("ComboboxChipContext"), Z = Te(X);
|
|
185
|
+
function Q() {
|
|
186
|
+
let e = De(Z);
|
|
187
|
+
if (e === X) throw Error("Base UI: ComboboxChipContext is missing. ComboboxChip parts must be placed within <Combobox.Chip>.");
|
|
188
|
+
return e;
|
|
189
|
+
}
|
|
190
|
+
//#endregion
|
|
191
|
+
//#region src/combobox/chip/ComboboxChip.tsx
|
|
192
|
+
var Ie = /* @__PURE__ */ U("<div>");
|
|
193
|
+
function Le(e) {
|
|
194
|
+
let r = M(), o = _(), d = L(), p = e, m = e, g = Symbol("ComboboxChip"), [v, y] = K(null, { ownedWrite: !0 }), b = o.chips.register(g, v);
|
|
195
|
+
J(b);
|
|
196
|
+
let x = G(() => o.chips.indexOf(g)), S = G(() => ({ disabled: r.disabled() })), w = G(() => c(e.class, S())), T = G(() => l(e.style, S())), E = G(() => n(S())), D = q(m, "render", "class", "onKeyDown", "ref", "style");
|
|
197
|
+
function O(e) {
|
|
198
|
+
let t = x(), [n, c] = C(d()), l = r.selectedValue(), f = Array.isArray(l) ? l : [];
|
|
199
|
+
if (e.key === n) return e.preventDefault(), t > 0 ? t - 1 : void 0;
|
|
200
|
+
if (e.key === c) return e.preventDefault(), t < o.chips.size() - 1 ? t + 1 : void 0;
|
|
201
|
+
if (e.key === "Backspace" || e.key === "Delete") {
|
|
202
|
+
e.preventDefault(), e.stopPropagation();
|
|
203
|
+
let n = h(t, f.length);
|
|
204
|
+
return r.setIndices({
|
|
205
|
+
activeIndex: null,
|
|
206
|
+
selectedIndex: null,
|
|
207
|
+
type: a
|
|
208
|
+
}), r.setSelectedValue(f.filter((e, n) => n !== t), u(s, e)), n;
|
|
209
|
+
}
|
|
210
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
211
|
+
e.preventDefault(), e.stopPropagation();
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
if (e.key === "ArrowDown" || e.key === "ArrowUp") {
|
|
215
|
+
e.preventDefault(), e.stopPropagation(), r.setOpen(!0, u(i, e));
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
if (!(e.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey)) return t;
|
|
219
|
+
}
|
|
220
|
+
function k(e) {
|
|
221
|
+
if (r.disabled() || r.readOnly()) return;
|
|
222
|
+
let t = O(e);
|
|
223
|
+
o.setHighlightedChipIndex(t), Ee(), t === void 0 ? r.focusInput() : o.chips.elements()[t]?.focus();
|
|
224
|
+
}
|
|
225
|
+
let A = f(() => p.onKeyDown, () => k), j = t(e, () => S(), (e) => (() => {
|
|
226
|
+
var t = z(Ie);
|
|
227
|
+
return H(t, e, !1), V(), t;
|
|
228
|
+
})());
|
|
229
|
+
return R(Z, {
|
|
230
|
+
value: { index: x },
|
|
231
|
+
get children() {
|
|
232
|
+
return R(j, B({
|
|
233
|
+
ref: [((e) => {
|
|
234
|
+
y(e), o.chips.touch();
|
|
235
|
+
}), p.ref],
|
|
236
|
+
tabindex: -1,
|
|
237
|
+
get "aria-disabled"() {
|
|
238
|
+
return r.disabled() ? "true" : void 0;
|
|
239
|
+
},
|
|
240
|
+
get "aria-readonly"() {
|
|
241
|
+
return r.readOnly() ? "true" : void 0;
|
|
242
|
+
},
|
|
243
|
+
get class() {
|
|
244
|
+
return w();
|
|
245
|
+
},
|
|
246
|
+
get style() {
|
|
247
|
+
return T();
|
|
248
|
+
},
|
|
249
|
+
onKeyDown: A
|
|
250
|
+
}, E, D));
|
|
251
|
+
}
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
//#endregion
|
|
255
|
+
//#region src/combobox/chip-remove/ComboboxChipRemove.tsx
|
|
256
|
+
var Re = /* @__PURE__ */ U("<button>");
|
|
257
|
+
function ze(e) {
|
|
258
|
+
let i = M(), s = Q(), d = e, p = e, m = G(() => d.nativeButton ?? !0), h = G(() => i.disabled() || (d.disabled ?? !1)), g = G(() => ({ disabled: h() })), _ = G(() => c(e.class, g())), v = G(() => l(e.style, g())), y = G(() => n(g())), b = q(p, "render", "class", "disabled", "nativeButton", "onClick", "onKeyDown", "onKeyUp", "onMouseDown", "ref", "style");
|
|
259
|
+
function x(e) {
|
|
260
|
+
let t = i.store.activeIndex();
|
|
261
|
+
if (t == null) return;
|
|
262
|
+
let n = xe(i.itemValues(), e, i.comparator());
|
|
263
|
+
n !== -1 && t === n && i.setIndices({
|
|
264
|
+
activeIndex: null,
|
|
265
|
+
type: i.store.keyboardActive ? a : r
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
function S(e) {
|
|
269
|
+
let t = u(o, e), n = i.selectedValue(), r = Array.isArray(n) ? n : [], a = s.index();
|
|
270
|
+
return x(r[a]), i.setSelectedValue(r.filter((e, t) => t !== a), t), i.focusInput(), t;
|
|
271
|
+
}
|
|
272
|
+
function C(e) {
|
|
273
|
+
h() || i.readOnly() || S(e).isPropagationAllowed || e.stopPropagation();
|
|
274
|
+
}
|
|
275
|
+
function w(e) {
|
|
276
|
+
if (h() || i.readOnly() || e.key !== "Enter" && e.key !== " ") return;
|
|
277
|
+
let t = S(e);
|
|
278
|
+
e.preventDefault(), t.isPropagationAllowed || e.stopPropagation();
|
|
279
|
+
}
|
|
280
|
+
let T = f(() => Y(() => h() ? F : void 0), () => d.onClick, () => C), E = f(() => d.onKeyDown, () => w, () => Y(() => m() ? void 0 : I)), D = f(() => Y(() => h() ? N : void 0), () => d.onKeyUp, () => Y(() => m() ? void 0 : P)), O = f(() => d.onMouseDown, () => (e) => e.preventDefault()), k = t(e, () => g(), (e) => (() => {
|
|
281
|
+
var t = z(Re);
|
|
282
|
+
return H(t, e, !1), V(), t;
|
|
283
|
+
})());
|
|
284
|
+
return R(k, B({
|
|
285
|
+
ref: [d.ref],
|
|
286
|
+
get type() {
|
|
287
|
+
return m() ? "button" : void 0;
|
|
288
|
+
},
|
|
289
|
+
tabindex: -1,
|
|
290
|
+
get "aria-disabled"() {
|
|
291
|
+
return !m() && h() ? "true" : void 0;
|
|
292
|
+
},
|
|
293
|
+
get class() {
|
|
294
|
+
return _();
|
|
295
|
+
},
|
|
296
|
+
get style() {
|
|
297
|
+
return v();
|
|
298
|
+
},
|
|
299
|
+
onClick: T,
|
|
300
|
+
onKeyDown: E,
|
|
301
|
+
onKeyUp: D,
|
|
302
|
+
onMouseDown: O
|
|
303
|
+
}, y, b));
|
|
304
|
+
}
|
|
305
|
+
//#endregion
|
|
306
|
+
//#region src/combobox/root/utils/useFilter.ts
|
|
307
|
+
function Be(e, t) {
|
|
308
|
+
return (n, r) => n != null && e.contains(n, r, t);
|
|
309
|
+
}
|
|
310
|
+
function Ve(e, t, n) {
|
|
311
|
+
return (r, i) => {
|
|
312
|
+
if (r == null) return !1;
|
|
313
|
+
if (!i) return !0;
|
|
314
|
+
let a = n == null ? "" : v(n, t);
|
|
315
|
+
return a && a.length === i.length && e.contains(a, i) ? !0 : e.contains(r, i, t);
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
function He(e = {}) {
|
|
319
|
+
let t = () => typeof e == "function" ? e() : e;
|
|
320
|
+
function n() {
|
|
321
|
+
let { multiple: e, value: n, ...r } = t();
|
|
322
|
+
return m(r);
|
|
323
|
+
}
|
|
324
|
+
return {
|
|
325
|
+
contains(e, r, i) {
|
|
326
|
+
let { multiple: a = !1, value: o } = t(), s = n();
|
|
327
|
+
return a ? Be(s, i)(e, r) : Ve(s, i, o)(e, r);
|
|
328
|
+
},
|
|
329
|
+
startsWith(e, t, r) {
|
|
330
|
+
return n().startsWith(e, t, r);
|
|
331
|
+
},
|
|
332
|
+
endsWith(e, t, r) {
|
|
333
|
+
return n().endsWith(e, t, r);
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
//#endregion
|
|
338
|
+
//#region src/combobox/items/createItems.ts
|
|
339
|
+
function $(e, t) {
|
|
340
|
+
let n;
|
|
341
|
+
function r(r, i) {
|
|
342
|
+
if (!n) {
|
|
343
|
+
n = /* @__PURE__ */ new Map();
|
|
344
|
+
for (let r of ne(e)) {
|
|
345
|
+
if (r == null) continue;
|
|
346
|
+
let e = t.getValue(r);
|
|
347
|
+
n.has(e) || n.set(e, r);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
let a = n.get(r);
|
|
351
|
+
if (a !== void 0 || i === ve) return a;
|
|
352
|
+
for (let [e, t] of n) if (ye(e, r, i)) return t;
|
|
353
|
+
}
|
|
354
|
+
return {
|
|
355
|
+
data: e,
|
|
356
|
+
value: (e) => e == null ? e : t.getValue(e),
|
|
357
|
+
itemLabel: t.getLabel,
|
|
358
|
+
hasValue: (e, t) => r(e, t) !== void 0,
|
|
359
|
+
label(e, n, i) {
|
|
360
|
+
let a = r(e, n);
|
|
361
|
+
return a === void 0 ? v(e, i) : t.getLabel(a);
|
|
362
|
+
}
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
//#endregion
|
|
366
|
+
//#region src/combobox/index.parts.ts
|
|
367
|
+
var Ue = /* @__PURE__ */ e({
|
|
368
|
+
Arrow: () => re,
|
|
369
|
+
Backdrop: () => A,
|
|
370
|
+
Chip: () => Le,
|
|
371
|
+
ChipRemove: () => ze,
|
|
372
|
+
Chips: () => Fe,
|
|
373
|
+
Clear: () => T,
|
|
374
|
+
Collection: () => j,
|
|
375
|
+
Empty: () => ce,
|
|
376
|
+
Group: () => O,
|
|
377
|
+
GroupLabel: () => le,
|
|
378
|
+
Icon: () => fe,
|
|
379
|
+
Input: () => me,
|
|
380
|
+
InputGroup: () => he,
|
|
381
|
+
Item: () => E,
|
|
382
|
+
ItemIndicator: () => Ne,
|
|
383
|
+
Label: () => Ae,
|
|
384
|
+
List: () => ee,
|
|
385
|
+
Popup: () => de,
|
|
386
|
+
Portal: () => se,
|
|
387
|
+
Positioner: () => k,
|
|
388
|
+
Root: () => Oe,
|
|
389
|
+
Row: () => te,
|
|
390
|
+
Separator: () => ae,
|
|
391
|
+
Status: () => ie,
|
|
392
|
+
Trigger: () => g,
|
|
393
|
+
Value: () => je,
|
|
394
|
+
createItems: () => $,
|
|
395
|
+
useFilter: () => He,
|
|
396
|
+
useFilteredItems: () => ue
|
|
397
|
+
});
|
|
398
|
+
//#endregion
|
|
399
|
+
export { $ as n, Ue as t };
|
|
@@ -170,7 +170,11 @@ function x(t) {
|
|
|
170
170
|
return e(o) ? o : null;
|
|
171
171
|
}
|
|
172
172
|
function Ce(e, t) {
|
|
173
|
-
|
|
173
|
+
let n = (n) => {
|
|
174
|
+
let i = o(e, t, n), a = r(i);
|
|
175
|
+
return i === a.body || i === a.documentElement ? null : i;
|
|
176
|
+
};
|
|
177
|
+
return j() && !M() ? n("horizontal") : M() && !j() ? n("vertical") : n("vertical") ?? n("horizontal");
|
|
174
178
|
}
|
|
175
179
|
function we(e, n, i) {
|
|
176
180
|
W = !1;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../context-menu-
|
|
1
|
+
import { t as e } from "../context-menu-CplDpqmi.js";
|
|
2
2
|
export { e as ContextMenu };
|