@m3ui-vue/m3ui-vue 0.7.1 → 0.8.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/README.md +5 -5
- package/dist/{MMenuItem-xQ1x6-DH.js → MMenuItem-vSLbJGqe.js} +299 -232
- package/dist/MMenuItem-vSLbJGqe.js.map +1 -0
- package/dist/code-editor.d.ts +1 -0
- package/dist/code-editor.js +22 -7
- package/dist/code-editor.js.map +1 -1
- package/dist/components/MCard.vue.d.ts +2 -0
- package/dist/components/MChatBubble.vue.d.ts +0 -1
- package/dist/components/MCircleProgressBar.vue.d.ts +0 -1
- package/dist/components/MCodeEditor.vue.d.ts +1 -1
- package/dist/components/MConfirmDialog.vue.d.ts +3 -0
- package/dist/components/MDialog.vue.d.ts +23 -7
- package/dist/components/MFab.vue.d.ts +2 -2
- package/dist/components/MListItem.vue.d.ts +11 -6
- package/dist/components/MNavigationRail.vue.d.ts +17 -1
- package/dist/components/MSelect.vue.d.ts +1 -0
- package/dist/components/MSwitch.vue.d.ts +8 -0
- package/dist/components/MTabs.vue.d.ts +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/m3ui-vue.css +1 -1
- package/dist/m3ui.js +1798 -1432
- package/dist/m3ui.js.map +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/styles/palettes.css +659 -0
- package/dist/styles/theme.css +1 -0
- package/dist/styles.css +1 -1
- package/package.json +13 -1
- package/src/__tests__/useColorPalette.test.ts +2 -2
- package/src/code-editor.ts +1 -0
- package/src/components/MAutocomplete.vue +35 -26
- package/src/components/MBadge.vue +1 -1
- package/src/components/MBottomSheet.vue +4 -4
- package/src/components/MButton.vue +36 -19
- package/src/components/MButtonGroup.vue +2 -2
- package/src/components/MCard.vue +76 -11
- package/src/components/MChatBubble.vue +0 -1
- package/src/components/MCheckbox.vue +58 -13
- package/src/components/MChip.vue +26 -6
- package/src/components/MCircleProgressBar.vue +7 -4
- package/src/components/MCodeEditor.vue +54 -8
- package/src/components/MColorPicker.vue +9 -8
- package/src/components/MColorPickerModal.vue +2 -2
- package/src/components/MCommandPalette.vue +1 -1
- package/src/components/MConfirmDialog.vue +4 -0
- package/src/components/MContextMenu.vue +23 -2
- package/src/components/MDatePicker.vue +11 -11
- package/src/components/MDatePickerModal.vue +5 -5
- package/src/components/MDateRangePicker.vue +12 -12
- package/src/components/MDateRangePickerModal.vue +3 -3
- package/src/components/MDialog.vue +103 -12
- package/src/components/MFab.vue +10 -7
- package/src/components/MFabMenu.vue +1 -1
- package/src/components/MIconButton.vue +41 -19
- package/src/components/MListItem.vue +35 -17
- package/src/components/MLoadingIndicator.vue +14 -7
- package/src/components/MMaskField.vue +14 -6
- package/src/components/MMenu.vue +28 -3
- package/src/components/MMenuItem.vue +2 -2
- package/src/components/MMultiAutocomplete.vue +41 -26
- package/src/components/MMultiSelect.vue +40 -22
- package/src/components/MNavigationBar.vue +5 -10
- package/src/components/MNavigationDrawer.vue +10 -9
- package/src/components/MNavigationRail.vue +335 -22
- package/src/components/MNumberField.vue +14 -6
- package/src/components/MOverlay.vue +1 -1
- package/src/components/MPinInput.vue +7 -4
- package/src/components/MProgressBar.vue +16 -10
- package/src/components/MRadio.vue +54 -12
- package/src/components/MSearchBar.vue +3 -2
- package/src/components/MSegmentedButton.vue +14 -9
- package/src/components/MSelect.vue +44 -32
- package/src/components/MSideSheet.vue +1 -1
- package/src/components/MSnackbar.vue +4 -4
- package/src/components/MSplitButton.vue +32 -17
- package/src/components/MSpotlightSearch.vue +1 -1
- package/src/components/MSwitch.vue +96 -18
- package/src/components/MTabs.vue +16 -12
- package/src/components/MTagInput.vue +33 -22
- package/src/components/MTextField.vue +14 -6
- package/src/components/MTimePicker.vue +9 -9
- package/src/components/MTimePickerModal.vue +16 -16
- package/src/components/MToolbar.vue +5 -3
- package/src/components/MTooltip.vue +4 -4
- package/src/components/MTopAppBar.vue +14 -6
- package/src/components/MTour.vue +1 -1
- package/src/composables/useColorPalette.ts +10 -0
- package/src/index.ts +1 -0
- package/src/styles/palettes.css +659 -0
- package/src/styles/theme.css +1 -0
- package/dist/MMenuItem-xQ1x6-DH.js.map +0 -1
package/dist/styles.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.code-editor-container[data-v-05d72157] .cm-editor{height:100%;min-height:inherit;font-family:Roboto Mono,Fira Code,Consolas,monospace;font-size:.8125rem;line-height:1.6}.code-editor-container[data-v-05d72157] .cm-editor.cm-focused{outline:none}.code-editor-container[data-v-05d72157] .cm-scroller{min-height:inherit}.code-editor-container[data-v-05d72157] .cm-content{padding:12px 0}.code-editor-container[data-v-05d72157] .cm-line{padding:0 16px}.code-editor-container[data-v-05d72157] .cm-gutters{background:var(--color-surface-container);border-right:1px solid var(--color-outline-variant);color:var(--color-outline);padding:0 4px;font-size:.75rem}.code-editor-container[data-v-05d72157] .cm-activeLineGutter{background:var(--color-surface-container-high);color:var(--color-on-surface-variant)}.code-editor-container[data-v-05d72157] .cm-activeLine{background:var(--color-surface-container-lowest)}.code-editor-container[data-v-05d72157] .cm-selectionBackground{background:var(--color-primary-container)!important}.code-editor-container[data-v-05d72157] .cm-cursor{border-left-color:var(--color-primary);border-left-width:2px}.code-editor-container[data-v-05d72157] .cm-matchingBracket{background:var(--color-tertiary-container);color:var(--color-on-tertiary-container);border-radius:2px}.code-editor-container[data-v-05d72157] .cm-foldGutter span{color:var(--color-on-surface-variant)}@keyframes m3-wavy-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes m3-wavy-travel{0%{stroke-dashoffset:0}to{stroke-dashoffset:calc(var(--m3-wave-len) * -1px)}}@media (prefers-reduced-motion:reduce){.animate-\[m3-wavy-spin_2\.8s_linear_infinite\]{animation:2.8s linear infinite m3-wavy-spin}.animate-\[m3-wavy-travel_2s_linear_infinite\]{animation:none!important}}.m3-dialog-enter-active[data-v-cdafd041],.m3-dialog-leave-active[data-v-cdafd041]{transition:opacity .15s}.m3-dialog-enter-from[data-v-cdafd041],.m3-dialog-leave-to[data-v-cdafd041]{opacity:0}.m3-dialog-enter-active .dialog-box[data-v-cdafd041],.m3-dialog-leave-active .dialog-box[data-v-cdafd041]{transition:transform .15s}.m3-dialog-enter-from .dialog-box[data-v-cdafd041],.m3-dialog-leave-to .dialog-box[data-v-cdafd041]{transform:scale(.95)}.m3-dialog-fs-enter-active[data-v-cdafd041],.m3-dialog-fs-leave-active[data-v-cdafd041]{transition:transform .25s cubic-bezier(.2,0,0,1),opacity .15s}.m3-dialog-fs-enter-from[data-v-cdafd041],.m3-dialog-fs-leave-to[data-v-cdafd041]{opacity:0;transform:translateY(100%)}.toast-row[data-v-d4877a26]{grid-template-rows:1fr;padding-bottom:8px;display:grid}.toast-row>.toast-inner[data-v-d4877a26]{min-height:0}.m3-toast-bot-enter-active[data-v-d4877a26]{transition:grid-template-rows .22s cubic-bezier(.2,0,0,1),padding-bottom .22s cubic-bezier(.2,0,0,1)}.m3-toast-bot-enter-active>.toast-inner[data-v-d4877a26]{transition:opacity .18s,transform .22s cubic-bezier(.2,0,0,1)}.m3-toast-bot-enter-from[data-v-d4877a26]{grid-template-rows:0fr;padding-bottom:0}.m3-toast-bot-enter-from>.toast-inner[data-v-d4877a26]{opacity:0;transform:translateY(20px)scale(.94)}.m3-toast-bot-leave-active[data-v-d4877a26]{transition:grid-template-rows .3s cubic-bezier(.2,0,0,1),padding-bottom .3s cubic-bezier(.2,0,0,1)}.m3-toast-bot-leave-active>.toast-inner[data-v-d4877a26]{transition:opacity .18s,transform .18s}.m3-toast-bot-leave-to[data-v-d4877a26]{grid-template-rows:0fr;padding-bottom:0}.m3-toast-bot-leave-to>.toast-inner[data-v-d4877a26]{opacity:0;transform:scale(.92)}.m3-toast-bot-leave-active>.toast-count-badge[data-v-d4877a26]{transition:opacity .15s,transform .15s}.m3-toast-bot-leave-to>.toast-count-badge[data-v-d4877a26]{opacity:0;transform:scale(.5)}.m3-toast-top-enter-active[data-v-d4877a26]{transition:grid-template-rows .22s cubic-bezier(.2,0,0,1),padding-bottom .22s cubic-bezier(.2,0,0,1)}.m3-toast-top-enter-active>.toast-inner[data-v-d4877a26]{transition:opacity .18s,transform .22s cubic-bezier(.2,0,0,1)}.m3-toast-top-enter-from[data-v-d4877a26]{grid-template-rows:0fr;padding-bottom:0}.m3-toast-top-enter-from>.toast-inner[data-v-d4877a26]{opacity:0;transform:translateY(-20px)scale(.94)}.m3-toast-top-leave-active[data-v-d4877a26]{transition:grid-template-rows .3s cubic-bezier(.2,0,0,1),padding-bottom .3s cubic-bezier(.2,0,0,1)}.m3-toast-top-leave-active>.toast-inner[data-v-d4877a26]{transition:opacity .18s,transform .18s}.m3-toast-top-leave-to[data-v-d4877a26]{grid-template-rows:0fr;padding-bottom:0}.m3-toast-top-leave-to>.toast-inner[data-v-d4877a26]{opacity:0;transform:scale(.92)}.m3-toast-top-leave-active>.toast-count-badge[data-v-d4877a26]{transition:opacity .15s,transform .15s}.m3-toast-top-leave-to>.toast-count-badge[data-v-d4877a26]{opacity:0;transform:scale(.5)}.m3-badge-enter-active[data-v-d4877a26]{transition:opacity .2s,transform .2s cubic-bezier(.34,1.56,.64,1)}.m3-badge-leave-active[data-v-d4877a26]{transition:opacity .15s,transform .15s}.m3-badge-enter-from[data-v-d4877a26],.m3-badge-leave-to[data-v-d4877a26]{opacity:0;transform:scale(.5)}.m3-count-enter-active[data-v-d4877a26]{transition:opacity .12s,transform .12s}.m3-count-leave-active[data-v-d4877a26]{transition:opacity 80ms,transform 80ms}.m3-count-enter-from[data-v-d4877a26]{opacity:0;transform:scale(1.5)translateY(-3px)}.m3-count-leave-to[data-v-d4877a26]{opacity:0;transform:scale(.6)translateY(2px)}@keyframes m3-toast-progress-d4877a26{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.notif-row[data-v-2338355e]{grid-template-rows:1fr;padding-bottom:6px;display:grid}.notif-row>.notif-inner[data-v-2338355e]{min-height:0}.m3-notif-bot-enter-active[data-v-2338355e]{transition:grid-template-rows .2s,padding-bottom .2s}.m3-notif-bot-enter-active>.notif-inner[data-v-2338355e]{transition:opacity .15s,transform .2s;overflow:hidden}.m3-notif-bot-enter-from[data-v-2338355e]{grid-template-rows:0fr;padding-bottom:0}.m3-notif-bot-enter-from>.notif-inner[data-v-2338355e]{opacity:0;transform:translateY(12px)scale(.95)}.m3-notif-bot-leave-active[data-v-2338355e]{transition:grid-template-rows .25s,padding-bottom .25s}.m3-notif-bot-leave-active>.notif-inner[data-v-2338355e]{transition:opacity .15s,transform .15s;overflow:hidden}.m3-notif-bot-leave-to[data-v-2338355e]{grid-template-rows:0fr;padding-bottom:0}.m3-notif-bot-leave-to>.notif-inner[data-v-2338355e]{opacity:0;transform:scale(.93)}.m3-notif-bot-leave-active>.notif-count-badge[data-v-2338355e]{transition:opacity .15s,transform .15s}.m3-notif-bot-leave-to>.notif-count-badge[data-v-2338355e]{opacity:0;transform:scale(.5)}.m3-notif-top-enter-active[data-v-2338355e]{transition:grid-template-rows .2s,padding-bottom .2s}.m3-notif-top-enter-active>.notif-inner[data-v-2338355e]{transition:opacity .15s,transform .2s;overflow:hidden}.m3-notif-top-enter-from[data-v-2338355e]{grid-template-rows:0fr;padding-bottom:0}.m3-notif-top-enter-from>.notif-inner[data-v-2338355e]{opacity:0;transform:translateY(-12px)scale(.95)}.m3-notif-top-leave-active[data-v-2338355e]{transition:grid-template-rows .25s,padding-bottom .25s}.m3-notif-top-leave-active>.notif-inner[data-v-2338355e]{transition:opacity .15s,transform .15s;overflow:hidden}.m3-notif-top-leave-to[data-v-2338355e]{grid-template-rows:0fr;padding-bottom:0}.m3-notif-top-leave-to>.notif-inner[data-v-2338355e]{opacity:0;transform:scale(.93)}.m3-notif-top-leave-active>.notif-count-badge[data-v-2338355e]{transition:opacity .15s,transform .15s}.m3-notif-top-leave-to>.notif-count-badge[data-v-2338355e]{opacity:0;transform:scale(.5)}.m3-badge-enter-active[data-v-2338355e]{transition:opacity .2s,transform .2s cubic-bezier(.34,1.56,.64,1)}.m3-badge-leave-active[data-v-2338355e]{transition:opacity .15s,transform .15s}.m3-badge-enter-from[data-v-2338355e],.m3-badge-leave-to[data-v-2338355e]{opacity:0;transform:scale(.5)}.m3-count-enter-active[data-v-2338355e]{transition:opacity .12s,transform .12s}.m3-count-leave-active[data-v-2338355e]{transition:opacity 80ms,transform 80ms}.m3-count-enter-from[data-v-2338355e]{opacity:0;transform:scale(1.5)translateY(-3px)}.m3-count-leave-to[data-v-2338355e]{opacity:0;transform:scale(.6)translateY(2px)}.m3-ac-modal-enter-active[data-v-5e0b4529],.m3-ac-modal-leave-active[data-v-5e0b4529]{transition:opacity .15s}.m3-ac-modal-enter-from[data-v-5e0b4529],.m3-ac-modal-leave-to[data-v-5e0b4529]{opacity:0}.m3-ac-modal-enter-active .ac-modal-box[data-v-5e0b4529],.m3-ac-modal-leave-active .ac-modal-box[data-v-5e0b4529]{transition:transform .15s}.m3-ac-modal-enter-from .ac-modal-box[data-v-5e0b4529],.m3-ac-modal-leave-to .ac-modal-box[data-v-5e0b4529]{transform:scale(.95)}.m3-bar-btn{width:46px;height:100%;color:var(--color-on-surface-variant);cursor:pointer;justify-content:center;align-items:center;transition:background-color .1s,color .1s;display:inline-flex}.m3-bar-btn:hover{background-color:var(--color-surface-container-highest);color:var(--color-on-surface)}.m3-bar-btn-close:hover{background-color:var(--color-error);color:var(--color-on-error)}.bs-scrim[data-v-17d52194]{transition:opacity .3s}.bs-enter-from .bs-scrim[data-v-17d52194],.bs-leave-to .bs-scrim[data-v-17d52194]{opacity:0}.bs-panel[data-v-17d52194]{transition:transform .32s cubic-bezier(.2,0,0,1),opacity .24s}.bs-enter-from .bs-panel[data-v-17d52194]{opacity:0;transform:translateY(40%)}.bs-leave-to .bs-panel[data-v-17d52194]{opacity:0;transform:translateY(100%)!important}.carousel-track[data-v-f1acc440]{scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none}.carousel-track[data-v-f1acc440]::-webkit-scrollbar{display:none}.snap-center[data-v-f1acc440]>*{scroll-snap-align:center}.snap-start[data-v-f1acc440]>*{scroll-snap-align:start}.hue-slider[data-v-4d640982]{background:linear-gradient(90deg,red 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}.hue-slider[data-v-4d640982]::-webkit-slider-thumb{-webkit-appearance:none;cursor:pointer;background:#fff;border-radius:50%;width:16px;height:16px;box-shadow:0 1px 3px #0006}.hue-slider[data-v-4d640982]::-moz-range-thumb{cursor:pointer;background:#fff;border:none;border-radius:50%;width:16px;height:16px;box-shadow:0 1px 3px #0006}.hue-slider[data-v-0897c0ec]{background:linear-gradient(90deg,red 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}.hue-slider[data-v-0897c0ec]::-webkit-slider-thumb{-webkit-appearance:none;cursor:pointer;background:#fff;border-radius:50%;width:16px;height:16px;box-shadow:0 1px 3px #0006}.hue-slider[data-v-0897c0ec]::-moz-range-thumb{cursor:pointer;background:#fff;border:none;border-radius:50%;width:16px;height:16px;box-shadow:0 1px 3px #0006}.m3-cp-modal-enter-active[data-v-0897c0ec],.m3-cp-modal-leave-active[data-v-0897c0ec]{transition:opacity .15s}.m3-cp-modal-enter-from[data-v-0897c0ec],.m3-cp-modal-leave-to[data-v-0897c0ec]{opacity:0}.m3-cp-modal-enter-active .cp-box[data-v-0897c0ec],.m3-cp-modal-leave-active .cp-box[data-v-0897c0ec]{transition:transform .15s}.m3-cp-modal-enter-from .cp-box[data-v-0897c0ec],.m3-cp-modal-leave-to .cp-box[data-v-0897c0ec]{transform:scale(.95)}.m3-cmd-enter-active[data-v-a28bb011],.m3-cmd-leave-active[data-v-a28bb011]{transition:opacity .15s}.m3-cmd-enter-from[data-v-a28bb011],.m3-cmd-leave-to[data-v-a28bb011]{opacity:0}.m3-cmd-enter-active .cmd-box[data-v-a28bb011],.m3-cmd-leave-active .cmd-box[data-v-a28bb011]{transition:transform .15s}.m3-cmd-enter-from .cmd-box[data-v-a28bb011],.m3-cmd-leave-to .cmd-box[data-v-a28bb011]{transform:scale(.95)translateY(-10px)}.dt-expand-grid[data-v-cff43e1f]{grid-template-rows:0fr;transition:grid-template-rows .25s cubic-bezier(.2,0,0,1);display:grid}.dt-expand-grid.dt-expand-open[data-v-cff43e1f]{grid-template-rows:1fr}.dt-expand-body[data-v-cff43e1f]{min-height:0;overflow:hidden}.m3-dp-modal-enter-active[data-v-003d17f6],.m3-dp-modal-leave-active[data-v-003d17f6]{transition:opacity .15s}.m3-dp-modal-enter-from[data-v-003d17f6],.m3-dp-modal-leave-to[data-v-003d17f6]{opacity:0}.m3-dp-modal-enter-active .dp-box[data-v-003d17f6],.m3-dp-modal-leave-active .dp-box[data-v-003d17f6]{transition:transform .15s}.m3-dp-modal-enter-from .dp-box[data-v-003d17f6],.m3-dp-modal-leave-to .dp-box[data-v-003d17f6]{transform:scale(.95)}.m3-drp-modal-enter-active[data-v-f7769b2d],.m3-drp-modal-leave-active[data-v-f7769b2d]{transition:opacity .15s}.m3-drp-modal-enter-from[data-v-f7769b2d],.m3-drp-modal-leave-to[data-v-f7769b2d]{opacity:0}.m3-drp-modal-enter-active .drp-box[data-v-f7769b2d],.m3-drp-modal-leave-active .drp-box[data-v-f7769b2d]{transition:transform .15s}.m3-drp-modal-enter-from .drp-box[data-v-f7769b2d],.m3-drp-modal-leave-to .drp-box[data-v-f7769b2d]{transform:scale(.95)}.expand-grid[data-v-31731809]{grid-template-rows:0fr;transition:grid-template-rows .3s ease-in-out;display:grid}.expand-grid.expand-open[data-v-31731809]{grid-template-rows:1fr}.expand-body[data-v-31731809]{min-height:0;overflow:hidden}.m3-fab-content-scale-enter-active[data-v-87ceb0b5]{transition:opacity .2s,transform .2s cubic-bezier(.2,0,0,1)}.m3-fab-content-scale-leave-active[data-v-87ceb0b5]{transition:opacity .15s,transform .15s}.m3-fab-content-scale-enter-from[data-v-87ceb0b5]{opacity:0;transform:scale(.85)}.m3-fab-content-scale-leave-to[data-v-87ceb0b5]{opacity:0;transform:scale(.9)}.m3-fab-content-fade-enter-active[data-v-87ceb0b5],.m3-fab-content-fade-leave-active[data-v-87ceb0b5]{transition:opacity .22s}.m3-fab-content-fade-enter-from[data-v-87ceb0b5],.m3-fab-content-fade-leave-to[data-v-87ceb0b5]{opacity:0}.m3-fab-scrim-enter-active[data-v-87ceb0b5],.m3-fab-scrim-leave-active[data-v-87ceb0b5]{transition:opacity .2s}.m3-fab-scrim-enter-from[data-v-87ceb0b5],.m3-fab-scrim-leave-to[data-v-87ceb0b5]{opacity:0}.m3-fabmenu-item-inner[data-v-83dfb288]{clip-path:inset(0 0 0 0%);transition:clip-path .22s cubic-bezier(.3,1.2,.4,1)}.m3-fabmenu-item-enter-active .m3-fabmenu-item-inner[data-v-83dfb288]{transition-delay:var(--m3-fabmenu-delay,0s)}.m3-fabmenu-item-enter-active[data-v-83dfb288],.m3-fabmenu-item-leave-active[data-v-83dfb288]{transition:opacity .14s ease-out}.m3-fabmenu-item-enter-active[data-v-83dfb288]{transition-delay:var(--m3-fabmenu-delay,0s)}.m3-fabmenu-item-enter-from[data-v-83dfb288],.m3-fabmenu-item-leave-to[data-v-83dfb288]{opacity:0}.m3-fabmenu-item--from-end.m3-fabmenu-item-enter-from .m3-fabmenu-item-inner[data-v-83dfb288],.m3-fabmenu-item--from-end.m3-fabmenu-item-leave-to .m3-fabmenu-item-inner[data-v-83dfb288]{clip-path:inset(0 0 0 100%)}.m3-fabmenu-item--from-start.m3-fabmenu-item-enter-from .m3-fabmenu-item-inner[data-v-83dfb288],.m3-fabmenu-item--from-start.m3-fabmenu-item-leave-to .m3-fabmenu-item-inner[data-v-83dfb288]{clip-path:inset(0 100% 0 0)}@media (prefers-reduced-motion:reduce){.m3-fabmenu-item-inner[data-v-83dfb288],.m3-fabmenu-item-enter-active[data-v-83dfb288],.m3-fabmenu-item-leave-active[data-v-83dfb288]{transition:none}}.m3-file-enter-active[data-v-6b150427],.m3-file-leave-active[data-v-6b150427]{transition:all .2s}.m3-file-enter-from[data-v-6b150427],.m3-file-leave-to[data-v-6b150427]{opacity:0;transform:translateY(-8px)}.m3-lightbox-enter-active[data-v-5bc54765],.m3-lightbox-leave-active[data-v-5bc54765]{transition:opacity .2s}.m3-lightbox-enter-from[data-v-5bc54765],.m3-lightbox-leave-to[data-v-5bc54765]{opacity:0}.mli-expand-grid{grid-template-rows:1fr;display:grid}.mli-expand-body{min-height:0;padding-left:2rem;overflow:hidden}.mli-expand-enter-active{transition:grid-template-rows .3s cubic-bezier(.2,0,0,1)}.mli-expand-enter-active>.mli-expand-body{transition:opacity .2s cubic-bezier(.2,0,0,1) 80ms}.mli-expand-enter-from{grid-template-rows:0fr}.mli-expand-enter-from>.mli-expand-body{opacity:0}.mli-expand-leave-active{transition:grid-template-rows .25s cubic-bezier(.4,0,1,1)}.mli-expand-leave-active>.mli-expand-body{transition:opacity .12s cubic-bezier(.4,0,1,1)}.mli-expand-leave-to{grid-template-rows:0fr}.mli-expand-leave-to>.mli-expand-body{opacity:0}.m3-mac-modal-enter-active[data-v-91183baf],.m3-mac-modal-leave-active[data-v-91183baf]{transition:opacity .15s}.m3-mac-modal-enter-from[data-v-91183baf],.m3-mac-modal-leave-to[data-v-91183baf]{opacity:0}.m3-mac-modal-enter-active .mac-modal-box[data-v-91183baf],.m3-mac-modal-leave-active .mac-modal-box[data-v-91183baf]{transition:transform .15s}.m3-mac-modal-enter-from .mac-modal-box[data-v-91183baf],.m3-mac-modal-leave-to .mac-modal-box[data-v-91183baf]{transform:scale(.95)}.m3-ms-modal-enter-active[data-v-c4807cc9],.m3-ms-modal-leave-active[data-v-c4807cc9]{transition:opacity .15s}.m3-ms-modal-enter-from[data-v-c4807cc9],.m3-ms-modal-leave-to[data-v-c4807cc9]{opacity:0}.m3-ms-modal-enter-active .ms-modal-box[data-v-c4807cc9],.m3-ms-modal-leave-active .ms-modal-box[data-v-c4807cc9]{transition:transform .15s}.m3-ms-modal-enter-from .ms-modal-box[data-v-c4807cc9],.m3-ms-modal-leave-to .ms-modal-box[data-v-c4807cc9]{transform:scale(.95)}input[type=number][data-v-f6db08d0]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number][data-v-f6db08d0]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number][data-v-f6db08d0]{-moz-appearance:textfield}.nd-scrim[data-v-d72fc5e2]{transition:opacity .28s}.nd-enter-from .nd-scrim[data-v-d72fc5e2],.nd-leave-to .nd-scrim[data-v-d72fc5e2]{opacity:0}.nd-panel[data-v-d72fc5e2]{transition:transform .3s cubic-bezier(.2,0,0,1)}.nd-enter-from .nd-panel-left[data-v-d72fc5e2],.nd-leave-to .nd-panel-left[data-v-d72fc5e2]{transform:translate(-100%)}.nd-enter-from .nd-panel-right[data-v-d72fc5e2],.nd-leave-to .nd-panel-right[data-v-d72fc5e2]{transform:translate(100%)}.nd-enter-from .nd-panel-top[data-v-d72fc5e2],.nd-leave-to .nd-panel-top[data-v-d72fc5e2]{transform:translateY(-100%)}.nd-enter-from .nd-panel-bottom[data-v-d72fc5e2],.nd-leave-to .nd-panel-bottom[data-v-d72fc5e2]{transform:translateY(100%)}.nd-section-grid[data-v-d72fc5e2]{grid-template-rows:1fr;display:grid}.nd-section-body[data-v-d72fc5e2]{min-height:0;overflow:hidden}.nd-section-enter-active[data-v-d72fc5e2]{transition:grid-template-rows .35s cubic-bezier(.2,0,0,1)}.nd-section-enter-active>.nd-section-body[data-v-d72fc5e2]{transition:opacity .25s cubic-bezier(.2,0,0,1) 80ms}.nd-section-enter-from[data-v-d72fc5e2]{grid-template-rows:0fr}.nd-section-enter-from>.nd-section-body[data-v-d72fc5e2]{opacity:0}.nd-section-leave-active[data-v-d72fc5e2]{transition:grid-template-rows .28s cubic-bezier(.4,0,1,1)}.nd-section-leave-active>.nd-section-body[data-v-d72fc5e2]{transition:opacity .15s cubic-bezier(.4,0,1,1)}.nd-section-leave-to[data-v-d72fc5e2]{grid-template-rows:0fr}.nd-section-leave-to>.nd-section-body[data-v-d72fc5e2]{opacity:0}.nd-inline[data-v-d72fc5e2]{transition:width .3s cubic-bezier(.2,0,0,1);overflow:hidden}.nd-inline[data-v-d72fc5e2]>*{min-width:var(--nd-width,18rem)}.nd-inline.nd-collapsed[data-v-d72fc5e2]>*{min-width:0}.nd-toggle[data-v-d72fc5e2]{align-items:center;display:flex}.nd-toggle-inner[data-v-d72fc5e2]{flex-shrink:0;justify-content:center;align-items:center;width:72px;height:64px;display:flex}.nd-label[data-v-d72fc5e2]{transition:opacity .2s cubic-bezier(.2,0,0,1) 80ms}.nd-inline.nd-collapsed .nd-label[data-v-d72fc5e2],.nd-inline.nd-collapsed[data-v-d72fc5e2] .nd-label{opacity:0;transition:opacity .1s cubic-bezier(.2,0,0,1)}.nd-inline .nd-collapse-h[data-v-d72fc5e2]{max-height:80px;transition:max-height .3s cubic-bezier(.2,0,0,1)}.nd-inline.nd-collapsed .nd-collapse-h[data-v-d72fc5e2]{max-height:0}.nd-inline .nd-section-body[data-v-d72fc5e2]>*,.nd-inline[data-v-d72fc5e2] .nd-section-body>*{transition:padding .3s cubic-bezier(.2,0,0,1)}.nd-children-divider[data-v-d72fc5e2]{border-top:1px solid #0000;height:0;margin:0 .75rem;transition:border-color .1s,margin .1s}.nd-inline.nd-collapsed .nd-children-divider[data-v-d72fc5e2]{border-top-color:var(--color-outline-variant);margin:.25rem .75rem;transition:border-color .2s .3s,margin .2s .3s}@keyframes m3-wave-flow{0%{transform:translate(0)}to{transform:translate(-20px)}}@keyframes m3-progress-indeterminate{0%{left:-40%}to{left:100%}}@media (prefers-reduced-motion:reduce){.animate-\[m3-wave-flow_1\.2s_linear_infinite\],.animate-\[m3-wave-flow_0\.9s_linear_infinite\],.animate-\[m3-progress-indeterminate_1\.6s_ease-in-out_infinite\]{animation:none!important}}@keyframes m3-cpb-spin{0%{transform:rotate(-90deg)}to{transform:rotate(270deg)}}@keyframes m3-cpb-arc{0%{stroke-dasharray:5 246.3;stroke-dashoffset:0}50%{stroke-dasharray:176 75.3;stroke-dashoffset:-70px}to{stroke-dasharray:5 246.3;stroke-dashoffset:-251.3px}}.m3-radio-dot[data-v-e2542b8b]{transform-box:fill-box;transform-origin:50%;transition:transform .15s;transform:scale(0)}.m3-radio-dot.is-checked[data-v-e2542b8b]{transform:scale(1)}.m3-searchbar-docked-enter-active[data-v-5d1b5d5f],.m3-searchbar-docked-leave-active[data-v-5d1b5d5f]{transform-origin:top;transition:opacity .15s,transform .15s cubic-bezier(.2,0,0,1)}.m3-searchbar-docked-enter-from[data-v-5d1b5d5f],.m3-searchbar-docked-leave-to[data-v-5d1b5d5f]{opacity:0;transform:scaleY(.9)}.m3-searchbar-full-enter-active[data-v-5d1b5d5f],.m3-searchbar-full-leave-active[data-v-5d1b5d5f]{transition:opacity .15s}.m3-searchbar-full-enter-from[data-v-5d1b5d5f],.m3-searchbar-full-leave-to[data-v-5d1b5d5f]{opacity:0}.m3-select-modal-enter-active[data-v-a0b7d47d],.m3-select-modal-leave-active[data-v-a0b7d47d]{transition:opacity .15s}.m3-select-modal-enter-from[data-v-a0b7d47d],.m3-select-modal-leave-to[data-v-a0b7d47d]{opacity:0}.m3-select-modal-enter-active .select-modal-box[data-v-a0b7d47d],.m3-select-modal-leave-active .select-modal-box[data-v-a0b7d47d]{transition:transform .15s}.m3-select-modal-enter-from .select-modal-box[data-v-a0b7d47d],.m3-select-modal-leave-to .select-modal-box[data-v-a0b7d47d]{transform:scale(.95)}.ss-scrim[data-v-3565f3b0]{transition:opacity .28s}.ss-enter-from .ss-scrim[data-v-3565f3b0],.ss-leave-to .ss-scrim[data-v-3565f3b0]{opacity:0}.ss-panel[data-v-3565f3b0]{transition:transform .32s cubic-bezier(.2,0,0,1),opacity .24s}.ss-enter-from .ss-panel[data-v-3565f3b0]{opacity:0;transform:translate(40%)}.ss-leave-to .ss-panel[data-v-3565f3b0]{opacity:0;transform:translate(100%)!important}@keyframes skeleton-wave-move-32ecf05b{0%{transform:translate(-100%)}60%{transform:translate(100%)}to{transform:translate(100%)}}.skeleton-wave[data-v-32ecf05b]{position:relative;overflow:hidden}.skeleton-wave[data-v-32ecf05b]:after{content:"";background:linear-gradient(90deg, transparent 0%, var(--color-on-surface) 50%, transparent 100%);opacity:.06;animation:1.8s ease-in-out infinite skeleton-wave-move-32ecf05b;position:absolute;inset:0}.toggle-btn[data-v-ec1435bc]{transition:border-radius .25s,background-color .15s}.m3-spot-enter-active[data-v-d079c89c],.m3-spot-leave-active[data-v-d079c89c]{transition:opacity .15s}.m3-spot-enter-from[data-v-d079c89c],.m3-spot-leave-to[data-v-d079c89c]{opacity:0}.m3-spot-enter-active .spot-box[data-v-d079c89c],.m3-spot-leave-active .spot-box[data-v-d079c89c]{transition:transform .15s,opacity .15s}.m3-spot-enter-from .spot-box[data-v-d079c89c]{opacity:0;transform:scale(.96)translateY(-8px)}.m3-spot-leave-to .spot-box[data-v-d079c89c]{opacity:0;transform:scale(.98)}.m3-tp-modal-enter-active[data-v-0b7da936],.m3-tp-modal-leave-active[data-v-0b7da936]{transition:opacity .15s}.m3-tp-modal-enter-from[data-v-0b7da936],.m3-tp-modal-leave-to[data-v-0b7da936]{opacity:0}.m3-tp-modal-enter-active .tp-box[data-v-0b7da936],.m3-tp-modal-leave-active .tp-box[data-v-0b7da936]{transition:transform .15s}.m3-tp-modal-enter-from .tp-box[data-v-0b7da936],.m3-tp-modal-leave-to .tp-box[data-v-0b7da936]{transform:scale(.95)}.m3-tour-highlight{box-shadow:0 0 0 4px var(--color-primary);border-radius:8px;position:relative;z-index:201!important}.m3-tour-enter-active,.m3-tour-leave-active{transition:opacity .2s}.m3-tour-enter-from,.m3-tour-leave-to{opacity:0}.m3-markdown[data-v-23db2c2c] h1{font-size:var(--text-headline-large);line-height:var(--text-headline-large--line-height);color:var(--color-on-surface);margin:1em 0 .5em;font-weight:600}.m3-markdown[data-v-23db2c2c] h2{font-size:var(--text-headline-medium);line-height:var(--text-headline-medium--line-height);color:var(--color-on-surface);margin:1em 0 .5em;font-weight:600}.m3-markdown[data-v-23db2c2c] h3{font-size:var(--text-headline-small);line-height:var(--text-headline-small--line-height);color:var(--color-on-surface);margin:.75em 0 .25em;font-weight:600}.m3-markdown[data-v-23db2c2c] h4{font-size:var(--text-title-large);line-height:var(--text-title-large--line-height);color:var(--color-on-surface);margin:.75em 0 .25em;font-weight:600}.m3-markdown[data-v-23db2c2c] p{margin:.5em 0}.m3-markdown[data-v-23db2c2c] a{color:var(--color-primary);text-underline-offset:2px;text-decoration:underline}.m3-markdown[data-v-23db2c2c] a:hover{opacity:.8}.m3-markdown[data-v-23db2c2c] strong{color:var(--color-on-surface);font-weight:600}.m3-markdown[data-v-23db2c2c] em{font-style:italic}.m3-markdown[data-v-23db2c2c] ul{margin:.5em 0;padding-left:1.5em;list-style-type:disc}.m3-markdown[data-v-23db2c2c] ol{margin:.5em 0;padding-left:1.5em;list-style-type:decimal}.m3-markdown[data-v-23db2c2c] li{margin:.25em 0}.m3-markdown[data-v-23db2c2c] li::marker{color:var(--color-on-surface-variant)}.m3-markdown[data-v-23db2c2c] blockquote{border-left:3px solid var(--color-primary);background:var(--color-surface-container);color:var(--color-on-surface-variant);border-radius:0 8px 8px 0;margin:.75em 0;padding:.5em 1em}.m3-markdown[data-v-23db2c2c] code{background:var(--color-surface-container-highest);color:var(--color-primary);border-radius:4px;padding:.15em .4em;font-family:Roboto Mono,Fira Code,Consolas,monospace;font-size:.875em}.m3-markdown[data-v-23db2c2c] pre{background:var(--color-surface-container-highest);border:1px solid var(--color-outline-variant);border-radius:12px;margin:.75em 0;padding:1em;overflow-x:auto}.m3-markdown[data-v-23db2c2c] pre code{color:var(--color-on-surface);background:0 0;padding:0;font-size:.8125rem;line-height:1.6}.m3-markdown[data-v-23db2c2c] .hljs-keyword,.m3-markdown[data-v-23db2c2c] .hljs-selector-tag,.m3-markdown[data-v-23db2c2c] .hljs-built_in,.m3-markdown[data-v-23db2c2c] .hljs-tag .hljs-keyword{color:var(--color-primary)}.m3-markdown[data-v-23db2c2c] .hljs-string,.m3-markdown[data-v-23db2c2c] .hljs-regexp,.m3-markdown[data-v-23db2c2c] .hljs-template-variable{color:var(--color-tertiary)}.m3-markdown[data-v-23db2c2c] .hljs-number,.m3-markdown[data-v-23db2c2c] .hljs-literal{color:var(--color-error)}.m3-markdown[data-v-23db2c2c] .hljs-title.function_,.m3-markdown[data-v-23db2c2c] .hljs-title.function_>.hljs-keyword{color:var(--color-secondary);font-weight:500}.m3-markdown[data-v-23db2c2c] .hljs-type,.m3-markdown[data-v-23db2c2c] .hljs-title.class_{color:var(--color-primary);font-style:italic}.m3-markdown[data-v-23db2c2c] .hljs-comment,.m3-markdown[data-v-23db2c2c] .hljs-quote{color:var(--color-outline);font-style:italic}.m3-markdown[data-v-23db2c2c] .hljs-attr,.m3-markdown[data-v-23db2c2c] .hljs-attribute{color:var(--color-tertiary)}.m3-markdown[data-v-23db2c2c] .hljs-tag{color:var(--color-on-surface-variant)}.m3-markdown[data-v-23db2c2c] .hljs-name{color:var(--color-primary)}.m3-markdown[data-v-23db2c2c] .hljs-punctuation,.m3-markdown[data-v-23db2c2c] .hljs-operator,.m3-markdown[data-v-23db2c2c] .hljs-meta,.m3-markdown[data-v-23db2c2c] .hljs-meta .hljs-keyword{color:var(--color-on-surface-variant)}.m3-markdown[data-v-23db2c2c] .hljs-variable,.m3-markdown[data-v-23db2c2c] .hljs-property,.m3-markdown[data-v-23db2c2c] .hljs-symbol,.m3-markdown[data-v-23db2c2c] .hljs-params{color:var(--color-on-surface)}.m3-markdown[data-v-23db2c2c] .m3-code-block{position:relative}.m3-markdown[data-v-23db2c2c] .m3-code-copy{background:var(--color-surface-container);width:28px;height:28px;color:var(--color-on-surface-variant);cursor:pointer;opacity:0;z-index:1;border:none;border-radius:6px;justify-content:center;align-items:center;transition:opacity .15s;display:flex;position:absolute;top:8px;right:8px}.m3-markdown[data-v-23db2c2c] .m3-code-block:hover .m3-code-copy{opacity:1}.m3-markdown[data-v-23db2c2c] .m3-code-copy:hover{background:var(--color-surface-container-high);color:var(--color-on-surface)}.m3-markdown[data-v-23db2c2c] .m3-code-line{display:block}.m3-markdown[data-v-23db2c2c] .m3-line-hl{background:color-mix(in srgb, var(--color-primary) 8%, transparent);border-left:2px solid color-mix(in srgb, var(--color-primary) 40%, transparent);margin:0 -1em;padding:0 1em 0 calc(1em - 2px)}.m3-markdown[data-v-23db2c2c] hr{border:none;border-top:1px solid var(--color-outline-variant);margin:1.5em 0}.m3-markdown[data-v-23db2c2c] table{border-collapse:collapse;width:100%;margin:.75em 0}.m3-markdown[data-v-23db2c2c] th{background:var(--color-surface-container);text-align:left;border-bottom:2px solid var(--color-outline-variant);font-weight:600;font-size:var(--text-label-large);color:var(--color-on-surface);padding:.5em .75em}.m3-markdown[data-v-23db2c2c] td{border-bottom:1px solid var(--color-outline-variant);padding:.5em .75em}.m3-markdown[data-v-23db2c2c] img{border-radius:12px;max-width:100%;height:auto;margin:.5em 0}.rte-content[data-v-e6829e5c] .tiptap{min-height:inherit;outline:none}.rte-content[data-v-e6829e5c] .tiptap p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;color:var(--color-on-surface-variant);opacity:.5;pointer-events:none;height:0}.rte-content[data-v-e6829e5c] h1{font-size:var(--text-headline-large);line-height:var(--text-headline-large--line-height);margin:.75em 0 .25em;font-weight:600}.rte-content[data-v-e6829e5c] h2{font-size:var(--text-headline-medium);line-height:var(--text-headline-medium--line-height);margin:.75em 0 .25em;font-weight:600}.rte-content[data-v-e6829e5c] h3{font-size:var(--text-headline-small);line-height:var(--text-headline-small--line-height);margin:.75em 0 .25em;font-weight:600}.rte-content[data-v-e6829e5c] p{margin:.5em 0}.rte-content[data-v-e6829e5c] ul{margin:.5em 0;padding-left:1.5em;list-style-type:disc}.rte-content[data-v-e6829e5c] ol{margin:.5em 0;padding-left:1.5em;list-style-type:decimal}.rte-content[data-v-e6829e5c] blockquote{border-left:3px solid var(--color-primary);color:var(--color-on-surface-variant);margin:.5em 0;padding-left:1em}.rte-content[data-v-e6829e5c] code{background:var(--color-surface-container-highest);border-radius:4px;padding:.15em .4em;font-size:.875em}.rte-content[data-v-e6829e5c] pre{background:var(--color-surface-container-highest);border-radius:8px;margin:.5em 0;padding:1em;overflow-x:auto}.rte-content[data-v-e6829e5c] pre code{background:0 0;padding:0}.rte-content[data-v-e6829e5c] a{color:var(--color-primary);text-decoration:underline}.rte-content[data-v-e6829e5c] mark{background:var(--color-tertiary-container);color:var(--color-on-tertiary-container);border-radius:2px;padding:.1em .2em}.rte-content[data-v-e6829e5c] img{border-radius:8px;max-width:100%;height:auto;margin:.5em 0}
|
|
1
|
+
.code-editor-container[data-v-8986f1f4]{flex-direction:column;flex:auto;min-height:0;display:flex}.code-editor-container[data-v-8986f1f4] .cm-editor{flex:1;min-height:0;font-family:Roboto Mono,Fira Code,Consolas,monospace;font-size:.8125rem;line-height:1.6}.code-editor-container[data-v-8986f1f4] .cm-editor.cm-focused{outline:none}.code-editor-container[data-v-8986f1f4] .cm-scroller{min-height:0;flex:1!important;align-items:stretch!important}.code-editor-container[data-v-8986f1f4] .cm-content{padding:12px 0}.code-editor-container[data-v-8986f1f4] .cm-line{padding:0 16px}.code-editor-container[data-v-8986f1f4] .cm-gutters{background:var(--color-surface-container);border-right:1px solid var(--color-outline-variant);color:var(--color-outline);padding:0 4px;font-size:.75rem;align-self:stretch!important;height:auto!important}.code-editor-container[data-v-8986f1f4] .cm-activeLineGutter{background:var(--color-surface-container-high);color:var(--color-on-surface-variant)}.code-editor-container[data-v-8986f1f4] .cm-activeLine{background:var(--color-surface-container-lowest)}.code-editor-container[data-v-8986f1f4] .cm-selectionBackground{background:var(--color-primary-container)!important}.code-editor-container[data-v-8986f1f4] .cm-cursor{border-left-color:var(--color-primary);border-left-width:2px}.code-editor-container[data-v-8986f1f4] .cm-matchingBracket{background:var(--color-tertiary-container);color:var(--color-on-tertiary-container);border-radius:2px}.code-editor-container[data-v-8986f1f4] .cm-foldGutter span{color:var(--color-on-surface-variant)}@keyframes m3-wavy-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes m3-wavy-travel{0%{stroke-dashoffset:0}to{stroke-dashoffset:calc(var(--m3-wave-len) * -1px)}}@media (prefers-reduced-motion:reduce){.animate-\[m3-wavy-spin_2\.8s_linear_infinite\]{animation:2.8s linear infinite m3-wavy-spin}.animate-\[m3-wavy-travel_2s_linear_infinite\]{animation:none!important}}.m3-dialog-enter-active[data-v-be5c35b4],.m3-dialog-leave-active[data-v-be5c35b4]{transition:opacity .15s}.m3-dialog-enter-from[data-v-be5c35b4],.m3-dialog-leave-to[data-v-be5c35b4]{opacity:0}.m3-dialog-enter-active .dialog-box[data-v-be5c35b4],.m3-dialog-leave-active .dialog-box[data-v-be5c35b4]{transition:transform .15s}.m3-dialog-enter-from .dialog-box[data-v-be5c35b4],.m3-dialog-leave-to .dialog-box[data-v-be5c35b4]{transform:scale(.95)}.m3-dialog-fs-enter-active[data-v-be5c35b4],.m3-dialog-fs-leave-active[data-v-be5c35b4]{transition:transform .25s cubic-bezier(.2,0,0,1),opacity .15s}.m3-dialog-fs-enter-from[data-v-be5c35b4],.m3-dialog-fs-leave-to[data-v-be5c35b4]{opacity:0;transform:translateY(100%)}.toast-row[data-v-b7a29bcc]{grid-template-rows:1fr;padding-bottom:8px;display:grid}.toast-row>.toast-inner[data-v-b7a29bcc]{min-height:0}.m3-toast-bot-enter-active[data-v-b7a29bcc]{transition:grid-template-rows .22s cubic-bezier(.2,0,0,1),padding-bottom .22s cubic-bezier(.2,0,0,1)}.m3-toast-bot-enter-active>.toast-inner[data-v-b7a29bcc]{transition:opacity .18s,transform .22s cubic-bezier(.2,0,0,1)}.m3-toast-bot-enter-from[data-v-b7a29bcc]{grid-template-rows:0fr;padding-bottom:0}.m3-toast-bot-enter-from>.toast-inner[data-v-b7a29bcc]{opacity:0;transform:translateY(20px)scale(.94)}.m3-toast-bot-leave-active[data-v-b7a29bcc]{transition:grid-template-rows .3s cubic-bezier(.2,0,0,1),padding-bottom .3s cubic-bezier(.2,0,0,1)}.m3-toast-bot-leave-active>.toast-inner[data-v-b7a29bcc]{transition:opacity .18s,transform .18s}.m3-toast-bot-leave-to[data-v-b7a29bcc]{grid-template-rows:0fr;padding-bottom:0}.m3-toast-bot-leave-to>.toast-inner[data-v-b7a29bcc]{opacity:0;transform:scale(.92)}.m3-toast-bot-leave-active>.toast-count-badge[data-v-b7a29bcc]{transition:opacity .15s,transform .15s}.m3-toast-bot-leave-to>.toast-count-badge[data-v-b7a29bcc]{opacity:0;transform:scale(.5)}.m3-toast-top-enter-active[data-v-b7a29bcc]{transition:grid-template-rows .22s cubic-bezier(.2,0,0,1),padding-bottom .22s cubic-bezier(.2,0,0,1)}.m3-toast-top-enter-active>.toast-inner[data-v-b7a29bcc]{transition:opacity .18s,transform .22s cubic-bezier(.2,0,0,1)}.m3-toast-top-enter-from[data-v-b7a29bcc]{grid-template-rows:0fr;padding-bottom:0}.m3-toast-top-enter-from>.toast-inner[data-v-b7a29bcc]{opacity:0;transform:translateY(-20px)scale(.94)}.m3-toast-top-leave-active[data-v-b7a29bcc]{transition:grid-template-rows .3s cubic-bezier(.2,0,0,1),padding-bottom .3s cubic-bezier(.2,0,0,1)}.m3-toast-top-leave-active>.toast-inner[data-v-b7a29bcc]{transition:opacity .18s,transform .18s}.m3-toast-top-leave-to[data-v-b7a29bcc]{grid-template-rows:0fr;padding-bottom:0}.m3-toast-top-leave-to>.toast-inner[data-v-b7a29bcc]{opacity:0;transform:scale(.92)}.m3-toast-top-leave-active>.toast-count-badge[data-v-b7a29bcc]{transition:opacity .15s,transform .15s}.m3-toast-top-leave-to>.toast-count-badge[data-v-b7a29bcc]{opacity:0;transform:scale(.5)}.m3-badge-enter-active[data-v-b7a29bcc]{transition:opacity .2s,transform .2s cubic-bezier(.34,1.56,.64,1)}.m3-badge-leave-active[data-v-b7a29bcc]{transition:opacity .15s,transform .15s}.m3-badge-enter-from[data-v-b7a29bcc],.m3-badge-leave-to[data-v-b7a29bcc]{opacity:0;transform:scale(.5)}.m3-count-enter-active[data-v-b7a29bcc]{transition:opacity .12s,transform .12s}.m3-count-leave-active[data-v-b7a29bcc]{transition:opacity 80ms,transform 80ms}.m3-count-enter-from[data-v-b7a29bcc]{opacity:0;transform:scale(1.5)translateY(-3px)}.m3-count-leave-to[data-v-b7a29bcc]{opacity:0;transform:scale(.6)translateY(2px)}@keyframes m3-toast-progress-b7a29bcc{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.notif-row[data-v-2338355e]{grid-template-rows:1fr;padding-bottom:6px;display:grid}.notif-row>.notif-inner[data-v-2338355e]{min-height:0}.m3-notif-bot-enter-active[data-v-2338355e]{transition:grid-template-rows .2s,padding-bottom .2s}.m3-notif-bot-enter-active>.notif-inner[data-v-2338355e]{transition:opacity .15s,transform .2s;overflow:hidden}.m3-notif-bot-enter-from[data-v-2338355e]{grid-template-rows:0fr;padding-bottom:0}.m3-notif-bot-enter-from>.notif-inner[data-v-2338355e]{opacity:0;transform:translateY(12px)scale(.95)}.m3-notif-bot-leave-active[data-v-2338355e]{transition:grid-template-rows .25s,padding-bottom .25s}.m3-notif-bot-leave-active>.notif-inner[data-v-2338355e]{transition:opacity .15s,transform .15s;overflow:hidden}.m3-notif-bot-leave-to[data-v-2338355e]{grid-template-rows:0fr;padding-bottom:0}.m3-notif-bot-leave-to>.notif-inner[data-v-2338355e]{opacity:0;transform:scale(.93)}.m3-notif-bot-leave-active>.notif-count-badge[data-v-2338355e]{transition:opacity .15s,transform .15s}.m3-notif-bot-leave-to>.notif-count-badge[data-v-2338355e]{opacity:0;transform:scale(.5)}.m3-notif-top-enter-active[data-v-2338355e]{transition:grid-template-rows .2s,padding-bottom .2s}.m3-notif-top-enter-active>.notif-inner[data-v-2338355e]{transition:opacity .15s,transform .2s;overflow:hidden}.m3-notif-top-enter-from[data-v-2338355e]{grid-template-rows:0fr;padding-bottom:0}.m3-notif-top-enter-from>.notif-inner[data-v-2338355e]{opacity:0;transform:translateY(-12px)scale(.95)}.m3-notif-top-leave-active[data-v-2338355e]{transition:grid-template-rows .25s,padding-bottom .25s}.m3-notif-top-leave-active>.notif-inner[data-v-2338355e]{transition:opacity .15s,transform .15s;overflow:hidden}.m3-notif-top-leave-to[data-v-2338355e]{grid-template-rows:0fr;padding-bottom:0}.m3-notif-top-leave-to>.notif-inner[data-v-2338355e]{opacity:0;transform:scale(.93)}.m3-notif-top-leave-active>.notif-count-badge[data-v-2338355e]{transition:opacity .15s,transform .15s}.m3-notif-top-leave-to>.notif-count-badge[data-v-2338355e]{opacity:0;transform:scale(.5)}.m3-badge-enter-active[data-v-2338355e]{transition:opacity .2s,transform .2s cubic-bezier(.34,1.56,.64,1)}.m3-badge-leave-active[data-v-2338355e]{transition:opacity .15s,transform .15s}.m3-badge-enter-from[data-v-2338355e],.m3-badge-leave-to[data-v-2338355e]{opacity:0;transform:scale(.5)}.m3-count-enter-active[data-v-2338355e]{transition:opacity .12s,transform .12s}.m3-count-leave-active[data-v-2338355e]{transition:opacity 80ms,transform 80ms}.m3-count-enter-from[data-v-2338355e]{opacity:0;transform:scale(1.5)translateY(-3px)}.m3-count-leave-to[data-v-2338355e]{opacity:0;transform:scale(.6)translateY(2px)}.m3-ac-modal-enter-active[data-v-4ced4a96],.m3-ac-modal-leave-active[data-v-4ced4a96]{transition:opacity .15s}.m3-ac-modal-enter-from[data-v-4ced4a96],.m3-ac-modal-leave-to[data-v-4ced4a96]{opacity:0}.m3-ac-modal-enter-active .ac-modal-box[data-v-4ced4a96],.m3-ac-modal-leave-active .ac-modal-box[data-v-4ced4a96]{transition:transform .15s}.m3-ac-modal-enter-from .ac-modal-box[data-v-4ced4a96],.m3-ac-modal-leave-to .ac-modal-box[data-v-4ced4a96]{transform:scale(.95)}.m3-bar-btn{width:46px;height:100%;color:var(--color-on-surface-variant);cursor:pointer;justify-content:center;align-items:center;transition:background-color .1s,color .1s;display:inline-flex}.m3-bar-btn:hover{background-color:var(--color-surface-container-highest);color:var(--color-on-surface)}.m3-bar-btn-close:hover{background-color:var(--color-error);color:var(--color-on-error)}.bs-scrim[data-v-dbf8f03b]{transition:opacity .3s}.bs-enter-from .bs-scrim[data-v-dbf8f03b],.bs-leave-to .bs-scrim[data-v-dbf8f03b]{opacity:0}.bs-panel[data-v-dbf8f03b]{transition:transform .32s cubic-bezier(.2,0,0,1),opacity .24s}.bs-enter-from .bs-panel[data-v-dbf8f03b]{opacity:0;transform:translateY(40%)}.bs-leave-to .bs-panel[data-v-dbf8f03b]{opacity:0;transform:translateY(100%)!important}.carousel-track[data-v-f1acc440]{scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none}.carousel-track[data-v-f1acc440]::-webkit-scrollbar{display:none}.snap-center[data-v-f1acc440]>*{scroll-snap-align:center}.snap-start[data-v-f1acc440]>*{scroll-snap-align:start}.hue-slider[data-v-8750ec5e]{background:linear-gradient(90deg,red 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}.hue-slider[data-v-8750ec5e]::-webkit-slider-thumb{-webkit-appearance:none;cursor:pointer;background:#fff;border-radius:50%;width:16px;height:16px;box-shadow:0 1px 3px #0006}.hue-slider[data-v-8750ec5e]::-moz-range-thumb{cursor:pointer;background:#fff;border:none;border-radius:50%;width:16px;height:16px;box-shadow:0 1px 3px #0006}.hue-slider[data-v-2196fbcf]{background:linear-gradient(90deg,red 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}.hue-slider[data-v-2196fbcf]::-webkit-slider-thumb{-webkit-appearance:none;cursor:pointer;background:#fff;border-radius:50%;width:16px;height:16px;box-shadow:0 1px 3px #0006}.hue-slider[data-v-2196fbcf]::-moz-range-thumb{cursor:pointer;background:#fff;border:none;border-radius:50%;width:16px;height:16px;box-shadow:0 1px 3px #0006}.m3-cp-modal-enter-active[data-v-2196fbcf],.m3-cp-modal-leave-active[data-v-2196fbcf]{transition:opacity .15s}.m3-cp-modal-enter-from[data-v-2196fbcf],.m3-cp-modal-leave-to[data-v-2196fbcf]{opacity:0}.m3-cp-modal-enter-active .cp-box[data-v-2196fbcf],.m3-cp-modal-leave-active .cp-box[data-v-2196fbcf]{transition:transform .15s}.m3-cp-modal-enter-from .cp-box[data-v-2196fbcf],.m3-cp-modal-leave-to .cp-box[data-v-2196fbcf]{transform:scale(.95)}.m3-cmd-enter-active[data-v-ec3853a1],.m3-cmd-leave-active[data-v-ec3853a1]{transition:opacity .15s}.m3-cmd-enter-from[data-v-ec3853a1],.m3-cmd-leave-to[data-v-ec3853a1]{opacity:0}.m3-cmd-enter-active .cmd-box[data-v-ec3853a1],.m3-cmd-leave-active .cmd-box[data-v-ec3853a1]{transition:transform .15s}.m3-cmd-enter-from .cmd-box[data-v-ec3853a1],.m3-cmd-leave-to .cmd-box[data-v-ec3853a1]{transform:scale(.95)translateY(-10px)}.dt-expand-grid[data-v-cff43e1f]{grid-template-rows:0fr;transition:grid-template-rows .25s cubic-bezier(.2,0,0,1);display:grid}.dt-expand-grid.dt-expand-open[data-v-cff43e1f]{grid-template-rows:1fr}.dt-expand-body[data-v-cff43e1f]{min-height:0;overflow:hidden}.m3-dp-modal-enter-active[data-v-9f96e1d2],.m3-dp-modal-leave-active[data-v-9f96e1d2]{transition:opacity .15s}.m3-dp-modal-enter-from[data-v-9f96e1d2],.m3-dp-modal-leave-to[data-v-9f96e1d2]{opacity:0}.m3-dp-modal-enter-active .dp-box[data-v-9f96e1d2],.m3-dp-modal-leave-active .dp-box[data-v-9f96e1d2]{transition:transform .15s}.m3-dp-modal-enter-from .dp-box[data-v-9f96e1d2],.m3-dp-modal-leave-to .dp-box[data-v-9f96e1d2]{transform:scale(.95)}.m3-drp-modal-enter-active[data-v-ee421a1f],.m3-drp-modal-leave-active[data-v-ee421a1f]{transition:opacity .15s}.m3-drp-modal-enter-from[data-v-ee421a1f],.m3-drp-modal-leave-to[data-v-ee421a1f]{opacity:0}.m3-drp-modal-enter-active .drp-box[data-v-ee421a1f],.m3-drp-modal-leave-active .drp-box[data-v-ee421a1f]{transition:transform .15s}.m3-drp-modal-enter-from .drp-box[data-v-ee421a1f],.m3-drp-modal-leave-to .drp-box[data-v-ee421a1f]{transform:scale(.95)}.expand-grid[data-v-31731809]{grid-template-rows:0fr;transition:grid-template-rows .3s ease-in-out;display:grid}.expand-grid.expand-open[data-v-31731809]{grid-template-rows:1fr}.expand-body[data-v-31731809]{min-height:0;overflow:hidden}.m3-fab-content-scale-enter-active[data-v-19e529de]{transition:opacity .2s,transform .2s cubic-bezier(.2,0,0,1)}.m3-fab-content-scale-leave-active[data-v-19e529de]{transition:opacity .15s,transform .15s}.m3-fab-content-scale-enter-from[data-v-19e529de]{opacity:0;transform:scale(.85)}.m3-fab-content-scale-leave-to[data-v-19e529de]{opacity:0;transform:scale(.9)}.m3-fab-content-fade-enter-active[data-v-19e529de],.m3-fab-content-fade-leave-active[data-v-19e529de]{transition:opacity .22s}.m3-fab-content-fade-enter-from[data-v-19e529de],.m3-fab-content-fade-leave-to[data-v-19e529de]{opacity:0}.m3-fab-scrim-enter-active[data-v-19e529de],.m3-fab-scrim-leave-active[data-v-19e529de]{transition:opacity .2s}.m3-fab-scrim-enter-from[data-v-19e529de],.m3-fab-scrim-leave-to[data-v-19e529de]{opacity:0}.m3-fabmenu-item-inner[data-v-741f7a8b]{clip-path:inset(0 0 0 0%);transition:clip-path .22s cubic-bezier(.3,1.2,.4,1)}.m3-fabmenu-item-enter-active .m3-fabmenu-item-inner[data-v-741f7a8b]{transition-delay:var(--m3-fabmenu-delay,0s)}.m3-fabmenu-item-enter-active[data-v-741f7a8b],.m3-fabmenu-item-leave-active[data-v-741f7a8b]{transition:opacity .14s ease-out}.m3-fabmenu-item-enter-active[data-v-741f7a8b]{transition-delay:var(--m3-fabmenu-delay,0s)}.m3-fabmenu-item-enter-from[data-v-741f7a8b],.m3-fabmenu-item-leave-to[data-v-741f7a8b]{opacity:0}.m3-fabmenu-item--from-end.m3-fabmenu-item-enter-from .m3-fabmenu-item-inner[data-v-741f7a8b],.m3-fabmenu-item--from-end.m3-fabmenu-item-leave-to .m3-fabmenu-item-inner[data-v-741f7a8b]{clip-path:inset(0 0 0 100%)}.m3-fabmenu-item--from-start.m3-fabmenu-item-enter-from .m3-fabmenu-item-inner[data-v-741f7a8b],.m3-fabmenu-item--from-start.m3-fabmenu-item-leave-to .m3-fabmenu-item-inner[data-v-741f7a8b]{clip-path:inset(0 100% 0 0)}@media (prefers-reduced-motion:reduce){.m3-fabmenu-item-inner[data-v-741f7a8b],.m3-fabmenu-item-enter-active[data-v-741f7a8b],.m3-fabmenu-item-leave-active[data-v-741f7a8b]{transition:none}}.m3-file-enter-active[data-v-6b150427],.m3-file-leave-active[data-v-6b150427]{transition:all .2s}.m3-file-enter-from[data-v-6b150427],.m3-file-leave-to[data-v-6b150427]{opacity:0;transform:translateY(-8px)}.m3-lightbox-enter-active[data-v-5bc54765],.m3-lightbox-leave-active[data-v-5bc54765]{transition:opacity .2s}.m3-lightbox-enter-from[data-v-5bc54765],.m3-lightbox-leave-to[data-v-5bc54765]{opacity:0}.mli-expand-grid{grid-template-rows:1fr;display:grid}.mli-expand-body{min-height:0;padding-left:2rem;overflow:hidden}.mli-expand-enter-active{transition:grid-template-rows .3s cubic-bezier(.2,0,0,1)}.mli-expand-enter-active>.mli-expand-body{transition:opacity .2s cubic-bezier(.2,0,0,1) 80ms}.mli-expand-enter-from{grid-template-rows:0fr}.mli-expand-enter-from>.mli-expand-body{opacity:0}.mli-expand-leave-active{transition:grid-template-rows .25s cubic-bezier(.4,0,1,1)}.mli-expand-leave-active>.mli-expand-body{transition:opacity .12s cubic-bezier(.4,0,1,1)}.mli-expand-leave-to{grid-template-rows:0fr}.mli-expand-leave-to>.mli-expand-body{opacity:0}.m3-mac-modal-enter-active[data-v-4af80422],.m3-mac-modal-leave-active[data-v-4af80422]{transition:opacity .15s}.m3-mac-modal-enter-from[data-v-4af80422],.m3-mac-modal-leave-to[data-v-4af80422]{opacity:0}.m3-mac-modal-enter-active .mac-modal-box[data-v-4af80422],.m3-mac-modal-leave-active .mac-modal-box[data-v-4af80422]{transition:transform .15s}.m3-mac-modal-enter-from .mac-modal-box[data-v-4af80422],.m3-mac-modal-leave-to .mac-modal-box[data-v-4af80422]{transform:scale(.95)}.m3-ms-modal-enter-active[data-v-a6ed3ad3],.m3-ms-modal-leave-active[data-v-a6ed3ad3]{transition:opacity .15s}.m3-ms-modal-enter-from[data-v-a6ed3ad3],.m3-ms-modal-leave-to[data-v-a6ed3ad3]{opacity:0}.m3-ms-modal-enter-active .ms-modal-box[data-v-a6ed3ad3],.m3-ms-modal-leave-active .ms-modal-box[data-v-a6ed3ad3]{transition:transform .15s}.m3-ms-modal-enter-from .ms-modal-box[data-v-a6ed3ad3],.m3-ms-modal-leave-to .ms-modal-box[data-v-a6ed3ad3]{transform:scale(.95)}input[type=number][data-v-aed4c058]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number][data-v-aed4c058]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number][data-v-aed4c058]{-moz-appearance:textfield}.nd-scrim[data-v-f8d50ad4]{transition:opacity .28s}.nd-enter-from .nd-scrim[data-v-f8d50ad4],.nd-leave-to .nd-scrim[data-v-f8d50ad4]{opacity:0}.nd-panel[data-v-f8d50ad4]{transition:transform .3s cubic-bezier(.2,0,0,1)}.nd-enter-from .nd-panel-left[data-v-f8d50ad4],.nd-leave-to .nd-panel-left[data-v-f8d50ad4]{transform:translate(-100%)}.nd-enter-from .nd-panel-right[data-v-f8d50ad4],.nd-leave-to .nd-panel-right[data-v-f8d50ad4]{transform:translate(100%)}.nd-enter-from .nd-panel-top[data-v-f8d50ad4],.nd-leave-to .nd-panel-top[data-v-f8d50ad4]{transform:translateY(-100%)}.nd-enter-from .nd-panel-bottom[data-v-f8d50ad4],.nd-leave-to .nd-panel-bottom[data-v-f8d50ad4]{transform:translateY(100%)}.nd-section-grid[data-v-f8d50ad4]{grid-template-rows:1fr;display:grid}.nd-section-body[data-v-f8d50ad4]{min-height:0;overflow:hidden}.nd-section-enter-active[data-v-f8d50ad4]{transition:grid-template-rows .35s cubic-bezier(.2,0,0,1)}.nd-section-enter-active>.nd-section-body[data-v-f8d50ad4]{transition:opacity .25s cubic-bezier(.2,0,0,1) 80ms}.nd-section-enter-from[data-v-f8d50ad4]{grid-template-rows:0fr}.nd-section-enter-from>.nd-section-body[data-v-f8d50ad4]{opacity:0}.nd-section-leave-active[data-v-f8d50ad4]{transition:grid-template-rows .28s cubic-bezier(.4,0,1,1)}.nd-section-leave-active>.nd-section-body[data-v-f8d50ad4]{transition:opacity .15s cubic-bezier(.4,0,1,1)}.nd-section-leave-to[data-v-f8d50ad4]{grid-template-rows:0fr}.nd-section-leave-to>.nd-section-body[data-v-f8d50ad4]{opacity:0}.nd-inline[data-v-f8d50ad4]{transition:width .3s cubic-bezier(.2,0,0,1);overflow:hidden}.nd-inline[data-v-f8d50ad4]>*{min-width:var(--nd-width,22.5rem)}.nd-inline.nd-collapsed[data-v-f8d50ad4]>*{min-width:0}.nd-toggle[data-v-f8d50ad4]{align-items:center;display:flex}.nd-toggle-inner[data-v-f8d50ad4]{flex-shrink:0;justify-content:center;align-items:center;width:72px;height:64px;display:flex}.nd-label[data-v-f8d50ad4]{transition:opacity .2s cubic-bezier(.2,0,0,1) 80ms}.nd-inline.nd-collapsed .nd-label[data-v-f8d50ad4],.nd-inline.nd-collapsed[data-v-f8d50ad4] .nd-label{opacity:0;transition:opacity .1s cubic-bezier(.2,0,0,1)}.nd-inline .nd-collapse-h[data-v-f8d50ad4]{max-height:80px;transition:max-height .3s cubic-bezier(.2,0,0,1)}.nd-inline.nd-collapsed .nd-collapse-h[data-v-f8d50ad4]{max-height:0}.nd-inline .nd-section-body[data-v-f8d50ad4]>*,.nd-inline[data-v-f8d50ad4] .nd-section-body>*{transition:padding .3s cubic-bezier(.2,0,0,1)}.nd-children-divider[data-v-f8d50ad4]{border-top:1px solid #0000;height:0;margin:0 .75rem;transition:border-color .1s,margin .1s}.nd-inline.nd-collapsed .nd-children-divider[data-v-f8d50ad4]{border-top-color:var(--color-outline-variant);margin:.25rem .75rem;transition:border-color .2s .3s,margin .2s .3s}.wnr-scrim[data-v-8aefbe0e]{transition:opacity .22s}@keyframes m3-wave-flow{0%{transform:translate(0)}to{transform:translate(-20px)}}@keyframes m3-progress-indeterminate{0%{left:-40%}to{left:100%}}@media (prefers-reduced-motion:reduce){.animate-\[m3-wave-flow_1\.2s_linear_infinite\],.animate-\[m3-wave-flow_0\.9s_linear_infinite\],.animate-\[m3-progress-indeterminate_1\.6s_ease-in-out_infinite\]{animation:none!important}}@keyframes m3-cpb-spin{0%{transform:rotate(-90deg)}to{transform:rotate(270deg)}}@keyframes m3-cpb-arc{0%{stroke-dasharray:5 246.3;stroke-dashoffset:0}50%{stroke-dasharray:176 75.3;stroke-dashoffset:-70px}to{stroke-dasharray:5 246.3;stroke-dashoffset:-251.3px}}.m3-radio-dot[data-v-a32b03cb]{transform-box:fill-box;transform-origin:50%;transition:transform .15s;transform:scale(0)}.m3-radio-dot.is-checked[data-v-a32b03cb]{transform:scale(1)}.m3-searchbar-docked-enter-active[data-v-1d2fa43e],.m3-searchbar-docked-leave-active[data-v-1d2fa43e]{transform-origin:top;transition:opacity .15s,transform .15s cubic-bezier(.2,0,0,1)}.m3-searchbar-docked-enter-from[data-v-1d2fa43e],.m3-searchbar-docked-leave-to[data-v-1d2fa43e]{opacity:0;transform:scaleY(.9)}.m3-searchbar-full-enter-active[data-v-1d2fa43e],.m3-searchbar-full-leave-active[data-v-1d2fa43e]{transition:opacity .15s}.m3-searchbar-full-enter-from[data-v-1d2fa43e],.m3-searchbar-full-leave-to[data-v-1d2fa43e]{opacity:0}.m3-select-modal-enter-active[data-v-80614b3b],.m3-select-modal-leave-active[data-v-80614b3b]{transition:opacity .15s}.m3-select-modal-enter-from[data-v-80614b3b],.m3-select-modal-leave-to[data-v-80614b3b]{opacity:0}.m3-select-modal-enter-active .select-modal-box[data-v-80614b3b],.m3-select-modal-leave-active .select-modal-box[data-v-80614b3b]{transition:transform .15s}.m3-select-modal-enter-from .select-modal-box[data-v-80614b3b],.m3-select-modal-leave-to .select-modal-box[data-v-80614b3b]{transform:scale(.95)}.ss-scrim[data-v-89613276]{transition:opacity .28s}.ss-enter-from .ss-scrim[data-v-89613276],.ss-leave-to .ss-scrim[data-v-89613276]{opacity:0}.ss-panel[data-v-89613276]{transition:transform .32s cubic-bezier(.2,0,0,1),opacity .24s}.ss-enter-from .ss-panel[data-v-89613276]{opacity:0;transform:translate(40%)}.ss-leave-to .ss-panel[data-v-89613276]{opacity:0;transform:translate(100%)!important}@keyframes skeleton-wave-move-32ecf05b{0%{transform:translate(-100%)}60%{transform:translate(100%)}to{transform:translate(100%)}}.skeleton-wave[data-v-32ecf05b]{position:relative;overflow:hidden}.skeleton-wave[data-v-32ecf05b]:after{content:"";background:linear-gradient(90deg, transparent 0%, var(--color-on-surface) 50%, transparent 100%);opacity:.06;animation:1.8s ease-in-out infinite skeleton-wave-move-32ecf05b;position:absolute;inset:0}.toggle-btn[data-v-9a60cc8b]{transition:border-radius .25s,background-color .15s}.m3-spot-enter-active[data-v-eaaf00aa],.m3-spot-leave-active[data-v-eaaf00aa]{transition:opacity .15s}.m3-spot-enter-from[data-v-eaaf00aa],.m3-spot-leave-to[data-v-eaaf00aa]{opacity:0}.m3-spot-enter-active .spot-box[data-v-eaaf00aa],.m3-spot-leave-active .spot-box[data-v-eaaf00aa]{transition:transform .15s,opacity .15s}.m3-spot-enter-from .spot-box[data-v-eaaf00aa]{opacity:0;transform:scale(.96)translateY(-8px)}.m3-spot-leave-to .spot-box[data-v-eaaf00aa]{opacity:0;transform:scale(.98)}.m3-tp-modal-enter-active[data-v-5588b0a4],.m3-tp-modal-leave-active[data-v-5588b0a4]{transition:opacity .15s}.m3-tp-modal-enter-from[data-v-5588b0a4],.m3-tp-modal-leave-to[data-v-5588b0a4]{opacity:0}.m3-tp-modal-enter-active .tp-box[data-v-5588b0a4],.m3-tp-modal-leave-active .tp-box[data-v-5588b0a4]{transition:transform .15s}.m3-tp-modal-enter-from .tp-box[data-v-5588b0a4],.m3-tp-modal-leave-to .tp-box[data-v-5588b0a4]{transform:scale(.95)}.m3-tour-highlight{box-shadow:0 0 0 4px var(--color-primary);border-radius:8px;position:relative;z-index:201!important}.m3-tour-enter-active,.m3-tour-leave-active{transition:opacity .2s}.m3-tour-enter-from,.m3-tour-leave-to{opacity:0}.m3-markdown[data-v-23db2c2c] h1{font-size:var(--text-headline-large);line-height:var(--text-headline-large--line-height);color:var(--color-on-surface);margin:1em 0 .5em;font-weight:600}.m3-markdown[data-v-23db2c2c] h2{font-size:var(--text-headline-medium);line-height:var(--text-headline-medium--line-height);color:var(--color-on-surface);margin:1em 0 .5em;font-weight:600}.m3-markdown[data-v-23db2c2c] h3{font-size:var(--text-headline-small);line-height:var(--text-headline-small--line-height);color:var(--color-on-surface);margin:.75em 0 .25em;font-weight:600}.m3-markdown[data-v-23db2c2c] h4{font-size:var(--text-title-large);line-height:var(--text-title-large--line-height);color:var(--color-on-surface);margin:.75em 0 .25em;font-weight:600}.m3-markdown[data-v-23db2c2c] p{margin:.5em 0}.m3-markdown[data-v-23db2c2c] a{color:var(--color-primary);text-underline-offset:2px;text-decoration:underline}.m3-markdown[data-v-23db2c2c] a:hover{opacity:.8}.m3-markdown[data-v-23db2c2c] strong{color:var(--color-on-surface);font-weight:600}.m3-markdown[data-v-23db2c2c] em{font-style:italic}.m3-markdown[data-v-23db2c2c] ul{margin:.5em 0;padding-left:1.5em;list-style-type:disc}.m3-markdown[data-v-23db2c2c] ol{margin:.5em 0;padding-left:1.5em;list-style-type:decimal}.m3-markdown[data-v-23db2c2c] li{margin:.25em 0}.m3-markdown[data-v-23db2c2c] li::marker{color:var(--color-on-surface-variant)}.m3-markdown[data-v-23db2c2c] blockquote{border-left:3px solid var(--color-primary);background:var(--color-surface-container);color:var(--color-on-surface-variant);border-radius:0 8px 8px 0;margin:.75em 0;padding:.5em 1em}.m3-markdown[data-v-23db2c2c] code{background:var(--color-surface-container-highest);color:var(--color-primary);border-radius:4px;padding:.15em .4em;font-family:Roboto Mono,Fira Code,Consolas,monospace;font-size:.875em}.m3-markdown[data-v-23db2c2c] pre{background:var(--color-surface-container-highest);border:1px solid var(--color-outline-variant);border-radius:12px;margin:.75em 0;padding:1em;overflow-x:auto}.m3-markdown[data-v-23db2c2c] pre code{color:var(--color-on-surface);background:0 0;padding:0;font-size:.8125rem;line-height:1.6}.m3-markdown[data-v-23db2c2c] .hljs-keyword,.m3-markdown[data-v-23db2c2c] .hljs-selector-tag,.m3-markdown[data-v-23db2c2c] .hljs-built_in,.m3-markdown[data-v-23db2c2c] .hljs-tag .hljs-keyword{color:var(--color-primary)}.m3-markdown[data-v-23db2c2c] .hljs-string,.m3-markdown[data-v-23db2c2c] .hljs-regexp,.m3-markdown[data-v-23db2c2c] .hljs-template-variable{color:var(--color-tertiary)}.m3-markdown[data-v-23db2c2c] .hljs-number,.m3-markdown[data-v-23db2c2c] .hljs-literal{color:var(--color-error)}.m3-markdown[data-v-23db2c2c] .hljs-title.function_,.m3-markdown[data-v-23db2c2c] .hljs-title.function_>.hljs-keyword{color:var(--color-secondary);font-weight:500}.m3-markdown[data-v-23db2c2c] .hljs-type,.m3-markdown[data-v-23db2c2c] .hljs-title.class_{color:var(--color-primary);font-style:italic}.m3-markdown[data-v-23db2c2c] .hljs-comment,.m3-markdown[data-v-23db2c2c] .hljs-quote{color:var(--color-outline);font-style:italic}.m3-markdown[data-v-23db2c2c] .hljs-attr,.m3-markdown[data-v-23db2c2c] .hljs-attribute{color:var(--color-tertiary)}.m3-markdown[data-v-23db2c2c] .hljs-tag{color:var(--color-on-surface-variant)}.m3-markdown[data-v-23db2c2c] .hljs-name{color:var(--color-primary)}.m3-markdown[data-v-23db2c2c] .hljs-punctuation,.m3-markdown[data-v-23db2c2c] .hljs-operator,.m3-markdown[data-v-23db2c2c] .hljs-meta,.m3-markdown[data-v-23db2c2c] .hljs-meta .hljs-keyword{color:var(--color-on-surface-variant)}.m3-markdown[data-v-23db2c2c] .hljs-variable,.m3-markdown[data-v-23db2c2c] .hljs-property,.m3-markdown[data-v-23db2c2c] .hljs-symbol,.m3-markdown[data-v-23db2c2c] .hljs-params{color:var(--color-on-surface)}.m3-markdown[data-v-23db2c2c] .m3-code-block{position:relative}.m3-markdown[data-v-23db2c2c] .m3-code-copy{background:var(--color-surface-container);width:28px;height:28px;color:var(--color-on-surface-variant);cursor:pointer;opacity:0;z-index:1;border:none;border-radius:6px;justify-content:center;align-items:center;transition:opacity .15s;display:flex;position:absolute;top:8px;right:8px}.m3-markdown[data-v-23db2c2c] .m3-code-block:hover .m3-code-copy{opacity:1}.m3-markdown[data-v-23db2c2c] .m3-code-copy:hover{background:var(--color-surface-container-high);color:var(--color-on-surface)}.m3-markdown[data-v-23db2c2c] .m3-code-line{display:block}.m3-markdown[data-v-23db2c2c] .m3-line-hl{background:color-mix(in srgb, var(--color-primary) 8%, transparent);border-left:2px solid color-mix(in srgb, var(--color-primary) 40%, transparent);margin:0 -1em;padding:0 1em 0 calc(1em - 2px)}.m3-markdown[data-v-23db2c2c] hr{border:none;border-top:1px solid var(--color-outline-variant);margin:1.5em 0}.m3-markdown[data-v-23db2c2c] table{border-collapse:collapse;width:100%;margin:.75em 0}.m3-markdown[data-v-23db2c2c] th{background:var(--color-surface-container);text-align:left;border-bottom:2px solid var(--color-outline-variant);font-weight:600;font-size:var(--text-label-large);color:var(--color-on-surface);padding:.5em .75em}.m3-markdown[data-v-23db2c2c] td{border-bottom:1px solid var(--color-outline-variant);padding:.5em .75em}.m3-markdown[data-v-23db2c2c] img{border-radius:12px;max-width:100%;height:auto;margin:.5em 0}.rte-content[data-v-e6829e5c] .tiptap{min-height:inherit;outline:none}.rte-content[data-v-e6829e5c] .tiptap p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;color:var(--color-on-surface-variant);opacity:.5;pointer-events:none;height:0}.rte-content[data-v-e6829e5c] h1{font-size:var(--text-headline-large);line-height:var(--text-headline-large--line-height);margin:.75em 0 .25em;font-weight:600}.rte-content[data-v-e6829e5c] h2{font-size:var(--text-headline-medium);line-height:var(--text-headline-medium--line-height);margin:.75em 0 .25em;font-weight:600}.rte-content[data-v-e6829e5c] h3{font-size:var(--text-headline-small);line-height:var(--text-headline-small--line-height);margin:.75em 0 .25em;font-weight:600}.rte-content[data-v-e6829e5c] p{margin:.5em 0}.rte-content[data-v-e6829e5c] ul{margin:.5em 0;padding-left:1.5em;list-style-type:disc}.rte-content[data-v-e6829e5c] ol{margin:.5em 0;padding-left:1.5em;list-style-type:decimal}.rte-content[data-v-e6829e5c] blockquote{border-left:3px solid var(--color-primary);color:var(--color-on-surface-variant);margin:.5em 0;padding-left:1em}.rte-content[data-v-e6829e5c] code{background:var(--color-surface-container-highest);border-radius:4px;padding:.15em .4em;font-size:.875em}.rte-content[data-v-e6829e5c] pre{background:var(--color-surface-container-highest);border-radius:8px;margin:.5em 0;padding:1em;overflow-x:auto}.rte-content[data-v-e6829e5c] pre code{background:0 0;padding:0}.rte-content[data-v-e6829e5c] a{color:var(--color-primary);text-decoration:underline}.rte-content[data-v-e6829e5c] mark{background:var(--color-tertiary-container);color:var(--color-on-tertiary-container);border-radius:2px;padding:.1em .2em}.rte-content[data-v-e6829e5c] img{border-radius:8px;max-width:100%;height:auto;margin:.5em 0}
|
|
2
2
|
/*$vite$:1*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m3ui-vue/m3ui-vue",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Material 3 component library for Vue 3 + Tailwind CSS v4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -144,6 +144,15 @@
|
|
|
144
144
|
"@codemirror/lang-vue": {
|
|
145
145
|
"optional": true
|
|
146
146
|
},
|
|
147
|
+
"@codemirror/lang-cpp": {
|
|
148
|
+
"optional": true
|
|
149
|
+
},
|
|
150
|
+
"@codemirror/lang-rust": {
|
|
151
|
+
"optional": true
|
|
152
|
+
},
|
|
153
|
+
"@codemirror/legacy-modes": {
|
|
154
|
+
"optional": true
|
|
155
|
+
},
|
|
147
156
|
"@codemirror/theme-one-dark": {
|
|
148
157
|
"optional": true
|
|
149
158
|
},
|
|
@@ -177,13 +186,16 @@
|
|
|
177
186
|
},
|
|
178
187
|
"devDependencies": {
|
|
179
188
|
"@codemirror/commands": "^6.11.0",
|
|
189
|
+
"@codemirror/lang-cpp": "^6.0.3",
|
|
180
190
|
"@codemirror/lang-css": "^6.3.1",
|
|
181
191
|
"@codemirror/lang-html": "^6.4.12",
|
|
182
192
|
"@codemirror/lang-javascript": "^6.2.5",
|
|
183
193
|
"@codemirror/lang-json": "^6.0.2",
|
|
184
194
|
"@codemirror/lang-python": "^6.2.1",
|
|
195
|
+
"@codemirror/lang-rust": "^6.0.2",
|
|
185
196
|
"@codemirror/lang-vue": "^0.1.3",
|
|
186
197
|
"@codemirror/language": "^6.12.4",
|
|
198
|
+
"@codemirror/legacy-modes": "^6.5.4",
|
|
187
199
|
"@codemirror/state": "^6.7.4",
|
|
188
200
|
"@codemirror/theme-one-dark": "^6.1.3",
|
|
189
201
|
"@codemirror/view": "^6.43.11",
|
|
@@ -20,8 +20,8 @@ describe('useColorPalette', () => {
|
|
|
20
20
|
localStorage.setItem('m3-palette', 'purple')
|
|
21
21
|
})
|
|
22
22
|
|
|
23
|
-
it('has
|
|
24
|
-
expect(palettes).toHaveLength(
|
|
23
|
+
it('has 40 palettes', () => {
|
|
24
|
+
expect(palettes).toHaveLength(40)
|
|
25
25
|
})
|
|
26
26
|
|
|
27
27
|
it('each palette has id, label, and seed', () => {
|
package/src/code-editor.ts
CHANGED
|
@@ -248,22 +248,23 @@ const triggerClasses = computed(() => {
|
|
|
248
248
|
]
|
|
249
249
|
|
|
250
250
|
if (props.variant === 'outlined') {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
open.value
|
|
251
|
+
const border = props.disabled
|
|
252
|
+
? 'border-on-surface/12'
|
|
253
|
+
: open.value
|
|
255
254
|
? (props.error ? 'border-2 border-error' : 'border-2 border-primary')
|
|
256
|
-
: (props.error ? 'border-error' : 'border-outline hover:border-on-surface')
|
|
257
|
-
].join(' ')
|
|
255
|
+
: (props.error ? 'border-error' : 'border-outline hover:border-on-surface')
|
|
256
|
+
return [...base, 'h-14 rounded-xs border bg-transparent', border].join(' ')
|
|
258
257
|
}
|
|
259
258
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
open.value
|
|
259
|
+
const border = props.disabled
|
|
260
|
+
? 'border-on-surface/38'
|
|
261
|
+
: open.value
|
|
264
262
|
? (props.error ? 'border-b-2 border-error' : 'border-b-2 border-primary')
|
|
265
|
-
: (props.error ? 'border-error' : 'border-on-surface-variant hover:border-on-surface')
|
|
266
|
-
|
|
263
|
+
: (props.error ? 'border-error' : 'border-on-surface-variant hover:border-on-surface')
|
|
264
|
+
const bg = props.disabled
|
|
265
|
+
? 'bg-[color-mix(in_srgb,var(--color-on-surface)_4%,var(--color-surface-container-highest))]'
|
|
266
|
+
: 'bg-surface-container-highest'
|
|
267
|
+
return [...base, 'h-14 rounded-t-xs border-b pt-6 pb-2', bg, border].join(' ')
|
|
267
268
|
})
|
|
268
269
|
|
|
269
270
|
const isFloated = computed(() => hasValue.value || open.value)
|
|
@@ -288,6 +289,7 @@ const labelClasses = computed(() => {
|
|
|
288
289
|
open.value
|
|
289
290
|
? (props.error ? 'text-error' : 'text-primary')
|
|
290
291
|
: (props.error ? 'text-error' : 'text-on-surface-variant'),
|
|
292
|
+
'peer-disabled:text-on-surface/38',
|
|
291
293
|
].join(' ')
|
|
292
294
|
})
|
|
293
295
|
</script>
|
|
@@ -303,10 +305,13 @@ const labelClasses = computed(() => {
|
|
|
303
305
|
<!-- Leading icon -->
|
|
304
306
|
<div
|
|
305
307
|
v-if="leadingIcon"
|
|
306
|
-
class="pointer-events-none absolute left-3.5
|
|
307
|
-
:class="
|
|
308
|
+
class="pointer-events-none absolute left-3.5"
|
|
309
|
+
:class="[
|
|
310
|
+
variant === 'filled' ? 'top-4.5' : 'top-4',
|
|
311
|
+
disabled ? 'text-on-surface/38' : 'text-on-surface-variant',
|
|
312
|
+
]"
|
|
308
313
|
>
|
|
309
|
-
<MIcon :name="leadingIcon" :size="
|
|
314
|
+
<MIcon :name="leadingIcon" :size="24" />
|
|
310
315
|
</div>
|
|
311
316
|
|
|
312
317
|
<!-- Input trigger -->
|
|
@@ -323,8 +328,9 @@ const labelClasses = computed(() => {
|
|
|
323
328
|
:aria-disabled="disabled"
|
|
324
329
|
:class="[
|
|
325
330
|
triggerClasses,
|
|
326
|
-
'outline-none text-on-surface',
|
|
327
|
-
|
|
331
|
+
'peer outline-none text-on-surface cursor-text',
|
|
332
|
+
error ? 'caret-error' : 'caret-primary',
|
|
333
|
+
'disabled:pointer-events-none disabled:cursor-not-allowed disabled:text-on-surface/38',
|
|
328
334
|
]"
|
|
329
335
|
@focus="onInputFocus"
|
|
330
336
|
@blur="onInputBlur"
|
|
@@ -352,8 +358,11 @@ const labelClasses = computed(() => {
|
|
|
352
358
|
<MIcon
|
|
353
359
|
name="arrow_drop_down"
|
|
354
360
|
:size="24"
|
|
355
|
-
class="
|
|
356
|
-
:class="
|
|
361
|
+
class="transition-transform duration-200"
|
|
362
|
+
:class="[
|
|
363
|
+
open || modalOpen ? 'rotate-180' : '',
|
|
364
|
+
disabled ? 'text-on-surface/38' : 'text-on-surface-variant',
|
|
365
|
+
]"
|
|
357
366
|
/>
|
|
358
367
|
</div>
|
|
359
368
|
</div>
|
|
@@ -375,7 +384,7 @@ const labelClasses = computed(() => {
|
|
|
375
384
|
<div
|
|
376
385
|
v-if="open && mode === 'docked'"
|
|
377
386
|
ref="dropdownEl"
|
|
378
|
-
class="fixed z-500 max-h-60 overflow-auto rounded-
|
|
387
|
+
class="fixed z-500 max-h-60 overflow-auto rounded-xs bg-surface-container py-1 shadow-elevation-2"
|
|
379
388
|
:style="dropPos"
|
|
380
389
|
>
|
|
381
390
|
<div
|
|
@@ -387,7 +396,7 @@ const labelClasses = computed(() => {
|
|
|
387
396
|
opt.disabled
|
|
388
397
|
? 'cursor-not-allowed opacity-38 text-on-surface'
|
|
389
398
|
: 'text-on-surface hover:bg-on-surface/8',
|
|
390
|
-
eq(opt.value, modelValue) ? 'bg-
|
|
399
|
+
eq(opt.value, modelValue) ? 'bg-secondary-container text-on-secondary-container font-medium' : '',
|
|
391
400
|
getEnabledIndex(opt) === highlightIndex && !opt.disabled ? 'bg-on-surface/12' : '',
|
|
392
401
|
]"
|
|
393
402
|
@mousedown.prevent="select(opt)"
|
|
@@ -396,7 +405,7 @@ const labelClasses = computed(() => {
|
|
|
396
405
|
v-if="eq(opt.value, modelValue)"
|
|
397
406
|
name="check"
|
|
398
407
|
:size="18"
|
|
399
|
-
class="shrink-0 text-
|
|
408
|
+
class="shrink-0 text-on-secondary-container"
|
|
400
409
|
/>
|
|
401
410
|
<span v-else class="w-[18px] shrink-0" />
|
|
402
411
|
{{ opt.label }}
|
|
@@ -414,7 +423,7 @@ const labelClasses = computed(() => {
|
|
|
414
423
|
<Transition name="m3-ac-modal">
|
|
415
424
|
<div
|
|
416
425
|
v-if="modalOpen && mode === 'modal'"
|
|
417
|
-
class="fixed inset-0 z-50 flex items-center justify-center bg-scrim/
|
|
426
|
+
class="fixed inset-0 z-50 flex items-center justify-center bg-scrim/32 p-4"
|
|
418
427
|
@click.self="closeDropdown"
|
|
419
428
|
>
|
|
420
429
|
<div class="ac-modal-box flex max-h-[80vh] w-full max-w-sm flex-col overflow-hidden rounded-[28px] bg-surface-container-high shadow-elevation-3">
|
|
@@ -447,16 +456,16 @@ const labelClasses = computed(() => {
|
|
|
447
456
|
opt.disabled
|
|
448
457
|
? 'cursor-not-allowed opacity-38 text-on-surface'
|
|
449
458
|
: 'text-on-surface hover:bg-on-surface/8',
|
|
450
|
-
eq(opt.value, modelValue) ? 'bg-
|
|
459
|
+
eq(opt.value, modelValue) ? 'bg-secondary-container' : '',
|
|
451
460
|
]"
|
|
452
461
|
@click="select(opt)"
|
|
453
462
|
>
|
|
454
463
|
<MIcon
|
|
455
464
|
:name="eq(opt.value, modelValue) ? 'radio_button_checked' : 'radio_button_unchecked'"
|
|
456
465
|
:size="20"
|
|
457
|
-
:class="eq(opt.value, modelValue) ? 'text-
|
|
466
|
+
:class="eq(opt.value, modelValue) ? 'text-on-secondary-container' : 'text-on-surface-variant'"
|
|
458
467
|
/>
|
|
459
|
-
<span :class="eq(opt.value, modelValue) ? 'text-
|
|
468
|
+
<span :class="eq(opt.value, modelValue) ? 'text-on-secondary-container font-medium' : ''">
|
|
460
469
|
{{ opt.label }}
|
|
461
470
|
</span>
|
|
462
471
|
</div>
|
|
@@ -62,7 +62,7 @@ const positionStyle = computed(() => {
|
|
|
62
62
|
class="absolute flex items-center justify-center rounded-full font-medium leading-none"
|
|
63
63
|
:class="[
|
|
64
64
|
colorMap[color],
|
|
65
|
-
!label || dot ? 'h-
|
|
65
|
+
!label || dot ? 'h-1.5 w-1.5' : label.length > 2 ? 'h-4 min-w-4 px-1 text-label-small' : 'h-4 w-4 text-label-small',
|
|
66
66
|
]"
|
|
67
67
|
:style="positionStyle"
|
|
68
68
|
>
|
|
@@ -43,22 +43,22 @@ const sheetStyle = computed(() => ({
|
|
|
43
43
|
<Transition name="bs" :duration="{ enter: 320, leave: 280 }">
|
|
44
44
|
<div v-if="modelValue" class="fixed inset-0 z-200 flex flex-col justify-end">
|
|
45
45
|
<!-- Scrim -->
|
|
46
|
-
<div class="bs-scrim absolute inset-0 bg-scrim/
|
|
46
|
+
<div class="bs-scrim absolute inset-0 bg-scrim/32" @click="close" />
|
|
47
47
|
|
|
48
48
|
<!-- Panel -->
|
|
49
49
|
<div
|
|
50
|
-
class="bs-panel relative flex w-full flex-col rounded-t-
|
|
50
|
+
class="bs-panel relative mx-auto flex w-full max-w-[640px] flex-col rounded-t-[28px] bg-surface-container-low shadow-elevation-1"
|
|
51
51
|
:class="fullHeight ? 'max-h-[92vh]' : 'max-h-[60vh]'"
|
|
52
52
|
:style="sheetStyle"
|
|
53
53
|
>
|
|
54
54
|
<!-- Drag handle -->
|
|
55
55
|
<div
|
|
56
|
-
class="flex h-
|
|
56
|
+
class="flex h-12 shrink-0 cursor-grab touch-none select-none items-center justify-center active:cursor-grabbing"
|
|
57
57
|
@pointerdown="onHandlePointerDown"
|
|
58
58
|
@pointermove="onHandlePointerMove"
|
|
59
59
|
@pointerup="onHandlePointerUp"
|
|
60
60
|
>
|
|
61
|
-
<div class="h-1 w-8 rounded-full bg-on-surface-variant
|
|
61
|
+
<div class="h-1 w-8 rounded-full bg-on-surface-variant" />
|
|
62
62
|
</div>
|
|
63
63
|
|
|
64
64
|
<!-- Header -->
|
|
@@ -53,48 +53,64 @@ const customStyle = computed(() => {
|
|
|
53
53
|
const isError = computed(() => props.color === 'error')
|
|
54
54
|
|
|
55
55
|
const base =
|
|
56
|
-
'relative inline-flex items-center justify-center
|
|
56
|
+
'relative inline-flex items-center justify-center font-medium ' +
|
|
57
57
|
'whitespace-nowrap overflow-hidden transition-[box-shadow,background-color,color] duration-150 select-none cursor-pointer ' +
|
|
58
58
|
'disabled:cursor-not-allowed disabled:shadow-none disabled:text-on-surface/38 ' +
|
|
59
59
|
"before:content-[''] before:pointer-events-none before:absolute before:inset-0 " +
|
|
60
60
|
'before:bg-current before:opacity-0 before:transition-opacity before:duration-150 ' +
|
|
61
61
|
'enabled:hover:before:opacity-[0.08] enabled:active:before:opacity-[0.12]'
|
|
62
62
|
|
|
63
|
-
// M3 disabled tokens: container at
|
|
64
|
-
//
|
|
65
|
-
// above, applies to every variant including text/elevated which have no container).
|
|
63
|
+
// M3 disabled tokens: container at 10% on-surface opacity (DisabledContainerOpacity, same
|
|
64
|
+
// across Filled/Tonal/Elevated), content/label always at 38% on-surface (handled in `base`
|
|
65
|
+
// above, applies to every variant including text/elevated which have no container). The
|
|
66
|
+
// outlined border uses the SAME color role as its enabled border (OutlineVariant, not
|
|
67
|
+
// on-surface) just dimmed to that 10% too — see `variantClasses`' outlined case below for
|
|
68
|
+
// why the enabled color is also outline-variant, not outline.
|
|
66
69
|
const disabledContainerClasses = computed(() => {
|
|
67
70
|
switch (props.variant) {
|
|
68
71
|
case 'filled':
|
|
69
72
|
case 'tonal':
|
|
70
73
|
case 'elevated':
|
|
71
|
-
return 'disabled:bg-on-surface/
|
|
74
|
+
return 'disabled:bg-on-surface/10'
|
|
72
75
|
case 'outlined':
|
|
73
|
-
return 'disabled:border-
|
|
76
|
+
return isError.value ? 'disabled:border-error/10' : 'disabled:border-outline-variant/10'
|
|
74
77
|
default:
|
|
75
78
|
return ''
|
|
76
79
|
}
|
|
77
80
|
})
|
|
78
81
|
|
|
79
|
-
|
|
80
|
-
|
|
82
|
+
/*
|
|
83
|
+
* M3's newer 5-tier "expressive" button sizing (Button{XSmall,Small,Medium,Large,
|
|
84
|
+
* XLarge}Tokens.kt + Button.kt's size-variant overloads — @ExperimentalMaterial3ExpressiveApi
|
|
85
|
+
* in Compose, but this `size` prop is deliberately implementing exactly that system, same
|
|
86
|
+
* as MFabMenu/MLoadingIndicator already do for other Expressive-only components). Content
|
|
87
|
+
* padding is IDENTICAL whether or not an icon is present at every tier in the default
|
|
88
|
+
* (non "precision pointer") mode — e.g. `IconMediumLeadingPadding = MediumLeadingPadding`
|
|
89
|
+
* verbatim in the real source — so there's deliberately no separate icon-vs-no-icon padding
|
|
90
|
+
* split here, unlike the old version of this file which had one (and got the values wrong
|
|
91
|
+
* in both directions). `gap` between icon and label also varies by tier (IconLabelSpace),
|
|
92
|
+
* not a flat value for every size.
|
|
93
|
+
*/
|
|
81
94
|
const sizeMap = {
|
|
82
|
-
xs: { h: 'h-8', text: 'text-label-
|
|
83
|
-
sm: { h: 'h-10', text: 'text-label-large', icon: 20, spinner: 16,
|
|
84
|
-
md: { h: 'h-14', text: 'text-title-medium', icon:
|
|
85
|
-
lg: { h: 'h-
|
|
86
|
-
xl: { h: 'h-
|
|
95
|
+
xs: { h: 'h-8', text: 'text-label-large', icon: 20, spinner: 16, gap: 'gap-1', px: 'px-3', pxText: 'px-2', squareRadius: 'rounded-md' },
|
|
96
|
+
sm: { h: 'h-10', text: 'text-label-large', icon: 20, spinner: 16, gap: 'gap-2', px: 'px-4', pxText: 'px-3', squareRadius: 'rounded-md' },
|
|
97
|
+
md: { h: 'h-14', text: 'text-title-medium', icon: 24, spinner: 18, gap: 'gap-2', px: 'px-6', pxText: 'px-3', squareRadius: 'rounded-lg' },
|
|
98
|
+
lg: { h: 'h-24', text: 'text-headline-small', icon: 32, spinner: 26, gap: 'gap-3', px: 'px-12', pxText: 'px-4', squareRadius: 'rounded-xl' },
|
|
99
|
+
xl: { h: 'h-[136px]', text: 'text-headline-large', icon: 40, spinner: 34, gap: 'gap-4', px: 'px-16', pxText: 'px-4', squareRadius: 'rounded-xl' },
|
|
87
100
|
}
|
|
88
101
|
|
|
89
102
|
const s = computed(() => sizeMap[props.size] ?? sizeMap.sm)
|
|
90
|
-
const sizeClasses = computed(() => `${s.value.h} ${s.value.text}`)
|
|
103
|
+
const sizeClasses = computed(() => `${s.value.h} ${s.value.text} ${s.value.gap}`)
|
|
91
104
|
const iconSize = computed(() => s.value.icon)
|
|
92
105
|
const spinnerSize = computed(() => s.value.spinner)
|
|
93
106
|
|
|
94
|
-
const px = computed(() =>
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
107
|
+
const px = computed(() => props.variant === 'text' ? s.value.pxText : s.value.px)
|
|
108
|
+
|
|
109
|
+
// Squared shape radius scales with size, matching each tier's own ContainerShapeSquare
|
|
110
|
+
// token (ButtonXSmallTokens/ButtonSmallTokens use CornerMedium=12px, ButtonMediumTokens
|
|
111
|
+
// CornerLarge=16px, ButtonLargeTokens/ButtonXLargeTokens CornerExtraLarge=28px) — the
|
|
112
|
+
// pill (ContainerShapeRound) is CornerFull at every tier, so that half doesn't vary.
|
|
113
|
+
const shapeClass = computed(() => props.shape === 'squared' ? s.value.squareRadius : 'rounded-full')
|
|
98
114
|
|
|
99
115
|
const variantClasses = computed(() => {
|
|
100
116
|
const err = isError.value
|
|
@@ -112,9 +128,10 @@ const variantClasses = computed(() => {
|
|
|
112
128
|
? 'bg-surface-container-low text-error shadow-elevation-1 enabled:hover:shadow-elevation-2'
|
|
113
129
|
: 'bg-surface-container-low text-primary shadow-elevation-1 enabled:hover:shadow-elevation-2'
|
|
114
130
|
case 'outlined':
|
|
131
|
+
// OutlinedButtonTokens.OutlineColor = ColorSchemeKeyTokens.OutlineVariant, not Outline
|
|
115
132
|
return err
|
|
116
133
|
? 'border border-error text-error'
|
|
117
|
-
: 'border border-outline text-primary'
|
|
134
|
+
: 'border border-outline-variant text-primary'
|
|
118
135
|
case 'text':
|
|
119
136
|
return err
|
|
120
137
|
? 'text-error'
|
|
@@ -105,7 +105,7 @@ function createRipple(event: PointerEvent) {
|
|
|
105
105
|
function btnStyle(i: number, selected: boolean) {
|
|
106
106
|
const count = props.options.length
|
|
107
107
|
const full = fullRadius.value
|
|
108
|
-
const inner = '
|
|
108
|
+
const inner = '8px'
|
|
109
109
|
let tl: string, tr: string, br: string, bl: string
|
|
110
110
|
if (props.variant === 'standard' || selected) {
|
|
111
111
|
tl = tr = br = bl = full
|
|
@@ -126,7 +126,7 @@ function btnStyle(i: number, selected: boolean) {
|
|
|
126
126
|
<template>
|
|
127
127
|
<div
|
|
128
128
|
class="inline-flex"
|
|
129
|
-
:class="variant === 'standard' ? 'gap-
|
|
129
|
+
:class="variant === 'standard' ? 'gap-3' : 'gap-0.5'"
|
|
130
130
|
role="group"
|
|
131
131
|
>
|
|
132
132
|
<button
|
package/src/components/MCard.vue
CHANGED
|
@@ -6,6 +6,7 @@ const props = withDefaults(
|
|
|
6
6
|
variant?: 'elevated' | 'filled' | 'outlined'
|
|
7
7
|
clickable?: boolean
|
|
8
8
|
elevated?: boolean
|
|
9
|
+
disabled?: boolean
|
|
9
10
|
/** src URL for a full-bleed header image */
|
|
10
11
|
image?: string
|
|
11
12
|
imageAlt?: string
|
|
@@ -13,17 +14,11 @@ const props = withDefaults(
|
|
|
13
14
|
title?: string
|
|
14
15
|
subtitle?: string
|
|
15
16
|
}>(),
|
|
16
|
-
{ variant: 'elevated', clickable: false, elevated: false },
|
|
17
|
+
{ variant: 'elevated', clickable: false, elevated: false, disabled: false },
|
|
17
18
|
)
|
|
18
19
|
|
|
19
20
|
const resolvedVariant = computed(() => (props.elevated ? 'elevated' : props.variant))
|
|
20
21
|
|
|
21
|
-
const variantClasses: Record<string, string> = {
|
|
22
|
-
elevated: 'bg-surface-container-low shadow-elevation-1',
|
|
23
|
-
filled: 'bg-surface-container-highest',
|
|
24
|
-
outlined: 'bg-surface border border-outline-variant',
|
|
25
|
-
}
|
|
26
|
-
|
|
27
22
|
// Expose the card's background as --field-bg so outlined text-field labels
|
|
28
23
|
// inside the card automatically match without needing the fieldBg prop.
|
|
29
24
|
const fieldBgByVariant: Record<string, string> = {
|
|
@@ -32,24 +27,94 @@ const fieldBgByVariant: Record<string, string> = {
|
|
|
32
27
|
outlined: 'var(--color-surface)',
|
|
33
28
|
}
|
|
34
29
|
|
|
30
|
+
/*
|
|
31
|
+
* M3 Card{Filled,Elevated,Outlined}Tokens: all three variants share ContainerShape =
|
|
32
|
+
* CornerMedium (12px), so a flat `rounded-md` on the wrapper (below) is correct for all of
|
|
33
|
+
* them already — no per-variant shape difference. Container color/border IS mutually
|
|
34
|
+
* exclusive between the disabled and enabled cases on purpose (a single computed picking
|
|
35
|
+
* ONE class set, never both at once): two competing `bg-*`/`border-*` utilities for the
|
|
36
|
+
* same CSS property risk losing to each other based on Tailwind's compiled-CSS source
|
|
37
|
+
* order rather than which one appears later in this class list — bit us for real on
|
|
38
|
+
* MIconButton's `relative`/`absolute` and would bite here too with `bg-surface-variant`
|
|
39
|
+
* vs `bg-surface-container-highest` fighting over `background-color`.
|
|
40
|
+
*
|
|
41
|
+
* Disabled colors are real per-variant token overrides (elevated swaps to plain `surface`,
|
|
42
|
+
* filled to `surface-variant`), not just a dimmed version of the resting color, all at 38%
|
|
43
|
+
* container opacity EXCEPT outlined, which keeps its background as-is and only dims the
|
|
44
|
+
* border — to a *different* color too (`outline` at 12%, not the resting `outline-variant`).
|
|
45
|
+
* The opacity is applied via Tailwind's `/38` color-opacity modifier on the background
|
|
46
|
+
* color itself (`bg-surface/38`), not a `opacity-*` utility on the whole element — the
|
|
47
|
+
* real Compose Card only dims the container color, not its content/text, and a plain
|
|
48
|
+
* `opacity-*` class would incorrectly wash out the card's text/icons along with it.
|
|
49
|
+
*/
|
|
50
|
+
const containerClasses = computed(() => {
|
|
51
|
+
const map = props.disabled
|
|
52
|
+
? {
|
|
53
|
+
elevated: 'bg-surface/38 shadow-none',
|
|
54
|
+
filled: 'bg-surface-variant/38',
|
|
55
|
+
outlined: 'bg-surface border border-outline/12',
|
|
56
|
+
}
|
|
57
|
+
: {
|
|
58
|
+
elevated: 'bg-surface-container-low shadow-elevation-1',
|
|
59
|
+
filled: 'bg-surface-container-highest',
|
|
60
|
+
outlined: 'bg-surface border border-outline-variant',
|
|
61
|
+
}
|
|
62
|
+
return map[resolvedVariant.value]
|
|
63
|
+
})
|
|
64
|
+
|
|
65
|
+
/*
|
|
66
|
+
* Hover/pressed elevation differ per variant — only `elevated` goes up to Level2 on hover
|
|
67
|
+
* and stays at Level1 while pressed; `filled`/`outlined` only reach Level1 on hover and
|
|
68
|
+
* drop back to flat (Level0/`shadow-none`) while pressed, they never match elevated's
|
|
69
|
+
* pressed-but-still-elevated Level1. Focus indicator also differs: elevated/filled get a
|
|
70
|
+
* `secondary` ring (FocusIndicatorColor) since they have no border to repurpose; outlined
|
|
71
|
+
* instead darkens its own border to `on-surface` (FocusOutlineColor) rather than adding a
|
|
72
|
+
* separate ring on top of the border it already has.
|
|
73
|
+
*/
|
|
74
|
+
const clickableClasses: Record<string, string> = {
|
|
75
|
+
elevated: 'hover:shadow-elevation-2 active:shadow-elevation-1 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-secondary',
|
|
76
|
+
filled: 'hover:shadow-elevation-1 active:shadow-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-secondary',
|
|
77
|
+
outlined: 'hover:shadow-elevation-1 active:shadow-none focus-visible:outline-none focus-visible:border-on-surface',
|
|
78
|
+
}
|
|
79
|
+
|
|
35
80
|
// State layer (8% hover / 12% active), same before:-pseudo pattern as MButton/MFab.
|
|
36
81
|
// Needed because the card has a real background to preserve underneath — unlike
|
|
37
82
|
// MListItem, a plain hover:bg-on-surface/8 here would replace the card's own tone.
|
|
38
|
-
const
|
|
39
|
-
'relative
|
|
83
|
+
const stateLayerClasses =
|
|
84
|
+
'relative ' +
|
|
40
85
|
"before:content-[''] before:pointer-events-none before:absolute before:inset-0 " +
|
|
41
86
|
'before:bg-on-surface before:opacity-0 before:transition-opacity before:duration-150 ' +
|
|
42
87
|
'hover:before:opacity-[0.08] active:before:opacity-[0.12]'
|
|
88
|
+
|
|
89
|
+
const isInteractive = computed(() => props.clickable && !props.disabled)
|
|
90
|
+
|
|
91
|
+
// A plain div has no native :disabled/keyboard behavior — role="button" + tabindex make it
|
|
92
|
+
// reachable and identifiable, and Enter/Space here replicate a real button's activation
|
|
93
|
+
// keys by just triggering a native click on the root, so whatever @click listener the
|
|
94
|
+
// consumer attached (via plain attribute fallthrough, since MCard doesn't declare an emit
|
|
95
|
+
// for this) fires exactly as it would for a mouse click, with no separate code path needed.
|
|
96
|
+
function onKeydown(event: KeyboardEvent) {
|
|
97
|
+
if (!isInteractive.value) return
|
|
98
|
+
if (event.key === 'Enter' || event.key === ' ') {
|
|
99
|
+
event.preventDefault()
|
|
100
|
+
;(event.currentTarget as HTMLElement).click()
|
|
101
|
+
}
|
|
102
|
+
}
|
|
43
103
|
</script>
|
|
44
104
|
|
|
45
105
|
<template>
|
|
46
106
|
<div
|
|
47
107
|
class="overflow-hidden rounded-md transition-shadow duration-150"
|
|
48
108
|
:class="[
|
|
49
|
-
|
|
50
|
-
|
|
109
|
+
containerClasses,
|
|
110
|
+
isInteractive ? ['cursor-pointer', clickableClasses[resolvedVariant], stateLayerClasses] : '',
|
|
111
|
+
disabled ? 'cursor-not-allowed pointer-events-none' : '',
|
|
51
112
|
]"
|
|
52
113
|
:style="{ '--field-bg': fieldBgByVariant[resolvedVariant] }"
|
|
114
|
+
:role="clickable ? 'button' : undefined"
|
|
115
|
+
:tabindex="isInteractive ? 0 : undefined"
|
|
116
|
+
:aria-disabled="clickable && disabled ? 'true' : undefined"
|
|
117
|
+
@keydown="onKeydown"
|
|
53
118
|
>
|
|
54
119
|
<!-- Optional header image -->
|
|
55
120
|
<div v-if="image || $slots.media" :class="['w-full overflow-hidden', imageHeight ?? 'h-48']">
|