@helsenorge/designsystem-react 1.0.0-beta110 → 1.0.0-beta113

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 (214) hide show
  1. package/Badge-81cefbed.js +2 -0
  2. package/Badge-81cefbed.js.map +1 -0
  3. package/Button-218a5289.js +2 -0
  4. package/Button-218a5289.js.map +1 -0
  5. package/Checkbox-657cb5e7.js +2 -0
  6. package/Checkbox-657cb5e7.js.map +1 -0
  7. package/Close-c1ccb332.js +2 -0
  8. package/Close-c1ccb332.js.map +1 -0
  9. package/FormGroup-e67d4a50.js +2 -0
  10. package/FormGroup-e67d4a50.js.map +1 -0
  11. package/{Input-01c967ac.js → Input-fe2b4c5a.js} +2 -2
  12. package/Input-fe2b4c5a.js.map +1 -0
  13. package/{Loader-bf89238f.js → Loader-8a2970bd.js} +2 -2
  14. package/Loader-8a2970bd.js.map +1 -0
  15. package/{Modal-240f0699.js → Modal-95d3d875.js} +2 -2
  16. package/Modal-95d3d875.js.map +1 -0
  17. package/{RadioButton-b0da1997.js → RadioButton-0233a8fb.js} +2 -2
  18. package/RadioButton-0233a8fb.js.map +1 -0
  19. package/{Textarea-648063a9.js → Textarea-4597fece.js} +2 -2
  20. package/Textarea-4597fece.js.map +1 -0
  21. package/{Title-1d8708ea.js → Title-8fc7396e.js} +2 -2
  22. package/Title-8fc7396e.js.map +1 -0
  23. package/Validation-247496a2.js +2 -0
  24. package/Validation-247496a2.js.map +1 -0
  25. package/__mocks__/IntersectionObserver.d.ts +6 -0
  26. package/__mocks__/IntersectionObserver.d.ts.map +1 -0
  27. package/__mocks__/IntersectionObserver.js +2 -0
  28. package/__mocks__/IntersectionObserver.js.map +1 -0
  29. package/__mocks__/matchMedia.d.ts +3 -0
  30. package/__mocks__/matchMedia.d.ts.map +1 -0
  31. package/__mocks__/matchMedia.js +2 -0
  32. package/__mocks__/matchMedia.js.map +1 -0
  33. package/_rollupPluginBabelHelpers-4f206abf.js +2 -0
  34. package/_rollupPluginBabelHelpers-4f206abf.js.map +1 -0
  35. package/components/AnchorLink/index.js +1 -1
  36. package/components/Avatar/index.js +1 -1
  37. package/components/Badge/index.js +1 -1
  38. package/components/Button/Button.d.ts +2 -0
  39. package/components/Button/Button.d.ts.map +1 -1
  40. package/components/Button/componentdata.json +38 -1
  41. package/components/Button/index.js +1 -1
  42. package/components/ButtonWithModal/index.js +1 -1
  43. package/components/Checkbox/Checkbox.d.ts.map +1 -1
  44. package/components/Checkbox/index.js +1 -1
  45. package/components/Close/index.js +1 -1
  46. package/components/Expander/index.js +1 -1
  47. package/components/ExpanderList/index.js +1 -1
  48. package/components/FormExample/index.js +1 -1
  49. package/components/FormGroup/index.js +1 -1
  50. package/components/HighlightBox/index.js +1 -1
  51. package/components/Icons/AcupunctureBack.js +1 -1
  52. package/components/Icons/AlarmClock.js +1 -1
  53. package/components/Icons/AlertSignFill.js +1 -1
  54. package/components/Icons/AlertSignStroke.js +1 -1
  55. package/components/Icons/Archive.js +1 -1
  56. package/components/Icons/ArrowLeft.js +1 -1
  57. package/components/Icons/ArrowRight.js +1 -1
  58. package/components/Icons/ArrowUpRight.js +1 -1
  59. package/components/Icons/Attachment.js +1 -1
  60. package/components/Icons/Avatar.js +1 -1
  61. package/components/Icons/Bus.js +1 -1
  62. package/components/Icons/Calendar.js +1 -1
  63. package/components/Icons/CalendarChange.js +1 -1
  64. package/components/Icons/CalendarCheck.js +1 -1
  65. package/components/Icons/CalendarSave.js +1 -1
  66. package/components/Icons/Change.js +1 -1
  67. package/components/Icons/Check.js +1 -1
  68. package/components/Icons/ChevronDown.js +1 -1
  69. package/components/Icons/ChevronLeft.js +1 -1
  70. package/components/Icons/ChevronRight.js +1 -1
  71. package/components/Icons/ChevronUp.js +1 -1
  72. package/components/Icons/ChevronsDown.js +1 -1
  73. package/components/Icons/ChevronsUp.js +1 -1
  74. package/components/Icons/Contacts.js +1 -1
  75. package/components/Icons/Copy.js +1 -1
  76. package/components/Icons/Download.js +1 -1
  77. package/components/Icons/EChat.js +1 -1
  78. package/components/Icons/EnterFullScreen.js +1 -1
  79. package/components/Icons/Envelope.js +1 -1
  80. package/components/Icons/Eraser.js +1 -1
  81. package/components/Icons/ErrorSignFill.js +1 -1
  82. package/components/Icons/ErrorSignStroke.js +1 -1
  83. package/components/Icons/ExitFullScreen.js +1 -1
  84. package/components/Icons/Eye.js +1 -1
  85. package/components/Icons/Form.js +1 -1
  86. package/components/Icons/Forward.js +1 -1
  87. package/components/Icons/Gallery.js +1 -1
  88. package/components/Icons/Globe.js +1 -1
  89. package/components/Icons/Heart.js +1 -1
  90. package/components/Icons/HelpSign.js +1 -1
  91. package/components/Icons/History.js +1 -1
  92. package/components/Icons/Home.js +1 -1
  93. package/components/Icons/Hospital.js +1 -1
  94. package/components/Icons/Hourglass.js +1 -1
  95. package/components/Icons/Icon.d.ts +1 -1
  96. package/components/Icons/Icon.d.ts.map +1 -1
  97. package/components/Icons/Icon.js +1 -1
  98. package/components/Icons/InfoSignFill.js +1 -1
  99. package/components/Icons/InfoSignStroke.js +1 -1
  100. package/components/Icons/Journal.js +1 -1
  101. package/components/Icons/List.js +1 -1
  102. package/components/Icons/Location.js +1 -1
  103. package/components/Icons/Lock.js +1 -1
  104. package/components/Icons/Medicine.js +1 -1
  105. package/components/Icons/Menu.d.ts.map +1 -1
  106. package/components/Icons/Menu.js +1 -1
  107. package/components/Icons/Minus.js +1 -1
  108. package/components/Icons/MobilePhone.js +1 -1
  109. package/components/Icons/NoEye.js +1 -1
  110. package/components/Icons/NoFilter.js +1 -1
  111. package/components/Icons/PaperPlane.js +1 -1
  112. package/components/Icons/Pause.js +1 -1
  113. package/components/Icons/Pencil.js +1 -1
  114. package/components/Icons/Play.js +1 -1
  115. package/components/Icons/PlusLarge.js +1 -1
  116. package/components/Icons/PlusSmall.js +1 -1
  117. package/components/Icons/Printer.js +1 -1
  118. package/components/Icons/QrCode.js +1 -1
  119. package/components/Icons/Receptionist.js +1 -1
  120. package/components/Icons/Referral.js +1 -1
  121. package/components/Icons/Refresh.js +1 -1
  122. package/components/Icons/Reply.js +1 -1
  123. package/components/Icons/Save.js +1 -1
  124. package/components/Icons/Search.js +1 -1
  125. package/components/Icons/SectionSign.js +1 -1
  126. package/components/Icons/Settings.js +1 -1
  127. package/components/Icons/Share.js +1 -1
  128. package/components/Icons/SpeechBubble.js +1 -1
  129. package/components/Icons/Stopwatch.js +1 -1
  130. package/components/Icons/SupportingPerson.js +1 -1
  131. package/components/Icons/Syringe.js +1 -1
  132. package/components/Icons/TimePassing.js +1 -1
  133. package/components/Icons/Toolbox.js +1 -1
  134. package/components/Icons/TrashCan.js +1 -1
  135. package/components/Icons/Undo.js +1 -1
  136. package/components/Icons/Upload.js +1 -1
  137. package/components/Icons/Vaccine.js +1 -1
  138. package/components/Icons/VerticalDots.js +1 -1
  139. package/components/Icons/VideoCamera.js +1 -1
  140. package/components/Icons/VideoChat.js +1 -1
  141. package/components/Icons/Wallet.js +1 -1
  142. package/components/Icons/Watch.js +1 -1
  143. package/components/Icons/X.js +1 -1
  144. package/components/Icons/Zoom.js +1 -1
  145. package/components/Icons/index.js +1 -1
  146. package/components/Input/index.js +1 -1
  147. package/components/LinkList/index.js +1 -1
  148. package/components/List/index.js +1 -1
  149. package/components/Loader/index.js +1 -1
  150. package/components/Logo/index.js +1 -1
  151. package/components/Modal/index.js +1 -1
  152. package/components/NotificationPanel/index.js +1 -1
  153. package/components/Panel/Panel.d.ts +65 -0
  154. package/components/Panel/Panel.d.ts.map +1 -0
  155. package/components/Panel/componentdata.json +440 -0
  156. package/components/Panel/index.d.ts +4 -0
  157. package/components/Panel/index.d.ts.map +1 -0
  158. package/components/Panel/index.js +2 -0
  159. package/components/Panel/index.js.map +1 -0
  160. package/components/Panel/styles.module.scss +345 -0
  161. package/components/Panel/styles.module.scss.d.ts +34 -0
  162. package/components/Portal/index.js +1 -1
  163. package/components/RadioButton/index.js +1 -1
  164. package/components/Slider/index.js +1 -1
  165. package/components/Spacer/index.js +1 -1
  166. package/components/Textarea/index.js +1 -1
  167. package/components/Tile/componentdata.json +19 -1
  168. package/components/Tile/index.js +1 -1
  169. package/components/Title/index.js +1 -1
  170. package/components/Validation/index.js +1 -1
  171. package/{constants-075356e2.js → constants-be4018c7.js} +2 -2
  172. package/constants-be4018c7.js.map +1 -0
  173. package/constants.d.ts +4 -1
  174. package/constants.d.ts.map +1 -1
  175. package/hoc/withBreakpoint/index.js +1 -1
  176. package/hooks/useFocusTrap.d.ts.map +1 -1
  177. package/index.js +1 -1
  178. package/package.json +1 -1
  179. package/{useBreakpoint-8209ae3c.js → useBreakpoint-004c6cb2.js} +2 -2
  180. package/useBreakpoint-004c6cb2.js.map +1 -0
  181. package/useHover-026f72c1.js +2 -0
  182. package/useHover-026f72c1.js.map +1 -0
  183. package/useIsVisible-fad4d769.js +2 -0
  184. package/useIsVisible-fad4d769.js.map +1 -0
  185. package/{useSticky-a572c326.js → useSticky-807e5dde.js} +2 -2
  186. package/useSticky-807e5dde.js.map +1 -0
  187. package/{useWindowSize-58f26dea.js → useWindowSize-5cc481da.js} +2 -2
  188. package/useWindowSize-5cc481da.js.map +1 -0
  189. package/Button-ed1c6e3f.js +0 -2
  190. package/Button-ed1c6e3f.js.map +0 -1
  191. package/Checkbox-8e590de0.js +0 -2
  192. package/Checkbox-8e590de0.js.map +0 -1
  193. package/Close-48d39d0e.js +0 -2
  194. package/Close-48d39d0e.js.map +0 -1
  195. package/FormGroup-f10939e6.js +0 -2
  196. package/FormGroup-f10939e6.js.map +0 -1
  197. package/Input-01c967ac.js.map +0 -1
  198. package/Loader-bf89238f.js.map +0 -1
  199. package/Modal-240f0699.js.map +0 -1
  200. package/RadioButton-b0da1997.js.map +0 -1
  201. package/Textarea-648063a9.js.map +0 -1
  202. package/Title-1d8708ea.js.map +0 -1
  203. package/Validation-c196f3f2.js +0 -2
  204. package/Validation-c196f3f2.js.map +0 -1
  205. package/_rollupPluginBabelHelpers-6b3099b0.js +0 -2
  206. package/_rollupPluginBabelHelpers-6b3099b0.js.map +0 -1
  207. package/constants-075356e2.js.map +0 -1
  208. package/useBreakpoint-8209ae3c.js.map +0 -1
  209. package/useHover-507fb85a.js +0 -2
  210. package/useHover-507fb85a.js.map +0 -1
  211. package/useIsVisible-f5d49913.js +0 -2
  212. package/useIsVisible-f5d49913.js.map +0 -1
  213. package/useSticky-a572c326.js.map +0 -1
  214. package/useWindowSize-58f26dea.js.map +0 -1
