@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/move-BVvMHzxr.mjs
DELETED
|
@@ -1,386 +0,0 @@
|
|
|
1
|
-
import { a as isPrimaryPointer, n as disableTextSelection, r as eventElement } from "./press-event-Cd2OPpmw.mjs";
|
|
2
|
-
import { getCurrentScope, onScopeDispose, shallowReadonly, shallowRef, toValue } from "vue";
|
|
3
|
-
//#region src/move-internal.ts
|
|
4
|
-
const invalidOptionDiagnostic = "VIZE_UI_MOVE_OPTION";
|
|
5
|
-
function readBoolean(value) {
|
|
6
|
-
const resolved = toValue(value);
|
|
7
|
-
if (resolved === void 0) return false;
|
|
8
|
-
if (typeof resolved !== "boolean") throw new TypeError(`${invalidOptionDiagnostic}: isDisabled must resolve to a boolean`);
|
|
9
|
-
return resolved;
|
|
10
|
-
}
|
|
11
|
-
function readKeyboardStep(value) {
|
|
12
|
-
const resolved = toValue(value) ?? 1;
|
|
13
|
-
if (typeof resolved !== "number" || !Number.isFinite(resolved) || resolved <= 0) throw new TypeError(`${invalidOptionDiagnostic}: keyboardStep must resolve to a finite number > 0`);
|
|
14
|
-
return resolved;
|
|
15
|
-
}
|
|
16
|
-
function modifier(event, key) {
|
|
17
|
-
return event && key in event ? Boolean(event[key]) : false;
|
|
18
|
-
}
|
|
19
|
-
function positionOf(event, touchId = null) {
|
|
20
|
-
if ("pageX" in event && "pageY" in event) {
|
|
21
|
-
const x = Number(event.pageX);
|
|
22
|
-
const y = Number(event.pageY);
|
|
23
|
-
if (Number.isFinite(x) && Number.isFinite(y)) return {
|
|
24
|
-
x,
|
|
25
|
-
y
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
if ("clientX" in event && "clientY" in event) {
|
|
29
|
-
const x = Number(event.clientX);
|
|
30
|
-
const y = Number(event.clientY);
|
|
31
|
-
if (Number.isFinite(x) && Number.isFinite(y)) return {
|
|
32
|
-
x,
|
|
33
|
-
y
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
if ("changedTouches" in event) {
|
|
37
|
-
const touch = Array.from(event.changedTouches).find(({ identifier }) => touchId === null || identifier === touchId);
|
|
38
|
-
if (touch) return {
|
|
39
|
-
x: touch.pageX,
|
|
40
|
-
y: touch.pageY
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
return null;
|
|
44
|
-
}
|
|
45
|
-
function pointerTypeOf(event) {
|
|
46
|
-
if (event.pointerType === "mouse" || event.pointerType === "pen") return event.pointerType;
|
|
47
|
-
if (event.pointerType === "touch") return "touch";
|
|
48
|
-
return "pointer";
|
|
49
|
-
}
|
|
50
|
-
function createMoveEvent(type, target, pointerType, originalEvent, deltaX = 0, deltaY = 0, isCanceled = false, touchId = null) {
|
|
51
|
-
const position = originalEvent ? positionOf(originalEvent, touchId) : null;
|
|
52
|
-
return Object.freeze({
|
|
53
|
-
type,
|
|
54
|
-
pointerType,
|
|
55
|
-
target,
|
|
56
|
-
originalEvent,
|
|
57
|
-
x: position?.x ?? null,
|
|
58
|
-
y: position?.y ?? null,
|
|
59
|
-
deltaX,
|
|
60
|
-
deltaY,
|
|
61
|
-
altKey: modifier(originalEvent, "altKey"),
|
|
62
|
-
ctrlKey: modifier(originalEvent, "ctrlKey"),
|
|
63
|
-
metaKey: modifier(originalEvent, "metaKey"),
|
|
64
|
-
shiftKey: modifier(originalEvent, "shiftKey"),
|
|
65
|
-
isCanceled
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
function surfaceErrors(errors, message) {
|
|
69
|
-
if (errors.length === 1) throw errors[0];
|
|
70
|
-
if (errors.length < 2) return;
|
|
71
|
-
const Aggregate = globalThis.AggregateError;
|
|
72
|
-
if (typeof Aggregate === "function") throw new Aggregate(errors, message);
|
|
73
|
-
const fallback = Object.assign(new Error(message), { errors: [...errors] });
|
|
74
|
-
fallback.name = "AggregateError";
|
|
75
|
-
throw fallback;
|
|
76
|
-
}
|
|
77
|
-
function capture(errors, callback) {
|
|
78
|
-
try {
|
|
79
|
-
callback();
|
|
80
|
-
} catch (error) {
|
|
81
|
-
errors.push(error);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
function validateOptions(options) {
|
|
85
|
-
for (const name of [
|
|
86
|
-
"onMove",
|
|
87
|
-
"onMoveEnd",
|
|
88
|
-
"onMoveStart"
|
|
89
|
-
]) {
|
|
90
|
-
const callback = options[name];
|
|
91
|
-
if (callback !== void 0 && typeof callback !== "function") throw new TypeError(`${invalidOptionDiagnostic}: ${name} must be a function`);
|
|
92
|
-
}
|
|
93
|
-
if (typeof options.keyboardStep !== "function") readKeyboardStep(options.keyboardStep);
|
|
94
|
-
}
|
|
95
|
-
/** Install and exhaustively clean up the document listeners for one pointer family. */
|
|
96
|
-
function installMoveListeners(document, source, context) {
|
|
97
|
-
const removals = [];
|
|
98
|
-
const listen = (owner, type, callback, capture = true) => {
|
|
99
|
-
owner.addEventListener(type, callback, capture);
|
|
100
|
-
removals.push(() => owner.removeEventListener(type, callback, capture));
|
|
101
|
-
};
|
|
102
|
-
const matches = (family, id) => {
|
|
103
|
-
const current = context.getActive();
|
|
104
|
-
return current?.source === family && current.id === id ? current : null;
|
|
105
|
-
};
|
|
106
|
-
const pointerMove = (event) => {
|
|
107
|
-
const current = matches("pointer", event.pointerId);
|
|
108
|
-
const position = positionOf(event);
|
|
109
|
-
if (current && position) context.emitDelta(current, event, position);
|
|
110
|
-
};
|
|
111
|
-
const pointerEnd = (event, canceled) => {
|
|
112
|
-
const current = matches("pointer", event.pointerId);
|
|
113
|
-
if (!current) return;
|
|
114
|
-
const disabled = context.readDisabled(event);
|
|
115
|
-
context.finish(event, canceled || disabled || !current.target.isConnected);
|
|
116
|
-
};
|
|
117
|
-
const mouseMove = (event) => {
|
|
118
|
-
const current = matches("mouse", null);
|
|
119
|
-
const position = positionOf(event);
|
|
120
|
-
if (current && position) context.emitDelta(current, event, position);
|
|
121
|
-
};
|
|
122
|
-
const mouseUp = (event) => {
|
|
123
|
-
const current = matches("mouse", null);
|
|
124
|
-
if (event.button === 0 && current) context.finish(event, context.readDisabled(event) || !current.target.isConnected);
|
|
125
|
-
};
|
|
126
|
-
const touchMove = (event) => {
|
|
127
|
-
const candidate = context.getActive();
|
|
128
|
-
const current = candidate?.source === "touch" ? candidate : null;
|
|
129
|
-
const position = current ? positionOf(event, current.id) : null;
|
|
130
|
-
if (current && position) context.emitDelta(current, event, position);
|
|
131
|
-
};
|
|
132
|
-
const touchEnd = (event, canceled) => {
|
|
133
|
-
const candidate = context.getActive();
|
|
134
|
-
const current = candidate?.source === "touch" ? candidate : null;
|
|
135
|
-
if (!current || !positionOf(event, current.id)) return;
|
|
136
|
-
context.rememberTouch(event.timeStamp);
|
|
137
|
-
context.finish(event, canceled || context.readDisabled(event) || !current.target.isConnected);
|
|
138
|
-
};
|
|
139
|
-
try {
|
|
140
|
-
if (source === "pointer") {
|
|
141
|
-
listen(document, "pointermove", pointerMove);
|
|
142
|
-
listen(document, "pointerup", ((event) => pointerEnd(event, false)));
|
|
143
|
-
listen(document, "pointercancel", ((event) => pointerEnd(event, true)));
|
|
144
|
-
} else if (source === "mouse") {
|
|
145
|
-
listen(document, "mousemove", mouseMove);
|
|
146
|
-
listen(document, "mouseup", mouseUp);
|
|
147
|
-
} else {
|
|
148
|
-
listen(document, "touchmove", touchMove);
|
|
149
|
-
listen(document, "touchend", ((event) => touchEnd(event, false)));
|
|
150
|
-
listen(document, "touchcancel", ((event) => touchEnd(event, true)));
|
|
151
|
-
}
|
|
152
|
-
listen(document, "dragstart", (event) => context.finish(event, true));
|
|
153
|
-
listen(document, "visibilitychange", (() => {
|
|
154
|
-
if (document.visibilityState === "hidden") context.finish(null, true);
|
|
155
|
-
}));
|
|
156
|
-
if (document.defaultView) listen(document.defaultView, "blur", (event) => context.finish(event, true), false);
|
|
157
|
-
} catch (error) {
|
|
158
|
-
const errors = [error];
|
|
159
|
-
for (const remove of removals.reverse()) capture(errors, remove);
|
|
160
|
-
surfaceErrors(errors, "Move listener setup failed");
|
|
161
|
-
throw error;
|
|
162
|
-
}
|
|
163
|
-
let released = false;
|
|
164
|
-
return () => {
|
|
165
|
-
if (released) return;
|
|
166
|
-
released = true;
|
|
167
|
-
const errors = [];
|
|
168
|
-
for (const remove of removals) capture(errors, remove);
|
|
169
|
-
surfaceErrors(errors, "Move listener cleanup failed");
|
|
170
|
-
};
|
|
171
|
-
}
|
|
172
|
-
//#endregion
|
|
173
|
-
//#region src/move.ts
|
|
174
|
-
const disposedDiagnostic = "VIZE_UI_MOVE_DISPOSED";
|
|
175
|
-
const setupDiagnostic = "VIZE_UI_MOVE_SETUP";
|
|
176
|
-
/** Create an SSR-safe mouse, pen, touch, and keyboard move normalizer. */
|
|
177
|
-
function createMove(options = {}) {
|
|
178
|
-
validateOptions(options);
|
|
179
|
-
const moving = shallowRef(false);
|
|
180
|
-
let active = null;
|
|
181
|
-
let keyboard = null;
|
|
182
|
-
let disposed = false;
|
|
183
|
-
let lastTouchTime = Number.NEGATIVE_INFINITY;
|
|
184
|
-
const finish = (originalEvent, isCanceled) => {
|
|
185
|
-
const current = active;
|
|
186
|
-
if (!current) return false;
|
|
187
|
-
active = null;
|
|
188
|
-
moving.value = false;
|
|
189
|
-
const errors = [];
|
|
190
|
-
capture(errors, current.releaseListeners);
|
|
191
|
-
capture(errors, current.restoreSelection);
|
|
192
|
-
if (current.didMove) capture(errors, () => options.onMoveEnd?.(createMoveEvent("moveend", current.target, current.pointerType, originalEvent, 0, 0, isCanceled, current.source === "touch" ? current.id : null)));
|
|
193
|
-
surfaceErrors(errors, "Move completion failed");
|
|
194
|
-
return true;
|
|
195
|
-
};
|
|
196
|
-
const readDisabledDuringActive = (event) => {
|
|
197
|
-
try {
|
|
198
|
-
return readBoolean(options.isDisabled);
|
|
199
|
-
} catch (error) {
|
|
200
|
-
const errors = [error];
|
|
201
|
-
capture(errors, () => finish(event, true));
|
|
202
|
-
surfaceErrors(errors, "Move option validation failed during teardown");
|
|
203
|
-
throw error;
|
|
204
|
-
}
|
|
205
|
-
};
|
|
206
|
-
const finishKeyboard = (originalEvent, isCanceled) => {
|
|
207
|
-
const current = keyboard;
|
|
208
|
-
if (!current) return false;
|
|
209
|
-
keyboard = null;
|
|
210
|
-
moving.value = false;
|
|
211
|
-
options.onMoveEnd?.(createMoveEvent("moveend", current.target, "keyboard", originalEvent, 0, 0, isCanceled));
|
|
212
|
-
return true;
|
|
213
|
-
};
|
|
214
|
-
const emitDelta = (current, event, position) => {
|
|
215
|
-
if (active !== current) return;
|
|
216
|
-
current.lastEvent = event;
|
|
217
|
-
if (readDisabledDuringActive(event) || !current.target.isConnected) {
|
|
218
|
-
finish(event, true);
|
|
219
|
-
return;
|
|
220
|
-
}
|
|
221
|
-
const deltaX = position.x - current.position.x;
|
|
222
|
-
const deltaY = position.y - current.position.y;
|
|
223
|
-
current.position = position;
|
|
224
|
-
if (deltaX === 0 && deltaY === 0) return;
|
|
225
|
-
event.preventDefault();
|
|
226
|
-
const errors = [];
|
|
227
|
-
if (!current.didMove) {
|
|
228
|
-
current.didMove = true;
|
|
229
|
-
moving.value = true;
|
|
230
|
-
capture(errors, () => options.onMoveStart?.(createMoveEvent("movestart", current.target, current.pointerType, event, 0, 0, false, current.source === "touch" ? current.id : null)));
|
|
231
|
-
}
|
|
232
|
-
if (active === current && !disposed) capture(errors, () => options.onMove?.(createMoveEvent("move", current.target, current.pointerType, event, deltaX, deltaY, false, current.source === "touch" ? current.id : null)));
|
|
233
|
-
surfaceErrors(errors, "Move callbacks failed");
|
|
234
|
-
};
|
|
235
|
-
const matches = (source, id) => {
|
|
236
|
-
const current = active;
|
|
237
|
-
return current?.source === source && current.id === id ? current : null;
|
|
238
|
-
};
|
|
239
|
-
const start = (event, source, pointerType, id, position) => {
|
|
240
|
-
if (disposed || active || readBoolean(options.isDisabled)) return;
|
|
241
|
-
const target = eventElement(event);
|
|
242
|
-
if (!target) return;
|
|
243
|
-
event.preventDefault();
|
|
244
|
-
event.stopPropagation();
|
|
245
|
-
let releaseListeners = () => void 0;
|
|
246
|
-
let restoreSelection = () => void 0;
|
|
247
|
-
try {
|
|
248
|
-
releaseListeners = installMoveListeners(target.ownerDocument, source, {
|
|
249
|
-
emitDelta,
|
|
250
|
-
finish,
|
|
251
|
-
getActive: () => active,
|
|
252
|
-
readDisabled: readDisabledDuringActive,
|
|
253
|
-
rememberTouch: (timeStamp) => {
|
|
254
|
-
lastTouchTime = timeStamp;
|
|
255
|
-
}
|
|
256
|
-
});
|
|
257
|
-
restoreSelection = disableTextSelection(target);
|
|
258
|
-
} catch (error) {
|
|
259
|
-
const errors = [error];
|
|
260
|
-
capture(errors, releaseListeners);
|
|
261
|
-
capture(errors, restoreSelection);
|
|
262
|
-
surfaceErrors(errors, "Move start cleanup failed");
|
|
263
|
-
throw error;
|
|
264
|
-
}
|
|
265
|
-
active = {
|
|
266
|
-
id,
|
|
267
|
-
pointerType,
|
|
268
|
-
releaseListeners,
|
|
269
|
-
restoreSelection,
|
|
270
|
-
source,
|
|
271
|
-
target,
|
|
272
|
-
didMove: false,
|
|
273
|
-
lastEvent: event,
|
|
274
|
-
position
|
|
275
|
-
};
|
|
276
|
-
};
|
|
277
|
-
const keyboardMove = (event, deltaX, deltaY) => {
|
|
278
|
-
if (disposed || active || keyboard || readBoolean(options.isDisabled)) return;
|
|
279
|
-
const target = eventElement(event);
|
|
280
|
-
if (!target || event.target !== target) return;
|
|
281
|
-
event.preventDefault();
|
|
282
|
-
event.stopPropagation();
|
|
283
|
-
const step = readKeyboardStep(options.keyboardStep);
|
|
284
|
-
const errors = [];
|
|
285
|
-
const current = { target };
|
|
286
|
-
keyboard = current;
|
|
287
|
-
moving.value = true;
|
|
288
|
-
capture(errors, () => options.onMoveStart?.(createMoveEvent("movestart", target, "keyboard", event)));
|
|
289
|
-
if (keyboard === current && !disposed) capture(errors, () => options.onMove?.(createMoveEvent("move", target, "keyboard", event, deltaX * step, deltaY * step)));
|
|
290
|
-
if (keyboard === current && !disposed) capture(errors, () => finishKeyboard(event, false));
|
|
291
|
-
surfaceErrors(errors, "Keyboard move callbacks failed");
|
|
292
|
-
};
|
|
293
|
-
const moveProps = Object.freeze({
|
|
294
|
-
onDragstart(event) {
|
|
295
|
-
if (active?.target === eventElement(event)) finish(event, true);
|
|
296
|
-
},
|
|
297
|
-
onKeydown(event) {
|
|
298
|
-
if (event.isComposing || event.altKey || event.ctrlKey || event.metaKey) return;
|
|
299
|
-
switch (event.key) {
|
|
300
|
-
case "Left":
|
|
301
|
-
case "ArrowLeft":
|
|
302
|
-
keyboardMove(event, -1, 0);
|
|
303
|
-
break;
|
|
304
|
-
case "Right":
|
|
305
|
-
case "ArrowRight":
|
|
306
|
-
keyboardMove(event, 1, 0);
|
|
307
|
-
break;
|
|
308
|
-
case "Up":
|
|
309
|
-
case "ArrowUp":
|
|
310
|
-
keyboardMove(event, 0, -1);
|
|
311
|
-
break;
|
|
312
|
-
case "Down":
|
|
313
|
-
case "ArrowDown":
|
|
314
|
-
keyboardMove(event, 0, 1);
|
|
315
|
-
break;
|
|
316
|
-
}
|
|
317
|
-
},
|
|
318
|
-
onMousedown(event) {
|
|
319
|
-
if (event.button !== 0 || active || event.view && "PointerEvent" in event.view) return;
|
|
320
|
-
const elapsed = event.timeStamp - lastTouchTime;
|
|
321
|
-
if (elapsed >= 0 && elapsed < 800) return;
|
|
322
|
-
const position = positionOf(event);
|
|
323
|
-
if (position) start(event, "mouse", "mouse", null, position);
|
|
324
|
-
},
|
|
325
|
-
onPointercancel(event) {
|
|
326
|
-
if (matches("pointer", event.pointerId)) finish(event, true);
|
|
327
|
-
},
|
|
328
|
-
onPointerdown(event) {
|
|
329
|
-
if (!isPrimaryPointer(event)) return;
|
|
330
|
-
const position = positionOf(event);
|
|
331
|
-
if (position) start(event, "pointer", pointerTypeOf(event), event.pointerId, position);
|
|
332
|
-
},
|
|
333
|
-
onTouchcancel(event) {
|
|
334
|
-
const current = active?.source === "touch" ? active : null;
|
|
335
|
-
if (current && positionOf(event, current.id)) finish(event, true);
|
|
336
|
-
},
|
|
337
|
-
onTouchend(event) {
|
|
338
|
-
const current = active?.source === "touch" ? active : null;
|
|
339
|
-
if (current && positionOf(event, current.id)) finish(event, false);
|
|
340
|
-
},
|
|
341
|
-
onTouchmove(event) {
|
|
342
|
-
const current = active?.source === "touch" ? active : null;
|
|
343
|
-
const position = current ? positionOf(event, current.id) : null;
|
|
344
|
-
if (current && position) emitDelta(current, event, position);
|
|
345
|
-
},
|
|
346
|
-
onTouchstart(event) {
|
|
347
|
-
lastTouchTime = event.timeStamp;
|
|
348
|
-
if (event.view && "PointerEvent" in event.view || active || event.changedTouches.length !== 1) return;
|
|
349
|
-
const touch = event.changedTouches.item(0);
|
|
350
|
-
if (touch) start(event, "touch", "touch", touch.identifier, {
|
|
351
|
-
x: touch.pageX,
|
|
352
|
-
y: touch.pageY
|
|
353
|
-
});
|
|
354
|
-
}
|
|
355
|
-
});
|
|
356
|
-
return Object.freeze({
|
|
357
|
-
isMoving: shallowReadonly(moving),
|
|
358
|
-
moveProps,
|
|
359
|
-
cancel: () => {
|
|
360
|
-
if (disposed) throw new Error(`${disposedDiagnostic}: the controller has been disposed`);
|
|
361
|
-
return finish(null, true) || finishKeyboard(null, true);
|
|
362
|
-
},
|
|
363
|
-
dispose: () => {
|
|
364
|
-
if (disposed) return;
|
|
365
|
-
disposed = true;
|
|
366
|
-
const current = active;
|
|
367
|
-
active = null;
|
|
368
|
-
keyboard = null;
|
|
369
|
-
moving.value = false;
|
|
370
|
-
if (!current) return;
|
|
371
|
-
const errors = [];
|
|
372
|
-
capture(errors, current.releaseListeners);
|
|
373
|
-
capture(errors, current.restoreSelection);
|
|
374
|
-
surfaceErrors(errors, "Move disposal failed");
|
|
375
|
-
}
|
|
376
|
-
});
|
|
377
|
-
}
|
|
378
|
-
/** Create a move normalizer disposed with the current Vue effect scope. */
|
|
379
|
-
function useMove(options = {}) {
|
|
380
|
-
if (!getCurrentScope()) throw new Error(`${setupDiagnostic}: use inside component setup or an active effect scope`);
|
|
381
|
-
const controller = createMove(options);
|
|
382
|
-
onScopeDispose(controller.dispose);
|
|
383
|
-
return controller;
|
|
384
|
-
}
|
|
385
|
-
//#endregion
|
|
386
|
-
export { useMove as n, createMove as t };
|