nsw-design-system 3.26.2 → 3.26.3

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/dist/js/main.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! NSW Design System v3.26.2 | MIT License */
1
+ /*! NSW Design System v3.26.3 | MIT License */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
4
4
  typeof define === 'function' && define.amd ? define('NSW', ['exports'], factory) :
@@ -7594,4 +7594,4 @@
7594
7594
 
7595
7595
  }));
7596
7596
 
7597
- ;(function(g){try{g.NSW=g.NSW||{};g.NSW.VERSION="3.26.2";}catch(e){} }(typeof globalThis!=='undefined'?globalThis:(typeof window!=='undefined'?window:self)));
7597
+ ;(function(g){try{g.NSW=g.NSW||{};g.NSW.VERSION="3.26.3";}catch(e){} }(typeof globalThis!=='undefined'?globalThis:(typeof window!=='undefined'?window:self)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nsw-design-system",
3
- "version": "3.26.2",
3
+ "version": "3.26.3",
4
4
  "description": "Design system for Digital NSW",
5
5
  "main": "dist/js/main.js",
6
6
  "types": "dist/js/main.d.ts",
@@ -16,6 +16,7 @@
16
16
  &:first-child {
17
17
  margin-top: 0;
18
18
  }
19
+
19
20
  }
20
21
 
21
22
  &__helper {
@@ -26,7 +27,9 @@
26
27
  @include nsw.font-size('xs');
27
28
 
28
29
  &--error,
29
- &--valid {
30
+ &--valid,
31
+ &--warning,
32
+ &--info {
30
33
  margin-top: nsw.rem(8px);
31
34
  padding: nsw.rem(8px);
32
35
  font-weight: var(--nsw-font-bold);
@@ -58,6 +61,36 @@
58
61
  color: var(--nsw-status-success);
59
62
  }
60
63
  }
64
+
65
+ &--warning {
66
+ align-items: flex-start;
67
+ font-weight: var(--nsw-font-normal);
68
+ background-color: var(--nsw-status-warning-bg);
69
+
70
+ .nsw-material-icons {
71
+ flex-shrink: 0;
72
+ color: var(--nsw-status-warning);
73
+ }
74
+
75
+ strong {
76
+ font-weight: var(--nsw-font-bold);
77
+ }
78
+ }
79
+
80
+ &--info {
81
+ align-items: flex-start;
82
+ font-weight: var(--nsw-font-normal);
83
+ background-color: var(--nsw-status-info-bg);
84
+
85
+ .nsw-material-icons {
86
+ flex-shrink: 0;
87
+ color: var(--nsw-status-info);
88
+ }
89
+
90
+ strong {
91
+ font-weight: var(--nsw-font-bold);
92
+ }
93
+ }
61
94
  }
62
95
 
63
96
  &__label {