@helsenorge/designsystem-react 1.0.0-beta127 → 1.0.0-beta130

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 (328) hide show
  1. package/AlertSignFill-d3dec2b7.js +2 -0
  2. package/AlertSignFill-d3dec2b7.js.map +1 -0
  3. package/AlertSignStroke-1ed8ac91.js +2 -0
  4. package/AlertSignStroke-1ed8ac91.js.map +1 -0
  5. package/ArrowRight-36582929.js +2 -0
  6. package/ArrowRight-36582929.js.map +1 -0
  7. package/ArrowUpRight-b1c285b5.js +2 -0
  8. package/ArrowUpRight-b1c285b5.js.map +1 -0
  9. package/Badge-331d223c.js +2 -0
  10. package/Badge-331d223c.js.map +1 -0
  11. package/Button-1352276a.js +2 -0
  12. package/Button-1352276a.js.map +1 -0
  13. package/Calendar-1e4e051c.js +2 -0
  14. package/Calendar-1e4e051c.js.map +1 -0
  15. package/Check-cc284473.js +2 -0
  16. package/Check-cc284473.js.map +1 -0
  17. package/CheckOutline-86cddefd.js +2 -0
  18. package/CheckOutline-86cddefd.js.map +1 -0
  19. package/Checkbox-da15e778.js +2 -0
  20. package/Checkbox-da15e778.js.map +1 -0
  21. package/ChevronDown-43493477.js +2 -0
  22. package/ChevronDown-43493477.js.map +1 -0
  23. package/ChevronRight-92a5c973.js +2 -0
  24. package/ChevronRight-92a5c973.js.map +1 -0
  25. package/ChevronUp-9eb92084.js +2 -0
  26. package/ChevronUp-9eb92084.js.map +1 -0
  27. package/Close-b9893f24.js +2 -0
  28. package/Close-b9893f24.js.map +1 -0
  29. package/FormGroup-88d9b47b.js +2 -0
  30. package/FormGroup-88d9b47b.js.map +1 -0
  31. package/FormLayout-eea065d7.js +2 -0
  32. package/FormLayout-eea065d7.js.map +1 -0
  33. package/Group-eab5fd2c.js +2 -0
  34. package/Group-eab5fd2c.js.map +1 -0
  35. package/Hospital-d19ce10d.js +2 -0
  36. package/Hospital-d19ce10d.js.map +1 -0
  37. package/Icon-a7d7e9bc.js +2 -0
  38. package/Icon-a7d7e9bc.js.map +1 -0
  39. package/InfoSignStroke-f9673970.js +2 -0
  40. package/InfoSignStroke-f9673970.js.map +1 -0
  41. package/Input-a4c88ad6.js +2 -0
  42. package/Input-a4c88ad6.js.map +1 -0
  43. package/{Loader-79187de4.js → Loader-bef282a3.js} +2 -2
  44. package/Loader-bef282a3.js.map +1 -0
  45. package/Modal-eb332fa2.js +2 -0
  46. package/Modal-eb332fa2.js.map +1 -0
  47. package/NoAccess-e1cfd26c.js +2 -0
  48. package/NoAccess-e1cfd26c.js.map +1 -0
  49. package/Panel-05b1d255.js +2 -0
  50. package/Panel-05b1d255.js.map +1 -0
  51. package/Pencil-3d446c44.js +2 -0
  52. package/Pencil-3d446c44.js.map +1 -0
  53. package/PlusSmall-d3a22064.js +2 -0
  54. package/PlusSmall-d3a22064.js.map +1 -0
  55. package/{RadioButton-692ed90a.js → RadioButton-f9d660f9.js} +2 -2
  56. package/RadioButton-f9d660f9.js.map +1 -0
  57. package/{Textarea-f2b34d54.js → Textarea-d37d10a4.js} +2 -2
  58. package/Textarea-d37d10a4.js.map +1 -0
  59. package/{Title-face7728.js → Title-2c8d1f64.js} +2 -2
  60. package/Title-2c8d1f64.js.map +1 -0
  61. package/Undo-44981995.js +2 -0
  62. package/Undo-44981995.js.map +1 -0
  63. package/{Validation-f34d539c.js → Validation-5e138927.js} +2 -2
  64. package/Validation-5e138927.js.map +1 -0
  65. package/Watch-4d83e54d.js +2 -0
  66. package/Watch-4d83e54d.js.map +1 -0
  67. package/X-9ca7b3e9.js +2 -0
  68. package/X-9ca7b3e9.js.map +1 -0
  69. package/_rollupPluginBabelHelpers-0f007973.js +1 -1
  70. package/_tslib-b219470a.js +2 -0
  71. package/_tslib-b219470a.js.map +1 -0
  72. package/components/AnchorLink/componentdata.json +1 -1
  73. package/components/AnchorLink/index.js +1 -1
  74. package/components/Avatar/index.js +1 -1
  75. package/components/Badge/componentdata.json +2 -2
  76. package/components/Badge/index.js +1 -1
  77. package/components/Button/componentdata.json +4 -4
  78. package/components/Button/index.js +1 -1
  79. package/components/ButtonWithModal/componentdata.json +1 -1
  80. package/components/ButtonWithModal/index.js +1 -1
  81. package/components/Checkbox/index.js +1 -1
  82. package/components/Close/Close.d.ts.map +1 -1
  83. package/components/Close/index.js +1 -1
  84. package/components/Dropdown/index.js +1 -1
  85. package/components/Dropdown/styles.module.scss +1 -1
  86. package/components/Dropdown/styles.module.scss.d.ts +25 -0
  87. package/components/Expander/Expander.d.ts.map +1 -1
  88. package/components/Expander/componentdata.json +2 -2
  89. package/components/Expander/index.js +1 -1
  90. package/components/ExpanderList/ExpanderList.d.ts.map +1 -1
  91. package/components/ExpanderList/componentdata.json +1 -1
  92. package/components/ExpanderList/index.js +1 -1
  93. package/components/FormExample/FormExample.d.ts.map +1 -1
  94. package/components/FormExample/index.js +1 -1
  95. package/components/FormExample/index.js.map +1 -1
  96. package/components/FormGroup/index.js +1 -1
  97. package/components/FormLayout/index.js +1 -1
  98. package/components/HighlightBox/componentdata.json +3 -3
  99. package/components/HighlightBox/index.js +1 -1
  100. package/components/HighlightBox/styles.module.scss.d.ts +2345 -0
  101. package/components/Icons/AcupunctureBack.js +1 -1
  102. package/components/Icons/AdditionalIconInformation.js +1 -1
  103. package/components/Icons/AdditionalIconInformation.js.map +1 -1
  104. package/components/Icons/AlarmClock.js +1 -1
  105. package/components/Icons/AlertSignFill.js +1 -1
  106. package/components/Icons/AlertSignStroke.js +1 -1
  107. package/components/Icons/Archive.js +1 -1
  108. package/components/Icons/ArrowLeft.js +1 -1
  109. package/components/Icons/ArrowRight.js +1 -1
  110. package/components/Icons/ArrowUpRight.js +1 -1
  111. package/components/Icons/Attachment.js +1 -1
  112. package/components/Icons/Avatar.js +1 -1
  113. package/components/Icons/Body.js +1 -1
  114. package/components/Icons/Bus.js +1 -1
  115. package/components/Icons/Calendar.js +1 -1
  116. package/components/Icons/CalendarChange.js +1 -1
  117. package/components/Icons/CalendarCheck.js +1 -1
  118. package/components/Icons/CalendarSave.js +1 -1
  119. package/components/Icons/Change.js +1 -1
  120. package/components/Icons/Check.js +1 -1
  121. package/components/Icons/CheckFill.js +1 -1
  122. package/components/Icons/CheckOutline.js +1 -1
  123. package/components/Icons/ChevronDown.js +1 -1
  124. package/components/Icons/ChevronLeft.js +1 -1
  125. package/components/Icons/ChevronRight.js +1 -1
  126. package/components/Icons/ChevronUp.js +1 -1
  127. package/components/Icons/ChevronsDown.js +1 -1
  128. package/components/Icons/ChevronsUp.js +1 -1
  129. package/components/Icons/Contacts.js +1 -1
  130. package/components/Icons/Copy.js +1 -1
  131. package/components/Icons/Download.js +1 -1
  132. package/components/Icons/EChat.js +1 -1
  133. package/components/Icons/EnterFullScreen.js +1 -1
  134. package/components/Icons/Envelope.js +1 -1
  135. package/components/Icons/Eraser.js +1 -1
  136. package/components/Icons/ErrorSignFill.js +1 -1
  137. package/components/Icons/ErrorSignStroke.js +1 -1
  138. package/components/Icons/ExitFullScreen.js +1 -1
  139. package/components/Icons/Eye.js +1 -1
  140. package/components/Icons/Form.js +1 -1
  141. package/components/Icons/Forward.js +1 -1
  142. package/components/Icons/Gallery.js +1 -1
  143. package/components/Icons/GenderIdentity.js +1 -1
  144. package/components/Icons/Globe.js +1 -1
  145. package/components/Icons/Group.js +1 -1
  146. package/components/Icons/HealthWarning.js +1 -1
  147. package/components/Icons/Heart.js +1 -1
  148. package/components/Icons/HelpSign.js +1 -1
  149. package/components/Icons/History.js +1 -1
  150. package/components/Icons/Home.js +1 -1
  151. package/components/Icons/Hospital.js +1 -1
  152. package/components/Icons/Hourglass.js +1 -1
  153. package/components/Icons/Icon.d.ts.map +1 -1
  154. package/components/Icons/Icon.js +1 -1
  155. package/components/Icons/InfoSignFill.js +1 -1
  156. package/components/Icons/InfoSignStroke.js +1 -1
  157. package/components/Icons/Journal.js +1 -1
  158. package/components/Icons/List.js +1 -1
  159. package/components/Icons/Location.js +1 -1
  160. package/components/Icons/Lock.js +1 -1
  161. package/components/Icons/Medicine.js +1 -1
  162. package/components/Icons/Menu.js +1 -1
  163. package/components/Icons/Minus.js +1 -1
  164. package/components/Icons/MobilePhone.js +1 -1
  165. package/components/Icons/NoAccess.d.ts +5 -0
  166. package/components/Icons/NoAccess.d.ts.map +1 -0
  167. package/components/Icons/NoAccess.js +2 -0
  168. package/components/Icons/NoAccess.js.map +1 -0
  169. package/components/Icons/NoEye.js +1 -1
  170. package/components/Icons/NoFilter.js +1 -1
  171. package/components/Icons/PaperPlane.js +1 -1
  172. package/components/Icons/Pause.js +1 -1
  173. package/components/Icons/Pencil.js +1 -1
  174. package/components/Icons/Play.js +1 -1
  175. package/components/Icons/PlusLarge.js +1 -1
  176. package/components/Icons/PlusSmall.js +1 -1
  177. package/components/Icons/Printer.js +1 -1
  178. package/components/Icons/QrCode.js +1 -1
  179. package/components/Icons/Quarrel.js +1 -1
  180. package/components/Icons/Receptionist.js +1 -1
  181. package/components/Icons/Recovery.js +1 -1
  182. package/components/Icons/Referral.js +1 -1
  183. package/components/Icons/Refresh.js +1 -1
  184. package/components/Icons/Reply.js +1 -1
  185. package/components/Icons/Save.js +1 -1
  186. package/components/Icons/Search.js +1 -1
  187. package/components/Icons/SectionSign.js +1 -1
  188. package/components/Icons/Settings.js +1 -1
  189. package/components/Icons/Sexualorientation.js +1 -1
  190. package/components/Icons/Share.js +1 -1
  191. package/components/Icons/Shield.js +1 -1
  192. package/components/Icons/SpeechBubble.js +1 -1
  193. package/components/Icons/Stopwatch.js +1 -1
  194. package/components/Icons/SupportingPerson.js +1 -1
  195. package/components/Icons/Syringe.js +1 -1
  196. package/components/Icons/TimePassing.js +1 -1
  197. package/components/Icons/Toolbox.js +1 -1
  198. package/components/Icons/TrashCan.js +1 -1
  199. package/components/Icons/Undo.js +1 -1
  200. package/components/Icons/Upload.js +1 -1
  201. package/components/Icons/Vaccine.js +1 -1
  202. package/components/Icons/VerticalDots.js +1 -1
  203. package/components/Icons/VideoCamera.js +1 -1
  204. package/components/Icons/VideoChat.js +1 -1
  205. package/components/Icons/Wallet.js +1 -1
  206. package/components/Icons/Watch.js +1 -1
  207. package/components/Icons/X.js +1 -1
  208. package/components/Icons/XOutline.js +1 -1
  209. package/components/Icons/Zoom.js +1 -1
  210. package/components/Icons/componentdata.json +2 -2
  211. package/components/Icons/index.js +1 -1
  212. package/components/Input/componentdata.json +1 -1
  213. package/components/Input/index.js +1 -1
  214. package/components/LinkList/componentdata.json +1 -1
  215. package/components/LinkList/index.js +1 -1
  216. package/components/List/index.js +1 -1
  217. package/components/Loader/componentdata.json +2 -2
  218. package/components/Loader/index.js +1 -1
  219. package/components/Loader/styles.module.scss +1 -1
  220. package/components/Loader/styles.module.scss.d.ts +37 -34
  221. package/components/Logo/componentdata.json +1 -1
  222. package/components/Logo/index.js +1 -1
  223. package/components/Modal/Modal.d.ts.map +1 -1
  224. package/components/Modal/componentdata.json +1 -1
  225. package/components/Modal/index.js +1 -1
  226. package/components/NotificationPanel/componentdata.json +2 -2
  227. package/components/NotificationPanel/index.js +1 -1
  228. package/components/Panel/componentdata.json +1 -1
  229. package/components/Panel/index.js +1 -1
  230. package/components/Panel/styles.module.scss.d.ts +2356 -15
  231. package/components/PanelList/index.js +1 -1
  232. package/components/PanelList/styles.module.scss.d.ts +2329 -0
  233. package/components/Portal/index.js +1 -1
  234. package/components/RadioButton/index.js +1 -1
  235. package/components/Slider/SliderUtils.d.ts +3 -4
  236. package/components/Slider/SliderUtils.d.ts.map +1 -1
  237. package/components/Slider/index.js +1 -1
  238. package/components/Spacer/componentdata.json +1 -1
  239. package/components/Spacer/index.js +1 -1
  240. package/components/StatusDot/StatusDot.d.ts +2 -1
  241. package/components/StatusDot/StatusDot.d.ts.map +1 -1
  242. package/components/StatusDot/componentdata.json +4 -1
  243. package/components/StatusDot/index.js +1 -1
  244. package/components/Tag/componentdata.json +3 -3
  245. package/components/Tag/index.js +1 -1
  246. package/components/Textarea/index.js +1 -1
  247. package/components/Tile/componentdata.json +3 -3
  248. package/components/Tile/index.js +1 -1
  249. package/components/Title/Title.d.ts.map +1 -1
  250. package/components/Title/index.js +1 -1
  251. package/components/Validation/index.js +1 -1
  252. package/hooks/focus-utils.d.ts +1 -1
  253. package/hooks/focus-utils.d.ts.map +1 -1
  254. package/hooks/useBreakpoint.d.ts.map +1 -1
  255. package/hooks/useFocusToggle.d.ts.map +1 -1
  256. package/hooks/useFocusTrap.d.ts.map +1 -1
  257. package/hooks/useHover.d.ts.map +1 -1
  258. package/hooks/useIcons.d.ts +1 -2
  259. package/hooks/useIcons.d.ts.map +1 -1
  260. package/hooks/useIntersectionObserver.d.ts +1 -2
  261. package/hooks/useIntersectionObserver.d.ts.map +1 -1
  262. package/hooks/useIsVisible.d.ts +1 -2
  263. package/hooks/useIsVisible.d.ts.map +1 -1
  264. package/hooks/useKeyboardEvent.d.ts +1 -2
  265. package/hooks/useKeyboardEvent.d.ts.map +1 -1
  266. package/hooks/useLayoutEvent.d.ts.map +1 -1
  267. package/hooks/useOutsideEvent.d.ts +6 -2
  268. package/hooks/useOutsideEvent.d.ts.map +1 -1
  269. package/hooks/useResizeObserver.d.ts.map +1 -1
  270. package/hooks/useSticky.d.ts.map +1 -1
  271. package/hooks/useToggle.d.ts.map +1 -1
  272. package/hooks/useUuid.d.ts.map +1 -1
  273. package/index-d1c0552c.js +7 -0
  274. package/{index-b4162bbf.js.map → index-d1c0552c.js.map} +1 -1
  275. package/index-eb155e65.js +2 -0
  276. package/index-eb155e65.js.map +1 -0
  277. package/index.d.ts +0 -1
  278. package/index.d.ts.map +1 -1
  279. package/index.js +1 -1
  280. package/package.json +62 -60
  281. package/scss/_body.scss +4 -0
  282. package/scss/_breakpoints.scss +2 -0
  283. package/scss/_grid.scss +1 -1
  284. package/scss/_grid.scss.d.ts +1104 -0
  285. package/scss/_print.scss +3 -0
  286. package/scss/_print.scss.d.ts +49 -0
  287. package/scss/_reset.scss +1 -1
  288. package/scss/helsenorge.scss.d.ts +2368 -0
  289. package/theme/currys/color.d.ts +3 -3
  290. package/theme/currys/color.d.ts.map +1 -1
  291. package/theme/currys/spacing.d.ts.map +1 -1
  292. package/useIsVisible-bef05e5e.js +1 -1
  293. package/useSticky-abffc922.js +2 -0
  294. package/useSticky-abffc922.js.map +1 -0
  295. package/utils/uuid.d.ts.map +1 -1
  296. package/utils/viewport.d.ts.map +1 -1
  297. package/Badge-9dc33042.js +0 -2
  298. package/Badge-9dc33042.js.map +0 -1
  299. package/Button-438a02c1.js +0 -2
  300. package/Button-438a02c1.js.map +0 -1
  301. package/Checkbox-40365d70.js +0 -2
  302. package/Checkbox-40365d70.js.map +0 -1
  303. package/Close-df5087c3.js +0 -2
  304. package/Close-df5087c3.js.map +0 -1
  305. package/FormGroup-97ca00ea.js +0 -2
  306. package/FormGroup-97ca00ea.js.map +0 -1
  307. package/FormLayout-d6b786db.js +0 -2
  308. package/FormLayout-d6b786db.js.map +0 -1
  309. package/Input-58069d29.js +0 -2
  310. package/Input-58069d29.js.map +0 -1
  311. package/Loader-79187de4.js.map +0 -1
  312. package/Modal-4a92001a.js +0 -2
  313. package/Modal-4a92001a.js.map +0 -1
  314. package/Panel-f36456da.js +0 -2
  315. package/Panel-f36456da.js.map +0 -1
  316. package/RadioButton-692ed90a.js.map +0 -1
  317. package/Textarea-f2b34d54.js.map +0 -1
  318. package/Title-face7728.js.map +0 -1
  319. package/Validation-f34d539c.js.map +0 -1
  320. package/_tslib-51c8a283.js +0 -16
  321. package/_tslib-51c8a283.js.map +0 -1
  322. package/hooks/useWindowSize.d.ts +0 -5
  323. package/hooks/useWindowSize.d.ts.map +0 -1
  324. package/index-b4162bbf.js +0 -8
  325. package/useSticky-29a434c1.js +0 -2
  326. package/useSticky-29a434c1.js.map +0 -1
  327. package/useWindowSize-030df49b.js +0 -2
  328. package/useWindowSize-030df49b.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { PaletteNames } from '../palette';
