@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,440 @@
1
+ {
2
+ "props": {
3
+ "title": {
4
+ "defaultValue": null,
5
+ "description": "Title of the panel",
6
+ "name": "title",
7
+ "parent": {
8
+ "fileName": "src/components/Panel/Panel.tsx",
9
+ "name": "PanelProps"
10
+ },
11
+ "declarations": [
12
+ {
13
+ "fileName": "src/components/Panel/Panel.tsx",
14
+ "name": "PanelProps"
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/Panel/Panel.tsx",
28
+ "name": "PanelProps"
29
+ },
30
+ "declarations": [
31
+ {
32
+ "fileName": "src/components/Panel/Panel.tsx",
33
+ "name": "PanelProps"
34
+ }
35
+ ],
36
+ "required": false,
37
+ "type": {
38
+ "name": "string"
39
+ }
40
+ },
41
+ "testId": {
42
+ "defaultValue": null,
43
+ "description": "Sets the data-testid attribute.",
44
+ "name": "testId",
45
+ "parent": {
46
+ "fileName": "src/components/Panel/Panel.tsx",
47
+ "name": "PanelProps"
48
+ },
49
+ "declarations": [
50
+ {
51
+ "fileName": "src/components/Panel/Panel.tsx",
52
+ "name": "PanelProps"
53
+ }
54
+ ],
55
+ "required": false,
56
+ "type": {
57
+ "name": "string"
58
+ }
59
+ },
60
+ "status": {
61
+ "defaultValue": null,
62
+ "description": "Displays a status on the left side: defualt normal",
63
+ "name": "status",
64
+ "parent": {
65
+ "fileName": "src/components/Panel/Panel.tsx",
66
+ "name": "PanelProps"
67
+ },
68
+ "declarations": [
69
+ {
70
+ "fileName": "src/components/Panel/Panel.tsx",
71
+ "name": "PanelProps"
72
+ }
73
+ ],
74
+ "required": false,
75
+ "type": {
76
+ "name": "enum",
77
+ "raw": "\"normal\" | \"new\" | \"error\" | \"draft\" | undefined",
78
+ "value": [
79
+ {
80
+ "value": "undefined"
81
+ },
82
+ {
83
+ "value": "\"normal\""
84
+ },
85
+ {
86
+ "value": "\"new\""
87
+ },
88
+ {
89
+ "value": "\"error\""
90
+ },
91
+ {
92
+ "value": "\"draft\""
93
+ }
94
+ ]
95
+ }
96
+ },
97
+ "statusMessage": {
98
+ "defaultValue": null,
99
+ "description": "Displayed on top of the panel with a status icon",
100
+ "name": "statusMessage",
101
+ "parent": {
102
+ "fileName": "src/components/Panel/Panel.tsx",
103
+ "name": "PanelProps"
104
+ },
105
+ "declarations": [
106
+ {
107
+ "fileName": "src/components/Panel/Panel.tsx",
108
+ "name": "PanelProps"
109
+ }
110
+ ],
111
+ "required": false,
112
+ "type": {
113
+ "name": "string"
114
+ }
115
+ },
116
+ "variant": {
117
+ "defaultValue": null,
118
+ "description": "Changes the visual representation of the panel.",
119
+ "name": "variant",
120
+ "parent": {
121
+ "fileName": "src/components/Panel/Panel.tsx",
122
+ "name": "PanelProps"
123
+ },
124
+ "declarations": [
125
+ {
126
+ "fileName": "src/components/Panel/Panel.tsx",
127
+ "name": "PanelProps"
128
+ }
129
+ ],
130
+ "required": false,
131
+ "type": {
132
+ "name": "enum",
133
+ "raw": "\"fill\" | \"white\" | \"stroke\" | \"line\" | undefined",
134
+ "value": [
135
+ {
136
+ "value": "undefined"
137
+ },
138
+ {
139
+ "value": "\"fill\""
140
+ },
141
+ {
142
+ "value": "\"white\""
143
+ },
144
+ {
145
+ "value": "\"stroke\""
146
+ },
147
+ {
148
+ "value": "\"line\""
149
+ }
150
+ ]
151
+ }
152
+ },
153
+ "url": {
154
+ "defaultValue": null,
155
+ "description": "Url to details, renders as a button with anchor tag",
156
+ "name": "url",
157
+ "parent": {
158
+ "fileName": "src/components/Panel/Panel.tsx",
159
+ "name": "PanelProps"
160
+ },
161
+ "declarations": [
162
+ {
163
+ "fileName": "src/components/Panel/Panel.tsx",
164
+ "name": "PanelProps"
165
+ }
166
+ ],
167
+ "required": false,
168
+ "type": {
169
+ "name": "string"
170
+ }
171
+ },
172
+ "target": {
173
+ "defaultValue": null,
174
+ "description": "target used in the button: default is _self",
175
+ "name": "target",
176
+ "parent": {
177
+ "fileName": "src/components/Panel/Panel.tsx",
178
+ "name": "PanelProps"
179
+ },
180
+ "declarations": [
181
+ {
182
+ "fileName": "src/components/Panel/Panel.tsx",
183
+ "name": "PanelProps"
184
+ }
185
+ ],
186
+ "required": false,
187
+ "type": {
188
+ "name": "enum",
189
+ "raw": "\"_self\" | \"_blank\" | \"_parent\" | \"_top\" | undefined",
190
+ "value": [
191
+ {
192
+ "value": "undefined"
193
+ },
194
+ {
195
+ "value": "\"_self\""
196
+ },
197
+ {
198
+ "value": "\"_blank\""
199
+ },
200
+ {
201
+ "value": "\"_parent\""
202
+ },
203
+ {
204
+ "value": "\"_top\""
205
+ }
206
+ ]
207
+ }
208
+ },
209
+ "icon": {
210
+ "defaultValue": null,
211
+ "description": "Icon displayed in title",
212
+ "name": "icon",
213
+ "parent": {
214
+ "fileName": "src/components/Panel/Panel.tsx",
215
+ "name": "PanelProps"
216
+ },
217
+ "declarations": [
218
+ {
219
+ "fileName": "src/components/Panel/Panel.tsx",
220
+ "name": "PanelProps"
221
+ }
222
+ ],
223
+ "required": false,
224
+ "type": {
225
+ "name": "ReactNode"
226
+ }
227
+ },
228
+ "iconRight": {
229
+ "defaultValue": null,
230
+ "description": "Display icon on right",
231
+ "name": "iconRight",
232
+ "parent": {
233
+ "fileName": "src/components/Panel/Panel.tsx",
234
+ "name": "PanelProps"
235
+ },
236
+ "declarations": [
237
+ {
238
+ "fileName": "src/components/Panel/Panel.tsx",
239
+ "name": "PanelProps"
240
+ }
241
+ ],
242
+ "required": false,
243
+ "type": {
244
+ "name": "boolean"
245
+ }
246
+ },
247
+ "contentA": {
248
+ "defaultValue": null,
249
+ "description": "Panel section A content",
250
+ "name": "contentA",
251
+ "parent": {
252
+ "fileName": "src/components/Panel/Panel.tsx",
253
+ "name": "PanelProps"
254
+ },
255
+ "declarations": [
256
+ {
257
+ "fileName": "src/components/Panel/Panel.tsx",
258
+ "name": "PanelProps"
259
+ }
260
+ ],
261
+ "required": false,
262
+ "type": {
263
+ "name": "ReactNode"
264
+ }
265
+ },
266
+ "contentB": {
267
+ "defaultValue": null,
268
+ "description": "Panel section B content",
269
+ "name": "contentB",
270
+ "parent": {
271
+ "fileName": "src/components/Panel/Panel.tsx",
272
+ "name": "PanelProps"
273
+ },
274
+ "declarations": [
275
+ {
276
+ "fileName": "src/components/Panel/Panel.tsx",
277
+ "name": "PanelProps"
278
+ }
279
+ ],
280
+ "required": false,
281
+ "type": {
282
+ "name": "ReactNode"
283
+ }
284
+ },
285
+ "buttonText": {
286
+ "defaultValue": null,
287
+ "description": "Panel button text",
288
+ "name": "buttonText",
289
+ "parent": {
290
+ "fileName": "src/components/Panel/Panel.tsx",
291
+ "name": "PanelProps"
292
+ },
293
+ "declarations": [
294
+ {
295
+ "fileName": "src/components/Panel/Panel.tsx",
296
+ "name": "PanelProps"
297
+ }
298
+ ],
299
+ "required": false,
300
+ "type": {
301
+ "name": "string"
302
+ }
303
+ },
304
+ "buttonTextClose": {
305
+ "defaultValue": null,
306
+ "description": "Panel button close text",
307
+ "name": "buttonTextClose",
308
+ "parent": {
309
+ "fileName": "src/components/Panel/Panel.tsx",
310
+ "name": "PanelProps"
311
+ },
312
+ "declarations": [
313
+ {
314
+ "fileName": "src/components/Panel/Panel.tsx",
315
+ "name": "PanelProps"
316
+ }
317
+ ],
318
+ "required": false,
319
+ "type": {
320
+ "name": "string"
321
+ }
322
+ },
323
+ "showCloseButtonInExpand": {
324
+ "defaultValue": null,
325
+ "description": "Show close button in bottom of Panel Expand, default: true",
326
+ "name": "showCloseButtonInExpand",
327
+ "parent": {
328
+ "fileName": "src/components/Panel/Panel.tsx",
329
+ "name": "PanelProps"
330
+ },
331
+ "declarations": [
332
+ {
333
+ "fileName": "src/components/Panel/Panel.tsx",
334
+ "name": "PanelProps"
335
+ }
336
+ ],
337
+ "required": false,
338
+ "type": {
339
+ "name": "boolean"
340
+ }
341
+ },
342
+ "layout": {
343
+ "defaultValue": null,
344
+ "description": "Layout (see description)",
345
+ "name": "layout",
346
+ "parent": {
347
+ "fileName": "src/components/Panel/Panel.tsx",
348
+ "name": "PanelProps"
349
+ },
350
+ "declarations": [
351
+ {
352
+ "fileName": "src/components/Panel/Panel.tsx",
353
+ "name": "PanelProps"
354
+ }
355
+ ],
356
+ "required": false,
357
+ "type": {
358
+ "name": "enum",
359
+ "raw": "\"layout1\" | \"layout2\" | \"layout3a\" | \"layout3b\" | \"layout3c\" | undefined",
360
+ "value": [
361
+ {
362
+ "value": "undefined"
363
+ },
364
+ {
365
+ "value": "\"layout1\""
366
+ },
367
+ {
368
+ "value": "\"layout2\""
369
+ },
370
+ {
371
+ "value": "\"layout3a\""
372
+ },
373
+ {
374
+ "value": "\"layout3b\""
375
+ },
376
+ {
377
+ "value": "\"layout3c\""
378
+ }
379
+ ]
380
+ }
381
+ },
382
+ "containerAsButton": {
383
+ "defaultValue": null,
384
+ "description": "Use the panel's container as a button",
385
+ "name": "containerAsButton",
386
+ "parent": {
387
+ "fileName": "src/components/Panel/Panel.tsx",
388
+ "name": "PanelProps"
389
+ },
390
+ "declarations": [
391
+ {
392
+ "fileName": "src/components/Panel/Panel.tsx",
393
+ "name": "PanelProps"
394
+ }
395
+ ],
396
+ "required": false,
397
+ "type": {
398
+ "name": "boolean"
399
+ }
400
+ },
401
+ "time": {
402
+ "defaultValue": null,
403
+ "description": "Displays time with icon",
404
+ "name": "time",
405
+ "parent": {
406
+ "fileName": "src/components/Panel/Panel.tsx",
407
+ "name": "PanelProps"
408
+ },
409
+ "declarations": [
410
+ {
411
+ "fileName": "src/components/Panel/Panel.tsx",
412
+ "name": "PanelProps"
413
+ }
414
+ ],
415
+ "required": false,
416
+ "type": {
417
+ "name": "string"
418
+ }
419
+ },
420
+ "date": {
421
+ "defaultValue": null,
422
+ "description": "Displays date with icon",
423
+ "name": "date",
424
+ "parent": {
425
+ "fileName": "src/components/Panel/Panel.tsx",
426
+ "name": "PanelProps"
427
+ },
428
+ "declarations": [
429
+ {
430
+ "fileName": "src/components/Panel/Panel.tsx",
431
+ "name": "PanelProps"
432
+ }
433
+ ],
434
+ "required": false,
435
+ "type": {
436
+ "name": "string"
437
+ }
438
+ }
439
+ }
440
+ }
@@ -0,0 +1,4 @@
1
+ import Panel from './Panel';
2
+ export * from './Panel';
3
+ export default Panel;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,eAAe,KAAK,CAAC"}
@@ -0,0 +1,2 @@
1
+ import{_ as e,d as t}from"../../_rollupPluginBabelHelpers-4f206abf.js";import a,{useState as n,useRef as l}from"react";import{c as o}from"../../index-9b84fabc.js";import r from"./styles.module.scss";import{T as s}from"../../Title-8fc7396e.js";import{B as i}from"../../Button-218a5289.js";import{A as c,I as m}from"../../constants-be4018c7.js";import{Icon as d}from"../Icons/Icon.js";import u from"../Icons/ChevronDown.js";import p from"../Icons/ChevronUp.js";import v from"../Icons/ArrowRight.js";import f from"../Icons/AlertSignFill.js";import{p as y}from"../../palette-f206f488.js";import _ from"../Icons/Pencil.js";import b from"../Icons/Calendar.js";import g from"../Icons/Watch.js";import{u as E,B as j}from"../../useBreakpoint-004c6cb2.js";import{B as h}from"../../Badge-81cefbed.js";import{u as I}from"../../uuid-fe7442b7.js";import"../Title/styles.module.scss";import"../../_tslib-51c8a283.js";import"../../color-e7d082c1.js";import"../../index-d1c9177a.js";import"../../grid-c105cad1.js";import"../../Loader-8a2970bd.js";import"../Loader/styles.module.scss";import"../../useHover-026f72c1.js";import"../../useWindowSize-5cc481da.js";import"../Button/styles.module.scss";import"../Badge/styles.module.scss";var w,N,k;!function(e){e.normal="normal",e.new="new",e.error="error",e.draft="draft"}(w||(w={})),function(e){e.fill="fill",e.white="white",e.stroke="stroke",e.line="line"}(N||(N={})),function(e){e.layout1="layout1",e.layout2="layout2",e.layout3a="layout3a",e.layout3b="layout3b",e.layout3c="layout3c"}(k||(k={}));var B=a.forwardRef((function(B,x){var S,C,A,T,z,D,O,P=B.children,R=B.contentA,X=B.contentB,H=B.className,L=B.testId,M=B.title,W=B.url,F=B.target,K=void 0===F?"_self":F,U=B.icon,q=B.iconRight,G=void 0!==q&&q,J=B.variant,Q=void 0===J?N.fill:J,V=B.status,Y=void 0===V?w.normal:V,Z=B.statusMessage,$=B.buttonText,ee=void 0===$?"Se detaljer":$,te=B.buttonTextClose,ae=void 0===te?"Skjul detaljer":te,ne=B.showCloseButtonInExpand,le=void 0===ne||ne,oe=B.layout,re=void 0===oe?k.layout2:oe,se=B.containerAsButton,ie=void 0!==se&&se,ce=B.date,me=B.time,de=n(!1),ue=e(de,2),pe=ue[0],ve=ue[1],fe=l(null),ye=I(),_e=E(),be=Q===N.line,ge=Q===N.white,Ee=[k.layout3a.toString(),k.layout3b.toString(),k.layout3c.toString()].includes(re),je=o(r["panel-wrapper"],H),he=o(r.panel,(t(S={},r["panel--fill"],Q===N.fill),t(S,r["panel--stroke"],Q===N.stroke),t(S,r["panel--white"],ge),t(S,r["panel--line"],be),t(S,r["panel--selected"],pe),t(S,r["panel--new"],Y===w.new),t(S,r["panel--draft"],Y===w.draft),t(S,r["panel--error"],Y===w.error),t(S,r["panel--status"],Y&&Y!==w.normal),t(S,r["panel--with-icon"],U),t(S,r["panel--button"],ie),S)),Ie=o((t(C={},r.panel__container,re===k.layout2&&X),t(C,r["panel__container--layout3ish"],Ee&&X),t(C,r["panel__container--grow"],U),C)),we=o((t(A={},r["panel-content-a"],re===k.layout2),t(A,r["panel-content-a--layout3a"],re===k.layout3a),t(A,r["panel-content-a--layout3b"],re===k.layout3b),t(A,r["panel-content-a--layout3c"],re===k.layout3c),A)),Ne=o((t(T={},r["panel__content-right--layout1"],X&&re===k.layout1),t(T,r["panel__content-right--layout2"],X&&re===k.layout2),t(T,r["panel__content-right--layout3ish"],X&&Ee),t(T,r["panel__content-right--layout3a"],X&&re===k.layout3a),t(T,r["panel__content-right--layout3b"],X&&re===k.layout3b),t(T,r["panel__content-right--layout3c"],X&&re===k.layout3c),T)),ke=o(r["panel-details"],(t(z={},r["panel-details--open"],pe),t(z,r["panel-details--line"],be),t(z,r["panel-details--white"],ge),z)),Be=o(r["panel-content-b"],t({},r["panel-content-b--layout1"],re===k.layout1)),xe=o(r["panel__details-btn"],t({},r["panel__details-btn--pull-right"],X)),Se=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0,n={id:t,tabIndex:e?void 0:-1,variant:"borderless",ref:t?fe:void 0,ellipsis:!0};return P?a.createElement(i,Object.assign({testId:"expand",onClick:function(){return ve(!pe)}},n),pe?ae:ee,a.createElement(d,{svgIcon:pe?p:u})):a.createElement(i,Object.assign({testId:"url",htmlMarkup:"a",href:W,target:K},n),ee,a.createElement(d,{svgIcon:v}))},Ce=o(r["panel__btn-container"],(t(D={},r["panel__btn-container--layout3ish"],Ee),t(D,r["panel__btn-container--padding-top"],X),D)),Ae=function(){return ce||me?a.createElement("div",{className:r["datetime-container"],"data-testid":"datetime"},ce&&a.createElement("div",{className:r["datetime-container__icon"]},a.createElement(d,{svgIcon:b,size:m.XSmall}),a.createElement("span",null,ce)),me&&a.createElement("div",{className:r["datetime-container__icon"]},a.createElement(d,{svgIcon:g,size:m.XSmall}),a.createElement("span",null,me))):null};return a.createElement("div",{ref:x,"data-testid":L,className:je,"data-analyticsid":c.Panel},a.createElement("div",{className:he,tabIndex:ie?0:void 0,onClick:function(){var e;ie&&(null===(e=fe.current)||void 0===e||e.click())},onKeyDown:function(e){var t,a=e.key;!ie||"Enter"!==a&&" "!==a||(e.preventDefault(),null===(t=fe.current)||void 0===t||t.click())},"aria-labelledby":ie?ye:void 0,role:ie?"button":void 0},U&&!G&&a.createElement("div",{className:r.panel__icon},U),a.createElement("div",{className:Ie},a.createElement("div",{className:we},(O=o(r["status-message"],t({},r["status-message--new"],Y===w.new)),Y!==w.error&&Y!==w.draft||!Z?null:a.createElement("div",{className:O,"data-testid":"display-status"},a.createElement(d,Object.assign({},Y===w.error?{color:y.cherry500,svgIcon:f}:{color:y.black,svgIcon:_},{size:m.XSmall}))," ",a.createElement("span",null,Z))),M&&a.createElement("div",{className:r["panel-content-a__title-container"]},a.createElement(s,{appearance:"title3"},M),Z&&Y===w.new&&a.createElement("div",null,a.createElement(h,{color:"blueberry",testId:"badge-status"},Z))),R,void 0!==_e&&_e>=j.lg&&Ae()),a.createElement("div",{className:Ne},X&&a.createElement("div",{className:Be},X),(P||W||ce||me)&&a.createElement("div",{className:Ce},void 0!==_e&&_e<j.lg&&Ae(),(P||W)&&a.createElement("div",{className:xe},Se(!ie,ye))))),U&&G&&a.createElement("div",{className:r["panel__icon--right"]},U)),P&&a.createElement("div",{className:ke,"data-testid":"panel-details"},a.createElement("div",null,P),le&&Se()))}));export default B;export{k as PanelLayout,w as PanelStatus,N as PanelVariant};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}