@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 @@
|
|
|
1
|
+
@layer vize.tokens,vize.ui,vize.preset,vize.policy;@layer vize.preset{:where([data-vize-theme~=midnight],:host([data-vize-theme~=midnight])){--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--vize-ui-color-canvas:var(--lightningcss-light,oklch(96.5% .006 252))var(--lightningcss-dark,oklch(13.5% .02 265));--vize-ui-color-surface:var(--lightningcss-light,oklch(100% .002 252))var(--lightningcss-dark,oklch(20.5% .026 265));--vize-ui-color-text:var(--lightningcss-light,oklch(22% .02 260))var(--lightningcss-dark,oklch(94% .01 255));--vize-ui-color-text-muted:var(--lightningcss-light,oklab(53.29% -.00279304 -.0138204))var(--lightningcss-dark,oklab(65.02% -.00228396 -.0133545));--vize-ui-color-accent:var(--lightningcss-light,oklch(53% .18 268))var(--lightningcss-dark,oklch(76% .14 265));--vize-ui-color-accent-contrast:var(--lightningcss-light,oklch(100% 0 0))var(--lightningcss-dark,oklch(13% .03 265));--vize-ui-color-border:var(--lightningcss-light,oklch(85.5% .006 252))var(--lightningcss-dark,oklch(33% .034 265));--vize-ui-color-neutral:var(--lightningcss-light,oklch(46% .02 260))var(--lightningcss-dark,oklch(79% .024 260));--vize-ui-color-neutral-contrast:var(--lightningcss-light,oklch(100% 0 0))var(--lightningcss-dark,oklch(13% .02 265));--vize-ui-color-info:var(--lightningcss-light,oklch(50% .16 248))var(--lightningcss-dark,oklch(78% .14 245));--vize-ui-color-info-contrast:var(--lightningcss-light,oklch(100% 0 0))var(--lightningcss-dark,oklch(12% .03 248));--vize-ui-color-success:var(--lightningcss-light,oklch(48% .13 152))var(--lightningcss-dark,oklch(76% .13 152));--vize-ui-color-success-contrast:var(--lightningcss-light,oklch(100% 0 0))var(--lightningcss-dark,oklch(12% .028 152));--vize-ui-color-warning:var(--lightningcss-light,oklch(61% .15 80))var(--lightningcss-dark,oklch(86% .14 82));--vize-ui-color-warning-contrast:var(--lightningcss-light,oklch(16% .02 80))var(--lightningcss-dark,oklch(16% .02 82));--vize-ui-color-danger:var(--lightningcss-light,oklch(55% .19 25))var(--lightningcss-dark,oklch(74% .16 21));--vize-ui-color-danger-contrast:var(--lightningcss-light,oklch(100% 0 0))var(--lightningcss-dark,oklch(14% .03 21));--vize-ui-opacity-muted:.78;--vize-ui-z-overlay:1400;--vize-ui-elevation-raised:0 1px 2px oklch(8% .02 265/.28), 0 0 0 1px oklch(80% .04 265/.05);--vize-ui-elevation-overlay:0 10px 26px oklch(6% .02 265/.38), 0 3px 10px oklch(6% .02 265/.3);--vize-ui-elevation-floating:0 24px 60px oklch(4% .02 265/.46), 0 8px 22px oklch(6% .02 265/.34)}@media (prefers-color-scheme:dark){:where([data-vize-theme~=midnight],:host([data-vize-theme~=midnight])){--lightningcss-light: ;--lightningcss-dark:initial}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vize.tokens,vize.ui,vize.preset,vize.policy;@layer vize.preset{:where([data-vize-theme~=paper],:host([data-vize-theme~=paper])){--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--vize-ui-color-canvas:var(--lightningcss-light,oklch(98.5% .018 92))var(--lightningcss-dark,oklch(17% .018 82));--vize-ui-color-surface:var(--lightningcss-light,oklch(100% .011 96))var(--lightningcss-dark,oklch(23.5% .019 82));--vize-ui-color-text:var(--lightningcss-light,oklch(25% .026 235))var(--lightningcss-dark,oklch(94% .012 90));--vize-ui-color-text-muted:var(--lightningcss-light,oklab(52.93% -.00948476 -.0063689))var(--lightningcss-dark,oklab(67.82% .000851739 .0139804));--vize-ui-color-accent:var(--lightningcss-light,oklch(52% .11 185))var(--lightningcss-dark,oklch(74% .095 185));--vize-ui-color-accent-contrast:var(--lightningcss-light,oklch(99% .008 96))var(--lightningcss-dark,oklch(15% .02 185));--vize-ui-color-border:var(--lightningcss-light,oklch(85.5% .018 92))var(--lightningcss-dark,oklch(34% .021 82));--vize-ui-color-neutral:var(--lightningcss-light,oklch(47% .026 235))var(--lightningcss-dark,oklch(79% .017 90));--vize-ui-color-neutral-contrast:var(--lightningcss-light,oklch(100% .011 96))var(--lightningcss-dark,oklch(17% .018 82));--vize-ui-color-info:var(--lightningcss-light,oklch(48% .12 220))var(--lightningcss-dark,oklch(76% .11 215));--vize-ui-color-info-contrast:var(--lightningcss-light,oklch(100% .011 96))var(--lightningcss-dark,oklch(14% .026 220));--vize-ui-color-success:var(--lightningcss-light,oklch(47% .12 152))var(--lightningcss-dark,oklch(75% .11 150));--vize-ui-color-success-contrast:var(--lightningcss-light,oklch(100% .011 96))var(--lightningcss-dark,oklch(14% .026 150));--vize-ui-color-warning:var(--lightningcss-light,oklch(58% .14 75))var(--lightningcss-dark,oklch(83% .13 76));--vize-ui-color-warning-contrast:var(--lightningcss-light,oklch(18% .03 75))var(--lightningcss-dark,oklch(18% .03 76));--vize-ui-color-danger:var(--lightningcss-light,oklch(54% .17 31))var(--lightningcss-dark,oklch(72% .15 28));--vize-ui-color-danger-contrast:var(--lightningcss-light,oklch(100% .011 96))var(--lightningcss-dark,oklch(16% .03 28));--vize-ui-type-leading-normal:1.6;--vize-ui-radius-md:.375rem;--vize-ui-radius-lg:.75rem;--vize-ui-elevation-raised:0 1px 2px oklch(25% .026 235/.07), 0 1px 4px oklch(25% .026 235/.08);--vize-ui-elevation-overlay:0 6px 18px oklch(25% .026 235/.13), 0 2px 6px oklch(25% .026 235/.09);--vize-ui-elevation-floating:0 18px 44px oklch(25% .026 235/.16), 0 6px 16px oklch(25% .026 235/.1)}@media (prefers-color-scheme:dark){:where([data-vize-theme~=paper],:host([data-vize-theme~=paper])){--lightningcss-light: ;--lightningcss-dark:initial}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vize.tokens,vize.ui,vize.preset,vize.policy;@layer vize.preset{:where([data-vize-theme~=play],:host([data-vize-theme~=play])){--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--vize-ui-color-canvas:var(--lightningcss-light,oklch(97.3% .032 330))var(--lightningcss-dark,oklch(17% .035 296));--vize-ui-color-surface:var(--lightningcss-light,oklch(99.8% .015 88))var(--lightningcss-dark,oklch(23.5% .042 303));--vize-ui-color-text:var(--lightningcss-light,oklch(22% .035 286))var(--lightningcss-dark,oklch(94.5% .016 84));--vize-ui-color-text-muted:var(--lightningcss-light,oklab(53.626% .0172348 -.0262336))var(--lightningcss-dark,oklab(66.6% .00659385 -.0011409));--vize-ui-color-accent:var(--lightningcss-light,oklch(61% .205 355))var(--lightningcss-dark,oklch(78% .17 18));--vize-ui-color-accent-contrast:var(--lightningcss-light,oklch(100% 0 0))var(--lightningcss-dark,oklch(16% .035 18));--vize-ui-color-border:var(--lightningcss-light,oklch(86.3% .032 330))var(--lightningcss-dark,oklch(39% .046 303));--vize-ui-color-neutral:var(--lightningcss-light,oklch(47% .04 286))var(--lightningcss-dark,oklch(82% .035 84));--vize-ui-color-neutral-contrast:var(--lightningcss-light,oklch(100% .015 88))var(--lightningcss-dark,oklch(17% .035 296));--vize-ui-color-info:var(--lightningcss-light,oklch(55% .16 235))var(--lightningcss-dark,oklch(80% .14 232));--vize-ui-color-info-contrast:var(--lightningcss-light,oklch(100% 0 0))var(--lightningcss-dark,oklch(14% .04 235));--vize-ui-color-success:var(--lightningcss-light,oklch(52% .15 148))var(--lightningcss-dark,oklch(78% .14 150));--vize-ui-color-success-contrast:var(--lightningcss-light,oklch(100% 0 0))var(--lightningcss-dark,oklch(14% .04 150));--vize-ui-color-warning:var(--lightningcss-light,oklch(68% .17 82))var(--lightningcss-dark,oklch(88% .15 86));--vize-ui-color-warning-contrast:var(--lightningcss-light,oklch(18% .04 82))var(--lightningcss-dark,oklch(18% .04 86));--vize-ui-color-danger:var(--lightningcss-light,oklch(55% .2 28))var(--lightningcss-dark,oklch(76% .16 32));--vize-ui-color-danger-contrast:var(--lightningcss-light,oklch(100% 0 0))var(--lightningcss-dark,oklch(16% .04 32));--vize-ui-type-leading-normal:1.55;--vize-ui-radius-md:.75rem;--vize-ui-radius-lg:1.25rem;--vize-ui-z-toast:1600;--vize-ui-elevation-raised:0 2px 4px oklch(25% .06 310/.1), 0 8px 18px oklch(55% .16 355/.1);--vize-ui-elevation-overlay:0 8px 24px oklch(25% .06 310/.16), 0 3px 8px oklch(62% .18 24/.12);--vize-ui-elevation-floating:0 20px 54px oklch(25% .06 310/.22), 0 8px 22px oklch(62% .18 24/.14)}@media (prefers-color-scheme:dark){:where([data-vize-theme~=play],:host([data-vize-theme~=play])){--lightningcss-light: ;--lightningcss-dark:initial}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vize.tokens,vize.ui,vize.preset,vize.policy;@layer vize.preset{:where([data-vize-theme~=signal],:host([data-vize-theme~=signal])){--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--vize-ui-color-canvas:var(--lightningcss-light,oklch(97.5% .004 225))var(--lightningcss-dark,oklch(16% .012 230));--vize-ui-color-surface:var(--lightningcss-light,oklch(99.5% .002 225))var(--lightningcss-dark,oklch(21.5% .014 230));--vize-ui-color-text:var(--lightningcss-light,oklch(21% .013 230))var(--lightningcss-dark,oklch(92% .007 225));--vize-ui-color-text-muted:var(--lightningcss-light,oklab(51.6% -.00614511 -.00710652))var(--lightningcss-dark,oklab(63.12% -.00599996 -.00656201));--vize-ui-color-accent:var(--lightningcss-light,oklch(49% .11 184))var(--lightningcss-dark,oklch(78% .105 176));--vize-ui-color-accent-contrast:var(--lightningcss-light,oklch(100% 0 0))var(--lightningcss-dark,oklch(13% .025 180));--vize-ui-color-border:var(--lightningcss-light,oklch(85.5% .004 225))var(--lightningcss-dark,oklch(36% .016 230));--vize-ui-color-neutral:var(--lightningcss-light,oklch(45% .014 230))var(--lightningcss-dark,oklch(77% .014 225));--vize-ui-color-neutral-contrast:var(--lightningcss-light,oklch(100% 0 0))var(--lightningcss-dark,oklch(15% .012 230));--vize-ui-color-info:var(--lightningcss-light,oklch(48% .115 210))var(--lightningcss-dark,oklch(78% .11 205));--vize-ui-color-info-contrast:var(--lightningcss-light,oklch(100% 0 0))var(--lightningcss-dark,oklch(12% .026 210));--vize-ui-color-success:var(--lightningcss-light,oklch(46% .12 154))var(--lightningcss-dark,oklch(76% .11 154));--vize-ui-color-success-contrast:var(--lightningcss-light,oklch(100% 0 0))var(--lightningcss-dark,oklch(12% .026 154));--vize-ui-color-warning:var(--lightningcss-light,oklch(57% .13 80))var(--lightningcss-dark,oklch(84% .12 82));--vize-ui-color-warning-contrast:var(--lightningcss-light,oklch(16% .02 80))var(--lightningcss-dark,oklch(16% .02 82));--vize-ui-color-danger:var(--lightningcss-light,oklch(53% .17 30))var(--lightningcss-dark,oklch(73% .14 27));--vize-ui-color-danger-contrast:var(--lightningcss-light,oklch(100% 0 0))var(--lightningcss-dark,oklch(14% .026 27));--vize-ui-type-leading-normal:1.42;--vize-ui-radius-md:.3125rem;--vize-ui-opacity-muted:.82;--vize-ui-elevation-raised:0 1px 1px oklch(12% .012 230/.08), 0 0 0 1px oklch(12% .012 230/.06);--vize-ui-elevation-overlay:0 6px 16px oklch(10% .012 230/.18), 0 0 0 1px oklch(10% .012 230/.08);--vize-ui-elevation-floating:0 16px 36px oklch(8% .012 230/.24), 0 3px 10px oklch(8% .012 230/.16)}@media (prefers-color-scheme:dark){:where([data-vize-theme~=signal],:host([data-vize-theme~=signal])){--lightningcss-light: ;--lightningcss-dark:initial}}}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { f as ThemeScopeAttributeName, h as ThemeScopeStorageKeyName, i as ThemeDensityScale, l as ThemePresetName, m as ThemeScopeOptions, p as ThemeScopeAttributes, t as ThemeBootstrapOptions } from "./theme-types-CkIa4Sa3.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/families/foundations/theme/theme-scope.d.ts
|
|
4
|
+
/** Storage keys read by {@link createThemeBootstrapScript}. */
|
|
5
|
+
declare const themeScopeStorageKeys: Readonly<Record<ThemeScopeStorageKeyName, string>>;
|
|
6
|
+
/** Normalize theme scope options into renderable attributes. */
|
|
7
|
+
declare function themeScopeAttributes(scope?: ThemeScopeOptions): Readonly<ThemeScopeAttributes>;
|
|
8
|
+
/**
|
|
9
|
+
* Apply theme scope attributes to one element and return a restorer.
|
|
10
|
+
*
|
|
11
|
+
* This is the imperative counterpart to rendering {@link themeScopeAttributes}
|
|
12
|
+
* in Vue. Only provided attributes are touched; unrelated consumer attributes
|
|
13
|
+
* and nested scopes remain owned by the application.
|
|
14
|
+
*/
|
|
15
|
+
declare function applyThemeScope(element: Element, scope: ThemeScopeOptions): () => void;
|
|
16
|
+
/**
|
|
17
|
+
* Create a small inline script that applies persisted theme attributes before paint.
|
|
18
|
+
*
|
|
19
|
+
* The script validates stored values against this package's published preset
|
|
20
|
+
* and density lists, falls back to server-rendered defaults when storage is
|
|
21
|
+
* empty or blocked, and otherwise does nothing on non-browser runtimes.
|
|
22
|
+
*/
|
|
23
|
+
declare function createThemeBootstrapScript(options?: ThemeBootstrapOptions): string;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { type ThemeBootstrapOptions, type ThemeDensityScale, type ThemePresetName, type ThemeScopeAttributeName, type ThemeScopeAttributes, type ThemeScopeOptions, type ThemeScopeStorageKeyName, applyThemeScope, createThemeBootstrapScript, themeScopeAttributes, themeScopeStorageKeys };
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { a as themePresets, i as themePresetAttribute, n as themeDensityAttribute, r as themeDensityScales } from "./theme-constants-DAwnxG-P.mjs";
|
|
2
|
+
//#region src/families/foundations/theme/theme-scope.ts
|
|
3
|
+
const invalidScopeDiagnostic = "VIZE_UI_THEME_SCOPE";
|
|
4
|
+
/** Storage keys read by {@link createThemeBootstrapScript}. */
|
|
5
|
+
const themeScopeStorageKeys = Object.freeze({
|
|
6
|
+
presets: "vize-ui-theme",
|
|
7
|
+
density: "vize-ui-density"
|
|
8
|
+
});
|
|
9
|
+
function assertPresetName(name) {
|
|
10
|
+
if (!themePresets.includes(name)) throw new TypeError(`${invalidScopeDiagnostic}: unknown theme preset "${name}"`);
|
|
11
|
+
}
|
|
12
|
+
function assertDensityName(name) {
|
|
13
|
+
if (!Object.hasOwn(themeDensityScales, name)) throw new TypeError(`${invalidScopeDiagnostic}: unknown theme density "${name}"`);
|
|
14
|
+
}
|
|
15
|
+
function assertStorageKey(name, value) {
|
|
16
|
+
if (typeof value !== "string" || value.trim().length === 0) throw new TypeError(`${invalidScopeDiagnostic}: ${name} storage key needs a non-empty string`);
|
|
17
|
+
}
|
|
18
|
+
function normalizePresets(presets) {
|
|
19
|
+
if (presets === void 0) return void 0;
|
|
20
|
+
const values = typeof presets === "string" ? presets.trim().split(/\s+/) : [...presets];
|
|
21
|
+
const normalized = [];
|
|
22
|
+
const seen = /* @__PURE__ */ new Set();
|
|
23
|
+
for (const value of values) {
|
|
24
|
+
if (typeof value !== "string" || value.trim().length === 0) continue;
|
|
25
|
+
const preset = value.trim();
|
|
26
|
+
assertPresetName(preset);
|
|
27
|
+
if (!seen.has(preset)) {
|
|
28
|
+
seen.add(preset);
|
|
29
|
+
normalized.push(preset);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return normalized.length === 0 ? void 0 : normalized.join(" ");
|
|
33
|
+
}
|
|
34
|
+
function normalizeDensity(density) {
|
|
35
|
+
if (density === void 0) return void 0;
|
|
36
|
+
assertDensityName(density);
|
|
37
|
+
return density;
|
|
38
|
+
}
|
|
39
|
+
/** Normalize theme scope options into renderable attributes. */
|
|
40
|
+
function themeScopeAttributes(scope = {}) {
|
|
41
|
+
const attributes = {};
|
|
42
|
+
const presets = normalizePresets(scope.presets);
|
|
43
|
+
const density = normalizeDensity(scope.density);
|
|
44
|
+
if (presets !== void 0) attributes[themePresetAttribute] = presets;
|
|
45
|
+
if (density !== void 0) attributes[themeDensityAttribute] = density;
|
|
46
|
+
return Object.freeze(attributes);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Apply theme scope attributes to one element and return a restorer.
|
|
50
|
+
*
|
|
51
|
+
* This is the imperative counterpart to rendering {@link themeScopeAttributes}
|
|
52
|
+
* in Vue. Only provided attributes are touched; unrelated consumer attributes
|
|
53
|
+
* and nested scopes remain owned by the application.
|
|
54
|
+
*/
|
|
55
|
+
function applyThemeScope(element, scope) {
|
|
56
|
+
if (typeof element?.setAttribute !== "function" || typeof element?.removeAttribute !== "function" || typeof element?.getAttribute !== "function") throw new TypeError(`${invalidScopeDiagnostic}: theme scopes need an Element`);
|
|
57
|
+
const attributes = themeScopeAttributes(scope);
|
|
58
|
+
const previous = /* @__PURE__ */ new Map();
|
|
59
|
+
for (const [attribute, value] of Object.entries(attributes)) {
|
|
60
|
+
previous.set(attribute, element.getAttribute(attribute));
|
|
61
|
+
element.setAttribute(attribute, value);
|
|
62
|
+
}
|
|
63
|
+
return () => {
|
|
64
|
+
for (const [attribute, value] of previous) if (value === null) element.removeAttribute(attribute);
|
|
65
|
+
else element.setAttribute(attribute, value);
|
|
66
|
+
previous.clear();
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Create a small inline script that applies persisted theme attributes before paint.
|
|
71
|
+
*
|
|
72
|
+
* The script validates stored values against this package's published preset
|
|
73
|
+
* and density lists, falls back to server-rendered defaults when storage is
|
|
74
|
+
* empty or blocked, and otherwise does nothing on non-browser runtimes.
|
|
75
|
+
*/
|
|
76
|
+
function createThemeBootstrapScript(options = {}) {
|
|
77
|
+
const storageKeys = {
|
|
78
|
+
...themeScopeStorageKeys,
|
|
79
|
+
...options.storageKeys
|
|
80
|
+
};
|
|
81
|
+
assertStorageKey("presets", storageKeys.presets);
|
|
82
|
+
assertStorageKey("density", storageKeys.density);
|
|
83
|
+
const fallback = themeScopeAttributes(options.fallback);
|
|
84
|
+
const fallbackPresets = fallback["data-vize-theme"] ?? "";
|
|
85
|
+
const fallbackDensity = fallback["data-vize-density"] ?? "";
|
|
86
|
+
return `(function(){try{var root=document.documentElement;if(!root)return;var presets=${JSON.stringify(themePresets)};var densities=${JSON.stringify(Object.keys(themeDensityScales))};function read(key){try{return globalThis.localStorage&&globalThis.localStorage.getItem(key)||""}catch(_){return""}}function normalizeTheme(value){var out=[];var seen=Object.create(null);String(value||"").trim().split(/\\s+/).forEach(function(part){if(!part)return;if(presets.indexOf(part)<0){out=[];seen=null;return}if(seen&&!seen[part]){seen[part]=1;out.push(part)}});return seen?out.join(" "):""}var theme=normalizeTheme(read(${JSON.stringify(storageKeys.presets)}))||${JSON.stringify(fallbackPresets)};if(theme)root.setAttribute(${JSON.stringify(themePresetAttribute)},theme);var density=read(${JSON.stringify(storageKeys.density)});if(densities.indexOf(density)<0)density=${JSON.stringify(fallbackDensity)};if(density)root.setAttribute(${JSON.stringify(themeDensityAttribute)},density)}catch(_){}})();`;
|
|
87
|
+
}
|
|
88
|
+
//#endregion
|
|
89
|
+
export { applyThemeScope, createThemeBootstrapScript, themeScopeAttributes, themeScopeStorageKeys };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
//#region src/families/foundations/theme/theme-types.d.ts
|
|
2
|
+
/** Feedback semantic tone roles and their readable foreground pairings. */
|
|
3
|
+
type ThemeFeedbackToneToken = "neutral" | "neutral-contrast" | "info" | "info-contrast" | "success" | "success-contrast" | "warning" | "warning-contrast" | "danger" | "danger-contrast";
|
|
4
|
+
/** Semantic color roles. */
|
|
5
|
+
type ThemeColorToken = "canvas" | "surface" | "text" | "text-muted" | "accent" | "accent-contrast" | "border" | ThemeFeedbackToneToken;
|
|
6
|
+
/** Typography tokens: families, the size scale, line heights, and weights. */
|
|
7
|
+
type ThemeTypeToken = "family-sans" | "family-mono" | `size-${"xs" | "sm" | "md" | "lg" | "xl" | "2xl"}` | `leading-${"tight" | "normal" | "loose"}` | `weight-${"regular" | "medium" | "bold"}`;
|
|
8
|
+
/** Named steps on the density-responsive space scale. */
|
|
9
|
+
type ThemeSpaceToken = "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
|
|
10
|
+
/** Density-responsive control sizes. */
|
|
11
|
+
type ThemeSizeToken = "control-sm" | "control-md" | "control-lg";
|
|
12
|
+
/** Corner radii. */
|
|
13
|
+
type ThemeRadiusToken = "sm" | "md" | "lg" | "full";
|
|
14
|
+
/** Border widths. */
|
|
15
|
+
type ThemeBorderToken = "width-thin" | "width-thick";
|
|
16
|
+
/** Elevation roles rendered as box shadows. */
|
|
17
|
+
type ThemeElevationToken = "raised" | "overlay" | "floating";
|
|
18
|
+
/** Opacity roles. */
|
|
19
|
+
type ThemeOpacityToken = "muted" | "disabled";
|
|
20
|
+
/** Layered-surface slots on the shared z-index registry. */
|
|
21
|
+
type ThemeZIndexToken = "sticky" | "dropdown" | "overlay" | "toast";
|
|
22
|
+
/** Focus-ring geometry and color. */
|
|
23
|
+
type ThemeFocusToken = "ring-width" | "ring-offset" | "ring-color";
|
|
24
|
+
/** Independent token groups that can be composed with any preset. */
|
|
25
|
+
type ThemeTokenPackName = "color" | "typography" | "space" | "size" | "radius" | "border" | "elevation" | "opacity" | "z-index" | "focus" | "density";
|
|
26
|
+
/** Suffix of one `--vize-ui-*` theme custom property. */
|
|
27
|
+
type ThemeTokenName = `color-${ThemeColorToken}` | `type-${ThemeTypeToken}` | `space-${ThemeSpaceToken}` | `size-${ThemeSizeToken}` | `radius-${ThemeRadiusToken}` | `border-${ThemeBorderToken}` | `elevation-${ThemeElevationToken}` | `opacity-${ThemeOpacityToken}` | `z-${ThemeZIndexToken}` | `focus-${ThemeFocusToken}` | "density";
|
|
28
|
+
/** Custom-property overrides applied by {@link setThemeTokens}. */
|
|
29
|
+
type ThemeTokenOverrides = { readonly [Name in ThemeTokenName]?: string };
|
|
30
|
+
/** Presets accepted in the space-separated `data-vize-theme` attribute. */
|
|
31
|
+
type ThemePresetName = "headless" | "atelier" | "midnight" | "paper" | "play" | "signal" | "high-contrast";
|
|
32
|
+
/** CSS-only package export that ships semantic tokens and accessibility policy. */
|
|
33
|
+
type ThemeTokenStylesheetSpecifier = "./theme.css";
|
|
34
|
+
/** CSS-only package export for one opt-in visual preset. */
|
|
35
|
+
type ThemePresetStylesheetSpecifier<Name extends ThemePresetName = ThemePresetName> = `./theme-preset-${Name}.css`;
|
|
36
|
+
/** Density scopes accepted in the `data-vize-density` attribute. */
|
|
37
|
+
type ThemeDensityScale = "compact" | "comfortable";
|
|
38
|
+
/** Attribute names owned by the theme scope helpers. */
|
|
39
|
+
type ThemeScopeAttributeName = "data-vize-theme" | "data-vize-density";
|
|
40
|
+
/** Serialized attributes that can be rendered on any Vue root or nested scope. */
|
|
41
|
+
type ThemeScopeAttributes = Partial<Record<ThemeScopeAttributeName, string>>;
|
|
42
|
+
/** Options for a declarative theme scope. */
|
|
43
|
+
interface ThemeScopeOptions {
|
|
44
|
+
/** Opt-in preset name or array-composed preset names. */
|
|
45
|
+
readonly presets?: ThemePresetName | readonly ThemePresetName[];
|
|
46
|
+
/**
|
|
47
|
+
* Density scale applied through inherited custom properties.
|
|
48
|
+
*
|
|
49
|
+
* @default undefined
|
|
50
|
+
*/
|
|
51
|
+
readonly density?: ThemeDensityScale;
|
|
52
|
+
}
|
|
53
|
+
/** Storage keys consumed by the no-flash theme bootstrap script. */
|
|
54
|
+
type ThemeScopeStorageKeyName = "presets" | "density";
|
|
55
|
+
/** Options for {@link createThemeBootstrapScript}. */
|
|
56
|
+
interface ThemeBootstrapOptions {
|
|
57
|
+
/**
|
|
58
|
+
* Storage keys to read before first paint.
|
|
59
|
+
*
|
|
60
|
+
* @default { presets: "vize-ui-theme", density: "vize-ui-density" }
|
|
61
|
+
*/
|
|
62
|
+
readonly storageKeys?: Partial<Record<ThemeScopeStorageKeyName, string>>;
|
|
63
|
+
/**
|
|
64
|
+
* Server-rendered fallback attributes used when storage is empty or blocked.
|
|
65
|
+
*
|
|
66
|
+
* @default undefined
|
|
67
|
+
*/
|
|
68
|
+
readonly fallback?: ThemeScopeOptions;
|
|
69
|
+
}
|
|
70
|
+
//#endregion
|
|
71
|
+
export { ThemeZIndexToken as C, ThemeTypeToken as S, ThemeSpaceToken as _, ThemeElevationToken as a, ThemeTokenPackName as b, ThemeOpacityToken as c, ThemeRadiusToken as d, ThemeScopeAttributeName as f, ThemeSizeToken as g, ThemeScopeStorageKeyName as h, ThemeDensityScale as i, ThemePresetName as l, ThemeScopeOptions as m, ThemeBorderToken as n, ThemeFeedbackToneToken as o, ThemeScopeAttributes as p, ThemeColorToken as r, ThemeFocusToken as s, ThemeBootstrapOptions as t, ThemePresetStylesheetSpecifier as u, ThemeTokenName as v, ThemeTokenStylesheetSpecifier as x, ThemeTokenOverrides as y };
|
package/dist/theme.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer vize.tokens,vize.ui,vize.preset,vize.policy;@layer vize.tokens{:where(:root,:host){--vize-ui-color-canvas:Canvas;--vize-ui-color-surface:Canvas;--vize-ui-color-text:CanvasText;--vize-ui-color-text-muted:GrayText;--vize-ui-color-accent:LinkText;--vize-ui-color-accent-contrast:Canvas;--vize-ui-color-border:GrayText;--vize-ui-color-neutral:CanvasText;--vize-ui-color-neutral-contrast:Canvas;--vize-ui-color-info:LinkText;--vize-ui-color-info-contrast:Canvas;--vize-ui-color-success:CanvasText;--vize-ui-color-success-contrast:Canvas;--vize-ui-color-warning:CanvasText;--vize-ui-color-warning-contrast:Canvas;--vize-ui-color-danger:#d92d20;--vize-ui-color-danger-contrast:Canvas;--vize-ui-type-family-sans:system-ui, sans-serif;--vize-ui-type-family-mono:ui-monospace, monospace;--vize-ui-type-size-xs:.75rem;--vize-ui-type-size-sm:.875rem;--vize-ui-type-size-md:1rem;--vize-ui-type-size-lg:1.125rem;--vize-ui-type-size-xl:1.25rem;--vize-ui-type-size-2xl:1.5rem;--vize-ui-type-leading-tight:1.25;--vize-ui-type-leading-normal:1.5;--vize-ui-type-leading-loose:1.75;--vize-ui-type-weight-regular:400;--vize-ui-type-weight-medium:500;--vize-ui-type-weight-bold:700;--vize-ui-density:1;--vize-ui-space-xs:calc(.25rem * var(--vize-ui-density));--vize-ui-space-sm:calc(.5rem * var(--vize-ui-density));--vize-ui-space-md:calc(.75rem * var(--vize-ui-density));--vize-ui-space-lg:calc(1rem * var(--vize-ui-density));--vize-ui-space-xl:calc(1.5rem * var(--vize-ui-density));--vize-ui-space-2xl:calc(2rem * var(--vize-ui-density));--vize-ui-space-3xl:calc(3rem * var(--vize-ui-density));--vize-ui-size-control-sm:calc(1.75rem * var(--vize-ui-density));--vize-ui-size-control-md:calc(2.25rem * var(--vize-ui-density));--vize-ui-size-control-lg:calc(2.75rem * var(--vize-ui-density));--vize-ui-radius-sm:.25rem;--vize-ui-radius-md:.5rem;--vize-ui-radius-lg:1rem;--vize-ui-radius-full:9999px;--vize-ui-border-width-thin:1px;--vize-ui-border-width-thick:2px;--vize-ui-elevation-raised:none;--vize-ui-elevation-overlay:none;--vize-ui-elevation-floating:none;--vize-ui-opacity-muted:.7;--vize-ui-opacity-disabled:.45;--vize-ui-z-sticky:100;--vize-ui-z-dropdown:600;--vize-ui-z-overlay:1000;--vize-ui-z-toast:1200;--vize-ui-focus-ring-width:2px;--vize-ui-focus-ring-offset:2px;--vize-ui-focus-ring-color:var(--vize-ui-color-accent)}:where([data-vize-density]):where([data-vize-density=compact]){--vize-ui-density:.85}:where([data-vize-density]):where([data-vize-density=comfortable]){--vize-ui-density:1.15}}@layer vize.ui,vize.preset;@layer vize.policy{@media (forced-colors:active){:where(:root,:host,[data-vize-theme]){--vize-ui-color-canvas:Canvas;--vize-ui-color-surface:Canvas;--vize-ui-color-text:CanvasText;--vize-ui-color-text-muted:GrayText;--vize-ui-color-accent:Highlight;--vize-ui-color-accent-contrast:HighlightText;--vize-ui-color-border:ButtonBorder;--vize-ui-color-neutral:CanvasText;--vize-ui-color-neutral-contrast:Canvas;--vize-ui-color-info:Highlight;--vize-ui-color-info-contrast:HighlightText;--vize-ui-color-success:CanvasText;--vize-ui-color-success-contrast:Canvas;--vize-ui-color-warning:CanvasText;--vize-ui-color-warning-contrast:Canvas;--vize-ui-color-danger:CanvasText;--vize-ui-color-danger-contrast:Canvas;--vize-ui-elevation-raised:none;--vize-ui-elevation-overlay:none;--vize-ui-elevation-floating:none;--vize-ui-focus-ring-color:Highlight}}}
|
package/dist/theme.d.mts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { C as ThemeZIndexToken, S as ThemeTypeToken, _ as ThemeSpaceToken, a as ThemeElevationToken, b as ThemeTokenPackName, c as ThemeOpacityToken, d as ThemeRadiusToken, g as ThemeSizeToken, i as ThemeDensityScale, l as ThemePresetName, n as ThemeBorderToken, o as ThemeFeedbackToneToken, r as ThemeColorToken, s as ThemeFocusToken, u as ThemePresetStylesheetSpecifier, v as ThemeTokenName, x as ThemeTokenStylesheetSpecifier, y as ThemeTokenOverrides } from "./theme-types-CkIa4Sa3.mjs";
|
|
2
|
+
import { a as themeTokens, c as themeDensityAttribute, d as themePresets, i as themeTokenVar, l as themeDensityScales, n as themeTokenPackNames, o as themeTokensForPack, r as themeTokenProperty, s as themeCascadeLayerOrder, t as setThemeTokens, u as themePresetAttribute } from "./theme-CNK06Pja.mjs";
|
|
3
|
+
export { type ThemeBorderToken, type ThemeColorToken, type ThemeDensityScale, type ThemeElevationToken, type ThemeFeedbackToneToken, type ThemeFocusToken, type ThemeOpacityToken, type ThemePresetName, type ThemePresetStylesheetSpecifier, type ThemeRadiusToken, type ThemeSizeToken, type ThemeSpaceToken, type ThemeTokenName, type ThemeTokenOverrides, type ThemeTokenPackName, type ThemeTokenStylesheetSpecifier, type ThemeTypeToken, type ThemeZIndexToken, setThemeTokens, themeCascadeLayerOrder, themeDensityAttribute, themeDensityScales, themePresetAttribute, themePresets, themeTokenPackNames, themeTokenProperty, themeTokenVar, themeTokens, themeTokensForPack };
|
package/dist/theme.mjs
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { a as themeTokens, i as themeTokenVar, n as themeTokenPackNames, o as themeTokensForPack, r as themeTokenProperty, t as setThemeTokens } from "./theme-C8Crmb8V.mjs";
|
|
2
|
+
import { a as themePresets, i as themePresetAttribute, n as themeDensityAttribute, r as themeDensityScales, t as themeCascadeLayerOrder } from "./theme-constants-DAwnxG-P.mjs";
|
|
3
|
+
export { setThemeTokens, themeCascadeLayerOrder, themeDensityAttribute, themeDensityScales, themePresetAttribute, themePresets, themeTokenPackNames, themeTokenProperty, themeTokenVar, themeTokens, themeTokensForPack };
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BOaGB7Aw.mjs";
|
|
2
|
+
import { useControllableState } from "./controllable-state.mjs";
|
|
3
|
+
import { computed, createBlock, defineComponent, openBlock, renderSlot, resolveDynamicComponent, unref, useTemplateRef, withCtx } from "vue";
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region src/families/selection/toggle/toggle-button.vue
|
|
6
|
+
var toggle_button_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "toggle-button",
|
|
8
|
+
props: {
|
|
9
|
+
as: {
|
|
10
|
+
type: null,
|
|
11
|
+
required: false,
|
|
12
|
+
default: "button"
|
|
13
|
+
},
|
|
14
|
+
native: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
required: false,
|
|
17
|
+
default: () => void 0
|
|
18
|
+
},
|
|
19
|
+
type: {
|
|
20
|
+
type: String,
|
|
21
|
+
required: false,
|
|
22
|
+
default: "button"
|
|
23
|
+
},
|
|
24
|
+
modelValue: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
required: false,
|
|
27
|
+
default: () => void 0
|
|
28
|
+
},
|
|
29
|
+
defaultPressed: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
required: false,
|
|
32
|
+
default: false
|
|
33
|
+
},
|
|
34
|
+
disabled: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
required: false,
|
|
37
|
+
default: false
|
|
38
|
+
},
|
|
39
|
+
ariaLabel: {
|
|
40
|
+
type: String,
|
|
41
|
+
required: false
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
emits: ["update:modelValue", "change"],
|
|
45
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
46
|
+
function getToggleKeyboardAction(key, phase) {
|
|
47
|
+
if (key === "Enter") return phase === "keydown" ? "activate" : "ignore";
|
|
48
|
+
if (key === " ") return phase === "keydown" ? "prevent" : "activate";
|
|
49
|
+
return "ignore";
|
|
50
|
+
}
|
|
51
|
+
const emit = __emit;
|
|
52
|
+
const element = useTemplateRef("element");
|
|
53
|
+
const isNativeButton = computed(() => __props.native ?? __props.as === "button");
|
|
54
|
+
const state = useControllableState({
|
|
55
|
+
value: () => __props.modelValue,
|
|
56
|
+
defaultValue: () => __props.defaultPressed,
|
|
57
|
+
onChange: (value) => emit("update:modelValue", value)
|
|
58
|
+
});
|
|
59
|
+
const pressed = state.value;
|
|
60
|
+
const tabIndex = computed(() => {
|
|
61
|
+
if (isNativeButton.value) return void 0;
|
|
62
|
+
return __props.disabled ? -1 : 0;
|
|
63
|
+
});
|
|
64
|
+
function onClick(event) {
|
|
65
|
+
if (__props.disabled) {
|
|
66
|
+
event.preventDefault();
|
|
67
|
+
event.stopImmediatePropagation();
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
const next = !pressed.value;
|
|
71
|
+
state.set(next);
|
|
72
|
+
emit("change", next, event);
|
|
73
|
+
}
|
|
74
|
+
function onKeyboard(event, phase) {
|
|
75
|
+
if (isNativeButton.value) return;
|
|
76
|
+
const action = getToggleKeyboardAction(event.key, phase);
|
|
77
|
+
if (action === "ignore") return;
|
|
78
|
+
event.preventDefault();
|
|
79
|
+
if (__props.disabled) {
|
|
80
|
+
event.stopImmediatePropagation();
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
if (action === "activate" && event.currentTarget instanceof HTMLElement) event.currentTarget.click();
|
|
84
|
+
}
|
|
85
|
+
function onKeydown(event) {
|
|
86
|
+
onKeyboard(event, "keydown");
|
|
87
|
+
}
|
|
88
|
+
function onKeyup(event) {
|
|
89
|
+
onKeyboard(event, "keyup");
|
|
90
|
+
}
|
|
91
|
+
/** Move focus to the rendered control when it exposes a focus method. */
|
|
92
|
+
function focus(options) {
|
|
93
|
+
focusTarget(element.value, options);
|
|
94
|
+
}
|
|
95
|
+
function focusTarget(target, options) {
|
|
96
|
+
if (typeof target === "object" && target !== null && "focus" in target && typeof target.focus === "function") target.focus(options);
|
|
97
|
+
}
|
|
98
|
+
__expose({
|
|
99
|
+
element,
|
|
100
|
+
focus,
|
|
101
|
+
pressed,
|
|
102
|
+
reset: state.reset,
|
|
103
|
+
setPressed: state.set
|
|
104
|
+
});
|
|
105
|
+
return (_ctx, _cache) => {
|
|
106
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.as), {
|
|
107
|
+
ref_key: "element",
|
|
108
|
+
ref: element,
|
|
109
|
+
type: isNativeButton.value ? __props.type : void 0,
|
|
110
|
+
disabled: isNativeButton.value ? __props.disabled : void 0,
|
|
111
|
+
role: isNativeButton.value ? void 0 : "button",
|
|
112
|
+
tabindex: tabIndex.value,
|
|
113
|
+
"aria-label": __props.ariaLabel,
|
|
114
|
+
"aria-disabled": __props.disabled && !isNativeButton.value ? "true" : void 0,
|
|
115
|
+
"aria-pressed": unref(pressed) ? "true" : "false",
|
|
116
|
+
"data-vize-ui": "toggle",
|
|
117
|
+
"data-state": __props.disabled ? "disabled" : unref(pressed) ? "pressed" : "unpressed",
|
|
118
|
+
onClick,
|
|
119
|
+
onKeydown,
|
|
120
|
+
onKeyup
|
|
121
|
+
}, {
|
|
122
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {
|
|
123
|
+
disabled: __props.disabled,
|
|
124
|
+
pressed: unref(pressed)
|
|
125
|
+
}, void 0, true)]),
|
|
126
|
+
_: 3
|
|
127
|
+
}, 40, [
|
|
128
|
+
"type",
|
|
129
|
+
"disabled",
|
|
130
|
+
"role",
|
|
131
|
+
"tabindex",
|
|
132
|
+
"aria-label",
|
|
133
|
+
"aria-disabled",
|
|
134
|
+
"aria-pressed",
|
|
135
|
+
"data-state"
|
|
136
|
+
]);
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
}), [["__scopeId", "data-v-0ac488b9"]]);
|
|
140
|
+
//#endregion
|
|
141
|
+
export { toggle_button_default as t };
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { n as PrimitiveElement, t as PrimitiveAs } from "./primitive-BE2mdUcw.mjs";
|
|
2
|
+
import { ComputedRef } from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/families/selection/toggle-group/toggle-group-types.d.ts
|
|
5
|
+
/** Selection mode owned by the ToggleGroup root. */
|
|
6
|
+
type ToggleGroupType = "single" | "multiple";
|
|
7
|
+
/** Controlled or uncontrolled ToggleGroup value. */
|
|
8
|
+
type ToggleGroupValue = string | readonly string[] | null;
|
|
9
|
+
/** Directional layout hint used for roving keyboard focus. */
|
|
10
|
+
type ToggleGroupOrientation = "horizontal" | "vertical";
|
|
11
|
+
/** State exposed by the ToggleGroup root data contract. */
|
|
12
|
+
type ToggleGroupState = "disabled" | "empty" | "selected";
|
|
13
|
+
/** State exposed by each ToggleGroup item data contract. */
|
|
14
|
+
type ToggleGroupItemState = "disabled" | "pressed" | "unpressed";
|
|
15
|
+
/** State exposed to the ToggleGroup default slot. */
|
|
16
|
+
interface ToggleGroupSlotState {
|
|
17
|
+
/** Current selected value: a string, an array for multiple mode, or null for no single selection. */
|
|
18
|
+
readonly value: ToggleGroupValue;
|
|
19
|
+
/** Current pressed values normalized to an immutable array. */
|
|
20
|
+
readonly pressedValues: readonly string[];
|
|
21
|
+
/** Whether the group suppresses every item activation. */
|
|
22
|
+
readonly disabled: boolean;
|
|
23
|
+
/** Selection mode used by item activation. */
|
|
24
|
+
readonly type: ToggleGroupType;
|
|
25
|
+
/** Directional layout hint used by roving focus. */
|
|
26
|
+
readonly orientation: ToggleGroupOrientation;
|
|
27
|
+
/** Stable state token for styling and tests. */
|
|
28
|
+
readonly state: ToggleGroupState;
|
|
29
|
+
}
|
|
30
|
+
/** Public instance exposed by ToggleGroup. */
|
|
31
|
+
interface ToggleGroupExpose extends ToggleGroupSlotState {
|
|
32
|
+
/** Rendered root element or component instance. */
|
|
33
|
+
readonly element: PrimitiveElement | null;
|
|
34
|
+
/** Move focus to the active, selected, or first enabled item. */
|
|
35
|
+
readonly focus: (options?: FocusOptions) => void;
|
|
36
|
+
/** Request a group value update and report whether it differs. */
|
|
37
|
+
readonly setValue: (value: ToggleGroupValue) => boolean;
|
|
38
|
+
/** Toggle one item value programmatically and report whether it differs. */
|
|
39
|
+
readonly toggleValue: (value: string, pressed?: boolean) => boolean;
|
|
40
|
+
/** Restore the current default value and report whether it changed. */
|
|
41
|
+
readonly reset: () => boolean;
|
|
42
|
+
}
|
|
43
|
+
/** State exposed to a ToggleGroupItem slot. */
|
|
44
|
+
interface ToggleGroupItemSlotState {
|
|
45
|
+
/** Item value used by the group selection model. */
|
|
46
|
+
readonly value: string;
|
|
47
|
+
/** Whether this item is pressed by the group. */
|
|
48
|
+
readonly pressed: boolean;
|
|
49
|
+
/** Whether this item or its group suppresses activation. */
|
|
50
|
+
readonly disabled: boolean;
|
|
51
|
+
/** Directional layout hint inherited from the group. */
|
|
52
|
+
readonly orientation: ToggleGroupOrientation;
|
|
53
|
+
/** Stable state token for styling and tests. */
|
|
54
|
+
readonly state: ToggleGroupItemState;
|
|
55
|
+
}
|
|
56
|
+
/** Public instance exposed by ToggleGroupItem. */
|
|
57
|
+
interface ToggleGroupItemExpose extends ToggleGroupItemSlotState {
|
|
58
|
+
/** Rendered item element or component instance. */
|
|
59
|
+
readonly element: PrimitiveElement | null;
|
|
60
|
+
/** Move focus to the rendered item. */
|
|
61
|
+
readonly focus: (options?: FocusOptions) => void;
|
|
62
|
+
}
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region src/families/selection/toggle-group/toggle-group.vue.d.ts
|
|
65
|
+
type __VLS_Props$1 = {
|
|
66
|
+
/** Native element, custom element, or component to render. @default "div" */readonly as?: PrimitiveAs; /** Selection mode for item activation. @default "single" */
|
|
67
|
+
readonly type?: ToggleGroupType; /** Controlled selected value. `undefined` selects uncontrolled behavior. @default undefined */
|
|
68
|
+
readonly modelValue?: ToggleGroupValue; /** Initial value for uncontrolled use and the value restored by reset. @default undefined */
|
|
69
|
+
readonly defaultValue?: ToggleGroupValue; /** Disable every item and remove the group from roving focus. @default false */
|
|
70
|
+
readonly disabled?: boolean; /** Directional layout hint used by arrow-key roving focus. @default "horizontal" */
|
|
71
|
+
readonly orientation?: ToggleGroupOrientation; /** Whether arrow-key navigation wraps at the first and last enabled item. @default true */
|
|
72
|
+
readonly loop?: boolean; /** Whether items participate in a single-tabstop roving focus model. @default true */
|
|
73
|
+
readonly rovingFocus?: boolean; /** Accessible name when no visible label or `aria-labelledby` supplies one. @default undefined */
|
|
74
|
+
readonly ariaLabel?: string; /** Space-separated ids that label the group. @default undefined */
|
|
75
|
+
readonly ariaLabelledby?: string; /** Space-separated ids that describe the group. @default undefined */
|
|
76
|
+
readonly ariaDescribedby?: string;
|
|
77
|
+
};
|
|
78
|
+
type __VLS_Slots$1 = {
|
|
79
|
+
/** Compound ToggleGroup items. Receives normalized selection and navigation state. */default(props: ToggleGroupSlotState): unknown;
|
|
80
|
+
};
|
|
81
|
+
declare function focus$1(options?: FocusOptions): void;
|
|
82
|
+
declare function setValue(next: ToggleGroupValue): boolean;
|
|
83
|
+
declare function toggleValue(itemValue: string, pressed?: boolean): boolean;
|
|
84
|
+
declare const __VLS_base$1: import("vue").DefineComponent<__VLS_Props$1, {
|
|
85
|
+
disabled: ComputedRef<boolean>;
|
|
86
|
+
element: Readonly<import("vue").ShallowRef<PrimitiveElement | null>>;
|
|
87
|
+
focus: typeof focus$1;
|
|
88
|
+
orientation: ComputedRef<ToggleGroupOrientation>;
|
|
89
|
+
pressedValues: ComputedRef<readonly string[]>;
|
|
90
|
+
reset: () => boolean;
|
|
91
|
+
setValue: typeof setValue;
|
|
92
|
+
state: ComputedRef<ToggleGroupState>;
|
|
93
|
+
toggleValue: typeof toggleValue;
|
|
94
|
+
type: ComputedRef<ToggleGroupType>;
|
|
95
|
+
value: ComputedRef<ToggleGroupValue>;
|
|
96
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
97
|
+
"update:modelValue": (value: ToggleGroupValue) => any;
|
|
98
|
+
change: (value: ToggleGroupValue, previous: ToggleGroupValue, nativeEvent: MouseEvent) => any;
|
|
99
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props$1> & Readonly<{
|
|
100
|
+
"onUpdate:modelValue"?: (value: ToggleGroupValue) => any;
|
|
101
|
+
onChange?: (value: ToggleGroupValue, previous: ToggleGroupValue, nativeEvent: MouseEvent) => any;
|
|
102
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
103
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
104
|
+
declare const _default$1: typeof __VLS_export$1;
|
|
105
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
106
|
+
new (): {
|
|
107
|
+
$slots: S;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region src/families/selection/toggle-group/toggle-group-item.vue.d.ts
|
|
112
|
+
type __VLS_Props = {
|
|
113
|
+
/** Native element, custom element, or component to render. @default "button" */readonly as?: PrimitiveAs; /** Whether the rendered target already implements native button semantics. @default auto */
|
|
114
|
+
readonly native?: boolean; /** Native button submission behavior. @default "button" */
|
|
115
|
+
readonly type?: "button" | "reset" | "submit"; /** Item value used by the group selection model. @default required */
|
|
116
|
+
readonly value: string; /** Disable this item while preserving the rest of the group. @default false */
|
|
117
|
+
readonly disabled?: boolean; /** Accessible name when no visible label or `aria-labelledby` supplies one. @default undefined */
|
|
118
|
+
readonly ariaLabel?: string; /** Space-separated ids that label this item. @default undefined */
|
|
119
|
+
readonly ariaLabelledby?: string; /** Space-separated ids that describe this item. @default undefined */
|
|
120
|
+
readonly ariaDescribedby?: string;
|
|
121
|
+
};
|
|
122
|
+
type __VLS_Slots = {
|
|
123
|
+
/** Renders item contents with current pressed and availability state. */default(props: ToggleGroupItemSlotState): unknown;
|
|
124
|
+
};
|
|
125
|
+
declare function focus(options?: FocusOptions): void;
|
|
126
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
127
|
+
disabled: ComputedRef<boolean>;
|
|
128
|
+
element: Readonly<import("vue").ShallowRef<PrimitiveElement | null>>;
|
|
129
|
+
focus: typeof focus;
|
|
130
|
+
orientation: ComputedRef<ToggleGroupOrientation>;
|
|
131
|
+
pressed: ComputedRef<boolean>;
|
|
132
|
+
state: ComputedRef<ToggleGroupItemState>;
|
|
133
|
+
value: string;
|
|
134
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
135
|
+
press: (value: string, pressed: boolean, nativeEvent: MouseEvent) => any;
|
|
136
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
137
|
+
onPress?: (value: string, pressed: boolean, nativeEvent: MouseEvent) => any;
|
|
138
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
139
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
140
|
+
declare const _default: typeof __VLS_export;
|
|
141
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
142
|
+
new (): {
|
|
143
|
+
$slots: S;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
//#endregion
|
|
147
|
+
export { ToggleGroupItemSlotState as a, ToggleGroupSlotState as c, ToggleGroupValue as d, ToggleGroupItemExpose as i, ToggleGroupState as l, _default$1 as n, ToggleGroupItemState as o, ToggleGroupExpose as r, ToggleGroupOrientation as s, _default as t, ToggleGroupType as u };
|