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,504 @@
|
|
|
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 { n as r, t as i } from "./resolveStyle-XcgAuaKR.js";
|
|
5
|
+
import { composeEventHandlers as a } from "./internals/composeEventHandlers.js";
|
|
6
|
+
import { t as o } from "./setRef-fXF6OIo3.js";
|
|
7
|
+
import { n as s } from "./DirectionContext-BwMabICS.js";
|
|
8
|
+
import { n as c, t as l } from "./ToolbarRootContext-88yZoAOy.js";
|
|
9
|
+
import { n as u, t as d } from "./ToolbarGroupContext-Dpc3_mFx.js";
|
|
10
|
+
import { t as f } from "./ToolbarItemOwnerContext-DtVqVnSE.js";
|
|
11
|
+
import { claimElement as p, createComponent as m, delegateEvents as h, getNextElement as g, mergeProps as _, runHydrationEvents as v, spread as y, template as b } from "@solidjs/web";
|
|
12
|
+
import { createEffect as x, createMemo as S, createSignal as C, omit as w, onCleanup as T, onSettled as E, untrack as D } from "solid-js";
|
|
13
|
+
//#region src/toolbar/root/ToolbarRoot.tsx
|
|
14
|
+
var O = /* @__PURE__ */ b("<div>");
|
|
15
|
+
function k(e) {
|
|
16
|
+
let o = s(), c = e, u = e, [d, f] = C(), [p, h] = C(), [b, T] = C(0), E = /* @__PURE__ */ new Map(), D = 0, k = !1, F = w(u, "render", "class", "disabled", "loopFocus", "onFocus", "onFocusIn", "onKeyDown", "orientation", "ref", "style"), I = S(() => c.disabled ?? !1), L = S(() => c.orientation ?? "horizontal"), R = S(() => ({
|
|
17
|
+
disabled: I(),
|
|
18
|
+
orientation: L()
|
|
19
|
+
})), z = S(() => r(e.class, R())), B = S(() => i(e.style, R())), ee = S(() => n(R()));
|
|
20
|
+
function V() {
|
|
21
|
+
k || (k = !0, queueMicrotask(() => {
|
|
22
|
+
k = !1, T((e) => e + 1);
|
|
23
|
+
}));
|
|
24
|
+
}
|
|
25
|
+
function H(e) {
|
|
26
|
+
return e.order = D, D += 1, E.set(e.token, e), V(), () => {
|
|
27
|
+
E.delete(e.token), V();
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function U() {
|
|
31
|
+
let e = Array.from(E.values()).sort(A), t = /* @__PURE__ */ new Set();
|
|
32
|
+
return e.filter((e) => {
|
|
33
|
+
let n = e.element();
|
|
34
|
+
return !n || t.has(n) ? !1 : (t.add(n), !0);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
function W() {
|
|
38
|
+
return U().filter(j);
|
|
39
|
+
}
|
|
40
|
+
function G(e) {
|
|
41
|
+
b();
|
|
42
|
+
let t = W(), n = t.find((e) => e.token === p());
|
|
43
|
+
return j(e) && (n ?? t[0])?.token === e.token;
|
|
44
|
+
}
|
|
45
|
+
function K(e) {
|
|
46
|
+
j(e) && h(e.token);
|
|
47
|
+
}
|
|
48
|
+
function q(e) {
|
|
49
|
+
let t = e.composedPath(), n = t[0];
|
|
50
|
+
return U().find((e) => {
|
|
51
|
+
let r = e.element();
|
|
52
|
+
return r && (t.includes(r) || n instanceof Node && r.contains(n));
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
function J(e) {
|
|
56
|
+
let t = q(e);
|
|
57
|
+
t && K(t);
|
|
58
|
+
let n = e.composedPath()[0];
|
|
59
|
+
M(n) && queueMicrotask(() => n.setSelectionRange(0, n.value.length));
|
|
60
|
+
}
|
|
61
|
+
function Y(e) {
|
|
62
|
+
if (e.shiftKey || e.ctrlKey || e.altKey || e.metaKey) return;
|
|
63
|
+
let t = o() === "rtl" ? "ArrowLeft" : "ArrowRight", n = o() === "rtl" ? "ArrowRight" : "ArrowLeft", r = L() === "vertical" ? "ArrowDown" : t, i = L() === "vertical" ? "ArrowUp" : n;
|
|
64
|
+
if (e.key !== r && e.key !== i) return;
|
|
65
|
+
let a = e.composedPath()[0];
|
|
66
|
+
if (M(a) && !N(a)) {
|
|
67
|
+
let t = a.selectionStart, n = a.selectionEnd;
|
|
68
|
+
if (t == null || e.shiftKey || t !== n || e.key !== i && t < a.value.length || e.key !== r && t > 0) return;
|
|
69
|
+
}
|
|
70
|
+
b();
|
|
71
|
+
let s = W();
|
|
72
|
+
if (s.length === 0) return;
|
|
73
|
+
let l = q(e), u = s.findIndex((e) => e.token === (l?.token ?? p())), f = e.key === r ? 1 : -1, m = u === -1 ? f > 0 ? 0 : s.length - 1 : u + f;
|
|
74
|
+
if (m < 0 || m >= s.length) {
|
|
75
|
+
if (!(c.loopFocus ?? !0)) return;
|
|
76
|
+
m = (m + s.length) % s.length;
|
|
77
|
+
}
|
|
78
|
+
let h = s[m];
|
|
79
|
+
!h || h.token === l?.token || (e.preventDefault(), e.stopPropagation(), K(h), P(d(), h.element(), o(), L()), queueMicrotask(() => h.element()?.focus()));
|
|
80
|
+
}
|
|
81
|
+
let X = a(() => c.onFocusIn, () => J), Z = a(() => c.onKeyDown, () => Y);
|
|
82
|
+
function Q(e) {
|
|
83
|
+
Reflect.deleteProperty(e, "baseUIHandlerPrevented"), Reflect.apply(Z, e.currentTarget, [e]);
|
|
84
|
+
}
|
|
85
|
+
let $ = {
|
|
86
|
+
disabled: I,
|
|
87
|
+
orientation: L,
|
|
88
|
+
isTabStop: G,
|
|
89
|
+
notifyItemChange: V,
|
|
90
|
+
registerItem: H,
|
|
91
|
+
setActiveItem: K
|
|
92
|
+
};
|
|
93
|
+
x(d, (e) => {
|
|
94
|
+
let t = e?.ownerDocument.defaultView?.MutationObserver;
|
|
95
|
+
if (!e || !t) return;
|
|
96
|
+
let n = new t(V);
|
|
97
|
+
return n.observe(e, {
|
|
98
|
+
attributes: !0,
|
|
99
|
+
childList: !0,
|
|
100
|
+
subtree: !0,
|
|
101
|
+
attributeFilter: [
|
|
102
|
+
"class",
|
|
103
|
+
"disabled",
|
|
104
|
+
"hidden",
|
|
105
|
+
"style"
|
|
106
|
+
]
|
|
107
|
+
}), () => n.disconnect();
|
|
108
|
+
});
|
|
109
|
+
let te = t(e, () => R(), (e) => (() => {
|
|
110
|
+
var t = g(O);
|
|
111
|
+
return y(t, e, !1), v(), t;
|
|
112
|
+
})());
|
|
113
|
+
return m(l, {
|
|
114
|
+
value: $,
|
|
115
|
+
get children() {
|
|
116
|
+
return m(te, _({
|
|
117
|
+
ref: [((e) => f(e)), c.ref],
|
|
118
|
+
get class() {
|
|
119
|
+
return z();
|
|
120
|
+
},
|
|
121
|
+
get style() {
|
|
122
|
+
return B();
|
|
123
|
+
},
|
|
124
|
+
role: "toolbar",
|
|
125
|
+
get "aria-orientation"() {
|
|
126
|
+
return L();
|
|
127
|
+
},
|
|
128
|
+
get onFocus() {
|
|
129
|
+
return c.onFocus;
|
|
130
|
+
},
|
|
131
|
+
onFocusIn: X,
|
|
132
|
+
onKeyDown: Q
|
|
133
|
+
}, ee, F));
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
function A(e, t) {
|
|
138
|
+
let n = e.element(), r = t.element();
|
|
139
|
+
if (n && r && n !== r) {
|
|
140
|
+
let e = n.compareDocumentPosition(r);
|
|
141
|
+
if ((e & Node.DOCUMENT_POSITION_DISCONNECTED) === 0) {
|
|
142
|
+
if (e & Node.DOCUMENT_POSITION_FOLLOWING) return -1;
|
|
143
|
+
if (e & Node.DOCUMENT_POSITION_PRECEDING) return 1;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
return e.order - t.order;
|
|
147
|
+
}
|
|
148
|
+
function j(e) {
|
|
149
|
+
let t = e.element();
|
|
150
|
+
if (!t?.isConnected || e.disabled() && !e.focusableWhenDisabled() || t.matches(":disabled")) return !1;
|
|
151
|
+
let n = t.ownerDocument.defaultView?.getComputedStyle(t);
|
|
152
|
+
return !n || n.display === "none" || n.display === "contents" || n.visibility === "hidden" || n.visibility === "collapse" ? !1 : typeof t.checkVisibility != "function" || t.checkVisibility();
|
|
153
|
+
}
|
|
154
|
+
function M(e) {
|
|
155
|
+
if (!e || typeof e != "object" || !("tagName" in e)) return !1;
|
|
156
|
+
let t = e;
|
|
157
|
+
return t.tagName === "TEXTAREA" || t.tagName === "INPUT" && t.selectionStart != null;
|
|
158
|
+
}
|
|
159
|
+
function N(e) {
|
|
160
|
+
return e.matches(":disabled") || e.getAttribute("aria-disabled") === "true";
|
|
161
|
+
}
|
|
162
|
+
function P(e, t, n, r) {
|
|
163
|
+
if (!e || !t || typeof e.scrollTo != "function") return;
|
|
164
|
+
let i = e.scrollLeft, a = e.scrollTop, o = I(e), s = I(t);
|
|
165
|
+
if (r === "horizontal" && e.clientWidth < e.scrollWidth) {
|
|
166
|
+
let n = F(e, t, "left");
|
|
167
|
+
n - s.scrollMarginLeft < e.scrollLeft + o.scrollPaddingLeft ? i = n - s.scrollMarginLeft - o.scrollPaddingLeft : n + t.offsetWidth + s.scrollMarginRight > e.scrollLeft + e.clientWidth - o.scrollPaddingRight && (i = n + t.offsetWidth + s.scrollMarginRight - e.clientWidth + o.scrollPaddingRight);
|
|
168
|
+
}
|
|
169
|
+
if (r === "vertical" && e.scrollHeight > e.clientHeight) {
|
|
170
|
+
let n = F(e, t, "top");
|
|
171
|
+
n - s.scrollMarginTop < e.scrollTop + o.scrollPaddingTop ? a = n - s.scrollMarginTop - o.scrollPaddingTop : n + t.offsetHeight + s.scrollMarginBottom > e.scrollTop + e.clientHeight - o.scrollPaddingBottom && (a = n + t.offsetHeight + s.scrollMarginBottom - e.clientHeight + o.scrollPaddingBottom);
|
|
172
|
+
}
|
|
173
|
+
e.scrollTo({
|
|
174
|
+
behavior: "auto",
|
|
175
|
+
left: i,
|
|
176
|
+
top: a
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
function F(e, t, n) {
|
|
180
|
+
let r = n === "left" ? "offsetLeft" : "offsetTop", i = t, a = 0;
|
|
181
|
+
for (; i.offsetParent && (a += i[r], i.offsetParent !== e);) i = i.offsetParent;
|
|
182
|
+
return a;
|
|
183
|
+
}
|
|
184
|
+
function I(e) {
|
|
185
|
+
let t = e.ownerDocument.defaultView?.getComputedStyle(e);
|
|
186
|
+
return {
|
|
187
|
+
scrollMarginTop: Number.parseFloat(t?.scrollMarginTop ?? "") || 0,
|
|
188
|
+
scrollMarginRight: Number.parseFloat(t?.scrollMarginRight ?? "") || 0,
|
|
189
|
+
scrollMarginBottom: Number.parseFloat(t?.scrollMarginBottom ?? "") || 0,
|
|
190
|
+
scrollMarginLeft: Number.parseFloat(t?.scrollMarginLeft ?? "") || 0,
|
|
191
|
+
scrollPaddingTop: Number.parseFloat(t?.scrollPaddingTop ?? "") || 0,
|
|
192
|
+
scrollPaddingRight: Number.parseFloat(t?.scrollPaddingRight ?? "") || 0,
|
|
193
|
+
scrollPaddingBottom: Number.parseFloat(t?.scrollPaddingBottom ?? "") || 0,
|
|
194
|
+
scrollPaddingLeft: Number.parseFloat(t?.scrollPaddingLeft ?? "") || 0
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
//#endregion
|
|
198
|
+
//#region src/toolbar/group/ToolbarGroup.tsx
|
|
199
|
+
var L = /* @__PURE__ */ b("<div>");
|
|
200
|
+
function R(e) {
|
|
201
|
+
let a = c(), o = e, s = w(e, "render", "class", "disabled", "ref", "style"), l = S(() => a.disabled() || (o.disabled ?? !1)), u = S(() => ({
|
|
202
|
+
disabled: l(),
|
|
203
|
+
orientation: a.orientation()
|
|
204
|
+
})), f = S(() => r(e.class, u())), p = S(() => i(e.style, u())), h = S(() => n(u())), b = { disabled: l }, x = t(e, () => u(), (e) => (() => {
|
|
205
|
+
var t = g(L);
|
|
206
|
+
return y(t, e, !1), v(), t;
|
|
207
|
+
})());
|
|
208
|
+
return m(d, {
|
|
209
|
+
value: b,
|
|
210
|
+
get children() {
|
|
211
|
+
return m(x, _({
|
|
212
|
+
ref: [o.ref],
|
|
213
|
+
get class() {
|
|
214
|
+
return f();
|
|
215
|
+
},
|
|
216
|
+
get style() {
|
|
217
|
+
return p();
|
|
218
|
+
},
|
|
219
|
+
role: "group"
|
|
220
|
+
}, h, s));
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
//#endregion
|
|
225
|
+
//#region src/internals/installOwnedEventHandlers.ts
|
|
226
|
+
function z(e, t) {
|
|
227
|
+
let n = /* @__PURE__ */ new WeakSet(), r = /* @__PURE__ */ new WeakSet(), i = [], a = [];
|
|
228
|
+
for (let [a, o] of t) {
|
|
229
|
+
let t = (t) => {
|
|
230
|
+
n.add(t), Reflect.apply(o, e, [t]), t.baseUIHandlerPrevented && r.add(t);
|
|
231
|
+
};
|
|
232
|
+
e.addEventListener(a, t), i.push([a, t]);
|
|
233
|
+
}
|
|
234
|
+
for (let [i, o] of t) {
|
|
235
|
+
let t = `$$${i}`, s = `${t}Data`, c = e, l = c[t], u = c[s], d = (t) => {
|
|
236
|
+
n.has(t) || (n.add(t), Reflect.apply(o, e, [t]), t.baseUIHandlerPrevented && r.add(t)), !(r.has(t) || typeof l != "function") && (u === void 0 ? Reflect.apply(l, e, [t]) : Reflect.apply(l, e, [u, t]));
|
|
237
|
+
};
|
|
238
|
+
Object.defineProperty(c, t, {
|
|
239
|
+
configurable: !0,
|
|
240
|
+
enumerable: !0,
|
|
241
|
+
get: () => d,
|
|
242
|
+
set: (e) => {
|
|
243
|
+
l = e;
|
|
244
|
+
}
|
|
245
|
+
}), Object.defineProperty(c, s, {
|
|
246
|
+
configurable: !0,
|
|
247
|
+
enumerable: !0,
|
|
248
|
+
get: () => void 0,
|
|
249
|
+
set: (e) => {
|
|
250
|
+
u = e;
|
|
251
|
+
}
|
|
252
|
+
}), a.push(() => {
|
|
253
|
+
Reflect.deleteProperty(c, t), Reflect.deleteProperty(c, s), c[t] = l, c[s] = u;
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
return h(t.map(([e]) => e)), () => {
|
|
257
|
+
for (let [t, n] of i) e.removeEventListener(t, n);
|
|
258
|
+
for (let e of a) e();
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
//#endregion
|
|
262
|
+
//#region src/toolbar/createToolbarItem.ts
|
|
263
|
+
function B(e) {
|
|
264
|
+
let t = c(), [n, r] = C(), i = {
|
|
265
|
+
token: Symbol("ToolbarItem"),
|
|
266
|
+
order: 0,
|
|
267
|
+
element: n,
|
|
268
|
+
disabled: e.disabled,
|
|
269
|
+
focusableWhenDisabled: e.focusableWhenDisabled
|
|
270
|
+
}, a = t.registerItem(i);
|
|
271
|
+
return x(() => ({
|
|
272
|
+
disabled: e.disabled(),
|
|
273
|
+
element: n(),
|
|
274
|
+
focusableWhenDisabled: e.focusableWhenDisabled()
|
|
275
|
+
}), () => t.notifyItemChange()), T(a), {
|
|
276
|
+
element: n,
|
|
277
|
+
registration: i,
|
|
278
|
+
root: t,
|
|
279
|
+
setElement: r,
|
|
280
|
+
tabIndex: () => t.isTabStop(i) ? 0 : -1
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
//#endregion
|
|
284
|
+
//#region src/toolbar/button/ToolbarButton.tsx
|
|
285
|
+
var ee = /* @__PURE__ */ b("<button>");
|
|
286
|
+
function V(e) {
|
|
287
|
+
let s = c(), l = u(), d = e, p = e, [h, b] = C(!1), O = S(() => s.disabled() || (l?.disabled() ?? !1) || (d.disabled ?? !1)), k = S(() => O() || h()), A = S(() => h() && !O() ? !1 : d.focusableWhenDisabled ?? !0), j = S(() => d.nativeButton ?? !0), M = B({
|
|
288
|
+
disabled: k,
|
|
289
|
+
focusableWhenDisabled: A
|
|
290
|
+
}), N = w(p, "render", "class", "disabled", "focusableWhenDisabled", "nativeButton", "onClick", "onFocus", "onKeyDown", "onKeyUp", "onMouseDown", "onPointerDown", "ref", "style"), P = S(() => ({
|
|
291
|
+
disabled: k(),
|
|
292
|
+
focusable: A(),
|
|
293
|
+
orientation: s.orientation()
|
|
294
|
+
})), F = S(() => r(e.class, P())), I = S(() => i(e.style, P())), L = S(() => n(P())), R, V = S(() => j() && k() && !A()), K = S(() => j() && A() ? k() ? "true" : "false" : !j() && k() ? "true" : void 0);
|
|
295
|
+
function q() {
|
|
296
|
+
M.root.setActiveItem(M.registration);
|
|
297
|
+
}
|
|
298
|
+
function J(e) {
|
|
299
|
+
if (e.target !== e.currentTarget) return;
|
|
300
|
+
let t = e.key === " ", n = e.key === "Enter", r = e.currentTarget.tagName === "BUTTON", i = e.currentTarget.tagName === "A" && !!e.currentTarget.href, a = e.currentTarget.getAttribute("role"), o = a?.startsWith("menuitem") || a === "option" || a === "gridcell";
|
|
301
|
+
if (t) {
|
|
302
|
+
if (e.defaultPrevented && o) return;
|
|
303
|
+
e.preventDefault(), (!j() || r) && (e.preventBaseUIHandler(), G(e.currentTarget, e));
|
|
304
|
+
return;
|
|
305
|
+
}
|
|
306
|
+
!j() && !i && n && !e.defaultPrevented && (e.preventDefault(), e.preventBaseUIHandler(), G(e.currentTarget, e));
|
|
307
|
+
}
|
|
308
|
+
function Y(e) {
|
|
309
|
+
e.target === e.currentTarget && e.key === " " && (!j() || e.currentTarget.tagName === "BUTTON") && (e.preventDefault(), e.preventBaseUIHandler());
|
|
310
|
+
}
|
|
311
|
+
let X = a(() => D(() => k() ? H : void 0), () => d.onClick), Z = a(() => d.onFocus, () => q), Q = a(() => D(() => k() ? W : void 0), () => D(() => k() ? void 0 : d.onKeyDown), () => D(() => k() ? void 0 : J)), $ = a(() => D(() => k() ? U : void 0), () => D(() => k() ? void 0 : d.onKeyUp), () => D(() => k() ? void 0 : Y)), te = a(() => D(() => k() ? U : void 0), () => D(() => k() ? void 0 : d.onMouseDown)), ne = a(() => D(() => k() ? H : void 0), () => d.onPointerDown);
|
|
312
|
+
E(() => {
|
|
313
|
+
M.element();
|
|
314
|
+
});
|
|
315
|
+
function re(e) {
|
|
316
|
+
R?.(), M.setElement(e), R = z(e, [
|
|
317
|
+
["click", X],
|
|
318
|
+
["focus", Z],
|
|
319
|
+
["keydown", Q],
|
|
320
|
+
["keyup", $],
|
|
321
|
+
["mousedown", te],
|
|
322
|
+
["pointerdown", ne]
|
|
323
|
+
]), o(d.ref, e);
|
|
324
|
+
}
|
|
325
|
+
x(() => ({
|
|
326
|
+
disabled: k(),
|
|
327
|
+
element: M.element(),
|
|
328
|
+
focusableWhenDisabled: A()
|
|
329
|
+
}), (e) => {
|
|
330
|
+
e.disabled && e.focusableWhenDisabled && e.element && e.element.removeAttribute("disabled");
|
|
331
|
+
}), T(() => R?.());
|
|
332
|
+
let ie = t(e, () => P(), (e) => (() => {
|
|
333
|
+
var t = g(ee);
|
|
334
|
+
return y(t, e, !1), v(), t;
|
|
335
|
+
})());
|
|
336
|
+
return m(f, {
|
|
337
|
+
value: {
|
|
338
|
+
disabled: k,
|
|
339
|
+
focusableWhenDisabled: A,
|
|
340
|
+
setChildDisabled: b
|
|
341
|
+
},
|
|
342
|
+
get children() {
|
|
343
|
+
return m(ie, _({
|
|
344
|
+
ref: (e) => {
|
|
345
|
+
re(e);
|
|
346
|
+
},
|
|
347
|
+
get class() {
|
|
348
|
+
return F();
|
|
349
|
+
},
|
|
350
|
+
get style() {
|
|
351
|
+
return I();
|
|
352
|
+
},
|
|
353
|
+
get type() {
|
|
354
|
+
return j() ? "button" : void 0;
|
|
355
|
+
}
|
|
356
|
+
}, () => j() ? {} : { role: "button" }, {
|
|
357
|
+
get tabIndex() {
|
|
358
|
+
return M.tabIndex();
|
|
359
|
+
},
|
|
360
|
+
get disabled() {
|
|
361
|
+
return V();
|
|
362
|
+
},
|
|
363
|
+
get "aria-disabled"() {
|
|
364
|
+
return K();
|
|
365
|
+
}
|
|
366
|
+
}, L, N));
|
|
367
|
+
}
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
function H(e) {
|
|
371
|
+
e.preventDefault(), e.preventBaseUIHandler();
|
|
372
|
+
}
|
|
373
|
+
function U(e) {
|
|
374
|
+
e.preventBaseUIHandler();
|
|
375
|
+
}
|
|
376
|
+
function W(e) {
|
|
377
|
+
e.key !== "Tab" && (e.preventDefault(), e.preventBaseUIHandler());
|
|
378
|
+
}
|
|
379
|
+
function G(e, t) {
|
|
380
|
+
let n = e.ownerDocument.defaultView;
|
|
381
|
+
n && e.dispatchEvent(new n.MouseEvent("click", {
|
|
382
|
+
bubbles: !0,
|
|
383
|
+
cancelable: !0,
|
|
384
|
+
composed: !0,
|
|
385
|
+
detail: 0,
|
|
386
|
+
shiftKey: t.shiftKey,
|
|
387
|
+
ctrlKey: t.ctrlKey,
|
|
388
|
+
altKey: t.altKey,
|
|
389
|
+
metaKey: t.metaKey
|
|
390
|
+
}));
|
|
391
|
+
}
|
|
392
|
+
//#endregion
|
|
393
|
+
//#region src/toolbar/link/ToolbarLink.tsx
|
|
394
|
+
var K = /* @__PURE__ */ b("<a>"), q = () => !1, J = () => !0;
|
|
395
|
+
function Y(e) {
|
|
396
|
+
let s = c(), l = e, u = e, d = B({
|
|
397
|
+
disabled: q,
|
|
398
|
+
focusableWhenDisabled: J
|
|
399
|
+
}), f = w(u, "render", "class", "onFocus", "ref", "style"), h = S(() => ({ orientation: s.orientation() })), b = S(() => r(e.class, h())), x = S(() => i(e.style, h())), C = S(() => n(h())), T = a(() => l.onFocus, () => () => d.root.setActiveItem(d.registration)), E = t(e, () => h(), (e) => (() => {
|
|
400
|
+
var t = g(K);
|
|
401
|
+
return p(t), y(t, e, !1), v(), t;
|
|
402
|
+
})());
|
|
403
|
+
return m(E, _({
|
|
404
|
+
ref: (e) => {
|
|
405
|
+
d.setElement(e), o(l.ref, e);
|
|
406
|
+
},
|
|
407
|
+
get class() {
|
|
408
|
+
return b();
|
|
409
|
+
},
|
|
410
|
+
get style() {
|
|
411
|
+
return x();
|
|
412
|
+
},
|
|
413
|
+
get tabIndex() {
|
|
414
|
+
return d.tabIndex();
|
|
415
|
+
},
|
|
416
|
+
onFocus: T
|
|
417
|
+
}, C, f));
|
|
418
|
+
}
|
|
419
|
+
//#endregion
|
|
420
|
+
//#region src/toolbar/input/ToolbarInput.tsx
|
|
421
|
+
var X = /* @__PURE__ */ b("<input>");
|
|
422
|
+
function Z(e) {
|
|
423
|
+
let s = c(), l = u(), d = e, f = e, p = S(() => s.disabled() || (l?.disabled() ?? !1) || (d.disabled ?? !1)), h = S(() => d.focusableWhenDisabled ?? !0), b = B({
|
|
424
|
+
disabled: p,
|
|
425
|
+
focusableWhenDisabled: h
|
|
426
|
+
}), x = w(f, "render", "class", "disabled", "focusableWhenDisabled", "onClick", "onFocus", "onKeyDown", "onPointerDown", "ref", "style"), C = S(() => ({
|
|
427
|
+
disabled: p(),
|
|
428
|
+
focusable: h(),
|
|
429
|
+
orientation: s.orientation()
|
|
430
|
+
})), E = S(() => r(e.class, C())), O = S(() => i(e.style, C())), k = S(() => n(C())), A;
|
|
431
|
+
function j() {
|
|
432
|
+
b.root.setActiveItem(b.registration);
|
|
433
|
+
}
|
|
434
|
+
let M = a(() => d.onClick, () => D(() => p() ? Q : void 0)), N = a(() => d.onFocus, () => j), P = a(() => D(() => p() ? $ : void 0), () => d.onKeyDown), F = a(() => d.onPointerDown, () => D(() => p() ? Q : void 0));
|
|
435
|
+
function I(e) {
|
|
436
|
+
A?.(), b.setElement(e), A = z(e, [
|
|
437
|
+
["click", M],
|
|
438
|
+
["focus", N],
|
|
439
|
+
["keydown", P],
|
|
440
|
+
["pointerdown", F]
|
|
441
|
+
]), o(d.ref, e);
|
|
442
|
+
}
|
|
443
|
+
T(() => A?.());
|
|
444
|
+
let L = t(e, () => C(), (e) => (() => {
|
|
445
|
+
var t = g(X);
|
|
446
|
+
return y(t, e, !1), v(), t;
|
|
447
|
+
})());
|
|
448
|
+
return m(L, _({
|
|
449
|
+
ref: (e) => {
|
|
450
|
+
I(e);
|
|
451
|
+
},
|
|
452
|
+
get class() {
|
|
453
|
+
return E();
|
|
454
|
+
},
|
|
455
|
+
get style() {
|
|
456
|
+
return O();
|
|
457
|
+
},
|
|
458
|
+
get tabIndex() {
|
|
459
|
+
return b.tabIndex();
|
|
460
|
+
},
|
|
461
|
+
get "aria-disabled"() {
|
|
462
|
+
return p() ? "true" : void 0;
|
|
463
|
+
}
|
|
464
|
+
}, k, x));
|
|
465
|
+
}
|
|
466
|
+
function Q(e) {
|
|
467
|
+
e.preventDefault();
|
|
468
|
+
}
|
|
469
|
+
function $(e) {
|
|
470
|
+
e.key !== "Tab" && e.preventDefault();
|
|
471
|
+
}
|
|
472
|
+
//#endregion
|
|
473
|
+
//#region src/toolbar/separator/ToolbarSeparator.tsx
|
|
474
|
+
var te = /* @__PURE__ */ b("<div>");
|
|
475
|
+
function ne(e) {
|
|
476
|
+
let a = c(), o = w(e, "render", "class", "orientation", "style"), s = S(() => e.orientation ?? (a.orientation() === "vertical" ? "horizontal" : "vertical")), l = S(() => ({ orientation: s() })), u = S(() => r(e.class, l())), d = S(() => i(e.style, l())), f = S(() => n(l())), p = t(e, () => l(), (e) => (() => {
|
|
477
|
+
var t = g(te);
|
|
478
|
+
return y(t, e, !1), v(), t;
|
|
479
|
+
})());
|
|
480
|
+
return m(p, _({
|
|
481
|
+
get class() {
|
|
482
|
+
return u();
|
|
483
|
+
},
|
|
484
|
+
get style() {
|
|
485
|
+
return d();
|
|
486
|
+
},
|
|
487
|
+
role: "separator",
|
|
488
|
+
get "aria-orientation"() {
|
|
489
|
+
return s();
|
|
490
|
+
}
|
|
491
|
+
}, f, o));
|
|
492
|
+
}
|
|
493
|
+
//#endregion
|
|
494
|
+
//#region src/toolbar/index.parts.ts
|
|
495
|
+
var re = /* @__PURE__ */ e({
|
|
496
|
+
Button: () => V,
|
|
497
|
+
Group: () => R,
|
|
498
|
+
Input: () => Z,
|
|
499
|
+
Link: () => Y,
|
|
500
|
+
Root: () => k,
|
|
501
|
+
Separator: () => ne
|
|
502
|
+
});
|
|
503
|
+
//#endregion
|
|
504
|
+
export { re as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../tooltip-
|
|
1
|
+
import { t as e } from "../tooltip-D-PkGco9.js";
|
|
2
2
|
export { e as Tooltip };
|