@genexus/mercury 0.6.7 → 0.6.8

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 (40) hide show
  1. package/dist/assets/fonts/Inter-Black.woff2 +0 -0
  2. package/dist/assets/fonts/Inter-BlackItalic.woff2 +0 -0
  3. package/dist/assets/fonts/Inter-Bold.woff2 +0 -0
  4. package/dist/assets/fonts/Inter-BoldItalic.woff2 +0 -0
  5. package/dist/assets/fonts/Inter-ExtraBold.woff2 +0 -0
  6. package/dist/assets/fonts/Inter-ExtraBoldItalic.woff2 +0 -0
  7. package/dist/assets/fonts/Inter-ExtraLight.woff2 +0 -0
  8. package/dist/assets/fonts/Inter-ExtraLightItalic.woff2 +0 -0
  9. package/dist/assets/fonts/Inter-Italic.woff2 +0 -0
  10. package/dist/assets/fonts/Inter-Light.woff2 +0 -0
  11. package/dist/assets/fonts/Inter-LightItalic.woff2 +0 -0
  12. package/dist/assets/fonts/Inter-Medium.woff2 +0 -0
  13. package/dist/assets/fonts/Inter-MediumItalic.woff2 +0 -0
  14. package/dist/assets/fonts/Inter-Regular.woff2 +0 -0
  15. package/dist/assets/fonts/Inter-SemiBold.woff2 +0 -0
  16. package/dist/assets/fonts/Inter-SemiBoldItalic.woff2 +0 -0
  17. package/dist/assets/fonts/Inter-Thin.woff2 +0 -0
  18. package/dist/assets/fonts/Inter-ThinItalic.woff2 +0 -0
  19. package/dist/bundles/css/all.css +1 -1
  20. package/dist/bundles/css/base/base.css +1 -1
  21. package/dist/bundles/css/components/accordion.css +1 -1
  22. package/dist/bundles/css/components/icon.css +1 -0
  23. package/dist/bundles/css/components/markdown-viewer.css +1 -1
  24. package/dist/bundles/css/utils/form--full.css +1 -1
  25. package/dist/bundles/css/utils/typography.css +1 -1
  26. package/dist/bundles/scss/components/icon.scss +8 -0
  27. package/dist/bundles/scss/utils/form--full.scss +2 -0
  28. package/dist/bundles.d.ts +9 -1
  29. package/dist/bundles.js +1 -0
  30. package/dist/mercury.scss +282 -37
  31. package/package.json +1 -1
  32. package/dist/assets/fonts/Inter_Black.woff2 +0 -0
  33. package/dist/assets/fonts/Inter_Bold.woff2 +0 -0
  34. package/dist/assets/fonts/Inter_ExtraBold.woff2 +0 -0
  35. package/dist/assets/fonts/Inter_ExtraLight.woff2 +0 -0
  36. package/dist/assets/fonts/Inter_Light.woff2 +0 -0
  37. package/dist/assets/fonts/Inter_Medium.woff2 +0 -0
  38. package/dist/assets/fonts/Inter_Regular.woff2 +0 -0
  39. package/dist/assets/fonts/Inter_SemiBold.woff2 +0 -0
  40. package/dist/assets/fonts/Inter_Thin.woff2 +0 -0
package/dist/mercury.scss CHANGED
@@ -1235,6 +1235,7 @@
1235
1235
  --mer-font__weight--extra-bold: 800;
1236
1236
 
1237
1237
  // sizes
1238
+ --mer-font__size--4xs: 11px;
1238
1239
  --mer-font__size--3xs: 12px;
1239
1240
  --mer-font__size--2xs: 13px;
1240
1241
  --mer-font__size--xs: 14px;
@@ -2892,54 +2893,61 @@
2892
2893
  }
2893
2894
  }
2894
2895
 
