@roblexperu/style 1.1.9 → 1.2.0

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 (56) hide show
  1. package/README.md +1 -1
  2. package/package.json +10 -11
  3. package/public/css/roblex-style.css +4 -4
  4. package/public/css/roblex-style.css.map +1 -1
  5. package/scripts/normalize-css.js +6 -0
  6. package/scripts/version-update.js +1 -1
  7. package/src/atoms/_avatar.scss +8 -5
  8. package/src/atoms/_buttons.scss +36 -33
  9. package/src/atoms/_check-radio.scss +5 -3
  10. package/src/atoms/_index.scss +10 -10
  11. package/src/atoms/_inputs.scss +19 -16
  12. package/src/atoms/_radio-button.scss +4 -2
  13. package/src/atoms/_toggle-button.scss +4 -2
  14. package/src/icons/_index.scss +1 -1
  15. package/src/main.scss +9 -9
  16. package/src/mixins/_flexbox.scss +4 -2
  17. package/src/mixins/_fonts.scss +41 -14
  18. package/src/mixins/_index.scss +3 -3
  19. package/src/mixins/_media.scss +7 -5
  20. package/src/organisms/_calculate.scss +18 -15
  21. package/src/organisms/_card.scss +4 -2
  22. package/src/organisms/_dropdown.scss +15 -11
  23. package/src/organisms/_footer.scss +24 -20
  24. package/src/organisms/_header-collapsed-sidepanel.scss +3 -1
  25. package/src/organisms/_header.scss +6 -3
  26. package/src/organisms/_index.scss +14 -14
  27. package/src/organisms/_modal.scss +9 -6
  28. package/src/organisms/_navbar-header.scss +6 -3
  29. package/src/organisms/_schedule-notifications.scss +3 -1
  30. package/src/organisms/_snack-bar.scss +5 -3
  31. package/src/organisms/_steps.scss +13 -9
  32. package/src/organisms/_trading-calculator.scss +18 -13
  33. package/src/pages/_accounts.scss +8 -4
  34. package/src/pages/_authentication.scss +3 -1
  35. package/src/pages/_changes.scss +17 -13
  36. package/src/pages/_index.scss +6 -6
  37. package/src/pages/_operations.scss +41 -37
  38. package/src/pages/_profile.scss +16 -12
  39. package/src/typography/_colors.scss +3 -1
  40. package/src/typography/_font-family.scss +6 -3
  41. package/src/typography/_index.scss +6 -6
  42. package/src/typography/_maax.scss +4 -1
  43. package/src/typography/_publica-sans-round-sizing.scss +4 -1
  44. package/src/typography/_publica-sans-round.scss +5 -1
  45. package/src/typography/_roblex-icons.scss +12 -9
  46. package/src/utility/_authentication.scss +4 -2
  47. package/src/utility/_display.scss +13 -5
  48. package/src/utility/_flex-grid.scss +5 -2
  49. package/src/utility/_index.scss +5 -5
  50. package/src/utility/_page.scss +9 -6
  51. package/src/utility/_sweet-alert.scss +36 -32
  52. package/src/vars/_flexbox.scss +4 -2
  53. package/src/vars/_index.scss +4 -4
  54. package/test/sass/flexbox.test.scss +164 -161
  55. package/test/sass/fonts.test.scss +47 -44
  56. package/test/sass/media.test.scss +38 -35
