@nice-digital/nds-page-header 1.2.19-alpha.0 → 2.0.0-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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice-digital/nds-page-header",
3
- "version": "1.2.19-alpha.0",
3
+ "version": "2.0.0-alpha.0",
4
4
  "description": "Page header component for the NICE Design System",
5
5
  "keywords": [
6
6
  "header"
@@ -37,15 +37,15 @@
37
37
  "url": "https://github.com/nice-digital/nice-design-system/issues"
38
38
  },
39
39
  "dependencies": {
40
- "@nice-digital/nds-core": "^1.3.3-alpha.0",
40
+ "@nice-digital/nds-core": "^2.0.0-alpha.0",
41
41
  "prop-types": "^15.7.2"
42
42
  },
43
43
  "peerDependencies": {
44
- "react": "^16 || ^17",
45
- "react-dom": "^16 || ^17"
44
+ "react": "^16 || ^17 || ^18",
45
+ "react-dom": "^16 || ^17 || ^18"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@babel/cli": "^7.5.0"
49
49
  },
50
- "gitHead": "8624fdff10d45cdd07dec7f2eda7d2f4db68c474"
50
+ "gitHead": "66fbcb1c0c01b0afc6b51b0f3fe4719be92996b0"
51
51
  }
@@ -2,7 +2,13 @@
2
2
  /// @group components
3
3
  ////
4
4
 
5
- @import '~@nice-digital/nds-core/scss/core';
5
+ @use '@nice-digital/nds-core/scss/colours';
6
+ @use '@nice-digital/nds-core/scss/glyphs';
7
+ @use '@nice-digital/nds-core/scss/media-queries';
8
+ @use '@nice-digital/nds-core/scss/spacing';
9
+ @use '@nice-digital/nds-core/scss/typography';
10
+ @use '@nice-digital/nds-core/scss/utils';
11
+ @use '@nice-digital/nds-core/scss/visibility';
6
12
 
7
13
  /// Page header component.
8
14
  /// Used at the top of a page to contain an h1 and optional
@@ -23,37 +29,35 @@
23
29
  /// </header>
24
30
  /// @since 0.4.0
25
31
  .page-header {
26
- margin: rem(0 0 $nds-spacing-x-large 0);
32
+ margin: utils.rem(0 0 spacing.$x-large 0);
27
33
 
28
34
  &__pre-heading {
29
- @include nds-font-size(h5);
35
+ @include typography.font-size(h5);
30
36
  display: block;
31
- margin: rem(0);
32
- text-shadow: 0.5px 0 0 currentColor;
37
+ margin: utils.rem(0);
33
38
  }
34
39
 
35
40
  &__heading {
36
- @include nds-font-size(h1);
37
- margin: rem(0 0 $nds-spacing-small 0);
41
+ @include typography.font-size(h1);
42
+ margin: utils.rem(0 0 spacing.$small 0);
38
43
  }
39
44
 
40
45
  &__lead {
41
- @include nds-font-size(lead);
42
- margin: rem(0 0 $nds-spacing-small 0);
46
+ @include typography.font-size(lead);
47
+ margin: utils.rem(0 0 spacing.$small 0);
43
48
  }
44
49
 
45
50
  &__metadata {
46
- @include nds-font-size(lead);
51
+ @include typography.font-size(lead);
47
52
  display: flex;
48
53
  flex-direction: column;
49
54
  list-style: none;
50
- margin: rem(0 0 $nds-spacing-small 0);
55
+ margin: utils.rem(0 0 spacing.$small 0);
51
56
  max-width: none;
52
57
  padding: 0;
53
58
 
54
- @include mq($from: md) {
55
- flex-direction: row;
56
- flex-wrap: wrap;
59
+ @include media-queries.mq($from: md) {
60
+ flex-flow: row wrap;
57
61
 
58
62
  li {
59
63
  display: flex;
@@ -61,9 +65,9 @@
61
65
  white-space: nowrap;
62
66
 
63
67
  &:after {
64
- background: $nds-colour-icons;
65
- content: nds-get-glyph(zero-width-space);
66
- margin: em(0 $nds-spacing-small);
68
+ background: colours.$icons;
69
+ content: glyphs.get-glyph(zero-width-space);
70
+ margin: utils.em(0 spacing.$small);
67
71
  width: 1px;
68
72
  }
69
73
 
@@ -75,8 +79,8 @@
75
79
  }
76
80
 
77
81
  &__cta {
78
- @include nds-hide-print;
79
- @include nds-font-size(p);
82
+ @include visibility.hide-print;
83
+ @include typography.font-size(p);
80
84
  display: block;
81
85
  margin: 0;
82
86
  }