@carbon/styles 1.69.0 → 1.70.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/styles.css +589 -101
- package/css/styles.min.css +1 -1
- package/package.json +10 -2
- package/scss/__tests__/__snapshots__/config-test.js.snap +1 -0
- package/scss/_config.scss +6 -0
- package/scss/_reset.scss +1 -0
- package/scss/components/checkbox/_checkbox.scss +9 -0
- package/scss/components/data-table/_data-table.scss +8 -1
- package/scss/components/data-table/sort/_data-table-sort.scss +2 -2
- package/scss/components/date-picker/_date-picker.scss +30 -2
- package/scss/components/dropdown/_dropdown.scss +4 -0
- package/scss/components/fluid-date-picker/_fluid-date-picker.scss +19 -3
- package/scss/components/fluid-list-box/_fluid-list-box.scss +93 -2
- package/scss/components/fluid-number-input/_fluid-number-input.scss +40 -2
- package/scss/components/fluid-select/_fluid-select.scss +6 -2
- package/scss/components/fluid-text-area/_fluid-text-area.scss +37 -3
- package/scss/components/fluid-text-input/_fluid-text-input.scss +31 -1
- package/scss/components/list-box/_list-box.scss +132 -2
- package/scss/components/modal/_modal.scss +8 -0
- package/scss/components/number-input/_number-input.scss +67 -3
- package/scss/components/radio-button/_radio-button.scss +10 -1
- package/scss/components/select/_select.scss +23 -3
- package/scss/components/slug/_slug.scss +374 -1
- package/scss/components/tag/_tag.scss +10 -1
- package/scss/components/text-area/_text-area.scss +54 -2
- package/scss/components/text-input/_text-input.scss +56 -2
- package/scss/components/tile/_tile.scss +16 -1
- package/scss/fonts/__tests__/__snapshots__/fonts-test.js.snap +180 -180
- package/scss/fonts/_mono.scss +66 -9
- package/scss/fonts/_sans-arabic.scss +17 -8
- package/scss/fonts/_sans-devanagari.scss +17 -8
- package/scss/fonts/_sans-hebrew.scss +17 -8
- package/scss/fonts/_sans-thai-looped.scss +17 -8
- package/scss/fonts/_sans-thai.scss +17 -8
- package/scss/fonts/_sans.scss +66 -9
- package/scss/fonts/_serif.scss +66 -9
- package/scss/fonts/_src.scss +39 -12
|
@@ -51,6 +51,10 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
51
51
|
@mixin list-box {
|
|
52
52
|
// The overall container element for a `list-box`. Has two variants,
|
|
53
53
|
// `disabled` and `inline`.
|
|
54
|
+
.#{$prefix}--list-box__wrapper {
|
|
55
|
+
display: block;
|
|
56
|
+
}
|
|
57
|
+
|
|
54
58
|
.#{$prefix}--list-box__wrapper--inline {
|
|
55
59
|
display: inline-grid;
|
|
56
60
|
align-items: center;
|
|
@@ -885,7 +889,11 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
885
889
|
text-overflow: ellipsis;
|
|
886
890
|
}
|
|
887
891
|
|
|
888
|
-
//
|
|
892
|
+
// AILabel styles
|
|
893
|
+
.#{$prefix}--list-box__wrapper--decorator
|
|
894
|
+
.#{$prefix}--list-box__inner-wrapper--decorator
|
|
895
|
+
> *,
|
|
896
|
+
.#{$prefix}--list-box__wrapper--slug .#{$prefix}--ai-label,
|
|
889
897
|
.#{$prefix}--list-box__wrapper--slug .#{$prefix}--slug {
|
|
890
898
|
position: absolute;
|
|
891
899
|
inset-block-start: 50%;
|
|
@@ -894,6 +902,14 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
894
902
|
transform: translateY(-50%);
|
|
895
903
|
}
|
|
896
904
|
|
|
905
|
+
.#{$prefix}--list-box__wrapper--decorator
|
|
906
|
+
.#{$prefix}--list-box__inner-wrapper--decorator
|
|
907
|
+
> *::after,
|
|
908
|
+
.#{$prefix}--list-box__wrapper--decorator
|
|
909
|
+
.#{$prefix}--list-box__inner-wrapper--decorator
|
|
910
|
+
> *::before,
|
|
911
|
+
.#{$prefix}--list-box__wrapper--slug .#{$prefix}--ai-label::after,
|
|
912
|
+
.#{$prefix}--list-box__wrapper--slug .#{$prefix}--ai-label::before,
|
|
897
913
|
.#{$prefix}--list-box__wrapper--slug .#{$prefix}--slug::after,
|
|
898
914
|
.#{$prefix}--list-box__wrapper--slug .#{$prefix}--slug::before {
|
|
899
915
|
position: absolute;
|
|
@@ -903,42 +919,89 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
903
919
|
inline-size: convert.to-rem(1px);
|
|
904
920
|
}
|
|
905
921
|
|
|
922
|
+
.#{$prefix}--list-box__wrapper--decorator
|
|
923
|
+
.#{$prefix}--list-box__inner-wrapper--decorator
|
|
924
|
+
> *::before,
|
|
925
|
+
.#{$prefix}--list-box__wrapper--slug .#{$prefix}--ai-label::before,
|
|
906
926
|
.#{$prefix}--list-box__wrapper--slug .#{$prefix}--slug::before {
|
|
907
927
|
display: none;
|
|
908
928
|
inset-inline-start: convert.to-rem(-9px);
|
|
909
929
|
}
|
|
910
930
|
|
|
931
|
+
.#{$prefix}--list-box__wrapper--decorator
|
|
932
|
+
.#{$prefix}--list-box__inner-wrapper--decorator
|
|
933
|
+
> *::after,
|
|
934
|
+
.#{$prefix}--list-box__wrapper--slug .#{$prefix}--ai-label::after,
|
|
911
935
|
.#{$prefix}--list-box__wrapper--slug .#{$prefix}--slug::after {
|
|
912
936
|
display: block;
|
|
937
|
+
inset-block-start: 0;
|
|
913
938
|
inset-inline-end: convert.to-rem(-9px);
|
|
914
939
|
}
|
|
915
940
|
|
|
941
|
+
.#{$prefix}--list-box__wrapper--decorator
|
|
942
|
+
.#{$prefix}--list-box__inner-wrapper--decorator
|
|
943
|
+
.#{$prefix}--ai-label--revert::after,
|
|
944
|
+
.#{$prefix}--list-box__wrapper--slug .#{$prefix}--ai-label--revert::after,
|
|
916
945
|
.#{$prefix}--list-box__wrapper--slug .#{$prefix}--slug--revert::after {
|
|
917
946
|
inset-block-start: convert.to-rem(8px);
|
|
918
947
|
inset-inline-end: convert.to-rem(-1px);
|
|
919
948
|
}
|
|
920
949
|
|
|
950
|
+
.#{$prefix}--list-box__wrapper--decorator
|
|
951
|
+
.#{$prefix}--list-box:has(
|
|
952
|
+
.#{$prefix}--list-box__inner-wrapper--decorator .#{$prefix}--ai-label
|
|
953
|
+
):not(
|
|
954
|
+
:has(
|
|
955
|
+
.#{$prefix}--list-box__inner-wrapper--decorator
|
|
956
|
+
.#{$prefix}--ai-label--revert
|
|
957
|
+
)
|
|
958
|
+
),
|
|
959
|
+
.#{$prefix}--list-box__wrapper--slug
|
|
960
|
+
.#{$prefix}--list-box:has(.#{$prefix}--ai-label):not(
|
|
961
|
+
:has(.#{$prefix}--ai-label--revert)
|
|
962
|
+
),
|
|
921
963
|
.#{$prefix}--list-box__wrapper--slug
|
|
922
|
-
.#{$prefix}--list-box:
|
|
964
|
+
.#{$prefix}--list-box:has(.#{$prefix}--slug):not(
|
|
965
|
+
:has(.#{$prefix}--slug--revert)
|
|
966
|
+
) {
|
|
923
967
|
@include ai-gradient;
|
|
924
968
|
}
|
|
925
969
|
|
|
970
|
+
.#{$prefix}--list-box__wrapper--decorator
|
|
971
|
+
.#{$prefix}--list-box
|
|
972
|
+
input[role='combobox'],
|
|
926
973
|
.#{$prefix}--list-box__wrapper--slug
|
|
927
974
|
.#{$prefix}--list-box
|
|
928
975
|
input[role='combobox'] {
|
|
929
976
|
border-block-end-color: transparent;
|
|
930
977
|
}
|
|
931
978
|
|
|
979
|
+
.#{$prefix}--list-box__wrapper--decorator .#{$prefix}--list-box__field,
|
|
980
|
+
.#{$prefix}--list-box__wrapper--decorator .#{$prefix}--text-input--empty,
|
|
932
981
|
.#{$prefix}--list-box__wrapper--slug .#{$prefix}--list-box__field,
|
|
933
982
|
.#{$prefix}--list-box__wrapper--slug .#{$prefix}--text-input--empty {
|
|
934
983
|
padding-inline-end: $spacing-10;
|
|
935
984
|
}
|
|
936
985
|
|
|
986
|
+
.#{$prefix}--list-box__wrapper--decorator
|
|
987
|
+
.#{$prefix}--text-input:not(.#{$prefix}--text-input--empty),
|
|
937
988
|
.#{$prefix}--list-box__wrapper--slug
|
|
938
989
|
.#{$prefix}--text-input:not(.#{$prefix}--text-input--empty) {
|
|
939
990
|
padding-inline-end: $spacing-12;
|
|
940
991
|
}
|
|
941
992
|
|
|
993
|
+
.#{$prefix}--list-box__wrapper--decorator
|
|
994
|
+
.#{$prefix}--list-box--invalid[data-invalid]
|
|
995
|
+
.#{$prefix}--text-input--empty,
|
|
996
|
+
.#{$prefix}--list-box__wrapper--decorator
|
|
997
|
+
.#{$prefix}--list-box--invalid[data-invalid]
|
|
998
|
+
.#{$prefix}--list-box__field,
|
|
999
|
+
.#{$prefix}--list-box__wrapper--decorator
|
|
1000
|
+
.#{$prefix}--list-box--warning
|
|
1001
|
+
.#{$prefix}--text-input--empty,
|
|
1002
|
+
.#{$prefix}--list-box__wrapper--decorator
|
|
1003
|
+
.#{$prefix}--list-box--warning
|
|
1004
|
+
.#{$prefix}--list-box__field,
|
|
942
1005
|
.#{$prefix}--list-box__wrapper--slug
|
|
943
1006
|
.#{$prefix}--list-box--invalid[data-invalid]
|
|
944
1007
|
.#{$prefix}--text-input--empty,
|
|
@@ -954,6 +1017,12 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
954
1017
|
padding-inline-end: $spacing-12;
|
|
955
1018
|
}
|
|
956
1019
|
|
|
1020
|
+
.#{$prefix}--list-box__wrapper--decorator
|
|
1021
|
+
.#{$prefix}--list-box--invalid[data-invalid]
|
|
1022
|
+
.#{$prefix}--text-input:not(.#{$prefix}--text-input--empty),
|
|
1023
|
+
.#{$prefix}--list-box__wrapper--decorator
|
|
1024
|
+
.#{$prefix}--list-box--warning
|
|
1025
|
+
.#{$prefix}--text-input:not(.#{$prefix}--text-input--empty),
|
|
957
1026
|
.#{$prefix}--list-box__wrapper--slug
|
|
958
1027
|
.#{$prefix}--list-box--invalid[data-invalid]
|
|
959
1028
|
.#{$prefix}--text-input:not(.#{$prefix}--text-input--empty),
|
|
@@ -963,6 +1032,16 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
963
1032
|
padding-inline-end: convert.to-rem(141px);
|
|
964
1033
|
}
|
|
965
1034
|
|
|
1035
|
+
.#{$prefix}--list-box__wrapper--decorator
|
|
1036
|
+
.#{$prefix}--list-box--invalid[data-invalid]
|
|
1037
|
+
.#{$prefix}--text-input--empty
|
|
1038
|
+
+ .#{$prefix}--list-box__invalid-icon,
|
|
1039
|
+
.#{$prefix}--list-box__wrapper--decorator
|
|
1040
|
+
.#{$prefix}--list-box--invalid[data-invalid]
|
|
1041
|
+
.#{$prefix}--list-box__invalid-icon,
|
|
1042
|
+
.#{$prefix}--list-box__wrapper--decorator
|
|
1043
|
+
.#{$prefix}--list-box--warning
|
|
1044
|
+
.#{$prefix}--list-box__invalid-icon.#{$prefix}--list-box__invalid-icon--warning,
|
|
966
1045
|
.#{$prefix}--list-box__wrapper--slug
|
|
967
1046
|
.#{$prefix}--list-box--invalid[data-invalid]
|
|
968
1047
|
.#{$prefix}--text-input--empty
|
|
@@ -976,6 +1055,24 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
976
1055
|
inset-inline-end: convert.to-rem(83px);
|
|
977
1056
|
}
|
|
978
1057
|
|
|
1058
|
+
.#{$prefix}--list-box__wrapper--decorator
|
|
1059
|
+
.#{$prefix}--list-box--invalid[data-invalid]
|
|
1060
|
+
> *::before,
|
|
1061
|
+
.#{$prefix}--list-box__wrapper--decorator
|
|
1062
|
+
.#{$prefix}--list-box--warning
|
|
1063
|
+
> *::before,
|
|
1064
|
+
.#{$prefix}--list-box__wrapper--slug
|
|
1065
|
+
.#{$prefix}--list-box--invalid[data-invalid]
|
|
1066
|
+
.#{$prefix}--ai-label::before,
|
|
1067
|
+
.#{$prefix}--list-box__wrapper--slug
|
|
1068
|
+
.#{$prefix}--list-box--warning
|
|
1069
|
+
.#{$prefix}--ai-label::before,
|
|
1070
|
+
.#{$prefix}--list-box__wrapper--slug
|
|
1071
|
+
.#{$prefix}--list-box--invalid[data-invalid]
|
|
1072
|
+
.#{$prefix}--ai-label::before,
|
|
1073
|
+
.#{$prefix}--list-box__wrapper--slug
|
|
1074
|
+
.#{$prefix}--list-box--warning
|
|
1075
|
+
.#{$prefix}--ai-label::before,
|
|
979
1076
|
.#{$prefix}--list-box__wrapper--slug
|
|
980
1077
|
.#{$prefix}--list-box--invalid[data-invalid]
|
|
981
1078
|
.#{$prefix}--slug::before,
|
|
@@ -985,6 +1082,27 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
985
1082
|
display: block;
|
|
986
1083
|
}
|
|
987
1084
|
|
|
1085
|
+
.#{$prefix}--list-box__wrapper--decorator
|
|
1086
|
+
.#{$prefix}--list-box__field:has(.#{$prefix}--list-box__selection)
|
|
1087
|
+
~ .#{$prefix}--ai-label,
|
|
1088
|
+
.#{$prefix}--list-box__wrapper--decorator
|
|
1089
|
+
.#{$prefix}--list-box--warning
|
|
1090
|
+
.#{$prefix}--list-box__field:has(.#{$prefix}--list-box__selection)
|
|
1091
|
+
~ .#{$prefix}--ai-label,
|
|
1092
|
+
.#{$prefix}--list-box__wrapper--slug
|
|
1093
|
+
.#{$prefix}--list-box__field:has(.#{$prefix}--list-box__selection)
|
|
1094
|
+
~ .#{$prefix}--ai-label,
|
|
1095
|
+
.#{$prefix}--list-box__wrapper--slug
|
|
1096
|
+
.#{$prefix}--list-box--warning
|
|
1097
|
+
.#{$prefix}--list-box__field:has(.#{$prefix}--list-box__selection)
|
|
1098
|
+
~ .#{$prefix}--ai-label,
|
|
1099
|
+
.#{$prefix}--list-box__wrapper--slug
|
|
1100
|
+
.#{$prefix}--list-box__field:has(.#{$prefix}--list-box__selection)
|
|
1101
|
+
~ .#{$prefix}--ai-label,
|
|
1102
|
+
.#{$prefix}--list-box__wrapper--slug
|
|
1103
|
+
.#{$prefix}--list-box--warning
|
|
1104
|
+
.#{$prefix}--list-box__field:has(.#{$prefix}--list-box__selection)
|
|
1105
|
+
~ .#{$prefix}--ai-label,
|
|
988
1106
|
.#{$prefix}--list-box__wrapper--slug
|
|
989
1107
|
.#{$prefix}--list-box__field:has(.#{$prefix}--list-box__selection)
|
|
990
1108
|
~ .#{$prefix}--slug,
|
|
@@ -995,6 +1113,14 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
995
1113
|
inset-inline-end: calc($spacing-10 + 18px);
|
|
996
1114
|
}
|
|
997
1115
|
|
|
1116
|
+
.#{$prefix}--list-box__wrapper--decorator
|
|
1117
|
+
.#{$prefix}--list-box--invalid
|
|
1118
|
+
.#{$prefix}--list-box__field:has(.#{$prefix}--list-box__selection)
|
|
1119
|
+
.#{$prefix}--list-box__invalid-icon,
|
|
1120
|
+
.#{$prefix}--list-box__wrapper--decorator
|
|
1121
|
+
.#{$prefix}--list-box--warning
|
|
1122
|
+
.#{$prefix}--list-box__field:has(.#{$prefix}--list-box__selection)
|
|
1123
|
+
.#{$prefix}--list-box__invalid-icon,
|
|
998
1124
|
.#{$prefix}--list-box__wrapper--slug
|
|
999
1125
|
.#{$prefix}--list-box--invalid
|
|
1000
1126
|
.#{$prefix}--list-box__field:has(.#{$prefix}--list-box__selection)
|
|
@@ -1049,11 +1175,15 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
1049
1175
|
}
|
|
1050
1176
|
}
|
|
1051
1177
|
|
|
1178
|
+
.#{$prefix}--list-box__wrapper--decorator:has(.#{$prefix}--multi-select)
|
|
1179
|
+
.#{$prefix}--list-box__menu-icon,
|
|
1052
1180
|
.#{$prefix}--list-box__wrapper--slug:has(.#{$prefix}--multi-select)
|
|
1053
1181
|
.#{$prefix}--list-box__menu-icon {
|
|
1054
1182
|
inset-inline-end: $spacing-04;
|
|
1055
1183
|
}
|
|
1056
1184
|
|
|
1185
|
+
.#{$prefix}--list-box__wrapper--decorator:has(.#{$prefix}--dropdown)
|
|
1186
|
+
.#{$prefix}--list-box__menu-icon,
|
|
1057
1187
|
.#{$prefix}--list-box__wrapper--slug:has(.#{$prefix}--dropdown)
|
|
1058
1188
|
.#{$prefix}--list-box__menu-icon {
|
|
1059
1189
|
inset-inline-end: $spacing-04;
|
|
@@ -403,6 +403,14 @@
|
|
|
403
403
|
linear-gradient(to top, $layer 0, 2px, transparent 2px);
|
|
404
404
|
}
|
|
405
405
|
|
|
406
|
+
.#{$prefix}--modal-header
|
|
407
|
+
> .#{$prefix}--ai-label:has(+ .#{$prefix}--modal-close-button),
|
|
408
|
+
.#{$prefix}--modal-header
|
|
409
|
+
> .#{$prefix}--modal-close-button
|
|
410
|
+
~ .#{$prefix}--ai-label,
|
|
411
|
+
.#{$prefix}--modal--slug
|
|
412
|
+
.#{$prefix}--modal-container-body
|
|
413
|
+
> .#{$prefix}--ai-label,
|
|
406
414
|
.#{$prefix}--modal-header
|
|
407
415
|
> .#{$prefix}--slug:has(+ .#{$prefix}--modal-close-button),
|
|
408
416
|
.#{$prefix}--modal-header
|
|
@@ -426,7 +426,11 @@
|
|
|
426
426
|
background-color: $border-subtle;
|
|
427
427
|
}
|
|
428
428
|
|
|
429
|
-
// Styles for `
|
|
429
|
+
// Styles for `AILabel` rendered inside `NumberInput`
|
|
430
|
+
.#{$prefix}--number__input-wrapper--decorator
|
|
431
|
+
.#{$prefix}--number__input-inner-wrapper--decorator
|
|
432
|
+
> *,
|
|
433
|
+
.#{$prefix}--number__input-wrapper--slug .#{$prefix}--ai-label,
|
|
430
434
|
.#{$prefix}--number__input-wrapper--slug .#{$prefix}--slug {
|
|
431
435
|
position: absolute;
|
|
432
436
|
inset-block-start: 50%;
|
|
@@ -434,6 +438,22 @@
|
|
|
434
438
|
transform: translateY(-50%);
|
|
435
439
|
}
|
|
436
440
|
|
|
441
|
+
.#{$prefix}--number__input-wrapper--decorator
|
|
442
|
+
.#{$prefix}--number__input-inner-wrapper--decorator:not(
|
|
443
|
+
:has(.#{$prefix}--ai-label)
|
|
444
|
+
)
|
|
445
|
+
> * {
|
|
446
|
+
block-size: 1rem;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.#{$prefix}--number__input-wrapper--decorator
|
|
450
|
+
.#{$prefix}--number__input-inner-wrapper--decorator
|
|
451
|
+
> *::before,
|
|
452
|
+
.#{$prefix}--number__input-wrapper--decorator
|
|
453
|
+
.#{$prefix}--number__control-btn::before,
|
|
454
|
+
.#{$prefix}--number__input-wrapper--decorator
|
|
455
|
+
.#{$prefix}--number__control-btn::after,
|
|
456
|
+
.#{$prefix}--number__input-wrapper--slug .#{$prefix}--ai-label::before,
|
|
437
457
|
.#{$prefix}--number__input-wrapper--slug .#{$prefix}--slug::before,
|
|
438
458
|
.#{$prefix}--number__input-wrapper--slug
|
|
439
459
|
.#{$prefix}--number__control-btn::before,
|
|
@@ -445,7 +465,10 @@
|
|
|
445
465
|
content: '';
|
|
446
466
|
inline-size: convert.to-rem(1px);
|
|
447
467
|
}
|
|
448
|
-
|
|
468
|
+
.#{$prefix}--number__input-wrapper--decorator
|
|
469
|
+
.#{$prefix}--number__input-inner-wrapper--decorator
|
|
470
|
+
> *::before,
|
|
471
|
+
.#{$prefix}--number__input-wrapper--slug .#{$prefix}--ai-label::before,
|
|
449
472
|
.#{$prefix}--number__input-wrapper--slug .#{$prefix}--slug::before {
|
|
450
473
|
display: none;
|
|
451
474
|
inset-inline-start: convert.to-rem(-16px);
|
|
@@ -456,12 +479,16 @@
|
|
|
456
479
|
inset-inline-end: 0;
|
|
457
480
|
}
|
|
458
481
|
|
|
482
|
+
.#{$prefix}--number__input-wrapper--decorator
|
|
483
|
+
.#{$prefix}--number__control-btn::before,
|
|
459
484
|
.#{$prefix}--number__input-wrapper--slug
|
|
460
485
|
.#{$prefix}--number__control-btn::before {
|
|
461
486
|
display: block;
|
|
462
487
|
inset-inline-end: $spacing-08;
|
|
463
488
|
}
|
|
464
489
|
|
|
490
|
+
.#{$prefix}--number__input-wrapper--decorator
|
|
491
|
+
.#{$prefix}--number__control-btn:focus::before,
|
|
465
492
|
.#{$prefix}--number__input-wrapper--slug
|
|
466
493
|
.#{$prefix}--number__control-btn:focus::before {
|
|
467
494
|
display: none;
|
|
@@ -473,6 +500,8 @@
|
|
|
473
500
|
inset-inline-end: 0;
|
|
474
501
|
}
|
|
475
502
|
|
|
503
|
+
.#{$prefix}--number__input-wrapper:has(.#{$prefix}--number__control-btn:hover)
|
|
504
|
+
~ .#{$prefix}--number__input-wrapper--decorator::after,
|
|
476
505
|
.#{$prefix}--number__input-wrapper:has(.#{$prefix}--number__control-btn:hover)
|
|
477
506
|
~ .#{$prefix}--number__input-wrapper--slug::after {
|
|
478
507
|
display: none;
|
|
@@ -483,15 +512,31 @@
|
|
|
483
512
|
display: none;
|
|
484
513
|
}
|
|
485
514
|
|
|
515
|
+
.#{$prefix}--number__input-wrapper--decorator .#{$prefix}--number__invalid,
|
|
486
516
|
.#{$prefix}--number__input-wrapper--slug .#{$prefix}--number__invalid {
|
|
487
517
|
inset-inline-end: $spacing-13 - $spacing-05;
|
|
488
518
|
}
|
|
489
519
|
|
|
520
|
+
.#{$prefix}--number__input-wrapper--decorator:has(
|
|
521
|
+
.#{$prefix}--number__invalid
|
|
522
|
+
)
|
|
523
|
+
.#{$prefix}--number__input-inner-wrapper--decorator
|
|
524
|
+
> *::before,
|
|
525
|
+
.#{$prefix}--number__input-wrapper--slug:has(.#{$prefix}--number__invalid)
|
|
526
|
+
.#{$prefix}--ai-label::before,
|
|
527
|
+
.#{$prefix}--number__input-wrapper--slug:has(.#{$prefix}--number__invalid)
|
|
528
|
+
.#{$prefix}--ai-label::before,
|
|
490
529
|
.#{$prefix}--number__input-wrapper--slug:has(.#{$prefix}--number__invalid)
|
|
491
530
|
.#{$prefix}--slug::before {
|
|
492
531
|
display: block;
|
|
493
532
|
}
|
|
494
533
|
|
|
534
|
+
.#{$prefix}--number
|
|
535
|
+
.#{$prefix}--number__input-wrapper--decorator
|
|
536
|
+
input[data-invalid],
|
|
537
|
+
.#{$prefix}--number
|
|
538
|
+
.#{$prefix}--number__input-wrapper--decorator.#{$prefix}--number__input-wrapper--warning
|
|
539
|
+
input,
|
|
495
540
|
.#{$prefix}--number
|
|
496
541
|
.#{$prefix}--number__input-wrapper--slug
|
|
497
542
|
input[data-invalid],
|
|
@@ -501,8 +546,24 @@
|
|
|
501
546
|
padding-inline-end: convert.to-rem(144px);
|
|
502
547
|
}
|
|
503
548
|
|
|
549
|
+
.#{$prefix}--number__input-wrapper--decorator
|
|
550
|
+
input[type='number']:has(
|
|
551
|
+
~ .#{$prefix}--number__input-inner-wrapper--decorator
|
|
552
|
+
.#{$prefix}--ai-label
|
|
553
|
+
):not(
|
|
554
|
+
:has(
|
|
555
|
+
~ .#{$prefix}--number__input-inner-wrapper--decorator
|
|
556
|
+
.#{$prefix}--ai-label--revert
|
|
557
|
+
)
|
|
558
|
+
),
|
|
559
|
+
.#{$prefix}--number__input-wrapper--slug
|
|
560
|
+
input[type='number']:has(~ .#{$prefix}--ai-label):not(
|
|
561
|
+
:has(~ .#{$prefix}--ai-label--revert)
|
|
562
|
+
),
|
|
504
563
|
.#{$prefix}--number__input-wrapper--slug
|
|
505
|
-
input[type='number']:
|
|
564
|
+
input[type='number']:has(~ .#{$prefix}--slug):not(
|
|
565
|
+
:has(~ .#{$prefix}--slug--revert)
|
|
566
|
+
),
|
|
506
567
|
.#{$prefix}--number__input-wrapper--slug input[type='number']:disabled {
|
|
507
568
|
@include ai-gradient;
|
|
508
569
|
|
|
@@ -553,10 +614,13 @@
|
|
|
553
614
|
display: none;
|
|
554
615
|
}
|
|
555
616
|
|
|
617
|
+
.#{$prefix}--number__input-wrapper--decorator .#{$prefix}--number__rule-divider,
|
|
556
618
|
.#{$prefix}--number__input-wrapper--slug .#{$prefix}--number__rule-divider {
|
|
557
619
|
display: none;
|
|
558
620
|
}
|
|
559
621
|
|
|
622
|
+
.#{$prefix}--number__input-wrapper--decorator
|
|
623
|
+
.#{$prefix}--number__control-btn:hover,
|
|
560
624
|
.#{$prefix}--number__input-wrapper--slug
|
|
561
625
|
.#{$prefix}--number__control-btn:hover {
|
|
562
626
|
box-shadow: 0 -1px 0 $ai-border-strong inset;
|
|
@@ -288,13 +288,19 @@ $radio-border-width: 1px !default;
|
|
|
288
288
|
margin-inline: $spacing-03 0;
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
//
|
|
291
|
+
// AILabel styles
|
|
292
292
|
.#{$prefix}--radio-button-group--slug legend.#{$prefix}--label,
|
|
293
293
|
.#{$prefix}--radio-button-wrapper--slug
|
|
294
294
|
.#{$prefix}--radio-button__label-text {
|
|
295
295
|
display: flex;
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
+
.#{$prefix}--radio-button-group--slug
|
|
299
|
+
legend.#{$prefix}--label
|
|
300
|
+
.#{$prefix}--ai-label,
|
|
301
|
+
.#{$prefix}--radio-button-wrapper--slug
|
|
302
|
+
.#{$prefix}--radio-button__label-text
|
|
303
|
+
.#{$prefix}--ai-label,
|
|
298
304
|
.#{$prefix}--radio-button-group--slug
|
|
299
305
|
legend.#{$prefix}--label
|
|
300
306
|
.#{$prefix}--slug,
|
|
@@ -304,6 +310,9 @@ $radio-border-width: 1px !default;
|
|
|
304
310
|
margin-inline-start: $spacing-03;
|
|
305
311
|
}
|
|
306
312
|
|
|
313
|
+
.#{$prefix}--radio-button-wrapper--slug
|
|
314
|
+
.#{$prefix}--radio-button__label-text
|
|
315
|
+
.#{$prefix}--ai-label__button--inline,
|
|
307
316
|
.#{$prefix}--radio-button-wrapper--slug
|
|
308
317
|
.#{$prefix}--radio-button__label-text
|
|
309
318
|
.#{$prefix}--slug__button--inline {
|
|
@@ -279,10 +279,11 @@
|
|
|
279
279
|
display: none;
|
|
280
280
|
}
|
|
281
281
|
|
|
282
|
-
//
|
|
282
|
+
// AILabel styles
|
|
283
283
|
|
|
284
284
|
$divider-width: 1px;
|
|
285
285
|
|
|
286
|
+
.#{$prefix}--select--slug .#{$prefix}--ai-label,
|
|
286
287
|
.#{$prefix}--select--slug .#{$prefix}--slug {
|
|
287
288
|
position: absolute;
|
|
288
289
|
inset-block-start: 50%;
|
|
@@ -291,6 +292,8 @@
|
|
|
291
292
|
transform: translateY(-50%);
|
|
292
293
|
}
|
|
293
294
|
|
|
295
|
+
.#{$prefix}--select--slug .#{$prefix}--ai-label::after,
|
|
296
|
+
.#{$prefix}--select--slug .#{$prefix}--ai-label::before,
|
|
294
297
|
.#{$prefix}--select--slug .#{$prefix}--slug::after,
|
|
295
298
|
.#{$prefix}--select--slug .#{$prefix}--slug::before {
|
|
296
299
|
position: absolute;
|
|
@@ -300,33 +303,50 @@
|
|
|
300
303
|
inline-size: convert.to-rem(1px);
|
|
301
304
|
}
|
|
302
305
|
|
|
306
|
+
.#{$prefix}--select--slug .#{$prefix}--ai-label::before,
|
|
303
307
|
.#{$prefix}--select--slug .#{$prefix}--slug::before {
|
|
304
308
|
display: none;
|
|
305
309
|
inset-inline-start: calc(-#{$spacing-03} - #{$divider-width});
|
|
306
310
|
}
|
|
307
311
|
|
|
312
|
+
.#{$prefix}--select--slug .#{$prefix}--ai-label::after,
|
|
308
313
|
.#{$prefix}--select--slug .#{$prefix}--slug::after {
|
|
309
314
|
display: block;
|
|
310
315
|
inset-inline-end: calc(-#{$spacing-03} - #{$divider-width});
|
|
311
316
|
}
|
|
312
317
|
|
|
318
|
+
.#{$prefix}--select--slug .#{$prefix}--ai-label--revert::after,
|
|
313
319
|
.#{$prefix}--select--slug .#{$prefix}--slug--revert::after {
|
|
314
320
|
inset-block-start: convert.to-rem(8px);
|
|
315
321
|
inset-inline-end: convert.to-rem(-1px);
|
|
316
322
|
}
|
|
317
323
|
|
|
318
324
|
.#{$prefix}--select--slug
|
|
319
|
-
.#{$prefix}--select-input:
|
|
325
|
+
.#{$prefix}--select-input:has(~ .#{$prefix}--ai-label):not(
|
|
326
|
+
:has(~ .#{$prefix}--ai-label--revert)
|
|
327
|
+
),
|
|
328
|
+
.#{$prefix}--select--slug
|
|
329
|
+
.#{$prefix}--select-input:has(~ .#{$prefix}--slug):not(
|
|
330
|
+
:has(~ .#{$prefix}--slug--revert)
|
|
331
|
+
) {
|
|
320
332
|
@include ai-gradient;
|
|
321
333
|
|
|
322
334
|
padding-inline-end: $spacing-10;
|
|
323
335
|
}
|
|
324
336
|
|
|
325
337
|
.#{$prefix}--select--slug:has(.#{$prefix}--select__invalid-icon)
|
|
326
|
-
.#{$prefix}--select-input:
|
|
338
|
+
.#{$prefix}--select-input:has(~ .#{$prefix}--ai-label):not(
|
|
339
|
+
:has(~ .#{$prefix}--ai-label--revert)
|
|
340
|
+
),
|
|
341
|
+
.#{$prefix}--select--slug:has(.#{$prefix}--select__invalid-icon)
|
|
342
|
+
.#{$prefix}--select-input:has(~ .#{$prefix}--slug):not(
|
|
343
|
+
:has(~ .#{$prefix}--slug--revert)
|
|
344
|
+
) {
|
|
327
345
|
padding-inline-end: $spacing-12;
|
|
328
346
|
}
|
|
329
347
|
|
|
348
|
+
.#{$prefix}--select--slug:has(.#{$prefix}--select__invalid-icon)
|
|
349
|
+
.#{$prefix}--ai-label::before,
|
|
330
350
|
.#{$prefix}--select--slug:has(.#{$prefix}--select__invalid-icon)
|
|
331
351
|
.#{$prefix}--slug::before {
|
|
332
352
|
display: block;
|