@@ -1,16 +1,19 @@
1
- @import '../../node_modules/sass-true/sass/true';
2
- @import '../../src/vars/breakpoint';
3
- @import '../../src/mixins/media';
4
- @import '../../src/mixins/fonts';
5
-
6
- @include describe('font-face mixin') {
7
- @include it('emits a single @font-face rule with an EOT primary src and a full-format src fallback list') {
8
- @include assert {
9
- @include output {
10
- @include font-face('https://cdn.example.com', 'Maax-Bold', 'Maax', 'Maax-Bold');
1
+ @use '../../node_modules/sass-true/sass/report';
2
+ @use '../../src/vars/breakpoint';
3
+ @use '../../src/mixins/media';
4
+ @use '../../src/mixins/fonts';
5
+ @use "../../node_modules/sass-true/sass/assert";
6
+ @use "../../node_modules/sass-true/sass/module";
7
+ @use "../../node_modules/sass-true/sass/test";
8
+
9
+ @include module.describe('font-face mixin') {
10
+ @include test.it('emits a single @font-face rule with an EOT primary src and a full-format src fallback list') {
11
+ @include assert.assert {
12
+ @include assert.output {
13
+ @include fonts.font-face('https://cdn.example.com', 'Maax-Bold', 'Maax', 'Maax-Bold');
11
14
  }
12
15
 
13
- @include expect {
16
+ @include assert.expect {
14
17
  @font-face {
15
18
  font-family: "Maax-Bold";
16
19
  src: url("https://cdn.example.com/fonts/Maax/Maax-Bold.eot");
@@ -23,13 +26,13 @@
23
26
  }
24
27
  }
25
28
 
26
- @include it('accepts a custom weight and style') {
27
- @include assert {
28
- @include output {
29
- @include font-face('https://cdn.example.com', 'Maax-Bold', 'Maax', 'Maax-Bold', bold, italic);
29
+ @include test.it('accepts a custom weight and style') {
30
+ @include assert.assert {
31
+ @include assert.output {
32
+ @include fonts.font-face('https://cdn.example.com', 'Maax-Bold', 'Maax', 'Maax-Bold', bold, italic);
30
33
  }
31
34
 
32
- @include expect {
35
+ @include assert.expect {
33
36
  @font-face {
34
37
  font-family: "Maax-Bold";
35
38
  src: url("https://cdn.example.com/fonts/Maax/Maax-Bold.eot");
@@ -43,7 +46,7 @@
43
46
  }
44
47
  }
45
48
 
46
- @include describe('font-face-for-fonts mixin') {
49
+ @include module.describe('font-face-for-fonts mixin') {
47
50
  $test-fonts: (
48
51
  Maax: (),
49
52
  Maax-Bold: (
@@ -53,13 +56,13 @@
53
56
  )
54
57
  );
55
58
 
56
- @include it('emits one @font-face per font, defaulting the family name to the map key and weight/style to normal') {
57
- @include assert {
58
- @include output {
59
- @include font-face-for-fonts('/assets', 'Maax', $test-fonts);
59
+ @include test.it('emits one @font-face per font, defaulting the family name to the map key and weight/style to normal') {
60
+ @include assert.assert {
61
+ @include assert.output {
62
+ @include fonts.font-face-for-fonts('/assets', 'Maax', $test-fonts);
60
63
  }
61
64
 
62
- @include expect {
65
+ @include assert.expect {
63
66
  @font-face {
64
67
  font-family: "Maax";
65
68
  src: url("/assets/fonts/Maax/Maax.eot");
@@ -82,18 +85,18 @@
82
85
  }
83
86
  }
84
87
 
85
- @include describe('font-family-size mixin') {
88
+ @include module.describe('font-family-size mixin') {
86
89
  $size: (
87
90
  size: 18px
88
91
  );
89
92
 
90
- @include it('builds an unprefixed class selector from font-name, description, and size-attribute') {
91
- @include assert {
92
- @include output {
93
- @include font-family-size('Publica Sans Round', 'Bold', $size, 'publica-sans-round', 'bold', 'text-sm', bold);
93
+ @include test.it('builds an unprefixed class selector from font-name, description, and size-attribute') {
94
+ @include assert.assert {
95
+ @include assert.output {
96
+ @include fonts.font-family-size('Publica Sans Round', 'Bold', $size, 'publica-sans-round', 'bold', 'text-sm', bold);
94
97
  }
95
98
 
96
- @include expect {
99
+ @include assert.expect {
97
100
  .publica-sans-round-bold-text-sm {
98
101
  font-family: "Publica Sans Round";
99
102
  font-size: 18px;
@@ -106,13 +109,13 @@
106
109
  }
107
110
  }
108
111
 
109
- @include it('prefixes the class with the breakpoint and appends the type suffix to font-size when given') {
110
- @include assert {
111
- @include output {
112
- @include font-family-size('Publica Sans Round', 'Bold', $size, 'publica-sans-round', 'bold', 'text-sm', bold, normal, 'xs', !important);
112
+ @include test.it('prefixes the class with the breakpoint and appends the type suffix to font-size when given') {
113
+ @include assert.assert {
114
+ @include assert.output {
115
+ @include fonts.font-family-size('Publica Sans Round', 'Bold', $size, 'publica-sans-round', 'bold', 'text-sm', bold, normal, 'xs', !important);
113
116
  }
114
117
 
115
- @include expect {
118
+ @include assert.expect {
116
119
  .xs-publica-sans-round-bold-text-sm {
117
120
  font-family: "Publica Sans Round";
118
121
  font-size: 18px !important;
@@ -125,19 +128,19 @@
125
128
  }
126
129
  }
127
130
 
128
- @include it('reads line-height and letter-spacing from the size map when present') {
131
+ @include test.it('reads line-height and letter-spacing from the size map when present') {
129
132
  $size-with-metrics: (
130
133
  size: 18px,
131
134
  line: 24px,
132
135
  spacing: 0.5px
133
136
  );
134
137
 
135
- @include assert {
136
- @include output {
137
- @include font-family-size('Publica Sans Round', 'Bold', $size-with-metrics, 'publica-sans-round', 'bold', 'text-sm', bold);
138
+ @include assert.assert {
139
+ @include assert.output {
140
+ @include fonts.font-family-size('Publica Sans Round', 'Bold', $size-with-metrics, 'publica-sans-round', 'bold', 'text-sm', bold);
138
141
  }
139
142
 
140
- @include expect {
143
+ @include assert.expect {
141
144
  .publica-sans-round-bold-text-sm {
142
145
  font-family: "Publica Sans Round";
143
146
  font-size: 18px;
@@ -151,7 +154,7 @@
151
154
  }
152
155
  }
153
156
 
154
- @include describe('font-sizing mixin') {
157
+ @include module.describe('font-sizing mixin') {
155
158
  $test-fonts: (
156
159
  Bold: (
157
160
  name: 'Publica Sans Round',
@@ -167,13 +170,13 @@
167
170
  )
168
171
  );
169
172
 
170
- @include it('emits an unprefixed class plus a breakpoint-prefixed !important variant for every registered breakpoint') {
171
- @include assert {
172
- @include output {
173
- @include font-sizing('publica-sans-round', $test-sizing, $test-fonts);
173
+ @include test.it('emits an unprefixed class plus a breakpoint-prefixed !important variant for every registered breakpoint') {
174
+ @include assert.assert {
175
+ @include assert.output {
176
+ @include fonts.font-sizing('publica-sans-round', $test-sizing, $test-fonts);
174
177
  }
175
178
 
176
- @include expect {
179
+ @include assert.expect {
177
180
  .publica-sans-round-bold-text-sm {
178
181
  font-family: "Publica Sans Round";
179
182
  font-size: 18px;
@@ -1,17 +1,20 @@
1
- @import '../../node_modules/sass-true/sass/true';
2
- @import '../../src/vars/breakpoint';
3
- @import '../../src/mixins/media';
1
+ @use '../../node_modules/sass-true/sass/report';
2
+ @use '../../src/vars/breakpoint';
3
+ @use '../../src/mixins/media';
4
+ @use "../../node_modules/sass-true/sass/assert";
5
+ @use "../../node_modules/sass-true/sass/module";
6
+ @use "../../node_modules/sass-true/sass/test";
4
7
 
5
- @include describe('breakpoint mixins') {
6
- @include it('xs wraps content in a max-width media query using $xs') {
7
- @include assert {
8
- @include output {
9
- @include xs {
8
+ @include module.describe('breakpoint mixins') {
9
+ @include test.it('xs wraps content in a max-width media query using $xs') {
10
+ @include assert.assert {
11
+ @include assert.output {
12
+ @include media.xs {
10
13
  color: red;
11
14
  }
12
15
  }
13
16
 
14
- @include expect {
17
+ @include assert.expect {
15
18
  @media only screen and (max-width: 480px) {
16
19
  color: red;
17
20
  }
@@ -19,15 +22,15 @@
19
22
  }
20
23
  }
21
24
 
22
- @include it('sm wraps content in a max-width media query using $sm') {
23
- @include assert {
24
- @include output {
25
- @include sm {
25
+ @include test.it('sm wraps content in a max-width media query using $sm') {
26
+ @include assert.assert {
27
+ @include assert.output {
28
+ @include media.sm {
26
29
  color: red;
27
30
  }
28
31
  }
29
32
 
30
- @include expect {
33
+ @include assert.expect {
31
34
  @media only screen and (max-width: 776px) {
32
35
  color: red;
33
36
  }
@@ -35,15 +38,15 @@
35
38
  }
36
39
  }
37
40
 
38
- @include it('md wraps content in a max-width media query using $md') {
39
- @include assert {
40
- @include output {
41
- @include md {
41
+ @include test.it('md wraps content in a max-width media query using $md') {
42
+ @include assert.assert {
43
+ @include assert.output {
44
+ @include media.md {
42
45
  color: red;
43
46
  }
44
47
  }
45
48
 
46
- @include expect {
49
+ @include assert.expect {
47
50
  @media only screen and (max-width: 768px) {
48
51
  color: red;
49
52
  }
@@ -51,15 +54,15 @@
51
54
  }
52
55
  }
53
56
 
54
- @include it('lg wraps content in a max-width media query using $lg') {
55
- @include assert {
56
- @include output {
57
- @include lg {
57
+ @include test.it('lg wraps content in a max-width media query using $lg') {
58
+ @include assert.assert {
59
+ @include assert.output {
60
+ @include media.lg {
58
61
  color: red;
59
62
  }
60
63
  }
61
64
 
62
- @include expect {
65
+ @include assert.expect {
63
66
  @media only screen and (max-width: 992px) {
64
67
  color: red;
65
68
  }
@@ -67,15 +70,15 @@
67
70
  }
68
71
  }
69
72
 
70
- @include it('xl wraps content in a max-width media query using $xl') {
71
- @include assert {
72
- @include output {
73
- @include xl {
73
+ @include test.it('xl wraps content in a max-width media query using $xl') {
74
+ @include assert.assert {
75
+ @include assert.output {
76
+ @include media.xl {
74
77
  color: red;
75
78
  }
76
79
  }
77
80
 
78
- @include expect {
81
+ @include assert.expect {
79
82
  @media only screen and (max-width: 1300px) {
80
83
  color: red;
81
84
  }
@@ -84,16 +87,16 @@
84
87
  }
85
88
  }
86
89
 
87
- @include describe('media-breakpoint mixin') {
88
- @include it('wraps content in a max-width media query using the given value') {
89
- @include assert {
90
- @include output {
91
- @include media-breakpoint(600px) {
90
+ @include module.describe('media-breakpoint mixin') {
91
+ @include test.it('wraps content in a max-width media query using the given value') {
92
+ @include assert.assert {
93
+ @include assert.output {
94
+ @include media.media-breakpoint(600px) {
92
95
  color: blue;
93
96
  }
94
97
  }
95
98
 
96
- @include expect {
99
+ @include assert.expect {
97
100
  @media only screen and (max-width: 600px) {
98
101
  color: blue;
99
102
  }