@ptsecurity/mosaic 13.6.2 → 13.7.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 (143) hide show
  1. package/_theming.scss +103 -6
  2. package/_visual.scss +30 -1
  3. package/design-tokens/legacy-2017/tokens/components/loader-overlay.json5 +23 -0
  4. package/design-tokens/legacy-2017/tokens/properties/globals.json5 +18 -18
  5. package/design-tokens/legacy-2017/tokens.d.ts +29 -0
  6. package/design-tokens/pt-2022/tokens/components/badge.json5 +1 -1
  7. package/design-tokens/pt-2022/tokens/components/loader-overlay.json5 +23 -0
  8. package/design-tokens/pt-2022/tokens/properties/globals.json5 +18 -18
  9. package/design-tokens/pt-2022/tokens.d.ts +30 -1
  10. package/design-tokens/style-dictionary/build.js +13 -0
  11. package/design-tokens/style-dictionary/configs/figma.js +11 -0
  12. package/design-tokens/style-dictionary/configs/index.js +3 -3
  13. package/design-tokens/style-dictionary/formats/figma.js +104 -0
  14. package/design-tokens/style-dictionary/transformGroups/figma.js +21 -0
  15. package/design-tokens/style-dictionary/transforms/attribute/figma-border.js +18 -0
  16. package/design-tokens/style-dictionary/transforms/attribute/figma-color.js +25 -0
  17. package/design-tokens/style-dictionary/transforms/attribute/figma-default.js +10 -0
  18. package/design-tokens/style-dictionary/transforms/attribute/figma-font.js +31 -0
  19. package/design-tokens/style-dictionary/transforms/attribute/figma-group.js +17 -0
  20. package/design-tokens/style-dictionary/transforms/attribute/figma-opacity.js +10 -0
  21. package/design-tokens/style-dictionary/transforms/attribute/figma-shadow.js +66 -0
  22. package/design-tokens/style-dictionary/transforms/attribute/figma-sizing.js +16 -0
  23. package/design-tokens/style-dictionary/transforms/attribute/figma-spacing.js +15 -0
  24. package/design-tokens/style-dictionary/transforms/attribute/figma-typography.js +24 -0
  25. package/design-tokens/style-dictionary/transforms/value/figma-values.js +7 -0
  26. package/esm2020/design-tokens/legacy-2017/tokens.mjs +30 -1
  27. package/esm2020/design-tokens/pt-2022/tokens.mjs +31 -2
  28. package/esm2020/form-field/hint.mjs +18 -7
  29. package/esm2020/list/list-selection.component.mjs +4 -1
  30. package/esm2020/loader-overlay/index.mjs +2 -0
  31. package/esm2020/loader-overlay/loader-overlay.component.mjs +99 -0
  32. package/esm2020/loader-overlay/loader-overlay.module.mjs +50 -0
  33. package/esm2020/loader-overlay/ptsecurity-mosaic-loader-overlay.mjs +5 -0
  34. package/esm2020/loader-overlay/public-api.mjs +3 -0
  35. package/esm2020/modal/modal.component.mjs +11 -3
  36. package/esm2020/modal/modal.type.mjs +1 -1
  37. package/esm2020/navbar/navbar.component.mjs +6 -4
  38. package/esm2020/navbar/vertical-navbar.component.mjs +3 -3
  39. package/esm2020/progress-spinner/progress-spinner.component.mjs +2 -2
  40. package/esm2020/select/select.component.mjs +3 -3
  41. package/esm2020/tree/tree-selection.component.mjs +2 -1
  42. package/esm2020/tree-select/tree-select.component.mjs +3 -3
  43. package/fesm2015/ptsecurity-mosaic-design-tokens.mjs +89 -2
  44. package/fesm2015/ptsecurity-mosaic-design-tokens.mjs.map +1 -1
  45. package/fesm2015/ptsecurity-mosaic-form-field.mjs +16 -6
  46. package/fesm2015/ptsecurity-mosaic-form-field.mjs.map +1 -1
  47. package/fesm2015/ptsecurity-mosaic-list.mjs +3 -0
  48. package/fesm2015/ptsecurity-mosaic-list.mjs.map +1 -1
  49. package/fesm2015/ptsecurity-mosaic-loader-overlay.mjs +155 -0
  50. package/fesm2015/ptsecurity-mosaic-loader-overlay.mjs.map +1 -0
  51. package/fesm2015/ptsecurity-mosaic-modal.mjs +11 -2
  52. package/fesm2015/ptsecurity-mosaic-modal.mjs.map +1 -1
  53. package/fesm2015/ptsecurity-mosaic-navbar.mjs +6 -4
  54. package/fesm2015/ptsecurity-mosaic-navbar.mjs.map +1 -1
  55. package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs +2 -2
  56. package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs.map +1 -1
  57. package/fesm2015/ptsecurity-mosaic-select.mjs +2 -2
  58. package/fesm2015/ptsecurity-mosaic-select.mjs.map +1 -1
  59. package/fesm2015/ptsecurity-mosaic-tree-select.mjs +2 -2
  60. package/fesm2015/ptsecurity-mosaic-tree-select.mjs.map +1 -1
  61. package/fesm2015/ptsecurity-mosaic-tree.mjs +1 -0
  62. package/fesm2015/ptsecurity-mosaic-tree.mjs.map +1 -1
  63. package/fesm2020/ptsecurity-mosaic-design-tokens.mjs +89 -2
  64. package/fesm2020/ptsecurity-mosaic-design-tokens.mjs.map +1 -1
  65. package/fesm2020/ptsecurity-mosaic-form-field.mjs +16 -6
  66. package/fesm2020/ptsecurity-mosaic-form-field.mjs.map +1 -1
  67. package/fesm2020/ptsecurity-mosaic-list.mjs +3 -0
  68. package/fesm2020/ptsecurity-mosaic-list.mjs.map +1 -1
  69. package/fesm2020/ptsecurity-mosaic-loader-overlay.mjs +153 -0
  70. package/fesm2020/ptsecurity-mosaic-loader-overlay.mjs.map +1 -0
  71. package/fesm2020/ptsecurity-mosaic-modal.mjs +10 -2
  72. package/fesm2020/ptsecurity-mosaic-modal.mjs.map +1 -1
  73. package/fesm2020/ptsecurity-mosaic-navbar.mjs +6 -4
  74. package/fesm2020/ptsecurity-mosaic-navbar.mjs.map +1 -1
  75. package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs +2 -2
  76. package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs.map +1 -1
  77. package/fesm2020/ptsecurity-mosaic-select.mjs +2 -2
  78. package/fesm2020/ptsecurity-mosaic-select.mjs.map +1 -1
  79. package/fesm2020/ptsecurity-mosaic-tree-select.mjs +2 -2
  80. package/fesm2020/ptsecurity-mosaic-tree-select.mjs.map +1 -1
  81. package/fesm2020/ptsecurity-mosaic-tree.mjs +1 -0
  82. package/fesm2020/ptsecurity-mosaic-tree.mjs.map +1 -1
  83. package/form-field/hint.d.ts +10 -2
  84. package/loader-overlay/README.md +0 -0
  85. package/loader-overlay/index.d.ts +1 -0
  86. package/loader-overlay/loader-overlay.component.d.ts +33 -0
  87. package/loader-overlay/loader-overlay.module.d.ts +11 -0
  88. package/loader-overlay/package.json +10 -0
  89. package/loader-overlay/ptsecurity-mosaic-loader-overlay.d.ts +5 -0
  90. package/loader-overlay/public-api.d.ts +2 -0
  91. package/modal/modal.component.d.ts +3 -1
  92. package/modal/modal.type.d.ts +1 -0
  93. package/package.json +12 -4
  94. package/prebuilt-themes/dark-theme.css +1 -1
  95. package/prebuilt-themes/default-theme.css +1 -1
  96. package/schematics/collection.json +0 -4
  97. package/schematics/migration.json +0 -10
  98. package/schematics/ng-update/data/attribute-selectors.d.ts +0 -2
  99. package/schematics/ng-update/data/attribute-selectors.js +0 -5
  100. package/schematics/ng-update/data/attribute-selectors.js.map +0 -1
  101. package/schematics/ng-update/data/class-names.d.ts +0 -2
  102. package/schematics/ng-update/data/class-names.js +0 -5
  103. package/schematics/ng-update/data/class-names.js.map +0 -1
  104. package/schematics/ng-update/data/constructor-checks.d.ts +0 -2
  105. package/schematics/ng-update/data/constructor-checks.js +0 -5
  106. package/schematics/ng-update/data/constructor-checks.js.map +0 -1
  107. package/schematics/ng-update/data/css-selectors.d.ts +0 -2
  108. package/schematics/ng-update/data/css-selectors.js +0 -5
  109. package/schematics/ng-update/data/css-selectors.js.map +0 -1
  110. package/schematics/ng-update/data/element-selectors.d.ts +0 -2
  111. package/schematics/ng-update/data/element-selectors.js +0 -5
  112. package/schematics/ng-update/data/element-selectors.js.map +0 -1
  113. package/schematics/ng-update/data/index.d.ts +0 -10
  114. package/schematics/ng-update/data/index.js +0 -14
  115. package/schematics/ng-update/data/index.js.map +0 -1
  116. package/schematics/ng-update/data/input-names.d.ts +0 -2
  117. package/schematics/ng-update/data/input-names.js +0 -35
  118. package/schematics/ng-update/data/input-names.js.map +0 -1
  119. package/schematics/ng-update/data/method-call-checks.d.ts +0 -2
  120. package/schematics/ng-update/data/method-call-checks.js +0 -5
  121. package/schematics/ng-update/data/method-call-checks.js.map +0 -1
  122. package/schematics/ng-update/data/output-names.d.ts +0 -2
  123. package/schematics/ng-update/data/output-names.js +0 -5
  124. package/schematics/ng-update/data/output-names.js.map +0 -1
  125. package/schematics/ng-update/data/property-names.d.ts +0 -2
  126. package/schematics/ng-update/data/property-names.js +0 -5
  127. package/schematics/ng-update/data/property-names.js.map +0 -1
  128. package/schematics/ng-update/data/symbol-removal.d.ts +0 -2
  129. package/schematics/ng-update/data/symbol-removal.js +0 -5
  130. package/schematics/ng-update/data/symbol-removal.js.map +0 -1
  131. package/schematics/ng-update/index.d.ts +0 -2
  132. package/schematics/ng-update/index.js +0 -23
  133. package/schematics/ng-update/index.js.map +0 -1
  134. package/schematics/ng-update/update-9.0.0/mosaic-symbols.json +0 -255
  135. package/schematics/ng-update/update-9.0.0/secondary-entry-points-migration.d.ts +0 -7
  136. package/schematics/ng-update/update-9.0.0/secondary-entry-points-migration.js +0 -154
  137. package/schematics/ng-update/update-9.0.0/secondary-entry-points-migration.js.map +0 -1
  138. package/schematics/ng-update/upgrade-data.d.ts +0 -2
  139. package/schematics/ng-update/upgrade-data.js +0 -17
  140. package/schematics/ng-update/upgrade-data.js.map +0 -1
  141. package/schematics/tsconfig.json +0 -29
  142. package/schematics/tsconfig.lib-test.json +0 -8
  143. package/schematics/tsconfig.lib.json +0 -17
