@helsenorge/designsystem-react 1.0.0-beta84 → 1.0.0-beta85

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 (102) hide show
  1. package/Button-3f327b66.js +2 -0
  2. package/Button-3f327b66.js.map +1 -0
  3. package/{Checkbox-817eff9c.js → Checkbox-46666e69.js} +2 -2
  4. package/Checkbox-46666e69.js.map +1 -0
  5. package/FormGroup-b874ae21.js +2 -0
  6. package/FormGroup-b874ae21.js.map +1 -0
  7. package/{Loader-9e099b42.js → Loader-cf365332.js} +2 -2
  8. package/Loader-cf365332.js.map +1 -0
  9. package/Modal-0dd5ce43.js +2 -0
  10. package/Modal-0dd5ce43.js.map +1 -0
  11. package/Title-7c829525.js +2 -0
  12. package/Title-7c829525.js.map +1 -0
  13. package/Validation-b902407e.js +2 -0
  14. package/Validation-b902407e.js.map +1 -0
  15. package/_rollupPluginBabelHelpers-d0752906.js +2 -0
  16. package/_rollupPluginBabelHelpers-d0752906.js.map +1 -0
  17. package/components/AnchorLink/index.js +1 -1
  18. package/components/Badge/index.js +1 -1
  19. package/components/Button/Button.d.ts.map +1 -1
  20. package/components/Button/index.js +1 -1
  21. package/components/ButtonWithModal/componentdata.json +18 -6
  22. package/components/ButtonWithModal/index.js +1 -1
  23. package/components/Checkbox/index.js +1 -1
  24. package/components/Checkbox/styles.module.scss +20 -8
  25. package/components/Checkbox/styles.module.scss.d.ts +1 -0
  26. package/components/ExpanderList/index.js +1 -1
  27. package/components/FormExample/FormExample.d.ts.map +1 -1
  28. package/components/FormExample/index.js +1 -1
  29. package/components/FormGroup/FormGroup.d.ts +1 -1
  30. package/components/FormGroup/FormGroup.d.ts.map +1 -1
  31. package/components/FormGroup/componentdata.json +1 -1
  32. package/components/FormGroup/index.js +1 -1
  33. package/components/FormGroup/styles.module.scss +16 -37
  34. package/components/FormGroup/styles.module.scss.d.ts +4 -10
  35. package/components/Icons/AdditionalIconInformation.js +6 -6
  36. package/components/Icons/AdditionalIconInformation.js.map +1 -1
  37. package/components/LinkList/index.js +1 -1
  38. package/components/Loader/index.js +1 -1
  39. package/components/Modal/Modal.d.ts +19 -6
  40. package/components/Modal/Modal.d.ts.map +1 -1
  41. package/components/Modal/__mocks__/IntersectionObserver.d.ts +6 -0
  42. package/components/Modal/__mocks__/IntersectionObserver.d.ts.map +1 -0
  43. package/components/Modal/componentdata.json +19 -7
  44. package/components/Modal/index.js +1 -1
  45. package/components/Modal/styles.module.scss +102 -67
  46. package/components/Modal/styles.module.scss.d.ts +17 -10
  47. package/components/NotificationPanel/index.js +1 -1
  48. package/components/Slider/index.js +1 -1
  49. package/components/Spacer/index.js +1 -1
  50. package/components/Tile/index.js +1 -1
  51. package/components/Title/Title.d.ts +6 -1
  52. package/components/Title/Title.d.ts.map +1 -1
  53. package/components/Title/componentdata.json +1 -145
  54. package/components/Title/index.js +1 -1
  55. package/components/Validation/Validation.d.ts +1 -1
  56. package/components/Validation/Validation.d.ts.map +1 -1
  57. package/components/Validation/componentdata.json +1 -1
  58. package/components/Validation/index.js +1 -1
  59. package/components/Validation/styles.module.scss +6 -3
  60. package/components/Validation/styles.module.scss.d.ts +1 -1
  61. package/components/__mocks__/index.js +2 -0
  62. package/components/__mocks__/index.js.map +1 -0
  63. package/hooks/focus-utils.d.ts +7 -0
  64. package/hooks/focus-utils.d.ts.map +1 -0
  65. package/hooks/useFocusTrap.d.ts +1 -1
  66. package/hooks/useFocusTrap.d.ts.map +1 -1
  67. package/hooks/useVisibility.d.ts +3 -0
  68. package/hooks/useVisibility.d.ts.map +1 -0
  69. package/index.js +1 -1
  70. package/package.json +1 -1
  71. package/useBreakpoint-324a9b14.js +2 -0
  72. package/useBreakpoint-324a9b14.js.map +1 -0
  73. package/useHover-037be19d.js +2 -0
  74. package/useHover-037be19d.js.map +1 -0
  75. package/useWindowSize-73b47451.js +2 -0
  76. package/useWindowSize-73b47451.js.map +1 -0
  77. package/utils/uuid.d.ts +1 -0
  78. package/utils/uuid.d.ts.map +1 -1
  79. package/uuid-8870ab4b.js +2 -0
  80. package/uuid-8870ab4b.js.map +1 -0
  81. package/Button-835e9bea.js +0 -2
  82. package/Button-835e9bea.js.map +0 -1
  83. package/Checkbox-817eff9c.js.map +0 -1
  84. package/FormGroup-2ca963a9.js +0 -2
  85. package/FormGroup-2ca963a9.js.map +0 -1
  86. package/Loader-9e099b42.js.map +0 -1
  87. package/Modal-9eafa1a2.js +0 -2
  88. package/Modal-9eafa1a2.js.map +0 -1
  89. package/Title-863af332.js +0 -2
  90. package/Title-863af332.js.map +0 -1
  91. package/Validation-e113da7e.js +0 -2
  92. package/Validation-e113da7e.js.map +0 -1
  93. package/_rollupPluginBabelHelpers-e1c7fe69.js +0 -2
  94. package/_rollupPluginBabelHelpers-e1c7fe69.js.map +0 -1
  95. package/useBreakpoint-a8fa8a61.js +0 -2
  96. package/useBreakpoint-a8fa8a61.js.map +0 -1
  97. package/useHover-57ad4df9.js +0 -2
  98. package/useHover-57ad4df9.js.map +0 -1
  99. package/useWindowSize-c22d7634.js +0 -2
  100. package/useWindowSize-c22d7634.js.map +0 -1
  101. package/uuid-484288be.js +0 -2
  102. package/uuid-484288be.js.map +0 -1
