@helsenorge/designsystem-react 1.0.0-beta81 → 1.0.0-beta83

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 (77) hide show
  1. package/{Button-e2087687.js → Button-7200b617.js} +2 -2
  2. package/Button-7200b617.js.map +1 -0
  3. package/Check-6291ad09.js +2 -0
  4. package/Check-6291ad09.js.map +1 -0
  5. package/Checkbox-ffdd3cb7.js +2 -0
  6. package/Checkbox-ffdd3cb7.js.map +1 -0
  7. package/FormGroup-17d2a3d3.js +2 -0
  8. package/FormGroup-17d2a3d3.js.map +1 -0
  9. package/Loader-9e099b42.js +2 -0
  10. package/Loader-9e099b42.js.map +1 -0
  11. package/Modal-5c2defa7.js +2 -0
  12. package/Modal-5c2defa7.js.map +1 -0
  13. package/Validation-e113da7e.js +2 -0
  14. package/Validation-e113da7e.js.map +1 -0
  15. package/components/Avatar/index.js +1 -1
  16. package/components/Button/index.js +1 -1
  17. package/components/ButtonWithModal/ButtonWithModal.d.ts +1 -1
  18. package/components/ButtonWithModal/ButtonWithModal.d.ts.map +1 -1
  19. package/components/ButtonWithModal/index.js +1 -1
  20. package/components/Checkbox/Checkbox.d.ts +31 -0
  21. package/components/Checkbox/Checkbox.d.ts.map +1 -0
  22. package/components/Checkbox/componentdata.json +259 -0
  23. package/components/Checkbox/index.d.ts +3 -0
  24. package/components/Checkbox/index.d.ts.map +1 -0
  25. package/components/Checkbox/index.js +2 -0
  26. package/components/Checkbox/index.js.map +1 -0
  27. package/components/Checkbox/styles.module.scss +191 -0
  28. package/components/Checkbox/styles.module.scss.d.ts +25 -0
  29. package/components/ExpanderList/ExpanderList.d.ts.map +1 -1
  30. package/components/ExpanderList/index.js +1 -1
  31. package/components/FormExample/FormExample.d.ts +13 -0
  32. package/components/FormExample/FormExample.d.ts.map +1 -0
  33. package/components/FormExample/componentdata.json +63 -0
  34. package/components/FormExample/index.d.ts +3 -0
  35. package/components/FormExample/index.d.ts.map +1 -0
  36. package/components/FormExample/index.js +2 -0
  37. package/components/FormExample/index.js.map +1 -0
  38. package/components/FormGroup/FormGroup.d.ts +26 -0
  39. package/components/FormGroup/FormGroup.d.ts.map +1 -0
  40. package/components/FormGroup/componentdata.json +183 -0
  41. package/components/FormGroup/index.d.ts +3 -0
  42. package/components/FormGroup/index.d.ts.map +1 -0
  43. package/components/FormGroup/index.js +2 -0
  44. package/components/FormGroup/index.js.map +1 -0
  45. package/components/FormGroup/styles.module.scss +79 -0
  46. package/components/FormGroup/styles.module.scss.d.ts +22 -0
  47. package/components/LinkList/LinkList.d.ts.map +1 -1
  48. package/components/LinkList/index.js +1 -1
  49. package/components/LinkList/styles.module.scss +1 -4
  50. package/components/LinkList/styles.module.scss.d.ts +0 -1
  51. package/components/Loader/index.js +1 -1
  52. package/components/Modal/index.js +1 -1
  53. package/components/Modal/styles.module.scss +1 -0
  54. package/components/NotificationPanel/NotificationPanel.d.ts +2 -0
  55. package/components/NotificationPanel/NotificationPanel.d.ts.map +1 -1
  56. package/components/NotificationPanel/componentdata.json +19 -0
  57. package/components/NotificationPanel/index.js +1 -1
  58. package/components/NotificationPanel/styles.module.scss +4 -4
  59. package/components/Validation/Validation.d.ts +17 -0
  60. package/components/Validation/Validation.d.ts.map +1 -0
  61. package/components/Validation/componentdata.json +111 -0
  62. package/components/Validation/index.d.ts +3 -0
  63. package/components/Validation/index.d.ts.map +1 -0
  64. package/components/Validation/index.js +2 -0
  65. package/components/Validation/index.js.map +1 -0
  66. package/components/Validation/styles.module.scss +15 -0
  67. package/components/Validation/styles.module.scss.d.ts +10 -0
  68. package/package.json +2 -1
  69. package/scss/_palette.scss +1 -0
  70. package/uuid-484288be.js +2 -0
  71. package/uuid-484288be.js.map +1 -0
  72. package/Button-e2087687.js.map +0 -1
  73. package/Loader-3767cb6e.js +0 -2
  74. package/Loader-3767cb6e.js.map +0 -1
  75. package/Modal-459c67d7.js +0 -2
  76. package/Modal-459c67d7.js.map +0 -1
  77. package/components/Tabs/componentdata.json +0 -3