package/_theming.scss CHANGED
@@ -167,6 +167,24 @@ $size-4xl: 40px;
167
167
  $size-5xl: 48px;
168
168
  $size-6xl: 56px;
169
169
  $size-7xl: 64px;
170
+ $size-border-width: 1px;
171
+ $size-border-radius: 4px;
172
+ $size-option-height: 32px;
173
+ $size-panel-height: 48px;
174
+ $size-control-s-height: 16px;
175
+ $size-control-m-height: 32px;
176
+ $size-button-min-width: 64px;
177
+ $size-badge-tag-height: 24px;
178
+ $size-header-height: 56px;
179
+ $size-footer-height: 64px;
180
+ $padding-control-horizontal: 16px;
181
+ $padding-option-horizontal: 16px;
182
+ $padding-badge-tag-horizontal: 8px;
183
+ $padding-header-right: 8px;
184
+ $padding-header-footer-horizontal: 16px;
185
+ $margin-control-group-s-vertical: 8px;
186
+ $margin-icon-text-m-horizontal: 8px;
187
+ $margin-icon-text-s-horizontal: 4px;
170
188
  $palette-blue-40: #eff6ff;
171
189
  $palette-blue-60: #e7f1ff;
172
190
  $palette-blue-100: #c8dfff;
@@ -427,7 +445,7 @@ $badge-light-color-scheme-pastel-primary-background: #eff6ff;
427
445
  $badge-light-color-scheme-pastel-primary-border: #a2c7fe;
