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,6 +1,6 @@
|
|
|
1
1
|
import { d as e } from "./reasons-Co5CzjKq.js";
|
|
2
2
|
import { createChangeEventDetails as t } from "./internals/createBaseUIEventDetails.js";
|
|
3
|
-
import { i as n } from "./PopupStore-
|
|
3
|
+
import { i as n } from "./PopupStore-Du0O57fL.js";
|
|
4
4
|
import { isServer as r } from "@solidjs/web";
|
|
5
5
|
import { createEffect as i, createSignal as a } from "solid-js";
|
|
6
6
|
//#region src/internals/overlay/PopupHandle.ts
|
|
@@ -1,47 +1,54 @@
|
|
|
1
1
|
import { P as e, T as t, l as n, w as r } from "./reasons-Co5CzjKq.js";
|
|
2
2
|
import { createChangeEventDetails as i } from "./internals/createBaseUIEventDetails.js";
|
|
3
|
-
import { t as a } from "./runOnceAnimationsFinish-
|
|
3
|
+
import { t as a } from "./runOnceAnimationsFinish-CFADb4CN.js";
|
|
4
4
|
import { a as o, c as s, m as c, n as l, p as u, r as d, s as f, u as p } from "./dom-BEAeQ9Eb.js";
|
|
5
5
|
import { l as m, o as h } from "./FloatingTree-23B7KKPD.js";
|
|
6
|
-
import { t as g } from "./createTransitionStatus-
|
|
7
|
-
import { _ } from "./popupStateMapping-
|
|
8
|
-
import { createEffect as v,
|
|
6
|
+
import { t as g } from "./createTransitionStatus-BL_cPSEA.js";
|
|
7
|
+
import { _ } from "./popupStateMapping-C6jQ_LKo.js";
|
|
8
|
+
import { createEffect as v, onCleanup as y, untrack as b } from "solid-js";
|
|
9
9
|
//#region src/internals/overlay/createDismiss.ts
|
|
10
|
-
function
|
|
10
|
+
function x(e) {
|
|
11
11
|
return {
|
|
12
12
|
escapeKey: typeof e == "boolean" ? e : e?.escapeKey ?? !1,
|
|
13
13
|
outsidePress: typeof e == "boolean" ? e : e?.outsidePress ?? !0
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function S(e, t) {
|
|
17
17
|
if (!s(t)) return !1;
|
|
18
18
|
let n = c(t).getComputedStyle(t), r = t.matches("html,body"), i = (r || /auto|scroll/.test(n.overflowX)) && t.clientWidth > 0 && t.scrollWidth > t.clientWidth;
|
|
19
19
|
return (r || /auto|scroll/.test(n.overflowY)) && t.clientHeight > 0 && t.scrollHeight > t.clientHeight && (n.direction === "rtl" ? e.offsetX <= t.offsetWidth - t.clientWidth : e.offsetX > t.clientWidth) || i && e.offsetY > t.clientHeight;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
22
|
-
let a = !1, s,
|
|
21
|
+
function C(r) {
|
|
22
|
+
let a = !1, s, m = "", g = !1, _ = !1, b = !1, C = !1, w, T, E = null, D = /* @__PURE__ */ new WeakSet();
|
|
23
|
+
y(r.context.context.events.on("openchange", (e) => {
|
|
24
|
+
e.open || (C = !1);
|
|
25
|
+
}));
|
|
26
|
+
let O = () => r.enabled?.() ?? !0, k = () => r.context.track().open, A = () => x(r.bubbles?.()), j = () => r.outsidePress?.() ?? !0, M = () => j() !== !1, N = () => {
|
|
23
27
|
let e = r.outsidePressEvent?.() ?? "sloppy";
|
|
24
|
-
return typeof e == "string" ? e :
|
|
25
|
-
},
|
|
28
|
+
return typeof e == "string" ? e : m === "touch" ? e.touch : e.mouse;
|
|
29
|
+
}, P = () => r.tree?.(), F = () => r.context.context.nodeId, I = (e = !0) => P() ? h(P().nodes, F(), e) : [], L = (e) => I().some((t) => t.context?.state.open && t.context.context.data[e] !== !0), R = (e) => f(e, r.context.state.floatingElement) || f(e, r.context.state.domReferenceElement) || (r.insideElements?.() ?? []).some((t) => f(e, t)), z = (e) => R(e) || I(!1).some((t) => {
|
|
26
30
|
if (f(e, t.context?.state.floatingElement) || t.context?.context.triggerElements.hasMatchingElement((t) => f(e, t))) return !0;
|
|
27
31
|
let n = t.context?.context.data.insideElements;
|
|
28
32
|
return typeof n == "function" && n().some((t) => f(e, t));
|
|
29
|
-
}),
|
|
30
|
-
if (e.baseUIHandlerPrevented ||
|
|
31
|
-
|
|
33
|
+
}), B = (e) => {
|
|
34
|
+
if (e.baseUIHandlerPrevented || D.has(e) || !k() || !O() || !(r.escapeKey?.() ?? !0) || e.key !== "Escape" || a || e.isComposing || e.keyCode === 229 || !A().escapeKey && L("__escapeKeyBubbles")) return;
|
|
35
|
+
D.add(e);
|
|
32
36
|
let t = i(n, e);
|
|
33
|
-
r.context.setOpen(!1, t), t.isCanceled || e.preventDefault(), !
|
|
37
|
+
r.context.setOpen(!1, t), t.isCanceled || e.preventDefault(), !A().escapeKey && !t.isPropagationAllowed && e.stopPropagation();
|
|
34
38
|
};
|
|
35
39
|
return v(() => ({
|
|
36
|
-
open:
|
|
37
|
-
enabled:
|
|
40
|
+
open: k(),
|
|
41
|
+
enabled: O(),
|
|
38
42
|
floating: r.context.track().floatingElement,
|
|
39
43
|
escapeKey: r.escapeKey?.() ?? !0,
|
|
40
|
-
outsidePressEnabled:
|
|
41
|
-
escapeBubbles:
|
|
42
|
-
outsideBubbles:
|
|
44
|
+
outsidePressEnabled: M(),
|
|
45
|
+
escapeBubbles: A().escapeKey,
|
|
46
|
+
outsideBubbles: A().outsidePress
|
|
43
47
|
}), (e) => {
|
|
44
|
-
if (!e.open || !e.enabled)
|
|
48
|
+
if (!e.open || !e.enabled) {
|
|
49
|
+
e.open || (C = !1);
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
45
52
|
r.context.context.data.__escapeKeyBubbles = e.escapeBubbles, r.context.context.data.__outsidePressBubbles = e.outsideBubbles;
|
|
46
53
|
let n = u(e.floating), f = () => {
|
|
47
54
|
clearTimeout(s), a = !0;
|
|
@@ -50,100 +57,113 @@ function S(r) {
|
|
|
50
57
|
a = !1;
|
|
51
58
|
}, typeof CSS < "u" && CSS.supports?.("-webkit-backdrop-filter:none") ? 5 : 0);
|
|
52
59
|
}, v = () => {
|
|
53
|
-
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
|
|
60
|
+
g = !1, _ = !1;
|
|
61
|
+
}, y = () => {
|
|
62
|
+
b = !0, clearTimeout(w), w = setTimeout(() => {
|
|
63
|
+
b = !1;
|
|
57
64
|
});
|
|
58
|
-
},
|
|
59
|
-
let t =
|
|
65
|
+
}, x = (e) => {
|
|
66
|
+
let t = j();
|
|
60
67
|
return typeof t != "function" || t(e);
|
|
61
|
-
},
|
|
62
|
-
if (
|
|
63
|
-
a.type !== "click" && !
|
|
68
|
+
}, D = (a) => {
|
|
69
|
+
if (N() === "intentional" && a.type !== "click" || N() === "sloppy" && a.type === "click") {
|
|
70
|
+
a.type !== "click" && !R(a) && (clearTimeout(w), b = !1);
|
|
64
71
|
return;
|
|
65
72
|
}
|
|
66
|
-
let s = d(a),
|
|
67
|
-
if (o(s) && (
|
|
68
|
-
if (
|
|
69
|
-
|
|
70
|
-
return;
|
|
73
|
+
let s = d(a), u = r.context.context.triggerElements;
|
|
74
|
+
if (o(s) && (u.hasElement(s) || u.hasMatchingElement((e) => l(e, s))) || !("touches" in a) && S(a, s) || z(a)) return;
|
|
75
|
+
if (N() === "intentional") {
|
|
76
|
+
let t = a;
|
|
77
|
+
if (!(t.detail === 0 || t.pointerType === "" && t.isTrusted || /android/i.test(c(e.floating).navigator.userAgent) && t.pointerType && t.buttons === 1) && !C) return;
|
|
78
|
+
if (b) {
|
|
79
|
+
clearTimeout(w), b = !1;
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
71
82
|
}
|
|
72
|
-
if (!
|
|
73
|
-
let
|
|
74
|
-
if (
|
|
75
|
-
let e =
|
|
83
|
+
if (!x(a) || L("__outsidePressBubbles")) return;
|
|
84
|
+
let f = o(s) ? s : null, m = f?.getRootNode(), h = p(m) ? m : n, g = Array.from(h.querySelectorAll("[data-base-ui-inert]"));
|
|
85
|
+
if (f && g.length && !f.matches("html,body") && !l(f, e.floating) && g.every((e) => !l(f.getRootNode() === e.getRootNode() ? f : null, e))) {
|
|
86
|
+
let e = f;
|
|
76
87
|
for (; e.parentElement && !e.parentElement.matches("html,body");) e = e.parentElement;
|
|
77
|
-
if (
|
|
88
|
+
if (g.every((t) => !l(e, t))) return;
|
|
78
89
|
}
|
|
79
90
|
r.context.setOpen(!1, i(t, a));
|
|
80
|
-
},
|
|
91
|
+
}, O = (e, t) => {
|
|
81
92
|
d(e)?.addEventListener(e.type, () => t(e), { once: !0 });
|
|
82
|
-
},
|
|
83
|
-
if (e.type === "pointerdown" && (
|
|
84
|
-
if (e.type !== "click" &&
|
|
85
|
-
|
|
86
|
-
|
|
93
|
+
}, k = (e) => {
|
|
94
|
+
if (e.type === "pointerdown" && (e.button === 0 && (C = !0), m = e.pointerType), !(e.type === "mousedown" && E && !E.dismissOnMouseDown)) {
|
|
95
|
+
if (e.type !== "click" && z(e) && e.button === 0) {
|
|
96
|
+
g = !0, _ = !1, O(e, (e) => {
|
|
97
|
+
_ = e.defaultPrevented;
|
|
87
98
|
});
|
|
88
99
|
return;
|
|
89
100
|
}
|
|
90
|
-
|
|
91
|
-
(e.type === "pointerdown" &&
|
|
101
|
+
O(e, (e) => {
|
|
102
|
+
(e.type === "pointerdown" && N() === "sloppy" && e.pointerType !== "touch" || e.type !== "pointerdown") && D(e);
|
|
92
103
|
});
|
|
93
104
|
}
|
|
94
|
-
},
|
|
95
|
-
if (!
|
|
96
|
-
let t =
|
|
97
|
-
if (v(),
|
|
105
|
+
}, A = (e) => {
|
|
106
|
+
if (e.type === "pointercancel" && (C = !1), !g) return;
|
|
107
|
+
let t = _;
|
|
108
|
+
if (v(), N() === "intentional") {
|
|
98
109
|
if (e.type === "pointercancel") {
|
|
99
|
-
t &&
|
|
110
|
+
t && y();
|
|
100
111
|
return;
|
|
101
112
|
}
|
|
102
|
-
if (!
|
|
113
|
+
if (!z(e)) {
|
|
103
114
|
if (t) {
|
|
104
|
-
|
|
115
|
+
y();
|
|
105
116
|
return;
|
|
106
117
|
}
|
|
107
|
-
|
|
118
|
+
x(e) && (b = !0);
|
|
108
119
|
}
|
|
109
120
|
}
|
|
110
|
-
},
|
|
111
|
-
if (
|
|
121
|
+
}, M = (e) => {
|
|
122
|
+
if (m = "touch", N() !== "sloppy" || R(e)) return;
|
|
112
123
|
let t = e.touches[0];
|
|
113
|
-
t && (
|
|
124
|
+
t && (E = {
|
|
114
125
|
startX: t.clientX,
|
|
115
126
|
startY: t.clientY,
|
|
116
127
|
dismissOnTouchEnd: !1,
|
|
117
128
|
dismissOnMouseDown: !0
|
|
118
|
-
}, clearTimeout(
|
|
119
|
-
|
|
129
|
+
}, clearTimeout(T), T = setTimeout(() => {
|
|
130
|
+
E && (E.dismissOnTouchEnd = !1, E.dismissOnMouseDown = !1);
|
|
120
131
|
}, 1e3));
|
|
121
|
-
},
|
|
122
|
-
if (
|
|
132
|
+
}, P = (e) => {
|
|
133
|
+
if (N() !== "sloppy" || !E || R(e)) return;
|
|
123
134
|
let t = e.touches[0];
|
|
124
135
|
if (!t) return;
|
|
125
|
-
let n = Math.hypot(t.clientX -
|
|
126
|
-
n > 5 && (
|
|
127
|
-
},
|
|
128
|
-
|
|
136
|
+
let n = Math.hypot(t.clientX - E.startX, t.clientY - E.startY);
|
|
137
|
+
n > 5 && (E.dismissOnTouchEnd = !0), n > 10 && (D(e), clearTimeout(T), E = null);
|
|
138
|
+
}, F = (e) => {
|
|
139
|
+
N() === "sloppy" && E && !R(e) && (E.dismissOnTouchEnd && D(e), clearTimeout(T), E = null);
|
|
129
140
|
};
|
|
130
|
-
return e.escapeKey && (n.addEventListener("keydown",
|
|
131
|
-
|
|
141
|
+
return e.escapeKey && (n.addEventListener("keydown", B), n.addEventListener("compositionstart", f), n.addEventListener("compositionend", h)), e.outsidePressEnabled && (n.addEventListener("click", k, !0), n.addEventListener("pointerdown", k, !0), n.addEventListener("pointerup", A, !0), n.addEventListener("pointercancel", A, !0), n.addEventListener("mousedown", k, !0), n.addEventListener("mouseup", A, !0), n.addEventListener("touchstart", M, {
|
|
142
|
+
capture: !0,
|
|
143
|
+
passive: !0
|
|
144
|
+
}), n.addEventListener("touchmove", P, {
|
|
145
|
+
capture: !0,
|
|
146
|
+
passive: !0
|
|
147
|
+
}), n.addEventListener("touchend", F, {
|
|
148
|
+
capture: !0,
|
|
149
|
+
passive: !0
|
|
150
|
+
})), () => {
|
|
151
|
+
n.removeEventListener("keydown", B), n.removeEventListener("compositionstart", f), n.removeEventListener("compositionend", h), n.removeEventListener("click", k, !0), n.removeEventListener("pointerdown", k, !0), n.removeEventListener("pointerup", A, !0), n.removeEventListener("pointercancel", A, !0), n.removeEventListener("mousedown", k, !0), n.removeEventListener("mouseup", A, !0), n.removeEventListener("touchstart", M, !0), n.removeEventListener("touchmove", P, !0), n.removeEventListener("touchend", F, !0), clearTimeout(s), clearTimeout(w), clearTimeout(T), v(), b = !1, E = null;
|
|
132
152
|
};
|
|
133
153
|
}), {
|
|
134
154
|
onReferencePress: (t) => {
|
|
135
|
-
r.referencePress?.() &&
|
|
155
|
+
r.referencePress?.() && k() && O() && r.context.setOpen(!1, i(e, t));
|
|
136
156
|
},
|
|
137
|
-
onKeyDown:
|
|
157
|
+
onKeyDown: B
|
|
138
158
|
};
|
|
139
159
|
}
|
|
140
160
|
//#endregion
|
|
141
161
|
//#region src/internals/overlay/createPopupPresence.ts
|
|
142
|
-
function
|
|
143
|
-
let r = g(() => e.open());
|
|
162
|
+
function w(e, t, n = {}) {
|
|
163
|
+
let r = g(() => e.open(), n.animateInitialOpen);
|
|
144
164
|
e.update({
|
|
145
|
-
mounted:
|
|
146
|
-
transitionStatus:
|
|
165
|
+
mounted: b(r.mounted),
|
|
166
|
+
transitionStatus: b(r.transitionStatus)
|
|
147
167
|
});
|
|
148
168
|
let i = () => {
|
|
149
169
|
r.setMounted(!1), e.update({
|
|
@@ -151,7 +171,7 @@ function C(e, t, n = {}) {
|
|
|
151
171
|
activeTriggerElement: null,
|
|
152
172
|
mounted: !1,
|
|
153
173
|
preventUnmountingOnClose: !1
|
|
154
|
-
}), n.onUnmount?.(),
|
|
174
|
+
}), n.onUnmount?.(), b(e.context.onOpenChangeComplete)?.(!1);
|
|
155
175
|
};
|
|
156
176
|
return v(() => ({
|
|
157
177
|
mounted: r.mounted(),
|
|
@@ -183,7 +203,7 @@ function C(e, t, n = {}) {
|
|
|
183
203
|
if (!t.open || !t.mounted || !t.element) return;
|
|
184
204
|
let n = new AbortController();
|
|
185
205
|
return a(t.element, () => {
|
|
186
|
-
|
|
206
|
+
b(e.context.onOpenChangeComplete)?.(!0);
|
|
187
207
|
}, n.signal, { waitForStartingStyleRemoved: !0 }), () => n.abort();
|
|
188
208
|
}), {
|
|
189
209
|
mounted: r.mounted,
|
|
@@ -193,7 +213,7 @@ function C(e, t, n = {}) {
|
|
|
193
213
|
}
|
|
194
214
|
//#endregion
|
|
195
215
|
//#region src/internals/overlay/PopupTriggerMap.ts
|
|
196
|
-
var
|
|
216
|
+
var T = class {
|
|
197
217
|
idMap = /* @__PURE__ */ new Map();
|
|
198
218
|
add(e, t) {
|
|
199
219
|
this.idMap.set(e, t);
|
|
@@ -224,7 +244,7 @@ var w = class {
|
|
|
224
244
|
};
|
|
225
245
|
//#endregion
|
|
226
246
|
//#region src/internals/overlay/FloatingRootStore.ts
|
|
227
|
-
function
|
|
247
|
+
function E(e) {
|
|
228
248
|
return [
|
|
229
249
|
"click",
|
|
230
250
|
"mousedown",
|
|
@@ -232,9 +252,9 @@ function T(e) {
|
|
|
232
252
|
"keyup"
|
|
233
253
|
].includes(e.type);
|
|
234
254
|
}
|
|
235
|
-
var
|
|
255
|
+
var D = class extends _ {
|
|
236
256
|
constructor(e) {
|
|
237
|
-
let t = e.triggerElements ?? new
|
|
257
|
+
let t = e.triggerElements ?? new T();
|
|
238
258
|
super({
|
|
239
259
|
open: !1,
|
|
240
260
|
transitionStatus: void 0,
|
|
@@ -257,7 +277,7 @@ var E = class extends _ {
|
|
|
257
277
|
return e.positionReference ?? e.referenceElement;
|
|
258
278
|
}
|
|
259
279
|
syncOpenEvent(e, t) {
|
|
260
|
-
(!e || !this.state.open || t &&
|
|
280
|
+
(!e || !this.state.open || t && E(t)) && (this.context.data.openEvent = e ? t : void 0);
|
|
261
281
|
}
|
|
262
282
|
dispatchOpenChange(e, t) {
|
|
263
283
|
this.syncOpenEvent(e, t.event), this.context.events.emit("openchange", {
|
|
@@ -271,12 +291,12 @@ var E = class extends _ {
|
|
|
271
291
|
setOpen(e, t) {
|
|
272
292
|
this.context.onOpenChange(e, t);
|
|
273
293
|
}
|
|
274
|
-
},
|
|
294
|
+
}, O = Object.freeze({}), k = () => void 0, A = class extends _ {
|
|
275
295
|
resolvedActiveTriggerId = null;
|
|
276
296
|
closeOnActiveTriggerUnmount = !1;
|
|
277
297
|
triggerState = /* @__PURE__ */ new Map();
|
|
278
298
|
constructor(e = {}) {
|
|
279
|
-
let t = new
|
|
299
|
+
let t = new T(), n, r = new D({
|
|
280
300
|
floatingId: e.floatingId,
|
|
281
301
|
nested: e.nested,
|
|
282
302
|
nodeId: e.nodeId,
|
|
@@ -295,9 +315,9 @@ var E = class extends _ {
|
|
|
295
315
|
popupElement: null,
|
|
296
316
|
popupId: void 0,
|
|
297
317
|
positionerElement: null,
|
|
298
|
-
activeTriggerProps:
|
|
299
|
-
inactiveTriggerProps:
|
|
300
|
-
popupProps:
|
|
318
|
+
activeTriggerProps: O,
|
|
319
|
+
inactiveTriggerProps: O,
|
|
320
|
+
popupProps: O,
|
|
301
321
|
instantType: void 0,
|
|
302
322
|
adaptiveOriginMiddleware: void 0,
|
|
303
323
|
closeDelay: 0
|
|
@@ -305,10 +325,10 @@ var E = class extends _ {
|
|
|
305
325
|
triggerElements: t,
|
|
306
326
|
floatingRoot: r,
|
|
307
327
|
floatingId: e.floatingId,
|
|
308
|
-
controlledOpen: e.controlledOpen ??
|
|
309
|
-
controlledTriggerId: e.controlledTriggerId ??
|
|
310
|
-
onOpenChange: e.onOpenChange ??
|
|
311
|
-
onOpenChangeComplete: e.onOpenChangeComplete ??
|
|
328
|
+
controlledOpen: e.controlledOpen ?? k,
|
|
329
|
+
controlledTriggerId: e.controlledTriggerId ?? k,
|
|
330
|
+
onOpenChange: e.onOpenChange ?? k,
|
|
331
|
+
onOpenChangeComplete: e.onOpenChangeComplete ?? k
|
|
312
332
|
}), n = (e, t) => this.setOpen(e, t), v(() => ({
|
|
313
333
|
open: this.open(),
|
|
314
334
|
transitionStatus: this.track().transitionStatus,
|
|
@@ -440,29 +460,29 @@ var E = class extends _ {
|
|
|
440
460
|
}
|
|
441
461
|
clearInteractionProps() {
|
|
442
462
|
this.update({
|
|
443
|
-
activeTriggerProps:
|
|
444
|
-
inactiveTriggerProps:
|
|
445
|
-
popupProps:
|
|
463
|
+
activeTriggerProps: O,
|
|
464
|
+
inactiveTriggerProps: O,
|
|
465
|
+
popupProps: O
|
|
446
466
|
});
|
|
447
467
|
}
|
|
448
468
|
};
|
|
449
|
-
function
|
|
469
|
+
function j(e, t, n, r = () => ({})) {
|
|
450
470
|
v(() => ({
|
|
451
471
|
store: e(),
|
|
452
472
|
id: t(),
|
|
453
473
|
element: n()
|
|
454
474
|
}), (e) => {
|
|
455
475
|
if (!e.store || !e.id || !e.element) return;
|
|
456
|
-
let t =
|
|
457
|
-
return () =>
|
|
476
|
+
let t = b(() => e.store.registerTrigger(e.id, e.element, r()));
|
|
477
|
+
return () => b(t);
|
|
458
478
|
}), v(() => ({
|
|
459
479
|
store: e(),
|
|
460
480
|
id: t(),
|
|
461
481
|
element: n(),
|
|
462
482
|
state: r()
|
|
463
483
|
}), (e) => {
|
|
464
|
-
e.store && e.id && e.element &&
|
|
484
|
+
e.store && e.id && e.element && b(() => e.store.forwardTriggerData(e.id, e.element, e.state));
|
|
465
485
|
});
|
|
466
486
|
}
|
|
467
487
|
//#endregion
|
|
468
|
-
export {
|
|
488
|
+
export { w as a, T as i, j as n, C as o, D as r, A as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "./runOnceAnimationsFinish-
|
|
1
|
+
import { t as e } from "./runOnceAnimationsFinish-CFADb4CN.js";
|
|
2
2
|
import { m as t, p as n } from "./dom-BEAeQ9Eb.js";
|
|
3
|
-
import { n as r, t as i } from "./createPopupAutoResize-
|
|
3
|
+
import { n as r, t as i } from "./createPopupAutoResize-Dn-stj-8.js";
|
|
4
4
|
import { createComponent as a, effect as o, getNextElement as s, insert as c, ref as l, setAttribute as u, setStyleProperty as d, template as f } from "@solidjs/web";
|
|
5
5
|
import { Show as p, createEffect as m, createSignal as h, onCleanup as g, untrack as _ } from "solid-js";
|
|
6
6
|
//#region src/internals/overlay/adaptiveOrigin.ts
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { t as e } from "./useRender-CxZ8PI-g.js";
|
|
2
|
+
import { getStateAttributesProps as t } from "./internals/getStateAttributesProps.js";
|
|
3
|
+
import { n, t as r } from "./resolveStyle-XcgAuaKR.js";
|
|
4
|
+
import { createComponent as i, getNextElement as a, mergeProps as o, runHydrationEvents as s, spread as c, template as l } from "@solidjs/web";
|
|
5
|
+
import { createMemo as u, omit as d } from "solid-js";
|
|
6
|
+
//#region src/separator/Separator.tsx
|
|
7
|
+
var f = /* @__PURE__ */ l("<div>");
|
|
8
|
+
function p(l) {
|
|
9
|
+
let p = d(l, "render", "class", "orientation", "style"), m = u(() => l.orientation ?? "horizontal"), h = u(() => ({ orientation: m() })), g = u(() => n(l.class, h())), _ = u(() => r(l.style, h())), v = u(() => t(h())), y = e(l, () => h(), (e) => (() => {
|
|
10
|
+
var t = a(f);
|
|
11
|
+
return c(t, e, !1), s(), t;
|
|
12
|
+
})());
|
|
13
|
+
return i(y, o({
|
|
14
|
+
get class() {
|
|
15
|
+
return g();
|
|
16
|
+
},
|
|
17
|
+
get style() {
|
|
18
|
+
return _();
|
|
19
|
+
},
|
|
20
|
+
role: "separator",
|
|
21
|
+
get "aria-orientation"() {
|
|
22
|
+
return m();
|
|
23
|
+
}
|
|
24
|
+
}, v, p));
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { p as t };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { u as e } from "./reasons-Co5CzjKq.js";
|
|
2
|
+
import { createChangeEventDetails as t } from "./internals/createBaseUIEventDetails.js";
|
|
3
|
+
import { n } from "./dom-BEAeQ9Eb.js";
|
|
4
|
+
import { d as r, f as i, g as a, p as o } from "./popupStateMapping-C6jQ_LKo.js";
|
|
5
|
+
import { t as s } from "./setRef-fXF6OIo3.js";
|
|
6
|
+
import { createComponent as c, memo as l } from "@solidjs/web";
|
|
7
|
+
import { createEffect as u, flush as d } from "solid-js";
|
|
8
|
+
//#region src/internals/overlay/TriggerFocusGuards.tsx
|
|
9
|
+
function f(f) {
|
|
10
|
+
let p = null, m = null, h = (n) => {
|
|
11
|
+
f.context.setOpen(!1, t(e, n, n.currentTarget)), d();
|
|
12
|
+
};
|
|
13
|
+
return u(() => f.enabled, (e) => {
|
|
14
|
+
e && (p && f.beforeGuardRef && s(f.beforeGuardRef, p), m && f.afterGuardRef && s(f.afterGuardRef, m));
|
|
15
|
+
}), [
|
|
16
|
+
c(a, {
|
|
17
|
+
get hidden() {
|
|
18
|
+
return !f.enabled;
|
|
19
|
+
},
|
|
20
|
+
"data-type": "trigger-before",
|
|
21
|
+
ref: (e) => p = e,
|
|
22
|
+
onFocus: (e) => {
|
|
23
|
+
h(e), i(p)?.focus();
|
|
24
|
+
}
|
|
25
|
+
}),
|
|
26
|
+
l(() => f.children),
|
|
27
|
+
c(a, {
|
|
28
|
+
get hidden() {
|
|
29
|
+
return !f.enabled;
|
|
30
|
+
},
|
|
31
|
+
"data-type": "trigger-after",
|
|
32
|
+
ref: (e) => m = e,
|
|
33
|
+
onFocus: (e) => {
|
|
34
|
+
let t = f.positioner();
|
|
35
|
+
if (t && o(e, t)) {
|
|
36
|
+
f.beforeContentGuard?.()?.focus();
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
h(e);
|
|
40
|
+
let i = r(m ?? f.trigger());
|
|
41
|
+
for (; i && n(t, i);) {
|
|
42
|
+
let e = i;
|
|
43
|
+
if (i = r(i), i === e) break;
|
|
44
|
+
}
|
|
45
|
+
i?.focus();
|
|
46
|
+
}
|
|
47
|
+
})
|
|
48
|
+
];
|
|
49
|
+
}
|
|
50
|
+
//#endregion
|
|
51
|
+
export { f as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../accordion-
|
|
1
|
+
import { t as e } from "../accordion-BFeZFpJZ.js";
|
|
2
2
|
export { e as Accordion };
|