@nice-digital/nds-hero 1.2.17 → 1.2.20-alpha.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 (2) hide show
  1. package/package.json +5 -5
  2. package/scss/hero.scss +22 -16
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice-digital/nds-hero",
3
- "version": "1.2.17",
3
+ "version": "1.2.20-alpha.0",
4
4
  "description": "Hero component for the NICE Design System",
5
5
  "keywords": [
6
6
  "hero"
@@ -37,16 +37,16 @@
37
37
  "url": "https://github.com/nice-digital/nice-design-system/issues"
38
38
  },
39
39
  "dependencies": {
40
- "@nice-digital/nds-core": "^1.3.2",
40
+ "@nice-digital/nds-core": "^1.3.5-alpha.0",
41
41
  "classnames": "^2.3.1",
42
42
  "prop-types": "^15.7.2"
43
43
  },
44
44
  "peerDependencies": {
45
- "react": "^16 || ^17",
46
- "react-dom": "^16 || ^17"
45
+ "react": "^16 || ^17 || ^18",
46
+ "react-dom": "^16 || ^17 || ^18"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@babel/cli": "^7.5.0"
50
50
  },
51
- "gitHead": "db5e29bc9fa8afa7e33c19a8e06a65adafd99bc5"
51
+ "gitHead": "0ddae81edebd757a52ca6a2838610049a83acebd"
52
52
  }
package/scss/hero.scss CHANGED
@@ -1,4 +1,10 @@
1
- @import '~@nice-digital/nds-core/scss/core';
1
+ @use '@nice-digital/nds-core/scss/colours';
2
+ @use '@nice-digital/nds-core/scss/focus';
3
+ @use '@nice-digital/nds-core/scss/layout';
4
+ @use '@nice-digital/nds-core/scss/media-queries';
5
+ @use '@nice-digital/nds-core/scss/spacing';
6
+ @use '@nice-digital/nds-core/scss/typography';
7
+ @use '@nice-digital/nds-core/scss/utils';
2
8
  ////
3
9
  /// @group components
4
10
  ////
@@ -6,12 +12,12 @@
6
12
  /// Hero banner component.
7
13
  /// @since 0.2.0
8
14
  .hero {
9
- @include nds-links-inverse;
10
- @include nds-inverse-button-focus;
11
- background: $nds-colour-hero-background;
12
- color: $nds-colour-text-inverse;
15
+ @include typography.links-inverse;
16
+ @include focus.inverse-button-focus;
17
+ background: colours.$hero-background;
18
+ color: colours.$text-inverse;
13
19
  left: calc(50%);
14
- margin-bottom: rem($nds-spacing-large);
20
+ margin-bottom: utils.rem(spacing.$large);
15
21
  margin-left: -50vw;
16
22
  margin-right: -50vw;
17
23
  overflow: hidden;
@@ -20,32 +26,32 @@
20
26
  width: 100vw;
21
27
 
22
28
  &__container {
23
- @include nds-container;
29
+ @include layout.container;
24
30
  }
25
31
 
26
32
  &__body {
27
- @include nds-clearfix;
28
- margin-top: rem($nds-spacing-large);
29
- padding: rem(0 0 $nds-spacing-large);
33
+ @include layout.clearfix;
34
+ margin-top: utils.rem(spacing.$large);
35
+ padding: utils.rem(0 0 spacing.$large);
30
36
  }
31
37
 
32
38
  // Container for title, lead and actions
33
39
  &__copy {
34
- margin-bottom: rem($nds-spacing-large);
40
+ margin-bottom: utils.rem(spacing.$large);
35
41
  }
36
42
 
37
43
  &__title {
38
- @include nds-h1;
44
+ @include typography.h1;
39
45
  }
40
46
 
41
47
  &__intro {
42
- @include nds-lead;
48
+ @include typography.lead;
43
49
  }
44
50
 
45
51
  // Optional footer
46
52
  &__footer {
47
- border-top: rem($nds-spacing-xx-small) solid $nds-colour-hero-border;
48
- padding: rem($nds-spacing-medium 0);
53
+ border-top: utils.rem(spacing.$xx-small) solid colours.$hero-border;
54
+ padding: utils.rem(spacing.$medium 0);
49
55
 
50
56
  p,
51
57
  ul {
@@ -54,7 +60,7 @@
54
60
  }
55
61
  }
56
62
 
57
- @include mq($from: md) {
63
+ @include media-queries.mq($from: md) {
58
64
  &__copy {
59
65
  float: left;
60
66
  margin-bottom: 0;