@ptsecurity/mosaic 15.1.0 → 15.2.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.
Files changed (100) hide show
  1. package/_theming.scss +87 -22
  2. package/_visual.scss +23 -10
  3. package/autocomplete/autocomplete.scss +1 -1
  4. package/button/_button-base.scss +6 -0
  5. package/button/button.component.d.ts +11 -4
  6. package/button/button.module.d.ts +2 -1
  7. package/checkbox/_checkbox-theme.scss +4 -2
  8. package/core/styles/_mosaic-theme.scss +1 -1
  9. package/core/styles/theming/_components-theming.scss +7 -1
  10. package/core/styles/typography/_typography.scss +34 -24
  11. package/datepicker/calendar-header.scss +6 -0
  12. package/datepicker/calendar.component.d.ts +3 -2
  13. package/dl/_dl-theme.scss +49 -4
  14. package/dl/dl.component.d.ts +2 -1
  15. package/dl/dl.scss +39 -6
  16. package/esm2020/autocomplete/autocomplete.component.mjs +3 -3
  17. package/esm2020/button/button.component.mjs +47 -38
  18. package/esm2020/button/button.module.mjs +8 -4
  19. package/esm2020/core/version.mjs +2 -2
  20. package/esm2020/datepicker/calendar-header.component.mjs +2 -2
  21. package/esm2020/datepicker/calendar.component.mjs +7 -4
  22. package/esm2020/datepicker/datepicker-input.directive.mjs +6 -4
  23. package/esm2020/dl/dl.component.mjs +7 -3
  24. package/esm2020/form-field/form-field.mjs +2 -2
  25. package/esm2020/form-field/hint.mjs +3 -3
  26. package/esm2020/input/input-number.mjs +6 -1
  27. package/esm2020/modal/modal.component.mjs +3 -3
  28. package/esm2020/select/select.component.mjs +7 -14
  29. package/esm2020/sidepanel/sidepanel-directives.mjs +3 -3
  30. package/esm2020/tags/tag-input.mjs +3 -3
  31. package/esm2020/timezone/timezone-select.component.mjs +2 -2
  32. package/esm2020/tooltip/tooltip.animations.mjs +4 -4
  33. package/esm2020/tooltip/tooltip.component.mjs +9 -6
  34. package/esm2020/tree-select/tree-select.component.mjs +39 -38
  35. package/fesm2015/ptsecurity-mosaic-autocomplete.mjs +2 -2
  36. package/fesm2015/ptsecurity-mosaic-autocomplete.mjs.map +1 -1
  37. package/fesm2015/ptsecurity-mosaic-button.mjs +52 -37
  38. package/fesm2015/ptsecurity-mosaic-button.mjs.map +1 -1
  39. package/fesm2015/ptsecurity-mosaic-core.mjs +1 -1
  40. package/fesm2015/ptsecurity-mosaic-core.mjs.map +1 -1
  41. package/fesm2015/ptsecurity-mosaic-datepicker.mjs +13 -8
  42. package/fesm2015/ptsecurity-mosaic-datepicker.mjs.map +1 -1
  43. package/fesm2015/ptsecurity-mosaic-dl.mjs +6 -2
  44. package/fesm2015/ptsecurity-mosaic-dl.mjs.map +1 -1
  45. package/fesm2015/ptsecurity-mosaic-form-field.mjs +3 -3
  46. package/fesm2015/ptsecurity-mosaic-form-field.mjs.map +1 -1
  47. package/fesm2015/ptsecurity-mosaic-input.mjs +6 -0
  48. package/fesm2015/ptsecurity-mosaic-input.mjs.map +1 -1
  49. package/fesm2015/ptsecurity-mosaic-modal.mjs +2 -2
  50. package/fesm2015/ptsecurity-mosaic-modal.mjs.map +1 -1
  51. package/fesm2015/ptsecurity-mosaic-select.mjs +6 -13
  52. package/fesm2015/ptsecurity-mosaic-select.mjs.map +1 -1
  53. package/fesm2015/ptsecurity-mosaic-sidepanel.mjs +2 -2
  54. package/fesm2015/ptsecurity-mosaic-sidepanel.mjs.map +1 -1
  55. package/fesm2015/ptsecurity-mosaic-tags.mjs +2 -2
  56. package/fesm2015/ptsecurity-mosaic-tags.mjs.map +1 -1
  57. package/fesm2015/ptsecurity-mosaic-timezone.mjs +2 -2
  58. package/fesm2015/ptsecurity-mosaic-timezone.mjs.map +1 -1
  59. package/fesm2015/ptsecurity-mosaic-tooltip.mjs +11 -8
  60. package/fesm2015/ptsecurity-mosaic-tooltip.mjs.map +1 -1
  61. package/fesm2015/ptsecurity-mosaic-tree-select.mjs +39 -37
  62. package/fesm2015/ptsecurity-mosaic-tree-select.mjs.map +1 -1
  63. package/fesm2020/ptsecurity-mosaic-autocomplete.mjs +2 -2
  64. package/fesm2020/ptsecurity-mosaic-autocomplete.mjs.map +1 -1
  65. package/fesm2020/ptsecurity-mosaic-button.mjs +50 -37
  66. package/fesm2020/ptsecurity-mosaic-button.mjs.map +1 -1
  67. package/fesm2020/ptsecurity-mosaic-core.mjs +1 -1
  68. package/fesm2020/ptsecurity-mosaic-core.mjs.map +1 -1
  69. package/fesm2020/ptsecurity-mosaic-datepicker.mjs +13 -8
  70. package/fesm2020/ptsecurity-mosaic-datepicker.mjs.map +1 -1
  71. package/fesm2020/ptsecurity-mosaic-dl.mjs +6 -2
  72. package/fesm2020/ptsecurity-mosaic-dl.mjs.map +1 -1
  73. package/fesm2020/ptsecurity-mosaic-form-field.mjs +3 -3
  74. package/fesm2020/ptsecurity-mosaic-form-field.mjs.map +1 -1
  75. package/fesm2020/ptsecurity-mosaic-input.mjs +5 -0
  76. package/fesm2020/ptsecurity-mosaic-input.mjs.map +1 -1
  77. package/fesm2020/ptsecurity-mosaic-modal.mjs +2 -2
  78. package/fesm2020/ptsecurity-mosaic-modal.mjs.map +1 -1
  79. package/fesm2020/ptsecurity-mosaic-select.mjs +6 -13
  80. package/fesm2020/ptsecurity-mosaic-select.mjs.map +1 -1
  81. package/fesm2020/ptsecurity-mosaic-sidepanel.mjs +2 -2
  82. package/fesm2020/ptsecurity-mosaic-sidepanel.mjs.map +1 -1
  83. package/fesm2020/ptsecurity-mosaic-tags.mjs +2 -2
  84. package/fesm2020/ptsecurity-mosaic-tags.mjs.map +1 -1
  85. package/fesm2020/ptsecurity-mosaic-timezone.mjs +2 -2
  86. package/fesm2020/ptsecurity-mosaic-timezone.mjs.map +1 -1
  87. package/fesm2020/ptsecurity-mosaic-tooltip.mjs +11 -8
  88. package/fesm2020/ptsecurity-mosaic-tooltip.mjs.map +1 -1
  89. package/fesm2020/ptsecurity-mosaic-tree-select.mjs +38 -37
  90. package/fesm2020/ptsecurity-mosaic-tree-select.mjs.map +1 -1
  91. package/form-field/_form-field-theme.scss +9 -0
  92. package/form-field/form-field.scss +5 -1
  93. package/input/_input-theme.scss +2 -1
  94. package/package.json +4 -4
  95. package/prebuilt-themes/dark-theme.css +1 -1
  96. package/prebuilt-themes/default-theme.css +1 -1
  97. package/select/select.scss +7 -3
  98. package/tooltip/tooltip.component.d.ts +1 -0
  99. package/tooltip/tooltip.scss +9 -1
  100. 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-font-horizontal-dt: body;