@@ -0,0 +1,345 @@
1
+ @import '../../scss/_spacers.scss';
2
+ @import '../../scss/_breakpoints.scss';
3
+ @import '../../scss/_palette.scss';
4
+ @import '../../scss/_grid.scss';
5
+ @import '../../scss/_font-settings.scss';
6
+
7
+ .panel-wrapper {
8
+ width: 100%;
9
+ }
10
+
11
+ @mixin panel-padding {
12
+ padding: getSpacer(s) getSpacer(s) getSpacer(s) getSpacer(s);
13
+
14
+ @media (min-width: map-get($grid-breakpoints, md)) {
15
+ padding: getSpacer(l) getSpacer(m) getSpacer(l) getSpacer(l);
16
+ }
17
+ }
18
+
19
+ .panel {
20
+ @include panel-padding;
21
+ outline: none;
22
+ position: relative;
23
+ width: 100%;
24
+
25
+ &__container {
26
+ @media (min-width: map-get($grid-breakpoints, sm)) {
27
+ display: flex;
28
+ flex-direction: row;
29
+ flex: 1;
30
+ }
31
+
32
+ &--layout3ish{
33
+ @media (min-width: map-get($grid-breakpoints, lg)) {
34
+ display: flex;
35
+ flex-direction: row;
36
+ }
37
+ }
38
+
39
+ &--grow{
40
+ flex: 1;
41
+ }
42
+ }
43
+
44
+ &--with-icon {
45
+ display: flex;
46
+ flex-direction: row;
47
+ }
48
+
49
+ &__icon {
50
+ padding-right: getSpacer(s);
51
+ &--right {
52
+ padding-left: getSpacer(s);
53
+ }
54
+ }
55
+
56
+ &__content-left {
57
+ &--flex {
58
+ display: flex;
59
+ }
60
+ }
61
+
62
+ &__content-right {
63
+ &--layout1 {
64
+ display: flex;
65
+ flex-direction: column;
66
+ @media (min-width: map-get($grid-breakpoints, md)) {
67
+ flex-direction: row;
68
+ }
69
+ }
70
+
71
+ &--layout2 {
72
+ display: flex;
73
+ flex-direction: column;
74
+ @media (min-width: map-get($grid-breakpoints, md)) {
75
+ max-width: 200px;
76
+ }
77
+ }
78
+
79
+ &--layout3ish {
80
+ display: flex;
81
+ flex-direction: column;
82
+ padding-left: 0;
83
+ @media (min-width: map-get($grid-breakpoints, lg)) {
84
+ flex-direction: row;
85
+ padding-left: getSpacer(m);
86
+ }
87
+ }
88
+
89
+ &--layout3a {
90
+ flex: 0.4;
91
+ }
92
+ &--layout3b {
93
+ flex: 0.55;
94
+ }
95
+ &--layout3c {
96
+ flex: 0.65;
97
+ }
98
+ }
99
+
100
+ &__btn-container {
101
+ display: flex;
102
+ flex-direction: column;
103
+ @media (min-width: map-get($grid-breakpoints, lg)) {
104
+ align-self: end;
105
+ max-width: 300px;
106
+ }
107
+
108
+ &--layout3ish {
109
+ display: flex;
110
+ align-self: initial;
111
+ flex-direction: column;
112
+ @media (min-width: map-get($grid-breakpoints, lg)) {
113
+ align-self: end;
114
+ }
115
+ }
116
+ &--padding-top {
117
+ padding-top: getSpacer(s);
118
+ }
119
+ }
120
+
121
+ &__details-btn {
122
+ &--pull-right {
123
+ align-self: end;
124
+ }
125
+ }
126
+
127
+ // Panel variants
128
+
129
+ &--fill {
130
+ background-color: $neutral50;
131
+
132
+ &:hover {
133
+ background-color: $neutral100;
134
+ }
135
+
136
+ &:focus {
137
+ box-shadow: inset 0px 0px 0px 3px $neutral600;
138
+ }
139
+ }
140
+
141
+ &--selected#{&}--fill {
142
+ background-color: $neutral100;
143
+ border-bottom: 0;
144
+ &:hover {
145
+ background-color: $neutral200;
146
+ }
147
+ }
148
+
149
+ &--white {
150
+ background-color: $white;
151
+ &:hover {
152
+ background-color: $neutral100;
153
+ }
154
+ &:focus {
155
+ box-shadow: inset 0px 0px 0px 3px $neutral600;
156
+ }
157
+ }
158
+
159
+ &--selected#{&}--white {
160
+ box-shadow: inset 0px 0px 0px 6px $neutral100;
161
+ &:hover {
162
+ background-color: $neutral100;
163
+ }
164
+ &:focus {
165
+ box-shadow: inset 0px 0px 0px 3px $neutral600;
166
+ }
167
+ }
168
+
169
+ &--stroke {
170
+ border: 6px solid $neutral100;
171
+ &:hover {
172
+ background-color: $neutral50;
173
+ }
174
+ &:focus {
175
+ border-color: $neutral600;
176
+ box-shadow: inset 0px 0px 0px 3px $neutral100;
177
+ }
178
+ }
179
+
180
+ &--line {
181
+ background-color: $white;
182
+ border-color: $neutral500;
183
+ border-top: 1px solid;
184
+ border-bottom: 1px solid;
185
+ &:hover {
186
+ background-color: $neutral50;
187
+ }
188
+ &:focus {
189
+ border-color: transparent;
190
+ box-shadow: inset 0px 0px 0px 3px $neutral600;
191
+ }
192
+ }
193
+
194
+ &--selected#{&}--line {
195
+ background-color: $neutral50;
196
+ border-bottom: 0;
197
+ &:hover {
198
+ background-color: $neutral100;
199
+ }
200
+ }
201
+
202
+ &--button {
203
+ cursor: pointer;
204
+ }
205
+
206
+ //Panel status
207
+ &--status {
208
+ &::before {
209
+ content: '';
210
+ position: absolute;
211
+ border-left: 0.375rem;
212
+ top: 0;
213
+ left: 0;
214
+ height: 100%;
215
+ border-left-style: solid;
216
+ }
217
+ }
218
+ &--new {
219
+ &::before {
220
+ border-left-color: $blueberry600;
221
+ }
222
+ }
223
+
224
+ &--draft {
225
+ &::before {
226
+ border-left-style: dashed;
227
+ border-left-color: $neutral500;
228
+ }
229
+ }
230
+
231
+ &--error {
232
+ &::before {
233
+ border-left-color: $cherry500;
234
+ }
235
+ }
236
+ }
237
+
238
+ .panel-details {
239
+ background-color: $neutral50;
240
+ display: none;
241
+ @include panel-padding;
242
+
243
+ &--open {
244
+ display: block;
245
+ }
246
+
247
+ &--line {
248
+ background: $white;
249
+ border-bottom: 1px solid $neutral500;
250
+ }
251
+ &--white {
252
+ background: $white;
253
+ }
254
+ }
255
+
256
+ .status-message {
257
+ font-size: $font-size-sm;
258
+ color: $cherry500;
259
+ display: flex;
260
+
261
+ span {
262
+ padding-left: 5px;
263
+ align-self: center;
264
+ font-size: $font-size-sm;
265
+ }
266
+
267
+ &--new {
268
+ color: $blueberry800;
269
+ }
270
+ }
271
+ .panel-content-a {
272
+ flex: 1;
273
+ padding-right: 0;
274
+
275
+ @media (min-width: map-get($grid-breakpoints, md)) {
276
+ padding-right: getSpacer(m);
277
+ }
278
+
279
+ &__title-container {
280
+ display: flex;
281
+ align-items: center;
282
+ padding-bottom: getSpacer(s);
283
+
284
+ & > :last-child() {
285
+ padding-left: getSpacer(xs);
286
+ }
287
+ & > :first-child() {
288
+ padding-left: 0;
289
+ }
290
+ }
291
+
292
+ &--layout3a {
293
+ flex: 0.6;
294
+ }
295
+ &--layout3b {
296
+ flex: 0.45;
297
+ }
298
+ &--layout3c {
299
+ flex: 0.35;
300
+ }
301
+ }
302
+
303
+ .panel-content-b {
304
+ flex: 1;
305
+ padding-top: getSpacer(s);
306
+
307
+ @media (min-width: map-get($grid-breakpoints, lg)) {
308
+ padding-top: 0;
309
+ }
310
+
311
+ &--layout1 {
312
+ padding-top: getSpacer(s);
313
+ padding-left: 0;
314
+ @media (min-width: map-get($grid-breakpoints, md)) {
315
+ padding-right: getSpacer(m);
316
+ }
317
+ }
318
+ }
319
+
320
+ .datetime-container {
321
+ display: flex;
322
+ flex-direction: column;
323
+
324
+ @media (min-width: map-get($grid-breakpoints, lg)) {
325
+ padding-top: getSpacer(xs);
326
+ flex-direction: row;
327
+ }
328
+
329
+ &__icon {
330
+ display: flex;
331
+ align-items: center;
332
+ padding-bottom: getSpacer(2xs);
333
+
334
+ @media (min-width: map-get($grid-breakpoints, lg)) {
335
+ padding-top: 0;
336
+ padding-right: getSpacer(m);
337
+ padding-bottom: 0;
338
+ }
339
+
340
+ span {
341
+ padding-left: getSpacer(2xs);
342
+ font-size: $font-size-sm;
343
+ }
344
+ }
345
+ }
@@ -0,0 +1,34 @@
1
+ export type Styles = {
2
+ 'panel-wrapper': string;
3
+ panel: string;
4
+ 'panel--with-icon': string;
5
+ 'panel--normal': string;
6
+ 'panel--fill': string;
7
+ 'panel--white': string;
8
+ 'panel--stroke': string;
9
+ 'panel--line': string;
10
+ 'panel--new': string;
11
+ 'panel--draft': string;
12
+ 'panel--error': string;
13
+ 'panel--status': string;
14
+ 'panel--container': string;
15
+ 'panel--button': string;
16
+ 'panel__icon': string;
17
+ 'panel__content-left': string;
18
+ 'panel__content-right': string;
19
+ 'panel-content-a__title-container': string;
20
+ 'btn-container': string;
21
+ 'panel-details': string;
22
+ 'panel-details--line': string;
23
+ 'panel-details--white': string;
24
+ 'status-message': string;
25
+ 'status-message--new': string;
26
+ 'datetime-container': string;
27
+ 'datetime-container__icon': string;
28
+ };
29
+
30
+ export type ClassNames = keyof Styles;
31
+
32
+ declare const styles: Styles;
33
+
34
+ export default styles;
@@ -1,2 +1,2 @@
1
- import t from"react";import{createPortal as e}from"react-dom";import{A as r}from"../../constants-075356e2.js";export default function(n){var a=n.children,o=n.parent,i=n.className,c=n.testId,d=t.useMemo((function(){return document.createElement("div")}),[]);return d.setAttribute("data-analyticsid",r.Portal),c&&d.setAttribute("data-testid",c),t.useEffect((function(){var t=o&&o.appendChild?o:document.body,e=["portal-container"];return i&&i.split(" ").forEach((function(t){return e.push(t)})),e.forEach((function(t){return d.classList.add(t)})),t.appendChild(d),function(){t.removeChild(d)}}),[d,o,i]),e(a,d)}
1
+ import t from"react";import{createPortal as e}from"react-dom";import{A as r}from"../../constants-be4018c7.js";export default function(n){var a=n.children,o=n.parent,i=n.className,c=n.testId,d=t.useMemo((function(){return document.createElement("div")}),[]);return d.setAttribute("data-analyticsid",r.Portal),c&&d.setAttribute("data-testid",c),t.useEffect((function(){var t=o&&o.appendChild?o:document.body,e=["portal-container"];return i&&i.split(" ").forEach((function(t){return e.push(t)})),e.forEach((function(t){return d.classList.add(t)})),t.appendChild(d),function(){t.removeChild(d)}}),[d,o,i]),e(a,d)}
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{R as o}from"../../RadioButton-b0da1997.js";export{R as RadioButton,R as default}from"../../RadioButton-b0da1997.js";import"../../_rollupPluginBabelHelpers-6b3099b0.js";import"react";import"../../index-9b84fabc.js";import"../../uuid-fe7442b7.js";import"./styles.module.scss";import"../../constants-075356e2.js";
1
+ import{R as o}from"../../RadioButton-0233a8fb.js";export{R as RadioButton,R as default}from"../../RadioButton-0233a8fb.js";import"../../_rollupPluginBabelHelpers-4f206abf.js";import"react";import"../../index-9b84fabc.js";import"../../uuid-fe7442b7.js";import"./styles.module.scss";import"../../constants-be4018c7.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{_ as e}from"../../_rollupPluginBabelHelpers-6b3099b0.js";import t,{useState as n,useRef as r,useEffect as a}from"react";import{c as o}from"../../index-9b84fabc.js";import{T as i}from"../../Title-1d8708ea.js";import c from"./styles.module.scss";import{A as u}from"../../constants-075356e2.js";import"../Title/styles.module.scss";var s=function(e){return e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),!1},l=function(e){return m(e)?e.touches[0].pageX:e.pageX},d=function(e){var t=e?e.getBoundingClientRect():void 0;return t?t.right-t.left:0},m=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)},f=function(e,t,n){var r=e-e%t,a=Math.floor(n/t)*t;e>a&&(e>a+(n-a)/2&&(r=n));return Math.round(r)},v=t.forwardRef((function(m,v){var p=m.title,h=m.labelLeft,_=m.labelRight,g=m.disabled,E=void 0!==g&&g,y=m.step,b=void 0===y?1:y,w=m.onChange,k=m.testId,L=n(50),x=e(L,2),N=x[0],A=x[1],D=n(!1),M=e(D,2),R=M[0],j=M[1],T=n(0),B=e(T,2),C=B[0],P=B[1],I=n(0),S=e(I,2),X=S[0],H=S[1],K=n(0),U=e(K,2),q=U[0],z=U[1],F=n(0),G=e(F,2),J=G[0],O=G[1],Q=v||r(null),V=r(null),W=function(e){ne(e)},Y=function(e){te(e)},Z=function(e){ne(e)},$=function(e){te(e)};a((function(){var e=d(Q.current),t=d(V.current);z(function(e,t,n,r,a){return(t-n)/(a-r)*e}(N,e,t,0,100)),P(e),H(t)}),[]),a((function(){R&&(function(e,t){document.addEventListener("mousemove",e,!1),document.addEventListener("mouseup",t,!1)}(W,Y),function(e,t){document.addEventListener("touchmove",e,!1),document.addEventListener("touchend",t,!1)}(Z,$))}),[R]),a((function(){!E&&w&&w(N)}),[N]);var ee=function(e){var t;if(!E){var n=d(Q.current),r=d(V.current),a=l(e);!function(e,t,n,r){var a=t?t.getBoundingClientRect():void 0,o=a?a.left:0;r(o?e-(o+n/2):0)}(a,V.current,r,re),j(!0),O(a),P(n),H(r),null===(t=V.current)||void 0===t||t.focus(),s(e)}},te=function(e){E||(j(!1),function(e,t){document.removeEventListener("mousemove",e,!1),document.removeEventListener("mouseup",t,!1)}(W,Y),function(e,t){document.removeEventListener("touchmove",e,!1),document.removeEventListener("touchend",t,!1)}(Z,$),s(e))},ne=function(e){if(!E&&R){var t=l(e);re(t-J),s(e)}},re=function(e){if(0!==e){var t=function(e,t,n,r){var a=r+e;return a<0&&(a=0),a>t-n&&(a=t-n),a}(e,C,X,q);z(t),O(t+e),A(function(e,t,n,r,a,o){var i=(t-n)/(o-a),c=Math.round(e/i);return f(c,r,o)}(t,C,X,b,0,100))}};return t.createElement("div",{className:c.slider,"data-testid":k,"data-analyticsid":u.Slider},p&&t.createElement(i,{htmlMarkup:"h3",margin:1.5,appearance:"title3"},p),t.createElement("div",{ref:Q,className:o(c["slider__track-wrapper"],E?c["slider__track-wrapper--disabled"]:""),onMouseDown:ee,onTouchStart:ee,"data-testid":"tracker"},t.createElement("div",{className:o(c.slider__track,E?c["slider__track--disabled"]:"")}),t.createElement("div",{ref:V,className:o(c.slider__trigger,E?c["slider__trigger--disabled"]:""),style:{left:"".concat(q,"px")},onKeyDown:function(e){if(!E){var t=(C-X)/100;"ArrowRight"!==e.key&&"ArrowDown"!==e.key||re(b*t),"ArrowLeft"!==e.key&&"ArrowUp"!==e.key||re(-b*t)}},role:"slider","aria-valuenow":N,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"".concat(p?p+" ":"").concat(h?h+" ":"").concat(_?_+" ":""),tabIndex:E?-1:0},t.createElement("div",{className:o(c["slider__trigger-inner"],E?c["slider__trigger-inner--disabled"]:"")}))),(h||_)&&t.createElement("span",{className:c.slider__options},t.createElement("p",{className:c.slider__text,"aria-hidden":!0},h),t.createElement("p",{className:c.slider__text,"aria-hidden":!0},_)))}));export default v;export{v as Slider};
1
+ import{_ as e}from"../../_rollupPluginBabelHelpers-4f206abf.js";import t,{useState as n,useRef as r,useEffect as a}from"react";import{c as o}from"../../index-9b84fabc.js";import{T as i}from"../../Title-8fc7396e.js";import c from"./styles.module.scss";import{A as u}from"../../constants-be4018c7.js";import"../Title/styles.module.scss";var s=function(e){return e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),!1},l=function(e){return m(e)?e.touches[0].pageX:e.pageX},d=function(e){var t=e?e.getBoundingClientRect():void 0;return t?t.right-t.left:0},m=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)},f=function(e,t,n){var r=e-e%t,a=Math.floor(n/t)*t;e>a&&(e>a+(n-a)/2&&(r=n));return Math.round(r)},v=t.forwardRef((function(m,v){var p=m.title,h=m.labelLeft,_=m.labelRight,g=m.disabled,E=void 0!==g&&g,y=m.step,b=void 0===y?1:y,w=m.onChange,k=m.testId,L=n(50),x=e(L,2),N=x[0],A=x[1],D=n(!1),M=e(D,2),R=M[0],j=M[1],T=n(0),B=e(T,2),C=B[0],P=B[1],I=n(0),S=e(I,2),X=S[0],H=S[1],K=n(0),U=e(K,2),q=U[0],z=U[1],F=n(0),G=e(F,2),J=G[0],O=G[1],Q=v||r(null),V=r(null),W=function(e){ne(e)},Y=function(e){te(e)},Z=function(e){ne(e)},$=function(e){te(e)};a((function(){var e=d(Q.current),t=d(V.current);z(function(e,t,n,r,a){return(t-n)/(a-r)*e}(N,e,t,0,100)),P(e),H(t)}),[]),a((function(){R&&(function(e,t){document.addEventListener("mousemove",e,!1),document.addEventListener("mouseup",t,!1)}(W,Y),function(e,t){document.addEventListener("touchmove",e,!1),document.addEventListener("touchend",t,!1)}(Z,$))}),[R]),a((function(){!E&&w&&w(N)}),[N]);var ee=function(e){var t;if(!E){var n=d(Q.current),r=d(V.current),a=l(e);!function(e,t,n,r){var a=t?t.getBoundingClientRect():void 0,o=a?a.left:0;r(o?e-(o+n/2):0)}(a,V.current,r,re),j(!0),O(a),P(n),H(r),null===(t=V.current)||void 0===t||t.focus(),s(e)}},te=function(e){E||(j(!1),function(e,t){document.removeEventListener("mousemove",e,!1),document.removeEventListener("mouseup",t,!1)}(W,Y),function(e,t){document.removeEventListener("touchmove",e,!1),document.removeEventListener("touchend",t,!1)}(Z,$),s(e))},ne=function(e){if(!E&&R){var t=l(e);re(t-J),s(e)}},re=function(e){if(0!==e){var t=function(e,t,n,r){var a=r+e;return a<0&&(a=0),a>t-n&&(a=t-n),a}(e,C,X,q);z(t),O(t+e),A(function(e,t,n,r,a,o){var i=(t-n)/(o-a),c=Math.round(e/i);return f(c,r,o)}(t,C,X,b,0,100))}};return t.createElement("div",{className:c.slider,"data-testid":k,"data-analyticsid":u.Slider},p&&t.createElement(i,{htmlMarkup:"h3",margin:1.5,appearance:"title3"},p),t.createElement("div",{ref:Q,className:o(c["slider__track-wrapper"],E?c["slider__track-wrapper--disabled"]:""),onMouseDown:ee,onTouchStart:ee,"data-testid":"tracker"},t.createElement("div",{className:o(c.slider__track,E?c["slider__track--disabled"]:"")}),t.createElement("div",{ref:V,className:o(c.slider__trigger,E?c["slider__trigger--disabled"]:""),style:{left:"".concat(q,"px")},onKeyDown:function(e){if(!E){var t=(C-X)/100;"ArrowRight"!==e.key&&"ArrowDown"!==e.key||re(b*t),"ArrowLeft"!==e.key&&"ArrowUp"!==e.key||re(-b*t)}},role:"slider","aria-valuenow":N,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"".concat(p?p+" ":"").concat(h?h+" ":"").concat(_?_+" ":""),tabIndex:E?-1:0},t.createElement("div",{className:o(c["slider__trigger-inner"],E?c["slider__trigger-inner--disabled"]:"")}))),(h||_)&&t.createElement("span",{className:c.slider__options},t.createElement("p",{className:c.slider__text,"aria-hidden":!0},h),t.createElement("p",{className:c.slider__text,"aria-hidden":!0},_)))}));export default v;export{v as Slider};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{b as s}from"../../_rollupPluginBabelHelpers-6b3099b0.js";import a from"react";import{c as e}from"../../index-9b84fabc.js";import r from"./styles.module.scss";import{A as l}from"../../constants-075356e2.js";var c=a.forwardRef((function(c,p){var t,x=c.size,o=void 0===x?"s":x,m=c.className,i=c.testId,f=e(r.spacer,(s(t={},r["spacer--4xs"],"4xs"===o),s(t,r["spacer--3xs"],"3xs"===o),s(t,r["spacer--2xs"],"2xs"===o),s(t,r["spacer--xs"],"xs"===o),s(t,r["spacer--s"],"s"===o),s(t,r["spacer--m"],"m"===o),s(t,r["spacer--l"],"l"===o),s(t,r["spacer--xl"],"xl"===o),s(t,r["spacer--2xl"],"2xl"===o),s(t,r["spacer--3xl"],"3xl"===o),s(t,r["spacer--4xl"],"4xl"===o),s(t,r["spacer--5xl"],"5xl"===o),s(t,r["spacer--6xl"],"6xl"===o),t),m);return a.createElement("span",{className:f,ref:p,"data-testid":i,"data-analyticsid":l.Spacer})}));export default c;
1
+ import{d as s}from"../../_rollupPluginBabelHelpers-4f206abf.js";import a from"react";import{c as e}from"../../index-9b84fabc.js";import r from"./styles.module.scss";import{A as c}from"../../constants-be4018c7.js";var l=a.forwardRef((function(l,p){var t,x=l.size,o=void 0===x?"s":x,m=l.className,f=l.testId,i=e(r.spacer,(s(t={},r["spacer--4xs"],"4xs"===o),s(t,r["spacer--3xs"],"3xs"===o),s(t,r["spacer--2xs"],"2xs"===o),s(t,r["spacer--xs"],"xs"===o),s(t,r["spacer--s"],"s"===o),s(t,r["spacer--m"],"m"===o),s(t,r["spacer--l"],"l"===o),s(t,r["spacer--xl"],"xl"===o),s(t,r["spacer--2xl"],"2xl"===o),s(t,r["spacer--3xl"],"3xl"===o),s(t,r["spacer--4xl"],"4xl"===o),s(t,r["spacer--5xl"],"5xl"===o),s(t,r["spacer--6xl"],"6xl"===o),t),m);return a.createElement("span",{className:i,ref:p,"data-testid":f,"data-analyticsid":c.Spacer})}));export default l;
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{T as s}from"../../Textarea-648063a9.js";export{T as default}from"../../Textarea-648063a9.js";import"../../_rollupPluginBabelHelpers-6b3099b0.js";import"../../_tslib-51c8a283.js";import"react";import"../../index-9b84fabc.js";import"./styles.module.scss";import"../../constants-075356e2.js";import"../../uuid-fe7442b7.js";
1
+ import{T as e}from"../../Textarea-4597fece.js";export{T as default}from"../../Textarea-4597fece.js";import"../../_rollupPluginBabelHelpers-4f206abf.js";import"../../_tslib-51c8a283.js";import"react";import"../../index-9b84fabc.js";import"./styles.module.scss";import"../../constants-be4018c7.js";import"../../uuid-fe7442b7.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -263,7 +263,25 @@
263
263
  ],
