@snyk-mktg/brand-ui 2.5.10-canary.0 → 2.5.10-canary.10

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 (52) hide show
  1. package/dist/css/base.css +2472 -1078
  2. package/dist/css/base.css.map +1 -1
  3. package/dist/css/bundle.css +4328 -2350
  4. package/dist/css/bundle.css.map +1 -1
  5. package/dist/css/components.css +1957 -1504
  6. package/dist/css/components.css.map +1 -1
  7. package/dist/css/evo-bundle.css +3457 -1235
  8. package/dist/css/evo-bundle.css.map +1 -1
  9. package/dist/css/index.css +164 -130
  10. package/dist/css/index.css.map +1 -1
  11. package/dist/css/labs-bundle.css +9789 -7611
  12. package/dist/css/labs-bundle.css.map +1 -1
  13. package/dist/css/utilities.css +164 -130
  14. package/dist/css/utilities.css.map +1 -1
  15. package/dist/js/types/icons.d.ts +1 -1
  16. package/dist/js/utilities/icons.js +1 -0
  17. package/dist/scss/base/_baseline.scss +2 -2
  18. package/dist/scss/base/_layout.scss +1 -32
  19. package/dist/scss/base/_links.scss +3 -3
  20. package/dist/scss/base/decorations/_backgrounds.scss +47 -4
  21. package/dist/scss/base/decorations/_decorations.scss +13 -0
  22. package/dist/scss/base/mixins/_gradient-border.scss +4 -1
  23. package/dist/scss/base/variables/_colors.scss +14 -14
  24. package/dist/scss/base/variables/_icons.scss +1 -0
  25. package/dist/scss/base/variables/_typography.scss +14 -6
  26. package/dist/scss/components/atoms/_button.scss +14 -3
  27. package/dist/scss/components/atoms/_icons.scss +1 -0
  28. package/dist/scss/components/atoms/_tabs.scss +1 -1
  29. package/dist/scss/components/molecules/_alert.scss +22 -8
  30. package/dist/scss/components/molecules/_avatar-username.scss +1 -1
  31. package/dist/scss/components/molecules/_search.scss +20 -9
  32. package/dist/scss/components/molecules/cards/_card.scss +22 -3
  33. package/dist/scss/components/organisms/_featured-media.scss +9 -0
  34. package/dist/scss/components/organisms/_navigation.scss +4 -6
  35. package/dist/scss/components/organisms/_split-content.scss +0 -1
  36. package/dist/scss/components/organisms/ctas/_basic-cta.scss +3 -8
  37. package/dist/scss/components/organisms/ctas/_body-cta.scss +2 -16
  38. package/dist/scss/components/organisms/ctas/_footer-cta.scss +9 -16
  39. package/dist/scss/components/organisms/heroes/_hero-case-study.scss +1 -1
  40. package/dist/scss/components/organisms/heroes/_hero-title-text.scss +1 -1
  41. package/dist/scss/labs/_base.scss +1 -1
  42. package/dist/scss/labs/_components.scss +2 -2
  43. package/dist/scss/labs/_layout.scss +13 -0
  44. package/dist/scss/labs/base/variables/_typography.scss +15 -7
  45. package/dist/scss/labs/components/atoms/_button.scss +7 -1
  46. package/dist/scss/labs/components/atoms/_icons.scss +3 -0
  47. package/dist/scss/labs/components/molecules/_announcements.scss +10 -0
  48. package/dist/scss/labs/components/molecules/_avatar-username.scss +11 -0
  49. package/dist/scss/labs/components/molecules/_share-this.scss +6 -0
  50. package/dist/scss/labs/components/organisms/ctas/_basic-cta.scss +2 -0
  51. package/dist/scss/utilities/_scrollbar.scss +2 -2
  52. package/package.json +1 -1
@@ -6,23 +6,18 @@
6
6
  @use '../../../base/mixins/breakpoints' as break;
7
7
  @use '../../../base/mixins/color-mode' as color;
8
8
  @use '../../../base/functions' as *;
9
+ @use '../../../components/molecules/cards/_card.scss' as *;
9
10
 
