@snyk-mktg/brand-ui 2.5.9-canary.2 → 2.5.9

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 (63) hide show
  1. package/dist/css/bundle.css +1 -82
  2. package/dist/css/bundle.css.map +1 -1
  3. package/dist/css/components.css +1 -82
  4. package/dist/css/components.css.map +1 -1
  5. package/dist/css/evo-bundle.css +1 -31
  6. package/dist/css/evo-bundle.css.map +1 -1
  7. package/dist/css/labs-bundle.css +1 -31
  8. package/dist/css/labs-bundle.css.map +1 -1
  9. package/dist/js/helpers/caseFormats.test.d.ts +1 -0
  10. package/dist/js/helpers/caseFormats.test.js +59 -0
  11. package/dist/js/helpers/classnames.test.d.ts +1 -0
  12. package/dist/js/helpers/classnames.test.js +13 -0
  13. package/dist/js/helpers/getInitials.test.d.ts +1 -0
  14. package/dist/js/helpers/getInitials.test.js +29 -0
  15. package/dist/js/helpers/grid.test.d.ts +1 -0
  16. package/dist/js/helpers/grid.test.js +44 -0
  17. package/dist/js/helpers/range.test.d.ts +1 -0
  18. package/dist/js/helpers/range.test.js +24 -0
  19. package/dist/scss/base/_color.scss +16 -1
  20. package/dist/scss/base/_layout.scss +11 -7
  21. package/dist/scss/base/decorations/_markers.scss +26 -28
  22. package/dist/scss/base/mixins/_accessibility.scss +0 -6
  23. package/dist/scss/base/mixins/_color-mode.scss +0 -7
  24. package/dist/scss/base/variables/_colors.scss +29 -34
  25. package/dist/scss/base/variables/_themes.scss +17 -17
  26. package/dist/scss/base/variables/_typography.scss +49 -41
  27. package/dist/scss/base.scss +2 -4
  28. package/dist/scss/components/atoms/_badge.scss +1 -1
  29. package/dist/scss/components/atoms/_button.scss +116 -11
  30. package/dist/scss/components/atoms/_checkbox.scss +2 -12
  31. package/dist/scss/components/atoms/_dropdown.scss +3 -3
  32. package/dist/scss/components/atoms/_feature-checkmark.scss +1 -0
  33. package/dist/scss/components/atoms/_icons.scss +2 -5
  34. package/dist/scss/components/atoms/_tabs.scss +4 -4
  35. package/dist/scss/components/atoms/triggers/_filter.scss +1 -1
  36. package/dist/scss/components/molecules/_announcements.scss +4 -4
  37. package/dist/scss/components/molecules/_pagination.scss +3 -3
  38. package/dist/scss/components/molecules/_search.scss +11 -1
  39. package/dist/scss/components/molecules/_share-this.scss +1 -2
  40. package/dist/scss/components/molecules/_tables.scss +2 -59
  41. package/dist/scss/components/molecules/cards/_card.scss +8 -7
  42. package/dist/scss/components/organisms/_glossary.scss +0 -7
  43. package/dist/scss/components/organisms/_split-content.scss +4 -0
  44. package/dist/scss/components/organisms/_sub-navigation.scss +1 -1
  45. package/dist/scss/components/organisms/ctas/_basic-cta.scss +4 -6
  46. package/dist/scss/components/organisms/heroes/_hero-case-study.scss +7 -4
  47. package/dist/scss/evo/_components.scss +1 -1
  48. package/dist/scss/evo/base/variables/_typography.scss +0 -1
  49. package/dist/scss/evo/components/atoms/_button.scss +0 -88
  50. package/dist/scss/evo/components/molecules/cards/_card.scss +0 -3
  51. package/dist/scss/evo/components/organisms/_footer.scss +0 -14
  52. package/dist/scss/evo/components/organisms/ctas/_basic-cta.scss +0 -1
  53. package/dist/scss/labs/base/variables/_colors.scss +0 -8
  54. package/dist/scss/labs/base/variables/_typography.scss +0 -44
  55. package/dist/scss/labs/components/atoms/_button.scss +0 -12
  56. package/dist/scss/labs/components/atoms/triggers/_play.scss +1 -1
  57. package/dist/scss/labs/components/molecules/_pagination.scss +0 -5
  58. package/dist/scss/labs/components/molecules/cards/_card.scss +0 -10
  59. package/dist/scss/labs/components/organisms/ctas/_basic-cta.scss +0 -2
  60. package/dist/scss/labs/utilities/_rich-text.scss +0 -13
  61. package/dist/scss/utilities/_rich-text.scss +1 -1
  62. package/package.json +2 -3
  63. package/dist/scss/evo/components/molecules/_share-this.scss +0 -44
