@vizejs/ui 0.387.0 → 0.389.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-CuBryPW9.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
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { n as collapsible_content_default, r as collapsible_root_default, t as collapsible_trigger_default } from "./collapsible-Cra5y_if.mjs";
|
|
2
|
+
export { collapsible_root_default as Collapsible, collapsible_root_default as CollapsibleRoot, collapsible_content_default as CollapsibleContent, collapsible_trigger_default as CollapsibleTrigger };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComputedRef, MaybeRefOrGetter } from "vue";
|
|
2
2
|
|
|
3
|
-
//#region src/collection-types.d.ts
|
|
3
|
+
//#region src/families/foundations/collection/collection-types.d.ts
|
|
4
4
|
/** Serializable identity accepted by every collection primitive. */
|
|
5
5
|
type CollectionKey = string | number;
|
|
6
6
|
/** How disabled items participate in focus navigation and typeahead. */
|
|
@@ -153,7 +153,7 @@ interface CollectionRegistry<Key extends CollectionKey, Value> {
|
|
|
153
153
|
readonly dispose: () => boolean;
|
|
154
154
|
}
|
|
155
155
|
//#endregion
|
|
156
|
-
//#region src/collection-registry.d.ts
|
|
156
|
+
//#region src/families/foundations/collection/collection-registry.d.ts
|
|
157
157
|
/**
|
|
158
158
|
* Create an SSR-safe, mutation-aware registry for one compound collection.
|
|
159
159
|
*
|
|
@@ -164,7 +164,7 @@ interface CollectionRegistry<Key extends CollectionKey, Value> {
|
|
|
164
164
|
*/
|
|
165
165
|
declare function createCollectionRegistry<Key extends CollectionKey, Value>(options?: CollectionRegistryOptions<Key>): CollectionRegistry<Key, Value>;
|
|
166
166
|
//#endregion
|
|
167
|
-
//#region src/collection-text.d.ts
|
|
167
|
+
//#region src/families/foundations/collection/collection-text.d.ts
|
|
168
168
|
/**
|
|
169
169
|
* Normalize authored or extracted typeahead text without applying a locale.
|
|
170
170
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed, getCurrentScope, onScopeDispose, shallowRef, toValue, watch } from "vue";
|
|
2
|
-
//#region src/collection-keys.ts
|
|
2
|
+
//#region src/families/foundations/collection/collection-keys.ts
|
|
3
3
|
/** Reject keys that cannot serve as stable, serializable item identities. */
|
|
4
4
|
function validateCollectionKey(key) {
|
|
5
5
|
if (typeof key === "string") {
|
|
@@ -41,7 +41,7 @@ function containsAsciiControl(value) {
|
|
|
41
41
|
return false;
|
|
42
42
|
}
|
|
43
43
|
//#endregion
|
|
44
|
-
//#region src/collection-observer.ts
|
|
44
|
+
//#region src/families/foundations/collection/collection-observer.ts
|
|
45
45
|
const orderAndTextMutations = {
|
|
46
46
|
attributeFilter: [
|
|
47
47
|
"alt",
|
|
@@ -113,7 +113,7 @@ function findCollectionObservationRoot(elements) {
|
|
|
113
113
|
return null;
|
|
114
114
|
}
|
|
115
115
|
//#endregion
|
|
116
|
-
//#region src/collection-text.ts
|
|
116
|
+
//#region src/families/foundations/collection/collection-text.ts
|
|
117
117
|
const ignoredTextTags = new Set([
|
|
118
118
|
"NOSCRIPT",
|
|
119
119
|
"SCRIPT",
|
|
@@ -190,7 +190,7 @@ function isCollectionTextHidden(element) {
|
|
|
190
190
|
return element.hasAttribute("hidden") || element.hasAttribute("inert") || element.getAttribute("aria-hidden")?.trim().toLowerCase() === "true";
|
|
191
191
|
}
|
|
192
192
|
//#endregion
|
|
193
|
-
//#region src/collection-order.ts
|
|
193
|
+
//#region src/families/foundations/collection/collection-order.ts
|
|
194
194
|
const documentPositionDisconnected = 1;
|
|
195
195
|
const documentPositionPreceding = 2;
|
|
196
196
|
const documentPositionFollowing = 4;
|
|
@@ -250,7 +250,7 @@ function sortCollectionRecords(records) {
|
|
|
250
250
|
});
|
|
251
251
|
}
|
|
252
252
|
//#endregion
|
|
253
|
-
//#region src/collection-registry.ts
|
|
253
|
+
//#region src/families/foundations/collection/collection-registry.ts
|
|
254
254
|
/**
|
|
255
255
|
* Create an SSR-safe, mutation-aware registry for one compound collection.
|
|
256
256
|
*
|
package/dist/collection.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CollectionActiveChangeReason, c as CollectionItemInput, d as CollectionNavigationOptions, f as CollectionRegistration, h as CollectionTextSearchOptions, i as CollectionActiveChange, l as CollectionKey, m as CollectionRegistryOptions, n as normalizeCollectionTextValue, o as CollectionDisabledBehavior, p as CollectionRegistry, r as createCollectionRegistry, s as CollectionItem, t as extractCollectionTextValue, u as CollectionNavigationDirection } from "./collection-
|
|
1
|
+
import { a as CollectionActiveChangeReason, c as CollectionItemInput, d as CollectionNavigationOptions, f as CollectionRegistration, h as CollectionTextSearchOptions, i as CollectionActiveChange, l as CollectionKey, m as CollectionRegistryOptions, n as normalizeCollectionTextValue, o as CollectionDisabledBehavior, p as CollectionRegistry, r as createCollectionRegistry, s as CollectionItem, t as extractCollectionTextValue, u as CollectionNavigationDirection } from "./collection-BaPf8lgw.mjs";
|
|
2
2
|
export { type CollectionActiveChange, type CollectionActiveChangeReason, type CollectionDisabledBehavior, type CollectionItem, type CollectionItemInput, type CollectionKey, type CollectionNavigationDirection, type CollectionNavigationOptions, type CollectionRegistration, type CollectionRegistry, type CollectionRegistryOptions, type CollectionTextSearchOptions, createCollectionRegistry, extractCollectionTextValue, normalizeCollectionTextValue };
|
package/dist/collection.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as extractCollectionTextValue, r as normalizeCollectionTextValue, t as createCollectionRegistry } from "./collection-
|
|
1
|
+
import { n as extractCollectionTextValue, r as normalizeCollectionTextValue, t as createCollectionRegistry } from "./collection-Cncgrq4U.mjs";
|
|
2
2
|
export { createCollectionRegistry, extractCollectionTextValue, normalizeCollectionTextValue };
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { MaybeRefOrGetter, ShallowRef } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region src/families/foundations/command/command-types.d.ts
|
|
4
|
+
/** Context handed to a command implementation when it runs. */
|
|
5
|
+
interface CommandExecution<Id extends string = string> {
|
|
6
|
+
/** Identifier the dispatch was routed to. */
|
|
7
|
+
readonly id: Id;
|
|
8
|
+
/** Caller-supplied argument, or `undefined` for argument-free dispatches. */
|
|
9
|
+
readonly payload: unknown;
|
|
10
|
+
/** How the dispatch was initiated, for analytics and help surfaces. */
|
|
11
|
+
readonly source: CommandDispatchSource;
|
|
12
|
+
}
|
|
13
|
+
/** Origin of one dispatch, threaded through to handlers and observers. */
|
|
14
|
+
type CommandDispatchSource = "imperative" | "menu" | "palette" | "shortcut";
|
|
15
|
+
/** One registerable command definition. */
|
|
16
|
+
interface CommandDefinition<Id extends string = string> {
|
|
17
|
+
/** Unique identifier; registering a duplicate identifier is a conflict. */
|
|
18
|
+
readonly id: Id;
|
|
19
|
+
/** Perform the command. The return value is surfaced on the dispatch. */
|
|
20
|
+
readonly run: (execution: CommandExecution<Id>) => unknown;
|
|
21
|
+
/**
|
|
22
|
+
* Enablement gate; a disabled command stays listed but refuses to run.
|
|
23
|
+
*
|
|
24
|
+
* @default true
|
|
25
|
+
*/
|
|
26
|
+
readonly when?: MaybeRefOrGetter<boolean | undefined>;
|
|
27
|
+
/** Human-readable name for menus and palettes. */
|
|
28
|
+
readonly title?: string;
|
|
29
|
+
/** Longer help text for palettes and documentation surfaces. */
|
|
30
|
+
readonly description?: string;
|
|
31
|
+
/** Extra search terms recognized by palettes. */
|
|
32
|
+
readonly keywords?: readonly string[];
|
|
33
|
+
/** Grouping label used to cluster related commands in help surfaces. */
|
|
34
|
+
readonly group?: string;
|
|
35
|
+
}
|
|
36
|
+
/** Immutable help metadata describing one registered command. */
|
|
37
|
+
interface CommandInfo<Id extends string = string> {
|
|
38
|
+
/** Unique identifier. */
|
|
39
|
+
readonly id: Id;
|
|
40
|
+
/** Human-readable name, or `null` when the command is anonymous. */
|
|
41
|
+
readonly title: string | null;
|
|
42
|
+
/** Longer help text, or `null`. */
|
|
43
|
+
readonly description: string | null;
|
|
44
|
+
/** Extra palette search terms. */
|
|
45
|
+
readonly keywords: readonly string[];
|
|
46
|
+
/** Grouping label, or `null`. */
|
|
47
|
+
readonly group: string | null;
|
|
48
|
+
/** Read the current enablement without dispatching. */
|
|
49
|
+
readonly isEnabled: () => boolean;
|
|
50
|
+
}
|
|
51
|
+
/** Immutable outcome of one routed dispatch. */
|
|
52
|
+
interface CommandDispatch<Id extends string = string> {
|
|
53
|
+
/** Identifier the dispatch targeted. */
|
|
54
|
+
readonly id: Id;
|
|
55
|
+
/** Whether the command ran, was disabled, or was not registered. */
|
|
56
|
+
readonly status: "executed" | "disabled" | "not-found";
|
|
57
|
+
/** Value returned by the command, or `undefined` when it did not run. */
|
|
58
|
+
readonly value: unknown;
|
|
59
|
+
/** Origin threaded through from the dispatch call. */
|
|
60
|
+
readonly source: CommandDispatchSource;
|
|
61
|
+
}
|
|
62
|
+
/** Options for `createCommandRouter` and `useCommandRouter`. */
|
|
63
|
+
interface CommandRouterOptions<Id extends string = string> {
|
|
64
|
+
/**
|
|
65
|
+
* Ignore dispatches while true; every command reads as disabled.
|
|
66
|
+
*
|
|
67
|
+
* @default false
|
|
68
|
+
*/
|
|
69
|
+
readonly isDisabled?: MaybeRefOrGetter<boolean | undefined>;
|
|
70
|
+
/** Observer called after every dispatch that found its command. */
|
|
71
|
+
readonly onDidExecute?: (dispatch: CommandDispatch<Id>) => void;
|
|
72
|
+
}
|
|
73
|
+
/** Typed command registry and dispatcher. */
|
|
74
|
+
interface CommandRouter<Id extends string = string> {
|
|
75
|
+
/** Reactive help metadata for every registered command, in registration order. */
|
|
76
|
+
readonly commands: Readonly<ShallowRef<readonly CommandInfo<Id>[]>>;
|
|
77
|
+
/** Register one command and return its releaser. */
|
|
78
|
+
readonly register: (command: CommandDefinition<Id>) => () => void;
|
|
79
|
+
/** Report whether an identifier is currently registered. */
|
|
80
|
+
readonly has: (id: Id) => boolean;
|
|
81
|
+
/** Read the current enablement of one identifier. */
|
|
82
|
+
readonly isEnabled: (id: Id) => boolean;
|
|
83
|
+
/** Route one dispatch and report the routing outcome. */
|
|
84
|
+
readonly execute: (id: Id, payload?: unknown, options?: {
|
|
85
|
+
readonly source?: CommandDispatchSource;
|
|
86
|
+
}) => CommandDispatch<Id>;
|
|
87
|
+
/** Clear every registration and make imperative calls terminal. */
|
|
88
|
+
readonly dispose: () => void;
|
|
89
|
+
}
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region src/families/foundations/command/command.d.ts
|
|
92
|
+
/**
|
|
93
|
+
* Create a typed command router with enablement and help metadata.
|
|
94
|
+
*
|
|
95
|
+
* The router owns no DOM and is safe to create during server rendering.
|
|
96
|
+
* Registering an identifier twice throws a conflict diagnostic so palettes,
|
|
97
|
+
* menus, and shortcut layers cannot silently shadow one another. Call
|
|
98
|
+
* {@link CommandRouter.dispose} when using this factory outside a Vue effect
|
|
99
|
+
* scope.
|
|
100
|
+
*/
|
|
101
|
+
declare function createCommandRouter<Id extends string = string>(options?: CommandRouterOptions<Id>): CommandRouter<Id>;
|
|
102
|
+
/** Create a command router disposed with the current Vue effect scope. */
|
|
103
|
+
declare function useCommandRouter<Id extends string = string>(options?: CommandRouterOptions<Id>): CommandRouter<Id>;
|
|
104
|
+
//#endregion
|
|
105
|
+
export { CommandDispatchSource as a, CommandRouter as c, CommandDispatch as i, CommandRouterOptions as l, useCommandRouter as n, CommandExecution as o, CommandDefinition as r, CommandInfo as s, createCommandRouter as t };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as CommandDispatchSource, c as CommandRouter, i as CommandDispatch, l as CommandRouterOptions, n as useCommandRouter, o as CommandExecution, r as CommandDefinition, s as CommandInfo, t as createCommandRouter } from "./command-CAH0yrMT.mjs";
|
|
2
|
+
export { type CommandDefinition, type CommandDispatch, type CommandDispatchSource, type CommandExecution, type CommandInfo, type CommandRouter, type CommandRouterOptions, createCommandRouter, useCommandRouter };
|
package/dist/command.mjs
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { getCurrentScope, onScopeDispose, shallowReadonly, shallowRef, toValue } from "vue";
|
|
2
|
+
//#region src/families/foundations/command/command.ts
|
|
3
|
+
const disposedDiagnostic = "VIZE_UI_COMMAND_DISPOSED";
|
|
4
|
+
const setupDiagnostic = "VIZE_UI_COMMAND_SETUP";
|
|
5
|
+
const optionDiagnostic = "VIZE_UI_COMMAND_OPTION";
|
|
6
|
+
const conflictDiagnostic = "VIZE_UI_COMMAND_CONFLICT";
|
|
7
|
+
const dispatchSources = new Set([
|
|
8
|
+
"imperative",
|
|
9
|
+
"menu",
|
|
10
|
+
"palette",
|
|
11
|
+
"shortcut"
|
|
12
|
+
]);
|
|
13
|
+
function readBoolean(source, name, fallback) {
|
|
14
|
+
const value = toValue(source);
|
|
15
|
+
if (value === void 0) return fallback;
|
|
16
|
+
if (typeof value !== "boolean") throw new TypeError(`${optionDiagnostic}: ${name} must resolve to a boolean`);
|
|
17
|
+
return value;
|
|
18
|
+
}
|
|
19
|
+
function validateDefinition(command) {
|
|
20
|
+
if (typeof command.id !== "string" || command.id === "") throw new TypeError(`${optionDiagnostic}: id must be a non-empty string`);
|
|
21
|
+
if (typeof command.run !== "function") throw new TypeError(`${optionDiagnostic}: run must be a function`);
|
|
22
|
+
for (const name of [
|
|
23
|
+
"title",
|
|
24
|
+
"description",
|
|
25
|
+
"group"
|
|
26
|
+
]) if (command[name] !== void 0 && typeof command[name] !== "string") throw new TypeError(`${optionDiagnostic}: ${name} must be a string`);
|
|
27
|
+
if (command.keywords !== void 0 && (!Array.isArray(command.keywords) || command.keywords.some((keyword) => typeof keyword !== "string"))) throw new TypeError(`${optionDiagnostic}: keywords must be an array of strings`);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Create a typed command router with enablement and help metadata.
|
|
31
|
+
*
|
|
32
|
+
* The router owns no DOM and is safe to create during server rendering.
|
|
33
|
+
* Registering an identifier twice throws a conflict diagnostic so palettes,
|
|
34
|
+
* menus, and shortcut layers cannot silently shadow one another. Call
|
|
35
|
+
* {@link CommandRouter.dispose} when using this factory outside a Vue effect
|
|
36
|
+
* scope.
|
|
37
|
+
*/
|
|
38
|
+
function createCommandRouter(options = {}) {
|
|
39
|
+
if (options.onDidExecute !== void 0 && typeof options.onDidExecute !== "function") throw new TypeError(`${optionDiagnostic}: onDidExecute must be a function`);
|
|
40
|
+
readBoolean(options.isDisabled, "isDisabled", false);
|
|
41
|
+
const registrations = /* @__PURE__ */ new Map();
|
|
42
|
+
const commands = shallowRef(Object.freeze([]));
|
|
43
|
+
let disposed = false;
|
|
44
|
+
const assertActive = () => {
|
|
45
|
+
if (disposed) throw new Error(`${disposedDiagnostic}: the router has been disposed`);
|
|
46
|
+
};
|
|
47
|
+
const readEnabled = (command) => !readBoolean(options.isDisabled, "isDisabled", false) && readBoolean(command.when, "when", true);
|
|
48
|
+
const publishCommands = () => {
|
|
49
|
+
commands.value = Object.freeze([...registrations.values()].map((command) => Object.freeze({
|
|
50
|
+
id: command.id,
|
|
51
|
+
title: command.title ?? null,
|
|
52
|
+
description: command.description ?? null,
|
|
53
|
+
keywords: Object.freeze([...command.keywords ?? []]),
|
|
54
|
+
group: command.group ?? null,
|
|
55
|
+
isEnabled: () => !disposed && registrations.get(command.id) === command && readEnabled(command)
|
|
56
|
+
})));
|
|
57
|
+
};
|
|
58
|
+
const execute = (id, payload, executeOptions = {}) => {
|
|
59
|
+
assertActive();
|
|
60
|
+
const source = executeOptions.source ?? "imperative";
|
|
61
|
+
if (!dispatchSources.has(source)) throw new TypeError(`${optionDiagnostic}: source must be imperative, menu, palette, or shortcut`);
|
|
62
|
+
const command = registrations.get(id);
|
|
63
|
+
const finish = (status, value) => {
|
|
64
|
+
const dispatch = Object.freeze({
|
|
65
|
+
id,
|
|
66
|
+
status,
|
|
67
|
+
value,
|
|
68
|
+
source
|
|
69
|
+
});
|
|
70
|
+
if (command !== void 0) options.onDidExecute?.(dispatch);
|
|
71
|
+
return dispatch;
|
|
72
|
+
};
|
|
73
|
+
if (command === void 0) return finish("not-found", void 0);
|
|
74
|
+
if (!readEnabled(command)) return finish("disabled", void 0);
|
|
75
|
+
const execution = Object.freeze({
|
|
76
|
+
id,
|
|
77
|
+
payload,
|
|
78
|
+
source
|
|
79
|
+
});
|
|
80
|
+
return finish("executed", command.run(execution));
|
|
81
|
+
};
|
|
82
|
+
return Object.freeze({
|
|
83
|
+
commands: shallowReadonly(commands),
|
|
84
|
+
register(command) {
|
|
85
|
+
assertActive();
|
|
86
|
+
validateDefinition(command);
|
|
87
|
+
const existing = registrations.get(command.id);
|
|
88
|
+
if (existing !== void 0) throw new TypeError(`${conflictDiagnostic}: "${command.id}" is already registered` + (existing.title ? ` as "${existing.title}"` : ""));
|
|
89
|
+
registrations.set(command.id, command);
|
|
90
|
+
publishCommands();
|
|
91
|
+
return () => {
|
|
92
|
+
if (registrations.get(command.id) !== command) return;
|
|
93
|
+
registrations.delete(command.id);
|
|
94
|
+
if (!disposed) publishCommands();
|
|
95
|
+
};
|
|
96
|
+
},
|
|
97
|
+
has(id) {
|
|
98
|
+
assertActive();
|
|
99
|
+
return registrations.has(id);
|
|
100
|
+
},
|
|
101
|
+
isEnabled(id) {
|
|
102
|
+
assertActive();
|
|
103
|
+
const command = registrations.get(id);
|
|
104
|
+
return command !== void 0 && readEnabled(command);
|
|
105
|
+
},
|
|
106
|
+
execute,
|
|
107
|
+
dispose: () => {
|
|
108
|
+
if (disposed) return;
|
|
109
|
+
disposed = true;
|
|
110
|
+
registrations.clear();
|
|
111
|
+
commands.value = Object.freeze([]);
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
/** Create a command router disposed with the current Vue effect scope. */
|
|
116
|
+
function useCommandRouter(options = {}) {
|
|
117
|
+
if (!getCurrentScope()) throw new Error(`${setupDiagnostic}: use inside component setup or an active effect scope`);
|
|
118
|
+
const router = createCommandRouter(options);
|
|
119
|
+
onScopeDispose(router.dispose);
|
|
120
|
+
return router;
|
|
121
|
+
}
|
|
122
|
+
//#endregion
|
|
123
|
+
export { createCommandRouter, useCommandRouter };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as createTypeahead } from "./typeahead-
|
|
1
|
+
import { t as createTypeahead } from "./typeahead-DZSBI5m5.mjs";
|
|
2
2
|
import { getCurrentScope, onScopeDispose, toValue } from "vue";
|
|
3
|
-
//#region src/composite-navigation-internal.ts
|
|
3
|
+
//#region src/families/foundations/composite-navigation/composite-navigation-internal.ts
|
|
4
4
|
const optionDiagnostic = "VIZE_UI_COMPOSITE_NAVIGATION_OPTION";
|
|
5
5
|
function capture(errors, callback) {
|
|
6
6
|
try {
|
|
@@ -109,7 +109,7 @@ function validateCommand(value) {
|
|
|
109
109
|
return value;
|
|
110
110
|
}
|
|
111
111
|
//#endregion
|
|
112
|
-
//#region src/composite-navigation-dom.ts
|
|
112
|
+
//#region src/families/foundations/composite-navigation/composite-navigation-dom.ts
|
|
113
113
|
function eventElement(value) {
|
|
114
114
|
const candidate = value;
|
|
115
115
|
return candidate?.nodeType === 1 && typeof candidate.getRootNode === "function" ? candidate : null;
|
|
@@ -166,7 +166,7 @@ function validateActiveDescendant(host, item, id, errors) {
|
|
|
166
166
|
errors.push(/* @__PURE__ */ new Error("VIZE_UI_COMPOSITE_NAVIGATION_RELATIONSHIP: active descendant must be contained, aria-owned, or controlled by a supported input role"));
|
|
167
167
|
}
|
|
168
168
|
//#endregion
|
|
169
|
-
//#region src/composite-navigation.ts
|
|
169
|
+
//#region src/families/foundations/composite-navigation/composite-navigation.ts
|
|
170
170
|
const disposedDiagnostic = "VIZE_UI_COMPOSITE_NAVIGATION_DISPOSED";
|
|
171
171
|
const itemDiagnostic = "VIZE_UI_COMPOSITE_NAVIGATION_ITEM";
|
|
172
172
|
const setupDiagnostic = "VIZE_UI_COMPOSITE_NAVIGATION_SETUP";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { l as CollectionKey, p as CollectionRegistry, s as CollectionItem } from "./collection-
|
|
2
|
-
import { a as TypeaheadOptions, r as TypeaheadController } from "./typeahead-
|
|
1
|
+
import { l as CollectionKey, p as CollectionRegistry, s as CollectionItem } from "./collection-BaPf8lgw.mjs";
|
|
2
|
+
import { a as TypeaheadOptions, r as TypeaheadController } from "./typeahead-Dl6w5PAN.mjs";
|
|
3
3
|
import { ComputedRef, MaybeRefOrGetter } from "vue";
|
|
4
4
|
|
|
5
|
-
//#region src/composite-navigation-types.d.ts
|
|
5
|
+
//#region src/families/foundations/composite-navigation/composite-navigation-types.d.ts
|
|
6
6
|
/** Physical axes recognized by composite arrow-key navigation. */
|
|
7
7
|
type CompositeOrientation = "both" | "horizontal" | "vertical";
|
|
8
8
|
/** Reading direction used to map horizontal arrows. */
|
|
@@ -106,7 +106,7 @@ interface CompositeNavigationController<Key extends CollectionKey> {
|
|
|
106
106
|
readonly dispose: () => void;
|
|
107
107
|
}
|
|
108
108
|
//#endregion
|
|
109
|
-
//#region src/composite-navigation.d.ts
|
|
109
|
+
//#region src/families/foundations/composite-navigation/composite-navigation.d.ts
|
|
110
110
|
/** Create an SSR-safe roving-tabindex or active-descendant collection adapter. */
|
|
111
111
|
declare function createCompositeNavigation<Key extends CollectionKey, Value>(options: CompositeNavigationOptions<Key, Value>): CompositeNavigationController<Key>;
|
|
112
112
|
/** Create a composite adapter disposed with the current Vue effect scope. */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CompositeDirection, c as CompositeNavigationBaseOptions, d as CompositeNavigationController, f as CompositeNavigationIntent, h as RovingNavigationOptions, i as CompositeContainerProps, l as CompositeNavigationChange, m as CompositeOrientation, n as useCompositeNavigation, o as CompositeFocusStrategy, p as CompositeNavigationOptions, r as ActiveDescendantNavigationOptions, s as CompositeItemProps, t as createCompositeNavigation, u as CompositeNavigationCommand } from "./composite-navigation-
|
|
1
|
+
import { a as CompositeDirection, c as CompositeNavigationBaseOptions, d as CompositeNavigationController, f as CompositeNavigationIntent, h as RovingNavigationOptions, i as CompositeContainerProps, l as CompositeNavigationChange, m as CompositeOrientation, n as useCompositeNavigation, o as CompositeFocusStrategy, p as CompositeNavigationOptions, r as ActiveDescendantNavigationOptions, s as CompositeItemProps, t as createCompositeNavigation, u as CompositeNavigationCommand } from "./composite-navigation-i7ocwmio.mjs";
|
|
2
2
|
export { type ActiveDescendantNavigationOptions, type CompositeContainerProps, type CompositeDirection, type CompositeFocusStrategy, type CompositeItemProps, type CompositeNavigationBaseOptions, type CompositeNavigationChange, type CompositeNavigationCommand, type CompositeNavigationController, type CompositeNavigationIntent, type CompositeNavigationOptions, type CompositeOrientation, type RovingNavigationOptions, createCompositeNavigation, useCompositeNavigation };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as useCompositeNavigation, t as createCompositeNavigation } from "./composite-navigation-
|
|
1
|
+
import { n as useCompositeNavigation, t as createCompositeNavigation } from "./composite-navigation-D6WKS_BY.mjs";
|
|
2
2
|
export { createCompositeNavigation, useCompositeNavigation };
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BOaGB7Aw.mjs";
|
|
2
|
+
import { computed, createBlock, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderSlot, resolveDynamicComponent, useTemplateRef, withCtx } from "vue";
|
|
3
|
+
const CONTAINER_MAX_INLINE_SIZES = {
|
|
4
|
+
xs: "36rem",
|
|
5
|
+
sm: "48rem",
|
|
6
|
+
md: "64rem",
|
|
7
|
+
lg: "80rem",
|
|
8
|
+
xl: "96rem",
|
|
9
|
+
full: "none"
|
|
10
|
+
};
|
|
11
|
+
function normalizeContainerLength(length) {
|
|
12
|
+
if (typeof length === "number") return length === 0 ? "0" : `${length}px`;
|
|
13
|
+
return length;
|
|
14
|
+
}
|
|
15
|
+
/** Resolve public Container props into a native CSS logical sizing contract. */
|
|
16
|
+
function resolveContainerLayout(options) {
|
|
17
|
+
const size = options.size ?? "md";
|
|
18
|
+
const maxInlineSize = normalizeContainerLength(options.maxInlineSize ?? CONTAINER_MAX_INLINE_SIZES[size]);
|
|
19
|
+
const paddingInline = normalizeContainerLength(options.paddingInline ?? 0);
|
|
20
|
+
const centered = options.centered ?? true;
|
|
21
|
+
const baseStyle = {
|
|
22
|
+
"--vize-ui-container-max-inline-size": maxInlineSize,
|
|
23
|
+
"--vize-ui-container-padding-inline": paddingInline,
|
|
24
|
+
maxInlineSize: "var(--vize-ui-container-max-inline-size)",
|
|
25
|
+
paddingInline: "var(--vize-ui-container-padding-inline)"
|
|
26
|
+
};
|
|
27
|
+
return {
|
|
28
|
+
centered,
|
|
29
|
+
maxInlineSize,
|
|
30
|
+
paddingInline,
|
|
31
|
+
size,
|
|
32
|
+
style: centered ? {
|
|
33
|
+
...baseStyle,
|
|
34
|
+
marginInline: "auto"
|
|
35
|
+
} : baseStyle
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/families/layout/container/container.vue
|
|
40
|
+
var container_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
41
|
+
__name: "container",
|
|
42
|
+
props: {
|
|
43
|
+
as: {
|
|
44
|
+
type: null,
|
|
45
|
+
required: false,
|
|
46
|
+
default: "div"
|
|
47
|
+
},
|
|
48
|
+
size: {
|
|
49
|
+
type: String,
|
|
50
|
+
required: false,
|
|
51
|
+
default: "md"
|
|
52
|
+
},
|
|
53
|
+
maxInlineSize: {
|
|
54
|
+
type: [String, Number],
|
|
55
|
+
required: false
|
|
56
|
+
},
|
|
57
|
+
paddingInline: {
|
|
58
|
+
type: [String, Number],
|
|
59
|
+
required: false,
|
|
60
|
+
default: 0
|
|
61
|
+
},
|
|
62
|
+
centered: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
required: false,
|
|
65
|
+
default: true
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
setup(__props, { expose: __expose }) {
|
|
69
|
+
const element = useTemplateRef("element");
|
|
70
|
+
const layout = computed(() => resolveContainerLayout({
|
|
71
|
+
centered: __props.centered,
|
|
72
|
+
maxInlineSize: __props.maxInlineSize,
|
|
73
|
+
paddingInline: __props.paddingInline,
|
|
74
|
+
size: __props.size
|
|
75
|
+
}));
|
|
76
|
+
const centeredState = computed(() => layout.value.centered);
|
|
77
|
+
const maxInlineSizeState = computed(() => layout.value.maxInlineSize);
|
|
78
|
+
const paddingInlineState = computed(() => layout.value.paddingInline);
|
|
79
|
+
const sizeState = computed(() => layout.value.size);
|
|
80
|
+
const containerStyle = computed(() => layout.value.style);
|
|
81
|
+
const slotState = computed(() => ({
|
|
82
|
+
centered: centeredState.value,
|
|
83
|
+
maxInlineSize: maxInlineSizeState.value,
|
|
84
|
+
paddingInline: paddingInlineState.value,
|
|
85
|
+
size: sizeState.value,
|
|
86
|
+
style: containerStyle.value
|
|
87
|
+
}));
|
|
88
|
+
const intrinsicProps = computed(() => ({ style: containerStyle.value }));
|
|
89
|
+
__expose({
|
|
90
|
+
centered: centeredState,
|
|
91
|
+
element,
|
|
92
|
+
maxInlineSize: maxInlineSizeState,
|
|
93
|
+
paddingInline: paddingInlineState,
|
|
94
|
+
size: sizeState,
|
|
95
|
+
style: containerStyle
|
|
96
|
+
});
|
|
97
|
+
return (_ctx, _cache) => {
|
|
98
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.as), mergeProps({
|
|
99
|
+
ref_key: "element",
|
|
100
|
+
ref: element,
|
|
101
|
+
part: "root",
|
|
102
|
+
"data-vize-ui": "container",
|
|
103
|
+
"data-size": sizeState.value,
|
|
104
|
+
"data-centered": centeredState.value ? "true" : "false"
|
|
105
|
+
}, intrinsicProps.value), {
|
|
106
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotState.value)), void 0, true)]),
|
|
107
|
+
_: 3
|
|
108
|
+
}, 16, ["data-size", "data-centered"]);
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
}), [["__scopeId", "data-v-83c68da5"]]);
|
|
112
|
+
//#endregion
|
|
113
|
+
export { container_default as t };
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { t as PrimitiveAs } from "./primitive-BE2mdUcw.mjs";
|
|
2
|
+
import { ComponentPublicInstance } from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/families/layout/container/container-types.d.ts
|
|
5
|
+
/** Named max-inline-size preset supported by {@link Container}. */
|
|
6
|
+
type ContainerSize = "xs" | "sm" | "md" | "lg" | "xl" | "full";
|
|
7
|
+
/** Native CSS length, percentage, keyword, or custom property accepted by {@link Container}. */
|
|
8
|
+
type ContainerLength = string | number;
|
|
9
|
+
/** CSS-ready value published after numeric lengths are normalized. */
|
|
10
|
+
type ContainerResolvedLength = string;
|
|
11
|
+
/** Rendered value exposed by {@link Container}. */
|
|
12
|
+
type ContainerElement = Element | ComponentPublicInstance;
|
|
13
|
+
/** Inline style hooks applied to the rendered Container host. */
|
|
14
|
+
interface ContainerStyle {
|
|
15
|
+
/** Consumer-overridable max inline size hook read by the host declaration. */
|
|
16
|
+
readonly "--vize-ui-container-max-inline-size": ContainerResolvedLength;
|
|
17
|
+
/** Consumer-overridable inline padding hook read by the host declaration. */
|
|
18
|
+
readonly "--vize-ui-container-padding-inline": ContainerResolvedLength;
|
|
19
|
+
/** Native logical max inline size declaration. */
|
|
20
|
+
readonly maxInlineSize: string;
|
|
21
|
+
/** Native logical inline padding declaration. */
|
|
22
|
+
readonly paddingInline: string;
|
|
23
|
+
/** Native logical margin declaration applied only when centering is enabled. */
|
|
24
|
+
readonly marginInline?: "auto";
|
|
25
|
+
}
|
|
26
|
+
/** State exposed to the default Container slot. */
|
|
27
|
+
interface ContainerSlotState {
|
|
28
|
+
/** Resolved named max-inline-size preset. */
|
|
29
|
+
readonly size: ContainerSize;
|
|
30
|
+
/** Resolved CSS max inline size value. */
|
|
31
|
+
readonly maxInlineSize: ContainerResolvedLength;
|
|
32
|
+
/** Resolved CSS inline padding value. */
|
|
33
|
+
readonly paddingInline: ContainerResolvedLength;
|
|
34
|
+
/** Whether the host uses logical auto margins. */
|
|
35
|
+
readonly centered: boolean;
|
|
36
|
+
/** Native logical style object applied to the host. */
|
|
37
|
+
readonly style: ContainerStyle;
|
|
38
|
+
}
|
|
39
|
+
/** Resolved layout state published by {@link Container}. */
|
|
40
|
+
type ContainerResolvedLayout = ContainerSlotState;
|
|
41
|
+
/** Public instance state exposed by the Container primitive. */
|
|
42
|
+
interface ContainerExpose extends ContainerSlotState {
|
|
43
|
+
/** Rendered host element or component instance. */
|
|
44
|
+
readonly element: ContainerElement | null;
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/families/layout/container/container.vue.d.ts
|
|
48
|
+
type __VLS_Props = {
|
|
49
|
+
/**
|
|
50
|
+
* Native element, custom element, or component to render.
|
|
51
|
+
*
|
|
52
|
+
* @default "div"
|
|
53
|
+
*/
|
|
54
|
+
readonly as?: PrimitiveAs;
|
|
55
|
+
/**
|
|
56
|
+
* Named max-inline-size preset.
|
|
57
|
+
*
|
|
58
|
+
* @default "md"
|
|
59
|
+
*/
|
|
60
|
+
readonly size?: ContainerSize;
|
|
61
|
+
/**
|
|
62
|
+
* Native CSS `max-inline-size` override. Numbers resolve to px lengths.
|
|
63
|
+
*
|
|
64
|
+
* @default undefined
|
|
65
|
+
*/
|
|
66
|
+
readonly maxInlineSize?: ContainerLength;
|
|
67
|
+
/**
|
|
68
|
+
* Native CSS `padding-inline` value. Numbers resolve to px lengths.
|
|
69
|
+
*
|
|
70
|
+
* @default 0
|
|
71
|
+
*/
|
|
72
|
+
readonly paddingInline?: ContainerLength;
|
|
73
|
+
/**
|
|
74
|
+
* Center the host with logical inline auto margins.
|
|
75
|
+
*
|
|
76
|
+
* @default true
|
|
77
|
+
*/
|
|
78
|
+
readonly centered?: boolean;
|
|
79
|
+
};
|
|
80
|
+
type __VLS_Slots = {
|
|
81
|
+
/** Renders container children with the resolved logical sizing state. */default(props: ContainerSlotState): unknown;
|
|
82
|
+
};
|
|
83
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
84
|
+
centered: import("vue").ComputedRef<boolean>;
|
|
85
|
+
element: Readonly<import("vue").ShallowRef<ContainerElement | null>>;
|
|
86
|
+
maxInlineSize: import("vue").ComputedRef<string>;
|
|
87
|
+
paddingInline: import("vue").ComputedRef<string>;
|
|
88
|
+
size: import("vue").ComputedRef<ContainerSize>;
|
|
89
|
+
style: import("vue").ComputedRef<ContainerStyle>;
|
|
90
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
91
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
92
|
+
declare const _default: typeof __VLS_export;
|
|
93
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
94
|
+
new (): {
|
|
95
|
+
$slots: S;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
//#endregion
|
|
99
|
+
export { ContainerResolvedLayout as a, ContainerSlotState as c, ContainerLength as i, ContainerStyle as l, ContainerElement as n, ContainerResolvedLength as o, ContainerExpose as r, ContainerSize as s, _default as t };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as ContainerResolvedLayout, c as ContainerSlotState, i as ContainerLength, l as ContainerStyle, n as ContainerElement, o as ContainerResolvedLength, r as ContainerExpose, s as ContainerSize, t as _default } from "./container-CYSiwCA-.mjs";
|
|
2
|
+
export { _default as Container, type ContainerElement, type ContainerExpose, type ContainerLength, type ContainerResolvedLayout, type ContainerResolvedLength, type ContainerSize, type ContainerSlotState, type ContainerStyle };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { InjectionKey } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region src/families/foundations/context/context.d.ts
|
|
4
|
+
/** A typed provider and consumer contract for one component family. */
|
|
5
|
+
interface ComponentContext<Value> {
|
|
6
|
+
/** Human-readable context name used by diagnostics and developer tools. */
|
|
7
|
+
readonly name: string;
|
|
8
|
+
/** Public injection key for application-level adapters and test harnesses. */
|
|
9
|
+
readonly key: InjectionKey<Value>;
|
|
10
|
+
/** Provides a value from component setup and returns that same value. */
|
|
11
|
+
readonly provide: (value: Value) => Value;
|
|
12
|
+
/** Reads the nearest value or throws a stable missing-provider diagnostic. */
|
|
13
|
+
readonly use: () => Value;
|
|
14
|
+
/** Reads the nearest value when the provider is intentionally optional. */
|
|
15
|
+
readonly useOptional: () => Value | undefined;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Creates an immutable typed context for a compound component family.
|
|
19
|
+
*
|
|
20
|
+
* A private sentinel distinguishes a missing provider from a provider whose
|
|
21
|
+
* value is explicitly `undefined`.
|
|
22
|
+
*/
|
|
23
|
+
declare function createContext<Value>(name: string): ComponentContext<Value>;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { createContext as n, ComponentContext as t };
|
package/dist/context.d.mts
CHANGED
|
@@ -1,25 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/context.d.ts
|
|
4
|
-
/** A typed provider and consumer contract for one component family. */
|
|
5
|
-
interface ComponentContext<Value> {
|
|
6
|
-
/** Human-readable context name used by diagnostics and developer tools. */
|
|
7
|
-
readonly name: string;
|
|
8
|
-
/** Public injection key for application-level adapters and test harnesses. */
|
|
9
|
-
readonly key: InjectionKey<Value>;
|
|
10
|
-
/** Provides a value from component setup and returns that same value. */
|
|
11
|
-
readonly provide: (value: Value) => Value;
|
|
12
|
-
/** Reads the nearest value or throws a stable missing-provider diagnostic. */
|
|
13
|
-
readonly use: () => Value;
|
|
14
|
-
/** Reads the nearest value when the provider is intentionally optional. */
|
|
15
|
-
readonly useOptional: () => Value | undefined;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Creates an immutable typed context for a compound component family.
|
|
19
|
-
*
|
|
20
|
-
* A private sentinel distinguishes a missing provider from a provider whose
|
|
21
|
-
* value is explicitly `undefined`.
|
|
22
|
-
*/
|
|
23
|
-
declare function createContext<Value>(name: string): ComponentContext<Value>;
|
|
24
|
-
//#endregion
|
|
1
|
+
import { n as createContext, t as ComponentContext } from "./context-7SpwFHtK.mjs";
|
|
25
2
|
export { ComponentContext, createContext };
|