@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.
Files changed (81) hide show
  1. package/build/manifest.json +10 -0
  2. package/dist/cjs/components/Breadcrumb/Breadcrumb.css +26 -82
  3. package/dist/cjs/components/Breadcrumb/Breadcrumb.js +17 -18
  4. package/dist/cjs/components/Breadcrumb/Breadcrumb.js.map +1 -1
  5. package/dist/cjs/components/Breadcrumb/BreadcrumbContextMenu.js +38 -0
  6. package/dist/cjs/components/Breadcrumb/BreadcrumbContextMenu.js.map +1 -0
  7. package/dist/cjs/components/Breadcrumb/index.js.map +1 -1
  8. package/dist/cjs/components/Chip/Chip.css +185 -136
  9. package/dist/cjs/components/Chip/Chip.js +50 -12
  10. package/dist/cjs/components/Chip/Chip.js.map +1 -1
  11. package/dist/cjs/components/Chip/index.js.map +1 -1
  12. package/dist/cjs/components/Combobox/Combobox.js +1 -1
  13. package/dist/cjs/components/Combobox/Combobox.js.map +1 -1
  14. package/dist/cjs/components/DropdownSelect/DropdownSelect.js +1 -1
  15. package/dist/cjs/components/DropdownSelect/DropdownSelect.js.map +1 -1
  16. package/dist/cjs/components/index.js +2 -4
  17. package/dist/cjs/components/index.js.map +1 -1
  18. package/dist/esm/components/Breadcrumb/Breadcrumb.css +26 -82
  19. package/dist/esm/components/Breadcrumb/Breadcrumb.js +17 -18
  20. package/dist/esm/components/Breadcrumb/Breadcrumb.js.map +1 -1
  21. package/dist/esm/components/Breadcrumb/BreadcrumbContextMenu.js +34 -0
  22. package/dist/esm/components/Breadcrumb/BreadcrumbContextMenu.js.map +1 -0
  23. package/dist/esm/components/Breadcrumb/index.js +1 -1
  24. package/dist/esm/components/Breadcrumb/index.js.map +1 -1
  25. package/dist/esm/components/Chip/Chip.css +185 -136
  26. package/dist/esm/components/Chip/Chip.js +50 -12
  27. package/dist/esm/components/Chip/Chip.js.map +1 -1
  28. package/dist/esm/components/Chip/index.js.map +1 -1
  29. package/dist/esm/components/Combobox/Combobox.js +1 -1
  30. package/dist/esm/components/Combobox/Combobox.js.map +1 -1
  31. package/dist/esm/components/DropdownSelect/DropdownSelect.js +1 -1
  32. package/dist/esm/components/DropdownSelect/DropdownSelect.js.map +1 -1
  33. package/dist/esm/components/index.js +1 -2
  34. package/dist/esm/components/index.js.map +1 -1
  35. package/dist/styles/components/Breadcrumb.css +26 -82
  36. package/dist/styles/components/Chip.css +185 -136
  37. package/dist/styles/index.css +553 -661
  38. package/dist/styles/muka-dark.css +553 -661
  39. package/dist/styles/muka-light.css +553 -661
  40. package/dist/styles/tokens-bouwplan-dark.css +49 -30
  41. package/dist/styles/tokens-bouwplan-light.css +49 -30
  42. package/dist/styles/tokens-fscl-dark.css +49 -30
  43. package/dist/styles/tokens-fscl-light.css +49 -30
  44. package/dist/styles/tokens-grip-dark.css +49 -30
  45. package/dist/styles/tokens-grip-light.css +49 -30
  46. package/dist/styles/tokens-muka-dark.css +49 -30
  47. package/dist/styles/tokens-muka-light.css +49 -30
  48. package/dist/styles/tokens-wireframe-dark.css +49 -30
  49. package/dist/styles/tokens-wireframe-light.css +49 -30
  50. package/dist/styles/wireframe-dark.css +553 -661
  51. package/dist/styles/wireframe-light.css +553 -661
  52. package/dist/types/components/Breadcrumb/Breadcrumb.d.ts +18 -25
  53. package/dist/types/components/Breadcrumb/Breadcrumb.d.ts.map +1 -1
  54. package/dist/types/components/Breadcrumb/BreadcrumbContextMenu.d.ts +41 -0
  55. package/dist/types/components/Breadcrumb/BreadcrumbContextMenu.d.ts.map +1 -0
  56. package/dist/types/components/Breadcrumb/index.d.ts +1 -1
  57. package/dist/types/components/Breadcrumb/index.d.ts.map +1 -1
  58. package/dist/types/components/Chip/Chip.d.ts +66 -14
  59. package/dist/types/components/Chip/Chip.d.ts.map +1 -1
  60. package/dist/types/components/Chip/index.d.ts +1 -1
  61. package/dist/types/components/Chip/index.d.ts.map +1 -1
  62. package/dist/types/components/index.d.ts +2 -3
  63. package/dist/types/components/index.d.ts.map +1 -1
  64. package/package.json +1 -1
  65. package/tokens/t4-components/breadcrumb.json +28 -0
  66. package/tokens/t4-components/chip.json +85 -1
  67. package/dist/cjs/components/ContextSelect/ContextSelect.css +0 -117
  68. package/dist/cjs/components/ContextSelect/ContextSelect.js +0 -49
  69. package/dist/cjs/components/ContextSelect/ContextSelect.js.map +0 -1
  70. package/dist/cjs/components/ContextSelect/index.js +0 -11
  71. package/dist/cjs/components/ContextSelect/index.js.map +0 -1
  72. package/dist/esm/components/ContextSelect/ContextSelect.css +0 -117
  73. package/dist/esm/components/ContextSelect/ContextSelect.js +0 -45
  74. package/dist/esm/components/ContextSelect/ContextSelect.js.map +0 -1
  75. package/dist/esm/components/ContextSelect/index.js +0 -3
  76. package/dist/esm/components/ContextSelect/index.js.map +0 -1
  77. package/dist/styles/components/ContextSelect.css +0 -117
  78. package/dist/types/components/ContextSelect/ContextSelect.d.ts +0 -68
  79. package/dist/types/components/ContextSelect/ContextSelect.d.ts.map +0 -1
  80. package/dist/types/components/ContextSelect/index.d.ts +0 -3
  81. package/dist/types/components/ContextSelect/index.d.ts.map +0 -1
