@revikornmann/muka-ui 0.43.1 → 0.44.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/build/manifest.json +10 -0
- package/dist/cjs/components/Breadcrumb/Breadcrumb.css +26 -82
- package/dist/cjs/components/Breadcrumb/Breadcrumb.js +17 -18
- package/dist/cjs/components/Breadcrumb/Breadcrumb.js.map +1 -1
- package/dist/cjs/components/Breadcrumb/BreadcrumbContextMenu.js +38 -0
- package/dist/cjs/components/Breadcrumb/BreadcrumbContextMenu.js.map +1 -0
- package/dist/cjs/components/Breadcrumb/index.js.map +1 -1
- package/dist/cjs/components/Chip/Chip.css +185 -136
- package/dist/cjs/components/Chip/Chip.js +50 -12
- package/dist/cjs/components/Chip/Chip.js.map +1 -1
- package/dist/cjs/components/Chip/index.js.map +1 -1
- package/dist/cjs/components/Combobox/Combobox.js +1 -1
- package/dist/cjs/components/Combobox/Combobox.js.map +1 -1
- package/dist/cjs/components/DropdownSelect/DropdownSelect.js +1 -1
- package/dist/cjs/components/DropdownSelect/DropdownSelect.js.map +1 -1
- package/dist/cjs/components/index.js +2 -4
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/esm/components/Breadcrumb/Breadcrumb.css +26 -82
- package/dist/esm/components/Breadcrumb/Breadcrumb.js +17 -18
- package/dist/esm/components/Breadcrumb/Breadcrumb.js.map +1 -1
- package/dist/esm/components/Breadcrumb/BreadcrumbContextMenu.js +34 -0
- package/dist/esm/components/Breadcrumb/BreadcrumbContextMenu.js.map +1 -0
- package/dist/esm/components/Breadcrumb/index.js +1 -1
- package/dist/esm/components/Breadcrumb/index.js.map +1 -1
- package/dist/esm/components/Chip/Chip.css +185 -136
- package/dist/esm/components/Chip/Chip.js +50 -12
- package/dist/esm/components/Chip/Chip.js.map +1 -1
- package/dist/esm/components/Chip/index.js.map +1 -1
- package/dist/esm/components/Combobox/Combobox.js +1 -1
- package/dist/esm/components/Combobox/Combobox.js.map +1 -1
- package/dist/esm/components/DropdownSelect/DropdownSelect.js +1 -1
- package/dist/esm/components/DropdownSelect/DropdownSelect.js.map +1 -1
- package/dist/esm/components/index.js +1 -2
- package/dist/esm/components/index.js.map +1 -1
- package/dist/styles/components/Breadcrumb.css +26 -82
- package/dist/styles/components/Chip.css +185 -136
- package/dist/styles/index.css +553 -661
- package/dist/styles/muka-dark.css +553 -661
- package/dist/styles/muka-light.css +553 -661
- package/dist/styles/tokens-bouwplan-dark.css +49 -30
- package/dist/styles/tokens-bouwplan-light.css +49 -30
- package/dist/styles/tokens-fscl-dark.css +49 -30
- package/dist/styles/tokens-fscl-light.css +49 -30
- package/dist/styles/tokens-grip-dark.css +49 -30
- package/dist/styles/tokens-grip-light.css +49 -30
- package/dist/styles/tokens-muka-dark.css +49 -30
- package/dist/styles/tokens-muka-light.css +49 -30
- package/dist/styles/tokens-wireframe-dark.css +49 -30
- package/dist/styles/tokens-wireframe-light.css +49 -30
- package/dist/styles/wireframe-dark.css +553 -661
- package/dist/styles/wireframe-light.css +553 -661
- package/dist/types/components/Breadcrumb/Breadcrumb.d.ts +18 -25
- package/dist/types/components/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/types/components/Breadcrumb/BreadcrumbContextMenu.d.ts +41 -0
- package/dist/types/components/Breadcrumb/BreadcrumbContextMenu.d.ts.map +1 -0
- package/dist/types/components/Breadcrumb/index.d.ts +1 -1
- package/dist/types/components/Breadcrumb/index.d.ts.map +1 -1
- package/dist/types/components/Chip/Chip.d.ts +66 -14
- package/dist/types/components/Chip/Chip.d.ts.map +1 -1
- package/dist/types/components/Chip/index.d.ts +1 -1
- package/dist/types/components/Chip/index.d.ts.map +1 -1
- package/dist/types/components/index.d.ts +2 -3
- package/dist/types/components/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/tokens/t4-components/breadcrumb.json +28 -0
- package/tokens/t4-components/chip.json +85 -1
- package/dist/cjs/components/ContextSelect/ContextSelect.css +0 -117
- package/dist/cjs/components/ContextSelect/ContextSelect.js +0 -49
- package/dist/cjs/components/ContextSelect/ContextSelect.js.map +0 -1
- package/dist/cjs/components/ContextSelect/index.js +0 -11
- package/dist/cjs/components/ContextSelect/index.js.map +0 -1
- package/dist/esm/components/ContextSelect/ContextSelect.css +0 -117
- package/dist/esm/components/ContextSelect/ContextSelect.js +0 -45
- package/dist/esm/components/ContextSelect/ContextSelect.js.map +0 -1
- package/dist/esm/components/ContextSelect/index.js +0 -3
- package/dist/esm/components/ContextSelect/index.js.map +0 -1
- package/dist/styles/components/ContextSelect.css +0 -117
- package/dist/types/components/ContextSelect/ContextSelect.d.ts +0 -68
- package/dist/types/components/ContextSelect/ContextSelect.d.ts.map +0 -1
- package/dist/types/components/ContextSelect/index.d.ts +0 -3
- package/dist/types/components/ContextSelect/index.d.ts.map +0 -1
|
@@ -1799,36 +1799,55 @@ body {
|
|
|
1799
1799
|
--chip-padding-trailing-sm: 2px;
|
|
1800
1800
|
--chip-padding-trailing-md: 0.25rem;
|
|
1801
1801
|
--chip-padding-trailing-lg: 0.25rem;
|
|
1802
|
-
--chip-
|
|
1803
|
-
--chip-
|
|
1804
|
-
--chip-
|
|
1805
|
-
--chip-
|
|
1806
|
-
--chip-
|
|
1807
|
-
--chip-
|
|
1808
|
-
--chip-
|
|
1809
|
-
--chip-
|
|
1810
|
-
--chip-
|
|
1811
|
-
--chip-
|
|
1812
|
-
--chip-
|
|
1813
|
-
--chip-
|
|
1814
|
-
--chip-
|
|
1815
|
-
--chip-
|
|
1816
|
-
--chip-
|
|
1817
|
-
--chip-
|
|
1818
|
-
--chip-
|
|
1819
|
-
--chip-
|
|
1820
|
-
--chip-
|
|
1821
|
-
--chip-
|
|
1822
|
-
--chip-
|
|
1823
|
-
--chip-
|
|
1824
|
-
--chip-
|
|
1825
|
-
--chip-
|
|
1826
|
-
--chip-
|
|
1827
|
-
--chip-
|
|
1828
|
-
--chip-
|
|
1829
|
-
--chip-
|
|
1830
|
-
--chip-
|
|
1831
|
-
--chip-
|
|
1802
|
+
--chip-padding-labelEnd-sm: 0.75rem;
|
|
1803
|
+
--chip-padding-labelEnd-md: 1rem;
|
|
1804
|
+
--chip-padding-labelEnd-lg: 1.25rem;
|
|
1805
|
+
--chip-neutral-background-default: #2a2a2a;
|
|
1806
|
+
--chip-neutral-background-hover: #313131;
|
|
1807
|
+
--chip-ghost-background-default: transparent;
|
|
1808
|
+
--chip-ghost-background-hover: rgba(255, 255, 255, 0.035);
|
|
1809
|
+
--chip-ghost-foreground-default: #7b7b7b;
|
|
1810
|
+
--chip-ghost-foreground-hover: #eeeeee;
|
|
1811
|
+
--chip-trailing-default-background-default: #222222;
|
|
1812
|
+
--chip-trailing-default-background-hover: #2a2a2a;
|
|
1813
|
+
--chip-trailing-default-background-pressed: #313131;
|
|
1814
|
+
--chip-trailing-default-foreground-default: #b4b4b4;
|
|
1815
|
+
--chip-trailing-default-foreground-hover: #b4b4b4;
|
|
1816
|
+
--chip-trailing-default-foreground-pressed: #b4b4b4;
|
|
1817
|
+
--chip-trailing-success-background-default: #132d21;
|
|
1818
|
+
--chip-trailing-success-background-hover: #113b29;
|
|
1819
|
+
--chip-trailing-success-background-pressed: #174933;
|
|
1820
|
+
--chip-trailing-success-foreground-default: #3dd68c;
|
|
1821
|
+
--chip-trailing-success-foreground-hover: #3dd68c;
|
|
1822
|
+
--chip-trailing-success-foreground-pressed: #3dd68c;
|
|
1823
|
+
--chip-trailing-warning-background-default: #302008;
|
|
1824
|
+
--chip-trailing-warning-background-hover: #3f2700;
|
|
1825
|
+
--chip-trailing-warning-background-pressed: #4d3000;
|
|
1826
|
+
--chip-trailing-warning-foreground-default: #ffca16;
|
|
1827
|
+
--chip-trailing-warning-foreground-hover: #ffca16;
|
|
1828
|
+
--chip-trailing-warning-foreground-pressed: #ffca16;
|
|
1829
|
+
--chip-trailing-error-background-default: #3d181e;
|
|
1830
|
+
--chip-trailing-error-background-hover: #4a1a22;
|
|
1831
|
+
--chip-trailing-error-background-pressed: #571c26;
|
|
1832
|
+
--chip-trailing-error-foreground-default: #fea6a6;
|
|
1833
|
+
--chip-trailing-error-foreground-hover: #fea6a6;
|
|
1834
|
+
--chip-trailing-error-foreground-pressed: #fea6a6;
|
|
1835
|
+
--chip-trailing-info-background-default: #0d2847;
|
|
1836
|
+
--chip-trailing-info-background-hover: #003362;
|
|
1837
|
+
--chip-trailing-info-background-pressed: #004074;
|
|
1838
|
+
--chip-trailing-info-foreground-default: #70b8ff;
|
|
1839
|
+
--chip-trailing-info-foreground-hover: #70b8ff;
|
|
1840
|
+
--chip-trailing-info-foreground-pressed: #70b8ff;
|
|
1841
|
+
--chip-trailing-ghost-border-default: #313131;
|
|
1842
|
+
--chip-trailing-ghost-background-default: transparent;
|
|
1843
|
+
--chip-trailing-ghost-background-hover: #111111;
|
|
1844
|
+
--chip-trailing-ghost-background-pressed: #313131;
|
|
1845
|
+
--chip-trailing-ghost-foreground-default: #7b7b7b;
|
|
1846
|
+
--chip-trailing-ghost-foreground-hover: #b4b4b4;
|
|
1847
|
+
--chip-trailing-ghost-foreground-pressed: #b4b4b4;
|
|
1848
|
+
--breadcrumb-gap-separator: 0.25rem;
|
|
1849
|
+
--breadcrumb-separator-color: #606060;
|
|
1850
|
+
--breadcrumb-truncate-current-minWidth: 8rem;
|
|
1832
1851
|
--checkbox-size-sm: 1.25rem;
|
|
1833
1852
|
--checkbox-size-default: 1.5rem;
|
|
1834
1853
|
--checkbox-size-lg: 2rem;
|
|
@@ -2975,169 +2994,6 @@ body {
|
|
|
2975
2994
|
}
|
|
2976
2995
|
|
|
2977
2996
|
|
|
2978
|
-
/* Toggle */
|
|
2979
|
-
/* Toggle Component Styles - Using Muka Design Tokens */
|
|
2980
|
-
|
|
2981
|
-
/* Wrapper container */
|
|
2982
|
-
.muka-toggle {
|
|
2983
|
-
display: flex;
|
|
2984
|
-
align-items: center;
|
|
2985
|
-
gap: var(--spacing-2);
|
|
2986
|
-
position: relative;
|
|
2987
|
-
padding: var(--spacing-4) 0;
|
|
2988
|
-
}
|
|
2989
|
-
|
|
2990
|
-
.muka-toggle--with-caption {
|
|
2991
|
-
padding: var(--spacing-5) 0;
|
|
2992
|
-
}
|
|
2993
|
-
|
|
2994
|
-
.muka-toggle--disabled {
|
|
2995
|
-
opacity: 0.6;
|
|
2996
|
-
}
|
|
2997
|
-
|
|
2998
|
-
/* Icon */
|
|
2999
|
-
.muka-toggle__icon {
|
|
3000
|
-
display: flex;
|
|
3001
|
-
align-items: center;
|
|
3002
|
-
justify-content: center;
|
|
3003
|
-
flex-shrink: 0;
|
|
3004
|
-
width: var(--icon-size-default);
|
|
3005
|
-
height: var(--icon-size-default);
|
|
3006
|
-
color: var(--color-text-default-default);
|
|
3007
|
-
}
|
|
3008
|
-
|
|
3009
|
-
.muka-toggle__icon svg {
|
|
3010
|
-
width: 100%;
|
|
3011
|
-
height: 100%;
|
|
3012
|
-
}
|
|
3013
|
-
|
|
3014
|
-
/* Content area (label + caption) */
|
|
3015
|
-
.muka-toggle__content {
|
|
3016
|
-
display: flex;
|
|
3017
|
-
flex-direction: column;
|
|
3018
|
-
flex: 1;
|
|
3019
|
-
min-width: 0;
|
|
3020
|
-
gap: var(--spacing-1);
|
|
3021
|
-
}
|
|
3022
|
-
|
|
3023
|
-
/* Label */
|
|
3024
|
-
.muka-toggle__label {
|
|
3025
|
-
font-family: var(--text-label-lg-regular-fontFamily);
|
|
3026
|
-
font-weight: var(--text-label-lg-regular-fontWeight);
|
|
3027
|
-
font-size: var(--text-label-lg-regular-fontSize);
|
|
3028
|
-
line-height: var(--text-label-lg-regular-lineHeight);
|
|
3029
|
-
color: var(--color-text-default-default);
|
|
3030
|
-
cursor: pointer;
|
|
3031
|
-
}
|
|
3032
|
-
|
|
3033
|
-
.muka-toggle--with-caption .muka-toggle__label {
|
|
3034
|
-
font-family: var(--text-label-lg-semibold-fontFamily);
|
|
3035
|
-
font-weight: var(--text-label-lg-semibold-fontWeight);
|
|
3036
|
-
font-size: var(--text-label-lg-semibold-fontSize);
|
|
3037
|
-
line-height: var(--text-label-lg-semibold-lineHeight);
|
|
3038
|
-
}
|
|
3039
|
-
|
|
3040
|
-
.muka-toggle--disabled .muka-toggle__label {
|
|
3041
|
-
color: var(--color-text-subtle-default);
|
|
3042
|
-
cursor: not-allowed;
|
|
3043
|
-
}
|
|
3044
|
-
|
|
3045
|
-
/* Caption */
|
|
3046
|
-
.muka-toggle__caption {
|
|
3047
|
-
font-family: var(--text-body-base-regular-fontFamily);
|
|
3048
|
-
font-weight: var(--text-body-base-regular-fontWeight);
|
|
3049
|
-
font-size: var(--text-body-base-regular-fontSize);
|
|
3050
|
-
line-height: var(--text-body-base-regular-lineHeight);
|
|
3051
|
-
color: var(--color-text-subtle-default);
|
|
3052
|
-
}
|
|
3053
|
-
|
|
3054
|
-
/* Switch container */
|
|
3055
|
-
.muka-toggle__switch {
|
|
3056
|
-
position: relative;
|
|
3057
|
-
display: inline-flex;
|
|
3058
|
-
flex-shrink: 0;
|
|
3059
|
-
cursor: pointer;
|
|
3060
|
-
}
|
|
3061
|
-
|
|
3062
|
-
.muka-toggle--disabled .muka-toggle__switch {
|
|
3063
|
-
cursor: not-allowed;
|
|
3064
|
-
}
|
|
3065
|
-
|
|
3066
|
-
/* Hidden native input */
|
|
3067
|
-
.muka-toggle__input {
|
|
3068
|
-
position: absolute;
|
|
3069
|
-
width: 1px;
|
|
3070
|
-
height: 1px;
|
|
3071
|
-
padding: 0;
|
|
3072
|
-
margin: -1px;
|
|
3073
|
-
overflow: hidden;
|
|
3074
|
-
clip: rect(0, 0, 0, 0);
|
|
3075
|
-
white-space: nowrap;
|
|
3076
|
-
border: 0;
|
|
3077
|
-
}
|
|
3078
|
-
|
|
3079
|
-
/* Track (background pill) */
|
|
3080
|
-
.muka-toggle__track {
|
|
3081
|
-
display: flex;
|
|
3082
|
-
align-items: center;
|
|
3083
|
-
width: var(--toggle-track-width);
|
|
3084
|
-
height: var(--toggle-track-height);
|
|
3085
|
-
border-radius: var(--toggle-track-radius);
|
|
3086
|
-
background-color: var(--toggle-track-color-off);
|
|
3087
|
-
transition: background-color 0.2s ease;
|
|
3088
|
-
box-shadow: inset 0 1px 4px 0 rgba(0, 0, 0, 0.16);
|
|
3089
|
-
position: relative;
|
|
3090
|
-
}
|
|
3091
|
-
|
|
3092
|
-
/* Knob (sliding circle) */
|
|
3093
|
-
.muka-toggle__knob {
|
|
3094
|
-
position: absolute;
|
|
3095
|
-
width: var(--toggle-knob-size);
|
|
3096
|
-
height: var(--toggle-knob-size);
|
|
3097
|
-
border-radius: var(--border-radius-full);
|
|
3098
|
-
background-color: var(--toggle-knob-color-default);
|
|
3099
|
-
box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);
|
|
3100
|
-
left: var(--toggle-knob-offset);
|
|
3101
|
-
transition: left 0.2s ease, transform 0.2s ease;
|
|
3102
|
-
}
|
|
3103
|
-
|
|
3104
|
-
/* Focus state */
|
|
3105
|
-
.muka-toggle__input:focus-visible + .muka-toggle__track {
|
|
3106
|
-
outline: 2px solid var(--color-border-focus);
|
|
3107
|
-
outline-offset: 2px;
|
|
3108
|
-
}
|
|
3109
|
-
|
|
3110
|
-
/* Checked (on) state */
|
|
3111
|
-
.muka-toggle__input:checked + .muka-toggle__track {
|
|
3112
|
-
background-color: var(--toggle-track-color-on);
|
|
3113
|
-
}
|
|
3114
|
-
|
|
3115
|
-
.muka-toggle__input:checked + .muka-toggle__track .muka-toggle__knob {
|
|
3116
|
-
left: calc(var(--toggle-track-width) - var(--toggle-knob-size) - var(--toggle-knob-offset));
|
|
3117
|
-
}
|
|
3118
|
-
|
|
3119
|
-
/* Disabled state */
|
|
3120
|
-
.muka-toggle--disabled .muka-toggle__track {
|
|
3121
|
-
background-color: var(--toggle-track-color-disabled);
|
|
3122
|
-
box-shadow: none;
|
|
3123
|
-
}
|
|
3124
|
-
|
|
3125
|
-
.muka-toggle--disabled .muka-toggle__knob {
|
|
3126
|
-
background-color: var(--toggle-knob-color-disabled);
|
|
3127
|
-
box-shadow: none;
|
|
3128
|
-
}
|
|
3129
|
-
|
|
3130
|
-
/* Divider */
|
|
3131
|
-
.muka-toggle__divider {
|
|
3132
|
-
position: absolute;
|
|
3133
|
-
bottom: 0;
|
|
3134
|
-
left: 0;
|
|
3135
|
-
right: 0;
|
|
3136
|
-
height: 1px;
|
|
3137
|
-
background-color: var(--color-border-muted);
|
|
3138
|
-
}
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
2997
|
/* Toast */
|
|
3142
2998
|
/* Toast Component Styles - Using Muka Design Tokens */
|
|
3143
2999
|
|
|
@@ -4304,11 +4160,174 @@ body {
|
|
|
4304
4160
|
line-height: var(--text-body-base-regular-lineHeight);
|
|
4305
4161
|
}
|
|
4306
4162
|
|
|
4307
|
-
.muka-tabs__panel:focus-visible {
|
|
4163
|
+
.muka-tabs__panel:focus-visible {
|
|
4164
|
+
outline: 2px solid var(--color-border-focus);
|
|
4165
|
+
outline-offset: 2px;
|
|
4166
|
+
}
|
|
4167
|
+
|
|
4168
|
+
|
|
4169
|
+
/* Toggle */
|
|
4170
|
+
/* Toggle Component Styles - Using Muka Design Tokens */
|
|
4171
|
+
|
|
4172
|
+
/* Wrapper container */
|
|
4173
|
+
.muka-toggle {
|
|
4174
|
+
display: flex;
|
|
4175
|
+
align-items: center;
|
|
4176
|
+
gap: var(--spacing-2);
|
|
4177
|
+
position: relative;
|
|
4178
|
+
padding: var(--spacing-4) 0;
|
|
4179
|
+
}
|
|
4180
|
+
|
|
4181
|
+
.muka-toggle--with-caption {
|
|
4182
|
+
padding: var(--spacing-5) 0;
|
|
4183
|
+
}
|
|
4184
|
+
|
|
4185
|
+
.muka-toggle--disabled {
|
|
4186
|
+
opacity: 0.6;
|
|
4187
|
+
}
|
|
4188
|
+
|
|
4189
|
+
/* Icon */
|
|
4190
|
+
.muka-toggle__icon {
|
|
4191
|
+
display: flex;
|
|
4192
|
+
align-items: center;
|
|
4193
|
+
justify-content: center;
|
|
4194
|
+
flex-shrink: 0;
|
|
4195
|
+
width: var(--icon-size-default);
|
|
4196
|
+
height: var(--icon-size-default);
|
|
4197
|
+
color: var(--color-text-default-default);
|
|
4198
|
+
}
|
|
4199
|
+
|
|
4200
|
+
.muka-toggle__icon svg {
|
|
4201
|
+
width: 100%;
|
|
4202
|
+
height: 100%;
|
|
4203
|
+
}
|
|
4204
|
+
|
|
4205
|
+
/* Content area (label + caption) */
|
|
4206
|
+
.muka-toggle__content {
|
|
4207
|
+
display: flex;
|
|
4208
|
+
flex-direction: column;
|
|
4209
|
+
flex: 1;
|
|
4210
|
+
min-width: 0;
|
|
4211
|
+
gap: var(--spacing-1);
|
|
4212
|
+
}
|
|
4213
|
+
|
|
4214
|
+
/* Label */
|
|
4215
|
+
.muka-toggle__label {
|
|
4216
|
+
font-family: var(--text-label-lg-regular-fontFamily);
|
|
4217
|
+
font-weight: var(--text-label-lg-regular-fontWeight);
|
|
4218
|
+
font-size: var(--text-label-lg-regular-fontSize);
|
|
4219
|
+
line-height: var(--text-label-lg-regular-lineHeight);
|
|
4220
|
+
color: var(--color-text-default-default);
|
|
4221
|
+
cursor: pointer;
|
|
4222
|
+
}
|
|
4223
|
+
|
|
4224
|
+
.muka-toggle--with-caption .muka-toggle__label {
|
|
4225
|
+
font-family: var(--text-label-lg-semibold-fontFamily);
|
|
4226
|
+
font-weight: var(--text-label-lg-semibold-fontWeight);
|
|
4227
|
+
font-size: var(--text-label-lg-semibold-fontSize);
|
|
4228
|
+
line-height: var(--text-label-lg-semibold-lineHeight);
|
|
4229
|
+
}
|
|
4230
|
+
|
|
4231
|
+
.muka-toggle--disabled .muka-toggle__label {
|
|
4232
|
+
color: var(--color-text-subtle-default);
|
|
4233
|
+
cursor: not-allowed;
|
|
4234
|
+
}
|
|
4235
|
+
|
|
4236
|
+
/* Caption */
|
|
4237
|
+
.muka-toggle__caption {
|
|
4238
|
+
font-family: var(--text-body-base-regular-fontFamily);
|
|
4239
|
+
font-weight: var(--text-body-base-regular-fontWeight);
|
|
4240
|
+
font-size: var(--text-body-base-regular-fontSize);
|
|
4241
|
+
line-height: var(--text-body-base-regular-lineHeight);
|
|
4242
|
+
color: var(--color-text-subtle-default);
|
|
4243
|
+
}
|
|
4244
|
+
|
|
4245
|
+
/* Switch container */
|
|
4246
|
+
.muka-toggle__switch {
|
|
4247
|
+
position: relative;
|
|
4248
|
+
display: inline-flex;
|
|
4249
|
+
flex-shrink: 0;
|
|
4250
|
+
cursor: pointer;
|
|
4251
|
+
}
|
|
4252
|
+
|
|
4253
|
+
.muka-toggle--disabled .muka-toggle__switch {
|
|
4254
|
+
cursor: not-allowed;
|
|
4255
|
+
}
|
|
4256
|
+
|
|
4257
|
+
/* Hidden native input */
|
|
4258
|
+
.muka-toggle__input {
|
|
4259
|
+
position: absolute;
|
|
4260
|
+
width: 1px;
|
|
4261
|
+
height: 1px;
|
|
4262
|
+
padding: 0;
|
|
4263
|
+
margin: -1px;
|
|
4264
|
+
overflow: hidden;
|
|
4265
|
+
clip: rect(0, 0, 0, 0);
|
|
4266
|
+
white-space: nowrap;
|
|
4267
|
+
border: 0;
|
|
4268
|
+
}
|
|
4269
|
+
|
|
4270
|
+
/* Track (background pill) */
|
|
4271
|
+
.muka-toggle__track {
|
|
4272
|
+
display: flex;
|
|
4273
|
+
align-items: center;
|
|
4274
|
+
width: var(--toggle-track-width);
|
|
4275
|
+
height: var(--toggle-track-height);
|
|
4276
|
+
border-radius: var(--toggle-track-radius);
|
|
4277
|
+
background-color: var(--toggle-track-color-off);
|
|
4278
|
+
transition: background-color 0.2s ease;
|
|
4279
|
+
box-shadow: inset 0 1px 4px 0 rgba(0, 0, 0, 0.16);
|
|
4280
|
+
position: relative;
|
|
4281
|
+
}
|
|
4282
|
+
|
|
4283
|
+
/* Knob (sliding circle) */
|
|
4284
|
+
.muka-toggle__knob {
|
|
4285
|
+
position: absolute;
|
|
4286
|
+
width: var(--toggle-knob-size);
|
|
4287
|
+
height: var(--toggle-knob-size);
|
|
4288
|
+
border-radius: var(--border-radius-full);
|
|
4289
|
+
background-color: var(--toggle-knob-color-default);
|
|
4290
|
+
box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);
|
|
4291
|
+
left: var(--toggle-knob-offset);
|
|
4292
|
+
transition: left 0.2s ease, transform 0.2s ease;
|
|
4293
|
+
}
|
|
4294
|
+
|
|
4295
|
+
/* Focus state */
|
|
4296
|
+
.muka-toggle__input:focus-visible + .muka-toggle__track {
|
|
4308
4297
|
outline: 2px solid var(--color-border-focus);
|
|
4309
4298
|
outline-offset: 2px;
|
|
4310
4299
|
}
|
|
4311
4300
|
|
|
4301
|
+
/* Checked (on) state */
|
|
4302
|
+
.muka-toggle__input:checked + .muka-toggle__track {
|
|
4303
|
+
background-color: var(--toggle-track-color-on);
|
|
4304
|
+
}
|
|
4305
|
+
|
|
4306
|
+
.muka-toggle__input:checked + .muka-toggle__track .muka-toggle__knob {
|
|
4307
|
+
left: calc(var(--toggle-track-width) - var(--toggle-knob-size) - var(--toggle-knob-offset));
|
|
4308
|
+
}
|
|
4309
|
+
|
|
4310
|
+
/* Disabled state */
|
|
4311
|
+
.muka-toggle--disabled .muka-toggle__track {
|
|
4312
|
+
background-color: var(--toggle-track-color-disabled);
|
|
4313
|
+
box-shadow: none;
|
|
4314
|
+
}
|
|
4315
|
+
|
|
4316
|
+
.muka-toggle--disabled .muka-toggle__knob {
|
|
4317
|
+
background-color: var(--toggle-knob-color-disabled);
|
|
4318
|
+
box-shadow: none;
|
|
4319
|
+
}
|
|
4320
|
+
|
|
4321
|
+
/* Divider */
|
|
4322
|
+
.muka-toggle__divider {
|
|
4323
|
+
position: absolute;
|
|
4324
|
+
bottom: 0;
|
|
4325
|
+
left: 0;
|
|
4326
|
+
right: 0;
|
|
4327
|
+
height: 1px;
|
|
4328
|
+
background-color: var(--color-border-muted);
|
|
4329
|
+
}
|
|
4330
|
+
|
|
4312
4331
|
|
|
4313
4332
|
/* Table */
|
|
4314
4333
|
/* Table Component Styles - Using Muka Design Tokens */
|
|
@@ -4714,114 +4733,6 @@ body {
|
|
|
4714
4733
|
}
|
|
4715
4734
|
|
|
4716
4735
|
|
|
4717
|
-
/* SwipeActions */
|
|
4718
|
-
/* SwipeActions Component Styles */
|
|
4719
|
-
|
|
4720
|
-
.muka-swipe-actions {
|
|
4721
|
-
position: relative;
|
|
4722
|
-
overflow: hidden;
|
|
4723
|
-
touch-action: pan-y;
|
|
4724
|
-
-webkit-user-select: none;
|
|
4725
|
-
user-select: none;
|
|
4726
|
-
background-color: var(--color-surface-level3);
|
|
4727
|
-
}
|
|
4728
|
-
|
|
4729
|
-
.muka-swipe-actions--disabled {
|
|
4730
|
-
touch-action: auto;
|
|
4731
|
-
}
|
|
4732
|
-
|
|
4733
|
-
/* ─── Row that holds the actual content ────────────────── */
|
|
4734
|
-
|
|
4735
|
-
.muka-swipe-actions__row {
|
|
4736
|
-
position: relative;
|
|
4737
|
-
z-index: 1;
|
|
4738
|
-
background-color: inherit;
|
|
4739
|
-
will-change: transform;
|
|
4740
|
-
}
|
|
4741
|
-
|
|
4742
|
-
/* ─── Action panels — sit beneath the row ──────────────── */
|
|
4743
|
-
|
|
4744
|
-
.muka-swipe-actions__panel {
|
|
4745
|
-
position: absolute;
|
|
4746
|
-
top: 0;
|
|
4747
|
-
bottom: 0;
|
|
4748
|
-
display: flex;
|
|
4749
|
-
align-items: stretch;
|
|
4750
|
-
z-index: 0;
|
|
4751
|
-
}
|
|
4752
|
-
|
|
4753
|
-
.muka-swipe-actions__panel--left {
|
|
4754
|
-
left: 0;
|
|
4755
|
-
}
|
|
4756
|
-
|
|
4757
|
-
.muka-swipe-actions__panel--right {
|
|
4758
|
-
right: 0;
|
|
4759
|
-
}
|
|
4760
|
-
|
|
4761
|
-
/* ─── Single action button ─────────────────────────────── */
|
|
4762
|
-
|
|
4763
|
-
.muka-swipe-actions__button {
|
|
4764
|
-
display: flex;
|
|
4765
|
-
flex-direction: column;
|
|
4766
|
-
align-items: center;
|
|
4767
|
-
justify-content: center;
|
|
4768
|
-
gap: var(--spacing-1);
|
|
4769
|
-
border: none;
|
|
4770
|
-
cursor: pointer;
|
|
4771
|
-
padding: var(--spacing-2);
|
|
4772
|
-
background-color: var(--color-surface-level2);
|
|
4773
|
-
color: var(--color-text-default-default);
|
|
4774
|
-
font-family: var(--text-label-sm-semibold-fontFamily);
|
|
4775
|
-
font-weight: var(--text-label-sm-semibold-fontWeight);
|
|
4776
|
-
font-size: var(--text-label-sm-semibold-fontSize);
|
|
4777
|
-
line-height: var(--text-label-sm-semibold-lineHeight);
|
|
4778
|
-
-webkit-tap-highlight-color: transparent;
|
|
4779
|
-
transition: filter 0.12s ease;
|
|
4780
|
-
}
|
|
4781
|
-
|
|
4782
|
-
.muka-swipe-actions__button:hover {
|
|
4783
|
-
filter: brightness(0.95);
|
|
4784
|
-
}
|
|
4785
|
-
|
|
4786
|
-
.muka-swipe-actions__button:focus-visible {
|
|
4787
|
-
outline: 2px solid var(--color-action-default);
|
|
4788
|
-
outline-offset: -2px;
|
|
4789
|
-
}
|
|
4790
|
-
|
|
4791
|
-
.muka-swipe-actions__button-icon {
|
|
4792
|
-
display: inline-flex;
|
|
4793
|
-
align-items: center;
|
|
4794
|
-
justify-content: center;
|
|
4795
|
-
}
|
|
4796
|
-
|
|
4797
|
-
/* ─── Color variants ───────────────────────────────────── */
|
|
4798
|
-
|
|
4799
|
-
.muka-swipe-actions__button--neutral {
|
|
4800
|
-
background-color: var(--color-surface-level2);
|
|
4801
|
-
color: var(--color-text-default-default);
|
|
4802
|
-
}
|
|
4803
|
-
|
|
4804
|
-
.muka-swipe-actions__button--primary {
|
|
4805
|
-
background-color: var(--color-action-default);
|
|
4806
|
-
color: var(--color-text-default-inverse);
|
|
4807
|
-
}
|
|
4808
|
-
|
|
4809
|
-
.muka-swipe-actions__button--success {
|
|
4810
|
-
background-color: var(--color-state-success-default);
|
|
4811
|
-
color: var(--color-text-default-inverse);
|
|
4812
|
-
}
|
|
4813
|
-
|
|
4814
|
-
.muka-swipe-actions__button--warning {
|
|
4815
|
-
background-color: var(--color-state-warning-default);
|
|
4816
|
-
color: var(--color-text-default-default);
|
|
4817
|
-
}
|
|
4818
|
-
|
|
4819
|
-
.muka-swipe-actions__button--destructive {
|
|
4820
|
-
background-color: var(--color-state-error-default);
|
|
4821
|
-
color: var(--color-text-default-inverse);
|
|
4822
|
-
}
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
4736
|
/* Spinner */
|
|
4826
4737
|
/* Spinner Component Styles */
|
|
4827
4738
|
|
|
@@ -12544,153 +12455,33 @@ li.muka-listitem {
|
|
|
12544
12455
|
mask: radial-gradient(farthest-side, transparent 63%, #000 65%, #000 95%, transparent 97%);
|
|
12545
12456
|
}
|
|
12546
12457
|
|
|
12547
|
-
.muka-data-pie-chart__spinner {
|
|
12548
|
-
animation: muka-data-pie-chart-spin 0.9s linear infinite;
|
|
12549
|
-
}
|
|
12550
|
-
|
|
12551
|
-
@keyframes muka-data-pie-chart-spin {
|
|
12552
|
-
to {
|
|
12553
|
-
transform: rotate(360deg);
|
|
12554
|
-
}
|
|
12555
|
-
}
|
|
12556
|
-
|
|
12557
|
-
@media (prefers-reduced-motion: reduce) {
|
|
12558
|
-
.muka-data-pie-chart__spinner {
|
|
12559
|
-
animation-duration: 2.5s;
|
|
12560
|
-
}
|
|
12561
|
-
}
|
|
12562
|
-
|
|
12563
|
-
.muka-data-pie-chart__value {
|
|
12564
|
-
position: absolute;
|
|
12565
|
-
inset: 0;
|
|
12566
|
-
display: flex;
|
|
12567
|
-
align-items: center;
|
|
12568
|
-
justify-content: center;
|
|
12569
|
-
font-family: var(--text-body-base-bold-fontFamily);
|
|
12570
|
-
font-weight: var(--text-body-base-bold-fontWeight);
|
|
12571
|
-
font-size: var(--text-body-base-bold-fontSize);
|
|
12572
|
-
line-height: var(--text-body-base-bold-lineHeight);
|
|
12573
|
-
color: var(--color-text-default-default);
|
|
12574
|
-
}
|
|
12575
|
-
|
|
12576
|
-
|
|
12577
|
-
/* ContextSelect */
|
|
12578
|
-
/* ContextSelect — split label (navigate) + chevron menu button (switch)
|
|
12579
|
-
*
|
|
12580
|
-
* Figma (5623:8651 / 5631:9344):
|
|
12581
|
-
* - Root: gap spacing/1 (4px) between label group and chevron
|
|
12582
|
-
* - Label group: gap spacing/2 (8px) icon↔label, pl spacing/2 (8px)
|
|
12583
|
-
* - Icons: 16px (icon.size.xs)
|
|
12584
|
-
*/
|
|
12585
|
-
|
|
12586
|
-
.muka-context-select {
|
|
12587
|
-
display: inline-flex;
|
|
12588
|
-
position: relative;
|
|
12589
|
-
align-items: flex-start;
|
|
12590
|
-
gap: var(--spacing-1, 4px);
|
|
12591
|
-
}
|
|
12592
|
-
|
|
12593
|
-
.muka-context-select__label-group {
|
|
12594
|
-
display: inline-flex;
|
|
12595
|
-
align-items: center;
|
|
12596
|
-
gap: var(--spacing-2, 8px);
|
|
12597
|
-
height: var(--size-2xl, 32px);
|
|
12598
|
-
padding-left: var(--spacing-2, 8px);
|
|
12599
|
-
padding-right: 0;
|
|
12600
|
-
border-radius: var(--border-radius-lg);
|
|
12601
|
-
color: var(--color-text-default-default);
|
|
12602
|
-
text-decoration: none;
|
|
12603
|
-
border: none;
|
|
12604
|
-
background: transparent;
|
|
12605
|
-
font: inherit;
|
|
12606
|
-
cursor: default;
|
|
12607
|
-
}
|
|
12608
|
-
|
|
12609
|
-
.muka-context-select__label-group--link,
|
|
12610
|
-
.muka-context-select__label-group--button {
|
|
12611
|
-
cursor: pointer;
|
|
12612
|
-
}
|
|
12613
|
-
|
|
12614
|
-
.muka-context-select__label-group--link:hover .muka-context-select__label,
|
|
12615
|
-
.muka-context-select__label-group--button:hover .muka-context-select__label,
|
|
12616
|
-
.muka-context-select__label-group--link:focus-visible .muka-context-select__label,
|
|
12617
|
-
.muka-context-select__label-group--button:focus-visible .muka-context-select__label {
|
|
12618
|
-
text-decoration: underline;
|
|
12619
|
-
text-underline-offset: 2px;
|
|
12620
|
-
}
|
|
12621
|
-
|
|
12622
|
-
.muka-context-select__label-group--link:focus-visible,
|
|
12623
|
-
.muka-context-select__label-group--button:focus-visible {
|
|
12624
|
-
outline: 2px solid var(--color-border-focus);
|
|
12625
|
-
outline-offset: 2px;
|
|
12626
|
-
}
|
|
12627
|
-
|
|
12628
|
-
.muka-context-select__label-group--button:disabled,
|
|
12629
|
-
.muka-context-select__label-group--link[aria-disabled='true'] {
|
|
12630
|
-
cursor: not-allowed;
|
|
12631
|
-
opacity: 0.5;
|
|
12632
|
-
pointer-events: none;
|
|
12633
|
-
}
|
|
12634
|
-
|
|
12635
|
-
.muka-context-select__icon {
|
|
12636
|
-
display: inline-flex;
|
|
12637
|
-
flex-shrink: 0;
|
|
12638
|
-
align-items: center;
|
|
12639
|
-
justify-content: center;
|
|
12640
|
-
width: var(--icon-size-xs, 16px);
|
|
12641
|
-
height: var(--icon-size-xs, 16px);
|
|
12642
|
-
color: var(--color-text-default-default);
|
|
12643
|
-
}
|
|
12644
|
-
|
|
12645
|
-
.muka-context-select__icon .muka-icon {
|
|
12646
|
-
width: var(--icon-size-xs, 16px);
|
|
12647
|
-
height: var(--icon-size-xs, 16px);
|
|
12648
|
-
}
|
|
12649
|
-
|
|
12650
|
-
.muka-context-select__label {
|
|
12651
|
-
font-family: var(--text-label-sm-regular-fontFamily);
|
|
12652
|
-
font-size: var(--text-label-sm-regular-fontSize);
|
|
12653
|
-
font-weight: var(--text-label-sm-regular-fontWeight);
|
|
12654
|
-
line-height: var(--text-label-sm-regular-lineHeight);
|
|
12655
|
-
white-space: nowrap;
|
|
12656
|
-
}
|
|
12657
|
-
|
|
12658
|
-
.muka-context-select__menu-button {
|
|
12659
|
-
position: relative;
|
|
12660
|
-
display: inline-flex;
|
|
12661
|
-
flex-shrink: 0;
|
|
12662
|
-
align-items: center;
|
|
12663
|
-
justify-content: center;
|
|
12664
|
-
width: var(--size-2xl, 32px);
|
|
12665
|
-
height: var(--size-2xl, 32px);
|
|
12666
|
-
margin: 0;
|
|
12667
|
-
padding: 0;
|
|
12668
|
-
border: none;
|
|
12669
|
-
border-radius: var(--border-radius-lg);
|
|
12670
|
-
background: transparent;
|
|
12671
|
-
color: var(--color-text-default-default);
|
|
12672
|
-
cursor: pointer;
|
|
12673
|
-
}
|
|
12674
|
-
|
|
12675
|
-
.muka-context-select__menu-button:hover,
|
|
12676
|
-
.muka-context-select__menu-button:focus-visible,
|
|
12677
|
-
.muka-context-select__menu-button[data-state='open'],
|
|
12678
|
-
.muka-context-select--expanded .muka-context-select__menu-button {
|
|
12679
|
-
border: var(--border-width-regular) solid var(--color-border-default);
|
|
12458
|
+
.muka-data-pie-chart__spinner {
|
|
12459
|
+
animation: muka-data-pie-chart-spin 0.9s linear infinite;
|
|
12680
12460
|
}
|
|
12681
12461
|
|
|
12682
|
-
|
|
12683
|
-
|
|
12684
|
-
|
|
12462
|
+
@keyframes muka-data-pie-chart-spin {
|
|
12463
|
+
to {
|
|
12464
|
+
transform: rotate(360deg);
|
|
12465
|
+
}
|
|
12685
12466
|
}
|
|
12686
12467
|
|
|
12687
|
-
|
|
12688
|
-
|
|
12689
|
-
|
|
12468
|
+
@media (prefers-reduced-motion: reduce) {
|
|
12469
|
+
.muka-data-pie-chart__spinner {
|
|
12470
|
+
animation-duration: 2.5s;
|
|
12471
|
+
}
|
|
12690
12472
|
}
|
|
12691
12473
|
|
|
12692
|
-
.muka-
|
|
12693
|
-
|
|
12474
|
+
.muka-data-pie-chart__value {
|
|
12475
|
+
position: absolute;
|
|
12476
|
+
inset: 0;
|
|
12477
|
+
display: flex;
|
|
12478
|
+
align-items: center;
|
|
12479
|
+
justify-content: center;
|
|
12480
|
+
font-family: var(--text-body-base-bold-fontFamily);
|
|
12481
|
+
font-weight: var(--text-body-base-bold-fontWeight);
|
|
12482
|
+
font-size: var(--text-body-base-bold-fontSize);
|
|
12483
|
+
line-height: var(--text-body-base-bold-lineHeight);
|
|
12484
|
+
color: var(--color-text-default-default);
|
|
12694
12485
|
}
|
|
12695
12486
|
|
|
12696
12487
|
|
|
@@ -12919,28 +12710,37 @@ li.muka-listitem {
|
|
|
12919
12710
|
|
|
12920
12711
|
|
|
12921
12712
|
/* Chip */
|
|
12922
|
-
/* Chip Component Styles - Using Muka Design Tokens (Figma: Chip) */
|
|
12713
|
+
/* Chip Component Styles - Using Muka Design Tokens (Figma: Chip, Chip/Trailing) */
|
|
12923
12714
|
|
|
12715
|
+
/*
|
|
12716
|
+
* Internal custom properties (not public API):
|
|
12717
|
+
* --_chip-gap / --_chip-pad-start / --_chip-pad-end spacing per size and slot
|
|
12718
|
+
* --_chip-tr-* trailing button colours per variant
|
|
12719
|
+
*/
|
|
12924
12720
|
.muka-chip {
|
|
12925
12721
|
display: inline-flex;
|
|
12926
12722
|
align-items: center;
|
|
12723
|
+
gap: var(--_chip-gap);
|
|
12724
|
+
padding: 0 var(--_chip-pad-end) 0 var(--_chip-pad-start);
|
|
12927
12725
|
border-radius: var(--border-radius-full);
|
|
12928
12726
|
white-space: nowrap;
|
|
12929
12727
|
user-select: none;
|
|
12930
12728
|
border: var(--border-width-regular) solid transparent;
|
|
12931
12729
|
box-sizing: border-box;
|
|
12730
|
+
max-width: 100%;
|
|
12932
12731
|
}
|
|
12933
12732
|
|
|
12934
12733
|
/*
|
|
12935
|
-
* Sizes
|
|
12936
|
-
*
|
|
12937
|
-
*
|
|
12938
|
-
*
|
|
12734
|
+
* Sizes: height, gap, type, and label-edge padding. The side that carries an
|
|
12735
|
+
* adornment gets its own padding: leading icon → chip.padding.leading, and the
|
|
12736
|
+
* right edge after a leading icon → chip.padding.labelEnd (Figma lg: 20). A
|
|
12737
|
+
* trailing button → chip.padding.trailing, which wins (declared later).
|
|
12939
12738
|
*/
|
|
12940
12739
|
.muka-chip--sm {
|
|
12941
12740
|
height: var(--chip-size-height-sm);
|
|
12942
|
-
gap: var(--chip-gap-sm);
|
|
12943
|
-
|
|
12741
|
+
--_chip-gap: var(--chip-gap-sm);
|
|
12742
|
+
--_chip-pad-start: var(--chip-padding-label-sm);
|
|
12743
|
+
--_chip-pad-end: var(--chip-padding-label-sm);
|
|
12944
12744
|
font-family: var(--text-label-sm-regular-fontFamily);
|
|
12945
12745
|
font-weight: var(--text-label-sm-regular-fontWeight);
|
|
12946
12746
|
font-size: var(--text-label-sm-regular-fontSize);
|
|
@@ -12949,8 +12749,9 @@ li.muka-listitem {
|
|
|
12949
12749
|
|
|
12950
12750
|
.muka-chip--md {
|
|
12951
12751
|
height: var(--chip-size-height-md);
|
|
12952
|
-
gap: var(--chip-gap-md);
|
|
12953
|
-
|
|
12752
|
+
--_chip-gap: var(--chip-gap-md);
|
|
12753
|
+
--_chip-pad-start: var(--chip-padding-label-md);
|
|
12754
|
+
--_chip-pad-end: var(--chip-padding-label-md);
|
|
12954
12755
|
font-family: var(--text-label-md-regular-fontFamily);
|
|
12955
12756
|
font-weight: var(--text-label-md-regular-fontWeight);
|
|
12956
12757
|
font-size: var(--text-label-md-regular-fontSize);
|
|
@@ -12959,37 +12760,36 @@ li.muka-listitem {
|
|
|
12959
12760
|
|
|
12960
12761
|
.muka-chip--lg {
|
|
12961
12762
|
height: var(--chip-size-height-lg);
|
|
12962
|
-
gap: var(--chip-gap-lg);
|
|
12963
|
-
|
|
12763
|
+
--_chip-gap: var(--chip-gap-lg);
|
|
12764
|
+
--_chip-pad-start: var(--chip-padding-label-lg);
|
|
12765
|
+
--_chip-pad-end: var(--chip-padding-label-lg);
|
|
12964
12766
|
font-family: var(--text-label-lg-regular-fontFamily);
|
|
12965
12767
|
font-weight: var(--text-label-lg-regular-fontWeight);
|
|
12966
12768
|
font-size: var(--text-label-lg-regular-fontSize);
|
|
12967
12769
|
line-height: var(--text-label-lg-regular-lineHeight);
|
|
12968
12770
|
}
|
|
12969
12771
|
|
|
12970
|
-
/* Tighter leading padding when a leading icon is present */
|
|
12971
12772
|
.muka-chip--sm.muka-chip--has-icon {
|
|
12972
|
-
|
|
12773
|
+
--_chip-pad-start: var(--chip-padding-leading-sm);
|
|
12774
|
+
--_chip-pad-end: var(--chip-padding-labelEnd-sm);
|
|
12973
12775
|
}
|
|
12974
12776
|
.muka-chip--md.muka-chip--has-icon {
|
|
12975
|
-
|
|
12777
|
+
--_chip-pad-start: var(--chip-padding-leading-md);
|
|
12778
|
+
--_chip-pad-end: var(--chip-padding-labelEnd-md);
|
|
12976
12779
|
}
|
|
12977
12780
|
.muka-chip--lg.muka-chip--has-icon {
|
|
12978
|
-
|
|
12781
|
+
--_chip-pad-start: var(--chip-padding-leading-lg);
|
|
12782
|
+
--_chip-pad-end: var(--chip-padding-labelEnd-lg);
|
|
12979
12783
|
}
|
|
12980
12784
|
|
|
12981
|
-
|
|
12982
|
-
|
|
12983
|
-
.muka-chip--sm.muka-chip--expandable {
|
|
12984
|
-
padding-right: var(--chip-padding-trailing-sm);
|
|
12785
|
+
.muka-chip--sm.muka-chip--has-trailing {
|
|
12786
|
+
--_chip-pad-end: var(--chip-padding-trailing-sm);
|
|
12985
12787
|
}
|
|
12986
|
-
.muka-chip--md.muka-chip--
|
|
12987
|
-
|
|
12988
|
-
padding-right: var(--chip-padding-trailing-md);
|
|
12788
|
+
.muka-chip--md.muka-chip--has-trailing {
|
|
12789
|
+
--_chip-pad-end: var(--chip-padding-trailing-md);
|
|
12989
12790
|
}
|
|
12990
|
-
.muka-chip--lg.muka-chip--
|
|
12991
|
-
|
|
12992
|
-
padding-right: var(--chip-padding-trailing-lg);
|
|
12791
|
+
.muka-chip--lg.muka-chip--has-trailing {
|
|
12792
|
+
--_chip-pad-end: var(--chip-padding-trailing-lg);
|
|
12993
12793
|
}
|
|
12994
12794
|
|
|
12995
12795
|
/* Leading icon slot — Figma icon sizes: sm 16, md 20, lg 24 */
|
|
@@ -13036,47 +12836,117 @@ li.muka-listitem {
|
|
|
13036
12836
|
line-height: normal;
|
|
13037
12837
|
}
|
|
13038
12838
|
|
|
13039
|
-
/*
|
|
13040
|
-
.
|
|
13041
|
-
|
|
12839
|
+
/*
|
|
12840
|
+
* Label as a link or button (`href` / `onLabelClick`). It takes over the
|
|
12841
|
+
* chip's start padding (and end padding when there is no trailing button), so
|
|
12842
|
+
* the whole body up to the trailing button is its hit area.
|
|
12843
|
+
*/
|
|
12844
|
+
.muka-chip__label-action,
|
|
12845
|
+
.muka-chip__label-group {
|
|
12846
|
+
display: inline-flex;
|
|
12847
|
+
align-items: center;
|
|
12848
|
+
gap: var(--_chip-gap);
|
|
12849
|
+
min-width: 0;
|
|
12850
|
+
}
|
|
12851
|
+
|
|
12852
|
+
.muka-chip__label-action {
|
|
12853
|
+
align-self: stretch;
|
|
12854
|
+
margin: 0;
|
|
12855
|
+
margin-left: calc(-1 * var(--_chip-pad-start));
|
|
12856
|
+
padding: 0 0 0 var(--_chip-pad-start);
|
|
12857
|
+
border: none;
|
|
12858
|
+
border-radius: var(--border-radius-full);
|
|
12859
|
+
background: none;
|
|
12860
|
+
color: inherit;
|
|
12861
|
+
font: inherit;
|
|
12862
|
+
text-decoration: none;
|
|
12863
|
+
text-align: inherit;
|
|
12864
|
+
cursor: pointer;
|
|
12865
|
+
}
|
|
12866
|
+
|
|
12867
|
+
.muka-chip--has-label-action:not(.muka-chip--has-trailing) .muka-chip__label-action {
|
|
12868
|
+
margin-right: calc(-1 * var(--_chip-pad-end));
|
|
12869
|
+
padding-right: var(--_chip-pad-end);
|
|
12870
|
+
}
|
|
12871
|
+
|
|
12872
|
+
.muka-chip__label-action:focus-visible {
|
|
12873
|
+
outline: 2px solid var(--color-border-focus);
|
|
12874
|
+
outline-offset: 2px;
|
|
12875
|
+
}
|
|
12876
|
+
|
|
12877
|
+
/* Trailing button (dismiss / expand / switch) — circular. Figma sizes: sm 20, md 24, lg 32 */
|
|
12878
|
+
.muka-chip__trailing {
|
|
12879
|
+
position: relative;
|
|
13042
12880
|
display: inline-flex;
|
|
13043
12881
|
align-items: center;
|
|
13044
12882
|
justify-content: center;
|
|
13045
12883
|
flex-shrink: 0;
|
|
13046
12884
|
padding: 0;
|
|
13047
12885
|
margin: 0;
|
|
13048
|
-
border:
|
|
12886
|
+
border: var(--border-width-regular) solid var(--_chip-tr-border, transparent);
|
|
13049
12887
|
border-radius: var(--border-radius-full);
|
|
12888
|
+
box-sizing: border-box;
|
|
12889
|
+
background-color: var(--_chip-tr-bg);
|
|
12890
|
+
color: var(--_chip-tr-fg);
|
|
13050
12891
|
cursor: pointer;
|
|
13051
|
-
transition: background-color 0.15s ease, color 0.15s ease;
|
|
12892
|
+
transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
|
|
13052
12893
|
}
|
|
13053
12894
|
|
|
13054
|
-
.muka-chip--sm .muka-
|
|
13055
|
-
.muka-chip--sm .muka-chip__expand {
|
|
12895
|
+
.muka-chip--sm .muka-chip__trailing {
|
|
13056
12896
|
width: var(--icon-size-sm);
|
|
13057
12897
|
height: var(--icon-size-sm);
|
|
13058
12898
|
}
|
|
13059
|
-
.muka-chip--md .muka-
|
|
13060
|
-
.muka-chip--md .muka-chip__expand {
|
|
12899
|
+
.muka-chip--md .muka-chip__trailing {
|
|
13061
12900
|
width: var(--icon-size-default);
|
|
13062
12901
|
height: var(--icon-size-default);
|
|
13063
12902
|
}
|
|
13064
|
-
.muka-chip--lg .muka-
|
|
13065
|
-
.muka-chip--lg .muka-chip__expand {
|
|
12903
|
+
.muka-chip--lg .muka-chip__trailing {
|
|
13066
12904
|
width: var(--icon-size-lg);
|
|
13067
12905
|
height: var(--icon-size-lg);
|
|
13068
12906
|
}
|
|
13069
12907
|
|
|
13070
|
-
.
|
|
13071
|
-
|
|
12908
|
+
/* A touch target of at least the sm chip height (24px, WCAG 2.5.8) around the 20px circle */
|
|
12909
|
+
button.muka-chip__trailing::before {
|
|
12910
|
+
content: '';
|
|
12911
|
+
position: absolute;
|
|
12912
|
+
top: 50%;
|
|
12913
|
+
left: 50%;
|
|
12914
|
+
width: max(100%, var(--chip-size-height-sm));
|
|
12915
|
+
height: max(100%, var(--chip-size-height-sm));
|
|
12916
|
+
transform: translate(-50%, -50%);
|
|
12917
|
+
}
|
|
12918
|
+
|
|
12919
|
+
button.muka-chip__trailing:focus-visible {
|
|
12920
|
+
outline: 2px solid var(--color-border-focus);
|
|
13072
12921
|
outline-offset: 2px;
|
|
13073
12922
|
}
|
|
13074
12923
|
|
|
12924
|
+
button.muka-chip__trailing:disabled {
|
|
12925
|
+
cursor: not-allowed;
|
|
12926
|
+
opacity: 0.5;
|
|
12927
|
+
}
|
|
12928
|
+
|
|
12929
|
+
/* Trailing button states: its own hover / pressed, or the whole chip's when the chip is one button */
|
|
12930
|
+
button.muka-chip__trailing:hover:not(:disabled),
|
|
12931
|
+
.muka-chip--expandable:hover:not(:disabled) .muka-chip__trailing {
|
|
12932
|
+
border-color: var(--_chip-tr-border-hover, transparent);
|
|
12933
|
+
background-color: var(--_chip-tr-bg-hover);
|
|
12934
|
+
color: var(--_chip-tr-fg-hover);
|
|
12935
|
+
}
|
|
12936
|
+
|
|
12937
|
+
button.muka-chip__trailing:active:not(:disabled),
|
|
12938
|
+
button.muka-chip__trailing[aria-expanded='true'],
|
|
12939
|
+
.muka-chip--expandable:active:not(:disabled) .muka-chip__trailing,
|
|
12940
|
+
.muka-chip--expandable[aria-expanded='true'] .muka-chip__trailing {
|
|
12941
|
+
border-color: var(--_chip-tr-border-hover, transparent);
|
|
12942
|
+
background-color: var(--_chip-tr-bg-pressed);
|
|
12943
|
+
color: var(--_chip-tr-fg-pressed);
|
|
12944
|
+
}
|
|
12945
|
+
|
|
13075
12946
|
/*
|
|
13076
|
-
*
|
|
13077
|
-
* typically a menu trigger.
|
|
13078
|
-
*
|
|
13079
|
-
* like Button's open state.
|
|
12947
|
+
* Whole-chip button (`trailing="expand" | "switch"`, Figma "Chip/Trailing
|
|
12948
|
+
* Expand"): typically a menu trigger. An open menu (aria-expanded) shows the
|
|
12949
|
+
* trailing button pressed, like Button's open state.
|
|
13080
12950
|
*/
|
|
13081
12951
|
.muka-chip--expandable {
|
|
13082
12952
|
margin: 0;
|
|
@@ -13093,127 +12963,97 @@ li.muka-listitem {
|
|
|
13093
12963
|
cursor: not-allowed;
|
|
13094
12964
|
}
|
|
13095
12965
|
|
|
13096
|
-
.muka-
|
|
12966
|
+
.muka-chip--expandable .muka-chip__trailing {
|
|
13097
12967
|
pointer-events: none;
|
|
13098
12968
|
}
|
|
13099
12969
|
|
|
13100
|
-
/*
|
|
13101
|
-
* Dismiss button colors — state-tinted per chip variant, with default / hover /
|
|
13102
|
-
* pressed steps. Values come from T4 chip.dismiss.* tokens, which reference the
|
|
13103
|
-
* brand-specific alias state-surface ramp. The ✕ (.muka-icon) inherits `color`.
|
|
13104
|
-
*/
|
|
13105
|
-
.muka-chip--default .muka-chip__remove,
|
|
13106
|
-
.muka-chip--default .muka-chip__expand {
|
|
13107
|
-
background-color: var(--chip-dismiss-default-background-default);
|
|
13108
|
-
color: var(--chip-dismiss-default-foreground-default);
|
|
13109
|
-
}
|
|
13110
|
-
.muka-chip--default .muka-chip__remove:hover,
|
|
13111
|
-
.muka-chip--default.muka-chip--expandable:hover:not(:disabled) .muka-chip__expand {
|
|
13112
|
-
background-color: var(--chip-dismiss-default-background-hover);
|
|
13113
|
-
color: var(--chip-dismiss-default-foreground-hover);
|
|
13114
|
-
}
|
|
13115
|
-
.muka-chip--default .muka-chip__remove:active,
|
|
13116
|
-
.muka-chip--default.muka-chip--expandable:active:not(:disabled) .muka-chip__expand,
|
|
13117
|
-
.muka-chip--default.muka-chip--expandable[aria-expanded='true'] .muka-chip__expand {
|
|
13118
|
-
background-color: var(--chip-dismiss-default-background-pressed);
|
|
13119
|
-
color: var(--chip-dismiss-default-foreground-pressed);
|
|
13120
|
-
}
|
|
13121
|
-
|
|
13122
|
-
.muka-chip--success .muka-chip__remove,
|
|
13123
|
-
.muka-chip--success .muka-chip__expand {
|
|
13124
|
-
background-color: var(--chip-dismiss-success-background-default);
|
|
13125
|
-
color: var(--chip-dismiss-success-foreground-default);
|
|
13126
|
-
}
|
|
13127
|
-
.muka-chip--success .muka-chip__remove:hover,
|
|
13128
|
-
.muka-chip--success.muka-chip--expandable:hover:not(:disabled) .muka-chip__expand {
|
|
13129
|
-
background-color: var(--chip-dismiss-success-background-hover);
|
|
13130
|
-
color: var(--chip-dismiss-success-foreground-hover);
|
|
13131
|
-
}
|
|
13132
|
-
.muka-chip--success .muka-chip__remove:active,
|
|
13133
|
-
.muka-chip--success.muka-chip--expandable:active:not(:disabled) .muka-chip__expand,
|
|
13134
|
-
.muka-chip--success.muka-chip--expandable[aria-expanded='true'] .muka-chip__expand {
|
|
13135
|
-
background-color: var(--chip-dismiss-success-background-pressed);
|
|
13136
|
-
color: var(--chip-dismiss-success-foreground-pressed);
|
|
13137
|
-
}
|
|
13138
|
-
|
|
13139
|
-
.muka-chip--warning .muka-chip__remove,
|
|
13140
|
-
.muka-chip--warning .muka-chip__expand {
|
|
13141
|
-
background-color: var(--chip-dismiss-warning-background-default);
|
|
13142
|
-
color: var(--chip-dismiss-warning-foreground-default);
|
|
13143
|
-
}
|
|
13144
|
-
.muka-chip--warning .muka-chip__remove:hover,
|
|
13145
|
-
.muka-chip--warning.muka-chip--expandable:hover:not(:disabled) .muka-chip__expand {
|
|
13146
|
-
background-color: var(--chip-dismiss-warning-background-hover);
|
|
13147
|
-
color: var(--chip-dismiss-warning-foreground-hover);
|
|
13148
|
-
}
|
|
13149
|
-
.muka-chip--warning .muka-chip__remove:active,
|
|
13150
|
-
.muka-chip--warning.muka-chip--expandable:active:not(:disabled) .muka-chip__expand,
|
|
13151
|
-
.muka-chip--warning.muka-chip--expandable[aria-expanded='true'] .muka-chip__expand {
|
|
13152
|
-
background-color: var(--chip-dismiss-warning-background-pressed);
|
|
13153
|
-
color: var(--chip-dismiss-warning-foreground-pressed);
|
|
13154
|
-
}
|
|
13155
|
-
|
|
13156
|
-
.muka-chip--error .muka-chip__remove,
|
|
13157
|
-
.muka-chip--error .muka-chip__expand {
|
|
13158
|
-
background-color: var(--chip-dismiss-error-background-default);
|
|
13159
|
-
color: var(--chip-dismiss-error-foreground-default);
|
|
13160
|
-
}
|
|
13161
|
-
.muka-chip--error .muka-chip__remove:hover,
|
|
13162
|
-
.muka-chip--error.muka-chip--expandable:hover:not(:disabled) .muka-chip__expand {
|
|
13163
|
-
background-color: var(--chip-dismiss-error-background-hover);
|
|
13164
|
-
color: var(--chip-dismiss-error-foreground-hover);
|
|
13165
|
-
}
|
|
13166
|
-
.muka-chip--error .muka-chip__remove:active,
|
|
13167
|
-
.muka-chip--error.muka-chip--expandable:active:not(:disabled) .muka-chip__expand,
|
|
13168
|
-
.muka-chip--error.muka-chip--expandable[aria-expanded='true'] .muka-chip__expand {
|
|
13169
|
-
background-color: var(--chip-dismiss-error-background-pressed);
|
|
13170
|
-
color: var(--chip-dismiss-error-foreground-pressed);
|
|
13171
|
-
}
|
|
13172
|
-
|
|
13173
|
-
.muka-chip--info .muka-chip__remove,
|
|
13174
|
-
.muka-chip--info .muka-chip__expand {
|
|
13175
|
-
background-color: var(--chip-dismiss-info-background-default);
|
|
13176
|
-
color: var(--chip-dismiss-info-foreground-default);
|
|
13177
|
-
}
|
|
13178
|
-
.muka-chip--info .muka-chip__remove:hover,
|
|
13179
|
-
.muka-chip--info.muka-chip--expandable:hover:not(:disabled) .muka-chip__expand {
|
|
13180
|
-
background-color: var(--chip-dismiss-info-background-hover);
|
|
13181
|
-
color: var(--chip-dismiss-info-foreground-hover);
|
|
13182
|
-
}
|
|
13183
|
-
.muka-chip--info .muka-chip__remove:active,
|
|
13184
|
-
.muka-chip--info.muka-chip--expandable:active:not(:disabled) .muka-chip__expand,
|
|
13185
|
-
.muka-chip--info.muka-chip--expandable[aria-expanded='true'] .muka-chip__expand {
|
|
13186
|
-
background-color: var(--chip-dismiss-info-background-pressed);
|
|
13187
|
-
color: var(--chip-dismiss-info-foreground-pressed);
|
|
13188
|
-
}
|
|
13189
|
-
|
|
13190
|
-
/* Variants (solid fill) — icons inherit these foreground colors (see below) */
|
|
12970
|
+
/* Variants: body fill, foreground, and the trailing button's colour steps */
|
|
13191
12971
|
.muka-chip--default {
|
|
13192
|
-
background-color: var(--
|
|
12972
|
+
background-color: var(--chip-neutral-background-default);
|
|
13193
12973
|
color: var(--color-text-default-default);
|
|
12974
|
+
--_chip-tr-bg: var(--chip-trailing-default-background-default);
|
|
12975
|
+
--_chip-tr-bg-hover: var(--chip-trailing-default-background-hover);
|
|
12976
|
+
--_chip-tr-bg-pressed: var(--chip-trailing-default-background-pressed);
|
|
12977
|
+
--_chip-tr-fg: var(--chip-trailing-default-foreground-default);
|
|
12978
|
+
--_chip-tr-fg-hover: var(--chip-trailing-default-foreground-hover);
|
|
12979
|
+
--_chip-tr-fg-pressed: var(--chip-trailing-default-foreground-pressed);
|
|
13194
12980
|
}
|
|
13195
12981
|
|
|
13196
12982
|
.muka-chip--success {
|
|
13197
12983
|
background-color: var(--color-state-success-background);
|
|
13198
12984
|
color: var(--color-state-success-contrast);
|
|
12985
|
+
--_chip-tr-bg: var(--chip-trailing-success-background-default);
|
|
12986
|
+
--_chip-tr-bg-hover: var(--chip-trailing-success-background-hover);
|
|
12987
|
+
--_chip-tr-bg-pressed: var(--chip-trailing-success-background-pressed);
|
|
12988
|
+
--_chip-tr-fg: var(--chip-trailing-success-foreground-default);
|
|
12989
|
+
--_chip-tr-fg-hover: var(--chip-trailing-success-foreground-hover);
|
|
12990
|
+
--_chip-tr-fg-pressed: var(--chip-trailing-success-foreground-pressed);
|
|
13199
12991
|
}
|
|
13200
12992
|
|
|
13201
12993
|
.muka-chip--warning {
|
|
13202
12994
|
background-color: var(--color-state-warning-background);
|
|
13203
12995
|
color: var(--color-state-warning-contrast);
|
|
12996
|
+
--_chip-tr-bg: var(--chip-trailing-warning-background-default);
|
|
12997
|
+
--_chip-tr-bg-hover: var(--chip-trailing-warning-background-hover);
|
|
12998
|
+
--_chip-tr-bg-pressed: var(--chip-trailing-warning-background-pressed);
|
|
12999
|
+
--_chip-tr-fg: var(--chip-trailing-warning-foreground-default);
|
|
13000
|
+
--_chip-tr-fg-hover: var(--chip-trailing-warning-foreground-hover);
|
|
13001
|
+
--_chip-tr-fg-pressed: var(--chip-trailing-warning-foreground-pressed);
|
|
13204
13002
|
}
|
|
13205
13003
|
|
|
13206
13004
|
.muka-chip--error {
|
|
13207
13005
|
background-color: var(--color-state-error-background);
|
|
13208
13006
|
color: var(--color-state-error-contrast);
|
|
13007
|
+
--_chip-tr-bg: var(--chip-trailing-error-background-default);
|
|
13008
|
+
--_chip-tr-bg-hover: var(--chip-trailing-error-background-hover);
|
|
13009
|
+
--_chip-tr-bg-pressed: var(--chip-trailing-error-background-pressed);
|
|
13010
|
+
--_chip-tr-fg: var(--chip-trailing-error-foreground-default);
|
|
13011
|
+
--_chip-tr-fg-hover: var(--chip-trailing-error-foreground-hover);
|
|
13012
|
+
--_chip-tr-fg-pressed: var(--chip-trailing-error-foreground-pressed);
|
|
13209
13013
|
}
|
|
13210
13014
|
|
|
13211
13015
|
.muka-chip--info {
|
|
13212
13016
|
background-color: var(--color-state-info-background);
|
|
13213
13017
|
color: var(--color-state-info-contrast);
|
|
13018
|
+
--_chip-tr-bg: var(--chip-trailing-info-background-default);
|
|
13019
|
+
--_chip-tr-bg-hover: var(--chip-trailing-info-background-hover);
|
|
13020
|
+
--_chip-tr-bg-pressed: var(--chip-trailing-info-background-pressed);
|
|
13021
|
+
--_chip-tr-fg: var(--chip-trailing-info-foreground-default);
|
|
13022
|
+
--_chip-tr-fg-hover: var(--chip-trailing-info-foreground-hover);
|
|
13023
|
+
--_chip-tr-fg-pressed: var(--chip-trailing-info-foreground-pressed);
|
|
13024
|
+
}
|
|
13025
|
+
|
|
13026
|
+
/* Ghost: no fill, subtle label; the trailing circle is outlined at rest (Figma Chip/Trailing Ghost) */
|
|
13027
|
+
.muka-chip--ghost {
|
|
13028
|
+
background-color: var(--chip-ghost-background-default);
|
|
13029
|
+
color: var(--chip-ghost-foreground-default);
|
|
13030
|
+
--_chip-tr-border: var(--chip-trailing-ghost-border-default);
|
|
13031
|
+
--_chip-tr-bg: var(--chip-trailing-ghost-background-default);
|
|
13032
|
+
--_chip-tr-bg-hover: var(--chip-trailing-ghost-background-hover);
|
|
13033
|
+
--_chip-tr-bg-pressed: var(--chip-trailing-ghost-background-pressed);
|
|
13034
|
+
--_chip-tr-fg: var(--chip-trailing-ghost-foreground-default);
|
|
13035
|
+
--_chip-tr-fg-hover: var(--chip-trailing-ghost-foreground-hover);
|
|
13036
|
+
--_chip-tr-fg-pressed: var(--chip-trailing-ghost-foreground-pressed);
|
|
13037
|
+
}
|
|
13038
|
+
|
|
13039
|
+
/*
|
|
13040
|
+
* Body hover (Figma Chip State=Hover) — only on chips whose body does
|
|
13041
|
+
* something: the whole-chip button, or a label link/button (hovering just the
|
|
13042
|
+
* label, not the trailing button, which has its own states). A static chip
|
|
13043
|
+
* doesn't hover.
|
|
13044
|
+
*/
|
|
13045
|
+
.muka-chip--default.muka-chip--expandable:is(:hover, :focus-visible, [aria-expanded='true']):not(:disabled),
|
|
13046
|
+
.muka-chip--default.muka-chip--has-label-action:has(> .muka-chip__label-action:is(:hover, :focus-visible)) {
|
|
13047
|
+
background-color: var(--chip-neutral-background-hover);
|
|
13048
|
+
}
|
|
13049
|
+
|
|
13050
|
+
.muka-chip--ghost.muka-chip--expandable:is(:hover, :focus-visible, [aria-expanded='true']):not(:disabled),
|
|
13051
|
+
.muka-chip--ghost.muka-chip--has-label-action:has(> .muka-chip__label-action:is(:hover, :focus-visible)) {
|
|
13052
|
+
background-color: var(--chip-ghost-background-hover);
|
|
13053
|
+
color: var(--chip-ghost-foreground-hover);
|
|
13214
13054
|
}
|
|
13215
13055
|
|
|
13216
|
-
/* Icons (leading +
|
|
13056
|
+
/* Icons (leading + trailing) inherit their slot's foreground color */
|
|
13217
13057
|
.muka-chip .muka-icon {
|
|
13218
13058
|
color: inherit;
|
|
13219
13059
|
}
|
|
@@ -15021,7 +14861,12 @@ button.muka-chat-photo-grid__tile:focus-visible {
|
|
|
15021
14861
|
|
|
15022
14862
|
|
|
15023
14863
|
/* Breadcrumb */
|
|
15024
|
-
/* Breadcrumb Component Styles
|
|
14864
|
+
/* Breadcrumb Component Styles (Figma: Breadcrumb 6770:12446)
|
|
14865
|
+
*
|
|
14866
|
+
* Every level is a ghost Chip (Chip.css); this file only lays them out,
|
|
14867
|
+
* with the same gap (breadcrumb.gap.separator, 4px) on either side of the
|
|
14868
|
+
* separator.
|
|
14869
|
+
*/
|
|
15025
14870
|
|
|
15026
14871
|
.muka-breadcrumb__list {
|
|
15027
14872
|
display: flex;
|
|
@@ -15030,88 +14875,23 @@ button.muka-chat-photo-grid__tile:focus-visible {
|
|
|
15030
14875
|
list-style: none;
|
|
15031
14876
|
margin: 0;
|
|
15032
14877
|
padding: 0;
|
|
15033
|
-
gap: var(--
|
|
14878
|
+
gap: var(--breadcrumb-gap-separator);
|
|
15034
14879
|
}
|
|
15035
14880
|
|
|
15036
14881
|
.muka-breadcrumb__item {
|
|
15037
14882
|
display: inline-flex;
|
|
15038
14883
|
align-items: center;
|
|
15039
|
-
gap: var(--
|
|
15040
|
-
|
|
15041
|
-
|
|
15042
|
-
.muka-breadcrumb__item:has(.muka-breadcrumb__icon) {
|
|
15043
|
-
padding-left: var(--spacing-1);
|
|
15044
|
-
}
|
|
15045
|
-
|
|
15046
|
-
.muka-breadcrumb__icon {
|
|
15047
|
-
display: inline-flex;
|
|
15048
|
-
align-items: center;
|
|
15049
|
-
color: var(--color-text-subtle-default);
|
|
15050
|
-
}
|
|
15051
|
-
|
|
15052
|
-
.muka-breadcrumb__icon .muka-icon {
|
|
15053
|
-
color: inherit;
|
|
15054
|
-
}
|
|
15055
|
-
|
|
15056
|
-
.muka-breadcrumb__item:has(.muka-breadcrumb__current) .muka-breadcrumb__icon {
|
|
15057
|
-
color: var(--color-text-default-default);
|
|
15058
|
-
}
|
|
15059
|
-
|
|
15060
|
-
.muka-breadcrumb__item:has(.muka-breadcrumb__link:hover) .muka-breadcrumb__icon {
|
|
15061
|
-
color: var(--color-text-action-default);
|
|
15062
|
-
}
|
|
15063
|
-
|
|
15064
|
-
/* Link styles */
|
|
15065
|
-
.muka-breadcrumb__link {
|
|
15066
|
-
color: var(--color-text-subtle-default);
|
|
15067
|
-
text-decoration: none;
|
|
15068
|
-
border: none;
|
|
15069
|
-
background: none;
|
|
15070
|
-
padding-inline: var(--spacing-2);
|
|
15071
|
-
padding-block: 0;
|
|
15072
|
-
cursor: pointer;
|
|
15073
|
-
font: inherit;
|
|
15074
|
-
transition: color 0.15s ease;
|
|
15075
|
-
}
|
|
15076
|
-
|
|
15077
|
-
.muka-breadcrumb__link:hover {
|
|
15078
|
-
color: var(--color-text-action-default);
|
|
15079
|
-
text-decoration: underline;
|
|
15080
|
-
}
|
|
15081
|
-
|
|
15082
|
-
/* Tighter gap after leading icon */
|
|
15083
|
-
.muka-breadcrumb__item:has(.muka-breadcrumb__icon) .muka-breadcrumb__link,
|
|
15084
|
-
.muka-breadcrumb__item:has(.muka-breadcrumb__icon) .muka-breadcrumb__current {
|
|
15085
|
-
padding-left: var(--spacing-1);
|
|
15086
|
-
}
|
|
15087
|
-
|
|
15088
|
-
/* Current page (last item, no context switcher) */
|
|
15089
|
-
.muka-breadcrumb__current {
|
|
15090
|
-
color: var(--color-text-default-default);
|
|
15091
|
-
font-weight: 600;
|
|
15092
|
-
padding-inline: var(--spacing-2);
|
|
14884
|
+
gap: var(--breadcrumb-gap-separator);
|
|
14885
|
+
min-width: 0;
|
|
15093
14886
|
}
|
|
15094
14887
|
|
|
15095
|
-
|
|
15096
|
-
.muka-
|
|
15097
|
-
color: var(--
|
|
14888
|
+
.muka-breadcrumb__separator,
|
|
14889
|
+
.muka-breadcrumb__ellipsis {
|
|
14890
|
+
color: var(--breadcrumb-separator-color);
|
|
15098
14891
|
user-select: none;
|
|
15099
14892
|
}
|
|
15100
14893
|
|
|
15101
|
-
|
|
15102
|
-
gap: 0;
|
|
15103
|
-
}
|
|
15104
|
-
|
|
15105
|
-
.muka-breadcrumb__list:has(.muka-breadcrumb__item--context) {
|
|
15106
|
-
gap: 0;
|
|
15107
|
-
}
|
|
15108
|
-
|
|
15109
|
-
.muka-breadcrumb__item--context .muka-breadcrumb__separator {
|
|
15110
|
-
margin: 0;
|
|
15111
|
-
padding-inline: var(--spacing-1, 4px);
|
|
15112
|
-
}
|
|
15113
|
-
|
|
15114
|
-
/* Size variants */
|
|
14894
|
+
/* Size variants: separator and ellipsis type (the chips size themselves) */
|
|
15115
14895
|
.muka-breadcrumb--sm {
|
|
15116
14896
|
font-family: var(--text-label-sm-regular-fontFamily);
|
|
15117
14897
|
font-weight: var(--text-label-sm-regular-fontWeight);
|
|
@@ -15133,7 +14913,15 @@ button.muka-chat-photo-grid__tile:focus-visible {
|
|
|
15133
14913
|
line-height: var(--text-label-lg-regular-lineHeight);
|
|
15134
14914
|
}
|
|
15135
14915
|
|
|
15136
|
-
|
|
14916
|
+
.muka-breadcrumb__menu {
|
|
14917
|
+
min-width: 17.5rem;
|
|
14918
|
+
}
|
|
14919
|
+
|
|
14920
|
+
/*
|
|
14921
|
+
* Truncate: one line. The current page shortens first, down to
|
|
14922
|
+
* breadcrumb.truncate.current.minWidth (or the full width, if that is less);
|
|
14923
|
+
* after that the earlier levels shorten too, each with an ellipsis.
|
|
14924
|
+
*/
|
|
15137
14925
|
.muka-breadcrumb--truncate {
|
|
15138
14926
|
min-width: 0;
|
|
15139
14927
|
overflow: hidden;
|
|
@@ -15145,20 +14933,16 @@ button.muka-chat-photo-grid__tile:focus-visible {
|
|
|
15145
14933
|
}
|
|
15146
14934
|
|
|
15147
14935
|
.muka-breadcrumb--truncate .muka-breadcrumb__item {
|
|
15148
|
-
flex
|
|
14936
|
+
flex: 0 1 auto;
|
|
15149
14937
|
}
|
|
15150
14938
|
|
|
15151
14939
|
.muka-breadcrumb--truncate .muka-breadcrumb__item:last-child {
|
|
15152
|
-
flex-shrink:
|
|
15153
|
-
min-width:
|
|
15154
|
-
overflow: hidden;
|
|
14940
|
+
flex-shrink: 1000;
|
|
14941
|
+
min-width: min(var(--breadcrumb-truncate-current-minWidth), 100%);
|
|
15155
14942
|
}
|
|
15156
14943
|
|
|
15157
|
-
.muka-breadcrumb--truncate .muka-
|
|
14944
|
+
.muka-breadcrumb--truncate .muka-breadcrumb__chip {
|
|
15158
14945
|
min-width: 0;
|
|
15159
|
-
overflow: hidden;
|
|
15160
|
-
text-overflow: ellipsis;
|
|
15161
|
-
white-space: nowrap;
|
|
15162
14946
|
}
|
|
15163
14947
|
|
|
15164
14948
|
|
|
@@ -17019,3 +16803,111 @@ button.muka-chat-photo-grid__tile:focus-visible {
|
|
|
17019
16803
|
border-bottom: none;
|
|
17020
16804
|
}
|
|
17021
16805
|
|
|
16806
|
+
|
|
16807
|
+
/* SwipeActions */
|
|
16808
|
+
/* SwipeActions Component Styles */
|
|
16809
|
+
|
|
16810
|
+
.muka-swipe-actions {
|
|
16811
|
+
position: relative;
|
|
16812
|
+
overflow: hidden;
|
|
16813
|
+
touch-action: pan-y;
|
|
16814
|
+
-webkit-user-select: none;
|
|
16815
|
+
user-select: none;
|
|
16816
|
+
background-color: var(--color-surface-level3);
|
|
16817
|
+
}
|
|
16818
|
+
|
|
16819
|
+
.muka-swipe-actions--disabled {
|
|
16820
|
+
touch-action: auto;
|
|
16821
|
+
}
|
|
16822
|
+
|
|
16823
|
+
/* ─── Row that holds the actual content ────────────────── */
|
|
16824
|
+
|
|
16825
|
+
.muka-swipe-actions__row {
|
|
16826
|
+
position: relative;
|
|
16827
|
+
z-index: 1;
|
|
16828
|
+
background-color: inherit;
|
|
16829
|
+
will-change: transform;
|
|
16830
|
+
}
|
|
16831
|
+
|
|
16832
|
+
/* ─── Action panels — sit beneath the row ──────────────── */
|
|
16833
|
+
|
|
16834
|
+
.muka-swipe-actions__panel {
|
|
16835
|
+
position: absolute;
|
|
16836
|
+
top: 0;
|
|
16837
|
+
bottom: 0;
|
|
16838
|
+
display: flex;
|
|
16839
|
+
align-items: stretch;
|
|
16840
|
+
z-index: 0;
|
|
16841
|
+
}
|
|
16842
|
+
|
|
16843
|
+
.muka-swipe-actions__panel--left {
|
|
16844
|
+
left: 0;
|
|
16845
|
+
}
|
|
16846
|
+
|
|
16847
|
+
.muka-swipe-actions__panel--right {
|
|
16848
|
+
right: 0;
|
|
16849
|
+
}
|
|
16850
|
+
|
|
16851
|
+
/* ─── Single action button ─────────────────────────────── */
|
|
16852
|
+
|
|
16853
|
+
.muka-swipe-actions__button {
|
|
16854
|
+
display: flex;
|
|
16855
|
+
flex-direction: column;
|
|
16856
|
+
align-items: center;
|
|
16857
|
+
justify-content: center;
|
|
16858
|
+
gap: var(--spacing-1);
|
|
16859
|
+
border: none;
|
|
16860
|
+
cursor: pointer;
|
|
16861
|
+
padding: var(--spacing-2);
|
|
16862
|
+
background-color: var(--color-surface-level2);
|
|
16863
|
+
color: var(--color-text-default-default);
|
|
16864
|
+
font-family: var(--text-label-sm-semibold-fontFamily);
|
|
16865
|
+
font-weight: var(--text-label-sm-semibold-fontWeight);
|
|
16866
|
+
font-size: var(--text-label-sm-semibold-fontSize);
|
|
16867
|
+
line-height: var(--text-label-sm-semibold-lineHeight);
|
|
16868
|
+
-webkit-tap-highlight-color: transparent;
|
|
16869
|
+
transition: filter 0.12s ease;
|
|
16870
|
+
}
|
|
16871
|
+
|
|
16872
|
+
.muka-swipe-actions__button:hover {
|
|
16873
|
+
filter: brightness(0.95);
|
|
16874
|
+
}
|
|
16875
|
+
|
|
16876
|
+
.muka-swipe-actions__button:focus-visible {
|
|
16877
|
+
outline: 2px solid var(--color-action-default);
|
|
16878
|
+
outline-offset: -2px;
|
|
16879
|
+
}
|
|
16880
|
+
|
|
16881
|
+
.muka-swipe-actions__button-icon {
|
|
16882
|
+
display: inline-flex;
|
|
16883
|
+
align-items: center;
|
|
16884
|
+
justify-content: center;
|
|
16885
|
+
}
|
|
16886
|
+
|
|
16887
|
+
/* ─── Color variants ───────────────────────────────────── */
|
|
16888
|
+
|
|
16889
|
+
.muka-swipe-actions__button--neutral {
|
|
16890
|
+
background-color: var(--color-surface-level2);
|
|
16891
|
+
color: var(--color-text-default-default);
|
|
16892
|
+
}
|
|
16893
|
+
|
|
16894
|
+
.muka-swipe-actions__button--primary {
|
|
16895
|
+
background-color: var(--color-action-default);
|
|
16896
|
+
color: var(--color-text-default-inverse);
|
|
16897
|
+
}
|
|
16898
|
+
|
|
16899
|
+
.muka-swipe-actions__button--success {
|
|
16900
|
+
background-color: var(--color-state-success-default);
|
|
16901
|
+
color: var(--color-text-default-inverse);
|
|
16902
|
+
}
|
|
16903
|
+
|
|
16904
|
+
.muka-swipe-actions__button--warning {
|
|
16905
|
+
background-color: var(--color-state-warning-default);
|
|
16906
|
+
color: var(--color-text-default-default);
|
|
16907
|
+
}
|
|
16908
|
+
|
|
16909
|
+
.muka-swipe-actions__button--destructive {
|
|
16910
|
+
background-color: var(--color-state-error-default);
|
|
16911
|
+
color: var(--color-text-default-inverse);
|
|
16912
|
+
}
|
|
16913
|
+
|