@vizejs/ui 0.386.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
|
@@ -0,0 +1,595 @@
|
|
|
1
|
+
import { a as useDeterministicId, n as deriveDeterministicId } from "./deterministic-id-yMq4HfmS.mjs";
|
|
2
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BOaGB7Aw.mjs";
|
|
3
|
+
import { createContext } from "./context.mjs";
|
|
4
|
+
import { t as createCollectionRegistry } from "./collection-Cncgrq4U.mjs";
|
|
5
|
+
import { n as useCompositeNavigation } from "./composite-navigation-D6WKS_BY.mjs";
|
|
6
|
+
import { useControllableState } from "./controllable-state.mjs";
|
|
7
|
+
import { computed, createElementBlock, defineComponent, guardReactiveProps, nextTick, normalizeProps, onUnmounted, openBlock, renderSlot, unref, useTemplateRef, watch } from "vue";
|
|
8
|
+
//#region src/families/navigation/tabs/tabs-context.ts
|
|
9
|
+
const tabsContext = createContext("Tabs");
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/families/navigation/tabs/tabs-value.ts
|
|
12
|
+
const safeSegment = /^[A-Za-z0-9][A-Za-z0-9_-]*$/;
|
|
13
|
+
/** Return whether two public Tabs values represent the same selected tab. */
|
|
14
|
+
function tabsValueEquals(left, right) {
|
|
15
|
+
return Object.is(left, right);
|
|
16
|
+
}
|
|
17
|
+
/** Create a deterministic, DOM-id-safe segment for an arbitrary tab value. */
|
|
18
|
+
function getTabsValueIdSegment(value) {
|
|
19
|
+
if (safeSegment.test(value)) return `value-${value}`;
|
|
20
|
+
return `value-${value.replaceAll(/[^A-Za-z0-9_-]+/g, "-").replaceAll(/^-+|-+$/g, "").slice(0, 32) || "empty"}-${hashTabsValue(value)}`;
|
|
21
|
+
}
|
|
22
|
+
function hashTabsValue(value) {
|
|
23
|
+
let hash = 2166136261;
|
|
24
|
+
for (let index = 0; index < value.length; index++) {
|
|
25
|
+
hash ^= value.charCodeAt(index);
|
|
26
|
+
hash = Math.imul(hash, 16777619) >>> 0;
|
|
27
|
+
}
|
|
28
|
+
return hash.toString(36);
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/families/navigation/tabs/tabs-root.vue?vue&type=script&setup=true&lang.ts
|
|
32
|
+
const _hoisted_1$3 = [
|
|
33
|
+
"id",
|
|
34
|
+
"dir",
|
|
35
|
+
"data-state",
|
|
36
|
+
"data-disabled",
|
|
37
|
+
"data-orientation",
|
|
38
|
+
"data-activation-mode",
|
|
39
|
+
"data-dir",
|
|
40
|
+
"data-value"
|
|
41
|
+
];
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/families/navigation/tabs/tabs-root.vue
|
|
44
|
+
var tabs_root_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
45
|
+
__name: "tabs-root",
|
|
46
|
+
props: {
|
|
47
|
+
id: {
|
|
48
|
+
type: [String, null],
|
|
49
|
+
required: false,
|
|
50
|
+
default: () => void 0
|
|
51
|
+
},
|
|
52
|
+
modelValue: {
|
|
53
|
+
type: [String, null],
|
|
54
|
+
required: false,
|
|
55
|
+
default: () => void 0
|
|
56
|
+
},
|
|
57
|
+
defaultValue: {
|
|
58
|
+
type: [String, null],
|
|
59
|
+
required: false,
|
|
60
|
+
default: () => void 0
|
|
61
|
+
},
|
|
62
|
+
disabled: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
required: false,
|
|
65
|
+
default: false
|
|
66
|
+
},
|
|
67
|
+
activationMode: {
|
|
68
|
+
type: String,
|
|
69
|
+
required: false,
|
|
70
|
+
default: "automatic"
|
|
71
|
+
},
|
|
72
|
+
orientation: {
|
|
73
|
+
type: String,
|
|
74
|
+
required: false,
|
|
75
|
+
default: "horizontal"
|
|
76
|
+
},
|
|
77
|
+
dir: {
|
|
78
|
+
type: String,
|
|
79
|
+
required: false,
|
|
80
|
+
default: "ltr"
|
|
81
|
+
},
|
|
82
|
+
loop: {
|
|
83
|
+
type: Boolean,
|
|
84
|
+
required: false,
|
|
85
|
+
default: true
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
emits: ["update:modelValue", "change"],
|
|
89
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
90
|
+
const emit = __emit;
|
|
91
|
+
const element = useTemplateRef("element");
|
|
92
|
+
const baseId = useDeterministicId({
|
|
93
|
+
id: () => __props.id,
|
|
94
|
+
hint: "tabs"
|
|
95
|
+
});
|
|
96
|
+
const listId = computed(() => deriveDeterministicId(baseId.value, "list"));
|
|
97
|
+
const disabledState = computed(() => __props.disabled);
|
|
98
|
+
const activationModeState = computed(() => __props.activationMode);
|
|
99
|
+
const orientationState = computed(() => __props.orientation);
|
|
100
|
+
const dirState = computed(() => __props.dir);
|
|
101
|
+
const registry = createCollectionRegistry({ disabledBehavior: "skip" });
|
|
102
|
+
const firstEnabledValue = computed(() => registry.navigableItems.value[0]?.key ?? null);
|
|
103
|
+
const valueState = useControllableState({
|
|
104
|
+
value: () => __props.modelValue,
|
|
105
|
+
defaultValue: () => __props.defaultValue,
|
|
106
|
+
equals: Object.is
|
|
107
|
+
});
|
|
108
|
+
const selectedValue = computed(() => {
|
|
109
|
+
const configured = valueState.value.value;
|
|
110
|
+
if (valueState.controlled.value) return configured ?? null;
|
|
111
|
+
return configured === void 0 ? firstEnabledValue.value : configured;
|
|
112
|
+
});
|
|
113
|
+
const state = computed(() => {
|
|
114
|
+
if (disabledState.value) return "disabled";
|
|
115
|
+
return selectedValue.value === null ? "empty" : "selected";
|
|
116
|
+
});
|
|
117
|
+
const slotState = computed(() => ({
|
|
118
|
+
activationMode: activationModeState.value,
|
|
119
|
+
dir: dirState.value,
|
|
120
|
+
disabled: disabledState.value,
|
|
121
|
+
orientation: orientationState.value,
|
|
122
|
+
state: state.value,
|
|
123
|
+
value: selectedValue.value
|
|
124
|
+
}));
|
|
125
|
+
function getSelectedValue() {
|
|
126
|
+
return selectedValue.value;
|
|
127
|
+
}
|
|
128
|
+
function getTriggerId(value) {
|
|
129
|
+
return deriveDeterministicId(baseId.value, `trigger-${getTabsValueIdSegment(value)}`);
|
|
130
|
+
}
|
|
131
|
+
function getContentId(value) {
|
|
132
|
+
return deriveDeterministicId(baseId.value, `content-${getTabsValueIdSegment(value)}`);
|
|
133
|
+
}
|
|
134
|
+
function setValue(value, nativeEvent = null) {
|
|
135
|
+
const previous = getSelectedValue();
|
|
136
|
+
if (tabsValueEquals(previous, value)) return false;
|
|
137
|
+
valueState.set(value);
|
|
138
|
+
if (value !== null && registry.getItem(value)?.disabled === false) registry.setActiveKey(value);
|
|
139
|
+
emit("update:modelValue", value);
|
|
140
|
+
emit("change", value, previous, nativeEvent);
|
|
141
|
+
return true;
|
|
142
|
+
}
|
|
143
|
+
function reset() {
|
|
144
|
+
return setValue(__props.defaultValue === void 0 ? firstEnabledValue.value : __props.defaultValue, null);
|
|
145
|
+
}
|
|
146
|
+
function syncActiveValue() {
|
|
147
|
+
if (disabledState.value) {
|
|
148
|
+
if (registry.activeKey.value !== null) registry.setActiveKey(null);
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
const selected = getSelectedValue();
|
|
152
|
+
const selectedItem = selected === null ? void 0 : registry.getItem(selected);
|
|
153
|
+
const target = selectedItem !== void 0 && !selectedItem.disabled ? selected : firstEnabledValue.value;
|
|
154
|
+
if (target !== registry.activeKey.value) registry.setActiveKey(target);
|
|
155
|
+
}
|
|
156
|
+
function focus(options) {
|
|
157
|
+
syncActiveValue();
|
|
158
|
+
const target = registry.activeKey.value ?? firstEnabledValue.value;
|
|
159
|
+
const item = target === null ? void 0 : registry.getItem(target);
|
|
160
|
+
if (item?.element instanceof HTMLElement) item.element.focus(options);
|
|
161
|
+
}
|
|
162
|
+
function getTriggerState(value, triggerDisabled) {
|
|
163
|
+
if (triggerDisabled) return "disabled";
|
|
164
|
+
return selectedValue.value === value ? "active" : "inactive";
|
|
165
|
+
}
|
|
166
|
+
function registerTrigger(input) {
|
|
167
|
+
const registration = registry.register({
|
|
168
|
+
key: input.value,
|
|
169
|
+
value: input.value,
|
|
170
|
+
element: input.element,
|
|
171
|
+
disabled: input.disabled,
|
|
172
|
+
textValue: input.textValue,
|
|
173
|
+
order: input.order
|
|
174
|
+
});
|
|
175
|
+
syncActiveValue();
|
|
176
|
+
nextTick(syncActiveValue);
|
|
177
|
+
return registration;
|
|
178
|
+
}
|
|
179
|
+
const navigation = useCompositeNavigation({
|
|
180
|
+
registry,
|
|
181
|
+
focusStrategy: "roving",
|
|
182
|
+
getItemId: ({ key }) => getTriggerId(key),
|
|
183
|
+
orientation: orientationState,
|
|
184
|
+
direction: dirState,
|
|
185
|
+
loop: () => __props.loop,
|
|
186
|
+
isDisabled: disabledState,
|
|
187
|
+
onNavigate(change) {
|
|
188
|
+
if (activationModeState.value === "automatic" && change.intent !== "pointer") setValue(change.key, change.originalEvent);
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
watch([
|
|
192
|
+
disabledState,
|
|
193
|
+
selectedValue,
|
|
194
|
+
registry.navigableItems
|
|
195
|
+
], () => syncActiveValue(), {
|
|
196
|
+
flush: "post",
|
|
197
|
+
immediate: true
|
|
198
|
+
});
|
|
199
|
+
watch(registry.items, (items, previousItems) => {
|
|
200
|
+
const selected = getSelectedValue();
|
|
201
|
+
if (valueState.controlled.value || selected === null) return;
|
|
202
|
+
const hadSelected = previousItems.some((item) => item.key === selected);
|
|
203
|
+
const hasSelected = items.some((item) => item.key === selected);
|
|
204
|
+
if (hadSelected && !hasSelected) setValue(firstEnabledValue.value, null);
|
|
205
|
+
}, { flush: "post" });
|
|
206
|
+
__expose({
|
|
207
|
+
activationMode: activationModeState,
|
|
208
|
+
dir: dirState,
|
|
209
|
+
disabled: disabledState,
|
|
210
|
+
element,
|
|
211
|
+
focus: tabsContext.provide({
|
|
212
|
+
activationMode: activationModeState,
|
|
213
|
+
dir: dirState,
|
|
214
|
+
disabled: disabledState,
|
|
215
|
+
focus,
|
|
216
|
+
getContentId,
|
|
217
|
+
getTriggerId,
|
|
218
|
+
getTriggerState,
|
|
219
|
+
id: baseId,
|
|
220
|
+
isSelected: (value) => selectedValue.value === value,
|
|
221
|
+
listId,
|
|
222
|
+
navigation,
|
|
223
|
+
orientation: orientationState,
|
|
224
|
+
registerTrigger,
|
|
225
|
+
registry,
|
|
226
|
+
selectValue: (value, nativeEvent = null) => setValue(value, nativeEvent),
|
|
227
|
+
setValue,
|
|
228
|
+
state,
|
|
229
|
+
syncActiveValue,
|
|
230
|
+
value: selectedValue
|
|
231
|
+
}).focus,
|
|
232
|
+
id: baseId,
|
|
233
|
+
listId,
|
|
234
|
+
orientation: orientationState,
|
|
235
|
+
reset,
|
|
236
|
+
setValue,
|
|
237
|
+
state,
|
|
238
|
+
value: selectedValue
|
|
239
|
+
});
|
|
240
|
+
return (_ctx, _cache) => {
|
|
241
|
+
return openBlock(), createElementBlock("div", {
|
|
242
|
+
id: unref(baseId),
|
|
243
|
+
ref_key: "element",
|
|
244
|
+
ref: element,
|
|
245
|
+
dir: dirState.value,
|
|
246
|
+
"data-vize-ui": "tabs-root",
|
|
247
|
+
part: "root",
|
|
248
|
+
"data-state": state.value,
|
|
249
|
+
"data-disabled": disabledState.value ? "true" : void 0,
|
|
250
|
+
"data-orientation": orientationState.value,
|
|
251
|
+
"data-activation-mode": activationModeState.value,
|
|
252
|
+
"data-dir": dirState.value,
|
|
253
|
+
"data-value": selectedValue.value ?? void 0
|
|
254
|
+
}, [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotState.value)), void 0, true)], 8, _hoisted_1$3);
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
}), [["__scopeId", "data-v-ba7f2547"]]);
|
|
258
|
+
//#endregion
|
|
259
|
+
//#region src/families/navigation/tabs/tabs-content.vue?vue&type=script&setup=true&lang.ts
|
|
260
|
+
const _hoisted_1$2 = [
|
|
261
|
+
"id",
|
|
262
|
+
"hidden",
|
|
263
|
+
"tabindex",
|
|
264
|
+
"aria-label",
|
|
265
|
+
"aria-labelledby",
|
|
266
|
+
"aria-describedby",
|
|
267
|
+
"data-state",
|
|
268
|
+
"data-selected",
|
|
269
|
+
"data-disabled",
|
|
270
|
+
"data-orientation",
|
|
271
|
+
"data-value"
|
|
272
|
+
];
|
|
273
|
+
//#endregion
|
|
274
|
+
//#region src/families/navigation/tabs/tabs-content.vue
|
|
275
|
+
var tabs_content_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
276
|
+
__name: "tabs-content",
|
|
277
|
+
props: {
|
|
278
|
+
value: {
|
|
279
|
+
type: String,
|
|
280
|
+
required: true
|
|
281
|
+
},
|
|
282
|
+
ariaLabel: {
|
|
283
|
+
type: String,
|
|
284
|
+
required: false,
|
|
285
|
+
default: () => void 0
|
|
286
|
+
},
|
|
287
|
+
ariaLabelledby: {
|
|
288
|
+
type: [String, null],
|
|
289
|
+
required: false,
|
|
290
|
+
default: () => void 0
|
|
291
|
+
},
|
|
292
|
+
ariaDescribedby: {
|
|
293
|
+
type: String,
|
|
294
|
+
required: false,
|
|
295
|
+
default: () => void 0
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
setup(__props, { expose: __expose }) {
|
|
299
|
+
const context = tabsContext.use();
|
|
300
|
+
const element = useTemplateRef("element");
|
|
301
|
+
const contentId = computed(() => context.getContentId(__props.value));
|
|
302
|
+
const selected = computed(() => context.isSelected(__props.value));
|
|
303
|
+
const contentState = computed(() => selected.value ? "active" : "inactive");
|
|
304
|
+
const labelledBy = computed(() => {
|
|
305
|
+
if (__props.ariaLabel !== void 0) return void 0;
|
|
306
|
+
return __props.ariaLabelledby ?? context.getTriggerId(__props.value);
|
|
307
|
+
});
|
|
308
|
+
const slotState = computed(() => ({
|
|
309
|
+
disabled: context.disabled.value,
|
|
310
|
+
orientation: context.orientation.value,
|
|
311
|
+
selected: selected.value,
|
|
312
|
+
state: contentState.value,
|
|
313
|
+
value: __props.value
|
|
314
|
+
}));
|
|
315
|
+
function focusContent(options) {
|
|
316
|
+
if (selected.value) element.value?.focus(options);
|
|
317
|
+
}
|
|
318
|
+
__expose({
|
|
319
|
+
disabled: context.disabled,
|
|
320
|
+
element,
|
|
321
|
+
focusContent,
|
|
322
|
+
id: contentId,
|
|
323
|
+
orientation: context.orientation,
|
|
324
|
+
selected,
|
|
325
|
+
state: contentState,
|
|
326
|
+
value: __props.value
|
|
327
|
+
});
|
|
328
|
+
return (_ctx, _cache) => {
|
|
329
|
+
return openBlock(), createElementBlock("div", {
|
|
330
|
+
id: contentId.value,
|
|
331
|
+
ref_key: "element",
|
|
332
|
+
ref: element,
|
|
333
|
+
role: "tabpanel",
|
|
334
|
+
hidden: selected.value ? void 0 : true,
|
|
335
|
+
tabindex: selected.value ? 0 : void 0,
|
|
336
|
+
"aria-label": __props.ariaLabel,
|
|
337
|
+
"aria-labelledby": labelledBy.value,
|
|
338
|
+
"aria-describedby": __props.ariaDescribedby,
|
|
339
|
+
"data-vize-ui": "tabs-content",
|
|
340
|
+
part: "content",
|
|
341
|
+
"data-state": contentState.value,
|
|
342
|
+
"data-selected": selected.value ? "true" : "false",
|
|
343
|
+
"data-disabled": unref(context).disabled.value ? "true" : void 0,
|
|
344
|
+
"data-orientation": unref(context).orientation.value,
|
|
345
|
+
"data-value": __props.value
|
|
346
|
+
}, [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotState.value)), void 0, true)], 8, _hoisted_1$2);
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
}), [["__scopeId", "data-v-e730e068"]]);
|
|
350
|
+
//#endregion
|
|
351
|
+
//#region src/families/navigation/tabs/tabs-list.vue?vue&type=script&setup=true&lang.ts
|
|
352
|
+
const _hoisted_1$1 = [
|
|
353
|
+
"id",
|
|
354
|
+
"aria-label",
|
|
355
|
+
"aria-labelledby",
|
|
356
|
+
"aria-describedby",
|
|
357
|
+
"aria-orientation",
|
|
358
|
+
"data-state",
|
|
359
|
+
"data-disabled",
|
|
360
|
+
"data-orientation",
|
|
361
|
+
"data-activation-mode",
|
|
362
|
+
"data-value"
|
|
363
|
+
];
|
|
364
|
+
//#endregion
|
|
365
|
+
//#region src/families/navigation/tabs/tabs-list.vue
|
|
366
|
+
var tabs_list_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
367
|
+
__name: "tabs-list",
|
|
368
|
+
props: {
|
|
369
|
+
ariaLabel: {
|
|
370
|
+
type: String,
|
|
371
|
+
required: false,
|
|
372
|
+
default: () => void 0
|
|
373
|
+
},
|
|
374
|
+
ariaLabelledby: {
|
|
375
|
+
type: String,
|
|
376
|
+
required: false,
|
|
377
|
+
default: () => void 0
|
|
378
|
+
},
|
|
379
|
+
ariaDescribedby: {
|
|
380
|
+
type: String,
|
|
381
|
+
required: false,
|
|
382
|
+
default: () => void 0
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
setup(__props, { expose: __expose }) {
|
|
386
|
+
const context = tabsContext.use();
|
|
387
|
+
const element = useTemplateRef("element");
|
|
388
|
+
const slotState = computed(() => ({
|
|
389
|
+
activationMode: context.activationMode.value,
|
|
390
|
+
dir: context.dir.value,
|
|
391
|
+
disabled: context.disabled.value,
|
|
392
|
+
listId: context.listId.value,
|
|
393
|
+
orientation: context.orientation.value,
|
|
394
|
+
state: context.state.value,
|
|
395
|
+
value: context.value.value
|
|
396
|
+
}));
|
|
397
|
+
__expose({
|
|
398
|
+
activationMode: context.activationMode,
|
|
399
|
+
dir: context.dir,
|
|
400
|
+
disabled: context.disabled,
|
|
401
|
+
element,
|
|
402
|
+
focus: context.focus,
|
|
403
|
+
listId: context.listId,
|
|
404
|
+
orientation: context.orientation,
|
|
405
|
+
state: context.state,
|
|
406
|
+
value: context.value
|
|
407
|
+
});
|
|
408
|
+
return (_ctx, _cache) => {
|
|
409
|
+
return openBlock(), createElementBlock("div", {
|
|
410
|
+
id: unref(context).listId.value,
|
|
411
|
+
ref_key: "element",
|
|
412
|
+
ref: element,
|
|
413
|
+
role: "tablist",
|
|
414
|
+
"aria-label": __props.ariaLabel,
|
|
415
|
+
"aria-labelledby": __props.ariaLabelledby,
|
|
416
|
+
"aria-describedby": __props.ariaDescribedby,
|
|
417
|
+
"aria-orientation": unref(context).orientation.value,
|
|
418
|
+
"data-vize-ui": "tabs-list",
|
|
419
|
+
part: "list",
|
|
420
|
+
"data-state": unref(context).state.value,
|
|
421
|
+
"data-disabled": unref(context).disabled.value ? "true" : void 0,
|
|
422
|
+
"data-orientation": unref(context).orientation.value,
|
|
423
|
+
"data-activation-mode": unref(context).activationMode.value,
|
|
424
|
+
"data-value": unref(context).value.value ?? void 0
|
|
425
|
+
}, [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotState.value)), void 0, true)], 8, _hoisted_1$1);
|
|
426
|
+
};
|
|
427
|
+
}
|
|
428
|
+
}), [["__scopeId", "data-v-403c4233"]]);
|
|
429
|
+
//#endregion
|
|
430
|
+
//#region src/families/navigation/tabs/tabs-trigger.vue?vue&type=script&setup=true&lang.ts
|
|
431
|
+
const _hoisted_1 = [
|
|
432
|
+
"id",
|
|
433
|
+
"type",
|
|
434
|
+
"disabled",
|
|
435
|
+
"tabindex",
|
|
436
|
+
"aria-label",
|
|
437
|
+
"aria-labelledby",
|
|
438
|
+
"aria-describedby",
|
|
439
|
+
"aria-selected",
|
|
440
|
+
"aria-controls",
|
|
441
|
+
"data-state",
|
|
442
|
+
"data-selected",
|
|
443
|
+
"data-disabled",
|
|
444
|
+
"data-orientation",
|
|
445
|
+
"data-value"
|
|
446
|
+
];
|
|
447
|
+
//#endregion
|
|
448
|
+
//#region src/families/navigation/tabs/tabs-trigger.vue
|
|
449
|
+
var tabs_trigger_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
450
|
+
__name: "tabs-trigger",
|
|
451
|
+
props: {
|
|
452
|
+
value: {
|
|
453
|
+
type: String,
|
|
454
|
+
required: true
|
|
455
|
+
},
|
|
456
|
+
type: {
|
|
457
|
+
type: String,
|
|
458
|
+
required: false,
|
|
459
|
+
default: "button"
|
|
460
|
+
},
|
|
461
|
+
disabled: {
|
|
462
|
+
type: Boolean,
|
|
463
|
+
required: false,
|
|
464
|
+
default: false
|
|
465
|
+
},
|
|
466
|
+
textValue: {
|
|
467
|
+
type: [String, null],
|
|
468
|
+
required: false,
|
|
469
|
+
default: () => void 0
|
|
470
|
+
},
|
|
471
|
+
order: {
|
|
472
|
+
type: Number,
|
|
473
|
+
required: false,
|
|
474
|
+
default: () => void 0
|
|
475
|
+
},
|
|
476
|
+
ariaLabel: {
|
|
477
|
+
type: String,
|
|
478
|
+
required: false,
|
|
479
|
+
default: () => void 0
|
|
480
|
+
},
|
|
481
|
+
ariaLabelledby: {
|
|
482
|
+
type: String,
|
|
483
|
+
required: false,
|
|
484
|
+
default: () => void 0
|
|
485
|
+
},
|
|
486
|
+
ariaDescribedby: {
|
|
487
|
+
type: String,
|
|
488
|
+
required: false,
|
|
489
|
+
default: () => void 0
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
emits: ["click"],
|
|
493
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
494
|
+
const emit = __emit;
|
|
495
|
+
const context = tabsContext.use();
|
|
496
|
+
const element = useTemplateRef("element");
|
|
497
|
+
const triggerId = computed(() => context.getTriggerId(__props.value));
|
|
498
|
+
const contentId = computed(() => context.getContentId(__props.value));
|
|
499
|
+
const selected = computed(() => context.isSelected(__props.value));
|
|
500
|
+
const triggerDisabled = computed(() => context.disabled.value || __props.disabled);
|
|
501
|
+
const triggerState = computed(() => context.getTriggerState(__props.value, triggerDisabled.value));
|
|
502
|
+
const navigationProps = computed(() => context.navigation.getItemProps(__props.value));
|
|
503
|
+
const tabIndex = computed(() => triggerDisabled.value ? void 0 : navigationProps.value.tabindex);
|
|
504
|
+
const slotState = computed(() => ({
|
|
505
|
+
activationMode: context.activationMode.value,
|
|
506
|
+
disabled: triggerDisabled.value,
|
|
507
|
+
orientation: context.orientation.value,
|
|
508
|
+
selected: selected.value,
|
|
509
|
+
state: triggerState.value,
|
|
510
|
+
value: __props.value
|
|
511
|
+
}));
|
|
512
|
+
let registration = null;
|
|
513
|
+
function register() {
|
|
514
|
+
registration?.unregister();
|
|
515
|
+
registration = context.registerTrigger({
|
|
516
|
+
disabled: triggerDisabled,
|
|
517
|
+
element,
|
|
518
|
+
order: () => __props.order,
|
|
519
|
+
textValue: () => __props.textValue,
|
|
520
|
+
value: __props.value
|
|
521
|
+
});
|
|
522
|
+
}
|
|
523
|
+
watch(() => __props.value, register, {
|
|
524
|
+
flush: "sync",
|
|
525
|
+
immediate: true
|
|
526
|
+
});
|
|
527
|
+
watch([triggerDisabled, () => __props.order], () => context.syncActiveValue(), { flush: "post" });
|
|
528
|
+
onUnmounted(() => {
|
|
529
|
+
registration?.unregister();
|
|
530
|
+
registration = null;
|
|
531
|
+
nextTick(context.syncActiveValue);
|
|
532
|
+
});
|
|
533
|
+
function onPointerdown(event) {
|
|
534
|
+
if (!triggerDisabled.value) navigationProps.value.onPointerdown(event);
|
|
535
|
+
}
|
|
536
|
+
function onFocus(event) {
|
|
537
|
+
if (!triggerDisabled.value) navigationProps.value.onFocus(event);
|
|
538
|
+
}
|
|
539
|
+
function onKeydown(event) {
|
|
540
|
+
if (!triggerDisabled.value) context.navigation.getContainerProps().onKeydown(event);
|
|
541
|
+
}
|
|
542
|
+
function onClick(event) {
|
|
543
|
+
if (triggerDisabled.value) {
|
|
544
|
+
event.preventDefault();
|
|
545
|
+
event.stopImmediatePropagation();
|
|
546
|
+
return;
|
|
547
|
+
}
|
|
548
|
+
emit("click", event);
|
|
549
|
+
if (!event.defaultPrevented) context.selectValue(__props.value, event);
|
|
550
|
+
}
|
|
551
|
+
function focus(options) {
|
|
552
|
+
element.value?.focus(options);
|
|
553
|
+
}
|
|
554
|
+
__expose({
|
|
555
|
+
activationMode: context.activationMode,
|
|
556
|
+
disabled: triggerDisabled,
|
|
557
|
+
element,
|
|
558
|
+
focus,
|
|
559
|
+
id: triggerId,
|
|
560
|
+
orientation: context.orientation,
|
|
561
|
+
selected,
|
|
562
|
+
state: triggerState,
|
|
563
|
+
value: __props.value
|
|
564
|
+
});
|
|
565
|
+
return (_ctx, _cache) => {
|
|
566
|
+
return openBlock(), createElementBlock("button", {
|
|
567
|
+
id: triggerId.value,
|
|
568
|
+
ref_key: "element",
|
|
569
|
+
ref: element,
|
|
570
|
+
type: __props.type,
|
|
571
|
+
role: "tab",
|
|
572
|
+
disabled: triggerDisabled.value,
|
|
573
|
+
tabindex: tabIndex.value,
|
|
574
|
+
"aria-label": __props.ariaLabel,
|
|
575
|
+
"aria-labelledby": __props.ariaLabelledby,
|
|
576
|
+
"aria-describedby": __props.ariaDescribedby,
|
|
577
|
+
"aria-selected": selected.value ? "true" : "false",
|
|
578
|
+
"aria-controls": contentId.value,
|
|
579
|
+
"data-vize-ui": "tabs-trigger",
|
|
580
|
+
part: "trigger",
|
|
581
|
+
"data-state": triggerState.value,
|
|
582
|
+
"data-selected": selected.value ? "true" : "false",
|
|
583
|
+
"data-disabled": triggerDisabled.value ? "true" : void 0,
|
|
584
|
+
"data-orientation": unref(context).orientation.value,
|
|
585
|
+
"data-value": __props.value,
|
|
586
|
+
onPointerdown,
|
|
587
|
+
onFocus,
|
|
588
|
+
onKeydown,
|
|
589
|
+
onClick
|
|
590
|
+
}, [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotState.value)), void 0, true), renderSlot(_ctx.$slots, "indicator", normalizeProps(guardReactiveProps(slotState.value)), void 0, true)], 40, _hoisted_1);
|
|
591
|
+
};
|
|
592
|
+
}
|
|
593
|
+
}), [["__scopeId", "data-v-f46f89a8"]]);
|
|
594
|
+
//#endregion
|
|
595
|
+
export { tabs_root_default as i, tabs_list_default as n, tabs_content_default as r, tabs_trigger_default as t };
|
package/dist/tabs.d.mts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Cc as TabsSlotState, Dc as TabsTriggerState, Ec as TabsTriggerSlotState, Oc as TabsValue, Sc as TabsRootExpose, Tc as TabsTriggerExpose, _c as TabsContentState, bc as TabsListSlotState, dc as _default$2, fc as _default$1, gc as TabsContentSlotState, hc as TabsContentExpose, mc as TabsActivationMode, pc as _default, uc as _default$3, vc as TabsDirection, wc as TabsState, xc as TabsOrientation, yc as TabsListExpose } from "./announcer-DGr2Iz0i.mjs";
|
|
2
|
+
export { _default as Tabs, _default as TabsRoot, type TabsActivationMode, _default$1 as TabsContent, type TabsContentExpose, type TabsContentSlotState, type TabsContentState, type TabsDirection, _default$2 as TabsList, type TabsListExpose, type TabsListSlotState, type TabsOrientation, type TabsRootExpose, type TabsSlotState, type TabsState, _default$3 as TabsTrigger, type TabsTriggerExpose, type TabsTriggerSlotState, type TabsTriggerState, type TabsValue };
|
package/dist/tabs.mjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { i as tabs_root_default, n as tabs_list_default, r as tabs_content_default, t as tabs_trigger_default } from "./tabs-DSXIomI_.mjs";
|
|
2
|
+
export { tabs_root_default as Tabs, tabs_root_default as TabsRoot, tabs_content_default as TabsContent, tabs_list_default as TabsList, tabs_trigger_default as TabsTrigger };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BOaGB7Aw.mjs";
|
|
2
|
+
import { computed, createBlock, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, resolveDynamicComponent, useTemplateRef, withCtx } from "vue";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/families/typography/text/text.vue
|
|
5
|
+
var text_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "text",
|
|
7
|
+
props: {
|
|
8
|
+
as: {
|
|
9
|
+
type: null,
|
|
10
|
+
required: false,
|
|
11
|
+
default: "span"
|
|
12
|
+
},
|
|
13
|
+
size: {
|
|
14
|
+
type: String,
|
|
15
|
+
required: false,
|
|
16
|
+
default: "md"
|
|
17
|
+
},
|
|
18
|
+
weight: {
|
|
19
|
+
type: String,
|
|
20
|
+
required: false,
|
|
21
|
+
default: "regular"
|
|
22
|
+
},
|
|
23
|
+
tone: {
|
|
24
|
+
type: String,
|
|
25
|
+
required: false,
|
|
26
|
+
default: "neutral"
|
|
27
|
+
},
|
|
28
|
+
truncate: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
required: false,
|
|
31
|
+
default: false
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
setup(__props, { expose: __expose }) {
|
|
35
|
+
const element = useTemplateRef("element");
|
|
36
|
+
const sizeState = computed(() => __props.size);
|
|
37
|
+
const weightState = computed(() => __props.weight);
|
|
38
|
+
const toneState = computed(() => __props.tone);
|
|
39
|
+
const truncateState = computed(() => __props.truncate);
|
|
40
|
+
const slotState = computed(() => ({
|
|
41
|
+
size: sizeState.value,
|
|
42
|
+
tone: toneState.value,
|
|
43
|
+
truncate: truncateState.value,
|
|
44
|
+
weight: weightState.value
|
|
45
|
+
}));
|
|
46
|
+
__expose({
|
|
47
|
+
element,
|
|
48
|
+
size: sizeState,
|
|
49
|
+
tone: toneState,
|
|
50
|
+
truncate: truncateState,
|
|
51
|
+
weight: weightState
|
|
52
|
+
});
|
|
53
|
+
return (_ctx, _cache) => {
|
|
54
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.as), {
|
|
55
|
+
ref_key: "element",
|
|
56
|
+
ref: element,
|
|
57
|
+
part: "root",
|
|
58
|
+
"data-vize-ui": "text",
|
|
59
|
+
"data-size": sizeState.value,
|
|
60
|
+
"data-weight": weightState.value,
|
|
61
|
+
"data-tone": toneState.value,
|
|
62
|
+
"data-truncate": truncateState.value ? "true" : "false"
|
|
63
|
+
}, {
|
|
64
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotState.value)), void 0, true)]),
|
|
65
|
+
_: 3
|
|
66
|
+
}, 8, [
|
|
67
|
+
"data-size",
|
|
68
|
+
"data-weight",
|
|
69
|
+
"data-tone",
|
|
70
|
+
"data-truncate"
|
|
71
|
+
]);
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
}), [["__scopeId", "data-v-c59b1258"]]);
|
|
75
|
+
//#endregion
|
|
76
|
+
export { text_default as t };
|
package/dist/text.d.mts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { At as TextSize, Dt as _default, Mt as TextTone, Nt as TextWeight, Ot as TextElement, jt as TextSlotState, kt as TextExpose } from "./announcer-DGr2Iz0i.mjs";
|
|
2
|
+
export { _default as Text, type TextElement, type TextExpose, type TextSize, type TextSlotState, type TextTone, type TextWeight };
|
package/dist/text.mjs
ADDED