mood-ui 0.13.0 → 0.13.1
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/components/feedback/liquid-toast/LiquidToast.cjs.map +1 -1
- package/dist/components/feedback/liquid-toast/LiquidToast.mjs.map +1 -1
- package/dist/components/feedback/liquid-toast/LiquidToast.vue_vue_type_script_setup_true_lang.cjs +7 -6
- package/dist/components/feedback/liquid-toast/LiquidToast.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/feedback/liquid-toast/LiquidToast.vue_vue_type_script_setup_true_lang.mjs +7 -6
- package/dist/components/feedback/liquid-toast/LiquidToast.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/feedback/liquid-toast/LiquidToastShape.cjs.map +1 -1
- package/dist/components/feedback/liquid-toast/LiquidToastShape.mjs.map +1 -1
- package/dist/components/feedback/liquid-toast/LiquidToastShape.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/components/feedback/liquid-toast/LiquidToastShape.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/feedback/liquid-toast/LiquidToastShape.vue_vue_type_script_setup_true_lang.mjs +1 -0
- package/dist/components/feedback/liquid-toast/LiquidToastShape.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/feedback/liquid-toast/LiquidToaster.cjs.map +1 -1
- package/dist/components/feedback/liquid-toast/LiquidToaster.mjs.map +1 -1
- package/dist/components/feedback/liquid-toast/LiquidToaster.vue_vue_type_script_setup_true_lang.cjs +2 -2
- package/dist/components/feedback/liquid-toast/LiquidToaster.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/feedback/liquid-toast/LiquidToaster.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/dist/components/feedback/liquid-toast/LiquidToaster.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/feedback/liquid-toast/liquidToast2.cjs +3 -3
- package/dist/components/feedback/liquid-toast/liquidToast2.cjs.map +1 -1
- package/dist/components/feedback/liquid-toast/liquidToast2.mjs +3 -3
- package/dist/components/feedback/liquid-toast/liquidToast2.mjs.map +1 -1
- package/dist/components/feedback/morph-tooltip/MorphTooltip.cjs.map +1 -1
- package/dist/components/feedback/morph-tooltip/MorphTooltip.mjs.map +1 -1
- package/dist/components/feedback/morph-tooltip/MorphTooltip.vue_vue_type_script_setup_true_lang.cjs +9 -4
- package/dist/components/feedback/morph-tooltip/MorphTooltip.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/feedback/morph-tooltip/MorphTooltip.vue_vue_type_script_setup_true_lang.mjs +9 -4
- package/dist/components/feedback/morph-tooltip/MorphTooltip.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/feedback/morph-tooltip/MorphTooltipContent.cjs.map +1 -1
- package/dist/components/feedback/morph-tooltip/MorphTooltipContent.mjs.map +1 -1
- package/dist/components/feedback/morph-tooltip/MorphTooltipContent.vue_vue_type_script_setup_true_lang.cjs +8 -4
- package/dist/components/feedback/morph-tooltip/MorphTooltipContent.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/feedback/morph-tooltip/MorphTooltipContent.vue_vue_type_script_setup_true_lang.mjs +8 -4
- package/dist/components/feedback/morph-tooltip/MorphTooltipContent.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/forms/glass-switch/GlassSwitch.cjs.map +1 -1
- package/dist/components/forms/glass-switch/GlassSwitch.mjs.map +1 -1
- package/dist/components/forms/glass-switch/GlassSwitch.vue_vue_type_script_setup_true_lang.cjs +21 -25
- package/dist/components/forms/glass-switch/GlassSwitch.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/forms/glass-switch/GlassSwitch.vue_vue_type_script_setup_true_lang.mjs +21 -25
- package/dist/components/forms/glass-switch/GlassSwitch.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/forms/morph-select/MorphSelectContent.cjs.map +1 -1
- package/dist/components/forms/morph-select/MorphSelectContent.mjs.map +1 -1
- package/dist/components/forms/morph-select/MorphSelectContent.vue_vue_type_script_setup_true_lang.cjs +3 -1
- package/dist/components/forms/morph-select/MorphSelectContent.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/forms/morph-select/MorphSelectContent.vue_vue_type_script_setup_true_lang.mjs +3 -1
- package/dist/components/forms/morph-select/MorphSelectContent.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/forms/morph-select/MorphSelectTrigger.cjs.map +1 -1
- package/dist/components/forms/morph-select/MorphSelectTrigger.mjs.map +1 -1
- package/dist/components/forms/morph-select/MorphSelectTrigger.vue_vue_type_script_setup_true_lang.cjs +11 -6
- package/dist/components/forms/morph-select/MorphSelectTrigger.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/forms/morph-select/MorphSelectTrigger.vue_vue_type_script_setup_true_lang.mjs +11 -6
- package/dist/components/forms/morph-select/MorphSelectTrigger.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/mood-ui.css +315 -89
- package/dist/types/components/feedback/liquid-toast/liquidToast.d.ts +1 -1
- package/dist/types/interfaces/feedback/LiquidToast.interface.d.ts +9 -9
- package/dist/types/interfaces/feedback/MorphTooltip.interface.d.ts +4 -4
- package/dist/types/interfaces/forms/GlassSwitch.interface.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MorphSelectTrigger.vue_vue_type_script_setup_true_lang.mjs","names":["$attrs"],"sources":["../../../../src/components/forms/morph-select/MorphSelectTrigger.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, ref, watch, onBeforeUnmount } from 'vue'\nimport { ChevronDownIcon } from '@heroicons/vue/24/outline'\nimport type { MorphSelectTriggerProps } from '../../../interfaces/forms/MorphSelect.interface'\nimport { FIELD_AFFORDANCE_ICON_BY_COLOR, useFieldClasses } from '../../../composables/useField'\nimport { useModoLocale, useSizeTokens } from '../../../composables/useModoConfig'\nimport RenderContent from '../../../utils/RenderContent'\nimport Typography from '../../data-display/Typography.vue'\nimport { useMorphSelect } from './MorphSelectContext'\ndefineOptions({ inheritAttrs: false })\nconst props = withDefaults(defineProps<MorphSelectTriggerProps>(), { variant: 'outline' })\nconst {\n fieldId, value, options, disabled, readonly, required, label, ariaLabel, helperText, errorText, hasError, stateColor,\n radius, size, halo, fullWidth, errorId, helperId, describedBy, phase, open, trigger, button, setOpen,\n} = useMorphSelect()\nconst loc = useModoLocale()\nconst sz = useSizeTokens(() => size.value)\nconst { wrapperVariantClasses, radiusClasses } = useFieldClasses({ variant: () => props.variant, stateColor, hasError, radius, halo })\nconst affordanceIconClass = computed(() => FIELD_AFFORDANCE_ICON_BY_COLOR[stateColor.value] ?? 'text-muted-foreground')\n\nconst landed = ref(false)\nlet landedTimer: ReturnType<typeof setTimeout> | undefined\nwatch(phase, (next, previous) => {\n if (previous === 'closing' && next === 'closed') {\n landed.value = true; clearTimeout(landedTimer)\n landedTimer = setTimeout(() => { landed.value = false }, 500)\n }\n})\nonBeforeUnmount(() => clearTimeout(landedTimer))\nconst selected = computed(() => options.value.find(option => option.value === value.value))\nfunction key(event: KeyboardEvent) { if (event.key === 'ArrowDown' || event.key === 'ArrowUp') { event.preventDefault(); setOpen(true) } }\n</script>\n<template>\n <div :class=\"['modo-morph-select flex flex-col
|
|
1
|
+
{"version":3,"file":"MorphSelectTrigger.vue_vue_type_script_setup_true_lang.mjs","names":["$attrs"],"sources":["../../../../src/components/forms/morph-select/MorphSelectTrigger.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, ref, watch, onBeforeUnmount } from 'vue'\nimport { ChevronDownIcon } from '@heroicons/vue/24/outline'\nimport type { MorphSelectTriggerProps } from '../../../interfaces/forms/MorphSelect.interface'\nimport { FIELD_AFFORDANCE_ICON_BY_COLOR, useFieldClasses } from '../../../composables/useField'\nimport { useModoLocale, useSizeTokens } from '../../../composables/useModoConfig'\nimport RenderContent from '../../../utils/RenderContent'\nimport Typography from '../../data-display/Typography.vue'\nimport { useMorphSelect } from './MorphSelectContext'\ndefineOptions({ inheritAttrs: false })\nconst props = withDefaults(defineProps<MorphSelectTriggerProps>(), { variant: 'outline' })\nconst {\n fieldId, value, options, disabled, readonly, required, label, ariaLabel, helperText, errorText, hasError, stateColor,\n radius, size, halo, fullWidth, errorId, helperId, describedBy, phase, open, trigger, button, setOpen,\n} = useMorphSelect()\nconst loc = useModoLocale()\nconst sz = useSizeTokens(() => size.value)\nconst { wrapperVariantClasses, radiusClasses } = useFieldClasses({ variant: () => props.variant, stateColor, hasError, radius, halo })\nconst affordanceIconClass = computed(() => FIELD_AFFORDANCE_ICON_BY_COLOR[stateColor.value] ?? 'text-muted-foreground')\n\nconst landed = ref(false)\nlet landedTimer: ReturnType<typeof setTimeout> | undefined\nwatch(phase, (next, previous) => {\n if (previous === 'closing' && next === 'closed') {\n landed.value = true; clearTimeout(landedTimer)\n landedTimer = setTimeout(() => { landed.value = false }, 500)\n }\n})\nonBeforeUnmount(() => clearTimeout(landedTimer))\nconst selected = computed(() => options.value.find(option => option.value === value.value))\nfunction key(event: KeyboardEvent) { if (event.key === 'ArrowDown' || event.key === 'ArrowUp') { event.preventDefault(); setOpen(true) } }\n</script>\n<template>\n <div :class=\"['modo-morph-select flex flex-col', fullWidth ? 'w-full' : 'inline-flex']\" data-modo-morph-select=\"\" :data-modo-size=\"size\" :data-modo-radius=\"radius\" :data-modo-variant=\"variant\">\n <label v-if=\"label\" :for=\"fieldId\" class=\"modo-morph-select__label\">\n {{ label }}\n <span v-if=\"required\" aria-hidden=\"true\" class=\"text-destructive ml-0.5\">*</span>\n </label>\n <div ref=\"trigger\"\n :class=\"['modo-morph-select__field modo-field-wrapper', wrapperVariantClasses, radiusClasses, sz.control, disabled ? 'opacity-60 cursor-not-allowed' : '']\"\n :data-modo-morph-origin=\"phase === 'closed' ? (landed ? 'landed' : undefined) : phase === 'closing' ? 'closing' : 'hidden'\">\n <button :id=\"fieldId\" ref=\"button\" v-bind=\"$attrs\" type=\"button\" role=\"combobox\" aria-haspopup=\"listbox\"\n :class=\"['modo-morph-select__button flex h-full w-full items-center gap-2 text-left outline-none', sz.padX, sz.text, disabled ? 'cursor-not-allowed' : readonly ? 'cursor-default' : 'cursor-pointer']\"\n :aria-expanded=\"open\" :aria-controls=\"phase !== 'closed' ? `${fieldId}-listbox` : undefined\"\n :aria-label=\"!label ? ariaLabel : undefined\" :aria-describedby=\"describedBy\" :aria-invalid=\"hasError || undefined\"\n :aria-required=\"required || undefined\" :aria-readonly=\"readonly || undefined\" :disabled=\"disabled\" @keydown=\"key\" @click=\"setOpen(!open)\">\n <span :class=\"['modo-morph-select__value min-w-0 flex-1 truncate', selected ? 'text-foreground' : 'text-muted-foreground']\" :data-modo-placeholder=\"selected ? undefined : ''\">\n <slot :option=\"selected\"><RenderContent :content=\"selected?.label ?? placeholder ?? loc.morphSelect.placeholder\" /></slot>\n </span>\n <ChevronDownIcon class=\"modo-morph-select__chevron\" aria-hidden=\"true\" :class=\"['shrink-0 transition-transform duration-base ease-standard', affordanceIconClass, sz.icon, open ? 'rotate-180' : '']\" />\n </button>\n </div>\n <Typography v-if=\"hasError && errorText\" :id=\"errorId\" variant=\"caption\" size=\"medium\" color=\"danger\" as=\"p\">{{ errorText }}</Typography>\n <Typography v-else-if=\"helperText\" :id=\"helperId\" variant=\"caption\" size=\"medium\" color=\"muted\" as=\"p\">{{ helperText }}</Typography>\n </div>\n</template>\n"],"mappings":"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"}
|
package/dist/mood-ui.css
CHANGED
|
@@ -1703,6 +1703,31 @@ to { background-position: 1rem 0;
|
|
|
1703
1703
|
transition: none !important;
|
|
1704
1704
|
}
|
|
1705
1705
|
}
|
|
1706
|
+
|
|
1707
|
+
/* Valux's fused, inverted silhouette. Explicit Mood variants keep their own surfaces. */
|
|
1708
|
+
.modo-liquid-toast[data-modo-variant="liquid"] {
|
|
1709
|
+
--lt-surface: color-mix(in srgb, var(--primary) 6%, var(--foreground));
|
|
1710
|
+
--lt-ink: var(--background);
|
|
1711
|
+
--lt-title: color-mix(in srgb, var(--lt-tone) 52%, var(--lt-ink));
|
|
1712
|
+
--lt-muted: color-mix(in srgb, var(--lt-ink), transparent 18%);
|
|
1713
|
+
--lt-icon: var(--lt-title);
|
|
1714
|
+
--lt-icon-bg: color-mix(in srgb, var(--lt-tone) 24%, transparent);
|
|
1715
|
+
--lt-action: var(--lt-ink);
|
|
1716
|
+
--lt-action-bg: color-mix(in srgb, var(--lt-ink), transparent 88%);
|
|
1717
|
+
--lt-action-bg-hover: var(--lt-action-bg);
|
|
1718
|
+
--lt-action-bg-active: var(--lt-action-bg);
|
|
1719
|
+
--lt-dismiss: var(--lt-ink);
|
|
1720
|
+
}
|
|
1721
|
+
[data-modo-variant="liquid"] .modo-liquid-toast__shade { display: none; }
|
|
1722
|
+
[data-modo-variant="liquid"] .modo-liquid-toast__goo {
|
|
1723
|
+
filter: var(--modo-liquid-toast-goo) drop-shadow(0 0 1px color-mix(in srgb, var(--foreground), transparent 45%)) drop-shadow(0 8px 22px rgb(0 0 0 / .28));
|
|
1724
|
+
}
|
|
1725
|
+
[data-modo-variant="liquid"] .modo-liquid-toast__pill { font-weight: 700; }
|
|
1726
|
+
[data-modo-variant="liquid"] .modo-liquid-toast__description { line-height: 1.55; }
|
|
1727
|
+
[data-modo-variant="liquid"] .modo-liquid-toast__close:not(:focus-visible) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
|
|
1728
|
+
|
|
1729
|
+
.modo-liquid-toast[data-modo-color="neutral"] { --lt-tone: var(--foreground); }
|
|
1730
|
+
.modo-liquid-toast[data-modo-color="neutral"][data-modo-variant="liquid"] { --lt-tone: var(--lt-ink); }
|
|
1706
1731
|
/* Tooltip that EMERGES from its control: born as a thin streak at the facing
|
|
1707
1732
|
edge, opening sideways, and folding back INTO the control on exit. Color,
|
|
1708
1733
|
size, shadow and radius come from the provider through the same classes as
|
|
@@ -2071,6 +2096,14 @@ to { background-position: 1rem 0;
|
|
|
2071
2096
|
}
|
|
2072
2097
|
}
|
|
2073
2098
|
|
|
2099
|
+
/* Valux resting material, including the larger two-line chip. */
|
|
2100
|
+
[data-modo-morph-tooltip] { max-width: 16rem; line-height: 1.35; box-shadow: none; }
|
|
2101
|
+
[data-modo-morph-tooltip][data-modo-size="medium"] { padding: .4375rem .75rem; font-size: .75rem; }
|
|
2102
|
+
[data-modo-morph-tooltip][data-modo-color="default"] { background: color-mix(in srgb, var(--foreground) 92%, transparent); color: var(--background); border: 1px solid color-mix(in srgb, var(--background), transparent 82%); backdrop-filter: blur(8px); }
|
|
2103
|
+
[data-modo-morph-tooltip]:has(.modo-morph-tooltip__title) { max-width: 19rem; padding: .625rem .875rem .6875rem; }
|
|
2104
|
+
.modo-morph-tooltip__title { margin: 0; font-size: .8125rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
|
|
2105
|
+
.modo-morph-tooltip__description { margin: .25rem 0 0; font-size: .6875rem; font-weight: 400; line-height: 1.5; color: color-mix(in srgb, currentColor, transparent 45%); }
|
|
2106
|
+
|
|
2074
2107
|
.button-group-horizontal[data-v-65ac2459] > :not(:first-child):not(:last-child) {
|
|
2075
2108
|
border-radius: 0;
|
|
2076
2109
|
}
|
|
@@ -2723,48 +2756,76 @@ to {
|
|
|
2723
2756
|
.modo-switch-track[data-v-d83ba848] {
|
|
2724
2757
|
transition-property: background-color, box-shadow, --tw-ring-color;
|
|
2725
2758
|
}
|
|
2726
|
-
/*
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
Colors
|
|
2731
|
-
this file only owns geometry and the lens material. */
|
|
2759
|
+
/* Switch — pill track (fully round), CHIP thumb (elongated, soft
|
|
2760
|
+
corners — deliberately not a circle). While dragging, the thumb turns
|
|
2761
|
+
into a LIQUID LENS: it grows past the track as translucent glass
|
|
2762
|
+
(backdrop blur + inner highlights) and the fill color follows the
|
|
2763
|
+
finger. Colors derive from tokens — dark mode needs no extra rules. */
|
|
2732
2764
|
.modo-glass-switch {
|
|
2733
|
-
|
|
2734
|
-
--modo-glass-switch-
|
|
2735
|
-
--modo-glass-switch-
|
|
2736
|
-
--modo-glass-switch-
|
|
2737
|
-
--modo-glass-switch-thumb: calc(var(--modo-glass-switch-h)
|
|
2738
|
-
--modo-glass-switch-travel: calc(var(--modo-glass-switch-w) - var(--modo-glass-switch-thumb) - var(--modo-glass-switch-pad) * 2);
|
|
2765
|
+
--modo-glass-switch-w: 3.25rem;
|
|
2766
|
+
--modo-glass-switch-h: 1.625rem;
|
|
2767
|
+
--modo-glass-switch-pad: 3px;
|
|
2768
|
+
--modo-glass-switch-thumb-h: calc(var(--modo-glass-switch-h) - var(--modo-glass-switch-pad) * 2);
|
|
2769
|
+
--modo-glass-switch-thumb-w: calc(var(--modo-glass-switch-thumb-h) * 1.3);
|
|
2770
|
+
--modo-glass-switch-travel: calc(var(--modo-glass-switch-w) - var(--modo-glass-switch-thumb-w) - var(--modo-glass-switch-pad) * 2);
|
|
2771
|
+
display: inline-flex;
|
|
2772
|
+
align-items: flex-start;
|
|
2773
|
+
gap: 0.75rem;
|
|
2774
|
+
cursor: pointer;
|
|
2775
|
+
font-family: var(--font-sans);
|
|
2739
2776
|
-webkit-tap-highlight-color: transparent;
|
|
2777
|
+
-webkit-user-select: none;
|
|
2778
|
+
user-select: none;
|
|
2779
|
+
}
|
|
2780
|
+
|
|
2781
|
+
.modo-glass-switch[data-modo-size="small"] {
|
|
2782
|
+
--modo-glass-switch-w: 2.75rem;
|
|
2783
|
+
--modo-glass-switch-h: 1.375rem;
|
|
2784
|
+
--modo-glass-switch-pad: 2px;
|
|
2740
2785
|
}
|
|
2741
2786
|
|
|
2742
|
-
.modo-glass-switch[data-modo-size="
|
|
2743
|
-
|
|
2744
|
-
|
|
2787
|
+
.modo-glass-switch[data-modo-size="large"] {
|
|
2788
|
+
--modo-glass-switch-w: 3.75rem;
|
|
2789
|
+
--modo-glass-switch-h: 1.875rem;
|
|
2790
|
+
--modo-glass-switch-pad: 3px;
|
|
2791
|
+
}
|
|
2792
|
+
|
|
2793
|
+
.modo-glass-switch[data-modo-label-first] {
|
|
2794
|
+
flex-direction: row-reverse;
|
|
2795
|
+
justify-content: space-between;
|
|
2796
|
+
}
|
|
2797
|
+
|
|
2798
|
+
/* Real checkbox, visually hidden but focusable. */
|
|
2799
|
+
.modo-glass-switch__input {
|
|
2800
|
+
position: absolute;
|
|
2801
|
+
width: 1px;
|
|
2802
|
+
height: 1px;
|
|
2803
|
+
margin: 0;
|
|
2804
|
+
opacity: 0;
|
|
2805
|
+
pointer-events: none;
|
|
2806
|
+
}
|
|
2745
2807
|
|
|
2808
|
+
/* The track IS 100% circular: full pill. */
|
|
2746
2809
|
.modo-glass-switch__track {
|
|
2747
2810
|
position: relative;
|
|
2748
2811
|
flex: none;
|
|
2749
|
-
display: inline-block;
|
|
2750
2812
|
width: var(--modo-glass-switch-w);
|
|
2751
2813
|
height: var(--modo-glass-switch-h);
|
|
2814
|
+
background: color-mix(in srgb, var(--foreground), transparent 78%);
|
|
2752
2815
|
/* On BOTH track and thumb: the touch usually lands on the thumb, and
|
|
2753
2816
|
iOS fires pointercancel (to scroll) unless the target opts out. */
|
|
2754
2817
|
touch-action: none;
|
|
2755
|
-
transition-property: background-color, box-shadow, --tw-ring-color;
|
|
2756
|
-
transition-duration: var(--duration-base);
|
|
2757
|
-
transition-timing-function: var(--ease-standard);
|
|
2758
2818
|
}
|
|
2759
2819
|
|
|
2760
2820
|
/* Checked color lives on a fill layer whose opacity FOLLOWS the finger
|
|
2761
|
-
while dragging (the
|
|
2821
|
+
while dragging (the hook drives it inline); settled states transition. */
|
|
2762
2822
|
.modo-glass-switch__fill {
|
|
2763
2823
|
position: absolute;
|
|
2764
2824
|
inset: 0;
|
|
2765
2825
|
border-radius: inherit;
|
|
2826
|
+
|
|
2766
2827
|
opacity: 0;
|
|
2767
|
-
transition: opacity
|
|
2828
|
+
transition: opacity 0.25s ease;
|
|
2768
2829
|
}
|
|
2769
2830
|
|
|
2770
2831
|
.modo-glass-switch__input:checked + .modo-glass-switch__track > .modo-glass-switch__fill {
|
|
@@ -2775,56 +2836,96 @@ to {
|
|
|
2775
2836
|
transition: none;
|
|
2776
2837
|
}
|
|
2777
2838
|
|
|
2839
|
+
.modo-glass-switch__input:focus-visible + .modo-glass-switch__track {
|
|
2840
|
+
box-shadow: 0 0 0 2px var(--ring);
|
|
2841
|
+
}
|
|
2842
|
+
|
|
2843
|
+
.modo-glass-switch__input:disabled + .modo-glass-switch__track {
|
|
2844
|
+
opacity: 0.45;
|
|
2845
|
+
cursor: not-allowed;
|
|
2846
|
+
}
|
|
2847
|
+
|
|
2848
|
+
.modo-glass-switch:has(.modo-glass-switch__input:disabled) {
|
|
2849
|
+
cursor: not-allowed;
|
|
2850
|
+
opacity: 0.75;
|
|
2851
|
+
}
|
|
2852
|
+
|
|
2853
|
+
/* CHIP thumb: elongated, corners at ~42% of its height — not a circle.
|
|
2854
|
+
Always WHITE, in both modes and in every state (user's call after
|
|
2855
|
+
living with the dark chip). */
|
|
2778
2856
|
.modo-glass-switch__thumb {
|
|
2779
2857
|
position: absolute;
|
|
2780
2858
|
top: var(--modo-glass-switch-pad);
|
|
2781
2859
|
left: var(--modo-glass-switch-pad);
|
|
2782
2860
|
touch-action: none;
|
|
2783
|
-
width: var(--modo-glass-switch-thumb);
|
|
2784
|
-
height: var(--modo-glass-switch-thumb);
|
|
2785
|
-
border-radius:
|
|
2786
|
-
background
|
|
2787
|
-
box-shadow:
|
|
2861
|
+
width: var(--modo-glass-switch-thumb-w);
|
|
2862
|
+
height: var(--modo-glass-switch-thumb-h);
|
|
2863
|
+
border-radius: calc(var(--modo-glass-switch-thumb-h) * 0.42);
|
|
2864
|
+
background: #fff;
|
|
2865
|
+
box-shadow:
|
|
2866
|
+
0 1px 2px rgba(0, 0, 0, 0.24),
|
|
2867
|
+
0 3px 8px rgba(0, 0, 0, 0.15);
|
|
2788
2868
|
transition:
|
|
2789
|
-
transform
|
|
2790
|
-
scale
|
|
2791
|
-
width
|
|
2792
|
-
background-color
|
|
2793
|
-
box-shadow
|
|
2869
|
+
transform 0.25s cubic-bezier(0.3, 1.05, 0.4, 1),
|
|
2870
|
+
scale 0.25s cubic-bezier(0.3, 1.15, 0.4, 1),
|
|
2871
|
+
width 0.2s cubic-bezier(0.3, 1.05, 0.4, 1),
|
|
2872
|
+
background-color 0.2s ease,
|
|
2873
|
+
box-shadow 0.2s ease;
|
|
2794
2874
|
}
|
|
2795
2875
|
|
|
2796
2876
|
.modo-glass-switch__input:checked + .modo-glass-switch__track > .modo-glass-switch__thumb {
|
|
2797
2877
|
transform: translateX(var(--modo-glass-switch-travel));
|
|
2798
2878
|
}
|
|
2799
2879
|
|
|
2800
|
-
/*
|
|
2801
|
-
.modo-glass-switch:active:not(:has(
|
|
2802
|
-
width: calc(var(--modo-glass-switch-thumb) * 1.
|
|
2880
|
+
/* iOS squish: pressing stretches the chip toward the empty side. */
|
|
2881
|
+
.modo-glass-switch:active:not(:has(input:disabled, input[readonly])) .modo-glass-switch__thumb {
|
|
2882
|
+
width: calc(var(--modo-glass-switch-thumb-w) * 1.12);
|
|
2803
2883
|
}
|
|
2804
2884
|
|
|
2805
|
-
.modo-glass-
|
|
2806
|
-
transform: translateX(calc(var(--modo-glass-switch-travel) - var(--modo-glass-switch-thumb) * 0.
|
|
2885
|
+
.modo-glass-switch__input:checked:active + .modo-glass-switch__track > .modo-glass-switch__thumb {
|
|
2886
|
+
transform: translateX(calc(var(--modo-glass-switch-travel) - var(--modo-glass-switch-thumb-w) * 0.12));
|
|
2807
2887
|
}
|
|
2808
2888
|
|
|
2809
|
-
/* LIQUID LENS while dragging: the
|
|
2810
|
-
glass
|
|
2811
|
-
|
|
2889
|
+
/* LIQUID LENS while dragging: the chip grows past the track and turns to
|
|
2890
|
+
glass — the fill and the page show through it. The hook owns the
|
|
2891
|
+
translate (no easing lag); scale/material morph in smoothly. */
|
|
2812
2892
|
.modo-glass-switch__track[data-modo-dragging] > .modo-glass-switch__thumb {
|
|
2813
2893
|
z-index: 1;
|
|
2814
2894
|
will-change: transform;
|
|
2815
2895
|
scale: 1.35;
|
|
2816
|
-
|
|
2896
|
+
/* WHITE-based glass in both modes — the lens stays a bright droplet. */
|
|
2897
|
+
background: color-mix(in srgb, #fff, transparent 45%);
|
|
2817
2898
|
-webkit-backdrop-filter: blur(3px) saturate(1.5);
|
|
2818
2899
|
backdrop-filter: blur(3px) saturate(1.5);
|
|
2819
2900
|
box-shadow:
|
|
2820
|
-
inset 0 0 0 1px color-mix(in
|
|
2821
|
-
inset 0
|
|
2822
|
-
|
|
2901
|
+
inset 0 0 0 1px color-mix(in srgb, #fff, transparent 55%),
|
|
2902
|
+
inset 0 6px 10px color-mix(in srgb, #fff, transparent 70%),
|
|
2903
|
+
0 4px 14px rgba(0, 0, 0, 0.25);
|
|
2823
2904
|
transition:
|
|
2824
|
-
scale
|
|
2825
|
-
width
|
|
2826
|
-
background-color
|
|
2827
|
-
box-shadow
|
|
2905
|
+
scale 0.2s cubic-bezier(0.3, 1.15, 0.4, 1),
|
|
2906
|
+
width 0.2s ease,
|
|
2907
|
+
background-color 0.2s ease,
|
|
2908
|
+
box-shadow 0.2s ease;
|
|
2909
|
+
}
|
|
2910
|
+
|
|
2911
|
+
.modo-glass-switch__text {
|
|
2912
|
+
display: flex;
|
|
2913
|
+
flex-direction: column;
|
|
2914
|
+
gap: 0.125rem;
|
|
2915
|
+
padding-top: 0.0625rem;
|
|
2916
|
+
}
|
|
2917
|
+
|
|
2918
|
+
.modo-glass-switch__label {
|
|
2919
|
+
font-size: 0.875rem;
|
|
2920
|
+
font-weight: 600;
|
|
2921
|
+
color: var(--foreground);
|
|
2922
|
+
}
|
|
2923
|
+
|
|
2924
|
+
.modo-glass-switch[data-modo-size="small"] .modo-glass-switch__label { font-size: 0.8125rem; }
|
|
2925
|
+
|
|
2926
|
+
.modo-glass-switch__description {
|
|
2927
|
+
font-size: 0.75rem;
|
|
2928
|
+
color: color-mix(in srgb, var(--foreground), transparent 40%);
|
|
2828
2929
|
}
|
|
2829
2930
|
|
|
2830
2931
|
/* Phones: cheaper glass — heavy backdrop blur janks the drag. */
|
|
@@ -2842,23 +2943,55 @@ to {
|
|
|
2842
2943
|
.modo-glass-switch__thumb {
|
|
2843
2944
|
transition: none;
|
|
2844
2945
|
}
|
|
2845
|
-
.modo-glass-switch__track[data-modo-dragging] > .modo-glass-switch__thumb {
|
|
2846
|
-
scale: 1;
|
|
2847
|
-
}
|
|
2848
2946
|
}
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
(Menu material, Menu choreography).
|
|
2853
|
-
|
|
2854
|
-
|
|
2947
|
+
|
|
2948
|
+
.modo-glass-switch[data-modo-size="xsmall"] { --modo-glass-switch-w: 2.25rem; --modo-glass-switch-h: 1.125rem; --modo-glass-switch-pad: 2px; }
|
|
2949
|
+
/* Select — an Input-look trigger whose panel morphs out of the field
|
|
2950
|
+
(Menu material, Menu choreography). Options hover as full pills. */
|
|
2951
|
+
.modo-morph-select {
|
|
2952
|
+
--modo-morph-select-h: 2.5rem;
|
|
2953
|
+
--modo-morph-select-px: 1rem;
|
|
2954
|
+
--modo-morph-select-fs: 0.875rem;
|
|
2955
|
+
--modo-morph-select-tone: var(--primary);
|
|
2956
|
+
position: relative;
|
|
2957
|
+
font-family: var(--font-sans);
|
|
2958
|
+
}
|
|
2959
|
+
|
|
2960
|
+
.modo-morph-select[data-modo-size="small"] { --modo-morph-select-h: 2rem; --modo-morph-select-px: 0.75rem; --modo-morph-select-fs: 0.8125rem; }
|
|
2961
|
+
.modo-morph-select[data-modo-size="large"] { --modo-morph-select-h: 3rem; --modo-morph-select-px: 1.25rem; --modo-morph-select-fs: 1rem; }
|
|
2962
|
+
|
|
2963
|
+
.modo-morph-select[data-modo-tone="danger"] { --modo-morph-select-tone: var(--destructive); }
|
|
2964
|
+
.modo-morph-select[data-modo-tone="success"] { --modo-morph-select-tone: var(--success); }
|
|
2965
|
+
.modo-morph-select[data-modo-tone="warning"] { --modo-morph-select-tone: var(--warning); }
|
|
2966
|
+
|
|
2967
|
+
.modo-morph-select__label {
|
|
2968
|
+
display: block;
|
|
2969
|
+
margin: 0 0 0.375rem 0.25rem;
|
|
2970
|
+
font-size: 0.8125rem;
|
|
2971
|
+
font-weight: 600;
|
|
2972
|
+
color: color-mix(in srgb, var(--foreground), transparent 22%);
|
|
2973
|
+
}
|
|
2855
2974
|
|
|
2856
2975
|
/* The FIELD is the morph origin — hiding it whole makes the panel grow
|
|
2857
2976
|
out of the bordered box, border included. */
|
|
2858
|
-
.modo-morph-select__field {
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2977
|
+
.modo-morph-select[data-modo-variant="outline"] .modo-morph-select__field {
|
|
2978
|
+
border: 1px solid color-mix(in srgb, var(--foreground), transparent 78%);
|
|
2979
|
+
|
|
2980
|
+
background: transparent;
|
|
2981
|
+
transition:
|
|
2982
|
+
border-color 0.2s ease,
|
|
2983
|
+
box-shadow 0.2s ease,
|
|
2984
|
+
opacity 0.15s ease;
|
|
2985
|
+
}
|
|
2986
|
+
|
|
2987
|
+
.modo-morph-select[data-modo-variant="filled"] .modo-morph-select__field {
|
|
2988
|
+
background: color-mix(in srgb, var(--foreground) 3%, var(--background));
|
|
2989
|
+
border-color: color-mix(in srgb, var(--foreground), transparent 90%);
|
|
2990
|
+
}
|
|
2991
|
+
|
|
2992
|
+
.modo-morph-select[data-modo-variant="outline"] .modo-morph-select__field:focus-within {
|
|
2993
|
+
border-color: color-mix(in srgb, var(--primary), transparent 25%);
|
|
2994
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary), transparent 85%);
|
|
2862
2995
|
}
|
|
2863
2996
|
|
|
2864
2997
|
.modo-morph-select__field[data-modo-morph-origin="hidden"] {
|
|
@@ -2869,7 +3002,57 @@ to {
|
|
|
2869
3002
|
.modo-morph-select__field[data-modo-morph-origin="closing"] {
|
|
2870
3003
|
opacity: 1;
|
|
2871
3004
|
pointer-events: none;
|
|
2872
|
-
transition: opacity
|
|
3005
|
+
transition: opacity 0.1s ease 0.24s;
|
|
3006
|
+
}
|
|
3007
|
+
|
|
3008
|
+
.modo-morph-select__button {
|
|
3009
|
+
display: flex;
|
|
3010
|
+
align-items: center;
|
|
3011
|
+
justify-content: space-between;
|
|
3012
|
+
gap: 0.5rem;
|
|
3013
|
+
width: 100%;
|
|
3014
|
+
height: calc(var(--modo-morph-select-h) - 2px);
|
|
3015
|
+
padding: 0 calc(var(--modo-morph-select-px) * 0.6) 0 var(--modo-morph-select-px);
|
|
3016
|
+
border: none;
|
|
3017
|
+
background: none;
|
|
3018
|
+
color: var(--foreground);
|
|
3019
|
+
font: inherit;
|
|
3020
|
+
font-size: var(--modo-morph-select-fs);
|
|
3021
|
+
text-align: left;
|
|
3022
|
+
cursor: pointer;
|
|
3023
|
+
outline: none;
|
|
3024
|
+
}
|
|
3025
|
+
|
|
3026
|
+
.modo-morph-select__button:disabled {
|
|
3027
|
+
opacity: 0.5;
|
|
3028
|
+
cursor: not-allowed;
|
|
3029
|
+
}
|
|
3030
|
+
|
|
3031
|
+
.modo-morph-select__value[data-modo-placeholder] {
|
|
3032
|
+
color: color-mix(in srgb, var(--foreground), transparent 58%);
|
|
3033
|
+
}
|
|
3034
|
+
|
|
3035
|
+
.modo-morph-select__chevron {
|
|
3036
|
+
flex: none;
|
|
3037
|
+
width: 0.875rem;
|
|
3038
|
+
height: 0.875rem;
|
|
3039
|
+
color: color-mix(in srgb, var(--foreground), transparent 45%);
|
|
3040
|
+
transition: transform 0.25s cubic-bezier(0.3, 1.05, 0.4, 1);
|
|
3041
|
+
}
|
|
3042
|
+
|
|
3043
|
+
.modo-morph-select__button[aria-expanded="true"] .modo-morph-select__chevron {
|
|
3044
|
+
transform: rotate(180deg);
|
|
3045
|
+
}
|
|
3046
|
+
|
|
3047
|
+
.modo-morph-select__msg {
|
|
3048
|
+
display: block;
|
|
3049
|
+
margin: 0.375rem 0.25rem 0;
|
|
3050
|
+
font-size: 0.75rem;
|
|
3051
|
+
color: color-mix(in srgb, var(--foreground), transparent 40%);
|
|
3052
|
+
}
|
|
3053
|
+
|
|
3054
|
+
.modo-morph-select[data-modo-tone] .modo-morph-select__msg {
|
|
3055
|
+
color: color-mix(in srgb, var(--modo-morph-select-tone) 85%, var(--foreground));
|
|
2873
3056
|
}
|
|
2874
3057
|
|
|
2875
3058
|
/* ===== Panel: Menu material ===== */
|
|
@@ -2878,19 +3061,18 @@ to {
|
|
|
2878
3061
|
min-width: 12rem;
|
|
2879
3062
|
max-width: 92vw; /* width is synced to the trigger field at open */
|
|
2880
3063
|
max-height: var(--modo-menu-max-height);
|
|
2881
|
-
padding:
|
|
3064
|
+
padding: 0.5rem;
|
|
2882
3065
|
overflow-x: hidden;
|
|
2883
3066
|
overflow-y: auto;
|
|
2884
|
-
border: 1px solid var(--
|
|
3067
|
+
border: 1px solid color-mix(in srgb, var(--foreground), transparent 92%);
|
|
2885
3068
|
border-radius: var(--modo-menu-radius);
|
|
2886
3069
|
background: var(--modo-menu-surface);
|
|
2887
3070
|
-webkit-backdrop-filter: var(--modo-menu-backdrop);
|
|
2888
3071
|
backdrop-filter: var(--modo-menu-backdrop);
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
var(--shadow-lg);
|
|
3072
|
+
color: var(--foreground);
|
|
3073
|
+
box-shadow: inset 0 -1px 0 var(--modo-menu-lowlight);
|
|
2892
3074
|
font-family: var(--font-sans);
|
|
2893
|
-
font-size:
|
|
3075
|
+
font-size: 0.8125rem;
|
|
2894
3076
|
}
|
|
2895
3077
|
|
|
2896
3078
|
[data-modo-morph-select-panel][data-modo-phase="opening"],
|
|
@@ -2902,20 +3084,29 @@ to {
|
|
|
2902
3084
|
opacity: 0;
|
|
2903
3085
|
filter: blur(6px);
|
|
2904
3086
|
transition:
|
|
2905
|
-
opacity
|
|
2906
|
-
filter
|
|
3087
|
+
opacity 0.16s ease,
|
|
3088
|
+
filter 0.16s ease;
|
|
2907
3089
|
}
|
|
2908
3090
|
|
|
2909
3091
|
.modo-morph-select__search {
|
|
2910
|
-
padding
|
|
3092
|
+
padding: 0.25rem 0.25rem 0.5rem;
|
|
2911
3093
|
}
|
|
2912
3094
|
|
|
2913
|
-
.modo-morph-select__search
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
3095
|
+
.modo-morph-select__search input {
|
|
3096
|
+
width: 100%;
|
|
3097
|
+
height: 2rem;
|
|
3098
|
+
padding: 0 0.75rem;
|
|
3099
|
+
border: 1px solid color-mix(in srgb, var(--foreground), transparent 82%);
|
|
3100
|
+
border-radius: 999px;
|
|
3101
|
+
background: transparent;
|
|
3102
|
+
color: var(--foreground);
|
|
3103
|
+
font: inherit;
|
|
3104
|
+
font-size: 0.8125rem;
|
|
3105
|
+
outline: none;
|
|
3106
|
+
}
|
|
3107
|
+
|
|
3108
|
+
.modo-morph-select__search input:focus {
|
|
3109
|
+
border-color: color-mix(in srgb, var(--primary), transparent 30%);
|
|
2919
3110
|
}
|
|
2920
3111
|
|
|
2921
3112
|
.modo-morph-select__list {
|
|
@@ -2924,22 +3115,43 @@ to {
|
|
|
2924
3115
|
gap: 1px;
|
|
2925
3116
|
}
|
|
2926
3117
|
|
|
3118
|
+
/* Options hover as FULL PILLS — same token AND same feel as the Menu:
|
|
3119
|
+
one hover color across menus, selects, and friends. */
|
|
2927
3120
|
.modo-morph-select__option {
|
|
2928
3121
|
display: flex;
|
|
2929
3122
|
align-items: center;
|
|
2930
3123
|
justify-content: space-between;
|
|
2931
|
-
gap:
|
|
2932
|
-
padding:
|
|
2933
|
-
border
|
|
3124
|
+
gap: 0.75rem;
|
|
3125
|
+
padding: 0.5rem 0.875rem;
|
|
3126
|
+
border: none;
|
|
3127
|
+
border-radius: 999px;
|
|
3128
|
+
background: transparent;
|
|
3129
|
+
color: inherit;
|
|
3130
|
+
font: inherit;
|
|
2934
3131
|
text-align: left;
|
|
2935
3132
|
cursor: pointer;
|
|
2936
|
-
|
|
3133
|
+
outline: none;
|
|
3134
|
+
transition: background-color 0.25s ease;
|
|
3135
|
+
}
|
|
3136
|
+
|
|
3137
|
+
.modo-morph-select__option:hover:not(:disabled),
|
|
3138
|
+
.modo-morph-select__option:focus-visible {
|
|
3139
|
+
background: var(--modo-menu-item-hover);
|
|
2937
3140
|
}
|
|
2938
3141
|
|
|
2939
3142
|
.modo-morph-select__option:disabled {
|
|
3143
|
+
opacity: 0.45;
|
|
2940
3144
|
cursor: not-allowed;
|
|
2941
3145
|
}
|
|
2942
3146
|
|
|
3147
|
+
/* Readable primary on ANY panel: mixing toward on-surface lightens it
|
|
3148
|
+
in dark mode (indigo -> lavender) and deepens it slightly in light —
|
|
3149
|
+
the same trick the toast tones use. */
|
|
3150
|
+
.modo-morph-select__option[aria-selected="true"] {
|
|
3151
|
+
color: color-mix(in srgb, var(--primary) 60%, var(--foreground));
|
|
3152
|
+
font-weight: 600;
|
|
3153
|
+
}
|
|
3154
|
+
|
|
2943
3155
|
.modo-morph-select__option-text {
|
|
2944
3156
|
display: flex;
|
|
2945
3157
|
flex-direction: column;
|
|
@@ -2947,27 +3159,34 @@ to {
|
|
|
2947
3159
|
min-width: 0;
|
|
2948
3160
|
}
|
|
2949
3161
|
|
|
3162
|
+
.modo-morph-select__option-desc {
|
|
3163
|
+
font-size: 0.6875rem;
|
|
3164
|
+
font-weight: 400;
|
|
3165
|
+
color: color-mix(in srgb, var(--foreground), transparent 45%);
|
|
3166
|
+
}
|
|
3167
|
+
|
|
2950
3168
|
.modo-morph-select__check {
|
|
2951
|
-
|
|
2952
|
-
|
|
3169
|
+
flex: none;
|
|
3170
|
+
width: 0.875rem;
|
|
3171
|
+
height: 0.875rem;
|
|
2953
3172
|
}
|
|
2954
3173
|
|
|
2955
3174
|
.modo-morph-select__empty {
|
|
2956
3175
|
margin: 0;
|
|
2957
|
-
padding:
|
|
3176
|
+
padding: 0.75rem 0.875rem;
|
|
3177
|
+
color: color-mix(in srgb, var(--foreground), transparent 45%);
|
|
2958
3178
|
}
|
|
2959
3179
|
|
|
2960
3180
|
/* Return-ghost: the traveling label sits where the FIELD's text lives
|
|
2961
|
-
(left-inset, vertically centered
|
|
2962
|
-
|
|
3181
|
+
(left-inset, vertically centered) — never panel-centered, or it would
|
|
3182
|
+
visibly jump to the left at landing. */
|
|
2963
3183
|
.modo-morph-select-ghost {
|
|
2964
3184
|
position: absolute;
|
|
2965
3185
|
inset: 0;
|
|
2966
3186
|
display: flex;
|
|
2967
3187
|
align-items: center;
|
|
2968
3188
|
justify-content: flex-start;
|
|
2969
|
-
padding: 0 var(--modo-morph-select-ghost-px,
|
|
2970
|
-
font-size: var(--modo-morph-select-ghost-fs, inherit);
|
|
3189
|
+
padding: 0 var(--modo-morph-select-ghost-px, 1rem);
|
|
2971
3190
|
pointer-events: none;
|
|
2972
3191
|
}
|
|
2973
3192
|
|
|
@@ -2979,11 +3198,19 @@ to {
|
|
|
2979
3198
|
|
|
2980
3199
|
@media (prefers-reduced-motion: reduce) {
|
|
2981
3200
|
.modo-morph-select__field,
|
|
2982
|
-
.modo-morph-
|
|
3201
|
+
.modo-morph-select__chevron {
|
|
2983
3202
|
transition: none;
|
|
2984
3203
|
}
|
|
2985
3204
|
}
|
|
2986
3205
|
|
|
3206
|
+
.modo-morph-select[data-modo-size="xsmall"] { --modo-morph-select-h: 1.75rem; --modo-morph-select-px: .625rem; --modo-morph-select-fs: .75rem; }
|
|
3207
|
+
.modo-morph-select__field { height: var(--modo-morph-select-h); }
|
|
3208
|
+
.modo-morph-select__field:has([aria-invalid="true"]) { border-color: var(--destructive); }
|
|
3209
|
+
.modo-morph-select__button { justify-content: space-between; }
|
|
3210
|
+
|
|
3211
|
+
.modo-morph-select[data-modo-radius="medium"] .modo-morph-select__field { border-radius: 1rem; }
|
|
3212
|
+
[data-modo-morph-select-panel][data-modo-radius="medium"] { border-radius: 1.5rem; }
|
|
3213
|
+
|
|
2987
3214
|
.modo-canvas[data-v-7ff0ca23] {
|
|
2988
3215
|
/* Foreground stroke uses the border token, alpha modulated by intensity.
|
|
2989
3216
|
`color-mix` keeps it light/dark/palette-aware automatically. */
|
|
@@ -3492,7 +3719,6 @@ to {
|
|
|
3492
3719
|
--radius-xl: calc(var(--radius) + 4px);
|
|
3493
3720
|
--radius-2xl: 1rem;
|
|
3494
3721
|
--radius-3xl: 1.5rem;
|
|
3495
|
-
--shadow-sm: 0 1px 2px 0 #0000000a, 0 1px 3px 0 #0000000f;
|
|
3496
3722
|
--shadow-md: 0 2px 4px -1px #0000000f, 0 4px 8px -2px #00000014;
|
|
3497
3723
|
--shadow-lg: 0 4px 8px -2px #00000014, 0 12px 24px -6px #0000001f;
|
|
3498
3724
|
--shadow-xl: 0 8px 16px -4px #0000001a, 0 24px 48px -12px #0000002e;
|
|
@@ -10,7 +10,7 @@ export declare function createLiquidToast(): ((options: Input) => string | numbe
|
|
|
10
10
|
items: Readonly<import('vue').ShallowRef<LiquidToastItem[], LiquidToastItem[]>>;
|
|
11
11
|
push: (options: Input) => string | number;
|
|
12
12
|
update: (id: string | number, patch: Partial<LiquidToastOptions>) => void;
|
|
13
|
-
dismiss: (id
|
|
13
|
+
dismiss: (id?: string | number) => void;
|
|
14
14
|
dismissAll: () => void;
|
|
15
15
|
remove: (id: string | number) => void;
|
|
16
16
|
promise: <T>(value: Promise<T>, messages: {
|