428
446
  $badge-light-color-scheme-pastel-primary-color: #4187ff;
429
447
  $badge-light-color-scheme-pastel-info-background: #ebf8fd;
430
- $badge-light-color-scheme-pastel-info-border: #a2c7fe;
448
+ $badge-light-color-scheme-pastel-info-border: #6ed3f2;
431
449
  $badge-light-color-scheme-pastel-info-color: #2099b7;
432
450
  $badge-light-color-scheme-pastel-success-background: #ecf9ef;
433
451
  $badge-light-color-scheme-pastel-success-border: #8ed5a1;
@@ -806,6 +824,17 @@ $list-size-horizontal-padding: 12px;
806
824
  $list-size-icon-right-margin: 8px;
807
825
  $list-size-item-height: 32px;
808
826
  $list-font-item: body;
827
+ $loader-overlay-light-color-scheme-background: mix(white, transparent, 90%);
828
+ $loader-overlay-light-color-scheme-text: #19252f;
829
+ $loader-overlay-light-color-scheme-caption: #6d7a86;
830
+ $loader-overlay-dark-color-scheme-background: mix(#19252f, transparent, 90%);
831
+ $loader-overlay-dark-color-scheme-text: #f2f5f9;
832
+ $loader-overlay-dark-color-scheme-caption: #8c99a5;
833
+ $loader-overlay-size-text-max-width: 480px;
834
+ $loader-overlay-size-fixed-top-padding: 72px;
835
+ $loader-overlay-size-center-optical-compensation: -40%;
836
+ $loader-overlay-font-text: body;
837
+ $loader-overlay-font-caption: caption;
809
838
  $modal-light-color-scheme-shadow: (0 0 0 1px #d7dee4, 0 6px 12px 0 rgba(39, 51, 62, 0.5));
810
839
  $modal-light-color-scheme-body-top-shadow: 0 2px 4px 0 rgba(39, 51, 62, 0.16);
811
840
  $modal-light-color-scheme-body-bottom-shadow: 0 -2px 4px 0 rgba(39, 51, 62, 0.16);
@@ -2896,6 +2925,13 @@ $swift-linear: all $swift-linear-duration $swift-linear-timing-function !default
2896
2925
  state-focused-outline: $link-light-color-scheme-state-focused-outline
2897
2926
  );
2898
2927
 
2928
+ $loader-overlay: (
2929
+ background: $loader-overlay-light-color-scheme-background,
2930
+
2931
+ text: $loader-overlay-light-color-scheme-text,
2932
+ caption: $loader-overlay-light-color-scheme-caption,
2933
+ );
2934
+
2899
2935
  $modal: (
2900
2936
  background-mask: $modal-light-color-scheme-background-mask,
2901
2937
  shadow: $modal-light-color-scheme-shadow,
@@ -3077,6 +3113,7 @@ $swift-linear: all $swift-linear-duration $swift-linear-timing-function !default
3077
3113
  form-field-password-hint: $form-field-password-hint,
3078
3114
  forms: $forms,
3079
3115
  link: $link,
3116
+ loader-overlay: $loader-overlay,
3080
3117
  modal: $modal,
3081
3118
  navbar: $navbar,
3082
3119
  navbar-item: $navbar-item,
@@ -3358,6 +3395,13 @@ $swift-linear: all $swift-linear-duration $swift-linear-timing-function !default
3358
3395
  state-focused-outline: $link-dark-color-scheme-state-focused-outline
3359
3396
  );
3360
3397
 
3398
+ $loader-overlay: (
3399
+ background: $loader-overlay-dark-color-scheme-background,
3400
+
3401
+ text: $loader-overlay-dark-color-scheme-text,
3402
+ caption: $loader-overlay-dark-color-scheme-caption,
3403
+ );
3404
+
3361
3405
  $modal: (
3362
3406
  background-mask: $modal-dark-color-scheme-background-mask,
3363
3407
  shadow: $modal-dark-color-scheme-shadow,
@@ -3539,6 +3583,7 @@ $swift-linear: all $swift-linear-duration $swift-linear-timing-function !default
3539
3583
  form-field-password-hint: $form-field-password-hint,
3540
3584
  forms: $forms,
3541
3585
  link: $link,
3586
+ loader-overlay: $loader-overlay,
3542
3587
  modal: $modal,
3543
3588
  navbar: $navbar,
3544
3589
  navbar-item: $navbar-item,
@@ -4249,6 +4294,10 @@ $fonts: (
4249
4294
  @include mc-badge-color(map-get($badge, success_pastel));
4250
4295
  }
4251
4296
 
4297
+ &.mc-badge_info {
4298
+ @include mc-badge-color(map-get($badge, info_pastel));
4299
+ }
4300
+
4252
4301
  &.mc-badge_warning {
4253
4302
  @include mc-badge-color(map-get($badge, warning_pastel));
4254
4303
  }
@@ -4879,6 +4928,7 @@ $mc-datepicker-today-fade-amount: 0.2;
4879
4928
  $foreground: map-get($theme, foreground);
4880
4929
  $background: map-get($theme, background);
4881
4930
 
4931
+ $primary: map-get($theme, primary);
4882
4932
  $second: map-get($theme, second);
4883
4933
  $error: map-get($theme, error);
4884
4934
 
@@ -4912,10 +4962,6 @@ $mc-datepicker-today-fade-amount: 0.2;
4912
4962
  color: mc-color($error);
4913
4963
  }
4914
4964
  }