2895
- @mixin heading-tokens() {
2896
+ @mixin heading-font-tokens() {
2896
2897
  // heading base
2897
2898
  --heading-base__font-family: var(--mer-font-family--title);
2898
2899
  --heading__color: var(
2899
2900
  --mer-heading__gray--light
2900
- ); //this forces the user to apply an allowed heading color.
2901
+ ); // this forces the user to apply an allowed heading color.
2901
2902
 
2902
- //h1
2903
+ // h1
2903
2904
  --heading-h1__font-size: var(--mer-font__size--xl);
2904
2905
  --heading-h1__font-weight: var(--mer-font__weight--bold);
2905
2906
  --heading-h1__line-height: var(--mer-line-height--tight);
2906
- //h2
2907
+ // h2
2907
2908
  --heading-h2__font-size: var(--mer-font__size--lg);
2908
2909
  --heading-h2__font-weight: var(--mer-font__weight--bold);
2909
2910
  --heading-h2__line-height: var(--mer-line-height--tight);
2910
- //h3
2911
+ // h3
2911
2912
  --heading-h3__font-size: var(--mer-font__size--sm);
2912
2913
  --heading-h3__font-weight: var(--mer-font__weight--bold);
2913
2914
  --heading-h3__line-height: var(--mer-line-height--regular);
2914
- //h4
2915
+ // h4
2915
2916
  --heading-h4__font-size: var(--mer-font__size--xs);
2916
2917
  --heading-h4__font-weight: var(--mer-font__weight--bold);
2917
2918
  --heading-h4__line-height: var(--mer-line-height--spaced);
2918
- //h5
2919
+ // h5
2919
2920
  --heading-h5__font-size: var(--mer-font__size--2xs);
2920
2921
  --heading-h5__font-weight: var(--mer-font__weight--bold);
2921
2922
  --heading-h5__line-height: var(--mer-line-height--spaced);
2922
- //h6
2923
+ // h6
2923
2924
  --heading-h6__font-size: var(--mer-font__size--3xs);
2924
2925
  --heading-h6__font-weight: var(--mer-font__weight--semi-bold);
2925
2926
  --heading-h6__line-height: var(--mer-line-height--spaced);
2926
2927
  }
2927
2928
 