264
264
  "required": false,
265
265
  "type": {
266
- "name": "string"
266
+ "name": "enum",
267
+ "raw": "\"_self\" | \"_blank\" | \"_parent\" | \"_top\" | undefined",
268
+ "value": [
269
+ {
270
+ "value": "undefined"
271
+ },
272
+ {
273
+ "value": "\"_self\""
274
+ },
275
+ {
276
+ "value": "\"_blank\""
277
+ },
278
+ {
279
+ "value": "\"_parent\""
280
+ },
281
+ {
282
+ "value": "\"_top\""
283
+ }
284
+ ]
267
285
  }
268
286
  },
269
287
  "target": {
@@ -1,2 +1,2 @@
1
- import{_ as e,b as t}from"../../_rollupPluginBabelHelpers-6b3099b0.js";import{_ as i}from"../../_tslib-51c8a283.js";import r,{useState as l}from"react";import{c as a}from"../../index-9b84fabc.js";import{A as o,I as n}from"../../constants-075356e2.js";import s from"./styles.module.scss";var c=r.forwardRef((function(e,i){var l,o=e.children,n=e.className,c=e.htmlMarkup,m=void 0===c?"span":c,d=e.highlighted,p=e.compact,f=a(s.tile__title,(t(l={},s["tile__title--highlighted"],d),t(l,s["tile__title--compact"],p),l),n),u=m;return r.createElement(u,{className:f,ref:i},o)})),m=r.forwardRef((function(c,m){var d,p=c.icon,f=c.title,u=c.className,h=void 0===u?"":u,g=c.description,_=c.fixed,b=void 0!==_&&_,v=c.highlighted,E=void 0!==v&&v,N=c.testId,x=i(c,["icon","title","className","description","fixed","highlighted","testId"]),j=l(!1),w=e(j,2),M=w[0],k=w[1],I=!g,y=a(s.tile,(t(d={},s["tile--fixed"],b),t(d,s["tile--compact"],I),t(d,s["tile--highlighted"],E),d),h),B=a(s["title-wrapper"],t({},s["title-wrapper--compact"],I));return r.createElement("a",Object.assign({ref:m,className:y,onMouseEnter:function(){return k(!0)},onMouseLeave:function(){return k(!1)},onFocus:function(){return k(!0)},onBlur:function(){return k(!1)},"data-testid":N,"data-analyticsid":o.Tile,rel:"_blank"===c.target?"noopener noreferrer":c.rel},x),r.createElement("div",{className:B},r.cloneElement(p,{size:n.Medium,isHovered:M,color:E?"white":"black"}),r.cloneElement(f,{highlighted:E,compact:I})),g?r.createElement("p",{className:s.tile__description},g):null)}));m.Title=c;export default m;export{m as Tile};
1
+ import{_ as e,d as t}from"../../_rollupPluginBabelHelpers-4f206abf.js";import{_ as i}from"../../_tslib-51c8a283.js";import r,{useState as l}from"react";import{c as a}from"../../index-9b84fabc.js";import{A as o,I as n}from"../../constants-be4018c7.js";import s from"./styles.module.scss";var c=r.forwardRef((function(e,i){var l,o=e.children,n=e.className,c=e.htmlMarkup,m=void 0===c?"span":c,d=e.highlighted,f=e.compact,p=a(s.tile__title,(t(l={},s["tile__title--highlighted"],d),t(l,s["tile__title--compact"],f),l),n),u=m;return r.createElement(u,{className:p,ref:i},o)})),m=r.forwardRef((function(c,m){var d,f=c.icon,p=c.title,u=c.className,h=void 0===u?"":u,g=c.description,_=c.fixed,v=void 0!==_&&_,b=c.highlighted,E=void 0!==b&&b,N=c.testId,x=i(c,["icon","title","className","description","fixed","highlighted","testId"]),j=l(!1),w=e(j,2),M=w[0],k=w[1],I=!g,y=a(s.tile,(t(d={},s["tile--fixed"],v),t(d,s["tile--compact"],I),t(d,s["tile--highlighted"],E),d),h),B=a(s["title-wrapper"],t({},s["title-wrapper--compact"],I));return r.createElement("a",Object.assign({ref:m,className:y,onMouseEnter:function(){return k(!0)},onMouseLeave:function(){return k(!1)},onFocus:function(){return k(!0)},onBlur:function(){return k(!1)},"data-testid":N,"data-analyticsid":o.Tile,rel:"_blank"===c.target?"noopener noreferrer":c.rel},x),r.createElement("div",{className:B},r.cloneElement(f,{size:n.Medium,isHovered:M,color:E?"white":"black"}),r.cloneElement(p,{highlighted:E,compact:I})),g?r.createElement("p",{className:s.tile__description},g):null)}));m.Title=c;export default m;export{m as Tile};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{T as s}from"../../Title-1d8708ea.js";export{T as default,i as instanceOfTitleMargin}from"../../Title-1d8708ea.js";import"../../_rollupPluginBabelHelpers-6b3099b0.js";import"react";import"../../index-9b84fabc.js";import"./styles.module.scss";import"../../constants-075356e2.js";
1
+ import{T as s}from"../../Title-8fc7396e.js";export{T as default,i as instanceOfTitleMargin}from"../../Title-8fc7396e.js";import"../../_rollupPluginBabelHelpers-4f206abf.js";import"react";import"../../index-9b84fabc.js";import"./styles.module.scss";import"../../constants-be4018c7.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{V as s}from"../../Validation-c196f3f2.js";export{V as Validation,V as default}from"../../Validation-c196f3f2.js";import"react";import"../../index-9b84fabc.js";import"../../FormGroup-f10939e6.js";import"../../_rollupPluginBabelHelpers-6b3099b0.js";import"../FormGroup/styles.module.scss";import"../../Checkbox-8e590de0.js";import"../../uuid-fe7442b7.js";import"../Icons/Check.js";import"../Icons/Icon.js";import"../../_tslib-51c8a283.js";import"../../constants-075356e2.js";import"../../color-e7d082c1.js";import"../../index-d1c9177a.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";import"../Checkbox/styles.module.scss";import"../../RadioButton-b0da1997.js";import"../RadioButton/styles.module.scss";import"../../Input-01c967ac.js";import"../../useBreakpoint-8209ae3c.js";import"../Input/styles.module.scss";import"../../Title-1d8708ea.js";import"../Title/styles.module.scss";import"./styles.module.scss";
1
+ import{V as s}from"../../Validation-247496a2.js";export{V as Validation,V as default}from"../../Validation-247496a2.js";import"react";import"../../index-9b84fabc.js";import"../../FormGroup-e67d4a50.js";import"../../_rollupPluginBabelHelpers-4f206abf.js";import"../FormGroup/styles.module.scss";import"../../Checkbox-657cb5e7.js";import"../../uuid-fe7442b7.js";import"../Icons/Check.js";import"../Icons/Icon.js";import"../../_tslib-51c8a283.js";import"../../constants-be4018c7.js";import"../../color-e7d082c1.js";import"../../index-d1c9177a.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";import"../Checkbox/styles.module.scss";import"../../RadioButton-0233a8fb.js";import"../RadioButton/styles.module.scss";import"../../Input-fe2b4c5a.js";import"../../useBreakpoint-004c6cb2.js";import"../Input/styles.module.scss";import"../../Title-8fc7396e.js";import"../Title/styles.module.scss";import"./styles.module.scss";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- var a,o,n,e,i;!function(a){a[a.XXSmall=24]="XXSmall",a[a.XSmall=38]="XSmall",a[a.Small=48]="Small",a[a.Medium=64]="Medium",a[a.Large=80]="Large",a[a.XLarge=130]="XLarge"}(a||(a={})),function(a){a[a.Modal=13e5]="Modal",a[a.ExpanderTrigger=1e4]="ExpanderTrigger"}(o||(o={})),function(a){a.onwhite="onwhite",a.ongrey="ongrey",a.onblueberry="onblueberry",a.ondark="ondark",a.oninvalid="oninvalid"}(n||(n={})),function(a){a.normal="normal",a.bigform="bigform"}(e||(e={})),function(a){a.AnchorLink="anchor-link",a.Avatar="avatar",a.Badge="badge",a.Button="button",a.Checkbox="checkbox",a.Close="close",a.Expander="expander",a.ExpanderList="expander-list",a.ExpanderListExpander="expander-list-expander",a.FormGroup="form-group",a.HighlightBox="highlight-box",a.Icon="icon",a.Input="input",a.Link="link",a.LinkList="link-list",a.List="list",a.Loader="loader",a.Logo="logo",a.Modal="modal",a.NotificationPanel="notification-panel",a.Portal="portal",a.RadioButton="radio-button",a.Slider="slider",a.Spacer="spacer",a.Textarea="textarea",a.Tile="tile",a.Title="title",a.Validation="validation"}(i||(i={}));export{i as A,n as F,a as I,o as Z,e as a};
2
- //# sourceMappingURL=constants-075356e2.js.map
1
+ var a,n,o,e,i;!function(a){a[a.XXSmall=24]="XXSmall",a[a.XSmall=38]="XSmall",a[a.Small=48]="Small",a[a.Medium=64]="Medium",a[a.Large=80]="Large",a[a.XLarge=130]="XLarge"}(a||(a={})),function(a){a[a.Modal=13e5]="Modal",a[a.ExpanderTrigger=1e4]="ExpanderTrigger"}(n||(n={})),function(a){a.onwhite="onwhite",a.ongrey="ongrey",a.onblueberry="onblueberry",a.ondark="ondark",a.oninvalid="oninvalid"}(o||(o={})),function(a){a.normal="normal",a.bigform="bigform"}(e||(e={})),function(a){a.AnchorLink="anchor-link",a.Avatar="avatar",a.Badge="badge",a.Button="button",a.Checkbox="checkbox",a.Close="close",a.Expander="expander",a.ExpanderList="expander-list",a.ExpanderListExpander="expander-list-expander",a.FormGroup="form-group",a.HighlightBox="highlight-box",a.Icon="icon",a.Input="input",a.Link="link",a.LinkList="link-list",a.List="list",a.Loader="loader",a.Logo="logo",a.Modal="modal",a.NotificationPanel="notification-panel",a.Panel="panel",a.Portal="portal",a.RadioButton="radio-button",a.Slider="slider",a.Spacer="spacer",a.Textarea="textarea",a.Tile="tile",a.Title="title",a.Validation="validation"}(i||(i={}));export{i as A,o as F,a as I,n as Z,e as a};
2
+ //# sourceMappingURL=constants-be4018c7.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants-be4018c7.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/constants.d.ts CHANGED
@@ -22,6 +22,7 @@ export interface HTMLButtonProps {
22
22
  name?: string;
23
23
  type?: 'submit' | 'reset' | 'button' | string;
24
24
  value?: string | string[] | number;
25
+ id?: string;
25
26
  }
26
27
  export interface HTMLTextareaProps {
27
28
  autoFocus?: boolean;
@@ -38,13 +39,14 @@ export interface HTMLTextareaProps {
38
39
  spellcheck?: 'true' | 'default' | 'false';
39
40
  'aria-invalid'?: boolean;
40
41
  }
42
+ export declare type AnchorTarget = '_self' | '_blank' | '_parent' | '_top';
41
43
  export interface HTMLAnchorProps {
42
44
  download?: string;
43
45
  href?: string;
44
46
  hrefLang?: string;
45
47
  media?: string;
46
48
  ping?: string;
47
- rel?: string;
49
+ rel?: AnchorTarget;
48
50
  target?: string;
49
51
  referrerPolicy?: '' | 'same-origin' | 'no-referrer' | 'no-referrer-when-downgrade' | 'origin' | 'origin-when-cross-origin' | 'strict-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url';
50
52
  }
@@ -81,6 +83,7 @@ export declare enum AnalyticsId {
81
83
  Logo = "logo",
82
84
  Modal = "modal",
83
85
  NotificationPanel = "notification-panel",
86
+ Panel = "panel",
84
87
  Portal = "portal",
85
88
  RadioButton = "radio-button",
86
89
  Slider = "slider",
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,OAAO,KAAK;IACZ,MAAM,KAAK;IACX,KAAK,KAAK;IACV,MAAM,KAAK;IACX,KAAK,KAAK;IACV,MAAM,MAAM;CACb;AAED,oBAAY,MAAM;IAChB,KAAK,UAAU;IACf,eAAe,QAAQ;CACxB;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC9C,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC;CACpC;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IAC1C,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EACX,EAAE,GACF,aAAa,GACb,aAAa,GACb,4BAA4B,GAC5B,QAAQ,GACR,0BAA0B,GAC1B,eAAe,GACf,iCAAiC,GACjC,YAAY,CAAC;CAClB;AAED,oBAAY,aAAa,GAAG,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;AAEjF,oBAAY,QAAQ;IAClB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,MAAM,WAAW;IACjB,SAAS,cAAc;CACxB;AAED,oBAAY,WAAW;IACrB,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAED,oBAAY,WAAW;IACrB,UAAU,gBAAgB;IAC1B,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,YAAY,kBAAkB;IAC9B,oBAAoB,2BAA2B;IAC/C,SAAS,eAAe;IACxB,YAAY,kBAAkB;IAC9B,IAAI,SAAS;IACb,KAAK,UAAU;IACf,IAAI,SAAS;IACb,QAAQ,cAAc;IACtB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,iBAAiB,uBAAuB;IACxC,MAAM,WAAW;IACjB,WAAW,iBAAiB;IAC5B,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,UAAU,eAAe;CAC1B"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,OAAO,KAAK;IACZ,MAAM,KAAK;IACX,KAAK,KAAK;IACV,MAAM,KAAK;IACX,KAAK,KAAK;IACV,MAAM,MAAM;CACb;AAED,oBAAY,MAAM;IAChB,KAAK,UAAU;IACf,eAAe,QAAQ;CACxB;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC9C,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC;IACnC,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IAC1C,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,oBAAY,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;AAEnE,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,YAAY,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EACX,EAAE,GACF,aAAa,GACb,aAAa,GACb,4BAA4B,GAC5B,QAAQ,GACR,0BAA0B,GAC1B,eAAe,GACf,iCAAiC,GACjC,YAAY,CAAC;CAClB;AAED,oBAAY,aAAa,GAAG,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;AAEjF,oBAAY,QAAQ;IAClB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,MAAM,WAAW;IACjB,SAAS,cAAc;CACxB;AAED,oBAAY,WAAW;IACrB,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAED,oBAAY,WAAW;IACrB,UAAU,gBAAgB;IAC1B,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,YAAY,kBAAkB;IAC9B,oBAAoB,2BAA2B;IAC/C,SAAS,eAAe;IACxB,YAAY,kBAAkB;IAC9B,IAAI,SAAS;IACb,KAAK,UAAU;IACf,IAAI,SAAS;IACb,QAAQ,cAAc;IACtB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,iBAAiB,uBAAuB;IACxC,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,WAAW,iBAAiB;IAC5B,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,UAAU,eAAe;CAC1B"}
@@ -1,2 +1,2 @@
1
- import r from"react";import{u as e}from"../../useBreakpoint-8209ae3c.js";import"../../_rollupPluginBabelHelpers-6b3099b0.js";import"../../grid-c105cad1.js";function t(t){return r.forwardRef((function(o,a){var i=e();return r.createElement(t,Object.assign({ref:a},o,{breakpoint:i}))}))}export default t;export{t as withBreakpoint};
1
+ import r from"react";import{u as e}from"../../useBreakpoint-004c6cb2.js";import"../../_rollupPluginBabelHelpers-4f206abf.js";import"../../grid-c105cad1.js";function t(t){return r.forwardRef((function(o,a){var i=e();return r.createElement(t,Object.assign({ref:a},o,{breakpoint:i}))}))}export default t;export{t as withBreakpoint};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFocusTrap.d.ts","sourceRoot":"","sources":["../../src/hooks/useFocusTrap.ts"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAGjD,wBAAgB,YAAY,IAAI,KAAK,CAAC,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAC,CA2D5E;AAED,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"useFocusTrap.d.ts","sourceRoot":"","sources":["../../src/hooks/useFocusTrap.ts"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAIjD,wBAAgB,YAAY,IAAI,KAAK,CAAC,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAC,CA2D5E;AAED,eAAe,YAAY,CAAC"}
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export{t as theme}from"./index-d1c9177a.js";export{B as Breakpoint,u as useBreakpoint}from"./useBreakpoint-8209ae3c.js";import{_ as e}from"./_rollupPluginBabelHelpers-6b3099b0.js";import{useState as n,useEffect as o}from"react";export{u as useFocusTrap,a as useIntersectionObserver,b as useIsVisible}from"./useIsVisible-f5d49913.js";export{u as useHover}from"./useHover-507fb85a.js";export{u as useLayoutEvent,a as useWindowSize}from"./useWindowSize-58f26dea.js";export{u as usePrevious}from"./usePrevious-ae293b10.js";export{u as useSticky}from"./useSticky-a572c326.js";export{A as AnalyticsId,F as FormMode,a as FormVariant,I as IconSize,Z as ZIndex}from"./constants-075356e2.js";import"./palette-f206f488.js";import"./grid-c105cad1.js";var r=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([type="hidden"]):not([type="radio"]):not([disabled]):not([tabindex^="-"])','input[type="radio"]:not([disabled]):not([tabindex^="-"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','iframe:not([tabindex^="-"])','audio[controls]:not([tabindex^="-"])','video[controls]:not([tabindex^="-"])','[contenteditable]:not([tabindex^="-"])','[tabindex]:not([tabindex^="-"])'].join(","),i=function(t,a){var i=n(),s=e(i,2),u=s[0],d=s[1];return o((function(){var e=function(){var e,n=null===(e=t.current)||void 0===e?void 0:e.querySelectorAll(r);d(n)},n=new MutationObserver(e);return(null==t?void 0:t.current)&&n.observe(t.current,{subtree:!0,childList:!0}),e(),function(){n.disconnect()}}),[t]),o((function(){a?null==u||u.forEach((function(e){var t=e.getAttribute("data-tabindex");t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})):null==u||u.forEach((function(e){e.hasAttribute("tabindex")&&e.setAttribute("data-tabindex","".concat(e.tabIndex)),e.tabIndex=-1}))}),[a,u]),u},s=function(t){var r=n(),a=e(r,2),i=a[0],s=a[1];return o((function(){var e=new ResizeObserver((function(e){s(e[0].target.getBoundingClientRect())}));return(null==t?void 0:t.current)&&e.observe(null==t?void 0:t.current),e.disconnect}),[t]),i};export{i as useFocusToggle,s as useSize};
1
+ export{t as theme}from"./index-d1c9177a.js";export{B as Breakpoint,u as useBreakpoint}from"./useBreakpoint-004c6cb2.js";export{u as useFocusToggle,a as useFocusTrap,b as useIntersectionObserver,c as useIsVisible}from"./useIsVisible-fad4d769.js";export{u as useHover}from"./useHover-026f72c1.js";export{u as useLayoutEvent,a as useWindowSize}from"./useWindowSize-5cc481da.js";export{u as usePrevious}from"./usePrevious-ae293b10.js";export{u as useSticky}from"./useSticky-807e5dde.js";import{_ as e}from"./_rollupPluginBabelHelpers-4f206abf.js";import{useState as s,useEffect as r}from"react";export{A as AnalyticsId,F as FormMode,a as FormVariant,I as IconSize,Z as ZIndex}from"./constants-be4018c7.js";import"./palette-f206f488.js";import"./grid-c105cad1.js";var o=function(o){var t=s(),a=e(t,2),u=a[0],i=a[1];return r((function(){var e=new ResizeObserver((function(e){i(e[0].target.getBoundingClientRect())}));return(null==o?void 0:o.current)&&e.observe(null==o?void 0:o.current),e.disconnect}),[o]),u};export{o as useSize};
2
2
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@helsenorge/designsystem-react",
3
3
  "sideEffects": false,
4
- "version": "1.0.0-beta110",
4
+ "version": "1.0.0-beta113",
5
5
  "description": "The official design system for Helsenorge built with React.",
6
6
  "repository": {
7
7
  "type": "tfs",
@@ -1,2 +1,2 @@
1
- import{_ as e}from"./_rollupPluginBabelHelpers-6b3099b0.js";import{useState as r,useEffect as n}from"react";import{b as s,s as t}from"./grid-c105cad1.js";var a;!function(e){e[e.xxs=s.xxs]="xxs",e[e.xs=s.xs]="xs",e[e.sm=s.sm]="sm",e[e.md=s.md]="md",e[e.lg=s.lg]="lg",e[e.xl=s.xl]="xl"}(a||(a={}));var i=function(){var s=r(a.xxs),i=e(s,2),m=i[0],o=i[1];return n((function(){var r,n,s=function(e){switch(e.media){case t.xl:return void o(e.matches?a.xl:a.lg);case t.lg:return void o(e.matches?a.lg:a.md);case t.md:return void o(e.matches?a.md:a.sm);case t.sm:return void o(e.matches?a.sm:a.xs);case t.xs:return void o(e.matches?a.xs:a.xxs);default:return void o(a.xxs)}},i=Object.entries(t).reverse().map((function(r){var n=e(r,2),s=n[0],t=n[1];return{breakpoint:a[s],mediaQuery:window.matchMedia(t)}}));i.forEach((function(e){return e.mediaQuery.addEventListener("change",s)}));var u=null!==(n=null===(r=i.find((function(e){return e.mediaQuery.matches})))||void 0===r?void 0:r.breakpoint)&&void 0!==n?n:m;return o(u),function(){i.forEach((function(e){return e.mediaQuery.removeEventListener("change",s)}))}}),[]),m};export{a as B,i as u};
2
- //# sourceMappingURL=useBreakpoint-8209ae3c.js.map
1
+ import{_ as e}from"./_rollupPluginBabelHelpers-4f206abf.js";import{useState as r,useEffect as n}from"react";import{b as s,s as t}from"./grid-c105cad1.js";var a;!function(e){e[e.xxs=s.xxs]="xxs",e[e.xs=s.xs]="xs",e[e.sm=s.sm]="sm",e[e.md=s.md]="md",e[e.lg=s.lg]="lg",e[e.xl=s.xl]="xl"}(a||(a={}));var i=function(){var s=r(a.xxs),i=e(s,2),m=i[0],o=i[1];return n((function(){var r,n,s=function(e){switch(e.media){case t.xl:return void o(e.matches?a.xl:a.lg);case t.lg:return void o(e.matches?a.lg:a.md);case t.md:return void o(e.matches?a.md:a.sm);case t.sm:return void o(e.matches?a.sm:a.xs);case t.xs:return void o(e.matches?a.xs:a.xxs);default:return void o(a.xxs)}},i=Object.entries(t).reverse().map((function(r){var n=e(r,2),s=n[0],t=n[1];return{breakpoint:a[s],mediaQuery:window.matchMedia(t)}}));i.forEach((function(e){return e.mediaQuery.addEventListener("change",s)}));var u=null!==(n=null===(r=i.find((function(e){return e.mediaQuery.matches})))||void 0===r?void 0:r.breakpoint)&&void 0!==n?n:m;return o(u),function(){i.forEach((function(e){return e.mediaQuery.removeEventListener("change",s)}))}}),[]),m};export{a as B,i as u};
2
+ //# sourceMappingURL=useBreakpoint-004c6cb2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useBreakpoint-004c6cb2.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{_ as e}from"./_rollupPluginBabelHelpers-4f206abf.js";import{useRef as r,useState as n,useEffect as t}from"react";var o=function(o,u){var f=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=o||r(null),c=n(!1),a=e(c,2),v=a[0],s=a[1];return t((function(){var e=i.current,r=function(){return s(!0)},n=function(){return s(!1)},t=["mouseenter",f?"focusin":""];t.forEach((function(n){return e&&e.addEventListener(n,r)}));var o=["mouseleave",f?"focusout":""];return o.forEach((function(r){return e&&e.addEventListener(r,n)})),function(){[].concat(t,o).forEach((function(t){return e&&e.removeEventListener(t,r)&&e.removeEventListener(t,n)}))}}),[i,u]),{hoverRef:i,isHovered:v}};export{o as u};
2
+ //# sourceMappingURL=useHover-026f72c1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useHover-026f72c1.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{useState as t,useEffect as e,useRef as n}from"react";import{_ as r}from"./_rollupPluginBabelHelpers-4f206abf.js";var o=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([type="hidden"]):not([type="radio"]):not([disabled]):not([tabindex^="-"])','input[type="radio"]:not([disabled]):not([tabindex^="-"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','iframe:not([tabindex^="-"])','audio[controls]:not([tabindex^="-"])','video[controls]:not([tabindex^="-"])','[contenteditable]:not([tabindex^="-"])','[tabindex]:not([tabindex^="-"])'].join(","),i=function(n,i){var a=t(),u=r(a,2),c=u[0],d=u[1];return e((function(){var t=function(){var t,e=null===(t=n.current)||void 0===t?void 0:t.querySelectorAll(o);d(e)},e=new MutationObserver(t);return(null==n?void 0:n.current)&&e.observe(n.current,{subtree:!0,childList:!0}),t(),function(){e.disconnect()}}),[n]),e((function(){i?null==c||c.forEach((function(t){var e=t.getAttribute("data-tabindex");e?t.setAttribute("tabindex",e):t.removeAttribute("tabindex")})):null==c||c.forEach((function(t){t.hasAttribute("tabindex")&&t.setAttribute("data-tabindex","".concat(t.tabIndex)),t.tabIndex=-1}))}),[i,c]),c};function a(){var t=n(null);function r(e){var n=t.current,r="Tab"===e.key;if(n&&r){var i=function(t){try{return("string"==typeof t?document.querySelector(t):t).getRootNode().activeElement}catch(e){return console.error("Feil ved å ta tak i active element basert på angitt node: ",t,e),null}}(n),a=null==n?void 0:n.querySelectorAll(o),u=a[0],c=1===a.length?u:a[a.length-1];e.shiftKey?i===u&&(c.focus(),e.preventDefault()):i===c&&(u.focus(),e.preventDefault())}}function i(e){var n=t.current;if(n){var r=n.querySelectorAll('a[href], button, textarea, input[type="text"], input[type="radio"], input[type="checkbox"], select');1===r.length&&(r[0].focus(),e.preventDefault())}}return e((function(){var e=t.current;return e.addEventListener("keydown",r),e.addEventListener("click",i),function(){e.removeEventListener("keydown",r),e.removeEventListener("click",i)}}),[]),t}var u=function(t,n,r){e((function(){var e=new IntersectionObserver(n,r);return(null==t?void 0:t.current)&&e.observe(t.current),function(){(null==t?void 0:t.current)&&e.unobserve(t.current)}}),[t])},c=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=t(!1),i=r(o,2),a=i[0],c=i[1],d=function(t){c(t[0].intersectionRatio>=n)};return u(e,d,{threshold:n}),a};export{a,u as b,c,i as u};
2
+ //# sourceMappingURL=useIsVisible-fad4d769.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIsVisible-fad4d769.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import{_ as i}from"./_rollupPluginBabelHelpers-6b3099b0.js";import{useState as o}from"react";import{u as t}from"./useWindowSize-58f26dea.js";var e=function(e,n){var r=o(!1),d=i(r,2),u=d[0],l=d[1],s=o(!1),v=i(s,2),a=v[0],c=v[1],f=o(),g=i(f,2),m=g[0],p=g[1],h=o(),b=i(h,2),w=b[0],W=b[1];return t((function(){var i,o,t,r=(null===(i=e.current)||void 0===i?void 0:i.getBoundingClientRect())||{},d=r.top,u=void 0===d?0:d,s=r.width,v=void 0===s?0:s,a=r.bottom,f=void 0===a?0:a,g=null!==(t=null===(o=n.current)||void 0===o?void 0:o.getBoundingClientRect().height)&&void 0!==t?t:0;l(u<=0),c(f<=g),W(v),p(g)}),["resize","scroll"]),{isOutsideWindow:u,isLeavingWindow:a,offsetHeight:m,contentWidth:w}};export{e as u};
2
- //# sourceMappingURL=useSticky-a572c326.js.map
1
+ import{_ as i}from"./_rollupPluginBabelHelpers-4f206abf.js";import{useState as o}from"react";import{u as t}from"./useWindowSize-5cc481da.js";var e=function(e,n){var r=o(!1),d=i(r,2),u=d[0],l=d[1],s=o(!1),v=i(s,2),a=v[0],c=v[1],f=o(),g=i(f,2),m=g[0],p=g[1],h=o(),w=i(h,2),W=w[0],b=w[1];return t((function(){var i,o,t,r=(null===(i=e.current)||void 0===i?void 0:i.getBoundingClientRect())||{},d=r.top,u=void 0===d?0:d,s=r.width,v=void 0===s?0:s,a=r.bottom,f=void 0===a?0:a,g=null!==(t=null===(o=n.current)||void 0===o?void 0:o.getBoundingClientRect().height)&&void 0!==t?t:0;l(u<=0),c(f<=g),b(v),p(g)}),["resize","scroll"]),{isOutsideWindow:u,isLeavingWindow:a,offsetHeight:m,contentWidth:W}};export{e as u};
2
+ //# sourceMappingURL=useSticky-807e5dde.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSticky-807e5dde.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import{a as n,_ as e}from"./_rollupPluginBabelHelpers-6b3099b0.js";import{useEffect as i,useState as t}from"react";function o(n,e,i){var t;return function(){var o=this,r=arguments,u=function(){t=null,i||n.apply(o,r)},a=i&&!t;t&&clearTimeout(t),t=setTimeout(u,e),a&&n.apply(o,r)}}var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["layoutchange","resize","orientationchange"],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;i((function(){if("object"===("undefined"==typeof window?"undefined":n(window))){var i=o(e,r);return t.forEach((function(n){return window.addEventListener(n,i)})),i(),function(){t.forEach((function(n){return window.removeEventListener(n,i)}))}}}),[])},u=function(){var e="object"===("undefined"==typeof window?"undefined":n(window));return{width:e?window.innerWidth:void 0,height:e?window.innerHeight:void 0}};function a(){var n=t(u()),i=e(n,2),o=i[0],a=i[1];return r((function(){a(u())}),["resize"]),o}export{a,r as u};
2
- //# sourceMappingURL=useWindowSize-58f26dea.js.map
1
+ import{a as n,_ as e}from"./_rollupPluginBabelHelpers-4f206abf.js";import{useEffect as i,useState as t}from"react";function o(n,e,i){var t;return function(){var o=this,r=arguments,u=function(){t=null,i||n.apply(o,r)},a=i&&!t;t&&clearTimeout(t),t=setTimeout(u,e),a&&n.apply(o,r)}}var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["layoutchange","resize","orientationchange"],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;i((function(){if("object"===("undefined"==typeof window?"undefined":n(window))){var i=o(e,r);return t.forEach((function(n){return window.addEventListener(n,i)})),i(),function(){t.forEach((function(n){return window.removeEventListener(n,i)}))}}}),[])},u=function(){var e="object"===("undefined"==typeof window?"undefined":n(window));return{width:e?window.innerWidth:void 0,height:e?window.innerHeight:void 0}};function a(){var n=t(u()),i=e(n,2),o=i[0],a=i[1];return r((function(){a(u())}),["resize"]),o}export{a,r as u};
2
+ //# sourceMappingURL=useWindowSize-5cc481da.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useWindowSize-5cc481da.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}