@@ -1,6 +1,7 @@
1
+ @import '../../scss/_spacers.scss';
1
2
  @import '../../scss/_palette.scss';
2
- @import '../../scss/spacers.scss';
3
3
  @import '../../scss/_breakpoints.scss';
4
+ @import '../../scss/_font-settings.scss';
4
5
 
5
6
  .modal-overlay {
6
7
  z-index: 1300000;
@@ -12,10 +13,6 @@
12
13
  right: 0;
13
14
  bottom: 0;
14
15
 
15
- &--lowerzindex {
16
- z-index: 1100000;
17
- }
18
-
19
16
  @media print {
20
17
  display: none;
21
18
  }
@@ -34,8 +31,16 @@
34
31
  background-color: $white;
35
32
  animation: open 200ms 1;
36
33
 
34
+ &__title--error {
35
+ color: $cherry600;
36
+ }
37
+
38
+ &__iconWrapper {
39
+ padding-right: 0.75rem;
40
+ }
41
+
37
42
  p {
38
- font-size: 20px;
43
+ font-size: 1.125rem;
39
44
  }
40
45
 
41
46
  &--normal {
@@ -43,98 +48,103 @@
43
48
  }
44
49
  &--error {
45
50
  background-color: $cherry100;
46
-
47
- &__title {
48
- color: $cherry600;
49
- }
50
51
  }
51
52
  &--warning {
52
53
  background-color: $banana50;
53
54
  }
54
- &--error,
55
- &--warning {
56
- &__title {
57
- div:nth-child(2) {
58
- padding-left: 8px;
55
+
56
+ &--large {
57
+ width: calc(100vw - 0.75rem);
58
+ @media (max-width: map-get($grid-breakpoints, sm)) {
59
+ p {
60
+ font-size: 1.125rem;
59
61
  }
60
62
  }
61
- }
62
63
 
63
- @media (max-width: map-get($grid-breakpoints, sm)) {
64
- width: calc(100vw - 24px);
65
- p {
66
- font-size: 18px;
64
+ @media (min-width: map-get($grid-breakpoints, md)) {
65
+ width: 612px;
66
+ }
67
+ @media (min-width: map-get($grid-breakpoints, lg)) {
68
+ width: 696px;
67
69
  }
68
70
  }
69
71
 
70
- @media (min-width: map-get($grid-breakpoints, md)) {
71
- width: 507px;
72
- }
73
- @media (min-width: map-get($grid-breakpoints, lg)) {
74
- width: 515px;
75
- }
72
+ &--medium {
73
+ width: calc(100vw - 0.75rem);
76
74
 
77
- &--large {
78
75
  @media (min-width: map-get($grid-breakpoints, md)) {
79
- width: 612px;
76
+ width: 335px;
80
77
  }
81
78
  @media (min-width: map-get($grid-breakpoints, lg)) {
82
- width: 696px;
79
+ width: 515px;
83
80
  }
84
81
  }
85
82
 
86
83
  &--image {
87
- max-height: calc(100vh - 24px);
88
- max-width: calc(100vw - 24px);
84
+ @media (min-width: map-get($grid-breakpoints, md)) {
85
+ max-height: calc(100vh - 24px);
86
+ max-width: calc(100vw - 24px);
87
+ width: 100%;
88
+ }
89
+ }
90
+
91
+ &__shadow {
89
92
  width: 100%;
93
+ height: 16px;
94
+ position: absolute;
95
+ transition: opacity 0.5s;
96
+ opacity: 0;
97
+ }
90
98
 
91
- &__img {
92
- line-height: 0;
93
- img {
94
- max-height: calc(100vh - 185px);
95
- max-width: calc(100vw - 57px);
96
- min-width: 100%;
97
- }
98
- }
99
+ &__shadow--top {
100
+ //box-shadow: 0 3px 8px 4px grey;
101
+ background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.45702030812324934) 100%);
102
+ }
99
103
 
100
- &__text {
101
- font-size: 12pt;
102
- padding-top: 16px;
103
- display: block;
104
- }
104
+ &__shadow--bottom {
105
+ //box-shadow: 0 -3px 8px 4px grey;
106
+ background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.45702030812324934) 100%);
107
+ margin-top: -16px;
105
108
  }
106
109
 
107
- &__close {
108
- position: absolute;
109
- right: 15px;
110
- top: 15px;
111
- @media (max-width: map-get($grid-breakpoints, md)) {
112
- right: 0px;
113
- top: 0px;
114
- }
110
+ &__shadow--show {
111
+ opacity: 1;
112
+ }
115
113
 
116
- &--image {
114
+ &__closeWrapper {
115
+ position: relative;
116
+ width: 100%;
117
+
118
+ &__close {
117
119
  position: absolute;
118
- right: 0px;
119
- margin: 8px;
120
+ right: getSpacer(2xs);
121
+ top: getSpacer(2xs);
120
122
  }
121
123
  }
122
124
 
123
125
  &__contentWrapper {
124
- padding: 48px;
125
- @media (max-width: map-get($grid-breakpoints, sm)) {
126
- padding: 32px 24px;
127
- }
126
+ max-height: calc(100vh - 10rem);
127
+ overflow: auto;
128
128
 
129
129
  &--image {
130
- padding: 48px 16px 32px;
130
+ max-height: 100vh;
131
131
  }
132
132
 
133
- &__content {
134
- margin: 20px 0;
135
-
136
- &--image {
137
- margin-top: 10px;
133
+ &__scroll {
134
+ &--large {
135
+ @media (max-width: map-get($grid-breakpoints, sm)) {
136
+ padding: getSpacer(xl) getSpacer(m) getSpacer(xs) getSpacer(m);
137
+ }
138
+ padding: getSpacer(xl) getSpacer(xl) getSpacer(xs) getSpacer(xl);
139
+ }
140
+ &--medium {
141
+ @media (max-width: map-get($grid-breakpoints, sm)) {
142
+ padding: getSpacer(xl) getSpacer(m) getSpacer(xs) getSpacer(m);
143
+ }
144
+ padding: getSpacer(l) getSpacer(m) getSpacer(xs) getSpacer(m);
145
+ }
146
+ &--large#{&}--image {
147
+ padding: getSpacer(xl) getSpacer(xs) getSpacer(l) getSpacer(xs);
138
148
  }
139
149
  }
140
150
 
@@ -146,6 +156,21 @@
146
156
  align-items: center;
147
157
  }
148
158
  }
159
+
160
+ &__imageWrapper {
161
+ line-height: 0;
162
+ text-align: center;
163
+ img {
164
+ max-height: calc(100vh - 185px);
165
+ max-width: calc(100vw - 57px);
166
+ }
167
+ }
168
+
169
+ &__imageDescription {
170
+ font-size: $font-size-xs;
171
+ padding-top: getSpacer(s);
172
+ display: block;
173
+ }
149
174
  }
150
175
 
151
176
  &__description {
@@ -173,12 +198,22 @@
173
198
  }
174
199
  }
175
200
 
176
- &__actions {
201
+ &__call-to-action {
177
202
  display: flex;
178
- padding: 5px 0;
203
+
179
204
  button:first-child {
180
205
  margin-right: 24px;
181
206
  }
207
+
208
+ &--large {
209
+ padding: getSpacer(l) getSpacer(xl) getSpacer(xl) getSpacer(xl);
210
+ @media (max-width: map-get($grid-breakpoints, sm)) {
211
+ padding: getSpacer(l) getSpacer(m) getSpacer(l) getSpacer(m);
212
+ }
213
+ }
214
+ &--medium {
215
+ padding: getSpacer(m) getSpacer(m) getSpacer(m) getSpacer(m);
216
+ }
182
217
  }
183
218
 
184
219
  /* animation on open */
@@ -1,27 +1,34 @@
1
1
  export type Styles = {
2
2
  align: string;
3
3
  modal: string;
4
- modal__actions: string;
5
- modal__close: string;
6
- 'modal__close--image': string;
4
+ 'modal__call-to-action': string;
5
+ 'modal__call-to-action--large': string;
6
+ 'modal__call-to-action--medium': string;
7
+ modal__closeWrapper: string;
8
+ modal__closeWrapper__close: string;
7
9
  modal__contentWrapper: string;
8
- modal__contentWrapper__content: string;
9
- 'modal__contentWrapper__content--image': string;
10
+ modal__contentWrapper__imageDescription: string;
11
+ modal__contentWrapper__imageWrapper: string;
12
+ 'modal__contentWrapper__scroll--image': string;
13
+ 'modal__contentWrapper__scroll--large': string;
14
+ 'modal__contentWrapper__scroll--medium': string;
10
15
  modal__contentWrapper__title: string;
11
16
  'modal__contentWrapper--image': string;
12
17
  modal__description: string;
18
+ modal__iconWrapper: string;
13
19
  modal__lukkekryss: string;
20
+ modal__shadow: string;
21
+ 'modal__shadow--bottom': string;
22
+ 'modal__shadow--show': string;
23
+ 'modal__shadow--top': string;
24
+ 'modal__title--error': string;
14
25
  'modal--error': string;
15
- 'modal--error__title': string;
16
26
  'modal--image': string;
17
- 'modal--image__img': string;
18
- 'modal--image__text': string;
19
27
  'modal--large': string;
28
+ 'modal--medium': string;
20
29
  'modal--normal': string;
21
30
  'modal--warning': string;
22
- 'modal--warning__title': string;
23
31
  'modal-overlay': string;
24
- 'modal-overlay--lowerzindex': string;
25
32
  open: string;
26
33
  };
27
34
 
@@ -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 n}from"../../palette-f206f488.js";import{I as t,a as i}from"../../constants-d919236e.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;
1
+ import{a as e}from"../../_rollupPluginBabelHelpers-d0752906.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-d919236e.js";import{u as l}from"../../useHover-037be19d.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 v={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})},f=a.forwardRef((function(r,c){var f,p,d,h=r.children,u=r.variant,b=void 0===u?"info":u,_=r.shadow,E=void 0!==_&&_,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"===b?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--"+b],(f={},e(f,m["notification-panel--shadow"],!k&&E),e(f,m["notification-panel--haslabel"],!!y&&!h),e(f,m["notification-panel--dismissable"],w),f),N||"")},a.createElement("span",{className:m["notification-panel__icon"]},v["alert"===b&&y&&!h?"alertLabel":b]),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"===b),e(p,m["notification-panel__content--haslabel"],!!y&&!h),e(p,m["notification-panel__content--isred"],"alert"===b&&!!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"===b?n.white:n.blueberry500,hoverColor:"crisis"===b?n.white:n.blueberry700}))):null),k?a.createElement("div",{className:o(m["notification-panel__fluidwrapper"],m["notification-panel__fluidwrapper--"+b],e({},m["notification-panel__fluidwrapper--shadow"],E))},x):x}));export default f;
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{_ as e}from"../../_rollupPluginBabelHelpers-e1c7fe69.js";import t,{useState as n,useRef as r,useEffect as o}from"react";import{c as a}from"../../index-9b84fabc.js";import{T as i}from"../../Title-863af332.js";import c from"./styles.module.scss";import"../Title/styles.module.scss";var u=function(e){return e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),!1},l=function(e){return d(e)?e.touches[0].pageX:e.pageX},s=function(e){var t=e?e.getBoundingClientRect():void 0;return t?t.right-t.left:0},d=function(e){return("touchcancel"===e.type||"touchend"===e.type||"touchenter"===e.type||"touchleave"===e.type||"touchmove"===e.type||"touchstart"===e.type)&&!(0===e.touches.length)},m=function(e,t,n){var r=e-e%t,o=Math.floor(n/t)*t;e>o&&(e>o+(n-o)/2&&(r=n));return Math.round(r)},f=t.forwardRef((function(d,f){var v=d.title,p=d.labelLeft,h=d.labelRight,_=d.disabled,g=void 0!==_&&_,E=d.step,y=void 0===E?1:E,b=d.onChange,w=n(50),k=e(w,2),L=k[0],N=k[1],x=n(!1),D=e(x,2),M=D[0],R=D[1],A=n(0),T=e(A,2),j=T[0],B=T[1],C=n(0),P=e(C,2),X=P[0],H=P[1],I=n(0),K=e(I,2),S=K[0],U=K[1],q=n(0),z=e(q,2),F=z[0],G=z[1],J=f||r(null),O=r(null),Q=function(e){ee(e)},V=function(e){$(e)},W=function(e){ee(e)},Y=function(e){$(e)};o((function(){var e=s(J.current),t=s(O.current);U(function(e,t,n,r,o){return(t-n)/(o-r)*e}(L,e,t,0,100)),B(e),H(t)}),[]),o((function(){M&&(function(e,t){document.addEventListener("mousemove",e,!1),document.addEventListener("mouseup",t,!1)}(Q,V),function(e,t){document.addEventListener("touchmove",e,!1),document.addEventListener("touchend",t,!1)}(W,Y))}),[M]),o((function(){!g&&b&&b(L)}),[L]);var Z=function(e){var t;if(!g){var n=s(J.current),r=s(O.current),o=l(e);!function(e,t,n,r){var o=t?t.getBoundingClientRect():void 0,a=o?o.left:0;r(a?e-(a+n/2):0)}(o,O.current,r,te),R(!0),G(o),B(n),H(r),null===(t=O.current)||void 0===t||t.focus(),u(e)}},$=function(e){g||(R(!1),function(e,t){document.removeEventListener("mousemove",e,!1),document.removeEventListener("mouseup",t,!1)}(Q,V),function(e,t){document.removeEventListener("touchmove",e,!1),document.removeEventListener("touchend",t,!1)}(W,Y),u(e))},ee=function(e){if(!g&&M){var t=l(e);te(t-F),u(e)}},te=function(e){if(0!==e){var t=function(e,t,n,r){var o=r+e;return o<0&&(o=0),o>t-n&&(o=t-n),o}(e,j,X,S);U(t),G(t+e),N(function(e,t,n,r,o,a){var i=(t-n)/(a-o),c=Math.round(e/i);return m(c,r,a)}(t,j,X,y,0,100))}};return t.createElement("div",{className:c.slider},v&&t.createElement(i,{htmlMarkup:"h3",margin:1.5,appearance:"title3"},v),t.createElement("div",{ref:J,className:a(c["slider__track-wrapper"],g?c["slider__track-wrapper--disabled"]:""),onMouseDown:Z,onTouchStart:Z,"data-testid":"tracker"},t.createElement("div",{className:a(c.slider__track,g?c["slider__track--disabled"]:"")}),t.createElement("div",{ref:O,className:a(c.slider__trigger,g?c["slider__trigger--disabled"]:""),style:{left:"".concat(S,"px")},onKeyDown:function(e){if(!g){var t=(j-X)/100;"ArrowRight"!==e.key&&"ArrowDown"!==e.key||te(y*t),"ArrowLeft"!==e.key&&"ArrowUp"!==e.key||te(-y*t)}},role:"slider","aria-valuenow":L,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"".concat(v?v+" ":"").concat(p?p+" ":"").concat(h?h+" ":""),tabIndex:g?-1:0},t.createElement("div",{className:a(c["slider__trigger-inner"],g?c["slider__trigger-inner--disabled"]:"")}))),(p||h)&&t.createElement("span",{className:c.slider__options},t.createElement("p",{className:c.slider__text,"aria-hidden":!0},p),t.createElement("p",{className:c.slider__text,"aria-hidden":!0},h)))}));export default f;
1
+ import{_ as e}from"../../_rollupPluginBabelHelpers-d0752906.js";import t,{useState as n,useRef as r,useEffect as o}from"react";import{c as a}from"../../index-9b84fabc.js";import{T as i}from"../../Title-7c829525.js";import c from"./styles.module.scss";import"../Title/styles.module.scss";var u=function(e){return e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),!1},l=function(e){return d(e)?e.touches[0].pageX:e.pageX},s=function(e){var t=e?e.getBoundingClientRect():void 0;return t?t.right-t.left:0},d=function(e){return("touchcancel"===e.type||"touchend"===e.type||"touchenter"===e.type||"touchleave"===e.type||"touchmove"===e.type||"touchstart"===e.type)&&!(0===e.touches.length)},m=function(e,t,n){var r=e-e%t,o=Math.floor(n/t)*t;e>o&&(e>o+(n-o)/2&&(r=n));return Math.round(r)},f=t.forwardRef((function(d,f){var v=d.title,p=d.labelLeft,h=d.labelRight,_=d.disabled,g=void 0!==_&&_,E=d.step,y=void 0===E?1:E,b=d.onChange,w=n(50),k=e(w,2),L=k[0],N=k[1],x=n(!1),D=e(x,2),M=D[0],R=D[1],A=n(0),T=e(A,2),j=T[0],B=T[1],C=n(0),P=e(C,2),X=P[0],H=P[1],I=n(0),K=e(I,2),S=K[0],U=K[1],q=n(0),z=e(q,2),F=z[0],G=z[1],J=f||r(null),O=r(null),Q=function(e){ee(e)},V=function(e){$(e)},W=function(e){ee(e)},Y=function(e){$(e)};o((function(){var e=s(J.current),t=s(O.current);U(function(e,t,n,r,o){return(t-n)/(o-r)*e}(L,e,t,0,100)),B(e),H(t)}),[]),o((function(){M&&(function(e,t){document.addEventListener("mousemove",e,!1),document.addEventListener("mouseup",t,!1)}(Q,V),function(e,t){document.addEventListener("touchmove",e,!1),document.addEventListener("touchend",t,!1)}(W,Y))}),[M]),o((function(){!g&&b&&b(L)}),[L]);var Z=function(e){var t;if(!g){var n=s(J.current),r=s(O.current),o=l(e);!function(e,t,n,r){var o=t?t.getBoundingClientRect():void 0,a=o?o.left:0;r(a?e-(a+n/2):0)}(o,O.current,r,te),R(!0),G(o),B(n),H(r),null===(t=O.current)||void 0===t||t.focus(),u(e)}},$=function(e){g||(R(!1),function(e,t){document.removeEventListener("mousemove",e,!1),document.removeEventListener("mouseup",t,!1)}(Q,V),function(e,t){document.removeEventListener("touchmove",e,!1),document.removeEventListener("touchend",t,!1)}(W,Y),u(e))},ee=function(e){if(!g&&M){var t=l(e);te(t-F),u(e)}},te=function(e){if(0!==e){var t=function(e,t,n,r){var o=r+e;return o<0&&(o=0),o>t-n&&(o=t-n),o}(e,j,X,S);U(t),G(t+e),N(function(e,t,n,r,o,a){var i=(t-n)/(a-o),c=Math.round(e/i);return m(c,r,a)}(t,j,X,y,0,100))}};return t.createElement("div",{className:c.slider},v&&t.createElement(i,{htmlMarkup:"h3",margin:1.5,appearance:"title3"},v),t.createElement("div",{ref:J,className:a(c["slider__track-wrapper"],g?c["slider__track-wrapper--disabled"]:""),onMouseDown:Z,onTouchStart:Z,"data-testid":"tracker"},t.createElement("div",{className:a(c.slider__track,g?c["slider__track--disabled"]:"")}),t.createElement("div",{ref:O,className:a(c.slider__trigger,g?c["slider__trigger--disabled"]:""),style:{left:"".concat(S,"px")},onKeyDown:function(e){if(!g){var t=(j-X)/100;"ArrowRight"!==e.key&&"ArrowDown"!==e.key||te(y*t),"ArrowLeft"!==e.key&&"ArrowUp"!==e.key||te(-y*t)}},role:"slider","aria-valuenow":L,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"".concat(v?v+" ":"").concat(p?p+" ":"").concat(h?h+" ":""),tabIndex:g?-1:0},t.createElement("div",{className:a(c["slider__trigger-inner"],g?c["slider__trigger-inner--disabled"]:"")}))),(p||h)&&t.createElement("span",{className:c.slider__options},t.createElement("p",{className:c.slider__text,"aria-hidden":!0},p),t.createElement("p",{className:c.slider__text,"aria-hidden":!0},h)))}));export default f;
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"../../_rollupPluginBabelHelpers-e1c7fe69.js";import e from"react";import{c as r}from"../../index-9b84fabc.js";import a from"./styles.module.scss";var l=e.forwardRef((function(l,c){var p,x=l.size,m=void 0===x?"s":x,o=l.className,t=r(a.spacer,(s(p={},a["spacer--2xs"],"2xs"===m),s(p,a["spacer--xs"],"xs"===m),s(p,a["spacer--s"],"s"===m),s(p,a["spacer--m"],"m"===m),s(p,a["spacer--l"],"l"===m),s(p,a["spacer--xl"],"xl"===m),s(p,a["spacer--2xl"],"2xl"===m),s(p,a["spacer--3xl"],"3xl"===m),s(p,a["spacer--4xl"],"4xl"===m),s(p,a["spacer--5xl"],"5xl"===m),s(p,a["spacer--6xl"],"6xl"===m),p),o);return e.createElement("span",{className:t,ref:c})}));export default l;
1
+ import{a as s}from"../../_rollupPluginBabelHelpers-d0752906.js";import r from"react";import{c as e}from"../../index-9b84fabc.js";import a from"./styles.module.scss";var l=r.forwardRef((function(l,c){var p,x=l.size,m=void 0===x?"s":x,o=l.className,t=e(a.spacer,(s(p={},a["spacer--2xs"],"2xs"===m),s(p,a["spacer--xs"],"xs"===m),s(p,a["spacer--s"],"s"===m),s(p,a["spacer--m"],"m"===m),s(p,a["spacer--l"],"l"===m),s(p,a["spacer--xl"],"xl"===m),s(p,a["spacer--2xl"],"2xl"===m),s(p,a["spacer--3xl"],"3xl"===m),s(p,a["spacer--4xl"],"4xl"===m),s(p,a["spacer--5xl"],"5xl"===m),s(p,a["spacer--6xl"],"6xl"===m),p),o);return r.createElement("span",{className:t,ref:c})}));export default l;
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{_ as e,a as t}from"../../_rollupPluginBabelHelpers-e1c7fe69.js";import{_ as i}from"../../_tslib-51c8a283.js";import r,{useState as l}from"react";import{c as o}from"../../index-9b84fabc.js";import{a}from"../../constants-d919236e.js";import c from"./styles.module.scss";var n=r.forwardRef((function(e,i){var l,a=e.children,n=e.className,s=e.htmlMarkup,m=void 0===s?"span":s,d=e.highlighted,f=e.compact,p=o(c.tile__title,(t(l={},c["tile__title--highlighted"],d),t(l,c["tile__title--compact"],f),l),n),u=m;return r.createElement(u,{className:p,ref:i},a)})),s=r.forwardRef((function(n,s){var m,d=n.icon,f=n.title,p=n.className,u=void 0===p?"":p,h=n.description,g=n.fixed,_=void 0!==g&&g,v=n.highlighted,E=void 0!==v&&v,N=i(n,["icon","title","className","description","fixed","highlighted"]),b=l(!1),j=e(b,2),w=j[0],x=j[1],M=!h,k=o(c.tile,(t(m={},c["tile--fixed"],_),t(m,c["tile--compact"],M),t(m,c["tile--highlighted"],E),m),u),B=o(c["title-wrapper"],t({},c["title-wrapper--compact"],M));return r.createElement("a",Object.assign({ref:s,className:k,onMouseEnter:function(){return x(!0)},onMouseLeave:function(){return x(!1)},onFocus:function(){return x(!0)},onBlur:function(){return x(!1)}},N),r.createElement("div",{className:B},r.cloneElement(d,{size:a.Medium,isHovered:w,color:E?"white":"black"}),r.cloneElement(f,{highlighted:E,compact:M})),h?r.createElement("p",{className:c.tile__description},h):null)}));s.Title=n;export default s;
1
+ import{_ as e,a as t}from"../../_rollupPluginBabelHelpers-d0752906.js";import{_ as i}from"../../_tslib-51c8a283.js";import r,{useState as l}from"react";import{c as o}from"../../index-9b84fabc.js";import{a}from"../../constants-d919236e.js";import c from"./styles.module.scss";var n=r.forwardRef((function(e,i){var l,a=e.children,n=e.className,s=e.htmlMarkup,m=void 0===s?"span":s,d=e.highlighted,p=e.compact,f=o(c.tile__title,(t(l={},c["tile__title--highlighted"],d),t(l,c["tile__title--compact"],p),l),n),u=m;return r.createElement(u,{className:f,ref:i},a)})),s=r.forwardRef((function(n,s){var m,d=n.icon,p=n.title,f=n.className,u=void 0===f?"":f,h=n.description,g=n.fixed,_=void 0!==g&&g,v=n.highlighted,E=void 0!==v&&v,N=i(n,["icon","title","className","description","fixed","highlighted"]),b=l(!1),j=e(b,2),w=j[0],x=j[1],M=!h,k=o(c.tile,(t(m={},c["tile--fixed"],_),t(m,c["tile--compact"],M),t(m,c["tile--highlighted"],E),m),u),B=o(c["title-wrapper"],t({},c["title-wrapper--compact"],M));return r.createElement("a",Object.assign({ref:s,className:k,onMouseEnter:function(){return x(!0)},onMouseLeave:function(){return x(!1)},onFocus:function(){return x(!0)},onBlur:function(){return x(!1)}},N),r.createElement("div",{className:B},r.cloneElement(d,{size:a.Medium,isHovered:w,color:E?"white":"black"}),r.cloneElement(p,{highlighted:E,compact:M})),h?r.createElement("p",{className:c.tile__description},h):null)}));s.Title=n;export default s;
2
2
  //# sourceMappingURL=index.js.map