2
- export declare const getColor: (name: PaletteNames, depth?: 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | undefined) => any;
3
- export declare const getHoverColor: (color: PaletteNames) => string;
1
+ import { PaletteNames, PaletteDepths } from '../palette';
2
+ export declare const getColor: (name: PaletteNames, depth?: PaletteDepths | undefined) => any;
3
+ export declare const getHoverColor: (color: PaletteNames | 'white' | 'black') => string;
4
4
  //# sourceMappingURL=color.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../src/theme/currys/color.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAiB,MAAM,YAAY,CAAC;AAKzD,eAAO,MAAM,QAAQ,2GAA+G,CAAC;AAErI,eAAO,MAAM,aAAa,iCAA2E,CAAC"}
1
+ {"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../src/theme/currys/color.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAKzD,eAAO,MAAM,QAAQ,SAAU,YAAY,2CAAyF,CAAC;AAErI,eAAO,MAAM,aAAa,UAAW,YAAY,GAAG,OAAO,GAAG,OAAO,WAAgC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"spacing.d.ts","sourceRoot":"","sources":["../../../src/theme/currys/spacing.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,eAAO,MAAM,cAAc,qCA+B1B,CAAC;AAEF,eAAO,MAAM,SAAS,qCAGrB,CAAC"}
1
+ {"version":3,"file":"spacing.d.ts","sourceRoot":"","sources":["../../../src/theme/currys/spacing.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,eAAO,MAAM,cAAc,eAAgB,WAAW,KAAG,MA+BxD,CAAC;AAEF,eAAO,MAAM,SAAS,eAAgB,WAAW,KAAG,MAGnD,CAAC"}
@@ -1,2 +1,2 @@
1
- import{useState as t,useEffect as e,useRef as n}from"react";import{_ as r}from"./_rollupPluginBabelHelpers-0f007973.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};
1
+ import{useState as t,useEffect as e,useRef as n}from"react";import{_ as r}from"./_rollupPluginBabelHelpers-0f007973.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],l=u[1];return e((function(){var t=function(){var t,e=null===(t=n.current)||void 0===t?void 0:t.querySelectorAll(o);l(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(){var t="tabindex",e="data-tabindex";i?null==c||c.forEach((function(n){var r=n.getAttribute(e);r?n.setAttribute(t,r):n.removeAttribute(t)})):null==c||c.forEach((function(n){n.hasAttribute(t)&&n.setAttribute(e,"".concat(n.tabIndex)),n.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],l=function(t){c(t[0].intersectionRatio>=n)};return u(e,l,{threshold:n}),a};export{a,u as b,c,i as u};
2
2
  //# sourceMappingURL=useIsVisible-bef05e5e.js.map
@@ -0,0 +1,2 @@
1
+ import{a as n,_ as i}from"./_rollupPluginBabelHelpers-0f007973.js";import{useEffect as t,useState as e}from"react";function o(n,i,t){var e;return function(){var o=this,r=arguments,u=function(){e=null,t||n.apply(o,r)},d=t&&!e;e&&clearTimeout(e),e=setTimeout(u,i),d&&n.apply(o,r)}}var r=function(i){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["layoutchange","resize","orientationchange"],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;t((function(){if("object"===("undefined"==typeof window?"undefined":n(window))){var t=o(i,r);return e.forEach((function(n){return window.addEventListener(n,t)})),t(),function(){e.forEach((function(n){return window.removeEventListener(n,t)}))}}}),[])},u=function(n,t){var o=e(!1),u=i(o,2),d=u[0],a=u[1],c=e(!1),l=i(c,2),f=l[0],v=l[1],s=e(),g=i(s,2),h=g[0],p=g[1],w=e(),m=i(w,2),y=m[0],E=m[1];return r((function(){var i,e,o,r=(null===(i=n.current)||void 0===i?void 0:i.getBoundingClientRect())||{},u=r.top,d=void 0===u?0:u,c=r.width,l=void 0===c?0:c,f=r.bottom,s=void 0===f?0:f,g=null!==(o=null===(e=t.current)||void 0===e?void 0:e.getBoundingClientRect().height)&&void 0!==o?o:0;a(d<=0),v(s<=g),E(l),p(g)}),["resize","scroll"]),{isOutsideWindow:d,isLeavingWindow:f,offsetHeight:h,contentWidth:y}};export{u as a,r as u};
2
+ //# sourceMappingURL=useSticky-abffc922.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSticky-abffc922.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"uuid.d.ts","sourceRoot":"","sources":["../../src/utils/uuid.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,cAShB,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"uuid.d.ts","sourceRoot":"","sources":["../../src/utils/uuid.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,QAAO,MASvB,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"viewport.d.ts","sourceRoot":"","sources":["../../src/utils/viewport.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,8BAS/B,CAAC"}
1
+ {"version":3,"file":"viewport.d.ts","sourceRoot":"","sources":["../../src/utils/viewport.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,OAAQ,WAAW,KAAG,OASrD,CAAC"}
package/Badge-9dc33042.js DELETED
@@ -1,2 +0,0 @@
1
- import{d as e}from"./_rollupPluginBabelHelpers-0f007973.js";import a from"react";import{c as r}from"./index-b4162bbf.js";import t from"./components/Badge/styles.module.scss";import{A as d}from"./constants-088e1d4a.js";var s=a.forwardRef((function(s,o){var b,l=s.children,i=s.className,n=void 0===i?"":i,c=s.color,m=void 0===c?"black":c,g=s.testId,p=l.toString().length>2,f=r(t.badge,(e(b={},t["badge--oversized"],p),e(b,t["badge--black"],"black"===m),e(b,t["badge--white"],"white"===m),e(b,t["badge--blueberry"],"blueberry"===m),e(b,t["badge--banana"],"banana"===m),e(b,t["badge--cherry"],"cherry"===m),e(b,t["badge--kiwi"],"kiwi"===m),e(b,t["badge--neutral"],"neutral"===m),e(b,t["badge--plum"],"plum"===m),b),n);return a.createElement("span",{className:f,ref:o,"data-testid":g,"data-analyticsid":d.Badge},l)}));export{s as B};
2
- //# sourceMappingURL=Badge-9dc33042.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Badge-9dc33042.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{_ as t,d as e}from"./_rollupPluginBabelHelpers-0f007973.js";import{_ as n}from"./_tslib-51c8a283.js";import o from"react";import{A as r,I as i}from"./constants-088e1d4a.js";import{g as l}from"./color-e7d082c1.js";import{L as a}from"./Loader-79187de4.js";import{u as s}from"./useHover-b995a0e6.js";import{a as d}from"./useWindowSize-030df49b.js";import{b as u}from"./grid-c105cad1.js";import{c}from"./index-b4162bbf.js";import b from"./components/Button/styles.module.scss";var m={primary:"blueberry",warning:"banana",danger:"cherry"},f=function(t,e){return e&&e<u.md&&t?i.Small:t?i.Medium:i.XSmall},p=o.forwardRef((function(u,p){var v,_,g,h=u.id,w=u.children,j=u.className,y=void 0===j?"":j,E=u.fluid,I=void 0!==E&&E,k=u.intent,N=void 0===k?"primary":k,x=u.inverted,B=void 0!==x&&x,C=u.htmlMarkup,H=void 0===C?"button":C,O=u.type,S=void 0===O?"button":O,z=u.onClick,F=u.large,M=void 0!==F&&F,A=u.loading,L=void 0!==A&&A,R=u.variant,X=void 0===R?"fill":R,P=u.disabled,W=void 0!==P&&P,q=u.ellipsis,D=void 0!==q&&q,G=u.tabIndex,J=u.testId,K=u.href,Q=u.target,T=n(u,["id","children","className","fluid","intent","inverted","htmlMarkup","type","onClick","large","loading","variant","disabled","ellipsis","tabIndex","testId","href","target"]),U=function(t){var e,n,o,r,i=null,l=null;void 0!==(null===(n=null===(e=t[0])||void 0===e?void 0:e.props)||void 0===n?void 0:n.svgIcon)&&(i=t.shift()),void 0!==(null===(r=null===(o=t[t.length-1])||void 0===o?void 0:o.props)||void 0===r?void 0:r.svgIcon)&&(l=t.pop());var a=t.filter((function(t){return t}));return[i,l,a.length>0?a:null]}(o.Children.toArray(w)),V=t(U,3),Y=V[0],Z=V[1],$=V[2],tt=s(p),et=tt.hoverRef,nt=tt.isHovered,ot=function(t,e,n,o,r){return e?l("neutral",600):t&&!o||!t&&o?"white":l(m[n],r?700:600)}("fill"===X,W,N,B,nt),rt=d(),it="fill"===X,lt="outline"===X,at="borderless"===X,st="warning"===N,dt="danger"===N,ut=!(!Y&&!Z||L),ct=Object.assign({},T),bt=c(b.button,(e(v={},b["button--fluid"],I),e(v,b["button--large"],M),e(v,b["button--warning"],st),e(v,b["button--danger"],dt),e(v,b["button--inverted"],B),e(v,b["button--fill"],it),e(v,b["button--outline"],lt),e(v,b["button--borderless"],at),e(v,b["button--with-icon"],ut),e(v,b["button--ellipsis"],D),v),y),mt=c(b.button__content,(e(_={},b["button__content--warning"],st),e(_,b["button__content--danger"],dt),e(_,b["button__content--fill"],it),e(_,b["button__content--borderless"],at),e(_,b["button__content--outline"],lt),e(_,b["button__content--with-icon"],ut&&!at),e(_,b["button__content--large"],M),e(_,b["button__content--ellipsis"],D),e(_,b["button__content--inverted"],B),e(_,b["button__content--fluid"],I),_)),ft=c(b["button__left-fluid-content"],(e(g={},b["button__left-fluid-content--with-icon"],ut),e(g,b["button__left-fluid-content--large"],M),g));function pt(t,e,n,r){var i=t&&t.props&&t.props.color?t.props.color:n;return t&&Object.keys(t).length>0?o.cloneElement(t,{size:e,color:i,isHovered:r}):null}var vt=function(){return $?o.createElement("span",{className:mt},$):null},_t=function(){return o.createElement("span",{className:b["content-wrapper"]},L?o.createElement("div",{className:b["button__left-fluid-content"]},o.createElement(a,{testId:"test-id-loader",color:"fill"!==X||B?m[N]:"white",size:"tiny"})):o.createElement(o.Fragment,null,I?o.createElement("div",{className:ft},pt(Y,f(M,rt.width),ot,nt),vt()):o.createElement(o.Fragment,null,pt(Y,f(M,rt.width),ot,nt),vt()),pt(Z,i.XSmall,ot,nt)))};return o.createElement(o.Fragment,null,"button"===H&&o.createElement("button",Object.assign({id:h,onClick:z,disabled:W,"data-testid":J,"data-analyticsid":r.Button,className:bt,ref:et,tabIndex:G,type:S},ct),_t()),"a"===H&&o.createElement("a",Object.assign({id:h,onClick:z,"data-testid":J,"data-analyticsid":r.Button,className:bt,href:K,target:Q,rel:"_blank"===Q?"noopener noreferrer":u.rel,ref:et,tabIndex:G},T),_t()))}));export{p as B,m as i};
2
- //# sourceMappingURL=Button-438a02c1.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Button-438a02c1.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{_ as e,d as o}from"./_rollupPluginBabelHelpers-0f007973.js";import r,{useState as c,useEffect as a}from"react";import{c as l}from"./index-b4162bbf.js";import{u as s}from"./uuid-11037462.js";import n from"./components/Icons/Check.js";import{Icon as b}from"./components/Icons/Icon.js";import{F as i,a as t,A as m,I as d}from"./constants-088e1d4a.js";import{g as p}from"./color-e7d082c1.js";import h from"./components/Checkbox/styles.module.scss";var k=r.forwardRef((function(k,x){var f,u,_,v=k.className,w=k.checked,y=void 0!==w&&w,g=k.disabled,N=k.label,j=k.inputId,E=void 0===j?s():j,I=k.mode,C=k.name,F=void 0===C?E:C,z=k.variant,A=k.errorText,B=k.error,H=void 0===B?!!A:B,P=k.value,R=void 0===P?N:P,S=c(y),T=e(S,2),X=T[0],q=T[1],D=H||I===i.oninvalid,G=I===i.ondark,J=I===i.onblueberry,K=z===t.bigform,L=l(h["checkbox-wrapper"],(o(f={},h["checkbox-wrapper--with-error"],A),o(f,h["checkbox-wrapper--bigform"],K),f)),M=l(h["checkbox-label"],(o(u={},h["checkbox-label--disabled"],g),o(u,h["checkbox-label--on-dark"],G),o(u,h["checkbox-label--on-blueberry"],J),o(u,h["checkbox-label--invalid"],D),o(u,h["checkbox-label--bigform"],K),u)),O=l(h.checkbox,v),Q=l(h["checkbox__icon-wrapper"],(o(_={},h["checkbox__icon-wrapper--checked"],X),o(_,h["checkbox__icon-wrapper--disabled"],g),o(_,h["checkbox__icon-wrapper--on-dark"],G),o(_,h["checkbox__icon-wrapper--on-blueberry"],J),o(_,h["checkbox__icon-wrapper--invalid"],D),_)),U=l(h["checkbox-errors"],o({},h["checkbox-errors--bigform"],K)),V=p("blueberry",500);return g&&(V=p("neutral",400)),G&&(V=p("blueberry",200)),D&&(V=p("cherry",500)),a((function(){q(y)}),[y]),r.createElement("div",{"data-testid":k.testId,"data-analyticsid":m.Checkbox,className:L},A&&r.createElement("p",{className:U},A),r.createElement("label",{htmlFor:E,className:M},r.createElement("input",{id:E,name:F,className:O,type:"checkbox",checked:X,disabled:g,onChange:function(){q(!X)},value:R,ref:x,"aria-invalid":H}),r.createElement("span",{className:Q},X&&r.createElement(b,{color:V,className:h.checkbox__icon,svgIcon:n,size:d.XSmall})),r.createElement("span",{className:h["checkbox-label__text"]},N)))}));export{k as C};
2
- //# sourceMappingURL=Checkbox-40365d70.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Checkbox-40365d70.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/Close-df5087c3.js DELETED
@@ -1,2 +0,0 @@
1
- import o from"react";import{p as t}from"./palette-f206f488.js";import{Icon as s}from"./components/Icons/Icon.js";import{A as e}from"./constants-088e1d4a.js";import a from"./components/Icons/X.js";import r from"./components/Close/styles.module.scss";import{u as n,B as m}from"./useBreakpoint-a74f5af5.js";var c=function(c){var l=n()===m.xs?38:48;return o.createElement("button",{"data-testid":c.testId,"data-analyticsid":e.Close,className:r.close,"aria-label":c.ariaLabel||"Lukk",onClick:c.onClick,role:"button"},o.createElement(s,{svgIcon:a,color:t.blueberry600,size:l}))};export{c as C};
2
- //# sourceMappingURL=Close-df5087c3.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Close-df5087c3.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{d as e}from"./_rollupPluginBabelHelpers-0f007973.js";import r from"react";import{c as a}from"./index-b4162bbf.js";import o from"./components/FormGroup/styles.module.scss";import{C as t}from"./Checkbox-40365d70.js";import{F as m,a as n,A as l}from"./constants-088e1d4a.js";import{R as i}from"./RadioButton-692ed90a.js";import{I as p}from"./Input-58069d29.js";import{T as s}from"./Title-face7728.js";import{F as d}from"./FormLayout-d6b786db.js";var f=r.forwardRef((function(f,u){var c,g,v,_=f.className,b=f.mode,w=void 0===b?m.onwhite:b,y=f.variant,E=void 0===y?n.normal:y,j=f.error,N=f.name,h=w===m.ondark,k=E===n.bigform,F=a(o["form-group-wrapper"],(e(c={},o["form-group-wrapper--on-dark"],h),e(c,o["form-group-wrapper--invalid"],j),c),_),x=a(o["form-group-wrapper__title"],(e(g={},o["form-group-wrapper__title--on-dark"],h&&!j),e(g,o["form-group-wrapper__title--bigform"],k),g)),B=a(o["form-group"],e({},o["form-group--invalid"],j)),C=a(o["form-group-wrapper__errors"],e({},o["form-group-wrapper__errors--bigform"],k)),I=a(o["field-set__legend"],(e(v={},o["field-set__legend--on-dark"],h&&!j),e(v,o["field-set__legend--bigform"],k),v));return r.createElement("div",{"data-testid":f.testId,"data-analyticsid":l.FormGroup,className:F},f.title&&r.createElement(s,{className:x,htmlMarkup:"h4",appearance:"title4",margin:{marginTop:0,marginBottom:2}},f.title),r.createElement("div",{className:B},j&&r.createElement("p",{className:C},j),r.createElement("fieldset",{name:f.title,className:o["field-set"]},f.legend&&r.createElement("legend",{className:I},f.legend),r.Children.map(f.children,(function e(a){if(a.type===d)return r.cloneElement(a,{variant:E,mapHelper:e});if(a.type===t){var o=a.type===t;return r.cloneElement(a,{name:null!=N?N:o.valueOf.name,mode:w,variant:E,error:!!j})}if(a.type===i){var m=a.type===i;return r.cloneElement(a,{name:null!=N?N:m.valueOf.name,mode:w,variant:E,error:!!j})}if(a.type===p){var n=a.type===p;return r.cloneElement(a,{name:null!=N?N:n.valueOf.name,mode:w,variant:E,error:!!j})}return a})))))}));export{f as F};
2
- //# sourceMappingURL=FormGroup-97ca00ea.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormGroup-97ca00ea.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{d as o}from"./_rollupPluginBabelHelpers-0f007973.js";import t from"react";import{c as r}from"./index-b4162bbf.js";import e from"./components/FormLayout/styles.module.scss";import{a,A as i}from"./constants-088e1d4a.js";var m;!function(o){o.one="one",o.two="two",o.three="three",o.four="four",o.five="five"}(m||(m={}));var l=t.forwardRef((function(l,n){var f,s=l.maxColumns,c=void 0===s?m.one:s,d=l.colMinWidth,u=void 0===d?300:d,h=l.variant,p=l.className,v=l.mapHelper,y={"--min-col-width":"".concat(u,"px")},b=r(e["form-layout-container"],o({},e["form-layout-container--bigform"],h===a.bigform),p),w=r(e["form-layout-child"],(o(f={},e["form-layout-child--two"],c===m.two),o(f,e["form-layout-child--three"],c===m.three),o(f,e["form-layout-child--four"],c===m.four),o(f,e["form-layout-child--five"],c===m.five),f));return t.createElement("div",{"data-testid":l.testId,"data-analyticsid":i.FormLayout,style:y,className:b},t.Children.map(l.children,(function(o){return t.createElement("div",{className:w},v?v(o):o)})))}));export{l as F,m as a};
2
- //# sourceMappingURL=FormLayout-d6b786db.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormLayout-d6b786db.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/Input-58069d29.js DELETED
@@ -1,2 +0,0 @@
1
- import{d as e}from"./_rollupPluginBabelHelpers-0f007973.js";import{_ as r}from"./_tslib-51c8a283.js";import a,{useRef as t}from"react";import{c as n}from"./index-b4162bbf.js";import{F as l,a as o,A as i,I as p}from"./constants-088e1d4a.js";import{u as s}from"./uuid-11037462.js";import{Icon as d}from"./components/Icons/Icon.js";import{g as c}from"./color-e7d082c1.js";import{u as m,B as u}from"./useBreakpoint-a74f5af5.js";import b from"./components/Input/styles.module.scss";var f;!function(e){e.text="text",e.number="number",e.email="email",e.password="password",e.search="search",e.tel="tel",e.url="url"}(f||(f={}));var w=a.forwardRef((function(w,v){var _,h,I,y=w.defaultValue,g=w.placeholder,j=w.type,x=void 0===j?f.text:j,E=w.inputId,k=void 0===E?s():E,C=w.name,N=w.transparent,L=void 0!==N&&N,O=w.icon,B=w.iconRight,R=w.mode,V=w.variant,F=w.label,S=w.error,T=w.errorText,z=w.testId,A=w.disabled,H=w.readOnly,P=w.autocomplete,X=w.afterLabelChildren,q=w.belowLabelChildren,D=r(w,["defaultValue","placeholder","type","inputId","name","transparent","icon","iconRight","mode","variant","label","error","errorText","testId","disabled","readOnly","autocomplete","afterLabelChildren","belowLabelChildren"]),G=m(),J=t(null),K=R===l.ondark,M=R===l.onblueberry,Q=R===l.oninvalid||T||S,U=V===o.bigform,W=L&&R!==l.ondark&&!Q,Y=n(b["input-wrapper"],e({},b["input-wrapper--invalid"],T)),Z=n(b["input-wrapper__label-wrapper"],(e(_={},b["input-wrapper__label-wrapper--on-dark"],K),e(_,b["input-wrapper__label-wrapper--disabled"],A),_)),$=n(b["content-wrapper"],(e(h={},b["content-wrapper--transparent"],W),e(h,b["content-wrapper--on-blueberry"],M),e(h,b["content-wrapper--on-dark"],K),e(h,b["content-wrapper--invalid"],Q),e(h,b["content-wrapper--bigform"],U),e(h,b["content-wrapper--disabled"],A),e(h,b["content-wrapper--with-icon"],O),h)),ee=n(b["content-wrapper__input"],(e(I={},b["content-wrapper__input--bigform"],U),e(I,b["content-wrapper__input--disabled"],A),I)),re=A?c("neutral",500):c("black"),ae=function(){var e=G!==u.xs&&U?p.Small:p.XSmall;return void 0!==O?a.createElement(d,{color:re,size:e,svgIcon:O}):null};return a.createElement("div",{"data-testid":z,"data-analyticsid":i.Input,className:Y},F&&a.createElement("div",{className:Z},a.createElement("label",{htmlFor:k},F),X&&a.createElement("div",{className:b["input-wrapper__after-label-children"]},X)),q&&a.createElement("div",null,q),a.createElement("div",{onClick:function(){if(J&&J.current&&O){var e=B?0:1;J.current.children[e].focus()}},ref:J,className:$},!B&&ae(),a.createElement("input",Object.assign({name:C,type:x,defaultValue:y,id:k,className:ee,ref:v,"aria-invalid":!!Q,disabled:A,placeholder:g,readOnly:H,autoComplete:P||"off"},D)),B&&ae()))}));export{w as I,f as a};
2
- //# sourceMappingURL=Input-58069d29.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Input-58069d29.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Loader-79187de4.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/Modal-4a92001a.js DELETED
@@ -1,2 +0,0 @@
1
- import{_ as e,d as a}from"./_rollupPluginBabelHelpers-0f007973.js";import t,{useEffect as o}from"react";import{c as r}from"./index-b4162bbf.js";import{p as l}from"./palette-f206f488.js";import{B as n}from"./Button-438a02c1.js";import{Icon as s}from"./components/Icons/Icon.js";import{Z as c,A as i,I as m}from"./constants-088e1d4a.js";import d from"./components/Modal/styles.module.scss";import p from"./components/Icons/AlertSignStroke.js";import u from"./components/Icons/AlertSignFill.js";import{c as _,a as v}from"./useIsVisible-bef05e5e.js";import{T as f}from"./Title-face7728.js";import{u as E}from"./uuid-11037462.js";import{C as g}from"./Close-df5087c3.js";import b from"./components/Icons/CheckOutline.js";import y from"./components/Portal/index.js";var h,N;!function(e){e.normal="normal",e.warning="warning",e.error="error",e.success="success",e.image="image"}(h||(h={})),function(e){e.large="large",e.medium="medium"}(N||(N={}));var C={variant:h.normal,primaryButtonText:"OK",titleId:E(),className:"",size:N.large,zIndex:c.Modal},I=function(e,a){var o=function(e){return e===h.error?t.createElement(s,{size:m.Small,svgIcon:u,color:l.cherry500}):e===h.warning?t.createElement(s,{size:m.Small,svgIcon:p,color:l.black}):e===h.success?t.createElement(s,{size:m.Small,svgIcon:b,color:l.kiwi900}):null}(e);return o?t.createElement("div",{className:d.modal__iconWrapper},o):a?t.createElement("div",{className:d.modal__iconWrapper},t.cloneElement(a,{size:m.Small})):null},w=function(l){var s,c,m,p=t.useState(0),u=e(p,2),E=u[0],b=u[1],N=t.useRef(null),C=t.useRef(null),w=t.useRef(null),B=_(C),j=t.useRef(null),x=_(j),k=w.current&&w.current.scrollHeight>w.current.clientHeight;function T(e){"Escape"===e.key&&l.onClose&&(e.stopPropagation(),l.onClose())}function W(e){e.target&&L.current===e.target&&l.onClose&&(e.stopPropagation(),l.onClose())}var z=l.variant===h.image,L=t.useRef(null),S=l.secondaryButtonText&&(null===(c=l.secondaryButtonText)||void 0===c?void 0:c.length)>0||l.onSuccess,P=l.ariaLabelledBy?void 0:l.ariaLabel,M=l.ariaLabelledBy?l.ariaLabelledBy:l.ariaLabel?void 0:l.titleId;o((function(){var e,a=L.current;return null===(e=N.current)||void 0===e||e.focus(),document.body.style.overflow="hidden",l.disableCloseEvents||!a||S||(a.addEventListener("keydown",T),a.addEventListener("click",W)),function(){document.body.style.removeProperty("overflow"),l.disableCloseEvents||!a||S||(a.removeEventListener("keydown",T),a.removeEventListener("click",W))}}),[]);var R=r(l.className,d.modal,d["modal--".concat(l.variant)],d["modal--".concat(l.size)],!S&&d["modal--no-actions"]),A=r((a(s={},d["modal__title--error"],l.variant===h.error),a(s,d["modal__title--success"],l.variant===h.success),s)),H=t.createElement("div",{"data-testid":"dialog-container"},t.createElement("div",{ref:L,className:d["modal-overlay"],"data-testid":l.testId,"data-analyticsid":i.Modal,style:{zIndex:l.zIndex}},t.createElement("div",{className:d.align,ref:v()},t.createElement("div",{className:R,role:"dialog","aria-label":P,"aria-labelledby":M},t.createElement("div",{tabIndex:E,ref:N,onBlur:function(){return b(-1)}}),t.createElement("div",{className:r(d.modal__shadow,d["modal__shadow--top"],a({},d["modal__shadow--show"],!B&&k))}),t.createElement("div",{className:r(d.modal__contentWrapper,a({},d["modal__contentWrapper--image"],z)),ref:w},!l.noCloseButton&&t.createElement("div",{className:d.modal__closeWrapper},t.createElement("div",{className:r(d.modal__closeWrapper__close)},t.createElement(g,{onClick:l.onClose,ariaLabel:l.ariaLabelCloseBtn}))),t.createElement("div",{className:r(d["modal__contentWrapper__scroll--".concat(l.size)],a({},d["modal__contentWrapper__scroll--image"],z))},t.createElement("div",{ref:C}),t.createElement("div",{className:d.modal__contentWrapper__title},I(l.variant,l.icon),t.createElement(f,{id:M,htmlMarkup:"h3",appearance:"title3",className:A},l.title),l.afterTitleChildren&&t.createElement("div",{className:d.modal__afterTitleChildren},l.afterTitleChildren)),z&&t.createElement("div",null,t.createElement("div",{className:d.modal__contentWrapper__imageWrapper},l.children),t.createElement("span",{className:d.modal__contentWrapper__imageDescription},l.description)),!z&&l.children&&t.createElement("div",null,l.children),!z&&!l.children&&t.createElement("p",{className:d.modal__description},l.description),t.createElement("div",{ref:j}))),t.createElement("div",{className:r(d.modal__shadow,d["modal__shadow--bottom"],a({},d["modal__shadow--show"],!x&&k))}),S&&t.createElement("div",{className:r(d["modal__call-to-action"],d["modal__call-to-action--".concat(l.size)])},l.onSuccess&&t.createElement(n,{onClick:l.onSuccess},l.primaryButtonText),l.secondaryButtonText&&(null===(m=l.secondaryButtonText)||void 0===m?void 0:m.length)>0&&t.createElement(n,{variant:"borderless",onClick:l.onClose},l.secondaryButtonText))))));if(l.printable){return t.createElement(y,{className:"print-modal",testId:"print-modal"},t.createElement("style",{media:"print"},"body > *:not(.".concat("print-modal",") {display: none;}")),H)}return H};w.defaultProps=C;export{w as M,h as a,N as b};
2
- //# sourceMappingURL=Modal-4a92001a.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Modal-4a92001a.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/Panel-f36456da.js DELETED
@@ -1,2 +0,0 @@
1
- import{_ as e,d as t}from"./_rollupPluginBabelHelpers-0f007973.js";import{_ as a}from"./_tslib-51c8a283.js";import n,{useState as l,useRef as o}from"react";import{c as r}from"./index-b4162bbf.js";import s from"./components/Panel/styles.module.scss";import{T as i}from"./Title-face7728.js";import{B as c}from"./Button-438a02c1.js";import{A as m,I as u}from"./constants-088e1d4a.js";import{Icon as d}from"./components/Icons/Icon.js";import p from"./components/Icons/ChevronDown.js";import f from"./components/Icons/ChevronUp.js";import v from"./components/Icons/ArrowRight.js";import y from"./components/Icons/AlertSignFill.js";import{p as b}from"./palette-f206f488.js";import g from"./components/Icons/Pencil.js";import _ from"./components/Icons/Calendar.js";import E from"./components/Icons/Watch.js";import{u as h,B as w}from"./useBreakpoint-a74f5af5.js";import{B as j}from"./Badge-9dc33042.js";import{u as I}from"./uuid-11037462.js";var N,k,x;!function(e){e.normal="normal",e.new="new",e.error="error",e.draft="draft"}(N||(N={})),function(e){e.fill="fill",e.white="white",e.stroke="stroke",e.line="line"}(k||(k={})),function(e){e.layout1="layout1",e.layout2="layout2",e.layout3a="layout3a",e.layout3b="layout3b",e.layout3c="layout3c"}(x||(x={}));var B=function(e){var a=e.status,l=e.statusMessage,o=r(s["status-message"],t({},s["status-message--new"],a===N.new));return a!==N.error&&a!==N.draft||!l?null:n.createElement("div",{className:o,"data-testid":"display-status"},n.createElement(d,Object.assign({},a===N.error?{color:b.cherry500,svgIcon:y}:{color:b.black,svgIcon:g},{size:u.XSmall}))," ",n.createElement("span",null,l))},C=function(e){var t=e.date,a=e.time;return t||a?n.createElement("div",{className:s["datetime-container"],"data-testid":"datetime"},t&&n.createElement("div",{className:s["datetime-container__icon"]},n.createElement(d,{svgIcon:_,size:u.XSmall}),n.createElement("span",null,t)),a&&n.createElement("div",{className:s["datetime-container__icon"]},n.createElement(d,{svgIcon:E,size:u.XSmall}),n.createElement("span",null,a))):null},T=n.forwardRef((function(e,t){var l=e.buttonText,o=e.buttonTextClose,r=e.url,s=e.target,i=e.onClick,m=e.renderAsButton,u=e.showDetails,y=a(e,["buttonText","buttonTextClose","url","target","onClick","renderAsButton","showDetails"]);return m?n.createElement(c,Object.assign({testId:"expand",ref:t,onClick:i},y),u?o:l,n.createElement(d,{svgIcon:u?f:p})):n.createElement(c,Object.assign({testId:"url",ref:t,htmlMarkup:"a",href:r,target:s},y),l,n.createElement(d,{svgIcon:v}))})),S=n.forwardRef((function(a,c){var u,d,p,f,v,y,b,g=a.children,_=a.contentA,E=a.contentB,S=a.className,A=a.testId,D=a.title,P=a.url,M=a.target,O=void 0===M?"_self":M,R=a.icon,z=a.iconRight,X=void 0!==z&&z,F=a.variant,H=void 0===F?k.fill:F,K=a.status,U=void 0===K?N.normal:K,W=a.statusMessage,q=a.buttonText,G=void 0===q?"Se detaljer":q,J=a.buttonTextClose,L=void 0===J?"Skjul detaljer":J,Q=a.showCloseButtonInExpand,V=void 0===Q||Q,Y=a.layout,Z=void 0===Y?x.layout2:Y,$=a.containerAsButton,ee=void 0!==$&&$,te=a.date,ae=a.time,ne=a.noTopBorder,le=l(!1),oe=e(le,2),re=oe[0],se=oe[1],ie=o(null),ce=I(),me=h(),ue=[x.layout3a.toString(),x.layout3b.toString(),x.layout3c.toString()].includes(Z),de=r(s["panel-wrapper"],S),pe=r(s.panel,(t(u={},s["panel--fill"],H===k.fill),t(u,s["panel--stroke"],H===k.stroke),t(u,s["panel--white"],H===k.white),t(u,s["panel--line"],H===k.line),t(u,s["panel--no-top-border"],H===k.line&&ne),t(u,s["panel--selected"],re),t(u,s["panel--new"],U===N.new),t(u,s["panel--draft"],U===N.draft),t(u,s["panel--error"],U===N.error),t(u,s["panel--status"],U&&U!==N.normal),t(u,s["panel--with-icon"],R),t(u,s["panel--button"],ee),u)),fe=r((t(d={},s.panel__container,Z===x.layout2&&E),t(d,s["panel__container--layout3"],ue&&E),t(d,s["panel__container--grow"],R),d)),ve=r((t(p={},s["panel-content-a"],Z===x.layout2),t(p,s["panel-content-a--layout3a"],Z===x.layout3a),t(p,s["panel-content-a--layout3b"],Z===x.layout3b),t(p,s["panel-content-a--layout3c"],Z===x.layout3c),p)),ye=r((t(f={},s["panel__content-right--layout1"],E&&Z===x.layout1),t(f,s["panel__content-right--layout2"],E&&Z===x.layout2),t(f,s["panel__content-right--layout3"],E&&ue),t(f,s["panel__content-right--layout3a"],E&&Z===x.layout3a),t(f,s["panel__content-right--layout3b"],E&&Z===x.layout3b),t(f,s["panel__content-right--layout3c"],E&&Z===x.layout3c),f)),be=r(s["panel-details"],(t(v={},s["panel-details--open"],re),t(v,s["panel-details--line"],H===k.line),t(v,s["panel-details--white"],H===k.white),t(v,s["panel-details--with-icon"],R),v)),ge=r(s["panel-content-b"],(t(y={},s["panel-content-b--layout1"],Z===x.layout1),t(y,s["panel-content-b--layout3"],ue),y)),_e=r(s["panel__details-btn"],t({},s["panel__details-btn--pull-right"],E)),Ee=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0,a={id:t,tabIndex:e?void 0:-1,variant:"borderless",ellipsis:!0};return n.createElement(T,Object.assign({renderAsButton:!!g,onClick:function(){return se(!re)},showDetails:re,buttonText:G,url:P,target:O,buttonTextClose:L,ref:t?ie:void 0},a))},he=r(s["panel__btn-container"],(t(b={},s["panel__btn-container--layout3"],ue),t(b,s["panel__btn-container--padding-top"],E),b));return n.createElement("div",{ref:c,"data-testid":A,className:de,"data-analyticsid":m.Panel},n.createElement("div",{className:pe,tabIndex:ee?0:void 0,onClick:function(){var e;ee&&(null===(e=ie.current)||void 0===e||e.click())},onKeyDown:function(e){var t,a=e.key;!ee||"Enter"!==a&&" "!==a||(e.preventDefault(),null===(t=ie.current)||void 0===t||t.click())},"aria-labelledby":ee?ce:void 0,role:ee?"button":void 0},R&&!X&&n.createElement("div",{className:s.panel__icon},R),n.createElement("div",{className:fe},n.createElement("div",{className:ve},n.createElement(B,{status:U,statusMessage:W}),D&&n.createElement("div",{className:s["panel-content-a__title-container"]},n.createElement(i,{appearance:"title3"},D),W&&U===N.new&&n.createElement("div",null,n.createElement(j,{color:"blueberry",testId:"badge-status"},W))),_,me>=w.lg&&n.createElement(C,{date:te,time:ae})),n.createElement("div",{className:ye},E&&n.createElement("div",{className:ge},E),(g||P||te||ae)&&n.createElement("div",{className:he},me<w.lg&&n.createElement(C,{date:te,time:ae}),(g||P)&&n.createElement("div",{className:_e},Ee(!ee,ce))))),R&&X&&n.createElement("div",{className:s["panel__icon--right"]},R)),g&&n.createElement("div",{className:be,"data-testid":"panel-details"},n.createElement("div",null,g),V&&Ee()))}));export{S as P,N as a,k as b,x as c};
2
- //# sourceMappingURL=Panel-f36456da.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Panel-f36456da.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"RadioButton-692ed90a.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Textarea-f2b34d54.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Title-face7728.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Validation-f34d539c.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,16 +0,0 @@
1
- /*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation.
3
-
4
- Permission to use, copy, modify, and/or distribute this software for any
5
- purpose with or without fee is hereby granted.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
- PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */
15
- function e(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r}export{e as _};
16
- //# sourceMappingURL=_tslib-51c8a283.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_tslib-51c8a283.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
@@ -1,5 +0,0 @@
1
- export declare function useWindowSize(): {
2
- width: number | undefined;
3
- height: number | undefined;
4
- };
5
- //# sourceMappingURL=useWindowSize.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useWindowSize.d.ts","sourceRoot":"","sources":["../../src/hooks/useWindowSize.ts"],"names":[],"mappings":"AAWA,wBAAgB,aAAa;;;EAU5B"}
package/index-b4162bbf.js DELETED
@@ -1,8 +0,0 @@
1
- var r=function(r,t){return r(t={exports:{}},t.exports),t.exports}((function(r){
2
- /*!
3
- Copyright (c) 2018 Jed Watson.
4
- Licensed under the MIT License (MIT), see
5
- http://jedwatson.github.io/classnames
6
- */
7
- !function(){var t={}.hasOwnProperty;function e(){for(var r=arguments,n=[],o=0;o<arguments.length;o++){var s=r[o];if(s){var i=typeof s;if("string"===i||"number"===i)n.push(s);else if(Array.isArray(s)){if(s.length){var a=e.apply(null,s);a&&n.push(a)}}else if("object"===i)if(s.toString===Object.prototype.toString)for(var p in s)t.call(s,p)&&s[p]&&n.push(p);else n.push(s.toString())}}return n.join(" ")}r.exports?(e.default=e,r.exports=e):window.classNames=e}()}));export{r as c};
8
- //# sourceMappingURL=index-b4162bbf.js.map
@@ -1,2 +0,0 @@
1
- import{_ as i}from"./_rollupPluginBabelHelpers-0f007973.js";import{useState as o}from"react";import{u as t}from"./useWindowSize-030df49b.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-29a434c1.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useSticky-29a434c1.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{a as n,_ as e}from"./_rollupPluginBabelHelpers-0f007973.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-030df49b.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useWindowSize-030df49b.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}