2928
- @mixin body-tokens() {
2929
- --text-body__font-size: var(--mer-font__size--xs);
2930
- --text-body__font-family: var(--mer-body__font-family);
2931
- --text-body__font-weight: var(--mer-body__font-weight);
2932
- --text-body__line-height: var(--mer-body__line-height);
2933
- --text-body__margin-block: var(--mer-body__margin-block);
2929
+ @mixin body-font-tokens() {
2930
+ // Generic
2931
+ --text-body__font-size--l: var(--mer-font__size--sm);
2932
+ --text-body__font-size--m: var(--mer-font__size--xs);
2933
+ --text-body__font-size--s: var(--mer-font__size--3xs);
2934
+ --text-body__font-size--xs: var(--mer-font__size--4xs);
2935
+ --text-body__line-height: var(--mer-line-height--spaced);
2936
+ // Regular
2937
+ --text-body-regular__font-weight: var(--mer-font__weight--regular);
2938
+ // Highlighted
2939
+ --text-body-highlighted__font-weight: var(--mer-font__weight--semi-bold);
2940
+ // Italic
2941
+ --text-body-italic__font-weight: var(--mer-font__weight--regular);
2934
2942
  }
2935
2943
 
2936
- @mixin tab-tokens() {
2944
+ @mixin tab-font-tokens() {
2937
2945
  --text-tab__font-family: var(--mer-font-family--inter-regular);
2938
2946
  --text-tab__font-size: var(--mer-font__size--3xs);
2939
2947
  --text-tab__line-height: var(--mer-line-height--regular);
2940
2948
  }
2941
2949
 
2942
- @mixin button-tokens() {
2950
+ @mixin button-font-tokens() {
2943
2951
  --text-button__font-family: var(--mer-font-family--inter-regular);
2944
2952
  --text-button__font-size: var(--mer-font__size--3xs);
2945
2953
  --text-button__line-height: var(--mer-line-height--regular);
@@ -2947,7 +2955,7 @@
2947
2955
  --text-button__font-weight--regular: var(--mer-font__weight--regular);
2948
2956
  }
2949
2957
 
2950
- @mixin tooltip-tokens() {
2958
+ @mixin tooltip-font-tokens() {
2951
2959
  --mer-text-tooltip__font-family: var(--mer-font-family--body);
2952
2960
  --mer-text-tooltip__font-size: var(--mer-font-size--2xs);
2953
2961
  }
@@ -2959,7 +2967,7 @@
2959
2967
 
2960
2968
  %heading {
2961
2969
  &-base {
2962
- @include heading-tokens();
2970
+ @include heading-font-tokens();
2963
2971
  font-family: var(--mer-font-family--title);
2964
2972
  line-height: var(--mer-line-height--tight);
2965
2973
  color: var(--heading__color);
@@ -3020,16 +3028,96 @@
3020
3028
 
3021
3029
  // body
3022
3030
  %text-body {
3023
- @include body-tokens();
3024
- font-size: var(--text-body__font-size);
3025
- font-family: var(--text-body__font-family);
3026
- font-weight: var(--text-body__font-weight);
3027
- line-height: var(--text-body__line-height);
3031
+ &-base {
3032
+ @include body-font-tokens();
3033
+ }
3034
+ &-regular {
3035
+ &-l {
3036
+ @extend %text-body-base;
3037
+ font-size: var(--text-body__font-size--l);
3038
+ font-weight: var(--text-body-regular__font-weight);
3039
+ line-height: var(--text-body__line-height);
3040
+ }
3041
+ &-m {
3042
+ @extend %text-body-base;
3043
+ font-size: var(--text-body__font-size--m);
3044
+ font-weight: var(--text-body-regular__font-weight);
3045
+ line-height: var(--text-body__line-height);
3046
+ }
3047
+ &-s {
3048
+ @extend %text-body-base;
3049
+ font-size: var(--text-body__font-size--s);
3050
+ font-weight: var(--text-body-regular__font-weight);
3051
+ line-height: var(--text-body__line-height);
3052
+ }
3053
+ &-xs {
3054
+ @extend %text-body-base;
3055
+ font-size: var(--text-body__font-size--xs);
3056
+ font-weight: var(--text-body-regular__font-weight);
3057
+ line-height: var(--text-body__line-height);
3058
+ }
3059
+ }
3060
+ &-highlighted {
3061
+ &-l {
3062
+ @extend %text-body-base;
3063
+ font-size: var(--text-body__font-size--l);
3064
+ font-weight: var(--text-body-highlighted__font-weight);
3065
+ line-height: var(--text-body__line-height);
3066
+ }
3067
+ &-m {
3068
+ @extend %text-body-base;
3069
+ font-size: var(--text-body__font-size--m);
3070
+ font-weight: var(--text-body-highlighted__font-weight);
3071
+ line-height: var(--text-body__line-height);
3072
+ }
3073
+ &-s {
3074
+ @extend %text-body-base;
3075
+ font-size: var(--text-body__font-size--s);
3076
+ font-weight: var(--text-body-highlighted__font-weight);
3077
+ line-height: var(--text-body__line-height);
3078
+ }
3079
+ &-xs {
3080
+ @extend %text-body-base;
3081
+ font-size: var(--text-body__font-size--xs);
3082
+ font-weight: var(--text-body-highlighted__font-weight);
3083
+ line-height: var(--text-body__line-height);
3084
+ }
3085
+ }
3086
+ &-italic {
3087
+ &-l {
3088
+ @extend %text-body-base;
3089
+ font-size: var(--text-body__font-size--l);
3090
+ font-style: italic;
3091
+ font-weight: var(--text-body-italic__font-weight);
3092
+ line-height: var(--text-body__line-height);
3093
+ }
3094
+ &-m {
3095
+ @extend %text-body-base;
3096
+ font-size: var(--text-body__font-size--m);
3097
+ font-style: italic;
3098
+ font-weight: var(--text-body-italic__font-weight);
3099
+ line-height: var(--text-body__line-height);
3100
+ }
3101
+ &-s {
3102
+ @extend %text-body-base;
3103
+ font-size: var(--text-body__font-size--s);
3104
+ font-style: italic;
3105
+ font-weight: var(--text-body-italic__font-weight);
3106
+ line-height: var(--text-body__line-height);
3107
+ }
3108
+ &-xs {
3109
+ @extend %text-body-base;
3110
+ font-size: var(--text-body__font-size--xs);
3111
+ font-style: italic;
3112
+ font-weight: var(--text-body-italic__font-weight);
3113
+ line-height: var(--text-body__line-height);
3114
+ }
3115
+ }
3028
3116
  }
3029
3117
 
3030
3118
  // tab
3031
3119
  %tab-text {
3032
- @include tab-tokens();
3120
+ @include tab-font-tokens();
3033
3121
  font-family: var(--text-tab__font-family);
3034
3122
  font-size: var(--text-tab__font-size);
3035
3123
  line-height: var(--text-tab__line-height);
@@ -3037,7 +3125,7 @@
3037
3125
 
3038
3126
  // button
3039
3127
  %button-text {
3040
- @include button-tokens();
3128
+ @include button-font-tokens();
3041
3129
  font-family: var(--text-button__font-family);
3042
3130
  font-size: var(--text-button__font-size);
3043
3131
  line-height: var(--text-button__line-height);
@@ -3054,7 +3142,7 @@
3054
3142
 
3055
3143
  // tooltip
3056
3144
  %tooltip-text {
3057
- @include tooltip-tokens();
3145
+ @include tooltip-font-tokens();
3058
3146
  font-family: var(--mer-text-tooltip__font-family);
3059
3147
  font-size: var(--mer-text-tooltip__font-size);
3060
3148
  }
@@ -3067,7 +3155,19 @@
3067
3155
  /// @param {String} $heading-5-selector [".heading-5"] -
3068
3156
  /// @param {String} $heading-6-selector [".heading-6"] -
3069
3157
  /// @param {String} $heading-color__gray-light-selector [".heading-gray--light"] -
3070
- /// @param {String} $text-body-selector [".text--body"] -
3158
+ /// @param {String} $text-body-regular-l-selector [".text-body-regular-l"] -
3159
+ /// @param {String} $text-body-regular-m-selector [".text-body-regular-m"] -
3160
+ /// @param {String} $text-body-regular-s-selector [".text-body-regular-s"] -
3161
+ /// @param {String} $text-body-regular-xs-selector [".text-body-regular-xs"] -
3162
+ /// @param {String} $text-body-highlighted-l-selector [".text-body-highlighted-l"] -
3163
+ /// @param {String} $text-body-highlighted-m-selector [".text-body-highlighted-m"] -
3164
+ /// @param {String} $text-body-highlighted-s-selector [".text-body-highlighted-s"] -
3165
+ /// @param {String} $text-body-highlighted-xs-selector [".text-body-highlighted-xs"] -
3166
+ /// @param {String} $text-body-italic-l-selector [".text-body-italic-l"] -
3167
+ /// @param {String} $text-body-italic-m-selector [".text-body-italic-m"] -
3168
+ /// @param {String} $text-body-italic-s-selector [".text-body-italic-s"] -
3169
+ /// @param {String} $text-body-italic-xs-selector [".text-body-italic-xs"] -
3170
+
3071
3171
  @mixin typography-classes(
3072
3172
  $heading-1-selector: ".heading-1",
3073
3173
  $heading-2-selector: ".heading-2",
@@ -3076,8 +3176,21 @@
3076
3176
  $heading-5-selector: ".heading-5",
3077
3177
  $heading-6-selector: ".heading-6",
3078
3178
  $heading-color__gray-light-selector: ".heading-gray--light",
3079
- $text-body-selector: ".text-body"
3179
+ $text-body-regular-l-selector: ".text-body-regular-l",
3180
+ $text-body-regular-m-selector: ".text-body-regular-m",
3181
+ $text-body-regular-s-selector: ".text-body-regular-s",
3182
+ $text-body-regular-xs-selector: ".text-body-regular-xs",
3183
+ $text-body-highlighted-l-selector: ".text-body-highlighted-l",
3184
+ $text-body-highlighted-m-selector: ".text-body-highlighted-m",
3185
+ $text-body-highlighted-s-selector: ".text-body-highlighted-s",
3186
+ $text-body-highlighted-xs-selector: ".text-body-highlighted-xs",
3187
+ $text-body-italic-l-selector: ".text-body-italic-l",
3188
+ $text-body-italic-m-selector: ".text-body-italic-m",
3189
+ $text-body-italic-s-selector: ".text-body-italic-s",
3190
+ $text-body-italic-xs-selector: ".text-body-italic-xs"
3080
3191
  ) {
3192
+ // headings
3193
+
3081
3194
  #{$heading-1-selector} {
3082
3195
  @extend %heading-1;
3083
3196
  }
@@ -3106,8 +3219,54 @@
3106
3219
  @extend %heading-color__gray--light;
3107
3220
  }
3108
3221
 
3109
- #{$text-body-selector} {
3110
- @extend %text-body;
3222
+ // body
3223
+
3224
+ #{$text-body-regular-l-selector} {
3225
+ @extend %text-body-regular-l;
3226
+ }
3227
+
3228
+ #{$text-body-regular-m-selector} {
3229
+ @extend %text-body-regular-m;
3230
+ }
3231
+
3232
+ #{$text-body-regular-s-selector} {
3233
+ @extend %text-body-regular-s;
3234
+ }
3235
+
3236
+ #{$text-body-regular-xs-selector} {
3237
+ @extend %text-body-regular-xs;
3238
+ }
3239
+
3240
+ #{$text-body-highlighted-l-selector} {
3241
+ @extend %text-body-highlighted-l;
3242
+ }
3243
+
3244
+ #{$text-body-highlighted-m-selector} {
3245
+ @extend %text-body-highlighted-m;
3246
+ }
3247
+
3248
+ #{$text-body-highlighted-s-selector} {
3249
+ @extend %text-body-highlighted-s;
3250
+ }
3251
+
3252
+ #{$text-body-highlighted-xs-selector} {
3253
+ @extend %text-body-highlighted-xs;
3254
+ }
3255
+
3256
+ #{$text-body-italic-l-selector} {
3257
+ @extend %text-body-italic-l;
3258
+ }
3259
+
3260
+ #{$text-body-italic-m-selector} {
3261
+ @extend %text-body-italic-m;
3262
+ }
3263
+
3264
+ #{$text-body-italic-s-selector} {
3265
+ @extend %text-body-italic-s;
3266
+ }
3267
+
3268
+ #{$text-body-italic-xs-selector} {
3269
+ @extend %text-body-italic-xs;
3111
3270
  }
