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,217 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { getStateAttributesProps as t } from "./internals/getStateAttributesProps.js";
|
|
3
|
-
import { P as n, t as r } from "./reasons-Co5CzjKq.js";
|
|
4
|
-
import { n as i, t as a } from "./resolveStyle-XcgAuaKR.js";
|
|
5
|
-
import { createChangeEventDetails as o } from "./internals/createBaseUIEventDetails.js";
|
|
6
|
-
import { composeEventHandlers as s } from "./internals/composeEventHandlers.js";
|
|
7
|
-
import { n as c, r as l } from "./dom-BEAeQ9Eb.js";
|
|
8
|
-
import { i as u } from "./popupStateMapping-C9eZl19i.js";
|
|
9
|
-
import { C as d, E as f, S as p, T as m, a as h, b as g, c as _, d as v, f as y, h as b, i as x, l as S, m as C, n as w, o as T, p as E, r as D, s as O, t as k, v as A, x as j, y as M } from "./MenuSubmenuTrigger-QZkQ0F2v.js";
|
|
10
|
-
import { t as N } from "./Separator-9DboD_Si.js";
|
|
11
|
-
import { Dynamic as P, createComponent as F, mergeProps as I } from "@solidjs/web";
|
|
12
|
-
import { createEffect as L, createMemo as R, createSignal as z, omit as B, onCleanup as V } from "solid-js";
|
|
13
|
-
//#region src/context-menu/root/ContextMenuRoot.tsx
|
|
14
|
-
function H(e) {
|
|
15
|
-
let [t, n] = z(U(), { ownedWrite: !0 });
|
|
16
|
-
return F(m, {
|
|
17
|
-
value: {
|
|
18
|
-
anchor: t,
|
|
19
|
-
setAnchor: n,
|
|
20
|
-
initialCursorPoint: { current: null },
|
|
21
|
-
allowOutsidePressDismissal: { current: !1 }
|
|
22
|
-
},
|
|
23
|
-
get children() {
|
|
24
|
-
return F(p, {
|
|
25
|
-
value: void 0,
|
|
26
|
-
get children() {
|
|
27
|
-
return F(j, {
|
|
28
|
-
get defaultOpen() {
|
|
29
|
-
return e.defaultOpen;
|
|
30
|
-
},
|
|
31
|
-
get loopFocus() {
|
|
32
|
-
return e.loopFocus;
|
|
33
|
-
},
|
|
34
|
-
get highlightItemOnHover() {
|
|
35
|
-
return e.highlightItemOnHover;
|
|
36
|
-
},
|
|
37
|
-
get onOpenChange() {
|
|
38
|
-
return e.onOpenChange;
|
|
39
|
-
},
|
|
40
|
-
get onOpenChangeComplete() {
|
|
41
|
-
return e.onOpenChangeComplete;
|
|
42
|
-
},
|
|
43
|
-
get open() {
|
|
44
|
-
return e.open;
|
|
45
|
-
},
|
|
46
|
-
get orientation() {
|
|
47
|
-
return e.orientation;
|
|
48
|
-
},
|
|
49
|
-
get disabled() {
|
|
50
|
-
return e.disabled;
|
|
51
|
-
},
|
|
52
|
-
get closeParentOnEsc() {
|
|
53
|
-
return e.closeParentOnEsc;
|
|
54
|
-
},
|
|
55
|
-
get actionsRef() {
|
|
56
|
-
return e.actionsRef;
|
|
57
|
-
},
|
|
58
|
-
get children() {
|
|
59
|
-
return e.children;
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
function U() {
|
|
68
|
-
return { getBoundingClientRect() {
|
|
69
|
-
return {
|
|
70
|
-
x: 0,
|
|
71
|
-
y: 0,
|
|
72
|
-
left: 0,
|
|
73
|
-
top: 0,
|
|
74
|
-
right: 0,
|
|
75
|
-
bottom: 0,
|
|
76
|
-
width: 0,
|
|
77
|
-
height: 0,
|
|
78
|
-
toJSON: () => ({})
|
|
79
|
-
};
|
|
80
|
-
} };
|
|
81
|
-
}
|
|
82
|
-
//#endregion
|
|
83
|
-
//#region src/context-menu/trigger/ContextMenuTrigger.tsx
|
|
84
|
-
var W = 500;
|
|
85
|
-
function G(e) {
|
|
86
|
-
let p = f(!1), m = d(), h = e, _ = e, [v, y] = z(null, { ownedWrite: !0 }), b = R(() => m.store.open()), x = R(() => m.store.disabled()), S = R(() => ({ open: b() })), C = R(() => i(e.class, S())), w = R(() => g({ "-webkit-touch-callout": "none" }, a(e.style, S()))), T = R(() => t(S(), u)), E = B(_, "as", "class", "onContextMenu", "onTouchCancel", "onTouchEnd", "onTouchMove", "onTouchStart", "ref", "style"), D = null, O, k, A = !1, j;
|
|
87
|
-
function M(e, t, r) {
|
|
88
|
-
let i = v();
|
|
89
|
-
if (!i) return;
|
|
90
|
-
let a = K(i, e, t, r.type.startsWith("touch"));
|
|
91
|
-
p.initialCursorPoint.current = {
|
|
92
|
-
x: e,
|
|
93
|
-
y: t
|
|
94
|
-
}, p.setAnchor(a), m.store.setOpenMethod(r.type.startsWith("touch") ? "touch" : "mouse"), m.store.context.floatingRoot.update({
|
|
95
|
-
domReferenceElement: i,
|
|
96
|
-
referenceElement: i,
|
|
97
|
-
positionReference: a
|
|
98
|
-
}), A = !1, m.store.setOpen(!0, o(n, r)), clearTimeout(k), k = setTimeout(() => {
|
|
99
|
-
A = !0;
|
|
100
|
-
}, W);
|
|
101
|
-
}
|
|
102
|
-
function N(e) {
|
|
103
|
-
let t = v();
|
|
104
|
-
if (!t || x()) return;
|
|
105
|
-
m.store.allowMouseUpTrigger = !0, e.preventDefault(), e.stopPropagation(), M(e.clientX, e.clientY, e), j?.abort();
|
|
106
|
-
let n = new ((t.ownerDocument.defaultView?.AbortController) ?? AbortController)();
|
|
107
|
-
j = n, t.ownerDocument.addEventListener("mouseup", (e) => {
|
|
108
|
-
if (m.store.allowMouseUpTrigger = !1, !A) return;
|
|
109
|
-
clearTimeout(k), A = !1;
|
|
110
|
-
let t = l(e);
|
|
111
|
-
if (c(m.store.track().positionerElement, t)) return;
|
|
112
|
-
let n = m.store.rootNodeId();
|
|
113
|
-
n && t?.closest(`[data-rootownerid="${n}"]`) || m.store.setOpen(!1, o(r, e));
|
|
114
|
-
}, {
|
|
115
|
-
once: !0,
|
|
116
|
-
signal: n.signal
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
function H() {
|
|
120
|
-
clearTimeout(O), D = null;
|
|
121
|
-
}
|
|
122
|
-
function U(e) {
|
|
123
|
-
if (H(), m.store.allowMouseUpTrigger = !1, x() || e.touches.length !== 1) return;
|
|
124
|
-
e.stopPropagation();
|
|
125
|
-
let t = e.touches[0];
|
|
126
|
-
D = {
|
|
127
|
-
x: t.clientX,
|
|
128
|
-
y: t.clientY
|
|
129
|
-
}, O = setTimeout(() => {
|
|
130
|
-
D && !x() && M(D.x, D.y, e);
|
|
131
|
-
}, W);
|
|
132
|
-
}
|
|
133
|
-
function G(e) {
|
|
134
|
-
if (!D || e.touches.length !== 1) {
|
|
135
|
-
H();
|
|
136
|
-
return;
|
|
137
|
-
}
|
|
138
|
-
let t = e.touches[0];
|
|
139
|
-
(Math.abs(t.clientX - D.x) > 10 || Math.abs(t.clientY - D.y) > 10) && H();
|
|
140
|
-
}
|
|
141
|
-
let q = s(() => h.onContextMenu, () => N), J = s(() => h.onTouchStart, () => U), Y = s(() => h.onTouchMove, () => G), X = s(() => h.onTouchEnd, () => H), Z = s(() => h.onTouchCancel, () => H);
|
|
142
|
-
return L(() => ({
|
|
143
|
-
trigger: v(),
|
|
144
|
-
disabled: x(),
|
|
145
|
-
backdrop: m.backdropElement(),
|
|
146
|
-
internalBackdrop: m.internalBackdropElement()
|
|
147
|
-
}), (e) => {
|
|
148
|
-
if (!e.trigger || e.disabled) return;
|
|
149
|
-
let t = (t) => {
|
|
150
|
-
let n = l(t);
|
|
151
|
-
(c(e.trigger, n) || c(e.backdrop, n) || c(e.internalBackdrop, n)) && t.preventDefault();
|
|
152
|
-
};
|
|
153
|
-
return e.trigger.ownerDocument.addEventListener("contextmenu", t), () => e.trigger?.ownerDocument.removeEventListener("contextmenu", t);
|
|
154
|
-
}), V(() => {
|
|
155
|
-
H(), clearTimeout(k), j?.abort();
|
|
156
|
-
}), F(P, I({
|
|
157
|
-
get component() {
|
|
158
|
-
return e.as ?? "div";
|
|
159
|
-
},
|
|
160
|
-
ref: [((e) => y(e)), h.ref],
|
|
161
|
-
get class() {
|
|
162
|
-
return C();
|
|
163
|
-
},
|
|
164
|
-
get style() {
|
|
165
|
-
return w();
|
|
166
|
-
},
|
|
167
|
-
onContextMenu: q,
|
|
168
|
-
onTouchStart: J,
|
|
169
|
-
onTouchMove: Y,
|
|
170
|
-
onTouchEnd: X,
|
|
171
|
-
onTouchCancel: Z
|
|
172
|
-
}, T, E));
|
|
173
|
-
}
|
|
174
|
-
function K(e, t, n, r) {
|
|
175
|
-
return {
|
|
176
|
-
contextElement: e,
|
|
177
|
-
getBoundingClientRect() {
|
|
178
|
-
let e = r ? 10 : 0;
|
|
179
|
-
return {
|
|
180
|
-
x: t,
|
|
181
|
-
y: n,
|
|
182
|
-
left: t,
|
|
183
|
-
top: n,
|
|
184
|
-
right: t + e,
|
|
185
|
-
bottom: n + e,
|
|
186
|
-
width: e,
|
|
187
|
-
height: e,
|
|
188
|
-
toJSON: () => ({})
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
|
-
}
|
|
193
|
-
//#endregion
|
|
194
|
-
//#region src/context-menu/index.parts.ts
|
|
195
|
-
var q = /* @__PURE__ */ e({
|
|
196
|
-
Arrow: () => E,
|
|
197
|
-
Backdrop: () => M,
|
|
198
|
-
CheckboxItem: () => _,
|
|
199
|
-
CheckboxItemIndicator: () => O,
|
|
200
|
-
Group: () => y,
|
|
201
|
-
GroupLabel: () => v,
|
|
202
|
-
Item: () => S,
|
|
203
|
-
LinkItem: () => T,
|
|
204
|
-
Popup: () => C,
|
|
205
|
-
Portal: () => A,
|
|
206
|
-
Positioner: () => b,
|
|
207
|
-
RadioGroup: () => h,
|
|
208
|
-
RadioItem: () => x,
|
|
209
|
-
RadioItemIndicator: () => D,
|
|
210
|
-
Root: () => H,
|
|
211
|
-
Separator: () => N,
|
|
212
|
-
SubmenuRoot: () => w,
|
|
213
|
-
SubmenuTrigger: () => k,
|
|
214
|
-
Trigger: () => G
|
|
215
|
-
});
|
|
216
|
-
//#endregion
|
|
217
|
-
export { q as t };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { M as e } from "./reasons-Co5CzjKq.js";
|
|
2
|
-
import { createChangeEventDetails as t } from "./internals/createBaseUIEventDetails.js";
|
|
3
|
-
import { n, p as r, t as i } from "./dom-BEAeQ9Eb.js";
|
|
4
|
-
import { onCleanup as a } from "solid-js";
|
|
5
|
-
//#region src/internals/overlay/createFocusInteraction.ts
|
|
6
|
-
function o(e) {
|
|
7
|
-
try {
|
|
8
|
-
return e.matches(":focus-visible");
|
|
9
|
-
} catch {
|
|
10
|
-
return !0;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
function s(s) {
|
|
14
|
-
let c, l, u = !1, d = null, f = s.context.context.events.on("openchange", (e) => {
|
|
15
|
-
!e.open && (e.reason === "escape-key" || e.reason === "trigger-press") && (u = !0, d = s.context.state.domReferenceElement), clearTimeout(c);
|
|
16
|
-
});
|
|
17
|
-
a(() => {
|
|
18
|
-
f(), clearTimeout(c), clearTimeout(l);
|
|
19
|
-
});
|
|
20
|
-
let p = () => s.enabled?.() ?? !0;
|
|
21
|
-
return {
|
|
22
|
-
onFocus(n) {
|
|
23
|
-
if (!p()) return;
|
|
24
|
-
let r = n.currentTarget;
|
|
25
|
-
if (u && d !== r && (u = !1, d = null), u && d === r || (s.visibleOnly?.() ?? !0) && !o(r)) return;
|
|
26
|
-
clearTimeout(l);
|
|
27
|
-
let i = s.context.state.open ? 0 : s.delay?.() ?? 0;
|
|
28
|
-
clearTimeout(c), c = setTimeout(() => {
|
|
29
|
-
s.context.setOpen(!0, t(e, n, r));
|
|
30
|
-
}, i);
|
|
31
|
-
},
|
|
32
|
-
onBlur(a) {
|
|
33
|
-
clearTimeout(c), clearTimeout(l), d === a.currentTarget && (u = !1, d = null), l = setTimeout(() => {
|
|
34
|
-
let o = r(a.currentTarget), c = i(o), l = s.context.state.floatingElement;
|
|
35
|
-
if (n(l, c)) return;
|
|
36
|
-
let f = Array.from(s.context.context.triggerElements.elements()).find((e) => n(e, c));
|
|
37
|
-
if (f && !f.hasAttribute("data-trigger-disabled")) {
|
|
38
|
-
u = !1, d = null, s.context.setOpen(!0, t(e, a, f));
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
s.context.setOpen(!1, t(e, a));
|
|
42
|
-
});
|
|
43
|
-
},
|
|
44
|
-
onPointerLeave() {
|
|
45
|
-
u = !1, d = null;
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
//#endregion
|
|
50
|
-
export { s as t };
|