@@ -1831,36 +1831,55 @@ body {
1831
1831
  --chip-padding-trailing-sm: 2px;
1832
1832
  --chip-padding-trailing-md: 0.25rem;
1833
1833
  --chip-padding-trailing-lg: 0.25rem;
1834
- --chip-dismiss-default-background-default: #232326;
1835
- --chip-dismiss-default-background-hover: #2b2b30;
1836
- --chip-dismiss-default-background-pressed: #323238;
1837
- --chip-dismiss-default-foreground-default: #b5b5c7;
1838
- --chip-dismiss-default-foreground-hover: #b5b5c7;
1839
- --chip-dismiss-default-foreground-pressed: #b5b5c7;
1840
- --chip-dismiss-success-background-default: #092c2b;
1841
- --chip-dismiss-success-background-hover: #003a38;
1842
- --chip-dismiss-success-background-pressed: #004744;
1843
- --chip-dismiss-success-foreground-default: #c4f5e1;
1844
- --chip-dismiss-success-foreground-hover: #c4f5e1;
1845
- --chip-dismiss-success-foreground-pressed: #c4f5e1;
1846
- --chip-dismiss-warning-background-default: #302008;
1847
- --chip-dismiss-warning-background-hover: #3f2700;
1848
- --chip-dismiss-warning-background-pressed: #4d3000;
1849
- --chip-dismiss-warning-foreground-default: #ffca16;
1850
- --chip-dismiss-warning-foreground-hover: #ffca16;
1851
- --chip-dismiss-warning-foreground-pressed: #ffca16;
1852
- --chip-dismiss-error-background-default: #3d181e;
1853
- --chip-dismiss-error-background-hover: #4a1a22;
1854
- --chip-dismiss-error-background-pressed: #571c26;
1855
- --chip-dismiss-error-foreground-default: #fea6a6;
1856
- --chip-dismiss-error-foreground-hover: #fea6a6;
1857
- --chip-dismiss-error-foreground-pressed: #fea6a6;
1858
- --chip-dismiss-info-background-default: #0d2847;
1859
- --chip-dismiss-info-background-hover: #003362;
1860
- --chip-dismiss-info-background-pressed: #004074;
1861
- --chip-dismiss-info-foreground-default: #70b8ff;
1862
- --chip-dismiss-info-foreground-hover: #70b8ff;
1863
- --chip-dismiss-info-foreground-pressed: #70b8ff;
1834
+ --chip-padding-labelEnd-sm: 0.75rem;
1835
+ --chip-padding-labelEnd-md: 1rem;
1836
+ --chip-padding-labelEnd-lg: 1.25rem;
1837
+ --chip-neutral-background-default: #232326;
1838
+ --chip-neutral-background-hover: #2b2b30;
1839
+ --chip-ghost-background-default: transparent;
1840
+ --chip-ghost-background-hover: rgba(245, 244, 246, 0.035);
1841
+ --chip-ghost-foreground-default: #737387;
1842
+ --chip-ghost-foreground-hover: #e6e6ea;
1843
+ --chip-trailing-default-background-default: #232326;
1844
+ --chip-trailing-default-background-hover: #2b2b30;
1845
+ --chip-trailing-default-background-pressed: #323238;
1846
+ --chip-trailing-default-foreground-default: #b5b5c7;
1847
+ --chip-trailing-default-foreground-hover: #b5b5c7;
1848
+ --chip-trailing-default-foreground-pressed: #b5b5c7;
1849
+ --chip-trailing-success-background-default: #092c2b;
1850
+ --chip-trailing-success-background-hover: #003a38;
1851
+ --chip-trailing-success-background-pressed: #004744;
1852
+ --chip-trailing-success-foreground-default: #c4f5e1;
1853
+ --chip-trailing-success-foreground-hover: #c4f5e1;
1854
+ --chip-trailing-success-foreground-pressed: #c4f5e1;
1855
+ --chip-trailing-warning-background-default: #302008;
1856
+ --chip-trailing-warning-background-hover: #3f2700;
1857
+ --chip-trailing-warning-background-pressed: #4d3000;
1858
+ --chip-trailing-warning-foreground-default: #ffca16;
1859
+ --chip-trailing-warning-foreground-hover: #ffca16;
1860
+ --chip-trailing-warning-foreground-pressed: #ffca16;
1861
+ --chip-trailing-error-background-default: #3d181e;
1862
+ --chip-trailing-error-background-hover: #4a1a22;
1863
+ --chip-trailing-error-background-pressed: #571c26;
1864
+ --chip-trailing-error-foreground-default: #fea6a6;
1865
+ --chip-trailing-error-foreground-hover: #fea6a6;
1866
+ --chip-trailing-error-foreground-pressed: #fea6a6;
1867
+ --chip-trailing-info-background-default: #0d2847;
1868
+ --chip-trailing-info-background-hover: #003362;
1869
+ --chip-trailing-info-background-pressed: #004074;
1870
+ --chip-trailing-info-foreground-default: #70b8ff;
1871
+ --chip-trailing-info-foreground-hover: #70b8ff;
1872
+ --chip-trailing-info-foreground-pressed: #70b8ff;
1873
+ --chip-trailing-ghost-border-default: #2b2b30;
1874
+ --chip-trailing-ghost-background-default: transparent;
1875
+ --chip-trailing-ghost-background-hover: #161618;
1876
+ --chip-trailing-ghost-background-pressed: #323238;
1877
+ --chip-trailing-ghost-foreground-default: #737387;
1878
+ --chip-trailing-ghost-foreground-hover: #b5b5c7;
1879
+ --chip-trailing-ghost-foreground-pressed: #b5b5c7;
1880
+ --breadcrumb-gap-separator: 0.25rem;
1881
+ --breadcrumb-separator-color: #4c4c57;
1882
+ --breadcrumb-truncate-current-minWidth: 8rem;
1864
1883
  --checkbox-size-sm: 1.25rem;
1865
1884
  --checkbox-size-default: 1.5rem;
1866
1885
  --checkbox-size-lg: 2rem;
@@ -3007,169 +3026,6 @@ body {
3007
3026
  }
3008
3027
 
3009
3028
 
3010
- /* Toggle */
3011
- /* Toggle Component Styles - Using Muka Design Tokens */
3012
-
3013
- /* Wrapper container */
3014
- .muka-toggle {
3015
- display: flex;
3016
- align-items: center;
3017
- gap: var(--spacing-2);
3018
- position: relative;
3019
- padding: var(--spacing-4) 0;
3020
- }
3021
-
3022
- .muka-toggle--with-caption {
3023
- padding: var(--spacing-5) 0;
3024
- }
3025
-
3026
- .muka-toggle--disabled {
3027
- opacity: 0.6;
3028
- }
3029
-
3030
- /* Icon */
3031
- .muka-toggle__icon {
3032
- display: flex;
3033
- align-items: center;
3034
- justify-content: center;
3035
- flex-shrink: 0;
3036
- width: var(--icon-size-default);
3037
- height: var(--icon-size-default);
3038
- color: var(--color-text-default-default);
3039
- }
3040
-
3041
- .muka-toggle__icon svg {
3042
- width: 100%;
3043
- height: 100%;
3044
- }
3045
-
3046
- /* Content area (label + caption) */
3047
- .muka-toggle__content {
3048
- display: flex;
3049
- flex-direction: column;
3050
- flex: 1;
3051
- min-width: 0;
3052
- gap: var(--spacing-1);
3053
- }
3054
-
3055
- /* Label */
3056
- .muka-toggle__label {
3057
- font-family: var(--text-label-lg-regular-fontFamily);
3058
- font-weight: var(--text-label-lg-regular-fontWeight);
3059
- font-size: var(--text-label-lg-regular-fontSize);
3060
- line-height: var(--text-label-lg-regular-lineHeight);
3061
- color: var(--color-text-default-default);
3062
- cursor: pointer;
3063
- }
3064
-
3065
- .muka-toggle--with-caption .muka-toggle__label {
3066
- font-family: var(--text-label-lg-semibold-fontFamily);
3067
- font-weight: var(--text-label-lg-semibold-fontWeight);
3068
- font-size: var(--text-label-lg-semibold-fontSize);
3069
- line-height: var(--text-label-lg-semibold-lineHeight);
3070
- }
3071
-
3072
- .muka-toggle--disabled .muka-toggle__label {
3073
- color: var(--color-text-subtle-default);
3074
- cursor: not-allowed;
3075
- }
3076
-
3077
- /* Caption */
3078
- .muka-toggle__caption {
3079
- font-family: var(--text-body-base-regular-fontFamily);
3080
- font-weight: var(--text-body-base-regular-fontWeight);
3081
- font-size: var(--text-body-base-regular-fontSize);
3082
- line-height: var(--text-body-base-regular-lineHeight);
3083
- color: var(--color-text-subtle-default);
3084
- }
3085
-
3086
- /* Switch container */
3087
- .muka-toggle__switch {
3088
- position: relative;
3089
- display: inline-flex;
3090
- flex-shrink: 0;
3091
- cursor: pointer;
3092
- }
3093
-
3094
- .muka-toggle--disabled .muka-toggle__switch {
3095
- cursor: not-allowed;
3096
- }
3097
-
3098
- /* Hidden native input */
3099
- .muka-toggle__input {
3100
- position: absolute;
3101
- width: 1px;
3102
- height: 1px;
3103
- padding: 0;
3104
- margin: -1px;
3105
- overflow: hidden;
3106
- clip: rect(0, 0, 0, 0);
3107
- white-space: nowrap;
3108
- border: 0;
3109
- }
3110
-
3111
- /* Track (background pill) */
3112
- .muka-toggle__track {
3113
- display: flex;
3114
- align-items: center;
3115
- width: var(--toggle-track-width);
3116
- height: var(--toggle-track-height);
3117
- border-radius: var(--toggle-track-radius);
3118
- background-color: var(--toggle-track-color-off);
3119
- transition: background-color 0.2s ease;
3120
- box-shadow: inset 0 1px 4px 0 rgba(0, 0, 0, 0.16);
3121
- position: relative;
3122
- }
3123
-
3124
- /* Knob (sliding circle) */
3125
- .muka-toggle__knob {
3126
- position: absolute;
3127
- width: var(--toggle-knob-size);
3128
- height: var(--toggle-knob-size);
3129
- border-radius: var(--border-radius-full);
3130
- background-color: var(--toggle-knob-color-default);
3131
- box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);
3132
- left: var(--toggle-knob-offset);
3133
- transition: left 0.2s ease, transform 0.2s ease;
3134
- }
3135
-
3136
- /* Focus state */
3137
- .muka-toggle__input:focus-visible + .muka-toggle__track {
3138
- outline: 2px solid var(--color-border-focus);
3139
- outline-offset: 2px;
3140
- }
3141
-
3142
- /* Checked (on) state */
3143
- .muka-toggle__input:checked + .muka-toggle__track {
3144
- background-color: var(--toggle-track-color-on);
3145
- }
3146
-
3147
- .muka-toggle__input:checked + .muka-toggle__track .muka-toggle__knob {
3148
- left: calc(var(--toggle-track-width) - var(--toggle-knob-size) - var(--toggle-knob-offset));
3149
- }
3150
-
3151
- /* Disabled state */
3152
- .muka-toggle--disabled .muka-toggle__track {
3153
- background-color: var(--toggle-track-color-disabled);
3154
- box-shadow: none;
3155
- }
3156
-
3157
- .muka-toggle--disabled .muka-toggle__knob {
3158
- background-color: var(--toggle-knob-color-disabled);
3159
- box-shadow: none;
3160
- }
3161
-
3162
- /* Divider */
3163
- .muka-toggle__divider {
3164
- position: absolute;
3165
- bottom: 0;
3166
- left: 0;
3167
- right: 0;
3168
- height: 1px;
3169
- background-color: var(--color-border-muted);
3170
- }
3171
-
3172
-
3173
3029
  /* Toast */