3112
3271
  }
3113
3272
 
@@ -15653,45 +15812,131 @@
15653
15812
  // - - - - - - - - - - - - - - - - - - - -
15654
15813
  // font-face
15655
15814
  @if $font-face {
15815
+ // Thin
15816
+ @font-face {
15817
+ font-family: "Inter";
15818
+ src: url("#{$font-face-path}Inter-Thin.woff2");
15819
+ font-weight: 100;
15820
+ font-style: normal;
15821
+ }
15822
+ @font-face {
15823
+ font-family: "Inter";
15824
+ src: url("#{$font-face-path}Inter-ThinItalic.woff2");
15825
+ font-weight: 100;
15826
+ font-style: italic;
15827
+ }
15828
+
15829
+ // ExtraLight
15830
+ @font-face {
15831
+ font-family: "Inter";
15832
+ src: url("#{$font-face-path}Inter-ExtraLight.woff2");
15833
+ font-weight: 200;
15834
+ font-style: normal;
15835
+ }
15836
+ @font-face {
15837
+ font-family: "Inter";
15838
+ src: url("#{$font-face-path}Inter-ExtraLightItalic.woff2");
15839
+ font-weight: 200;
15840
+ font-style: italic;
15841
+ }
15842
+
15656
15843
  // Light
15657
15844
  @font-face {
15658
15845
  font-family: "Inter";
15659
- src: url("#{$font-face-path}Inter_Light.woff2");
15846
+ src: url("#{$font-face-path}Inter-Light.woff2");
15660
15847
  font-weight: 300;
15661
15848
  font-style: normal;
15662
15849
  }
15850
+ @font-face {
15851
+ font-family: "Inter";
15852
+ src: url("#{$font-face-path}Inter-LightItalic.woff2");
15853
+ font-weight: 300;
15854
+ font-style: italic;
15855
+ }
15663
15856
 
15664
15857
  // Regular
15665
15858
  @font-face {
15666
15859
  font-family: "Inter";
15667
- src: url("#{$font-face-path}Inter_Regular.woff2");
15860
+ src: url("#{$font-face-path}Inter-Regular.woff2");
15668
15861
  font-weight: 400;
15669
15862
  font-style: normal;
15670
15863
  }
15864
+ @font-face {
15865
+ font-family: "Inter";
15866
+ src: url("#{$font-face-path}Inter-Italic.woff2");
15867
+ font-weight: 400;
15868
+ font-style: italic;
15869
+ }
15870
+
15871
+ // Medium
15872
+ @font-face {
15873
+ font-family: "Inter";
15874
+ src: url("#{$font-face-path}Inter-Medium.woff2");
15875
+ font-weight: 500;
15876
+ font-style: normal;
15877
+ }
15878
+ @font-face {
15879
+ font-family: "Inter";
15880
+ src: url("#{$font-face-path}Inter-MediumItalic.woff2");
15881
+ font-weight: 500;
15882
+ font-style: italic;
15883
+ }
15671
15884
 
15672
- // Semi Bold
15885
+ // SemiBold
15673
15886
  @font-face {
15674
15887
  font-family: "Inter";
15675
- src: url("#{$font-face-path}Inter_SemiBold.woff2");
15888
+ src: url("#{$font-face-path}Inter-SemiBold.woff2");
15676
15889
  font-weight: 600;
15677
15890
  font-style: normal;
15678
15891
  }
15892
+ @font-face {
15893
+ font-family: "Inter";
15894
+ src: url("#{$font-face-path}Inter-SemiBoldItalic.woff2");
15895
+ font-weight: 600;
15896
+ font-style: italic;
15897
+ }
15679
15898
 
15680
15899
  // Bold
15681
15900
  @font-face {
15682
15901
  font-family: "Inter";
15683
- src: url("#{$font-face-path}Inter_Bold.woff2");
15902
+ src: url("#{$font-face-path}Inter-Bold.woff2");
15684
15903
  font-weight: 700;
15685
15904
  font-style: normal;
15686
15905
  }
15906
+ @font-face {
15907
+ font-family: "Inter";
15908
+ src: url("#{$font-face-path}Inter-BoldItalic.woff2");
15909
+ font-weight: 700;
15910
+ font-style: italic;
15911
+ }
15687
15912
 
15688
- // Extra Bold
15913
+ // ExtraBold
15914
+ @font-face {
15915
+ font-family: "Inter";
15916
+ src: url("#{$font-face-path}Inter-ExtraBold.woff2");
15917
+ font-weight: 800;
15918
+ font-style: normal;
15919
+ }
15689
15920
  @font-face {
15690
15921
  font-family: "Inter";
15691
- src: url("#{$font-face-path}Inter_ExtraBold.woff2");
15922
+ src: url("#{$font-face-path}Inter-ExtraBoldItalic.woff2");
15692
15923
  font-weight: 800;
15924
+ font-style: italic;
15925
+ }
15926
+
15927
+ // Black
15928
+ @font-face {
15929
+ font-family: "Inter";
15930
+ src: url("#{$font-face-path}Inter-Black.woff2");
15931
+ font-weight: 900;
15693
15932
  font-style: normal;
15694
15933
  }
15934
+ @font-face {
15935
+ font-family: "Inter";
15936
+ src: url("#{$font-face-path}Inter-BlackItalic.woff2");
15937
+ font-weight: 900;
15938
+ font-style: italic;
15939
+ }
15695
15940
  }
15696
15941
 
15697
15942
  // - - - - - - - - - - - - - - - - - - - -
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@genexus/mercury",
3
- "version": "0.6.7",
3
+ "version": "0.6.8",
4
4
  "description": "Mercury is the design system designed for GeneXus IDE Web and GeneXus Next",
5
5
  "main": "dist/mercury.scss",
6
6
  "module": "dist/assets-manager.js",
Binary file
Binary file
Binary file
Binary file