1069
- $description-list-font-horizontal-dd: body;
1070
- $description-list-font-vertical-dt: caption;
1071
- $description-list-font-vertical-dd: body;
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: mix(#41000b, transparent, 30%);
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,
@@ -6846,8 +6877,6 @@ $dark-warning: mc-palette($dark-color-scheme-warning-palette, $dark-color-scheme
6846
6877
  $checkbox: map-get(map-get($theme, components), checkbox);
6847
6878
 
6848
6879
  .mc-checkbox {
6849
- color: map-get($foreground, text);
6850
-
6851
6880
  &:not(.mc-disabled) {
6852
6881
  .mc-checkbox-overlay:hover {
6853
6882
  background-color: map-get($background, overlay-hover);
@@ -6856,10 +6885,14 @@ $dark-warning: mc-palette($dark-color-scheme-warning-palette, $dark-color-scheme
6856
6885
 
6857
6886
  &.mc-primary {
6858
6887
  @include mc-checkbox-color(map-get($checkbox, default));
6888
+
6889
+ color: map-get($foreground, text) !important;
6859
6890
  }
6860
6891
 
6861
6892
  &.mc-error {
6862
6893
  @include mc-checkbox-color(map-get($checkbox, error));
6894
+
6895
+ color: map-get($foreground, text) !important;
6863
6896
  }
6864
6897
 
6865
6898
  &.mc-disabled,
@@ -7429,6 +7462,15 @@ $mc-datepicker-today-fade-amount: 0.2;
7429
7462
  $form-field: map-get(map-get($theme, components), form-field);
7430
7463
 
7431
7464
  .mc-form-field {
7465
+ & .mc-input {
7466
+ //https://css-tricks.com/almanac/selectors/a/autofill/
7467
+ &:-webkit-autofill,
7468
+ &:-webkit-autofill:hover,
7469
+ &:-webkit-autofill:focus {
7470
+ -webkit-box-shadow: 0 0 0 40rem map-get($form-field, state-autofill-background) inset;
7471
+ }
7472
+ }
7473
+
7432
7474
  & .mc-form-field__container {
7433
7475
  background-color: map-get($form-field, background);
7434
7476
  }
@@ -7487,12 +7529,14 @@ $mc-datepicker-today-fade-amount: 0.2;
7487
7529
  }
7488
7530
 
7489
7531
  .mc-hint {
7532
+ $hint: map-get(map-get($theme, components), form-field-hint);
7533
+
7490
7534
  &.mc-primary {
7491
- color: mc-color($primary);
7535
+ color: map-get($hint, text-color);
7492
7536
  }
7493
7537
 
7494
7538
  &.mc-secondary {
7495
- color: mc-color($secondary);
7539
+ color: map-get($hint, text-color);
7496
7540
  }
7497
7541
 
7498
7542
  &.mc-error {
@@ -7740,7 +7784,8 @@ $mc-datepicker-today-fade-amount: 0.2;
7740
7784
  @include mc-typography-level-to-styles($config, $input-font-default);
7741
7785
  }
7742
7786
 
7743
- .mc-input.mc-input_monospace {
7787
+ .mc-input.mc-input_monospace,
7788
+ .mc-input.mc-input-password[type="password"] {
7744
7789
  @include mc-typography-level-to-styles($config, $input-font-monospace);
7745
7790
  }
7746
7791
  }
@@ -9861,21 +9906,41 @@ button {
9861
9906
  @mixin mc-dl-typography($config) {
9862
9907
  .mc-dl {
9863
9908
  & .mc-dt {
9864
- @include mc-typography-level-to-styles($config, $description-list-font-horizontal-dt);
9909
+ @include mc-typography-level-to-styles($config, $description-list-font-default-horizontal-dt);
9865
9910
  }
9866
9911
 
9867
9912
  & .mc-dd {
9868
- @include mc-typography-level-to-styles($config, $description-list-font-horizontal-dd);
9913
+ @include mc-typography-level-to-styles($config, $description-list-font-default-horizontal-dd);
9914
+ }
9915
+
9916
+ &.mc-dl_small {
9917
+ & .mc-dt {
9918
+ @include mc-typography-level-to-styles($config, $description-list-font-small-horizontal-dt);
9919
+ }
9920
+
9921
+ & .mc-dd {
9922
+ @include mc-typography-level-to-styles($config, $description-list-font-small-horizontal-dd);
9923
+ }
9869
9924
  }
9870
9925
  }
9871
9926
 
9872
9927
  .mc-dl.mc-dl_vertical {
9873
9928
  & .mc-dt {
9874
- @include mc-typography-level-to-styles($config, $description-list-font-vertical-dt);
9929
+ @include mc-typography-level-to-styles($config, $description-list-font-default-vertical-dt);
9875
9930
  }
9876
9931
 
9877
9932
  & .mc-dd {
9878
- @include mc-typography-level-to-styles($config, $description-list-font-vertical-dd);
9933
+ @include mc-typography-level-to-styles($config, $description-list-font-default-vertical-dd);
9934
+ }
9935
+
9936
+ &.mc-dl_small {
9937
+ & .mc-dt {
9938
+ @include mc-typography-level-to-styles($config, $description-list-font-small-vertical-dt);
9939
+ }
9940
+
9941
+ & .mc-dd {
9942
+ @include mc-typography-level-to-styles($config, $description-list-font-small-vertical-dd);
9943
+ }
9879
9944
  }
9880
9945
  }
9881
9946
  }
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-font-horizontal-dt: body;
1023
- $description-list-font-horizontal-dd: body;
1024
- $description-list-font-vertical-dt: caption;
1025
- $description-list-font-vertical-dd: body;
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: mix(#41000b, transparent, 30%);
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;
@@ -15,7 +15,7 @@ $tokens: meta.module-variables(tokens) !default;
15
15
 
16
16
  position: relative;
17
17
 
18
- overflow: auto;
18
+ overflow: hidden auto;
19
19
  -webkit-overflow-scrolling: touch; // for momentum scroll on mobile
20
20
 
21
21
  margin-top: -1px;
@@ -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, never>;
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
  }
@@ -68,13 +68,15 @@ $tokens: meta.module-variables(tokens) !default;
68
68
  }
69
69
 
70
70
  &.mc-primary {
71
- color: map.get($foreground, primary);
72
71
  @include mc-checkbox-color(map.get($checkbox, default));
72
+
73
+ color: map-get($foreground, text) !important;
73
74
  }
74
75
 
75
76
  &.mc-error {
76
- color: map.get($foreground, error);
77
77
  @include mc-checkbox-color(map.get($checkbox, error));
78
+
79
+ color: map-get($foreground, text) !important;
78
80
  }
79
81
 
80
82
  &.mc-disabled,
@@ -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-theme($config);
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: 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-tabular: map.get($typography, body-tabular),
24
-
25
- caption: map.get($typography, caption),
26
- caption-strong: map.get($typography, caption-strong),
27
- caption-caps: map.get($typography, caption-caps),
28
- caption-mono: map.get($typography, caption-mono),
29
- caption-tabular: map.get($typography, caption-tabular),
30
-
31
- small-text: map.get($typography, small-text),
32
- extra-small-text: map.get($typography, extra-small-text),
33
- extra-small-text-caps: map.get($typography, extra-small-text-caps),
34
- extra-small-text-mono: map.get($typography, extra-small-text-mono)
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);
@@ -65,5 +65,11 @@ $tokens: meta.module-variables(tokens) !default;
65
65
 
66
66
  & .mc-select__content {
67
67
  max-height: 12 * 32px;
68
+ overflow-x: hidden;
69
+ scrollbar-gutter: stable;
70
+
71
+ .mc-option {
72
+ min-width: 65px;
73
+ }
68
74
  }
69
75
  }
@@ -31,10 +31,10 @@ export declare class McCalendar<D> implements AfterContentInit, OnDestroy, OnCha
31
31
  private _maxDate;
32
32
  /**
33
33
  * The current active date. This determines which time period is shown and which date is
34
- * highlighted when using keyboard navigation.
34
+ * highlighted and used as the anchor on when using keyboard navigation.
35
35
  */
36
36
  get activeDate(): D;
37
- set activeDate(value: D);
37
+ set activeDate(value: D | null);
38
38
  private _activeDate;
39
39
  /** Function used to filter which dates are selectable. */
40
40
  dateFilter: (date: D) => boolean;
@@ -75,6 +75,7 @@ export declare class McCalendar<D> implements AfterContentInit, OnDestroy, OnCha
75
75
  * @returns The given object if it is both a date instance and valid, otherwise null.
76
76
  */
77
77
  private getValidDateOrNull;
78
+ private getActiveDateDefault;
78
79
  static ɵfac: i0.ɵɵFactoryDeclaration<McCalendar<any>, [null, { optional: true; }, { optional: true; }, null]>;
79
80
  static ɵcmp: i0.ɵɵComponentDeclaration<McCalendar<any>, "mc-calendar", ["mcCalendar"], { "startAt": "startAt"; "selected": "selected"; "minDate": "minDate"; "maxDate": "maxDate"; "dateFilter": "dateFilter"; "dateClass": "dateClass"; }, { "selectedChange": "selectedChange"; "yearSelected": "yearSelected"; "monthSelected": "monthSelected"; "userSelection": "userSelection"; }, never, never, false, never>;
80
81
  }
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($config, map.get($tokens, description-list-font-horizontal-dt));
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($config, map.get($tokens, description-list-font-horizontal-dd));
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($config, map.get($tokens, description-list-font-vertical-dt));
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($config, map.get($tokens, description-list-font-vertical-dd));
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
  }
@@ -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>;