@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
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { useControllableState } from "./controllable-state.mjs";
|
|
2
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BOaGB7Aw.mjs";
|
|
2
|
+
import { useControllableState } from "./controllable-state.mjs";
|
|
3
3
|
import { computed, createElementBlock, defineComponent, nextTick, openBlock, unref, useTemplateRef, watch, watchEffect } from "vue";
|
|
4
|
-
//#region src/checkbox-state.ts
|
|
4
|
+
//#region src/families/selection/checkbox/checkbox-state.ts
|
|
5
5
|
/** Resolve the visual state while giving the mixed state precedence. */
|
|
6
6
|
function getCheckboxState(checked, indeterminate) {
|
|
7
7
|
if (indeterminate) return "indeterminate";
|
|
8
8
|
return checked ? "checked" : "unchecked";
|
|
9
9
|
}
|
|
10
10
|
//#endregion
|
|
11
|
-
//#region src/
|
|
11
|
+
//#region src/families/selection/checkbox/checkbox-control.vue?vue&type=script&setup=true&lang.ts
|
|
12
12
|
const _hoisted_1 = [
|
|
13
13
|
"checked",
|
|
14
14
|
"disabled",
|
|
@@ -17,9 +17,9 @@ const _hoisted_1 = [
|
|
|
17
17
|
"data-state"
|
|
18
18
|
];
|
|
19
19
|
//#endregion
|
|
20
|
-
//#region src/
|
|
21
|
-
var
|
|
22
|
-
__name: "
|
|
20
|
+
//#region src/families/selection/checkbox/checkbox-control.vue
|
|
21
|
+
var checkbox_control_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
22
|
+
__name: "checkbox-control",
|
|
23
23
|
props: {
|
|
24
24
|
modelValue: {
|
|
25
25
|
type: Boolean,
|
|
@@ -114,6 +114,6 @@ var CheckboxControl_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
114
114
|
}, null, 40, _hoisted_1);
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
|
-
}), [["__scopeId", "data-v-
|
|
117
|
+
}), [["__scopeId", "data-v-3becdfb9"]]);
|
|
118
118
|
//#endregion
|
|
119
|
-
export { getCheckboxState as n,
|
|
119
|
+
export { getCheckboxState as n, checkbox_control_default as t };
|
package/dist/checkbox.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { as as CheckboxState, is as _default, os as getCheckboxState } from "./announcer-CuBryPW9.mjs";
|
|
2
2
|
export { _default as Checkbox, CheckboxState, getCheckboxState };
|
package/dist/checkbox.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as getCheckboxState, t as
|
|
2
|
-
export {
|
|
1
|
+
import { n as getCheckboxState, t as checkbox_control_default } from "./checkbox-bM5y7vH8.mjs";
|
|
2
|
+
export { checkbox_control_default as Checkbox, getCheckboxState };
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { t as PrimitiveAs } from "./primitive-BE2mdUcw.mjs";
|
|
2
|
+
import { ComponentPublicInstance } from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/families/layout/cluster/cluster-types.d.ts
|
|
5
|
+
/** Native CSS `align-items` values supported by {@link Cluster}. */
|
|
6
|
+
type ClusterAlign = "stretch" | "start" | "center" | "end" | "baseline";
|
|
7
|
+
/** Native CSS `justify-content` values supported by {@link Cluster}. */
|
|
8
|
+
type ClusterJustify = "start" | "center" | "end" | "space-between" | "space-around" | "space-evenly";
|
|
9
|
+
/** Native CSS `gap` value accepted by {@link Cluster}. Numbers resolve to px lengths. */
|
|
10
|
+
type ClusterGap = string | number;
|
|
11
|
+
/** CSS-ready `gap` value published after numeric gaps are normalized. */
|
|
12
|
+
type ClusterResolvedGap = string;
|
|
13
|
+
/** CSS `flex-direction` produced by the inline cluster flow. */
|
|
14
|
+
type ClusterFlexDirection = "row" | "row-reverse";
|
|
15
|
+
/** CSS `flex-wrap` value produced by the Cluster wrap flag. */
|
|
16
|
+
type ClusterFlexWrap = "wrap" | "nowrap";
|
|
17
|
+
/** Rendered data state for {@link Cluster}. */
|
|
18
|
+
type ClusterState = "clustered";
|
|
19
|
+
/** Rendered value exposed by {@link Cluster}. */
|
|
20
|
+
type ClusterElement = Element | ComponentPublicInstance;
|
|
21
|
+
/** State exposed to the default Cluster slot. */
|
|
22
|
+
interface ClusterSlotState {
|
|
23
|
+
/** Whether items can wrap onto additional lines. */
|
|
24
|
+
readonly wrap: boolean;
|
|
25
|
+
/** Whether inline item flow is reversed without changing DOM order. */
|
|
26
|
+
readonly reversed: boolean;
|
|
27
|
+
/** CSS `flex-direction` applied to the rendered host. */
|
|
28
|
+
readonly direction: ClusterFlexDirection;
|
|
29
|
+
/** CSS `flex-wrap` applied to the rendered host. */
|
|
30
|
+
readonly wrapMode: ClusterFlexWrap;
|
|
31
|
+
/** Resolved CSS `gap` value between direct children. */
|
|
32
|
+
readonly gap: ClusterResolvedGap;
|
|
33
|
+
/** Native CSS `align-items` value for the cross axis. */
|
|
34
|
+
readonly align: ClusterAlign;
|
|
35
|
+
/** Native CSS `justify-content` value for the inline axis. */
|
|
36
|
+
readonly justify: ClusterJustify;
|
|
37
|
+
/** Stable state token for styling and tests. */
|
|
38
|
+
readonly state: ClusterState;
|
|
39
|
+
}
|
|
40
|
+
/** Inline style hooks applied to the rendered Cluster host. */
|
|
41
|
+
interface ClusterStyle {
|
|
42
|
+
/** Consumer-overridable gap hook read by the host `gap` declaration. */
|
|
43
|
+
readonly "--vize-ui-cluster-gap": ClusterResolvedGap;
|
|
44
|
+
/** Consumer-overridable alignment hook read by the host `align-items` declaration. */
|
|
45
|
+
readonly "--vize-ui-cluster-align": ClusterAlign;
|
|
46
|
+
/** Consumer-overridable justification hook read by the host `justify-content` declaration. */
|
|
47
|
+
readonly "--vize-ui-cluster-justify": ClusterJustify;
|
|
48
|
+
/** Flex layout mode for wrapping inline clusters. */
|
|
49
|
+
readonly display: "flex";
|
|
50
|
+
/** CSS inline flow direction. */
|
|
51
|
+
readonly flexDirection: ClusterFlexDirection;
|
|
52
|
+
/** CSS line wrapping behavior. */
|
|
53
|
+
readonly flexWrap: ClusterFlexWrap;
|
|
54
|
+
/** Native child spacing declaration. */
|
|
55
|
+
readonly gap: string;
|
|
56
|
+
/** Native cross-axis alignment declaration. */
|
|
57
|
+
readonly alignItems: string;
|
|
58
|
+
/** Native inline-axis distribution declaration. */
|
|
59
|
+
readonly justifyContent: string;
|
|
60
|
+
}
|
|
61
|
+
/** Resolved layout state published by {@link Cluster}. */
|
|
62
|
+
interface ClusterResolvedLayout extends ClusterSlotState {
|
|
63
|
+
/** Native flexbox style object applied to the host. */
|
|
64
|
+
readonly style: ClusterStyle;
|
|
65
|
+
}
|
|
66
|
+
/** Public instance state exposed by the Cluster primitive. */
|
|
67
|
+
interface ClusterExpose extends ClusterSlotState {
|
|
68
|
+
/** Rendered host element or component instance. */
|
|
69
|
+
readonly element: ClusterElement | null;
|
|
70
|
+
}
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region src/families/layout/cluster/cluster.vue.d.ts
|
|
73
|
+
type __VLS_Props = {
|
|
74
|
+
/**
|
|
75
|
+
* Native element, custom element, or component to render.
|
|
76
|
+
*
|
|
77
|
+
* @default "div"
|
|
78
|
+
*/
|
|
79
|
+
readonly as?: PrimitiveAs;
|
|
80
|
+
/**
|
|
81
|
+
* Native CSS `gap` value between direct children. Numbers resolve to px lengths.
|
|
82
|
+
*
|
|
83
|
+
* @default 0
|
|
84
|
+
*/
|
|
85
|
+
readonly gap?: ClusterGap;
|
|
86
|
+
/**
|
|
87
|
+
* Native CSS `align-items` value for the cross axis.
|
|
88
|
+
*
|
|
89
|
+
* @default "stretch"
|
|
90
|
+
*/
|
|
91
|
+
readonly align?: ClusterAlign;
|
|
92
|
+
/**
|
|
93
|
+
* Native CSS `justify-content` value for the inline axis.
|
|
94
|
+
*
|
|
95
|
+
* @default "start"
|
|
96
|
+
*/
|
|
97
|
+
readonly justify?: ClusterJustify;
|
|
98
|
+
/**
|
|
99
|
+
* Allow items to wrap onto additional lines.
|
|
100
|
+
*
|
|
101
|
+
* @default true
|
|
102
|
+
*/
|
|
103
|
+
readonly wrap?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Reverse inline item flow without changing DOM order.
|
|
106
|
+
*
|
|
107
|
+
* @default false
|
|
108
|
+
*/
|
|
109
|
+
readonly reversed?: boolean;
|
|
110
|
+
};
|
|
111
|
+
type __VLS_Slots = {
|
|
112
|
+
/** Renders cluster children with the resolved inline layout state. */default(props: ClusterSlotState): unknown;
|
|
113
|
+
};
|
|
114
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
115
|
+
align: import("vue").ComputedRef<ClusterAlign>;
|
|
116
|
+
direction: import("vue").ComputedRef<ClusterFlexDirection>;
|
|
117
|
+
element: Readonly<import("vue").ShallowRef<ClusterElement | null>>;
|
|
118
|
+
gap: import("vue").ComputedRef<string>;
|
|
119
|
+
justify: import("vue").ComputedRef<ClusterJustify>;
|
|
120
|
+
reversed: import("vue").ComputedRef<boolean>;
|
|
121
|
+
state: import("vue").ComputedRef<"clustered">;
|
|
122
|
+
wrap: import("vue").ComputedRef<boolean>;
|
|
123
|
+
wrapMode: import("vue").ComputedRef<ClusterFlexWrap>;
|
|
124
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
125
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
126
|
+
declare const _default: typeof __VLS_export;
|
|
127
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
128
|
+
new (): {
|
|
129
|
+
$slots: S;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
//#endregion
|
|
133
|
+
export { ClusterFlexDirection as a, ClusterJustify as c, ClusterSlotState as d, ClusterState as f, ClusterExpose as i, ClusterResolvedGap as l, ClusterAlign as n, ClusterFlexWrap as o, ClusterStyle as p, ClusterElement as r, ClusterGap as s, _default as t, ClusterResolvedLayout as u };
|
|
@@ -0,0 +1,149 @@
|
|
|
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
|
+
function normalizeClusterGap(gap) {
|
|
4
|
+
if (typeof gap === "number") return gap === 0 ? "0" : `${gap}px`;
|
|
5
|
+
return gap;
|
|
6
|
+
}
|
|
7
|
+
function resolveFlexDirection(reversed) {
|
|
8
|
+
return reversed ? "row-reverse" : "row";
|
|
9
|
+
}
|
|
10
|
+
function resolveFlexWrap(wrap) {
|
|
11
|
+
return wrap ? "wrap" : "nowrap";
|
|
12
|
+
}
|
|
13
|
+
/** Resolve public Cluster props into a native CSS flexbox contract. */
|
|
14
|
+
function resolveClusterLayout(options) {
|
|
15
|
+
const align = options.align ?? "stretch";
|
|
16
|
+
const gap = normalizeClusterGap(options.gap ?? 0);
|
|
17
|
+
const justify = options.justify ?? "start";
|
|
18
|
+
const reversed = options.reversed ?? false;
|
|
19
|
+
const wrap = options.wrap ?? true;
|
|
20
|
+
const direction = resolveFlexDirection(reversed);
|
|
21
|
+
const wrapMode = resolveFlexWrap(wrap);
|
|
22
|
+
return {
|
|
23
|
+
align,
|
|
24
|
+
direction,
|
|
25
|
+
gap,
|
|
26
|
+
justify,
|
|
27
|
+
reversed,
|
|
28
|
+
state: "clustered",
|
|
29
|
+
wrap,
|
|
30
|
+
wrapMode,
|
|
31
|
+
style: {
|
|
32
|
+
"--vize-ui-cluster-align": align,
|
|
33
|
+
"--vize-ui-cluster-gap": gap,
|
|
34
|
+
"--vize-ui-cluster-justify": justify,
|
|
35
|
+
alignItems: "var(--vize-ui-cluster-align)",
|
|
36
|
+
display: "flex",
|
|
37
|
+
flexDirection: direction,
|
|
38
|
+
flexWrap: wrapMode,
|
|
39
|
+
gap: "var(--vize-ui-cluster-gap)",
|
|
40
|
+
justifyContent: "var(--vize-ui-cluster-justify)"
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region src/families/layout/cluster/cluster.vue
|
|
46
|
+
var cluster_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
47
|
+
__name: "cluster",
|
|
48
|
+
props: {
|
|
49
|
+
as: {
|
|
50
|
+
type: null,
|
|
51
|
+
required: false,
|
|
52
|
+
default: "div"
|
|
53
|
+
},
|
|
54
|
+
gap: {
|
|
55
|
+
type: [String, Number],
|
|
56
|
+
required: false,
|
|
57
|
+
default: 0
|
|
58
|
+
},
|
|
59
|
+
align: {
|
|
60
|
+
type: String,
|
|
61
|
+
required: false,
|
|
62
|
+
default: "stretch"
|
|
63
|
+
},
|
|
64
|
+
justify: {
|
|
65
|
+
type: String,
|
|
66
|
+
required: false,
|
|
67
|
+
default: "start"
|
|
68
|
+
},
|
|
69
|
+
wrap: {
|
|
70
|
+
type: Boolean,
|
|
71
|
+
required: false,
|
|
72
|
+
default: true
|
|
73
|
+
},
|
|
74
|
+
reversed: {
|
|
75
|
+
type: Boolean,
|
|
76
|
+
required: false,
|
|
77
|
+
default: false
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
setup(__props, { expose: __expose }) {
|
|
81
|
+
const element = useTemplateRef("element");
|
|
82
|
+
const layout = computed(() => resolveClusterLayout({
|
|
83
|
+
align: __props.align,
|
|
84
|
+
gap: __props.gap,
|
|
85
|
+
justify: __props.justify,
|
|
86
|
+
reversed: __props.reversed,
|
|
87
|
+
wrap: __props.wrap
|
|
88
|
+
}));
|
|
89
|
+
const alignState = computed(() => layout.value.align);
|
|
90
|
+
const directionState = computed(() => layout.value.direction);
|
|
91
|
+
const gapState = computed(() => layout.value.gap);
|
|
92
|
+
const justifyState = computed(() => layout.value.justify);
|
|
93
|
+
const reversedState = computed(() => layout.value.reversed);
|
|
94
|
+
const clusterState = computed(() => layout.value.state);
|
|
95
|
+
const wrapState = computed(() => layout.value.wrap);
|
|
96
|
+
const wrapModeState = computed(() => layout.value.wrapMode);
|
|
97
|
+
const clusterStyle = computed(() => layout.value.style);
|
|
98
|
+
const slotState = computed(() => ({
|
|
99
|
+
align: alignState.value,
|
|
100
|
+
direction: directionState.value,
|
|
101
|
+
gap: gapState.value,
|
|
102
|
+
justify: justifyState.value,
|
|
103
|
+
reversed: reversedState.value,
|
|
104
|
+
state: clusterState.value,
|
|
105
|
+
wrap: wrapState.value,
|
|
106
|
+
wrapMode: wrapModeState.value
|
|
107
|
+
}));
|
|
108
|
+
const intrinsicProps = computed(() => ({ style: clusterStyle.value }));
|
|
109
|
+
__expose({
|
|
110
|
+
align: alignState,
|
|
111
|
+
direction: directionState,
|
|
112
|
+
element,
|
|
113
|
+
gap: gapState,
|
|
114
|
+
justify: justifyState,
|
|
115
|
+
reversed: reversedState,
|
|
116
|
+
state: clusterState,
|
|
117
|
+
wrap: wrapState,
|
|
118
|
+
wrapMode: wrapModeState
|
|
119
|
+
});
|
|
120
|
+
return (_ctx, _cache) => {
|
|
121
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.as), mergeProps({
|
|
122
|
+
ref_key: "element",
|
|
123
|
+
ref: element,
|
|
124
|
+
part: "root",
|
|
125
|
+
"data-vize-ui": "cluster",
|
|
126
|
+
"data-state": clusterState.value,
|
|
127
|
+
"data-wrap": wrapState.value ? "true" : "false",
|
|
128
|
+
"data-reversed": reversedState.value ? "true" : "false",
|
|
129
|
+
"data-align": alignState.value,
|
|
130
|
+
"data-justify": justifyState.value,
|
|
131
|
+
"data-vize-cluster-direction": directionState.value,
|
|
132
|
+
"data-vize-cluster-gap": gapState.value
|
|
133
|
+
}, intrinsicProps.value), {
|
|
134
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotState.value)), void 0, true)]),
|
|
135
|
+
_: 3
|
|
136
|
+
}, 16, [
|
|
137
|
+
"data-state",
|
|
138
|
+
"data-wrap",
|
|
139
|
+
"data-reversed",
|
|
140
|
+
"data-align",
|
|
141
|
+
"data-justify",
|
|
142
|
+
"data-vize-cluster-direction",
|
|
143
|
+
"data-vize-cluster-gap"
|
|
144
|
+
]);
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
}), [["__scopeId", "data-v-2f4ff50f"]]);
|
|
148
|
+
//#endregion
|
|
149
|
+
export { cluster_default as t };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as ClusterFlexDirection, c as ClusterJustify, d as ClusterSlotState, f as ClusterState, i as ClusterExpose, l as ClusterResolvedGap, n as ClusterAlign, o as ClusterFlexWrap, p as ClusterStyle, r as ClusterElement, s as ClusterGap, t as _default, u as ClusterResolvedLayout } from "./cluster-BWF028Xt.mjs";
|
|
2
|
+
export { _default as Cluster, type ClusterAlign, type ClusterElement, type ClusterExpose, type ClusterFlexDirection, type ClusterFlexWrap, type ClusterGap, type ClusterJustify, type ClusterResolvedGap, type ClusterResolvedLayout, type ClusterSlotState, type ClusterState, type ClusterStyle };
|
package/dist/cluster.mjs
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
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/code/code.vue
|
|
5
|
+
var code_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "code",
|
|
7
|
+
props: {
|
|
8
|
+
as: {
|
|
9
|
+
type: null,
|
|
10
|
+
required: false,
|
|
11
|
+
default: "code"
|
|
12
|
+
},
|
|
13
|
+
size: {
|
|
14
|
+
type: String,
|
|
15
|
+
required: false,
|
|
16
|
+
default: "md"
|
|
17
|
+
},
|
|
18
|
+
variant: {
|
|
19
|
+
type: String,
|
|
20
|
+
required: false,
|
|
21
|
+
default: "inline"
|
|
22
|
+
},
|
|
23
|
+
tone: {
|
|
24
|
+
type: String,
|
|
25
|
+
required: false,
|
|
26
|
+
default: "neutral"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
setup(__props, { expose: __expose }) {
|
|
30
|
+
const element = useTemplateRef("element");
|
|
31
|
+
const sizeState = computed(() => __props.size);
|
|
32
|
+
const variantState = computed(() => __props.variant);
|
|
33
|
+
const toneState = computed(() => __props.tone);
|
|
34
|
+
const slotState = computed(() => ({
|
|
35
|
+
size: sizeState.value,
|
|
36
|
+
tone: toneState.value,
|
|
37
|
+
variant: variantState.value
|
|
38
|
+
}));
|
|
39
|
+
__expose({
|
|
40
|
+
element,
|
|
41
|
+
size: sizeState,
|
|
42
|
+
tone: toneState,
|
|
43
|
+
variant: variantState
|
|
44
|
+
});
|
|
45
|
+
return (_ctx, _cache) => {
|
|
46
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.as), {
|
|
47
|
+
ref_key: "element",
|
|
48
|
+
ref: element,
|
|
49
|
+
part: "root",
|
|
50
|
+
"data-vize-ui": "code",
|
|
51
|
+
"data-size": sizeState.value,
|
|
52
|
+
"data-variant": variantState.value,
|
|
53
|
+
"data-tone": toneState.value
|
|
54
|
+
}, {
|
|
55
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotState.value)), void 0, true)]),
|
|
56
|
+
_: 3
|
|
57
|
+
}, 8, [
|
|
58
|
+
"data-size",
|
|
59
|
+
"data-variant",
|
|
60
|
+
"data-tone"
|
|
61
|
+
]);
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
}), [["__scopeId", "data-v-63bc8083"]]);
|
|
65
|
+
//#endregion
|
|
66
|
+
export { code_default as t };
|
package/dist/code.d.mts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { As as CodeVariant, Ds as CodeSize, Es as CodeExpose, Os as CodeSlotState, Ts as CodeElement, ks as CodeTone, ws as _default } from "./announcer-CuBryPW9.mjs";
|
|
2
|
+
export { _default as Code, type CodeElement, type CodeExpose, type CodeSize, type CodeSlotState, type CodeTone, type CodeVariant };
|
package/dist/code.mjs
ADDED
|
@@ -0,0 +1,269 @@
|
|
|
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 { useControllableState } from "./controllable-state.mjs";
|
|
5
|
+
import { computed, createElementBlock, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, unref, useTemplateRef } from "vue";
|
|
6
|
+
//#region src/families/disclosure/collapsible/collapsible-context.ts
|
|
7
|
+
const collapsibleContext = createContext("Collapsible");
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/families/disclosure/collapsible/collapsible-root.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
+
const _hoisted_1$2 = [
|
|
11
|
+
"id",
|
|
12
|
+
"data-state",
|
|
13
|
+
"data-disabled"
|
|
14
|
+
];
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/families/disclosure/collapsible/collapsible-root.vue
|
|
17
|
+
var collapsible_root_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
18
|
+
__name: "collapsible-root",
|
|
19
|
+
props: {
|
|
20
|
+
id: {
|
|
21
|
+
type: [String, null],
|
|
22
|
+
required: false,
|
|
23
|
+
default: () => void 0
|
|
24
|
+
},
|
|
25
|
+
open: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
required: false,
|
|
28
|
+
default: () => void 0
|
|
29
|
+
},
|
|
30
|
+
defaultOpen: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
required: false,
|
|
33
|
+
default: false
|
|
34
|
+
},
|
|
35
|
+
disabled: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
required: false,
|
|
38
|
+
default: false
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
emits: ["update:open", "open-change"],
|
|
42
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
43
|
+
const emit = __emit;
|
|
44
|
+
const openState = useControllableState({
|
|
45
|
+
value: () => __props.open,
|
|
46
|
+
defaultValue: () => __props.defaultOpen
|
|
47
|
+
});
|
|
48
|
+
const isOpen = openState.value;
|
|
49
|
+
const disabledState = computed(() => __props.disabled);
|
|
50
|
+
const state = computed(() => isOpen.value ? "open" : "closed");
|
|
51
|
+
const baseId = useDeterministicId({
|
|
52
|
+
id: () => __props.id,
|
|
53
|
+
hint: "collapsible"
|
|
54
|
+
});
|
|
55
|
+
const triggerId = computed(() => deriveDeterministicId(baseId.value, "trigger"));
|
|
56
|
+
const contentId = computed(() => deriveDeterministicId(baseId.value, "content"));
|
|
57
|
+
const slotState = computed(() => ({
|
|
58
|
+
disabled: disabledState.value,
|
|
59
|
+
open: isOpen.value,
|
|
60
|
+
state: state.value
|
|
61
|
+
}));
|
|
62
|
+
function setOpen(value, nativeEvent = null) {
|
|
63
|
+
const previous = isOpen.value;
|
|
64
|
+
const changed = openState.set(value);
|
|
65
|
+
if (changed) {
|
|
66
|
+
emit("update:open", value);
|
|
67
|
+
emit("open-change", value, previous, nativeEvent);
|
|
68
|
+
}
|
|
69
|
+
return changed;
|
|
70
|
+
}
|
|
71
|
+
const context = collapsibleContext.provide({
|
|
72
|
+
id: baseId,
|
|
73
|
+
triggerId,
|
|
74
|
+
contentId,
|
|
75
|
+
open: isOpen,
|
|
76
|
+
disabled: disabledState,
|
|
77
|
+
state,
|
|
78
|
+
setOpen,
|
|
79
|
+
expand: (nativeEvent = null) => setOpen(true, nativeEvent),
|
|
80
|
+
collapse: (nativeEvent = null) => setOpen(false, nativeEvent),
|
|
81
|
+
toggle: (nativeEvent = null) => setOpen(!isOpen.value, nativeEvent)
|
|
82
|
+
});
|
|
83
|
+
__expose({
|
|
84
|
+
collapse: context.collapse,
|
|
85
|
+
contentId,
|
|
86
|
+
disabled: disabledState,
|
|
87
|
+
expand: context.expand,
|
|
88
|
+
id: baseId,
|
|
89
|
+
open: isOpen,
|
|
90
|
+
setOpen,
|
|
91
|
+
state,
|
|
92
|
+
toggle: context.toggle,
|
|
93
|
+
triggerId
|
|
94
|
+
});
|
|
95
|
+
return (_ctx, _cache) => {
|
|
96
|
+
return openBlock(), createElementBlock("div", {
|
|
97
|
+
id: unref(baseId),
|
|
98
|
+
"data-vize-ui": "collapsible-root",
|
|
99
|
+
part: "root",
|
|
100
|
+
"data-state": state.value,
|
|
101
|
+
"data-disabled": __props.disabled ? "true" : void 0
|
|
102
|
+
}, [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotState.value)), void 0, true)], 8, _hoisted_1$2);
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
}), [["__scopeId", "data-v-36b38cf6"]]);
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region src/families/disclosure/collapsible/collapsible-content.vue?vue&type=script&setup=true&lang.ts
|
|
108
|
+
const _hoisted_1$1 = [
|
|
109
|
+
"id",
|
|
110
|
+
"role",
|
|
111
|
+
"hidden",
|
|
112
|
+
"aria-label",
|
|
113
|
+
"aria-labelledby",
|
|
114
|
+
"aria-describedby",
|
|
115
|
+
"data-state",
|
|
116
|
+
"data-disabled"
|
|
117
|
+
];
|
|
118
|
+
//#endregion
|
|
119
|
+
//#region src/families/disclosure/collapsible/collapsible-content.vue
|
|
120
|
+
var collapsible_content_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
121
|
+
__name: "collapsible-content",
|
|
122
|
+
props: {
|
|
123
|
+
role: {
|
|
124
|
+
type: [String, null],
|
|
125
|
+
required: false,
|
|
126
|
+
default: "region"
|
|
127
|
+
},
|
|
128
|
+
ariaLabel: {
|
|
129
|
+
type: String,
|
|
130
|
+
required: false,
|
|
131
|
+
default: () => void 0
|
|
132
|
+
},
|
|
133
|
+
ariaLabelledby: {
|
|
134
|
+
type: [String, null],
|
|
135
|
+
required: false,
|
|
136
|
+
default: () => void 0
|
|
137
|
+
},
|
|
138
|
+
ariaDescribedby: {
|
|
139
|
+
type: String,
|
|
140
|
+
required: false,
|
|
141
|
+
default: () => void 0
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
setup(__props, { expose: __expose }) {
|
|
145
|
+
const context = collapsibleContext.use();
|
|
146
|
+
const element = useTemplateRef("element");
|
|
147
|
+
const roleValue = computed(() => __props.role ?? void 0);
|
|
148
|
+
const ariaLabelledbyValue = computed(() => {
|
|
149
|
+
if (roleValue.value === void 0 || __props.ariaLabel) return void 0;
|
|
150
|
+
return __props.ariaLabelledby ?? context.triggerId.value;
|
|
151
|
+
});
|
|
152
|
+
function focusContent(options) {
|
|
153
|
+
element.value?.focus(options);
|
|
154
|
+
}
|
|
155
|
+
__expose({
|
|
156
|
+
disabled: context.disabled,
|
|
157
|
+
element,
|
|
158
|
+
focusContent,
|
|
159
|
+
open: context.open,
|
|
160
|
+
state: context.state
|
|
161
|
+
});
|
|
162
|
+
return (_ctx, _cache) => {
|
|
163
|
+
return openBlock(), createElementBlock("div", {
|
|
164
|
+
id: unref(context).contentId.value,
|
|
165
|
+
ref_key: "element",
|
|
166
|
+
ref: element,
|
|
167
|
+
role: roleValue.value,
|
|
168
|
+
hidden: unref(context).open.value ? void 0 : true,
|
|
169
|
+
"aria-label": roleValue.value === void 0 ? void 0 : __props.ariaLabel,
|
|
170
|
+
"aria-labelledby": ariaLabelledbyValue.value,
|
|
171
|
+
"aria-describedby": roleValue.value === void 0 ? void 0 : __props.ariaDescribedby,
|
|
172
|
+
"data-vize-ui": "collapsible-content",
|
|
173
|
+
part: "content",
|
|
174
|
+
"data-state": unref(context).state.value,
|
|
175
|
+
"data-disabled": unref(context).disabled.value ? "true" : void 0
|
|
176
|
+
}, [renderSlot(_ctx.$slots, "default", {
|
|
177
|
+
disabled: unref(context).disabled.value,
|
|
178
|
+
open: unref(context).open.value,
|
|
179
|
+
state: unref(context).state.value
|
|
180
|
+
}, void 0, true)], 8, _hoisted_1$1);
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
}), [["__scopeId", "data-v-351bea23"]]);
|
|
184
|
+
//#endregion
|
|
185
|
+
//#region src/families/disclosure/collapsible/collapsible-trigger.vue?vue&type=script&setup=true&lang.ts
|
|
186
|
+
const _hoisted_1 = [
|
|
187
|
+
"id",
|
|
188
|
+
"type",
|
|
189
|
+
"disabled",
|
|
190
|
+
"aria-label",
|
|
191
|
+
"aria-labelledby",
|
|
192
|
+
"aria-expanded",
|
|
193
|
+
"aria-controls",
|
|
194
|
+
"data-state",
|
|
195
|
+
"data-disabled"
|
|
196
|
+
];
|
|
197
|
+
//#endregion
|
|
198
|
+
//#region src/families/disclosure/collapsible/collapsible-trigger.vue
|
|
199
|
+
var collapsible_trigger_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
200
|
+
__name: "collapsible-trigger",
|
|
201
|
+
props: {
|
|
202
|
+
type: {
|
|
203
|
+
type: String,
|
|
204
|
+
required: false,
|
|
205
|
+
default: "button"
|
|
206
|
+
},
|
|
207
|
+
disabled: {
|
|
208
|
+
type: Boolean,
|
|
209
|
+
required: false,
|
|
210
|
+
default: false
|
|
211
|
+
},
|
|
212
|
+
ariaLabel: {
|
|
213
|
+
type: String,
|
|
214
|
+
required: false,
|
|
215
|
+
default: () => void 0
|
|
216
|
+
},
|
|
217
|
+
ariaLabelledby: {
|
|
218
|
+
type: String,
|
|
219
|
+
required: false,
|
|
220
|
+
default: () => void 0
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
emits: ["click"],
|
|
224
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
225
|
+
const emit = __emit;
|
|
226
|
+
const context = collapsibleContext.use();
|
|
227
|
+
const element = useTemplateRef("element");
|
|
228
|
+
const triggerDisabled = computed(() => context.disabled.value || __props.disabled);
|
|
229
|
+
function onClick(event) {
|
|
230
|
+
if (triggerDisabled.value) {
|
|
231
|
+
event.preventDefault();
|
|
232
|
+
return;
|
|
233
|
+
}
|
|
234
|
+
emit("click", event);
|
|
235
|
+
if (!event.defaultPrevented) context.toggle(event);
|
|
236
|
+
}
|
|
237
|
+
function focus(options) {
|
|
238
|
+
element.value?.focus(options);
|
|
239
|
+
}
|
|
240
|
+
__expose({
|
|
241
|
+
element,
|
|
242
|
+
focus
|
|
243
|
+
});
|
|
244
|
+
return (_ctx, _cache) => {
|
|
245
|
+
return openBlock(), createElementBlock("button", {
|
|
246
|
+
id: unref(context).triggerId.value,
|
|
247
|
+
ref_key: "element",
|
|
248
|
+
ref: element,
|
|
249
|
+
type: __props.type,
|
|
250
|
+
disabled: triggerDisabled.value,
|
|
251
|
+
"aria-label": __props.ariaLabel,
|
|
252
|
+
"aria-labelledby": __props.ariaLabelledby,
|
|
253
|
+
"aria-expanded": unref(context).open.value ? "true" : "false",
|
|
254
|
+
"aria-controls": unref(context).contentId.value,
|
|
255
|
+
"data-vize-ui": "collapsible-trigger",
|
|
256
|
+
part: "trigger",
|
|
257
|
+
"data-state": unref(context).state.value,
|
|
258
|
+
"data-disabled": triggerDisabled.value ? "true" : void 0,
|
|
259
|
+
onClick
|
|
260
|
+
}, [renderSlot(_ctx.$slots, "default", {
|
|
261
|
+
disabled: triggerDisabled.value,
|
|
262
|
+
open: unref(context).open.value,
|
|
263
|
+
state: unref(context).state.value
|
|
264
|
+
}, void 0, true)], 8, _hoisted_1);
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
}), [["__scopeId", "data-v-650ae43b"]]);
|
|
268
|
+
//#endregion
|
|
269
|
+
export { collapsible_content_default as n, collapsible_root_default as r, collapsible_trigger_default as t };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { cs as _default$1, ds as CollapsibleContentRole, fs as CollapsibleRootExpose, hs as CollapsibleTriggerExpose, ls as _default, ms as CollapsibleState, ps as CollapsibleSlotState, ss as _default$2, us as CollapsibleContentExpose } from "./announcer-CuBryPW9.mjs";
|
|
2
|
+
export { _default as Collapsible, _default as CollapsibleRoot, _default$1 as CollapsibleContent, type CollapsibleContentExpose, type CollapsibleContentRole, type CollapsibleRootExpose, type CollapsibleSlotState, type CollapsibleState, _default$2 as CollapsibleTrigger, type CollapsibleTriggerExpose };
|