@@ -10,64 +10,6 @@
10
10
  @use '../../base/functions' as *;
11
11
 
12
12
  .table {
13
- &-basic {
14
- border-collapse: collapse;
15
- min-width: brandui-col-spacing(6);
16
-
17
- &-wrapper {
18
- border-radius: map.get($brandui-padding, extra-small);
19
- border-width: 1px;
20
- border-style: solid;
21
- overflow-y: hidden;
22
- @include color.color-mode(border-color, brandui-color-labels(ui-fill), brandui-color-labels(ui-fill-dark));
23
- }
24
-
25
- tr:nth-child(even) {
26
- @include color.color-mode(background-color, brandui-color-labels(ui-fill), brandui-color-labels(ui-fill-dark));
27
- }
28
-
29
- &-caption {
30
- width: brandui-col-spacing(6);
31
-
32
- &-content {
33
- max-width: brandui-col-spacing(3);
34
-
35
- @include break.max-mobile {
36
- max-width: 100%;
37
- }
38
- }
39
-
40
- @include break.max-mobile {
41
- width: brandui-col-spacing(12);
42
- text-align: center;
43
- }
44
- }
45
-
46
- &-col-header {
47
- min-width: 200px;
48
- padding: map.get($brandui-padding, small);
49
-
50
- @include font.get-typography(subhead-small);
51
- @include color.color-mode(background-color, brandui-color-labels(ui-fill), brandui-color-labels(ui-fill-dark));
52
- &-wrapper {
53
- vertical-align: top;
54
- }
55
- }
56
-
57
- &-row-header {
58
- vertical-align: middle;
59
- @include color.color-mode(background-color, brandui-color-labels(ui-body-dark), brandui-color-labels(ui-body));
60
- &-content {
61
- padding: map.get($brandui-padding, small);
62
- }
63
- }
64
-
65
- &-row-data {
66
- &-content {
67
- padding: map.get($brandui-padding, small);
68
- }
69
- }
70
- }
71
13
  &-comparison {
72
14
  &-caption {
73
15
  width: brandui-col-spacing(6);
@@ -106,7 +48,8 @@
106
48
  padding: map.get($brandui-padding, small);
107
49
  text-align: left;
108
50
  @include font.get-typography(body-bold);
109
- @include color.color-mode(background-color, brandui-color-labels(ui-fill), brandui-color-labels(ui-fill-dark));
51
+ @include theme.theme-color(background-color, base);
52
+ @include theme.theme-color(color, ui-body);
110
53
  }
111
54
  }
112
55
  }
@@ -1,18 +1,19 @@
1
1
  @use 'sass:map';
2
- @use '../../../base/mixins/glass' as glass;
3
- @use '../../../base/mixins/color-mode' as color;
4
2
  @use '../../../base/variables/effects' as *;
5
3
  @use '../../../base/variables/sizing' as *;
6
- @use '../../../base/functions' as *;
4
+ @use '../../../base/mixins/glass' as glass;
7
5
 
