@vizejs/ui 0.387.0 → 0.388.0
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/dist/alert-BX93FNvj.d.mts +92 -0
- package/dist/alert-DvhiFK_R.mjs +92 -0
- package/dist/alert-dialog-D9tqXQ_Q.mjs +176 -0
- package/dist/alert-dialog.d.mts +2 -0
- package/dist/alert-dialog.mjs +3 -0
- package/dist/alert.d.mts +2 -0
- package/dist/alert.mjs +2 -0
- package/dist/announcer-CW079p2E.mjs +258 -0
- package/dist/announcer-DGr2Iz0i.d.mts +6829 -0
- package/dist/announcer.d.mts +2 -0
- package/dist/announcer.mjs +2 -0
- package/dist/aspect-ratio-DDqVT6Hg.d.mts +62 -0
- package/dist/aspect-ratio-_HLW6_5i.mjs +63 -0
- package/dist/aspect-ratio.d.mts +2 -0
- package/dist/aspect-ratio.mjs +2 -0
- package/dist/avatar-6fQfQ-1x.mjs +195 -0
- package/dist/avatar.d.mts +2 -0
- package/dist/avatar.mjs +2 -0
- package/dist/badge-BTOyu4i6.mjs +53 -0
- package/dist/badge.d.mts +2 -0
- package/dist/badge.mjs +2 -0
- package/dist/banner-CYiSiZJW.mjs +288 -0
- package/dist/banner.d.mts +2 -0
- package/dist/banner.mjs +2 -0
- package/dist/block-ui-Bd2m1m3K.mjs +111 -0
- package/dist/block-ui.d.mts +2 -0
- package/dist/block-ui.mjs +2 -0
- package/dist/blockquote-eTqp3b_r.mjs +65 -0
- package/dist/blockquote.d.mts +2 -0
- package/dist/blockquote.mjs +2 -0
- package/dist/breadcrumb-BvuPBfkj.mjs +212 -0
- package/dist/breadcrumb-Cdyh20z-.d.mts +202 -0
- package/dist/breadcrumb.d.mts +2 -0
- package/dist/breadcrumb.mjs +2 -0
- package/dist/{button-DYg1mIIq.d.mts → button-Dye0M41O.d.mts} +3 -3
- package/dist/{button-DT8AKlds.mjs → button-VVxUavbS.mjs} +6 -6
- package/dist/button-group-C_mR0Jfw.d.mts +137 -0
- package/dist/button-group-DyQbTCnY.mjs +418 -0
- package/dist/button-group.d.mts +2 -0
- package/dist/button-group.mjs +2 -0
- package/dist/button.d.mts +1 -1
- package/dist/button.mjs +2 -2
- package/dist/callout-DAu-98Ti.mjs +277 -0
- package/dist/callout.d.mts +2 -0
- package/dist/callout.mjs +2 -0
- package/dist/card-D94n04s5.mjs +66 -0
- package/dist/card.d.mts +2 -0
- package/dist/card.mjs +2 -0
- package/dist/catalog.d.mts +2112 -302
- package/dist/catalog.mjs +3831 -433
- package/dist/{checkbox-BgIvwjyC.mjs → checkbox-bM5y7vH8.mjs} +8 -8
- package/dist/checkbox.d.mts +1 -1
- package/dist/checkbox.mjs +2 -2
- package/dist/cluster-BWF028Xt.d.mts +133 -0
- package/dist/cluster-BydJTp9X.mjs +149 -0
- package/dist/cluster.d.mts +2 -0
- package/dist/cluster.mjs +2 -0
- package/dist/code-D93YXaeJ.mjs +66 -0
- package/dist/code.d.mts +2 -0
- package/dist/code.mjs +2 -0
- package/dist/collapsible-Cra5y_if.mjs +269 -0
- package/dist/collapsible.d.mts +2 -0
- package/dist/collapsible.mjs +2 -0
- package/dist/{collection-B_dFZOHO.d.mts → collection-BaPf8lgw.d.mts} +3 -3
- package/dist/{collection-eHN150dT.mjs → collection-Cncgrq4U.mjs} +5 -5
- package/dist/collection.d.mts +1 -1
- package/dist/collection.mjs +1 -1
- package/dist/command-CAH0yrMT.d.mts +105 -0
- package/dist/command.d.mts +2 -0
- package/dist/command.mjs +123 -0
- package/dist/{composite-navigation-Skx3LZsv.mjs → composite-navigation-D6WKS_BY.mjs} +4 -4
- package/dist/{composite-navigation-QINW9GLy.d.mts → composite-navigation-i7ocwmio.d.mts} +4 -4
- package/dist/composite-navigation.d.mts +1 -1
- package/dist/composite-navigation.mjs +1 -1
- package/dist/container-5lSCSbeX.mjs +113 -0
- package/dist/container-CYSiwCA-.d.mts +99 -0
- package/dist/container.d.mts +2 -0
- package/dist/container.mjs +2 -0
- package/dist/context-7SpwFHtK.d.mts +25 -0
- package/dist/context.d.mts +1 -24
- package/dist/context.mjs +1 -1
- package/dist/{controllable-state-BtoxKahh.d.mts → controllable-state-CZZF9Pw5.d.mts} +1 -1
- package/dist/controllable-state.d.mts +1 -1
- package/dist/controllable-state.mjs +1 -1
- package/dist/copy-button-BH2em7nG.mjs +212 -0
- package/dist/copy-button.d.mts +2 -0
- package/dist/copy-button.mjs +2 -0
- package/dist/{id-BV9AJ3cm.d.mts → deterministic-id-DYQJ7KzM.d.mts} +2 -35
- package/dist/{id-mziSyAse.mjs → deterministic-id-yMq4HfmS.mjs} +3 -46
- package/dist/dialog-trigger-ppGKikEP.mjs +717 -0
- package/dist/dialog.d.mts +2 -0
- package/dist/dialog.mjs +2 -0
- package/dist/{dismissable-layer-4icKahVs.d.mts → dismissable-layer-CTWSFZwj.d.mts} +2 -2
- package/dist/{dismissable-layer-CwG1gtdz.mjs → dismissable-layer-CpS07KUV.mjs} +3 -3
- package/dist/dismissable-layer.d.mts +1 -1
- package/dist/dismissable-layer.mjs +1 -1
- package/dist/drag-and-drop-BjYgWGcG.mjs +918 -0
- package/dist/drag-and-drop-CagE25Kt.d.mts +47 -0
- package/dist/drag-and-drop-controller-types-DoTSR_aM.d.mts +304 -0
- package/dist/drag-and-drop.d.mts +3 -0
- package/dist/drag-and-drop.mjs +2 -0
- package/dist/empty-state-DtyOxCA4.mjs +73 -0
- package/dist/empty-state.d.mts +2 -0
- package/dist/empty-state.mjs +2 -0
- package/dist/error-summary-6Xis_769.d.mts +65 -0
- package/dist/error-summary-DMe4IlM9.mjs +209 -0
- package/dist/error-summary-types-5ePaC9O3.d.mts +74 -0
- package/dist/error-summary.d.mts +3 -0
- package/dist/error-summary.mjs +2 -0
- package/dist/field-CBs2-Z9B.mjs +254 -0
- package/dist/field-WWPaJT1x.d.mts +235 -0
- package/dist/field-wiring-9Fy-G1rf.d.mts +14 -0
- package/dist/field-wiring-runtime-fQ3GoLuG.mjs +64 -0
- package/dist/field-wiring-types-Bfyis5hO.d.mts +73 -0
- package/dist/field-wiring.d.mts +3 -0
- package/dist/field-wiring.mjs +2 -0
- package/dist/field.d.mts +2 -0
- package/dist/field.mjs +2 -0
- package/dist/{focus-CAWi_I-0.mjs → focus-XxVWOwbs.mjs} +3 -3
- package/dist/{focus-K6dOifoZ.d.mts → focus-eObxGOtP.d.mts} +2 -2
- package/dist/{focus-guards-Bt0C-0qS.d.mts → focus-guards-BZa7vm6O.d.mts} +2 -2
- package/dist/{focus-guards-DhMPQAT8.mjs → focus-guards-DSxiemx7.mjs} +4 -4
- package/dist/focus-guards.d.mts +1 -1
- package/dist/focus-guards.mjs +1 -1
- package/dist/{focus-scope-CavhKWx0.d.mts → focus-scope-CsnioDR4.d.mts} +3 -3
- package/dist/{focus-scope-dom-DBwNEWxG.mjs → focus-scope-dom-L_EC5GsX.mjs} +2 -2
- package/dist/{focus-scope-D9U1aj67.mjs → focus-scope-mEg8UoeE.mjs} +5 -5
- package/dist/focus-scope.d.mts +1 -1
- package/dist/focus-scope.mjs +1 -1
- package/dist/focus.d.mts +1 -1
- package/dist/focus.mjs +1 -1
- package/dist/form-1V2V30Sv.d.mts +20 -0
- package/dist/form-runtime-CcMDY0Iq.mjs +166 -0
- package/dist/form-types-DXwZRLcs.d.mts +183 -0
- package/dist/form.d.mts +3 -0
- package/dist/form.mjs +2 -0
- package/dist/fullscreen-button-NTbC4R0W.mjs +276 -0
- package/dist/fullscreen-button.d.mts +2 -0
- package/dist/fullscreen-button.mjs +2 -0
- package/dist/grid-BSM9h2dL.d.mts +154 -0
- package/dist/grid-DeC4Wn7Y.mjs +157 -0
- package/dist/grid.d.mts +2 -0
- package/dist/grid.mjs +2 -0
- package/dist/heading-DToVOKV3.mjs +86 -0
- package/dist/heading.d.mts +2 -0
- package/dist/heading.mjs +2 -0
- package/dist/history-BDgNOjcV.mjs +304 -0
- package/dist/history-BkcOSOWb.d.mts +157 -0
- package/dist/history.d.mts +2 -0
- package/dist/history.mjs +2 -0
- package/dist/{hover-BXwwbSaO.d.mts → hover-ZiPRiZkb.d.mts} +2 -2
- package/dist/hover.d.mts +1 -1
- package/dist/hover.mjs +1 -1
- package/dist/icon-DhTTndMu.mjs +233 -0
- package/dist/icon-button-BuXquME1.mjs +188 -0
- package/dist/icon-button.d.mts +2 -0
- package/dist/icon-button.mjs +2 -0
- package/dist/icon.d.mts +2 -0
- package/dist/icon.mjs +2 -0
- package/dist/id-BYG8aXPF.mjs +47 -0
- package/dist/id-Ba8FHjAo.d.mts +34 -0
- package/dist/id.d.mts +2 -1
- package/dist/id.mjs +3 -2
- package/dist/index.d.mts +74 -24
- package/dist/index.mjs +113 -21
- package/dist/{inert-outside-tuHRmaqJ.d.mts → inert-outside-B6KdwAHY.d.mts} +2 -2
- package/dist/{inert-outside-CyqtoKQ4.mjs → inert-outside-DOufBTyy.mjs} +4 -4
- package/dist/inert-outside.d.mts +1 -1
- package/dist/inert-outside.mjs +1 -1
- package/dist/input-Blyx59CR.mjs +256 -0
- package/dist/input-C0fgeRnS.d.mts +159 -0
- package/dist/input.d.mts +2 -0
- package/dist/input.mjs +2 -0
- package/dist/{interaction-modality-DOZK0BpZ.mjs → interaction-modality-BHnjtU4S.mjs} +3 -3
- package/dist/{interaction-modality-jgHKjPFB.d.mts → interaction-modality-BTiZ7j98.d.mts} +2 -2
- package/dist/interaction-modality.d.mts +1 -1
- package/dist/interaction-modality.mjs +1 -1
- package/dist/kbd-sJdXIdIm.mjs +66 -0
- package/dist/kbd.d.mts +2 -0
- package/dist/kbd.mjs +2 -0
- package/dist/link-DDaCjrI5.mjs +154 -0
- package/dist/link-MbRDN6wJ.d.mts +94 -0
- package/dist/link.d.mts +2 -0
- package/dist/link.mjs +2 -0
- package/dist/list-DjyCLVfG.mjs +66 -0
- package/dist/list.d.mts +2 -0
- package/dist/list.mjs +2 -0
- package/dist/listbox-IaqaoiRn.mjs +549 -0
- package/dist/listbox.d.mts +2 -0
- package/dist/listbox.mjs +2 -0
- package/dist/live-region-DYSpwCTk.mjs +48 -0
- package/dist/live-region-G1iobPK5.d.mts +67 -0
- package/dist/live-region-runtime-DVUch8Lu.mjs +62 -0
- package/dist/live-region.d.mts +2 -0
- package/dist/live-region.mjs +3 -0
- package/dist/locale-DzWqhJZs.mjs +206 -0
- package/dist/locale.d.mts +2 -0
- package/dist/locale.mjs +2 -0
- package/dist/{long-press-cll6z2K9.d.mts → long-press-DyYxp191.d.mts} +3 -3
- package/dist/{long-press-Dsul69gk.mjs → long-press-yJk5zK0j.mjs} +4 -4
- package/dist/long-press.d.mts +1 -1
- package/dist/long-press.mjs +1 -1
- package/dist/measure-4I0YOAXD.d.mts +97 -0
- package/dist/measure-runtime-C4qYJp3_.mjs +170 -0
- package/dist/measure.d.mts +2 -0
- package/dist/measure.mjs +2 -0
- package/dist/media-pdf.d.mts +1 -1
- package/dist/media-pdf.mjs +1 -1
- package/dist/media-source.d.mts +1 -1
- package/dist/media-source.mjs +1 -1
- package/dist/media.d.mts +1 -1
- package/dist/media.mjs +1 -1
- package/dist/meter-B3m17_8g.d.mts +174 -0
- package/dist/meter-BwOXVWH8.mjs +243 -0
- package/dist/meter.d.mts +2 -0
- package/dist/meter.mjs +2 -0
- package/dist/motion-OdERKfZR.mjs +174 -0
- package/dist/motion-iUSBdWaI.d.mts +98 -0
- package/dist/motion.d.mts +2 -0
- package/dist/motion.mjs +2 -0
- package/dist/{move-BOmXDYbh.d.mts → move-BJGaV7Y9.d.mts} +2 -2
- package/dist/move-internal-BM_7g70h.mjs +172 -0
- package/dist/move.d.mts +1 -1
- package/dist/move.mjs +216 -1
- package/dist/native-select-H9qvaqQH.mjs +309 -0
- package/dist/native-select.d.mts +2 -0
- package/dist/native-select.mjs +2 -0
- package/dist/pagination-Bs4SBSE4.mjs +791 -0
- package/dist/pagination.d.mts +2 -0
- package/dist/pagination.mjs +2 -0
- package/dist/{pdf-source-zu1LkCeE.mjs → pdf-source-B5JSDKkQ.mjs} +1 -1
- package/dist/{pdf-source-BYFK2Pks.d.mts → pdf-source-adS6ZSmR.d.mts} +1 -1
- package/dist/pointer-grace-CAFcO4om.d.mts +57 -0
- package/dist/pointer-grace-DI0G3oRJ.mjs +162 -0
- package/dist/pointer-grace.d.mts +2 -0
- package/dist/pointer-grace.mjs +2 -0
- package/dist/popover-DeENBKXE.mjs +714 -0
- package/dist/popover.d.mts +2 -0
- package/dist/popover.mjs +2 -0
- package/dist/portal-DeHaLxGL.mjs +114 -0
- package/dist/portal-DhWXejr1.d.mts +71 -0
- package/dist/portal.d.mts +2 -0
- package/dist/portal.mjs +2 -0
- package/dist/positioner-BYJVA3Uy.d.mts +477 -0
- package/dist/positioner-BYmQk86M.mjs +38 -0
- package/dist/positioner-DaPo2YxM.mjs +708 -0
- package/dist/positioner.d.mts +2 -0
- package/dist/positioner.mjs +3 -0
- package/dist/presence-Bhv1qtvn.d.mts +57 -0
- package/dist/presence-CTG1EV3w.mjs +62 -0
- package/dist/presence-runtime-CYwCafSh.mjs +105 -0
- package/dist/presence-types-CRB4HbML.d.mts +45 -0
- package/dist/presence.d.mts +3 -0
- package/dist/presence.mjs +3 -0
- package/dist/{press-N_mE3Mgx.mjs → press-BjLm6bKg.mjs} +6 -6
- package/dist/press-R0_juZq2.d.mts +14 -0
- package/dist/{press-event-Cd2OPpmw.mjs → press-event-xlWYF9py.mjs} +1 -1
- package/dist/{press-types-CNqStzJf.d.mts → press-types-DfTNpqby.d.mts} +1 -1
- package/dist/press.d.mts +2 -13
- package/dist/press.mjs +1 -1
- package/dist/{primitive-C8jW7DLd.d.mts → primitive-BE2mdUcw.d.mts} +2 -2
- package/dist/{primitive-BX31dogp.mjs → primitive-beb2EEOc.mjs} +5 -5
- package/dist/primitive.d.mts +1 -1
- package/dist/primitive.mjs +2 -2
- package/dist/print-button-FqD5HqTV.mjs +206 -0
- package/dist/print-button.d.mts +2 -0
- package/dist/print-button.mjs +2 -0
- package/dist/progress--vbV2wTx.mjs +145 -0
- package/dist/progress-C4PlKwWq.d.mts +128 -0
- package/dist/progress-bar-BqS94auR.mjs +301 -0
- package/dist/progress-bar.d.mts +2 -0
- package/dist/progress-bar.mjs +2 -0
- package/dist/progress.d.mts +2 -0
- package/dist/progress.mjs +2 -0
- package/dist/radio-group-DbTmWcxl.mjs +317 -0
- package/dist/radio-group.d.mts +2 -0
- package/dist/radio-group.mjs +2 -0
- package/dist/rating-BjKLGPP6.mjs +569 -0
- package/dist/rating-souDdL9t.d.mts +273 -0
- package/dist/rating.d.mts +2 -0
- package/dist/rating.mjs +2 -0
- package/dist/scroll-area-BRSwoi9w.mjs +338 -0
- package/dist/scroll-area.d.mts +2 -0
- package/dist/scroll-area.mjs +2 -0
- package/dist/{scroll-lock-Ckbmm0-J.mjs → scroll-lock-BcmK0baN.mjs} +4 -4
- package/dist/{scroll-lock-BgVtX4wT.d.mts → scroll-lock-OfSQnfi0.d.mts} +2 -2
- package/dist/scroll-lock.d.mts +1 -1
- package/dist/scroll-lock.mjs +1 -1
- package/dist/search-field-70Kr2616.mjs +319 -0
- package/dist/search-field-Biw9vApG.d.mts +158 -0
- package/dist/search-field.d.mts +2 -0
- package/dist/search-field.mjs +2 -0
- package/dist/separator-CnNDqbdR.d.mts +59 -0
- package/dist/separator-DDj3tEAz.mjs +66 -0
- package/dist/separator.d.mts +2 -0
- package/dist/separator.mjs +2 -0
- package/dist/share-button-DfvUDFC-.mjs +243 -0
- package/dist/share-button.d.mts +2 -0
- package/dist/share-button.mjs +2 -0
- package/dist/shortcut-CvA_o0_F.mjs +631 -0
- package/dist/shortcut-DAZJ9LEd.d.mts +231 -0
- package/dist/shortcut.d.mts +2 -0
- package/dist/shortcut.mjs +2 -0
- package/dist/skeleton-BYXXcwTH.mjs +101 -0
- package/dist/skeleton-CQW-Tsnt.d.mts +99 -0
- package/dist/skeleton.d.mts +2 -0
- package/dist/skeleton.mjs +2 -0
- package/dist/skip-link-BUp9HXXt.mjs +164 -0
- package/dist/skip-link-DHDrtnP2.d.mts +98 -0
- package/dist/skip-link.d.mts +2 -0
- package/dist/skip-link.mjs +2 -0
- package/dist/slider-BiZSZLDp.mjs +475 -0
- package/dist/slider-CYBbxeNy.d.mts +246 -0
- package/dist/slider.d.mts +2 -0
- package/dist/slider.mjs +2 -0
- package/dist/sortable-BntjgYra.mjs +499 -0
- package/dist/sortable-DQl92bwo.d.mts +206 -0
- package/dist/sortable.d.mts +2 -0
- package/dist/sortable.mjs +2 -0
- package/dist/spacer-Bc0dInvi.mjs +117 -0
- package/dist/spacer-DFstG4G-.d.mts +105 -0
- package/dist/spacer.d.mts +2 -0
- package/dist/spacer.mjs +2 -0
- package/dist/{spatial-navigation-CHj9mDZH.d.mts → spatial-navigation-BPVJGSiJ.d.mts} +3 -3
- package/dist/{spatial-navigation-D6-UDavU.mjs → spatial-navigation-DwcUYMyc.mjs} +2 -2
- package/dist/spatial-navigation.d.mts +1 -1
- package/dist/spatial-navigation.mjs +1 -1
- package/dist/spinner-JnRs8fp-.d.mts +155 -0
- package/dist/spinner-bizL-oOg.mjs +200 -0
- package/dist/spinner.d.mts +2 -0
- package/dist/spinner.mjs +2 -0
- package/dist/stack-C7DOIxo-.mjs +137 -0
- package/dist/stack-CPtBckZB.d.mts +127 -0
- package/dist/stack.d.mts +2 -0
- package/dist/stack.mjs +2 -0
- package/dist/status-light-BGWgQRRf.mjs +125 -0
- package/dist/status-light.d.mts +2 -0
- package/dist/status-light.mjs +2 -0
- package/dist/stepper-CwX6BZaN.mjs +912 -0
- package/dist/stepper.d.mts +2 -0
- package/dist/stepper.mjs +2 -0
- package/dist/style.css +1 -1
- package/dist/surface-C2fnxL3g.mjs +102 -0
- package/dist/surface.d.mts +2 -0
- package/dist/surface.mjs +2 -0
- package/dist/switch-Ck5YmfXb.mjs +197 -0
- package/dist/switch.d.mts +2 -0
- package/dist/switch.mjs +2 -0
- package/dist/table-BxU7htxc.mjs +349 -0
- package/dist/table-Ce3yWwlH.d.mts +415 -0
- package/dist/table.d.mts +2 -0
- package/dist/table.mjs +2 -0
- package/dist/tabs-DSXIomI_.mjs +595 -0
- package/dist/tabs.d.mts +2 -0
- package/dist/tabs.mjs +2 -0
- package/dist/text-BVeNKPiv.mjs +76 -0
- package/dist/text.d.mts +2 -0
- package/dist/text.mjs +2 -0
- package/dist/textarea-4eIDNcvv.d.mts +175 -0
- package/dist/textarea-BZimEPBR.mjs +279 -0
- package/dist/textarea.d.mts +2 -0
- package/dist/textarea.mjs +2 -0
- package/dist/theme-C8Crmb8V.mjs +139 -0
- package/dist/theme-CNK06Pja.d.mts +38 -0
- package/dist/theme-constants-DAwnxG-P.mjs +29 -0
- package/dist/theme-preset-atelier.css +1 -0
- package/dist/theme-preset-headless.css +1 -0
- package/dist/theme-preset-high-contrast.css +1 -0
- package/dist/theme-preset-midnight.css +1 -0
- package/dist/theme-preset-paper.css +1 -0
- package/dist/theme-preset-play.css +1 -0
- package/dist/theme-preset-signal.css +1 -0
- package/dist/theme-scope.d.mts +25 -0
- package/dist/theme-scope.mjs +89 -0
- package/dist/theme-types-CkIa4Sa3.d.mts +71 -0
- package/dist/theme.css +1 -0
- package/dist/theme.d.mts +3 -0
- package/dist/theme.mjs +3 -0
- package/dist/toggle-CBTXzwze.mjs +141 -0
- package/dist/toggle-group-DO7eGEs3.d.mts +147 -0
- package/dist/toggle-group-DybU9N7k.mjs +523 -0
- package/dist/toggle-group.d.mts +2 -0
- package/dist/toggle-group.mjs +2 -0
- package/dist/toggle.d.mts +2 -0
- package/dist/toggle.mjs +2 -0
- package/dist/toolbar-CIU1bor0.d.mts +259 -0
- package/dist/toolbar-CXE8YCX-.mjs +425 -0
- package/dist/toolbar.d.mts +2 -0
- package/dist/toolbar.mjs +2 -0
- package/dist/tooltip-Cgii5xMx.mjs +485 -0
- package/dist/tooltip.d.mts +2 -0
- package/dist/tooltip.mjs +2 -0
- package/dist/transition-BmgFyzA6.mjs +168 -0
- package/dist/transition-BtIWNEFU.d.mts +82 -0
- package/dist/transition.d.mts +2 -0
- package/dist/transition.mjs +2 -0
- package/dist/{typeahead-B7KDxE_u.mjs → typeahead-DZSBI5m5.mjs} +2 -2
- package/dist/{typeahead-BbgUB2Bj.d.mts → typeahead-Dl6w5PAN.d.mts} +3 -3
- package/dist/typeahead.d.mts +1 -1
- package/dist/typeahead.mjs +1 -1
- package/dist/virtualizer-BlxKjT3W.mjs +793 -0
- package/dist/virtualizer-D9qfT4wS.d.mts +349 -0
- package/dist/virtualizer.d.mts +2 -0
- package/dist/virtualizer.mjs +2 -0
- package/dist/{visually-hidden-BOqfqBFt.d.mts → visually-hidden-CUr9BX0K.d.mts} +1 -1
- package/dist/{visually-hidden-BwDOx5yf.mjs → visually-hidden-SDjRJYRK.mjs} +5 -5
- package/dist/visually-hidden.d.mts +1 -1
- package/dist/visually-hidden.mjs +2 -2
- package/package.json +426 -7
- package/dist/checkbox-DP3_ko7D.d.mts +0 -61
- package/dist/move-BVvMHzxr.mjs +0 -386
package/dist/popover.mjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { i as popover_root_default, n as popover_content_default, r as popover_arrow_default, t as popover_trigger_default } from "./popover-DeENBKXE.mjs";
|
|
2
|
+
export { popover_root_default as Popover, popover_root_default as PopoverRoot, popover_arrow_default as PopoverArrow, popover_content_default as PopoverContent, popover_trigger_default as PopoverTrigger };
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BOaGB7Aw.mjs";
|
|
2
|
+
import { Teleport, computed, createBlock, createElementBlock, createElementVNode, defineComponent, inject, onMounted, onUnmounted, openBlock, provide, ref, renderSlot, shallowReadonly, shallowRef, unref, useTemplateRef } from "vue";
|
|
3
|
+
//#region src/families/overlays/portal/portal-stack.ts
|
|
4
|
+
/**
|
|
5
|
+
* Injection key carrying the nesting depth of the closest portal ancestor.
|
|
6
|
+
*
|
|
7
|
+
* `Portal` provides `depth + 1` for its subtree, so nesting survives
|
|
8
|
+
* relocation: injection follows the component tree, not the document.
|
|
9
|
+
*/
|
|
10
|
+
const portalDepthKey = Symbol("PortalDepth");
|
|
11
|
+
let sequence = 0;
|
|
12
|
+
const order = /* @__PURE__ */ new Map();
|
|
13
|
+
const entries = shallowRef(Object.freeze([]));
|
|
14
|
+
function sortedEntries() {
|
|
15
|
+
return Object.freeze([...order.keys()].sort((left, right) => {
|
|
16
|
+
if (left.depth !== right.depth) return left.depth - right.depth;
|
|
17
|
+
return (order.get(left) ?? 0) - (order.get(right) ?? 0);
|
|
18
|
+
}));
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Track one mounted portal layer and return its release callback.
|
|
22
|
+
*
|
|
23
|
+
* Registration happens client-side only (`Portal` registers on mount), so the
|
|
24
|
+
* stack never accumulates request-global state during server rendering.
|
|
25
|
+
*/
|
|
26
|
+
function registerPortalLayer(entry) {
|
|
27
|
+
sequence += 1;
|
|
28
|
+
order.set(entry, sequence);
|
|
29
|
+
entries.value = sortedEntries();
|
|
30
|
+
return () => {
|
|
31
|
+
if (!order.delete(entry)) return;
|
|
32
|
+
entries.value = sortedEntries();
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Live, shared list of mounted portal layers.
|
|
37
|
+
*
|
|
38
|
+
* Entries are ordered shallow-to-deep (ties resolve by registration), so the
|
|
39
|
+
* last entry is the layer that should sit on top.
|
|
40
|
+
*/
|
|
41
|
+
function usePortalStack() {
|
|
42
|
+
return shallowReadonly(entries);
|
|
43
|
+
}
|
|
44
|
+
/** The deepest (visually topmost) mounted portal layer, if any. */
|
|
45
|
+
function topPortalLayer() {
|
|
46
|
+
return entries.value.at(-1) ?? null;
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region src/families/overlays/portal/portal.vue?vue&type=script&setup=true&lang.ts
|
|
50
|
+
const _hoisted_1 = { "data-vize-ui": "portal-host" };
|
|
51
|
+
const _hoisted_2 = ["data-vize-portal-depth"];
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/families/overlays/portal/portal.vue
|
|
54
|
+
var portal_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
55
|
+
__name: "portal",
|
|
56
|
+
props: {
|
|
57
|
+
to: {
|
|
58
|
+
type: null,
|
|
59
|
+
required: false,
|
|
60
|
+
default: "body"
|
|
61
|
+
},
|
|
62
|
+
disabled: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
required: false,
|
|
65
|
+
default: false
|
|
66
|
+
},
|
|
67
|
+
defer: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
required: false,
|
|
70
|
+
default: true
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
setup(__props, { expose: __expose }) {
|
|
74
|
+
const depth = inject(portalDepthKey, 0);
|
|
75
|
+
provide(portalDepthKey, depth + 1);
|
|
76
|
+
const hydrated = ref(false);
|
|
77
|
+
const element = useTemplateRef("element");
|
|
78
|
+
let releaseLayer = null;
|
|
79
|
+
onMounted(() => {
|
|
80
|
+
hydrated.value = true;
|
|
81
|
+
if (element.value) releaseLayer = registerPortalLayer({
|
|
82
|
+
depth,
|
|
83
|
+
element: element.value
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
onUnmounted(() => {
|
|
87
|
+
releaseLayer?.();
|
|
88
|
+
releaseLayer = null;
|
|
89
|
+
});
|
|
90
|
+
const teleportDisabled = computed(() => __props.disabled || !hydrated.value);
|
|
91
|
+
__expose({
|
|
92
|
+
depth,
|
|
93
|
+
element
|
|
94
|
+
});
|
|
95
|
+
return (_ctx, _cache) => {
|
|
96
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [(openBlock(), createBlock(Teleport, {
|
|
97
|
+
to: __props.to,
|
|
98
|
+
disabled: teleportDisabled.value,
|
|
99
|
+
defer: __props.defer
|
|
100
|
+
}, [createElementVNode("div", {
|
|
101
|
+
ref_key: "element",
|
|
102
|
+
ref: element,
|
|
103
|
+
"data-vize-ui": "portal",
|
|
104
|
+
"data-vize-portal-depth": unref(depth)
|
|
105
|
+
}, [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 8, _hoisted_2)], 8, [
|
|
106
|
+
"to",
|
|
107
|
+
"disabled",
|
|
108
|
+
"defer"
|
|
109
|
+
]))]);
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
}), [["__scopeId", "data-v-81fc0553"]]);
|
|
113
|
+
//#endregion
|
|
114
|
+
export { usePortalStack as a, topPortalLayer as i, portalDepthKey as n, registerPortalLayer as r, portal_default as t };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { InjectionKey, ShallowRef } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region src/families/overlays/portal/portal-stack.d.ts
|
|
4
|
+
/** One mounted portal layer tracked by the shared nested-portal stack. */
|
|
5
|
+
interface PortalStackEntry {
|
|
6
|
+
/** Number of portal ancestors above this layer. Root portals report `0`. */
|
|
7
|
+
readonly depth: number;
|
|
8
|
+
/** Portalled node that hosts this layer's content. */
|
|
9
|
+
readonly element: HTMLElement;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Injection key carrying the nesting depth of the closest portal ancestor.
|
|
13
|
+
*
|
|
14
|
+
* `Portal` provides `depth + 1` for its subtree, so nesting survives
|
|
15
|
+
* relocation: injection follows the component tree, not the document.
|
|
16
|
+
*/
|
|
17
|
+
declare const portalDepthKey: InjectionKey<number>;
|
|
18
|
+
/**
|
|
19
|
+
* Track one mounted portal layer and return its release callback.
|
|
20
|
+
*
|
|
21
|
+
* Registration happens client-side only (`Portal` registers on mount), so the
|
|
22
|
+
* stack never accumulates request-global state during server rendering.
|
|
23
|
+
*/
|
|
24
|
+
declare function registerPortalLayer(entry: PortalStackEntry): () => void;
|
|
25
|
+
/**
|
|
26
|
+
* Live, shared list of mounted portal layers.
|
|
27
|
+
*
|
|
28
|
+
* Entries are ordered shallow-to-deep (ties resolve by registration), so the
|
|
29
|
+
* last entry is the layer that should sit on top.
|
|
30
|
+
*/
|
|
31
|
+
declare function usePortalStack(): Readonly<ShallowRef<readonly PortalStackEntry[]>>;
|
|
32
|
+
/** The deepest (visually topmost) mounted portal layer, if any. */
|
|
33
|
+
declare function topPortalLayer(): PortalStackEntry | null;
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region src/families/overlays/portal/portal.vue.d.ts
|
|
36
|
+
type __VLS_Props = {
|
|
37
|
+
/**
|
|
38
|
+
* CSS selector or element the content is moved into.
|
|
39
|
+
*
|
|
40
|
+
* @default "body"
|
|
41
|
+
*/
|
|
42
|
+
readonly to?: string | HTMLElement;
|
|
43
|
+
/**
|
|
44
|
+
* Render in place instead of moving the content.
|
|
45
|
+
*
|
|
46
|
+
* @default false
|
|
47
|
+
*/
|
|
48
|
+
readonly disabled?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Keep content in place until the target exists, avoiding SSR mismatch.
|
|
51
|
+
*
|
|
52
|
+
* @default true
|
|
53
|
+
*/
|
|
54
|
+
readonly defer?: boolean;
|
|
55
|
+
};
|
|
56
|
+
type __VLS_Slots = {
|
|
57
|
+
/** Portalled contents. */default(): unknown;
|
|
58
|
+
};
|
|
59
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
60
|
+
depth: number;
|
|
61
|
+
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
62
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
63
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
64
|
+
declare const _default: typeof __VLS_export;
|
|
65
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
66
|
+
new (): {
|
|
67
|
+
$slots: S;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
//#endregion
|
|
71
|
+
export { topPortalLayer as a, registerPortalLayer as i, PortalStackEntry as n, usePortalStack as o, portalDepthKey as r, _default as t };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as topPortalLayer, i as registerPortalLayer, n as PortalStackEntry, o as usePortalStack, r as portalDepthKey, t as _default } from "./portal-DhWXejr1.mjs";
|
|
2
|
+
export { _default as Portal, type PortalStackEntry, portalDepthKey, registerPortalLayer, topPortalLayer, usePortalStack };
|
package/dist/portal.mjs
ADDED
|
@@ -0,0 +1,477 @@
|
|
|
1
|
+
import { MaybeRefOrGetter, ShallowRef } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region src/families/overlays/positioner/positioner-types.d.ts
|
|
4
|
+
/** Axis a floating element prefers relative to its reference. */
|
|
5
|
+
type PlacementSide = "bottom" | "left" | "right" | "top";
|
|
6
|
+
/** Alignment along the cross axis. */
|
|
7
|
+
type PlacementAlign = "center" | "end" | "start";
|
|
8
|
+
/**
|
|
9
|
+
* Named placement used by the positioner.
|
|
10
|
+
*
|
|
11
|
+
* Spelled as an explicit union (rather than a template-literal cross of
|
|
12
|
+
* side and align) so SFC prop-default checking can evaluate membership.
|
|
13
|
+
*/
|
|
14
|
+
type Placement = PlacementSide | "bottom-center" | "bottom-end" | "bottom-start" | "left-center" | "left-end" | "left-start" | "right-center" | "right-end" | "right-start" | "top-center" | "top-end" | "top-start";
|
|
15
|
+
/** How floating coordinates are published to CSS. */
|
|
16
|
+
type PositionerStrategy = "absolute" | "fixed";
|
|
17
|
+
/** Axis-aligned box in viewport coordinates. */
|
|
18
|
+
interface Rect {
|
|
19
|
+
readonly height: number;
|
|
20
|
+
readonly width: number;
|
|
21
|
+
readonly x: number;
|
|
22
|
+
readonly y: number;
|
|
23
|
+
}
|
|
24
|
+
/** Per-edge insets applied to the active viewport. */
|
|
25
|
+
interface SafeAreaInsets {
|
|
26
|
+
readonly bottom: number;
|
|
27
|
+
readonly left: number;
|
|
28
|
+
readonly right: number;
|
|
29
|
+
readonly top: number;
|
|
30
|
+
}
|
|
31
|
+
/** Space a floating element may occupy at a resolved placement. */
|
|
32
|
+
interface AvailableSize {
|
|
33
|
+
readonly height: number;
|
|
34
|
+
readonly width: number;
|
|
35
|
+
}
|
|
36
|
+
/** Inputs for the pure available-space measurement. */
|
|
37
|
+
interface AvailableSizeInput {
|
|
38
|
+
/**
|
|
39
|
+
* Viewport padding the floating element should not cross.
|
|
40
|
+
*
|
|
41
|
+
* @default 0
|
|
42
|
+
*/
|
|
43
|
+
readonly collisionPadding?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Gap on the main axis between reference and floating.
|
|
46
|
+
*
|
|
47
|
+
* @default 0
|
|
48
|
+
*/
|
|
49
|
+
readonly offset?: number;
|
|
50
|
+
/** Placement after collision handling. */
|
|
51
|
+
readonly placement: Placement;
|
|
52
|
+
/** Reference box. */
|
|
53
|
+
readonly reference: Rect;
|
|
54
|
+
/** Visible viewport the floating element must stay inside. */
|
|
55
|
+
readonly viewport: Rect;
|
|
56
|
+
}
|
|
57
|
+
/** Measurement source accepted in place of a live element. */
|
|
58
|
+
interface VirtualElement {
|
|
59
|
+
readonly getBoundingClientRect: () => Rect | DOMRect;
|
|
60
|
+
}
|
|
61
|
+
/** Reference or floating node the positioner can measure. */
|
|
62
|
+
type PositionerElement = Element | VirtualElement;
|
|
63
|
+
/** Inputs for the pure collision solver. */
|
|
64
|
+
interface ComputePositionInput {
|
|
65
|
+
/**
|
|
66
|
+
* Arrow box used to clamp the arrow along the facing edge.
|
|
67
|
+
*
|
|
68
|
+
* @default null
|
|
69
|
+
*/
|
|
70
|
+
readonly arrow?: Rect | null;
|
|
71
|
+
/**
|
|
72
|
+
* Inset kept between the arrow and floating edges.
|
|
73
|
+
*
|
|
74
|
+
* @default 0
|
|
75
|
+
*/
|
|
76
|
+
readonly arrowPadding?: number;
|
|
77
|
+
/**
|
|
78
|
+
* Viewport padding the floating element should not cross.
|
|
79
|
+
*
|
|
80
|
+
* @default 0
|
|
81
|
+
*/
|
|
82
|
+
readonly collisionPadding?: number;
|
|
83
|
+
/**
|
|
84
|
+
* Flip to the opposite side when the preferred side overflows more.
|
|
85
|
+
*
|
|
86
|
+
* @default true
|
|
87
|
+
*/
|
|
88
|
+
readonly flip?: boolean;
|
|
89
|
+
/** Measured floating size. */
|
|
90
|
+
readonly floating: Pick<Rect, "height" | "width">;
|
|
91
|
+
/**
|
|
92
|
+
* Hide when the reference no longer intersects the viewport.
|
|
93
|
+
*
|
|
94
|
+
* @default true
|
|
95
|
+
*/
|
|
96
|
+
readonly hide?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Gap on the main axis between reference and floating.
|
|
99
|
+
*
|
|
100
|
+
* @default 0
|
|
101
|
+
*/
|
|
102
|
+
readonly offset?: number;
|
|
103
|
+
/**
|
|
104
|
+
* Preferred placement before collision handling.
|
|
105
|
+
*
|
|
106
|
+
* @default "bottom"
|
|
107
|
+
*/
|
|
108
|
+
readonly placement?: Placement;
|
|
109
|
+
/** Reference box. */
|
|
110
|
+
readonly reference: Rect;
|
|
111
|
+
/**
|
|
112
|
+
* Mirror start/end on horizontal placements.
|
|
113
|
+
*
|
|
114
|
+
* @default false
|
|
115
|
+
*/
|
|
116
|
+
readonly rtl?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Shift the floating box back into the viewport after flip.
|
|
119
|
+
*
|
|
120
|
+
* @default true
|
|
121
|
+
*/
|
|
122
|
+
readonly shift?: boolean;
|
|
123
|
+
/** Visible viewport the floating element must stay inside. */
|
|
124
|
+
readonly viewport: Rect;
|
|
125
|
+
}
|
|
126
|
+
/** Result of {@link computePosition}. */
|
|
127
|
+
interface ComputePositionResult {
|
|
128
|
+
readonly arrowX: number | null;
|
|
129
|
+
readonly arrowY: number | null;
|
|
130
|
+
readonly hidden: boolean;
|
|
131
|
+
readonly overflow: Readonly<{
|
|
132
|
+
readonly bottom: number;
|
|
133
|
+
readonly left: number;
|
|
134
|
+
readonly right: number;
|
|
135
|
+
readonly top: number;
|
|
136
|
+
}>;
|
|
137
|
+
readonly placement: Placement;
|
|
138
|
+
readonly x: number;
|
|
139
|
+
readonly y: number;
|
|
140
|
+
}
|
|
141
|
+
/** Options shared by {@link createPositioner} and {@link usePositioner}. */
|
|
142
|
+
interface PositionerOptions {
|
|
143
|
+
/**
|
|
144
|
+
* Inset kept between the arrow and floating edges.
|
|
145
|
+
*
|
|
146
|
+
* @default 0
|
|
147
|
+
*/
|
|
148
|
+
readonly arrowPadding?: MaybeRefOrGetter<number | undefined>;
|
|
149
|
+
/**
|
|
150
|
+
* Viewport padding the floating element should not cross.
|
|
151
|
+
*
|
|
152
|
+
* @default 0
|
|
153
|
+
*/
|
|
154
|
+
readonly collisionPadding?: MaybeRefOrGetter<number | undefined>;
|
|
155
|
+
/**
|
|
156
|
+
* Writing direction used to resolve start/end alignment.
|
|
157
|
+
*
|
|
158
|
+
* @default "ltr"
|
|
159
|
+
*/
|
|
160
|
+
readonly direction?: MaybeRefOrGetter<"ltr" | "rtl" | undefined>;
|
|
161
|
+
/**
|
|
162
|
+
* Flip to the opposite side when the preferred side overflows more.
|
|
163
|
+
*
|
|
164
|
+
* @default true
|
|
165
|
+
*/
|
|
166
|
+
readonly flip?: MaybeRefOrGetter<boolean | undefined>;
|
|
167
|
+
/**
|
|
168
|
+
* Hide when the reference no longer intersects the viewport.
|
|
169
|
+
*
|
|
170
|
+
* @default true
|
|
171
|
+
*/
|
|
172
|
+
readonly hide?: MaybeRefOrGetter<boolean | undefined>;
|
|
173
|
+
/**
|
|
174
|
+
* Gap on the main axis between reference and floating.
|
|
175
|
+
*
|
|
176
|
+
* @default 0
|
|
177
|
+
*/
|
|
178
|
+
readonly offset?: MaybeRefOrGetter<number | undefined>;
|
|
179
|
+
/**
|
|
180
|
+
* Preferred placement before collision handling.
|
|
181
|
+
*
|
|
182
|
+
* @default "bottom"
|
|
183
|
+
*/
|
|
184
|
+
readonly placement?: MaybeRefOrGetter<Placement | undefined>;
|
|
185
|
+
/**
|
|
186
|
+
* Inset the active viewport by `env(safe-area-inset-*)` before collision
|
|
187
|
+
* handling, keeping floating content clear of notches and rounded corners.
|
|
188
|
+
*
|
|
189
|
+
* @default false
|
|
190
|
+
*/
|
|
191
|
+
readonly safeArea?: MaybeRefOrGetter<boolean | undefined>;
|
|
192
|
+
/**
|
|
193
|
+
* Shift the floating box back into the viewport after flip.
|
|
194
|
+
*
|
|
195
|
+
* @default true
|
|
196
|
+
*/
|
|
197
|
+
readonly shift?: MaybeRefOrGetter<boolean | undefined>;
|
|
198
|
+
/**
|
|
199
|
+
* Constrain the floating host to the available space with
|
|
200
|
+
* `max-width`/`max-height` and publish
|
|
201
|
+
* `--vize-ui-positioner-available-width` and
|
|
202
|
+
* `--vize-ui-positioner-available-height` custom properties.
|
|
203
|
+
*
|
|
204
|
+
* @default false
|
|
205
|
+
*/
|
|
206
|
+
readonly size?: MaybeRefOrGetter<boolean | undefined>;
|
|
207
|
+
/**
|
|
208
|
+
* CSS positioning mode published on the floating host.
|
|
209
|
+
*
|
|
210
|
+
* @default "fixed"
|
|
211
|
+
*/
|
|
212
|
+
readonly strategy?: MaybeRefOrGetter<PositionerStrategy | undefined>;
|
|
213
|
+
/**
|
|
214
|
+
* Recalculate when the document or visual viewport resizes.
|
|
215
|
+
*
|
|
216
|
+
* @default true
|
|
217
|
+
*/
|
|
218
|
+
readonly updateOnResize?: MaybeRefOrGetter<boolean | undefined>;
|
|
219
|
+
/**
|
|
220
|
+
* Recalculate while ancestors scroll.
|
|
221
|
+
*
|
|
222
|
+
* @default true
|
|
223
|
+
*/
|
|
224
|
+
readonly updateOnScroll?: MaybeRefOrGetter<boolean | undefined>;
|
|
225
|
+
/**
|
|
226
|
+
* Viewport used for flip, shift, and hide. Defaults to the visual viewport.
|
|
227
|
+
*
|
|
228
|
+
* @default undefined
|
|
229
|
+
*/
|
|
230
|
+
readonly viewport?: MaybeRefOrGetter<Rect | undefined>;
|
|
231
|
+
}
|
|
232
|
+
/** Inline style string spread onto the floating host. */
|
|
233
|
+
type PositionerStyle = string;
|
|
234
|
+
/** Inline style string spread onto the arrow. */
|
|
235
|
+
type PositionerArrowStyle = string;
|
|
236
|
+
/** Stateful collision-aware floating placement controller. */
|
|
237
|
+
interface PositionerController {
|
|
238
|
+
/** Arrow coordinates relative to the floating origin, when measured. */
|
|
239
|
+
readonly arrowX: Readonly<ShallowRef<number | null>>;
|
|
240
|
+
/** Available height at the resolved placement, once measured. */
|
|
241
|
+
readonly availableHeight: Readonly<ShallowRef<number | null>>;
|
|
242
|
+
/** Available width at the resolved placement, once measured. */
|
|
243
|
+
readonly availableWidth: Readonly<ShallowRef<number | null>>;
|
|
244
|
+
/** Arrow coordinates relative to the floating origin, when measured. */
|
|
245
|
+
readonly arrowY: Readonly<ShallowRef<number | null>>;
|
|
246
|
+
/** Stable inline styles for the arrow node. */
|
|
247
|
+
readonly arrowStyle: Readonly<ShallowRef<PositionerArrowStyle>>;
|
|
248
|
+
/** Release listeners and freeze the controller. */
|
|
249
|
+
readonly dispose: () => void;
|
|
250
|
+
/** Whether the reference is considered off-screen. */
|
|
251
|
+
readonly hidden: Readonly<ShallowRef<boolean>>;
|
|
252
|
+
/** Whether coordinates have been measured at least once. */
|
|
253
|
+
readonly ready: Readonly<ShallowRef<boolean>>;
|
|
254
|
+
/** Placement after flip. */
|
|
255
|
+
readonly resolvedPlacement: Readonly<ShallowRef<Placement>>;
|
|
256
|
+
/** Bind the arrow node used for clamping. */
|
|
257
|
+
readonly setArrow: (element: PositionerElement | null) => void;
|
|
258
|
+
/** Bind the floating node that occupies the positioned box. */
|
|
259
|
+
readonly setFloating: (element: PositionerElement | null) => void;
|
|
260
|
+
/** Bind the reference node or virtual element. */
|
|
261
|
+
readonly setReference: (element: PositionerElement | null) => void;
|
|
262
|
+
/** CSS strategy currently applied. */
|
|
263
|
+
readonly strategy: Readonly<ShallowRef<PositionerStrategy>>;
|
|
264
|
+
/** Stable inline styles for the floating host. */
|
|
265
|
+
readonly style: Readonly<ShallowRef<PositionerStyle>>;
|
|
266
|
+
/** Recompute from the latest measurements. */
|
|
267
|
+
readonly update: () => void;
|
|
268
|
+
/** Viewport-relative (or offset-parent-relative) x. */
|
|
269
|
+
readonly x: Readonly<ShallowRef<number>>;
|
|
270
|
+
/** Viewport-relative (or offset-parent-relative) y. */
|
|
271
|
+
readonly y: Readonly<ShallowRef<number>>;
|
|
272
|
+
}
|
|
273
|
+
//#endregion
|
|
274
|
+
//#region src/families/overlays/positioner/positioner-geometry.d.ts
|
|
275
|
+
/** Parse a placement token into side and alignment. */
|
|
276
|
+
declare function parsePlacement(placement: Placement): {
|
|
277
|
+
readonly align: PlacementAlign;
|
|
278
|
+
readonly side: PlacementSide;
|
|
279
|
+
};
|
|
280
|
+
/**
|
|
281
|
+
* Place a floating box next to a reference, flipping and shifting to stay in view.
|
|
282
|
+
*/
|
|
283
|
+
declare function computePosition(input: ComputePositionInput): ComputePositionResult;
|
|
284
|
+
/** Normalize DOMRect-like measurements into a plain {@link Rect}. */
|
|
285
|
+
declare function readRect(value: Rect | DOMRect): Rect;
|
|
286
|
+
//#endregion
|
|
287
|
+
//#region src/families/overlays/positioner/positioner-runtime.d.ts
|
|
288
|
+
/** Create an SSR-safe floating placement controller. */
|
|
289
|
+
declare function createPositioner(options?: PositionerOptions): PositionerController;
|
|
290
|
+
/** Create a positioner disposed with the current Vue effect scope. */
|
|
291
|
+
declare function usePositioner(options?: PositionerOptions): PositionerController;
|
|
292
|
+
//#endregion
|
|
293
|
+
//#region src/families/overlays/positioner/positioner-size.d.ts
|
|
294
|
+
/**
|
|
295
|
+
* Measure the space a floating element may occupy at a resolved placement.
|
|
296
|
+
*
|
|
297
|
+
* The main axis stops at the reference edge (minus the configured offset);
|
|
298
|
+
* the cross axis spans the viewport. Both respect the collision padding and
|
|
299
|
+
* never go negative, mirroring how flip and shift read the same viewport.
|
|
300
|
+
*/
|
|
301
|
+
declare function computeAvailableSize(input: AvailableSizeInput): AvailableSize;
|
|
302
|
+
/**
|
|
303
|
+
* Publish available space as host constraints and CSS custom properties.
|
|
304
|
+
*
|
|
305
|
+
* The returned fragment is appended to the floating host style when the
|
|
306
|
+
* `size` strategy is enabled: `max-width`/`max-height` clamp the box while
|
|
307
|
+
* `--vize-ui-positioner-available-width` and
|
|
308
|
+
* `--vize-ui-positioner-available-height` stay consumable from consumer CSS.
|
|
309
|
+
*/
|
|
310
|
+
declare function sizeStyle(size: AvailableSize): string;
|
|
311
|
+
//#endregion
|
|
312
|
+
//#region src/families/overlays/positioner/positioner-viewport.d.ts
|
|
313
|
+
/** Insets that leave the viewport untouched. */
|
|
314
|
+
declare const zeroSafeAreaInsets: SafeAreaInsets;
|
|
315
|
+
/**
|
|
316
|
+
* The visible viewport in page coordinates.
|
|
317
|
+
*
|
|
318
|
+
* `visualViewport` already excludes on-screen keyboards and follows
|
|
319
|
+
* pinch-zoom, so collision handling tracks what the user actually sees.
|
|
320
|
+
* Server rendering (no `document`) reports an empty box.
|
|
321
|
+
*/
|
|
322
|
+
declare function visualViewportRect(): Rect;
|
|
323
|
+
/** Shrink a viewport box by per-edge insets, never below an empty box. */
|
|
324
|
+
declare function insetViewport(viewport: Rect, insets: SafeAreaInsets): Rect;
|
|
325
|
+
/**
|
|
326
|
+
* Read `env(safe-area-inset-*)` through a computed-style probe.
|
|
327
|
+
*
|
|
328
|
+
* CSS environment variables are not scriptable, so a hidden fixed probe is
|
|
329
|
+
* measured and removed synchronously. Environments without a document or
|
|
330
|
+
* without `env()` support report zero insets, keeping the read SSR-safe.
|
|
331
|
+
*/
|
|
332
|
+
declare function readSafeAreaInsets(targetDocument?: Document | null): SafeAreaInsets;
|
|
333
|
+
//#endregion
|
|
334
|
+
//#region src/families/overlays/positioner/positioner.vue.d.ts
|
|
335
|
+
type __VLS_Props = {
|
|
336
|
+
/**
|
|
337
|
+
* Reference element or virtual box the floating content is placed against.
|
|
338
|
+
*
|
|
339
|
+
* @default null
|
|
340
|
+
*/
|
|
341
|
+
readonly reference?: PositionerElement | null;
|
|
342
|
+
/**
|
|
343
|
+
* Preferred placement before collision handling.
|
|
344
|
+
*
|
|
345
|
+
* @default "bottom"
|
|
346
|
+
*/
|
|
347
|
+
readonly placement?: Placement;
|
|
348
|
+
/**
|
|
349
|
+
* CSS positioning mode published on the floating host.
|
|
350
|
+
*
|
|
351
|
+
* @default "fixed"
|
|
352
|
+
*/
|
|
353
|
+
readonly strategy?: PositionerStrategy;
|
|
354
|
+
/**
|
|
355
|
+
* Gap on the main axis between reference and floating.
|
|
356
|
+
*
|
|
357
|
+
* @default 0
|
|
358
|
+
*/
|
|
359
|
+
readonly offset?: number;
|
|
360
|
+
/**
|
|
361
|
+
* Viewport padding the floating element should not cross.
|
|
362
|
+
*
|
|
363
|
+
* @default 0
|
|
364
|
+
*/
|
|
365
|
+
readonly collisionPadding?: number;
|
|
366
|
+
/**
|
|
367
|
+
* Inset kept between the arrow and floating edges.
|
|
368
|
+
*
|
|
369
|
+
* @default 0
|
|
370
|
+
*/
|
|
371
|
+
readonly arrowPadding?: number;
|
|
372
|
+
/**
|
|
373
|
+
* Writing direction used to resolve start/end alignment.
|
|
374
|
+
*
|
|
375
|
+
* @default "ltr"
|
|
376
|
+
*/
|
|
377
|
+
readonly direction?: "ltr" | "rtl";
|
|
378
|
+
/**
|
|
379
|
+
* Flip to the opposite side when the preferred side overflows more.
|
|
380
|
+
*
|
|
381
|
+
* @default true
|
|
382
|
+
*/
|
|
383
|
+
readonly flip?: boolean;
|
|
384
|
+
/**
|
|
385
|
+
* Shift the floating box back into the viewport after flip.
|
|
386
|
+
*
|
|
387
|
+
* @default true
|
|
388
|
+
*/
|
|
389
|
+
readonly shift?: boolean;
|
|
390
|
+
/**
|
|
391
|
+
* Constrain the host to the available space with `max-width`/`max-height`
|
|
392
|
+
* and publish `--vize-ui-positioner-available-width` and
|
|
393
|
+
* `--vize-ui-positioner-available-height` custom properties.
|
|
394
|
+
*
|
|
395
|
+
* @default false
|
|
396
|
+
*/
|
|
397
|
+
readonly size?: boolean;
|
|
398
|
+
/**
|
|
399
|
+
* Inset the active viewport by `env(safe-area-inset-*)` before collision
|
|
400
|
+
* handling, keeping floating content clear of notches and rounded corners.
|
|
401
|
+
*
|
|
402
|
+
* @default false
|
|
403
|
+
*/
|
|
404
|
+
readonly safeArea?: boolean;
|
|
405
|
+
/**
|
|
406
|
+
* Hide when the reference no longer intersects the viewport.
|
|
407
|
+
*
|
|
408
|
+
* @default true
|
|
409
|
+
*/
|
|
410
|
+
readonly hide?: boolean;
|
|
411
|
+
/**
|
|
412
|
+
* Recalculate while ancestors scroll.
|
|
413
|
+
*
|
|
414
|
+
* @default true
|
|
415
|
+
*/
|
|
416
|
+
readonly updateOnScroll?: boolean;
|
|
417
|
+
/**
|
|
418
|
+
* Recalculate when the document or visual viewport resizes.
|
|
419
|
+
*
|
|
420
|
+
* @default true
|
|
421
|
+
*/
|
|
422
|
+
readonly updateOnResize?: boolean;
|
|
423
|
+
/**
|
|
424
|
+
* Viewport used for flip, shift, and hide. Defaults to the visual viewport.
|
|
425
|
+
*
|
|
426
|
+
* @default undefined
|
|
427
|
+
*/
|
|
428
|
+
readonly viewport?: Rect;
|
|
429
|
+
};
|
|
430
|
+
type __VLS_Slots$1 = {
|
|
431
|
+
/** Floating contents. Receives resolved placement for styling hooks. */default(props: {
|
|
432
|
+
readonly placement: Placement;
|
|
433
|
+
readonly ready: boolean;
|
|
434
|
+
}): unknown;
|
|
435
|
+
};
|
|
436
|
+
declare const __VLS_base$1: import("vue").DefineComponent<__VLS_Props, {
|
|
437
|
+
arrowStyle: Readonly<import("vue").ShallowRef<string>>;
|
|
438
|
+
availableHeight: Readonly<import("vue").ShallowRef<number | null>>;
|
|
439
|
+
availableWidth: Readonly<import("vue").ShallowRef<number | null>>;
|
|
440
|
+
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
441
|
+
hidden: Readonly<import("vue").ShallowRef<boolean>>;
|
|
442
|
+
ready: Readonly<import("vue").ShallowRef<boolean>>;
|
|
443
|
+
resolvedPlacement: Readonly<import("vue").ShallowRef<Placement>>;
|
|
444
|
+
style: Readonly<import("vue").ShallowRef<string>>;
|
|
445
|
+
update: () => void;
|
|
446
|
+
x: Readonly<import("vue").ShallowRef<number>>;
|
|
447
|
+
y: Readonly<import("vue").ShallowRef<number>>;
|
|
448
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
449
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
450
|
+
declare const _default$1: typeof __VLS_export$1;
|
|
451
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
452
|
+
new (): {
|
|
453
|
+
$slots: S;
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
//#endregion
|
|
457
|
+
//#region src/families/overlays/positioner/positioner-arrow.vue.d.ts
|
|
458
|
+
type __VLS_Slots = {
|
|
459
|
+
/** Decorative arrow contents. Receives coordinates for optional custom drawing. */default(props: {
|
|
460
|
+
readonly x: number | null;
|
|
461
|
+
readonly y: number | null;
|
|
462
|
+
}): unknown;
|
|
463
|
+
};
|
|
464
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {
|
|
465
|
+
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
466
|
+
x: Readonly<import("vue").ShallowRef<number | null>>;
|
|
467
|
+
y: Readonly<import("vue").ShallowRef<number | null>>;
|
|
468
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
469
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
470
|
+
declare const _default: typeof __VLS_export;
|
|
471
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
472
|
+
new (): {
|
|
473
|
+
$slots: S;
|
|
474
|
+
};
|
|
475
|
+
};
|
|
476
|
+
//#endregion
|
|
477
|
+
export { PositionerElement as C, Rect as D, PositionerStyle as E, SafeAreaInsets as O, PositionerController as S, PositionerStrategy as T, ComputePositionResult as _, visualViewportRect as a, PlacementSide as b, sizeStyle as c, computePosition as d, parsePlacement as f, ComputePositionInput as g, AvailableSizeInput as h, readSafeAreaInsets as i, VirtualElement as k, createPositioner as l, AvailableSize as m, _default$1 as n, zeroSafeAreaInsets as o, readRect as p, insetViewport as r, computeAvailableSize as s, _default as t, usePositioner as u, Placement as v, PositionerOptions as w, PositionerArrowStyle as x, PlacementAlign as y };
|