3174
3030
  /* Toast Component Styles - Using Muka Design Tokens */
3175
3031
 
@@ -4336,11 +4192,174 @@ body {
4336
4192
  line-height: var(--text-body-base-regular-lineHeight);
4337
4193
  }
4338
4194
 
4339
- .muka-tabs__panel:focus-visible {
4195
+ .muka-tabs__panel:focus-visible {
4196
+ outline: 2px solid var(--color-border-focus);
4197
+ outline-offset: 2px;
4198
+ }
4199
+
4200
+
4201
+ /* Toggle */
4202
+ /* Toggle Component Styles - Using Muka Design Tokens */
4203
+
4204
+ /* Wrapper container */
4205
+ .muka-toggle {
4206
+ display: flex;
4207
+ align-items: center;
4208
+ gap: var(--spacing-2);
4209
+ position: relative;
4210
+ padding: var(--spacing-4) 0;
4211
+ }
4212
+
4213
+ .muka-toggle--with-caption {
4214
+ padding: var(--spacing-5) 0;
4215
+ }
4216
+
4217
+ .muka-toggle--disabled {
4218
+ opacity: 0.6;
4219
+ }
4220
+
4221
+ /* Icon */
4222
+ .muka-toggle__icon {
4223
+ display: flex;
4224
+ align-items: center;
4225
+ justify-content: center;
4226
+ flex-shrink: 0;
4227
+ width: var(--icon-size-default);
4228
+ height: var(--icon-size-default);
4229
+ color: var(--color-text-default-default);
4230
+ }
4231
+
4232
+ .muka-toggle__icon svg {
4233
+ width: 100%;
4234
+ height: 100%;
4235
+ }
4236
+
4237
+ /* Content area (label + caption) */
4238
+ .muka-toggle__content {
4239
+ display: flex;
4240
+ flex-direction: column;
4241
+ flex: 1;
4242
+ min-width: 0;
4243
+ gap: var(--spacing-1);
4244
+ }
4245
+
4246
+ /* Label */
4247
+ .muka-toggle__label {
4248
+ font-family: var(--text-label-lg-regular-fontFamily);
4249
+ font-weight: var(--text-label-lg-regular-fontWeight);
4250
+ font-size: var(--text-label-lg-regular-fontSize);
4251
+ line-height: var(--text-label-lg-regular-lineHeight);
4252
+ color: var(--color-text-default-default);
4253
+ cursor: pointer;
4254
+ }
4255
+
4256
+ .muka-toggle--with-caption .muka-toggle__label {
4257
+ font-family: var(--text-label-lg-semibold-fontFamily);
4258
+ font-weight: var(--text-label-lg-semibold-fontWeight);
4259
+ font-size: var(--text-label-lg-semibold-fontSize);
4260
+ line-height: var(--text-label-lg-semibold-lineHeight);
4261
+ }
4262
+
4263
+ .muka-toggle--disabled .muka-toggle__label {
4264
+ color: var(--color-text-subtle-default);
4265
+ cursor: not-allowed;
4266
+ }
4267
+
4268
+ /* Caption */
4269
+ .muka-toggle__caption {
4270
+ font-family: var(--text-body-base-regular-fontFamily);
4271
+ font-weight: var(--text-body-base-regular-fontWeight);
4272
+ font-size: var(--text-body-base-regular-fontSize);
4273
+ line-height: var(--text-body-base-regular-lineHeight);
4274
+ color: var(--color-text-subtle-default);
4275
+ }
4276
+
4277
+ /* Switch container */
4278
+ .muka-toggle__switch {
4279
+ position: relative;
4280
+ display: inline-flex;
4281
+ flex-shrink: 0;
4282
+ cursor: pointer;
4283
+ }
4284
+
4285
+ .muka-toggle--disabled .muka-toggle__switch {
4286
+ cursor: not-allowed;
4287
+ }
4288
+
4289
+ /* Hidden native input */
4290
+ .muka-toggle__input {
4291
+ position: absolute;
4292
+ width: 1px;
4293
+ height: 1px;
4294
+ padding: 0;
4295
+ margin: -1px;
4296
+ overflow: hidden;
4297
+ clip: rect(0, 0, 0, 0);
4298
+ white-space: nowrap;
4299
+ border: 0;
4300
+ }
4301
+
4302
+ /* Track (background pill) */
4303
+ .muka-toggle__track {
4304
+ display: flex;
4305
+ align-items: center;
4306
+ width: var(--toggle-track-width);
4307
+ height: var(--toggle-track-height);
4308
+ border-radius: var(--toggle-track-radius);
4309
+ background-color: var(--toggle-track-color-off);
4310
+ transition: background-color 0.2s ease;
4311
+ box-shadow: inset 0 1px 4px 0 rgba(0, 0, 0, 0.16);
4312
+ position: relative;
4313
+ }
4314
+
4315
+ /* Knob (sliding circle) */
4316
+ .muka-toggle__knob {
4317
+ position: absolute;
4318
+ width: var(--toggle-knob-size);
4319
+ height: var(--toggle-knob-size);
4320
+ border-radius: var(--border-radius-full);
4321
+ background-color: var(--toggle-knob-color-default);
4322
+ box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);
4323
+ left: var(--toggle-knob-offset);
4324
+ transition: left 0.2s ease, transform 0.2s ease;
4325
+ }
4326
+
4327
+ /* Focus state */
4328
+ .muka-toggle__input:focus-visible + .muka-toggle__track {
4340
4329
  outline: 2px solid var(--color-border-focus);
4341
4330
  outline-offset: 2px;
4342
4331
  }
4343
4332
 
4333
+ /* Checked (on) state */
4334
+ .muka-toggle__input:checked + .muka-toggle__track {
4335
+ background-color: var(--toggle-track-color-on);
4336
+ }
4337
+
4338
+ .muka-toggle__input:checked + .muka-toggle__track .muka-toggle__knob {
4339
+ left: calc(var(--toggle-track-width) - var(--toggle-knob-size) - var(--toggle-knob-offset));
4340
+ }
4341
+
4342
+ /* Disabled state */
4343
+ .muka-toggle--disabled .muka-toggle__track {
4344
+ background-color: var(--toggle-track-color-disabled);
4345
+ box-shadow: none;
4346
+ }
4347
+
4348
+ .muka-toggle--disabled .muka-toggle__knob {
4349
+ background-color: var(--toggle-knob-color-disabled);
4350
+ box-shadow: none;
4351
+ }
4352
+
4353
+ /* Divider */
4354
+ .muka-toggle__divider {
4355
+ position: absolute;
4356
+ bottom: 0;
4357
+ left: 0;
4358
+ right: 0;
4359
+ height: 1px;
4360
+ background-color: var(--color-border-muted);
4361
+ }
4362
+
4344
4363
 
4345
4364
  /* Table */
4346
4365
  /* Table Component Styles - Using Muka Design Tokens */
@@ -4746,114 +4765,6 @@ body {
4746
4765
  }
4747
4766
 
4748
4767
 
