@revikornmann/muka-ui 0.8.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/manifest.json +4 -1
- package/dist/cjs/components/Button/Button.css +29 -0
- package/dist/cjs/components/Button/Button.js +1 -1
- package/dist/cjs/components/Checkbox/Checkbox.js +44 -5
- package/dist/cjs/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/cjs/components/DatePicker/DatePicker.js +51 -6
- package/dist/cjs/components/DatePicker/DatePicker.js.map +1 -1
- package/dist/cjs/components/Form/Form.css +17 -0
- package/dist/cjs/components/Form/Form.js +31 -0
- package/dist/cjs/components/Form/Form.js.map +1 -0
- package/dist/cjs/components/Form/index.js +13 -0
- package/dist/cjs/components/Form/index.js.map +1 -0
- package/dist/cjs/components/Form/useForm.js +95 -0
- package/dist/cjs/components/Form/useForm.js.map +1 -0
- package/dist/cjs/components/Input/Input.js +52 -5
- package/dist/cjs/components/Input/Input.js.map +1 -1
- package/dist/cjs/components/LicensePlateInput/LicensePlateInput.js +50 -5
- package/dist/cjs/components/LicensePlateInput/LicensePlateInput.js.map +1 -1
- package/dist/cjs/components/NumberInput/NumberInput.js +51 -6
- package/dist/cjs/components/NumberInput/NumberInput.js.map +1 -1
- package/dist/cjs/components/Radio/Radio.js +37 -5
- package/dist/cjs/components/Radio/Radio.js.map +1 -1
- package/dist/cjs/components/RangeSlider/RangeSlider.js +37 -5
- package/dist/cjs/components/RangeSlider/RangeSlider.js.map +1 -1
- package/dist/cjs/components/SegmentGroup/SegmentGroup.css +4 -4
- package/dist/cjs/components/SegmentGroup/SegmentGroup.js +11 -6
- package/dist/cjs/components/SegmentGroup/SegmentGroup.js.map +1 -1
- package/dist/cjs/components/Select/Select.js +53 -7
- package/dist/cjs/components/Select/Select.js.map +1 -1
- package/dist/cjs/components/Textarea/Textarea.js +43 -5
- package/dist/cjs/components/Textarea/Textarea.js.map +1 -1
- package/dist/cjs/components/Toggle/Toggle.js +37 -5
- package/dist/cjs/components/Toggle/Toggle.js.map +1 -1
- package/dist/cjs/components/index.js +6 -3
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/esm/components/Button/Button.css +29 -0
- package/dist/esm/components/Button/Button.js +1 -1
- package/dist/esm/components/Checkbox/Checkbox.js +11 -4
- package/dist/esm/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/esm/components/DatePicker/DatePicker.js +18 -5
- package/dist/esm/components/DatePicker/DatePicker.js.map +1 -1
- package/dist/esm/components/Form/Form.css +17 -0
- package/dist/esm/components/Form/Form.js +27 -0
- package/dist/esm/components/Form/Form.js.map +1 -0
- package/dist/esm/components/Form/index.js +4 -0
- package/dist/esm/components/Form/index.js.map +1 -0
- package/dist/esm/components/Form/useForm.js +92 -0
- package/dist/esm/components/Form/useForm.js.map +1 -0
- package/dist/esm/components/Input/Input.js +19 -4
- package/dist/esm/components/Input/Input.js.map +1 -1
- package/dist/esm/components/LicensePlateInput/LicensePlateInput.js +17 -4
- package/dist/esm/components/LicensePlateInput/LicensePlateInput.js.map +1 -1
- package/dist/esm/components/NumberInput/NumberInput.js +18 -5
- package/dist/esm/components/NumberInput/NumberInput.js.map +1 -1
- package/dist/esm/components/Radio/Radio.js +4 -4
- package/dist/esm/components/Radio/Radio.js.map +1 -1
- package/dist/esm/components/RangeSlider/RangeSlider.js +4 -4
- package/dist/esm/components/RangeSlider/RangeSlider.js.map +1 -1
- package/dist/esm/components/SegmentGroup/SegmentGroup.css +4 -4
- package/dist/esm/components/SegmentGroup/SegmentGroup.js +11 -6
- package/dist/esm/components/SegmentGroup/SegmentGroup.js.map +1 -1
- package/dist/esm/components/Select/Select.js +18 -5
- package/dist/esm/components/Select/Select.js.map +1 -1
- package/dist/esm/components/Textarea/Textarea.js +10 -4
- package/dist/esm/components/Textarea/Textarea.js.map +1 -1
- package/dist/esm/components/Toggle/Toggle.js +4 -4
- package/dist/esm/components/Toggle/Toggle.js.map +1 -1
- package/dist/esm/components/index.js +1 -0
- package/dist/esm/components/index.js.map +1 -1
- package/dist/styles/components/Button.css +29 -0
- package/dist/styles/components/Form.css +17 -0
- package/dist/styles/components/SegmentGroup.css +4 -4
- package/dist/styles/index.css +522 -433
- package/dist/styles/muka-dark.css +522 -433
- package/dist/styles/muka-light.css +522 -433
- package/dist/styles/tokens-bouwplan-dark.css +40 -0
- package/dist/styles/tokens-bouwplan-light.css +40 -0
- package/dist/styles/tokens-fscl-dark.css +40 -0
- package/dist/styles/tokens-fscl-light.css +40 -0
- package/dist/styles/tokens-grip-dark.css +40 -0
- package/dist/styles/tokens-grip-light.css +40 -0
- package/dist/styles/tokens-muka-dark.css +40 -0
- package/dist/styles/tokens-muka-light.css +40 -0
- package/dist/styles/tokens-wireframe-dark.css +82 -42
- package/dist/styles/tokens-wireframe-light.css +82 -42
- package/dist/styles/wireframe-dark.css +564 -475
- package/dist/styles/wireframe-light.css +564 -475
- package/dist/types/components/Button/Button.d.ts +2 -2
- package/dist/types/components/Button/Button.d.ts.map +1 -1
- package/dist/types/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/types/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/types/components/DatePicker/DatePicker.d.ts +5 -1
- package/dist/types/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/types/components/Form/Form.d.ts +34 -0
- package/dist/types/components/Form/Form.d.ts.map +1 -0
- package/dist/types/components/Form/index.d.ts +4 -0
- package/dist/types/components/Form/index.d.ts.map +1 -0
- package/dist/types/components/Form/useForm.d.ts +74 -0
- package/dist/types/components/Form/useForm.d.ts.map +1 -0
- package/dist/types/components/Input/Input.d.ts +5 -1
- package/dist/types/components/Input/Input.d.ts.map +1 -1
- package/dist/types/components/LicensePlateInput/LicensePlateInput.d.ts +5 -1
- package/dist/types/components/LicensePlateInput/LicensePlateInput.d.ts.map +1 -1
- package/dist/types/components/NumberInput/NumberInput.d.ts +5 -1
- package/dist/types/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/types/components/Radio/Radio.d.ts +1 -1
- package/dist/types/components/Radio/Radio.d.ts.map +1 -1
- package/dist/types/components/RangeSlider/RangeSlider.d.ts +1 -1
- package/dist/types/components/RangeSlider/RangeSlider.d.ts.map +1 -1
- package/dist/types/components/SegmentGroup/SegmentGroup.d.ts +4 -0
- package/dist/types/components/SegmentGroup/SegmentGroup.d.ts.map +1 -1
- package/dist/types/components/Select/Select.d.ts +7 -1
- package/dist/types/components/Select/Select.d.ts.map +1 -1
- package/dist/types/components/Textarea/Textarea.d.ts +5 -1
- package/dist/types/components/Textarea/Textarea.d.ts.map +1 -1
- package/dist/types/components/Toggle/Toggle.d.ts +1 -1
- package/dist/types/components/Toggle/Toggle.d.ts.map +1 -1
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/tokens/t2-alias/brand/wireframe/radius.json +34 -0
- package/tokens/t4-components/button.json +56 -0
- package/tokens/t4-components/segmentgroup.json +8 -0
|
@@ -1592,6 +1592,18 @@ body {
|
|
|
1592
1592
|
--button-color-ghost-border-hover: #eae7ec;
|
|
1593
1593
|
--button-color-ghost-border-pressed: #eae7ec;
|
|
1594
1594
|
--button-color-ghost-border-disabled: transparent;
|
|
1595
|
+
--button-color-muted-background-default: transparent;
|
|
1596
|
+
--button-color-muted-background-hover: transparent;
|
|
1597
|
+
--button-color-muted-background-pressed: transparent;
|
|
1598
|
+
--button-color-muted-background-disabled: transparent;
|
|
1599
|
+
--button-color-muted-foreground-default: #8e8c99;
|
|
1600
|
+
--button-color-muted-foreground-hover: #211f26;
|
|
1601
|
+
--button-color-muted-foreground-pressed: #211f26;
|
|
1602
|
+
--button-color-muted-foreground-disabled: #8e8c99;
|
|
1603
|
+
--button-color-muted-border-default: transparent;
|
|
1604
|
+
--button-color-muted-border-hover: #eae7ec;
|
|
1605
|
+
--button-color-muted-border-pressed: #eae7ec;
|
|
1606
|
+
--button-color-muted-border-disabled: transparent;
|
|
1595
1607
|
--button-color-tertiary-background-default: #fdfcfd;
|
|
1596
1608
|
--button-color-tertiary-background-hover: #fdfcfd;
|
|
1597
1609
|
--button-color-tertiary-background-pressed: #f2eff3;
|
|
@@ -2095,6 +2107,8 @@ body {
|
|
|
2095
2107
|
--segmentgroup-container-radius: 999rem;
|
|
2096
2108
|
--segmentgroup-container-padding: 0.25rem;
|
|
2097
2109
|
--segmentgroup-container-shadow: inset 0px 0px 1px 0px rgba(0, 0, 0, 0.090), inset 0px 2px 4px 0px rgba(0, 0, 0, 0.090);
|
|
2110
|
+
--segmentgroup-segment-fontWeight: 400;
|
|
2111
|
+
--segmentgroup-segment-gap: 0.25rem;
|
|
2098
2112
|
--segmentgroup-segment-color-selected-background: #fdfcfd;
|
|
2099
2113
|
--segmentgroup-segment-color-selected-foreground: #211f26;
|
|
2100
2114
|
--segmentgroup-segment-color-unselected-background: transparent;
|
|
@@ -2226,6 +2240,20 @@ body {
|
|
|
2226
2240
|
}
|
|
2227
2241
|
}
|
|
2228
2242
|
|
|
2243
|
+
/* Responsive overrides: xl (min-width: 1280px) */
|
|
2244
|
+
@media (min-width: 1280px) {
|
|
2245
|
+
:root {
|
|
2246
|
+
--section-padding-vertical-default: 3rem;
|
|
2247
|
+
--section-padding-vertical-compact: 2.5rem;
|
|
2248
|
+
--section-padding-vertical-spacious: 4rem;
|
|
2249
|
+
--section-padding-horizontal-default: 2.5rem;
|
|
2250
|
+
--section-padding-horizontal-compact: 1.5rem;
|
|
2251
|
+
--section-padding-horizontal-spacious: 3rem;
|
|
2252
|
+
--container-gap-default: 2rem;
|
|
2253
|
+
--container-gap-spacious: 3rem;
|
|
2254
|
+
}
|
|
2255
|
+
}
|
|
2256
|
+
|
|
2229
2257
|
/* Layout mode: tablet (forced via data-layout attribute) */
|
|
2230
2258
|
[data-layout="tablet"] {
|
|
2231
2259
|
--section-padding-vertical-default: 2.5rem;
|
|
@@ -2251,6 +2279,18 @@ body {
|
|
|
2251
2279
|
--container-gap-spacious: 3rem;
|
|
2252
2280
|
}
|
|
2253
2281
|
|
|
2282
|
+
/* Layout mode: widescreen (forced via data-layout attribute) */
|
|
2283
|
+
[data-layout="widescreen"] {
|
|
2284
|
+
--section-padding-vertical-default: 3rem;
|
|
2285
|
+
--section-padding-vertical-compact: 2.5rem;
|
|
2286
|
+
--section-padding-vertical-spacious: 4rem;
|
|
2287
|
+
--section-padding-horizontal-default: 2.5rem;
|
|
2288
|
+
--section-padding-horizontal-compact: 1.5rem;
|
|
2289
|
+
--section-padding-horizontal-spacious: 3rem;
|
|
2290
|
+
--container-gap-default: 2rem;
|
|
2291
|
+
--container-gap-spacious: 3rem;
|
|
2292
|
+
}
|
|
2293
|
+
|
|
2254
2294
|
/* Accessibility: disable motion for users who prefer reduced motion */
|
|
2255
2295
|
@media (prefers-reduced-motion: reduce) {
|
|
2256
2296
|
:root {
|
|
@@ -2793,6 +2833,196 @@ body {
|
|
|
2793
2833
|
}
|
|
2794
2834
|
|
|
2795
2835
|
|
|
2836
|
+
/* Toast */
|
|
2837
|
+
/* Toast Component Styles - Using Muka Design Tokens */
|
|
2838
|
+
|
|
2839
|
+
.muka-toast {
|
|
2840
|
+
display: flex;
|
|
2841
|
+
align-items: flex-start;
|
|
2842
|
+
gap: var(--toast-gap);
|
|
2843
|
+
padding: var(--toast-padding-y) var(--toast-padding-x);
|
|
2844
|
+
border-radius: var(--toast-radius);
|
|
2845
|
+
box-shadow: var(--toast-shadow);
|
|
2846
|
+
min-width: var(--toast-width-min);
|
|
2847
|
+
max-width: var(--toast-width-max);
|
|
2848
|
+
pointer-events: auto;
|
|
2849
|
+
animation: muka-toast-slide-in 0.2s ease-out;
|
|
2850
|
+
}
|
|
2851
|
+
|
|
2852
|
+
/* Entry animation */
|
|
2853
|
+
@keyframes muka-toast-slide-in {
|
|
2854
|
+
from {
|
|
2855
|
+
opacity: 0;
|
|
2856
|
+
transform: translateY(8px);
|
|
2857
|
+
}
|
|
2858
|
+
to {
|
|
2859
|
+
opacity: 1;
|
|
2860
|
+
transform: translateY(0);
|
|
2861
|
+
}
|
|
2862
|
+
}
|
|
2863
|
+
|
|
2864
|
+
/* Position variants (for standalone use - typically managed by ToastProvider) */
|
|
2865
|
+
.muka-toast--top-right,
|
|
2866
|
+
.muka-toast--top-left,
|
|
2867
|
+
.muka-toast--top-center,
|
|
2868
|
+
.muka-toast--bottom-right,
|
|
2869
|
+
.muka-toast--bottom-left,
|
|
2870
|
+
.muka-toast--bottom-center {
|
|
2871
|
+
position: fixed;
|
|
2872
|
+
z-index: 9999;
|
|
2873
|
+
}
|
|
2874
|
+
|
|
2875
|
+
.muka-toast--top-right {
|
|
2876
|
+
top: var(--spacing-4);
|
|
2877
|
+
right: var(--spacing-4);
|
|
2878
|
+
}
|
|
2879
|
+
|
|
2880
|
+
.muka-toast--top-left {
|
|
2881
|
+
top: var(--spacing-4);
|
|
2882
|
+
left: var(--spacing-4);
|
|
2883
|
+
}
|
|
2884
|
+
|
|
2885
|
+
.muka-toast--top-center {
|
|
2886
|
+
top: var(--spacing-4);
|
|
2887
|
+
left: 50%;
|
|
2888
|
+
transform: translateX(-50%);
|
|
2889
|
+
}
|
|
2890
|
+
|
|
2891
|
+
.muka-toast--bottom-right {
|
|
2892
|
+
bottom: var(--spacing-4);
|
|
2893
|
+
right: var(--spacing-4);
|
|
2894
|
+
}
|
|
2895
|
+
|
|
2896
|
+
.muka-toast--bottom-left {
|
|
2897
|
+
bottom: var(--spacing-4);
|
|
2898
|
+
left: var(--spacing-4);
|
|
2899
|
+
}
|
|
2900
|
+
|
|
2901
|
+
.muka-toast--bottom-center {
|
|
2902
|
+
bottom: var(--spacing-4);
|
|
2903
|
+
left: 50%;
|
|
2904
|
+
transform: translateX(-50%);
|
|
2905
|
+
}
|
|
2906
|
+
|
|
2907
|
+
/* Variant: Info */
|
|
2908
|
+
.muka-toast--info {
|
|
2909
|
+
background-color: var(--toast-color-info-background);
|
|
2910
|
+
color: var(--toast-color-info-foreground);
|
|
2911
|
+
}
|
|
2912
|
+
|
|
2913
|
+
.muka-toast--info .muka-toast__icon {
|
|
2914
|
+
color: var(--toast-color-info-accent);
|
|
2915
|
+
}
|
|
2916
|
+
|
|
2917
|
+
/* Variant: Success */
|
|
2918
|
+
.muka-toast--success {
|
|
2919
|
+
background-color: var(--toast-color-success-background);
|
|
2920
|
+
color: var(--toast-color-success-foreground);
|
|
2921
|
+
}
|
|
2922
|
+
|
|
2923
|
+
.muka-toast--success .muka-toast__icon {
|
|
2924
|
+
color: var(--toast-color-success-accent);
|
|
2925
|
+
}
|
|
2926
|
+
|
|
2927
|
+
/* Variant: Warning */
|
|
2928
|
+
.muka-toast--warning {
|
|
2929
|
+
background-color: var(--toast-color-warning-background);
|
|
2930
|
+
color: var(--toast-color-warning-foreground);
|
|
2931
|
+
}
|
|
2932
|
+
|
|
2933
|
+
.muka-toast--warning .muka-toast__icon {
|
|
2934
|
+
color: var(--toast-color-warning-accent);
|
|
2935
|
+
}
|
|
2936
|
+
|
|
2937
|
+
/* Variant: Error */
|
|
2938
|
+
.muka-toast--error {
|
|
2939
|
+
background-color: var(--toast-color-error-background);
|
|
2940
|
+
color: var(--toast-color-error-foreground);
|
|
2941
|
+
}
|
|
2942
|
+
|
|
2943
|
+
.muka-toast--error .muka-toast__icon {
|
|
2944
|
+
color: var(--toast-color-error-accent);
|
|
2945
|
+
}
|
|
2946
|
+
|
|
2947
|
+
/* Icon */
|
|
2948
|
+
.muka-toast__icon {
|
|
2949
|
+
display: flex;
|
|
2950
|
+
align-items: center;
|
|
2951
|
+
justify-content: center;
|
|
2952
|
+
flex-shrink: 0;
|
|
2953
|
+
width: var(--toast-icon-size);
|
|
2954
|
+
height: var(--toast-icon-size);
|
|
2955
|
+
}
|
|
2956
|
+
|
|
2957
|
+
.muka-toast__icon svg {
|
|
2958
|
+
width: 100%;
|
|
2959
|
+
height: 100%;
|
|
2960
|
+
}
|
|
2961
|
+
|
|
2962
|
+
/* Content */
|
|
2963
|
+
.muka-toast__content {
|
|
2964
|
+
flex: 1;
|
|
2965
|
+
min-width: 0;
|
|
2966
|
+
}
|
|
2967
|
+
|
|
2968
|
+
.muka-toast__title {
|
|
2969
|
+
font-family: var(--text-label-md-semibold-fontFamily);
|
|
2970
|
+
font-weight: var(--text-label-md-semibold-fontWeight);
|
|
2971
|
+
font-size: var(--text-label-md-semibold-fontSize);
|
|
2972
|
+
line-height: var(--text-label-md-semibold-lineHeight);
|
|
2973
|
+
margin-bottom: var(--spacing-1);
|
|
2974
|
+
}
|
|
2975
|
+
|
|
2976
|
+
.muka-toast__message {
|
|
2977
|
+
font-family: var(--text-body-sm-regular-fontFamily);
|
|
2978
|
+
font-weight: var(--text-body-sm-regular-fontWeight);
|
|
2979
|
+
font-size: var(--text-body-sm-regular-fontSize);
|
|
2980
|
+
line-height: var(--text-body-sm-regular-lineHeight);
|
|
2981
|
+
}
|
|
2982
|
+
|
|
2983
|
+
/* Action slot */
|
|
2984
|
+
.muka-toast__action {
|
|
2985
|
+
display: flex;
|
|
2986
|
+
align-items: center;
|
|
2987
|
+
flex-shrink: 0;
|
|
2988
|
+
}
|
|
2989
|
+
|
|
2990
|
+
/* Dismiss button */
|
|
2991
|
+
.muka-toast__dismiss {
|
|
2992
|
+
display: flex;
|
|
2993
|
+
align-items: center;
|
|
2994
|
+
justify-content: center;
|
|
2995
|
+
flex-shrink: 0;
|
|
2996
|
+
width: 24px;
|
|
2997
|
+
height: 24px;
|
|
2998
|
+
padding: 0;
|
|
2999
|
+
margin: -2px -4px -2px 0;
|
|
3000
|
+
border: none;
|
|
3001
|
+
background: transparent;
|
|
3002
|
+
color: inherit;
|
|
3003
|
+
opacity: 0.7;
|
|
3004
|
+
cursor: pointer;
|
|
3005
|
+
border-radius: var(--border-radius-sm);
|
|
3006
|
+
transition: opacity 0.15s ease, background-color 0.15s ease;
|
|
3007
|
+
}
|
|
3008
|
+
|
|
3009
|
+
.muka-toast__dismiss:hover {
|
|
3010
|
+
opacity: 1;
|
|
3011
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
3012
|
+
}
|
|
3013
|
+
|
|
3014
|
+
.muka-toast__dismiss:focus-visible {
|
|
3015
|
+
outline: 2px solid var(--color-border-focus);
|
|
3016
|
+
outline-offset: 2px;
|
|
3017
|
+
opacity: 1;
|
|
3018
|
+
}
|
|
3019
|
+
|
|
3020
|
+
.muka-toast__dismiss svg {
|
|
3021
|
+
width: 16px;
|
|
3022
|
+
height: 16px;
|
|
3023
|
+
}
|
|
3024
|
+
|
|
3025
|
+
|
|
2796
3026
|
/* Tile */
|
|
2797
3027
|
/* Tile Component Styles - Using Muka Design Tokens */
|
|
2798
3028
|
|
|
@@ -3113,234 +3343,44 @@ body {
|
|
|
3113
3343
|
line-height: var(--text-subheading-sm-lineHeight);
|
|
3114
3344
|
}
|
|
3115
3345
|
|
|
3116
|
-
/* ─── Description typography ──────────────────────────── */
|
|
3117
|
-
|
|
3118
|
-
.muka-tile__description {
|
|
3119
|
-
margin: 0;
|
|
3120
|
-
color: var(--color-text-default-default);
|
|
3121
|
-
}
|
|
3122
|
-
|
|
3123
|
-
.muka-tile--lg .muka-tile__description {
|
|
3124
|
-
font-family: var(--text-body-lg-regular-fontFamily);
|
|
3125
|
-
font-weight: var(--text-body-lg-regular-fontWeight);
|
|
3126
|
-
font-size: var(--text-body-lg-regular-fontSize);
|
|
3127
|
-
line-height: var(--text-body-lg-regular-lineHeight);
|
|
3128
|
-
}
|
|
3129
|
-
|
|
3130
|
-
.muka-tile--md .muka-tile__description,
|
|
3131
|
-
.muka-tile--sm .muka-tile__description {
|
|
3132
|
-
font-family: var(--text-body-base-regular-fontFamily);
|
|
3133
|
-
font-weight: var(--text-body-base-regular-fontWeight);
|
|
3134
|
-
font-size: var(--text-body-base-regular-fontSize);
|
|
3135
|
-
line-height: var(--text-body-base-regular-lineHeight);
|
|
3136
|
-
}
|
|
3137
|
-
|
|
3138
|
-
/* Description overflow for medium */
|
|
3139
|
-
.muka-tile--md .muka-tile__description {
|
|
3140
|
-
overflow: hidden;
|
|
3141
|
-
text-overflow: ellipsis;
|
|
3142
|
-
}
|
|
3143
|
-
|
|
3144
|
-
/* ─── Price slot ──────────────────────────────────────── */
|
|
3145
|
-
|
|
3146
|
-
.muka-tile__price {
|
|
3147
|
-
flex-shrink: 0;
|
|
3148
|
-
}
|
|
3149
|
-
|
|
3150
|
-
/* ─── Action slot ─────────────────────────────────────── */
|
|
3151
|
-
|
|
3152
|
-
.muka-tile__action {
|
|
3153
|
-
flex-shrink: 0;
|
|
3154
|
-
}
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
/* Toast */
|
|
3158
|
-
/* Toast Component Styles - Using Muka Design Tokens */
|
|
3159
|
-
|
|
3160
|
-
.muka-toast {
|
|
3161
|
-
display: flex;
|
|
3162
|
-
align-items: flex-start;
|
|
3163
|
-
gap: var(--toast-gap);
|
|
3164
|
-
padding: var(--toast-padding-y) var(--toast-padding-x);
|
|
3165
|
-
border-radius: var(--toast-radius);
|
|
3166
|
-
box-shadow: var(--toast-shadow);
|
|
3167
|
-
min-width: var(--toast-width-min);
|
|
3168
|
-
max-width: var(--toast-width-max);
|
|
3169
|
-
pointer-events: auto;
|
|
3170
|
-
animation: muka-toast-slide-in 0.2s ease-out;
|
|
3171
|
-
}
|
|
3172
|
-
|
|
3173
|
-
/* Entry animation */
|
|
3174
|
-
@keyframes muka-toast-slide-in {
|
|
3175
|
-
from {
|
|
3176
|
-
opacity: 0;
|
|
3177
|
-
transform: translateY(8px);
|
|
3178
|
-
}
|
|
3179
|
-
to {
|
|
3180
|
-
opacity: 1;
|
|
3181
|
-
transform: translateY(0);
|
|
3182
|
-
}
|
|
3183
|
-
}
|
|
3184
|
-
|
|
3185
|
-
/* Position variants (for standalone use - typically managed by ToastProvider) */
|
|
3186
|
-
.muka-toast--top-right,
|
|
3187
|
-
.muka-toast--top-left,
|
|
3188
|
-
.muka-toast--top-center,
|
|
3189
|
-
.muka-toast--bottom-right,
|
|
3190
|
-
.muka-toast--bottom-left,
|
|
3191
|
-
.muka-toast--bottom-center {
|
|
3192
|
-
position: fixed;
|
|
3193
|
-
z-index: 9999;
|
|
3194
|
-
}
|
|
3195
|
-
|
|
3196
|
-
.muka-toast--top-right {
|
|
3197
|
-
top: var(--spacing-4);
|
|
3198
|
-
right: var(--spacing-4);
|
|
3199
|
-
}
|
|
3200
|
-
|
|
3201
|
-
.muka-toast--top-left {
|
|
3202
|
-
top: var(--spacing-4);
|
|
3203
|
-
left: var(--spacing-4);
|
|
3204
|
-
}
|
|
3205
|
-
|
|
3206
|
-
.muka-toast--top-center {
|
|
3207
|
-
top: var(--spacing-4);
|
|
3208
|
-
left: 50%;
|
|
3209
|
-
transform: translateX(-50%);
|
|
3210
|
-
}
|
|
3211
|
-
|
|
3212
|
-
.muka-toast--bottom-right {
|
|
3213
|
-
bottom: var(--spacing-4);
|
|
3214
|
-
right: var(--spacing-4);
|
|
3215
|
-
}
|
|
3216
|
-
|
|
3217
|
-
.muka-toast--bottom-left {
|
|
3218
|
-
bottom: var(--spacing-4);
|
|
3219
|
-
left: var(--spacing-4);
|
|
3220
|
-
}
|
|
3221
|
-
|
|
3222
|
-
.muka-toast--bottom-center {
|
|
3223
|
-
bottom: var(--spacing-4);
|
|
3224
|
-
left: 50%;
|
|
3225
|
-
transform: translateX(-50%);
|
|
3226
|
-
}
|
|
3227
|
-
|
|
3228
|
-
/* Variant: Info */
|
|
3229
|
-
.muka-toast--info {
|
|
3230
|
-
background-color: var(--toast-color-info-background);
|
|
3231
|
-
color: var(--toast-color-info-foreground);
|
|
3232
|
-
}
|
|
3233
|
-
|
|
3234
|
-
.muka-toast--info .muka-toast__icon {
|
|
3235
|
-
color: var(--toast-color-info-accent);
|
|
3236
|
-
}
|
|
3237
|
-
|
|
3238
|
-
/* Variant: Success */
|
|
3239
|
-
.muka-toast--success {
|
|
3240
|
-
background-color: var(--toast-color-success-background);
|
|
3241
|
-
color: var(--toast-color-success-foreground);
|
|
3242
|
-
}
|
|
3243
|
-
|
|
3244
|
-
.muka-toast--success .muka-toast__icon {
|
|
3245
|
-
color: var(--toast-color-success-accent);
|
|
3246
|
-
}
|
|
3247
|
-
|
|
3248
|
-
/* Variant: Warning */
|
|
3249
|
-
.muka-toast--warning {
|
|
3250
|
-
background-color: var(--toast-color-warning-background);
|
|
3251
|
-
color: var(--toast-color-warning-foreground);
|
|
3252
|
-
}
|
|
3253
|
-
|
|
3254
|
-
.muka-toast--warning .muka-toast__icon {
|
|
3255
|
-
color: var(--toast-color-warning-accent);
|
|
3256
|
-
}
|
|
3257
|
-
|
|
3258
|
-
/* Variant: Error */
|
|
3259
|
-
.muka-toast--error {
|
|
3260
|
-
background-color: var(--toast-color-error-background);
|
|
3261
|
-
color: var(--toast-color-error-foreground);
|
|
3262
|
-
}
|
|
3263
|
-
|
|
3264
|
-
.muka-toast--error .muka-toast__icon {
|
|
3265
|
-
color: var(--toast-color-error-accent);
|
|
3266
|
-
}
|
|
3267
|
-
|
|
3268
|
-
/* Icon */
|
|
3269
|
-
.muka-toast__icon {
|
|
3270
|
-
display: flex;
|
|
3271
|
-
align-items: center;
|
|
3272
|
-
justify-content: center;
|
|
3273
|
-
flex-shrink: 0;
|
|
3274
|
-
width: var(--toast-icon-size);
|
|
3275
|
-
height: var(--toast-icon-size);
|
|
3276
|
-
}
|
|
3277
|
-
|
|
3278
|
-
.muka-toast__icon svg {
|
|
3279
|
-
width: 100%;
|
|
3280
|
-
height: 100%;
|
|
3281
|
-
}
|
|
3282
|
-
|
|
3283
|
-
/* Content */
|
|
3284
|
-
.muka-toast__content {
|
|
3285
|
-
flex: 1;
|
|
3286
|
-
min-width: 0;
|
|
3287
|
-
}
|
|
3288
|
-
|
|
3289
|
-
.muka-toast__title {
|
|
3290
|
-
font-family: var(--text-label-md-semibold-fontFamily);
|
|
3291
|
-
font-weight: var(--text-label-md-semibold-fontWeight);
|
|
3292
|
-
font-size: var(--text-label-md-semibold-fontSize);
|
|
3293
|
-
line-height: var(--text-label-md-semibold-lineHeight);
|
|
3294
|
-
margin-bottom: var(--spacing-1);
|
|
3295
|
-
}
|
|
3296
|
-
|
|
3297
|
-
.muka-toast__message {
|
|
3298
|
-
font-family: var(--text-body-sm-regular-fontFamily);
|
|
3299
|
-
font-weight: var(--text-body-sm-regular-fontWeight);
|
|
3300
|
-
font-size: var(--text-body-sm-regular-fontSize);
|
|
3301
|
-
line-height: var(--text-body-sm-regular-lineHeight);
|
|
3346
|
+
/* ─── Description typography ──────────────────────────── */
|
|
3347
|
+
|
|
3348
|
+
.muka-tile__description {
|
|
3349
|
+
margin: 0;
|
|
3350
|
+
color: var(--color-text-default-default);
|
|
3302
3351
|
}
|
|
3303
3352
|
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3353
|
+
.muka-tile--lg .muka-tile__description {
|
|
3354
|
+
font-family: var(--text-body-lg-regular-fontFamily);
|
|
3355
|
+
font-weight: var(--text-body-lg-regular-fontWeight);
|
|
3356
|
+
font-size: var(--text-body-lg-regular-fontSize);
|
|
3357
|
+
line-height: var(--text-body-lg-regular-lineHeight);
|
|
3309
3358
|
}
|
|
3310
3359
|
|
|
3311
|
-
|
|
3312
|
-
.muka-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
width: 24px;
|
|
3318
|
-
height: 24px;
|
|
3319
|
-
padding: 0;
|
|
3320
|
-
margin: -2px -4px -2px 0;
|
|
3321
|
-
border: none;
|
|
3322
|
-
background: transparent;
|
|
3323
|
-
color: inherit;
|
|
3324
|
-
opacity: 0.7;
|
|
3325
|
-
cursor: pointer;
|
|
3326
|
-
border-radius: var(--border-radius-sm);
|
|
3327
|
-
transition: opacity 0.15s ease, background-color 0.15s ease;
|
|
3360
|
+
.muka-tile--md .muka-tile__description,
|
|
3361
|
+
.muka-tile--sm .muka-tile__description {
|
|
3362
|
+
font-family: var(--text-body-base-regular-fontFamily);
|
|
3363
|
+
font-weight: var(--text-body-base-regular-fontWeight);
|
|
3364
|
+
font-size: var(--text-body-base-regular-fontSize);
|
|
3365
|
+
line-height: var(--text-body-base-regular-lineHeight);
|
|
3328
3366
|
}
|
|
3329
3367
|
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3368
|
+
/* Description overflow for medium */
|
|
3369
|
+
.muka-tile--md .muka-tile__description {
|
|
3370
|
+
overflow: hidden;
|
|
3371
|
+
text-overflow: ellipsis;
|
|
3333
3372
|
}
|
|
3334
3373
|
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3374
|
+
/* ─── Price slot ──────────────────────────────────────── */
|
|
3375
|
+
|
|
3376
|
+
.muka-tile__price {
|
|
3377
|
+
flex-shrink: 0;
|
|
3339
3378
|
}
|
|
3340
3379
|
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3380
|
+
/* ─── Action slot ─────────────────────────────────────── */
|
|
3381
|
+
|
|
3382
|
+
.muka-tile__action {
|
|
3383
|
+
flex-shrink: 0;
|
|
3344
3384
|
}
|
|
3345
3385
|
|
|
3346
3386
|
|
|
@@ -4796,26 +4836,220 @@ body {
|
|
|
4796
4836
|
|
|
4797
4837
|
/* ─── Body (scrollable) ───────────────────────────────── */
|
|
4798
4838
|
|
|
4799
|
-
.muka-sheet__body {
|
|
4800
|
-
flex: 1 1 0%;
|
|
4801
|
-
min-height: 0;
|
|
4802
|
-
overflow-y: auto;
|
|
4803
|
-
-webkit-overflow-scrolling: touch;
|
|
4804
|
-
overscroll-behavior: contain;
|
|
4839
|
+
.muka-sheet__body {
|
|
4840
|
+
flex: 1 1 0%;
|
|
4841
|
+
min-height: 0;
|
|
4842
|
+
overflow-y: auto;
|
|
4843
|
+
-webkit-overflow-scrolling: touch;
|
|
4844
|
+
overscroll-behavior: contain;
|
|
4845
|
+
}
|
|
4846
|
+
|
|
4847
|
+
/* ─── Visually-hidden title (a11y) ────────────────────── */
|
|
4848
|
+
|
|
4849
|
+
.muka-sheet__sr-title {
|
|
4850
|
+
position: absolute;
|
|
4851
|
+
width: 1px;
|
|
4852
|
+
height: 1px;
|
|
4853
|
+
padding: 0;
|
|
4854
|
+
margin: -1px;
|
|
4855
|
+
overflow: hidden;
|
|
4856
|
+
clip: rect(0, 0, 0, 0);
|
|
4857
|
+
white-space: nowrap;
|
|
4858
|
+
border: 0;
|
|
4859
|
+
}
|
|
4860
|
+
|
|
4861
|
+
|
|
4862
|
+
/* Select */
|
|
4863
|
+
/* Select Component Styles - Aligned with Input for consistency */
|
|
4864
|
+
|
|
4865
|
+
.muka-select {
|
|
4866
|
+
display: inline-flex;
|
|
4867
|
+
flex-direction: column;
|
|
4868
|
+
gap: var(--spacing-2);
|
|
4869
|
+
}
|
|
4870
|
+
|
|
4871
|
+
.muka-select--full-width {
|
|
4872
|
+
width: 100%;
|
|
4873
|
+
}
|
|
4874
|
+
|
|
4875
|
+
/* Label */
|
|
4876
|
+
.muka-select__label {
|
|
4877
|
+
color: var(--color-text-default-default);
|
|
4878
|
+
cursor: pointer;
|
|
4879
|
+
}
|
|
4880
|
+
|
|
4881
|
+
.muka-select__label--sm {
|
|
4882
|
+
font-family: var(--text-label-sm-semibold-fontFamily);
|
|
4883
|
+
font-weight: var(--text-label-sm-semibold-fontWeight);
|
|
4884
|
+
font-size: var(--text-label-sm-semibold-fontSize);
|
|
4885
|
+
line-height: var(--text-label-sm-semibold-lineHeight);
|
|
4886
|
+
}
|
|
4887
|
+
|
|
4888
|
+
.muka-select__label--md {
|
|
4889
|
+
font-family: var(--text-label-md-semibold-fontFamily);
|
|
4890
|
+
font-weight: var(--text-label-md-semibold-fontWeight);
|
|
4891
|
+
font-size: var(--text-label-md-semibold-fontSize);
|
|
4892
|
+
line-height: var(--text-label-md-semibold-lineHeight);
|
|
4893
|
+
}
|
|
4894
|
+
|
|
4895
|
+
.muka-select__label--lg {
|
|
4896
|
+
font-family: var(--text-label-lg-semibold-fontFamily);
|
|
4897
|
+
font-weight: var(--text-label-lg-semibold-fontWeight);
|
|
4898
|
+
font-size: var(--text-label-lg-semibold-fontSize);
|
|
4899
|
+
line-height: var(--text-label-lg-semibold-lineHeight);
|
|
4900
|
+
}
|
|
4901
|
+
|
|
4902
|
+
.muka-select__required {
|
|
4903
|
+
color: var(--color-state-error-foreground);
|
|
4904
|
+
}
|
|
4905
|
+
|
|
4906
|
+
.muka-select__label--sm + .muka-select__field--disabled,
|
|
4907
|
+
.muka-select__label--md + .muka-select__field--disabled,
|
|
4908
|
+
.muka-select__label--lg + .muka-select__field--disabled {
|
|
4909
|
+
cursor: not-allowed;
|
|
4910
|
+
}
|
|
4911
|
+
|
|
4912
|
+
/* Field container — same as Input: 1px border, radius, padding, inset shadow */
|
|
4913
|
+
.muka-select__field {
|
|
4914
|
+
display: flex;
|
|
4915
|
+
align-items: center;
|
|
4916
|
+
gap: var(--spacing-2);
|
|
4917
|
+
position: relative;
|
|
4918
|
+
background-color: var(--input-field-color-default-background);
|
|
4919
|
+
border: var(--border-width-regular) solid var(--input-field-color-default-border);
|
|
4920
|
+
border-radius: var(--input-field-radius-md);
|
|
4921
|
+
padding: var(--input-field-padding-y) var(--input-field-padding-x);
|
|
4922
|
+
transition: border-color 0.2s ease, background-color 0.2s ease;
|
|
4923
|
+
cursor: pointer;
|
|
4924
|
+
box-sizing: border-box;
|
|
4925
|
+
}
|
|
4926
|
+
|
|
4927
|
+
/* Inset shadow — same as Input (single subtle line) */
|
|
4928
|
+
.muka-select__field::after {
|
|
4929
|
+
content: '';
|
|
4930
|
+
position: absolute;
|
|
4931
|
+
inset: 0;
|
|
4932
|
+
border-radius: inherit;
|
|
4933
|
+
box-shadow: inset 0 1px 2px 0 rgba(26, 26, 26, 0.08);
|
|
4934
|
+
pointer-events: none;
|
|
4935
|
+
}
|
|
4936
|
+
|
|
4937
|
+
/* Size variants — same radius/height as Input */
|
|
4938
|
+
.muka-select__field--sm {
|
|
4939
|
+
min-height: var(--input-field-height-sm);
|
|
4940
|
+
border-radius: var(--input-field-radius-sm);
|
|
4941
|
+
}
|
|
4942
|
+
|
|
4943
|
+
.muka-select__field--md {
|
|
4944
|
+
min-height: var(--input-field-height-default);
|
|
4945
|
+
border-radius: var(--input-field-radius-md);
|
|
4946
|
+
}
|
|
4947
|
+
|
|
4948
|
+
.muka-select__field--lg {
|
|
4949
|
+
min-height: var(--input-field-height-lg);
|
|
4950
|
+
border-radius: var(--input-field-radius-lg);
|
|
4951
|
+
}
|
|
4952
|
+
|
|
4953
|
+
/* Hover — no visual change (same as Input) */
|
|
4954
|
+
|
|
4955
|
+
/* Focus (active) — same as Input: 2px border, padding compensation */
|
|
4956
|
+
.muka-select__field--focused:not(.muka-select__field--disabled) {
|
|
4957
|
+
border-width: var(--border-width-bold);
|
|
4958
|
+
border-color: var(--input-field-color-focus-border);
|
|
4959
|
+
background-color: var(--input-field-color-focus-background);
|
|
4960
|
+
padding: calc(var(--input-field-padding-y) - 1px) calc(var(--input-field-padding-x) - 1px);
|
|
4961
|
+
}
|
|
4962
|
+
|
|
4963
|
+
/* Error — same as Input: 2px border, padding compensation */
|
|
4964
|
+
.muka-select__field--error:not(.muka-select__field--disabled) {
|
|
4965
|
+
border-width: var(--border-width-bold);
|
|
4966
|
+
border-color: var(--input-field-color-error-border);
|
|
4967
|
+
background-color: var(--input-field-color-error-background);
|
|
4968
|
+
padding: calc(var(--input-field-padding-y) - 1px) calc(var(--input-field-padding-x) - 1px);
|
|
4969
|
+
}
|
|
4970
|
+
|
|
4971
|
+
/* Disabled — same as Input */
|
|
4972
|
+
.muka-select__field--disabled {
|
|
4973
|
+
background-color: var(--input-field-color-disabled-background);
|
|
4974
|
+
border-color: var(--input-field-color-disabled-border);
|
|
4975
|
+
cursor: not-allowed;
|
|
4976
|
+
}
|
|
4977
|
+
|
|
4978
|
+
.muka-select__field--disabled::after {
|
|
4979
|
+
display: none;
|
|
4980
|
+
}
|
|
4981
|
+
|
|
4982
|
+
/* Native select — padding on field so native has 0 + right space for chevron */
|
|
4983
|
+
.muka-select__native {
|
|
4984
|
+
appearance: none;
|
|
4985
|
+
-webkit-appearance: none;
|
|
4986
|
+
flex: 1;
|
|
4987
|
+
border: none;
|
|
4988
|
+
outline: none;
|
|
4989
|
+
background: transparent;
|
|
4990
|
+
color: var(--input-field-color-default-foreground);
|
|
4991
|
+
font-family: var(--text-input-md-fontFamily);
|
|
4992
|
+
font-weight: var(--text-input-md-fontWeight);
|
|
4993
|
+
font-size: var(--text-input-md-fontSize);
|
|
4994
|
+
line-height: var(--text-input-md-lineHeight);
|
|
4995
|
+
padding: 0;
|
|
4996
|
+
padding-right: calc(var(--input-field-padding-x) + 1.5rem);
|
|
4997
|
+
cursor: pointer;
|
|
4998
|
+
min-width: 0;
|
|
4999
|
+
width: 100%;
|
|
5000
|
+
}
|
|
5001
|
+
|
|
5002
|
+
.muka-select__field--sm .muka-select__native {
|
|
5003
|
+
font-family: var(--text-input-sm-fontFamily);
|
|
5004
|
+
font-weight: var(--text-input-sm-fontWeight);
|
|
5005
|
+
font-size: var(--text-input-sm-fontSize);
|
|
5006
|
+
line-height: var(--text-input-sm-lineHeight);
|
|
5007
|
+
}
|
|
5008
|
+
|
|
5009
|
+
.muka-select__field--lg .muka-select__native {
|
|
5010
|
+
font-family: var(--text-input-lg-fontFamily);
|
|
5011
|
+
font-weight: var(--text-input-lg-fontWeight);
|
|
5012
|
+
font-size: var(--text-input-lg-fontSize);
|
|
5013
|
+
line-height: var(--text-input-lg-lineHeight);
|
|
5014
|
+
}
|
|
5015
|
+
|
|
5016
|
+
.muka-select__field--disabled .muka-select__native {
|
|
5017
|
+
color: var(--input-field-color-disabled-foreground);
|
|
5018
|
+
cursor: not-allowed;
|
|
5019
|
+
}
|
|
5020
|
+
|
|
5021
|
+
/* Chevron — aligned with field padding */
|
|
5022
|
+
.muka-select__chevron {
|
|
5023
|
+
display: inline-flex;
|
|
5024
|
+
align-items: center;
|
|
5025
|
+
position: absolute;
|
|
5026
|
+
right: var(--input-field-padding-x);
|
|
5027
|
+
pointer-events: none;
|
|
5028
|
+
color: var(--color-text-subtle-default);
|
|
5029
|
+
}
|
|
5030
|
+
|
|
5031
|
+
.muka-select__field--disabled .muka-select__chevron {
|
|
5032
|
+
color: var(--input-field-color-disabled-foreground);
|
|
4805
5033
|
}
|
|
4806
5034
|
|
|
4807
|
-
/*
|
|
5035
|
+
/* Helper text — same as Input */
|
|
5036
|
+
.muka-select__helper {
|
|
5037
|
+
font-family: var(--text-label-sm-regular-fontFamily);
|
|
5038
|
+
font-weight: var(--text-label-sm-regular-fontWeight);
|
|
5039
|
+
font-size: var(--text-label-sm-regular-fontSize);
|
|
5040
|
+
line-height: var(--text-label-sm-regular-lineHeight);
|
|
5041
|
+
color: var(--color-text-subtle-default);
|
|
5042
|
+
margin: 0;
|
|
5043
|
+
}
|
|
4808
5044
|
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
white-space: nowrap;
|
|
4818
|
-
border: 0;
|
|
5045
|
+
/* Error message — same as Input */
|
|
5046
|
+
.muka-select__error {
|
|
5047
|
+
font-family: var(--text-label-sm-regular-fontFamily);
|
|
5048
|
+
font-weight: var(--text-label-sm-regular-fontWeight);
|
|
5049
|
+
font-size: var(--text-label-sm-regular-fontSize);
|
|
5050
|
+
line-height: var(--text-label-sm-regular-lineHeight);
|
|
5051
|
+
color: var(--color-state-error-foreground);
|
|
5052
|
+
margin: 0;
|
|
4819
5053
|
}
|
|
4820
5054
|
|
|
4821
5055
|
|
|
@@ -4831,7 +5065,7 @@ body {
|
|
|
4831
5065
|
background-color: var(--segmentgroup-container-background);
|
|
4832
5066
|
border-radius: var(--segmentgroup-container-radius);
|
|
4833
5067
|
position: relative;
|
|
4834
|
-
transition:
|
|
5068
|
+
transition: background-color 0.2s ease, box-shadow 0.2s ease;
|
|
4835
5069
|
}
|
|
4836
5070
|
|
|
4837
5071
|
/* Inset shadow on container */
|
|
@@ -4872,17 +5106,18 @@ body {
|
|
|
4872
5106
|
display: inline-flex;
|
|
4873
5107
|
align-items: center;
|
|
4874
5108
|
justify-content: center;
|
|
5109
|
+
gap: var(--segmentgroup-segment-gap);
|
|
4875
5110
|
border: none;
|
|
4876
5111
|
background-color: var(--segmentgroup-segment-color-unselected-background);
|
|
4877
5112
|
color: var(--segmentgroup-segment-color-unselected-foreground);
|
|
4878
5113
|
border-radius: var(--segmentgroup-segment-radius);
|
|
4879
5114
|
cursor: pointer;
|
|
4880
|
-
transition:
|
|
5115
|
+
transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
|
|
4881
5116
|
position: relative;
|
|
4882
5117
|
outline: none;
|
|
4883
5118
|
box-shadow: var(--segmentgroup-segment-shadow-unselected);
|
|
4884
5119
|
font-family: var(--alias-font-plain-family);
|
|
4885
|
-
font-weight: var(--
|
|
5120
|
+
font-weight: var(--segmentgroup-segment-fontWeight);
|
|
4886
5121
|
z-index: 1; /* Keep above pill */
|
|
4887
5122
|
}
|
|
4888
5123
|
|
|
@@ -4975,7 +5210,6 @@ body {
|
|
|
4975
5210
|
background-color: transparent;
|
|
4976
5211
|
box-shadow: none;
|
|
4977
5212
|
color: var(--segmentgroup-segment-color-selected-foreground);
|
|
4978
|
-
font-weight: var(--alias-font-plain-weight-semibold);
|
|
4979
5213
|
z-index: 2; /* Highlight pill when focused is tested below */
|
|
4980
5214
|
}
|
|
4981
5215
|
|
|
@@ -7892,6 +8126,26 @@ li.muka-listitem {
|
|
|
7892
8126
|
}
|
|
7893
8127
|
|
|
7894
8128
|
|
|
8129
|
+
/* Form */
|
|
8130
|
+
.muka-form {
|
|
8131
|
+
display: flex;
|
|
8132
|
+
flex-direction: column;
|
|
8133
|
+
width: 100%;
|
|
8134
|
+
}
|
|
8135
|
+
|
|
8136
|
+
.muka-form--gap-sm {
|
|
8137
|
+
gap: var(--size-sm);
|
|
8138
|
+
}
|
|
8139
|
+
|
|
8140
|
+
.muka-form--gap-md {
|
|
8141
|
+
gap: var(--size-md);
|
|
8142
|
+
}
|
|
8143
|
+
|
|
8144
|
+
.muka-form--gap-lg {
|
|
8145
|
+
gap: var(--size-lg);
|
|
8146
|
+
}
|
|
8147
|
+
|
|
8148
|
+
|
|
7895
8149
|
/* FileUpload */
|
|
7896
8150
|
/* FileUpload Component Styles */
|
|
7897
8151
|
|
|
@@ -11219,6 +11473,35 @@ li.muka-listitem {
|
|
|
11219
11473
|
opacity: 1;
|
|
11220
11474
|
}
|
|
11221
11475
|
|
|
11476
|
+
/* Muted variant - same as ghost but resting foreground is subtle, darkens on interaction */
|
|
11477
|
+
.muka-button--muted {
|
|
11478
|
+
background-color: var(--button-color-muted-background-default);
|
|
11479
|
+
color: var(--button-color-muted-foreground-default);
|
|
11480
|
+
border: 1px solid var(--button-color-muted-border-default);
|
|
11481
|
+
}
|
|
11482
|
+
|
|
11483
|
+
.muka-button--muted:hover:not(:disabled) {
|
|
11484
|
+
background-color: var(--button-color-muted-background-hover);
|
|
11485
|
+
color: var(--button-color-muted-foreground-hover);
|
|
11486
|
+
border-color: var(--button-color-muted-border-hover);
|
|
11487
|
+
}
|
|
11488
|
+
|
|
11489
|
+
.muka-button--muted:active:not(:disabled),
|
|
11490
|
+
.muka-button--muted.muka-button--pressed:not(:disabled),
|
|
11491
|
+
.muka-button--muted[data-state="open"]:not(:disabled) {
|
|
11492
|
+
background-color: var(--button-color-muted-background-pressed);
|
|
11493
|
+
color: var(--button-color-muted-foreground-pressed);
|
|
11494
|
+
border-color: var(--button-color-muted-border-pressed);
|
|
11495
|
+
}
|
|
11496
|
+
|
|
11497
|
+
.muka-button--muted:disabled {
|
|
11498
|
+
background-color: var(--button-color-muted-background-disabled);
|
|
11499
|
+
color: var(--button-color-muted-foreground-disabled);
|
|
11500
|
+
border-color: var(--button-color-muted-border-disabled);
|
|
11501
|
+
cursor: not-allowed;
|
|
11502
|
+
opacity: 1;
|
|
11503
|
+
}
|
|
11504
|
+
|
|
11222
11505
|
/* General disabled state - fallback */
|
|
11223
11506
|
.muka-button:disabled {
|
|
11224
11507
|
cursor: not-allowed;
|
|
@@ -12829,197 +13112,3 @@ li.muka-listitem {
|
|
|
12829
13112
|
border-bottom: none;
|
|
12830
13113
|
}
|
|
12831
13114
|
|
|
12832
|
-
|
|
12833
|
-
/* Select */
|
|
12834
|
-
/* Select Component Styles - Aligned with Input for consistency */
|
|
12835
|
-
|
|
12836
|
-
.muka-select {
|
|
12837
|
-
display: inline-flex;
|
|
12838
|
-
flex-direction: column;
|
|
12839
|
-
gap: var(--spacing-2);
|
|
12840
|
-
}
|
|
12841
|
-
|
|
12842
|
-
.muka-select--full-width {
|
|
12843
|
-
width: 100%;
|
|
12844
|
-
}
|
|
12845
|
-
|
|
12846
|
-
/* Label */
|
|
12847
|
-
.muka-select__label {
|
|
12848
|
-
color: var(--color-text-default-default);
|
|
12849
|
-
cursor: pointer;
|
|
12850
|
-
}
|
|
12851
|
-
|
|
12852
|
-
.muka-select__label--sm {
|
|
12853
|
-
font-family: var(--text-label-sm-semibold-fontFamily);
|
|
12854
|
-
font-weight: var(--text-label-sm-semibold-fontWeight);
|
|
12855
|
-
font-size: var(--text-label-sm-semibold-fontSize);
|
|
12856
|
-
line-height: var(--text-label-sm-semibold-lineHeight);
|
|
12857
|
-
}
|
|
12858
|
-
|
|
12859
|
-
.muka-select__label--md {
|
|
12860
|
-
font-family: var(--text-label-md-semibold-fontFamily);
|
|
12861
|
-
font-weight: var(--text-label-md-semibold-fontWeight);
|
|
12862
|
-
font-size: var(--text-label-md-semibold-fontSize);
|
|
12863
|
-
line-height: var(--text-label-md-semibold-lineHeight);
|
|
12864
|
-
}
|
|
12865
|
-
|
|
12866
|
-
.muka-select__label--lg {
|
|
12867
|
-
font-family: var(--text-label-lg-semibold-fontFamily);
|
|
12868
|
-
font-weight: var(--text-label-lg-semibold-fontWeight);
|
|
12869
|
-
font-size: var(--text-label-lg-semibold-fontSize);
|
|
12870
|
-
line-height: var(--text-label-lg-semibold-lineHeight);
|
|
12871
|
-
}
|
|
12872
|
-
|
|
12873
|
-
.muka-select__required {
|
|
12874
|
-
color: var(--color-state-error-foreground);
|
|
12875
|
-
}
|
|
12876
|
-
|
|
12877
|
-
.muka-select__label--sm + .muka-select__field--disabled,
|
|
12878
|
-
.muka-select__label--md + .muka-select__field--disabled,
|
|
12879
|
-
.muka-select__label--lg + .muka-select__field--disabled {
|
|
12880
|
-
cursor: not-allowed;
|
|
12881
|
-
}
|
|
12882
|
-
|
|
12883
|
-
/* Field container — same as Input: 1px border, radius, padding, inset shadow */
|
|
12884
|
-
.muka-select__field {
|
|
12885
|
-
display: flex;
|
|
12886
|
-
align-items: center;
|
|
12887
|
-
gap: var(--spacing-2);
|
|
12888
|
-
position: relative;
|
|
12889
|
-
background-color: var(--input-field-color-default-background);
|
|
12890
|
-
border: var(--border-width-regular) solid var(--input-field-color-default-border);
|
|
12891
|
-
border-radius: var(--input-field-radius-md);
|
|
12892
|
-
padding: var(--input-field-padding-y) var(--input-field-padding-x);
|
|
12893
|
-
transition: border-color 0.2s ease, background-color 0.2s ease;
|
|
12894
|
-
cursor: pointer;
|
|
12895
|
-
box-sizing: border-box;
|
|
12896
|
-
}
|
|
12897
|
-
|
|
12898
|
-
/* Inset shadow — same as Input (single subtle line) */
|
|
12899
|
-
.muka-select__field::after {
|
|
12900
|
-
content: '';
|
|
12901
|
-
position: absolute;
|
|
12902
|
-
inset: 0;
|
|
12903
|
-
border-radius: inherit;
|
|
12904
|
-
box-shadow: inset 0 1px 2px 0 rgba(26, 26, 26, 0.08);
|
|
12905
|
-
pointer-events: none;
|
|
12906
|
-
}
|
|
12907
|
-
|
|
12908
|
-
/* Size variants — same radius/height as Input */
|
|
12909
|
-
.muka-select__field--sm {
|
|
12910
|
-
min-height: var(--input-field-height-sm);
|
|
12911
|
-
border-radius: var(--input-field-radius-sm);
|
|
12912
|
-
}
|
|
12913
|
-
|
|
12914
|
-
.muka-select__field--md {
|
|
12915
|
-
min-height: var(--input-field-height-default);
|
|
12916
|
-
border-radius: var(--input-field-radius-md);
|
|
12917
|
-
}
|
|
12918
|
-
|
|
12919
|
-
.muka-select__field--lg {
|
|
12920
|
-
min-height: var(--input-field-height-lg);
|
|
12921
|
-
border-radius: var(--input-field-radius-lg);
|
|
12922
|
-
}
|
|
12923
|
-
|
|
12924
|
-
/* Hover — no visual change (same as Input) */
|
|
12925
|
-
|
|
12926
|
-
/* Focus (active) — same as Input: 2px border, padding compensation */
|
|
12927
|
-
.muka-select__field--focused:not(.muka-select__field--disabled) {
|
|
12928
|
-
border-width: var(--border-width-bold);
|
|
12929
|
-
border-color: var(--input-field-color-focus-border);
|
|
12930
|
-
background-color: var(--input-field-color-focus-background);
|
|
12931
|
-
padding: calc(var(--input-field-padding-y) - 1px) calc(var(--input-field-padding-x) - 1px);
|
|
12932
|
-
}
|
|
12933
|
-
|
|
12934
|
-
/* Error — same as Input: 2px border, padding compensation */
|
|
12935
|
-
.muka-select__field--error:not(.muka-select__field--disabled) {
|
|
12936
|
-
border-width: var(--border-width-bold);
|
|
12937
|
-
border-color: var(--input-field-color-error-border);
|
|
12938
|
-
background-color: var(--input-field-color-error-background);
|
|
12939
|
-
padding: calc(var(--input-field-padding-y) - 1px) calc(var(--input-field-padding-x) - 1px);
|
|
12940
|
-
}
|
|
12941
|
-
|
|
12942
|
-
/* Disabled — same as Input */
|
|
12943
|
-
.muka-select__field--disabled {
|
|
12944
|
-
background-color: var(--input-field-color-disabled-background);
|
|
12945
|
-
border-color: var(--input-field-color-disabled-border);
|
|
12946
|
-
cursor: not-allowed;
|
|
12947
|
-
}
|
|
12948
|
-
|
|
12949
|
-
.muka-select__field--disabled::after {
|
|
12950
|
-
display: none;
|
|
12951
|
-
}
|
|
12952
|
-
|
|
12953
|
-
/* Native select — padding on field so native has 0 + right space for chevron */
|
|
12954
|
-
.muka-select__native {
|
|
12955
|
-
appearance: none;
|
|
12956
|
-
-webkit-appearance: none;
|
|
12957
|
-
flex: 1;
|
|
12958
|
-
border: none;
|
|
12959
|
-
outline: none;
|
|
12960
|
-
background: transparent;
|
|
12961
|
-
color: var(--input-field-color-default-foreground);
|
|
12962
|
-
font-family: var(--text-input-md-fontFamily);
|
|
12963
|
-
font-weight: var(--text-input-md-fontWeight);
|
|
12964
|
-
font-size: var(--text-input-md-fontSize);
|
|
12965
|
-
line-height: var(--text-input-md-lineHeight);
|
|
12966
|
-
padding: 0;
|
|
12967
|
-
padding-right: calc(var(--input-field-padding-x) + 1.5rem);
|
|
12968
|
-
cursor: pointer;
|
|
12969
|
-
min-width: 0;
|
|
12970
|
-
width: 100%;
|
|
12971
|
-
}
|
|
12972
|
-
|
|
12973
|
-
.muka-select__field--sm .muka-select__native {
|
|
12974
|
-
font-family: var(--text-input-sm-fontFamily);
|
|
12975
|
-
font-weight: var(--text-input-sm-fontWeight);
|
|
12976
|
-
font-size: var(--text-input-sm-fontSize);
|
|
12977
|
-
line-height: var(--text-input-sm-lineHeight);
|
|
12978
|
-
}
|
|
12979
|
-
|
|
12980
|
-
.muka-select__field--lg .muka-select__native {
|
|
12981
|
-
font-family: var(--text-input-lg-fontFamily);
|
|
12982
|
-
font-weight: var(--text-input-lg-fontWeight);
|
|
12983
|
-
font-size: var(--text-input-lg-fontSize);
|
|
12984
|
-
line-height: var(--text-input-lg-lineHeight);
|
|
12985
|
-
}
|
|
12986
|
-
|
|
12987
|
-
.muka-select__field--disabled .muka-select__native {
|
|
12988
|
-
color: var(--input-field-color-disabled-foreground);
|
|
12989
|
-
cursor: not-allowed;
|
|
12990
|
-
}
|
|
12991
|
-
|
|
12992
|
-
/* Chevron — aligned with field padding */
|
|
12993
|
-
.muka-select__chevron {
|
|
12994
|
-
display: inline-flex;
|
|
12995
|
-
align-items: center;
|
|
12996
|
-
position: absolute;
|
|
12997
|
-
right: var(--input-field-padding-x);
|
|
12998
|
-
pointer-events: none;
|
|
12999
|
-
color: var(--color-text-subtle-default);
|
|
13000
|
-
}
|
|
13001
|
-
|
|
13002
|
-
.muka-select__field--disabled .muka-select__chevron {
|
|
13003
|
-
color: var(--input-field-color-disabled-foreground);
|
|
13004
|
-
}
|
|
13005
|
-
|
|
13006
|
-
/* Helper text — same as Input */
|
|
13007
|
-
.muka-select__helper {
|
|
13008
|
-
font-family: var(--text-label-sm-regular-fontFamily);
|
|
13009
|
-
font-weight: var(--text-label-sm-regular-fontWeight);
|
|
13010
|
-
font-size: var(--text-label-sm-regular-fontSize);
|
|
13011
|
-
line-height: var(--text-label-sm-regular-lineHeight);
|
|
13012
|
-
color: var(--color-text-subtle-default);
|
|
13013
|
-
margin: 0;
|
|
13014
|
-
}
|
|
13015
|
-
|
|
13016
|
-
/* Error message — same as Input */
|
|
13017
|
-
.muka-select__error {
|
|
13018
|
-
font-family: var(--text-label-sm-regular-fontFamily);
|
|
13019
|
-
font-weight: var(--text-label-sm-regular-fontWeight);
|
|
13020
|
-
font-size: var(--text-label-sm-regular-fontSize);
|
|
13021
|
-
line-height: var(--text-label-sm-regular-lineHeight);
|
|
13022
|
-
color: var(--color-state-error-foreground);
|
|
13023
|
-
margin: 0;
|
|
13024
|
-
}
|
|
13025
|
-
|