8
6
  .card {
9
7
  display: flex;
10
8
  flex-direction: column;
11
- border-radius: map.get($brandui-radius, 'extra-small');
9
+ border-width: 0.1875rem;
10
+ border-style: solid;
11
+ border-radius: map.get($brandui-radius, 'large');
12
+ box-shadow: map.get($brandui-shadow, 'outline');
12
13
  transition: map.get($brandui-transition, 'fast');
13
14
  overflow: hidden;
14
-
15
- @include color.color-mode(background-color, brandui-color-labels(ui-fill), brandui-color-labels(ui-fill-dark));
15
+ @include glass.bg-glass;
16
+ @include glass.border-glass;
16
17
 
17
18
  &-wrapper {
18
19
  position: relative;
@@ -20,7 +21,7 @@
20
21
 
21
22
  &-banner {
22
23
  overflow: hidden;
23
- border-radius: map.get($brandui-radius, 'extra-small') map.get($brandui-radius, 'extra-small') 0 0;
24
+ border-radius: map.get($brandui-radius, 'medium') map.get($brandui-radius, 'medium') 0 0;
24
25
  }
25
26
 
26
27
  &-headshot {
@@ -8,13 +8,6 @@
8
8
  @use '../../base/functions' as *;
9
9
 
10
10
  .glossary {
11
- &-highlight {
12
- @include color.color-mode(
13
- background-color,
14
- RGBA(brandui-rgb-labels(action-tertiary), 0.3),
15
- RGBA(brandui-rgb-labels(action-tertiary-dark), 0.3)
16
- );
17
- }
18
11
  &-nav {
19
12
  padding: map.get($brandui-padding, small);
20
13
  border-width: 0.1875rem;
@@ -9,6 +9,10 @@
9
9
  display: flex;
10
10
  gap: brandui-padding(huge);
11
11
  padding: brandui-padding(large);
12
+ border-radius: brandui-radius(large);
13
+ box-shadow: brandui-shadow(outline);
14
+ @include glass.bg-glass;
15
+ @include glass.border-glass;
12
16
 
13
17
  @include break.max-tablet {
14
18
  flex-direction: column;
@@ -69,7 +69,7 @@
69
69
  @include color.color-mode(color, brandui-color-labels(action), brandui-color-labels(action-dark));
70
70
 
71
71
  &:hover {
72
- @include color.color-mode(color, brandui-color-labels(action-tertiary), brandui-color-labels(action-tertiary-dark));
72
+ @include color.color-mode(color, brandui-color-labels(action-secondary), brandui-color-labels(action-secondary-dark));
73
73
  @include color.color-mode(
74
74
  background-color,
75
75
  RGBA(brandui-rgb-labels(action-secondary), 0.1),
@@ -4,7 +4,6 @@
4
4
  @use '../../../base/mixins/page-theme' as theme;
5
5
  @use '../../../base/mixins/glass' as glass;
6
6
  @use '../../../base/mixins/breakpoints' as break;
7
- @use '../../../base/mixins/color-mode' as color;
8
7
  @use '../../../base/functions' as *;
9
8
 
10
9
  .basic-cta {
@@ -16,13 +15,12 @@
16
15
  align-items: center;
17
16
  justify-content: space-between;
18
17
  gap: map.get($brandui-padding, huge);
19
- border-width: 1px;
18
+ border-width: 0.1875rem;
20
19
  border-style: solid;
21
20
  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;
21
+ box-shadow: map.get($brandui-shadow, outline);
22
+ @include theme.theme-color(background-color, base);
23
+ @include glass.border-glass;
26
24
 
27
25
  &-content {
28
26
  max-width: brandui-col-spacing(7);
@@ -52,11 +52,15 @@
52
52
  max-width: brandui-col-spacing(4);
53
53
  width: 100%;
54
54
  padding: map.get($brandui-padding, medium);
55
+ border-width: 0.1875rem;
56
+ border-style: solid;
57
+ border-radius: map.get($brandui-radius, large);
58
+ box-shadow: map.get($brandui-shadow, outline);
55
59
  display: flex;
56
60
  flex-direction: column;
57
61
  gap: map.get($brandui-padding, medium);
58
-
59
- @include color.color-mode(background-color, brandui-color-labels(ui-fill), brandui-color-labels(ui-fill-dark));
62
+ @include glass.bg-glass;
63
+ @include glass.border-glass;
60
64
 
61
65
  .company-info {
62
66
  display: flex;
@@ -70,8 +74,7 @@
70
74
  gap: map.get($brandui-padding, small);
71
75
  border-bottom-width: 0.0625rem;
72
76
  border-bottom-style: solid;
73
-
74
- @include color.color-mode(border-color, RGBA(brandui-rgb-labels(neutral-1), 0.3), RGBA(brandui-rgb-labels(neutral-6), 0.3));
77
+ @include color.color-mode(border-bottom-color, brandui-color-labels(ui-stroke), brandui-color-labels(ui-stroke-dark));
75
78
  }
76
79
  }
77
80
 
@@ -40,6 +40,7 @@
40
40
  @use '../components/molecules/modal' as *;
41
41
  @use '../components/molecules/notification' as *;
42
42
  @use '../components/molecules/pagination' as *;
43
+ @use '../components/molecules/share-this' as *;
43
44
  @use '../components/molecules/tables' as *;
44
45
  @use '../components/molecules/table-of-contents' as *;
45
46
  @use '../components/molecules/title-text' as *;
@@ -73,7 +74,6 @@
73
74
  @use './components/molecules/cards/card' as *;
74
75
  @use './components/molecules/text-grid-item' as *;
75
76
  @use './components/molecules/text-media' as *;
76
- @use './components/molecules/share-this' as *;
77
77
  @use './components/organisms/ctas/basic-cta' as *;
78
78
  @use './components/organisms/heroes/hero-title-text' as *;
79
79
  @use './components/organisms/footer' as *;
@@ -14,7 +14,6 @@ $evoui-font-size: (
14
14
  page-title-small: 3.5rem,
15
15
  hero-title-large: 4.375rem,
16
16
  hero-title-small: 3.75rem,
17
- section-title: 3rem,
18
17
  section-title-small: 2.5rem,
19
18
  );
20
19
  $brandui-font-size: map.merge(font.$brandui-font-size, $evoui-font-size);
@@ -6,16 +6,6 @@
6
6
  @use '../../../base/variables/sizing' as *;
7
7
  @use '../../../base/mixins/color-mode' as color;
8
8
 
9
- $action-base: RGBA(brandui-rgb-labels(action), 0.1);
10
- $action-base-dark: RGBA(brandui-rgb-labels(action-dark), 0.1);
11
- $action-secondary-base: RGBA(brandui-rgb-labels(action-secondary), 0.1);
12
- $action-secondary-base-dark: RGBA(brandui-rgb-labels(action-secondary-dark), 0.1);
13
- $fail-base: RGBA(brandui-rgb-labels(fail), 0.1);
14
- $fail-base-dark: RGBA(brandui-rgb-labels(fail-dark), 0.1);
15
- $fail-hover: brandui-color-labels(fail);
16
- $fail-hover-dark: brandui-color-labels(fail-dark);
17
- $neutral: brandui-color-labels(neutral-3);
18
- $neutral-hover: brandui-color-labels(neutral-6);
19
9
  $primary-conic-light-values: RGBA(brandui-rgb-labels(action-dark), 1), RGBA(brandui-rgb-labels(action-dark), 0.3),
20
10
  RGBA(brandui-rgb-labels(action-secondary-dark), 0.3), RGBA(brandui-rgb-labels(action-secondary-dark), 1);
21
11
  $primary-conic-dark-values: RGBA(brandui-rgb-labels(action-dark), 1), RGBA(brandui-rgb-labels(action-dark), 0.3),
@@ -25,22 +15,8 @@ $secondary-conic-light-values: RGBA(brandui-rgb-labels(action-dark), 1), RGBA(br
25
15
  $secondary-conic-dark-values: RGBA(brandui-rgb-labels(action-dark), 1), RGBA(brandui-rgb-labels(action-dark), 0.3),
26
16
  RGBA(brandui-rgb-labels(action-secondary-dark), 0.3), RGBA(brandui-rgb-labels(action-secondary-dark), 1);
27
17
 
28
- @property --glimmer-angle {
29
- syntax: '<angle>';
30
- inherits: false;
31
- initial-value: 0deg;
32
- }
33
-
34
- @property --glimmer-duration {
35
- syntax: '<time>';
36
- inherits: false;
37
- initial-value: 6s;
38
- }
39
-
40
18
  .button {
41
19
  font-family: map.get($brandui-font-family, geist-mono), monospace;
42
- isolation: isolate;
43
- border: none;
44
20
  border-radius: map.get($brandui-radius, medium);
45
21
 
46
22
  &.primary {
@@ -54,31 +30,6 @@ $secondary-conic-dark-values: RGBA(brandui-rgb-labels(action-dark), 1), RGBA(bra
54
30
  brandui-color-labels(action-dark),
55
31
  brandui-color-labels(action-secondary-dark)
56
32
  );
57
- &:before {
58
- content: '';
59
- position: absolute;
60
- inset: 0;
61
- border-radius: inherit;
62
- z-index: -1;
63
- }
64
-
65
- @include color.conic-gradient-mode-pseudo(
66
- '&:after',
67
- background,
68
- var(--glimmer-angle),
69
- $primary-conic-light-values,
70
- $primary-conic-dark-values
71
- );
72
- &:after {
73
- content: '';
74
- display: block;
75
- position: absolute;
76
- inset: -1px;
77
- animation: glimmer var(--glimmer-duration) linear infinite;
78
- border-radius: inherit;
79
- z-index: -2;
80
- }
81
-
82
33
  &:hover,
83
34
  &:focus {
84
35
  @include color.gradient-mode-pseudo(
@@ -91,9 +42,6 @@ $secondary-conic-dark-values: RGBA(brandui-rgb-labels(action-dark), 1), RGBA(bra
91
42
  brandui-color-labels(action-secondary-dark),
92
43
  brandui-color-labels(action-dark)
93
44
  );
94
- &:after {
95
- --glimmer-duration: 2s;
96
- }
97
45
  }
98
46
 
99
47
  // This is the rotating conic-gradient glimmer effect
@@ -107,49 +55,13 @@ $secondary-conic-dark-values: RGBA(brandui-rgb-labels(action-dark), 1), RGBA(bra
107
55
  }
108
56
 
109
57
  &.secondary {
110
- border: none;
111
- isolation: isolate;
112
-
113
58
  @include color.color-mode(color, brandui-color-labels(action-secondary-contrast), brandui-color-labels(action-secondary-contrast-dark));
114
59
  @include color.color-mode-pseudo('&:before', background-color, brandui-color-labels(neutral-1), brandui-color-labels(neutral-1));
115
60
 
116
- &:before {
117
- content: '';
118
- position: absolute;
119
- inset: 0;
120
- border-radius: inherit;
121
- backdrop-filter: blur(4px);
122
- z-index: -1;
123
- }
124
- // This is the rotating conic-gradient glimmer effect
125
- @include color.conic-gradient-mode-pseudo(
126
- '&:after',
127
- background,
128
- var(--glimmer-angle),
129
- $secondary-conic-light-values,
130
- $secondary-conic-dark-values
131
- );
132
- &:after {
133
- content: '';
134
- display: block;
135
- position: absolute;
136
- inset: -1px;
137
- animation: glimmer var(--glimmer-duration) linear infinite;
138
- border-radius: inherit;
139
- z-index: -2;
140
- }
141
-
142
61
  &:hover,
143
62
  &:focus {
144
63
  @include color.color-mode(color, brandui-color-labels(action-secondary-contrast), brandui-color-labels(action-secondary-contrast-dark));
145
64
  @include color.color-mode-pseudo('&:before', background-color, brandui-color-labels(neutral-6), brandui-color-labels(neutral-3));
146
- &:before {
147
- transition: background-color map.get($brandui-transition, fast);
148
- }
149
-
150
- &:after {
151
- --glimmer-duration: 2s;
152
- }
153
65
  }
154
66
 
155
67
  // This is the rotating conic-gradient glimmer effect
@@ -6,10 +6,7 @@
6
6
 
7
7
  .card {
8
8
  position: relative;
9
- border-width: 0.1875rem;
10
- border-style: solid;
11
9
  border-width: map.get($brandui-padding, 'hairline');
12
- border-radius: map.get($brandui-radius, 'large');
13
10
  // box-shadow: map.get($brandui-shadow, 'outline');
14
11
  //TODO: Extend Drop shadow theme later
15
12
  box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.4);
@@ -22,21 +22,7 @@
22
22
  }
23
23
  }
24
24
  &-social-links {
25
- @include color.color-mode(color, brandui-color-labels(ui-text), brandui-color-labels(ui-text-dark));
26
-
27
- li {
28
- list-style: none;
29
- }
30
-
31
- .icon-border {
32
- @include color.color-mode(border-color, RGBA(brandui-rgb-labels(neutral-6), 0.3), RGBA(brandui-rgb-labels(neutral-1), 0.7));
33
- }
34
-
35
25
  a {
36
- font-weight: 400;
37
- text-decoration: none;
38
- @include color.color-mode(color, brandui-color-labels(ui-text), brandui-color-labels(ui-text-dark));
39
-
40
26
  &:hover {
41
27
  @include color.color-mode(color, brandui-color-labels(action-secondary), brandui-color-labels(action-secondary-dark));
42
28
  }
@@ -10,7 +10,6 @@
10
10
  border-width: 1px;
11
11
  background-color: none;
12
12
  background: none;
13
- box-shadow: map.get($brandui-shadow, outline);
14
13
  @include glass.bg-glass;
15
14
  @include glass.border-glass;
16
15
  }
@@ -8,18 +8,10 @@ $labsui-color-labels: (
8
8
  'ui-headline-dark': map.get($brandui-colors, 'white'),
9
9
  'ui-body': map.get($brandui-colors, 'space'),
10
10
  'ui-body-dark': map.get($brandui-colors, 'white'),
11
- 'ui-stroke': map.get($brandui-colors, 'space'),
12
- 'ui-stroke-dark': map.get($brandui-colors, 'dawn'),
13
11
  'action': map.get($brandui-colors, 'deep-blue'),
14
12
  'action-dark': map.get($brandui-colors, 'cyan'),
15
13
  'action-secondary': map.get($brandui-colors, 'midnight'),
16
14
  'action-secondary-dark': map.get($brandui-colors, 'snow'),
17
- 'neutral-1': map.get($brandui-colors, 'midnight'),
18
- 'neutral-2': map.get($brandui-colors, 'ocean'),
19
- 'neutral-3': map.get($brandui-colors, 'dawn'),
20
- 'neutral-4': map.get($brandui-colors, 'smoke'),
21
- 'neutral-5': map.get($brandui-colors, 'snow'),
22
- 'neutral-6': map.get($brandui-colors, 'white'),
23
15
  );
24
16
 
25
17
  $brandui-color-labels: map.merge($brandui-color-labels, $labsui-color-labels);
@@ -5,50 +5,6 @@ $labsui-font-family: (
5
5
  space-mono: 'Space Mono',
6
6
  );
7
7
 
8
- $brandui-font-size: (
9
- hero-title-large: 5.625rem,
10
- hero-title-small: 3.125rem,
11
- page-title-large: 4.375rem,
12
- page-title: 3rem,
13
- section-title: 3rem,
14
- headline-large: 2.5rem,
15
- headline-small: 2rem,
16
- subhead: 1.5rem,
17
- subhead-small: 1.125rem,
18
- mini-header: 1rem,
19
- mini-header-small: 0.875rem,
20
- body-lead: 1rem,
21
- body-lead-bold: 1rem,
22
- body: 1rem,
23
- body-bold: 1rem,
24
- body-long: 1.125rem,
25
- body-small: 0.875rem,
26
- body-small-medium: 0.875rem,
27
- code: 1rem,
28
- ) !default;
29
-
30
- $brandui-line-height: (
31
- hero-title-large: 6.25rem,
32
- hero-title-small: 3.75rem,
33
- page-title-large: 5rem,
34
- page-title: 4rem,
35
- section-title: 4rem,
36
- headline-large: 3rem,
37
- headline-small: 2.5rem,
38
- subhead: 2.25rem,
39
- subhead-small: 1.75rem,
40
- mini-header: 1.5rem,
41
- mini-header-small: 1.5rem,
42
- body-lead: 1.5rem,
43
- body-lead-bold: 1.5rem,
44
- body: 1.5rem,
45
- body-bold: 1.5rem,
46
- body-long: 2rem,
47
- body-small: 1.5rem,
48
- body-small-medium: 1.5rem,
49
- code: 1.625rem,
50
- ) !default;
51
-
52
8
  // Why does this work? Do I need the font 'as'?
53
9
  $brandui-font-family: map.merge(font.$brandui-font-family, $labsui-font-family);
54
10
 
@@ -11,7 +11,6 @@
11
11
 
12
12
  .button {
13
13
  font-family: map.get($brandui-font-family, space-mono), monospace;
14
- border-radius: map.get($brandui-radius, pill);
15
14
 
16
15
  &.primary {
17
16
  border-width: 0.0625rem;
@@ -51,15 +50,4 @@
51
50
  @include color.color-mode(border-color, brandui-color-labels(action-secondary), brandui-color-labels(action-secondary-dark));
52
51
  }
53
52
  }
54
- &.tertiary,
55
- &.glyph,
56
- &.arrow,
57
- &.external {
58
- @include color.color-mode(color, brandui-color-labels(action), brandui-color-labels(action-dark));
59
-
60
- &:hover,
61
- &:focus {
62
- @include color.color-mode(color, brandui-color-labels(action-secondary), brandui-color-labels(action-secondary-dark));
63
- }
64
- }
65
53
  }
@@ -16,6 +16,6 @@
16
16
  }
17
17
  &:after {
18
18
  border-radius: map.get($brandui-radius, 'pill');
19
+ @include color.color-mode(background-color, brandui-color-labels(ui-fill), brandui-color-labels(ui-fill));
19
20
  }
20
- @include color.color-mode-pseudo('&:after', background-color, brandui-color-labels(action), brandui-color-labels(action-dark));
21
21
  }
@@ -17,11 +17,6 @@
17
17
  @include color.color-mode(background-color, brandui-color-labels(neutral-5), brandui-color-labels(neutral-3));
18
18
  @include color.color-mode(border-color, brandui-color-labels(action), brandui-color-labels(neutral-3));
19
19
  @include color.color-mode(color, brandui-color-labels(action), brandui-color-labels(neutral-6));
20
- &:hover {
21
- @include color.color-mode(color, brandui-color-labels(action-secondary), brandui-color-labels(action-secondary-dark));
22
- @include color.color-mode(background-color, brandui-color-labels(neutral-6), brandui-color-labels(neutral-1));
23
- @include color.color-mode(border-color, brandui-color-labels(action-secondary), brandui-color-labels(action-secondary-dark));
24
- }
25
20
  }
26
21
  &-tile {
27
22
  &.active {
@@ -1,18 +1,12 @@
1
- @use 'sass:map';
2
1
  @use '../../../../components/molecules/cards/card' as *;
3
2
  @use '../../../../base/mixins/breakpoints' as break;
4
3
  @use '../../../../base/functions' as *;
5
- @use '../../../../base/variables/effects' as *;
6
- @use '../../../../base/variables/sizing' as *;
7
4
  @use '../../../../base/mixins/color-mode' as color;
8
- @use '../../../../base/mixins/glass' as glass;
9
5
 
10
6
  .card {
11
7
  backdrop-filter: none;
12
8
  -webkit-backdrop-filter: none;
13
9
  border: none;
14
- border-radius: map.get($brandui-radius, 'large');
15
-
16
10
  @include color.color-mode(background-color, brandui-color-labels(neutral-5), brandui-color-labels(neutral-2));
17
11
 
18
12
  &-wrapper {
@@ -59,10 +53,6 @@
59
53
  }
60
54
  }
61
55
  }
62
-
63
- &-banner {
64
- border-radius: map.get($brandui-radius, 'medium') map.get($brandui-radius, 'medium') 0 0;
65
- }
66
56
  }
67
57
 
68
58
  /* Unfinished example of using clip-path (link: https://www.sitepoint.com/css-path-function-squeaky-portraits/) */
@@ -1,6 +1,5 @@
1
1
  @use 'sass:map';
2
2
  @use '../../../../base/variables/sizing' as *;
3
- @use '../../../../base/variables/effects' as *;
4
3
  @use '../../../../base/mixins/page-theme' as theme;
5
4
  @use '../../../../base/mixins/breakpoints' as break;
6
5
  @use '../../../../components/organisms/ctas/basic-cta' as *;
@@ -9,7 +8,6 @@
9
8
  .basic-cta {
10
9
  max-width: unset;
11
10
  gap: map.get($brandui-padding, extra-large);
12
- box-shadow: map.get($brandui-shadow, outline);
13
11
  @include theme.theme-color(background-color, spotlight);
14
12
  @include theme.theme-color(border-color, spotlight);
15
13
  }
@@ -2,7 +2,6 @@
2
2
  @use '../../utilities/rich-text' as *;
3
3
  @use '../base/mixins/typography' as font;
4
4
  @use '../../base/functions' as *;
5
- @use '../../base/mixins/color-mode' as color;
6
5
  @use '../base/variables/typography' as *;
7
6
 
8
7
  .txt-rich,
@@ -39,16 +38,4 @@
39
38
  blockquote:not([class]) {
40
39
  @include font.get-typography(body-lead);
41
40
  }
42
-
43
- a:not([class]) {
44
- overflow-wrap: break-word;
45
- text-decoration: underline;
46
- font-weight: 700;
47
- @include color.color-mode(color, brandui-color-labels('action'), brandui-color-labels('action-dark'));
48
-
49
- &:hover,
50
- &:focus {
51
- @include color.color-mode(color, brandui-color-labels('action-secondary'), brandui-color-labels('action-secondary-dark'));
52
- }
53
- }
54
41
  }
@@ -60,7 +60,7 @@ The rich text class applies default styling to HTML when you cannot apply class
60
60
 
61
61
  &:hover,
62
62
  &:focus {
63
- @include color.color-mode(color, brandui-color-labels('action-tertiary'), brandui-color-labels('action-tertiary-dark'));
63
+ @include color.color-mode(color, brandui-color-labels('action-secondary'), brandui-color-labels('action-secondary-dark'));
64
64
  }
65
65
  }
66
66
 
package/package.json CHANGED
@@ -1,14 +1,13 @@
1
1
  {
2
2
  "name": "@snyk-mktg/brand-ui",
3
- "version": "2.5.9-canary.2",
3
+ "version": "2.5.9",
4
4
  "description": "The official style library for Snyk’s BrandUI Design System",
5
5
  "scripts": {
6
6
  "dev:css": "gulp devCss",
7
7
  "build": "gulp",
8
8
  "test": "jest",
9
9
  "lint": "sass-lint -v",
10
- "lint:fix": "sass-lint-auto-fix",
11
- "compile": "rm -rf dist/js && tsc -p tsconfig.build.json && tsc -p tsconfig.build.json --module CommonJs --moduleResolution node --outDir dist/js/cjs"
10
+ "lint:fix": "sass-lint-auto-fix"
12
11
  },
13
12
  "type": "module",
14
13
  "repository": {
@@ -1,44 +0,0 @@
1
- @use 'sass:map';
2
- @use '../../../base/functions' as *;
3
- @use '../../../base/variables/effects' as *;
4
- @use '../../../base/variables/sizing' as *;
5
- @use '../../../base/mixins/color-mode' as color;
6
- @use '../../../base/mixins/typography' as font;
7
-
8
- // Not importing the other share this component because they are so different
9
- .share-this {
10
- display: flex;
11
- gap: map.get($brandui-padding, extra-small);
12
-
13
- &-label {
14
- max-width: max-content;
15
- @include font.get-typography(body-bold);
16
- }
17
-
18
- &-icon {
19
- text-decoration: none;
20
- display: flex;
21
- justify-content: center;
22
- align-items: center;
23
- width: map.get($brandui-padding, medium);
24
- height: map.get($brandui-padding, medium);
25
- border-style: solid;
26
- border-width: 1px;
27
- border-radius: map.get($brandui-radius, small);
28
- transition: map.get($brandui-transition, 'fast');
29
- padding: map.get($brandui-padding, extra-small);
30
- @include color.color-mode(color, brandui-color-labels(neutral-1), brandui-color-labels(neutral-5));
31
- @include color.color-mode(border-color, RGBA(brandui-rgb-labels(neutral-1), 0.3), RGBA(brandui-rgb-labels(neutral-5), 0.1));
32
-
33
- &-list {
34
- display: flex;
35
- gap: map.get($brandui-padding, extra-small);
36
- }
37
-
38
- &:hover {
39
- cursor: pointer;
40
- @include color.color-mode(background-color, brandui-color-labels(ui-fill), brandui-color-labels(ui-fill-dark));
41
- @include color.color-mode(color, brandui-color-labels(action-secondary), brandui-color-labels(action-secondary-dark));
42
- }
43
- }
44
- }