@ptsecurity/mosaic 15.1.0 → 15.2.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/_theming.scss +81 -19
- package/_visual.scss +23 -10
- package/autocomplete/autocomplete.scss +1 -1
- package/button/_button-base.scss +6 -0
- package/button/button.component.d.ts +11 -4
- package/button/button.module.d.ts +2 -1
- package/core/styles/_mosaic-theme.scss +1 -1
- package/core/styles/theming/_components-theming.scss +7 -1
- package/core/styles/typography/_typography.scss +34 -24
- package/datepicker/calendar-header.scss +6 -0
- package/dl/_dl-theme.scss +49 -4
- package/dl/dl.component.d.ts +2 -1
- package/dl/dl.scss +39 -6
- package/esm2020/autocomplete/autocomplete.component.mjs +3 -3
- package/esm2020/button/button.component.mjs +47 -38
- package/esm2020/button/button.module.mjs +8 -4
- package/esm2020/core/version.mjs +2 -2
- package/esm2020/datepicker/calendar-header.component.mjs +2 -2
- package/esm2020/dl/dl.component.mjs +7 -3
- package/esm2020/form-field/form-field.mjs +2 -2
- package/esm2020/form-field/hint.mjs +3 -3
- package/esm2020/input/input-number.mjs +6 -1
- package/esm2020/modal/modal.component.mjs +3 -3
- package/esm2020/select/select.component.mjs +7 -14
- package/esm2020/sidepanel/sidepanel-directives.mjs +3 -3
- package/esm2020/tags/tag-input.mjs +3 -3
- package/esm2020/timezone/timezone-select.component.mjs +2 -2
- package/esm2020/tooltip/tooltip.animations.mjs +4 -4
- package/esm2020/tooltip/tooltip.component.mjs +9 -6
- package/esm2020/tree-select/tree-select.component.mjs +39 -38
- package/fesm2015/ptsecurity-mosaic-autocomplete.mjs +2 -2
- package/fesm2015/ptsecurity-mosaic-autocomplete.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-button.mjs +52 -37
- package/fesm2015/ptsecurity-mosaic-button.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-core.mjs +1 -1
- package/fesm2015/ptsecurity-mosaic-core.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-datepicker.mjs +2 -2
- package/fesm2015/ptsecurity-mosaic-datepicker.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-dl.mjs +6 -2
- package/fesm2015/ptsecurity-mosaic-dl.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-form-field.mjs +3 -3
- package/fesm2015/ptsecurity-mosaic-form-field.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-input.mjs +6 -0
- package/fesm2015/ptsecurity-mosaic-input.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-modal.mjs +2 -2
- package/fesm2015/ptsecurity-mosaic-modal.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-select.mjs +6 -13
- package/fesm2015/ptsecurity-mosaic-select.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-sidepanel.mjs +2 -2
- package/fesm2015/ptsecurity-mosaic-sidepanel.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tags.mjs +2 -2
- package/fesm2015/ptsecurity-mosaic-tags.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-timezone.mjs +2 -2
- package/fesm2015/ptsecurity-mosaic-timezone.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tooltip.mjs +11 -8
- package/fesm2015/ptsecurity-mosaic-tooltip.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tree-select.mjs +39 -37
- package/fesm2015/ptsecurity-mosaic-tree-select.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-autocomplete.mjs +2 -2
- package/fesm2020/ptsecurity-mosaic-autocomplete.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-button.mjs +50 -37
- package/fesm2020/ptsecurity-mosaic-button.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-core.mjs +1 -1
- package/fesm2020/ptsecurity-mosaic-core.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-datepicker.mjs +2 -2
- package/fesm2020/ptsecurity-mosaic-datepicker.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-dl.mjs +6 -2
- package/fesm2020/ptsecurity-mosaic-dl.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-form-field.mjs +3 -3
- package/fesm2020/ptsecurity-mosaic-form-field.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-input.mjs +5 -0
- package/fesm2020/ptsecurity-mosaic-input.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-modal.mjs +2 -2
- package/fesm2020/ptsecurity-mosaic-modal.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-select.mjs +6 -13
- package/fesm2020/ptsecurity-mosaic-select.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-sidepanel.mjs +2 -2
- package/fesm2020/ptsecurity-mosaic-sidepanel.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-tags.mjs +2 -2
- package/fesm2020/ptsecurity-mosaic-tags.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-timezone.mjs +2 -2
- package/fesm2020/ptsecurity-mosaic-timezone.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-tooltip.mjs +11 -8
- package/fesm2020/ptsecurity-mosaic-tooltip.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-tree-select.mjs +38 -37
- package/fesm2020/ptsecurity-mosaic-tree-select.mjs.map +1 -1
- package/form-field/_form-field-theme.scss +9 -0
- package/form-field/form-field.scss +5 -1
- package/package.json +4 -4
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/default-theme.css +1 -1
- package/select/select.scss +7 -3
- package/tooltip/tooltip.component.d.ts +1 -0
- package/tooltip/tooltip.scss +9 -1
- package/tree-select/tree-select.component.d.ts +2 -0
package/_theming.scss
CHANGED
@@ -1060,15 +1060,24 @@ $description-list-dark-color-scheme-dd: #d7dee4;
|
|
1060
1060
|
$description-list-size-grid-template-columns: repeat(4, 1fr);
|
1061
1061
|
$description-list-size-dt-grid-column: 1;
|
1062
1062
|
$description-list-size-dd-grid-column: 2 / span 3;
|
1063
|
-
$description-list-size-horizontal-column-gap: 16px;
|
1064
|
-
$description-list-size-horizontal-row-gap: 12px;
|
1065
|
-
$description-list-size-vertical-column-gap: 0;
|
1066
|
-
$description-list-size-vertical-row-gap: 2px;
|
1067
|
-
$description-list-size-vertical-dd-margin-bottom: 16px;
|
1068
|
-
$description-list-
|
1069
|
-
$description-list-
|
1070
|
-
$description-list-
|
1071
|
-
$description-list-
|
1063
|
+
$description-list-size-default-horizontal-column-gap: 16px;
|
1064
|
+
$description-list-size-default-horizontal-row-gap: 12px;
|
1065
|
+
$description-list-size-default-vertical-column-gap: 0;
|
1066
|
+
$description-list-size-default-vertical-row-gap: 2px;
|
1067
|
+
$description-list-size-default-vertical-dd-margin-bottom: 16px;
|
1068
|
+
$description-list-size-small-horizontal-column-gap: 8px;
|
1069
|
+
$description-list-size-small-horizontal-row-gap: 8px;
|
1070
|
+
$description-list-size-small-vertical-column-gap: 0;
|
1071
|
+
$description-list-size-small-vertical-row-gap: 0;
|
1072
|
+
$description-list-size-small-vertical-dd-margin-bottom: 12px;
|
1073
|
+
$description-list-font-default-horizontal-dt: body;
|
1074
|
+
$description-list-font-default-horizontal-dd: body;
|
1075
|
+
$description-list-font-default-vertical-dt: caption;
|
1076
|
+
$description-list-font-default-vertical-dd: body;
|
1077
|
+
$description-list-font-small-horizontal-dt: caption;
|
1078
|
+
$description-list-font-small-horizontal-dd: caption;
|
1079
|
+
$description-list-font-small-vertical-dt: caption;
|
1080
|
+
$description-list-font-small-vertical-dd: caption;
|
1072
1081
|
$dropdown-item-size-padding: 5px 15px;
|
1073
1082
|
$dropdown-item-size-icon-padding: 0 8px 2px 0;
|
1074
1083
|
$dropdown-item-font-default: body;
|
@@ -1087,19 +1096,23 @@ $dropdown-panel-size-border-width: 1px;
|
|
1087
1096
|
$dropdown-panel-size-border-radius: 4px;
|
1088
1097
|
$form-field-light-color-scheme-border: #bdc7d1;
|
1089
1098
|
$form-field-light-color-scheme-background: white;
|
1099
|
+
$form-field-light-color-scheme-states-autofill-background: #ebf8fd;
|
1090
1100
|
$form-field-light-color-scheme-states-hover-border: #8c99a5;
|
1091
1101
|
$form-field-light-color-scheme-states-invalid-border: #db3c55;
|
1092
1102
|
$form-field-light-color-scheme-states-invalid-background: #fff3f3;
|
1093
1103
|
$form-field-dark-color-scheme-border: #515e69;
|
1094
1104
|
$form-field-dark-color-scheme-background: transparent;
|
1105
|
+
$form-field-dark-color-scheme-states-autofill-background: #143641;
|
1095
1106
|
$form-field-dark-color-scheme-states-hover-border: #6d7a86;
|
1096
1107
|
$form-field-dark-color-scheme-states-invalid-border: #b9023a;
|
1097
|
-
$form-field-dark-color-scheme-states-invalid-background:
|
1108
|
+
$form-field-dark-color-scheme-states-invalid-background: rgba(#41000b, 0.3);
|
1098
1109
|
$form-field-size-height: 32px;
|
1099
1110
|
$form-field-size-border-width: 1px;
|
1100
1111
|
$form-field-size-border-radius: 4px;
|
1101
1112
|
$form-field-size-button-width: 32px;
|
1102
1113
|
$form-field-font-default: body;
|
1114
|
+
$form-field-hint-light-color-scheme-text-color: #6d7a86;
|
1115
|
+
$form-field-hint-dark-color-scheme-text-color: #8c99a5;
|
1103
1116
|
$form-field-hint-size-margin-top: 4px;
|
1104
1117
|
$form-field-hint-font-default: caption;
|
1105
1118
|
$form-field-password-hint-light-color-scheme-text-color: #19252f;
|
@@ -3770,7 +3783,8 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
|
|
3770
3783
|
|
3771
3784
|
state-hover-border: $form-field-light-color-scheme-states-hover-border,
|
3772
3785
|
state-invalid-border: $form-field-light-color-scheme-states-invalid-border,
|
3773
|
-
state-invalid-background: $form-field-light-color-scheme-states-invalid-background
|
3786
|
+
state-invalid-background: $form-field-light-color-scheme-states-invalid-background,
|
3787
|
+
state-autofill-background: $form-field-light-color-scheme-states-autofill-background
|
3774
3788
|
);
|
3775
3789
|
|
3776
3790
|
$form-field-password-hint: (
|
@@ -3784,6 +3798,10 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
|
|
3784
3798
|
state-valid-icon-color: $form-field-password-hint-light-color-scheme-states-valid-icon-color
|
3785
3799
|
);
|
3786
3800
|
|
3801
|
+
$form-field-hint: (
|
3802
|
+
text-color: $form-field-hint-light-color-scheme-text-color
|
3803
|
+
);
|
3804
|
+
|
3787
3805
|
$forms: (
|
3788
3806
|
label: $forms-light-color-scheme-label,
|
3789
3807
|
legend: $forms-light-color-scheme-legend,
|
@@ -4071,6 +4089,7 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
|
|
4071
4089
|
icon: $icon,
|
4072
4090
|
form-field: $form-field,
|
4073
4091
|
form-field-password-hint: $form-field-password-hint,
|
4092
|
+
form-field-hint: $form-field-hint,
|
4074
4093
|
forms: $forms,
|
4075
4094
|
link: $link,
|
4076
4095
|
loader-overlay: $loader-overlay,
|
@@ -4484,7 +4503,8 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
|
|
4484
4503
|
|
4485
4504
|
state-hover-border: $form-field-dark-color-scheme-states-hover-border,
|
4486
4505
|
state-invalid-border: $form-field-dark-color-scheme-states-invalid-border,
|
4487
|
-
state-invalid-background: $form-field-dark-color-scheme-states-invalid-background
|
4506
|
+
state-invalid-background: $form-field-dark-color-scheme-states-invalid-background,
|
4507
|
+
state-autofill-background: $form-field-dark-color-scheme-states-autofill-background
|
4488
4508
|
);
|
4489
4509
|
|
4490
4510
|
$form-field-password-hint: (
|
@@ -4498,6 +4518,10 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
|
|
4498
4518
|
state-valid-icon-color: $form-field-password-hint-dark-color-scheme-states-valid-icon-color
|
4499
4519
|
);
|
4500
4520
|
|
4521
|
+
$form-field-hint: (
|
4522
|
+
text-color: $form-field-password-hint-dark-color-scheme-text-color
|
4523
|
+
);
|
4524
|
+
|
4501
4525
|
$forms: (
|
4502
4526
|
label: $forms-dark-color-scheme-label,
|
4503
4527
|
legend: $forms-dark-color-scheme-legend,
|
@@ -4785,6 +4809,7 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
|
|
4785
4809
|
icon: $icon,
|
4786
4810
|
form-field: $form-field,
|
4787
4811
|
form-field-password-hint: $form-field-password-hint,
|
4812
|
+
form-field-hint: $form-field-hint,
|
4788
4813
|
forms: $forms,
|
4789
4814
|
link: $link,
|
4790
4815
|
loader-overlay: $loader-overlay,
|
@@ -5168,7 +5193,8 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
|
|
5168
5193
|
|
5169
5194
|
state-hover-border: map-get($tokens, 'form-field-#{$scheme}-states-hover-border'),
|
5170
5195
|
state-invalid-border: map-get($tokens, 'form-field-#{$scheme}-states-invalid-border'),
|
5171
|
-
state-invalid-background: map-get($tokens, 'form-field-#{$scheme}-states-invalid-background')
|
5196
|
+
state-invalid-background: map-get($tokens, 'form-field-#{$scheme}-states-invalid-background'),
|
5197
|
+
state-autofill-background: map-get($tokens, 'form-field-#{$scheme}-states-autofill-background')
|
5172
5198
|
);
|
5173
5199
|
|
5174
5200
|
$form-field-password-hint: (
|
@@ -5182,6 +5208,10 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
|
|
5182
5208
|
state-valid-icon-color: map-get($tokens, 'form-field-password-hint-#{$scheme}-states-valid-icon-color')
|
5183
5209
|
);
|
5184
5210
|
|
5211
|
+
$form-field-hint: (
|
5212
|
+
text-color: map-get($tokens, 'form-field-hint-#{$scheme}-text-color'),
|
5213
|
+
);
|
5214
|
+
|
5185
5215
|
$forms: (
|
5186
5216
|
label: map-get($tokens, 'forms-#{$scheme}-label'),
|
5187
5217
|
legend: map-get($tokens, 'forms-#{$scheme}-legend'),
|
@@ -5507,6 +5537,7 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
|
|
5507
5537
|
dl: $dl,
|
5508
5538
|
form-field: $form-field,
|
5509
5539
|
form-field-password-hint: $form-field-password-hint,
|
5540
|
+
form-field-hint: $form-field-hint,
|
5510
5541
|
forms: $forms,
|
5511
5542
|
icon: $icon,
|
5512
5543
|
link: $link,
|
@@ -7429,6 +7460,15 @@ $mc-datepicker-today-fade-amount: 0.2;
|
|
7429
7460
|
$form-field: map-get(map-get($theme, components), form-field);
|
7430
7461
|
|
7431
7462
|
.mc-form-field {
|
7463
|
+
& .mc-input {
|
7464
|
+
//https://css-tricks.com/almanac/selectors/a/autofill/
|
7465
|
+
&:-webkit-autofill,
|
7466
|
+
&:-webkit-autofill:hover,
|
7467
|
+
&:-webkit-autofill:focus {
|
7468
|
+
-webkit-box-shadow: 0 0 0 40rem map-get($form-field, state-autofill-background) inset;
|
7469
|
+
}
|
7470
|
+
}
|
7471
|
+
|
7432
7472
|
& .mc-form-field__container {
|
7433
7473
|
background-color: map-get($form-field, background);
|
7434
7474
|
}
|
@@ -7487,12 +7527,14 @@ $mc-datepicker-today-fade-amount: 0.2;
|
|
7487
7527
|
}
|
7488
7528
|
|
7489
7529
|
.mc-hint {
|
7530
|
+
$hint: map-get(map-get($theme, components), form-field-hint);
|
7531
|
+
|
7490
7532
|
&.mc-primary {
|
7491
|
-
color:
|
7533
|
+
color: map-get($hint, text-color);
|
7492
7534
|
}
|
7493
7535
|
|
7494
7536
|
&.mc-secondary {
|
7495
|
-
color:
|
7537
|
+
color: map-get($hint, text-color);
|
7496
7538
|
}
|
7497
7539
|
|
7498
7540
|
&.mc-error {
|
@@ -9861,21 +9903,41 @@ button {
|
|
9861
9903
|
@mixin mc-dl-typography($config) {
|
9862
9904
|
.mc-dl {
|
9863
9905
|
& .mc-dt {
|
9864
|
-
@include mc-typography-level-to-styles($config, $description-list-font-horizontal-dt);
|
9906
|
+
@include mc-typography-level-to-styles($config, $description-list-font-default-horizontal-dt);
|
9865
9907
|
}
|
9866
9908
|
|
9867
9909
|
& .mc-dd {
|
9868
|
-
@include mc-typography-level-to-styles($config, $description-list-font-horizontal-dd);
|
9910
|
+
@include mc-typography-level-to-styles($config, $description-list-font-default-horizontal-dd);
|
9911
|
+
}
|
9912
|
+
|
9913
|
+
&.mc-dl_small {
|
9914
|
+
& .mc-dt {
|
9915
|
+
@include mc-typography-level-to-styles($config, $description-list-font-small-horizontal-dt);
|
9916
|
+
}
|
9917
|
+
|
9918
|
+
& .mc-dd {
|
9919
|
+
@include mc-typography-level-to-styles($config, $description-list-font-small-horizontal-dd);
|
9920
|
+
}
|
9869
9921
|
}
|
9870
9922
|
}
|
9871
9923
|
|
9872
9924
|
.mc-dl.mc-dl_vertical {
|
9873
9925
|
& .mc-dt {
|
9874
|
-
@include mc-typography-level-to-styles($config, $description-list-font-vertical-dt);
|
9926
|
+
@include mc-typography-level-to-styles($config, $description-list-font-default-vertical-dt);
|
9875
9927
|
}
|
9876
9928
|
|
9877
9929
|
& .mc-dd {
|
9878
|
-
@include mc-typography-level-to-styles($config, $description-list-font-vertical-dd);
|
9930
|
+
@include mc-typography-level-to-styles($config, $description-list-font-default-vertical-dd);
|
9931
|
+
}
|
9932
|
+
|
9933
|
+
&.mc-dl_small {
|
9934
|
+
& .mc-dt {
|
9935
|
+
@include mc-typography-level-to-styles($config, $description-list-font-small-vertical-dt);
|
9936
|
+
}
|
9937
|
+
|
9938
|
+
& .mc-dd {
|
9939
|
+
@include mc-typography-level-to-styles($config, $description-list-font-small-vertical-dd);
|
9940
|
+
}
|
9879
9941
|
}
|
9880
9942
|
}
|
9881
9943
|
}
|
package/_visual.scss
CHANGED
@@ -1014,15 +1014,24 @@ $description-list-dark-color-scheme-dd: #d7dee4;
|
|
1014
1014
|
$description-list-size-grid-template-columns: repeat(4, 1fr);
|
1015
1015
|
$description-list-size-dt-grid-column: 1;
|
1016
1016
|
$description-list-size-dd-grid-column: 2 / span 3;
|
1017
|
-
$description-list-size-horizontal-column-gap: 16px;
|
1018
|
-
$description-list-size-horizontal-row-gap: 12px;
|
1019
|
-
$description-list-size-vertical-column-gap: 0;
|
1020
|
-
$description-list-size-vertical-row-gap: 2px;
|
1021
|
-
$description-list-size-vertical-dd-margin-bottom: 16px;
|
1022
|
-
$description-list-
|
1023
|
-
$description-list-
|
1024
|
-
$description-list-
|
1025
|
-
$description-list-
|
1017
|
+
$description-list-size-default-horizontal-column-gap: 16px;
|
1018
|
+
$description-list-size-default-horizontal-row-gap: 12px;
|
1019
|
+
$description-list-size-default-vertical-column-gap: 0;
|
1020
|
+
$description-list-size-default-vertical-row-gap: 2px;
|
1021
|
+
$description-list-size-default-vertical-dd-margin-bottom: 16px;
|
1022
|
+
$description-list-size-small-horizontal-column-gap: 8px;
|
1023
|
+
$description-list-size-small-horizontal-row-gap: 8px;
|
1024
|
+
$description-list-size-small-vertical-column-gap: 0;
|
1025
|
+
$description-list-size-small-vertical-row-gap: 0;
|
1026
|
+
$description-list-size-small-vertical-dd-margin-bottom: 12px;
|
1027
|
+
$description-list-font-default-horizontal-dt: body;
|
1028
|
+
$description-list-font-default-horizontal-dd: body;
|
1029
|
+
$description-list-font-default-vertical-dt: caption;
|
1030
|
+
$description-list-font-default-vertical-dd: body;
|
1031
|
+
$description-list-font-small-horizontal-dt: caption;
|
1032
|
+
$description-list-font-small-horizontal-dd: caption;
|
1033
|
+
$description-list-font-small-vertical-dt: caption;
|
1034
|
+
$description-list-font-small-vertical-dd: caption;
|
1026
1035
|
$dropdown-item-size-padding: 5px 15px;
|
1027
1036
|
$dropdown-item-size-icon-padding: 0 8px 2px 0;
|
1028
1037
|
$dropdown-item-font-default: body;
|
@@ -1041,19 +1050,23 @@ $dropdown-panel-size-border-width: 1px;
|
|
1041
1050
|
$dropdown-panel-size-border-radius: 4px;
|
1042
1051
|
$form-field-light-color-scheme-border: #bdc7d1;
|
1043
1052
|
$form-field-light-color-scheme-background: white;
|
1053
|
+
$form-field-light-color-scheme-states-autofill-background: #ebf8fd;
|
1044
1054
|
$form-field-light-color-scheme-states-hover-border: #8c99a5;
|
1045
1055
|
$form-field-light-color-scheme-states-invalid-border: #db3c55;
|
1046
1056
|
$form-field-light-color-scheme-states-invalid-background: #fff3f3;
|
1047
1057
|
$form-field-dark-color-scheme-border: #515e69;
|
1048
1058
|
$form-field-dark-color-scheme-background: transparent;
|
1059
|
+
$form-field-dark-color-scheme-states-autofill-background: #143641;
|
1049
1060
|
$form-field-dark-color-scheme-states-hover-border: #6d7a86;
|
1050
1061
|
$form-field-dark-color-scheme-states-invalid-border: #b9023a;
|
1051
|
-
$form-field-dark-color-scheme-states-invalid-background:
|
1062
|
+
$form-field-dark-color-scheme-states-invalid-background: rgba(#41000b, 0.3);
|
1052
1063
|
$form-field-size-height: 32px;
|
1053
1064
|
$form-field-size-border-width: 1px;
|
1054
1065
|
$form-field-size-border-radius: 4px;
|
1055
1066
|
$form-field-size-button-width: 32px;
|
1056
1067
|
$form-field-font-default: body;
|
1068
|
+
$form-field-hint-light-color-scheme-text-color: #6d7a86;
|
1069
|
+
$form-field-hint-dark-color-scheme-text-color: #8c99a5;
|
1057
1070
|
$form-field-hint-size-margin-top: 4px;
|
1058
1071
|
$form-field-hint-font-default: caption;
|
1059
1072
|
$form-field-password-hint-light-color-scheme-text-color: #19252f;
|
package/button/_button-base.scss
CHANGED
@@ -60,4 +60,10 @@ $tokens: meta.module-variables(tokens) !default;
|
|
60
60
|
--mc-icon-button-size-left-icon-padding, map.get($tokens, icon-button-size-left-icon-padding)
|
61
61
|
);
|
62
62
|
}
|
63
|
+
|
64
|
+
& .mc-icon_right {
|
65
|
+
margin-left: var(
|
66
|
+
--mc-icon-button-size-left-icon-padding, map.get($tokens, icon-button-size-left-icon-padding)
|
67
|
+
);
|
68
|
+
}
|
63
69
|
}
|
@@ -1,17 +1,22 @@
|
|
1
1
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
2
|
-
import { ElementRef, OnDestroy, Renderer2, QueryList, AfterContentInit } from '@angular/core';
|
2
|
+
import { ChangeDetectorRef, ElementRef, OnDestroy, Renderer2, QueryList, AfterContentInit } from '@angular/core';
|
3
3
|
import { CanColor, CanDisable, CanColorCtor, HasTabIndexCtor } from '@ptsecurity/mosaic/core';
|
4
4
|
import { McIcon } from '@ptsecurity/mosaic/icon';
|
5
5
|
import * as i0 from "@angular/core";
|
6
|
+
export declare const leftIconClassName = "mc-icon_left";
|
7
|
+
export declare const rightIconClassName = "mc-icon_right";
|
8
|
+
export declare const buttonLeftIconClassName = "mc-icon-button_left";
|
9
|
+
export declare const buttonRightIconClassName = "mc-icon-button_right";
|
6
10
|
export declare class McButtonCssStyler implements AfterContentInit {
|
7
11
|
private renderer;
|
12
|
+
private cdr;
|
8
13
|
icons: QueryList<McIcon>;
|
9
14
|
nativeElement: HTMLElement;
|
10
15
|
isIconButton: boolean;
|
11
|
-
constructor(elementRef: ElementRef, renderer: Renderer2);
|
16
|
+
constructor(elementRef: ElementRef, renderer: Renderer2, cdr: ChangeDetectorRef);
|
12
17
|
ngAfterContentInit(): void;
|
13
18
|
updateClassModifierForIcons(): void;
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<McButtonCssStyler,
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McButtonCssStyler, [null, null, { skipSelf: true; }]>;
|
15
20
|
static ɵdir: i0.ɵɵDirectiveDeclaration<McButtonCssStyler, "[mc-button]", never, {}, {}, ["icons"], never, false, never>;
|
16
21
|
}
|
17
22
|
/** @docs-private */
|
@@ -23,11 +28,12 @@ export declare class McButtonBase {
|
|
23
28
|
export declare const McButtonMixinBase: HasTabIndexCtor & CanColorCtor & typeof McButtonBase;
|
24
29
|
export declare class McButton extends McButtonMixinBase implements OnDestroy, CanDisable, CanColor {
|
25
30
|
private focusMonitor;
|
31
|
+
private styler;
|
26
32
|
hasFocus: boolean;
|
27
33
|
get disabled(): any;
|
28
34
|
set disabled(value: any);
|
29
35
|
private _disabled;
|
30
|
-
constructor(elementRef: ElementRef, focusMonitor: FocusMonitor);
|
36
|
+
constructor(elementRef: ElementRef, focusMonitor: FocusMonitor, styler: McButtonCssStyler);
|
31
37
|
ngOnDestroy(): void;
|
32
38
|
onFocus($event: any): void;
|
33
39
|
onBlur(): void;
|
@@ -35,6 +41,7 @@ export declare class McButton extends McButtonMixinBase implements OnDestroy, Ca
|
|
35
41
|
focus(): void;
|
36
42
|
focusViaKeyboard(): void;
|
37
43
|
haltDisabledEvents(event: Event): void;
|
44
|
+
projectContentChanged(): void;
|
38
45
|
private runFocusMonitor;
|
39
46
|
private stopFocusMonitor;
|
40
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<McButton, never>;
|
@@ -3,8 +3,9 @@ import * as i1 from "./button.component";
|
|
3
3
|
import * as i2 from "@angular/common";
|
4
4
|
import * as i3 from "@angular/cdk/a11y";
|
5
5
|
import * as i4 from "@angular/cdk/platform";
|
6
|
+
import * as i5 from "@angular/cdk/observers";
|
6
7
|
export declare class McButtonModule {
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<McButtonModule, never>;
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<McButtonModule, [typeof i1.McButton, typeof i1.McButtonCssStyler], [typeof i2.CommonModule, typeof i3.A11yModule, typeof i4.PlatformModule], [typeof i1.McButton, typeof i1.McButtonCssStyler]>;
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<McButtonModule, [typeof i1.McButton, typeof i1.McButtonCssStyler], [typeof i2.CommonModule, typeof i3.A11yModule, typeof i4.PlatformModule, typeof i5.ObserversModule], [typeof i1.McButton, typeof i1.McButtonCssStyler]>;
|
9
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<McButtonModule>;
|
10
11
|
}
|
@@ -110,7 +110,7 @@
|
|
110
110
|
@include mc-base-typography($config);
|
111
111
|
@include mc-markdown-base-typography($md-config);
|
112
112
|
|
113
|
-
@include alert-
|
113
|
+
@include mc-alert-typography($config);
|
114
114
|
@include mc-badge-typography($config);
|
115
115
|
@include mc-button-typography($config);
|
116
116
|
@include mc-checkbox-typography($config);
|
@@ -359,7 +359,8 @@
|
|
359
359
|
|
360
360
|
state-hover-border: map-get($tokens, 'form-field-#{$scheme}-states-hover-border'),
|
361
361
|
state-invalid-border: map-get($tokens, 'form-field-#{$scheme}-states-invalid-border'),
|
362
|
-
state-invalid-background: map-get($tokens, 'form-field-#{$scheme}-states-invalid-background')
|
362
|
+
state-invalid-background: map-get($tokens, 'form-field-#{$scheme}-states-invalid-background'),
|
363
|
+
state-autofill-background: map-get($tokens, 'form-field-#{$scheme}-states-autofill-background')
|
363
364
|
);
|
364
365
|
|
365
366
|
$form-field-password-hint: (
|
@@ -373,6 +374,10 @@
|
|
373
374
|
state-valid-icon-color: map-get($tokens, 'form-field-password-hint-#{$scheme}-states-valid-icon-color')
|
374
375
|
);
|
375
376
|
|
377
|
+
$form-field-hint: (
|
378
|
+
text-color: map-get($tokens, 'form-field-hint-#{$scheme}-text-color'),
|
379
|
+
);
|
380
|
+
|
376
381
|
$forms: (
|
377
382
|
label: map-get($tokens, 'forms-#{$scheme}-label'),
|
378
383
|
legend: map-get($tokens, 'forms-#{$scheme}-legend'),
|
@@ -698,6 +703,7 @@
|
|
698
703
|
dl: $dl,
|
699
704
|
form-field: $form-field,
|
700
705
|
form-field-password-hint: $form-field-password-hint,
|
706
|
+
form-field-hint: $form-field-hint,
|
701
707
|
forms: $forms,
|
702
708
|
icon: $icon,
|
703
709
|
link: $link,
|
@@ -8,30 +8,32 @@
|
|
8
8
|
$typography: map.get(map.get($tokens, mosaic), typography);
|
9
9
|
|
10
10
|
$config: (
|
11
|
-
display-1:
|
12
|
-
display-2:
|
13
|
-
display-3:
|
14
|
-
|
15
|
-
headline:
|
16
|
-
subheading:
|
17
|
-
title:
|
18
|
-
|
19
|
-
body:
|
20
|
-
body-strong:
|
21
|
-
body-caps:
|
22
|
-
body-mono:
|
23
|
-
body-
|
24
|
-
|
25
|
-
|
26
|
-
caption
|
27
|
-
caption-
|
28
|
-
caption-
|
29
|
-
caption-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
extra-small-text
|
11
|
+
display-1: map.get($typography, display-1),
|
12
|
+
display-2: map.get($typography, display-2),
|
13
|
+
display-3: map.get($typography, display-3),
|
14
|
+
|
15
|
+
headline: map.get($typography, headline),
|
16
|
+
subheading: map.get($typography, subheading),
|
17
|
+
title: map.get($typography, title),
|
18
|
+
|
19
|
+
body: map.get($typography, body),
|
20
|
+
body-strong: map.get($typography, body-strong),
|
21
|
+
body-caps: map.get($typography, body-caps),
|
22
|
+
body-mono: map.get($typography, body-mono),
|
23
|
+
body-mono-strong: map.get($typography, body-mono-strong),
|
24
|
+
body-tabular: map.get($typography, body-tabular),
|
25
|
+
|
26
|
+
caption: map.get($typography, caption),
|
27
|
+
caption-strong: map.get($typography, caption-strong),
|
28
|
+
caption-caps: map.get($typography, caption-caps),
|
29
|
+
caption-mono: map.get($typography, caption-mono),
|
30
|
+
caption-mono-strong: map.get($typography, caption-mono-strong),
|
31
|
+
caption-tabular: map.get($typography, caption-tabular),
|
32
|
+
|
33
|
+
small-text: map.get($typography, small-text),
|
34
|
+
extra-small-text: map.get($typography, extra-small-text),
|
35
|
+
extra-small-text-caps: map.get($typography, extra-small-text-caps),
|
36
|
+
extra-small-text-mono: map.get($typography, extra-small-text-mono)
|
35
37
|
);
|
36
38
|
|
37
39
|
@each $key, $level in $config {
|
@@ -121,6 +123,10 @@
|
|
121
123
|
@include mc-typography-level-to-styles($config, body-mono);
|
122
124
|
}
|
123
125
|
|
126
|
+
.mc-body_mono_strong {
|
127
|
+
@include mc-typography-level-to-styles($config, body-mono-strong);
|
128
|
+
}
|
129
|
+
|
124
130
|
.mc-caption {
|
125
131
|
@include mc-typography-level-to-styles($config, caption);
|
126
132
|
}
|
@@ -140,6 +146,10 @@
|
|
140
146
|
.mc-caption_mono {
|
141
147
|
@include mc-typography-level-to-styles($config, caption-mono);
|
142
148
|
}
|
149
|
+
|
150
|
+
.mc-caption_mono_strong {
|
151
|
+
@include mc-typography-level-to-styles($config, caption-mono-strong);
|
152
|
+
}
|
143
153
|
|
144
154
|
.mc-small-text {
|
145
155
|
@include mc-typography-level-to-styles($config, small-text);
|
package/dl/_dl-theme.scss
CHANGED
@@ -23,21 +23,66 @@ $tokens: meta.module-variables(tokens) !default;
|
|
23
23
|
@mixin mc-dl-typography($config) {
|
24
24
|
.mc-dl {
|
25
25
|
& .mc-dt {
|
26
|
-
@include mc-typography-level-to-styles(
|
26
|
+
@include mc-typography-level-to-styles(
|
27
|
+
$config,
|
28
|
+
map.get($tokens, description-list-font-default-horizontal-dt)
|
29
|
+
);
|
27
30
|
}
|
28
31
|
|
29
32
|
& .mc-dd {
|
30
|
-
@include mc-typography-level-to-styles(
|
33
|
+
@include mc-typography-level-to-styles(
|
34
|
+
$config,
|
35
|
+
map.get($tokens, description-list-font-default-horizontal-dd)
|
36
|
+
);
|
37
|
+
}
|
38
|
+
|
39
|
+
&.mc-dl_small {
|
40
|
+
& .mc-dt {
|
41
|
+
@include mc-typography-level-to-styles(
|
42
|
+
$config,
|
43
|
+
map.get($tokens, description-list-font-small-horizontal-dt)
|
44
|
+
);
|
45
|
+
}
|
46
|
+
|
47
|
+
& .mc-dd {
|
48
|
+
@include mc-typography-level-to-styles(
|
49
|
+
$config,
|
50
|
+
map.get($tokens, description-list-font-small-horizontal-dd)
|
51
|
+
);
|
52
|
+
}
|
31
53
|
}
|
32
54
|
}
|
33
55
|
|
56
|
+
|
34
57
|
.mc-dl.mc-dl_vertical {
|
35
58
|
& .mc-dt {
|
36
|
-
@include mc-typography-level-to-styles(
|
59
|
+
@include mc-typography-level-to-styles(
|
60
|
+
$config,
|
61
|
+
map.get($tokens, description-list-font-default-vertical-dt)
|
62
|
+
);
|
37
63
|
}
|
38
64
|
|
39
65
|
& .mc-dd {
|
40
|
-
@include mc-typography-level-to-styles(
|
66
|
+
@include mc-typography-level-to-styles(
|
67
|
+
$config,
|
68
|
+
map.get($tokens, description-list-font-default-vertical-dd)
|
69
|
+
);
|
70
|
+
}
|
71
|
+
|
72
|
+
&.mc-dl_small {
|
73
|
+
& .mc-dt {
|
74
|
+
@include mc-typography-level-to-styles(
|
75
|
+
$config,
|
76
|
+
map.get($tokens, description-list-font-small-vertical-dt)
|
77
|
+
);
|
78
|
+
}
|
79
|
+
|
80
|
+
& .mc-dd {
|
81
|
+
@include mc-typography-level-to-styles(
|
82
|
+
$config,
|
83
|
+
map.get($tokens, description-list-font-small-vertical-dd)
|
84
|
+
);
|
85
|
+
}
|
41
86
|
}
|
42
87
|
}
|
43
88
|
}
|
package/dl/dl.component.d.ts
CHANGED
@@ -5,6 +5,7 @@ export declare class McDlComponent implements AfterContentInit, OnDestroy {
|
|
5
5
|
protected elementRef: ElementRef;
|
6
6
|
minWidth: number;
|
7
7
|
wide: boolean;
|
8
|
+
small: boolean;
|
8
9
|
vertical: boolean | null;
|
9
10
|
readonly resizeStream: Subject<Event>;
|
10
11
|
private readonly resizeDebounceInterval;
|
@@ -14,7 +15,7 @@ export declare class McDlComponent implements AfterContentInit, OnDestroy {
|
|
14
15
|
ngOnDestroy(): void;
|
15
16
|
updateState: () => void;
|
16
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<McDlComponent, never>;
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<McDlComponent, "mc-dl", never, { "minWidth": "minWidth"; "wide": "wide"; "vertical": "vertical"; }, {}, never, ["*"], false, never>;
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<McDlComponent, "mc-dl", never, { "minWidth": "minWidth"; "wide": "wide"; "small": "small"; "vertical": "vertical"; }, {}, never, ["*"], false, never>;
|
18
19
|
}
|
19
20
|
export declare class McDtComponent {
|
20
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<McDtComponent, never>;
|
package/dl/dl.scss
CHANGED
@@ -9,10 +9,12 @@ $tokens: meta.module-variables(tokens) !default;
|
|
9
9
|
.mc-dl {
|
10
10
|
display: grid;
|
11
11
|
column-gap: var(
|
12
|
-
--mc-description-list-size-horizontal-column-gap,
|
12
|
+
--mc-description-list-size-default-horizontal-column-gap,
|
13
|
+
map.get($tokens, description-list-size-default-horizontal-column-gap)
|
13
14
|
);
|
14
15
|
row-gap: var(
|
15
|
-
--mc-description-list-size-horizontal-row-gap,
|
16
|
+
--mc-description-list-size-default-horizontal-row-gap,
|
17
|
+
map.get($tokens, description-list-size-default-horizontal-row-gap)
|
16
18
|
);
|
17
19
|
|
18
20
|
grid-template-columns: repeat(4, 1fr);
|
@@ -29,6 +31,17 @@ $tokens: meta.module-variables(tokens) !default;
|
|
29
31
|
);
|
30
32
|
}
|
31
33
|
|
34
|
+
&.mc-dl_small {
|
35
|
+
column-gap: var(
|
36
|
+
--mc-description-list-size-small-horizontal-column-gap,
|
37
|
+
map.get($tokens, description-list-size-small-horizontal-column-gap)
|
38
|
+
);
|
39
|
+
row-gap: var(
|
40
|
+
--mc-description-list-size-small-horizontal-row-gap,
|
41
|
+
map.get($tokens, description-list-size-small-horizontal-row-gap)
|
42
|
+
);
|
43
|
+
}
|
44
|
+
|
32
45
|
&.mc-dl_wide {
|
33
46
|
grid-template-columns: repeat(2, 1fr);
|
34
47
|
|
@@ -45,10 +58,12 @@ $tokens: meta.module-variables(tokens) !default;
|
|
45
58
|
grid-template-columns: repeat(1, 1fr);
|
46
59
|
|
47
60
|
column-gap: var(
|
48
|
-
--mc-description-list-size-vertical-column-gap,
|
61
|
+
--mc-description-list-size-default-vertical-column-gap,
|
62
|
+
map.get($tokens, description-list-size-default-vertical-column-gap)
|
49
63
|
);
|
50
64
|
row-gap: var(
|
51
|
-
--mc-description-list-size-vertical-row-gap,
|
65
|
+
--mc-description-list-size-default-vertical-row-gap,
|
66
|
+
map.get($tokens, description-list-size-default-vertical-row-gap)
|
52
67
|
);
|
53
68
|
|
54
69
|
.mc-dt,
|
@@ -58,9 +73,27 @@ $tokens: meta.module-variables(tokens) !default;
|
|
58
73
|
|
59
74
|
.mc-dd {
|
60
75
|
margin-bottom: var(
|
61
|
-
--mc-description-list-size-vertical-dd-margin-bottom,
|
62
|
-
map.get($tokens, description-list-size-vertical-dd-margin-bottom)
|
76
|
+
--mc-description-list-size-default-vertical-dd-margin-bottom,
|
77
|
+
map.get($tokens, description-list-size-default-vertical-dd-margin-bottom)
|
63
78
|
);
|
64
79
|
}
|
80
|
+
|
81
|
+
&.mc-dl_small {
|
82
|
+
column-gap: var(
|
83
|
+
--mc-description-list-size-small-vertical-column-gap,
|
84
|
+
map.get($tokens, description-list-size-small-vertical-column-gap)
|
85
|
+
);
|
86
|
+
row-gap: var(
|
87
|
+
--mc-description-list-size-small-vertical-row-gap,
|
88
|
+
map.get($tokens, description-list-size-small-vertical-row-gap)
|
89
|
+
);
|
90
|
+
|
91
|
+
.mc-dd {
|
92
|
+
margin-bottom: var(
|
93
|
+
--mc-description-list-size-small-vertical-dd-margin-bottom,
|
94
|
+
map.get($tokens, description-list-size-small-vertical-dd-margin-bottom)
|
95
|
+
);
|
96
|
+
}
|
97
|
+
}
|
65
98
|
}
|
66
99
|
}
|