@@ -8,12 +8,17 @@ interface TitleProps {
8
8
  /** Adds custom classes to the element. */
9
9
  className?: string;
10
10
  /** Adds top and bottom margin in rem. */
11
- margin?: number;
11
+ margin?: number | TitleMargin;
12
12
  /** Changes the underlying element of the title. */
13
13
  htmlMarkup?: TitleTags;
14
14
  /** Changes the appearance of the title. */
15
15
  appearance?: TitleAppearances;
16
16
  }
17
+ export interface TitleMargin {
18
+ marginTop: number;
19
+ marginBottom: number;
20
+ }
21
+ export declare const instanceOfTitleMargin: (margin: any) => margin is TitleMargin;
17
22
  declare const Title: React.ForwardRefExoticComponent<TitleProps & React.RefAttributes<HTMLHeadingElement>>;
18
23
  export default Title;
19
24
  //# sourceMappingURL=Title.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../src/components/Title/Title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,oBAAY,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAClE,oBAAY,gBAAgB,GAAG,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAErG,UAAU,UAAU;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,qCAAqC;IACrC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mDAAmD;IACnD,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,2CAA2C;IAC3C,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC/B;AAED,QAAA,MAAM,KAAK,uFAqBT,CAAC;AAEH,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../src/components/Title/Title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,oBAAY,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAClE,oBAAY,gBAAgB,GAAG,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAErG,UAAU,UAAU;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,qCAAqC;IACrC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IAC9B,mDAAmD;IACnD,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,2CAA2C;IAC3C,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC/B;AAED,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,qBAAqB,wCAEjC,CAAC;AAEF,QAAA,MAAM,KAAK,uFAyBT,CAAC;AAEH,eAAe,KAAK,CAAC"}