4749
- /* SwipeActions */
4750
- /* SwipeActions Component Styles */
4751
-
4752
- .muka-swipe-actions {
4753
- position: relative;
4754
- overflow: hidden;
4755
- touch-action: pan-y;
4756
- -webkit-user-select: none;
4757
- user-select: none;
4758
- background-color: var(--color-surface-level3);
4759
- }
4760
-
4761
- .muka-swipe-actions--disabled {
4762
- touch-action: auto;
4763
- }
4764
-
4765
- /* ─── Row that holds the actual content ────────────────── */
4766
-
4767
- .muka-swipe-actions__row {
4768
- position: relative;
4769
- z-index: 1;
4770
- background-color: inherit;
4771
- will-change: transform;
4772
- }
4773
-
4774
- /* ─── Action panels — sit beneath the row ──────────────── */
4775
-
4776
- .muka-swipe-actions__panel {
4777
- position: absolute;
4778
- top: 0;
4779
- bottom: 0;
4780
- display: flex;
4781
- align-items: stretch;
4782
- z-index: 0;
4783
- }
4784
-
4785
- .muka-swipe-actions__panel--left {
4786
- left: 0;
4787
- }
4788
-
4789
- .muka-swipe-actions__panel--right {
4790
- right: 0;
4791
- }
4792
-
4793
- /* ─── Single action button ─────────────────────────────── */
4794
-
4795
- .muka-swipe-actions__button {
4796
- display: flex;
4797
- flex-direction: column;
4798
- align-items: center;
4799
- justify-content: center;
4800
- gap: var(--spacing-1);
4801
- border: none;
4802
- cursor: pointer;
4803
- padding: var(--spacing-2);
4804
- background-color: var(--color-surface-level2);
4805
- color: var(--color-text-default-default);
4806
- font-family: var(--text-label-sm-semibold-fontFamily);
4807
- font-weight: var(--text-label-sm-semibold-fontWeight);
4808
- font-size: var(--text-label-sm-semibold-fontSize);
4809
- line-height: var(--text-label-sm-semibold-lineHeight);
4810
- -webkit-tap-highlight-color: transparent;
4811
- transition: filter 0.12s ease;
4812
- }
4813
-
4814
- .muka-swipe-actions__button:hover {
4815
- filter: brightness(0.95);
4816
- }
4817
-
4818
- .muka-swipe-actions__button:focus-visible {
4819
- outline: 2px solid var(--color-action-default);
4820
- outline-offset: -2px;
4821
- }
4822
-
4823
- .muka-swipe-actions__button-icon {
4824
- display: inline-flex;
4825
- align-items: center;
4826
- justify-content: center;
4827
- }
4828
-
4829
- /* ─── Color variants ───────────────────────────────────── */
4830
-
4831
- .muka-swipe-actions__button--neutral {
4832
- background-color: var(--color-surface-level2);
4833
- color: var(--color-text-default-default);
4834
- }
4835
-
4836
- .muka-swipe-actions__button--primary {
4837
- background-color: var(--color-action-default);
4838
- color: var(--color-text-default-inverse);
4839
- }
4840
-
4841
- .muka-swipe-actions__button--success {
4842
- background-color: var(--color-state-success-default);
4843
- color: var(--color-text-default-inverse);
4844
- }
4845
-
4846
- .muka-swipe-actions__button--warning {
4847
- background-color: var(--color-state-warning-default);
4848
- color: var(--color-text-default-default);
4849
- }
4850
-
4851
- .muka-swipe-actions__button--destructive {
4852
- background-color: var(--color-state-error-default);
4853
- color: var(--color-text-default-inverse);
4854
- }
4855
-
4856
-
4857
4768
  /* Spinner */
4858
4769
  /* Spinner Component Styles */
4859
4770
 
