@maltjoy/themes 3.1.3 → 3.1.5

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/_tools.scss +1 -119
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maltjoy/themes",
3
- "version": "3.1.3",
3
+ "version": "3.1.5",
4
4
  "description": "Malt design system themes modules based on tokens",
5
5
  "files": [
6
6
  "dist",
package/src/_tools.scss CHANGED
@@ -1,115 +1,5 @@
1
1
  @use 'sass:map';
2
2
 
3
- $OLD_FONTS_MAP: (
4
- xxs: (
5
- fontFamily: var(--joy-font-family),
6
- fontSize: var(--joy-font-size-xxs),
7
- fontWeight: var(--joy-font-weight-normal),
8
- lineHeight: var(--joy-line-height-large)
9
- ),
10
- xxs-bold: (
11
- fontFamily: var(--joy-font-family),
12
- fontSize: var(--joy-font-size-xxs),
13
- fontWeight: var(--joy-font-weight-bold),
14
- lineHeight: var(--joy-line-height-large)
15
- ),
16
- xs: (
17
- fontFamily: var(--joy-font-family),
18
- fontSize: var(--joy-font-size-xs),
19
- fontWeight: var(--joy-font-weight-normal),
20
- lineHeight: var(--joy-line-height-large)
21
- ),
22
- xs-bold: (
23
- fontFamily: var(--joy-font-family),
24
- fontSize: var(--joy-font-size-xs),
25
- fontWeight: var(--joy-font-weight-bold),
26
- lineHeight: var(--joy-line-height-large)
27
- ),
28
- s: (
29
- fontFamily: var(--joy-font-family),
30
- fontSize: var(--joy-font-size-s),
31
- fontWeight: var(--joy-font-weight-normal),
32
- lineHeight: var(--joy-line-height-large)
33
- ),
34
- s-bold: (
35
- fontFamily: var(--joy-font-family),
36
- fontSize: var(--joy-font-size-s),
37
- fontWeight: var(--joy-font-weight-bold),
38
- lineHeight: var(--joy-line-height-large)
39
- ),
40
- m: (
41
- fontFamily: var(--joy-font-family),
42
- fontSize: var(--joy-font-size-m),
43
- fontWeight: var(--joy-font-weight-normal),
44
- lineHeight: var(--joy-line-height-large)
45
- ),
46
- m-bold: (
47
- fontFamily: var(--joy-font-family),
48
- fontSize: var(--joy-font-size-m),
49
- fontWeight: var(--joy-font-weight-bold),
50
- lineHeight: var(--joy-line-height-large)
51
- ),
52
- l: (
53
- fontFamily: var(--joy-font-family),
54
- fontSize: var(--joy-font-size-l),
55
- fontWeight: var(--joy-font-weight-normal),
56
- lineHeight: var(--joy-line-height-large)
57
- ),
58
- l-bold: (
59
- fontFamily: var(--joy-font-family),
60
- fontSize: var(--joy-font-size-l),
61
- fontWeight: var(--joy-font-weight-bold),
62
- lineHeight: var(--joy-line-height-large)
63
- ),
64
- xl: (
65
- fontFamily: var(--joy-font-family-title),
66
- fontSize: var(--joy-font-size-xl),
67
- fontWeight: 500,
68
- lineHeight: var(--joy-line-height-small)
69
- ),
70
- xl-title: (
71
- fontFamily: var(--joy-font-family),
72
- fontSize: var(--joy-font-size-xl),
73
- fontWeight: 500,
74
- fontSizeMobile: var(--joy-font-size-l),
75
- lineHeight: var(--joy-line-height-large)
76
- ),
77
- xl-title-bold: (
78
- fontFamily: var(--joy-font-family),
79
- fontSize: var(--joy-font-size-xl),
80
- fontWeight: 700,
81
- lineHeight: var(--joy-line-height-small)
82
- ),
83
- xxl: (
84
- fontFamily: var(--joy-font-family-title),
85
- fontSize: var(--joy-font-size-2xl),
86
- fontSizeMobile: var(--joy-font-size-2xl-mobile),
87
- fontWeight: 500,
88
- lineHeight: var(--joy-line-height-small)
89
- ),
90
- xxxl: (
91
- fontFamily: var(--joy-font-family-title),
92
- fontSize: var(--joy-font-size-3xl),
93
- fontSizeMobile: var(--joy-font-size-3xl-mobile),
94
- fontWeight: 500,
95
- lineHeight: var(--joy-line-height-small)
96
- ),
97
- xxxxl: (
98
- fontFamily: var(--joy-font-family-title),
99
- fontSize: var(--joy-font-size-4xl),
100
- fontSizeMobile: var(--joy-font-size-4xl-mobile),
101
- fontWeight: 500,
102
- lineHeight: var(--joy-line-height-small)
103
- ),
104
- quote: (
105
- fontFamily: var(--joy-font-family),
106
- fontSize: var(--joy-font-size-quote),
107
- fontSizeMobile: var(--joy-font-size-quote-mobile),
108
- fontWeight: var(--joy-font-weight-bold),
109
- lineHeight: var(--joy-line-height-small)
110
- )
111
- ) !default;
112
-
113
3
  $FONTS_MAP: (
114
4
  /** MODERAT **/
115
5
  primary-100: (
@@ -211,16 +101,8 @@ $FONTS_MAP: (
211
101
  )
212
102
  ) !default;
213
103
 
214
- $ALL_FONTS_MAP: map.merge($OLD_FONTS_MAP, $FONTS_MAP);
215
-
216
104
  @mixin getFontBySize($font: primary-400) {
217
- $fontName: map.get($OLD_FONTS_MAP, $font);
218
-
219
- @if $fontName != null {
220
- @warn 'Wrong keyword. XS, XXS, M, L, XL, 2XL, 3XL, 4XL keywords are deprecated and will be removed in next major release. Look at https://doc.malt.tech/joy-storybook/?path=/story/tokens-fonts--page for new naming convention'
221
- }
222
-
223
- $fontProperties: map-get($ALL_FONTS_MAP, $font);
105
+ $fontProperties: map-get($FONTS_MAP, $font);
224
106
  $fontFamily: map-get($fontProperties, fontFamily);
225
107
  $fontSize: map-get($fontProperties, fontSize);
226
108
  $fontSizeMobile: map-get($fontProperties, fontSizeMobile);