@@ -1,147 +1,3 @@
1
1
  {
2
- "props": {
3
- "id": {
4
- "defaultValue": null,
5
- "description": "Gives a unique id to the title",
6
- "name": "id",
7
- "parent": {
8
- "fileName": "src/components/Title/Title.tsx",
9
- "name": "TitleProps"
10
- },
11
- "declarations": [
12
- {
13
- "fileName": "src/components/Title/Title.tsx",
14
- "name": "TitleProps"
15
- }
16
- ],
17
- "required": false,
18
- "type": {
19
- "name": "string"
20
- }
21
- },
22
- "className": {
23
- "defaultValue": null,
24
- "description": "Adds custom classes to the element.",
25
- "name": "className",
26
- "parent": {
27
- "fileName": "src/components/Title/Title.tsx",
28
- "name": "TitleProps"
29
- },
30
- "declarations": [
31
- {
32
- "fileName": "src/components/Title/Title.tsx",
33
- "name": "TitleProps"
34
- }
35
- ],
36
- "required": false,
37
- "type": {
38
- "name": "string"
39
- }
40
- },
41
- "margin": {
42
- "defaultValue": null,
43
- "description": "Adds top and bottom margin in rem.",
44
- "name": "margin",
45
- "parent": {
46
- "fileName": "src/components/Title/Title.tsx",
47
- "name": "TitleProps"
48
- },
49
- "declarations": [
50
- {
51
- "fileName": "src/components/Title/Title.tsx",
52
- "name": "TitleProps"
53
- }
54
- ],
55
- "required": false,
56
- "type": {
57
- "name": "number"
58
- }
59
- },
60
- "htmlMarkup": {
61
- "defaultValue": null,
62
- "description": "Changes the underlying element of the title.",
63
- "name": "htmlMarkup",
64
- "parent": {
65
- "fileName": "src/components/Title/Title.tsx",
66
- "name": "TitleProps"
67
- },
68
- "declarations": [
69
- {
70
- "fileName": "src/components/Title/Title.tsx",
71
- "name": "TitleProps"
72
- }
73
- ],
74
- "required": false,
75
- "type": {
76
- "name": "enum",
77
- "raw": "\"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"span\" | undefined",
78
- "value": [
79
- {
80
- "value": "undefined"
81
- },
82
- {
83
- "value": "\"h1\""
84
- },
85
- {
86
- "value": "\"h2\""
87
- },
88
- {
89
- "value": "\"h3\""
90
- },
91
- {
92
- "value": "\"h4\""
93
- },
94
- {
95
- "value": "\"h5\""
96
- },
97
- {
98
- "value": "\"span\""
99
- }
100
- ]
101
- }
102
- },
103
- "appearance": {
104
- "defaultValue": null,
105
- "description": "Changes the appearance of the title.",
106
- "name": "appearance",
107
- "parent": {
108
- "fileName": "src/components/Title/Title.tsx",
109
- "name": "TitleProps"
110
- },
111
- "declarations": [
112
- {
113
- "fileName": "src/components/Title/Title.tsx",
114
- "name": "TitleProps"
115
- }
116
- ],
117
- "required": false,
118
- "type": {
119
- "name": "enum",
120
- "raw": "\"titleFeature\" | \"title1\" | \"title2\" | \"title3\" | \"title4\" | \"title5\" | undefined",
121
- "value": [
122
- {
123
- "value": "undefined"
124
- },
125
- {
126
- "value": "\"titleFeature\""
127
- },
128
- {
129
- "value": "\"title1\""
130
- },
131
- {
132
- "value": "\"title2\""
133
- },
134
- {
135
- "value": "\"title3\""
136
- },
137
- {
138
- "value": "\"title4\""
139
- },
140
- {
141
- "value": "\"title5\""
142
- }
143
- ]
144
- }
145
- }
146
- }
2
+ "props": {}
147
3
  }