4915
-
4916
- & .mc-hint {
4917
- color: mc-color($error);
4918
- }
4919
4965
  }
4920
4966
 
4921
4967
  &.cdk-focused {
@@ -4945,6 +4991,20 @@ $mc-datepicker-today-fade-amount: 0.2;
4945
4991
  }
4946
4992
  }
4947
4993
 
4994
+ .mc-hint {
4995
+ &.mc-primary {
4996
+ color: mc-color($primary);
4997
+ }
4998
+
4999
+ &.mc-second {
5000
+ color: mc-color($second);
5001
+ }
5002
+
5003
+ &.mc-error {
5004
+ color: mc-color($error);
5005
+ }
5006
+ }
5007
+
4948
5008
  .mc-password-hint {
4949
5009
  $password-hint: map-get(map-get($theme, components), form-field-password-hint);
4950
5010
 
@@ -5254,6 +5314,40 @@ $mc-datepicker-today-fade-amount: 0.2;
5254
5314
 
5255
5315
 
5256
5316
 
5317
+ @mixin mc-loader-overlay-theme($theme) {
5318
+ $background: map-get($theme, background);
5319
+ $primary: map-get($theme, primary);
5320
+
5321
+ $loader-overlay: map-get(map-get($theme, components), loader-overlay);
5322
+
5323
+ .mc-loader-overlay {
5324
+ background: map-get($loader-overlay, background);
5325
+ }
5326
+
5327
+ .mc-loader-overlay-text {
5328
+ color: map-get($loader-overlay, text);
5329
+ }
5330
+
5331
+ .mc-loader-overlay-caption {
5332
+ color: map-get($loader-overlay, caption);
5333
+ }
5334
+ }
5335
+
5336
+ @mixin mc-loader-overlay-typography($config) {
5337
+ .mc-loader-overlay-text {
5338
+ @include mc-typography-level-to-styles($config, $loader-overlay-font-text);
5339
+ }
5340
+
5341
+ .mc-loader-overlay-caption {
5342
+ @include mc-typography-level-to-styles($config, $loader-overlay-font-caption);
5343
+ }
5344
+ }
5345
+
5346
+
5347
+
5348
+
5349
+
5350
+
5257
5351
  @mixin mc-modal-theme($theme) {
5258
5352
  $foreground: map-get($theme, foreground);
5259
5353
  $background: map-get($theme, background);
@@ -6013,7 +6107,7 @@ button {
6013
6107
  box-shadow: 0 0 0 1px map-get($params, focused);
6014
6108
  }
6015
6109
 
6016
- & .mc-icon {
6110
+ &:not(.mc-disabled) .mc-icon {
6017
6111
  color: map-get($params, icon);
6018
6112
 
6019
6113
  &.mc-tag-remove:hover {
@@ -6640,6 +6734,7 @@ button {
6640
6734
  @include mc-input-typography($config);
6641
6735
  @include mc-link-typography($config);
6642
6736
  @include mc-list-typography($config);
6737
+ @include mc-loader-overlay-typography($config);
6643
6738
  @include mc-modal-typography($config);
6644
6739
  @include mc-navbar-typography($config);
6645
6740
  @include mc-option-typography($config);
@@ -6873,6 +6968,7 @@ button {
6873
6968
 
6874
6969
 
6875
6970
 
6971
+
6876
6972
  @mixin mc-progress-bar-theme($theme) {
6877
6973
  $primary: map-get($theme, primary);
6878
6974
  $second: map-get($theme, second);
@@ -7116,6 +7212,7 @@ button {
7116
7212
  @include mc-input-theme($theme);
7117
7213
  @include mc-link-theme($theme);
7118
7214
  @include mc-list-theme($theme);
7215
+ @include mc-loader-overlay-theme($theme);
7119
7216
  @include mc-modal-theme($theme);
7120
7217
  @include mc-navbar-theme($theme);
7121
7218
  @include mc-option-theme($theme);
package/_visual.scss CHANGED
@@ -69,6 +69,24 @@ $size-4xl: 40px;
69
69
  $size-5xl: 48px;
70
70
  $size-6xl: 56px;
71
71
  $size-7xl: 64px;
72
+ $size-border-width: 1px;
73
+ $size-border-radius: 4px;
74
+ $size-option-height: 32px;
75
+ $size-panel-height: 48px;
76
+ $size-control-s-height: 16px;
77
+ $size-control-m-height: 32px;
78
+ $size-button-min-width: 64px;
79
+ $size-badge-tag-height: 24px;
80
+ $size-header-height: 56px;
81
+ $size-footer-height: 64px;
82
+ $padding-control-horizontal: 16px;
83
+ $padding-option-horizontal: 16px;
84
+ $padding-badge-tag-horizontal: 8px;
85
+ $padding-header-right: 8px;
86
+ $padding-header-footer-horizontal: 16px;
87
+ $margin-control-group-s-vertical: 8px;
88
+ $margin-icon-text-m-horizontal: 8px;
89
+ $margin-icon-text-s-horizontal: 4px;
72
90
  $palette-blue-40: #eff6ff;
73
91
  $palette-blue-60: #e7f1ff;
74
92
  $palette-blue-100: #c8dfff;
@@ -329,7 +347,7 @@ $badge-light-color-scheme-pastel-primary-background: #eff6ff;
329
347
  $badge-light-color-scheme-pastel-primary-border: #a2c7fe;
330
348
  $badge-light-color-scheme-pastel-primary-color: #4187ff;
331
349
  $badge-light-color-scheme-pastel-info-background: #ebf8fd;
332
- $badge-light-color-scheme-pastel-info-border: #a2c7fe;
350
+ $badge-light-color-scheme-pastel-info-border: #6ed3f2;
333
351
  $badge-light-color-scheme-pastel-info-color: #2099b7;
334
352
  $badge-light-color-scheme-pastel-success-background: #ecf9ef;
335
353
  $badge-light-color-scheme-pastel-success-border: #8ed5a1;
@@ -708,6 +726,17 @@ $list-size-horizontal-padding: 12px;
708
726
  $list-size-icon-right-margin: 8px;
709
727
  $list-size-item-height: 32px;
710
728
  $list-font-item: body;
729
+ $loader-overlay-light-color-scheme-background: mix(white, transparent, 90%);
730
+ $loader-overlay-light-color-scheme-text: #19252f;
731
+ $loader-overlay-light-color-scheme-caption: #6d7a86;
732
+ $loader-overlay-dark-color-scheme-background: mix(#19252f, transparent, 90%);
733
+ $loader-overlay-dark-color-scheme-text: #f2f5f9;
734
+ $loader-overlay-dark-color-scheme-caption: #8c99a5;
735
+ $loader-overlay-size-text-max-width: 480px;
736
+ $loader-overlay-size-fixed-top-padding: 72px;
737
+ $loader-overlay-size-center-optical-compensation: -40%;
738
+ $loader-overlay-font-text: body;
739
+ $loader-overlay-font-caption: caption;
711
740
  $modal-light-color-scheme-shadow: (0 0 0 1px #d7dee4, 0 6px 12px 0 rgba(39, 51, 62, 0.5));
712
741
  $modal-light-color-scheme-body-top-shadow: 0 2px 4px 0 rgba(39, 51, 62, 0.16);
713
742
  $modal-light-color-scheme-body-bottom-shadow: 0 -2px 4px 0 rgba(39, 51, 62, 0.16);
@@ -0,0 +1,23 @@
1
+ {
2
+ 'loader-overlay': {
3
+ 'light-color-scheme': {
4
+ background: { value: 'mix({light-color-scheme.background.background}, transparent, 90%)' },
5
+ text: { value: '{light-color-scheme.foreground.text}' },
6
+ caption: { value: '{light-color-scheme.foreground.text-less-contrast}' }
7
+ },
8
+ 'dark-color-scheme': {
9
+ background: { value: 'mix({dark-color-scheme.background.background}, transparent, 90%)' },
10
+ text: { value: '{dark-color-scheme.foreground.text}' },
11
+ caption: { value: '{dark-color-scheme.foreground.text-less-contrast}' }
12
+ },
13
+ size: {
14
+ 'text-max-width': { value: '480px' },
15
+ 'fixed-top-padding': { value: '72px' },
16
+ 'center-optical-compensation': { value: '-40%' }
17
+ },
18
+ font: {
19
+ text: { value: 'body' },
20
+ caption: { value: 'caption' },
21
+ }
22
+ }
23
+ }
@@ -14,36 +14,36 @@
14
14
  '6xl': { value: '56px' },
15
15
  '7xl': { value: '64px' },
16
16
 
17
- 'border-width': '1px',
18
- 'border-radius': '4px',
17
+ 'border-width': { 'value': '1px' },
18
+ 'border-radius': { 'value': '4px' },
19
19
 
20
20
  // this will be deleted
21
- 'option-height': '32px',
22
- 'panel-height': '48px',
21
+ 'option-height': { 'value': '32px' },
22
+ 'panel-height': { 'value': '48px' },
23
23
  // у radio и checkbox в макетах 20px, у тоггла есть две модификации на 16px и 14px
24
- 'control_S-height': '16px',
24
+ 'control_S-height': { 'value': '16px' },
25
25
  // в form-field это реализовано через отступы
26
- 'control_M-height': '32px',
26
+ 'control_M-height': { 'value': '32px' },
27
27
  // этого нет сейчас
28
- 'button-minWidth': '64px',
28
+ 'button-minWidth': { 'value': '64px' },
29
29
  // badge на padding
30
- 'badge_tag-height': '24px',
30
+ 'badge_tag-height': { 'value': '24px' },
31
31
  // modal; sidepanel - сейчас в этих компонентах paddings
32
- 'header-height': '56px',
33
- 'footer-height': '64px',
32
+ 'header-height': { 'value': '56px' },
33
+ 'footer-height': { 'value': '64px' },
34
34
  // this will be deleted
35
35
  },
36
36
  padding: {
37
- 'control-horizontal': '16px',
38
- 'option-horizontal': '16px',
39
- 'badge_tag-horizontal': '8px',
40
- 'header-right': '8px',
41
- 'headerFooter-horizontal': '16px',
37
+ 'control-horizontal': { 'value': '16px' },
38
+ 'option-horizontal': { 'value': '16px' },
39
+ 'badge_tag-horizontal': { 'value': '8px' },
40
+ 'header-right': { 'value': '8px' },
41
+ 'headerFooter-horizontal': { 'value': '16px' }
42
42
  },
43
43
  margin: {
44
44
  // у radio-group нет таких отступов, а у checkbox вообще нет группы
45
- 'controlGroup_S-vertical': '8px',
46
- 'iconText_M-horizontal': '8px',
47
- 'iconText_S-horizontal': '4px'
45
+ 'controlGroup_S-vertical': { 'value': '8px' },
46
+ 'iconText_M-horizontal': { 'value': '8px' },
47
+ 'iconText_S-horizontal': { 'value': '4px' }
48
48
  }
49
49
  }
@@ -4820,6 +4820,24 @@ export declare const Size4xl = "40px";
4820
4820
  export declare const Size5xl = "48px";
4821
4821
  export declare const Size6xl = "56px";
4822
4822
  export declare const Size7xl = "64px";
4823
+ export declare const SizeBorderWidth = "1px";
4824
+ export declare const SizeBorderRadius = "4px";
4825
+ export declare const SizeOptionHeight = "32px";
4826
+ export declare const SizePanelHeight = "48px";
4827
+ export declare const SizeControlSHeight = "16px";
4828
+ export declare const SizeControlMHeight = "32px";
4829
+ export declare const SizeButtonMinWidth = "64px";
4830
+ export declare const SizeBadgeTagHeight = "24px";
4831
+ export declare const SizeHeaderHeight = "56px";
4832
+ export declare const SizeFooterHeight = "64px";
4833
+ export declare const PaddingControlHorizontal = "16px";
4834
+ export declare const PaddingOptionHorizontal = "16px";
4835
+ export declare const PaddingBadgeTagHorizontal = "8px";
4836
+ export declare const PaddingHeaderRight = "8px";
4837
+ export declare const PaddingHeaderFooterHorizontal = "16px";
4838
+ export declare const MarginControlGroupSVertical = "8px";
4839
+ export declare const MarginIconTextMHorizontal = "8px";
4840
+ export declare const MarginIconTextSHorizontal = "4px";
4823
4841
  export declare const PaletteBlue40 = "#F5FAFD";
4824
4842
  export declare const PaletteBlue60 = "#EBF4FB";
4825
4843
  export declare const PaletteBlue100 = "#D8EAF7";
@@ -7500,6 +7518,17 @@ export declare const ListSizeHorizontalPadding = "12px";
7500
7518
  export declare const ListSizeIconRightMargin = "8px";
7501
7519
  export declare const ListSizeItemHeight = "32px";
7502
7520
  export declare const ListFontItem = "body";
7521
+ export declare const LoaderOverlayLightColorSchemeBackground = "mix(white, transparent, 90%)";
7522
+ export declare const LoaderOverlayLightColorSchemeText = "#4D4D4D";
7523
+ export declare const LoaderOverlayLightColorSchemeCaption = "#999999";
7524
+ export declare const LoaderOverlayDarkColorSchemeBackground = "mix(#333333, transparent, 90%)";
7525
+ export declare const LoaderOverlayDarkColorSchemeText = "#F0F0F0";
7526
+ export declare const LoaderOverlayDarkColorSchemeCaption = "#999999";
7527
+ export declare const LoaderOverlaySizeTextMaxWidth = "480px";
7528
+ export declare const LoaderOverlaySizeFixedTopPadding = "72px";
7529
+ export declare const LoaderOverlaySizeCenterOpticalCompensation = "-40%";
7530
+ export declare const LoaderOverlayFontText = "body";
7531
+ export declare const LoaderOverlayFontCaption = "caption";
7503
7532
  export declare const ModalLightColorSchemeShadow = "(0 0 0 1px #B3B3B3, 0 6px 12px 0 rgba(0, 0, 0, 0.5))";
7504
7533
  export declare const ModalLightColorSchemeBodyTopShadow = "0 2px 4px 0 rgba(0, 0, 0, 0.16)";
7505
7534
  export declare const ModalLightColorSchemeBodyBottomShadow = "0 -2px 4px 0 rgba(0, 0, 0, 0.16)";
@@ -51,7 +51,7 @@
51
51
  },
52
52
  info: {
53
53
  background: { value: '{light-color-scheme.info.palette.value.40}' },
54
- border: { value: '{light-color-scheme.primary.palette.value.200}' },
54
+ border: { value: '{light-color-scheme.info.palette.value.200}' },
55
55
  color: { value: '{light-color-scheme.info.palette.value.400}' }
56
56
  },
57
57
  success: {
@@ -0,0 +1,23 @@
1
+ {
2
+ 'loader-overlay': {
3
+ 'light-color-scheme': {
4
+ background: { value: 'mix({light-color-scheme.background.background}, transparent, 90%)' },
5
+ text: { value: '{light-color-scheme.foreground.text}' },
6
+ caption: { value: '{light-color-scheme.foreground.text-less-contrast}' }
7
+ },
8
+ 'dark-color-scheme': {
9
+ background: { value: 'mix({dark-color-scheme.background.background}, transparent, 90%)' },
10
+ text: { value: '{dark-color-scheme.foreground.text}' },
11
+ caption: { value: '{dark-color-scheme.foreground.text-less-contrast}' }
12
+ },
13
+ size: {
14
+ 'text-max-width': { value: '480px' },
15
+ 'fixed-top-padding': { value: '72px' },
16
+ 'center-optical-compensation': { value: '-40%' }
17
+ },
18
+ font: {
19
+ text: { value: 'body' },
20
+ caption: { value: 'caption' },
21
+ }
22
+ }
23
+ }
@@ -14,36 +14,36 @@
14
14
  '6xl': { value: '56px' },
15
15
  '7xl': { value: '64px' },
16
16
 
17
- 'border-width': '1px',
18
- 'border-radius': '4px',
17
+ 'border-width': { 'value': '1px' },
18
+ 'border-radius': { 'value': '4px' },
19
19
 
20
20
  // this will be deleted
21
- 'option-height': '32px',
22
- 'panel-height': '48px',
21
+ 'option-height': { 'value': '32px' },
22
+ 'panel-height': { 'value': '48px' },
23
23
  // у radio и checkbox в макетах 20px, у тоггла есть две модификации на 16px и 14px
24
- 'control_S-height': '16px',
24
+ 'control_S-height': { 'value': '16px' },
25
25
  // в form-field это реализовано через отступы
26
- 'control_M-height': '32px',
26
+ 'control_M-height': { 'value': '32px' },
27
27
  // этого нет сейчас
28
- 'button-minWidth': '64px',
28
+ 'button-minWidth': { 'value': '64px' },
29
29
  // badge на padding
30
- 'badge_tag-height': '24px',
30
+ 'badge_tag-height': { 'value': '24px' },
31
31
  // modal; sidepanel - сейчас в этих компонентах paddings
32
- 'header-height': '56px',
33
- 'footer-height': '64px',
32
+ 'header-height': { 'value': '56px' },
33
+ 'footer-height': { 'value': '64px' },
34
34
  // this will be deleted
35
35
  },
36
36
  padding: {
37
- 'control-horizontal': '16px',
38
- 'option-horizontal': '16px',
39
- 'badge_tag-horizontal': '8px',
40
- 'header-right': '8px',
41
- 'headerFooter-horizontal': '16px',
37
+ 'control-horizontal': { 'value': '16px' },
38
+ 'option-horizontal': { 'value': '16px' },
39
+ 'badge_tag-horizontal': { 'value': '8px' },
40
+ 'header-right': { 'value': '8px' },
41
+ 'headerFooter-horizontal': { 'value': '16px' }
42
42
  },
43
43
  margin: {
44
44
  // у radio-group нет таких отступов, а у checkbox вообще нет группы
45
- 'controlGroup_S-vertical': '8px',
46
- 'iconText_M-horizontal': '8px',
47
- 'iconText_S-horizontal': '4px'
45
+ 'controlGroup_S-vertical': { 'value': '8px' },
46
+ 'iconText_M-horizontal': { 'value': '8px' },
47
+ 'iconText_S-horizontal': { 'value': '4px' }
48
48
  }
49
49
  }
@@ -5123,6 +5123,24 @@ export declare const Size4xl = "40px";
5123
5123
  export declare const Size5xl = "48px";
5124
5124
  export declare const Size6xl = "56px";
5125
5125
  export declare const Size7xl = "64px";
5126
+ export declare const SizeBorderWidth = "1px";
5127
+ export declare const SizeBorderRadius = "4px";
5128
+ export declare const SizeOptionHeight = "32px";
5129
+ export declare const SizePanelHeight = "48px";
5130
+ export declare const SizeControlSHeight = "16px";
5131
+ export declare const SizeControlMHeight = "32px";
5132
+ export declare const SizeButtonMinWidth = "64px";
5133
+ export declare const SizeBadgeTagHeight = "24px";
5134
+ export declare const SizeHeaderHeight = "56px";
5135
+ export declare const SizeFooterHeight = "64px";
5136
+ export declare const PaddingControlHorizontal = "16px";
5137
+ export declare const PaddingOptionHorizontal = "16px";
5138
+ export declare const PaddingBadgeTagHorizontal = "8px";
5139
+ export declare const PaddingHeaderRight = "8px";
5140
+ export declare const PaddingHeaderFooterHorizontal = "16px";
5141
+ export declare const MarginControlGroupSVertical = "8px";
5142
+ export declare const MarginIconTextMHorizontal = "8px";
5143
+ export declare const MarginIconTextSHorizontal = "4px";
5126
5144
  export declare const PaletteBlue40 = "#eff6ff";
5127
5145
  export declare const PaletteBlue60 = "#e7f1ff";
5128
5146
  export declare const PaletteBlue100 = "#c8dfff";
@@ -8450,7 +8468,7 @@ export declare const BadgeLightColorSchemePastelPrimaryBackground = "#eff6ff";
8450
8468
  export declare const BadgeLightColorSchemePastelPrimaryBorder = "#a2c7fe";
8451
8469
  export declare const BadgeLightColorSchemePastelPrimaryColor = "#4187ff";
8452
8470
  export declare const BadgeLightColorSchemePastelInfoBackground = "#ebf8fd";
8453
- export declare const BadgeLightColorSchemePastelInfoBorder = "#a2c7fe";
8471
+ export declare const BadgeLightColorSchemePastelInfoBorder = "#6ed3f2";
8454
8472
  export declare const BadgeLightColorSchemePastelInfoColor = "#2099b7";
8455
8473
  export declare const BadgeLightColorSchemePastelSuccessBackground = "#ecf9ef";
8456
8474
  export declare const BadgeLightColorSchemePastelSuccessBorder = "#8ed5a1";
@@ -8829,6 +8847,17 @@ export declare const ListSizeHorizontalPadding = "12px";
8829
8847
  export declare const ListSizeIconRightMargin = "8px";
8830
8848
  export declare const ListSizeItemHeight = "32px";
8831
8849
  export declare const ListFontItem = "body";
8850
+ export declare const LoaderOverlayLightColorSchemeBackground = "mix(white, transparent, 90%)";
8851
+ export declare const LoaderOverlayLightColorSchemeText = "#19252f";
8852
+ export declare const LoaderOverlayLightColorSchemeCaption = "#6d7a86";
8853
+ export declare const LoaderOverlayDarkColorSchemeBackground = "mix(#19252f, transparent, 90%)";
8854
+ export declare const LoaderOverlayDarkColorSchemeText = "#f2f5f9";
8855
+ export declare const LoaderOverlayDarkColorSchemeCaption = "#8c99a5";
8856
+ export declare const LoaderOverlaySizeTextMaxWidth = "480px";
8857
+ export declare const LoaderOverlaySizeFixedTopPadding = "72px";
8858
+ export declare const LoaderOverlaySizeCenterOpticalCompensation = "-40%";
8859
+ export declare const LoaderOverlayFontText = "body";
8860
+ export declare const LoaderOverlayFontCaption = "caption";
8832
8861
  export declare const ModalLightColorSchemeShadow = "(0 0 0 1px #d7dee4, 0 6px 12px 0 rgba(39, 51, 62, 0.5))";
8833
8862
  export declare const ModalLightColorSchemeBodyTopShadow = "0 2px 4px 0 rgba(39, 51, 62, 0.16)";
8834
8863
  export declare const ModalLightColorSchemeBodyBottomShadow = "0 -2px 4px 0 rgba(39, 51, 62, 0.16)";
@@ -6,6 +6,17 @@ require('./transforms/attribute/typography')(StyleDictionary);
6
6
  require('./transforms/attribute/palette')(StyleDictionary);
7
7
  require('./transforms/attribute/prefix')(StyleDictionary);
8
8
  require('./transforms/attribute/size')(StyleDictionary);
9
+ require('./transforms/attribute/figma-border')(StyleDictionary);
10
+ require('./transforms/attribute/figma-font')(StyleDictionary);
11
+ require('./transforms/attribute/figma-typography')(StyleDictionary);
12
+ require('./transforms/attribute/figma-opacity')(StyleDictionary);
13
+ require('./transforms/attribute/figma-spacing')(StyleDictionary);
14
+ require('./transforms/attribute/figma-sizing')(StyleDictionary);
15
+ require('./transforms/attribute/figma-color')(StyleDictionary);
16
+ require('./transforms/attribute/figma-shadow')(StyleDictionary);
17
+ require('./transforms/attribute/figma-default')(StyleDictionary);
18
+ require('./transforms/attribute/figma-group')(StyleDictionary);
19
+ require('./transforms/value/figma-values')(StyleDictionary);
9
20
 
10
21
  // ==== Include custom filters ====
11
22
  require('./filters/palette')(StyleDictionary);
@@ -17,10 +28,12 @@ require('./filters/typography')(StyleDictionary);
17
28
  require('./transformGroups/scss')(StyleDictionary);
18
29
  require('./transformGroups/css')(StyleDictionary);
19
30
  require('./transformGroups/ts')(StyleDictionary);
31
+ require('./transformGroups/figma')(StyleDictionary);
20
32
 
21
33
  // ==== Include custom formats ====
22
34
  require('./formats/typography')(StyleDictionary);
23
35
  require('./formats/palette')(StyleDictionary);
36
+ require('./formats/figma')(StyleDictionary);
24
37
 
25
38
  // ==== Run build ====
26
39
  console.log('Build started...');
@@ -0,0 +1,11 @@
1
+ module.exports = {
2
+ figma: {
3
+ transformGroup: 'mc/figma',
4
+ files: [
5
+ {
6
+ destination: 'figma-tokens.json',
7
+ format: 'figmaTokensPlugin',
8
+ },
9
+ ],
10
+ },
11
+ };
@@ -1,8 +1,8 @@
1
1
  const merge = require('lodash/merge');
2
-
3
2
  const scssConfig = require('./scss');
4
3
  const jsConfig = require('./js');
5
4
  const cssConfig = require('./css');
5
+ const figmaConfig = require('./figma');
6
6
 
7
7
  const filterObj = {
8
8
  options: {
@@ -29,12 +29,12 @@ function getSources(theme) {
29
29
  }
30
30
 
31
31
  function getConfigs(theme) {
32
-
33
32
  scssConfig.scss.buildPath = theme.outputPath;
34
33
  jsConfig.js.buildPath = theme.outputPath;
35
34
  cssConfig.css.buildPath = theme.outputPath;
35
+ figmaConfig.figma.buildPath = theme.outputPath;
36
36
 
37
- return filterOptions([scssConfig, jsConfig, cssConfig]);
37
+ return filterOptions([scssConfig, jsConfig, cssConfig, figmaConfig]);
38
38
  }
39
39
 
40
40
  module.exports = (theme) => {