@nice-digital/nds-horizontal-nav 1.1.16 → 1.1.19-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-horizontal-nav",
3
- "version": "1.1.16",
3
+ "version": "1.1.19-alpha.0",
4
4
  "description": "Horizontal navigation component for the NICE Design System",
5
5
  "keywords": [
6
6
  "navigation"
@@ -34,16 +34,16 @@
34
34
  "url": "https://github.com/nice-digital/nice-design-system/issues"
35
35
  },
36
36
  "dependencies": {
37
- "@nice-digital/nds-core": "^1.3.2",
37
+ "@nice-digital/nds-core": "^1.3.5-alpha.0",
38
38
  "classnames": "^2.2.6",
39
39
  "prop-types": "^15.7.2"
40
40
  },
41
41
  "peerDependencies": {
42
- "react": "^16 || ^17",
43
- "react-dom": "^16 || ^17"
42
+ "react": "^16 || ^17 || ^18",
43
+ "react-dom": "^16 || ^17 || ^18"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@babel/cli": "^7.5.0"
47
47
  },
48
- "gitHead": "db5e29bc9fa8afa7e33c19a8e06a65adafd99bc5"
48
+ "gitHead": "0ddae81edebd757a52ca6a2838610049a83acebd"
49
49
  }
@@ -4,11 +4,15 @@
4
4
 
5
5
  // stylelint-disable no-descending-specificity
6
6
 
7
- @import '~@nice-digital/nds-core/scss/core';
7
+ @use '@nice-digital/nds-core/scss/colours';
8
+ @use '@nice-digital/nds-core/scss/spacing';
9
+ @use '@nice-digital/nds-core/scss/media-queries';
10
+ @use '@nice-digital/nds-core/scss/utils';
11
+ @use '@nice-digital/nds-core/scss/visibility';
8
12
 
9
13
  .horizontal-nav {
10
- @include nds-hide-print;
11
- margin-bottom: rem($nds-spacing-large);
14
+ @include visibility.hide-print;
15
+ margin-bottom: utils.rem(spacing.$large);
12
16
  &__list {
13
17
  align-items: stretch;
14
18
  display: flex;
@@ -17,8 +21,8 @@
17
21
  list-style: none;
18
22
  margin: 0;
19
23
  max-width: 100%;
20
- @include mq($from: sm) {
21
- border-bottom: 3px solid $nds-colour-nice-black;
24
+ @include media-queries.mq($from: sm) {
25
+ border-bottom: 3px solid colours.$nice-black;
22
26
  flex-direction: row;
23
27
  }
24
28
  }
@@ -27,14 +31,14 @@
27
31
  &:first-of-type {
28
32
  margin-left: 0;
29
33
  }
30
- @include mq($from: sm) {
34
+ @include media-queries.mq($from: sm) {
31
35
  align-items: stretch;
32
36
  display: flex;
33
- margin: 0 rem($nds-spacing-small);
37
+ margin: 0 utils.rem(spacing.$small);
34
38
  text-align: center;
35
39
  }
36
- @include mq($until: sm) {
37
- border-top: 1px solid $nds-colour-border;
40
+ @include media-queries.mq($until: sm) {
41
+ border-top: 1px solid colours.$border;
38
42
  &:first-of-type {
39
43
  border-top: none;
40
44
  }
@@ -44,34 +48,34 @@
44
48
  display: block;
45
49
  line-height: 1em;
46
50
  margin-bottom: -1px; // to ensure there's no rendered gap between the bottom border and the border across the page
47
- padding: rem($nds-spacing-medium);
51
+ padding: utils.rem(spacing.$medium);
48
52
  text-decoration: none;
49
53
  &:hover {
50
54
  text-decoration: underline;
51
55
  }
52
56
  &[aria-current='true'] {
53
- background-color: $nds-colour-nice-grey-3;
54
- border-bottom: 4px solid $nds-colour-nice-black;
55
- color: $nds-colour-nice-black;
57
+ background-color: colours.$nice-grey-3;
58
+ border-bottom: 4px solid colours.$nice-black;
59
+ color: colours.$nice-black;
56
60
  font-weight: bold;
57
- @include mq($from: md) {
61
+ @include media-queries.mq($from: md) {
58
62
  background-color: unset;
59
63
  }
60
64
  }
61
- @include mq($until: sm) {
65
+ @include media-queries.mq($until: sm) {
62
66
  &:active {
63
- background-color: $nds-colour-nice-teal;
64
- color: $nds-colour-nice-white;
67
+ background-color: colours.$nice-teal;
68
+ color: colours.$nice-white;
65
69
  }
66
70
  }
67
- @include mq($from: sm) {
68
- padding: rem($nds-spacing-medium) rem($nds-spacing-small);
71
+ @include media-queries.mq($from: sm) {
72
+ padding: utils.rem(spacing.$medium) utils.rem(spacing.$small);
69
73
  }
70
- @include mq($from: md) {
71
- padding: rem($nds-spacing-medium);
74
+ @include media-queries.mq($from: md) {
75
+ padding: utils.rem(spacing.$medium);
72
76
  }
73
77
  }
74
- @include mq($until: sm) {
75
- border: 1px solid $nds-colour-border;
78
+ @include media-queries.mq($until: sm) {
79
+ border: 1px solid colours.$border;
76
80
  }
77
81
  }