@@ -0,0 +1,183 @@
1
+ {
2
+ "props": {
3
+ "title": {
4
+ "defaultValue": null,
5
+ "description": "title for the the fieldset",
6
+ "name": "title",
7
+ "parent": {
8
+ "fileName": "src/components/FormGroup/FormGroup.tsx",
9
+ "name": "FormGroupProps"
10
+ },
11
+ "declarations": [
12
+ {
13
+ "fileName": "src/components/FormGroup/FormGroup.tsx",
14
+ "name": "FormGroupProps"
15
+ }
16
+ ],
17
+ "required": false,
18
+ "type": {
19
+ "name": "string"
20
+ }
21
+ },
22
+ "legend": {
23
+ "defaultValue": null,
24
+ "description": "text placed in the legend tag of the fieldset",
25
+ "name": "legend",
26
+ "parent": {
27
+ "fileName": "src/components/FormGroup/FormGroup.tsx",
28
+ "name": "FormGroupProps"
29
+ },
30
+ "declarations": [
31
+ {
32
+ "fileName": "src/components/FormGroup/FormGroup.tsx",
33
+ "name": "FormGroupProps"
34
+ }
35
+ ],
36
+ "required": false,
37
+ "type": {
38
+ "name": "string"
39
+ }
40
+ },
41
+ "children": {
42
+ "defaultValue": null,
43
+ "description": "Items in the ExpanderList",
44
+ "name": "children",
45
+ "parent": {
46
+ "fileName": "src/components/FormGroup/FormGroup.tsx",
47
+ "name": "FormGroupProps"
48
+ },
49
+ "declarations": [
50
+ {
51
+ "fileName": "src/components/FormGroup/FormGroup.tsx",
52
+ "name": "FormGroupProps"
53
+ }
54
+ ],
55
+ "required": false,
56
+ "type": {
57
+ "name": "ReactNode"
58
+ }
59
+ },
60
+ "className": {
61
+ "defaultValue": null,
62
+ "description": "Adds custom classes to the element.",
63
+ "name": "className",
64
+ "parent": {
65
+ "fileName": "src/components/FormGroup/FormGroup.tsx",
66
+ "name": "FormGroupProps"
67
+ },
68
+ "declarations": [
69
+ {
70
+ "fileName": "src/components/FormGroup/FormGroup.tsx",
71
+ "name": "FormGroupProps"
72
+ }
73
+ ],
74
+ "required": false,
75
+ "type": {
76
+ "name": "string"
77
+ }
78
+ },
79
+ "mode": {
80
+ "defaultValue": null,
81
+ "description": "Changes the visuals of the formgroup",
82
+ "name": "mode",
83
+ "parent": {
84
+ "fileName": "src/components/FormGroup/FormGroup.tsx",
85
+ "name": "FormGroupProps"
86
+ },
87
+ "declarations": [
88
+ {
89
+ "fileName": "src/components/FormGroup/FormGroup.tsx",
90
+ "name": "FormGroupProps"
91
+ }
92
+ ],
93
+ "required": false,
94
+ "type": {
95
+ "name": "enum",
96
+ "raw": "\"on-white\" | \"on-blueberry\" | \"on-dark\" | undefined",
97
+ "value": [
98
+ {
99
+ "value": "undefined"
100
+ },
101
+ {
102
+ "value": "\"on-white\""
103
+ },
104
+ {
105
+ "value": "\"on-blueberry\""
106
+ },
107
+ {
108
+ "value": "\"on-dark\""
109
+ }
110
+ ]
111
+ }
112
+ },
113
+ "variant": {
114
+ "defaultValue": null,
115
+ "description": "Changes the visuals of the formgroup",
116
+ "name": "variant",
117
+ "parent": {
118
+ "fileName": "src/components/FormGroup/FormGroup.tsx",
119
+ "name": "FormGroupProps"
120
+ },
121
+ "declarations": [
122
+ {
123
+ "fileName": "src/components/FormGroup/FormGroup.tsx",
124
+ "name": "FormGroupProps"
125
+ }
126
+ ],
127
+ "required": false,
128
+ "type": {
129
+ "name": "enum",
130
+ "raw": "\"normal\" | \"bigform\" | undefined",
131
+ "value": [
132
+ {
133
+ "value": "undefined"
134
+ },
135
+ {
136
+ "value": "\"normal\""
137
+ },
138
+ {
139
+ "value": "\"bigform\""
140
+ }
141
+ ]
142
+ }
143
+ },
144
+ "error": {
145
+ "defaultValue": null,
146
+ "description": "Error message",
147
+ "name": "error",
148
+ "parent": {
149
+ "fileName": "src/components/FormGroup/FormGroup.tsx",
150
+ "name": "FormGroupProps"
151
+ },
152
+ "declarations": [
153
+ {
154
+ "fileName": "src/components/FormGroup/FormGroup.tsx",
155
+ "name": "FormGroupProps"
156
+ }
157
+ ],
158
+ "required": false,
159
+ "type": {
160
+ "name": "string"
161
+ }
162
+ },
163
+ "testId": {
164
+ "defaultValue": null,
165
+ "description": "Sets the data-testid attribute.",
166
+ "name": "testId",
167
+ "parent": {
168
+ "fileName": "src/components/FormGroup/FormGroup.tsx",
169
+ "name": "FormGroupProps"
170
+ },
171
+ "declarations": [
172
+ {
173
+ "fileName": "src/components/FormGroup/FormGroup.tsx",
174
+ "name": "FormGroupProps"
175
+ }
176
+ ],
177
+ "required": false,
178
+ "type": {
179
+ "name": "string"
180
+ }
181
+ }
182
+ }
183
+ }
@@ -0,0 +1,3 @@
1
+ import FormGroup from './FormGroup';
2
+ export default FormGroup;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FormGroup/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,eAAe,SAAS,CAAC"}
@@ -0,0 +1,2 @@
1
+ import{F as s}from"../../FormGroup-17d2a3d3.js";export{F as default}from"../../FormGroup-17d2a3d3.js";import"../../_rollupPluginBabelHelpers-e1c7fe69.js";import"react";import"../../index-9b84fabc.js";import"./styles.module.scss";import"../../Checkbox-ffdd3cb7.js";import"../../uuid-484288be.js";import"../../Check-6291ad09.js";import"../../constants-d1f48e8e.js";import"../../_tslib-51c8a283.js";import"../../color-acb834c6.js";import"../../index-19b48c51.js";import"../../palette-f206f488.js";import"../../grid-11a70eb7.js";import"../Checkbox/styles.module.scss";import"../../Title-863af332.js";import"../Title/styles.module.scss";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,79 @@
1
+ @import '../../scss/_spacers.scss';
2
+ @import '../../scss/_breakpoints.scss';
3
+ @import '../../scss/_palette.scss';
4
+ @import '../../scss/font-settings.scss';
5
+
6
+ .form-group-wrapper {
7
+ padding: getSpacer(s) getSpacer(xs) getSpacer(m);
8
+
9
+ @media (min-width: map-get($grid-breakpoints, md)) {
10
+ padding: getSpacer(s) getSpacer(m) getSpacer(l);
11
+ }
12
+
13
+ &--bigform {
14
+ background-color: $neutral50;
15
+ }
16
+
17
+ &--on-blueberry {
18
+ background-color: $blueberry50;
19
+ }
20
+
21
+ &--on-dark {
22
+ background-color: $blueberry800;
23
+ }
24
+
25
+ &--invalid {
26
+ background-color: $cherry50;
27
+ border-left: 0.25rem solid $cherry500;
28
+ }
29
+
30
+ &__title {
31
+ margin-bottom: getSpacer(l) !important;
32
+
33
+ &--on-dark {
34
+ color: $white;
35
+ }
36
+
37
+ &--bigform {
38
+ margin-left: getSpacer(l) !important;
39
+ }
40
+ }
41
+
42
+ &__errors {
43
+ font-size: $font-size-sm;
44
+ font-weight: 600;
45
+ color: $cherry500;
46
+ margin-top: 0;
47
+
48
+ &--bigform {
49
+ margin-left: getSpacer(l);
50
+ }
51
+ }
52
+ }
53
+
54
+ .form-group-wrapper:first-of-type {
55
+ padding-top: getSpacer(xl);
56
+ }
57
+
58
+ .form-group-wrapper:last-of-type {
59
+ padding-bottom: getSpacer(xl);
60
+ }
61
+
62
+ .form-group {
63
+ border: none;
64
+ padding: 0;
65
+ margin: 0;
66
+
67
+ &__legend {
68
+ font-size: $font-size-md;
69
+ font-weight: 600;
70
+
71
+ &--on-dark {
72
+ color: $white;
73
+ }
74
+
75
+ &--bigform {
76
+ padding: 0 getSpacer(l) getSpacer(l);
77
+ }
78
+ }
79
+ }
@@ -0,0 +1,22 @@
1
+ export type Styles = {
2
+ 'form-group': string;
3
+ 'form-group__legend': string;
4
+ 'form-group__legend--bigform': string;
5
+ 'form-group__legend--on-dark': string;
6
+ 'form-group-wrapper': string;
7
+ 'form-group-wrapper__errors': string;
8
+ 'form-group-wrapper__errors--bigform': string;
9
+ 'form-group-wrapper__title': string;
10
+ 'form-group-wrapper__title--bigform': string;
11
+ 'form-group-wrapper__title--on-dark': string;
12
+ 'form-group-wrapper--bigform': string;
13
+ 'form-group-wrapper--invalid': string;
14
+ 'form-group-wrapper--on-blueberry': string;
15
+ 'form-group-wrapper--on-dark': string;
16
+ };
17
+
18
+ export type ClassNames = keyof Styles;
19
+
20
+ declare const styles: Styles;
21
+
22
+ export default styles;
@@ -1 +1 @@
1
- {"version":3,"file":"LinkList.d.ts","sourceRoot":"","sources":["../../../src/components/LinkList/LinkList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAQnD,oBAAY,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAExD,oBAAY,cAAc,GAAG,YAAY,CAAC;AAC1C,oBAAY,QAAQ,GAAG,KAAK,CAAC,yBAAyB,CAAC,SAAS,GAAG,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC;AACvG,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,yBAAyB,CAAC,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;IAC/H,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,UAAU,aAAa;IACrB,4BAA4B;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,KAAK,EAAE,cAAc,CAAC;IACtB,sCAAsC;IACtC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2DAA2D;IAC3D,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,yDAAyD;IACzD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,oCAAoC;IACpC,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB;AAED,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC;IACxE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AA6CD,eAAO,MAAM,QAAQ,mBAqBE,CAAC;AAKxB,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"LinkList.d.ts","sourceRoot":"","sources":["../../../src/components/LinkList/LinkList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAQnD,oBAAY,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAExD,oBAAY,cAAc,GAAG,YAAY,CAAC;AAC1C,oBAAY,QAAQ,GAAG,KAAK,CAAC,yBAAyB,CAAC,SAAS,GAAG,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC;AACvG,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,yBAAyB,CAAC,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;IAC/H,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,UAAU,aAAa;IACrB,4BAA4B;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,KAAK,EAAE,cAAc,CAAC;IACtB,sCAAsC;IACtC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2DAA2D;IAC3D,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,yDAAyD;IACzD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,oCAAoC;IACpC,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB;AAED,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC;IACxE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AA4CD,eAAO,MAAM,QAAQ,mBAqBE,CAAC;AAKxB,eAAe,QAAQ,CAAC"}
@@ -1,2 +1,2 @@
1
- import{a as e}from"../../_rollupPluginBabelHelpers-e1c7fe69.js";import{_ as l}from"../../_tslib-51c8a283.js";import r from"react";import{c as a}from"../../index-9b84fabc.js";import{a as i,I as o}from"../../constants-d1f48e8e.js";import{u as s,B as t}from"../../useBreakpoint-a8fa8a61.js";import{u as n}from"../../useHover-57ad4df9.js";import m from"./styles.module.scss";import"../../useWindowSize-c22d7634.js";import"../../grid-11a70eb7.js";var c=function(e){var l=e.isExtraSmall,a=e.isHovered,i=r.createElement("path",{d:"M19.171 32.951l1.409 1.42L31.031 24 20.58 13.63l-1.409 1.42 9.02 8.95z"}),o=r.createElement("path",{d:"M24.479 11.63L36.93 23.999 24.479 36.37l-1.409-1.419L33.083 25H13v-2h20.085L23.07 13.049z"}),s=r.createElement("path",{d:"M17.885 32.577l1.779 1.793 10.451-10.371L19.664 13.63l-1.779 1.793 8.644 8.576z"});return l?a?r.createElement("path",{d:"M25.98 11.103l12.977 12.896L25.98 36.897l-1.78-1.794 9.899-9.841-20.204.001v-2.526l20.204-.001-9.899-9.839z"}):s:a?o:i},d=r.forwardRef((function(d,f){var v,p=d.children,h=d.className,u=void 0===h?"":h,_=d.color,k=void 0===_?"neutral":_,E=d.icon,z=d.size,b=void 0===z?"medium":z,L=d.chevron,j=void 0!==L&&L,N=l(d,["children","className","color","icon","size","chevron"]),H=n(),g=H.hoverRef,B=H.isHovered,S=s(),M="small"!==b&&!(!j&&!E);return r.createElement("li",{ref:f},r.createElement("a",Object.assign({className:a(m["link-list__anchor"],m["link-list__anchor--"+k],(v={},e(v,m["link-list__anchor--hasicon"],M),e(v,m["link-list__anchor--small"],"small"===b),e(v,m["link-list__anchor--medium"],"medium"===b),e(v,m["link-list__anchor--large"],"large"===b),v),u),ref:g},N),M&&E&&r.createElement("span",{className:m["link-list__icon"]},r.cloneElement(E,{size:S===t.Xs?i.XSmall:i.Small,isHovered:B})),r.createElement("span",{className:m["link-list__content"]},p),M&&j&&r.createElement("span",{className:m["link-list__chevron"]},r.createElement(o,{svgIcon:c,isHovered:B,size:i.XSmall}))))})),f=r.forwardRef((function(l,i){var o,s=l.children,t=l.className,n=void 0===t?"":t,c=l.chevron,f=void 0!==c&&c,v=l.size,p=void 0===v?"medium":v,h=l.color,u=l.topBorder,_=void 0===u||u,k=l.bottomBorder,E=void 0===k||k;return r.createElement("ul",{ref:i,className:a(m["link-list"],(o={},e(o,m["link-list--hastopborder"],_),e(o,m["link-list--nobottomborder"],!E),o),n||"")},r.Children.map(s,(function(e){if(e.type===d)return r.cloneElement(e,{color:h,size:p,chevron:f})})))}));f.Link=d,d.displayName="LinkList.Link";export default f;
1
+ import{a as e}from"../../_rollupPluginBabelHelpers-e1c7fe69.js";import{_ as l}from"../../_tslib-51c8a283.js";import r from"react";import{c as a}from"../../index-9b84fabc.js";import{a as i,I as o}from"../../constants-d1f48e8e.js";import{u as s,B as t}from"../../useBreakpoint-a8fa8a61.js";import{u as n}from"../../useHover-57ad4df9.js";import m from"./styles.module.scss";import"../../useWindowSize-c22d7634.js";import"../../grid-11a70eb7.js";var c=function(e){var l=e.isExtraSmall,a=e.isHovered,i=r.createElement("path",{d:"M19.171 32.951l1.409 1.42L31.031 24 20.58 13.63l-1.409 1.42 9.02 8.95z"}),o=r.createElement("path",{d:"M24.479 11.63L36.93 23.999 24.479 36.37l-1.409-1.419L33.083 25H13v-2h20.085L23.07 13.049z"}),s=r.createElement("path",{d:"M17.885 32.577l1.779 1.793 10.451-10.371L19.664 13.63l-1.779 1.793 8.644 8.576z"});return l?a?r.createElement("path",{d:"M25.98 11.103l12.977 12.896L25.98 36.897l-1.78-1.794 9.899-9.841-20.204.001v-2.526l20.204-.001-9.899-9.839z"}):s:a?o:i},d=r.forwardRef((function(d,f){var v,p=d.children,u=d.className,h=void 0===u?"":u,_=d.color,k=void 0===_?"neutral":_,E=d.icon,z=d.size,b=void 0===z?"medium":z,L=d.chevron,j=void 0!==L&&L,N=l(d,["children","className","color","icon","size","chevron"]),H=n(),g=H.hoverRef,B=H.isHovered,S=s(),M="small"!==b&&!(!j&&!E);return r.createElement("li",{ref:f},r.createElement("a",Object.assign({className:a(m["link-list__anchor"],m["link-list__anchor--"+k],(v={},e(v,m["link-list__anchor--small"],"small"===b),e(v,m["link-list__anchor--medium"],"medium"===b),e(v,m["link-list__anchor--large"],"large"===b),v),h),ref:g},N),M&&E&&r.createElement("span",{className:m["link-list__icon"]},r.cloneElement(E,{size:S===t.Xs?i.XSmall:i.Small,isHovered:B})),r.createElement("span",{className:m["link-list__content"]},p),M&&j&&r.createElement("span",{className:m["link-list__chevron"]},r.createElement(o,{svgIcon:c,isHovered:B,size:i.XSmall}))))})),f=r.forwardRef((function(l,i){var o,s=l.children,t=l.className,n=void 0===t?"":t,c=l.chevron,f=void 0!==c&&c,v=l.size,p=void 0===v?"medium":v,u=l.color,h=l.topBorder,_=void 0===h||h,k=l.bottomBorder,E=void 0===k||k;return r.createElement("ul",{ref:i,className:a(m["link-list"],(o={},e(o,m["link-list--hastopborder"],_),e(o,m["link-list--nobottomborder"],!E),o),n||"")},r.Children.map(s,(function(e){if(e.type===d)return r.cloneElement(e,{color:u,size:p,chevron:f})})))}));f.Link=d,d.displayName="LinkList.Link";export default f;
2
2
  //# sourceMappingURL=index.js.map
@@ -25,15 +25,12 @@
25
25
 
26
26
  &__anchor {
27
27
  display: flex;
28
- min-height: 4.5rem;
28
+ min-height: 4rem;
29
29
  text-decoration: none;
30
30
  align-items: center;
31
31
  color: $black;
32
32
  cursor: pointer;
33
33
 
34
- &--hasicon {
35
- min-height: unset;
36
- }
37
34
  &--small {
38
35
  padding: getSpacer(xs) 0 getSpacer(xs) 0;
39
36
  font-size: $font-size-xs;
@@ -5,7 +5,6 @@ export type Styles = {
5
5
  'link-list__anchor--black': string;
6
6
  'link-list__anchor--blueberry': string;
7
7
  'link-list__anchor--cherry': string;
8
- 'link-list__anchor--hasicon': string;
9
8
  'link-list__anchor--kiwi': string;
10
9
  'link-list__anchor--large': string;
11
10
  'link-list__anchor--medium': string;
@@ -1,2 +1,2 @@
1
- import{L as e}from"../../Loader-3767cb6e.js";export{L as default}from"../../Loader-3767cb6e.js";import"../../_rollupPluginBabelHelpers-e1c7fe69.js";import"react";import"../../index-9b84fabc.js";import"./styles.module.scss";
1
+ import{L as e}from"../../Loader-9e099b42.js";export{L as default}from"../../Loader-9e099b42.js";import"../../_rollupPluginBabelHelpers-e1c7fe69.js";import"react";import"../../index-9b84fabc.js";import"../../uuid-484288be.js";import"./styles.module.scss";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{M as s}from"../../Modal-459c67d7.js";export{M as default}from"../../Modal-459c67d7.js";import"react";import"../../index-9b84fabc.js";import"../../Loader-3767cb6e.js";import"../../_rollupPluginBabelHelpers-e1c7fe69.js";import"../Loader/styles.module.scss";import"../../palette-f206f488.js";import"../../Button-e2087687.js";import"../../_tslib-51c8a283.js";import"../../color-acb834c6.js";import"../../index-19b48c51.js";import"../../grid-11a70eb7.js";import"../../constants-d1f48e8e.js";import"../../useHover-57ad4df9.js";import"../../useWindowSize-c22d7634.js";import"../Button/styles.module.scss";import"../../AlertSignFill-64bfef57.js";import"./styles.module.scss";import"../../Title-863af332.js";import"../Title/styles.module.scss";
1
+ import{M as s}from"../../Modal-5c2defa7.js";export{M as default}from"../../Modal-5c2defa7.js";import"react";import"../../index-9b84fabc.js";import"../../uuid-484288be.js";import"../../palette-f206f488.js";import"../../Button-7200b617.js";import"../../_rollupPluginBabelHelpers-e1c7fe69.js";import"../../_tslib-51c8a283.js";import"../../color-acb834c6.js";import"../../index-19b48c51.js";import"../../grid-11a70eb7.js";import"../../constants-d1f48e8e.js";import"../../Loader-9e099b42.js";import"../Loader/styles.module.scss";import"../../useHover-57ad4df9.js";import"../../useWindowSize-c22d7634.js";import"../Button/styles.module.scss";import"../../AlertSignFill-64bfef57.js";import"./styles.module.scss";import"../../Title-863af332.js";import"../Title/styles.module.scss";
2
2
  //# sourceMappingURL=index.js.map
@@ -86,6 +86,7 @@
86
86
  &--image {
87
87
  max-height: calc(100vh - 24px);
88
88
  max-width: calc(100vw - 24px);
89
+ width: 100%;
89
90
 
90
91
  &__img {
91
92
  line-height: 0;
@@ -20,6 +20,8 @@ interface NotificationPanelProps {
20
20
  fluid?: boolean;
21
21
  /** Sets a label for the notification panel. */
22
22
  label?: string;
23
+ /** Close button aria-label */
24
+ ariaLabelCloseBtn?: string;
23
25
  }
24
26
  export declare const variantToColorMap: {
25
27
  info: {
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationPanel.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationPanel/NotificationPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAe1B,oBAAY,yBAAyB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AAC7E,oBAAY,sBAAsB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAElE,UAAU,sBAAsB;IAC9B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,mEAAmE;IACnE,OAAO,CAAC,EAAE,yBAAyB,CAAC;IACpC,0DAA0D;IAC1D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,mDAAmD;IACnD,IAAI,CAAC,EAAE,sBAAsB,CAAC;IAC9B,sFAAsF;IACtF,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IAClE,wDAAwD;IACxD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,6EAA6E;IAC7E,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,+CAA+C;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;CAK7B,CAAC;AAUF,QAAA,MAAM,iBAAiB,+FAwFrB,CAAC;AAEH,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"NotificationPanel.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationPanel/NotificationPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAe1B,oBAAY,yBAAyB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AAC7E,oBAAY,sBAAsB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAElE,UAAU,sBAAsB;IAC9B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,mEAAmE;IACnE,OAAO,CAAC,EAAE,yBAAyB,CAAC;IACpC,0DAA0D;IAC1D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,mDAAmD;IACnD,IAAI,CAAC,EAAE,sBAAsB,CAAC;IAC9B,sFAAsF;IACtF,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IAClE,wDAAwD;IACxD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,6EAA6E;IAC7E,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,+CAA+C;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8BAA8B;IAC9B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;CAK7B,CAAC;AAUF,QAAA,MAAM,iBAAiB,+FAwFrB,CAAC;AAEH,eAAe,iBAAiB,CAAC"}
@@ -203,6 +203,25 @@
203
203
  "type": {
204
204
  "name": "string"
205
205
  }
206
+ },
207
+ "ariaLabelCloseBtn": {
208
+ "defaultValue": null,
209
+ "description": "Close button aria-label",
210
+ "name": "ariaLabelCloseBtn",
211
+ "parent": {
212
+ "fileName": "src/components/NotificationPanel/NotificationPanel.tsx",
213
+ "name": "NotificationPanelProps"
214
+ },
215
+ "declarations": [
216
+ {
217
+ "fileName": "src/components/NotificationPanel/NotificationPanel.tsx",
218
+ "name": "NotificationPanelProps"
219
+ }
220
+ ],
221
+ "required": false,
222
+ "type": {
223
+ "name": "string"
224
+ }
206
225
  }
207
226
  }
208
227
  }
@@ -1,2 +1,2 @@
1
- import{a as e}from"../../_rollupPluginBabelHelpers-e1c7fe69.js";import a from"react";import{c as o}from"../../index-9b84fabc.js";import{p as t}from"../../palette-f206f488.js";import{I as n,a as i}from"../../constants-d1f48e8e.js";import{u as r}from"../../useHover-57ad4df9.js";import{a as l,A as c,X as s}from"../../AlertSignFill-64bfef57.js";import m from"./styles.module.scss";import"../../_tslib-51c8a283.js";var f={info:a.createElement(n,{svgIcon:function(e){var o=e.isExtraSmall,t=e.isHovered,n=a.createElement("path",{d:"M25.672 30.501a.682.682 0 01-.322-.272.835.835 0 01-.11-.443v-7.917l-.112-.112-3.651.194v.544c.148.015.314.05.495.104.18.055.316.112.406.172a.994.994 0 01.299.316.88.88 0 01.119.459v6.337a.879.879 0 01-.098.443.623.623 0 01-.335.257c-.09.035-.197.06-.32.074a8.883 8.883 0 01-.38.038v.544h4.709v-.544a2.45 2.45 0 01-.7-.194M24 37.604c-7.5 0-13.604-6.103-13.604-13.604 0-7.501 6.104-13.603 13.604-13.603 7.502 0 13.602 6.102 13.602 13.603 0 7.501-6.1 13.604-13.601 13.604m0-28.909C15.56 8.695 8.694 15.562 8.694 24c0 8.438 6.867 15.305 15.305 15.305 8.438 0 15.304-6.867 15.304-15.305 0-8.438-6.866-15.305-15.304-15.305m-.274 10.632a1.559 1.559 0 100-3.118 1.559 1.559 0 000 3.118"}),i=a.createElement("path",{d:"M25.672 30.501a.682.682 0 01-.322-.272.835.835 0 01-.11-.443v-7.917l-.112-.112-3.651.194v.544c.148.015.314.05.495.104.18.055.316.112.406.172a.994.994 0 01.299.316.88.88 0 01.119.459v6.337a.879.879 0 01-.098.443.623.623 0 01-.335.257c-.09.035-.197.06-.32.074a8.883 8.883 0 01-.38.038v.544h4.709v-.544a2.45 2.45 0 01-.7-.194M24 37.604c-7.5 0-13.604-6.103-13.604-13.604 0-7.501 6.104-13.603 13.604-13.603 7.502 0 13.602 6.102 13.602 13.603 0 7.501-6.1 13.604-13.601 13.604m0-28.909C15.56 8.695 8.694 15.562 8.694 24c0 8.438 6.867 15.305 15.305 15.305 8.438 0 15.304-6.867 15.304-15.305 0-8.438-6.866-15.305-15.304-15.305m-.274 8.632a1.559 1.559 0 100-3.118 1.559 1.559 0 000 3.118"}),r=a.createElement("path",{d:"M25.668 30.487a.68.68 0 01-.32-.271.833.833 0 01-.111-.442v-7.9l-.112-.112-3.643.193v.543c.148.015.313.05.495.104.18.055.315.112.405.172a.991.991 0 01.297.315.877.877 0 01.119.458v6.324c0 .182-.032.33-.097.442a.622.622 0 01-.334.256c-.09.035-.197.06-.32.074-.124.015-.25.028-.38.038v.543h4.7v-.543a2.445 2.445 0 01-.699-.194M24 37.575c-7.485 0-13.575-6.09-13.575-13.575 0-7.485 6.09-13.574 13.575-13.574 7.486 0 13.574 6.089 13.574 13.574 0 7.485-6.088 13.575-13.574 13.575m0-28.848C15.58 8.727 8.728 15.58 8.728 24S15.579 39.273 24 39.273c8.42 0 15.272-6.853 15.272-15.273S32.421 8.727 24 8.727m-.274 10.61a1.556 1.556 0 100-3.112 1.556 1.556 0 000 3.112"});return o?t?a.createElement("path",{d:"M25.668 30.487a.68.68 0 01-.32-.271.833.833 0 01-.111-.442v-7.9l-.112-.112-3.643.193v.543c.148.015.313.05.495.104.18.055.315.112.405.172a.991.991 0 01.297.315.877.877 0 01.119.458v6.324c0 .182-.032.33-.097.442a.622.622 0 01-.334.256c-.09.035-.197.06-.32.074-.124.015-.25.028-.38.038v.543h4.7v-.543a2.445 2.445 0 01-.699-.194M24 37.575c-7.485 0-13.575-6.09-13.575-13.575 0-7.485 6.09-13.574 13.575-13.574 7.486 0 13.574 6.089 13.574 13.574 0 7.485-6.088 13.575-13.574 13.575m0-28.848C15.58 8.727 8.728 15.58 8.728 24S15.579 39.273 24 39.273c8.42 0 15.272-6.853 15.272-15.273S32.421 8.727 24 8.727m-.274 8.084a1.556 1.556 0 100-3.112 1.556 1.556 0 000 3.112"}):r:t?i:n},color:t.kiwi900,hoverColor:t.kiwi900}),warn:a.createElement(n,{svgIcon:l,color:"black",hoverColor:"black"}),alert:a.createElement(n,{svgIcon:c,color:t.cherry500,hoverColor:t.cherry500}),alertLabel:a.createElement(n,{svgIcon:l,color:t.cherry500,hoverColor:t.cherry500}),crisis:a.createElement(n,{svgIcon:c,color:t.banana200,hoverColor:t.banana200})},v=a.forwardRef((function(l,c){var v,p,d=l.children,h=l.variant,_=void 0===h?"info":h,u=l.shadow,b=void 0!==u&&u,E=l.dismissable,C=void 0!==E&&E,w=l.onClick,g=l.label,y=l.fluid,M=void 0!==y&&y,I=l.size,N=l.className,S=r(void 0,C),j=S.hoverRef,k=S.isHovered,H=o(m["notification-panel__close-button"],"crisis"===_?m["notification-panel__close-button--crisis"]:"");var x;return x=a.createElement("div",{ref:c,className:o(m["notification-panel"],m["notification-panel--"+I],m["notification-panel--"+_],(v={},e(v,m["notification-panel--shadow"],!M&&b),e(v,m["notification-panel--haslabel"],!!g&&!d),e(v,m["notification-panel--dismissable"],C),v),N||"")},a.createElement("span",{className:m["notification-panel__icon"]},f["alert"===_&&g&&!d?"alertLabel":_]),a.createElement("section",{"aria-label":function(){if(d){var e="";return a.Children.map(d,(function(a){"string"==typeof a&&(e+=a)})),e}return""}(),className:o(m["notification-panel__content"],(p={},e(p,m["notification-panel__content--crisis"],"crisis"===_),e(p,m["notification-panel__content--haslabel"],!!g&&!d),e(p,m["notification-panel__content--isred"],"alert"===_&&!!g&&!d),p))},g?a.createElement("h1",{className:m["notification-panel__label"],dangerouslySetInnerHTML:{__html:g}}):null,d),C?a.createElement("span",{className:m["notification-panel__action-column"]},a.createElement("button",{className:H,onClick:w,ref:j},a.createElement(n,{svgIcon:s,isHovered:k,size:i.XSmall,color:"crisis"===_?t.white:t.blueberry500,hoverColor:"crisis"===_?t.white:t.blueberry700}))):null),M?a.createElement("div",{className:o(m["notification-panel__fluidwrapper"],m["notification-panel__fluidwrapper--"+_],e({},m["notification-panel__fluidwrapper--shadow"],b))},x):x}));export default v;
1
+ import{a as e}from"../../_rollupPluginBabelHelpers-e1c7fe69.js";import a from"react";import{c as o}from"../../index-9b84fabc.js";import{p as n}from"../../palette-f206f488.js";import{I as t,a as i}from"../../constants-d1f48e8e.js";import{u as l}from"../../useHover-57ad4df9.js";import{a as r,A as c,X as s}from"../../AlertSignFill-64bfef57.js";import m from"./styles.module.scss";import"../../_tslib-51c8a283.js";var f={info:a.createElement(t,{svgIcon:function(e){var o=e.isExtraSmall,n=e.isHovered,t=a.createElement("path",{d:"M25.672 30.501a.682.682 0 01-.322-.272.835.835 0 01-.11-.443v-7.917l-.112-.112-3.651.194v.544c.148.015.314.05.495.104.18.055.316.112.406.172a.994.994 0 01.299.316.88.88 0 01.119.459v6.337a.879.879 0 01-.098.443.623.623 0 01-.335.257c-.09.035-.197.06-.32.074a8.883 8.883 0 01-.38.038v.544h4.709v-.544a2.45 2.45 0 01-.7-.194M24 37.604c-7.5 0-13.604-6.103-13.604-13.604 0-7.501 6.104-13.603 13.604-13.603 7.502 0 13.602 6.102 13.602 13.603 0 7.501-6.1 13.604-13.601 13.604m0-28.909C15.56 8.695 8.694 15.562 8.694 24c0 8.438 6.867 15.305 15.305 15.305 8.438 0 15.304-6.867 15.304-15.305 0-8.438-6.866-15.305-15.304-15.305m-.274 10.632a1.559 1.559 0 100-3.118 1.559 1.559 0 000 3.118"}),i=a.createElement("path",{d:"M25.672 30.501a.682.682 0 01-.322-.272.835.835 0 01-.11-.443v-7.917l-.112-.112-3.651.194v.544c.148.015.314.05.495.104.18.055.316.112.406.172a.994.994 0 01.299.316.88.88 0 01.119.459v6.337a.879.879 0 01-.098.443.623.623 0 01-.335.257c-.09.035-.197.06-.32.074a8.883 8.883 0 01-.38.038v.544h4.709v-.544a2.45 2.45 0 01-.7-.194M24 37.604c-7.5 0-13.604-6.103-13.604-13.604 0-7.501 6.104-13.603 13.604-13.603 7.502 0 13.602 6.102 13.602 13.603 0 7.501-6.1 13.604-13.601 13.604m0-28.909C15.56 8.695 8.694 15.562 8.694 24c0 8.438 6.867 15.305 15.305 15.305 8.438 0 15.304-6.867 15.304-15.305 0-8.438-6.866-15.305-15.304-15.305m-.274 8.632a1.559 1.559 0 100-3.118 1.559 1.559 0 000 3.118"}),l=a.createElement("path",{d:"M25.668 30.487a.68.68 0 01-.32-.271.833.833 0 01-.111-.442v-7.9l-.112-.112-3.643.193v.543c.148.015.313.05.495.104.18.055.315.112.405.172a.991.991 0 01.297.315.877.877 0 01.119.458v6.324c0 .182-.032.33-.097.442a.622.622 0 01-.334.256c-.09.035-.197.06-.32.074-.124.015-.25.028-.38.038v.543h4.7v-.543a2.445 2.445 0 01-.699-.194M24 37.575c-7.485 0-13.575-6.09-13.575-13.575 0-7.485 6.09-13.574 13.575-13.574 7.486 0 13.574 6.089 13.574 13.574 0 7.485-6.088 13.575-13.574 13.575m0-28.848C15.58 8.727 8.728 15.58 8.728 24S15.579 39.273 24 39.273c8.42 0 15.272-6.853 15.272-15.273S32.421 8.727 24 8.727m-.274 10.61a1.556 1.556 0 100-3.112 1.556 1.556 0 000 3.112"});return o?n?a.createElement("path",{d:"M25.668 30.487a.68.68 0 01-.32-.271.833.833 0 01-.111-.442v-7.9l-.112-.112-3.643.193v.543c.148.015.313.05.495.104.18.055.315.112.405.172a.991.991 0 01.297.315.877.877 0 01.119.458v6.324c0 .182-.032.33-.097.442a.622.622 0 01-.334.256c-.09.035-.197.06-.32.074-.124.015-.25.028-.38.038v.543h4.7v-.543a2.445 2.445 0 01-.699-.194M24 37.575c-7.485 0-13.575-6.09-13.575-13.575 0-7.485 6.09-13.574 13.575-13.574 7.486 0 13.574 6.089 13.574 13.574 0 7.485-6.088 13.575-13.574 13.575m0-28.848C15.58 8.727 8.728 15.58 8.728 24S15.579 39.273 24 39.273c8.42 0 15.272-6.853 15.272-15.273S32.421 8.727 24 8.727m-.274 8.084a1.556 1.556 0 100-3.112 1.556 1.556 0 000 3.112"}):l:n?i:t},color:n.kiwi900,hoverColor:n.kiwi900}),warn:a.createElement(t,{svgIcon:r,color:"black",hoverColor:"black"}),alert:a.createElement(t,{svgIcon:c,color:n.cherry500,hoverColor:n.cherry500}),alertLabel:a.createElement(t,{svgIcon:r,color:n.cherry500,hoverColor:n.cherry500}),crisis:a.createElement(t,{svgIcon:c,color:n.banana200,hoverColor:n.banana200})},v=a.forwardRef((function(r,c){var v,p,d,h=r.children,u=r.variant,_=void 0===u?"info":u,b=r.shadow,E=void 0!==b&&b,C=r.dismissable,w=void 0!==C&&C,g=r.onClick,y=r.label,M=r.fluid,k=void 0!==M&&M,I=r.size,N=r.className,S=l(void 0,w),j=S.hoverRef,H=S.isHovered,L=o(m["notification-panel__close-button"],"crisis"===_?m["notification-panel__close-button--crisis"]:"");var x;return x=a.createElement("div",{ref:c,className:o(m["notification-panel"],m["notification-panel--"+I],m["notification-panel--"+_],(v={},e(v,m["notification-panel--shadow"],!k&&E),e(v,m["notification-panel--haslabel"],!!y&&!h),e(v,m["notification-panel--dismissable"],w),v),N||"")},a.createElement("span",{className:m["notification-panel__icon"]},f["alert"===_&&y&&!h?"alertLabel":_]),a.createElement("section",{"aria-label":function(){if(h){var e="";return a.Children.map(h,(function(a){"string"==typeof a&&(e+=a)})),e}return""}(),className:o(m["notification-panel__content"],(p={},e(p,m["notification-panel__content--crisis"],"crisis"===_),e(p,m["notification-panel__content--haslabel"],!!y&&!h),e(p,m["notification-panel__content--isred"],"alert"===_&&!!y&&!h),p))},y?a.createElement("h1",{className:m["notification-panel__label"],dangerouslySetInnerHTML:{__html:y}}):null,h),w?a.createElement("span",{className:m["notification-panel__action-column"]},a.createElement("button",{className:L,onClick:g,ref:j,"aria-label":null!==(d=r.ariaLabelCloseBtn)&&void 0!==d?d:"Lukk"},a.createElement(t,{svgIcon:s,isHovered:H,size:i.XSmall,color:"crisis"===_?n.white:n.blueberry500,hoverColor:"crisis"===_?n.white:n.blueberry700}))):null),k?a.createElement("div",{className:o(m["notification-panel__fluidwrapper"],m["notification-panel__fluidwrapper--"+_],e({},m["notification-panel__fluidwrapper--shadow"],E))},x):x}));export default v;
2
2
  //# sourceMappingURL=index.js.map
@@ -164,8 +164,8 @@
164
164
  border: 2px solid transparent;
165
165
  }
166
166
  &:hover,
167
- :active,
168
- :focus {
167
+ &:active,
168
+ &:focus {
169
169
  background-color: rgba(8, 102, 124, 0.05);
170
170
  border-color: transparent;
171
171
  &:after {
@@ -177,8 +177,8 @@
177
177
  border-color: $white;
178
178
 
179
179
  &:hover,
180
- :active,
181
- :focus {
180
+ &:active,
181
+ &:focus {
182
182
  border-color: transparent;
183
183
  &:after {
184
184
  border-color: $white;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { FormVariant } from '../FormGroup/FormGroup';
3
+ interface ValidationProps {
4
+ /** text placed in the legend tag of the fieldset */
5
+ errorSummary?: string;
6
+ /** Items in the ExpanderList */
7
+ children?: React.ReactNode;
8
+ /** Adds custom classes to the element. */
9
+ className?: string;
10
+ /** Changes the visuals of the formgroup */
11
+ variant?: FormVariant;
12
+ /** Sets the data-testid attribute. */
13
+ testId?: string;
14
+ }
15
+ export declare const Validation: React.ForwardRefExoticComponent<ValidationProps & React.RefAttributes<HTMLElement>>;
16
+ export default Validation;
17
+ //# sourceMappingURL=Validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Validation.d.ts","sourceRoot":"","sources":["../../../src/components/Validation/Validation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAIrD,UAAU,eAAe;IACvB,oDAAoD;IACpD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,qFAgBrB,CAAC;AAEH,eAAe,UAAU,CAAC"}
@@ -0,0 +1,111 @@
1
+ {
2
+ "props": {
3
+ "errorSummary": {
4
+ "defaultValue": null,
5
+ "description": "text placed in the legend tag of the fieldset",
6
+ "name": "errorSummary",
7
+ "parent": {
8
+ "fileName": "src/components/Validation/Validation.tsx",
9
+ "name": "ValidationProps"
10
+ },
11
+ "declarations": [
12
+ {
13
+ "fileName": "src/components/Validation/Validation.tsx",
14
+ "name": "ValidationProps"
15
+ }
16
+ ],
17
+ "required": false,
18
+ "type": {
19
+ "name": "string"
20
+ }
21
+ },
22
+ "children": {
23
+ "defaultValue": null,
24
+ "description": "Items in the ExpanderList",
25
+ "name": "children",
26
+ "parent": {
27
+ "fileName": "src/components/Validation/Validation.tsx",
28
+ "name": "ValidationProps"
29
+ },
30
+ "declarations": [
31
+ {
32
+ "fileName": "src/components/Validation/Validation.tsx",
33
+ "name": "ValidationProps"
34
+ }
35
+ ],
36
+ "required": false,
37
+ "type": {
38
+ "name": "ReactNode"
39
+ }
40
+ },
41
+ "className": {
42
+ "defaultValue": null,
43
+ "description": "Adds custom classes to the element.",
44
+ "name": "className",
45
+ "parent": {
46
+ "fileName": "src/components/Validation/Validation.tsx",
47
+ "name": "ValidationProps"
48
+ },
49
+ "declarations": [
50
+ {
51
+ "fileName": "src/components/Validation/Validation.tsx",
52
+ "name": "ValidationProps"
53
+ }
54
+ ],
55
+ "required": false,
56
+ "type": {
57
+ "name": "string"
58
+ }
59
+ },
60
+ "variant": {
61
+ "defaultValue": null,
62
+ "description": "Changes the visuals of the formgroup",
63
+ "name": "variant",
64
+ "parent": {
65
+ "fileName": "src/components/Validation/Validation.tsx",
66
+ "name": "ValidationProps"
67
+ },
68
+ "declarations": [
69
+ {
70
+ "fileName": "src/components/Validation/Validation.tsx",
71
+ "name": "ValidationProps"
72
+ }
73
+ ],
74
+ "required": false,
75
+ "type": {
76
+ "name": "enum",
77
+ "raw": "\"normal\" | \"bigform\" | undefined",
78
+ "value": [
79
+ {
80
+ "value": "undefined"
81
+ },
82
+ {
83
+ "value": "\"normal\""
84
+ },
85
+ {
86
+ "value": "\"bigform\""
87
+ }
88
+ ]
89
+ }
90
+ },
91
+ "testId": {
92
+ "defaultValue": null,
93
+ "description": "Sets the data-testid attribute.",
94
+ "name": "testId",
95
+ "parent": {
96
+ "fileName": "src/components/Validation/Validation.tsx",
97
+ "name": "ValidationProps"
98
+ },
99
+ "declarations": [
100
+ {
101
+ "fileName": "src/components/Validation/Validation.tsx",
102
+ "name": "ValidationProps"
103
+ }
104
+ ],
105
+ "required": false,
106
+ "type": {
107
+ "name": "string"
108
+ }
109
+ }
110
+ }
111
+ }
@@ -0,0 +1,3 @@
1
+ import Validation from './Validation';
2
+ export default Validation;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Validation/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,eAAe,UAAU,CAAC"}
@@ -0,0 +1,2 @@
1
+ import{V as e}from"../../Validation-e113da7e.js";export{V as default}from"../../Validation-e113da7e.js";import"../../_rollupPluginBabelHelpers-e1c7fe69.js";import"react";import"../../index-9b84fabc.js";import"./styles.module.scss";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ @import '../../scss/_spacers.scss';
2
+ @import '../../scss/_palette.scss';
3
+ @import '../../scss/font-settings.scss';
4
+
5
+ .validation {
6
+ &__errors {
7
+ font-size: $font-size-sm;
8
+ font-weight: 600;
9
+ color: $cherry500;
10
+
11
+ &--bigform {
12
+ margin-left: getSpacer(l);
13
+ }
14
+ }
15
+ }