10
11
  .basic-cta {
11
- max-width: brandui-col-spacing(10);
12
+ @extend .card;
12
13
  width: 100%;
13
14
  margin: 0 auto;
14
15
  padding: map.get($brandui-padding, medium);
15
16
  display: flex;
17
+ flex-direction: row;
16
18
  align-items: center;
17
19
  justify-content: space-between;
18
20
  gap: map.get($brandui-padding, huge);
19
- border-width: 1px;
20
- border-style: solid;
21
- border-radius: map.get($brandui-radius, large);
22
- @include color.color-mode(border-color, RGBA(brandui-rgb-labels(neutral-1), 0.3), RGBA(brandui-rgb-labels(neutral-6), 0.3));
23
-
24
- // @include theme.theme-color(background-color, base);
25
- // @include glass.border-glass;
26
21
 
27
22
  &-content {
28
23
  max-width: brandui-col-spacing(7);
@@ -7,23 +7,16 @@
7
7
  @use '../../../base/mixins/gradient-border' as gradient;
8
8
  @use '../../../base/mixins/breakpoints' as break;
9
9
  @use '../../../base/functions' as *;
10
+ @use '../../../components/molecules/cards/_card.scss' as *;
10
11
 
11
12
  .body-cta {
12
- max-width: brandui-col-spacing(10);
13
+ @extend .card-decorated;
13
14
  width: 100%;
14
15
  margin: 0 auto;
15
- padding: map.get($brandui-padding, medium);
16
16
  display: flex;
17
17
  align-items: center;
18
18
  justify-content: space-between;
19
19
  gap: map.get($brandui-padding, huge);
20
- border-radius: map.get($brandui-radius, small);
21
- box-shadow: map.get($brandui-shadow, far);
22
- overflow: hidden;
23
-
24
- @include color.color-mode(background-color, brandui-color-labels(ui-fill), brandui-color-labels(ui-fill-dark));
25
- @include glass.bg-glass(true, ui-fill);
26
- @include gradient.gradient-border;
27
20
 
28
21
  &-content {
29
22
  max-width: brandui-col-spacing(8);
@@ -53,13 +46,6 @@
53
46
  }
54
47
  }
55
48
 
56
- &-decorations {
57
- position: absolute;
58
- z-index: 1;
59
- inset: 2px;
60
- overflow: hidden;
61
- }
62
-
63
49
  @include break.max-mobile {
64
50
  flex-direction: column;
65
51
  gap: map.get($brandui-padding, extra-large);
@@ -12,15 +12,13 @@
12
12
  @use '../../../base/links' as *;
13
13
 
14
14
  .footer-cta {
15
- @extend .brandui-section;
16
15
  margin-bottom: string.unquote('-#{map.get($brandui-padding, huge)}');
17
- max-width: brandui-col-spacing(12);
18
- border-radius: map.get($brandui-radius, 'small');
19
- overflow: hidden;
16
+ margin-left: auto;
17
+ margin-right: auto;
20
18
 
21
- box-shadow: map.get($brandui-shadow, far);
22
- @include color.color-mode(background-color, brandui-color-labels(ui-fill), brandui-color-labels(ui-fill-dark));
23
- @include glass.bg-glass(true, ui-fill);
19
+ @include break.max-tablet {
20
+ margin: 0 map.get($brandui-padding, large);
21
+ }
24
22
 
25
23
  &-content {
26
24
  max-width: brandui-col-spacing(7);
@@ -30,6 +28,10 @@
30
28
  gap: map.get($brandui-padding, small);
31
29
  justify-content: center;
32
30
 
31
+ .buttons {
32
+ justify-content: center;
33
+ }
34
+
33
35
  @include break.max-tablet {
34
36
  max-width: 100%;
35
37
  text-align: center;
@@ -71,13 +73,4 @@
71
73
  max-width: 100%;
72
74
  }
73
75
  }
74
-
75
- &-decorations {
76
- position: absolute;
77
- z-index: 1;
78
- inset: 2px;
79
- overflow: hidden;
80
- }
81
-
82
- @include gradient.gradient-border;
83
76
  }
@@ -87,7 +87,7 @@
87
87
  @include color.color-mode(color, brandui-color-labels(action), brandui-color-labels(action-dark));
88
88
 
89
89
  &:hover {
90
- @include color.color-mode(color, brandui-color-labels(action-secondary), brandui-color-labels(action-secondary-dark));
90
+ @include color.color-mode(color, brandui-color-labels(action-tertiary), brandui-color-labels(action-tertiary-dark));
91
91
  }
92
92
  }
93
93
  }
@@ -8,7 +8,7 @@
8
8
  padding-top: calc(map.get($brandui-padding, huge) + map.get($brandui-padding, huge));
9
9
 
10
10
  &-content {
11
- max-width: brandui-col-spacing(7);
11
+ max-width: brandui-col-spacing(9);
12
12
  width: 100%;
13
13
  margin: 0 auto;
14
14
  display: flex;
@@ -6,7 +6,6 @@
6
6
  @use '../../scss/base/mixins' as *;
7
7
  @use '../../scss/base/typography' as *;
8
8
  @use '../../scss/base/links' as *;
9
- @use '../../scss/base/layout' as *;
10
9
  @use '../../scss/base/spacing' as *;
11
10
  @use '../../scss/base/sizing' as *;
12
11
  @use '../../scss/base/decorations/backgrounds' as *;
@@ -20,3 +19,4 @@
20
19
  @use './base/color' as *;
21
20
  @use './base/typography' as *;
22
21
  @use './base/decorations/backgrounds';
22
+ @use './layout' as *;
@@ -6,7 +6,6 @@
6
6
  @use '../components/atoms/chip' as *;
7
7
  @use '../components/atoms/dropdown' as *;
8
8
  @use '../components/atoms/feature-checkmark' as *;
9
- @use '../components/atoms/icons' as *;
10
9
  @use '../components/atoms/input' as *;
11
10
  @use '../components/atoms/locale-selector' as *;
12
11
  @use '../components/atoms/logo-container' as *;
@@ -27,7 +26,6 @@
27
26
  @use '../components/molecules/agenda' as *;
28
27
  @use '../components/molecules/alert' as *;
29
28
  @use '../components/molecules/avatar-grid-item' as *;
30
- @use '../components/molecules/avatar-username' as *;
31
29
  @use '../components/molecules/charts/charts' as *;
32
30
  @use '../components/molecules/charts/vertical-chart' as *;
33
31
  @use '../components/molecules/charts/horizontal-chart' as *;
@@ -55,9 +53,11 @@
55
53
  @use './components/atoms/tag' as *;
56
54
  @use './components/atoms/button' as *;
57
55
  @use './components/atoms/hairline' as *;
56
+ @use './components/atoms/icons' as *;
58
57
  @use './components/atoms/triggers/play' as *;
59
58
  @use './components/atoms/tooltip' as *;
60
59
  @use './components/molecules/announcements' as *;
60
+ @use './components/molecules/avatar-username' as *;
61
61
  @use './components/molecules/cards/card' as *;
62
62
  @use './components/molecules/cards/card-bg-image' as *;
63
63
  @use './components/molecules/cards/card-repo' as *;
@@ -0,0 +1,13 @@
1
+ @use 'sass:map';
2
+ @use '../base/variables/sizing' as *;
3
+ @use '../base/layout' as *;
4
+
5
+ .brandui-section {
6
+ .section {
7
+ &-intro {
8
+ &.solo-title {
9
+ margin-bottom: map.get($brandui-padding, 'huge');
10
+ }
11
+ }
12
+ }
13
+ }
@@ -6,7 +6,7 @@ $labsui-font-family: (
6
6
  );
7
7
 
8
8
  $brandui-font-size: (
9
- hero-title-large: 5.625rem,
9
+ hero-title-large: 3.125rem,
10
10
  hero-title-small: 3.125rem,
11
11
  page-title-large: 4.375rem,
12
12
  page-title: 3rem,
@@ -28,7 +28,7 @@ $brandui-font-size: (
28
28
  ) !default;
29
29
 
30
30
  $brandui-line-height: (
31
- hero-title-large: 6.25rem,
31
+ hero-title-large: 3.125rem,
32
32
  hero-title-small: 3.75rem,
33
33
  page-title-large: 5rem,
34
34
  page-title: 4rem,
@@ -50,7 +50,7 @@ $brandui-line-height: (
50
50
  ) !default;
51
51
 
52
52
  // Why does this work? Do I need the font 'as'?
53
- $brandui-font-family: map.merge(font.$brandui-font-family, $labsui-font-family);
53
+ $brandui-font-family: $labsui-font-family;
54
54
 
55
55
  $labsui-text-elements: (
56
56
  'hero-title-large': (
@@ -161,54 +161,62 @@ $labsui-text-elements: (
161
161
 
162
162
  $labsui-text-elements-responsive: (
163
163
  'hero-title-large': (
164
+ 'target': 'hero-title-small',
164
165
  'weight': 700,
165
166
  'family': map.get($brandui-font-family, space-mono),
166
167
  'type': monospace,
167
168
  'text-transform': none,
168
169
  ),
169
170
  'hero-title-small': (
171
+ 'target': 'hero-title-small',
170
172
  'weight': 700,
171
173
  'family': map.get($brandui-font-family, space-mono),
172
174
  'type': monospace,
173
175
  'text-transform': none,
174
176
  ),
175
177
  'page-title-large': (
178
+ 'target': 'page-title',
176
179
  'weight': 700,
177
180
  'family': map.get($brandui-font-family, space-mono),
178
181
  'type': monospace,
179
182
  'text-transform': none,
180
183
  ),
181
184
  'page-title': (
185
+ 'target': 'page-title',
182
186
  'weight': 700,
183
187
  'family': map.get($brandui-font-family, space-mono),
184
188
  'type': monospace,
185
189
  'text-transform': none,
186
190
  ),
187
191
  'section-title': (
192
+ 'target': 'headline-small',
188
193
  'weight': 700,
189
194
  'family': map.get($brandui-font-family, space-mono),
190
195
  'type': monospace,
191
196
  'text-transform': none,
192
197
  ),
193
198
  'headline-large': (
199
+ 'target': 'headline-small',
194
200
  'family': map.get($brandui-font-family, space-mono),
195
201
  'type': monospace,
196
202
  'text-transform': none,
197
203
  ),
198
204
  'headline-small': (
205
+ 'target': 'subhead',
199
206
  'family': map.get($brandui-font-family, space-mono),
200
207
  'type': monospace,
201
208
  'text-transform': none,
202
209
  ),
203
210
  'subhead': (
211
+ 'target': 'subhead-small',
204
212
  'family': map.get($brandui-font-family, space-mono),
205
213
  'type': monospace,
206
214
  'text-transform': none,
207
215
  ),
208
216
  );
209
217
 
210
- $text-elements: font.$text-elements;
211
- $text-elements-responsive: font.$text-elements-responsive;
218
+ $text-elements: $labsui-text-elements;
219
+ $text-elements-responsive: $labsui-text-elements-responsive;
212
220
 
213
221
  @each $key, $value in $labsui-text-elements {
214
222
  @if map.has-key($text-elements, $key) {
@@ -226,5 +234,5 @@ $text-elements-responsive: font.$text-elements-responsive;
226
234
  }
227
235
  }
228
236
 
229
- $brandui-font-size: font.$brandui-font-size;
230
- $brandui-line-height: font.$brandui-line-height;
237
+ $brandui-font-size: $brandui-font-size;
238
+ $brandui-line-height: $brandui-line-height;
@@ -28,12 +28,18 @@
28
28
  &:focus {
29
29
  @include color.color-mode(background-color, brandui-color-labels(action-secondary), brandui-color-labels(action-secondary-dark));
30
30
  }
31
+
32
+ .general-icon {
33
+ @include color.color-mode(color, brandui-color-labels(neutral-6), brandui-color-labels(neutral-1));
34
+ }
31
35
  }
32
36
 
33
37
  &.secondary {
34
38
  border-width: 0.0625rem;
35
39
  border-style: solid;
36
- transition: color map.get($brandui-transition, fast), background-color map.get($brandui-transition, fast),
40
+ transition:
41
+ color map.get($brandui-transition, fast),
42
+ background-color map.get($brandui-transition, fast),
37
43
  border-color map.get($brandui-transition, fast);
38
44
  @include color.color-mode(color, brandui-color-labels(action), brandui-color-labels(action-dark));
39
45
  @include color.color-mode(background-color, brandui-color-labels(neutral-6), brandui-color-labels(neutral-1));
@@ -0,0 +1,3 @@
1
+ @use '../../../components/atoms/icons' as *;
2
+ @use '../../../base/mixins/color-mode' as color;
3
+ @use '../../../base/functions' as *;
@@ -14,6 +14,12 @@
14
14
  z-index: 2;
15
15
  @include color.color-mode(border-color, brandui-color-labels(action), brandui-color-labels(action-dark));
16
16
  @include color.color-mode(background-color, brandui-color-labels(action), brandui-color-labels(action-dark));
17
+
18
+ &:hover,
19
+ &:focus {
20
+ @include color.color-mode(border-color, brandui-color-labels(action), brandui-color-labels(action-dark));
21
+ @include color.color-mode(background-color, brandui-color-labels(action), brandui-color-labels(action-dark));
22
+ }
17
23
  }
18
24
 
19
25
  &-message {
@@ -36,5 +42,9 @@
36
42
  &:before {
37
43
  position: relative;
38
44
  }
45
+
46
+ &:after {
47
+ display: none;
48
+ }
39
49
  }
40
50
  }
@@ -0,0 +1,11 @@
1
+ @use './../../../components/molecules/avatar-username';
2
+ @use '../../../base/functions' as *;
3
+ @use './../../../base/mixins/color-mode' as color;
4
+
5
+ .avatar-username {
6
+ a {
7
+ &:hover {
8
+ @include color.color-mode(color, brandui-color-labels(action-secondary), brandui-color-labels(action-secondary-dark));
9
+ }
10
+ }
11
+ }
@@ -24,4 +24,10 @@
24
24
  @include color.color-mode(color, brandui-color-labels(action), brandui-color-labels(action-dark));
25
25
  }
26
26
  }
27
+
28
+ .general-icon {
29
+ &:hover {
30
+ @include color.color-mode(color, brandui-color-labels(action), brandui-color-labels(action-dark));
31
+ }
32
+ }
27
33
  }
@@ -9,7 +9,9 @@
9
9
  .basic-cta {
10
10
  max-width: unset;
11
11
  gap: map.get($brandui-padding, extra-large);
12
+ border-radius: map.get($brandui-radius, large);
12
13
  box-shadow: map.get($brandui-shadow, outline);
14
+ flex-direction: column;
13
15
  @include theme.theme-color(background-color, spotlight);
14
16
  @include theme.theme-color(border-color, spotlight);
15
17
  }
@@ -13,10 +13,10 @@
13
13
  ::-webkit-scrollbar-thumb {
14
14
  border-radius: 20px;
15
15
  border: transparent;
16
- @include color.color-mode(background-color, RGBA(brandui-rgb-labels(neutral-4), 0.25), RGBA(brandui-rgb-labels(neutral-1), 0.25));
16
+ @include color.color-mode(background-color, RGBA(brandui-rgb-labels(neutral-5), 0.25), RGBA(brandui-rgb-labels(neutral-1), 0.25));
17
17
  }
18
18
 
19
19
  ::-webkit-scrollbar-thumb:hover {
20
- @include color.color-mode(background-color, RGBA(brandui-rgb-labels(neutral-4), 0.5), RGBA(brandui-rgb-labels(neutral-1), 0.5));
20
+ @include color.color-mode(background-color, RGBA(brandui-rgb-labels(neutral-5), 0.5), RGBA(brandui-rgb-labels(neutral-1), 0.5));
21
21
  }
22
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snyk-mktg/brand-ui",
3
- "version": "2.5.10-canary.0",
3
+ "version": "2.5.10-canary.10",
4
4
  "description": "The official style library for Snyk’s BrandUI Design System",
5
5
  "scripts": {
6
6
  "dev:css": "gulp devCss",