@@ -12576,153 +12487,33 @@ li.muka-listitem {
12576
12487
  mask: radial-gradient(farthest-side, transparent 63%, #000 65%, #000 95%, transparent 97%);
12577
12488
  }
12578
12489
 
12579
- .muka-data-pie-chart__spinner {
12580
- animation: muka-data-pie-chart-spin 0.9s linear infinite;
12581
- }
12582
-
12583
- @keyframes muka-data-pie-chart-spin {
12584
- to {
12585
- transform: rotate(360deg);
12586
- }
12587
- }
12588
-
12589
- @media (prefers-reduced-motion: reduce) {
12590
- .muka-data-pie-chart__spinner {
12591
- animation-duration: 2.5s;
12592
- }
12593
- }
12594
-
12595
- .muka-data-pie-chart__value {
12596
- position: absolute;
12597
- inset: 0;
12598
- display: flex;
12599
- align-items: center;
12600
- justify-content: center;
12601
- font-family: var(--text-body-base-bold-fontFamily);
12602
- font-weight: var(--text-body-base-bold-fontWeight);
12603
- font-size: var(--text-body-base-bold-fontSize);
12604
- line-height: var(--text-body-base-bold-lineHeight);
12605
- color: var(--color-text-default-default);
12606
- }
12607
-
12608
-
12609
- /* ContextSelect */
12610
- /* ContextSelect — split label (navigate) + chevron menu button (switch)
12611
- *
12612
- * Figma (5623:8651 / 5631:9344):
12613
- * - Root: gap spacing/1 (4px) between label group and chevron
12614
- * - Label group: gap spacing/2 (8px) icon↔label, pl spacing/2 (8px)
12615
- * - Icons: 16px (icon.size.xs)
12616
- */
12617
-
12618
- .muka-context-select {
12619
- display: inline-flex;
12620
- position: relative;
12621
- align-items: flex-start;
12622
- gap: var(--spacing-1, 4px);
12623
- }
12624
-
12625
- .muka-context-select__label-group {
12626
- display: inline-flex;
12627
- align-items: center;
12628
- gap: var(--spacing-2, 8px);
12629
- height: var(--size-2xl, 32px);
12630
- padding-left: var(--spacing-2, 8px);
12631
- padding-right: 0;
12632
- border-radius: var(--border-radius-lg);
12633
- color: var(--color-text-default-default);
12634
- text-decoration: none;
12635
- border: none;
12636
- background: transparent;
12637
- font: inherit;
12638
- cursor: default;
12639
- }
12640
-
12641
- .muka-context-select__label-group--link,
12642
- .muka-context-select__label-group--button {
12643
- cursor: pointer;
12644
- }
12645
-
12646
- .muka-context-select__label-group--link:hover .muka-context-select__label,
12647
- .muka-context-select__label-group--button:hover .muka-context-select__label,
12648
- .muka-context-select__label-group--link:focus-visible .muka-context-select__label,
12649
- .muka-context-select__label-group--button:focus-visible .muka-context-select__label {
12650
- text-decoration: underline;
12651
- text-underline-offset: 2px;
12652
- }
12653
-
12654
- .muka-context-select__label-group--link:focus-visible,
12655
- .muka-context-select__label-group--button:focus-visible {
12656
- outline: 2px solid var(--color-border-focus);
12657
- outline-offset: 2px;
12658
- }
12659
-
12660
- .muka-context-select__label-group--button:disabled,
12661
- .muka-context-select__label-group--link[aria-disabled='true'] {
12662
- cursor: not-allowed;
12663
- opacity: 0.5;
12664
- pointer-events: none;
12665
- }
12666
-
12667
- .muka-context-select__icon {
12668
- display: inline-flex;
12669
- flex-shrink: 0;
12670
- align-items: center;
12671
- justify-content: center;
12672
- width: var(--icon-size-xs, 16px);
12673
- height: var(--icon-size-xs, 16px);
12674
- color: var(--color-text-default-default);
12675
- }
12676
-
12677
- .muka-context-select__icon .muka-icon {
12678
- width: var(--icon-size-xs, 16px);
12679
- height: var(--icon-size-xs, 16px);
12680
- }
12681
-
12682
- .muka-context-select__label {
12683
- font-family: var(--text-label-sm-regular-fontFamily);
12684
- font-size: var(--text-label-sm-regular-fontSize);
12685
- font-weight: var(--text-label-sm-regular-fontWeight);
12686
- line-height: var(--text-label-sm-regular-lineHeight);
12687
- white-space: nowrap;
12688
- }
12689
-
12690
- .muka-context-select__menu-button {
12691
- position: relative;
12692
- display: inline-flex;
12693
- flex-shrink: 0;
12694
- align-items: center;
12695
- justify-content: center;
12696
- width: var(--size-2xl, 32px);
12697
- height: var(--size-2xl, 32px);
12698
- margin: 0;
12699
- padding: 0;
12700
- border: none;
12701
- border-radius: var(--border-radius-lg);
12702
- background: transparent;
12703
- color: var(--color-text-default-default);
12704
- cursor: pointer;
12705
- }
12706
-
12707
- .muka-context-select__menu-button:hover,
12708
- .muka-context-select__menu-button:focus-visible,
12709
- .muka-context-select__menu-button[data-state='open'],
12710
- .muka-context-select--expanded .muka-context-select__menu-button {
12711
- border: var(--border-width-regular) solid var(--color-border-default);
12490
+ .muka-data-pie-chart__spinner {
12491
+ animation: muka-data-pie-chart-spin 0.9s linear infinite;
12712
12492
  }
12713
12493
 
12714
- .muka-context-select__menu-button:focus-visible {
12715
- outline: 2px solid var(--color-border-focus);
12716
- outline-offset: 2px;
12494
+ @keyframes muka-data-pie-chart-spin {
12495
+ to {
12496
+ transform: rotate(360deg);
12497
+ }
12717
12498
  }
12718
12499
 
12719
- .muka-context-select__menu-button:disabled {
12720
- cursor: not-allowed;
12721
- opacity: 0.5;
12500
+ @media (prefers-reduced-motion: reduce) {
12501
+ .muka-data-pie-chart__spinner {
12502
+ animation-duration: 2.5s;
12503
+ }
12722
12504
  }
12723
12505
 
12724
- .muka-context-select__content {
12725
- min-width: 17.5rem;
12506
+ .muka-data-pie-chart__value {
12507
+ position: absolute;
12508
+ inset: 0;
12509
+ display: flex;
12510
+ align-items: center;
12511
+ justify-content: center;
12512
+ font-family: var(--text-body-base-bold-fontFamily);
12513
+ font-weight: var(--text-body-base-bold-fontWeight);
12514
+ font-size: var(--text-body-base-bold-fontSize);
12515
+ line-height: var(--text-body-base-bold-lineHeight);
12516
+ color: var(--color-text-default-default);
12726
12517
  }
12727
12518
 
12728
12519
 
@@ -12951,28 +12742,37 @@ li.muka-listitem {
12951
12742
 
12952
12743
 
12953
12744
  /* Chip */
12954
- /* Chip Component Styles - Using Muka Design Tokens (Figma: Chip) */
12745
+ /* Chip Component Styles - Using Muka Design Tokens (Figma: Chip, Chip/Trailing) */
12955
12746
 
12747
+ /*
12748
+ * Internal custom properties (not public API):
12749
+ * --_chip-gap / --_chip-pad-start / --_chip-pad-end spacing per size and slot
12750
+ * --_chip-tr-* trailing button colours per variant
12751
+ */
12956
12752
  .muka-chip {
12957
12753
  display: inline-flex;
12958
12754
  align-items: center;
12755
+ gap: var(--_chip-gap);
12756
+ padding: 0 var(--_chip-pad-end) 0 var(--_chip-pad-start);
12959
12757
  border-radius: var(--border-radius-full);
12960
12758
  white-space: nowrap;
12961
12759
  user-select: none;
12962
12760
  border: var(--border-width-regular) solid transparent;
12963
12761
  box-sizing: border-box;
12762
+ max-width: 100%;
12964
12763
  }
12965
12764
 
12966
12765
  /*
12967
- * Sizes — height, gap, type, and default (label-edge) horizontal padding.
12968
- * Vertical centering is handled by the fixed height + align-items: center.
12969
- * The side that carries an adornment (leading icon / dismiss button) gets a
12970
- * tighter padding, applied via the --has-icon / --dismissible modifiers below.
12766
+ * Sizes: height, gap, type, and label-edge padding. The side that carries an
12767
+ * adornment gets its own padding: leading icon → chip.padding.leading, and the
12768
+ * right edge after a leading icon → chip.padding.labelEnd (Figma lg: 20). A
12769
+ * trailing button → chip.padding.trailing, which wins (declared later).
12971
12770
  */
12972
12771
  .muka-chip--sm {
12973
12772
  height: var(--chip-size-height-sm);
12974
- gap: var(--chip-gap-sm);
12975
- padding: 0 var(--chip-padding-label-sm);
12773
+ --_chip-gap: var(--chip-gap-sm);
12774
+ --_chip-pad-start: var(--chip-padding-label-sm);
12775
+ --_chip-pad-end: var(--chip-padding-label-sm);
12976
12776
  font-family: var(--text-label-sm-regular-fontFamily);
12977
12777
  font-weight: var(--text-label-sm-regular-fontWeight);
12978
12778
  font-size: var(--text-label-sm-regular-fontSize);
@@ -12981,8 +12781,9 @@ li.muka-listitem {
12981
12781
 
12982
12782
  .muka-chip--md {
12983
12783
  height: var(--chip-size-height-md);
12984
- gap: var(--chip-gap-md);
12985
- padding: 0 var(--chip-padding-label-md);
12784
+ --_chip-gap: var(--chip-gap-md);
12785
+ --_chip-pad-start: var(--chip-padding-label-md);
12786
+ --_chip-pad-end: var(--chip-padding-label-md);
12986
12787
  font-family: var(--text-label-md-regular-fontFamily);
12987
12788
  font-weight: var(--text-label-md-regular-fontWeight);
12988
12789
  font-size: var(--text-label-md-regular-fontSize);
@@ -12991,37 +12792,36 @@ li.muka-listitem {
12991
12792
 
12992
12793
  .muka-chip--lg {
12993
12794
  height: var(--chip-size-height-lg);
12994
- gap: var(--chip-gap-lg);
12995
- padding: 0 var(--chip-padding-label-lg);
12795
+ --_chip-gap: var(--chip-gap-lg);
12796
+ --_chip-pad-start: var(--chip-padding-label-lg);
12797
+ --_chip-pad-end: var(--chip-padding-label-lg);
12996
12798
  font-family: var(--text-label-lg-regular-fontFamily);
12997
12799
  font-weight: var(--text-label-lg-regular-fontWeight);
12998
12800
  font-size: var(--text-label-lg-regular-fontSize);
12999
12801
  line-height: var(--text-label-lg-regular-lineHeight);
13000
12802
  }
13001
12803
 
13002
- /* Tighter leading padding when a leading icon is present */
13003
12804
  .muka-chip--sm.muka-chip--has-icon {
13004
- padding-left: var(--chip-padding-leading-sm);
12805
+ --_chip-pad-start: var(--chip-padding-leading-sm);
12806
+ --_chip-pad-end: var(--chip-padding-labelEnd-sm);
13005
12807
  }
13006
12808
  .muka-chip--md.muka-chip--has-icon {
13007
- padding-left: var(--chip-padding-leading-md);
12809
+ --_chip-pad-start: var(--chip-padding-leading-md);
12810
+ --_chip-pad-end: var(--chip-padding-labelEnd-md);
13008
12811
  }
13009
12812
  .muka-chip--lg.muka-chip--has-icon {
13010
- padding-left: var(--chip-padding-leading-lg);
12813
+ --_chip-pad-start: var(--chip-padding-leading-lg);
12814
+ --_chip-pad-end: var(--chip-padding-labelEnd-lg);
13011
12815
  }
13012
12816
 
13013
- /* Tighter trailing padding when the dismiss button is present */
13014
- .muka-chip--sm.muka-chip--dismissible,
13015
- .muka-chip--sm.muka-chip--expandable {
13016
- padding-right: var(--chip-padding-trailing-sm);
12817
+ .muka-chip--sm.muka-chip--has-trailing {
12818
+ --_chip-pad-end: var(--chip-padding-trailing-sm);
13017
12819
  }
13018
- .muka-chip--md.muka-chip--dismissible,
13019
- .muka-chip--md.muka-chip--expandable {
13020
- padding-right: var(--chip-padding-trailing-md);
12820
+ .muka-chip--md.muka-chip--has-trailing {
12821
+ --_chip-pad-end: var(--chip-padding-trailing-md);
13021
12822
  }
13022
- .muka-chip--lg.muka-chip--dismissible,
13023
- .muka-chip--lg.muka-chip--expandable {
13024
- padding-right: var(--chip-padding-trailing-lg);
12823
+ .muka-chip--lg.muka-chip--has-trailing {
12824
+ --_chip-pad-end: var(--chip-padding-trailing-lg);
13025
12825
  }
13026
12826
 
13027
12827
  /* Leading icon slot — Figma icon sizes: sm 16, md 20, lg 24 */
@@ -13068,47 +12868,117 @@ li.muka-listitem {
13068
12868
  line-height: normal;
13069
12869
  }
13070
12870
 
13071
- /* Trailing button (dismiss or expand) — circular. Figma circle sizes: sm 20, md 24, lg 32 */
13072
- .muka-chip__remove,
13073
- .muka-chip__expand {
12871
+ /*
12872
+ * Label as a link or button (`href` / `onLabelClick`). It takes over the
12873
+ * chip's start padding (and end padding when there is no trailing button), so
12874
+ * the whole body up to the trailing button is its hit area.
12875
+ */
12876
+ .muka-chip__label-action,
12877
+ .muka-chip__label-group {
12878
+ display: inline-flex;
12879
+ align-items: center;
12880
+ gap: var(--_chip-gap);
12881
+ min-width: 0;
12882
+ }
12883
+
12884
+ .muka-chip__label-action {
12885
+ align-self: stretch;
12886
+ margin: 0;
12887
+ margin-left: calc(-1 * var(--_chip-pad-start));
12888
+ padding: 0 0 0 var(--_chip-pad-start);
12889
+ border: none;
12890
+ border-radius: var(--border-radius-full);
12891
+ background: none;
12892
+ color: inherit;
12893
+ font: inherit;
12894
+ text-decoration: none;
12895
+ text-align: inherit;
12896
+ cursor: pointer;
12897
+ }
12898
+
12899
+ .muka-chip--has-label-action:not(.muka-chip--has-trailing) .muka-chip__label-action {
12900
+ margin-right: calc(-1 * var(--_chip-pad-end));
12901
+ padding-right: var(--_chip-pad-end);
12902
+ }
12903
+
12904
+ .muka-chip__label-action:focus-visible {
12905
+ outline: 2px solid var(--color-border-focus);
12906
+ outline-offset: 2px;
12907
+ }
12908
+
12909
+ /* Trailing button (dismiss / expand / switch) — circular. Figma sizes: sm 20, md 24, lg 32 */
12910
+ .muka-chip__trailing {
12911
+ position: relative;
13074
12912
  display: inline-flex;
13075
12913
  align-items: center;
13076
12914
  justify-content: center;
13077
12915
  flex-shrink: 0;
13078
12916
  padding: 0;
13079
12917
  margin: 0;
13080
- border: none;
12918
+ border: var(--border-width-regular) solid var(--_chip-tr-border, transparent);
13081
12919
  border-radius: var(--border-radius-full);
12920
+ box-sizing: border-box;
12921
+ background-color: var(--_chip-tr-bg);
12922
+ color: var(--_chip-tr-fg);
13082
12923
  cursor: pointer;
13083
- transition: background-color 0.15s ease, color 0.15s ease;
12924
+ transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
13084
12925
  }
13085
12926
 
13086
- .muka-chip--sm .muka-chip__remove,
13087
- .muka-chip--sm .muka-chip__expand {
12927
+ .muka-chip--sm .muka-chip__trailing {
13088
12928
  width: var(--icon-size-sm);
13089
12929
  height: var(--icon-size-sm);
13090
12930
  }
13091
- .muka-chip--md .muka-chip__remove,
13092
- .muka-chip--md .muka-chip__expand {
12931
+ .muka-chip--md .muka-chip__trailing {
13093
12932
  width: var(--icon-size-default);
13094
12933
  height: var(--icon-size-default);
13095
12934
  }
13096
- .muka-chip--lg .muka-chip__remove,
13097
- .muka-chip--lg .muka-chip__expand {
12935
+ .muka-chip--lg .muka-chip__trailing {
13098
12936
  width: var(--icon-size-lg);
13099
12937
  height: var(--icon-size-lg);
13100
12938
  }
13101
12939
 
13102
- .muka-chip__remove:focus-visible {
13103
- outline: 2px solid currentColor;
12940
+ /* A touch target of at least the sm chip height (24px, WCAG 2.5.8) around the 20px circle */
12941
+ button.muka-chip__trailing::before {
12942
+ content: '';
12943
+ position: absolute;
12944
+ top: 50%;
12945
+ left: 50%;
12946
+ width: max(100%, var(--chip-size-height-sm));
12947
+ height: max(100%, var(--chip-size-height-sm));
12948
+ transform: translate(-50%, -50%);
12949
+ }
12950
+
12951
+ button.muka-chip__trailing:focus-visible {
12952
+ outline: 2px solid var(--color-border-focus);
13104
12953
  outline-offset: 2px;
13105
12954
  }
13106
12955
 
12956
+ button.muka-chip__trailing:disabled {
12957
+ cursor: not-allowed;
12958
+ opacity: 0.5;
12959
+ }
12960
+
12961
+ /* Trailing button states: its own hover / pressed, or the whole chip's when the chip is one button */
12962
+ button.muka-chip__trailing:hover:not(:disabled),
12963
+ .muka-chip--expandable:hover:not(:disabled) .muka-chip__trailing {
12964
+ border-color: var(--_chip-tr-border-hover, transparent);
12965
+ background-color: var(--_chip-tr-bg-hover);
12966
+ color: var(--_chip-tr-fg-hover);
12967
+ }
12968
+
12969
+ button.muka-chip__trailing:active:not(:disabled),
12970
+ button.muka-chip__trailing[aria-expanded='true'],
12971
+ .muka-chip--expandable:active:not(:disabled) .muka-chip__trailing,
12972
+ .muka-chip--expandable[aria-expanded='true'] .muka-chip__trailing {
12973
+ border-color: var(--_chip-tr-border-hover, transparent);
12974
+ background-color: var(--_chip-tr-bg-pressed);
12975
+ color: var(--_chip-tr-fg-pressed);
12976
+ }
12977
+
13107
12978
  /*
13108
- * Expandable chip (Figma "Chip/Trailing Expand"): the whole chip is one button,
13109
- * typically a menu trigger. Hovering or pressing anywhere on it drives the
13110
- * chevron's hover / pressed steps; an open menu (aria-expanded) shows pressed,
13111
- * like Button's open state.
12979
+ * Whole-chip button (`trailing="expand" | "switch"`, Figma "Chip/Trailing
12980
+ * Expand"): typically a menu trigger. An open menu (aria-expanded) shows the
12981
+ * trailing button pressed, like Button's open state.
13112
12982
  */
13113
12983
  .muka-chip--expandable {
13114
12984
  margin: 0;
@@ -13125,127 +12995,97 @@ li.muka-listitem {
13125
12995
  cursor: not-allowed;
13126
12996
  }
13127
12997
 
13128
- .muka-chip__expand {
12998
+ .muka-chip--expandable .muka-chip__trailing {
13129
12999
  pointer-events: none;
13130
13000
  }
13131
13001
 
13132
- /*
13133
- * Dismiss button colors — state-tinted per chip variant, with default / hover /
13134
- * pressed steps. Values come from T4 chip.dismiss.* tokens, which reference the
13135
- * brand-specific alias state-surface ramp. The ✕ (.muka-icon) inherits `color`.
13136
- */
13137
- .muka-chip--default .muka-chip__remove,
13138
- .muka-chip--default .muka-chip__expand {
13139
- background-color: var(--chip-dismiss-default-background-default);
13140
- color: var(--chip-dismiss-default-foreground-default);
13141
- }
13142
- .muka-chip--default .muka-chip__remove:hover,
13143
- .muka-chip--default.muka-chip--expandable:hover:not(:disabled) .muka-chip__expand {
13144
- background-color: var(--chip-dismiss-default-background-hover);
13145
- color: var(--chip-dismiss-default-foreground-hover);
13146
- }
13147
- .muka-chip--default .muka-chip__remove:active,
13148
- .muka-chip--default.muka-chip--expandable:active:not(:disabled) .muka-chip__expand,
13149
- .muka-chip--default.muka-chip--expandable[aria-expanded='true'] .muka-chip__expand {
13150
- background-color: var(--chip-dismiss-default-background-pressed);
13151
- color: var(--chip-dismiss-default-foreground-pressed);
13152
- }
13153
-
13154
- .muka-chip--success .muka-chip__remove,
13155
- .muka-chip--success .muka-chip__expand {
13156
- background-color: var(--chip-dismiss-success-background-default);
13157
- color: var(--chip-dismiss-success-foreground-default);
13158
- }
13159
- .muka-chip--success .muka-chip__remove:hover,
13160
- .muka-chip--success.muka-chip--expandable:hover:not(:disabled) .muka-chip__expand {
13161
- background-color: var(--chip-dismiss-success-background-hover);
13162
- color: var(--chip-dismiss-success-foreground-hover);
13163
- }
13164
- .muka-chip--success .muka-chip__remove:active,
13165
- .muka-chip--success.muka-chip--expandable:active:not(:disabled) .muka-chip__expand,
13166
- .muka-chip--success.muka-chip--expandable[aria-expanded='true'] .muka-chip__expand {
13167
- background-color: var(--chip-dismiss-success-background-pressed);
13168
- color: var(--chip-dismiss-success-foreground-pressed);
13169
- }
13170
-
13171
- .muka-chip--warning .muka-chip__remove,
13172
- .muka-chip--warning .muka-chip__expand {
13173
- background-color: var(--chip-dismiss-warning-background-default);
13174
- color: var(--chip-dismiss-warning-foreground-default);
13175
- }
13176
- .muka-chip--warning .muka-chip__remove:hover,
13177
- .muka-chip--warning.muka-chip--expandable:hover:not(:disabled) .muka-chip__expand {
13178
- background-color: var(--chip-dismiss-warning-background-hover);
13179
- color: var(--chip-dismiss-warning-foreground-hover);
13180
- }
13181
- .muka-chip--warning .muka-chip__remove:active,
13182
- .muka-chip--warning.muka-chip--expandable:active:not(:disabled) .muka-chip__expand,
13183
- .muka-chip--warning.muka-chip--expandable[aria-expanded='true'] .muka-chip__expand {
13184
- background-color: var(--chip-dismiss-warning-background-pressed);
13185
- color: var(--chip-dismiss-warning-foreground-pressed);
13186
- }
13187
-
13188
- .muka-chip--error .muka-chip__remove,
13189
- .muka-chip--error .muka-chip__expand {
13190
- background-color: var(--chip-dismiss-error-background-default);
13191
- color: var(--chip-dismiss-error-foreground-default);
13192
- }
13193
- .muka-chip--error .muka-chip__remove:hover,
13194
- .muka-chip--error.muka-chip--expandable:hover:not(:disabled) .muka-chip__expand {
13195
- background-color: var(--chip-dismiss-error-background-hover);
13196
- color: var(--chip-dismiss-error-foreground-hover);
13197
- }
13198
- .muka-chip--error .muka-chip__remove:active,
13199
- .muka-chip--error.muka-chip--expandable:active:not(:disabled) .muka-chip__expand,
13200
- .muka-chip--error.muka-chip--expandable[aria-expanded='true'] .muka-chip__expand {
13201
- background-color: var(--chip-dismiss-error-background-pressed);
13202
- color: var(--chip-dismiss-error-foreground-pressed);
13203
- }
13204
-
13205
- .muka-chip--info .muka-chip__remove,
13206
- .muka-chip--info .muka-chip__expand {
13207
- background-color: var(--chip-dismiss-info-background-default);
13208
- color: var(--chip-dismiss-info-foreground-default);
13209
- }
13210
- .muka-chip--info .muka-chip__remove:hover,
13211
- .muka-chip--info.muka-chip--expandable:hover:not(:disabled) .muka-chip__expand {
13212
- background-color: var(--chip-dismiss-info-background-hover);
13213
- color: var(--chip-dismiss-info-foreground-hover);
13214
- }
13215
- .muka-chip--info .muka-chip__remove:active,
13216
- .muka-chip--info.muka-chip--expandable:active:not(:disabled) .muka-chip__expand,
13217
- .muka-chip--info.muka-chip--expandable[aria-expanded='true'] .muka-chip__expand {
13218
- background-color: var(--chip-dismiss-info-background-pressed);
13219
- color: var(--chip-dismiss-info-foreground-pressed);
13220
- }
13221
-
13222
- /* Variants (solid fill) — icons inherit these foreground colors (see below) */
13002
+ /* Variants: body fill, foreground, and the trailing button's colour steps */
13223
13003
  .muka-chip--default {
13224
- background-color: var(--color-surface-level1);
13004
+ background-color: var(--chip-neutral-background-default);
13225
13005
  color: var(--color-text-default-default);
13006
+ --_chip-tr-bg: var(--chip-trailing-default-background-default);
13007
+ --_chip-tr-bg-hover: var(--chip-trailing-default-background-hover);
13008
+ --_chip-tr-bg-pressed: var(--chip-trailing-default-background-pressed);
13009
+ --_chip-tr-fg: var(--chip-trailing-default-foreground-default);
13010
+ --_chip-tr-fg-hover: var(--chip-trailing-default-foreground-hover);
13011
+ --_chip-tr-fg-pressed: var(--chip-trailing-default-foreground-pressed);
13226
13012
  }
13227
13013
 
13228
13014
  .muka-chip--success {
13229
13015
  background-color: var(--color-state-success-background);
13230
13016
  color: var(--color-state-success-contrast);
13017
+ --_chip-tr-bg: var(--chip-trailing-success-background-default);
13018
+ --_chip-tr-bg-hover: var(--chip-trailing-success-background-hover);
13019
+ --_chip-tr-bg-pressed: var(--chip-trailing-success-background-pressed);
13020
+ --_chip-tr-fg: var(--chip-trailing-success-foreground-default);
13021
+ --_chip-tr-fg-hover: var(--chip-trailing-success-foreground-hover);
13022
+ --_chip-tr-fg-pressed: var(--chip-trailing-success-foreground-pressed);
13231
13023
  }
13232
13024
 
13233
13025
  .muka-chip--warning {
13234
13026
  background-color: var(--color-state-warning-background);
13235
13027
  color: var(--color-state-warning-contrast);
13028
+ --_chip-tr-bg: var(--chip-trailing-warning-background-default);
13029
+ --_chip-tr-bg-hover: var(--chip-trailing-warning-background-hover);
13030
+ --_chip-tr-bg-pressed: var(--chip-trailing-warning-background-pressed);
13031
+ --_chip-tr-fg: var(--chip-trailing-warning-foreground-default);
13032
+ --_chip-tr-fg-hover: var(--chip-trailing-warning-foreground-hover);
13033
+ --_chip-tr-fg-pressed: var(--chip-trailing-warning-foreground-pressed);
13236
13034
  }
13237
13035
 
13238
13036
  .muka-chip--error {
13239
13037
  background-color: var(--color-state-error-background);
13240
13038
  color: var(--color-state-error-contrast);
13039
+ --_chip-tr-bg: var(--chip-trailing-error-background-default);
13040
+ --_chip-tr-bg-hover: var(--chip-trailing-error-background-hover);
13041
+ --_chip-tr-bg-pressed: var(--chip-trailing-error-background-pressed);
13042
+ --_chip-tr-fg: var(--chip-trailing-error-foreground-default);
13043
+ --_chip-tr-fg-hover: var(--chip-trailing-error-foreground-hover);
13044
+ --_chip-tr-fg-pressed: var(--chip-trailing-error-foreground-pressed);
13241
13045
  }
13242
13046
 
13243
13047
  .muka-chip--info {
13244
13048
  background-color: var(--color-state-info-background);
13245
13049
  color: var(--color-state-info-contrast);
13050
+ --_chip-tr-bg: var(--chip-trailing-info-background-default);
13051
+ --_chip-tr-bg-hover: var(--chip-trailing-info-background-hover);
13052
+ --_chip-tr-bg-pressed: var(--chip-trailing-info-background-pressed);
13053
+ --_chip-tr-fg: var(--chip-trailing-info-foreground-default);
13054
+ --_chip-tr-fg-hover: var(--chip-trailing-info-foreground-hover);
13055
+ --_chip-tr-fg-pressed: var(--chip-trailing-info-foreground-pressed);
13056
+ }
13057
+
13058
+ /* Ghost: no fill, subtle label; the trailing circle is outlined at rest (Figma Chip/Trailing Ghost) */
13059
+ .muka-chip--ghost {
13060
+ background-color: var(--chip-ghost-background-default);
13061
+ color: var(--chip-ghost-foreground-default);
13062
+ --_chip-tr-border: var(--chip-trailing-ghost-border-default);
13063
+ --_chip-tr-bg: var(--chip-trailing-ghost-background-default);
13064
+ --_chip-tr-bg-hover: var(--chip-trailing-ghost-background-hover);
13065
+ --_chip-tr-bg-pressed: var(--chip-trailing-ghost-background-pressed);
13066
+ --_chip-tr-fg: var(--chip-trailing-ghost-foreground-default);
13067
+ --_chip-tr-fg-hover: var(--chip-trailing-ghost-foreground-hover);
13068
+ --_chip-tr-fg-pressed: var(--chip-trailing-ghost-foreground-pressed);
13069
+ }
13070
+
13071
+ /*
13072
+ * Body hover (Figma Chip State=Hover) — only on chips whose body does
13073
+ * something: the whole-chip button, or a label link/button (hovering just the
13074
+ * label, not the trailing button, which has its own states). A static chip
13075
+ * doesn't hover.
13076
+ */
13077
+ .muka-chip--default.muka-chip--expandable:is(:hover, :focus-visible, [aria-expanded='true']):not(:disabled),
13078
+ .muka-chip--default.muka-chip--has-label-action:has(> .muka-chip__label-action:is(:hover, :focus-visible)) {
13079
+ background-color: var(--chip-neutral-background-hover);
13080
+ }
13081
+
13082
+ .muka-chip--ghost.muka-chip--expandable:is(:hover, :focus-visible, [aria-expanded='true']):not(:disabled),
13083
+ .muka-chip--ghost.muka-chip--has-label-action:has(> .muka-chip__label-action:is(:hover, :focus-visible)) {
13084
+ background-color: var(--chip-ghost-background-hover);
13085
+ color: var(--chip-ghost-foreground-hover);
13246
13086
  }
13247
13087
 
13248
- /* Icons (leading + dismiss) inherit the chip's per-variant foreground color */
13088
+ /* Icons (leading + trailing) inherit their slot's foreground color */
13249
13089
  .muka-chip .muka-icon {
13250
13090
  color: inherit;
13251
13091
  }
@@ -15053,7 +14893,12 @@ button.muka-chat-photo-grid__tile:focus-visible {
15053
14893
 
15054
14894
 
15055
14895
  /* Breadcrumb */
15056
- /* Breadcrumb Component Styles */
14896
+ /* Breadcrumb Component Styles (Figma: Breadcrumb 6770:12446)
14897
+ *
14898
+ * Every level is a ghost Chip (Chip.css); this file only lays them out,
14899
+ * with the same gap (breadcrumb.gap.separator, 4px) on either side of the
14900
+ * separator.
14901
+ */
15057
14902
 
15058
14903
  .muka-breadcrumb__list {
15059
14904
  display: flex;
@@ -15062,88 +14907,23 @@ button.muka-chat-photo-grid__tile:focus-visible {
15062
14907
  list-style: none;
15063
14908
  margin: 0;
15064
14909
  padding: 0;
15065
- gap: var(--spacing-1);
14910
+ gap: var(--breadcrumb-gap-separator);
15066
14911
  }
15067
14912
 
15068
14913
  .muka-breadcrumb__item {
15069
14914
  display: inline-flex;
15070
14915
  align-items: center;
15071
- gap: var(--spacing-1);
15072
- }
15073
-
15074
- .muka-breadcrumb__item:has(.muka-breadcrumb__icon) {
15075
- padding-left: var(--spacing-1);
15076
- }
15077
-
15078
- .muka-breadcrumb__icon {
15079
- display: inline-flex;
15080
- align-items: center;
15081
- color: var(--color-text-subtle-default);
15082
- }
15083
-
15084
- .muka-breadcrumb__icon .muka-icon {
15085
- color: inherit;
15086
- }
15087
-
15088
- .muka-breadcrumb__item:has(.muka-breadcrumb__current) .muka-breadcrumb__icon {
15089
- color: var(--color-text-default-default);
15090
- }
15091
-
15092
- .muka-breadcrumb__item:has(.muka-breadcrumb__link:hover) .muka-breadcrumb__icon {
15093
- color: var(--color-text-action-default);
15094
- }
15095
-
15096
- /* Link styles */
15097
- .muka-breadcrumb__link {
15098
- color: var(--color-text-subtle-default);
15099
- text-decoration: none;
15100
- border: none;
15101
- background: none;
15102
- padding-inline: var(--spacing-2);
15103
- padding-block: 0;
15104
- cursor: pointer;
15105
- font: inherit;
15106
- transition: color 0.15s ease;
15107
- }
15108
-
15109
- .muka-breadcrumb__link:hover {
15110
- color: var(--color-text-action-default);
15111
- text-decoration: underline;
15112
- }
15113
-
15114
- /* Tighter gap after leading icon */
15115
- .muka-breadcrumb__item:has(.muka-breadcrumb__icon) .muka-breadcrumb__link,
15116
- .muka-breadcrumb__item:has(.muka-breadcrumb__icon) .muka-breadcrumb__current {
15117
- padding-left: var(--spacing-1);
15118
- }
15119
-
15120
- /* Current page (last item, no context switcher) */
15121
- .muka-breadcrumb__current {
15122
- color: var(--color-text-default-default);
15123
- font-weight: 600;
15124
- padding-inline: var(--spacing-2);
14916
+ gap: var(--breadcrumb-gap-separator);
14917
+ min-width: 0;
15125
14918
  }
15126
14919
 
15127
- /* Separator */
15128
- .muka-breadcrumb__separator {
15129
- color: var(--color-text-subtle-default);
14920
+ .muka-breadcrumb__separator,
14921
+ .muka-breadcrumb__ellipsis {
14922
+ color: var(--breadcrumb-separator-color);
15130
14923
  user-select: none;
15131
14924
  }
15132
14925
 
15133
- .muka-breadcrumb__item--context {
15134
- gap: 0;
15135
- }
15136
-
15137
- .muka-breadcrumb__list:has(.muka-breadcrumb__item--context) {
15138
- gap: 0;
15139
- }
15140
-
15141
- .muka-breadcrumb__item--context .muka-breadcrumb__separator {
15142
- margin: 0;
15143
- padding-inline: var(--spacing-1, 4px);
15144
- }
15145
-
15146
- /* Size variants */
14926
+ /* Size variants: separator and ellipsis type (the chips size themselves) */
15147
14927
  .muka-breadcrumb--sm {
15148
14928
  font-family: var(--text-label-sm-regular-fontFamily);
15149
14929
  font-weight: var(--text-label-sm-regular-fontWeight);
@@ -15165,7 +14945,15 @@ button.muka-chat-photo-grid__tile:focus-visible {
15165
14945
  line-height: var(--text-label-lg-regular-lineHeight);
15166
14946
  }
15167
14947
 
15168
- /* Truncate: one line; the current page shortens with an ellipsis */
14948
+ .muka-breadcrumb__menu {
14949
+ min-width: 17.5rem;
14950
+ }
14951
+
14952
+ /*
14953
+ * Truncate: one line. The current page shortens first, down to
14954
+ * breadcrumb.truncate.current.minWidth (or the full width, if that is less);
14955
+ * after that the earlier levels shorten too, each with an ellipsis.
14956
+ */
15169
14957
  .muka-breadcrumb--truncate {
15170
14958
  min-width: 0;
15171
14959
  overflow: hidden;
@@ -15177,20 +14965,16 @@ button.muka-chat-photo-grid__tile:focus-visible {
15177
14965
  }
15178
14966
 
15179
14967
  .muka-breadcrumb--truncate .muka-breadcrumb__item {
15180
- flex-shrink: 0;
14968
+ flex: 0 1 auto;
15181
14969
  }
15182
14970
 
15183
14971
  .muka-breadcrumb--truncate .muka-breadcrumb__item:last-child {
15184
- flex-shrink: 1;
15185
- min-width: 0;
15186
- overflow: hidden;
14972
+ flex-shrink: 1000;
14973
+ min-width: min(var(--breadcrumb-truncate-current-minWidth), 100%);
15187
14974
  }
15188
14975
 
15189
- .muka-breadcrumb--truncate .muka-breadcrumb__current {
14976
+ .muka-breadcrumb--truncate .muka-breadcrumb__chip {
15190
14977
  min-width: 0;
15191
- overflow: hidden;
15192
- text-overflow: ellipsis;
15193
- white-space: nowrap;
15194
14978
  }
15195
14979
 
15196
14980
 
@@ -17051,3 +16835,111 @@ button.muka-chat-photo-grid__tile:focus-visible {
17051
16835
  border-bottom: none;
17052
16836
  }
17053
16837
 
16838
+
16839
+ /* SwipeActions */
16840
+ /* SwipeActions Component Styles */
16841
+
16842
+ .muka-swipe-actions {
16843
+ position: relative;
16844
+ overflow: hidden;
16845
+ touch-action: pan-y;
16846
+ -webkit-user-select: none;
16847
+ user-select: none;
16848
+ background-color: var(--color-surface-level3);
16849
+ }
16850
+
16851
+ .muka-swipe-actions--disabled {
16852
+ touch-action: auto;
16853
+ }
16854
+
16855
+ /* ─── Row that holds the actual content ────────────────── */
16856
+
16857
+ .muka-swipe-actions__row {
16858
+ position: relative;
16859
+ z-index: 1;
16860
+ background-color: inherit;
16861
+ will-change: transform;
16862
+ }
16863
+
16864
+ /* ─── Action panels — sit beneath the row ──────────────── */
16865
+
16866
+ .muka-swipe-actions__panel {
16867
+ position: absolute;
16868
+ top: 0;
16869
+ bottom: 0;
16870
+ display: flex;
16871
+ align-items: stretch;
16872
+ z-index: 0;
16873
+ }
16874
+
16875
+ .muka-swipe-actions__panel--left {
16876
+ left: 0;
16877
+ }
16878
+
16879
+ .muka-swipe-actions__panel--right {
16880
+ right: 0;
16881
+ }
16882
+
16883
+ /* ─── Single action button ─────────────────────────────── */
16884
+
16885
+ .muka-swipe-actions__button {
16886
+ display: flex;
16887
+ flex-direction: column;
16888
+ align-items: center;
16889
+ justify-content: center;
16890
+ gap: var(--spacing-1);
16891
+ border: none;
16892
+ cursor: pointer;
16893
+ padding: var(--spacing-2);
16894
+ background-color: var(--color-surface-level2);
16895
+ color: var(--color-text-default-default);
16896
+ font-family: var(--text-label-sm-semibold-fontFamily);
16897
+ font-weight: var(--text-label-sm-semibold-fontWeight);
16898
+ font-size: var(--text-label-sm-semibold-fontSize);
16899
+ line-height: var(--text-label-sm-semibold-lineHeight);
16900
+ -webkit-tap-highlight-color: transparent;
16901
+ transition: filter 0.12s ease;
16902
+ }
16903
+
16904
+ .muka-swipe-actions__button:hover {
16905
+ filter: brightness(0.95);
16906
+ }
16907
+
16908
+ .muka-swipe-actions__button:focus-visible {
16909
+ outline: 2px solid var(--color-action-default);
16910
+ outline-offset: -2px;
16911
+ }
16912
+
16913
+ .muka-swipe-actions__button-icon {
16914
+ display: inline-flex;
16915
+ align-items: center;
16916
+ justify-content: center;
16917
+ }
16918
+
16919
+ /* ─── Color variants ───────────────────────────────────── */
16920
+
16921
+ .muka-swipe-actions__button--neutral {
16922
+ background-color: var(--color-surface-level2);
16923
+ color: var(--color-text-default-default);
16924
+ }
16925
+
16926
+ .muka-swipe-actions__button--primary {
16927
+ background-color: var(--color-action-default);
16928
+ color: var(--color-text-default-inverse);
16929
+ }
16930
+
16931
+ .muka-swipe-actions__button--success {
16932
+ background-color: var(--color-state-success-default);
16933
+ color: var(--color-text-default-inverse);
16934
+ }
16935
+
16936
+ .muka-swipe-actions__button--warning {
16937
+ background-color: var(--color-state-warning-default);
16938
+ color: var(--color-text-default-default);
16939
+ }
16940
+
16941
+ .muka-swipe-actions__button--destructive {
16942
+ background-color: var(--color-state-error-default);
16943
+ color: var(--color-text-default-inverse);
16944
+ }
16945
+