@ptsecurity/mosaic 14.2.0 → 14.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.
- package/_theming.scss +7 -88
- package/package.json +4 -4
package/_theming.scss
CHANGED
@@ -3740,11 +3740,6 @@ $dark-warning: mc-palette($dark-color-scheme-warning-palette, $dark-color-scheme
|
|
3740
3740
|
}
|
3741
3741
|
|
3742
3742
|
|
3743
|
-
@use 'sass:map';
|
3744
|
-
@use 'sass:meta';
|
3745
|
-
@use 'sass:string';
|
3746
|
-
|
3747
|
-
|
3748
3743
|
@function mc-typography-level(
|
3749
3744
|
$font-size,
|
3750
3745
|
$line-height: $font-size,
|
@@ -3766,7 +3761,7 @@ $dark-warning: mc-palette($dark-color-scheme-warning-palette, $dark-color-scheme
|
|
3766
3761
|
}
|
3767
3762
|
|
3768
3763
|
@function _mc-get-type-value($config, $level, $name) {
|
3769
|
-
@return map
|
3764
|
+
@return map-get(map-get($config, $level), $name);
|
3770
3765
|
}
|
3771
3766
|
|
3772
3767
|
@function mc-font-size($config, $level) {
|
@@ -3795,14 +3790,14 @@ $dark-warning: mc-palette($dark-color-scheme-warning-palette, $dark-color-scheme
|
|
3795
3790
|
|
3796
3791
|
// Gets the font-family from a typography config and removes the quotes around it.
|
3797
3792
|
@function mc-font-family($config, $level: null) {
|
3798
|
-
$font-family: map
|
3793
|
+
$font-family: map-get($config, font-family);
|
3799
3794
|
|
3800
3795
|
@if $level != null {
|
3801
3796
|
$font-family: _mc-get-type-value($config, $level, font-family);
|
3802
3797
|
}
|
3803
3798
|
|
3804
3799
|
// Guard against unquoting non-string values, because it's deprecated.
|
3805
|
-
@return if(
|
3800
|
+
@return if(type-of($font-family) == string, unquote($font-family), $font-family);
|
3806
3801
|
}
|
3807
3802
|
|
3808
3803
|
@mixin mc-typography-level-to-styles($config, $level) {
|
@@ -4166,16 +4161,13 @@ $dark-warning: mc-palette($dark-color-scheme-warning-palette, $dark-color-scheme
|
|
4166
4161
|
}
|
4167
4162
|
}
|
4168
4163
|
|
4169
|
-
@use 'sass:map';
|
4170
|
-
|
4171
|
-
|
4172
4164
|
@mixin popup-params($theme) {
|
4173
|
-
$popup: map
|
4165
|
+
$popup: map-get(map-get($theme, components), popup);
|
4174
4166
|
|
4175
|
-
box-shadow: map
|
4176
|
-
border-color: map
|
4167
|
+
box-shadow: map-get($popup, shadow);
|
4168
|
+
border-color: map-get($popup, border);
|
4177
4169
|
|
4178
|
-
background-color: map
|
4170
|
+
background-color: map-get($popup, background);
|
4179
4171
|
}
|
4180
4172
|
|
4181
4173
|
|
@@ -4197,79 +4189,6 @@ $dark-warning: mc-palette($dark-color-scheme-warning-palette, $dark-color-scheme
|
|
4197
4189
|
}
|
4198
4190
|
}
|
4199
4191
|
|
4200
|
-
@function mc-typography-level(
|
4201
|
-
$font-size,
|
4202
|
-
$line-height: $font-size,
|
4203
|
-
$letter-spacing: normal,
|
4204
|
-
$font-weight: normal,
|
4205
|
-
$font-family: null,
|
4206
|
-
$text-transform: null,
|
4207
|
-
$font-feature-settings: null
|
4208
|
-
) {
|
4209
|
-
@return (
|
4210
|
-
font-size: $font-size,
|
4211
|
-
line-height: $line-height,
|
4212
|
-
font-weight: $font-weight,
|
4213
|
-
font-family: $font-family,
|
4214
|
-
letter-spacing: $letter-spacing,
|
4215
|
-
text-transform: $text-transform,
|
4216
|
-
font-feature-settings: $font-feature-settings
|
4217
|
-
);
|
4218
|
-
}
|
4219
|
-
|
4220
|
-
@function _mc-get-type-value($config, $level, $name) {
|
4221
|
-
@return map-get(map-get($config, $level), $name);
|
4222
|
-
}
|
4223
|
-
|
4224
|
-
@function mc-font-size($config, $level) {
|
4225
|
-
@return _mc-get-type-value($config, $level, font-size);
|
4226
|
-
}
|
4227
|
-
|
4228
|
-
@function mc-line-height($config, $level) {
|
4229
|
-
@return _mc-get-type-value($config, $level, line-height);
|
4230
|
-
}
|
4231
|
-
|
4232
|
-
@function mc-font-weight($config, $level) {
|
4233
|
-
@return _mc-get-type-value($config, $level, font-weight);
|
4234
|
-
}
|
4235
|
-
|
4236
|
-
@function mc-letter-spacing($config, $level) {
|
4237
|
-
@return _mc-get-type-value($config, $level, letter-spacing);
|
4238
|
-
}
|
4239
|
-
|
4240
|
-
@function mc-text-transform($config, $level) {
|
4241
|
-
@return _mc-get-type-value($config, $level, text-transform);
|
4242
|
-
}
|
4243
|
-
|
4244
|
-
@function mc-font-feature-settings($config, $level) {
|
4245
|
-
@return _mc-get-type-value($config, $level, font-feature-settings);
|
4246
|
-
}
|
4247
|
-
|
4248
|
-
// Gets the font-family from a typography config and removes the quotes around it.
|
4249
|
-
@function mc-font-family($config, $level: null) {
|
4250
|
-
$font-family: map-get($config, font-family);
|
4251
|
-
|
4252
|
-
@if $level != null {
|
4253
|
-
$font-family: _mc-get-type-value($config, $level, font-family);
|
4254
|
-
}
|
4255
|
-
|
4256
|
-
// Guard against unquoting non-string values, because it's deprecated.
|
4257
|
-
@return if(type-of($font-family) == string, unquote($font-family), $font-family);
|
4258
|
-
}
|
4259
|
-
|
4260
|
-
@mixin mc-typography-level-to-styles($config, $level) {
|
4261
|
-
$font-size: mc-font-size($config, $level);
|
4262
|
-
$font-weight: mc-font-weight($config, $level);
|
4263
|
-
$line-height: mc-line-height($config, $level);
|
4264
|
-
$font-family: mc-font-family($config, $level);
|
4265
|
-
$text-transform: mc-text-transform($config, $level);
|
4266
|
-
$font-feature-settings: mc-font-feature-settings($config, $level);
|
4267
|
-
|
4268
|
-
font: $font-weight #{$font-size}/#{$line-height} $font-family;
|
4269
|
-
letter-spacing: mc-letter-spacing($config, $level);
|
4270
|
-
text-transform: mc-text-transform($config, $level);
|
4271
|
-
font-feature-settings: mc-font-feature-settings($config, $level);
|
4272
|
-
}
|
4273
4192
|
|
4274
4193
|
|
4275
4194
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ptsecurity/mosaic",
|
3
|
-
"version": "14.2.
|
3
|
+
"version": "14.2.1",
|
4
4
|
"description": "Mosaic",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -22,9 +22,9 @@
|
|
22
22
|
"@angular/core": "^14.1.2",
|
23
23
|
"@angular/common": "^14.1.2",
|
24
24
|
"@angular/forms": "^14.1.2",
|
25
|
-
"@ptsecurity/cdk": "^14.2.
|
26
|
-
"@ptsecurity/mosaic-moment-adapter": "^14.2.
|
27
|
-
"@ptsecurity/mosaic-luxon-adapter": "^14.2.
|
25
|
+
"@ptsecurity/cdk": "^14.2.1",
|
26
|
+
"@ptsecurity/mosaic-moment-adapter": "^14.2.1",
|
27
|
+
"@ptsecurity/mosaic-luxon-adapter": "^14.2.1",
|
28
28
|
"@ptsecurity/mosaic-icons": "^5.0.0"
|
29
29
|
},
|
30
30
|
"dependencies": {
|