@@ -1,2 +1,2 @@
1
- import{T as e}from"../../Title-863af332.js";export{T as default}from"../../Title-863af332.js";import"../../_rollupPluginBabelHelpers-e1c7fe69.js";import"react";import"../../index-9b84fabc.js";import"./styles.module.scss";
1
+ import{T as s}from"../../Title-7c829525.js";export{T as default}from"../../Title-7c829525.js";import"../../_rollupPluginBabelHelpers-d0752906.js";import"react";import"../../index-9b84fabc.js";import"./styles.module.scss";
2
2
  //# sourceMappingURL=index.js.map
@@ -3,7 +3,7 @@ import { FormVariant } from '../FormGroup/FormGroup';
3
3
  interface ValidationProps {
4
4
  /** text placed in the legend tag of the fieldset */
5
5
  errorSummary?: string;
6
- /** Items in the ExpanderList */
6
+ /** Items in the Validation compontent */
7
7
  children?: React.ReactNode;
8
8
  /** Adds custom classes to the element. */
9
9
  className?: string;
@@ -1 +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"}
1
+ {"version":3,"file":"Validation.d.ts","sourceRoot":"","sources":["../../../src/components/Validation/Validation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAkB,EAAkB,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAIhF,UAAU,eAAe;IACvB,oDAAoD;IACpD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yCAAyC;IACzC,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,qFAoBrB,CAAC;AAEH,eAAe,UAAU,CAAC"}
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "children": {
23
23
  "defaultValue": null,
24
- "description": "Items in the ExpanderList",
24
+ "description": "Items in the Validation compontent",
25
25
  "name": "children",
26
26
  "parent": {
27
27
  "fileName": "src/components/Validation/Validation.tsx",
@@ -1,2 +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";
1
+ import{V as s}from"../../Validation-b902407e.js";export{V as default}from"../../Validation-b902407e.js";import"react";import"../../index-9b84fabc.js";import"../../FormGroup-b874ae21.js";import"../../_rollupPluginBabelHelpers-d0752906.js";import"../FormGroup/styles.module.scss";import"../../Checkbox-46666e69.js";import"../../uuid-8870ab4b.js";import"../../Check-6291ad09.js";import"../../constants-d919236e.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-7c829525.js";import"../Title/styles.module.scss";import"./styles.module.scss";
2
2
  //# sourceMappingURL=index.js.map
@@ -7,9 +7,12 @@
7
7
  font-size: $font-size-sm;
8
8
  font-weight: 600;
9
9
  color: $cherry500;
10
+ margin: getSpacer(l) 0 getSpacer(s);
11
+ }
12
+ }
10
13
 
11
- &--bigform {
12
- margin-left: getSpacer(l);
13
- }
14
+ .form-group-wrapper {
15
+ &--error-sibling {
16
+ padding-bottom: 0 !important;
14
17
  }
15
18
  }
@@ -1,6 +1,6 @@
1
1
  export type Styles = {
2
+ 'form-group-wrapper--error-sibling': string;
2
3
  validation__errors: string;
3
- 'validation__errors--bigform': string;
4
4
  };
5
5
 
6
6
  export type ClassNames = keyof Styles;
@@ -0,0 +1,2 @@
1
+ import{c as e,d as n}from"../../_rollupPluginBabelHelpers-d0752906.js";var r=function(){function r(){n(this,r)}return e(r,[{key:"observe",value:function(){}},{key:"unobserve",value:function(){}}]),r}();Object.defineProperty(window,"IntersectionObserver",{value:r});export default r;
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Kopi fra core-frontend (focus-utils.tsx)
3
+ * Returnerer document.activeElement (element in focus), uavhengig av om den er i document-dom eller shadow-dom
4
+ * @param element HtmlElement som den skal søke i
5
+ */
6
+ export declare const getDocumentActiveElement: (element: string | HTMLElement) => Element | null;
7
+ //# sourceMappingURL=focus-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focus-utils.d.ts","sourceRoot":"","sources":["../../src/hooks/focus-utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,mDAUpC,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- export default function useFocusTrap(): React.MutableRefObject<null>;
2
+ export default function useFocusTrap(): React.MutableRefObject<HTMLDivElement | null>;
3
3
  //# sourceMappingURL=useFocusTrap.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFocusTrap.d.ts","sourceRoot":"","sources":["../../src/hooks/useFocusTrap.ts"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,MAAM,CAAC,OAAO,UAAU,YAAY,iCAuDnC"}
1
+ {"version":3,"file":"useFocusTrap.d.ts","sourceRoot":"","sources":["../../src/hooks/useFocusTrap.ts"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAGjD,MAAM,CAAC,OAAO,UAAU,YAAY,IAAI,KAAK,CAAC,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAC,CA+DpF"}
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const useIsVisible: (ref: import("react").RefObject<HTMLElement>, threshold?: number) => boolean;
3
+ //# sourceMappingURL=useVisibility.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useVisibility.d.ts","sourceRoot":"","sources":["../../src/hooks/useVisibility.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,YAAY,8EAwBxB,CAAC"}
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export{t as theme}from"./index-19b48c51.js";export{u as useHover}from"./useHover-57ad4df9.js";import"./palette-f206f488.js";import"./grid-11a70eb7.js";import"./_rollupPluginBabelHelpers-e1c7fe69.js";import"react";
1
+ export{t as theme}from"./index-19b48c51.js";export{u as useHover}from"./useHover-037be19d.js";import"./palette-f206f488.js";import"./grid-11a70eb7.js";import"./_rollupPluginBabelHelpers-d0752906.js";import"react";
2
2
  //# sourceMappingURL=index.js.map